daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
252a6764
DE
12014-08-22 Doug Evans <dje@google.com>
2
3 * buildsym.h (record_line_ftype): New typedef.
4 (record_line): Use it.
5 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
6 (dwarf_decode_lines_1): Call them.
7
510db052
YQ
82014-08-22 Yao Qi <yao@codesourcery.com>
9
10 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
11 (ctf_end): Remove code.
12
22fd09ae
JK
132014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14
15 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
16 (linux_make_corefile_notes): call update_thread_list, protected against
17 exceptions.
18
656e8868
PA
192014-08-21 Pedro Alves <palves@redhat.com>
20
21 * infcmd.c (attach_command): Remove comment.
22
de589d04
WN
232014-08-21 Bin Cheng <bin.cheng@arm.com>
24
25 * aarch64-linux-nat.c (dr_changed_t): Change the type from
26 unsigned LONGEST to ULONGEST.
27
2a31c623
PA
282014-08-20 Pedro Alves <palves@redhat.com>
29
30 * Makefile.in (check-read1): New rule.
31
d36430db
JB
322014-08-20 Joel Brobecker <brobecker@adacore.com>
33
34 * value.c (value_from_contents_and_address): Strip resolved_type's
35 typedef layers before checking its TYPE_DATA_LOCATION.
36
000339af
PA
372014-08-20 Pedro Alves <palves@redhat.com>
38
39 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
40
5f52445b
YQ
412014-08-20 Yao Qi <yao@codesourcery.com>
42
43 * amd64-tdep.c (amd64_classify): Add a blank line after the
44 example. Move "*/" to a new line.
45 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
46 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
47 * dwarf2read.c (psymtab_include_file_name): Likewise.
48
9a0dc9e3
PA
492014-08-19 Andrew Burgess <aburgess@broadcom.com>
50 Pedro Alves <palves@redhat.com>
51
52 PR symtab/14604
53 PR symtab/14605
54 * ada-lang.c (coerce_unspec_val_to_type): Use
55 value_contents_copy_raw.
56 * ada-valprint.c (val_print_packed_array_elements): Adjust.
57 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
58 * cp-valprint.c (cp_print_value_fields): Let the common printing
59 code handle optimized out values.
60 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
61 * d-valprint.c (dynamic_array_type): Use
62 value_bits_any_optimized_out.
63 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
64 check_any_valid fields.
65 (check_pieced_value_bits): Delete and inline ...
66 (check_pieced_synthetic_pointer): ... here.
67 (check_pieced_value_validity): Delete.
68 (check_pieced_value_invalid): Delete.
69 (pieced_value_funcs): Remove check_validity and check_any_valid
70 fields.
71 (read_pieced_value): Use mark_value_bits_optimized_out.
72 (write_pieced_value): Switch to use
73 mark_value_bytes_optimized_out.
74 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
75 of assuming the whole value is optimized out.
76 * findvar.c (read_frame_register_value): Remove special handling
77 of optimized out registers.
78 (value_from_register): Use mark_value_bytes_optimized_out.
79 * frame-unwind.c (frame_unwind_got_optimized): Use
80 mark_value_bytes_optimized_out.
81 * jv-valprint.c (java_value_print): Adjust.
82 (java_print_value_fields): Let the common printing code handle
83 optimized out values.
84 * mips-tdep.c (mips_print_register): Remove special handling of
85 optimized out registers.
86 * opencl-lang.c (lval_func_check_validity): Delete.
87 (lval_func_check_any_valid): Delete.
88 (opencl_value_funcs): Remove check_validity and check_any_valid
89 fields.
90 * p-valprint.c (pascal_object_print_value_fields): Let the common
91 printing code handle optimized out values.
92 * stack.c (read_frame_arg): Remove special handling of optimized
93 out values. Fetch both VAL and ENTRYVAL before comparing
94 contents. Adjust to value_available_contents_eq rename.
95 * valprint.c (valprint_check_validity)
96 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
97 (val_print_array_elements): Adjust.
98 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
99 (value_bits_any_optimized_out): New function.
100 (value_entirely_covered_by_range_vector): New function, factored
101 out from value_entirely_unavailable.
102 (value_entirely_unavailable): Reimplement.
103 (value_entirely_optimized_out): New function.
104 (insert_into_bit_range_vector): New function, factored out from
105 mark_value_bits_unavailable.
106 (mark_value_bits_unavailable): Reimplement.
107 (struct ranges_and_idx): New struct.
108 (find_first_range_overlap_and_match): New function, factored out
109 from value_available_contents_bits_eq.
110 (value_available_contents_bits_eq): Rename to ...
111 (value_contents_bits_eq): ... this. Check both unavailable
112 contents and optimized out contents.
113 (value_available_contents_eq): Rename to ...
114 (value_contents_eq): ... this.
115 (allocate_value_lazy): Remove reference to the old optimized_out
116 boolean.
117 (allocate_optimized_out_value): Use
118 mark_value_bytes_optimized_out.
119 (require_not_optimized_out): Adjust to check whether the
120 optimized_out vec is empty.
121 (ranges_copy_adjusted): New function, factored out from
122 value_contents_copy_raw.
123 (value_contents_copy_raw): Also copy the optimized out ranges.
124 Assert the destination ranges aren't optimized out.
125 (value_contents_copy): Update comment, remove call to
126 require_not_optimized_out.
127 (value_contents_equal): Adjust to check whether the optimized_out
128 vec is empty.
129 (set_value_optimized_out, value_optimized_out_const): Delete.
130 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
131 New functions.
132 (value_entirely_optimized_out, value_bits_valid): Delete.
133 (value_copy): Take a VEC copy of the 'optimized_out' field.
134 (value_primitive_field): Remove special handling of optimized out.
135 (value_fetch_lazy): Assert that lazy values have no unavailable
136 regions. Use value_bits_any_optimized_out. Remove some special
137 handling for optimized out values.
138 * value.h: Add intro comment about <optimized out> and
139 <unavailable>.
140 (struct lval_funcs): Remove check_validity and check_any_valid
141 fields.
142 (set_value_optimized_out, value_optimized_out_const): Remove.
143 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
144 New declarations.
145 (value_bits_any_optimized_out): New declaration.
146 (value_bits_valid): Delete declaration.
147 (value_available_contents_eq): Rename to ...
148 (value_contents_eq): ... this, and extend comments.
149
6694c411
JK
1502014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
151
152 Fix -fsanitize=address on unreadable inferior strings.
153 * valprint.c (val_print_string): Fix access before BUFFER.
154
89a1c21a
SM
1552014-08-19 Simon Marchi <simon.marchi@ericsson.com>
156
157 * target.c (target_struct_size): Remove.
158 (target_struct_allocsize): Remove.
159 (DEFAULT_ALLOCSIZE): Remove.
160 (target_ops_p): New typedef.
161 (DEF_VEC_P (target_ops_p)): New vector type.
162 (target_structs): Change type to VEC (target_ops_p).
163 (add_target_with_completer): Replace "push" code by VEC_safe_push.
164 (find_default_run_target): Rewrite for loop following changes to
165 target_structs.
166
cb417230
JB
1672014-08-19 Joel Brobecker <brobecker@adacore.com>
168
169 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
170 Adjust code accordingly. Adjust function description comment.
171
817e0957
YQ
1722014-08-19 Yao Qi <yao@codesourcery.com>
173
174 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
175 types.
176
2974be62
AM
1772014-08-19 Alan Modra <amodra@gmail.com>
178
179 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
180 * config.in: Regenerate.
181 * configure: Regenerate.
182
34abf635
GB
1832014-08-19 Tom Tromey <tromey@redhat.com>
184 Gary Benson <gbenson@redhat.com>
185
186 * common/common-debug.h: New file.
187 * common/common-debug.c: Likewise.
188 * debug.c: Likewise.
189 * Makefile.in (SFILES): Add common/common-debug.c.
190 (HFILES_NO_SRCDIR): Add common/common-debug.h.
191 (COMMON_OBS): Add common-debug.o and debug.o.
192 (common-debug.o): New rule.
193 * common/common-defs.h: Include common-debug.h.
194 * common/agent.c (debug_agent_printf): New function.
195 (DEBUG_AGENT): Redefine.
196 * nat/i386-dregs.c (debug_printf): Undefine.
197
f6e94d78
GB
1982014-08-19 Gary Benson <gbenson@redhat.com>
199
200 * common/common-defs.h: Include print-utils.h.
201 * utils.h: Do not include print-utils.h.
202
9239eeab
GB
2032014-08-19 Tom Tromey <tromey@redhat.com>
204 Gary Benson <gbenson@redhat.com>
205
206 * common/common-types.h: New file.
207 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
208 * common/common-defs.h: Include common-types.h.
209 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
210 (ULONGEST): Remove.
211
ef87c8bb
GB
2122014-08-19 Tom Tromey <tromey@redhat.com>
213 Gary Benson <gbenson@redhat.com>
214
215 * common/errors.h: New file.
216 * common/errors.c: Likewise.
217 * Makefile.in (SFILES): Add common/errors.c.
218 (HFILES_NO_SRCDIR): Add common/errors.h.
219 (COMMON_OBS): Add errors.o.
220 (errors.o): New rule.
221 * common/common-defs.h: Include errors.h.
222 * utils.h (perror_with_name, error, verror, warning, vwarning):
223 Don't declare.
224 * common/common-utils.h: (malloc_failure, internal_error):
225 Likewise.
226
196a707b
GB
2272014-08-19 Gary Benson <gbenson@redhat.com>
228
229 * utils.c (internal_vproblem): Always print the message.
230
ded4fc8f
DE
2312014-08-18 Doug Evans <dje@google.com>
232
233 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
234
950c97d8
JB
2352014-08-18 Joel Brobecker <brobecker@adacore.com>
236
237 * ada-typeprint.c (type_is_full_subrange_of_target_type):
238 Return 0 if TYPE is dynamic.
239 (print_range): Add handling of dynamic ranges.
240
3cdcd0ce
JB
2412014-08-18 Keven Boell <keven.boell@intel.com>
242 Joel Brobecker <brobecker@adacore.com>
243
244 * gdbtypes.h (struct main_type): Add field "data_location".
245 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
246 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
247 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
248 a dynamic data location.
249 (resolve_dynamic_type): Add DW_AT_data_location handling.
250 (copy_recursive, copy_type): Copy the data_location information
251 when present.
252 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
253 * value.c (value_from_contents_and_address): Add
254 DW_AT_data_location handling.
255
08412b07
JB
2562014-08-18 Keven Boell <keven.boell@intel.com>
257 Joel Brobecker <brobecker@adacore.com>
258
259 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
260 field "get_object_address".
261 * dwarf2expr.c (execute_stack_op): Add handling for
262 DW_OP_push_object_address.
263 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
264 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
265 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
266 (dwarf_expr_get_obj_addr): New function.
267 (dwarf_expr_ctx_funcs): Add get_object_address field.
268 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
269 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
270 (dwarf2_evaluate_property): Add parameter "address". Use it.
271 (needs_get_obj_addr): New function.
272 (needs_frame_ctx_funcs): Add get_object_address field.
273 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
274 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
275 (resolve_dynamic_array): Likewise.
276
84754697
JB
2772014-08-18 Joel Brobecker <brobecker@adacore.com>
278
279 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
280 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
281 fixed value for records and unions for which some GNAT encodings
282 are present.
283
da5c522f
JB
2842014-08-18 Joel Brobecker <brobecker@adacore.com>
285
286 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
287 rewrite to avoid "else if" and "else" constructs. Should be
288 a no-op in practice.
289
0d72a7c3
JB
2902014-08-18 Joel Brobecker <brobecker@adacore.com>
291
292 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
293 of lexical block.
294
e66d4446
SC
2952014-08-15 Siva Chandra Reddy <sivachandra@google.com>
296
297 PR c++/17132
298 * eval.c: Update all calls to find_overload_match.
299 * valarith.c: Likewise.
300 (value_user_defined_cpp_op, value_user_defined_op): New
301 argument NOSIDE. Update all callers.
302 * valops.c (find_overload_match): New argument NOSIDE.
303 * value.h (find_overload_match): Update signature.
304
940df408
SC
3052014-08-15 Siva Chandra Reddy <sivachandra@google.com>
306
307 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
308 'items' methods instead of 'iteritems' method on dictionaries.
309
699ca60a
DE
3102014-08-15 Doug Evans <dje@google.com>
311
312 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
313 closer to use.
314
37780ee5
DE
3152014-08-15 Doug Evans <dje@google.com>
316
317 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
318
0ad93d4f
DE
3192014-08-15 Doug Evans <dje@google.com>
320
321 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
322
20d8c372
DE
3232014-08-15 Doug Evans <dje@google.com>
324
325 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
326 unused.
327
cb039ba4
EZ
3282014-08-15 Eli Zaretskii <eliz@gnu.org>
329
330 * dcache.h: Include target.h, to avoid compile time warnings.
331
eb7a547a
JB
3322014-08-15 Joel Brobecker <brobecker@adacore.com>
333
334 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
335 frame_info" partial declaration.
336 * gdbarch.h: Regenerate.
337
783cecc8
YQ
3382014-08-15 Yao Qi <yao@codesourcery.com>
339
340 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
341 Add parameter 'decode_for_pst_p'. Callers update.
342
65c749e7
YQ
3432014-08-13 Yao Qi <yao@codesourcery.com>
344
345 PR build/17104
346 * configure.ac: Use local variable 'pos'.
347 * configure: Regenerated.
348
d769e349
DE
3492014-08-11 Doug Evans <dje@google.com>
350
351 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
352 message, it is redundant with "Reading symbols from ..." message.
353
24f1235e
DE
3542014-08-10 Doug Evans <xdje42@gmail.com>
355
356 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
357
dcd2e6ef
YQ
3582014-08-09 Yao Qi <yao@codesourcery.com>
359
360 PR remote/9053
361 * remote.c (remote_xfer_partial): Remove dead code.
362
070bdf0b
AA
3632014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
364
365 * ia64-linux-tdep.c: Include "regset.h".
366 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
367 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
368 (ia64_linux_supply_fpregset): New function.
369 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
370 (ia64_linux_regset_from_core_section): New function.
371 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
372 method.
373
08f9f542
AA
3742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
375
376 * m68klinux-tdep.c: Include "regset.h".
377 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
378 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
379 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
380 (m68k_linux_regset_from_core_section): New function.
381 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
382 method.
383
8f1cee41
AA
3842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
385
386 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
387 function. Move logic to...
388 (tilegx_linux_regmap): ... this new register map.
389 (tilegx_linux_regset): Refer to register map, replace supply
390 method by regcache_supply_regset, and add collect method.
391 * tilegx-tdep.h (enum tilegx_regnum): New enum value
392 TILEGX_FIRST_EASY_REGNUM.
393
c5741217
AA
3942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
395
396 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
397 that calls regcache_supply_regset and handles the EPC register
398 separately. Move main logic to...
399 (score7_linux_gregmap): ... this new register map.
400 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
401 (score7_linux_gregset): Refer to register map. Add collect method.
402 (score7_linux_regset_from_core_section): Replace
403 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
404 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
405 (struct regset): Delete unused forward declaraction.
406 (struct pt_regs): Delete structure definition.
407 (elf_gregset_t): Delete typedef.
408
81580573
AA
4092014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
410
411 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
412 (nios2_core_regset): Add collect method.
413
ba199d7d
AA
4142014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
415
416 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
417 platform-independent and don't write to read-only input buffer.
418 (m32r_linux_collect_gregset): New function.
419 (m32r_linux_gregset): Add collect method.
420
0006a9da
AA
4212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
422
423 * hppa-linux-tdep.c (greg_map): Rename to...
424 (hppa_linux_gregmap): ... this. Also convert to
425 regcache_map_entry format.
426 (hppa_linux_supply_regset): Delete function.
427 (hppa_linux_supply_fpregset): Delete function. Move logic to...
428 (hppa_linux_fpregmap): ... this new register map.
429 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
430 register map, replace supply method by regcache_supply_regset, and
431 add collect method regcache_collect_regset.
432
901e1b23
AA
4332014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
434
435 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
436 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
437 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
438 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
439 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
440 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
441 (frv_linux_supply_gregset): Replace main logic by call to
442 regcache_supply_regset, but keep clearing gr32-gr63.
443 (frv_linux_supply_fpregset): Delete function.
444 (frv_linux_gregset): Refer to appropriate register map and add
445 regcache_collect_regset as the collect method.
446 (frv_linux_fpregset): Likewise. Also exchange the supply method
447 by regcache_supply_regset.
448
1d6e7555
AA
4492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
450
451 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
452 by call to alpha_supply_int_regs.
453 (alpha_linux_collect_gregset): New function.
454 (alpha_linux_supply_fpregset): Replace logic by call to
455 alpha_supply_fp_regs.
456 (alpha_linux_collect_fpregset): New function.
457 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
458
d4d793bf
AA
4592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
460
461 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
462 by call to regcache_collect_regset.
463 (supply_gregset, supply_fpregset): Call regcache_supply_regset
464 instead of aarch64_linux_supply_gregset/_fpregset.
465 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
466 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
467 header file instead.
468 (aarch64_linux_supply_gregset, supply_gregset_from_core)
469 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
470 functions. Move logic to ...
471 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
472 register maps.
473 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
474 refer to new register maps, replace *_regset_from_core by
475 regcache_supply_regset, and also use regcache_collect_regset.
476 * aarch64-linux-tdep.h: Include "regset.h".
477 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
478 Delete prototypes.
479 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
480 macros, moved from C source file.
481 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
482 variable declarations.
483
99b7da5d
AA
4842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
485
486 * s390-linux-nat.c: Include "regset.h".
487 (regmap_gregset): Delete macro.
488 (s390_64_regmap_gregset): New register map for
489 regcache_supply/_collect_regset.
490 (s390_64_gregset): New regset.
491 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
492 (regmap_fpregset): Delete macro.
493 (s390_native_supply, s390_native_collect): Delete functions.
494 (supply_gregset, fill_gregset): Replace s390-specific regmap
495 handling by a call to regcache_supply/_collect_regset.
496 (supply_fpregset, fill_fpregset): Call regcache_supply/
497 _collect_regset instead of s390_native_supply/_collect.
498 (fetch_regset, store_regset): Likewise. Also change the last
499 parameter to a regset instead of a regmap.
500 (s390_linux_fetch_inferior_registers)
501 (390_linux_store_inferior_registers): Adjust last parameter in
502 calls to fetch_regset and store_regset.
503 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
504 (s390_gregmap): ... this. Also make static const and convert to
505 regcache_map_entry format.
506 (s390x_regmap_gregset): Delete.
507 (s390_regmap_fpregset): Rename to...
508 (s390_fpregmap): ... this. Make static const and convert to
509 regcache_map_entry format.
510 (s390_regmap_upper, s390_regmap_last_break)
511 (s390x_regmap_last_break, s390_regmap_system_call)
512 (s390_regmap_tdb): Likewise.
513 (s390_supply_regset, s390_collect_regset): Remove functions.
514 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
515 s390_supply_regset.
516 (s390_gregset, s390_fpregset, s390_upper_regset)
517 (s390_last_break_regset, s390x_last_break_regset)
518 (s390_system_call_regset, s390_tdb_regset): Make global and
519 replace s390_supply/_collect_regset by regcache_supply/
520 _collect_regset.
521 (s390x_gregset): Delete.
522 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
523 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
524 (s390_regmap_fpregset, s390_regmap_last_break)
525 (s390x_regmap_last_break, s390_regmap_system_call)
526 (s390_regmap_tdb): Delete global variable declarations.
527 (s390_gregset, s390_fpregset, s390_last_break_regset)
528 (s390x_last_break_regset, s390_system_call_regset)
529 (s390_tdb_regset): New global variable declarations.
530
0b309272
AA
5312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
532
533 * regcache.c: Include "regset.h".
534 (regcache_transfer_regset): New local function.
535 (regcache_supply_regset, regcache_collect_regset): New functions.
536 * regcache.h (struct regcache_map_entry): New structure.
537 (REGCACHE_MAP_SKIP): New enum value.
538 (regcache_supply_regset, regcache_collect_regset): New prototypes.
539
7fefa8d7
AA
5402014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
541
542 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
543 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
544 (ppc_linux_collect_gregset ): Likewise.
545 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
546 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
547 (ppc_collect_vrregset): Likewise.
548 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
549 Likewise.
550
96c4f946
YQ
5512014-08-07 Yao Qi <yao@codesourcery.com>
552
553 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
554 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
555 * remote.c (remote_read_bytes): Likewise.
556
fffbe6a8
YQ
5572014-08-07 Yao Qi <yao@codesourcery.com>
558
559 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
560
5ee8a82c
YQ
5612014-08-07 Yao Qi <yao@codesourcery.com>
562
563 PR remote/17230
564 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
565 TARGET_XFER_OK instead of 0.
566
bb974a24
GB
5672014-08-07 Gary Benson <gbenson@redhat.com>
568
569 * common/common-defs.h: Include errno.h.
570 * defs.h: Do not include errno.h.
571 * ada-typeprint.c: Likewise.
572 * c-typeprint.c: Likewise.
573 * core-regset.c: Likewise.
574 * corefile.c: Likewise.
575 * corelow.c: Likewise.
576 * event-loop.c: Likewise.
577 * f-typeprint.c: Likewise.
578 * gnu-nat.c: Likewise.
579 * go32-nat.c: Likewise.
580 * i386gnu-nat.c: Likewise.
581 * m2-typeprint.c: Likewise.
582 * nat/linux-btrace.c: Likewise.
583 * p-typeprint.c: Likewise.
584 * procfs.c: Likewise.
585 * remote-sim.c: Likewise.
586 * rs6000-nat.c: Likewise.
587 * target.c: Likewise.
588 * typeprint.c: Likewise.
589 * ui-file.c: Likewise.
590 * valops.c: Likewise.
591 * valprint.c: Likewise.
592
6d3d12eb
GB
5932014-08-07 Gary Benson <gbenson@redhat.com>
594
595 * common/common-defs.h: Include string.h.
596 * aarch64-tdep.c: Do not include string.h.
597 * ada-exp.y: Likewise.
598 * ada-lang.c: Likewise.
599 * ada-lex.l: Likewise.
600 * ada-typeprint.c: Likewise.
601 * ada-valprint.c: Likewise.
602 * aix-thread.c: Likewise.
603 * alpha-linux-tdep.c: Likewise.
604 * alpha-mdebug-tdep.c: Likewise.
605 * alpha-nat.c: Likewise.
606 * alpha-osf1-tdep.c: Likewise.
607 * alpha-tdep.c: Likewise.
608 * alphanbsd-tdep.c: Likewise.
609 * amd64-dicos-tdep.c: Likewise.
610 * amd64-linux-tdep.c: Likewise.
611 * amd64-nat.c: Likewise.
612 * amd64-sol2-tdep.c: Likewise.
613 * amd64fbsd-tdep.c: Likewise.
614 * amd64obsd-tdep.c: Likewise.
615 * arch-utils.c: Likewise.
616 * arm-linux-nat.c: Likewise.
617 * arm-linux-tdep.c: Likewise.
618 * arm-tdep.c: Likewise.
619 * arm-wince-tdep.c: Likewise.
620 * armbsd-tdep.c: Likewise.
621 * armnbsd-nat.c: Likewise.
622 * armnbsd-tdep.c: Likewise.
623 * armobsd-tdep.c: Likewise.
624 * avr-tdep.c: Likewise.
625 * ax-gdb.c: Likewise.
626 * ax-general.c: Likewise.
627 * bcache.c: Likewise.
628 * bfin-tdep.c: Likewise.
629 * breakpoint.c: Likewise.
630 * build-id.c: Likewise.
631 * buildsym.c: Likewise.
632 * c-exp.y: Likewise.
633 * c-lang.c: Likewise.
634 * c-typeprint.c: Likewise.
635 * c-valprint.c: Likewise.
636 * charset.c: Likewise.
637 * cli-out.c: Likewise.
638 * cli/cli-cmds.c: Likewise.
639 * cli/cli-decode.c: Likewise.
640 * cli/cli-dump.c: Likewise.
641 * cli/cli-interp.c: Likewise.
642 * cli/cli-logging.c: Likewise.
643 * cli/cli-script.c: Likewise.
644 * cli/cli-setshow.c: Likewise.
645 * cli/cli-utils.c: Likewise.
646 * coffread.c: Likewise.
647 * common/agent.c: Likewise.
648 * common/buffer.c: Likewise.
649 * common/buffer.h: Likewise.
650 * common/common-utils.c: Likewise.
651 * common/filestuff.c: Likewise.
652 * common/filestuff.c: Likewise.
653 * common/format.c: Likewise.
654 * common/print-utils.c: Likewise.
655 * common/rsp-low.c: Likewise.
656 * common/signals.c: Likewise.
657 * common/vec.h: Likewise.
658 * common/xml-utils.c: Likewise.
659 * core-regset.c: Likewise.
660 * corefile.c: Likewise.
661 * corelow.c: Likewise.
662 * cp-abi.c: Likewise.
663 * cp-name-parser.y: Likewise.
664 * cp-support.c: Likewise.
665 * cp-valprint.c: Likewise.
666 * cris-tdep.c: Likewise.
667 * d-exp.y: Likewise.
668 * darwin-nat.c: Likewise.
669 * dbxread.c: Likewise.
670 * dcache.c: Likewise.
671 * demangle.c: Likewise.
672 * dicos-tdep.c: Likewise.
673 * disasm.c: Likewise.
674 * doublest.c: Likewise.
675 * dsrec.c: Likewise.
676 * dummy-frame.c: Likewise.
677 * dwarf2-frame.c: Likewise.
678 * dwarf2loc.c: Likewise.
679 * dwarf2read.c: Likewise.
680 * elfread.c: Likewise.
681 * environ.c: Likewise.
682 * eval.c: Likewise.
683 * event-loop.c: Likewise.
684 * exceptions.c: Likewise.
685 * exec.c: Likewise.
686 * expprint.c: Likewise.
687 * f-exp.y: Likewise.
688 * f-lang.c: Likewise.
689 * f-typeprint.c: Likewise.
690 * f-valprint.c: Likewise.
691 * fbsd-nat.c: Likewise.
692 * findcmd.c: Likewise.
693 * findvar.c: Likewise.
694 * fork-child.c: Likewise.
695 * frame.c: Likewise.
696 * frv-linux-tdep.c: Likewise.
697 * frv-tdep.c: Likewise.
698 * gdb.c: Likewise.
699 * gdb_bfd.c: Likewise.
700 * gdbarch.c: Likewise.
701 * gdbarch.sh: Likewise.
702 * gdbtypes.c: Likewise.
703 * gnu-nat.c: Likewise.
704 * gnu-v2-abi.c: Likewise.
705 * gnu-v3-abi.c: Likewise.
706 * go-exp.y: Likewise.
707 * go-lang.c: Likewise.
708 * go32-nat.c: Likewise.
709 * guile/guile.c: Likewise.
710 * guile/scm-auto-load.c: Likewise.
711 * hppa-hpux-tdep.c: Likewise.
712 * hppa-linux-nat.c: Likewise.
713 * hppanbsd-tdep.c: Likewise.
714 * hppaobsd-tdep.c: Likewise.
715 * i386-cygwin-tdep.c: Likewise.
716 * i386-dicos-tdep.c: Likewise.
717 * i386-linux-tdep.c: Likewise.
718 * i386-nto-tdep.c: Likewise.
719 * i386-sol2-tdep.c: Likewise.
720 * i386-tdep.c: Likewise.
721 * i386bsd-tdep.c: Likewise.
722 * i386gnu-nat.c: Likewise.
723 * i386nbsd-tdep.c: Likewise.
724 * i386obsd-tdep.c: Likewise.
725 * i387-tdep.c: Likewise.
726 * ia64-libunwind-tdep.c: Likewise.
727 * ia64-linux-nat.c: Likewise.
728 * inf-child.c: Likewise.
729 * inf-ptrace.c: Likewise.
730 * inf-ttrace.c: Likewise.
731 * infcall.c: Likewise.
732 * infcmd.c: Likewise.
733 * inflow.c: Likewise.
734 * infrun.c: Likewise.
735 * interps.c: Likewise.
736 * iq2000-tdep.c: Likewise.
737 * irix5-nat.c: Likewise.
738 * jv-exp.y: Likewise.
739 * jv-lang.c: Likewise.
740 * jv-typeprint.c: Likewise.
741 * jv-valprint.c: Likewise.
742 * language.c: Likewise.
743 * linux-fork.c: Likewise.
744 * linux-nat.c: Likewise.
745 * lm32-tdep.c: Likewise.
746 * m2-exp.y: Likewise.
747 * m2-typeprint.c: Likewise.
748 * m32c-tdep.c: Likewise.
749 * m32r-linux-nat.c: Likewise.
750 * m32r-linux-tdep.c: Likewise.
751 * m32r-rom.c: Likewise.
752 * m32r-tdep.c: Likewise.
753 * m68hc11-tdep.c: Likewise.
754 * m68k-tdep.c: Likewise.
755 * m68kbsd-tdep.c: Likewise.
756 * m68klinux-nat.c: Likewise.
757 * m68klinux-tdep.c: Likewise.
758 * m88k-tdep.c: Likewise.
759 * machoread.c: Likewise.
760 * macrocmd.c: Likewise.
761 * main.c: Likewise.
762 * mdebugread.c: Likewise.
763 * mem-break.c: Likewise.
764 * memattr.c: Likewise.
765 * memory-map.c: Likewise.
766 * mep-tdep.c: Likewise.
767 * mi/mi-cmd-break.c: Likewise.
768 * mi/mi-cmd-disas.c: Likewise.
769 * mi/mi-cmd-env.c: Likewise.
770 * mi/mi-cmd-stack.c: Likewise.
771 * mi/mi-cmd-var.c: Likewise.
772 * mi/mi-cmds.c: Likewise.
773 * mi/mi-console.c: Likewise.
774 * mi/mi-getopt.c: Likewise.
775 * mi/mi-interp.c: Likewise.
776 * mi/mi-main.c: Likewise.
777 * mi/mi-parse.c: Likewise.
778 * microblaze-rom.c: Likewise.
779 * microblaze-tdep.c: Likewise.
780 * mingw-hdep.c: Likewise.
781 * minidebug.c: Likewise.
782 * minsyms.c: Likewise.
783 * mips-irix-tdep.c: Likewise.
784 * mips-linux-tdep.c: Likewise.
785 * mips-tdep.c: Likewise.
786 * mips64obsd-tdep.c: Likewise.
787 * mipsnbsd-tdep.c: Likewise.
788 * mipsread.c: Likewise.
789 * mn10300-linux-tdep.c: Likewise.
790 * mn10300-tdep.c: Likewise.
791 * monitor.c: Likewise.
792 * moxie-tdep.c: Likewise.
793 * mt-tdep.c: Likewise.
794 * nat/linux-btrace.c: Likewise.
795 * nat/linux-osdata.c: Likewise.
796 * nat/linux-procfs.c: Likewise.
797 * nat/linux-ptrace.c: Likewise.
798 * nat/linux-waitpid.c: Likewise.
799 * nbsd-tdep.c: Likewise.
800 * nios2-linux-tdep.c: Likewise.
801 * nto-procfs.c: Likewise.
802 * nto-tdep.c: Likewise.
803 * objc-lang.c: Likewise.
804 * objfiles.c: Likewise.
805 * opencl-lang.c: Likewise.
806 * osabi.c: Likewise.
807 * osdata.c: Likewise.
808 * p-exp.y: Likewise.
809 * p-lang.c: Likewise.
810 * p-typeprint.c: Likewise.
811 * parse.c: Likewise.
812 * posix-hdep.c: Likewise.
813 * ppc-linux-nat.c: Likewise.
814 * ppc-sysv-tdep.c: Likewise.
815 * ppcfbsd-tdep.c: Likewise.
816 * ppcnbsd-tdep.c: Likewise.
817 * ppcobsd-tdep.c: Likewise.
818 * printcmd.c: Likewise.
819 * procfs.c: Likewise.
820 * prologue-value.c: Likewise.
821 * python/py-auto-load.c: Likewise.
822 * python/py-gdb-readline.c: Likewise.
823 * ravenscar-thread.c: Likewise.
824 * regcache.c: Likewise.
825 * registry.c: Likewise.
826 * remote-fileio.c: Likewise.
827 * remote-m32r-sdi.c: Likewise.
828 * remote-mips.c: Likewise.
829 * remote-notif.c: Likewise.
830 * remote-sim.c: Likewise.
831 * remote.c: Likewise.
832 * reverse.c: Likewise.
833 * rs6000-aix-tdep.c: Likewise.
834 * ser-base.c: Likewise.
835 * ser-go32.c: Likewise.
836 * ser-mingw.c: Likewise.
837 * ser-pipe.c: Likewise.
838 * ser-tcp.c: Likewise.
839 * ser-unix.c: Likewise.
840 * serial.c: Likewise.
841 * sh-tdep.c: Likewise.
842 * sh64-tdep.c: Likewise.
843 * shnbsd-tdep.c: Likewise.
844 * skip.c: Likewise.
845 * sol-thread.c: Likewise.
846 * solib-dsbt.c: Likewise.
847 * solib-frv.c: Likewise.
848 * solib-osf.c: Likewise.
849 * solib-som.c: Likewise.
850 * solib-spu.c: Likewise.
851 * solib-target.c: Likewise.
852 * solib.c: Likewise.
853 * somread.c: Likewise.
854 * source.c: Likewise.
855 * sparc-nat.c: Likewise.
856 * sparc-sol2-tdep.c: Likewise.
857 * sparc-tdep.c: Likewise.
858 * sparc64-tdep.c: Likewise.
859 * sparc64fbsd-tdep.c: Likewise.
860 * sparc64nbsd-tdep.c: Likewise.
861 * sparcnbsd-tdep.c: Likewise.
862 * spu-linux-nat.c: Likewise.
863 * spu-multiarch.c: Likewise.
864 * spu-tdep.c: Likewise.
865 * stabsread.c: Likewise.
866 * stack.c: Likewise.
867 * std-regs.c: Likewise.
868 * symfile.c: Likewise.
869 * symmisc.c: Likewise.
870 * symtab.c: Likewise.
871 * target.c: Likewise.
872 * thread.c: Likewise.
873 * tilegx-linux-nat.c: Likewise.
874 * tilegx-tdep.c: Likewise.
875 * top.c: Likewise.
876 * tracepoint.c: Likewise.
877 * tui/tui-command.c: Likewise.
878 * tui/tui-data.c: Likewise.
879 * tui/tui-disasm.c: Likewise.
880 * tui/tui-file.c: Likewise.
881 * tui/tui-layout.c: Likewise.
882 * tui/tui-out.c: Likewise.
883 * tui/tui-regs.c: Likewise.
884 * tui/tui-source.c: Likewise.
885 * tui/tui-stack.c: Likewise.
886 * tui/tui-win.c: Likewise.
887 * tui/tui-windata.c: Likewise.
888 * tui/tui-winsource.c: Likewise.
889 * typeprint.c: Likewise.
890 * ui-file.c: Likewise.
891 * ui-out.c: Likewise.
892 * user-regs.c: Likewise.
893 * utils.c: Likewise.
894 * v850-tdep.c: Likewise.
895 * valarith.c: Likewise.
896 * valops.c: Likewise.
897 * valprint.c: Likewise.
898 * value.c: Likewise.
899 * varobj.c: Likewise.
900 * vax-tdep.c: Likewise.
901 * vaxnbsd-tdep.c: Likewise.
902 * vaxobsd-tdep.c: Likewise.
903 * windows-nat.c: Likewise.
904 * xcoffread.c: Likewise.
905 * xml-support.c: Likewise.
906 * xstormy16-tdep.c: Likewise.
907 * xtensa-linux-nat.c: Likewise.
908
dccbb609
GB
9092014-08-07 Gary Benson <gbenson@redhat.com>
910
911 * common/common-defs.h: Include gdb_assert.h.
912 * aarch64-tdep.c: Do not include gdb_assert.h.
913 * addrmap.c: Likewise.
914 * aix-thread.c: Likewise.
915 * alpha-linux-tdep.c: Likewise.
916 * alpha-mdebug-tdep.c: Likewise.
917 * alphanbsd-tdep.c: Likewise.
918 * amd64-nat.c: Likewise.
919 * amd64-tdep.c: Likewise.
920 * amd64bsd-nat.c: Likewise.
921 * amd64fbsd-nat.c: Likewise.
922 * amd64fbsd-tdep.c: Likewise.
923 * amd64nbsd-nat.c: Likewise.
924 * amd64nbsd-tdep.c: Likewise.
925 * amd64obsd-nat.c: Likewise.
926 * amd64obsd-tdep.c: Likewise.
927 * arch-utils.c: Likewise.
928 * arm-tdep.c: Likewise.
929 * armbsd-tdep.c: Likewise.
930 * auxv.c: Likewise.
931 * bcache.c: Likewise.
932 * bfin-tdep.c: Likewise.
933 * blockframe.c: Likewise.
934 * breakpoint.c: Likewise.
935 * bsd-kvm.c: Likewise.
936 * bsd-uthread.c: Likewise.
937 * buildsym.c: Likewise.
938 * c-exp.y: Likewise.
939 * c-lang.c: Likewise.
940 * charset.c: Likewise.
941 * cleanups.c: Likewise.
942 * cli-out.c: Likewise.
943 * cli/cli-decode.c: Likewise.
944 * cli/cli-dump.c: Likewise.
945 * cli/cli-logging.c: Likewise.
946 * cli/cli-script.c: Likewise.
947 * cli/cli-utils.c: Likewise.
948 * coffread.c: Likewise.
949 * common/common-utils.c: Likewise.
950 * common/queue.h: Likewise.
951 * common/signals.c: Likewise.
952 * common/vec.h: Likewise.
953 * complaints.c: Likewise.
954 * completer.c: Likewise.
955 * corelow.c: Likewise.
956 * cp-abi.c: Likewise.
957 * cp-name-parser.y: Likewise.
958 * cp-namespace.c: Likewise.
959 * cp-support.c: Likewise.
960 * cris-tdep.c: Likewise.
961 * dbxread.c: Likewise.
962 * dictionary.c: Likewise.
963 * doublest.c: Likewise.
964 * dsrec.c: Likewise.
965 * dummy-frame.c: Likewise.
966 * dwarf2-frame-tailcall.c: Likewise.
967 * dwarf2-frame.c: Likewise.
968 * dwarf2expr.c: Likewise.
969 * dwarf2loc.c: Likewise.
970 * dwarf2read.c: Likewise.
971 * eval.c: Likewise.
972 * event-loop.c: Likewise.
973 * exceptions.c: Likewise.
974 * expprint.c: Likewise.
975 * f-valprint.c: Likewise.
976 * fbsd-nat.c: Likewise.
977 * findvar.c: Likewise.
978 * frame-unwind.c: Likewise.
979 * frame.c: Likewise.
980 * frv-tdep.c: Likewise.
981 * gcore.c: Likewise.
982 * gdb-dlfcn.c: Likewise.
983 * gdb_bfd.c: Likewise.
984 * gdbarch.c: Likewise.
985 * gdbarch.sh: Likewise.
986 * gdbtypes.c: Likewise.
987 * gnu-nat.c: Likewise.
988 * gnu-v3-abi.c: Likewise.
989 * go-lang.c: Likewise.
990 * guile/scm-exception.c: Likewise.
991 * guile/scm-gsmob.c: Likewise.
992 * guile/scm-lazy-string.c: Likewise.
993 * guile/scm-math.c: Likewise.
994 * guile/scm-pretty-print.c: Likewise.
995 * guile/scm-safe-call.c: Likewise.
996 * guile/scm-utils.c: Likewise.
997 * guile/scm-value.c: Likewise.
998 * h8300-tdep.c: Likewise.
999 * hppa-hpux-nat.c: Likewise.
1000 * hppa-tdep.c: Likewise.
1001 * hppanbsd-tdep.c: Likewise.
1002 * hppaobsd-tdep.c: Likewise.
1003 * i386-darwin-nat.c: Likewise.
1004 * i386-darwin-tdep.c: Likewise.
1005 * i386-nto-tdep.c: Likewise.
1006 * i386-tdep.c: Likewise.
1007 * i386bsd-nat.c: Likewise.
1008 * i386fbsd-tdep.c: Likewise.
1009 * i386gnu-nat.c: Likewise.
1010 * i386nbsd-tdep.c: Likewise.
1011 * i386obsd-tdep.c: Likewise.
1012 * i387-tdep.c: Likewise.
1013 * ia64-libunwind-tdep.c: Likewise.
1014 * ia64-tdep.c: Likewise.
1015 * inf-ptrace.c: Likewise.
1016 * inf-ttrace.c: Likewise.
1017 * infcall.c: Likewise.
1018 * infcmd.c: Likewise.
1019 * infrun.c: Likewise.
1020 * inline-frame.c: Likewise.
1021 * interps.c: Likewise.
1022 * jv-lang.c: Likewise.
1023 * jv-typeprint.c: Likewise.
1024 * linux-fork.c: Likewise.
1025 * linux-nat.c: Likewise.
1026 * linux-thread-db.c: Likewise.
1027 * m32c-tdep.c: Likewise.
1028 * m32r-linux-nat.c: Likewise.
1029 * m32r-tdep.c: Likewise.
1030 * m68k-tdep.c: Likewise.
1031 * m68kbsd-nat.c: Likewise.
1032 * m68kbsd-tdep.c: Likewise.
1033 * m88k-tdep.c: Likewise.
1034 * machoread.c: Likewise.
1035 * macroexp.c: Likewise.
1036 * macrotab.c: Likewise.
1037 * maint.c: Likewise.
1038 * mdebugread.c: Likewise.
1039 * memory-map.c: Likewise.
1040 * mep-tdep.c: Likewise.
1041 * mi/mi-common.c: Likewise.
1042 * microblaze-tdep.c: Likewise.
1043 * mingw-hdep.c: Likewise.
1044 * mips-linux-nat.c: Likewise.
1045 * mips-linux-tdep.c: Likewise.
1046 * mips-tdep.c: Likewise.
1047 * mips64obsd-tdep.c: Likewise.
1048 * mipsnbsd-tdep.c: Likewise.
1049 * mn10300-linux-tdep.c: Likewise.
1050 * mn10300-tdep.c: Likewise.
1051 * moxie-tdep.c: Likewise.
1052 * mt-tdep.c: Likewise.
1053 * nat/linux-btrace.c: Likewise.
1054 * nat/linux-osdata.c: Likewise.
1055 * nat/linux-ptrace.c: Likewise.
1056 * nat/mips-linux-watch.c: Likewise.
1057 * nios2-linux-tdep.c: Likewise.
1058 * nios2-tdep.c: Likewise.
1059 * objc-lang.c: Likewise.
1060 * objfiles.c: Likewise.
1061 * obsd-nat.c: Likewise.
1062 * opencl-lang.c: Likewise.
1063 * osabi.c: Likewise.
1064 * parse.c: Likewise.
1065 * ppc-linux-nat.c: Likewise.
1066 * ppc-sysv-tdep.c: Likewise.
1067 * ppcfbsd-nat.c: Likewise.
1068 * ppcfbsd-tdep.c: Likewise.
1069 * ppcnbsd-nat.c: Likewise.
1070 * ppcnbsd-tdep.c: Likewise.
1071 * ppcobsd-nat.c: Likewise.
1072 * ppcobsd-tdep.c: Likewise.
1073 * printcmd.c: Likewise.
1074 * procfs.c: Likewise.
1075 * prologue-value.c: Likewise.
1076 * psymtab.c: Likewise.
1077 * python/py-lazy-string.c: Likewise.
1078 * python/py-value.c: Likewise.
1079 * regcache.c: Likewise.
1080 * reggroups.c: Likewise.
1081 * registry.c: Likewise.
1082 * remote-sim.c: Likewise.
1083 * remote.c: Likewise.
1084 * rs6000-aix-tdep.c: Likewise.
1085 * rs6000-tdep.c: Likewise.
1086 * s390-linux-tdep.c: Likewise.
1087 * score-tdep.c: Likewise.
1088 * ser-base.c: Likewise.
1089 * ser-mingw.c: Likewise.
1090 * sh-tdep.c: Likewise.
1091 * sh64-tdep.c: Likewise.
1092 * solib-darwin.c: Likewise.
1093 * solib-spu.c: Likewise.
1094 * solib-svr4.c: Likewise.
1095 * source.c: Likewise.
1096 * sparc-nat.c: Likewise.
1097 * sparc-sol2-tdep.c: Likewise.
1098 * sparc-tdep.c: Likewise.
1099 * sparc64-sol2-tdep.c: Likewise.
1100 * sparc64-tdep.c: Likewise.
1101 * sparc64fbsd-tdep.c: Likewise.
1102 * sparc64nbsd-tdep.c: Likewise.
1103 * sparc64obsd-tdep.c: Likewise.
1104 * sparcnbsd-tdep.c: Likewise.
1105 * sparcobsd-tdep.c: Likewise.
1106 * spu-multiarch.c: Likewise.
1107 * spu-tdep.c: Likewise.
1108 * stabsread.c: Likewise.
1109 * stack.c: Likewise.
1110 * symfile.c: Likewise.
1111 * symtab.c: Likewise.
1112 * target-descriptions.c: Likewise.
1113 * target-memory.c: Likewise.
1114 * target.c: Likewise.
1115 * tic6x-linux-tdep.c: Likewise.
1116 * tic6x-tdep.c: Likewise.
1117 * tilegx-linux-nat.c: Likewise.
1118 * tilegx-tdep.c: Likewise.
1119 * top.c: Likewise.
1120 * tramp-frame.c: Likewise.
1121 * tui/tui-out.c: Likewise.
1122 * tui/tui-winsource.c: Likewise.
1123 * ui-out.c: Likewise.
1124 * user-regs.c: Likewise.
1125 * utils.c: Likewise.
1126 * v850-tdep.c: Likewise.
1127 * valops.c: Likewise.
1128 * value.c: Likewise.
1129 * varobj.c: Likewise.
1130 * vax-nat.c: Likewise.
1131 * xml-syscall.c: Likewise.
1132 * xml-tdesc.c: Likewise.
1133 * xstormy16-tdep.c: Likewise.
1134 * xtensa-linux-nat.c: Likewise.
1135 * xtensa-tdep.c: Likewise.
1136
e76df0d0
GB
11372014-08-07 Gary Benson <gbenson@redhat.com>
1138
1139 * common/common-defs.h: Include common-utils.h.
1140 * defs.h: Do not include common-utils.h.
1141 * common/gdb_assert.h: Likewise.
1142 * darwin-nat.h: Likewise.
1143 * nat/linux-btrace.c: Likewise.
1144 * target/waitstatus.h: Likewise.
1145
4cb9c816
GB
11462014-08-07 Gary Benson <gbenson@redhat.com>
1147
1148 * common/common-defs.h: Include ptid.h.
1149 * defs.h: Do not include ptid.h.
1150 * inferior.h: Likewise.
1151 * infrun.h: Likewise.
1152 * nat/linux-btrace.h: Likewise.
1153 * nat/linux-osdata.h: Likewise.
1154 * target/waitstatus.h: Likewise.
1155
3995eeee
GB
11562014-08-07 Gary Benson <gbenson@redhat.com>
1157
1158 * common/common-defs.h: Include gdb_locale.h.
1159 * defs.h: Do not include gdb_locale.h.
1160
cb9f1a9b
GB
11612014-08-07 Gary Benson <gbenson@redhat.com>
1162
1163 * common/common-defs.h: Include gdb/signals.h.
1164 * defs.h: Do not include gdb/signals.h.
1165
a5fceff8
GB
11662014-08-07 Gary Benson <gbenson@redhat.com>
1167
1168 * common/common-defs.h: Include pathmax.h.
1169 * defs.h: Do not include pathmax.h.
1170
b9391142
GB
11712014-08-07 Gary Benson <gbenson@redhat.com>
1172
1173 * common/common-defs.h: Include libiberty.h.
1174 * defs.h: Do not include libiberty.h.
1175 * common/queue.h: Likewise.
1176 * cp-name-parser.y: Likewise.
1177 * mi/mi-cmd-catch.c: Likewise.
1178 * python/python.c: Likewise.
1179
0e443c87
GB
11802014-08-07 Gary Benson <gbenson@redhat.com>
1181
1182 * common/common-defs.h: Include ansidecl.h.
1183 * defs.h: Do not include ansidecl.h.
1184 * common/buffer.h: Likewise.
1185 * common/common-utils.h: Likewise.
1186
8ebb3f56
GB
11872014-08-07 Gary Benson <gbenson@redhat.com>
1188
1189 * common/common-defs.h: Include stddef.h.
1190 * defs.h: Do not include stddef.h.
1191 * common/common-utils.h: Likewise.
1192 * amd64fbsd-nat.c: Likewise.
1193 * bcache.c: Likewise.
1194 * charset.c: Likewise.
1195 * common/buffer.h: Likewise.
1196 * common/vec.h: Likewise.
1197 * i386bsd-nat.c: Likewise.
1198 * nat/linux-btrace.h: Likewise.
1199 * ppcfbsd-nat.c: Likewise.
1200 * ppcnbsd-tdep.h: Likewise.
1201 * ppcobsd-nat.c: Likewise.
1202 * ppcobsd-tdep.h: Likewise.
1203 * python/py-gdb-readline.c: Likewise.
1204
8980bdf6
GB
12052014-08-07 Gary Benson <gbenson@redhat.com>
1206
1207 * common/common-defs.h: Include stdarg.h.
1208 * defs.h: Do not include stdarg.h.
1209 * ada-lang.c: Likewise.
1210 * common/common-utils.h: Likewise.
1211 * guile/scm-string.c: Likewise.
1212 * guile/scm-utils.c: Likewise.
1213 * m32c-tdep.c: Likewise.
1214
d7096f71
GB
12152014-08-07 Gary Benson <gbenson@redhat.com>
1216
1217 * common/common-defs.h: Include stdlib.h.
1218 * defs.h: Do not include stdlib.h.
1219 * addrmap.c: Likewise.
1220 * bcache.c: Likewise.
1221 * common/buffer.c: Likewise.
1222 * common/common-utils.c: Likewise.
1223 * cp-name-parser.y: Likewise.
1224 * go32-nat.c: Likewise.
1225 * mn10300-linux-tdep.c: Likewise.
1226 * nat/linux-osdata.c: Likewise.
1227 * tui/tui.c: Likewise.
1228 * windows-nat.c: Likewise.
1229
d02f550d
GB
12302014-08-07 Gary Benson <gbenson@redhat.com>
1231
1232 * common/common-defs.h: Include stdio.h.
1233 * defs.h: Do not include stdio.h.
1234 * ada-lang.c: Likewise.
1235 * common/buffer.c: Likewise.
1236 * common/common-utils.c: Likewise.
1237 * cp-name-parser.y: Likewise.
1238 * gnu-nat.c: Likewise.
1239 * go32-nat.c: Likewise.
1240 * i386gnu-nat.c: Likewise.
1241 * proc-api.c: Likewise.
1242 * proc-events.c: Likewise.
1243 * proc-flags.c: Likewise.
1244 * proc-why.c: Likewise.
1245 * python/python-internal.h: Likewise.
1246 * target-memory.c: Likewise.
1247 * tui/tui-io.c: Likewise.
1248 * tui/tui.c: Likewise.
1249
b6d7a4bf
SM
12502014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1251
1252 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1253 (scan_dyntag_auxv): Same.
1254
af19829b
YQ
12552014-08-06 Yao Qi <yao@codesourcery.com>
1256
1257 * amd64-linux-nat.c: Remove duplicated include
1258 "x86-linux-nat.h".
1259 * i386-linux-nat.c: Likewise.
1260
8e07a239
YQ
12612014-08-06 Yao Qi <yao@codesourcery.com>
1262
1263 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1264 operand" with "Special opcode" in comments.
1265
7bfe8241
GB
12662014-08-05 Gary Benson <gbenson@redhat.com>
1267
1268 * interps.c (initialize_interps): Remove prototype.
1269 (interpreter_initialized): Remove static global.
1270 (interp_add): Do not call initialize_interps.
1271 (initialize_interps): Remove function.
1272
d6c95504
GB
12732014-08-05 Gary Benson <gbenson@redhat.com>
1274
1275 * utils.c (vwarning): Remove spurious va_end.
1276
241fd515
AM
12772014-08-05 Alan Modra <amodra@gmail.com>
1278
1279 * charset.c (convert_between_encodings): Cast result of obstack_base.
1280 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1281 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1282 (read_unwind_info): Use size_t for some locals.
1283 * jit.c (finalize_symtab): Likewise.
1284 * utils.c (hashtab_obstack_allocate): Likewise.
1285 * symmisc.c (print_objfile_statistics): Update format strings.
1286
dc304a94
JK
12872014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1288
1289 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1290 (Changes in GDB 7.8): ... here.
1291
3cecbbbe
TT
12922014-08-04 Tom Tromey <tromey@redhat.com>
1293
1294 * target.c (set_targetdebug): New function.
1295 (initialize_targets): Pass set_targetdebug when creating "set
1296 debug target".
1297
6908c509
JB
12982014-08-01 Joel Brobecker <brobecker@adacore.com>
1299
1300 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1301 if detecting a variable-sized field that is not the last field.
1302 Fix struct type length computation.
1303
53e8f97d
JB
13042014-08-01 Joel Brobecker <brobecker@adacore.com>
1305
1306 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1307 Add debug trace.
1308
e068c55d
JB
13092014-08-01 Joel Brobecker <brobecker@adacore.com>
1310
1311 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1312 Remove "+ 8" offset in computation of CHAIN_VMA.
1313
4d4ca2a1
DE
13142014-07-31 Doug Evans <dje@google.com>
1315
1316 * inflow.c (child_terminal_inferior): Add comment.
1317 (child_terminal_ours_for_output): Add comment.
1318 (child_terminal_ours): Add comment.
1319 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1320 (linux_nat_terminal_ours): Add comment.
1321
462f517e
GB
13222014-07-31 Gary Benson <gbenson@redhat.com>
1323
1324 * common/btrace-common.h: Do not include defs.h or server.h.
1325 * nat/mips-linux-watch.h: Likewise.
1326 * gdb-dlfcn.h: Do not include defs.h.
1327 * tracefile.h: Likewise.
1328
74228e77
RM
13292014-07-30 Roland McGrath <mcgrathr@google.com>
1330
1331 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1332
014f9477
TT
13332014-07-30 Tom Tromey <tromey@redhat.com>
1334
1335 * bsd-kvm.c (bsd_kvm_open): Constify.
1336 * corelow.c (core_open): Constify.
1337 * ctf.c (ctf_open): Constify.
1338 * dbug-rom.c (dbug_open): Constify.
1339 * exec.c (exec_open): Constify.
1340 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1341 * microblaze-rom.c (picobug_open): Constify.
1342 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1343 Constify.
1344 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1345 * record-btrace.c (record_btrace_open): Constify.
1346 * record-full.c (record_full_core_open_1, record_full_open_1)
1347 (record_full_open): Constify.
1348 * remote-m32r-sdi.c (m32r_open): Constify.
1349 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1350 (rockhopper_open, lsi_open): Constify.
1351 * remote-sim.c (gdbsim_open): Constify.
1352 * remote.c (remote_open, extended_remote_open, remote_open_1):
1353 Constify.
1354 * target.h (struct target_ops) <to_open>: Make "arg" const.
1355 * tracefile-tfile.c (tfile_open): Constify.
1356
e799154c
TT
13572014-07-30 Tom Tromey <tromey@redhat.com>
1358
1359 * breakpoint.c (map_breakpoint_numbers): Update.
1360 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1361 (get_number_const): New function.
1362 (get_number): Rewrite using get_number_const.
1363 (init_number_or_range): Make "string" const.
1364 (number_is_in_list): Make "list" const.
1365 * cli/cli-utils.h (get_number_const): Declare.
1366 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1367 (init_number_or_range, number_is_in_list): Update.
1368 * printcmd.c (map_display_numbers): Update.
1369 * value.c (value_from_history_ref): Constify.
1370 * value.h (value_from_history_ref): Update.
1371
5f08566b
TT
13722014-07-30 Tom Tromey <tromey@redhat.com>
1373
1374 * corefile.c (hook_type, call_extra_exec_file_hooks)
1375 (specify_exec_file_hook): Constify.
1376 * exec.c (exec_file_attach): Make "filename" const.
1377 * gdbcore.h (deprecated_exec_file_display_hook)
1378 (specify_exec_file_hook, exec_file_attach): Constify.
1379 * main.c (captured_main): Use catch_command_errors_const.
1380
8981c758
TT
13812014-07-30 Tom Tromey <tromey@redhat.com>
1382
1383 * target.c (open_target): New function.
1384 (add_target_with_completer, add_deprecated_target_alias): Use
1385 set_cmd_sfunc, set_cmd_context.
1386 (debug_to_open): Remove.
1387 (setup_target_debug): Update.
1388
a1c7835a
YQ
13892014-07-30 Yao Qi <yao@codesourcery.com>
1390
1391 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1392 comments.
1393 * parse.c (exp_iterate): Update comments.
1394
976411d6
GB
13952014-07-30 Gary Benson <gbenson@redhat.com>
1396
1397 * common/common-defs.h: New file.
1398 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1399 * defs.h: Include common-defs.h.
1400 Do not include config.h or build-gnulib/config.h.
1401
5d4848a4
GB
14022014-07-30 Gary Benson <gbenson@redhat.com>
1403
1404 * common/common-utils.h: Do not include config.h.
1405 * nat/linux-btrace.h: Likewise.
1406
d41f6d8e
GB
14072014-07-30 Gary Benson <gbenson@redhat.com>
1408
1409 * btrace.c: Include defs.h.
1410 * common/ptid.c: Include defs.h or server.h as appropriate.
1411 * nat/mips-linux-watch.c: Likewise.
1412
84202f9c
TT
14132014-07-29 Tom Tromey <tromey@redhat.com>
1414
1415 * target.c (target_is_pushed): Simplify.
1416
2530441c
JB
14172014-07-29 Joel Brobecker <brobecker@adacore.com>
1418
1419 GDB 7.8 released.
1420
7e09a223
YQ
14212014-07-29 Yao Qi <yao@codesourcery.com>
1422
1423 PR gdb/17206
1424 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1425
7ebdbe92
DE
14262014-07-28 Doug Evans <xdje42@gmail.com>
1427
1428 PR guile/17203
1429 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1430 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1431 parameters.
1432
f347ffc9
WN
14332014-07-28 Will Newton <will.newton@linaro.org>
1434
1435 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1436 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1437 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1438 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1439 (THUMB2_EABI_SYSCALL): Likewise.
1440 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1441 struct tramp_frame.
1442 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1443 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1444
37c5f1f7
DE
14452014-07-27 Doug Evans <xdje42@gmail.com>
1446
1447 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1448
0c3abbc7
DE
14492014-07-27 Doug Evans <xdje42@gmail.com>
1450
1451 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1452
e76c5d17
DE
14532014-07-26 Ludovic Courtès <ludo@gnu.org>
1454 Doug Evans <xdje42@gmail.com>
1455
1456 PR guile/17146
1457 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1458 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1459 * configure.ac: Try to use guild to compile an scm file, if it fails
1460 then disable guile support.
1461 * configure: Regenerate.
1462 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1463 GUILE_FILE_LIST.
1464 (GUILE_COMPILED_FILES): New variable.
1465 (GUILE_FILES) Update.
1466 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1467 (stamp-guile): Compile scm files.
1468 * guile/guile.c (boot_guile_support): New function.
1469 (standard_throw_args_p): New function.
1470 (print_standard_throw_error, print_throw_error): New functions.
1471 (handle_boot_error): New function.
1472 (initialize_scheme_side): Rewrite to call boot_guile_support.
1473 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1474 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1475
186fcde0
DE
14762014-07-26 Ludovic Courtès <ludo@gnu.org>
1477 Doug Evans <xdje42@gmail.com>
1478
1479 PR guile/17146
1480 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1481 * guile/lib/gdb/support.scm: New file.
1482 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1483 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1484 All uses updated.
1485 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1486 All uses updated.
1487 (%assert-type): Ditto, and renamed to assert-type.
1488 (%exception-print-style): Delete.
1489
4df42755
DE
14902014-07-26 Doug Evans <xdje42@gmail.com>
1491
1492 PR build/17105
1493 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1494 * configure: Regenerate.
1495 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1496 PYTHON_FILES.
1497 (PYTHON_FILES): New variable.
1498 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1499 (GUILE_FILES): New variable.
1500 (stamp-python, install-python, uninstall-python): Handle empty
1501 file list.
1502 (stamp-guile, install-guile, uninstall-guile): Ditto.
1503
ee7333ae
DE
15042014-07-26 Doug Evans <xdje42@gmail.com>
1505
1506 PR guile/17177
1507 * guile/lib/gdb.scm (pretty-printers): Export.
1508 (set-pretty-printers!): Export.
1509 * guile/lib/gdb/printing.scm (gdb module): Update.
1510 (prepend-pretty-printer!, append-pretty-printer!): Update.
1511 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1512 (pretty_printer_list_var): Delete.
1513 (pretty_printer_list): New static global.
1514 (gdbscm_pretty_printers): New function.
1515 (gdbscm_set_pretty_printers_x): New function.
1516 (ppscm_find_pretty_printer_from_gdb): Update.
1517 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1518 (gdbscm_initialize_pretty_printers): Update.
1519
74edf516
DE
15202014-07-26 Doug Evans <xdje42@gmail.com>
1521
1522 PR 17185
1523 * configure.ac: Add check for header gc/gc.h.
1524 Add check for function setenv.
1525 * configure: Regenerate.
1526 * config.in: Regenerate.
1527 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1528
d54398a7
MR
15292014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1530
1531 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1532 variation in gdbarch matching.
1533
ab16fce8
TT
15342014-07-25 Tom Tromey <tromey@redhat.com>
1535
1536 * exec.c (using_exec_ops): Remove.
1537 (exec_close_1): Update. Remove extraneous block, reindent.
1538 (add_target_sections): Use target_is_pushed.
1539
88056fbb
PA
15402014-07-25 Pedro Alves <palves@redhat.com>
1541
1542 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1543 * monitor.c (monitor_create_inferior): Likewise.
1544 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1545 * remote-sim.c (gdbsim_create_inferior): Likewise.
1546 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1547 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1548 * windows-nat.c (do_initial_windows_stuff): Likewise.
1549
70509625
PA
15502014-07-25 Pedro Alves <palves@redhat.com>
1551
1552 * NEWS: Mention signal passing and "signal" command changes.
1553 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1554 comment.
1555 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1556 call.
1557 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1558 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1559 (jump_command): Adjust clear_proceed_status call.
1560 (signal_command): Warn if other thread that are resumed have
1561 signals that will be delivered. Adjust clear_proceed_status call.
1562 (until_next_command, finish_command)
1563 (proceed_after_attach_callback, attach_command_post_wait)
1564 (attach_command): Adjust clear_proceed_status call.
1565 * infrun.c (proceed_after_vfork_done): Likewise.
1566 (proceed_after_attach_callback): Adjust comment.
1567 (clear_proceed_status_thread): Clear stop_signal if not in pass
1568 state.
1569 (clear_proceed_status_callback): Delete.
1570 (clear_proceed_status): New 'step' parameter. Only clear the
1571 proceed status of threads the command being prepared is about to
1572 resume.
1573 (proceed): If passed in an explicit signal, override stop_signal
1574 with it. Don't pass the last stop signal to the thread we're
1575 resuming.
1576 (init_wait_for_inferior): Adjust clear_proceed_status call.
1577 (switch_back_to_stepped_thread): Clear the signal if it should not
1578 be passed.
1579 * infrun.h (clear_proceed_status): New 'step' parameter.
1580 (user_visible_resume_ptid): Add comment.
1581 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1582 signal is in pass state.
1583 * remote.c (append_pending_thread_resumptions): Likewise.
1584 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1585
d8be2939
TT
15862014-07-25 Tom Tromey <tromey@redhat.com>
1587
1588 * target.h (target_stopped_data_address)
1589 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1590 parentheses.
1591
7d0d9d2b
PL
15922014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1593
1594 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1595 comments.
1596 (avr_pointer_to_address): Likewise.
1597
e9e7f724
TT
15982014-07-24 Tom Tromey <tromey@redhat.com>
1599
1600 * monitor.c (compile_pattern): Update.
1601 * target.h (struct target_ops) <to_shortname, to_longname,
1602 to_doc>: Now const.
1603
1947513d
TT
16042014-07-24 Tom Tromey <tromey@redhat.com>
1605
1606 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1607 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1608 (add_info_alias, add_com): Make "doc" const.
1609 (print_doc_line): Make "str" const.
1610 (delete_cmd): Update.
1611 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1612 (print_doc_line): Update.
1613 * cli/cli-script.c (document_command): Update.
1614 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1615 (add_com, add_info, add_info_alias): Update.
1616 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1617 * python/py-cmd.c (cmdpy_destroyer): Update.
1618
64e61d29
TT
16192014-07-24 Tom Tromey <tromey@redhat.com>
1620
1621 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1622 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1623 (help_cmd_list): Constify.
1624 (lookup_cmd): Update.
1625 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1626 const.
1627 (help_cmd_list, apropos_cmd): Update.
1628 * cli/cli-script.c (show_user): Update.
1629 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1630 * cli/cli-setshow.h (cmd_show_list): Update.
1631 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1632 (cmd_show_list): Update.
1633 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1634 * python/py-cmd.c (cmdpy_destroyer): Update.
1635
429e55ea
TT
16362014-07-24 Tom Tromey <tromey@redhat.com>
1637
1638 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1639 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1640 const.
1641 * command.h (deprecate_cmd): Update.
1642 * maint.c (maintenance_do_deprecate): Add casts.
1643
64669f3b
TT
16442014-07-24 Tom Tromey <tromey@redhat.com>
1645
1646 * cli/cli-decode.c (help_cmd): Make parameter "const".
1647 * cli/cli-decode.h (help_cmd): Update.
1648
d3d3328b
TT
16492014-07-24 Tom Tromey <tromey@redhat.com>
1650
1651 * stack.c (up_silently_base, down_silently_base): Make argument
1652 const.
1653
414842dc
TT
16542014-07-24 Tom Tromey <tromey@redhat.com>
1655
1656 * solib.c (solib_add): Make "pattern" const.
1657 * solib.h (solib_add): Update.
1658
baa336ce
TT
16592014-07-24 Tom Tromey <tromey@redhat.com>
1660
1661 * remote.c (remote_serial_open, print_packet, putpkt)
1662 (putpkt_binary): Constify.
1663 * remote.h (putpkt): Update.
1664
5a19e2d0
TT
16652014-07-24 Tom Tromey <tromey@redhat.com>
1666
1667 * monitor.c (monitor_open): Make "args" const.
1668 * monitor.h (monitor_open): Update.
1669
fc4baa5e
TT
16702014-07-24 Tom Tromey <tromey@redhat.com>
1671
1672 * maint.c (match_bfd_flags): Make "string" const.
1673 (print_bfd_section_info): Remove casts.
1674 (print_objfile_section_info): Make "string" const.
1675
0d5f0dbe
TT
16762014-07-24 Tom Tromey <tromey@redhat.com>
1677
1678 * inf-child.c (inf_child_open_target): Make "arg" const.
1679 * inf-child.h (inf_child_open_target): Update.
1680
41c77899
TT
16812014-07-24 Tom Tromey <tromey@redhat.com>
1682
1683 * environ.c (unset_in_environ): Make "var" const.
1684 * environ.h (unset_in_environ): Update.
1685
93db0d79
TT
16862014-07-24 Tom Tromey <tromey@redhat.com>
1687
1688 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1689 Make "cmd" const.
1690 (scan_filename_with_cleanup): Likewise.
1691 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1692 Make arguments const.
1693 (restore_command): Update.
1694
36d6eb95
PA
16952014-07-24 Pedro Alves <palves@redhat.com>
1696
1697 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1698
8009206a
TT
16992014-07-24 Tom Tromey <tromey@redhat.com>
1700 Gary Benson <gbenson@redhat.com>
1701
1702 * nat/linux-ptrace.c (additional_flags): New global.
1703 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1704 additional_flags; don't check GDBSERVER.
1705 (linux_ptrace_set_additional_flags): New function.
1706 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1707 Declare.
1708 * linux-nat.c (_initialize_linux_nat): Call
1709 linux_ptrace_set_additional_flags.
1710
a7068b60
TT
17112014-07-24 Tom Tromey <tromey@redhat.com>
1712
1713 * make-target-delegates (munge_type, write_debugmethod): New
1714 functions.
1715 (debug_names): New global.
1716 ($TARGET_DEBUG_PRINTER): New global.
1717 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1718 name.
1719 Write debug methods. Generate init_debug_target.
1720 * target-debug.h: New file.
1721 * target-delegates.c: Rebuild.
1722 * target.c: Include target-debug.h.
1723 (debug_target): Hoist definition.
1724 (target_kill, target_get_section_table, target_memory_map)
1725 (target_flash_erase, target_flash_done, target_detach)
1726 (target_disconnect, target_wait, target_resume)
1727 (target_pass_signals, target_program_signals, target_follow_fork)
1728 (target_mourn_inferior, target_search_memory)
1729 (target_thread_address_space, target_close)
1730 (target_find_new_threads, target_core_of_thread)
1731 (target_verify_memory, target_insert_mask_watchpoint)
1732 (target_remove_mask_watchpoint): Remove targetdebug code.
1733 (debug_to_post_attach, debug_to_prepare_to_store)
1734 (debug_to_files_info, debug_to_insert_breakpoint)
1735 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1736 (debug_to_region_ok_for_hw_watchpoint)
1737 (debug_to_can_accel_watchpoint_condition)
1738 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1739 (debug_to_watchpoint_addr_within_range)
1740 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1741 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1742 (debug_to_terminal_init, debug_to_terminal_inferior)
1743 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1744 (debug_to_terminal_save_ours, debug_to_terminal_info)
1745 (debug_to_load, debug_to_post_startup_inferior)
1746 (debug_to_insert_fork_catchpoint)
1747 (debug_to_remove_fork_catchpoint)
1748 (debug_to_insert_vfork_catchpoint)
1749 (debug_to_remove_vfork_catchpoint)
1750 (debug_to_insert_exec_catchpoint)
1751 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1752 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1753 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1754 (setup_target_debug): Call init_debug_target.
1755 * target.h (TARGET_DEBUG_PRINTER): New macro.
1756 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1757 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1758
2c51604d
GB
17592014-07-24 Gary Benson <gbenson@redhat.com>
1760
1761 * exceptions.h (throw_vfatal): Renamed to...
1762 (throw_vquit): New declaration.
1763 (throw_quit): Likewise.
1764 * exceptions.c (throw_vfatal): Renamed to...
1765 (throw_vquit): New function.
1766 (throw_quit): Likewise.
1767 (throw_error): Call throw_verror rather than throw_it.
1768 * utils.h (vfatal): Removed.
1769 (fatal): Likewise.
1770 * utils.c (vfatal): Removed.
1771 (fatal): Likewise.
1772 (internal_verror): Replaced call to fatal with call to throw_quit.
1773 (quit): Replaced calls to fatal with calls to throw_quit.
1774
34211963
ME
17752014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1776
1777 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1778 target_read_code.
1779
a52b4d3e
ME
17802014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1781
1782 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1783 less than zero in conditional expression.
1784
a8bdc56b
TT
17852014-07-23 Tom Tromey <tromey@redhat.com>
1786
1787 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1788 ($INTRO_PART): Don't match whitespace.
1789 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1790 argument matching.
1791 ($METHOD): Add $METHOD_TRAILER.
1792 (trim): Rewrite.
1793 (scan_target_h): New sub.
1794 Change main loop not to collect state.
1795 * target-delegates.c: Rebuild.
1796
91b52240
GB
17972014-07-23 Gary Benson <gbenson@redhat.com>
1798
1799 * cp-support.c (gdb_demangle): Fix build on systems without
1800 sigaltstack.
1801
45326f6f
JK
18022014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1803
1804 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1805 for reference entry value target data value.
1806
e214cf6c
JK
18072014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1808
1809 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1810 value_available_contents_eq.
1811
bddbbedd
PA
18122014-07-22 Pedro Alves <palves@redhat.com>
1813
1814 * value.c (allocate_optimized_out_value): Don't mark value as
1815 non-lazy.
1816
45c71484
JW
18172014-07-22 Jiong Wang <jiong.wang@arm.com>
1818
1819 * MAINTAINERS (Write After Approval): Update my email address.
1820
9597b22a
DE
18212014-07-20 Doug Evans <dje@google.com>
1822
1823 PR server/17147
1824 * remote.c (putpkt_binary): Add text to error message.
1825
91101fe5
YQ
18262014-07-20 Yao Qi <yao@codesourcery.com>
1827
1828 * eval.c: Remove "Chill" from comments.
1829 * gdbtypes.h: Likewise.
1830 * symtab.h: Likewise.
1831
c9402c95
YQ
18322014-07-20 Yao Qi <yao@codesourcery.com>
1833
1834 * std-operator.def: Update comments to TERNOP_SLICE.
1835
ae8fddda
YQ
18362014-07-20 Yao Qi <yao@codesourcery.com>
1837
1838 * std-operator.def: Remove BINOP_RANGE.
1839 * breakpoint.c (watchpoint_exp_is_const): Update.
1840 * expprint.c (dump_subexp_body_standard): Likewise.
1841 * eval.c (init_array_element): Remove dead code.
1842 (evaluate_subexp_standard): Likewise.
1843
9c816640
YQ
18442014-07-20 Yao Qi <yao@codesourcery.com>
1845
1846 * std-operator.def: Remove BINOP_IN.
1847 * breakpoint.c (watchpoint_exp_is_const): Update.
1848 * eval.c (evaluate_subexp_standard): Likewise.
1849 * expprint.c (dump_subexp_body_standard): Likewise.
1850
164224e9
ME
18512014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1852
1853 * microblaze-tdep.c (microblaze_register_names): Add
1854 the rshr and rslr register names.
1855 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1856 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1857 Use of tdesc_numbered_register. Use of
1858 microblaze_register_g_packet_guesses. Use of
1859 tdesc_use_registers. Use of set_gdbarch_register_type.
1860 (microblaze_register_g_packet_guesses): New.
1861 * microblaze-tdep.h (microblaze_reg_num): Add
1862 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1863 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1864 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1865 * features/microblaze-core.xml: New file.
1866 * features/microblaze-stack-protect.xml: New file.
1867 * features/microblaze-with-stack-protect.c: New file.
1868 * features/microblaze-with-stack-protect.xml: New file.
1869 * features/microblaze.xml: New file.
1870 * features/microblaze.c: New file.
1871 * features/Makefile (microblaze-with-stack-protect): Add
1872 microblaze-with-stack-protect microblaze and microblaze-expedite.
1873 * regformats/microblaze-with-stack-protect.dat: New file.
1874 * regformats/microblaze.dat: New file.
1875 * doc/gdb.texinfo (MicroBlaze Features): Added.
1876
e8b2341c
TT
18772014-07-18 Tom Tromey <tromey@redhat.com>
1878
1879 * exec.c (exec_ops): Now static.
1880 * exec.h (exec_ops): Don't declare.
1881
44e89118
TT
18822014-07-18 Tom Tromey <tromey@redhat.com>
1883
1884 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1885 to find_target_beneath.
1886 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1887 find_target_beneath.
1888 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1889
b0ed115f
TT
18902014-07-18 Tom Tromey <tromey@redhat.com>
1891
1892 PR gdb/17130:
1893 * utils.c (quit): Use target_supports_terminal_ours.
1894 * target.h (target_supports_terminal_ours): Declare.
1895 * target.c (target_supports_delete_record): Don't check
1896 to_delete_record against NULL.
1897 (target_supports_terminal_ours): New function.
1898
e75fdfca
TT
18992014-07-18 Tom Tromey <tromey@redhat.com>
1900
1901 PR gdb/17130:
1902 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1903 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1904 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1905 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1906 * windows-nat.c (windows_xfer_partial): Always delegate.
1907 * record-btrace.c (record_btrace_xfer_partial): Simplify
1908 delegation.
1909 (record_btrace_fetch_registers, record_btrace_store_registers)
1910 (record_btrace_prepare_to_store, record_btrace_resume)
1911 (record_btrace_wait, record_btrace_find_new_threads)
1912 (record_btrace_thread_alive): Likewise.
1913 * procfs.c (procfs_xfer_partial): Always delegate.
1914 * corelow.c (core_xfer_partial): Always delegate.
1915 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1916
83814951
TT
19172014-07-18 Tom Tromey <tromey@redhat.com>
1918
1919 * exec.c (exec_make_note_section): Move earlier.
1920
b8b8facf
DE
19212014-07-17 Doug Evans <dje@google.com>
1922
74b49205 1923 PR gdb/17170
b8b8facf
DE
1924 * maint.c (count_symtabs_and_blocks): Handle NULL
1925 current_program_space.
1926 (report_command_stats): Check global enabled flag in addition to
1927 recorded enabled flag.
1928 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1929
69ff6be5
PA
19302014-07-16 Pedro Alves <palves@redhat.com>
1931
1932 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1933
252db1b5
TT
19342014-07-16 Tom Tromey <tromey@redhat.com>
1935
1936 * target.h (struct target_ops) <to_delete_record>: Reformat
1937 comment.
1938
a432721e
TT
19392014-07-16 Tom Tromey <tromey@redhat.com>
1940
1941 * target-delegates.c: Rebuild.
1942
487d9753
PL
19432014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1944
1945 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1946 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1947 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1948 (avr_pointer_to_address): Likewise.
1949 (avr_address_class_type_flags): New function.
1950 (avr_address_class_type_flags_to_name): Likewise.
1951 (avr_address_class_name_to_type_flags): Likewise.
1952 (avr_gdbarch_init): Set address_class_type_flags,
1953 address_class_type_flags_to_name and
1954 address_class_name_to_type_flags.
1955
57745c90
PA
19562014-07-15 Pedro Alves <palves@redhat.com>
1957
1958 * linux-nat.c (kill_callback): Save errno and work with saved
1959 copy.
1960
2d40be18
SM
19612014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1962
1963 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1964
572f6555
EBM
19652014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1966
1967 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1968 breakpoint support correctly.
1969
cc1c52ad
PA
19702014-07-14 Pedro Alves <palves@redhat.com>
1971
1972 * utils.c (prompt_for_continue): Call target_terminal_ours.
1973
1e973570
PA
19742014-07-14 Pedro Alves <palves@redhat.com>
1975
1976 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1977 catch_errors. Don't re-enable stdin or notify observers where,
1978 and rethrow error.
1979 (fetch_inferior_event_wrapper): Delete.
1980
93d6eb10
PA
19812014-07-14 Pedro Alves <palves@redhat.com>
1982
1983 PR gdb/17072
1984 * top.c: Include "inf-loop.h".
1985 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1986 field.
1987 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1988 was async before.
1989 (gdb_readline_wrapper): Store whether the target is async, and
1990 make it sync.
1991
0017922d
PA
19922014-07-14 Pedro Alves <palves@redhat.com>
1993
1994 PR gdb/17072
1995 * top.c (gdb_readline_wrapper_line): Tweak comment.
1996 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1997 the input handler callback.
1998
94696ad3
PA
19992014-07-14 Pedro Alves <palves@redhat.com>
2000
2001 PR gdb/17072
2002 * main.c: Include event-top.h.
2003 (handle_command_errors): New function.
2004 (catch_command_errors, catch_command_errors_const): Use it.
2005
9d1e69a2
PA
20062014-07-14 Pedro Alves <palves@redhat.com>
2007
2008 * exceptions.c (catch_command_errors, catch_command_errors_const):
2009 Moved to main.c.
2010 * exceptions.h (catch_command_errors_ftype)
2011 (catch_command_errors_const_ftype): Moved to main.c.
2012 (catch_command_errors, catch_command_errors_const): Delete
2013 declarations.
2014 * main.c (catch_command_errors_ftype)
2015 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2016 (catch_command_errors, catch_command_errors_const)): Moved here
2017 from exceptions.c and make static.
2018
feefc97b
PA
20192014-07-14 Pedro Alves <palves@redhat.com>
2020
2021 * exceptions.c (print_any_exception): Delete.
2022 (catch_exceptions_with_msg): Use exception_print instead of
2023 print_any_exception.
2024 (catch_errors): Use exception_fprintf instead of
2025 print_any_exception.
2026 (catch_command_errors, catch_command_errors_const): Use
2027 exception_print instead of print_any_exception.
2028
c933f875
PA
20292014-07-14 Pedro Alves <palves@redhat.com>
2030
2031 * infcall.c (run_inferior_call): Set 'sync_execution' while
2032 running the inferior call.
2033
feb6f816
PA
20342014-07-14 Pedro Alves <palves@redhat.com>
2035
2036 * value.c (value_contents_equal): Delete function.
2037 * value.h (value_contents_equal): Delete declaration.
2038
d98b7a16
TT
20392014-07-14 Tom Tromey <tromey@redhat.com>
2040
2041 PR exp/17106:
2042 * gdbtypes.c (is_dynamic_type_internal): New function, from
2043 is_dynamic_type.
2044 (is_dynamic_type): Rewrite.
2045 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2046 (resolve_dynamic_struct): Likewise.
2047 (resolve_dynamic_type_internal): New function, from
2048 resolve_dynamic_type.
2049 (resolve_dynamic_type): Rewrite.
2050
548740d6
TT
20512014-07-14 Tom Tromey <tromey@redhat.com>
2052
2053 * target.c (target_require_runnable): Also check record_stratum.
2054 Update comment.
2055
808f7ab1
YQ
20562014-07-11 Yao Qi <yao@codesourcery.com>
2057
2058 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2059 thumb_instruction_restores_sp return true.
2060
540314bd
YQ
20612014-07-11 Yao Qi <yao@codesourcery.com>
2062
2063 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2064 (thumb_in_function_epilogue_p): Call
2065 thumb_instruction_restores_sp.
2066
1db01f22
YQ
20672014-07-11 Yao Qi <yao@codesourcery.com>
2068
2069 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2070 'add sp, #imm'.
2071 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2072
3116063b
GB
20732014-07-11 Gary Benson <gbenson@redhat.com>
2074
2075 * amd64-linux-nat.c (gdbcore.h): Remove include.
2076 (regset.h): Likewise.
2077 (nat/linux-btrace.h): Likewise.
2078 (btrace.h): Likewise.
2079 (gdb_assert.h): Likewise.
2080 (string.h): Likewise.
2081 (sys/uio.h): Likewise.
2082 (sys/debugreg.h): Likewise.
2083 (sys/syscall.h): Likewise.
2084 (sys/procfs.h): Likewise.
2085 (sys/user.h): Likewise.
2086 (asm/ptrace.h): Likewise.
2087 (i386-nat.h): Likewise.
2088 * i386-linux-nat.c (i386-nat.h): Likewise.
2089 (regset.h): Likewise.
2090 (target.h): Likewise.
2091 (linux-nat.h): Likewise.
2092 (nat/linux-btrace.h): Likewise.
2093 (btrace.h): Likewise.
2094 (gdb_assert.h): Likewise.
2095 (string.h): Likewise.
2096 (sys/uio.h): Likewise.
2097 (sys/user.h): Likewise.
2098 (sys/procfs.h): Likewise.
2099 (sys/reg.h): Likewise.
2100 (sys/debugreg.h): Likewise.
2101 (ORIG_EAX): Remove definition.
2102
040baaf6
GB
21032014-07-11 Gary Benson <gbenson@redhat.com>
2104
2105 * i386-linux-nat.h: New file.
2106 * x86-linux-nat.h: Likewise.
2107 * x86-linux-nat.c: Likewise.
2108 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2109 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2110 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2111 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2112 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2113 (PTRACE_SETREGSET): Likewise.
2114 (arch_lwp_info): Now in x86-linux-nat.c.
2115 (have_ptrace_getregset): Now in x86-linux-nat.h.
2116 (x86_linux_dr_get): Now in x86-linux-nat.c.
2117 (x86_linux_dr_set): Likewise.
2118 (x86_linux_dr_get_addr): Likewise.
2119 (x86_linux_dr_get_control): Likewise.
2120 (x86_linux_dr_get_status): Likewise.
2121 (update_debug_registers_callback): Likewise.
2122 (x86_linux_dr_set_control): Likewise.
2123 (x86_linux_dr_set_addr): Likewise.
2124 (x86_linux_prepare_to_resume): Likewise.
2125 (x86_linux_new_thread): Likewise.
2126 (x86_linux_new_fork): Likewise.
2127 (x86_linux_get_thread_area): Likewise.
2128 (super_post_startup_inferior): Likewise.
2129 (x86_linux_child_post_startup_inferior): Likewise.
2130 (AMD64_LINUX_USER64_CS): Likewise.
2131 (AMD64_LINUX_X32_DS): Likewise.
2132 (x86_linux_read_description): Likewise.
2133 (x86_linux_enable_btrace): Likewise.
2134 (x86_linux_disable_btrace): Likewise.
2135 (x86_linux_teardown_btrace): Likewise.
2136 (x86_linux_read_btrace): Likewise.
2137 (x86_linux_create_target): Likewise.
2138 (x86_linux_add_target): Likewise.
2139 * i386-linux-nat.c (x86-linux-nat.h): New include.
2140 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2141 (PTRACE_SETREGSET): Likewise.
2142 (arch_lwp_info): Now in x86-linux-nat.c.
2143 (have_ptrace_getregset): Now in x86-linux-nat.h.
2144 (x86_linux_dr_get): Now in x86-linux-nat.c.
2145 (x86_linux_dr_set): Likewise.
2146 (x86_linux_dr_get_addr): Likewise.
2147 (x86_linux_dr_get_control): Likewise.
2148 (x86_linux_dr_get_status): Likewise.
2149 (update_debug_registers_callback): Likewise.
2150 (x86_linux_dr_set_control): Likewise.
2151 (x86_linux_dr_set_addr): Likewise.
2152 (x86_linux_prepare_to_resume): Likewise.
2153 (x86_linux_new_thread): Likewise.
2154 (x86_linux_new_fork): Likewise.
2155 (x86_linux_get_thread_area): Likewise.
2156 (super_post_startup_inferior): Likewise.
2157 (x86_linux_child_post_startup_inferior): Likewise.
2158 (AMD64_LINUX_USER64_CS): Likewise.
2159 (AMD64_LINUX_X32_DS): Likewise.
2160 (x86_linux_read_description): Likewise.
2161 (x86_linux_enable_btrace): Likewise.
2162 (x86_linux_disable_btrace): Likewise.
2163 (x86_linux_teardown_btrace): Likewise.
2164 (x86_linux_read_btrace): Likewise.
2165 (x86_linux_create_target): Likewise.
2166 (x86_linux_add_target): Likewise.
2167
1aa7e42c
GB
21682014-07-11 Gary Benson <gbenson@redhat.com>
2169
2170 * amd64-linux-nat.c: Comment and whitespace changes.
2171 * i386-linux-nat.c: Comment and whitespace changes.
2172
c1e246a0
GB
21732014-07-11 Gary Benson <gbenson@redhat.com>
2174
2175 * amd64-linux-nat.c (x86_linux_create_target): New function.
2176 (x86_linux_add_target): Likewise.
2177 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2178 * i386-linux-nat.c (x86_linux_create_target): New function.
2179 (x86_linux_add_target): Likewise.
2180 (_initialize_i386_linux_nat): Delegate to the above new functions.
2181
8c420b8d
GB
21822014-07-11 Gary Benson <gbenson@redhat.com>
2183
2184 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2185 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2186 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2187 (ps_get_thread_area): Delegate to the above.
2188
cb1da100
GB
21892014-07-11 Gary Benson <gbenson@redhat.com>
2190
2191 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2192 x86_linux_read_description. All uses updated. amd64-specific
2193 code conditionalized. Conditionalized i386-specific code added.
2194 Redundant cast removed.
2195 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2196 x86_linux_read_description. All uses updated. i386-specific
2197 code conditionalized. Conditionalized amd64-specific code added.
2198 One sizeof replaced with the actual type it is describing.
2199
2acf3cd0
GB
22002014-07-11 Gary Benson <gbenson@redhat.com>
2201
2202 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2203 x86_linux_dr_get. All uses updated.
2204 (amd64_linux_dr_set): Renamed to
2205 x86_linux_dr_set. All uses updated.
2206 (amd64_linux_dr_get_addr): Renamed to
2207 x86_linux_dr_get_addr. All uses updated.
2208 (amd64_linux_dr_get_control): Renamed to
2209 x86_linux_dr_get_control. All uses updated.
2210 (amd64_linux_dr_get_status): Renamed to
2211 x86_linux_dr_get_status. All uses updated.
2212 (amd64_linux_dr_set_control): Renamed to
2213 x86_linux_dr_set_control. All uses updated.
2214 (amd64_linux_dr_set_addr): Renamed to
2215 x86_linux_dr_set_addr. All uses updated.
2216 (amd64_linux_prepare_to_resume): Renamed to
2217 x86_linux_prepare_to_resume. All uses updated.
2218 (amd64_linux_new_thread): Renamed to
2219 x86_linux_new_thread. All uses updated.
2220 (amd64_linux_new_fork): Renamed to
2221 x86_linux_new_fork. All uses updated.
2222 (amd64_linux_child_post_startup_inferior): Renamed to
2223 x86_linux_child_post_startup_inferior. All uses updated.
2224 (amd64_linux_enable_btrace): Renamed to
2225 x86_linux_enable_btrace. All uses updated.
2226 (amd64_linux_disable_btrace): Renamed to
2227 x86_linux_disable_btrace. All uses updated.
2228 (amd64_linux_teardown_btrace): Renamed to
2229 x86_linux_teardown_btrace. All uses updated.
2230 (amd64_linux_read_btrace): Renamed to
2231 x86_linux_read_btrace. All uses updated.
2232 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2233 x86_linux_dr_get. All uses updated.
2234 (i386_linux_dr_set): Renamed to
2235 x86_linux_dr_set. All uses updated.
2236 (i386_linux_dr_get_addr): Renamed to
2237 x86_linux_dr_get_addr. All uses updated.
2238 (i386_linux_dr_get_control): Renamed to
2239 x86_linux_dr_get_control. All uses updated.
2240 (i386_linux_dr_get_status): Renamed to
2241 x86_linux_dr_get_status. All uses updated.
2242 (i386_linux_dr_set_control): Renamed to
2243 x86_linux_dr_set_control. All uses updated.
2244 (i386_linux_dr_set_addr): Renamed to
2245 x86_linux_dr_set_addr. All uses updated.
2246 (i386_linux_prepare_to_resume): Renamed to
2247 x86_linux_prepare_to_resume. All uses updated.
2248 (i386_linux_new_thread): Renamed to
2249 x86_linux_new_thread. All uses updated.
2250 (i386_linux_new_fork): Renamed to
2251 x86_linux_new_fork. All uses updated.
2252 (i386_linux_child_post_startup_inferior): Renamed to
2253 x86_linux_child_post_startup_inferior. All uses updated.
2254 (i386_linux_enable_btrace): Renamed to
2255 x86_linux_enable_btrace. All uses updated.
2256 (i386_linux_disable_btrace): Renamed to
2257 x86_linux_disable_btrace. All uses updated.
2258 (i386_linux_teardown_btrace): Renamed to
2259 x86_linux_teardown_btrace. All uses updated.
2260 (i386_linux_read_btrace): Renamed to
2261 x86_linux_read_btrace. All uses updated.
2262
b9c1d481
AS
22632014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2264
2265 * remote.c (extended_remote_post_attach): New function.
2266 (init_extended_remote_ops): Install it as to_post_attach method.
2267
7180e04a
PA
22682014-07-09 Pedro Alves <palves@redhat.com>
2269
2270 * infcmd.c (attach_command_post_wait): Don't call
2271 target_terminal_inferior here.
2272 (attach_command): Call it here instead.
2273
9a9a7608
AB
22742014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2275
2276 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2277 field.
2278 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2279 from varobj.c, with additional checks.
2280 (c_varobj_ops): Fill in is_path_expr_parent field.
2281 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2282 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2283 field.
2284 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2285 ops method.
2286 (varobj_default_is_path_expr_parent): New function.
2287 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2288 (varobj_default_is_path_expr_parent): Declare new function.
2289
1f267ae3
MM
22902014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2291
2292 * infcmd.c (finish_backward): Turn internal error into normal error.
2293
b2ee242b
PA
22942014-07-07 Pedro Alves <palves@redhat.com>
2295
8a869bca 2296 PR gdb/17096
b2ee242b
PA
2297 * remote.c (async_handle_remote_sigint)
2298 (async_handle_remote_sigint_twice): Call
2299 gdb_call_async_signal_handler instead of
2300 mark_async_signal_handler.
2301
38e229b2
TT
23022014-07-07 Tom Tromey <tromey@redhat.com>
2303
2304 * target-delegates.c: Rebuild.
2305 * target.c (target_info_record): Remove.
2306 * record.c (info_record_command): Unconditionally call
2307 to_info_record.
2308 * target.h (struct target_ops) <to_info_record>: Use
2309 TARGET_DEFAULT_IGNORE.
2310 (target_info_record): Remove.
2311
f0f9ff95
TT
23122014-07-07 Tom Tromey <tromey@redhat.com>
2313
2314 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2315 TARGET_DEFAULT_NORETURN.
2316 * target.c (generic_tls_error): New function.
2317 (target_translate_tls_address): Don't search target stack.
2318 * target-delegates.c: Rebuild.
2319 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2320 stack.
2321 * linux-thread-db.c (thread_db_get_thread_local_address):
2322 Unconditionally call beneath target.
2323
4a5be5ee
MK
23242014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2325
2326 * cli/cli-logging.c (pop_output_files): Assign targerr to
2327 gdb_stdtargerr.
2328
92c3b204
AB
23292014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2330
2331 * MAINTAINERS (Write After Approval): Update my email address.
2332
9b11e3a7
GB
23332014-07-02 Gary Benson <gbenson@redhat.com>
2334
2335 * proc-service.c (ps_xfer_memory): Update comment.
2336 (ps_pstop): Remove unused function.
2337 (ps_pcontinue): Likewise.
2338 (ps_lstop): Likewise.
2339 (ps_lcontinue): Likewise.
2340 (ps_lgetxregsize): Likewise.
2341 (ps_lgetxregs): Likewise.
2342 (ps_lsetxregs): Likewise.
2343 (ps_plog): Likewise.
2344 (ps_ptread): Likewise.
2345 (ps_ptwrite): Likewise.
2346
cf363f18
MW
23472014-07-01 Mark Wielaard <mjw@redhat.com>
2348
2349 * dwarf2read.c (add_array_cv_type): New function.
2350 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2351 (read_tag_volatile_type): Likewise.
2352
82ae6c8d
TT
23532014-07-01 Tom Tromey <tromey@redhat.com>
2354
2355 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2356 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2357 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2358 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2359 * command.h (cmd_cfunc_ftype): Move earlier.
2360 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2361 (add_com, add_info): Use cmd_cfunc_ftype.
2362
96142726
TT
23632014-06-30 Tom Tromey <tromey@redhat.com>
2364
2365 * symtab.c (operator_chars): Make parameters and return type
2366 const.
2367 (file_matches): Make "files" const.
2368 (struct search_symbols_data) <files>: Now const.
2369 (search_symbols): Make "regexp" and "files" parameters const.
2370 Update.
2371 (symtab_symbol_info): Remove cast.
2372 (rbreak_command): Update.
2373 * symtab.h (search_symbols): Update.
2374
b67a2c6f
YQ
23752014-06-27 Yao Qi <yao@codesourcery.com>
2376
2377 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2378 Change parameter type to 'struct thread_info *'. Caller
2379 updated.
2380 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2381 Update declaration.
2382 * dummy-frame.c (struct dummy_frame_id): New.
2383 (dummy_frame_id_eq): New function.
2384 (struct dummy_frame) <id>: Change its type to 'struct
2385 dummy_frame_id'.
2386 (dummy_frame_push): Add parameter ptid and save it in
2387 dummy_frame_id.
2388 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2389 inferior_ptid.
2390 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2391 to inferior_ptid.
2392 (lookup_dummy_frame): Change parameter type to 'struct
2393 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2394 instead of frame_id_eq.
2395 (dummy_frame_pop): Add parameter ptid. Callers updated.
2396 Update comments. Compose dummy_frame_id and pass it to
2397 lookup_dummy_frame.
2398 (dummy_frame_discard): Add parameter ptid.
2399 (dummy_frame_sniffer): Compose dummy_frame_id and call
2400 dummy_frame_id_eq instead of frame_id_eq.
2401 (fprint_dummy_frames): Print ptid.
2402 * dummy-frame.h: Remove comments.
2403 (dummy_frame_push): Add ptid in declaration.
2404 (dummy_frame_pop, dummy_frame_discard): Likewise.
2405
5b10184c
TT
24062014-06-26 Tom Tromey <tromey@redhat.com>
2407
2408 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2409 * command.h (error_no_arg): Update.
2410
06900326
TT
24112014-06-26 Tom Tromey <tromey@redhat.com>
2412
2413 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2414 (do_show_command): Make "arg" const.
2415 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2416
c2bcbb1d
TT
24172014-06-26 Tom Tromey <tromey@redhat.com>
2418
2419 * record-full.c (record_full_get_bookmark): Make "args" const.
2420 (record_full_goto_bookmark): Make "raw_bookmark" const.
2421 * record.c (record_goto): New function.
2422 (cmd_record_goto): Use it. Now static.
2423 * record.h (record_goto): Declare.
2424 (cmd_record_goto): Remove declaration.
2425 * target-delegates.c: Rebuild.
2426 * target.h (struct target_ops) <to_get_bookmark,
2427 to_goto_bookmark>: Make parameter const.
2428
9cbe5fff
TT
24292014-06-26 Tom Tromey <tromey@redhat.com>
2430
2431 * defs.h (generic_load): Update.
2432 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2433 * monitor.c (monitor_load): Make "args" const.
2434 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2435 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2436 const.
2437 (mips_load): Make "file" const.
2438 * remote-sim.c (gdbsim_load): Make "args" const.
2439 * remote.c (remote_load): Make "name" const.
2440 * symfile.c (generic_load): Make "args" const.
2441 * target-delegates.c: Rebuild.
2442 * target.c (target_load): Make "arg" const.
2443 (debug_to_load): Make "args" const.
2444 * target.h (struct target_ops) <to_load>: Make parameter const.
2445 (target_load): Update.
2446
34a68019
TT
24472014-06-26 Tom Tromey <tromey@redhat.com>
2448
2449 PR symtab/16902:
2450 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2451 (dwarf2_physname, read_partial_die)
2452 (guess_partial_die_structure_name, fixup_partial_die)
2453 (guess_full_die_structure_name, anonymous_struct_prefix)
2454 (dwarf2_name): Use per-BFD obstack.
2455
efc889c1
YQ
24562014-06-26 Yao Qi <yao@codesourcery.com>
2457
2458 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2459 dummyframe and this_id into inner block below.
2460
4395285e
YQ
24612014-06-26 Yao Qi <yao@codesourcery.com>
2462
2463 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2464 with "signal_pass[0]" in the initialization of signal_pass.
2465
aef92902
MM
24662014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2467
2468 * record-btrace.c (record_btrace_generating_corefile)
2469 (record_btrace_prepare_to_generate_core)
2470 (record_btrace_done_generating_core): New.
2471 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2472 (record_btrace_store_registers, record_btrace_prepare_to_store):
2473 Forward request when generating a core file.
2474 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2475 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2476 to_done_generating_core.
2477
5fff78c4
MM
24782014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2479
2480 * target.h (target_ops) <to_prepare_to_generate_core>
2481 <to_done_generating_core>: New.
2482 (target_prepare_to_generate_core, target_done_generating_core): New.
2483 * target.c (target_prepare_to_generate_core)
2484 (target_done_generating_core): New.
2485 * target-delegates.c: Regenerate.
2486 * gcore.c: (write_gcore_file): Rename to ...
2487 (write_gcore_file_1): ...this.
2488 (write_gcore_file): Call target_prepare_to_generate_core
2489 and target_done_generating_core.
2490
1d1f1ccb
MM
24912014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2492
2493 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2494 * gcore.c (write_gcore_file): Free memory returned from
2495 make_corefile_notes.
2496 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2497 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2498
3343ef86
YQ
24992014-06-24 Yao Qi <yao@codesourcery.com>
2500
2501 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2502 (arm_linux_init_abi): Set skip_trampoline_code with
2503 gdbarch_skip_trampoline_code instead of
2504 find_solib_trampoline_target.
2505
18d18ac8
YQ
25062014-06-24 Yao Qi <yao@codesourcery.com>
2507
2508 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2509 arm_skip_bx_reg returns non-zero.
2510
80d8d390
YQ
25112014-06-24 Yao Qi <yao@codesourcery.com>
2512
2513 * arm-tdep.c (arm_skip_bx_reg): New function.
2514 (arm_skip_stub): Call arm_skip_bx_reg.
2515
6a18a01c
DB
25162014-06-23 Don Breazeal <donb@codesourcery.com>
2517
2518 * MAINTAINERS: Add myself as write-after-approval maintainer.
2519
8e9db26e
PA
25202014-06-23 Pedro Alves <palves@redhat.com>
2521
2522 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2523 DR_CONTROL before setting DR0..DR3.
2524 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2525 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2526 bits of DR_CONTROL related to the debug register slot being
2527 disabled. If all slots are vacant, clear local slowdown as well,
2528 and assert DR_CONTROL is 0.
2529
70afc5b7
SC
25302014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2531
2532 * python/lib/gdb/command/xmethods.py
2533 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2534 current progspace only if the string "progspace" matches LOCUS_RE.
2535
840ed64d
JK
25362014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2537
2538 Fix --with-system-readline with readline-6.3 patch 5.
2539 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2540 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2541 types.
2542
26f2dc30
TT
25432014-06-20 Tom Tromey <tromey@redhat.com>
2544
2545 * dwarf2read.c (dw2_get_real_path): Use correct type in
2546 OBSTACK_CALLOC.
2547 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2548
125f8a3d
GB
25492014-06-20 Gary Benson <gbenson@redhat.com>
2550
2551 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2552 * common/glibc_thread_db.h: Likewise.
2553 * common/i386-cpuid.h: Likewise.
2554 * common/i386-gcc-cpuid.h: Likewise.
2555 * common/linux-btrace.h: Likewise.
2556 * common/linux-osdata.h: Likewise.
2557 * common/linux-procfs.h: Likewise.
2558 * common/linux-ptrace.h: Likewise.
2559 * common/mips-linux-watch.h: Likewise.
2560 * common/linux-btrace.c: Moved to nat.
2561 * common/linux-osdata.c: Likewise.
2562 * common/linux-procfs.c: Likewise.
2563 * common/linux-ptrace.c: Likewise.
2564 * common/mips-linux-watch.c: Likewise.
2565 * nat/gdb_thread_db.h: Moved from common.
2566 * nat/glibc_thread_db.h: Likewise.
2567 * nat/i386-cpuid.h: Likewise.
2568 * nat/i386-gcc-cpuid.h: Likewise.
2569 * nat/linux-btrace.c: Likewise.
2570 * nat/linux-btrace.h: Likewise.
2571 * nat/linux-osdata.c: Likewise.
2572 * nat/linux-osdata.h: Likewise.
2573 * nat/linux-procfs.c: Likewise.
2574 * nat/linux-procfs.h: Likewise.
2575 * nat/linux-ptrace.c: Likewise.
2576 * nat/linux-ptrace.h: Likewise.
2577 * nat/mips-linux-watch.c: Likewise.
2578 * nat/mips-linux-watch.h: Likewise.
2579 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2580 (object file files): Reordered.
2581 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2582 of glibc_thread_db.h.
2583
42995dbd
GB
25842014-06-20 Gary Benson <gbenson@redhat.com>
2585
2586 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2587 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2588 (i386_dr_low): Likewise.
2589 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2590 (i386_dr_low_set_addr): Likewise.
2591 (i386_dr_low_get_addr): Likewise.
2592 (i386_dr_low_can_set_control): Likewise.
2593 (i386_dr_low_set_control): Likewise.
2594 (i386_dr_low_get_control): Likewise.
2595 (i386_dr_low_get_status): Likewise.
2596 (i386_get_debug_register_length): Likewise.
2597 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2598 (i386_dr_low): Likewise.
2599 * nat/i386-dregs.c (i386-low.h): Remove include.
2600 (i386-nat.h): Likewise.
2601 (nat/i386-dregs.h): New include.
2602 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2603 (i386_dr_low_set_addr): Likewise.
2604 (i386_dr_low_get_addr): Likewise.
2605 (i386_dr_low_can_set_control): Likewise.
2606 (i386_dr_low_set_control): Likewise.
2607 (i386_dr_low_get_control): Likewise.
2608 (i386_dr_low_get_status): Likewise.
2609 (i386_get_debug_register_length): Likewise.
2610 (debug_hw_points): Likewise.
2611
3ed9baed
IB
26122014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2613
2614 * Makefile.in (SFILES): Add d-exp.y.
2615 (YYFILES): Add d-exp.c.
2616 (YYOBJ): Add d-exp.o.
2617 (local-maintainer-clean): Delete d-exp.c.
2618 * d-exp.y: New file.
2619 * d-lang.h (d_parse): New declaration.
2620 (d_error): New declaration.
2621 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2622 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2623 PREC_ORDER operators.
2624 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2625
78c164b0
YQ
26262014-06-19 Yao Qi <yao@codesourcery.com>
2627
2628 * gdbthread.h (any_running): Remove the declaration.
2629 * thread.c (any_running): Remove.
2630
f6e29b6e
YQ
26312014-06-19 Yao Qi <yao@codesourcery.com>
2632
2633 * gdbthread.h (struct thread_info) <state>: Change its type to
2634 'enum thread_state'. Update comments.
2635
034f788c
PA
26362014-06-19 Pedro Alves <palves@redhat.com>
2637
2638 * gdbthread.h (ALL_THREADS): Delete.
2639 (ALL_NON_EXITED_THREADS): New macro.
2640 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2641 instead of ALL_THREADS.
2642 * infrun.c (find_thread_needs_step_over)
2643 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2644 instead of ALL_THREADS.
2645 * record-btrace.c (record_btrace_open)
2646 (record_btrace_stop_recording, record_btrace_close)
2647 (record_btrace_is_replaying, record_btrace_resume)
2648 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2649 * remote.c (append_pending_thread_resumptions): Likewise.
2650 * thread.c (thread_apply_all_command): Likewise.
2651
46e33252
GB
26522014-06-19 Gary Benson <gbenson@redhat.com>
2653
2654 * i386-nat.c (i386_stopped_by_watchpoint):
2655 Use i386_dr_stopped_by_watchpoint.
2656 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2657 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2658
3a8ee006
GB
26592014-06-19 Gary Benson <gbenson@redhat.com>
2660
2661 * nat/i386-dregs.c: New file.
2662 * Makefile.in (i386-dregs.o): New rule.
2663 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2664 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2665 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2666 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2667 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2668 * config/i386/go32.mh (NATDEPFILES): Likewise.
2669 * config/i386/linux.mh (NATDEPFILES): Likewise.
2670 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2671 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2672 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2673 * i386-nat.h (debug_hw_points): New declaration.
2674 * i386-nat.c (breakpoint.h): Remove include.
2675 (command.h): Likewise.
2676 (target.h): Likewise.
2677 (gdb_assert.h): Likewise.
2678 (debug_hw_points): Made nonstatic.
2679 (debug_printf): Now in i386-dregs.c.
2680 (TARGET_HAS_DR_LEN_8): Likewise.
2681 (DR_CONTROL_SHIFT): Likewise.
2682 (DR_CONTROL_SIZE): Likewise.
2683 (DR_RW_EXECUTE): Likewise.
2684 (DR_RW_WRITE): Likewise.
2685 (DR_RW_READ): Likewise.
2686 (DR_RW_IORW): Likewise.
2687 (DR_LEN_1): Likewise.
2688 (DR_LEN_2): Likewise.
2689 (DR_LEN_4): Likewise.
2690 (DR_LEN_8): Likewise.
2691 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2692 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2693 (DR_ENABLE_SIZE): Likewise.
2694 (DR_LOCAL_SLOWDOWN): Likewise.
2695 (DR_GLOBAL_SLOWDOWN): Likewise.
2696 (DR_CONTROL_RESERVED): Likewise.
2697 (I386_DR_CONTROL_MASK): Likewise.
2698 (I386_DR_VACANT): Likewise.
2699 (I386_DR_LOCAL_ENABLE): Likewise.
2700 (I386_DR_GLOBAL_ENABLE): Likewise.
2701 (I386_DR_DISABLE): Likewise.
2702 (I386_DR_SET_RW_LEN): Likewise.
2703 (I386_DR_GET_RW_LEN): Likewise.
2704 (I386_DR_WATCH_HIT): Likewise.
2705 (i386_wp_op_t): Likewise.
2706 (i386_show_dr): Likewise.
2707 (i386_length_and_rw_bits): Likewise.
2708 (i386_insert_aligned_watchpoint): Likewise.
2709 (i386_remove_aligned_watchpoint): Likewise.
2710 (i386_handle_nonaligned_watchpoint): Likewise.
2711 (i386_update_inferior_debug_regs): Likewise.
2712 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2713 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2714 (i386_region_ok_for_watchpoint):
2715 Use i386_dr_region_ok_for_watchpoint.
2716 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2717
322a8e06
GB
27182014-06-19 Gary Benson <gbenson@redhat.com>
2719
2720 * i386-nat.c (i386_insert_hw_breakpoint): Use
2721 i386_insert_watchpoint.
2722 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2723
8f26655c
GB
27242014-06-19 Gary Benson <gbenson@redhat.com>
2725
2726 * i386-nat.c (i386_dr_show): Renamed to
2727 i386_show_dr and made static. All uses updated.
2728 (i386_dr_length_and_rw_bits): Renamed to
2729 i386_length_and_rw_bits and made static.
2730 All uses updated.
2731 (i386_dr_insert_aligned_watchpoint): Renamed to
2732 i386_insert_aligned_watchpoint and made static.
2733 All uses updated.
2734 (i386_dr_remove_aligned_watchpoint): Renamed to
2735 i386_remove_aligned_watchpoint and made static.
2736 All uses updated.
2737 (i386_dr_update_inferior_debug_regs): Renamed to
2738 i386_update_inferior_debug_regs and made static.
2739 All uses updated.
2740 * nat/i386-dregs.h (i386_dr_show): Removed.
2741 (i386_dr_length_and_rw_bits): Likewise.
2742 (i386_dr_insert_aligned_watchpoint): Likewise.
2743 (i386_dr_remove_aligned_watchpoint): Likewise.
2744 (i386_dr_update_inferior_debug_regs): Likewise.
2745
992c7d70
GB
27462014-06-19 Gary Benson <gbenson@redhat.com>
2747
2748 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2749 * configure: Regenerate.
2750 * config.in: Likewise.
2751 * main.c (signal.h): New include.
2752 (setup_alternate_signal_stack): New function.
2753 (captured_main): Call the above.
2754 * cp-support.c (signal.h): New include.
2755 (catch_demangler_crashes): New flag.
2756 (SIGJMP_BUF): New define.
2757 (SIGSETJMP): Likewise.
2758 (SIGLONGJMP): Likewise.
2759 (gdb_demangle_jmp_buf): New static global.
2760 (gdb_demangle_attempt_core_dump): Likewise.
2761 (gdb_demangle_signal_handler): New function.
2762 (gdb_demangle): If catch_demangler_crashes is set, install the
2763 above signal handler before calling bfd_demangle, and restore
2764 the original signal handler afterwards. Display the offending
2765 symbol and call demangler_warning the first time a segmentation
2766 fault is caught.
2767 (_initialize_cp_support): New maint set/show command.
2768
eae7090b
GB
27692014-06-19 Gary Benson <gbenson@redhat.com>
2770
2771 * utils.h (resource_limit_kind): New enum.
2772 (can_dump_core): New declaration.
2773 (warn_cant_dump_core): Likewise.
2774 (dump_core): Likewise.
2775 * utils.c (dump_core): Made nonstatic. Added new
2776 parameter "limit_kind".
2777 (can_dump_core): Made nonstatic. Moved printing code to...
2778 (warn_cant_dump_core): New function.
2779 (can_dump_core_warn): Likewise.
2780 (internal_vproblem): Replace calls to can_dump_core with
2781 calls to can_dump_core_warn. Supply new argument to each.
2782
57fcfb1b
GB
27832014-06-19 Gary Benson <gbenson@redhat.com>
2784
2785 * utils.h (demangler_vwarning): New declaration.
2786 (demangler_warning): Likewise.
2787 * utils.c (struct internal_problem)
2788 <user_settable_should_quit>: New field.
2789 <user_settable_should_dump_core>: Likewise
2790 (internal_error_problem): Add values for above new fields.
2791 (internal_warning_problem): Likewise.
2792 (demangler_warning_problem): New static global.
2793 (demangler_vwarning): New function.
2794 (demangler_warning): Likewise.
2795 (add_internal_problem_command): Selectively add commands.
2796 (_initialize_utils): New internal problem command.
2797 * maint.c (maintenance_demangler_warning): New function.
2798 (_initialize_maint_cmds): New command.
2799
17a40b44
TT
28002014-06-18 Tom Tromey <tromey@redhat.com>
2801
2802 * f-valprint.c (info_common_command_for_block): Update.
2803 * symtab.h (struct general_symbol_info) <common_block>: Now
2804 const.
2805
346d1dfe
TT
28062014-06-18 Tom Tromey <tromey@redhat.com>
2807
2808 * symtab.h (struct symtab) <blockvector>: Now const.
2809 * ada-lang.c (ada_add_global_exceptions): Update.
2810 * buildsym.c (augment_type_symtab): Update.
2811 * dwarf2read.c (dw2_lookup_symbol): Update.
2812 * jit.c (finalize_symtab): Update.
2813 * jv-lang.c (add_class_symtab_symbol): Update.
2814 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2815 Update.
2816 * objfiles.c (objfile_relocate1): Update.
2817 * psymtab.c (lookup_symbol_aux_psymtabs)
2818 (maintenance_check_psymtabs): Update.
2819 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2820 Update.
2821 * spu-tdep.c (spu_catch_start): Update.
2822 * symmisc.c (dump_symtab_1): Update.
2823 * symtab.c (lookup_global_symbol_from_objfile)
2824 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2825 (basic_lookup_transparent_type_quick)
2826 (basic_lookup_transparent_type, find_pc_sect_symtab)
2827 (find_pc_sect_line, search_symbols): Update.
2828 * block.c (find_block_in_blockvector): Make "bl" const.
2829 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2830 const.
2831 (blockvector_contains_pc): Make "bv" const.
2832 (block_for_pc_sect): Update.
2833 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2834 (blockvector_contains_pc): Update.
2835 * breakpoint.c (resolve_sal_pc): Update.
2836 * inline-frame.c (block_starting_point_at): Update.
2837
1834676b
TT
28382014-06-18 Tom Tromey <tromey@redhat.com>
2839
2840 * completer.c (complete_line): Make "line_buffer" const.
2841 * completer.h (complete_line): Update.
2842
ac1a991b
TT
28432014-06-18 Tom Tromey <tromey@redhat.com>
2844
2845 * symtab.c (add_macro_name): Remove unneeded cast.
2846
5bc98e52
TT
28472014-06-18 Tom Tromey <tromey@redhat.com>
2848
2849 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2850 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2851
8236def8
TT
28522014-06-18 Tom Tromey <tromey@redhat.com>
2853
2854 * probe.c (info_probes_for_ops): Make "arg" const.
2855 * probe.h (info_probes_for_ops): Update.
2856
3977b71f
TT
28572014-06-18 Tom Tromey <tromey@redhat.com>
2858
2859 * varobj.c (varobj_create): Update.
2860 * valops.c (value_of_this): Update.
2861 * tracepoint.c (add_local_symbols, scope_info): Update.
2862 * symtab.h (struct general_symbol_info) <block>: Now const.
2863 * symtab.c (skip_prologue_sal)
2864 (default_make_symbol_completion_list_break_on)
2865 (skip_prologue_using_sal): Update.
2866 * stack.h (iterate_over_block_locals)
2867 (iterate_over_block_local_vars): Update.
2868 * stack.c (print_frame_args): Update.
2869 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2870 parameter const.
2871 (get_selected_block): Make return type const.
2872 * python/py-frame.c (frapy_block): Update.
2873 * python/py-block.c (gdbpy_block_for_pc): Update.
2874 * p-exp.y (%union) <bval>: Now const.
2875 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2876 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2877 * m2-exp.y (%union) <bval>: Now const.
2878 * linespec.c (get_current_search_block): Make return type const.
2879 (create_sals_line_offset, find_label_symbols): Update.
2880 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2881 Update.
2882 (block_starting_point_at): Make "block" const.
2883 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2884 (check_exception_resume): Update.
2885 * guile/scm-frame.c (gdbscm_frame_block): Update.
2886 * guile/scm-block.c (gdbscm_lookup_block): Update.
2887 * frame.h (get_frame_block): Update.
2888 (get_selected_block): Make return type const.
2889 * frame.c (frame_id_inner): Update.
2890 * f-valprint.c (info_common_command_for_block)
2891 (info_common_command): Update.
2892 * dwarf2loc.c (dwarf2_find_location_expression)
2893 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2894 (locexpr_describe_location_piece): Update.
2895 * c-exp.y (%union) <bval>: Now const.
2896 * breakpoint.c (resolve_sal_pc): Update.
2897 * blockframe.c (get_frame_block):Make return type const.
2898 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2899 (block_innermost_frame): Update.
2900 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2901 (block_for_pc, block_for_pc_sect): Update.
2902 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2903 'pblock' const.
2904 (block_for_pc_sect, block_for_pc): Make return type const.
2905 * ax-gdb.c (gen_expr): Update.
2906 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2907 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2908 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2909 (ada_read_var_value): Update.
2910 * ada-exp.y (struct name_info) <block>: Now const.
2911 (%union): Likewise.
2912 (block_lookup): Constify.
2913
b9228891
GB
29142014-06-18 Gary Benson <gbenson@redhat.com>
2915
2916 * nat/i386-dregs.h: New file.
2917 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2918 * i386-nat.h (i386-dregs.h): New include.
2919 (DR_FIRSTADDR): Now in i386-dregs.h.
2920 (DR_LASTADDR): Likewise.
2921 (DR_NADDR): Likewise.
2922 (DR_STATUS): Likewise.
2923 (DR_CONTROL): Likewise.
2924 (i386_debug_reg_state): Likewise.
2925 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2926
a1aa2221
LM
29272014-06-18 Don Breazeal <donb@codesourcery.com>
2928
2929 * breakpoint.c (set_longjmp_breakpoint): Call
2930 momentary_breakpoint_from_master with additional argument.
2931 (set_longjmp_breakpoint_for_call_dummy): Call
2932 momentary_breakpoint_from_master with additional argument.
2933 (set_std_terminate_breakpoint): Call
2934 momentary_breakpoint_from_master with additional argument.
2935 (momentary_breakpoint_from_master): Add argument to function
2936 definition and use it to initialize structure member flag.
74228e77 2937 (clone_momentary_breakpoint): Call
a1aa2221
LM
2938 momentary_breakpoint_from_master with additional argument.
2939 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2940 member flags set in momentary_breakpoint_from_master.
2941
4be83cc2
GB
29422014-06-18 Gary Benson <gbenson@redhat.com>
2943
2944 * i386-nat.c (i386_show_dr): Renamed to
2945 i386_dr_show and made nonstatic. All uses updated.
2946 (i386_length_and_rw_bits): Renamed to
2947 i386_dr_length_and_rw_bits and made nonstatic.
2948 All uses updated.
2949 (i386_insert_aligned_watchpoint): Renamed to
2950 i386_dr_insert_aligned_watchpoint and made nonstatic.
2951 All uses updated.
2952 (i386_remove_aligned_watchpoint): Renamed to
2953 i386_dr_remove_aligned_watchpoint and made nonstatic.
2954 All uses updated.
2955 (i386_update_inferior_debug_regs): Renamed to
2956 i386_dr_update_inferior_debug_regs and made nonstatic.
2957 All uses updated.
2958
131aa0d4
GB
29592014-06-18 Gary Benson <gbenson@redhat.com>
2960
2961 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2962 (i386_dr_low_can_set_control): Likewise.
2963 (i386_dr_low_set_addr): Likewise.
2964 (i386_dr_low_set_control): Likewise.
2965 (i386_dr_low_get_addr): Likewise.
2966 (i386_dr_low_get_status): Likewise.
2967 (i386_dr_low_get_control): Likewise.
2968 (i386_insert_aligned_watchpoint): Use new macros.
2969 (i386_update_inferior_debug_regs): Likewise.
2970 (i386_stopped_data_address): Likewise.
2971
d9305f7f
GB
29722014-06-18 Gary Benson <gbenson@redhat.com>
2973
2974 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2975 New parameter. All uses updated.
2976
ea008da4
GB
29772014-06-18 Gary Benson <gbenson@redhat.com>
2978
2979 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2980 All uses updated.
2981
1b6d4134
GB
29822014-06-18 Gary Benson <gbenson@redhat.com>
2983
2984 * i386-nat.c (debug_printf): New macro.
2985 (i386_get_debug_register_length): Likewise.
2986 (TARGET_HAS_DR_LEN_8): Use above macro.
2987 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2988 and printf_unfiltered. Use phex to format values.
2989
9b4550ef
GB
29902014-06-18 Gary Benson <gbenson@redhat.com>
2991
2992 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2993 Make const.
2994
6e62758f
GB
29952014-06-18 Gary Benson <gbenson@redhat.com>
2996
2997 * i386-nat.c: Comment changes.
2998
51c79e94
GB
29992014-06-18 Gary Benson <gbenson@redhat.com>
3000
3001 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3002
3e11889a
GB
30032014-06-18 Gary Benson <gbenson@redhat.com>
3004
3005 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3006 (i386_insert_aligned_watchpoint): Likewise.
3007 (i386_remove_aligned_watchpoint): Likewise.
3008 (i386_handle_nonaligned_watchpoint): Likewise.
3009
fc6e2f03
GB
30102014-06-18 Gary Benson <gbenson@redhat.com>
3011
3012 * i386-nat.c: Whitespace changes.
3013
2afe7d50
SB
30142014-06-17 Samuel Bronson <naesten@gmail.com>
3015
3016 * MAINTAINERS: Update Roland McGrath's email address.
3017 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3018 Red Hat a while ago, and giving me a current address.
2afe7d50 3019
3bca49ee
TT
30202014-06-17 Tom Tromey <tromey@redhat.com>
3021
3022 * utils.h (savestring): Remove declaration.
3023
6e366df1
TT
30242014-06-17 Tom Tromey <tromey@redhat.com>
3025
3026 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3027
6be47f0c
KS
30282014-06-16 Keith Seitz <keiths@redhat.com>
3029
3030 PR mi/15863
3031 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3032 to update the varobj if inferior_ptid is null_ptid.
3033
7bc112c1
TT
30342014-06-16 Tom Tromey <tromey@redhat.com>
3035
3036 * target.h (struct target_ops) <to_info_proc>: Make parameter
3037 const.
3038 (target_info_proc): Update.
3039 * target.c (target_info_proc): Make "args" const.
3040 * procfs.c (procfs_info_proc): Update.
3041 * linux-tdep.c (linux_info_proc): Update.
3042 (linux_core_info_proc_mappings): Make "args" const.
3043 (linux_core_info_proc): Update.
3044 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3045 * gdbarch.c: Rebuild.
3046 * gdbarch.h: Rebuild.
3047 * corelow.c (core_info_proc): Update.
3048
fee354ee
TT
30492014-06-16 Tom Tromey <tromey@redhat.com>
3050
3051 * target.h (struct target_ops) <to_disconnect>: Make parameter
3052 const.
3053 (target_disconnect): Update.
3054 * target.c (target_disconnect): Make "args" const.
3055 * target-delegates.c: Rebuild.
3056 * remote.c (remote_disconnect): Update.
3057 * record.h (record_disconnect): Update.
3058 * record.c (record_disconnect): Update.
3059 * inf-child.c (inf_child_disconnect): Update.
3060
a30bf1f1
TT
30612014-06-16 Tom Tromey <tromey@redhat.com>
3062
3063 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3064 * target.c (debug_to_rcmd, default_rcmd): Update.
3065 * target-delegates.c: Rebuild.
3066 * remote.c (remote_rcmd): Update.
3067 * monitor.c (monitor_rcmd): Update.
3068
d03de421
PA
30692014-06-16 Pedro Alves <palves@redhat.com>
3070
3071 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3072 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3073 have OBJF_SHARED set.
3074 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3075 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3076 instead of OBJF_USERLOADED.
3077 * objfiles.h (OBJF_SHARED): Update comment.
3078 (userloaded_objfile_contains_address_p): Rename to ...
3079 (shared_objfile_contains_address_p): ... this, and update
3080 comments.
3081 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3082 new objfile.
3083 (remove_symbol_file_command): Skip objfiles that don't have
3084 OBJF_SHARED set.
3085
99f4262f
TT
30862014-06-16 Tom Tromey <tromey@redhat.com>
3087
3088 * minsyms.h (prim_record_minimal_symbol)
3089 (prim_record_minimal_symbol_and_info): Update comments.
3090
97d66cc6
EZ
30912014-06-14 Eli Zaretskii <eliz@gnu.org>
3092
3093 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3094 or --without-guile, according to how GDB was built.
3095
635c7e8a
TT
30962014-06-13 Tom Tromey <tromey@redhat.com>
3097
3098 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3099 to help_list.
3100 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3101 to help_list.
3102 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3103 help_list.
3104 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3105 help_list.Pass all_commands, not -1, to help_list.
3106 * cli/cli-dump.c (dump_command, append_command)
3107 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3108 (binary_dump_command, binary_append_command): Pass all_commands,
3109 not -1, to help_list.
3110 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3111 -1, to help_list.
3112 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3113 -1, to help_list.
3114 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3115 help_list.
3116 * top.c (set_history): Pass all_commands, not -1, to help_list.
3117 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3118 all_commands, not -1, to help_list.
3119 * symfile.c (overlay_command): Pass all_commands, not -1, to
3120 help_list.
3121 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3122 help_list.
3123 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3124 help_list.
3125 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3126 -1, to help_list.
3127 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3128 not -1, to help_list.
3129 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3130 not -1, to help_list.
3131 * maint.c (maintenance_command, maintenance_info_command)
3132 (maintenance_print_command, maintenance_set_cmd): Pass
3133 all_commands, not -1, to help_list.
3134 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3135 help_list.
3136 * language.c (set_check): Pass all_commands, not -1, to help_list.
3137 * infcmd.c (unset_command): Pass all_commands, not -1, to
3138 help_list.
3139 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3140 help_list.
3141 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3142 help_list.
3143 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3144 help_list.
3145 * breakpoint.c (save_command): Pass all_commands, not -1, to
3146 help_list.
3147 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3148 all_commands, not -1, to help_list.
3149
b94ade42
PL
31502014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3151
3152 * regcache.c (struct register_to_invalidate): New structure.
3153 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3154 functions.
3155 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3156
31f628ae
YQ
31572014-06-12 Yao Qi <yao@codesourcery.com>
3158
3159 * varobj.c (varobj_get_num_children): Call
3160 varobj_is_dynamic_p.
3161 (varobj_list_children): Likewise.
3162 (varobj_update): Likewise. Update comments.
3163
cde5ef40
YQ
31642014-06-12 Yao Qi <yao@codesourcery.com>
3165
3166 * varobj.c (varobj_pretty_printed_p): Rename to ...
3167 (varobj_is_dynamic_p): ... this. New function.
3168 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3169 (varobj_is_dynamic_p): Declare.
3170 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3171 (mi_print_value_p, varobj_update_one): Likewise.
3172
576ea091
YQ
31732014-06-12 Pedro Alves <pedro@codesourcery.com>
3174 Yao Qi <yao@codesourcery.com>
3175
3176 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3177 (varobj_get_iterator): Wrap up code for pretty-printer by
3178 "#if HAVE_PYTHON" and "#endif".
3179 (update_dynamic_varobj_children): Likewise.
3180
827f100c
YQ
31812014-06-12 Pedro Alves <pedro@codesourcery.com>
3182 Yao Qi <yao@codesourcery.com>
3183
3184 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3185 gdb_python_initialized is false. Move some code from varobj.c.
3186 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3187 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3188 (struct varobj_item): Moved to varobj-iter.h".
3189 (varobj_clear_saved_item): New function.
3190 (update_dynamic_varobj_children): Move python-related code to
3191 py-varobj.c.
3192 (free_variable): Call varobj_clear_saved_item and
3193 varobj_iter_delete.
3194
e5250216
YQ
31952014-06-12 Pedro Alves <pedro@codesourcery.com>
3196 Yao Qi <yao@codesourcery.com>
3197
3198 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3199 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3200 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3201 (py-varobj.o): New rule.
3202 * python/py-varobj.c: New file.
3203 * python/python-internal.h (py_varobj_get_iterator): Declare.
3204 * varobj-iter.h: New file.
3205 * varobj.c: Include "varobj-iter.h"
3206 (struct varobj) <child_iter>: Change its type from "PyObject *"
3207 to "struct varobj_iter *".
3208 <saved_item>: Likewise.
3209 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3210 [HAVE_PYTHON] (varobj_get_iterator): New function.
3211 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3212 python-specific code to python/py-varobj.c.
3213 (install_visualizer): Call varobj_iter_delete instead of
3214 Py_XDECREF.
3215 * varobj.h (varobj_ensure_python_env): Declare.
3216
5a2e0d6e
YQ
32172014-06-12 Yao Qi <yao@codesourcery.com>
3218
3219 * varobj.c (struct varobj_item): New structure.
3220 (create_child_with_value): Update declaration.
3221 (varobj_add_child): Replace arguments 'name' and 'value' with
3222 'item'. All callers updated.
3223 (install_dynamic_child): Likewise.
3224 (update_dynamic_varobj_children): Likewise.
3225 (varobj_add_child): Likewise.
3226 (create_child_with_value): Likewise.
3227
919b9a93
JB
32282014-06-11 Joel Brobecker <brobecker@adacore.com>
3229
3230 * NEWS: Create a new section for the next release branch.
3231 Rename the section of the current branch, now that it has
3232 been cut.
3233
71a55bdf
JB
32342014-06-11 Joel Brobecker <brobecker@adacore.com>
3235
3236 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3237 * version.in: Bump version to 7.8.50.DATE-cvs.
3238
364fe1f7
PA
32392014-06-11 Pedro Alves <palves@redhat.com>
3240
3241 PR remote/17028
3242 * ser-mingw.c (net_windows_socket_check_pending): New function.
3243 (net_windows_select_thread): Ignore spurious wakeups. Use
3244 net_windows_socket_check_pending.
3245 (net_windows_wait_handle): Check for pending events with
3246 ioctlsocket, through net_windows_socket_check_pending, instead of
3247 checking the socket's event.
3248
5a6c7709
SC
32492014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3250
3251 * python/python-internal.h (gdb_PyObject_GetAttrString)
3252 (gdb_PyObject_HasAttrString): New inline function definitions.
3253 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3254 char * of the second argument to PyObject_GetAttrString.
74228e77 3255
0e58ee40
JB
32562014-06-10 Joel Brobecker <brobecker@adacore.com>
3257
3258 * serial.c (serial_write): Fix index of character to be printed
3259 in call to serial_logchar when serial debug traces are enabled.
3260
d190df30
JB
32612014-06-10 Joel Brobecker <brobecker@adacore.com>
3262
3263 * gdbtypes (resolve_dynamic_range): Add function description.
3264
b4b01d36
PA
32652014-06-09 Pedro Alves <palves@redhat.com>
3266
3267 * linux-nat.c (linux_child_follow_fork): Initialize status with
3268 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3269 inner block. Only pass the signal to PTRACE_DETACH if in pass
3270 state.
3271
3657956b
GB
32722014-06-09 Gary Benson <gbenson@redhat.com>
3273
3274 * common/signals.c (gdb_signal_from_host): Reorder to separate
3275 the always-available ANSI-standard signals from the signals that
3276 require checking.
3277 (do_gdb_signal_to_host): Likewise.
3278 * proc-events.c (signal_table): Likewise.
3279
c077881a
HZ
32802014-06-08 Hui Zhu <hui@codesourcery.com>
3281
3282 * common/linux-ptrace.c (linux_disable_event_reporting): New
3283 function.
3284 * common/linux-ptrace.h (linux_disable_event_reporting): New
3285 declaration.
3286 * linux-nat.c (linux_child_follow_fork): Do a single step before
3287 detach.
3288
4186eb54
KS
32892014-06-07 Keith Seitz <keiths@redhat.com>
3290
3291 Revert:
3292 PR c++/16253
3293 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3294 from symbol_matches_domain in symtab.c. All local callers
3295 of symbol_matches_domain updated.
3296 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3297 search STRUCT_DOMAIN.
3298 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3299 independently. standard_lookup will do that automatically.
3300 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3301 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3302 (cp_lookup_symbol_in_namespace): Likewise.
3303 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3304 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3305 may return a STRUCT_DOMAIN match.
3306 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3307 * cp-support.c: Include language.h.
3308 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3309 VAR_DOMAIN.
3310 * psymtab.c (match_partial_symbol): Compare the requested
3311 domain with the symbol's domain directly.
3312 (lookup_partial_symbol): Likewise.
3313 * symtab.c (lookup_symbol_in_language): Explain when/why
3314 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3315 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3316 appropriate languages.
3317 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3318 and moved to ada-lang.c
3319 (lookup_block_symbol): Explain that this function only returns
3320 symbol matching the requested DOMAIN.
3321 Compare the requested domain with the symbol's domain directly.
3322 (iterate_over_symbols): Compare the requested domain with the
3323 symbol's domain directly.
3324 * symtab.h (symbol_matches_domain): Remove.
3325
25326a28 33262014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3327
3328 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3329 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3330 (gdbscm_guile_version_is_at_least): Declare.
3331 (gdbscm_scm_string_to_int): Declare.
3332 * guile/guile.c (gdbscm_guile_major_version): New global.
3333 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3334 (guile_datadir): New static global.
3335 (gdbscm_guile_data_directory): New function.
3336 (initialize_scheme_side): Update.
3337 (misc_guile_functions): Add guile-data-directory.
3338 (initialize_gdb_module): Fetch guile version number.
3339 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3340 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3341 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3342 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3343 comments.
3344 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3345 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3346 * guile/scm-value.c (gdbscm_value_to_string): Only call
3347 scm_port_conversion_strategy if Guile version >= 2.0.6.
3348
0a770bb2 33492014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3350
3351 * main.c (print_gdb_help): Add -q and --silent.
3352
73ba372c
GB
33532014-06-06 Gary Benson <gbenson@redhat.com>
3354
3355 * common/signals.c: Remove preprocessor conditionals for
3356 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3357 SIGSEGV and SIGTERM.
3358 * proc-events.c: Likewise.
3359
c33b2f12
MM
33602014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3361
3362 * symfile.c (symfile_free_objfile): Remove restriction to
3363 OBJF_USERLOADED.
3364 * symfile-mem.c (symbol_file_add_from_memory): Call
3365 add_target_sections_of_objfile.
3366
fb934770
LC
33672014-06-05 Ludovic Courtès <ludo@gnu.org>
3368
3369 * guile/scm-value.c (gdbscm_history_append_x): Use
3370 'vlscm_get_value_smob_arg_unsafe' instead of
3371 'vlscm_scm_to_value'.
3372
6ef284bd
SM
33732014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3374
3375 PR mi/15806
3376 * utils.c (printchar): Don't escape at all if quoter is NUL.
3377 Update function documentation to clarify effect of parameter
3378 QUOTER.
3379 * remote.c (escape_buffer): Pass '\\' as the quoter to
3380 fputstrn_unfiltered.
3381 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3382 generate the output.
3383 (mi_solib_unloaded): Same.
3384
270c9937
JB
33852014-06-05 Joel Brobecker <brobecker@adacore.com>
3386
3387 * development.sh: Delete.
3388 * Makefile.in (config.status): Adjust dependency on development.sh.
3389 * configure.ac: Adjust development.sh source call.
3390 * configure: Regenerate.
3391
16f691fb
DE
33922014-06-04 Doug Evans <xdje42@gmail.com>
3393
3394 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3395 is_scheme_bkpt, spec.
3396 (bpscm_make_breakpoint_smob): Initialize new members.
3397 (gdbscm_create_breakpoint_x): Split into two ...
3398 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3399 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3400 (scheme_function breakpoint_functions): Update.
3401 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3402 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3403 register-breakpoint!.
3404
ef7cab6b
JB
34052014-06-04 Joel Brobecker <brobecker@adacorer.com>
3406
3407 PR server/17023
3408 * mem-break.c (z_type_supported): Return zero if
3409 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3410
012370f6
TT
34112014-06-04 Tom Tromey <tromey@redhat.com>
3412
3413 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3414 value_from_contents_and_address_unresolved.
3415 (ada_template_to_fixed_record_type_1): Likewise.
3416 (ada_which_variant_applies): Likewise.
3417 * value.h (value_from_contents_and_address_unresolved): Declare.
3418 * value.c (value_from_contents_and_address_unresolved): New
3419 function.
3420 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3421 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3422 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3423
92e2a17f
TT
34242014-06-04 Tom Tromey <tromey@redhat.com>
3425
3426 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3427
c0939df1
TT
34282014-06-04 Tom Tromey <tromey@redhat.com>
3429
3430 * procfs.c (procfs_attach): Make "args" const.
3431 * windows-nat.c (windows_attach): Make "args" const.
3432 * nto-procfs.c (procfs_attach): Make "args" const.
3433 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3434 * go32-nat.c (go32_attach): Make "args" const.
3435 * gnu-nat.c (gnu_attach): Make "args" const.
3436 * darwin-nat.c (darwin_attach): Make "args" const.
3437 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3438 * linux-nat.c (linux_nat_attach): Make "args" const.
3439 * remote.c (extended_remote_attach_1, extended_remote_attach):
3440 Make "args" const.
3441 * target.h (struct target_ops) <to_attach>: Make "args" const.
3442 (find_default_attach): Likewise.
3443 * utils.c (parse_pid_to_attach): Make "args" const.
3444 * utils.h (parse_pid_to_attach): Update.
3445
8eaff7cd
TT
34462014-06-04 Tom Tromey <tromey@redhat.com>
3447
3448 * target-delegates.c: Rebuild.
3449 * target.c (default_thread_address_space): New function.
3450 (target_thread_address_space): Simplify.
3451 * target.h (struct target_ops) <to_thread_address_space>: Add
3452 TARGET_DEFAULT_FUNC.
3453
1913f160
DE
34542014-06-04 Doug Evans <xdje42@gmail.com>
3455
3456 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3457
70ad5bff
MM
34582014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3459
3460 * record-btrace.c: Include event-loop.h and inf-loop.h.
3461 (record_btrace_resume_exec_dir)
3462 (record_btrace_async_inferior_event_handler)
3463 (record_btrace_handle_async_inferior_event): New.
3464 (record_btrace_open): Create async event handler.
3465 (record_btrace_close): Delete async event handler.
3466 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3467 Mark async event handler.
3468 (record_btrace_execution_direction): New.
3469 (init_record_btrace_ops): Initialize to_execution_direction.
3470
b6210538
DE
34712014-06-03 Doug Evans <xdje42@gmail.com>
3472
3473 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3474 (gdbscm_make_parameter): Ditto.
3475
a5b1fd27
DE
34762014-06-03 Doug Evans <dje@google.com>
3477
3478 * exec.c (exec_close_1): Call clear_section_table instead of
3479 resize_section_table.
3480 (clear_section_table): New function.
3481 (resize_section_table): Make static. Rename arg num_added to
3482 adjustment.
3483 * exec.h (clear_section_table): Declare.
3484 (resize_section_table): Delete.
3485 * progspace.c (release_program_space): Call clear_section_table
3486 instead of resize_section_table.
3487
0c6e92a5
SC
34882014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3489
3490 * NEWS (Python Scripting): Add entry about the new xmethods
3491 feature.
3492
883964a7
SC
34932014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3494
3495 * python/py-xmethods.c: New file.
3496 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3497 (objfpy_dealloc): XDECREF on the new xmethods field.
3498 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3499 field.
3500 (objfpy_get_xmethods): New function.
3501 (objfile_getset): New entry 'xmethods'.
3502 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3503 (pspy_dealloc): XDECREF on the new xmethods field.
3504 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3505 field.
3506 (pspy_get_xmethods): New function.
3507 (pspace_getset): New entry 'xmethods'.
3508 * python/python-internal.h: Add declarations for new functions.
3509 * python/python.c (_initialize_python): Invoke
3510 gdbpy_initialize_xmethods.
3511 * python/lib/gdb/__init__.py (xmethods): New
3512 attribute.
3513 * python/lib/gdb/xmethod.py: New file.
3514 * python/lib/gdb/command/xmethods.py: New file.
3515
58992dc5
SC
35162014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3517
3518 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3519 best match method returned by find_overload_match is an xmethod.
3520 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3521 the best matching operator returned by find_overload_match is an
3522 xmethod.
3523 * valops.c: #include "extension.h".
3524 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3525 Return void. The list of matching source methods is returned in
3526 "fn_list" and a vector of matching debug method workers is
3527 returned in "xm_worker_vec". Update all callers.
3528 (value_find_oload_method_list): Likewise.
3529 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3530 non-NULL, then the index of the best matching method in this
3531 vector is returned. Update all callers.
3532 (find_overload_match): Include xmethods while performing overload
3533 resolution.
3534
e81e7f5e
SC
35352014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3536
3537 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3538 * extension-priv.h (struct extension_language_ops): Add the
3539 xmethod interface.
3540 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3541 get_matching_xmethod_workers, get_xmethod_argtypes,
3542 invoke_xmethod, free_xmethod_worker,
3543 free_xmethod_worker_vec): New functions.
3544 * extension.h: #include "common/vec.h".
3545 New function declarations.
3546 (struct xmethod_worker): New struct.
3547 (VEC (xmethod_worker_ptr)): New vector type.
3548 (xmethod_worker_ptr): New typedef.
3549 (xmethod_worker_vec): Likewise.
3550 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3551 builtin_type.
3552 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3553 (struct builtin_type): New field "xmethod".
3554 * valarith.c (value_ptradd): Assert that the value argument is not
3555 lval_xcallable.
3556 * valops.c (value_must_coerce_to_target): Return 0 for
3557 lval_xcallable values.
3558 * value.c (struct value): New field XM_WORKER in the field
3559 LOCATION.
3560 (value_address, value_raw_address): Return 0 for lval_xcallable
3561 values.
3562 (set_value_address): Assert that the value is not an
3563 lval_xcallable.
3564 (value_free): Free the associated xmethod worker when freeing
3565 lval_xcallable values.
3566 (set_value_component_location): Assert that the WHOLE value is not
3567 lval_xcallable.
3568 (value_of_xmethod, call_xmethod): New functions.
3569 * value.h: Declare "struct xmethod_worker".
3570 Declare new functions value_of_xmethod, call_xmethod.
3571
ef370185
JB
35722014-06-03 Joel Brobecker <brobecker@adacore.com>
3573 Pedro Alves <palves@redhat.com>
3574
3575 PR breakpoints/17000
3576 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3577 New function, extracted from software_breakpoint_inserted_here_p.
3578 (software_breakpoint_inserted_here_p): Replace factored out code
3579 by call to find_non_raw_software_breakpoint_inserted_here.
3580 (bp_target_info_copy_insertion_state): New function.
3581 (bkpt_insert_location): Handle the case of a single-step
3582 breakpoint already inserted at the same address.
3583 (bkpt_remove_location): Handle the case of a single-step
3584 breakpoint still inserted at the same address.
3585 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3586 breakpoint already inserted at the same address.
3587 (deprecated_remove_raw_breakpoint): Handle the case of a
3588 non-raw breakpoint still inserted at the same address.
3589 (find_single_step_breakpoint): New function, extracted from
3590 single_step_breakpoint_inserted_here_p.
3591 (find_single_step_breakpoint): New function,
3592 factored out from single_step_breakpoint_inserted_here_p.
3593 (single_step_breakpoint_inserted_here_p): Reimplement.
3594
1e2ccb61
BM
35952014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3596
3597 Pushed by Joel Brobecker <brobecker@adacore.com>
3598 * source.c (show_substitute_path_command): Fix display of matching
3599 substitution rules.
3600
d3448d85
GB
36012014-06-03 Gary Benson <gbenson@redhat.com>
3602
3603 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3604
06eb1586
DE
36052014-06-02 Doug Evans <xdje42@gmail.com>
3606
3607 Add parameter support for Guile.
3608 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3609 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3610 (scm-param.o): New rule.
3611 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3612 (gdbscm_misc_error): Declare.
3613 (gdbscm_canonicalize_command_name): Declare.
3614 (gdbscm_scm_to_host_string): Declare.
3615 (gdbscm_scm_from_host_string): Declare.
3616 (gdbscm_initialize_parameters): Declare.
3617 * guile/guile.c (initialize_gdb_module): Call
3618 gdbscm_initialize_parameters.
3619 * guile/lib/gdb.scm: Export parameter symbols.
3620 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3621 cmdscm_canonicalize_name and made public. All callers updated.
3622 * guile/scm-exception.c (gdbscm_misc_error): New function.
3623 * guile/scm-param.c: New file.
3624 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3625 (gdbscm_scm_to_host_string): New function.
3626 (gdbscm_scm_from_host_string): New function.
3627 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3628
e698b8c4
DE
36292014-06-02 Doug Evans <xdje42@gmail.com>
3630
3631 Add command support for Guile.
3632 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3633 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3634 (scm-cmd.o): New rule.
3635 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3636 (gdbscm_user_error_p): Declare.
3637 (gdbscm_parse_command_name): Declare.
3638 (gdbscm_valid_command_class_p): Declare.
3639 (gdbscm_initialize_commands): Declare.
3640 * guile/guile.c (initialize_gdb_module): Call
3641 gdbscm_initialize_commands.
3642 * guile/lib/gdb.scm: Export command symbols.
3643 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3644 (throw-user-error): New function.
3645 * guile/scm-cmd.c: New file.
3646 * guile/scm-exception.c (user_error_symbol): New static global.
3647 (gdbscm_user_error_p): New function.
3648 (gdbscm_initialize_exceptions): Set user_error_symbol.
3649 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3650
fb1f94b0
PM
36512014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3652
3653 * top.c (command_loop): Handle comments here...
3654 (command_line_input): ... not here.
3655
ded03782
DE
36562014-06-02 Doug Evans <xdje42@gmail.com>
3657
3658 Add progspace support for Guile.
3659 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3660 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3661 (scm-progspace.o): New rule.
3662 * guile/guile-internal.h (pspace_smob): New typedef.
3663 (psscm_pspace_smob_pretty_printers): Declare.
3664 (psscm_pspace_smob_from_pspace): Declare.
3665 (psscm_scm_from_pspace): Declare.
3666 * guile/guile.c (initialize_gdb_module): Call
3667 gdbscm_initialize_pspaces.
3668 * guile/lib/gdb.scm: Export progspace symbols.
3669 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3670 support.
3671 (append-pretty-printer!): Ditto.
3672 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3673 Implement.
3674 * guile/scm-progspace.c: New file.
3675
397998fc
AM
36762014-06-03 Alan Modra <amodra@gmail.com>
3677
3678 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3679 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3680
6aa5f3a6
DE
36812014-06-02 Doug Evans <dje@google.com>
3682
3683 Add support for skeletonless type units.
3684 * dwarf2read.c (struct dwarf2_per_objfile): New member
3685 n_allocated_type_units.
3686 (struct dwarf2_per_objfile) <tu_stats>: New member
3687 nr_all_type_units_reallocs.
3688 (create_signatured_type_table_from_index): Initialize
3689 n_allocated_type_units
3690 (create_all_type_units): Ditto.
3691 (add_type_unit): Move up in file. New arg slot.
3692 All callers updated. Increase space for all_type_units more
3693 efficiently.
3694 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3695 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3696 (lookup_dwp_signatured_type): Ditto.
3697 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3698 All callers updated.
3699 (build_type_psymtabs_1): Leave type_unit_groups as
3700 NULL if no TUs present.
3701 (print_tu_stats): New function.
3702 (process_skeletonless_type_unit): New function.
3703 (process_dwo_file_for_skeletonless_type_units): New
3704 function.
3705 (process_skeletonless_type_units): New function.
3706 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3707 Call print tu_stats if debugging enabled.
3708
41fac0cf
PA
37092014-06-02 Pedro Alves <palves@redhat.com>
3710
3711 * breakpoint.c (build_target_command_list): Don't build a command
3712 list if we have any duplicate location that isn't a dprintf.
3713
cd1608cc
PA
37142014-06-02 Pedro Alves <palves@redhat.com>
3715
3716 * breakpoint.c (dprintf_breakpoint_hit): New function.
3717 (initialize_breakpoint_ops): Install it as dprintf's
3718 breakpoint_hit method.
3719
486ef3b9
JB
37202014-06-02 Joel Brobecker <brobecker@adacore.com>
3721
3722 * source.c (substitute_path_rule_matches): Simplify using
3723 filename_ncmp instead of FILENAME_CMP.
3724
230cd560
JB
37252014-06-02 Joel Brobecker <brobecker@adacore.com>
3726
3727 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3728
16954d5d
LC
37292014-06-01 Ludovic Courtès <ludo@gnu.org>
3730
3731 * configure.ac: When Guile is available, check for the
3732 availability of 'scm_new_smob'.
3733 * configure, config.h.in: Regenerate.
3734 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3735 function.
3736
53e8a631
AB
37372014-05-30 Andrew Burgess <aburgess@broadcom.com>
3738
3739 * frame.c (struct frame_info): Add stop_string field.
3740 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3741 (get_prev_frame_always): Old content moved into
3742 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3743 TRY_CATCH, handle MEMORY_ERROR exceptions.
3744 (frame_stop_reason_string): New function definition.
3745 * frame.h (unwind_stop_reason_to_string): Extend comment to
3746 mention frame_stop_reason_string.
3747 (frame_stop_reason_string): New function declaration.
3748 * stack.c (frame_info): Switch to frame_stop_reason_string.
3749 (backtrace_command_1): Switch to frame_stop_reason_string.
3750 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3751 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3752 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3753
70e38b8e
AB
37542014-05-30 Andrew Burgess <aburgess@broadcom.com>
3755
3756 * frame.c (frame_stop_reason_string): Rename to ...
3757 (unwind_stop_reason_to_string): this.
3758 * frame.h (frame_stop_reason_string): Rename to ...
3759 (unwind_stop_reason_to_string): this.
3760 * stack.c (frame_info): Update call to frame_stop_reason_string.
3761 (backtrace_command_1): Likewise.
3762 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3763 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3764
938f0e2f
AB
37652014-05-30 Andrew Burgess <aburgess@broadcom.com>
3766
3767 * frame.c (remove_prev_frame): New function.
3768 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3769 remove_prev_frame.
3770
a09dd441
PA
37712014-05-29 Pedro Alves <palves@redhat.com>
3772
3773 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3774 and make it const. When a single-step decays to a continue,
3775 clear 'step', not 'hw_step'. Pass whether the caller wanted
3776 to step to user_visible_resume_ptid, not what we ask the
3777 target to do.
3778
bdc36728
PA
37792014-05-29 Pedro Alves <palves@redhat.com>
3780
3781 * infrun.c (process_event_stop_test, handle_step_into_function)
3782 (handle_step_into_function_backward): Adjust.
3783 Don't set the even thread's stop_step and call stop_waiting before
3784 calling end_stepping_range. Instead do that ...
3785 (end_stepping_range): ... here. Take an ecs pointer parameter.
3786
22bcd14b
PA
37872014-05-29 Pedro Alves <palves@redhat.com>
3788
3789 * infrun.c (stop_stepping): Rename to ...
3790 (stop_waiting): ... this.
3791 (proceed): Update comment.
3792 (process_event_stop_test, handle_inferior_event)
3793 (handle_signal_stop, handle_step_into_function)
3794 (handle_step_into_function_backward): Update.
3795
4ae57c05
PA
37962014-05-29 Pedro Alves <palves@redhat.com>
3797
3798 * infcall.c (run_inferior_call): Don't check whether the current
3799 thread is running after the proceed call.
3800
329ea579
PA
38012014-05-29 Pedro Alves <palves@redhat.com>
3802 Tom Tromey <tromey@redhat.com>
3803
3804 * NEWS: Mention "maint set target-async", "set mi-async", and that
3805 background execution commands are now always available.
3806 * target.h (target_async_permitted): Update comment.
3807 * target.c (target_async_permitted, target_async_permitted_1):
3808 Default to 1.
3809 (set_target_async_command): Rename to ...
3810 (maint_set_target_async_command): ... this.
3811 (show_target_async_command): Rename to ...
3812 (maint_show_target_async_command): ... this.
3813 (_initialize_target): Adjust.
3814 * infcmd.c (prepare_execution_command): Make extern.
3815 * inferior.h (prepare_execution_command): Declare.
3816 * infrun.c (set_observer_mode): Leave target async alone.
3817 * mi/mi-interp.c (mi_interpreter_init): Install
3818 mi_on_sync_execution_done as sync_execution_done observer.
3819 (mi_on_sync_execution_done): New function.
3820 (mi_execute_command_input_handler): Don't print the prompt if we
3821 just started a synchronous command with an async target.
3822 (mi_on_resume): Check sync_execution before printing prompt.
3823 * mi/mi-main.h (mi_async_p): Declare.
3824 * mi/mi-main.c: Include gdbcmd.h.
3825 (mi_async_p): New function.
3826 (mi_async, mi_async_1): New globals.
3827 (set_mi_async_command, show_mi_async_command, mi_async): New
3828 functions.
3829 (exec_continue): Call prepare_execution_command.
3830 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3831 (mi_execute_async_cli_command): Use mi_async_p.
3832 (_initialize_mi_main): Install "set mi-async". Make
3833 "target-async" a deprecated alias.
3834
92bcb5f9
PA
38352014-05-29 Pedro Alves <palves@redhat.com>
3836
3837 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3838 (_initialize_cli_interp): Adjust.
3839 * event-loop.c: Include "observer.h".
3840 (start_event_loop): Notify 'command_error' observers instead of
3841 calling display_gdb_prompt. Remove FIXME comment.
3842 * event-top.c (display_gdb_prompt): Remove call into the
3843 interpreters.
3844 * inf-loop.c: Include "observer.h".
3845 (inferior_event_handler): Notify 'command_error' observers instead
3846 of calling display_gdb_prompt.
3847 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3848 observers instead of calling display_gdb_prompt.
3849 * interps.c (interp_set): Don't call display_gdb_prompt.
3850 (current_interp_display_prompt_p): Delete.
3851 * interps.h (interp_prompt_p): Delete declaration.
3852 (interp_prompt_p_ftype): Delete.
3853 (struct interp_procs) <prompt_proc_p>: Delete field.
3854 (current_interp_display_prompt_p): Delete declaration.
3855 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3856 (_initialize_mi_interp): Adjust.
3857 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3858 'command_error' observers.
3859 (tui_on_sync_execution_done, tui_on_command_error): New
3860 functions.
3861 (tui_display_prompt_p): Delete.
3862 (_initialize_tui_interp): Adjust.
3863
fd664c91
PA
38642014-05-29 Pedro Alves <palves@redhat.com>
3865
3866 PR gdb/13860
3867 * cli/cli-interp.c: Include infrun.h and observer.h.
3868 (cli_uiout, cli_interp): New globals.
3869 (cli_on_signal_received, cli_on_end_stepping_range)
3870 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3871 functions.
3872 (cli_interpreter_init): Install them as 'end_stepping_range',
3873 'signal_received' 'signal_exited', 'exited' and 'no_history'
3874 observers.
3875 (_initialize_cli_interp): Remove cli_interp local.
3876 * infrun.c (handle_inferior_event): Call the several stop reason
3877 observers instead of printing the stop reason directly.
3878 (end_stepping_range): New function.
3879 (print_end_stepping_range_reason, print_signal_exited_reason)
3880 (print_exited_reason, print_signal_received_reason)
3881 (print_no_history_reason): Make static, and add an uiout
3882 parameter. Print to that instead of to CURRENT_UIOUT.
3883 * infrun.h (print_end_stepping_range_reason)
3884 (print_signal_exited_reason, print_exited_reason)
3885 (print_signal_received_reason print_no_history_reason): New
3886 declarations.
3887 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3888 'mi_uiout'.
3889 <cli_uiout>: New field.
3890 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3891 uiout for CLI output. Install 'signal_received',
3892 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3893 observers.
3894 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3895 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3896 (mi_on_no_history): New functions.
3897 (ui_out_free_cleanup): Delete function.
3898 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3899 instead use the one already stored in the MI interpreter data.
3900 (mi_ui_out): Adjust.
3901 * tui/tui-interp.c: Include infrun.h and observer.h.
3902 (tui_interp): New global.
3903 (tui_on_signal_received, tui_on_end_stepping_range)
3904 (tui_on_signal_exited, tui_on_exited)
3905 (tui_on_no_history): New functions.
3906 (tui_init): Install them as 'end_stepping_range',
3907 'signal_received' 'signal_exited', 'exited' and 'no_history'
3908 observers.
3909 (_initialize_tui_interp): Delete tui_interp local.
3910
8817a6f2
PA
39112014-05-29 Pedro Alves <palves@redhat.com>
3912
3913 PR gdb/15713
3914 * linux-nat.c (linux_nat_resume_callback): Rename the second
3915 parameter to 'except'. Skip LP if it points to EXCEPT.
3916 (linux_nat_resume): Don't mark the event lwp as not stopped
3917 before resuming sibling lwps. Instead ask
3918 linux_nat_resume_callback to skip the event lwp. Mark it as not
3919 stopped after actually resuming it.
3920 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3921 resuming it.
3922 (wait_lwp): Mark the lwp as stopped here.
3923 (stop_wait_callback): Mark the lwp as not stopped right after
3924 resuming it. Don't mark lwps as stopped here.
3925 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3926 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3927
251bde03
PA
39282014-05-29 Pedro Alves <palves@redhat.com>
3929
3930 PR PR15693
3931 * infrun.c (resume): Determine how much to resume depending on
3932 whether the caller wanted a step, not whether we can hardware step
3933 the target. Mark all threads that we intend to run as running,
3934 unless we're calling an inferior function.
3935 (normal_stop): If the thread is running an infcall, don't finish
3936 thread state.
3937 * target.c (target_resume): Don't mark threads as running here.
3938
7f3c0343
JB
39392014-05-28 Joel Brobecker <brobecker@adacore.com>
3940
3941 * serial.c (_initialize_serial): Remove support for
3942 the "set remotebaud" and "show remotebaud" commands.
3943 * NEWS: Add entry documenting the removal of that command.
3944
ee34b3f9
YQ
39452014-05-28 Yao Qi <yao@codesourcery.com>
3946
3947 * charset.c: Fix typo in comments.
3948
add6c04d
GB
39492014-05-27 Gary Benson <gbenson@redhat.com>
3950
3951 * utils.c (internal_vproblem): Prompt for a bug report.
3952
92c48fc5
AW
39532014-05-26 Andy Wingo <wingo@igalia.com>
3954
3955 * guile/scm-arch.c (arscm_mark_arch_smob):
3956 * guile/scm-block.c (bkscm_mark_block_smob)
3957 (bkscm_mark_block_syms_progress_smob):
3958 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3959 * guile/scm-exception.c (exscm_mark_exception_smob):
3960 * guile/scm-frame.c (frscm_mark_frame_smob):
3961 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3962 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3963 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3964 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3965 (ppscm_mark_pretty_printer_worker_smob):
3966 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3967 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3968 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3969 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3970 mark functions.
3971 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3972 function.
3973
b2715b27
AW
39742014-05-26 Andy Wingo <wingo@igalia.com>
3975 Doug Evans <xdje42@gmail.com>
3976
3977 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3978 empty_base_class. All uses updated.
3979 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3980 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3981 Adapt all callers.
3982 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3983 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3984 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3985 (gdbscm_gsmob_has_property_p, add_property_name)
3986 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3987 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3988 (gdb-object-has-property?, gdb-object-properties): Remove.
3989 (gdb-object-kind): Renamed from gsmob-kind.
3990
214ab2da
AW
39912014-05-26 Andy Wingo <wingo@igalia.com>
3992
3993 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3994 * configure: Regenerate.
3995
589fdceb
MM
39962014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3997
3998 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3999
67b5c0c1
MM
40002014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4001
4002 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4003 (replay_memory_access_read_only, replay_memory_access_read_write)
4004 (replay_memory_access_types, replay_memory_access)
4005 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4006 (cmd_set_record_btrace, cmd_show_record_btrace)
4007 (cmd_show_replay_memory_access): New.
4008 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4009 (record_btrace_remove_breakpoint): Replace
4010 record_btrace_allow_memory_access with replay_memory_access.
4011 (_initialize_record_btrace): Add commands.
4012 * NEWS: Announce it.
4013
036cd381
RR
40142014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4015
4016 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4017
c77c1e42
RR
40182014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4019
4020 * MAINTAINERS (Write After Approval): Move self back from
4021 paper trail.
4022
45741a9c
PA
40232014-05-22 Pedro Alves <palves@redhat.com>
4024
4025 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4026 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4027 (disable_randomization, enum exec_direction_kind)
4028 (execution_direction, stop_registers, start_remote)
4029 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4030 (wait_for_inferior, normal_stop, get_last_target_status)
4031 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4032 (insert_step_resume_breakpoint_at_sal)
4033 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4034 (set_step_info, print_stop_event, signal_stop_state)
4035 (signal_print_state, signal_pass_state, signal_stop_update)
4036 (signal_print_update, signal_pass_update)
4037 (update_signals_program_target, clear_exit_convenience_vars)
4038 (displaced_step_dump_bytes, update_observer_mode)
4039 (signal_catch_update, gdb_signal_from_command): Move
4040 declarations ...
4041 * infrun.h: ... to this new file.
4042 * amd64-tdep.c: Include infrun.h.
4043 * annotate.c: Include infrun.h.
4044 * arch-utils.c: Include infrun.h.
4045 * arm-linux-tdep.c: Include infrun.h.
4046 * arm-tdep.c: Include infrun.h.
4047 * break-catch-sig.c: Include infrun.h.
4048 * breakpoint.c: Include infrun.h.
4049 * common/agent.c: Include infrun.h instead of inferior.h.
4050 * corelow.c: Include infrun.h.
4051 * event-top.c: Include infrun.h.
4052 * go32-nat.c: Include infrun.h.
4053 * i386-tdep.c: Include infrun.h.
4054 * inf-loop.c: Include infrun.h.
4055 * infcall.c: Include infrun.h.
4056 * infcmd.c: Include infrun.h.
4057 * infrun.c: Include infrun.h.
4058 * linux-fork.c: Include infrun.h.
4059 * linux-nat.c: Include infrun.h.
4060 * linux-thread-db.c: Include infrun.h.
4061 * monitor.c: Include infrun.h.
4062 * nto-tdep.c: Include infrun.h.
4063 * procfs.c: Include infrun.h.
4064 * record-btrace.c: Include infrun.h.
4065 * record-full.c: Include infrun.h.
4066 * remote-m32r-sdi.c: Include infrun.h.
4067 * remote-mips.c: Include infrun.h.
4068 * remote-notif.c: Include infrun.h.
4069 * remote-sim.c: Include infrun.h.
4070 * remote.c: Include infrun.h.
4071 * reverse.c: Include infrun.h.
4072 * rs6000-tdep.c: Include infrun.h.
4073 * s390-linux-tdep.c: Include infrun.h.
4074 * solib-irix.c: Include infrun.h.
4075 * solib-osf.c: Include infrun.h.
4076 * solib-svr4.c: Include infrun.h.
4077 * target.c: Include infrun.h.
4078 * top.c: Include infrun.h.
4079 * windows-nat.c: Include infrun.h.
4080 * mi/mi-interp.c: Include infrun.h.
4081 * mi/mi-main.c: Include infrun.h.
4082 * python/py-threadevent.c: Include infrun.h.
4083
98eb56a4
PA
40842014-05-22 Pedro Alves <palves@redhat.com>
4085
4086 * infrun.c (handle_inferior_event): Store the exit code for
4087 --return-child-result here, instead of ...
4088 (print_exited_reason): ... here.
4089
17b2616c
PA
40902014-05-21 Pedro Alves <palves@redhat.com>
4091
4092 PR gdb/13860
4093 * gdbthread.h (struct thread_control_state): New field
4094 `command_interp'.
4095 * infrun.c (follow_fork): Copy the new thread control field to the
4096 child fork thread.
4097 (clear_proceed_status_thread): Clear the new thread control field.
4098 (proceed): Set the new thread control field.
4099 * interps.h (command_interp): Declare.
4100 * interps.c (command_interpreter): New global.
4101 (command_interp): New function.
4102 (interp_exec): Set `command_interpreter' while here.
4103 * cli-out.c (cli_uiout_dtor): New function.
4104 (cli_ui_out_impl): Install it.
4105 * mi/mi-interp.c: Include cli-out.h.
4106 (mi_cmd_interpreter_exec): Add comment.
4107 (restore_current_uiout_cleanup): New function.
4108 (ui_out_free_cleanup): New function.
4109 (mi_on_normal_stop): If finishing an execution command started by
4110 a CLI command, or any kind of breakpoint-like event triggered,
4111 print the stop event to the output (CLI) stream.
4112 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4113
5166082f
PA
41142014-05-21 Pedro Alves <palves@redhat.com>
4115
4116 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4117 current source line having changed.
4118 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4119 * infrun.c (normal_stop): Adjust call to
4120 set_current_sal_from_frame.
4121 * source.c (clear_lines_listed_range): New function.
4122 (set_current_source_symtab_and_line, identify_source_line): Clear
4123 the lines listed range.
4124 (line_info): Handle the first "info line" after the current source
4125 line having changed.
4126 * stack.c (print_stack_frame): Remove center handling.
4127 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4128 center sal.line.
4129
c1ee2fb3
PA
41302014-05-21 Pedro Alves <palves@redhat.com>
4131
4132 * inf-child.c (inf_child_mourn_inferior): New function.
4133 * inf-child.h (inf_child_mourn_inferior): New declaration.
4134 * darwin-nat.c (darwin_mourn_inferior): Use
4135 inf_child_mourn_inferior.
4136 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4137 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4138 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4139 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4140 * windows-nat.c (windows_mourn_inferior): Likewise.
4141
5c6d4fb2
DE
41422014-05-21 Doug Evans <xdje42@gmail.com>
4143
250748cb 4144 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4145
4a2722c5
DE
41462014-05-21 Doug Evans <xdje42@gmail.com>
4147
17292b30 4148 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4149 (gdbscm_out_of_range_error): Ditto.
4150 (gdbscm_memory_error): Ditto.
250748cb
DE
4151 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4152 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4153 (gdbscm_out_of_range_error): Update.
4154 (gdbscm_memory_error): Update.
4155 (gdbscm_scm_to_target_string_unsafe): Delete.
4156
6a3cb8e8
PA
41572014-05-21 Pedro Alves <palves@redhat.com>
4158
4159 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4160 globals.
4161 (inf_child_open_target): New function.
4162 (inf_child_open): Use inf_child_open_target to push the target
4163 instead of erroring out.
4164 (inf_child_disconnect, inf_child_close)
4165 (inf_child_maybe_unpush_target): New functions.
4166 (inf_child_target): Install inf_child_disconnect and
4167 inf_child_close. Store a pointer to the returned object.
4168 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4169 declarations.
4170 * target.c (auto_connect_native_target): New global.
4171 (show_default_run_target): New function.
4172 (find_default_run_target): Return NULL if automatically connecting
4173 to the native target is disabled.
4174 (_initialize_target): Install set/show auto-connect-native-target.
4175 * NEWS: Mention "set auto-connect-native-target", and "target
4176 native".
4177 * linux-nat.c (super_close): New global.
4178 (linux_nat_close): Call super_close.
4179 (linux_nat_add_target): Store a pointer to the base class's
4180 to_close method.
4181 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4182 inf_child_maybe_unpush.
4183 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4184 already pushed.
4185 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4186 the inferior. Use inf_child_maybe_unpush_target.
4187 (inf_ttrace_attach): Don't push the target if it is already
4188 pushed.
4189 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4190 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4191 after mourning the inferior. Use inf_child_maybe_unpush_target.
4192 (darwin_attach_pid): Don't push the target if it is already
4193 pushed.
4194 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4195 mourning the inferior. Use inf_child_maybe_unpush_target.
4196 (gnu_detach): Use inf_child_maybe_unpush_target.
4197 * go32-nat.c (go32_create_inferior): Don't push the target if it
4198 is already pushed.
4199 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4200 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4201 (procfs_open): Rename to ...
4202 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4203 comments. Can target_preopen before changing node. Call
4204 inf_child_open_target to push the target explicitly.
4205 (procfs_attach): Don't push the target if it is already pushed.
4206 (procfs_detach): Use inf_child_maybe_unpush_target.
4207 (procfs_create_inferior): Don't push the target if it is already
4208 pushed.
4209 (nto_native_ops): New global.
4210 (procfs_open): Reimplement.
4211 (procfs_native_open): New function.
4212 (init_procfs_targets): Install procfs_native_open as to_open of
4213 "target native". Store a pointer to the "native" target in
4214 nto_native_ops.
4215 * procfs.c (procfs_attach): Don't push the target if it is already
4216 pushed.
4217 (procfs_detach): Use inf_child_maybe_unpush_target.
4218 (procfs_mourn_inferior): Only unpush the target after mourning the
4219 inferior. Use inf_child_maybe_unpush_target.
4220 (procfs_init_inferior): Don't push the target if it is already
4221 pushed.
4222 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4223 if it is already pushed.
4224
930ee1b1
PA
42252014-05-21 Pedro Alves <palves@redhat.com>
4226
4227 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4228 and "procfs" targets are now called "native" instead.
4229
1f5d1b13
PA
42302014-05-21 Pedro Alves <palves@redhat.com>
4231
4232 * go32-nat.c (go32_open): Delete.
4233 (go32_target): Don't override the to_open method.
4234
132f8e03
PA
42352014-05-21 Pedro Alves <palves@redhat.com>
4236
4237 * nto-procfs.c (procfs_can_run): New function.
4238 (nto_procfs_ops): New global.
4239 (init_procfs_targets): New, based on procfs_target. Install
4240 "target native" in addition to "target procfs".
4241 (_initialize_procfs): Call init_procfs_targets instead of adding
4242 the target here.
4243
03c136c3
PA
42442014-05-21 Pedro Alves <palves@redhat.com>
4245
4246 * windows-nat.c (windows_target): Don't override to_shortname,
4247 to_longname or to_doc.
4248
a635d0f3
PA
42492014-05-21 Pedro Alves <palves@redhat.com>
4250
4251 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4252 to_doc.
4253
4f9b5133
PA
42542014-05-21 Pedro Alves <palves@redhat.com>
4255
4256 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4257 to_shortname, to_longname or to_doc.
4258
bc85afde
PA
42592014-05-21 Pedro Alves <palves@redhat.com>
4260
4261 * go32-nat.c (go32_target): Don't override to_shortname,
4262 to_longname or to_doc.
4263
4ebfc96e
PA
42642014-05-21 Pedro Alves <palves@redhat.com>
4265
4266 * inf-child.c (inf_child_open): Remove mention of "child".
4267 (inf_child_target): Rename target to "native" instead of "child".
4268
2648dfed
AA
42692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4270
4271 * Makefile.in (SFILES): Delete "regset.c".
4272 (COMMON_OBS): Delete "regset.o".
4273 * regset.c: Remove.
4274 * regset.h (regset_alloc): Delete prototype.
4275
b13feb94
AA
42762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4277
4278 * sparc-linux-tdep.c (sparc32_linux_gregset)
4279 (sparc32_linux_fpregset): New static regset structures.
4280 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4281 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4282 'fpregset' fields.
4283 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4284 (sparc64_linux_fpregset): New static regset structures.
4285 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4286 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4287 New static regset structures.
4288 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4289 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4290 New static regset structures.
4291 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4292 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4293 New static regset structures.
4294 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4295 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4296 New static regset structures.
4297 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4298
b4fd25c9
AA
42992014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4300
4301 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4302 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4303 register maps ("regmaps") from "*regset" to "*regmap". Do this
4304 for all regmap types and variables.
4305 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4306 (sparc32_linux_supply_core_gregset)
4307 (sparc32_linux_collect_core_gregset)
4308 (sparc32_linux_supply_core_fpregset)
4309 (sparc32_linux_collect_core_fpregset): Likewise.
4310 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4311 (sparc_gregmap, sparc_fpregmap): ... these.
4312 (sparc_supply_gregset, sparc_collect_gregset)
4313 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4314 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4315 (_initialize_sparc_nat): Rename regmaps.
4316 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4317 (sparc_gregmap, sparc_fpregmap): ... these.
4318 (sparc_supply_gregset, sparc_collect_gregset)
4319 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4320 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4321 Rename macros to...
4322 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4323 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4324 Likewise.
4325 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4326 Rename to...
4327 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4328 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4329 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4330 regmaps.
4331 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4332 (sparc32_bsd_fpregset): Rename to...
4333 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4334 (sparc32_bsd_fpregmap): ... these.
4335 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4336 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4337 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4338 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4339 (struct sparc_gregmap, struct sparc_fpregmap)
4340 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4341 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4342 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4343 (sparc32_supply_regset, sparc32_collect_gregset)
4344 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4345 prototypes.
4346 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4347 (sparc64_linux_ptrace_gregmap): ... this.
4348 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4349 (_initialize_sparc64_linux_nat): Rename regmaps.
4350 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4351 (sparc64_linux_core_gregmap): ... this.
4352 (sparc64_linux_supply_core_gregset)
4353 (sparc64_linux_collect_core_gregset)
4354 (sparc64_linux_supply_core_fpregset)
4355 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4356 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4357 (sparc64_sol2_fpregset): Rename to...
4358 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4359 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4360 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4361 regmaps.
4362 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4363 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4364 (sparc64_bsd_fpregset): Rename to...
4365 (struct sparc_gregmap, sparc64_sol2_gregmap)
4366 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4367 (sparc64_bsd_fpregmap): ... these.
4368 (sparc64_supply_gregset, sparc64_collect_gregset)
4369 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4370 prototypes.
4371 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4372 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4373 (sparc64fbsd_gregmap): ... this.
4374 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4375 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4376 Rename regmaps.
4377 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4378 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4379 (sparc64nbsd_collect_fpregset): Likewise.
4380 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4381 (sparc64nbsd_gregmap): ... this.
4382 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4383 regmaps.
4384 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4385 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4386 (sparc64obsd_gregmap): ... this.
4387 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4388 regmaps.
4389 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4390 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4391 (sparc32nbsd_gregmap): ... this.
4392 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4393 regmaps.
4394
8fea3224
AA
43952014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4396
4397 * score-tdep.c (score7_linux_gregset): New static regset
4398 structure.
4399 (score7_linux_regset_from_core_section): Remove dynamic regset
4400 allocation.
4401 (score_gdbarch_init): Drop allocation of tdep structure.
4402 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4403
24534243
AA
44042014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4405
4406 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4407 regset structures.
4408 (am33_regset_from_core_section): Remove dynamic regset
4409 allocations.
4410
b7195f27
AA
44112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4412
4413 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4414 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4415 structures.
4416 (mips_linux_regset_from_core_section): Remove dynamic regset
4417 allocations.
4418 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4419 'gregset64', 'fpregset', and 'fpregset64'.
4420 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4421 deleted tdep fields.
4422
ecc37a5a
AA
44232014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4424
4425 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4426 regset structures.
4427 (amd64_regset_from_core_section): Remove dynamic regset
4428 allocations.
4429 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4430 structure.
4431 (amd64obsd_regset_from_core_section): Remove dynamic regset
4432 allocation.
4433 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4434 Likewise.
4435 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4436 x86-common regset supply function.
4437 * i386-tdep.c (i386_collect_gregset): Make static.
4438 (i386_gregset): New global regset structure.
4439 (i386_fpregset, i386_xstateregset): New static regset structures.
4440 (i386_regset_from_core_section): Remove dynamic regset
4441 allocations.
4442 (i386_gdbarch_init): Remove initialization of tdep fields
4443 'gregset', 'fpregset', and 'xstateregset'.
4444 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4445 'fpregset', and 'xstateregset'.
4446 (i386_collect_gregset): Remove prototype.
4447 (i386_gregset): New declaration.
4448 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4449 structure.
4450 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4451 allocation.
4452
b7611c43
AA
44532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4454
4455 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4456 (arm_linux_vfpregset): New static regset structures.
4457 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4458 regset structures.
4459 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4460 and 'vfpregset' fields.
4461
a069a2bd
AA
44622014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4463
4464 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4465 (aarch64_linux_fpregset): New static regset structures.
4466 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4467 of regset structures.
4468 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4469 'fpregset' fields.
4470
09424cff
AA
44712014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4472
4473 * regset.h (struct regset): Remove gdbarch field.
4474 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4475 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4476 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4477 Likewise.
4478 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4479 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4480 (ppc32_linux_vsxregset): Likewise.
4481 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4482 via the regcache instead of the regset.
4483 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4484 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4485 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4486 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4487 Likewise.
4488
3ca7dae4
AA
44892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4490
4491 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4492 Constify structures.
4493 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4494 (alphanbsd_aout_gregset): Likewise.
4495 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4496 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4497 Likewise.
4498 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4499 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4500 Likewise.
4501 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4502 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4503 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4504 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4505 * m88k-tdep.c (m88k_gregset): Likewise.
4506 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4507 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4508 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4509 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4510 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4511 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4512 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4513 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4514 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4515 Likewise.
4516 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4517 * sh-tdep.h (sh_corefile_gregset): Likewise.
4518 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4519 * vax-tdep.c (vax_gregset): Likewise.
4520
5876f503
JK
45212014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4522
4523 Fix TLS access for -static -pthread.
4524 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4525 (try_thread_db_load_1): Initialize it.
4526 (thread_db_get_thread_local_address): Call it if LM is zero.
4527 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4528 * target.h (struct target_ops) (to_get_thread_local_address): Add
4529 load_module_addr comment.
4530
0256a6ac
PA
45312014-05-21 Pedro Alves <palves@redhat.com>
4532
4533 * dcache.c (dcache_read_memory_partial): If reading the cache line
4534 fails, fallback to reading just the memory the caller wanted.
4535
227533ac
DE
45362014-05-20 Doug Evans <dje@google.com>
4537
4538 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4539 instead of get_current_arch.
4540
936d2992
PA
45412014-05-20 Pedro Alves <palves@redhat.com>
4542
4543 * NEWS: Mention that compare-sections now works with all targets.
4544
4545 * remote.c (PACKET_qCRC): New enum value.
4546 (remote_verify_memory): Don't send qCRC if the target has no
4547 execution. Use packet_support/packet_ok. If the target doesn't
4548 support the qCRC packet, fallback to a deep memory copy.
4549 (compare_sections_command): Say "target image" instead of "remote
4550 executable".
4551 (_initialize_remote): Add PACKET_qCRC to the list of config
4552 packets that have no associated command. Extend comment.
4553 * target.c (simple_verify_memory, default_verify_memory): New
4554 function.
4555 * target.h (struct target_ops) <to_verify_memory>: Default to
4556 default_verify_memory.
4557 (simple_verify_memory): New declaration.
4558 * target-delegates.c: Regenerate.
4559
e59fa00f
MM
45602014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4561
4562 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4563
f2205de0
HZ
45642014-05-20 Hui Zhu <hui@codesourcery.com>
4565 Yao Qi <yao@codesourcery.com>
4566
4567 PR backtrace/16558
4568 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4569 and change address of sp and pc.
4570
c4e54771
TT
45712014-05-19 Tom Tromey <tromey@redhat.com>
4572
4573 * gdbtypes.c (rank_function): Use XNEWVEC.
4574 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4575
73051182
DE
45762014-05-19 Doug Evans <dje@google.com>
4577
4578 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4579 build_type_unit_groups and moved closer to only caller. Remove
4580 arguments. All references updated. Remove outdated .gdb_index
4581 comment.
4582 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4583 build_type_psymtabs_1.
4584
8832e7e3
DE
45852014-05-19 Doug Evans <dje@google.com>
4586
4587 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4588 n_type_unit_groups, all_type_unit_groups. All uses removed.
4589 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4590 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4591 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4592 (add_type_unit_group_to_table): Delete.
4593
cd8ae15e
DE
45942014-05-19 Doug Evans <dje@google.com>
4595
4596 * eval.c (evaluate_subexp_standard): Add some comments.
4597
08f4850b
DE
45982014-05-17 Doug Evans <xdje42@gmail.com>
4599
4600 * progspace.c (remove_program_space): Delete, unused.
4601 * progspace.h (remove_program_space): Ditto.
4602
bed8455c
DE
46032014-05-17 Doug Evans <xdje42@gmail.com>
4604
4605 * inferior.c (prune_inferiors): Fix comment.
4606 (remove_inferior_command): Call prune_program_spaces.
4607
8d551b02
DE
46082014-05-16 Doug Evans <dje@google.com>
4609
4610 New command line option -D.
4611 * NEWS: Mention it.
4612 * main.c (set_gdb_data_directory): New function.
4613 (captured_main): Recognize -D. Flag error for --data-directory "".
4614 Call set_gdb_data_directory.
4615 (print_gdb_help): Print --data-directory, -D.
4616 * main.h (set_gdb_data_directory): Declare.
4617 * top.c (staged_gdb_datadir): New static global.
4618 (set_gdb_datadir): Call set_gdb_data_directory
4619 (show_gdb_datadir): New function.
4620 (init_main): Update init of data-directory parameter.
4621
18848e28
GF
46222014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4623
4624 Import the "dirfd" gnulib module.
4625 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4626 * gnulib/aclocal.m4: Update.
4627 * gnulib/config.in: Update.
4628 * gnulib/configure: Update.
4629 * gnulib/import/Makefile.am: Update.
4630 * gnulib/import/Makefile.in: Update.
4631 * gnulib/import/dirfd.c: New.
4632 * gnulib/import/m4/dirfd.m4: New.
4633 * gnulib/import/m4/gnulib-cache.m4: Update.
4634 * gnulib/import/m4/gnulib-comp.m4: Update.
4635
95c64f92
YQ
46362014-05-16 Pierre Muller <muller@sourceware.org>
4637 Yao Qi <yao@codesourcery.com>
4638
4639 * valprint.c (print_wchar): Move the code on checking whether
4640 W is a printable wide char to the default branch of switch
4641 statement below. Call wchar_printable instead of gdb_iswprint.
4642
cac395ea
TM
46432014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4644
19679eca 4645 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4646 ldr.w and ldrd instructions.
4647
83655187
DE
46482014-05-15 Doug Evans <dje@google.com>
4649
4650 * dwarf2read.c (read_structure_type): Delete outdated comments.
4651
dd756689
TT
46522014-05-14 Tom Tromey <tromey@redhat.com>
4653
4654 * macrocmd.c (print_macro_definition): Reindent.
4655
75ddda77
DE
46562014-05-13 Doug Evans <xdje42@gmail.com>
4657
4658 * python/py-cmd.c (cmdpy_completer): Add comment.
4659 (completers): Make const.
4660
b0f16a3e
SM
46612014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4662
4663 * infrun.c (resume): Remove should_resume (unused). Move up
4664 declaration of resume_ptid.
4665
033c3379
TT
46662014-05-13 Tom Tromey <tromey@redhat.com>
4667
4668 * language.h (unop_type_check): Remove.
4669 (binop_type_check): Don't declare.
4670
9b44a3a5
AA
46712014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4672
4673 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4674 call to regcache_raw_collect.
4675
303a33fa
SM
46762014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4677
4678 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4679 mi_console->quote as the quoting character.
4680
196100a0
SM
46812014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4682
4683 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4684
f989a1c8
TT
46852014-04-29 Tom Tromey <tromey@redhat.com>
4686
4687 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4688 "show debug varobj".
4689
9404b58f
KM
46902014-05-07 Kyle McMartin <kyle@redhat.com>
4691
4692 Pushed by Joel Brobecker <brobecker@adacore.com>.
4693 * aarch64-tdep.c (aarch64_software_single_step): New function.
4694 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4695 with aarch64_software_single_step.
4696
5e49ba57
JB
46972014-05-05 Joel Brobecker <brobecker@adacore.com>
4698
4699 GDB 7.7.1 released.
4700
c888a17d
KS
47012014-05-05 Keith Seitz <keiths@redhat.com>
4702
4703 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4704 variable or history value is successfully parsed.
4705
290a839c
YQ
47062014-05-05 Yao Qi <yao@codesourcery.com>
4707 Pedro Alves <palves@redhat.com>
4708
4709 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4710 address of blocks that intersects the requested range. Trim
4711 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4712 sections.
4713 * ctf.c (ctf_xfer_partial): Likewise.
4714
91256dc2
YQ
47152014-05-05 Yao Qi <yao@codesourcery.com>
4716
4717 * printcmd.c (display_command): Remove the check to
4718 target_has_execution.
4719
07284463
MK
47202014-05-03 Mark Kettenis <kettenis@gnu.org>
4721
4722 * ppcobsd-nat.c: Include "obsd-nat.h".
4723 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4724 add_target.
4725 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4726
30a1e6cc
SDJ
47272014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4728
4729 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4730 and 16-bit signed and unsigned arguments. Update comment.
4731 (stap_parse_probe_arguments): Extend code to handle such
4732 arguments. Use warning instead of complaint to notify about
4733 unrecognized bitness.
4734
f33da99a
SDJ
47352014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4736
4737 PR breakpoints/16889
4738 * stap-probe.c (stap_parse_probe_arguments): Simplify
4739 check for non-prefixed probes (i.e., probes whose
4740 arguments do not start with "N@"). Always set the
4741 argument type to a sane value.
4742
95cf3b38
DT
47432014-05-01 David Taylor <dtaylor@emc.com>
4744
4745 * remote.c (compare_sections_command): Add -r option to compare
4746 all loadable read-only sections.
4747
1cfdf534
SC
47482014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4749
4750 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4751 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4752 Update all callers.
4753 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4754 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4755 Remove unused CORE_ADDR argument. Update all callers.
4756
ca4f7f8b
PA
47572014-04-29 Pedro Alves <palves@redhat.com>
4758
4759 * remote.c (struct packet_config) <detect>: Extend comment.
4760 (add_packet_config_cmd): Don't set the config's detect or support
4761 fields here.
4762 (init_all_packet_configs): Also initialize the config's 'detect'
4763 field.
4764 (reset_all_packet_configs_support): New function.
4765 (remote_open_1): Call reset_all_packet_configs_support instead of
4766 init_all_packet_configs.
4767 (_initialize_remote): Initialize all packet configs. Assert that
4768 all packets have an associated command, except a few known
4769 outliers.
4770
11c1ba78
JB
47712014-04-28 Joel Brobecker <brobecker@adacore.com>
4772
4773 * dwarf2read.c (read_subrange_type): Handle dynamic
4774 DW_AT_lower_bound attributes.
4775
8739bc53
JB
47762014-04-28 Joel Brobecker <brobecker@adacore.com>
4777
4778 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4779 dynamic bounds before computing its upper bound.
4780 (ada_discrete_type_low_bound): Same as above with the lower bound.
4781
6f8a3220
JB
47822014-04-28 Joel Brobecker <brobecker@adacore.com>
4783
4784 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4785 range types. Adjust the array handling implementation to
4786 take advantage of this change.
4787 (resolve_dynamic_range): New function, mostly extracted from
4788 resolve_dynamic_bounds.
4789 (resolve_dynamic_array): New function, mostly extracted from
4790 resolve_dynamic_bounds.
4791 (resolve_dynamic_bounds): Delete.
4792 (resolve_dynamic_type): Reimplement. Add handling of
4793 TYPE_CODE_RANGE types.
4794
4d072ce4
JB
47952014-04-28 Joel Brobecker <brobecker@adacore.com>
4796
4797 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4798 handling of parallel ___XA types.
4799
52865325
JB
48002014-04-28 Joel Brobecker <brobecker@adacore.com>
4801
4802 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4803 unnecessary second call to static_unwrap_type.
4804
433e77fa
HZ
48052014-04-27 Hui Zhu <hui@codesourcery.com>
4806
4807 * stack.c (print_frame_info): Call do_gdb_disassembly with
4808 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4809
b51a69ee
DE
48102014-04-26 Doug Evans <xdje42@gmail.com>
4811
4812 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4813
7ae1a6a6
PA
48142014-04-25 Pedro Alves <palves@redhat.com>
4815
4816 PR server/16255
4817 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4818 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4819 and newline from built string.
4820 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4821 (linux_ptrace_attach_fail_reason): ... this.
4822 * linux-nat.c (linux_nat_attach): Adjust to use
4823 linux_ptrace_attach_fail_reason.
4824
4082afcc
PA
48252014-04-25 Pedro Alves <palves@redhat.com>
4826
4827 * remote.c (struct remote_state): Remove multi_process_aware,
4828 non_stop_aware, cond_tracepoints, cond_breakpoints,
4829 breakpoint_commands, fast_tracepoints, static_tracepoints,
4830 install_in_trace, disconnected_tracing,
4831 enable_disable_tracepoints, string_tracing, and
4832 augmented_libraries_svr4_read fields.
4833 (remote_multi_process_p): Move further below in the file.
4834 (struct packet_config): Add comments.
4835 (update_packet_config): Delete function.
4836 (show_packet_config_cmd): Use packet_config_support.
4837 (add_packet_config_cmd): Use NULL as set callback.
4838 (packet_ok): "set remote foo-packet"-style commands no longer
4839 change config->supported -- adjust.
4840 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4841 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4842 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4843 (PACKET_QNonStop, PACKET_multiprocess_feature)
4844 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4845 (PACKET_DisconnectedTracing_feature)
4846 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4847 (set_remote_protocol_packet_cmd): Delete function.
4848 (packet_config_support, packet_support): New functions.
4849 (set_remote_protocol_Z_packet_cmd): Don't call
4850 update_packet_config.
4851 (remote_query_attached, remote_pass_signals)
4852 (remote_program_signals, remote_threads_info)
4853 (remote_threads_extra_info, remote_start_remote): Use
4854 packet_support.
4855 (remote_start_remote): Use packet_config_support and
4856 packet_support.
4857 (init_all_packet_configs): Set all packets to unknown support,
4858 instead of calling update_packet_config.
4859 (remote_check_symbols): Use packet_support.
4860 (remote_supported_packet): Unconditionally set the packet config's
4861 support status.
4862 (remote_multi_process_feature, remote_non_stop_feature)
4863 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4864 (remote_breakpoint_commands_feature)
4865 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4866 (remote_install_in_trace_feature)
4867 (remote_disconnected_tracing_feature)
4868 (remote_enable_disable_tracepoint_feature)
4869 (remote_string_tracing_feature)
4870 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4871 (remote_protocol_features): Adjust to use remote_supported_packet
4872 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4873 "ConditionalTracepoints", "ConditionalBreakpoints",
4874 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4875 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4876 "EnableDisableTracepoints", and "tracenz".
4877 (remote_query_supported): Use packet_support.
4878 (remote_open_1): Adjust.
4879 (extended_remote_attach_1): Use packet_support. Switch on the
4880 result of packet_ok instead of checking whether the packet ended
4881 up disabled.
4882 (remote_vcont_resume): Use packet_support.
4883 (remote_resume, remote_stop_ns, fetch_register_using_p)
4884 (remote_prepare_to_store, store_register_using_P)
4885 (check_binary_download, remote_write_bytes): Use packet_support.
4886 (remote_vkill): Use packet_support. Switch on the result of
4887 packet_ok instead of checking whether the packet ended up
4888 disabled.
4889 (extended_remote_supports_disable_randomization): Use
4890 packet_support.
4891 (extended_remote_run): Switch on the result of packet_ok instead
4892 of checking whether the packet ended up disabled.
4893 (remote_insert_breakpoint, remote_remove_breakpoint)
4894 (remote_insert_watchpoint, remote_remove_watchpoint)
4895 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4896 packet_support.
4897 (remote_search_memory): Use packet_config_support.
4898 (remote_get_thread_local_address, remote_get_tib_address)
4899 (remote_hostio_send_command, remote_can_execute_reverse): Use
4900 packet_support.
4901 (remote_supports_cond_tracepoints)
4902 (remote_supports_cond_breakpoints)
4903 (remote_supports_fast_tracepoints)
4904 (remote_supports_static_tracepoints)
4905 (remote_supports_install_in_trace)
4906 (remote_supports_enable_disable_tracepoint)
4907 (remote_supports_string_tracing)
4908 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4909 the packet config says the feature is enabled or disabled.
4910 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4911 (remote_get_trace_status): Use packet_support.
4912 (remote_set_disconnected_tracing): Adjust to check whether the
4913 feature is enabled with packet_support.
4914 (remote_set_trace_buffer_size, remote_use_agent)
4915 (remote_can_use_agent, remote_supports_btrace): Use
4916 packet_support.
4917 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4918 Use packet_config_support.
4919 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4920 the packet config says the feature is enabled or disabled.
4921 (set_range_stepping): Use packet_support.
4922
bdb52a22
TT
49232014-04-25 Tom Tromey <tromey@redhat.com>
4924
4925 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4926 argument.
4927
e9475ead
SA
49282014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4929
4930 * NEWS: Mention support for C99 variable length arrays.
4931
82eacd52
JB
49322014-04-24 Joel Brobecker <brobecker@adacore.com>
4933
4934 * ada-lang.c (standard_exc): Expand introductory comment.
4935
01f9f808
MS
49362014-04-24 Michael Sturm <michael.sturm@mintel.com>
4937 Walfred Tedeschi <walfred.tedeschi@intel.com>
4938
4939 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4940 AVX512 registers.
4941 (amd64_linux_read_description): Add code to handle AVX512 xstate
4942 mask and return respective tdesc.
4943 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4944 and features/i386/x32-avx512-linux.c.
4945 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4946 (amd64_linux_core_read_description): Add code to handle AVX512
4947 xstate mask and return respective tdesc.
4948 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4949 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4950 calculation.
4951 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4952 (tdesc_amd64_avx512_linux): New prototype.
4953 (tdesc_x32_avx512_linux): Likewise.
4954 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4955 features/i386/x32-avx512.c.
4956 (amd64_ymm_avx512_names): New register names for pseudo
4957 registers YMM16-31.
4958 (amd64_ymmh_avx512_names): New register names for raw registers
4959 YMMH16-31.
4960 (amd64_k_names): New register names for K registers.
4961 (amd64_zmmh_names): New register names for ZMM raw registers.
4962 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4963 (amd64_xmm_avx512_names): New register names for XMM16-31
4964 registers.
4965 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4966 registers.
4967 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4968 if feature is present.
4969 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4970 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4971 (AMD64_NUM_REGS): Adjust to new number of registers.
4972 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4973 registers supplied via XSTATE by AVX512 registers.
4974 (i386_linux_read_description): Add case for AVX512.
4975 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4976 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4977 (i386_linux_core_read_description): Add case for AVX512.
4978 (i386_linux_init_abi): Install supported register note section
4979 for AVX512.
4980 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4981 AVX512.
4982 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4983 registers to be number of zmm7h + 1.
4984 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4985 * i386-tdep.c: Include features/i386/i386-avx512.c.
4986 (i386_zmm_names): Add ZMM pseudo register names array.
4987 (i386_zmmh_names): Add ZMM raw register names array.
4988 (i386_k_names): Add K raw register names array.
4989 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4990 registers. AVX512 has 16 more ZMM registers than there are YMM
4991 registers.
4992 (i386_zmmh_regnum_p): Add function to look up register number of
4993 ZMM raw registers.
4994 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4995 (i386_k_regnum_p): Likewise for K raw registers.
4996 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4997 registers added by AVX512.
4998 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4999 registers added by AVX512.
5000 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5001 added by AVX512.
5002 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5003 (i386_pseudo_register_name): Add ZMM pseudo registers.
5004 (i386_zmm_type): Construct and return vector registers type for ZMM
5005 registers.
5006 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5007 ZMM0-31 pseudo registers and K registers.
5008 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5009 and YMM16-31 registers from register cache.
5010 (i386_pseudo_register_write): Add code to write K, ZMM and
5011 YMM16-31 registers.
5012 (i386_register_reggroup_p): Add code to include/exclude AVX512
5013 registers in/from respective register groups.
5014 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5015 registers if feature is present in xcr0.
5016 (i386_gdbarch_init): Add code to initialize AVX512 feature
5017 variables in tdep structure, wire in pseudo registers and call
5018 initialize_tdesc_i386_avx512.
5019 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5020 variables.
5021 (i386_regnum): Add AVX512 registers.
5022 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5023 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5024 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5025 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5026 512 bits wide.
5027 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5028 (i386_ymm_avx512_regnum_p): Likewise.
5029 (i386_k_regnum_p): Likewise.
5030 (i386_zmm_regnum_p): Likewise.
5031 (i386_zmmh_regnum_p): Likewise.
5032 * i387-tdep.c : Update year in copyright notice.
5033 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5034 XSAVE buffer.
5035 (XSAVE_YMM_AVX512_ADDR): New macro.
5036 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5037 XSAVE buffer.
5038 (XSAVE_XMM_AVX512_ADDR): New macro.
5039 (xsave_avx512_k_offset): New table for K register offsets in
5040 XSAVE buffer.
5041 (XSAVE_AVX512_K_ADDR): New macro.
5042 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5043 in XSAVE buffer.
5044 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5045 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5046 buffer.
5047 (i387_collect_xsave): Add code to collect AVX512 registers from
5048 XSAVE buffer.
5049 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5050 of XMM16-31 registers.
5051 (I387_NUM_K_REGS): New define for number of K registers.
5052 (I387_K0_REGNUM): New define for K0 register number.
5053 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5054 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5055 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5056 registers.
5057 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5058 (I387_XMM16_REGNUM): New define for XMM16 register number.
5059 (I387_YMM0_REGNUM): New define for YMM0 register number.
5060 (I387_KEND_REGNUM): New define for last K register number.
5061 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5062 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5063 number.
5064 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5065 number.
5066 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5067 size.
5068 * features/Makefile: Add AVX512 related files.
5069 * features/i386/32bit-avx512.xml: New file.
5070 * features/i386/64bit-avx512.xml: Likewise.
5071 * features/i386/amd64-avx512-linux.c: Likewise.
5072 * features/i386/amd64-avx512-linux.xml: Likewise.
5073 * features/i386/amd64-avx512.c: Likewise.
5074 * features/i386/amd64-avx512.xml: Likewise.
5075 * features/i386/i386-avx512-linux.c: Likewise.
5076 * features/i386/i386-avx512-linux.xml: Likewise.
5077 * features/i386/i386-avx512.c: Likewise.
5078 * features/i386/i386-avx512.xml: Likewise.
5079 * features/i386/x32-avx512-linux.c: Likewise.
5080 * features/i386/x32-avx512-linux.xml: Likewise.
5081 * features/i386/x32-avx512.c: Likewise.
5082 * features/i386/x32-avx512.xml: Likewise.
5083 * regformats/i386/amd64-avx512-linux.dat: New file.
5084 * regformats/i386/amd64-avx512.dat: Likewise.
5085 * regformats/i386/i386-avx512-linux.dat: Likewise.
5086 * regformats/i386/i386-avx512.dat: Likewise.
5087 * regformats/i386/x32-avx512-linux.dat: Likewise.
5088 * regformats/i386/x32-avx512.dat: Likewise.
5089 * NEWS: Add note about new support for AVX512.
5090
5091
08351840
PA
50922014-04-23 Pedro Alves <palves@redhat.com>
5093
5094 * breakpoint.c (insert_bp_location): Tolerate errors if the
5095 breakpoint is set in a user-loaded objfile.
5096 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5097 location is marked shlib_disabled. If the breakpoint is set in a
5098 user-loaded objfile is a GDB-side memory breakpoint, validate it
5099 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5100 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5101 flag.
5102 * mem-break.c (memory_validate_breakpoint): New function.
5103 * objfiles.c (userloaded_objfile_contains_address_p): New
5104 function.
5105 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5106 * target.h (memory_validate_breakpoint): New declaration.
5107
076855f9
PA
51082014-04-23 Pedro Alves <palves@redhat.com>
5109
5110 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5111 the breakpoint is set in a shared library, only suppress
5112 errors for software breakpoints, not hardware breakpoints.
5113
483805cf
PA
51142014-04-22 Pedro Alves <palves@redhat.com>
5115
5116 * infrun.c (schedlock_applies): New function, factored out from
5117 find_thread_needs_step_over.
5118 (find_thread_needs_step_over): Use it.
5119 (switch_back_to_stepped_thread): Always clear trap_expected if the
5120 step over is finished. Return early if scheduler locking applies.
5121 Look for the stepping thread and a potential step-over thread with
5122 a single loop.
5123 (currently_stepping_or_nexting_callback): Delete.
5124
a75fef0e
NC
51252014-04-22 Nick Clifton <nickc@redhat.com>
5126
5127 * NEWS: Mention that ARM sim now supports tracing.
5128
48b6e87e
YQ
51292014-04-22 Yao Qi <yao@codesourcery.com>
5130
5131 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5132 to ...
5133 * tracefile.c (tracefile_fetch_registers): ... it. New
5134 function.
5135 * tracefile.h (tracefile_fetch_registers): Declare.
5136 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5137 tracefile_fetch_registers.
5138
17617f2d
EZ
51392014-04-19 Eli Zaretskii <eliz@gnu.org>
5140
5141 PR gdb/14018
5142 * windows-nat.c (thread_rec): Don't display a warning when
5143 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5144 fails for any reason, set th->suspended to -1, so that we don't
5145 try to resume such a thread. Also, don't return NULL in these
5146 cases, to avoid completely ruin the session due to "PC register is
5147 not available" error.
5148 (do_windows_fetch_inferior_registers): Check errors in
5149 GetThreadContext call.
5150 (windows_continue): Accept an additional argument KILLED; if not
5151 zero, ignore errors in the SetThreadContext call, since the
5152 inferior was killed and is shutting down.
5153 (windows_resume, get_windows_debug_event)
5154 (windows_create_inferior, windows_mourn_inferior)
5155 (windows_kill_inferior): All callers of windows_continue changed
5156 to adjust to its new calling sequence.
5157
5723a6fd
YQ
51582014-04-19 Yao Qi <yao@codesourcery.com>
5159
5160 * ctf.c (ctf_open): Call post_create_inferior.
5161
614d5099
YQ
51622014-04-19 Yao Qi <yao@codesourcery.com>
5163
5164 * ctf.c (handle_id): New static variable.
5165 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5166 value. Get the declaration of event "register" and get length
5167 of field "contents".
5168
dac3e710
YQ
51692014-04-19 Yao Qi <yao@codesourcery.com>
5170
5171 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5172
2bca57ba
SC
51732014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5174
5175 * valops.c (oload_method_static): Remove unnecessary argument
5176 METHOD. Update all callers.
5177
51d48146
PA
51782014-04-18 Pedro alves <palves@redhat.com>
5179 Tom Tromey <tromey@redhat.com>
5180
5181 PR backtrace/15558
5182 * frame.c (get_prev_frame_1): Rename to ...
5183 (get_prev_frame_always): ... this, and make extern. Adjust.
5184 (skip_artificial_frames): Use get_prev_frame_always.
5185 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5186 (get_frame_unwind_stop_reason): Adjust to rename.
5187 * frame.h (get_prev_frame_always): Declare.
5188 * inline-frame.c: Include frame.h.
5189 (inline_frame_this_id): Use get_prev_frame_always.
5190
1bdad2e0
TG
51912014-04-18 Tristan Gingold <gingold@adacore.com>
5192
5193 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5194 code by using bfd_mach_o_get_base_address.
5195
7ce16bd4
UW
51962014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5197
5198 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5199 (spu_ax_pseudo_register_collect): New function.
5200 (spu_ax_pseudo_register_push_stack): Likewise.
5201 (spu_dwarf_reg_to_regnum): Likewise.
5202 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5203
2ed3c037
UW
52042014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5205
5206 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5207 Replace FRAME argument with FRAME_ID.
5208 * gdbarch.c, gdbarch.h: Regenerate.
5209 * findvar.c (default_value_from_register): Add GDBARCH argument;
5210 replace FRAME by FRAME_ID. No longer call get_frame_id.
5211 (value_from_register): Update call to gdbarch_value_from_register.
5212 * value.h (default_value_from_register): Update prototype.
5213 * s390-linux-tdep.c (s390_value_from_register): Update interface
5214 and call to default_value_from_register.
5215 * spu-tdep.c (spu_value_from_register): Likewise.
5216
5217 * findvar.c (address_from_register): Remove TYPE argument.
5218 Do not call value_from_register; use gdbarch_value_from_register
5219 with null_frame_id instead.
5220 * value.h (address_from_register): Update prototype.
5221 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5222 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5223 address_from_register interface change.
5224
71e50e83
YQ
52252014-04-17 Yao Qi <yao@codesourcery.com>
5226
5227 * gdbtypes.h: Update comments to link to types and macros'
5228 definitions.
5229
7a23c549
SC
52302014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5231
5232 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5233
22869d73
KS
52342014-04-16 Keith Seitz <keiths@redhat.com>
5235
5236 PR gdb/15827
5237 * dwarf2read.c (skip_one_die): Check that all relative-offset
5238 sibling DIEs fall within range of the current reader's buffer.
5239 (read_partial_die): Likewise.
5240
c4f87ca6
KS
52412014-04-16 Keith Seitz <keiths@redhat.com>
5242
5243 PR c++/16597
5244 * cp-namespace.c (lookup_symbol_file): If the type name of
5245 `this' is NULL, return immediately.
5246
b50c8614
KS
52472014-04-14 Keith Seitz <keiths@redhat.com>
5248
5249 PR c++/16253
5250 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5251 from symbol_matches_domain in symtab.c. All local callers
5252 of symbol_matches_domain updated.
5253 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5254 search STRUCT_DOMAIN.
5255 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5256 independently. standard_lookup will do that automatically.
5257 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5258 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5259 (cp_lookup_symbol_in_namespace): Likewise.
5260 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5261 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5262 may return a STRUCT_DOMAIN match.
5263 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5264 * cp-support.c: Include language.h.
5265 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5266 VAR_DOMAIN.
5267 * psymtab.c (match_partial_symbol): Compare the requested
5268 domain with the symbol's domain directly.
5269 (lookup_partial_symbol): Likewise.
5270 * symtab.c (lookup_symbol_in_language): Explain when/why
5271 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5272 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5273 appropriate languages.
5274 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5275 and moved to ada-lang.c
5276 (lookup_block_symbol): Explain that this function only returns
5277 symbol matching the requested DOMAIN.
5278 Compare the requested domain with the symbol's domain directly.
5279 (iterate_over_symbols): Compare the requested domain with the
5280 symbol's domain directly.
5281 * symtab.h (symbol_matches_domain): Remove.
5282
3d567982
TT
52832014-04-14 Tom Tromey <tromey@redhat.com>
5284
5285 PR c++/15246:
5286 * c-exp.y (type_aggregate_p): New function.
5287 (qualified_name, classify_inner_name): Use it.
5288 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5289 and TYPE_TARGET_TYPE of an enum type.
5290 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5291 an enum type.
5292 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5293 handle TYPE_DECLARED_CLASS.
5294 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5295 types.
5296 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5297 * valops.c (enum_constant_from_type): New function.
5298 (value_aggregate_elt): Use it.
5299 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5300 TYPE_CODE_ENUM.
5301
c848d642
TT
53022014-04-14 Tom Tromey <tromey@redhat.com>
5303
5304 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5305 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5306 const.
5307 * value.h (value_aggregate_elt): Update.
5308
0626fc76
TT
53092014-04-14 Tom Tromey <tromey@redhat.com>
5310
5311 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5312
5ecaaa66
SA
53132014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5314
5315 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5316 (evaluate_subexp_standard): Pass noside argument.
5317 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5318 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5319 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5320 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5321 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5322
1612e0c0
SA
53232014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5324
5325 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5326 points to a constant blob.
5327
c451ebe5
SA
53282014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5329
5330 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5331 property and store it as the high bound and flag the range accordingly.
5332 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5333 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5334 * gdbtypes.h (enum range_flags): New enum.
5335 (struct range_bounds): Add flags member.
5336
1d42e4c4
SA
53372014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5338
5339 * c-typeprint.c (c_type_print_varspec_suffix): Added
5340 check for not yet resolved high bound. If unresolved, print
5341 "variable length" string to the console instead of random
5342 length.
5343
9f1f738a
SA
53442014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5345
5346 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5347 value.
5348 (ada_template_to_fixed_record_type_1): Likewise.
5349 (ada_to_fixed_type_1): Likewise.
5350 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5351 (cp_print_value): Likewise.
5352 * d-valprint.c (dynamic_array_type): Likewise.
5353 * findvar.c (address_of_variable): Likewise.
5354 * jv-valprint.c (java_value_print): Likewise.
5355 * valops.c (value_ind): Likewise.
5356 * value.c (coerce_ref): Likewise.
5357
3c8452d4
SA
53582014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5359
5360 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5361 value and retrieve the dynamic type size.
5362
4ad88275
SA
53632014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5364
5365 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5366 passed to sizeof is dynamic evaluate the argument to compute the length.
5367
80180f79
SA
53682014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5369 Joel Brobecker <brobecker@adacore.com>
5370
5371 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5372 (dwarf2_evaluate_property): New function.
5373 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5374 * dwarf2read.c (attr_to_dynamic_prop): New function.
5375 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5376 attribute.
5377 * gdbtypes.c: Include dwarf2loc.h.
5378 (is_dynamic_type): New function.
5379 (resolve_dynamic_type): New function.
5380 (resolve_dynamic_bounds): New function.
5381 (get_type_length): New function.
5382 (check_typedef): Use get_type_length to compute type length.
5383 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5384 (TYPE_LOW_BOUND_KIND): New macro.
5385 (is_dynamic_type): New function prototype.
5386 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5387 to resolve dynamic properties of the type. Update comment.
5388 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5389
a1556843
RH
53902014-04-14 Richard Henderson <rth@redhat.com>
5391
5392 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5393
0be03e84
DE
53942014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5395 Doug Evans <xdje42@gmail.com>
5396
5397 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5398 dereference TYPE_CODE_REF values.
5399
6b662e19
JB
54002014-04-11 Joel Brobecker <brobecker@adacore.com>
5401
5402 Revert the following changes due to regressions:
5403
5404 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5405 (dwarf2_evaluate_property): New function.
5406 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5407 * dwarf2read.c (attr_to_dynamic_prop): New function.
5408 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5409 attribute.
5410 * gdbtypes.c: Include dwarf2loc.h.
5411 (is_dynamic_type): New function.
5412 (resolve_dynamic_type): New function.
5413 (resolve_dynamic_bounds): New function.
5414 (get_type_length): New function.
5415 (check_typedef): Use get_type_length to compute type length.
5416 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5417 (TYPE_LOW_BOUND_KIND): New macro.
5418 (is_dynamic_type): New function prototype.
5419 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5420 to resolve dynamic properties of the type. Update comment.
5421 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5422
5423 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5424 passed to sizeof is dynamic evaluate the argument to compute the length.
5425
5426 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5427 value and retrieve the dynamic type size.
5428
5429 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5430 (ada_template_to_fixed_record_type_1): Likewise.
5431 (ada_to_fixed_type_1): Likewise.
5432 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5433 (cp_print_value): Likewise.
5434 * d-valprint.c (dynamic_array_type): Likewise.
5435 * eval.c (evaluate_subexp_with_coercion): Likewise.
5436 * findvar.c (address_of_variable): Likewise.
5437 * jv-valprint.c (java_value_print): Likewise.
5438 * valops.c (value_ind): Likewise.
5439 * value.c (coerce_ref): Likewise.
5440
5441 * c-typeprint.c (c_type_print_varspec_suffix): Added
5442 check for not yet resolved high bound. If unresolved, print
5443 "variable length" string to the console instead of random
5444 length.
5445
5446 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5447 property and store it as the high bound and flag the range accordingly.
5448 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5449 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5450 * gdbtypes.h (enum range_flags): New enum.
5451 (struct range_bounds): Add flags member.
5452
5453 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5454 points to a constant blob.
5455
5456 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5457 (evaluate_subexp_standard): Pass noside argument.
5458 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5459 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5460 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5461 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5462 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5463
245a5f0b
KS
54642014-04-11 Keith Seitz <keiths@redhat.com>
5465
5466 PR c++/16675
5467 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5468 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5469 reference types.
5470
3bce8237
SA
54712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5472
5473 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5474 (evaluate_subexp_standard): Pass noside argument.
5475 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5476 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5477 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5478 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5479 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5480
92b09522
SA
54812014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5482
5483 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5484 points to a constant blob.
5485
e1969afb
SA
54862014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5487
5488 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5489 property and store it as the high bound and flag the range accordingly.
5490 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5491 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5492 * gdbtypes.h (enum range_flags): New enum.
5493 (struct range_bounds): Add flags member.
5494
b86138fb
SA
54952014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5496
5497 * c-typeprint.c (c_type_print_varspec_suffix): Added
5498 check for not yet resolved high bound. If unresolved, print
5499 "variable length" string to the console instead of random
5500 length.
5501
bcd629a4
SA
55022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5503
5504 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5505 (ada_template_to_fixed_record_type_1): Likewise.
5506 (ada_to_fixed_type_1): Likewise.
5507 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5508 (cp_print_value): Likewise.
5509 * d-valprint.c (dynamic_array_type): Likewise.
5510 * eval.c (evaluate_subexp_with_coercion): Likewise.
5511 * findvar.c (address_of_variable): Likewise.
5512 * jv-valprint.c (java_value_print): Likewise.
5513 * valops.c (value_ind): Likewise.
5514 * value.c (coerce_ref): Likewise.
5515
04b19544
SA
55162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5517
5518 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5519 value and retrieve the dynamic type size.
5520
26cb189f
SA
55212014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5522
5523 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5524 passed to sizeof is dynamic evaluate the argument to compute the length.
5525
37c1ab67
SA
55262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5527
5528 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5529 (dwarf2_evaluate_property): New function.
5530 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5531 * dwarf2read.c (attr_to_dynamic_prop): New function.
5532 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5533 attribute.
5534 * gdbtypes.c: Include dwarf2loc.h.
5535 (is_dynamic_type): New function.
5536 (resolve_dynamic_type): New function.
5537 (resolve_dynamic_bounds): New function.
5538 (get_type_length): New function.
5539 (check_typedef): Use get_type_length to compute type length.
5540 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5541 (TYPE_LOW_BOUND_KIND): New macro.
5542 (is_dynamic_type): New function prototype.
5543 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5544 to resolve dynamic properties of the type. Update comment.
5545 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5546
729efb13
SA
55472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5548
5549 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5550 declaring high/low bounds and change uses accordingly. Call
5551 create_range_type instead of create_static_range_type.
5552 * gdbtypes.c (create_range_type): New function.
5553 (create_range_type): Convert bounds into struct bound_prop and pass
5554 them to create_range_type.
5555 * gdbtypes.h (struct bound_prop): New struct.
5556 (create_range_type): New function prototype.
5557 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5558 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5559 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5560 part of the bound.
5561 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5562
0c9c3474
SA
55632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5564
5565 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5566 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5567 * ada-lang.c: All uses of create_range_type updated.
5568 * coffread.c: All uses of create_range_type updated.
5569 * dwarf2read.c: All uses of create_range_type updated.
5570 * f-exp.y: All uses of create_range_type updated.
5571 * m2-valprint.c: All uses of create_range_type updated.
5572 * mdebugread.c: All uses of create_range_type updated.
5573 * stabsread.c: All uses of create_range_type updated.
5574 * valops.c: All uses of create_range_type updated.
5575 * valprint.c: All uses of create_range_type updated.
5576
9d497a19
PA
55772014-04-10 Pedro Alves <palves@redhat.com>
5578
5579 * breakpoint.c (single_step_breakpoints)
5580 (single_step_gdbarch): Move up in the file.
5581 (one_breakpoint_xfer_memory): New function, factored out from ...
5582 (breakpoint_xfer_memory): ... here. Also process single-step
5583 breakpoints.
5584
15a9128a
TG
55852014-04-09 Tristan Gingold <gingold@adacore.com>
5586
5587 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5588 comments.
5589 (darwin_decode_exception_message): Free port only after use.
5590
9c97a070
PL
55912014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5592
5593 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5594 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5595 when setting the size of call_length.
5596
7af389b8
SC
55972014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5598
5599 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5600 dereference TYPE_CODE_REF values.
5601
86ad98c3
JB
56022014-04-07 Joel Brobecker <brobecker@adacore.com>
5603
5604 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5605 end of warning message.
5606
b0aeadb3
DE
56072014-04-03 Doug Evans <dje@google.com>
5608
5609 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5610 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5611
5979d6b6
AM
56122014-04-02 Alan Modra <amodra@gmail.com>
5613
5614 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5615 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5616 (struct symbol_file_add_from_memory_args): Add size field.
5617 (find_vdso_size): New function.
5618 (add_vsyscall_page): Attempt to find vdso size.
5619
0d60c288
DE
56202014-04-01 Doug Evans <dje@google.com>
5621
5622 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5623
a41f2563
TG
56242014-04-01 Tristan Gingold <gingold@adacore.com>
5625
5626 * darwin-nat.c (darwin_encode_reply): Add prototype.
5627 (darwin_decode_exception_message): Reply to unknown inferiors.
5628 (darwin_decode_message): Handle message by id. Ignore message
5629 to unknown inferior.
5630 (darwin_wait): Discard unknown messages, add debug trace.
5631
11a865c8
DE
56322014-03-31 Doug Evans <dje@google.com>
5633
5634 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5635 comp_dir_string.
5636
770e7fc7
DE
56372014-03-31 Doug Evans <dje@google.com>
5638
5639 New option "set print symbol-loading".
5640 * NEWS: Mention it.
5641 * solib.c (solib_read_symbols): Only print symbol loading messages
5642 if requested.
5643 (solib_add): If symbol loading is in "brief" mode, notify user
5644 symbols are being loaded.
5645 (reload_shared_libraries_1): Ditto.
5646 * symfile.c (print_symbol_loading_off): New static global.
5647 (print_symbol_loading_brief): New static global.
5648 (print_symbol_loading_full): New static global.
5649 (print_symbol_loading_enums): New static global.
5650 (print_symbol_loading): New static global.
5651 (print_symbol_loading_p): New function.
5652 (symbol_file_add_with_addrs): Only print symbol loading messages
5653 if requested.
5654 (_initialize_symfile): Register "print symbol-loading" set/show
5655 command.
5656 * symfile.h (print_symbol_loading_p): Declare.
5657
c32c64b7
DE
56582014-03-30 Doug Evans <xdje42@gmail.com>
5659
5660 * infrun.c (set_last_target_status): New function.
5661 (handle_inferior_event): Call it.
5662
7c0bc051
DE
56632014-03-30 Doug Evans <xdje42@gmail.com>
5664
5665 * inferior.h (enum stop_kind): Improve comment.
5666
8776cfe9
JB
56672014-03-28 Joel Brobecker <brobecker@adacore.com>
5668
5669 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5670 a reference, strip the reference layer before calling
5671 the lang_ops value_has_mutated callback.
5672
410a0ff2
SDJ
56732014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5674
5675 Remove some globals from our parser.
5676 * language.c (unk_lang_parser): Add "struct parser_state"
5677 argument.
5678 * language.h (struct language_defn) <la_parser>: Likewise.
5679 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5680 (initialize_expout): Add "struct parser_state" argument.
5681 Rewrite function to use the parser state.
5682 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5683 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5684 write_exp_elt_longcst, write_exp_elt_dblcst,
5685 write_exp_elt_decfloatcst, write_exp_elt_type,
5686 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5687 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5688 write_dollar_variable): Likewise.
5689 (parse_exp_in_context_1): Use parser state.
5690 (insert_type_address_space): Add "struct parser_state" argument.
5691 Use parser state.
5692 (increase_expout_size): New function.
5693 * parser-defs.h: Forward declare "struct language_defn" and
5694 "struct parser_state".
5695 (expout, expout_size, expout_ptr): Remove extern declarations.
5696 (parse_gdbarch, parse_language): Rewrite macro declarations to
5697 accept the parser state.
5698 (struct parser_state): New struct.
5699 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5700 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5701 write_exp_elt_decfloatcst, write_exp_elt_type,
5702 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5703 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5704 write_exp_msymbol, write_dollar_variable,
5705 mark_struct_expression, insert_type_address_space): Add "struct
5706 parser_state" argument.
5707 (increase_expout_size): New function.
5708 * utils.c (do_clear_parser_state): New function.
5709 (make_cleanup_clear_parser_state): Likewise.
5710 * utils.h (make_cleanup_clear_parser_state): New function
5711 prototype.
5712 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5713 Update calls to write_exp* in order to pass the parser state.
5714 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5715 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5716 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5717 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5718 * stap-probe.c (stap_parse_register_operand): Likewise.
5719 (stap_parse_single_operand): Likewise.
5720 (stap_parse_argument_1): Likewise.
5721 (stap_parse_argument): Use parser state.
5722 * stap-probe.h: Include "parser-defs.h".
5723 (struct stap_parse_info) <pstate>: New field.
5724 * c-exp.y (parse_type): Rewrite to use parser state.
5725 (yyparse): Redefine to c_parse_internal.
5726 (pstate): New global variable.
5727 (parse_number): Add "struct parser_state" argument.
5728 (write_destructor_name): Likewise.
5729 (type_exp): Update calls to write_exp* and similars in order to
5730 use parser state.
5731 (exp1, exp, variable, qualified_name, space_identifier,
5732 typename, typebase): Likewise.
5733 (write_destructor_name, parse_number, lex_one_token,
5734 classify_name, classify_inner_name, c_parse): Add "struct
5735 parser_state" argument. Update function to use parser state.
5736 * c-lang.h: Forward declare "struct parser_state".
5737 (c_parse): Add "struct parser_state" argument.
5738 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5739 (yyparse): Redefine macro to ada_parse_internal.
5740 (pstate): New variable.
5741 (write_int, write_object_renaming, write_var_or_type,
5742 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5743 type_int, type_long, type_long_long, type_float, type_double,
5744 type_long_double, type_char, type_boolean, type_system_address):
5745 Add "struct parser_state" argument.
5746 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5747 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5748 var_or_type, aggregate, aggregate_component_list,
5749 positional_list, others, component_group,
5750 component_associations): Update calls to write_exp* and similar
5751 functions in order to use parser state.
5752 (ada_parse, write_var_from_sym, write_int,
5753 write_exp_op_with_string, write_object_renaming,
5754 find_primitive_type, write_selectors, write_ambiguous_var,
5755 write_var_or_type, write_name_assoc, type_int, type_long,
5756 type_long_long, type_float, type_double, type_long_double,
5757 type_char, type_boolean, type_system_address): Add "struct
5758 parser_state" argument. Adjust function to use parser state.
5759 * ada-lang.c (parse): Likewise.
5760 * ada-lang.h: Forward declare "struct parser_state".
5761 (ada_parse): Add "struct parser_state" argument.
5762 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5763 calls to both functions.
5764 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5765 parser state.
5766 (yyparse): Redefine macro to f_parse_internal.
5767 (pstate): New variable.
5768 (parse_number): Add "struct parser_state" argument.
5769 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5770 and similars in order to use parser state.
5771 (parse_number): Adjust code to use parser state.
5772 (yylex): Likewise.
5773 (f_parse): New function.
5774 * f-lang.h: Forward declare "struct parser_state".
5775 (f_parse): Add "struct parser_state" argument.
5776 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5777 parser state.
5778 (yyparse): Redefine macro for java_parse_internal.
5779 (pstate): New variable.
5780 (push_expression_name, push_expression_name, insert_exp): Add
5781 "struct parser_state" argument.
5782 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5783 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5784 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5785 PostIncrementExpression, PostDecrementExpression,
5786 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5787 UnaryExpressionNotPlusMinus, CastExpression,
5788 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5789 RelationalExpression, EqualityExpression, AndExpression,
5790 ExclusiveOrExpression, InclusiveOrExpression,
5791 ConditionalAndExpression, ConditionalOrExpression,
5792 ConditionalExpression, Assignment, LeftHandSide): Update
5793 calls to write_exp* and similars in order to use parser state.
5794 (parse_number): Ajust code to use parser state.
5795 (yylex): Likewise.
5796 (java_parse): New function.
5797 (push_variable): Add "struct parser_state" argument. Adjust
5798 code to user parser state.
5799 (push_fieldnames, push_qualified_expression_name,
5800 push_expression_name, insert_exp): Likewise.
5801 * jv-lang.h: Forward declare "struct parser_state".
5802 (java_parse): Add "struct parser_state" argument.
5803 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5804 parser state.
5805 (yyparse): Redefine macro to m2_parse_internal.
5806 (pstate): New variable.
5807 (type_exp, exp, fblock, variable, type): Update calls to
5808 write_exp* and similars to use parser state.
5809 (yylex): Likewise.
5810 (m2_parse): New function.
5811 * m2-lang.h: Forward declare "struct parser_state".
5812 (m2_parse): Add "struct parser_state" argument.
5813 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5814 * objc-lang.h: Forward declare "struct parser_state".
5815 (end_msglist): Add "struct parser_state" argument.
5816 * p-exp.y (parse_type): Rewrite macro to use parser state.
5817 (yyparse): Redefine macro to pascal_parse_internal.
5818 (pstate): New variable.
5819 (parse_number): Add "struct parser_state" argument.
5820 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5821 write_exp* and similars in order to use parser state.
5822 (parse_number, yylex): Adjust code to use parser state.
5823 (pascal_parse): New function.
5824 * p-lang.h: Forward declare "struct parser_state".
5825 (pascal_parse): Add "struct parser_state" argument.
5826 * go-exp.y (parse_type): Rewrite macro to use parser state.
5827 (yyparse): Redefine macro to go_parse_internal.
5828 (pstate): New variable.
5829 (parse_number): Add "struct parser_state" argument.
5830 (type_exp, exp1, exp, variable, type): Update calls to
5831 write_exp* and similars in order to use parser state.
5832 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5833 to use parser state.
5834 (go_parse): Likewise.
5835 * go-lang.h: Forward declare "struct parser_state".
5836 (go_parse): Add "struct parser_state" argument.
5837
342587c4
DE
58382014-03-27 Doug Evans <dje@google.com>
5839
5840 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5841
33e80786
DE
58422014-03-27 Doug Evans <dje@google.com>
5843
5844 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5845 Remove argument abbrev_section. All callers updated.
5846
1dbab08b
DE
58472014-03-27 Doug Evans <dje@google.com>
5848
5849 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5850 addr_base, ranges_base.
5851
318d3177
KS
58522014-03-26 Keith Seitz <keiths@redhat.com>
5853
5854 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5855 types, not VAR_DOMAIN.
5856
1e54db15
SL
58572014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5858
5859 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5860 "ra" registers.
5861 * features/nios2-linux.c: Regenerated.
5862 * features/nios2.c: Regenerated.
5863
d3839ede
PA
58642014-03-25 Pedro Alves <palves@redhat.com>
5865
5866 * cli/cli-script.c (script_from_file): Force the interpreter to
5867 sync mode.
5868
7588d2ec
PL
58692014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5870
5871 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5872 small stack allocation.
5873
a6290449
TG
58742014-03-24 Tristan Gingold <gingold@adacore.com>
5875
5876 * darwin-nat.c (exc_server): Remove unused prototype.
5877 (darwin_dump_message): Correctly display data on x86_64.
5878 (darwin_encode_reply): Fix style.
5879 Add comments and fix indentation.
5880
31ae9d24 58812014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5882
5883 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5884
6339bfc4
DE
58852014-03-22 Doug Evans <xdje42@gmail.com>
5886
5887 * infcmd.c: Whitespace fixes.
5888 (interrupt_command): Merge two function comments into one.
5889
0a07590b
DE
58902014-03-22 Doug Evans <xdje42@gmail.com>
5891
5892 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5893 All uses updated.
5894
b55fbac4
YQ
58952014-03-22 Yao Qi <yao@codesourcery.com>
5896
5897 * remote.c (target_read_live_memory): Remove.
5898 (memory_xfer_live_readonly_partial): Rename it to
5899 remote_xfer_live_readonly_partial. Remove argument 'object'.
5900 All callers updated. Call remote_read_bytes_1
5901 instead of target_read_live_memory.
5902 * tracepoint.c (set_traceframe_number): Remove.
5903 (make_cleanup_restore_traceframe_number): Likewise .
5904 * tracepoint.h (set_traceframe_number): Remove declaration.
5905 (make_cleanup_restore_traceframe_number): Likewise.
5906
9217e74e
YQ
59072014-03-22 Yao Qi <yao@codesourcery.com>
5908
5909 * remote.c (remote_read_bytes): Move code on reading from the
5910 remote stub to ...
5911 (remote_read_bytes_1): ... here. New function.
5912
8acf9577
YQ
59132014-03-22 Yao Qi <yao@codesourcery.com>
5914
5915 * ctf.c (ctf_xfer_partial): Check the return value of
5916 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5917 return TARGET_XFER_UNAVAILABLE.
5918 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5919 * target.c (target_read_live_memory): Move it to remote.c.
5920 (memory_xfer_live_readonly_partial): Likewise.
5921 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5922 * remote.c (target_read_live_memory): Moved from target.c.
5923 (memory_xfer_live_readonly_partial): Likewise.
5924 (remote_read_bytes): Factored out from
5925 memory_xfer_partial_1.
5926
feef67ab
DE
59272014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5928
5929 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5930 NULL pointer.
5931
b65dc60b
PA
59322014-03-21 Pedro Alves <palves@redhat.com>
5933
5934 * infrun.c (normal_stop): Extend comment.
5935
b4ab256d
HZ
59362014-03-21 Hui Zhu <hui@codesourcery.com>
5937 Pedro Alves <palves@redhat.com>
5938
5939 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5940 static buffer.
5941 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5942 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5943 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5944
deba7593
MR
59452014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5946
5947 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5948 `z' formatted output modifier.
5949
1bff71c3
SDJ
59502014-03-20 Tom Tromey <tromey@redhat.com>
5951 Sergio Durigan Junior <sergiodj@redhat.com>
5952
5953 * probe.c (parse_probes): Turn assert into an ordinary error.
5954 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5955 exceptions when parsing probes. Rearrange the code for clarity.
5956
90e28950
TT
59572014-03-20 Tom Tromey <tromey@redhat.com>
5958
5959 PR gdb/14135
5960 * top.c (execute_command): Only dispatch events if the command
5961 started the target.
5962
beb460e8
PA
59632014-03-20 Tom Tromey <tromey@redhat.com>
5964
5965 PR cli/15718
5966 * infcall.c: Include event-top.h.
5967 (run_inferior_call): Call async_disable_stdin if needed.
5968
99619bea
PA
59692014-03-20 Pedro Alves <palves@redhat.com>
5970
5971 * infrun.c (prepare_to_proceed): Delete.
5972 (thread_still_needs_step_over): New function.
5973 (find_thread_needs_step_over): New function.
5974 (proceed): If the current thread needs a step-over, set its
5975 steping_over_breakpoint flag. Adjust to use
5976 find_thread_needs_step_over instead of prepare_to_proceed.
5977 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5978 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5979 breakpoint.
5980 (switch_back_to_stepped_thread): Step over breakpoints of all
5981 threads not the stepping thread, before switching back to the
5982 stepping thread.
5983
2adfaa28
PA
59842014-03-20 Pedro Alves <palves@redhat.com>
5985
5986 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5987 extern.
5988 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5989 * infrun.c (saved_singlestep_ptid)
5990 (stepping_past_singlestep_breakpoint): Delete.
5991 (resume): Remove stepping_past_singlestep_breakpoint handling.
5992 (proceed): Store the prev_pc of the stepping thread too.
5993 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5994 singlestep_pc.
5995 (enum infwait_states): Delete infwait_thread_hop_state.
5996 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5997 field.
5998 (handle_inferior_event): Adjust.
5999 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6000 handling and the thread-hop code. Before removing single-step
6001 breakpoints, check whether the thread hit a single-step breakpoint
6002 of another thread. If it did, the trap is not a random signal.
6003 (switch_back_to_stepped_thread): If the event thread hit a
6004 single-step breakpoint, unblock it before switching to the
6005 stepping thread. Handle the case of the stepped thread having
6006 advanced already.
6007 (keep_going): Handle the case of the current thread moving past a
6008 single-step breakpoint.
6009
31e77af2
PA
60102014-03-20 Pedro Alves <palves@redhat.com>
6011
6012 PR breakpoints/7143
6013 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6014 are being stepped over.
6015 (breakpoint_address_match): Make extern.
6016 * breakpoint.h (breakpoint_address_match): New declaration.
6017 * inferior.h (stepping_past_instruction_at): New declaration.
6018 * infrun.c (struct step_over_info): New type.
6019 (step_over_info): New global.
6020 (set_step_over_info, clear_step_over_info)
6021 (stepping_past_instruction_at): New functions.
6022 (handle_inferior_event): Clear the step-over info when
6023 trap_expected is cleared.
6024 (resume): Remove now stale comment.
6025 (clear_proceed_status): Clear step-over info.
6026 (proceed): Adjust step-over handling to set or clear the step-over
6027 info instead of removing all breakpoints.
6028 (handle_signal_stop): When setting up a thread-hop, don't remove
6029 breakpoints here.
6030 (stop_stepping): Clear step-over info.
6031 (keep_going): Adjust step-over handling to set or clear step-over
6032 info and then always inserting breakpoints, instead of removing
6033 all breakpoints when stepping over one.
6034
b9f437de
PA
60352014-03-20 Pedro Alves <palves@redhat.com>
6036
6037 * infrun.c (previous_inferior_ptid): Adjust comment.
6038 (deferred_step_ptid): Delete.
6039 (infrun_thread_ptid_changed, prepare_to_proceed)
6040 (init_wait_for_inferior): Adjust.
6041 (handle_signal_stop): Delete deferred_step_ptid handling.
6042
06c868a8
JK
60432014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6044
6045 PR gdb/15358
6046 * defs.h (sync_quit_force_run): New declaration.
6047 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6048 * event-top.c (async_sigterm_handler): New declaration.
6049 (async_sigterm_token): New variable.
6050 (async_init_signals): Create also async_sigterm_token.
6051 (async_sigterm_handler): New function.
6052 (sync_quit_force_run): New variable.
6053 (handle_sigterm): Replace quit_force call by other calls.
6054 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6055
dea80df0
MR
60562014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6057
6058 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6059 offset into SPE pseudo registers.
6060
0c7e1a46
PA
60612014-03-18 Pedro Alves <palves@redhat.com>
6062
6063 PR gdb/13860
6064 * inferior.h (print_stop_event): Declare.
6065 * infrun.c (print_stop_event): New, factored out from ...
6066 (normal_stop): ... this.
6067 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6068 of bpstat_print/print_stack_frame.
6069
9c1fcd01
TT
60702014-03-17 Tom Tromey <tromey@redhat.com>
6071
6072 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6073
11aa919a
PMR
60742014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6075
6076 * ada-lang.c (decode_constrained_packed_array): Perform a
6077 minimal coercion for reference with coerce_ref instead of
6078 ada_coerce_ref.
6079
d4ccb5e0
TG
60802014-03-17 Tristan Gingold <gingold@adacore.com>
6081
6082 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6083 (darwin_solib_create_inferior_hook): Emit a warning if version
6084 is unhandled.
6085
49840f2a
UW
60862014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6087
6088 * python/py-value.c (get_field_flag): Cast flag_name argument to
6089 PyObject_GetAttrString to support Python 2.4.
6090
ed4123e5
JK
60912014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6092
6093 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6094 (Global Maintainers): Remove Jan Kratochvil.
6095
d6b64346
PA
60962014-03-14 Pedro Alves <palves@redhat.com>
6097
6098 * inferior.h (terminal_ours_for_output): Rename to ...
6099 (child_terminal_ours_for_output): ... this.
6100 (terminal_save_ours): Rename to ...
6101 (child_terminal_save_ours): ... this.
6102 (terminal_ours): Rename to ...
6103 (child_terminal_ours): ... this.
6104 (terminal_inferior): Rename to ...
6105 (child_terminal_inferior): ... this.
6106 (terminal_init_inferior): Rename to ...
6107 (child_terminal_init_inferior): ... this.
6108 (terminal_init_inferior_with_pgrp): Rename to ...
6109 (child_terminal_init_inferior_with_pgrp): ... this.
6110 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6111 (child_terminal_init_with_pgrp): ... this.
6112 (terminal_save_ours): Rename to ...
6113 (child_terminal_save_ours): ... this.
6114 (terminal_init_inferior): Rename to ...
6115 (child_terminal_init): ... this. Adjust.
6116 (terminal_inferior): Rename to ...
6117 (child_terminal_inferior): ... this.
6118 (terminal_ours_for_output): Rename to ...
6119 (child_terminal_ours_for_output): ... this. Adjust.
6120 (terminal_ours): Rename to ...
6121 (child_terminal_ours): ... this.
6122 (terminal_ours_1): Rename to ...
6123 (child_terminal_ours_1): ... this. Adjust.
6124 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6125 * windows-nat.c (do_initial_windows_stuff): Adjust.
6126 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6127 (gnu_terminal_init): ... this. Adjust.
6128 (gnu_target): Adjust.
6129 * inf-child.c (inf_child_target): Adjust.
6130
5a1e8c7a
DE
61312014-03-13 Doug Evans <xdje42@gmail.com>
6132
6133 PR guile/16612
6134 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6135 new eq?-hashtab.
6136
350e1a76
DE
61372014-03-13 Doug Evans <xdje42@gmail.com>
6138
6139 * value.c (record_latest_value): Call release_value_or_incref
6140 instead of release_value.
6141
a69900ae
PA
61422014-03-13 Pedro Alves <palves@redhat.com>
6143
6144 * procfs.c (procfs_target): Don't override to_shortname,
6145 to_longname or to_doc.
6146
5db9f0bd
PA
61472014-03-13 Pedro Alves <palves@redhat.com>
6148
6149 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6150 Unix in user visible strings.
6151
5e3a2c38
SS
61522014-03-12 Stan Shebs <stan@codesourcery.com>
6153
6154 * gdbtypes.h: Annotate comments for Doxygen, add a page
6155 block comment with some general info.
6156
8bc2fe48
PA
61572014-03-12 Pedro Alves <palves@redhat.com>
6158
6159 * infcmd.c (prepare_execution_command): New function, factored out
6160 from several execution commands.
6161 (run_command_1, continue_command, step_1, jump_command)
6162 (signal_command, until_command, advance_command, finish_command)
6163 (attach_command): Use prepare_execution_command.
6164
638c5f49
OJ
61652014-03-12 Omair Javaid <omair.javaid@linaro.org>
6166
6167 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6168 (MAX_BPTS): Define.
6169 (MAX_WPTS): Define.
6170 (struct arm_linux_thread_points): Removed.
6171 (struct arm_linux_process_info): New.
6172 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6173 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6174 (arm_linux_find_breakpoints_by_tid): Removed.
6175 (struct arch_lwp_info): New.
6176 (arm_linux_find_process_pid): New functions.
6177 (arm_linux_add_process): New functions.
6178 (arm_linux_process_info_get): New functions.
6179 (arm_linux_forget_process): New function.
6180 (arm_linux_get_debug_reg_state): New function.
6181 (struct update_registers_data): New.
6182 (update_registers_callback): New function.
6183 (arm_linux_insert_hw_breakpoint1): Updated.
6184 (arm_linux_remove_hw_breakpoint1): Updated.
6185 (arm_linux_insert_hw_breakpoint): Updated.
6186 (arm_linux_remove_hw_breakpoint): Updated.
6187 (arm_linux_insert_watchpoint): Updated.
6188 (arm_linux_remove_watchpoint): Updated.
6189 (arm_linux_new_thread): Updated.
6190 (arm_linux_prepare_to_resume): New function.
6191 (arm_linux_new_fork): New function.
6192 (_initialize_arm_linux_nat): Updated.
6193
6d03af93
PA
61942014-03-12 Pedro Alves <palves@redhat.com>
6195
6196 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6197
b3ccfe11
TT
61982014-03-12 Tom Tromey <tromey@redhat.com>
6199
6200 * inf-child.c (return_zero): New function.
6201 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6202 * aix-thread.c (aix_thread_inferior_created): New function.
6203 (aix_thread_attach): Remove.
6204 (init_aix_thread_ops): Don't set to_attach.
6205 (_initialize_aix_thread): Register inferior_created observer.
6206 * corelow.c (init_core_ops): Don't set to_attach or
6207 to_create_inferior.
6208 * exec.c (init_exec_ops): Don't set to_attach or
6209 to_create_inferior.
6210 * infcmd.c (run_command_1): Use find_run_target. Make direct
6211 target calls.
6212 (attach_command): Use find_attach_target. Make direct target
6213 calls.
6214 * record-btrace.c (init_record_btrace_ops): Don't set
6215 to_create_inferior.
6216 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6217 Remove.
6218 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6219 set to_create_inferior.
6220 * target.c (complete_target_initialization): Add assertion.
6221 (target_create_inferior): Remove.
6222 (find_default_attach, find_default_create_inferior): Remove.
6223 (find_attach_target, find_run_target): New functions.
6224 (find_default_is_async_p, find_default_can_async_p)
6225 (target_supports_non_stop, target_attach): Remove.
6226 (init_dummy_target): Don't set to_create_inferior or
6227 to_supports_non_stop.
6228 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6229 TARGET_DEFAULT_FUNC.
6230 <to_create_inferior>: Add comment.
6231 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6232 TARGET_DEFAULT_RETURN.
6233 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6234 (find_attach_target, find_run_target): Declare.
6235 (target_create_inferior): Remove.
6236 (target_has_execution_1): Update comment.
6237 (target_supports_non_stop): Remove.
6238 * target-delegates.c: Rebuild.
6239
91f83b02
PA
62402014-03-12 Pedro Alves <palves@redhat.com>
6241
6242 * inf-child.h: Update comment to not mention Unix.
6243
f1aea813
PA
62442014-03-12 Pedro Alves <palves@redhat.com>
6245
6246 * inf-child.c: Update top comment to not mention Unix. Add
6247 generic comment describing how this target is meant to be used.
6248 (inf_child_post_attach, inf_child_post_startup_inferior)
6249 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6250 Unix in comment.
6251
ee8e9165
PA
62522014-03-12 Pedro Alves <palves@redhat.com>
6253
6254 * nto-procfs.c: Include inf-child.h.
6255 (procfs_ops): Delete global.
6256 (procfs_can_run): Delete method.
6257 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6258 target pointer instead of referencing procfs_ops.
6259 (procfs_prepare_to_store): Delete.
6260 (init_procfs_ops): Delete function.
6261 (procfs_target): New function, based on init_procfs_ops, but
6262 inherit inf_child_target.
6263 (_initialize_procfs): Use procfs_target.
6264
51a9c8c5
PA
62652014-03-12 Pedro Alves <palves@redhat.com>
6266
6267 * windows-nat.c: Include inf-child.h.
6268 (windows_ops): Delete global.
6269 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6270 methods.
6271 (init_windows_ops): Delete function.
6272 (windows_target): New function, based on init_windows_ops, but
6273 inherit inf_child_target.
6274 (_initialize_windows_nat): Use windows_target. Install x86
6275 specific target methods here.
6276
c1966e26
DE
62772014-03-10 Doug Evans <xdje42@gmail.com>
6278
6279 * guile/guile.c (call_initialize_gdb_module): New function.
6280 (initialize_guile): Replace call to scm_init_guile with call to
6281 scm_with_guile.
6282
023db19c
JB
62832014-03-10 Joel Brobecker <brobecker@adacore.com>
6284
6285 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6286 in call to TYPE_CODE macro.
6287
5ec18f2b
JG
62882014-03-10 Jerome Guitton <guitton@adacore.com>
6289
8668be63
JB
6290 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6291 Resolve tagged types to full view.
5ec18f2b 6292
7d03f2eb
HZ
62932014-03-10 Hui Zhu <hui@codesourcery.com>
6294
6295 * target.h (target_insert_breakpoint): Remove "hardware" from its
6296 comments.
6297
c5164cbc
DE
62982014-03-07 Doug Evans <dje@google.com>
6299
6300 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6301
c4a3fee2
DE
63022014-03-07 Doug Evans <dje@google.com>
6303
6304 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6305 Remove unused local comp_dir_attr. Assert exactly one of
6306 stub_comp_unit_die, stub_comp_dir is non-NULL.
6307
3156469c
JB
63082014-03-07 Joel Brobecker <brobecker@adacore.com>
6309
6310 * target.h (complete_target_initialization, add_target):
6311 Add comment.
6312
c1a7b7c6
PA
63132014-03-07 Pedro Alves <palves@redhat.com>
6314
6315 * go32-nat.c: Include inf-child.h.
6316 (go32_ops): Delete global.
6317 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6318 Delete methods.
6319 (go32_create_inferior): Push the passed in target pointer instead
6320 of referencing go32_ops.
6321 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6322 (go32_target): New function, based on init_go32_ops, but inherit
6323 inf_child_target.
6324 (_initialize_go32_nat): Use go32_target. Move parts of
6325 init_go32_ops here.
6326
d3c1a85f
JB
63272014-03-06 Joel Brobecker <brobecker@adacore.com>
6328
6329 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6330 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6331 SYMBOL_VALUE_ADDRESS.
6332 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6333
5fa1d40e
YQ
63342014-03-06 Yao Qi <yao@codesourcery.com>
6335
6336 * breakpoint.c (get_tracepoint_by_number): Remove argument
6337 optional_p. All callers updated. Adjust comments. Update
6338 output message.
6339 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6340
0c13193f
YQ
63412014-03-06 Yao Qi <yao@codesourcery.com>
6342
6343 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6344 early if get_number returns zero. Use 'p' instead of 'args'.
6345
2217da06
YQ
63462014-03-06 Yao Qi <yao@codesourcery.com>
6347
6348 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6349 message.
6350
cc3da688
YQ
63512014-03-06 Yao Qi <yao@codesourcery.com>
6352
6353 PR breakpoints/16508
6354 * tracepoint.c (check_trace_running): New function.
6355 (trace_find_command): Move code to check_trace_running and
6356 call check_trace_running.
6357 (trace_find_pc_command): Likewise.
6358 (trace_find_tracepoint_command): Likewise.
6359 (trace_find_line_command): Likewise.
6360 (trace_find_range_command): Likewise.
6361 * tracepoint.h (check_trace_running): Likewise.
6362 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6363
6a5f844b
YQ
63642014-03-06 Yao Qi <yao@codesourcery.com>
6365
6366 * target.h (struct target_ops) <to_traceframe_info>: Use
6367 TARGET_DEFAULT_NORETURN (tcomplain ()).
6368 * target-delegates.c: Regenerated.
6369
0f26cec1
PA
63702014-03-05 Pedro Alves <palves@redhat.com>
6371
6372 PR gdb/16575
6373 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6374 void. Update comment.
6375 (dcache_xfer_memory): Delete.
6376 (dcache_read_memory_partial): New, based on the read bits of
6377 dcache_xfer_memory.
6378 (dcache_update): Add status parameter. Use ULONGEST for len, and
6379 adjust. Discard cache lines if the reason for the update was
6380 error.
6381 * dcache.h (dcache_xfer_memory): Delete declaration.
6382 (dcache_read_memory_partial): New declaration.
6383 (dcache_update): Update prototype.
6384 * target.c (raw_memory_xfer_partial): Update the dcache here.
6385 (memory_xfer_partial_1): Don't handle dcache writes here.
6386
b2b255bd
MF
63872014-03-05 Mike Frysinger <vapier@gentoo.org>
6388
6389 * remote-sim.c (gdbsim_load): Add const to prog.
6390
5d9cf8a4
TT
63912014-03-03 Tom Tromey <tromey@redhat.com>
6392
6393 * elfread.c (probe_key): Change to bfd_data.
6394 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6395 now per-BFD, not per-objfile.
6396 * stap-probe.c (stap_probe_destroy): Update comment.
6397 (handle_stap_probe): Allocate on the per-BFD obstack.
6398
729662a5
TT
63992014-03-03 Tom Tromey <tromey@redhat.com>
6400
6401 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6402 * breakpoint.c (create_longjmp_master_breakpoint): Use
6403 get_probe_address.
6404 (add_location_to_breakpoint, bkpt_probe_insert_location)
6405 (bkpt_probe_remove_location): Update.
6406 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6407 * elfread.c (elf_symfile_relocate_probe): Remove.
6408 (elf_probe_fns): Update.
6409 (insert_exception_resume_breakpoint): Change type of "probe"
6410 parameter to bound_probe.
6411 (check_exception_resume): Update.
6412 * objfiles.c (objfile_relocate1): Don't relocate probes.
6413 * probe.c (bound_probe_s): New typedef.
6414 (parse_probes): Use get_probe_address. Set sal's objfile.
6415 (find_probe_by_pc): Return a bound_probe.
6416 (collect_probes): Return a VEC(bound_probe_s).
6417 (compare_probes): Update.
6418 (gen_ui_out_table_header_info): Change type of "probes"
6419 parameter. Update.
6420 (info_probes_for_ops): Update.
6421 (get_probe_address): New function.
6422 (probe_safe_evaluate_at_pc): Update.
6423 * probe.h (struct probe_ops) <get_probe_address>: New field.
6424 <set_semaphore, clear_semaphore>: Add objfile parameter.
6425 (struct probe) <objfile>: Remove field.
6426 <arch>: New field.
6427 <address>: Update comment.
6428 (struct bound_probe): New.
6429 (find_probe_by_pc): Return a bound_probe.
6430 (get_probe_address): Declare.
6431 * solib-svr4.c (struct probe_and_action) <address>: New field.
6432 (hash_probe_and_action, equal_probe_and_action): Update.
6433 (register_solib_event_probe): Add address parameter.
6434 (solib_event_probe_at): Update.
6435 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6436 get_probe_address.
6437 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6438 (stap_get_probe_address): New function.
6439 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6440 (compile_probe_arg): Update.
6441 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6442 address.
6443 (handle_stap_probe): Don't relocate the probe.
6444 (stap_relocate): Remove.
6445 (stap_gen_info_probes_table_values): Update.
6446 (stap_probe_ops): Remove stap_relocate.
6447 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6448 (debug_sym_probe_fns): Update.
6449 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6450 * symtab.c (init_sal): Use memset.
6451 * symtab.h (struct symtab_and_line) <objfile>: New field.
6452 * tracepoint.c (start_tracing, stop_tracing): Update.
6453
ff887920
TT
64542014-03-03 Tom Tromey <tromey@redhat.com>
6455
6456 * probe.h (parse_probes, find_probe_by_pc)
6457 (find_probes_in_objfile): Fix comments.
6458
f0407826
DE
64592014-03-02 Doug Evans <xdje42@gmail.com>
6460
6461 * infrun.c (handle_signal_stop): Replace test for
6462 TARGET_WAITKIND_STOPPED with an assert.
6463
35e6a711
DE
64642014-03-02 Doug Evans <xdje42@gmail.com>
6465
6466 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6467
667f9d0b
DE
64682014-03-02 Doug Evans <xdje42@gmail.com>
6469
6470 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6471
dc92ace0
MK
64722014-03-01 Mark Kettenis <kettenis@gnu.org>
6473
6474 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6475
a900370f
MK
64762014-03-01 Mark Kettenis <kettenis@gnu.org>
6477
6478 * i386obsd-nat.c: Include "obsd-nat.h".
6479 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6480 add_target.
6481 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6482
b72a7981
MK
64832014-03-01 Mark Kettenis <kettenis@gnu.org>
6484
6485 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6486
96c70aba
MK
64872014-03-01 Mark Kettenis <kettenis@gnu.org>
6488
6489 * mips64obsd-nat.c: Include "obsd-nath".
6490 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6491 add_target
6492 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6493
874a80af
MK
64942014-03-01 Mark Kettenis <kettenis@gnu.org>
6495
8fd408f1
MK
6496 * amd64obsd-nat.c: Include "obsd-nat,h.
6497 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6498 add_target.
874a80af
MK
6499 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6500
9cf95373
SC
65012014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6502
6503 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6504 (find_overload_match): Update call to find_oload_champ.
6505 (find_oload_champ_namespace_loop): Likewise
6506
863e4da4
MK
65072014-02-28 Mark Kettenis <kettenis@gnu.org>
6508
025cac40
MK
6509 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6510
1ed586ce
MK
6511 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6512 * config/sparc/obsd64.mh: New file.
6513 * sparc64obsd-nat.c: New file.
6514
863e4da4
MK
6515 * obsd-nat.h: New file.
6516 * obsd-nat.c: New file.
6517 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6518 (ALLDEPFILES): Add obsd-nat.c.
6519
89de4da4
TT
65202014-02-28 Tom Tromey <tromey@redhat.com>
6521
6522 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6523 * cli-out.h (cli_ui_out_impl): Now const.
6524 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6525 * ui-out.c (struct ui_out) <impl>: Now const.
6526 (default_ui_out_impl): Now const.
6527 (ui_out_new): Make 'impl' parameter const.
6528 * ui-out.h (ui_out_new): Update.
6529
c725e7b6
MK
65302014-02-27 Mark Kettenis <kettenis@gnu.org>
6531
6532 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6533
670b46b3
MK
65342014-02-27 Mark Kettenis <kettenis@gnu.org>
6535
6536 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6537
c91550fc
JK
65382014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6539
6540 Additional PR 8882 fix.
6541 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6542
2fa0369e
PA
65432014-02-27 Pedro Alves <palves@redhat.com>
6544
6545 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6546 isn't set.
6547
d632a097
PA
65482014-02-27 Pedro Alves <palves@redhat.com>
6549
6550 PR 12702
6551 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6552 * nat/linux-waitpid.c: Include string.h.
6553 (status_to_str): Moved here and made extern.
6554 * nat/linux-waitpid.h (status_to_str): New declaration.
6555
2ebd5a35
HZ
65562014-02-27 Hui Zhu <hui@codesourcery.com>
6557
6558 PR 12702
6559 * infrun.c (ptid_match): Move ...
6560 * common/ptid.c (ptid_match): ... here.
6561 * inferior.h (ptid_match): Move ...
6562 * common/ptid.h (ptid_match): ... here.
6563
3cdd631f
MK
65642014-02-27 Mark Kettenis <kettenis@gnu.org>
6565
6566 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6567 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6568 gdb_target_obs.
6569
bee30a64
MK
65702014-02-27 Mark Kettenis <kettenis@gnu.org>
6571
6572 * obsd-tdep.c (obsd_auxv_parse): New function.
6573 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6574
6575 * gdbarch.sh (auxv_parse): New.
6576 * gdbarch.h: Regenerated.
6577 * gdbarch.c: Regenerated.
6578 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6579
7a5a839f
LC
65802014-02-26 Ludovic Courtès <ludo@gnu.org>
6581
6582 * guile/scm-value.c (gdbscm_history_append_x): New function.
6583 (value_functions): Add it.
6584
31aa7e4e
JB
65852014-02-27 Joel Brobecker <brobecker@adacore.com>
6586
6587 * dwarf2read.c (attr_value_as_address): New function.
6588 (dwarf2_find_base_address, read_call_site_scope): Use
6589 attr_value_as_address in place of DW_ADDR.
6590 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6591 the low and high addresses. Slight rework of the handling
6592 of the high pc being a constant form, and limit it to
6593 DWARF verson 4 or higher.
6594 (dwarf2_record_block_ranges): Likewise.
6595 (read_partial_die): Likewise.
6596 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6597
9b333ba3
TT
65982014-02-26 Tom Tromey <tromey@redhat.com>
6599
6600 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6601
5f6cac40
TT
66022014-02-26 Tom Tromey <tromey@redhat.com>
6603
6604 * elfread.c (elf_read_minimal_symbols): Return early if
6605 minimal symbols have already been read. Add "ei" parameter.
6606 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6607 * minsyms.c (prim_record_minimal_symbol_full): Update.
6608 * objfiles.h (struct objstats) <n_minsyms>: Move...
6609 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6610 * symmisc.c (print_objfile_statistics): Update.
6611
2750ef27
TT
66122014-02-26 Tom Tromey <tromey@redhat.com>
6613
6614 * elfread.c (elf_read_minimal_symbols): New function, from
6615 elf_symfile_read.
6616 (elf_symfile_read): Call it.
6617
34643a32
TT
66182014-02-26 Tom Tromey <tromey@redhat.com>
6619
6620 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6621 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6622 (lookup_minimal_symbol_solib_trampoline)
6623 (lookup_minimal_symbol_by_pc_section_1)
6624 (lookup_minimal_symbol_and_objfile): Update.
6625 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6626 Don't allocate a minimal symbol if minsyms have already been read.
6627 (build_minimal_symbol_hash_tables): Update.
6628 (install_minimal_symbols): Do nothing if minsyms already read.
6629 Use the per-BFD obstack.
6630 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6631 * objfiles.c (allocate_objfile): Call
6632 terminate_minimal_symbol_table later.
6633 (have_minimal_symbols): Update.
6634 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6635 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6636 Move from struct objfile.
6637 <minsyms_read>: New field.
6638 (struct objfile) <msymbols, minimal_symbol_count,
6639 msymbol_hash, msymbol_demangled_hash>: Move.
6640 (ALL_OBJFILE_MSYMBOLS): Update.
6641 * symfile.c (read_symbols): Set minsyms_read.
6642 (reread_symbols): Update.
6643 * symmisc.c (dump_objfile, dump_msymbols): Update.
6644
2273f0ac
TT
66452014-02-26 Tom Tromey <tromey@redhat.com>
6646
6647 * minsyms.c (msymbols_sort): Remove.
6648 * minsyms.h (msymbols_sort): Remove.
6649 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6650 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6651 * elfread.c (elf_symtab_read): Don't add section offsets.
6652 * xcoffread.c (record_minimal_symbol): Don't add section offset
6653 to minimal symbol address.
6654 * somread.c (text_offset, data_offset): Remove.
6655 (som_symtab_read): Don't add section offsets to minimal symbol
6656 addresses.
6657 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6658 Don't add section offsets to minimal symbols.
6659 * coffread.c (coff_symtab_read): Don't add section offsets
6660 to minimal symbol addresses.
6661 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6662 to minimal symbol addresses.
6663 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6664 section offset to minimal symbol addresses.
6665 * mdebugread.c (parse_partial_symbols): Don't add section
6666 offset to minimal symbol addresses.
6667 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6668 offset to minimal symbol addresses.
6669
77e371c0
TT
66702014-02-26 Tom Tromey <tromey@redhat.com>
6671
6672 * ada-lang.c (ada_main_name): Update.
6673 (ada_add_standard_exceptions): Update.
6674 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6675 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6676 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6677 * auxv.c (ld_so_xfer_auxv): Update.
6678 * avr-tdep.c (avr_scan_prologue): Update.
6679 * ax-gdb.c (gen_var_ref): Update.
6680 * blockframe.c (get_pc_function_start)
6681 (find_pc_partial_function_gnu_ifunc): Update.
6682 * breakpoint.c (create_overlay_event_breakpoint)
6683 (create_longjmp_master_breakpoint)
6684 (create_std_terminate_master_breakpoint)
6685 (create_exception_master_breakpoint): Update.
6686 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6687 * c-valprint.c (c_val_print): Update.
6688 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6689 * common/agent.c (agent_look_up_symbols): Update.
6690 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6691 * dwarf2loc.c (call_site_to_target_addr): Update.
6692 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6693 * elfread.c (elf_gnu_ifunc_record_cache)
6694 (elf_gnu_ifunc_resolve_by_got): Update.
6695 * findvar.c (default_read_var_value): Update.
6696 * frame.c (inside_main_func): Update.
6697 * frv-tdep.c (frv_frame_this_id): Update.
6698 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6699 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6700 Update.
6701 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6702 (hppa_hpux_find_dummy_bpaddr): Update.
6703 * hppa-tdep.c (hppa_symbol_address): Update.
6704 * infcmd.c (until_next_command): Update.
6705 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6706 Update.
6707 * linespec.c (minsym_found, add_minsym): Update.
6708 * linux-nat.c (get_signo): Update.
6709 * linux-thread-db.c (inferior_has_bug): Update.
6710 * m32c-tdep.c (m32c_return_value)
6711 (m32c_m16c_address_to_pointer): Update.
6712 * m32r-tdep.c (m32r_frame_this_id): Update.
6713 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6714 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6715 * maint.c (maintenance_translate_address): Update.
6716 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6717 (frob_address): New function.
6718 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6719 frob_address. Rename parameter to "pc_in".
6720 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6721 addresses.
6722 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6723 Update.
6724 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6725 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6726 * objc-lang.c (find_objc_msgsend): Update.
6727 * objfiles.c (objfile_relocate1): Update.
6728 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6729 * p-valprint.c (pascal_val_print): Update.
6730 * parse.c (write_exp_msymbol): Update.
6731 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6732 (ppc_elfv2_skip_entrypoint): Update.
6733 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6734 * printcmd.c (build_address_symbolic, msym_info)
6735 (address_info): Update.
6736 * proc-service.c (ps_pglobal_lookup): Update.
6737 * psymtab.c (find_pc_sect_psymtab_closer)
6738 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6739 Change msymbol parameter to bound_minimal_symbol.
6740 * ravenscar-thread.c (get_running_thread_id): Update.
6741 * remote.c (remote_check_symbols): Update.
6742 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6743 address.
6744 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6745 * solib-dsbt.c (lm_base): Update.
6746 * solib-frv.c (lm_base, main_got): Update.
6747 * solib-irix.c (locate_base): Update.
6748 * solib-som.c (som_solib_create_inferior_hook)
6749 (link_map_start): Update.
6750 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6751 * solib-svr4.c (elf_locate_base, enable_break): Update.
6752 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6753 (flush_ea_cache): Update.
6754 * stabsread.c (define_symbol, scan_file_globals): Update.
6755 * stack.c (find_frame_funname): Update.
6756 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6757 (debug_qf_find_pc_sect_symtab): Update.
6758 * symfile.c (simple_read_overlay_table)
6759 (simple_overlay_update): Update.
6760 * symfile.h (struct quick_symbol_functions)
6761 <find_pc_sect_symtab>: Change type of msymbol to
6762 bound_minimal_symbol.
6763 * symmisc.c (dump_msymbols): Update.
6764 * symtab.c (find_pc_sect_symtab_via_partial)
6765 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6766 (search_symbols, print_msymbol_info): Update.
6767 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6768 (MSYMBOL_VALUE_ADDRESS): Redefine.
6769 (BMSYMBOL_VALUE_ADDRESS): New macro.
6770 * tracepoint.c (scope_info): Update.
6771 * tui/tui-disasm.c (tui_find_disassembly_address)
6772 (tui_get_begin_asm_address): Update.
6773 * valops.c (find_function_in_inferior): Update.
6774 * value.c (value_static_field, value_fn_field): Update.
6775
3b7344d5
TT
67762014-02-26 Tom Tromey <tromey@redhat.com>
6777
6778 * ada-lang.c (ada_update_initial_language): Update.
6779 (ada_main_name, ada_has_this_exception_support): Update.
6780 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6781 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6782 * arm-tdep.c (arm_skip_stub): Update.
6783 * auxv.c (ld_so_xfer_auxv): Update.
6784 * avr-tdep.c (avr_scan_prologue): Update.
6785 * ax-gdb.c (gen_var_ref): Update.
6786 * breakpoint.c (struct breakpoint_objfile_data)
6787 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6788 type to bound_minimal_symbol.
6789 (create_overlay_event_breakpoint)
6790 (create_longjmp_master_breakpoint)
6791 (create_std_terminate_master_breakpoint)
6792 (create_exception_master_breakpoint): Update.
6793 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6794 * c-exp.y (classify_name): Update.
6795 * coffread.c (coff_symfile_read): Update.
6796 * common/agent.c (agent_look_up_symbols): Update.
6797 * d-lang.c (d_main_name): Update.
6798 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6799 * dec-thread.c (enable_dec_thread): Update.
6800 * dwarf2loc.c (call_site_to_target_addr): Update.
6801 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6802 * eval.c (evaluate_subexp_standard): Update.
6803 * findvar.c (struct minsym_lookup_data) <result>: Change type
6804 to bound_minimal_symbol.
6805 <objfile>: Remove.
6806 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6807 * frame.c (inside_main_func): Update.
6808 * frv-tdep.c (frv_frame_this_id): Update.
6809 * gcore.c (call_target_sbrk): Update.
6810 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6811 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6812 Update.
6813 * go-lang.c (go_main_name): Update.
6814 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6815 (hppa_hpux_find_import_stub_for_addr): Update.
6816 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6817 Update. Change return type.
6818 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6819 type.
6820 * jit.c (jit_breakpoint_re_set_internal): Update.
6821 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6822 Update.
6823 * linux-nat.c (get_signo): Update.
6824 * linux-thread-db.c (inferior_has_bug): Update
6825 * m32c-tdep.c (m32c_return_value)
6826 (m32c_m16c_address_to_pointer): Update.
6827 * m32r-tdep.c (m32r_frame_this_id): Update.
6828 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6829 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6830 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6831 lookup_minimal_symbol. Change return type.
6832 (lookup_minimal_symbol): Remove.
6833 (lookup_bound_minimal_symbol): Update.
6834 (lookup_minimal_symbol_text): Change return type.
6835 (lookup_minimal_symbol_solib_trampoline): Change return type.
6836 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6837 (lookup_minimal_symbol_solib_trampoline): Change return type.
6838 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6839 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6840 (value_nsstring, find_imps): Update.
6841 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6842 * p-lang.c (pascal_main_name): Update.
6843 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6844 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6845 * proc-service.c (ps_pglobal_lookup): Update.
6846 * ravenscar-thread.c (get_running_thread_msymbol): Change
6847 return type.
6848 (has_ravenscar_runtime, get_running_thread_id): Update.
6849 * remote.c (remote_check_symbols): Update.
6850 * sol-thread.c (ps_pglobal_lookup): Update.
6851 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6852 * solib-dsbt.c (lm_base): Update.
6853 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6854 Update.
6855 * solib-irix.c (locate_base): Update.
6856 * solib-som.c (som_solib_create_inferior_hook)
6857 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6858 Update.
6859 * solib-spu.c (spu_enable_break): Update.
6860 * solib-svr4.c (elf_locate_base, enable_break): Update.
6861 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6862 (flush_ea_cache): Update.
6863 * stabsread.c (define_symbol): Update.
6864 * symfile.c (simple_read_overlay_table): Update.
6865 * symtab.c (find_pc_sect_line): Update.
6866 * tracepoint.c (scope_info): Update.
6867 * tui-disasm.c (tui_get_begin_asm_address): Update.
6868 * value.c (value_static_field): Update.
6869
40c1a007
TT
68702014-02-26 Tom Tromey <tromey@redhat.com>
6871
6872 * minsyms.c (prim_record_minimal_symbol_full): Use
6873 SET_MSYMBOL_VALUE_ADDRESS.
6874 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6875 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6876 SET_MSYMBOL_VALUE_ADDRESS.
6877 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6878 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6879
efd66ac6
TT
68802014-02-26 Tom Tromey <tromey@redhat.com>
6881
6882 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6883 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6884 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6885 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6886 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6887 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6888 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6889 * ada-lang.c (ada_main_name): Update.
6890 (ada_lookup_simple_minsym): Update.
6891 (ada_make_symbol_completion_list): Update.
6892 (ada_add_standard_exceptions): Update.
6893 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6894 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6895 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6896 * arm-tdep.c (skip_prologue_function): Update.
6897 (arm_skip_stack_protector, arm_skip_stub): Update.
6898 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6899 (arm_wince_skip_main_prologue): Update.
6900 * auxv.c (ld_so_xfer_auxv): Update.
6901 * avr-tdep.c (avr_scan_prologue): Update.
6902 * ax-gdb.c (gen_var_ref): Update.
6903 * block.c (call_site_for_pc): Update.
6904 * blockframe.c (get_pc_function_start): Update.
6905 (find_pc_partial_function_gnu_ifunc): Update.
6906 * breakpoint.c (create_overlay_event_breakpoint): Update.
6907 (create_longjmp_master_breakpoint): Update.
6908 (create_std_terminate_master_breakpoint): Update.
6909 (create_exception_master_breakpoint): Update.
6910 (resolve_sal_pc): Update.
6911 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6912 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6913 Update.
6914 * c-valprint.c (c_val_print): Update.
6915 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6916 * coffread.c (coff_symfile_read): Update.
6917 * common/agent.c (agent_look_up_symbols): Update.
6918 * dbxread.c (find_stab_function_addr): Update.
6919 (end_psymtab): Update.
6920 * dwarf2loc.c (call_site_to_target_addr): Update.
6921 (func_verify_no_selftailcall): Update.
6922 (tailcall_dump): Update.
6923 (call_site_find_chain_1): Update.
6924 (dwarf_expr_reg_to_entry_parameter): Update.
6925 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6926 (elf_gnu_ifunc_resolve_by_got): Update.
6927 * f-valprint.c (info_common_command): Update.
6928 * findvar.c (read_var_value): Update.
6929 * frame.c (get_prev_frame_1): Update.
6930 (inside_main_func): Update.
6931 * frv-tdep.c (frv_skip_main_prologue): Update.
6932 (frv_frame_this_id): Update.
6933 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6934 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6935 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6936 (gnuv3_skip_trampoline): Update.
6937 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6938 (hppa64_hpux_in_solib_call_trampoline): Update.
6939 (hppa_hpux_skip_trampoline_code): Update.
6940 (hppa64_hpux_search_dummy_call_sequence): Update.
6941 (hppa_hpux_find_import_stub_for_addr): Update.
6942 (hppa_hpux_find_dummy_bpaddr): Update.
6943 * hppa-tdep.c (hppa_symbol_address)
6944 (hppa_lookup_stub_minimal_symbol): Update.
6945 * i386-tdep.c (i386_skip_main_prologue): Update.
6946 (i386_pe_skip_trampoline_code): Update.
6947 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6948 * infcall.c (get_function_name): Update.
6949 * infcmd.c (until_next_command): Update.
6950 * jit.c (jit_breakpoint_re_set_internal): Update.
6951 (jit_inferior_init): Update.
6952 * linespec.c (minsym_found): Update.
6953 (add_minsym): Update.
6954 * linux-fork.c (info_checkpoints_command): Update.
6955 * linux-nat.c (get_signo): Update.
6956 * linux-thread-db.c (inferior_has_bug): Update.
6957 * m32c-tdep.c (m32c_return_value): Update.
6958 (m32c_m16c_address_to_pointer): Update.
6959 (m32c_m16c_pointer_to_address): Update.
6960 * m32r-tdep.c (m32r_frame_this_id): Update.
6961 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6962 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6963 * maint.c (maintenance_translate_address): Update.
6964 * minsyms.c (add_minsym_to_hash_table): Update.
6965 (add_minsym_to_demangled_hash_table): Update.
6966 (msymbol_objfile): Update.
6967 (lookup_minimal_symbol): Update.
6968 (iterate_over_minimal_symbols): Update.
6969 (lookup_minimal_symbol_text): Update.
6970 (lookup_minimal_symbol_by_pc_name): Update.
6971 (lookup_minimal_symbol_solib_trampoline): Update.
6972 (lookup_minimal_symbol_by_pc_section_1): Update.
6973 (lookup_minimal_symbol_and_objfile): Update.
6974 (prim_record_minimal_symbol_full): Update.
6975 (compare_minimal_symbols): Update.
6976 (compact_minimal_symbols): Update.
6977 (build_minimal_symbol_hash_tables): Update.
6978 (install_minimal_symbols): Update.
6979 (terminate_minimal_symbol_table): Update.
6980 (find_solib_trampoline_target): Update.
6981 (minimal_symbol_upper_bound): Update.
6982 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6983 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6984 (mips_skip_pic_trampoline_code): Update.
6985 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6986 * objc-lang.c (selectors_info): Update.
6987 (classes_info): Update.
6988 (find_methods): Update.
6989 (find_imps): Update.
6990 (find_objc_msgsend): Update.
6991 * objfiles.c (objfile_relocate1): Update.
6992 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6993 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6994 * p-valprint.c (pascal_val_print): Update.
6995 * parse.c (write_exp_msymbol): Update.
6996 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6997 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6998 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6999 * printcmd.c (build_address_symbolic): Update.
7000 (sym_info): Update.
7001 (address_info): Update.
7002 * proc-service.c (ps_pglobal_lookup): Update.
7003 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7004 (find_pc_sect_psymtab): Update.
7005 * python/py-framefilter.c (py_print_frame): Update.
7006 * ravenscar-thread.c (get_running_thread_id): Update.
7007 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7008 Update.
7009 * remote.c (remote_check_symbols): Update.
7010 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7011 (rs6000_skip_trampoline_code): Update.
7012 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7013 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7014 * solib-dsbt.c (lm_base): Update.
7015 * solib-frv.c (lm_base): Update.
7016 (main_got): Update.
7017 * solib-irix.c (locate_base): Update.
7018 * solib-som.c (som_solib_create_inferior_hook): Update.
7019 (som_solib_desire_dynamic_linker_symbols): Update.
7020 (link_map_start): Update.
7021 * solib-spu.c (spu_enable_break): Update.
7022 (ocl_enable_break): Update.
7023 * solib-svr4.c (elf_locate_base): Update.
7024 (enable_break): Update.
7025 * spu-tdep.c (spu_get_overlay_table): Update.
7026 (spu_catch_start): Update.
7027 (flush_ea_cache): Update.
7028 * stabsread.c (define_symbol): Update.
7029 (scan_file_globals): Update.
7030 * stack.c (find_frame_funname): Update.
7031 (frame_info): Update.
7032 * symfile.c (simple_read_overlay_table): Update.
7033 (simple_overlay_update): Update.
7034 * symmisc.c (dump_msymbols): Update.
7035 * symtab.c (fixup_section): Update.
7036 (find_pc_sect_line): Update.
7037 (skip_prologue_sal): Update.
7038 (search_symbols): Update.
7039 (print_msymbol_info): Update.
7040 (rbreak_command): Update.
7041 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7042 (completion_list_objc_symbol): Update.
7043 (default_make_symbol_completion_list_break_on): Update.
7044 * tracepoint.c (scope_info): Update.
7045 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7046 (tui_get_begin_asm_address): Update.
7047 * valops.c (find_function_in_inferior): Update.
7048 * value.c (value_static_field): Update.
7049 (value_fn_field): Update.
7050
50e65b17
TT
70512014-02-26 Tom Tromey <tromey@redhat.com>
7052
7053 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7054 bound minimal symbols. Move code that knows about minsym
7055 table layout...
7056 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7057 function.
7058 * minsyms.h (minimal_symbol_upper_bound): Declare.
7059 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7060 minimal_symbol_upper_bound.
7061
1b588015
JB
70622014-02-27 Joel Brobecker <brobecker@adacore.com>
7063
7064 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7065 Use the type's name if its basic type does not have a tag.
7066
dbb9c2b1
JB
70672014-02-27 Joel Brobecker <brobecker@adacore.com>
7068
7069 * dwarf2read.c (read_subrange_type): Add comment.
7070
55426c9d
JB
70712014-02-27 Joel Brobecker <brobecker@adacore.com>
7072
7073 * dwarf2read.c (update_enumeration_type_from_children): New
7074 function, mostly extracted from process_structure_scope.
7075 (read_enumeration_type): Call update_enumeration_type_from_children.
7076 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7077 and flag_flag_enum fields.
7078
f2fce0ca
PA
70792014-02-26 Pedro Alves <palves@redhat.com>
7080
7081 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7082 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7083 to_xfer_partial method.
7084
7a44e40e
PA
70852014-02-26 Pedro Alves <palves@redhat.com>
7086
7087 * target.c (complete_target_initialization): Don't install
7088 default_xfer_partial as to_xfer_partial hook.
7089 (nomemory): Delete.
7090 (update_current_target): Don't INHERIT nor de_fault
7091 deprecated_xfer_memory. Delete de_fault macro.
7092 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7093 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7094 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7095 field.
7096
bd265cd0
PA
70972014-02-26 Pedro Alves <palves@redhat.com>
7098
7099 * go32-nat.c (my_write_child): New function.
7100 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7101 (go32_xfer_partial): New function.
7102 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7103 Instead install a to_xfer_partial hook.
7104
9d46c4e5
PA
71052014-02-26 Pedro Alves <palves@redhat.com>
7106
7107 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7108 to_xfer_partial helper. Rewrite.
7109 (procfs_xfer_partial): New function.
7110 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7111 Install a to_xfer_partial hook.
7112
a1583b1f
PA
71132014-02-26 Pedro Alves <palves@redhat.com>
7114
7115 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7116 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7117 (m32r_xfer_partial): New function.
7118 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7119 Install a to_xfer_partial hook.
7120
6df1b29f
PA
71212014-02-26 Pedro Alves <palves@redhat.com>
7122
7123 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7124 helper.
7125 (mips_xfer_partial): New function.
7126 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7127 hook. Install a to_xfer_partial hook.
7128
dc53a7ad
JB
71292014-02-26 Joel Brobecker <brobecker@adacore.com>
7130
7131 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7132 * gdbtypes.c (create_array_type_with_stride): New function,
7133 renaming create_array_type, but with an added parameter
7134 called "bit_stride".
7135 (create_array_type): Re-implement using
7136 create_array_type_with_stride.
7137 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7138 and DW_AT_bit_stride attributes.
7139
12ab52e9
PA
71402014-02-26 Pedro Alves <palves@redhat.com>
7141
7142 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7143 task-specific breakpoints.
7144
d16461ae
PA
71452014-02-25 Pedro Alves <palves@redhat.com>
7146
7147 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7148 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7149
a8b16220
SS
71502014-02-25 Stan Shebs <stan@codesourcery.com>
7151
7152 * defs.h: Annotate comments for Doxygen.
7153
b9e795ee
TT
71542014-02-25 Tom Tromey <tromey@redhat.com>
7155
7156 * target.h (target_ignore): Don't declare.
7157 * target.c (target_ignore): Remove.
7158
849c862e
JK
71592014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7160
7161 PR gdb/16626
7162 * auto-load.c (auto_load_objfile_script_1): Change filename to
7163 debugfile.
7164
475109d8
JB
71652014-02-25 Joel Brobecker <brobecker@adacore.com>
7166
7167 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7168 documentation. Adjust prototype to match the target_ops
7169 to_xfer_partial method. Adjust implementation accordingly.
7170
e186c3bd
HZ
71712014-02-25 Hui Zhu <hui@codesourcery.com>
7172
7173 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7174 to_traceframe_info.
7175
6d451942
KB
71762014-02-25 Kevin Buettner <kevinb@redhat.com>
7177
041ab8b4 7178 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7179 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7180 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7181 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7182 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7183 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7184 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7185 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7186 New constants.
7187 (rl78_register_type): Use a data pointer type for SP and
7188 new pseudo registers mentioned above. Use a 16 bit integer
7189 type for all other register pairs.
7190 (rl78_register_name, rl78_g10_register_name): Update for
7191 new pseudo registers.
7192 (rl78_pseudo_register_read): Likewise.
7193 (rl78_pseudo_register_write): Likewise.
7194 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7195 to the newly added pseudo registers.
7196
eddf0bae
DE
71972014-02-24 Doug Evans <dje@google.com>
7198
7199 * value.c (record_latest_value): Fix comment.
7200 * printcmd.c (print_command_1): Remove code to handle -1 return from
7201 record_latest_value.
7202
e96027e0
PA
72032014-02-24 Pedro Alves <palves@redhat.com>
7204
7205 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7206 deprecated_xfer_memory hook.
7207 (procfs_xfer_partial): Call procfs_xfer_memory instead
7208 of the deprecated_xfer_memory target hook.
7209 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7210 helper.
7211
0837c976
YZ
72122014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7213
7214 * windows-nat.c (windows_xfer_shared_libraries): Return
7215 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7216 requested object is TARGET_OBJECT_LIBRARIES.
7217
bc113b4e
YQ
72182014-02-24 Yao Qi <yao@codesourcery.com>
7219
7220 * target.h (enum target_xfer_status)
7221 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7222 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7223 explicitly. New.
7224 * corefile.c (memory_error_message): User updated.
7225 * exec.c (section_table_read_available_memory): Likewise.
7226 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7227 * target.c (target_xfer_status_to_string): Likewise.
7228 (raw_memory_xfer_partial): Likewise.
7229 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7230 * valops.c (read_value_memory): Likewise.
7231 * exec.h: Update comments.
7232
01cb8804
YQ
72332014-02-24 Yao Qi <yao@codesourcery.com>
7234
7235 * target.c (target_xfer_status_to_string): Rename argument err
7236 to status.
7237 * target.h (target_xfer_status_to_string): Update declaration.
7238 Replace target_xfer_error_to_string with
7239 target_xfer_status_to_string in comment.
7240
93063aa6
YQ
72412014-02-24 Yao Qi <yao@codesourcery.com>
7242
7243 * mips-linux-nat.c (super_close): Update its type.
7244 (mips_linux_close): Pass 'self' to super_close.
7245
5c328c05
YQ
72462014-02-24 Yao Qi <yao@codesourcery.com>
7247
7248 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7249 * corefile.c (read_memory): Adjusted.
7250 * target.c (target_write_with_progress): Adjusted.
7251
f73023dd
YQ
72522014-02-23 Yao Qi <yao@codesourcery.com>
7253
7254 Revert two patches:
7255
7256 2013-10-25 Yao Qi <yao@codesourcery.com>
7257
7258 * remote.c (remote_traceframe_info): Return early if
7259 traceframe is not selected.
7260
7261 2013-07-19 Yao Qi <yao@codesourcery.com>
7262
7263 * target.c (update_current_target): Change the default action
7264 of 'to_traceframe_info' from tcomplain to return_zero.
7265 * target.h (struct target_ops) <to_traceframe_info>: Add more
7266 comments.
7267
5a2eb0ef
YQ
72682014-02-23 Yao Qi <yao@codesourcery.com>
7269
7270 * valops.c (read_value_memory): Rewrite it. Call
7271 target_xfer_partial in a loop.
7272 * exec.h (section_table_available_memory): Remove declaration.
7273 Move comments to ...
7274 * exec.c (section_table_available_memory): ... here. Make it
7275 static.
7276
1ee79381
YQ
72772014-02-23 Yao Qi <yao@codesourcery.com>
7278
7279 * exec.c (section_table_read_available_memory): New function.
7280 * exec.h (section_table_read_available_memory): Declare.
7281 * ctf.c (ctf_xfer_partial): Call
7282 section_table_read_available_memory.
7283 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7284
1ca49d37
YQ
72852014-02-23 Yao Qi <yao@codesourcery.com>
7286
7287 * ctf.c (ctf_xfer_partial): Move code to ...
7288 * exec.c (exec_read_partial_read_only): ... it. New function.
7289 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7290 * tracefile.c: Include "exec.h".
7291 * exec.h (exec_read_partial_read_only): Declare.
7292
a283690e
YQ
72932014-02-23 Yao Qi <yao@codesourcery.com>
7294
7295 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7296 (tfile_has_memory): Remove.
7297 (init_tfile_ops): Don't set fields to_has_all_memory and
7298 to_has_memory of tfile_ops.
7299 * tracefile.c (tracefile_has_all_memory): New function.
7300 (tracefile_has_memory): New function.
7301 (init_tracefile_ops): Initialize fields to_has_all_memory and
7302 to_has_memory of 'ops'.
7303
12e03cd0
YQ
73042014-02-23 Yao Qi <yao@codesourcery.com>
7305
7306 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7307 (ctf_thread_alive, ctf_get_trace_status): Remove.
7308 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7309 init_tracefile_ops.
7310 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7311 (tfile_has_stack, tfile_has_registers): Remove.
7312 (tfile_thread_alive): Remove.
7313 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7314 init_tracefile_ops.
7315 * tracefile.c (tracefile_has_stack): New function.
7316 (tracefile_has_registers): New function.
7317 (tracefile_thread_alive): New function.
7318 (tracefile_get_trace_status): New function.
7319 (init_tracefile_ops): New function.
7320 * tracefile.h (init_tracefile_ops): Declare.
7321
11395323
YQ
73222014-02-23 Yao Qi <yao@codesourcery.com>
7323
7324 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7325 (O_LARGEFILE): Likewise.
7326 (tfile_ops): Likewise.
7327 (TRACE_HEADER_SIZE): Likewise.
7328 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7329 (cur_data_size): Likewise.
7330 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7331 (tfile_close, tfile_files_info): Likewise.
7332 (tfile_get_trace_status): Likewise.
7333 (tfile_get_tracepoint_status): Likewise.
7334 (tfile_get_traceframe_address): Likewise.
7335 (tfile_trace_find, match_blocktype): Likewise.
7336 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7337 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7338 (tfile_get_trace_state_variable_value): Likewise.
7339 (tfile_has_all_memory, tfile_has_memory): Likewise.
7340 (tfile_has_stack, tfile_has_registers): Likewise.
7341 (tfile_thread_alive, build_traceframe_info): Likewise.
7342 (tfile_traceframe_info, init_tfile_ops): Likewise.
7343 (_initialize_tracepoint): Don't call init_tfile_ops
7344 and add_target_with_completer.
7345 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7346 exec.h, completer.h and filenames.h.
7347 (_initialize_tracefile_tfile): New function.
7348
7951c4eb
YQ
73492014-02-23 Yao Qi <yao@codesourcery.com>
7350
7351 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7352 tracefile-tfile.o.
7353 (HFILES_NO_SRCDIR): Add tracefile.h.
7354 * ctf.c: Include "tracefile.h".
7355 * tracefile.h: New file.
7356 * tracefile.c: New file
7357 * tracefile-tfile.c: New file.
7358 * tracepoint.c: Include "tracefile.h".
7359 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7360 (stop_reason_names): Add const.
7361 (trace_file_writer_xfree): Move it to tracefile.c.
7362 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7363 (trace_save_ctf): Likewise.
7364 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7365 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7366 (tfile_write_header, tfile_write_regblock_type): Likewise.
7367 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7368 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7369 (tfile_write_raw_data, tfile_end): Likewise.
7370 (tfile_trace_file_writer_new): Likewise.
7371 (free_uploaded_tp): Make it extern.
7372 (free_uploaded_tsv): Make it extern.
7373 (_initialize_tracepoint): Move code to register command 'tsave'
7374 to tracefile.c.
7375 * tracepoint.h (stop_reason_names): Declare.
7376 (struct trace_frame_write_ops): Move it to tracefile.h.
7377 (struct trace_file_write_ops): Likewise.
7378 (struct trace_file_writer): Likewise.
7379 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7380
184cd072
JK
73812014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7382
7383 PR gdb/16594
7384 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7385 process name.
7386 (get_cores_used_by_process): New parameter num_cores, use it.
7387 (linux_xfer_osdata_processes): Pass num_cores to it.
7388 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7389 process name.
7390
c63528fc
AK
73912014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7392
7393 * target.c (memory_xfer_partial): Fix length arg in call to
7394 breakpoint_xfer_memory.
7395
d7b30f67
SDJ
73962014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7397
7398 PR tdep/16397
7399 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7400 number comes after the + or - signs. Adjust length of register
7401 name to be extracted.
7402
8838afaf
TT
74032014-02-20 Tom Tromey <tromey@redhat.com>
7404
7405 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7406 (ada_varobj_ops): Mark "extern".
7407
05227d14
TT
74082014-02-20 Tom Tromey <tromey@redhat.com>
7409
7410 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7411
1254eefc
DE
74122014-02-20 Doug Evans <xdje42@gmail.com>
7413
7414 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7415 All callers updated.
7416 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7417 All callers updated.
7418 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7419 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7420
adde2bff
DE
74212014-02-20 lin zuojian <manjian2006@gmail.com>
7422 Joel Brobecker <brobecker@adacore.com>
7423 Doug Evans <xdje42@gmail.com>
7424
7425 PR symtab/16581
7426 * dwarf2read.c (struct die_info): New member in_process.
7427 (reset_die_in_process): New function.
7428 (process_die): Set it at the start, reset when returning.
7429 (inherit_abstract_dies): Only call process_die if origin_child_die
7430 not already being processed.
7431
3be75f87
JB
74322014-02-20 Joel Brobecker <brobecker@adacore.com>
7433
7434 * windows-nat.c (handle_unload_dll): Add function documentation.
7435 (do_initial_windows_stuff): Add comment explaining why we wait
7436 until after inferior initialization has finished before
7437 processing all DLLs.
7438
47f7ffdb
JB
74392014-02-20 Joel Brobecker <brobecker@adacore.com>
7440
7441 * windows-nat.c (get_module_name): Delete.
7442 (windows_get_exec_module_filename): New function, mostly
7443 inspired from get_module_name.
7444 (windows_pid_to_exec_file): Replace call to get_module_name
7445 by call to windows_get_exec_module_filename.
7446
1cd9feab
JB
74472014-02-20 Joel Brobecker <brobecker@adacore.com>
7448
7449 * windows-nat.c (handle_load_dll): Rewrite this function's
7450 introductory comment. Remove code using get_module_name
7451 to get the DLL's name.
7452
ea39ad35
JB
74532014-02-20 Joel Brobecker <brobecker@adacore.com>
7454
7455 * windows-nat.c (get_windows_debug_event): Ignore
7456 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7457 if windows_initialization_done == 0.
7458 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7459 Adjust implementation to always load all DLLs.
7460 (do_initial_windows_stuff): Replace call to
7461 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7462
95060284
JB
74632014-02-20 Joel Brobecker <brobecker@adacore.com>
7464
7465 * windows-nat.c (_initialize_windows_nat): Deprecate the
7466 "dll-symbols" command. Turn the "add-shared-symbol-files"
7467 and "assf" aliases into commands, and deprecate them as well.
7468 * NEWS: Add entry explaining that "dll-symbols" and its two
7469 aliases are now deprecated.
7470
8d4fdb12
JB
74712014-02-20 Joel Brobecker <brobecker@adacore.com>
7472
7473 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7474 new-line in debug string. Remove trailing spaces.
7475
1b281443
SS
74762014-02-19 Stan Shebs <stan@codesourcery.com>
7477
7478 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7479
f7bd0f78
SC
74802014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7481
7482 * NEWS: Add entry for the new feature
7483 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7484 and class values.
7485
399ebc3d
SS
74862014-02-19 Stan Shebs <stan@codesourcery.com>
7487
7488 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7489
c658158d
PA
74902014-02-19 Pedro Alves <palves@redhat.com>
7491
7492 * common/ptid.h (struct ptid): Mention that process_stratum
7493 targets should prefer ptid.lwp.
7494
ba348170
PA
74952014-02-19 Pedro Alves <palves@redhat.com>
7496
7497 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7498 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7499 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7500 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7501 store remote thread ids rather than ptid.tid.
7502 (_initialize_remote): Adjust.
7503
ac01945b
TT
75042014-02-19 Tom Tromey <tromey@redhat.com>
7505
7506 * target.c (target_get_unwinder): Rewrite.
7507 (target_get_tailcall_unwinder): Rewrite.
7508 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7509 (record_btrace_to_get_tailcall_unwinder): New function.
7510 (init_record_btrace_ops): Update.
7511 * target.h (struct target_ops) <to_get_unwinder,
7512 to_get_tailcall_unwinder>: Now function pointers. Use
7513 TARGET_DEFAULT_RETURN.
7514
8476dc92
TT
75152014-02-19 Tom Tromey <tromey@redhat.com>
7516
7517 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7518 argument.
7519 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7520
c0eca49f
TT
75212014-02-19 Tom Tromey <tromey@redhat.com>
7522
7523 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7524 directly.
7525 * target-delegates.c: Rebuild.
7526 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7527 TARGET_DEFAULT_FUNC.
7528 * target.c (default_target_decr_pc_after_break): Rename from
7529 forward_target_decr_pc_after_break. Simplify.
7530 (target_decr_pc_after_break): Rely on delegation.
7531
596b6b39
TT
75322014-02-19 Tom Tromey <tromey@redhat.com>
7533
7534 * target.c (update_current_target): Do not INHERIT to_doc or
7535 to_magic. Do not de_fault to_open or to_close.
7536
b427c1bc
TT
75372014-02-19 Tom Tromey <tromey@redhat.com>
7538
7539 * gcore.h (objfile_find_memory_regions): Declare.
7540 * gcore.c (objfile_find_memory_regions): No longer static. Add
7541 "self" argument.
7542 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7543 * exec.c: Include gcore.h.
7544 (exec_set_find_memory_regions): Remove.
7545 (exec_find_memory_regions): Remove.
7546 (exec_do_find_memory_regions): Remove.
7547 (init_exec_ops): Update.
7548 * defs.h (exec_set_find_memory_regions): Remove.
7549
9b144037
TT
75502014-02-19 Tom Tromey <tromey@redhat.com>
7551
7552 * target-delegates.c: Rebuild.
7553 * target.h (struct target_ops) <to_extra_thread_info,
7554 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7555 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7556 not 0, in TARGET_DEFAULT_RETURN.
7557
555bbdeb
TT
75582014-02-19 Tom Tromey <tromey@redhat.com>
7559
7560 * target.c (complete_target_initialization): Remove casts. Use
7561 return_zero_has_execution.
7562 (return_zero): Add "ignore" argument.
7563 (return_zero_has_execution): New function.
7564 (init_dummy_target): Remove casts. Use
7565 return_zero_has_execution.
7566
be4ddd36
TT
75672014-02-19 Tom Tromey <tromey@redhat.com>
7568
7569 * target.c (update_current_target): Update comments. Do not
7570 INHERIT to_stratum.
7571
2117c711
TT
75722014-02-19 Tom Tromey <tromey@redhat.com>
7573
7574 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7575 needed.
7576 * corelow.c (core_read_description): Delegate when needed.
7577 * remote.c (remote_read_description): Delegate when needed.
7578 * target-delegates.c: Rebuild.
7579 * target.c (target_read_description): Rewrite.
7580 * target.h (struct target_ops) <to_read_description>: Update
7581 comment. Use TARGET_DEFAULT_RETURN.
7582
e88ef65c
TT
75832014-02-19 Tom Tromey <tromey@redhat.com>
7584
7585 * target-delegates.c: Rebuild.
7586 * target.c (update_current_target): Don't inherit or default
7587 to_can_run.
7588 (find_default_run_target): Check against delegate_can_run.
7589 * target.h (struct target_ops) <to_can_run>: Use
7590 TARGET_DEFAULT_RETURN.
7591
86a0854a
TT
75922014-02-19 Tom Tromey <tromey@redhat.com>
7593
7594 * target-delegates.c: Rebuild.
7595 * target.c (target_disconnect): Unconditionally delegate.
7596 * target.h (struct target_ops) <to_disconnect>: Use
7597 TARGET_DEFAULT_NORETURN.
7598
ee97f592
TT
75992014-02-19 Tom Tromey <tromey@redhat.com>
7600
7601 * record.c (record_stop): Unconditionally delegate.
7602 * target-delegates.c: Rebuild.
7603 * target.c (target_stop_recording): Unconditionally delegate.
7604 * target.h (struct target_ops) <to_stop_recording>: Use
7605 TARGET_DEFAULT_IGNORE.
7606
6dc7fcf4
TT
76072014-02-19 Tom Tromey <tromey@redhat.com>
7608
7609 * target-delegates.c: Rebuild.
7610 * target.c (target_enable_btrace): Unconditionally delegate.
7611 * target.h (struct target_ops) <to_enable_btrace>: Use
7612 TARGET_DEFAULT_NORETURN.
7613
eb5b20d4
TT
76142014-02-19 Tom Tromey <tromey@redhat.com>
7615
7616 * target-delegates.c: Rebuild.
7617 * target.c (target_read_btrace): Unconditionally delegate.
7618 * target.h (struct target_ops) <to_read_btrace>: Use
7619 TARGET_DEFAULT_NORETURN.
7620
9ace480d
TT
76212014-02-19 Tom Tromey <tromey@redhat.com>
7622
7623 * target-delegates.c: Rebuild.
7624 * target.c (target_teardown_btrace): Unconditionally delegate.
7625 * target.h (struct target_ops) <to_teardown_btrace>: Use
7626 TARGET_DEFAULT_NORETURN.
7627
8dc292d3
TT
76282014-02-19 Tom Tromey <tromey@redhat.com>
7629
7630 * target-delegates.c: Rebuild.
7631 * target.c (target_disable_btrace): Unconditionally delegate.
7632 * target.h (struct target_ops) <to_disable_btrace>: Use
7633 TARGET_DEFAULT_NORETURN.
7634
58a5184e
TT
76352014-02-19 Tom Tromey <tromey@redhat.com>
7636
7637 * target-delegates.c: Rebuild.
7638 * target.c (default_search_memory): New function.
7639 (simple_search_memory): Update comment.
7640 (target_search_memory): Unconditionally delegate.
7641 * target.h (struct target_ops) <to_search_memory>: Use
7642 TARGET_DEFAULT_FUNC.
7643
8de71aab
TT
76442014-02-19 Tom Tromey <tromey@redhat.com>
7645
7646 * auxv.c (default_auxv_parse): No longer static.
7647 (target_auxv_parse): Unconditionally delegate.
7648 * auxv.h (default_auxv_parse): Declare.
7649 * target-delegates.c: Rebuild.
7650 * target.c: Include auxv.h.
7651 * target.h (struct target_ops) <to_auxv_parse>: Use
7652 TARGET_DEFAULT_FUNC.
7653
6b2c5a57
TT
76542014-02-19 Tom Tromey <tromey@redhat.com>
7655
7656 * target-delegates.c: Rebuild.
7657 * target.c (target_memory_map): Unconditionally delegate.
7658 * target.h (struct target_ops) <to_memory_map>: Use
7659 TARGET_DEFAULT_RETURN.
7660
cbffc065
TT
76612014-02-19 Tom Tromey <tromey@redhat.com>
7662
7663 * target-delegates.c: Rebuild.
7664 * target.c (target_thread_alive): Unconditionally delegate.
7665 * target.h (struct target_ops) <to_thread_alive>: Use
7666 TARGET_DEFAULT_RETURN.
7667
f09e2107
TT
76682014-02-19 Tom Tromey <tromey@redhat.com>
7669
7670 * target-delegates.c: Rebuild.
7671 * target.c (target_save_record): Unconditionally delegate.
7672 * target.h (struct target_ops) <to_save_record>: Use
7673 TARGET_DEFAULT_NORETURN.
7674
07366925
TT
76752014-02-19 Tom Tromey <tromey@redhat.com>
7676
7677 * target-delegates.c: Rebuild.
7678 * target.c (target_delete_record): Unconditionally delegate.
7679 * target.h (struct target_ops) <to_delete_record>: Use
7680 TARGET_DEFAULT_NORETURN.
7681
dd2e9d25
TT
76822014-02-19 Tom Tromey <tromey@redhat.com>
7683
7684 * target-delegates.c: Rebuild.
7685 * target.c (target_record_is_replaying): Unconditionally
7686 delegate.
7687 * target.h (struct target_ops) <to_record_is_replaying>: Use
7688 TARGET_DEFAULT_RETURN.
7689
671e76cc
TT
76902014-02-19 Tom Tromey <tromey@redhat.com>
7691
7692 * target-delegates.c: Rebuild.
7693 * target.c (target_goto_record_begin): Unconditionally delegate.
7694 * target.h (struct target_ops) <to_goto_record_begin>: Use
7695 TARGET_DEFAULT_NORETURN.
7696
e9179bb3
TT
76972014-02-19 Tom Tromey <tromey@redhat.com>
7698
7699 * target-delegates.c: Rebuild.
7700 * target.c (target_goto_record_end): Unconditionally delegate.
7701 * target.h (struct target_ops) <to_goto_record_end>: Use
7702 TARGET_DEFAULT_NORETURN.
7703
05969c84
TT
77042014-02-19 Tom Tromey <tromey@redhat.com>
7705
7706 * target-delegates.c: Rebuild.
7707 * target.c (target_goto_record): Unconditionally delegate.
7708 * target.h (struct target_ops) <to_goto_record>: Use
7709 TARGET_DEFAULT_NORETURN.
7710
3679abfa
TT
77112014-02-19 Tom Tromey <tromey@redhat.com>
7712
7713 * target-delegates.c: Rebuild.
7714 * target.c (target_insn_history): Unconditionally delegate.
7715 * target.h (struct target_ops) <to_insn_history>: Use
7716 TARGET_DEFAULT_NORETURN.
7717
8444ab58
TT
77182014-02-19 Tom Tromey <tromey@redhat.com>
7719
7720 * target-delegates.c: Rebuild.
7721 * target.c (target_insn_history_from): Unconditionally delegate.
7722 * target.h (struct target_ops) <to_insn_history_from>: Use
7723 TARGET_DEFAULT_NORETURN.
7724
c29302cc
TT
77252014-02-19 Tom Tromey <tromey@redhat.com>
7726
7727 * target-delegates.c: Rebuild.
7728 * target.c (target_insn_history_range): Unconditionally delegate.
7729 * target.h (struct target_ops) <to_insn_history_range>: Use
7730 TARGET_DEFAULT_NORETURN.
7731
170049d4
TT
77322014-02-19 Tom Tromey <tromey@redhat.com>
7733
7734 * target-delegates.c: Rebuild.
7735 * target.c (target_call_history): Unconditionally delegate.
7736 * target.h (struct target_ops) <to_call_history>: Use
7737 TARGET_DEFAULT_NORETURN.
7738
16fc27d6
TT
77392014-02-19 Tom Tromey <tromey@redhat.com>
7740
7741 * target-delegates.c: Rebuild.
7742 * target.c (target_call_history_from): Unconditionally delegate.
7743 * target.h (struct target_ops) <to_call_history_from>: Use
7744 TARGET_DEFAULT_NORETURN.
7745
115d9817
TT
77462014-02-19 Tom Tromey <tromey@redhat.com>
7747
7748 * target-delegates.c: Rebuild.
7749 * target.c (target_call_history_range): Unconditionally delegate.
7750 * target.h (struct target_ops) <to_call_history_range>: Use
7751 TARGET_DEFAULT_NORETURN.
7752
eb276a6b
TT
77532014-02-19 Tom Tromey <tromey@redhat.com>
7754
7755 * target-delegates.c: Rebuild.
7756 * target.c (target_verify_memory): Unconditionally delegate.
7757 * target.h (struct target_ops) <to_verify_memory>: Use
7758 TARGET_DEFAULT_NORETURN.
7759
9e538d0d
TT
77602014-02-19 Tom Tromey <tromey@redhat.com>
7761
7762 * target-delegates.c: Rebuild.
7763 * target.c (target_core_of_thread): Unconditionally delegate.
7764 * target.h (struct target_ops) <to_core_of_thread>: Use
7765 TARGET_DEFAULT_RETURN.
7766
f6fb2925
TT
77672014-02-19 Tom Tromey <tromey@redhat.com>
7768
7769 * target-delegates.c: Rebuild.
7770 * target.c (target_flash_done): Unconditionally delegate.
7771 * target.h (struct target_ops) <to_flash_done>: Use
7772 TARGET_DEFAULT_NORETURN.
7773
e8a6c6ac
TT
77742014-02-19 Tom Tromey <tromey@redhat.com>
7775
7776 * target-delegates.c: Rebuild.
7777 * target.c (target_flash_erase): Unconditionally delegate.
7778 * target.h (struct target_ops) <to_flash_erase>: Use
7779 TARGET_DEFAULT_NORETURN.
7780
7e35c012
TT
77812014-02-19 Tom Tromey <tromey@redhat.com>
7782
7783 * target-delegates.c: Rebuild.
7784 * target.c (target_get_section_table): Unconditionally delegate.
7785 * target.h (struct target_ops) <to_get_section_table>: Use
7786 TARGET_DEFAULT_RETURN.
7787
770234d3
TT
77882014-02-19 Tom Tromey <tromey@redhat.com>
7789
7790 * target-delegates.c: Rebuild.
7791 * target.c (target_pid_to_str): Unconditionally delegate.
7792 (init_dummy_target): Don't initialize to_pid_to_str.
7793 (default_pid_to_str): Rename from dummy_pid_to_str.
7794 * target.h (struct target_ops) <to_pid_to_str>: Use
7795 TARGET_DEFAULT_FUNC.
7796
09b0dc2b
TT
77972014-02-19 Tom Tromey <tromey@redhat.com>
7798
7799 * target-delegates.c: Rebuild.
7800 * target.c (target_find_new_threads): Unconditionally delegate.
7801 * target.h (struct target_ops) <to_find_new_threads>: Use
7802 TARGET_DEFAULT_RETURN.
7803
7d4f8efa
TT
78042014-02-19 Tom Tromey <tromey@redhat.com>
7805
7806 * target-delegates.c: Rebuild.
7807 * target.c (target_program_signals): Unconditionally delegate.
7808 * target.h (struct target_ops) <to_program_signals>: Use
7809 TARGET_DEFAULT_IGNORE.
7810
035cad7f
TT
78112014-02-19 Tom Tromey <tromey@redhat.com>
7812
7813 * target-delegates.c: Rebuild.
7814 * target.c (target_pass_signals): Unconditionally delegate.
7815 * target.h (struct target_ops) <to_pass_signals>: Use
7816 TARGET_DEFAULT_IGNORE.
7817
8d657035
TT
78182014-02-19 Tom Tromey <tromey@redhat.com>
7819
7820 * target-delegates.c: Rebuild.
7821 * target.c (default_mourn_inferior): New function.
7822 (target_mourn_inferior): Unconditionally delegate.
7823 * target.h (struct target_ops) <to_mourn_inferior>: Use
7824 TARGET_DEFAULT_FUNC.
7825
098dba18
TT
78262014-02-19 Tom Tromey <tromey@redhat.com>
7827
7828 * target-delegates.c: Rebuild.
7829 * target.c (default_follow_fork): New function.
7830 (target_follow_fork): Unconditionally delegate.
7831 * target.h (struct target_ops) <to_follow_fork>: Use
7832 TARGET_DEFAULT_FUNC.
7833
423a4807
TT
78342014-02-19 Tom Tromey <tromey@redhat.com>
7835
7836 * target-delegates.c: Rebuild.
7837 * target.c (target_kill): Unconditionally delegate.
7838 * target.h (struct target_ops) <to_kill>: Use
7839 TARGET_DEFAULT_NORETURN.
7840
6c7e5e5c
TT
78412014-02-19 Tom Tromey <tromey@redhat.com>
7842
7843 * target-delegates.c: Rebuild.
7844 * target.c (target_masked_watch_num_registers): Unconditionally
7845 delegate.
7846 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7847 Use TARGET_DEFAULT_RETURN.
7848
8b1c364c
TT
78492014-02-19 Tom Tromey <tromey@redhat.com>
7850
7851 * target-delegates.c: Rebuild.
7852 * target.c (target_remove_mask_watchpoint): Unconditionally
7853 delegate.
7854 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7855 TARGET_DEFAULT_RETURN.
7856
cd4ae029
TT
78572014-02-19 Tom Tromey <tromey@redhat.com>
7858
7859 * target-delegates.c: Rebuild.
7860 * target.c (target_insert_mask_watchpoint): Unconditionally
7861 delegate.
7862 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7863 TARGET_DEFAULT_RETURN.
7864
a134316b
TT
78652014-02-19 Tom Tromey <tromey@redhat.com>
7866
7867 * target-delegates.c: Rebuild.
7868 * target.c (target_ranged_break_num_registers): Unconditionally
7869 delegate.
7870 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7871 Use TARGET_DEFAULT_RETURN.
7872
ad5989bd
TT
78732014-02-19 Tom Tromey <tromey@redhat.com>
7874
7875 * target-delegates.c: Rebuild.
7876 * target.c (target_fetch_registers): Unconditionally delegate.
7877 * target.h (struct target_ops) <to_fetch_registers>: Use
7878 TARGET_DEFAULT_NORETURN.
7879
46ee7e8d
TT
78802014-02-19 Tom Tromey <tromey@redhat.com>
7881
7882 * target-delegates.c: Rebuild.
7883 * target.c (update_current_target): Don't inherit or default
7884 to_stop.
7885 * target.h (struct target_ops) <to_stop>: Use
7886 TARGET_DEFAULT_IGNORE.
7887
843f59ed
TT
78882014-02-19 Tom Tromey <tromey@redhat.com>
7889
7890 * target-delegates.c: Rebuild.
7891 * target.c (update_current_target): Don't inherit or default
7892 to_can_run_breakpoint_commands.
7893 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7894 Use TARGET_DEFAULT_RETURN.
7895
ccfde2a0
TT
78962014-02-19 Tom Tromey <tromey@redhat.com>
7897
7898 * target-delegates.c: Rebuild.
7899 * target.c (update_current_target): Don't inherit or default
7900 to_supports_evaluation_of_breakpoint_conditions.
7901 * target.h (struct target_ops)
7902 <to_supports_evaluation_of_breakpoint_conditions>: Use
7903 TARGET_DEFAULT_RETURN.
7904
0de91722
TT
79052014-02-19 Tom Tromey <tromey@redhat.com>
7906
7907 * target-delegates.c: Rebuild.
7908 * target.c (update_current_target): Don't inherit or default
7909 to_augmented_libraries_svr4_read.
7910 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7911 Use TARGET_DEFAULT_RETURN.
7912
9a7d8b48
TT
79132014-02-19 Tom Tromey <tromey@redhat.com>
7914
7915 * target-delegates.c: Rebuild.
7916 * target.c (update_current_target): Don't inherit or default
7917 to_can_use_agent.
7918 * target.h (struct target_ops) <to_can_use_agent>: Use
7919 TARGET_DEFAULT_RETURN.
7920
d9db5b21
TT
79212014-02-19 Tom Tromey <tromey@redhat.com>
7922
7923 * target-delegates.c: Rebuild.
7924 * target.c (update_current_target): Don't inherit or default
7925 to_use_agent.
7926 * target.h (struct target_ops) <to_use_agent>: Use
7927 TARGET_DEFAULT_NORETURN.
7928
92155eeb
TT
79292014-02-19 Tom Tromey <tromey@redhat.com>
7930
7931 * target-delegates.c: Rebuild.
7932 * target.c (update_current_target): Don't inherit or default
7933 to_traceframe_info.
7934 (return_null): Remove.
7935 * target.h (struct target_ops) <to_traceframe_info>: Use
7936 TARGET_DEFAULT_RETURN.
7937
d6522a22
TT
79382014-02-19 Tom Tromey <tromey@redhat.com>
7939
7940 * target-delegates.c: Rebuild.
7941 * target.c (update_current_target): Don't inherit or default
7942 to_static_tracepoint_markers_by_strid.
7943 * target.h (struct target_ops)
7944 <to_static_tracepoint_markers_by_strid>: Use
7945 TARGET_DEFAULT_NORETURN.
7946
4c3e4425
TT
79472014-02-19 Tom Tromey <tromey@redhat.com>
7948
7949 * target-delegates.c: Rebuild.
7950 * target.c (update_current_target): Don't inherit or default
7951 to_static_tracepoint_marker_at.
7952 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7953 Use TARGET_DEFAULT_RETURN.
7954
dcd6917f
TT
79552014-02-19 Tom Tromey <tromey@redhat.com>
7956
7957 * target-delegates.c: Rebuild.
7958 * target.c (update_current_target): Don't inherit or default
7959 to_set_permissions.
7960 * target.h (struct target_ops) <to_set_permissions>: Use
7961 TARGET_DEFAULT_IGNORE.
7962
22bcceee
TT
79632014-02-19 Tom Tromey <tromey@redhat.com>
7964
7965 * target-delegates.c: Rebuild.
7966 * target.c (update_current_target): Don't inherit or default
7967 to_get_tib_address.
7968 * target.h (struct target_ops) <to_get_tib_address>: Use
7969 TARGET_DEFAULT_NORETURN.
7970
8586ccaa
TT
79712014-02-19 Tom Tromey <tromey@redhat.com>
7972
7973 * target-delegates.c: Rebuild.
7974 * target.c (update_current_target): Don't inherit or default
7975 to_set_trace_notes.
7976 * target.h (struct target_ops) <to_set_trace_notes>: Use
7977 TARGET_DEFAULT_RETURN.
7978
91df8d1d
TT
79792014-02-19 Tom Tromey <tromey@redhat.com>
7980
7981 * target-delegates.c: Rebuild.
7982 * target.c (update_current_target): Don't initialize
7983 to_set_trace_buffer_size.
7984 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7985 TARGET_DEFAULT_IGNORE.
7986
8d526939
TT
79872014-02-19 Tom Tromey <tromey@redhat.com>
7988
7989 * target-delegates.c: Rebuild.
7990 * target.c (update_current_target): Don't inherit or default
7991 to_set_circular_trace_buffer.
7992 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7993 TARGET_DEFAULT_IGNORE.
7994
0bcfeddf
TT
79952014-02-19 Tom Tromey <tromey@redhat.com>
7996
7997 * target-delegates.c: Rebuild.
7998 * target.c (update_current_target): Don't inherit or default
7999 to_set_disconnected_tracing.
8000 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8001 TARGET_DEFAULT_IGNORE.
8002
9249843f
TT
80032014-02-19 Tom Tromey <tromey@redhat.com>
8004
8005 * target-delegates.c: Rebuild.
8006 * target.c (update_current_target): Don't inherit or default
8007 to_get_min_fast_tracepoint_insn_len.
8008 (return_minus_one): Remove.
8009 * target.h (struct target_ops)
8010 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8011
ace92e7d
TT
80122014-02-19 Tom Tromey <tromey@redhat.com>
8013
8014 * target-delegates.c: Rebuild.
8015 * target.c (update_current_target): Don't inherit or default
8016 to_get_raw_trace_data.
8017 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8018 TARGET_DEFAULT_NORETURN.
8019
08120467
TT
80202014-02-19 Tom Tromey <tromey@redhat.com>
8021
8022 * target-delegates.c: Rebuild.
8023 * target.c (update_current_target): Don't inherit or default
8024 to_upload_trace_state_variables.
8025 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8026 Use TARGET_DEFAULT_RETURN.
8027
1e949b00
TT
80282014-02-19 Tom Tromey <tromey@redhat.com>
8029
8030 * target-delegates.c: Rebuild.
8031 * target.c (update_current_target): Don't inherit or default
8032 to_upload_tracepoints.
8033 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8034 TARGET_DEFAULT_RETURN.
8035
a2e6c147
TT
80362014-02-19 Tom Tromey <tromey@redhat.com>
8037
8038 * target-delegates.c: Rebuild.
8039 * target.c (update_current_target): Don't inherit or default
8040 to_save_trace_data.
8041 * target.h (struct target_ops) <to_save_trace_data>: Use
8042 TARGET_DEFAULT_NORETURN.
8043
959bcd0b
TT
80442014-02-19 Tom Tromey <tromey@redhat.com>
8045
8046 * target-delegates.c: Rebuild.
8047 * target.c (update_current_target): Don't inherit or default
8048 to_get_trace_state_variable_value.
8049 * target.h (struct target_ops)
8050 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8051
afc94e66
TT
80522014-02-19 Tom Tromey <tromey@redhat.com>
8053
8054 * target-delegates.c: Rebuild.
8055 * target.c (update_current_target): Don't inherit or default
8056 to_trace_find.
8057 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8058
e51c07ea
TT
80592014-02-19 Tom Tromey <tromey@redhat.com>
8060
8061 * target-delegates.c: Rebuild.
8062 * target.c (update_current_target): Don't inherit or default
8063 to_trace_stop.
8064 * target.h (struct target_ops) <to_trace_stop>: Use
8065 TARGET_DEFAULT_NORETURN.
8066
6fea14cd
TT
80672014-02-19 Tom Tromey <tromey@redhat.com>
8068
8069 * target-delegates.c: Rebuild.
8070 * target.c (update_current_target): Don't inherit or default
8071 to_get_tracepoint_status.
8072 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8073 TARGET_DEFAULT_NORETURN.
8074
4072d4ff
TT
80752014-02-19 Tom Tromey <tromey@redhat.com>
8076
8077 * target-delegates.c: Rebuild.
8078 * target.c (update_current_target): Don't inherit or default
8079 to_get_trace_status.
8080 * target.h (struct target_ops) <to_get_trace_status>: Use
8081 TARGET_DEFAULT_RETURN.
8082
25da2e80
TT
80832014-02-19 Tom Tromey <tromey@redhat.com>
8084
8085 * target-delegates.c: Rebuild.
8086 * target.c (update_current_target): Don't inherit or default
8087 to_trace_start.
8088 * target.h (struct target_ops) <to_trace_start>: Use
8089 TARGET_DEFAULT_NORETURN.
8090
86dd181d
TT
80912014-02-19 Tom Tromey <tromey@redhat.com>
8092
8093 * target-delegates.c: Rebuild.
8094 * target.c (update_current_target): Don't inherit or default
8095 to_trace_set_readonly_regions.
8096 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8097 Use TARGET_DEFAULT_NORETURN.
8098
05c41993
TT
80992014-02-19 Tom Tromey <tromey@redhat.com>
8100
8101 * target-delegates.c: Rebuild.
8102 * target.c (update_current_target): Don't inherit or default
8103 to_disable_tracepoint.
8104 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8105 TARGET_DEFAULT_NORETURN.
8106
151f70f1
TT
81072014-02-19 Tom Tromey <tromey@redhat.com>
8108
8109 * target-delegates.c: Rebuild.
8110 * target.c (update_current_target): Don't inherit or default
8111 to_enable_tracepoint.
8112 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8113 TARGET_DEFAULT_NORETURN.
8114
94eb98b9
TT
81152014-02-19 Tom Tromey <tromey@redhat.com>
8116
8117 * target-delegates.c: Rebuild.
8118 * target.c (update_current_target): Don't inherit or default
8119 to_download_trace_state_variable.
8120 * target.h (struct target_ops) <to_download_trace_state_variable>:
8121 Use TARGET_DEFAULT_NORETURN.
8122
719acc4a
TT
81232014-02-19 Tom Tromey <tromey@redhat.com>
8124
8125 * target-delegates.c: Rebuild.
8126 * target.c (update_current_target): Don't inherit or default
8127 to_can_download_tracepoint.
8128 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8129 TARGET_DEFAULT_RETURN.
8130
9a980a22
TT
81312014-02-19 Tom Tromey <tromey@redhat.com>
8132
8133 * target-delegates.c: Rebuild.
8134 * target.c (update_current_target): Don't inherit or default
8135 to_download_tracepoint.
8136 * target.h (struct target_ops) <to_download_tracepoint>: Use
8137 TARGET_DEFAULT_NORETURN.
8138
5536135b
TT
81392014-02-19 Tom Tromey <tromey@redhat.com>
8140
8141 * target-delegates.c: Rebuild.
8142 * target.c (update_current_target): Don't inherit or default
8143 to_trace_init.
8144 * target.h (struct target_ops) <to_trace_init>: Use
8145 TARGET_DEFAULT_RETURN.
8146
9409d39e
TT
81472014-02-19 Tom Tromey <tromey@redhat.com>
8148
8149 * target-delegates.c: Rebuild.
8150 * target.c (update_current_target): Don't inherit or default
8151 to_supports_string_tracing.
8152 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8153 TARGET_DEFAULT_RETURN.
8154
aab1b22d
TT
81552014-02-19 Tom Tromey <tromey@redhat.com>
8156
8157 * target-delegates.c: Rebuild.
8158 * target.c (update_current_target): Don't inherit or default
8159 to_supports_enable_disable_tracepoint.
8160 * target.h (struct target_ops)
8161 <to_supports_enable_disable_tracepoint>: Use
8162 TARGET_DEFAULT_RETURN.
8163
a7304748
TT
81642014-02-19 Tom Tromey <tromey@redhat.com>
8165
8166 * target-delegates.c: Rebuild.
8167 * target.c (update_current_target): Don't inherit or default
8168 to_supports_multi_process.
8169 * target.h (struct target_ops) <to_supports_multi_process>: Use
8170 TARGET_DEFAULT_RETURN.
8171
4229b31d
TT
81722014-02-19 Tom Tromey <tromey@redhat.com>
8173
8174 * target-delegates.c: Rebuild.
8175 * target.c (update_current_target): Don't inherit or default
8176 to_get_ada_task_ptid.
8177 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8178 TARGET_DEFAULT_FUNC.
8179
43eba180
TT
81802014-02-19 Tom Tromey <tromey@redhat.com>
8181
8182 * target-delegates.c: Rebuild.
8183 * target.c (update_current_target): Don't inherit or default
8184 to_thread_architecture.
8185 * target.h (struct target_ops) <to_thread_architecture>: Use
8186 TARGET_DEFAULT_FUNC.
8187
fe31bf5b
TT
81882014-02-19 Tom Tromey <tromey@redhat.com>
8189
8190 * target-delegates.c: Rebuild.
8191 * target.c (update_current_target): Don't inherit or default
8192 to_execution_direction.
8193 * target.h (struct target_ops) <to_execution_direction>: Use
8194 TARGET_DEFAULT_FUNC.
8195
53e1cfc7
TT
81962014-02-19 Tom Tromey <tromey@redhat.com>
8197
8198 * target-delegates.c: Rebuild.
8199 * target.c (update_current_target): Don't inherit or default
8200 to_can_execute_reverse.
8201 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8202 TARGET_DEFAULT_RETURN.
8203 (target_can_execute_reverse): Unconditionally delegate.
8204
9bb9d61d
TT
82052014-02-19 Tom Tromey <tromey@redhat.com>
8206
8207 * target-delegates.c: Rebuild.
8208 * target.c (update_current_target): Don't inherit or default
8209 to_goto_bookmark.
8210 (dummy_goto_bookmark): Remove.
8211 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8212 * target.h (struct target_ops) <to_goto_bookmark>: Use
8213 TARGET_DEFAULT_NORETURN.
8214
3dbafbbb
TT
82152014-02-19 Tom Tromey <tromey@redhat.com>
8216
8217 * target-delegates.c: Rebuild.
8218 * target.c (update_current_target): Don't inherit or default
8219 to_get_bookmark.
8220 (dummy_get_bookmark): Remove.
8221 (init_dummy_target): Don't inherit or default to_get_bookmark.
8222 * target.h (struct target_ops) <to_get_bookmark>: Use
8223 TARGET_DEFAULT_NORETURN
8224
16f796b1
TT
82252014-02-19 Tom Tromey <tromey@redhat.com>
8226
8227 * target-delegates.c: Rebuild.
8228 * target.c (update_current_target): Don't inherit or default
8229 to_make_corefile_notes.
8230 (init_dummy_target): Don't initialize to_make_corefile_notes.
8231 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8232 TARGET_DEFAULT_FUNC.
8233
0b5a2719
TT
82342014-02-19 Tom Tromey <tromey@redhat.com>
8235
8236 * target-delegates.c: Rebuild.
8237 * target.c (update_current_target): Don't inherit or default
8238 to_find_memory_regions.
8239 (init_dummy_target): Don't initialize to_find_memory_regions.
8240 * target.h (struct target_ops) <to_find_memory_regions>: Use
8241 TARGET_DEFAULT_FUNC.
8242
d9cb0195
TT
82432014-02-19 Tom Tromey <tromey@redhat.com>
8244
8245 * target-delegates.c: Rebuild.
8246 * target.c (update_current_target): Don't inherit or default
8247 to_log_command.
8248 * target.h (struct target_ops) <to_log_command>: Use
8249 TARGET_DEFAULT_IGNORE.
8250 (target_log_command): Unconditionally delegate.
8251
830ca330
TT
82522014-02-19 Tom Tromey <tromey@redhat.com>
8253
8254 * target-delegates.c: Rebuild.
8255 * target.c (update_current_target): Don't inherit or default
8256 to_pid_to_exec_file.
8257 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8258 TARGET_DEFAULT_RETURN.
8259
825828fc
TT
82602014-02-19 Tom Tromey <tromey@redhat.com>
8261
8262 * target-delegates.c: Rebuild.
8263 * target.c (update_current_target): Don't inherit or default
8264 to_thread_name.
8265 (target_thread_name): Unconditionally delegate.
8266 * target.h (struct target_ops) <to_thread_name>: Use
8267 TARGET_DEFAULT_RETURN.
8268
4a7e6dda
TT
82692014-02-19 Tom Tromey <tromey@redhat.com>
8270
8271 * target-delegates.c: Rebuild.
8272 * target.c (update_current_target): Don't inherit or default
8273 to_extra_thread_info.
8274 * target.h (struct target_ops) <to_extra_thread_info>: Use
8275 TARGET_DEFAULT_RETURN.
8276
0db88c1d
TT
82772014-02-19 Tom Tromey <tromey@redhat.com>
8278
8279 * target-delegates.c: Rebuild.
8280 * target.c (update_current_target): Don't inherit or default
8281 to_has_exited.
8282 * target.h (struct target_ops) <to_has_exited>: Use
8283 TARGET_DEFAULT_RETURN..
8284
6a9fa051
TT
82852014-02-19 Tom Tromey <tromey@redhat.com>
8286
8287 * target-delegates.c: Rebuild.
8288 * target.c (update_current_target): Don't inherit or default
8289 to_set_syscall_catchpoint.
8290 (return_one): Remove.
8291 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8292 TARGET_DEFAULT_RETURN.
8293
62f64d7a
TT
82942014-02-19 Tom Tromey <tromey@redhat.com>
8295
8296 * target-delegates.c: Rebuild.
8297 * target.c (update_current_target): Don't inherit or default
8298 to_insert_exec_catchpoint.
8299 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8300 TARGET_DEFAULT_RETURN.
8301
cda0f38c
TT
83022014-01-08 Tom Tromey <tromey@redhat.com>
8303
8304 * target-delegates.c: Rebuild.
8305 * target.c (update_current_target): Don't inherit or default
8306 to_insert_exec_catchpoint.
8307 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8308 TARGET_DEFAULT_RETURN.
8309
95c3375e
TT
83102014-02-19 Tom Tromey <tromey@redhat.com>
8311
8312 * target-delegates.c: Rebuild.
8313 * target.c (update_current_target): Don't inherit or default
8314 to_remove_vfork_catchpoint.
8315 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8316 TARGET_DEFAULT_RETURN.
8317
7e18a8dc
TT
83182014-02-19 Tom Tromey <tromey@redhat.com>
8319
8320 * target-delegates.c: Rebuild.
8321 * target.c (update_current_target): Don't inherit or default
8322 to_insert_vfork_catchpoint.
8323 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8324 TARGET_DEFAULT_RETURN.
8325
e1a21fb7
TT
83262014-02-19 Tom Tromey <tromey@redhat.com>
8327
8328 * target-delegates.c: Rebuild.
8329 * target.c (update_current_target): Don't inherit or default
8330 to_remove_fork_catchpoint.
8331 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8332 TARGET_DEFAULT_RETURN.
8333
5958ebeb
TT
83342014-02-19 Tom Tromey <tromey@redhat.com>
8335
8336 * target-delegates.c: Rebuild.
8337 * target.c (update_current_target): Don't inherit or default
8338 to_insert_fork_catchpoint.
8339 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8340 TARGET_DEFAULT_RETURN.
8341
340ba4bf
TT
83422014-02-19 Tom Tromey <tromey@redhat.com>
8343
8344 * target-delegates.c: Rebuild.
8345 * target.c (update_current_target): Don't inherit or default
8346 to_post_startup_inferior.
8347 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8348 TARGET_DEFAULT_IGNORE.
8349
7634da87
TT
83502014-02-19 Tom Tromey <tromey@redhat.com>
8351
8352 * target-delegates.c: Rebuild.
8353 * target.c (update_current_target): Don't inherit or default
8354 to_load.
8355 * target.h (struct target_ops) <to_load>: Use
8356 TARGET_DEFAULT_NORETURN.
8357
e19e919f
TT
83582014-02-19 Tom Tromey <tromey@redhat.com>
8359
8360 * target-delegates.c: Rebuild.
8361 * target.c (update_current_target): Don't inherit or default
8362 to_terminal_info.
8363 * target.h (struct target_ops) <to_terminal_info>: Use
8364 TARGET_DEFAULT_FUNC.
8365
c6ea8f79
TT
83662014-02-19 Tom Tromey <tromey@redhat.com>
8367
8368 * target-delegates.c: Rebuild.
8369 * target.c (update_current_target): Don't inherit or default
8370 to_terminal_save_ours.
8371 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8372 TARGET_DEFAULT_IGNORE.
8373
e4a733f1
TT
83742014-02-19 Tom Tromey <tromey@redhat.com>
8375
8376 * target-delegates.c: Rebuild.
8377 * target.c (update_current_target): Don't inherit or default
8378 to_terminal_ours.
8379 * target.h (struct target_ops) <to_terminal_ours>: Use
8380 TARGET_DEFAULT_IGNORE.
8381
74fcbef9
TT
83822014-02-19 Tom Tromey <tromey@redhat.com>
8383
8384 * target-delegates.c: Rebuild.
8385 * target.c (update_current_target): Don't inherit or default
8386 to_terminal_ours_for_output.
8387 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8388 TARGET_DEFAULT_IGNORE.
8389
ddeaacc9
TT
83902014-02-19 Tom Tromey <tromey@redhat.com>
8391
8392 * target-delegates.c: Rebuild.
8393 * target.c (update_current_target): Don't inherit or default
8394 to_terminal_inferior.
8395 * target.h (struct target_ops) <to_terminal_inferior>: Use
8396 TARGET_DEFAULT_IGNORE.
8397
0343661d
TT
83982014-02-19 Tom Tromey <tromey@redhat.com>
8399
8400 * target-delegates.c: Rebuild.
8401 * target.c (update_current_target): Don't inherit or default
8402 to_terminal_init.
8403 * target.h (struct target_ops) <to_terminal_init>: Use
8404 TARGET_DEFAULT_IGNORE.
8405
77cdffe9
TT
84062014-02-19 Tom Tromey <tromey@redhat.com>
8407
8408 * target-delegates.c: Rebuild.
8409 * target.c (update_current_target): Don't inherit or default
8410 to_can_accel_watchpoint_condition.
8411 * target.h (struct target_ops)
8412 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8413
d03655e4
TT
84142014-02-19 Tom Tromey <tromey@redhat.com>
8415
8416 * target-delegates.c: Rebuild.
8417 * target.c (update_current_target): Don't inherit or default
8418 to_region_ok_for_hw_watchpoint.
8419 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8420 Use TARGET_DEFAULT_FUNC.
8421
65f160a9
TT
84222014-02-19 Tom Tromey <tromey@redhat.com>
8423
8424 * target-delegates.c: Rebuild.
8425 * target.c (update_current_target): Don't inherit or default
8426 to_watchpoint_addr_within_range.
8427 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8428 Use TARGET_DEFAULT_FUNC.
8429
61dd109f
TT
84302014-02-19 Tom Tromey <tromey@redhat.com>
8431
8432 * target-delegates.c: Rebuild.
8433 * target.c (update_current_target): Don't inherit or default
8434 to_remove_watchpoint.
8435 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8436 TARGET_DEFAULT_NORETURN.
8437
016facd4
TT
84382014-02-19 Tom Tromey <tromey@redhat.com>
8439
8440 * target-delegates.c: Rebuild.
8441 * target.c (update_current_target): Don't inherit or default
8442 to_insert_watchpoint.
8443 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8444 TARGET_DEFAULT_RETURN.
8445
418dabac
TT
84462014-02-19 Tom Tromey <tromey@redhat.com>
8447
8448 * target-delegates.c: Rebuild.
8449 * target.c (update_current_target): Don't inherit or default
8450 to_remove_hw_breakpoint.
8451 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8452 TARGET_DEFAULT_RETURN.
8453
61b371f9
TT
84542014-02-19 Tom Tromey <tromey@redhat.com>
8455
8456 * target-delegates.c: Rebuild.
8457 * target.c (update_current_target): Don't inherit or default
8458 to_insert_hw_breakpoint.
8459 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8460 TARGET_DEFAULT_RETURN.
8461
52b51d06
TT
84622014-02-19 Tom Tromey <tromey@redhat.com>
8463
8464 * target-delegates.c: Rebuild.
8465 * target.c (update_current_target): Don't inherit or default
8466 to_can_use_hw_breakpoint.
8467 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8468 TARGET_DEFAULT_RETURN.
8469
f86e59b2
TT
84702014-02-19 Tom Tromey <tromey@redhat.com>
8471
8472 * target-delegates.c: Rebuild.
8473 * target.c (update_current_target): Don't inherit or default
8474 to_files_info.
8475 * target.h (struct target_ops) <to_files_info>: Use
8476 TARGET_DEFAULT_IGNORE.
8477
6c628163
TT
84782014-02-19 Tom Tromey <tromey@redhat.com>
8479
8480 * target-delegates.c: Rebuild.
8481 * target.c (update_current_target): Don't inherit or default
8482 to_store.
8483 * target.h (struct target_ops) <to_store>: Use
8484 TARGET_DEFAULT_NORETURN.
8485
bebd3233
TT
84862014-02-19 Tom Tromey <tromey@redhat.com>
8487
8488 * target-delegates.c: Rebuild.
8489 * target.c (update_current_target): Don't inherit or default
8490 to_post_attach.
8491 * target.h (struct target_ops) <to_post_attach>: Use
8492 TARGET_DEFAULT_IGNORE.
8493
a53f3625
TT
84942014-02-19 Tom Tromey <tromey@redhat.com>
8495
8496 * target-delegates.c: Rebuild.
8497 * target.c (update_current_target): Don't inherit or default
8498 to_rcmd.
8499 (default_rcmd): New function.
8500 (do_monitor_command): Unconditionally delegate.
8501 * target.h (struct target_ops) <to_rmcd>: Use
8502 TARGET_DEFAULT_FUNC.
8503
e9a29200
TT
85042014-02-19 Tom Tromey <tromey@redhat.com>
8505
8506 * target-delegates.c: Rebuild.
8507 * target.c (init_dummy_target): Don't initialize to_attach.
8508 (target_attach): Unconditionally delegate.
8509 * target.h (struct target_ops) <to_attach>: Use
8510 TARGET_DEFAULT_FUNC.
8511
09da0d0a
TT
85122014-02-19 Tom Tromey <tromey@redhat.com>
8513
8514 * target-delegates.c: Rebuild.
8515 * target.c (target_detach): Unconditionally delegate.
8516 (init_dummy_target): Don't initialize to_detach.
8517 * target.h (struct target_ops) <to_detach>: Use
8518 TARGET_DEFAULT_IGNORE.
8519
5436ff03
TT
85202014-02-19 Tom Tromey <tromey@redhat.com>
8521
8522 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8523 Add argument.
8524 (target_augmented_libraries_svr4_read): Add argument.
8525 * target.c (update_current_target): Update.
8526 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8527 argument.
8528
f0d960ea
TT
85292014-02-19 Tom Tromey <tromey@redhat.com>
8530
8531 * target.h (struct target_ops) <to_call_history_range>: Add
8532 argument.
8533 * target.c (target_call_history_range): Add argument.
8534 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8535 argument.
8536 (record_btrace_call_history_from): Update.
8537
ec0aea04
TT
85382014-02-19 Tom Tromey <tromey@redhat.com>
8539
8540 * target.h (struct target_ops) <to_call_history_from>: Add
8541 argument.
8542 * target.c (target_call_history_from): Add argument.
8543 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8544 argument.
8545
5df2fcba
TT
85462014-02-19 Tom Tromey <tromey@redhat.com>
8547
8548 * target.h (struct target_ops) <to_call_history>: Add argument.
8549 * target.c (target_call_history): Add argument.
8550 * record-btrace.c (record_btrace_call_history): Add 'self'
8551 argument.
8552
4e99c6b7
TT
85532014-02-19 Tom Tromey <tromey@redhat.com>
8554
8555 * target.h (struct target_ops) <to_insn_history_range>: Add
8556 argument.
8557 * target.c (target_insn_history_range): Add argument.
8558 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8559 argument.
8560 (record_btrace_insn_history_from): Update.
8561
9abc3ff3
TT
85622014-02-19 Tom Tromey <tromey@redhat.com>
8563
8564 * target.h (struct target_ops) <to_insn_history_from>: Add
8565 argument.
8566 * target.c (target_insn_history_from): Add argument.
8567 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8568 argument.
8569
7a6c5609
TT
85702014-02-19 Tom Tromey <tromey@redhat.com>
8571
8572 * target.h (struct target_ops) <to_insn_history>: Add argument.
8573 * target.c (target_insn_history): Add argument.
8574 * record-btrace.c (record_btrace_insn_history): Add 'self'
8575 argument.
8576
606183ac
TT
85772014-02-19 Tom Tromey <tromey@redhat.com>
8578
8579 * target.h (struct target_ops) <to_goto_record>: Add argument.
8580 * target.c (target_goto_record): Add argument.
8581 * record-full.c (record_full_goto): Add 'self' argument.
8582 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8583
307a1b91
TT
85842014-02-19 Tom Tromey <tromey@redhat.com>
8585
8586 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8587 * target.c (target_goto_record_end): Add argument.
8588 * record-full.c (record_full_goto_end): Add 'self' argument.
8589 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8590
08475817
TT
85912014-02-19 Tom Tromey <tromey@redhat.com>
8592
8593 * target.h (struct target_ops) <to_goto_record_begin>: Add
8594 argument.
8595 * target.c (target_goto_record_begin): Add argument.
8596 * record-full.c (record_full_goto_begin): Add 'self' argument.
8597 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8598 argument.
8599
1c63c994
TT
86002014-02-19 Tom Tromey <tromey@redhat.com>
8601
8602 * target.h (struct target_ops) <to_record_is_replaying>: Add
8603 argument.
8604 * target.c (target_record_is_replaying): Add argument.
8605 * record-full.c (record_full_is_replaying): Add 'self' argument.
8606 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8607 argument.
8608 (record_btrace_xfer_partial, record_btrace_store_registers)
8609 (record_btrace_prepare_to_store, record_btrace_resume)
8610 (record_btrace_wait, record_btrace_decr_pc_after_break)
8611 (record_btrace_find_new_threads, record_btrace_thread_alive):
8612 Update.
8613
d1b55219
TT
86142014-02-19 Tom Tromey <tromey@redhat.com>
8615
8616 * target.h (struct target_ops) <to_delete_record>: Add argument.
8617 * target.c (target_delete_record): Add argument.
8618 * record-full.c (record_full_delete): Add 'self' argument.
8619
1390f529
TT
86202014-02-19 Tom Tromey <tromey@redhat.com>
8621
8622 * target.h (struct target_ops) <to_save_record>: Add argument.
8623 * target.c (target_save_record): Add argument.
8624 * record-full.c (record_full_save): Add 'self' argument.
8625 (record_full_save): Add 'self' argument.
8626
630d6a4a
TT
86272014-02-19 Tom Tromey <tromey@redhat.com>
8628
8629 * target.h (struct target_ops) <to_info_record>: Add argument.
8630 * target.c (target_info_record): Add argument.
8631 * record.c (info_record_command): Add argument.
8632 * record-full.c (record_full_info): Add 'self' argument.
8633 * record-btrace.c (record_btrace_info): Add 'self' argument.
8634
c6cd7c02
TT
86352014-02-19 Tom Tromey <tromey@redhat.com>
8636
8637 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8638 * target.c (target_stop_recording): Add argument.
8639 * record.c (record_stop): Add argument.
8640 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8641 argument.
8642
39c49f83
TT
86432014-02-19 Tom Tromey <tromey@redhat.com>
8644
8645 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8646 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8647 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8648 argument.
8649 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8650 (_initialize_amd64_linux_nat): Use it.
8651 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8652 (_initialize_i386_linux_nat): Use it.
8653
1777056d
TT
86542014-02-19 Tom Tromey <tromey@redhat.com>
8655
8656 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8657 * target.c (target_teardown_btrace): Add argument.
8658 * remote.c (remote_teardown_btrace): Add 'self' argument.
8659 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8660 argument.
8661 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8662 argument.
8663
25e95349
TT
86642014-02-19 Tom Tromey <tromey@redhat.com>
8665
8666 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8667 * target.c (target_disable_btrace): Add argument.
8668 * remote.c (remote_disable_btrace): Add 'self' argument.
8669 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8670 argument.
8671 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8672 argument.
8673
e3c49f88
TT
86742014-02-19 Tom Tromey <tromey@redhat.com>
8675
8676 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8677 * target.c (target_enable_btrace): Add argument.
8678 * remote.c (remote_enable_btrace): Add 'self' argument.
8679 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8680 argument.
8681 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8682 argument.
8683
fe38f897
TT
86842014-02-19 Tom Tromey <tromey@redhat.com>
8685
8686 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8687 (target_can_use_agent): Add argument.
8688 * target.c (update_current_target): Update.
8689 * remote.c (remote_can_use_agent): Add 'self' argument.
8690 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8691
2c152180
TT
86922014-02-19 Tom Tromey <tromey@redhat.com>
8693
8694 * target.h (struct target_ops) <to_use_agent>: Add argument.
8695 (target_use_agent): Add argument.
8696 * target.c (update_current_target): Update.
8697 * remote.c (remote_use_agent): Add 'self' argument.
8698 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8699
a893e81f
TT
87002014-02-19 Tom Tromey <tromey@redhat.com>
8701
8702 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8703 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8704 (target_traceframe_info): Add argument.
8705 * target.c (update_current_target): Update.
8706 * remote.c (remote_traceframe_info): Add 'self' argument.
8707 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8708
c686c57f
TT
87092014-02-19 Tom Tromey <tromey@redhat.com>
8710
8711 * target.h (target_static_tracepoint_markers_by_strid): Add
8712 argument.
8713 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8714 'self' argument.
8715 * target.c (update_current_target): Update.
8716 * remote.c (struct target_ops)
8717 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8718 * linux-nat.c (struct target_ops)
8719 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8720
61fc905d
TT
87212014-02-19 Tom Tromey <tromey@redhat.com>
8722
8723 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8724 Add argument.
8725 (target_static_tracepoint_marker_at): Add argument.
8726 * target.c (update_current_target): Update.
8727 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8728 argument.
8729
c378d69d
TT
87302014-02-19 Tom Tromey <tromey@redhat.com>
8731
8732 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8733 (target_set_permissions): Add argument.
8734 * target.c (update_current_target): Update.
8735 * remote.c (remote_set_permissions): Add 'self' argument.
8736 (remote_start_remote): Update.
8737
bd7ae0f5
TT
87382014-02-19 Tom Tromey <tromey@redhat.com>
8739
8740 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8741 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8742 (target_get_tib_address): Add argument.
8743 * target.c (update_current_target): Update.
8744 * remote.c (remote_get_tib_address): Add 'self' argument.
8745
d9e68a2c
TT
87462014-02-19 Tom Tromey <tromey@redhat.com>
8747
8748 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8749 (target_set_trace_notes): Add argument.
8750 * target.c (update_current_target): Update.
8751 * remote.c (remote_set_trace_notes): Add 'self' argument.
8752
4da384be
TT
87532014-02-19 Tom Tromey <tromey@redhat.com>
8754
8755 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8756 argument.
8757 (target_set_trace_buffer_size): Add argument.
8758 * target.c (update_current_target): Update.
8759 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8760
736d5b1f
TT
87612014-02-19 Tom Tromey <tromey@redhat.com>
8762
8763 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8764 argument.
8765 (target_set_circular_trace_buffer): Add argument.
8766 * target.c (update_current_target): Update.
8767 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8768 argument.
8769
37b25738
TT
87702014-02-19 Tom Tromey <tromey@redhat.com>
8771
8772 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8773 argument.
8774 (target_set_disconnected_tracing): Add argument.
8775 * target.c (update_current_target): Update.
8776 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8777
0e67620a
TT
87782014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target.h (struct target_ops)
8781 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8782 (target_get_min_fast_tracepoint_insn_len): Add argument.
8783 * target.c (update_current_target): Update.
8784 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8785 argument.
8786
88ee6f45
TT
87872014-02-19 Tom Tromey <tromey@redhat.com>
8788
8789 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8790 argument.
8791 (target_get_raw_trace_data): Add argument.
8792 * target.c (update_current_target): Update.
8793 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8794
181e3713
TT
87952014-02-19 Tom Tromey <tromey@redhat.com>
8796
8797 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8798 Add argument.
8799 (target_upload_trace_state_variables): Add argument.
8800 * target.c (update_current_target): Update.
8801 * remote.c (remote_upload_trace_state_variables): Add 'self'
8802 argument.
8803 (remote_start_remote): Update.
8804
ab6617cc
TT
88052014-02-19 Tom Tromey <tromey@redhat.com>
8806
8807 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8808 argument.
8809 (target_upload_tracepoints): Add argument.
8810 * target.c (update_current_target): Update.
8811 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8812 (remote_start_remote): Update.
8813
dc3decaf
TT
88142014-02-19 Tom Tromey <tromey@redhat.com>
8815
8816 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8817 (target_save_trace_data): Add argument.
8818 * target.c (update_current_target): Update.
8819 * remote.c (remote_save_trace_data): Add 'self' argument.
8820
4011015b
TT
88212014-02-19 Tom Tromey <tromey@redhat.com>
8822
8823 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8824 argument.
8825 * target.h (struct target_ops)
8826 <to_get_trace_state_variable_value>: Add argument.
8827 (target_get_trace_state_variable_value): Add argument.
8828 * target.c (update_current_target): Update.
8829 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8830 argument.
8831 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8832
bd4c6793
TT
88332014-02-19 Tom Tromey <tromey@redhat.com>
8834
8835 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8836 * target.h (struct target_ops) <to_trace_find>: Add argument.
8837 (target_trace_find): Add argument.
8838 * target.c (update_current_target): Update.
8839 * remote.c (remote_trace_find): Add 'self' argument.
8840 * ctf.c (ctf_trace_find): Add 'self' argument.
8841
74499f1b
TT
88422014-02-19 Tom Tromey <tromey@redhat.com>
8843
8844 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8845 (target_trace_stop): Add argument.
8846 * target.c (update_current_target): Update.
8847 * remote.c (remote_trace_stop): Add 'self' argument.
8848
db90e85c
TT
88492014-02-19 Tom Tromey <tromey@redhat.com>
8850
8851 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8852 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8853 argument.
8854 (target_get_tracepoint_status): Add argument.
8855 * target.c (update_current_target): Update.
8856 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8857
8bd200f1
TT
88582014-02-19 Tom Tromey <tromey@redhat.com>
8859
8860 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8861 * target.h (struct target_ops) <to_get_trace_status>: Add
8862 argument.
8863 (target_get_trace_status): Add argument.
8864 * target.c (update_current_target): Update.
8865 * remote.c (remote_get_trace_status): Add 'self' argument.
8866 (remote_start_remote, remote_can_download_tracepoint): Update.
8867 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8868
e2d1aae3
TT
88692014-02-19 Tom Tromey <tromey@redhat.com>
8870
8871 * target.h (struct target_ops) <to_trace_start>: Add argument.
8872 (target_trace_start): Add argument.
8873 * target.c (update_current_target): Update.
8874 * remote.c (remote_trace_start): Add 'self' argument.
8875
583f9a86
TT
88762014-02-19 Tom Tromey <tromey@redhat.com>
8877
8878 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8879 Add argument.
8880 (target_trace_set_readonly_regions): Add argument.
8881 * target.c (update_current_target): Update.
8882 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8883 argument.
8884
780b049c
TT
88852014-02-19 Tom Tromey <tromey@redhat.com>
8886
8887 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8888 argument.
8889 (target_disable_tracepoint): Add argument.
8890 * target.c (update_current_target): Update.
8891 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8892
46670d57
TT
88932014-02-19 Tom Tromey <tromey@redhat.com>
8894
8895 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8896 argument.
8897 (target_enable_tracepoint): Add argument.
8898 * target.c (update_current_target): Update.
8899 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8900
559d2b81
TT
89012014-02-19 Tom Tromey <tromey@redhat.com>
8902
8903 * target.h (struct target_ops) <to_download_trace_state_variable>:
8904 Add argument.
8905 (target_download_trace_state_variable): Add argument.
8906 * target.c (update_current_target): Update.
8907 * remote.c (remote_download_trace_state_variable): Add 'self'
8908 argument.
8909
a52a8357
TT
89102014-02-19 Tom Tromey <tromey@redhat.com>
8911
8912 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8913 argument.
8914 (target_can_download_tracepoint): Add argument.
8915 * target.c (update_current_target): Update.
8916 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8917
548f7808
TT
89182014-02-19 Tom Tromey <tromey@redhat.com>
8919
8920 * target.h (struct target_ops) <to_download_tracepoint>: Add
8921 argument.
8922 (target_download_tracepoint): Add argument.
8923 * target.c (update_current_target): Update.
8924 * remote.c (remote_download_tracepoint): Add 'self' argument.
8925
ecae04e1
TT
89262014-02-19 Tom Tromey <tromey@redhat.com>
8927
8928 * target.h (struct target_ops) <to_trace_init>: Add argument.
8929 (target_trace_init): Add argument.
8930 * target.c (update_current_target): Update.
8931 * remote.c (remote_trace_init): Add 'self' argument.
8932
fab5aa7c
TT
89332014-02-19 Tom Tromey <tromey@redhat.com>
8934
8935 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8936 * target.c (target_fileio_readlink): Add argument.
8937 * remote.c (remote_hostio_readlink): Add 'self' argument.
8938 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8939
dbbca37d
TT
89402014-02-19 Tom Tromey <tromey@redhat.com>
8941
8942 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8943 * target.c (target_fileio_unlink): Add argument.
8944 * remote.c (remote_hostio_unlink): Add 'self' argument.
8945 (remote_file_delete): Update.
8946 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8947
df39ea25
TT
89482014-02-19 Tom Tromey <tromey@redhat.com>
8949
8950 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8951 * target.c (target_fileio_close): Add argument.
8952 * remote.c (remote_hostio_close): Add 'self' argument.
8953 (remote_hostio_close_cleanup): Update.
8954 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8955 Update.
8956 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8957
a3be983c
TT
89582014-02-19 Tom Tromey <tromey@redhat.com>
8959
8960 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8961 * target.c (target_fileio_pread): Add argument.
8962 * remote.c (remote_hostio_pread): Add 'self' argument.
8963 (remote_bfd_iovec_pread, remote_file_get): Update.
8964 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8965
0d866f62
TT
89662014-02-19 Tom Tromey <tromey@redhat.com>
8967
8968 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8969 * target.c (target_fileio_pwrite): Add argument.
8970 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8971 (remote_file_put): Update.
8972 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8973
cd897586
TT
89742014-02-19 Tom Tromey <tromey@redhat.com>
8975
8976 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8977 * target.c (target_fileio_open): Add argument.
8978 * remote.c (remote_hostio_open): Add 'self' argument.
8979 (remote_bfd_iovec_open): Add 'self' argument.
8980 (remote_file_put): Add 'self' argument.
8981 (remote_file_get): Add 'self' argument.
8982 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8983
78eff0ec
TT
89842014-02-19 Tom Tromey <tromey@redhat.com>
8985
8986 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8987 Add argument.
8988 (target_can_run_breakpoint_commands): Add argument.
8989 * target.c (update_current_target): Update.
8990 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8991 argument.
8992 (remote_insert_breakpoint): Add 'self' argument.
8993 (remote_insert_hw_breakpoint): Add 'self' argument.
8994 (remote_can_run_breakpoint_commands): Add 'self' argument.
8995
efcc2da7
TT
89962014-02-19 Tom Tromey <tromey@redhat.com>
8997
8998 * target.h (struct target_ops)
8999 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9000 (target_supports_evaluation_of_breakpoint_conditions): Add
9001 argument.
9002 * target.c (update_current_target): Update.
9003 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9004 argument.
9005 (remote_insert_breakpoint): Add 'self' argument.
9006 (remote_insert_hw_breakpoint): Add 'self' argument.
9007 (remote_supports_cond_breakpoints): Add 'self' argument.
9008
6de37a3a
TT
90092014-02-19 Tom Tromey <tromey@redhat.com>
9010
9011 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9012 argument.
9013 (target_supports_string_tracing): Add argument.
9014 * target.c (update_current_target): Update.
9015 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9016
2bfc0540
TT
90172014-02-19 Tom Tromey <tromey@redhat.com>
9018
9019 * target.h (struct target_ops)
9020 <to_supports_disable_randomization>: Add argument.
9021 * target.c (find_default_supports_disable_randomization): Add
9022 argument.
9023 (target_supports_disable_randomization): Add argument.
9024 (find_default_supports_disable_randomization): Add 'self'
9025 argument.
9026 * remote.c (extended_remote_supports_disable_randomization): Add
9027 'self' argument.
9028 (remote_supports_disable_randomization): Add 'self' argument.
9029 (extended_remote_create_inferior): Update.
9030 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9031 'self' argument.
9032
7d178d6a
TT
90332014-02-19 Tom Tromey <tromey@redhat.com>
9034
9035 * target.h (struct target_ops)
9036 <to_supports_enable_disable_tracepoint>: Add argument.
9037 (target_supports_enable_disable_tracepoint): Add argument.
9038 * target.c (update_current_target): Update.
9039 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9040 argument.
9041
86ce2668
TT
90422014-02-19 Tom Tromey <tromey@redhat.com>
9043
9044 * target.h (struct target_ops) <to_supports_multi_process>: Add
9045 argument.
9046 (target_supports_multi_process): Add argument.
9047 * target.c (update_current_target): Update.
9048 * remote.c (remote_supports_multi_process): Add 'self' argument.
9049 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9050 argument.
9051 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9052 argument.
9053
4c612759
TT
90542014-02-19 Tom Tromey <tromey@redhat.com>
9055
9056 * target.h (struct target_ops) <to_execution_direction>: Add
9057 argument.
9058 (target_execution_direction): Add argument.
9059 * target.c (default_execution_direction): Add 'self' argument.
9060 * record-full.c (record_full_execution_direction): Add 'self'
9061 argument.
9062
19db3e69
TT
90632014-02-19 Tom Tromey <tromey@redhat.com>
9064
9065 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9066 argument.
9067 (target_can_execute_reverse): Add argument.
9068 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9069 * record-full.c (record_full_can_execute_reverse): Add 'self'
9070 argument.
9071 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9072 argument.
9073
1e6b91a4
TT
90742014-02-19 Tom Tromey <tromey@redhat.com>
9075
9076 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9077 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9078 argument.
9079 (target_get_ada_task_ptid): Add argument.
9080 * target.c (update_current_target): Update.
9081 (default_get_ada_task_ptid): Add 'self' argument.
9082 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9083 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9084 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9085 argument.
9086 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9087 argument.
9088 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9089 argument.
9090 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9091 argument.
9092 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9093 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9094 argument.
9095
3c80fb48
TT
90962014-02-19 Tom Tromey <tromey@redhat.com>
9097
9098 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9099 (target_goto_bookmark): Add argument.
9100 * target.c (dummy_goto_bookmark): Add 'self' argument.
9101 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9102
dd0e2830
TT
91032014-02-19 Tom Tromey <tromey@redhat.com>
9104
9105 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9106 (target_get_bookmark): Add argument.
9107 * target.c (dummy_get_bookmark): Add 'self' argument.
9108 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9109
fc6691b2
TT
91102014-02-19 Tom Tromey <tromey@redhat.com>
9111
9112 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9113 argument.
9114 (target_make_corefile_notes): Add argument.
9115 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9116 * procfs.c (procfs_make_note_section): Add 'self' argument.
9117 (procfs_make_note_section): Add 'self' argument.
9118 (procfs_make_note_section): Add 'self' argument.
9119 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9120 argument.
9121 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9122 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9123 * exec.c (exec_make_note_section): Add 'self' argument.
9124 (exec_make_note_section): Add 'self' argument.
9125
2e73927c
TT
91262014-02-19 Tom Tromey <tromey@redhat.com>
9127
9128 * target.h (struct target_ops) <to_find_memory_regions>: Add
9129 argument.
9130 (target_find_memory_regions): Add argument.
9131 * target.c (dummy_find_memory_regions): Add 'self' argument.
9132 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9133 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9134 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9135 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9136 * exec. (exec_do_find_memory_regions): New global.
9137 (exec_set_find_memory_regions): Rewrite.
9138 (exec_find_memory_regions): New function.
9139 (init_exec_ops): Use exec_find_memory_regions.
9140
2a9a2795
TT
91412014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * target.h (struct target_ops) <to_supports_non_stop>: Add
9144 argument.
9145 * target.c (find_default_supports_non_stop): Add argument.
9146 (target_supports_non_stop): Add argument.
9147 (find_default_supports_non_stop): Add 'self' argument.
9148 * remote.c (remote_supports_non_stop): Add 'self' argument.
9149 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9150
4ab76ea3
TT
91512014-02-19 Tom Tromey <tromey@redhat.com>
9152
9153 * target.h (struct target_ops) <to_log_command>: Add argument.
9154 (target_log_command): Add argument.
9155 * serial.h (serial_log_command): Add 'self' argument.
9156 * serial.c (serial_log_command): Add 'self' argument.
9157
8dd27370
TT
91582014-02-19 Tom Tromey <tromey@redhat.com>
9159
9160 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9161 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9162 argument.
9163 (target_pid_to_exec_file): Add argument.
9164 * target.c (debug_to_pid_to_exec_file): Add argument.
9165 (update_current_target): Update.
9166 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9167 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9168 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9169 (linux_handle_extended_wait): Update.
9170 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9171 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9172 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9173 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9174
1aac633b
TT
91752014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target.h (struct target_ops) <to_rcmd>: Add argument.
9178 (target_rcmd): Add argument.
9179 * target.c (debug_to_rcmd): Add argument.
9180 (update_current_target, do_monitor_command): Update.
9181 * remote.c (remote_rcmd): Add 'self' argument.
9182 * monitor.c (monitor_rcmd): Add 'self' argument.
9183
1eab8a48
TT
91842014-02-19 Tom Tromey <tromey@redhat.com>
9185
9186 * windows-nat.c (windows_stop): Add 'self' argument.
9187 * target.h (struct target_ops) <to_stop>: Add argument.
9188 * target.c (target_stop): Add argument.
9189 (debug_to_stop): Add argument.
9190 (update_current_target): Update.
9191 * remote.c (remote_stop): Add 'self' argument.
9192 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9193 (gdbsim_cntrl_c): Update.
9194 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9195 * procfs.c (procfs_stop): Add 'self' argument.
9196 * nto-procfs.c (procfs_stop): Add 'self' argument.
9197 * monitor.c (monitor_stop): Add 'self' argument.
9198 (monitor_open): Update.
9199 * linux-nat.c (linux_nat_stop): Add argument.
9200 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9201 * gnu-nat.c (gnu_stop): Add 'self' argument.
9202 * darwin-nat.c (darwin_stop): Add 'self' argument.
9203
503a628d
TT
92042014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * target.h (struct target_ops) <to_thread_name>: Add argument.
9207 * target.c (target_thread_name): Add argument.
9208 (update_current_target): Update.
9209 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9210
c15906d8
TT
92112014-02-19 Tom Tromey <tromey@redhat.com>
9212
9213 * target.h (struct target_ops) <to_extra_thread_info>: Add
9214 argument.
9215 (target_extra_thread_info): Add argument.
9216 * target.c (update_current_target): Update.
9217 * remote.c (remote_threads_extra_info): Add 'self' argument.
9218 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9219 argument.
9220 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9221 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9222 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9223 argument.
9224 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9225 argument.
9226 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9227 argument.
9228 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9229 argument.
9230
daf5e9b6
TT
92312014-02-19 Tom Tromey <tromey@redhat.com>
9232
9233 * target.h (struct target_ops) <to_program_signals>: Add argument.
9234 * target.c (target_program_signals): Add argument.
9235 * remote.c (remote_program_signals): Add 'self' argument.
9236
94bedb42
TT
92372014-02-19 Tom Tromey <tromey@redhat.com>
9238
9239 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9240 * target.c (target_pass_signals): Add argument.
9241 * remote.c (remote_pass_signals): Add 'self' argument.
9242 (remote_start_remote): Update.
9243 * procfs.c (procfs_pass_signals): Add 'self' argument.
9244 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9245 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9246 (linux_nat_create_inferior, linux_nat_attach): Update.
9247
da82bd6b
TT
92482014-02-19 Tom Tromey <tromey@redhat.com>
9249
9250 * windows-nat.c (windows_can_run): Add 'self' argument.
9251 * target.h (struct target_ops) <to_can_run>: Add argument.
9252 (target_can_run): Add argument.
9253 * target.c (debug_to_can_run): Add argument.
9254 (update_current_target): Update.
9255 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9256 * inf-child.c (inf_child_can_run): Add 'self' argument.
9257 * go32-nat.c (go32_can_run): Add 'self' argument.
9258
d796e1d6
TT
92592014-02-19 Tom Tromey <tromey@redhat.com>
9260
9261 * target.h (struct target_ops) <to_has_exited>: Add argument.
9262 (target_has_exited): Add argument.
9263 * target.c (debug_to_has_exited): Add argument.
9264 (update_current_target): Update.
9265
ff214e67
TT
92662014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9269 argument.
9270 (target_set_syscall_catchpoint): Add argument.
9271 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9272 argument.
9273 * target.c (update_current_target): Update.
9274
758e29d2
TT
92752014-02-19 Tom Tromey <tromey@redhat.com>
9276
9277 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9278 argument.
9279 (target_remove_exec_catchpoint): Add argument.
9280 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9281 (update_current_target): Update.
9282 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9283 argument.
9284
ba025e51
TT
92852014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9288 argument.
9289 (target_insert_exec_catchpoint): Add argument.
9290 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9291 (update_current_target): Update.
9292 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9293 argument.
9294
e98cf0cd
TT
92952014-02-19 Tom Tromey <tromey@redhat.com>
9296
9297 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9298 argument.
9299 (target_remove_vfork_catchpoint): Add argument.
9300 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9301 (update_current_target): Update.
9302 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9303 argument.
9304
3ecc7da0
TT
93052014-02-19 Tom Tromey <tromey@redhat.com>
9306
9307 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9308 argument.
9309 (target_insert_vfork_catchpoint): Add argument.
9310 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9311 (update_current_target): Update.
9312 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9313 argument.
9314
973fc227
TT
93152014-02-19 Tom Tromey <tromey@redhat.com>
9316
9317 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9318 argument.
9319 (target_remove_fork_catchpoint): Add argument.
9320 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9321 (update_current_target): Update.
9322 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9323 argument.
9324
a863b201
TT
93252014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9328 argument.
9329 (target_insert_fork_catchpoint): Add argument.
9330 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9331 (update_current_target): Update.
9332 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9333 argument.
9334
2e97a79e
TT
93352014-02-19 Tom Tromey <tromey@redhat.com>
9336
9337 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9338 argument.
9339 (target_post_startup_inferior): Add argument.
9340 * target.c (debug_to_post_startup_inferior): Add argument.
9341 (update_current_target): Update.
9342 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9343 argument.
9344 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9345 argument.
9346 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9347 argument.
9348 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9349 argument.
9350 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9351 'self' argument.
9352 (super_post_startup_inferior): Likewise.
9353 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9354 'self' argument.
9355 (super_post_startup_inferior): Likewise.
9356 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9357 Add 'self' argument.
9358 (super_post_startup_inferior): Likewise.
9359
71a9f134
TT
93602014-02-19 Tom Tromey <tromey@redhat.com>
9361
9362 * target.h (struct target_ops) <to_load>: Add argument.
9363 * target.c (target_load): Add argument.
9364 (debug_to_load): Add argument.
9365 (update_current_target): Update.
9366 * remote.c (remote_load): Add 'self' argument.
9367 * remote-sim.c (gdbsim_load): Add 'self' argument.
9368 * remote-mips.c (mips_load): Add 'self' argument.
9369 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9370 * monitor.c (monitor_load): Add 'self' argument.
9371 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9372
0a4f40a2
TT
93732014-02-19 Tom Tromey <tromey@redhat.com>
9374
9375 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9376 (target_terminal_info): Add argument.
9377 * target.c (debug_to_terminal_info): Add argument.
9378 (default_terminal_info): Likewise.
9379 * inflow.c (child_terminal_info): Add 'self' argument.
9380 * inferior.h (child_terminal_info): Add 'self' argument.
9381 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9382
ae3bd431
TT
93832014-02-19 Tom Tromey <tromey@redhat.com>
9384
9385 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9386 argument.
9387 (target_terminal_save_ours): Add argument.
9388 * target.c (debug_to_terminal_save_ours): Add argument.
9389 (update_current_target): Update.
9390 * inflow.c (terminal_save_ours): Add 'self' argument.
9391 * inferior.h (terminal_save_ours): Add 'self' argument.
9392
e3594fd1
TT
93932014-02-19 Tom Tromey <tromey@redhat.com>
9394
9395 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9396 (target_terminal_ours): Add argument.
9397 * target.c (debug_to_terminal_ours): Add argument.
9398 (update_current_target): Update.
9399 * remote.c (remote_terminal_ours): Add 'self' argument.
9400 (remote_close): Update.
9401 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9402 * inflow.c (terminal_ours): Add 'self' argument.
9403 * inferior.h (terminal_ours): Add 'self' argument.
9404 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9405
2e1e1a19
TT
94062014-02-19 Pedro Alves <palves@redhat.com>
9407 Tom Tromey <tromey@redhat.com>
9408
9409 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9410 argument.
9411 (target_terminal_ours_for_output): Add argument.
9412 * target.c (debug_to_terminal_ours_for_output): Add argument.
9413 (update_current_target): Update.
9414 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9415 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9416 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9417
d2f640d4
TT
94182014-02-19 Tom Tromey <tromey@redhat.com>
9419
9420 * target.h (struct target_ops) <to_terminal_inferior>: Add
9421 argument.
9422 * target.c (target_terminal_inferior): Add argument.
9423 (update_current_target): Update.
9424 * remote.c (remote_terminal_inferior): Add 'self' argument.
9425 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9426 * inflow.c (terminal_inferior): Add 'self' argument.
9427 * inferior.h (terminal_inferior): Add 'self' argument.
9428 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9429 (go32_terminal_inferior): Add 'self' argument.
9430
c42bf286
TT
94312014-02-19 Tom Tromey <tromey@redhat.com>
9432
9433 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9434 (target_terminal_init): Add argument.
9435 * target.c (debug_to_terminal_init): Add argument.
9436 (update_current_target): Update.
9437 * inflow.c (terminal_init_inferior): Add 'self' argument.
9438 * inferior.h (terminal_init_inferior): Add 'self' argument.
9439 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9440 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9441
c3a5ff89
TT
94422014-02-19 Tom Tromey <tromey@redhat.com>
9443
9444 * target.h (struct target_ops)
9445 <to_can_accel_watchpoint_condition>: Add argument.
9446 (target_can_accel_watchpoint_condition): Add argument.
9447 * target.c (debug_to_can_accel_watchpoint_condition): Add
9448 argument.
9449 (update_current_target): Update.
9450 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9451 'self' argument.
9452
31568a15
TT
94532014-02-19 Tom Tromey <tromey@redhat.com>
9454
9455 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9456 Add argument.
9457 (target_region_ok_for_hw_watchpoint): Add argument.
9458 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9459 (default_region_ok_for_hw_watchpoint): Add argument.
9460 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9461 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9462 argument.
9463 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9464 argument.
9465 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9466 argument.
9467 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9468 'self' argument.
9469 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9470 'self' argument.
9471 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9472 'self' argument.
9473 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9474 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9475 'self' argument.
9476 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9477 Add 'self' argument.
9478
7bb99c53
TT
94792014-02-19 Tom Tromey <tromey@redhat.com>
9480
9481 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9482 argument.
9483 (target_insert_watchpoint): Add argument.
9484 * target.c (debug_to_insert_watchpoint): Add argument.
9485 (update_current_target): Update.
9486 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9487 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9488 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9489 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9490 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9491 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9492 argument.
9493 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9494 (procfs_insert_hw_watchpoint): Add 'self' argument.
9495 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9496 argument.
9497 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9498 argument.
9499 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9500 argument.
9501 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9502 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9503 argument.
9504 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9505 'self' argument.
9506
11b5219a
TT
95072014-02-19 Tom Tromey <tromey@redhat.com>
9508
9509 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9510 argument.
9511 (target_remove_watchpoint): Add argument.
9512 * target.c (debug_to_remove_watchpoint): Add argument.
9513 (update_current_target): Update.
9514 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9515 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9516 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9517 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9518 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9519 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9520 argument.
9521 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9522 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9523 argument.
9524 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9525 argument.
9526 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9527 argument.
9528 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9529 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9530 argument.
9531 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9532 'self' argument.
9533
a64dc96c
TT
95342014-02-19 Tom Tromey <tromey@redhat.com>
9535
9536 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9537 argument.
9538 (target_remove_hw_breakpoint): Add argument.
9539 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9540 (update_current_target): Update.
9541 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9542 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9543 argument.
9544 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9545 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9546 argument.
9547 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9548 'self' argument.
9549
23a26771
TT
95502014-02-19 Tom Tromey <tromey@redhat.com>
9551
9552 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9553 argument.
9554 (target_insert_hw_breakpoint): Add argument.
9555 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9556 (update_current_target): Update.
9557 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9558 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9559 argument.
9560 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9561 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9562 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9563 argument.
9564 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9565 'self' argument.
9566
5461485a
TT
95672014-02-19 Tom Tromey <tromey@redhat.com>
9568
9569 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9570 argument.
9571 (target_can_use_hardware_watchpoint): Add argument.
9572 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9573 (update_current_target): Update.
9574 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9575 argument.
9576 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9577 argument.
9578 * remote.c (remote_check_watch_resources): Add 'self' argument.
9579 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9580 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9581 argument.
9582 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9583 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9584 argument.
9585 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9586 argument.
9587 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9588 argument.
9589 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9590 argument.
9591 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9592 argument.
9593 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9594 argument.
9595 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9596 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9597 argument.
9598 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9599 'self' argument.
9600
f045800c
TT
96012014-02-19 Tom Tromey <tromey@redhat.com>
9602
9603 * target.h (struct target_ops) <to_post_attach>: Add argument.
9604 (target_post_attach): Add argument.
9605 * target.c (debug_to_post_attach): Add argument.
9606 (update_current_target): Update.
9607 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9608 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9609 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9610 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9611 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9612
de90e03d
TT
96132014-02-19 Tom Tromey <tromey@redhat.com>
9614
9615 * windows-nat.c (windows_close): Add 'self' argument.
9616 * tracepoint.c (tfile_close): Add 'self' argument.
9617 * target.h (struct target_ops) <to_close>: Add argument.
9618 * target.c (target_close): Add argument.
9619 (update_current_target): Update.
9620 * remote.c (remote_close): Add 'self' argument.
9621 * remote-sim.c (gdbsim_close): Add 'self' argument.
9622 * remote-mips.c (mips_close): Add 'self' argument.
9623 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9624 * record-full.c (record_full_close): Add 'self' argument.
9625 * record-btrace.c (record_btrace_close): Add 'self' argument.
9626 * monitor.h (monitor_close): Add 'self' argument.
9627 * monitor.c (monitor_close): Add 'self' argument.
9628 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9629 * linux-nat.c (linux_nat_close): Add argument.
9630 * go32-nat.c (go32_close): Add 'self' argument.
9631 * exec.c (exec_close_1): Add 'self' argument.
9632 * ctf.c (ctf_close): Add 'self' argument.
9633 * corelow.c (core_close): Add 'self' argument.
9634 (core_close_cleanup): Update.
9635 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9636 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9637
9dd130a0
TT
96382014-02-19 Tom Tromey <tromey@redhat.com>
9639
9640 * remote.c (remote_load): New function.
9641 (init_remote_ops): Use it.
9642
46917d26
TT
96432014-02-19 Tom Tromey <tromey@redhat.com>
9644
9645 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9646 argument.
9647 * common/linux-btrace.h (linux_supports_btrace): Update.
9648 * remote.c (remote_supports_btrace): Add "self" argument.
9649 * target-delegates.c: Rebuild.
9650 * target.c (target_supports_btrace): Remove.
9651 * target.h (struct target_ops) <to_supports_btrace>: Add
9652 target_ops argument.
9653 (target_supports_btrace): New define.
9654
6b84065d
TT
96552014-02-19 Tom Tromey <tromey@redhat.com>
9656
9657 * record-full.c (record_full_beneath_to_resume_ops)
9658 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9659 (record_full_beneath_to_wait)
9660 (record_full_beneath_to_store_registers_ops)
9661 (record_full_beneath_to_store_registers)
9662 (record_full_beneath_to_xfer_partial_ops)
9663 (record_full_beneath_to_xfer_partial)
9664 (record_full_beneath_to_insert_breakpoint_ops)
9665 (record_full_beneath_to_insert_breakpoint)
9666 (record_full_beneath_to_remove_breakpoint_ops)
9667 (record_full_beneath_to_remove_breakpoint)
9668 (record_full_beneath_to_stopped_by_watchpoint)
9669 (record_full_beneath_to_stopped_data_address)
9670 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9671 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9672 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9673 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9674 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9675 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9676 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9677 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9678 (record_full_resume, record_full_wait_1)
9679 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9680 (record_full_store_registers, record_full_xfer_partial)
9681 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9682 (record_full_async, record_full_core_xfer_partial): Use target
9683 delegation.
9684 * target-delegates.c: Rebuild.
9685 * target.c (current_xfer_partial): Remove.
9686 (update_current_target): Do not INHERIT or de_fault
9687 to_insert_breakpoint, to_remove_breakpoint,
9688 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9689 to_is_async_p, to_async. Do not set to_xfer_partial field.
9690 (default_xfer_partial): Simplify.
9691 (current_xfer_partial): Remove.
9692 (target_wait, target_resume): Simplify.
9693 (find_default_can_async_p, find_default_is_async_p): Update.
9694 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9695 to_xfer_partial, to_stopped_by_watchpoint,
9696 to_stopped_data_address.
9697 (target_store_registers): Simplify.
9698 (forward_target_remove_breakpoint)
9699 (forward_target_insert_breakpoint): Remove.
9700 (target_remove_breakpoint, target_insert_breakpoint)
9701 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9702 * target.h (struct target_ops) <to_resume, to_wait,
9703 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9704 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9705 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9706 markup.
9707 (forward_target_remove_breakpoint)
9708 (forward_target_insert_breakpoint): Remove.
9709 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9710 directly.
9711 (record_btrace_insert_breakpoint): Delegate directly.
9712
1101cb7b
TT
97132014-02-19 Tom Tromey <tromey@redhat.com>
9714
9715 PR build/7701:
9716 * target-delegates.c: New file.
9717 * target.c: Include target-delegates.c.
9718 (init_dummy_target): Call install_dummy_methods.
9719 (complete_target_initialization): Call install_delegators.
9720 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9721 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9722 * make-target-delegates: New file.
9723
8b06beed
TT
97242014-02-19 Tom Tromey <tromey@redhat.com>
9725
9726 * record.c (find_record_target): Use find_target_at.
9727 * target.c (find_target_at): New function.
9728 * target.h (find_target_at): Declare.
9729
6a109b6b
TT
97302014-02-19 Tom Tromey <tromey@redhat.com>
9731
9732 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9733 Add 'ops' argument.
9734 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9735 'ops' argument.
9736 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9737 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9738 'ops' argument.
9739 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9740 argument.
9741 * linux-nat.c (save_sigtrap): Update.
9742 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9743 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9744 (linux_nat_close): Update.
9745 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9746 argument.
9747 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9748 argument.
9749 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9750 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9751 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9752 (tmp_to_async): Add 'ops' argument.
9753 (record_full_stopped_by_watchpoint, record_full_async)
9754 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9755 argument.
9756 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9757 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9758 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9759 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9760 (remote_is_async_p, remote_async): Add 'ops' argument.
9761 (remote_stopped_data_address): Update.
9762 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9763 * target.c (update_current_target)
9764 (find_default_can_async_p, find_default_is_async_p): Update.
9765 (init_dummy_target): Update.
9766 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9767 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9768 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9769 (target_can_async_p, target_is_async_p, target_async)
9770 (target_stopped_by_watchpoint): Update.
9771
e095146b
YQ
97722014-02-19 Yao Qi <yao@codesourcery.com>
9773
9774 PR gdb/16220
9775 * gdbarch.sh: Remove startup_gdbarch.
9776 * gdbarch.c: Regenerated.
9777 * gdbarch.h: Likewise.
9778
bc3c6b36
KB
97792014-02-17 Kevin Buettner <kevinb@redhat.com>
9780
9781 * rl78-tdep.c (rl78_g10_register_name): New function.
9782 (rl78_return_value): Add g10 support.
9783 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9784 g10.
9785
98dc0167 97862014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9787
9788 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9789 (SUBDIR_GUILE_SRCS): Ditto.
9790 (scm-gsmob.o): Ditto.
9791
842c05cd
YQ
97922014-02-17 Yao Qi <yao@codesourcery.com>
9793
9794 * gnu-nat.c (ILL_RPC): Declare defined function.
9795
25c0bd04
YQ
97962014-02-17 Yao Qi <yao@codesourcery.com>
9797
9798 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9799 mach_msg_type_number_t.
9800 (gnu_write_inferior): Likewise.
9801
a9a758e3
YQ
98022014-02-17 Yao Qi <yao@codesourcery.com>
9803
9804 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9805 in format string.
9806 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9807 (inf_validate_procs, inf_signal): Likewise.
9808 (S_exception_raise_request): Likewise.
9809 (do_mach_notify_dead_name): Likewise.
9810 (steal_exc_port): Likewise.
9811 (gnu_read_inferior): Change 'copy_count''s type to
9812 mach_msg_type_number_t.
9813 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9814 format string.
9815
bae8023e
TS
98162014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9817
c82f56d9
TS
9818 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9819 flag. Adjust all users; in particular...
9820 (gnu_wait): ..., don't decrement its value in here...
9821 (gnu_create_inferior): ..., and instead set the flag in here,
9822 around the startup_inferior call, and call that one with
9823 START_INFERIOR_TRAPS_EXPECTED.
9824
3398af6a
TS
9825 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9826 (ILL_RPC): ... new macro.
9827 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9828 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9829 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9830 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9831 functions with ILL_RPC macro.
9832 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9833 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9834 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9835 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9836 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9837 (S_proc_getlogin_reply, S_proc_getsid_reply)
9838 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9839 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9840 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9841 (S_proc_getnports_reply, S_proc_is_important_reply)
9842 (S_proc_get_code_reply): New stub functions, generated with
9843 ILL_RPC macro.
9844
d47642c9
TS
9845 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9846 collected the type check structures.
9847
bae8023e
TS
9848 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9849
8a55ffb0
DE
98502014-02-14 Doug Evans <dje@google.com>
9851
9852 * target.c (target_write_partial): Fix result type.
9853
c2853f3d
JM
98542014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9855
9856 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9857 the proper offsets to access fpregset_t.
9858
ac61d2db
SA
98592014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9860
9861 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9862 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9863 * h8300-tdep.c (setmachinelist): Remove global.
9864 * hppa-tdep.c (hppa_sigtramp): Remove global.
9865 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9866 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9867 * ravenscar-thread.c (update_target_observer): Remove global.
9868 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9869
9d2d0b8b
TT
98702014-02-12 Tom Tromey <tromey@redhat.com>
9871
9872 * common/rsp-low.c: Update comments.
9873 * common/rsp-low.h: Update comments.
9874
a7191e8b
TT
98752014-02-12 Tom Tromey <tromey@redhat.com>
9876
9877 * common/rsp-low.c (convert_ascii_to_int): Remove.
9878 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9879
ff0e980e
TT
98802014-02-12 Tom Tromey <tromey@redhat.com>
9881
9882 * common/rsp-low.h (unhexify): Don't declare.
9883 * common/rsp-low.c (unhexify): Remove.
9884
e9371aff
TT
98852014-02-12 Tom Tromey <tromey@redhat.com>
9886
9887 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9888 * common/rsp-low.c (convert_int_to_ascii): Remove.
9889
971dc0b8
TT
98902014-02-12 Tom Tromey <tromey@redhat.com>
9891
9892 * common/rsp-low.h (hexify): Don't declare.
9893 * common/rsp-low.c (hexify): Remove.
9894
0a822afb
TT
98952014-02-12 Tom Tromey <tromey@redhat.com>
9896
9897 * common/rsp-low.c (hexify): Never take strlen of argument.
9898
9f1b45b0
TT
98992014-02-12 Tom Tromey <tromey@redhat.com>
9900
9901 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9902 * remote.c (extended_remote_run, remote_rcmd)
9903 (remote_download_trace_state_variable, remote_save_trace_data)
9904 (remote_set_trace_notes): Update.
9905 * tracepoint.c (encode_source_string, tfile_write_status)
9906 (tfile_write_uploaded_tsv): Update.
9907
9c3d6531
TT
99082014-02-12 Tom Tromey <tromey@redhat.com>
9909
9910 * tracepoint.c: Include rsp-low.h.
9911 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9912 * remote.c: Include rsp-low.h.
9913 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9914 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9915 (remote_unescape_input): Move to common/rsp-low.c.
9916 * common/rsp-low.h: New file.
9917 * common/rsp-low.c: New file.
9918 * Makefile.in (SFILES): Add common/rsp-low.c.
9919 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9920 (COMMON_OBS): Add rsp-low.o.
9921 (rsp-low.o): New target.
9922
01fd3ea5
TT
99232014-02-12 Tom Tromey <tromey@redhat.com>
9924
9925 * utils.h: Include print-utils.h.
9926 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9927 (int_string, core_addr_to_string, core_addr_to_string_nz)
9928 (hex_string, hex_string_custom): Don't declare.
9929 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9930 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9931 (hex_string_custom, int_string, core_addr_to_string)
9932 (core_addr_to_string_nz, host_address_to_string): Move to
9933 common/print-utils.c.
9934 * common/print-utils.h: New file.
9935 * common/print-utils.c: New file
9936 * Makefile.in (SFILES): Add common/print-utils.c.
9937 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9938 (COMMON_OBS): Add print-utils.o.
9939 (print-utils.o): New target.
9940
9fb50108
TT
99412014-02-12 Tom Tromey <tromey@redhat.com>
9942
9943 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9944
0548b5db
MK
99452014-02-12 Mark Kettenis <kettenis@gnu.org>
9946
9947 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9948
493443a4
MK
99492014-02-12 Mark Kettenis <kettenis@gnu.org>
9950
9951 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9952 if a PT_IO ptrace request returns sucessfully but indicates that 0
9953 bytes were transferred.
9954
706d0883
PA
99552014-02-12 Pedro Alves <palves@redhat.com>
9956 Kevin Buettner <kevinb@redhat.com>
9957
9958 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9959 TYPE_INSTANCE_FLAG_CODE_SPACE.
9960
5caa2f0b
PA
99612014-02-12 Pedro Alves <palves@redhat.com>
9962
9963 * h8300-tdep.c (pseudo_from_raw_register)
9964 (raw_from_pseudo_register): New functions.
9965 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9966 them.
9967
76fd5f74
PA
99682014-02-12 Pedro Alves <palves@redhat.com>
9969
9970 * h8300-tdep.c (h8300_register_sim_regno): New function.
9971 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9972 gdbarch_register_sim_regno hook.
9973
8f008406
SA
99742014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9975
9976 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9977
195abc10
SA
99782014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9979
9980 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9981
93ffa5b9
MK
99822014-02-12 Mark Kettenis <kettenis@gnu.org>
9983
9984 * obsd-tdep.h (obsd_init_abi): New prototype.
9985 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9986 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9987 (obsd_init_abi): New functions.
9988 * i386obsd-tdep.c: Include "obsd-tdep.h".
9989 (i386obsd_init_abi): Call obsd_init_abi.
9990 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9991 (amd64obsd_init_abi): Call obsd_init_abi.
9992 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9993 obsd-tdep.c to gdb_target_obs.
9994
49caec94
JM
99952014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9996
9997 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9998 double float arguments to 16-byte in the argument slots.
9999
e1402065
DE
100002014-02-11 Doug Evans <xdje42@gmail.com>
10001
10002 * configure.ac: Don't crash if pkg-config is not found and guile
10003 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10004 in guile checks.
10005 * configure: Regenerate.
10006
edcc890f
YQ
100072014-02-11 Yao Qi <yao@codesourcery.com>
10008
10009 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10010 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10011 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10012 * gnu-nat.c (gnu_xfer_memory): Likewise.
10013 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10014 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10015 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10016 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10017
9b409511
YQ
100182014-02-11 Yao Qi <yao@codesourcery.com>
10019
10020 * target.h (enum target_xfer_error): Rename to ...
10021 (enum target_xfer_status): ... it. New. All users updated.
10022 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10023 New.
10024 (TARGET_XFER_STATUS_ERROR_P): New macro.
10025 (target_xfer_error_to_string): Remove declaration.
10026 (target_xfer_status_to_string): Declare.
10027 (target_xfer_partial_ftype): Adjust it.
10028 (struct target_ops) <to_xfer_partial>: Return
10029 target_xfer_status. Add argument xfered_len. Update
10030 comments.
10031 * target.c (target_xfer_error_to_string): Rename to ...
10032 (target_xfer_status_to_string): ... it. New. All callers
10033 updated.
10034 (target_read_live_memory): Likewise. Call target_xfer_partial
10035 instead of target_read.
10036 (memory_xfer_live_readonly_partial): Return
10037 target_xfer_status. Add argument xfered_len.
10038 (raw_memory_xfer_partial): Likewise.
10039 (memory_xfer_partial_1): Likewise.
10040 (memory_xfer_partial): Likewise.
10041 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10042 properly. Update debug message.
10043 (default_xfer_partial, current_xfer_partial): Likewise.
10044 (target_write_partial): Likewise.
10045 (target_read_partial): Likewise. All callers updated.
10046 (read_whatever_is_readable): Likewise.
10047 (target_write_with_progress): Likewise.
10048 (target_read_alloc_1): Likewise.
10049
10050 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10051 * auxv.c (procfs_xfer_auxv): Likewise.
10052 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10053 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10054 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10055 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10056 * corefile.c (read_memory): Adjust.
10057 * corelow.c (core_xfer_partial): Likewise.
10058 * ctf.c (ctf_xfer_partial): Likewise.
10059 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10060 updated.
10061 (darwin_xfer_partial): Likewise.
10062 * exec.c (section_table_xfer_memory_partial): Likewise. All
10063 callers updated.
10064 (exec_xfer_partial): Likewise.
10065 * exec.h (section_table_xfer_memory_partial): Update
10066 declaration.
10067 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10068 negative.
10069 (gnu_xfer_partial): Likewise.
10070 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10071 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10072 (ia64_hpux_xfer_solib_got): Likewise.
10073 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10074 type of 'partial_len' to ULONGEST.
10075 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10076 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10077 (linux_nat_xfer_partial): Likewise.
10078 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10079 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10080 * monitor.c (monitor_xfer_memory): Likewise.
10081 (monitor_xfer_partial): Likewise.
10082 * procfs.c (procfs_xfer_partial): Likewise.
10083 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10084 * record-full.c (record_full_xfer_partial): Likewise.
10085 (record_full_core_xfer_partial): Likewise.
10086 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10087 (gdbsim_xfer_partial): Likewise.
10088 * remote.c (remote_write_bytes_aux): Likewise. All callers
10089 updated.
10090 (remote_write_bytes, remote_read_bytes): Likewise. All
10091 callers updated.
10092 (remote_flash_erase): Likewise. All callers updated.
10093 (remote_write_qxfer): Likewise. All callers updated.
10094 (remote_read_qxfer): Likewise. All callers updated.
10095 (remote_xfer_partial): Likewise.
10096 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10097 (rs6000_xfer_shared_libraries): Likewise.
10098 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10099 (sol_thread_xfer_partial): Likewise.
10100 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10101 (sparc_xfer_partial): Likewise.
10102 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10103 updated.
10104 (spu_xfer_partial): Likewise.
10105 * spu-multiarch.c (spu_xfer_partial): Likewise.
10106 * tracepoint.c (tfile_xfer_partial): Likewise.
10107 * windows-nat.c (windows_xfer_memory): Likewise.
10108 (windows_xfer_shared_libraries): Likewise.
10109 (windows_xfer_partial): Likewise.
10110 * valprint.c: Replace 'target_xfer_error' with
10111 'target_xfer_status' in comments.
10112
a8e63083
JB
101132014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10114
10115 Checked in by Joel Brobecker <brobecker@adacore.com>.
10116 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10117
e86b67d3
JB
101182014-02-11 Joel Brobecker <brobecker@adacore.com>
10119
10120 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10121 function parameters.
10122
4b7d1f7f
WN
101232014-02-10 Will Newton <will.newton@linaro.org>
10124
10125 * elfread.c (elf_rel_plt_read): Look for a .got section if
10126 looking up .got.plt fails.
10127 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10128 on address passed to elf_gnu_ifunc_record_cache.
10129 (elf_gnu_ifunc_resolve_addr): Likewise.
10130 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10131
961842b2
JM
101322014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10133
10134 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10135 (X_RETTURN): New macro.
10136 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10137
10138 * sparc64-tdep.c (sparc64_init_abi): Hook
10139 sparc_in_function_epilogue_p.
10140
3f03e7b1
GB
101412014-02-10 Gary Benson <gbenson@redhat.com>
10142
10143 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10144 Rename name_matcher to symbol_matcher.
10145
96f861ef
GB
101462014-02-10 Gary Benson <gbenson@redhat.com>
10147
10148 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10149 Use expand_symtabs_file_matcher_ftype and
10150 expand_symtabs_symbol_matcher_ftype.
10151
ee01b665
JB
101522014-02-10 Joel Brobecker <brobecker@adacore.com>
10153
10154 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10155 (struct ada_symbol_cache): New.
10156 (ada_free_symbol_cache): Forward declare.
10157 (struct ada_pspace_data): New.
10158 (ada_pspace_data_handle): New static global.
10159 (get_ada_pspace_data, ada_pspace_data_cleanup)
10160 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10161 (cache_space, cache): Delete, now folded inside struct
10162 ada_pspace_data.
10163 (ada_get_symbol_cache): New function.
10164 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10165 implementation.
10166 (_initialize_ada_language): Remove initialization of cache_space.
10167 Move call to observer_attach_inferior_exit up, grouping it
10168 with the other observer registrations inside this function.
10169 Rename command to be more general. Add call to
10170 register_program_space_data_with_cleanup.
10171
143adbbf
JB
101722014-02-10 Joel Brobecker <brobecker@adacore.com>
10173
10174 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10175 ada_new_objfile_observer.
10176 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10177 (_initialize_tasks): Update uses of ada_new_objfile_observer
10178 and ada_tasks_normal_stop_observer.
10179
aa4fb036
JB
101802014-02-10 Joel Brobecker <brobecker@adacore.com>
10181
10182 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10183 returned by the 'Length attribute to integer.
10184
9dee8cc6
JB
101852014-02-10 Joel Brobecker <brobecker@adacore.com>
10186
10187 * ada-lang.c (_initialize_ada_language): Initialize
10188 cache_space obstack.
10189
3d9434b5
JB
101902014-02-10 Joel Brobecker <brobecker@adacore.com>
10191
10192 * ada-lang.c (HASH_SIZE): New macro.
10193 (struct cache_entry): New type.
10194 (cache_space, cache): New static globals.
10195 (ada_clear_symbol_cache, find_entry): New functions.
10196 (lookup_cached_symbol, cache_symbol): Implement.
10197 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10198 (_initialize_ada_language): Attach ada_new_objfile_observer
10199 and ada_free_objfile_observer.
10200
f0c5f9b2
JB
102012014-02-10 Joel Brobecker <brobecker@adacore.com>
10202
10203 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10204 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10205 struct block * parameter.
10206 (ada_lookup_symbol_list_worker): Constify local variable "block".
10207 Remove cast which is no longer necessary.
10208
ed3ef339
DE
102092014-02-10 Doug Evans <xdje42@gmail.com>
10210
10211 Add Guile as an extension language.
10212 * NEWS: Mention Guile scripting.
10213 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10214 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10215 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10216 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10217 (CLIBS): Add GUILE_LIBS.
10218 (install-guile): New rule.
10219 (guile.o): New rule.
10220 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10221 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10222 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10223 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10224 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10225 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10226 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10227 * configure.ac: New option --with-guile.
10228 * configure: Regenerate.
10229 * config.in: Regenerate.
10230 * auto-load.c: Remove #include "python/python.h". Add #include
10231 "gdb/section-scripts.h".
10232 (source_section_scripts): Handle Guile scripts.
10233 (_initialize_auto_load): Add name of Guile objfile script to
10234 scripts-directory help text.
10235 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10236 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10237 (struct breakpoint): New member scm_bp_object.
10238 * defs.h (enum command_control_type): New value guile_control.
10239 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10240 "extension.h".
10241 (show_user): Update comment.
10242 (_initialize_cli_cmds): Update help text for "show user". Update help
10243 text for max-user-call-depth.
10244 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10245 "extension.h".
10246 (multi_line_command_p): Add guile_control.
10247 (print_command_lines): Handle guile_control.
10248 (execute_control_command, recurse_read_control_structure): Ditto.
10249 (process_next_line): Recognize "guile" commands.
10250 * disasm.c (gdb_disassemble_info): Make non-static.
10251 * disasm.h: #include "dis-asm.h".
10252 (struct gdbarch): Add forward decl.
10253 (gdb_disassemble_info): Declare.
10254 * extension.c: #include "guile/guile.h".
10255 (extension_languages): Add guile.
10256 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10257 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10258 * gdbtypes.c (get_unsigned_type_max): New function.
10259 (get_signed_type_minmax): New function.
10260 * gdbtypes.h (get_unsigned_type_max): Declare.
10261 (get_signed_type_minmax): Declare.
10262 * guile/README: New file.
10263 * guile/guile-internal.h: New file.
10264 * guile/guile.c: New file.
10265 * guile/guile.h: New file.
10266 * guile/scm-arch.c: New file.
10267 * guile/scm-auto-load.c: New file.
10268 * guile/scm-block.c: New file.
10269 * guile/scm-breakpoint.c: New file.
10270 * guile/scm-disasm.c: New file.
10271 * guile/scm-exception.c: New file.
10272 * guile/scm-frame.c: New file.
10273 * guile/scm-gsmob.c: New file.
10274 * guile/scm-iterator.c: New file.
10275 * guile/scm-lazy-string.c: New file.
10276 * guile/scm-math.c: New file.
10277 * guile/scm-objfile.c: New file.
10278 * guile/scm-ports.c: New file.
10279 * guile/scm-pretty-print.c: New file.
10280 * guile/scm-safe-call.c: New file.
10281 * guile/scm-string.c: New file.
10282 * guile/scm-symbol.c: New file.
10283 * guile/scm-symtab.c: New file.
10284 * guile/scm-type.c: New file.
10285 * guile/scm-utils.c: New file.
10286 * guile/scm-value.c: New file.
10287 * guile/lib/gdb.scm: New file.
10288 * guile/lib/gdb/boot.scm: New file.
10289 * guile/lib/gdb/experimental.scm: New file.
10290 * guile/lib/gdb/init.scm: New file.
10291 * guile/lib/gdb/iterator.scm: New file.
10292 * guile/lib/gdb/printing.scm: New file.
10293 * guile/lib/gdb/types.scm: New file.
10294 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10295 (VPATH): Add $(GUILE_SRCDIR).
10296 (GUILE_DIR): New variable.
10297 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10298 (all): Add stamp-guile dependency.
10299 (stamp-guile): New rule.
10300 (clean-guile, install-guile, uninstall-guile): New rules.
10301 (install-only): Add install-guile dependency.
10302 (uninstall): Add uninstall-guile dependency.
10303 (clean): Add clean-guile dependency.
10304
ac020ec5
DE
103052014-02-09 Doug Evans <xdje42@gmail.com>
10306
10307 Revert this patch (which I approved, mea culpa).
10308
10309 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10310
10311 * Makefile.in (all-lib): Remove.
10312 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10313
2a081c59
JK
103142014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10315
10316 Fix Python stack corruption.
10317 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10318 gdb_py_longest.
10319
0a6bd22d
MK
103202014-02-08 Mark Kettenis <kettenis@gnu.org>
10321
10322 * Makefile.in (all-lib): Remove.
10323 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10324
1a860409
DE
103252014-02-07 Doug Evans <dje@google.com>
10326
10327 * extension-priv.h (extension_language_script_ops): Add comment.
10328 (extension_language_ops): Add comment.
caf5a491 10329 (active_ext_lang_state): Fix typo in comment.
1a860409 10330
d137e6dc
PA
103312014-02-07 Pedro Alves <palves@redhat.com>
10332
0dcb32c3 10333 PR breakpoints/16292
d137e6dc
PA
10334 * infrun.c (handle_signal_stop) <signal arrives while stepping
10335 over a breakpoint>: Switch back to the stepping thread.
10336
ce6d0892
YQ
103372014-02-07 Yao Qi <yao@codesourcery.com>
10338
10339 * target.c (target_xfer_partial): Return zero if LEN is zero.
10340
2ed4b548
YQ
103412014-02-07 Yao Qi <yao@codesourcery.com>
10342
10343 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10344 (ld_so_xfer_auxv): Likewise.
10345 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10346 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10347 * corelow.c (core_xfer_partial): Likewise.
10348 * ctf.c (ctf_xfer_partial): Likewise.
10349 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10350 (darwin_xfer_partial): Likewise.
10351 * exec.c (exec_xfer_partial): Likewise.
10352 * gnu-nat.c (gnu_xfer_partial): Likewise.
10353 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10354 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10355 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10356 * linux-nat.c (linux_xfer_siginfo): Likewise.
10357 (linux_proc_xfer_spu): Likewise.
10358 * procfs.c (procfs_xfer_partial): Likewise.
10359 * record-full.c (record_full_xfer_partial): Likewise.
10360 (record_full_core_xfer_partial): Likewise.
10361 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10362 * remote.c (remote_write_qxfer): Likewise.
10363 (remote_write_qxfer, remote_read_qxfer): Likewise.
10364 (remote_xfer_partial): Likewise.
10365 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10366 (rs6000_xfer_shared_libraries): Likewise.
10367 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10368 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10369 (spu_xfer_partial): Likewise.
10370 * target.c (memory_xfer_partial_1): Likewise.
10371 * tracepoint.c (tfile_xfer_partial): Likewise.
10372 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10373 (windows_xfer_partial): Likewise.
10374
c09f20e4
YQ
103752014-02-07 Yao Qi <yao@codesourcery.com>
10376
10377 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10378 comments.
10379 (core_xfer_shared_libraries_aix): Likewise.
10380 * gdbarch.c, gdbarch.h: Regenerated.
10381 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10382 ULONGEST. Change 'len_avail' type to ULONGEST.
10383 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10384 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10385 declaration.
10386 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10387
8635b3bf
YQ
103882014-02-07 Yao Qi <yao@codesourcery.com>
10389
10390 * corefile.c (memory_error): Get 'exception' from ERR and pass
10391 'exception' to throw_error.
10392
6dddc817
DE
103932014-02-06 Doug Evans <xdje42@gmail.com>
10394
10395 * configure.ac (libpython checking): Remove all but python.o from
10396 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10397 * configure: Regenerate.
10398
10399 * Makefile.in (SFILES): Add extension.c.
10400 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10401 (COMMON_OBS): Add extension.o.
10402 * extension.h: New file.
10403 * extension-priv.h: New file.
10404 * extension.c: New file.
10405
10406 * python/python-internal.h: #include "extension.h".
10407 (gdbpy_auto_load_enabled): Declare.
10408 (gdbpy_apply_val_pretty_printer): Declare.
10409 (gdbpy_apply_frame_filter): Declare.
10410 (gdbpy_preserve_values): Declare.
10411 (gdbpy_breakpoint_cond_says_stop): Declare.
10412 (gdbpy_breakpoint_has_cond): Declare.
10413 (void source_python_script_for_objfile): Delete.
10414 * python/python.c: #include "extension-priv.h".
10415 Delete inclusion of "observer.h".
10416 (extension_language_python): Moved here and renamed from
10417 script_language_python in py-auto-load.c.
10418 Redefined to be of type extension_language_defn.
10419 (python_extension_script_ops): New global.
10420 (python_extension_ops): New global.
10421 (struct python_env): New member previous_active.
10422 (restore_python_env): Call restore_active_ext_lang.
10423 (ensure_python_env): Call set_active_ext_lang.
10424 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10425 New arg extlang.
10426 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10427 New arg extlang.
10428 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10429 New arg extlang.
10430 (gdbpy_eval_from_control_command): Renamed from
10431 eval_python_from_control_command, made static. New arg extlang.
10432 (gdbpy_source_script) Renamed from source_python_script, made static.
10433 New arg extlang.
10434 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10435 result to int. New arg extlang.
10436 (gdbpy_source_objfile_script): Renamed from
10437 source_python_script_for_objfile, made static. New arg extlang.
10438 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10439 static. New args extlang, extlang_printers. Change result type to
10440 "void".
10441 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10442 static. New arg extlang. Rename arg printers to extlang_printers
10443 and change type to ext_lang_type_printers *.
10444 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10445 static. Replace argument arg with extlang, extlang_printers.
10446 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10447 (!HAVE_PYTHON, source_python_script): Delete.
10448 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10449 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10450 (!HAVE_PYTHON, start_type_printers): Delete.
10451 (!HAVE_PYTHON, apply_type_printers): Delete.
10452 (!HAVE_PYTHON, free_type_printers): Delete.
10453 (_initialize_python): Delete call to observer_attach_before_prompt.
10454 (finalize_python): Set/restore active extension language.
10455 (gdbpy_finish_initialization) Renamed from
10456 finish_python_initialization, made static. New arg extlang.
10457 (gdbpy_initialized): New function.
10458 * python/python.h: #include "extension.h". Delete #include
10459 "value.h", "mi/mi-cmds.h".
10460 (extension_language_python): Declare.
10461 (GDBPY_AUTO_FILE_NAME): Delete.
10462 (enum py_bt_status): Moved to extension.h and renamed to
10463 ext_lang_bt_status.
10464 (enum frame_filter_flags): Moved to extension.h.
10465 (enum py_frame_args): Moved to extension.h and renamed to
10466 ext_lang_frame_args.
10467 (finish_python_initialization): Delete.
10468 (eval_python_from_control_command): Delete.
10469 (source_python_script): Delete.
10470 (apply_val_pretty_printer): Delete.
10471 (apply_frame_filter): Delete.
10472 (preserve_python_values): Delete.
10473 (gdbpy_script_language_defn): Delete.
10474 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10475 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10476
10477 * auto-load.c: #include "extension.h".
10478 (GDB_AUTO_FILE_NAME): Delete.
10479 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10480 (script_language_gdb): Delete, moved to extension.c and renamed to
10481 extension_language_gdb.
10482 (source_gdb_script_for_objfile): Delete.
10483 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10484 (loaded_script): Change type of language member to
10485 struct extension_language_defn *.
10486 (init_loaded_scripts_info): Initialize
10487 unsupported_script_warning_printed.
10488 (maybe_add_script): Make static. Change type of language arg to
10489 struct extension_language_defn *.
10490 (clear_section_scripts): Reset unsupported_script_warning_printed.
10491 (auto_load_objfile_script_1): Rewrite to use extension language API.
10492 (auto_load_objfile_script): Make public. Remove support-compiled-in
10493 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10494 (source_section_scripts): Rewrite to use extension language API.
10495 (load_auto_scripts_for_objfile): Rewrite to use
10496 auto_load_scripts_for_objfile.
10497 (collect_matching_scripts_data): Change type of language member to
10498 struct extension_language_defn *.
10499 (auto_load_info_scripts): Change type of language arg to
10500 struct extension_language_defn *.
10501 (unsupported_script_warning_print): New function.
10502 (script_not_found_warning_print): Make static.
10503 (_initialize_auto_load): Rewrite construction of scripts-directory
10504 help.
10505 * auto-load.h (struct objfile): Add forward decl.
10506 (struct script_language): Delete.
10507 (struct auto_load_pspace_info): Add forward decl.
10508 (struct extension_language_defn): Add forward decl.
10509 (maybe_add_script): Delete.
10510 (auto_load_objfile_script): Declare.
10511 (script_not_found_warning_print): Delete.
10512 (auto_load_info_scripts): Update prototype.
10513 (auto_load_gdb_scripts_enabled): Declare.
10514 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10515 auto_load_python_scripts_enabled and made public.
10516 (script_language_python): Delete, moved to python.c.
10517 (gdbpy_script_language_defn): Delete.
10518 (info_auto_load_python_scripts): Update to use
10519 extension_language_python.
10520
10521 * breakpoint.c (condition_command): Replace call to
10522 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10523 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10524 with call to breakpoint_ext_lang_cond_says_stop.
10525 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10526 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10527 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10528 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10529 New arg slang.
10530 (local_setattro): Print name of extension language with existing
10531 stop condition.
10532
10533 * valprint.c (val_print, value_print): Update to call
10534 apply_ext_lang_val_pretty_printer.
10535 * cp-valprint.c (cp_print_value): Update call to
10536 apply_ext_lang_val_pretty_printer.
10537 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10538 (gdbpy_apply_val_pretty_printer): Renamed from
10539 apply_val_pretty_printer. New arg extlang.
10540 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10541
10542 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10543 extension language API.
10544 * cli/cli-script.c (execute_control_command): Update to call
10545 eval_ext_lang_from_control_command.
10546
10547 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10548 enum ext_lang_bt_status values. Update call to
10549 apply_ext_lang_frame_filter.
10550 (mi_cmd_stack_list_locals): Ditto.
10551 (mi_cmd_stack_list_args): Ditto.
10552 (mi_cmd_stack_list_variables): Ditto.
10553 * mi/mi-main.c: Delete #include "python/python-internal.h".
10554 Add #include "extension.h".
10555 (mi_cmd_list_features): Replace reference to python internal variable
10556 gdb_python_initialized with call to ext_lang_initialized_p.
10557
10558 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10559 Update to use enum ext_lang_frame_args. Update to call
10560 apply_ext_lang_frame_filter.
10561 * python/py-framefilter.c (extract_sym): Update to use enum
10562 ext_lang_bt_status.
10563 (extract_value, py_print_type, py_print_value): Ditto.
10564 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10565 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10566 (py_print_frame): Ditto.
10567 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10568 New arg extlang. Update to use enum ext_lang_bt_status.
10569
10570 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10571 finish_python_initialization. Replace with call to
10572 finish_ext_lang_initialization.
10573
10574 * typeprint.c (do_free_global_table): Update to call
10575 free_ext_lang_type_printers.
10576 (create_global_typedef_table): Update to call
10577 start_ext_lang_type_printers.
10578 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10579 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10580 (type_print_options): Change type of global_printers from "void *"
10581 to "struct ext_lang_type_printers *".
10582
10583 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10584 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10585 (gdbpy_preserve_values): Renamed from preserve_python_values.
10586 New arg extlang.
10587 (!HAVE_PYTHON, preserve_python_values): Delete.
10588
10589 * utils.c (quit_flag): Delete, moved to extension.c.
10590 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10591 extension.c.
10592
10593 * eval.c: Delete #include "python/python.h".
10594 * main.c: Delete #include "python/python.h".
10595
10596 * defs.h: Update comment.
10597
6af79985
JB
105982014-02-06 Joel Brobecker <brobecker@adacore.com>
10599
10600 GDB 7.7 released.
10601
12c5175d
MK
106022014-02-05 Mark Kettenis <kettenis@gnu.org>
10603
10604 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10605 defined.
10606
8dc5b319
YQ
106072014-02-05 Yao Qi <yao@codesourcery.com>
10608
10609 * remote.c (remote_pass_signals): Remove local 'buf' and use
10610 rs->buf.
10611 (remote_program_signals): Likewise.
10612
de7b2893
YQ
106132014-02-05 Yao Qi <yao@codesourcery.com>
10614
10615 * ctf.c: Include "inferior.h" and "gdbthread.h".
10616 (CTF_PID): A new macro.
10617 (ctf_open): Call inferior_appeared and add_thread_silent.
10618 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10619 (ctf_thread_alive): New function.
10620 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10621
66d032ac
YQ
106222014-02-05 Yao Qi <yao@codesourcery.com>
10623
10624 Revert this patch:
10625
10626 2013-05-24 Yao Qi <yao@codesourcery.com>
10627
10628 * tracepoint.c (TFILE_PID): Remove.
10629 (tfile_open): Don't add thread and inferior.
10630 (tfile_close): Don't set 'inferior_ptid'. Don't call
10631 exit_inferior_silent.
10632 (tfile_thread_alive): Remove.
10633 (init_tfile_ops): Don't set field 'to_thread_alive' of
10634 tfile_ops.
10635
f4ccffad
CE
106362014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10637
10638 * remote.c (remote_start_remote): Call remote_check_symbols even
10639 if only symbol-file (not file) has been given.
10640
591a12a1
UW
106412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10642
10643 * gdbarch.sh (skip_entrypoint): New callback.
10644 * gdbarch.c, gdbarch.h: Regenerate.
10645 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10646 * infrun.c (fill_in_stop_func): Likewise.
10647 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10648 (ppc_elfv2_elf_make_msymbol_special): New function.
10649 (ppc_elfv2_skip_entrypoint): Likewise.
10650 (ppc_linux_init_abi): Install them for ELFv2.
10651
cc0e89c5
UW
106522014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10653
10654 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10655 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10656 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10657 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10658 structures returned in GPRs.
10659
52f548e4
UW
106602014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10661
10662 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10663 offset to the stack parameter list for the ELFv2 ABI.
10664
d4094b6a
UW
106652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10666
10667 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10668 set_gdbarch_convert_from_func_ptr_addr and
10669 set_gdbarch_elf_make_msymbol_special for ELFv1.
10670 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10671 function descriptors on ELFv1.
10672 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10673 set up r12 at function entry.
10674
cd453cd0
UW
106752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10676
10677 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10678 (struct gdbarch_tdep): New member elf_abi.
10679
10680 * rs6000-tdep.c: Include "elf/ppc64.h".
10681 (rs6000_gdbarch_init): Detect ELF ABI version.
10682
0ff3e01f
UW
106832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10684
10685 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10686 within a register pair holding a DFP 128-bit value on little-endian.
10687 (ppc64_sysv_abi_return_value_base): Likewise.
10688 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10689 (dfp_pseudo_register_write): Likewise.
10690
5b757e5d
UW
106912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10692
10693 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10694 offset on little-endian when passing _Decimal32.
10695 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10696
084ee545
UW
106972014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10698
10699 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10700 of the overlapped FP register within the VSX register on little-
10701 endian platforms.
10702 (efpr_pseudo_register_write): Likewise.
10703
d63167af
UW
107042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10705
10706 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10707 offset on little-endian when passing small structures.
10708
e765b44c
UW
107092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10710
10711 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10712 (struct ppc64_sysv_argpos): New data structure.
10713 (ppc64_sysv_abi_push_float): Remove.
10714 (ppc64_sysv_abi_push_val): New function.
10715 (ppc64_sysv_abi_push_integer): Likewise.
10716 (ppc64_sysv_abi_push_freg): Likewise.
10717 (ppc64_sysv_abi_push_vreg): Likewise.
10718 (ppc64_sysv_abi_push_param): Likewise.
10719 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10720 (ppc64_sysv_abi_return_value_base): New function.
10721 (ppc64_sysv_abi_return_value): Refactor to use it.
10722
36c24d95
UW
107232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10724
10725 * NEWS: Document new target powerpc64le-*-linux*.
10726
26fd9228
MK
107272014-02-04 Mark Kettenis <kettenis@gnu.org>
10728
10729 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10730 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10731 core dumps.
10732 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10733 register set used in ELF core dumps. Add floating-point register set.
10734
c5bb7362
KB
107352014-02-03 Kevin Buettner <kevinb@redhat.com>
10736
74228e77 10737 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10738 dwarf2_to_gdb[] table using symbolic constants. Adjust
10739 penultimate entry from number representing the PC register
10740 to symbolic constant representing the MDR register. Add
10741 constant for the PC register to the end of the table.
10742
af09351e
MK
107432014-02-03 Mark Kettenis <kettenis@gnu.org>
10744
10745 * bsd-kvm.c: Include <sys/param.h>
10746
8507e05d
MK
107472014-02-03 Mark Kettenis <kettenis@gnu.org>
10748
10749 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10750
ae56bfb8
JB
107512014-01-31 Joel Brobecker <brobecker@adacore.com>
10752
10753 * ada-lang.h (clear_ada_sym_cache): Delete.
10754
718ee4dc
UW
107552014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10756
10757 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10758
401e27fd
JM
107592014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10760
10761 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10762 the sigreturn register save area only if the syscall is
10763 sigreturn.
10764
a7c88acd
JB
107652014-01-29 Joel Brobecker <brobecker@adacore.com>
10766
10767 * valops.c (value_slice): Minor reformatting.
10768
fa0079ea
UW
107692014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10770
10771 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10772
c6044dd1
JB
107732014-01-28 Joel Brobecker <brobecker@adacore.com>
10774
10775 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10776 New static globals.
10777 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10778 (ada_ignore_descriptive_types_p): New static global.
10779 (find_parallel_type_by_descriptive_type): Return immediately
10780 if ada_ignore_descriptive_types_p is set.
10781 (_initialize_ada_language): Register new commands "maintenance
10782 set ada", "maintenance show ada", "maintenance set ada
10783 ignore-descriptive-types" and "maintenance show ada
10784 ignore-descriptive-types".
10785 * NEWS: Add entry for new "maint ada set/show
10786 ignore-descriptive-types" commands.
10787
568e808b
MM
107882014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10789
10790 * record-btrace.c (record_btrace_close): Call btrace_teardown
10791 for all threads.
10792
467d141b
JB
107932014-01-27 Joel Brobecker <brobecker@adacore.com>
10794
10795 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10796 "ui-out.h".
10797
fb151210
JB
107982014-01-27 Joel Brobecker <brobecker@adacore.com>
10799
10800 * ada-typeprint (type_is_full_subrange_of_target_type):
10801 New function.
10802 (print_range): Add parameter bounds_prefered_p. If not set,
10803 try printing range types using the name of their base type.
10804 (print_range_type): Add parameter bounds_prefered_p.
10805 Use it in call to print_range.
10806 (print_array_type, ada_print_type): Update calls to print_range
10807 and print_range_type.
10808
aba02109
JB
108092014-01-27 Joel Brobecker <brobecker@adacore.com>
10810
10811 * ada-typeprint.c (print_array_type, print_choices, print_range)
10812 (print_range_bound, print_dynamic_range_bound, print_range_type):
10813 Remove declaration.
10814
e62e21fd
JB
108152014-01-27 Joel Brobecker <brobecker@adacore.com>
10816
10817 * ada-typeprint.c (print_range): Add missing empty line
10818 after local declaration.
10819
859cf5d1
JB
108202014-01-27 Joel Brobecker <brobecker@adacore.com>
10821
10822 * ada-valprint.c (print_optional_low_bound): Get index_type's
10823 target type for as long as it is a TYPE_CODE_RANGE.
10824
25790f6f
JB
108252014-01-27 Joel Brobecker <brobecker@adacore.com>
10826
10827 * procfs.c (procfs_make_note_section): Remove assertion and
10828 associated comment.
10829
6b6aa828
YQ
108302014-01-24 Yao Qi <yao@codesourcery.com>
10831
10832 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10833 * corelow.c (get_core_siginfo): Likewise.
10834
5d6df423
YQ
108352014-01-24 Yao Qi <yao@codesourcery.com>
10836
10837 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10838 ULONGEST. Don't check 'len' is negative.
10839 (remote_write_bytes): Change type of 'len' to ULONGEST.
10840
83b645b8
TT
108412014-01-23 Tom Tromey <tromey@redhat.com>
10842
10843 PR python/16485:
10844 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10845 Handle exception from frame.block.
10846 (FrameVars.fetch_frame_locals): Likewise.
10847
0740f8d8
TT
108482014-01-23 Tom Tromey <tromey@redhat.com>
10849
10850 PR python/16487:
10851 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10852 on a NULL pointer. Move "goto error" to correct place.
10853
21909fa1
TT
108542014-01-23 Tom Tromey <tromey@redhat.com>
10855
10856 PR python/16491:
10857 * python/py-framefilter.c (apply_frame_filter): Call
10858 ensure_python_env after computing gdbarch.
10859
17fde6d0
YQ
108602014-01-23 Yao Qi <yao@codesourcery.com>
10861
10862 * target.c (raw_memory_xfer_partial): Change argument type
10863 from void * to gdb_byte *.
10864 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10865
87ce2a04
DE
108662014-01-22 Doug Evans <dje@google.com>
10867
10868 New gdbserver option --debug-format=timestamp.
10869 * NEWS: Mention it.
10870
237b092b
AA
108712014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10872
10873 * syscalls/s390x-linux.xml: New file.
10874 * syscalls/s390-linux.xml: New file.
10875 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10876 (XML_SYSCALL_FILENAME_S390X): Likewise.
10877 (op_svc): New enum value for SVC opcode.
10878 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10879 (s390_linux_get_syscall_number): New function.
10880 (s390_gdbarch_init): Register '*get_syscall_number' and the
10881 syscall xml file name.
10882 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10883 "s390-linux.xml" and "s390x-linux.xml".
10884 * NEWS: Announce new feature.
10885
54bff650
BS
108862014-01-22 Baruch Siach <baruch@tkos.co.il>
10887
10888 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10889
14e361d7
PA
108902014-01-22 Pedro Alves <palves@redhat.com>
10891
10892 * xtensa-config.c: Include defs.h.
10893
46bbb3ed
JB
108942014-01-22 Joel Brobecker <brobecker@adacore.com>
10895
10896 * common/common-utils.h: Add "ARI:" comment beside __func__
10897 reference.
10898
3a80edfc
JB
108992014-01-22 Joel Brobecker <brobecker@adacore.com>
10900
10901 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10902 documentation a bit.
10903
4869db5e
RM
109042014-01-21 Roland McGrath <mcgrathr@google.com>
10905
10906 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10907 * configure: Regenerate.
10908 * aclocal.m4: Regenerate.
10909 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10910 New substituted variables.
10911 (install-strip): New target.
10912 (INSTALL_SCRIPT): New substituted variable.
10913 (FLAGS_TO_PASS): Add it.
10914 (install-only): Use $(INSTALL_SCRIPT) rather than
10915 $(INSTALL_PROGRAM) for gcore.
10916
9ea4267d
TT
109172014-01-20 Tom Tromey <tromey@redhat.com>
10918
10919 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10920 together.
10921
1f2bdf09
TT
109222014-01-20 Tom Tromey <tromey@redhat.com>
10923
10924 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10925 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10926 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10927 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10928 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10929 (struct cmd_list_element) <flags>: Remove.
10930 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10931 doc_allocated>: New fields.
10932 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10933 bitfields.
10934 * maint.c (maintenance_do_deprecate): Update.
10935 * top.c (execute_command): Update.
10936
e671835b
BS
109372014-01-20 Baruch Siach <baruch@tkos.co.il>
10938
10939 * xtensa-linux-nat.c: Include asm/ptrace.h.
10940
50367cd2
IB
109412014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10942
10943 * Makefile.in (SFILES): Add d-support.c.
10944 (COMMON_OBS): Add d-support.o.
10945 * d-lang.h (d_parse_symbol): Add comment, now defined in
10946 d-support.c.
10947 * d-lang.c (parse_call_convention)
10948 (parse_attributes, parse_function_types)
10949 (parse_function_args, parse_type, parse_identifier)
10950 (call_convention_p, d_parse_symbol): Move functions to ...
10951 * d-support.c: ... New file.
10952
ec9f644a
IB
109532014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10954
10955 * d-lang.h (d_parse_symbol): Add declaration.
10956 * d-lang.c (extract_identifiers)
10957 (extract_type_info): Remove functions.
10958 (parse_call_convention, parse_attributes)
10959 (parse_function_types, parse_function_args)
10960 (parse_type, parse_identifier, call_convention_p)
10961 (d_parse_symbol): New functions.
10962 (d_demangle): Use d_parse_symbol to demangle D symbols.
10963
94b1b47e
IB
109642014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10965
10966 * d-lang.h (struct builtin_d_type): New data type.
10967 (builtin_d_type): Add declaration.
10968 * d-lang.c (d_language_arch_info, build_d_types)
10969 (builtin_d_type): New functions.
10970 (enum d_primitive_types): New data type.
10971 (d_language_defn): Change c_language_arch_info to
10972 d_language_arch_info.
10973 (d_type_data): New static variable.
10974 (_initialize_d_language): Initialize d_type_data.
10975
63778547
IB
109762014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10977
10978 * d-lang.h (d_main_name): Add declaration.
10979 * d-lang.c (d_main_name): New function.
10980 * symtab.c (find_main_name): Add call to d_main_name.
10981
3271ba66
IB
109822014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10983
10984 * d-lang.c (d_language_defn): Change macro_expansion_c to
10985 macro_expansion_no.
10986
d36b3012
IB
109872014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10988
10989 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10990
c90a6fb7
SDJ
109912014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10992
10993 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10994 gdb_exception" declaration.
10995 * remote.c (getpkt_or_notif_sane): Likewise.
10996
749234e5
DE
109972014-01-17 Doug Evans <dje@google.com>
10998
10999 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11000 function, contents of dirnames_to_char_ptr_vec_append moved here.
11001 (delim_string_to_char_ptr_vec): New function.
11002 (dirnames_to_char_ptr_vec_append): Rewrite.
11003 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11004
df049a58
DE
110052014-01-17 Doug Evans <dje@google.com>
11006
11007 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11008 and moved here ...
11009 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11010 #include "common-utils.h".
11011 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11012 * common/vec.h (VEC_ASSERT_PASS): Update.
11013 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11014 (MACH_CHECK_ERROR): Update.
11015
69f97648
SM
110162014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11017
11018 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11019 comments.
11020 * gdbarch.h: Regenerate.
11021
98b1cfdc
TT
110222014-01-16 Tom Tromey <tromey@redhat.com>
11023
11024 * value.c (struct value) <regnum>: Move earlier.
11025
77a19445
TT
110262014-01-16 Tom Tromey <tromey@redhat.com>
11027
11028 * remote.c (extended_remote_create_inferior): Rename from
11029 extended_remote_create_inferior_1. Add "ops" argument. Remove
11030 old implementation.
11031
62261490
PA
110322014-01-16 Pedro Alves <palves@redhat.com>
11033
11034 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11035 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11036 the backchain.
11037
4d65956b
DE
110382014-01-16 Doug Evans <dje@google.com>
11039
11040 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11041
52834460
MM
110422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11043
11044 * btrace.h (btrace_thread_flag): New.
11045 (struct btrace_thread_info) <flags>: New.
11046 * record-btrace.c (record_btrace_resume_thread)
11047 (record_btrace_find_thread_to_move, btrace_step_no_history)
11048 (btrace_step_stopped, record_btrace_start_replaying)
11049 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11050 (record_btrace_find_resume_thread): New.
11051 (record_btrace_resume, record_btrace_wait): Extend.
11052 (record_btrace_can_execute_reverse): New.
11053 (record_btrace_open): Fail in non-stop mode.
11054 (record_btrace_set_replay): Split into this, ...
11055 (record_btrace_stop_replaying): ... this, ...
11056 (record_btrace_clear_histories): ... and this.
11057 (init_record_btrace_ops): Init to_can_execute_reverse.
11058 * NEWS: Announce it.
11059
118e6252
MM
110602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11061
11062 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11063 (forward_target_decr_pc_after_break)
11064 (target_decr_pc_after_break): New.
11065 * target.c (forward_target_decr_pc_after_break)
11066 (target_decr_pc_after_break): New.
11067 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11068 instead of gdbarch_decr_pc_after_break.
11069 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11070 instead of gdbarch_decr_pc_after_break.
11071 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11072 instead of gdbarch_decr_pc_after_break.
11073 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11074 instead of gdbarch_decr_pc_after_break.
11075 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11076 instead of gdbarch_decr_pc_after_break.
11077 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11078 instead of gdbarch_decr_pc_after_break.
11079
6e07b1d2
MM
110802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11081
11082 * btrace.c: Include regcache.h.
11083 (btrace_add_pc): New.
11084 (btrace_enable): Call btrace_add_pc.
11085 (btrace_is_empty): New.
11086 * btrace.h (btrace_is_empty): New.
11087 * record-btrace.c (require_btrace, record_btrace_info): Call
11088 btrace_is_empty.
11089
969c39fb
MM
110902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11091
11092 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11093 Support delta reads.
11094 (linux_disable_btrace): Change return type.
11095 * common/linux-btrace.h (linux_read_btrace): Change parameters
11096 and return type to allow error reporting. Update users.
11097 (linux_disable_btrace): Change return type. Update users.
11098 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11099 New.
11100 (btrace_error): New.
11101 (btrace_block) <begin>: Comment on BEGIN == 0.
11102 * btrace.c (btrace_compute_ftrace): Start from the end of
11103 the current trace.
11104 (btrace_stitch_trace, btrace_clear_history): New.
11105 (btrace_fetch): Read delta trace, return if replaying.
11106 (btrace_clear): Move clear history code to btrace_clear_history.
11107 (parse_xml_btrace): Throw an error if parsing failed.
11108 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11109 and return type to allow error reporting.
11110 (target_read_btrace): Change parameters and return type to allow
11111 error reporting.
11112 * target.c (target_read_btrace): Update.
11113 * remote.c (remote_read_btrace): Support delta reads. Pass
11114 errors on.
11115 * NEWS: Announce it.
11116
0b722aec
MM
111172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11118
11119 * record.h (record_btrace_frame_unwind)
11120 (record_btrace_tailcall_frame_unwind): New declarations.
11121 * dwarf2-frame: Include record.h
11122 (dwarf2_frame_cfa): Throw an error for btrace frames.
11123 * record-btrace.c: Include hashtab.h.
11124 (btrace_get_bfun_name): New.
11125 (btrace_call_history): Call btrace_get_bfun_name.
11126 (struct btrace_frame_cache): New.
11127 (bfcache): New.
11128 (bfcache_hash, bfcache_eq, bfcache_new): New.
11129 (btrace_get_frame_function): New.
11130 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11131 (record_btrace_frame_this_id): Compute own id.
11132 (record_btrace_frame_prev_register): Provide PC, throw_error
11133 for all other registers.
11134 (record_btrace_frame_sniffer): Detect btrace frames.
11135 (record_btrace_tailcall_frame_sniffer): New.
11136 (record_btrace_frame_dealloc_cache): New.
11137 (record_btrace_frame_unwind): Add new functions.
11138 (record_btrace_tailcall_frame_unwind): New.
11139 (_initialize_record_btrace): Allocate cache.
11140 * btrace.c (btrace_clear): Call reinit_frame_cache.
11141 * NEWS: Announce it.
11142
066ce621
MM
111432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11144
11145 * record-btrace.c (record_btrace_set_replay)
11146 (record_btrace_goto_begin, record_btrace_goto_end)
11147 (record_btrace_goto): New.
11148 (init_record_btrace_ops): Initialize them.
11149 * NEWS: Announce it.
11150
e2887aa3
MM
111512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11152
11153 * record-btrace.c (record_btrace_find_new_threads)
11154 (record_btrace_thread_alive): New.
11155 (init_record_btrace_ops): Initialize to_find_new_threads and
11156 to_thread_alive.
11157
b2f4cfde
MM
111582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11159
11160 * record-btrace.c (record_btrace_resume): New.
11161 (record_btrace_wait): New.
11162 (init_record_btrace_ops): Initialize to_wait and to_resume.
11163
633785ff
MM
111642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11165
11166 * record-btrace.c (record_btrace_xfer_partial)
11167 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11168 (record_btrace_allow_memory_access): New.
11169 (init_record_btrace_ops): Initialize new methods.
11170 * target.c (raw_memory_xfer_partial): Bail out if target reports
11171 that this memory is not available.
11172
3db08215
MM
111732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11174
11175 * target.h (target_ops) <to_insert_breakpoint>
11176 <to_remove_breakpoint>: Add target_ops parameter.
11177 (forward_target_insert_breakpoint): New.
11178 (forward_target_remove_breakpoint): New.
11179 (memory_remove_breakpoint, memory_insert_breakpoint):
11180 Add target_ops parameter.
11181 * target.c (target_insert_breakpoint): Split into this and ...
11182 (forward_target_insert_breakpoint): ... this.
11183 (target_remove_breakpoint): Split into this and ...
11184 (forward_target_remove_breakpoint): ... this.
11185 (debug_to_insert_breakpoint): Add target_ops parameter.
11186 Call forward_target_insert_breakpoint.
11187 (debug_to_remove_breakpoint): Add target_ops parameter.
11188 Call forward_target_remove_breakpoint.
11189 (update_current_target): Do not inherit or default to_insert_breakpoint
11190 and to_remove_breakpoint.
11191 * corelow.c (ignore): Add target_ops parameter.
11192 * exec.c (ignore): Add target_ops parameter.
11193 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11194 Add target_ops parameter.
11195 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11196 Add target_ops parameter.
11197 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11198 Add target_ops parameter.
11199 * record-full.c (record_full_beneath_to_insert_breakpoint)
11200 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11201 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11202 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11203 (record_full_core_remove_breakpoint): Add target_ops parameter.
11204 Update users.
11205 (record_full_beneath_to_insert_breakpoint_ops)
11206 (record_full_beneath_to_remove_breakpoint_ops)
11207 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11208 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11209 tmp_to_remove_breakpoint_ops,
11210 record_full_beneath_to_insert_breakpoint_ops, and
11211 record_full_beneath_to_remove_breakpoint_ops.
11212 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11213 (m32r_remove_breakpoint): Add target_ops parameter.
11214 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11215 Add target_ops parameter.
11216 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11217 Add target_ops parameter.
11218
cecac1ab
MM
112192014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11220 Markus Metzger <markus.t.metzger@intel.com>
11221
11222 * record-btrace.c: Include frame-unwind.h.
11223 (record_btrace_frame_unwind_stop_reason)
11224 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11225 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11226 New.
11227 (init_record_btrace_ops): Install it.
11228
824344ca
MM
112292014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11230
11231 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11232 get_prev_frame_1.
11233
32261e52
MM
112342014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11235
11236 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11237 earlier.
11238
ea001bdc
MM
112392014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11240
11241 * frame-unwind.c: Include target.h.
11242 (frame_unwind_try_unwinder): New function with code from ...
11243 (frame_unwind_find_by_frame): ... here. New variable
11244 unwinder_from_target, call also target_get_unwinder)
11245 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11246 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11247 * target.h (struct target_ops): New fields to_get_unwinder and
11248 to_get_tailcall_unwinder.
11249 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11250
1f3ef581
MM
112512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11252
11253 * record-btrace.c (record_btrace_fetch_registers)
11254 (record_btrace_store_registers)
11255 (record_btrace_to_prepare_to_store): New.
11256 (init_record_btrace_ops): Add the above.
11257
f32dbf8c
MM
112582014-01-16 Tom Tromey <tromey@redhat.com>
11259
11260 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11261 * target.h (struct target_ops) <to_prepare_to_store>: Add
11262 argument.
11263 (target_prepare_to_store): Add argument.
11264 * target.c (debug_to_prepare_to_store): Add argument.
11265 (update_current_target): Update.
11266 * remote.c (remote_prepare_to_store): Add 'self' argument.
11267 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11268 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11269 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11270 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11271 argument.
11272 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11273 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11274 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11275 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11276 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11277
07bbe694
MM
112782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11279
11280 * btrace.h (replay) <replay>: New.
11281 (btrace_is_replaying): New.
11282 * btrace.c (btrace_clear): Free replay iterator.
11283 (btrace_is_replaying): New.
11284 * record-btrace.c (record_btrace_is_replaying): New.
11285 (record_btrace_info): Print insn number if replaying.
11286 (record_btrace_insn_history): Start at replay position.
11287 (record_btrace_call_history): Start at replay position.
11288 (init_record_btrace_ops): Init to_record_is_replaying.
11289
0688d04e
MM
112902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11291
11292 * record-btrace.c (record_btrace_insn_history_range): Include
11293 end.
11294 (record_btrace_insn_history_from): Adjust range.
11295 (record_btrace_call_history_range): Include
11296 end.
11297 (record_btrace_call_history_from): Adjust range.
11298 * NEWS: Announce changes.
11299
8710b709
MM
113002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11301
11302 * record.h (enum record_print_flag)
11303 <record_print_indent_calls>: New.
11304 * record.c (get_call_history_modifiers): Recognize /c modifier.
11305 (_initialize_record): Document /c modifier.
11306 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11307 Reorder fields. Optionally indent the function name. Update
11308 all users.
11309 * NEWS: Announce changes.
11310
d0fa7535
MM
113112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11312
11313 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11314
5de9129b
MM
113152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11316
11317 * btrace.c (ftrace_new_function): Start counting at one.
11318 * record-btrace.c (record_btrace_info): Adjust number of calls
11319 and insns.
11320 * NEWS: Announce it.
11321
7acbe133
MM
113222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11323
11324 * record-btrace.c (btrace_call_history_insn_range): Print
11325 insn range as [begin, end].
11326
23a7fe75
MM
113272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11328
11329 * btrace.h (struct btrace_func_link): New.
11330 (enum btrace_function_flag): New.
11331 (struct btrace_inst): Rename to ...
11332 (struct btrace_insn): ...this. Update all users.
11333 (struct btrace_func) <ibegin, iend>: Remove.
11334 (struct btrace_func_link): New.
11335 (struct btrace_func): Rename to ...
11336 (struct btrace_function): ...this. Update all users.
11337 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11338 (number, level, flags>: New.
11339 (struct btrace_insn_iterator): Rename to ...
11340 (struct btrace_insn_history): ...this.
11341 Update all users.
11342 (struct btrace_insn_iterator, btrace_call_iterator): New.
11343 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11344 (struct btrace_target_info) <begin, end, level>
11345 <insn_history, call_history>: New.
11346 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11347 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11348 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11349 (btrace_call_number, btrace_call_begin, btrace_call_end)
11350 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11351 (btrace_find_function_by_number, btrace_set_insn_history)
11352 (btrace_set_call_history): New.
11353 * btrace.c (btrace_init_insn_iterator)
11354 (btrace_init_func_iterator, compute_itrace): Remove.
11355 (ftrace_print_function_name, ftrace_print_filename)
11356 (ftrace_skip_file): Change
11357 parameter to const.
11358 (ftrace_init_func): Remove.
11359 (ftrace_debug): Use new btrace_function fields.
11360 (ftrace_function_switched): Also consider gaining and
11361 losing symbol information).
11362 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11363 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11364 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11365 New.
11366 (ftrace_new_function): Move. Remove debug print.
11367 (ftrace_update_lines, ftrace_update_insns): New.
11368 (ftrace_update_function): Check for call, ret, and jump.
11369 (compute_ftrace): Renamed to ...
11370 (btrace_compute_ftrace): ...this. Rewritten to compute call
11371 stack.
11372 (btrace_fetch, btrace_clear): Updated.
11373 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11374 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11375 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11376 (btrace_call_number, btrace_call_begin, btrace_call_end)
11377 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11378 (btrace_find_function_by_number, btrace_set_insn_history)
11379 (btrace_set_call_history): New.
11380 * record-btrace.c (require_btrace): Use new btrace thread
11381 info fields.
11382 (record_btrace_info, btrace_insn_history)
11383 (record_btrace_insn_history, record_btrace_insn_history_range):
11384 Use new btrace thread info fields and new iterator.
11385 (btrace_func_history_src_line): Rename to ...
11386 (btrace_call_history_src_line): ...this. Use new btrace
11387 thread info fields.
11388 (btrace_func_history): Rename to ...
11389 (btrace_call_history): ...this. Use new btrace thread info
11390 fields and new iterator.
11391 (record_btrace_call_history, record_btrace_call_history_range):
11392 Use new btrace thread info fields and new iterator.
11393
8372a7cb
MM
113942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11395
11396 * frame.h (frame_id_build_unavailable_stack_special): New.
11397 * frame.c (frame_id_build_unavailable_stack_special): New.
11398
c2170eef
MM
113992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11400
11401 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11402 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11403 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11404 to gdbarch.
11405 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11406 (i386_insn_is_jump, i386_jmp_p): New.
11407 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11408 insn_is_jump to gdbarch.
11409 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11410 * gdbarch.h: Regenerated.
11411 * gdbarch.c: Regenerated.
11412 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11413 (default_insn_is_jump): New.
11414 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11415 (default_insn_is_jump): New.
11416
864089d2
MM
114172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11418
11419 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11420 Change to ...
11421 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11422 (btrace_read_type) <btrace_read_new>: Change to ...
11423 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11424
ed9edfb5
MM
114252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11426
11427 * common/linux-btrace.c (linux_read_btrace): Free trace from
11428 previous iteration.
11429
fbcbc3fd
DE
114302014-01-15 Doug Evans <dje@google.com>
11431
11432 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11433 uint32_t.
11434
3d548a53
TT
114352014-01-15 Tom Tromey <tromey@redhat.com>
11436
11437 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11438 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11439 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11440 (set_objfile_main_name): New function.
11441 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11442 language_of_main>: New fields.
11443 (set_objfile_main_name): Declare.
11444 * symtab.c (find_main_name): Loop over objfiles to find the main
11445 name and language.
11446 (set_main_name): Now static.
11447 (get_main_info): Add comment.
11448 * symtab.h (set_main_name): Don't declare.
11449
32ac0d11
TT
114502014-01-15 Tom Tromey <tromey@redhat.com>
11451
11452 * symtab.c (main_progspace_key): New global.
11453 (struct main_info): New.
11454 (name_of_main, language_of_main): Remove.
11455 (get_main_info, main_info_cleanup): New function.
11456 (set_main_name, main_name, main_language): Use get_main_info.
11457 (_initialize_symtab): Initialize main_progspace_key.
11458
9e6c82ad
TT
114592014-01-15 Tom Tromey <tromey@redhat.com>
11460
11461 * dbxread.c (process_one_symbol): Update.
11462 * dwarf2read.c (read_partial_die): Update.
11463 * symfile.c (set_initial_language): Call main_language.
11464 * symtab.c (language_of_main): Now static.
11465 (set_main_name): Add 'lang' parameter.
11466 (find_main_name): Update.
11467 (main_language): New function.
11468 (symtab_observer_executable_changed): Update.
11469 * symtab.h (set_main_name): Update.
11470 (language_of_main): Remove.
11471 (main_language): Declare.
11472
6ef55de7
TT
114732014-01-15 Tom Tromey <tromey@redhat.com>
11474
11475 * symfile.c (init_entry_point_info): Use new "initialized" field.
11476 Update.
11477 * objfiles.h (struct entry_point) <initialized>: New field.
11478 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11479 (struct objfile) <ei>: ...here. Remove.
11480 * objfiles.c (entry_point_address_query): Update.
11481
53eddfa6
TT
114822014-01-15 Tom Tromey <tromey@redhat.com>
11483
11484 * objfiles.c (entry_point_address_query): Relocate entry point
11485 address.
11486 (objfile_relocate1): Do not relocate entry point address.
11487 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11488 <the_bfd_section_index>: New field.
11489 * symfile.c (init_entry_point_info): Find the entry point's
11490 section.
11491
d56e56aa
TT
114922014-01-15 Tom Tromey <tromey@redhat.com>
11493
11494 * solib-frv.c (enable_break): Use entry_point_address_query.
11495
33a97bbe
OJ
114962014-01-15 Omair Javaid <omair.javaid@linaro.org>
11497
11498 * NEWS: Add note on improved process record-replay on
11499 arm*-linux* targets.
11500
c6ec2b30
OJ
115012014-01-15 Omair Javaid <omair.javaid@linaro.org>
11502
11503 * arm-tdep.c (enum arm_record_result): New enum.
11504 (arm_record_unsupported_insn): New function.
11505 (arm_record_coproc_data_proc): Removed.
11506 (thumb2_record_ld_st_multiple): New function.
11507 (thumb2_record_ld_st_dual_ex_tbb): New function.
11508 (thumb2_record_data_proc_sreg_mimm): New function.
11509 (thumb2_record_ps_dest_generic): New function.
11510 (thumb2_record_branch_misc_cntrl): New function.
11511 (thumb2_record_str_single_data): New function.
11512 (thumb2_record_ld_mem_hints): New function.
11513 (thumb2_record_ld_word): New function.
11514 (thumb2_record_lmul_lmla_div): New function.
11515 (thumb2_record_decode_insn_handler): New function.
11516 (decode_insn): Add thumb32 instruction handlers.
11517
97dfe206
OJ
115182014-01-15 Omair Javaid <omair.javaid@linaro.org>
11519
11520 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11521 (struct arm_linux_record_tdep): Declare.
11522 (arm_canonicalize_syscall): New function.
11523 (arm_all_but_pc_registers_record): New function.
11524 (arm_linux_syscall_record): New function.
11525 (arm_linux_init_abi): Add syscall recording constructs.
11526 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11527 decoding. (arm_record_coproc_data_proc): Update arm syscall
11528 decoding.
11529 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11530 <arm_syscall_record>: New field.
11531 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11532 gdb_target_obs.
11533
9904a494
OJ
115342014-01-15 Omair Javaid <omair.javaid@linaro.org>
11535
11536 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11537 register for push instruction recording.
11538
f969241e
OJ
115392014-01-15 Omair Javaid <omair.javaid@linaro.org>
11540
11541 * arm-tdep.c (thumb_record_misc): Update to correct logical
11542 error while recording ldm, ldmia and pop instructions.
11543
bfbbec00
OJ
115442014-01-15 Omair Javaid <omair.javaid@linaro.org>
11545
11546 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11547
e40adcc9
PA
115482014-01-15 Pedro Alves <palves@redhat.com>
11549
11550 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11551 (go32_resume, go32_fetch_registers, store_register)
11552 (go32_store_registers, go32_prepare_to_store)
11553 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11554 (go32_create_inferior, go32_can_run, go32_terminal_init)
11555 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11556 declarations.
11557
b0a16e66
TT
115582014-01-15 Tom Tromey <tromey@redhat.com>
11559
11560 * target.h (async_callback_ftype): New typedef.
11561 (struct target_ops) <to_async>: Use it.
11562
bf7105a4
JB
115632014-01-15 Joel Brobecker <brobecker@adacore.com>
11564
11565 * python/py-value.c (get_field_type): Remove unnecessary curly
11566 braces for single-statement if block.
11567
a8f35c2e
JB
115682014-01-15 Joel Brobecker <brobecker@adacore.com>
11569
11570 * python/py-type.c (convert_field): Add missing empty line
11571 after declarations.
11572
bb4142cf
DE
115732014-01-14 Doug Evans <dje@google.com>
11574
11575 * symfile.h (expand_symtabs_matching): Renamed from
11576 expand_partial_symbol_names. Update prototype.
11577 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11578 * symfile.c (expand_symtabs_matching): Renamed from
11579 expand_partial_symbol_names. New args file_matcher, kind.
11580 Rename arg fun to symbol_matcher.
11581 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11582 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11583 ada_expand_partial_symbol_name.
11584 (ada_make_symbol_completion_list): Update to call
11585 expand_symtabs_matching.
11586 (ada_add_global_exceptions): Call expand_symtabs_matching.
11587 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11588 call map_symbol_filenames.
11589 * symtab.c (sources_info): Update to call map_symbol_filenames.
11590 (search_symbols): Call expand_symtabs_matching.
11591 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11592 (default_make_symbol_completion_list_break_on): Update to call
11593 expand_symtabs_matching.
11594 (make_source_files_completion_list): Update to call
11595 map_symbol_filenames.
11596
206f2a57
DE
115972014-01-14 Doug Evans <dje@google.com>
11598
11599 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11600 (expand_symtabs_symbol_matcher_ftype): New typedef.
11601 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11602 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11603 * symfile.c (expand_partial_symbol_names): Update to use
11604 expand_symtabs_symbol_matcher_ftype.
11605 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11606 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11607 Arg name_matcher renamed to symbol_matcher.
11608 * psymtab.c (recursively_search_psymtabs): Update to use
11609 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11610 sym_matcher.
11611 (expand_symtabs_matching_via_partial): Update to use
11612 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11613 Arg name_matcher renamed to symbol_matcher.
11614
540c2971
DE
116152014-01-14 Doug Evans <dje@google.com>
11616
11617 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11618 (map_partial_symbol_filenames): Ditto.
11619 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11620 (map_partial_symbol_filenames): Ditto.
11621 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11622 (map_partial_symbol_filenames): Ditto.
11623 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11624 (map_partial_symbol_filenames): Ditto.
11625 * symtab.c: Delete #include "psymtab.h".
11626
8213266a
PA
116272014-01-14 Pedro Alves <palves@redhat.com>
11628 Tom Tromey <tromey@redhat.com>
11629
11630 * infrun.c (use_displaced_stepping): Use find_record_target
11631 instead of RECORD_IS_USED.
11632 (adjust_pc_after_break): Use record_full_is_used instead of
11633 RECORD_IS_USED.
11634 * record-btrace.c (record_btrace_open): Call record_preopen
11635 instead of checking RECORD_IS_USED.
11636 * record-full.c (record_full_shortname)
11637 (record_full_core_shortname): New globals.
11638 (record_full_is_used): New function.
11639 (find_full_open): Call record_preopen instead of checking
11640 RECORD_IS_USED.
11641 (init_record_full_ops): Set the target's shortname to
11642 record_full_shortname.
11643 (init_record_full_core_ops): Set the target's shortname to
11644 record_full_core_shortname.
11645 * record-full.h (record_full_is_used): Declare.
11646 * record.c (find_record_target): Make extern.
11647 (record_preopen): New function.
11648 * record.h (RECORD_IS_USED): Delete macro.
11649 (find_record_target, record_preopen): Declare functions.
11650
7ec1862d
YQ
116512014-01-14 Yao Qi <yao@codesourcery.com>
11652
11653 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11654 'len''s type to ULONGEST.
11655 (core_xfer_shared_libraries_aix): Likewise.
11656 * gdbarch.c, gdbarch.h: Regenerated.
11657 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11658 Change type of 'len' to ULONGEST.
11659 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11660 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11661
dea80a27
YQ
116622014-01-14 Yao Qi <yao@codesourcery.com>
11663
11664 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11665 type of 'len' to ULONGEST.
11666 (linux_xfer_osdata_processgroups): Likewise.
11667 (linux_xfer_osdata_threads): Likewise.
11668 (linux_xfer_osdata_fds): Likewise.
11669 (linux_xfer_osdata_isockets): Likewise.
11670 (linux_xfer_osdata_shm): Likewise.
11671 (linux_xfer_osdata_sem): Likewise.
11672 (linux_xfer_osdata_msg): Likewise.
11673 (linux_common_xfer_osdata): Likewise.
11674 (struct osdata_type) <getter>: Likewise.
11675 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11676 the declaration.
11677
b55e14c7
YQ
116782014-01-14 Yao Qi <yao@codesourcery.com>
11679
11680 * target.h (target_xfer_partial_ftype): Update.
11681 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11682 ULONGEST.
11683 * aix-thread.c (aix_thread_xfer_partial): Change type of
11684 argument 'len' to ULONGEST.
11685 * auxv.c (procfs_xfer_auxv): Likewise.
11686 (ld_so_xfer_auxv): Likewise.
11687 (memory_xfer_auxv): Likewise.
11688 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11689 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11690 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11691 * corelow.c (core_xfer_partial): Likewise.
11692 * ctf.c (ctf_xfer_partial): Likewise.
11693 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11694 '%u'.
11695 (darwin_read_dyld_info): Likewise.
11696 (darwin_xfer_partial): Likewise.
11697 * exec.c (section_table_xfer_memory_partial): Likewise.
11698 (exec_xfer_partial): Likewise.
11699 * exec.h (section_table_xfer_memory_partial): Update
11700 declaration.
11701 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11702 instead of plongest.
11703 (gnu_xfer_partial): Likewise.
11704 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11705 (ia64_hpux_xfer_solib_got): Likewise.
11706 (ia64_hpux_xfer_partial): Likewise.
11707 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11708 * inf-ptrace.c (inf_ptrace_xfer_partial):
11709 * inf-ttrace.c (inf_ttrace_xfer_partial):
11710 * linux-nat.c (linux_xfer_siginfo): Likewise.
11711 (linux_nat_xfer_partial): Likewise.
11712 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11713 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11714 * monitor.c (monitor_xfer_memory): Likewise.
11715 (monitor_xfer_partial): Likewise.
11716 * procfs.c (procfs_xfer_partial): Likewise.
11717 * record-full.c (record_full_xfer_partial): Likewise.
11718 (record_full_core_xfer_partial): Likewise.
11719 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11720 instead of plongest.
11721 (gdbsim_xfer_partial): Likewise.
11722 * remote.c (remote_xfer_partial): Likewise.
11723 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11724 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11725 declaration.
11726 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11727 (rs6000_xfer_shared_libraries): Likewise.
11728 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11729 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11730 (sparc_xfer_partial): Likewise.
11731 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11732 (spu_xfer_partial): Likewise.
11733 * spu-multiarch.c (spu_xfer_partial): Likewise.
11734 * target.c (target_read_live_memory): Likewise.
11735 (memory_xfer_live_readonly_partial): Likewise.
11736 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11737 (target_xfer_partial, default_xfer_partial): Likewise.
11738 (current_xfer_partial): Likewise.
11739 * tracepoint.c (tfile_xfer_partial): Likewise.
11740 * windows-nat.c (windows_xfer_memory): Likewise. Call
11741 pulongest instead of plongest.
11742 (windows_xfer_partial): Likewise.
11743 (windows_xfer_shared_libraries): Likewise.
11744
05804640
YQ
117452014-01-14 Yao Qi <yao@codesourcery.com>
11746
11747 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11748 target_xfer_partial_ftype.
11749
b5b08fb4
SC
117502014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11751
11752 PR python/15464
11753 PR python/16113
11754 * valops.c (value_struct_elt_bitpos): New function
11755 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11756 object to 'None' if the field name is an empty string ("").
11757 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11758 attribute to look for a field when 'name' is 'None'.
11759 (get_field_type): New function
11760
13aaf454
DE
117612014-01-13 Doug Evans <dje@google.com>
11762
11763 PR symtab/16426
11764 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11765 (try_open_dwop_file): Ditto.
11766 * gdb_bfd.c: #include "vec.h".
11767 (bfdp): New typedef.
11768 (struct gdb_bfd_data): New member included_bfds.
11769 (gdb_bfd_unref): Unref all included bfds.
11770 (gdb_bfd_record_inclusion): New function.
11771 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11772
c2cec97c
TT
117732014-01-13 Tom Tromey <tromey@redhat.com>
11774
11775 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11776
78e5999d
TT
117772014-01-13 Tom Tromey <tromey@redhat.com>
11778
11779 * defs.h (use_windows): Remove.
11780 * gdb.c (main): Update.
11781 * main.c (captured_main, gdb_main): Update.
11782 * main.h (struct captured_main_args) <use_windows>: Remove.
11783 * top.c (use_windows): Remove.
11784
f2052bbe
TT
117852014-01-13 Tom Tromey <tromey@redhat.com>
11786
11787 * defs.h (deprecated_flush_hook): Remove.
11788
fde4f8ed
JK
117892014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11790
11791 PR threads/16216
11792 * linux-thread-db.c (try_thread_db_load): Add parameter
11793 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11794 (try_thread_db_load_from_pdir_1): Move it there from here.
11795 (try_thread_db_load_from_sdir): Update caller.
11796 (try_thread_db_load_from_dir): Move it there from here.
11797
bdf61915
PP
117982014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11799
11800 * regformats/regdat.sh: Always rewrite the register file.
11801
f71e1a8d
PA
118022014-01-13 Pedro Alves <palves@redhat.com>
11803
11804 * Makefile.in (CHECK_HEADERS): New variable.
11805 (check-headers:): New rule.
11806
42c85435
TT
118072014-01-13 Tom Tromey <tromey@redhat.com>
11808
11809 * cli/cli-setshow.c (do_set_command): Update.
11810 * defs.h (deprecated_set_hook): Remove.
11811 * top.c (deprecated_set_hook): Remove.
11812
f8de5129
PA
118132014-01-13 Pedro Alves <palves@redhat.com>
11814
11815 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11816 the tracepoint if the PC is a pseudo-register.
11817
fc270c35
TT
118182014-01-13 Tom Tromey <tromey@redhat.com>
11819
11820 * defs.h (XCALLOC): Remove.
11821 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11822 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11823 * dwarf2loc.c (allocate_piece_closure): Likewise.
11824 * elfread.c (elf_symfile_segments): Likewise.
11825 (elf_symfile_segments): Likewise.
11826 * gdbtypes.c (copy_type_recursive): Likewise.
11827 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11828 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11829 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11830 XCALLOC.
11831 * mt-tdep.c (mt_gdbarch_init): Likewise.
11832 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11833 XCALLOC.
11834 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11835 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11836 * registry.c (registry_alloc_data): Likewise.
11837 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11838 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11839 * serial.c (serial_fdopen_ops): Likewise.
11840 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11841 XCALLOC.
11842 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11843 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11844 not XCALLOC.
11845
70ba0933
TT
118462014-01-13 Tom Tromey <tromey@redhat.com>
11847
11848 * defs.h (XMALLOC): Remove.
11849 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11850 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11851 * cli-out.c (struct ui_out *): Likewise.
11852 * cli/cli-dump.c (add_dump_command): Likewise.
11853 (add_dump_command): Likewise.
11854 * complaints.c (get_complaints): Likewise.
11855 (find_complaint): Likewise.
11856 * dwarf2-frame.c (execute_cfa_program): Likewise.
11857 * dwarf2read.c (abbrev_table_read_table): Likewise.
11858 * gdbarch.sh: Likewise.
11859 * gdbarch.c: Rebuild.
11860 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11861 * interps.c (interp_new): Likewise.
11862 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11863 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11864 * mi/mi-console.c (mi_console_file_new): Likewise.
11865 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11866 * mi/mi-out.c (mi_out_new): Likewise.
11867 * mi/mi-parse.c (mi_parse): Likewise.
11868 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11869 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11870 * observer.c (xalloc_observer_list_node): Likewise.
11871 * regcache.c (regcache_xmalloc_1): Likewise.
11872 * reggroups.c (reggroup_new): Likewise.
11873 (_initialize_reggroup): Likewise.
11874 * registry.c (register_data_with_cleanup): Likewise.
11875 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11876 * ser-base.c (serial_ttystate): Likewise.
11877 * ser-mingw.c (make_pipe_state): Likewise.
11878 * ser-pipe.c (pipe_open): Likewise.
11879 * serial.c (serial_open): Likewise.
11880 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11881 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11882 (tui_alloc_win_info): Likewise.
11883 (tui_add_content_elements): Likewise.
11884 * tui/tui-file.c (tui_file_new): Likewise.
11885 * tui/tui-out.c (tui_out_new): Likewise.
11886 * ui-file.c (mem_file_new): Likewise.
11887 * ui-out.c (push_level): Likewise.
11888 (make_cleanup_ui_out_end): Likewise.
11889 (append_header_to_list): Likewise.
11890 (ui_out_new): Likewise.
11891 * user-regs.c (user_reg_add_builtin): Likewise.
11892
41bf6aca
TT
118932014-01-13 Tom Tromey <tromey@redhat.com>
11894
11895 * defs.h (XZALLOC): Remove.
11896 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11897 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11898 (get_ada_tasks_inferior_data): Likewise.
11899 * auto-load.c (get_auto_load_pspace_data): Likewise.
11900 * auxv.c (get_auxv_inferior_data): Likewise.
11901 * bfd-target.c (target_bfd_reopen): Likewise.
11902 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11903 (deprecated_insert_raw_breakpoint): Likewise.
11904 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11905 * corelow.c (core_open): Likewise.
11906 * darwin-nat.c (darwin_check_new_threads): Likewise.
11907 (darwin_attach_pid): Likewise.
11908 * dummy-frame.c (dummy_frame_push): Likewise.
11909 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11910 * dwarf2loc.c (allocate_piece_closure): Likewise.
11911 * elfread.c (elf_symfile_segments): Likewise.
11912 * eval.c (ptrmath_type_p): Likewise.
11913 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11914 * gdbtypes.c (alloc_type_arch): Likewise.
11915 (alloc_type_instance): Likewise.
11916 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11917 * inf-child.c (inf_child_can_use_agent): Likewise.
11918 * inflow.c (get_inflow_inferior_data): Likewise.
11919 * infrun.c (save_infcall_suspend_state): Likewise.
11920 * jit.c (jit_reader_load): Likewise.
11921 (get_jit_objfile_data): Likewise.
11922 (get_jit_program_space_data): Likewise.
11923 (jit_object_open_impl): Likewise.
11924 (jit_symtab_open_impl): Likewise.
11925 (jit_block_open_impl): Likewise.
11926 (jit_frame_sniffer): Likewise.
11927 * linux-fork.c (add_fork): Likewise.
11928 * maint.c (make_command_stats_cleanup): Likewise.
11929 * objfiles.c (get_objfile_pspace_data): Likewise.
11930 * opencl-lang.c (struct lval_closure): Likewise.
11931 * osdata.c (osdata_start_osdata): Likewise.
11932 * progspace.c (new_address_space): Likewise.
11933 (add_program_space): Likewise.
11934 * remote-sim.c (get_sim_inferior_data): Likewise.
11935 * sh-tdep.c (sh_gdbarch_init): Likewise.
11936 * skip.c (Ignore): Likewise.
11937 (skip_delete_command): Likewise.
11938 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11939 (library_list_start_library): Likewise.
11940 (solib_aix_current_sos): Likewise.
11941 * solib-darwin.c (get_darwin_info): Likewise.
11942 (darwin_current_sos): Likewise.
11943 * solib-dsbt.c (get_dsbt_info): Likewise.
11944 * solib-ia64-hpux.c (new_so_list): Likewise.
11945 (ia64_hpux_get_solib_linkage_addr): Likewise.
11946 * solib-spu.c (append_ocl_sos): Likewise.
11947 (spu_current_sos): Likewise.
11948 * solib-svr4.c (get_svr4_info): Likewise.
11949 (svr4_keep_data_in_core): Likewise.
11950 (library_list_start_library): Likewise.
11951 (svr4_default_sos): Likewise.
11952 (svr4_read_so_list): Likewise.
11953 * solib-target.c (library_list_start_library): Likewise.
11954 (solib_target_current_sos): Likewise.
11955 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11956 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11957 * symfile.c (default_symfile_segments): Likewise.
11958 * target-descriptions.c (tdesc_data_init): Likewise.
11959 (tdesc_create_reg): Likewise.
11960 (struct tdesc_type *): Likewise.
11961 (tdesc_create_vector): Likewise.
11962 (tdesc_set_struct_size): Likewise.
11963 (struct tdesc_type *): Likewise.
11964 (tdesc_free_feature): Likewise.
11965 (tdesc_create_feature): Likewise.
11966 * windows-nat.c (windows_add_thread): Likewise.
11967 (windows_make_so): Likewise.
11968 * xml-support.c (gdb_xml_body_text): Likewise.
11969 (gdb_xml_create_parser_and_cleanup): Likewise.
11970 (xml_process_xincludes): Likewise.
11971 * xml-syscall.c (allocate_syscalls_info): Likewise.
11972 (syscall_create_syscall_desc): Likewise.
11973
5acfdbae
SDJ
119742014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11975
11976 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11977 function, with code from i386_stap_parse_special_token.
11978 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11979 (i386_stap_parse_special_token): Move code to the two functions
11980 above; simplify it.
11981
0000e5cc
PA
119822014-01-09 Pedro Alves <palves@redhat.com>
11983 Hui Zhu <hui@codesourcery.com>
11984
11985 PR gdb/16101
11986 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11987 bp_err_string. Don't mark the location shlib_disabled if the
11988 error thrown wasn't a generic or memory error. Catch errors
11989 thrown while inserting breakpoints in overlayed code. Output
11990 error message of software breakpoints.
11991 * remote.c (remote_insert_breakpoint): If this breakpoint has
11992 target-side commands but this stub doesn't support Z0 packets,
11993 throw NOT_SUPPORTED_ERROR error.
11994 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11995 * target.h (target_insert_breakpoint): Extend comment.
11996 (target_insert_hw_breakpoint): Add comment.
11997
b7ea362b
PA
119982014-01-08 Pedro Alves <palves@redhat.com>
11999
12000 * remote.c (remote_add_thread): Add threads silently if starting
12001 up.
12002 (remote_notice_new_inferior): If in all-stop, and starting up,
12003 don't call notice_new_inferior.
12004 (get_current_thread): New function, factored out from ...
12005 (add_current_inferior_and_thread): ... this. Adjust.
12006 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12007 found any thread, then select the remote's current thread as GDB's
12008 current thread too.
12009
b7bba001
JB
120102014-01-08 Joel Brobecker <brobecker@adacore.com>
12011
12012 * NEWS: Create a new section for the next release branch.
12013 Rename the section of the current branch, now that it has
12014 been cut.
12015
16dfbded
JB
120162014-01-08 Joel Brobecker <brobecker@adacore.com>
12017
12018 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12019 * version.in: Bump version to 7.7.50.DATE-cvs.
12020
22c90ac1
YQ
120212014-01-08 Yao Qi <yao@codesourcery.com>
12022
12023 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12024 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12025 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12026
d64ad97c
YQ
120272014-01-08 Yao Qi <yao@codesourcery.com>
12028
12029 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12030 return value of bfd_get_filename to symbol_file_add_from_bfd.
12031
f93ba80c
PM
120322014-01-08 Pierre Muller <muller@sourceware.org>
12033
12034 Fix PR16201.
12035 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12036 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12037 to prim_record_mininal_symbol_and_info.
12038 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12039 in call to prim_record_minimal_symbol_and_info.
12040 (read_pe_exported_syms): Set index field of section_data.
12041
a4d9ba85
AP
120422014-01-07 Andrew Pinski <apinski@cavium.com>
12043
12044 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12045 * features/aarch64.c: Regenerate.
12046
1b67eb02
AS
120472014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12048
12049 * target.c (return_null): Define.
12050 (update_current_target): Use it instead of return_zero for
12051 functions that return a pointer.
12052
5e3f4fab
EBM
120532014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12054
12055 * source.c (add_path): Fix check for duplicated paths in the previously
12056 included paths.
12057
e2616788
HK
120582014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12059
12060 * ada-lang.c: Remove duplicated include statements.
12061 * alphabsd-nat.c: Ditto.
12062 * amd64-darwin-tdep.c: Ditto.
12063 * amd64fbsd-nat.c: Ditto.
12064 * auto-load.c: Ditto.
12065 * ax-gdb.c: Ditto.
12066 * breakpoint.c: Ditto.
12067 * dbxread.c: Ditto.
12068 * fork-child.c: Ditto.
12069 * gdb_usleep.c: Ditto.
12070 * i386-darwin-tdep.c: Ditto.
12071 * i386fbsd-nat.c: Ditto.
12072 * infcmd.c: Ditto.
12073 * inferior.c: Ditto.
12074 * jv-lang.c: Ditto.
12075 * linux-nat.c: Ditto.
12076 * linux-tdep.c: Ditto.
12077 * m68kbsd-nat.c: Ditto.
12078 * m68klinux-nat.c: Ditto.
12079 * microblaze-tdep.c: Ditto.
12080 * mips-linux-tdep.c: Ditto.
12081 * mn10300-tdep.c: Ditto.
12082 * nto-tdep.c: Ditto.
12083 * opencl-lang.c: Ditto.
12084 * osdata.c: Ditto.
12085 * printcmd.c: Ditto.
12086 * regcache.c: Ditto.
12087 * remote-m32r-sdi.c: Ditto.
12088 * remote.c: Ditto.
12089 * symfile.c: Ditto.
12090 * symtab.c: Ditto.
12091 * tilegx-linux-nat.c: Ditto.
12092 * tilegx-tdep.c: Ditto.
12093 * tracepoint.c: Ditto.
12094 * valops.c: Ditto.
12095 * vaxbsd-nat.c: Ditto.
12096 * windows-nat.c: Ditto.
12097 * xtensa-tdep.c: Ditto.
12098
bd1f7788
YQ
120992014-01-07 Yao Qi <yao@codesourcery.com>
12100
12101 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12102
79301218
JB
121032014-01-07 Yao Qi <yao@codesourcery.com>
12104 Joel Brobecker <brobecker@adacore.com>
12105
12106 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12107 (pdc_write_regs): Likewise.
12108 (fetch_regs_kernel_thread): Likewise.
12109 (store_regs_kernel_thread): Likewise.
12110
121112014-01-07 Joel Brobecker <brobecker@adacore.com>
12112
12113 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12114 tagged type objects to their actual type.
12115
8e355c5d
JB
121162014-01-07 Joel Brobecker <brobecker@adacore.com>
12117
12118 * ada-valprint.c (print_field_values): Add "language" parameter.
12119 Update calls to print_field_values and print_variant_part.
12120 Pass new parameter "language" in call to val_print instead
12121 of "current_language". Replace call to ada_val_print by call
12122 to val_print.
12123 (print_variant_part): Add "language" parameter.
12124 (ada_val_print_struct_union): Update call to print_field_values.
12125
4fbf5aa5
JB
121262014-01-07 Joel Brobecker <brobecker@adacore.com>
12127
12128 * ada-valprint.c (ui_memcpy): Delete.
12129 (ada_print_floating): Update documentation. Add empty line
12130 between between function documentation and implementation.
12131 Delete variable "buffer". Use ui_file_xstrdup in place of
12132 ui_file_put. Minor adjustments following this change.
12133
71855601
JB
121342014-01-07 Joel Brobecker <brobecker@adacore.com>
12135
12136 * ada-valprint.c (ada_val_print_string): New function,
12137 extracted from ada_val_print_array.
12138 (ada_val_print_array): Replace extracted code by call
12139 to ada_val_print_string followed by a return. Move
12140 "else" branch to the function's top block.
12141
4eb27a30
JB
121422014-01-07 Joel Brobecker <brobecker@adacore.com>
12143
12144 * ada-valprint.c (ada_val_print_array): Move implementation
12145 down. Rename parameter "offset" and "val" into "offset_aligned"
12146 and "original_value" respectively. Add parameter "offset".
12147
34b27950
JB
121482014-01-07 Joel Brobecker <brobecker@adacore.com>
12149
12150 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12151 re-organizing the code. Change the "???" message printed
12152 when target type is a TYPE_CODE_UNDEF into
12153 "<ref to undefined type>".
12154
079e4591
JB
121552014-01-07 Joel Brobecker <brobecker@adacore.com>
12156
12157 * ada-valprint.c (print_record): Delete, implementation inlined...
12158 (ada_val_print_struct_union): ... here. Remove call to
12159 ada_check_typedef in inlined implementation.
12160
8004dfd1
JB
121612014-01-07 Joel Brobecker <brobecker@adacore.com>
12162
12163 * ada-valprint.c (ada_val_print_gnat_array): New function,
12164 extracted from ada_val_print_1;
12165 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12166 (ada_val_print_flt, ada_val_print_struct_union)
12167 (ada_val_print_ref): Likewise.
12168 (ada_val_print_1): Delete variables i and elttype.
12169 Replace extracted-out code by call to corresponding
12170 new functions.
12171
760a2db0
JB
121722014-01-07 Joel Brobecker <brobecker@adacore.com>
12173
12174 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12175
3a92c861
JB
121762014-01-07 Joel Brobecker <brobecker@adacore.com>
12177
12178 * ada-valprint.c (ada_val_print_1): Replace calls to
12179 ada_val_print_1 by calls to val_print.
12180
cd1630f9
JB
121812014-01-07 Joel Brobecker <brobecker@adacore.com>
12182
12183 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12184 Update calls to self accordingly. Replace calls to c_val_print
12185 by calls to val_print.
12186
bdf779a0
JB
121872014-01-07 Joel Brobecker <brobecker@adacore.com>
12188
12189 * ada-valprint.c (print_record): Delete declaration.
12190 (adjust_type_signedness, ada_val_print_1): Likewise.
12191 (ada_val_print): Move function implementation down.
12192 (print_variant_part, print_field_values, print_record):
12193 Move function implementation up.
12194
c0d48811
JB
121952014-01-07 Joel Brobecker <brobecker@adacore.com>
12196
12197 * python/py-type.c (typy_get_name): New function.
12198 (type_object_getset): Add entry for attribute "name".
12199 * NEWS: Add entry mentioning this new attribute.
12200
c26e9cbb
YQ
122012014-01-07 Yao Qi <yao@codesourcery.com>
12202
12203 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12204 statement.
12205
0cc6f43d
YQ
122062014-01-07 Yao Qi <yao@codesourcery.com>
12207
12208 * gnu-nat.c (info_port_rights): Add qualifier const to
12209 argument args.
12210
eec03155
YQ
122112014-01-07 Yao Qi <yao@codesourcery.com>
12212
12213 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12214
f04a82ef
YQ
122152014-01-07 Yao Qi <yao@codesourcery.com>
12216
12217 * gnu-nat.c (make_inf) Update declaration.
12218 (make_inf): Make it static.
12219 (inf_set_traced): Likewise.
12220 (inf_port_to_thread, inf_task_died_status): Likewise.
12221
d57dda0a
YQ
122222014-01-07 Yao Qi <yao@codesourcery.com>
12223
12224 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12225
3aa8c969
YQ
122262014-01-07 Yao Qi <yao@codesourcery.com>
12227
12228 * gnu-nat.c (_initialize_gnu_nat): Declare.
12229
94123b4f
YQ
122302014-01-07 Yao Qi <yao@codesourcery.com>
12231
12232 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12233 'enum bfd_endian'.
12234 (struct gdbarch_info) <byte_order>: Change type to
12235 'enum bfd_endian'.
12236 <byte_order_for_code>: Likewise.
12237 * gdbarch.c, gdbarch.h: Regenerated.
12238
dc81d70a
TT
122392014-01-06 Sasha Smundak <asmundak@google.com>
12240
12241 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12242
cc2f3c35
TT
122432014-01-06 Tom Tromey <tromey@redhat.com>
12244
12245 * doublest.c (convert_doublest_to_floatformat): Use const, not
12246 CONST.
12247 * somread.c (som_symtab_read): Likewise.
12248
adcf2eed
HZ
122492014-01-07 Hui Zhu <hui@codesourcery.com>
12250
12251 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12252 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12253 (gdb_bfd_fopen): Ditto.
12254 (gdb_bfd_openr): Ditto.
12255 (gdb_bfd_openw): Ditto.
12256 (gdb_bfd_openr_iovec): Ditto.
12257 (gdb_bfd_fdopenr): Ditto.
12258 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12259 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12260 with xstrdup.
12261 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12262 with xstrdup.
12263 * symfile-mem.c (symbol_file_add_from_memory): Removed
12264 gdb_bfd_stash_filename.
12265
50722198
DE
122662014-01-03 Doug Evans <dje@google.com>
12267
12268 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12269 output.
12270
2fa4b862
JB
122712014-01-01 Joel Brobecker <brobecker@adacore.com>
12272
12273 Update year range in copyright notice of all files.
12274
28498c42
JB
122752014-01-01 Joel Brobecker <brobecker@adacore.com>
12276
12277 * top.c (print_gdb_version): Set copyright year to 2014.
12278
7b6e1046
JB
122792014-01-01 Joel Brobecker <brobecker@adacore.com>
12280
12281 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12282
df96af55 12283For older changes see ChangeLog-2013.
c906108c
SS
12284\f
12285Local Variables:
12286mode: change-log
12287left-margin: 8
12288fill-column: 74
12289version-control: never
57da7796 12290coding: utf-8
c906108c 12291End:
This page took 2.272183 seconds and 4 git commands to generate.