infcmd.c: Remove stale TODO
[binutils-gdb.git] / gdb / ChangeLog
1 2014-08-21 Pedro Alves <palves@redhat.com>
2
3 * infcmd.c (attach_command): Remove comment.
4
5 2014-08-21 Bin Cheng <bin.cheng@arm.com>
6
7 * aarch64-linux-nat.c (dr_changed_t): Change the type from
8 unsigned LONGEST to ULONGEST.
9
10 2014-08-20 Pedro Alves <palves@redhat.com>
11
12 * Makefile.in (check-read1): New rule.
13
14 2014-08-20 Joel Brobecker <brobecker@adacore.com>
15
16 * value.c (value_from_contents_and_address): Strip resolved_type's
17 typedef layers before checking its TYPE_DATA_LOCATION.
18
19 2014-08-20 Pedro Alves <palves@redhat.com>
20
21 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
22
23 2014-08-20 Yao Qi <yao@codesourcery.com>
24
25 * amd64-tdep.c (amd64_classify): Add a blank line after the
26 example. Move "*/" to a new line.
27 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
28 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
29 * dwarf2read.c (psymtab_include_file_name): Likewise.
30
31 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
32 Pedro Alves <palves@redhat.com>
33
34 PR symtab/14604
35 PR symtab/14605
36 * ada-lang.c (coerce_unspec_val_to_type): Use
37 value_contents_copy_raw.
38 * ada-valprint.c (val_print_packed_array_elements): Adjust.
39 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
40 * cp-valprint.c (cp_print_value_fields): Let the common printing
41 code handle optimized out values.
42 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
43 * d-valprint.c (dynamic_array_type): Use
44 value_bits_any_optimized_out.
45 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
46 check_any_valid fields.
47 (check_pieced_value_bits): Delete and inline ...
48 (check_pieced_synthetic_pointer): ... here.
49 (check_pieced_value_validity): Delete.
50 (check_pieced_value_invalid): Delete.
51 (pieced_value_funcs): Remove check_validity and check_any_valid
52 fields.
53 (read_pieced_value): Use mark_value_bits_optimized_out.
54 (write_pieced_value): Switch to use
55 mark_value_bytes_optimized_out.
56 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
57 of assuming the whole value is optimized out.
58 * findvar.c (read_frame_register_value): Remove special handling
59 of optimized out registers.
60 (value_from_register): Use mark_value_bytes_optimized_out.
61 * frame-unwind.c (frame_unwind_got_optimized): Use
62 mark_value_bytes_optimized_out.
63 * jv-valprint.c (java_value_print): Adjust.
64 (java_print_value_fields): Let the common printing code handle
65 optimized out values.
66 * mips-tdep.c (mips_print_register): Remove special handling of
67 optimized out registers.
68 * opencl-lang.c (lval_func_check_validity): Delete.
69 (lval_func_check_any_valid): Delete.
70 (opencl_value_funcs): Remove check_validity and check_any_valid
71 fields.
72 * p-valprint.c (pascal_object_print_value_fields): Let the common
73 printing code handle optimized out values.
74 * stack.c (read_frame_arg): Remove special handling of optimized
75 out values. Fetch both VAL and ENTRYVAL before comparing
76 contents. Adjust to value_available_contents_eq rename.
77 * valprint.c (valprint_check_validity)
78 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
79 (val_print_array_elements): Adjust.
80 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
81 (value_bits_any_optimized_out): New function.
82 (value_entirely_covered_by_range_vector): New function, factored
83 out from value_entirely_unavailable.
84 (value_entirely_unavailable): Reimplement.
85 (value_entirely_optimized_out): New function.
86 (insert_into_bit_range_vector): New function, factored out from
87 mark_value_bits_unavailable.
88 (mark_value_bits_unavailable): Reimplement.
89 (struct ranges_and_idx): New struct.
90 (find_first_range_overlap_and_match): New function, factored out
91 from value_available_contents_bits_eq.
92 (value_available_contents_bits_eq): Rename to ...
93 (value_contents_bits_eq): ... this. Check both unavailable
94 contents and optimized out contents.
95 (value_available_contents_eq): Rename to ...
96 (value_contents_eq): ... this.
97 (allocate_value_lazy): Remove reference to the old optimized_out
98 boolean.
99 (allocate_optimized_out_value): Use
100 mark_value_bytes_optimized_out.
101 (require_not_optimized_out): Adjust to check whether the
102 optimized_out vec is empty.
103 (ranges_copy_adjusted): New function, factored out from
104 value_contents_copy_raw.
105 (value_contents_copy_raw): Also copy the optimized out ranges.
106 Assert the destination ranges aren't optimized out.
107 (value_contents_copy): Update comment, remove call to
108 require_not_optimized_out.
109 (value_contents_equal): Adjust to check whether the optimized_out
110 vec is empty.
111 (set_value_optimized_out, value_optimized_out_const): Delete.
112 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
113 New functions.
114 (value_entirely_optimized_out, value_bits_valid): Delete.
115 (value_copy): Take a VEC copy of the 'optimized_out' field.
116 (value_primitive_field): Remove special handling of optimized out.
117 (value_fetch_lazy): Assert that lazy values have no unavailable
118 regions. Use value_bits_any_optimized_out. Remove some special
119 handling for optimized out values.
120 * value.h: Add intro comment about <optimized out> and
121 <unavailable>.
122 (struct lval_funcs): Remove check_validity and check_any_valid
123 fields.
124 (set_value_optimized_out, value_optimized_out_const): Remove.
125 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
126 New declarations.
127 (value_bits_any_optimized_out): New declaration.
128 (value_bits_valid): Delete declaration.
129 (value_available_contents_eq): Rename to ...
130 (value_contents_eq): ... this, and extend comments.
131
132 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
133
134 Fix -fsanitize=address on unreadable inferior strings.
135 * valprint.c (val_print_string): Fix access before BUFFER.
136
137 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
138
139 * target.c (target_struct_size): Remove.
140 (target_struct_allocsize): Remove.
141 (DEFAULT_ALLOCSIZE): Remove.
142 (target_ops_p): New typedef.
143 (DEF_VEC_P (target_ops_p)): New vector type.
144 (target_structs): Change type to VEC (target_ops_p).
145 (add_target_with_completer): Replace "push" code by VEC_safe_push.
146 (find_default_run_target): Rewrite for loop following changes to
147 target_structs.
148
149 2014-08-19 Joel Brobecker <brobecker@adacore.com>
150
151 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
152 Adjust code accordingly. Adjust function description comment.
153
154 2014-08-19 Yao Qi <yao@codesourcery.com>
155
156 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
157 types.
158
159 2014-08-19 Alan Modra <amodra@gmail.com>
160
161 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
162 * config.in: Regenerate.
163 * configure: Regenerate.
164
165 2014-08-19 Tom Tromey <tromey@redhat.com>
166 Gary Benson <gbenson@redhat.com>
167
168 * common/common-debug.h: New file.
169 * common/common-debug.c: Likewise.
170 * debug.c: Likewise.
171 * Makefile.in (SFILES): Add common/common-debug.c.
172 (HFILES_NO_SRCDIR): Add common/common-debug.h.
173 (COMMON_OBS): Add common-debug.o and debug.o.
174 (common-debug.o): New rule.
175 * common/common-defs.h: Include common-debug.h.
176 * common/agent.c (debug_agent_printf): New function.
177 (DEBUG_AGENT): Redefine.
178 * nat/i386-dregs.c (debug_printf): Undefine.
179
180 2014-08-19 Gary Benson <gbenson@redhat.com>
181
182 * common/common-defs.h: Include print-utils.h.
183 * utils.h: Do not include print-utils.h.
184
185 2014-08-19 Tom Tromey <tromey@redhat.com>
186 Gary Benson <gbenson@redhat.com>
187
188 * common/common-types.h: New file.
189 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
190 * common/common-defs.h: Include common-types.h.
191 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
192 (ULONGEST): Remove.
193
194 2014-08-19 Tom Tromey <tromey@redhat.com>
195 Gary Benson <gbenson@redhat.com>
196
197 * common/errors.h: New file.
198 * common/errors.c: Likewise.
199 * Makefile.in (SFILES): Add common/errors.c.
200 (HFILES_NO_SRCDIR): Add common/errors.h.
201 (COMMON_OBS): Add errors.o.
202 (errors.o): New rule.
203 * common/common-defs.h: Include errors.h.
204 * utils.h (perror_with_name, error, verror, warning, vwarning):
205 Don't declare.
206 * common/common-utils.h: (malloc_failure, internal_error):
207 Likewise.
208
209 2014-08-19 Gary Benson <gbenson@redhat.com>
210
211 * utils.c (internal_vproblem): Always print the message.
212
213 2014-08-18 Doug Evans <dje@google.com>
214
215 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
216
217 2014-08-18 Joel Brobecker <brobecker@adacore.com>
218
219 * ada-typeprint.c (type_is_full_subrange_of_target_type):
220 Return 0 if TYPE is dynamic.
221 (print_range): Add handling of dynamic ranges.
222
223 2014-08-18 Keven Boell <keven.boell@intel.com>
224 Joel Brobecker <brobecker@adacore.com>
225
226 * gdbtypes.h (struct main_type): Add field "data_location".
227 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
228 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
229 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
230 a dynamic data location.
231 (resolve_dynamic_type): Add DW_AT_data_location handling.
232 (copy_recursive, copy_type): Copy the data_location information
233 when present.
234 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
235 * value.c (value_from_contents_and_address): Add
236 DW_AT_data_location handling.
237
238 2014-08-18 Keven Boell <keven.boell@intel.com>
239 Joel Brobecker <brobecker@adacore.com>
240
241 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
242 field "get_object_address".
243 * dwarf2expr.c (execute_stack_op): Add handling for
244 DW_OP_push_object_address.
245 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
246 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
247 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
248 (dwarf_expr_get_obj_addr): New function.
249 (dwarf_expr_ctx_funcs): Add get_object_address field.
250 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
251 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
252 (dwarf2_evaluate_property): Add parameter "address". Use it.
253 (needs_get_obj_addr): New function.
254 (needs_frame_ctx_funcs): Add get_object_address field.
255 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
256 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
257 (resolve_dynamic_array): Likewise.
258
259 2014-08-18 Joel Brobecker <brobecker@adacore.com>
260
261 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
262 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
263 fixed value for records and unions for which some GNAT encodings
264 are present.
265
266 2014-08-18 Joel Brobecker <brobecker@adacore.com>
267
268 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
269 rewrite to avoid "else if" and "else" constructs. Should be
270 a no-op in practice.
271
272 2014-08-18 Joel Brobecker <brobecker@adacore.com>
273
274 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
275 of lexical block.
276
277 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
278
279 PR c++/17132
280 * eval.c: Update all calls to find_overload_match.
281 * valarith.c: Likewise.
282 (value_user_defined_cpp_op, value_user_defined_op): New
283 argument NOSIDE. Update all callers.
284 * valops.c (find_overload_match): New argument NOSIDE.
285 * value.h (find_overload_match): Update signature.
286
287 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
288
289 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
290 'items' methods instead of 'iteritems' method on dictionaries.
291
292 2014-08-15 Doug Evans <dje@google.com>
293
294 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
295 closer to use.
296
297 2014-08-15 Doug Evans <dje@google.com>
298
299 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
300
301 2014-08-15 Doug Evans <dje@google.com>
302
303 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
304
305 2014-08-15 Doug Evans <dje@google.com>
306
307 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
308 unused.
309
310 2014-08-15 Eli Zaretskii <eliz@gnu.org>
311
312 * dcache.h: Include target.h, to avoid compile time warnings.
313
314 2014-08-15 Joel Brobecker <brobecker@adacore.com>
315
316 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
317 frame_info" partial declaration.
318 * gdbarch.h: Regenerate.
319
320 2014-08-15 Yao Qi <yao@codesourcery.com>
321
322 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
323 Add parameter 'decode_for_pst_p'. Callers update.
324
325 2014-08-13 Yao Qi <yao@codesourcery.com>
326
327 PR build/17104
328 * configure.ac: Use local variable 'pos'.
329 * configure: Regenerated.
330
331 2014-08-11 Doug Evans <dje@google.com>
332
333 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
334 message, it is redundant with "Reading symbols from ..." message.
335
336 2014-08-10 Doug Evans <xdje42@gmail.com>
337
338 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
339
340 2014-08-09 Yao Qi <yao@codesourcery.com>
341
342 PR remote/9053
343 * remote.c (remote_xfer_partial): Remove dead code.
344
345 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
346
347 * ia64-linux-tdep.c: Include "regset.h".
348 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
349 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
350 (ia64_linux_supply_fpregset): New function.
351 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
352 (ia64_linux_regset_from_core_section): New function.
353 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
354 method.
355
356 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
357
358 * m68klinux-tdep.c: Include "regset.h".
359 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
360 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
361 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
362 (m68k_linux_regset_from_core_section): New function.
363 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
364 method.
365
366 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
367
368 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
369 function. Move logic to...
370 (tilegx_linux_regmap): ... this new register map.
371 (tilegx_linux_regset): Refer to register map, replace supply
372 method by regcache_supply_regset, and add collect method.
373 * tilegx-tdep.h (enum tilegx_regnum): New enum value
374 TILEGX_FIRST_EASY_REGNUM.
375
376 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
377
378 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
379 that calls regcache_supply_regset and handles the EPC register
380 separately. Move main logic to...
381 (score7_linux_gregmap): ... this new register map.
382 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
383 (score7_linux_gregset): Refer to register map. Add collect method.
384 (score7_linux_regset_from_core_section): Replace
385 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
386 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
387 (struct regset): Delete unused forward declaraction.
388 (struct pt_regs): Delete structure definition.
389 (elf_gregset_t): Delete typedef.
390
391 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
392
393 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
394 (nios2_core_regset): Add collect method.
395
396 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
397
398 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
399 platform-independent and don't write to read-only input buffer.
400 (m32r_linux_collect_gregset): New function.
401 (m32r_linux_gregset): Add collect method.
402
403 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
404
405 * hppa-linux-tdep.c (greg_map): Rename to...
406 (hppa_linux_gregmap): ... this. Also convert to
407 regcache_map_entry format.
408 (hppa_linux_supply_regset): Delete function.
409 (hppa_linux_supply_fpregset): Delete function. Move logic to...
410 (hppa_linux_fpregmap): ... this new register map.
411 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
412 register map, replace supply method by regcache_supply_regset, and
413 add collect method regcache_collect_regset.
414
415 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
416
417 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
418 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
419 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
420 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
421 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
422 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
423 (frv_linux_supply_gregset): Replace main logic by call to
424 regcache_supply_regset, but keep clearing gr32-gr63.
425 (frv_linux_supply_fpregset): Delete function.
426 (frv_linux_gregset): Refer to appropriate register map and add
427 regcache_collect_regset as the collect method.
428 (frv_linux_fpregset): Likewise. Also exchange the supply method
429 by regcache_supply_regset.
430
431 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
432
433 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
434 by call to alpha_supply_int_regs.
435 (alpha_linux_collect_gregset): New function.
436 (alpha_linux_supply_fpregset): Replace logic by call to
437 alpha_supply_fp_regs.
438 (alpha_linux_collect_fpregset): New function.
439 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
440
441 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
442
443 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
444 by call to regcache_collect_regset.
445 (supply_gregset, supply_fpregset): Call regcache_supply_regset
446 instead of aarch64_linux_supply_gregset/_fpregset.
447 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
448 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
449 header file instead.
450 (aarch64_linux_supply_gregset, supply_gregset_from_core)
451 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
452 functions. Move logic to ...
453 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
454 register maps.
455 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
456 refer to new register maps, replace *_regset_from_core by
457 regcache_supply_regset, and also use regcache_collect_regset.
458 * aarch64-linux-tdep.h: Include "regset.h".
459 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
460 Delete prototypes.
461 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
462 macros, moved from C source file.
463 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
464 variable declarations.
465
466 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
467
468 * s390-linux-nat.c: Include "regset.h".
469 (regmap_gregset): Delete macro.
470 (s390_64_regmap_gregset): New register map for
471 regcache_supply/_collect_regset.
472 (s390_64_gregset): New regset.
473 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
474 (regmap_fpregset): Delete macro.
475 (s390_native_supply, s390_native_collect): Delete functions.
476 (supply_gregset, fill_gregset): Replace s390-specific regmap
477 handling by a call to regcache_supply/_collect_regset.
478 (supply_fpregset, fill_fpregset): Call regcache_supply/
479 _collect_regset instead of s390_native_supply/_collect.
480 (fetch_regset, store_regset): Likewise. Also change the last
481 parameter to a regset instead of a regmap.
482 (s390_linux_fetch_inferior_registers)
483 (390_linux_store_inferior_registers): Adjust last parameter in
484 calls to fetch_regset and store_regset.
485 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
486 (s390_gregmap): ... this. Also make static const and convert to
487 regcache_map_entry format.
488 (s390x_regmap_gregset): Delete.
489 (s390_regmap_fpregset): Rename to...
490 (s390_fpregmap): ... this. Make static const and convert to
491 regcache_map_entry format.
492 (s390_regmap_upper, s390_regmap_last_break)
493 (s390x_regmap_last_break, s390_regmap_system_call)
494 (s390_regmap_tdb): Likewise.
495 (s390_supply_regset, s390_collect_regset): Remove functions.
496 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
497 s390_supply_regset.
498 (s390_gregset, s390_fpregset, s390_upper_regset)
499 (s390_last_break_regset, s390x_last_break_regset)
500 (s390_system_call_regset, s390_tdb_regset): Make global and
501 replace s390_supply/_collect_regset by regcache_supply/
502 _collect_regset.
503 (s390x_gregset): Delete.
504 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
505 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
506 (s390_regmap_fpregset, s390_regmap_last_break)
507 (s390x_regmap_last_break, s390_regmap_system_call)
508 (s390_regmap_tdb): Delete global variable declarations.
509 (s390_gregset, s390_fpregset, s390_last_break_regset)
510 (s390x_last_break_regset, s390_system_call_regset)
511 (s390_tdb_regset): New global variable declarations.
512
513 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
514
515 * regcache.c: Include "regset.h".
516 (regcache_transfer_regset): New local function.
517 (regcache_supply_regset, regcache_collect_regset): New functions.
518 * regcache.h (struct regcache_map_entry): New structure.
519 (REGCACHE_MAP_SKIP): New enum value.
520 (regcache_supply_regset, regcache_collect_regset): New prototypes.
521
522 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
523
524 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
525 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
526 (ppc_linux_collect_gregset ): Likewise.
527 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
528 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
529 (ppc_collect_vrregset): Likewise.
530 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
531 Likewise.
532
533 2014-08-07 Yao Qi <yao@codesourcery.com>
534
535 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
536 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
537 * remote.c (remote_read_bytes): Likewise.
538
539 2014-08-07 Yao Qi <yao@codesourcery.com>
540
541 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
542
543 2014-08-07 Yao Qi <yao@codesourcery.com>
544
545 PR remote/17230
546 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
547 TARGET_XFER_OK instead of 0.
548
549 2014-08-07 Gary Benson <gbenson@redhat.com>
550
551 * common/common-defs.h: Include errno.h.
552 * defs.h: Do not include errno.h.
553 * ada-typeprint.c: Likewise.
554 * c-typeprint.c: Likewise.
555 * core-regset.c: Likewise.
556 * corefile.c: Likewise.
557 * corelow.c: Likewise.
558 * event-loop.c: Likewise.
559 * f-typeprint.c: Likewise.
560 * gnu-nat.c: Likewise.
561 * go32-nat.c: Likewise.
562 * i386gnu-nat.c: Likewise.
563 * m2-typeprint.c: Likewise.
564 * nat/linux-btrace.c: Likewise.
565 * p-typeprint.c: Likewise.
566 * procfs.c: Likewise.
567 * remote-sim.c: Likewise.
568 * rs6000-nat.c: Likewise.
569 * target.c: Likewise.
570 * typeprint.c: Likewise.
571 * ui-file.c: Likewise.
572 * valops.c: Likewise.
573 * valprint.c: Likewise.
574
575 2014-08-07 Gary Benson <gbenson@redhat.com>
576
577 * common/common-defs.h: Include string.h.
578 * aarch64-tdep.c: Do not include string.h.
579 * ada-exp.y: Likewise.
580 * ada-lang.c: Likewise.
581 * ada-lex.l: Likewise.
582 * ada-typeprint.c: Likewise.
583 * ada-valprint.c: Likewise.
584 * aix-thread.c: Likewise.
585 * alpha-linux-tdep.c: Likewise.
586 * alpha-mdebug-tdep.c: Likewise.
587 * alpha-nat.c: Likewise.
588 * alpha-osf1-tdep.c: Likewise.
589 * alpha-tdep.c: Likewise.
590 * alphanbsd-tdep.c: Likewise.
591 * amd64-dicos-tdep.c: Likewise.
592 * amd64-linux-tdep.c: Likewise.
593 * amd64-nat.c: Likewise.
594 * amd64-sol2-tdep.c: Likewise.
595 * amd64fbsd-tdep.c: Likewise.
596 * amd64obsd-tdep.c: Likewise.
597 * arch-utils.c: Likewise.
598 * arm-linux-nat.c: Likewise.
599 * arm-linux-tdep.c: Likewise.
600 * arm-tdep.c: Likewise.
601 * arm-wince-tdep.c: Likewise.
602 * armbsd-tdep.c: Likewise.
603 * armnbsd-nat.c: Likewise.
604 * armnbsd-tdep.c: Likewise.
605 * armobsd-tdep.c: Likewise.
606 * avr-tdep.c: Likewise.
607 * ax-gdb.c: Likewise.
608 * ax-general.c: Likewise.
609 * bcache.c: Likewise.
610 * bfin-tdep.c: Likewise.
611 * breakpoint.c: Likewise.
612 * build-id.c: Likewise.
613 * buildsym.c: Likewise.
614 * c-exp.y: Likewise.
615 * c-lang.c: Likewise.
616 * c-typeprint.c: Likewise.
617 * c-valprint.c: Likewise.
618 * charset.c: Likewise.
619 * cli-out.c: Likewise.
620 * cli/cli-cmds.c: Likewise.
621 * cli/cli-decode.c: Likewise.
622 * cli/cli-dump.c: Likewise.
623 * cli/cli-interp.c: Likewise.
624 * cli/cli-logging.c: Likewise.
625 * cli/cli-script.c: Likewise.
626 * cli/cli-setshow.c: Likewise.
627 * cli/cli-utils.c: Likewise.
628 * coffread.c: Likewise.
629 * common/agent.c: Likewise.
630 * common/buffer.c: Likewise.
631 * common/buffer.h: Likewise.
632 * common/common-utils.c: Likewise.
633 * common/filestuff.c: Likewise.
634 * common/filestuff.c: Likewise.
635 * common/format.c: Likewise.
636 * common/print-utils.c: Likewise.
637 * common/rsp-low.c: Likewise.
638 * common/signals.c: Likewise.
639 * common/vec.h: Likewise.
640 * common/xml-utils.c: Likewise.
641 * core-regset.c: Likewise.
642 * corefile.c: Likewise.
643 * corelow.c: Likewise.
644 * cp-abi.c: Likewise.
645 * cp-name-parser.y: Likewise.
646 * cp-support.c: Likewise.
647 * cp-valprint.c: Likewise.
648 * cris-tdep.c: Likewise.
649 * d-exp.y: Likewise.
650 * darwin-nat.c: Likewise.
651 * dbxread.c: Likewise.
652 * dcache.c: Likewise.
653 * demangle.c: Likewise.
654 * dicos-tdep.c: Likewise.
655 * disasm.c: Likewise.
656 * doublest.c: Likewise.
657 * dsrec.c: Likewise.
658 * dummy-frame.c: Likewise.
659 * dwarf2-frame.c: Likewise.
660 * dwarf2loc.c: Likewise.
661 * dwarf2read.c: Likewise.
662 * elfread.c: Likewise.
663 * environ.c: Likewise.
664 * eval.c: Likewise.
665 * event-loop.c: Likewise.
666 * exceptions.c: Likewise.
667 * exec.c: Likewise.
668 * expprint.c: Likewise.
669 * f-exp.y: Likewise.
670 * f-lang.c: Likewise.
671 * f-typeprint.c: Likewise.
672 * f-valprint.c: Likewise.
673 * fbsd-nat.c: Likewise.
674 * findcmd.c: Likewise.
675 * findvar.c: Likewise.
676 * fork-child.c: Likewise.
677 * frame.c: Likewise.
678 * frv-linux-tdep.c: Likewise.
679 * frv-tdep.c: Likewise.
680 * gdb.c: Likewise.
681 * gdb_bfd.c: Likewise.
682 * gdbarch.c: Likewise.
683 * gdbarch.sh: Likewise.
684 * gdbtypes.c: Likewise.
685 * gnu-nat.c: Likewise.
686 * gnu-v2-abi.c: Likewise.
687 * gnu-v3-abi.c: Likewise.
688 * go-exp.y: Likewise.
689 * go-lang.c: Likewise.
690 * go32-nat.c: Likewise.
691 * guile/guile.c: Likewise.
692 * guile/scm-auto-load.c: Likewise.
693 * hppa-hpux-tdep.c: Likewise.
694 * hppa-linux-nat.c: Likewise.
695 * hppanbsd-tdep.c: Likewise.
696 * hppaobsd-tdep.c: Likewise.
697 * i386-cygwin-tdep.c: Likewise.
698 * i386-dicos-tdep.c: Likewise.
699 * i386-linux-tdep.c: Likewise.
700 * i386-nto-tdep.c: Likewise.
701 * i386-sol2-tdep.c: Likewise.
702 * i386-tdep.c: Likewise.
703 * i386bsd-tdep.c: Likewise.
704 * i386gnu-nat.c: Likewise.
705 * i386nbsd-tdep.c: Likewise.
706 * i386obsd-tdep.c: Likewise.
707 * i387-tdep.c: Likewise.
708 * ia64-libunwind-tdep.c: Likewise.
709 * ia64-linux-nat.c: Likewise.
710 * inf-child.c: Likewise.
711 * inf-ptrace.c: Likewise.
712 * inf-ttrace.c: Likewise.
713 * infcall.c: Likewise.
714 * infcmd.c: Likewise.
715 * inflow.c: Likewise.
716 * infrun.c: Likewise.
717 * interps.c: Likewise.
718 * iq2000-tdep.c: Likewise.
719 * irix5-nat.c: Likewise.
720 * jv-exp.y: Likewise.
721 * jv-lang.c: Likewise.
722 * jv-typeprint.c: Likewise.
723 * jv-valprint.c: Likewise.
724 * language.c: Likewise.
725 * linux-fork.c: Likewise.
726 * linux-nat.c: Likewise.
727 * lm32-tdep.c: Likewise.
728 * m2-exp.y: Likewise.
729 * m2-typeprint.c: Likewise.
730 * m32c-tdep.c: Likewise.
731 * m32r-linux-nat.c: Likewise.
732 * m32r-linux-tdep.c: Likewise.
733 * m32r-rom.c: Likewise.
734 * m32r-tdep.c: Likewise.
735 * m68hc11-tdep.c: Likewise.
736 * m68k-tdep.c: Likewise.
737 * m68kbsd-tdep.c: Likewise.
738 * m68klinux-nat.c: Likewise.
739 * m68klinux-tdep.c: Likewise.
740 * m88k-tdep.c: Likewise.
741 * machoread.c: Likewise.
742 * macrocmd.c: Likewise.
743 * main.c: Likewise.
744 * mdebugread.c: Likewise.
745 * mem-break.c: Likewise.
746 * memattr.c: Likewise.
747 * memory-map.c: Likewise.
748 * mep-tdep.c: Likewise.
749 * mi/mi-cmd-break.c: Likewise.
750 * mi/mi-cmd-disas.c: Likewise.
751 * mi/mi-cmd-env.c: Likewise.
752 * mi/mi-cmd-stack.c: Likewise.
753 * mi/mi-cmd-var.c: Likewise.
754 * mi/mi-cmds.c: Likewise.
755 * mi/mi-console.c: Likewise.
756 * mi/mi-getopt.c: Likewise.
757 * mi/mi-interp.c: Likewise.
758 * mi/mi-main.c: Likewise.
759 * mi/mi-parse.c: Likewise.
760 * microblaze-rom.c: Likewise.
761 * microblaze-tdep.c: Likewise.
762 * mingw-hdep.c: Likewise.
763 * minidebug.c: Likewise.
764 * minsyms.c: Likewise.
765 * mips-irix-tdep.c: Likewise.
766 * mips-linux-tdep.c: Likewise.
767 * mips-tdep.c: Likewise.
768 * mips64obsd-tdep.c: Likewise.
769 * mipsnbsd-tdep.c: Likewise.
770 * mipsread.c: Likewise.
771 * mn10300-linux-tdep.c: Likewise.
772 * mn10300-tdep.c: Likewise.
773 * monitor.c: Likewise.
774 * moxie-tdep.c: Likewise.
775 * mt-tdep.c: Likewise.
776 * nat/linux-btrace.c: Likewise.
777 * nat/linux-osdata.c: Likewise.
778 * nat/linux-procfs.c: Likewise.
779 * nat/linux-ptrace.c: Likewise.
780 * nat/linux-waitpid.c: Likewise.
781 * nbsd-tdep.c: Likewise.
782 * nios2-linux-tdep.c: Likewise.
783 * nto-procfs.c: Likewise.
784 * nto-tdep.c: Likewise.
785 * objc-lang.c: Likewise.
786 * objfiles.c: Likewise.
787 * opencl-lang.c: Likewise.
788 * osabi.c: Likewise.
789 * osdata.c: Likewise.
790 * p-exp.y: Likewise.
791 * p-lang.c: Likewise.
792 * p-typeprint.c: Likewise.
793 * parse.c: Likewise.
794 * posix-hdep.c: Likewise.
795 * ppc-linux-nat.c: Likewise.
796 * ppc-sysv-tdep.c: Likewise.
797 * ppcfbsd-tdep.c: Likewise.
798 * ppcnbsd-tdep.c: Likewise.
799 * ppcobsd-tdep.c: Likewise.
800 * printcmd.c: Likewise.
801 * procfs.c: Likewise.
802 * prologue-value.c: Likewise.
803 * python/py-auto-load.c: Likewise.
804 * python/py-gdb-readline.c: Likewise.
805 * ravenscar-thread.c: Likewise.
806 * regcache.c: Likewise.
807 * registry.c: Likewise.
808 * remote-fileio.c: Likewise.
809 * remote-m32r-sdi.c: Likewise.
810 * remote-mips.c: Likewise.
811 * remote-notif.c: Likewise.
812 * remote-sim.c: Likewise.
813 * remote.c: Likewise.
814 * reverse.c: Likewise.
815 * rs6000-aix-tdep.c: Likewise.
816 * ser-base.c: Likewise.
817 * ser-go32.c: Likewise.
818 * ser-mingw.c: Likewise.
819 * ser-pipe.c: Likewise.
820 * ser-tcp.c: Likewise.
821 * ser-unix.c: Likewise.
822 * serial.c: Likewise.
823 * sh-tdep.c: Likewise.
824 * sh64-tdep.c: Likewise.
825 * shnbsd-tdep.c: Likewise.
826 * skip.c: Likewise.
827 * sol-thread.c: Likewise.
828 * solib-dsbt.c: Likewise.
829 * solib-frv.c: Likewise.
830 * solib-osf.c: Likewise.
831 * solib-som.c: Likewise.
832 * solib-spu.c: Likewise.
833 * solib-target.c: Likewise.
834 * solib.c: Likewise.
835 * somread.c: Likewise.
836 * source.c: Likewise.
837 * sparc-nat.c: Likewise.
838 * sparc-sol2-tdep.c: Likewise.
839 * sparc-tdep.c: Likewise.
840 * sparc64-tdep.c: Likewise.
841 * sparc64fbsd-tdep.c: Likewise.
842 * sparc64nbsd-tdep.c: Likewise.
843 * sparcnbsd-tdep.c: Likewise.
844 * spu-linux-nat.c: Likewise.
845 * spu-multiarch.c: Likewise.
846 * spu-tdep.c: Likewise.
847 * stabsread.c: Likewise.
848 * stack.c: Likewise.
849 * std-regs.c: Likewise.
850 * symfile.c: Likewise.
851 * symmisc.c: Likewise.
852 * symtab.c: Likewise.
853 * target.c: Likewise.
854 * thread.c: Likewise.
855 * tilegx-linux-nat.c: Likewise.
856 * tilegx-tdep.c: Likewise.
857 * top.c: Likewise.
858 * tracepoint.c: Likewise.
859 * tui/tui-command.c: Likewise.
860 * tui/tui-data.c: Likewise.
861 * tui/tui-disasm.c: Likewise.
862 * tui/tui-file.c: Likewise.
863 * tui/tui-layout.c: Likewise.
864 * tui/tui-out.c: Likewise.
865 * tui/tui-regs.c: Likewise.
866 * tui/tui-source.c: Likewise.
867 * tui/tui-stack.c: Likewise.
868 * tui/tui-win.c: Likewise.
869 * tui/tui-windata.c: Likewise.
870 * tui/tui-winsource.c: Likewise.
871 * typeprint.c: Likewise.
872 * ui-file.c: Likewise.
873 * ui-out.c: Likewise.
874 * user-regs.c: Likewise.
875 * utils.c: Likewise.
876 * v850-tdep.c: Likewise.
877 * valarith.c: Likewise.
878 * valops.c: Likewise.
879 * valprint.c: Likewise.
880 * value.c: Likewise.
881 * varobj.c: Likewise.
882 * vax-tdep.c: Likewise.
883 * vaxnbsd-tdep.c: Likewise.
884 * vaxobsd-tdep.c: Likewise.
885 * windows-nat.c: Likewise.
886 * xcoffread.c: Likewise.
887 * xml-support.c: Likewise.
888 * xstormy16-tdep.c: Likewise.
889 * xtensa-linux-nat.c: Likewise.
890
891 2014-08-07 Gary Benson <gbenson@redhat.com>
892
893 * common/common-defs.h: Include gdb_assert.h.
894 * aarch64-tdep.c: Do not include gdb_assert.h.
895 * addrmap.c: Likewise.
896 * aix-thread.c: Likewise.
897 * alpha-linux-tdep.c: Likewise.
898 * alpha-mdebug-tdep.c: Likewise.
899 * alphanbsd-tdep.c: Likewise.
900 * amd64-nat.c: Likewise.
901 * amd64-tdep.c: Likewise.
902 * amd64bsd-nat.c: Likewise.
903 * amd64fbsd-nat.c: Likewise.
904 * amd64fbsd-tdep.c: Likewise.
905 * amd64nbsd-nat.c: Likewise.
906 * amd64nbsd-tdep.c: Likewise.
907 * amd64obsd-nat.c: Likewise.
908 * amd64obsd-tdep.c: Likewise.
909 * arch-utils.c: Likewise.
910 * arm-tdep.c: Likewise.
911 * armbsd-tdep.c: Likewise.
912 * auxv.c: Likewise.
913 * bcache.c: Likewise.
914 * bfin-tdep.c: Likewise.
915 * blockframe.c: Likewise.
916 * breakpoint.c: Likewise.
917 * bsd-kvm.c: Likewise.
918 * bsd-uthread.c: Likewise.
919 * buildsym.c: Likewise.
920 * c-exp.y: Likewise.
921 * c-lang.c: Likewise.
922 * charset.c: Likewise.
923 * cleanups.c: Likewise.
924 * cli-out.c: Likewise.
925 * cli/cli-decode.c: Likewise.
926 * cli/cli-dump.c: Likewise.
927 * cli/cli-logging.c: Likewise.
928 * cli/cli-script.c: Likewise.
929 * cli/cli-utils.c: Likewise.
930 * coffread.c: Likewise.
931 * common/common-utils.c: Likewise.
932 * common/queue.h: Likewise.
933 * common/signals.c: Likewise.
934 * common/vec.h: Likewise.
935 * complaints.c: Likewise.
936 * completer.c: Likewise.
937 * corelow.c: Likewise.
938 * cp-abi.c: Likewise.
939 * cp-name-parser.y: Likewise.
940 * cp-namespace.c: Likewise.
941 * cp-support.c: Likewise.
942 * cris-tdep.c: Likewise.
943 * dbxread.c: Likewise.
944 * dictionary.c: Likewise.
945 * doublest.c: Likewise.
946 * dsrec.c: Likewise.
947 * dummy-frame.c: Likewise.
948 * dwarf2-frame-tailcall.c: Likewise.
949 * dwarf2-frame.c: Likewise.
950 * dwarf2expr.c: Likewise.
951 * dwarf2loc.c: Likewise.
952 * dwarf2read.c: Likewise.
953 * eval.c: Likewise.
954 * event-loop.c: Likewise.
955 * exceptions.c: Likewise.
956 * expprint.c: Likewise.
957 * f-valprint.c: Likewise.
958 * fbsd-nat.c: Likewise.
959 * findvar.c: Likewise.
960 * frame-unwind.c: Likewise.
961 * frame.c: Likewise.
962 * frv-tdep.c: Likewise.
963 * gcore.c: Likewise.
964 * gdb-dlfcn.c: Likewise.
965 * gdb_bfd.c: Likewise.
966 * gdbarch.c: Likewise.
967 * gdbarch.sh: Likewise.
968 * gdbtypes.c: Likewise.
969 * gnu-nat.c: Likewise.
970 * gnu-v3-abi.c: Likewise.
971 * go-lang.c: Likewise.
972 * guile/scm-exception.c: Likewise.
973 * guile/scm-gsmob.c: Likewise.
974 * guile/scm-lazy-string.c: Likewise.
975 * guile/scm-math.c: Likewise.
976 * guile/scm-pretty-print.c: Likewise.
977 * guile/scm-safe-call.c: Likewise.
978 * guile/scm-utils.c: Likewise.
979 * guile/scm-value.c: Likewise.
980 * h8300-tdep.c: Likewise.
981 * hppa-hpux-nat.c: Likewise.
982 * hppa-tdep.c: Likewise.
983 * hppanbsd-tdep.c: Likewise.
984 * hppaobsd-tdep.c: Likewise.
985 * i386-darwin-nat.c: Likewise.
986 * i386-darwin-tdep.c: Likewise.
987 * i386-nto-tdep.c: Likewise.
988 * i386-tdep.c: Likewise.
989 * i386bsd-nat.c: Likewise.
990 * i386fbsd-tdep.c: Likewise.
991 * i386gnu-nat.c: Likewise.
992 * i386nbsd-tdep.c: Likewise.
993 * i386obsd-tdep.c: Likewise.
994 * i387-tdep.c: Likewise.
995 * ia64-libunwind-tdep.c: Likewise.
996 * ia64-tdep.c: Likewise.
997 * inf-ptrace.c: Likewise.
998 * inf-ttrace.c: Likewise.
999 * infcall.c: Likewise.
1000 * infcmd.c: Likewise.
1001 * infrun.c: Likewise.
1002 * inline-frame.c: Likewise.
1003 * interps.c: Likewise.
1004 * jv-lang.c: Likewise.
1005 * jv-typeprint.c: Likewise.
1006 * linux-fork.c: Likewise.
1007 * linux-nat.c: Likewise.
1008 * linux-thread-db.c: Likewise.
1009 * m32c-tdep.c: Likewise.
1010 * m32r-linux-nat.c: Likewise.
1011 * m32r-tdep.c: Likewise.
1012 * m68k-tdep.c: Likewise.
1013 * m68kbsd-nat.c: Likewise.
1014 * m68kbsd-tdep.c: Likewise.
1015 * m88k-tdep.c: Likewise.
1016 * machoread.c: Likewise.
1017 * macroexp.c: Likewise.
1018 * macrotab.c: Likewise.
1019 * maint.c: Likewise.
1020 * mdebugread.c: Likewise.
1021 * memory-map.c: Likewise.
1022 * mep-tdep.c: Likewise.
1023 * mi/mi-common.c: Likewise.
1024 * microblaze-tdep.c: Likewise.
1025 * mingw-hdep.c: Likewise.
1026 * mips-linux-nat.c: Likewise.
1027 * mips-linux-tdep.c: Likewise.
1028 * mips-tdep.c: Likewise.
1029 * mips64obsd-tdep.c: Likewise.
1030 * mipsnbsd-tdep.c: Likewise.
1031 * mn10300-linux-tdep.c: Likewise.
1032 * mn10300-tdep.c: Likewise.
1033 * moxie-tdep.c: Likewise.
1034 * mt-tdep.c: Likewise.
1035 * nat/linux-btrace.c: Likewise.
1036 * nat/linux-osdata.c: Likewise.
1037 * nat/linux-ptrace.c: Likewise.
1038 * nat/mips-linux-watch.c: Likewise.
1039 * nios2-linux-tdep.c: Likewise.
1040 * nios2-tdep.c: Likewise.
1041 * objc-lang.c: Likewise.
1042 * objfiles.c: Likewise.
1043 * obsd-nat.c: Likewise.
1044 * opencl-lang.c: Likewise.
1045 * osabi.c: Likewise.
1046 * parse.c: Likewise.
1047 * ppc-linux-nat.c: Likewise.
1048 * ppc-sysv-tdep.c: Likewise.
1049 * ppcfbsd-nat.c: Likewise.
1050 * ppcfbsd-tdep.c: Likewise.
1051 * ppcnbsd-nat.c: Likewise.
1052 * ppcnbsd-tdep.c: Likewise.
1053 * ppcobsd-nat.c: Likewise.
1054 * ppcobsd-tdep.c: Likewise.
1055 * printcmd.c: Likewise.
1056 * procfs.c: Likewise.
1057 * prologue-value.c: Likewise.
1058 * psymtab.c: Likewise.
1059 * python/py-lazy-string.c: Likewise.
1060 * python/py-value.c: Likewise.
1061 * regcache.c: Likewise.
1062 * reggroups.c: Likewise.
1063 * registry.c: Likewise.
1064 * remote-sim.c: Likewise.
1065 * remote.c: Likewise.
1066 * rs6000-aix-tdep.c: Likewise.
1067 * rs6000-tdep.c: Likewise.
1068 * s390-linux-tdep.c: Likewise.
1069 * score-tdep.c: Likewise.
1070 * ser-base.c: Likewise.
1071 * ser-mingw.c: Likewise.
1072 * sh-tdep.c: Likewise.
1073 * sh64-tdep.c: Likewise.
1074 * solib-darwin.c: Likewise.
1075 * solib-spu.c: Likewise.
1076 * solib-svr4.c: Likewise.
1077 * source.c: Likewise.
1078 * sparc-nat.c: Likewise.
1079 * sparc-sol2-tdep.c: Likewise.
1080 * sparc-tdep.c: Likewise.
1081 * sparc64-sol2-tdep.c: Likewise.
1082 * sparc64-tdep.c: Likewise.
1083 * sparc64fbsd-tdep.c: Likewise.
1084 * sparc64nbsd-tdep.c: Likewise.
1085 * sparc64obsd-tdep.c: Likewise.
1086 * sparcnbsd-tdep.c: Likewise.
1087 * sparcobsd-tdep.c: Likewise.
1088 * spu-multiarch.c: Likewise.
1089 * spu-tdep.c: Likewise.
1090 * stabsread.c: Likewise.
1091 * stack.c: Likewise.
1092 * symfile.c: Likewise.
1093 * symtab.c: Likewise.
1094 * target-descriptions.c: Likewise.
1095 * target-memory.c: Likewise.
1096 * target.c: Likewise.
1097 * tic6x-linux-tdep.c: Likewise.
1098 * tic6x-tdep.c: Likewise.
1099 * tilegx-linux-nat.c: Likewise.
1100 * tilegx-tdep.c: Likewise.
1101 * top.c: Likewise.
1102 * tramp-frame.c: Likewise.
1103 * tui/tui-out.c: Likewise.
1104 * tui/tui-winsource.c: Likewise.
1105 * ui-out.c: Likewise.
1106 * user-regs.c: Likewise.
1107 * utils.c: Likewise.
1108 * v850-tdep.c: Likewise.
1109 * valops.c: Likewise.
1110 * value.c: Likewise.
1111 * varobj.c: Likewise.
1112 * vax-nat.c: Likewise.
1113 * xml-syscall.c: Likewise.
1114 * xml-tdesc.c: Likewise.
1115 * xstormy16-tdep.c: Likewise.
1116 * xtensa-linux-nat.c: Likewise.
1117 * xtensa-tdep.c: Likewise.
1118
1119 2014-08-07 Gary Benson <gbenson@redhat.com>
1120
1121 * common/common-defs.h: Include common-utils.h.
1122 * defs.h: Do not include common-utils.h.
1123 * common/gdb_assert.h: Likewise.
1124 * darwin-nat.h: Likewise.
1125 * nat/linux-btrace.c: Likewise.
1126 * target/waitstatus.h: Likewise.
1127
1128 2014-08-07 Gary Benson <gbenson@redhat.com>
1129
1130 * common/common-defs.h: Include ptid.h.
1131 * defs.h: Do not include ptid.h.
1132 * inferior.h: Likewise.
1133 * infrun.h: Likewise.
1134 * nat/linux-btrace.h: Likewise.
1135 * nat/linux-osdata.h: Likewise.
1136 * target/waitstatus.h: Likewise.
1137
1138 2014-08-07 Gary Benson <gbenson@redhat.com>
1139
1140 * common/common-defs.h: Include gdb_locale.h.
1141 * defs.h: Do not include gdb_locale.h.
1142
1143 2014-08-07 Gary Benson <gbenson@redhat.com>
1144
1145 * common/common-defs.h: Include gdb/signals.h.
1146 * defs.h: Do not include gdb/signals.h.
1147
1148 2014-08-07 Gary Benson <gbenson@redhat.com>
1149
1150 * common/common-defs.h: Include pathmax.h.
1151 * defs.h: Do not include pathmax.h.
1152
1153 2014-08-07 Gary Benson <gbenson@redhat.com>
1154
1155 * common/common-defs.h: Include libiberty.h.
1156 * defs.h: Do not include libiberty.h.
1157 * common/queue.h: Likewise.
1158 * cp-name-parser.y: Likewise.
1159 * mi/mi-cmd-catch.c: Likewise.
1160 * python/python.c: Likewise.
1161
1162 2014-08-07 Gary Benson <gbenson@redhat.com>
1163
1164 * common/common-defs.h: Include ansidecl.h.
1165 * defs.h: Do not include ansidecl.h.
1166 * common/buffer.h: Likewise.
1167 * common/common-utils.h: Likewise.
1168
1169 2014-08-07 Gary Benson <gbenson@redhat.com>
1170
1171 * common/common-defs.h: Include stddef.h.
1172 * defs.h: Do not include stddef.h.
1173 * common/common-utils.h: Likewise.
1174 * amd64fbsd-nat.c: Likewise.
1175 * bcache.c: Likewise.
1176 * charset.c: Likewise.
1177 * common/buffer.h: Likewise.
1178 * common/vec.h: Likewise.
1179 * i386bsd-nat.c: Likewise.
1180 * nat/linux-btrace.h: Likewise.
1181 * ppcfbsd-nat.c: Likewise.
1182 * ppcnbsd-tdep.h: Likewise.
1183 * ppcobsd-nat.c: Likewise.
1184 * ppcobsd-tdep.h: Likewise.
1185 * python/py-gdb-readline.c: Likewise.
1186
1187 2014-08-07 Gary Benson <gbenson@redhat.com>
1188
1189 * common/common-defs.h: Include stdarg.h.
1190 * defs.h: Do not include stdarg.h.
1191 * ada-lang.c: Likewise.
1192 * common/common-utils.h: Likewise.
1193 * guile/scm-string.c: Likewise.
1194 * guile/scm-utils.c: Likewise.
1195 * m32c-tdep.c: Likewise.
1196
1197 2014-08-07 Gary Benson <gbenson@redhat.com>
1198
1199 * common/common-defs.h: Include stdlib.h.
1200 * defs.h: Do not include stdlib.h.
1201 * addrmap.c: Likewise.
1202 * bcache.c: Likewise.
1203 * common/buffer.c: Likewise.
1204 * common/common-utils.c: Likewise.
1205 * cp-name-parser.y: Likewise.
1206 * go32-nat.c: Likewise.
1207 * mn10300-linux-tdep.c: Likewise.
1208 * nat/linux-osdata.c: Likewise.
1209 * tui/tui.c: Likewise.
1210 * windows-nat.c: Likewise.
1211
1212 2014-08-07 Gary Benson <gbenson@redhat.com>
1213
1214 * common/common-defs.h: Include stdio.h.
1215 * defs.h: Do not include stdio.h.
1216 * ada-lang.c: Likewise.
1217 * common/buffer.c: Likewise.
1218 * common/common-utils.c: Likewise.
1219 * cp-name-parser.y: Likewise.
1220 * gnu-nat.c: Likewise.
1221 * go32-nat.c: Likewise.
1222 * i386gnu-nat.c: Likewise.
1223 * proc-api.c: Likewise.
1224 * proc-events.c: Likewise.
1225 * proc-flags.c: Likewise.
1226 * proc-why.c: Likewise.
1227 * python/python-internal.h: Likewise.
1228 * target-memory.c: Likewise.
1229 * tui/tui-io.c: Likewise.
1230 * tui/tui.c: Likewise.
1231
1232 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1233
1234 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1235 (scan_dyntag_auxv): Same.
1236
1237 2014-08-06 Yao Qi <yao@codesourcery.com>
1238
1239 * amd64-linux-nat.c: Remove duplicated include
1240 "x86-linux-nat.h".
1241 * i386-linux-nat.c: Likewise.
1242
1243 2014-08-06 Yao Qi <yao@codesourcery.com>
1244
1245 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1246 operand" with "Special opcode" in comments.
1247
1248 2014-08-05 Gary Benson <gbenson@redhat.com>
1249
1250 * interps.c (initialize_interps): Remove prototype.
1251 (interpreter_initialized): Remove static global.
1252 (interp_add): Do not call initialize_interps.
1253 (initialize_interps): Remove function.
1254
1255 2014-08-05 Gary Benson <gbenson@redhat.com>
1256
1257 * utils.c (vwarning): Remove spurious va_end.
1258
1259 2014-08-05 Alan Modra <amodra@gmail.com>
1260
1261 * charset.c (convert_between_encodings): Cast result of obstack_base.
1262 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1263 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1264 (read_unwind_info): Use size_t for some locals.
1265 * jit.c (finalize_symtab): Likewise.
1266 * utils.c (hashtab_obstack_allocate): Likewise.
1267 * symmisc.c (print_objfile_statistics): Update format strings.
1268
1269 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1270
1271 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1272 (Changes in GDB 7.8): ... here.
1273
1274 2014-08-04 Tom Tromey <tromey@redhat.com>
1275
1276 * target.c (set_targetdebug): New function.
1277 (initialize_targets): Pass set_targetdebug when creating "set
1278 debug target".
1279
1280 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1281
1282 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1283 if detecting a variable-sized field that is not the last field.
1284 Fix struct type length computation.
1285
1286 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1287
1288 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1289 Add debug trace.
1290
1291 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1292
1293 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1294 Remove "+ 8" offset in computation of CHAIN_VMA.
1295
1296 2014-07-31 Doug Evans <dje@google.com>
1297
1298 * inflow.c (child_terminal_inferior): Add comment.
1299 (child_terminal_ours_for_output): Add comment.
1300 (child_terminal_ours): Add comment.
1301 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1302 (linux_nat_terminal_ours): Add comment.
1303
1304 2014-07-31 Gary Benson <gbenson@redhat.com>
1305
1306 * common/btrace-common.h: Do not include defs.h or server.h.
1307 * nat/mips-linux-watch.h: Likewise.
1308 * gdb-dlfcn.h: Do not include defs.h.
1309 * tracefile.h: Likewise.
1310
1311 2014-07-30 Roland McGrath <mcgrathr@google.com>
1312
1313 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1314
1315 2014-07-30 Tom Tromey <tromey@redhat.com>
1316
1317 * bsd-kvm.c (bsd_kvm_open): Constify.
1318 * corelow.c (core_open): Constify.
1319 * ctf.c (ctf_open): Constify.
1320 * dbug-rom.c (dbug_open): Constify.
1321 * exec.c (exec_open): Constify.
1322 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1323 * microblaze-rom.c (picobug_open): Constify.
1324 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1325 Constify.
1326 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1327 * record-btrace.c (record_btrace_open): Constify.
1328 * record-full.c (record_full_core_open_1, record_full_open_1)
1329 (record_full_open): Constify.
1330 * remote-m32r-sdi.c (m32r_open): Constify.
1331 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1332 (rockhopper_open, lsi_open): Constify.
1333 * remote-sim.c (gdbsim_open): Constify.
1334 * remote.c (remote_open, extended_remote_open, remote_open_1):
1335 Constify.
1336 * target.h (struct target_ops) <to_open>: Make "arg" const.
1337 * tracefile-tfile.c (tfile_open): Constify.
1338
1339 2014-07-30 Tom Tromey <tromey@redhat.com>
1340
1341 * breakpoint.c (map_breakpoint_numbers): Update.
1342 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1343 (get_number_const): New function.
1344 (get_number): Rewrite using get_number_const.
1345 (init_number_or_range): Make "string" const.
1346 (number_is_in_list): Make "list" const.
1347 * cli/cli-utils.h (get_number_const): Declare.
1348 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1349 (init_number_or_range, number_is_in_list): Update.
1350 * printcmd.c (map_display_numbers): Update.
1351 * value.c (value_from_history_ref): Constify.
1352 * value.h (value_from_history_ref): Update.
1353
1354 2014-07-30 Tom Tromey <tromey@redhat.com>
1355
1356 * corefile.c (hook_type, call_extra_exec_file_hooks)
1357 (specify_exec_file_hook): Constify.
1358 * exec.c (exec_file_attach): Make "filename" const.
1359 * gdbcore.h (deprecated_exec_file_display_hook)
1360 (specify_exec_file_hook, exec_file_attach): Constify.
1361 * main.c (captured_main): Use catch_command_errors_const.
1362
1363 2014-07-30 Tom Tromey <tromey@redhat.com>
1364
1365 * target.c (open_target): New function.
1366 (add_target_with_completer, add_deprecated_target_alias): Use
1367 set_cmd_sfunc, set_cmd_context.
1368 (debug_to_open): Remove.
1369 (setup_target_debug): Update.
1370
1371 2014-07-30 Yao Qi <yao@codesourcery.com>
1372
1373 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1374 comments.
1375 * parse.c (exp_iterate): Update comments.
1376
1377 2014-07-30 Gary Benson <gbenson@redhat.com>
1378
1379 * common/common-defs.h: New file.
1380 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1381 * defs.h: Include common-defs.h.
1382 Do not include config.h or build-gnulib/config.h.
1383
1384 2014-07-30 Gary Benson <gbenson@redhat.com>
1385
1386 * common/common-utils.h: Do not include config.h.
1387 * nat/linux-btrace.h: Likewise.
1388
1389 2014-07-30 Gary Benson <gbenson@redhat.com>
1390
1391 * btrace.c: Include defs.h.
1392 * common/ptid.c: Include defs.h or server.h as appropriate.
1393 * nat/mips-linux-watch.c: Likewise.
1394
1395 2014-07-29 Tom Tromey <tromey@redhat.com>
1396
1397 * target.c (target_is_pushed): Simplify.
1398
1399 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1400
1401 GDB 7.8 released.
1402
1403 2014-07-29 Yao Qi <yao@codesourcery.com>
1404
1405 PR gdb/17206
1406 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1407
1408 2014-07-28 Doug Evans <xdje42@gmail.com>
1409
1410 PR guile/17203
1411 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1412 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1413 parameters.
1414
1415 2014-07-28 Will Newton <will.newton@linaro.org>
1416
1417 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1418 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1419 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1420 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1421 (THUMB2_EABI_SYSCALL): Likewise.
1422 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1423 struct tramp_frame.
1424 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1425 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1426
1427 2014-07-27 Doug Evans <xdje42@gmail.com>
1428
1429 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1430
1431 2014-07-27 Doug Evans <xdje42@gmail.com>
1432
1433 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1434
1435 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1436 Doug Evans <xdje42@gmail.com>
1437
1438 PR guile/17146
1439 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1440 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1441 * configure.ac: Try to use guild to compile an scm file, if it fails
1442 then disable guile support.
1443 * configure: Regenerate.
1444 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1445 GUILE_FILE_LIST.
1446 (GUILE_COMPILED_FILES): New variable.
1447 (GUILE_FILES) Update.
1448 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1449 (stamp-guile): Compile scm files.
1450 * guile/guile.c (boot_guile_support): New function.
1451 (standard_throw_args_p): New function.
1452 (print_standard_throw_error, print_throw_error): New functions.
1453 (handle_boot_error): New function.
1454 (initialize_scheme_side): Rewrite to call boot_guile_support.
1455 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1456 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1457
1458 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1459 Doug Evans <xdje42@gmail.com>
1460
1461 PR guile/17146
1462 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1463 * guile/lib/gdb/support.scm: New file.
1464 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1465 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1466 All uses updated.
1467 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1468 All uses updated.
1469 (%assert-type): Ditto, and renamed to assert-type.
1470 (%exception-print-style): Delete.
1471
1472 2014-07-26 Doug Evans <xdje42@gmail.com>
1473
1474 PR build/17105
1475 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1476 * configure: Regenerate.
1477 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1478 PYTHON_FILES.
1479 (PYTHON_FILES): New variable.
1480 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1481 (GUILE_FILES): New variable.
1482 (stamp-python, install-python, uninstall-python): Handle empty
1483 file list.
1484 (stamp-guile, install-guile, uninstall-guile): Ditto.
1485
1486 2014-07-26 Doug Evans <xdje42@gmail.com>
1487
1488 PR guile/17177
1489 * guile/lib/gdb.scm (pretty-printers): Export.
1490 (set-pretty-printers!): Export.
1491 * guile/lib/gdb/printing.scm (gdb module): Update.
1492 (prepend-pretty-printer!, append-pretty-printer!): Update.
1493 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1494 (pretty_printer_list_var): Delete.
1495 (pretty_printer_list): New static global.
1496 (gdbscm_pretty_printers): New function.
1497 (gdbscm_set_pretty_printers_x): New function.
1498 (ppscm_find_pretty_printer_from_gdb): Update.
1499 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1500 (gdbscm_initialize_pretty_printers): Update.
1501
1502 2014-07-26 Doug Evans <xdje42@gmail.com>
1503
1504 PR 17185
1505 * configure.ac: Add check for header gc/gc.h.
1506 Add check for function setenv.
1507 * configure: Regenerate.
1508 * config.in: Regenerate.
1509 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1510
1511 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1512
1513 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1514 variation in gdbarch matching.
1515
1516 2014-07-25 Tom Tromey <tromey@redhat.com>
1517
1518 * exec.c (using_exec_ops): Remove.
1519 (exec_close_1): Update. Remove extraneous block, reindent.
1520 (add_target_sections): Use target_is_pushed.
1521
1522 2014-07-25 Pedro Alves <palves@redhat.com>
1523
1524 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1525 * monitor.c (monitor_create_inferior): Likewise.
1526 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1527 * remote-sim.c (gdbsim_create_inferior): Likewise.
1528 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1529 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1530 * windows-nat.c (do_initial_windows_stuff): Likewise.
1531
1532 2014-07-25 Pedro Alves <palves@redhat.com>
1533
1534 * NEWS: Mention signal passing and "signal" command changes.
1535 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1536 comment.
1537 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1538 call.
1539 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1540 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1541 (jump_command): Adjust clear_proceed_status call.
1542 (signal_command): Warn if other thread that are resumed have
1543 signals that will be delivered. Adjust clear_proceed_status call.
1544 (until_next_command, finish_command)
1545 (proceed_after_attach_callback, attach_command_post_wait)
1546 (attach_command): Adjust clear_proceed_status call.
1547 * infrun.c (proceed_after_vfork_done): Likewise.
1548 (proceed_after_attach_callback): Adjust comment.
1549 (clear_proceed_status_thread): Clear stop_signal if not in pass
1550 state.
1551 (clear_proceed_status_callback): Delete.
1552 (clear_proceed_status): New 'step' parameter. Only clear the
1553 proceed status of threads the command being prepared is about to
1554 resume.
1555 (proceed): If passed in an explicit signal, override stop_signal
1556 with it. Don't pass the last stop signal to the thread we're
1557 resuming.
1558 (init_wait_for_inferior): Adjust clear_proceed_status call.
1559 (switch_back_to_stepped_thread): Clear the signal if it should not
1560 be passed.
1561 * infrun.h (clear_proceed_status): New 'step' parameter.
1562 (user_visible_resume_ptid): Add comment.
1563 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1564 signal is in pass state.
1565 * remote.c (append_pending_thread_resumptions): Likewise.
1566 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1567
1568 2014-07-25 Tom Tromey <tromey@redhat.com>
1569
1570 * target.h (target_stopped_data_address)
1571 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1572 parentheses.
1573
1574 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1575
1576 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1577 comments.
1578 (avr_pointer_to_address): Likewise.
1579
1580 2014-07-24 Tom Tromey <tromey@redhat.com>
1581
1582 * monitor.c (compile_pattern): Update.
1583 * target.h (struct target_ops) <to_shortname, to_longname,
1584 to_doc>: Now const.
1585
1586 2014-07-24 Tom Tromey <tromey@redhat.com>
1587
1588 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1589 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1590 (add_info_alias, add_com): Make "doc" const.
1591 (print_doc_line): Make "str" const.
1592 (delete_cmd): Update.
1593 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1594 (print_doc_line): Update.
1595 * cli/cli-script.c (document_command): Update.
1596 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1597 (add_com, add_info, add_info_alias): Update.
1598 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1599 * python/py-cmd.c (cmdpy_destroyer): Update.
1600
1601 2014-07-24 Tom Tromey <tromey@redhat.com>
1602
1603 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1604 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1605 (help_cmd_list): Constify.
1606 (lookup_cmd): Update.
1607 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1608 const.
1609 (help_cmd_list, apropos_cmd): Update.
1610 * cli/cli-script.c (show_user): Update.
1611 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1612 * cli/cli-setshow.h (cmd_show_list): Update.
1613 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1614 (cmd_show_list): Update.
1615 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1616 * python/py-cmd.c (cmdpy_destroyer): Update.
1617
1618 2014-07-24 Tom Tromey <tromey@redhat.com>
1619
1620 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1621 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1622 const.
1623 * command.h (deprecate_cmd): Update.
1624 * maint.c (maintenance_do_deprecate): Add casts.
1625
1626 2014-07-24 Tom Tromey <tromey@redhat.com>
1627
1628 * cli/cli-decode.c (help_cmd): Make parameter "const".
1629 * cli/cli-decode.h (help_cmd): Update.
1630
1631 2014-07-24 Tom Tromey <tromey@redhat.com>
1632
1633 * stack.c (up_silently_base, down_silently_base): Make argument
1634 const.
1635
1636 2014-07-24 Tom Tromey <tromey@redhat.com>
1637
1638 * solib.c (solib_add): Make "pattern" const.
1639 * solib.h (solib_add): Update.
1640
1641 2014-07-24 Tom Tromey <tromey@redhat.com>
1642
1643 * remote.c (remote_serial_open, print_packet, putpkt)
1644 (putpkt_binary): Constify.
1645 * remote.h (putpkt): Update.
1646
1647 2014-07-24 Tom Tromey <tromey@redhat.com>
1648
1649 * monitor.c (monitor_open): Make "args" const.
1650 * monitor.h (monitor_open): Update.
1651
1652 2014-07-24 Tom Tromey <tromey@redhat.com>
1653
1654 * maint.c (match_bfd_flags): Make "string" const.
1655 (print_bfd_section_info): Remove casts.
1656 (print_objfile_section_info): Make "string" const.
1657
1658 2014-07-24 Tom Tromey <tromey@redhat.com>
1659
1660 * inf-child.c (inf_child_open_target): Make "arg" const.
1661 * inf-child.h (inf_child_open_target): Update.
1662
1663 2014-07-24 Tom Tromey <tromey@redhat.com>
1664
1665 * environ.c (unset_in_environ): Make "var" const.
1666 * environ.h (unset_in_environ): Update.
1667
1668 2014-07-24 Tom Tromey <tromey@redhat.com>
1669
1670 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1671 Make "cmd" const.
1672 (scan_filename_with_cleanup): Likewise.
1673 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1674 Make arguments const.
1675 (restore_command): Update.
1676
1677 2014-07-24 Pedro Alves <palves@redhat.com>
1678
1679 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1680
1681 2014-07-24 Tom Tromey <tromey@redhat.com>
1682 Gary Benson <gbenson@redhat.com>
1683
1684 * nat/linux-ptrace.c (additional_flags): New global.
1685 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1686 additional_flags; don't check GDBSERVER.
1687 (linux_ptrace_set_additional_flags): New function.
1688 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1689 Declare.
1690 * linux-nat.c (_initialize_linux_nat): Call
1691 linux_ptrace_set_additional_flags.
1692
1693 2014-07-24 Tom Tromey <tromey@redhat.com>
1694
1695 * make-target-delegates (munge_type, write_debugmethod): New
1696 functions.
1697 (debug_names): New global.
1698 ($TARGET_DEBUG_PRINTER): New global.
1699 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1700 name.
1701 Write debug methods. Generate init_debug_target.
1702 * target-debug.h: New file.
1703 * target-delegates.c: Rebuild.
1704 * target.c: Include target-debug.h.
1705 (debug_target): Hoist definition.
1706 (target_kill, target_get_section_table, target_memory_map)
1707 (target_flash_erase, target_flash_done, target_detach)
1708 (target_disconnect, target_wait, target_resume)
1709 (target_pass_signals, target_program_signals, target_follow_fork)
1710 (target_mourn_inferior, target_search_memory)
1711 (target_thread_address_space, target_close)
1712 (target_find_new_threads, target_core_of_thread)
1713 (target_verify_memory, target_insert_mask_watchpoint)
1714 (target_remove_mask_watchpoint): Remove targetdebug code.
1715 (debug_to_post_attach, debug_to_prepare_to_store)
1716 (debug_to_files_info, debug_to_insert_breakpoint)
1717 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1718 (debug_to_region_ok_for_hw_watchpoint)
1719 (debug_to_can_accel_watchpoint_condition)
1720 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1721 (debug_to_watchpoint_addr_within_range)
1722 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1723 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1724 (debug_to_terminal_init, debug_to_terminal_inferior)
1725 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1726 (debug_to_terminal_save_ours, debug_to_terminal_info)
1727 (debug_to_load, debug_to_post_startup_inferior)
1728 (debug_to_insert_fork_catchpoint)
1729 (debug_to_remove_fork_catchpoint)
1730 (debug_to_insert_vfork_catchpoint)
1731 (debug_to_remove_vfork_catchpoint)
1732 (debug_to_insert_exec_catchpoint)
1733 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1734 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1735 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1736 (setup_target_debug): Call init_debug_target.
1737 * target.h (TARGET_DEBUG_PRINTER): New macro.
1738 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1739 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1740
1741 2014-07-24 Gary Benson <gbenson@redhat.com>
1742
1743 * exceptions.h (throw_vfatal): Renamed to...
1744 (throw_vquit): New declaration.
1745 (throw_quit): Likewise.
1746 * exceptions.c (throw_vfatal): Renamed to...
1747 (throw_vquit): New function.
1748 (throw_quit): Likewise.
1749 (throw_error): Call throw_verror rather than throw_it.
1750 * utils.h (vfatal): Removed.
1751 (fatal): Likewise.
1752 * utils.c (vfatal): Removed.
1753 (fatal): Likewise.
1754 (internal_verror): Replaced call to fatal with call to throw_quit.
1755 (quit): Replaced calls to fatal with calls to throw_quit.
1756
1757 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1758
1759 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1760 target_read_code.
1761
1762 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1763
1764 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1765 less than zero in conditional expression.
1766
1767 2014-07-23 Tom Tromey <tromey@redhat.com>
1768
1769 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1770 ($INTRO_PART): Don't match whitespace.
1771 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1772 argument matching.
1773 ($METHOD): Add $METHOD_TRAILER.
1774 (trim): Rewrite.
1775 (scan_target_h): New sub.
1776 Change main loop not to collect state.
1777 * target-delegates.c: Rebuild.
1778
1779 2014-07-23 Gary Benson <gbenson@redhat.com>
1780
1781 * cp-support.c (gdb_demangle): Fix build on systems without
1782 sigaltstack.
1783
1784 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1785
1786 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1787 for reference entry value target data value.
1788
1789 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1790
1791 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1792 value_available_contents_eq.
1793
1794 2014-07-22 Pedro Alves <palves@redhat.com>
1795
1796 * value.c (allocate_optimized_out_value): Don't mark value as
1797 non-lazy.
1798
1799 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1800
1801 * MAINTAINERS (Write After Approval): Update my email address.
1802
1803 2014-07-20 Doug Evans <dje@google.com>
1804
1805 PR server/17147
1806 * remote.c (putpkt_binary): Add text to error message.
1807
1808 2014-07-20 Yao Qi <yao@codesourcery.com>
1809
1810 * eval.c: Remove "Chill" from comments.
1811 * gdbtypes.h: Likewise.
1812 * symtab.h: Likewise.
1813
1814 2014-07-20 Yao Qi <yao@codesourcery.com>
1815
1816 * std-operator.def: Update comments to TERNOP_SLICE.
1817
1818 2014-07-20 Yao Qi <yao@codesourcery.com>
1819
1820 * std-operator.def: Remove BINOP_RANGE.
1821 * breakpoint.c (watchpoint_exp_is_const): Update.
1822 * expprint.c (dump_subexp_body_standard): Likewise.
1823 * eval.c (init_array_element): Remove dead code.
1824 (evaluate_subexp_standard): Likewise.
1825
1826 2014-07-20 Yao Qi <yao@codesourcery.com>
1827
1828 * std-operator.def: Remove BINOP_IN.
1829 * breakpoint.c (watchpoint_exp_is_const): Update.
1830 * eval.c (evaluate_subexp_standard): Likewise.
1831 * expprint.c (dump_subexp_body_standard): Likewise.
1832
1833 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1834
1835 * microblaze-tdep.c (microblaze_register_names): Add
1836 the rshr and rslr register names.
1837 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1838 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1839 Use of tdesc_numbered_register. Use of
1840 microblaze_register_g_packet_guesses. Use of
1841 tdesc_use_registers. Use of set_gdbarch_register_type.
1842 (microblaze_register_g_packet_guesses): New.
1843 * microblaze-tdep.h (microblaze_reg_num): Add
1844 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1845 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1846 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1847 * features/microblaze-core.xml: New file.
1848 * features/microblaze-stack-protect.xml: New file.
1849 * features/microblaze-with-stack-protect.c: New file.
1850 * features/microblaze-with-stack-protect.xml: New file.
1851 * features/microblaze.xml: New file.
1852 * features/microblaze.c: New file.
1853 * features/Makefile (microblaze-with-stack-protect): Add
1854 microblaze-with-stack-protect microblaze and microblaze-expedite.
1855 * regformats/microblaze-with-stack-protect.dat: New file.
1856 * regformats/microblaze.dat: New file.
1857 * doc/gdb.texinfo (MicroBlaze Features): Added.
1858
1859 2014-07-18 Tom Tromey <tromey@redhat.com>
1860
1861 * exec.c (exec_ops): Now static.
1862 * exec.h (exec_ops): Don't declare.
1863
1864 2014-07-18 Tom Tromey <tromey@redhat.com>
1865
1866 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1867 to find_target_beneath.
1868 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1869 find_target_beneath.
1870 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1871
1872 2014-07-18 Tom Tromey <tromey@redhat.com>
1873
1874 PR gdb/17130:
1875 * utils.c (quit): Use target_supports_terminal_ours.
1876 * target.h (target_supports_terminal_ours): Declare.
1877 * target.c (target_supports_delete_record): Don't check
1878 to_delete_record against NULL.
1879 (target_supports_terminal_ours): New function.
1880
1881 2014-07-18 Tom Tromey <tromey@redhat.com>
1882
1883 PR gdb/17130:
1884 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1885 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1886 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1887 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1888 * windows-nat.c (windows_xfer_partial): Always delegate.
1889 * record-btrace.c (record_btrace_xfer_partial): Simplify
1890 delegation.
1891 (record_btrace_fetch_registers, record_btrace_store_registers)
1892 (record_btrace_prepare_to_store, record_btrace_resume)
1893 (record_btrace_wait, record_btrace_find_new_threads)
1894 (record_btrace_thread_alive): Likewise.
1895 * procfs.c (procfs_xfer_partial): Always delegate.
1896 * corelow.c (core_xfer_partial): Always delegate.
1897 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1898
1899 2014-07-18 Tom Tromey <tromey@redhat.com>
1900
1901 * exec.c (exec_make_note_section): Move earlier.
1902
1903 2014-07-17 Doug Evans <dje@google.com>
1904
1905 PR gdb/17170
1906 * maint.c (count_symtabs_and_blocks): Handle NULL
1907 current_program_space.
1908 (report_command_stats): Check global enabled flag in addition to
1909 recorded enabled flag.
1910 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1911
1912 2014-07-16 Pedro Alves <palves@redhat.com>
1913
1914 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1915
1916 2014-07-16 Tom Tromey <tromey@redhat.com>
1917
1918 * target.h (struct target_ops) <to_delete_record>: Reformat
1919 comment.
1920
1921 2014-07-16 Tom Tromey <tromey@redhat.com>
1922
1923 * target-delegates.c: Rebuild.
1924
1925 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1926
1927 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1928 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1929 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1930 (avr_pointer_to_address): Likewise.
1931 (avr_address_class_type_flags): New function.
1932 (avr_address_class_type_flags_to_name): Likewise.
1933 (avr_address_class_name_to_type_flags): Likewise.
1934 (avr_gdbarch_init): Set address_class_type_flags,
1935 address_class_type_flags_to_name and
1936 address_class_name_to_type_flags.
1937
1938 2014-07-15 Pedro Alves <palves@redhat.com>
1939
1940 * linux-nat.c (kill_callback): Save errno and work with saved
1941 copy.
1942
1943 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1944
1945 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1946
1947 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1948
1949 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1950 breakpoint support correctly.
1951
1952 2014-07-14 Pedro Alves <palves@redhat.com>
1953
1954 * utils.c (prompt_for_continue): Call target_terminal_ours.
1955
1956 2014-07-14 Pedro Alves <palves@redhat.com>
1957
1958 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1959 catch_errors. Don't re-enable stdin or notify observers where,
1960 and rethrow error.
1961 (fetch_inferior_event_wrapper): Delete.
1962
1963 2014-07-14 Pedro Alves <palves@redhat.com>
1964
1965 PR gdb/17072
1966 * top.c: Include "inf-loop.h".
1967 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1968 field.
1969 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1970 was async before.
1971 (gdb_readline_wrapper): Store whether the target is async, and
1972 make it sync.
1973
1974 2014-07-14 Pedro Alves <palves@redhat.com>
1975
1976 PR gdb/17072
1977 * top.c (gdb_readline_wrapper_line): Tweak comment.
1978 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1979 the input handler callback.
1980
1981 2014-07-14 Pedro Alves <palves@redhat.com>
1982
1983 PR gdb/17072
1984 * main.c: Include event-top.h.
1985 (handle_command_errors): New function.
1986 (catch_command_errors, catch_command_errors_const): Use it.
1987
1988 2014-07-14 Pedro Alves <palves@redhat.com>
1989
1990 * exceptions.c (catch_command_errors, catch_command_errors_const):
1991 Moved to main.c.
1992 * exceptions.h (catch_command_errors_ftype)
1993 (catch_command_errors_const_ftype): Moved to main.c.
1994 (catch_command_errors, catch_command_errors_const): Delete
1995 declarations.
1996 * main.c (catch_command_errors_ftype)
1997 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1998 (catch_command_errors, catch_command_errors_const)): Moved here
1999 from exceptions.c and make static.
2000
2001 2014-07-14 Pedro Alves <palves@redhat.com>
2002
2003 * exceptions.c (print_any_exception): Delete.
2004 (catch_exceptions_with_msg): Use exception_print instead of
2005 print_any_exception.
2006 (catch_errors): Use exception_fprintf instead of
2007 print_any_exception.
2008 (catch_command_errors, catch_command_errors_const): Use
2009 exception_print instead of print_any_exception.
2010
2011 2014-07-14 Pedro Alves <palves@redhat.com>
2012
2013 * infcall.c (run_inferior_call): Set 'sync_execution' while
2014 running the inferior call.
2015
2016 2014-07-14 Pedro Alves <palves@redhat.com>
2017
2018 * value.c (value_contents_equal): Delete function.
2019 * value.h (value_contents_equal): Delete declaration.
2020
2021 2014-07-14 Tom Tromey <tromey@redhat.com>
2022
2023 PR exp/17106:
2024 * gdbtypes.c (is_dynamic_type_internal): New function, from
2025 is_dynamic_type.
2026 (is_dynamic_type): Rewrite.
2027 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2028 (resolve_dynamic_struct): Likewise.
2029 (resolve_dynamic_type_internal): New function, from
2030 resolve_dynamic_type.
2031 (resolve_dynamic_type): Rewrite.
2032
2033 2014-07-14 Tom Tromey <tromey@redhat.com>
2034
2035 * target.c (target_require_runnable): Also check record_stratum.
2036 Update comment.
2037
2038 2014-07-11 Yao Qi <yao@codesourcery.com>
2039
2040 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2041 thumb_instruction_restores_sp return true.
2042
2043 2014-07-11 Yao Qi <yao@codesourcery.com>
2044
2045 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2046 (thumb_in_function_epilogue_p): Call
2047 thumb_instruction_restores_sp.
2048
2049 2014-07-11 Yao Qi <yao@codesourcery.com>
2050
2051 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2052 'add sp, #imm'.
2053 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2054
2055 2014-07-11 Gary Benson <gbenson@redhat.com>
2056
2057 * amd64-linux-nat.c (gdbcore.h): Remove include.
2058 (regset.h): Likewise.
2059 (nat/linux-btrace.h): Likewise.
2060 (btrace.h): Likewise.
2061 (gdb_assert.h): Likewise.
2062 (string.h): Likewise.
2063 (sys/uio.h): Likewise.
2064 (sys/debugreg.h): Likewise.
2065 (sys/syscall.h): Likewise.
2066 (sys/procfs.h): Likewise.
2067 (sys/user.h): Likewise.
2068 (asm/ptrace.h): Likewise.
2069 (i386-nat.h): Likewise.
2070 * i386-linux-nat.c (i386-nat.h): Likewise.
2071 (regset.h): Likewise.
2072 (target.h): Likewise.
2073 (linux-nat.h): Likewise.
2074 (nat/linux-btrace.h): Likewise.
2075 (btrace.h): Likewise.
2076 (gdb_assert.h): Likewise.
2077 (string.h): Likewise.
2078 (sys/uio.h): Likewise.
2079 (sys/user.h): Likewise.
2080 (sys/procfs.h): Likewise.
2081 (sys/reg.h): Likewise.
2082 (sys/debugreg.h): Likewise.
2083 (ORIG_EAX): Remove definition.
2084
2085 2014-07-11 Gary Benson <gbenson@redhat.com>
2086
2087 * i386-linux-nat.h: New file.
2088 * x86-linux-nat.h: Likewise.
2089 * x86-linux-nat.c: Likewise.
2090 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2091 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2092 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2093 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2094 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2095 (PTRACE_SETREGSET): Likewise.
2096 (arch_lwp_info): Now in x86-linux-nat.c.
2097 (have_ptrace_getregset): Now in x86-linux-nat.h.
2098 (x86_linux_dr_get): Now in x86-linux-nat.c.
2099 (x86_linux_dr_set): Likewise.
2100 (x86_linux_dr_get_addr): Likewise.
2101 (x86_linux_dr_get_control): Likewise.
2102 (x86_linux_dr_get_status): Likewise.
2103 (update_debug_registers_callback): Likewise.
2104 (x86_linux_dr_set_control): Likewise.
2105 (x86_linux_dr_set_addr): Likewise.
2106 (x86_linux_prepare_to_resume): Likewise.
2107 (x86_linux_new_thread): Likewise.
2108 (x86_linux_new_fork): Likewise.
2109 (x86_linux_get_thread_area): Likewise.
2110 (super_post_startup_inferior): Likewise.
2111 (x86_linux_child_post_startup_inferior): Likewise.
2112 (AMD64_LINUX_USER64_CS): Likewise.
2113 (AMD64_LINUX_X32_DS): Likewise.
2114 (x86_linux_read_description): Likewise.
2115 (x86_linux_enable_btrace): Likewise.
2116 (x86_linux_disable_btrace): Likewise.
2117 (x86_linux_teardown_btrace): Likewise.
2118 (x86_linux_read_btrace): Likewise.
2119 (x86_linux_create_target): Likewise.
2120 (x86_linux_add_target): Likewise.
2121 * i386-linux-nat.c (x86-linux-nat.h): New include.
2122 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2123 (PTRACE_SETREGSET): Likewise.
2124 (arch_lwp_info): Now in x86-linux-nat.c.
2125 (have_ptrace_getregset): Now in x86-linux-nat.h.
2126 (x86_linux_dr_get): Now in x86-linux-nat.c.
2127 (x86_linux_dr_set): Likewise.
2128 (x86_linux_dr_get_addr): Likewise.
2129 (x86_linux_dr_get_control): Likewise.
2130 (x86_linux_dr_get_status): Likewise.
2131 (update_debug_registers_callback): Likewise.
2132 (x86_linux_dr_set_control): Likewise.
2133 (x86_linux_dr_set_addr): Likewise.
2134 (x86_linux_prepare_to_resume): Likewise.
2135 (x86_linux_new_thread): Likewise.
2136 (x86_linux_new_fork): Likewise.
2137 (x86_linux_get_thread_area): Likewise.
2138 (super_post_startup_inferior): Likewise.
2139 (x86_linux_child_post_startup_inferior): Likewise.
2140 (AMD64_LINUX_USER64_CS): Likewise.
2141 (AMD64_LINUX_X32_DS): Likewise.
2142 (x86_linux_read_description): Likewise.
2143 (x86_linux_enable_btrace): Likewise.
2144 (x86_linux_disable_btrace): Likewise.
2145 (x86_linux_teardown_btrace): Likewise.
2146 (x86_linux_read_btrace): Likewise.
2147 (x86_linux_create_target): Likewise.
2148 (x86_linux_add_target): Likewise.
2149
2150 2014-07-11 Gary Benson <gbenson@redhat.com>
2151
2152 * amd64-linux-nat.c: Comment and whitespace changes.
2153 * i386-linux-nat.c: Comment and whitespace changes.
2154
2155 2014-07-11 Gary Benson <gbenson@redhat.com>
2156
2157 * amd64-linux-nat.c (x86_linux_create_target): New function.
2158 (x86_linux_add_target): Likewise.
2159 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2160 * i386-linux-nat.c (x86_linux_create_target): New function.
2161 (x86_linux_add_target): Likewise.
2162 (_initialize_i386_linux_nat): Delegate to the above new functions.
2163
2164 2014-07-11 Gary Benson <gbenson@redhat.com>
2165
2166 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2167 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2168 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2169 (ps_get_thread_area): Delegate to the above.
2170
2171 2014-07-11 Gary Benson <gbenson@redhat.com>
2172
2173 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2174 x86_linux_read_description. All uses updated. amd64-specific
2175 code conditionalized. Conditionalized i386-specific code added.
2176 Redundant cast removed.
2177 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2178 x86_linux_read_description. All uses updated. i386-specific
2179 code conditionalized. Conditionalized amd64-specific code added.
2180 One sizeof replaced with the actual type it is describing.
2181
2182 2014-07-11 Gary Benson <gbenson@redhat.com>
2183
2184 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2185 x86_linux_dr_get. All uses updated.
2186 (amd64_linux_dr_set): Renamed to
2187 x86_linux_dr_set. All uses updated.
2188 (amd64_linux_dr_get_addr): Renamed to
2189 x86_linux_dr_get_addr. All uses updated.
2190 (amd64_linux_dr_get_control): Renamed to
2191 x86_linux_dr_get_control. All uses updated.
2192 (amd64_linux_dr_get_status): Renamed to
2193 x86_linux_dr_get_status. All uses updated.
2194 (amd64_linux_dr_set_control): Renamed to
2195 x86_linux_dr_set_control. All uses updated.
2196 (amd64_linux_dr_set_addr): Renamed to
2197 x86_linux_dr_set_addr. All uses updated.
2198 (amd64_linux_prepare_to_resume): Renamed to
2199 x86_linux_prepare_to_resume. All uses updated.
2200 (amd64_linux_new_thread): Renamed to
2201 x86_linux_new_thread. All uses updated.
2202 (amd64_linux_new_fork): Renamed to
2203 x86_linux_new_fork. All uses updated.
2204 (amd64_linux_child_post_startup_inferior): Renamed to
2205 x86_linux_child_post_startup_inferior. All uses updated.
2206 (amd64_linux_enable_btrace): Renamed to
2207 x86_linux_enable_btrace. All uses updated.
2208 (amd64_linux_disable_btrace): Renamed to
2209 x86_linux_disable_btrace. All uses updated.
2210 (amd64_linux_teardown_btrace): Renamed to
2211 x86_linux_teardown_btrace. All uses updated.
2212 (amd64_linux_read_btrace): Renamed to
2213 x86_linux_read_btrace. All uses updated.
2214 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2215 x86_linux_dr_get. All uses updated.
2216 (i386_linux_dr_set): Renamed to
2217 x86_linux_dr_set. All uses updated.
2218 (i386_linux_dr_get_addr): Renamed to
2219 x86_linux_dr_get_addr. All uses updated.
2220 (i386_linux_dr_get_control): Renamed to
2221 x86_linux_dr_get_control. All uses updated.
2222 (i386_linux_dr_get_status): Renamed to
2223 x86_linux_dr_get_status. All uses updated.
2224 (i386_linux_dr_set_control): Renamed to
2225 x86_linux_dr_set_control. All uses updated.
2226 (i386_linux_dr_set_addr): Renamed to
2227 x86_linux_dr_set_addr. All uses updated.
2228 (i386_linux_prepare_to_resume): Renamed to
2229 x86_linux_prepare_to_resume. All uses updated.
2230 (i386_linux_new_thread): Renamed to
2231 x86_linux_new_thread. All uses updated.
2232 (i386_linux_new_fork): Renamed to
2233 x86_linux_new_fork. All uses updated.
2234 (i386_linux_child_post_startup_inferior): Renamed to
2235 x86_linux_child_post_startup_inferior. All uses updated.
2236 (i386_linux_enable_btrace): Renamed to
2237 x86_linux_enable_btrace. All uses updated.
2238 (i386_linux_disable_btrace): Renamed to
2239 x86_linux_disable_btrace. All uses updated.
2240 (i386_linux_teardown_btrace): Renamed to
2241 x86_linux_teardown_btrace. All uses updated.
2242 (i386_linux_read_btrace): Renamed to
2243 x86_linux_read_btrace. All uses updated.
2244
2245 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2246
2247 * remote.c (extended_remote_post_attach): New function.
2248 (init_extended_remote_ops): Install it as to_post_attach method.
2249
2250 2014-07-09 Pedro Alves <palves@redhat.com>
2251
2252 * infcmd.c (attach_command_post_wait): Don't call
2253 target_terminal_inferior here.
2254 (attach_command): Call it here instead.
2255
2256 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2257
2258 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2259 field.
2260 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2261 from varobj.c, with additional checks.
2262 (c_varobj_ops): Fill in is_path_expr_parent field.
2263 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2264 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2265 field.
2266 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2267 ops method.
2268 (varobj_default_is_path_expr_parent): New function.
2269 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2270 (varobj_default_is_path_expr_parent): Declare new function.
2271
2272 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2273
2274 * infcmd.c (finish_backward): Turn internal error into normal error.
2275
2276 2014-07-07 Pedro Alves <palves@redhat.com>
2277
2278 PR gdb/17096
2279 * remote.c (async_handle_remote_sigint)
2280 (async_handle_remote_sigint_twice): Call
2281 gdb_call_async_signal_handler instead of
2282 mark_async_signal_handler.
2283
2284 2014-07-07 Tom Tromey <tromey@redhat.com>
2285
2286 * target-delegates.c: Rebuild.
2287 * target.c (target_info_record): Remove.
2288 * record.c (info_record_command): Unconditionally call
2289 to_info_record.
2290 * target.h (struct target_ops) <to_info_record>: Use
2291 TARGET_DEFAULT_IGNORE.
2292 (target_info_record): Remove.
2293
2294 2014-07-07 Tom Tromey <tromey@redhat.com>
2295
2296 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2297 TARGET_DEFAULT_NORETURN.
2298 * target.c (generic_tls_error): New function.
2299 (target_translate_tls_address): Don't search target stack.
2300 * target-delegates.c: Rebuild.
2301 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2302 stack.
2303 * linux-thread-db.c (thread_db_get_thread_local_address):
2304 Unconditionally call beneath target.
2305
2306 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2307
2308 * cli/cli-logging.c (pop_output_files): Assign targerr to
2309 gdb_stdtargerr.
2310
2311 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2312
2313 * MAINTAINERS (Write After Approval): Update my email address.
2314
2315 2014-07-02 Gary Benson <gbenson@redhat.com>
2316
2317 * proc-service.c (ps_xfer_memory): Update comment.
2318 (ps_pstop): Remove unused function.
2319 (ps_pcontinue): Likewise.
2320 (ps_lstop): Likewise.
2321 (ps_lcontinue): Likewise.
2322 (ps_lgetxregsize): Likewise.
2323 (ps_lgetxregs): Likewise.
2324 (ps_lsetxregs): Likewise.
2325 (ps_plog): Likewise.
2326 (ps_ptread): Likewise.
2327 (ps_ptwrite): Likewise.
2328
2329 2014-07-01 Mark Wielaard <mjw@redhat.com>
2330
2331 * dwarf2read.c (add_array_cv_type): New function.
2332 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2333 (read_tag_volatile_type): Likewise.
2334
2335 2014-07-01 Tom Tromey <tromey@redhat.com>
2336
2337 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2338 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2339 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2340 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2341 * command.h (cmd_cfunc_ftype): Move earlier.
2342 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2343 (add_com, add_info): Use cmd_cfunc_ftype.
2344
2345 2014-06-30 Tom Tromey <tromey@redhat.com>
2346
2347 * symtab.c (operator_chars): Make parameters and return type
2348 const.
2349 (file_matches): Make "files" const.
2350 (struct search_symbols_data) <files>: Now const.
2351 (search_symbols): Make "regexp" and "files" parameters const.
2352 Update.
2353 (symtab_symbol_info): Remove cast.
2354 (rbreak_command): Update.
2355 * symtab.h (search_symbols): Update.
2356
2357 2014-06-27 Yao Qi <yao@codesourcery.com>
2358
2359 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2360 Change parameter type to 'struct thread_info *'. Caller
2361 updated.
2362 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2363 Update declaration.
2364 * dummy-frame.c (struct dummy_frame_id): New.
2365 (dummy_frame_id_eq): New function.
2366 (struct dummy_frame) <id>: Change its type to 'struct
2367 dummy_frame_id'.
2368 (dummy_frame_push): Add parameter ptid and save it in
2369 dummy_frame_id.
2370 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2371 inferior_ptid.
2372 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2373 to inferior_ptid.
2374 (lookup_dummy_frame): Change parameter type to 'struct
2375 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2376 instead of frame_id_eq.
2377 (dummy_frame_pop): Add parameter ptid. Callers updated.
2378 Update comments. Compose dummy_frame_id and pass it to
2379 lookup_dummy_frame.
2380 (dummy_frame_discard): Add parameter ptid.
2381 (dummy_frame_sniffer): Compose dummy_frame_id and call
2382 dummy_frame_id_eq instead of frame_id_eq.
2383 (fprint_dummy_frames): Print ptid.
2384 * dummy-frame.h: Remove comments.
2385 (dummy_frame_push): Add ptid in declaration.
2386 (dummy_frame_pop, dummy_frame_discard): Likewise.
2387
2388 2014-06-26 Tom Tromey <tromey@redhat.com>
2389
2390 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2391 * command.h (error_no_arg): Update.
2392
2393 2014-06-26 Tom Tromey <tromey@redhat.com>
2394
2395 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2396 (do_show_command): Make "arg" const.
2397 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2398
2399 2014-06-26 Tom Tromey <tromey@redhat.com>
2400
2401 * record-full.c (record_full_get_bookmark): Make "args" const.
2402 (record_full_goto_bookmark): Make "raw_bookmark" const.
2403 * record.c (record_goto): New function.
2404 (cmd_record_goto): Use it. Now static.
2405 * record.h (record_goto): Declare.
2406 (cmd_record_goto): Remove declaration.
2407 * target-delegates.c: Rebuild.
2408 * target.h (struct target_ops) <to_get_bookmark,
2409 to_goto_bookmark>: Make parameter const.
2410
2411 2014-06-26 Tom Tromey <tromey@redhat.com>
2412
2413 * defs.h (generic_load): Update.
2414 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2415 * monitor.c (monitor_load): Make "args" const.
2416 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2417 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2418 const.
2419 (mips_load): Make "file" const.
2420 * remote-sim.c (gdbsim_load): Make "args" const.
2421 * remote.c (remote_load): Make "name" const.
2422 * symfile.c (generic_load): Make "args" const.
2423 * target-delegates.c: Rebuild.
2424 * target.c (target_load): Make "arg" const.
2425 (debug_to_load): Make "args" const.
2426 * target.h (struct target_ops) <to_load>: Make parameter const.
2427 (target_load): Update.
2428
2429 2014-06-26 Tom Tromey <tromey@redhat.com>
2430
2431 PR symtab/16902:
2432 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2433 (dwarf2_physname, read_partial_die)
2434 (guess_partial_die_structure_name, fixup_partial_die)
2435 (guess_full_die_structure_name, anonymous_struct_prefix)
2436 (dwarf2_name): Use per-BFD obstack.
2437
2438 2014-06-26 Yao Qi <yao@codesourcery.com>
2439
2440 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2441 dummyframe and this_id into inner block below.
2442
2443 2014-06-26 Yao Qi <yao@codesourcery.com>
2444
2445 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2446 with "signal_pass[0]" in the initialization of signal_pass.
2447
2448 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2449
2450 * record-btrace.c (record_btrace_generating_corefile)
2451 (record_btrace_prepare_to_generate_core)
2452 (record_btrace_done_generating_core): New.
2453 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2454 (record_btrace_store_registers, record_btrace_prepare_to_store):
2455 Forward request when generating a core file.
2456 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2457 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2458 to_done_generating_core.
2459
2460 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2461
2462 * target.h (target_ops) <to_prepare_to_generate_core>
2463 <to_done_generating_core>: New.
2464 (target_prepare_to_generate_core, target_done_generating_core): New.
2465 * target.c (target_prepare_to_generate_core)
2466 (target_done_generating_core): New.
2467 * target-delegates.c: Regenerate.
2468 * gcore.c: (write_gcore_file): Rename to ...
2469 (write_gcore_file_1): ...this.
2470 (write_gcore_file): Call target_prepare_to_generate_core
2471 and target_done_generating_core.
2472
2473 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2474
2475 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2476 * gcore.c (write_gcore_file): Free memory returned from
2477 make_corefile_notes.
2478 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2479 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2480
2481 2014-06-24 Yao Qi <yao@codesourcery.com>
2482
2483 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2484 (arm_linux_init_abi): Set skip_trampoline_code with
2485 gdbarch_skip_trampoline_code instead of
2486 find_solib_trampoline_target.
2487
2488 2014-06-24 Yao Qi <yao@codesourcery.com>
2489
2490 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2491 arm_skip_bx_reg returns non-zero.
2492
2493 2014-06-24 Yao Qi <yao@codesourcery.com>
2494
2495 * arm-tdep.c (arm_skip_bx_reg): New function.
2496 (arm_skip_stub): Call arm_skip_bx_reg.
2497
2498 2014-06-23 Don Breazeal <donb@codesourcery.com>
2499
2500 * MAINTAINERS: Add myself as write-after-approval maintainer.
2501
2502 2014-06-23 Pedro Alves <palves@redhat.com>
2503
2504 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2505 DR_CONTROL before setting DR0..DR3.
2506 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2507 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2508 bits of DR_CONTROL related to the debug register slot being
2509 disabled. If all slots are vacant, clear local slowdown as well,
2510 and assert DR_CONTROL is 0.
2511
2512 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2513
2514 * python/lib/gdb/command/xmethods.py
2515 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2516 current progspace only if the string "progspace" matches LOCUS_RE.
2517
2518 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2519
2520 Fix --with-system-readline with readline-6.3 patch 5.
2521 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2522 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2523 types.
2524
2525 2014-06-20 Tom Tromey <tromey@redhat.com>
2526
2527 * dwarf2read.c (dw2_get_real_path): Use correct type in
2528 OBSTACK_CALLOC.
2529 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2530
2531 2014-06-20 Gary Benson <gbenson@redhat.com>
2532
2533 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2534 * common/glibc_thread_db.h: Likewise.
2535 * common/i386-cpuid.h: Likewise.
2536 * common/i386-gcc-cpuid.h: Likewise.
2537 * common/linux-btrace.h: Likewise.
2538 * common/linux-osdata.h: Likewise.
2539 * common/linux-procfs.h: Likewise.
2540 * common/linux-ptrace.h: Likewise.
2541 * common/mips-linux-watch.h: Likewise.
2542 * common/linux-btrace.c: Moved to nat.
2543 * common/linux-osdata.c: Likewise.
2544 * common/linux-procfs.c: Likewise.
2545 * common/linux-ptrace.c: Likewise.
2546 * common/mips-linux-watch.c: Likewise.
2547 * nat/gdb_thread_db.h: Moved from common.
2548 * nat/glibc_thread_db.h: Likewise.
2549 * nat/i386-cpuid.h: Likewise.
2550 * nat/i386-gcc-cpuid.h: Likewise.
2551 * nat/linux-btrace.c: Likewise.
2552 * nat/linux-btrace.h: Likewise.
2553 * nat/linux-osdata.c: Likewise.
2554 * nat/linux-osdata.h: Likewise.
2555 * nat/linux-procfs.c: Likewise.
2556 * nat/linux-procfs.h: Likewise.
2557 * nat/linux-ptrace.c: Likewise.
2558 * nat/linux-ptrace.h: Likewise.
2559 * nat/mips-linux-watch.c: Likewise.
2560 * nat/mips-linux-watch.h: Likewise.
2561 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2562 (object file files): Reordered.
2563 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2564 of glibc_thread_db.h.
2565
2566 2014-06-20 Gary Benson <gbenson@redhat.com>
2567
2568 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2569 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2570 (i386_dr_low): Likewise.
2571 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2572 (i386_dr_low_set_addr): Likewise.
2573 (i386_dr_low_get_addr): Likewise.
2574 (i386_dr_low_can_set_control): Likewise.
2575 (i386_dr_low_set_control): Likewise.
2576 (i386_dr_low_get_control): Likewise.
2577 (i386_dr_low_get_status): Likewise.
2578 (i386_get_debug_register_length): Likewise.
2579 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2580 (i386_dr_low): Likewise.
2581 * nat/i386-dregs.c (i386-low.h): Remove include.
2582 (i386-nat.h): Likewise.
2583 (nat/i386-dregs.h): New include.
2584 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2585 (i386_dr_low_set_addr): Likewise.
2586 (i386_dr_low_get_addr): Likewise.
2587 (i386_dr_low_can_set_control): Likewise.
2588 (i386_dr_low_set_control): Likewise.
2589 (i386_dr_low_get_control): Likewise.
2590 (i386_dr_low_get_status): Likewise.
2591 (i386_get_debug_register_length): Likewise.
2592 (debug_hw_points): Likewise.
2593
2594 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2595
2596 * Makefile.in (SFILES): Add d-exp.y.
2597 (YYFILES): Add d-exp.c.
2598 (YYOBJ): Add d-exp.o.
2599 (local-maintainer-clean): Delete d-exp.c.
2600 * d-exp.y: New file.
2601 * d-lang.h (d_parse): New declaration.
2602 (d_error): New declaration.
2603 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2604 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2605 PREC_ORDER operators.
2606 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2607
2608 2014-06-19 Yao Qi <yao@codesourcery.com>
2609
2610 * gdbthread.h (any_running): Remove the declaration.
2611 * thread.c (any_running): Remove.
2612
2613 2014-06-19 Yao Qi <yao@codesourcery.com>
2614
2615 * gdbthread.h (struct thread_info) <state>: Change its type to
2616 'enum thread_state'. Update comments.
2617
2618 2014-06-19 Pedro Alves <palves@redhat.com>
2619
2620 * gdbthread.h (ALL_THREADS): Delete.
2621 (ALL_NON_EXITED_THREADS): New macro.
2622 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2623 instead of ALL_THREADS.
2624 * infrun.c (find_thread_needs_step_over)
2625 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2626 instead of ALL_THREADS.
2627 * record-btrace.c (record_btrace_open)
2628 (record_btrace_stop_recording, record_btrace_close)
2629 (record_btrace_is_replaying, record_btrace_resume)
2630 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2631 * remote.c (append_pending_thread_resumptions): Likewise.
2632 * thread.c (thread_apply_all_command): Likewise.
2633
2634 2014-06-19 Gary Benson <gbenson@redhat.com>
2635
2636 * i386-nat.c (i386_stopped_by_watchpoint):
2637 Use i386_dr_stopped_by_watchpoint.
2638 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2639 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2640
2641 2014-06-19 Gary Benson <gbenson@redhat.com>
2642
2643 * nat/i386-dregs.c: New file.
2644 * Makefile.in (i386-dregs.o): New rule.
2645 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2646 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2647 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2648 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2649 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2650 * config/i386/go32.mh (NATDEPFILES): Likewise.
2651 * config/i386/linux.mh (NATDEPFILES): Likewise.
2652 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2653 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2654 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2655 * i386-nat.h (debug_hw_points): New declaration.
2656 * i386-nat.c (breakpoint.h): Remove include.
2657 (command.h): Likewise.
2658 (target.h): Likewise.
2659 (gdb_assert.h): Likewise.
2660 (debug_hw_points): Made nonstatic.
2661 (debug_printf): Now in i386-dregs.c.
2662 (TARGET_HAS_DR_LEN_8): Likewise.
2663 (DR_CONTROL_SHIFT): Likewise.
2664 (DR_CONTROL_SIZE): Likewise.
2665 (DR_RW_EXECUTE): Likewise.
2666 (DR_RW_WRITE): Likewise.
2667 (DR_RW_READ): Likewise.
2668 (DR_RW_IORW): Likewise.
2669 (DR_LEN_1): Likewise.
2670 (DR_LEN_2): Likewise.
2671 (DR_LEN_4): Likewise.
2672 (DR_LEN_8): Likewise.
2673 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2674 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2675 (DR_ENABLE_SIZE): Likewise.
2676 (DR_LOCAL_SLOWDOWN): Likewise.
2677 (DR_GLOBAL_SLOWDOWN): Likewise.
2678 (DR_CONTROL_RESERVED): Likewise.
2679 (I386_DR_CONTROL_MASK): Likewise.
2680 (I386_DR_VACANT): Likewise.
2681 (I386_DR_LOCAL_ENABLE): Likewise.
2682 (I386_DR_GLOBAL_ENABLE): Likewise.
2683 (I386_DR_DISABLE): Likewise.
2684 (I386_DR_SET_RW_LEN): Likewise.
2685 (I386_DR_GET_RW_LEN): Likewise.
2686 (I386_DR_WATCH_HIT): Likewise.
2687 (i386_wp_op_t): Likewise.
2688 (i386_show_dr): Likewise.
2689 (i386_length_and_rw_bits): Likewise.
2690 (i386_insert_aligned_watchpoint): Likewise.
2691 (i386_remove_aligned_watchpoint): Likewise.
2692 (i386_handle_nonaligned_watchpoint): Likewise.
2693 (i386_update_inferior_debug_regs): Likewise.
2694 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2695 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2696 (i386_region_ok_for_watchpoint):
2697 Use i386_dr_region_ok_for_watchpoint.
2698 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2699
2700 2014-06-19 Gary Benson <gbenson@redhat.com>
2701
2702 * i386-nat.c (i386_insert_hw_breakpoint): Use
2703 i386_insert_watchpoint.
2704 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2705
2706 2014-06-19 Gary Benson <gbenson@redhat.com>
2707
2708 * i386-nat.c (i386_dr_show): Renamed to
2709 i386_show_dr and made static. All uses updated.
2710 (i386_dr_length_and_rw_bits): Renamed to
2711 i386_length_and_rw_bits and made static.
2712 All uses updated.
2713 (i386_dr_insert_aligned_watchpoint): Renamed to
2714 i386_insert_aligned_watchpoint and made static.
2715 All uses updated.
2716 (i386_dr_remove_aligned_watchpoint): Renamed to
2717 i386_remove_aligned_watchpoint and made static.
2718 All uses updated.
2719 (i386_dr_update_inferior_debug_regs): Renamed to
2720 i386_update_inferior_debug_regs and made static.
2721 All uses updated.
2722 * nat/i386-dregs.h (i386_dr_show): Removed.
2723 (i386_dr_length_and_rw_bits): Likewise.
2724 (i386_dr_insert_aligned_watchpoint): Likewise.
2725 (i386_dr_remove_aligned_watchpoint): Likewise.
2726 (i386_dr_update_inferior_debug_regs): Likewise.
2727
2728 2014-06-19 Gary Benson <gbenson@redhat.com>
2729
2730 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2731 * configure: Regenerate.
2732 * config.in: Likewise.
2733 * main.c (signal.h): New include.
2734 (setup_alternate_signal_stack): New function.
2735 (captured_main): Call the above.
2736 * cp-support.c (signal.h): New include.
2737 (catch_demangler_crashes): New flag.
2738 (SIGJMP_BUF): New define.
2739 (SIGSETJMP): Likewise.
2740 (SIGLONGJMP): Likewise.
2741 (gdb_demangle_jmp_buf): New static global.
2742 (gdb_demangle_attempt_core_dump): Likewise.
2743 (gdb_demangle_signal_handler): New function.
2744 (gdb_demangle): If catch_demangler_crashes is set, install the
2745 above signal handler before calling bfd_demangle, and restore
2746 the original signal handler afterwards. Display the offending
2747 symbol and call demangler_warning the first time a segmentation
2748 fault is caught.
2749 (_initialize_cp_support): New maint set/show command.
2750
2751 2014-06-19 Gary Benson <gbenson@redhat.com>
2752
2753 * utils.h (resource_limit_kind): New enum.
2754 (can_dump_core): New declaration.
2755 (warn_cant_dump_core): Likewise.
2756 (dump_core): Likewise.
2757 * utils.c (dump_core): Made nonstatic. Added new
2758 parameter "limit_kind".
2759 (can_dump_core): Made nonstatic. Moved printing code to...
2760 (warn_cant_dump_core): New function.
2761 (can_dump_core_warn): Likewise.
2762 (internal_vproblem): Replace calls to can_dump_core with
2763 calls to can_dump_core_warn. Supply new argument to each.
2764
2765 2014-06-19 Gary Benson <gbenson@redhat.com>
2766
2767 * utils.h (demangler_vwarning): New declaration.
2768 (demangler_warning): Likewise.
2769 * utils.c (struct internal_problem)
2770 <user_settable_should_quit>: New field.
2771 <user_settable_should_dump_core>: Likewise
2772 (internal_error_problem): Add values for above new fields.
2773 (internal_warning_problem): Likewise.
2774 (demangler_warning_problem): New static global.
2775 (demangler_vwarning): New function.
2776 (demangler_warning): Likewise.
2777 (add_internal_problem_command): Selectively add commands.
2778 (_initialize_utils): New internal problem command.
2779 * maint.c (maintenance_demangler_warning): New function.
2780 (_initialize_maint_cmds): New command.
2781
2782 2014-06-18 Tom Tromey <tromey@redhat.com>
2783
2784 * f-valprint.c (info_common_command_for_block): Update.
2785 * symtab.h (struct general_symbol_info) <common_block>: Now
2786 const.
2787
2788 2014-06-18 Tom Tromey <tromey@redhat.com>
2789
2790 * symtab.h (struct symtab) <blockvector>: Now const.
2791 * ada-lang.c (ada_add_global_exceptions): Update.
2792 * buildsym.c (augment_type_symtab): Update.
2793 * dwarf2read.c (dw2_lookup_symbol): Update.
2794 * jit.c (finalize_symtab): Update.
2795 * jv-lang.c (add_class_symtab_symbol): Update.
2796 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2797 Update.
2798 * objfiles.c (objfile_relocate1): Update.
2799 * psymtab.c (lookup_symbol_aux_psymtabs)
2800 (maintenance_check_psymtabs): Update.
2801 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2802 Update.
2803 * spu-tdep.c (spu_catch_start): Update.
2804 * symmisc.c (dump_symtab_1): Update.
2805 * symtab.c (lookup_global_symbol_from_objfile)
2806 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2807 (basic_lookup_transparent_type_quick)
2808 (basic_lookup_transparent_type, find_pc_sect_symtab)
2809 (find_pc_sect_line, search_symbols): Update.
2810 * block.c (find_block_in_blockvector): Make "bl" const.
2811 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2812 const.
2813 (blockvector_contains_pc): Make "bv" const.
2814 (block_for_pc_sect): Update.
2815 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2816 (blockvector_contains_pc): Update.
2817 * breakpoint.c (resolve_sal_pc): Update.
2818 * inline-frame.c (block_starting_point_at): Update.
2819
2820 2014-06-18 Tom Tromey <tromey@redhat.com>
2821
2822 * completer.c (complete_line): Make "line_buffer" const.
2823 * completer.h (complete_line): Update.
2824
2825 2014-06-18 Tom Tromey <tromey@redhat.com>
2826
2827 * symtab.c (add_macro_name): Remove unneeded cast.
2828
2829 2014-06-18 Tom Tromey <tromey@redhat.com>
2830
2831 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2832 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2833
2834 2014-06-18 Tom Tromey <tromey@redhat.com>
2835
2836 * probe.c (info_probes_for_ops): Make "arg" const.
2837 * probe.h (info_probes_for_ops): Update.
2838
2839 2014-06-18 Tom Tromey <tromey@redhat.com>
2840
2841 * varobj.c (varobj_create): Update.
2842 * valops.c (value_of_this): Update.
2843 * tracepoint.c (add_local_symbols, scope_info): Update.
2844 * symtab.h (struct general_symbol_info) <block>: Now const.
2845 * symtab.c (skip_prologue_sal)
2846 (default_make_symbol_completion_list_break_on)
2847 (skip_prologue_using_sal): Update.
2848 * stack.h (iterate_over_block_locals)
2849 (iterate_over_block_local_vars): Update.
2850 * stack.c (print_frame_args): Update.
2851 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2852 parameter const.
2853 (get_selected_block): Make return type const.
2854 * python/py-frame.c (frapy_block): Update.
2855 * python/py-block.c (gdbpy_block_for_pc): Update.
2856 * p-exp.y (%union) <bval>: Now const.
2857 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2858 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2859 * m2-exp.y (%union) <bval>: Now const.
2860 * linespec.c (get_current_search_block): Make return type const.
2861 (create_sals_line_offset, find_label_symbols): Update.
2862 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2863 Update.
2864 (block_starting_point_at): Make "block" const.
2865 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2866 (check_exception_resume): Update.
2867 * guile/scm-frame.c (gdbscm_frame_block): Update.
2868 * guile/scm-block.c (gdbscm_lookup_block): Update.
2869 * frame.h (get_frame_block): Update.
2870 (get_selected_block): Make return type const.
2871 * frame.c (frame_id_inner): Update.
2872 * f-valprint.c (info_common_command_for_block)
2873 (info_common_command): Update.
2874 * dwarf2loc.c (dwarf2_find_location_expression)
2875 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2876 (locexpr_describe_location_piece): Update.
2877 * c-exp.y (%union) <bval>: Now const.
2878 * breakpoint.c (resolve_sal_pc): Update.
2879 * blockframe.c (get_frame_block):Make return type const.
2880 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2881 (block_innermost_frame): Update.
2882 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2883 (block_for_pc, block_for_pc_sect): Update.
2884 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2885 'pblock' const.
2886 (block_for_pc_sect, block_for_pc): Make return type const.
2887 * ax-gdb.c (gen_expr): Update.
2888 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2889 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2890 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2891 (ada_read_var_value): Update.
2892 * ada-exp.y (struct name_info) <block>: Now const.
2893 (%union): Likewise.
2894 (block_lookup): Constify.
2895
2896 2014-06-18 Gary Benson <gbenson@redhat.com>
2897
2898 * nat/i386-dregs.h: New file.
2899 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2900 * i386-nat.h (i386-dregs.h): New include.
2901 (DR_FIRSTADDR): Now in i386-dregs.h.
2902 (DR_LASTADDR): Likewise.
2903 (DR_NADDR): Likewise.
2904 (DR_STATUS): Likewise.
2905 (DR_CONTROL): Likewise.
2906 (i386_debug_reg_state): Likewise.
2907 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2908
2909 2014-06-18 Don Breazeal <donb@codesourcery.com>
2910
2911 * breakpoint.c (set_longjmp_breakpoint): Call
2912 momentary_breakpoint_from_master with additional argument.
2913 (set_longjmp_breakpoint_for_call_dummy): Call
2914 momentary_breakpoint_from_master with additional argument.
2915 (set_std_terminate_breakpoint): Call
2916 momentary_breakpoint_from_master with additional argument.
2917 (momentary_breakpoint_from_master): Add argument to function
2918 definition and use it to initialize structure member flag.
2919 (clone_momentary_breakpoint): Call
2920 momentary_breakpoint_from_master with additional argument.
2921 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2922 member flags set in momentary_breakpoint_from_master.
2923
2924 2014-06-18 Gary Benson <gbenson@redhat.com>
2925
2926 * i386-nat.c (i386_show_dr): Renamed to
2927 i386_dr_show and made nonstatic. All uses updated.
2928 (i386_length_and_rw_bits): Renamed to
2929 i386_dr_length_and_rw_bits and made nonstatic.
2930 All uses updated.
2931 (i386_insert_aligned_watchpoint): Renamed to
2932 i386_dr_insert_aligned_watchpoint and made nonstatic.
2933 All uses updated.
2934 (i386_remove_aligned_watchpoint): Renamed to
2935 i386_dr_remove_aligned_watchpoint and made nonstatic.
2936 All uses updated.
2937 (i386_update_inferior_debug_regs): Renamed to
2938 i386_dr_update_inferior_debug_regs and made nonstatic.
2939 All uses updated.
2940
2941 2014-06-18 Gary Benson <gbenson@redhat.com>
2942
2943 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2944 (i386_dr_low_can_set_control): Likewise.
2945 (i386_dr_low_set_addr): Likewise.
2946 (i386_dr_low_set_control): Likewise.
2947 (i386_dr_low_get_addr): Likewise.
2948 (i386_dr_low_get_status): Likewise.
2949 (i386_dr_low_get_control): Likewise.
2950 (i386_insert_aligned_watchpoint): Use new macros.
2951 (i386_update_inferior_debug_regs): Likewise.
2952 (i386_stopped_data_address): Likewise.
2953
2954 2014-06-18 Gary Benson <gbenson@redhat.com>
2955
2956 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2957 New parameter. All uses updated.
2958
2959 2014-06-18 Gary Benson <gbenson@redhat.com>
2960
2961 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2962 All uses updated.
2963
2964 2014-06-18 Gary Benson <gbenson@redhat.com>
2965
2966 * i386-nat.c (debug_printf): New macro.
2967 (i386_get_debug_register_length): Likewise.
2968 (TARGET_HAS_DR_LEN_8): Use above macro.
2969 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2970 and printf_unfiltered. Use phex to format values.
2971
2972 2014-06-18 Gary Benson <gbenson@redhat.com>
2973
2974 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2975 Make const.
2976
2977 2014-06-18 Gary Benson <gbenson@redhat.com>
2978
2979 * i386-nat.c: Comment changes.
2980
2981 2014-06-18 Gary Benson <gbenson@redhat.com>
2982
2983 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2984
2985 2014-06-18 Gary Benson <gbenson@redhat.com>
2986
2987 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2988 (i386_insert_aligned_watchpoint): Likewise.
2989 (i386_remove_aligned_watchpoint): Likewise.
2990 (i386_handle_nonaligned_watchpoint): Likewise.
2991
2992 2014-06-18 Gary Benson <gbenson@redhat.com>
2993
2994 * i386-nat.c: Whitespace changes.
2995
2996 2014-06-17 Samuel Bronson <naesten@gmail.com>
2997
2998 * MAINTAINERS: Update Roland McGrath's email address.
2999 Thanks to Sergio Durigan Junior for pointing out that he left
3000 Red Hat a while ago, and giving me a current address.
3001
3002 2014-06-17 Tom Tromey <tromey@redhat.com>
3003
3004 * utils.h (savestring): Remove declaration.
3005
3006 2014-06-17 Tom Tromey <tromey@redhat.com>
3007
3008 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3009
3010 2014-06-16 Keith Seitz <keiths@redhat.com>
3011
3012 PR mi/15863
3013 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3014 to update the varobj if inferior_ptid is null_ptid.
3015
3016 2014-06-16 Tom Tromey <tromey@redhat.com>
3017
3018 * target.h (struct target_ops) <to_info_proc>: Make parameter
3019 const.
3020 (target_info_proc): Update.
3021 * target.c (target_info_proc): Make "args" const.
3022 * procfs.c (procfs_info_proc): Update.
3023 * linux-tdep.c (linux_info_proc): Update.
3024 (linux_core_info_proc_mappings): Make "args" const.
3025 (linux_core_info_proc): Update.
3026 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3027 * gdbarch.c: Rebuild.
3028 * gdbarch.h: Rebuild.
3029 * corelow.c (core_info_proc): Update.
3030
3031 2014-06-16 Tom Tromey <tromey@redhat.com>
3032
3033 * target.h (struct target_ops) <to_disconnect>: Make parameter
3034 const.
3035 (target_disconnect): Update.
3036 * target.c (target_disconnect): Make "args" const.
3037 * target-delegates.c: Rebuild.
3038 * remote.c (remote_disconnect): Update.
3039 * record.h (record_disconnect): Update.
3040 * record.c (record_disconnect): Update.
3041 * inf-child.c (inf_child_disconnect): Update.
3042
3043 2014-06-16 Tom Tromey <tromey@redhat.com>
3044
3045 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3046 * target.c (debug_to_rcmd, default_rcmd): Update.
3047 * target-delegates.c: Rebuild.
3048 * remote.c (remote_rcmd): Update.
3049 * monitor.c (monitor_rcmd): Update.
3050
3051 2014-06-16 Pedro Alves <palves@redhat.com>
3052
3053 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3054 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3055 have OBJF_SHARED set.
3056 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3057 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3058 instead of OBJF_USERLOADED.
3059 * objfiles.h (OBJF_SHARED): Update comment.
3060 (userloaded_objfile_contains_address_p): Rename to ...
3061 (shared_objfile_contains_address_p): ... this, and update
3062 comments.
3063 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3064 new objfile.
3065 (remove_symbol_file_command): Skip objfiles that don't have
3066 OBJF_SHARED set.
3067
3068 2014-06-16 Tom Tromey <tromey@redhat.com>
3069
3070 * minsyms.h (prim_record_minimal_symbol)
3071 (prim_record_minimal_symbol_and_info): Update comments.
3072
3073 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3074
3075 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3076 or --without-guile, according to how GDB was built.
3077
3078 2014-06-13 Tom Tromey <tromey@redhat.com>
3079
3080 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3081 to help_list.
3082 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3083 to help_list.
3084 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3085 help_list.
3086 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3087 help_list.Pass all_commands, not -1, to help_list.
3088 * cli/cli-dump.c (dump_command, append_command)
3089 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3090 (binary_dump_command, binary_append_command): Pass all_commands,
3091 not -1, to help_list.
3092 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3093 -1, to help_list.
3094 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3095 -1, to help_list.
3096 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3097 help_list.
3098 * top.c (set_history): Pass all_commands, not -1, to help_list.
3099 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3100 all_commands, not -1, to help_list.
3101 * symfile.c (overlay_command): Pass all_commands, not -1, to
3102 help_list.
3103 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3104 help_list.
3105 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3106 help_list.
3107 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3108 -1, to help_list.
3109 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3110 not -1, to help_list.
3111 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3112 not -1, to help_list.
3113 * maint.c (maintenance_command, maintenance_info_command)
3114 (maintenance_print_command, maintenance_set_cmd): Pass
3115 all_commands, not -1, to help_list.
3116 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3117 help_list.
3118 * language.c (set_check): Pass all_commands, not -1, to help_list.
3119 * infcmd.c (unset_command): Pass all_commands, not -1, to
3120 help_list.
3121 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3122 help_list.
3123 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3124 help_list.
3125 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3126 help_list.
3127 * breakpoint.c (save_command): Pass all_commands, not -1, to
3128 help_list.
3129 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3130 all_commands, not -1, to help_list.
3131
3132 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3133
3134 * regcache.c (struct register_to_invalidate): New structure.
3135 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3136 functions.
3137 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3138
3139 2014-06-12 Yao Qi <yao@codesourcery.com>
3140
3141 * varobj.c (varobj_get_num_children): Call
3142 varobj_is_dynamic_p.
3143 (varobj_list_children): Likewise.
3144 (varobj_update): Likewise. Update comments.
3145
3146 2014-06-12 Yao Qi <yao@codesourcery.com>
3147
3148 * varobj.c (varobj_pretty_printed_p): Rename to ...
3149 (varobj_is_dynamic_p): ... this. New function.
3150 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3151 (varobj_is_dynamic_p): Declare.
3152 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3153 (mi_print_value_p, varobj_update_one): Likewise.
3154
3155 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3156 Yao Qi <yao@codesourcery.com>
3157
3158 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3159 (varobj_get_iterator): Wrap up code for pretty-printer by
3160 "#if HAVE_PYTHON" and "#endif".
3161 (update_dynamic_varobj_children): Likewise.
3162
3163 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3164 Yao Qi <yao@codesourcery.com>
3165
3166 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3167 gdb_python_initialized is false. Move some code from varobj.c.
3168 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3169 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3170 (struct varobj_item): Moved to varobj-iter.h".
3171 (varobj_clear_saved_item): New function.
3172 (update_dynamic_varobj_children): Move python-related code to
3173 py-varobj.c.
3174 (free_variable): Call varobj_clear_saved_item and
3175 varobj_iter_delete.
3176
3177 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3178 Yao Qi <yao@codesourcery.com>
3179
3180 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3181 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3182 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3183 (py-varobj.o): New rule.
3184 * python/py-varobj.c: New file.
3185 * python/python-internal.h (py_varobj_get_iterator): Declare.
3186 * varobj-iter.h: New file.
3187 * varobj.c: Include "varobj-iter.h"
3188 (struct varobj) <child_iter>: Change its type from "PyObject *"
3189 to "struct varobj_iter *".
3190 <saved_item>: Likewise.
3191 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3192 [HAVE_PYTHON] (varobj_get_iterator): New function.
3193 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3194 python-specific code to python/py-varobj.c.
3195 (install_visualizer): Call varobj_iter_delete instead of
3196 Py_XDECREF.
3197 * varobj.h (varobj_ensure_python_env): Declare.
3198
3199 2014-06-12 Yao Qi <yao@codesourcery.com>
3200
3201 * varobj.c (struct varobj_item): New structure.
3202 (create_child_with_value): Update declaration.
3203 (varobj_add_child): Replace arguments 'name' and 'value' with
3204 'item'. All callers updated.
3205 (install_dynamic_child): Likewise.
3206 (update_dynamic_varobj_children): Likewise.
3207 (varobj_add_child): Likewise.
3208 (create_child_with_value): Likewise.
3209
3210 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3211
3212 * NEWS: Create a new section for the next release branch.
3213 Rename the section of the current branch, now that it has
3214 been cut.
3215
3216 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3217
3218 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3219 * version.in: Bump version to 7.8.50.DATE-cvs.
3220
3221 2014-06-11 Pedro Alves <palves@redhat.com>
3222
3223 PR remote/17028
3224 * ser-mingw.c (net_windows_socket_check_pending): New function.
3225 (net_windows_select_thread): Ignore spurious wakeups. Use
3226 net_windows_socket_check_pending.
3227 (net_windows_wait_handle): Check for pending events with
3228 ioctlsocket, through net_windows_socket_check_pending, instead of
3229 checking the socket's event.
3230
3231 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3232
3233 * python/python-internal.h (gdb_PyObject_GetAttrString)
3234 (gdb_PyObject_HasAttrString): New inline function definitions.
3235 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3236 char * of the second argument to PyObject_GetAttrString.
3237
3238 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3239
3240 * serial.c (serial_write): Fix index of character to be printed
3241 in call to serial_logchar when serial debug traces are enabled.
3242
3243 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3244
3245 * gdbtypes (resolve_dynamic_range): Add function description.
3246
3247 2014-06-09 Pedro Alves <palves@redhat.com>
3248
3249 * linux-nat.c (linux_child_follow_fork): Initialize status with
3250 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3251 inner block. Only pass the signal to PTRACE_DETACH if in pass
3252 state.
3253
3254 2014-06-09 Gary Benson <gbenson@redhat.com>
3255
3256 * common/signals.c (gdb_signal_from_host): Reorder to separate
3257 the always-available ANSI-standard signals from the signals that
3258 require checking.
3259 (do_gdb_signal_to_host): Likewise.
3260 * proc-events.c (signal_table): Likewise.
3261
3262 2014-06-08 Hui Zhu <hui@codesourcery.com>
3263
3264 * common/linux-ptrace.c (linux_disable_event_reporting): New
3265 function.
3266 * common/linux-ptrace.h (linux_disable_event_reporting): New
3267 declaration.
3268 * linux-nat.c (linux_child_follow_fork): Do a single step before
3269 detach.
3270
3271 2014-06-07 Keith Seitz <keiths@redhat.com>
3272
3273 Revert:
3274 PR c++/16253
3275 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3276 from symbol_matches_domain in symtab.c. All local callers
3277 of symbol_matches_domain updated.
3278 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3279 search STRUCT_DOMAIN.
3280 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3281 independently. standard_lookup will do that automatically.
3282 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3283 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3284 (cp_lookup_symbol_in_namespace): Likewise.
3285 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3286 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3287 may return a STRUCT_DOMAIN match.
3288 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3289 * cp-support.c: Include language.h.
3290 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3291 VAR_DOMAIN.
3292 * psymtab.c (match_partial_symbol): Compare the requested
3293 domain with the symbol's domain directly.
3294 (lookup_partial_symbol): Likewise.
3295 * symtab.c (lookup_symbol_in_language): Explain when/why
3296 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3297 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3298 appropriate languages.
3299 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3300 and moved to ada-lang.c
3301 (lookup_block_symbol): Explain that this function only returns
3302 symbol matching the requested DOMAIN.
3303 Compare the requested domain with the symbol's domain directly.
3304 (iterate_over_symbols): Compare the requested domain with the
3305 symbol's domain directly.
3306 * symtab.h (symbol_matches_domain): Remove.
3307
3308 2014-06-06 Doug Evans <xdje42@gmail.com>
3309
3310 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3311 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3312 (gdbscm_guile_version_is_at_least): Declare.
3313 (gdbscm_scm_string_to_int): Declare.
3314 * guile/guile.c (gdbscm_guile_major_version): New global.
3315 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3316 (guile_datadir): New static global.
3317 (gdbscm_guile_data_directory): New function.
3318 (initialize_scheme_side): Update.
3319 (misc_guile_functions): Add guile-data-directory.
3320 (initialize_gdb_module): Fetch guile version number.
3321 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3322 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3323 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3324 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3325 comments.
3326 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3327 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3328 * guile/scm-value.c (gdbscm_value_to_string): Only call
3329 scm_port_conversion_strategy if Guile version >= 2.0.6.
3330
3331 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3332
3333 * main.c (print_gdb_help): Add -q and --silent.
3334
3335 2014-06-06 Gary Benson <gbenson@redhat.com>
3336
3337 * common/signals.c: Remove preprocessor conditionals for
3338 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3339 SIGSEGV and SIGTERM.
3340 * proc-events.c: Likewise.
3341
3342 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3343
3344 * symfile.c (symfile_free_objfile): Remove restriction to
3345 OBJF_USERLOADED.
3346 * symfile-mem.c (symbol_file_add_from_memory): Call
3347 add_target_sections_of_objfile.
3348
3349 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3350
3351 * guile/scm-value.c (gdbscm_history_append_x): Use
3352 'vlscm_get_value_smob_arg_unsafe' instead of
3353 'vlscm_scm_to_value'.
3354
3355 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3356
3357 PR mi/15806
3358 * utils.c (printchar): Don't escape at all if quoter is NUL.
3359 Update function documentation to clarify effect of parameter
3360 QUOTER.
3361 * remote.c (escape_buffer): Pass '\\' as the quoter to
3362 fputstrn_unfiltered.
3363 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3364 generate the output.
3365 (mi_solib_unloaded): Same.
3366
3367 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3368
3369 * development.sh: Delete.
3370 * Makefile.in (config.status): Adjust dependency on development.sh.
3371 * configure.ac: Adjust development.sh source call.
3372 * configure: Regenerate.
3373
3374 2014-06-04 Doug Evans <xdje42@gmail.com>
3375
3376 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3377 is_scheme_bkpt, spec.
3378 (bpscm_make_breakpoint_smob): Initialize new members.
3379 (gdbscm_create_breakpoint_x): Split into two ...
3380 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3381 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3382 (scheme_function breakpoint_functions): Update.
3383 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3384 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3385 register-breakpoint!.
3386
3387 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3388
3389 PR server/17023
3390 * mem-break.c (z_type_supported): Return zero if
3391 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3392
3393 2014-06-04 Tom Tromey <tromey@redhat.com>
3394
3395 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3396 value_from_contents_and_address_unresolved.
3397 (ada_template_to_fixed_record_type_1): Likewise.
3398 (ada_which_variant_applies): Likewise.
3399 * value.h (value_from_contents_and_address_unresolved): Declare.
3400 * value.c (value_from_contents_and_address_unresolved): New
3401 function.
3402 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3403 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3404 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3405
3406 2014-06-04 Tom Tromey <tromey@redhat.com>
3407
3408 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3409
3410 2014-06-04 Tom Tromey <tromey@redhat.com>
3411
3412 * procfs.c (procfs_attach): Make "args" const.
3413 * windows-nat.c (windows_attach): Make "args" const.
3414 * nto-procfs.c (procfs_attach): Make "args" const.
3415 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3416 * go32-nat.c (go32_attach): Make "args" const.
3417 * gnu-nat.c (gnu_attach): Make "args" const.
3418 * darwin-nat.c (darwin_attach): Make "args" const.
3419 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3420 * linux-nat.c (linux_nat_attach): Make "args" const.
3421 * remote.c (extended_remote_attach_1, extended_remote_attach):
3422 Make "args" const.
3423 * target.h (struct target_ops) <to_attach>: Make "args" const.
3424 (find_default_attach): Likewise.
3425 * utils.c (parse_pid_to_attach): Make "args" const.
3426 * utils.h (parse_pid_to_attach): Update.
3427
3428 2014-06-04 Tom Tromey <tromey@redhat.com>
3429
3430 * target-delegates.c: Rebuild.
3431 * target.c (default_thread_address_space): New function.
3432 (target_thread_address_space): Simplify.
3433 * target.h (struct target_ops) <to_thread_address_space>: Add
3434 TARGET_DEFAULT_FUNC.
3435
3436 2014-06-04 Doug Evans <xdje42@gmail.com>
3437
3438 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3439
3440 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3441
3442 * record-btrace.c: Include event-loop.h and inf-loop.h.
3443 (record_btrace_resume_exec_dir)
3444 (record_btrace_async_inferior_event_handler)
3445 (record_btrace_handle_async_inferior_event): New.
3446 (record_btrace_open): Create async event handler.
3447 (record_btrace_close): Delete async event handler.
3448 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3449 Mark async event handler.
3450 (record_btrace_execution_direction): New.
3451 (init_record_btrace_ops): Initialize to_execution_direction.
3452
3453 2014-06-03 Doug Evans <xdje42@gmail.com>
3454
3455 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3456 (gdbscm_make_parameter): Ditto.
3457
3458 2014-06-03 Doug Evans <dje@google.com>
3459
3460 * exec.c (exec_close_1): Call clear_section_table instead of
3461 resize_section_table.
3462 (clear_section_table): New function.
3463 (resize_section_table): Make static. Rename arg num_added to
3464 adjustment.
3465 * exec.h (clear_section_table): Declare.
3466 (resize_section_table): Delete.
3467 * progspace.c (release_program_space): Call clear_section_table
3468 instead of resize_section_table.
3469
3470 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3471
3472 * NEWS (Python Scripting): Add entry about the new xmethods
3473 feature.
3474
3475 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3476
3477 * python/py-xmethods.c: New file.
3478 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3479 (objfpy_dealloc): XDECREF on the new xmethods field.
3480 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3481 field.
3482 (objfpy_get_xmethods): New function.
3483 (objfile_getset): New entry 'xmethods'.
3484 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3485 (pspy_dealloc): XDECREF on the new xmethods field.
3486 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3487 field.
3488 (pspy_get_xmethods): New function.
3489 (pspace_getset): New entry 'xmethods'.
3490 * python/python-internal.h: Add declarations for new functions.
3491 * python/python.c (_initialize_python): Invoke
3492 gdbpy_initialize_xmethods.
3493 * python/lib/gdb/__init__.py (xmethods): New
3494 attribute.
3495 * python/lib/gdb/xmethod.py: New file.
3496 * python/lib/gdb/command/xmethods.py: New file.
3497
3498 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3499
3500 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3501 best match method returned by find_overload_match is an xmethod.
3502 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3503 the best matching operator returned by find_overload_match is an
3504 xmethod.
3505 * valops.c: #include "extension.h".
3506 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3507 Return void. The list of matching source methods is returned in
3508 "fn_list" and a vector of matching debug method workers is
3509 returned in "xm_worker_vec". Update all callers.
3510 (value_find_oload_method_list): Likewise.
3511 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3512 non-NULL, then the index of the best matching method in this
3513 vector is returned. Update all callers.
3514 (find_overload_match): Include xmethods while performing overload
3515 resolution.
3516
3517 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3518
3519 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3520 * extension-priv.h (struct extension_language_ops): Add the
3521 xmethod interface.
3522 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3523 get_matching_xmethod_workers, get_xmethod_argtypes,
3524 invoke_xmethod, free_xmethod_worker,
3525 free_xmethod_worker_vec): New functions.
3526 * extension.h: #include "common/vec.h".
3527 New function declarations.
3528 (struct xmethod_worker): New struct.
3529 (VEC (xmethod_worker_ptr)): New vector type.
3530 (xmethod_worker_ptr): New typedef.
3531 (xmethod_worker_vec): Likewise.
3532 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3533 builtin_type.
3534 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3535 (struct builtin_type): New field "xmethod".
3536 * valarith.c (value_ptradd): Assert that the value argument is not
3537 lval_xcallable.
3538 * valops.c (value_must_coerce_to_target): Return 0 for
3539 lval_xcallable values.
3540 * value.c (struct value): New field XM_WORKER in the field
3541 LOCATION.
3542 (value_address, value_raw_address): Return 0 for lval_xcallable
3543 values.
3544 (set_value_address): Assert that the value is not an
3545 lval_xcallable.
3546 (value_free): Free the associated xmethod worker when freeing
3547 lval_xcallable values.
3548 (set_value_component_location): Assert that the WHOLE value is not
3549 lval_xcallable.
3550 (value_of_xmethod, call_xmethod): New functions.
3551 * value.h: Declare "struct xmethod_worker".
3552 Declare new functions value_of_xmethod, call_xmethod.
3553
3554 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3555 Pedro Alves <palves@redhat.com>
3556
3557 PR breakpoints/17000
3558 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3559 New function, extracted from software_breakpoint_inserted_here_p.
3560 (software_breakpoint_inserted_here_p): Replace factored out code
3561 by call to find_non_raw_software_breakpoint_inserted_here.
3562 (bp_target_info_copy_insertion_state): New function.
3563 (bkpt_insert_location): Handle the case of a single-step
3564 breakpoint already inserted at the same address.
3565 (bkpt_remove_location): Handle the case of a single-step
3566 breakpoint still inserted at the same address.
3567 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3568 breakpoint already inserted at the same address.
3569 (deprecated_remove_raw_breakpoint): Handle the case of a
3570 non-raw breakpoint still inserted at the same address.
3571 (find_single_step_breakpoint): New function, extracted from
3572 single_step_breakpoint_inserted_here_p.
3573 (find_single_step_breakpoint): New function,
3574 factored out from single_step_breakpoint_inserted_here_p.
3575 (single_step_breakpoint_inserted_here_p): Reimplement.
3576
3577 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3578
3579 Pushed by Joel Brobecker <brobecker@adacore.com>
3580 * source.c (show_substitute_path_command): Fix display of matching
3581 substitution rules.
3582
3583 2014-06-03 Gary Benson <gbenson@redhat.com>
3584
3585 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3586
3587 2014-06-02 Doug Evans <xdje42@gmail.com>
3588
3589 Add parameter support for Guile.
3590 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3591 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3592 (scm-param.o): New rule.
3593 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3594 (gdbscm_misc_error): Declare.
3595 (gdbscm_canonicalize_command_name): Declare.
3596 (gdbscm_scm_to_host_string): Declare.
3597 (gdbscm_scm_from_host_string): Declare.
3598 (gdbscm_initialize_parameters): Declare.
3599 * guile/guile.c (initialize_gdb_module): Call
3600 gdbscm_initialize_parameters.
3601 * guile/lib/gdb.scm: Export parameter symbols.
3602 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3603 cmdscm_canonicalize_name and made public. All callers updated.
3604 * guile/scm-exception.c (gdbscm_misc_error): New function.
3605 * guile/scm-param.c: New file.
3606 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3607 (gdbscm_scm_to_host_string): New function.
3608 (gdbscm_scm_from_host_string): New function.
3609 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3610
3611 2014-06-02 Doug Evans <xdje42@gmail.com>
3612
3613 Add command support for Guile.
3614 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3615 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3616 (scm-cmd.o): New rule.
3617 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3618 (gdbscm_user_error_p): Declare.
3619 (gdbscm_parse_command_name): Declare.
3620 (gdbscm_valid_command_class_p): Declare.
3621 (gdbscm_initialize_commands): Declare.
3622 * guile/guile.c (initialize_gdb_module): Call
3623 gdbscm_initialize_commands.
3624 * guile/lib/gdb.scm: Export command symbols.
3625 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3626 (throw-user-error): New function.
3627 * guile/scm-cmd.c: New file.
3628 * guile/scm-exception.c (user_error_symbol): New static global.
3629 (gdbscm_user_error_p): New function.
3630 (gdbscm_initialize_exceptions): Set user_error_symbol.
3631 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3632
3633 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3634
3635 * top.c (command_loop): Handle comments here...
3636 (command_line_input): ... not here.
3637
3638 2014-06-02 Doug Evans <xdje42@gmail.com>
3639
3640 Add progspace support for Guile.
3641 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3642 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3643 (scm-progspace.o): New rule.
3644 * guile/guile-internal.h (pspace_smob): New typedef.
3645 (psscm_pspace_smob_pretty_printers): Declare.
3646 (psscm_pspace_smob_from_pspace): Declare.
3647 (psscm_scm_from_pspace): Declare.
3648 * guile/guile.c (initialize_gdb_module): Call
3649 gdbscm_initialize_pspaces.
3650 * guile/lib/gdb.scm: Export progspace symbols.
3651 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3652 support.
3653 (append-pretty-printer!): Ditto.
3654 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3655 Implement.
3656 * guile/scm-progspace.c: New file.
3657
3658 2014-06-03 Alan Modra <amodra@gmail.com>
3659
3660 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3661 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3662
3663 2014-06-02 Doug Evans <dje@google.com>
3664
3665 Add support for skeletonless type units.
3666 * dwarf2read.c (struct dwarf2_per_objfile): New member
3667 n_allocated_type_units.
3668 (struct dwarf2_per_objfile) <tu_stats>: New member
3669 nr_all_type_units_reallocs.
3670 (create_signatured_type_table_from_index): Initialize
3671 n_allocated_type_units
3672 (create_all_type_units): Ditto.
3673 (add_type_unit): Move up in file. New arg slot.
3674 All callers updated. Increase space for all_type_units more
3675 efficiently.
3676 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3677 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3678 (lookup_dwp_signatured_type): Ditto.
3679 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3680 All callers updated.
3681 (build_type_psymtabs_1): Leave type_unit_groups as
3682 NULL if no TUs present.
3683 (print_tu_stats): New function.
3684 (process_skeletonless_type_unit): New function.
3685 (process_dwo_file_for_skeletonless_type_units): New
3686 function.
3687 (process_skeletonless_type_units): New function.
3688 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3689 Call print tu_stats if debugging enabled.
3690
3691 2014-06-02 Pedro Alves <palves@redhat.com>
3692
3693 * breakpoint.c (build_target_command_list): Don't build a command
3694 list if we have any duplicate location that isn't a dprintf.
3695
3696 2014-06-02 Pedro Alves <palves@redhat.com>
3697
3698 * breakpoint.c (dprintf_breakpoint_hit): New function.
3699 (initialize_breakpoint_ops): Install it as dprintf's
3700 breakpoint_hit method.
3701
3702 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3703
3704 * source.c (substitute_path_rule_matches): Simplify using
3705 filename_ncmp instead of FILENAME_CMP.
3706
3707 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3708
3709 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3710
3711 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3712
3713 * configure.ac: When Guile is available, check for the
3714 availability of 'scm_new_smob'.
3715 * configure, config.h.in: Regenerate.
3716 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3717 function.
3718
3719 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3720
3721 * frame.c (struct frame_info): Add stop_string field.
3722 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3723 (get_prev_frame_always): Old content moved into
3724 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3725 TRY_CATCH, handle MEMORY_ERROR exceptions.
3726 (frame_stop_reason_string): New function definition.
3727 * frame.h (unwind_stop_reason_to_string): Extend comment to
3728 mention frame_stop_reason_string.
3729 (frame_stop_reason_string): New function declaration.
3730 * stack.c (frame_info): Switch to frame_stop_reason_string.
3731 (backtrace_command_1): Switch to frame_stop_reason_string.
3732 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3733 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3734 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3735
3736 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3737
3738 * frame.c (frame_stop_reason_string): Rename to ...
3739 (unwind_stop_reason_to_string): this.
3740 * frame.h (frame_stop_reason_string): Rename to ...
3741 (unwind_stop_reason_to_string): this.
3742 * stack.c (frame_info): Update call to frame_stop_reason_string.
3743 (backtrace_command_1): Likewise.
3744 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3745 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3746
3747 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3748
3749 * frame.c (remove_prev_frame): New function.
3750 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3751 remove_prev_frame.
3752
3753 2014-05-29 Pedro Alves <palves@redhat.com>
3754
3755 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3756 and make it const. When a single-step decays to a continue,
3757 clear 'step', not 'hw_step'. Pass whether the caller wanted
3758 to step to user_visible_resume_ptid, not what we ask the
3759 target to do.
3760
3761 2014-05-29 Pedro Alves <palves@redhat.com>
3762
3763 * infrun.c (process_event_stop_test, handle_step_into_function)
3764 (handle_step_into_function_backward): Adjust.
3765 Don't set the even thread's stop_step and call stop_waiting before
3766 calling end_stepping_range. Instead do that ...
3767 (end_stepping_range): ... here. Take an ecs pointer parameter.
3768
3769 2014-05-29 Pedro Alves <palves@redhat.com>
3770
3771 * infrun.c (stop_stepping): Rename to ...
3772 (stop_waiting): ... this.
3773 (proceed): Update comment.
3774 (process_event_stop_test, handle_inferior_event)
3775 (handle_signal_stop, handle_step_into_function)
3776 (handle_step_into_function_backward): Update.
3777
3778 2014-05-29 Pedro Alves <palves@redhat.com>
3779
3780 * infcall.c (run_inferior_call): Don't check whether the current
3781 thread is running after the proceed call.
3782
3783 2014-05-29 Pedro Alves <palves@redhat.com>
3784 Tom Tromey <tromey@redhat.com>
3785
3786 * NEWS: Mention "maint set target-async", "set mi-async", and that
3787 background execution commands are now always available.
3788 * target.h (target_async_permitted): Update comment.
3789 * target.c (target_async_permitted, target_async_permitted_1):
3790 Default to 1.
3791 (set_target_async_command): Rename to ...
3792 (maint_set_target_async_command): ... this.
3793 (show_target_async_command): Rename to ...
3794 (maint_show_target_async_command): ... this.
3795 (_initialize_target): Adjust.
3796 * infcmd.c (prepare_execution_command): Make extern.
3797 * inferior.h (prepare_execution_command): Declare.
3798 * infrun.c (set_observer_mode): Leave target async alone.
3799 * mi/mi-interp.c (mi_interpreter_init): Install
3800 mi_on_sync_execution_done as sync_execution_done observer.
3801 (mi_on_sync_execution_done): New function.
3802 (mi_execute_command_input_handler): Don't print the prompt if we
3803 just started a synchronous command with an async target.
3804 (mi_on_resume): Check sync_execution before printing prompt.
3805 * mi/mi-main.h (mi_async_p): Declare.
3806 * mi/mi-main.c: Include gdbcmd.h.
3807 (mi_async_p): New function.
3808 (mi_async, mi_async_1): New globals.
3809 (set_mi_async_command, show_mi_async_command, mi_async): New
3810 functions.
3811 (exec_continue): Call prepare_execution_command.
3812 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3813 (mi_execute_async_cli_command): Use mi_async_p.
3814 (_initialize_mi_main): Install "set mi-async". Make
3815 "target-async" a deprecated alias.
3816
3817 2014-05-29 Pedro Alves <palves@redhat.com>
3818
3819 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3820 (_initialize_cli_interp): Adjust.
3821 * event-loop.c: Include "observer.h".
3822 (start_event_loop): Notify 'command_error' observers instead of
3823 calling display_gdb_prompt. Remove FIXME comment.
3824 * event-top.c (display_gdb_prompt): Remove call into the
3825 interpreters.
3826 * inf-loop.c: Include "observer.h".
3827 (inferior_event_handler): Notify 'command_error' observers instead
3828 of calling display_gdb_prompt.
3829 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3830 observers instead of calling display_gdb_prompt.
3831 * interps.c (interp_set): Don't call display_gdb_prompt.
3832 (current_interp_display_prompt_p): Delete.
3833 * interps.h (interp_prompt_p): Delete declaration.
3834 (interp_prompt_p_ftype): Delete.
3835 (struct interp_procs) <prompt_proc_p>: Delete field.
3836 (current_interp_display_prompt_p): Delete declaration.
3837 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3838 (_initialize_mi_interp): Adjust.
3839 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3840 'command_error' observers.
3841 (tui_on_sync_execution_done, tui_on_command_error): New
3842 functions.
3843 (tui_display_prompt_p): Delete.
3844 (_initialize_tui_interp): Adjust.
3845
3846 2014-05-29 Pedro Alves <palves@redhat.com>
3847
3848 PR gdb/13860
3849 * cli/cli-interp.c: Include infrun.h and observer.h.
3850 (cli_uiout, cli_interp): New globals.
3851 (cli_on_signal_received, cli_on_end_stepping_range)
3852 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3853 functions.
3854 (cli_interpreter_init): Install them as 'end_stepping_range',
3855 'signal_received' 'signal_exited', 'exited' and 'no_history'
3856 observers.
3857 (_initialize_cli_interp): Remove cli_interp local.
3858 * infrun.c (handle_inferior_event): Call the several stop reason
3859 observers instead of printing the stop reason directly.
3860 (end_stepping_range): New function.
3861 (print_end_stepping_range_reason, print_signal_exited_reason)
3862 (print_exited_reason, print_signal_received_reason)
3863 (print_no_history_reason): Make static, and add an uiout
3864 parameter. Print to that instead of to CURRENT_UIOUT.
3865 * infrun.h (print_end_stepping_range_reason)
3866 (print_signal_exited_reason, print_exited_reason)
3867 (print_signal_received_reason print_no_history_reason): New
3868 declarations.
3869 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3870 'mi_uiout'.
3871 <cli_uiout>: New field.
3872 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3873 uiout for CLI output. Install 'signal_received',
3874 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3875 observers.
3876 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3877 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3878 (mi_on_no_history): New functions.
3879 (ui_out_free_cleanup): Delete function.
3880 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3881 instead use the one already stored in the MI interpreter data.
3882 (mi_ui_out): Adjust.
3883 * tui/tui-interp.c: Include infrun.h and observer.h.
3884 (tui_interp): New global.
3885 (tui_on_signal_received, tui_on_end_stepping_range)
3886 (tui_on_signal_exited, tui_on_exited)
3887 (tui_on_no_history): New functions.
3888 (tui_init): Install them as 'end_stepping_range',
3889 'signal_received' 'signal_exited', 'exited' and 'no_history'
3890 observers.
3891 (_initialize_tui_interp): Delete tui_interp local.
3892
3893 2014-05-29 Pedro Alves <palves@redhat.com>
3894
3895 PR gdb/15713
3896 * linux-nat.c (linux_nat_resume_callback): Rename the second
3897 parameter to 'except'. Skip LP if it points to EXCEPT.
3898 (linux_nat_resume): Don't mark the event lwp as not stopped
3899 before resuming sibling lwps. Instead ask
3900 linux_nat_resume_callback to skip the event lwp. Mark it as not
3901 stopped after actually resuming it.
3902 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3903 resuming it.
3904 (wait_lwp): Mark the lwp as stopped here.
3905 (stop_wait_callback): Mark the lwp as not stopped right after
3906 resuming it. Don't mark lwps as stopped here.
3907 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3908 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3909
3910 2014-05-29 Pedro Alves <palves@redhat.com>
3911
3912 PR PR15693
3913 * infrun.c (resume): Determine how much to resume depending on
3914 whether the caller wanted a step, not whether we can hardware step
3915 the target. Mark all threads that we intend to run as running,
3916 unless we're calling an inferior function.
3917 (normal_stop): If the thread is running an infcall, don't finish
3918 thread state.
3919 * target.c (target_resume): Don't mark threads as running here.
3920
3921 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3922
3923 * serial.c (_initialize_serial): Remove support for
3924 the "set remotebaud" and "show remotebaud" commands.
3925 * NEWS: Add entry documenting the removal of that command.
3926
3927 2014-05-28 Yao Qi <yao@codesourcery.com>
3928
3929 * charset.c: Fix typo in comments.
3930
3931 2014-05-27 Gary Benson <gbenson@redhat.com>
3932
3933 * utils.c (internal_vproblem): Prompt for a bug report.
3934
3935 2014-05-26 Andy Wingo <wingo@igalia.com>
3936
3937 * guile/scm-arch.c (arscm_mark_arch_smob):
3938 * guile/scm-block.c (bkscm_mark_block_smob)
3939 (bkscm_mark_block_syms_progress_smob):
3940 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3941 * guile/scm-exception.c (exscm_mark_exception_smob):
3942 * guile/scm-frame.c (frscm_mark_frame_smob):
3943 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3944 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3945 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3946 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3947 (ppscm_mark_pretty_printer_worker_smob):
3948 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3949 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3950 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3951 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3952 mark functions.
3953 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3954 function.
3955
3956 2014-05-26 Andy Wingo <wingo@igalia.com>
3957 Doug Evans <xdje42@gmail.com>
3958
3959 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3960 empty_base_class. All uses updated.
3961 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3962 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3963 Adapt all callers.
3964 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3965 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3966 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3967 (gdbscm_gsmob_has_property_p, add_property_name)
3968 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3969 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3970 (gdb-object-has-property?, gdb-object-properties): Remove.
3971 (gdb-object-kind): Renamed from gsmob-kind.
3972
3973 2014-05-26 Andy Wingo <wingo@igalia.com>
3974
3975 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3976 * configure: Regenerate.
3977
3978 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3979
3980 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3981
3982 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3983
3984 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3985 (replay_memory_access_read_only, replay_memory_access_read_write)
3986 (replay_memory_access_types, replay_memory_access)
3987 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3988 (cmd_set_record_btrace, cmd_show_record_btrace)
3989 (cmd_show_replay_memory_access): New.
3990 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3991 (record_btrace_remove_breakpoint): Replace
3992 record_btrace_allow_memory_access with replay_memory_access.
3993 (_initialize_record_btrace): Add commands.
3994 * NEWS: Announce it.
3995
3996 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3997
3998 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3999
4000 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4001
4002 * MAINTAINERS (Write After Approval): Move self back from
4003 paper trail.
4004
4005 2014-05-22 Pedro Alves <palves@redhat.com>
4006
4007 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4008 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4009 (disable_randomization, enum exec_direction_kind)
4010 (execution_direction, stop_registers, start_remote)
4011 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4012 (wait_for_inferior, normal_stop, get_last_target_status)
4013 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4014 (insert_step_resume_breakpoint_at_sal)
4015 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4016 (set_step_info, print_stop_event, signal_stop_state)
4017 (signal_print_state, signal_pass_state, signal_stop_update)
4018 (signal_print_update, signal_pass_update)
4019 (update_signals_program_target, clear_exit_convenience_vars)
4020 (displaced_step_dump_bytes, update_observer_mode)
4021 (signal_catch_update, gdb_signal_from_command): Move
4022 declarations ...
4023 * infrun.h: ... to this new file.
4024 * amd64-tdep.c: Include infrun.h.
4025 * annotate.c: Include infrun.h.
4026 * arch-utils.c: Include infrun.h.
4027 * arm-linux-tdep.c: Include infrun.h.
4028 * arm-tdep.c: Include infrun.h.
4029 * break-catch-sig.c: Include infrun.h.
4030 * breakpoint.c: Include infrun.h.
4031 * common/agent.c: Include infrun.h instead of inferior.h.
4032 * corelow.c: Include infrun.h.
4033 * event-top.c: Include infrun.h.
4034 * go32-nat.c: Include infrun.h.
4035 * i386-tdep.c: Include infrun.h.
4036 * inf-loop.c: Include infrun.h.
4037 * infcall.c: Include infrun.h.
4038 * infcmd.c: Include infrun.h.
4039 * infrun.c: Include infrun.h.
4040 * linux-fork.c: Include infrun.h.
4041 * linux-nat.c: Include infrun.h.
4042 * linux-thread-db.c: Include infrun.h.
4043 * monitor.c: Include infrun.h.
4044 * nto-tdep.c: Include infrun.h.
4045 * procfs.c: Include infrun.h.
4046 * record-btrace.c: Include infrun.h.
4047 * record-full.c: Include infrun.h.
4048 * remote-m32r-sdi.c: Include infrun.h.
4049 * remote-mips.c: Include infrun.h.
4050 * remote-notif.c: Include infrun.h.
4051 * remote-sim.c: Include infrun.h.
4052 * remote.c: Include infrun.h.
4053 * reverse.c: Include infrun.h.
4054 * rs6000-tdep.c: Include infrun.h.
4055 * s390-linux-tdep.c: Include infrun.h.
4056 * solib-irix.c: Include infrun.h.
4057 * solib-osf.c: Include infrun.h.
4058 * solib-svr4.c: Include infrun.h.
4059 * target.c: Include infrun.h.
4060 * top.c: Include infrun.h.
4061 * windows-nat.c: Include infrun.h.
4062 * mi/mi-interp.c: Include infrun.h.
4063 * mi/mi-main.c: Include infrun.h.
4064 * python/py-threadevent.c: Include infrun.h.
4065
4066 2014-05-22 Pedro Alves <palves@redhat.com>
4067
4068 * infrun.c (handle_inferior_event): Store the exit code for
4069 --return-child-result here, instead of ...
4070 (print_exited_reason): ... here.
4071
4072 2014-05-21 Pedro Alves <palves@redhat.com>
4073
4074 PR gdb/13860
4075 * gdbthread.h (struct thread_control_state): New field
4076 `command_interp'.
4077 * infrun.c (follow_fork): Copy the new thread control field to the
4078 child fork thread.
4079 (clear_proceed_status_thread): Clear the new thread control field.
4080 (proceed): Set the new thread control field.
4081 * interps.h (command_interp): Declare.
4082 * interps.c (command_interpreter): New global.
4083 (command_interp): New function.
4084 (interp_exec): Set `command_interpreter' while here.
4085 * cli-out.c (cli_uiout_dtor): New function.
4086 (cli_ui_out_impl): Install it.
4087 * mi/mi-interp.c: Include cli-out.h.
4088 (mi_cmd_interpreter_exec): Add comment.
4089 (restore_current_uiout_cleanup): New function.
4090 (ui_out_free_cleanup): New function.
4091 (mi_on_normal_stop): If finishing an execution command started by
4092 a CLI command, or any kind of breakpoint-like event triggered,
4093 print the stop event to the output (CLI) stream.
4094 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4095
4096 2014-05-21 Pedro Alves <palves@redhat.com>
4097
4098 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4099 current source line having changed.
4100 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4101 * infrun.c (normal_stop): Adjust call to
4102 set_current_sal_from_frame.
4103 * source.c (clear_lines_listed_range): New function.
4104 (set_current_source_symtab_and_line, identify_source_line): Clear
4105 the lines listed range.
4106 (line_info): Handle the first "info line" after the current source
4107 line having changed.
4108 * stack.c (print_stack_frame): Remove center handling.
4109 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4110 center sal.line.
4111
4112 2014-05-21 Pedro Alves <palves@redhat.com>
4113
4114 * inf-child.c (inf_child_mourn_inferior): New function.
4115 * inf-child.h (inf_child_mourn_inferior): New declaration.
4116 * darwin-nat.c (darwin_mourn_inferior): Use
4117 inf_child_mourn_inferior.
4118 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4119 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4120 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4121 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4122 * windows-nat.c (windows_mourn_inferior): Likewise.
4123
4124 2014-05-21 Doug Evans <xdje42@gmail.com>
4125
4126 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4127
4128 2014-05-21 Doug Evans <xdje42@gmail.com>
4129
4130 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4131 (gdbscm_out_of_range_error): Ditto.
4132 (gdbscm_memory_error): Ditto.
4133 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4134 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4135 (gdbscm_out_of_range_error): Update.
4136 (gdbscm_memory_error): Update.
4137 (gdbscm_scm_to_target_string_unsafe): Delete.
4138
4139 2014-05-21 Pedro Alves <palves@redhat.com>
4140
4141 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4142 globals.
4143 (inf_child_open_target): New function.
4144 (inf_child_open): Use inf_child_open_target to push the target
4145 instead of erroring out.
4146 (inf_child_disconnect, inf_child_close)
4147 (inf_child_maybe_unpush_target): New functions.
4148 (inf_child_target): Install inf_child_disconnect and
4149 inf_child_close. Store a pointer to the returned object.
4150 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4151 declarations.
4152 * target.c (auto_connect_native_target): New global.
4153 (show_default_run_target): New function.
4154 (find_default_run_target): Return NULL if automatically connecting
4155 to the native target is disabled.
4156 (_initialize_target): Install set/show auto-connect-native-target.
4157 * NEWS: Mention "set auto-connect-native-target", and "target
4158 native".
4159 * linux-nat.c (super_close): New global.
4160 (linux_nat_close): Call super_close.
4161 (linux_nat_add_target): Store a pointer to the base class's
4162 to_close method.
4163 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4164 inf_child_maybe_unpush.
4165 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4166 already pushed.
4167 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4168 the inferior. Use inf_child_maybe_unpush_target.
4169 (inf_ttrace_attach): Don't push the target if it is already
4170 pushed.
4171 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4172 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4173 after mourning the inferior. Use inf_child_maybe_unpush_target.
4174 (darwin_attach_pid): Don't push the target if it is already
4175 pushed.
4176 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4177 mourning the inferior. Use inf_child_maybe_unpush_target.
4178 (gnu_detach): Use inf_child_maybe_unpush_target.
4179 * go32-nat.c (go32_create_inferior): Don't push the target if it
4180 is already pushed.
4181 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4182 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4183 (procfs_open): Rename to ...
4184 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4185 comments. Can target_preopen before changing node. Call
4186 inf_child_open_target to push the target explicitly.
4187 (procfs_attach): Don't push the target if it is already pushed.
4188 (procfs_detach): Use inf_child_maybe_unpush_target.
4189 (procfs_create_inferior): Don't push the target if it is already
4190 pushed.
4191 (nto_native_ops): New global.
4192 (procfs_open): Reimplement.
4193 (procfs_native_open): New function.
4194 (init_procfs_targets): Install procfs_native_open as to_open of
4195 "target native". Store a pointer to the "native" target in
4196 nto_native_ops.
4197 * procfs.c (procfs_attach): Don't push the target if it is already
4198 pushed.
4199 (procfs_detach): Use inf_child_maybe_unpush_target.
4200 (procfs_mourn_inferior): Only unpush the target after mourning the
4201 inferior. Use inf_child_maybe_unpush_target.
4202 (procfs_init_inferior): Don't push the target if it is already
4203 pushed.
4204 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4205 if it is already pushed.
4206
4207 2014-05-21 Pedro Alves <palves@redhat.com>
4208
4209 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4210 and "procfs" targets are now called "native" instead.
4211
4212 2014-05-21 Pedro Alves <palves@redhat.com>
4213
4214 * go32-nat.c (go32_open): Delete.
4215 (go32_target): Don't override the to_open method.
4216
4217 2014-05-21 Pedro Alves <palves@redhat.com>
4218
4219 * nto-procfs.c (procfs_can_run): New function.
4220 (nto_procfs_ops): New global.
4221 (init_procfs_targets): New, based on procfs_target. Install
4222 "target native" in addition to "target procfs".
4223 (_initialize_procfs): Call init_procfs_targets instead of adding
4224 the target here.
4225
4226 2014-05-21 Pedro Alves <palves@redhat.com>
4227
4228 * windows-nat.c (windows_target): Don't override to_shortname,
4229 to_longname or to_doc.
4230
4231 2014-05-21 Pedro Alves <palves@redhat.com>
4232
4233 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4234 to_doc.
4235
4236 2014-05-21 Pedro Alves <palves@redhat.com>
4237
4238 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4239 to_shortname, to_longname or to_doc.
4240
4241 2014-05-21 Pedro Alves <palves@redhat.com>
4242
4243 * go32-nat.c (go32_target): Don't override to_shortname,
4244 to_longname or to_doc.
4245
4246 2014-05-21 Pedro Alves <palves@redhat.com>
4247
4248 * inf-child.c (inf_child_open): Remove mention of "child".
4249 (inf_child_target): Rename target to "native" instead of "child".
4250
4251 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4252
4253 * Makefile.in (SFILES): Delete "regset.c".
4254 (COMMON_OBS): Delete "regset.o".
4255 * regset.c: Remove.
4256 * regset.h (regset_alloc): Delete prototype.
4257
4258 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4259
4260 * sparc-linux-tdep.c (sparc32_linux_gregset)
4261 (sparc32_linux_fpregset): New static regset structures.
4262 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4263 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4264 'fpregset' fields.
4265 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4266 (sparc64_linux_fpregset): New static regset structures.
4267 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4268 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4269 New static regset structures.
4270 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4271 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4272 New static regset structures.
4273 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4274 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4275 New static regset structures.
4276 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4277 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4278 New static regset structures.
4279 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4280
4281 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4282
4283 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4284 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4285 register maps ("regmaps") from "*regset" to "*regmap". Do this
4286 for all regmap types and variables.
4287 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4288 (sparc32_linux_supply_core_gregset)
4289 (sparc32_linux_collect_core_gregset)
4290 (sparc32_linux_supply_core_fpregset)
4291 (sparc32_linux_collect_core_fpregset): Likewise.
4292 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4293 (sparc_gregmap, sparc_fpregmap): ... these.
4294 (sparc_supply_gregset, sparc_collect_gregset)
4295 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4296 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4297 (_initialize_sparc_nat): Rename regmaps.
4298 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4299 (sparc_gregmap, sparc_fpregmap): ... these.
4300 (sparc_supply_gregset, sparc_collect_gregset)
4301 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4302 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4303 Rename macros to...
4304 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4305 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4306 Likewise.
4307 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4308 Rename to...
4309 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4310 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4311 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4312 regmaps.
4313 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4314 (sparc32_bsd_fpregset): Rename to...
4315 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4316 (sparc32_bsd_fpregmap): ... these.
4317 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4318 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4319 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4320 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4321 (struct sparc_gregmap, struct sparc_fpregmap)
4322 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4323 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4324 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4325 (sparc32_supply_regset, sparc32_collect_gregset)
4326 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4327 prototypes.
4328 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4329 (sparc64_linux_ptrace_gregmap): ... this.
4330 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4331 (_initialize_sparc64_linux_nat): Rename regmaps.
4332 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4333 (sparc64_linux_core_gregmap): ... this.
4334 (sparc64_linux_supply_core_gregset)
4335 (sparc64_linux_collect_core_gregset)
4336 (sparc64_linux_supply_core_fpregset)
4337 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4338 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4339 (sparc64_sol2_fpregset): Rename to...
4340 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4341 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4342 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4343 regmaps.
4344 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4345 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4346 (sparc64_bsd_fpregset): Rename to...
4347 (struct sparc_gregmap, sparc64_sol2_gregmap)
4348 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4349 (sparc64_bsd_fpregmap): ... these.
4350 (sparc64_supply_gregset, sparc64_collect_gregset)
4351 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4352 prototypes.
4353 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4354 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4355 (sparc64fbsd_gregmap): ... this.
4356 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4357 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4358 Rename regmaps.
4359 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4360 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4361 (sparc64nbsd_collect_fpregset): Likewise.
4362 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4363 (sparc64nbsd_gregmap): ... this.
4364 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4365 regmaps.
4366 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4367 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4368 (sparc64obsd_gregmap): ... this.
4369 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4370 regmaps.
4371 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4372 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4373 (sparc32nbsd_gregmap): ... this.
4374 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4375 regmaps.
4376
4377 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4378
4379 * score-tdep.c (score7_linux_gregset): New static regset
4380 structure.
4381 (score7_linux_regset_from_core_section): Remove dynamic regset
4382 allocation.
4383 (score_gdbarch_init): Drop allocation of tdep structure.
4384 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4385
4386 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4387
4388 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4389 regset structures.
4390 (am33_regset_from_core_section): Remove dynamic regset
4391 allocations.
4392
4393 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4394
4395 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4396 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4397 structures.
4398 (mips_linux_regset_from_core_section): Remove dynamic regset
4399 allocations.
4400 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4401 'gregset64', 'fpregset', and 'fpregset64'.
4402 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4403 deleted tdep fields.
4404
4405 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4406
4407 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4408 regset structures.
4409 (amd64_regset_from_core_section): Remove dynamic regset
4410 allocations.
4411 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4412 structure.
4413 (amd64obsd_regset_from_core_section): Remove dynamic regset
4414 allocation.
4415 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4416 Likewise.
4417 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4418 x86-common regset supply function.
4419 * i386-tdep.c (i386_collect_gregset): Make static.
4420 (i386_gregset): New global regset structure.
4421 (i386_fpregset, i386_xstateregset): New static regset structures.
4422 (i386_regset_from_core_section): Remove dynamic regset
4423 allocations.
4424 (i386_gdbarch_init): Remove initialization of tdep fields
4425 'gregset', 'fpregset', and 'xstateregset'.
4426 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4427 'fpregset', and 'xstateregset'.
4428 (i386_collect_gregset): Remove prototype.
4429 (i386_gregset): New declaration.
4430 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4431 structure.
4432 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4433 allocation.
4434
4435 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4436
4437 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4438 (arm_linux_vfpregset): New static regset structures.
4439 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4440 regset structures.
4441 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4442 and 'vfpregset' fields.
4443
4444 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4445
4446 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4447 (aarch64_linux_fpregset): New static regset structures.
4448 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4449 of regset structures.
4450 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4451 'fpregset' fields.
4452
4453 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4454
4455 * regset.h (struct regset): Remove gdbarch field.
4456 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4457 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4458 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4459 Likewise.
4460 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4461 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4462 (ppc32_linux_vsxregset): Likewise.
4463 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4464 via the regcache instead of the regset.
4465 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4466 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4467 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4468 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4469 Likewise.
4470
4471 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4472
4473 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4474 Constify structures.
4475 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4476 (alphanbsd_aout_gregset): Likewise.
4477 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4478 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4479 Likewise.
4480 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4481 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4482 Likewise.
4483 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4484 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4485 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4486 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4487 * m88k-tdep.c (m88k_gregset): Likewise.
4488 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4489 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4490 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4491 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4492 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4493 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4494 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4495 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4496 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4497 Likewise.
4498 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4499 * sh-tdep.h (sh_corefile_gregset): Likewise.
4500 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4501 * vax-tdep.c (vax_gregset): Likewise.
4502
4503 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4504
4505 Fix TLS access for -static -pthread.
4506 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4507 (try_thread_db_load_1): Initialize it.
4508 (thread_db_get_thread_local_address): Call it if LM is zero.
4509 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4510 * target.h (struct target_ops) (to_get_thread_local_address): Add
4511 load_module_addr comment.
4512
4513 2014-05-21 Pedro Alves <palves@redhat.com>
4514
4515 * dcache.c (dcache_read_memory_partial): If reading the cache line
4516 fails, fallback to reading just the memory the caller wanted.
4517
4518 2014-05-20 Doug Evans <dje@google.com>
4519
4520 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4521 instead of get_current_arch.
4522
4523 2014-05-20 Pedro Alves <palves@redhat.com>
4524
4525 * NEWS: Mention that compare-sections now works with all targets.
4526
4527 * remote.c (PACKET_qCRC): New enum value.
4528 (remote_verify_memory): Don't send qCRC if the target has no
4529 execution. Use packet_support/packet_ok. If the target doesn't
4530 support the qCRC packet, fallback to a deep memory copy.
4531 (compare_sections_command): Say "target image" instead of "remote
4532 executable".
4533 (_initialize_remote): Add PACKET_qCRC to the list of config
4534 packets that have no associated command. Extend comment.
4535 * target.c (simple_verify_memory, default_verify_memory): New
4536 function.
4537 * target.h (struct target_ops) <to_verify_memory>: Default to
4538 default_verify_memory.
4539 (simple_verify_memory): New declaration.
4540 * target-delegates.c: Regenerate.
4541
4542 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4543
4544 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4545
4546 2014-05-20 Hui Zhu <hui@codesourcery.com>
4547 Yao Qi <yao@codesourcery.com>
4548
4549 PR backtrace/16558
4550 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4551 and change address of sp and pc.
4552
4553 2014-05-19 Tom Tromey <tromey@redhat.com>
4554
4555 * gdbtypes.c (rank_function): Use XNEWVEC.
4556 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4557
4558 2014-05-19 Doug Evans <dje@google.com>
4559
4560 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4561 build_type_unit_groups and moved closer to only caller. Remove
4562 arguments. All references updated. Remove outdated .gdb_index
4563 comment.
4564 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4565 build_type_psymtabs_1.
4566
4567 2014-05-19 Doug Evans <dje@google.com>
4568
4569 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4570 n_type_unit_groups, all_type_unit_groups. All uses removed.
4571 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4572 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4573 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4574 (add_type_unit_group_to_table): Delete.
4575
4576 2014-05-19 Doug Evans <dje@google.com>
4577
4578 * eval.c (evaluate_subexp_standard): Add some comments.
4579
4580 2014-05-17 Doug Evans <xdje42@gmail.com>
4581
4582 * progspace.c (remove_program_space): Delete, unused.
4583 * progspace.h (remove_program_space): Ditto.
4584
4585 2014-05-17 Doug Evans <xdje42@gmail.com>
4586
4587 * inferior.c (prune_inferiors): Fix comment.
4588 (remove_inferior_command): Call prune_program_spaces.
4589
4590 2014-05-16 Doug Evans <dje@google.com>
4591
4592 New command line option -D.
4593 * NEWS: Mention it.
4594 * main.c (set_gdb_data_directory): New function.
4595 (captured_main): Recognize -D. Flag error for --data-directory "".
4596 Call set_gdb_data_directory.
4597 (print_gdb_help): Print --data-directory, -D.
4598 * main.h (set_gdb_data_directory): Declare.
4599 * top.c (staged_gdb_datadir): New static global.
4600 (set_gdb_datadir): Call set_gdb_data_directory
4601 (show_gdb_datadir): New function.
4602 (init_main): Update init of data-directory parameter.
4603
4604 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4605
4606 Import the "dirfd" gnulib module.
4607 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4608 * gnulib/aclocal.m4: Update.
4609 * gnulib/config.in: Update.
4610 * gnulib/configure: Update.
4611 * gnulib/import/Makefile.am: Update.
4612 * gnulib/import/Makefile.in: Update.
4613 * gnulib/import/dirfd.c: New.
4614 * gnulib/import/m4/dirfd.m4: New.
4615 * gnulib/import/m4/gnulib-cache.m4: Update.
4616 * gnulib/import/m4/gnulib-comp.m4: Update.
4617
4618 2014-05-16 Pierre Muller <muller@sourceware.org>
4619 Yao Qi <yao@codesourcery.com>
4620
4621 * valprint.c (print_wchar): Move the code on checking whether
4622 W is a printable wide char to the default branch of switch
4623 statement below. Call wchar_printable instead of gdb_iswprint.
4624
4625 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4626
4627 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4628 ldr.w and ldrd instructions.
4629
4630 2014-05-15 Doug Evans <dje@google.com>
4631
4632 * dwarf2read.c (read_structure_type): Delete outdated comments.
4633
4634 2014-05-14 Tom Tromey <tromey@redhat.com>
4635
4636 * macrocmd.c (print_macro_definition): Reindent.
4637
4638 2014-05-13 Doug Evans <xdje42@gmail.com>
4639
4640 * python/py-cmd.c (cmdpy_completer): Add comment.
4641 (completers): Make const.
4642
4643 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4644
4645 * infrun.c (resume): Remove should_resume (unused). Move up
4646 declaration of resume_ptid.
4647
4648 2014-05-13 Tom Tromey <tromey@redhat.com>
4649
4650 * language.h (unop_type_check): Remove.
4651 (binop_type_check): Don't declare.
4652
4653 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4654
4655 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4656 call to regcache_raw_collect.
4657
4658 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4659
4660 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4661 mi_console->quote as the quoting character.
4662
4663 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4664
4665 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4666
4667 2014-04-29 Tom Tromey <tromey@redhat.com>
4668
4669 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4670 "show debug varobj".
4671
4672 2014-05-07 Kyle McMartin <kyle@redhat.com>
4673
4674 Pushed by Joel Brobecker <brobecker@adacore.com>.
4675 * aarch64-tdep.c (aarch64_software_single_step): New function.
4676 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4677 with aarch64_software_single_step.
4678
4679 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4680
4681 GDB 7.7.1 released.
4682
4683 2014-05-05 Keith Seitz <keiths@redhat.com>
4684
4685 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4686 variable or history value is successfully parsed.
4687
4688 2014-05-05 Yao Qi <yao@codesourcery.com>
4689 Pedro Alves <palves@redhat.com>
4690
4691 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4692 address of blocks that intersects the requested range. Trim
4693 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4694 sections.
4695 * ctf.c (ctf_xfer_partial): Likewise.
4696
4697 2014-05-05 Yao Qi <yao@codesourcery.com>
4698
4699 * printcmd.c (display_command): Remove the check to
4700 target_has_execution.
4701
4702 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4703
4704 * ppcobsd-nat.c: Include "obsd-nat.h".
4705 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4706 add_target.
4707 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4708
4709 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4710
4711 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4712 and 16-bit signed and unsigned arguments. Update comment.
4713 (stap_parse_probe_arguments): Extend code to handle such
4714 arguments. Use warning instead of complaint to notify about
4715 unrecognized bitness.
4716
4717 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4718
4719 PR breakpoints/16889
4720 * stap-probe.c (stap_parse_probe_arguments): Simplify
4721 check for non-prefixed probes (i.e., probes whose
4722 arguments do not start with "N@"). Always set the
4723 argument type to a sane value.
4724
4725 2014-05-01 David Taylor <dtaylor@emc.com>
4726
4727 * remote.c (compare_sections_command): Add -r option to compare
4728 all loadable read-only sections.
4729
4730 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4731
4732 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4733 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4734 Update all callers.
4735 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4736 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4737 Remove unused CORE_ADDR argument. Update all callers.
4738
4739 2014-04-29 Pedro Alves <palves@redhat.com>
4740
4741 * remote.c (struct packet_config) <detect>: Extend comment.
4742 (add_packet_config_cmd): Don't set the config's detect or support
4743 fields here.
4744 (init_all_packet_configs): Also initialize the config's 'detect'
4745 field.
4746 (reset_all_packet_configs_support): New function.
4747 (remote_open_1): Call reset_all_packet_configs_support instead of
4748 init_all_packet_configs.
4749 (_initialize_remote): Initialize all packet configs. Assert that
4750 all packets have an associated command, except a few known
4751 outliers.
4752
4753 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4754
4755 * dwarf2read.c (read_subrange_type): Handle dynamic
4756 DW_AT_lower_bound attributes.
4757
4758 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4759
4760 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4761 dynamic bounds before computing its upper bound.
4762 (ada_discrete_type_low_bound): Same as above with the lower bound.
4763
4764 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4765
4766 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4767 range types. Adjust the array handling implementation to
4768 take advantage of this change.
4769 (resolve_dynamic_range): New function, mostly extracted from
4770 resolve_dynamic_bounds.
4771 (resolve_dynamic_array): New function, mostly extracted from
4772 resolve_dynamic_bounds.
4773 (resolve_dynamic_bounds): Delete.
4774 (resolve_dynamic_type): Reimplement. Add handling of
4775 TYPE_CODE_RANGE types.
4776
4777 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4778
4779 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4780 handling of parallel ___XA types.
4781
4782 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4783
4784 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4785 unnecessary second call to static_unwrap_type.
4786
4787 2014-04-27 Hui Zhu <hui@codesourcery.com>
4788
4789 * stack.c (print_frame_info): Call do_gdb_disassembly with
4790 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4791
4792 2014-04-26 Doug Evans <xdje42@gmail.com>
4793
4794 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4795
4796 2014-04-25 Pedro Alves <palves@redhat.com>
4797
4798 PR server/16255
4799 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4800 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4801 and newline from built string.
4802 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4803 (linux_ptrace_attach_fail_reason): ... this.
4804 * linux-nat.c (linux_nat_attach): Adjust to use
4805 linux_ptrace_attach_fail_reason.
4806
4807 2014-04-25 Pedro Alves <palves@redhat.com>
4808
4809 * remote.c (struct remote_state): Remove multi_process_aware,
4810 non_stop_aware, cond_tracepoints, cond_breakpoints,
4811 breakpoint_commands, fast_tracepoints, static_tracepoints,
4812 install_in_trace, disconnected_tracing,
4813 enable_disable_tracepoints, string_tracing, and
4814 augmented_libraries_svr4_read fields.
4815 (remote_multi_process_p): Move further below in the file.
4816 (struct packet_config): Add comments.
4817 (update_packet_config): Delete function.
4818 (show_packet_config_cmd): Use packet_config_support.
4819 (add_packet_config_cmd): Use NULL as set callback.
4820 (packet_ok): "set remote foo-packet"-style commands no longer
4821 change config->supported -- adjust.
4822 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4823 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4824 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4825 (PACKET_QNonStop, PACKET_multiprocess_feature)
4826 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4827 (PACKET_DisconnectedTracing_feature)
4828 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4829 (set_remote_protocol_packet_cmd): Delete function.
4830 (packet_config_support, packet_support): New functions.
4831 (set_remote_protocol_Z_packet_cmd): Don't call
4832 update_packet_config.
4833 (remote_query_attached, remote_pass_signals)
4834 (remote_program_signals, remote_threads_info)
4835 (remote_threads_extra_info, remote_start_remote): Use
4836 packet_support.
4837 (remote_start_remote): Use packet_config_support and
4838 packet_support.
4839 (init_all_packet_configs): Set all packets to unknown support,
4840 instead of calling update_packet_config.
4841 (remote_check_symbols): Use packet_support.
4842 (remote_supported_packet): Unconditionally set the packet config's
4843 support status.
4844 (remote_multi_process_feature, remote_non_stop_feature)
4845 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4846 (remote_breakpoint_commands_feature)
4847 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4848 (remote_install_in_trace_feature)
4849 (remote_disconnected_tracing_feature)
4850 (remote_enable_disable_tracepoint_feature)
4851 (remote_string_tracing_feature)
4852 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4853 (remote_protocol_features): Adjust to use remote_supported_packet
4854 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4855 "ConditionalTracepoints", "ConditionalBreakpoints",
4856 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4857 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4858 "EnableDisableTracepoints", and "tracenz".
4859 (remote_query_supported): Use packet_support.
4860 (remote_open_1): Adjust.
4861 (extended_remote_attach_1): Use packet_support. Switch on the
4862 result of packet_ok instead of checking whether the packet ended
4863 up disabled.
4864 (remote_vcont_resume): Use packet_support.
4865 (remote_resume, remote_stop_ns, fetch_register_using_p)
4866 (remote_prepare_to_store, store_register_using_P)
4867 (check_binary_download, remote_write_bytes): Use packet_support.
4868 (remote_vkill): Use packet_support. Switch on the result of
4869 packet_ok instead of checking whether the packet ended up
4870 disabled.
4871 (extended_remote_supports_disable_randomization): Use
4872 packet_support.
4873 (extended_remote_run): Switch on the result of packet_ok instead
4874 of checking whether the packet ended up disabled.
4875 (remote_insert_breakpoint, remote_remove_breakpoint)
4876 (remote_insert_watchpoint, remote_remove_watchpoint)
4877 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4878 packet_support.
4879 (remote_search_memory): Use packet_config_support.
4880 (remote_get_thread_local_address, remote_get_tib_address)
4881 (remote_hostio_send_command, remote_can_execute_reverse): Use
4882 packet_support.
4883 (remote_supports_cond_tracepoints)
4884 (remote_supports_cond_breakpoints)
4885 (remote_supports_fast_tracepoints)
4886 (remote_supports_static_tracepoints)
4887 (remote_supports_install_in_trace)
4888 (remote_supports_enable_disable_tracepoint)
4889 (remote_supports_string_tracing)
4890 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4891 the packet config says the feature is enabled or disabled.
4892 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4893 (remote_get_trace_status): Use packet_support.
4894 (remote_set_disconnected_tracing): Adjust to check whether the
4895 feature is enabled with packet_support.
4896 (remote_set_trace_buffer_size, remote_use_agent)
4897 (remote_can_use_agent, remote_supports_btrace): Use
4898 packet_support.
4899 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4900 Use packet_config_support.
4901 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4902 the packet config says the feature is enabled or disabled.
4903 (set_range_stepping): Use packet_support.
4904
4905 2014-04-25 Tom Tromey <tromey@redhat.com>
4906
4907 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4908 argument.
4909
4910 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4911
4912 * NEWS: Mention support for C99 variable length arrays.
4913
4914 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4915
4916 * ada-lang.c (standard_exc): Expand introductory comment.
4917
4918 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4919 Walfred Tedeschi <walfred.tedeschi@intel.com>
4920
4921 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4922 AVX512 registers.
4923 (amd64_linux_read_description): Add code to handle AVX512 xstate
4924 mask and return respective tdesc.
4925 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4926 and features/i386/x32-avx512-linux.c.
4927 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4928 (amd64_linux_core_read_description): Add code to handle AVX512
4929 xstate mask and return respective tdesc.
4930 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4931 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4932 calculation.
4933 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4934 (tdesc_amd64_avx512_linux): New prototype.
4935 (tdesc_x32_avx512_linux): Likewise.
4936 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4937 features/i386/x32-avx512.c.
4938 (amd64_ymm_avx512_names): New register names for pseudo
4939 registers YMM16-31.
4940 (amd64_ymmh_avx512_names): New register names for raw registers
4941 YMMH16-31.
4942 (amd64_k_names): New register names for K registers.
4943 (amd64_zmmh_names): New register names for ZMM raw registers.
4944 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4945 (amd64_xmm_avx512_names): New register names for XMM16-31
4946 registers.
4947 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4948 registers.
4949 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4950 if feature is present.
4951 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4952 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4953 (AMD64_NUM_REGS): Adjust to new number of registers.
4954 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4955 registers supplied via XSTATE by AVX512 registers.
4956 (i386_linux_read_description): Add case for AVX512.
4957 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4958 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4959 (i386_linux_core_read_description): Add case for AVX512.
4960 (i386_linux_init_abi): Install supported register note section
4961 for AVX512.
4962 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4963 AVX512.
4964 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4965 registers to be number of zmm7h + 1.
4966 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4967 * i386-tdep.c: Include features/i386/i386-avx512.c.
4968 (i386_zmm_names): Add ZMM pseudo register names array.
4969 (i386_zmmh_names): Add ZMM raw register names array.
4970 (i386_k_names): Add K raw register names array.
4971 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4972 registers. AVX512 has 16 more ZMM registers than there are YMM
4973 registers.
4974 (i386_zmmh_regnum_p): Add function to look up register number of
4975 ZMM raw registers.
4976 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4977 (i386_k_regnum_p): Likewise for K raw registers.
4978 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4979 registers added by AVX512.
4980 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4981 registers added by AVX512.
4982 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4983 added by AVX512.
4984 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4985 (i386_pseudo_register_name): Add ZMM pseudo registers.
4986 (i386_zmm_type): Construct and return vector registers type for ZMM
4987 registers.
4988 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4989 ZMM0-31 pseudo registers and K registers.
4990 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4991 and YMM16-31 registers from register cache.
4992 (i386_pseudo_register_write): Add code to write K, ZMM and
4993 YMM16-31 registers.
4994 (i386_register_reggroup_p): Add code to include/exclude AVX512
4995 registers in/from respective register groups.
4996 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4997 registers if feature is present in xcr0.
4998 (i386_gdbarch_init): Add code to initialize AVX512 feature
4999 variables in tdep structure, wire in pseudo registers and call
5000 initialize_tdesc_i386_avx512.
5001 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5002 variables.
5003 (i386_regnum): Add AVX512 registers.
5004 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5005 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5006 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5007 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5008 512 bits wide.
5009 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5010 (i386_ymm_avx512_regnum_p): Likewise.
5011 (i386_k_regnum_p): Likewise.
5012 (i386_zmm_regnum_p): Likewise.
5013 (i386_zmmh_regnum_p): Likewise.
5014 * i387-tdep.c : Update year in copyright notice.
5015 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5016 XSAVE buffer.
5017 (XSAVE_YMM_AVX512_ADDR): New macro.
5018 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5019 XSAVE buffer.
5020 (XSAVE_XMM_AVX512_ADDR): New macro.
5021 (xsave_avx512_k_offset): New table for K register offsets in
5022 XSAVE buffer.
5023 (XSAVE_AVX512_K_ADDR): New macro.
5024 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5025 in XSAVE buffer.
5026 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5027 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5028 buffer.
5029 (i387_collect_xsave): Add code to collect AVX512 registers from
5030 XSAVE buffer.
5031 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5032 of XMM16-31 registers.
5033 (I387_NUM_K_REGS): New define for number of K registers.
5034 (I387_K0_REGNUM): New define for K0 register number.
5035 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5036 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5037 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5038 registers.
5039 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5040 (I387_XMM16_REGNUM): New define for XMM16 register number.
5041 (I387_YMM0_REGNUM): New define for YMM0 register number.
5042 (I387_KEND_REGNUM): New define for last K register number.
5043 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5044 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5045 number.
5046 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5047 number.
5048 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5049 size.
5050 * features/Makefile: Add AVX512 related files.
5051 * features/i386/32bit-avx512.xml: New file.
5052 * features/i386/64bit-avx512.xml: Likewise.
5053 * features/i386/amd64-avx512-linux.c: Likewise.
5054 * features/i386/amd64-avx512-linux.xml: Likewise.
5055 * features/i386/amd64-avx512.c: Likewise.
5056 * features/i386/amd64-avx512.xml: Likewise.
5057 * features/i386/i386-avx512-linux.c: Likewise.
5058 * features/i386/i386-avx512-linux.xml: Likewise.
5059 * features/i386/i386-avx512.c: Likewise.
5060 * features/i386/i386-avx512.xml: Likewise.
5061 * features/i386/x32-avx512-linux.c: Likewise.
5062 * features/i386/x32-avx512-linux.xml: Likewise.
5063 * features/i386/x32-avx512.c: Likewise.
5064 * features/i386/x32-avx512.xml: Likewise.
5065 * regformats/i386/amd64-avx512-linux.dat: New file.
5066 * regformats/i386/amd64-avx512.dat: Likewise.
5067 * regformats/i386/i386-avx512-linux.dat: Likewise.
5068 * regformats/i386/i386-avx512.dat: Likewise.
5069 * regformats/i386/x32-avx512-linux.dat: Likewise.
5070 * regformats/i386/x32-avx512.dat: Likewise.
5071 * NEWS: Add note about new support for AVX512.
5072
5073
5074 2014-04-23 Pedro Alves <palves@redhat.com>
5075
5076 * breakpoint.c (insert_bp_location): Tolerate errors if the
5077 breakpoint is set in a user-loaded objfile.
5078 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5079 location is marked shlib_disabled. If the breakpoint is set in a
5080 user-loaded objfile is a GDB-side memory breakpoint, validate it
5081 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5082 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5083 flag.
5084 * mem-break.c (memory_validate_breakpoint): New function.
5085 * objfiles.c (userloaded_objfile_contains_address_p): New
5086 function.
5087 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5088 * target.h (memory_validate_breakpoint): New declaration.
5089
5090 2014-04-23 Pedro Alves <palves@redhat.com>
5091
5092 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5093 the breakpoint is set in a shared library, only suppress
5094 errors for software breakpoints, not hardware breakpoints.
5095
5096 2014-04-22 Pedro Alves <palves@redhat.com>
5097
5098 * infrun.c (schedlock_applies): New function, factored out from
5099 find_thread_needs_step_over.
5100 (find_thread_needs_step_over): Use it.
5101 (switch_back_to_stepped_thread): Always clear trap_expected if the
5102 step over is finished. Return early if scheduler locking applies.
5103 Look for the stepping thread and a potential step-over thread with
5104 a single loop.
5105 (currently_stepping_or_nexting_callback): Delete.
5106
5107 2014-04-22 Nick Clifton <nickc@redhat.com>
5108
5109 * NEWS: Mention that ARM sim now supports tracing.
5110
5111 2014-04-22 Yao Qi <yao@codesourcery.com>
5112
5113 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5114 to ...
5115 * tracefile.c (tracefile_fetch_registers): ... it. New
5116 function.
5117 * tracefile.h (tracefile_fetch_registers): Declare.
5118 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5119 tracefile_fetch_registers.
5120
5121 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5122
5123 PR gdb/14018
5124 * windows-nat.c (thread_rec): Don't display a warning when
5125 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5126 fails for any reason, set th->suspended to -1, so that we don't
5127 try to resume such a thread. Also, don't return NULL in these
5128 cases, to avoid completely ruin the session due to "PC register is
5129 not available" error.
5130 (do_windows_fetch_inferior_registers): Check errors in
5131 GetThreadContext call.
5132 (windows_continue): Accept an additional argument KILLED; if not
5133 zero, ignore errors in the SetThreadContext call, since the
5134 inferior was killed and is shutting down.
5135 (windows_resume, get_windows_debug_event)
5136 (windows_create_inferior, windows_mourn_inferior)
5137 (windows_kill_inferior): All callers of windows_continue changed
5138 to adjust to its new calling sequence.
5139
5140 2014-04-19 Yao Qi <yao@codesourcery.com>
5141
5142 * ctf.c (ctf_open): Call post_create_inferior.
5143
5144 2014-04-19 Yao Qi <yao@codesourcery.com>
5145
5146 * ctf.c (handle_id): New static variable.
5147 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5148 value. Get the declaration of event "register" and get length
5149 of field "contents".
5150
5151 2014-04-19 Yao Qi <yao@codesourcery.com>
5152
5153 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5154
5155 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5156
5157 * valops.c (oload_method_static): Remove unnecessary argument
5158 METHOD. Update all callers.
5159
5160 2014-04-18 Pedro alves <palves@redhat.com>
5161 Tom Tromey <tromey@redhat.com>
5162
5163 PR backtrace/15558
5164 * frame.c (get_prev_frame_1): Rename to ...
5165 (get_prev_frame_always): ... this, and make extern. Adjust.
5166 (skip_artificial_frames): Use get_prev_frame_always.
5167 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5168 (get_frame_unwind_stop_reason): Adjust to rename.
5169 * frame.h (get_prev_frame_always): Declare.
5170 * inline-frame.c: Include frame.h.
5171 (inline_frame_this_id): Use get_prev_frame_always.
5172
5173 2014-04-18 Tristan Gingold <gingold@adacore.com>
5174
5175 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5176 code by using bfd_mach_o_get_base_address.
5177
5178 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5179
5180 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5181 (spu_ax_pseudo_register_collect): New function.
5182 (spu_ax_pseudo_register_push_stack): Likewise.
5183 (spu_dwarf_reg_to_regnum): Likewise.
5184 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5185
5186 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5187
5188 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5189 Replace FRAME argument with FRAME_ID.
5190 * gdbarch.c, gdbarch.h: Regenerate.
5191 * findvar.c (default_value_from_register): Add GDBARCH argument;
5192 replace FRAME by FRAME_ID. No longer call get_frame_id.
5193 (value_from_register): Update call to gdbarch_value_from_register.
5194 * value.h (default_value_from_register): Update prototype.
5195 * s390-linux-tdep.c (s390_value_from_register): Update interface
5196 and call to default_value_from_register.
5197 * spu-tdep.c (spu_value_from_register): Likewise.
5198
5199 * findvar.c (address_from_register): Remove TYPE argument.
5200 Do not call value_from_register; use gdbarch_value_from_register
5201 with null_frame_id instead.
5202 * value.h (address_from_register): Update prototype.
5203 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5204 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5205 address_from_register interface change.
5206
5207 2014-04-17 Yao Qi <yao@codesourcery.com>
5208
5209 * gdbtypes.h: Update comments to link to types and macros'
5210 definitions.
5211
5212 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5213
5214 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5215
5216 2014-04-16 Keith Seitz <keiths@redhat.com>
5217
5218 PR gdb/15827
5219 * dwarf2read.c (skip_one_die): Check that all relative-offset
5220 sibling DIEs fall within range of the current reader's buffer.
5221 (read_partial_die): Likewise.
5222
5223 2014-04-16 Keith Seitz <keiths@redhat.com>
5224
5225 PR c++/16597
5226 * cp-namespace.c (lookup_symbol_file): If the type name of
5227 `this' is NULL, return immediately.
5228
5229 2014-04-14 Keith Seitz <keiths@redhat.com>
5230
5231 PR c++/16253
5232 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5233 from symbol_matches_domain in symtab.c. All local callers
5234 of symbol_matches_domain updated.
5235 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5236 search STRUCT_DOMAIN.
5237 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5238 independently. standard_lookup will do that automatically.
5239 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5240 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5241 (cp_lookup_symbol_in_namespace): Likewise.
5242 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5243 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5244 may return a STRUCT_DOMAIN match.
5245 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5246 * cp-support.c: Include language.h.
5247 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5248 VAR_DOMAIN.
5249 * psymtab.c (match_partial_symbol): Compare the requested
5250 domain with the symbol's domain directly.
5251 (lookup_partial_symbol): Likewise.
5252 * symtab.c (lookup_symbol_in_language): Explain when/why
5253 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5254 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5255 appropriate languages.
5256 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5257 and moved to ada-lang.c
5258 (lookup_block_symbol): Explain that this function only returns
5259 symbol matching the requested DOMAIN.
5260 Compare the requested domain with the symbol's domain directly.
5261 (iterate_over_symbols): Compare the requested domain with the
5262 symbol's domain directly.
5263 * symtab.h (symbol_matches_domain): Remove.
5264
5265 2014-04-14 Tom Tromey <tromey@redhat.com>
5266
5267 PR c++/15246:
5268 * c-exp.y (type_aggregate_p): New function.
5269 (qualified_name, classify_inner_name): Use it.
5270 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5271 and TYPE_TARGET_TYPE of an enum type.
5272 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5273 an enum type.
5274 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5275 handle TYPE_DECLARED_CLASS.
5276 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5277 types.
5278 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5279 * valops.c (enum_constant_from_type): New function.
5280 (value_aggregate_elt): Use it.
5281 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5282 TYPE_CODE_ENUM.
5283
5284 2014-04-14 Tom Tromey <tromey@redhat.com>
5285
5286 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5287 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5288 const.
5289 * value.h (value_aggregate_elt): Update.
5290
5291 2014-04-14 Tom Tromey <tromey@redhat.com>
5292
5293 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5294
5295 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5296
5297 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5298 (evaluate_subexp_standard): Pass noside argument.
5299 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5300 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5301 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5302 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5303 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5304
5305 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5306
5307 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5308 points to a constant blob.
5309
5310 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5311
5312 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5313 property and store it as the high bound and flag the range accordingly.
5314 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5315 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5316 * gdbtypes.h (enum range_flags): New enum.
5317 (struct range_bounds): Add flags member.
5318
5319 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5320
5321 * c-typeprint.c (c_type_print_varspec_suffix): Added
5322 check for not yet resolved high bound. If unresolved, print
5323 "variable length" string to the console instead of random
5324 length.
5325
5326 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5327
5328 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5329 value.
5330 (ada_template_to_fixed_record_type_1): Likewise.
5331 (ada_to_fixed_type_1): Likewise.
5332 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5333 (cp_print_value): Likewise.
5334 * d-valprint.c (dynamic_array_type): Likewise.
5335 * findvar.c (address_of_variable): Likewise.
5336 * jv-valprint.c (java_value_print): Likewise.
5337 * valops.c (value_ind): Likewise.
5338 * value.c (coerce_ref): Likewise.
5339
5340 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5341
5342 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5343 value and retrieve the dynamic type size.
5344
5345 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5346
5347 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5348 passed to sizeof is dynamic evaluate the argument to compute the length.
5349
5350 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5351 Joel Brobecker <brobecker@adacore.com>
5352
5353 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5354 (dwarf2_evaluate_property): New function.
5355 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5356 * dwarf2read.c (attr_to_dynamic_prop): New function.
5357 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5358 attribute.
5359 * gdbtypes.c: Include dwarf2loc.h.
5360 (is_dynamic_type): New function.
5361 (resolve_dynamic_type): New function.
5362 (resolve_dynamic_bounds): New function.
5363 (get_type_length): New function.
5364 (check_typedef): Use get_type_length to compute type length.
5365 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5366 (TYPE_LOW_BOUND_KIND): New macro.
5367 (is_dynamic_type): New function prototype.
5368 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5369 to resolve dynamic properties of the type. Update comment.
5370 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5371
5372 2014-04-14 Richard Henderson <rth@redhat.com>
5373
5374 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5375
5376 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5377 Doug Evans <xdje42@gmail.com>
5378
5379 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5380 dereference TYPE_CODE_REF values.
5381
5382 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5383
5384 Revert the following changes due to regressions:
5385
5386 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5387 (dwarf2_evaluate_property): New function.
5388 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5389 * dwarf2read.c (attr_to_dynamic_prop): New function.
5390 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5391 attribute.
5392 * gdbtypes.c: Include dwarf2loc.h.
5393 (is_dynamic_type): New function.
5394 (resolve_dynamic_type): New function.
5395 (resolve_dynamic_bounds): New function.
5396 (get_type_length): New function.
5397 (check_typedef): Use get_type_length to compute type length.
5398 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5399 (TYPE_LOW_BOUND_KIND): New macro.
5400 (is_dynamic_type): New function prototype.
5401 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5402 to resolve dynamic properties of the type. Update comment.
5403 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5404
5405 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5406 passed to sizeof is dynamic evaluate the argument to compute the length.
5407
5408 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5409 value and retrieve the dynamic type size.
5410
5411 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5412 (ada_template_to_fixed_record_type_1): Likewise.
5413 (ada_to_fixed_type_1): Likewise.
5414 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5415 (cp_print_value): Likewise.
5416 * d-valprint.c (dynamic_array_type): Likewise.
5417 * eval.c (evaluate_subexp_with_coercion): 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
5423 * c-typeprint.c (c_type_print_varspec_suffix): Added
5424 check for not yet resolved high bound. If unresolved, print
5425 "variable length" string to the console instead of random
5426 length.
5427
5428 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5429 property and store it as the high bound and flag the range accordingly.
5430 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5431 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5432 * gdbtypes.h (enum range_flags): New enum.
5433 (struct range_bounds): Add flags member.
5434
5435 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5436 points to a constant blob.
5437
5438 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5439 (evaluate_subexp_standard): Pass noside argument.
5440 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5441 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5442 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5443 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5444 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5445
5446 2014-04-11 Keith Seitz <keiths@redhat.com>
5447
5448 PR c++/16675
5449 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5450 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5451 reference types.
5452
5453 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5454
5455 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5456 (evaluate_subexp_standard): Pass noside argument.
5457 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5458 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5459 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5460 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5461 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5462
5463 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5464
5465 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5466 points to a constant blob.
5467
5468 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5469
5470 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5471 property and store it as the high bound and flag the range accordingly.
5472 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5473 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5474 * gdbtypes.h (enum range_flags): New enum.
5475 (struct range_bounds): Add flags member.
5476
5477 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5478
5479 * c-typeprint.c (c_type_print_varspec_suffix): Added
5480 check for not yet resolved high bound. If unresolved, print
5481 "variable length" string to the console instead of random
5482 length.
5483
5484 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5485
5486 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5487 (ada_template_to_fixed_record_type_1): Likewise.
5488 (ada_to_fixed_type_1): Likewise.
5489 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5490 (cp_print_value): Likewise.
5491 * d-valprint.c (dynamic_array_type): Likewise.
5492 * eval.c (evaluate_subexp_with_coercion): Likewise.
5493 * findvar.c (address_of_variable): Likewise.
5494 * jv-valprint.c (java_value_print): Likewise.
5495 * valops.c (value_ind): Likewise.
5496 * value.c (coerce_ref): Likewise.
5497
5498 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5499
5500 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5501 value and retrieve the dynamic type size.
5502
5503 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5504
5505 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5506 passed to sizeof is dynamic evaluate the argument to compute the length.
5507
5508 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5509
5510 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5511 (dwarf2_evaluate_property): New function.
5512 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5513 * dwarf2read.c (attr_to_dynamic_prop): New function.
5514 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5515 attribute.
5516 * gdbtypes.c: Include dwarf2loc.h.
5517 (is_dynamic_type): New function.
5518 (resolve_dynamic_type): New function.
5519 (resolve_dynamic_bounds): New function.
5520 (get_type_length): New function.
5521 (check_typedef): Use get_type_length to compute type length.
5522 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5523 (TYPE_LOW_BOUND_KIND): New macro.
5524 (is_dynamic_type): New function prototype.
5525 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5526 to resolve dynamic properties of the type. Update comment.
5527 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5528
5529 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5530
5531 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5532 declaring high/low bounds and change uses accordingly. Call
5533 create_range_type instead of create_static_range_type.
5534 * gdbtypes.c (create_range_type): New function.
5535 (create_range_type): Convert bounds into struct bound_prop and pass
5536 them to create_range_type.
5537 * gdbtypes.h (struct bound_prop): New struct.
5538 (create_range_type): New function prototype.
5539 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5540 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5541 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5542 part of the bound.
5543 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5544
5545 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5546
5547 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5548 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5549 * ada-lang.c: All uses of create_range_type updated.
5550 * coffread.c: All uses of create_range_type updated.
5551 * dwarf2read.c: All uses of create_range_type updated.
5552 * f-exp.y: All uses of create_range_type updated.
5553 * m2-valprint.c: All uses of create_range_type updated.
5554 * mdebugread.c: All uses of create_range_type updated.
5555 * stabsread.c: All uses of create_range_type updated.
5556 * valops.c: All uses of create_range_type updated.
5557 * valprint.c: All uses of create_range_type updated.
5558
5559 2014-04-10 Pedro Alves <palves@redhat.com>
5560
5561 * breakpoint.c (single_step_breakpoints)
5562 (single_step_gdbarch): Move up in the file.
5563 (one_breakpoint_xfer_memory): New function, factored out from ...
5564 (breakpoint_xfer_memory): ... here. Also process single-step
5565 breakpoints.
5566
5567 2014-04-09 Tristan Gingold <gingold@adacore.com>
5568
5569 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5570 comments.
5571 (darwin_decode_exception_message): Free port only after use.
5572
5573 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5574
5575 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5576 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5577 when setting the size of call_length.
5578
5579 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5580
5581 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5582 dereference TYPE_CODE_REF values.
5583
5584 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5585
5586 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5587 end of warning message.
5588
5589 2014-04-03 Doug Evans <dje@google.com>
5590
5591 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5592 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5593
5594 2014-04-02 Alan Modra <amodra@gmail.com>
5595
5596 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5597 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5598 (struct symbol_file_add_from_memory_args): Add size field.
5599 (find_vdso_size): New function.
5600 (add_vsyscall_page): Attempt to find vdso size.
5601
5602 2014-04-01 Doug Evans <dje@google.com>
5603
5604 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5605
5606 2014-04-01 Tristan Gingold <gingold@adacore.com>
5607
5608 * darwin-nat.c (darwin_encode_reply): Add prototype.
5609 (darwin_decode_exception_message): Reply to unknown inferiors.
5610 (darwin_decode_message): Handle message by id. Ignore message
5611 to unknown inferior.
5612 (darwin_wait): Discard unknown messages, add debug trace.
5613
5614 2014-03-31 Doug Evans <dje@google.com>
5615
5616 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5617 comp_dir_string.
5618
5619 2014-03-31 Doug Evans <dje@google.com>
5620
5621 New option "set print symbol-loading".
5622 * NEWS: Mention it.
5623 * solib.c (solib_read_symbols): Only print symbol loading messages
5624 if requested.
5625 (solib_add): If symbol loading is in "brief" mode, notify user
5626 symbols are being loaded.
5627 (reload_shared_libraries_1): Ditto.
5628 * symfile.c (print_symbol_loading_off): New static global.
5629 (print_symbol_loading_brief): New static global.
5630 (print_symbol_loading_full): New static global.
5631 (print_symbol_loading_enums): New static global.
5632 (print_symbol_loading): New static global.
5633 (print_symbol_loading_p): New function.
5634 (symbol_file_add_with_addrs): Only print symbol loading messages
5635 if requested.
5636 (_initialize_symfile): Register "print symbol-loading" set/show
5637 command.
5638 * symfile.h (print_symbol_loading_p): Declare.
5639
5640 2014-03-30 Doug Evans <xdje42@gmail.com>
5641
5642 * infrun.c (set_last_target_status): New function.
5643 (handle_inferior_event): Call it.
5644
5645 2014-03-30 Doug Evans <xdje42@gmail.com>
5646
5647 * inferior.h (enum stop_kind): Improve comment.
5648
5649 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5650
5651 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5652 a reference, strip the reference layer before calling
5653 the lang_ops value_has_mutated callback.
5654
5655 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5656
5657 Remove some globals from our parser.
5658 * language.c (unk_lang_parser): Add "struct parser_state"
5659 argument.
5660 * language.h (struct language_defn) <la_parser>: Likewise.
5661 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5662 (initialize_expout): Add "struct parser_state" argument.
5663 Rewrite function to use the parser state.
5664 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5665 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5666 write_exp_elt_longcst, write_exp_elt_dblcst,
5667 write_exp_elt_decfloatcst, write_exp_elt_type,
5668 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5669 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5670 write_dollar_variable): Likewise.
5671 (parse_exp_in_context_1): Use parser state.
5672 (insert_type_address_space): Add "struct parser_state" argument.
5673 Use parser state.
5674 (increase_expout_size): New function.
5675 * parser-defs.h: Forward declare "struct language_defn" and
5676 "struct parser_state".
5677 (expout, expout_size, expout_ptr): Remove extern declarations.
5678 (parse_gdbarch, parse_language): Rewrite macro declarations to
5679 accept the parser state.
5680 (struct parser_state): New struct.
5681 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5682 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5683 write_exp_elt_decfloatcst, write_exp_elt_type,
5684 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5685 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5686 write_exp_msymbol, write_dollar_variable,
5687 mark_struct_expression, insert_type_address_space): Add "struct
5688 parser_state" argument.
5689 (increase_expout_size): New function.
5690 * utils.c (do_clear_parser_state): New function.
5691 (make_cleanup_clear_parser_state): Likewise.
5692 * utils.h (make_cleanup_clear_parser_state): New function
5693 prototype.
5694 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5695 Update calls to write_exp* in order to pass the parser state.
5696 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5697 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5698 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5699 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5700 * stap-probe.c (stap_parse_register_operand): Likewise.
5701 (stap_parse_single_operand): Likewise.
5702 (stap_parse_argument_1): Likewise.
5703 (stap_parse_argument): Use parser state.
5704 * stap-probe.h: Include "parser-defs.h".
5705 (struct stap_parse_info) <pstate>: New field.
5706 * c-exp.y (parse_type): Rewrite to use parser state.
5707 (yyparse): Redefine to c_parse_internal.
5708 (pstate): New global variable.
5709 (parse_number): Add "struct parser_state" argument.
5710 (write_destructor_name): Likewise.
5711 (type_exp): Update calls to write_exp* and similars in order to
5712 use parser state.
5713 (exp1, exp, variable, qualified_name, space_identifier,
5714 typename, typebase): Likewise.
5715 (write_destructor_name, parse_number, lex_one_token,
5716 classify_name, classify_inner_name, c_parse): Add "struct
5717 parser_state" argument. Update function to use parser state.
5718 * c-lang.h: Forward declare "struct parser_state".
5719 (c_parse): Add "struct parser_state" argument.
5720 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5721 (yyparse): Redefine macro to ada_parse_internal.
5722 (pstate): New variable.
5723 (write_int, write_object_renaming, write_var_or_type,
5724 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5725 type_int, type_long, type_long_long, type_float, type_double,
5726 type_long_double, type_char, type_boolean, type_system_address):
5727 Add "struct parser_state" argument.
5728 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5729 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5730 var_or_type, aggregate, aggregate_component_list,
5731 positional_list, others, component_group,
5732 component_associations): Update calls to write_exp* and similar
5733 functions in order to use parser state.
5734 (ada_parse, write_var_from_sym, write_int,
5735 write_exp_op_with_string, write_object_renaming,
5736 find_primitive_type, write_selectors, write_ambiguous_var,
5737 write_var_or_type, write_name_assoc, type_int, type_long,
5738 type_long_long, type_float, type_double, type_long_double,
5739 type_char, type_boolean, type_system_address): Add "struct
5740 parser_state" argument. Adjust function to use parser state.
5741 * ada-lang.c (parse): Likewise.
5742 * ada-lang.h: Forward declare "struct parser_state".
5743 (ada_parse): Add "struct parser_state" argument.
5744 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5745 calls to both functions.
5746 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5747 parser state.
5748 (yyparse): Redefine macro to f_parse_internal.
5749 (pstate): New variable.
5750 (parse_number): Add "struct parser_state" argument.
5751 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5752 and similars in order to use parser state.
5753 (parse_number): Adjust code to use parser state.
5754 (yylex): Likewise.
5755 (f_parse): New function.
5756 * f-lang.h: Forward declare "struct parser_state".
5757 (f_parse): Add "struct parser_state" argument.
5758 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5759 parser state.
5760 (yyparse): Redefine macro for java_parse_internal.
5761 (pstate): New variable.
5762 (push_expression_name, push_expression_name, insert_exp): Add
5763 "struct parser_state" argument.
5764 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5765 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5766 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5767 PostIncrementExpression, PostDecrementExpression,
5768 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5769 UnaryExpressionNotPlusMinus, CastExpression,
5770 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5771 RelationalExpression, EqualityExpression, AndExpression,
5772 ExclusiveOrExpression, InclusiveOrExpression,
5773 ConditionalAndExpression, ConditionalOrExpression,
5774 ConditionalExpression, Assignment, LeftHandSide): Update
5775 calls to write_exp* and similars in order to use parser state.
5776 (parse_number): Ajust code to use parser state.
5777 (yylex): Likewise.
5778 (java_parse): New function.
5779 (push_variable): Add "struct parser_state" argument. Adjust
5780 code to user parser state.
5781 (push_fieldnames, push_qualified_expression_name,
5782 push_expression_name, insert_exp): Likewise.
5783 * jv-lang.h: Forward declare "struct parser_state".
5784 (java_parse): Add "struct parser_state" argument.
5785 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5786 parser state.
5787 (yyparse): Redefine macro to m2_parse_internal.
5788 (pstate): New variable.
5789 (type_exp, exp, fblock, variable, type): Update calls to
5790 write_exp* and similars to use parser state.
5791 (yylex): Likewise.
5792 (m2_parse): New function.
5793 * m2-lang.h: Forward declare "struct parser_state".
5794 (m2_parse): Add "struct parser_state" argument.
5795 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5796 * objc-lang.h: Forward declare "struct parser_state".
5797 (end_msglist): Add "struct parser_state" argument.
5798 * p-exp.y (parse_type): Rewrite macro to use parser state.
5799 (yyparse): Redefine macro to pascal_parse_internal.
5800 (pstate): New variable.
5801 (parse_number): Add "struct parser_state" argument.
5802 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5803 write_exp* and similars in order to use parser state.
5804 (parse_number, yylex): Adjust code to use parser state.
5805 (pascal_parse): New function.
5806 * p-lang.h: Forward declare "struct parser_state".
5807 (pascal_parse): Add "struct parser_state" argument.
5808 * go-exp.y (parse_type): Rewrite macro to use parser state.
5809 (yyparse): Redefine macro to go_parse_internal.
5810 (pstate): New variable.
5811 (parse_number): Add "struct parser_state" argument.
5812 (type_exp, exp1, exp, variable, type): Update calls to
5813 write_exp* and similars in order to use parser state.
5814 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5815 to use parser state.
5816 (go_parse): Likewise.
5817 * go-lang.h: Forward declare "struct parser_state".
5818 (go_parse): Add "struct parser_state" argument.
5819
5820 2014-03-27 Doug Evans <dje@google.com>
5821
5822 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5823
5824 2014-03-27 Doug Evans <dje@google.com>
5825
5826 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5827 Remove argument abbrev_section. All callers updated.
5828
5829 2014-03-27 Doug Evans <dje@google.com>
5830
5831 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5832 addr_base, ranges_base.
5833
5834 2014-03-26 Keith Seitz <keiths@redhat.com>
5835
5836 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5837 types, not VAR_DOMAIN.
5838
5839 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5840
5841 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5842 "ra" registers.
5843 * features/nios2-linux.c: Regenerated.
5844 * features/nios2.c: Regenerated.
5845
5846 2014-03-25 Pedro Alves <palves@redhat.com>
5847
5848 * cli/cli-script.c (script_from_file): Force the interpreter to
5849 sync mode.
5850
5851 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5852
5853 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5854 small stack allocation.
5855
5856 2014-03-24 Tristan Gingold <gingold@adacore.com>
5857
5858 * darwin-nat.c (exc_server): Remove unused prototype.
5859 (darwin_dump_message): Correctly display data on x86_64.
5860 (darwin_encode_reply): Fix style.
5861 Add comments and fix indentation.
5862
5863 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5864
5865 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5866
5867 2014-03-22 Doug Evans <xdje42@gmail.com>
5868
5869 * infcmd.c: Whitespace fixes.
5870 (interrupt_command): Merge two function comments into one.
5871
5872 2014-03-22 Doug Evans <xdje42@gmail.com>
5873
5874 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5875 All uses updated.
5876
5877 2014-03-22 Yao Qi <yao@codesourcery.com>
5878
5879 * remote.c (target_read_live_memory): Remove.
5880 (memory_xfer_live_readonly_partial): Rename it to
5881 remote_xfer_live_readonly_partial. Remove argument 'object'.
5882 All callers updated. Call remote_read_bytes_1
5883 instead of target_read_live_memory.
5884 * tracepoint.c (set_traceframe_number): Remove.
5885 (make_cleanup_restore_traceframe_number): Likewise .
5886 * tracepoint.h (set_traceframe_number): Remove declaration.
5887 (make_cleanup_restore_traceframe_number): Likewise.
5888
5889 2014-03-22 Yao Qi <yao@codesourcery.com>
5890
5891 * remote.c (remote_read_bytes): Move code on reading from the
5892 remote stub to ...
5893 (remote_read_bytes_1): ... here. New function.
5894
5895 2014-03-22 Yao Qi <yao@codesourcery.com>
5896
5897 * ctf.c (ctf_xfer_partial): Check the return value of
5898 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5899 return TARGET_XFER_UNAVAILABLE.
5900 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5901 * target.c (target_read_live_memory): Move it to remote.c.
5902 (memory_xfer_live_readonly_partial): Likewise.
5903 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5904 * remote.c (target_read_live_memory): Moved from target.c.
5905 (memory_xfer_live_readonly_partial): Likewise.
5906 (remote_read_bytes): Factored out from
5907 memory_xfer_partial_1.
5908
5909 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5910
5911 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5912 NULL pointer.
5913
5914 2014-03-21 Pedro Alves <palves@redhat.com>
5915
5916 * infrun.c (normal_stop): Extend comment.
5917
5918 2014-03-21 Hui Zhu <hui@codesourcery.com>
5919 Pedro Alves <palves@redhat.com>
5920
5921 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5922 static buffer.
5923 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5924 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5925 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5926
5927 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5928
5929 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5930 `z' formatted output modifier.
5931
5932 2014-03-20 Tom Tromey <tromey@redhat.com>
5933 Sergio Durigan Junior <sergiodj@redhat.com>
5934
5935 * probe.c (parse_probes): Turn assert into an ordinary error.
5936 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5937 exceptions when parsing probes. Rearrange the code for clarity.
5938
5939 2014-03-20 Tom Tromey <tromey@redhat.com>
5940
5941 PR gdb/14135
5942 * top.c (execute_command): Only dispatch events if the command
5943 started the target.
5944
5945 2014-03-20 Tom Tromey <tromey@redhat.com>
5946
5947 PR cli/15718
5948 * infcall.c: Include event-top.h.
5949 (run_inferior_call): Call async_disable_stdin if needed.
5950
5951 2014-03-20 Pedro Alves <palves@redhat.com>
5952
5953 * infrun.c (prepare_to_proceed): Delete.
5954 (thread_still_needs_step_over): New function.
5955 (find_thread_needs_step_over): New function.
5956 (proceed): If the current thread needs a step-over, set its
5957 steping_over_breakpoint flag. Adjust to use
5958 find_thread_needs_step_over instead of prepare_to_proceed.
5959 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5960 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5961 breakpoint.
5962 (switch_back_to_stepped_thread): Step over breakpoints of all
5963 threads not the stepping thread, before switching back to the
5964 stepping thread.
5965
5966 2014-03-20 Pedro Alves <palves@redhat.com>
5967
5968 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5969 extern.
5970 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5971 * infrun.c (saved_singlestep_ptid)
5972 (stepping_past_singlestep_breakpoint): Delete.
5973 (resume): Remove stepping_past_singlestep_breakpoint handling.
5974 (proceed): Store the prev_pc of the stepping thread too.
5975 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5976 singlestep_pc.
5977 (enum infwait_states): Delete infwait_thread_hop_state.
5978 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5979 field.
5980 (handle_inferior_event): Adjust.
5981 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5982 handling and the thread-hop code. Before removing single-step
5983 breakpoints, check whether the thread hit a single-step breakpoint
5984 of another thread. If it did, the trap is not a random signal.
5985 (switch_back_to_stepped_thread): If the event thread hit a
5986 single-step breakpoint, unblock it before switching to the
5987 stepping thread. Handle the case of the stepped thread having
5988 advanced already.
5989 (keep_going): Handle the case of the current thread moving past a
5990 single-step breakpoint.
5991
5992 2014-03-20 Pedro Alves <palves@redhat.com>
5993
5994 PR breakpoints/7143
5995 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5996 are being stepped over.
5997 (breakpoint_address_match): Make extern.
5998 * breakpoint.h (breakpoint_address_match): New declaration.
5999 * inferior.h (stepping_past_instruction_at): New declaration.
6000 * infrun.c (struct step_over_info): New type.
6001 (step_over_info): New global.
6002 (set_step_over_info, clear_step_over_info)
6003 (stepping_past_instruction_at): New functions.
6004 (handle_inferior_event): Clear the step-over info when
6005 trap_expected is cleared.
6006 (resume): Remove now stale comment.
6007 (clear_proceed_status): Clear step-over info.
6008 (proceed): Adjust step-over handling to set or clear the step-over
6009 info instead of removing all breakpoints.
6010 (handle_signal_stop): When setting up a thread-hop, don't remove
6011 breakpoints here.
6012 (stop_stepping): Clear step-over info.
6013 (keep_going): Adjust step-over handling to set or clear step-over
6014 info and then always inserting breakpoints, instead of removing
6015 all breakpoints when stepping over one.
6016
6017 2014-03-20 Pedro Alves <palves@redhat.com>
6018
6019 * infrun.c (previous_inferior_ptid): Adjust comment.
6020 (deferred_step_ptid): Delete.
6021 (infrun_thread_ptid_changed, prepare_to_proceed)
6022 (init_wait_for_inferior): Adjust.
6023 (handle_signal_stop): Delete deferred_step_ptid handling.
6024
6025 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6026
6027 PR gdb/15358
6028 * defs.h (sync_quit_force_run): New declaration.
6029 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6030 * event-top.c (async_sigterm_handler): New declaration.
6031 (async_sigterm_token): New variable.
6032 (async_init_signals): Create also async_sigterm_token.
6033 (async_sigterm_handler): New function.
6034 (sync_quit_force_run): New variable.
6035 (handle_sigterm): Replace quit_force call by other calls.
6036 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6037
6038 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6039
6040 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6041 offset into SPE pseudo registers.
6042
6043 2014-03-18 Pedro Alves <palves@redhat.com>
6044
6045 PR gdb/13860
6046 * inferior.h (print_stop_event): Declare.
6047 * infrun.c (print_stop_event): New, factored out from ...
6048 (normal_stop): ... this.
6049 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6050 of bpstat_print/print_stack_frame.
6051
6052 2014-03-17 Tom Tromey <tromey@redhat.com>
6053
6054 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6055
6056 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6057
6058 * ada-lang.c (decode_constrained_packed_array): Perform a
6059 minimal coercion for reference with coerce_ref instead of
6060 ada_coerce_ref.
6061
6062 2014-03-17 Tristan Gingold <gingold@adacore.com>
6063
6064 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6065 (darwin_solib_create_inferior_hook): Emit a warning if version
6066 is unhandled.
6067
6068 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6069
6070 * python/py-value.c (get_field_flag): Cast flag_name argument to
6071 PyObject_GetAttrString to support Python 2.4.
6072
6073 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6074
6075 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6076 (Global Maintainers): Remove Jan Kratochvil.
6077
6078 2014-03-14 Pedro Alves <palves@redhat.com>
6079
6080 * inferior.h (terminal_ours_for_output): Rename to ...
6081 (child_terminal_ours_for_output): ... this.
6082 (terminal_save_ours): Rename to ...
6083 (child_terminal_save_ours): ... this.
6084 (terminal_ours): Rename to ...
6085 (child_terminal_ours): ... this.
6086 (terminal_inferior): Rename to ...
6087 (child_terminal_inferior): ... this.
6088 (terminal_init_inferior): Rename to ...
6089 (child_terminal_init_inferior): ... this.
6090 (terminal_init_inferior_with_pgrp): Rename to ...
6091 (child_terminal_init_inferior_with_pgrp): ... this.
6092 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6093 (child_terminal_init_with_pgrp): ... this.
6094 (terminal_save_ours): Rename to ...
6095 (child_terminal_save_ours): ... this.
6096 (terminal_init_inferior): Rename to ...
6097 (child_terminal_init): ... this. Adjust.
6098 (terminal_inferior): Rename to ...
6099 (child_terminal_inferior): ... this.
6100 (terminal_ours_for_output): Rename to ...
6101 (child_terminal_ours_for_output): ... this. Adjust.
6102 (terminal_ours): Rename to ...
6103 (child_terminal_ours): ... this.
6104 (terminal_ours_1): Rename to ...
6105 (child_terminal_ours_1): ... this. Adjust.
6106 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6107 * windows-nat.c (do_initial_windows_stuff): Adjust.
6108 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6109 (gnu_terminal_init): ... this. Adjust.
6110 (gnu_target): Adjust.
6111 * inf-child.c (inf_child_target): Adjust.
6112
6113 2014-03-13 Doug Evans <xdje42@gmail.com>
6114
6115 PR guile/16612
6116 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6117 new eq?-hashtab.
6118
6119 2014-03-13 Doug Evans <xdje42@gmail.com>
6120
6121 * value.c (record_latest_value): Call release_value_or_incref
6122 instead of release_value.
6123
6124 2014-03-13 Pedro Alves <palves@redhat.com>
6125
6126 * procfs.c (procfs_target): Don't override to_shortname,
6127 to_longname or to_doc.
6128
6129 2014-03-13 Pedro Alves <palves@redhat.com>
6130
6131 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6132 Unix in user visible strings.
6133
6134 2014-03-12 Stan Shebs <stan@codesourcery.com>
6135
6136 * gdbtypes.h: Annotate comments for Doxygen, add a page
6137 block comment with some general info.
6138
6139 2014-03-12 Pedro Alves <palves@redhat.com>
6140
6141 * infcmd.c (prepare_execution_command): New function, factored out
6142 from several execution commands.
6143 (run_command_1, continue_command, step_1, jump_command)
6144 (signal_command, until_command, advance_command, finish_command)
6145 (attach_command): Use prepare_execution_command.
6146
6147 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6148
6149 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6150 (MAX_BPTS): Define.
6151 (MAX_WPTS): Define.
6152 (struct arm_linux_thread_points): Removed.
6153 (struct arm_linux_process_info): New.
6154 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6155 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6156 (arm_linux_find_breakpoints_by_tid): Removed.
6157 (struct arch_lwp_info): New.
6158 (arm_linux_find_process_pid): New functions.
6159 (arm_linux_add_process): New functions.
6160 (arm_linux_process_info_get): New functions.
6161 (arm_linux_forget_process): New function.
6162 (arm_linux_get_debug_reg_state): New function.
6163 (struct update_registers_data): New.
6164 (update_registers_callback): New function.
6165 (arm_linux_insert_hw_breakpoint1): Updated.
6166 (arm_linux_remove_hw_breakpoint1): Updated.
6167 (arm_linux_insert_hw_breakpoint): Updated.
6168 (arm_linux_remove_hw_breakpoint): Updated.
6169 (arm_linux_insert_watchpoint): Updated.
6170 (arm_linux_remove_watchpoint): Updated.
6171 (arm_linux_new_thread): Updated.
6172 (arm_linux_prepare_to_resume): New function.
6173 (arm_linux_new_fork): New function.
6174 (_initialize_arm_linux_nat): Updated.
6175
6176 2014-03-12 Pedro Alves <palves@redhat.com>
6177
6178 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6179
6180 2014-03-12 Tom Tromey <tromey@redhat.com>
6181
6182 * inf-child.c (return_zero): New function.
6183 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6184 * aix-thread.c (aix_thread_inferior_created): New function.
6185 (aix_thread_attach): Remove.
6186 (init_aix_thread_ops): Don't set to_attach.
6187 (_initialize_aix_thread): Register inferior_created observer.
6188 * corelow.c (init_core_ops): Don't set to_attach or
6189 to_create_inferior.
6190 * exec.c (init_exec_ops): Don't set to_attach or
6191 to_create_inferior.
6192 * infcmd.c (run_command_1): Use find_run_target. Make direct
6193 target calls.
6194 (attach_command): Use find_attach_target. Make direct target
6195 calls.
6196 * record-btrace.c (init_record_btrace_ops): Don't set
6197 to_create_inferior.
6198 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6199 Remove.
6200 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6201 set to_create_inferior.
6202 * target.c (complete_target_initialization): Add assertion.
6203 (target_create_inferior): Remove.
6204 (find_default_attach, find_default_create_inferior): Remove.
6205 (find_attach_target, find_run_target): New functions.
6206 (find_default_is_async_p, find_default_can_async_p)
6207 (target_supports_non_stop, target_attach): Remove.
6208 (init_dummy_target): Don't set to_create_inferior or
6209 to_supports_non_stop.
6210 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6211 TARGET_DEFAULT_FUNC.
6212 <to_create_inferior>: Add comment.
6213 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6214 TARGET_DEFAULT_RETURN.
6215 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6216 (find_attach_target, find_run_target): Declare.
6217 (target_create_inferior): Remove.
6218 (target_has_execution_1): Update comment.
6219 (target_supports_non_stop): Remove.
6220 * target-delegates.c: Rebuild.
6221
6222 2014-03-12 Pedro Alves <palves@redhat.com>
6223
6224 * inf-child.h: Update comment to not mention Unix.
6225
6226 2014-03-12 Pedro Alves <palves@redhat.com>
6227
6228 * inf-child.c: Update top comment to not mention Unix. Add
6229 generic comment describing how this target is meant to be used.
6230 (inf_child_post_attach, inf_child_post_startup_inferior)
6231 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6232 Unix in comment.
6233
6234 2014-03-12 Pedro Alves <palves@redhat.com>
6235
6236 * nto-procfs.c: Include inf-child.h.
6237 (procfs_ops): Delete global.
6238 (procfs_can_run): Delete method.
6239 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6240 target pointer instead of referencing procfs_ops.
6241 (procfs_prepare_to_store): Delete.
6242 (init_procfs_ops): Delete function.
6243 (procfs_target): New function, based on init_procfs_ops, but
6244 inherit inf_child_target.
6245 (_initialize_procfs): Use procfs_target.
6246
6247 2014-03-12 Pedro Alves <palves@redhat.com>
6248
6249 * windows-nat.c: Include inf-child.h.
6250 (windows_ops): Delete global.
6251 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6252 methods.
6253 (init_windows_ops): Delete function.
6254 (windows_target): New function, based on init_windows_ops, but
6255 inherit inf_child_target.
6256 (_initialize_windows_nat): Use windows_target. Install x86
6257 specific target methods here.
6258
6259 2014-03-10 Doug Evans <xdje42@gmail.com>
6260
6261 * guile/guile.c (call_initialize_gdb_module): New function.
6262 (initialize_guile): Replace call to scm_init_guile with call to
6263 scm_with_guile.
6264
6265 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6266
6267 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6268 in call to TYPE_CODE macro.
6269
6270 2014-03-10 Jerome Guitton <guitton@adacore.com>
6271
6272 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6273 Resolve tagged types to full view.
6274
6275 2014-03-10 Hui Zhu <hui@codesourcery.com>
6276
6277 * target.h (target_insert_breakpoint): Remove "hardware" from its
6278 comments.
6279
6280 2014-03-07 Doug Evans <dje@google.com>
6281
6282 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6283
6284 2014-03-07 Doug Evans <dje@google.com>
6285
6286 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6287 Remove unused local comp_dir_attr. Assert exactly one of
6288 stub_comp_unit_die, stub_comp_dir is non-NULL.
6289
6290 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6291
6292 * target.h (complete_target_initialization, add_target):
6293 Add comment.
6294
6295 2014-03-07 Pedro Alves <palves@redhat.com>
6296
6297 * go32-nat.c: Include inf-child.h.
6298 (go32_ops): Delete global.
6299 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6300 Delete methods.
6301 (go32_create_inferior): Push the passed in target pointer instead
6302 of referencing go32_ops.
6303 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6304 (go32_target): New function, based on init_go32_ops, but inherit
6305 inf_child_target.
6306 (_initialize_go32_nat): Use go32_target. Move parts of
6307 init_go32_ops here.
6308
6309 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6310
6311 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6312 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6313 SYMBOL_VALUE_ADDRESS.
6314 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6315
6316 2014-03-06 Yao Qi <yao@codesourcery.com>
6317
6318 * breakpoint.c (get_tracepoint_by_number): Remove argument
6319 optional_p. All callers updated. Adjust comments. Update
6320 output message.
6321 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6322
6323 2014-03-06 Yao Qi <yao@codesourcery.com>
6324
6325 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6326 early if get_number returns zero. Use 'p' instead of 'args'.
6327
6328 2014-03-06 Yao Qi <yao@codesourcery.com>
6329
6330 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6331 message.
6332
6333 2014-03-06 Yao Qi <yao@codesourcery.com>
6334
6335 PR breakpoints/16508
6336 * tracepoint.c (check_trace_running): New function.
6337 (trace_find_command): Move code to check_trace_running and
6338 call check_trace_running.
6339 (trace_find_pc_command): Likewise.
6340 (trace_find_tracepoint_command): Likewise.
6341 (trace_find_line_command): Likewise.
6342 (trace_find_range_command): Likewise.
6343 * tracepoint.h (check_trace_running): Likewise.
6344 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6345
6346 2014-03-06 Yao Qi <yao@codesourcery.com>
6347
6348 * target.h (struct target_ops) <to_traceframe_info>: Use
6349 TARGET_DEFAULT_NORETURN (tcomplain ()).
6350 * target-delegates.c: Regenerated.
6351
6352 2014-03-05 Pedro Alves <palves@redhat.com>
6353
6354 PR gdb/16575
6355 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6356 void. Update comment.
6357 (dcache_xfer_memory): Delete.
6358 (dcache_read_memory_partial): New, based on the read bits of
6359 dcache_xfer_memory.
6360 (dcache_update): Add status parameter. Use ULONGEST for len, and
6361 adjust. Discard cache lines if the reason for the update was
6362 error.
6363 * dcache.h (dcache_xfer_memory): Delete declaration.
6364 (dcache_read_memory_partial): New declaration.
6365 (dcache_update): Update prototype.
6366 * target.c (raw_memory_xfer_partial): Update the dcache here.
6367 (memory_xfer_partial_1): Don't handle dcache writes here.
6368
6369 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6370
6371 * remote-sim.c (gdbsim_load): Add const to prog.
6372
6373 2014-03-03 Tom Tromey <tromey@redhat.com>
6374
6375 * elfread.c (probe_key): Change to bfd_data.
6376 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6377 now per-BFD, not per-objfile.
6378 * stap-probe.c (stap_probe_destroy): Update comment.
6379 (handle_stap_probe): Allocate on the per-BFD obstack.
6380
6381 2014-03-03 Tom Tromey <tromey@redhat.com>
6382
6383 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6384 * breakpoint.c (create_longjmp_master_breakpoint): Use
6385 get_probe_address.
6386 (add_location_to_breakpoint, bkpt_probe_insert_location)
6387 (bkpt_probe_remove_location): Update.
6388 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6389 * elfread.c (elf_symfile_relocate_probe): Remove.
6390 (elf_probe_fns): Update.
6391 (insert_exception_resume_breakpoint): Change type of "probe"
6392 parameter to bound_probe.
6393 (check_exception_resume): Update.
6394 * objfiles.c (objfile_relocate1): Don't relocate probes.
6395 * probe.c (bound_probe_s): New typedef.
6396 (parse_probes): Use get_probe_address. Set sal's objfile.
6397 (find_probe_by_pc): Return a bound_probe.
6398 (collect_probes): Return a VEC(bound_probe_s).
6399 (compare_probes): Update.
6400 (gen_ui_out_table_header_info): Change type of "probes"
6401 parameter. Update.
6402 (info_probes_for_ops): Update.
6403 (get_probe_address): New function.
6404 (probe_safe_evaluate_at_pc): Update.
6405 * probe.h (struct probe_ops) <get_probe_address>: New field.
6406 <set_semaphore, clear_semaphore>: Add objfile parameter.
6407 (struct probe) <objfile>: Remove field.
6408 <arch>: New field.
6409 <address>: Update comment.
6410 (struct bound_probe): New.
6411 (find_probe_by_pc): Return a bound_probe.
6412 (get_probe_address): Declare.
6413 * solib-svr4.c (struct probe_and_action) <address>: New field.
6414 (hash_probe_and_action, equal_probe_and_action): Update.
6415 (register_solib_event_probe): Add address parameter.
6416 (solib_event_probe_at): Update.
6417 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6418 get_probe_address.
6419 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6420 (stap_get_probe_address): New function.
6421 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6422 (compile_probe_arg): Update.
6423 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6424 address.
6425 (handle_stap_probe): Don't relocate the probe.
6426 (stap_relocate): Remove.
6427 (stap_gen_info_probes_table_values): Update.
6428 (stap_probe_ops): Remove stap_relocate.
6429 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6430 (debug_sym_probe_fns): Update.
6431 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6432 * symtab.c (init_sal): Use memset.
6433 * symtab.h (struct symtab_and_line) <objfile>: New field.
6434 * tracepoint.c (start_tracing, stop_tracing): Update.
6435
6436 2014-03-03 Tom Tromey <tromey@redhat.com>
6437
6438 * probe.h (parse_probes, find_probe_by_pc)
6439 (find_probes_in_objfile): Fix comments.
6440
6441 2014-03-02 Doug Evans <xdje42@gmail.com>
6442
6443 * infrun.c (handle_signal_stop): Replace test for
6444 TARGET_WAITKIND_STOPPED with an assert.
6445
6446 2014-03-02 Doug Evans <xdje42@gmail.com>
6447
6448 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6449
6450 2014-03-02 Doug Evans <xdje42@gmail.com>
6451
6452 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6453
6454 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6455
6456 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6457
6458 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6459
6460 * i386obsd-nat.c: Include "obsd-nat.h".
6461 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6462 add_target.
6463 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6464
6465 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6466
6467 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6468
6469 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6470
6471 * mips64obsd-nat.c: Include "obsd-nath".
6472 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6473 add_target
6474 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6475
6476 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6477
6478 * amd64obsd-nat.c: Include "obsd-nat,h.
6479 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6480 add_target.
6481 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6482
6483 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6484
6485 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6486 (find_overload_match): Update call to find_oload_champ.
6487 (find_oload_champ_namespace_loop): Likewise
6488
6489 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6490
6491 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6492
6493 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6494 * config/sparc/obsd64.mh: New file.
6495 * sparc64obsd-nat.c: New file.
6496
6497 * obsd-nat.h: New file.
6498 * obsd-nat.c: New file.
6499 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6500 (ALLDEPFILES): Add obsd-nat.c.
6501
6502 2014-02-28 Tom Tromey <tromey@redhat.com>
6503
6504 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6505 * cli-out.h (cli_ui_out_impl): Now const.
6506 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6507 * ui-out.c (struct ui_out) <impl>: Now const.
6508 (default_ui_out_impl): Now const.
6509 (ui_out_new): Make 'impl' parameter const.
6510 * ui-out.h (ui_out_new): Update.
6511
6512 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6513
6514 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6515
6516 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6517
6518 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6519
6520 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6521
6522 Additional PR 8882 fix.
6523 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6524
6525 2014-02-27 Pedro Alves <palves@redhat.com>
6526
6527 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6528 isn't set.
6529
6530 2014-02-27 Pedro Alves <palves@redhat.com>
6531
6532 PR 12702
6533 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6534 * nat/linux-waitpid.c: Include string.h.
6535 (status_to_str): Moved here and made extern.
6536 * nat/linux-waitpid.h (status_to_str): New declaration.
6537
6538 2014-02-27 Hui Zhu <hui@codesourcery.com>
6539
6540 PR 12702
6541 * infrun.c (ptid_match): Move ...
6542 * common/ptid.c (ptid_match): ... here.
6543 * inferior.h (ptid_match): Move ...
6544 * common/ptid.h (ptid_match): ... here.
6545
6546 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6547
6548 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6549 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6550 gdb_target_obs.
6551
6552 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6553
6554 * obsd-tdep.c (obsd_auxv_parse): New function.
6555 (obsd_init_abi): Set auxv_parse.
6556
6557 * gdbarch.sh (auxv_parse): New.
6558 * gdbarch.h: Regenerated.
6559 * gdbarch.c: Regenerated.
6560 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6561
6562 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6563
6564 * guile/scm-value.c (gdbscm_history_append_x): New function.
6565 (value_functions): Add it.
6566
6567 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6568
6569 * dwarf2read.c (attr_value_as_address): New function.
6570 (dwarf2_find_base_address, read_call_site_scope): Use
6571 attr_value_as_address in place of DW_ADDR.
6572 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6573 the low and high addresses. Slight rework of the handling
6574 of the high pc being a constant form, and limit it to
6575 DWARF verson 4 or higher.
6576 (dwarf2_record_block_ranges): Likewise.
6577 (read_partial_die): Likewise.
6578 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6579
6580 2014-02-26 Tom Tromey <tromey@redhat.com>
6581
6582 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6583
6584 2014-02-26 Tom Tromey <tromey@redhat.com>
6585
6586 * elfread.c (elf_read_minimal_symbols): Return early if
6587 minimal symbols have already been read. Add "ei" parameter.
6588 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6589 * minsyms.c (prim_record_minimal_symbol_full): Update.
6590 * objfiles.h (struct objstats) <n_minsyms>: Move...
6591 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6592 * symmisc.c (print_objfile_statistics): Update.
6593
6594 2014-02-26 Tom Tromey <tromey@redhat.com>
6595
6596 * elfread.c (elf_read_minimal_symbols): New function, from
6597 elf_symfile_read.
6598 (elf_symfile_read): Call it.
6599
6600 2014-02-26 Tom Tromey <tromey@redhat.com>
6601
6602 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6603 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6604 (lookup_minimal_symbol_solib_trampoline)
6605 (lookup_minimal_symbol_by_pc_section_1)
6606 (lookup_minimal_symbol_and_objfile): Update.
6607 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6608 Don't allocate a minimal symbol if minsyms have already been read.
6609 (build_minimal_symbol_hash_tables): Update.
6610 (install_minimal_symbols): Do nothing if minsyms already read.
6611 Use the per-BFD obstack.
6612 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6613 * objfiles.c (allocate_objfile): Call
6614 terminate_minimal_symbol_table later.
6615 (have_minimal_symbols): Update.
6616 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6617 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6618 Move from struct objfile.
6619 <minsyms_read>: New field.
6620 (struct objfile) <msymbols, minimal_symbol_count,
6621 msymbol_hash, msymbol_demangled_hash>: Move.
6622 (ALL_OBJFILE_MSYMBOLS): Update.
6623 * symfile.c (read_symbols): Set minsyms_read.
6624 (reread_symbols): Update.
6625 * symmisc.c (dump_objfile, dump_msymbols): Update.
6626
6627 2014-02-26 Tom Tromey <tromey@redhat.com>
6628
6629 * minsyms.c (msymbols_sort): Remove.
6630 * minsyms.h (msymbols_sort): Remove.
6631 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6632 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6633 * elfread.c (elf_symtab_read): Don't add section offsets.
6634 * xcoffread.c (record_minimal_symbol): Don't add section offset
6635 to minimal symbol address.
6636 * somread.c (text_offset, data_offset): Remove.
6637 (som_symtab_read): Don't add section offsets to minimal symbol
6638 addresses.
6639 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6640 Don't add section offsets to minimal symbols.
6641 * coffread.c (coff_symtab_read): Don't add section offsets
6642 to minimal symbol addresses.
6643 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6644 to minimal symbol addresses.
6645 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6646 section offset to minimal symbol addresses.
6647 * mdebugread.c (parse_partial_symbols): Don't add section
6648 offset to minimal symbol addresses.
6649 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6650 offset to minimal symbol addresses.
6651
6652 2014-02-26 Tom Tromey <tromey@redhat.com>
6653
6654 * ada-lang.c (ada_main_name): Update.
6655 (ada_add_standard_exceptions): Update.
6656 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6657 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6658 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6659 * auxv.c (ld_so_xfer_auxv): Update.
6660 * avr-tdep.c (avr_scan_prologue): Update.
6661 * ax-gdb.c (gen_var_ref): Update.
6662 * blockframe.c (get_pc_function_start)
6663 (find_pc_partial_function_gnu_ifunc): Update.
6664 * breakpoint.c (create_overlay_event_breakpoint)
6665 (create_longjmp_master_breakpoint)
6666 (create_std_terminate_master_breakpoint)
6667 (create_exception_master_breakpoint): Update.
6668 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6669 * c-valprint.c (c_val_print): Update.
6670 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6671 * common/agent.c (agent_look_up_symbols): Update.
6672 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6673 * dwarf2loc.c (call_site_to_target_addr): Update.
6674 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6675 * elfread.c (elf_gnu_ifunc_record_cache)
6676 (elf_gnu_ifunc_resolve_by_got): Update.
6677 * findvar.c (default_read_var_value): Update.
6678 * frame.c (inside_main_func): Update.
6679 * frv-tdep.c (frv_frame_this_id): Update.
6680 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6681 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6682 Update.
6683 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6684 (hppa_hpux_find_dummy_bpaddr): Update.
6685 * hppa-tdep.c (hppa_symbol_address): Update.
6686 * infcmd.c (until_next_command): Update.
6687 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6688 Update.
6689 * linespec.c (minsym_found, add_minsym): Update.
6690 * linux-nat.c (get_signo): Update.
6691 * linux-thread-db.c (inferior_has_bug): Update.
6692 * m32c-tdep.c (m32c_return_value)
6693 (m32c_m16c_address_to_pointer): Update.
6694 * m32r-tdep.c (m32r_frame_this_id): Update.
6695 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6696 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6697 * maint.c (maintenance_translate_address): Update.
6698 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6699 (frob_address): New function.
6700 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6701 frob_address. Rename parameter to "pc_in".
6702 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6703 addresses.
6704 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6705 Update.
6706 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6707 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6708 * objc-lang.c (find_objc_msgsend): Update.
6709 * objfiles.c (objfile_relocate1): Update.
6710 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6711 * p-valprint.c (pascal_val_print): Update.
6712 * parse.c (write_exp_msymbol): Update.
6713 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6714 (ppc_elfv2_skip_entrypoint): Update.
6715 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6716 * printcmd.c (build_address_symbolic, msym_info)
6717 (address_info): Update.
6718 * proc-service.c (ps_pglobal_lookup): Update.
6719 * psymtab.c (find_pc_sect_psymtab_closer)
6720 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6721 Change msymbol parameter to bound_minimal_symbol.
6722 * ravenscar-thread.c (get_running_thread_id): Update.
6723 * remote.c (remote_check_symbols): Update.
6724 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6725 address.
6726 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6727 * solib-dsbt.c (lm_base): Update.
6728 * solib-frv.c (lm_base, main_got): Update.
6729 * solib-irix.c (locate_base): Update.
6730 * solib-som.c (som_solib_create_inferior_hook)
6731 (link_map_start): Update.
6732 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6733 * solib-svr4.c (elf_locate_base, enable_break): Update.
6734 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6735 (flush_ea_cache): Update.
6736 * stabsread.c (define_symbol, scan_file_globals): Update.
6737 * stack.c (find_frame_funname): Update.
6738 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6739 (debug_qf_find_pc_sect_symtab): Update.
6740 * symfile.c (simple_read_overlay_table)
6741 (simple_overlay_update): Update.
6742 * symfile.h (struct quick_symbol_functions)
6743 <find_pc_sect_symtab>: Change type of msymbol to
6744 bound_minimal_symbol.
6745 * symmisc.c (dump_msymbols): Update.
6746 * symtab.c (find_pc_sect_symtab_via_partial)
6747 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6748 (search_symbols, print_msymbol_info): Update.
6749 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6750 (MSYMBOL_VALUE_ADDRESS): Redefine.
6751 (BMSYMBOL_VALUE_ADDRESS): New macro.
6752 * tracepoint.c (scope_info): Update.
6753 * tui/tui-disasm.c (tui_find_disassembly_address)
6754 (tui_get_begin_asm_address): Update.
6755 * valops.c (find_function_in_inferior): Update.
6756 * value.c (value_static_field, value_fn_field): Update.
6757
6758 2014-02-26 Tom Tromey <tromey@redhat.com>
6759
6760 * ada-lang.c (ada_update_initial_language): Update.
6761 (ada_main_name, ada_has_this_exception_support): Update.
6762 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6763 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6764 * arm-tdep.c (arm_skip_stub): Update.
6765 * auxv.c (ld_so_xfer_auxv): Update.
6766 * avr-tdep.c (avr_scan_prologue): Update.
6767 * ax-gdb.c (gen_var_ref): Update.
6768 * breakpoint.c (struct breakpoint_objfile_data)
6769 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6770 type to bound_minimal_symbol.
6771 (create_overlay_event_breakpoint)
6772 (create_longjmp_master_breakpoint)
6773 (create_std_terminate_master_breakpoint)
6774 (create_exception_master_breakpoint): Update.
6775 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6776 * c-exp.y (classify_name): Update.
6777 * coffread.c (coff_symfile_read): Update.
6778 * common/agent.c (agent_look_up_symbols): Update.
6779 * d-lang.c (d_main_name): Update.
6780 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6781 * dec-thread.c (enable_dec_thread): Update.
6782 * dwarf2loc.c (call_site_to_target_addr): Update.
6783 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6784 * eval.c (evaluate_subexp_standard): Update.
6785 * findvar.c (struct minsym_lookup_data) <result>: Change type
6786 to bound_minimal_symbol.
6787 <objfile>: Remove.
6788 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6789 * frame.c (inside_main_func): Update.
6790 * frv-tdep.c (frv_frame_this_id): Update.
6791 * gcore.c (call_target_sbrk): Update.
6792 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6793 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6794 Update.
6795 * go-lang.c (go_main_name): Update.
6796 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6797 (hppa_hpux_find_import_stub_for_addr): Update.
6798 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6799 Update. Change return type.
6800 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6801 type.
6802 * jit.c (jit_breakpoint_re_set_internal): Update.
6803 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6804 Update.
6805 * linux-nat.c (get_signo): Update.
6806 * linux-thread-db.c (inferior_has_bug): Update
6807 * m32c-tdep.c (m32c_return_value)
6808 (m32c_m16c_address_to_pointer): Update.
6809 * m32r-tdep.c (m32r_frame_this_id): Update.
6810 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6811 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6812 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6813 lookup_minimal_symbol. Change return type.
6814 (lookup_minimal_symbol): Remove.
6815 (lookup_bound_minimal_symbol): Update.
6816 (lookup_minimal_symbol_text): Change return type.
6817 (lookup_minimal_symbol_solib_trampoline): Change return type.
6818 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6819 (lookup_minimal_symbol_solib_trampoline): Change return type.
6820 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6821 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6822 (value_nsstring, find_imps): Update.
6823 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6824 * p-lang.c (pascal_main_name): Update.
6825 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6826 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6827 * proc-service.c (ps_pglobal_lookup): Update.
6828 * ravenscar-thread.c (get_running_thread_msymbol): Change
6829 return type.
6830 (has_ravenscar_runtime, get_running_thread_id): Update.
6831 * remote.c (remote_check_symbols): Update.
6832 * sol-thread.c (ps_pglobal_lookup): Update.
6833 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6834 * solib-dsbt.c (lm_base): Update.
6835 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6836 Update.
6837 * solib-irix.c (locate_base): Update.
6838 * solib-som.c (som_solib_create_inferior_hook)
6839 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6840 Update.
6841 * solib-spu.c (spu_enable_break): Update.
6842 * solib-svr4.c (elf_locate_base, enable_break): Update.
6843 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6844 (flush_ea_cache): Update.
6845 * stabsread.c (define_symbol): Update.
6846 * symfile.c (simple_read_overlay_table): Update.
6847 * symtab.c (find_pc_sect_line): Update.
6848 * tracepoint.c (scope_info): Update.
6849 * tui-disasm.c (tui_get_begin_asm_address): Update.
6850 * value.c (value_static_field): Update.
6851
6852 2014-02-26 Tom Tromey <tromey@redhat.com>
6853
6854 * minsyms.c (prim_record_minimal_symbol_full): Use
6855 SET_MSYMBOL_VALUE_ADDRESS.
6856 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6857 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6858 SET_MSYMBOL_VALUE_ADDRESS.
6859 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6860 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6861
6862 2014-02-26 Tom Tromey <tromey@redhat.com>
6863
6864 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6865 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6866 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6867 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6868 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6869 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6870 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6871 * ada-lang.c (ada_main_name): Update.
6872 (ada_lookup_simple_minsym): Update.
6873 (ada_make_symbol_completion_list): Update.
6874 (ada_add_standard_exceptions): Update.
6875 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6876 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6877 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6878 * arm-tdep.c (skip_prologue_function): Update.
6879 (arm_skip_stack_protector, arm_skip_stub): Update.
6880 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6881 (arm_wince_skip_main_prologue): Update.
6882 * auxv.c (ld_so_xfer_auxv): Update.
6883 * avr-tdep.c (avr_scan_prologue): Update.
6884 * ax-gdb.c (gen_var_ref): Update.
6885 * block.c (call_site_for_pc): Update.
6886 * blockframe.c (get_pc_function_start): Update.
6887 (find_pc_partial_function_gnu_ifunc): Update.
6888 * breakpoint.c (create_overlay_event_breakpoint): Update.
6889 (create_longjmp_master_breakpoint): Update.
6890 (create_std_terminate_master_breakpoint): Update.
6891 (create_exception_master_breakpoint): Update.
6892 (resolve_sal_pc): Update.
6893 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6894 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6895 Update.
6896 * c-valprint.c (c_val_print): Update.
6897 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6898 * coffread.c (coff_symfile_read): Update.
6899 * common/agent.c (agent_look_up_symbols): Update.
6900 * dbxread.c (find_stab_function_addr): Update.
6901 (end_psymtab): Update.
6902 * dwarf2loc.c (call_site_to_target_addr): Update.
6903 (func_verify_no_selftailcall): Update.
6904 (tailcall_dump): Update.
6905 (call_site_find_chain_1): Update.
6906 (dwarf_expr_reg_to_entry_parameter): Update.
6907 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6908 (elf_gnu_ifunc_resolve_by_got): Update.
6909 * f-valprint.c (info_common_command): Update.
6910 * findvar.c (read_var_value): Update.
6911 * frame.c (get_prev_frame_1): Update.
6912 (inside_main_func): Update.
6913 * frv-tdep.c (frv_skip_main_prologue): Update.
6914 (frv_frame_this_id): Update.
6915 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6916 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6917 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6918 (gnuv3_skip_trampoline): Update.
6919 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6920 (hppa64_hpux_in_solib_call_trampoline): Update.
6921 (hppa_hpux_skip_trampoline_code): Update.
6922 (hppa64_hpux_search_dummy_call_sequence): Update.
6923 (hppa_hpux_find_import_stub_for_addr): Update.
6924 (hppa_hpux_find_dummy_bpaddr): Update.
6925 * hppa-tdep.c (hppa_symbol_address)
6926 (hppa_lookup_stub_minimal_symbol): Update.
6927 * i386-tdep.c (i386_skip_main_prologue): Update.
6928 (i386_pe_skip_trampoline_code): Update.
6929 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6930 * infcall.c (get_function_name): Update.
6931 * infcmd.c (until_next_command): Update.
6932 * jit.c (jit_breakpoint_re_set_internal): Update.
6933 (jit_inferior_init): Update.
6934 * linespec.c (minsym_found): Update.
6935 (add_minsym): Update.
6936 * linux-fork.c (info_checkpoints_command): Update.
6937 * linux-nat.c (get_signo): Update.
6938 * linux-thread-db.c (inferior_has_bug): Update.
6939 * m32c-tdep.c (m32c_return_value): Update.
6940 (m32c_m16c_address_to_pointer): Update.
6941 (m32c_m16c_pointer_to_address): Update.
6942 * m32r-tdep.c (m32r_frame_this_id): Update.
6943 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6944 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6945 * maint.c (maintenance_translate_address): Update.
6946 * minsyms.c (add_minsym_to_hash_table): Update.
6947 (add_minsym_to_demangled_hash_table): Update.
6948 (msymbol_objfile): Update.
6949 (lookup_minimal_symbol): Update.
6950 (iterate_over_minimal_symbols): Update.
6951 (lookup_minimal_symbol_text): Update.
6952 (lookup_minimal_symbol_by_pc_name): Update.
6953 (lookup_minimal_symbol_solib_trampoline): Update.
6954 (lookup_minimal_symbol_by_pc_section_1): Update.
6955 (lookup_minimal_symbol_and_objfile): Update.
6956 (prim_record_minimal_symbol_full): Update.
6957 (compare_minimal_symbols): Update.
6958 (compact_minimal_symbols): Update.
6959 (build_minimal_symbol_hash_tables): Update.
6960 (install_minimal_symbols): Update.
6961 (terminate_minimal_symbol_table): Update.
6962 (find_solib_trampoline_target): Update.
6963 (minimal_symbol_upper_bound): Update.
6964 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6965 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6966 (mips_skip_pic_trampoline_code): Update.
6967 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6968 * objc-lang.c (selectors_info): Update.
6969 (classes_info): Update.
6970 (find_methods): Update.
6971 (find_imps): Update.
6972 (find_objc_msgsend): Update.
6973 * objfiles.c (objfile_relocate1): Update.
6974 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6975 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6976 * p-valprint.c (pascal_val_print): Update.
6977 * parse.c (write_exp_msymbol): Update.
6978 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6979 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6980 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6981 * printcmd.c (build_address_symbolic): Update.
6982 (sym_info): Update.
6983 (address_info): Update.
6984 * proc-service.c (ps_pglobal_lookup): Update.
6985 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6986 (find_pc_sect_psymtab): Update.
6987 * python/py-framefilter.c (py_print_frame): Update.
6988 * ravenscar-thread.c (get_running_thread_id): Update.
6989 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6990 Update.
6991 * remote.c (remote_check_symbols): Update.
6992 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6993 (rs6000_skip_trampoline_code): Update.
6994 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6995 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6996 * solib-dsbt.c (lm_base): Update.
6997 * solib-frv.c (lm_base): Update.
6998 (main_got): Update.
6999 * solib-irix.c (locate_base): Update.
7000 * solib-som.c (som_solib_create_inferior_hook): Update.
7001 (som_solib_desire_dynamic_linker_symbols): Update.
7002 (link_map_start): Update.
7003 * solib-spu.c (spu_enable_break): Update.
7004 (ocl_enable_break): Update.
7005 * solib-svr4.c (elf_locate_base): Update.
7006 (enable_break): Update.
7007 * spu-tdep.c (spu_get_overlay_table): Update.
7008 (spu_catch_start): Update.
7009 (flush_ea_cache): Update.
7010 * stabsread.c (define_symbol): Update.
7011 (scan_file_globals): Update.
7012 * stack.c (find_frame_funname): Update.
7013 (frame_info): Update.
7014 * symfile.c (simple_read_overlay_table): Update.
7015 (simple_overlay_update): Update.
7016 * symmisc.c (dump_msymbols): Update.
7017 * symtab.c (fixup_section): Update.
7018 (find_pc_sect_line): Update.
7019 (skip_prologue_sal): Update.
7020 (search_symbols): Update.
7021 (print_msymbol_info): Update.
7022 (rbreak_command): Update.
7023 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7024 (completion_list_objc_symbol): Update.
7025 (default_make_symbol_completion_list_break_on): Update.
7026 * tracepoint.c (scope_info): Update.
7027 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7028 (tui_get_begin_asm_address): Update.
7029 * valops.c (find_function_in_inferior): Update.
7030 * value.c (value_static_field): Update.
7031 (value_fn_field): Update.
7032
7033 2014-02-26 Tom Tromey <tromey@redhat.com>
7034
7035 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7036 bound minimal symbols. Move code that knows about minsym
7037 table layout...
7038 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7039 function.
7040 * minsyms.h (minimal_symbol_upper_bound): Declare.
7041 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7042 minimal_symbol_upper_bound.
7043
7044 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7045
7046 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7047 Use the type's name if its basic type does not have a tag.
7048
7049 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7050
7051 * dwarf2read.c (read_subrange_type): Add comment.
7052
7053 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7054
7055 * dwarf2read.c (update_enumeration_type_from_children): New
7056 function, mostly extracted from process_structure_scope.
7057 (read_enumeration_type): Call update_enumeration_type_from_children.
7058 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7059 and flag_flag_enum fields.
7060
7061 2014-02-26 Pedro Alves <palves@redhat.com>
7062
7063 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7064 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7065 to_xfer_partial method.
7066
7067 2014-02-26 Pedro Alves <palves@redhat.com>
7068
7069 * target.c (complete_target_initialization): Don't install
7070 default_xfer_partial as to_xfer_partial hook.
7071 (nomemory): Delete.
7072 (update_current_target): Don't INHERIT nor de_fault
7073 deprecated_xfer_memory. Delete de_fault macro.
7074 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7075 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7076 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7077 field.
7078
7079 2014-02-26 Pedro Alves <palves@redhat.com>
7080
7081 * go32-nat.c (my_write_child): New function.
7082 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7083 (go32_xfer_partial): New function.
7084 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7085 Instead install a to_xfer_partial hook.
7086
7087 2014-02-26 Pedro Alves <palves@redhat.com>
7088
7089 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7090 to_xfer_partial helper. Rewrite.
7091 (procfs_xfer_partial): New function.
7092 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7093 Install a to_xfer_partial hook.
7094
7095 2014-02-26 Pedro Alves <palves@redhat.com>
7096
7097 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7098 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7099 (m32r_xfer_partial): New function.
7100 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7101 Install a to_xfer_partial hook.
7102
7103 2014-02-26 Pedro Alves <palves@redhat.com>
7104
7105 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7106 helper.
7107 (mips_xfer_partial): New function.
7108 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7109 hook. Install a to_xfer_partial hook.
7110
7111 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7112
7113 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7114 * gdbtypes.c (create_array_type_with_stride): New function,
7115 renaming create_array_type, but with an added parameter
7116 called "bit_stride".
7117 (create_array_type): Re-implement using
7118 create_array_type_with_stride.
7119 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7120 and DW_AT_bit_stride attributes.
7121
7122 2014-02-26 Pedro Alves <palves@redhat.com>
7123
7124 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7125 task-specific breakpoints.
7126
7127 2014-02-25 Pedro Alves <palves@redhat.com>
7128
7129 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7130 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7131
7132 2014-02-25 Stan Shebs <stan@codesourcery.com>
7133
7134 * defs.h: Annotate comments for Doxygen.
7135
7136 2014-02-25 Tom Tromey <tromey@redhat.com>
7137
7138 * target.h (target_ignore): Don't declare.
7139 * target.c (target_ignore): Remove.
7140
7141 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7142
7143 PR gdb/16626
7144 * auto-load.c (auto_load_objfile_script_1): Change filename to
7145 debugfile.
7146
7147 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7148
7149 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7150 documentation. Adjust prototype to match the target_ops
7151 to_xfer_partial method. Adjust implementation accordingly.
7152
7153 2014-02-25 Hui Zhu <hui@codesourcery.com>
7154
7155 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7156 to_traceframe_info.
7157
7158 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7159
7160 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7161 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7162 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7163 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7164 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7165 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7166 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7167 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7168 New constants.
7169 (rl78_register_type): Use a data pointer type for SP and
7170 new pseudo registers mentioned above. Use a 16 bit integer
7171 type for all other register pairs.
7172 (rl78_register_name, rl78_g10_register_name): Update for
7173 new pseudo registers.
7174 (rl78_pseudo_register_read): Likewise.
7175 (rl78_pseudo_register_write): Likewise.
7176 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7177 to the newly added pseudo registers.
7178
7179 2014-02-24 Doug Evans <dje@google.com>
7180
7181 * value.c (record_latest_value): Fix comment.
7182 * printcmd.c (print_command_1): Remove code to handle -1 return from
7183 record_latest_value.
7184
7185 2014-02-24 Pedro Alves <palves@redhat.com>
7186
7187 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7188 deprecated_xfer_memory hook.
7189 (procfs_xfer_partial): Call procfs_xfer_memory instead
7190 of the deprecated_xfer_memory target hook.
7191 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7192 helper.
7193
7194 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7195
7196 * windows-nat.c (windows_xfer_shared_libraries): Return
7197 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7198 requested object is TARGET_OBJECT_LIBRARIES.
7199
7200 2014-02-24 Yao Qi <yao@codesourcery.com>
7201
7202 * target.h (enum target_xfer_status)
7203 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7204 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7205 explicitly. New.
7206 * corefile.c (memory_error_message): User updated.
7207 * exec.c (section_table_read_available_memory): Likewise.
7208 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7209 * target.c (target_xfer_status_to_string): Likewise.
7210 (raw_memory_xfer_partial): Likewise.
7211 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7212 * valops.c (read_value_memory): Likewise.
7213 * exec.h: Update comments.
7214
7215 2014-02-24 Yao Qi <yao@codesourcery.com>
7216
7217 * target.c (target_xfer_status_to_string): Rename argument err
7218 to status.
7219 * target.h (target_xfer_status_to_string): Update declaration.
7220 Replace target_xfer_error_to_string with
7221 target_xfer_status_to_string in comment.
7222
7223 2014-02-24 Yao Qi <yao@codesourcery.com>
7224
7225 * mips-linux-nat.c (super_close): Update its type.
7226 (mips_linux_close): Pass 'self' to super_close.
7227
7228 2014-02-24 Yao Qi <yao@codesourcery.com>
7229
7230 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7231 * corefile.c (read_memory): Adjusted.
7232 * target.c (target_write_with_progress): Adjusted.
7233
7234 2014-02-23 Yao Qi <yao@codesourcery.com>
7235
7236 Revert two patches:
7237
7238 2013-10-25 Yao Qi <yao@codesourcery.com>
7239
7240 * remote.c (remote_traceframe_info): Return early if
7241 traceframe is not selected.
7242
7243 2013-07-19 Yao Qi <yao@codesourcery.com>
7244
7245 * target.c (update_current_target): Change the default action
7246 of 'to_traceframe_info' from tcomplain to return_zero.
7247 * target.h (struct target_ops) <to_traceframe_info>: Add more
7248 comments.
7249
7250 2014-02-23 Yao Qi <yao@codesourcery.com>
7251
7252 * valops.c (read_value_memory): Rewrite it. Call
7253 target_xfer_partial in a loop.
7254 * exec.h (section_table_available_memory): Remove declaration.
7255 Move comments to ...
7256 * exec.c (section_table_available_memory): ... here. Make it
7257 static.
7258
7259 2014-02-23 Yao Qi <yao@codesourcery.com>
7260
7261 * exec.c (section_table_read_available_memory): New function.
7262 * exec.h (section_table_read_available_memory): Declare.
7263 * ctf.c (ctf_xfer_partial): Call
7264 section_table_read_available_memory.
7265 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7266
7267 2014-02-23 Yao Qi <yao@codesourcery.com>
7268
7269 * ctf.c (ctf_xfer_partial): Move code to ...
7270 * exec.c (exec_read_partial_read_only): ... it. New function.
7271 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7272 * tracefile.c: Include "exec.h".
7273 * exec.h (exec_read_partial_read_only): Declare.
7274
7275 2014-02-23 Yao Qi <yao@codesourcery.com>
7276
7277 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7278 (tfile_has_memory): Remove.
7279 (init_tfile_ops): Don't set fields to_has_all_memory and
7280 to_has_memory of tfile_ops.
7281 * tracefile.c (tracefile_has_all_memory): New function.
7282 (tracefile_has_memory): New function.
7283 (init_tracefile_ops): Initialize fields to_has_all_memory and
7284 to_has_memory of 'ops'.
7285
7286 2014-02-23 Yao Qi <yao@codesourcery.com>
7287
7288 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7289 (ctf_thread_alive, ctf_get_trace_status): Remove.
7290 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7291 init_tracefile_ops.
7292 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7293 (tfile_has_stack, tfile_has_registers): Remove.
7294 (tfile_thread_alive): Remove.
7295 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7296 init_tracefile_ops.
7297 * tracefile.c (tracefile_has_stack): New function.
7298 (tracefile_has_registers): New function.
7299 (tracefile_thread_alive): New function.
7300 (tracefile_get_trace_status): New function.
7301 (init_tracefile_ops): New function.
7302 * tracefile.h (init_tracefile_ops): Declare.
7303
7304 2014-02-23 Yao Qi <yao@codesourcery.com>
7305
7306 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7307 (O_LARGEFILE): Likewise.
7308 (tfile_ops): Likewise.
7309 (TRACE_HEADER_SIZE): Likewise.
7310 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7311 (cur_data_size): Likewise.
7312 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7313 (tfile_close, tfile_files_info): Likewise.
7314 (tfile_get_trace_status): Likewise.
7315 (tfile_get_tracepoint_status): Likewise.
7316 (tfile_get_traceframe_address): Likewise.
7317 (tfile_trace_find, match_blocktype): Likewise.
7318 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7319 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7320 (tfile_get_trace_state_variable_value): Likewise.
7321 (tfile_has_all_memory, tfile_has_memory): Likewise.
7322 (tfile_has_stack, tfile_has_registers): Likewise.
7323 (tfile_thread_alive, build_traceframe_info): Likewise.
7324 (tfile_traceframe_info, init_tfile_ops): Likewise.
7325 (_initialize_tracepoint): Don't call init_tfile_ops
7326 and add_target_with_completer.
7327 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7328 exec.h, completer.h and filenames.h.
7329 (_initialize_tracefile_tfile): New function.
7330
7331 2014-02-23 Yao Qi <yao@codesourcery.com>
7332
7333 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7334 tracefile-tfile.o.
7335 (HFILES_NO_SRCDIR): Add tracefile.h.
7336 * ctf.c: Include "tracefile.h".
7337 * tracefile.h: New file.
7338 * tracefile.c: New file
7339 * tracefile-tfile.c: New file.
7340 * tracepoint.c: Include "tracefile.h".
7341 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7342 (stop_reason_names): Add const.
7343 (trace_file_writer_xfree): Move it to tracefile.c.
7344 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7345 (trace_save_ctf): Likewise.
7346 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7347 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7348 (tfile_write_header, tfile_write_regblock_type): Likewise.
7349 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7350 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7351 (tfile_write_raw_data, tfile_end): Likewise.
7352 (tfile_trace_file_writer_new): Likewise.
7353 (free_uploaded_tp): Make it extern.
7354 (free_uploaded_tsv): Make it extern.
7355 (_initialize_tracepoint): Move code to register command 'tsave'
7356 to tracefile.c.
7357 * tracepoint.h (stop_reason_names): Declare.
7358 (struct trace_frame_write_ops): Move it to tracefile.h.
7359 (struct trace_file_write_ops): Likewise.
7360 (struct trace_file_writer): Likewise.
7361 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7362
7363 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7364
7365 PR gdb/16594
7366 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7367 process name.
7368 (get_cores_used_by_process): New parameter num_cores, use it.
7369 (linux_xfer_osdata_processes): Pass num_cores to it.
7370 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7371 process name.
7372
7373 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7374
7375 * target.c (memory_xfer_partial): Fix length arg in call to
7376 breakpoint_xfer_memory.
7377
7378 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7379
7380 PR tdep/16397
7381 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7382 number comes after the + or - signs. Adjust length of register
7383 name to be extracted.
7384
7385 2014-02-20 Tom Tromey <tromey@redhat.com>
7386
7387 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7388 (ada_varobj_ops): Mark "extern".
7389
7390 2014-02-20 Tom Tromey <tromey@redhat.com>
7391
7392 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7393
7394 2014-02-20 Doug Evans <xdje42@gmail.com>
7395
7396 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7397 All callers updated.
7398 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7399 All callers updated.
7400 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7401 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7402
7403 2014-02-20 lin zuojian <manjian2006@gmail.com>
7404 Joel Brobecker <brobecker@adacore.com>
7405 Doug Evans <xdje42@gmail.com>
7406
7407 PR symtab/16581
7408 * dwarf2read.c (struct die_info): New member in_process.
7409 (reset_die_in_process): New function.
7410 (process_die): Set it at the start, reset when returning.
7411 (inherit_abstract_dies): Only call process_die if origin_child_die
7412 not already being processed.
7413
7414 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7415
7416 * windows-nat.c (handle_unload_dll): Add function documentation.
7417 (do_initial_windows_stuff): Add comment explaining why we wait
7418 until after inferior initialization has finished before
7419 processing all DLLs.
7420
7421 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7422
7423 * windows-nat.c (get_module_name): Delete.
7424 (windows_get_exec_module_filename): New function, mostly
7425 inspired from get_module_name.
7426 (windows_pid_to_exec_file): Replace call to get_module_name
7427 by call to windows_get_exec_module_filename.
7428
7429 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7430
7431 * windows-nat.c (handle_load_dll): Rewrite this function's
7432 introductory comment. Remove code using get_module_name
7433 to get the DLL's name.
7434
7435 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7436
7437 * windows-nat.c (get_windows_debug_event): Ignore
7438 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7439 if windows_initialization_done == 0.
7440 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7441 Adjust implementation to always load all DLLs.
7442 (do_initial_windows_stuff): Replace call to
7443 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7444
7445 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7446
7447 * windows-nat.c (_initialize_windows_nat): Deprecate the
7448 "dll-symbols" command. Turn the "add-shared-symbol-files"
7449 and "assf" aliases into commands, and deprecate them as well.
7450 * NEWS: Add entry explaining that "dll-symbols" and its two
7451 aliases are now deprecated.
7452
7453 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7454
7455 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7456 new-line in debug string. Remove trailing spaces.
7457
7458 2014-02-19 Stan Shebs <stan@codesourcery.com>
7459
7460 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7461
7462 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7463
7464 * NEWS: Add entry for the new feature
7465 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7466 and class values.
7467
7468 2014-02-19 Stan Shebs <stan@codesourcery.com>
7469
7470 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7471
7472 2014-02-19 Pedro Alves <palves@redhat.com>
7473
7474 * common/ptid.h (struct ptid): Mention that process_stratum
7475 targets should prefer ptid.lwp.
7476
7477 2014-02-19 Pedro Alves <palves@redhat.com>
7478
7479 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7480 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7481 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7482 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7483 store remote thread ids rather than ptid.tid.
7484 (_initialize_remote): Adjust.
7485
7486 2014-02-19 Tom Tromey <tromey@redhat.com>
7487
7488 * target.c (target_get_unwinder): Rewrite.
7489 (target_get_tailcall_unwinder): Rewrite.
7490 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7491 (record_btrace_to_get_tailcall_unwinder): New function.
7492 (init_record_btrace_ops): Update.
7493 * target.h (struct target_ops) <to_get_unwinder,
7494 to_get_tailcall_unwinder>: Now function pointers. Use
7495 TARGET_DEFAULT_RETURN.
7496
7497 2014-02-19 Tom Tromey <tromey@redhat.com>
7498
7499 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7500 argument.
7501 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7502
7503 2014-02-19 Tom Tromey <tromey@redhat.com>
7504
7505 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7506 directly.
7507 * target-delegates.c: Rebuild.
7508 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7509 TARGET_DEFAULT_FUNC.
7510 * target.c (default_target_decr_pc_after_break): Rename from
7511 forward_target_decr_pc_after_break. Simplify.
7512 (target_decr_pc_after_break): Rely on delegation.
7513
7514 2014-02-19 Tom Tromey <tromey@redhat.com>
7515
7516 * target.c (update_current_target): Do not INHERIT to_doc or
7517 to_magic. Do not de_fault to_open or to_close.
7518
7519 2014-02-19 Tom Tromey <tromey@redhat.com>
7520
7521 * gcore.h (objfile_find_memory_regions): Declare.
7522 * gcore.c (objfile_find_memory_regions): No longer static. Add
7523 "self" argument.
7524 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7525 * exec.c: Include gcore.h.
7526 (exec_set_find_memory_regions): Remove.
7527 (exec_find_memory_regions): Remove.
7528 (exec_do_find_memory_regions): Remove.
7529 (init_exec_ops): Update.
7530 * defs.h (exec_set_find_memory_regions): Remove.
7531
7532 2014-02-19 Tom Tromey <tromey@redhat.com>
7533
7534 * target-delegates.c: Rebuild.
7535 * target.h (struct target_ops) <to_extra_thread_info,
7536 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7537 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7538 not 0, in TARGET_DEFAULT_RETURN.
7539
7540 2014-02-19 Tom Tromey <tromey@redhat.com>
7541
7542 * target.c (complete_target_initialization): Remove casts. Use
7543 return_zero_has_execution.
7544 (return_zero): Add "ignore" argument.
7545 (return_zero_has_execution): New function.
7546 (init_dummy_target): Remove casts. Use
7547 return_zero_has_execution.
7548
7549 2014-02-19 Tom Tromey <tromey@redhat.com>
7550
7551 * target.c (update_current_target): Update comments. Do not
7552 INHERIT to_stratum.
7553
7554 2014-02-19 Tom Tromey <tromey@redhat.com>
7555
7556 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7557 needed.
7558 * corelow.c (core_read_description): Delegate when needed.
7559 * remote.c (remote_read_description): Delegate when needed.
7560 * target-delegates.c: Rebuild.
7561 * target.c (target_read_description): Rewrite.
7562 * target.h (struct target_ops) <to_read_description>: Update
7563 comment. Use TARGET_DEFAULT_RETURN.
7564
7565 2014-02-19 Tom Tromey <tromey@redhat.com>
7566
7567 * target-delegates.c: Rebuild.
7568 * target.c (update_current_target): Don't inherit or default
7569 to_can_run.
7570 (find_default_run_target): Check against delegate_can_run.
7571 * target.h (struct target_ops) <to_can_run>: Use
7572 TARGET_DEFAULT_RETURN.
7573
7574 2014-02-19 Tom Tromey <tromey@redhat.com>
7575
7576 * target-delegates.c: Rebuild.
7577 * target.c (target_disconnect): Unconditionally delegate.
7578 * target.h (struct target_ops) <to_disconnect>: Use
7579 TARGET_DEFAULT_NORETURN.
7580
7581 2014-02-19 Tom Tromey <tromey@redhat.com>
7582
7583 * record.c (record_stop): Unconditionally delegate.
7584 * target-delegates.c: Rebuild.
7585 * target.c (target_stop_recording): Unconditionally delegate.
7586 * target.h (struct target_ops) <to_stop_recording>: Use
7587 TARGET_DEFAULT_IGNORE.
7588
7589 2014-02-19 Tom Tromey <tromey@redhat.com>
7590
7591 * target-delegates.c: Rebuild.
7592 * target.c (target_enable_btrace): Unconditionally delegate.
7593 * target.h (struct target_ops) <to_enable_btrace>: Use
7594 TARGET_DEFAULT_NORETURN.
7595
7596 2014-02-19 Tom Tromey <tromey@redhat.com>
7597
7598 * target-delegates.c: Rebuild.
7599 * target.c (target_read_btrace): Unconditionally delegate.
7600 * target.h (struct target_ops) <to_read_btrace>: Use
7601 TARGET_DEFAULT_NORETURN.
7602
7603 2014-02-19 Tom Tromey <tromey@redhat.com>
7604
7605 * target-delegates.c: Rebuild.
7606 * target.c (target_teardown_btrace): Unconditionally delegate.
7607 * target.h (struct target_ops) <to_teardown_btrace>: Use
7608 TARGET_DEFAULT_NORETURN.
7609
7610 2014-02-19 Tom Tromey <tromey@redhat.com>
7611
7612 * target-delegates.c: Rebuild.
7613 * target.c (target_disable_btrace): Unconditionally delegate.
7614 * target.h (struct target_ops) <to_disable_btrace>: Use
7615 TARGET_DEFAULT_NORETURN.
7616
7617 2014-02-19 Tom Tromey <tromey@redhat.com>
7618
7619 * target-delegates.c: Rebuild.
7620 * target.c (default_search_memory): New function.
7621 (simple_search_memory): Update comment.
7622 (target_search_memory): Unconditionally delegate.
7623 * target.h (struct target_ops) <to_search_memory>: Use
7624 TARGET_DEFAULT_FUNC.
7625
7626 2014-02-19 Tom Tromey <tromey@redhat.com>
7627
7628 * auxv.c (default_auxv_parse): No longer static.
7629 (target_auxv_parse): Unconditionally delegate.
7630 * auxv.h (default_auxv_parse): Declare.
7631 * target-delegates.c: Rebuild.
7632 * target.c: Include auxv.h.
7633 * target.h (struct target_ops) <to_auxv_parse>: Use
7634 TARGET_DEFAULT_FUNC.
7635
7636 2014-02-19 Tom Tromey <tromey@redhat.com>
7637
7638 * target-delegates.c: Rebuild.
7639 * target.c (target_memory_map): Unconditionally delegate.
7640 * target.h (struct target_ops) <to_memory_map>: Use
7641 TARGET_DEFAULT_RETURN.
7642
7643 2014-02-19 Tom Tromey <tromey@redhat.com>
7644
7645 * target-delegates.c: Rebuild.
7646 * target.c (target_thread_alive): Unconditionally delegate.
7647 * target.h (struct target_ops) <to_thread_alive>: Use
7648 TARGET_DEFAULT_RETURN.
7649
7650 2014-02-19 Tom Tromey <tromey@redhat.com>
7651
7652 * target-delegates.c: Rebuild.
7653 * target.c (target_save_record): Unconditionally delegate.
7654 * target.h (struct target_ops) <to_save_record>: Use
7655 TARGET_DEFAULT_NORETURN.
7656
7657 2014-02-19 Tom Tromey <tromey@redhat.com>
7658
7659 * target-delegates.c: Rebuild.
7660 * target.c (target_delete_record): Unconditionally delegate.
7661 * target.h (struct target_ops) <to_delete_record>: Use
7662 TARGET_DEFAULT_NORETURN.
7663
7664 2014-02-19 Tom Tromey <tromey@redhat.com>
7665
7666 * target-delegates.c: Rebuild.
7667 * target.c (target_record_is_replaying): Unconditionally
7668 delegate.
7669 * target.h (struct target_ops) <to_record_is_replaying>: Use
7670 TARGET_DEFAULT_RETURN.
7671
7672 2014-02-19 Tom Tromey <tromey@redhat.com>
7673
7674 * target-delegates.c: Rebuild.
7675 * target.c (target_goto_record_begin): Unconditionally delegate.
7676 * target.h (struct target_ops) <to_goto_record_begin>: Use
7677 TARGET_DEFAULT_NORETURN.
7678
7679 2014-02-19 Tom Tromey <tromey@redhat.com>
7680
7681 * target-delegates.c: Rebuild.
7682 * target.c (target_goto_record_end): Unconditionally delegate.
7683 * target.h (struct target_ops) <to_goto_record_end>: Use
7684 TARGET_DEFAULT_NORETURN.
7685
7686 2014-02-19 Tom Tromey <tromey@redhat.com>
7687
7688 * target-delegates.c: Rebuild.
7689 * target.c (target_goto_record): Unconditionally delegate.
7690 * target.h (struct target_ops) <to_goto_record>: Use
7691 TARGET_DEFAULT_NORETURN.
7692
7693 2014-02-19 Tom Tromey <tromey@redhat.com>
7694
7695 * target-delegates.c: Rebuild.
7696 * target.c (target_insn_history): Unconditionally delegate.
7697 * target.h (struct target_ops) <to_insn_history>: Use
7698 TARGET_DEFAULT_NORETURN.
7699
7700 2014-02-19 Tom Tromey <tromey@redhat.com>
7701
7702 * target-delegates.c: Rebuild.
7703 * target.c (target_insn_history_from): Unconditionally delegate.
7704 * target.h (struct target_ops) <to_insn_history_from>: Use
7705 TARGET_DEFAULT_NORETURN.
7706
7707 2014-02-19 Tom Tromey <tromey@redhat.com>
7708
7709 * target-delegates.c: Rebuild.
7710 * target.c (target_insn_history_range): Unconditionally delegate.
7711 * target.h (struct target_ops) <to_insn_history_range>: Use
7712 TARGET_DEFAULT_NORETURN.
7713
7714 2014-02-19 Tom Tromey <tromey@redhat.com>
7715
7716 * target-delegates.c: Rebuild.
7717 * target.c (target_call_history): Unconditionally delegate.
7718 * target.h (struct target_ops) <to_call_history>: Use
7719 TARGET_DEFAULT_NORETURN.
7720
7721 2014-02-19 Tom Tromey <tromey@redhat.com>
7722
7723 * target-delegates.c: Rebuild.
7724 * target.c (target_call_history_from): Unconditionally delegate.
7725 * target.h (struct target_ops) <to_call_history_from>: Use
7726 TARGET_DEFAULT_NORETURN.
7727
7728 2014-02-19 Tom Tromey <tromey@redhat.com>
7729
7730 * target-delegates.c: Rebuild.
7731 * target.c (target_call_history_range): Unconditionally delegate.
7732 * target.h (struct target_ops) <to_call_history_range>: Use
7733 TARGET_DEFAULT_NORETURN.
7734
7735 2014-02-19 Tom Tromey <tromey@redhat.com>
7736
7737 * target-delegates.c: Rebuild.
7738 * target.c (target_verify_memory): Unconditionally delegate.
7739 * target.h (struct target_ops) <to_verify_memory>: Use
7740 TARGET_DEFAULT_NORETURN.
7741
7742 2014-02-19 Tom Tromey <tromey@redhat.com>
7743
7744 * target-delegates.c: Rebuild.
7745 * target.c (target_core_of_thread): Unconditionally delegate.
7746 * target.h (struct target_ops) <to_core_of_thread>: Use
7747 TARGET_DEFAULT_RETURN.
7748
7749 2014-02-19 Tom Tromey <tromey@redhat.com>
7750
7751 * target-delegates.c: Rebuild.
7752 * target.c (target_flash_done): Unconditionally delegate.
7753 * target.h (struct target_ops) <to_flash_done>: Use
7754 TARGET_DEFAULT_NORETURN.
7755
7756 2014-02-19 Tom Tromey <tromey@redhat.com>
7757
7758 * target-delegates.c: Rebuild.
7759 * target.c (target_flash_erase): Unconditionally delegate.
7760 * target.h (struct target_ops) <to_flash_erase>: Use
7761 TARGET_DEFAULT_NORETURN.
7762
7763 2014-02-19 Tom Tromey <tromey@redhat.com>
7764
7765 * target-delegates.c: Rebuild.
7766 * target.c (target_get_section_table): Unconditionally delegate.
7767 * target.h (struct target_ops) <to_get_section_table>: Use
7768 TARGET_DEFAULT_RETURN.
7769
7770 2014-02-19 Tom Tromey <tromey@redhat.com>
7771
7772 * target-delegates.c: Rebuild.
7773 * target.c (target_pid_to_str): Unconditionally delegate.
7774 (init_dummy_target): Don't initialize to_pid_to_str.
7775 (default_pid_to_str): Rename from dummy_pid_to_str.
7776 * target.h (struct target_ops) <to_pid_to_str>: Use
7777 TARGET_DEFAULT_FUNC.
7778
7779 2014-02-19 Tom Tromey <tromey@redhat.com>
7780
7781 * target-delegates.c: Rebuild.
7782 * target.c (target_find_new_threads): Unconditionally delegate.
7783 * target.h (struct target_ops) <to_find_new_threads>: Use
7784 TARGET_DEFAULT_RETURN.
7785
7786 2014-02-19 Tom Tromey <tromey@redhat.com>
7787
7788 * target-delegates.c: Rebuild.
7789 * target.c (target_program_signals): Unconditionally delegate.
7790 * target.h (struct target_ops) <to_program_signals>: Use
7791 TARGET_DEFAULT_IGNORE.
7792
7793 2014-02-19 Tom Tromey <tromey@redhat.com>
7794
7795 * target-delegates.c: Rebuild.
7796 * target.c (target_pass_signals): Unconditionally delegate.
7797 * target.h (struct target_ops) <to_pass_signals>: Use
7798 TARGET_DEFAULT_IGNORE.
7799
7800 2014-02-19 Tom Tromey <tromey@redhat.com>
7801
7802 * target-delegates.c: Rebuild.
7803 * target.c (default_mourn_inferior): New function.
7804 (target_mourn_inferior): Unconditionally delegate.
7805 * target.h (struct target_ops) <to_mourn_inferior>: Use
7806 TARGET_DEFAULT_FUNC.
7807
7808 2014-02-19 Tom Tromey <tromey@redhat.com>
7809
7810 * target-delegates.c: Rebuild.
7811 * target.c (default_follow_fork): New function.
7812 (target_follow_fork): Unconditionally delegate.
7813 * target.h (struct target_ops) <to_follow_fork>: Use
7814 TARGET_DEFAULT_FUNC.
7815
7816 2014-02-19 Tom Tromey <tromey@redhat.com>
7817
7818 * target-delegates.c: Rebuild.
7819 * target.c (target_kill): Unconditionally delegate.
7820 * target.h (struct target_ops) <to_kill>: Use
7821 TARGET_DEFAULT_NORETURN.
7822
7823 2014-02-19 Tom Tromey <tromey@redhat.com>
7824
7825 * target-delegates.c: Rebuild.
7826 * target.c (target_masked_watch_num_registers): Unconditionally
7827 delegate.
7828 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7829 Use TARGET_DEFAULT_RETURN.
7830
7831 2014-02-19 Tom Tromey <tromey@redhat.com>
7832
7833 * target-delegates.c: Rebuild.
7834 * target.c (target_remove_mask_watchpoint): Unconditionally
7835 delegate.
7836 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7837 TARGET_DEFAULT_RETURN.
7838
7839 2014-02-19 Tom Tromey <tromey@redhat.com>
7840
7841 * target-delegates.c: Rebuild.
7842 * target.c (target_insert_mask_watchpoint): Unconditionally
7843 delegate.
7844 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7845 TARGET_DEFAULT_RETURN.
7846
7847 2014-02-19 Tom Tromey <tromey@redhat.com>
7848
7849 * target-delegates.c: Rebuild.
7850 * target.c (target_ranged_break_num_registers): Unconditionally
7851 delegate.
7852 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7853 Use TARGET_DEFAULT_RETURN.
7854
7855 2014-02-19 Tom Tromey <tromey@redhat.com>
7856
7857 * target-delegates.c: Rebuild.
7858 * target.c (target_fetch_registers): Unconditionally delegate.
7859 * target.h (struct target_ops) <to_fetch_registers>: Use
7860 TARGET_DEFAULT_NORETURN.
7861
7862 2014-02-19 Tom Tromey <tromey@redhat.com>
7863
7864 * target-delegates.c: Rebuild.
7865 * target.c (update_current_target): Don't inherit or default
7866 to_stop.
7867 * target.h (struct target_ops) <to_stop>: Use
7868 TARGET_DEFAULT_IGNORE.
7869
7870 2014-02-19 Tom Tromey <tromey@redhat.com>
7871
7872 * target-delegates.c: Rebuild.
7873 * target.c (update_current_target): Don't inherit or default
7874 to_can_run_breakpoint_commands.
7875 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7876 Use TARGET_DEFAULT_RETURN.
7877
7878 2014-02-19 Tom Tromey <tromey@redhat.com>
7879
7880 * target-delegates.c: Rebuild.
7881 * target.c (update_current_target): Don't inherit or default
7882 to_supports_evaluation_of_breakpoint_conditions.
7883 * target.h (struct target_ops)
7884 <to_supports_evaluation_of_breakpoint_conditions>: Use
7885 TARGET_DEFAULT_RETURN.
7886
7887 2014-02-19 Tom Tromey <tromey@redhat.com>
7888
7889 * target-delegates.c: Rebuild.
7890 * target.c (update_current_target): Don't inherit or default
7891 to_augmented_libraries_svr4_read.
7892 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7893 Use TARGET_DEFAULT_RETURN.
7894
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7896
7897 * target-delegates.c: Rebuild.
7898 * target.c (update_current_target): Don't inherit or default
7899 to_can_use_agent.
7900 * target.h (struct target_ops) <to_can_use_agent>: Use
7901 TARGET_DEFAULT_RETURN.
7902
7903 2014-02-19 Tom Tromey <tromey@redhat.com>
7904
7905 * target-delegates.c: Rebuild.
7906 * target.c (update_current_target): Don't inherit or default
7907 to_use_agent.
7908 * target.h (struct target_ops) <to_use_agent>: Use
7909 TARGET_DEFAULT_NORETURN.
7910
7911 2014-02-19 Tom Tromey <tromey@redhat.com>
7912
7913 * target-delegates.c: Rebuild.
7914 * target.c (update_current_target): Don't inherit or default
7915 to_traceframe_info.
7916 (return_null): Remove.
7917 * target.h (struct target_ops) <to_traceframe_info>: Use
7918 TARGET_DEFAULT_RETURN.
7919
7920 2014-02-19 Tom Tromey <tromey@redhat.com>
7921
7922 * target-delegates.c: Rebuild.
7923 * target.c (update_current_target): Don't inherit or default
7924 to_static_tracepoint_markers_by_strid.
7925 * target.h (struct target_ops)
7926 <to_static_tracepoint_markers_by_strid>: Use
7927 TARGET_DEFAULT_NORETURN.
7928
7929 2014-02-19 Tom Tromey <tromey@redhat.com>
7930
7931 * target-delegates.c: Rebuild.
7932 * target.c (update_current_target): Don't inherit or default
7933 to_static_tracepoint_marker_at.
7934 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7935 Use TARGET_DEFAULT_RETURN.
7936
7937 2014-02-19 Tom Tromey <tromey@redhat.com>
7938
7939 * target-delegates.c: Rebuild.
7940 * target.c (update_current_target): Don't inherit or default
7941 to_set_permissions.
7942 * target.h (struct target_ops) <to_set_permissions>: Use
7943 TARGET_DEFAULT_IGNORE.
7944
7945 2014-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_get_tib_address.
7950 * target.h (struct target_ops) <to_get_tib_address>: Use
7951 TARGET_DEFAULT_NORETURN.
7952
7953 2014-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_set_trace_notes.
7958 * target.h (struct target_ops) <to_set_trace_notes>: Use
7959 TARGET_DEFAULT_RETURN.
7960
7961 2014-02-19 Tom Tromey <tromey@redhat.com>
7962
7963 * target-delegates.c: Rebuild.
7964 * target.c (update_current_target): Don't initialize
7965 to_set_trace_buffer_size.
7966 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7967 TARGET_DEFAULT_IGNORE.
7968
7969 2014-02-19 Tom Tromey <tromey@redhat.com>
7970
7971 * target-delegates.c: Rebuild.
7972 * target.c (update_current_target): Don't inherit or default
7973 to_set_circular_trace_buffer.
7974 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7975 TARGET_DEFAULT_IGNORE.
7976
7977 2014-02-19 Tom Tromey <tromey@redhat.com>
7978
7979 * target-delegates.c: Rebuild.
7980 * target.c (update_current_target): Don't inherit or default
7981 to_set_disconnected_tracing.
7982 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7983 TARGET_DEFAULT_IGNORE.
7984
7985 2014-02-19 Tom Tromey <tromey@redhat.com>
7986
7987 * target-delegates.c: Rebuild.
7988 * target.c (update_current_target): Don't inherit or default
7989 to_get_min_fast_tracepoint_insn_len.
7990 (return_minus_one): Remove.
7991 * target.h (struct target_ops)
7992 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7993
7994 2014-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_get_raw_trace_data.
7999 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8000 TARGET_DEFAULT_NORETURN.
8001
8002 2014-02-19 Tom Tromey <tromey@redhat.com>
8003
8004 * target-delegates.c: Rebuild.
8005 * target.c (update_current_target): Don't inherit or default
8006 to_upload_trace_state_variables.
8007 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8008 Use TARGET_DEFAULT_RETURN.
8009
8010 2014-02-19 Tom Tromey <tromey@redhat.com>
8011
8012 * target-delegates.c: Rebuild.
8013 * target.c (update_current_target): Don't inherit or default
8014 to_upload_tracepoints.
8015 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8016 TARGET_DEFAULT_RETURN.
8017
8018 2014-02-19 Tom Tromey <tromey@redhat.com>
8019
8020 * target-delegates.c: Rebuild.
8021 * target.c (update_current_target): Don't inherit or default
8022 to_save_trace_data.
8023 * target.h (struct target_ops) <to_save_trace_data>: Use
8024 TARGET_DEFAULT_NORETURN.
8025
8026 2014-02-19 Tom Tromey <tromey@redhat.com>
8027
8028 * target-delegates.c: Rebuild.
8029 * target.c (update_current_target): Don't inherit or default
8030 to_get_trace_state_variable_value.
8031 * target.h (struct target_ops)
8032 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8033
8034 2014-02-19 Tom Tromey <tromey@redhat.com>
8035
8036 * target-delegates.c: Rebuild.
8037 * target.c (update_current_target): Don't inherit or default
8038 to_trace_find.
8039 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8040
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8042
8043 * target-delegates.c: Rebuild.
8044 * target.c (update_current_target): Don't inherit or default
8045 to_trace_stop.
8046 * target.h (struct target_ops) <to_trace_stop>: Use
8047 TARGET_DEFAULT_NORETURN.
8048
8049 2014-02-19 Tom Tromey <tromey@redhat.com>
8050
8051 * target-delegates.c: Rebuild.
8052 * target.c (update_current_target): Don't inherit or default
8053 to_get_tracepoint_status.
8054 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8055 TARGET_DEFAULT_NORETURN.
8056
8057 2014-02-19 Tom Tromey <tromey@redhat.com>
8058
8059 * target-delegates.c: Rebuild.
8060 * target.c (update_current_target): Don't inherit or default
8061 to_get_trace_status.
8062 * target.h (struct target_ops) <to_get_trace_status>: Use
8063 TARGET_DEFAULT_RETURN.
8064
8065 2014-02-19 Tom Tromey <tromey@redhat.com>
8066
8067 * target-delegates.c: Rebuild.
8068 * target.c (update_current_target): Don't inherit or default
8069 to_trace_start.
8070 * target.h (struct target_ops) <to_trace_start>: Use
8071 TARGET_DEFAULT_NORETURN.
8072
8073 2014-02-19 Tom Tromey <tromey@redhat.com>
8074
8075 * target-delegates.c: Rebuild.
8076 * target.c (update_current_target): Don't inherit or default
8077 to_trace_set_readonly_regions.
8078 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8079 Use TARGET_DEFAULT_NORETURN.
8080
8081 2014-02-19 Tom Tromey <tromey@redhat.com>
8082
8083 * target-delegates.c: Rebuild.
8084 * target.c (update_current_target): Don't inherit or default
8085 to_disable_tracepoint.
8086 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8087 TARGET_DEFAULT_NORETURN.
8088
8089 2014-02-19 Tom Tromey <tromey@redhat.com>
8090
8091 * target-delegates.c: Rebuild.
8092 * target.c (update_current_target): Don't inherit or default
8093 to_enable_tracepoint.
8094 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8095 TARGET_DEFAULT_NORETURN.
8096
8097 2014-02-19 Tom Tromey <tromey@redhat.com>
8098
8099 * target-delegates.c: Rebuild.
8100 * target.c (update_current_target): Don't inherit or default
8101 to_download_trace_state_variable.
8102 * target.h (struct target_ops) <to_download_trace_state_variable>:
8103 Use TARGET_DEFAULT_NORETURN.
8104
8105 2014-02-19 Tom Tromey <tromey@redhat.com>
8106
8107 * target-delegates.c: Rebuild.
8108 * target.c (update_current_target): Don't inherit or default
8109 to_can_download_tracepoint.
8110 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8111 TARGET_DEFAULT_RETURN.
8112
8113 2014-02-19 Tom Tromey <tromey@redhat.com>
8114
8115 * target-delegates.c: Rebuild.
8116 * target.c (update_current_target): Don't inherit or default
8117 to_download_tracepoint.
8118 * target.h (struct target_ops) <to_download_tracepoint>: Use
8119 TARGET_DEFAULT_NORETURN.
8120
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8122
8123 * target-delegates.c: Rebuild.
8124 * target.c (update_current_target): Don't inherit or default
8125 to_trace_init.
8126 * target.h (struct target_ops) <to_trace_init>: Use
8127 TARGET_DEFAULT_RETURN.
8128
8129 2014-02-19 Tom Tromey <tromey@redhat.com>
8130
8131 * target-delegates.c: Rebuild.
8132 * target.c (update_current_target): Don't inherit or default
8133 to_supports_string_tracing.
8134 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8135 TARGET_DEFAULT_RETURN.
8136
8137 2014-02-19 Tom Tromey <tromey@redhat.com>
8138
8139 * target-delegates.c: Rebuild.
8140 * target.c (update_current_target): Don't inherit or default
8141 to_supports_enable_disable_tracepoint.
8142 * target.h (struct target_ops)
8143 <to_supports_enable_disable_tracepoint>: Use
8144 TARGET_DEFAULT_RETURN.
8145
8146 2014-02-19 Tom Tromey <tromey@redhat.com>
8147
8148 * target-delegates.c: Rebuild.
8149 * target.c (update_current_target): Don't inherit or default
8150 to_supports_multi_process.
8151 * target.h (struct target_ops) <to_supports_multi_process>: Use
8152 TARGET_DEFAULT_RETURN.
8153
8154 2014-02-19 Tom Tromey <tromey@redhat.com>
8155
8156 * target-delegates.c: Rebuild.
8157 * target.c (update_current_target): Don't inherit or default
8158 to_get_ada_task_ptid.
8159 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8160 TARGET_DEFAULT_FUNC.
8161
8162 2014-02-19 Tom Tromey <tromey@redhat.com>
8163
8164 * target-delegates.c: Rebuild.
8165 * target.c (update_current_target): Don't inherit or default
8166 to_thread_architecture.
8167 * target.h (struct target_ops) <to_thread_architecture>: Use
8168 TARGET_DEFAULT_FUNC.
8169
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8171
8172 * target-delegates.c: Rebuild.
8173 * target.c (update_current_target): Don't inherit or default
8174 to_execution_direction.
8175 * target.h (struct target_ops) <to_execution_direction>: Use
8176 TARGET_DEFAULT_FUNC.
8177
8178 2014-02-19 Tom Tromey <tromey@redhat.com>
8179
8180 * target-delegates.c: Rebuild.
8181 * target.c (update_current_target): Don't inherit or default
8182 to_can_execute_reverse.
8183 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8184 TARGET_DEFAULT_RETURN.
8185 (target_can_execute_reverse): Unconditionally delegate.
8186
8187 2014-02-19 Tom Tromey <tromey@redhat.com>
8188
8189 * target-delegates.c: Rebuild.
8190 * target.c (update_current_target): Don't inherit or default
8191 to_goto_bookmark.
8192 (dummy_goto_bookmark): Remove.
8193 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8194 * target.h (struct target_ops) <to_goto_bookmark>: Use
8195 TARGET_DEFAULT_NORETURN.
8196
8197 2014-02-19 Tom Tromey <tromey@redhat.com>
8198
8199 * target-delegates.c: Rebuild.
8200 * target.c (update_current_target): Don't inherit or default
8201 to_get_bookmark.
8202 (dummy_get_bookmark): Remove.
8203 (init_dummy_target): Don't inherit or default to_get_bookmark.
8204 * target.h (struct target_ops) <to_get_bookmark>: Use
8205 TARGET_DEFAULT_NORETURN
8206
8207 2014-02-19 Tom Tromey <tromey@redhat.com>
8208
8209 * target-delegates.c: Rebuild.
8210 * target.c (update_current_target): Don't inherit or default
8211 to_make_corefile_notes.
8212 (init_dummy_target): Don't initialize to_make_corefile_notes.
8213 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8214 TARGET_DEFAULT_FUNC.
8215
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8217
8218 * target-delegates.c: Rebuild.
8219 * target.c (update_current_target): Don't inherit or default
8220 to_find_memory_regions.
8221 (init_dummy_target): Don't initialize to_find_memory_regions.
8222 * target.h (struct target_ops) <to_find_memory_regions>: Use
8223 TARGET_DEFAULT_FUNC.
8224
8225 2014-02-19 Tom Tromey <tromey@redhat.com>
8226
8227 * target-delegates.c: Rebuild.
8228 * target.c (update_current_target): Don't inherit or default
8229 to_log_command.
8230 * target.h (struct target_ops) <to_log_command>: Use
8231 TARGET_DEFAULT_IGNORE.
8232 (target_log_command): Unconditionally delegate.
8233
8234 2014-02-19 Tom Tromey <tromey@redhat.com>
8235
8236 * target-delegates.c: Rebuild.
8237 * target.c (update_current_target): Don't inherit or default
8238 to_pid_to_exec_file.
8239 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8240 TARGET_DEFAULT_RETURN.
8241
8242 2014-02-19 Tom Tromey <tromey@redhat.com>
8243
8244 * target-delegates.c: Rebuild.
8245 * target.c (update_current_target): Don't inherit or default
8246 to_thread_name.
8247 (target_thread_name): Unconditionally delegate.
8248 * target.h (struct target_ops) <to_thread_name>: Use
8249 TARGET_DEFAULT_RETURN.
8250
8251 2014-02-19 Tom Tromey <tromey@redhat.com>
8252
8253 * target-delegates.c: Rebuild.
8254 * target.c (update_current_target): Don't inherit or default
8255 to_extra_thread_info.
8256 * target.h (struct target_ops) <to_extra_thread_info>: Use
8257 TARGET_DEFAULT_RETURN.
8258
8259 2014-02-19 Tom Tromey <tromey@redhat.com>
8260
8261 * target-delegates.c: Rebuild.
8262 * target.c (update_current_target): Don't inherit or default
8263 to_has_exited.
8264 * target.h (struct target_ops) <to_has_exited>: Use
8265 TARGET_DEFAULT_RETURN..
8266
8267 2014-02-19 Tom Tromey <tromey@redhat.com>
8268
8269 * target-delegates.c: Rebuild.
8270 * target.c (update_current_target): Don't inherit or default
8271 to_set_syscall_catchpoint.
8272 (return_one): Remove.
8273 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8274 TARGET_DEFAULT_RETURN.
8275
8276 2014-02-19 Tom Tromey <tromey@redhat.com>
8277
8278 * target-delegates.c: Rebuild.
8279 * target.c (update_current_target): Don't inherit or default
8280 to_insert_exec_catchpoint.
8281 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8282 TARGET_DEFAULT_RETURN.
8283
8284 2014-01-08 Tom Tromey <tromey@redhat.com>
8285
8286 * target-delegates.c: Rebuild.
8287 * target.c (update_current_target): Don't inherit or default
8288 to_insert_exec_catchpoint.
8289 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8290 TARGET_DEFAULT_RETURN.
8291
8292 2014-02-19 Tom Tromey <tromey@redhat.com>
8293
8294 * target-delegates.c: Rebuild.
8295 * target.c (update_current_target): Don't inherit or default
8296 to_remove_vfork_catchpoint.
8297 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8298 TARGET_DEFAULT_RETURN.
8299
8300 2014-02-19 Tom Tromey <tromey@redhat.com>
8301
8302 * target-delegates.c: Rebuild.
8303 * target.c (update_current_target): Don't inherit or default
8304 to_insert_vfork_catchpoint.
8305 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8306 TARGET_DEFAULT_RETURN.
8307
8308 2014-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_remove_fork_catchpoint.
8313 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8314 TARGET_DEFAULT_RETURN.
8315
8316 2014-02-19 Tom Tromey <tromey@redhat.com>
8317
8318 * target-delegates.c: Rebuild.
8319 * target.c (update_current_target): Don't inherit or default
8320 to_insert_fork_catchpoint.
8321 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8322 TARGET_DEFAULT_RETURN.
8323
8324 2014-02-19 Tom Tromey <tromey@redhat.com>
8325
8326 * target-delegates.c: Rebuild.
8327 * target.c (update_current_target): Don't inherit or default
8328 to_post_startup_inferior.
8329 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8330 TARGET_DEFAULT_IGNORE.
8331
8332 2014-02-19 Tom Tromey <tromey@redhat.com>
8333
8334 * target-delegates.c: Rebuild.
8335 * target.c (update_current_target): Don't inherit or default
8336 to_load.
8337 * target.h (struct target_ops) <to_load>: Use
8338 TARGET_DEFAULT_NORETURN.
8339
8340 2014-02-19 Tom Tromey <tromey@redhat.com>
8341
8342 * target-delegates.c: Rebuild.
8343 * target.c (update_current_target): Don't inherit or default
8344 to_terminal_info.
8345 * target.h (struct target_ops) <to_terminal_info>: Use
8346 TARGET_DEFAULT_FUNC.
8347
8348 2014-02-19 Tom Tromey <tromey@redhat.com>
8349
8350 * target-delegates.c: Rebuild.
8351 * target.c (update_current_target): Don't inherit or default
8352 to_terminal_save_ours.
8353 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8354 TARGET_DEFAULT_IGNORE.
8355
8356 2014-02-19 Tom Tromey <tromey@redhat.com>
8357
8358 * target-delegates.c: Rebuild.
8359 * target.c (update_current_target): Don't inherit or default
8360 to_terminal_ours.
8361 * target.h (struct target_ops) <to_terminal_ours>: Use
8362 TARGET_DEFAULT_IGNORE.
8363
8364 2014-02-19 Tom Tromey <tromey@redhat.com>
8365
8366 * target-delegates.c: Rebuild.
8367 * target.c (update_current_target): Don't inherit or default
8368 to_terminal_ours_for_output.
8369 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8370 TARGET_DEFAULT_IGNORE.
8371
8372 2014-02-19 Tom Tromey <tromey@redhat.com>
8373
8374 * target-delegates.c: Rebuild.
8375 * target.c (update_current_target): Don't inherit or default
8376 to_terminal_inferior.
8377 * target.h (struct target_ops) <to_terminal_inferior>: Use
8378 TARGET_DEFAULT_IGNORE.
8379
8380 2014-02-19 Tom Tromey <tromey@redhat.com>
8381
8382 * target-delegates.c: Rebuild.
8383 * target.c (update_current_target): Don't inherit or default
8384 to_terminal_init.
8385 * target.h (struct target_ops) <to_terminal_init>: Use
8386 TARGET_DEFAULT_IGNORE.
8387
8388 2014-02-19 Tom Tromey <tromey@redhat.com>
8389
8390 * target-delegates.c: Rebuild.
8391 * target.c (update_current_target): Don't inherit or default
8392 to_can_accel_watchpoint_condition.
8393 * target.h (struct target_ops)
8394 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8395
8396 2014-02-19 Tom Tromey <tromey@redhat.com>
8397
8398 * target-delegates.c: Rebuild.
8399 * target.c (update_current_target): Don't inherit or default
8400 to_region_ok_for_hw_watchpoint.
8401 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8402 Use TARGET_DEFAULT_FUNC.
8403
8404 2014-02-19 Tom Tromey <tromey@redhat.com>
8405
8406 * target-delegates.c: Rebuild.
8407 * target.c (update_current_target): Don't inherit or default
8408 to_watchpoint_addr_within_range.
8409 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8410 Use TARGET_DEFAULT_FUNC.
8411
8412 2014-02-19 Tom Tromey <tromey@redhat.com>
8413
8414 * target-delegates.c: Rebuild.
8415 * target.c (update_current_target): Don't inherit or default
8416 to_remove_watchpoint.
8417 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8418 TARGET_DEFAULT_NORETURN.
8419
8420 2014-02-19 Tom Tromey <tromey@redhat.com>
8421
8422 * target-delegates.c: Rebuild.
8423 * target.c (update_current_target): Don't inherit or default
8424 to_insert_watchpoint.
8425 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8426 TARGET_DEFAULT_RETURN.
8427
8428 2014-02-19 Tom Tromey <tromey@redhat.com>
8429
8430 * target-delegates.c: Rebuild.
8431 * target.c (update_current_target): Don't inherit or default
8432 to_remove_hw_breakpoint.
8433 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8434 TARGET_DEFAULT_RETURN.
8435
8436 2014-02-19 Tom Tromey <tromey@redhat.com>
8437
8438 * target-delegates.c: Rebuild.
8439 * target.c (update_current_target): Don't inherit or default
8440 to_insert_hw_breakpoint.
8441 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8442 TARGET_DEFAULT_RETURN.
8443
8444 2014-02-19 Tom Tromey <tromey@redhat.com>
8445
8446 * target-delegates.c: Rebuild.
8447 * target.c (update_current_target): Don't inherit or default
8448 to_can_use_hw_breakpoint.
8449 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8450 TARGET_DEFAULT_RETURN.
8451
8452 2014-02-19 Tom Tromey <tromey@redhat.com>
8453
8454 * target-delegates.c: Rebuild.
8455 * target.c (update_current_target): Don't inherit or default
8456 to_files_info.
8457 * target.h (struct target_ops) <to_files_info>: Use
8458 TARGET_DEFAULT_IGNORE.
8459
8460 2014-02-19 Tom Tromey <tromey@redhat.com>
8461
8462 * target-delegates.c: Rebuild.
8463 * target.c (update_current_target): Don't inherit or default
8464 to_store.
8465 * target.h (struct target_ops) <to_store>: Use
8466 TARGET_DEFAULT_NORETURN.
8467
8468 2014-02-19 Tom Tromey <tromey@redhat.com>
8469
8470 * target-delegates.c: Rebuild.
8471 * target.c (update_current_target): Don't inherit or default
8472 to_post_attach.
8473 * target.h (struct target_ops) <to_post_attach>: Use
8474 TARGET_DEFAULT_IGNORE.
8475
8476 2014-02-19 Tom Tromey <tromey@redhat.com>
8477
8478 * target-delegates.c: Rebuild.
8479 * target.c (update_current_target): Don't inherit or default
8480 to_rcmd.
8481 (default_rcmd): New function.
8482 (do_monitor_command): Unconditionally delegate.
8483 * target.h (struct target_ops) <to_rmcd>: Use
8484 TARGET_DEFAULT_FUNC.
8485
8486 2014-02-19 Tom Tromey <tromey@redhat.com>
8487
8488 * target-delegates.c: Rebuild.
8489 * target.c (init_dummy_target): Don't initialize to_attach.
8490 (target_attach): Unconditionally delegate.
8491 * target.h (struct target_ops) <to_attach>: Use
8492 TARGET_DEFAULT_FUNC.
8493
8494 2014-02-19 Tom Tromey <tromey@redhat.com>
8495
8496 * target-delegates.c: Rebuild.
8497 * target.c (target_detach): Unconditionally delegate.
8498 (init_dummy_target): Don't initialize to_detach.
8499 * target.h (struct target_ops) <to_detach>: Use
8500 TARGET_DEFAULT_IGNORE.
8501
8502 2014-02-19 Tom Tromey <tromey@redhat.com>
8503
8504 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8505 Add argument.
8506 (target_augmented_libraries_svr4_read): Add argument.
8507 * target.c (update_current_target): Update.
8508 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8509 argument.
8510
8511 2014-02-19 Tom Tromey <tromey@redhat.com>
8512
8513 * target.h (struct target_ops) <to_call_history_range>: Add
8514 argument.
8515 * target.c (target_call_history_range): Add argument.
8516 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8517 argument.
8518 (record_btrace_call_history_from): Update.
8519
8520 2014-02-19 Tom Tromey <tromey@redhat.com>
8521
8522 * target.h (struct target_ops) <to_call_history_from>: Add
8523 argument.
8524 * target.c (target_call_history_from): Add argument.
8525 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8526 argument.
8527
8528 2014-02-19 Tom Tromey <tromey@redhat.com>
8529
8530 * target.h (struct target_ops) <to_call_history>: Add argument.
8531 * target.c (target_call_history): Add argument.
8532 * record-btrace.c (record_btrace_call_history): Add 'self'
8533 argument.
8534
8535 2014-02-19 Tom Tromey <tromey@redhat.com>
8536
8537 * target.h (struct target_ops) <to_insn_history_range>: Add
8538 argument.
8539 * target.c (target_insn_history_range): Add argument.
8540 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8541 argument.
8542 (record_btrace_insn_history_from): Update.
8543
8544 2014-02-19 Tom Tromey <tromey@redhat.com>
8545
8546 * target.h (struct target_ops) <to_insn_history_from>: Add
8547 argument.
8548 * target.c (target_insn_history_from): Add argument.
8549 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8550 argument.
8551
8552 2014-02-19 Tom Tromey <tromey@redhat.com>
8553
8554 * target.h (struct target_ops) <to_insn_history>: Add argument.
8555 * target.c (target_insn_history): Add argument.
8556 * record-btrace.c (record_btrace_insn_history): Add 'self'
8557 argument.
8558
8559 2014-02-19 Tom Tromey <tromey@redhat.com>
8560
8561 * target.h (struct target_ops) <to_goto_record>: Add argument.
8562 * target.c (target_goto_record): Add argument.
8563 * record-full.c (record_full_goto): Add 'self' argument.
8564 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8565
8566 2014-02-19 Tom Tromey <tromey@redhat.com>
8567
8568 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8569 * target.c (target_goto_record_end): Add argument.
8570 * record-full.c (record_full_goto_end): Add 'self' argument.
8571 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8572
8573 2014-02-19 Tom Tromey <tromey@redhat.com>
8574
8575 * target.h (struct target_ops) <to_goto_record_begin>: Add
8576 argument.
8577 * target.c (target_goto_record_begin): Add argument.
8578 * record-full.c (record_full_goto_begin): Add 'self' argument.
8579 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8580 argument.
8581
8582 2014-02-19 Tom Tromey <tromey@redhat.com>
8583
8584 * target.h (struct target_ops) <to_record_is_replaying>: Add
8585 argument.
8586 * target.c (target_record_is_replaying): Add argument.
8587 * record-full.c (record_full_is_replaying): Add 'self' argument.
8588 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8589 argument.
8590 (record_btrace_xfer_partial, record_btrace_store_registers)
8591 (record_btrace_prepare_to_store, record_btrace_resume)
8592 (record_btrace_wait, record_btrace_decr_pc_after_break)
8593 (record_btrace_find_new_threads, record_btrace_thread_alive):
8594 Update.
8595
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target.h (struct target_ops) <to_delete_record>: Add argument.
8599 * target.c (target_delete_record): Add argument.
8600 * record-full.c (record_full_delete): Add 'self' argument.
8601
8602 2014-02-19 Tom Tromey <tromey@redhat.com>
8603
8604 * target.h (struct target_ops) <to_save_record>: Add argument.
8605 * target.c (target_save_record): Add argument.
8606 * record-full.c (record_full_save): Add 'self' argument.
8607 (record_full_save): Add 'self' argument.
8608
8609 2014-02-19 Tom Tromey <tromey@redhat.com>
8610
8611 * target.h (struct target_ops) <to_info_record>: Add argument.
8612 * target.c (target_info_record): Add argument.
8613 * record.c (info_record_command): Add argument.
8614 * record-full.c (record_full_info): Add 'self' argument.
8615 * record-btrace.c (record_btrace_info): Add 'self' argument.
8616
8617 2014-02-19 Tom Tromey <tromey@redhat.com>
8618
8619 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8620 * target.c (target_stop_recording): Add argument.
8621 * record.c (record_stop): Add argument.
8622 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8623 argument.
8624
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8626
8627 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8628 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8629 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8630 argument.
8631 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8632 (_initialize_amd64_linux_nat): Use it.
8633 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8634 (_initialize_i386_linux_nat): Use it.
8635
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8637
8638 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8639 * target.c (target_teardown_btrace): Add argument.
8640 * remote.c (remote_teardown_btrace): Add 'self' argument.
8641 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8642 argument.
8643 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8644 argument.
8645
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8647
8648 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8649 * target.c (target_disable_btrace): Add argument.
8650 * remote.c (remote_disable_btrace): Add 'self' argument.
8651 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8652 argument.
8653 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8654 argument.
8655
8656 2014-02-19 Tom Tromey <tromey@redhat.com>
8657
8658 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8659 * target.c (target_enable_btrace): Add argument.
8660 * remote.c (remote_enable_btrace): Add 'self' argument.
8661 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8662 argument.
8663 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8664 argument.
8665
8666 2014-02-19 Tom Tromey <tromey@redhat.com>
8667
8668 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8669 (target_can_use_agent): Add argument.
8670 * target.c (update_current_target): Update.
8671 * remote.c (remote_can_use_agent): Add 'self' argument.
8672 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8673
8674 2014-02-19 Tom Tromey <tromey@redhat.com>
8675
8676 * target.h (struct target_ops) <to_use_agent>: Add argument.
8677 (target_use_agent): Add argument.
8678 * target.c (update_current_target): Update.
8679 * remote.c (remote_use_agent): Add 'self' argument.
8680 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8681
8682 2014-02-19 Tom Tromey <tromey@redhat.com>
8683
8684 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8685 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8686 (target_traceframe_info): Add argument.
8687 * target.c (update_current_target): Update.
8688 * remote.c (remote_traceframe_info): Add 'self' argument.
8689 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8690
8691 2014-02-19 Tom Tromey <tromey@redhat.com>
8692
8693 * target.h (target_static_tracepoint_markers_by_strid): Add
8694 argument.
8695 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8696 'self' argument.
8697 * target.c (update_current_target): Update.
8698 * remote.c (struct target_ops)
8699 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8700 * linux-nat.c (struct target_ops)
8701 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8702
8703 2014-02-19 Tom Tromey <tromey@redhat.com>
8704
8705 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8706 Add argument.
8707 (target_static_tracepoint_marker_at): Add argument.
8708 * target.c (update_current_target): Update.
8709 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8710 argument.
8711
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8713
8714 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8715 (target_set_permissions): Add argument.
8716 * target.c (update_current_target): Update.
8717 * remote.c (remote_set_permissions): Add 'self' argument.
8718 (remote_start_remote): Update.
8719
8720 2014-02-19 Tom Tromey <tromey@redhat.com>
8721
8722 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8723 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8724 (target_get_tib_address): Add argument.
8725 * target.c (update_current_target): Update.
8726 * remote.c (remote_get_tib_address): Add 'self' argument.
8727
8728 2014-02-19 Tom Tromey <tromey@redhat.com>
8729
8730 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8731 (target_set_trace_notes): Add argument.
8732 * target.c (update_current_target): Update.
8733 * remote.c (remote_set_trace_notes): Add 'self' argument.
8734
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8736
8737 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8738 argument.
8739 (target_set_trace_buffer_size): Add argument.
8740 * target.c (update_current_target): Update.
8741 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8742
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8744
8745 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8746 argument.
8747 (target_set_circular_trace_buffer): Add argument.
8748 * target.c (update_current_target): Update.
8749 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8750 argument.
8751
8752 2014-02-19 Tom Tromey <tromey@redhat.com>
8753
8754 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8755 argument.
8756 (target_set_disconnected_tracing): Add argument.
8757 * target.c (update_current_target): Update.
8758 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8759
8760 2014-02-19 Tom Tromey <tromey@redhat.com>
8761
8762 * target.h (struct target_ops)
8763 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8764 (target_get_min_fast_tracepoint_insn_len): Add argument.
8765 * target.c (update_current_target): Update.
8766 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8767 argument.
8768
8769 2014-02-19 Tom Tromey <tromey@redhat.com>
8770
8771 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8772 argument.
8773 (target_get_raw_trace_data): Add argument.
8774 * target.c (update_current_target): Update.
8775 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8776
8777 2014-02-19 Tom Tromey <tromey@redhat.com>
8778
8779 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8780 Add argument.
8781 (target_upload_trace_state_variables): Add argument.
8782 * target.c (update_current_target): Update.
8783 * remote.c (remote_upload_trace_state_variables): Add 'self'
8784 argument.
8785 (remote_start_remote): Update.
8786
8787 2014-02-19 Tom Tromey <tromey@redhat.com>
8788
8789 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8790 argument.
8791 (target_upload_tracepoints): Add argument.
8792 * target.c (update_current_target): Update.
8793 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8794 (remote_start_remote): Update.
8795
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8797
8798 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8799 (target_save_trace_data): Add argument.
8800 * target.c (update_current_target): Update.
8801 * remote.c (remote_save_trace_data): Add 'self' argument.
8802
8803 2014-02-19 Tom Tromey <tromey@redhat.com>
8804
8805 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8806 argument.
8807 * target.h (struct target_ops)
8808 <to_get_trace_state_variable_value>: Add argument.
8809 (target_get_trace_state_variable_value): Add argument.
8810 * target.c (update_current_target): Update.
8811 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8812 argument.
8813 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8814
8815 2014-02-19 Tom Tromey <tromey@redhat.com>
8816
8817 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8818 * target.h (struct target_ops) <to_trace_find>: Add argument.
8819 (target_trace_find): Add argument.
8820 * target.c (update_current_target): Update.
8821 * remote.c (remote_trace_find): Add 'self' argument.
8822 * ctf.c (ctf_trace_find): Add 'self' argument.
8823
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8825
8826 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8827 (target_trace_stop): Add argument.
8828 * target.c (update_current_target): Update.
8829 * remote.c (remote_trace_stop): Add 'self' argument.
8830
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8834 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8835 argument.
8836 (target_get_tracepoint_status): Add argument.
8837 * target.c (update_current_target): Update.
8838 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8839
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8841
8842 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8843 * target.h (struct target_ops) <to_get_trace_status>: Add
8844 argument.
8845 (target_get_trace_status): Add argument.
8846 * target.c (update_current_target): Update.
8847 * remote.c (remote_get_trace_status): Add 'self' argument.
8848 (remote_start_remote, remote_can_download_tracepoint): Update.
8849 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8850
8851 2014-02-19 Tom Tromey <tromey@redhat.com>
8852
8853 * target.h (struct target_ops) <to_trace_start>: Add argument.
8854 (target_trace_start): Add argument.
8855 * target.c (update_current_target): Update.
8856 * remote.c (remote_trace_start): Add 'self' argument.
8857
8858 2014-02-19 Tom Tromey <tromey@redhat.com>
8859
8860 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8861 Add argument.
8862 (target_trace_set_readonly_regions): Add argument.
8863 * target.c (update_current_target): Update.
8864 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8865 argument.
8866
8867 2014-02-19 Tom Tromey <tromey@redhat.com>
8868
8869 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8870 argument.
8871 (target_disable_tracepoint): Add argument.
8872 * target.c (update_current_target): Update.
8873 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8874
8875 2014-02-19 Tom Tromey <tromey@redhat.com>
8876
8877 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8878 argument.
8879 (target_enable_tracepoint): Add argument.
8880 * target.c (update_current_target): Update.
8881 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8882
8883 2014-02-19 Tom Tromey <tromey@redhat.com>
8884
8885 * target.h (struct target_ops) <to_download_trace_state_variable>:
8886 Add argument.
8887 (target_download_trace_state_variable): Add argument.
8888 * target.c (update_current_target): Update.
8889 * remote.c (remote_download_trace_state_variable): Add 'self'
8890 argument.
8891
8892 2014-02-19 Tom Tromey <tromey@redhat.com>
8893
8894 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8895 argument.
8896 (target_can_download_tracepoint): Add argument.
8897 * target.c (update_current_target): Update.
8898 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8899
8900 2014-02-19 Tom Tromey <tromey@redhat.com>
8901
8902 * target.h (struct target_ops) <to_download_tracepoint>: Add
8903 argument.
8904 (target_download_tracepoint): Add argument.
8905 * target.c (update_current_target): Update.
8906 * remote.c (remote_download_tracepoint): Add 'self' argument.
8907
8908 2014-02-19 Tom Tromey <tromey@redhat.com>
8909
8910 * target.h (struct target_ops) <to_trace_init>: Add argument.
8911 (target_trace_init): Add argument.
8912 * target.c (update_current_target): Update.
8913 * remote.c (remote_trace_init): Add 'self' argument.
8914
8915 2014-02-19 Tom Tromey <tromey@redhat.com>
8916
8917 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8918 * target.c (target_fileio_readlink): Add argument.
8919 * remote.c (remote_hostio_readlink): Add 'self' argument.
8920 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8921
8922 2014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8925 * target.c (target_fileio_unlink): Add argument.
8926 * remote.c (remote_hostio_unlink): Add 'self' argument.
8927 (remote_file_delete): Update.
8928 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8929
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8931
8932 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8933 * target.c (target_fileio_close): Add argument.
8934 * remote.c (remote_hostio_close): Add 'self' argument.
8935 (remote_hostio_close_cleanup): Update.
8936 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8937 Update.
8938 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8939
8940 2014-02-19 Tom Tromey <tromey@redhat.com>
8941
8942 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8943 * target.c (target_fileio_pread): Add argument.
8944 * remote.c (remote_hostio_pread): Add 'self' argument.
8945 (remote_bfd_iovec_pread, remote_file_get): Update.
8946 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8947
8948 2014-02-19 Tom Tromey <tromey@redhat.com>
8949
8950 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8951 * target.c (target_fileio_pwrite): Add argument.
8952 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8953 (remote_file_put): Update.
8954 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8955
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8957
8958 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8959 * target.c (target_fileio_open): Add argument.
8960 * remote.c (remote_hostio_open): Add 'self' argument.
8961 (remote_bfd_iovec_open): Add 'self' argument.
8962 (remote_file_put): Add 'self' argument.
8963 (remote_file_get): Add 'self' argument.
8964 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8965
8966 2014-02-19 Tom Tromey <tromey@redhat.com>
8967
8968 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8969 Add argument.
8970 (target_can_run_breakpoint_commands): Add argument.
8971 * target.c (update_current_target): Update.
8972 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8973 argument.
8974 (remote_insert_breakpoint): Add 'self' argument.
8975 (remote_insert_hw_breakpoint): Add 'self' argument.
8976 (remote_can_run_breakpoint_commands): Add 'self' argument.
8977
8978 2014-02-19 Tom Tromey <tromey@redhat.com>
8979
8980 * target.h (struct target_ops)
8981 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8982 (target_supports_evaluation_of_breakpoint_conditions): Add
8983 argument.
8984 * target.c (update_current_target): Update.
8985 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8986 argument.
8987 (remote_insert_breakpoint): Add 'self' argument.
8988 (remote_insert_hw_breakpoint): Add 'self' argument.
8989 (remote_supports_cond_breakpoints): Add 'self' argument.
8990
8991 2014-02-19 Tom Tromey <tromey@redhat.com>
8992
8993 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8994 argument.
8995 (target_supports_string_tracing): Add argument.
8996 * target.c (update_current_target): Update.
8997 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8998
8999 2014-02-19 Tom Tromey <tromey@redhat.com>
9000
9001 * target.h (struct target_ops)
9002 <to_supports_disable_randomization>: Add argument.
9003 * target.c (find_default_supports_disable_randomization): Add
9004 argument.
9005 (target_supports_disable_randomization): Add argument.
9006 (find_default_supports_disable_randomization): Add 'self'
9007 argument.
9008 * remote.c (extended_remote_supports_disable_randomization): Add
9009 'self' argument.
9010 (remote_supports_disable_randomization): Add 'self' argument.
9011 (extended_remote_create_inferior): Update.
9012 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9013 'self' argument.
9014
9015 2014-02-19 Tom Tromey <tromey@redhat.com>
9016
9017 * target.h (struct target_ops)
9018 <to_supports_enable_disable_tracepoint>: Add argument.
9019 (target_supports_enable_disable_tracepoint): Add argument.
9020 * target.c (update_current_target): Update.
9021 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9022 argument.
9023
9024 2014-02-19 Tom Tromey <tromey@redhat.com>
9025
9026 * target.h (struct target_ops) <to_supports_multi_process>: Add
9027 argument.
9028 (target_supports_multi_process): Add argument.
9029 * target.c (update_current_target): Update.
9030 * remote.c (remote_supports_multi_process): Add 'self' argument.
9031 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9032 argument.
9033 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9034 argument.
9035
9036 2014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target.h (struct target_ops) <to_execution_direction>: Add
9039 argument.
9040 (target_execution_direction): Add argument.
9041 * target.c (default_execution_direction): Add 'self' argument.
9042 * record-full.c (record_full_execution_direction): Add 'self'
9043 argument.
9044
9045 2014-02-19 Tom Tromey <tromey@redhat.com>
9046
9047 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9048 argument.
9049 (target_can_execute_reverse): Add argument.
9050 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9051 * record-full.c (record_full_can_execute_reverse): Add 'self'
9052 argument.
9053 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9054 argument.
9055
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9059 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9060 argument.
9061 (target_get_ada_task_ptid): Add argument.
9062 * target.c (update_current_target): Update.
9063 (default_get_ada_task_ptid): Add 'self' argument.
9064 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9065 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9066 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9067 argument.
9068 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9069 argument.
9070 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9071 argument.
9072 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9073 argument.
9074 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9075 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9076 argument.
9077
9078 2014-02-19 Tom Tromey <tromey@redhat.com>
9079
9080 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9081 (target_goto_bookmark): Add argument.
9082 * target.c (dummy_goto_bookmark): Add 'self' argument.
9083 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9084
9085 2014-02-19 Tom Tromey <tromey@redhat.com>
9086
9087 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9088 (target_get_bookmark): Add argument.
9089 * target.c (dummy_get_bookmark): Add 'self' argument.
9090 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9091
9092 2014-02-19 Tom Tromey <tromey@redhat.com>
9093
9094 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9095 argument.
9096 (target_make_corefile_notes): Add argument.
9097 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9098 * procfs.c (procfs_make_note_section): Add 'self' argument.
9099 (procfs_make_note_section): Add 'self' argument.
9100 (procfs_make_note_section): Add 'self' argument.
9101 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9102 argument.
9103 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9104 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9105 * exec.c (exec_make_note_section): Add 'self' argument.
9106 (exec_make_note_section): Add 'self' argument.
9107
9108 2014-02-19 Tom Tromey <tromey@redhat.com>
9109
9110 * target.h (struct target_ops) <to_find_memory_regions>: Add
9111 argument.
9112 (target_find_memory_regions): Add argument.
9113 * target.c (dummy_find_memory_regions): Add 'self' argument.
9114 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9115 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9116 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9117 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9118 * exec. (exec_do_find_memory_regions): New global.
9119 (exec_set_find_memory_regions): Rewrite.
9120 (exec_find_memory_regions): New function.
9121 (init_exec_ops): Use exec_find_memory_regions.
9122
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9124
9125 * target.h (struct target_ops) <to_supports_non_stop>: Add
9126 argument.
9127 * target.c (find_default_supports_non_stop): Add argument.
9128 (target_supports_non_stop): Add argument.
9129 (find_default_supports_non_stop): Add 'self' argument.
9130 * remote.c (remote_supports_non_stop): Add 'self' argument.
9131 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9132
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target.h (struct target_ops) <to_log_command>: Add argument.
9136 (target_log_command): Add argument.
9137 * serial.h (serial_log_command): Add 'self' argument.
9138 * serial.c (serial_log_command): Add 'self' argument.
9139
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9141
9142 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9143 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9144 argument.
9145 (target_pid_to_exec_file): Add argument.
9146 * target.c (debug_to_pid_to_exec_file): Add argument.
9147 (update_current_target): Update.
9148 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9149 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9150 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9151 (linux_handle_extended_wait): Update.
9152 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9153 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9154 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9155 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9156
9157 2014-02-19 Tom Tromey <tromey@redhat.com>
9158
9159 * target.h (struct target_ops) <to_rcmd>: Add argument.
9160 (target_rcmd): Add argument.
9161 * target.c (debug_to_rcmd): Add argument.
9162 (update_current_target, do_monitor_command): Update.
9163 * remote.c (remote_rcmd): Add 'self' argument.
9164 * monitor.c (monitor_rcmd): Add 'self' argument.
9165
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9167
9168 * windows-nat.c (windows_stop): Add 'self' argument.
9169 * target.h (struct target_ops) <to_stop>: Add argument.
9170 * target.c (target_stop): Add argument.
9171 (debug_to_stop): Add argument.
9172 (update_current_target): Update.
9173 * remote.c (remote_stop): Add 'self' argument.
9174 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9175 (gdbsim_cntrl_c): Update.
9176 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9177 * procfs.c (procfs_stop): Add 'self' argument.
9178 * nto-procfs.c (procfs_stop): Add 'self' argument.
9179 * monitor.c (monitor_stop): Add 'self' argument.
9180 (monitor_open): Update.
9181 * linux-nat.c (linux_nat_stop): Add argument.
9182 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9183 * gnu-nat.c (gnu_stop): Add 'self' argument.
9184 * darwin-nat.c (darwin_stop): Add 'self' argument.
9185
9186 2014-02-19 Tom Tromey <tromey@redhat.com>
9187
9188 * target.h (struct target_ops) <to_thread_name>: Add argument.
9189 * target.c (target_thread_name): Add argument.
9190 (update_current_target): Update.
9191 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9192
9193 2014-02-19 Tom Tromey <tromey@redhat.com>
9194
9195 * target.h (struct target_ops) <to_extra_thread_info>: Add
9196 argument.
9197 (target_extra_thread_info): Add argument.
9198 * target.c (update_current_target): Update.
9199 * remote.c (remote_threads_extra_info): Add 'self' argument.
9200 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9201 argument.
9202 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9203 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9204 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9205 argument.
9206 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9207 argument.
9208 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9209 argument.
9210 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9211 argument.
9212
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * target.h (struct target_ops) <to_program_signals>: Add argument.
9216 * target.c (target_program_signals): Add argument.
9217 * remote.c (remote_program_signals): Add 'self' argument.
9218
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9220
9221 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9222 * target.c (target_pass_signals): Add argument.
9223 * remote.c (remote_pass_signals): Add 'self' argument.
9224 (remote_start_remote): Update.
9225 * procfs.c (procfs_pass_signals): Add 'self' argument.
9226 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9227 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9228 (linux_nat_create_inferior, linux_nat_attach): Update.
9229
9230 2014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * windows-nat.c (windows_can_run): Add 'self' argument.
9233 * target.h (struct target_ops) <to_can_run>: Add argument.
9234 (target_can_run): Add argument.
9235 * target.c (debug_to_can_run): Add argument.
9236 (update_current_target): Update.
9237 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9238 * inf-child.c (inf_child_can_run): Add 'self' argument.
9239 * go32-nat.c (go32_can_run): Add 'self' argument.
9240
9241 2014-02-19 Tom Tromey <tromey@redhat.com>
9242
9243 * target.h (struct target_ops) <to_has_exited>: Add argument.
9244 (target_has_exited): Add argument.
9245 * target.c (debug_to_has_exited): Add argument.
9246 (update_current_target): Update.
9247
9248 2014-02-19 Tom Tromey <tromey@redhat.com>
9249
9250 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9251 argument.
9252 (target_set_syscall_catchpoint): Add argument.
9253 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9254 argument.
9255 * target.c (update_current_target): Update.
9256
9257 2014-02-19 Tom Tromey <tromey@redhat.com>
9258
9259 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9260 argument.
9261 (target_remove_exec_catchpoint): Add argument.
9262 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9263 (update_current_target): Update.
9264 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9265 argument.
9266
9267 2014-02-19 Tom Tromey <tromey@redhat.com>
9268
9269 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9270 argument.
9271 (target_insert_exec_catchpoint): Add argument.
9272 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9273 (update_current_target): Update.
9274 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9275 argument.
9276
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9280 argument.
9281 (target_remove_vfork_catchpoint): Add argument.
9282 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9283 (update_current_target): Update.
9284 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9285 argument.
9286
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9288
9289 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9290 argument.
9291 (target_insert_vfork_catchpoint): Add argument.
9292 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9293 (update_current_target): Update.
9294 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9295 argument.
9296
9297 2014-02-19 Tom Tromey <tromey@redhat.com>
9298
9299 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9300 argument.
9301 (target_remove_fork_catchpoint): Add argument.
9302 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9303 (update_current_target): Update.
9304 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9305 argument.
9306
9307 2014-02-19 Tom Tromey <tromey@redhat.com>
9308
9309 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9310 argument.
9311 (target_insert_fork_catchpoint): Add argument.
9312 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9313 (update_current_target): Update.
9314 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9315 argument.
9316
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9320 argument.
9321 (target_post_startup_inferior): Add argument.
9322 * target.c (debug_to_post_startup_inferior): Add argument.
9323 (update_current_target): Update.
9324 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9325 argument.
9326 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9327 argument.
9328 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9329 argument.
9330 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9331 argument.
9332 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9333 'self' argument.
9334 (super_post_startup_inferior): Likewise.
9335 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9336 'self' argument.
9337 (super_post_startup_inferior): Likewise.
9338 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9339 Add 'self' argument.
9340 (super_post_startup_inferior): Likewise.
9341
9342 2014-02-19 Tom Tromey <tromey@redhat.com>
9343
9344 * target.h (struct target_ops) <to_load>: Add argument.
9345 * target.c (target_load): Add argument.
9346 (debug_to_load): Add argument.
9347 (update_current_target): Update.
9348 * remote.c (remote_load): Add 'self' argument.
9349 * remote-sim.c (gdbsim_load): Add 'self' argument.
9350 * remote-mips.c (mips_load): Add 'self' argument.
9351 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9352 * monitor.c (monitor_load): Add 'self' argument.
9353 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9354
9355 2014-02-19 Tom Tromey <tromey@redhat.com>
9356
9357 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9358 (target_terminal_info): Add argument.
9359 * target.c (debug_to_terminal_info): Add argument.
9360 (default_terminal_info): Likewise.
9361 * inflow.c (child_terminal_info): Add 'self' argument.
9362 * inferior.h (child_terminal_info): Add 'self' argument.
9363 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9364
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9366
9367 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9368 argument.
9369 (target_terminal_save_ours): Add argument.
9370 * target.c (debug_to_terminal_save_ours): Add argument.
9371 (update_current_target): Update.
9372 * inflow.c (terminal_save_ours): Add 'self' argument.
9373 * inferior.h (terminal_save_ours): Add 'self' argument.
9374
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9378 (target_terminal_ours): Add argument.
9379 * target.c (debug_to_terminal_ours): Add argument.
9380 (update_current_target): Update.
9381 * remote.c (remote_terminal_ours): Add 'self' argument.
9382 (remote_close): Update.
9383 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9384 * inflow.c (terminal_ours): Add 'self' argument.
9385 * inferior.h (terminal_ours): Add 'self' argument.
9386 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9387
9388 2014-02-19 Pedro Alves <palves@redhat.com>
9389 Tom Tromey <tromey@redhat.com>
9390
9391 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9392 argument.
9393 (target_terminal_ours_for_output): Add argument.
9394 * target.c (debug_to_terminal_ours_for_output): Add argument.
9395 (update_current_target): Update.
9396 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9397 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9398 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9399
9400 2014-02-19 Tom Tromey <tromey@redhat.com>
9401
9402 * target.h (struct target_ops) <to_terminal_inferior>: Add
9403 argument.
9404 * target.c (target_terminal_inferior): Add argument.
9405 (update_current_target): Update.
9406 * remote.c (remote_terminal_inferior): Add 'self' argument.
9407 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9408 * inflow.c (terminal_inferior): Add 'self' argument.
9409 * inferior.h (terminal_inferior): Add 'self' argument.
9410 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9411 (go32_terminal_inferior): Add 'self' argument.
9412
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9414
9415 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9416 (target_terminal_init): Add argument.
9417 * target.c (debug_to_terminal_init): Add argument.
9418 (update_current_target): Update.
9419 * inflow.c (terminal_init_inferior): Add 'self' argument.
9420 * inferior.h (terminal_init_inferior): Add 'self' argument.
9421 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9422 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9423
9424 2014-02-19 Tom Tromey <tromey@redhat.com>
9425
9426 * target.h (struct target_ops)
9427 <to_can_accel_watchpoint_condition>: Add argument.
9428 (target_can_accel_watchpoint_condition): Add argument.
9429 * target.c (debug_to_can_accel_watchpoint_condition): Add
9430 argument.
9431 (update_current_target): Update.
9432 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9433 'self' argument.
9434
9435 2014-02-19 Tom Tromey <tromey@redhat.com>
9436
9437 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9438 Add argument.
9439 (target_region_ok_for_hw_watchpoint): Add argument.
9440 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9441 (default_region_ok_for_hw_watchpoint): Add argument.
9442 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9443 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9444 argument.
9445 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9446 argument.
9447 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9448 argument.
9449 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9450 'self' argument.
9451 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9452 'self' argument.
9453 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9454 'self' argument.
9455 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9456 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9457 'self' argument.
9458 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9459 Add 'self' argument.
9460
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9462
9463 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9464 argument.
9465 (target_insert_watchpoint): Add argument.
9466 * target.c (debug_to_insert_watchpoint): Add argument.
9467 (update_current_target): Update.
9468 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9469 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9470 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9471 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9472 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9473 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9474 argument.
9475 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9476 (procfs_insert_hw_watchpoint): Add 'self' argument.
9477 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9478 argument.
9479 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9480 argument.
9481 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9482 argument.
9483 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9484 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9485 argument.
9486 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9487 'self' argument.
9488
9489 2014-02-19 Tom Tromey <tromey@redhat.com>
9490
9491 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9492 argument.
9493 (target_remove_watchpoint): Add argument.
9494 * target.c (debug_to_remove_watchpoint): Add argument.
9495 (update_current_target): Update.
9496 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9497 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9498 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9499 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9500 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9501 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9502 argument.
9503 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9504 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9505 argument.
9506 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9507 argument.
9508 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9509 argument.
9510 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9511 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9512 argument.
9513 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9514 'self' argument.
9515
9516 2014-02-19 Tom Tromey <tromey@redhat.com>
9517
9518 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9519 argument.
9520 (target_remove_hw_breakpoint): Add argument.
9521 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9522 (update_current_target): Update.
9523 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9524 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9525 argument.
9526 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9527 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9528 argument.
9529 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9530 'self' argument.
9531
9532 2014-02-19 Tom Tromey <tromey@redhat.com>
9533
9534 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9535 argument.
9536 (target_insert_hw_breakpoint): Add argument.
9537 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9538 (update_current_target): Update.
9539 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9540 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9541 argument.
9542 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9543 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9544 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9545 argument.
9546 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9547 'self' argument.
9548
9549 2014-02-19 Tom Tromey <tromey@redhat.com>
9550
9551 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9552 argument.
9553 (target_can_use_hardware_watchpoint): Add argument.
9554 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9555 (update_current_target): Update.
9556 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9557 argument.
9558 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9559 argument.
9560 * remote.c (remote_check_watch_resources): Add 'self' argument.
9561 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9562 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9563 argument.
9564 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9565 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9566 argument.
9567 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9568 argument.
9569 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9570 argument.
9571 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9572 argument.
9573 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9574 argument.
9575 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9576 argument.
9577 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9578 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9579 argument.
9580 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9581 'self' argument.
9582
9583 2014-02-19 Tom Tromey <tromey@redhat.com>
9584
9585 * target.h (struct target_ops) <to_post_attach>: Add argument.
9586 (target_post_attach): Add argument.
9587 * target.c (debug_to_post_attach): Add argument.
9588 (update_current_target): Update.
9589 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9590 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9591 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9592 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9593 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9594
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9596
9597 * windows-nat.c (windows_close): Add 'self' argument.
9598 * tracepoint.c (tfile_close): Add 'self' argument.
9599 * target.h (struct target_ops) <to_close>: Add argument.
9600 * target.c (target_close): Add argument.
9601 (update_current_target): Update.
9602 * remote.c (remote_close): Add 'self' argument.
9603 * remote-sim.c (gdbsim_close): Add 'self' argument.
9604 * remote-mips.c (mips_close): Add 'self' argument.
9605 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9606 * record-full.c (record_full_close): Add 'self' argument.
9607 * record-btrace.c (record_btrace_close): Add 'self' argument.
9608 * monitor.h (monitor_close): Add 'self' argument.
9609 * monitor.c (monitor_close): Add 'self' argument.
9610 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9611 * linux-nat.c (linux_nat_close): Add argument.
9612 * go32-nat.c (go32_close): Add 'self' argument.
9613 * exec.c (exec_close_1): Add 'self' argument.
9614 * ctf.c (ctf_close): Add 'self' argument.
9615 * corelow.c (core_close): Add 'self' argument.
9616 (core_close_cleanup): Update.
9617 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9618 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9619
9620 2014-02-19 Tom Tromey <tromey@redhat.com>
9621
9622 * remote.c (remote_load): New function.
9623 (init_remote_ops): Use it.
9624
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9626
9627 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9628 argument.
9629 * common/linux-btrace.h (linux_supports_btrace): Update.
9630 * remote.c (remote_supports_btrace): Add "self" argument.
9631 * target-delegates.c: Rebuild.
9632 * target.c (target_supports_btrace): Remove.
9633 * target.h (struct target_ops) <to_supports_btrace>: Add
9634 target_ops argument.
9635 (target_supports_btrace): New define.
9636
9637 2014-02-19 Tom Tromey <tromey@redhat.com>
9638
9639 * record-full.c (record_full_beneath_to_resume_ops)
9640 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9641 (record_full_beneath_to_wait)
9642 (record_full_beneath_to_store_registers_ops)
9643 (record_full_beneath_to_store_registers)
9644 (record_full_beneath_to_xfer_partial_ops)
9645 (record_full_beneath_to_xfer_partial)
9646 (record_full_beneath_to_insert_breakpoint_ops)
9647 (record_full_beneath_to_insert_breakpoint)
9648 (record_full_beneath_to_remove_breakpoint_ops)
9649 (record_full_beneath_to_remove_breakpoint)
9650 (record_full_beneath_to_stopped_by_watchpoint)
9651 (record_full_beneath_to_stopped_data_address)
9652 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9653 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9654 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9655 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9656 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9657 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9658 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9659 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9660 (record_full_resume, record_full_wait_1)
9661 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9662 (record_full_store_registers, record_full_xfer_partial)
9663 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9664 (record_full_async, record_full_core_xfer_partial): Use target
9665 delegation.
9666 * target-delegates.c: Rebuild.
9667 * target.c (current_xfer_partial): Remove.
9668 (update_current_target): Do not INHERIT or de_fault
9669 to_insert_breakpoint, to_remove_breakpoint,
9670 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9671 to_is_async_p, to_async. Do not set to_xfer_partial field.
9672 (default_xfer_partial): Simplify.
9673 (current_xfer_partial): Remove.
9674 (target_wait, target_resume): Simplify.
9675 (find_default_can_async_p, find_default_is_async_p): Update.
9676 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9677 to_xfer_partial, to_stopped_by_watchpoint,
9678 to_stopped_data_address.
9679 (target_store_registers): Simplify.
9680 (forward_target_remove_breakpoint)
9681 (forward_target_insert_breakpoint): Remove.
9682 (target_remove_breakpoint, target_insert_breakpoint)
9683 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9684 * target.h (struct target_ops) <to_resume, to_wait,
9685 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9686 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9687 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9688 markup.
9689 (forward_target_remove_breakpoint)
9690 (forward_target_insert_breakpoint): Remove.
9691 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9692 directly.
9693 (record_btrace_insert_breakpoint): Delegate directly.
9694
9695 2014-02-19 Tom Tromey <tromey@redhat.com>
9696
9697 PR build/7701:
9698 * target-delegates.c: New file.
9699 * target.c: Include target-delegates.c.
9700 (init_dummy_target): Call install_dummy_methods.
9701 (complete_target_initialization): Call install_delegators.
9702 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9703 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9704 * make-target-delegates: New file.
9705
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * record.c (find_record_target): Use find_target_at.
9709 * target.c (find_target_at): New function.
9710 * target.h (find_target_at): Declare.
9711
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9713
9714 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9715 Add 'ops' argument.
9716 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9717 'ops' argument.
9718 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9719 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9720 'ops' argument.
9721 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9722 argument.
9723 * linux-nat.c (save_sigtrap): Update.
9724 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9725 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9726 (linux_nat_close): Update.
9727 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9728 argument.
9729 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9730 argument.
9731 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9732 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9733 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9734 (tmp_to_async): Add 'ops' argument.
9735 (record_full_stopped_by_watchpoint, record_full_async)
9736 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9737 argument.
9738 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9739 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9740 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9741 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9742 (remote_is_async_p, remote_async): Add 'ops' argument.
9743 (remote_stopped_data_address): Update.
9744 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9745 * target.c (update_current_target)
9746 (find_default_can_async_p, find_default_is_async_p): Update.
9747 (init_dummy_target): Update.
9748 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9749 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9750 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9751 (target_can_async_p, target_is_async_p, target_async)
9752 (target_stopped_by_watchpoint): Update.
9753
9754 2014-02-19 Yao Qi <yao@codesourcery.com>
9755
9756 PR gdb/16220
9757 * gdbarch.sh: Remove startup_gdbarch.
9758 * gdbarch.c: Regenerated.
9759 * gdbarch.h: Likewise.
9760
9761 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9762
9763 * rl78-tdep.c (rl78_g10_register_name): New function.
9764 (rl78_return_value): Add g10 support.
9765 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9766 g10.
9767
9768 2014-02-17 Doug Evans <xdje42@gmail.com>
9769
9770 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9771 (SUBDIR_GUILE_SRCS): Ditto.
9772 (scm-gsmob.o): Ditto.
9773
9774 2014-02-17 Yao Qi <yao@codesourcery.com>
9775
9776 * gnu-nat.c (ILL_RPC): Declare defined function.
9777
9778 2014-02-17 Yao Qi <yao@codesourcery.com>
9779
9780 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9781 mach_msg_type_number_t.
9782 (gnu_write_inferior): Likewise.
9783
9784 2014-02-17 Yao Qi <yao@codesourcery.com>
9785
9786 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9787 in format string.
9788 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9789 (inf_validate_procs, inf_signal): Likewise.
9790 (S_exception_raise_request): Likewise.
9791 (do_mach_notify_dead_name): Likewise.
9792 (steal_exc_port): Likewise.
9793 (gnu_read_inferior): Change 'copy_count''s type to
9794 mach_msg_type_number_t.
9795 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9796 format string.
9797
9798 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9799
9800 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9801 flag. Adjust all users; in particular...
9802 (gnu_wait): ..., don't decrement its value in here...
9803 (gnu_create_inferior): ..., and instead set the flag in here,
9804 around the startup_inferior call, and call that one with
9805 START_INFERIOR_TRAPS_EXPECTED.
9806
9807 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9808 (ILL_RPC): ... new macro.
9809 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9810 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9811 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9812 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9813 functions with ILL_RPC macro.
9814 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9815 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9816 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9817 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9818 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9819 (S_proc_getlogin_reply, S_proc_getsid_reply)
9820 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9821 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9822 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9823 (S_proc_getnports_reply, S_proc_is_important_reply)
9824 (S_proc_get_code_reply): New stub functions, generated with
9825 ILL_RPC macro.
9826
9827 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9828 collected the type check structures.
9829
9830 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9831
9832 2014-02-14 Doug Evans <dje@google.com>
9833
9834 * target.c (target_write_partial): Fix result type.
9835
9836 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9837
9838 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9839 the proper offsets to access fpregset_t.
9840
9841 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9842
9843 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9844 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9845 * h8300-tdep.c (setmachinelist): Remove global.
9846 * hppa-tdep.c (hppa_sigtramp): Remove global.
9847 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9848 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9849 * ravenscar-thread.c (update_target_observer): Remove global.
9850 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9851
9852 2014-02-12 Tom Tromey <tromey@redhat.com>
9853
9854 * common/rsp-low.c: Update comments.
9855 * common/rsp-low.h: Update comments.
9856
9857 2014-02-12 Tom Tromey <tromey@redhat.com>
9858
9859 * common/rsp-low.c (convert_ascii_to_int): Remove.
9860 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9861
9862 2014-02-12 Tom Tromey <tromey@redhat.com>
9863
9864 * common/rsp-low.h (unhexify): Don't declare.
9865 * common/rsp-low.c (unhexify): Remove.
9866
9867 2014-02-12 Tom Tromey <tromey@redhat.com>
9868
9869 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9870 * common/rsp-low.c (convert_int_to_ascii): Remove.
9871
9872 2014-02-12 Tom Tromey <tromey@redhat.com>
9873
9874 * common/rsp-low.h (hexify): Don't declare.
9875 * common/rsp-low.c (hexify): Remove.
9876
9877 2014-02-12 Tom Tromey <tromey@redhat.com>
9878
9879 * common/rsp-low.c (hexify): Never take strlen of argument.
9880
9881 2014-02-12 Tom Tromey <tromey@redhat.com>
9882
9883 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9884 * remote.c (extended_remote_run, remote_rcmd)
9885 (remote_download_trace_state_variable, remote_save_trace_data)
9886 (remote_set_trace_notes): Update.
9887 * tracepoint.c (encode_source_string, tfile_write_status)
9888 (tfile_write_uploaded_tsv): Update.
9889
9890 2014-02-12 Tom Tromey <tromey@redhat.com>
9891
9892 * tracepoint.c: Include rsp-low.h.
9893 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9894 * remote.c: Include rsp-low.h.
9895 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9896 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9897 (remote_unescape_input): Move to common/rsp-low.c.
9898 * common/rsp-low.h: New file.
9899 * common/rsp-low.c: New file.
9900 * Makefile.in (SFILES): Add common/rsp-low.c.
9901 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9902 (COMMON_OBS): Add rsp-low.o.
9903 (rsp-low.o): New target.
9904
9905 2014-02-12 Tom Tromey <tromey@redhat.com>
9906
9907 * utils.h: Include print-utils.h.
9908 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9909 (int_string, core_addr_to_string, core_addr_to_string_nz)
9910 (hex_string, hex_string_custom): Don't declare.
9911 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9912 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9913 (hex_string_custom, int_string, core_addr_to_string)
9914 (core_addr_to_string_nz, host_address_to_string): Move to
9915 common/print-utils.c.
9916 * common/print-utils.h: New file.
9917 * common/print-utils.c: New file
9918 * Makefile.in (SFILES): Add common/print-utils.c.
9919 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9920 (COMMON_OBS): Add print-utils.o.
9921 (print-utils.o): New target.
9922
9923 2014-02-12 Tom Tromey <tromey@redhat.com>
9924
9925 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9926
9927 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9928
9929 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9930
9931 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9932
9933 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9934 if a PT_IO ptrace request returns sucessfully but indicates that 0
9935 bytes were transferred.
9936
9937 2014-02-12 Pedro Alves <palves@redhat.com>
9938 Kevin Buettner <kevinb@redhat.com>
9939
9940 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9941 TYPE_INSTANCE_FLAG_CODE_SPACE.
9942
9943 2014-02-12 Pedro Alves <palves@redhat.com>
9944
9945 * h8300-tdep.c (pseudo_from_raw_register)
9946 (raw_from_pseudo_register): New functions.
9947 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9948 them.
9949
9950 2014-02-12 Pedro Alves <palves@redhat.com>
9951
9952 * h8300-tdep.c (h8300_register_sim_regno): New function.
9953 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9954 gdbarch_register_sim_regno hook.
9955
9956 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9957
9958 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9959
9960 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9961
9962 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9963
9964 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9965
9966 * obsd-tdep.h (obsd_init_abi): New prototype.
9967 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9968 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9969 (obsd_init_abi): New functions.
9970 * i386obsd-tdep.c: Include "obsd-tdep.h".
9971 (i386obsd_init_abi): Call obsd_init_abi.
9972 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9973 (amd64obsd_init_abi): Call obsd_init_abi.
9974 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9975 obsd-tdep.c to gdb_target_obs.
9976
9977 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9978
9979 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9980 double float arguments to 16-byte in the argument slots.
9981
9982 2014-02-11 Doug Evans <xdje42@gmail.com>
9983
9984 * configure.ac: Don't crash if pkg-config is not found and guile
9985 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9986 in guile checks.
9987 * configure: Regenerate.
9988
9989 2014-02-11 Yao Qi <yao@codesourcery.com>
9990
9991 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9992 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9993 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9994 * gnu-nat.c (gnu_xfer_memory): Likewise.
9995 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9996 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9997 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9998 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9999
10000 2014-02-11 Yao Qi <yao@codesourcery.com>
10001
10002 * target.h (enum target_xfer_error): Rename to ...
10003 (enum target_xfer_status): ... it. New. All users updated.
10004 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10005 New.
10006 (TARGET_XFER_STATUS_ERROR_P): New macro.
10007 (target_xfer_error_to_string): Remove declaration.
10008 (target_xfer_status_to_string): Declare.
10009 (target_xfer_partial_ftype): Adjust it.
10010 (struct target_ops) <to_xfer_partial>: Return
10011 target_xfer_status. Add argument xfered_len. Update
10012 comments.
10013 * target.c (target_xfer_error_to_string): Rename to ...
10014 (target_xfer_status_to_string): ... it. New. All callers
10015 updated.
10016 (target_read_live_memory): Likewise. Call target_xfer_partial
10017 instead of target_read.
10018 (memory_xfer_live_readonly_partial): Return
10019 target_xfer_status. Add argument xfered_len.
10020 (raw_memory_xfer_partial): Likewise.
10021 (memory_xfer_partial_1): Likewise.
10022 (memory_xfer_partial): Likewise.
10023 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10024 properly. Update debug message.
10025 (default_xfer_partial, current_xfer_partial): Likewise.
10026 (target_write_partial): Likewise.
10027 (target_read_partial): Likewise. All callers updated.
10028 (read_whatever_is_readable): Likewise.
10029 (target_write_with_progress): Likewise.
10030 (target_read_alloc_1): Likewise.
10031
10032 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10033 * auxv.c (procfs_xfer_auxv): Likewise.
10034 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10035 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10036 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10037 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10038 * corefile.c (read_memory): Adjust.
10039 * corelow.c (core_xfer_partial): Likewise.
10040 * ctf.c (ctf_xfer_partial): Likewise.
10041 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10042 updated.
10043 (darwin_xfer_partial): Likewise.
10044 * exec.c (section_table_xfer_memory_partial): Likewise. All
10045 callers updated.
10046 (exec_xfer_partial): Likewise.
10047 * exec.h (section_table_xfer_memory_partial): Update
10048 declaration.
10049 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10050 negative.
10051 (gnu_xfer_partial): Likewise.
10052 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10053 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10054 (ia64_hpux_xfer_solib_got): Likewise.
10055 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10056 type of 'partial_len' to ULONGEST.
10057 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10058 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10059 (linux_nat_xfer_partial): Likewise.
10060 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10061 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10062 * monitor.c (monitor_xfer_memory): Likewise.
10063 (monitor_xfer_partial): Likewise.
10064 * procfs.c (procfs_xfer_partial): Likewise.
10065 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10066 * record-full.c (record_full_xfer_partial): Likewise.
10067 (record_full_core_xfer_partial): Likewise.
10068 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10069 (gdbsim_xfer_partial): Likewise.
10070 * remote.c (remote_write_bytes_aux): Likewise. All callers
10071 updated.
10072 (remote_write_bytes, remote_read_bytes): Likewise. All
10073 callers updated.
10074 (remote_flash_erase): Likewise. All callers updated.
10075 (remote_write_qxfer): Likewise. All callers updated.
10076 (remote_read_qxfer): Likewise. All callers updated.
10077 (remote_xfer_partial): Likewise.
10078 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10079 (rs6000_xfer_shared_libraries): Likewise.
10080 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10081 (sol_thread_xfer_partial): Likewise.
10082 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10083 (sparc_xfer_partial): Likewise.
10084 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10085 updated.
10086 (spu_xfer_partial): Likewise.
10087 * spu-multiarch.c (spu_xfer_partial): Likewise.
10088 * tracepoint.c (tfile_xfer_partial): Likewise.
10089 * windows-nat.c (windows_xfer_memory): Likewise.
10090 (windows_xfer_shared_libraries): Likewise.
10091 (windows_xfer_partial): Likewise.
10092 * valprint.c: Replace 'target_xfer_error' with
10093 'target_xfer_status' in comments.
10094
10095 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10096
10097 Checked in by Joel Brobecker <brobecker@adacore.com>.
10098 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10099
10100 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10101
10102 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10103 function parameters.
10104
10105 2014-02-10 Will Newton <will.newton@linaro.org>
10106
10107 * elfread.c (elf_rel_plt_read): Look for a .got section if
10108 looking up .got.plt fails.
10109 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10110 on address passed to elf_gnu_ifunc_record_cache.
10111 (elf_gnu_ifunc_resolve_addr): Likewise.
10112 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10113
10114 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10115
10116 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10117 (X_RETTURN): New macro.
10118 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10119
10120 * sparc64-tdep.c (sparc64_init_abi): Hook
10121 sparc_in_function_epilogue_p.
10122
10123 2014-02-10 Gary Benson <gbenson@redhat.com>
10124
10125 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10126 Rename name_matcher to symbol_matcher.
10127
10128 2014-02-10 Gary Benson <gbenson@redhat.com>
10129
10130 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10131 Use expand_symtabs_file_matcher_ftype and
10132 expand_symtabs_symbol_matcher_ftype.
10133
10134 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10135
10136 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10137 (struct ada_symbol_cache): New.
10138 (ada_free_symbol_cache): Forward declare.
10139 (struct ada_pspace_data): New.
10140 (ada_pspace_data_handle): New static global.
10141 (get_ada_pspace_data, ada_pspace_data_cleanup)
10142 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10143 (cache_space, cache): Delete, now folded inside struct
10144 ada_pspace_data.
10145 (ada_get_symbol_cache): New function.
10146 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10147 implementation.
10148 (_initialize_ada_language): Remove initialization of cache_space.
10149 Move call to observer_attach_inferior_exit up, grouping it
10150 with the other observer registrations inside this function.
10151 Rename command to be more general. Add call to
10152 register_program_space_data_with_cleanup.
10153
10154 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10155
10156 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10157 ada_new_objfile_observer.
10158 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10159 (_initialize_tasks): Update uses of ada_new_objfile_observer
10160 and ada_tasks_normal_stop_observer.
10161
10162 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10163
10164 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10165 returned by the 'Length attribute to integer.
10166
10167 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10168
10169 * ada-lang.c (_initialize_ada_language): Initialize
10170 cache_space obstack.
10171
10172 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10173
10174 * ada-lang.c (HASH_SIZE): New macro.
10175 (struct cache_entry): New type.
10176 (cache_space, cache): New static globals.
10177 (ada_clear_symbol_cache, find_entry): New functions.
10178 (lookup_cached_symbol, cache_symbol): Implement.
10179 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10180 (_initialize_ada_language): Attach ada_new_objfile_observer
10181 and ada_free_objfile_observer.
10182
10183 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10184
10185 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10186 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10187 struct block * parameter.
10188 (ada_lookup_symbol_list_worker): Constify local variable "block".
10189 Remove cast which is no longer necessary.
10190
10191 2014-02-10 Doug Evans <xdje42@gmail.com>
10192
10193 Add Guile as an extension language.
10194 * NEWS: Mention Guile scripting.
10195 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10196 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10197 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10198 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10199 (CLIBS): Add GUILE_LIBS.
10200 (install-guile): New rule.
10201 (guile.o): New rule.
10202 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10203 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10204 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10205 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10206 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10207 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10208 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10209 * configure.ac: New option --with-guile.
10210 * configure: Regenerate.
10211 * config.in: Regenerate.
10212 * auto-load.c: Remove #include "python/python.h". Add #include
10213 "gdb/section-scripts.h".
10214 (source_section_scripts): Handle Guile scripts.
10215 (_initialize_auto_load): Add name of Guile objfile script to
10216 scripts-directory help text.
10217 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10218 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10219 (struct breakpoint): New member scm_bp_object.
10220 * defs.h (enum command_control_type): New value guile_control.
10221 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10222 "extension.h".
10223 (show_user): Update comment.
10224 (_initialize_cli_cmds): Update help text for "show user". Update help
10225 text for max-user-call-depth.
10226 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10227 "extension.h".
10228 (multi_line_command_p): Add guile_control.
10229 (print_command_lines): Handle guile_control.
10230 (execute_control_command, recurse_read_control_structure): Ditto.
10231 (process_next_line): Recognize "guile" commands.
10232 * disasm.c (gdb_disassemble_info): Make non-static.
10233 * disasm.h: #include "dis-asm.h".
10234 (struct gdbarch): Add forward decl.
10235 (gdb_disassemble_info): Declare.
10236 * extension.c: #include "guile/guile.h".
10237 (extension_languages): Add guile.
10238 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10239 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10240 * gdbtypes.c (get_unsigned_type_max): New function.
10241 (get_signed_type_minmax): New function.
10242 * gdbtypes.h (get_unsigned_type_max): Declare.
10243 (get_signed_type_minmax): Declare.
10244 * guile/README: New file.
10245 * guile/guile-internal.h: New file.
10246 * guile/guile.c: New file.
10247 * guile/guile.h: New file.
10248 * guile/scm-arch.c: New file.
10249 * guile/scm-auto-load.c: New file.
10250 * guile/scm-block.c: New file.
10251 * guile/scm-breakpoint.c: New file.
10252 * guile/scm-disasm.c: New file.
10253 * guile/scm-exception.c: New file.
10254 * guile/scm-frame.c: New file.
10255 * guile/scm-gsmob.c: New file.
10256 * guile/scm-iterator.c: New file.
10257 * guile/scm-lazy-string.c: New file.
10258 * guile/scm-math.c: New file.
10259 * guile/scm-objfile.c: New file.
10260 * guile/scm-ports.c: New file.
10261 * guile/scm-pretty-print.c: New file.
10262 * guile/scm-safe-call.c: New file.
10263 * guile/scm-string.c: New file.
10264 * guile/scm-symbol.c: New file.
10265 * guile/scm-symtab.c: New file.
10266 * guile/scm-type.c: New file.
10267 * guile/scm-utils.c: New file.
10268 * guile/scm-value.c: New file.
10269 * guile/lib/gdb.scm: New file.
10270 * guile/lib/gdb/boot.scm: New file.
10271 * guile/lib/gdb/experimental.scm: New file.
10272 * guile/lib/gdb/init.scm: New file.
10273 * guile/lib/gdb/iterator.scm: New file.
10274 * guile/lib/gdb/printing.scm: New file.
10275 * guile/lib/gdb/types.scm: New file.
10276 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10277 (VPATH): Add $(GUILE_SRCDIR).
10278 (GUILE_DIR): New variable.
10279 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10280 (all): Add stamp-guile dependency.
10281 (stamp-guile): New rule.
10282 (clean-guile, install-guile, uninstall-guile): New rules.
10283 (install-only): Add install-guile dependency.
10284 (uninstall): Add uninstall-guile dependency.
10285 (clean): Add clean-guile dependency.
10286
10287 2014-02-09 Doug Evans <xdje42@gmail.com>
10288
10289 Revert this patch (which I approved, mea culpa).
10290
10291 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10292
10293 * Makefile.in (all-lib): Remove.
10294 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10295
10296 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10297
10298 Fix Python stack corruption.
10299 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10300 gdb_py_longest.
10301
10302 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10303
10304 * Makefile.in (all-lib): Remove.
10305 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10306
10307 2014-02-07 Doug Evans <dje@google.com>
10308
10309 * extension-priv.h (extension_language_script_ops): Add comment.
10310 (extension_language_ops): Add comment.
10311 (active_ext_lang_state): Fix typo in comment.
10312
10313 2014-02-07 Pedro Alves <palves@redhat.com>
10314
10315 PR breakpoints/16292
10316 * infrun.c (handle_signal_stop) <signal arrives while stepping
10317 over a breakpoint>: Switch back to the stepping thread.
10318
10319 2014-02-07 Yao Qi <yao@codesourcery.com>
10320
10321 * target.c (target_xfer_partial): Return zero if LEN is zero.
10322
10323 2014-02-07 Yao Qi <yao@codesourcery.com>
10324
10325 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10326 (ld_so_xfer_auxv): Likewise.
10327 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10328 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10329 * corelow.c (core_xfer_partial): Likewise.
10330 * ctf.c (ctf_xfer_partial): Likewise.
10331 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10332 (darwin_xfer_partial): Likewise.
10333 * exec.c (exec_xfer_partial): Likewise.
10334 * gnu-nat.c (gnu_xfer_partial): Likewise.
10335 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10336 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10337 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10338 * linux-nat.c (linux_xfer_siginfo): Likewise.
10339 (linux_proc_xfer_spu): Likewise.
10340 * procfs.c (procfs_xfer_partial): Likewise.
10341 * record-full.c (record_full_xfer_partial): Likewise.
10342 (record_full_core_xfer_partial): Likewise.
10343 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10344 * remote.c (remote_write_qxfer): Likewise.
10345 (remote_write_qxfer, remote_read_qxfer): Likewise.
10346 (remote_xfer_partial): Likewise.
10347 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10348 (rs6000_xfer_shared_libraries): Likewise.
10349 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10350 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10351 (spu_xfer_partial): Likewise.
10352 * target.c (memory_xfer_partial_1): Likewise.
10353 * tracepoint.c (tfile_xfer_partial): Likewise.
10354 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10355 (windows_xfer_partial): Likewise.
10356
10357 2014-02-07 Yao Qi <yao@codesourcery.com>
10358
10359 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10360 comments.
10361 (core_xfer_shared_libraries_aix): Likewise.
10362 * gdbarch.c, gdbarch.h: Regenerated.
10363 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10364 ULONGEST. Change 'len_avail' type to ULONGEST.
10365 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10366 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10367 declaration.
10368 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10369
10370 2014-02-07 Yao Qi <yao@codesourcery.com>
10371
10372 * corefile.c (memory_error): Get 'exception' from ERR and pass
10373 'exception' to throw_error.
10374
10375 2014-02-06 Doug Evans <xdje42@gmail.com>
10376
10377 * configure.ac (libpython checking): Remove all but python.o from
10378 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10379 * configure: Regenerate.
10380
10381 * Makefile.in (SFILES): Add extension.c.
10382 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10383 (COMMON_OBS): Add extension.o.
10384 * extension.h: New file.
10385 * extension-priv.h: New file.
10386 * extension.c: New file.
10387
10388 * python/python-internal.h: #include "extension.h".
10389 (gdbpy_auto_load_enabled): Declare.
10390 (gdbpy_apply_val_pretty_printer): Declare.
10391 (gdbpy_apply_frame_filter): Declare.
10392 (gdbpy_preserve_values): Declare.
10393 (gdbpy_breakpoint_cond_says_stop): Declare.
10394 (gdbpy_breakpoint_has_cond): Declare.
10395 (void source_python_script_for_objfile): Delete.
10396 * python/python.c: #include "extension-priv.h".
10397 Delete inclusion of "observer.h".
10398 (extension_language_python): Moved here and renamed from
10399 script_language_python in py-auto-load.c.
10400 Redefined to be of type extension_language_defn.
10401 (python_extension_script_ops): New global.
10402 (python_extension_ops): New global.
10403 (struct python_env): New member previous_active.
10404 (restore_python_env): Call restore_active_ext_lang.
10405 (ensure_python_env): Call set_active_ext_lang.
10406 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10407 New arg extlang.
10408 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10409 New arg extlang.
10410 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10411 New arg extlang.
10412 (gdbpy_eval_from_control_command): Renamed from
10413 eval_python_from_control_command, made static. New arg extlang.
10414 (gdbpy_source_script) Renamed from source_python_script, made static.
10415 New arg extlang.
10416 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10417 result to int. New arg extlang.
10418 (gdbpy_source_objfile_script): Renamed from
10419 source_python_script_for_objfile, made static. New arg extlang.
10420 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10421 static. New args extlang, extlang_printers. Change result type to
10422 "void".
10423 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10424 static. New arg extlang. Rename arg printers to extlang_printers
10425 and change type to ext_lang_type_printers *.
10426 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10427 static. Replace argument arg with extlang, extlang_printers.
10428 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10429 (!HAVE_PYTHON, source_python_script): Delete.
10430 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10431 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10432 (!HAVE_PYTHON, start_type_printers): Delete.
10433 (!HAVE_PYTHON, apply_type_printers): Delete.
10434 (!HAVE_PYTHON, free_type_printers): Delete.
10435 (_initialize_python): Delete call to observer_attach_before_prompt.
10436 (finalize_python): Set/restore active extension language.
10437 (gdbpy_finish_initialization) Renamed from
10438 finish_python_initialization, made static. New arg extlang.
10439 (gdbpy_initialized): New function.
10440 * python/python.h: #include "extension.h". Delete #include
10441 "value.h", "mi/mi-cmds.h".
10442 (extension_language_python): Declare.
10443 (GDBPY_AUTO_FILE_NAME): Delete.
10444 (enum py_bt_status): Moved to extension.h and renamed to
10445 ext_lang_bt_status.
10446 (enum frame_filter_flags): Moved to extension.h.
10447 (enum py_frame_args): Moved to extension.h and renamed to
10448 ext_lang_frame_args.
10449 (finish_python_initialization): Delete.
10450 (eval_python_from_control_command): Delete.
10451 (source_python_script): Delete.
10452 (apply_val_pretty_printer): Delete.
10453 (apply_frame_filter): Delete.
10454 (preserve_python_values): Delete.
10455 (gdbpy_script_language_defn): Delete.
10456 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10457 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10458
10459 * auto-load.c: #include "extension.h".
10460 (GDB_AUTO_FILE_NAME): Delete.
10461 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10462 (script_language_gdb): Delete, moved to extension.c and renamed to
10463 extension_language_gdb.
10464 (source_gdb_script_for_objfile): Delete.
10465 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10466 (loaded_script): Change type of language member to
10467 struct extension_language_defn *.
10468 (init_loaded_scripts_info): Initialize
10469 unsupported_script_warning_printed.
10470 (maybe_add_script): Make static. Change type of language arg to
10471 struct extension_language_defn *.
10472 (clear_section_scripts): Reset unsupported_script_warning_printed.
10473 (auto_load_objfile_script_1): Rewrite to use extension language API.
10474 (auto_load_objfile_script): Make public. Remove support-compiled-in
10475 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10476 (source_section_scripts): Rewrite to use extension language API.
10477 (load_auto_scripts_for_objfile): Rewrite to use
10478 auto_load_scripts_for_objfile.
10479 (collect_matching_scripts_data): Change type of language member to
10480 struct extension_language_defn *.
10481 (auto_load_info_scripts): Change type of language arg to
10482 struct extension_language_defn *.
10483 (unsupported_script_warning_print): New function.
10484 (script_not_found_warning_print): Make static.
10485 (_initialize_auto_load): Rewrite construction of scripts-directory
10486 help.
10487 * auto-load.h (struct objfile): Add forward decl.
10488 (struct script_language): Delete.
10489 (struct auto_load_pspace_info): Add forward decl.
10490 (struct extension_language_defn): Add forward decl.
10491 (maybe_add_script): Delete.
10492 (auto_load_objfile_script): Declare.
10493 (script_not_found_warning_print): Delete.
10494 (auto_load_info_scripts): Update prototype.
10495 (auto_load_gdb_scripts_enabled): Declare.
10496 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10497 auto_load_python_scripts_enabled and made public.
10498 (script_language_python): Delete, moved to python.c.
10499 (gdbpy_script_language_defn): Delete.
10500 (info_auto_load_python_scripts): Update to use
10501 extension_language_python.
10502
10503 * breakpoint.c (condition_command): Replace call to
10504 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10505 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10506 with call to breakpoint_ext_lang_cond_says_stop.
10507 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10508 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10509 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10510 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10511 New arg slang.
10512 (local_setattro): Print name of extension language with existing
10513 stop condition.
10514
10515 * valprint.c (val_print, value_print): Update to call
10516 apply_ext_lang_val_pretty_printer.
10517 * cp-valprint.c (cp_print_value): Update call to
10518 apply_ext_lang_val_pretty_printer.
10519 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10520 (gdbpy_apply_val_pretty_printer): Renamed from
10521 apply_val_pretty_printer. New arg extlang.
10522 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10523
10524 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10525 extension language API.
10526 * cli/cli-script.c (execute_control_command): Update to call
10527 eval_ext_lang_from_control_command.
10528
10529 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10530 enum ext_lang_bt_status values. Update call to
10531 apply_ext_lang_frame_filter.
10532 (mi_cmd_stack_list_locals): Ditto.
10533 (mi_cmd_stack_list_args): Ditto.
10534 (mi_cmd_stack_list_variables): Ditto.
10535 * mi/mi-main.c: Delete #include "python/python-internal.h".
10536 Add #include "extension.h".
10537 (mi_cmd_list_features): Replace reference to python internal variable
10538 gdb_python_initialized with call to ext_lang_initialized_p.
10539
10540 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10541 Update to use enum ext_lang_frame_args. Update to call
10542 apply_ext_lang_frame_filter.
10543 * python/py-framefilter.c (extract_sym): Update to use enum
10544 ext_lang_bt_status.
10545 (extract_value, py_print_type, py_print_value): Ditto.
10546 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10547 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10548 (py_print_frame): Ditto.
10549 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10550 New arg extlang. Update to use enum ext_lang_bt_status.
10551
10552 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10553 finish_python_initialization. Replace with call to
10554 finish_ext_lang_initialization.
10555
10556 * typeprint.c (do_free_global_table): Update to call
10557 free_ext_lang_type_printers.
10558 (create_global_typedef_table): Update to call
10559 start_ext_lang_type_printers.
10560 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10561 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10562 (type_print_options): Change type of global_printers from "void *"
10563 to "struct ext_lang_type_printers *".
10564
10565 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10566 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10567 (gdbpy_preserve_values): Renamed from preserve_python_values.
10568 New arg extlang.
10569 (!HAVE_PYTHON, preserve_python_values): Delete.
10570
10571 * utils.c (quit_flag): Delete, moved to extension.c.
10572 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10573 extension.c.
10574
10575 * eval.c: Delete #include "python/python.h".
10576 * main.c: Delete #include "python/python.h".
10577
10578 * defs.h: Update comment.
10579
10580 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10581
10582 GDB 7.7 released.
10583
10584 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10585
10586 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10587 defined.
10588
10589 2014-02-05 Yao Qi <yao@codesourcery.com>
10590
10591 * remote.c (remote_pass_signals): Remove local 'buf' and use
10592 rs->buf.
10593 (remote_program_signals): Likewise.
10594
10595 2014-02-05 Yao Qi <yao@codesourcery.com>
10596
10597 * ctf.c: Include "inferior.h" and "gdbthread.h".
10598 (CTF_PID): A new macro.
10599 (ctf_open): Call inferior_appeared and add_thread_silent.
10600 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10601 (ctf_thread_alive): New function.
10602 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10603
10604 2014-02-05 Yao Qi <yao@codesourcery.com>
10605
10606 Revert this patch:
10607
10608 2013-05-24 Yao Qi <yao@codesourcery.com>
10609
10610 * tracepoint.c (TFILE_PID): Remove.
10611 (tfile_open): Don't add thread and inferior.
10612 (tfile_close): Don't set 'inferior_ptid'. Don't call
10613 exit_inferior_silent.
10614 (tfile_thread_alive): Remove.
10615 (init_tfile_ops): Don't set field 'to_thread_alive' of
10616 tfile_ops.
10617
10618 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10619
10620 * remote.c (remote_start_remote): Call remote_check_symbols even
10621 if only symbol-file (not file) has been given.
10622
10623 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10624
10625 * gdbarch.sh (skip_entrypoint): New callback.
10626 * gdbarch.c, gdbarch.h: Regenerate.
10627 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10628 * infrun.c (fill_in_stop_func): Likewise.
10629 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10630 (ppc_elfv2_elf_make_msymbol_special): New function.
10631 (ppc_elfv2_skip_entrypoint): Likewise.
10632 (ppc_linux_init_abi): Install them for ELFv2.
10633
10634 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10635
10636 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10637 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10638 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10639 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10640 structures returned in GPRs.
10641
10642 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10643
10644 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10645 offset to the stack parameter list for the ELFv2 ABI.
10646
10647 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10648
10649 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10650 set_gdbarch_convert_from_func_ptr_addr and
10651 set_gdbarch_elf_make_msymbol_special for ELFv1.
10652 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10653 function descriptors on ELFv1.
10654 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10655 set up r12 at function entry.
10656
10657 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10658
10659 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10660 (struct gdbarch_tdep): New member elf_abi.
10661
10662 * rs6000-tdep.c: Include "elf/ppc64.h".
10663 (rs6000_gdbarch_init): Detect ELF ABI version.
10664
10665 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10666
10667 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10668 within a register pair holding a DFP 128-bit value on little-endian.
10669 (ppc64_sysv_abi_return_value_base): Likewise.
10670 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10671 (dfp_pseudo_register_write): Likewise.
10672
10673 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10674
10675 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10676 offset on little-endian when passing _Decimal32.
10677 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10678
10679 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10680
10681 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10682 of the overlapped FP register within the VSX register on little-
10683 endian platforms.
10684 (efpr_pseudo_register_write): Likewise.
10685
10686 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10687
10688 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10689 offset on little-endian when passing small structures.
10690
10691 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10692
10693 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10694 (struct ppc64_sysv_argpos): New data structure.
10695 (ppc64_sysv_abi_push_float): Remove.
10696 (ppc64_sysv_abi_push_val): New function.
10697 (ppc64_sysv_abi_push_integer): Likewise.
10698 (ppc64_sysv_abi_push_freg): Likewise.
10699 (ppc64_sysv_abi_push_vreg): Likewise.
10700 (ppc64_sysv_abi_push_param): Likewise.
10701 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10702 (ppc64_sysv_abi_return_value_base): New function.
10703 (ppc64_sysv_abi_return_value): Refactor to use it.
10704
10705 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10706
10707 * NEWS: Document new target powerpc64le-*-linux*.
10708
10709 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10710
10711 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10712 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10713 core dumps.
10714 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10715 register set used in ELF core dumps. Add floating-point register set.
10716
10717 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10718
10719 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10720 dwarf2_to_gdb[] table using symbolic constants. Adjust
10721 penultimate entry from number representing the PC register
10722 to symbolic constant representing the MDR register. Add
10723 constant for the PC register to the end of the table.
10724
10725 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10726
10727 * bsd-kvm.c: Include <sys/param.h>
10728
10729 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10730
10731 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10732
10733 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10734
10735 * ada-lang.h (clear_ada_sym_cache): Delete.
10736
10737 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10738
10739 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10740
10741 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10742
10743 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10744 the sigreturn register save area only if the syscall is
10745 sigreturn.
10746
10747 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10748
10749 * valops.c (value_slice): Minor reformatting.
10750
10751 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10752
10753 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10754
10755 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10756
10757 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10758 New static globals.
10759 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10760 (ada_ignore_descriptive_types_p): New static global.
10761 (find_parallel_type_by_descriptive_type): Return immediately
10762 if ada_ignore_descriptive_types_p is set.
10763 (_initialize_ada_language): Register new commands "maintenance
10764 set ada", "maintenance show ada", "maintenance set ada
10765 ignore-descriptive-types" and "maintenance show ada
10766 ignore-descriptive-types".
10767 * NEWS: Add entry for new "maint ada set/show
10768 ignore-descriptive-types" commands.
10769
10770 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10771
10772 * record-btrace.c (record_btrace_close): Call btrace_teardown
10773 for all threads.
10774
10775 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10776
10777 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10778 "ui-out.h".
10779
10780 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10781
10782 * ada-typeprint (type_is_full_subrange_of_target_type):
10783 New function.
10784 (print_range): Add parameter bounds_prefered_p. If not set,
10785 try printing range types using the name of their base type.
10786 (print_range_type): Add parameter bounds_prefered_p.
10787 Use it in call to print_range.
10788 (print_array_type, ada_print_type): Update calls to print_range
10789 and print_range_type.
10790
10791 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10792
10793 * ada-typeprint.c (print_array_type, print_choices, print_range)
10794 (print_range_bound, print_dynamic_range_bound, print_range_type):
10795 Remove declaration.
10796
10797 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10798
10799 * ada-typeprint.c (print_range): Add missing empty line
10800 after local declaration.
10801
10802 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10803
10804 * ada-valprint.c (print_optional_low_bound): Get index_type's
10805 target type for as long as it is a TYPE_CODE_RANGE.
10806
10807 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10808
10809 * procfs.c (procfs_make_note_section): Remove assertion and
10810 associated comment.
10811
10812 2014-01-24 Yao Qi <yao@codesourcery.com>
10813
10814 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10815 * corelow.c (get_core_siginfo): Likewise.
10816
10817 2014-01-24 Yao Qi <yao@codesourcery.com>
10818
10819 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10820 ULONGEST. Don't check 'len' is negative.
10821 (remote_write_bytes): Change type of 'len' to ULONGEST.
10822
10823 2014-01-23 Tom Tromey <tromey@redhat.com>
10824
10825 PR python/16485:
10826 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10827 Handle exception from frame.block.
10828 (FrameVars.fetch_frame_locals): Likewise.
10829
10830 2014-01-23 Tom Tromey <tromey@redhat.com>
10831
10832 PR python/16487:
10833 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10834 on a NULL pointer. Move "goto error" to correct place.
10835
10836 2014-01-23 Tom Tromey <tromey@redhat.com>
10837
10838 PR python/16491:
10839 * python/py-framefilter.c (apply_frame_filter): Call
10840 ensure_python_env after computing gdbarch.
10841
10842 2014-01-23 Yao Qi <yao@codesourcery.com>
10843
10844 * target.c (raw_memory_xfer_partial): Change argument type
10845 from void * to gdb_byte *.
10846 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10847
10848 2014-01-22 Doug Evans <dje@google.com>
10849
10850 New gdbserver option --debug-format=timestamp.
10851 * NEWS: Mention it.
10852
10853 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10854
10855 * syscalls/s390x-linux.xml: New file.
10856 * syscalls/s390-linux.xml: New file.
10857 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10858 (XML_SYSCALL_FILENAME_S390X): Likewise.
10859 (op_svc): New enum value for SVC opcode.
10860 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10861 (s390_linux_get_syscall_number): New function.
10862 (s390_gdbarch_init): Register '*get_syscall_number' and the
10863 syscall xml file name.
10864 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10865 "s390-linux.xml" and "s390x-linux.xml".
10866 * NEWS: Announce new feature.
10867
10868 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10869
10870 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10871
10872 2014-01-22 Pedro Alves <palves@redhat.com>
10873
10874 * xtensa-config.c: Include defs.h.
10875
10876 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10877
10878 * common/common-utils.h: Add "ARI:" comment beside __func__
10879 reference.
10880
10881 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10882
10883 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10884 documentation a bit.
10885
10886 2014-01-21 Roland McGrath <mcgrathr@google.com>
10887
10888 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10889 * configure: Regenerate.
10890 * aclocal.m4: Regenerate.
10891 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10892 New substituted variables.
10893 (install-strip): New target.
10894 (INSTALL_SCRIPT): New substituted variable.
10895 (FLAGS_TO_PASS): Add it.
10896 (install-only): Use $(INSTALL_SCRIPT) rather than
10897 $(INSTALL_PROGRAM) for gcore.
10898
10899 2014-01-20 Tom Tromey <tromey@redhat.com>
10900
10901 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10902 together.
10903
10904 2014-01-20 Tom Tromey <tromey@redhat.com>
10905
10906 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10907 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10908 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10909 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10910 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10911 (struct cmd_list_element) <flags>: Remove.
10912 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10913 doc_allocated>: New fields.
10914 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10915 bitfields.
10916 * maint.c (maintenance_do_deprecate): Update.
10917 * top.c (execute_command): Update.
10918
10919 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10920
10921 * xtensa-linux-nat.c: Include asm/ptrace.h.
10922
10923 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10924
10925 * Makefile.in (SFILES): Add d-support.c.
10926 (COMMON_OBS): Add d-support.o.
10927 * d-lang.h (d_parse_symbol): Add comment, now defined in
10928 d-support.c.
10929 * d-lang.c (parse_call_convention)
10930 (parse_attributes, parse_function_types)
10931 (parse_function_args, parse_type, parse_identifier)
10932 (call_convention_p, d_parse_symbol): Move functions to ...
10933 * d-support.c: ... New file.
10934
10935 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10936
10937 * d-lang.h (d_parse_symbol): Add declaration.
10938 * d-lang.c (extract_identifiers)
10939 (extract_type_info): Remove functions.
10940 (parse_call_convention, parse_attributes)
10941 (parse_function_types, parse_function_args)
10942 (parse_type, parse_identifier, call_convention_p)
10943 (d_parse_symbol): New functions.
10944 (d_demangle): Use d_parse_symbol to demangle D symbols.
10945
10946 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10947
10948 * d-lang.h (struct builtin_d_type): New data type.
10949 (builtin_d_type): Add declaration.
10950 * d-lang.c (d_language_arch_info, build_d_types)
10951 (builtin_d_type): New functions.
10952 (enum d_primitive_types): New data type.
10953 (d_language_defn): Change c_language_arch_info to
10954 d_language_arch_info.
10955 (d_type_data): New static variable.
10956 (_initialize_d_language): Initialize d_type_data.
10957
10958 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10959
10960 * d-lang.h (d_main_name): Add declaration.
10961 * d-lang.c (d_main_name): New function.
10962 * symtab.c (find_main_name): Add call to d_main_name.
10963
10964 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10965
10966 * d-lang.c (d_language_defn): Change macro_expansion_c to
10967 macro_expansion_no.
10968
10969 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10970
10971 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10972
10973 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10974
10975 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10976 gdb_exception" declaration.
10977 * remote.c (getpkt_or_notif_sane): Likewise.
10978
10979 2014-01-17 Doug Evans <dje@google.com>
10980
10981 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10982 function, contents of dirnames_to_char_ptr_vec_append moved here.
10983 (delim_string_to_char_ptr_vec): New function.
10984 (dirnames_to_char_ptr_vec_append): Rewrite.
10985 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10986
10987 2014-01-17 Doug Evans <dje@google.com>
10988
10989 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10990 and moved here ...
10991 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10992 #include "common-utils.h".
10993 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10994 * common/vec.h (VEC_ASSERT_PASS): Update.
10995 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10996 (MACH_CHECK_ERROR): Update.
10997
10998 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10999
11000 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11001 comments.
11002 * gdbarch.h: Regenerate.
11003
11004 2014-01-16 Tom Tromey <tromey@redhat.com>
11005
11006 * value.c (struct value) <regnum>: Move earlier.
11007
11008 2014-01-16 Tom Tromey <tromey@redhat.com>
11009
11010 * remote.c (extended_remote_create_inferior): Rename from
11011 extended_remote_create_inferior_1. Add "ops" argument. Remove
11012 old implementation.
11013
11014 2014-01-16 Pedro Alves <palves@redhat.com>
11015
11016 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11017 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11018 the backchain.
11019
11020 2014-01-16 Doug Evans <dje@google.com>
11021
11022 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11023
11024 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11025
11026 * btrace.h (btrace_thread_flag): New.
11027 (struct btrace_thread_info) <flags>: New.
11028 * record-btrace.c (record_btrace_resume_thread)
11029 (record_btrace_find_thread_to_move, btrace_step_no_history)
11030 (btrace_step_stopped, record_btrace_start_replaying)
11031 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11032 (record_btrace_find_resume_thread): New.
11033 (record_btrace_resume, record_btrace_wait): Extend.
11034 (record_btrace_can_execute_reverse): New.
11035 (record_btrace_open): Fail in non-stop mode.
11036 (record_btrace_set_replay): Split into this, ...
11037 (record_btrace_stop_replaying): ... this, ...
11038 (record_btrace_clear_histories): ... and this.
11039 (init_record_btrace_ops): Init to_can_execute_reverse.
11040 * NEWS: Announce it.
11041
11042 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11043
11044 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11045 (forward_target_decr_pc_after_break)
11046 (target_decr_pc_after_break): New.
11047 * target.c (forward_target_decr_pc_after_break)
11048 (target_decr_pc_after_break): New.
11049 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11050 instead of gdbarch_decr_pc_after_break.
11051 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11052 instead of gdbarch_decr_pc_after_break.
11053 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11054 instead of gdbarch_decr_pc_after_break.
11055 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11056 instead of gdbarch_decr_pc_after_break.
11057 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11058 instead of gdbarch_decr_pc_after_break.
11059 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11060 instead of gdbarch_decr_pc_after_break.
11061
11062 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11063
11064 * btrace.c: Include regcache.h.
11065 (btrace_add_pc): New.
11066 (btrace_enable): Call btrace_add_pc.
11067 (btrace_is_empty): New.
11068 * btrace.h (btrace_is_empty): New.
11069 * record-btrace.c (require_btrace, record_btrace_info): Call
11070 btrace_is_empty.
11071
11072 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11073
11074 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11075 Support delta reads.
11076 (linux_disable_btrace): Change return type.
11077 * common/linux-btrace.h (linux_read_btrace): Change parameters
11078 and return type to allow error reporting. Update users.
11079 (linux_disable_btrace): Change return type. Update users.
11080 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11081 New.
11082 (btrace_error): New.
11083 (btrace_block) <begin>: Comment on BEGIN == 0.
11084 * btrace.c (btrace_compute_ftrace): Start from the end of
11085 the current trace.
11086 (btrace_stitch_trace, btrace_clear_history): New.
11087 (btrace_fetch): Read delta trace, return if replaying.
11088 (btrace_clear): Move clear history code to btrace_clear_history.
11089 (parse_xml_btrace): Throw an error if parsing failed.
11090 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11091 and return type to allow error reporting.
11092 (target_read_btrace): Change parameters and return type to allow
11093 error reporting.
11094 * target.c (target_read_btrace): Update.
11095 * remote.c (remote_read_btrace): Support delta reads. Pass
11096 errors on.
11097 * NEWS: Announce it.
11098
11099 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11100
11101 * record.h (record_btrace_frame_unwind)
11102 (record_btrace_tailcall_frame_unwind): New declarations.
11103 * dwarf2-frame: Include record.h
11104 (dwarf2_frame_cfa): Throw an error for btrace frames.
11105 * record-btrace.c: Include hashtab.h.
11106 (btrace_get_bfun_name): New.
11107 (btrace_call_history): Call btrace_get_bfun_name.
11108 (struct btrace_frame_cache): New.
11109 (bfcache): New.
11110 (bfcache_hash, bfcache_eq, bfcache_new): New.
11111 (btrace_get_frame_function): New.
11112 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11113 (record_btrace_frame_this_id): Compute own id.
11114 (record_btrace_frame_prev_register): Provide PC, throw_error
11115 for all other registers.
11116 (record_btrace_frame_sniffer): Detect btrace frames.
11117 (record_btrace_tailcall_frame_sniffer): New.
11118 (record_btrace_frame_dealloc_cache): New.
11119 (record_btrace_frame_unwind): Add new functions.
11120 (record_btrace_tailcall_frame_unwind): New.
11121 (_initialize_record_btrace): Allocate cache.
11122 * btrace.c (btrace_clear): Call reinit_frame_cache.
11123 * NEWS: Announce it.
11124
11125 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11126
11127 * record-btrace.c (record_btrace_set_replay)
11128 (record_btrace_goto_begin, record_btrace_goto_end)
11129 (record_btrace_goto): New.
11130 (init_record_btrace_ops): Initialize them.
11131 * NEWS: Announce it.
11132
11133 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11134
11135 * record-btrace.c (record_btrace_find_new_threads)
11136 (record_btrace_thread_alive): New.
11137 (init_record_btrace_ops): Initialize to_find_new_threads and
11138 to_thread_alive.
11139
11140 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11141
11142 * record-btrace.c (record_btrace_resume): New.
11143 (record_btrace_wait): New.
11144 (init_record_btrace_ops): Initialize to_wait and to_resume.
11145
11146 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11147
11148 * record-btrace.c (record_btrace_xfer_partial)
11149 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11150 (record_btrace_allow_memory_access): New.
11151 (init_record_btrace_ops): Initialize new methods.
11152 * target.c (raw_memory_xfer_partial): Bail out if target reports
11153 that this memory is not available.
11154
11155 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11156
11157 * target.h (target_ops) <to_insert_breakpoint>
11158 <to_remove_breakpoint>: Add target_ops parameter.
11159 (forward_target_insert_breakpoint): New.
11160 (forward_target_remove_breakpoint): New.
11161 (memory_remove_breakpoint, memory_insert_breakpoint):
11162 Add target_ops parameter.
11163 * target.c (target_insert_breakpoint): Split into this and ...
11164 (forward_target_insert_breakpoint): ... this.
11165 (target_remove_breakpoint): Split into this and ...
11166 (forward_target_remove_breakpoint): ... this.
11167 (debug_to_insert_breakpoint): Add target_ops parameter.
11168 Call forward_target_insert_breakpoint.
11169 (debug_to_remove_breakpoint): Add target_ops parameter.
11170 Call forward_target_remove_breakpoint.
11171 (update_current_target): Do not inherit or default to_insert_breakpoint
11172 and to_remove_breakpoint.
11173 * corelow.c (ignore): Add target_ops parameter.
11174 * exec.c (ignore): Add target_ops parameter.
11175 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11176 Add target_ops parameter.
11177 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11178 Add target_ops parameter.
11179 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11180 Add target_ops parameter.
11181 * record-full.c (record_full_beneath_to_insert_breakpoint)
11182 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11183 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11184 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11185 (record_full_core_remove_breakpoint): Add target_ops parameter.
11186 Update users.
11187 (record_full_beneath_to_insert_breakpoint_ops)
11188 (record_full_beneath_to_remove_breakpoint_ops)
11189 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11190 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11191 tmp_to_remove_breakpoint_ops,
11192 record_full_beneath_to_insert_breakpoint_ops, and
11193 record_full_beneath_to_remove_breakpoint_ops.
11194 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11195 (m32r_remove_breakpoint): Add target_ops parameter.
11196 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11197 Add target_ops parameter.
11198 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11199 Add target_ops parameter.
11200
11201 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11202 Markus Metzger <markus.t.metzger@intel.com>
11203
11204 * record-btrace.c: Include frame-unwind.h.
11205 (record_btrace_frame_unwind_stop_reason)
11206 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11207 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11208 New.
11209 (init_record_btrace_ops): Install it.
11210
11211 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11212
11213 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11214 get_prev_frame_1.
11215
11216 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11217
11218 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11219 earlier.
11220
11221 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11222
11223 * frame-unwind.c: Include target.h.
11224 (frame_unwind_try_unwinder): New function with code from ...
11225 (frame_unwind_find_by_frame): ... here. New variable
11226 unwinder_from_target, call also target_get_unwinder)
11227 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11228 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11229 * target.h (struct target_ops): New fields to_get_unwinder and
11230 to_get_tailcall_unwinder.
11231 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11232
11233 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11234
11235 * record-btrace.c (record_btrace_fetch_registers)
11236 (record_btrace_store_registers)
11237 (record_btrace_to_prepare_to_store): New.
11238 (init_record_btrace_ops): Add the above.
11239
11240 2014-01-16 Tom Tromey <tromey@redhat.com>
11241
11242 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11243 * target.h (struct target_ops) <to_prepare_to_store>: Add
11244 argument.
11245 (target_prepare_to_store): Add argument.
11246 * target.c (debug_to_prepare_to_store): Add argument.
11247 (update_current_target): Update.
11248 * remote.c (remote_prepare_to_store): Add 'self' argument.
11249 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11250 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11251 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11252 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11253 argument.
11254 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11255 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11256 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11257 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11258 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11259
11260 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11261
11262 * btrace.h (replay) <replay>: New.
11263 (btrace_is_replaying): New.
11264 * btrace.c (btrace_clear): Free replay iterator.
11265 (btrace_is_replaying): New.
11266 * record-btrace.c (record_btrace_is_replaying): New.
11267 (record_btrace_info): Print insn number if replaying.
11268 (record_btrace_insn_history): Start at replay position.
11269 (record_btrace_call_history): Start at replay position.
11270 (init_record_btrace_ops): Init to_record_is_replaying.
11271
11272 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11273
11274 * record-btrace.c (record_btrace_insn_history_range): Include
11275 end.
11276 (record_btrace_insn_history_from): Adjust range.
11277 (record_btrace_call_history_range): Include
11278 end.
11279 (record_btrace_call_history_from): Adjust range.
11280 * NEWS: Announce changes.
11281
11282 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11283
11284 * record.h (enum record_print_flag)
11285 <record_print_indent_calls>: New.
11286 * record.c (get_call_history_modifiers): Recognize /c modifier.
11287 (_initialize_record): Document /c modifier.
11288 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11289 Reorder fields. Optionally indent the function name. Update
11290 all users.
11291 * NEWS: Announce changes.
11292
11293 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11294
11295 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11296
11297 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11298
11299 * btrace.c (ftrace_new_function): Start counting at one.
11300 * record-btrace.c (record_btrace_info): Adjust number of calls
11301 and insns.
11302 * NEWS: Announce it.
11303
11304 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11305
11306 * record-btrace.c (btrace_call_history_insn_range): Print
11307 insn range as [begin, end].
11308
11309 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11310
11311 * btrace.h (struct btrace_func_link): New.
11312 (enum btrace_function_flag): New.
11313 (struct btrace_inst): Rename to ...
11314 (struct btrace_insn): ...this. Update all users.
11315 (struct btrace_func) <ibegin, iend>: Remove.
11316 (struct btrace_func_link): New.
11317 (struct btrace_func): Rename to ...
11318 (struct btrace_function): ...this. Update all users.
11319 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11320 (number, level, flags>: New.
11321 (struct btrace_insn_iterator): Rename to ...
11322 (struct btrace_insn_history): ...this.
11323 Update all users.
11324 (struct btrace_insn_iterator, btrace_call_iterator): New.
11325 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11326 (struct btrace_target_info) <begin, end, level>
11327 <insn_history, call_history>: New.
11328 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11329 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11330 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11331 (btrace_call_number, btrace_call_begin, btrace_call_end)
11332 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11333 (btrace_find_function_by_number, btrace_set_insn_history)
11334 (btrace_set_call_history): New.
11335 * btrace.c (btrace_init_insn_iterator)
11336 (btrace_init_func_iterator, compute_itrace): Remove.
11337 (ftrace_print_function_name, ftrace_print_filename)
11338 (ftrace_skip_file): Change
11339 parameter to const.
11340 (ftrace_init_func): Remove.
11341 (ftrace_debug): Use new btrace_function fields.
11342 (ftrace_function_switched): Also consider gaining and
11343 losing symbol information).
11344 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11345 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11346 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11347 New.
11348 (ftrace_new_function): Move. Remove debug print.
11349 (ftrace_update_lines, ftrace_update_insns): New.
11350 (ftrace_update_function): Check for call, ret, and jump.
11351 (compute_ftrace): Renamed to ...
11352 (btrace_compute_ftrace): ...this. Rewritten to compute call
11353 stack.
11354 (btrace_fetch, btrace_clear): Updated.
11355 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11356 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11357 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11358 (btrace_call_number, btrace_call_begin, btrace_call_end)
11359 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11360 (btrace_find_function_by_number, btrace_set_insn_history)
11361 (btrace_set_call_history): New.
11362 * record-btrace.c (require_btrace): Use new btrace thread
11363 info fields.
11364 (record_btrace_info, btrace_insn_history)
11365 (record_btrace_insn_history, record_btrace_insn_history_range):
11366 Use new btrace thread info fields and new iterator.
11367 (btrace_func_history_src_line): Rename to ...
11368 (btrace_call_history_src_line): ...this. Use new btrace
11369 thread info fields.
11370 (btrace_func_history): Rename to ...
11371 (btrace_call_history): ...this. Use new btrace thread info
11372 fields and new iterator.
11373 (record_btrace_call_history, record_btrace_call_history_range):
11374 Use new btrace thread info fields and new iterator.
11375
11376 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11377
11378 * frame.h (frame_id_build_unavailable_stack_special): New.
11379 * frame.c (frame_id_build_unavailable_stack_special): New.
11380
11381 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11382
11383 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11384 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11385 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11386 to gdbarch.
11387 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11388 (i386_insn_is_jump, i386_jmp_p): New.
11389 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11390 insn_is_jump to gdbarch.
11391 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11392 * gdbarch.h: Regenerated.
11393 * gdbarch.c: Regenerated.
11394 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11395 (default_insn_is_jump): New.
11396 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11397 (default_insn_is_jump): New.
11398
11399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11400
11401 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11402 Change to ...
11403 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11404 (btrace_read_type) <btrace_read_new>: Change to ...
11405 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11406
11407 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11408
11409 * common/linux-btrace.c (linux_read_btrace): Free trace from
11410 previous iteration.
11411
11412 2014-01-15 Doug Evans <dje@google.com>
11413
11414 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11415 uint32_t.
11416
11417 2014-01-15 Tom Tromey <tromey@redhat.com>
11418
11419 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11420 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11421 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11422 (set_objfile_main_name): New function.
11423 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11424 language_of_main>: New fields.
11425 (set_objfile_main_name): Declare.
11426 * symtab.c (find_main_name): Loop over objfiles to find the main
11427 name and language.
11428 (set_main_name): Now static.
11429 (get_main_info): Add comment.
11430 * symtab.h (set_main_name): Don't declare.
11431
11432 2014-01-15 Tom Tromey <tromey@redhat.com>
11433
11434 * symtab.c (main_progspace_key): New global.
11435 (struct main_info): New.
11436 (name_of_main, language_of_main): Remove.
11437 (get_main_info, main_info_cleanup): New function.
11438 (set_main_name, main_name, main_language): Use get_main_info.
11439 (_initialize_symtab): Initialize main_progspace_key.
11440
11441 2014-01-15 Tom Tromey <tromey@redhat.com>
11442
11443 * dbxread.c (process_one_symbol): Update.
11444 * dwarf2read.c (read_partial_die): Update.
11445 * symfile.c (set_initial_language): Call main_language.
11446 * symtab.c (language_of_main): Now static.
11447 (set_main_name): Add 'lang' parameter.
11448 (find_main_name): Update.
11449 (main_language): New function.
11450 (symtab_observer_executable_changed): Update.
11451 * symtab.h (set_main_name): Update.
11452 (language_of_main): Remove.
11453 (main_language): Declare.
11454
11455 2014-01-15 Tom Tromey <tromey@redhat.com>
11456
11457 * symfile.c (init_entry_point_info): Use new "initialized" field.
11458 Update.
11459 * objfiles.h (struct entry_point) <initialized>: New field.
11460 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11461 (struct objfile) <ei>: ...here. Remove.
11462 * objfiles.c (entry_point_address_query): Update.
11463
11464 2014-01-15 Tom Tromey <tromey@redhat.com>
11465
11466 * objfiles.c (entry_point_address_query): Relocate entry point
11467 address.
11468 (objfile_relocate1): Do not relocate entry point address.
11469 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11470 <the_bfd_section_index>: New field.
11471 * symfile.c (init_entry_point_info): Find the entry point's
11472 section.
11473
11474 2014-01-15 Tom Tromey <tromey@redhat.com>
11475
11476 * solib-frv.c (enable_break): Use entry_point_address_query.
11477
11478 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11479
11480 * NEWS: Add note on improved process record-replay on
11481 arm*-linux* targets.
11482
11483 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11484
11485 * arm-tdep.c (enum arm_record_result): New enum.
11486 (arm_record_unsupported_insn): New function.
11487 (arm_record_coproc_data_proc): Removed.
11488 (thumb2_record_ld_st_multiple): New function.
11489 (thumb2_record_ld_st_dual_ex_tbb): New function.
11490 (thumb2_record_data_proc_sreg_mimm): New function.
11491 (thumb2_record_ps_dest_generic): New function.
11492 (thumb2_record_branch_misc_cntrl): New function.
11493 (thumb2_record_str_single_data): New function.
11494 (thumb2_record_ld_mem_hints): New function.
11495 (thumb2_record_ld_word): New function.
11496 (thumb2_record_lmul_lmla_div): New function.
11497 (thumb2_record_decode_insn_handler): New function.
11498 (decode_insn): Add thumb32 instruction handlers.
11499
11500 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11501
11502 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11503 (struct arm_linux_record_tdep): Declare.
11504 (arm_canonicalize_syscall): New function.
11505 (arm_all_but_pc_registers_record): New function.
11506 (arm_linux_syscall_record): New function.
11507 (arm_linux_init_abi): Add syscall recording constructs.
11508 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11509 decoding. (arm_record_coproc_data_proc): Update arm syscall
11510 decoding.
11511 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11512 <arm_syscall_record>: New field.
11513 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11514 gdb_target_obs.
11515
11516 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11517
11518 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11519 register for push instruction recording.
11520
11521 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11522
11523 * arm-tdep.c (thumb_record_misc): Update to correct logical
11524 error while recording ldm, ldmia and pop instructions.
11525
11526 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11527
11528 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11529
11530 2014-01-15 Pedro Alves <palves@redhat.com>
11531
11532 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11533 (go32_resume, go32_fetch_registers, store_register)
11534 (go32_store_registers, go32_prepare_to_store)
11535 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11536 (go32_create_inferior, go32_can_run, go32_terminal_init)
11537 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11538 declarations.
11539
11540 2014-01-15 Tom Tromey <tromey@redhat.com>
11541
11542 * target.h (async_callback_ftype): New typedef.
11543 (struct target_ops) <to_async>: Use it.
11544
11545 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11546
11547 * python/py-value.c (get_field_type): Remove unnecessary curly
11548 braces for single-statement if block.
11549
11550 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11551
11552 * python/py-type.c (convert_field): Add missing empty line
11553 after declarations.
11554
11555 2014-01-14 Doug Evans <dje@google.com>
11556
11557 * symfile.h (expand_symtabs_matching): Renamed from
11558 expand_partial_symbol_names. Update prototype.
11559 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11560 * symfile.c (expand_symtabs_matching): Renamed from
11561 expand_partial_symbol_names. New args file_matcher, kind.
11562 Rename arg fun to symbol_matcher.
11563 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11564 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11565 ada_expand_partial_symbol_name.
11566 (ada_make_symbol_completion_list): Update to call
11567 expand_symtabs_matching.
11568 (ada_add_global_exceptions): Call expand_symtabs_matching.
11569 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11570 call map_symbol_filenames.
11571 * symtab.c (sources_info): Update to call map_symbol_filenames.
11572 (search_symbols): Call expand_symtabs_matching.
11573 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11574 (default_make_symbol_completion_list_break_on): Update to call
11575 expand_symtabs_matching.
11576 (make_source_files_completion_list): Update to call
11577 map_symbol_filenames.
11578
11579 2014-01-14 Doug Evans <dje@google.com>
11580
11581 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11582 (expand_symtabs_symbol_matcher_ftype): New typedef.
11583 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11584 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11585 * symfile.c (expand_partial_symbol_names): Update to use
11586 expand_symtabs_symbol_matcher_ftype.
11587 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11588 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11589 Arg name_matcher renamed to symbol_matcher.
11590 * psymtab.c (recursively_search_psymtabs): Update to use
11591 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11592 sym_matcher.
11593 (expand_symtabs_matching_via_partial): Update to use
11594 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11595 Arg name_matcher renamed to symbol_matcher.
11596
11597 2014-01-14 Doug Evans <dje@google.com>
11598
11599 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11600 (map_partial_symbol_filenames): Ditto.
11601 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11602 (map_partial_symbol_filenames): Ditto.
11603 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11604 (map_partial_symbol_filenames): Ditto.
11605 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11606 (map_partial_symbol_filenames): Ditto.
11607 * symtab.c: Delete #include "psymtab.h".
11608
11609 2014-01-14 Pedro Alves <palves@redhat.com>
11610 Tom Tromey <tromey@redhat.com>
11611
11612 * infrun.c (use_displaced_stepping): Use find_record_target
11613 instead of RECORD_IS_USED.
11614 (adjust_pc_after_break): Use record_full_is_used instead of
11615 RECORD_IS_USED.
11616 * record-btrace.c (record_btrace_open): Call record_preopen
11617 instead of checking RECORD_IS_USED.
11618 * record-full.c (record_full_shortname)
11619 (record_full_core_shortname): New globals.
11620 (record_full_is_used): New function.
11621 (find_full_open): Call record_preopen instead of checking
11622 RECORD_IS_USED.
11623 (init_record_full_ops): Set the target's shortname to
11624 record_full_shortname.
11625 (init_record_full_core_ops): Set the target's shortname to
11626 record_full_core_shortname.
11627 * record-full.h (record_full_is_used): Declare.
11628 * record.c (find_record_target): Make extern.
11629 (record_preopen): New function.
11630 * record.h (RECORD_IS_USED): Delete macro.
11631 (find_record_target, record_preopen): Declare functions.
11632
11633 2014-01-14 Yao Qi <yao@codesourcery.com>
11634
11635 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11636 'len''s type to ULONGEST.
11637 (core_xfer_shared_libraries_aix): Likewise.
11638 * gdbarch.c, gdbarch.h: Regenerated.
11639 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11640 Change type of 'len' to ULONGEST.
11641 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11642 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11643
11644 2014-01-14 Yao Qi <yao@codesourcery.com>
11645
11646 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11647 type of 'len' to ULONGEST.
11648 (linux_xfer_osdata_processgroups): Likewise.
11649 (linux_xfer_osdata_threads): Likewise.
11650 (linux_xfer_osdata_fds): Likewise.
11651 (linux_xfer_osdata_isockets): Likewise.
11652 (linux_xfer_osdata_shm): Likewise.
11653 (linux_xfer_osdata_sem): Likewise.
11654 (linux_xfer_osdata_msg): Likewise.
11655 (linux_common_xfer_osdata): Likewise.
11656 (struct osdata_type) <getter>: Likewise.
11657 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11658 the declaration.
11659
11660 2014-01-14 Yao Qi <yao@codesourcery.com>
11661
11662 * target.h (target_xfer_partial_ftype): Update.
11663 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11664 ULONGEST.
11665 * aix-thread.c (aix_thread_xfer_partial): Change type of
11666 argument 'len' to ULONGEST.
11667 * auxv.c (procfs_xfer_auxv): Likewise.
11668 (ld_so_xfer_auxv): Likewise.
11669 (memory_xfer_auxv): Likewise.
11670 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11671 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11672 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11673 * corelow.c (core_xfer_partial): Likewise.
11674 * ctf.c (ctf_xfer_partial): Likewise.
11675 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11676 '%u'.
11677 (darwin_read_dyld_info): Likewise.
11678 (darwin_xfer_partial): Likewise.
11679 * exec.c (section_table_xfer_memory_partial): Likewise.
11680 (exec_xfer_partial): Likewise.
11681 * exec.h (section_table_xfer_memory_partial): Update
11682 declaration.
11683 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11684 instead of plongest.
11685 (gnu_xfer_partial): Likewise.
11686 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11687 (ia64_hpux_xfer_solib_got): Likewise.
11688 (ia64_hpux_xfer_partial): Likewise.
11689 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11690 * inf-ptrace.c (inf_ptrace_xfer_partial):
11691 * inf-ttrace.c (inf_ttrace_xfer_partial):
11692 * linux-nat.c (linux_xfer_siginfo): Likewise.
11693 (linux_nat_xfer_partial): Likewise.
11694 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11695 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11696 * monitor.c (monitor_xfer_memory): Likewise.
11697 (monitor_xfer_partial): Likewise.
11698 * procfs.c (procfs_xfer_partial): Likewise.
11699 * record-full.c (record_full_xfer_partial): Likewise.
11700 (record_full_core_xfer_partial): Likewise.
11701 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11702 instead of plongest.
11703 (gdbsim_xfer_partial): Likewise.
11704 * remote.c (remote_xfer_partial): Likewise.
11705 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11706 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11707 declaration.
11708 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11709 (rs6000_xfer_shared_libraries): Likewise.
11710 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11711 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11712 (sparc_xfer_partial): Likewise.
11713 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11714 (spu_xfer_partial): Likewise.
11715 * spu-multiarch.c (spu_xfer_partial): Likewise.
11716 * target.c (target_read_live_memory): Likewise.
11717 (memory_xfer_live_readonly_partial): Likewise.
11718 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11719 (target_xfer_partial, default_xfer_partial): Likewise.
11720 (current_xfer_partial): Likewise.
11721 * tracepoint.c (tfile_xfer_partial): Likewise.
11722 * windows-nat.c (windows_xfer_memory): Likewise. Call
11723 pulongest instead of plongest.
11724 (windows_xfer_partial): Likewise.
11725 (windows_xfer_shared_libraries): Likewise.
11726
11727 2014-01-14 Yao Qi <yao@codesourcery.com>
11728
11729 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11730 target_xfer_partial_ftype.
11731
11732 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11733
11734 PR python/15464
11735 PR python/16113
11736 * valops.c (value_struct_elt_bitpos): New function
11737 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11738 object to 'None' if the field name is an empty string ("").
11739 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11740 attribute to look for a field when 'name' is 'None'.
11741 (get_field_type): New function
11742
11743 2014-01-13 Doug Evans <dje@google.com>
11744
11745 PR symtab/16426
11746 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11747 (try_open_dwop_file): Ditto.
11748 * gdb_bfd.c: #include "vec.h".
11749 (bfdp): New typedef.
11750 (struct gdb_bfd_data): New member included_bfds.
11751 (gdb_bfd_unref): Unref all included bfds.
11752 (gdb_bfd_record_inclusion): New function.
11753 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11754
11755 2014-01-13 Tom Tromey <tromey@redhat.com>
11756
11757 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11758
11759 2014-01-13 Tom Tromey <tromey@redhat.com>
11760
11761 * defs.h (use_windows): Remove.
11762 * gdb.c (main): Update.
11763 * main.c (captured_main, gdb_main): Update.
11764 * main.h (struct captured_main_args) <use_windows>: Remove.
11765 * top.c (use_windows): Remove.
11766
11767 2014-01-13 Tom Tromey <tromey@redhat.com>
11768
11769 * defs.h (deprecated_flush_hook): Remove.
11770
11771 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11772
11773 PR threads/16216
11774 * linux-thread-db.c (try_thread_db_load): Add parameter
11775 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11776 (try_thread_db_load_from_pdir_1): Move it there from here.
11777 (try_thread_db_load_from_sdir): Update caller.
11778 (try_thread_db_load_from_dir): Move it there from here.
11779
11780 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11781
11782 * regformats/regdat.sh: Always rewrite the register file.
11783
11784 2014-01-13 Pedro Alves <palves@redhat.com>
11785
11786 * Makefile.in (CHECK_HEADERS): New variable.
11787 (check-headers:): New rule.
11788
11789 2014-01-13 Tom Tromey <tromey@redhat.com>
11790
11791 * cli/cli-setshow.c (do_set_command): Update.
11792 * defs.h (deprecated_set_hook): Remove.
11793 * top.c (deprecated_set_hook): Remove.
11794
11795 2014-01-13 Pedro Alves <palves@redhat.com>
11796
11797 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11798 the tracepoint if the PC is a pseudo-register.
11799
11800 2014-01-13 Tom Tromey <tromey@redhat.com>
11801
11802 * defs.h (XCALLOC): Remove.
11803 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11804 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11805 * dwarf2loc.c (allocate_piece_closure): Likewise.
11806 * elfread.c (elf_symfile_segments): Likewise.
11807 (elf_symfile_segments): Likewise.
11808 * gdbtypes.c (copy_type_recursive): Likewise.
11809 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11810 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11811 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11812 XCALLOC.
11813 * mt-tdep.c (mt_gdbarch_init): Likewise.
11814 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11815 XCALLOC.
11816 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11817 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11818 * registry.c (registry_alloc_data): Likewise.
11819 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11820 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11821 * serial.c (serial_fdopen_ops): Likewise.
11822 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11823 XCALLOC.
11824 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11825 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11826 not XCALLOC.
11827
11828 2014-01-13 Tom Tromey <tromey@redhat.com>
11829
11830 * defs.h (XMALLOC): Remove.
11831 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11832 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11833 * cli-out.c (struct ui_out *): Likewise.
11834 * cli/cli-dump.c (add_dump_command): Likewise.
11835 (add_dump_command): Likewise.
11836 * complaints.c (get_complaints): Likewise.
11837 (find_complaint): Likewise.
11838 * dwarf2-frame.c (execute_cfa_program): Likewise.
11839 * dwarf2read.c (abbrev_table_read_table): Likewise.
11840 * gdbarch.sh: Likewise.
11841 * gdbarch.c: Rebuild.
11842 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11843 * interps.c (interp_new): Likewise.
11844 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11845 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11846 * mi/mi-console.c (mi_console_file_new): Likewise.
11847 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11848 * mi/mi-out.c (mi_out_new): Likewise.
11849 * mi/mi-parse.c (mi_parse): Likewise.
11850 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11851 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11852 * observer.c (xalloc_observer_list_node): Likewise.
11853 * regcache.c (regcache_xmalloc_1): Likewise.
11854 * reggroups.c (reggroup_new): Likewise.
11855 (_initialize_reggroup): Likewise.
11856 * registry.c (register_data_with_cleanup): Likewise.
11857 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11858 * ser-base.c (serial_ttystate): Likewise.
11859 * ser-mingw.c (make_pipe_state): Likewise.
11860 * ser-pipe.c (pipe_open): Likewise.
11861 * serial.c (serial_open): Likewise.
11862 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11863 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11864 (tui_alloc_win_info): Likewise.
11865 (tui_add_content_elements): Likewise.
11866 * tui/tui-file.c (tui_file_new): Likewise.
11867 * tui/tui-out.c (tui_out_new): Likewise.
11868 * ui-file.c (mem_file_new): Likewise.
11869 * ui-out.c (push_level): Likewise.
11870 (make_cleanup_ui_out_end): Likewise.
11871 (append_header_to_list): Likewise.
11872 (ui_out_new): Likewise.
11873 * user-regs.c (user_reg_add_builtin): Likewise.
11874
11875 2014-01-13 Tom Tromey <tromey@redhat.com>
11876
11877 * defs.h (XZALLOC): Remove.
11878 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11879 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11880 (get_ada_tasks_inferior_data): Likewise.
11881 * auto-load.c (get_auto_load_pspace_data): Likewise.
11882 * auxv.c (get_auxv_inferior_data): Likewise.
11883 * bfd-target.c (target_bfd_reopen): Likewise.
11884 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11885 (deprecated_insert_raw_breakpoint): Likewise.
11886 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11887 * corelow.c (core_open): Likewise.
11888 * darwin-nat.c (darwin_check_new_threads): Likewise.
11889 (darwin_attach_pid): Likewise.
11890 * dummy-frame.c (dummy_frame_push): Likewise.
11891 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11892 * dwarf2loc.c (allocate_piece_closure): Likewise.
11893 * elfread.c (elf_symfile_segments): Likewise.
11894 * eval.c (ptrmath_type_p): Likewise.
11895 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11896 * gdbtypes.c (alloc_type_arch): Likewise.
11897 (alloc_type_instance): Likewise.
11898 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11899 * inf-child.c (inf_child_can_use_agent): Likewise.
11900 * inflow.c (get_inflow_inferior_data): Likewise.
11901 * infrun.c (save_infcall_suspend_state): Likewise.
11902 * jit.c (jit_reader_load): Likewise.
11903 (get_jit_objfile_data): Likewise.
11904 (get_jit_program_space_data): Likewise.
11905 (jit_object_open_impl): Likewise.
11906 (jit_symtab_open_impl): Likewise.
11907 (jit_block_open_impl): Likewise.
11908 (jit_frame_sniffer): Likewise.
11909 * linux-fork.c (add_fork): Likewise.
11910 * maint.c (make_command_stats_cleanup): Likewise.
11911 * objfiles.c (get_objfile_pspace_data): Likewise.
11912 * opencl-lang.c (struct lval_closure): Likewise.
11913 * osdata.c (osdata_start_osdata): Likewise.
11914 * progspace.c (new_address_space): Likewise.
11915 (add_program_space): Likewise.
11916 * remote-sim.c (get_sim_inferior_data): Likewise.
11917 * sh-tdep.c (sh_gdbarch_init): Likewise.
11918 * skip.c (Ignore): Likewise.
11919 (skip_delete_command): Likewise.
11920 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11921 (library_list_start_library): Likewise.
11922 (solib_aix_current_sos): Likewise.
11923 * solib-darwin.c (get_darwin_info): Likewise.
11924 (darwin_current_sos): Likewise.
11925 * solib-dsbt.c (get_dsbt_info): Likewise.
11926 * solib-ia64-hpux.c (new_so_list): Likewise.
11927 (ia64_hpux_get_solib_linkage_addr): Likewise.
11928 * solib-spu.c (append_ocl_sos): Likewise.
11929 (spu_current_sos): Likewise.
11930 * solib-svr4.c (get_svr4_info): Likewise.
11931 (svr4_keep_data_in_core): Likewise.
11932 (library_list_start_library): Likewise.
11933 (svr4_default_sos): Likewise.
11934 (svr4_read_so_list): Likewise.
11935 * solib-target.c (library_list_start_library): Likewise.
11936 (solib_target_current_sos): Likewise.
11937 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11938 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11939 * symfile.c (default_symfile_segments): Likewise.
11940 * target-descriptions.c (tdesc_data_init): Likewise.
11941 (tdesc_create_reg): Likewise.
11942 (struct tdesc_type *): Likewise.
11943 (tdesc_create_vector): Likewise.
11944 (tdesc_set_struct_size): Likewise.
11945 (struct tdesc_type *): Likewise.
11946 (tdesc_free_feature): Likewise.
11947 (tdesc_create_feature): Likewise.
11948 * windows-nat.c (windows_add_thread): Likewise.
11949 (windows_make_so): Likewise.
11950 * xml-support.c (gdb_xml_body_text): Likewise.
11951 (gdb_xml_create_parser_and_cleanup): Likewise.
11952 (xml_process_xincludes): Likewise.
11953 * xml-syscall.c (allocate_syscalls_info): Likewise.
11954 (syscall_create_syscall_desc): Likewise.
11955
11956 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11957
11958 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11959 function, with code from i386_stap_parse_special_token.
11960 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11961 (i386_stap_parse_special_token): Move code to the two functions
11962 above; simplify it.
11963
11964 2014-01-09 Pedro Alves <palves@redhat.com>
11965 Hui Zhu <hui@codesourcery.com>
11966
11967 PR gdb/16101
11968 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11969 bp_err_string. Don't mark the location shlib_disabled if the
11970 error thrown wasn't a generic or memory error. Catch errors
11971 thrown while inserting breakpoints in overlayed code. Output
11972 error message of software breakpoints.
11973 * remote.c (remote_insert_breakpoint): If this breakpoint has
11974 target-side commands but this stub doesn't support Z0 packets,
11975 throw NOT_SUPPORTED_ERROR error.
11976 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11977 * target.h (target_insert_breakpoint): Extend comment.
11978 (target_insert_hw_breakpoint): Add comment.
11979
11980 2014-01-08 Pedro Alves <palves@redhat.com>
11981
11982 * remote.c (remote_add_thread): Add threads silently if starting
11983 up.
11984 (remote_notice_new_inferior): If in all-stop, and starting up,
11985 don't call notice_new_inferior.
11986 (get_current_thread): New function, factored out from ...
11987 (add_current_inferior_and_thread): ... this. Adjust.
11988 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11989 found any thread, then select the remote's current thread as GDB's
11990 current thread too.
11991
11992 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11993
11994 * NEWS: Create a new section for the next release branch.
11995 Rename the section of the current branch, now that it has
11996 been cut.
11997
11998 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11999
12000 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12001 * version.in: Bump version to 7.7.50.DATE-cvs.
12002
12003 2014-01-08 Yao Qi <yao@codesourcery.com>
12004
12005 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12006 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12007 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12008
12009 2014-01-08 Yao Qi <yao@codesourcery.com>
12010
12011 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12012 return value of bfd_get_filename to symbol_file_add_from_bfd.
12013
12014 2014-01-08 Pierre Muller <muller@sourceware.org>
12015
12016 Fix PR16201.
12017 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12018 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12019 to prim_record_mininal_symbol_and_info.
12020 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12021 in call to prim_record_minimal_symbol_and_info.
12022 (read_pe_exported_syms): Set index field of section_data.
12023
12024 2014-01-07 Andrew Pinski <apinski@cavium.com>
12025
12026 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12027 * features/aarch64.c: Regenerate.
12028
12029 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12030
12031 * target.c (return_null): Define.
12032 (update_current_target): Use it instead of return_zero for
12033 functions that return a pointer.
12034
12035 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12036
12037 * source.c (add_path): Fix check for duplicated paths in the previously
12038 included paths.
12039
12040 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12041
12042 * ada-lang.c: Remove duplicated include statements.
12043 * alphabsd-nat.c: Ditto.
12044 * amd64-darwin-tdep.c: Ditto.
12045 * amd64fbsd-nat.c: Ditto.
12046 * auto-load.c: Ditto.
12047 * ax-gdb.c: Ditto.
12048 * breakpoint.c: Ditto.
12049 * dbxread.c: Ditto.
12050 * fork-child.c: Ditto.
12051 * gdb_usleep.c: Ditto.
12052 * i386-darwin-tdep.c: Ditto.
12053 * i386fbsd-nat.c: Ditto.
12054 * infcmd.c: Ditto.
12055 * inferior.c: Ditto.
12056 * jv-lang.c: Ditto.
12057 * linux-nat.c: Ditto.
12058 * linux-tdep.c: Ditto.
12059 * m68kbsd-nat.c: Ditto.
12060 * m68klinux-nat.c: Ditto.
12061 * microblaze-tdep.c: Ditto.
12062 * mips-linux-tdep.c: Ditto.
12063 * mn10300-tdep.c: Ditto.
12064 * nto-tdep.c: Ditto.
12065 * opencl-lang.c: Ditto.
12066 * osdata.c: Ditto.
12067 * printcmd.c: Ditto.
12068 * regcache.c: Ditto.
12069 * remote-m32r-sdi.c: Ditto.
12070 * remote.c: Ditto.
12071 * symfile.c: Ditto.
12072 * symtab.c: Ditto.
12073 * tilegx-linux-nat.c: Ditto.
12074 * tilegx-tdep.c: Ditto.
12075 * tracepoint.c: Ditto.
12076 * valops.c: Ditto.
12077 * vaxbsd-nat.c: Ditto.
12078 * windows-nat.c: Ditto.
12079 * xtensa-tdep.c: Ditto.
12080
12081 2014-01-07 Yao Qi <yao@codesourcery.com>
12082
12083 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12084
12085 2014-01-07 Yao Qi <yao@codesourcery.com>
12086 Joel Brobecker <brobecker@adacore.com>
12087
12088 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12089 (pdc_write_regs): Likewise.
12090 (fetch_regs_kernel_thread): Likewise.
12091 (store_regs_kernel_thread): Likewise.
12092
12093 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12094
12095 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12096 tagged type objects to their actual type.
12097
12098 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12099
12100 * ada-valprint.c (print_field_values): Add "language" parameter.
12101 Update calls to print_field_values and print_variant_part.
12102 Pass new parameter "language" in call to val_print instead
12103 of "current_language". Replace call to ada_val_print by call
12104 to val_print.
12105 (print_variant_part): Add "language" parameter.
12106 (ada_val_print_struct_union): Update call to print_field_values.
12107
12108 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12109
12110 * ada-valprint.c (ui_memcpy): Delete.
12111 (ada_print_floating): Update documentation. Add empty line
12112 between between function documentation and implementation.
12113 Delete variable "buffer". Use ui_file_xstrdup in place of
12114 ui_file_put. Minor adjustments following this change.
12115
12116 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12117
12118 * ada-valprint.c (ada_val_print_string): New function,
12119 extracted from ada_val_print_array.
12120 (ada_val_print_array): Replace extracted code by call
12121 to ada_val_print_string followed by a return. Move
12122 "else" branch to the function's top block.
12123
12124 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12125
12126 * ada-valprint.c (ada_val_print_array): Move implementation
12127 down. Rename parameter "offset" and "val" into "offset_aligned"
12128 and "original_value" respectively. Add parameter "offset".
12129
12130 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12131
12132 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12133 re-organizing the code. Change the "???" message printed
12134 when target type is a TYPE_CODE_UNDEF into
12135 "<ref to undefined type>".
12136
12137 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12138
12139 * ada-valprint.c (print_record): Delete, implementation inlined...
12140 (ada_val_print_struct_union): ... here. Remove call to
12141 ada_check_typedef in inlined implementation.
12142
12143 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12144
12145 * ada-valprint.c (ada_val_print_gnat_array): New function,
12146 extracted from ada_val_print_1;
12147 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12148 (ada_val_print_flt, ada_val_print_struct_union)
12149 (ada_val_print_ref): Likewise.
12150 (ada_val_print_1): Delete variables i and elttype.
12151 Replace extracted-out code by call to corresponding
12152 new functions.
12153
12154 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12155
12156 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12157
12158 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12159
12160 * ada-valprint.c (ada_val_print_1): Replace calls to
12161 ada_val_print_1 by calls to val_print.
12162
12163 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12164
12165 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12166 Update calls to self accordingly. Replace calls to c_val_print
12167 by calls to val_print.
12168
12169 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12170
12171 * ada-valprint.c (print_record): Delete declaration.
12172 (adjust_type_signedness, ada_val_print_1): Likewise.
12173 (ada_val_print): Move function implementation down.
12174 (print_variant_part, print_field_values, print_record):
12175 Move function implementation up.
12176
12177 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12178
12179 * python/py-type.c (typy_get_name): New function.
12180 (type_object_getset): Add entry for attribute "name".
12181 * NEWS: Add entry mentioning this new attribute.
12182
12183 2014-01-07 Yao Qi <yao@codesourcery.com>
12184
12185 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12186 statement.
12187
12188 2014-01-07 Yao Qi <yao@codesourcery.com>
12189
12190 * gnu-nat.c (info_port_rights): Add qualifier const to
12191 argument args.
12192
12193 2014-01-07 Yao Qi <yao@codesourcery.com>
12194
12195 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12196
12197 2014-01-07 Yao Qi <yao@codesourcery.com>
12198
12199 * gnu-nat.c (make_inf) Update declaration.
12200 (make_inf): Make it static.
12201 (inf_set_traced): Likewise.
12202 (inf_port_to_thread, inf_task_died_status): Likewise.
12203
12204 2014-01-07 Yao Qi <yao@codesourcery.com>
12205
12206 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12207
12208 2014-01-07 Yao Qi <yao@codesourcery.com>
12209
12210 * gnu-nat.c (_initialize_gnu_nat): Declare.
12211
12212 2014-01-07 Yao Qi <yao@codesourcery.com>
12213
12214 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12215 'enum bfd_endian'.
12216 (struct gdbarch_info) <byte_order>: Change type to
12217 'enum bfd_endian'.
12218 <byte_order_for_code>: Likewise.
12219 * gdbarch.c, gdbarch.h: Regenerated.
12220
12221 2014-01-06 Sasha Smundak <asmundak@google.com>
12222
12223 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12224
12225 2014-01-06 Tom Tromey <tromey@redhat.com>
12226
12227 * doublest.c (convert_doublest_to_floatformat): Use const, not
12228 CONST.
12229 * somread.c (som_symtab_read): Likewise.
12230
12231 2014-01-07 Hui Zhu <hui@codesourcery.com>
12232
12233 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12234 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12235 (gdb_bfd_fopen): Ditto.
12236 (gdb_bfd_openr): Ditto.
12237 (gdb_bfd_openw): Ditto.
12238 (gdb_bfd_openr_iovec): Ditto.
12239 (gdb_bfd_fdopenr): Ditto.
12240 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12241 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12242 with xstrdup.
12243 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12244 with xstrdup.
12245 * symfile-mem.c (symbol_file_add_from_memory): Removed
12246 gdb_bfd_stash_filename.
12247
12248 2014-01-03 Doug Evans <dje@google.com>
12249
12250 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12251 output.
12252
12253 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12254
12255 Update year range in copyright notice of all files.
12256
12257 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12258
12259 * top.c (print_gdb_version): Set copyright year to 2014.
12260
12261 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12262
12263 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12264
12265 For older changes see ChangeLog-2013.
12266 \f
12267 Local Variables:
12268 mode: change-log
12269 left-margin: 8
12270 fill-column: 74
12271 version-control: never
12272 coding: utf-8
12273 End: