gdb: Fix aarch64 native build issue caused by use of LONGEST
[binutils-gdb.git] / gdb / ChangeLog
1 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2
3 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4 unsigned LONGEST to ULONGEST.
5
6 2014-08-20 Pedro Alves <palves@redhat.com>
7
8 * Makefile.in (check-read1): New rule.
9
10 2014-08-20 Joel Brobecker <brobecker@adacore.com>
11
12 * value.c (value_from_contents_and_address): Strip resolved_type's
13 typedef layers before checking its TYPE_DATA_LOCATION.
14
15 2014-08-20 Pedro Alves <palves@redhat.com>
16
17 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
18
19 2014-08-20 Yao Qi <yao@codesourcery.com>
20
21 * amd64-tdep.c (amd64_classify): Add a blank line after the
22 example. Move "*/" to a new line.
23 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
24 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
25 * dwarf2read.c (psymtab_include_file_name): Likewise.
26
27 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
28 Pedro Alves <palves@redhat.com>
29
30 PR symtab/14604
31 PR symtab/14605
32 * ada-lang.c (coerce_unspec_val_to_type): Use
33 value_contents_copy_raw.
34 * ada-valprint.c (val_print_packed_array_elements): Adjust.
35 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
36 * cp-valprint.c (cp_print_value_fields): Let the common printing
37 code handle optimized out values.
38 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
39 * d-valprint.c (dynamic_array_type): Use
40 value_bits_any_optimized_out.
41 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
42 check_any_valid fields.
43 (check_pieced_value_bits): Delete and inline ...
44 (check_pieced_synthetic_pointer): ... here.
45 (check_pieced_value_validity): Delete.
46 (check_pieced_value_invalid): Delete.
47 (pieced_value_funcs): Remove check_validity and check_any_valid
48 fields.
49 (read_pieced_value): Use mark_value_bits_optimized_out.
50 (write_pieced_value): Switch to use
51 mark_value_bytes_optimized_out.
52 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
53 of assuming the whole value is optimized out.
54 * findvar.c (read_frame_register_value): Remove special handling
55 of optimized out registers.
56 (value_from_register): Use mark_value_bytes_optimized_out.
57 * frame-unwind.c (frame_unwind_got_optimized): Use
58 mark_value_bytes_optimized_out.
59 * jv-valprint.c (java_value_print): Adjust.
60 (java_print_value_fields): Let the common printing code handle
61 optimized out values.
62 * mips-tdep.c (mips_print_register): Remove special handling of
63 optimized out registers.
64 * opencl-lang.c (lval_func_check_validity): Delete.
65 (lval_func_check_any_valid): Delete.
66 (opencl_value_funcs): Remove check_validity and check_any_valid
67 fields.
68 * p-valprint.c (pascal_object_print_value_fields): Let the common
69 printing code handle optimized out values.
70 * stack.c (read_frame_arg): Remove special handling of optimized
71 out values. Fetch both VAL and ENTRYVAL before comparing
72 contents. Adjust to value_available_contents_eq rename.
73 * valprint.c (valprint_check_validity)
74 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
75 (val_print_array_elements): Adjust.
76 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
77 (value_bits_any_optimized_out): New function.
78 (value_entirely_covered_by_range_vector): New function, factored
79 out from value_entirely_unavailable.
80 (value_entirely_unavailable): Reimplement.
81 (value_entirely_optimized_out): New function.
82 (insert_into_bit_range_vector): New function, factored out from
83 mark_value_bits_unavailable.
84 (mark_value_bits_unavailable): Reimplement.
85 (struct ranges_and_idx): New struct.
86 (find_first_range_overlap_and_match): New function, factored out
87 from value_available_contents_bits_eq.
88 (value_available_contents_bits_eq): Rename to ...
89 (value_contents_bits_eq): ... this. Check both unavailable
90 contents and optimized out contents.
91 (value_available_contents_eq): Rename to ...
92 (value_contents_eq): ... this.
93 (allocate_value_lazy): Remove reference to the old optimized_out
94 boolean.
95 (allocate_optimized_out_value): Use
96 mark_value_bytes_optimized_out.
97 (require_not_optimized_out): Adjust to check whether the
98 optimized_out vec is empty.
99 (ranges_copy_adjusted): New function, factored out from
100 value_contents_copy_raw.
101 (value_contents_copy_raw): Also copy the optimized out ranges.
102 Assert the destination ranges aren't optimized out.
103 (value_contents_copy): Update comment, remove call to
104 require_not_optimized_out.
105 (value_contents_equal): Adjust to check whether the optimized_out
106 vec is empty.
107 (set_value_optimized_out, value_optimized_out_const): Delete.
108 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
109 New functions.
110 (value_entirely_optimized_out, value_bits_valid): Delete.
111 (value_copy): Take a VEC copy of the 'optimized_out' field.
112 (value_primitive_field): Remove special handling of optimized out.
113 (value_fetch_lazy): Assert that lazy values have no unavailable
114 regions. Use value_bits_any_optimized_out. Remove some special
115 handling for optimized out values.
116 * value.h: Add intro comment about <optimized out> and
117 <unavailable>.
118 (struct lval_funcs): Remove check_validity and check_any_valid
119 fields.
120 (set_value_optimized_out, value_optimized_out_const): Remove.
121 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
122 New declarations.
123 (value_bits_any_optimized_out): New declaration.
124 (value_bits_valid): Delete declaration.
125 (value_available_contents_eq): Rename to ...
126 (value_contents_eq): ... this, and extend comments.
127
128 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
129
130 Fix -fsanitize=address on unreadable inferior strings.
131 * valprint.c (val_print_string): Fix access before BUFFER.
132
133 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
134
135 * target.c (target_struct_size): Remove.
136 (target_struct_allocsize): Remove.
137 (DEFAULT_ALLOCSIZE): Remove.
138 (target_ops_p): New typedef.
139 (DEF_VEC_P (target_ops_p)): New vector type.
140 (target_structs): Change type to VEC (target_ops_p).
141 (add_target_with_completer): Replace "push" code by VEC_safe_push.
142 (find_default_run_target): Rewrite for loop following changes to
143 target_structs.
144
145 2014-08-19 Joel Brobecker <brobecker@adacore.com>
146
147 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
148 Adjust code accordingly. Adjust function description comment.
149
150 2014-08-19 Yao Qi <yao@codesourcery.com>
151
152 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
153 types.
154
155 2014-08-19 Alan Modra <amodra@gmail.com>
156
157 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
158 * config.in: Regenerate.
159 * configure: Regenerate.
160
161 2014-08-19 Tom Tromey <tromey@redhat.com>
162 Gary Benson <gbenson@redhat.com>
163
164 * common/common-debug.h: New file.
165 * common/common-debug.c: Likewise.
166 * debug.c: Likewise.
167 * Makefile.in (SFILES): Add common/common-debug.c.
168 (HFILES_NO_SRCDIR): Add common/common-debug.h.
169 (COMMON_OBS): Add common-debug.o and debug.o.
170 (common-debug.o): New rule.
171 * common/common-defs.h: Include common-debug.h.
172 * common/agent.c (debug_agent_printf): New function.
173 (DEBUG_AGENT): Redefine.
174 * nat/i386-dregs.c (debug_printf): Undefine.
175
176 2014-08-19 Gary Benson <gbenson@redhat.com>
177
178 * common/common-defs.h: Include print-utils.h.
179 * utils.h: Do not include print-utils.h.
180
181 2014-08-19 Tom Tromey <tromey@redhat.com>
182 Gary Benson <gbenson@redhat.com>
183
184 * common/common-types.h: New file.
185 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
186 * common/common-defs.h: Include common-types.h.
187 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
188 (ULONGEST): Remove.
189
190 2014-08-19 Tom Tromey <tromey@redhat.com>
191 Gary Benson <gbenson@redhat.com>
192
193 * common/errors.h: New file.
194 * common/errors.c: Likewise.
195 * Makefile.in (SFILES): Add common/errors.c.
196 (HFILES_NO_SRCDIR): Add common/errors.h.
197 (COMMON_OBS): Add errors.o.
198 (errors.o): New rule.
199 * common/common-defs.h: Include errors.h.
200 * utils.h (perror_with_name, error, verror, warning, vwarning):
201 Don't declare.
202 * common/common-utils.h: (malloc_failure, internal_error):
203 Likewise.
204
205 2014-08-19 Gary Benson <gbenson@redhat.com>
206
207 * utils.c (internal_vproblem): Always print the message.
208
209 2014-08-18 Doug Evans <dje@google.com>
210
211 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
212
213 2014-08-18 Joel Brobecker <brobecker@adacore.com>
214
215 * ada-typeprint.c (type_is_full_subrange_of_target_type):
216 Return 0 if TYPE is dynamic.
217 (print_range): Add handling of dynamic ranges.
218
219 2014-08-18 Keven Boell <keven.boell@intel.com>
220 Joel Brobecker <brobecker@adacore.com>
221
222 * gdbtypes.h (struct main_type): Add field "data_location".
223 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
224 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
225 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
226 a dynamic data location.
227 (resolve_dynamic_type): Add DW_AT_data_location handling.
228 (copy_recursive, copy_type): Copy the data_location information
229 when present.
230 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
231 * value.c (value_from_contents_and_address): Add
232 DW_AT_data_location handling.
233
234 2014-08-18 Keven Boell <keven.boell@intel.com>
235 Joel Brobecker <brobecker@adacore.com>
236
237 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
238 field "get_object_address".
239 * dwarf2expr.c (execute_stack_op): Add handling for
240 DW_OP_push_object_address.
241 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
242 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
243 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
244 (dwarf_expr_get_obj_addr): New function.
245 (dwarf_expr_ctx_funcs): Add get_object_address field.
246 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
247 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
248 (dwarf2_evaluate_property): Add parameter "address". Use it.
249 (needs_get_obj_addr): New function.
250 (needs_frame_ctx_funcs): Add get_object_address field.
251 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
252 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
253 (resolve_dynamic_array): Likewise.
254
255 2014-08-18 Joel Brobecker <brobecker@adacore.com>
256
257 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
258 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
259 fixed value for records and unions for which some GNAT encodings
260 are present.
261
262 2014-08-18 Joel Brobecker <brobecker@adacore.com>
263
264 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
265 rewrite to avoid "else if" and "else" constructs. Should be
266 a no-op in practice.
267
268 2014-08-18 Joel Brobecker <brobecker@adacore.com>
269
270 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
271 of lexical block.
272
273 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
274
275 PR c++/17132
276 * eval.c: Update all calls to find_overload_match.
277 * valarith.c: Likewise.
278 (value_user_defined_cpp_op, value_user_defined_op): New
279 argument NOSIDE. Update all callers.
280 * valops.c (find_overload_match): New argument NOSIDE.
281 * value.h (find_overload_match): Update signature.
282
283 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
284
285 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
286 'items' methods instead of 'iteritems' method on dictionaries.
287
288 2014-08-15 Doug Evans <dje@google.com>
289
290 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
291 closer to use.
292
293 2014-08-15 Doug Evans <dje@google.com>
294
295 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
296
297 2014-08-15 Doug Evans <dje@google.com>
298
299 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
300
301 2014-08-15 Doug Evans <dje@google.com>
302
303 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
304 unused.
305
306 2014-08-15 Eli Zaretskii <eliz@gnu.org>
307
308 * dcache.h: Include target.h, to avoid compile time warnings.
309
310 2014-08-15 Joel Brobecker <brobecker@adacore.com>
311
312 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
313 frame_info" partial declaration.
314 * gdbarch.h: Regenerate.
315
316 2014-08-15 Yao Qi <yao@codesourcery.com>
317
318 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
319 Add parameter 'decode_for_pst_p'. Callers update.
320
321 2014-08-13 Yao Qi <yao@codesourcery.com>
322
323 PR build/17104
324 * configure.ac: Use local variable 'pos'.
325 * configure: Regenerated.
326
327 2014-08-11 Doug Evans <dje@google.com>
328
329 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
330 message, it is redundant with "Reading symbols from ..." message.
331
332 2014-08-10 Doug Evans <xdje42@gmail.com>
333
334 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
335
336 2014-08-09 Yao Qi <yao@codesourcery.com>
337
338 PR remote/9053
339 * remote.c (remote_xfer_partial): Remove dead code.
340
341 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
342
343 * ia64-linux-tdep.c: Include "regset.h".
344 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
345 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
346 (ia64_linux_supply_fpregset): New function.
347 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
348 (ia64_linux_regset_from_core_section): New function.
349 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
350 method.
351
352 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
353
354 * m68klinux-tdep.c: Include "regset.h".
355 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
356 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
357 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
358 (m68k_linux_regset_from_core_section): New function.
359 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
360 method.
361
362 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
363
364 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
365 function. Move logic to...
366 (tilegx_linux_regmap): ... this new register map.
367 (tilegx_linux_regset): Refer to register map, replace supply
368 method by regcache_supply_regset, and add collect method.
369 * tilegx-tdep.h (enum tilegx_regnum): New enum value
370 TILEGX_FIRST_EASY_REGNUM.
371
372 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
373
374 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
375 that calls regcache_supply_regset and handles the EPC register
376 separately. Move main logic to...
377 (score7_linux_gregmap): ... this new register map.
378 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
379 (score7_linux_gregset): Refer to register map. Add collect method.
380 (score7_linux_regset_from_core_section): Replace
381 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
382 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
383 (struct regset): Delete unused forward declaraction.
384 (struct pt_regs): Delete structure definition.
385 (elf_gregset_t): Delete typedef.
386
387 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
388
389 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
390 (nios2_core_regset): Add collect method.
391
392 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
393
394 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
395 platform-independent and don't write to read-only input buffer.
396 (m32r_linux_collect_gregset): New function.
397 (m32r_linux_gregset): Add collect method.
398
399 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
400
401 * hppa-linux-tdep.c (greg_map): Rename to...
402 (hppa_linux_gregmap): ... this. Also convert to
403 regcache_map_entry format.
404 (hppa_linux_supply_regset): Delete function.
405 (hppa_linux_supply_fpregset): Delete function. Move logic to...
406 (hppa_linux_fpregmap): ... this new register map.
407 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
408 register map, replace supply method by regcache_supply_regset, and
409 add collect method regcache_collect_regset.
410
411 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
412
413 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
414 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
415 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
416 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
417 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
418 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
419 (frv_linux_supply_gregset): Replace main logic by call to
420 regcache_supply_regset, but keep clearing gr32-gr63.
421 (frv_linux_supply_fpregset): Delete function.
422 (frv_linux_gregset): Refer to appropriate register map and add
423 regcache_collect_regset as the collect method.
424 (frv_linux_fpregset): Likewise. Also exchange the supply method
425 by regcache_supply_regset.
426
427 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
428
429 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
430 by call to alpha_supply_int_regs.
431 (alpha_linux_collect_gregset): New function.
432 (alpha_linux_supply_fpregset): Replace logic by call to
433 alpha_supply_fp_regs.
434 (alpha_linux_collect_fpregset): New function.
435 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
436
437 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
438
439 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
440 by call to regcache_collect_regset.
441 (supply_gregset, supply_fpregset): Call regcache_supply_regset
442 instead of aarch64_linux_supply_gregset/_fpregset.
443 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
444 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
445 header file instead.
446 (aarch64_linux_supply_gregset, supply_gregset_from_core)
447 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
448 functions. Move logic to ...
449 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
450 register maps.
451 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
452 refer to new register maps, replace *_regset_from_core by
453 regcache_supply_regset, and also use regcache_collect_regset.
454 * aarch64-linux-tdep.h: Include "regset.h".
455 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
456 Delete prototypes.
457 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
458 macros, moved from C source file.
459 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
460 variable declarations.
461
462 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
463
464 * s390-linux-nat.c: Include "regset.h".
465 (regmap_gregset): Delete macro.
466 (s390_64_regmap_gregset): New register map for
467 regcache_supply/_collect_regset.
468 (s390_64_gregset): New regset.
469 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
470 (regmap_fpregset): Delete macro.
471 (s390_native_supply, s390_native_collect): Delete functions.
472 (supply_gregset, fill_gregset): Replace s390-specific regmap
473 handling by a call to regcache_supply/_collect_regset.
474 (supply_fpregset, fill_fpregset): Call regcache_supply/
475 _collect_regset instead of s390_native_supply/_collect.
476 (fetch_regset, store_regset): Likewise. Also change the last
477 parameter to a regset instead of a regmap.
478 (s390_linux_fetch_inferior_registers)
479 (390_linux_store_inferior_registers): Adjust last parameter in
480 calls to fetch_regset and store_regset.
481 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
482 (s390_gregmap): ... this. Also make static const and convert to
483 regcache_map_entry format.
484 (s390x_regmap_gregset): Delete.
485 (s390_regmap_fpregset): Rename to...
486 (s390_fpregmap): ... this. Make static const and convert to
487 regcache_map_entry format.
488 (s390_regmap_upper, s390_regmap_last_break)
489 (s390x_regmap_last_break, s390_regmap_system_call)
490 (s390_regmap_tdb): Likewise.
491 (s390_supply_regset, s390_collect_regset): Remove functions.
492 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
493 s390_supply_regset.
494 (s390_gregset, s390_fpregset, s390_upper_regset)
495 (s390_last_break_regset, s390x_last_break_regset)
496 (s390_system_call_regset, s390_tdb_regset): Make global and
497 replace s390_supply/_collect_regset by regcache_supply/
498 _collect_regset.
499 (s390x_gregset): Delete.
500 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
501 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
502 (s390_regmap_fpregset, s390_regmap_last_break)
503 (s390x_regmap_last_break, s390_regmap_system_call)
504 (s390_regmap_tdb): Delete global variable declarations.
505 (s390_gregset, s390_fpregset, s390_last_break_regset)
506 (s390x_last_break_regset, s390_system_call_regset)
507 (s390_tdb_regset): New global variable declarations.
508
509 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
510
511 * regcache.c: Include "regset.h".
512 (regcache_transfer_regset): New local function.
513 (regcache_supply_regset, regcache_collect_regset): New functions.
514 * regcache.h (struct regcache_map_entry): New structure.
515 (REGCACHE_MAP_SKIP): New enum value.
516 (regcache_supply_regset, regcache_collect_regset): New prototypes.
517
518 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
519
520 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
521 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
522 (ppc_linux_collect_gregset ): Likewise.
523 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
524 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
525 (ppc_collect_vrregset): Likewise.
526 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
527 Likewise.
528
529 2014-08-07 Yao Qi <yao@codesourcery.com>
530
531 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
532 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
533 * remote.c (remote_read_bytes): Likewise.
534
535 2014-08-07 Yao Qi <yao@codesourcery.com>
536
537 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
538
539 2014-08-07 Yao Qi <yao@codesourcery.com>
540
541 PR remote/17230
542 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
543 TARGET_XFER_OK instead of 0.
544
545 2014-08-07 Gary Benson <gbenson@redhat.com>
546
547 * common/common-defs.h: Include errno.h.
548 * defs.h: Do not include errno.h.
549 * ada-typeprint.c: Likewise.
550 * c-typeprint.c: Likewise.
551 * core-regset.c: Likewise.
552 * corefile.c: Likewise.
553 * corelow.c: Likewise.
554 * event-loop.c: Likewise.
555 * f-typeprint.c: Likewise.
556 * gnu-nat.c: Likewise.
557 * go32-nat.c: Likewise.
558 * i386gnu-nat.c: Likewise.
559 * m2-typeprint.c: Likewise.
560 * nat/linux-btrace.c: Likewise.
561 * p-typeprint.c: Likewise.
562 * procfs.c: Likewise.
563 * remote-sim.c: Likewise.
564 * rs6000-nat.c: Likewise.
565 * target.c: Likewise.
566 * typeprint.c: Likewise.
567 * ui-file.c: Likewise.
568 * valops.c: Likewise.
569 * valprint.c: Likewise.
570
571 2014-08-07 Gary Benson <gbenson@redhat.com>
572
573 * common/common-defs.h: Include string.h.
574 * aarch64-tdep.c: Do not include string.h.
575 * ada-exp.y: Likewise.
576 * ada-lang.c: Likewise.
577 * ada-lex.l: Likewise.
578 * ada-typeprint.c: Likewise.
579 * ada-valprint.c: Likewise.
580 * aix-thread.c: Likewise.
581 * alpha-linux-tdep.c: Likewise.
582 * alpha-mdebug-tdep.c: Likewise.
583 * alpha-nat.c: Likewise.
584 * alpha-osf1-tdep.c: Likewise.
585 * alpha-tdep.c: Likewise.
586 * alphanbsd-tdep.c: Likewise.
587 * amd64-dicos-tdep.c: Likewise.
588 * amd64-linux-tdep.c: Likewise.
589 * amd64-nat.c: Likewise.
590 * amd64-sol2-tdep.c: Likewise.
591 * amd64fbsd-tdep.c: Likewise.
592 * amd64obsd-tdep.c: Likewise.
593 * arch-utils.c: Likewise.
594 * arm-linux-nat.c: Likewise.
595 * arm-linux-tdep.c: Likewise.
596 * arm-tdep.c: Likewise.
597 * arm-wince-tdep.c: Likewise.
598 * armbsd-tdep.c: Likewise.
599 * armnbsd-nat.c: Likewise.
600 * armnbsd-tdep.c: Likewise.
601 * armobsd-tdep.c: Likewise.
602 * avr-tdep.c: Likewise.
603 * ax-gdb.c: Likewise.
604 * ax-general.c: Likewise.
605 * bcache.c: Likewise.
606 * bfin-tdep.c: Likewise.
607 * breakpoint.c: Likewise.
608 * build-id.c: Likewise.
609 * buildsym.c: Likewise.
610 * c-exp.y: Likewise.
611 * c-lang.c: Likewise.
612 * c-typeprint.c: Likewise.
613 * c-valprint.c: Likewise.
614 * charset.c: Likewise.
615 * cli-out.c: Likewise.
616 * cli/cli-cmds.c: Likewise.
617 * cli/cli-decode.c: Likewise.
618 * cli/cli-dump.c: Likewise.
619 * cli/cli-interp.c: Likewise.
620 * cli/cli-logging.c: Likewise.
621 * cli/cli-script.c: Likewise.
622 * cli/cli-setshow.c: Likewise.
623 * cli/cli-utils.c: Likewise.
624 * coffread.c: Likewise.
625 * common/agent.c: Likewise.
626 * common/buffer.c: Likewise.
627 * common/buffer.h: Likewise.
628 * common/common-utils.c: Likewise.
629 * common/filestuff.c: Likewise.
630 * common/filestuff.c: Likewise.
631 * common/format.c: Likewise.
632 * common/print-utils.c: Likewise.
633 * common/rsp-low.c: Likewise.
634 * common/signals.c: Likewise.
635 * common/vec.h: Likewise.
636 * common/xml-utils.c: Likewise.
637 * core-regset.c: Likewise.
638 * corefile.c: Likewise.
639 * corelow.c: Likewise.
640 * cp-abi.c: Likewise.
641 * cp-name-parser.y: Likewise.
642 * cp-support.c: Likewise.
643 * cp-valprint.c: Likewise.
644 * cris-tdep.c: Likewise.
645 * d-exp.y: Likewise.
646 * darwin-nat.c: Likewise.
647 * dbxread.c: Likewise.
648 * dcache.c: Likewise.
649 * demangle.c: Likewise.
650 * dicos-tdep.c: Likewise.
651 * disasm.c: Likewise.
652 * doublest.c: Likewise.
653 * dsrec.c: Likewise.
654 * dummy-frame.c: Likewise.
655 * dwarf2-frame.c: Likewise.
656 * dwarf2loc.c: Likewise.
657 * dwarf2read.c: Likewise.
658 * elfread.c: Likewise.
659 * environ.c: Likewise.
660 * eval.c: Likewise.
661 * event-loop.c: Likewise.
662 * exceptions.c: Likewise.
663 * exec.c: Likewise.
664 * expprint.c: Likewise.
665 * f-exp.y: Likewise.
666 * f-lang.c: Likewise.
667 * f-typeprint.c: Likewise.
668 * f-valprint.c: Likewise.
669 * fbsd-nat.c: Likewise.
670 * findcmd.c: Likewise.
671 * findvar.c: Likewise.
672 * fork-child.c: Likewise.
673 * frame.c: Likewise.
674 * frv-linux-tdep.c: Likewise.
675 * frv-tdep.c: Likewise.
676 * gdb.c: Likewise.
677 * gdb_bfd.c: Likewise.
678 * gdbarch.c: Likewise.
679 * gdbarch.sh: Likewise.
680 * gdbtypes.c: Likewise.
681 * gnu-nat.c: Likewise.
682 * gnu-v2-abi.c: Likewise.
683 * gnu-v3-abi.c: Likewise.
684 * go-exp.y: Likewise.
685 * go-lang.c: Likewise.
686 * go32-nat.c: Likewise.
687 * guile/guile.c: Likewise.
688 * guile/scm-auto-load.c: Likewise.
689 * hppa-hpux-tdep.c: Likewise.
690 * hppa-linux-nat.c: Likewise.
691 * hppanbsd-tdep.c: Likewise.
692 * hppaobsd-tdep.c: Likewise.
693 * i386-cygwin-tdep.c: Likewise.
694 * i386-dicos-tdep.c: Likewise.
695 * i386-linux-tdep.c: Likewise.
696 * i386-nto-tdep.c: Likewise.
697 * i386-sol2-tdep.c: Likewise.
698 * i386-tdep.c: Likewise.
699 * i386bsd-tdep.c: Likewise.
700 * i386gnu-nat.c: Likewise.
701 * i386nbsd-tdep.c: Likewise.
702 * i386obsd-tdep.c: Likewise.
703 * i387-tdep.c: Likewise.
704 * ia64-libunwind-tdep.c: Likewise.
705 * ia64-linux-nat.c: Likewise.
706 * inf-child.c: Likewise.
707 * inf-ptrace.c: Likewise.
708 * inf-ttrace.c: Likewise.
709 * infcall.c: Likewise.
710 * infcmd.c: Likewise.
711 * inflow.c: Likewise.
712 * infrun.c: Likewise.
713 * interps.c: Likewise.
714 * iq2000-tdep.c: Likewise.
715 * irix5-nat.c: Likewise.
716 * jv-exp.y: Likewise.
717 * jv-lang.c: Likewise.
718 * jv-typeprint.c: Likewise.
719 * jv-valprint.c: Likewise.
720 * language.c: Likewise.
721 * linux-fork.c: Likewise.
722 * linux-nat.c: Likewise.
723 * lm32-tdep.c: Likewise.
724 * m2-exp.y: Likewise.
725 * m2-typeprint.c: Likewise.
726 * m32c-tdep.c: Likewise.
727 * m32r-linux-nat.c: Likewise.
728 * m32r-linux-tdep.c: Likewise.
729 * m32r-rom.c: Likewise.
730 * m32r-tdep.c: Likewise.
731 * m68hc11-tdep.c: Likewise.
732 * m68k-tdep.c: Likewise.
733 * m68kbsd-tdep.c: Likewise.
734 * m68klinux-nat.c: Likewise.
735 * m68klinux-tdep.c: Likewise.
736 * m88k-tdep.c: Likewise.
737 * machoread.c: Likewise.
738 * macrocmd.c: Likewise.
739 * main.c: Likewise.
740 * mdebugread.c: Likewise.
741 * mem-break.c: Likewise.
742 * memattr.c: Likewise.
743 * memory-map.c: Likewise.
744 * mep-tdep.c: Likewise.
745 * mi/mi-cmd-break.c: Likewise.
746 * mi/mi-cmd-disas.c: Likewise.
747 * mi/mi-cmd-env.c: Likewise.
748 * mi/mi-cmd-stack.c: Likewise.
749 * mi/mi-cmd-var.c: Likewise.
750 * mi/mi-cmds.c: Likewise.
751 * mi/mi-console.c: Likewise.
752 * mi/mi-getopt.c: Likewise.
753 * mi/mi-interp.c: Likewise.
754 * mi/mi-main.c: Likewise.
755 * mi/mi-parse.c: Likewise.
756 * microblaze-rom.c: Likewise.
757 * microblaze-tdep.c: Likewise.
758 * mingw-hdep.c: Likewise.
759 * minidebug.c: Likewise.
760 * minsyms.c: Likewise.
761 * mips-irix-tdep.c: Likewise.
762 * mips-linux-tdep.c: Likewise.
763 * mips-tdep.c: Likewise.
764 * mips64obsd-tdep.c: Likewise.
765 * mipsnbsd-tdep.c: Likewise.
766 * mipsread.c: Likewise.
767 * mn10300-linux-tdep.c: Likewise.
768 * mn10300-tdep.c: Likewise.
769 * monitor.c: Likewise.
770 * moxie-tdep.c: Likewise.
771 * mt-tdep.c: Likewise.
772 * nat/linux-btrace.c: Likewise.
773 * nat/linux-osdata.c: Likewise.
774 * nat/linux-procfs.c: Likewise.
775 * nat/linux-ptrace.c: Likewise.
776 * nat/linux-waitpid.c: Likewise.
777 * nbsd-tdep.c: Likewise.
778 * nios2-linux-tdep.c: Likewise.
779 * nto-procfs.c: Likewise.
780 * nto-tdep.c: Likewise.
781 * objc-lang.c: Likewise.
782 * objfiles.c: Likewise.
783 * opencl-lang.c: Likewise.
784 * osabi.c: Likewise.
785 * osdata.c: Likewise.
786 * p-exp.y: Likewise.
787 * p-lang.c: Likewise.
788 * p-typeprint.c: Likewise.
789 * parse.c: Likewise.
790 * posix-hdep.c: Likewise.
791 * ppc-linux-nat.c: Likewise.
792 * ppc-sysv-tdep.c: Likewise.
793 * ppcfbsd-tdep.c: Likewise.
794 * ppcnbsd-tdep.c: Likewise.
795 * ppcobsd-tdep.c: Likewise.
796 * printcmd.c: Likewise.
797 * procfs.c: Likewise.
798 * prologue-value.c: Likewise.
799 * python/py-auto-load.c: Likewise.
800 * python/py-gdb-readline.c: Likewise.
801 * ravenscar-thread.c: Likewise.
802 * regcache.c: Likewise.
803 * registry.c: Likewise.
804 * remote-fileio.c: Likewise.
805 * remote-m32r-sdi.c: Likewise.
806 * remote-mips.c: Likewise.
807 * remote-notif.c: Likewise.
808 * remote-sim.c: Likewise.
809 * remote.c: Likewise.
810 * reverse.c: Likewise.
811 * rs6000-aix-tdep.c: Likewise.
812 * ser-base.c: Likewise.
813 * ser-go32.c: Likewise.
814 * ser-mingw.c: Likewise.
815 * ser-pipe.c: Likewise.
816 * ser-tcp.c: Likewise.
817 * ser-unix.c: Likewise.
818 * serial.c: Likewise.
819 * sh-tdep.c: Likewise.
820 * sh64-tdep.c: Likewise.
821 * shnbsd-tdep.c: Likewise.
822 * skip.c: Likewise.
823 * sol-thread.c: Likewise.
824 * solib-dsbt.c: Likewise.
825 * solib-frv.c: Likewise.
826 * solib-osf.c: Likewise.
827 * solib-som.c: Likewise.
828 * solib-spu.c: Likewise.
829 * solib-target.c: Likewise.
830 * solib.c: Likewise.
831 * somread.c: Likewise.
832 * source.c: Likewise.
833 * sparc-nat.c: Likewise.
834 * sparc-sol2-tdep.c: Likewise.
835 * sparc-tdep.c: Likewise.
836 * sparc64-tdep.c: Likewise.
837 * sparc64fbsd-tdep.c: Likewise.
838 * sparc64nbsd-tdep.c: Likewise.
839 * sparcnbsd-tdep.c: Likewise.
840 * spu-linux-nat.c: Likewise.
841 * spu-multiarch.c: Likewise.
842 * spu-tdep.c: Likewise.
843 * stabsread.c: Likewise.
844 * stack.c: Likewise.
845 * std-regs.c: Likewise.
846 * symfile.c: Likewise.
847 * symmisc.c: Likewise.
848 * symtab.c: Likewise.
849 * target.c: Likewise.
850 * thread.c: Likewise.
851 * tilegx-linux-nat.c: Likewise.
852 * tilegx-tdep.c: Likewise.
853 * top.c: Likewise.
854 * tracepoint.c: Likewise.
855 * tui/tui-command.c: Likewise.
856 * tui/tui-data.c: Likewise.
857 * tui/tui-disasm.c: Likewise.
858 * tui/tui-file.c: Likewise.
859 * tui/tui-layout.c: Likewise.
860 * tui/tui-out.c: Likewise.
861 * tui/tui-regs.c: Likewise.
862 * tui/tui-source.c: Likewise.
863 * tui/tui-stack.c: Likewise.
864 * tui/tui-win.c: Likewise.
865 * tui/tui-windata.c: Likewise.
866 * tui/tui-winsource.c: Likewise.
867 * typeprint.c: Likewise.
868 * ui-file.c: Likewise.
869 * ui-out.c: Likewise.
870 * user-regs.c: Likewise.
871 * utils.c: Likewise.
872 * v850-tdep.c: Likewise.
873 * valarith.c: Likewise.
874 * valops.c: Likewise.
875 * valprint.c: Likewise.
876 * value.c: Likewise.
877 * varobj.c: Likewise.
878 * vax-tdep.c: Likewise.
879 * vaxnbsd-tdep.c: Likewise.
880 * vaxobsd-tdep.c: Likewise.
881 * windows-nat.c: Likewise.
882 * xcoffread.c: Likewise.
883 * xml-support.c: Likewise.
884 * xstormy16-tdep.c: Likewise.
885 * xtensa-linux-nat.c: Likewise.
886
887 2014-08-07 Gary Benson <gbenson@redhat.com>
888
889 * common/common-defs.h: Include gdb_assert.h.
890 * aarch64-tdep.c: Do not include gdb_assert.h.
891 * addrmap.c: Likewise.
892 * aix-thread.c: Likewise.
893 * alpha-linux-tdep.c: Likewise.
894 * alpha-mdebug-tdep.c: Likewise.
895 * alphanbsd-tdep.c: Likewise.
896 * amd64-nat.c: Likewise.
897 * amd64-tdep.c: Likewise.
898 * amd64bsd-nat.c: Likewise.
899 * amd64fbsd-nat.c: Likewise.
900 * amd64fbsd-tdep.c: Likewise.
901 * amd64nbsd-nat.c: Likewise.
902 * amd64nbsd-tdep.c: Likewise.
903 * amd64obsd-nat.c: Likewise.
904 * amd64obsd-tdep.c: Likewise.
905 * arch-utils.c: Likewise.
906 * arm-tdep.c: Likewise.
907 * armbsd-tdep.c: Likewise.
908 * auxv.c: Likewise.
909 * bcache.c: Likewise.
910 * bfin-tdep.c: Likewise.
911 * blockframe.c: Likewise.
912 * breakpoint.c: Likewise.
913 * bsd-kvm.c: Likewise.
914 * bsd-uthread.c: Likewise.
915 * buildsym.c: Likewise.
916 * c-exp.y: Likewise.
917 * c-lang.c: Likewise.
918 * charset.c: Likewise.
919 * cleanups.c: Likewise.
920 * cli-out.c: Likewise.
921 * cli/cli-decode.c: Likewise.
922 * cli/cli-dump.c: Likewise.
923 * cli/cli-logging.c: Likewise.
924 * cli/cli-script.c: Likewise.
925 * cli/cli-utils.c: Likewise.
926 * coffread.c: Likewise.
927 * common/common-utils.c: Likewise.
928 * common/queue.h: Likewise.
929 * common/signals.c: Likewise.
930 * common/vec.h: Likewise.
931 * complaints.c: Likewise.
932 * completer.c: Likewise.
933 * corelow.c: Likewise.
934 * cp-abi.c: Likewise.
935 * cp-name-parser.y: Likewise.
936 * cp-namespace.c: Likewise.
937 * cp-support.c: Likewise.
938 * cris-tdep.c: Likewise.
939 * dbxread.c: Likewise.
940 * dictionary.c: Likewise.
941 * doublest.c: Likewise.
942 * dsrec.c: Likewise.
943 * dummy-frame.c: Likewise.
944 * dwarf2-frame-tailcall.c: Likewise.
945 * dwarf2-frame.c: Likewise.
946 * dwarf2expr.c: Likewise.
947 * dwarf2loc.c: Likewise.
948 * dwarf2read.c: Likewise.
949 * eval.c: Likewise.
950 * event-loop.c: Likewise.
951 * exceptions.c: Likewise.
952 * expprint.c: Likewise.
953 * f-valprint.c: Likewise.
954 * fbsd-nat.c: Likewise.
955 * findvar.c: Likewise.
956 * frame-unwind.c: Likewise.
957 * frame.c: Likewise.
958 * frv-tdep.c: Likewise.
959 * gcore.c: Likewise.
960 * gdb-dlfcn.c: Likewise.
961 * gdb_bfd.c: Likewise.
962 * gdbarch.c: Likewise.
963 * gdbarch.sh: Likewise.
964 * gdbtypes.c: Likewise.
965 * gnu-nat.c: Likewise.
966 * gnu-v3-abi.c: Likewise.
967 * go-lang.c: Likewise.
968 * guile/scm-exception.c: Likewise.
969 * guile/scm-gsmob.c: Likewise.
970 * guile/scm-lazy-string.c: Likewise.
971 * guile/scm-math.c: Likewise.
972 * guile/scm-pretty-print.c: Likewise.
973 * guile/scm-safe-call.c: Likewise.
974 * guile/scm-utils.c: Likewise.
975 * guile/scm-value.c: Likewise.
976 * h8300-tdep.c: Likewise.
977 * hppa-hpux-nat.c: Likewise.
978 * hppa-tdep.c: Likewise.
979 * hppanbsd-tdep.c: Likewise.
980 * hppaobsd-tdep.c: Likewise.
981 * i386-darwin-nat.c: Likewise.
982 * i386-darwin-tdep.c: Likewise.
983 * i386-nto-tdep.c: Likewise.
984 * i386-tdep.c: Likewise.
985 * i386bsd-nat.c: Likewise.
986 * i386fbsd-tdep.c: Likewise.
987 * i386gnu-nat.c: Likewise.
988 * i386nbsd-tdep.c: Likewise.
989 * i386obsd-tdep.c: Likewise.
990 * i387-tdep.c: Likewise.
991 * ia64-libunwind-tdep.c: Likewise.
992 * ia64-tdep.c: Likewise.
993 * inf-ptrace.c: Likewise.
994 * inf-ttrace.c: Likewise.
995 * infcall.c: Likewise.
996 * infcmd.c: Likewise.
997 * infrun.c: Likewise.
998 * inline-frame.c: Likewise.
999 * interps.c: Likewise.
1000 * jv-lang.c: Likewise.
1001 * jv-typeprint.c: Likewise.
1002 * linux-fork.c: Likewise.
1003 * linux-nat.c: Likewise.
1004 * linux-thread-db.c: Likewise.
1005 * m32c-tdep.c: Likewise.
1006 * m32r-linux-nat.c: Likewise.
1007 * m32r-tdep.c: Likewise.
1008 * m68k-tdep.c: Likewise.
1009 * m68kbsd-nat.c: Likewise.
1010 * m68kbsd-tdep.c: Likewise.
1011 * m88k-tdep.c: Likewise.
1012 * machoread.c: Likewise.
1013 * macroexp.c: Likewise.
1014 * macrotab.c: Likewise.
1015 * maint.c: Likewise.
1016 * mdebugread.c: Likewise.
1017 * memory-map.c: Likewise.
1018 * mep-tdep.c: Likewise.
1019 * mi/mi-common.c: Likewise.
1020 * microblaze-tdep.c: Likewise.
1021 * mingw-hdep.c: Likewise.
1022 * mips-linux-nat.c: Likewise.
1023 * mips-linux-tdep.c: Likewise.
1024 * mips-tdep.c: Likewise.
1025 * mips64obsd-tdep.c: Likewise.
1026 * mipsnbsd-tdep.c: Likewise.
1027 * mn10300-linux-tdep.c: Likewise.
1028 * mn10300-tdep.c: Likewise.
1029 * moxie-tdep.c: Likewise.
1030 * mt-tdep.c: Likewise.
1031 * nat/linux-btrace.c: Likewise.
1032 * nat/linux-osdata.c: Likewise.
1033 * nat/linux-ptrace.c: Likewise.
1034 * nat/mips-linux-watch.c: Likewise.
1035 * nios2-linux-tdep.c: Likewise.
1036 * nios2-tdep.c: Likewise.
1037 * objc-lang.c: Likewise.
1038 * objfiles.c: Likewise.
1039 * obsd-nat.c: Likewise.
1040 * opencl-lang.c: Likewise.
1041 * osabi.c: Likewise.
1042 * parse.c: Likewise.
1043 * ppc-linux-nat.c: Likewise.
1044 * ppc-sysv-tdep.c: Likewise.
1045 * ppcfbsd-nat.c: Likewise.
1046 * ppcfbsd-tdep.c: Likewise.
1047 * ppcnbsd-nat.c: Likewise.
1048 * ppcnbsd-tdep.c: Likewise.
1049 * ppcobsd-nat.c: Likewise.
1050 * ppcobsd-tdep.c: Likewise.
1051 * printcmd.c: Likewise.
1052 * procfs.c: Likewise.
1053 * prologue-value.c: Likewise.
1054 * psymtab.c: Likewise.
1055 * python/py-lazy-string.c: Likewise.
1056 * python/py-value.c: Likewise.
1057 * regcache.c: Likewise.
1058 * reggroups.c: Likewise.
1059 * registry.c: Likewise.
1060 * remote-sim.c: Likewise.
1061 * remote.c: Likewise.
1062 * rs6000-aix-tdep.c: Likewise.
1063 * rs6000-tdep.c: Likewise.
1064 * s390-linux-tdep.c: Likewise.
1065 * score-tdep.c: Likewise.
1066 * ser-base.c: Likewise.
1067 * ser-mingw.c: Likewise.
1068 * sh-tdep.c: Likewise.
1069 * sh64-tdep.c: Likewise.
1070 * solib-darwin.c: Likewise.
1071 * solib-spu.c: Likewise.
1072 * solib-svr4.c: Likewise.
1073 * source.c: Likewise.
1074 * sparc-nat.c: Likewise.
1075 * sparc-sol2-tdep.c: Likewise.
1076 * sparc-tdep.c: Likewise.
1077 * sparc64-sol2-tdep.c: Likewise.
1078 * sparc64-tdep.c: Likewise.
1079 * sparc64fbsd-tdep.c: Likewise.
1080 * sparc64nbsd-tdep.c: Likewise.
1081 * sparc64obsd-tdep.c: Likewise.
1082 * sparcnbsd-tdep.c: Likewise.
1083 * sparcobsd-tdep.c: Likewise.
1084 * spu-multiarch.c: Likewise.
1085 * spu-tdep.c: Likewise.
1086 * stabsread.c: Likewise.
1087 * stack.c: Likewise.
1088 * symfile.c: Likewise.
1089 * symtab.c: Likewise.
1090 * target-descriptions.c: Likewise.
1091 * target-memory.c: Likewise.
1092 * target.c: Likewise.
1093 * tic6x-linux-tdep.c: Likewise.
1094 * tic6x-tdep.c: Likewise.
1095 * tilegx-linux-nat.c: Likewise.
1096 * tilegx-tdep.c: Likewise.
1097 * top.c: Likewise.
1098 * tramp-frame.c: Likewise.
1099 * tui/tui-out.c: Likewise.
1100 * tui/tui-winsource.c: Likewise.
1101 * ui-out.c: Likewise.
1102 * user-regs.c: Likewise.
1103 * utils.c: Likewise.
1104 * v850-tdep.c: Likewise.
1105 * valops.c: Likewise.
1106 * value.c: Likewise.
1107 * varobj.c: Likewise.
1108 * vax-nat.c: Likewise.
1109 * xml-syscall.c: Likewise.
1110 * xml-tdesc.c: Likewise.
1111 * xstormy16-tdep.c: Likewise.
1112 * xtensa-linux-nat.c: Likewise.
1113 * xtensa-tdep.c: Likewise.
1114
1115 2014-08-07 Gary Benson <gbenson@redhat.com>
1116
1117 * common/common-defs.h: Include common-utils.h.
1118 * defs.h: Do not include common-utils.h.
1119 * common/gdb_assert.h: Likewise.
1120 * darwin-nat.h: Likewise.
1121 * nat/linux-btrace.c: Likewise.
1122 * target/waitstatus.h: Likewise.
1123
1124 2014-08-07 Gary Benson <gbenson@redhat.com>
1125
1126 * common/common-defs.h: Include ptid.h.
1127 * defs.h: Do not include ptid.h.
1128 * inferior.h: Likewise.
1129 * infrun.h: Likewise.
1130 * nat/linux-btrace.h: Likewise.
1131 * nat/linux-osdata.h: Likewise.
1132 * target/waitstatus.h: Likewise.
1133
1134 2014-08-07 Gary Benson <gbenson@redhat.com>
1135
1136 * common/common-defs.h: Include gdb_locale.h.
1137 * defs.h: Do not include gdb_locale.h.
1138
1139 2014-08-07 Gary Benson <gbenson@redhat.com>
1140
1141 * common/common-defs.h: Include gdb/signals.h.
1142 * defs.h: Do not include gdb/signals.h.
1143
1144 2014-08-07 Gary Benson <gbenson@redhat.com>
1145
1146 * common/common-defs.h: Include pathmax.h.
1147 * defs.h: Do not include pathmax.h.
1148
1149 2014-08-07 Gary Benson <gbenson@redhat.com>
1150
1151 * common/common-defs.h: Include libiberty.h.
1152 * defs.h: Do not include libiberty.h.
1153 * common/queue.h: Likewise.
1154 * cp-name-parser.y: Likewise.
1155 * mi/mi-cmd-catch.c: Likewise.
1156 * python/python.c: Likewise.
1157
1158 2014-08-07 Gary Benson <gbenson@redhat.com>
1159
1160 * common/common-defs.h: Include ansidecl.h.
1161 * defs.h: Do not include ansidecl.h.
1162 * common/buffer.h: Likewise.
1163 * common/common-utils.h: Likewise.
1164
1165 2014-08-07 Gary Benson <gbenson@redhat.com>
1166
1167 * common/common-defs.h: Include stddef.h.
1168 * defs.h: Do not include stddef.h.
1169 * common/common-utils.h: Likewise.
1170 * amd64fbsd-nat.c: Likewise.
1171 * bcache.c: Likewise.
1172 * charset.c: Likewise.
1173 * common/buffer.h: Likewise.
1174 * common/vec.h: Likewise.
1175 * i386bsd-nat.c: Likewise.
1176 * nat/linux-btrace.h: Likewise.
1177 * ppcfbsd-nat.c: Likewise.
1178 * ppcnbsd-tdep.h: Likewise.
1179 * ppcobsd-nat.c: Likewise.
1180 * ppcobsd-tdep.h: Likewise.
1181 * python/py-gdb-readline.c: Likewise.
1182
1183 2014-08-07 Gary Benson <gbenson@redhat.com>
1184
1185 * common/common-defs.h: Include stdarg.h.
1186 * defs.h: Do not include stdarg.h.
1187 * ada-lang.c: Likewise.
1188 * common/common-utils.h: Likewise.
1189 * guile/scm-string.c: Likewise.
1190 * guile/scm-utils.c: Likewise.
1191 * m32c-tdep.c: Likewise.
1192
1193 2014-08-07 Gary Benson <gbenson@redhat.com>
1194
1195 * common/common-defs.h: Include stdlib.h.
1196 * defs.h: Do not include stdlib.h.
1197 * addrmap.c: Likewise.
1198 * bcache.c: Likewise.
1199 * common/buffer.c: Likewise.
1200 * common/common-utils.c: Likewise.
1201 * cp-name-parser.y: Likewise.
1202 * go32-nat.c: Likewise.
1203 * mn10300-linux-tdep.c: Likewise.
1204 * nat/linux-osdata.c: Likewise.
1205 * tui/tui.c: Likewise.
1206 * windows-nat.c: Likewise.
1207
1208 2014-08-07 Gary Benson <gbenson@redhat.com>
1209
1210 * common/common-defs.h: Include stdio.h.
1211 * defs.h: Do not include stdio.h.
1212 * ada-lang.c: Likewise.
1213 * common/buffer.c: Likewise.
1214 * common/common-utils.c: Likewise.
1215 * cp-name-parser.y: Likewise.
1216 * gnu-nat.c: Likewise.
1217 * go32-nat.c: Likewise.
1218 * i386gnu-nat.c: Likewise.
1219 * proc-api.c: Likewise.
1220 * proc-events.c: Likewise.
1221 * proc-flags.c: Likewise.
1222 * proc-why.c: Likewise.
1223 * python/python-internal.h: Likewise.
1224 * target-memory.c: Likewise.
1225 * tui/tui-io.c: Likewise.
1226 * tui/tui.c: Likewise.
1227
1228 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1229
1230 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1231 (scan_dyntag_auxv): Same.
1232
1233 2014-08-06 Yao Qi <yao@codesourcery.com>
1234
1235 * amd64-linux-nat.c: Remove duplicated include
1236 "x86-linux-nat.h".
1237 * i386-linux-nat.c: Likewise.
1238
1239 2014-08-06 Yao Qi <yao@codesourcery.com>
1240
1241 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1242 operand" with "Special opcode" in comments.
1243
1244 2014-08-05 Gary Benson <gbenson@redhat.com>
1245
1246 * interps.c (initialize_interps): Remove prototype.
1247 (interpreter_initialized): Remove static global.
1248 (interp_add): Do not call initialize_interps.
1249 (initialize_interps): Remove function.
1250
1251 2014-08-05 Gary Benson <gbenson@redhat.com>
1252
1253 * utils.c (vwarning): Remove spurious va_end.
1254
1255 2014-08-05 Alan Modra <amodra@gmail.com>
1256
1257 * charset.c (convert_between_encodings): Cast result of obstack_base.
1258 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1259 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1260 (read_unwind_info): Use size_t for some locals.
1261 * jit.c (finalize_symtab): Likewise.
1262 * utils.c (hashtab_obstack_allocate): Likewise.
1263 * symmisc.c (print_objfile_statistics): Update format strings.
1264
1265 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1266
1267 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1268 (Changes in GDB 7.8): ... here.
1269
1270 2014-08-04 Tom Tromey <tromey@redhat.com>
1271
1272 * target.c (set_targetdebug): New function.
1273 (initialize_targets): Pass set_targetdebug when creating "set
1274 debug target".
1275
1276 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1277
1278 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1279 if detecting a variable-sized field that is not the last field.
1280 Fix struct type length computation.
1281
1282 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1283
1284 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1285 Add debug trace.
1286
1287 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1288
1289 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1290 Remove "+ 8" offset in computation of CHAIN_VMA.
1291
1292 2014-07-31 Doug Evans <dje@google.com>
1293
1294 * inflow.c (child_terminal_inferior): Add comment.
1295 (child_terminal_ours_for_output): Add comment.
1296 (child_terminal_ours): Add comment.
1297 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1298 (linux_nat_terminal_ours): Add comment.
1299
1300 2014-07-31 Gary Benson <gbenson@redhat.com>
1301
1302 * common/btrace-common.h: Do not include defs.h or server.h.
1303 * nat/mips-linux-watch.h: Likewise.
1304 * gdb-dlfcn.h: Do not include defs.h.
1305 * tracefile.h: Likewise.
1306
1307 2014-07-30 Roland McGrath <mcgrathr@google.com>
1308
1309 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1310
1311 2014-07-30 Tom Tromey <tromey@redhat.com>
1312
1313 * bsd-kvm.c (bsd_kvm_open): Constify.
1314 * corelow.c (core_open): Constify.
1315 * ctf.c (ctf_open): Constify.
1316 * dbug-rom.c (dbug_open): Constify.
1317 * exec.c (exec_open): Constify.
1318 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1319 * microblaze-rom.c (picobug_open): Constify.
1320 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1321 Constify.
1322 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1323 * record-btrace.c (record_btrace_open): Constify.
1324 * record-full.c (record_full_core_open_1, record_full_open_1)
1325 (record_full_open): Constify.
1326 * remote-m32r-sdi.c (m32r_open): Constify.
1327 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1328 (rockhopper_open, lsi_open): Constify.
1329 * remote-sim.c (gdbsim_open): Constify.
1330 * remote.c (remote_open, extended_remote_open, remote_open_1):
1331 Constify.
1332 * target.h (struct target_ops) <to_open>: Make "arg" const.
1333 * tracefile-tfile.c (tfile_open): Constify.
1334
1335 2014-07-30 Tom Tromey <tromey@redhat.com>
1336
1337 * breakpoint.c (map_breakpoint_numbers): Update.
1338 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1339 (get_number_const): New function.
1340 (get_number): Rewrite using get_number_const.
1341 (init_number_or_range): Make "string" const.
1342 (number_is_in_list): Make "list" const.
1343 * cli/cli-utils.h (get_number_const): Declare.
1344 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1345 (init_number_or_range, number_is_in_list): Update.
1346 * printcmd.c (map_display_numbers): Update.
1347 * value.c (value_from_history_ref): Constify.
1348 * value.h (value_from_history_ref): Update.
1349
1350 2014-07-30 Tom Tromey <tromey@redhat.com>
1351
1352 * corefile.c (hook_type, call_extra_exec_file_hooks)
1353 (specify_exec_file_hook): Constify.
1354 * exec.c (exec_file_attach): Make "filename" const.
1355 * gdbcore.h (deprecated_exec_file_display_hook)
1356 (specify_exec_file_hook, exec_file_attach): Constify.
1357 * main.c (captured_main): Use catch_command_errors_const.
1358
1359 2014-07-30 Tom Tromey <tromey@redhat.com>
1360
1361 * target.c (open_target): New function.
1362 (add_target_with_completer, add_deprecated_target_alias): Use
1363 set_cmd_sfunc, set_cmd_context.
1364 (debug_to_open): Remove.
1365 (setup_target_debug): Update.
1366
1367 2014-07-30 Yao Qi <yao@codesourcery.com>
1368
1369 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1370 comments.
1371 * parse.c (exp_iterate): Update comments.
1372
1373 2014-07-30 Gary Benson <gbenson@redhat.com>
1374
1375 * common/common-defs.h: New file.
1376 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1377 * defs.h: Include common-defs.h.
1378 Do not include config.h or build-gnulib/config.h.
1379
1380 2014-07-30 Gary Benson <gbenson@redhat.com>
1381
1382 * common/common-utils.h: Do not include config.h.
1383 * nat/linux-btrace.h: Likewise.
1384
1385 2014-07-30 Gary Benson <gbenson@redhat.com>
1386
1387 * btrace.c: Include defs.h.
1388 * common/ptid.c: Include defs.h or server.h as appropriate.
1389 * nat/mips-linux-watch.c: Likewise.
1390
1391 2014-07-29 Tom Tromey <tromey@redhat.com>
1392
1393 * target.c (target_is_pushed): Simplify.
1394
1395 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1396
1397 GDB 7.8 released.
1398
1399 2014-07-29 Yao Qi <yao@codesourcery.com>
1400
1401 PR gdb/17206
1402 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1403
1404 2014-07-28 Doug Evans <xdje42@gmail.com>
1405
1406 PR guile/17203
1407 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1408 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1409 parameters.
1410
1411 2014-07-28 Will Newton <will.newton@linaro.org>
1412
1413 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1414 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1415 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1416 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1417 (THUMB2_EABI_SYSCALL): Likewise.
1418 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1419 struct tramp_frame.
1420 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1421 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1422
1423 2014-07-27 Doug Evans <xdje42@gmail.com>
1424
1425 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1426
1427 2014-07-27 Doug Evans <xdje42@gmail.com>
1428
1429 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1430
1431 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1432 Doug Evans <xdje42@gmail.com>
1433
1434 PR guile/17146
1435 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1436 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1437 * configure.ac: Try to use guild to compile an scm file, if it fails
1438 then disable guile support.
1439 * configure: Regenerate.
1440 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1441 GUILE_FILE_LIST.
1442 (GUILE_COMPILED_FILES): New variable.
1443 (GUILE_FILES) Update.
1444 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1445 (stamp-guile): Compile scm files.
1446 * guile/guile.c (boot_guile_support): New function.
1447 (standard_throw_args_p): New function.
1448 (print_standard_throw_error, print_throw_error): New functions.
1449 (handle_boot_error): New function.
1450 (initialize_scheme_side): Rewrite to call boot_guile_support.
1451 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1452 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1453
1454 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1455 Doug Evans <xdje42@gmail.com>
1456
1457 PR guile/17146
1458 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1459 * guile/lib/gdb/support.scm: New file.
1460 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1461 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1462 All uses updated.
1463 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1464 All uses updated.
1465 (%assert-type): Ditto, and renamed to assert-type.
1466 (%exception-print-style): Delete.
1467
1468 2014-07-26 Doug Evans <xdje42@gmail.com>
1469
1470 PR build/17105
1471 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1472 * configure: Regenerate.
1473 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1474 PYTHON_FILES.
1475 (PYTHON_FILES): New variable.
1476 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1477 (GUILE_FILES): New variable.
1478 (stamp-python, install-python, uninstall-python): Handle empty
1479 file list.
1480 (stamp-guile, install-guile, uninstall-guile): Ditto.
1481
1482 2014-07-26 Doug Evans <xdje42@gmail.com>
1483
1484 PR guile/17177
1485 * guile/lib/gdb.scm (pretty-printers): Export.
1486 (set-pretty-printers!): Export.
1487 * guile/lib/gdb/printing.scm (gdb module): Update.
1488 (prepend-pretty-printer!, append-pretty-printer!): Update.
1489 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1490 (pretty_printer_list_var): Delete.
1491 (pretty_printer_list): New static global.
1492 (gdbscm_pretty_printers): New function.
1493 (gdbscm_set_pretty_printers_x): New function.
1494 (ppscm_find_pretty_printer_from_gdb): Update.
1495 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1496 (gdbscm_initialize_pretty_printers): Update.
1497
1498 2014-07-26 Doug Evans <xdje42@gmail.com>
1499
1500 PR 17185
1501 * configure.ac: Add check for header gc/gc.h.
1502 Add check for function setenv.
1503 * configure: Regenerate.
1504 * config.in: Regenerate.
1505 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1506
1507 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1508
1509 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1510 variation in gdbarch matching.
1511
1512 2014-07-25 Tom Tromey <tromey@redhat.com>
1513
1514 * exec.c (using_exec_ops): Remove.
1515 (exec_close_1): Update. Remove extraneous block, reindent.
1516 (add_target_sections): Use target_is_pushed.
1517
1518 2014-07-25 Pedro Alves <palves@redhat.com>
1519
1520 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1521 * monitor.c (monitor_create_inferior): Likewise.
1522 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1523 * remote-sim.c (gdbsim_create_inferior): Likewise.
1524 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1525 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1526 * windows-nat.c (do_initial_windows_stuff): Likewise.
1527
1528 2014-07-25 Pedro Alves <palves@redhat.com>
1529
1530 * NEWS: Mention signal passing and "signal" command changes.
1531 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1532 comment.
1533 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1534 call.
1535 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1536 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1537 (jump_command): Adjust clear_proceed_status call.
1538 (signal_command): Warn if other thread that are resumed have
1539 signals that will be delivered. Adjust clear_proceed_status call.
1540 (until_next_command, finish_command)
1541 (proceed_after_attach_callback, attach_command_post_wait)
1542 (attach_command): Adjust clear_proceed_status call.
1543 * infrun.c (proceed_after_vfork_done): Likewise.
1544 (proceed_after_attach_callback): Adjust comment.
1545 (clear_proceed_status_thread): Clear stop_signal if not in pass
1546 state.
1547 (clear_proceed_status_callback): Delete.
1548 (clear_proceed_status): New 'step' parameter. Only clear the
1549 proceed status of threads the command being prepared is about to
1550 resume.
1551 (proceed): If passed in an explicit signal, override stop_signal
1552 with it. Don't pass the last stop signal to the thread we're
1553 resuming.
1554 (init_wait_for_inferior): Adjust clear_proceed_status call.
1555 (switch_back_to_stepped_thread): Clear the signal if it should not
1556 be passed.
1557 * infrun.h (clear_proceed_status): New 'step' parameter.
1558 (user_visible_resume_ptid): Add comment.
1559 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1560 signal is in pass state.
1561 * remote.c (append_pending_thread_resumptions): Likewise.
1562 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1563
1564 2014-07-25 Tom Tromey <tromey@redhat.com>
1565
1566 * target.h (target_stopped_data_address)
1567 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1568 parentheses.
1569
1570 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1571
1572 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1573 comments.
1574 (avr_pointer_to_address): Likewise.
1575
1576 2014-07-24 Tom Tromey <tromey@redhat.com>
1577
1578 * monitor.c (compile_pattern): Update.
1579 * target.h (struct target_ops) <to_shortname, to_longname,
1580 to_doc>: Now const.
1581
1582 2014-07-24 Tom Tromey <tromey@redhat.com>
1583
1584 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1585 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1586 (add_info_alias, add_com): Make "doc" const.
1587 (print_doc_line): Make "str" const.
1588 (delete_cmd): Update.
1589 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1590 (print_doc_line): Update.
1591 * cli/cli-script.c (document_command): Update.
1592 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1593 (add_com, add_info, add_info_alias): Update.
1594 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1595 * python/py-cmd.c (cmdpy_destroyer): Update.
1596
1597 2014-07-24 Tom Tromey <tromey@redhat.com>
1598
1599 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1600 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1601 (help_cmd_list): Constify.
1602 (lookup_cmd): Update.
1603 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1604 const.
1605 (help_cmd_list, apropos_cmd): Update.
1606 * cli/cli-script.c (show_user): Update.
1607 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1608 * cli/cli-setshow.h (cmd_show_list): Update.
1609 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1610 (cmd_show_list): Update.
1611 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1612 * python/py-cmd.c (cmdpy_destroyer): Update.
1613
1614 2014-07-24 Tom Tromey <tromey@redhat.com>
1615
1616 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1617 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1618 const.
1619 * command.h (deprecate_cmd): Update.
1620 * maint.c (maintenance_do_deprecate): Add casts.
1621
1622 2014-07-24 Tom Tromey <tromey@redhat.com>
1623
1624 * cli/cli-decode.c (help_cmd): Make parameter "const".
1625 * cli/cli-decode.h (help_cmd): Update.
1626
1627 2014-07-24 Tom Tromey <tromey@redhat.com>
1628
1629 * stack.c (up_silently_base, down_silently_base): Make argument
1630 const.
1631
1632 2014-07-24 Tom Tromey <tromey@redhat.com>
1633
1634 * solib.c (solib_add): Make "pattern" const.
1635 * solib.h (solib_add): Update.
1636
1637 2014-07-24 Tom Tromey <tromey@redhat.com>
1638
1639 * remote.c (remote_serial_open, print_packet, putpkt)
1640 (putpkt_binary): Constify.
1641 * remote.h (putpkt): Update.
1642
1643 2014-07-24 Tom Tromey <tromey@redhat.com>
1644
1645 * monitor.c (monitor_open): Make "args" const.
1646 * monitor.h (monitor_open): Update.
1647
1648 2014-07-24 Tom Tromey <tromey@redhat.com>
1649
1650 * maint.c (match_bfd_flags): Make "string" const.
1651 (print_bfd_section_info): Remove casts.
1652 (print_objfile_section_info): Make "string" const.
1653
1654 2014-07-24 Tom Tromey <tromey@redhat.com>
1655
1656 * inf-child.c (inf_child_open_target): Make "arg" const.
1657 * inf-child.h (inf_child_open_target): Update.
1658
1659 2014-07-24 Tom Tromey <tromey@redhat.com>
1660
1661 * environ.c (unset_in_environ): Make "var" const.
1662 * environ.h (unset_in_environ): Update.
1663
1664 2014-07-24 Tom Tromey <tromey@redhat.com>
1665
1666 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1667 Make "cmd" const.
1668 (scan_filename_with_cleanup): Likewise.
1669 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1670 Make arguments const.
1671 (restore_command): Update.
1672
1673 2014-07-24 Pedro Alves <palves@redhat.com>
1674
1675 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1676
1677 2014-07-24 Tom Tromey <tromey@redhat.com>
1678 Gary Benson <gbenson@redhat.com>
1679
1680 * nat/linux-ptrace.c (additional_flags): New global.
1681 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1682 additional_flags; don't check GDBSERVER.
1683 (linux_ptrace_set_additional_flags): New function.
1684 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1685 Declare.
1686 * linux-nat.c (_initialize_linux_nat): Call
1687 linux_ptrace_set_additional_flags.
1688
1689 2014-07-24 Tom Tromey <tromey@redhat.com>
1690
1691 * make-target-delegates (munge_type, write_debugmethod): New
1692 functions.
1693 (debug_names): New global.
1694 ($TARGET_DEBUG_PRINTER): New global.
1695 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1696 name.
1697 Write debug methods. Generate init_debug_target.
1698 * target-debug.h: New file.
1699 * target-delegates.c: Rebuild.
1700 * target.c: Include target-debug.h.
1701 (debug_target): Hoist definition.
1702 (target_kill, target_get_section_table, target_memory_map)
1703 (target_flash_erase, target_flash_done, target_detach)
1704 (target_disconnect, target_wait, target_resume)
1705 (target_pass_signals, target_program_signals, target_follow_fork)
1706 (target_mourn_inferior, target_search_memory)
1707 (target_thread_address_space, target_close)
1708 (target_find_new_threads, target_core_of_thread)
1709 (target_verify_memory, target_insert_mask_watchpoint)
1710 (target_remove_mask_watchpoint): Remove targetdebug code.
1711 (debug_to_post_attach, debug_to_prepare_to_store)
1712 (debug_to_files_info, debug_to_insert_breakpoint)
1713 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1714 (debug_to_region_ok_for_hw_watchpoint)
1715 (debug_to_can_accel_watchpoint_condition)
1716 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1717 (debug_to_watchpoint_addr_within_range)
1718 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1719 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1720 (debug_to_terminal_init, debug_to_terminal_inferior)
1721 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1722 (debug_to_terminal_save_ours, debug_to_terminal_info)
1723 (debug_to_load, debug_to_post_startup_inferior)
1724 (debug_to_insert_fork_catchpoint)
1725 (debug_to_remove_fork_catchpoint)
1726 (debug_to_insert_vfork_catchpoint)
1727 (debug_to_remove_vfork_catchpoint)
1728 (debug_to_insert_exec_catchpoint)
1729 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1730 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1731 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1732 (setup_target_debug): Call init_debug_target.
1733 * target.h (TARGET_DEBUG_PRINTER): New macro.
1734 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1735 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1736
1737 2014-07-24 Gary Benson <gbenson@redhat.com>
1738
1739 * exceptions.h (throw_vfatal): Renamed to...
1740 (throw_vquit): New declaration.
1741 (throw_quit): Likewise.
1742 * exceptions.c (throw_vfatal): Renamed to...
1743 (throw_vquit): New function.
1744 (throw_quit): Likewise.
1745 (throw_error): Call throw_verror rather than throw_it.
1746 * utils.h (vfatal): Removed.
1747 (fatal): Likewise.
1748 * utils.c (vfatal): Removed.
1749 (fatal): Likewise.
1750 (internal_verror): Replaced call to fatal with call to throw_quit.
1751 (quit): Replaced calls to fatal with calls to throw_quit.
1752
1753 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1754
1755 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1756 target_read_code.
1757
1758 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1759
1760 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1761 less than zero in conditional expression.
1762
1763 2014-07-23 Tom Tromey <tromey@redhat.com>
1764
1765 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1766 ($INTRO_PART): Don't match whitespace.
1767 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1768 argument matching.
1769 ($METHOD): Add $METHOD_TRAILER.
1770 (trim): Rewrite.
1771 (scan_target_h): New sub.
1772 Change main loop not to collect state.
1773 * target-delegates.c: Rebuild.
1774
1775 2014-07-23 Gary Benson <gbenson@redhat.com>
1776
1777 * cp-support.c (gdb_demangle): Fix build on systems without
1778 sigaltstack.
1779
1780 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1781
1782 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1783 for reference entry value target data value.
1784
1785 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1786
1787 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1788 value_available_contents_eq.
1789
1790 2014-07-22 Pedro Alves <palves@redhat.com>
1791
1792 * value.c (allocate_optimized_out_value): Don't mark value as
1793 non-lazy.
1794
1795 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1796
1797 * MAINTAINERS (Write After Approval): Update my email address.
1798
1799 2014-07-20 Doug Evans <dje@google.com>
1800
1801 PR server/17147
1802 * remote.c (putpkt_binary): Add text to error message.
1803
1804 2014-07-20 Yao Qi <yao@codesourcery.com>
1805
1806 * eval.c: Remove "Chill" from comments.
1807 * gdbtypes.h: Likewise.
1808 * symtab.h: Likewise.
1809
1810 2014-07-20 Yao Qi <yao@codesourcery.com>
1811
1812 * std-operator.def: Update comments to TERNOP_SLICE.
1813
1814 2014-07-20 Yao Qi <yao@codesourcery.com>
1815
1816 * std-operator.def: Remove BINOP_RANGE.
1817 * breakpoint.c (watchpoint_exp_is_const): Update.
1818 * expprint.c (dump_subexp_body_standard): Likewise.
1819 * eval.c (init_array_element): Remove dead code.
1820 (evaluate_subexp_standard): Likewise.
1821
1822 2014-07-20 Yao Qi <yao@codesourcery.com>
1823
1824 * std-operator.def: Remove BINOP_IN.
1825 * breakpoint.c (watchpoint_exp_is_const): Update.
1826 * eval.c (evaluate_subexp_standard): Likewise.
1827 * expprint.c (dump_subexp_body_standard): Likewise.
1828
1829 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1830
1831 * microblaze-tdep.c (microblaze_register_names): Add
1832 the rshr and rslr register names.
1833 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1834 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1835 Use of tdesc_numbered_register. Use of
1836 microblaze_register_g_packet_guesses. Use of
1837 tdesc_use_registers. Use of set_gdbarch_register_type.
1838 (microblaze_register_g_packet_guesses): New.
1839 * microblaze-tdep.h (microblaze_reg_num): Add
1840 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1841 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1842 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1843 * features/microblaze-core.xml: New file.
1844 * features/microblaze-stack-protect.xml: New file.
1845 * features/microblaze-with-stack-protect.c: New file.
1846 * features/microblaze-with-stack-protect.xml: New file.
1847 * features/microblaze.xml: New file.
1848 * features/microblaze.c: New file.
1849 * features/Makefile (microblaze-with-stack-protect): Add
1850 microblaze-with-stack-protect microblaze and microblaze-expedite.
1851 * regformats/microblaze-with-stack-protect.dat: New file.
1852 * regformats/microblaze.dat: New file.
1853 * doc/gdb.texinfo (MicroBlaze Features): Added.
1854
1855 2014-07-18 Tom Tromey <tromey@redhat.com>
1856
1857 * exec.c (exec_ops): Now static.
1858 * exec.h (exec_ops): Don't declare.
1859
1860 2014-07-18 Tom Tromey <tromey@redhat.com>
1861
1862 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1863 to find_target_beneath.
1864 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1865 find_target_beneath.
1866 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1867
1868 2014-07-18 Tom Tromey <tromey@redhat.com>
1869
1870 PR gdb/17130:
1871 * utils.c (quit): Use target_supports_terminal_ours.
1872 * target.h (target_supports_terminal_ours): Declare.
1873 * target.c (target_supports_delete_record): Don't check
1874 to_delete_record against NULL.
1875 (target_supports_terminal_ours): New function.
1876
1877 2014-07-18 Tom Tromey <tromey@redhat.com>
1878
1879 PR gdb/17130:
1880 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1881 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1882 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1883 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1884 * windows-nat.c (windows_xfer_partial): Always delegate.
1885 * record-btrace.c (record_btrace_xfer_partial): Simplify
1886 delegation.
1887 (record_btrace_fetch_registers, record_btrace_store_registers)
1888 (record_btrace_prepare_to_store, record_btrace_resume)
1889 (record_btrace_wait, record_btrace_find_new_threads)
1890 (record_btrace_thread_alive): Likewise.
1891 * procfs.c (procfs_xfer_partial): Always delegate.
1892 * corelow.c (core_xfer_partial): Always delegate.
1893 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1894
1895 2014-07-18 Tom Tromey <tromey@redhat.com>
1896
1897 * exec.c (exec_make_note_section): Move earlier.
1898
1899 2014-07-17 Doug Evans <dje@google.com>
1900
1901 PR gdb/17170
1902 * maint.c (count_symtabs_and_blocks): Handle NULL
1903 current_program_space.
1904 (report_command_stats): Check global enabled flag in addition to
1905 recorded enabled flag.
1906 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1907
1908 2014-07-16 Pedro Alves <palves@redhat.com>
1909
1910 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1911
1912 2014-07-16 Tom Tromey <tromey@redhat.com>
1913
1914 * target.h (struct target_ops) <to_delete_record>: Reformat
1915 comment.
1916
1917 2014-07-16 Tom Tromey <tromey@redhat.com>
1918
1919 * target-delegates.c: Rebuild.
1920
1921 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1922
1923 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1924 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1925 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1926 (avr_pointer_to_address): Likewise.
1927 (avr_address_class_type_flags): New function.
1928 (avr_address_class_type_flags_to_name): Likewise.
1929 (avr_address_class_name_to_type_flags): Likewise.
1930 (avr_gdbarch_init): Set address_class_type_flags,
1931 address_class_type_flags_to_name and
1932 address_class_name_to_type_flags.
1933
1934 2014-07-15 Pedro Alves <palves@redhat.com>
1935
1936 * linux-nat.c (kill_callback): Save errno and work with saved
1937 copy.
1938
1939 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1940
1941 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1942
1943 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1944
1945 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1946 breakpoint support correctly.
1947
1948 2014-07-14 Pedro Alves <palves@redhat.com>
1949
1950 * utils.c (prompt_for_continue): Call target_terminal_ours.
1951
1952 2014-07-14 Pedro Alves <palves@redhat.com>
1953
1954 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1955 catch_errors. Don't re-enable stdin or notify observers where,
1956 and rethrow error.
1957 (fetch_inferior_event_wrapper): Delete.
1958
1959 2014-07-14 Pedro Alves <palves@redhat.com>
1960
1961 PR gdb/17072
1962 * top.c: Include "inf-loop.h".
1963 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1964 field.
1965 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1966 was async before.
1967 (gdb_readline_wrapper): Store whether the target is async, and
1968 make it sync.
1969
1970 2014-07-14 Pedro Alves <palves@redhat.com>
1971
1972 PR gdb/17072
1973 * top.c (gdb_readline_wrapper_line): Tweak comment.
1974 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1975 the input handler callback.
1976
1977 2014-07-14 Pedro Alves <palves@redhat.com>
1978
1979 PR gdb/17072
1980 * main.c: Include event-top.h.
1981 (handle_command_errors): New function.
1982 (catch_command_errors, catch_command_errors_const): Use it.
1983
1984 2014-07-14 Pedro Alves <palves@redhat.com>
1985
1986 * exceptions.c (catch_command_errors, catch_command_errors_const):
1987 Moved to main.c.
1988 * exceptions.h (catch_command_errors_ftype)
1989 (catch_command_errors_const_ftype): Moved to main.c.
1990 (catch_command_errors, catch_command_errors_const): Delete
1991 declarations.
1992 * main.c (catch_command_errors_ftype)
1993 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1994 (catch_command_errors, catch_command_errors_const)): Moved here
1995 from exceptions.c and make static.
1996
1997 2014-07-14 Pedro Alves <palves@redhat.com>
1998
1999 * exceptions.c (print_any_exception): Delete.
2000 (catch_exceptions_with_msg): Use exception_print instead of
2001 print_any_exception.
2002 (catch_errors): Use exception_fprintf instead of
2003 print_any_exception.
2004 (catch_command_errors, catch_command_errors_const): Use
2005 exception_print instead of print_any_exception.
2006
2007 2014-07-14 Pedro Alves <palves@redhat.com>
2008
2009 * infcall.c (run_inferior_call): Set 'sync_execution' while
2010 running the inferior call.
2011
2012 2014-07-14 Pedro Alves <palves@redhat.com>
2013
2014 * value.c (value_contents_equal): Delete function.
2015 * value.h (value_contents_equal): Delete declaration.
2016
2017 2014-07-14 Tom Tromey <tromey@redhat.com>
2018
2019 PR exp/17106:
2020 * gdbtypes.c (is_dynamic_type_internal): New function, from
2021 is_dynamic_type.
2022 (is_dynamic_type): Rewrite.
2023 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2024 (resolve_dynamic_struct): Likewise.
2025 (resolve_dynamic_type_internal): New function, from
2026 resolve_dynamic_type.
2027 (resolve_dynamic_type): Rewrite.
2028
2029 2014-07-14 Tom Tromey <tromey@redhat.com>
2030
2031 * target.c (target_require_runnable): Also check record_stratum.
2032 Update comment.
2033
2034 2014-07-11 Yao Qi <yao@codesourcery.com>
2035
2036 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2037 thumb_instruction_restores_sp return true.
2038
2039 2014-07-11 Yao Qi <yao@codesourcery.com>
2040
2041 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2042 (thumb_in_function_epilogue_p): Call
2043 thumb_instruction_restores_sp.
2044
2045 2014-07-11 Yao Qi <yao@codesourcery.com>
2046
2047 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2048 'add sp, #imm'.
2049 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2050
2051 2014-07-11 Gary Benson <gbenson@redhat.com>
2052
2053 * amd64-linux-nat.c (gdbcore.h): Remove include.
2054 (regset.h): Likewise.
2055 (nat/linux-btrace.h): Likewise.
2056 (btrace.h): Likewise.
2057 (gdb_assert.h): Likewise.
2058 (string.h): Likewise.
2059 (sys/uio.h): Likewise.
2060 (sys/debugreg.h): Likewise.
2061 (sys/syscall.h): Likewise.
2062 (sys/procfs.h): Likewise.
2063 (sys/user.h): Likewise.
2064 (asm/ptrace.h): Likewise.
2065 (i386-nat.h): Likewise.
2066 * i386-linux-nat.c (i386-nat.h): Likewise.
2067 (regset.h): Likewise.
2068 (target.h): Likewise.
2069 (linux-nat.h): Likewise.
2070 (nat/linux-btrace.h): Likewise.
2071 (btrace.h): Likewise.
2072 (gdb_assert.h): Likewise.
2073 (string.h): Likewise.
2074 (sys/uio.h): Likewise.
2075 (sys/user.h): Likewise.
2076 (sys/procfs.h): Likewise.
2077 (sys/reg.h): Likewise.
2078 (sys/debugreg.h): Likewise.
2079 (ORIG_EAX): Remove definition.
2080
2081 2014-07-11 Gary Benson <gbenson@redhat.com>
2082
2083 * i386-linux-nat.h: New file.
2084 * x86-linux-nat.h: Likewise.
2085 * x86-linux-nat.c: Likewise.
2086 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2087 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2088 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2089 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2090 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2091 (PTRACE_SETREGSET): Likewise.
2092 (arch_lwp_info): Now in x86-linux-nat.c.
2093 (have_ptrace_getregset): Now in x86-linux-nat.h.
2094 (x86_linux_dr_get): Now in x86-linux-nat.c.
2095 (x86_linux_dr_set): Likewise.
2096 (x86_linux_dr_get_addr): Likewise.
2097 (x86_linux_dr_get_control): Likewise.
2098 (x86_linux_dr_get_status): Likewise.
2099 (update_debug_registers_callback): Likewise.
2100 (x86_linux_dr_set_control): Likewise.
2101 (x86_linux_dr_set_addr): Likewise.
2102 (x86_linux_prepare_to_resume): Likewise.
2103 (x86_linux_new_thread): Likewise.
2104 (x86_linux_new_fork): Likewise.
2105 (x86_linux_get_thread_area): Likewise.
2106 (super_post_startup_inferior): Likewise.
2107 (x86_linux_child_post_startup_inferior): Likewise.
2108 (AMD64_LINUX_USER64_CS): Likewise.
2109 (AMD64_LINUX_X32_DS): Likewise.
2110 (x86_linux_read_description): Likewise.
2111 (x86_linux_enable_btrace): Likewise.
2112 (x86_linux_disable_btrace): Likewise.
2113 (x86_linux_teardown_btrace): Likewise.
2114 (x86_linux_read_btrace): Likewise.
2115 (x86_linux_create_target): Likewise.
2116 (x86_linux_add_target): Likewise.
2117 * i386-linux-nat.c (x86-linux-nat.h): New include.
2118 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2119 (PTRACE_SETREGSET): Likewise.
2120 (arch_lwp_info): Now in x86-linux-nat.c.
2121 (have_ptrace_getregset): Now in x86-linux-nat.h.
2122 (x86_linux_dr_get): Now in x86-linux-nat.c.
2123 (x86_linux_dr_set): Likewise.
2124 (x86_linux_dr_get_addr): Likewise.
2125 (x86_linux_dr_get_control): Likewise.
2126 (x86_linux_dr_get_status): Likewise.
2127 (update_debug_registers_callback): Likewise.
2128 (x86_linux_dr_set_control): Likewise.
2129 (x86_linux_dr_set_addr): Likewise.
2130 (x86_linux_prepare_to_resume): Likewise.
2131 (x86_linux_new_thread): Likewise.
2132 (x86_linux_new_fork): Likewise.
2133 (x86_linux_get_thread_area): Likewise.
2134 (super_post_startup_inferior): Likewise.
2135 (x86_linux_child_post_startup_inferior): Likewise.
2136 (AMD64_LINUX_USER64_CS): Likewise.
2137 (AMD64_LINUX_X32_DS): Likewise.
2138 (x86_linux_read_description): Likewise.
2139 (x86_linux_enable_btrace): Likewise.
2140 (x86_linux_disable_btrace): Likewise.
2141 (x86_linux_teardown_btrace): Likewise.
2142 (x86_linux_read_btrace): Likewise.
2143 (x86_linux_create_target): Likewise.
2144 (x86_linux_add_target): Likewise.
2145
2146 2014-07-11 Gary Benson <gbenson@redhat.com>
2147
2148 * amd64-linux-nat.c: Comment and whitespace changes.
2149 * i386-linux-nat.c: Comment and whitespace changes.
2150
2151 2014-07-11 Gary Benson <gbenson@redhat.com>
2152
2153 * amd64-linux-nat.c (x86_linux_create_target): New function.
2154 (x86_linux_add_target): Likewise.
2155 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2156 * i386-linux-nat.c (x86_linux_create_target): New function.
2157 (x86_linux_add_target): Likewise.
2158 (_initialize_i386_linux_nat): Delegate to the above new functions.
2159
2160 2014-07-11 Gary Benson <gbenson@redhat.com>
2161
2162 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2163 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2164 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2165 (ps_get_thread_area): Delegate to the above.
2166
2167 2014-07-11 Gary Benson <gbenson@redhat.com>
2168
2169 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2170 x86_linux_read_description. All uses updated. amd64-specific
2171 code conditionalized. Conditionalized i386-specific code added.
2172 Redundant cast removed.
2173 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2174 x86_linux_read_description. All uses updated. i386-specific
2175 code conditionalized. Conditionalized amd64-specific code added.
2176 One sizeof replaced with the actual type it is describing.
2177
2178 2014-07-11 Gary Benson <gbenson@redhat.com>
2179
2180 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2181 x86_linux_dr_get. All uses updated.
2182 (amd64_linux_dr_set): Renamed to
2183 x86_linux_dr_set. All uses updated.
2184 (amd64_linux_dr_get_addr): Renamed to
2185 x86_linux_dr_get_addr. All uses updated.
2186 (amd64_linux_dr_get_control): Renamed to
2187 x86_linux_dr_get_control. All uses updated.
2188 (amd64_linux_dr_get_status): Renamed to
2189 x86_linux_dr_get_status. All uses updated.
2190 (amd64_linux_dr_set_control): Renamed to
2191 x86_linux_dr_set_control. All uses updated.
2192 (amd64_linux_dr_set_addr): Renamed to
2193 x86_linux_dr_set_addr. All uses updated.
2194 (amd64_linux_prepare_to_resume): Renamed to
2195 x86_linux_prepare_to_resume. All uses updated.
2196 (amd64_linux_new_thread): Renamed to
2197 x86_linux_new_thread. All uses updated.
2198 (amd64_linux_new_fork): Renamed to
2199 x86_linux_new_fork. All uses updated.
2200 (amd64_linux_child_post_startup_inferior): Renamed to
2201 x86_linux_child_post_startup_inferior. All uses updated.
2202 (amd64_linux_enable_btrace): Renamed to
2203 x86_linux_enable_btrace. All uses updated.
2204 (amd64_linux_disable_btrace): Renamed to
2205 x86_linux_disable_btrace. All uses updated.
2206 (amd64_linux_teardown_btrace): Renamed to
2207 x86_linux_teardown_btrace. All uses updated.
2208 (amd64_linux_read_btrace): Renamed to
2209 x86_linux_read_btrace. All uses updated.
2210 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2211 x86_linux_dr_get. All uses updated.
2212 (i386_linux_dr_set): Renamed to
2213 x86_linux_dr_set. All uses updated.
2214 (i386_linux_dr_get_addr): Renamed to
2215 x86_linux_dr_get_addr. All uses updated.
2216 (i386_linux_dr_get_control): Renamed to
2217 x86_linux_dr_get_control. All uses updated.
2218 (i386_linux_dr_get_status): Renamed to
2219 x86_linux_dr_get_status. All uses updated.
2220 (i386_linux_dr_set_control): Renamed to
2221 x86_linux_dr_set_control. All uses updated.
2222 (i386_linux_dr_set_addr): Renamed to
2223 x86_linux_dr_set_addr. All uses updated.
2224 (i386_linux_prepare_to_resume): Renamed to
2225 x86_linux_prepare_to_resume. All uses updated.
2226 (i386_linux_new_thread): Renamed to
2227 x86_linux_new_thread. All uses updated.
2228 (i386_linux_new_fork): Renamed to
2229 x86_linux_new_fork. All uses updated.
2230 (i386_linux_child_post_startup_inferior): Renamed to
2231 x86_linux_child_post_startup_inferior. All uses updated.
2232 (i386_linux_enable_btrace): Renamed to
2233 x86_linux_enable_btrace. All uses updated.
2234 (i386_linux_disable_btrace): Renamed to
2235 x86_linux_disable_btrace. All uses updated.
2236 (i386_linux_teardown_btrace): Renamed to
2237 x86_linux_teardown_btrace. All uses updated.
2238 (i386_linux_read_btrace): Renamed to
2239 x86_linux_read_btrace. All uses updated.
2240
2241 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2242
2243 * remote.c (extended_remote_post_attach): New function.
2244 (init_extended_remote_ops): Install it as to_post_attach method.
2245
2246 2014-07-09 Pedro Alves <palves@redhat.com>
2247
2248 * infcmd.c (attach_command_post_wait): Don't call
2249 target_terminal_inferior here.
2250 (attach_command): Call it here instead.
2251
2252 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2253
2254 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2255 field.
2256 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2257 from varobj.c, with additional checks.
2258 (c_varobj_ops): Fill in is_path_expr_parent field.
2259 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2260 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2261 field.
2262 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2263 ops method.
2264 (varobj_default_is_path_expr_parent): New function.
2265 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2266 (varobj_default_is_path_expr_parent): Declare new function.
2267
2268 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2269
2270 * infcmd.c (finish_backward): Turn internal error into normal error.
2271
2272 2014-07-07 Pedro Alves <palves@redhat.com>
2273
2274 PR gdb/17096
2275 * remote.c (async_handle_remote_sigint)
2276 (async_handle_remote_sigint_twice): Call
2277 gdb_call_async_signal_handler instead of
2278 mark_async_signal_handler.
2279
2280 2014-07-07 Tom Tromey <tromey@redhat.com>
2281
2282 * target-delegates.c: Rebuild.
2283 * target.c (target_info_record): Remove.
2284 * record.c (info_record_command): Unconditionally call
2285 to_info_record.
2286 * target.h (struct target_ops) <to_info_record>: Use
2287 TARGET_DEFAULT_IGNORE.
2288 (target_info_record): Remove.
2289
2290 2014-07-07 Tom Tromey <tromey@redhat.com>
2291
2292 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2293 TARGET_DEFAULT_NORETURN.
2294 * target.c (generic_tls_error): New function.
2295 (target_translate_tls_address): Don't search target stack.
2296 * target-delegates.c: Rebuild.
2297 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2298 stack.
2299 * linux-thread-db.c (thread_db_get_thread_local_address):
2300 Unconditionally call beneath target.
2301
2302 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2303
2304 * cli/cli-logging.c (pop_output_files): Assign targerr to
2305 gdb_stdtargerr.
2306
2307 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2308
2309 * MAINTAINERS (Write After Approval): Update my email address.
2310
2311 2014-07-02 Gary Benson <gbenson@redhat.com>
2312
2313 * proc-service.c (ps_xfer_memory): Update comment.
2314 (ps_pstop): Remove unused function.
2315 (ps_pcontinue): Likewise.
2316 (ps_lstop): Likewise.
2317 (ps_lcontinue): Likewise.
2318 (ps_lgetxregsize): Likewise.
2319 (ps_lgetxregs): Likewise.
2320 (ps_lsetxregs): Likewise.
2321 (ps_plog): Likewise.
2322 (ps_ptread): Likewise.
2323 (ps_ptwrite): Likewise.
2324
2325 2014-07-01 Mark Wielaard <mjw@redhat.com>
2326
2327 * dwarf2read.c (add_array_cv_type): New function.
2328 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2329 (read_tag_volatile_type): Likewise.
2330
2331 2014-07-01 Tom Tromey <tromey@redhat.com>
2332
2333 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2334 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2335 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2336 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2337 * command.h (cmd_cfunc_ftype): Move earlier.
2338 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2339 (add_com, add_info): Use cmd_cfunc_ftype.
2340
2341 2014-06-30 Tom Tromey <tromey@redhat.com>
2342
2343 * symtab.c (operator_chars): Make parameters and return type
2344 const.
2345 (file_matches): Make "files" const.
2346 (struct search_symbols_data) <files>: Now const.
2347 (search_symbols): Make "regexp" and "files" parameters const.
2348 Update.
2349 (symtab_symbol_info): Remove cast.
2350 (rbreak_command): Update.
2351 * symtab.h (search_symbols): Update.
2352
2353 2014-06-27 Yao Qi <yao@codesourcery.com>
2354
2355 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2356 Change parameter type to 'struct thread_info *'. Caller
2357 updated.
2358 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2359 Update declaration.
2360 * dummy-frame.c (struct dummy_frame_id): New.
2361 (dummy_frame_id_eq): New function.
2362 (struct dummy_frame) <id>: Change its type to 'struct
2363 dummy_frame_id'.
2364 (dummy_frame_push): Add parameter ptid and save it in
2365 dummy_frame_id.
2366 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2367 inferior_ptid.
2368 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2369 to inferior_ptid.
2370 (lookup_dummy_frame): Change parameter type to 'struct
2371 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2372 instead of frame_id_eq.
2373 (dummy_frame_pop): Add parameter ptid. Callers updated.
2374 Update comments. Compose dummy_frame_id and pass it to
2375 lookup_dummy_frame.
2376 (dummy_frame_discard): Add parameter ptid.
2377 (dummy_frame_sniffer): Compose dummy_frame_id and call
2378 dummy_frame_id_eq instead of frame_id_eq.
2379 (fprint_dummy_frames): Print ptid.
2380 * dummy-frame.h: Remove comments.
2381 (dummy_frame_push): Add ptid in declaration.
2382 (dummy_frame_pop, dummy_frame_discard): Likewise.
2383
2384 2014-06-26 Tom Tromey <tromey@redhat.com>
2385
2386 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2387 * command.h (error_no_arg): Update.
2388
2389 2014-06-26 Tom Tromey <tromey@redhat.com>
2390
2391 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2392 (do_show_command): Make "arg" const.
2393 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2394
2395 2014-06-26 Tom Tromey <tromey@redhat.com>
2396
2397 * record-full.c (record_full_get_bookmark): Make "args" const.
2398 (record_full_goto_bookmark): Make "raw_bookmark" const.
2399 * record.c (record_goto): New function.
2400 (cmd_record_goto): Use it. Now static.
2401 * record.h (record_goto): Declare.
2402 (cmd_record_goto): Remove declaration.
2403 * target-delegates.c: Rebuild.
2404 * target.h (struct target_ops) <to_get_bookmark,
2405 to_goto_bookmark>: Make parameter const.
2406
2407 2014-06-26 Tom Tromey <tromey@redhat.com>
2408
2409 * defs.h (generic_load): Update.
2410 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2411 * monitor.c (monitor_load): Make "args" const.
2412 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2413 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2414 const.
2415 (mips_load): Make "file" const.
2416 * remote-sim.c (gdbsim_load): Make "args" const.
2417 * remote.c (remote_load): Make "name" const.
2418 * symfile.c (generic_load): Make "args" const.
2419 * target-delegates.c: Rebuild.
2420 * target.c (target_load): Make "arg" const.
2421 (debug_to_load): Make "args" const.
2422 * target.h (struct target_ops) <to_load>: Make parameter const.
2423 (target_load): Update.
2424
2425 2014-06-26 Tom Tromey <tromey@redhat.com>
2426
2427 PR symtab/16902:
2428 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2429 (dwarf2_physname, read_partial_die)
2430 (guess_partial_die_structure_name, fixup_partial_die)
2431 (guess_full_die_structure_name, anonymous_struct_prefix)
2432 (dwarf2_name): Use per-BFD obstack.
2433
2434 2014-06-26 Yao Qi <yao@codesourcery.com>
2435
2436 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2437 dummyframe and this_id into inner block below.
2438
2439 2014-06-26 Yao Qi <yao@codesourcery.com>
2440
2441 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2442 with "signal_pass[0]" in the initialization of signal_pass.
2443
2444 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2445
2446 * record-btrace.c (record_btrace_generating_corefile)
2447 (record_btrace_prepare_to_generate_core)
2448 (record_btrace_done_generating_core): New.
2449 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2450 (record_btrace_store_registers, record_btrace_prepare_to_store):
2451 Forward request when generating a core file.
2452 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2453 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2454 to_done_generating_core.
2455
2456 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2457
2458 * target.h (target_ops) <to_prepare_to_generate_core>
2459 <to_done_generating_core>: New.
2460 (target_prepare_to_generate_core, target_done_generating_core): New.
2461 * target.c (target_prepare_to_generate_core)
2462 (target_done_generating_core): New.
2463 * target-delegates.c: Regenerate.
2464 * gcore.c: (write_gcore_file): Rename to ...
2465 (write_gcore_file_1): ...this.
2466 (write_gcore_file): Call target_prepare_to_generate_core
2467 and target_done_generating_core.
2468
2469 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2470
2471 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2472 * gcore.c (write_gcore_file): Free memory returned from
2473 make_corefile_notes.
2474 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2475 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2476
2477 2014-06-24 Yao Qi <yao@codesourcery.com>
2478
2479 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2480 (arm_linux_init_abi): Set skip_trampoline_code with
2481 gdbarch_skip_trampoline_code instead of
2482 find_solib_trampoline_target.
2483
2484 2014-06-24 Yao Qi <yao@codesourcery.com>
2485
2486 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2487 arm_skip_bx_reg returns non-zero.
2488
2489 2014-06-24 Yao Qi <yao@codesourcery.com>
2490
2491 * arm-tdep.c (arm_skip_bx_reg): New function.
2492 (arm_skip_stub): Call arm_skip_bx_reg.
2493
2494 2014-06-23 Don Breazeal <donb@codesourcery.com>
2495
2496 * MAINTAINERS: Add myself as write-after-approval maintainer.
2497
2498 2014-06-23 Pedro Alves <palves@redhat.com>
2499
2500 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2501 DR_CONTROL before setting DR0..DR3.
2502 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2503 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2504 bits of DR_CONTROL related to the debug register slot being
2505 disabled. If all slots are vacant, clear local slowdown as well,
2506 and assert DR_CONTROL is 0.
2507
2508 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2509
2510 * python/lib/gdb/command/xmethods.py
2511 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2512 current progspace only if the string "progspace" matches LOCUS_RE.
2513
2514 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2515
2516 Fix --with-system-readline with readline-6.3 patch 5.
2517 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2518 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2519 types.
2520
2521 2014-06-20 Tom Tromey <tromey@redhat.com>
2522
2523 * dwarf2read.c (dw2_get_real_path): Use correct type in
2524 OBSTACK_CALLOC.
2525 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2526
2527 2014-06-20 Gary Benson <gbenson@redhat.com>
2528
2529 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2530 * common/glibc_thread_db.h: Likewise.
2531 * common/i386-cpuid.h: Likewise.
2532 * common/i386-gcc-cpuid.h: Likewise.
2533 * common/linux-btrace.h: Likewise.
2534 * common/linux-osdata.h: Likewise.
2535 * common/linux-procfs.h: Likewise.
2536 * common/linux-ptrace.h: Likewise.
2537 * common/mips-linux-watch.h: Likewise.
2538 * common/linux-btrace.c: Moved to nat.
2539 * common/linux-osdata.c: Likewise.
2540 * common/linux-procfs.c: Likewise.
2541 * common/linux-ptrace.c: Likewise.
2542 * common/mips-linux-watch.c: Likewise.
2543 * nat/gdb_thread_db.h: Moved from common.
2544 * nat/glibc_thread_db.h: Likewise.
2545 * nat/i386-cpuid.h: Likewise.
2546 * nat/i386-gcc-cpuid.h: Likewise.
2547 * nat/linux-btrace.c: Likewise.
2548 * nat/linux-btrace.h: Likewise.
2549 * nat/linux-osdata.c: Likewise.
2550 * nat/linux-osdata.h: Likewise.
2551 * nat/linux-procfs.c: Likewise.
2552 * nat/linux-procfs.h: Likewise.
2553 * nat/linux-ptrace.c: Likewise.
2554 * nat/linux-ptrace.h: Likewise.
2555 * nat/mips-linux-watch.c: Likewise.
2556 * nat/mips-linux-watch.h: Likewise.
2557 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2558 (object file files): Reordered.
2559 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2560 of glibc_thread_db.h.
2561
2562 2014-06-20 Gary Benson <gbenson@redhat.com>
2563
2564 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2565 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2566 (i386_dr_low): Likewise.
2567 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2568 (i386_dr_low_set_addr): Likewise.
2569 (i386_dr_low_get_addr): Likewise.
2570 (i386_dr_low_can_set_control): Likewise.
2571 (i386_dr_low_set_control): Likewise.
2572 (i386_dr_low_get_control): Likewise.
2573 (i386_dr_low_get_status): Likewise.
2574 (i386_get_debug_register_length): Likewise.
2575 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2576 (i386_dr_low): Likewise.
2577 * nat/i386-dregs.c (i386-low.h): Remove include.
2578 (i386-nat.h): Likewise.
2579 (nat/i386-dregs.h): New include.
2580 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2581 (i386_dr_low_set_addr): Likewise.
2582 (i386_dr_low_get_addr): Likewise.
2583 (i386_dr_low_can_set_control): Likewise.
2584 (i386_dr_low_set_control): Likewise.
2585 (i386_dr_low_get_control): Likewise.
2586 (i386_dr_low_get_status): Likewise.
2587 (i386_get_debug_register_length): Likewise.
2588 (debug_hw_points): Likewise.
2589
2590 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2591
2592 * Makefile.in (SFILES): Add d-exp.y.
2593 (YYFILES): Add d-exp.c.
2594 (YYOBJ): Add d-exp.o.
2595 (local-maintainer-clean): Delete d-exp.c.
2596 * d-exp.y: New file.
2597 * d-lang.h (d_parse): New declaration.
2598 (d_error): New declaration.
2599 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2600 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2601 PREC_ORDER operators.
2602 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2603
2604 2014-06-19 Yao Qi <yao@codesourcery.com>
2605
2606 * gdbthread.h (any_running): Remove the declaration.
2607 * thread.c (any_running): Remove.
2608
2609 2014-06-19 Yao Qi <yao@codesourcery.com>
2610
2611 * gdbthread.h (struct thread_info) <state>: Change its type to
2612 'enum thread_state'. Update comments.
2613
2614 2014-06-19 Pedro Alves <palves@redhat.com>
2615
2616 * gdbthread.h (ALL_THREADS): Delete.
2617 (ALL_NON_EXITED_THREADS): New macro.
2618 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2619 instead of ALL_THREADS.
2620 * infrun.c (find_thread_needs_step_over)
2621 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2622 instead of ALL_THREADS.
2623 * record-btrace.c (record_btrace_open)
2624 (record_btrace_stop_recording, record_btrace_close)
2625 (record_btrace_is_replaying, record_btrace_resume)
2626 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2627 * remote.c (append_pending_thread_resumptions): Likewise.
2628 * thread.c (thread_apply_all_command): Likewise.
2629
2630 2014-06-19 Gary Benson <gbenson@redhat.com>
2631
2632 * i386-nat.c (i386_stopped_by_watchpoint):
2633 Use i386_dr_stopped_by_watchpoint.
2634 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2635 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2636
2637 2014-06-19 Gary Benson <gbenson@redhat.com>
2638
2639 * nat/i386-dregs.c: New file.
2640 * Makefile.in (i386-dregs.o): New rule.
2641 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2642 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2643 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2644 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2645 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2646 * config/i386/go32.mh (NATDEPFILES): Likewise.
2647 * config/i386/linux.mh (NATDEPFILES): Likewise.
2648 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2649 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2650 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2651 * i386-nat.h (debug_hw_points): New declaration.
2652 * i386-nat.c (breakpoint.h): Remove include.
2653 (command.h): Likewise.
2654 (target.h): Likewise.
2655 (gdb_assert.h): Likewise.
2656 (debug_hw_points): Made nonstatic.
2657 (debug_printf): Now in i386-dregs.c.
2658 (TARGET_HAS_DR_LEN_8): Likewise.
2659 (DR_CONTROL_SHIFT): Likewise.
2660 (DR_CONTROL_SIZE): Likewise.
2661 (DR_RW_EXECUTE): Likewise.
2662 (DR_RW_WRITE): Likewise.
2663 (DR_RW_READ): Likewise.
2664 (DR_RW_IORW): Likewise.
2665 (DR_LEN_1): Likewise.
2666 (DR_LEN_2): Likewise.
2667 (DR_LEN_4): Likewise.
2668 (DR_LEN_8): Likewise.
2669 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2670 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2671 (DR_ENABLE_SIZE): Likewise.
2672 (DR_LOCAL_SLOWDOWN): Likewise.
2673 (DR_GLOBAL_SLOWDOWN): Likewise.
2674 (DR_CONTROL_RESERVED): Likewise.
2675 (I386_DR_CONTROL_MASK): Likewise.
2676 (I386_DR_VACANT): Likewise.
2677 (I386_DR_LOCAL_ENABLE): Likewise.
2678 (I386_DR_GLOBAL_ENABLE): Likewise.
2679 (I386_DR_DISABLE): Likewise.
2680 (I386_DR_SET_RW_LEN): Likewise.
2681 (I386_DR_GET_RW_LEN): Likewise.
2682 (I386_DR_WATCH_HIT): Likewise.
2683 (i386_wp_op_t): Likewise.
2684 (i386_show_dr): Likewise.
2685 (i386_length_and_rw_bits): Likewise.
2686 (i386_insert_aligned_watchpoint): Likewise.
2687 (i386_remove_aligned_watchpoint): Likewise.
2688 (i386_handle_nonaligned_watchpoint): Likewise.
2689 (i386_update_inferior_debug_regs): Likewise.
2690 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2691 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2692 (i386_region_ok_for_watchpoint):
2693 Use i386_dr_region_ok_for_watchpoint.
2694 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2695
2696 2014-06-19 Gary Benson <gbenson@redhat.com>
2697
2698 * i386-nat.c (i386_insert_hw_breakpoint): Use
2699 i386_insert_watchpoint.
2700 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2701
2702 2014-06-19 Gary Benson <gbenson@redhat.com>
2703
2704 * i386-nat.c (i386_dr_show): Renamed to
2705 i386_show_dr and made static. All uses updated.
2706 (i386_dr_length_and_rw_bits): Renamed to
2707 i386_length_and_rw_bits and made static.
2708 All uses updated.
2709 (i386_dr_insert_aligned_watchpoint): Renamed to
2710 i386_insert_aligned_watchpoint and made static.
2711 All uses updated.
2712 (i386_dr_remove_aligned_watchpoint): Renamed to
2713 i386_remove_aligned_watchpoint and made static.
2714 All uses updated.
2715 (i386_dr_update_inferior_debug_regs): Renamed to
2716 i386_update_inferior_debug_regs and made static.
2717 All uses updated.
2718 * nat/i386-dregs.h (i386_dr_show): Removed.
2719 (i386_dr_length_and_rw_bits): Likewise.
2720 (i386_dr_insert_aligned_watchpoint): Likewise.
2721 (i386_dr_remove_aligned_watchpoint): Likewise.
2722 (i386_dr_update_inferior_debug_regs): Likewise.
2723
2724 2014-06-19 Gary Benson <gbenson@redhat.com>
2725
2726 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2727 * configure: Regenerate.
2728 * config.in: Likewise.
2729 * main.c (signal.h): New include.
2730 (setup_alternate_signal_stack): New function.
2731 (captured_main): Call the above.
2732 * cp-support.c (signal.h): New include.
2733 (catch_demangler_crashes): New flag.
2734 (SIGJMP_BUF): New define.
2735 (SIGSETJMP): Likewise.
2736 (SIGLONGJMP): Likewise.
2737 (gdb_demangle_jmp_buf): New static global.
2738 (gdb_demangle_attempt_core_dump): Likewise.
2739 (gdb_demangle_signal_handler): New function.
2740 (gdb_demangle): If catch_demangler_crashes is set, install the
2741 above signal handler before calling bfd_demangle, and restore
2742 the original signal handler afterwards. Display the offending
2743 symbol and call demangler_warning the first time a segmentation
2744 fault is caught.
2745 (_initialize_cp_support): New maint set/show command.
2746
2747 2014-06-19 Gary Benson <gbenson@redhat.com>
2748
2749 * utils.h (resource_limit_kind): New enum.
2750 (can_dump_core): New declaration.
2751 (warn_cant_dump_core): Likewise.
2752 (dump_core): Likewise.
2753 * utils.c (dump_core): Made nonstatic. Added new
2754 parameter "limit_kind".
2755 (can_dump_core): Made nonstatic. Moved printing code to...
2756 (warn_cant_dump_core): New function.
2757 (can_dump_core_warn): Likewise.
2758 (internal_vproblem): Replace calls to can_dump_core with
2759 calls to can_dump_core_warn. Supply new argument to each.
2760
2761 2014-06-19 Gary Benson <gbenson@redhat.com>
2762
2763 * utils.h (demangler_vwarning): New declaration.
2764 (demangler_warning): Likewise.
2765 * utils.c (struct internal_problem)
2766 <user_settable_should_quit>: New field.
2767 <user_settable_should_dump_core>: Likewise
2768 (internal_error_problem): Add values for above new fields.
2769 (internal_warning_problem): Likewise.
2770 (demangler_warning_problem): New static global.
2771 (demangler_vwarning): New function.
2772 (demangler_warning): Likewise.
2773 (add_internal_problem_command): Selectively add commands.
2774 (_initialize_utils): New internal problem command.
2775 * maint.c (maintenance_demangler_warning): New function.
2776 (_initialize_maint_cmds): New command.
2777
2778 2014-06-18 Tom Tromey <tromey@redhat.com>
2779
2780 * f-valprint.c (info_common_command_for_block): Update.
2781 * symtab.h (struct general_symbol_info) <common_block>: Now
2782 const.
2783
2784 2014-06-18 Tom Tromey <tromey@redhat.com>
2785
2786 * symtab.h (struct symtab) <blockvector>: Now const.
2787 * ada-lang.c (ada_add_global_exceptions): Update.
2788 * buildsym.c (augment_type_symtab): Update.
2789 * dwarf2read.c (dw2_lookup_symbol): Update.
2790 * jit.c (finalize_symtab): Update.
2791 * jv-lang.c (add_class_symtab_symbol): Update.
2792 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2793 Update.
2794 * objfiles.c (objfile_relocate1): Update.
2795 * psymtab.c (lookup_symbol_aux_psymtabs)
2796 (maintenance_check_psymtabs): Update.
2797 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2798 Update.
2799 * spu-tdep.c (spu_catch_start): Update.
2800 * symmisc.c (dump_symtab_1): Update.
2801 * symtab.c (lookup_global_symbol_from_objfile)
2802 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2803 (basic_lookup_transparent_type_quick)
2804 (basic_lookup_transparent_type, find_pc_sect_symtab)
2805 (find_pc_sect_line, search_symbols): Update.
2806 * block.c (find_block_in_blockvector): Make "bl" const.
2807 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2808 const.
2809 (blockvector_contains_pc): Make "bv" const.
2810 (block_for_pc_sect): Update.
2811 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2812 (blockvector_contains_pc): Update.
2813 * breakpoint.c (resolve_sal_pc): Update.
2814 * inline-frame.c (block_starting_point_at): Update.
2815
2816 2014-06-18 Tom Tromey <tromey@redhat.com>
2817
2818 * completer.c (complete_line): Make "line_buffer" const.
2819 * completer.h (complete_line): Update.
2820
2821 2014-06-18 Tom Tromey <tromey@redhat.com>
2822
2823 * symtab.c (add_macro_name): Remove unneeded cast.
2824
2825 2014-06-18 Tom Tromey <tromey@redhat.com>
2826
2827 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2828 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2829
2830 2014-06-18 Tom Tromey <tromey@redhat.com>
2831
2832 * probe.c (info_probes_for_ops): Make "arg" const.
2833 * probe.h (info_probes_for_ops): Update.
2834
2835 2014-06-18 Tom Tromey <tromey@redhat.com>
2836
2837 * varobj.c (varobj_create): Update.
2838 * valops.c (value_of_this): Update.
2839 * tracepoint.c (add_local_symbols, scope_info): Update.
2840 * symtab.h (struct general_symbol_info) <block>: Now const.
2841 * symtab.c (skip_prologue_sal)
2842 (default_make_symbol_completion_list_break_on)
2843 (skip_prologue_using_sal): Update.
2844 * stack.h (iterate_over_block_locals)
2845 (iterate_over_block_local_vars): Update.
2846 * stack.c (print_frame_args): Update.
2847 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2848 parameter const.
2849 (get_selected_block): Make return type const.
2850 * python/py-frame.c (frapy_block): Update.
2851 * python/py-block.c (gdbpy_block_for_pc): Update.
2852 * p-exp.y (%union) <bval>: Now const.
2853 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2854 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2855 * m2-exp.y (%union) <bval>: Now const.
2856 * linespec.c (get_current_search_block): Make return type const.
2857 (create_sals_line_offset, find_label_symbols): Update.
2858 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2859 Update.
2860 (block_starting_point_at): Make "block" const.
2861 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2862 (check_exception_resume): Update.
2863 * guile/scm-frame.c (gdbscm_frame_block): Update.
2864 * guile/scm-block.c (gdbscm_lookup_block): Update.
2865 * frame.h (get_frame_block): Update.
2866 (get_selected_block): Make return type const.
2867 * frame.c (frame_id_inner): Update.
2868 * f-valprint.c (info_common_command_for_block)
2869 (info_common_command): Update.
2870 * dwarf2loc.c (dwarf2_find_location_expression)
2871 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2872 (locexpr_describe_location_piece): Update.
2873 * c-exp.y (%union) <bval>: Now const.
2874 * breakpoint.c (resolve_sal_pc): Update.
2875 * blockframe.c (get_frame_block):Make return type const.
2876 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2877 (block_innermost_frame): Update.
2878 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2879 (block_for_pc, block_for_pc_sect): Update.
2880 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2881 'pblock' const.
2882 (block_for_pc_sect, block_for_pc): Make return type const.
2883 * ax-gdb.c (gen_expr): Update.
2884 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2885 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2886 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2887 (ada_read_var_value): Update.
2888 * ada-exp.y (struct name_info) <block>: Now const.
2889 (%union): Likewise.
2890 (block_lookup): Constify.
2891
2892 2014-06-18 Gary Benson <gbenson@redhat.com>
2893
2894 * nat/i386-dregs.h: New file.
2895 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2896 * i386-nat.h (i386-dregs.h): New include.
2897 (DR_FIRSTADDR): Now in i386-dregs.h.
2898 (DR_LASTADDR): Likewise.
2899 (DR_NADDR): Likewise.
2900 (DR_STATUS): Likewise.
2901 (DR_CONTROL): Likewise.
2902 (i386_debug_reg_state): Likewise.
2903 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2904
2905 2014-06-18 Don Breazeal <donb@codesourcery.com>
2906
2907 * breakpoint.c (set_longjmp_breakpoint): Call
2908 momentary_breakpoint_from_master with additional argument.
2909 (set_longjmp_breakpoint_for_call_dummy): Call
2910 momentary_breakpoint_from_master with additional argument.
2911 (set_std_terminate_breakpoint): Call
2912 momentary_breakpoint_from_master with additional argument.
2913 (momentary_breakpoint_from_master): Add argument to function
2914 definition and use it to initialize structure member flag.
2915 (clone_momentary_breakpoint): Call
2916 momentary_breakpoint_from_master with additional argument.
2917 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2918 member flags set in momentary_breakpoint_from_master.
2919
2920 2014-06-18 Gary Benson <gbenson@redhat.com>
2921
2922 * i386-nat.c (i386_show_dr): Renamed to
2923 i386_dr_show and made nonstatic. All uses updated.
2924 (i386_length_and_rw_bits): Renamed to
2925 i386_dr_length_and_rw_bits and made nonstatic.
2926 All uses updated.
2927 (i386_insert_aligned_watchpoint): Renamed to
2928 i386_dr_insert_aligned_watchpoint and made nonstatic.
2929 All uses updated.
2930 (i386_remove_aligned_watchpoint): Renamed to
2931 i386_dr_remove_aligned_watchpoint and made nonstatic.
2932 All uses updated.
2933 (i386_update_inferior_debug_regs): Renamed to
2934 i386_dr_update_inferior_debug_regs and made nonstatic.
2935 All uses updated.
2936
2937 2014-06-18 Gary Benson <gbenson@redhat.com>
2938
2939 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2940 (i386_dr_low_can_set_control): Likewise.
2941 (i386_dr_low_set_addr): Likewise.
2942 (i386_dr_low_set_control): Likewise.
2943 (i386_dr_low_get_addr): Likewise.
2944 (i386_dr_low_get_status): Likewise.
2945 (i386_dr_low_get_control): Likewise.
2946 (i386_insert_aligned_watchpoint): Use new macros.
2947 (i386_update_inferior_debug_regs): Likewise.
2948 (i386_stopped_data_address): Likewise.
2949
2950 2014-06-18 Gary Benson <gbenson@redhat.com>
2951
2952 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2953 New parameter. All uses updated.
2954
2955 2014-06-18 Gary Benson <gbenson@redhat.com>
2956
2957 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2958 All uses updated.
2959
2960 2014-06-18 Gary Benson <gbenson@redhat.com>
2961
2962 * i386-nat.c (debug_printf): New macro.
2963 (i386_get_debug_register_length): Likewise.
2964 (TARGET_HAS_DR_LEN_8): Use above macro.
2965 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2966 and printf_unfiltered. Use phex to format values.
2967
2968 2014-06-18 Gary Benson <gbenson@redhat.com>
2969
2970 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2971 Make const.
2972
2973 2014-06-18 Gary Benson <gbenson@redhat.com>
2974
2975 * i386-nat.c: Comment changes.
2976
2977 2014-06-18 Gary Benson <gbenson@redhat.com>
2978
2979 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2980
2981 2014-06-18 Gary Benson <gbenson@redhat.com>
2982
2983 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2984 (i386_insert_aligned_watchpoint): Likewise.
2985 (i386_remove_aligned_watchpoint): Likewise.
2986 (i386_handle_nonaligned_watchpoint): Likewise.
2987
2988 2014-06-18 Gary Benson <gbenson@redhat.com>
2989
2990 * i386-nat.c: Whitespace changes.
2991
2992 2014-06-17 Samuel Bronson <naesten@gmail.com>
2993
2994 * MAINTAINERS: Update Roland McGrath's email address.
2995 Thanks to Sergio Durigan Junior for pointing out that he left
2996 Red Hat a while ago, and giving me a current address.
2997
2998 2014-06-17 Tom Tromey <tromey@redhat.com>
2999
3000 * utils.h (savestring): Remove declaration.
3001
3002 2014-06-17 Tom Tromey <tromey@redhat.com>
3003
3004 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3005
3006 2014-06-16 Keith Seitz <keiths@redhat.com>
3007
3008 PR mi/15863
3009 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3010 to update the varobj if inferior_ptid is null_ptid.
3011
3012 2014-06-16 Tom Tromey <tromey@redhat.com>
3013
3014 * target.h (struct target_ops) <to_info_proc>: Make parameter
3015 const.
3016 (target_info_proc): Update.
3017 * target.c (target_info_proc): Make "args" const.
3018 * procfs.c (procfs_info_proc): Update.
3019 * linux-tdep.c (linux_info_proc): Update.
3020 (linux_core_info_proc_mappings): Make "args" const.
3021 (linux_core_info_proc): Update.
3022 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3023 * gdbarch.c: Rebuild.
3024 * gdbarch.h: Rebuild.
3025 * corelow.c (core_info_proc): Update.
3026
3027 2014-06-16 Tom Tromey <tromey@redhat.com>
3028
3029 * target.h (struct target_ops) <to_disconnect>: Make parameter
3030 const.
3031 (target_disconnect): Update.
3032 * target.c (target_disconnect): Make "args" const.
3033 * target-delegates.c: Rebuild.
3034 * remote.c (remote_disconnect): Update.
3035 * record.h (record_disconnect): Update.
3036 * record.c (record_disconnect): Update.
3037 * inf-child.c (inf_child_disconnect): Update.
3038
3039 2014-06-16 Tom Tromey <tromey@redhat.com>
3040
3041 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3042 * target.c (debug_to_rcmd, default_rcmd): Update.
3043 * target-delegates.c: Rebuild.
3044 * remote.c (remote_rcmd): Update.
3045 * monitor.c (monitor_rcmd): Update.
3046
3047 2014-06-16 Pedro Alves <palves@redhat.com>
3048
3049 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3050 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3051 have OBJF_SHARED set.
3052 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3053 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3054 instead of OBJF_USERLOADED.
3055 * objfiles.h (OBJF_SHARED): Update comment.
3056 (userloaded_objfile_contains_address_p): Rename to ...
3057 (shared_objfile_contains_address_p): ... this, and update
3058 comments.
3059 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3060 new objfile.
3061 (remove_symbol_file_command): Skip objfiles that don't have
3062 OBJF_SHARED set.
3063
3064 2014-06-16 Tom Tromey <tromey@redhat.com>
3065
3066 * minsyms.h (prim_record_minimal_symbol)
3067 (prim_record_minimal_symbol_and_info): Update comments.
3068
3069 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3070
3071 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3072 or --without-guile, according to how GDB was built.
3073
3074 2014-06-13 Tom Tromey <tromey@redhat.com>
3075
3076 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3077 to help_list.
3078 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3079 to help_list.
3080 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3081 help_list.
3082 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3083 help_list.Pass all_commands, not -1, to help_list.
3084 * cli/cli-dump.c (dump_command, append_command)
3085 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3086 (binary_dump_command, binary_append_command): Pass all_commands,
3087 not -1, to help_list.
3088 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3089 -1, to help_list.
3090 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3091 -1, to help_list.
3092 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3093 help_list.
3094 * top.c (set_history): Pass all_commands, not -1, to help_list.
3095 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3096 all_commands, not -1, to help_list.
3097 * symfile.c (overlay_command): Pass all_commands, not -1, to
3098 help_list.
3099 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3100 help_list.
3101 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3102 help_list.
3103 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3104 -1, to help_list.
3105 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3106 not -1, to help_list.
3107 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3108 not -1, to help_list.
3109 * maint.c (maintenance_command, maintenance_info_command)
3110 (maintenance_print_command, maintenance_set_cmd): Pass
3111 all_commands, not -1, to help_list.
3112 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3113 help_list.
3114 * language.c (set_check): Pass all_commands, not -1, to help_list.
3115 * infcmd.c (unset_command): Pass all_commands, not -1, to
3116 help_list.
3117 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3118 help_list.
3119 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3120 help_list.
3121 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3122 help_list.
3123 * breakpoint.c (save_command): Pass all_commands, not -1, to
3124 help_list.
3125 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3126 all_commands, not -1, to help_list.
3127
3128 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3129
3130 * regcache.c (struct register_to_invalidate): New structure.
3131 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3132 functions.
3133 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3134
3135 2014-06-12 Yao Qi <yao@codesourcery.com>
3136
3137 * varobj.c (varobj_get_num_children): Call
3138 varobj_is_dynamic_p.
3139 (varobj_list_children): Likewise.
3140 (varobj_update): Likewise. Update comments.
3141
3142 2014-06-12 Yao Qi <yao@codesourcery.com>
3143
3144 * varobj.c (varobj_pretty_printed_p): Rename to ...
3145 (varobj_is_dynamic_p): ... this. New function.
3146 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3147 (varobj_is_dynamic_p): Declare.
3148 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3149 (mi_print_value_p, varobj_update_one): Likewise.
3150
3151 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3152 Yao Qi <yao@codesourcery.com>
3153
3154 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3155 (varobj_get_iterator): Wrap up code for pretty-printer by
3156 "#if HAVE_PYTHON" and "#endif".
3157 (update_dynamic_varobj_children): Likewise.
3158
3159 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3160 Yao Qi <yao@codesourcery.com>
3161
3162 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3163 gdb_python_initialized is false. Move some code from varobj.c.
3164 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3165 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3166 (struct varobj_item): Moved to varobj-iter.h".
3167 (varobj_clear_saved_item): New function.
3168 (update_dynamic_varobj_children): Move python-related code to
3169 py-varobj.c.
3170 (free_variable): Call varobj_clear_saved_item and
3171 varobj_iter_delete.
3172
3173 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3174 Yao Qi <yao@codesourcery.com>
3175
3176 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3177 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3178 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3179 (py-varobj.o): New rule.
3180 * python/py-varobj.c: New file.
3181 * python/python-internal.h (py_varobj_get_iterator): Declare.
3182 * varobj-iter.h: New file.
3183 * varobj.c: Include "varobj-iter.h"
3184 (struct varobj) <child_iter>: Change its type from "PyObject *"
3185 to "struct varobj_iter *".
3186 <saved_item>: Likewise.
3187 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3188 [HAVE_PYTHON] (varobj_get_iterator): New function.
3189 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3190 python-specific code to python/py-varobj.c.
3191 (install_visualizer): Call varobj_iter_delete instead of
3192 Py_XDECREF.
3193 * varobj.h (varobj_ensure_python_env): Declare.
3194
3195 2014-06-12 Yao Qi <yao@codesourcery.com>
3196
3197 * varobj.c (struct varobj_item): New structure.
3198 (create_child_with_value): Update declaration.
3199 (varobj_add_child): Replace arguments 'name' and 'value' with
3200 'item'. All callers updated.
3201 (install_dynamic_child): Likewise.
3202 (update_dynamic_varobj_children): Likewise.
3203 (varobj_add_child): Likewise.
3204 (create_child_with_value): Likewise.
3205
3206 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3207
3208 * NEWS: Create a new section for the next release branch.
3209 Rename the section of the current branch, now that it has
3210 been cut.
3211
3212 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3213
3214 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3215 * version.in: Bump version to 7.8.50.DATE-cvs.
3216
3217 2014-06-11 Pedro Alves <palves@redhat.com>
3218
3219 PR remote/17028
3220 * ser-mingw.c (net_windows_socket_check_pending): New function.
3221 (net_windows_select_thread): Ignore spurious wakeups. Use
3222 net_windows_socket_check_pending.
3223 (net_windows_wait_handle): Check for pending events with
3224 ioctlsocket, through net_windows_socket_check_pending, instead of
3225 checking the socket's event.
3226
3227 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3228
3229 * python/python-internal.h (gdb_PyObject_GetAttrString)
3230 (gdb_PyObject_HasAttrString): New inline function definitions.
3231 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3232 char * of the second argument to PyObject_GetAttrString.
3233
3234 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3235
3236 * serial.c (serial_write): Fix index of character to be printed
3237 in call to serial_logchar when serial debug traces are enabled.
3238
3239 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3240
3241 * gdbtypes (resolve_dynamic_range): Add function description.
3242
3243 2014-06-09 Pedro Alves <palves@redhat.com>
3244
3245 * linux-nat.c (linux_child_follow_fork): Initialize status with
3246 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3247 inner block. Only pass the signal to PTRACE_DETACH if in pass
3248 state.
3249
3250 2014-06-09 Gary Benson <gbenson@redhat.com>
3251
3252 * common/signals.c (gdb_signal_from_host): Reorder to separate
3253 the always-available ANSI-standard signals from the signals that
3254 require checking.
3255 (do_gdb_signal_to_host): Likewise.
3256 * proc-events.c (signal_table): Likewise.
3257
3258 2014-06-08 Hui Zhu <hui@codesourcery.com>
3259
3260 * common/linux-ptrace.c (linux_disable_event_reporting): New
3261 function.
3262 * common/linux-ptrace.h (linux_disable_event_reporting): New
3263 declaration.
3264 * linux-nat.c (linux_child_follow_fork): Do a single step before
3265 detach.
3266
3267 2014-06-07 Keith Seitz <keiths@redhat.com>
3268
3269 Revert:
3270 PR c++/16253
3271 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3272 from symbol_matches_domain in symtab.c. All local callers
3273 of symbol_matches_domain updated.
3274 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3275 search STRUCT_DOMAIN.
3276 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3277 independently. standard_lookup will do that automatically.
3278 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3279 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3280 (cp_lookup_symbol_in_namespace): Likewise.
3281 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3282 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3283 may return a STRUCT_DOMAIN match.
3284 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3285 * cp-support.c: Include language.h.
3286 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3287 VAR_DOMAIN.
3288 * psymtab.c (match_partial_symbol): Compare the requested
3289 domain with the symbol's domain directly.
3290 (lookup_partial_symbol): Likewise.
3291 * symtab.c (lookup_symbol_in_language): Explain when/why
3292 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3293 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3294 appropriate languages.
3295 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3296 and moved to ada-lang.c
3297 (lookup_block_symbol): Explain that this function only returns
3298 symbol matching the requested DOMAIN.
3299 Compare the requested domain with the symbol's domain directly.
3300 (iterate_over_symbols): Compare the requested domain with the
3301 symbol's domain directly.
3302 * symtab.h (symbol_matches_domain): Remove.
3303
3304 2014-06-06 Doug Evans <xdje42@gmail.com>
3305
3306 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3307 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3308 (gdbscm_guile_version_is_at_least): Declare.
3309 (gdbscm_scm_string_to_int): Declare.
3310 * guile/guile.c (gdbscm_guile_major_version): New global.
3311 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3312 (guile_datadir): New static global.
3313 (gdbscm_guile_data_directory): New function.
3314 (initialize_scheme_side): Update.
3315 (misc_guile_functions): Add guile-data-directory.
3316 (initialize_gdb_module): Fetch guile version number.
3317 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3318 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3319 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3320 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3321 comments.
3322 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3323 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3324 * guile/scm-value.c (gdbscm_value_to_string): Only call
3325 scm_port_conversion_strategy if Guile version >= 2.0.6.
3326
3327 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3328
3329 * main.c (print_gdb_help): Add -q and --silent.
3330
3331 2014-06-06 Gary Benson <gbenson@redhat.com>
3332
3333 * common/signals.c: Remove preprocessor conditionals for
3334 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3335 SIGSEGV and SIGTERM.
3336 * proc-events.c: Likewise.
3337
3338 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3339
3340 * symfile.c (symfile_free_objfile): Remove restriction to
3341 OBJF_USERLOADED.
3342 * symfile-mem.c (symbol_file_add_from_memory): Call
3343 add_target_sections_of_objfile.
3344
3345 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3346
3347 * guile/scm-value.c (gdbscm_history_append_x): Use
3348 'vlscm_get_value_smob_arg_unsafe' instead of
3349 'vlscm_scm_to_value'.
3350
3351 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3352
3353 PR mi/15806
3354 * utils.c (printchar): Don't escape at all if quoter is NUL.
3355 Update function documentation to clarify effect of parameter
3356 QUOTER.
3357 * remote.c (escape_buffer): Pass '\\' as the quoter to
3358 fputstrn_unfiltered.
3359 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3360 generate the output.
3361 (mi_solib_unloaded): Same.
3362
3363 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3364
3365 * development.sh: Delete.
3366 * Makefile.in (config.status): Adjust dependency on development.sh.
3367 * configure.ac: Adjust development.sh source call.
3368 * configure: Regenerate.
3369
3370 2014-06-04 Doug Evans <xdje42@gmail.com>
3371
3372 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3373 is_scheme_bkpt, spec.
3374 (bpscm_make_breakpoint_smob): Initialize new members.
3375 (gdbscm_create_breakpoint_x): Split into two ...
3376 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3377 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3378 (scheme_function breakpoint_functions): Update.
3379 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3380 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3381 register-breakpoint!.
3382
3383 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3384
3385 PR server/17023
3386 * mem-break.c (z_type_supported): Return zero if
3387 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3388
3389 2014-06-04 Tom Tromey <tromey@redhat.com>
3390
3391 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3392 value_from_contents_and_address_unresolved.
3393 (ada_template_to_fixed_record_type_1): Likewise.
3394 (ada_which_variant_applies): Likewise.
3395 * value.h (value_from_contents_and_address_unresolved): Declare.
3396 * value.c (value_from_contents_and_address_unresolved): New
3397 function.
3398 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3399 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3400 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3401
3402 2014-06-04 Tom Tromey <tromey@redhat.com>
3403
3404 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3405
3406 2014-06-04 Tom Tromey <tromey@redhat.com>
3407
3408 * procfs.c (procfs_attach): Make "args" const.
3409 * windows-nat.c (windows_attach): Make "args" const.
3410 * nto-procfs.c (procfs_attach): Make "args" const.
3411 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3412 * go32-nat.c (go32_attach): Make "args" const.
3413 * gnu-nat.c (gnu_attach): Make "args" const.
3414 * darwin-nat.c (darwin_attach): Make "args" const.
3415 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3416 * linux-nat.c (linux_nat_attach): Make "args" const.
3417 * remote.c (extended_remote_attach_1, extended_remote_attach):
3418 Make "args" const.
3419 * target.h (struct target_ops) <to_attach>: Make "args" const.
3420 (find_default_attach): Likewise.
3421 * utils.c (parse_pid_to_attach): Make "args" const.
3422 * utils.h (parse_pid_to_attach): Update.
3423
3424 2014-06-04 Tom Tromey <tromey@redhat.com>
3425
3426 * target-delegates.c: Rebuild.
3427 * target.c (default_thread_address_space): New function.
3428 (target_thread_address_space): Simplify.
3429 * target.h (struct target_ops) <to_thread_address_space>: Add
3430 TARGET_DEFAULT_FUNC.
3431
3432 2014-06-04 Doug Evans <xdje42@gmail.com>
3433
3434 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3435
3436 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3437
3438 * record-btrace.c: Include event-loop.h and inf-loop.h.
3439 (record_btrace_resume_exec_dir)
3440 (record_btrace_async_inferior_event_handler)
3441 (record_btrace_handle_async_inferior_event): New.
3442 (record_btrace_open): Create async event handler.
3443 (record_btrace_close): Delete async event handler.
3444 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3445 Mark async event handler.
3446 (record_btrace_execution_direction): New.
3447 (init_record_btrace_ops): Initialize to_execution_direction.
3448
3449 2014-06-03 Doug Evans <xdje42@gmail.com>
3450
3451 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3452 (gdbscm_make_parameter): Ditto.
3453
3454 2014-06-03 Doug Evans <dje@google.com>
3455
3456 * exec.c (exec_close_1): Call clear_section_table instead of
3457 resize_section_table.
3458 (clear_section_table): New function.
3459 (resize_section_table): Make static. Rename arg num_added to
3460 adjustment.
3461 * exec.h (clear_section_table): Declare.
3462 (resize_section_table): Delete.
3463 * progspace.c (release_program_space): Call clear_section_table
3464 instead of resize_section_table.
3465
3466 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3467
3468 * NEWS (Python Scripting): Add entry about the new xmethods
3469 feature.
3470
3471 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3472
3473 * python/py-xmethods.c: New file.
3474 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3475 (objfpy_dealloc): XDECREF on the new xmethods field.
3476 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3477 field.
3478 (objfpy_get_xmethods): New function.
3479 (objfile_getset): New entry 'xmethods'.
3480 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3481 (pspy_dealloc): XDECREF on the new xmethods field.
3482 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3483 field.
3484 (pspy_get_xmethods): New function.
3485 (pspace_getset): New entry 'xmethods'.
3486 * python/python-internal.h: Add declarations for new functions.
3487 * python/python.c (_initialize_python): Invoke
3488 gdbpy_initialize_xmethods.
3489 * python/lib/gdb/__init__.py (xmethods): New
3490 attribute.
3491 * python/lib/gdb/xmethod.py: New file.
3492 * python/lib/gdb/command/xmethods.py: New file.
3493
3494 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3495
3496 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3497 best match method returned by find_overload_match is an xmethod.
3498 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3499 the best matching operator returned by find_overload_match is an
3500 xmethod.
3501 * valops.c: #include "extension.h".
3502 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3503 Return void. The list of matching source methods is returned in
3504 "fn_list" and a vector of matching debug method workers is
3505 returned in "xm_worker_vec". Update all callers.
3506 (value_find_oload_method_list): Likewise.
3507 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3508 non-NULL, then the index of the best matching method in this
3509 vector is returned. Update all callers.
3510 (find_overload_match): Include xmethods while performing overload
3511 resolution.
3512
3513 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3514
3515 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3516 * extension-priv.h (struct extension_language_ops): Add the
3517 xmethod interface.
3518 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3519 get_matching_xmethod_workers, get_xmethod_argtypes,
3520 invoke_xmethod, free_xmethod_worker,
3521 free_xmethod_worker_vec): New functions.
3522 * extension.h: #include "common/vec.h".
3523 New function declarations.
3524 (struct xmethod_worker): New struct.
3525 (VEC (xmethod_worker_ptr)): New vector type.
3526 (xmethod_worker_ptr): New typedef.
3527 (xmethod_worker_vec): Likewise.
3528 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3529 builtin_type.
3530 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3531 (struct builtin_type): New field "xmethod".
3532 * valarith.c (value_ptradd): Assert that the value argument is not
3533 lval_xcallable.
3534 * valops.c (value_must_coerce_to_target): Return 0 for
3535 lval_xcallable values.
3536 * value.c (struct value): New field XM_WORKER in the field
3537 LOCATION.
3538 (value_address, value_raw_address): Return 0 for lval_xcallable
3539 values.
3540 (set_value_address): Assert that the value is not an
3541 lval_xcallable.
3542 (value_free): Free the associated xmethod worker when freeing
3543 lval_xcallable values.
3544 (set_value_component_location): Assert that the WHOLE value is not
3545 lval_xcallable.
3546 (value_of_xmethod, call_xmethod): New functions.
3547 * value.h: Declare "struct xmethod_worker".
3548 Declare new functions value_of_xmethod, call_xmethod.
3549
3550 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3551 Pedro Alves <palves@redhat.com>
3552
3553 PR breakpoints/17000
3554 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3555 New function, extracted from software_breakpoint_inserted_here_p.
3556 (software_breakpoint_inserted_here_p): Replace factored out code
3557 by call to find_non_raw_software_breakpoint_inserted_here.
3558 (bp_target_info_copy_insertion_state): New function.
3559 (bkpt_insert_location): Handle the case of a single-step
3560 breakpoint already inserted at the same address.
3561 (bkpt_remove_location): Handle the case of a single-step
3562 breakpoint still inserted at the same address.
3563 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3564 breakpoint already inserted at the same address.
3565 (deprecated_remove_raw_breakpoint): Handle the case of a
3566 non-raw breakpoint still inserted at the same address.
3567 (find_single_step_breakpoint): New function, extracted from
3568 single_step_breakpoint_inserted_here_p.
3569 (find_single_step_breakpoint): New function,
3570 factored out from single_step_breakpoint_inserted_here_p.
3571 (single_step_breakpoint_inserted_here_p): Reimplement.
3572
3573 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3574
3575 Pushed by Joel Brobecker <brobecker@adacore.com>
3576 * source.c (show_substitute_path_command): Fix display of matching
3577 substitution rules.
3578
3579 2014-06-03 Gary Benson <gbenson@redhat.com>
3580
3581 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3582
3583 2014-06-02 Doug Evans <xdje42@gmail.com>
3584
3585 Add parameter support for Guile.
3586 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3587 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3588 (scm-param.o): New rule.
3589 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3590 (gdbscm_misc_error): Declare.
3591 (gdbscm_canonicalize_command_name): Declare.
3592 (gdbscm_scm_to_host_string): Declare.
3593 (gdbscm_scm_from_host_string): Declare.
3594 (gdbscm_initialize_parameters): Declare.
3595 * guile/guile.c (initialize_gdb_module): Call
3596 gdbscm_initialize_parameters.
3597 * guile/lib/gdb.scm: Export parameter symbols.
3598 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3599 cmdscm_canonicalize_name and made public. All callers updated.
3600 * guile/scm-exception.c (gdbscm_misc_error): New function.
3601 * guile/scm-param.c: New file.
3602 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3603 (gdbscm_scm_to_host_string): New function.
3604 (gdbscm_scm_from_host_string): New function.
3605 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3606
3607 2014-06-02 Doug Evans <xdje42@gmail.com>
3608
3609 Add command support for Guile.
3610 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3611 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3612 (scm-cmd.o): New rule.
3613 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3614 (gdbscm_user_error_p): Declare.
3615 (gdbscm_parse_command_name): Declare.
3616 (gdbscm_valid_command_class_p): Declare.
3617 (gdbscm_initialize_commands): Declare.
3618 * guile/guile.c (initialize_gdb_module): Call
3619 gdbscm_initialize_commands.
3620 * guile/lib/gdb.scm: Export command symbols.
3621 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3622 (throw-user-error): New function.
3623 * guile/scm-cmd.c: New file.
3624 * guile/scm-exception.c (user_error_symbol): New static global.
3625 (gdbscm_user_error_p): New function.
3626 (gdbscm_initialize_exceptions): Set user_error_symbol.
3627 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3628
3629 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3630
3631 * top.c (command_loop): Handle comments here...
3632 (command_line_input): ... not here.
3633
3634 2014-06-02 Doug Evans <xdje42@gmail.com>
3635
3636 Add progspace support for Guile.
3637 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3638 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3639 (scm-progspace.o): New rule.
3640 * guile/guile-internal.h (pspace_smob): New typedef.
3641 (psscm_pspace_smob_pretty_printers): Declare.
3642 (psscm_pspace_smob_from_pspace): Declare.
3643 (psscm_scm_from_pspace): Declare.
3644 * guile/guile.c (initialize_gdb_module): Call
3645 gdbscm_initialize_pspaces.
3646 * guile/lib/gdb.scm: Export progspace symbols.
3647 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3648 support.
3649 (append-pretty-printer!): Ditto.
3650 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3651 Implement.
3652 * guile/scm-progspace.c: New file.
3653
3654 2014-06-03 Alan Modra <amodra@gmail.com>
3655
3656 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3657 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3658
3659 2014-06-02 Doug Evans <dje@google.com>
3660
3661 Add support for skeletonless type units.
3662 * dwarf2read.c (struct dwarf2_per_objfile): New member
3663 n_allocated_type_units.
3664 (struct dwarf2_per_objfile) <tu_stats>: New member
3665 nr_all_type_units_reallocs.
3666 (create_signatured_type_table_from_index): Initialize
3667 n_allocated_type_units
3668 (create_all_type_units): Ditto.
3669 (add_type_unit): Move up in file. New arg slot.
3670 All callers updated. Increase space for all_type_units more
3671 efficiently.
3672 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3673 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3674 (lookup_dwp_signatured_type): Ditto.
3675 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3676 All callers updated.
3677 (build_type_psymtabs_1): Leave type_unit_groups as
3678 NULL if no TUs present.
3679 (print_tu_stats): New function.
3680 (process_skeletonless_type_unit): New function.
3681 (process_dwo_file_for_skeletonless_type_units): New
3682 function.
3683 (process_skeletonless_type_units): New function.
3684 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3685 Call print tu_stats if debugging enabled.
3686
3687 2014-06-02 Pedro Alves <palves@redhat.com>
3688
3689 * breakpoint.c (build_target_command_list): Don't build a command
3690 list if we have any duplicate location that isn't a dprintf.
3691
3692 2014-06-02 Pedro Alves <palves@redhat.com>
3693
3694 * breakpoint.c (dprintf_breakpoint_hit): New function.
3695 (initialize_breakpoint_ops): Install it as dprintf's
3696 breakpoint_hit method.
3697
3698 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3699
3700 * source.c (substitute_path_rule_matches): Simplify using
3701 filename_ncmp instead of FILENAME_CMP.
3702
3703 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3704
3705 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3706
3707 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3708
3709 * configure.ac: When Guile is available, check for the
3710 availability of 'scm_new_smob'.
3711 * configure, config.h.in: Regenerate.
3712 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3713 function.
3714
3715 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3716
3717 * frame.c (struct frame_info): Add stop_string field.
3718 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3719 (get_prev_frame_always): Old content moved into
3720 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3721 TRY_CATCH, handle MEMORY_ERROR exceptions.
3722 (frame_stop_reason_string): New function definition.
3723 * frame.h (unwind_stop_reason_to_string): Extend comment to
3724 mention frame_stop_reason_string.
3725 (frame_stop_reason_string): New function declaration.
3726 * stack.c (frame_info): Switch to frame_stop_reason_string.
3727 (backtrace_command_1): Switch to frame_stop_reason_string.
3728 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3729 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3730 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3731
3732 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3733
3734 * frame.c (frame_stop_reason_string): Rename to ...
3735 (unwind_stop_reason_to_string): this.
3736 * frame.h (frame_stop_reason_string): Rename to ...
3737 (unwind_stop_reason_to_string): this.
3738 * stack.c (frame_info): Update call to frame_stop_reason_string.
3739 (backtrace_command_1): Likewise.
3740 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3741 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3742
3743 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3744
3745 * frame.c (remove_prev_frame): New function.
3746 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3747 remove_prev_frame.
3748
3749 2014-05-29 Pedro Alves <palves@redhat.com>
3750
3751 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3752 and make it const. When a single-step decays to a continue,
3753 clear 'step', not 'hw_step'. Pass whether the caller wanted
3754 to step to user_visible_resume_ptid, not what we ask the
3755 target to do.
3756
3757 2014-05-29 Pedro Alves <palves@redhat.com>
3758
3759 * infrun.c (process_event_stop_test, handle_step_into_function)
3760 (handle_step_into_function_backward): Adjust.
3761 Don't set the even thread's stop_step and call stop_waiting before
3762 calling end_stepping_range. Instead do that ...
3763 (end_stepping_range): ... here. Take an ecs pointer parameter.
3764
3765 2014-05-29 Pedro Alves <palves@redhat.com>
3766
3767 * infrun.c (stop_stepping): Rename to ...
3768 (stop_waiting): ... this.
3769 (proceed): Update comment.
3770 (process_event_stop_test, handle_inferior_event)
3771 (handle_signal_stop, handle_step_into_function)
3772 (handle_step_into_function_backward): Update.
3773
3774 2014-05-29 Pedro Alves <palves@redhat.com>
3775
3776 * infcall.c (run_inferior_call): Don't check whether the current
3777 thread is running after the proceed call.
3778
3779 2014-05-29 Pedro Alves <palves@redhat.com>
3780 Tom Tromey <tromey@redhat.com>
3781
3782 * NEWS: Mention "maint set target-async", "set mi-async", and that
3783 background execution commands are now always available.
3784 * target.h (target_async_permitted): Update comment.
3785 * target.c (target_async_permitted, target_async_permitted_1):
3786 Default to 1.
3787 (set_target_async_command): Rename to ...
3788 (maint_set_target_async_command): ... this.
3789 (show_target_async_command): Rename to ...
3790 (maint_show_target_async_command): ... this.
3791 (_initialize_target): Adjust.
3792 * infcmd.c (prepare_execution_command): Make extern.
3793 * inferior.h (prepare_execution_command): Declare.
3794 * infrun.c (set_observer_mode): Leave target async alone.
3795 * mi/mi-interp.c (mi_interpreter_init): Install
3796 mi_on_sync_execution_done as sync_execution_done observer.
3797 (mi_on_sync_execution_done): New function.
3798 (mi_execute_command_input_handler): Don't print the prompt if we
3799 just started a synchronous command with an async target.
3800 (mi_on_resume): Check sync_execution before printing prompt.
3801 * mi/mi-main.h (mi_async_p): Declare.
3802 * mi/mi-main.c: Include gdbcmd.h.
3803 (mi_async_p): New function.
3804 (mi_async, mi_async_1): New globals.
3805 (set_mi_async_command, show_mi_async_command, mi_async): New
3806 functions.
3807 (exec_continue): Call prepare_execution_command.
3808 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3809 (mi_execute_async_cli_command): Use mi_async_p.
3810 (_initialize_mi_main): Install "set mi-async". Make
3811 "target-async" a deprecated alias.
3812
3813 2014-05-29 Pedro Alves <palves@redhat.com>
3814
3815 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3816 (_initialize_cli_interp): Adjust.
3817 * event-loop.c: Include "observer.h".
3818 (start_event_loop): Notify 'command_error' observers instead of
3819 calling display_gdb_prompt. Remove FIXME comment.
3820 * event-top.c (display_gdb_prompt): Remove call into the
3821 interpreters.
3822 * inf-loop.c: Include "observer.h".
3823 (inferior_event_handler): Notify 'command_error' observers instead
3824 of calling display_gdb_prompt.
3825 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3826 observers instead of calling display_gdb_prompt.
3827 * interps.c (interp_set): Don't call display_gdb_prompt.
3828 (current_interp_display_prompt_p): Delete.
3829 * interps.h (interp_prompt_p): Delete declaration.
3830 (interp_prompt_p_ftype): Delete.
3831 (struct interp_procs) <prompt_proc_p>: Delete field.
3832 (current_interp_display_prompt_p): Delete declaration.
3833 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3834 (_initialize_mi_interp): Adjust.
3835 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3836 'command_error' observers.
3837 (tui_on_sync_execution_done, tui_on_command_error): New
3838 functions.
3839 (tui_display_prompt_p): Delete.
3840 (_initialize_tui_interp): Adjust.
3841
3842 2014-05-29 Pedro Alves <palves@redhat.com>
3843
3844 PR gdb/13860
3845 * cli/cli-interp.c: Include infrun.h and observer.h.
3846 (cli_uiout, cli_interp): New globals.
3847 (cli_on_signal_received, cli_on_end_stepping_range)
3848 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3849 functions.
3850 (cli_interpreter_init): Install them as 'end_stepping_range',
3851 'signal_received' 'signal_exited', 'exited' and 'no_history'
3852 observers.
3853 (_initialize_cli_interp): Remove cli_interp local.
3854 * infrun.c (handle_inferior_event): Call the several stop reason
3855 observers instead of printing the stop reason directly.
3856 (end_stepping_range): New function.
3857 (print_end_stepping_range_reason, print_signal_exited_reason)
3858 (print_exited_reason, print_signal_received_reason)
3859 (print_no_history_reason): Make static, and add an uiout
3860 parameter. Print to that instead of to CURRENT_UIOUT.
3861 * infrun.h (print_end_stepping_range_reason)
3862 (print_signal_exited_reason, print_exited_reason)
3863 (print_signal_received_reason print_no_history_reason): New
3864 declarations.
3865 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3866 'mi_uiout'.
3867 <cli_uiout>: New field.
3868 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3869 uiout for CLI output. Install 'signal_received',
3870 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3871 observers.
3872 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3873 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3874 (mi_on_no_history): New functions.
3875 (ui_out_free_cleanup): Delete function.
3876 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3877 instead use the one already stored in the MI interpreter data.
3878 (mi_ui_out): Adjust.
3879 * tui/tui-interp.c: Include infrun.h and observer.h.
3880 (tui_interp): New global.
3881 (tui_on_signal_received, tui_on_end_stepping_range)
3882 (tui_on_signal_exited, tui_on_exited)
3883 (tui_on_no_history): New functions.
3884 (tui_init): Install them as 'end_stepping_range',
3885 'signal_received' 'signal_exited', 'exited' and 'no_history'
3886 observers.
3887 (_initialize_tui_interp): Delete tui_interp local.
3888
3889 2014-05-29 Pedro Alves <palves@redhat.com>
3890
3891 PR gdb/15713
3892 * linux-nat.c (linux_nat_resume_callback): Rename the second
3893 parameter to 'except'. Skip LP if it points to EXCEPT.
3894 (linux_nat_resume): Don't mark the event lwp as not stopped
3895 before resuming sibling lwps. Instead ask
3896 linux_nat_resume_callback to skip the event lwp. Mark it as not
3897 stopped after actually resuming it.
3898 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3899 resuming it.
3900 (wait_lwp): Mark the lwp as stopped here.
3901 (stop_wait_callback): Mark the lwp as not stopped right after
3902 resuming it. Don't mark lwps as stopped here.
3903 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3904 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3905
3906 2014-05-29 Pedro Alves <palves@redhat.com>
3907
3908 PR PR15693
3909 * infrun.c (resume): Determine how much to resume depending on
3910 whether the caller wanted a step, not whether we can hardware step
3911 the target. Mark all threads that we intend to run as running,
3912 unless we're calling an inferior function.
3913 (normal_stop): If the thread is running an infcall, don't finish
3914 thread state.
3915 * target.c (target_resume): Don't mark threads as running here.
3916
3917 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3918
3919 * serial.c (_initialize_serial): Remove support for
3920 the "set remotebaud" and "show remotebaud" commands.
3921 * NEWS: Add entry documenting the removal of that command.
3922
3923 2014-05-28 Yao Qi <yao@codesourcery.com>
3924
3925 * charset.c: Fix typo in comments.
3926
3927 2014-05-27 Gary Benson <gbenson@redhat.com>
3928
3929 * utils.c (internal_vproblem): Prompt for a bug report.
3930
3931 2014-05-26 Andy Wingo <wingo@igalia.com>
3932
3933 * guile/scm-arch.c (arscm_mark_arch_smob):
3934 * guile/scm-block.c (bkscm_mark_block_smob)
3935 (bkscm_mark_block_syms_progress_smob):
3936 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3937 * guile/scm-exception.c (exscm_mark_exception_smob):
3938 * guile/scm-frame.c (frscm_mark_frame_smob):
3939 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3940 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3941 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3942 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3943 (ppscm_mark_pretty_printer_worker_smob):
3944 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3945 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3946 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3947 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3948 mark functions.
3949 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3950 function.
3951
3952 2014-05-26 Andy Wingo <wingo@igalia.com>
3953 Doug Evans <xdje42@gmail.com>
3954
3955 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3956 empty_base_class. All uses updated.
3957 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3958 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3959 Adapt all callers.
3960 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3961 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3962 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3963 (gdbscm_gsmob_has_property_p, add_property_name)
3964 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3965 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3966 (gdb-object-has-property?, gdb-object-properties): Remove.
3967 (gdb-object-kind): Renamed from gsmob-kind.
3968
3969 2014-05-26 Andy Wingo <wingo@igalia.com>
3970
3971 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3972 * configure: Regenerate.
3973
3974 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3975
3976 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3977
3978 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3979
3980 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3981 (replay_memory_access_read_only, replay_memory_access_read_write)
3982 (replay_memory_access_types, replay_memory_access)
3983 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3984 (cmd_set_record_btrace, cmd_show_record_btrace)
3985 (cmd_show_replay_memory_access): New.
3986 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3987 (record_btrace_remove_breakpoint): Replace
3988 record_btrace_allow_memory_access with replay_memory_access.
3989 (_initialize_record_btrace): Add commands.
3990 * NEWS: Announce it.
3991
3992 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3993
3994 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3995
3996 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3997
3998 * MAINTAINERS (Write After Approval): Move self back from
3999 paper trail.
4000
4001 2014-05-22 Pedro Alves <palves@redhat.com>
4002
4003 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4004 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4005 (disable_randomization, enum exec_direction_kind)
4006 (execution_direction, stop_registers, start_remote)
4007 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4008 (wait_for_inferior, normal_stop, get_last_target_status)
4009 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4010 (insert_step_resume_breakpoint_at_sal)
4011 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4012 (set_step_info, print_stop_event, signal_stop_state)
4013 (signal_print_state, signal_pass_state, signal_stop_update)
4014 (signal_print_update, signal_pass_update)
4015 (update_signals_program_target, clear_exit_convenience_vars)
4016 (displaced_step_dump_bytes, update_observer_mode)
4017 (signal_catch_update, gdb_signal_from_command): Move
4018 declarations ...
4019 * infrun.h: ... to this new file.
4020 * amd64-tdep.c: Include infrun.h.
4021 * annotate.c: Include infrun.h.
4022 * arch-utils.c: Include infrun.h.
4023 * arm-linux-tdep.c: Include infrun.h.
4024 * arm-tdep.c: Include infrun.h.
4025 * break-catch-sig.c: Include infrun.h.
4026 * breakpoint.c: Include infrun.h.
4027 * common/agent.c: Include infrun.h instead of inferior.h.
4028 * corelow.c: Include infrun.h.
4029 * event-top.c: Include infrun.h.
4030 * go32-nat.c: Include infrun.h.
4031 * i386-tdep.c: Include infrun.h.
4032 * inf-loop.c: Include infrun.h.
4033 * infcall.c: Include infrun.h.
4034 * infcmd.c: Include infrun.h.
4035 * infrun.c: Include infrun.h.
4036 * linux-fork.c: Include infrun.h.
4037 * linux-nat.c: Include infrun.h.
4038 * linux-thread-db.c: Include infrun.h.
4039 * monitor.c: Include infrun.h.
4040 * nto-tdep.c: Include infrun.h.
4041 * procfs.c: Include infrun.h.
4042 * record-btrace.c: Include infrun.h.
4043 * record-full.c: Include infrun.h.
4044 * remote-m32r-sdi.c: Include infrun.h.
4045 * remote-mips.c: Include infrun.h.
4046 * remote-notif.c: Include infrun.h.
4047 * remote-sim.c: Include infrun.h.
4048 * remote.c: Include infrun.h.
4049 * reverse.c: Include infrun.h.
4050 * rs6000-tdep.c: Include infrun.h.
4051 * s390-linux-tdep.c: Include infrun.h.
4052 * solib-irix.c: Include infrun.h.
4053 * solib-osf.c: Include infrun.h.
4054 * solib-svr4.c: Include infrun.h.
4055 * target.c: Include infrun.h.
4056 * top.c: Include infrun.h.
4057 * windows-nat.c: Include infrun.h.
4058 * mi/mi-interp.c: Include infrun.h.
4059 * mi/mi-main.c: Include infrun.h.
4060 * python/py-threadevent.c: Include infrun.h.
4061
4062 2014-05-22 Pedro Alves <palves@redhat.com>
4063
4064 * infrun.c (handle_inferior_event): Store the exit code for
4065 --return-child-result here, instead of ...
4066 (print_exited_reason): ... here.
4067
4068 2014-05-21 Pedro Alves <palves@redhat.com>
4069
4070 PR gdb/13860
4071 * gdbthread.h (struct thread_control_state): New field
4072 `command_interp'.
4073 * infrun.c (follow_fork): Copy the new thread control field to the
4074 child fork thread.
4075 (clear_proceed_status_thread): Clear the new thread control field.
4076 (proceed): Set the new thread control field.
4077 * interps.h (command_interp): Declare.
4078 * interps.c (command_interpreter): New global.
4079 (command_interp): New function.
4080 (interp_exec): Set `command_interpreter' while here.
4081 * cli-out.c (cli_uiout_dtor): New function.
4082 (cli_ui_out_impl): Install it.
4083 * mi/mi-interp.c: Include cli-out.h.
4084 (mi_cmd_interpreter_exec): Add comment.
4085 (restore_current_uiout_cleanup): New function.
4086 (ui_out_free_cleanup): New function.
4087 (mi_on_normal_stop): If finishing an execution command started by
4088 a CLI command, or any kind of breakpoint-like event triggered,
4089 print the stop event to the output (CLI) stream.
4090 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4091
4092 2014-05-21 Pedro Alves <palves@redhat.com>
4093
4094 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4095 current source line having changed.
4096 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4097 * infrun.c (normal_stop): Adjust call to
4098 set_current_sal_from_frame.
4099 * source.c (clear_lines_listed_range): New function.
4100 (set_current_source_symtab_and_line, identify_source_line): Clear
4101 the lines listed range.
4102 (line_info): Handle the first "info line" after the current source
4103 line having changed.
4104 * stack.c (print_stack_frame): Remove center handling.
4105 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4106 center sal.line.
4107
4108 2014-05-21 Pedro Alves <palves@redhat.com>
4109
4110 * inf-child.c (inf_child_mourn_inferior): New function.
4111 * inf-child.h (inf_child_mourn_inferior): New declaration.
4112 * darwin-nat.c (darwin_mourn_inferior): Use
4113 inf_child_mourn_inferior.
4114 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4115 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4116 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4117 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4118 * windows-nat.c (windows_mourn_inferior): Likewise.
4119
4120 2014-05-21 Doug Evans <xdje42@gmail.com>
4121
4122 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4123
4124 2014-05-21 Doug Evans <xdje42@gmail.com>
4125
4126 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4127 (gdbscm_out_of_range_error): Ditto.
4128 (gdbscm_memory_error): Ditto.
4129 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4130 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4131 (gdbscm_out_of_range_error): Update.
4132 (gdbscm_memory_error): Update.
4133 (gdbscm_scm_to_target_string_unsafe): Delete.
4134
4135 2014-05-21 Pedro Alves <palves@redhat.com>
4136
4137 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4138 globals.
4139 (inf_child_open_target): New function.
4140 (inf_child_open): Use inf_child_open_target to push the target
4141 instead of erroring out.
4142 (inf_child_disconnect, inf_child_close)
4143 (inf_child_maybe_unpush_target): New functions.
4144 (inf_child_target): Install inf_child_disconnect and
4145 inf_child_close. Store a pointer to the returned object.
4146 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4147 declarations.
4148 * target.c (auto_connect_native_target): New global.
4149 (show_default_run_target): New function.
4150 (find_default_run_target): Return NULL if automatically connecting
4151 to the native target is disabled.
4152 (_initialize_target): Install set/show auto-connect-native-target.
4153 * NEWS: Mention "set auto-connect-native-target", and "target
4154 native".
4155 * linux-nat.c (super_close): New global.
4156 (linux_nat_close): Call super_close.
4157 (linux_nat_add_target): Store a pointer to the base class's
4158 to_close method.
4159 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4160 inf_child_maybe_unpush.
4161 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4162 already pushed.
4163 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4164 the inferior. Use inf_child_maybe_unpush_target.
4165 (inf_ttrace_attach): Don't push the target if it is already
4166 pushed.
4167 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4168 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4169 after mourning the inferior. Use inf_child_maybe_unpush_target.
4170 (darwin_attach_pid): Don't push the target if it is already
4171 pushed.
4172 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4173 mourning the inferior. Use inf_child_maybe_unpush_target.
4174 (gnu_detach): Use inf_child_maybe_unpush_target.
4175 * go32-nat.c (go32_create_inferior): Don't push the target if it
4176 is already pushed.
4177 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4178 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4179 (procfs_open): Rename to ...
4180 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4181 comments. Can target_preopen before changing node. Call
4182 inf_child_open_target to push the target explicitly.
4183 (procfs_attach): Don't push the target if it is already pushed.
4184 (procfs_detach): Use inf_child_maybe_unpush_target.
4185 (procfs_create_inferior): Don't push the target if it is already
4186 pushed.
4187 (nto_native_ops): New global.
4188 (procfs_open): Reimplement.
4189 (procfs_native_open): New function.
4190 (init_procfs_targets): Install procfs_native_open as to_open of
4191 "target native". Store a pointer to the "native" target in
4192 nto_native_ops.
4193 * procfs.c (procfs_attach): Don't push the target if it is already
4194 pushed.
4195 (procfs_detach): Use inf_child_maybe_unpush_target.
4196 (procfs_mourn_inferior): Only unpush the target after mourning the
4197 inferior. Use inf_child_maybe_unpush_target.
4198 (procfs_init_inferior): Don't push the target if it is already
4199 pushed.
4200 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4201 if it is already pushed.
4202
4203 2014-05-21 Pedro Alves <palves@redhat.com>
4204
4205 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4206 and "procfs" targets are now called "native" instead.
4207
4208 2014-05-21 Pedro Alves <palves@redhat.com>
4209
4210 * go32-nat.c (go32_open): Delete.
4211 (go32_target): Don't override the to_open method.
4212
4213 2014-05-21 Pedro Alves <palves@redhat.com>
4214
4215 * nto-procfs.c (procfs_can_run): New function.
4216 (nto_procfs_ops): New global.
4217 (init_procfs_targets): New, based on procfs_target. Install
4218 "target native" in addition to "target procfs".
4219 (_initialize_procfs): Call init_procfs_targets instead of adding
4220 the target here.
4221
4222 2014-05-21 Pedro Alves <palves@redhat.com>
4223
4224 * windows-nat.c (windows_target): Don't override to_shortname,
4225 to_longname or to_doc.
4226
4227 2014-05-21 Pedro Alves <palves@redhat.com>
4228
4229 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4230 to_doc.
4231
4232 2014-05-21 Pedro Alves <palves@redhat.com>
4233
4234 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4235 to_shortname, to_longname or to_doc.
4236
4237 2014-05-21 Pedro Alves <palves@redhat.com>
4238
4239 * go32-nat.c (go32_target): Don't override to_shortname,
4240 to_longname or to_doc.
4241
4242 2014-05-21 Pedro Alves <palves@redhat.com>
4243
4244 * inf-child.c (inf_child_open): Remove mention of "child".
4245 (inf_child_target): Rename target to "native" instead of "child".
4246
4247 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4248
4249 * Makefile.in (SFILES): Delete "regset.c".
4250 (COMMON_OBS): Delete "regset.o".
4251 * regset.c: Remove.
4252 * regset.h (regset_alloc): Delete prototype.
4253
4254 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4255
4256 * sparc-linux-tdep.c (sparc32_linux_gregset)
4257 (sparc32_linux_fpregset): New static regset structures.
4258 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4259 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4260 'fpregset' fields.
4261 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4262 (sparc64_linux_fpregset): New static regset structures.
4263 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4264 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4265 New static regset structures.
4266 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4267 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4268 New static regset structures.
4269 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4270 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4271 New static regset structures.
4272 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4273 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4274 New static regset structures.
4275 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4276
4277 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4278
4279 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4280 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4281 register maps ("regmaps") from "*regset" to "*regmap". Do this
4282 for all regmap types and variables.
4283 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4284 (sparc32_linux_supply_core_gregset)
4285 (sparc32_linux_collect_core_gregset)
4286 (sparc32_linux_supply_core_fpregset)
4287 (sparc32_linux_collect_core_fpregset): Likewise.
4288 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4289 (sparc_gregmap, sparc_fpregmap): ... these.
4290 (sparc_supply_gregset, sparc_collect_gregset)
4291 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4292 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4293 (_initialize_sparc_nat): Rename regmaps.
4294 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4295 (sparc_gregmap, sparc_fpregmap): ... these.
4296 (sparc_supply_gregset, sparc_collect_gregset)
4297 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4298 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4299 Rename macros to...
4300 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4301 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4302 Likewise.
4303 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4304 Rename to...
4305 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4306 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4307 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4308 regmaps.
4309 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4310 (sparc32_bsd_fpregset): Rename to...
4311 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4312 (sparc32_bsd_fpregmap): ... these.
4313 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4314 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4315 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4316 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4317 (struct sparc_gregmap, struct sparc_fpregmap)
4318 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4319 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4320 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4321 (sparc32_supply_regset, sparc32_collect_gregset)
4322 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4323 prototypes.
4324 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4325 (sparc64_linux_ptrace_gregmap): ... this.
4326 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4327 (_initialize_sparc64_linux_nat): Rename regmaps.
4328 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4329 (sparc64_linux_core_gregmap): ... this.
4330 (sparc64_linux_supply_core_gregset)
4331 (sparc64_linux_collect_core_gregset)
4332 (sparc64_linux_supply_core_fpregset)
4333 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4334 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4335 (sparc64_sol2_fpregset): Rename to...
4336 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4337 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4338 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4339 regmaps.
4340 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4341 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4342 (sparc64_bsd_fpregset): Rename to...
4343 (struct sparc_gregmap, sparc64_sol2_gregmap)
4344 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4345 (sparc64_bsd_fpregmap): ... these.
4346 (sparc64_supply_gregset, sparc64_collect_gregset)
4347 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4348 prototypes.
4349 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4350 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4351 (sparc64fbsd_gregmap): ... this.
4352 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4353 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4354 Rename regmaps.
4355 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4356 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4357 (sparc64nbsd_collect_fpregset): Likewise.
4358 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4359 (sparc64nbsd_gregmap): ... this.
4360 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4361 regmaps.
4362 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4363 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4364 (sparc64obsd_gregmap): ... this.
4365 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4366 regmaps.
4367 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4368 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4369 (sparc32nbsd_gregmap): ... this.
4370 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4371 regmaps.
4372
4373 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4374
4375 * score-tdep.c (score7_linux_gregset): New static regset
4376 structure.
4377 (score7_linux_regset_from_core_section): Remove dynamic regset
4378 allocation.
4379 (score_gdbarch_init): Drop allocation of tdep structure.
4380 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4381
4382 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4383
4384 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4385 regset structures.
4386 (am33_regset_from_core_section): Remove dynamic regset
4387 allocations.
4388
4389 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4390
4391 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4392 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4393 structures.
4394 (mips_linux_regset_from_core_section): Remove dynamic regset
4395 allocations.
4396 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4397 'gregset64', 'fpregset', and 'fpregset64'.
4398 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4399 deleted tdep fields.
4400
4401 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4402
4403 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4404 regset structures.
4405 (amd64_regset_from_core_section): Remove dynamic regset
4406 allocations.
4407 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4408 structure.
4409 (amd64obsd_regset_from_core_section): Remove dynamic regset
4410 allocation.
4411 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4412 Likewise.
4413 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4414 x86-common regset supply function.
4415 * i386-tdep.c (i386_collect_gregset): Make static.
4416 (i386_gregset): New global regset structure.
4417 (i386_fpregset, i386_xstateregset): New static regset structures.
4418 (i386_regset_from_core_section): Remove dynamic regset
4419 allocations.
4420 (i386_gdbarch_init): Remove initialization of tdep fields
4421 'gregset', 'fpregset', and 'xstateregset'.
4422 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4423 'fpregset', and 'xstateregset'.
4424 (i386_collect_gregset): Remove prototype.
4425 (i386_gregset): New declaration.
4426 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4427 structure.
4428 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4429 allocation.
4430
4431 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4432
4433 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4434 (arm_linux_vfpregset): New static regset structures.
4435 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4436 regset structures.
4437 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4438 and 'vfpregset' fields.
4439
4440 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4441
4442 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4443 (aarch64_linux_fpregset): New static regset structures.
4444 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4445 of regset structures.
4446 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4447 'fpregset' fields.
4448
4449 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4450
4451 * regset.h (struct regset): Remove gdbarch field.
4452 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4453 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4454 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4455 Likewise.
4456 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4457 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4458 (ppc32_linux_vsxregset): Likewise.
4459 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4460 via the regcache instead of the regset.
4461 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4462 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4463 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4464 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4465 Likewise.
4466
4467 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4468
4469 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4470 Constify structures.
4471 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4472 (alphanbsd_aout_gregset): Likewise.
4473 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4474 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4475 Likewise.
4476 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4477 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4478 Likewise.
4479 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4480 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4481 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4482 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4483 * m88k-tdep.c (m88k_gregset): Likewise.
4484 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4485 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4486 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4487 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4488 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4489 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4490 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4491 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4492 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4493 Likewise.
4494 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4495 * sh-tdep.h (sh_corefile_gregset): Likewise.
4496 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4497 * vax-tdep.c (vax_gregset): Likewise.
4498
4499 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4500
4501 Fix TLS access for -static -pthread.
4502 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4503 (try_thread_db_load_1): Initialize it.
4504 (thread_db_get_thread_local_address): Call it if LM is zero.
4505 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4506 * target.h (struct target_ops) (to_get_thread_local_address): Add
4507 load_module_addr comment.
4508
4509 2014-05-21 Pedro Alves <palves@redhat.com>
4510
4511 * dcache.c (dcache_read_memory_partial): If reading the cache line
4512 fails, fallback to reading just the memory the caller wanted.
4513
4514 2014-05-20 Doug Evans <dje@google.com>
4515
4516 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4517 instead of get_current_arch.
4518
4519 2014-05-20 Pedro Alves <palves@redhat.com>
4520
4521 * NEWS: Mention that compare-sections now works with all targets.
4522
4523 * remote.c (PACKET_qCRC): New enum value.
4524 (remote_verify_memory): Don't send qCRC if the target has no
4525 execution. Use packet_support/packet_ok. If the target doesn't
4526 support the qCRC packet, fallback to a deep memory copy.
4527 (compare_sections_command): Say "target image" instead of "remote
4528 executable".
4529 (_initialize_remote): Add PACKET_qCRC to the list of config
4530 packets that have no associated command. Extend comment.
4531 * target.c (simple_verify_memory, default_verify_memory): New
4532 function.
4533 * target.h (struct target_ops) <to_verify_memory>: Default to
4534 default_verify_memory.
4535 (simple_verify_memory): New declaration.
4536 * target-delegates.c: Regenerate.
4537
4538 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4539
4540 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4541
4542 2014-05-20 Hui Zhu <hui@codesourcery.com>
4543 Yao Qi <yao@codesourcery.com>
4544
4545 PR backtrace/16558
4546 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4547 and change address of sp and pc.
4548
4549 2014-05-19 Tom Tromey <tromey@redhat.com>
4550
4551 * gdbtypes.c (rank_function): Use XNEWVEC.
4552 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4553
4554 2014-05-19 Doug Evans <dje@google.com>
4555
4556 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4557 build_type_unit_groups and moved closer to only caller. Remove
4558 arguments. All references updated. Remove outdated .gdb_index
4559 comment.
4560 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4561 build_type_psymtabs_1.
4562
4563 2014-05-19 Doug Evans <dje@google.com>
4564
4565 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4566 n_type_unit_groups, all_type_unit_groups. All uses removed.
4567 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4568 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4569 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4570 (add_type_unit_group_to_table): Delete.
4571
4572 2014-05-19 Doug Evans <dje@google.com>
4573
4574 * eval.c (evaluate_subexp_standard): Add some comments.
4575
4576 2014-05-17 Doug Evans <xdje42@gmail.com>
4577
4578 * progspace.c (remove_program_space): Delete, unused.
4579 * progspace.h (remove_program_space): Ditto.
4580
4581 2014-05-17 Doug Evans <xdje42@gmail.com>
4582
4583 * inferior.c (prune_inferiors): Fix comment.
4584 (remove_inferior_command): Call prune_program_spaces.
4585
4586 2014-05-16 Doug Evans <dje@google.com>
4587
4588 New command line option -D.
4589 * NEWS: Mention it.
4590 * main.c (set_gdb_data_directory): New function.
4591 (captured_main): Recognize -D. Flag error for --data-directory "".
4592 Call set_gdb_data_directory.
4593 (print_gdb_help): Print --data-directory, -D.
4594 * main.h (set_gdb_data_directory): Declare.
4595 * top.c (staged_gdb_datadir): New static global.
4596 (set_gdb_datadir): Call set_gdb_data_directory
4597 (show_gdb_datadir): New function.
4598 (init_main): Update init of data-directory parameter.
4599
4600 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4601
4602 Import the "dirfd" gnulib module.
4603 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4604 * gnulib/aclocal.m4: Update.
4605 * gnulib/config.in: Update.
4606 * gnulib/configure: Update.
4607 * gnulib/import/Makefile.am: Update.
4608 * gnulib/import/Makefile.in: Update.
4609 * gnulib/import/dirfd.c: New.
4610 * gnulib/import/m4/dirfd.m4: New.
4611 * gnulib/import/m4/gnulib-cache.m4: Update.
4612 * gnulib/import/m4/gnulib-comp.m4: Update.
4613
4614 2014-05-16 Pierre Muller <muller@sourceware.org>
4615 Yao Qi <yao@codesourcery.com>
4616
4617 * valprint.c (print_wchar): Move the code on checking whether
4618 W is a printable wide char to the default branch of switch
4619 statement below. Call wchar_printable instead of gdb_iswprint.
4620
4621 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4622
4623 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4624 ldr.w and ldrd instructions.
4625
4626 2014-05-15 Doug Evans <dje@google.com>
4627
4628 * dwarf2read.c (read_structure_type): Delete outdated comments.
4629
4630 2014-05-14 Tom Tromey <tromey@redhat.com>
4631
4632 * macrocmd.c (print_macro_definition): Reindent.
4633
4634 2014-05-13 Doug Evans <xdje42@gmail.com>
4635
4636 * python/py-cmd.c (cmdpy_completer): Add comment.
4637 (completers): Make const.
4638
4639 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4640
4641 * infrun.c (resume): Remove should_resume (unused). Move up
4642 declaration of resume_ptid.
4643
4644 2014-05-13 Tom Tromey <tromey@redhat.com>
4645
4646 * language.h (unop_type_check): Remove.
4647 (binop_type_check): Don't declare.
4648
4649 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4650
4651 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4652 call to regcache_raw_collect.
4653
4654 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4655
4656 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4657 mi_console->quote as the quoting character.
4658
4659 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4660
4661 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4662
4663 2014-04-29 Tom Tromey <tromey@redhat.com>
4664
4665 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4666 "show debug varobj".
4667
4668 2014-05-07 Kyle McMartin <kyle@redhat.com>
4669
4670 Pushed by Joel Brobecker <brobecker@adacore.com>.
4671 * aarch64-tdep.c (aarch64_software_single_step): New function.
4672 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4673 with aarch64_software_single_step.
4674
4675 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4676
4677 GDB 7.7.1 released.
4678
4679 2014-05-05 Keith Seitz <keiths@redhat.com>
4680
4681 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4682 variable or history value is successfully parsed.
4683
4684 2014-05-05 Yao Qi <yao@codesourcery.com>
4685 Pedro Alves <palves@redhat.com>
4686
4687 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4688 address of blocks that intersects the requested range. Trim
4689 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4690 sections.
4691 * ctf.c (ctf_xfer_partial): Likewise.
4692
4693 2014-05-05 Yao Qi <yao@codesourcery.com>
4694
4695 * printcmd.c (display_command): Remove the check to
4696 target_has_execution.
4697
4698 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4699
4700 * ppcobsd-nat.c: Include "obsd-nat.h".
4701 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4702 add_target.
4703 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4704
4705 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4706
4707 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4708 and 16-bit signed and unsigned arguments. Update comment.
4709 (stap_parse_probe_arguments): Extend code to handle such
4710 arguments. Use warning instead of complaint to notify about
4711 unrecognized bitness.
4712
4713 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4714
4715 PR breakpoints/16889
4716 * stap-probe.c (stap_parse_probe_arguments): Simplify
4717 check for non-prefixed probes (i.e., probes whose
4718 arguments do not start with "N@"). Always set the
4719 argument type to a sane value.
4720
4721 2014-05-01 David Taylor <dtaylor@emc.com>
4722
4723 * remote.c (compare_sections_command): Add -r option to compare
4724 all loadable read-only sections.
4725
4726 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4727
4728 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4729 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4730 Update all callers.
4731 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4732 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4733 Remove unused CORE_ADDR argument. Update all callers.
4734
4735 2014-04-29 Pedro Alves <palves@redhat.com>
4736
4737 * remote.c (struct packet_config) <detect>: Extend comment.
4738 (add_packet_config_cmd): Don't set the config's detect or support
4739 fields here.
4740 (init_all_packet_configs): Also initialize the config's 'detect'
4741 field.
4742 (reset_all_packet_configs_support): New function.
4743 (remote_open_1): Call reset_all_packet_configs_support instead of
4744 init_all_packet_configs.
4745 (_initialize_remote): Initialize all packet configs. Assert that
4746 all packets have an associated command, except a few known
4747 outliers.
4748
4749 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4750
4751 * dwarf2read.c (read_subrange_type): Handle dynamic
4752 DW_AT_lower_bound attributes.
4753
4754 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4755
4756 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4757 dynamic bounds before computing its upper bound.
4758 (ada_discrete_type_low_bound): Same as above with the lower bound.
4759
4760 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4761
4762 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4763 range types. Adjust the array handling implementation to
4764 take advantage of this change.
4765 (resolve_dynamic_range): New function, mostly extracted from
4766 resolve_dynamic_bounds.
4767 (resolve_dynamic_array): New function, mostly extracted from
4768 resolve_dynamic_bounds.
4769 (resolve_dynamic_bounds): Delete.
4770 (resolve_dynamic_type): Reimplement. Add handling of
4771 TYPE_CODE_RANGE types.
4772
4773 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4774
4775 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4776 handling of parallel ___XA types.
4777
4778 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4779
4780 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4781 unnecessary second call to static_unwrap_type.
4782
4783 2014-04-27 Hui Zhu <hui@codesourcery.com>
4784
4785 * stack.c (print_frame_info): Call do_gdb_disassembly with
4786 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4787
4788 2014-04-26 Doug Evans <xdje42@gmail.com>
4789
4790 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4791
4792 2014-04-25 Pedro Alves <palves@redhat.com>
4793
4794 PR server/16255
4795 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4796 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4797 and newline from built string.
4798 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4799 (linux_ptrace_attach_fail_reason): ... this.
4800 * linux-nat.c (linux_nat_attach): Adjust to use
4801 linux_ptrace_attach_fail_reason.
4802
4803 2014-04-25 Pedro Alves <palves@redhat.com>
4804
4805 * remote.c (struct remote_state): Remove multi_process_aware,
4806 non_stop_aware, cond_tracepoints, cond_breakpoints,
4807 breakpoint_commands, fast_tracepoints, static_tracepoints,
4808 install_in_trace, disconnected_tracing,
4809 enable_disable_tracepoints, string_tracing, and
4810 augmented_libraries_svr4_read fields.
4811 (remote_multi_process_p): Move further below in the file.
4812 (struct packet_config): Add comments.
4813 (update_packet_config): Delete function.
4814 (show_packet_config_cmd): Use packet_config_support.
4815 (add_packet_config_cmd): Use NULL as set callback.
4816 (packet_ok): "set remote foo-packet"-style commands no longer
4817 change config->supported -- adjust.
4818 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4819 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4820 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4821 (PACKET_QNonStop, PACKET_multiprocess_feature)
4822 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4823 (PACKET_DisconnectedTracing_feature)
4824 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4825 (set_remote_protocol_packet_cmd): Delete function.
4826 (packet_config_support, packet_support): New functions.
4827 (set_remote_protocol_Z_packet_cmd): Don't call
4828 update_packet_config.
4829 (remote_query_attached, remote_pass_signals)
4830 (remote_program_signals, remote_threads_info)
4831 (remote_threads_extra_info, remote_start_remote): Use
4832 packet_support.
4833 (remote_start_remote): Use packet_config_support and
4834 packet_support.
4835 (init_all_packet_configs): Set all packets to unknown support,
4836 instead of calling update_packet_config.
4837 (remote_check_symbols): Use packet_support.
4838 (remote_supported_packet): Unconditionally set the packet config's
4839 support status.
4840 (remote_multi_process_feature, remote_non_stop_feature)
4841 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4842 (remote_breakpoint_commands_feature)
4843 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4844 (remote_install_in_trace_feature)
4845 (remote_disconnected_tracing_feature)
4846 (remote_enable_disable_tracepoint_feature)
4847 (remote_string_tracing_feature)
4848 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4849 (remote_protocol_features): Adjust to use remote_supported_packet
4850 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4851 "ConditionalTracepoints", "ConditionalBreakpoints",
4852 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4853 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4854 "EnableDisableTracepoints", and "tracenz".
4855 (remote_query_supported): Use packet_support.
4856 (remote_open_1): Adjust.
4857 (extended_remote_attach_1): Use packet_support. Switch on the
4858 result of packet_ok instead of checking whether the packet ended
4859 up disabled.
4860 (remote_vcont_resume): Use packet_support.
4861 (remote_resume, remote_stop_ns, fetch_register_using_p)
4862 (remote_prepare_to_store, store_register_using_P)
4863 (check_binary_download, remote_write_bytes): Use packet_support.
4864 (remote_vkill): Use packet_support. Switch on the result of
4865 packet_ok instead of checking whether the packet ended up
4866 disabled.
4867 (extended_remote_supports_disable_randomization): Use
4868 packet_support.
4869 (extended_remote_run): Switch on the result of packet_ok instead
4870 of checking whether the packet ended up disabled.
4871 (remote_insert_breakpoint, remote_remove_breakpoint)
4872 (remote_insert_watchpoint, remote_remove_watchpoint)
4873 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4874 packet_support.
4875 (remote_search_memory): Use packet_config_support.
4876 (remote_get_thread_local_address, remote_get_tib_address)
4877 (remote_hostio_send_command, remote_can_execute_reverse): Use
4878 packet_support.
4879 (remote_supports_cond_tracepoints)
4880 (remote_supports_cond_breakpoints)
4881 (remote_supports_fast_tracepoints)
4882 (remote_supports_static_tracepoints)
4883 (remote_supports_install_in_trace)
4884 (remote_supports_enable_disable_tracepoint)
4885 (remote_supports_string_tracing)
4886 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4887 the packet config says the feature is enabled or disabled.
4888 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4889 (remote_get_trace_status): Use packet_support.
4890 (remote_set_disconnected_tracing): Adjust to check whether the
4891 feature is enabled with packet_support.
4892 (remote_set_trace_buffer_size, remote_use_agent)
4893 (remote_can_use_agent, remote_supports_btrace): Use
4894 packet_support.
4895 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4896 Use packet_config_support.
4897 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4898 the packet config says the feature is enabled or disabled.
4899 (set_range_stepping): Use packet_support.
4900
4901 2014-04-25 Tom Tromey <tromey@redhat.com>
4902
4903 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4904 argument.
4905
4906 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4907
4908 * NEWS: Mention support for C99 variable length arrays.
4909
4910 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4911
4912 * ada-lang.c (standard_exc): Expand introductory comment.
4913
4914 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4915 Walfred Tedeschi <walfred.tedeschi@intel.com>
4916
4917 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4918 AVX512 registers.
4919 (amd64_linux_read_description): Add code to handle AVX512 xstate
4920 mask and return respective tdesc.
4921 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4922 and features/i386/x32-avx512-linux.c.
4923 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4924 (amd64_linux_core_read_description): Add code to handle AVX512
4925 xstate mask and return respective tdesc.
4926 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4927 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4928 calculation.
4929 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4930 (tdesc_amd64_avx512_linux): New prototype.
4931 (tdesc_x32_avx512_linux): Likewise.
4932 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4933 features/i386/x32-avx512.c.
4934 (amd64_ymm_avx512_names): New register names for pseudo
4935 registers YMM16-31.
4936 (amd64_ymmh_avx512_names): New register names for raw registers
4937 YMMH16-31.
4938 (amd64_k_names): New register names for K registers.
4939 (amd64_zmmh_names): New register names for ZMM raw registers.
4940 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4941 (amd64_xmm_avx512_names): New register names for XMM16-31
4942 registers.
4943 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4944 registers.
4945 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4946 if feature is present.
4947 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4948 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4949 (AMD64_NUM_REGS): Adjust to new number of registers.
4950 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4951 registers supplied via XSTATE by AVX512 registers.
4952 (i386_linux_read_description): Add case for AVX512.
4953 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4954 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4955 (i386_linux_core_read_description): Add case for AVX512.
4956 (i386_linux_init_abi): Install supported register note section
4957 for AVX512.
4958 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4959 AVX512.
4960 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4961 registers to be number of zmm7h + 1.
4962 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4963 * i386-tdep.c: Include features/i386/i386-avx512.c.
4964 (i386_zmm_names): Add ZMM pseudo register names array.
4965 (i386_zmmh_names): Add ZMM raw register names array.
4966 (i386_k_names): Add K raw register names array.
4967 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4968 registers. AVX512 has 16 more ZMM registers than there are YMM
4969 registers.
4970 (i386_zmmh_regnum_p): Add function to look up register number of
4971 ZMM raw registers.
4972 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4973 (i386_k_regnum_p): Likewise for K raw registers.
4974 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4975 registers added by AVX512.
4976 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4977 registers added by AVX512.
4978 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4979 added by AVX512.
4980 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4981 (i386_pseudo_register_name): Add ZMM pseudo registers.
4982 (i386_zmm_type): Construct and return vector registers type for ZMM
4983 registers.
4984 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4985 ZMM0-31 pseudo registers and K registers.
4986 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4987 and YMM16-31 registers from register cache.
4988 (i386_pseudo_register_write): Add code to write K, ZMM and
4989 YMM16-31 registers.
4990 (i386_register_reggroup_p): Add code to include/exclude AVX512
4991 registers in/from respective register groups.
4992 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4993 registers if feature is present in xcr0.
4994 (i386_gdbarch_init): Add code to initialize AVX512 feature
4995 variables in tdep structure, wire in pseudo registers and call
4996 initialize_tdesc_i386_avx512.
4997 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4998 variables.
4999 (i386_regnum): Add AVX512 registers.
5000 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5001 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5002 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5003 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5004 512 bits wide.
5005 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5006 (i386_ymm_avx512_regnum_p): Likewise.
5007 (i386_k_regnum_p): Likewise.
5008 (i386_zmm_regnum_p): Likewise.
5009 (i386_zmmh_regnum_p): Likewise.
5010 * i387-tdep.c : Update year in copyright notice.
5011 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5012 XSAVE buffer.
5013 (XSAVE_YMM_AVX512_ADDR): New macro.
5014 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5015 XSAVE buffer.
5016 (XSAVE_XMM_AVX512_ADDR): New macro.
5017 (xsave_avx512_k_offset): New table for K register offsets in
5018 XSAVE buffer.
5019 (XSAVE_AVX512_K_ADDR): New macro.
5020 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5021 in XSAVE buffer.
5022 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5023 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5024 buffer.
5025 (i387_collect_xsave): Add code to collect AVX512 registers from
5026 XSAVE buffer.
5027 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5028 of XMM16-31 registers.
5029 (I387_NUM_K_REGS): New define for number of K registers.
5030 (I387_K0_REGNUM): New define for K0 register number.
5031 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5032 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5033 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5034 registers.
5035 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5036 (I387_XMM16_REGNUM): New define for XMM16 register number.
5037 (I387_YMM0_REGNUM): New define for YMM0 register number.
5038 (I387_KEND_REGNUM): New define for last K register number.
5039 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5040 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5041 number.
5042 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5043 number.
5044 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5045 size.
5046 * features/Makefile: Add AVX512 related files.
5047 * features/i386/32bit-avx512.xml: New file.
5048 * features/i386/64bit-avx512.xml: Likewise.
5049 * features/i386/amd64-avx512-linux.c: Likewise.
5050 * features/i386/amd64-avx512-linux.xml: Likewise.
5051 * features/i386/amd64-avx512.c: Likewise.
5052 * features/i386/amd64-avx512.xml: Likewise.
5053 * features/i386/i386-avx512-linux.c: Likewise.
5054 * features/i386/i386-avx512-linux.xml: Likewise.
5055 * features/i386/i386-avx512.c: Likewise.
5056 * features/i386/i386-avx512.xml: Likewise.
5057 * features/i386/x32-avx512-linux.c: Likewise.
5058 * features/i386/x32-avx512-linux.xml: Likewise.
5059 * features/i386/x32-avx512.c: Likewise.
5060 * features/i386/x32-avx512.xml: Likewise.
5061 * regformats/i386/amd64-avx512-linux.dat: New file.
5062 * regformats/i386/amd64-avx512.dat: Likewise.
5063 * regformats/i386/i386-avx512-linux.dat: Likewise.
5064 * regformats/i386/i386-avx512.dat: Likewise.
5065 * regformats/i386/x32-avx512-linux.dat: Likewise.
5066 * regformats/i386/x32-avx512.dat: Likewise.
5067 * NEWS: Add note about new support for AVX512.
5068
5069
5070 2014-04-23 Pedro Alves <palves@redhat.com>
5071
5072 * breakpoint.c (insert_bp_location): Tolerate errors if the
5073 breakpoint is set in a user-loaded objfile.
5074 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5075 location is marked shlib_disabled. If the breakpoint is set in a
5076 user-loaded objfile is a GDB-side memory breakpoint, validate it
5077 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5078 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5079 flag.
5080 * mem-break.c (memory_validate_breakpoint): New function.
5081 * objfiles.c (userloaded_objfile_contains_address_p): New
5082 function.
5083 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5084 * target.h (memory_validate_breakpoint): New declaration.
5085
5086 2014-04-23 Pedro Alves <palves@redhat.com>
5087
5088 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5089 the breakpoint is set in a shared library, only suppress
5090 errors for software breakpoints, not hardware breakpoints.
5091
5092 2014-04-22 Pedro Alves <palves@redhat.com>
5093
5094 * infrun.c (schedlock_applies): New function, factored out from
5095 find_thread_needs_step_over.
5096 (find_thread_needs_step_over): Use it.
5097 (switch_back_to_stepped_thread): Always clear trap_expected if the
5098 step over is finished. Return early if scheduler locking applies.
5099 Look for the stepping thread and a potential step-over thread with
5100 a single loop.
5101 (currently_stepping_or_nexting_callback): Delete.
5102
5103 2014-04-22 Nick Clifton <nickc@redhat.com>
5104
5105 * NEWS: Mention that ARM sim now supports tracing.
5106
5107 2014-04-22 Yao Qi <yao@codesourcery.com>
5108
5109 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5110 to ...
5111 * tracefile.c (tracefile_fetch_registers): ... it. New
5112 function.
5113 * tracefile.h (tracefile_fetch_registers): Declare.
5114 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5115 tracefile_fetch_registers.
5116
5117 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5118
5119 PR gdb/14018
5120 * windows-nat.c (thread_rec): Don't display a warning when
5121 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5122 fails for any reason, set th->suspended to -1, so that we don't
5123 try to resume such a thread. Also, don't return NULL in these
5124 cases, to avoid completely ruin the session due to "PC register is
5125 not available" error.
5126 (do_windows_fetch_inferior_registers): Check errors in
5127 GetThreadContext call.
5128 (windows_continue): Accept an additional argument KILLED; if not
5129 zero, ignore errors in the SetThreadContext call, since the
5130 inferior was killed and is shutting down.
5131 (windows_resume, get_windows_debug_event)
5132 (windows_create_inferior, windows_mourn_inferior)
5133 (windows_kill_inferior): All callers of windows_continue changed
5134 to adjust to its new calling sequence.
5135
5136 2014-04-19 Yao Qi <yao@codesourcery.com>
5137
5138 * ctf.c (ctf_open): Call post_create_inferior.
5139
5140 2014-04-19 Yao Qi <yao@codesourcery.com>
5141
5142 * ctf.c (handle_id): New static variable.
5143 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5144 value. Get the declaration of event "register" and get length
5145 of field "contents".
5146
5147 2014-04-19 Yao Qi <yao@codesourcery.com>
5148
5149 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5150
5151 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5152
5153 * valops.c (oload_method_static): Remove unnecessary argument
5154 METHOD. Update all callers.
5155
5156 2014-04-18 Pedro alves <palves@redhat.com>
5157 Tom Tromey <tromey@redhat.com>
5158
5159 PR backtrace/15558
5160 * frame.c (get_prev_frame_1): Rename to ...
5161 (get_prev_frame_always): ... this, and make extern. Adjust.
5162 (skip_artificial_frames): Use get_prev_frame_always.
5163 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5164 (get_frame_unwind_stop_reason): Adjust to rename.
5165 * frame.h (get_prev_frame_always): Declare.
5166 * inline-frame.c: Include frame.h.
5167 (inline_frame_this_id): Use get_prev_frame_always.
5168
5169 2014-04-18 Tristan Gingold <gingold@adacore.com>
5170
5171 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5172 code by using bfd_mach_o_get_base_address.
5173
5174 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5175
5176 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5177 (spu_ax_pseudo_register_collect): New function.
5178 (spu_ax_pseudo_register_push_stack): Likewise.
5179 (spu_dwarf_reg_to_regnum): Likewise.
5180 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5181
5182 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5183
5184 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5185 Replace FRAME argument with FRAME_ID.
5186 * gdbarch.c, gdbarch.h: Regenerate.
5187 * findvar.c (default_value_from_register): Add GDBARCH argument;
5188 replace FRAME by FRAME_ID. No longer call get_frame_id.
5189 (value_from_register): Update call to gdbarch_value_from_register.
5190 * value.h (default_value_from_register): Update prototype.
5191 * s390-linux-tdep.c (s390_value_from_register): Update interface
5192 and call to default_value_from_register.
5193 * spu-tdep.c (spu_value_from_register): Likewise.
5194
5195 * findvar.c (address_from_register): Remove TYPE argument.
5196 Do not call value_from_register; use gdbarch_value_from_register
5197 with null_frame_id instead.
5198 * value.h (address_from_register): Update prototype.
5199 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5200 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5201 address_from_register interface change.
5202
5203 2014-04-17 Yao Qi <yao@codesourcery.com>
5204
5205 * gdbtypes.h: Update comments to link to types and macros'
5206 definitions.
5207
5208 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5209
5210 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5211
5212 2014-04-16 Keith Seitz <keiths@redhat.com>
5213
5214 PR gdb/15827
5215 * dwarf2read.c (skip_one_die): Check that all relative-offset
5216 sibling DIEs fall within range of the current reader's buffer.
5217 (read_partial_die): Likewise.
5218
5219 2014-04-16 Keith Seitz <keiths@redhat.com>
5220
5221 PR c++/16597
5222 * cp-namespace.c (lookup_symbol_file): If the type name of
5223 `this' is NULL, return immediately.
5224
5225 2014-04-14 Keith Seitz <keiths@redhat.com>
5226
5227 PR c++/16253
5228 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5229 from symbol_matches_domain in symtab.c. All local callers
5230 of symbol_matches_domain updated.
5231 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5232 search STRUCT_DOMAIN.
5233 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5234 independently. standard_lookup will do that automatically.
5235 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5236 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5237 (cp_lookup_symbol_in_namespace): Likewise.
5238 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5239 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5240 may return a STRUCT_DOMAIN match.
5241 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5242 * cp-support.c: Include language.h.
5243 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5244 VAR_DOMAIN.
5245 * psymtab.c (match_partial_symbol): Compare the requested
5246 domain with the symbol's domain directly.
5247 (lookup_partial_symbol): Likewise.
5248 * symtab.c (lookup_symbol_in_language): Explain when/why
5249 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5250 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5251 appropriate languages.
5252 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5253 and moved to ada-lang.c
5254 (lookup_block_symbol): Explain that this function only returns
5255 symbol matching the requested DOMAIN.
5256 Compare the requested domain with the symbol's domain directly.
5257 (iterate_over_symbols): Compare the requested domain with the
5258 symbol's domain directly.
5259 * symtab.h (symbol_matches_domain): Remove.
5260
5261 2014-04-14 Tom Tromey <tromey@redhat.com>
5262
5263 PR c++/15246:
5264 * c-exp.y (type_aggregate_p): New function.
5265 (qualified_name, classify_inner_name): Use it.
5266 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5267 and TYPE_TARGET_TYPE of an enum type.
5268 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5269 an enum type.
5270 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5271 handle TYPE_DECLARED_CLASS.
5272 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5273 types.
5274 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5275 * valops.c (enum_constant_from_type): New function.
5276 (value_aggregate_elt): Use it.
5277 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5278 TYPE_CODE_ENUM.
5279
5280 2014-04-14 Tom Tromey <tromey@redhat.com>
5281
5282 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5283 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5284 const.
5285 * value.h (value_aggregate_elt): Update.
5286
5287 2014-04-14 Tom Tromey <tromey@redhat.com>
5288
5289 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5290
5291 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5292
5293 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5294 (evaluate_subexp_standard): Pass noside argument.
5295 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5296 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5297 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5298 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5299 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5300
5301 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5302
5303 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5304 points to a constant blob.
5305
5306 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5307
5308 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5309 property and store it as the high bound and flag the range accordingly.
5310 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5311 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5312 * gdbtypes.h (enum range_flags): New enum.
5313 (struct range_bounds): Add flags member.
5314
5315 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5316
5317 * c-typeprint.c (c_type_print_varspec_suffix): Added
5318 check for not yet resolved high bound. If unresolved, print
5319 "variable length" string to the console instead of random
5320 length.
5321
5322 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5323
5324 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5325 value.
5326 (ada_template_to_fixed_record_type_1): Likewise.
5327 (ada_to_fixed_type_1): Likewise.
5328 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5329 (cp_print_value): Likewise.
5330 * d-valprint.c (dynamic_array_type): Likewise.
5331 * findvar.c (address_of_variable): Likewise.
5332 * jv-valprint.c (java_value_print): Likewise.
5333 * valops.c (value_ind): Likewise.
5334 * value.c (coerce_ref): Likewise.
5335
5336 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5337
5338 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5339 value and retrieve the dynamic type size.
5340
5341 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5342
5343 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5344 passed to sizeof is dynamic evaluate the argument to compute the length.
5345
5346 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5347 Joel Brobecker <brobecker@adacore.com>
5348
5349 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5350 (dwarf2_evaluate_property): New function.
5351 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5352 * dwarf2read.c (attr_to_dynamic_prop): New function.
5353 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5354 attribute.
5355 * gdbtypes.c: Include dwarf2loc.h.
5356 (is_dynamic_type): New function.
5357 (resolve_dynamic_type): New function.
5358 (resolve_dynamic_bounds): New function.
5359 (get_type_length): New function.
5360 (check_typedef): Use get_type_length to compute type length.
5361 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5362 (TYPE_LOW_BOUND_KIND): New macro.
5363 (is_dynamic_type): New function prototype.
5364 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5365 to resolve dynamic properties of the type. Update comment.
5366 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5367
5368 2014-04-14 Richard Henderson <rth@redhat.com>
5369
5370 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5371
5372 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5373 Doug Evans <xdje42@gmail.com>
5374
5375 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5376 dereference TYPE_CODE_REF values.
5377
5378 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5379
5380 Revert the following changes due to regressions:
5381
5382 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5383 (dwarf2_evaluate_property): New function.
5384 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5385 * dwarf2read.c (attr_to_dynamic_prop): New function.
5386 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5387 attribute.
5388 * gdbtypes.c: Include dwarf2loc.h.
5389 (is_dynamic_type): New function.
5390 (resolve_dynamic_type): New function.
5391 (resolve_dynamic_bounds): New function.
5392 (get_type_length): New function.
5393 (check_typedef): Use get_type_length to compute type length.
5394 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5395 (TYPE_LOW_BOUND_KIND): New macro.
5396 (is_dynamic_type): New function prototype.
5397 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5398 to resolve dynamic properties of the type. Update comment.
5399 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5400
5401 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5402 passed to sizeof is dynamic evaluate the argument to compute the length.
5403
5404 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5405 value and retrieve the dynamic type size.
5406
5407 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5408 (ada_template_to_fixed_record_type_1): Likewise.
5409 (ada_to_fixed_type_1): Likewise.
5410 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5411 (cp_print_value): Likewise.
5412 * d-valprint.c (dynamic_array_type): Likewise.
5413 * eval.c (evaluate_subexp_with_coercion): Likewise.
5414 * findvar.c (address_of_variable): Likewise.
5415 * jv-valprint.c (java_value_print): Likewise.
5416 * valops.c (value_ind): Likewise.
5417 * value.c (coerce_ref): Likewise.
5418
5419 * c-typeprint.c (c_type_print_varspec_suffix): Added
5420 check for not yet resolved high bound. If unresolved, print
5421 "variable length" string to the console instead of random
5422 length.
5423
5424 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5425 property and store it as the high bound and flag the range accordingly.
5426 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5427 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5428 * gdbtypes.h (enum range_flags): New enum.
5429 (struct range_bounds): Add flags member.
5430
5431 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5432 points to a constant blob.
5433
5434 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5435 (evaluate_subexp_standard): Pass noside argument.
5436 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5437 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5438 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5439 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5440 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5441
5442 2014-04-11 Keith Seitz <keiths@redhat.com>
5443
5444 PR c++/16675
5445 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5446 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5447 reference types.
5448
5449 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5450
5451 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5452 (evaluate_subexp_standard): Pass noside argument.
5453 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5454 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5455 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5456 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5457 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5458
5459 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5460
5461 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5462 points to a constant blob.
5463
5464 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5465
5466 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5467 property and store it as the high bound and flag the range accordingly.
5468 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5469 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5470 * gdbtypes.h (enum range_flags): New enum.
5471 (struct range_bounds): Add flags member.
5472
5473 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5474
5475 * c-typeprint.c (c_type_print_varspec_suffix): Added
5476 check for not yet resolved high bound. If unresolved, print
5477 "variable length" string to the console instead of random
5478 length.
5479
5480 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5481
5482 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5483 (ada_template_to_fixed_record_type_1): Likewise.
5484 (ada_to_fixed_type_1): Likewise.
5485 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5486 (cp_print_value): Likewise.
5487 * d-valprint.c (dynamic_array_type): Likewise.
5488 * eval.c (evaluate_subexp_with_coercion): Likewise.
5489 * findvar.c (address_of_variable): Likewise.
5490 * jv-valprint.c (java_value_print): Likewise.
5491 * valops.c (value_ind): Likewise.
5492 * value.c (coerce_ref): Likewise.
5493
5494 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5495
5496 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5497 value and retrieve the dynamic type size.
5498
5499 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5500
5501 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5502 passed to sizeof is dynamic evaluate the argument to compute the length.
5503
5504 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5505
5506 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5507 (dwarf2_evaluate_property): New function.
5508 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5509 * dwarf2read.c (attr_to_dynamic_prop): New function.
5510 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5511 attribute.
5512 * gdbtypes.c: Include dwarf2loc.h.
5513 (is_dynamic_type): New function.
5514 (resolve_dynamic_type): New function.
5515 (resolve_dynamic_bounds): New function.
5516 (get_type_length): New function.
5517 (check_typedef): Use get_type_length to compute type length.
5518 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5519 (TYPE_LOW_BOUND_KIND): New macro.
5520 (is_dynamic_type): New function prototype.
5521 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5522 to resolve dynamic properties of the type. Update comment.
5523 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5524
5525 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5526
5527 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5528 declaring high/low bounds and change uses accordingly. Call
5529 create_range_type instead of create_static_range_type.
5530 * gdbtypes.c (create_range_type): New function.
5531 (create_range_type): Convert bounds into struct bound_prop and pass
5532 them to create_range_type.
5533 * gdbtypes.h (struct bound_prop): New struct.
5534 (create_range_type): New function prototype.
5535 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5536 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5537 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5538 part of the bound.
5539 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5540
5541 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5542
5543 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5544 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5545 * ada-lang.c: All uses of create_range_type updated.
5546 * coffread.c: All uses of create_range_type updated.
5547 * dwarf2read.c: All uses of create_range_type updated.
5548 * f-exp.y: All uses of create_range_type updated.
5549 * m2-valprint.c: All uses of create_range_type updated.
5550 * mdebugread.c: All uses of create_range_type updated.
5551 * stabsread.c: All uses of create_range_type updated.
5552 * valops.c: All uses of create_range_type updated.
5553 * valprint.c: All uses of create_range_type updated.
5554
5555 2014-04-10 Pedro Alves <palves@redhat.com>
5556
5557 * breakpoint.c (single_step_breakpoints)
5558 (single_step_gdbarch): Move up in the file.
5559 (one_breakpoint_xfer_memory): New function, factored out from ...
5560 (breakpoint_xfer_memory): ... here. Also process single-step
5561 breakpoints.
5562
5563 2014-04-09 Tristan Gingold <gingold@adacore.com>
5564
5565 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5566 comments.
5567 (darwin_decode_exception_message): Free port only after use.
5568
5569 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5570
5571 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5572 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5573 when setting the size of call_length.
5574
5575 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5576
5577 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5578 dereference TYPE_CODE_REF values.
5579
5580 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5581
5582 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5583 end of warning message.
5584
5585 2014-04-03 Doug Evans <dje@google.com>
5586
5587 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5588 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5589
5590 2014-04-02 Alan Modra <amodra@gmail.com>
5591
5592 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5593 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5594 (struct symbol_file_add_from_memory_args): Add size field.
5595 (find_vdso_size): New function.
5596 (add_vsyscall_page): Attempt to find vdso size.
5597
5598 2014-04-01 Doug Evans <dje@google.com>
5599
5600 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5601
5602 2014-04-01 Tristan Gingold <gingold@adacore.com>
5603
5604 * darwin-nat.c (darwin_encode_reply): Add prototype.
5605 (darwin_decode_exception_message): Reply to unknown inferiors.
5606 (darwin_decode_message): Handle message by id. Ignore message
5607 to unknown inferior.
5608 (darwin_wait): Discard unknown messages, add debug trace.
5609
5610 2014-03-31 Doug Evans <dje@google.com>
5611
5612 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5613 comp_dir_string.
5614
5615 2014-03-31 Doug Evans <dje@google.com>
5616
5617 New option "set print symbol-loading".
5618 * NEWS: Mention it.
5619 * solib.c (solib_read_symbols): Only print symbol loading messages
5620 if requested.
5621 (solib_add): If symbol loading is in "brief" mode, notify user
5622 symbols are being loaded.
5623 (reload_shared_libraries_1): Ditto.
5624 * symfile.c (print_symbol_loading_off): New static global.
5625 (print_symbol_loading_brief): New static global.
5626 (print_symbol_loading_full): New static global.
5627 (print_symbol_loading_enums): New static global.
5628 (print_symbol_loading): New static global.
5629 (print_symbol_loading_p): New function.
5630 (symbol_file_add_with_addrs): Only print symbol loading messages
5631 if requested.
5632 (_initialize_symfile): Register "print symbol-loading" set/show
5633 command.
5634 * symfile.h (print_symbol_loading_p): Declare.
5635
5636 2014-03-30 Doug Evans <xdje42@gmail.com>
5637
5638 * infrun.c (set_last_target_status): New function.
5639 (handle_inferior_event): Call it.
5640
5641 2014-03-30 Doug Evans <xdje42@gmail.com>
5642
5643 * inferior.h (enum stop_kind): Improve comment.
5644
5645 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5646
5647 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5648 a reference, strip the reference layer before calling
5649 the lang_ops value_has_mutated callback.
5650
5651 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5652
5653 Remove some globals from our parser.
5654 * language.c (unk_lang_parser): Add "struct parser_state"
5655 argument.
5656 * language.h (struct language_defn) <la_parser>: Likewise.
5657 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5658 (initialize_expout): Add "struct parser_state" argument.
5659 Rewrite function to use the parser state.
5660 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5661 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5662 write_exp_elt_longcst, write_exp_elt_dblcst,
5663 write_exp_elt_decfloatcst, write_exp_elt_type,
5664 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5665 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5666 write_dollar_variable): Likewise.
5667 (parse_exp_in_context_1): Use parser state.
5668 (insert_type_address_space): Add "struct parser_state" argument.
5669 Use parser state.
5670 (increase_expout_size): New function.
5671 * parser-defs.h: Forward declare "struct language_defn" and
5672 "struct parser_state".
5673 (expout, expout_size, expout_ptr): Remove extern declarations.
5674 (parse_gdbarch, parse_language): Rewrite macro declarations to
5675 accept the parser state.
5676 (struct parser_state): New struct.
5677 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5678 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5679 write_exp_elt_decfloatcst, write_exp_elt_type,
5680 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5681 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5682 write_exp_msymbol, write_dollar_variable,
5683 mark_struct_expression, insert_type_address_space): Add "struct
5684 parser_state" argument.
5685 (increase_expout_size): New function.
5686 * utils.c (do_clear_parser_state): New function.
5687 (make_cleanup_clear_parser_state): Likewise.
5688 * utils.h (make_cleanup_clear_parser_state): New function
5689 prototype.
5690 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5691 Update calls to write_exp* in order to pass the parser state.
5692 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5693 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5694 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5695 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5696 * stap-probe.c (stap_parse_register_operand): Likewise.
5697 (stap_parse_single_operand): Likewise.
5698 (stap_parse_argument_1): Likewise.
5699 (stap_parse_argument): Use parser state.
5700 * stap-probe.h: Include "parser-defs.h".
5701 (struct stap_parse_info) <pstate>: New field.
5702 * c-exp.y (parse_type): Rewrite to use parser state.
5703 (yyparse): Redefine to c_parse_internal.
5704 (pstate): New global variable.
5705 (parse_number): Add "struct parser_state" argument.
5706 (write_destructor_name): Likewise.
5707 (type_exp): Update calls to write_exp* and similars in order to
5708 use parser state.
5709 (exp1, exp, variable, qualified_name, space_identifier,
5710 typename, typebase): Likewise.
5711 (write_destructor_name, parse_number, lex_one_token,
5712 classify_name, classify_inner_name, c_parse): Add "struct
5713 parser_state" argument. Update function to use parser state.
5714 * c-lang.h: Forward declare "struct parser_state".
5715 (c_parse): Add "struct parser_state" argument.
5716 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5717 (yyparse): Redefine macro to ada_parse_internal.
5718 (pstate): New variable.
5719 (write_int, write_object_renaming, write_var_or_type,
5720 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5721 type_int, type_long, type_long_long, type_float, type_double,
5722 type_long_double, type_char, type_boolean, type_system_address):
5723 Add "struct parser_state" argument.
5724 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5725 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5726 var_or_type, aggregate, aggregate_component_list,
5727 positional_list, others, component_group,
5728 component_associations): Update calls to write_exp* and similar
5729 functions in order to use parser state.
5730 (ada_parse, write_var_from_sym, write_int,
5731 write_exp_op_with_string, write_object_renaming,
5732 find_primitive_type, write_selectors, write_ambiguous_var,
5733 write_var_or_type, write_name_assoc, type_int, type_long,
5734 type_long_long, type_float, type_double, type_long_double,
5735 type_char, type_boolean, type_system_address): Add "struct
5736 parser_state" argument. Adjust function to use parser state.
5737 * ada-lang.c (parse): Likewise.
5738 * ada-lang.h: Forward declare "struct parser_state".
5739 (ada_parse): Add "struct parser_state" argument.
5740 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5741 calls to both functions.
5742 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5743 parser state.
5744 (yyparse): Redefine macro to f_parse_internal.
5745 (pstate): New variable.
5746 (parse_number): Add "struct parser_state" argument.
5747 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5748 and similars in order to use parser state.
5749 (parse_number): Adjust code to use parser state.
5750 (yylex): Likewise.
5751 (f_parse): New function.
5752 * f-lang.h: Forward declare "struct parser_state".
5753 (f_parse): Add "struct parser_state" argument.
5754 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5755 parser state.
5756 (yyparse): Redefine macro for java_parse_internal.
5757 (pstate): New variable.
5758 (push_expression_name, push_expression_name, insert_exp): Add
5759 "struct parser_state" argument.
5760 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5761 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5762 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5763 PostIncrementExpression, PostDecrementExpression,
5764 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5765 UnaryExpressionNotPlusMinus, CastExpression,
5766 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5767 RelationalExpression, EqualityExpression, AndExpression,
5768 ExclusiveOrExpression, InclusiveOrExpression,
5769 ConditionalAndExpression, ConditionalOrExpression,
5770 ConditionalExpression, Assignment, LeftHandSide): Update
5771 calls to write_exp* and similars in order to use parser state.
5772 (parse_number): Ajust code to use parser state.
5773 (yylex): Likewise.
5774 (java_parse): New function.
5775 (push_variable): Add "struct parser_state" argument. Adjust
5776 code to user parser state.
5777 (push_fieldnames, push_qualified_expression_name,
5778 push_expression_name, insert_exp): Likewise.
5779 * jv-lang.h: Forward declare "struct parser_state".
5780 (java_parse): Add "struct parser_state" argument.
5781 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5782 parser state.
5783 (yyparse): Redefine macro to m2_parse_internal.
5784 (pstate): New variable.
5785 (type_exp, exp, fblock, variable, type): Update calls to
5786 write_exp* and similars to use parser state.
5787 (yylex): Likewise.
5788 (m2_parse): New function.
5789 * m2-lang.h: Forward declare "struct parser_state".
5790 (m2_parse): Add "struct parser_state" argument.
5791 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5792 * objc-lang.h: Forward declare "struct parser_state".
5793 (end_msglist): Add "struct parser_state" argument.
5794 * p-exp.y (parse_type): Rewrite macro to use parser state.
5795 (yyparse): Redefine macro to pascal_parse_internal.
5796 (pstate): New variable.
5797 (parse_number): Add "struct parser_state" argument.
5798 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5799 write_exp* and similars in order to use parser state.
5800 (parse_number, yylex): Adjust code to use parser state.
5801 (pascal_parse): New function.
5802 * p-lang.h: Forward declare "struct parser_state".
5803 (pascal_parse): Add "struct parser_state" argument.
5804 * go-exp.y (parse_type): Rewrite macro to use parser state.
5805 (yyparse): Redefine macro to go_parse_internal.
5806 (pstate): New variable.
5807 (parse_number): Add "struct parser_state" argument.
5808 (type_exp, exp1, exp, variable, type): Update calls to
5809 write_exp* and similars in order to use parser state.
5810 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5811 to use parser state.
5812 (go_parse): Likewise.
5813 * go-lang.h: Forward declare "struct parser_state".
5814 (go_parse): Add "struct parser_state" argument.
5815
5816 2014-03-27 Doug Evans <dje@google.com>
5817
5818 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5819
5820 2014-03-27 Doug Evans <dje@google.com>
5821
5822 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5823 Remove argument abbrev_section. All callers updated.
5824
5825 2014-03-27 Doug Evans <dje@google.com>
5826
5827 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5828 addr_base, ranges_base.
5829
5830 2014-03-26 Keith Seitz <keiths@redhat.com>
5831
5832 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5833 types, not VAR_DOMAIN.
5834
5835 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5836
5837 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5838 "ra" registers.
5839 * features/nios2-linux.c: Regenerated.
5840 * features/nios2.c: Regenerated.
5841
5842 2014-03-25 Pedro Alves <palves@redhat.com>
5843
5844 * cli/cli-script.c (script_from_file): Force the interpreter to
5845 sync mode.
5846
5847 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5848
5849 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5850 small stack allocation.
5851
5852 2014-03-24 Tristan Gingold <gingold@adacore.com>
5853
5854 * darwin-nat.c (exc_server): Remove unused prototype.
5855 (darwin_dump_message): Correctly display data on x86_64.
5856 (darwin_encode_reply): Fix style.
5857 Add comments and fix indentation.
5858
5859 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5860
5861 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5862
5863 2014-03-22 Doug Evans <xdje42@gmail.com>
5864
5865 * infcmd.c: Whitespace fixes.
5866 (interrupt_command): Merge two function comments into one.
5867
5868 2014-03-22 Doug Evans <xdje42@gmail.com>
5869
5870 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5871 All uses updated.
5872
5873 2014-03-22 Yao Qi <yao@codesourcery.com>
5874
5875 * remote.c (target_read_live_memory): Remove.
5876 (memory_xfer_live_readonly_partial): Rename it to
5877 remote_xfer_live_readonly_partial. Remove argument 'object'.
5878 All callers updated. Call remote_read_bytes_1
5879 instead of target_read_live_memory.
5880 * tracepoint.c (set_traceframe_number): Remove.
5881 (make_cleanup_restore_traceframe_number): Likewise .
5882 * tracepoint.h (set_traceframe_number): Remove declaration.
5883 (make_cleanup_restore_traceframe_number): Likewise.
5884
5885 2014-03-22 Yao Qi <yao@codesourcery.com>
5886
5887 * remote.c (remote_read_bytes): Move code on reading from the
5888 remote stub to ...
5889 (remote_read_bytes_1): ... here. New function.
5890
5891 2014-03-22 Yao Qi <yao@codesourcery.com>
5892
5893 * ctf.c (ctf_xfer_partial): Check the return value of
5894 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5895 return TARGET_XFER_UNAVAILABLE.
5896 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5897 * target.c (target_read_live_memory): Move it to remote.c.
5898 (memory_xfer_live_readonly_partial): Likewise.
5899 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5900 * remote.c (target_read_live_memory): Moved from target.c.
5901 (memory_xfer_live_readonly_partial): Likewise.
5902 (remote_read_bytes): Factored out from
5903 memory_xfer_partial_1.
5904
5905 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5906
5907 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5908 NULL pointer.
5909
5910 2014-03-21 Pedro Alves <palves@redhat.com>
5911
5912 * infrun.c (normal_stop): Extend comment.
5913
5914 2014-03-21 Hui Zhu <hui@codesourcery.com>
5915 Pedro Alves <palves@redhat.com>
5916
5917 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5918 static buffer.
5919 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5920 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5921 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5922
5923 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5924
5925 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5926 `z' formatted output modifier.
5927
5928 2014-03-20 Tom Tromey <tromey@redhat.com>
5929 Sergio Durigan Junior <sergiodj@redhat.com>
5930
5931 * probe.c (parse_probes): Turn assert into an ordinary error.
5932 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5933 exceptions when parsing probes. Rearrange the code for clarity.
5934
5935 2014-03-20 Tom Tromey <tromey@redhat.com>
5936
5937 PR gdb/14135
5938 * top.c (execute_command): Only dispatch events if the command
5939 started the target.
5940
5941 2014-03-20 Tom Tromey <tromey@redhat.com>
5942
5943 PR cli/15718
5944 * infcall.c: Include event-top.h.
5945 (run_inferior_call): Call async_disable_stdin if needed.
5946
5947 2014-03-20 Pedro Alves <palves@redhat.com>
5948
5949 * infrun.c (prepare_to_proceed): Delete.
5950 (thread_still_needs_step_over): New function.
5951 (find_thread_needs_step_over): New function.
5952 (proceed): If the current thread needs a step-over, set its
5953 steping_over_breakpoint flag. Adjust to use
5954 find_thread_needs_step_over instead of prepare_to_proceed.
5955 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5956 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5957 breakpoint.
5958 (switch_back_to_stepped_thread): Step over breakpoints of all
5959 threads not the stepping thread, before switching back to the
5960 stepping thread.
5961
5962 2014-03-20 Pedro Alves <palves@redhat.com>
5963
5964 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5965 extern.
5966 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5967 * infrun.c (saved_singlestep_ptid)
5968 (stepping_past_singlestep_breakpoint): Delete.
5969 (resume): Remove stepping_past_singlestep_breakpoint handling.
5970 (proceed): Store the prev_pc of the stepping thread too.
5971 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5972 singlestep_pc.
5973 (enum infwait_states): Delete infwait_thread_hop_state.
5974 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5975 field.
5976 (handle_inferior_event): Adjust.
5977 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5978 handling and the thread-hop code. Before removing single-step
5979 breakpoints, check whether the thread hit a single-step breakpoint
5980 of another thread. If it did, the trap is not a random signal.
5981 (switch_back_to_stepped_thread): If the event thread hit a
5982 single-step breakpoint, unblock it before switching to the
5983 stepping thread. Handle the case of the stepped thread having
5984 advanced already.
5985 (keep_going): Handle the case of the current thread moving past a
5986 single-step breakpoint.
5987
5988 2014-03-20 Pedro Alves <palves@redhat.com>
5989
5990 PR breakpoints/7143
5991 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5992 are being stepped over.
5993 (breakpoint_address_match): Make extern.
5994 * breakpoint.h (breakpoint_address_match): New declaration.
5995 * inferior.h (stepping_past_instruction_at): New declaration.
5996 * infrun.c (struct step_over_info): New type.
5997 (step_over_info): New global.
5998 (set_step_over_info, clear_step_over_info)
5999 (stepping_past_instruction_at): New functions.
6000 (handle_inferior_event): Clear the step-over info when
6001 trap_expected is cleared.
6002 (resume): Remove now stale comment.
6003 (clear_proceed_status): Clear step-over info.
6004 (proceed): Adjust step-over handling to set or clear the step-over
6005 info instead of removing all breakpoints.
6006 (handle_signal_stop): When setting up a thread-hop, don't remove
6007 breakpoints here.
6008 (stop_stepping): Clear step-over info.
6009 (keep_going): Adjust step-over handling to set or clear step-over
6010 info and then always inserting breakpoints, instead of removing
6011 all breakpoints when stepping over one.
6012
6013 2014-03-20 Pedro Alves <palves@redhat.com>
6014
6015 * infrun.c (previous_inferior_ptid): Adjust comment.
6016 (deferred_step_ptid): Delete.
6017 (infrun_thread_ptid_changed, prepare_to_proceed)
6018 (init_wait_for_inferior): Adjust.
6019 (handle_signal_stop): Delete deferred_step_ptid handling.
6020
6021 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6022
6023 PR gdb/15358
6024 * defs.h (sync_quit_force_run): New declaration.
6025 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6026 * event-top.c (async_sigterm_handler): New declaration.
6027 (async_sigterm_token): New variable.
6028 (async_init_signals): Create also async_sigterm_token.
6029 (async_sigterm_handler): New function.
6030 (sync_quit_force_run): New variable.
6031 (handle_sigterm): Replace quit_force call by other calls.
6032 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6033
6034 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6035
6036 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6037 offset into SPE pseudo registers.
6038
6039 2014-03-18 Pedro Alves <palves@redhat.com>
6040
6041 PR gdb/13860
6042 * inferior.h (print_stop_event): Declare.
6043 * infrun.c (print_stop_event): New, factored out from ...
6044 (normal_stop): ... this.
6045 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6046 of bpstat_print/print_stack_frame.
6047
6048 2014-03-17 Tom Tromey <tromey@redhat.com>
6049
6050 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6051
6052 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6053
6054 * ada-lang.c (decode_constrained_packed_array): Perform a
6055 minimal coercion for reference with coerce_ref instead of
6056 ada_coerce_ref.
6057
6058 2014-03-17 Tristan Gingold <gingold@adacore.com>
6059
6060 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6061 (darwin_solib_create_inferior_hook): Emit a warning if version
6062 is unhandled.
6063
6064 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6065
6066 * python/py-value.c (get_field_flag): Cast flag_name argument to
6067 PyObject_GetAttrString to support Python 2.4.
6068
6069 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6070
6071 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6072 (Global Maintainers): Remove Jan Kratochvil.
6073
6074 2014-03-14 Pedro Alves <palves@redhat.com>
6075
6076 * inferior.h (terminal_ours_for_output): Rename to ...
6077 (child_terminal_ours_for_output): ... this.
6078 (terminal_save_ours): Rename to ...
6079 (child_terminal_save_ours): ... this.
6080 (terminal_ours): Rename to ...
6081 (child_terminal_ours): ... this.
6082 (terminal_inferior): Rename to ...
6083 (child_terminal_inferior): ... this.
6084 (terminal_init_inferior): Rename to ...
6085 (child_terminal_init_inferior): ... this.
6086 (terminal_init_inferior_with_pgrp): Rename to ...
6087 (child_terminal_init_inferior_with_pgrp): ... this.
6088 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6089 (child_terminal_init_with_pgrp): ... this.
6090 (terminal_save_ours): Rename to ...
6091 (child_terminal_save_ours): ... this.
6092 (terminal_init_inferior): Rename to ...
6093 (child_terminal_init): ... this. Adjust.
6094 (terminal_inferior): Rename to ...
6095 (child_terminal_inferior): ... this.
6096 (terminal_ours_for_output): Rename to ...
6097 (child_terminal_ours_for_output): ... this. Adjust.
6098 (terminal_ours): Rename to ...
6099 (child_terminal_ours): ... this.
6100 (terminal_ours_1): Rename to ...
6101 (child_terminal_ours_1): ... this. Adjust.
6102 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6103 * windows-nat.c (do_initial_windows_stuff): Adjust.
6104 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6105 (gnu_terminal_init): ... this. Adjust.
6106 (gnu_target): Adjust.
6107 * inf-child.c (inf_child_target): Adjust.
6108
6109 2014-03-13 Doug Evans <xdje42@gmail.com>
6110
6111 PR guile/16612
6112 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6113 new eq?-hashtab.
6114
6115 2014-03-13 Doug Evans <xdje42@gmail.com>
6116
6117 * value.c (record_latest_value): Call release_value_or_incref
6118 instead of release_value.
6119
6120 2014-03-13 Pedro Alves <palves@redhat.com>
6121
6122 * procfs.c (procfs_target): Don't override to_shortname,
6123 to_longname or to_doc.
6124
6125 2014-03-13 Pedro Alves <palves@redhat.com>
6126
6127 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6128 Unix in user visible strings.
6129
6130 2014-03-12 Stan Shebs <stan@codesourcery.com>
6131
6132 * gdbtypes.h: Annotate comments for Doxygen, add a page
6133 block comment with some general info.
6134
6135 2014-03-12 Pedro Alves <palves@redhat.com>
6136
6137 * infcmd.c (prepare_execution_command): New function, factored out
6138 from several execution commands.
6139 (run_command_1, continue_command, step_1, jump_command)
6140 (signal_command, until_command, advance_command, finish_command)
6141 (attach_command): Use prepare_execution_command.
6142
6143 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6144
6145 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6146 (MAX_BPTS): Define.
6147 (MAX_WPTS): Define.
6148 (struct arm_linux_thread_points): Removed.
6149 (struct arm_linux_process_info): New.
6150 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6151 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6152 (arm_linux_find_breakpoints_by_tid): Removed.
6153 (struct arch_lwp_info): New.
6154 (arm_linux_find_process_pid): New functions.
6155 (arm_linux_add_process): New functions.
6156 (arm_linux_process_info_get): New functions.
6157 (arm_linux_forget_process): New function.
6158 (arm_linux_get_debug_reg_state): New function.
6159 (struct update_registers_data): New.
6160 (update_registers_callback): New function.
6161 (arm_linux_insert_hw_breakpoint1): Updated.
6162 (arm_linux_remove_hw_breakpoint1): Updated.
6163 (arm_linux_insert_hw_breakpoint): Updated.
6164 (arm_linux_remove_hw_breakpoint): Updated.
6165 (arm_linux_insert_watchpoint): Updated.
6166 (arm_linux_remove_watchpoint): Updated.
6167 (arm_linux_new_thread): Updated.
6168 (arm_linux_prepare_to_resume): New function.
6169 (arm_linux_new_fork): New function.
6170 (_initialize_arm_linux_nat): Updated.
6171
6172 2014-03-12 Pedro Alves <palves@redhat.com>
6173
6174 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6175
6176 2014-03-12 Tom Tromey <tromey@redhat.com>
6177
6178 * inf-child.c (return_zero): New function.
6179 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6180 * aix-thread.c (aix_thread_inferior_created): New function.
6181 (aix_thread_attach): Remove.
6182 (init_aix_thread_ops): Don't set to_attach.
6183 (_initialize_aix_thread): Register inferior_created observer.
6184 * corelow.c (init_core_ops): Don't set to_attach or
6185 to_create_inferior.
6186 * exec.c (init_exec_ops): Don't set to_attach or
6187 to_create_inferior.
6188 * infcmd.c (run_command_1): Use find_run_target. Make direct
6189 target calls.
6190 (attach_command): Use find_attach_target. Make direct target
6191 calls.
6192 * record-btrace.c (init_record_btrace_ops): Don't set
6193 to_create_inferior.
6194 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6195 Remove.
6196 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6197 set to_create_inferior.
6198 * target.c (complete_target_initialization): Add assertion.
6199 (target_create_inferior): Remove.
6200 (find_default_attach, find_default_create_inferior): Remove.
6201 (find_attach_target, find_run_target): New functions.
6202 (find_default_is_async_p, find_default_can_async_p)
6203 (target_supports_non_stop, target_attach): Remove.
6204 (init_dummy_target): Don't set to_create_inferior or
6205 to_supports_non_stop.
6206 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6207 TARGET_DEFAULT_FUNC.
6208 <to_create_inferior>: Add comment.
6209 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6210 TARGET_DEFAULT_RETURN.
6211 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6212 (find_attach_target, find_run_target): Declare.
6213 (target_create_inferior): Remove.
6214 (target_has_execution_1): Update comment.
6215 (target_supports_non_stop): Remove.
6216 * target-delegates.c: Rebuild.
6217
6218 2014-03-12 Pedro Alves <palves@redhat.com>
6219
6220 * inf-child.h: Update comment to not mention Unix.
6221
6222 2014-03-12 Pedro Alves <palves@redhat.com>
6223
6224 * inf-child.c: Update top comment to not mention Unix. Add
6225 generic comment describing how this target is meant to be used.
6226 (inf_child_post_attach, inf_child_post_startup_inferior)
6227 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6228 Unix in comment.
6229
6230 2014-03-12 Pedro Alves <palves@redhat.com>
6231
6232 * nto-procfs.c: Include inf-child.h.
6233 (procfs_ops): Delete global.
6234 (procfs_can_run): Delete method.
6235 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6236 target pointer instead of referencing procfs_ops.
6237 (procfs_prepare_to_store): Delete.
6238 (init_procfs_ops): Delete function.
6239 (procfs_target): New function, based on init_procfs_ops, but
6240 inherit inf_child_target.
6241 (_initialize_procfs): Use procfs_target.
6242
6243 2014-03-12 Pedro Alves <palves@redhat.com>
6244
6245 * windows-nat.c: Include inf-child.h.
6246 (windows_ops): Delete global.
6247 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6248 methods.
6249 (init_windows_ops): Delete function.
6250 (windows_target): New function, based on init_windows_ops, but
6251 inherit inf_child_target.
6252 (_initialize_windows_nat): Use windows_target. Install x86
6253 specific target methods here.
6254
6255 2014-03-10 Doug Evans <xdje42@gmail.com>
6256
6257 * guile/guile.c (call_initialize_gdb_module): New function.
6258 (initialize_guile): Replace call to scm_init_guile with call to
6259 scm_with_guile.
6260
6261 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6262
6263 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6264 in call to TYPE_CODE macro.
6265
6266 2014-03-10 Jerome Guitton <guitton@adacore.com>
6267
6268 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6269 Resolve tagged types to full view.
6270
6271 2014-03-10 Hui Zhu <hui@codesourcery.com>
6272
6273 * target.h (target_insert_breakpoint): Remove "hardware" from its
6274 comments.
6275
6276 2014-03-07 Doug Evans <dje@google.com>
6277
6278 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6279
6280 2014-03-07 Doug Evans <dje@google.com>
6281
6282 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6283 Remove unused local comp_dir_attr. Assert exactly one of
6284 stub_comp_unit_die, stub_comp_dir is non-NULL.
6285
6286 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6287
6288 * target.h (complete_target_initialization, add_target):
6289 Add comment.
6290
6291 2014-03-07 Pedro Alves <palves@redhat.com>
6292
6293 * go32-nat.c: Include inf-child.h.
6294 (go32_ops): Delete global.
6295 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6296 Delete methods.
6297 (go32_create_inferior): Push the passed in target pointer instead
6298 of referencing go32_ops.
6299 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6300 (go32_target): New function, based on init_go32_ops, but inherit
6301 inf_child_target.
6302 (_initialize_go32_nat): Use go32_target. Move parts of
6303 init_go32_ops here.
6304
6305 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6306
6307 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6308 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6309 SYMBOL_VALUE_ADDRESS.
6310 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6311
6312 2014-03-06 Yao Qi <yao@codesourcery.com>
6313
6314 * breakpoint.c (get_tracepoint_by_number): Remove argument
6315 optional_p. All callers updated. Adjust comments. Update
6316 output message.
6317 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6318
6319 2014-03-06 Yao Qi <yao@codesourcery.com>
6320
6321 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6322 early if get_number returns zero. Use 'p' instead of 'args'.
6323
6324 2014-03-06 Yao Qi <yao@codesourcery.com>
6325
6326 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6327 message.
6328
6329 2014-03-06 Yao Qi <yao@codesourcery.com>
6330
6331 PR breakpoints/16508
6332 * tracepoint.c (check_trace_running): New function.
6333 (trace_find_command): Move code to check_trace_running and
6334 call check_trace_running.
6335 (trace_find_pc_command): Likewise.
6336 (trace_find_tracepoint_command): Likewise.
6337 (trace_find_line_command): Likewise.
6338 (trace_find_range_command): Likewise.
6339 * tracepoint.h (check_trace_running): Likewise.
6340 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6341
6342 2014-03-06 Yao Qi <yao@codesourcery.com>
6343
6344 * target.h (struct target_ops) <to_traceframe_info>: Use
6345 TARGET_DEFAULT_NORETURN (tcomplain ()).
6346 * target-delegates.c: Regenerated.
6347
6348 2014-03-05 Pedro Alves <palves@redhat.com>
6349
6350 PR gdb/16575
6351 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6352 void. Update comment.
6353 (dcache_xfer_memory): Delete.
6354 (dcache_read_memory_partial): New, based on the read bits of
6355 dcache_xfer_memory.
6356 (dcache_update): Add status parameter. Use ULONGEST for len, and
6357 adjust. Discard cache lines if the reason for the update was
6358 error.
6359 * dcache.h (dcache_xfer_memory): Delete declaration.
6360 (dcache_read_memory_partial): New declaration.
6361 (dcache_update): Update prototype.
6362 * target.c (raw_memory_xfer_partial): Update the dcache here.
6363 (memory_xfer_partial_1): Don't handle dcache writes here.
6364
6365 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6366
6367 * remote-sim.c (gdbsim_load): Add const to prog.
6368
6369 2014-03-03 Tom Tromey <tromey@redhat.com>
6370
6371 * elfread.c (probe_key): Change to bfd_data.
6372 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6373 now per-BFD, not per-objfile.
6374 * stap-probe.c (stap_probe_destroy): Update comment.
6375 (handle_stap_probe): Allocate on the per-BFD obstack.
6376
6377 2014-03-03 Tom Tromey <tromey@redhat.com>
6378
6379 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6380 * breakpoint.c (create_longjmp_master_breakpoint): Use
6381 get_probe_address.
6382 (add_location_to_breakpoint, bkpt_probe_insert_location)
6383 (bkpt_probe_remove_location): Update.
6384 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6385 * elfread.c (elf_symfile_relocate_probe): Remove.
6386 (elf_probe_fns): Update.
6387 (insert_exception_resume_breakpoint): Change type of "probe"
6388 parameter to bound_probe.
6389 (check_exception_resume): Update.
6390 * objfiles.c (objfile_relocate1): Don't relocate probes.
6391 * probe.c (bound_probe_s): New typedef.
6392 (parse_probes): Use get_probe_address. Set sal's objfile.
6393 (find_probe_by_pc): Return a bound_probe.
6394 (collect_probes): Return a VEC(bound_probe_s).
6395 (compare_probes): Update.
6396 (gen_ui_out_table_header_info): Change type of "probes"
6397 parameter. Update.
6398 (info_probes_for_ops): Update.
6399 (get_probe_address): New function.
6400 (probe_safe_evaluate_at_pc): Update.
6401 * probe.h (struct probe_ops) <get_probe_address>: New field.
6402 <set_semaphore, clear_semaphore>: Add objfile parameter.
6403 (struct probe) <objfile>: Remove field.
6404 <arch>: New field.
6405 <address>: Update comment.
6406 (struct bound_probe): New.
6407 (find_probe_by_pc): Return a bound_probe.
6408 (get_probe_address): Declare.
6409 * solib-svr4.c (struct probe_and_action) <address>: New field.
6410 (hash_probe_and_action, equal_probe_and_action): Update.
6411 (register_solib_event_probe): Add address parameter.
6412 (solib_event_probe_at): Update.
6413 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6414 get_probe_address.
6415 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6416 (stap_get_probe_address): New function.
6417 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6418 (compile_probe_arg): Update.
6419 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6420 address.
6421 (handle_stap_probe): Don't relocate the probe.
6422 (stap_relocate): Remove.
6423 (stap_gen_info_probes_table_values): Update.
6424 (stap_probe_ops): Remove stap_relocate.
6425 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6426 (debug_sym_probe_fns): Update.
6427 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6428 * symtab.c (init_sal): Use memset.
6429 * symtab.h (struct symtab_and_line) <objfile>: New field.
6430 * tracepoint.c (start_tracing, stop_tracing): Update.
6431
6432 2014-03-03 Tom Tromey <tromey@redhat.com>
6433
6434 * probe.h (parse_probes, find_probe_by_pc)
6435 (find_probes_in_objfile): Fix comments.
6436
6437 2014-03-02 Doug Evans <xdje42@gmail.com>
6438
6439 * infrun.c (handle_signal_stop): Replace test for
6440 TARGET_WAITKIND_STOPPED with an assert.
6441
6442 2014-03-02 Doug Evans <xdje42@gmail.com>
6443
6444 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6445
6446 2014-03-02 Doug Evans <xdje42@gmail.com>
6447
6448 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6449
6450 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6451
6452 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6453
6454 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6455
6456 * i386obsd-nat.c: Include "obsd-nat.h".
6457 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6458 add_target.
6459 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6460
6461 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6462
6463 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6464
6465 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6466
6467 * mips64obsd-nat.c: Include "obsd-nath".
6468 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6469 add_target
6470 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6471
6472 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6473
6474 * amd64obsd-nat.c: Include "obsd-nat,h.
6475 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6476 add_target.
6477 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6478
6479 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6480
6481 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6482 (find_overload_match): Update call to find_oload_champ.
6483 (find_oload_champ_namespace_loop): Likewise
6484
6485 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6486
6487 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6488
6489 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6490 * config/sparc/obsd64.mh: New file.
6491 * sparc64obsd-nat.c: New file.
6492
6493 * obsd-nat.h: New file.
6494 * obsd-nat.c: New file.
6495 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6496 (ALLDEPFILES): Add obsd-nat.c.
6497
6498 2014-02-28 Tom Tromey <tromey@redhat.com>
6499
6500 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6501 * cli-out.h (cli_ui_out_impl): Now const.
6502 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6503 * ui-out.c (struct ui_out) <impl>: Now const.
6504 (default_ui_out_impl): Now const.
6505 (ui_out_new): Make 'impl' parameter const.
6506 * ui-out.h (ui_out_new): Update.
6507
6508 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6509
6510 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6511
6512 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6513
6514 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6515
6516 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6517
6518 Additional PR 8882 fix.
6519 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6520
6521 2014-02-27 Pedro Alves <palves@redhat.com>
6522
6523 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6524 isn't set.
6525
6526 2014-02-27 Pedro Alves <palves@redhat.com>
6527
6528 PR 12702
6529 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6530 * nat/linux-waitpid.c: Include string.h.
6531 (status_to_str): Moved here and made extern.
6532 * nat/linux-waitpid.h (status_to_str): New declaration.
6533
6534 2014-02-27 Hui Zhu <hui@codesourcery.com>
6535
6536 PR 12702
6537 * infrun.c (ptid_match): Move ...
6538 * common/ptid.c (ptid_match): ... here.
6539 * inferior.h (ptid_match): Move ...
6540 * common/ptid.h (ptid_match): ... here.
6541
6542 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6543
6544 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6545 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6546 gdb_target_obs.
6547
6548 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6549
6550 * obsd-tdep.c (obsd_auxv_parse): New function.
6551 (obsd_init_abi): Set auxv_parse.
6552
6553 * gdbarch.sh (auxv_parse): New.
6554 * gdbarch.h: Regenerated.
6555 * gdbarch.c: Regenerated.
6556 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6557
6558 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6559
6560 * guile/scm-value.c (gdbscm_history_append_x): New function.
6561 (value_functions): Add it.
6562
6563 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6564
6565 * dwarf2read.c (attr_value_as_address): New function.
6566 (dwarf2_find_base_address, read_call_site_scope): Use
6567 attr_value_as_address in place of DW_ADDR.
6568 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6569 the low and high addresses. Slight rework of the handling
6570 of the high pc being a constant form, and limit it to
6571 DWARF verson 4 or higher.
6572 (dwarf2_record_block_ranges): Likewise.
6573 (read_partial_die): Likewise.
6574 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6575
6576 2014-02-26 Tom Tromey <tromey@redhat.com>
6577
6578 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6579
6580 2014-02-26 Tom Tromey <tromey@redhat.com>
6581
6582 * elfread.c (elf_read_minimal_symbols): Return early if
6583 minimal symbols have already been read. Add "ei" parameter.
6584 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6585 * minsyms.c (prim_record_minimal_symbol_full): Update.
6586 * objfiles.h (struct objstats) <n_minsyms>: Move...
6587 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6588 * symmisc.c (print_objfile_statistics): Update.
6589
6590 2014-02-26 Tom Tromey <tromey@redhat.com>
6591
6592 * elfread.c (elf_read_minimal_symbols): New function, from
6593 elf_symfile_read.
6594 (elf_symfile_read): Call it.
6595
6596 2014-02-26 Tom Tromey <tromey@redhat.com>
6597
6598 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6599 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6600 (lookup_minimal_symbol_solib_trampoline)
6601 (lookup_minimal_symbol_by_pc_section_1)
6602 (lookup_minimal_symbol_and_objfile): Update.
6603 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6604 Don't allocate a minimal symbol if minsyms have already been read.
6605 (build_minimal_symbol_hash_tables): Update.
6606 (install_minimal_symbols): Do nothing if minsyms already read.
6607 Use the per-BFD obstack.
6608 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6609 * objfiles.c (allocate_objfile): Call
6610 terminate_minimal_symbol_table later.
6611 (have_minimal_symbols): Update.
6612 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6613 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6614 Move from struct objfile.
6615 <minsyms_read>: New field.
6616 (struct objfile) <msymbols, minimal_symbol_count,
6617 msymbol_hash, msymbol_demangled_hash>: Move.
6618 (ALL_OBJFILE_MSYMBOLS): Update.
6619 * symfile.c (read_symbols): Set minsyms_read.
6620 (reread_symbols): Update.
6621 * symmisc.c (dump_objfile, dump_msymbols): Update.
6622
6623 2014-02-26 Tom Tromey <tromey@redhat.com>
6624
6625 * minsyms.c (msymbols_sort): Remove.
6626 * minsyms.h (msymbols_sort): Remove.
6627 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6628 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6629 * elfread.c (elf_symtab_read): Don't add section offsets.
6630 * xcoffread.c (record_minimal_symbol): Don't add section offset
6631 to minimal symbol address.
6632 * somread.c (text_offset, data_offset): Remove.
6633 (som_symtab_read): Don't add section offsets to minimal symbol
6634 addresses.
6635 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6636 Don't add section offsets to minimal symbols.
6637 * coffread.c (coff_symtab_read): Don't add section offsets
6638 to minimal symbol addresses.
6639 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6640 to minimal symbol addresses.
6641 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6642 section offset to minimal symbol addresses.
6643 * mdebugread.c (parse_partial_symbols): Don't add section
6644 offset to minimal symbol addresses.
6645 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6646 offset to minimal symbol addresses.
6647
6648 2014-02-26 Tom Tromey <tromey@redhat.com>
6649
6650 * ada-lang.c (ada_main_name): Update.
6651 (ada_add_standard_exceptions): Update.
6652 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6653 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6654 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6655 * auxv.c (ld_so_xfer_auxv): Update.
6656 * avr-tdep.c (avr_scan_prologue): Update.
6657 * ax-gdb.c (gen_var_ref): Update.
6658 * blockframe.c (get_pc_function_start)
6659 (find_pc_partial_function_gnu_ifunc): Update.
6660 * breakpoint.c (create_overlay_event_breakpoint)
6661 (create_longjmp_master_breakpoint)
6662 (create_std_terminate_master_breakpoint)
6663 (create_exception_master_breakpoint): Update.
6664 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6665 * c-valprint.c (c_val_print): Update.
6666 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6667 * common/agent.c (agent_look_up_symbols): Update.
6668 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6669 * dwarf2loc.c (call_site_to_target_addr): Update.
6670 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6671 * elfread.c (elf_gnu_ifunc_record_cache)
6672 (elf_gnu_ifunc_resolve_by_got): Update.
6673 * findvar.c (default_read_var_value): Update.
6674 * frame.c (inside_main_func): Update.
6675 * frv-tdep.c (frv_frame_this_id): Update.
6676 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6677 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6678 Update.
6679 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6680 (hppa_hpux_find_dummy_bpaddr): Update.
6681 * hppa-tdep.c (hppa_symbol_address): Update.
6682 * infcmd.c (until_next_command): Update.
6683 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6684 Update.
6685 * linespec.c (minsym_found, add_minsym): Update.
6686 * linux-nat.c (get_signo): Update.
6687 * linux-thread-db.c (inferior_has_bug): Update.
6688 * m32c-tdep.c (m32c_return_value)
6689 (m32c_m16c_address_to_pointer): Update.
6690 * m32r-tdep.c (m32r_frame_this_id): Update.
6691 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6692 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6693 * maint.c (maintenance_translate_address): Update.
6694 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6695 (frob_address): New function.
6696 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6697 frob_address. Rename parameter to "pc_in".
6698 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6699 addresses.
6700 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6701 Update.
6702 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6703 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6704 * objc-lang.c (find_objc_msgsend): Update.
6705 * objfiles.c (objfile_relocate1): Update.
6706 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6707 * p-valprint.c (pascal_val_print): Update.
6708 * parse.c (write_exp_msymbol): Update.
6709 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6710 (ppc_elfv2_skip_entrypoint): Update.
6711 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6712 * printcmd.c (build_address_symbolic, msym_info)
6713 (address_info): Update.
6714 * proc-service.c (ps_pglobal_lookup): Update.
6715 * psymtab.c (find_pc_sect_psymtab_closer)
6716 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6717 Change msymbol parameter to bound_minimal_symbol.
6718 * ravenscar-thread.c (get_running_thread_id): Update.
6719 * remote.c (remote_check_symbols): Update.
6720 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6721 address.
6722 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6723 * solib-dsbt.c (lm_base): Update.
6724 * solib-frv.c (lm_base, main_got): Update.
6725 * solib-irix.c (locate_base): Update.
6726 * solib-som.c (som_solib_create_inferior_hook)
6727 (link_map_start): Update.
6728 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6729 * solib-svr4.c (elf_locate_base, enable_break): Update.
6730 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6731 (flush_ea_cache): Update.
6732 * stabsread.c (define_symbol, scan_file_globals): Update.
6733 * stack.c (find_frame_funname): Update.
6734 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6735 (debug_qf_find_pc_sect_symtab): Update.
6736 * symfile.c (simple_read_overlay_table)
6737 (simple_overlay_update): Update.
6738 * symfile.h (struct quick_symbol_functions)
6739 <find_pc_sect_symtab>: Change type of msymbol to
6740 bound_minimal_symbol.
6741 * symmisc.c (dump_msymbols): Update.
6742 * symtab.c (find_pc_sect_symtab_via_partial)
6743 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6744 (search_symbols, print_msymbol_info): Update.
6745 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6746 (MSYMBOL_VALUE_ADDRESS): Redefine.
6747 (BMSYMBOL_VALUE_ADDRESS): New macro.
6748 * tracepoint.c (scope_info): Update.
6749 * tui/tui-disasm.c (tui_find_disassembly_address)
6750 (tui_get_begin_asm_address): Update.
6751 * valops.c (find_function_in_inferior): Update.
6752 * value.c (value_static_field, value_fn_field): Update.
6753
6754 2014-02-26 Tom Tromey <tromey@redhat.com>
6755
6756 * ada-lang.c (ada_update_initial_language): Update.
6757 (ada_main_name, ada_has_this_exception_support): Update.
6758 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6759 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6760 * arm-tdep.c (arm_skip_stub): Update.
6761 * auxv.c (ld_so_xfer_auxv): Update.
6762 * avr-tdep.c (avr_scan_prologue): Update.
6763 * ax-gdb.c (gen_var_ref): Update.
6764 * breakpoint.c (struct breakpoint_objfile_data)
6765 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6766 type to bound_minimal_symbol.
6767 (create_overlay_event_breakpoint)
6768 (create_longjmp_master_breakpoint)
6769 (create_std_terminate_master_breakpoint)
6770 (create_exception_master_breakpoint): Update.
6771 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6772 * c-exp.y (classify_name): Update.
6773 * coffread.c (coff_symfile_read): Update.
6774 * common/agent.c (agent_look_up_symbols): Update.
6775 * d-lang.c (d_main_name): Update.
6776 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6777 * dec-thread.c (enable_dec_thread): Update.
6778 * dwarf2loc.c (call_site_to_target_addr): Update.
6779 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6780 * eval.c (evaluate_subexp_standard): Update.
6781 * findvar.c (struct minsym_lookup_data) <result>: Change type
6782 to bound_minimal_symbol.
6783 <objfile>: Remove.
6784 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6785 * frame.c (inside_main_func): Update.
6786 * frv-tdep.c (frv_frame_this_id): Update.
6787 * gcore.c (call_target_sbrk): Update.
6788 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6789 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6790 Update.
6791 * go-lang.c (go_main_name): Update.
6792 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6793 (hppa_hpux_find_import_stub_for_addr): Update.
6794 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6795 Update. Change return type.
6796 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6797 type.
6798 * jit.c (jit_breakpoint_re_set_internal): Update.
6799 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6800 Update.
6801 * linux-nat.c (get_signo): Update.
6802 * linux-thread-db.c (inferior_has_bug): Update
6803 * m32c-tdep.c (m32c_return_value)
6804 (m32c_m16c_address_to_pointer): Update.
6805 * m32r-tdep.c (m32r_frame_this_id): Update.
6806 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6807 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6808 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6809 lookup_minimal_symbol. Change return type.
6810 (lookup_minimal_symbol): Remove.
6811 (lookup_bound_minimal_symbol): Update.
6812 (lookup_minimal_symbol_text): Change return type.
6813 (lookup_minimal_symbol_solib_trampoline): Change return type.
6814 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6815 (lookup_minimal_symbol_solib_trampoline): Change return type.
6816 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6817 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6818 (value_nsstring, find_imps): Update.
6819 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6820 * p-lang.c (pascal_main_name): Update.
6821 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6822 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6823 * proc-service.c (ps_pglobal_lookup): Update.
6824 * ravenscar-thread.c (get_running_thread_msymbol): Change
6825 return type.
6826 (has_ravenscar_runtime, get_running_thread_id): Update.
6827 * remote.c (remote_check_symbols): Update.
6828 * sol-thread.c (ps_pglobal_lookup): Update.
6829 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6830 * solib-dsbt.c (lm_base): Update.
6831 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6832 Update.
6833 * solib-irix.c (locate_base): Update.
6834 * solib-som.c (som_solib_create_inferior_hook)
6835 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6836 Update.
6837 * solib-spu.c (spu_enable_break): Update.
6838 * solib-svr4.c (elf_locate_base, enable_break): Update.
6839 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6840 (flush_ea_cache): Update.
6841 * stabsread.c (define_symbol): Update.
6842 * symfile.c (simple_read_overlay_table): Update.
6843 * symtab.c (find_pc_sect_line): Update.
6844 * tracepoint.c (scope_info): Update.
6845 * tui-disasm.c (tui_get_begin_asm_address): Update.
6846 * value.c (value_static_field): Update.
6847
6848 2014-02-26 Tom Tromey <tromey@redhat.com>
6849
6850 * minsyms.c (prim_record_minimal_symbol_full): Use
6851 SET_MSYMBOL_VALUE_ADDRESS.
6852 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6853 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6854 SET_MSYMBOL_VALUE_ADDRESS.
6855 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6856 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6857
6858 2014-02-26 Tom Tromey <tromey@redhat.com>
6859
6860 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6861 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6862 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6863 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6864 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6865 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6866 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6867 * ada-lang.c (ada_main_name): Update.
6868 (ada_lookup_simple_minsym): Update.
6869 (ada_make_symbol_completion_list): Update.
6870 (ada_add_standard_exceptions): Update.
6871 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6872 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6873 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6874 * arm-tdep.c (skip_prologue_function): Update.
6875 (arm_skip_stack_protector, arm_skip_stub): Update.
6876 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6877 (arm_wince_skip_main_prologue): Update.
6878 * auxv.c (ld_so_xfer_auxv): Update.
6879 * avr-tdep.c (avr_scan_prologue): Update.
6880 * ax-gdb.c (gen_var_ref): Update.
6881 * block.c (call_site_for_pc): Update.
6882 * blockframe.c (get_pc_function_start): Update.
6883 (find_pc_partial_function_gnu_ifunc): Update.
6884 * breakpoint.c (create_overlay_event_breakpoint): Update.
6885 (create_longjmp_master_breakpoint): Update.
6886 (create_std_terminate_master_breakpoint): Update.
6887 (create_exception_master_breakpoint): Update.
6888 (resolve_sal_pc): Update.
6889 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6890 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6891 Update.
6892 * c-valprint.c (c_val_print): Update.
6893 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6894 * coffread.c (coff_symfile_read): Update.
6895 * common/agent.c (agent_look_up_symbols): Update.
6896 * dbxread.c (find_stab_function_addr): Update.
6897 (end_psymtab): Update.
6898 * dwarf2loc.c (call_site_to_target_addr): Update.
6899 (func_verify_no_selftailcall): Update.
6900 (tailcall_dump): Update.
6901 (call_site_find_chain_1): Update.
6902 (dwarf_expr_reg_to_entry_parameter): Update.
6903 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6904 (elf_gnu_ifunc_resolve_by_got): Update.
6905 * f-valprint.c (info_common_command): Update.
6906 * findvar.c (read_var_value): Update.
6907 * frame.c (get_prev_frame_1): Update.
6908 (inside_main_func): Update.
6909 * frv-tdep.c (frv_skip_main_prologue): Update.
6910 (frv_frame_this_id): Update.
6911 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6912 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6913 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6914 (gnuv3_skip_trampoline): Update.
6915 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6916 (hppa64_hpux_in_solib_call_trampoline): Update.
6917 (hppa_hpux_skip_trampoline_code): Update.
6918 (hppa64_hpux_search_dummy_call_sequence): Update.
6919 (hppa_hpux_find_import_stub_for_addr): Update.
6920 (hppa_hpux_find_dummy_bpaddr): Update.
6921 * hppa-tdep.c (hppa_symbol_address)
6922 (hppa_lookup_stub_minimal_symbol): Update.
6923 * i386-tdep.c (i386_skip_main_prologue): Update.
6924 (i386_pe_skip_trampoline_code): Update.
6925 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6926 * infcall.c (get_function_name): Update.
6927 * infcmd.c (until_next_command): Update.
6928 * jit.c (jit_breakpoint_re_set_internal): Update.
6929 (jit_inferior_init): Update.
6930 * linespec.c (minsym_found): Update.
6931 (add_minsym): Update.
6932 * linux-fork.c (info_checkpoints_command): Update.
6933 * linux-nat.c (get_signo): Update.
6934 * linux-thread-db.c (inferior_has_bug): Update.
6935 * m32c-tdep.c (m32c_return_value): Update.
6936 (m32c_m16c_address_to_pointer): Update.
6937 (m32c_m16c_pointer_to_address): Update.
6938 * m32r-tdep.c (m32r_frame_this_id): Update.
6939 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6940 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6941 * maint.c (maintenance_translate_address): Update.
6942 * minsyms.c (add_minsym_to_hash_table): Update.
6943 (add_minsym_to_demangled_hash_table): Update.
6944 (msymbol_objfile): Update.
6945 (lookup_minimal_symbol): Update.
6946 (iterate_over_minimal_symbols): Update.
6947 (lookup_minimal_symbol_text): Update.
6948 (lookup_minimal_symbol_by_pc_name): Update.
6949 (lookup_minimal_symbol_solib_trampoline): Update.
6950 (lookup_minimal_symbol_by_pc_section_1): Update.
6951 (lookup_minimal_symbol_and_objfile): Update.
6952 (prim_record_minimal_symbol_full): Update.
6953 (compare_minimal_symbols): Update.
6954 (compact_minimal_symbols): Update.
6955 (build_minimal_symbol_hash_tables): Update.
6956 (install_minimal_symbols): Update.
6957 (terminate_minimal_symbol_table): Update.
6958 (find_solib_trampoline_target): Update.
6959 (minimal_symbol_upper_bound): Update.
6960 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6961 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6962 (mips_skip_pic_trampoline_code): Update.
6963 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6964 * objc-lang.c (selectors_info): Update.
6965 (classes_info): Update.
6966 (find_methods): Update.
6967 (find_imps): Update.
6968 (find_objc_msgsend): Update.
6969 * objfiles.c (objfile_relocate1): Update.
6970 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6971 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6972 * p-valprint.c (pascal_val_print): Update.
6973 * parse.c (write_exp_msymbol): Update.
6974 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6975 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6976 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6977 * printcmd.c (build_address_symbolic): Update.
6978 (sym_info): Update.
6979 (address_info): Update.
6980 * proc-service.c (ps_pglobal_lookup): Update.
6981 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6982 (find_pc_sect_psymtab): Update.
6983 * python/py-framefilter.c (py_print_frame): Update.
6984 * ravenscar-thread.c (get_running_thread_id): Update.
6985 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6986 Update.
6987 * remote.c (remote_check_symbols): Update.
6988 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6989 (rs6000_skip_trampoline_code): Update.
6990 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6991 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6992 * solib-dsbt.c (lm_base): Update.
6993 * solib-frv.c (lm_base): Update.
6994 (main_got): Update.
6995 * solib-irix.c (locate_base): Update.
6996 * solib-som.c (som_solib_create_inferior_hook): Update.
6997 (som_solib_desire_dynamic_linker_symbols): Update.
6998 (link_map_start): Update.
6999 * solib-spu.c (spu_enable_break): Update.
7000 (ocl_enable_break): Update.
7001 * solib-svr4.c (elf_locate_base): Update.
7002 (enable_break): Update.
7003 * spu-tdep.c (spu_get_overlay_table): Update.
7004 (spu_catch_start): Update.
7005 (flush_ea_cache): Update.
7006 * stabsread.c (define_symbol): Update.
7007 (scan_file_globals): Update.
7008 * stack.c (find_frame_funname): Update.
7009 (frame_info): Update.
7010 * symfile.c (simple_read_overlay_table): Update.
7011 (simple_overlay_update): Update.
7012 * symmisc.c (dump_msymbols): Update.
7013 * symtab.c (fixup_section): Update.
7014 (find_pc_sect_line): Update.
7015 (skip_prologue_sal): Update.
7016 (search_symbols): Update.
7017 (print_msymbol_info): Update.
7018 (rbreak_command): Update.
7019 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7020 (completion_list_objc_symbol): Update.
7021 (default_make_symbol_completion_list_break_on): Update.
7022 * tracepoint.c (scope_info): Update.
7023 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7024 (tui_get_begin_asm_address): Update.
7025 * valops.c (find_function_in_inferior): Update.
7026 * value.c (value_static_field): Update.
7027 (value_fn_field): Update.
7028
7029 2014-02-26 Tom Tromey <tromey@redhat.com>
7030
7031 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7032 bound minimal symbols. Move code that knows about minsym
7033 table layout...
7034 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7035 function.
7036 * minsyms.h (minimal_symbol_upper_bound): Declare.
7037 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7038 minimal_symbol_upper_bound.
7039
7040 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7041
7042 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7043 Use the type's name if its basic type does not have a tag.
7044
7045 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7046
7047 * dwarf2read.c (read_subrange_type): Add comment.
7048
7049 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7050
7051 * dwarf2read.c (update_enumeration_type_from_children): New
7052 function, mostly extracted from process_structure_scope.
7053 (read_enumeration_type): Call update_enumeration_type_from_children.
7054 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7055 and flag_flag_enum fields.
7056
7057 2014-02-26 Pedro Alves <palves@redhat.com>
7058
7059 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7060 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7061 to_xfer_partial method.
7062
7063 2014-02-26 Pedro Alves <palves@redhat.com>
7064
7065 * target.c (complete_target_initialization): Don't install
7066 default_xfer_partial as to_xfer_partial hook.
7067 (nomemory): Delete.
7068 (update_current_target): Don't INHERIT nor de_fault
7069 deprecated_xfer_memory. Delete de_fault macro.
7070 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7071 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7072 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7073 field.
7074
7075 2014-02-26 Pedro Alves <palves@redhat.com>
7076
7077 * go32-nat.c (my_write_child): New function.
7078 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7079 (go32_xfer_partial): New function.
7080 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7081 Instead install a to_xfer_partial hook.
7082
7083 2014-02-26 Pedro Alves <palves@redhat.com>
7084
7085 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7086 to_xfer_partial helper. Rewrite.
7087 (procfs_xfer_partial): New function.
7088 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7089 Install a to_xfer_partial hook.
7090
7091 2014-02-26 Pedro Alves <palves@redhat.com>
7092
7093 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7094 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7095 (m32r_xfer_partial): New function.
7096 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7097 Install a to_xfer_partial hook.
7098
7099 2014-02-26 Pedro Alves <palves@redhat.com>
7100
7101 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7102 helper.
7103 (mips_xfer_partial): New function.
7104 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7105 hook. Install a to_xfer_partial hook.
7106
7107 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7108
7109 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7110 * gdbtypes.c (create_array_type_with_stride): New function,
7111 renaming create_array_type, but with an added parameter
7112 called "bit_stride".
7113 (create_array_type): Re-implement using
7114 create_array_type_with_stride.
7115 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7116 and DW_AT_bit_stride attributes.
7117
7118 2014-02-26 Pedro Alves <palves@redhat.com>
7119
7120 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7121 task-specific breakpoints.
7122
7123 2014-02-25 Pedro Alves <palves@redhat.com>
7124
7125 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7126 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7127
7128 2014-02-25 Stan Shebs <stan@codesourcery.com>
7129
7130 * defs.h: Annotate comments for Doxygen.
7131
7132 2014-02-25 Tom Tromey <tromey@redhat.com>
7133
7134 * target.h (target_ignore): Don't declare.
7135 * target.c (target_ignore): Remove.
7136
7137 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7138
7139 PR gdb/16626
7140 * auto-load.c (auto_load_objfile_script_1): Change filename to
7141 debugfile.
7142
7143 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7144
7145 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7146 documentation. Adjust prototype to match the target_ops
7147 to_xfer_partial method. Adjust implementation accordingly.
7148
7149 2014-02-25 Hui Zhu <hui@codesourcery.com>
7150
7151 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7152 to_traceframe_info.
7153
7154 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7155
7156 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7157 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7158 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7159 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7160 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7161 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7162 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7163 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7164 New constants.
7165 (rl78_register_type): Use a data pointer type for SP and
7166 new pseudo registers mentioned above. Use a 16 bit integer
7167 type for all other register pairs.
7168 (rl78_register_name, rl78_g10_register_name): Update for
7169 new pseudo registers.
7170 (rl78_pseudo_register_read): Likewise.
7171 (rl78_pseudo_register_write): Likewise.
7172 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7173 to the newly added pseudo registers.
7174
7175 2014-02-24 Doug Evans <dje@google.com>
7176
7177 * value.c (record_latest_value): Fix comment.
7178 * printcmd.c (print_command_1): Remove code to handle -1 return from
7179 record_latest_value.
7180
7181 2014-02-24 Pedro Alves <palves@redhat.com>
7182
7183 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7184 deprecated_xfer_memory hook.
7185 (procfs_xfer_partial): Call procfs_xfer_memory instead
7186 of the deprecated_xfer_memory target hook.
7187 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7188 helper.
7189
7190 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7191
7192 * windows-nat.c (windows_xfer_shared_libraries): Return
7193 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7194 requested object is TARGET_OBJECT_LIBRARIES.
7195
7196 2014-02-24 Yao Qi <yao@codesourcery.com>
7197
7198 * target.h (enum target_xfer_status)
7199 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7200 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7201 explicitly. New.
7202 * corefile.c (memory_error_message): User updated.
7203 * exec.c (section_table_read_available_memory): Likewise.
7204 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7205 * target.c (target_xfer_status_to_string): Likewise.
7206 (raw_memory_xfer_partial): Likewise.
7207 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7208 * valops.c (read_value_memory): Likewise.
7209 * exec.h: Update comments.
7210
7211 2014-02-24 Yao Qi <yao@codesourcery.com>
7212
7213 * target.c (target_xfer_status_to_string): Rename argument err
7214 to status.
7215 * target.h (target_xfer_status_to_string): Update declaration.
7216 Replace target_xfer_error_to_string with
7217 target_xfer_status_to_string in comment.
7218
7219 2014-02-24 Yao Qi <yao@codesourcery.com>
7220
7221 * mips-linux-nat.c (super_close): Update its type.
7222 (mips_linux_close): Pass 'self' to super_close.
7223
7224 2014-02-24 Yao Qi <yao@codesourcery.com>
7225
7226 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7227 * corefile.c (read_memory): Adjusted.
7228 * target.c (target_write_with_progress): Adjusted.
7229
7230 2014-02-23 Yao Qi <yao@codesourcery.com>
7231
7232 Revert two patches:
7233
7234 2013-10-25 Yao Qi <yao@codesourcery.com>
7235
7236 * remote.c (remote_traceframe_info): Return early if
7237 traceframe is not selected.
7238
7239 2013-07-19 Yao Qi <yao@codesourcery.com>
7240
7241 * target.c (update_current_target): Change the default action
7242 of 'to_traceframe_info' from tcomplain to return_zero.
7243 * target.h (struct target_ops) <to_traceframe_info>: Add more
7244 comments.
7245
7246 2014-02-23 Yao Qi <yao@codesourcery.com>
7247
7248 * valops.c (read_value_memory): Rewrite it. Call
7249 target_xfer_partial in a loop.
7250 * exec.h (section_table_available_memory): Remove declaration.
7251 Move comments to ...
7252 * exec.c (section_table_available_memory): ... here. Make it
7253 static.
7254
7255 2014-02-23 Yao Qi <yao@codesourcery.com>
7256
7257 * exec.c (section_table_read_available_memory): New function.
7258 * exec.h (section_table_read_available_memory): Declare.
7259 * ctf.c (ctf_xfer_partial): Call
7260 section_table_read_available_memory.
7261 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7262
7263 2014-02-23 Yao Qi <yao@codesourcery.com>
7264
7265 * ctf.c (ctf_xfer_partial): Move code to ...
7266 * exec.c (exec_read_partial_read_only): ... it. New function.
7267 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7268 * tracefile.c: Include "exec.h".
7269 * exec.h (exec_read_partial_read_only): Declare.
7270
7271 2014-02-23 Yao Qi <yao@codesourcery.com>
7272
7273 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7274 (tfile_has_memory): Remove.
7275 (init_tfile_ops): Don't set fields to_has_all_memory and
7276 to_has_memory of tfile_ops.
7277 * tracefile.c (tracefile_has_all_memory): New function.
7278 (tracefile_has_memory): New function.
7279 (init_tracefile_ops): Initialize fields to_has_all_memory and
7280 to_has_memory of 'ops'.
7281
7282 2014-02-23 Yao Qi <yao@codesourcery.com>
7283
7284 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7285 (ctf_thread_alive, ctf_get_trace_status): Remove.
7286 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7287 init_tracefile_ops.
7288 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7289 (tfile_has_stack, tfile_has_registers): Remove.
7290 (tfile_thread_alive): Remove.
7291 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7292 init_tracefile_ops.
7293 * tracefile.c (tracefile_has_stack): New function.
7294 (tracefile_has_registers): New function.
7295 (tracefile_thread_alive): New function.
7296 (tracefile_get_trace_status): New function.
7297 (init_tracefile_ops): New function.
7298 * tracefile.h (init_tracefile_ops): Declare.
7299
7300 2014-02-23 Yao Qi <yao@codesourcery.com>
7301
7302 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7303 (O_LARGEFILE): Likewise.
7304 (tfile_ops): Likewise.
7305 (TRACE_HEADER_SIZE): Likewise.
7306 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7307 (cur_data_size): Likewise.
7308 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7309 (tfile_close, tfile_files_info): Likewise.
7310 (tfile_get_trace_status): Likewise.
7311 (tfile_get_tracepoint_status): Likewise.
7312 (tfile_get_traceframe_address): Likewise.
7313 (tfile_trace_find, match_blocktype): Likewise.
7314 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7315 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7316 (tfile_get_trace_state_variable_value): Likewise.
7317 (tfile_has_all_memory, tfile_has_memory): Likewise.
7318 (tfile_has_stack, tfile_has_registers): Likewise.
7319 (tfile_thread_alive, build_traceframe_info): Likewise.
7320 (tfile_traceframe_info, init_tfile_ops): Likewise.
7321 (_initialize_tracepoint): Don't call init_tfile_ops
7322 and add_target_with_completer.
7323 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7324 exec.h, completer.h and filenames.h.
7325 (_initialize_tracefile_tfile): New function.
7326
7327 2014-02-23 Yao Qi <yao@codesourcery.com>
7328
7329 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7330 tracefile-tfile.o.
7331 (HFILES_NO_SRCDIR): Add tracefile.h.
7332 * ctf.c: Include "tracefile.h".
7333 * tracefile.h: New file.
7334 * tracefile.c: New file
7335 * tracefile-tfile.c: New file.
7336 * tracepoint.c: Include "tracefile.h".
7337 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7338 (stop_reason_names): Add const.
7339 (trace_file_writer_xfree): Move it to tracefile.c.
7340 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7341 (trace_save_ctf): Likewise.
7342 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7343 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7344 (tfile_write_header, tfile_write_regblock_type): Likewise.
7345 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7346 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7347 (tfile_write_raw_data, tfile_end): Likewise.
7348 (tfile_trace_file_writer_new): Likewise.
7349 (free_uploaded_tp): Make it extern.
7350 (free_uploaded_tsv): Make it extern.
7351 (_initialize_tracepoint): Move code to register command 'tsave'
7352 to tracefile.c.
7353 * tracepoint.h (stop_reason_names): Declare.
7354 (struct trace_frame_write_ops): Move it to tracefile.h.
7355 (struct trace_file_write_ops): Likewise.
7356 (struct trace_file_writer): Likewise.
7357 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7358
7359 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7360
7361 PR gdb/16594
7362 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7363 process name.
7364 (get_cores_used_by_process): New parameter num_cores, use it.
7365 (linux_xfer_osdata_processes): Pass num_cores to it.
7366 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7367 process name.
7368
7369 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7370
7371 * target.c (memory_xfer_partial): Fix length arg in call to
7372 breakpoint_xfer_memory.
7373
7374 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7375
7376 PR tdep/16397
7377 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7378 number comes after the + or - signs. Adjust length of register
7379 name to be extracted.
7380
7381 2014-02-20 Tom Tromey <tromey@redhat.com>
7382
7383 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7384 (ada_varobj_ops): Mark "extern".
7385
7386 2014-02-20 Tom Tromey <tromey@redhat.com>
7387
7388 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7389
7390 2014-02-20 Doug Evans <xdje42@gmail.com>
7391
7392 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7393 All callers updated.
7394 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7395 All callers updated.
7396 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7397 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7398
7399 2014-02-20 lin zuojian <manjian2006@gmail.com>
7400 Joel Brobecker <brobecker@adacore.com>
7401 Doug Evans <xdje42@gmail.com>
7402
7403 PR symtab/16581
7404 * dwarf2read.c (struct die_info): New member in_process.
7405 (reset_die_in_process): New function.
7406 (process_die): Set it at the start, reset when returning.
7407 (inherit_abstract_dies): Only call process_die if origin_child_die
7408 not already being processed.
7409
7410 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7411
7412 * windows-nat.c (handle_unload_dll): Add function documentation.
7413 (do_initial_windows_stuff): Add comment explaining why we wait
7414 until after inferior initialization has finished before
7415 processing all DLLs.
7416
7417 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7418
7419 * windows-nat.c (get_module_name): Delete.
7420 (windows_get_exec_module_filename): New function, mostly
7421 inspired from get_module_name.
7422 (windows_pid_to_exec_file): Replace call to get_module_name
7423 by call to windows_get_exec_module_filename.
7424
7425 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7426
7427 * windows-nat.c (handle_load_dll): Rewrite this function's
7428 introductory comment. Remove code using get_module_name
7429 to get the DLL's name.
7430
7431 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7432
7433 * windows-nat.c (get_windows_debug_event): Ignore
7434 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7435 if windows_initialization_done == 0.
7436 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7437 Adjust implementation to always load all DLLs.
7438 (do_initial_windows_stuff): Replace call to
7439 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7440
7441 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7442
7443 * windows-nat.c (_initialize_windows_nat): Deprecate the
7444 "dll-symbols" command. Turn the "add-shared-symbol-files"
7445 and "assf" aliases into commands, and deprecate them as well.
7446 * NEWS: Add entry explaining that "dll-symbols" and its two
7447 aliases are now deprecated.
7448
7449 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7450
7451 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7452 new-line in debug string. Remove trailing spaces.
7453
7454 2014-02-19 Stan Shebs <stan@codesourcery.com>
7455
7456 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7457
7458 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7459
7460 * NEWS: Add entry for the new feature
7461 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7462 and class values.
7463
7464 2014-02-19 Stan Shebs <stan@codesourcery.com>
7465
7466 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7467
7468 2014-02-19 Pedro Alves <palves@redhat.com>
7469
7470 * common/ptid.h (struct ptid): Mention that process_stratum
7471 targets should prefer ptid.lwp.
7472
7473 2014-02-19 Pedro Alves <palves@redhat.com>
7474
7475 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7476 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7477 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7478 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7479 store remote thread ids rather than ptid.tid.
7480 (_initialize_remote): Adjust.
7481
7482 2014-02-19 Tom Tromey <tromey@redhat.com>
7483
7484 * target.c (target_get_unwinder): Rewrite.
7485 (target_get_tailcall_unwinder): Rewrite.
7486 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7487 (record_btrace_to_get_tailcall_unwinder): New function.
7488 (init_record_btrace_ops): Update.
7489 * target.h (struct target_ops) <to_get_unwinder,
7490 to_get_tailcall_unwinder>: Now function pointers. Use
7491 TARGET_DEFAULT_RETURN.
7492
7493 2014-02-19 Tom Tromey <tromey@redhat.com>
7494
7495 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7496 argument.
7497 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7498
7499 2014-02-19 Tom Tromey <tromey@redhat.com>
7500
7501 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7502 directly.
7503 * target-delegates.c: Rebuild.
7504 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7505 TARGET_DEFAULT_FUNC.
7506 * target.c (default_target_decr_pc_after_break): Rename from
7507 forward_target_decr_pc_after_break. Simplify.
7508 (target_decr_pc_after_break): Rely on delegation.
7509
7510 2014-02-19 Tom Tromey <tromey@redhat.com>
7511
7512 * target.c (update_current_target): Do not INHERIT to_doc or
7513 to_magic. Do not de_fault to_open or to_close.
7514
7515 2014-02-19 Tom Tromey <tromey@redhat.com>
7516
7517 * gcore.h (objfile_find_memory_regions): Declare.
7518 * gcore.c (objfile_find_memory_regions): No longer static. Add
7519 "self" argument.
7520 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7521 * exec.c: Include gcore.h.
7522 (exec_set_find_memory_regions): Remove.
7523 (exec_find_memory_regions): Remove.
7524 (exec_do_find_memory_regions): Remove.
7525 (init_exec_ops): Update.
7526 * defs.h (exec_set_find_memory_regions): Remove.
7527
7528 2014-02-19 Tom Tromey <tromey@redhat.com>
7529
7530 * target-delegates.c: Rebuild.
7531 * target.h (struct target_ops) <to_extra_thread_info,
7532 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7533 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7534 not 0, in TARGET_DEFAULT_RETURN.
7535
7536 2014-02-19 Tom Tromey <tromey@redhat.com>
7537
7538 * target.c (complete_target_initialization): Remove casts. Use
7539 return_zero_has_execution.
7540 (return_zero): Add "ignore" argument.
7541 (return_zero_has_execution): New function.
7542 (init_dummy_target): Remove casts. Use
7543 return_zero_has_execution.
7544
7545 2014-02-19 Tom Tromey <tromey@redhat.com>
7546
7547 * target.c (update_current_target): Update comments. Do not
7548 INHERIT to_stratum.
7549
7550 2014-02-19 Tom Tromey <tromey@redhat.com>
7551
7552 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7553 needed.
7554 * corelow.c (core_read_description): Delegate when needed.
7555 * remote.c (remote_read_description): Delegate when needed.
7556 * target-delegates.c: Rebuild.
7557 * target.c (target_read_description): Rewrite.
7558 * target.h (struct target_ops) <to_read_description>: Update
7559 comment. Use TARGET_DEFAULT_RETURN.
7560
7561 2014-02-19 Tom Tromey <tromey@redhat.com>
7562
7563 * target-delegates.c: Rebuild.
7564 * target.c (update_current_target): Don't inherit or default
7565 to_can_run.
7566 (find_default_run_target): Check against delegate_can_run.
7567 * target.h (struct target_ops) <to_can_run>: Use
7568 TARGET_DEFAULT_RETURN.
7569
7570 2014-02-19 Tom Tromey <tromey@redhat.com>
7571
7572 * target-delegates.c: Rebuild.
7573 * target.c (target_disconnect): Unconditionally delegate.
7574 * target.h (struct target_ops) <to_disconnect>: Use
7575 TARGET_DEFAULT_NORETURN.
7576
7577 2014-02-19 Tom Tromey <tromey@redhat.com>
7578
7579 * record.c (record_stop): Unconditionally delegate.
7580 * target-delegates.c: Rebuild.
7581 * target.c (target_stop_recording): Unconditionally delegate.
7582 * target.h (struct target_ops) <to_stop_recording>: Use
7583 TARGET_DEFAULT_IGNORE.
7584
7585 2014-02-19 Tom Tromey <tromey@redhat.com>
7586
7587 * target-delegates.c: Rebuild.
7588 * target.c (target_enable_btrace): Unconditionally delegate.
7589 * target.h (struct target_ops) <to_enable_btrace>: Use
7590 TARGET_DEFAULT_NORETURN.
7591
7592 2014-02-19 Tom Tromey <tromey@redhat.com>
7593
7594 * target-delegates.c: Rebuild.
7595 * target.c (target_read_btrace): Unconditionally delegate.
7596 * target.h (struct target_ops) <to_read_btrace>: Use
7597 TARGET_DEFAULT_NORETURN.
7598
7599 2014-02-19 Tom Tromey <tromey@redhat.com>
7600
7601 * target-delegates.c: Rebuild.
7602 * target.c (target_teardown_btrace): Unconditionally delegate.
7603 * target.h (struct target_ops) <to_teardown_btrace>: Use
7604 TARGET_DEFAULT_NORETURN.
7605
7606 2014-02-19 Tom Tromey <tromey@redhat.com>
7607
7608 * target-delegates.c: Rebuild.
7609 * target.c (target_disable_btrace): Unconditionally delegate.
7610 * target.h (struct target_ops) <to_disable_btrace>: Use
7611 TARGET_DEFAULT_NORETURN.
7612
7613 2014-02-19 Tom Tromey <tromey@redhat.com>
7614
7615 * target-delegates.c: Rebuild.
7616 * target.c (default_search_memory): New function.
7617 (simple_search_memory): Update comment.
7618 (target_search_memory): Unconditionally delegate.
7619 * target.h (struct target_ops) <to_search_memory>: Use
7620 TARGET_DEFAULT_FUNC.
7621
7622 2014-02-19 Tom Tromey <tromey@redhat.com>
7623
7624 * auxv.c (default_auxv_parse): No longer static.
7625 (target_auxv_parse): Unconditionally delegate.
7626 * auxv.h (default_auxv_parse): Declare.
7627 * target-delegates.c: Rebuild.
7628 * target.c: Include auxv.h.
7629 * target.h (struct target_ops) <to_auxv_parse>: Use
7630 TARGET_DEFAULT_FUNC.
7631
7632 2014-02-19 Tom Tromey <tromey@redhat.com>
7633
7634 * target-delegates.c: Rebuild.
7635 * target.c (target_memory_map): Unconditionally delegate.
7636 * target.h (struct target_ops) <to_memory_map>: Use
7637 TARGET_DEFAULT_RETURN.
7638
7639 2014-02-19 Tom Tromey <tromey@redhat.com>
7640
7641 * target-delegates.c: Rebuild.
7642 * target.c (target_thread_alive): Unconditionally delegate.
7643 * target.h (struct target_ops) <to_thread_alive>: Use
7644 TARGET_DEFAULT_RETURN.
7645
7646 2014-02-19 Tom Tromey <tromey@redhat.com>
7647
7648 * target-delegates.c: Rebuild.
7649 * target.c (target_save_record): Unconditionally delegate.
7650 * target.h (struct target_ops) <to_save_record>: Use
7651 TARGET_DEFAULT_NORETURN.
7652
7653 2014-02-19 Tom Tromey <tromey@redhat.com>
7654
7655 * target-delegates.c: Rebuild.
7656 * target.c (target_delete_record): Unconditionally delegate.
7657 * target.h (struct target_ops) <to_delete_record>: Use
7658 TARGET_DEFAULT_NORETURN.
7659
7660 2014-02-19 Tom Tromey <tromey@redhat.com>
7661
7662 * target-delegates.c: Rebuild.
7663 * target.c (target_record_is_replaying): Unconditionally
7664 delegate.
7665 * target.h (struct target_ops) <to_record_is_replaying>: Use
7666 TARGET_DEFAULT_RETURN.
7667
7668 2014-02-19 Tom Tromey <tromey@redhat.com>
7669
7670 * target-delegates.c: Rebuild.
7671 * target.c (target_goto_record_begin): Unconditionally delegate.
7672 * target.h (struct target_ops) <to_goto_record_begin>: Use
7673 TARGET_DEFAULT_NORETURN.
7674
7675 2014-02-19 Tom Tromey <tromey@redhat.com>
7676
7677 * target-delegates.c: Rebuild.
7678 * target.c (target_goto_record_end): Unconditionally delegate.
7679 * target.h (struct target_ops) <to_goto_record_end>: Use
7680 TARGET_DEFAULT_NORETURN.
7681
7682 2014-02-19 Tom Tromey <tromey@redhat.com>
7683
7684 * target-delegates.c: Rebuild.
7685 * target.c (target_goto_record): Unconditionally delegate.
7686 * target.h (struct target_ops) <to_goto_record>: Use
7687 TARGET_DEFAULT_NORETURN.
7688
7689 2014-02-19 Tom Tromey <tromey@redhat.com>
7690
7691 * target-delegates.c: Rebuild.
7692 * target.c (target_insn_history): Unconditionally delegate.
7693 * target.h (struct target_ops) <to_insn_history>: Use
7694 TARGET_DEFAULT_NORETURN.
7695
7696 2014-02-19 Tom Tromey <tromey@redhat.com>
7697
7698 * target-delegates.c: Rebuild.
7699 * target.c (target_insn_history_from): Unconditionally delegate.
7700 * target.h (struct target_ops) <to_insn_history_from>: Use
7701 TARGET_DEFAULT_NORETURN.
7702
7703 2014-02-19 Tom Tromey <tromey@redhat.com>
7704
7705 * target-delegates.c: Rebuild.
7706 * target.c (target_insn_history_range): Unconditionally delegate.
7707 * target.h (struct target_ops) <to_insn_history_range>: Use
7708 TARGET_DEFAULT_NORETURN.
7709
7710 2014-02-19 Tom Tromey <tromey@redhat.com>
7711
7712 * target-delegates.c: Rebuild.
7713 * target.c (target_call_history): Unconditionally delegate.
7714 * target.h (struct target_ops) <to_call_history>: Use
7715 TARGET_DEFAULT_NORETURN.
7716
7717 2014-02-19 Tom Tromey <tromey@redhat.com>
7718
7719 * target-delegates.c: Rebuild.
7720 * target.c (target_call_history_from): Unconditionally delegate.
7721 * target.h (struct target_ops) <to_call_history_from>: Use
7722 TARGET_DEFAULT_NORETURN.
7723
7724 2014-02-19 Tom Tromey <tromey@redhat.com>
7725
7726 * target-delegates.c: Rebuild.
7727 * target.c (target_call_history_range): Unconditionally delegate.
7728 * target.h (struct target_ops) <to_call_history_range>: Use
7729 TARGET_DEFAULT_NORETURN.
7730
7731 2014-02-19 Tom Tromey <tromey@redhat.com>
7732
7733 * target-delegates.c: Rebuild.
7734 * target.c (target_verify_memory): Unconditionally delegate.
7735 * target.h (struct target_ops) <to_verify_memory>: Use
7736 TARGET_DEFAULT_NORETURN.
7737
7738 2014-02-19 Tom Tromey <tromey@redhat.com>
7739
7740 * target-delegates.c: Rebuild.
7741 * target.c (target_core_of_thread): Unconditionally delegate.
7742 * target.h (struct target_ops) <to_core_of_thread>: Use
7743 TARGET_DEFAULT_RETURN.
7744
7745 2014-02-19 Tom Tromey <tromey@redhat.com>
7746
7747 * target-delegates.c: Rebuild.
7748 * target.c (target_flash_done): Unconditionally delegate.
7749 * target.h (struct target_ops) <to_flash_done>: Use
7750 TARGET_DEFAULT_NORETURN.
7751
7752 2014-02-19 Tom Tromey <tromey@redhat.com>
7753
7754 * target-delegates.c: Rebuild.
7755 * target.c (target_flash_erase): Unconditionally delegate.
7756 * target.h (struct target_ops) <to_flash_erase>: Use
7757 TARGET_DEFAULT_NORETURN.
7758
7759 2014-02-19 Tom Tromey <tromey@redhat.com>
7760
7761 * target-delegates.c: Rebuild.
7762 * target.c (target_get_section_table): Unconditionally delegate.
7763 * target.h (struct target_ops) <to_get_section_table>: Use
7764 TARGET_DEFAULT_RETURN.
7765
7766 2014-02-19 Tom Tromey <tromey@redhat.com>
7767
7768 * target-delegates.c: Rebuild.
7769 * target.c (target_pid_to_str): Unconditionally delegate.
7770 (init_dummy_target): Don't initialize to_pid_to_str.
7771 (default_pid_to_str): Rename from dummy_pid_to_str.
7772 * target.h (struct target_ops) <to_pid_to_str>: Use
7773 TARGET_DEFAULT_FUNC.
7774
7775 2014-02-19 Tom Tromey <tromey@redhat.com>
7776
7777 * target-delegates.c: Rebuild.
7778 * target.c (target_find_new_threads): Unconditionally delegate.
7779 * target.h (struct target_ops) <to_find_new_threads>: Use
7780 TARGET_DEFAULT_RETURN.
7781
7782 2014-02-19 Tom Tromey <tromey@redhat.com>
7783
7784 * target-delegates.c: Rebuild.
7785 * target.c (target_program_signals): Unconditionally delegate.
7786 * target.h (struct target_ops) <to_program_signals>: Use
7787 TARGET_DEFAULT_IGNORE.
7788
7789 2014-02-19 Tom Tromey <tromey@redhat.com>
7790
7791 * target-delegates.c: Rebuild.
7792 * target.c (target_pass_signals): Unconditionally delegate.
7793 * target.h (struct target_ops) <to_pass_signals>: Use
7794 TARGET_DEFAULT_IGNORE.
7795
7796 2014-02-19 Tom Tromey <tromey@redhat.com>
7797
7798 * target-delegates.c: Rebuild.
7799 * target.c (default_mourn_inferior): New function.
7800 (target_mourn_inferior): Unconditionally delegate.
7801 * target.h (struct target_ops) <to_mourn_inferior>: Use
7802 TARGET_DEFAULT_FUNC.
7803
7804 2014-02-19 Tom Tromey <tromey@redhat.com>
7805
7806 * target-delegates.c: Rebuild.
7807 * target.c (default_follow_fork): New function.
7808 (target_follow_fork): Unconditionally delegate.
7809 * target.h (struct target_ops) <to_follow_fork>: Use
7810 TARGET_DEFAULT_FUNC.
7811
7812 2014-02-19 Tom Tromey <tromey@redhat.com>
7813
7814 * target-delegates.c: Rebuild.
7815 * target.c (target_kill): Unconditionally delegate.
7816 * target.h (struct target_ops) <to_kill>: Use
7817 TARGET_DEFAULT_NORETURN.
7818
7819 2014-02-19 Tom Tromey <tromey@redhat.com>
7820
7821 * target-delegates.c: Rebuild.
7822 * target.c (target_masked_watch_num_registers): Unconditionally
7823 delegate.
7824 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7825 Use TARGET_DEFAULT_RETURN.
7826
7827 2014-02-19 Tom Tromey <tromey@redhat.com>
7828
7829 * target-delegates.c: Rebuild.
7830 * target.c (target_remove_mask_watchpoint): Unconditionally
7831 delegate.
7832 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7833 TARGET_DEFAULT_RETURN.
7834
7835 2014-02-19 Tom Tromey <tromey@redhat.com>
7836
7837 * target-delegates.c: Rebuild.
7838 * target.c (target_insert_mask_watchpoint): Unconditionally
7839 delegate.
7840 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7841 TARGET_DEFAULT_RETURN.
7842
7843 2014-02-19 Tom Tromey <tromey@redhat.com>
7844
7845 * target-delegates.c: Rebuild.
7846 * target.c (target_ranged_break_num_registers): Unconditionally
7847 delegate.
7848 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7849 Use TARGET_DEFAULT_RETURN.
7850
7851 2014-02-19 Tom Tromey <tromey@redhat.com>
7852
7853 * target-delegates.c: Rebuild.
7854 * target.c (target_fetch_registers): Unconditionally delegate.
7855 * target.h (struct target_ops) <to_fetch_registers>: Use
7856 TARGET_DEFAULT_NORETURN.
7857
7858 2014-02-19 Tom Tromey <tromey@redhat.com>
7859
7860 * target-delegates.c: Rebuild.
7861 * target.c (update_current_target): Don't inherit or default
7862 to_stop.
7863 * target.h (struct target_ops) <to_stop>: Use
7864 TARGET_DEFAULT_IGNORE.
7865
7866 2014-02-19 Tom Tromey <tromey@redhat.com>
7867
7868 * target-delegates.c: Rebuild.
7869 * target.c (update_current_target): Don't inherit or default
7870 to_can_run_breakpoint_commands.
7871 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7872 Use TARGET_DEFAULT_RETURN.
7873
7874 2014-02-19 Tom Tromey <tromey@redhat.com>
7875
7876 * target-delegates.c: Rebuild.
7877 * target.c (update_current_target): Don't inherit or default
7878 to_supports_evaluation_of_breakpoint_conditions.
7879 * target.h (struct target_ops)
7880 <to_supports_evaluation_of_breakpoint_conditions>: Use
7881 TARGET_DEFAULT_RETURN.
7882
7883 2014-02-19 Tom Tromey <tromey@redhat.com>
7884
7885 * target-delegates.c: Rebuild.
7886 * target.c (update_current_target): Don't inherit or default
7887 to_augmented_libraries_svr4_read.
7888 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7889 Use TARGET_DEFAULT_RETURN.
7890
7891 2014-02-19 Tom Tromey <tromey@redhat.com>
7892
7893 * target-delegates.c: Rebuild.
7894 * target.c (update_current_target): Don't inherit or default
7895 to_can_use_agent.
7896 * target.h (struct target_ops) <to_can_use_agent>: Use
7897 TARGET_DEFAULT_RETURN.
7898
7899 2014-02-19 Tom Tromey <tromey@redhat.com>
7900
7901 * target-delegates.c: Rebuild.
7902 * target.c (update_current_target): Don't inherit or default
7903 to_use_agent.
7904 * target.h (struct target_ops) <to_use_agent>: Use
7905 TARGET_DEFAULT_NORETURN.
7906
7907 2014-02-19 Tom Tromey <tromey@redhat.com>
7908
7909 * target-delegates.c: Rebuild.
7910 * target.c (update_current_target): Don't inherit or default
7911 to_traceframe_info.
7912 (return_null): Remove.
7913 * target.h (struct target_ops) <to_traceframe_info>: Use
7914 TARGET_DEFAULT_RETURN.
7915
7916 2014-02-19 Tom Tromey <tromey@redhat.com>
7917
7918 * target-delegates.c: Rebuild.
7919 * target.c (update_current_target): Don't inherit or default
7920 to_static_tracepoint_markers_by_strid.
7921 * target.h (struct target_ops)
7922 <to_static_tracepoint_markers_by_strid>: Use
7923 TARGET_DEFAULT_NORETURN.
7924
7925 2014-02-19 Tom Tromey <tromey@redhat.com>
7926
7927 * target-delegates.c: Rebuild.
7928 * target.c (update_current_target): Don't inherit or default
7929 to_static_tracepoint_marker_at.
7930 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7931 Use TARGET_DEFAULT_RETURN.
7932
7933 2014-02-19 Tom Tromey <tromey@redhat.com>
7934
7935 * target-delegates.c: Rebuild.
7936 * target.c (update_current_target): Don't inherit or default
7937 to_set_permissions.
7938 * target.h (struct target_ops) <to_set_permissions>: Use
7939 TARGET_DEFAULT_IGNORE.
7940
7941 2014-02-19 Tom Tromey <tromey@redhat.com>
7942
7943 * target-delegates.c: Rebuild.
7944 * target.c (update_current_target): Don't inherit or default
7945 to_get_tib_address.
7946 * target.h (struct target_ops) <to_get_tib_address>: Use
7947 TARGET_DEFAULT_NORETURN.
7948
7949 2014-02-19 Tom Tromey <tromey@redhat.com>
7950
7951 * target-delegates.c: Rebuild.
7952 * target.c (update_current_target): Don't inherit or default
7953 to_set_trace_notes.
7954 * target.h (struct target_ops) <to_set_trace_notes>: Use
7955 TARGET_DEFAULT_RETURN.
7956
7957 2014-02-19 Tom Tromey <tromey@redhat.com>
7958
7959 * target-delegates.c: Rebuild.
7960 * target.c (update_current_target): Don't initialize
7961 to_set_trace_buffer_size.
7962 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7963 TARGET_DEFAULT_IGNORE.
7964
7965 2014-02-19 Tom Tromey <tromey@redhat.com>
7966
7967 * target-delegates.c: Rebuild.
7968 * target.c (update_current_target): Don't inherit or default
7969 to_set_circular_trace_buffer.
7970 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7971 TARGET_DEFAULT_IGNORE.
7972
7973 2014-02-19 Tom Tromey <tromey@redhat.com>
7974
7975 * target-delegates.c: Rebuild.
7976 * target.c (update_current_target): Don't inherit or default
7977 to_set_disconnected_tracing.
7978 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7979 TARGET_DEFAULT_IGNORE.
7980
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7982
7983 * target-delegates.c: Rebuild.
7984 * target.c (update_current_target): Don't inherit or default
7985 to_get_min_fast_tracepoint_insn_len.
7986 (return_minus_one): Remove.
7987 * target.h (struct target_ops)
7988 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7989
7990 2014-02-19 Tom Tromey <tromey@redhat.com>
7991
7992 * target-delegates.c: Rebuild.
7993 * target.c (update_current_target): Don't inherit or default
7994 to_get_raw_trace_data.
7995 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7996 TARGET_DEFAULT_NORETURN.
7997
7998 2014-02-19 Tom Tromey <tromey@redhat.com>
7999
8000 * target-delegates.c: Rebuild.
8001 * target.c (update_current_target): Don't inherit or default
8002 to_upload_trace_state_variables.
8003 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8004 Use TARGET_DEFAULT_RETURN.
8005
8006 2014-02-19 Tom Tromey <tromey@redhat.com>
8007
8008 * target-delegates.c: Rebuild.
8009 * target.c (update_current_target): Don't inherit or default
8010 to_upload_tracepoints.
8011 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8012 TARGET_DEFAULT_RETURN.
8013
8014 2014-02-19 Tom Tromey <tromey@redhat.com>
8015
8016 * target-delegates.c: Rebuild.
8017 * target.c (update_current_target): Don't inherit or default
8018 to_save_trace_data.
8019 * target.h (struct target_ops) <to_save_trace_data>: Use
8020 TARGET_DEFAULT_NORETURN.
8021
8022 2014-02-19 Tom Tromey <tromey@redhat.com>
8023
8024 * target-delegates.c: Rebuild.
8025 * target.c (update_current_target): Don't inherit or default
8026 to_get_trace_state_variable_value.
8027 * target.h (struct target_ops)
8028 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8029
8030 2014-02-19 Tom Tromey <tromey@redhat.com>
8031
8032 * target-delegates.c: Rebuild.
8033 * target.c (update_current_target): Don't inherit or default
8034 to_trace_find.
8035 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8036
8037 2014-02-19 Tom Tromey <tromey@redhat.com>
8038
8039 * target-delegates.c: Rebuild.
8040 * target.c (update_current_target): Don't inherit or default
8041 to_trace_stop.
8042 * target.h (struct target_ops) <to_trace_stop>: Use
8043 TARGET_DEFAULT_NORETURN.
8044
8045 2014-02-19 Tom Tromey <tromey@redhat.com>
8046
8047 * target-delegates.c: Rebuild.
8048 * target.c (update_current_target): Don't inherit or default
8049 to_get_tracepoint_status.
8050 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8051 TARGET_DEFAULT_NORETURN.
8052
8053 2014-02-19 Tom Tromey <tromey@redhat.com>
8054
8055 * target-delegates.c: Rebuild.
8056 * target.c (update_current_target): Don't inherit or default
8057 to_get_trace_status.
8058 * target.h (struct target_ops) <to_get_trace_status>: Use
8059 TARGET_DEFAULT_RETURN.
8060
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8062
8063 * target-delegates.c: Rebuild.
8064 * target.c (update_current_target): Don't inherit or default
8065 to_trace_start.
8066 * target.h (struct target_ops) <to_trace_start>: Use
8067 TARGET_DEFAULT_NORETURN.
8068
8069 2014-02-19 Tom Tromey <tromey@redhat.com>
8070
8071 * target-delegates.c: Rebuild.
8072 * target.c (update_current_target): Don't inherit or default
8073 to_trace_set_readonly_regions.
8074 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8075 Use TARGET_DEFAULT_NORETURN.
8076
8077 2014-02-19 Tom Tromey <tromey@redhat.com>
8078
8079 * target-delegates.c: Rebuild.
8080 * target.c (update_current_target): Don't inherit or default
8081 to_disable_tracepoint.
8082 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8083 TARGET_DEFAULT_NORETURN.
8084
8085 2014-02-19 Tom Tromey <tromey@redhat.com>
8086
8087 * target-delegates.c: Rebuild.
8088 * target.c (update_current_target): Don't inherit or default
8089 to_enable_tracepoint.
8090 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8091 TARGET_DEFAULT_NORETURN.
8092
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8094
8095 * target-delegates.c: Rebuild.
8096 * target.c (update_current_target): Don't inherit or default
8097 to_download_trace_state_variable.
8098 * target.h (struct target_ops) <to_download_trace_state_variable>:
8099 Use TARGET_DEFAULT_NORETURN.
8100
8101 2014-02-19 Tom Tromey <tromey@redhat.com>
8102
8103 * target-delegates.c: Rebuild.
8104 * target.c (update_current_target): Don't inherit or default
8105 to_can_download_tracepoint.
8106 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8107 TARGET_DEFAULT_RETURN.
8108
8109 2014-02-19 Tom Tromey <tromey@redhat.com>
8110
8111 * target-delegates.c: Rebuild.
8112 * target.c (update_current_target): Don't inherit or default
8113 to_download_tracepoint.
8114 * target.h (struct target_ops) <to_download_tracepoint>: Use
8115 TARGET_DEFAULT_NORETURN.
8116
8117 2014-02-19 Tom Tromey <tromey@redhat.com>
8118
8119 * target-delegates.c: Rebuild.
8120 * target.c (update_current_target): Don't inherit or default
8121 to_trace_init.
8122 * target.h (struct target_ops) <to_trace_init>: Use
8123 TARGET_DEFAULT_RETURN.
8124
8125 2014-02-19 Tom Tromey <tromey@redhat.com>
8126
8127 * target-delegates.c: Rebuild.
8128 * target.c (update_current_target): Don't inherit or default
8129 to_supports_string_tracing.
8130 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8131 TARGET_DEFAULT_RETURN.
8132
8133 2014-02-19 Tom Tromey <tromey@redhat.com>
8134
8135 * target-delegates.c: Rebuild.
8136 * target.c (update_current_target): Don't inherit or default
8137 to_supports_enable_disable_tracepoint.
8138 * target.h (struct target_ops)
8139 <to_supports_enable_disable_tracepoint>: Use
8140 TARGET_DEFAULT_RETURN.
8141
8142 2014-02-19 Tom Tromey <tromey@redhat.com>
8143
8144 * target-delegates.c: Rebuild.
8145 * target.c (update_current_target): Don't inherit or default
8146 to_supports_multi_process.
8147 * target.h (struct target_ops) <to_supports_multi_process>: Use
8148 TARGET_DEFAULT_RETURN.
8149
8150 2014-02-19 Tom Tromey <tromey@redhat.com>
8151
8152 * target-delegates.c: Rebuild.
8153 * target.c (update_current_target): Don't inherit or default
8154 to_get_ada_task_ptid.
8155 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8156 TARGET_DEFAULT_FUNC.
8157
8158 2014-02-19 Tom Tromey <tromey@redhat.com>
8159
8160 * target-delegates.c: Rebuild.
8161 * target.c (update_current_target): Don't inherit or default
8162 to_thread_architecture.
8163 * target.h (struct target_ops) <to_thread_architecture>: Use
8164 TARGET_DEFAULT_FUNC.
8165
8166 2014-02-19 Tom Tromey <tromey@redhat.com>
8167
8168 * target-delegates.c: Rebuild.
8169 * target.c (update_current_target): Don't inherit or default
8170 to_execution_direction.
8171 * target.h (struct target_ops) <to_execution_direction>: Use
8172 TARGET_DEFAULT_FUNC.
8173
8174 2014-02-19 Tom Tromey <tromey@redhat.com>
8175
8176 * target-delegates.c: Rebuild.
8177 * target.c (update_current_target): Don't inherit or default
8178 to_can_execute_reverse.
8179 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8180 TARGET_DEFAULT_RETURN.
8181 (target_can_execute_reverse): Unconditionally delegate.
8182
8183 2014-02-19 Tom Tromey <tromey@redhat.com>
8184
8185 * target-delegates.c: Rebuild.
8186 * target.c (update_current_target): Don't inherit or default
8187 to_goto_bookmark.
8188 (dummy_goto_bookmark): Remove.
8189 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8190 * target.h (struct target_ops) <to_goto_bookmark>: Use
8191 TARGET_DEFAULT_NORETURN.
8192
8193 2014-02-19 Tom Tromey <tromey@redhat.com>
8194
8195 * target-delegates.c: Rebuild.
8196 * target.c (update_current_target): Don't inherit or default
8197 to_get_bookmark.
8198 (dummy_get_bookmark): Remove.
8199 (init_dummy_target): Don't inherit or default to_get_bookmark.
8200 * target.h (struct target_ops) <to_get_bookmark>: Use
8201 TARGET_DEFAULT_NORETURN
8202
8203 2014-02-19 Tom Tromey <tromey@redhat.com>
8204
8205 * target-delegates.c: Rebuild.
8206 * target.c (update_current_target): Don't inherit or default
8207 to_make_corefile_notes.
8208 (init_dummy_target): Don't initialize to_make_corefile_notes.
8209 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8210 TARGET_DEFAULT_FUNC.
8211
8212 2014-02-19 Tom Tromey <tromey@redhat.com>
8213
8214 * target-delegates.c: Rebuild.
8215 * target.c (update_current_target): Don't inherit or default
8216 to_find_memory_regions.
8217 (init_dummy_target): Don't initialize to_find_memory_regions.
8218 * target.h (struct target_ops) <to_find_memory_regions>: Use
8219 TARGET_DEFAULT_FUNC.
8220
8221 2014-02-19 Tom Tromey <tromey@redhat.com>
8222
8223 * target-delegates.c: Rebuild.
8224 * target.c (update_current_target): Don't inherit or default
8225 to_log_command.
8226 * target.h (struct target_ops) <to_log_command>: Use
8227 TARGET_DEFAULT_IGNORE.
8228 (target_log_command): Unconditionally delegate.
8229
8230 2014-02-19 Tom Tromey <tromey@redhat.com>
8231
8232 * target-delegates.c: Rebuild.
8233 * target.c (update_current_target): Don't inherit or default
8234 to_pid_to_exec_file.
8235 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8236 TARGET_DEFAULT_RETURN.
8237
8238 2014-02-19 Tom Tromey <tromey@redhat.com>
8239
8240 * target-delegates.c: Rebuild.
8241 * target.c (update_current_target): Don't inherit or default
8242 to_thread_name.
8243 (target_thread_name): Unconditionally delegate.
8244 * target.h (struct target_ops) <to_thread_name>: Use
8245 TARGET_DEFAULT_RETURN.
8246
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8248
8249 * target-delegates.c: Rebuild.
8250 * target.c (update_current_target): Don't inherit or default
8251 to_extra_thread_info.
8252 * target.h (struct target_ops) <to_extra_thread_info>: Use
8253 TARGET_DEFAULT_RETURN.
8254
8255 2014-02-19 Tom Tromey <tromey@redhat.com>
8256
8257 * target-delegates.c: Rebuild.
8258 * target.c (update_current_target): Don't inherit or default
8259 to_has_exited.
8260 * target.h (struct target_ops) <to_has_exited>: Use
8261 TARGET_DEFAULT_RETURN..
8262
8263 2014-02-19 Tom Tromey <tromey@redhat.com>
8264
8265 * target-delegates.c: Rebuild.
8266 * target.c (update_current_target): Don't inherit or default
8267 to_set_syscall_catchpoint.
8268 (return_one): Remove.
8269 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8270 TARGET_DEFAULT_RETURN.
8271
8272 2014-02-19 Tom Tromey <tromey@redhat.com>
8273
8274 * target-delegates.c: Rebuild.
8275 * target.c (update_current_target): Don't inherit or default
8276 to_insert_exec_catchpoint.
8277 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8278 TARGET_DEFAULT_RETURN.
8279
8280 2014-01-08 Tom Tromey <tromey@redhat.com>
8281
8282 * target-delegates.c: Rebuild.
8283 * target.c (update_current_target): Don't inherit or default
8284 to_insert_exec_catchpoint.
8285 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8286 TARGET_DEFAULT_RETURN.
8287
8288 2014-02-19 Tom Tromey <tromey@redhat.com>
8289
8290 * target-delegates.c: Rebuild.
8291 * target.c (update_current_target): Don't inherit or default
8292 to_remove_vfork_catchpoint.
8293 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8294 TARGET_DEFAULT_RETURN.
8295
8296 2014-02-19 Tom Tromey <tromey@redhat.com>
8297
8298 * target-delegates.c: Rebuild.
8299 * target.c (update_current_target): Don't inherit or default
8300 to_insert_vfork_catchpoint.
8301 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8302 TARGET_DEFAULT_RETURN.
8303
8304 2014-02-19 Tom Tromey <tromey@redhat.com>
8305
8306 * target-delegates.c: Rebuild.
8307 * target.c (update_current_target): Don't inherit or default
8308 to_remove_fork_catchpoint.
8309 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8310 TARGET_DEFAULT_RETURN.
8311
8312 2014-02-19 Tom Tromey <tromey@redhat.com>
8313
8314 * target-delegates.c: Rebuild.
8315 * target.c (update_current_target): Don't inherit or default
8316 to_insert_fork_catchpoint.
8317 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8318 TARGET_DEFAULT_RETURN.
8319
8320 2014-02-19 Tom Tromey <tromey@redhat.com>
8321
8322 * target-delegates.c: Rebuild.
8323 * target.c (update_current_target): Don't inherit or default
8324 to_post_startup_inferior.
8325 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8326 TARGET_DEFAULT_IGNORE.
8327
8328 2014-02-19 Tom Tromey <tromey@redhat.com>
8329
8330 * target-delegates.c: Rebuild.
8331 * target.c (update_current_target): Don't inherit or default
8332 to_load.
8333 * target.h (struct target_ops) <to_load>: Use
8334 TARGET_DEFAULT_NORETURN.
8335
8336 2014-02-19 Tom Tromey <tromey@redhat.com>
8337
8338 * target-delegates.c: Rebuild.
8339 * target.c (update_current_target): Don't inherit or default
8340 to_terminal_info.
8341 * target.h (struct target_ops) <to_terminal_info>: Use
8342 TARGET_DEFAULT_FUNC.
8343
8344 2014-02-19 Tom Tromey <tromey@redhat.com>
8345
8346 * target-delegates.c: Rebuild.
8347 * target.c (update_current_target): Don't inherit or default
8348 to_terminal_save_ours.
8349 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8350 TARGET_DEFAULT_IGNORE.
8351
8352 2014-02-19 Tom Tromey <tromey@redhat.com>
8353
8354 * target-delegates.c: Rebuild.
8355 * target.c (update_current_target): Don't inherit or default
8356 to_terminal_ours.
8357 * target.h (struct target_ops) <to_terminal_ours>: Use
8358 TARGET_DEFAULT_IGNORE.
8359
8360 2014-02-19 Tom Tromey <tromey@redhat.com>
8361
8362 * target-delegates.c: Rebuild.
8363 * target.c (update_current_target): Don't inherit or default
8364 to_terminal_ours_for_output.
8365 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8366 TARGET_DEFAULT_IGNORE.
8367
8368 2014-02-19 Tom Tromey <tromey@redhat.com>
8369
8370 * target-delegates.c: Rebuild.
8371 * target.c (update_current_target): Don't inherit or default
8372 to_terminal_inferior.
8373 * target.h (struct target_ops) <to_terminal_inferior>: Use
8374 TARGET_DEFAULT_IGNORE.
8375
8376 2014-02-19 Tom Tromey <tromey@redhat.com>
8377
8378 * target-delegates.c: Rebuild.
8379 * target.c (update_current_target): Don't inherit or default
8380 to_terminal_init.
8381 * target.h (struct target_ops) <to_terminal_init>: Use
8382 TARGET_DEFAULT_IGNORE.
8383
8384 2014-02-19 Tom Tromey <tromey@redhat.com>
8385
8386 * target-delegates.c: Rebuild.
8387 * target.c (update_current_target): Don't inherit or default
8388 to_can_accel_watchpoint_condition.
8389 * target.h (struct target_ops)
8390 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8391
8392 2014-02-19 Tom Tromey <tromey@redhat.com>
8393
8394 * target-delegates.c: Rebuild.
8395 * target.c (update_current_target): Don't inherit or default
8396 to_region_ok_for_hw_watchpoint.
8397 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8398 Use TARGET_DEFAULT_FUNC.
8399
8400 2014-02-19 Tom Tromey <tromey@redhat.com>
8401
8402 * target-delegates.c: Rebuild.
8403 * target.c (update_current_target): Don't inherit or default
8404 to_watchpoint_addr_within_range.
8405 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8406 Use TARGET_DEFAULT_FUNC.
8407
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * target-delegates.c: Rebuild.
8411 * target.c (update_current_target): Don't inherit or default
8412 to_remove_watchpoint.
8413 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8414 TARGET_DEFAULT_NORETURN.
8415
8416 2014-02-19 Tom Tromey <tromey@redhat.com>
8417
8418 * target-delegates.c: Rebuild.
8419 * target.c (update_current_target): Don't inherit or default
8420 to_insert_watchpoint.
8421 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8422 TARGET_DEFAULT_RETURN.
8423
8424 2014-02-19 Tom Tromey <tromey@redhat.com>
8425
8426 * target-delegates.c: Rebuild.
8427 * target.c (update_current_target): Don't inherit or default
8428 to_remove_hw_breakpoint.
8429 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8430 TARGET_DEFAULT_RETURN.
8431
8432 2014-02-19 Tom Tromey <tromey@redhat.com>
8433
8434 * target-delegates.c: Rebuild.
8435 * target.c (update_current_target): Don't inherit or default
8436 to_insert_hw_breakpoint.
8437 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8438 TARGET_DEFAULT_RETURN.
8439
8440 2014-02-19 Tom Tromey <tromey@redhat.com>
8441
8442 * target-delegates.c: Rebuild.
8443 * target.c (update_current_target): Don't inherit or default
8444 to_can_use_hw_breakpoint.
8445 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8446 TARGET_DEFAULT_RETURN.
8447
8448 2014-02-19 Tom Tromey <tromey@redhat.com>
8449
8450 * target-delegates.c: Rebuild.
8451 * target.c (update_current_target): Don't inherit or default
8452 to_files_info.
8453 * target.h (struct target_ops) <to_files_info>: Use
8454 TARGET_DEFAULT_IGNORE.
8455
8456 2014-02-19 Tom Tromey <tromey@redhat.com>
8457
8458 * target-delegates.c: Rebuild.
8459 * target.c (update_current_target): Don't inherit or default
8460 to_store.
8461 * target.h (struct target_ops) <to_store>: Use
8462 TARGET_DEFAULT_NORETURN.
8463
8464 2014-02-19 Tom Tromey <tromey@redhat.com>
8465
8466 * target-delegates.c: Rebuild.
8467 * target.c (update_current_target): Don't inherit or default
8468 to_post_attach.
8469 * target.h (struct target_ops) <to_post_attach>: Use
8470 TARGET_DEFAULT_IGNORE.
8471
8472 2014-02-19 Tom Tromey <tromey@redhat.com>
8473
8474 * target-delegates.c: Rebuild.
8475 * target.c (update_current_target): Don't inherit or default
8476 to_rcmd.
8477 (default_rcmd): New function.
8478 (do_monitor_command): Unconditionally delegate.
8479 * target.h (struct target_ops) <to_rmcd>: Use
8480 TARGET_DEFAULT_FUNC.
8481
8482 2014-02-19 Tom Tromey <tromey@redhat.com>
8483
8484 * target-delegates.c: Rebuild.
8485 * target.c (init_dummy_target): Don't initialize to_attach.
8486 (target_attach): Unconditionally delegate.
8487 * target.h (struct target_ops) <to_attach>: Use
8488 TARGET_DEFAULT_FUNC.
8489
8490 2014-02-19 Tom Tromey <tromey@redhat.com>
8491
8492 * target-delegates.c: Rebuild.
8493 * target.c (target_detach): Unconditionally delegate.
8494 (init_dummy_target): Don't initialize to_detach.
8495 * target.h (struct target_ops) <to_detach>: Use
8496 TARGET_DEFAULT_IGNORE.
8497
8498 2014-02-19 Tom Tromey <tromey@redhat.com>
8499
8500 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8501 Add argument.
8502 (target_augmented_libraries_svr4_read): Add argument.
8503 * target.c (update_current_target): Update.
8504 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8505 argument.
8506
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8508
8509 * target.h (struct target_ops) <to_call_history_range>: Add
8510 argument.
8511 * target.c (target_call_history_range): Add argument.
8512 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8513 argument.
8514 (record_btrace_call_history_from): Update.
8515
8516 2014-02-19 Tom Tromey <tromey@redhat.com>
8517
8518 * target.h (struct target_ops) <to_call_history_from>: Add
8519 argument.
8520 * target.c (target_call_history_from): Add argument.
8521 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8522 argument.
8523
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8525
8526 * target.h (struct target_ops) <to_call_history>: Add argument.
8527 * target.c (target_call_history): Add argument.
8528 * record-btrace.c (record_btrace_call_history): Add 'self'
8529 argument.
8530
8531 2014-02-19 Tom Tromey <tromey@redhat.com>
8532
8533 * target.h (struct target_ops) <to_insn_history_range>: Add
8534 argument.
8535 * target.c (target_insn_history_range): Add argument.
8536 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8537 argument.
8538 (record_btrace_insn_history_from): Update.
8539
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8541
8542 * target.h (struct target_ops) <to_insn_history_from>: Add
8543 argument.
8544 * target.c (target_insn_history_from): Add argument.
8545 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8546 argument.
8547
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8549
8550 * target.h (struct target_ops) <to_insn_history>: Add argument.
8551 * target.c (target_insn_history): Add argument.
8552 * record-btrace.c (record_btrace_insn_history): Add 'self'
8553 argument.
8554
8555 2014-02-19 Tom Tromey <tromey@redhat.com>
8556
8557 * target.h (struct target_ops) <to_goto_record>: Add argument.
8558 * target.c (target_goto_record): Add argument.
8559 * record-full.c (record_full_goto): Add 'self' argument.
8560 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8561
8562 2014-02-19 Tom Tromey <tromey@redhat.com>
8563
8564 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8565 * target.c (target_goto_record_end): Add argument.
8566 * record-full.c (record_full_goto_end): Add 'self' argument.
8567 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8568
8569 2014-02-19 Tom Tromey <tromey@redhat.com>
8570
8571 * target.h (struct target_ops) <to_goto_record_begin>: Add
8572 argument.
8573 * target.c (target_goto_record_begin): Add argument.
8574 * record-full.c (record_full_goto_begin): Add 'self' argument.
8575 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8576 argument.
8577
8578 2014-02-19 Tom Tromey <tromey@redhat.com>
8579
8580 * target.h (struct target_ops) <to_record_is_replaying>: Add
8581 argument.
8582 * target.c (target_record_is_replaying): Add argument.
8583 * record-full.c (record_full_is_replaying): Add 'self' argument.
8584 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8585 argument.
8586 (record_btrace_xfer_partial, record_btrace_store_registers)
8587 (record_btrace_prepare_to_store, record_btrace_resume)
8588 (record_btrace_wait, record_btrace_decr_pc_after_break)
8589 (record_btrace_find_new_threads, record_btrace_thread_alive):
8590 Update.
8591
8592 2014-02-19 Tom Tromey <tromey@redhat.com>
8593
8594 * target.h (struct target_ops) <to_delete_record>: Add argument.
8595 * target.c (target_delete_record): Add argument.
8596 * record-full.c (record_full_delete): Add 'self' argument.
8597
8598 2014-02-19 Tom Tromey <tromey@redhat.com>
8599
8600 * target.h (struct target_ops) <to_save_record>: Add argument.
8601 * target.c (target_save_record): Add argument.
8602 * record-full.c (record_full_save): Add 'self' argument.
8603 (record_full_save): Add 'self' argument.
8604
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target.h (struct target_ops) <to_info_record>: Add argument.
8608 * target.c (target_info_record): Add argument.
8609 * record.c (info_record_command): Add argument.
8610 * record-full.c (record_full_info): Add 'self' argument.
8611 * record-btrace.c (record_btrace_info): Add 'self' argument.
8612
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8616 * target.c (target_stop_recording): Add argument.
8617 * record.c (record_stop): Add argument.
8618 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8619 argument.
8620
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8622
8623 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8624 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8625 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8626 argument.
8627 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8628 (_initialize_amd64_linux_nat): Use it.
8629 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8630 (_initialize_i386_linux_nat): Use it.
8631
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8635 * target.c (target_teardown_btrace): Add argument.
8636 * remote.c (remote_teardown_btrace): Add 'self' argument.
8637 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8638 argument.
8639 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8640 argument.
8641
8642 2014-02-19 Tom Tromey <tromey@redhat.com>
8643
8644 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8645 * target.c (target_disable_btrace): Add argument.
8646 * remote.c (remote_disable_btrace): Add 'self' argument.
8647 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8648 argument.
8649 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8650 argument.
8651
8652 2014-02-19 Tom Tromey <tromey@redhat.com>
8653
8654 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8655 * target.c (target_enable_btrace): Add argument.
8656 * remote.c (remote_enable_btrace): Add 'self' argument.
8657 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8658 argument.
8659 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8660 argument.
8661
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8663
8664 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8665 (target_can_use_agent): Add argument.
8666 * target.c (update_current_target): Update.
8667 * remote.c (remote_can_use_agent): Add 'self' argument.
8668 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8669
8670 2014-02-19 Tom Tromey <tromey@redhat.com>
8671
8672 * target.h (struct target_ops) <to_use_agent>: Add argument.
8673 (target_use_agent): Add argument.
8674 * target.c (update_current_target): Update.
8675 * remote.c (remote_use_agent): Add 'self' argument.
8676 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8677
8678 2014-02-19 Tom Tromey <tromey@redhat.com>
8679
8680 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8681 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8682 (target_traceframe_info): Add argument.
8683 * target.c (update_current_target): Update.
8684 * remote.c (remote_traceframe_info): Add 'self' argument.
8685 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8686
8687 2014-02-19 Tom Tromey <tromey@redhat.com>
8688
8689 * target.h (target_static_tracepoint_markers_by_strid): Add
8690 argument.
8691 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8692 'self' argument.
8693 * target.c (update_current_target): Update.
8694 * remote.c (struct target_ops)
8695 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8696 * linux-nat.c (struct target_ops)
8697 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8698
8699 2014-02-19 Tom Tromey <tromey@redhat.com>
8700
8701 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8702 Add argument.
8703 (target_static_tracepoint_marker_at): Add argument.
8704 * target.c (update_current_target): Update.
8705 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8706 argument.
8707
8708 2014-02-19 Tom Tromey <tromey@redhat.com>
8709
8710 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8711 (target_set_permissions): Add argument.
8712 * target.c (update_current_target): Update.
8713 * remote.c (remote_set_permissions): Add 'self' argument.
8714 (remote_start_remote): Update.
8715
8716 2014-02-19 Tom Tromey <tromey@redhat.com>
8717
8718 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8719 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8720 (target_get_tib_address): Add argument.
8721 * target.c (update_current_target): Update.
8722 * remote.c (remote_get_tib_address): Add 'self' argument.
8723
8724 2014-02-19 Tom Tromey <tromey@redhat.com>
8725
8726 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8727 (target_set_trace_notes): Add argument.
8728 * target.c (update_current_target): Update.
8729 * remote.c (remote_set_trace_notes): Add 'self' argument.
8730
8731 2014-02-19 Tom Tromey <tromey@redhat.com>
8732
8733 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8734 argument.
8735 (target_set_trace_buffer_size): Add argument.
8736 * target.c (update_current_target): Update.
8737 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8738
8739 2014-02-19 Tom Tromey <tromey@redhat.com>
8740
8741 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8742 argument.
8743 (target_set_circular_trace_buffer): Add argument.
8744 * target.c (update_current_target): Update.
8745 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8746 argument.
8747
8748 2014-02-19 Tom Tromey <tromey@redhat.com>
8749
8750 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8751 argument.
8752 (target_set_disconnected_tracing): Add argument.
8753 * target.c (update_current_target): Update.
8754 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8755
8756 2014-02-19 Tom Tromey <tromey@redhat.com>
8757
8758 * target.h (struct target_ops)
8759 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8760 (target_get_min_fast_tracepoint_insn_len): Add argument.
8761 * target.c (update_current_target): Update.
8762 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8763 argument.
8764
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8766
8767 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8768 argument.
8769 (target_get_raw_trace_data): Add argument.
8770 * target.c (update_current_target): Update.
8771 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8772
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8774
8775 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8776 Add argument.
8777 (target_upload_trace_state_variables): Add argument.
8778 * target.c (update_current_target): Update.
8779 * remote.c (remote_upload_trace_state_variables): Add 'self'
8780 argument.
8781 (remote_start_remote): Update.
8782
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8786 argument.
8787 (target_upload_tracepoints): Add argument.
8788 * target.c (update_current_target): Update.
8789 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8790 (remote_start_remote): Update.
8791
8792 2014-02-19 Tom Tromey <tromey@redhat.com>
8793
8794 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8795 (target_save_trace_data): Add argument.
8796 * target.c (update_current_target): Update.
8797 * remote.c (remote_save_trace_data): Add 'self' argument.
8798
8799 2014-02-19 Tom Tromey <tromey@redhat.com>
8800
8801 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8802 argument.
8803 * target.h (struct target_ops)
8804 <to_get_trace_state_variable_value>: Add argument.
8805 (target_get_trace_state_variable_value): Add argument.
8806 * target.c (update_current_target): Update.
8807 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8808 argument.
8809 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8810
8811 2014-02-19 Tom Tromey <tromey@redhat.com>
8812
8813 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8814 * target.h (struct target_ops) <to_trace_find>: Add argument.
8815 (target_trace_find): Add argument.
8816 * target.c (update_current_target): Update.
8817 * remote.c (remote_trace_find): Add 'self' argument.
8818 * ctf.c (ctf_trace_find): Add 'self' argument.
8819
8820 2014-02-19 Tom Tromey <tromey@redhat.com>
8821
8822 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8823 (target_trace_stop): Add argument.
8824 * target.c (update_current_target): Update.
8825 * remote.c (remote_trace_stop): Add 'self' argument.
8826
8827 2014-02-19 Tom Tromey <tromey@redhat.com>
8828
8829 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8830 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8831 argument.
8832 (target_get_tracepoint_status): Add argument.
8833 * target.c (update_current_target): Update.
8834 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8835
8836 2014-02-19 Tom Tromey <tromey@redhat.com>
8837
8838 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8839 * target.h (struct target_ops) <to_get_trace_status>: Add
8840 argument.
8841 (target_get_trace_status): Add argument.
8842 * target.c (update_current_target): Update.
8843 * remote.c (remote_get_trace_status): Add 'self' argument.
8844 (remote_start_remote, remote_can_download_tracepoint): Update.
8845 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8846
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8848
8849 * target.h (struct target_ops) <to_trace_start>: Add argument.
8850 (target_trace_start): Add argument.
8851 * target.c (update_current_target): Update.
8852 * remote.c (remote_trace_start): Add 'self' argument.
8853
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8855
8856 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8857 Add argument.
8858 (target_trace_set_readonly_regions): Add argument.
8859 * target.c (update_current_target): Update.
8860 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8861 argument.
8862
8863 2014-02-19 Tom Tromey <tromey@redhat.com>
8864
8865 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8866 argument.
8867 (target_disable_tracepoint): Add argument.
8868 * target.c (update_current_target): Update.
8869 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8870
8871 2014-02-19 Tom Tromey <tromey@redhat.com>
8872
8873 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8874 argument.
8875 (target_enable_tracepoint): Add argument.
8876 * target.c (update_current_target): Update.
8877 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8878
8879 2014-02-19 Tom Tromey <tromey@redhat.com>
8880
8881 * target.h (struct target_ops) <to_download_trace_state_variable>:
8882 Add argument.
8883 (target_download_trace_state_variable): Add argument.
8884 * target.c (update_current_target): Update.
8885 * remote.c (remote_download_trace_state_variable): Add 'self'
8886 argument.
8887
8888 2014-02-19 Tom Tromey <tromey@redhat.com>
8889
8890 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8891 argument.
8892 (target_can_download_tracepoint): Add argument.
8893 * target.c (update_current_target): Update.
8894 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8895
8896 2014-02-19 Tom Tromey <tromey@redhat.com>
8897
8898 * target.h (struct target_ops) <to_download_tracepoint>: Add
8899 argument.
8900 (target_download_tracepoint): Add argument.
8901 * target.c (update_current_target): Update.
8902 * remote.c (remote_download_tracepoint): Add 'self' argument.
8903
8904 2014-02-19 Tom Tromey <tromey@redhat.com>
8905
8906 * target.h (struct target_ops) <to_trace_init>: Add argument.
8907 (target_trace_init): Add argument.
8908 * target.c (update_current_target): Update.
8909 * remote.c (remote_trace_init): Add 'self' argument.
8910
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8912
8913 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8914 * target.c (target_fileio_readlink): Add argument.
8915 * remote.c (remote_hostio_readlink): Add 'self' argument.
8916 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8917
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8919
8920 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8921 * target.c (target_fileio_unlink): Add argument.
8922 * remote.c (remote_hostio_unlink): Add 'self' argument.
8923 (remote_file_delete): Update.
8924 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8925
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8927
8928 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8929 * target.c (target_fileio_close): Add argument.
8930 * remote.c (remote_hostio_close): Add 'self' argument.
8931 (remote_hostio_close_cleanup): Update.
8932 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8933 Update.
8934 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8935
8936 2014-02-19 Tom Tromey <tromey@redhat.com>
8937
8938 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8939 * target.c (target_fileio_pread): Add argument.
8940 * remote.c (remote_hostio_pread): Add 'self' argument.
8941 (remote_bfd_iovec_pread, remote_file_get): Update.
8942 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8943
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8945
8946 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8947 * target.c (target_fileio_pwrite): Add argument.
8948 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8949 (remote_file_put): Update.
8950 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8951
8952 2014-02-19 Tom Tromey <tromey@redhat.com>
8953
8954 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8955 * target.c (target_fileio_open): Add argument.
8956 * remote.c (remote_hostio_open): Add 'self' argument.
8957 (remote_bfd_iovec_open): Add 'self' argument.
8958 (remote_file_put): Add 'self' argument.
8959 (remote_file_get): Add 'self' argument.
8960 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8961
8962 2014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8965 Add argument.
8966 (target_can_run_breakpoint_commands): Add argument.
8967 * target.c (update_current_target): Update.
8968 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8969 argument.
8970 (remote_insert_breakpoint): Add 'self' argument.
8971 (remote_insert_hw_breakpoint): Add 'self' argument.
8972 (remote_can_run_breakpoint_commands): Add 'self' argument.
8973
8974 2014-02-19 Tom Tromey <tromey@redhat.com>
8975
8976 * target.h (struct target_ops)
8977 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8978 (target_supports_evaluation_of_breakpoint_conditions): Add
8979 argument.
8980 * target.c (update_current_target): Update.
8981 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8982 argument.
8983 (remote_insert_breakpoint): Add 'self' argument.
8984 (remote_insert_hw_breakpoint): Add 'self' argument.
8985 (remote_supports_cond_breakpoints): Add 'self' argument.
8986
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8990 argument.
8991 (target_supports_string_tracing): Add argument.
8992 * target.c (update_current_target): Update.
8993 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8994
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8996
8997 * target.h (struct target_ops)
8998 <to_supports_disable_randomization>: Add argument.
8999 * target.c (find_default_supports_disable_randomization): Add
9000 argument.
9001 (target_supports_disable_randomization): Add argument.
9002 (find_default_supports_disable_randomization): Add 'self'
9003 argument.
9004 * remote.c (extended_remote_supports_disable_randomization): Add
9005 'self' argument.
9006 (remote_supports_disable_randomization): Add 'self' argument.
9007 (extended_remote_create_inferior): Update.
9008 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9009 'self' argument.
9010
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target.h (struct target_ops)
9014 <to_supports_enable_disable_tracepoint>: Add argument.
9015 (target_supports_enable_disable_tracepoint): Add argument.
9016 * target.c (update_current_target): Update.
9017 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9018 argument.
9019
9020 2014-02-19 Tom Tromey <tromey@redhat.com>
9021
9022 * target.h (struct target_ops) <to_supports_multi_process>: Add
9023 argument.
9024 (target_supports_multi_process): Add argument.
9025 * target.c (update_current_target): Update.
9026 * remote.c (remote_supports_multi_process): Add 'self' argument.
9027 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9028 argument.
9029 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9030 argument.
9031
9032 2014-02-19 Tom Tromey <tromey@redhat.com>
9033
9034 * target.h (struct target_ops) <to_execution_direction>: Add
9035 argument.
9036 (target_execution_direction): Add argument.
9037 * target.c (default_execution_direction): Add 'self' argument.
9038 * record-full.c (record_full_execution_direction): Add 'self'
9039 argument.
9040
9041 2014-02-19 Tom Tromey <tromey@redhat.com>
9042
9043 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9044 argument.
9045 (target_can_execute_reverse): Add argument.
9046 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9047 * record-full.c (record_full_can_execute_reverse): Add 'self'
9048 argument.
9049 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9050 argument.
9051
9052 2014-02-19 Tom Tromey <tromey@redhat.com>
9053
9054 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9055 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9056 argument.
9057 (target_get_ada_task_ptid): Add argument.
9058 * target.c (update_current_target): Update.
9059 (default_get_ada_task_ptid): Add 'self' argument.
9060 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9061 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9062 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9063 argument.
9064 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9065 argument.
9066 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9067 argument.
9068 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9069 argument.
9070 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9071 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9072 argument.
9073
9074 2014-02-19 Tom Tromey <tromey@redhat.com>
9075
9076 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9077 (target_goto_bookmark): Add argument.
9078 * target.c (dummy_goto_bookmark): Add 'self' argument.
9079 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9080
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9082
9083 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9084 (target_get_bookmark): Add argument.
9085 * target.c (dummy_get_bookmark): Add 'self' argument.
9086 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9087
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9089
9090 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9091 argument.
9092 (target_make_corefile_notes): Add argument.
9093 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9094 * procfs.c (procfs_make_note_section): Add 'self' argument.
9095 (procfs_make_note_section): Add 'self' argument.
9096 (procfs_make_note_section): Add 'self' argument.
9097 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9098 argument.
9099 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9100 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9101 * exec.c (exec_make_note_section): Add 'self' argument.
9102 (exec_make_note_section): Add 'self' argument.
9103
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9105
9106 * target.h (struct target_ops) <to_find_memory_regions>: Add
9107 argument.
9108 (target_find_memory_regions): Add argument.
9109 * target.c (dummy_find_memory_regions): Add 'self' argument.
9110 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9111 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9112 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9113 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9114 * exec. (exec_do_find_memory_regions): New global.
9115 (exec_set_find_memory_regions): Rewrite.
9116 (exec_find_memory_regions): New function.
9117 (init_exec_ops): Use exec_find_memory_regions.
9118
9119 2014-02-19 Tom Tromey <tromey@redhat.com>
9120
9121 * target.h (struct target_ops) <to_supports_non_stop>: Add
9122 argument.
9123 * target.c (find_default_supports_non_stop): Add argument.
9124 (target_supports_non_stop): Add argument.
9125 (find_default_supports_non_stop): Add 'self' argument.
9126 * remote.c (remote_supports_non_stop): Add 'self' argument.
9127 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9128
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9130
9131 * target.h (struct target_ops) <to_log_command>: Add argument.
9132 (target_log_command): Add argument.
9133 * serial.h (serial_log_command): Add 'self' argument.
9134 * serial.c (serial_log_command): Add 'self' argument.
9135
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9137
9138 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9139 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9140 argument.
9141 (target_pid_to_exec_file): Add argument.
9142 * target.c (debug_to_pid_to_exec_file): Add argument.
9143 (update_current_target): Update.
9144 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9145 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9146 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9147 (linux_handle_extended_wait): Update.
9148 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9149 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9150 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9151 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9152
9153 2014-02-19 Tom Tromey <tromey@redhat.com>
9154
9155 * target.h (struct target_ops) <to_rcmd>: Add argument.
9156 (target_rcmd): Add argument.
9157 * target.c (debug_to_rcmd): Add argument.
9158 (update_current_target, do_monitor_command): Update.
9159 * remote.c (remote_rcmd): Add 'self' argument.
9160 * monitor.c (monitor_rcmd): Add 'self' argument.
9161
9162 2014-02-19 Tom Tromey <tromey@redhat.com>
9163
9164 * windows-nat.c (windows_stop): Add 'self' argument.
9165 * target.h (struct target_ops) <to_stop>: Add argument.
9166 * target.c (target_stop): Add argument.
9167 (debug_to_stop): Add argument.
9168 (update_current_target): Update.
9169 * remote.c (remote_stop): Add 'self' argument.
9170 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9171 (gdbsim_cntrl_c): Update.
9172 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9173 * procfs.c (procfs_stop): Add 'self' argument.
9174 * nto-procfs.c (procfs_stop): Add 'self' argument.
9175 * monitor.c (monitor_stop): Add 'self' argument.
9176 (monitor_open): Update.
9177 * linux-nat.c (linux_nat_stop): Add argument.
9178 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9179 * gnu-nat.c (gnu_stop): Add 'self' argument.
9180 * darwin-nat.c (darwin_stop): Add 'self' argument.
9181
9182 2014-02-19 Tom Tromey <tromey@redhat.com>
9183
9184 * target.h (struct target_ops) <to_thread_name>: Add argument.
9185 * target.c (target_thread_name): Add argument.
9186 (update_current_target): Update.
9187 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9188
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9190
9191 * target.h (struct target_ops) <to_extra_thread_info>: Add
9192 argument.
9193 (target_extra_thread_info): Add argument.
9194 * target.c (update_current_target): Update.
9195 * remote.c (remote_threads_extra_info): Add 'self' argument.
9196 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9197 argument.
9198 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9199 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9200 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9201 argument.
9202 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9203 argument.
9204 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9205 argument.
9206 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9207 argument.
9208
9209 2014-02-19 Tom Tromey <tromey@redhat.com>
9210
9211 * target.h (struct target_ops) <to_program_signals>: Add argument.
9212 * target.c (target_program_signals): Add argument.
9213 * remote.c (remote_program_signals): Add 'self' argument.
9214
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9216
9217 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9218 * target.c (target_pass_signals): Add argument.
9219 * remote.c (remote_pass_signals): Add 'self' argument.
9220 (remote_start_remote): Update.
9221 * procfs.c (procfs_pass_signals): Add 'self' argument.
9222 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9223 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9224 (linux_nat_create_inferior, linux_nat_attach): Update.
9225
9226 2014-02-19 Tom Tromey <tromey@redhat.com>
9227
9228 * windows-nat.c (windows_can_run): Add 'self' argument.
9229 * target.h (struct target_ops) <to_can_run>: Add argument.
9230 (target_can_run): Add argument.
9231 * target.c (debug_to_can_run): Add argument.
9232 (update_current_target): Update.
9233 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9234 * inf-child.c (inf_child_can_run): Add 'self' argument.
9235 * go32-nat.c (go32_can_run): Add 'self' argument.
9236
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9238
9239 * target.h (struct target_ops) <to_has_exited>: Add argument.
9240 (target_has_exited): Add argument.
9241 * target.c (debug_to_has_exited): Add argument.
9242 (update_current_target): Update.
9243
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9245
9246 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9247 argument.
9248 (target_set_syscall_catchpoint): Add argument.
9249 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9250 argument.
9251 * target.c (update_current_target): Update.
9252
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9254
9255 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9256 argument.
9257 (target_remove_exec_catchpoint): Add argument.
9258 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9259 (update_current_target): Update.
9260 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9261 argument.
9262
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9264
9265 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9266 argument.
9267 (target_insert_exec_catchpoint): Add argument.
9268 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9269 (update_current_target): Update.
9270 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9271 argument.
9272
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9276 argument.
9277 (target_remove_vfork_catchpoint): Add argument.
9278 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9279 (update_current_target): Update.
9280 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9281 argument.
9282
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9284
9285 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9286 argument.
9287 (target_insert_vfork_catchpoint): Add argument.
9288 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9289 (update_current_target): Update.
9290 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9291 argument.
9292
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9296 argument.
9297 (target_remove_fork_catchpoint): Add argument.
9298 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9299 (update_current_target): Update.
9300 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9301 argument.
9302
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9304
9305 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9306 argument.
9307 (target_insert_fork_catchpoint): Add argument.
9308 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9309 (update_current_target): Update.
9310 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9311 argument.
9312
9313 2014-02-19 Tom Tromey <tromey@redhat.com>
9314
9315 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9316 argument.
9317 (target_post_startup_inferior): Add argument.
9318 * target.c (debug_to_post_startup_inferior): Add argument.
9319 (update_current_target): Update.
9320 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9321 argument.
9322 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9323 argument.
9324 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9325 argument.
9326 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9327 argument.
9328 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9329 'self' argument.
9330 (super_post_startup_inferior): Likewise.
9331 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9332 'self' argument.
9333 (super_post_startup_inferior): Likewise.
9334 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9335 Add 'self' argument.
9336 (super_post_startup_inferior): Likewise.
9337
9338 2014-02-19 Tom Tromey <tromey@redhat.com>
9339
9340 * target.h (struct target_ops) <to_load>: Add argument.
9341 * target.c (target_load): Add argument.
9342 (debug_to_load): Add argument.
9343 (update_current_target): Update.
9344 * remote.c (remote_load): Add 'self' argument.
9345 * remote-sim.c (gdbsim_load): Add 'self' argument.
9346 * remote-mips.c (mips_load): Add 'self' argument.
9347 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9348 * monitor.c (monitor_load): Add 'self' argument.
9349 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9350
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9352
9353 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9354 (target_terminal_info): Add argument.
9355 * target.c (debug_to_terminal_info): Add argument.
9356 (default_terminal_info): Likewise.
9357 * inflow.c (child_terminal_info): Add 'self' argument.
9358 * inferior.h (child_terminal_info): Add 'self' argument.
9359 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9360
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9364 argument.
9365 (target_terminal_save_ours): Add argument.
9366 * target.c (debug_to_terminal_save_ours): Add argument.
9367 (update_current_target): Update.
9368 * inflow.c (terminal_save_ours): Add 'self' argument.
9369 * inferior.h (terminal_save_ours): Add 'self' argument.
9370
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9372
9373 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9374 (target_terminal_ours): Add argument.
9375 * target.c (debug_to_terminal_ours): Add argument.
9376 (update_current_target): Update.
9377 * remote.c (remote_terminal_ours): Add 'self' argument.
9378 (remote_close): Update.
9379 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9380 * inflow.c (terminal_ours): Add 'self' argument.
9381 * inferior.h (terminal_ours): Add 'self' argument.
9382 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9383
9384 2014-02-19 Pedro Alves <palves@redhat.com>
9385 Tom Tromey <tromey@redhat.com>
9386
9387 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9388 argument.
9389 (target_terminal_ours_for_output): Add argument.
9390 * target.c (debug_to_terminal_ours_for_output): Add argument.
9391 (update_current_target): Update.
9392 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9393 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9394 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9395
9396 2014-02-19 Tom Tromey <tromey@redhat.com>
9397
9398 * target.h (struct target_ops) <to_terminal_inferior>: Add
9399 argument.
9400 * target.c (target_terminal_inferior): Add argument.
9401 (update_current_target): Update.
9402 * remote.c (remote_terminal_inferior): Add 'self' argument.
9403 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9404 * inflow.c (terminal_inferior): Add 'self' argument.
9405 * inferior.h (terminal_inferior): Add 'self' argument.
9406 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9407 (go32_terminal_inferior): Add 'self' argument.
9408
9409 2014-02-19 Tom Tromey <tromey@redhat.com>
9410
9411 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9412 (target_terminal_init): Add argument.
9413 * target.c (debug_to_terminal_init): Add argument.
9414 (update_current_target): Update.
9415 * inflow.c (terminal_init_inferior): Add 'self' argument.
9416 * inferior.h (terminal_init_inferior): Add 'self' argument.
9417 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9418 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9419
9420 2014-02-19 Tom Tromey <tromey@redhat.com>
9421
9422 * target.h (struct target_ops)
9423 <to_can_accel_watchpoint_condition>: Add argument.
9424 (target_can_accel_watchpoint_condition): Add argument.
9425 * target.c (debug_to_can_accel_watchpoint_condition): Add
9426 argument.
9427 (update_current_target): Update.
9428 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9429 'self' argument.
9430
9431 2014-02-19 Tom Tromey <tromey@redhat.com>
9432
9433 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9434 Add argument.
9435 (target_region_ok_for_hw_watchpoint): Add argument.
9436 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9437 (default_region_ok_for_hw_watchpoint): Add argument.
9438 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9439 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9440 argument.
9441 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9442 argument.
9443 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9444 argument.
9445 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9446 'self' argument.
9447 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9448 'self' argument.
9449 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9450 'self' argument.
9451 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9452 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9453 'self' argument.
9454 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9455 Add 'self' argument.
9456
9457 2014-02-19 Tom Tromey <tromey@redhat.com>
9458
9459 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9460 argument.
9461 (target_insert_watchpoint): Add argument.
9462 * target.c (debug_to_insert_watchpoint): Add argument.
9463 (update_current_target): Update.
9464 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9465 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9466 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9467 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9468 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9469 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9470 argument.
9471 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9472 (procfs_insert_hw_watchpoint): Add 'self' argument.
9473 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9474 argument.
9475 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9476 argument.
9477 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9478 argument.
9479 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9480 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9481 argument.
9482 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9483 'self' argument.
9484
9485 2014-02-19 Tom Tromey <tromey@redhat.com>
9486
9487 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9488 argument.
9489 (target_remove_watchpoint): Add argument.
9490 * target.c (debug_to_remove_watchpoint): Add argument.
9491 (update_current_target): Update.
9492 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9493 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9494 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9495 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9496 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9497 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9498 argument.
9499 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9500 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9501 argument.
9502 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9503 argument.
9504 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9505 argument.
9506 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9507 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9508 argument.
9509 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9510 'self' argument.
9511
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9515 argument.
9516 (target_remove_hw_breakpoint): Add argument.
9517 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9518 (update_current_target): Update.
9519 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9520 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9521 argument.
9522 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9523 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9524 argument.
9525 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9526 'self' argument.
9527
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9529
9530 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9531 argument.
9532 (target_insert_hw_breakpoint): Add argument.
9533 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9534 (update_current_target): Update.
9535 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9536 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9537 argument.
9538 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9539 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9540 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9541 argument.
9542 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9543 'self' argument.
9544
9545 2014-02-19 Tom Tromey <tromey@redhat.com>
9546
9547 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9548 argument.
9549 (target_can_use_hardware_watchpoint): Add argument.
9550 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9551 (update_current_target): Update.
9552 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9553 argument.
9554 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9555 argument.
9556 * remote.c (remote_check_watch_resources): Add 'self' argument.
9557 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9558 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9559 argument.
9560 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9561 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9562 argument.
9563 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9564 argument.
9565 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9566 argument.
9567 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9568 argument.
9569 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9570 argument.
9571 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9572 argument.
9573 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9574 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9575 argument.
9576 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9577 'self' argument.
9578
9579 2014-02-19 Tom Tromey <tromey@redhat.com>
9580
9581 * target.h (struct target_ops) <to_post_attach>: Add argument.
9582 (target_post_attach): Add argument.
9583 * target.c (debug_to_post_attach): Add argument.
9584 (update_current_target): Update.
9585 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9586 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9587 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9588 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9589 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9590
9591 2014-02-19 Tom Tromey <tromey@redhat.com>
9592
9593 * windows-nat.c (windows_close): Add 'self' argument.
9594 * tracepoint.c (tfile_close): Add 'self' argument.
9595 * target.h (struct target_ops) <to_close>: Add argument.
9596 * target.c (target_close): Add argument.
9597 (update_current_target): Update.
9598 * remote.c (remote_close): Add 'self' argument.
9599 * remote-sim.c (gdbsim_close): Add 'self' argument.
9600 * remote-mips.c (mips_close): Add 'self' argument.
9601 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9602 * record-full.c (record_full_close): Add 'self' argument.
9603 * record-btrace.c (record_btrace_close): Add 'self' argument.
9604 * monitor.h (monitor_close): Add 'self' argument.
9605 * monitor.c (monitor_close): Add 'self' argument.
9606 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9607 * linux-nat.c (linux_nat_close): Add argument.
9608 * go32-nat.c (go32_close): Add 'self' argument.
9609 * exec.c (exec_close_1): Add 'self' argument.
9610 * ctf.c (ctf_close): Add 'self' argument.
9611 * corelow.c (core_close): Add 'self' argument.
9612 (core_close_cleanup): Update.
9613 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9614 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9615
9616 2014-02-19 Tom Tromey <tromey@redhat.com>
9617
9618 * remote.c (remote_load): New function.
9619 (init_remote_ops): Use it.
9620
9621 2014-02-19 Tom Tromey <tromey@redhat.com>
9622
9623 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9624 argument.
9625 * common/linux-btrace.h (linux_supports_btrace): Update.
9626 * remote.c (remote_supports_btrace): Add "self" argument.
9627 * target-delegates.c: Rebuild.
9628 * target.c (target_supports_btrace): Remove.
9629 * target.h (struct target_ops) <to_supports_btrace>: Add
9630 target_ops argument.
9631 (target_supports_btrace): New define.
9632
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9634
9635 * record-full.c (record_full_beneath_to_resume_ops)
9636 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9637 (record_full_beneath_to_wait)
9638 (record_full_beneath_to_store_registers_ops)
9639 (record_full_beneath_to_store_registers)
9640 (record_full_beneath_to_xfer_partial_ops)
9641 (record_full_beneath_to_xfer_partial)
9642 (record_full_beneath_to_insert_breakpoint_ops)
9643 (record_full_beneath_to_insert_breakpoint)
9644 (record_full_beneath_to_remove_breakpoint_ops)
9645 (record_full_beneath_to_remove_breakpoint)
9646 (record_full_beneath_to_stopped_by_watchpoint)
9647 (record_full_beneath_to_stopped_data_address)
9648 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9649 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9650 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9651 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9652 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9653 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9654 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9655 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9656 (record_full_resume, record_full_wait_1)
9657 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9658 (record_full_store_registers, record_full_xfer_partial)
9659 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9660 (record_full_async, record_full_core_xfer_partial): Use target
9661 delegation.
9662 * target-delegates.c: Rebuild.
9663 * target.c (current_xfer_partial): Remove.
9664 (update_current_target): Do not INHERIT or de_fault
9665 to_insert_breakpoint, to_remove_breakpoint,
9666 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9667 to_is_async_p, to_async. Do not set to_xfer_partial field.
9668 (default_xfer_partial): Simplify.
9669 (current_xfer_partial): Remove.
9670 (target_wait, target_resume): Simplify.
9671 (find_default_can_async_p, find_default_is_async_p): Update.
9672 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9673 to_xfer_partial, to_stopped_by_watchpoint,
9674 to_stopped_data_address.
9675 (target_store_registers): Simplify.
9676 (forward_target_remove_breakpoint)
9677 (forward_target_insert_breakpoint): Remove.
9678 (target_remove_breakpoint, target_insert_breakpoint)
9679 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9680 * target.h (struct target_ops) <to_resume, to_wait,
9681 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9682 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9683 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9684 markup.
9685 (forward_target_remove_breakpoint)
9686 (forward_target_insert_breakpoint): Remove.
9687 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9688 directly.
9689 (record_btrace_insert_breakpoint): Delegate directly.
9690
9691 2014-02-19 Tom Tromey <tromey@redhat.com>
9692
9693 PR build/7701:
9694 * target-delegates.c: New file.
9695 * target.c: Include target-delegates.c.
9696 (init_dummy_target): Call install_dummy_methods.
9697 (complete_target_initialization): Call install_delegators.
9698 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9699 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9700 * make-target-delegates: New file.
9701
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9703
9704 * record.c (find_record_target): Use find_target_at.
9705 * target.c (find_target_at): New function.
9706 * target.h (find_target_at): Declare.
9707
9708 2014-02-19 Tom Tromey <tromey@redhat.com>
9709
9710 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9711 Add 'ops' argument.
9712 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9713 'ops' argument.
9714 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9715 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9716 'ops' argument.
9717 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9718 argument.
9719 * linux-nat.c (save_sigtrap): Update.
9720 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9721 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9722 (linux_nat_close): Update.
9723 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9724 argument.
9725 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9726 argument.
9727 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9728 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9729 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9730 (tmp_to_async): Add 'ops' argument.
9731 (record_full_stopped_by_watchpoint, record_full_async)
9732 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9733 argument.
9734 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9735 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9736 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9737 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9738 (remote_is_async_p, remote_async): Add 'ops' argument.
9739 (remote_stopped_data_address): Update.
9740 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9741 * target.c (update_current_target)
9742 (find_default_can_async_p, find_default_is_async_p): Update.
9743 (init_dummy_target): Update.
9744 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9745 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9746 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9747 (target_can_async_p, target_is_async_p, target_async)
9748 (target_stopped_by_watchpoint): Update.
9749
9750 2014-02-19 Yao Qi <yao@codesourcery.com>
9751
9752 PR gdb/16220
9753 * gdbarch.sh: Remove startup_gdbarch.
9754 * gdbarch.c: Regenerated.
9755 * gdbarch.h: Likewise.
9756
9757 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9758
9759 * rl78-tdep.c (rl78_g10_register_name): New function.
9760 (rl78_return_value): Add g10 support.
9761 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9762 g10.
9763
9764 2014-02-17 Doug Evans <xdje42@gmail.com>
9765
9766 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9767 (SUBDIR_GUILE_SRCS): Ditto.
9768 (scm-gsmob.o): Ditto.
9769
9770 2014-02-17 Yao Qi <yao@codesourcery.com>
9771
9772 * gnu-nat.c (ILL_RPC): Declare defined function.
9773
9774 2014-02-17 Yao Qi <yao@codesourcery.com>
9775
9776 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9777 mach_msg_type_number_t.
9778 (gnu_write_inferior): Likewise.
9779
9780 2014-02-17 Yao Qi <yao@codesourcery.com>
9781
9782 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9783 in format string.
9784 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9785 (inf_validate_procs, inf_signal): Likewise.
9786 (S_exception_raise_request): Likewise.
9787 (do_mach_notify_dead_name): Likewise.
9788 (steal_exc_port): Likewise.
9789 (gnu_read_inferior): Change 'copy_count''s type to
9790 mach_msg_type_number_t.
9791 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9792 format string.
9793
9794 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9795
9796 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9797 flag. Adjust all users; in particular...
9798 (gnu_wait): ..., don't decrement its value in here...
9799 (gnu_create_inferior): ..., and instead set the flag in here,
9800 around the startup_inferior call, and call that one with
9801 START_INFERIOR_TRAPS_EXPECTED.
9802
9803 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9804 (ILL_RPC): ... new macro.
9805 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9806 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9807 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9808 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9809 functions with ILL_RPC macro.
9810 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9811 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9812 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9813 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9814 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9815 (S_proc_getlogin_reply, S_proc_getsid_reply)
9816 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9817 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9818 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9819 (S_proc_getnports_reply, S_proc_is_important_reply)
9820 (S_proc_get_code_reply): New stub functions, generated with
9821 ILL_RPC macro.
9822
9823 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9824 collected the type check structures.
9825
9826 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9827
9828 2014-02-14 Doug Evans <dje@google.com>
9829
9830 * target.c (target_write_partial): Fix result type.
9831
9832 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9833
9834 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9835 the proper offsets to access fpregset_t.
9836
9837 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9838
9839 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9840 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9841 * h8300-tdep.c (setmachinelist): Remove global.
9842 * hppa-tdep.c (hppa_sigtramp): Remove global.
9843 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9844 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9845 * ravenscar-thread.c (update_target_observer): Remove global.
9846 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9847
9848 2014-02-12 Tom Tromey <tromey@redhat.com>
9849
9850 * common/rsp-low.c: Update comments.
9851 * common/rsp-low.h: Update comments.
9852
9853 2014-02-12 Tom Tromey <tromey@redhat.com>
9854
9855 * common/rsp-low.c (convert_ascii_to_int): Remove.
9856 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9857
9858 2014-02-12 Tom Tromey <tromey@redhat.com>
9859
9860 * common/rsp-low.h (unhexify): Don't declare.
9861 * common/rsp-low.c (unhexify): Remove.
9862
9863 2014-02-12 Tom Tromey <tromey@redhat.com>
9864
9865 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9866 * common/rsp-low.c (convert_int_to_ascii): Remove.
9867
9868 2014-02-12 Tom Tromey <tromey@redhat.com>
9869
9870 * common/rsp-low.h (hexify): Don't declare.
9871 * common/rsp-low.c (hexify): Remove.
9872
9873 2014-02-12 Tom Tromey <tromey@redhat.com>
9874
9875 * common/rsp-low.c (hexify): Never take strlen of argument.
9876
9877 2014-02-12 Tom Tromey <tromey@redhat.com>
9878
9879 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9880 * remote.c (extended_remote_run, remote_rcmd)
9881 (remote_download_trace_state_variable, remote_save_trace_data)
9882 (remote_set_trace_notes): Update.
9883 * tracepoint.c (encode_source_string, tfile_write_status)
9884 (tfile_write_uploaded_tsv): Update.
9885
9886 2014-02-12 Tom Tromey <tromey@redhat.com>
9887
9888 * tracepoint.c: Include rsp-low.h.
9889 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9890 * remote.c: Include rsp-low.h.
9891 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9892 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9893 (remote_unescape_input): Move to common/rsp-low.c.
9894 * common/rsp-low.h: New file.
9895 * common/rsp-low.c: New file.
9896 * Makefile.in (SFILES): Add common/rsp-low.c.
9897 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9898 (COMMON_OBS): Add rsp-low.o.
9899 (rsp-low.o): New target.
9900
9901 2014-02-12 Tom Tromey <tromey@redhat.com>
9902
9903 * utils.h: Include print-utils.h.
9904 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9905 (int_string, core_addr_to_string, core_addr_to_string_nz)
9906 (hex_string, hex_string_custom): Don't declare.
9907 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9908 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9909 (hex_string_custom, int_string, core_addr_to_string)
9910 (core_addr_to_string_nz, host_address_to_string): Move to
9911 common/print-utils.c.
9912 * common/print-utils.h: New file.
9913 * common/print-utils.c: New file
9914 * Makefile.in (SFILES): Add common/print-utils.c.
9915 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9916 (COMMON_OBS): Add print-utils.o.
9917 (print-utils.o): New target.
9918
9919 2014-02-12 Tom Tromey <tromey@redhat.com>
9920
9921 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9922
9923 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9924
9925 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9926
9927 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9928
9929 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9930 if a PT_IO ptrace request returns sucessfully but indicates that 0
9931 bytes were transferred.
9932
9933 2014-02-12 Pedro Alves <palves@redhat.com>
9934 Kevin Buettner <kevinb@redhat.com>
9935
9936 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9937 TYPE_INSTANCE_FLAG_CODE_SPACE.
9938
9939 2014-02-12 Pedro Alves <palves@redhat.com>
9940
9941 * h8300-tdep.c (pseudo_from_raw_register)
9942 (raw_from_pseudo_register): New functions.
9943 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9944 them.
9945
9946 2014-02-12 Pedro Alves <palves@redhat.com>
9947
9948 * h8300-tdep.c (h8300_register_sim_regno): New function.
9949 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9950 gdbarch_register_sim_regno hook.
9951
9952 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9953
9954 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9955
9956 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9957
9958 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9959
9960 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9961
9962 * obsd-tdep.h (obsd_init_abi): New prototype.
9963 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9964 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9965 (obsd_init_abi): New functions.
9966 * i386obsd-tdep.c: Include "obsd-tdep.h".
9967 (i386obsd_init_abi): Call obsd_init_abi.
9968 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9969 (amd64obsd_init_abi): Call obsd_init_abi.
9970 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9971 obsd-tdep.c to gdb_target_obs.
9972
9973 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9974
9975 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9976 double float arguments to 16-byte in the argument slots.
9977
9978 2014-02-11 Doug Evans <xdje42@gmail.com>
9979
9980 * configure.ac: Don't crash if pkg-config is not found and guile
9981 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9982 in guile checks.
9983 * configure: Regenerate.
9984
9985 2014-02-11 Yao Qi <yao@codesourcery.com>
9986
9987 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9988 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9989 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9990 * gnu-nat.c (gnu_xfer_memory): Likewise.
9991 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9992 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9993 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9994 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9995
9996 2014-02-11 Yao Qi <yao@codesourcery.com>
9997
9998 * target.h (enum target_xfer_error): Rename to ...
9999 (enum target_xfer_status): ... it. New. All users updated.
10000 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10001 New.
10002 (TARGET_XFER_STATUS_ERROR_P): New macro.
10003 (target_xfer_error_to_string): Remove declaration.
10004 (target_xfer_status_to_string): Declare.
10005 (target_xfer_partial_ftype): Adjust it.
10006 (struct target_ops) <to_xfer_partial>: Return
10007 target_xfer_status. Add argument xfered_len. Update
10008 comments.
10009 * target.c (target_xfer_error_to_string): Rename to ...
10010 (target_xfer_status_to_string): ... it. New. All callers
10011 updated.
10012 (target_read_live_memory): Likewise. Call target_xfer_partial
10013 instead of target_read.
10014 (memory_xfer_live_readonly_partial): Return
10015 target_xfer_status. Add argument xfered_len.
10016 (raw_memory_xfer_partial): Likewise.
10017 (memory_xfer_partial_1): Likewise.
10018 (memory_xfer_partial): Likewise.
10019 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10020 properly. Update debug message.
10021 (default_xfer_partial, current_xfer_partial): Likewise.
10022 (target_write_partial): Likewise.
10023 (target_read_partial): Likewise. All callers updated.
10024 (read_whatever_is_readable): Likewise.
10025 (target_write_with_progress): Likewise.
10026 (target_read_alloc_1): Likewise.
10027
10028 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10029 * auxv.c (procfs_xfer_auxv): Likewise.
10030 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10031 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10032 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10033 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10034 * corefile.c (read_memory): Adjust.
10035 * corelow.c (core_xfer_partial): Likewise.
10036 * ctf.c (ctf_xfer_partial): Likewise.
10037 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10038 updated.
10039 (darwin_xfer_partial): Likewise.
10040 * exec.c (section_table_xfer_memory_partial): Likewise. All
10041 callers updated.
10042 (exec_xfer_partial): Likewise.
10043 * exec.h (section_table_xfer_memory_partial): Update
10044 declaration.
10045 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10046 negative.
10047 (gnu_xfer_partial): Likewise.
10048 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10049 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10050 (ia64_hpux_xfer_solib_got): Likewise.
10051 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10052 type of 'partial_len' to ULONGEST.
10053 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10054 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10055 (linux_nat_xfer_partial): Likewise.
10056 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10057 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10058 * monitor.c (monitor_xfer_memory): Likewise.
10059 (monitor_xfer_partial): Likewise.
10060 * procfs.c (procfs_xfer_partial): Likewise.
10061 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10062 * record-full.c (record_full_xfer_partial): Likewise.
10063 (record_full_core_xfer_partial): Likewise.
10064 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10065 (gdbsim_xfer_partial): Likewise.
10066 * remote.c (remote_write_bytes_aux): Likewise. All callers
10067 updated.
10068 (remote_write_bytes, remote_read_bytes): Likewise. All
10069 callers updated.
10070 (remote_flash_erase): Likewise. All callers updated.
10071 (remote_write_qxfer): Likewise. All callers updated.
10072 (remote_read_qxfer): Likewise. All callers updated.
10073 (remote_xfer_partial): Likewise.
10074 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10075 (rs6000_xfer_shared_libraries): Likewise.
10076 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10077 (sol_thread_xfer_partial): Likewise.
10078 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10079 (sparc_xfer_partial): Likewise.
10080 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10081 updated.
10082 (spu_xfer_partial): Likewise.
10083 * spu-multiarch.c (spu_xfer_partial): Likewise.
10084 * tracepoint.c (tfile_xfer_partial): Likewise.
10085 * windows-nat.c (windows_xfer_memory): Likewise.
10086 (windows_xfer_shared_libraries): Likewise.
10087 (windows_xfer_partial): Likewise.
10088 * valprint.c: Replace 'target_xfer_error' with
10089 'target_xfer_status' in comments.
10090
10091 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10092
10093 Checked in by Joel Brobecker <brobecker@adacore.com>.
10094 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10095
10096 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10097
10098 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10099 function parameters.
10100
10101 2014-02-10 Will Newton <will.newton@linaro.org>
10102
10103 * elfread.c (elf_rel_plt_read): Look for a .got section if
10104 looking up .got.plt fails.
10105 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10106 on address passed to elf_gnu_ifunc_record_cache.
10107 (elf_gnu_ifunc_resolve_addr): Likewise.
10108 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10109
10110 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10111
10112 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10113 (X_RETTURN): New macro.
10114 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10115
10116 * sparc64-tdep.c (sparc64_init_abi): Hook
10117 sparc_in_function_epilogue_p.
10118
10119 2014-02-10 Gary Benson <gbenson@redhat.com>
10120
10121 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10122 Rename name_matcher to symbol_matcher.
10123
10124 2014-02-10 Gary Benson <gbenson@redhat.com>
10125
10126 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10127 Use expand_symtabs_file_matcher_ftype and
10128 expand_symtabs_symbol_matcher_ftype.
10129
10130 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10131
10132 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10133 (struct ada_symbol_cache): New.
10134 (ada_free_symbol_cache): Forward declare.
10135 (struct ada_pspace_data): New.
10136 (ada_pspace_data_handle): New static global.
10137 (get_ada_pspace_data, ada_pspace_data_cleanup)
10138 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10139 (cache_space, cache): Delete, now folded inside struct
10140 ada_pspace_data.
10141 (ada_get_symbol_cache): New function.
10142 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10143 implementation.
10144 (_initialize_ada_language): Remove initialization of cache_space.
10145 Move call to observer_attach_inferior_exit up, grouping it
10146 with the other observer registrations inside this function.
10147 Rename command to be more general. Add call to
10148 register_program_space_data_with_cleanup.
10149
10150 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10151
10152 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10153 ada_new_objfile_observer.
10154 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10155 (_initialize_tasks): Update uses of ada_new_objfile_observer
10156 and ada_tasks_normal_stop_observer.
10157
10158 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10159
10160 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10161 returned by the 'Length attribute to integer.
10162
10163 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10164
10165 * ada-lang.c (_initialize_ada_language): Initialize
10166 cache_space obstack.
10167
10168 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10169
10170 * ada-lang.c (HASH_SIZE): New macro.
10171 (struct cache_entry): New type.
10172 (cache_space, cache): New static globals.
10173 (ada_clear_symbol_cache, find_entry): New functions.
10174 (lookup_cached_symbol, cache_symbol): Implement.
10175 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10176 (_initialize_ada_language): Attach ada_new_objfile_observer
10177 and ada_free_objfile_observer.
10178
10179 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10180
10181 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10182 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10183 struct block * parameter.
10184 (ada_lookup_symbol_list_worker): Constify local variable "block".
10185 Remove cast which is no longer necessary.
10186
10187 2014-02-10 Doug Evans <xdje42@gmail.com>
10188
10189 Add Guile as an extension language.
10190 * NEWS: Mention Guile scripting.
10191 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10192 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10193 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10194 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10195 (CLIBS): Add GUILE_LIBS.
10196 (install-guile): New rule.
10197 (guile.o): New rule.
10198 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10199 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10200 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10201 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10202 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10203 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10204 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10205 * configure.ac: New option --with-guile.
10206 * configure: Regenerate.
10207 * config.in: Regenerate.
10208 * auto-load.c: Remove #include "python/python.h". Add #include
10209 "gdb/section-scripts.h".
10210 (source_section_scripts): Handle Guile scripts.
10211 (_initialize_auto_load): Add name of Guile objfile script to
10212 scripts-directory help text.
10213 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10214 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10215 (struct breakpoint): New member scm_bp_object.
10216 * defs.h (enum command_control_type): New value guile_control.
10217 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10218 "extension.h".
10219 (show_user): Update comment.
10220 (_initialize_cli_cmds): Update help text for "show user". Update help
10221 text for max-user-call-depth.
10222 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10223 "extension.h".
10224 (multi_line_command_p): Add guile_control.
10225 (print_command_lines): Handle guile_control.
10226 (execute_control_command, recurse_read_control_structure): Ditto.
10227 (process_next_line): Recognize "guile" commands.
10228 * disasm.c (gdb_disassemble_info): Make non-static.
10229 * disasm.h: #include "dis-asm.h".
10230 (struct gdbarch): Add forward decl.
10231 (gdb_disassemble_info): Declare.
10232 * extension.c: #include "guile/guile.h".
10233 (extension_languages): Add guile.
10234 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10235 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10236 * gdbtypes.c (get_unsigned_type_max): New function.
10237 (get_signed_type_minmax): New function.
10238 * gdbtypes.h (get_unsigned_type_max): Declare.
10239 (get_signed_type_minmax): Declare.
10240 * guile/README: New file.
10241 * guile/guile-internal.h: New file.
10242 * guile/guile.c: New file.
10243 * guile/guile.h: New file.
10244 * guile/scm-arch.c: New file.
10245 * guile/scm-auto-load.c: New file.
10246 * guile/scm-block.c: New file.
10247 * guile/scm-breakpoint.c: New file.
10248 * guile/scm-disasm.c: New file.
10249 * guile/scm-exception.c: New file.
10250 * guile/scm-frame.c: New file.
10251 * guile/scm-gsmob.c: New file.
10252 * guile/scm-iterator.c: New file.
10253 * guile/scm-lazy-string.c: New file.
10254 * guile/scm-math.c: New file.
10255 * guile/scm-objfile.c: New file.
10256 * guile/scm-ports.c: New file.
10257 * guile/scm-pretty-print.c: New file.
10258 * guile/scm-safe-call.c: New file.
10259 * guile/scm-string.c: New file.
10260 * guile/scm-symbol.c: New file.
10261 * guile/scm-symtab.c: New file.
10262 * guile/scm-type.c: New file.
10263 * guile/scm-utils.c: New file.
10264 * guile/scm-value.c: New file.
10265 * guile/lib/gdb.scm: New file.
10266 * guile/lib/gdb/boot.scm: New file.
10267 * guile/lib/gdb/experimental.scm: New file.
10268 * guile/lib/gdb/init.scm: New file.
10269 * guile/lib/gdb/iterator.scm: New file.
10270 * guile/lib/gdb/printing.scm: New file.
10271 * guile/lib/gdb/types.scm: New file.
10272 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10273 (VPATH): Add $(GUILE_SRCDIR).
10274 (GUILE_DIR): New variable.
10275 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10276 (all): Add stamp-guile dependency.
10277 (stamp-guile): New rule.
10278 (clean-guile, install-guile, uninstall-guile): New rules.
10279 (install-only): Add install-guile dependency.
10280 (uninstall): Add uninstall-guile dependency.
10281 (clean): Add clean-guile dependency.
10282
10283 2014-02-09 Doug Evans <xdje42@gmail.com>
10284
10285 Revert this patch (which I approved, mea culpa).
10286
10287 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10288
10289 * Makefile.in (all-lib): Remove.
10290 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10291
10292 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10293
10294 Fix Python stack corruption.
10295 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10296 gdb_py_longest.
10297
10298 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10299
10300 * Makefile.in (all-lib): Remove.
10301 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10302
10303 2014-02-07 Doug Evans <dje@google.com>
10304
10305 * extension-priv.h (extension_language_script_ops): Add comment.
10306 (extension_language_ops): Add comment.
10307 (active_ext_lang_state): Fix typo in comment.
10308
10309 2014-02-07 Pedro Alves <palves@redhat.com>
10310
10311 PR breakpoints/16292
10312 * infrun.c (handle_signal_stop) <signal arrives while stepping
10313 over a breakpoint>: Switch back to the stepping thread.
10314
10315 2014-02-07 Yao Qi <yao@codesourcery.com>
10316
10317 * target.c (target_xfer_partial): Return zero if LEN is zero.
10318
10319 2014-02-07 Yao Qi <yao@codesourcery.com>
10320
10321 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10322 (ld_so_xfer_auxv): Likewise.
10323 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10324 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10325 * corelow.c (core_xfer_partial): Likewise.
10326 * ctf.c (ctf_xfer_partial): Likewise.
10327 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10328 (darwin_xfer_partial): Likewise.
10329 * exec.c (exec_xfer_partial): Likewise.
10330 * gnu-nat.c (gnu_xfer_partial): Likewise.
10331 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10332 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10333 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10334 * linux-nat.c (linux_xfer_siginfo): Likewise.
10335 (linux_proc_xfer_spu): Likewise.
10336 * procfs.c (procfs_xfer_partial): Likewise.
10337 * record-full.c (record_full_xfer_partial): Likewise.
10338 (record_full_core_xfer_partial): Likewise.
10339 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10340 * remote.c (remote_write_qxfer): Likewise.
10341 (remote_write_qxfer, remote_read_qxfer): Likewise.
10342 (remote_xfer_partial): Likewise.
10343 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10344 (rs6000_xfer_shared_libraries): Likewise.
10345 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10346 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10347 (spu_xfer_partial): Likewise.
10348 * target.c (memory_xfer_partial_1): Likewise.
10349 * tracepoint.c (tfile_xfer_partial): Likewise.
10350 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10351 (windows_xfer_partial): Likewise.
10352
10353 2014-02-07 Yao Qi <yao@codesourcery.com>
10354
10355 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10356 comments.
10357 (core_xfer_shared_libraries_aix): Likewise.
10358 * gdbarch.c, gdbarch.h: Regenerated.
10359 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10360 ULONGEST. Change 'len_avail' type to ULONGEST.
10361 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10362 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10363 declaration.
10364 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10365
10366 2014-02-07 Yao Qi <yao@codesourcery.com>
10367
10368 * corefile.c (memory_error): Get 'exception' from ERR and pass
10369 'exception' to throw_error.
10370
10371 2014-02-06 Doug Evans <xdje42@gmail.com>
10372
10373 * configure.ac (libpython checking): Remove all but python.o from
10374 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10375 * configure: Regenerate.
10376
10377 * Makefile.in (SFILES): Add extension.c.
10378 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10379 (COMMON_OBS): Add extension.o.
10380 * extension.h: New file.
10381 * extension-priv.h: New file.
10382 * extension.c: New file.
10383
10384 * python/python-internal.h: #include "extension.h".
10385 (gdbpy_auto_load_enabled): Declare.
10386 (gdbpy_apply_val_pretty_printer): Declare.
10387 (gdbpy_apply_frame_filter): Declare.
10388 (gdbpy_preserve_values): Declare.
10389 (gdbpy_breakpoint_cond_says_stop): Declare.
10390 (gdbpy_breakpoint_has_cond): Declare.
10391 (void source_python_script_for_objfile): Delete.
10392 * python/python.c: #include "extension-priv.h".
10393 Delete inclusion of "observer.h".
10394 (extension_language_python): Moved here and renamed from
10395 script_language_python in py-auto-load.c.
10396 Redefined to be of type extension_language_defn.
10397 (python_extension_script_ops): New global.
10398 (python_extension_ops): New global.
10399 (struct python_env): New member previous_active.
10400 (restore_python_env): Call restore_active_ext_lang.
10401 (ensure_python_env): Call set_active_ext_lang.
10402 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10403 New arg extlang.
10404 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10405 New arg extlang.
10406 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10407 New arg extlang.
10408 (gdbpy_eval_from_control_command): Renamed from
10409 eval_python_from_control_command, made static. New arg extlang.
10410 (gdbpy_source_script) Renamed from source_python_script, made static.
10411 New arg extlang.
10412 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10413 result to int. New arg extlang.
10414 (gdbpy_source_objfile_script): Renamed from
10415 source_python_script_for_objfile, made static. New arg extlang.
10416 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10417 static. New args extlang, extlang_printers. Change result type to
10418 "void".
10419 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10420 static. New arg extlang. Rename arg printers to extlang_printers
10421 and change type to ext_lang_type_printers *.
10422 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10423 static. Replace argument arg with extlang, extlang_printers.
10424 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10425 (!HAVE_PYTHON, source_python_script): Delete.
10426 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10427 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10428 (!HAVE_PYTHON, start_type_printers): Delete.
10429 (!HAVE_PYTHON, apply_type_printers): Delete.
10430 (!HAVE_PYTHON, free_type_printers): Delete.
10431 (_initialize_python): Delete call to observer_attach_before_prompt.
10432 (finalize_python): Set/restore active extension language.
10433 (gdbpy_finish_initialization) Renamed from
10434 finish_python_initialization, made static. New arg extlang.
10435 (gdbpy_initialized): New function.
10436 * python/python.h: #include "extension.h". Delete #include
10437 "value.h", "mi/mi-cmds.h".
10438 (extension_language_python): Declare.
10439 (GDBPY_AUTO_FILE_NAME): Delete.
10440 (enum py_bt_status): Moved to extension.h and renamed to
10441 ext_lang_bt_status.
10442 (enum frame_filter_flags): Moved to extension.h.
10443 (enum py_frame_args): Moved to extension.h and renamed to
10444 ext_lang_frame_args.
10445 (finish_python_initialization): Delete.
10446 (eval_python_from_control_command): Delete.
10447 (source_python_script): Delete.
10448 (apply_val_pretty_printer): Delete.
10449 (apply_frame_filter): Delete.
10450 (preserve_python_values): Delete.
10451 (gdbpy_script_language_defn): Delete.
10452 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10453 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10454
10455 * auto-load.c: #include "extension.h".
10456 (GDB_AUTO_FILE_NAME): Delete.
10457 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10458 (script_language_gdb): Delete, moved to extension.c and renamed to
10459 extension_language_gdb.
10460 (source_gdb_script_for_objfile): Delete.
10461 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10462 (loaded_script): Change type of language member to
10463 struct extension_language_defn *.
10464 (init_loaded_scripts_info): Initialize
10465 unsupported_script_warning_printed.
10466 (maybe_add_script): Make static. Change type of language arg to
10467 struct extension_language_defn *.
10468 (clear_section_scripts): Reset unsupported_script_warning_printed.
10469 (auto_load_objfile_script_1): Rewrite to use extension language API.
10470 (auto_load_objfile_script): Make public. Remove support-compiled-in
10471 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10472 (source_section_scripts): Rewrite to use extension language API.
10473 (load_auto_scripts_for_objfile): Rewrite to use
10474 auto_load_scripts_for_objfile.
10475 (collect_matching_scripts_data): Change type of language member to
10476 struct extension_language_defn *.
10477 (auto_load_info_scripts): Change type of language arg to
10478 struct extension_language_defn *.
10479 (unsupported_script_warning_print): New function.
10480 (script_not_found_warning_print): Make static.
10481 (_initialize_auto_load): Rewrite construction of scripts-directory
10482 help.
10483 * auto-load.h (struct objfile): Add forward decl.
10484 (struct script_language): Delete.
10485 (struct auto_load_pspace_info): Add forward decl.
10486 (struct extension_language_defn): Add forward decl.
10487 (maybe_add_script): Delete.
10488 (auto_load_objfile_script): Declare.
10489 (script_not_found_warning_print): Delete.
10490 (auto_load_info_scripts): Update prototype.
10491 (auto_load_gdb_scripts_enabled): Declare.
10492 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10493 auto_load_python_scripts_enabled and made public.
10494 (script_language_python): Delete, moved to python.c.
10495 (gdbpy_script_language_defn): Delete.
10496 (info_auto_load_python_scripts): Update to use
10497 extension_language_python.
10498
10499 * breakpoint.c (condition_command): Replace call to
10500 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10501 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10502 with call to breakpoint_ext_lang_cond_says_stop.
10503 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10504 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10505 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10506 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10507 New arg slang.
10508 (local_setattro): Print name of extension language with existing
10509 stop condition.
10510
10511 * valprint.c (val_print, value_print): Update to call
10512 apply_ext_lang_val_pretty_printer.
10513 * cp-valprint.c (cp_print_value): Update call to
10514 apply_ext_lang_val_pretty_printer.
10515 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10516 (gdbpy_apply_val_pretty_printer): Renamed from
10517 apply_val_pretty_printer. New arg extlang.
10518 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10519
10520 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10521 extension language API.
10522 * cli/cli-script.c (execute_control_command): Update to call
10523 eval_ext_lang_from_control_command.
10524
10525 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10526 enum ext_lang_bt_status values. Update call to
10527 apply_ext_lang_frame_filter.
10528 (mi_cmd_stack_list_locals): Ditto.
10529 (mi_cmd_stack_list_args): Ditto.
10530 (mi_cmd_stack_list_variables): Ditto.
10531 * mi/mi-main.c: Delete #include "python/python-internal.h".
10532 Add #include "extension.h".
10533 (mi_cmd_list_features): Replace reference to python internal variable
10534 gdb_python_initialized with call to ext_lang_initialized_p.
10535
10536 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10537 Update to use enum ext_lang_frame_args. Update to call
10538 apply_ext_lang_frame_filter.
10539 * python/py-framefilter.c (extract_sym): Update to use enum
10540 ext_lang_bt_status.
10541 (extract_value, py_print_type, py_print_value): Ditto.
10542 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10543 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10544 (py_print_frame): Ditto.
10545 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10546 New arg extlang. Update to use enum ext_lang_bt_status.
10547
10548 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10549 finish_python_initialization. Replace with call to
10550 finish_ext_lang_initialization.
10551
10552 * typeprint.c (do_free_global_table): Update to call
10553 free_ext_lang_type_printers.
10554 (create_global_typedef_table): Update to call
10555 start_ext_lang_type_printers.
10556 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10557 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10558 (type_print_options): Change type of global_printers from "void *"
10559 to "struct ext_lang_type_printers *".
10560
10561 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10562 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10563 (gdbpy_preserve_values): Renamed from preserve_python_values.
10564 New arg extlang.
10565 (!HAVE_PYTHON, preserve_python_values): Delete.
10566
10567 * utils.c (quit_flag): Delete, moved to extension.c.
10568 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10569 extension.c.
10570
10571 * eval.c: Delete #include "python/python.h".
10572 * main.c: Delete #include "python/python.h".
10573
10574 * defs.h: Update comment.
10575
10576 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10577
10578 GDB 7.7 released.
10579
10580 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10581
10582 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10583 defined.
10584
10585 2014-02-05 Yao Qi <yao@codesourcery.com>
10586
10587 * remote.c (remote_pass_signals): Remove local 'buf' and use
10588 rs->buf.
10589 (remote_program_signals): Likewise.
10590
10591 2014-02-05 Yao Qi <yao@codesourcery.com>
10592
10593 * ctf.c: Include "inferior.h" and "gdbthread.h".
10594 (CTF_PID): A new macro.
10595 (ctf_open): Call inferior_appeared and add_thread_silent.
10596 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10597 (ctf_thread_alive): New function.
10598 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10599
10600 2014-02-05 Yao Qi <yao@codesourcery.com>
10601
10602 Revert this patch:
10603
10604 2013-05-24 Yao Qi <yao@codesourcery.com>
10605
10606 * tracepoint.c (TFILE_PID): Remove.
10607 (tfile_open): Don't add thread and inferior.
10608 (tfile_close): Don't set 'inferior_ptid'. Don't call
10609 exit_inferior_silent.
10610 (tfile_thread_alive): Remove.
10611 (init_tfile_ops): Don't set field 'to_thread_alive' of
10612 tfile_ops.
10613
10614 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10615
10616 * remote.c (remote_start_remote): Call remote_check_symbols even
10617 if only symbol-file (not file) has been given.
10618
10619 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10620
10621 * gdbarch.sh (skip_entrypoint): New callback.
10622 * gdbarch.c, gdbarch.h: Regenerate.
10623 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10624 * infrun.c (fill_in_stop_func): Likewise.
10625 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10626 (ppc_elfv2_elf_make_msymbol_special): New function.
10627 (ppc_elfv2_skip_entrypoint): Likewise.
10628 (ppc_linux_init_abi): Install them for ELFv2.
10629
10630 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10631
10632 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10633 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10634 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10635 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10636 structures returned in GPRs.
10637
10638 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10639
10640 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10641 offset to the stack parameter list for the ELFv2 ABI.
10642
10643 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10644
10645 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10646 set_gdbarch_convert_from_func_ptr_addr and
10647 set_gdbarch_elf_make_msymbol_special for ELFv1.
10648 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10649 function descriptors on ELFv1.
10650 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10651 set up r12 at function entry.
10652
10653 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10654
10655 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10656 (struct gdbarch_tdep): New member elf_abi.
10657
10658 * rs6000-tdep.c: Include "elf/ppc64.h".
10659 (rs6000_gdbarch_init): Detect ELF ABI version.
10660
10661 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10662
10663 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10664 within a register pair holding a DFP 128-bit value on little-endian.
10665 (ppc64_sysv_abi_return_value_base): Likewise.
10666 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10667 (dfp_pseudo_register_write): Likewise.
10668
10669 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10670
10671 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10672 offset on little-endian when passing _Decimal32.
10673 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10674
10675 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10676
10677 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10678 of the overlapped FP register within the VSX register on little-
10679 endian platforms.
10680 (efpr_pseudo_register_write): Likewise.
10681
10682 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10683
10684 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10685 offset on little-endian when passing small structures.
10686
10687 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10688
10689 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10690 (struct ppc64_sysv_argpos): New data structure.
10691 (ppc64_sysv_abi_push_float): Remove.
10692 (ppc64_sysv_abi_push_val): New function.
10693 (ppc64_sysv_abi_push_integer): Likewise.
10694 (ppc64_sysv_abi_push_freg): Likewise.
10695 (ppc64_sysv_abi_push_vreg): Likewise.
10696 (ppc64_sysv_abi_push_param): Likewise.
10697 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10698 (ppc64_sysv_abi_return_value_base): New function.
10699 (ppc64_sysv_abi_return_value): Refactor to use it.
10700
10701 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10702
10703 * NEWS: Document new target powerpc64le-*-linux*.
10704
10705 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10706
10707 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10708 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10709 core dumps.
10710 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10711 register set used in ELF core dumps. Add floating-point register set.
10712
10713 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10714
10715 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10716 dwarf2_to_gdb[] table using symbolic constants. Adjust
10717 penultimate entry from number representing the PC register
10718 to symbolic constant representing the MDR register. Add
10719 constant for the PC register to the end of the table.
10720
10721 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10722
10723 * bsd-kvm.c: Include <sys/param.h>
10724
10725 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10726
10727 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10728
10729 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10730
10731 * ada-lang.h (clear_ada_sym_cache): Delete.
10732
10733 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10734
10735 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10736
10737 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10738
10739 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10740 the sigreturn register save area only if the syscall is
10741 sigreturn.
10742
10743 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10744
10745 * valops.c (value_slice): Minor reformatting.
10746
10747 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10748
10749 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10750
10751 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10752
10753 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10754 New static globals.
10755 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10756 (ada_ignore_descriptive_types_p): New static global.
10757 (find_parallel_type_by_descriptive_type): Return immediately
10758 if ada_ignore_descriptive_types_p is set.
10759 (_initialize_ada_language): Register new commands "maintenance
10760 set ada", "maintenance show ada", "maintenance set ada
10761 ignore-descriptive-types" and "maintenance show ada
10762 ignore-descriptive-types".
10763 * NEWS: Add entry for new "maint ada set/show
10764 ignore-descriptive-types" commands.
10765
10766 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10767
10768 * record-btrace.c (record_btrace_close): Call btrace_teardown
10769 for all threads.
10770
10771 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10772
10773 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10774 "ui-out.h".
10775
10776 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10777
10778 * ada-typeprint (type_is_full_subrange_of_target_type):
10779 New function.
10780 (print_range): Add parameter bounds_prefered_p. If not set,
10781 try printing range types using the name of their base type.
10782 (print_range_type): Add parameter bounds_prefered_p.
10783 Use it in call to print_range.
10784 (print_array_type, ada_print_type): Update calls to print_range
10785 and print_range_type.
10786
10787 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10788
10789 * ada-typeprint.c (print_array_type, print_choices, print_range)
10790 (print_range_bound, print_dynamic_range_bound, print_range_type):
10791 Remove declaration.
10792
10793 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10794
10795 * ada-typeprint.c (print_range): Add missing empty line
10796 after local declaration.
10797
10798 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10799
10800 * ada-valprint.c (print_optional_low_bound): Get index_type's
10801 target type for as long as it is a TYPE_CODE_RANGE.
10802
10803 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10804
10805 * procfs.c (procfs_make_note_section): Remove assertion and
10806 associated comment.
10807
10808 2014-01-24 Yao Qi <yao@codesourcery.com>
10809
10810 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10811 * corelow.c (get_core_siginfo): Likewise.
10812
10813 2014-01-24 Yao Qi <yao@codesourcery.com>
10814
10815 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10816 ULONGEST. Don't check 'len' is negative.
10817 (remote_write_bytes): Change type of 'len' to ULONGEST.
10818
10819 2014-01-23 Tom Tromey <tromey@redhat.com>
10820
10821 PR python/16485:
10822 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10823 Handle exception from frame.block.
10824 (FrameVars.fetch_frame_locals): Likewise.
10825
10826 2014-01-23 Tom Tromey <tromey@redhat.com>
10827
10828 PR python/16487:
10829 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10830 on a NULL pointer. Move "goto error" to correct place.
10831
10832 2014-01-23 Tom Tromey <tromey@redhat.com>
10833
10834 PR python/16491:
10835 * python/py-framefilter.c (apply_frame_filter): Call
10836 ensure_python_env after computing gdbarch.
10837
10838 2014-01-23 Yao Qi <yao@codesourcery.com>
10839
10840 * target.c (raw_memory_xfer_partial): Change argument type
10841 from void * to gdb_byte *.
10842 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10843
10844 2014-01-22 Doug Evans <dje@google.com>
10845
10846 New gdbserver option --debug-format=timestamp.
10847 * NEWS: Mention it.
10848
10849 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10850
10851 * syscalls/s390x-linux.xml: New file.
10852 * syscalls/s390-linux.xml: New file.
10853 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10854 (XML_SYSCALL_FILENAME_S390X): Likewise.
10855 (op_svc): New enum value for SVC opcode.
10856 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10857 (s390_linux_get_syscall_number): New function.
10858 (s390_gdbarch_init): Register '*get_syscall_number' and the
10859 syscall xml file name.
10860 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10861 "s390-linux.xml" and "s390x-linux.xml".
10862 * NEWS: Announce new feature.
10863
10864 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10865
10866 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10867
10868 2014-01-22 Pedro Alves <palves@redhat.com>
10869
10870 * xtensa-config.c: Include defs.h.
10871
10872 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10873
10874 * common/common-utils.h: Add "ARI:" comment beside __func__
10875 reference.
10876
10877 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10878
10879 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10880 documentation a bit.
10881
10882 2014-01-21 Roland McGrath <mcgrathr@google.com>
10883
10884 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10885 * configure: Regenerate.
10886 * aclocal.m4: Regenerate.
10887 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10888 New substituted variables.
10889 (install-strip): New target.
10890 (INSTALL_SCRIPT): New substituted variable.
10891 (FLAGS_TO_PASS): Add it.
10892 (install-only): Use $(INSTALL_SCRIPT) rather than
10893 $(INSTALL_PROGRAM) for gcore.
10894
10895 2014-01-20 Tom Tromey <tromey@redhat.com>
10896
10897 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10898 together.
10899
10900 2014-01-20 Tom Tromey <tromey@redhat.com>
10901
10902 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10903 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10904 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10905 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10906 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10907 (struct cmd_list_element) <flags>: Remove.
10908 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10909 doc_allocated>: New fields.
10910 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10911 bitfields.
10912 * maint.c (maintenance_do_deprecate): Update.
10913 * top.c (execute_command): Update.
10914
10915 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10916
10917 * xtensa-linux-nat.c: Include asm/ptrace.h.
10918
10919 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10920
10921 * Makefile.in (SFILES): Add d-support.c.
10922 (COMMON_OBS): Add d-support.o.
10923 * d-lang.h (d_parse_symbol): Add comment, now defined in
10924 d-support.c.
10925 * d-lang.c (parse_call_convention)
10926 (parse_attributes, parse_function_types)
10927 (parse_function_args, parse_type, parse_identifier)
10928 (call_convention_p, d_parse_symbol): Move functions to ...
10929 * d-support.c: ... New file.
10930
10931 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10932
10933 * d-lang.h (d_parse_symbol): Add declaration.
10934 * d-lang.c (extract_identifiers)
10935 (extract_type_info): Remove functions.
10936 (parse_call_convention, parse_attributes)
10937 (parse_function_types, parse_function_args)
10938 (parse_type, parse_identifier, call_convention_p)
10939 (d_parse_symbol): New functions.
10940 (d_demangle): Use d_parse_symbol to demangle D symbols.
10941
10942 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10943
10944 * d-lang.h (struct builtin_d_type): New data type.
10945 (builtin_d_type): Add declaration.
10946 * d-lang.c (d_language_arch_info, build_d_types)
10947 (builtin_d_type): New functions.
10948 (enum d_primitive_types): New data type.
10949 (d_language_defn): Change c_language_arch_info to
10950 d_language_arch_info.
10951 (d_type_data): New static variable.
10952 (_initialize_d_language): Initialize d_type_data.
10953
10954 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10955
10956 * d-lang.h (d_main_name): Add declaration.
10957 * d-lang.c (d_main_name): New function.
10958 * symtab.c (find_main_name): Add call to d_main_name.
10959
10960 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10961
10962 * d-lang.c (d_language_defn): Change macro_expansion_c to
10963 macro_expansion_no.
10964
10965 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10966
10967 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10968
10969 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10970
10971 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10972 gdb_exception" declaration.
10973 * remote.c (getpkt_or_notif_sane): Likewise.
10974
10975 2014-01-17 Doug Evans <dje@google.com>
10976
10977 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10978 function, contents of dirnames_to_char_ptr_vec_append moved here.
10979 (delim_string_to_char_ptr_vec): New function.
10980 (dirnames_to_char_ptr_vec_append): Rewrite.
10981 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10982
10983 2014-01-17 Doug Evans <dje@google.com>
10984
10985 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10986 and moved here ...
10987 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10988 #include "common-utils.h".
10989 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10990 * common/vec.h (VEC_ASSERT_PASS): Update.
10991 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10992 (MACH_CHECK_ERROR): Update.
10993
10994 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10995
10996 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10997 comments.
10998 * gdbarch.h: Regenerate.
10999
11000 2014-01-16 Tom Tromey <tromey@redhat.com>
11001
11002 * value.c (struct value) <regnum>: Move earlier.
11003
11004 2014-01-16 Tom Tromey <tromey@redhat.com>
11005
11006 * remote.c (extended_remote_create_inferior): Rename from
11007 extended_remote_create_inferior_1. Add "ops" argument. Remove
11008 old implementation.
11009
11010 2014-01-16 Pedro Alves <palves@redhat.com>
11011
11012 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11013 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11014 the backchain.
11015
11016 2014-01-16 Doug Evans <dje@google.com>
11017
11018 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11019
11020 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11021
11022 * btrace.h (btrace_thread_flag): New.
11023 (struct btrace_thread_info) <flags>: New.
11024 * record-btrace.c (record_btrace_resume_thread)
11025 (record_btrace_find_thread_to_move, btrace_step_no_history)
11026 (btrace_step_stopped, record_btrace_start_replaying)
11027 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11028 (record_btrace_find_resume_thread): New.
11029 (record_btrace_resume, record_btrace_wait): Extend.
11030 (record_btrace_can_execute_reverse): New.
11031 (record_btrace_open): Fail in non-stop mode.
11032 (record_btrace_set_replay): Split into this, ...
11033 (record_btrace_stop_replaying): ... this, ...
11034 (record_btrace_clear_histories): ... and this.
11035 (init_record_btrace_ops): Init to_can_execute_reverse.
11036 * NEWS: Announce it.
11037
11038 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11039
11040 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11041 (forward_target_decr_pc_after_break)
11042 (target_decr_pc_after_break): New.
11043 * target.c (forward_target_decr_pc_after_break)
11044 (target_decr_pc_after_break): New.
11045 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11046 instead of gdbarch_decr_pc_after_break.
11047 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11048 instead of gdbarch_decr_pc_after_break.
11049 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11050 instead of gdbarch_decr_pc_after_break.
11051 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11052 instead of gdbarch_decr_pc_after_break.
11053 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11054 instead of gdbarch_decr_pc_after_break.
11055 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11056 instead of gdbarch_decr_pc_after_break.
11057
11058 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11059
11060 * btrace.c: Include regcache.h.
11061 (btrace_add_pc): New.
11062 (btrace_enable): Call btrace_add_pc.
11063 (btrace_is_empty): New.
11064 * btrace.h (btrace_is_empty): New.
11065 * record-btrace.c (require_btrace, record_btrace_info): Call
11066 btrace_is_empty.
11067
11068 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11069
11070 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11071 Support delta reads.
11072 (linux_disable_btrace): Change return type.
11073 * common/linux-btrace.h (linux_read_btrace): Change parameters
11074 and return type to allow error reporting. Update users.
11075 (linux_disable_btrace): Change return type. Update users.
11076 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11077 New.
11078 (btrace_error): New.
11079 (btrace_block) <begin>: Comment on BEGIN == 0.
11080 * btrace.c (btrace_compute_ftrace): Start from the end of
11081 the current trace.
11082 (btrace_stitch_trace, btrace_clear_history): New.
11083 (btrace_fetch): Read delta trace, return if replaying.
11084 (btrace_clear): Move clear history code to btrace_clear_history.
11085 (parse_xml_btrace): Throw an error if parsing failed.
11086 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11087 and return type to allow error reporting.
11088 (target_read_btrace): Change parameters and return type to allow
11089 error reporting.
11090 * target.c (target_read_btrace): Update.
11091 * remote.c (remote_read_btrace): Support delta reads. Pass
11092 errors on.
11093 * NEWS: Announce it.
11094
11095 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11096
11097 * record.h (record_btrace_frame_unwind)
11098 (record_btrace_tailcall_frame_unwind): New declarations.
11099 * dwarf2-frame: Include record.h
11100 (dwarf2_frame_cfa): Throw an error for btrace frames.
11101 * record-btrace.c: Include hashtab.h.
11102 (btrace_get_bfun_name): New.
11103 (btrace_call_history): Call btrace_get_bfun_name.
11104 (struct btrace_frame_cache): New.
11105 (bfcache): New.
11106 (bfcache_hash, bfcache_eq, bfcache_new): New.
11107 (btrace_get_frame_function): New.
11108 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11109 (record_btrace_frame_this_id): Compute own id.
11110 (record_btrace_frame_prev_register): Provide PC, throw_error
11111 for all other registers.
11112 (record_btrace_frame_sniffer): Detect btrace frames.
11113 (record_btrace_tailcall_frame_sniffer): New.
11114 (record_btrace_frame_dealloc_cache): New.
11115 (record_btrace_frame_unwind): Add new functions.
11116 (record_btrace_tailcall_frame_unwind): New.
11117 (_initialize_record_btrace): Allocate cache.
11118 * btrace.c (btrace_clear): Call reinit_frame_cache.
11119 * NEWS: Announce it.
11120
11121 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11122
11123 * record-btrace.c (record_btrace_set_replay)
11124 (record_btrace_goto_begin, record_btrace_goto_end)
11125 (record_btrace_goto): New.
11126 (init_record_btrace_ops): Initialize them.
11127 * NEWS: Announce it.
11128
11129 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11130
11131 * record-btrace.c (record_btrace_find_new_threads)
11132 (record_btrace_thread_alive): New.
11133 (init_record_btrace_ops): Initialize to_find_new_threads and
11134 to_thread_alive.
11135
11136 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11137
11138 * record-btrace.c (record_btrace_resume): New.
11139 (record_btrace_wait): New.
11140 (init_record_btrace_ops): Initialize to_wait and to_resume.
11141
11142 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11143
11144 * record-btrace.c (record_btrace_xfer_partial)
11145 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11146 (record_btrace_allow_memory_access): New.
11147 (init_record_btrace_ops): Initialize new methods.
11148 * target.c (raw_memory_xfer_partial): Bail out if target reports
11149 that this memory is not available.
11150
11151 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11152
11153 * target.h (target_ops) <to_insert_breakpoint>
11154 <to_remove_breakpoint>: Add target_ops parameter.
11155 (forward_target_insert_breakpoint): New.
11156 (forward_target_remove_breakpoint): New.
11157 (memory_remove_breakpoint, memory_insert_breakpoint):
11158 Add target_ops parameter.
11159 * target.c (target_insert_breakpoint): Split into this and ...
11160 (forward_target_insert_breakpoint): ... this.
11161 (target_remove_breakpoint): Split into this and ...
11162 (forward_target_remove_breakpoint): ... this.
11163 (debug_to_insert_breakpoint): Add target_ops parameter.
11164 Call forward_target_insert_breakpoint.
11165 (debug_to_remove_breakpoint): Add target_ops parameter.
11166 Call forward_target_remove_breakpoint.
11167 (update_current_target): Do not inherit or default to_insert_breakpoint
11168 and to_remove_breakpoint.
11169 * corelow.c (ignore): Add target_ops parameter.
11170 * exec.c (ignore): Add target_ops parameter.
11171 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11172 Add target_ops parameter.
11173 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11174 Add target_ops parameter.
11175 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11176 Add target_ops parameter.
11177 * record-full.c (record_full_beneath_to_insert_breakpoint)
11178 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11179 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11180 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11181 (record_full_core_remove_breakpoint): Add target_ops parameter.
11182 Update users.
11183 (record_full_beneath_to_insert_breakpoint_ops)
11184 (record_full_beneath_to_remove_breakpoint_ops)
11185 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11186 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11187 tmp_to_remove_breakpoint_ops,
11188 record_full_beneath_to_insert_breakpoint_ops, and
11189 record_full_beneath_to_remove_breakpoint_ops.
11190 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11191 (m32r_remove_breakpoint): Add target_ops parameter.
11192 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11193 Add target_ops parameter.
11194 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11195 Add target_ops parameter.
11196
11197 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11198 Markus Metzger <markus.t.metzger@intel.com>
11199
11200 * record-btrace.c: Include frame-unwind.h.
11201 (record_btrace_frame_unwind_stop_reason)
11202 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11203 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11204 New.
11205 (init_record_btrace_ops): Install it.
11206
11207 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11208
11209 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11210 get_prev_frame_1.
11211
11212 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11213
11214 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11215 earlier.
11216
11217 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11218
11219 * frame-unwind.c: Include target.h.
11220 (frame_unwind_try_unwinder): New function with code from ...
11221 (frame_unwind_find_by_frame): ... here. New variable
11222 unwinder_from_target, call also target_get_unwinder)
11223 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11224 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11225 * target.h (struct target_ops): New fields to_get_unwinder and
11226 to_get_tailcall_unwinder.
11227 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11228
11229 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11230
11231 * record-btrace.c (record_btrace_fetch_registers)
11232 (record_btrace_store_registers)
11233 (record_btrace_to_prepare_to_store): New.
11234 (init_record_btrace_ops): Add the above.
11235
11236 2014-01-16 Tom Tromey <tromey@redhat.com>
11237
11238 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11239 * target.h (struct target_ops) <to_prepare_to_store>: Add
11240 argument.
11241 (target_prepare_to_store): Add argument.
11242 * target.c (debug_to_prepare_to_store): Add argument.
11243 (update_current_target): Update.
11244 * remote.c (remote_prepare_to_store): Add 'self' argument.
11245 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11246 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11247 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11248 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11249 argument.
11250 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11251 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11252 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11253 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11254 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11255
11256 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11257
11258 * btrace.h (replay) <replay>: New.
11259 (btrace_is_replaying): New.
11260 * btrace.c (btrace_clear): Free replay iterator.
11261 (btrace_is_replaying): New.
11262 * record-btrace.c (record_btrace_is_replaying): New.
11263 (record_btrace_info): Print insn number if replaying.
11264 (record_btrace_insn_history): Start at replay position.
11265 (record_btrace_call_history): Start at replay position.
11266 (init_record_btrace_ops): Init to_record_is_replaying.
11267
11268 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11269
11270 * record-btrace.c (record_btrace_insn_history_range): Include
11271 end.
11272 (record_btrace_insn_history_from): Adjust range.
11273 (record_btrace_call_history_range): Include
11274 end.
11275 (record_btrace_call_history_from): Adjust range.
11276 * NEWS: Announce changes.
11277
11278 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11279
11280 * record.h (enum record_print_flag)
11281 <record_print_indent_calls>: New.
11282 * record.c (get_call_history_modifiers): Recognize /c modifier.
11283 (_initialize_record): Document /c modifier.
11284 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11285 Reorder fields. Optionally indent the function name. Update
11286 all users.
11287 * NEWS: Announce changes.
11288
11289 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11290
11291 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11292
11293 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11294
11295 * btrace.c (ftrace_new_function): Start counting at one.
11296 * record-btrace.c (record_btrace_info): Adjust number of calls
11297 and insns.
11298 * NEWS: Announce it.
11299
11300 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11301
11302 * record-btrace.c (btrace_call_history_insn_range): Print
11303 insn range as [begin, end].
11304
11305 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11306
11307 * btrace.h (struct btrace_func_link): New.
11308 (enum btrace_function_flag): New.
11309 (struct btrace_inst): Rename to ...
11310 (struct btrace_insn): ...this. Update all users.
11311 (struct btrace_func) <ibegin, iend>: Remove.
11312 (struct btrace_func_link): New.
11313 (struct btrace_func): Rename to ...
11314 (struct btrace_function): ...this. Update all users.
11315 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11316 (number, level, flags>: New.
11317 (struct btrace_insn_iterator): Rename to ...
11318 (struct btrace_insn_history): ...this.
11319 Update all users.
11320 (struct btrace_insn_iterator, btrace_call_iterator): New.
11321 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11322 (struct btrace_target_info) <begin, end, level>
11323 <insn_history, call_history>: New.
11324 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11325 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11326 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11327 (btrace_call_number, btrace_call_begin, btrace_call_end)
11328 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11329 (btrace_find_function_by_number, btrace_set_insn_history)
11330 (btrace_set_call_history): New.
11331 * btrace.c (btrace_init_insn_iterator)
11332 (btrace_init_func_iterator, compute_itrace): Remove.
11333 (ftrace_print_function_name, ftrace_print_filename)
11334 (ftrace_skip_file): Change
11335 parameter to const.
11336 (ftrace_init_func): Remove.
11337 (ftrace_debug): Use new btrace_function fields.
11338 (ftrace_function_switched): Also consider gaining and
11339 losing symbol information).
11340 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11341 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11342 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11343 New.
11344 (ftrace_new_function): Move. Remove debug print.
11345 (ftrace_update_lines, ftrace_update_insns): New.
11346 (ftrace_update_function): Check for call, ret, and jump.
11347 (compute_ftrace): Renamed to ...
11348 (btrace_compute_ftrace): ...this. Rewritten to compute call
11349 stack.
11350 (btrace_fetch, btrace_clear): Updated.
11351 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11352 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11353 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11354 (btrace_call_number, btrace_call_begin, btrace_call_end)
11355 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11356 (btrace_find_function_by_number, btrace_set_insn_history)
11357 (btrace_set_call_history): New.
11358 * record-btrace.c (require_btrace): Use new btrace thread
11359 info fields.
11360 (record_btrace_info, btrace_insn_history)
11361 (record_btrace_insn_history, record_btrace_insn_history_range):
11362 Use new btrace thread info fields and new iterator.
11363 (btrace_func_history_src_line): Rename to ...
11364 (btrace_call_history_src_line): ...this. Use new btrace
11365 thread info fields.
11366 (btrace_func_history): Rename to ...
11367 (btrace_call_history): ...this. Use new btrace thread info
11368 fields and new iterator.
11369 (record_btrace_call_history, record_btrace_call_history_range):
11370 Use new btrace thread info fields and new iterator.
11371
11372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11373
11374 * frame.h (frame_id_build_unavailable_stack_special): New.
11375 * frame.c (frame_id_build_unavailable_stack_special): New.
11376
11377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11378
11379 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11380 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11381 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11382 to gdbarch.
11383 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11384 (i386_insn_is_jump, i386_jmp_p): New.
11385 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11386 insn_is_jump to gdbarch.
11387 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11388 * gdbarch.h: Regenerated.
11389 * gdbarch.c: Regenerated.
11390 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11391 (default_insn_is_jump): New.
11392 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11393 (default_insn_is_jump): New.
11394
11395 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11396
11397 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11398 Change to ...
11399 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11400 (btrace_read_type) <btrace_read_new>: Change to ...
11401 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11402
11403 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11404
11405 * common/linux-btrace.c (linux_read_btrace): Free trace from
11406 previous iteration.
11407
11408 2014-01-15 Doug Evans <dje@google.com>
11409
11410 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11411 uint32_t.
11412
11413 2014-01-15 Tom Tromey <tromey@redhat.com>
11414
11415 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11416 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11417 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11418 (set_objfile_main_name): New function.
11419 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11420 language_of_main>: New fields.
11421 (set_objfile_main_name): Declare.
11422 * symtab.c (find_main_name): Loop over objfiles to find the main
11423 name and language.
11424 (set_main_name): Now static.
11425 (get_main_info): Add comment.
11426 * symtab.h (set_main_name): Don't declare.
11427
11428 2014-01-15 Tom Tromey <tromey@redhat.com>
11429
11430 * symtab.c (main_progspace_key): New global.
11431 (struct main_info): New.
11432 (name_of_main, language_of_main): Remove.
11433 (get_main_info, main_info_cleanup): New function.
11434 (set_main_name, main_name, main_language): Use get_main_info.
11435 (_initialize_symtab): Initialize main_progspace_key.
11436
11437 2014-01-15 Tom Tromey <tromey@redhat.com>
11438
11439 * dbxread.c (process_one_symbol): Update.
11440 * dwarf2read.c (read_partial_die): Update.
11441 * symfile.c (set_initial_language): Call main_language.
11442 * symtab.c (language_of_main): Now static.
11443 (set_main_name): Add 'lang' parameter.
11444 (find_main_name): Update.
11445 (main_language): New function.
11446 (symtab_observer_executable_changed): Update.
11447 * symtab.h (set_main_name): Update.
11448 (language_of_main): Remove.
11449 (main_language): Declare.
11450
11451 2014-01-15 Tom Tromey <tromey@redhat.com>
11452
11453 * symfile.c (init_entry_point_info): Use new "initialized" field.
11454 Update.
11455 * objfiles.h (struct entry_point) <initialized>: New field.
11456 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11457 (struct objfile) <ei>: ...here. Remove.
11458 * objfiles.c (entry_point_address_query): Update.
11459
11460 2014-01-15 Tom Tromey <tromey@redhat.com>
11461
11462 * objfiles.c (entry_point_address_query): Relocate entry point
11463 address.
11464 (objfile_relocate1): Do not relocate entry point address.
11465 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11466 <the_bfd_section_index>: New field.
11467 * symfile.c (init_entry_point_info): Find the entry point's
11468 section.
11469
11470 2014-01-15 Tom Tromey <tromey@redhat.com>
11471
11472 * solib-frv.c (enable_break): Use entry_point_address_query.
11473
11474 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11475
11476 * NEWS: Add note on improved process record-replay on
11477 arm*-linux* targets.
11478
11479 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11480
11481 * arm-tdep.c (enum arm_record_result): New enum.
11482 (arm_record_unsupported_insn): New function.
11483 (arm_record_coproc_data_proc): Removed.
11484 (thumb2_record_ld_st_multiple): New function.
11485 (thumb2_record_ld_st_dual_ex_tbb): New function.
11486 (thumb2_record_data_proc_sreg_mimm): New function.
11487 (thumb2_record_ps_dest_generic): New function.
11488 (thumb2_record_branch_misc_cntrl): New function.
11489 (thumb2_record_str_single_data): New function.
11490 (thumb2_record_ld_mem_hints): New function.
11491 (thumb2_record_ld_word): New function.
11492 (thumb2_record_lmul_lmla_div): New function.
11493 (thumb2_record_decode_insn_handler): New function.
11494 (decode_insn): Add thumb32 instruction handlers.
11495
11496 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11497
11498 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11499 (struct arm_linux_record_tdep): Declare.
11500 (arm_canonicalize_syscall): New function.
11501 (arm_all_but_pc_registers_record): New function.
11502 (arm_linux_syscall_record): New function.
11503 (arm_linux_init_abi): Add syscall recording constructs.
11504 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11505 decoding. (arm_record_coproc_data_proc): Update arm syscall
11506 decoding.
11507 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11508 <arm_syscall_record>: New field.
11509 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11510 gdb_target_obs.
11511
11512 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11513
11514 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11515 register for push instruction recording.
11516
11517 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11518
11519 * arm-tdep.c (thumb_record_misc): Update to correct logical
11520 error while recording ldm, ldmia and pop instructions.
11521
11522 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11523
11524 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11525
11526 2014-01-15 Pedro Alves <palves@redhat.com>
11527
11528 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11529 (go32_resume, go32_fetch_registers, store_register)
11530 (go32_store_registers, go32_prepare_to_store)
11531 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11532 (go32_create_inferior, go32_can_run, go32_terminal_init)
11533 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11534 declarations.
11535
11536 2014-01-15 Tom Tromey <tromey@redhat.com>
11537
11538 * target.h (async_callback_ftype): New typedef.
11539 (struct target_ops) <to_async>: Use it.
11540
11541 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11542
11543 * python/py-value.c (get_field_type): Remove unnecessary curly
11544 braces for single-statement if block.
11545
11546 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11547
11548 * python/py-type.c (convert_field): Add missing empty line
11549 after declarations.
11550
11551 2014-01-14 Doug Evans <dje@google.com>
11552
11553 * symfile.h (expand_symtabs_matching): Renamed from
11554 expand_partial_symbol_names. Update prototype.
11555 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11556 * symfile.c (expand_symtabs_matching): Renamed from
11557 expand_partial_symbol_names. New args file_matcher, kind.
11558 Rename arg fun to symbol_matcher.
11559 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11560 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11561 ada_expand_partial_symbol_name.
11562 (ada_make_symbol_completion_list): Update to call
11563 expand_symtabs_matching.
11564 (ada_add_global_exceptions): Call expand_symtabs_matching.
11565 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11566 call map_symbol_filenames.
11567 * symtab.c (sources_info): Update to call map_symbol_filenames.
11568 (search_symbols): Call expand_symtabs_matching.
11569 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11570 (default_make_symbol_completion_list_break_on): Update to call
11571 expand_symtabs_matching.
11572 (make_source_files_completion_list): Update to call
11573 map_symbol_filenames.
11574
11575 2014-01-14 Doug Evans <dje@google.com>
11576
11577 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11578 (expand_symtabs_symbol_matcher_ftype): New typedef.
11579 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11580 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11581 * symfile.c (expand_partial_symbol_names): Update to use
11582 expand_symtabs_symbol_matcher_ftype.
11583 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11584 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11585 Arg name_matcher renamed to symbol_matcher.
11586 * psymtab.c (recursively_search_psymtabs): Update to use
11587 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11588 sym_matcher.
11589 (expand_symtabs_matching_via_partial): Update to use
11590 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11591 Arg name_matcher renamed to symbol_matcher.
11592
11593 2014-01-14 Doug Evans <dje@google.com>
11594
11595 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11596 (map_partial_symbol_filenames): Ditto.
11597 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11598 (map_partial_symbol_filenames): Ditto.
11599 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11600 (map_partial_symbol_filenames): Ditto.
11601 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11602 (map_partial_symbol_filenames): Ditto.
11603 * symtab.c: Delete #include "psymtab.h".
11604
11605 2014-01-14 Pedro Alves <palves@redhat.com>
11606 Tom Tromey <tromey@redhat.com>
11607
11608 * infrun.c (use_displaced_stepping): Use find_record_target
11609 instead of RECORD_IS_USED.
11610 (adjust_pc_after_break): Use record_full_is_used instead of
11611 RECORD_IS_USED.
11612 * record-btrace.c (record_btrace_open): Call record_preopen
11613 instead of checking RECORD_IS_USED.
11614 * record-full.c (record_full_shortname)
11615 (record_full_core_shortname): New globals.
11616 (record_full_is_used): New function.
11617 (find_full_open): Call record_preopen instead of checking
11618 RECORD_IS_USED.
11619 (init_record_full_ops): Set the target's shortname to
11620 record_full_shortname.
11621 (init_record_full_core_ops): Set the target's shortname to
11622 record_full_core_shortname.
11623 * record-full.h (record_full_is_used): Declare.
11624 * record.c (find_record_target): Make extern.
11625 (record_preopen): New function.
11626 * record.h (RECORD_IS_USED): Delete macro.
11627 (find_record_target, record_preopen): Declare functions.
11628
11629 2014-01-14 Yao Qi <yao@codesourcery.com>
11630
11631 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11632 'len''s type to ULONGEST.
11633 (core_xfer_shared_libraries_aix): Likewise.
11634 * gdbarch.c, gdbarch.h: Regenerated.
11635 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11636 Change type of 'len' to ULONGEST.
11637 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11638 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11639
11640 2014-01-14 Yao Qi <yao@codesourcery.com>
11641
11642 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11643 type of 'len' to ULONGEST.
11644 (linux_xfer_osdata_processgroups): Likewise.
11645 (linux_xfer_osdata_threads): Likewise.
11646 (linux_xfer_osdata_fds): Likewise.
11647 (linux_xfer_osdata_isockets): Likewise.
11648 (linux_xfer_osdata_shm): Likewise.
11649 (linux_xfer_osdata_sem): Likewise.
11650 (linux_xfer_osdata_msg): Likewise.
11651 (linux_common_xfer_osdata): Likewise.
11652 (struct osdata_type) <getter>: Likewise.
11653 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11654 the declaration.
11655
11656 2014-01-14 Yao Qi <yao@codesourcery.com>
11657
11658 * target.h (target_xfer_partial_ftype): Update.
11659 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11660 ULONGEST.
11661 * aix-thread.c (aix_thread_xfer_partial): Change type of
11662 argument 'len' to ULONGEST.
11663 * auxv.c (procfs_xfer_auxv): Likewise.
11664 (ld_so_xfer_auxv): Likewise.
11665 (memory_xfer_auxv): Likewise.
11666 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11667 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11668 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11669 * corelow.c (core_xfer_partial): Likewise.
11670 * ctf.c (ctf_xfer_partial): Likewise.
11671 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11672 '%u'.
11673 (darwin_read_dyld_info): Likewise.
11674 (darwin_xfer_partial): Likewise.
11675 * exec.c (section_table_xfer_memory_partial): Likewise.
11676 (exec_xfer_partial): Likewise.
11677 * exec.h (section_table_xfer_memory_partial): Update
11678 declaration.
11679 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11680 instead of plongest.
11681 (gnu_xfer_partial): Likewise.
11682 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11683 (ia64_hpux_xfer_solib_got): Likewise.
11684 (ia64_hpux_xfer_partial): Likewise.
11685 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11686 * inf-ptrace.c (inf_ptrace_xfer_partial):
11687 * inf-ttrace.c (inf_ttrace_xfer_partial):
11688 * linux-nat.c (linux_xfer_siginfo): Likewise.
11689 (linux_nat_xfer_partial): Likewise.
11690 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11691 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11692 * monitor.c (monitor_xfer_memory): Likewise.
11693 (monitor_xfer_partial): Likewise.
11694 * procfs.c (procfs_xfer_partial): Likewise.
11695 * record-full.c (record_full_xfer_partial): Likewise.
11696 (record_full_core_xfer_partial): Likewise.
11697 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11698 instead of plongest.
11699 (gdbsim_xfer_partial): Likewise.
11700 * remote.c (remote_xfer_partial): Likewise.
11701 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11702 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11703 declaration.
11704 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11705 (rs6000_xfer_shared_libraries): Likewise.
11706 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11707 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11708 (sparc_xfer_partial): Likewise.
11709 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11710 (spu_xfer_partial): Likewise.
11711 * spu-multiarch.c (spu_xfer_partial): Likewise.
11712 * target.c (target_read_live_memory): Likewise.
11713 (memory_xfer_live_readonly_partial): Likewise.
11714 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11715 (target_xfer_partial, default_xfer_partial): Likewise.
11716 (current_xfer_partial): Likewise.
11717 * tracepoint.c (tfile_xfer_partial): Likewise.
11718 * windows-nat.c (windows_xfer_memory): Likewise. Call
11719 pulongest instead of plongest.
11720 (windows_xfer_partial): Likewise.
11721 (windows_xfer_shared_libraries): Likewise.
11722
11723 2014-01-14 Yao Qi <yao@codesourcery.com>
11724
11725 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11726 target_xfer_partial_ftype.
11727
11728 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11729
11730 PR python/15464
11731 PR python/16113
11732 * valops.c (value_struct_elt_bitpos): New function
11733 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11734 object to 'None' if the field name is an empty string ("").
11735 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11736 attribute to look for a field when 'name' is 'None'.
11737 (get_field_type): New function
11738
11739 2014-01-13 Doug Evans <dje@google.com>
11740
11741 PR symtab/16426
11742 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11743 (try_open_dwop_file): Ditto.
11744 * gdb_bfd.c: #include "vec.h".
11745 (bfdp): New typedef.
11746 (struct gdb_bfd_data): New member included_bfds.
11747 (gdb_bfd_unref): Unref all included bfds.
11748 (gdb_bfd_record_inclusion): New function.
11749 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11750
11751 2014-01-13 Tom Tromey <tromey@redhat.com>
11752
11753 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11754
11755 2014-01-13 Tom Tromey <tromey@redhat.com>
11756
11757 * defs.h (use_windows): Remove.
11758 * gdb.c (main): Update.
11759 * main.c (captured_main, gdb_main): Update.
11760 * main.h (struct captured_main_args) <use_windows>: Remove.
11761 * top.c (use_windows): Remove.
11762
11763 2014-01-13 Tom Tromey <tromey@redhat.com>
11764
11765 * defs.h (deprecated_flush_hook): Remove.
11766
11767 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11768
11769 PR threads/16216
11770 * linux-thread-db.c (try_thread_db_load): Add parameter
11771 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11772 (try_thread_db_load_from_pdir_1): Move it there from here.
11773 (try_thread_db_load_from_sdir): Update caller.
11774 (try_thread_db_load_from_dir): Move it there from here.
11775
11776 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11777
11778 * regformats/regdat.sh: Always rewrite the register file.
11779
11780 2014-01-13 Pedro Alves <palves@redhat.com>
11781
11782 * Makefile.in (CHECK_HEADERS): New variable.
11783 (check-headers:): New rule.
11784
11785 2014-01-13 Tom Tromey <tromey@redhat.com>
11786
11787 * cli/cli-setshow.c (do_set_command): Update.
11788 * defs.h (deprecated_set_hook): Remove.
11789 * top.c (deprecated_set_hook): Remove.
11790
11791 2014-01-13 Pedro Alves <palves@redhat.com>
11792
11793 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11794 the tracepoint if the PC is a pseudo-register.
11795
11796 2014-01-13 Tom Tromey <tromey@redhat.com>
11797
11798 * defs.h (XCALLOC): Remove.
11799 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11800 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11801 * dwarf2loc.c (allocate_piece_closure): Likewise.
11802 * elfread.c (elf_symfile_segments): Likewise.
11803 (elf_symfile_segments): Likewise.
11804 * gdbtypes.c (copy_type_recursive): Likewise.
11805 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11806 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11807 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11808 XCALLOC.
11809 * mt-tdep.c (mt_gdbarch_init): Likewise.
11810 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11811 XCALLOC.
11812 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11813 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11814 * registry.c (registry_alloc_data): Likewise.
11815 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11816 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11817 * serial.c (serial_fdopen_ops): Likewise.
11818 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11819 XCALLOC.
11820 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11821 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11822 not XCALLOC.
11823
11824 2014-01-13 Tom Tromey <tromey@redhat.com>
11825
11826 * defs.h (XMALLOC): Remove.
11827 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11828 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11829 * cli-out.c (struct ui_out *): Likewise.
11830 * cli/cli-dump.c (add_dump_command): Likewise.
11831 (add_dump_command): Likewise.
11832 * complaints.c (get_complaints): Likewise.
11833 (find_complaint): Likewise.
11834 * dwarf2-frame.c (execute_cfa_program): Likewise.
11835 * dwarf2read.c (abbrev_table_read_table): Likewise.
11836 * gdbarch.sh: Likewise.
11837 * gdbarch.c: Rebuild.
11838 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11839 * interps.c (interp_new): Likewise.
11840 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11841 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11842 * mi/mi-console.c (mi_console_file_new): Likewise.
11843 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11844 * mi/mi-out.c (mi_out_new): Likewise.
11845 * mi/mi-parse.c (mi_parse): Likewise.
11846 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11847 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11848 * observer.c (xalloc_observer_list_node): Likewise.
11849 * regcache.c (regcache_xmalloc_1): Likewise.
11850 * reggroups.c (reggroup_new): Likewise.
11851 (_initialize_reggroup): Likewise.
11852 * registry.c (register_data_with_cleanup): Likewise.
11853 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11854 * ser-base.c (serial_ttystate): Likewise.
11855 * ser-mingw.c (make_pipe_state): Likewise.
11856 * ser-pipe.c (pipe_open): Likewise.
11857 * serial.c (serial_open): Likewise.
11858 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11859 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11860 (tui_alloc_win_info): Likewise.
11861 (tui_add_content_elements): Likewise.
11862 * tui/tui-file.c (tui_file_new): Likewise.
11863 * tui/tui-out.c (tui_out_new): Likewise.
11864 * ui-file.c (mem_file_new): Likewise.
11865 * ui-out.c (push_level): Likewise.
11866 (make_cleanup_ui_out_end): Likewise.
11867 (append_header_to_list): Likewise.
11868 (ui_out_new): Likewise.
11869 * user-regs.c (user_reg_add_builtin): Likewise.
11870
11871 2014-01-13 Tom Tromey <tromey@redhat.com>
11872
11873 * defs.h (XZALLOC): Remove.
11874 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11875 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11876 (get_ada_tasks_inferior_data): Likewise.
11877 * auto-load.c (get_auto_load_pspace_data): Likewise.
11878 * auxv.c (get_auxv_inferior_data): Likewise.
11879 * bfd-target.c (target_bfd_reopen): Likewise.
11880 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11881 (deprecated_insert_raw_breakpoint): Likewise.
11882 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11883 * corelow.c (core_open): Likewise.
11884 * darwin-nat.c (darwin_check_new_threads): Likewise.
11885 (darwin_attach_pid): Likewise.
11886 * dummy-frame.c (dummy_frame_push): Likewise.
11887 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11888 * dwarf2loc.c (allocate_piece_closure): Likewise.
11889 * elfread.c (elf_symfile_segments): Likewise.
11890 * eval.c (ptrmath_type_p): Likewise.
11891 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11892 * gdbtypes.c (alloc_type_arch): Likewise.
11893 (alloc_type_instance): Likewise.
11894 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11895 * inf-child.c (inf_child_can_use_agent): Likewise.
11896 * inflow.c (get_inflow_inferior_data): Likewise.
11897 * infrun.c (save_infcall_suspend_state): Likewise.
11898 * jit.c (jit_reader_load): Likewise.
11899 (get_jit_objfile_data): Likewise.
11900 (get_jit_program_space_data): Likewise.
11901 (jit_object_open_impl): Likewise.
11902 (jit_symtab_open_impl): Likewise.
11903 (jit_block_open_impl): Likewise.
11904 (jit_frame_sniffer): Likewise.
11905 * linux-fork.c (add_fork): Likewise.
11906 * maint.c (make_command_stats_cleanup): Likewise.
11907 * objfiles.c (get_objfile_pspace_data): Likewise.
11908 * opencl-lang.c (struct lval_closure): Likewise.
11909 * osdata.c (osdata_start_osdata): Likewise.
11910 * progspace.c (new_address_space): Likewise.
11911 (add_program_space): Likewise.
11912 * remote-sim.c (get_sim_inferior_data): Likewise.
11913 * sh-tdep.c (sh_gdbarch_init): Likewise.
11914 * skip.c (Ignore): Likewise.
11915 (skip_delete_command): Likewise.
11916 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11917 (library_list_start_library): Likewise.
11918 (solib_aix_current_sos): Likewise.
11919 * solib-darwin.c (get_darwin_info): Likewise.
11920 (darwin_current_sos): Likewise.
11921 * solib-dsbt.c (get_dsbt_info): Likewise.
11922 * solib-ia64-hpux.c (new_so_list): Likewise.
11923 (ia64_hpux_get_solib_linkage_addr): Likewise.
11924 * solib-spu.c (append_ocl_sos): Likewise.
11925 (spu_current_sos): Likewise.
11926 * solib-svr4.c (get_svr4_info): Likewise.
11927 (svr4_keep_data_in_core): Likewise.
11928 (library_list_start_library): Likewise.
11929 (svr4_default_sos): Likewise.
11930 (svr4_read_so_list): Likewise.
11931 * solib-target.c (library_list_start_library): Likewise.
11932 (solib_target_current_sos): Likewise.
11933 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11934 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11935 * symfile.c (default_symfile_segments): Likewise.
11936 * target-descriptions.c (tdesc_data_init): Likewise.
11937 (tdesc_create_reg): Likewise.
11938 (struct tdesc_type *): Likewise.
11939 (tdesc_create_vector): Likewise.
11940 (tdesc_set_struct_size): Likewise.
11941 (struct tdesc_type *): Likewise.
11942 (tdesc_free_feature): Likewise.
11943 (tdesc_create_feature): Likewise.
11944 * windows-nat.c (windows_add_thread): Likewise.
11945 (windows_make_so): Likewise.
11946 * xml-support.c (gdb_xml_body_text): Likewise.
11947 (gdb_xml_create_parser_and_cleanup): Likewise.
11948 (xml_process_xincludes): Likewise.
11949 * xml-syscall.c (allocate_syscalls_info): Likewise.
11950 (syscall_create_syscall_desc): Likewise.
11951
11952 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11953
11954 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11955 function, with code from i386_stap_parse_special_token.
11956 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11957 (i386_stap_parse_special_token): Move code to the two functions
11958 above; simplify it.
11959
11960 2014-01-09 Pedro Alves <palves@redhat.com>
11961 Hui Zhu <hui@codesourcery.com>
11962
11963 PR gdb/16101
11964 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11965 bp_err_string. Don't mark the location shlib_disabled if the
11966 error thrown wasn't a generic or memory error. Catch errors
11967 thrown while inserting breakpoints in overlayed code. Output
11968 error message of software breakpoints.
11969 * remote.c (remote_insert_breakpoint): If this breakpoint has
11970 target-side commands but this stub doesn't support Z0 packets,
11971 throw NOT_SUPPORTED_ERROR error.
11972 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11973 * target.h (target_insert_breakpoint): Extend comment.
11974 (target_insert_hw_breakpoint): Add comment.
11975
11976 2014-01-08 Pedro Alves <palves@redhat.com>
11977
11978 * remote.c (remote_add_thread): Add threads silently if starting
11979 up.
11980 (remote_notice_new_inferior): If in all-stop, and starting up,
11981 don't call notice_new_inferior.
11982 (get_current_thread): New function, factored out from ...
11983 (add_current_inferior_and_thread): ... this. Adjust.
11984 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11985 found any thread, then select the remote's current thread as GDB's
11986 current thread too.
11987
11988 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11989
11990 * NEWS: Create a new section for the next release branch.
11991 Rename the section of the current branch, now that it has
11992 been cut.
11993
11994 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11995
11996 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11997 * version.in: Bump version to 7.7.50.DATE-cvs.
11998
11999 2014-01-08 Yao Qi <yao@codesourcery.com>
12000
12001 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12002 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12003 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12004
12005 2014-01-08 Yao Qi <yao@codesourcery.com>
12006
12007 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12008 return value of bfd_get_filename to symbol_file_add_from_bfd.
12009
12010 2014-01-08 Pierre Muller <muller@sourceware.org>
12011
12012 Fix PR16201.
12013 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12014 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12015 to prim_record_mininal_symbol_and_info.
12016 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12017 in call to prim_record_minimal_symbol_and_info.
12018 (read_pe_exported_syms): Set index field of section_data.
12019
12020 2014-01-07 Andrew Pinski <apinski@cavium.com>
12021
12022 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12023 * features/aarch64.c: Regenerate.
12024
12025 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12026
12027 * target.c (return_null): Define.
12028 (update_current_target): Use it instead of return_zero for
12029 functions that return a pointer.
12030
12031 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12032
12033 * source.c (add_path): Fix check for duplicated paths in the previously
12034 included paths.
12035
12036 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12037
12038 * ada-lang.c: Remove duplicated include statements.
12039 * alphabsd-nat.c: Ditto.
12040 * amd64-darwin-tdep.c: Ditto.
12041 * amd64fbsd-nat.c: Ditto.
12042 * auto-load.c: Ditto.
12043 * ax-gdb.c: Ditto.
12044 * breakpoint.c: Ditto.
12045 * dbxread.c: Ditto.
12046 * fork-child.c: Ditto.
12047 * gdb_usleep.c: Ditto.
12048 * i386-darwin-tdep.c: Ditto.
12049 * i386fbsd-nat.c: Ditto.
12050 * infcmd.c: Ditto.
12051 * inferior.c: Ditto.
12052 * jv-lang.c: Ditto.
12053 * linux-nat.c: Ditto.
12054 * linux-tdep.c: Ditto.
12055 * m68kbsd-nat.c: Ditto.
12056 * m68klinux-nat.c: Ditto.
12057 * microblaze-tdep.c: Ditto.
12058 * mips-linux-tdep.c: Ditto.
12059 * mn10300-tdep.c: Ditto.
12060 * nto-tdep.c: Ditto.
12061 * opencl-lang.c: Ditto.
12062 * osdata.c: Ditto.
12063 * printcmd.c: Ditto.
12064 * regcache.c: Ditto.
12065 * remote-m32r-sdi.c: Ditto.
12066 * remote.c: Ditto.
12067 * symfile.c: Ditto.
12068 * symtab.c: Ditto.
12069 * tilegx-linux-nat.c: Ditto.
12070 * tilegx-tdep.c: Ditto.
12071 * tracepoint.c: Ditto.
12072 * valops.c: Ditto.
12073 * vaxbsd-nat.c: Ditto.
12074 * windows-nat.c: Ditto.
12075 * xtensa-tdep.c: Ditto.
12076
12077 2014-01-07 Yao Qi <yao@codesourcery.com>
12078
12079 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12080
12081 2014-01-07 Yao Qi <yao@codesourcery.com>
12082 Joel Brobecker <brobecker@adacore.com>
12083
12084 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12085 (pdc_write_regs): Likewise.
12086 (fetch_regs_kernel_thread): Likewise.
12087 (store_regs_kernel_thread): Likewise.
12088
12089 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12090
12091 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12092 tagged type objects to their actual type.
12093
12094 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12095
12096 * ada-valprint.c (print_field_values): Add "language" parameter.
12097 Update calls to print_field_values and print_variant_part.
12098 Pass new parameter "language" in call to val_print instead
12099 of "current_language". Replace call to ada_val_print by call
12100 to val_print.
12101 (print_variant_part): Add "language" parameter.
12102 (ada_val_print_struct_union): Update call to print_field_values.
12103
12104 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12105
12106 * ada-valprint.c (ui_memcpy): Delete.
12107 (ada_print_floating): Update documentation. Add empty line
12108 between between function documentation and implementation.
12109 Delete variable "buffer". Use ui_file_xstrdup in place of
12110 ui_file_put. Minor adjustments following this change.
12111
12112 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12113
12114 * ada-valprint.c (ada_val_print_string): New function,
12115 extracted from ada_val_print_array.
12116 (ada_val_print_array): Replace extracted code by call
12117 to ada_val_print_string followed by a return. Move
12118 "else" branch to the function's top block.
12119
12120 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12121
12122 * ada-valprint.c (ada_val_print_array): Move implementation
12123 down. Rename parameter "offset" and "val" into "offset_aligned"
12124 and "original_value" respectively. Add parameter "offset".
12125
12126 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12127
12128 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12129 re-organizing the code. Change the "???" message printed
12130 when target type is a TYPE_CODE_UNDEF into
12131 "<ref to undefined type>".
12132
12133 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12134
12135 * ada-valprint.c (print_record): Delete, implementation inlined...
12136 (ada_val_print_struct_union): ... here. Remove call to
12137 ada_check_typedef in inlined implementation.
12138
12139 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12140
12141 * ada-valprint.c (ada_val_print_gnat_array): New function,
12142 extracted from ada_val_print_1;
12143 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12144 (ada_val_print_flt, ada_val_print_struct_union)
12145 (ada_val_print_ref): Likewise.
12146 (ada_val_print_1): Delete variables i and elttype.
12147 Replace extracted-out code by call to corresponding
12148 new functions.
12149
12150 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12151
12152 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12153
12154 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12155
12156 * ada-valprint.c (ada_val_print_1): Replace calls to
12157 ada_val_print_1 by calls to val_print.
12158
12159 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12160
12161 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12162 Update calls to self accordingly. Replace calls to c_val_print
12163 by calls to val_print.
12164
12165 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12166
12167 * ada-valprint.c (print_record): Delete declaration.
12168 (adjust_type_signedness, ada_val_print_1): Likewise.
12169 (ada_val_print): Move function implementation down.
12170 (print_variant_part, print_field_values, print_record):
12171 Move function implementation up.
12172
12173 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12174
12175 * python/py-type.c (typy_get_name): New function.
12176 (type_object_getset): Add entry for attribute "name".
12177 * NEWS: Add entry mentioning this new attribute.
12178
12179 2014-01-07 Yao Qi <yao@codesourcery.com>
12180
12181 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12182 statement.
12183
12184 2014-01-07 Yao Qi <yao@codesourcery.com>
12185
12186 * gnu-nat.c (info_port_rights): Add qualifier const to
12187 argument args.
12188
12189 2014-01-07 Yao Qi <yao@codesourcery.com>
12190
12191 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12192
12193 2014-01-07 Yao Qi <yao@codesourcery.com>
12194
12195 * gnu-nat.c (make_inf) Update declaration.
12196 (make_inf): Make it static.
12197 (inf_set_traced): Likewise.
12198 (inf_port_to_thread, inf_task_died_status): Likewise.
12199
12200 2014-01-07 Yao Qi <yao@codesourcery.com>
12201
12202 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12203
12204 2014-01-07 Yao Qi <yao@codesourcery.com>
12205
12206 * gnu-nat.c (_initialize_gnu_nat): Declare.
12207
12208 2014-01-07 Yao Qi <yao@codesourcery.com>
12209
12210 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12211 'enum bfd_endian'.
12212 (struct gdbarch_info) <byte_order>: Change type to
12213 'enum bfd_endian'.
12214 <byte_order_for_code>: Likewise.
12215 * gdbarch.c, gdbarch.h: Regenerated.
12216
12217 2014-01-06 Sasha Smundak <asmundak@google.com>
12218
12219 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12220
12221 2014-01-06 Tom Tromey <tromey@redhat.com>
12222
12223 * doublest.c (convert_doublest_to_floatformat): Use const, not
12224 CONST.
12225 * somread.c (som_symtab_read): Likewise.
12226
12227 2014-01-07 Hui Zhu <hui@codesourcery.com>
12228
12229 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12230 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12231 (gdb_bfd_fopen): Ditto.
12232 (gdb_bfd_openr): Ditto.
12233 (gdb_bfd_openw): Ditto.
12234 (gdb_bfd_openr_iovec): Ditto.
12235 (gdb_bfd_fdopenr): Ditto.
12236 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12237 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12238 with xstrdup.
12239 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12240 with xstrdup.
12241 * symfile-mem.c (symbol_file_add_from_memory): Removed
12242 gdb_bfd_stash_filename.
12243
12244 2014-01-03 Doug Evans <dje@google.com>
12245
12246 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12247 output.
12248
12249 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12250
12251 Update year range in copyright notice of all files.
12252
12253 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12254
12255 * top.c (print_gdb_version): Set copyright year to 2014.
12256
12257 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12258
12259 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12260
12261 For older changes see ChangeLog-2013.
12262 \f
12263 Local Variables:
12264 mode: change-log
12265 left-margin: 8
12266 fill-column: 74
12267 version-control: never
12268 coding: utf-8
12269 End: