proc-service.c: Add (gdb_byte *) cast
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
49e66b4d
SM
12015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * proc-service.c (ps_pdread): Add cast.
4
cfcb22a5
SM
52015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
8 valbuf.
9
ce746418
SM
102015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
11
12 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
13 (ia64_push_dummy_call): Remove cast and change type of "to" to
14 array of gdb_byte.
15
a55515ee
SM
162015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
19
6ecf4e06
SM
202015-10-23 Simon Marchi <simon.marchi@ericsson.com>
21
22 * observer.h (observer_${event}_notification_stub): Add cast.
23
034f1a81
YQ
242015-10-23 Yao Qi <yao.qi@linaro.org>
25
26 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
27 dsd.insn_count to zero.
28
d236ad19
PA
292015-10-22 Pedro Alves <palves@redhat.com>
30
31 * infrun.c (stop_after_trap): Delete.
32 (clear_proceed_status, handle_signal_stop, struct
33 infcall_control_state, save_infcall_control_state)
34 (restore_infcall_control_state): Remove references to
35 stop_after_trap.
36
db0f0d0c
SM
372015-10-22 Simon Marchi <simon.marchi@ericsson.com>
38
39 * python/python.c (_initialize_python): Add cast.
40
fb70bc1a
SM
412015-10-22 Simon Marchi <simon.marchi@ericsson.com>
42
43 * nto-tdep.c (nto_inferior_data): Add cast.
44
c72f45d1
PA
452015-10-22 Pedro Alves <palves@redhat.com>
46
47 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
48 windows_wait and windows_resume directly instead of
49 wait_for_inferior and resume.
50
60905b1e
SM
512015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
52
53 * xtensa-tdep.h (XTREG): Add casts.
54 (XTREG_END): Likewise.
55
5af9928d
SM
562015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
57
58 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
59
3e45d68b
SM
602015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
61
62 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
63
709476c3
SM
642015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
67 buf to gdb_byte*.
68 (supply_32bit_reg): Add cast.
69 (mips64_fill_gregset): Likewise.
70
bed91f4d
SM
712015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
72
73 PR python/18073
74 * python/py-type.c (typy_get_composite): Allow returning a
75 function type.
76
3f2f83dd
KB
772015-10-21 Keven Boell <keven.boell@intel.com>
78
79 * dwarf2read.c (set_die_type): Add read of
80 DW_AT_allocated and DW_AT_associated.
81 * f-typeprint.c: New include of typeprint.h
82 (f_print_type): Add check for allocated/associated
83 status of type.
84 (f_type_print_varspec_suffix): Add check for
85 * gdbtypes.c (create_array_type_with_stride):
86 Add check for valid data location of type in
87 case allocated or associated attributes are set.
88 Length of an array should be only calculated if
89 allocated or associated is resolved as true.
90 (is_dynamic_type_internal): Add check for allocated/
91 associated.
92 (resolve_dynamic_array): Evaluate allocated/associated
93 properties.
94 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
95 <DYN_PROP_ASSOCIATED>: New enums.
96 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
97 (type_not_allocated): New function.
98 (type_not_associated): New function.
99 * valarith.c (value_subscripted_rvalue): Add check for
100 allocated/associated.
101 * valprint.c: New include of typeprint.h.
102 (valprint_check_validity): Add check for allocated/associated.
103 (value_check_printable): Add check for allocated/
104 associated.
105 * typeprint.h (val_print_not_allocated): New function.
106 (val_print_not_associated): New function.
107 * typeprint.c (val_print_not_allocated): New function.
108 (val_print_not_associated): New function.
109
8689682c
AT
1102015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
111
112 * Makefile.in: Add arm.c/o.
113 * arch/arm.c: New file.
114 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
115 (MAKE_THUMB_ADDR): Likewise.
116 (UNMAKE_THUMB_ADDR): Likewise.
117 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
118 (IS_THUMB_ADDR): Move to arm.h.
119 (MAKE_THUMB_ADDR): Likewise.
120 (UNMAKE_THUMB_ADDR): Likewise.
121 * configure.tgt: Add arm.o to all ARM configs.
122
80f0110c
YQ
1232015-10-21 Yao Qi <yao.qi@linaro.org>
124
125 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
126 Remove argument exp_vCont_s.
127 * gdb.base/range-stepping.exp: Callers updated.
128 * gdb.trace/range-stepping.exp: Likewise.
129
d7161de4
AR
1302015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
131
132 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
133 (nto_sniff_abi_note_section): New function.
134 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
135 binary.
136
a9889169
AR
1372015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
138
139 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
140 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
141 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
142 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
143 New functions.
144 (_initialize_nto_tdep): New forward declaration, new function.
145 * nto-tdep.h (struct nto_inferior_data): New struct.
146 (nto_inferior_data): New function declaration.
147
5f3ff4f8
JK
1482015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
149
150 * findvar.c (address_from_register): Check REGNUM validity.
151
e5343fde
AR
1522015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
153
154 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
155 (init_procfs_targets): Wire new function.
156
8a6c0ccd
AR
1572015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
158
159 * nto-procfs.c (sys/auxv.h): Include.
160 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
161 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
162 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
163
609c3040
AR
1642015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
165
166 * nto-procfs.c (nto_procfs_path): Rename to...
167 (nodestr): ... this, and change type.
168 (nto_node): Use new variable and logic accordingly.
169 (procfs_open_1): Use new variable name. Use local buffer to construct
170 procfrs path.
171 (procfs_pidlist): Use NODESTR to construct procfs path.
172 (procfs_files_info): Use NODESTR to output meaningful text.
173 (do_attach): Construct procfs using NODESTR.
174 (procfs_create_inferior): Compare pointer to NULL.
175
bfd09d20
JS
1762015-10-19 Josh Stone <jistone@redhat.com>
177
178 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
179 return state, even when not actively catching syscalls at all.
180 (linux_handle_extended_wait): Mark syscall_state like an entry.
181 (wait_lwp): Set syscall_state ignored for other traps.
182 (linux_nat_filter_event): Likewise.
183
29090fb6
LM
1842015-10-19 Luis Machado <lgustavo@codesourcery.com>
185
186 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
187 when handling 'E', 'T', 'S', 'X' and 'W' packets.
188 Do not set rs->waiting_for_stop_reply back to 1.
189
774ee6d2
AR
1902015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
191
192 * nto-procfs.c (common/filestuff.h): Include.
193 (procfs_can_use_hw_breakpoint): Fix enum name.
194 (procfs_open_1): Fix compiler warning.
195 (procfs_pidlist): Make static.
196 (procfs_meminfo): Make static, fix type name, add missing argument.
197 (procfs_store_registers): Make static.
198 (procfs_thread_info): Remove unused function.
199 (_initialize_procfs): Forward declare.
200
e66acfb1
YQ
2012015-10-16 Yao Qi <yao.qi@arm.com>
202
203 * MAINTAINERS: Update my email address.
204
8d689ee5
YQ
2052015-10-15 Yao Qi <yao.qi@linaro.org>
206
207 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
208 Call gdbarch_breakpoint_from_pc to instruction length.
209 (aarch64_linux_remove_hw_breakpoint): Likewise.
210 * common/common-regcache.h (regcache_register_size): Declare.
211 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
212 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
213 the process is 32bit, otherwise set alignment to 4.
214 (aarch64_handle_breakpoint): Update comments.
215 * regcache.c (regcache_register_size): New function.
216
89fdc87f
AR
2172015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
218
219 * gdbarch.sh (core_regset_section): Remove.
220 * gdbarch.h: Regenerate.
221
6448a3e4
YQ
2222015-10-14 Yao Qi <yao.qi@linaro.org>
223
224 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
225 out of it.
226 (enum aarch64_memory_operand_type): New.
227
33f914a1
DE
2282015-10-13 David Edelsohn <dje.gcc@gmail.com>
229
230 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
231
e6a959d6
PA
2322015-10-13 Pedro Alves <palves@redhat.com>
233
234 * ada-lang.c (ada_enum_name): Constify local.
235 * ada-typeprint.c (print_range_bound): Constify locals.
236 * c-varobj.c (c_describe_child): Likewise.
237 * cli/cli-setshow.c (do_set_command): Likewise.
238 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
239 * dwarf2read.c (find_file_and_directory): Likewise.
240 (anonymous_struct_prefix, dwarf2_name): Likewise.
241 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
242 * go-lang.c (unpack_mangled_go_symbol): Likewise.
243 * jv-typeprint.c (java_type_print_base): Likewise.
244 * ser-tcp.c (net_open): Likewise.
245 * symfile.c (deduce_language_from_filename): Likewise.
246 * symtab.c (gdb_mangle_name): Likewise.
247 * tui/tui-io.c (tui_redisplay_readline): Likewise.
248
170742de
PA
2492015-10-13 Pedro Alves <palves@redhat.com>
250
251 * infrun.c (restore_execution_direction): New function.
252 (fetch_inferior_event): Use it instead of
253 make_cleanup_restore_integer.
254 (execution_direction): Change type to enum
255 exec_direction_kind.
256 * infrun.h (execution_direction): Likewise.
257
bfb1c796
PA
2582015-10-13 Pedro Alves <palves@redhat.com>
259
260 * ada-lang.c (ada_value_primitive_packed_val): Constify
261 locals. Use value_contents_writeable. Remove casts.
262
aa5c10ce
PA
2632015-10-13 Pedro Alves <palves@redhat.com>
264
265 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
266 and alloca calls.
267
4666fec3
SM
2682015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
269
270 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
271 write_memory with write_memory_unsigned_integer.
272
38bc8217 2732015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3953f15c
SM
274
275 * solib-dsbt.c (cmp_name): Constify arguments.
276 * solib-frv.c (cmp_name): Likewise.
277 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
278 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
279 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
280 (gdb_bfd_lookup_symbol): Likewise.
281 * solib.h (gdb_bfd_lookup_symbol): Likewise.
282 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
283
a0d34a39
AB
2842015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * stack.c (parse_frame_specification): Remove message parameter,
287 replace with fixed string in function body, update function
288 comment.
289 (frame_info): Remove message to parse_frame_specification.
290 (select_frame_command): Likewise.
291
edbbff4a
AB
2922015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * stack.c (parse_frame_specification): Delete.
295 (parse_frame_specification_1): Rename to
296 parse_frame_specification.
297 (frame_info): Use parse_frame_specification.
298 (select_frame_command): Likewise.
299 (return_command): Use select_frame and print_stack_frame rather
300 than frame_command and select_frame_command.
301 (func_command): Use get_current_frame rather than
302 parse_frame_specification.
303
9d622bda
AB
3042015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
305
306 * stack.c (func_command): Return early when there is no ARG
307 string.
308
8d3fea16
AB
3092015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
310
311 * stack.c: Include safe-ctype.h not ctype.h.
312 (parse_frame_specification): Use ISSPACE not isspace.
313 (backtrace_command): Use TOLOWER not tolower.
314
f54b226f
SM
3152015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
316
317 * mep-tdep.c (current_me_module): Add cast.
318 (mep_gdbarch_init): Likewise.
319
6da660c7
SM
3202015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
321
322 * m32c-tdep.c (m32c_move_reg_t): Replace with...
323 (m32c_write_reg_t): ...this and...
324 (m32c_read_reg_t): ...this.
325 (struct m32c_reg): Update types of read and write.
326 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
327 adjust definition.
328 (m32c_banked_read): Likewise.
329 (m32c_sb_read): Likewise.
330 (m32c_part_read): Likewise.
331 (m32c_cat_read): Likewise.
332 (m32c_r3r2r1r0_read): Likewise.
333 (m32c_raw_write): Change declaration type to m32c_write_reg_t
334 and adjust definition.
335 (m32c_banked_write): Likewise.
336 (m32c_sb_write): Likewise.
337 (m32c_part_write): Likewise.
338 (m32c_cat_write): Likewise.
339 (m32c_r3r2r1r0_write): Likewise.
340
1f713e48
SM
3412015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
342
343 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
344
cb65d272
SM
3452015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
346
347 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
348 gdb_sys_no_syscall instead of -1.
349
eda14cf2
YQ
3502015-10-12 Yao Qi <yao.qi@linaro.org>
351
352 * NEWS: Mention the change.
353
1c2e1515
YQ
3542015-10-12 Yao Qi <yao.qi@linaro.org>
355
356 * arch/aarch64-insn.c (emit_load_store): Rename to ...
357 (aarch64_emit_load_store): ... it. All callers updated.
358
e1c587c3
YQ
3592015-10-12 Yao Qi <yao.qi@linaro.org>
360
361 * arch/aarch64-insn.c (emit_insn): Rename to ...
362 (aarch64_emit_insn): ... it. All callers updated.
363
b6542f81
YQ
3642015-10-12 Yao Qi <yao.qi@linaro.org>
365
366 * aarch64-linux-tdep.c: Include arch-utils.h.
367 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
368 set_gdbarch_displaced_step_copy_insn,
369 set_gdbarch_displaced_step_fixup,
370 set_gdbarch_displaced_step_free_closure,
371 set_gdbarch_displaced_step_location,
372 and set_gdbarch_displaced_step_hw_singlestep.
373 * aarch64-tdep.c (struct displaced_step_closure): New.
374 (struct aarch64_displaced_step_data): New.
375 (aarch64_displaced_step_b): New function.
376 (aarch64_displaced_step_b_cond): Likewise.
377 (aarch64_register): Likewise.
378 (aarch64_displaced_step_cb): Likewise.
379 (aarch64_displaced_step_tb): Likewise.
380 (aarch64_displaced_step_adr): Likewise.
381 (aarch64_displaced_step_ldr_literal): Likewise.
382 (aarch64_displaced_step_others): Likewise.
383 (aarch64_displaced_step_copy_insn): Likewise.
384 (aarch64_displaced_step_fixup): Likewise.
385 (aarch64_displaced_step_hw_singlestep): Likewise.
386 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
387 (aarch64_displaced_step_copy_insn): Declare.
388 (aarch64_displaced_step_fixup): Declare.
389 (aarch64_displaced_step_hw_singlestep): Declare.
390 * arch/aarch64-insn.c (emit_insn): Moved from
391 gdbserver/linux-aarch64-low.c.
392 (emit_load_store): Likewise.
393 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
394 gdbserver/linux-aarch64-low.c.
395 (struct aarch64_register): Likewise.
396 (struct aarch64_memory_operand): Likewise.
397 (ENCODE): Likewise.
398 (can_encode_int32): New macro.
399 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
400 (emit_tb, emit_nop): Likewise.
401 (emit_insn): Declare.
402 (emit_load_store): Declare.
403
246994ce
YQ
4042015-10-12 Yao Qi <yao.qi@linaro.org>
405
406 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
407 gdbserver/linux-aarch64-low.c.
408 (aarch64_relocate_instruction): Likewise.
409 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
410 (struct aarch64_insn_data): Moved from
411 gdbserver/linux-aarch64-low.c.
412 (struct aarch64_insn_visitor): Likewise.
413 (aarch64_relocate_instruction): Declare.
414
2520f728
PMR
4152015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
416
417 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
418 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
419 to the returned value.
420
5b639dea
JB
4212015-10-09 Joel Brobecker <brobecker@adacore.com>
422
423 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
424 is large enough for BIT_SIZE. Update function comment.
425
0cafa88c
JB
4262015-10-09 Joel Brobecker <brobecker@adacore.com>
427
428 * ada-lang.c (ada_value_primitive_packed_val): Move
429 src_len variable to local block where used. Override
430 BIT_SIZE if bigger than size of resolved type.
431
220475ed
JB
4322015-10-09 Joel Brobecker <brobecker@adacore.com>
433
434 * gdbtypes.h (is_scalar_type): Add extern declaration.
435 * gdbtypes.c (is_scalar_type): Make non-static.
436 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
437 to compute IS_SCALAR instead of doing it ourselves.
438
d0a9e810
JB
4392015-10-09 Joel Brobecker <brobecker@adacore.com>
440
441 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
442 of case where TYPE is dynamic.
443
f93fca70
JB
4442015-10-09 Joel Brobecker <brobecker@adacore.com>
445
446 * ada-lang.c (ada_unpack_from_contents): New function,
447 extracted from ada_value_primitive_packed_val.
448 (ada_value_primitive_packed_val): Replace extracted out code
449 by call to ada_unpack_from_contents.
450
a1c95e6b
JB
4512015-10-09 Joel Brobecker <brobecker@adacore.com>
452
453 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
454 variable declarations.
455
fbd000da
JB
4562015-10-09 Joel Brobecker <brobecker@adacore.com>
457
458 * ada-lang.c (ada_value_primitive_packed_val): Change the type
459 of local variables src and unpacked to "gdb_type *" instead of
460 "unsigned char *".
461
086ca51f
JB
4622015-10-09 Joel Brobecker <brobecker@adacore.com>
463
464 * ada-lang.c (ada_value_primitive_packed_val): Make the name
465 of various local variables more explicit and consistent.
466 No real code change otherwise.
467
c5bcd278
SM
4682015-10-09 Simon Marchi <simon.marchi@ericsson.com>
469
470 * i386-tdep.h (struct gdbarch_tdep): Change type of
471 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
472
78c5b882
SM
4732015-10-09 Simon Marchi <simon.marchi@ericsson.com>
474
475 * cris-tdep.c (struct instruction_environment): Change type of
476 byte_order to enum bfd_endian.
477
f9fa37b3
SM
4782015-10-09 Simon Marchi <simon.marchi@ericsson.com>
479
480 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
481 enum gdb_syscall casts.
482
7c543f7b
SM
4832015-10-09 Simon Marchi <simon.marchi@ericsson.com>
484
485 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
486 * arm-tdep.c (struct stack_item): Likewise.
487 (push_stack_item): Add gdb_byte* cast.
488 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
489 (push_stack_item): Add gdb_byte* cast.
490 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
491 and add cast.
492 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
493 (push_stack_item): Add gdb_byte* cast.
494 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
495 add cast.
496 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
497 gdb_byte*.
498 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
499 gdb_byte* and remove unnecessary cast.
500 (h8300h_extract_return_value): Likewise.
501 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
502 (h8300h_store_return_value): Likewise.
503 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
504 gdb_byte* and remove unnecessary cast.
505 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
506 and add cast.
507 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
508 gdb_byte* and remove unnecessary cast.
509 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
510 valbuf.
511 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
512 (mep_pseudo_cr64_read): Likewise.
513 (mep_pseudo_csr_write): Likewise.
514 (mep_pseudo_cr32_write): Likewise.
515 (mep_pseudo_cr64_write): Likewise.
516 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
517 gdb_byte* and add cast.
518 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
519 gdb_byte* and remove unnecessary cast.
520 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
521 valbuf.
522 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
523 gdb_byte*.
524 * printcmd.c (void): Likewise.
525 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
526 gdb_byte* and add cast.
527 (infpy_write_memory): Likewise.
528 (infpy_search_memory): Likewise.
529 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
530 and add cast.
531 (regcache_raw_write_unsigned): Likewise.
532 (regcache_cooked_write_signed): Likewise.
533 (regcache_cooked_write_unsigned): Likewise.
534 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
535 gdb_byte*.
536
7567e115
SM
5372015-10-09 Simon Marchi <simon.marchi@ericsson.com>
538
539 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
540 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
541
f9acce4a
EZ
5422015-10-09 Eli Zaretskii <eliz@gnu.org>
543
544 * stack.c (print_stack_frame):
545 * utils.c (printchar): Fix typos in commentary.
546
d5d8c4e1
IB
5472015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
548
549 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
550 (PostfixExpression): Support `expr.sizeof' expressions.
551 (PrimaryExpression): Support `typeof(expr)' expressions.
552
4e7de155
MR
5532015-10-08 Maciej W. Rozycki <macro@imgtec.com>
554
555 * MAINTAINERS: Update my email address.
556
04c4fe8c
MM
5572015-10-08 Markus Metzger <markus.t.metzger@intel.com>
558
559 * record-btrace.c (record_btrace_resume): Fix void return.
560
f77ee802
YQ
5612015-10-07 Yao Qi <yao.qi@linaro.org>
562
563 * aarch64-tdep.c: Include opcode/aarch64.h.
564 (submask): Move it above.
565 (bit): Likewise.
566 (bits): Likewise.
567 (aarch64_software_single_step): Call aarch64_decode_insn.
568 Decode instruction by aarch64_inst instead of using
569 aarch64_decode_bcond and decode_masked_match.
570
cbd641ed
PS
5712015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
572
573 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
574 only when the file is binary.
575
ae4e2501 5762015-10-02 James Bowman <james.bowman@ftdichip.com>
577
578 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
579 subroutine handling.
580
dd0a637a
SM
5812015-10-01 Simon Marchi <simon.marchi@ericsson.com>
582
583 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
584
1fd60fc0
DE
5852015-09-30 Doug Evans <dje@google.com>
586
587 * dwarf2read.c (setup_type_unit_groups): Add comment.
588
398e0813
PA
5892015-09-30 Pedro Alves <palves@redhat.com>
590
591 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
592 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
593 (x86_linux_create_target): Don't install
594 x86_linux_always_non_stop_p.
595
6ab24463
DB
5962015-09-30 Don Breazeal <donb@codesourcery.com>
597
598 * remote.c (remote_parse_stop_reply): Call strprefix instead
599 of strncmp.
600
ede5f151
SM
6012015-09-30 Simon Marchi <simon.marchi@ericsson.com>
602
603 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
604 * gdbarch.h: Regenerate.
605 * i386-tdep.c (i386_gdbarch_init): Remove cast to
606 struct gdbarch_tdep_info *.
607 * mips-tdep.c (mips_gdbarch_init): Likewise.
608 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
609 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
610 * spu-multiarch.c (spu_gdbarch): Likewise.
611
51c935fa 6122015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
613
614 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
615 record a NULL value.
616
3b1ad7d5
KB
6172015-09-29 Kevin Buettner <kevinb@redhat.com>
618
619 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
620 and union arguments the same as pointer arguments when determining
621 size of argument.
622
86feccb9 6232015-09-29 James Bowman <james.bowman@ftdichip.com>
624
625 * ft32-tdep.c: #include "opcode/ft32.h".
626 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
627 (ft32_analyze_prologue): Use FT32_* macros.
628
2181a6c6
SM
6292015-09-28 Simon Marchi <simon.marchi@ericsson.com>
630
84d73afc 631 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
632 comment.
633
245af596
DE
6342015-09-28 Doug Evans <dje@google.com>
635
636 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
637
c402ef90
DE
6382015-09-28 Doug Evans <dje@google.com>
639
640 * common/filestuff.c (make_cleanup_close): Update comment.
641
38bc8217 6422015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
bc84451b
SM
643
644 * btrace.c (parse_xml_btrace_block): Fix cast of
645 xml_find_attribute's return value.
646 * memory-map.c (memory_map_start_memory): Likewise.
647 * solib-svr4.c (library_list_start_library): Likewise.
648 * solib-target.c (library_list_start_segment): Likewise.
649 (library_list_start_section): Likewise.
650 * tracepoint.c (traceframe_info_start_memory): Likewise.
651
ba587d55
IB
6522015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
653
654 * d-namespace.c (d_lookup_symbol): New arg langdef.
655 All callers updated. Support looking up symbol as a primitive type.
656 (lookup_module_scope): New arg langdef. All callers updated.
657 Call d_lookup_symbol directly for simple bare symbols.
658
19ba03f4
SM
6592015-09-25 Simon Marchi <simon.marchi@ericsson.com>
660
661 * macrocmd.c (print_macro_callback): Add cast(s).
662 * macrotab.c (macro_bcache_str): Likewise.
663 (new_macro_definition): Likewise.
664 * main.c (captured_main): Likewise.
665 * maint.c (print_bfd_section_info): Likewise.
666 * mdebugread.c (mdebug_build_psymtabs): Likewise.
667 (basic_type): Likewise.
668 * memattr.c (mem_region_cmp): Likewise.
669 * memory-map.c (memory_map_start_memory): Likewise.
670 (memory_map_end_memory): Likewise.
671 (memory_map_start_property): Likewise.
672 (memory_map_end_property): Likewise.
673 (clear_result): Likewise.
674 * memrange.c (compare_mem_ranges): Likewise.
675 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
676 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
677 * mi/mi-console.c (mi_console_file_delete): Likewise.
678 (mi_console_file_fputs): Likewise.
679 (mi_console_raw_packet): Likewise.
680 (mi_console_file_flush): Likewise.
681 (mi_console_set_raw): Likewise.
682 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
683 (mi_new_thread): Likewise.
684 (mi_thread_exit): Likewise.
685 (mi_record_changed): Likewise.
686 (mi_inferior_added): Likewise.
687 (mi_inferior_appeared): Likewise.
688 (mi_inferior_exit): Likewise.
689 (mi_inferior_removed): Likewise.
690 (mi_interp_data): Likewise.
691 (mi_on_normal_stop): Likewise.
692 (mi_traceframe_changed): Likewise.
693 (mi_tsv_created): Likewise.
694 (mi_tsv_deleted): Likewise.
695 (mi_tsv_modified): Likewise.
696 (mi_breakpoint_created): Likewise.
697 (mi_breakpoint_deleted): Likewise.
698 (mi_breakpoint_modified): Likewise.
699 (mi_output_running_pid): Likewise.
700 (mi_inferior_count): Likewise.
701 (mi_solib_loaded): Likewise.
702 (mi_solib_unloaded): Likewise.
703 (mi_command_param_changed): Likewise.
704 (mi_memory_changed): Likewise.
705 (report_initial_inferior): Likewise.
706 (mi_ui_out): Likewise.
707 (mi_set_logging): Likewise.
708 * mi/mi-main.c (collect_cores): Likewise.
709 (print_one_inferior): Likewise.
710 (free_vector_of_ints): Likewise.
711 (free_splay_tree): Likewise.
712 (mi_execute_command): Likewise.
713 * mi/mi-out.c (mi_table_body): Likewise.
714 (mi_table_end): Likewise.
715 (mi_table_header): Likewise.
716 (mi_begin): Likewise.
717 (mi_end): Likewise.
718 (mi_field_int): Likewise.
719 (mi_field_string): Likewise.
720 (mi_field_fmt): Likewise.
721 (mi_flush): Likewise.
722 (mi_redirect): Likewise.
723 (field_separator): Likewise.
724 (mi_open): Likewise.
725 (mi_close): Likewise.
726 (mi_out_buffered): Likewise.
727 (mi_out_rewind): Likewise.
728 (mi_out_put): Likewise.
729 (mi_version): Likewise.
730 (mi_out_data_dtor): Likewise.
731 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
732 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
733 * minidebug.c (lzma_open): Likewise.
734 (lzma_pread): Likewise.
735 (lzma_close): Likewise.
736 (lzma_stat): Likewise.
737 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
738 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
739 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
740 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
741 (mips_micro_frame_cache): Likewise.
742 (mips_insn32_frame_cache): Likewise.
743 (mips_stub_frame_cache): Likewise.
744 (gdb_print_insn_mips): Likewise.
745 (value_of_mips_user_reg): Likewise.
746 (mips_gdbarch_init): Likewise.
747 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
748 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
749 (mipsnbsd_supply_gregset): Likewise.
750 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
751 (am33_collect_gregset_method): Likewise.
752 (am33_collect_fpregset_method): Likewise.
753 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
754 * moxie-tdep.c (moxie_frame_cache): Likewise.
755 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
756 (msp430_analyze_frame_prologue): Likewise.
757 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
758 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
759 (nios2_collect_gregset): Likewise.
760 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
761 (nios2_stub_frame_cache): Likewise.
762 * objc-lang.c (find_methods): Likewise.
763 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
764 (get_objfile_pspace_data): Likewise.
765 (get_objfile_bfd_data): Likewise.
766 (objfile_bfd_data_free): Likewise.
767 (add_to_objfile_sections): Likewise.
768 (do_free_objfile_cleanup): Likewise.
769 (resume_section_map_updates_cleanup): Likewise.
770 * opencl-lang.c (builtin_opencl_type): Likewise.
771 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
772 * osdata.c (osdata_start_osdata): Likewise.
773 (osdata_start_item): Likewise.
774 (osdata_start_column): Likewise.
775 (osdata_end_column): Likewise.
776 (clear_parsing_data): Likewise.
777 (osdata_free_cleanup): Likewise.
778 * parse.c (type_stack_cleanup): Likewise.
779 (exp_uses_objfile_iter): Likewise.
780 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
781 (ppc_linux_collect_gregset): Likewise.
782 (ppu2spu_prev_arch): Likewise.
783 (ppu2spu_this_id): Likewise.
784 (ppu2spu_prev_register): Likewise.
785 (ppu2spu_unwind_register): Likewise.
786 (ppu2spu_sniffer): Likewise.
787 (ppu2spu_dealloc_cache): Likewise.
788 (ppc_linux_init_abi): Likewise.
789 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
790 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
791 * progspace.c (restore_program_space): Likewise.
792 * psymtab.c (find_pc_sect_psymtab): Likewise.
793 (compare_psymbols): Likewise.
794 (psymbol_bcache_full): Likewise.
795 (allocate_psymtab): Likewise.
796 (discard_psymtabs_upto): Likewise.
797 * python/py-block.c (set_block): Likewise.
798 (del_objfile_blocks): Likewise.
799 * python/py-breakpoint.c (build_bp_list): Likewise.
800 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
801 (build_inferior_list): Likewise.
802 (py_free_inferior): Likewise.
803 * python/py-objfile.c (py_free_objfile): Likewise.
804 (objfile_to_objfile_object): Likewise.
805 * python/py-prettyprint.c (py_restore_tstate): Likewise.
806 * python/py-progspace.c (py_free_pspace): Likewise.
807 (pspace_to_pspace_object): Likewise.
808 * python/py-symbol.c (set_symbol): Likewise.
809 (del_objfile_symbols): Likewise.
810 * python/py-symtab.c (set_sal): Likewise.
811 (set_symtab): Likewise.
812 (del_objfile_symtab): Likewise.
813 (del_objfile_sal): Likewise.
814 * python/py-type.c (save_objfile_types): Likewise.
815 (set_type): Likewise.
816 * python/py-unwind.c (pyuw_prev_register): Likewise.
817 (pyuw_on_new_gdbarch): Likewise.
818 * python/py-utils.c (py_decref): Likewise.
819 (py_xdecref): Likewise.
820 (gdb_py_generic_dict): Likewise.
821 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
822 (gdbpy_clone_xmethod_worker_data): Likewise.
823 (gdbpy_get_xmethod_arg_types): Likewise.
824 (gdbpy_get_xmethod_result_type): Likewise.
825 (gdbpy_invoke_xmethod): Likewise.
826 * python/python.c (gdbpy_apply_type_printers): Likewise.
827 (gdbpy_free_type_printers): Likewise.
828 * record-btrace.c (record_btrace_disable_callback): Likewise.
829 (bfcache_hash): Likewise.
830 (bfcache_eq): Likewise.
831 (btrace_get_frame_function): Likewise.
832 (record_btrace_frame_unwind_stop_reason): Likewise.
833 (record_btrace_frame_this_id): Likewise.
834 (record_btrace_frame_prev_register): Likewise.
835 (record_btrace_frame_dealloc_cache): Likewise.
836 * record-full.c (record_full_message_wrapper): Likewise.
837 (record_full_save_cleanups): Likewise.
838 * regcache.c (regcache_descr): Likewise.
839 (do_regcache_xfree): Likewise.
840 (do_regcache_invalidate): Likewise.
841 (do_cooked_read): Likewise.
842 (regcache_transfer_regset): Likewise.
843 * reggroups.c (reggroup_add): Likewise.
844 (reggroup_next): Likewise.
845 (reggroup_prev): Likewise.
846 * remote-fileio.c (do_remote_fileio_request): Likewise.
847 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
848 (do_notif_event_xfree): Likewise.
849 * remote.c (get_remote_arch_state): Likewise.
850 (remote_pspace_data_cleanup): Likewise.
851 (get_remote_exec_file): Likewise.
852 (set_pspace_remote_exec_file): Likewise.
853 (compare_pnums): Likewise.
854 (clear_threads_listing_context): Likewise.
855 (remote_newthread_step): Likewise.
856 (start_thread): Likewise.
857 (end_thread): Likewise.
858 (remove_child_of_pending_fork): Likewise.
859 (remove_stop_reply_for_inferior): Likewise.
860 (remove_stop_reply_of_remote_state): Likewise.
861 (remote_notif_remove_once_on_match): Likewise.
862 (stop_reply_match_ptid_and_ws): Likewise.
863 (kill_child_of_pending_fork): Likewise.
864 (register_remote_g_packet_guess): Likewise.
865 (remote_read_description_p): Likewise.
866 (remote_read_description): Likewise.
867 (free_actions_list_cleanup_wrapper): Likewise.
868 (remote_async_serial_handler): Likewise.
869 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
870 (rl78_analyze_frame_prologue): Likewise.
871 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
872 (ppc_supply_fpregset): Likewise.
873 (ppc_supply_vsxregset): Likewise.
874 (ppc_supply_vrregset): Likewise.
875 (ppc_collect_gregset): Likewise.
876 (ppc_collect_fpregset): Likewise.
877 (ppc_collect_vsxregset): Likewise.
878 (ppc_collect_vrregset): Likewise.
879 (e500_move_ev_register): Likewise.
880 (do_regcache_raw_write): Likewise.
881 (rs6000_frame_cache): Likewise.
882 (rs6000_epilogue_frame_cache): Likewise.
883 (rs6000_gdbarch_init): Likewise.
884 * rx-tdep.c (rx_get_opcode_byte): Likewise.
885 (rx_analyze_frame_prologue): Likewise.
886 (rx_frame_type): Likewise.
887 (rx_frame_sniffer_common): Likewise.
888 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
889 (s390_frame_unwind_cache): Likewise.
890 (s390_stub_frame_unwind_cache): Likewise.
891 (s390_sigtramp_frame_unwind_cache): Likewise.
892 * score-tdep.c (score_make_prologue_cache): Likewise.
893 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
894 (sentinel_frame_prev_arch): Likewise.
895 * ser-base.c (fd_event): Likewise.
896 (push_event): Likewise.
897 (ser_base_write): Likewise.
898 * ser-pipe.c (pipe_close): Likewise.
899 * serial.c (serial_write): Likewise.
900 * sh-tdep.c (sh_frame_cache): Likewise.
901 (sh_stub_this_id): Likewise.
902 * sh64-tdep.c (sh64_frame_cache): Likewise.
903 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
904 (library_list_start_library): Likewise.
905 (library_list_start_list): Likewise.
906 (solib_aix_free_library_list): Likewise.
907 * solib-darwin.c (get_darwin_info): Likewise.
908 * solib-dsbt.c (get_dsbt_info): Likewise.
909 * solib-spu.c (append_ocl_sos): Likewise.
910 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
911 (get_svr4_info): Likewise.
912 (library_list_start_library): Likewise.
913 (svr4_library_list_start_list): Likewise.
914 (hash_probe_and_action): Likewise.
915 (equal_probe_and_action): Likewise.
916 (svr4_update_solib_event_breakpoint): Likewise.
917 (set_solib_svr4_fetch_link_map_offsets): Likewise.
918 (svr4_fetch_link_map_offsets): Likewise.
919 (svr4_have_link_map_offsets): Likewise.
920 * solib-target.c (library_list_start_segment): Likewise.
921 (library_list_start_section): Likewise.
922 (library_list_start_library): Likewise.
923 (library_list_end_library): Likewise.
924 (library_list_start_list): Likewise.
925 (solib_target_free_library_list): Likewise.
926 * solib.c (solib_ops): Likewise.
927 (set_solib_ops): Likewise.
928 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
929 * sparc-tdep.c (sparc_frame_cache): Likewise.
930 (sparc32_frame_cache): Likewise.
931 (sparc32_supply_gregset): Likewise.
932 (sparc32_collect_gregset): Likewise.
933 (sparc32_supply_fpregset): Likewise.
934 (sparc32_collect_fpregset): Likewise.
935 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
936 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
937 (sparc64_collect_gregset): Likewise.
938 (sparc64_supply_fpregset): Likewise.
939 (sparc64_collect_fpregset): Likewise.
940 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
941 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
942 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
943 (sparc64obsd_trapframe_cache): Likewise.
944 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
945 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
946 * spu-multiarch.c (spu_gdbarch): Likewise.
947 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
948 (spu2ppu_prev_arch): Likewise.
949 (spu2ppu_this_id): Likewise.
950 (spu2ppu_prev_register): Likewise.
951 (spu2ppu_dealloc_cache): Likewise.
952 (spu_dis_asm_print_address): Likewise.
953 (gdb_print_insn_spu): Likewise.
954 (spu_get_overlay_table): Likewise.
955 * stabsread.c (rs6000_builtin_type): Likewise.
956 * stack.c (do_print_variable_and_value): Likewise.
957 * stap-probe.c (get_stap_base_address_1): Likewise.
958 * symfile-debug.c (debug_qf_has_symbols): Likewise.
959 (debug_qf_find_last_source_symtab): Likewise.
960 (debug_qf_forget_cached_source_info): Likewise.
961 (debug_qf_map_symtabs_matching_filename): Likewise.
962 (debug_qf_lookup_symbol): Likewise.
963 (debug_qf_print_stats): Likewise.
964 (debug_qf_dump): Likewise.
965 (debug_qf_relocate): Likewise.
966 (debug_qf_expand_symtabs_for_function): Likewise.
967 (debug_qf_expand_all_symtabs): Likewise.
968 (debug_qf_expand_symtabs_with_fullname): Likewise.
969 (debug_qf_map_matching_symbols): Likewise.
970 (debug_qf_expand_symtabs_matching): Likewise.
971 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
972 (debug_qf_map_symbol_filenames): Likewise.
973 (debug_sym_get_probes): Likewise.
974 (debug_sym_new_init): Likewise.
975 (debug_sym_init): Likewise.
976 (debug_sym_read): Likewise.
977 (debug_sym_read_psymbols): Likewise.
978 (debug_sym_finish): Likewise.
979 (debug_sym_offsets): Likewise.
980 (debug_sym_read_linetable): Likewise.
981 (debug_sym_relocate): Likewise.
982 (uninstall_symfile_debug_logging): Likewise.
983 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
984 * symfile.c (place_section): Likewise.
985 (add_section_size_callback): Likewise.
986 (load_progress): Likewise.
987 (load_section_callback): Likewise.
988 (clear_memory_write_data): Likewise.
989 (allocate_symtab): Likewise.
990 * symmisc.c (maintenance_expand_file_matcher): Likewise.
991 * symtab.c (lookup_symtab_callback): Likewise.
992 (hash_demangled_name_entry): Likewise.
993 (eq_demangled_name_entry): Likewise.
994 (get_symbol_cache): Likewise.
995 (symbol_cache_cleanup): Likewise.
996 (set_symbol_cache_size): Likewise.
997 (symbol_cache_flush): Likewise.
998 (maintenance_print_symbol_cache): Likewise.
999 (maintenance_print_symbol_cache_statistics): Likewise.
1000 (delete_filename_seen_cache): Likewise.
1001 (output_partial_symbol_filename): Likewise.
1002 (search_symbols_file_matches): Likewise.
1003 (search_symbols_name_matches): Likewise.
1004 (do_free_completion_list): Likewise.
1005 (maybe_add_partial_symtab_filename): Likewise.
1006 (get_main_info): Likewise.
1007 (main_info_cleanup): Likewise.
1008 * target-dcache.c (target_dcache_cleanup): Likewise.
1009 (target_dcache_init_p): Likewise.
1010 (target_dcache_invalidate): Likewise.
1011 (target_dcache_get): Likewise.
1012 (target_dcache_get_or_init): Likewise.
1013 * target-descriptions.c (target_find_description): Likewise.
1014 (tdesc_find_type): Likewise.
1015 (tdesc_data_cleanup): Likewise.
1016 (tdesc_find_arch_register): Likewise.
1017 (tdesc_register_name): Likewise.
1018 (tdesc_register_type): Likewise.
1019 (tdesc_register_reggroup_p): Likewise.
1020 (set_tdesc_pseudo_register_name): Likewise.
1021 (set_tdesc_pseudo_register_type): Likewise.
1022 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1023 (tdesc_use_registers): Likewise.
1024 (free_target_description): Likewise.
1025 * target-memory.c (compare_block_starting_address): Likewise.
1026 (cleanup_request_data): Likewise.
1027 (cleanup_write_requests_vector): Likewise.
1028 * target.c (open_target): Likewise.
1029 (cleanup_restore_target_terminal): Likewise.
1030 (free_memory_read_result_vector): Likewise.
1031 * thread.c (disable_thread_stack_temporaries): Likewise.
1032 (finish_thread_state_cleanup): Likewise.
1033 (do_restore_current_thread_cleanup): Likewise.
1034 (restore_current_thread_cleanup_dtor): Likewise.
1035 (set_thread_refcount): Likewise.
1036 (tp_array_compar): Likewise.
1037 (do_captured_thread_select): Likewise.
1038 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1039 (tic6x_stub_this_id): Likewise.
1040 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1041 * top.c (do_restore_instream_cleanup): Likewise.
1042 (gdb_readline_wrapper_cleanup): Likewise.
1043 (kill_or_detach): Likewise.
1044 (print_inferior_quit_action): Likewise.
1045 * tracefile-tfile.c (match_blocktype): Likewise.
1046 (build_traceframe_info): Likewise.
1047 * tracefile.c (trace_file_writer_xfree): Likewise.
1048 * tracepoint.c (memrange_cmp): Likewise.
1049 (do_collect_symbol): Likewise.
1050 (do_clear_collection_list): Likewise.
1051 (do_restore_current_traceframe_cleanup): Likewise.
1052 (restore_current_traceframe_cleanup_dtor): Likewise.
1053 (free_current_marker): Likewise.
1054 (traceframe_info_start_memory): Likewise.
1055 (traceframe_info_start_tvar): Likewise.
1056 (free_result): Likewise.
1057 * tramp-frame.c (tramp_frame_cache): Likewise.
1058 * tui/tui-file.c (tui_file_delete): Likewise.
1059 (tui_fileopen): Likewise.
1060 (tui_sfileopen): Likewise.
1061 (tui_file_isatty): Likewise.
1062 (tui_file_rewind): Likewise.
1063 (tui_file_put): Likewise.
1064 (tui_file_fputs): Likewise.
1065 (tui_file_get_strbuf): Likewise.
1066 (tui_file_adjust_strbuf): Likewise.
1067 (tui_file_flush): Likewise.
1068 * tui/tui-layout.c (make_command_window): Likewise.
1069 (make_data_window): Likewise.
1070 (show_source_disasm_command): Likewise.
1071 (show_data): Likewise.
1072 (make_source_or_disasm_window): Likewise.
1073 (show_source_or_disasm_and_command): Likewise.
1074 * tui/tui-out.c (tui_field_int): Likewise.
1075 (tui_field_string): Likewise.
1076 (tui_field_fmt): Likewise.
1077 (tui_text): Likewise.
1078 * typeprint.c (hash_typedef_field): Likewise.
1079 (eq_typedef_field): Likewise.
1080 (do_free_typedef_hash): Likewise.
1081 (copy_typedef_hash_element): Likewise.
1082 (do_free_global_table): Likewise.
1083 (find_global_typedef): Likewise.
1084 (find_typedef_in_hash): Likewise.
1085 * ui-file.c (ui_file_write_for_put): Likewise.
1086 (do_ui_file_xstrdup): Likewise.
1087 (mem_file_delete): Likewise.
1088 (mem_file_rewind): Likewise.
1089 (mem_file_put): Likewise.
1090 (mem_file_write): Likewise.
1091 (stdio_file_delete): Likewise.
1092 (stdio_file_flush): Likewise.
1093 (stdio_file_read): Likewise.
1094 (stdio_file_write): Likewise.
1095 (stdio_file_write_async_safe): Likewise.
1096 (stdio_file_fputs): Likewise.
1097 (stdio_file_isatty): Likewise.
1098 (stdio_file_fseek): Likewise.
1099 (tee_file_delete): Likewise.
1100 (tee_file_flush): Likewise.
1101 (tee_file_write): Likewise.
1102 (tee_file_fputs): Likewise.
1103 (tee_file_isatty): Likewise.
1104 * ui-out.c (do_cleanup_table_end): Likewise.
1105 (do_cleanup_end): Likewise.
1106 * user-regs.c (user_reg_add): Likewise.
1107 (user_reg_map_name_to_regnum): Likewise.
1108 (usernum_to_user_reg): Likewise.
1109 (maintenance_print_user_registers): Likewise.
1110 * utils.c (do_bfd_close_cleanup): Likewise.
1111 (do_fclose_cleanup): Likewise.
1112 (do_obstack_free): Likewise.
1113 (do_ui_file_delete): Likewise.
1114 (do_ui_out_redirect_pop): Likewise.
1115 (do_free_section_addr_info): Likewise.
1116 (restore_integer): Likewise.
1117 (do_unpush_target): Likewise.
1118 (do_htab_delete_cleanup): Likewise.
1119 (do_restore_ui_file): Likewise.
1120 (do_value_free): Likewise.
1121 (do_free_so): Likewise.
1122 (free_current_contents): Likewise.
1123 (do_regfree_cleanup): Likewise.
1124 (core_addr_hash): Likewise.
1125 (core_addr_eq): Likewise.
1126 (do_free_char_ptr_vec): Likewise.
1127 * v850-tdep.c (v850_frame_cache): Likewise.
1128 * varobj.c (do_free_variable_cleanup): Likewise.
1129 * vax-tdep.c (vax_supply_gregset): Likewise.
1130 (vax_frame_cache): Likewise.
1131 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1132 * xml-support.c (gdb_xml_body_text): Likewise.
1133 (gdb_xml_values_cleanup): Likewise.
1134 (gdb_xml_start_element): Likewise.
1135 (gdb_xml_start_element_wrapper): Likewise.
1136 (gdb_xml_end_element): Likewise.
1137 (gdb_xml_end_element_wrapper): Likewise.
1138 (gdb_xml_cleanup): Likewise.
1139 (gdb_xml_fetch_external_entity): Likewise.
1140 (gdb_xml_parse_attr_enum): Likewise.
1141 (xinclude_start_include): Likewise.
1142 (xinclude_end_include): Likewise.
1143 (xml_xinclude_default): Likewise.
1144 (xml_xinclude_start_doctype): Likewise.
1145 (xml_xinclude_end_doctype): Likewise.
1146 (xml_xinclude_cleanup): Likewise.
1147 (xml_fetch_content_from_file): Likewise.
1148 * xml-syscall.c (free_syscalls_info): Likewise.
1149 (syscall_start_syscall): Likewise.
1150 * xml-tdesc.c (tdesc_end_arch): Likewise.
1151 (tdesc_end_osabi): Likewise.
1152 (tdesc_end_compatible): Likewise.
1153 (tdesc_start_target): Likewise.
1154 (tdesc_start_feature): Likewise.
1155 (tdesc_start_reg): Likewise.
1156 (tdesc_start_union): Likewise.
1157 (tdesc_start_struct): Likewise.
1158 (tdesc_start_flags): Likewise.
1159 (tdesc_start_field): Likewise.
1160 (tdesc_start_vector): Likewise.
1161 (fetch_available_features_from_target): Likewise.
1162 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1163 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1164 (xtensa_frame_cache): Likewise.
1165 (xtensa_frame_prev_register): Likewise.
1166 (xtensa_extract_return_value): Likewise.
1167
9a3c8263
SM
11682015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1169
1170 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1171 (aarch64_make_stub_cache): Likewise.
1172 (value_of_aarch64_user_reg): Likewise.
1173 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1174 (get_ada_inferior_data): Likewise.
1175 (get_ada_pspace_data): Likewise.
1176 (ada_pspace_data_cleanup): Likewise.
1177 (ada_complete_symbol_matcher): Likewise.
1178 (ada_exc_search_name_matches): Likewise.
1179 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1180 (get_ada_tasks_inferior_data): Likewise.
1181 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1182 (splay_obstack_alloc): Likewise.
1183 (splay_obstack_free): Likewise.
1184 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1185 (alpha_linux_collect_gregset): Likewise.
1186 (alpha_linux_supply_fpregset): Likewise.
1187 (alpha_linux_collect_fpregset): Likewise.
1188 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1189 * alpha-tdep.c (alpha_lds): Likewise.
1190 (alpha_sts): Likewise.
1191 (alpha_sigtramp_frame_unwind_cache): Likewise.
1192 (alpha_heuristic_frame_unwind_cache): Likewise.
1193 (alpha_supply_int_regs): Likewise.
1194 (alpha_fill_int_regs): Likewise.
1195 (alpha_supply_fp_regs): Likewise.
1196 (alpha_fill_fp_regs): Likewise.
1197 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1198 (alphanbsd_aout_supply_gregset): Likewise.
1199 (alphanbsd_supply_gregset): Likewise.
1200 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1201 (amd64_x32_linux_init_abi): Likewise.
1202 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1203 (amd64_collect_native_gregset): Likewise.
1204 * amd64-tdep.c (amd64_frame_cache): Likewise.
1205 (amd64_sigtramp_frame_cache): Likewise.
1206 (amd64_epilogue_frame_cache): Likewise.
1207 (amd64_supply_fxsave): Likewise.
1208 (amd64_supply_xsave): Likewise.
1209 (amd64_collect_fxsave): Likewise.
1210 (amd64_collect_xsave): Likewise.
1211 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1212 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1213 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1214 (arm_linux_collect_gregset): Likewise.
1215 (arm_linux_supply_nwfpe): Likewise.
1216 (arm_linux_collect_nwfpe): Likewise.
1217 (arm_linux_supply_vfp): Likewise.
1218 (arm_linux_collect_vfp): Likewise.
1219 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1220 (arm_prologue_unwind_stop_reason): Likewise.
1221 (arm_prologue_this_id): Likewise.
1222 (arm_prologue_prev_register): Likewise.
1223 (arm_exidx_data_free): Likewise.
1224 (arm_find_exidx_entry): Likewise.
1225 (arm_stub_this_id): Likewise.
1226 (arm_m_exception_this_id): Likewise.
1227 (arm_m_exception_prev_register): Likewise.
1228 (arm_normal_frame_base): Likewise.
1229 (gdb_print_insn_arm): Likewise.
1230 (arm_objfile_data_free): Likewise.
1231 (arm_record_special_symbol): Likewise.
1232 (value_of_arm_user_reg): Likewise.
1233 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1234 (armbsd_supply_gregset): Likewise.
1235 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1236 (get_auto_load_pspace_data): Likewise.
1237 (hash_loaded_script_entry): Likewise.
1238 (eq_loaded_script_entry): Likewise.
1239 (clear_section_scripts): Likewise.
1240 (collect_matching_scripts): Likewise.
1241 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1242 (get_auxv_inferior_data): Likewise.
1243 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1244 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1245 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1246 (target_bfd_xclose): Likewise.
1247 (target_bfd_get_section_table): Likewise.
1248 * bfin-tdep.c (bfin_frame_cache): Likewise.
1249 * block.c (find_block_in_blockvector): Likewise.
1250 (call_site_for_pc): Likewise.
1251 (block_find_non_opaque_type_preferred): Likewise.
1252 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1253 (signal_catchpoint_remove_location): Likewise.
1254 (signal_catchpoint_breakpoint_hit): Likewise.
1255 (signal_catchpoint_print_one): Likewise.
1256 (signal_catchpoint_print_mention): Likewise.
1257 (signal_catchpoint_print_recreate): Likewise.
1258 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1259 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1260 (bp_location_compare_addrs): Likewise.
1261 (get_first_locp_gte_addr): Likewise.
1262 (check_tracepoint_command): Likewise.
1263 (do_map_commands_command): Likewise.
1264 (get_breakpoint_objfile_data): Likewise.
1265 (free_breakpoint_probes): Likewise.
1266 (do_captured_breakpoint_query): Likewise.
1267 (compare_breakpoints): Likewise.
1268 (bp_location_compare): Likewise.
1269 (bpstat_remove_breakpoint_callback): Likewise.
1270 (do_delete_breakpoint_cleanup): Likewise.
1271 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1272 (bsd_uthread_set_collect_uthread): Likewise.
1273 (bsd_uthread_activate): Likewise.
1274 (bsd_uthread_fetch_registers): Likewise.
1275 (bsd_uthread_store_registers): Likewise.
1276 * btrace.c (check_xml_btrace_version): Likewise.
1277 (parse_xml_btrace_block): Likewise.
1278 (parse_xml_btrace_pt_config_cpu): Likewise.
1279 (parse_xml_btrace_pt_raw): Likewise.
1280 (parse_xml_btrace_pt): Likewise.
1281 (parse_xml_btrace_conf_bts): Likewise.
1282 (parse_xml_btrace_conf_pt): Likewise.
1283 (do_btrace_data_cleanup): Likewise.
1284 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1285 * charset.c (cleanup_iconv): Likewise.
1286 (do_cleanup_iterator): Likewise.
1287 * cli-out.c (cli_uiout_dtor): Likewise.
1288 (cli_table_begin): Likewise.
1289 (cli_table_body): Likewise.
1290 (cli_table_end): Likewise.
1291 (cli_table_header): Likewise.
1292 (cli_begin): Likewise.
1293 (cli_end): Likewise.
1294 (cli_field_int): Likewise.
1295 (cli_field_skip): Likewise.
1296 (cli_field_string): Likewise.
1297 (cli_field_fmt): Likewise.
1298 (cli_spaces): Likewise.
1299 (cli_text): Likewise.
1300 (cli_message): Likewise.
1301 (cli_wrap_hint): Likewise.
1302 (cli_flush): Likewise.
1303 (cli_redirect): Likewise.
1304 (out_field_fmt): Likewise.
1305 (field_separator): Likewise.
1306 (cli_out_set_stream): Likewise.
1307 * cli/cli-cmds.c (compare_symtabs): Likewise.
1308 * cli/cli-dump.c (call_dump_func): Likewise.
1309 (restore_section_callback): Likewise.
1310 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1311 (do_restore_user_call_depth): Likewise.
1312 (do_free_command_lines_cleanup): Likewise.
1313 * coff-pe-read.c (get_section_vmas): Likewise.
1314 (pe_as16): Likewise.
1315 (pe_as32): Likewise.
1316 * coffread.c (coff_symfile_read): Likewise.
1317 * common/agent.c (agent_look_up_symbols): Likewise.
1318 * common/filestuff.c (do_close_cleanup): Likewise.
1319 * common/format.c (free_format_pieces_cleanup): Likewise.
1320 * common/vec.c (vec_o_reserve): Likewise.
1321 * compile/compile-c-support.c (print_one_macro): Likewise.
1322 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1323 (eq_symbol_error): Likewise.
1324 (del_symbol_error): Likewise.
1325 (error_symbol_once): Likewise.
1326 (gcc_convert_symbol): Likewise.
1327 (gcc_symbol_address): Likewise.
1328 (hash_symname): Likewise.
1329 (eq_symname): Likewise.
1330 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1331 (eq_type_map_instance): Likewise.
1332 (insert_type): Likewise.
1333 (convert_type): Likewise.
1334 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1335 (setup_sections): Likewise.
1336 (link_hash_table_free): Likewise.
1337 (copy_sections): Likewise.
1338 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1339 * compile/compile.c (compile_print_value): Likewise.
1340 (do_rmdir): Likewise.
1341 (cleanup_compile_instance): Likewise.
1342 (cleanup_unlink_file): Likewise.
1343 * completer.c (free_completion_tracker): Likewise.
1344 * corelow.c (add_to_spuid_list): Likewise.
1345 * cp-namespace.c (reset_directive_searched): Likewise.
1346 * cp-support.c (reset_directive_searched): Likewise.
1347 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1348 (cris_frame_unwind_cache): Likewise.
1349 * d-lang.c (builtin_d_type): Likewise.
1350 * d-namespace.c (reset_directive_searched): Likewise.
1351 * dbxread.c (dbx_free_symfile_info): Likewise.
1352 (do_free_bincl_list_cleanup): Likewise.
1353 * disasm.c (hash_dis_line_entry): Likewise.
1354 (eq_dis_line_entry): Likewise.
1355 (dis_asm_print_address): Likewise.
1356 (fprintf_disasm): Likewise.
1357 (do_ui_file_delete): Likewise.
1358 * doublest.c (convert_floatformat_to_doublest): Likewise.
1359 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1360 (dummy_frame_prev_register): Likewise.
1361 (dummy_frame_this_id): Likewise.
1362 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1363 (cache_eq): Likewise.
1364 (cache_find): Likewise.
1365 (tailcall_frame_this_id): Likewise.
1366 (dwarf2_tailcall_prev_register_first): Likewise.
1367 (tailcall_frame_prev_register): Likewise.
1368 (tailcall_frame_dealloc_cache): Likewise.
1369 (tailcall_frame_prev_arch): Likewise.
1370 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1371 (dwarf2_frame_set_init_reg): Likewise.
1372 (dwarf2_frame_init_reg): Likewise.
1373 (dwarf2_frame_set_signal_frame_p): Likewise.
1374 (dwarf2_frame_signal_frame_p): Likewise.
1375 (dwarf2_frame_set_adjust_regnum): Likewise.
1376 (dwarf2_frame_adjust_regnum): Likewise.
1377 (clear_pointer_cleanup): Likewise.
1378 (dwarf2_frame_cache): Likewise.
1379 (find_cie): Likewise.
1380 (dwarf2_frame_find_fde): Likewise.
1381 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1382 (free_dwarf_expr_context_cleanup): Likewise.
1383 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1384 (locexpr_get_frame_base): Likewise.
1385 (loclist_find_frame_base_location): Likewise.
1386 (loclist_get_frame_base): Likewise.
1387 (dwarf_expr_dwarf_call): Likewise.
1388 (dwarf_expr_get_base_type): Likewise.
1389 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1390 (dwarf_expr_get_obj_addr): Likewise.
1391 (entry_data_value_coerce_ref): Likewise.
1392 (entry_data_value_copy_closure): Likewise.
1393 (entry_data_value_free_closure): Likewise.
1394 (get_frame_address_in_block_wrapper): Likewise.
1395 (dwarf2_evaluate_property): Likewise.
1396 (dwarf2_compile_property_to_c): Likewise.
1397 (needs_frame_read_addr_from_reg): Likewise.
1398 (needs_frame_get_reg_value): Likewise.
1399 (needs_frame_frame_base): Likewise.
1400 (needs_frame_frame_cfa): Likewise.
1401 (needs_frame_tls_address): Likewise.
1402 (needs_frame_dwarf_call): Likewise.
1403 (needs_dwarf_reg_entry_value): Likewise.
1404 (get_ax_pc): Likewise.
1405 (locexpr_read_variable): Likewise.
1406 (locexpr_read_variable_at_entry): Likewise.
1407 (locexpr_read_needs_frame): Likewise.
1408 (locexpr_describe_location): Likewise.
1409 (locexpr_tracepoint_var_ref): Likewise.
1410 (locexpr_generate_c_location): Likewise.
1411 (loclist_read_variable): Likewise.
1412 (loclist_read_variable_at_entry): Likewise.
1413 (loclist_describe_location): Likewise.
1414 (loclist_tracepoint_var_ref): Likewise.
1415 (loclist_generate_c_location): Likewise.
1416 * dwarf2read.c (line_header_hash_voidp): Likewise.
1417 (line_header_eq_voidp): Likewise.
1418 (dwarf2_has_info): Likewise.
1419 (dwarf2_get_section_info): Likewise.
1420 (locate_dwz_sections): Likewise.
1421 (hash_file_name_entry): Likewise.
1422 (eq_file_name_entry): Likewise.
1423 (delete_file_name_entry): Likewise.
1424 (dw2_setup): Likewise.
1425 (dw2_get_file_names_reader): Likewise.
1426 (dw2_find_pc_sect_compunit_symtab): Likewise.
1427 (hash_signatured_type): Likewise.
1428 (eq_signatured_type): Likewise.
1429 (add_signatured_type_cu_to_table): Likewise.
1430 (create_debug_types_hash_table): Likewise.
1431 (lookup_dwo_signatured_type): Likewise.
1432 (lookup_dwp_signatured_type): Likewise.
1433 (lookup_signatured_type): Likewise.
1434 (hash_type_unit_group): Likewise.
1435 (eq_type_unit_group): Likewise.
1436 (get_type_unit_group): Likewise.
1437 (process_psymtab_comp_unit_reader): Likewise.
1438 (sort_tu_by_abbrev_offset): Likewise.
1439 (process_skeletonless_type_unit): Likewise.
1440 (psymtabs_addrmap_cleanup): Likewise.
1441 (dwarf2_read_symtab): Likewise.
1442 (psymtab_to_symtab_1): Likewise.
1443 (die_hash): Likewise.
1444 (die_eq): Likewise.
1445 (load_full_comp_unit_reader): Likewise.
1446 (reset_die_in_process): Likewise.
1447 (free_cu_line_header): Likewise.
1448 (handle_DW_AT_stmt_list): Likewise.
1449 (hash_dwo_file): Likewise.
1450 (eq_dwo_file): Likewise.
1451 (hash_dwo_unit): Likewise.
1452 (eq_dwo_unit): Likewise.
1453 (create_dwo_cu_reader): Likewise.
1454 (create_dwo_unit_in_dwp_v1): Likewise.
1455 (create_dwo_unit_in_dwp_v2): Likewise.
1456 (lookup_dwo_unit_in_dwp): Likewise.
1457 (dwarf2_locate_dwo_sections): Likewise.
1458 (dwarf2_locate_common_dwp_sections): Likewise.
1459 (dwarf2_locate_v2_dwp_sections): Likewise.
1460 (hash_dwp_loaded_cutus): Likewise.
1461 (eq_dwp_loaded_cutus): Likewise.
1462 (lookup_dwo_cutu): Likewise.
1463 (abbrev_table_free_cleanup): Likewise.
1464 (dwarf2_free_abbrev_table): Likewise.
1465 (find_partial_die_in_comp_unit): Likewise.
1466 (free_line_header_voidp): Likewise.
1467 (follow_die_offset): Likewise.
1468 (follow_die_sig_1): Likewise.
1469 (free_heap_comp_unit): Likewise.
1470 (free_stack_comp_unit): Likewise.
1471 (dwarf2_free_objfile): Likewise.
1472 (per_cu_offset_and_type_hash): Likewise.
1473 (per_cu_offset_and_type_eq): Likewise.
1474 (get_die_type_at_offset): Likewise.
1475 (partial_die_hash): Likewise.
1476 (partial_die_eq): Likewise.
1477 (dwarf2_per_objfile_free): Likewise.
1478 (hash_strtab_entry): Likewise.
1479 (eq_strtab_entry): Likewise.
1480 (add_string): Likewise.
1481 (hash_symtab_entry): Likewise.
1482 (eq_symtab_entry): Likewise.
1483 (delete_symtab_entry): Likewise.
1484 (cleanup_mapped_symtab): Likewise.
1485 (add_indices_to_cpool): Likewise.
1486 (hash_psymtab_cu_index): Likewise.
1487 (eq_psymtab_cu_index): Likewise.
1488 (add_address_entry_worker): Likewise.
1489 (unlink_if_set): Likewise.
1490 (write_one_signatured_type): Likewise.
1491 (save_gdb_index_command): Likewise.
1492 * elfread.c (elf_symtab_read): Likewise.
1493 (elf_gnu_ifunc_cache_hash): Likewise.
1494 (elf_gnu_ifunc_cache_eq): Likewise.
1495 (elf_gnu_ifunc_record_cache): Likewise.
1496 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1497 (elf_get_probes): Likewise.
1498 (probe_key_free): Likewise.
1499 * f-lang.c (builtin_f_type): Likewise.
1500 * frame-base.c (frame_base_append_sniffer): Likewise.
1501 (frame_base_set_default): Likewise.
1502 (frame_base_find_by_frame): Likewise.
1503 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1504 (frame_unwind_append_unwinder): Likewise.
1505 (frame_unwind_find_by_frame): Likewise.
1506 * frame.c (frame_addr_hash): Likewise.
1507 (frame_addr_hash_eq): Likewise.
1508 (frame_stash_find): Likewise.
1509 (do_frame_register_read): Likewise.
1510 (unwind_to_current_frame): Likewise.
1511 (frame_cleanup_after_sniffer): Likewise.
1512 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1513 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1514 * ft32-tdep.c (ft32_frame_cache): Likewise.
1515 * gcore.c (do_bfd_delete_cleanup): Likewise.
1516 (gcore_create_callback): Likewise.
1517 * gdb_bfd.c (hash_bfd): Likewise.
1518 (eq_bfd): Likewise.
1519 (gdb_bfd_open): Likewise.
1520 (free_one_bfd_section): Likewise.
1521 (gdb_bfd_ref): Likewise.
1522 (gdb_bfd_unref): Likewise.
1523 (get_section_descriptor): Likewise.
1524 (gdb_bfd_map_section): Likewise.
1525 (gdb_bfd_crc): Likewise.
1526 (gdb_bfd_mark_parent): Likewise.
1527 (gdb_bfd_record_inclusion): Likewise.
1528 (gdb_bfd_requires_relocations): Likewise.
1529 (print_one_bfd): Likewise.
1530 * gdbtypes.c (type_pair_hash): Likewise.
1531 (type_pair_eq): Likewise.
1532 (builtin_type): Likewise.
1533 (objfile_type): Likewise.
1534 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1535 (vtable_address_point_offset): Likewise.
1536 (gnuv3_get_vtable): Likewise.
1537 (hash_value_and_voffset): Likewise.
1538 (eq_value_and_voffset): Likewise.
1539 (compare_value_and_voffset): Likewise.
1540 (compute_vtable_size): Likewise.
1541 (gnuv3_get_typeid_type): Likewise.
1542 * go-lang.c (builtin_go_type): Likewise.
1543 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1544 (bkscm_eq_block_smob): Likewise.
1545 (bkscm_objfile_block_map): Likewise.
1546 (bkscm_del_objfile_blocks): Likewise.
1547 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1548 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1549 (gdbscm_disasm_print_address): Likewise.
1550 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1551 (frscm_eq_frame_smob): Likewise.
1552 (frscm_inferior_frame_map): Likewise.
1553 (frscm_del_inferior_frames): Likewise.
1554 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1555 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1556 (ofscm_objfile_smob_from_objfile): Likewise.
1557 * guile/scm-ports.c (ioscm_write): Likewise.
1558 (ioscm_file_port_delete): Likewise.
1559 (ioscm_file_port_rewind): Likewise.
1560 (ioscm_file_port_put): Likewise.
1561 (ioscm_file_port_write): Likewise.
1562 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1563 (psscm_pspace_smob_from_pspace): Likewise.
1564 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1565 (scscm_recording_unwind_handler): Likewise.
1566 (gdbscm_with_catch): Likewise.
1567 (scscm_call_0_body): Likewise.
1568 (scscm_call_1_body): Likewise.
1569 (scscm_call_2_body): Likewise.
1570 (scscm_call_3_body): Likewise.
1571 (scscm_call_4_body): Likewise.
1572 (scscm_apply_1_body): Likewise.
1573 (scscm_eval_scheme_string): Likewise.
1574 (gdbscm_safe_eval_string): Likewise.
1575 (scscm_source_scheme_script): Likewise.
1576 (gdbscm_safe_source_script): Likewise.
1577 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1578 (gdbscm_call_scm_from_stringn): Likewise.
1579 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1580 (syscm_eq_symbol_smob): Likewise.
1581 (syscm_get_symbol_map): Likewise.
1582 (syscm_del_objfile_symbols): Likewise.
1583 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1584 (stscm_eq_symtab_smob): Likewise.
1585 (stscm_objfile_symtab_map): Likewise.
1586 (stscm_del_objfile_symtabs): Likewise.
1587 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1588 (tyscm_eq_type_smob): Likewise.
1589 (tyscm_type_map): Likewise.
1590 (tyscm_copy_type_recursive): Likewise.
1591 (save_objfile_types): Likewise.
1592 * guile/scm-utils.c (extract_arg): Likewise.
1593 * h8300-tdep.c (h8300_frame_cache): Likewise.
1594 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1595 * hppa-tdep.c (compare_unwind_entries): Likewise.
1596 (find_unwind_entry): Likewise.
1597 (hppa_frame_cache): Likewise.
1598 (hppa_stub_frame_unwind_cache): Likewise.
1599 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1600 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1601 (hppaobsd_supply_fpregset): Likewise.
1602 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1603 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1604 * i386-tdep.c (i386_frame_cache): Likewise.
1605 (i386_epilogue_frame_cache): Likewise.
1606 (i386_sigtramp_frame_cache): Likewise.
1607 (i386_supply_gregset): Likewise.
1608 (i386_collect_gregset): Likewise.
1609 (i386_gdbarch_init): Likewise.
1610 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1611 (i386obsd_trapframe_cache): Likewise.
1612 * i387-tdep.c (i387_supply_fsave): Likewise.
1613 (i387_collect_fsave): Likewise.
1614 (i387_supply_fxsave): Likewise.
1615 (i387_collect_fxsave): Likewise.
1616 (i387_supply_xsave): Likewise.
1617 (i387_collect_xsave): Likewise.
1618 * ia64-tdep.c (ia64_frame_cache): Likewise.
1619 (ia64_sigtramp_frame_cache): Likewise.
1620 * infcmd.c (attach_command_continuation): Likewise.
1621 (attach_command_continuation_free_args): Likewise.
1622 * inferior.c (restore_inferior): Likewise.
1623 (delete_thread_of_inferior): Likewise.
1624 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1625 (get_inflow_inferior_data): Likewise.
1626 (inflow_inferior_exit): Likewise.
1627 * infrun.c (displaced_step_clear_cleanup): Likewise.
1628 (restore_current_uiout_cleanup): Likewise.
1629 (release_stop_context_cleanup): Likewise.
1630 (do_restore_infcall_suspend_state_cleanup): Likewise.
1631 (do_restore_infcall_control_state_cleanup): Likewise.
1632 (restore_inferior_ptid): Likewise.
1633 * inline-frame.c (block_starting_point_at): Likewise.
1634 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1635 * jit.c (get_jit_objfile_data): Likewise.
1636 (get_jit_program_space_data): Likewise.
1637 (jit_object_close_impl): Likewise.
1638 (jit_find_objf_with_entry_addr): Likewise.
1639 (jit_breakpoint_deleted): Likewise.
1640 (jit_unwind_reg_set_impl): Likewise.
1641 (jit_unwind_reg_get_impl): Likewise.
1642 (jit_dealloc_cache): Likewise.
1643 (jit_frame_sniffer): Likewise.
1644 (jit_frame_prev_register): Likewise.
1645 (jit_prepend_unwinder): Likewise.
1646 (jit_inferior_exit_hook): Likewise.
1647 (free_objfile_data): Likewise.
1648 * jv-lang.c (jv_per_objfile_free): Likewise.
1649 (get_dynamics_objfile): Likewise.
1650 (get_java_class_symtab): Likewise.
1651 (builtin_java_type): Likewise.
1652 * language.c (language_string_char_type): Likewise.
1653 (language_bool_type): Likewise.
1654 (language_lookup_primitive_type): Likewise.
1655 (language_lookup_primitive_type_as_symbol): Likewise.
1656 * linespec.c (hash_address_entry): Likewise.
1657 (eq_address_entry): Likewise.
1658 (iterate_inline_only): Likewise.
1659 (iterate_name_matcher): Likewise.
1660 (decode_line_2_compare_items): Likewise.
1661 (collect_one_symbol): Likewise.
1662 (compare_symbols): Likewise.
1663 (compare_msymbols): Likewise.
1664 (add_symtabs_to_list): Likewise.
1665 (collect_symbols): Likewise.
1666 (compare_msyms): Likewise.
1667 (add_minsym): Likewise.
1668 (cleanup_linespec_result): Likewise.
1669 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1670 * linux-nat.c (delete_lwp_cleanup): Likewise.
1671 (count_events_callback): Likewise.
1672 (select_event_lwp_callback): Likewise.
1673 (resume_stopped_resumed_lwps): Likewise.
1674 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1675 (invalidate_linux_cache_inf): Likewise.
1676 (get_linux_inferior_data): Likewise.
1677 (linux_find_memory_regions_thunk): Likewise.
1678 (linux_make_mappings_callback): Likewise.
1679 (linux_corefile_thread_callback): Likewise.
1680 (find_mapping_size): Likewise.
1681 * linux-thread-db.c (find_new_threads_callback): Likewise.
1682 * lm32-tdep.c (lm32_frame_cache): Likewise.
1683 * m2-lang.c (builtin_m2_type): Likewise.
1684 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1685 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1686 (m32r_linux_supply_gregset): Likewise.
1687 (m32r_linux_collect_gregset): Likewise.
1688 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1689 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1690 * m68k-tdep.c (m68k_frame_cache): Likewise.
1691 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1692 (m68kbsd_supply_gregset): Likewise.
1693 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1694 * m88k-tdep.c (m88k_frame_cache): Likewise.
1695 (m88k_supply_gregset): Likewise.
1696
224c3ddb
SM
16972015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1698
1699 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1700 to allocation result assignment.
1701 * ada-exp.y (write_object_renaming): Likewise.
1702 (write_ambiguous_var): Likewise.
1703 (ada_nget_field_index): Likewise.
1704 (write_var_or_type): Likewise.
1705 * ada-lang.c (ada_decode_symbol): Likewise.
1706 (ada_value_assign): Likewise.
1707 (value_pointer): Likewise.
1708 (cache_symbol): Likewise.
1709 (add_nonlocal_symbols): Likewise.
1710 (ada_name_for_lookup): Likewise.
1711 (symbol_completion_add): Likewise.
1712 (ada_to_fixed_type_1): Likewise.
1713 (ada_get_next_arg): Likewise.
1714 (defns_collected): Likewise.
1715 * ada-lex.l (processId): Likewise.
1716 (processString): Likewise.
1717 * ada-tasks.c (read_known_tasks_array): Likewise.
1718 (read_known_tasks_list): Likewise.
1719 * ada-typeprint.c (decoded_type_name): Likewise.
1720 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1721 * amd64-tdep.c (amd64_push_arguments): Likewise.
1722 (amd64_displaced_step_copy_insn): Likewise.
1723 (amd64_classify_insn_at): Likewise.
1724 (amd64_relocate_instruction): Likewise.
1725 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1726 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1727 (initialize_current_architecture): Likewise.
1728 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1729 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1730 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1731 (arm_push_dummy_call): Likewise.
1732 (extend_buffer_earlier): Likewise.
1733 (arm_adjust_breakpoint_address): Likewise.
1734 (arm_skip_stub): Likewise.
1735 * auto-load.c (filename_is_in_pattern): Likewise.
1736 (maybe_add_script_file): Likewise.
1737 (maybe_add_script_text): Likewise.
1738 (auto_load_objfile_script_1): Likewise.
1739 * auxv.c (ld_so_xfer_auxv): Likewise.
1740 * ax-general.c (new_agent_expr): Likewise.
1741 (grow_expr): Likewise.
1742 (ax_reg_mask): Likewise.
1743 * bcache.c (bcache_full): Likewise.
1744 * breakpoint.c (program_breakpoint_here_p): Likewise.
1745 * btrace.c (parse_xml_raw): Likewise.
1746 * build-id.c (build_id_to_debug_bfd): Likewise.
1747 * buildsym.c (end_symtab_with_blockvector): Likewise.
1748 * c-exp.y (string_exp): Likewise.
1749 (qualified_name): Likewise.
1750 (write_destructor_name): Likewise.
1751 (operator_stoken): Likewise.
1752 (parse_number): Likewise.
1753 (scan_macro_expansion): Likewise.
1754 (yylex): Likewise.
1755 (c_print_token): Likewise.
1756 * c-lang.c (c_get_string): Likewise.
1757 (emit_numeric_character): Likewise.
1758 * charset.c (wchar_iterate): Likewise.
1759 * cli/cli-cmds.c (complete_command): Likewise.
1760 (make_command): Likewise.
1761 * cli/cli-dump.c (restore_section_callback): Likewise.
1762 (restore_binary_file): Likewise.
1763 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1764 * cli/cli-script.c (execute_control_command): Likewise.
1765 * cli/cli-setshow.c (do_set_command): Likewise.
1766 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1767 (read_pe_exported_syms): Likewise.
1768 * coffread.c (coff_read_struct_type): Likewise.
1769 (coff_read_enum_type): Likewise.
1770 * common/btrace-common.c (btrace_data_append): Likewise.
1771 * common/buffer.c (buffer_grow): Likewise.
1772 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1773 * common/format.c (parse_format_string): Likewise.
1774 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1775 * common/xml-utils.c (xml_escape_text): Likewise.
1776 * compile/compile-object-load.c (copy_sections): Likewise.
1777 (compile_object_load): Likewise.
1778 * compile/compile-object-run.c (compile_object_run): Likewise.
1779 * completer.c (filename_completer): Likewise.
1780 * corefile.c (read_memory_typed_address): Likewise.
1781 (write_memory_unsigned_integer): Likewise.
1782 (write_memory_signed_integer): Likewise.
1783 (complete_set_gnutarget): Likewise.
1784 * corelow.c (get_core_register_section): Likewise.
1785 * cp-name-parser.y (d_grab): Likewise.
1786 (allocate_info): Likewise.
1787 (cp_new_demangle_parse_info): Likewise.
1788 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1789 (cp_lookup_symbol_in_namespace): Likewise.
1790 (lookup_namespace_scope): Likewise.
1791 (find_symbol_in_baseclass): Likewise.
1792 (cp_lookup_nested_symbol): Likewise.
1793 (cp_lookup_transparent_type_loop): Likewise.
1794 * cp-support.c (copy_string_to_obstack): Likewise.
1795 (make_symbol_overload_list): Likewise.
1796 (make_symbol_overload_list_namespace): Likewise.
1797 (make_symbol_overload_list_adl_namespace): Likewise.
1798 (first_component_command): Likewise.
1799 * cp-valprint.c (cp_print_value): Likewise.
1800 * ctf.c (ctf_xfer_partial): Likewise.
1801 * d-exp.y (StringExp): Likewise.
1802 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1803 (lookup_module_scope): Likewise.
1804 (find_symbol_in_baseclass): Likewise.
1805 (d_lookup_nested_symbol): Likewise.
1806 * dbxread.c (find_stab_function_addr): Likewise.
1807 (read_dbx_symtab): Likewise.
1808 (dbx_end_psymtab): Likewise.
1809 (cp_set_block_scope): Likewise.
1810 * dcache.c (dcache_alloc): Likewise.
1811 * demangle.c (_initialize_demangler): Likewise.
1812 * dicos-tdep.c (dicos_load_module_p): Likewise.
1813 * dictionary.c (dict_create_hashed_expandable): Likewise.
1814 (dict_create_linear_expandable): Likewise.
1815 (expand_hashtable): Likewise.
1816 (add_symbol_linear_expandable): Likewise.
1817 * dwarf2-frame.c (add_cie): Likewise.
1818 (add_fde): Likewise.
1819 (dwarf2_build_frame_info): Likewise.
1820 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1821 (dwarf_expr_fetch_address): Likewise.
1822 (add_piece): Likewise.
1823 (execute_stack_op): Likewise.
1824 * dwarf2loc.c (chain_candidate): Likewise.
1825 (dwarf_entry_parameter_to_value): Likewise.
1826 (read_pieced_value): Likewise.
1827 (write_pieced_value): Likewise.
1828 * dwarf2read.c (dwarf2_read_section): Likewise.
1829 (add_type_unit): Likewise.
1830 (read_comp_units_from_section): Likewise.
1831 (fixup_go_packaging): Likewise.
1832 (dwarf2_compute_name): Likewise.
1833 (dwarf2_physname): Likewise.
1834 (create_dwo_unit_in_dwp_v1): Likewise.
1835 (create_dwo_unit_in_dwp_v2): Likewise.
1836 (read_func_scope): Likewise.
1837 (read_call_site_scope): Likewise.
1838 (dwarf2_attach_fields_to_type): Likewise.
1839 (process_structure_scope): Likewise.
1840 (mark_common_block_symbol_computed): Likewise.
1841 (read_common_block): Likewise.
1842 (abbrev_table_read_table): Likewise.
1843 (guess_partial_die_structure_name): Likewise.
1844 (fixup_partial_die): Likewise.
1845 (add_file_name): Likewise.
1846 (dwarf2_const_value_data): Likewise.
1847 (dwarf2_const_value_attr): Likewise.
1848 (build_error_marker_type): Likewise.
1849 (guess_full_die_structure_name): Likewise.
1850 (anonymous_struct_prefix): Likewise.
1851 (typename_concat): Likewise.
1852 (dwarf2_canonicalize_name): Likewise.
1853 (dwarf2_name): Likewise.
1854 (write_constant_as_bytes): Likewise.
1855 (dwarf2_fetch_constant_bytes): Likewise.
1856 (copy_string): Likewise.
1857 (parse_macro_definition): Likewise.
1858 * elfread.c (elf_symfile_segments): Likewise.
1859 (elf_rel_plt_read): Likewise.
1860 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1861 (elf_gnu_ifunc_resolve_by_got): Likewise.
1862 (elf_read_minimal_symbols): Likewise.
1863 (elf_gnu_ifunc_record_cache): Likewise.
1864 * event-top.c (top_level_prompt): Likewise.
1865 (command_line_handler): Likewise.
1866 * exec.c (resize_section_table): Likewise.
1867 * expprint.c (print_subexp_standard): Likewise.
1868 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1869 * findcmd.c (parse_find_args): Likewise.
1870 * findvar.c (address_from_register): Likewise.
1871 * frame.c (get_prev_frame_always): Likewise.
1872 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1873 (get_section_descriptor): Likewise.
1874 * gdb_obstack.c (obconcat): Likewise.
1875 (obstack_strdup): Likewise.
1876 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1877 (create_set_type): Likewise.
1878 (lookup_unsigned_typename): Likewise.
1879 (lookup_signed_typename): Likewise.
1880 (resolve_dynamic_union): Likewise.
1881 (resolve_dynamic_struct): Likewise.
1882 (add_dyn_prop): Likewise.
1883 (copy_dynamic_prop_list): Likewise.
1884 (arch_flags_type): Likewise.
1885 (append_composite_type_field_raw): Likewise.
1886 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1887 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1888 * go-exp.y (string_exp): Likewise.
1889 * go-lang.c (go_demangle): Likewise.
1890 * guile/guile.c (compute_scheme_string): Likewise.
1891 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1892 (gdbscm_canonicalize_command_name): Likewise.
1893 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1894 (ioscm_init_memory_port): Likewise.
1895 (ioscm_reinit_memory_port): Likewise.
1896 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1897 (gdbscm_gc_dup_argv): Likewise.
1898 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1899 * hppa-tdep.c (internalize_unwinds): Likewise.
1900 (read_unwind_info): Likewise.
1901 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1902 (windows_core_xfer_shared_libraries): Likewise.
1903 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1904 (i386_stap_parse_special_token_triplet): Likewise.
1905 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1906 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1907 * inf-child.c (inf_child_fileio_readlink): Likewise.
1908 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1909 (inf_ptrace_store_register): Likewise.
1910 * infrun.c (follow_exec): Likewise.
1911 (displaced_step_prepare_throw): Likewise.
1912 (save_stop_context): Likewise.
1913 (save_infcall_suspend_state): Likewise.
1914 * jit.c (jit_read_descriptor): Likewise.
1915 (jit_read_code_entry): Likewise.
1916 (jit_symtab_line_mapping_add_impl): Likewise.
1917 (finalize_symtab): Likewise.
1918 (jit_unwind_reg_get_impl): Likewise.
1919 * jv-exp.y (QualifiedName): Likewise.
1920 * jv-lang.c (get_java_utf8_name): Likewise.
1921 (type_from_class): Likewise.
1922 (java_demangle_type_signature): Likewise.
1923 (java_class_name_from_physname): Likewise.
1924 * jv-typeprint.c (java_type_print_base): Likewise.
1925 * jv-valprint.c (java_value_print): Likewise.
1926 * language.c (add_language): Likewise.
1927 * linespec.c (add_sal_to_sals_basic): Likewise.
1928 (add_sal_to_sals): Likewise.
1929 (decode_objc): Likewise.
1930 (find_linespec_symbols): Likewise.
1931 * linux-fork.c (fork_save_infrun_state): Likewise.
1932 * linux-nat.c (linux_nat_detach): Likewise.
1933 (linux_nat_fileio_readlink): Likewise.
1934 * linux-record.c (record_linux_sockaddr): Likewise.
1935 (record_linux_msghdr): Likewise.
1936 (Do): Likewise.
1937 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1938 (linux_collect_regset_section_cb): Likewise.
1939 (linux_get_siginfo_data): Likewise.
1940 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1941 (try_thread_db_load_from_dir): Likewise.
1942 (thread_db_load_search): Likewise.
1943 (info_auto_load_libthread_db): Likewise.
1944 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1945 (m32c_m16c_pointer_to_address): Likewise.
1946 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1947 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1948 * machoread.c (macho_check_dsym): Likewise.
1949 * macroexp.c (resize_buffer): Likewise.
1950 (gather_arguments): Likewise.
1951 (maybe_expand): Likewise.
1952 * macrotab.c (new_macro_key): Likewise.
1953 (new_source_file): Likewise.
1954 (new_macro_definition): Likewise.
1955 * mdebugread.c (parse_symbol): Likewise.
1956 (parse_type): Likewise.
1957 (parse_partial_symbols): Likewise.
1958 (psymtab_to_symtab_1): Likewise.
1959 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1960 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1961 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1962 (mi_cmd_data_read_memory_bytes): Likewise.
1963 (mi_cmd_data_write_memory_bytes): Likewise.
1964 (mi_cmd_trace_frame_collected): Likewise.
1965 * mi/mi-parse.c (mi_parse_argv): Likewise.
1966 (mi_parse): Likewise.
1967 * minidebug.c (lzma_open): Likewise.
1968 (lzma_pread): Likewise.
1969 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1970 (mips_print_fp_register): Likewise.
1971 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1972 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1973 * mt-tdep.c (mt_register_name): Likewise.
1974 (mt_registers_info): Likewise.
1975 (mt_push_dummy_call): Likewise.
1976 * namespace.c (add_using_directive): Likewise.
1977 * nat/linux-btrace.c (perf_event_read): Likewise.
1978 (linux_enable_bts): Likewise.
1979 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1980 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1981 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1982 (nto_parse_redirection): Likewise.
1983 * objc-lang.c (objc_demangle): Likewise.
1984 (find_methods): Likewise.
1985 * objfiles.c (get_objfile_bfd_data): Likewise.
1986 (set_objfile_main_name): Likewise.
1987 (allocate_objfile): Likewise.
1988 (objfile_relocate): Likewise.
1989 (update_section_map): Likewise.
1990 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1991 * p-exp.y (exp): Likewise.
1992 (yylex): Likewise.
1993 * p-valprint.c (pascal_object_print_value): Likewise.
1994 * parse.c (initialize_expout): Likewise.
1995 (mark_completion_tag): Likewise.
1996 (copy_name): Likewise.
1997 (parse_float): Likewise.
1998 (type_stack_reserve): Likewise.
1999 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2000 (ppu2spu_prev_register): Likewise.
2001 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2002 * printcmd.c (printf_wide_c_string): Likewise.
2003 (printf_pointer): Likewise.
2004 * probe.c (parse_probes): Likewise.
2005 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2006 (cmdpy_init): Likewise.
2007 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2008 * python/py-symtab.c (set_sal): Likewise.
2009 * python/py-unwind.c (pyuw_sniffer): Likewise.
2010 * python/python.c (python_interactive_command): Likewise.
2011 (compute_python_string): Likewise.
2012 * ravenscar-thread.c (get_running_thread_id): Likewise.
2013 * record-full.c (record_full_exec_insn): Likewise.
2014 (record_full_core_open_1): Likewise.
2015 * regcache.c (regcache_raw_read_signed): Likewise.
2016 (regcache_raw_read_unsigned): Likewise.
2017 (regcache_cooked_read_signed): Likewise.
2018 (regcache_cooked_read_unsigned): Likewise.
2019 * remote-fileio.c (remote_fileio_func_open): Likewise.
2020 (remote_fileio_func_rename): Likewise.
2021 (remote_fileio_func_unlink): Likewise.
2022 (remote_fileio_func_stat): Likewise.
2023 (remote_fileio_func_system): Likewise.
2024 * remote-mips.c (mips_xfer_memory): Likewise.
2025 (mips_load_srec): Likewise.
2026 (pmon_end_download): Likewise.
2027 * remote.c (new_remote_state): Likewise.
2028 (map_regcache_remote_table): Likewise.
2029 (remote_register_number_and_offset): Likewise.
2030 (init_remote_state): Likewise.
2031 (get_memory_packet_size): Likewise.
2032 (remote_pass_signals): Likewise.
2033 (remote_program_signals): Likewise.
2034 (remote_start_remote): Likewise.
2035 (remote_check_symbols): Likewise.
2036 (remote_query_supported): Likewise.
2037 (extended_remote_attach): Likewise.
2038 (process_g_packet): Likewise.
2039 (store_registers_using_G): Likewise.
2040 (putpkt_binary): Likewise.
2041 (read_frame): Likewise.
2042 (compare_sections_command): Likewise.
2043 (remote_hostio_pread): Likewise.
2044 (remote_hostio_readlink): Likewise.
2045 (remote_file_put): Likewise.
2046 (remote_file_get): Likewise.
2047 (remote_pid_to_exec_file): Likewise.
2048 (_initialize_remote): Likewise.
2049 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2050 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2051 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2052 (bfd_uses_spe_extensions): Likewise.
2053 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2054 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2055 * solib-dsbt.c (decode_loadmap): Likewise.
2056 (fetch_loadmap): Likewise.
2057 (scan_dyntag): Likewise.
2058 (enable_break): Likewise.
2059 (dsbt_relocate_main_executable): Likewise.
2060 * solib-frv.c (fetch_loadmap): Likewise.
2061 (enable_break2): Likewise.
2062 (frv_relocate_main_executable): Likewise.
2063 * solib-spu.c (spu_relocate_main_executable): Likewise.
2064 (spu_bfd_open): Likewise.
2065 * solib-svr4.c (lm_info_read): Likewise.
2066 (read_program_header): Likewise.
2067 (find_program_interpreter): Likewise.
2068 (scan_dyntag): Likewise.
2069 (elf_locate_base): Likewise.
2070 (open_symbol_file_object): Likewise.
2071 (read_program_headers_from_bfd): Likewise.
2072 (svr4_relocate_main_executable): Likewise.
2073 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2074 * solib.c (solib_find_1): Likewise.
2075 (exec_file_find): Likewise.
2076 (solib_find): Likewise.
2077 * source.c (openp): Likewise.
2078 (print_source_lines_base): Likewise.
2079 (forward_search_command): Likewise.
2080 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2081 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2082 (spu_get_overlay_table): Likewise.
2083 * stabsread.c (patch_block_stabs): Likewise.
2084 (define_symbol): Likewise.
2085 (again:): Likewise.
2086 (read_member_functions): Likewise.
2087 (read_one_struct_field): Likewise.
2088 (read_enum_type): Likewise.
2089 (common_block_start): Likewise.
2090 * stack.c (read_frame_arg): Likewise.
2091 (backtrace_command): Likewise.
2092 * stap-probe.c (stap_parse_register_operand): Likewise.
2093 * symfile.c (syms_from_objfile_1): Likewise.
2094 (find_separate_debug_file): Likewise.
2095 (load_command): Likewise.
2096 (load_progress): Likewise.
2097 (load_section_callback): Likewise.
2098 (reread_symbols): Likewise.
2099 (add_filename_language): Likewise.
2100 (allocate_compunit_symtab): Likewise.
2101 (read_target_long_array): Likewise.
2102 (simple_read_overlay_table): Likewise.
2103 * symtab.c (symbol_set_names): Likewise.
2104 (resize_symbol_cache): Likewise.
2105 (rbreak_command): Likewise.
2106 (completion_list_add_name): Likewise.
2107 (completion_list_objc_symbol): Likewise.
2108 (add_filename_to_list): Likewise.
2109 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2110 * target-memory.c (target_write_memory_blocks): Likewise.
2111 * target.c (target_read_string): Likewise.
2112 (read_whatever_is_readable): Likewise.
2113 (target_read_alloc_1): Likewise.
2114 (simple_search_memory): Likewise.
2115 (target_fileio_read_alloc_1): Likewise.
2116 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2117 * top.c (command_line_input): Likewise.
2118 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2119 * tracefile.c (tracefile_fetch_registers): Likewise.
2120 * tracepoint.c (add_memrange): Likewise.
2121 (init_collection_list): Likewise.
2122 (add_aexpr): Likewise.
2123 (trace_dump_actions): Likewise.
2124 (parse_trace_status): Likewise.
2125 (parse_tracepoint_definition): Likewise.
2126 (parse_tsv_definition): Likewise.
2127 (parse_static_tracepoint_marker_definition): Likewise.
2128 * tui/tui-file.c (tui_sfileopen): Likewise.
2129 (tui_file_adjust_strbuf): Likewise.
2130 * tui/tui-io.c (tui_expand_tabs): Likewise.
2131 * tui/tui-source.c (tui_set_source_content): Likewise.
2132 * typeprint.c (find_global_typedef): Likewise.
2133 * ui-file.c (do_ui_file_xstrdup): Likewise.
2134 (ui_file_obsavestring): Likewise.
2135 (mem_file_write): Likewise.
2136 * utils.c (make_hex_string): Likewise.
2137 (get_regcomp_error): Likewise.
2138 (puts_filtered_tabular): Likewise.
2139 (gdb_realpath_keepfile): Likewise.
2140 (ldirname): Likewise.
2141 (gdb_bfd_errmsg): Likewise.
2142 (substitute_path_component): Likewise.
2143 * valops.c (search_struct_method): Likewise.
2144 (find_oload_champ_namespace_loop): Likewise.
2145 * valprint.c (print_decimal_chars): Likewise.
2146 (read_string): Likewise.
2147 (generic_emit_char): Likewise.
2148 * varobj.c (varobj_delete): Likewise.
2149 (varobj_value_get_print_value): Likewise.
2150 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2151 * windows-tdep.c (display_one_tib): Likewise.
2152 * xcoffread.c (read_xcoff_symtab): Likewise.
2153 (process_xcoff_symbol): Likewise.
2154 (swap_sym): Likewise.
2155 (scan_xcoff_symtab): Likewise.
2156 (xcoff_initial_scan): Likewise.
2157 * xml-support.c (gdb_xml_end_element): Likewise.
2158 (xml_process_xincludes): Likewise.
2159 (xml_fetch_content_from_file): Likewise.
2160 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2161 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2162
623fb775 21632015-09-23 James Bowman <james.bowman@ftdichip.com>
2164
2165 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2166 instead of builtin_func_ptr.
2167 (ft32_pointer_to_address): New function.
2168 (ft32_address_class_type_flags): New function.
2169 (ft32_address_class_type_flags_to_name): New function.
2170 (ft32_address_class_name_to_type_flags): New function.
2171 (ft32_gdbarch_init): Set tdep->pc_type. Call
2172 set_gdbarch_pointer_to_address,
2173 set_gdbarch_address_class_type_flags
2174 set_gdbarch_address_class_name_to_type_flags,
2175 and set_gdbarch_address_class_type_flags_to_name.
2176 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2177
e6c2c623
PMR
21782015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2179
2180 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2181 value is a reference, actually dereference it in order to get
2182 the underlying value.
2183
bc1f8cda
SM
21842015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2185
2186 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2187
acaa662f
SM
21882015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2189
2190 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2191 * linespec.c (linespec_lexer_lex_string): Same.
2192
4d9d419e
PL
21932015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2194
2195 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2196
6ec5f4be
PL
21972015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2198
2199 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2200 variable. Call aarch64_decode_adr instead of
2201 aarch64_decode_adrp.
2202 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2203 (aarch64_decode_adr): New function declaration.
2204 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2205 (aarch64_decode_adr): New function, factored out from
2206 aarch64_decode_adrp to decode both adr and adrp instructions.
2207
787749ea
PL
22082015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2209
2210 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2211 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2212 (aarch64-insn.o): New rule.
2213 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2214 (aarch64*-*-linux*): Likewise.
2215 * arch/aarch64-insn.c: New file.
2216 * arch/aarch64-insn.h: New file.
2217 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2218 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2219 arch/aarch64-insn.h.
2220 (decode_add_sub_imm): Rename to ...
2221 (aarch64_decode_add_sub_imm): ... this.
2222 (decode_adrp): Rename to ...
2223 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2224 Declare in arch/aarch64-insn.h.
2225 (decode_b): Rename to ...
2226 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2227 Declare in arch/aarch64-insn.h.
2228 (decode_bcond): Rename to ...
2229 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2230 Declare in arch/aarch64-insn.h.
2231 (decode_br): Rename to ...
2232 (aarch64_decode_br): ... this.
2233 (decode_cb): Rename to ...
2234 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2235 Declare in arch/aarch64-insn.h.
2236 (decode_eret): Rename to ...
2237 (aarch64_decode_eret): ... this.
2238 (decode_movz): Rename to ...
2239 (aarch64_decode_movz): ... this.
2240 (decode_orr_shifted_register_x): Rename to ...
2241 (aarch64_decode_orr_shifted_register_x): ... this.
2242 (decode_ret): Rename to ...
2243 (aarch64_decode_ret): ... this.
2244 (decode_stp_offset): Rename to ...
2245 (aarch64_decode_stp_offset): ... this.
2246 (decode_stp_offset_wb): Rename to ...
2247 (aarch64_decode_stp_offset_wb): ... this.
2248 (decode_stur): Rename to ...
2249 (aarch64_decode_stur): ... this.
2250 (decode_tb): Rename to ...
2251 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2252 Declare in arch/aarch64-insn.h.
2253 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2254
183dc7ec
DE
22552015-09-20 Doug Evans <xdje42@gmail.com>
2256
2257 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2258
2ee7123e
DE
22592015-09-20 Doug Evans <xdje42@gmail.com>
2260
2261 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2262 variable name that collides with a parameter.
2263
7d1c9c9b
JB
22642015-09-20 Joel Brobecker <brobecker@adacore.com>
2265
2266 * dwarf2loc.c (locexpr_get_frame_base): Renames
2267 block_op_get_frame_base.
2268 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2269 block_op_get_frame_base by reference to locexpr_get_frame_base.
2270 (loclist_get_frame_base): New function, near identical copy of
2271 locexpr_get_frame_base.
2272 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2273 block_op_get_frame_base by reference to loclist_get_frame_base.
2274
7dc7c195
DE
22752015-09-19 Doug Evans <xdje42@gmail.com>
2276
2277 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2278 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2279
be550b6e
DE
22802015-09-18 Doug Evans <xdje42@gmail.com>
2281
2282 * linux-thread-db.c (record_thread): Return the created thread.
2283 (thread_from_lwp): Likewise.
2284 (thread_db_get_thread_local_address): Update.
2285
615b3f62
DE
22862015-09-18 Doug Evans <xdje42@gmail.com>
2287
2288 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2289 move only member demangled_name up. All uses updated.
2290
015d2e7e
DE
22912015-09-18 Doug Evans <xdje42@gmail.com>
2292
2293 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2294 kind of minimal symbol in the error message.
2295 * objfiles.c (objfile_flavour_name): New function.
2296 * objfiles.h (objfile_flavour_name): Declare.
2297
a0cc84cd
YQ
22982015-09-18 Yao Qi <yao.qi@linaro.org>
2299
2300 * nat/aarch64-linux.c: Include elf/common.h,
2301 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2302 (aarch64_ps_get_thread_area): New function.
2303 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2304 (aarch64_ps_get_thread_area): Declare.
2305 * aarch64-linux-nat.c (ps_get_thread_area): Call
2306 aarch64_ps_get_thread_area.
2307
d2939ba2
MM
23082015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2309
2310 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2311
f2665db5
MM
23122015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2313
2314 * NEWS: Announce new scheduler-locking mode.
2315 * infrun.c (schedlock_replay): New.
2316 (scheduler_enums): Add schedlock_replay.
2317 (scheduler_mode): Change default to schedlock_replay.
2318 (user_visible_resume_ptid): Handle schedlock_replay.
2319 (clear_proceed_status_thread): Stop replaying if resumed thread is
2320 not replaying.
2321 (schedlock_applies): Handle schedlock_replay.
2322 (_initialize_infrun): Document new scheduler-locking mode.
2323 * record-btrace.c (record_btrace_resume): Remove code to stop other
2324 threads when not replaying the resumed thread.
2325
7ff27e9b
MM
23262015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2327
2328 * record-btrace.c ((record_btrace_will_replay): New.
2329 (init_record_btrace_ops): Initialize to_record_will_replay.
2330 * record-full.c ((record_full_will_replay): New.
2331 (init_record_full_ops): Initialize to_record_will_replay.
2332 * target-delegates.c: Regenerated.
2333 * target.c (target_record_will_replay): New.
2334 * target.h (struct target_ops) <to_record_will_replay>: New.
2335 (target_record_will_replay): New.
2336
797094dd
MM
23372015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2338
2339 * record-btrace.c (record_btrace_resume): Call
2340 target_record_stop_replaying.
2341 (record_btrace_stop_replaying_all): New.
2342 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2343 * record-full.c (record_full_stop_replaying): New.
2344 (init_record_full_ops ): Initialize to_record_stop_replaying.
2345 * target-delegates.c: Regenerated.
2346 * target.c (target_record_stop_replaying): New.
2347 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2348 (target_record_stop_replaying): New.
2349
4d10e986
MM
23502015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2351
2352 * record-btrace.c (record_btrace_xfer_partial)
2353 (record_btrace_store_registers, record_btrace_prepare_to_store):
2354 Call record_btrace_is_replaying with inferior_ptid instead of
2355 minus_one_ptid.
2356 (record_btrace_store_registers): Change error message.
2357
a52eab48
MM
23582015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2359
2360 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2361 Update users to pass minus_one_ptid.
2362 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2363 * record.c (cmd_record_delete): Pass inferior_ptid to
2364 target_record_is_replaying.
2365 * target-delegates.c: Regenerated.
2366 * target.c (target_record_is_replaying): Add ptid argument.
2367 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2368 argument.
2369 (target_record_is_replaying): Add ptid argument.
2370
cbb55fa7
MM
23712015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2372
2373 * record-btrace.c (record_btrace_open): Remove non_stop check.
2374 * NEWS: Announce that record btrace supports non-stop mode.
2375
d1988021
MM
23762015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2377
2378 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2379 in the TARKET_WAITKIND_NO_HISTORY case.
2380
a6b5be76
MM
23812015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2382
2383 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2384 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2385
ec71cc2f
MM
23862015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2387
2388 * record-btrace.c (get_thread_current_frame): New.
2389 (record_btrace_start_replaying): Call get_thread_current_frame.
2390
0ca912df
MM
23912015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2392
2393 * record-btrace.c (record_btrace_resume_thread): A move request
2394 overwrites a previous move request.
2395 (record_btrace_find_resume_thread): Removed.
2396 (record_btrace_resume): Resume all requested threads.
2397
e3cfc1c7
MM
23982015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2399
2400 * record-btrace.c: Include vec.h.
2401 (record_btrace_find_thread_to_move): Removed.
2402 (btrace_step_no_resumed, btrace_step_again)
2403 (record_btrace_stop_replaying_at_end): New.
2404 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2405 (record_btrace_single_step_forward): Remove calls to
2406 record_btrace_stop_replaying.
2407 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2408 BTHR_RCONT. Keep threads at the end of their history moving.
2409 (record_btrace_wait): Call record_btrace_step_thread for all threads
2410 until one reports an event. Call record_btrace_stop_replaying_at_end
2411 for the eventing thread.
2412
cf8f8f0c
MM
24132015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2414
2415 * record-btrace.c (record_btrace_single_step_forward): Return
2416 NO_HISTORY if a step brings us to the end of the execution history.
2417
011c71b6
MM
24182015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2419
2420 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2421 to ...
2422 (record_btrace_single_step_forward): ... here and
2423 (record_btrace_single_step_backward): ... here.
2424
d825d248
MM
24252015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2426
2427 * record-btrace.c (btrace_step_spurious)
2428 (record_btrace_single_step_forward)
2429 (record_btrace_single_step_backward): New.
2430 (record_btrace_step_thread): Call record_btrace_single_step_forward
2431 and record_btrace_single_step_backward.
2432
3c615f99
MM
24332015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2434
2435 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2436 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2437
987e68b1
MM
24382015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2439
2440 * record-btrace.c (btrace_thread_flag_to_str)
2441 (record_btrace_cancel_resume): New.
2442 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2443 (record_btrace_resume): Print execution direction.
2444 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2445 (record_btrace_wait): Call record_btrace_cancel_resume.
2446
6e4879f0
MM
24472015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2448
2449 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2450 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2451 (record_btrace_find_thread_to_move): Also accept threads that have
2452 BTHR_STOP set.
2453 (btrace_step_stopped_on_request, record_btrace_stop): New.
2454 (record_btrace_step_thread): Support BTHR_STOP.
2455 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2456 (init_record_btrace_ops): Initialize to_stop.
2457
5953356c
MM
24582015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2459
2460 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2461 target_is_non_stop_p ().
2462
bfca584f
PMR
24632015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2464
2465 * ada-typeprint.c (print_array_type): Do not describe arrays as
2466 packed when they embed dynamic elements.
2467
5382cfab
PW
24682015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2469
2470 * symtab.h (address_class): Document that TLS variables
2471 are handled by LOC_UNRESOLVED.
2472 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2473 * printcmd.c (address_info): Don't relocate TLS variables.
2474
b277c936
PL
24752015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2476
2477 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2478 (decode_adrp): Likewise.
2479 (decode_b): Likewise.
2480 (decode_bcond): Likewise.
2481 (decode_br): Likewise.
2482 (decode_cb): Likewise.
2483 (decode_eret): Likewise.
2484 (decode_movz): Likewise.
2485 (decode_orr_shifted_register_x): Likewise.
2486 (decode_ret): Likewise.
2487 (decode_stp_offset): Likewise.
2488 (decode_stp_offset_wb): Likewise.
2489 (decode_stur): Likewise.
2490 (decode_tb): Likewise.
2491 (aarch64_analyze_prologue): Likewise.
2492 (pass_in_x): Likewise.
2493 (pass_in_v): Likewise.
2494 (pass_on_stack): Likewise.
2495 (aarch64_push_dummy_call): Likewise.
2496 (aarch64_extract_return_value): Likewise.
2497 (aarch64_store_return_value): Likewise.
2498 (aarch64_return_value): Likewise.
2499 (aarch64_record_asimd_load_store): Likewise.
2500 (aarch64_record_load_store): Likewise.
2501 (aarch64_record_data_proc_simd_fp): Likewise.
2502
141c5cc4
JK
25032015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2504
2505 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2506 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2507 (ppc64_skip_trampoline_code_1): ... here.
2508 (ppc64_skip_trampoline_code): New wrapper function.
2509 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2510
750ce8d1
YQ
25112015-09-15 Yao Qi <yao.qi@linaro.org>
2512
2513 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2514 function.
2515 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2516 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2517 if target_can_do_single_step returns 1.
2518 * remote.c (struct vCont_action_support) <s, S>: New fields.
2519 (PACKET_vContSupported): New enum.
2520 (remote_protocol_features): New element for vContSupported.
2521 (remote_query_supported): Append "vContSupported+".
2522 (remote_vcont_probe): Remove support_s and support_S, use
2523 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2524 vCont packet if c and C actions are not supported.
2525 (remote_can_do_single_step): New function.
2526 (init_remote_ops): Install it to to_can_do_single_step.
2527 (_initialize_remote): Call add_packet_config_cmd.
2528 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2529 (target_can_do_single_step): New macro.
2530 * target-delegates.c: Re-generated.
2531
ade90bde
YQ
25322015-09-15 Yao Qi <yao.qi@linaro.org>
2533
2534 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2535 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2536 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2537 New function.
2538 (aarch64_siginfo_from_compat_siginfo): New function.
2539 * nat/aarch64-linux.h: Include signal.h.
2540 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2541 (compat_timer_t, compat_clock_t): Likewise.
2542 (struct compat_timeval): New.
2543 (union compat_sigval): New.
2544 (struct compat_siginfo): New.
2545 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2546 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2547 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2548 (cpt_si_band, cpt_si_fd): Likewise.
2549
4c2f2a79
PA
25502015-09-14 Pedro Alves <palves@redhat.com>
2551
2552 * infrun.c (current_stop_id): New global.
2553 (get_stop_id, new_stop_id): New functions.
2554 (fetch_inferior_event): Handle normal_stop proceeding the target.
2555 (struct stop_context): New.
2556 (save_stop_context, release_stop_context_cleanup)
2557 (stop_context_changed): New functions.
2558 (normal_stop): Return true if the hook-stop changes the stop
2559 context.
2560 * infrun.h (get_stop_id): Declare.
2561 (normal_stop): Now returns int. Add documentation.
2562
919e6dbe
PMR
25632015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2564
2565 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2566 comment. Handle packed arrays.
2567
b027a8fa
PA
25682015-09-14 Pedro Alves <palves@redhat.com>
2569
2570 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2571 mention of maint set/show target-non-stop.
2572
b459a59b
DB
25732015-09-11 Don Breazeal <donb@codesourcery.com>
2574
2575 * NEWS: Announce new remote packets for the exec-events
2576 feature and the exec-events feature and associated commands.
2577
d46addbb
DB
25782015-09-11 Don Breazeal <donb@codesourcery.com>
2579
2580 * remote.c (remote_exec_event_p): New function.
2581 (remote_insert_exec_catchpoint): New function.
2582 (remote_remove_exec_catchpoint): New function.
2583 (init_extended_remote_ops): Initialize extended_remote_ops
2584 members to_insert_exec_catchpoint and
2585 to_remove_exec_catchpoint.
2586
94585166
DB
25872015-09-11 Don Breazeal <donb@codesourcery.com>
2588 Luis Machado <lgustavo@codesourcery.com>
2589
2590 * infrun.c (follow_exec): Use process-style ptid for
2591 exec message. Call add_inferior_with_spaces and
2592 target_follow_exec.
2593 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2594 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2595 * remote.c (remote_pspace_data): New static variable.
2596 (remote_pspace_data_cleanup): New function.
2597 (get_remote_exec_file): New function.
2598 (set_remote_exec_file_1): New function.
2599 (set_remote_exec_file): New function.
2600 (show_remote_exec_file): New function.
2601 (remote_exec_file): Delete static variable.
2602 (anonymous enum) <PACKET_exec_event_feature>: New
2603 enumeration constant.
2604 (remote_protocol_features): Add entry for exec-events feature.
2605 (remote_query_supported): Add client side of qSupported query
2606 for exec-events feature.
2607 (remote_follow_exec): New function.
2608 (remote_parse_stop_reply): Handle 'exec' stop reason.
2609 (extended_remote_run, extended_remote_create_inferior): Call
2610 get_remote_exec_file and set_remote_exec_file_1.
2611 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2612 member.
2613 (_initialize_remote): Call
2614 register_program_space_data_with_cleanup. Call
2615 add_packet_config_cmd for remote exec-events feature.
2616 Modify call to add_setshow_string_noescape_cmd for exec-file
2617 to use new functions set_remote_exec_file and
2618 show_remote_exec_file.
2619 * target-debug.h, target-delegates.c: Regenerated.
2620 * target.c (target_follow_exec): New function.
2621 * target.h (struct target_ops) <to_follow_exec>: New member.
2622 (target_follow_exec): Declare new function.
2623
669e74e8
PL
26242015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2625
2626 * aarch64-tdep.c (decode_cb): Move up comment describing the
2627 encoding.
2628 (decode_tb): Fix a typo in comment above the function. Move up
2629 comment describing the encoding.
2630
4d50586d
PL
26312015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2632
2633 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2634
6dcaef99
MMN
26352015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2636
2637 PR gdb/18947
2638 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2639 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2640
5da1a4d3
SM
26412015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2642
2643 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2644 operations.
2645
108d56a4
SM
26462015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2647
2648 * ada-lang.c (ada_search_struct_field): Constify parameters
2649 and/or variables..
2650 (xget_renaming_scope): Likewise.
2651 (ada_is_redundant_range_encoding): Likewise.
2652 (scan_discrim_bound): Likewise.
2653 (to_fixed_range_type): Likewise.
2654
dd2e65cc
YQ
26552015-09-10 Yao Qi <yao.qi@linaro.org>
2656
2657 * breakpoint.c (download_tracepoint_locations): New local
2658 can_download_tracepoint. Check the result of
2659 target_can_download_tracepoint and save it in
2660 can_download_tracepoint if there are tracepoints to download.
2661 * linux-nat.h (enum tribool): Move it to ...
2662 * common/common-types.h: ... here.
2663
cfe75703
PA
26642015-09-09 Pedro Alves <palves@redhat.com>
2665
2666 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2667 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2668
a85a3079
PA
26692015-09-09 Pedro Alves <palves@redhat.com>
2670
2671 * continuations.c (add_continuation, restore_thread_cleanup)
2672 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2673 (do_all_continuations_thread, do_all_continuations)
2674 (discard_all_continuations_thread_callback)
2675 (discard_all_continuations_thread, discard_all_continuations)
2676 (add_intermediate_continuation)
2677 (do_all_intermediate_continuations_thread_callback)
2678 (do_all_intermediate_continuations_thread)
2679 (do_all_intermediate_continuations)
2680 (discard_all_intermediate_continuations_thread_callback)
2681 (discard_all_intermediate_continuations_thread)
2682 (discard_all_intermediate_continuations): Delete.
2683 * continuations.h (add_continuation, do_all_continuations)
2684 (do_all_continuations_thread, discard_all_continuations)
2685 (discard_all_continuations_thread, add_intermediate_continuation)
2686 (do_all_intermediate_continuations)
2687 (do_all_intermediate_continuations_thread)
2688 (discard_all_intermediate_continuations)
2689 (discard_all_intermediate_continuations_thread): Delete
2690 declarations.
2691 * event-top.c (stdin_event_handler): Delete references to
2692 continuations.
2693 * gdbthread.h (struct thread_info): Delete continuations and
2694 intermediate_continuations fields.
2695 * inf-loop.c (inferior_event_handler): Remove references to
2696 continuations.
2697 * infrun.c (infrun_thread_stop_requested_callback): Remove
2698 references to continuations.
2699 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2700 * thread.c: Don't include "continuations.h".
2701 (clear_thread_inferior_resources): Remove references to
2702 continuations.
2703
0700e23e
PA
27042015-09-09 Pedro Alves <palves@redhat.com>
2705
2706 * infcall.c (struct dummy_frame_context_saver): Delete.
2707 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2708 (dummy_frame_context_saver_drop)
2709 (dummy_frame_context_saver_cleanup)
2710 (dummy_frame_context_saver_get_regs)
2711 (dummy_frame_context_saver_setup): Delete.
2712 * infcall.h (dummy_frame_context_saver_drop)
2713 (dummy_frame_context_saver_cleanup)
2714 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2715 Delete.
2716 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2717 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2718 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2719
cfc31633
PA
27202015-09-09 Pedro Alves <palves@redhat.com>
2721
2722 * breakpoint.c: Include "thread-fsm.h".
2723 (struct until_break_command_continuation_args): Delete.
2724 (struct until_break_fsm): New.
2725 (until_break_fsm_ops): New global.
2726 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2727 (until_break_command_continuation): Delete.
2728 (until_break_fsm_clean_up): New function.
2729 (until_break_fsm_async_reply_reason): New function.
2730 (until_break_command): Adjust to create an until_break_fsm instead
2731 of a continuation.
2732 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2733 here.
2734 * infcmd.c (struct until_next_fsm): New.
2735 (until_next_fsm_ops): New global.
2736 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2737 (until_next_continuation): Delete.
2738 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2739 functions.
2740 (until_next_command): Adjust to create a new until_next_fsm
2741 instead of a continuation.
2742
388a7084
PA
27432015-09-09 Pedro Alves <palves@redhat.com>
2744
2745 * infcall.c: Include thread_fsm.h.
2746 (struct call_return_meta_info): New.
2747 (get_call_return_value): New function, factored out from
2748 call_function_by_hand_dummy.
2749 (struct call_thread_fsm): New.
2750 (call_thread_fsm_ops): New global.
2751 (new_call_thread_fsm, call_thread_fsm_should_stop)
2752 (call_thread_fsm_should_notify_stop): New functions.
2753 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2754 the thread.
2755 (call_function_by_hand_dummy): Create a new call_thread_fsm
2756 instance, associate it with the thread, and wait for the FSM to
2757 finish. If finished successfully, fetch the function's result
2758 value out of the FSM.
2759 * infrun.c (fetch_inferior_event): If the FSM says the stop
2760 shouldn't be notified, don't call normal_stop.
2761 (maybe_remove_breakpoints): New function, factored out from ...
2762 (normal_stop): ... here. Simplify.
2763 * infrun.h (maybe_remove_breakpoints): Declare.
2764 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2765 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2766 (thread_fsm_should_notify_stop): Declare.
2767
243a9253
PA
27682015-09-09 Pedro Alves <palves@redhat.com>
2769
2770 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2771 * breakpoint.c (handle_jit_event): Print debug output.
2772 (bpstat_what): Split event callback handling to ...
2773 (bpstat_run_callbacks): ... this new function.
2774 (momentary_bkpt_print_it): No longer handle bp_finish here.
2775 * breakpoint.h (bpstat_run_callbacks): Declare.
2776 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2777 <thread_fsm>: New field.
2778 (thread_cancel_execution_command): Declare.
2779 * infcmd.c: Include thread-fsm.h.
2780 (struct step_command_fsm): New.
2781 (step_command_fsm_ops): New global.
2782 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2783 (step_1): Adjust to use step_command_fsm_prepare and
2784 prepare_one_step.
2785 (struct step_1_continuation_args): Delete.
2786 (step_1_continuation): Delete.
2787 (step_command_fsm_should_stop): New function.
2788 (step_once): Delete.
2789 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2790 (prepare_one_step): New function, based on step_once.
2791 (until_next_command): Remove step_multi reference.
2792 (struct return_value_info): New.
2793 (print_return_value): Rename to ...
2794 (print_return_value_1): ... this. New struct return_value_info
2795 parameter. Adjust.
2796 (print_return_value): Reimplement as wrapper around
2797 print_return_value_1.
2798 (struct finish_command_fsm): New.
2799 (finish_command_continuation): Delete.
2800 (finish_command_fsm_ops): New global.
2801 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2802 functions.
2803 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2804 New.
2805 (finish_command_continuation_free_arg): Delete.
2806 (finish_command_fsm_async_reply_reason): New.
2807 (finish_backward, finish_forward): Change symbol parameter to a
2808 finish_command_fsm. Adjust.
2809 (finish_command): Create a finish_command_fsm. Adjust.
2810 * infrun.c: Include "thread-fsm.h".
2811 (clear_proceed_status_thread): Delete the thread's FSM.
2812 (infrun_thread_stop_requested_callback): Cancel the thread's
2813 execution command.
2814 (clean_up_just_stopped_threads_fsms): New function.
2815 (fetch_inferior_event): Handle the event_thread's should_stop
2816 method saying the command isn't done yet.
2817 (process_event_stop_test): Run breakpoint callbacks here.
2818 (print_stop_event): Rename to ...
2819 (print_stop_location): ... this.
2820 (restore_current_uiout_cleanup): New function.
2821 (print_stop_event): Reimplement.
2822 (normal_stop): No longer notify the end_stepping_range observers
2823 here handle "step N" nor "finish" here. No longer call
2824 print_stop_event here.
2825 * infrun.h (struct return_value_info): Forward declare.
2826 (print_return_value): Declare.
2827 (print_stop_event): Change prototype.
2828 * thread-fsm.c: New file.
2829 * thread-fsm.h: New file.
2830 * thread.c: Include "thread-fsm.h".
2831 (thread_cancel_execution_command): New function.
2832 (clear_thread_inferior_resources): Call it.
2833 * cli/cli-interp.c (cli_on_normal_stop): New function.
2834 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2835 observer.
2836 * mi/mi-interp.c: Include "thread-fsm.h".
2837 (restore_current_uiout_cleanup): Delete.
2838 (mi_on_normal_stop): If the thread has an FSM associated, and it
2839 finished, ask it for the async-reply-reason to print. Always call
2840 print_stop_event here, regardless of the top-level interpreter.
2841 Check bpstat_what to tell whether an asynchronous breakpoint hit
2842 triggered.
2843 * tui/tui-interp.c (tui_on_normal_stop): New function.
2844 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2845
0b333c5e
PA
28462015-09-09 Pedro Alves <palves@redhat.com>
2847
2848 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2849 check whether the target can async.
2850 * inf-loop.c (inferior_event_handler): Only call target_async if
2851 the target can async.
2852 * infcall.c: Include top.h and interps.h.
2853 (run_inferior_call): For the interpreter to sync mode while
2854 running the infcall. Call wait_sync_command_done instead of
2855 wait_for_inferior plus normal_stop.
2856 * infcmd.c (prepare_execution_command): Don't check whether the
2857 target can async when running in the foreground.
2858 (step_1): Delete synchronous case handling.
2859 (step_once): Always install a continuation, even in sync mode.
2860 (until_next_command, finish_forward): Don't check whether the
2861 target can async.
2862 (attach_command_post_wait, notice_new_inferior): Always install a
2863 continuation, even in sync mode.
2864 * infrun.c (mark_infrun_async_event_handler): New function.
2865 (proceed): In sync mode, mark infrun's event source instead of
2866 waiting for events here.
2867 (fetch_inferior_event): If the target can't async, do a blocking
2868 wait.
2869 (prepare_to_wait): In sync mode, mark infrun's event source.
2870 (infrun_async_inferior_event_handler): No longer bail out if the
2871 target can't async.
2872 * infrun.h (mark_infrun_async_event_handler): New declaration.
2873 * linux-nat.c (linux_nat_wait_1): Remove calls to
2874 set_sigint_trap/clear_sigint_trap.
2875 (linux_nat_terminal_inferior): No longer check whether the target
2876 can async.
2877 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2878 comment.
2879 (mi_execute_command_input_handler): No longer check whether the
2880 target is async. Update and simplify comment.
2881 * target.c (default_target_wait): New function.
2882 * target.h (struct target_ops) <to_wait>: Now defaults to
2883 default_target_wait.
2884 (default_target_wait): Declare.
2885 * top.c (wait_sync_command_done): New function, factored out from
2886 ...
2887 (maybe_wait_sync_command_done): ... this.
2888 * top.h (wait_sync_command_done): Declare.
2889 * target-delegates.c: Regenerate.
2890
0568462b
MM
28912015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2892
2893 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2894 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2895 Remove include of sys/utsname.h.
2896 (linux_determine_kernel_ptr_bits): Remove.
2897 (linux_determine_kernel_start): New.
2898 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2899 Update check.
2900 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2901 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2902 initialization.
2903 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2904 assignment.
2905
72e02483
PA
29062015-09-07 Pedro Alves <palves@redhat.com>
2907
2908 * guile/guile-internal.h (as_a_scm_t_subr): New.
2909 * guile/guile.c (misc_guile_functions): Use it.
2910 * guile/scm-arch.c (arch_functions): Use it.
2911 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2912 Use it.
2913 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2914 * guile/scm-cmd.c (command_functions): Use it.
2915 * guile/scm-disasm.c (disasm_functions): Use it.
2916 * guile/scm-exception.c (exception_functions)
2917 (private_exception_functions): Use it.
2918 * guile/scm-frame.c (frame_functions)
2919 * guile/scm-gsmob.c (gsmob_functions): Use it.
2920 * guile/scm-iterator.c (iterator_functions): Use it.
2921 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2922 * guile/scm-math.c (math_functions): Use it.
2923 * guile/scm-objfile.c (objfile_functions): Use it.
2924 * guile/scm-param.c (parameter_functions): Use it.
2925 * guile/scm-ports.c (port_functions, private_port_functions): Use
2926 it.
2927 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2928 * guile/scm-progspace.c (pspace_functions): Use it.
2929 * guile/scm-string.c (string_functions): Use it.
2930 * guile/scm-symbol.c (symbol_functions): Use it.
2931 * guile/scm-symtab.c (symtab_functions): Use it.
2932 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2933 it.
2934 * guile/scm-value.c (value_functions): Use it.
2935
e65b5245
AB
29362015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2937
2938 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2939 (tui_next_win): Likewise.
2940 (tui_prev_win): Likewise.
2941 (tui_partial_win_by_name): Likewise.
2942 (tui_init_generic_part): Likewise.
2943 (init_content_element): Likewise.
2944 (tui_del_window): Likewise.
2945 (tui_free_window): Likewise.
2946 (tui_del_data_windows): Likewise.
2947 (tui_free_data_content): Likewise.
2948 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2949 * tui/tui-regs.c (tui_show_register_group): Likewise.
2950 * tui/tui-win.c (tui_resize_all): Likewise.
2951 (tui_set_focus): Likewise.
2952 (tui_set_win_height): Likewise.
2953 (make_invisible_and_set_new_height): Likewise.
2954 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2955 * tui/tui-wingeneral.c (make_visible): Likewise.
2956
b03e6ad9
AB
29572015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2958
2959 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2960
be903358
AB
29612015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2962
2963 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2964 pointer.
2965 * dbxread.c (dbx_end_psymtab): Likewise.
2966 * gnu-nat.c (gnu_write_inferior): Likewise.
2967 * mdebugread.c (cross_ref): Likewise.
2968 * p-valprint.c (pascal_val_print): Likewise.
2969 * xcoffread.c (xcoff_end_psymtab): Likewise.
2970
02f024f9
YQ
29712015-09-04 Yao Qi <yao.qi@linaro.org>
2972
2973 * NEWS: Mention the aarch64 multi-arch debugging support.
2974
cd7c1778
PMR
29752015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2976
2977 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2978 type instead of a TYPE_CODE_INT one for the string_char_type
2979 and the ada_primitive_type_char types.
2980
39edd165
YQ
29812015-09-03 Yao Qi <yao.qi@linaro.org>
2982
2983 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2984 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2985 aarch64_linux_region_ok_for_watchpoint.
2986 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2987 New function.
2988 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2989 Declare it.
2990
6c214e7c
PP
29912015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2992
2993 * gdb_obstack.h (obstack_strdup): Declare.
2994 * gdb_obstack.c (obstack_strdup): Define.
2995 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2996 * gdbarch.c: Regenerate.
2997 * gdbarch.h: Regenerate.
2998 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2999
eed8b28a
PP
30002015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3001
3002 * gdbtypes.c (copy_type_recursive): Update documentation.
3003
73c6b475
SDJ
30042015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3005
3006 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3007 as zero.
3008
ad1c917a
SDJ
30092015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3010
3011 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3012
3bd7e5b7
SDJ
30132015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3014
3015 * solib-svr4.c (solib_event_probe_action): Call
3016 get_probe_argument_count using TRY...CATCH.
3017 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3018
f469e8ce
SDJ
30192015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3020
3021 * probe.h (struct probe_ops) <get_probe_argument_count,
3022 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3023 the comment that the function can throw an exception.
3024 (get_probe_argument_count): Likewise.
3025 (evaluate_probe_argument): Likewise.
3026 * stap-probe.c (stap_get_opcode): Call error instead of
3027 internal_error.
3028 (stap_get_expected_argument_type): Likewise. Add argument
3029 'probe'. Improve error message by mentioning the probe's name.
3030 (stap_parse_probe_arguments): Adjust call to
3031 stap_get_expected_argument_type.
3032 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3033 not zero. Call internal_error if GDB requests an argument but the
3034 probe has no arguments.
3035
dc5c8746
PMR
30362015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3037
3038 * ada-lang.c (ada_resolve_function): Do not ask the user what
3039 match to use when in completion mode.
3040
136765ea
AB
30412015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3042
3043 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3044 cast of NULL.
3045
90b81c5f
MF
30462015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3047
3048 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3049 call_abi using XSHAL_ABI macro.
3050
1cd36e54
DE
30512015-08-29 Doug Evans <xdje42@gmail.com>
3052
3053 * symtab.h (struct symbol): Tweak comment.
3054
8f57eec2
PP
30552015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3056
3057 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3058 gdbarch obstack instead of on the heap. Update commentary
3059 accordingly.
3060
38eebd71
JB
30612015-08-28 Joel Brobecker <brobecker@adacore.com>
3062
3063 GDB 7.10 released.
3064
d63dd61e
SM
30652015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3066
3067 * NEWS: Update entry about non-8-bits addressable memory.
3068
6f059256
UW
30692015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3070
3071 Revert:
3072 2014-11-06 Doug Evans <xdje42@gmail.com>
3073 * solib.c (solib_global_lookup): Fetch arch from objfile,
3074 not target_gdbarch.
3075
70987a92 30762015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
3077
3078 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3079 attempt to relocate a TLS variable offset.
3080
70987a92 30812015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
3082
3083 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3084 registered yet. Set inferior_ptid while calling target_read_memory.
3085
70987a92 30862015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
3087
3088 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3089 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3090 * linux-nat.c (check_stopped_by_breakpoint): Use
3091 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3092
70987a92 30932015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
3094
3095 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3096 thread was not yet discovered, use thread_from_lwp instead of
3097 calling thread_db_find_new_threads_1.
3098
f5cdf498
SM
30992015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3100
3101 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3102 statements.
3103
fd2ae5d6
SM
31042015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3105
3106 * NEWS: Document support for non-8-bits addressable memory.
3107
14d88147
PA
31082015-08-27 Pedro Alves <palves@redhat.com>
3109
3110 * configure.ac: Remove AC_TYPE_SIGNAL call.
3111 * configure, config.in: Regenerate.
3112
a40805d4
PA
31132015-08-27 Pedro Alves <palves@redhat.com>
3114
3115 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3116 * extension-priv.h: Include signal.h.
3117 (struct signal_handler) <handler>: Change type to sighandler_t.
3118 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3119 * inflow.c (sigint_ours, sigquit_ours): Change type to
3120 sighandler_t.
3121 (child_terminal_inferior): Remove casts.
3122 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3123 (osig): Change type to sighandler_t.
3124 * nto-procfs.c (ofunc): Change type to sighandler_t.
3125 (procfs_wait): Remove casts.
3126 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3127 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3128 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3129
0750520d
PA
31302015-08-27 Pedro Alves <palves@redhat.com>
3131
3132 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3133 * gnulib/aclocal.m4: Renegerate.
3134 * gnulib/config.in: Renegerate.
3135 * gnulib/configure: Renegerate.
3136 * gnulib/import/Makefile.am: Update.
3137 * gnulib/import/Makefile.in: Regenerate.
3138 * gnulib/import/m4/gnulib-cache.m4: Update.
3139 * gnulib/import/m4/gnulib-comp.m4: Update.
3140 * gnulib/import/m4/signal_h.m4: New file.
3141 * gnulib/import/signal.in.h: New file.
3142
a5c0808e
PA
31432015-08-27 Pedro Alves <palves@redhat.com>
3144
3145 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3146 (MIN_MEMORY_PACKET_SIZE): New.
3147 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3148 (get_memory_packet_size): Adjust. No longer limit the max packet
3149 size.
3150 (set_memory_packet_size): Adjust, and remove dead code.
3151 (remote_check_symbols): Use xmalloc and a cleanup instead of
3152 alloca.
3153 (remote_packet_size): No longer cap the packet size.
3154 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3155
cdaec3f3
LM
31562015-08-26 Luis Machado <lgustavo@codesourcery.com>
3157
3158 * compile/compile.c (compile_to_object): Mention language in
3159 error message.
3160
e9756d52
PP
31612015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3162
3163 * target.c (target_pre_inferior): Unset attach_flag.
3164
1dc7a623
SM
31652015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3166
3167 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3168 * gdbarch.c: Re-generate.
3169
8d749320
SM
31702015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3171
6711b7f8
SM
3172 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3173 function with the XNEW-family equivalent.
8d749320
SM
3174 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3175 * ada-exp.y (write_ambiguous_var): Likewise.
3176 * ada-lang.c (resolve_subexp): Likewise.
3177 (user_select_syms): Likewise.
3178 (assign_aggregate): Likewise.
3179 (ada_evaluate_subexp): Likewise.
3180 (cache_symbol): Likewise.
3181 * addrmap.c (allocate_key): Likewise.
3182 (addrmap_create_mutable): Likewise.
3183 * aix-thread.c (sync_threadlists): Likewise.
3184 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3185 (alpha_gdbarch_init): Likewise.
3186 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3187 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3188 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3189 * arm-tdep.c (push_stack_item): Likewise.
3190 (arm_displaced_step_copy_insn): Likewise.
3191 (arm_gdbarch_init): Likewise.
3192 (_initialize_arm_tdep): Likewise.
3193 * avr-tdep.c (push_stack_item): Likewise.
3194 * ax-general.c (new_agent_expr): Likewise.
3195 * block.c (block_initialize_namespace): Likewise.
3196 * breakpoint.c (alloc_counted_command_line): Likewise.
3197 (update_dprintf_command_list): Likewise.
3198 (parse_breakpoint_sals): Likewise.
3199 (decode_static_tracepoint_spec): Likewise.
3200 (until_break_command): Likewise.
3201 (clear_command): Likewise.
3202 (update_global_location_list): Likewise.
3203 (get_breakpoint_objfile_data) Likewise.
3204 * btrace.c (ftrace_new_function): Likewise.
3205 (btrace_set_insn_history): Likewise.
3206 (btrace_set_call_history): Likewise.
3207 * buildsym.c (add_symbol_to_list): Likewise.
3208 (record_pending_block): Likewise.
3209 (start_subfile): Likewise.
3210 (start_buildsym_compunit): Likewise.
3211 (push_subfile): Likewise.
3212 (end_symtab_get_static_block): Likewise.
3213 (buildsym_init): Likewise.
3214 * cli/cli-cmds.c (source_command): Likewise.
3215 * cli/cli-decode.c (add_cmd): Likewise.
3216 * cli/cli-script.c (build_command_line): Likewise.
3217 (setup_user_args): Likewise.
3218 (realloc_body_list): Likewise.
3219 (process_next_line): Likewise.
3220 (copy_command_lines): Likewise.
3221 * cli/cli-setshow.c (do_set_command): Likewise.
3222 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3223 * coffread.c (coff_locate_sections): Likewise.
3224 (coff_symtab_read): Likewise.
3225 (coff_read_struct_type): Likewise.
3226 * common/cleanups.c (make_my_cleanup2): Likewise.
3227 * common/common-exceptions.c (throw_it): Likewise.
3228 * common/filestuff.c (make_cleanup_close): Likewise.
3229 * common/format.c (parse_format_string): Likewise.
3230 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3231 * compile/compile-object-load.c (munmap_list_add): Likewise.
3232 (compile_object_load): Likewise.
3233 * compile/compile-object-run.c (compile_object_run): Likewise.
3234 * compile/compile.c (append_args): Likewise.
3235 * corefile.c (specify_exec_file_hook): Likewise.
3236 * cp-support.c (make_symbol_overload_list): Likewise.
3237 * cris-tdep.c (push_stack_item): Likewise.
3238 (cris_gdbarch_init): Likewise.
3239 * ctf.c (ctf_trace_file_writer_new): Likewise.
3240 * dbxread.c (init_header_files): Likewise.
3241 (add_new_header_file): Likewise.
3242 (init_bincl_list): Likewise.
3243 (dbx_end_psymtab): Likewise.
3244 (start_psymtab): Likewise.
3245 (dbx_end_psymtab): Likewise.
3246 * dcache.c (dcache_init): Likewise.
3247 * dictionary.c (dict_create_hashed): Likewise.
3248 (dict_create_hashed_expandable): Likewise.
3249 (dict_create_linear): Likewise.
3250 (dict_create_linear_expandable): Likewise.
3251 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3252 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3253 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3254 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3255 (decode_frame_entry_1): Likewise.
3256 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3257 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3258 * dwarf2read.c (dwarf2_has_info): Likewise.
3259 (create_signatured_type_table_from_index): Likewise.
3260 (dwarf2_read_index): Likewise.
3261 (dw2_get_file_names_reader): Likewise.
3262 (create_all_type_units): Likewise.
3263 (read_cutu_die_from_dwo): Likewise.
3264 (init_tu_and_read_dwo_dies): Likewise.
3265 (init_cutu_and_read_dies): Likewise.
3266 (create_all_comp_units): Likewise.
3267 (queue_comp_unit): Likewise.
3268 (inherit_abstract_dies): Likewise.
3269 (read_call_site_scope): Likewise.
3270 (dwarf2_add_field): Likewise.
3271 (dwarf2_add_typedef): Likewise.
3272 (dwarf2_add_member_fn): Likewise.
3273 (attr_to_dynamic_prop): Likewise.
3274 (abbrev_table_alloc_abbrev): Likewise.
3275 (abbrev_table_read_table): Likewise.
3276 (add_include_dir): Likewise.
3277 (add_file_name): Likewise.
3278 (dwarf_decode_line_header): Likewise.
3279 (dwarf2_const_value_attr): Likewise.
3280 (dwarf_alloc_block): Likewise.
3281 (parse_macro_definition): Likewise.
3282 (set_die_type): Likewise.
3283 (write_psymtabs_to_index): Likewise.
3284 (create_cus_from_index): Likewise.
3285 (dwarf2_create_include_psymtab): Likewise.
3286 (process_psymtab_comp_unit_reader): Likewise.
3287 (build_type_psymtab_dependencies): Likewise.
3288 (read_comp_units_from_section): Likewise.
3289 (compute_compunit_symtab_includes): Likewise.
3290 (create_dwo_unit_in_dwp_v1): Likewise.
3291 (create_dwo_unit_in_dwp_v2): Likewise.
3292 (read_func_scope): Likewise.
3293 (process_structure_scope): Likewise.
3294 (mark_common_block_symbol_computed): Likewise.
3295 (load_partial_dies): Likewise.
3296 (dwarf2_symbol_mark_computed): Likewise.
3297 * elfread.c (elf_symfile_segments): Likewise.
3298 (elf_read_minimal_symbols): Likewise.
3299 * environ.c (make_environ): Likewise.
3300 * eval.c (evaluate_subexp_standard): Likewise.
3301 * event-loop.c (create_file_handler): Likewise.
3302 (create_async_signal_handler): Likewise.
3303 (create_async_event_handler): Likewise.
3304 (create_timer): Likewise.
3305 * exec.c (build_section_table): Likewise.
3306 * fbsd-nat.c (fbsd_remember_child): Likewise.
3307 * fork-child.c (fork_inferior): Likewise.
3308 * frv-tdep.c (new_variant): Likewise.
3309 * gdbarch.sh (gdbarch_alloc): Likewise.
3310 (append_name): Likewise.
3311 * gdbtypes.c (rank_function): Likewise.
3312 (copy_type_recursive): Likewise.
3313 (add_dyn_prop): Likewise.
3314 * gnu-nat.c (make_proc): Likewise.
3315 (make_inf): Likewise.
3316 (gnu_write_inferior): Likewise.
3317 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3318 (build_std_type_info_type): Likewise.
3319 * guile/scm-param.c (compute_enum_list): Likewise.
3320 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3321 * guile/scm-value.c (gdbscm_value_call): Likewise.
3322 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3323 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3324 (read_unwind_info): Likewise.
3325 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3326 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3327 (call_function_by_hand_dummy): Likewise.
3328 * infcmd.c (step_once): Likewise.
3329 (finish_forward): Likewise.
3330 (attach_command): Likewise.
3331 (notice_new_inferior): Likewise.
3332 * inferior.c (add_inferior_silent): Likewise.
3333 * infrun.c (add_displaced_stepping_state): Likewise.
3334 (save_infcall_control_state): Likewise.
3335 (save_inferior_ptid): Likewise.
3336 (_initialize_infrun): Likewise.
3337 * jit.c (bfd_open_from_target_memory): Likewise.
3338 (jit_gdbarch_data_init): Likewise.
3339 * language.c (add_language): Likewise.
3340 * linespec.c (decode_line_2): Likewise.
3341 * linux-nat.c (add_to_pid_list): Likewise.
3342 (add_initial_lwp): Likewise.
3343 * linux-thread-db.c (add_thread_db_info): Likewise.
3344 (record_thread): Likewise.
3345 (info_auto_load_libthread_db): Likewise.
3346 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3348 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3349 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3350 * macrocmd.c (macro_define_command): Likewise.
3351 * macroexp.c (gather_arguments): Likewise.
3352 * macroscope.c (sal_macro_scope): Likewise.
3353 * macrotab.c (new_macro_table): Likewise.
3354 * mdebugread.c (push_parse_stack): Likewise.
3355 (parse_partial_symbols): Likewise.
3356 (parse_symbol): Likewise.
3357 (psymtab_to_symtab_1): Likewise.
3358 (new_block): Likewise.
3359 (new_psymtab): Likewise.
3360 (mdebug_build_psymtabs): Likewise.
3361 (add_pending): Likewise.
3362 (elfmdebug_build_psymtabs): Likewise.
3363 * mep-tdep.c (mep_gdbarch_init): Likewise.
3364 * mi/mi-main.c (mi_execute_command): Likewise.
3365 * mi/mi-parse.c (mi_parse_argv): Likewise.
3366 * minidebug.c (lzma_open): Likewise.
3367 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3368 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3369 * mips-tdep.c (mips_gdbarch_init): Likewise.
3370 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3371 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3372 * mt-tdep.c (mt_registers_info): Likewise.
3373 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3374 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3375 (linux_enable_pt): Likewise.
3376 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3377 (linux_xfer_osdata_processgroups): Likewise.
3378 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3379 * nto-procfs.c (procfs_meminfo): Likewise.
3380 * objc-lang.c (start_msglist): Likewise.
3381 (selectors_info): Likewise.
3382 (classes_info): Likewise.
3383 (find_methods): Likewise.
3384 * objfiles.c (allocate_objfile): Likewise.
3385 (update_section_map): Likewise.
3386 * osabi.c (gdbarch_register_osabi): Likewise.
3387 (gdbarch_register_osabi_sniffer): Likewise.
3388 * parse.c (start_arglist): Likewise.
3389 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3390 (hwdebug_insert_point): Likewise.
3391 * printcmd.c (display_command): Likewise.
3392 (ui_printf): Likewise.
3393 * procfs.c (create_procinfo): Likewise.
3394 (load_syscalls): Likewise.
3395 (proc_get_LDT_entry): Likewise.
3396 (proc_update_threads): Likewise.
3397 * prologue-value.c (make_pv_area): Likewise.
3398 (pv_area_store): Likewise.
3399 * psymtab.c (extend_psymbol_list): Likewise.
3400 (init_psymbol_list): Likewise.
3401 (allocate_psymtab): Likewise.
3402 * python/py-inferior.c (add_thread_object): Likewise.
3403 * python/py-param.c (compute_enum_values): Likewise.
3404 * python/py-value.c (valpy_call): Likewise.
3405 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3406 * python/python.c (ensure_python_env): Likewise.
3407 * record-btrace.c (record_btrace_start_replaying): Likewise.
3408 * record-full.c (record_full_reg_alloc): Likewise.
3409 (record_full_mem_alloc): Likewise.
3410 (record_full_end_alloc): Likewise.
3411 (record_full_core_xfer_partial): Likewise.
3412 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3413 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3414 * remote-notif.c (remote_notif_state_allocate): Likewise.
3415 * remote.c (demand_private_info): Likewise.
3416 (remote_notif_stop_alloc_reply): Likewise.
3417 (remote_enable_btrace): Likewise.
3418 * reverse.c (save_bookmark_command): Likewise.
3419 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3420 * rx-tdep.c (rx_gdbarch_init): Likewise.
3421 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3422 * ser-go32.c (dos_get_tty_state): Likewise.
3423 (dos_copy_tty_state): Likewise.
3424 * ser-mingw.c (ser_windows_open): Likewise.
3425 (ser_console_wait_handle): Likewise.
3426 (ser_console_get_tty_state): Likewise.
3427 (make_pipe_state): Likewise.
3428 (net_windows_open): Likewise.
3429 * ser-unix.c (hardwire_get_tty_state): Likewise.
3430 (hardwire_copy_tty_state): Likewise.
3431 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3432 * solib-dsbt.c (dsbt_current_sos): Likewise.
3433 (dsbt_relocate_main_executable): Likewise.
3434 * solib-frv.c (frv_current_sos): Likewise.
3435 (frv_relocate_main_executable): Likewise.
3436 * solib-spu.c (spu_bfd_fopen): Likewise.
3437 * solib-svr4.c (lm_info_read): Likewise.
3438 (svr4_copy_library_list): Likewise.
3439 (svr4_default_sos): Likewise.
3440 * source.c (find_source_lines): Likewise.
3441 (line_info): Likewise.
3442 (add_substitute_path_rule): Likewise.
3443 * spu-linux-nat.c (spu_bfd_open): Likewise.
3444 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3445 * stabsread.c (dbx_lookup_type): Likewise.
3446 (read_type): Likewise.
3447 (read_member_functions): Likewise.
3448 (read_struct_fields): Likewise.
3449 (read_baseclasses): Likewise.
3450 (read_args): Likewise.
3451 (_initialize_stabsread): Likewise.
3452 * stack.c (func_command): Likewise.
3453 * stap-probe.c (handle_stap_probe): Likewise.
3454 * symfile.c (addrs_section_sort): Likewise.
3455 (addr_info_make_relative): Likewise.
3456 (load_section_callback): Likewise.
3457 (add_symbol_file_command): Likewise.
3458 (init_filename_language_table): Likewise.
3459 * symtab.c (create_filename_seen_cache): Likewise.
3460 (sort_search_symbols_remove_dups): Likewise.
3461 (search_symbols): Likewise.
3462 * target.c (make_cleanup_restore_target_terminal): Likewise.
3463 * thread.c (new_thread): Likewise.
3464 (enable_thread_stack_temporaries): Likewise.
3465 (make_cleanup_restore_current_thread): Likewise.
3466 (thread_apply_all_command): Likewise.
3467 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3468 * top.c (gdb_readline_wrapper): Likewise.
3469 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3470 * tracepoint.c (trace_find_line_command): Likewise.
3471 (all_tracepoint_actions_and_cleanup): Likewise.
3472 (make_cleanup_restore_current_traceframe): Likewise.
3473 (get_uploaded_tp): Likewise.
3474 (get_uploaded_tsv): Likewise.
3475 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3476 (tui_alloc_win_info): Likewise.
3477 (tui_alloc_content): Likewise.
3478 (tui_add_content_elements): Likewise.
3479 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3480 (tui_set_disassem_content): Likewise.
3481 * ui-file.c (ui_file_new): Likewise.
3482 (stdio_file_new): Likewise.
3483 (tee_file_new): Likewise.
3484 * utils.c (make_cleanup_restore_integer): Likewise.
3485 (add_internal_problem_command): Likewise.
3486 * v850-tdep.c (v850_gdbarch_init): Likewise.
3487 * valops.c (find_oload_champ): Likewise.
3488 * value.c (allocate_value_lazy): Likewise.
3489 (record_latest_value): Likewise.
3490 (create_internalvar): Likewise.
3491 * varobj.c (install_variable): Likewise.
3492 (new_variable): Likewise.
3493 (new_root_variable): Likewise.
3494 (cppush): Likewise.
3495 (_initialize_varobj): Likewise.
3496 * windows-nat.c (windows_make_so): Likewise.
3497 * x86-nat.c (x86_add_process): Likewise.
3498 * xcoffread.c (arrange_linetable): Likewise.
3499 (allocate_include_entry): Likewise.
3500 (process_linenos): Likewise.
3501 (SYMBOL_DUP): Likewise.
3502 (xcoff_start_psymtab): Likewise.
3503 (xcoff_end_psymtab): Likewise.
3504 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3505 * xtensa-tdep.c (xtensa_register_type): Likewise.
3506 * gdbarch.c: Regenerate.
3507 * gdbarch.h: Regenerate.
3508
17d8546e
DB
35092015-08-25 Don Breazeal <donb@codesourcery.com>
3510
3511 * infrun.c (follow_exec): Re-order operations for
3512 handling follow-exec-mode "new".
3513 (handle_inferior_event_1): Assign ecs->event_thread
3514 to the current thread.
3515 * remote.c (get_remote_arch_state): Add an assertion.
3516
ba49e44b
PA
35172015-08-26 Pedro Alves <palves@redhat.com>
3518
3519 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3520
7541ab03 35212015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 3522
7541ab03 3523 PR gdb/18804
abc56d60
PA
3524 * defs.h (maybe_quit): Declare.
3525 (QUIT): Now calls maybe_quit.
3526 * event-loop.c (clear_async_signal_handler)
3527 (async_signal_handler_is_marked): New functions.
3528 * event-loop.h (async_signal_handler_is_marked)
3529 (clear_async_signal_handler): New declarations.
3530 * remote.c (remote_check_pending_interrupt): New function.
3531 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3532 longer check whether the target is async. If waiting for a stop
3533 reply, and a Ctrl-C as been sent to the target, offer to
3534 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3535 Otherwise do not disconnect and throw a quit.
3536 (_initialize_remote): Install remote_check_pending_interrupt as
3537 to_check_pending_interrupt.
3538 * target.c (target_check_pending_interrupt): New function.
3539 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3540 field.
3541 (target_check_pending_interrupt): New declaration.
3542 * utils.c (maybe_quit): New function.
3543 * target-delegates.c: Regenerate.
3544
dfe7f77c
YQ
35452015-08-25 Yao Qi <yao.qi@linaro.org>
3546
3547 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3548 Rename local variable pid to tid, and get lwpid of lwp. Update
3549 debug output.
3550
63e43d3a
PMR
35512015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3552
3553 * ada-lang.c (ada_read_var_value): Add a var_block argument
3554 and pass it to default_read_var_value.
3555 * block.c (block_static_link): New accessor.
3556 * block.h (block_static_link): Declare it.
3557 * buildsym.c (finish_block_internal): Add a static_link
3558 argument. If there is a static link, associate it to the new
3559 block.
3560 (finish_block): Add a static link argument and pass it to
3561 finish_block_internal.
3562 (end_symtab_get_static_block): Update calls to finish_block and
3563 to finish_block_internal.
3564 (end_symtab_with_blockvector): Update call to
3565 finish_block_internal.
3566 * buildsym.h: Forward-declare struct dynamic_prop.
3567 (struct context_stack): Add a static_link field.
3568 (finish_block): Add a static link argument.
3569 * c-exp.y: Remove an obsolete comment (evaluation of variables
3570 already start from the selected frame, and now they climb *up*
3571 the call stack) and propagate the block information to the
3572 produced expression.
3573 * d-exp.y: Likewise.
3574 * f-exp.y: Likewise.
3575 * go-exp.y: Likewise.
3576 * jv-exp.y: Likewise.
3577 * m2-exp.y: Likewise.
3578 * p-exp.y: Likewise.
3579 * coffread.c (coff_symtab_read): Update calls to finish_block.
3580 * dbxread.c (process_one_symbol): Likewise.
3581 * xcoffread.c (read_xcoff_symtab): Likewise.
3582 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3583 "sym" parameter to struct block_symbol, update its uses and pass
3584 its block to calls to read_var_value.
3585 (convert_symbol_sym): Update the calls to convert_one_symbol.
3586 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3587 call to read_var_value.
3588 * dwarf2loc.c (block_op_get_frame_base): New.
3589 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3590 get_frame_base method.
3591 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3592 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3593 instead of the selected frame in order to evaluate the
3594 expression.
3595 (dwarf2_evaluate_property): Add a frame argument. Update call
3596 to dwarf2_locexpr_baton_eval to provide a frame in available and
3597 to handle the absence of address stack.
3598 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3599 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3600 declaration.
3601 (read_func_scope): Record any available static link description.
3602 Update call to finish_block.
3603 (read_lexical_block_scope): Update call to finish_block.
3604 * findvar.c (follow_static_link): New.
3605 (get_hosting_frame): New.
3606 (default_read_var_value): Add a var_block argument. Use
3607 get_hosting_frame to handle non-local references.
3608 (read_var_value): Add a var_block argument and pass it to the
3609 LA_READ_VAR_VALUE method.
3610 * gdbtypes.c (resolve_dynamic_range): Update calls to
3611 dwarf2_evaluate_property.
3612 (resolve_dynamic_type_internal): Likewise.
3613 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3614 read_var_value, passing it the block coming from symbol lookup.
3615 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3616 read_var_value (TODO).
3617 * infcmd.c (finish_command_continuation): Update call to
3618 read_var_value, passing it the block coming from symbol lookup.
3619 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3620 * language.h (struct language_defn): Add a var_block argument to
3621 the LA_READ_VAR_VALUE method.
3622 * objfiles.c (struct static_link_htab_entry): New.
3623 (static_link_htab_entry_hash): New.
3624 (static_link_htab_entry_eq): New.
3625 (objfile_register_static_link): New.
3626 (objfile_lookup_static_link): New.
3627 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3628 * objfiles.h: Include hashtab.h.
3629 (struct objfile): Add a static_links field.
3630 (objfile_register_static_link): New.
3631 (objfile_lookup_static_link): New.
3632 * printcmd.c (print_variable_and_value): Update call to
3633 read_var_value.
3634 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3635 * python/py-frame.c (frapy_read_var): Update call to
3636 read_var_value, passing it the block coming from symbol lookup.
3637 * python/py-framefilter.c (extract_sym): Add a sym_block
3638 parameter and set the pointed value to NULL (TODO).
3639 (enumerate_args): Update call to extract_sym.
3640 (enumerate_locals): Update calls to extract_sym and to
3641 read_var_value.
3642 * python/py-symbol.c (sympy_value): Update call to
3643 read_var_value (TODO).
3644 * stack.c (read_frame_local): Update call to read_var_value.
3645 (read_frame_arg): Likewise.
3646 (return_command): Likewise.
3647 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3648 method.
3649 (struct symbol): Add a block field.
3650 (SYMBOL_BLOCK): New accessor.
3651 * valops.c (value_of_variable): Remove frame/block handling and
3652 pass the block argument to read_var_value, which does this job
3653 now.
3654 (value_struct_elt_for_reference): Update calls to
3655 read_var_value.
3656 (value_of_this): Pass the block found to read_var_value.
3657 * value.h (read_var_value): Add a var_block argument.
3658 (default_read_var_value): Likewise.
3659
ed8b7b42
YQ
36602015-08-25 Yao Qi <yao.qi@linaro.org>
3661
3662 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3663 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3664 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3665
db3cb7cb
YQ
36662015-08-25 Yao Qi <yao.qi@linaro.org>
3667
3668 * Makefile.in (aarch64-liunx.o): New rule.
3669 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3670 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3671 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3672 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3673 extern.
3674 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3675 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3676 * nat/aarch64-linux.c: New file.
3677 * nat/aarch64-linux.h: New file.
3678
f6011a1c
YQ
36792015-08-25 Yao Qi <yao.qi@linaro.org>
3680
3681 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3682 lwp_arch_private_info and ptid_of_lwp.
3683
5e35436e
YQ
36842015-08-25 Yao Qi <yao.qi@linaro.org>
3685
3686 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3687 Move it to nat/aarch64-linux-hw-point.c.
3688 (debug_reg_change_callback): Likewise.
3689 (aarch64_notify_debug_reg_change): :Likewise.
3690 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3691 (aarch64_dr_update_callback_param): New.
3692 (debug_reg_change_callback): New function.
3693 (aarch64_notify_debug_reg_change): Likewise.
3694 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3695 Remove the declaration.
3696
4a8a7965
YQ
36972015-08-25 Yao Qi <yao.qi@linaro.org>
3698
3699 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3700 Call current_lwp_ptid.
3701
32a271ee
YQ
37022015-08-25 Yao Qi <yao.qi@linaro.org>
3703
3704 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3705 debug_printf.
3706
5e137137
YQ
37072015-08-25 Yao Qi <yao.qi@linaro.org>
3708
3709 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3710 ptid_get_pid rather than ptid_get_lwp.
3711
73b8c1fd
PA
37122015-08-24 Pedro Alves <palves@redhat.com>
3713
3714 * NEWS (New commands): Mention set/show remote
3715 multiprocess-extensions-packet.
3716 * remote.c (remote_query_supported): Only tell the server to use
3717 the multiprocess extensions if the user hasn't force-disabled them
3718 with "set remote multiprocess-extensions-packet off".
3719
4a626d0a
PA
37202015-08-24 Pedro Alves <palves@redhat.com>
3721
3722 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3723 1029a8112290f6eee9d7878a391c49db42c999bd.
3724 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3725 Regenerate.
3726 * gnulib/import/Makefile.am: Update.
3727 * gnulib/import/Makefile.in: Update.
3728 * gnulib/import/alloca.in.h: Update.
3729 * gnulib/import/basename-lgpl.c: Update.
3730 * gnulib/import/canonicalize-lgpl.c: Update.
3731 * gnulib/import/config.charset: Update.
3732 * gnulib/import/dirent.in.h: Update.
3733 * gnulib/import/dirfd.c: Update.
3734 * gnulib/import/dirname-lgpl.c: Update.
3735 * gnulib/import/dirname.h: Update.
3736 * gnulib/import/dosname.h: Update.
3737 * gnulib/import/errno.in.h: Update.
3738 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3739 * gnulib/import/extra/snippet/c++defs.h: Update.
3740 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3741 * gnulib/import/extra/update-copyright: Update.
3742 * gnulib/import/float+.h: Update.
3743 * gnulib/import/float.c: Update.
3744 * gnulib/import/float.in.h: Update.
3745 * gnulib/import/fnmatch.c: Update.
3746 * gnulib/import/fnmatch.in.h: Update.
3747 * gnulib/import/fnmatch_loop.c: Update.
3748 * gnulib/import/fpucw.h: Update.
3749 * gnulib/import/frexp.c: Update.
3750 * gnulib/import/frexpl.c: Update.
3751 * gnulib/import/gettimeofday.c: Update.
3752 * gnulib/import/inttypes.in.h: Update.
3753 * gnulib/import/isnan.c: Update.
3754 * gnulib/import/isnand-nolibm.h: Update.
3755 * gnulib/import/isnand.c: Update.
3756 * gnulib/import/isnanl-nolibm.h: Update.
3757 * gnulib/import/isnanl.c: Update.
3758 * gnulib/import/itold.c: Update.
3759 * gnulib/import/localcharset.c: Update.
3760 * gnulib/import/localcharset.h: Update.
3761 * gnulib/import/lstat.c: Update.
3762 * gnulib/import/m4/00gnulib.m4: Update.
3763 * gnulib/import/m4/absolute-header.m4: Update.
3764 * gnulib/import/m4/alloca.m4: Update.
3765 * gnulib/import/m4/canonicalize.m4: Update.
3766 * gnulib/import/m4/codeset.m4: Update.
3767 * gnulib/import/m4/configmake.m4: Update.
3768 * gnulib/import/m4/dirent_h.m4: Update.
3769 * gnulib/import/m4/dirfd.m4: Update.
3770 * gnulib/import/m4/dirname.m4: Update.
3771 * gnulib/import/m4/double-slash-root.m4: Update.
3772 * gnulib/import/m4/eealloc.m4: Update.
3773 * gnulib/import/m4/errno_h.m4: Update.
3774 * gnulib/import/m4/exponentd.m4: Update.
3775 * gnulib/import/m4/exponentl.m4: Update.
3776 * gnulib/import/m4/extensions.m4: Update.
3777 * gnulib/import/m4/extern-inline.m4: Update.
3778 * gnulib/import/m4/fcntl-o.m4: Update.
3779 * gnulib/import/m4/float_h.m4: Update.
3780 * gnulib/import/m4/fnmatch.m4: Update.
3781 * gnulib/import/m4/fpieee.m4: Update.
3782 * gnulib/import/m4/frexp.m4: Update.
3783 * gnulib/import/m4/frexpl.m4: Update.
3784 * gnulib/import/m4/gettimeofday.m4: Update.
3785 * gnulib/import/m4/glibc21.m4: Update.
3786 * gnulib/import/m4/gnulib-cache.m4: Update.
3787 * gnulib/import/m4/gnulib-common.m4: Update.
3788 * gnulib/import/m4/gnulib-comp.m4: Update.
3789 * gnulib/import/m4/gnulib-tool.m4: Update.
3790 * gnulib/import/m4/include_next.m4: Update.
3791 * gnulib/import/m4/inttypes-pri.m4: Update.
3792 * gnulib/import/m4/inttypes.m4: Update.
3793 * gnulib/import/m4/isnand.m4: Update.
3794 * gnulib/import/m4/isnanl.m4: Update.
3795 * gnulib/import/m4/largefile.m4: Update.
3796 * gnulib/import/m4/localcharset.m4: Update.
3797 * gnulib/import/m4/locale-fr.m4: Update.
3798 * gnulib/import/m4/locale-ja.m4: Update.
3799 * gnulib/import/m4/locale-zh.m4: Update.
3800 * gnulib/import/m4/longlong.m4: Update.
3801 * gnulib/import/m4/lstat.m4: Update.
3802 * gnulib/import/m4/malloc.m4: Update.
3803 * gnulib/import/m4/malloca.m4: Update.
3804 * gnulib/import/m4/math_h.m4: Update.
3805 * gnulib/import/m4/mbrtowc.m4: Update.
3806 * gnulib/import/m4/mbsinit.m4: Update.
3807 * gnulib/import/m4/mbsrtowcs.m4: Update.
3808 * gnulib/import/m4/mbstate_t.m4: Update.
3809 * gnulib/import/m4/memchr.m4: Update.
3810 * gnulib/import/m4/memmem.m4: Update.
3811 * gnulib/import/m4/mmap-anon.m4: Update.
3812 * gnulib/import/m4/multiarch.m4: Update.
3813 * gnulib/import/m4/nocrash.m4: Update.
3814 * gnulib/import/m4/off_t.m4: Update.
3815 * gnulib/import/m4/pathmax.m4: Update.
3816 * gnulib/import/m4/readlink.m4: Update.
3817 * gnulib/import/m4/rename.m4: Update.
3818 * gnulib/import/m4/rmdir.m4: Update.
3819 * gnulib/import/m4/ssize_t.m4: Update.
3820 * gnulib/import/m4/stat.m4: Update.
3821 * gnulib/import/m4/stdbool.m4: Update.
3822 * gnulib/import/m4/stddef_h.m4: Update.
3823 * gnulib/import/m4/stdint.m4: Update.
3824 * gnulib/import/m4/stdio_h.m4: Update.
3825 * gnulib/import/m4/stdlib_h.m4: Update.
3826 * gnulib/import/m4/string_h.m4: Update.
3827 * gnulib/import/m4/strstr.m4: Update.
3828 * gnulib/import/m4/strtok_r.m4: Update.
3829 * gnulib/import/m4/sys_socket_h.m4: Update.
3830 * gnulib/import/m4/sys_stat_h.m4: Update.
3831 * gnulib/import/m4/sys_time_h.m4: Update.
3832 * gnulib/import/m4/sys_types_h.m4: Update.
3833 * gnulib/import/m4/time_h.m4: Update.
3834 * gnulib/import/m4/unistd_h.m4: Update.
3835 * gnulib/import/m4/warn-on-use.m4: Update.
3836 * gnulib/import/m4/wchar_h.m4: Update.
3837 * gnulib/import/m4/wchar_t.m4: Update.
3838 * gnulib/import/m4/wctype_h.m4: Update.
3839 * gnulib/import/m4/wint_t.m4: Update.
3840 * gnulib/import/malloc.c: Update.
3841 * gnulib/import/malloca.c: Update.
3842 * gnulib/import/malloca.h: Update.
3843 * gnulib/import/math.in.h: Update.
3844 * gnulib/import/mbrtowc.c: Update.
3845 * gnulib/import/mbsinit.c: Update.
3846 * gnulib/import/mbsrtowcs-impl.h: Update.
3847 * gnulib/import/mbsrtowcs-state.c: Update.
3848 * gnulib/import/mbsrtowcs.c: Update.
3849 * gnulib/import/memchr.c: Update.
3850 * gnulib/import/memmem.c: Update.
3851 * gnulib/import/pathmax.h: Update.
3852 * gnulib/import/readlink.c: Update.
3853 * gnulib/import/ref-add.sin: Update.
3854 * gnulib/import/ref-del.sin: Update.
3855 * gnulib/import/rename.c: Update.
3856 * gnulib/import/rmdir.c: Update.
3857 * gnulib/import/same-inode.h: Update.
3858 * gnulib/import/stat.c: Update.
3859 * gnulib/import/stdbool.in.h: Update.
3860 * gnulib/import/stddef.in.h: Update.
3861 * gnulib/import/stdint.in.h: Update.
3862 * gnulib/import/stdio.c: Update.
3863 * gnulib/import/stdio.in.h: Update.
3864 * gnulib/import/stdlib.in.h: Update.
3865 * gnulib/import/str-two-way.h: Update.
3866 * gnulib/import/streq.h: Update.
3867 * gnulib/import/string.in.h: Update.
3868 * gnulib/import/stripslash.c: Update.
3869 * gnulib/import/strnlen1.c: Update.
3870 * gnulib/import/strnlen1.h: Update.
3871 * gnulib/import/strstr.c: Update.
3872 * gnulib/import/strtok_r.c: Update.
3873 * gnulib/import/sys_stat.in.h: Update.
3874 * gnulib/import/sys_time.in.h: Update.
3875 * gnulib/import/sys_types.in.h: Update.
3876 * gnulib/import/time.in.h: Update.
3877 * gnulib/import/unistd.in.h: Update.
3878 * gnulib/import/verify.h: Update.
3879 * gnulib/import/wchar.in.h: Update.
3880 * gnulib/import/wctype.in.h: Update.
3881 * gnulib/import/gettimeofday.c: New file.
3882 * gnulib/import/m4/absolute-header.m4: New file.
3883 * gnulib/import/m4/gettimeofday.m4: New file.
3884 * gnulib/import/m4/sys_socket_h.m4: New file.
3885 * gnulib/import/m4/sys_time_h.m4: New file.
3886 * gnulib/import/stdio.c: Delete file.
3887 * gnulib/import/sys_time.in.h: New file.
3888
438e1e42
PA
38892015-08-24 Pedro Alves <palves@redhat.com>
3890
3891 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3892 * common/gdb_sys_time.h: New file.
3893 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3894 * gdb_select.h: Likewise.
3895 * gdb_usleep.c: Likewise.
3896 * maint.c: Likewise.
3897 * mi/mi-main.c: Likewise.
3898 * mi/mi-parse.h: Likewise.
3899 * remote-fileio.c: Likewise.
3900 * remote-m32r-sdi.c: Likewise.
3901 * remote.c: Likewise.
3902 * ser-base.c: Likewise.
3903 * ser-pipe.c: Likewise.
3904 * ser-tcp.c: Likewise.
3905 * ser-unix.c: Likewise.
3906 * symfile.c: Likewise.
3907 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3908 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3909 * utils.c: Likewise.
3910
40e0b271
PA
39112015-08-24 Pedro Alves <palves@redhat.com>
3912
3913 * NEWS: Mention removed support for the various ROM monitors.
3914 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3915 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3916 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3917 gdb_target_obs.
3918 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3919 gdb_target_obs.
3920 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3921 dsrec.o from gdb_target_obs.
3922 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3923 from gdb_target_obs.
3924 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3925 gdb_target_obs.
3926 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3927 dink32-rom.o from gdb_target_obs.
3928 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3929 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3930 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3931 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3932
f8904751
PA
39332015-08-21 Pedro Alves <palves@redhat.com>
3934
3935 * frame.c (null_frame_id): Explicitly zero-initialize.
3936
049412e3
TT
39372015-08-21 Tom Tromey <tromey@redhat.com>
3938
3939 * dwarf2read.c (struct dwarf2_section_info): Rename field
3940 'asection' to 'section'.
3941 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3942 (dwarf2_locate_sections, dwarf2_locate_sections)
3943 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3944 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3945 (dwarf2_locate_v2_dwp_sections): Adjust.
3946
948578a9
PP
39472015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3948
3949 * top.h (gdb_in_secondary_prompt_p): Declare.
3950 * top.c (gdb_secondary_prompt_depth): Define.
3951 (gdb_in_secondary_prompt_p): Define.
3952 (gdb_readline_wrapper_cleanup): Decrement
3953 gdb_secondary_prompt_depth.
3954 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3955 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3956 are in a secondary prompt.
3957
7a8bcb88
PP
39582015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3959
3960 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3961 emit the newline.
3962
2d7711a3
GB
39632015-08-21 Gary Benson <gbenson@redhat.com>
3964
3965 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3966
4313b8c0
GB
39672015-08-21 Gary Benson <gbenson@redhat.com>
3968
3969 * target.h (struct target_ops) <to_fileio_open>: New argument
3970 warn_if_slow. Update comment. All implementations updated.
3971 (target_fileio_open_warn_if_slow): New declaration.
3972 * target.c (target_fileio_open): Renamed as...
3973 (target_fileio_open_1): ...this. New argument warn_if_slow.
3974 Pass warn_if_slow to implementation. Update debug printing.
3975 (target_fileio_open): New function.
3976 (target_fileio_open_warn_if_slow): Likewise.
3977 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3978 target_fileio_open_warn_if_slow.
3979
f36b8719
GB
39802015-08-21 Gary Benson <gbenson@redhat.com>
3981
3982 * nat/linux-namespaces.c (linux_mntns_access_fs):
3983 Do not overwrite old_chain.
3984
40045d91
MF
39852015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3986
3987 * arch/xtensa.h: New file.
3988 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3989 (ps_get_thread_area): New function.
3990 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3991 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3992 * xtensa-tdep.c (osabi.h): New #include.
3993 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3994 xtensa-specific hooks.
3995 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3996 member and move the structure to arch/xtensa.h.
3997
80152258
PA
39982015-08-21 Pedro Alves <palves@redhat.com>
3999
4000 * remote.c (struct readahead_cache): New.
4001 (struct remote_state) <readahead_cache>: New field.
4002 (remote_open_1): Invalidate the cache.
4003 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4004 functions.
4005 (remote_hostio_pwrite): Invalidate the readahead cache.
4006 (remote_hostio_pread): Rename to ...
4007 (remote_hostio_pread_vFile): ... this.
4008 (remote_hostio_pread_from_cache): New function.
4009 (remote_hostio_pread): Reimplement.
4010 (remote_hostio_close): Invalidate the readahead cache.
4011
88fc5eb7
MC
40122015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4013
4014 PR build/18843
4015 * procfs.c: Include "filestuff.h".
4016
6f1cb6ea
PP
40172015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4018
4019 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4020 curch.
4021 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4022 cur_line or curch, instead call wmove().
4023 (init_win_info) [CMD_WIN]: Likewise.
4024 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4025 instead call getcury().
4026 (tui_redisplay_readline): Don't set cur_line or curch.
4027 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4028 getcury().
4029 (tui_cont_sig): Remove call to wmove.
4030 (tui_getc): Don't read cur_line or curch, instead call getcury()
4031 or getyx(). Don't set curch.
4032 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4033 set cur_line or curch. Always move cursor to (0,0).
4034
221e1a37
PA
40352015-08-20 Pedro Alves <palves@redhat.com>
4036
4037 * infrun.c (print_target_wait_results): Make extern.
4038 * infrun.h (print_target_wait_results): Declare.
4039 * remote.c (set_stop_requested_callback): Delete.
4040 (process_initial_stop_replies): New function.
4041 (remote_start_remote): Use it.
4042 (stop_reply_queue_length): New function.
4043
40e3ad0e
PA
40442015-08-20 Pedro Alves <palves@redhat.com>
4045
4046 * dwarf2read.c (process_full_comp_unit): To tell whether
4047 start_subfile managed to deduce a language, test for
4048 language_unknown instead of language_c.
4049
af39b327
PMR
40502015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4051
4052 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4053 matches attributes.
4054
7d45c7c3
KB
40552015-08-19 Kevin Buettner <kevinb@redhat.com>
4056
4057 * dwarf2read.c (dwarf2_string_attr): New function.
4058 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4059 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4060 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4061 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4062 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4063
4d6cceb4
DE
40642015-08-18 Doug Evans <dje@google.com>
4065 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4066
4067 PR mi/18833
4068 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4069 if MI-like.
4070 * mi/mi-out.c: #include "vec.h".
4071 (ui_filep): New type.
4072 (DEV_VEC_P (ui_filep)): New type.
4073 (struct ui_out_data) <buffer, original_buffer>: Delete.
4074 (struct ui_out_data) <streams>: New member.
4075 (mi_ui_out_impl): Add data_destroy field.
4076 (mi_field_string, mi_field_fmt): Update.
4077 (mi_flush, mi_redirect, field_separator): Update.
4078 (mi_open, mi_close): Update.
4079 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4080 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4081 (mi_out_new): Call mi_out_data_ctor.
4082
26d56a93
SL
40832015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4084
4085 * remote.c (strprefix): New.
4086 (remote_parse_stop_reply): Use strprefix instead of strncmp
4087 to ensure exact match of keyword.
4088
566f5e3b
AB
40892015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4090
4091 * gdb_bfd.c (debug_bfd_cache): New variable.
4092 (show_bfd_cache_debug): New function.
4093 (gdb_bfd_open): Add debug logging.
4094 (gdb_bfd_ref): Likewise.
4095 (gdb_bfd_unref): Likewise.
4096 (_initialize_gdb_bfd): Add new set/show command.
4097 * NEWS: Mention new command.
4098
18989b3c
AB
40992015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4100
4101 * gdb_bfd.c (bfd_sharing): New variable.
4102 (show_bfd_sharing): New function.
4103 (gdb_bfd_open): Check bfd_sharing variable.
4104 (_initialize_gdb_bfd): Add new set/show command.
4105 * NEWS: Mention new command.
4106
c04fe68f
AB
41072015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4108
4109 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4110 field.
4111 (struct gdb_bfd_cache_search): Likewise.
4112 (eq_bfd): Compare the size, inode, and device id fields.
4113 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4114 (gdb_bfd_ref): Likewise.
4115 (gdb_bfd_unref): Likewise.
4116
b2a33439
PA
41172015-08-18 Pedro Alves <palves@redhat.com>
4118
4119 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4120 target implements to_always_non_stop_p, call it.
4121 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4122 (x86_linux_create_target): Install it as to_always_non_stop_p
4123 method.
4124
71b57e37
DE
41252015-08-17 Doug Evans <dje@google.com>
4126
4127 * ui-out.c (default_ui_out_impl): Add comment.
4128
7f3706eb
IB
41292015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4130
4131 * d-exp.y (type_aggregate_p): New function.
4132 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4133 (classify_inner_name): Likewise.
4134 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4135
1762568f
DE
41362015-08-15 Doug Evans <xdje42@gmail.com>
4137
4138 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4139 updated.
4140 (add_psymbol_to_list): Ditto.
4141
8763cede
DE
41422015-08-15 Doug Evans <xdje42@gmail.com>
4143
4144 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4145 updated. Call end_psymtab_common.
4146 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4147 end_psymtab_common.
4148 (build_type_psymtabs_reader): Ditto.
4149 * psympriv.h (sort_pst_symbols): Delete.
4150 (end_psymtab_common): Declare.
4151 * psymtab.c (sort_pst_symbols): Make static.
4152 (end_psymtab_common): New function.
4153 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4154
51cdc993
DE
41552015-08-15 Doug Evans <xdje42@gmail.com>
4156
4157 * defs.h (LANGUAGE_BITS): Define.
4158 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4159 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4160 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4161 (minimal_symbol_type): Add nr_minsym_types.
4162 (MINSYM_TYPE_BITS): Define.
4163 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4164 (domain_enum_tag): Add NR_DOMAINS.
4165 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4166 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4167
95cf5869
DE
41682015-08-15 Doug Evans <xdje42@gmail.com>
4169
4170 * objfiles.h: Whitespace cleanup.
4171 * psympriv.h: Whitespace cleanup.
4172 * psymtab.c: Whitespace/coding convention cleanup.
4173
e3ae3c43
PP
41742015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4175
4176 * inferior.c (detach_inferior_command): Don't call
4177 any_thread_of_process when pid is 0.
4178 (kill_inferior_command): Likewise.
4179
6ff0ba5f
DE
41802015-08-14 Doug Evans <xdje42@gmail.com>
4181
4182 PR gdb/11833
4183 * NEWS: Document new /s modifier for the disassemble command.
4184 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4185 (_initialize_cli_cmds): Update online docs of disassemble command.
4186 * disasm.c: #include "source.h".
4187 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4188 All uses updated.
4189 (dis_line_entry): New struct.
4190 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4191 (allocate_dis_line_table): New functions.
4192 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4193 (dump_insns): New arg end_pc. All callers updated.
4194 (do_mixed_source_and_assembly_deprecated): Renamed from
4195 do_mixed_source_and_assembly. All callers updated.
4196 (do_mixed_source_and_assembly): New function.
4197 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4198 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4199 DISASSEMBLY_SOURCE. All uses updated.
4200 (DISASSEMBLY_SOURCE): New macro.
4201 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4202
b56ccc20
KS
42032015-08-14 Keith Seitz <keiths@redhat.com>
4204
4205 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4206 `typename' to `type_name' to avoid C++ reserved word.
4207
ebdad8fc
KS
42082015-08-14 Keith Seitz <keiths@redhat.com>
4209
4210 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4211 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4212 silence ARI errors.
4213
c0fe2ae7
IB
42142015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4215
4216 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4217 xstrprintf instead of malloc and sprintf.
4218 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4219 (lex_one_token): Likewise.
4220
a738da3a
MF
42212015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4222
4223 * solib-svr4.c (read_program_header): Add base_addr argument to
4224 report the runtime address of the segment.
4225 (find_program_interpreter): Update read_program_header call to pass
4226 a NULL pointer for the new argument.
4227 (scan_dyntag): Add ptr_addr argument to report the runtime address
4228 of the tag payload.
4229 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4230 read_program_header to get the base address of the dynamic segment.
4231 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4232 read_program_header.
4233 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4234
f8edc4ff
MF
42352015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4236
4237 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4238
444c1ed8
IB
42392015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4240
4241 * d-exp.y (%union): Add voidval.
4242 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4243 name in the lexing stage.
4244 (PostfixExpression): Move symbol completion handling in grammar here
4245 from PrimaryExpression.
4246 (PrimaryExpression): Move routines to handle resolving identifier
4247 tokens in the grammar here from push_expression_name.
4248 (IdentifierExp): Remove the handling of alternating '.' and identifier
4249 tokens.
4250 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4251 (BasicType): Remove C-style typename rules.
4252 (d_type_from_name, d_module_from_name, push_variable)
4253 (push_fieldnames, push_type_name, push_module_name)
4254 (push_expression_name): Remove.
4255 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4256 (token_and_value): New type.
4257 (token_fifo, popping, name_obstack): New globals.
4258 (classify_name): New function.
4259 (classify_inner_name): Likewise.
4260 (yylex): Likewise.
4261 (d_parse): Initialize token_fifo, popping and name_obstack.
4262
bc7c9fab
IB
42632015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4264
4265 * Makefile.in (SFILES): Add d-namespace.c.
4266 (COMMON_OBS): Add d-namespace.o.
4267 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4268 la_lookup_symbol_nonlocal callback function pointer.
4269 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4270 (d_lookup_nested_symbol): New declaration.
4271 * d-namespace.c: New file.
4272
3207396b
PA
42732015-08-13 Pedro Alves <palves@redhat.com>
4274
4275 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4276 cleanup after the decref cleanup, not before.
4277
5d8c3ed3
PMR
42782015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4279
4280 * ada-lang.c: Include namespace.h
4281 (aux_add_nonlocal_symbols): Fix a function name in comment.
4282 (ada_add_block_renamings): New.
4283 (add_nonlocal_symbols): Add global renamings handling.
4284 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4285 to...
4286 (ada_add_all_symbols): ... this new function.
4287 (ada_add_block_symbols): Try to match the input name against the
4288 "using directives list", perform a recursive symbol lookup on
4289 the matched declarations.
4290 * block.h (struct block): Move the_namespace to top-level as
4291 namespace_info. Remove the language_specific field.
4292 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4293 * buildsym.h (using_directives): Rename into...
4294 (local_using_directives): ... this.
4295 (global_using_directives): New.
4296 (struct context_stack): Rename the using_directives field into
4297 local_using_directives.
4298 * buildsym.c (finish_block_internal): Deal with the proper
4299 using directives repository (local or global).
4300 (prepare_for_building): Reset local_using_directives. Assert
4301 that there is no pending global using directive.
4302 (reset_symtab_globals): Reset global_using_directives and
4303 local_using_directives.
4304 (end_symtab_get_static_block): Don't ignore symtabs that have
4305 only using directives.
4306 (push_context): Update references to local_using_directives.
4307 (buildsym_init): Do not reset using_directives.
4308 * cp-support.c: Include namespace.h.
4309 * cp-support.h (struct using_direct): Move to namespace.h.
4310 (cp_add_using_directives): Move to namespace.h.
4311 * cp-namespace.c: Include namespace.h
4312 (cp_add_using_directive): Move to namespace.c, rename it to
4313 add_using_directive, add a "using_directives" argument and use
4314 it as the pending using directives repository. All callers
4315 updated.
4316 * dwarf2read.c (using_directives): New.
4317 (read_import_statement): Call using_directives.
4318 (read_func_scope): Update references to local_using_directives.
4319 (read_lexical_block_scope): Likewise.
4320 (read_namespace): Update the heading comment, call
4321 using_directives.
4322 * namespace.h: New file.
4323 * namespace.c: New file.
4324 * Makefile.in (SFILES): Add namespace.c.
4325 (COMMON_OBS): Add namespace.o
4326
4dafcdeb
JB
43272015-08-12 Joel Brobecker <brobecker@adacore.com>
4328
4329 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4330 compute RETADDR.
4331
67994074
KS
43322015-08-12 Keith Seitz <keiths@redhat.com>
4333
4334 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4335 reserved C++ keyword "explicit" to "explicit_loc".
4336 * breakpoint.c (create_overlay_event_breakpoint)
4337 (create_longjmp_master_breakpoint)
4338 (create_std_terminate_master_breakpoint)
4339 (create_exception_master_breakpoint, update_static_tracepoint):
4340 Rename reserved C++ keyword "explicit" to "explicit_loc".
4341 * completer.c (collect_explicit_location_matches)
4342 (explicit_location_completer): Rename reserved C++ keyword
4343 "explicit" to "explicit_loc".
4344 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4345 (canonicalize_linespec, create_sals_line_offset)
4346 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4347 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4348 "explicit" to "explicit_loc".
4349 * location.c (struct event_location) <explicit>: Rename to
4350 "explicit_loc".
4351 (initialize_explicit_location, new_explicit_location)
4352 (explicit_location_to_string_internal, explicit_location_to_linespec):
4353 Rename reserved C++ keyword "explicit" to "explicit_loc".
4354 * location.h (explicit_location_to_string)
4355 (explicit_location_to_linespec, initialize_explicit_location)
4356 (new_explicit_location): Rename reserved C++ keyword "explicit"
4357 to "explicit_loc".
4358 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4359 keyword "explicit" to "explicit_loc".
4360
59ecaff3
KS
43612015-08-12 Keith Seitz <keiths@redhat.com>
4362
4363 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4364 and only call decode_line_1 when it is non-NULL.
4365
244558af
LM
43662015-08-12 Luis Machado <lgustavo@codesourcery.com>
4367
4368 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4369 location address is not meaningful.
4370 (breakpoint_address_is_meaningful): Update comment.
4371
629500fa
KS
43722015-08-11 Keith Seitz <keiths@redhat.com>
4373
4374 * NEWS: Mention explicit locations.
4375 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4376 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4377 (_initialize_breakpoint): Update documentation for
4378 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4379
eb8c4e2e
KS
43802015-08-11 Keith Seitz <keiths@redhat.com>
4381
4382 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4383 explicit locations, options "--source", "--function",
4384 "--label", and "--line".
4385
87f0e720
KS
43862015-08-11 Keith Seitz <keiths@redhat.com>
4387
4388 * completer.c: Include location.h.
4389 (enum match_type): New enum.
4390 (location_completer): Rename to ...
4391 (linespec_completer): ... this.
4392 (collect_explicit_location_matches, backup_text_ptr)
4393 (explicit_location_completer): New functions.
4394 (location_completer): "New" function; handle linespec
4395 and explicit location completions.
4396 (complete_line_internal): Remove all location completer-specific
4397 handling.
4398 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4399 (find_toplevel_char): Export.
4400 (linespec_parse_line_offset): Export.
4401 Issue error if STRING is not numerical.
4402 (gdb_get_linespec_parser_quote_characters): New function.
4403 * linespec.h (linespec_parse_line_offset): Declare.
4404 (get_gdb_linespec_parser_quote_characters): Declare.
4405 (is_ada_operator): Declare.
4406 (find_toplevel_char): Declare.
4407 (linespec_lexer_lex_keyword): Declare.
4408 * location.c (explicit_to_event_location): New function.
4409 (explicit_location_lex_one): New function.
4410 (string_to_explicit_location): New function.
4411 (string_to_event_location): Handle explicit locations.
4412 * location.h (explicit_to_event_location): Declare.
4413 (string_to_explicit_location): Declare.
4414
00e52e53
KS
44152015-08-11 Keith Seitz <keiths@redhat.com>
4416
4417 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4418 linespec into explicit location.
4419 * breakpoint.c (create_overlay_breakpoint)
4420 (create_longjmp_master_breakpoint)
4421 (create_std_terminate_master_breakpoint)
4422 (create_exception_master_breakpoint): Convert linespec into explicit
4423 location.
4424 (update_static_tracepoint): Convert linespec into explicit location.
4425 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4426 location.h.
4427 (struct linespec) <expression, expr_pc, source_filename>
4428 <function_name, label_name, line_offset>: Replace with ...
4429 <explicit>: ... this.
4430 <is_linespec>: New member.
4431 (PARSER_EXPLICIT): New accessor macro.
4432 (undefined_label_error): New function.
4433 (source_file_not_found_error): New function.
4434 (linespec_parse_basic): The parser result is now an explicit location.
4435 Use PARSER_EXPLICIT to access it.
4436 Use undefined_label_error.
4437 (canonicalize_linespec): Convert canonical linespec into explicit
4438 location.
4439 Move string representation of location to explicit_location_to_linespec
4440 and use it and explicit_location_to_string to save string
4441 representations of the canonical location.
4442 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4443 explicit location. Update all references.
4444 (convert_explicit_location_to_sals): New function.
4445 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4446 result's explicit location.
4447 (linespec_state_constructor): Initialize is_linespec.
4448 Use PARSER_EXPLICIT.
4449 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4450 result.
4451 (event_location_to_sals): For linespec locations, set is_linespec.
4452 Handle explicit locations.
4453 (decode_objc): 'ls' contains an explicit location now. Update all
4454 references.
4455 (symtabs_from_filename): Use source_file_not_found_error.
4456 * location.c (struct event_location.u) <explicit>: New member.
4457 (initialize_explicit_location): New function.
4458 (initialize_event_location): Initialize explicit locations.
4459 (new_explicit_location, get_explicit_location)
4460 (get_explicit_location_const): New functions.
4461 (explicit_to_string_internal): New function; most of contents moved
4462 from canonicalize_linespec.
4463 (explicit_location_to_string): New function.
4464 (explicit_location_to_linespec): New function.
4465 (copy_event_location, delete_event_location)
4466 (event_location_to_string_const, event_location_empty_p): Handle
4467 explicit locations.
4468 * location.h (enum offset_relative_sign, struct line_offset): Move
4469 here from linespec.h.
4470 (enum event_location_type): Add EXPLICIT_LOCATION.
4471 (struct explicit_location): New structure.
4472 (explicit_location_to_string): Declare.
4473 (explicit_location_to_linespec): Declare.
4474 (new_explicit_location, get_explicit_locationp
4475 (get_explicit_location_const, initialize_explicit_location): Declare.
4476
5b56227b
KS
44772015-08-11 Keith Seitz <keiths@redhat.com>
4478
4479 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4480 linespec for stap probe to probe location.
4481 * breakpoint.c (create_longjmp_master_breakpoint)
4482 (create_exception_master_breakpoint): Likewise.
4483 (break_command_1): Remove local variable `arg_cp'.
4484 Check location type to set appropriate breakpoint ops methods.
4485 (trace_command): Likewise.
4486 * linespec.c (event_location_to_sals): Assert on probe locations.
4487 * location.c (EL_PROBE): Add macro definition.
4488 (new_probe_location, get_probe_location): New functions.
4489 (copy_event_location, delete_event_location, event_location_to_string)
4490 (string_to_event_location, event_location_empty_p): Handle probe
4491 locations.
4492 * location.h (enum event_location_type): Add PROBE_LOCATION.
4493 (new_probe_location, get_probe_location): Declare.
4494 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4495 Convert linespec into probe location.
4496
a06efdd6
KS
44972015-08-11 Keith Seitz <keiths@redhat.com>
4498
4499 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4500 Convert linespec to address location.
4501 * linespec.c (canonicalize_linespec): Do not handle address
4502 locations here.
4503 (convert_address_location_to_sals): New function; contents moved
4504 from ...
4505 (convert_linespc_to_sals): ... here.
4506 (parse_linespec): Remove address locations from linespec grammar.
4507 Remove handling of address locations.
4508 (linespec_lex_to_end): Remove handling of address linespecs.
4509 (event_location_to_sals): Handle ADDRESS_LOCATION.
4510 (linespec_expression_to_pc): Export.
4511 * linespec.h (linespec_expression_to_pc): Add declaration.
4512 * location.c (struct event_location.u) <address>: New member.
4513 (new_address_location, get_address_location): New functions.
4514 (copy_event_location, delete_event_location, event_location_to_string)
4515 (string_to_event_location, event_location_empty_p): Handle address
4516 locations.
4517 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4518 (new_address_location, get_address_location): Declare.
4519 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4520 to address location.
4521 * spu-tdep.c (spu_catch_start): Likewise.
4522
f00aae0f
KS
45232015-08-11 Keith Seitz <keiths@redhat.com>
4524
4525 * ax-gdb.c: Include location.h.
4526 (agent_command_1) Use linespec location instead of address
4527 string.
4528 * break-catch-throw.c: Include location.h.
4529 (re_set_exception_catchpoint): Use linespec locations instead
4530 of address strings.
4531 * breakpoint.c: Include location.h.
4532 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4533 (create_std_terminate_master_breakpoint)
4534 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4535 Use linespec location instead of address string.
4536 (print_breakpoint_location): Use locations and
4537 event_location_to_string.
4538 Print extra_string for pending locations for non-MI streams.
4539 (print_one_breakpoint_location): Use locations and
4540 event_location_to_string.
4541 (init_raw_breakpoint_without_location): Initialize b->location.
4542 (create_thread_event_breakpoint): Use linespec location instead of
4543 address string.
4544 (init_breakpoint_sal): Likewise.
4545 Only save extra_string if it is non-NULL and not the empty string.
4546 Use event_location_to_string instead of `addr_string'.
4547 Constify `p' and `endp'.
4548 Use skip_spaces_const/skip_space_const instead of non-const versions.
4549 Copy the location into the breakpoint.
4550 If LOCATION is NULL, save the breakpoint address as a linespec location
4551 instead of an address string.
4552 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4553 event_location. All uses updated.
4554 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4555 (parse_breakpoint_sals): Use locations instead of address strings.
4556 Remove check for empty linespec with conditional.
4557 Refactor.
4558 (decode_static_tracepoint_spec): Make argument const and update
4559 function.
4560 (create_breakpoint): Change `arg' to a struct event_location and
4561 rename.
4562 Remove `copy_arg' and `addr_start'.
4563 If EXTRA_STRING is empty, set it to NULL.
4564 Don't populate `canonical' for pending breakpoints.
4565 Pass `extra_string' to find_condition_and_thread.
4566 Clear `extra_string' if `rest' was NULL.
4567 Do not error with "garbage after location" if setting a dprintf
4568 breakpoint.
4569 Copy the location into the breakpoint instead of an address string.
4570 (break_command_1): Use string_to_event_location and pass this to
4571 create_breakpoint instead of an address string.
4572 Check against `arg_cp' for a probe linespec.
4573 (dprintf_command): Use string_to_event_location and pass this to
4574 create_breakpoint instead of an address string.
4575 Throw an exception if no format string was specified.
4576 (print_recreate_ranged_breakpoint): Use event_location_to_string
4577 instead of address strings.
4578 (break_range_command, until_break_command)
4579 (init_ada_exception_breakpoint): Use locations instead
4580 of address strings.
4581 (say_where): Print out extra_string for pending locations.
4582 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4583 the breakpoint.
4584 (base_breakpoint_create_sals_from_location): Use struct event_location
4585 instead of address string.
4586 Remove `addr_start' and `copy_arg' parameters.
4587 (base_breakpoint_decode_location): Use struct event_location instead of
4588 address string.
4589 (bkpt_re_set): Use locations instead of address strings.
4590 Use event_location_empty_p to check for unset location.
4591 (bkpt_print_recreate): Use event_location_to_string instead of
4592 an address string.
4593 Print out extra_string for pending locations.
4594 (bkpt_create_sals_from_location, bkpt_decode_location)
4595 (bkpt_probe_create_sals_from_location): Use struct event_location
4596 instead of address string.
4597 (bkpt_probe_decode_location): Use struct event_location instead of
4598 address string.
4599 (tracepoint_print_recreate): Use event_location_to_string to
4600 recreate the tracepoint.
4601 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4602 (tracepoint_probe_create_sals_from_location)
4603 (tracepoint_probe_decode_location): Use struct event_location
4604 instead of address string.
4605 (dprintf_print_recreate): Use event_location_to_string to recreate
4606 the dprintf.
4607 (dprintf_re_set): Remove check for valid/missing format string.
4608 (strace_marker_create_sals_from_location)
4609 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4610 (update_static_tracepoint): Use struct event_location instead of
4611 address string.
4612 (location_to_sals): Likewise.
4613 Pass `extra_string' to find_condition_and_thread.
4614 For newly resolved pending breakpoint locations, clear the location's
4615 string representation.
4616 Assert that the breakpoint's condition string is NULL when
4617 condition_not_parsed.
4618 (breakpoint_re_set_default, create_sals_from_location_default)
4619 (decode_location_default, trace_command, ftrace_command)
4620 (strace_command, create_tracepoint_from_upload): Use locations
4621 instead of address strings.
4622 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4623 Use struct event_location instead of address string.
4624 Update all uses.
4625 <decode_location>: Likewise.
4626 (struct breakpoint) <addr_string>: Change to struct event_location
4627 and rename `location'.
4628 <addr_string_range_end>: Change to struct event_location and rename
4629 `location_range_end'.
4630 (create_breakpoint): Use struct event_location instead of address
4631 string.
4632 * cli/cli-cmds.c: Include location.h.
4633 (edit_command, list_command): Use locations instead of address strings.
4634 * elfread.c: Include location.h.
4635 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4636 * guile/scm-breakpoint.c: Include location.h.
4637 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4638 (gdbscm_register_breakpoint): Use locations instead of address
4639 strings.
4640 * linespec.c: Include location.h.
4641 (struct ls_parser) <stream>: Change to const char *.
4642 (PARSER_STREAM): Update.
4643 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4644 keywords must be followed by whitespace.
4645 (canonicalize_linespec): Save a linespec location into `canonical'.
4646 Save a canonical linespec into `canonical'.
4647 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4648 All uses updated.
4649 Update function description.
4650 (linespec_parser_new): Initialize `parser'.
4651 Update initialization of parsing stream.
4652 (event_location_to_sals): New function.
4653 (decode_line_full): Change `argptr' to a struct event_location and
4654 rename it `location'.
4655 Use locations instead of address strings.
4656 Call event_location_to_sals instead of parse_linespec.
4657 (decode_line_1): Likewise.
4658 (decode_line_with_current_source, decode_line_with_last_displayed)
4659 Use locations instead of address strings.
4660 (decode_objc): Likewise.
4661 Change `argptr' to const char * and rename `arg'.
4662 (destroy_linespec_result): Delete the linespec result's location
4663 instead of freeing the address string.
4664 * linespec.h (struct linespec_result) <addr_string>: Change to
4665 struct event_location and rename to ...
4666 <location>: ... this.
4667 (decode_line_1, decode_line_full): Change `argptr' to struct
4668 event_location. All callers updated.
4669 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4670 (mi_cmd_break_insert_1): Use locations instead of address strings.
4671 Throw an error if there was "garbage" at the end of the specified
4672 linespec.
4673 * probe.c: Include location.h.
4674 (parse_probes): Change `argptr' to struct event_location.
4675 Use event locations instead of address strings.
4676 * probe.h (parse_probes): Change `argptr' to struct event_location.
4677 * python/py-breakpoint.c: Include location.h.
4678 (bppy_get_location): Constify local variable `str'.
4679 Use event_location_to_string.
4680 (bppy_init): Use locations instead of address strings.
4681 * python/py-finishbreakpoint.c: Include location.h.
4682 (bpfinishpy_init): Remove local variable `addr_str'.
4683 Use locations instead of address strings.
4684 * python/python.c: Include location.h.
4685 (gdbpy_decode_line): Use locations instead of address strings.
4686 * remote.c: Include location.h.
4687 (remote_download_tracepoint): Use locations instead of address
4688 strings.
4689 * spu-tdep.c: Include location.h.
4690 (spu_catch_start): Remove local variable `buf'.
4691 Use locations instead of address strings.
4692 * tracepoint.c: Include location.h.
4693 (scope_info): Use locations instead of address strings.
4694 (encode_source_string): Constify parameter `src'.
4695 * tracepoint.h (encode_source_string): Likewise.
4696
c7c1b3e9
KS
46972015-08-11 Keith Seitz <keiths@redhat.com>
4698
4699 * Makefile.in (SFILES): Add location.c.
4700 (HFILES_NO_SRCDIR): Add location.h.
4701 (COMMON_OBS): Add location.o.
4702 * linespec.c (linespec_lex_to_end): New function.
4703 * linespec.h (linespec_lex_to_end): Declare.
4704 * location.c: New file.
4705 * location.h: New file.
4706
5f700d83
KS
47072015-08-11 Keith Seitz <keiths@redhat.com>
4708
4709 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4710 Renamed to create_sals_from_location.
4711 <decode_linespec>: Renamed to decode_location.
4712 Update all callers.
4713 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4714 (create_sals_from_location_default): ... this.
4715 (addr_string_to_sals): Renamed to ...
4716 (location_to_sals): ... this.
4717 (decode_linespec_default): Renamed to ...
4718 (decode_location_default): ... this.
4719 (base_breakpoint_create_sals_from_address): Renamed to ...
4720 (base_breakpoint_create_sals_from_location): ... this.
4721 (bkpt_create_sals_from_address): Renamed to ...
4722 (bkpt_create_sals_from_location): ... this.
4723 (bkpt_decode_linespec): Renamed to ...
4724 (bkpt_decode_location): ... this.
4725 (bkpt_probe_create_sals_from_address): Renamed to ...
4726 (bkpt_probe_create_sals_from_location): ... this.
4727 (tracepoint_create_sals_from_address): Renamed to ...
4728 (tracepoint_create_sals_from_location): ... this.
4729 (tracepoint_decode_linespec): Renamed to ...
4730 (tracepoint_decode_location): ... this.
4731 (tracepoint_probe_create_sals_from_address): Renamed to ...
4732 (tracepoint_probe_create_sals_from_location): ... this.
4733 (tracepoint_probe_decode_linespec): Renamed to ...
4734 (tracepoint_probe_decode_location): ... this.
4735 (strace_marker_create_sals_from_address): Renamed to ...
4736 (strace_marker_create_sals_from_location): ... this.
4737 (decode_linespec_default): Renamed to ...
4738 (decode_location_default): ... this.
4739
e27852be
DE
47402015-08-10 Doug Evans <dje@google.com>
4741 Keith Seitz <keiths@redhat.com>
4742
4743 PR gdb/17960
4744 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4745 make_file_symbol_completion_list and made static.
4746 (make_file_symbol_completion_list): New function.
80af41e0 4747
fd7dcb94
JB
47482015-08-10 Joel Brobecker <brobecker@adacore.com>
4749
4750 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4751 trailing new-line at end of warning message.
4752 (proceed): Add i18n marker to error messages.
4753
f12899e9
PA
47542015-08-07 Pedro Alves <palves@redhat.com>
4755
4756 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4757
5ac21343
PA
47582015-08-07 Pedro Alves <palves@redhat.com>
4759
4760 * s390-linux-tdep.c (is_non_branch_ril)
4761 (s390_displaced_step_copy_insn): New functions.
4762 (s390_displaced_step_fixup): Update comment.
4763 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4764 gdbarch_displaced_step_copy_insn hook.
4765
7f03bd92
PA
47662015-08-07 Pedro Alves <palves@redhat.com>
4767
4768 * infrun.c (displaced_step_prepare_throw): Return -1 if
4769 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4770 comment.
4771 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4772 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4773 in file.
4774 (ppc_displaced_step_copy_insn): New function.
4775 (ppc_displaced_step_fixup): Update comment.
4776 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4777 gdbarch_displaced_step_copy_insn hook.
4778 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4779 NULL return.
4780 * gdbarch.h: Regenerate.
4781
3fc8eb30
PA
47822015-08-07 Pedro Alves <palves@redhat.com>
4783
4784 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4785 field.
4786 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4787 Return false if dispaced stepping failed before.
4788 (resume): Pass the current inferior to
4789 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4790 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4791 displaced_stepping_failed flag, and fall back to an in-line
4792 step-over.
4793
bfedc46a
PA
47942015-08-07 Pedro Alves <palves@redhat.com>
4795
4796 * darwin-nat.c (darwin_stop): Rename to ...
4797 (darwin_interrupt): ... this.
4798 (_initialize_darwin_inferior): Adjust.
4799 * gnu-nat.c (gnu_stop): Delete.
4800 (gnu_target): Don't install gnu_stop.
4801 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4802 (inf_ptrace_interrupt): ... this.
4803 (inf_ptrace_target): Adjust.
4804 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4805 target_stop.
4806 * linux-nat (linux_nat_stop): Rename to ...
4807 (linux_nat_interrupt): ... this.
4808 (linux_nat_stop): Reimplement.
4809 (linux_nat_add_target): Install linux_nat_interrupt.
4810 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4811 (nto_handle_sigint_twice): ... this.
4812 (nto_interrupt): Rename to ...
4813 (nto_handle_sigint): ... this. Call target_interrupt instead of
4814 target_stop.
4815 (procfs_wait): Adjust.
4816 (procfs_stop): Rename to ...
4817 (procfs_interrupt): ... this.
4818 (init_procfs_targets): Adjust.
4819 * procfs.c (procfs_stop): Rename to ...
4820 (procfs_interrupt): ... this.
4821 (procfs_target): Adjust.
4822 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4823 (m32r_interrupt): ... this.
4824 (init_m32r_ops): Adjust.
4825 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4826 (gdbsim_interrupt_inferior): ... this.
4827 (gdbsim_stop): Rename to ...
4828 (gdbsim_interrupt): ... this.
4829 (gdbsim_cntrl_c): Adjust.
4830 (init_gdbsim_ops): Adjust.
4831 * remote.c (sync_remote_interrupt): Adjust comments.
4832 (remote_stop_as): Rename to ...
4833 (remote_interrupt_as): ... this.
4834 (remote_stop): Adjust comment.
4835 (remote_interrupt): New function.
4836 (init_remote_ops): Install remote_interrupt.
4837 * target.c (target_interrupt): New function.
4838 * target.h (struct target_ops) <to_interrupt>: New field.
4839 (target_interrupt): New declaration.
4840 * windows-nat.c (windows_stop): Rename to ...
4841 (windows_interrupt): ... this.
4842 * target-delegates.c: Regenerate.
4843
d55007b5
PA
48442015-08-07 Pedro Alves <palves@redhat.com>
4845
4846 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4847 threads" as alternative to "switching back to stepped thread".
4848
fbea99ea
PA
48492015-08-07 Pedro Alves <palves@redhat.com>
4850
4851 * NEWS: Mention "maint set/show target-non-stop".
4852 * breakpoint.c (update_global_location_list): Check
4853 target_is_non_stop_p instead of non_stop.
4854 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4855 * infrun.c (show_can_use_displaced_stepping)
4856 (can_use_displaced_stepping_p, start_step_over_inferior):
4857 Likewise.
4858 (internal_resume_ptid): New function.
4859 (resume): Use it.
4860 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4861 all-stop mode but the target is always in non-stop mode, start all
4862 the other threads that are implicitly resumed too.
4863 (for_each_just_stopped_thread, fetch_inferior_event)
4864 (adjust_pc_after_break, stop_all_threads): Check
4865 target_is_non_stop_p instead of non_stop.
4866 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4867 with the target always in non-stop mode.
4868 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4869 instead of non_stop.
4870 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4871 instead of non_stop.
4872 (keep_going_stepped_thread): Use internal_resume_ptid.
4873 (stop_waiting): If in all-stop mode, and the target is in non-stop
4874 mode, stop all threads.
4875 (keep_going_pass): Likewise, when starting a new in-line step-over
4876 sequence.
4877 * linux-nat.c (get_pending_status, select_event_lwp)
4878 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4879 target_is_non_stop_p instead of non_stop.
4880 (linux_nat_always_non_stop_p): New function.
4881 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4882 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4883 * target-delegates.c: Regenerate.
4884 * target.c (target_is_non_stop_p): New function.
4885 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4886 (maint_set_target_non_stop_command)
4887 (maint_show_target_non_stop_command): New functions.
4888 (_initilize_target): Install "maint set/show target-non-stop"
4889 commands.
4890 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4891 (target_non_stop_enabled): New declaration.
4892 (target_is_non_stop_p): New declaration.
4893
372316f1
PA
48942015-08-07 Pedro Alves <pedro@codesourcery.com>
4895
4896 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4897 has a pending status, return true.
4898 * gdbthread.h: Include target/waitstatus.h.
4899 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4900 stop_pc>: New fields.
4901 (struct thread_info) <resumed>: New field.
4902 (set_resumed): Declare.
4903 * infrun.c: Include "event-loop.h".
4904 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4905 (infrun_async): New function.
4906 (clear_step_over_info): Add debug output.
4907 (displaced_step_in_progress_any_inferior): New function.
4908 (displaced_step_fixup): New returns int.
4909 (start_step_over): Handle in-line step-overs too. Assert the
4910 thread is marked resumed.
4911 (resume_cleanups): Clear the thread's resumed flag.
4912 (resume): Set the thread's resumed flag. Return early if the
4913 thread has a pending status. Allow stepping a breakpoint with no
4914 signal.
4915 (proceed): Adjust to check 'resumed' instead of 'executing'.
4916 (clear_proceed_status_thread): If the thread has a pending status,
4917 and that status is a finished step, discard the pending status.
4918 (clear_proceed_status): Don't clear step_over_info here.
4919 (random_pending_event_thread, do_target_wait): New functions.
4920 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4921 do_target_wait.
4922 (wait_one): New function.
4923 (THREAD_STOPPED_BY): New macro.
4924 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4925 (thread_stopped_by_hw_breakpoint): New functions.
4926 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4927 functions.
4928 (handle_inferior_event): Also call set_resumed(false) on all
4929 threads implicitly stopped by the event.
4930 (restart_threads, resumed_thread_with_pending_status): New
4931 functions.
4932 (finish_step_over): If we were doing an in-line step-over before,
4933 and no longer are after trying to start a new step-over, restart
4934 all threads. If we have multiple threads with pending events,
4935 save the current event and go through the event loop again.
4936 (handle_signal_stop): Return early if finish_step_over returns
4937 false.
4938 <random signal>: If we get a signal while stepping over a
4939 breakpoint in-line in non-stop mode, restart all threads. Clear
4940 step_over_info before delivering the signal.
4941 (keep_going_stepped_thread): Use internal_error instead of
4942 gdb_assert. Mark the thread as resumed.
4943 (keep_going_pass_signal): Assert the thread isn't already resumed.
4944 If some other thread is doing an in-line step-over, defer the
4945 resume. If we just started a new in-line step-over, stop all
4946 threads. Don't clear step_over_info.
4947 (infrun_async_inferior_event_handler): New function.
4948 (_initialize_infrun): Create async event handler with
4949 infrun_async_inferior_event_handler as callback.
4950 (infrun_async): New declaration.
4951 * target.c (target_async): New function.
4952 * target.h (target_async): Declare macro and readd as function
4953 declaration.
4954 * target/waitstatus.h (enum target_stop_reason)
4955 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4956 * thread.c (new_thread): Clear the new waitstatus field.
4957 (set_resumed): New function.
4958
2ac7589c
PA
49592015-08-07 Pedro Alves <palves@redhat.com>
4960
4961 * infrun.c (keep_going_stepped_thread): New function, factored out
4962 from ...
4963 (switch_back_to_stepped_thread): ... here.
4964
8b061563
PA
49652015-08-07 Pedro Alves <palves@redhat.com>
4966
4967 * infrun.c (currently_stepping): Extend intro comment.
4968 * target.h (target_resume): Extend intro comment.
4969
1afd5965
PA
49702015-08-07 Pedro Alves <palves@redhat.com>
4971
4972 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4973 of inferior_ptid. If the stepped thread vanished, return 0
4974 instead of resuming here. Use reset_ecs. Print the prev_pc and
4975 the current stop_pc in log message. Clear trap_expected if the
4976 thread advanced. Don't pass currently_stepping to
4977 do_target_resume.
4978
4d9d9d04
PA
49792015-08-07 Pedro Alves <palves@redhat.com>
4980
4981 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4982 * infrun.c (struct execution_control_state): Move higher up in the
4983 file.
4984 (reset_ecs): New function.
4985 (start_step_over): Now returns int. Rewrite to use
4986 keep_going_pass_signal instead of manually starting a displaced step.
4987 (resume): Don't call set_running here. If displaced stepping
4988 can't start now, clear trap_expected.
4989 (find_thread_needs_step_over): Delete function.
4990 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4991 If the current thread needs a step over, push it in the step-over
4992 chain. Don't set insert breakpoints nor call resume directly
4993 here. Instead rewrite to use start_step_over and
4994 keep_going_pass_signal.
4995 (finish_step_over): New function.
4996 (handle_signal_stop): Call finish_step_over instead of
4997 start_step_over.
4998 (switch_back_to_stepped_thread): If the event thread needs another
4999 step-over do that first. Use start_step_over.
5000 (keep_going_pass_signal): New function, factored out from ...
5001 (keep_going): ... here.
5002 (_initialize_infrun): Comment moved here.
5003 * thread.c (set_running_thread): New function.
5004 (set_running, finish_thread_state): Use set_running_thread.
5005
c2829269
PA
50062015-08-07 Pedro Alves <palves@redhat.com>
5007
5008 * gdbthread.h (struct thread_info) <step_over_prev,
5009 step_over_next>: New fields.
5010 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5011 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5012 declarations.
5013 * infrun.c (struct displaced_step_request): Delete.
5014 (struct displaced_step_inferior_state) <step_request_queue>:
5015 Delete field.
5016 (displaced_step_prepare): Assert that trap_expected is set. Use
5017 thread_step_over_chain_enqueue. Split starting a new displaced
5018 step to ...
5019 (start_step_over): ... this new function.
5020 (resume): Assert the thread isn't waiting for a step over already.
5021 (proceed): Assert the thread isn't waiting for a step over
5022 already.
5023 (infrun_thread_stop_requested): Adjust to remove threads from the
5024 embedded step-over chain.
5025 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5026 displaced_step_fixup.
5027 (handle_signal_stop): Call start_step_over after
5028 displaced_step_fixup.
5029 * infrun.h (step_over_queue_head): New declaration.
5030 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5031 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5032 (thread_step_over_chain_enqueue)
5033 (thread_step_over_chain_remove): New functions.
5034 (delete_thread_1): Remove thread from the step-over chain.
5035
6c4cfb24
PA
50362015-08-07 Pedro Alves <palves@redhat.com>
5037
5038 * infrun.c (thread_still_needs_step_over): Rename to ...
5039 (thread_still_needs_step_over_bp): ... this.
5040 (enum step_over_what): New.
5041 (thread_still_needs_step_over): Reimplement.
5042
567420d1
PA
50432015-08-07 Pedro Alves <palves@redhat.com>
5044
5045 * remote.c (remote_wait_as): If not waiting for a stop reply,
5046 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5047 requested, don't block waiting forever.
5048
d8dd4d5f
PA
50492015-08-07 Pedro Alves <pedro@codesourcery.com>
5050
5051 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5052 waitstatus pointers instead of an ecs. Adjust.
5053 (handle_inferior_event): Adjust caller.
5054
e1316e60
PA
50552015-08-07 Pedro Alves <palves@redhat.com>
5056
5057 * infrun.c (handle_inferior_event): If we get
5058 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5059 mode, mark all threads of the exiting process as not-executing.
5060 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5061 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5062 exiting process, if inferior_ptid still points at a process.
5063 * thread.c (struct current_thread_cleanup) <next>: New field.
5064 (current_thread_cleanup_chain): New global.
5065 (restore_current_thread_ptid_changed): New function.
5066 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5067 current_thread_cleanup_chain list.
5068 (make_cleanup_restore_current_thread): Add the cleanup data to the
5069 current_thread_cleanup_chain list.
5070 (_initialize_thread): Install restore_current_thread_ptid_changed
5071 as thread_ptid_changed observer.
5072
47e9c225
JB
50732015-08-07 Joel Brobecker <brobecker@adacore.com>
5074
5075 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5076 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5077 smaller than expected.
5078
06096720
AB
50792015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5080
5081 * stack.c (get_frame_language): Moved ...
5082 * frame.c (get_frame_language): ... to here.
5083 * language.h (get_frame_language): Declaration moved to frame.h.
5084 * frame.h: Add language.h include, for language enum.
5085 (get_frame_language): Declaration moved from language.h.
5086 * language.c: Add frame.h include.
5087 * top.c: Add frame.h include.
5088 * symtab.h (struct obj_section): Declare.
5089 (struct cmd_list_element): Declare.
5090
7ff38b1c
AB
50912015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5092
5093 * language.c (show_language_command): Find selected frame before
5094 asking for the language of that frame.
5095 (set_language_command): Likewise.
5096 * language.h (get_frame_language): Add frame parameter.
5097 * stack.c (get_frame_language): Add frame parameter, assert
5098 parameter is not NULL, update comment and reindent.
5099 * top.c (check_frame_language_change): Pass the selected frame
5100 into get_frame_language.
5101
da8c46d2
MM
51022015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5103
5104 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5105 (pt_btrace_insn_flags): New.
5106 (ftrace_add_pt): Call pt_btrace_insn_flags.
5107 * btrace.h (btrace_insn_flag): New.
5108 (btrace_insn) <flags>: New.
5109 * record-btrace.c (btrace_insn_history): Print insn prefix.
5110 * NEWS: Announce it.
5111
5599c404
MM
51122015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5113
5114 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5115 * configure: Regenerate.
5116
016a3251
DD
51172015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5118
5119 * Makefile.in (LIBICONV): Define.
5120 (CLIBS): Add LIBICONV.
5121 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5122 * configure: Regenerate.
5123
aead7601
SM
51242015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5125 Pedro Alves <palves@redhat.com>
5126
5127 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5128 (arm_set_abi): Likewise.
5129 * ax-general.c (ax_print): Likewise.
5130 * c-exp.y (exp : string_exp): Likewise.
5131 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5132 (do_compile_dwarf_expr_to_c): Likewise.
5133 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5134 Likewise.
5135 * dwarf2expr.c (execute_stack_op): Likewise.
5136 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5137 (disassemble_dwarf_expression): Likewise.
5138 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5139 (read_array_order): Likewise.
5140 (abbrev_table_read_table): Likewise.
5141 (read_attribute_value): Likewise.
5142 (skip_unknown_opcode): Likewise.
5143 (dwarf_decode_macro_bytes): Likewise.
5144 (dwarf_decode_macros): Likewise.
5145 * eval.c (value_f90_subarray): Likewise.
5146 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5147 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5148 * infrun.c (handle_command): Likewise.
5149 * memory-map.c (memory_map_start_memory): Likewise.
5150 * osabi.c (set_osabi): Likewise.
5151 * parse.c (operator_length_standard): Likewise.
5152 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5153 single return point.
5154 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5155 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5156 (gdbpy_lookup_global_symbol): Likewise.
5157 * record-full.c (record_full_restore): Likewise.
5158 * regcache.c (regcache_register_status): Likewise.
5159 (regcache_raw_read): Likewise.
5160 (regcache_cooked_read): Likewise.
5161 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5162 * symtab.c (initialize_ordinary_address_classes): Likewise.
5163 * target-debug.h (target_debug_print_signals): Likewise.
5164 * utils.c (do_restore_current_language): Likewise.
5165
ca0a5f0b
CD
51662015-08-06 Clem Dickey <clemd@acm.org>
5167
5168 PR python/17136
5169 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5170
05d999b0
SM
51712015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5172
5173 * complaints.c (enum complaint_series): Add newlines and remove
5174 out of date comment.
5175 (struct complaints) <series>: Change type to enum
5176 complaint_series and remove out of date comment.
5177 (symfile_complaint_hook): Use equivalent enum value
5178 ISOLATED_MESSAGE instead of 0.
5179
bf47e248
PA
51802015-08-06 Pedro Alves <palves@redhat.com>
5181
5182 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5183 returned > 0.
5184
b6b9ffcc
PL
51852015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5186
5187 * common/agent.c (symbol_list) <required>: Remove.
5188
863d01bd
PA
51892015-08-06 Pedro Alves <palves@redhat.com>
5190
5191 * target/waitstatus.h (enum target_stop_reason)
5192 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5193
0a39bb32
PA
51942015-08-05 Pedro Alves <palves@redhat.com>
5195 Joel Brobecker <brobecker@adacore.com>
5196
9d996aba 5197 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
5198 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5199 case where BS->STOP is not set.
5200
260439cb
UW
52012015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5202
5203 * nat/gdb_thread_db.h: Add copyright header.
5204 Protect against multiple inclusion.
5205
d89fa914
YQ
52062015-08-05 Yao Qi <yao.qi@linaro.org>
5207
5208 * aarch64-linux-nat.c (get_thread_id): Remove.
5209 (debug_reg_change_callback): Call ptid_get_lwp instead of
5210 get_thread_id.
5211 (fetch_gregs_from_thread): Likewise.
5212 (store_gregs_to_thread): Likewise.
5213 (fetch_fpregs_from_thread): Likewise.
5214 (store_fpregs_to_thread): Likewise.
5215 (aarch64_linux_get_debug_reg_capacity): Likewise.
5216 * arm-linux-nat.c (get_thread_id): Remove.
5217 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5218 * xtensa-linux-nat.c (get_thread_id): Remove.
5219 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5220 * arm-linux-nat.c (get_thread_id): Remove.
5221 (GET_THREAD_ID): Remove.
5222 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5223 (store_fpregs, fetch_regs, store_regs): Likewise.
5224 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5225 (fetch_vfp_regs, store_vfp_regs): Likewise.
5226 (arm_linux_read_description): Likewise.
5227 (arm_linux_get_hwbp_cap): Likewise.
5228 * xtensa-linux-nat.c (get_thread_id): Remove.
5229 (GET_THREAD_ID): Remove.
5230 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5231 GET_THREAD_ID.
5232
4efd80aa
CS
52332015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5234
5235 * python/py-linetable.c: Fix case of Linetable to LineTable
5236 in docstrings and code comments.
5237 * python/py-symtab.c: Same.
5238
c6343a91
JK
52392015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5240
5241 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5242
978b9495
JK
52432015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5244
5245 PR gdb/18767
5246 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5247 use.
5248
96e9210f
PA
52492015-08-04 Pedro Alves <palves@redhat.com>
5250
5251 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5252 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5253 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5254 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5255 (td_thr_validate_ftype, td_thr_get_info_ftype)
5256 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5257 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5258 New typedefs.
5259 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5260 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5261 local macros and use them instead of verbose_dlsym and dlsym
5262 calls.
5263
af60a1ef
SL
52642015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5265
5266 * nios2-tdep.h: Include opcode/nios2.h here.
5267 (NIOS2_CDX_OPCODE_SIZE): New.
5268 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5269 * nios2-tdep.c: Don't include opcode/nios2.h here.
5270 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5271 4-byte read fails.
5272 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5273 (nios2_match_addi, nios2_match_orhi): Likewise.
5274 (nios2_match_stw, nios2_match_ldw): Likewise.
5275 (nios2_match_rdctl): Likewise.
5276 (nios2_match_stwm, nios2_match_ldwm): New.
5277 (nios2_match_branch): Add cases for R2 encodings.
5278 (nios2_match_jmpi, nios2_match_calli): Likewise.
5279 (nios2_match_jmpr, nios2_match_callr): Likewise.
5280 (nios2_match_break, nios2_match_trap): Likewise.
5281 (nios2_in_epilogue_p): Add R2 support.
5282 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5283 prologues.
5284 (nios2_breakpoint_from_pc): Handle R2 instructions.
5285 (nios2_get_next_pc): Likewise. Adjust call to
5286 tdep->syscall_next_pc.
5287 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5288 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5289 instruction field macros instead of literal hex values.
5290 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5291 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5292 Use size field from OP instead of assuming all instructions
5293 are the same size.
5294 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5295
1da03605
UW
52962015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5297
5298 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5299 variable warning with some compilers.
5300
8156fe7f
YQ
53012015-08-03 Yao Qi <yao.qi@linaro.org>
5302
5303 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5304 in comment. Replace "rw" with "type".
5305 (arm_linux_remove_watchpoint): Change type of "rw" to
5306 "enum target_hw_bp_type".
5307
835a09d9
PMR
53082015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5309
5310 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5311 lookup_symbol.
5312 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5313 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5314 * mt-tdep.c (mt_skip_prologue): Likewise.
5315 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5316
d12307c1
PMR
53172015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5318
5319 * ada-exp.y (write_object_renaming): Replace struct
5320 ada_symbol_info with struct block_symbol. Update field
5321 references accordingly.
5322 (block_lookup, select_possible_type_sym): Likewise.
5323 (find_primitive_type): Likewise. Also update call to
5324 ada_lookup_symbol to extract the symbol itself.
5325 (write_var_or_type, write_name_assoc): Likewise.
5326 * ada-lang.h (struct ada_symbol_info): Remove.
5327 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5328 struct block_symbol.
5329 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5330 (ada_lookup_symbol): Return struct block_symbol instead of a
5331 mere symbol.
5332 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5333 with struct block_symbol.
5334 (resolve_subexp, ada_resolve_function, sort_choices,
5335 user_select_syms, is_nonfunction, add_defn_to_vec,
5336 num_defns_collected, defns_collected,
5337 symbols_are_identical_enums, remove_extra_symbols,
5338 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5339 ada_lookup_symbol_list, ada_iterate_over_symbols,
5340 ada_lookup_encoded_symbol, get_var_value): Likewise.
5341 (ada_lookup_symbol): Return a block_symbol instead of a mere
5342 symbol. Replace struct ada_symbol_info with struct
5343 block_symbol.
5344 (ada_lookup_symbol_nonlocal): Likewise.
5345 (standard_lookup): Make block passing explicit through
5346 lookup_symbol_in_language.
5347 * ada-tasks.c (get_tcb_types_info): Update the calls to
5348 lookup_symbol_in_language to extract the mere symbol out of the
5349 returned value.
5350 (ada_tasks_inferior_data_sniffer): Likewise.
5351 * ax-gdb.c (gen_static_field): Likewise for the call to
5352 lookup_symbol.
a5fdf78a 5353 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
5354 lookup functions.
5355 (gen_expr): Likewise.
5356 * c-exp.y: Likewise. Remove uses of block_found.
5357 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5358 (classify_name): Likewise. Rename the "sym" local variable to
5359 "bsym".
5360 * c-valprint.c (print_unpacked_pointer): Likewise.
5361 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5362 "sym" parameter from struct symbol * to struct block_symbol.
5363 Use it to remove uses of block_found. Deal with struct
a5fdf78a 5364 block_symbol from lookup functions.
d12307c1
PMR
5365 (gcc_convert_symbol): Likewise. Update the call to
5366 convert_symbol_sym.
5367 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 5368 struct block_symbol from lookup functions.
d12307c1
PMR
5369 * cp-namespace.c (cp_lookup_nested_symbol_1,
5370 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5371 cp_search_static_and_baseclasses,
5372 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5373 cp_lookup_symbol_imports_or_template,
5374 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5375 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
5376 find_symbol_in_baseclass): Return struct block_symbol instead of
5377 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
5378 functions.
5379 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 5380 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
5381 lookup functions.
5382 * cp-support.h (cp_lookup_symbol_nonlocal,
5383 cp_lookup_symbol_from_namespace,
5384 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 5385 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
5386 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5387 push_module_name):
a5fdf78a 5388 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
5389 uses of block_found.
5390 * eval.c (evaluate_subexp_standard): Update call to
5391 cp_lookup_symbol_namespace.
a5fdf78a
PMR
5392 * f-exp.y: Deal with struct block_symbol from lookup functions.
5393 Remove uses of block_found.
d12307c1
PMR
5394 (yylex): Likewise.
5395 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5396 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 5397 struct block_symbol from lookup functions.
d12307c1
PMR
5398 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5399 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5400 (gdbscm_lookup_global_symbol): Likewise.
5401 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5402 * go-exp.y: Likewise. Remove uses of block_found.
5403 (package_name_p, classify_packaged_name, classify_name):
5404 Likewise.
5405 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5406 * jv-exp.y (push_variable): Likewise.
5407 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5408 * language.c (language_bool_type): Likewise.
5409 * language.h (struct language_defn): Update
a5fdf78a
PMR
5410 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5411 than a mere symbol.
5412 * linespec.c (find_label_symbols): Deal with struct block_symbol
5413 from lookup functions.
d12307c1
PMR
5414 * m2-exp.y: Likewise. Remove uses of block_found.
5415 (yylex): Likewise.
5416 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5417 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5418 * p-exp.y: Likewise. Remove uses of block_found.
5419 (yylex): Likewise.
5420 * p-valprint.c (pascal_val_print): Likewise.
5421 * parse.c (write_dollar_variable): Likewise. Remove uses of
5422 block_found.
5423 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
5424 struct block_symbol.
5425 * printcmd.c (address_info): Deal with struct block_symbol from
5426 lookup functions.
d12307c1
PMR
5427 * python/py-frame.c (frapy_read_var): Likewise.
5428 * python/py-symbol.c (gdbpy_lookup_symbol,
5429 gdbpy_lookup_global_symbol): Likewise.
5430 * skip.c (skip_function_command): Likewise.
5431 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 5432 block_symbol instead of a mere symbol.
d12307c1
PMR
5433 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5434 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5435 * solib.c (solib_global_lookup): Likewise.
5436 * solist.h (solib_global_lookup): Likewise.
5437 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
5438 return a struct block_symbol rather than a mere symbol.
5439 * source.c (select_source_symtab): Deal with struct block_symbol
5440 from lookup functions.
d12307c1
PMR
5441 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5442 Likewise.
5443 * symfile.c (set_initial_language): Likewise.
5444 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 5445 block_symbol.
d12307c1
PMR
5446 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5447 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 5448 block_symbol.
d12307c1 5449 (block_found): Remove.
a5fdf78a 5450 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 5451 cache slots.
a5fdf78a
PMR
5452 (symbol_cache_lookup): Return a struct block_symbol rather than
5453 a mere symbol.
d12307c1
PMR
5454 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5455 appropriately the cache slots. Update callers.
5456 (symbol_cache_dump): Update cache slots handling to the type
5457 change.
5458 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5459 lookup_symbol_aux, lookup_local_symbol,
5460 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5461 lookup_symbol_in_objfile_symtabs,
5462 lookup_symbol_in_objfile_from_linkage_name,
5463 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5464 lookup_symbol_in_static_block, lookup_static_symbol,
5465 lookup_global_symbol):
a5fdf78a
PMR
5466 Return a struct block_symbol rather than a mere symbol. Deal
5467 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
5468 uses of block_found.
5469 (lookup_symbol_in_block): Remove uses of block_found.
5470 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 5471 struct block_symbol.
d12307c1
PMR
5472 (lookup_symbol_global_iterator_cb): Update references to the
5473 RESULT field.
a5fdf78a 5474 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 5475 functions.
a5fdf78a 5476 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
5477 (block_found): Remove.
5478 (lookup_symbol_in_language, lookup_symbol,
5479 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
5480 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5481 lookup_global_symbol_from_objfile): Return a struct block_symbol
5482 rather than just a mere symbol. Update comments to remove
5483 mentions of block_found.
d12307c1
PMR
5484 * valops.c (find_function_in_inferior,
5485 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 5486 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
5487 functions.
5488 * value.c (value_static_field, value_fn_field): Likewise.
5489
b1c59ddc
SM
54902015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5491
5492 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5493 instead of integer.
5494
f486487f 54952015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 5496 Pedro Alves <palves@redhat.com>
f486487f
SM
5497
5498 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5499 type or value instead of integer.
5500 (aarch64_linux_insert_watchpoint): Likewise.
5501 (aarch64_linux_remove_watchpoint): Likewise.
5502 * ada-lang.c (ada_op_print_tab): Likewise.
5503 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5504 (amd64_linux_syscall_record_common): Likewise.
5505 * arch-utils.c (target_byte_order_user): Likewise.
5506 (default_byte_order): Likewise.
5507 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5508 (arm_linux_get_hwbp_type): Likewise.
5509 (arm_linux_hw_watchpoint_initialize): Likewise.
5510 (arm_linux_insert_watchpoint): Likewise.
5511 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5512 (arm_linux_syscall_record): Likewise.
5513 * breakpoint.c (update_watchpoint): Likewise.
5514 (breakpoint_here_p): Likewise.
5515 (bpstat_print): Likewise.
5516 (enable_breakpoint_disp): Likewise.
5517 * c-lang.c (c_op_print_tab): Likewise.
5518 * cli/cli-decode.c (add_info_alias): Likewise.
5519 * d-lang.c (d_op_print_tab): Likewise.
5520 * eval.c (evaluate_subexp_standard): Likewise.
5521 * f-exp.y (dot_ops): Likewise.
5522 (f77_keywords): Likewise.
5523 * f-lang.c (f_op_print_tab): Likewise.
5524 * go-lang.c (go_op_print_tab): Likewise.
5525 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5526 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5527 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5528 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5529 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5530 (struct scm_from_stringn_data): Likewise.
5531 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5532 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5533 (ia64_linux_remove_watchpoint): Likewise.
5534 (ia64_linux_can_use_hw_breakpoint): Likewise.
5535 * infrun.c (print_stop_event): Likewise.
5536 * jv-lang.c (java_op_print_tab): Likewise.
5537 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5538 * linux-nat.h (struct lwp_info): Likewise.
5539 * linux-thread-db.c (enable_thread_event): Likewise.
5540 * m2-lang.c (m2_op_print_tab): Likewise.
5541 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5542 (mi_cmd_stack_list_variables): Likewise.
5543 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5544 * mi/mi-out.c (mi_table_begin): Likewise.
5545 (mi_table_header): Likewise.
5546 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5547 (mips_linux_insert_watchpoint): Likewise.
5548 (mips_linux_remove_watchpoint): Likewise.
5549 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5550 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5551 (mips_linux_watch_type_to_irw): Likewise.
5552 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5553 (procfs_insert_hw_watchpoint): Likewise.
5554 (procfs_remove_hw_watchpoint): Likewise.
5555 (procfs_hw_watchpoint): Likewise.
5556 (procfs_can_use_hw_breakpoint): Likewise.
5557 (procfs_remove_hw_watchpoint): Likewise.
5558 (procfs_insert_hw_watchpoint): Likewise.
5559 * p-lang.c (pascal_op_print_tab): Likewise.
5560 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5561 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5562 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5563 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5564 (procfs_insert_watchpoint): Likewise.
5565 (procfs_remove_watchpoint): Likewise.
5566 * psymtab.c (recursively_search_psymtabs): Likewise.
5567 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5568 (m32r_insert_watchpoint): Likewise.
5569 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5570 (mips_insert_watchpoint): Likewise.
5571 (mips_remove_watchpoint): Likewise.
5572 * remote.c (watchpoint_to_Z_packet): Likewise.
5573 (remote_insert_watchpoint): Likewise.
5574 (remote_remove_watchpoint): Likewise.
5575 (remote_check_watch_resources): Likewise.
5576 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5577 (s390_remove_watchpoint): Likewise.
5578 (s390_can_use_hw_breakpoint): Likewise.
5579 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5580 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5581 * target.h (struct target_ops): Likewise.
5582 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5583 * ui-out.c (struct ui_out_hdr): Likewise.
5584 (append_header_to_list): Likewise.
5585 (get_next_header): Likewise.
5586 (verify_field): Likewise.
5587 (ui_out_begin): Likewise.
5588 (ui_out_field_int): Likewise.
5589 (ui_out_field_fmt_int): Likewise.
5590 (ui_out_field_skip): Likewise.
5591 (ui_out_field_string): Likewise.
5592 (ui_out_field_fmt): Likewise.
5593 * varobj.c (new_variable): Likewise.
5594 * x86-nat.c (x86_insert_watchpoint): Likewise.
5595 (x86_remove_watchpoint): Likewise.
5596 (x86_can_use_hw_breakpoint): Likewise.
5597 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5598 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5599 previously anonymous enumeration type..
5600 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5601 value.
5602 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5603 (target_debug_print_enum_bptype): New.
5604 * target-delegates.c: Regenerate.
5605
e1b5381f
SL
56062015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5607
5608 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5609 already says and disallow non-stack memory writes in the prologue.
5610
9aaf8e3a
SL
56112015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5612
5613 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5614 reflect how current GCC emits stack overflow checks. Match
5615 both trap and break instructions for backward compatbility.
5616 Disallow other trap and break instructions in the prologue.
5617
69dde7dc
PA
56182015-07-30 Pedro Alves <palves@redhat.com>
5619
5620 PR threads/18600
5621 * linux-nat.c (wait_lwp): Report to the core when thread group
5622 leader exits.
5623
4dd63d48
PA
56242015-07-30 Pedro Alves <palves@redhat.com>
5625 Simon Marchi <simon.marchi@ericsson.com>
5626
5627 PR threads/18600
5628 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5629 mark the new thread as resumed. Remove STOPPING parameter.
5630 (wait_lwp): Adjust call to linux_handle_extended_wait.
5631 (linux_nat_filter_event): Adjust call to
5632 linux_handle_extended_wait.
5633 (resume_stopped_resumed_lwps): Add debug output.
5634
6b940e6a
PL
56352015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5636
5637 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5638 isize argument.
5639 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5640 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5641 gdbarch_fast_tracepoint_valid_at.
5642 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5643 * gdbarch.h: Regenerate.
5644 * gdbarch.c: Regenerate.
5645 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5646 argument. Do not set it.
5647 * remote.c (remote_download_tracepoint): Adjust call to
5648 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5649 the instruction length.
5650
ec741292
YQ
56512015-07-30 Yao Qi <yao.qi@linaro.org>
5652
5653 * arm-tdep.h (enum gdb_regnum): Move it to ...
5654 * arch/arm.h: ... here. New file.
5655 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5656
0ea6402e
PL
56572015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5658
5659 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5660 Change its type to int *.
5661 (decode_br): Rename link argument to is_blr. Change its type to
5662 int *.
5663 (decode_cb): Rename op argument to is_cbnz. Change its type to
5664 int *.
5665 (decode_tb): Rename op argument to is_tbnz. Change its type to
5666 int *. Set is_tbnz to either 1 or 0.
5667 (aarch64_analyze_prologue): Change type of is_link to int. Add
5668 new variables is_cbnz and is_tbnz. Adjust call to
5669 aarch64_decode_cb and aarch64_decode_tb.
5670
aa58a496
SM
56712015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5672
5673 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5674 parameter.
5675 (mips_linux_new_thread): Likewise.
5676 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5677
18206ca3
PP
56782015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5679
5680 * top.c: Include "tui/tui.h".
5681 (undo_terminal_modifications_before_exit): New static function.
5682 (quit_force): Use it.
5683
7afa63c6
PP
56842015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5685
5686 * target.c (terminal_state): Initialize to terminal_is_ours.
5687
cc9f16aa
YQ
56882015-07-29 Yao Qi <yao.qi@linaro.org>
5689
5690 PR record/18691
5691 * dcache.c (dcache_read_memory_partial): Call
5692 raw_memory_xfer_partial.
5693 * target.c (raw_memory_xfer_partial): Make it non-static.
5694 * target.h (raw_memory_xfer_partial): Declare.
5695
3ae385af
SM
56962015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5697
5698 * c-valprint.c (c_val_print_array): Consider addressable memory
5699 unit size.
5700 (c_val_print_ptr): Likewise.
5701 (c_val_print_int): Likewise.
5702 * findvar.c (read_frame_register_value): Likewise.
5703 * valarith.c (find_size_for_pointer_math): Likewise.
5704 (value_ptrdiff): Likewise.
5705 (value_subscripted_rvalue): Likewise.
5706 * valops.c (read_value_memory): Likewise (and rename variables).
5707 (value_assign): Likewise.
5708 (value_repeat): Likewise.
5709 (value_array): Likewise.
5710 (value_slice): Likewise.
5711 * valprint.c (generic_val_print_ptr): Likewise.
5712 (generic_val_print_enum): Likewise.
5713 (generic_val_print_bool): Likewise.
5714 (generic_val_print_int): Likewise.
5715 (generic_val_print_char): Likewise.
5716 (generic_val_print_float): Likewise.
5717 (generic_val_print_decfloat): Likewise.
5718 (generic_val_print_complex): Likewise.
5719 (val_print_scalar_formatted): Likewise.
5720 (val_print_array_elements): Likewise.
5721 * value.c (set_value_parent): Likewise.
5722 (value_contents_copy_raw): Likewise.
5723 (set_internalvar_component): Likewise.
5724 (value_primitive_field): Likewise.
5725 (value_fetch_lazy): Likewise.
5726 * value.h (read_value_memory): Update comment.
5727
e512cdbd
SM
57282015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5729
5730 * value.c (get_value_arch): New function.
5731 * value.h (get_value_arch): New declaration.
5732
3723fda8
SM
57332015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5734
5735 * value.c (struct value): Update comments.
5736
2e056931
SM
57372015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5738
5739 * gdbtypes.c (type_length_units): New function.
5740 * gdbtypes.h (type_length_units): New declaration.
5741 (struct type) <length>: Update comment.
5742
0c87c0bf
SM
57432015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5744
5745 * valprint.c (generic_val_print): Factor out complex
5746 printing code to ...
5747 (generic_val_print_complex): ... this new function.
5748
9550ae5e
SM
57492015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5750
5751 * valprint.c (generic_val_print): Factor out decfloat
5752 printing code to ...
5753 (generic_val_print_decfloat): ... this new function.
5754
7784724b
SM
57552015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5756
5757 * valprint.c (generic_val_print): Factor out float
5758 printing code to ...
5759 (generic_val_print_float): ... this new function.
5760
385f5aff
SM
57612015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5762
5763 * valprint.c (generic_val_print): Factor out char
5764 printing code to ...
5765 (generic_val_print_char): ... this new function.
5766
b21b6342
SM
57672015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5768
5769 * valprint.c (generic_val_print): Factor out integer
5770 printing code to ...
5771 (generic_val_print_int): ... this new function.
5772
e5bead4b
SM
57732015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5774
5775 * valprint.c (generic_val_print): Factor out bool
5776 printing code to ...
5777 (generic_val_print_bool): ... this new function.
5778
4a8c372f
SM
57792015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5780
5781 * valprint.c (generic_val_print): Factor out function/method
5782 printing code to ...
5783 (generic_val_print_func): ... this new function.
5784
d93880bd
SM
57852015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5786
5787 * valprint.c (generic_val_print): Factor out flags
5788 printing code to ...
5789 (generic_val_print_flags): ... this new function.
5790
ef0bc0dd
SM
57912015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5792
5793 * valprint.c (generic_val_print): Factor out enum
5794 printing code to ...
5795 (generic_val_print_enum): ... this new function.
5796
fe43fede
SM
57972015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5798
5799 * valprint.c (generic_val_print): Factor out reference
5800 printing code to ...
5801 (generic_val_print_ref): ... this new function.
5802
45000ea2
SM
58032015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5804
5805 * valprint.c (generic_val_print): Factor out memberptr
5806 printing code to ...
5807 (generic_val_print_memberptr): ... this new function.
5808
81eb921a
SM
58092015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5810
5811 * valprint.c (generic_val_print): Factor out pointer
5812 printing code to ...
5813 (generic_val_print_ptr): ... this new function.
5814
557dbe8a
SM
58152015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5816
5817 * valprint.c (generic_val_print): Factor out array
5818 printing code to ...
5819 (generic_val_print_array): ... this new function.
5820
9f436164
SM
58212015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5822
5823 * valprint.c (generic_val_print): Factor out
5824 print_unpacked_pointer code to ...
5825 (print_unpacked_pointer): ... this new function.
5826
077836f7
PP
58272015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5828
5829 * event-top.c (handle_sigterm): Don't inspect
5830 target_can_async_p. Always set the quit flag and always mark
5831 the async signal handler.
5832
3a60804f
YQ
58332015-07-27 Yao Qi <yao.qi@linaro.org>
5834
5835 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5836
c9f35b34
KB
58372015-07-25 Kevin Buettner <kevinb@redhat.com>
5838
5839 * remote.c (read_ptid): Return null_ptid when no thread id
5840 is found.
5841 (remote_current_thread): Add log warning for malformed
5842 qC reply.
5843 (remote_start_remote): Add log warning when current thread
5844 not found.
5845
2b4cab86
PA
58462015-07-24 Pedro Alves <palves@redhat.com>
5847
5848 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5849 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5850 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5851
77598427
PA
58522015-07-24 Pedro Alves <palves@redhat.com>
5853
5854 PR gdb/18717
5855 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5856 is resumed, and extend the debug log.
5857
fe23c31f
PA
58582015-07-24 Pedro Alves <palves@redhat.com>
5859
5860 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5861
5826e159
PA
58622015-07-24 Pedro Alves <palves@redhat.com>
5863
5864 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5865 sys/ptrace.h.
5866 * alpha-linux-nat.c: Likewise.
5867 * amd64-linux-nat.c: Likewise.
5868 * arm-linux-nat.c: Likewise.
5869 * hppa-linux-nat.c: Likewise.
5870 * i386-linux-nat.c: Likewise.
5871 * ia64-linux-nat.c: Likewise.
5872 * linux-fork.c: Likewise.
5873 * linux-nat.c: Likewise.
5874 * m32r-linux-nat.c: Likewise.
5875 * m68klinux-nat.c: Likewise.
5876 * mips-linux-nat.c: Likewise.
5877 * nat/linux-btrace.c: Likewise.
5878 * nat/linux-ptrace.c: Likewise.
5879 * nat/linux-ptrace.h
5880 * nat/mips-linux-watch.c: Likewise.
5881 * nat/x86-linux-dregs.c: Likewise.
5882 * ppc-linux-nat.c: Likewise.
5883 * s390-linux-nat.c: Likewise.
5884 * spu-linux-nat.c: Likewise.
5885 * tilegx-linux-nat.c: Likewise.
5886 * x86-linux-nat.c: Likewise.
5887 * xtensa-linux-nat.c: Likewise.
5888
54019719
PA
58892015-07-24 Pedro Alves <palves@redhat.com>
5890
5891 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5892 __ptrace_request as first parameter type instead of int.
5893 (PTRACE_TYPE_ARG1): Define.
5894 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5895 that casts first argument to PTRACE_TYPE_ARG1.
5896 * config.in: Regenerate.
5897 * configure: Regenerate.
5898
e3790375
PA
58992015-07-24 Pedro Alves <palves@redhat.com>
5900
5901 * gdb_ptrace.h: Move ...
5902 * nat/gdb_ptrace.h: ... here.
5903 * inf-ptrace.c: Adjust.
5904
eb7aa561
PA
59052015-07-24 Pedro Alves <palves@redhat.com>
5906
5907 * acinclude.m4: Include ptrace.m4.
5908 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5909 * ptrace.m4: ... to this new file.
5910
cc12ce38
DE
59112015-07-23 Doug Evans <dje@google.com>
5912
5913 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5914 (load_cu): Handle dummy CUs.
5915 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5916 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5917
7b849db4
CS
59182015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5919
5920 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5921 documentation to say that it returns a list rather than
5922 a FrozenSet.
5923 (linetable_object_methods): Update the docstring of the
5924 "source_line" entry.
5925
d0d84780
PMR
59262015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5927
5928 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5929 type to the recursive call instead of the original (maybe
5930 TYPE_CODE_TYPEDEF) type.
5931
c2fbdc59
YQ
59322015-07-23 Yao Qi <yao.qi@linaro.org>
5933
5934 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5935 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5936 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5937
af1b22f3
YQ
59382015-07-21 Yao Qi <yao.qi@linaro.org>
5939
5940 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5941 Move it to nat/aarch64-linux-hw-point.c.
5942 (aarch64_linux_child_post_startup_inferior): Update.
5943 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5944 New function.
5945 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5946 Declare it.
5947
40e050d2
MM
59482015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5949
5950 * common/btrace-common.c (btrace_data_append): Change case label.
5951
3675a06a
YQ
59522015-07-20 Yao Qi <yao.qi@linaro.org>
5953
5954 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5955 Re-indent the code.
5956 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5957 "unsigned long long".
5958
b4e1fd61
KB
59592015-07-18 Kevin Buettner <kevinb@redhat.com>
5960
5961 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5962 to be set for SEC_ALLOC sections too.
5963
554717a3
YQ
59642015-07-17 Yao Qi <yao.qi@linaro.org>
5965
5966 * Makefile.in (HFILES_NO_SRCDIR): Add
5967 nat/aarch64-linux-hw-point.h.
5968 (aarch64-linux-hw-point.o): New rule.
5969 * nat/aarch64-linux-hw-point.h: New file.
5970 * nat/aarch64-linux-hw-point.c: New file.
5971 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5972 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5973 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5974 (AARCH64_HWP_ALIGNMENT): Likewise.
5975 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5976 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5977 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5978 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5979 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5980 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5981 (struct aarch64_debug_reg_state): Likewise.
5982 (struct arch_lwp_info): Likewise.
5983 (aarch64_linux_set_debug_regs): Likewise.
5984 (aarch64_notify_debug_reg_change): Remove static.
5985 (aarch64_align_watchpoint): Likewise.
5986 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5987 (aarch64_watchpoint_length): Likewise.
5988 (aarch64_point_encode_ctrl_reg): Likewise
5989 (aarch64_point_is_aligned): Likewise.
5990 (aarch64_dr_state_insert_one_point): Likewise.
5991 (aarch64_dr_state_remove_one_point): Likewise.
5992 (aarch64_handle_breakpoint): Likewise.
5993 (aarch64_handle_aligned_watchpoint): Likewise.
5994 (aarch64_handle_unaligned_watchpoint): Likewise.
5995 (aarch64_handle_watchpoint): Likewise.
5996 * config/aarch64/linux.mh (NAT_FILE): Add
5997 aarch64-linux-hw-point.o.
5998
c67ca4de
YQ
59992015-07-17 Yao Qi <yao.qi@linaro.org>
6000
6001 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6002 state and don't call aarch64_get_debug_reg_state. All callers
6003 update.
6004 (aarch64_linux_insert_hw_breakpoint): Call
6005 aarch64_get_debug_reg_state earlier.
6006 (aarch64_linux_remove_hw_breakpoint): Likewise.
6007 (aarch64_handle_aligned_watchpoint): Add argument state and
6008 don't call aarch64_get_debug_reg_state. All callers update.
6009 (aarch64_handle_unaligned_watchpoint): Likewise.
6010 (aarch64_handle_watchpoint): Add argument state.
6011 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6012 earlier.
6013 (aarch64_linux_remove_watchpoint): Likewise.
6014
25abf979
YQ
60152015-07-17 Yao Qi <yao.qi@linaro.org>
6016
6017 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6018 debug_printf.
6019 (aarch64_handle_unaligned_watchpoint): Likewise.
6020
2ecd81c2
YQ
60212015-07-17 Yao Qi <yao.qi@linaro.org>
6022
6023 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6024 argument type's type to 'enum target_hw_bp_type'.
6025 (aarch64_dr_state_remove_one_point): Likewise.
6026 (aarch64_handle_breakpoint): Likewise.
6027 (aarch64_linux_insert_hw_breakpoint): Likewise.
6028 (aarch64_linux_remove_hw_breakpoint): Likewise.
6029 (aarch64_handle_aligned_watchpoint): Likewise.
6030
e53b6938
YQ
60312015-07-17 Yao Qi <yao.qi@linaro.org>
6032
6033 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6034 ptid_get_pid instead of get_thread_id.
6035
6a49a997
YQ
60362015-07-17 Yao Qi <yao.qi@linaro.org>
6037
6038 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6039 (add_current_inferior_and_thread): Don't initialise ptid.
6040
4bcddace
PL
60412015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6042
6043 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6044 unavailable if invalid.
6045
db1ff28b
JK
60462015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6047
6048 Revert the previous 6 commits:
6049 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6050 Move gdb_regex* to common/
6051 Prepare linux_find_memory_regions_full & co. for move
6052 Move linux_find_memory_regions_full & co.
6053 gdbserver build-id attribute generator
6054 Validate symbol file using build-id
6055
ca5268b6
JK
60562015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6057 Jan Kratochvil <jan.kratochvil@redhat.com>
6058
6059 Validate symbol file using build-id.
6060 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6061 and 'show validate-build-id'. Add build-id attribute.
6062 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6063 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6064 * solib-frv.c (_initialize_frv_solib): Ditto.
6065 * solib-spu.c (set_spu_solib_ops): Ditto.
6066 * solib-svr4.c: Include rsp-low.h.
6067 (NOTE_GNU_BUILD_ID_NAME): New define.
6068 (svr4_validate): New function.
6069 (svr4_copy_library_list): Duplicate field build_id.
6070 (library_list_start_library): Parse 'build-id' attribute.
6071 (svr4_library_attributes): Add 'build-id' attribute.
6072 (_initialize_svr4_solib): Assign validate value.
6073 * solib-target.c (solib.h): Include.
6074 (_initialize_solib_target): Assign validate value.
6075 * solib.c (validate_build_id, show_validate_build_id): New.
6076 (solib_map_sections): Use ops->validate.
6077 (clear_so): Free build_id.
6078 (default_solib_validate): New function.
6079 (_initialize_solib): Add "validate-build-id".
6080 * solib.h (default_solib_validate): New declaration.
6081 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6082 (target_so_ops): New field 'validate'.
6083
700ca40f
JK
60842015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6085 Jan Kratochvil <jan.kratochvil@redhat.com>
6086
6087 gdbserver build-id attribute generator.
6088 * features/library-list-svr4.dtd (library-list-svr4): New
6089 'build-id' attribute.
6090
9904185c
JK
60912015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6092 Jan Kratochvil <jan.kratochvil@redhat.com>
6093
6094 Move linux_find_memory_regions_full & co.
6095 * linux-tdep.c (nat/linux-maps.h): Include.
6096 (gdb_regex.h): Remove the include.
6097 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6098 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6099 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6100 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6101 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6102 and target/target.h.
6103 (struct smaps_vmflags, read_mapping, decode_vmflags)
6104 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6105 (linux_find_memory_regions_full): Move from linux-tdep.c.
6106 * nat/linux-maps.h (read_mapping): New declaration.
6107 (linux_find_memory_region_ftype, enum filterflags): Moved from
6108 linux-tdep.c.
6109 (linux_find_memory_regions_full): New declaration.
6110 * target.c (target/target-utils.h): Include.
6111 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6112 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6113 definitions to target/target-utils.c.
6114 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6115 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6116 from target.c.
6117 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6118 (read_alloc): New declaration.
6119 (read_stralloc_func_ftype): New typedef.
6120 (read_stralloc): New declaration.
6121 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6122
f7af1fcd
JK
61232015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6124 Jan Kratochvil <jan.kratochvil@redhat.com>
6125
6126 Prepare linux_find_memory_regions_full & co. for move.
6127 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6128 (linux_find_memory_regions_full): Change signature and prepare
6129 for moving to linux-maps.
6130 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6131 (linux_find_memory_regions_thunk): New.
6132 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6133 (linux_find_memory_regions_gdb): New.
6134 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6135 (linux_make_mappings_corefile_notes): Use
6136 linux_find_memory_regions_gdb.
6137 * target.c (read_alloc_pread_ftype): New typedef.
6138 (target_fileio_read_alloc_1_pread): New function.
6139 (read_alloc): Refactor from target_fileio_read_alloc_1.
6140 (read_stralloc_func_ftype): New typedef.
6141 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6142 (read_stralloc): Refactored from target_fileio_read_stralloc.
6143 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6144
6e5b4429
JK
61452015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6146
6147 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6148 common/gdb_regex.h.
6149 (COMMON_OBS): Add gdb_regex.o.
6150 (gdb_regex.o): New.
6151 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6152 --without-included-regex and USE_INCLUDED_REGEX.
6153 * common/gdb_regex.c: New file from utils.c functions.
6154 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6155 file wrapping define name.
6156 * configure: Rebuilt.
6157 * configure.ac (gdb_use_included_regex, --without-included-regex)
6158 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6159 * gdb_regex.h: Move it to common/gdb_regex.h.
6160 * utils.c: Remove include gdb_regex.h.
6161 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6162 (compile_rx_or_error): Move them to common/gdb_regex.c.
6163
ddc98fbf
JK
61642015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6165 Jan Kratochvil <jan.kratochvil@redhat.com>
6166
6167 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6168 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6169 common/target-utils.h.
6170 (COMMON_OBS): Add target-utils.o.
6171 (linux-maps.o, target-utils.o): New.
6172 * target/target-utils.c: New file.
6173 * target/target-utils.h: New file.
6174 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6175 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6176 * nat/linux-maps.c: New file.
6177 * nat/linux-maps.h: New file.
6178
e7b01ce0
MM
61792015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6180 Pedro Alves <palves@redhat.com>
6181
6182 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6183 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6184 (perf_event_read_bts): Change the type of SIZE and READ.
6185 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6186 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6187 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6188 mmap page.
6189 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6190 buffer size to UINT_MAX.
6191 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6192 DATA_TAIL.
6193 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6194 <last_head>: Change type.
6195 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6196 * common/btrace-common.c (btrace_data_append): Change the type of
6197 SIZE.
6198 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6199 check.
6200
f168693b
SM
62012015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6202
6203 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6204 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6205 with check_typedef.
6206 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6207 (ada_array_length): Likewise.
6208 (find_parallel_type_by_descriptive_type): Likewise.
6209 (ada_check_typedef): Likewise.
6210 * arm-tdep.c (arm_return_in_memory): Likewise.
6211 * ax-gdb.c (gen_trace_static_fields): Likewise.
6212 (gen_struct_ref_recursive): Likewise.
6213 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6214 (variable: block COLONCOLON name): Likewise.
6215 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6216 * c-lang.c (classify_type): Likewise.
6217 * c-typeprint.c (c_print_type): Likewise.
6218 (c_print_typedef): Likewise.
6219 (c_type_print_base): Likewise.
6220 * c-valprint.c (c_val_print): Likewise.
6221 * compile/compile-c-types.c (convert_type): Likewise.
6222 * compile/compile-object-load.c (get_out_value_type): Likewise.
6223 * completer.c (add_struct_fields): Likewise.
6224 (expression_completer): Likewise.
6225 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6226 (cp_lookup_nested_symbol_1): Likewise.
6227 (cp_lookup_nested_symbol): Likewise.
6228 * cp-valprint.c (cp_print_value_fields): Likewise.
6229 (cp_print_static_field): Likewise.
6230 * d-valprint.c (d_val_print): Likewise.
6231 * eval.c (evaluate_subexp_standard): Likewise.
6232 (evaluate_subexp_for_sizeof): Likewise.
6233 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6234 * f-typeprint.c (f_type_print_base): Likewise.
6235 * f-valprint.c (f_val_print): Likewise.
6236 * gdbtypes.c (get_discrete_bounds): Likewise.
6237 (create_array_type_with_stride): Likewise.
6238 (type_name_no_tag_or_error): Likewise.
6239 (lookup_struct_elt_type): Likewise.
6240 (get_unsigned_type_max): Likewise.
6241 (internal_type_vptr_fieldno): Likewise.
6242 (set_type_vptr_fieldno): Likewise.
6243 (internal_type_vptr_basetype): Likewise.
6244 (set_type_vptr_basetype): Likewise.
6245 (get_vptr_fieldno): Likewise.
6246 (is_integral_type): Likewise.
6247 (is_scalar_type): Likewise.
6248 (is_scalar_type_recursive): Likewise.
6249 (distance_to_ancestor): Likewise.
6250 (is_unique_ancestor_worker): Likewise.
6251 (check_types_equal): Likewise.
6252 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6253
45280282
IB
62542015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6255
6256 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6257 also test for language_d.
6258 (dwarf2_compute_name): Likewise.
6259 (read_func_scope): Likewise.
6260 (read_structure_type): Likewise.
6261 (new_symbol_full): Likewise.
6262 (determine_prefix): Likewise.
6263 (read_import_statement): Use dot as the separator for language_d.
6264 (typename_concat): Likewise, but don't prefix the D main function.
6265
99fe86f7
PB
62662015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6267
6268 * nat/linux-namespaces.c (setns): Rename from this ...
6269 (do_setns): ... to this. Support calling setns if it exists.
6270 (mnsh_handle_setns): Call do_setns.
6271
d5131498
YQ
62722015-07-13 Yao Qi <yao.qi@linaro.org>
6273
6274 * exec.c (exec_file_attach): Add period at the end of error
6275 message.
6276
97605e61
AB
62772015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6278
6279 * tui/tui-win.c (window_name_completer): New function.
6280 (focus_completer): Call window_name_completer. All old content
6281 moved into window_name_completer.
6282 (winheight_completer): New function.
6283 (_initialize_tui_win): Rename variable. Add completer to
6284 winheight command. Update doc string on winheight.
6285
8d6dbeb4
SL
62862015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6287
6288 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6289 all nios2 mach variants.
6290
a0e28e54
KB
62912015-07-10 Kevin Buettner <kevinb@redhat.com>
6292
6293 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6294 of target_read_memory.
6295
c101f28f
AB
62962015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6297
6298 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6299 string copy.
6300 (parse_scrolling_args): Likewise.
6301
150375dc
AB
63022015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6303
6304 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6305 names in this function.
6306
6dce28e4
AB
63072015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6308
6309 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6310 (CMD_NAME): Likewise.
6311 (DATA_NAME): Likewise.
6312 (DISASSEM_NAME): Likewise.
6313 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6314 (tui_set_win_height): Likewise.
6315 (parse_scrolling_args): Likewise.
6316
485668e5
MM
63172015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6318
6319 * record-btrace.c (record_btrace_goto_begin)
6320 (record_btrace_goto_end, record_btrace_goto): Move call to
6321 print_stack_frame ...
6322 (record_btrace_set_replay): ... here. Set stop_pc.
6323 * record-full.c (record_full_goto_entry): Set stop_pc.
6324
58d2eda5
PL
63252015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6326
6327 * NEWS: Mention support for tracepoints on aarch64-linux.
6328
7671bf47
PL
63292015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6330
6331 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6332 function. Return 1.
6333 (the_low_target): Install it.
6334
7890fb45
PL
63352015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6336
6337 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6338 * gdb.trace/collection.exp: Likewise.
6339 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6340 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6341 * gdb.trace/report.exp: Likewise.
6342 * gdb.trace/trace-break.exp: Likewise.
6343 * gdb.trace/unavailable.exp: Likewise.
6344 * gdb.trace/while-dyn.exp: Likewise.
6345
ea873d8e
PL
63462015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6347
6348 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6349 (aarch64_gen_return_address): New function.
6350 (aarch64_gdbarch_init): Hook it.
6351
02a2a705
PL
63522015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6353
6354 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6355 swallow NOT_AVAILABLE_ERROR.
6356 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6357 available_p is not set.
6358 (aarch64_stub_frame_unwind_stop_reason): New function.
6359 (aarch64_stub_unwind): Install it.
6360
7dfa3edc
PL
63612015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6362
6363 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6364 field.
6365 (aarch64_make_prologue_cache_1): New function, factored out from
6366 aarch64_make_prologue_cache. Do not allocate cache. Set
6367 available_p.
6368 (aarch64_make_prologue_cache): Reimplement wrapping
6369 aarch64_make_prologue_cache_1, and swallowing
6370 NOT_AVAILABLE_ERROR.
6371 (aarch64_prologue_frame_unwind_stop_reason): New function.
6372 Return UNWIND_UNAVAILABLE if available_p is not set.
6373 (aarch64_prologue_unwind): Install it.
6374 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6375 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6376 frame_id_build_unavailable_stack if available_p is not set.
6377
db634143
PL
63782015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6379
6380 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6381 fields.
6382 (aarch64_scan_prologue): Set prev_pc.
6383 (aarch64_make_prologue_cache): Set func.
6384 (aarch64_make_stub_cache): Set prev_pc.
6385 (aarch64_prologue_this_id): Remove local variables id, pc and
6386 func. Read prev_pc and func from cache.
6387 (aarch64_stub_this_id): Read prev_pc from cache.
6388
8b61f75d
PL
63892015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6390
6391 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6392 argument this_cache. Remove unused local variables reg and
6393 unwound_fp. Return early if this_cache is already set. Set
6394 this_cache.
6395 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6396
7c8edfae
PL
63972015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6398
6399 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6400 New argument this_cache. Return early if this_cache is already
6401 set. Set this_cache.
6402 (aarch64_prologue_this_id): Update call to
6403 aarch64_make_prologue_cache.
6404 (aarch64_prologue_prev_register): Likewise.
6405 (aarch64_normal_frame_base): Likewise.
6406
938c69a1
SM
64072015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6408
6409 * c-valprint.c (c_val_print): Factor out memberptr printing code
6410 from c_val_print to ...
6411 (c_val_print_memberptr): ... this new function.
6412
49f7fe28
SM
64132015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6414
6415 * c-valprint.c (c_val_print): Factor out int printing code to ...
6416 (c_val_print_int): ... this new function.
6417
9e4f353c
SM
64182015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6419
6420 * c-valprint.c (c_val_print): Factor out struct and union
6421 printing code to ...
6422 (c_val_print_struct): ... this new function ...
6423 (c_val_print_union): ... and this new function.
6424
1c67f032
SM
64252015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6426
6427 * c-valprint.c (c_val_print): Factor out pointer printing code
6428 to ...
6429 (c_val_print_ptr): ... this new function.
6430
0b6ef777
SM
64312015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6432
6433 * c-valprint.c (c_valprint): Factor our array printing code from
6434 c_val_print to ...
6435 (c_val_print_array): ... this new function.
6436
1033c33c
SM
64372015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6438
6439 * c-valprint.c (c_val_print): Factor out pointer printing code
6440 to ...
6441 (print_unpacked_pointer): ... this new function.
6442
f6b93c34
SM
64432015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6444
6445 * c-valprint.c (c_val_print): Remove an assignment to i and move
6446 its declaration.
6447
0f4576e3
YQ
64482015-07-09 Yao Qi <yao.qi@linaro.org>
6449
6450 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6451 argument ptid. Update comments. Caller update.
6452
37fdfe4c
MM
64532015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6454
6455 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6456 mnt packets.
6457
80a2b330
MM
64582015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6459
6460 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6461
4ab31498
SM
64622015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6463
6464 * progspace.c (delete_program_space): Add missing spaces.
6465
7a41607e
SM
64662015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6467
6468 * inferior.c (delete_inferior_1): Rename to ...
6469 (delete_inferior): ..., remove 'silent' parameter, delete
6470 program space when unused and remove call to prune_program_spaces.
6471 Remove the old, unused, delete_inferior.
6472 (delete_inferior_silent): Remove.
6473 (prune_inferiors): Change call from delete_inferior_1 to
6474 delete_inferior and remove 'silent' parameter. Remove call to
6475 prune_program_spaces.
6476 (remove_inferior_command): Idem.
6477 * inferior.h (delete_inferior_1): Rename to...
6478 (delete_inferior): ..., remove 'silent' parameter and remove the
6479 original delete_inferior.
6480 (delete_inferior_silent): Remove.
6481 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6482 delete_inferior_1 to delete_inferior and remove 'silent'
6483 parameter.
6484 * progspace.c (prune_program_spaces): Remove.
6485 (pspace_empty_p): Rename to...
6486 (program_space_empty_p): ... and make non-static.
6487 (delete_program_space): New.
6488 * progspace.h (prune_program_spaces): Remove declaration.
6489 (program_space_empty_p): New declaration.
6490 (delete_program_space): New declaration.
6491 * monitor.c (monitor_close): Replace call to
6492 delete_thread_silent and delete_inferior_silent with
6493 discard_all_inferiors.
6494
a9bd710f
PP
64952015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6496
6497 * defs.h (deprecated_register_changed_hook): Remove prototype.
6498 * interps.c (clear_iterpreter_hooks): Remove reference to
6499 deprecated_register_changed_hook.
6500 * top.c (deprecated_register_changed_hook): Remove prototype.
6501 * valops.c (value_assign): Remove reference to
6502 deprecated_register_changed_hook.
6503 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6504 Add comment documenting the function.
6505 (tui_register_changed_observer): Define.
6506 (tui_install_hooks): Remove reference to
6507 deprecated_register_changed_hook. Set
6508 tui_register_changed_observer.
6509 (tui_remove_hooks): Remove reference to
6510 deprecated_register_changed_hook. Unset
6511 tui_register_changed_observer.
6512
08464196
JK
65132015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6514
6515 PR compile/18484
6516 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6517
bcf5c1d9
RC
65182015-07-08 Robert O'Callahan <robert@ocallahan.org>
6519
6520 PR exp/18617
6521 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6522
e8643a45
MM
65232015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6524
6525 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6526
76fb6829
MM
65272015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6528
6529 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6530 Use safe_strerror() instead of strerror().
6531
82c40d4b
YQ
65322015-07-07 Yao Qi <yao.qi@linaro.org>
6533
6534 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6535 * features/arm-with-m-fpa-layout.c: Regenerated.
6536 * features/arm-with-m-vfp-d16.xml: Likewise.
6537 * features/arm-with-m-vfp-d16.c: Regenerated.
6538 * features/arm-with-m.xml: Likewise.
6539 * features/arm-with-m.c: Regenerated.
6540 * features/arm-with-neon.xml: Likewise.
6541 * features/arm-with-neon.c: Regenerated.
6542 * features/arm-with-vfpv2.xml: Likewise.
6543 * features/arm-with-vfpv2.c: Regenerated.
6544 * features/arm-with-vfpv3.xml: Likewise.
6545 * features/arm-with-vfpv3.c: Regenerated.
6546
607685ec
YQ
65472015-07-07 Yao Qi <yao.qi@linaro.org>
6548
6549 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6550 arm-linux-nat.c.
6551 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6552 elf/external.h.
6553 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6554 if target is 32-bit.
6555 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6556 if target is 32-bit.
6557 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6558 if target is 32-bit.
6559 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6560 if target is 32-bit.
6561 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6562 (aarch64_linux_read_description): Return the right target
6563 description.
6564 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6565 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6566 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6567 arm-linux-tdep.o.
6568
f1b67888
YQ
65692015-07-07 Yao Qi <yao.qi@linaro.org>
6570
6571 * aarch32-linux-nat.c: New file.
6572 * aarch32-linux-nat.h: New file.
6573 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6574 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6575 aarch32_gp_regcache_supply.
6576 (store_regs): Move code to aarch32-linux-nat.c. Call
6577 aarch32_gp_regcache_collect.
6578 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6579 aarch32_vfp_regcache_supply.
6580 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6581 aarch32_vfp_regcache_collect.
6582 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6583
179bfe82
YQ
65842015-07-07 Yao Qi <yao.qi@linaro.org>
6585
6586 * arm-linux-nat.c (store_fpregister): Remove.
6587 (store_register): Likewise.
6588 (fetch_fpregister): Likewise.
6589 (fetch_register): Likewise.
6590 (arm_linux_store_inferior_registers): Call store_regs and
6591 store_fpregs instead.
6592 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6593 fetch_regs instead.
6594
6008fc5f
AB
65952015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6596
6597 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6598 and focus commands.
6599
7c79d316
JB
66002015-07-06 Joel Brobecker <brobecker@adacore.com>
6601
6602 * NEWS: Create a new section for the next release branch.
6603 Rename the section of the current branch, now that it has
6604 been cut.
6605
f2232bea
JB
66062015-07-06 Joel Brobecker <brobecker@adacore.com>
6607
6608 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6609 * version.in: Bump version to 7.10.50.DATE-cvs.
6610
66c4b3e8
LM
66112015-07-06 Luis Machado <lgustavo@codesourcery.com>
6612
6613 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6614 breakpoints in a special way.
6615 (remove_breakpoint): Likewise.
6616 (mark_breakpoints_out): Likewise.
6617
bcd8537c
AB
66182015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6619
6620 * doc/gdb.texinfo (TUI): Add comma after @xref.
6621
10e9aaa3
AB
66222015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6623
6624 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6625 instead of casting the structure type.
6626
8a13d42d
SM
66272015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6628
6629 * valops.c (search_struct_field): Remove OFFSET parameter.
6630 (value_cast_structs): Adjust calls to search_struct_field.
6631 (value_struct_elt): Same.
6632 (find_overload_match): Same.
6633
a844296a
SM
66342015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6635
6636 * value.c (value_fetch_lazy): Update comment, change return
6637 value to void.
6638 * value.h (value_fetch_lazy): Change return value to void.
6639
f41cbf58
AB
66402015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6641
6642 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6643 (tui_win_name): Make parameter and result const.
6644 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6645
118ca224
PP
66462015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6647
6648 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6649 use printf_unfiltered.
6650 (set_mpx_cmd): Add missing trailing space to command string
6651 literal.
6652 (_initialize_i386_tdep): Give the "mpx" prefix command its
6653 correct name.
6654
1b485e67
KB
66552015-07-02 Kevin Buettner <kevinb@redhat.com>
6656
6657 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6658 (enum rx_frame_type): New.
6659 (struct rx_prologue): Add new field `frame_type'.
6660 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6661 parameter in the prologue struct. Add code for recording
6662 locations of PC and PSW for fast interrupt and exception frames.
6663 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6664 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6665 (rx_frame_type): New function.
6666 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6667 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6668 `this_cache'.
6669 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 6670 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
6671 RX_FRAME_TYPE_FAST_INTERRUPT.
6672 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6673 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6674 (rx_frame_unwind): Use rx_frame_sniffer instead of
6675 default_frame_sniffer.
6676 (rx_frame_unwind): New unwinder.
6677 (rx_gdbarch_init): Register new unwinder.
6678
0561fea4
KB
66792015-07-02 Kevin Buettner <kevinb@redhat.com>
6680
6681 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6682 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6683 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6684 and RX_FPSW_REGNUM.
6685 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6686
decf8d9a
JK
66872015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6688
6689 Fix GCC false warning.
6690 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6691
2fd0f80d
YQ
66922015-07-02 Yao Qi <yao.qi@linaro.org>
6693
6694 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6695 typo in the debugging message.
6696
b0627500
MM
66972015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6698
6699 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6700 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6701 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6702 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6703 (btrace_maint_clear): New.
6704 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6705 (pt_print_packet, btrace_maint_decode_pt)
6706 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6707 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6708 (maint_btrace_packet_history_cmd)
6709 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6710 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6711 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6712 (maint_info_btrace_cmd, _initialize_btrace): New.
6713 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6714 (btrace_maint_packet_history, btrace_maint_info): New.
6715 (btrace_thread_info) <maint>: New.
6716 * NEWS: Announce it.
6717
9be54cae
MM
67182015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6719
6720 * btrace.c (btrace_fetch): Append the new trace data.
6721 (btrace_clear): Clear the stored trace data.
6722 * btrace.h (btrace_thread_info) <data>: New.
6723 * common/btrace-common.h (btrace_data_clear)
6724 (btrace_data_append): New.
6725 * common/btrace-common.c (btrace_data_clear)
6726 (btrace_data_append): New.
6727
010a18a1
MM
67282015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6729
6730 * nat/linux-btrace.c (linux_enable_bts): Check for
6731 PERF_ATTR_SIZE_VER5.
6732 Check for data_offset and data_size fields. Use them.
6733
b20a6524
MM
67342015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6735
6736 * NEWS: Announce new commands "record btrace pt" and "record pt".
6737 Announce new options "set|show record btrace pt buffer-size".
6738 * btrace.c: Include "rsp-low.h".
6739 Include "inttypes.h".
6740 (btrace_add_pc): Add forward declaration.
6741 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6742 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6743 (btrace_compute_ftrace_pt): New.
6744 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6745 (check_xml_btrace_version): Update version check.
6746 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6747 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6748 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6749 (btrace_pt_children): New.
6750 (btrace_children): Add support for "pt".
6751 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6752 (btrace_conf_children): Add support for "pt".
6753 * btrace.h: Include "intel-pt.h".
6754 (btrace_pt_error): New.
6755 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6756 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6757 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6758 (struct btrace_config_pt): New.
6759 (struct btrace_config)<pt>: New.
6760 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6761 (struct btrace_data)<pt>: New.
6762 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6763 (pt): New.
6764 * features/btrace.dtd (btrace)<pt>: New.
6765 (pt, pt-config, cpu): New.
6766 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6767 (perf_event_pt_event_type, kernel_supports_pt)
6768 (linux_supports_pt): New.
6769 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6770 (linux_enable_bts): Free tinfo on error.
6771 (linux_enable_pt): New.
6772 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6773 (linux_disable_pt): New.
6774 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6775 (linux_fill_btrace_pt_config, linux_read_pt): New.
6776 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6777 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6778 (struct btrace_target_info)<pt>: New.
6779 * record-btrace.c (set_record_btrace_pt_cmdlist)
6780 (show_record_btrace_pt_cmdlist): New.
6781 (record_btrace_print_pt_conf): New.
6782 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6783 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6784 (cmd_record_btrace_pt_start): New.
6785 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6786 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6787 (_initialize_record_btrace): Add new commands.
6788 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6789 (remote_protocol_features): Add "Qbtrace:pt".
6790 Add "Qbtrace-conf:pt:size".
6791 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6792 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6793 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6794 (_initialize_remote): Add new commands.
6795
58bfce93
MM
67962015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6797
6798 * configure.ac: check for libipt
6799 * configure: Regenerate.
6800 * config.in: Regenerate.
6801 * Makefile.in (LIBIPT): New.
6802 (CLIBS): Add $LIBIPT.
6803 * NEWS: document new configure options
6804
b0fd6b30
JK
68052015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6806
6807 * compile/compile-object-load.c (compile_object_load): Replace debug
6808 message "lookup undefined ELF symbol" by 3 more specific messages.
6809
e6280369
KB
68102015-07-01 Kevin Buettner <kevinb@redhat.com>
6811
6812 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6813 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6814 (rl78_gdbarch_init): Initialize rl78_psw_type.
6815
bbcbf914
PP
68162015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6817
6818 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6819 Update commentary. Always refresh the registers when frame
6820 information has changed.
6821 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6822 Change return type to int. Return 1 if frame information has
6823 changed, 0 otherwise.
6824 (tui_before_prompt): Update commentary.
6825 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6826 int.
6827
0986c744
PP
68282015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6829
6830 PR tui/13378
6831 * frame.c (select_frame): Remove reference to
6832 deprecated_selected_frame_level_changed_hook.
6833 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6834 declaration.
6835 * stack.c (deprecated_selected_frame_level_changed_hook):
6836 Likewise.
6837 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6838 Rename to ...
6839 (tui_refresh_frame_and_register_information): ... this. Bail
6840 out if there is no stack. Don't update register information
6841 unless registers_too_p is true.
6842 (tui_print_frame_info_listing_hook): Rename to ...
6843 (tui_dummy_print_frame_info_listing_hook): ... this.
6844 (tui_before_prompt): New function.
6845 (tui_normal_stop): New function.
6846 (tui_before_prompt_observer): New observer.
6847 (tui_normal_stop_observer): New observer.
6848 (tui_install_hooks): Set
6849 deprecated_print_frame_info_listing_hook to
6850 tui_dummy_print_frame_info_listing_hook. Register
6851 tui_before_prompt_observer to call tui_before_prompt and
6852 tui_normal_stop_observer to call tui_normal_stop. Remove
6853 reference to deprecated_selected_frame_level_changed_hook.
6854 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6855 and tui_normal_stop_observer. Remove reference to
6856 deprecated_selected_frame_level_changed_hook.
6857
b5fca6d7
PP
68582015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6859
6860 PR tui/13378
6861 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6862 return an int instead of void. Return whether the locator
6863 window has changed.
6864 (tui_show_frame_info): If the locator info has not changed, then
6865 bail out early to avoid refreshing the windows.
6866
c45613e3
PP
68672015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6868
6869 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6870 LOCATOR_WIN to tui_alloc_content.
6871
7b9be803
YQ
68722015-06-30 Yao Qi <yao.qi@linaro.org>
6873
6874 PR tdep/18605
6875 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6876 instructions.
6877
fd6e021d
KB
68782015-06-29 Kevin Buettner <kevinb@redhat.com>
6879
78ab7e9d
KB
6880 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6881 (rx_dwarf_reg_to_regnum): New function.
6882 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6883 unwinding.
fd6e021d 6884
28bf096c
PA
68852015-06-29 Pedro Alves <palves@redhat.com>
6886
6887 PR threads/18127
6888 * infcall.c (run_inferior_call): On infcall success, if the thread
6889 was marked stopped before, reset it back to stopped.
6890 * infrun.c (resume): Don't suppress the set_running calls when
6891 doing an infcall.
6892 (normal_stop): Only discard the finish_thread_state cleanup if the
6893 infcall succeeded.
6894
2880b51c 68952015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
6896
6897 * MAINTAINERS (Write After Approval): Update my email address.
6898
ee93cd5e
KS
68992015-06-26 Keith Seitz <keiths@redhat.com>
6900 Doug Evans <dje@google.com>
6901
6902 PR 16253
6903 * block.c (block_lookup_symbol): For non-function blocks,
6904 continue to search for a symbol with an exact domain match
6905 Otherwise, return any previously found "best domain" symbol.
6906 (block_lookup_symbol_primary): Likewise.
6907
fc637f04
PP
69082015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6909
6910 * NEWS: Mention the new option "history remove-duplicates".
6911 * top.c (history_remove_duplicates): New static variable.
6912 (show_history_remove_duplicates): New static function.
6913 (gdb_add_history): Conditionally remove duplicate history
6914 entries.
6915 (init_main): Add "history remove-duplicates" option.
6916
2e52ae68
PP
69172015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6918
6919 * tui/tui-win.c (focus_completer): New static function.
6920 (_initialize_tui_win): Set the completion function of the
6921 "focus" command to focus_completer.
6922
6e22494e
JK
69232015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6924
6925 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6926 and language_asm..
6927 * symtab.c (find_function_start_sal): Likewise.
6928
f8773be1
GB
69292015-06-25 Gary Benson <gbenson@redhat.com>
6930
6931 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6932 it is the empty string after trailing slashes have been stripped.
6933
a3be80c3
GB
69342015-06-25 Gary Benson <gbenson@redhat.com>
6935
6936 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6937 * infrun.c (follow_exec): Likewise.
6938 * remote.c (remote_filesystem_is_local): Likewise.
6939 * solib.c (solib_find_1): Likewise.
6940
32fad71f
KS
69412015-06-24 Keith Seitz <keiths@redhat.com>
6942
6943 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6944 return value from lrealpath.
6945
87d1b309
MF
69462015-06-24 Mike Frysinger <vapier@gentoo.org>
6947
6948 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6949
23bf70af
MF
69502015-06-24 Mike Frysinger <vapier@gentoo.org>
6951
6952 * remote-sim.c: Include gdb_bfd.h.
6953 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6954 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6955
5cd867b4
YQ
69562015-06-24 Yao Qi <yao.qi@linaro.org>
6957
6958 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6959 set_gdbarch_get_siginfo_type.
6960 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6961 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6962 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6963 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6964 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6965 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6966 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6967 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6968 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6969 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6970
dc06243f
GB
69712015-06-24 Gary Benson <gbenson@redhat.com>
6972
6973 * common/buffer.c (stdint.h): Do not include.
6974 * common/print-utils.c (stdint.h): Likewise.
6975 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6976 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6977 * ft32-tdep.c (gdb_assert.h): Likewise.
6978 * guile/scm-utils.c (stdint.h): Likewise.
6979 * i386-linux-tdep.c (stdint.h): Likewise.
6980 * i386-tdep.c (stdint.h): Likewise.
6981 * nat/linux-btrace.c (stdint.h): Likewise.
6982 * nat/linux-btrace.h (stdint.h): Likewise.
6983 * nat/linux-ptrace.c (stdint.h): Likewise.
6984 * nat/mips-linux-watch.h (stdint.h): Likewise.
6985 * ppc-linux-nat.c (stdint.h): Likewise.
6986 * python/python-internal.h (stdint.h): Likewise.
6987 * stub-termcap.c (stdlib.h): Likewise.
6988 * target/target.h (stdint.h): Likewise.
6989 * xtensa-linux-nat.c (stdint.h): Likewise.
6990
0fc26caf
PP
69912015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6992
6993 * top.c (init_history): Look at errno after calling strtol to
6994 properly map large GDBHISTSIZE values to infinity.
6995
a38fe4fe
DE
69962015-06-23 Doug Evans <dje@google.com>
6997
6998 * inferior.h (struct inferior_suspend_state): Delete, unused.
6999 All references deleted.
7000
7564fe45
MF
70012015-06-23 Mike Frysinger <vapier@gentoo.org>
7002
7003 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7004 (microblaze_push_dummy_call): Likewise.
7005 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7006 and set_gdbarch_push_dummy_call.
7007
0bdb2f78
YQ
70082015-06-23 Yao Qi <yao.qi@linaro.org>
7009
7010 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7011 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7012 (amd64_linux_store_inferior_registers): Likewise.
7013 * arm-linux-nat.c (fetch_fpregister): Likewise.
7014 (fetch_fpregs, store_fpregister): Likewise.
7015 (store_fpregister, store_fpregs): Likewise.
7016 (fetch_register, fetch_regs): Likewise.
7017 (store_register, store_regs): Likewise.
7018 (fetch_vfp_regs, store_vfp_regs): Likewise.
7019 (arm_linux_read_description): Check have_ptrace_getregset is
7020 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7021 or TRIBOOL_FALSE.
7022 * i386-linux-nat.c (fetch_xstateregs): Check
7023 have_ptrace_getregset is not TRIBOOL_TRUE.
7024 (store_xstateregs): Likewise.
7025 * linux-nat.c (have_ptrace_getregset): Change its type to
7026 enum tribool.
7027 * linux-nat.h (tribool): New enum.
7028 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7029 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7030
18a94d75
DE
70312015-06-19 Doug Evans <dje@google.com>
7032
7033 * NEWS: Mention Sun's version of stabs is no longer supported.
7034 * elfread.c (free_elfinfo): Delete. All uses updated.
7035 (elfstab_offset_sections): Delete. All uses updated.
7036 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7037 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7038 All uses updated.
7039 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7040 All callers updated.
7041
124e13d9
SM
70422015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7043
7044 * common/rsp-low.c (needs_escaping): New.
7045 (remote_escape_output): Add unit_size parameter. Refactor to
7046 support multi-byte addressable units. Rename parameters.
7047 * common/rsp-low.h (remote_escape_output): Add unit_size
7048 parameter and rename others. Update doc.
7049 * remote.c (align_for_efficient_write): New.
7050 (remote_write_bytes_aux): Add unit_size parameter and use it.
7051 Rename some variables. Update doc.
7052 (remote_xfer_partial): Get unit size and use it.
7053 (remote_read_bytes_1): Add unit_size parameter and use it.
7054 Rename some variables. Update doc.
7055 (remote_write_bytes): Same.
7056 (remote_xfer_live_readonly_partial): Same.
7057 (remote_read_bytes): Same.
7058 (remote_flash_write): Update call to remote_write_bytes_aux.
7059 (remote_write_qxfer): Update call to remote_escape_output.
7060 (remote_search_memory): Same.
7061 (remote_hostio_pwrite): Same.
7062
6ae88661
LM
70632015-06-17 Luis Machado <lgustavo@codesourcery.com>
7064
7065 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7066 locations as inserted.
7067 Update and expand comment about permanent locations.
7068 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7069 Move comment to add_location_to_breakpoint.
7070 (update_global_location_list): Don't error out if a permanent
7071 breakpoint is not marked inserted.
7072 Don't error out if a non-permanent breakpoint location is inserted on
7073 top of a permanent breakpoint.
7074
da4616f6
LM
70752015-06-17 Luis Machado <lgustavo@codesourcery.com>
7076
7077 * breakpoint.c (make_breakpoint_permanent): Remove unused
7078 function.
7079 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7080
bc460514
PP
70812015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7082
7083 PR gdb/16999
7084 * NEWS: Mention new GDBHISTSIZE behavior.
7085 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7086 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7087
b58c513b
PP
70882015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7089
7090 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7091 * top.c (init_history): Read from GDBHISTSIZE instead of
7092 HISTSIZE.
7093 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7094
2093d2d3
PP
70952015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7096
7097 * top.c (gdb_safe_append_history): Do not call
7098 history_truncate_file if the history is not stifled.
7099
fc248485
AA
71002015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7101
7102 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7103 * syscalls/s390x-linux.xml: Likewise.
7104
4da680ad
ME
71052015-06-16 Michael Eager <eager@eagercon.com>
7106
7107 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7108
0a75489f
PP
71092015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7110
7111 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7112 target_terminal_ours_for_output() before calling
7113 tui_show_frame_info(), and restore the original terminal
7114 settings afterwards.
7115
95855ca8
MS
71162015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7117
7118 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7119
cfc32360
SM
71202015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7121
7122 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7123 memory unit size.
7124 (mi_cmd_data_write_memory_bytes): Same.
7125
cb6f16cf
SM
71262015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7127
7128 * corefile.c (write_memory): Update doc.
7129 * gdbcore.h (write_memory): Same.
7130
31b7833d
JK
71312015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7132
7133 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7134 (dump_mapping_p): Use it for parameter filterflags.
7135 (linux_find_memory_regions_full): Use it for variable filterflags.
7136
909c2cda
JK
71372015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7138 Jan Kratochvil <jan.kratochvil@redhat.com>
7139
7140 Merge multiple hex conversions.
7141 * monitor.c: Include rsp-low.h.
7142 (fromhex): Remove definition.
7143
03aef70f
JK
71442015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7145 Jan Kratochvil <jan.kratochvil@redhat.com>
7146
7147 Move utility functions to common/.
7148 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7149 Move defs to common/common-utils.c.
7150 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7151 (skip_to_space_const): Move decls to common/common-utils.h.
7152 * common/common-defs.h: Move include of common-types.h before
7153 common-utils.h.
7154 * common/common-utils.c: Include host-defs.h and ctype.h.
7155 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7156 from utils.c.
7157 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7158 cli/cli-utils.c.
7159 * common/common-utils.h (strtoulst): Move decl from utils.h.
7160 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7161 Move from cli/cli-utils.h.
7162 * common/host-defs.h: Include limits.h.
7163 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7164 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7165 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7166 common/common-utils.h.
7167 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7168 (strtoulst): Move to common/common-utils.c.
7169 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7170
d1168cc1
YQ
71712015-06-15 Yao Qi <yao.qi@linaro.org>
7172
7173 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7174
c74f7d1c
JT
71752015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7176
7177 * build-id.c: Don't include elf-bfd.h.
7178 (build_id_bfd_get): Use bfd_build_id.
7179 (build_id_verify): Ditto.
7180 * build-id.h: Ditto.
7181 (find_separate_debug_file_by_buildid): Ditto.
7182 * python/py-objfile.c: Don't include elf-bfd.h.
7183 (objfpy_get_build_id) Use bfd_build_id.
7184 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7185 * coffread.c: Include build-id.h.
7186 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7187
f20c58f5
JT
71882015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7189
7190 * windows-nat.c (do_windows_fetch_inferior_registers)
7191 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7192 conditional with __CYGWIN__.
7193
51f0e40d
AB
71942015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7195
7196 * completer.c: Add arch-utils.h include.
7197 (enum reg_completer_targets): New enum.
7198 (reg_or_group_completer_1): New function containing old
7199 reg_or_group_completer, add and use new parameter to control what
7200 is completed on. Use get_current_arch rather than architecture of
7201 currently selected frame.
7202 (reg_or_group_completer): Call new reg_or_group_completer_1.
7203 (reggroup_completer): Call new reg_or_group_completer_1.
7204 * completer.h (reggroup_completer): Add declaration.
7205 * tui/tui-regs.c: Add 'completer.h' include.
7206 (tui_reg_next_command): Renamed to...
7207 (tui_reg_next): ...this. Adjust parameters and return rather than
7208 display new group.
7209 (tui_reg_prev_command): Renamed to...
7210 (tui_reg_prev): ...this. Adjust parameters and return rather than
7211 display new group.
7212 (tui_reg_float_command): Delete.
7213 (tui_reg_general_command): Delete.
7214 (tui_reg_system_command): Delete.
7215 (tui_reg_command): Rewrite to perform switching of register group.
7216 Add header comment.
7217 (tuireglist): Remove.
7218 (tui_reggroup_completer): New function.
7219 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7220 creation of 'tui reg' command.
7221 * NEWS: Add comment about 'tui reg' changes.
7222
d309493c
SM
72232015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7224
7225 * target.c (target_read): Consider addressable unit size when
7226 reading from a memory object.
7227 (read_memory_robust): Same.
7228 (read_whatever_is_readable): Same.
7229 (target_write_with_progress): Consider addressable unit size
7230 when writing to a memory object.
7231 * target.h (target_read): Update documentation.
7232 (target_write): Add documentation.
7233
3374165f
SM
72342015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7235
7236 * arch-utils.h (default_addressable_memory_unit_size): New.
7237 * arch-utils.c (default_addressable_memory_unit_size): New.
7238 * gdbarch.sh (addressable_memory_unit_size): New.
7239 * gdbarch.h: Re-generate.
7240 * gdbarch.c: Re-generate.
7241
279a6fed
SM
72422015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7243
7244 * target.c (target_read): Rename variables and use
7245 TARGET_XFER_E_IO.
7246 (target_read_with_progress): Same.
7247 (read_memory_robust): Constify parameters and rename
7248 variables.
7249 (read_whatever_is_readable): Constify parameters,
7250 rename variables, adjust formatting.
7251 * target.h (read_memory_robust): Constify parameters.
7252
1e5338b6 72532015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
7254
7255 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7256 synthetic (non-AltiVec) vector types.
7257 (ppc64_sysv_abi_return_value): Likewise.
7258
98aa42ee
AT
72592015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7260
7261 PR breakpoints/16465
7262 * breakpoint.c (create_breakpoint): Save extra_string for
7263 pending breakpoints.
7264
966f0aef
WT
72652015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7266
7267 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7268 and bt_mask to CORE_ADDR.
7269
6449ed0d
GB
72702015-06-11 Gary Benson <gbenson@redhat.com>
7271
7272 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7273 (mnsh_recv_message): Likewise.
7274
34f8ac9f
WT
72752015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7276
7277 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7278 long long int and plongest instead of %ll.
7279
198c808c
GB
72802015-06-11 Gary Benson <gbenson@redhat.com>
7281
7282 * nat/linux-namespaces.c (gdb_wait.h): New include.
7283 (sys/wait.h): Do not include.
7284
e815d2d2
SM
72852015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7286
7287 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7288 end_sequence is true.
7289
8847cac2
JK
72902015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7291
7292 Code cleanup.
7293 * solib-target.c (library_list_start_list): Use explicit NULL
7294 comparison.
7295
24c05f46
JK
72962015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7297
7298 * solib-target.c (library_list_start_list): Do not dereference
7299 variable version in its initialization. Make the VERSION check handle
7300 NULL.
7301 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7302
51aad7cc
GB
73032015-06-10 Gary Benson <gbenson@redhat.com>
7304
7305 * NEWS: Announce support for direct access of executable and
7306 shared library files when attaching to inferiors in containers
7307 on GNU/Linux systems.
7308
15a201c8
GB
73092015-06-10 Gary Benson <gbenson@redhat.com>
7310
7311 * remote.c (struct remote_state) <fs_pid>: New field.
7312 (new_remote_state): Initialize the above.
7313 (PACKET_vFile_setfs): New enum value.
7314 (remote_hostio_set_filesystem): New function.
7315 (remote_hostio_open): Call the above.
7316 (remote_hostio_unlink): Likewise.
7317 (remote_hostio_readlink): Likewise.
7318 (_initialize_remote): Register new "set/show remote
7319 hostio-setfs-packet" command.
7320 * NEWS: Announce new vFile:setfs packet.
7321
7a6a1731
GB
73222015-06-10 Gary Benson <gbenson@redhat.com>
7323
7324 * linux-nat.c (nat/linux-namespaces.h): New include.
7325 (fileio.h): Likewise.
7326 (linux_nat_filesystem_is_local): New function.
7327 (linux_nat_fileio_pid_of): Likewise.
7328 (linux_nat_fileio_open): Likewise.
7329 (linux_nat_fileio_readlink): Likewise.
7330 (linux_nat_fileio_unlink): Likewise.
7331 (linux_nat_add_target): Initialize to_filesystem_is_local,
7332 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7333 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7334 commands.
7335 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7336
07c138c8
GB
73372015-06-10 Gary Benson <gbenson@redhat.com>
7338
7339 * target.h (struct inferior): New forward declaration.
7340 (struct target_ops) <to_filesystem_is_local>: Update comment.
7341 (struct target_ops) <to_fileio_open>: New argument inf.
7342 Update comment. All implementations updated.
7343 (struct target_ops) <to_fileio_unlink>: Likewise.
7344 (struct target_ops) <to_fileio_readlink>: Likewise.
7345 (target_filesystem_is_local): Update comment.
7346 (target_fileio_open): New argument inf. Update comment.
7347 (target_fileio_unlink): Likewise.
7348 (target_fileio_readlink): Likewise.
7349 (target_fileio_read_alloc): Likewise.
7350 (target_fileio_read_stralloc): Likewise.
7351 * target.c (target_fileio_open): New argument inf.
7352 Pass inf to implementation. Update debug printing.
7353 (target_fileio_unlink): Likewise.
7354 (target_fileio_readlink): Likewise.
7355 (target_fileio_read_alloc_1): New argument inf. Pass inf
7356 to target_fileio_open.
7357 (target_fileio_read_alloc): New argument inf. Pass inf to
7358 target_fileio_read_alloc_1.
7359 (target_fileio_read_stralloc): Likewise.
7360 * gdb_bfd.c (inferior.h): New include.
7361 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7362 argument with new argument "inferior". Pass inferior to
7363 target_fileio_open.
7364 (gdb_bfd_open): Supply inferior argument to
7365 gdb_bfd_iovec_fileio_open.
7366 * linux-tdep.c (linux_info_proc): Supply inf argument to
7367 relevant target_fileio calls.
7368 (linux_find_memory_regions_full): Likewise.
7369 (linux_fill_prpsinfo): Likewise.
7370 * remote.c (remote_filesystem_is_local): Supply inf
7371 argument to remote_hostio_open.
7372 (remote_file_put): Likewise.
7373 (remote_file_get): Likewise.
7374 (remote_file_delete): Supply inf argument to
7375 remote_hostio_unlink.
7376
12e2a5fd
GB
73772015-06-10 Gary Benson <gbenson@redhat.com>
7378
7379 * inf-child.c (inf_child_fileio_open): Replace comment.
7380 (inf_child_fileio_pwrite): Likewise.
7381 (inf_child_fileio_pread): Likewise.
7382 (inf_child_fileio_fstat): Insert blank line before comment.
7383 (inf_child_fileio_close): Replace comment.
7384 (inf_child_fileio_unlink): Likewise.
7385 (inf_child_fileio_readlink): Likewise.
7386 * remote.c (remote_hostio_open): Likewise.
7387 (remote_hostio_pread): Likewise.
7388 (remote_hostio_pwrite): Likewise.
7389 (remote_hostio_close): Likewise.
7390 (remote_hostio_unlink): Likewise.
7391 (remote_hostio_readlink): Likewise.
7392 (remote_hostio_fstat): Likewise.
7393 (remote_filesystem_is_local): Likewise.
7394 * target.c (target_fileio_open): Likewise.
7395 (target_fileio_pwrite): Likewise.
7396 (target_fileio_pread): Likewise.
7397 (target_fileio_fstat): Insert blank line before comment.
7398 (target_fileio_close): Replace comment.
7399 (target_fileio_unlink): Likewise.
7400 (target_fileio_readlink): Likewise.
7401 (target_fileio_read_alloc): Likewise.
7402 (target_fileio_read_stralloc): Likewise.
7403
9bc3a976
GB
74042015-06-10 Gary Benson <gbenson@redhat.com>
7405
7406 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7407 (check_pid_namespace_match): Use linux_ns_same rather than
7408 linux_proc_pid_get_ns to spot PID namespace mismatches.
7409 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7410 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7411
4b8b5e72
GB
74122015-06-10 Gary Benson <gbenson@redhat.com>
7413
7414 * configure.ac (AC_CHECK_FUNCS): Add setns.
7415 * config.in: Regenerate.
7416 * configure: Likewise.
7417 * nat/linux-namespaces.h: New file.
7418 * nat/linux-namespaces.c: Likewise.
7419 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7420 (linux-namespaces.o): New rule.
7421 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7422 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7423 * config/arm/linux.mh (NATDEPFILES): Likewise.
7424 * config/i386/linux.mh (NATDEPFILES): Likewise.
7425 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7426 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7427 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7428 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7429 * config/mips/linux.mh (NATDEPFILES): Likewise.
7430 * config/pa/linux.mh (NATDEPFILES): Likewise.
7431 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7432 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7433 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7434 * config/s390/linux.mh (NATDEPFILES): Likewise.
7435 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7436 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7437 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7438 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7439
ca095836
GB
74402015-06-10 Gary Benson <gbenson@redhat.com>
7441
7442 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7443 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7444 (make_cleanup_close): Likewise.
7445 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7446 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7447 (make_cleanup_close): Likewise.
7448
5d9c55d3
JT
74492015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7450
7451 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7452 from SuspendThread().
7453
040ea00b
JT
74542015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7455
7456 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7457 from OutputDebugString.
7458
7d73c23c
WT
74592015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7460 Mircea Gherzan <mircea.gherzan@intel.com>
7461
7462 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7463 MPX_BT_MASK_32): New macros.
7464 (i386_mpx_set_bounds): New function that implements
7465 the command "set-mpx-bound".
7466 (i386_mpx_enabled): Helper function to test MPX availability.
7467 (i386_mpx_bd_base): Helper function to calculate the base directory
7468 address.
7469 (i386_mpx_get_bt_entry): Helper function to access a bound
7470 table entry.
7471 (i386_mpx_print_bounds): Effectively display bound information.
7472 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7473 "show mpx".
7474 (_initialize_i386_tdep):
7475 Add "bound" to the commands "show mpx" and "set mpx" commands.
7476 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7477 and "show mpx" commands.
7478 * NEWS: List new commands for MPX support.
7479
3ac2e371
GB
74802015-06-09 Gary Benson <gbenson@redhat.com>
7481
7482 * common/fileio.h (fileio_to_host_mode): New declaration.
7483 * common/fileio.c (fileio_to_host_mode): New Function.
7484 * inf-child.c (inf_child_fileio_open): Process mode argument
7485 with fileio_to_host_mode.
7486
ecef18c5
GB
74872015-06-09 Gary Benson <gbenson@redhat.com>
7488
7489 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7490 conditional.
7491
e3dd7556
GB
74922015-06-05 Gary Benson <gbenson@redhat.com>
7493
7494 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7495 * remote.c (remote_filesystem_is_local): ...here.
7496
5b74bf7d
YQ
74972015-06-04 Yao Qi <yao.qi@linaro.org>
7498
7499 * gdbarch.c: Regenerate it.
7500
7f361056
JK
75012015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7502
7503 * arch-utils.c (default_infcall_munmap): New.
7504 * arch-utils.h (default_infcall_munmap): New declaration.
7505 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7506 (munmap_list_free, munmap_listp_free_cleanup): New.
7507 (struct setup_sections_data): Add field munmap_list_headp.
7508 (setup_sections): Call munmap_list_add.
7509 (compile_object_load): New variable munmap_list_head, initialize
7510 setup_sections_data.munmap_list_headp, return munmap_list_head.
7511 * compile/compile-object-load.h (struct munmap_list): New declaration.
7512 (struct compile_module): Add field munmap_list_head.
7513 (munmap_list_free): New declaration.
7514 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7515 munmap_list_head.
7516 (do_module_cleanup): Call munmap_list_free.
7517 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7518 * gdbarch.c: Regenerate.
7519 * gdbarch.h: Regenerate.
7520 * gdbarch.sh (infcall_munmap): New.
7521 * linux-tdep.c (linux_infcall_munmap): New.
7522 (linux_init_abi): Install it.
7523
3b462ec2
SM
75242015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7525
7526 PR gdb/15564
7527 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7528
8d683210
YQ
75292015-06-02 Yao Qi <yao.qi@linaro.org>
7530
7531 * i386-linux-nat.c: Include linux-nat.h.
7532
e0619de6
JK
75332015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7534 Jan Kratochvil <jan.kratochvil@redhat.com>
7535
7536 PR symtab/18392
7537 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7538 assertion.
7539 * dwarf2loc.c (chain_candidate): Likewise.
7540
bd16da51
YQ
75412015-06-01 Yao Qi <yao.qi@linaro.org>
7542
7543 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7544 (store_vfp_regs): Use PTRACE_SETREGSET.
7545
df9d7ec9
YQ
75462015-06-01 Yao Qi <yao.qi@linaro.org>
7547
7548 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7549 (fetch_fpregs): Likewise.
7550 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7551 (store_fpregs): Likewise.
7552
10766686
YQ
75532015-06-01 Yao Qi <yao.qi@linaro.org>
7554
7555 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7556 (fetch_regs): Likewise.
7557 (store_regs): Use PTRACE_SETREGSET.
7558 (store_register): Likewise.
7559
7efe48d1
YQ
75602015-06-01 Yao Qi <yao.qi@linaro.org>
7561
7562 * arm-linux-nat.c (arm_linux_read_description): Check whether
7563 kernel supports PTRACE_GETREGSET.
7564
433bbbf8
YQ
75652015-06-01 Yao Qi <yao.qi@linaro.org>
7566
7567 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7568 * linux-nat.c: ... here.
7569 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7570 to ...
7571 * linux-nat.h: ... here.
7572
ca9b78ce
YQ
75732015-06-01 Yao Qi <yao.qi@linaro.org>
7574
7575 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7576 * i386-linux-nat.c: Likewise.
7577 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7578 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7579 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7580 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7581 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7582
99cee7b7
EZ
75832015-05-30 Eli Zaretskii <eliz@gnu.org>
7584
7585 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7586 compatible to what read_child and write_child return. This
7587 unbreaks that DJGPP build of GDB which was broken since v7.7.
7588
2147f5bd
MG
75892015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7590
7591 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7592
c8f6c93c
RM
75932015-05-29 Roland McGrath <mcgrathr@google.com>
7594
7595 PR gdb/18464
7596 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7597 rather than internal_error for an unrecognized value.
7598
8c6a948d
MF
75992015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7600
7601 * xtensa-tdep.c (xtensa_pseudo_register_read)
7602 (xtensa_pseudo_register_write): Don't alias last pseudo register
7603 to a1.
7604
8dd06f7a
DB
76052015-05-28 Don Breazeal <donb@codesourcery.com>
7606
7607 * infrun.c (follow_fork_inferior): Ensure the use of
7608 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7609 messages.
7610
a051152b
DE
76112015-05-28 Doug Evans <dje@google.com>
7612
7613 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7614
a56cc1ce
YQ
76152015-05-28 Yao Qi <yao.qi@linaro.org>
7616
7617 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7618 (arm_linux_fetch_inferior_registers): Use
7619 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7620 (arm_linux_store_inferior_registers): Likewise.
7621 (arm_linux_read_description): Don't set
7622 arm_linux_has_wmmx_registers.
7623 * arm-tdep.c (arm_gdbarch_init): Set
7624 tdep->have_wmmx_registers according target descriptions.
7625 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7626 field.
7627
330c6ca9
YQ
76282015-05-28 Yao Qi <yao.qi@linaro.org>
7629
7630 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7631 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7632 instead of arm_linux_vfp_register_count.
7633 (store_vfp_regs): Likewise.
7634 (arm_linux_fetch_inferior_registers): Likewise.
7635 (arm_linux_store_inferior_registers): Likewise.
7636 (arm_linux_read_description): Don't set
7637 arm_linux_vfp_register_count.
7638 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7639 Adjust.
7640 * arm-tdep.c (arm_gdbarch_init): Add assert on
7641 vfp_register_count.
7642 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7643 field to vfp_register_count. All users updated.
7644
d403db27
KH
76452015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7646
7647 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7648 ELFOSABI_GNU binaries.
7649
d9b3de22
DE
76502015-05-27 Doug Evans <dje@google.com>
7651
7652 * dwarf2read.c (lnp_state_machine): New typedef.
7653 (lnp_reader_state): New typedef.
7654 (dwarf_record_line_1): Renamed from dwarf_record_line.
7655 All callers updated.
7656 (dwarf_record_line): New function.
7657 (init_lnp_state_machine): New function.
7658 (check_line_address): Replace p_record_line parameter with state.
7659 All callers updated.
7660 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7661 Update to record state in lnp_state_machine.
7662
924c2928
DE
76632015-05-27 Doug Evans <dje@google.com>
7664
7665 * dwarf2read.c (record_line_ftype): New typedef.
7666 (check_line_address): New function.
7667 (dwarf_decode_lines_1): Call it.
7668
27e0867f
DE
76692015-05-27 Doug Evans <dje@google.com>
7670
7671 * NEWS: Mention "set debug dwarf-line".
7672 * dwarf2read.c (dwarf_line_debug): New static global.
7673 (add_include_dir): Add debug dwarf-line support.
7674 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7675 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7676
4dcabcc2
DE
76772015-05-27 Doug Evans <dje@google.com>
7678
7679 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7680 All callers updated.
7681 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7682 * cp-support.h (cp_lookup_nested_symbol): Update.
7683
b2e2f908
DE
76842015-05-27 Doug Evans <dje@google.com>
7685
7686 PR symtab/18258
7687 * block.c (block_find_symbol): New function.
7688 (block_find_non_opaque_type): Ditto.
7689 (block_find_non_opaque_type_preferred): Ditto.
7690 * block.h (block_symbol_matcher_ftype): New typedef.
7691 (block_find_symbol): Declare.
7692 (block_find_non_opaque_type): Ditto.
7693 (block_find_non_opaque_type_preferred): Ditto.
7694 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7695 * psymtab.c (psym_lookup_symbol): Ditto.
7696 * symtab.c (basic_lookup_transparent_type_1): New function.
7697 (basic_lookup_transparent_type): Call it.
7698
f62fce35
YQ
76992015-05-27 Yao Qi <yao.qi@linaro.org>
7700
7701 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7702 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7703
5d98d3cd
YQ
77042015-05-27 Yao Qi <yao.qi@linaro.org>
7705
7706 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7707 before operator &&.
7708 (aarch64_record_load_store): Likewise.
7709
82c7be31
DE
77102015-05-26 Doug Evans <dje@google.com>
7711
7712 PR c++/18141, c++/18417.
7713 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7714 a typedef.
7715
b4f54984
DE
77162015-05-26 Doug Evans <dje@google.com>
7717
7718 * NEWS: Add entries for command renamings.
7719 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7720 All uses updated.
7721 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7722 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7723 All uses updated.
7724 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7725 All callers updated. Fix spelling of DWARF in help text.
7726 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7727 All uses updated.
7728 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7729 All uses updated.
7730 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7731 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7732 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7733 All uses updated.
7734 (show_dwarf_always_disassemble): Renamed from
7735 show_dwarf2_always_disassemble. All callers updated.
7736 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7737 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7738 "set/show dwarf max-cache-age". Rename
7739 "set/show dwarf2 always-disassemble" to
7740 "set/show dwarf always-disassemble". Rename
7741 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7742 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7743
4ea6efe9
DE
77442015-05-26 Doug Evans <dje@google.com>
7745
7746 PR python/18438
7747 * python/py-lazy-string.c (stpy_convert_to_value): Use
7748 gdbpy_gdb_memory_error not PyExc_MemoryError.
7749 (gdbpy_create_lazy_string_object): Ditto.
7750
b93fd21d
AB
77512015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7752
7753 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7754
55b40027
AB
77552015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7756
7757 * tui/tui-regs.c (tui_reg_prev_command): New function.
7758 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7759 * reggroups.c (reggroup_prev): New function.
7760 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7761
99afc88b
OJ
77622015-05-26 Omair Javaid <omair.javaid@linaro.org>
7763 Yao Qi <yao.qi@linaro.org>
7764
7765 * aarch64-linux-tdep.c: Include linux-record.h and
7766 record-full.h.
7767 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7768 (aarch64_syscall): New enum.
7769 (aarch64_canonicalize_syscall): New function.
7770 (aarch64_all_but_pc_registers_record): New function.
7771 (aarch64_linux_syscall_record): New function.
7772 (aarch64_linux_init_abi): Install AArch64 process record
7773 handler. Update to handle syscall recording.
7774 * aarch64-tdep.c: Include record.h and record-full.h.
7775 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7776 (struct aarch64_mem_r): Define.
7777 (aarch64_record_result): New enum.
7778 (struct insn_decode_record): Define.
7779 (insn_decode_record): New typedef.
7780 (aarch64_record_data_proc_reg): New function.
7781 (aarch64_record_data_proc_imm): New function.
7782 (aarch64_record_branch_except_sys): New function.
7783 (aarch64_record_load_store): New function.
7784 (aarch64_record_data_proc_simd_fp): New function.
7785 (aarch64_record_asimd_load_store): New function.
7786 (aarch64_record_decode_insn_handler): New function.
7787 (deallocate_reg_mem): New function.
7788 (aarch64_process_record): New function.
7789 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7790 New field.
7791 (aarch64_process_record): New extern declaration.
7792 * configure.tgt: Add linux-record.o to gdb_target_obs.
7793 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7794
c16a3f52
OJ
77952015-05-26 Omair Javaid <omair.javaid@linaro.org>
7796
7797 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7798 targets.
7799
c9cf6e20
MG
78002015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7801
7802 * amd64-tdep.c: Replace in_function_epilogue_p with
7803 stack_frame_destroyed_p throughout.
7804 * arch-utils.c: Ditto.
7805 * arch-utils.h: Ditto.
7806 * arm-tdep.c: Ditto.
7807 * breakpoint.c: Ditto.
7808 * gdbarch.sh: Ditto.
7809 * hppa-tdep.c: Ditto.
7810 * i386-tdep.c: Ditto.
7811 * mips-tdep.c: Ditto.
7812 * nios2-tdep.c: Ditto.
7813 * rs6000-tdep.c: Ditto.
7814 * s390-linux-tdep.c: Ditto.
7815 * score-tdep.c: Ditto.
7816 * sh-tdep.c: Ditto.
7817 * sparc-tdep.c: Ditto.
7818 * sparc-tdep.h: Ditto.
7819 * sparc64-tdep.c: Ditto.
7820 * spu-tdep.c: Ditto.
7821 * tic6x-tdep.c: Ditto.
7822 * tilegx-tdep.c: Ditto.
7823 * xstormy16-tdep.c: Ditto.
7824 * gdbarch.c, gdbarch.h: Re-generated.
7825
a4ea0946
AB
78262015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7827
7828 * NEWS: Mention 'tui enable' and 'tui disable'.
7829 * tui/tui.c (tui_enable_command): New function.
7830 (tui_disable_command): New function.
7831 (_initialize_tui): New function.
7832
b75c69bb
AB
78332015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7834
7835 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7836
c1b009ee
AB
78372015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7838
7839 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7840 buf_ptr is freed.
7841
880d1e40
AB
78422015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7843
7844 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7845 into ...
7846 (tui_set_layout_for_display_command): ...here, before calling
7847 tui_set_layout. Only set the layout if gdb has not already
7848 entered the TUI_FAILURE state.
7849
a0145030
AB
78502015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7851
7852 * tui/tui-layout.c (layout_completer): New function.
7853 (_initialize_tui_layout): Set completer on layout command.
7854
7bd0be3a
AB
78552015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7856
7857 * tui/tui-layout.c (tui_set_layout): Remove
7858 tui_register_display_type parameter. Remove all checking of this
7859 parameter, and reindent function. Update header comment.
7860 (tui_set_layout_for_display_command): Rename to...
7861 (tui_set_layout_by_name): ...this, and don't check for different
7862 register class types, don't pass a tui_register_display_type to
7863 tui_set_layout. Update header comment.
7864 (layout_names): Remove register set specific names.
7865 * tui/tui-layout.h (tui_set_layout): Remove
7866 tui_register_display_type parameter.
7867 * tui/tui.c (tui_rl_change_windows): Don't pass a
7868 tui_register_display_type to tui_set_layout.
7869 (tui_rl_delete_other_windows): Likewise.
7870 (tui_enable): Likewise.
7871 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7872 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7873 (TUI_GENERAL_REGS_NAME): Remove.
7874 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7875 (TUI_SPECIAL_REGS_NAME): Remove.
7876 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7877 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7878 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7879 (enum tui_register_display_type): Remove.
7880 (struct tui_layout_def): Remove regs_display_type and
7881 float_regs_display_type fields.
7882 (struct tui_data_info): Remove regs_display_type field.
7883 (tui_layout_command): Use new name for
7884 tui_set_layout_for_display_command.
7885 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7886 (tui_clear_win_detail): Don't initialise removed fields of
7887 win_info.
7888 * tui/tui-regs.c (tui_show_registers): Use new name for
7889 tui_set_layout_for_display_command.
7890 * tui/tui.h (tui_set_layout_for_display_command): Rename
7891 declaration to...
7892 (tui_set_layout_by_name): ...this.
7893 * printcmd.c (display_command): Remove tui related layout call,
7894 and reindent.
7895
0b6e5e10
JB
78962015-05-20 Joel Brobecker <brobecker@adacore.com>
7897
7898 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7899 (handle_inferior_event): New function.
7900
1da0522e
JB
79012015-05-20 Joel Brobecker <brobecker@adacore.com>
7902
7903 * ada-lang.c (to_fixed_array_type): Rename local variable
7904 typename into type_name.
7905
5fe75eec
JK
79062015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7907
7908 Fix ASAN crash for gdb.compile/compile.exp.
7909 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7910
a4063588
JK
79112015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7912
7913 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7914 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7915 * compile/compile-object-load.c (setup_sections, compile_object_load):
7916 Likewise.
7917 * compile/compile.c (compile_to_object): Likewise.
7918
37442ce1
DE
79192015-05-16 Doug Evans <xdje42@gmail.com>
7920
7921 * NEWS: Mention support for unbuffered Guile memory ports.
7922 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7923 (ioscm_lseek_address): Improve overflow calculation.
7924 (gdbscm_memory_port_fill_input): Add assert.
7925 (gdbscm_memory_port_write): Handle unbuffered ports.
7926 Handle large writes identical to Guile's fport_write.
7927 (gdbscm_memory_port_seek): Fix seeking past end check.
7928 (gdbscm_memory_port_close): Handle closing unbuffered port.
7929 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7930 (ioscm_init_memory_port): Handle unbuffered ports.
7931 (ioscm_reinit_memory_port): Ditto.
7932 (ioscm_init_memory_port): Update size calculation.
7933 (gdbscm_open_memory): Support zero sized ports.
7934
d976bace
JK
79352015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7936
7937 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7938 variable compiler warnings.
7939
4d18dfad
JK
79402015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7941
7942 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7943
36de76f9
JK
79442015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7945 Phil Muldoon <pmuldoon@redhat.com>
7946
7947 * NEWS (Changes since GDB 7.9): Add compile print.
7948 * compile/compile-c-support.c (add_code_header, add_code_footer)
7949 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7950 COMPILE_I_PRINT_VALUE_SCOPE.
7951 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7952 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7953 New.
7954 * compile/compile-object-load.c: Include block.h.
7955 (get_out_value_type): New function.
7956 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7957 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7958 OUT_VALUE_TYPE.
7959 * compile/compile-object-load.h (struct compile_module): Add fields
7960 out_value_addr and out_value_type.
7961 * compile/compile-object-run.c: Include valprint.h and compile.h.
7962 (struct do_module_cleanup): Add fields out_value_addr and
7963 out_value_type.
7964 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7965 COMPILE_I_PRINT_VALUE_SCOPE.
7966 (compile_object_run): Propagate out_value_addr and out_value_type.
7967 Pass OUT_VALUE_ADDR.
7968 * compile/compile.c: Include valprint.h.
7969 (compile_print_value, compile_print_command): New functions.
7970 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7971 (_initialize_compile): Update compile code help text. Install
7972 compile_print_command.
7973 * compile/compile.h (compile_print_value): New prototype.
7974 * defs.h (enum compile_i_scope_types): Add
7975 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7976
83d3415e
JK
79772015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7978
7979 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7980 Rely on its parameter count.
7981 (compile_object_load): Replace lookup_minimal_symbol_text by
7982 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7983 return value.
7984 * compile/compile-object-load.h (struct compile_module): Replace
7985 func_addr by func_sym.
7986 * compile/compile-object-run.c: Include block.h.
7987 (compile_object_run): Reset module variable after it is freed. Use
7988 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7989
3a9558c4
JK
79902015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7991
7992 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7993 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7994 (c_compute_program): Call generate_register_struct after typedefs.
7995 * compile/compile-loc2c.c (push, pushf_register_address)
7996 (pushf_register): Cast to GCC_UINTPTR.
7997 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7998 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7999 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8000 * compile/compile.c (_initialize_compile): Enable warnings for
8001 COMPILE_ARGS.
8002
5c65b58a
JK
80032015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8004
8005 * cli/cli-script.c (execute_control_command): Update
8006 eval_compile_command caller.
8007 * compile/compile-object-load.c (compile_object_load): Add parameters
8008 scope and scope_data. Set them.
8009 * compile/compile-object-load.h (struct compile_module): Add fields
8010 scope and scope_data.
8011 (compile_object_load): Add parameters scope and scope_data.
8012 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8013 scope and scope_data.
8014 (compile_object_run): Propagate the fields scope and scope_data.
8015 * compile/compile.c (compile_file_command, compile_code_command):
8016 Update eval_compile_command callers.
8017 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8018 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8019 * defs.h (struct command_line): Add field scope_data.
8020
1c88ceb1
JK
80212015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8022
8023 * printcmd.c (struct format_data): Move it to valprint.h.
8024 (print_command_parse_format, print_value): New functions from ...
8025 (print_command_1): ... here. Call them.
8026 * valprint.h (struct format_data): Move it here from printcmd.c.
8027 (print_command_parse_format, print_value): New declarations.
8028
0b738f27
JK
80292015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8030
8031 * compile/compile-object-load.c (compile_object_load): Add
8032 COMPILE_DEBUG message.
8033
aa715135
JG
80342015-05-15 Jerome Guitton <guitton@adacore.com>
8035
8036 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8037 index to get element instead of enum value.
8038 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8039 of index to compute length, but enum values to compute bounds.
8040 (ada_array_length): Use enum position of index instead of enum value.
8041 (pos_atr): Move position computation to...
8042 (ada_evaluate_subexp): Use enum values to compute bounds.
8043 * gdbtypes.c (discrete_position): ...this new function.
8044 * gdbtypes.h (discrete_position): New function declaration.
8045 * valprint.c (val_print_array_elements): Call discrete_position
8046 to handle array indexed by non-contiguous enumeration types.
8047
931e5bc3
JG
80482015-05-15 Jerome Guitton <guitton@adacore.com>
8049
8050 * ada-lang.c (find_parallel_type_by_descriptive_type):
8051 Go through typedefs during lookup.
8052 (to_fixed_array_type): Add support for non-bit packed arrays
8053 as variable-length fields.
8054
4e63d0ac
PA
80552015-05-15 Pedro Alves <palves@redhat.com>
8056 Simon Marchi <simon.marchi@ericsson.com>
8057
8058 * event-loop.c (gdb_notifier) <next_file_handler,
8059 next_poll_fds_index>: New fields.
8060 (get_next_file_handler_to_handle_and_advance): New function.
8061 (delete_file_handler): If deleting the next file handler to
8062 handle, advance to the next file handler.
8063 (gdb_wait_for_event): Bail early if no event fired. Poll file
8064 handlers in round-robin fashion.
8065
52e48b36
PA
80662015-05-15 Pedro Alves <palves@redhat.com>
8067
8068 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8069 'private' to 'priv'.
8070
2465e12e
PA
80712015-05-15 Pedro Alves <palves@redhat.com>
8072
8073 * nat/linux-nat.h: Include "target/waitstatus.h".
8074
13fa0398
YZ
80752015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8076
8077 * python/py-unwind.c (struct reg_info): Move out of ...
8078 (struct cached_frame_info): ... this scope.
8079 (pending_frame_object_type, unwind_info_object_type): Make extern.
8080
9cd4d857
JB
80812015-05-15 Joel Brobecker <brobecker@adacore.com>
8082
8083 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8084 accumSize is never negative.
8085
e3555239
PP
80862015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8087
8088 * tui/tui-command.c: Remove include of <ctype.h>.
8089 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8090
08a76f8a
MG
80912015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8092
8093 * dwarf2read.c (die_needs_namespace): Return 1 for
8094 DW_TAG_inlined_subroutine.
8095
bd49952b
JK
80962015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8097
8098 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8099 (regcache_cpy_no_passthrough): Make it static, add function comment.
8100 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8101 (regcache_cpy_no_passthrough): Remove declaration.
8102
46c03469
JK
81032015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8104
8105 * gdbthread.h (struct thread_control_state): Update comment for
8106 proceed_to_finish.
8107 * infcall.c (run_inferior_call): Update comment about
8108 proceed_to_finish.
8109 * infcmd.c (get_return_value): Update comment about stop_registers.
8110 (finish_forward): Update comment about proceed_to_finish.
8111 * infrun.c (stop_registers): Remove.
8112 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8113 * infrun.h (stop_registers): Remove.
8114
8a6c4031
JK
81152015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8116
8117 * infcall.c (struct dummy_frame_context_saver)
8118 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8119 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8120 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8121 New.
8122 (call_function_by_hand_dummy): Move discard_cleanups of
8123 inf_status_cleanup before dummy_frame_push. Call
8124 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8125 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8126 * infcall.h (struct dummy_frame_context_saver)
8127 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8128 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8129 New declarations.
8130 * infcmd.c: Include infcall.h.
8131 (get_return_value): Add parameter ctx_saver, use it instead of
8132 stop_registers.
8133 (print_return_value): Add parameter ctx_saver, pass it.
8134 (struct finish_command_continuation_args): Add field ctx_saver.
8135 (finish_command_continuation): Update print_return_value caller.
8136 (finish_command_continuation_free_arg): Free also ctx_saver.
8137 (finish_forward): Call dummy_frame_context_saver_setup.
8138 * inferior.h (struct dummy_frame_context_saver): New declaration.
8139 (get_return_value): Add parameter ctx_saver.
8140 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8141 get_return_value caller.
8142
10989690
JK
81432015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8144
8145 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8146 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8147 (remove_dummy_frame): Process dtor_list.
8148 (pop_dummy_frame): Process dtor_list.
8149 (register_dummy_frame_dtor): Maintain dtor_list.
8150 (find_dummy_frame_dtor): Handle dtor_list.
8151 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8152 Update comments.
8153
5e970501
JK
81542015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8155
8156 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8157 registers_valid.
8158 (compile_object_run): Update do_module_cleanup caller.
8159 * dummy-frame.c: Include infcall.h.
8160 (struct dummy_frame): Update dtor comment.
8161 (remove_dummy_frame): Call dtor.
8162 (pop_dummy_frame): Update dtor caller.
8163 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8164 registers_valid.
8165
1c4eb778
JB
81662015-05-13 Joel Brobecker <brobecker@adacore.com>
8167
8168 GDB 7.9.1 released.
8169
f5f85ab9
JB
81702015-05-13 Joel Brobecker <brobecker@adacore.com>
8171
8172 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8173 Xmethods now being able to specify a result type to that new
8174 sectioin.
8175
242cd84c
PP
81762015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8177
8178 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8179 first before resizing the window.
e3555239 8180 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
8181
81822015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
8183
8184 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8185 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8186 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8187 dummy_dtor parameter.
8188 * infcall.h: Include dummy-frame.h.
8189 (call_function_by_hand_dummy_dtor_ftype): Remove.
8190 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8191 parameter.
8192
ebfd00d2
PP
81932015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8194
8195 PR gdb/17820
8196 * top.c (history_size_setshow_var): Change type to signed.
8197 Initialize to -2. Update documentation.
8198 (set_readline_history_size): Define.
8199 (set_history_size_command): Use it. Remove logic for handling
8200 out-of-range sizes.
8201 (init_history): Use set_readline_history_size(). Test for a
8202 value of -2 instead of 0 when determining whether to set a
8203 default history size.
8204 (init_main): Decode the argument of the "size" command as a
8205 zuinteger_unlimited.
8206
83769d0b
DE
82072015-05-12 Doug Evans <dje@google.com>
8208
8209 * dwarf2read.c (struct file_entry): Tweak comments.
8210 (get_debug_line_section): Tweak comments.
8211
0d71eef5
DB
82122015-05-12 Don Breazeal <donb@codesourcery.com>
8213
8214 * NEWS: Announce fork support in the RSP and support
8215 for fork debugging in extended mode.
8216
cbb8991c
DB
82172015-05-12 Don Breazeal <donb@codesourcery.com>
8218
8219 * remote.c (remote_insert_fork_catchpoint): New function.
8220 (remote_remove_fork_catchpoint): New function.
8221 (remote_insert_vfork_catchpoint): New function.
8222 (remote_remove_vfork_catchpoint): New function.
8223 (pending_fork_parent_callback): New function.
8224 (remove_new_fork_child): New function.
8225 (remote_update_thread_list): Call remote_notif_get_pending_events
8226 and remove_new_fork_child.
8227 (extended_remote_kill): Kill fork child when killing the
8228 parent before follow_fork completes.
8229 (init_extended_remote_ops): Initialize target vector with
8230 new fork catchpoint functions.
8231
c269dbdb
DB
82322015-05-12 Don Breazeal <donb@codesourcery.com>
8233
8234 * remote.c (remove_vfork_event_p): New function.
8235 (remote_follow_fork): Add vfork event type to event checking.
8236 (remote_parse_stop_reply): New stop reasons "vfork" and
8237 "vforkdone" for RSP 'T' Stop Reply Packet.
8238
de0d863e
DB
82392015-05-12 Don Breazeal <donb@codesourcery.com>
8240
8241 * linux-nat.c (linux_nat_ptrace_options): New function.
8242 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8243 Call linux_nat_ptrace_options and use different argument to
8244 linux_enable_event_reporting.
8245 (_initialize_linux_nat): Delete call to
8246 linux_ptrace_set_additional_flags.
c8f6c93c 8247 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
8248 supported_ptrace_options.
8249 (additional_flags): Delete variable.
8250 (linux_check_ptrace_features): Use supported_ptrace_options.
8251 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8252 Likewise, and remove additional_flags check.
8253 (linux_enable_event_reporting): Change 'attached' argument to
8254 'options'. Use supported_ptrace_options.
c8f6c93c 8255 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
8256 supported_ptrace_options.
8257 (linux_ptrace_set_additional_flags): Delete function.
8258 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8259 Delete function prototype.
8260 * remote.c (remote_fork_event_p): New function.
8261 (remote_detach_pid): New function.
8262 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8263 if doing detach-on-fork.
8264 (remote_follow_fork): New function.
8265 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8266 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8267 (init_extended_remote_ops): Initialize to_follow_fork.
8268
89245bc0
DB
82692015-05-12 Don Breazeal <donb@codesourcery.com>
8270
8271 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8272 from static to extern.
8273 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8274 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8275 * PACKET_vfork_event_feature>: New enumeration constants.
8276 (remote_protocol_features): Add table entries for new packets.
8277 (remote_query_supported): Add new feature queries to qSupported
8278 packet.
8279
835205d0
GB
82802015-05-12 Gary Benson <gbenson@redhat.com>
8281
8282 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8283 for fake PIDs as well as real ones.
8284 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8285
4c082a81
SC
82862015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8287
8288 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8289 * python/py-value.c (valpy_reference_value): New function.
8290 (valpy_const_value): Likewise.
8291 (value_object_methods): Add new methods.
8292 * value.c (make_cv_value): New function.
8293 * value.h (make_cv_value): Declare.
8294
afa6c9ab
SL
82952015-05-08 Yao Qi <yao@codesourcery.com>
8296 Sandra Loosemore <sandra@codesourcery.com>
8297
8298 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8299 to 'lh->include_dirs' before accessing to it.
8300 (psymtab_include_file_name): Likewise.
8301 (dwarf_decode_lines_1): Likewise.
8302 (dwarf_decode_lines): Likewise.
8303 (file_file_name): Likewise.
8304
35d54293
SL
83052015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8306
8307 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8308 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8309 (nios2_linux_rt_sigreturn_init): Adjust base address of
8310 register save area.
8311
b73c49b7
SL
83122015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8313
8314 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8315 "trap 31" as the breakpoint instruction on all targets.
8316
dd9f02a0
JK
83172015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8318
8319 * infcmd.c (print_return_value): Remove unused declaration.
8320
6ad395a7
JB
83212015-05-08 Joel Brobecker <brobecker@adacore.com>
8322
8323 * dwarf2read.c (attr_to_dynamic_prop)
8324 <DW_AT_data_member_location>: Use read_type_die isntead of
8325 get_die_type.
8326
8344af1e
JB
83272015-05-08 Joel Brobecker <brobecker@adacore.com>
8328
8329 * ada-lang.c (ada_convert_actual): Add handling of formals
8330 passed inside an aligner type.
8331
80b0912b
JB
83322015-05-08 Joel Brobecker <brobecker@adacore.com>
8333
8334 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8335
df2eb078
SC
83362015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8337
8338 PR python/18291
8339 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8340 Print xmethod matcher status.
8341
2492f0d0
AA
83422015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8343
8344 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8345 register in the regcache when treating the PSWM register, and vice
8346 versa.
8347
1c56a84d
GB
83482015-05-07 Gary Benson <gbenson@redhat.com>
8349
8350 * linux-thread-db.c (struct thread_db_info)
8351 <td_ta_map_id2thr_p>: Remove field.
8352 (try_thread_db_load_1): Remove initialization for the above.
8353
74850322
GB
83542015-05-07 Gary Benson <gbenson@redhat.com>
8355
8356 * linux-thread-db.c (struct thread_db_info)
8357 <td_thr_validate_p>: Remove field.
8358 (try_thread_db_load_1): Remove initialization for the above.
8359
e26efa40
JK
83602015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8361
8362 * compile/compile-object-load.c (compile_object_load): Support
8363 mst_text_gnu_ifunc.
8364
851c9091
JK
83652015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8366
8367 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8368 const. Use new variables for the const compatibility.
8369 (eval_compile_command): Make the cmd_string parameter const.
8370 * compile/compile.h (eval_compile_command): Make the cmd_string
8371 parameter const.
8372
f218b647
JB
83732015-05-06 Joel Brobecker <brobecker@adacore.com>
8374
8375 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8376 comment.
8377 * top.c (deprecated_init_ui_hook): Delete.
8378 (gdb_init): Remove handling of deprecated_init_ui_hook.
8379 * interps.c (clear_interpreter_hooks): Remove handling of
8380 deprecated_init_ui_hook.
8381 * main.c (captured_main): Update comment.
8382
b30a0bc3
JB
83832015-05-06 Joel Brobecker <brobecker@adacore.com>
8384
8385 * solib.c (_initialize_solib): Add "info dll" alias creation.
8386 * windows-nat.c (set_windows_aliases): Delete.
8387 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8388 assignment.
8389 * NEWS: Add news entry about "info dll" now being available
8390 on all platforms.
8391
7c512744
JB
83922015-05-05 Joel Brobecker <brobecker@adacore.com>
8393
8394 * ada-lang.c (value_assign_to_component): Reformat and improve
8395 documentation. Remove all trailing spaces.
8396
0fa7fe50
JB
83972015-05-05 Joel Brobecker <brobecker@adacore.com>
8398
8399 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8400 Stop counting inlined frames as soon as an out-of-line function
8401 is found.
8402
3ea89b92
PMR
84032014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8404
8405 * dwarf2read.c (inherit_abstract_dies): Skip
8406 DW_TAG_GNU_call_site dies while inheriting children of an
8407 abstract DIE into a scope.
8408 (read_lexical_block_scope): Inherit abstract DIE's for
8409 lexical scopes.
8410
2478d075
JB
84112015-05-05 Joel Brobecker <brobecker@adacore.com>
8412
8413 * ada-valprint.c (val_print_packed_array_elements): Delete
8414 variable "len". Add a type-length check when comparing two
8415 consecutive elements of the array. Use the element's actual
8416 length in call to value_contents_eq.
8417 * ada-lang.c (ada_value_primitive_packed_val): Always return
8418 a value whose type has been resolved.
8419
fc958966
JB
84202015-05-05 Joel Brobecker <brobecker@adacore.com>
8421
8422 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8423 BIT_SIZE and LEN if the size of the resolved type is smaller
8424 than BIT_SIZE * HOST_CHAR_BIT.
8425
ca34b84f
JB
84262015-05-05 Joel Brobecker <brobecker@adacore.com>
8427
8428 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8429 correct address in call to value_at. Adjust call to
8430 value_address accordingly.
8431
62c67f3c
JB
84322015-05-05 Joel Brobecker <brobecker@adacore.com>
8433
8434 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8435 to print it.
8436
c3345124
JB
84372015-05-05 Joel Brobecker <brobecker@adacore.com>
8438
8439 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8440 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8441 pinfo->valaddr.
8442 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8443 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8444 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8445 Add handling of addr_stack->valaddr.
8446 (resolve_dynamic_type): Add "valaddr" parameter.
8447 Set pinfo.valaddr field.
8448 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8449 resolve_dynamic_type.
8450 (ada_discrete_type_low_bound): Likewise.
8451 * findvar.c (default_read_var_value): Likewise.
8452 * value.c (value_from_contents_and_address): Likewise.
8453
75ea5859
JB
84542015-05-05 Joel Brobecker <brobecker@adacore.com>
8455
8456 * gdbtypes.c (resolve_dynamic_array): Use
8457 create_array_type_with_stride instead of create_array_type.
8458
0952813b
DD
84592015-04-30 DJ Delorie <dj@redhat.com>
8460
8461 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8462 rl78_decode_opcode
8463
2ce1cdbf
DE
84642015-04-29 Doug Evans <dje@google.com>
8465
8466 PR python/18285
8467 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8468 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8469 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8470 * extension-priv.h (struct extension_language_ops)
8471 <get_xmethod_result_type>: New member.
8472 * extension.c (get_xmethod_result_type): New function.
8473 * extension.h (get_xmethod_result_type): Declare.
8474 * python/py-xmethods.c (get_result_type_method_name): New static
8475 global.
8476 (py_get_result_type_method_name): Ditto.
8477 (gdbpy_get_xmethod_result_type): New function.
8478 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8479 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8480 * python/python.c (python_extension_ops): Add
8481 gdbpy_get_xmethod_result_type.
8482 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8483 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8484 xmethods.
8485 (value_x_unop): Ditto.
8486 * value.c (result_type_of_xmethod): New function.
8487 * value.h (result_type_of_xmethod): Declare.
8488
998d2a3e
GB
84892015-04-29 Gary Benson <gbenson@redhat.com>
8490
8491 * solib.c (solib_find_1): Allow fd argument to be NULL.
8492 (exec_file_find): Update comment.
8493 (solib_find): Likewise.
8494 * exec.c (exec_file_locate_attach): Use NULL as fd
8495 argument to exec_file_find to avoid having to close
8496 the opened file.
8497 * infrun.c (follow_exec): Likewise.
8498
34f5f757
DE
84992015-04-28 Doug Evans <dje@google.com>
8500
8501 PR python/18299
8502 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8503 name or __name__ attributes. Handle gdb module as first argument.
8504
69b4374a
DE
85052015-04-28 Doug Evans <dje@google.com>
8506
8507 PR python/18089
8508 * python/py-prettyprint.c (print_children): Verify result of children
8509 iterator. Provide better error message.
8510 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8511 * python/python.c (gdbpy_print_python_errors_p): New function.
8512
5e7cf078
DE
85132015-04-28 Doug Evans <dje@google.com>
8514
8515 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8516
59fb7612
SS
85172015-04-28 Sasha Smundak <asmundak@google.com>
8518
8519 * NEWS: Mention gdb.Type.optimized_out method.
8520 * python/py-type.c (typy_optimized_out): New function.
8521
cea6e4f1
JB
85222015-04-28 John Baldwin <jhb@FreeBSD.org>
8523
8524 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8525
24b73f8e
PP
85262015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8527
8528 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8529 (initialize_utils): Move call of init_page_info() to ...
8530 * top.c (gdb_init): ... here.
8531
a88d0bb3
PP
85322015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8533
8534 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8535 (tui_sigwinch_handler): Still update our idea of
8536 the terminal's width and height even when TUI is not active.
8537
d6e5e7f7
PP
85382015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8539
8540 * utils.h (set_screen_width_and_height): Declare.
8541 * utils.c (set_screen_width_and_height): Define.
8542 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8543
ff862be4
GB
85442015-04-28 Gary Benson <gbenson@redhat.com>
8545
8546 * infrun.c (solist.h): New include.
8547 (follow_exec): Use exec_file_find to prefix execd_pathname
8548 with gdb_sysroot.
8549
2eb639cb
PP
85502015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8551
8552 * tui/tui-source.c (tui_set_source_content): Avoid calling
8553 strcpy() when offset is 0.
8554
97206799
PP
85552015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8556
8557 PR gdb/18155
8558 * tui/tui-data.c (tui_free_window): Don't free the locator
8559 window when passed an SRC_WIN or a DISASSEM_WIN.
8560
63ed8182
PP
85612015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8562
8563 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8564 (tui_win_content): Move declaration.
8565 (struct tui_gen_win_info): Give 'content' field the
8566 type tui_win_content.
8567 * tui/tui-data.c (init_content_element): Remove redundant and
8568 erroneous casts.
8569 (tui_add_content_elements): Remove erroneous cast.
8570 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8571 casts.
8572 (tui_get_begin_asm_address): Likewise.
8573 * tui/tui-regs.c (tui_show_registers): Likewise.
8574 (tui_show_register_group): Likewise.
8575 (tui_display_registers_from): Likewise.
8576 (tui_check_register_values): Likewise.
8577 * tui/tui-source.c (tui_set_source_content): Likewise.
8578 (tui_set_source_content_nil): Likewise.
8579 (tui_source_is_displayed): Likewise.
8580 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8581 (tui_set_locator_fullname): Likewise.
8582 (tui_set_locator_info): Likewise.
8583 (tui_show_frame_info): Likewise.
8584 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8585 (tui_show_source_line): Likewise.
8586 (tui_horizontal_source_scroll): Likewise.
8587 (tui_update_breakpoint_info): Likewise.
8588 (tui_set_exec_info_content): Likewise.
8589 (tui_show_exec_info_content): Likewise.
8590 (tui_alloc_source_buffer): Likewise.
8591 (tui_line_is_displayed): Likewise.
8592 (tui_addr_is_displayed): Likewise.
8593
d2b41ca0
JB
85942015-04-27 John Baldwin <jhb@FreeBSD.org>
8595
8596 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8597 event if PL_FLAG_EXEC is set.
8598 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8599 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8600 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8601 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8602 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8603
e58e05d6
JB
86042015-04-27 John Baldwin <jhb@FreeBSD.org>
8605
8606 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8607 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8608 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8609 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8610 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8611 [PT_LWPINFO] (fbsd_wait): New function.
8612 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8613 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8614 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8615 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8616 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8617 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8618 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8619 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8620 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8621 "fbsd_wait".
8622 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8623 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8624 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8625 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8626 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8627 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8628 Set "to_post_attach" to "fbsd_post_attach".
8629
8f60fe01
JB
86302015-04-27 John Baldwin <jhb@FreeBSD.org>
8631
8632 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8633 (fbsd_find_memory_regions): Mark static.
8634 (fbsd_nat_add_target): New function.
8635 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8636 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8637 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8638 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8639 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8640 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8641
5fbae7d1
GB
86422015-04-27 Gary Benson <gbenson@redhat.com>
8643
8644 * objfiles.c (allocate_objfile): Do not attempt to expand name
8645 if name is a "target:" filename.
8646 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8647 to load auto-load scripts for objfiles with "target:" filenames.
8648
417c80f9
AA
86492015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8650
8651 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8652 (enum s390_vector_abi_kind): New enum.
8653 (struct gdbarch_tdep)<vector_abi>: New field.
8654 (s390_effective_inner_type): Add parameter min_size. Stop
8655 unwrapping if the inner type is smaller than min_size.
8656 (s390_function_arg_float): Adjust call to
8657 s390_effective_inner_type.
8658 (s390_function_arg_vector): New function.
8659 (s390_function_arg_integer): Adjust comment.
8660 (struct s390_arg_state)<vr>: New field.
8661 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8662 arguments according to vector ABI when appropriate.
8663 (s390_push_dummy_call): Initialize the argument state's field
8664 'vr'. Adjust calls to s390_handle_arg.
8665 (s390_register_return_value): Handle vector return values.
8666 (s390_return_value): Apply the "register" return value convention
8667 to a vector when appropriate.
8668 (s390_gdbarch_init): Initialize tdep->vector_abi.
8669 * NEWS: Announce S390 vector ABI support.
8670
4e65a17e
AA
86712015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8672
8673 * s390-linux-tdep.c (s390_return_value_convention): Remove
8674 function. Inline its logic...
8675 (s390_return_value): ...here. Instead, move the handling of the
8676 "register" return value convention...
8677 (s390_register_return_value): ...here. New function.
8678
80f75320
AA
86792015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8680
8681 * s390-linux-tdep.c
8682 (is_float_singleton): Remove function. Move the "singleton" part
8683 of the logic...
8684 (s390_effective_inner_type): ...here. New function.
8685 (is_float_like): Remove function. Inline its logic...
8686 (s390_function_arg_float): ...here.
8687 (is_pointer_like, is_integer_like, is_struct_like): Remove
8688 functions. Inline their logic...
8689 (s390_function_arg_integer): ...here.
8690 (s390_function_arg_pass_by_reference): Remove function.
8691 (extend_simple_arg): Remove function.
8692 (alignment_of): Remove function.
8693 (struct s390_arg_state): New structure.
8694 (s390_handle_arg): New function.
8695 (s390_push_dummy_call): Move parameter placement logic to the new
8696 function s390_handle_arg. Call it for calculating the stack area
8697 sizes first, and again for actually writing the parameters.
8698
6dbc9c04
AA
86992015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8700
8701 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8702 false if the argument is zero.
8703
9e195661
PMR
87042015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8705
8706 * ada-lang.c (template_to_static_fixed_type): Return input type
8707 when it is already fixed. Cache the input type itself when not
8708 creating a static fixed copy. Make it explicit that we never
8709 molestate the input type.
8710 * gdbtypes.c (resolve_dynamic_struct): Reset the
8711 TYPE_TARGET_TYPE field for resolved copies.
8712
460efde1
JB
87132015-04-27 Joel Brobecker <brobecker@adacore.com>
8714
8715 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8716 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8717 (template_to_static_fixed_type): Call ada_check_typedef only
8718 when necessary.
8719
6faec16b
AB
87202015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8721
8722 * cli/cli-dump.c (srec_dump_command): Add internationalization
8723 mark ups.
8724 (ihex_dump_command): Likewise.
8725 (tekhex_dump_command): Likewise.
8726 (binary_dump_command): Likewise.
8727 (binary_append_command): Likewise.
8728
cf75d6c3
AB
87292015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8730
8731 * cli/cli-dump.c (verilog_cmdlist): New variable.
8732 (dump_verilog_memory): New function.
8733 (dump_verilog_value): New function.
8734 (verilog_dump_command): New function.
8735 (_initialize_cli_dump): Add new commands to support verilog dump
8736 format.
8737 * NEWS: Add entry for "dump verilog".
8738
8cd00c59
PMR
87392015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8740
8741 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8742 descriptive type when there is none.
8743
8900d71e
PP
87442015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8745
8746 * tui/tui-win.c (tui_async_resize_screen): Call
8747 rl_resize_terminal().
8748
f16eab5f
JT
87492015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8750
8751 * windows-nat.c (handle_output_debug_string): Don't change
8752 current_event.dwThreadId.
8753 (get_windows_debug_event): Use thread_id, rather than relying on
8754 current_event.dwThreadId being changed.
8755
68ffc902
JT
87562015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8757
8758 * windows-nat.c (windows_continue): Report an error if
8759 ContinueDebugEvent() fails.
8760
23942819
JT
87612015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8762
8763 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8764
e6ad66bd
JT
87652015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8766
8767 * windows-nat.c (get_windows_debug_event): Replace retval with
8768 thread_id throughout. Update stale comment.
8769
776704b9
JT
87702015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8771
8772 * windows-nat.c (get_windows_debug_event): Don't use ternary
8773 conditional operator.
8774
8aae4344
PM
87752015-04-21 Pierre Muller <muller@sourceware.org>
8776
8777 PR pascal/17815
8778 p-exp.y (yylex): Reorganize code to return the matched pattern
8779 for a field of this.
8780
819843c7
GB
87812015-04-21 Gary Benson <gbenson@redhat.com>
8782
8783 * common/fileio.h (fileio_to_host_openflags): New declaration.
8784 * common/fileio.c (fcntl.h): New include.
8785 (fileio_to_host_openflags): New function, factored out from...
8786 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8787 Single use updated.
8788
0bca7f99
KB
87892015-04-21 Kevin Buettner <kevinb@redhat.com>
8790
8791 * rl78-tdep.c (RL78_SP_ADDR): Define.
8792 (opc_reg_to_gdb_regnum): New static function.
8793 (rl78_analyze_prologue): Recognize instructions forming slightly
8794 more interesting prologues.
8795
e771e4be
PMR
87962015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8797
8798 Revert:
8799 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8800 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8801 TYPE_CODE_REF types so that they are not considered as dynamic
8802 depending on the referenced type.
8803 (resolve_dynamic_type_internal): Likewise.
8804
ee715b5a
PMR
88052015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8806
8807 Revert:
8808 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8809 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8810 "top_level" parameter.
8811 (resolve_dynamic_type_internal): Remove the unused "top_level"
8812 parameter. Update call to is_dynamic_type_internal.
8813 (is_dynamic_type): Update call to is_dynamic_type_internal.
8814 (resolve_dynamic_range): Update call to
8815 resolve_dynamic_type_internal.
8816 (resolve_dynamic_union): Likewise.
8817 (resolve_dynamic_struct): Likewise.
8818 (resolve_dynamic_type): Likewise.
8819
e31d7699
GKB
88202015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8821
8822 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8823 xmalloc.
8824
d214e5e7
TS
88252015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8826
110f9112
TS
8827 * reply_mig_hack.awk: Robustify parsing.
8828
d214e5e7
TS
8829 * reply_mig_hack.awk: Don't bother to declare an intermediate
8830 function pointer variable.
8831
8f61baf8
DE
88322015-04-17 Doug Evans <dje@google.com>
8833
8834 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8835 to "exec_displacement" to avoid confusion with inner use of the name.
8836
dbbf180a
YQ
88372015-04-17 Pedro Alves <palves@redhat.com>
8838
8839 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8840 if HW point of TYPE isn't supported.
8841
059790a0
YQ
88422015-04-17 Yao Qi <yao.qi@linaro.org>
8843 Pedro Alves <palves@redhat.com>
8844
8845 * target.h (target_can_use_hardware_watchpoint): Update comments.
8846 Remove trailing ";".
8847
1b6e6f5c
GB
88482015-04-17 Gary Benson <gbenson@redhat.com>
8849
8850 * remote.c (remote_add_inferior): New argument try_open_exec.
8851 If nonzero, attempt to open the inferior's executable file as
8852 the main executable if no main executable is open already.
8853 All callers updated.
8854 * NEWS: Mention that GDB now supports automatic location and
8855 retrieval of executable + files from remote targets.
8856
c78fa86a
GB
88572015-04-17 Gary Benson <gbenson@redhat.com>
8858
8859 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8860 * remote.c (PACKET_qXfer_exec_file): Likewise.
8861 (remote_protocol_features): Register the
8862 "qXfer:exec-file:read" feature.
8863 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8864 (remote_pid_to_exec_file): New function.
8865 (init_remote_ops): Initialize to_pid_to_exec_file.
8866 (_initialize_remote): Register new "set/show remote
8867 pid-to-exec-file-packet" command.
8868 * NEWS: Announce new qXfer:exec-file:read packet.
8869
e0d86d2c
GB
88702015-04-17 Gary Benson <gbenson@redhat.com>
8871
8872 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8873 New declaration.
8874 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8875 New function, factored out from...
8876 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8877
a9a5a3d1
GB
88782015-04-17 Gary Benson <gbenson@redhat.com>
8879
8880 * exec.c (solist.h): New include.
8881 (exec_file_locate_attach): Prefix absolute executable
8882 paths with gdb_sysroot if set.
8883 * NEWS: Mention that executable paths may be prepended
8884 with sysroot.
8885
af1900b0
GB
88862015-04-17 Gary Benson <gbenson@redhat.com>
8887
8888 * solist.h (exec_file_find): New declaration.
8889 * solib.c (solib_find_1): New function, factored out from...
8890 (solib_find): ...here.
8891 (exec_file_find): New function.
8892
a10de604
GB
88932015-04-17 Gary Benson <gbenson@redhat.com>
8894
8895 * gdbcore.h (exec_file_locate_attach): New declaration.
8896 * exec.c (exec_file_locate_attach): New function, factored
8897 out from...
8898 * infcmd.c (attach_command_post_wait): ...here.
8899
92209ddf
MF
89002015-04-17 Mike Frysinger <vapier@gentoo.org>
8901
8902 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8903
8550d3b3
YQ
89042015-04-16 Yao Qi <yao.qi@linaro.org>
8905
8906 * infrun.c (maybe_software_singlestep): Declare.
8907 (displaced_step_fixup): Call maybe_software_singlestep.
8908
30b3dd9d
DE
89092015-04-15 Doug Evans <dje@google.com>
8910
8911 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8912
61d96d7e
DE
89132015-04-15 Doug Evans <dje@google.com>
8914
8915 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8916
40d2f8d6
SM
89172015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8918
8919 * python/lib/gdb/command/unwinders.py: Add parentheses.
8920
6bbbba9b
YQ
89212015-04-15 Yao Qi <yao.qi@linaro.org>
8922
8923 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8924
2bb2dcab
YQ
89252015-04-15 Yao Qi <yao.qi@linaro.org>
8926
8927 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8928
41f071ef
YQ
89292015-04-15 Yao Qi <yao.qi@linaro.org>
8930
8931 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8932 dsc->insn_size instead of 4.
8933
326a5c7e
GB
89342015-04-14 Gary Benson <gbenson@redhat.com>
8935
8936 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8937 * minidebug.c (lzma_stat): Likewise.
8938 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8939 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8940
dd177e81
SS
89412015-04-13 Stan Shebs <stanshebs@google.com>
8942
8943 * MAINTAINERS: Update my email address.
8944
97de3545
JB
89452015-04-13 John Baldwin <jhb@FreeBSD.org>
8946
8947 * amd64-tdep.c (amd64_target_description): New function.
8948 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8949 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8950 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8951 x86 extended save area.
8952 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8953 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8954 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8955 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8956 "amd64fbsd_read_description".
8957 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8958 (amd64fbsd_supply_xstateregset): New function.
8959 (amd64fbsd_collect_xstateregset): New function.
8960 Add "amd64fbsd_xstateregset".
8961 (amd64fbsd_iterate_over_regset_sections): New function.
8962 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8963 "I386_FBSD_XSAVE_XCR0_OFFSET".
8964 Add "iterate_over_regset_sections" gdbarch method.
8965 Add "core_read_description" gdbarch method.
8966 * i386-tdep.c (i386_target_description): New function.
8967 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8968 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8969 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8970 x86 extended save area.
8971 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8972 * i386bsd-nat.h: Export i386bsd_xsave_len.
8973 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8974 (_initialize_i386fbsd_nat): Set "to_read_description" to
8975 "i386fbsd_read_description".
8976 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8977 (i386fbsd_core_read_description): New function.
8978 (i386fbsd_supply_xstateregset): New function.
8979 (i386fbsd_collect_xstateregset): New function.
8980 Add "i386fbsd_xstateregset".
8981 (i386fbsd_iterate_over_regset_sections): New function.
8982 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8983 "I386_FBSD_XSAVE_XCR0_OFFSET".
8984 Add "iterate_over_regset_sections" gdbarch method.
8985 Add "core_read_description" gdbarch method.
8986 * i386fbsd-tdep.h: New file.
8987
4f45d445
JK
89882015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8989
8990 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8991 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8992 conditional.
8993 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8994 and lb.
8995 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8996 va.
8997 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8998 conditional.
8999 * defs.h (xdb_commands): Remove declaration.
9000 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9001 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9002 * infcmd.c (run_no_args_command, go_command): Remove.
9003 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9004 * infrun.c (xdb_handle_command): Remove.
9005 (_initialize_infrun): Remove xdb_commands for lz and z.
9006 * main.c (xdb_commands): Remove variable.
9007 (captured_main): Remove "xdb" from long_options.
9008 (print_gdb_help): Remove --xdb from help.
9009 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9010 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9011 * stack.c (backtrace_full_command, args_plus_locals_info)
9012 (current_frame_command): Remove.
9013 (_initialize_stack): Remove xdb_commands for t, T and l.
9014 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9015 * thread.c (_initialize_thread): Remove xdb_commands condition.
9016 * tui/tui-layout.c (tui_toggle_layout_command)
9017 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9018 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9019 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9020 (tui_scroll_regs_backward_command): Remove.
9021 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9022 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9023 (_initialize_tui_win): Remove xdb_commands for U and w.
9024 * utils.c (pagination_on_command, pagination_off_command): Remove.
9025 (initialize_utils): Remove xdb_commands for am and sm.
9026
cb71640d
PA
90272015-04-10 Pedro Alves <palves@redhat.com>
9028
9029 * infrun.c (displaced_step_fixup): Switch to the event ptid
9030 earlier. If the thread stopped for a watchpoint and the
9031 target/arch has non-continuable watchpoints, cancel the displaced
9032 step.
9033 (resume): Don't start a displaced step if in-line step-over info
9034 is valid.
9035
8f572e5c
PA
90362015-04-10 Pedro Alves <palves@redhat.com>
9037
9038 * infrun.c (displaced_step_in_progress): New function.
9039 (do_target_resume): Advise target to report all signals if
9040 displaced stepping.
9041
8d707a12
PA
90422015-04-10 Pedro Alves <palves@redhat.com>
9043
9044 PR gdb/18216
9045 * infrun.c (process_event_stop_test): Don't assume a step-resume
9046 is set if tp->stepped_breakpoint is true.
9047
ef713951
YQ
90482015-04-10 Yao Qi <yao.qi@linaro.org>
9049
9050 * arm-tdep.c (install_alu_reg): Update comment.
9051 (thumb_copy_alu_reg): Remove local variable rn. Update
9052 debugging message. Use r2 instead of r1 in the modified
9053 instruction.
9054
906d60cf
PA
90552015-04-10 Pedro Alves <palves@redhat.com>
9056
9057 PR gdb/13858
9058 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9059 linux_displaced_step_location as gdbarch_displaced_step_location
9060 hook.
9061 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9062 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9063 * linux-tdep.c (linux_displaced_step_location): New function,
9064 based on ppc_linux_displaced_step_location.
9065 * linux-tdep.h (linux_displaced_step_location): New declaration.
9066 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9067 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9068 Delete.
9069 (ppc_linux_init_abi): Install linux_displaced_step_location as
9070 gdbarch_displaced_step_location hook, even without Cell/B.E..
9071 (_initialize_ppc_linux_tdep): Don't install
9072 ppc_linux_inferior_created as inferior_created observer.
9073 * s390-linux-tdep.c (s390_gdbarch_init): Install
9074 linux_displaced_step_location as gdbarch_displaced_step_location
9075 hook.
9076
7823a941
GB
90772015-04-09 Gary Benson <gbenson@redhat.com>
9078
9079 * common/common-remote-fileio.h: Rename to...
9080 * common/fileio.h: ...this. Update all references.
9081 (remote_fileio_to_fio_error): Rename to...
9082 (host_to_fileio_error): ...this.
9083 (remote_fileio_to_be): Rename to...
9084 (host_to_bigendian): ...this. Update all callers.
9085 (remote_fileio_to_fio_uint): Rename to...
9086 (host_to_fileio_uint): ...this. Update all callers.
9087 (remote_fileio_to_fio_time): Rename to...
9088 (host_to_fileio_time): ...this. Update all callers.
9089 (remote_fileio_to_fio_stat): Rename to...
9090 (host_to_fileio_stat): ...this.
9091 Update all references.
9092 * common/common-remote-fileio.c: Rename to...
9093 * common/fileio.c: ...this. Update all references.
9094 (remote_fileio_to_fio_error): Rename to...
9095 (host_to_fileio_error): ...this. Update all callers.
9096 (remote_fileio_mode_to_target): Rename to...
9097 (fileio_mode_pack): ...this. Update all callers.
9098 (remote_fileio_to_fio_mode): Rename to...
9099 (host_to_fileio_mode): ...this. Update all callers.
9100 (remote_fileio_to_fio_ulong): Rename to...
9101 (host_to_fileio_ulong): ...this. Update all callers.
9102 (remote_fileio_to_fio_stat): Rename to...
9103 (host_to_fileio_stat): ...this. Update all callers.
9104
f2983cc3
AW
91052015-04-09 Andy Wingo <wingo@igalia.com>
9106
9107 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9108 (frame_functions): Bind gdbscm_frame_read_register to
9109 frame-read-register.
9110 * guile/lib/gdb.scm (frame-read-register): Export.
9111
b88bb450
GB
91122015-04-09 Gary Benson <gbenson@redhat.com>
9113
9114 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9115 New declaration.
9116 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9117 New function, factored out the named functions below.
9118 * inf-child.c (gdb/fileio.h): Remove include.
9119 (common-remote-fileio.h): New include.
9120 (inf_child_errno_to_fileio_error): Remove function. Update
9121 all callers to use remote_fileio_to_fio_error.
9122 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9123
2f2680f3
AW
91242015-04-09 Andy Wingo <wingo@igalia.com>
9125
9126 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9127
5a2d4533
L
91282015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9129
9130 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9131 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9132 * configure: Regenerated.
9133
421693b0
PA
91342015-04-09 Pedro Alves <palves@redhat.com>
9135
9136 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9137 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9138 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9139 * gnulib/import/Makefile.am: Update.
9140 * gnulib/import/Makefile.in: Update.
9141 * gnulib/import/m4/gnulib-cache.m4: Update.
9142 * gnulib/import/m4/gnulib-comp.m4: Update.
9143 * gnulib/import/m4/strtok_r.m4: New file.
9144 * gnulib/import/strtok_r.c: New file.
9145
f543dc83
PA
91462015-04-09 Pedro Alves <palves@redhat.com>
9147
9148 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9149 "called too early to check prototype".
9150
6d62641c
SDJ
91512015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9152
9153 PR python/16699
9154 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9155 use a caching mechanism. Adjust comments and code to reflect
9156 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9157 (cmdpy_completer_handle_brkchars): Adjust call to
9158 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9159 (cmdpy_completer): Likewise.
9160
85558555
YQ
91612015-04-08 Yao Qi <yao.qi@linaro.org>
9162
9163 * spu-tdep.c (spu_gdbarch_init): Don't call
9164 set_gdbarch_cannot_step_breakpoint.
9165
d249a14a
SDJ
91662015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9167
9168 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9169
8a06aea7
PA
91702015-04-07 Pedro Alves <palves@redhat.com>
9171
9172 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9173 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9174 (delete_exited_threads): New declaration.
9175 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9176 * linux-nat.c (linux_nat_update_thread_list): New function.
9177 (linux_nat_add_target): Install it.
9178 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9179 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9180 (delete_exited_threads): New function.
9181
d9b67d9f
PA
91822015-04-07 Pedro Alves <pedro@codesourcery.com>
9183
9184 * infrun.c (resume) <displaced stepping debug output>: Get the
9185 leader thread's regcache, not resume_ptid's.
9186
2c26b84f
DE
91872015-04-06 Doug Evans <xdje42@gmail.com>
9188
9189 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9190 VAR_DOMAIN.
9191 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9192 Include symbol domain in debugging output.
9193
7a85168d
PA
91942015-04-06 Pedro Alves <palves@redhat.com>
9195 Bernd Edlinger <bernd.edlinger@hotmail.de>
9196
9197 * configure.ac: Remove the mingw32-specific stub-termcap.o
9198 fallback, and instead fallback to the stub termcap on all hosts.
9199 * configure: Regenerate.
9200 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9201 symbols.
9202
25755e2b
PMR
92032015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9204
9205 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9206 "top_level" parameter.
9207 (resolve_dynamic_type_internal): Remove the unused "top_level"
9208 parameter. Update call to is_dynamic_type_internal.
9209 (is_dynamic_type): Update call to is_dynamic_type_internal.
9210 (resolve_dynamic_range): Update call to
9211 resolve_dynamic_type_internal.
9212 (resolve_dynamic_union): Likewise.
9213 (resolve_dynamic_struct): Likewise.
9214 (resolve_dynamic_type): Likewise.
9215
961f4160
PMR
92162015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9217
9218 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9219 TYPE_CODE_REF types so that they are not considered as dynamic
9220 depending on the referenced type.
9221 (resolve_dynamic_type_internal): Likewise.
9222
39f3de7c
L
92232015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9224
9225 * Makefile.in (top_srcdir): New.
9226 * configure: Regenerated.
9227
599bd15c
GB
92282015-04-02 Gary Benson <gbenson@redhat.com>
9229
9230 * NEWS: Announce the new default sysroot of "target:".
9231
fed040c6
GB
92322015-04-02 Gary Benson <gbenson@redhat.com>
9233
9234 * main.c (captured_main): Set gdb_sysroot to "target:"
9235 if not otherwise set.
9236
64c0b5de
GB
92372015-04-02 Gary Benson <gbenson@redhat.com>
9238
9239 * exec.c (exec_file_attach): Support "target:" filenames.
9240
b57fbfba
GB
92412015-04-02 Gary Benson <gbenson@redhat.com>
9242
9243 * solib.c (solib_find): Strip "target:" prefix from sysroot
9244 if accessing local files.
9245
97a41605
GB
92462015-04-02 Gary Benson <gbenson@redhat.com>
9247
9248 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9249 checks and error messages.
9250
2938e6cf
GB
92512015-04-02 Gary Benson <gbenson@redhat.com>
9252
9253 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9254 (remote_filename_p): Remove declaration.
9255 (remote_bfd_open): Likewise.
9256 * remote.c (remote_bfd_iovec_open): Remove function.
9257 (remote_bfd_iovec_close): Likewise.
9258 (remote_bfd_iovec_pread): Likewise.
9259 (remote_bfd_iovec_stat): Likewise.
9260 (remote_filename_p): Likewise.
9261 (remote_bfd_open): Likewise.
9262 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9263 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9264 (gdb_bfd_open_maybe_remote): Remove function.
9265 (symfile_bfd_open): Replace remote filename check with
9266 target filename check.
9267 (reread_symbols): Use gdb_bfd_open.
9268 * build-id.c (gdbcore.h): New include.
9269 (build_id_to_debug_bfd): Use gdb_bfd_open.
9270 * infcmd.c (attach_command_post_wait): Remove remote filename
9271 check.
9272 * solib.c (solib_find): Replace remote-specific handling with
9273 target-specific handling. Update comments where necessary.
9274 (solib_bfd_open): Replace remote-specific handling with
9275 target-specific handling.
9276 (gdb_sysroot_changed): New function.
9277 (_initialize_solib): Call the above when gdb_sysroot changes.
9278 * windows-tdep.c (gdbcore.h): New include.
9279 (windows_xfer_shared_library): Use gdb_bfd_open.
9280
f08e97fe
GB
92812015-04-02 Gary Benson <gbenson@redhat.com>
9282
9283 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9284 (is_target_filename): New declaration.
9285 (gdb_bfd_has_target_filename): Likewise.
9286 (gdb_bfd_open): Update documentation comment.
9287 * gdb_bfd.c (target.h): New include.
9288 (gdb/fileio.h): Likewise.
9289 (is_target_filename): New function.
9290 (gdb_bfd_has_target_filename): Likewise.
9291 (fileio_errno_to_host): Likewise.
9292 (gdb_bfd_iovec_fileio_open): Likewise.
9293 (gdb_bfd_iovec_fileio_pread): Likewise.
9294 (gdb_bfd_iovec_fileio_close): Likewise.
9295 (gdb_bfd_iovec_fileio_fstat): Likewise.
9296 (gdb_bfd_open): Use target fileio to access paths prefixed
9297 with "target:" where necessary.
9298
4bd7dc42
GB
92992015-04-02 Gary Benson <gbenson@redhat.com>
9300
9301 * target.h (struct target_ops) <to_filesystem_is_local>:
9302 New field.
9303 (target_filesystem_is_local): New macro.
9304 * target-delegates.c: Regenerate.
9305 * remote.c (remote_filesystem_is_local): New function.
9306 (init_remote_ops): Initialize to_filesystem_is_local.
9307
9b15c1f0
GB
93082015-04-02 Gary Benson <gbenson@redhat.com>
9309
9310 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9311 (target_fileio_fstat): New declaration.
9312 * target.c (target_fileio_fstat): New function.
9313 * inf-child.c (inf_child_fileio_fstat): Likewise.
9314 (inf_child_target): Initialize to_fileio_fstat.
9315 * remote.c (init_remote_ops): Likewise.
9316
d11916aa
SS
93172015-04-01 Sasha Smundak <asmundak@google.com>
9318
9319 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9320 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9321 (py-unwind.o): New recipe.
9322 * NEWS: mention Python frame unwinding.
9323 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9324 gdb/unwinder.py and gdb/command/unwinder.py
9325 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9326 list.
9327 (execute_unwinders): New function.
9328 * python/lib/gdb/command/unwinders.py: New file.
9329 * python/lib/gdb/unwinder.py: New file.
9330 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9331 (objfpy_dealloc): Decrement frame_unwinders reference count.
9332 (objfpy_initialize): Create frame_unwinders list.
9333 (objfpy_get_frame_unwinders): New function.
9334 (objfpy_set_frame_unwinders): Ditto.
9335 (objfile_getset): Add frame_unwinders attribute to Objfile.
9336 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9337 (pspy_dealloc): Decrement frame_unwinders reference count.
9338 (pspy_initialize): Create frame_unwinders list.
9339 (pspy_get_frame_unwinders): New function.
9340 (pspy_set_frame_unwinders): Ditto.
9341 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9342 * python/py-unwind.c: New file.
9343 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9344 (objpy_get_frame_unwinders): New prototype.
9345 (gdbpy_initialize_unwind): New prototype.
9346 * python/python.c (gdbpy_apply_type_printers): Call
9347 gdbpy_initialize_unwind.
9348
6b403daa
PA
93492015-04-01 Pedro Alves <palves@redhat.com>
9350
9351 * infrun.c (resume): Check currently_stepping after clearing
9352 stepped_breakpoint, not before.
9353
1176ecec
PA
93542015-04-01 Pedro Alves <palves@redhat.com>
9355
9356 * infrun.c (print_target_wait_results): Print all the ptid
9357 elements.
9358
de1fe8c8
PA
93592015-04-01 Pedro Alves <palves@redhat.com>
9360
9361 * infrun.c (keep_going): Also discard cleanups if inserting
9362 breakpoints fails.
9363
e6f5c25b
PA
93642015-04-01 Pedro Alves <palves@redhat.com>
9365
9366 * infrun.c (wait_for_inferior): Install the
9367 finish_thread_state_cleanup cleanup across the whole function, not
9368 just around handle_inferior_event.
9369
1ac806b8
PA
93702015-04-01 Pedro Alves <palves@redhat.com>
9371
9372 * infrun.c (resume) <step past permanent breakpoint>: Use
9373 do_target_resume.
9374
2ee52aa4
PA
93752015-04-01 Pedro Alves <palves@redhat.com>
9376
9377 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9378
5445da1b
PMR
93792015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9380
9381 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9382
4eec2deb
PA
93832015-04-01 Pedro Alves <palves@redhat.com>
9384
9385 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9386 list if it was marked exited.
9387
afa59b79
L
93882015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9389
9390 * configure: Regenerated.
9391
df8411da
SDJ
93922015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9393 Jan Kratochvil <jan.kratochvil@redhat.com>
9394 Oleg Nesterov <oleg@redhat.com>
9395
9396 PR corefiles/16092
9397 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9398 New enum identifying the various options of the coredump_filter
9399 file.
9400 (struct smaps_vmflags): New struct.
9401 (use_coredump_filter): New variable.
9402 (decode_vmflags): New function.
9403 (mapping_is_anonymous_p): Likewise.
9404 (dump_mapping_p): Likewise.
9405 (linux_find_memory_regions_full): New variables
9406 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9407 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9408 parsing of its information. Implement memory mapping filtering
9409 based on its contents.
9410 (show_use_coredump_filter): New function.
9411 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9412 * NEWS: Mention the possibility of using the
9413 '/proc/PID/coredump_filter' file when generating a corefile.
9414 Mention new command 'set use-coredump-filter'.
9415
416f679e
SDJ
94162015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9417
9418 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9419 read_memory_unsigned_integer.
9420
711a72d3
L
94212015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9422
9423 * Makefile.in (ZLIB): New.
9424 (ZLIBINC): Likewise.
9425 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9426 (CLIBS): Add $(ZLIB).
9427 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9428 Add -lz to LIBS.
9429 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9430 * top.c (print_gdb_configuration): Remove --with-zlib and
9431 --without-zlib.
9432 * config.in: Regenerated.
9433 * configure: Likewise.
9434
d33279b3
AT
94352015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9436
9437 * NEWS: Mention info os cpus support.
9438 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9439 (struct osdata_type): Add cpus entry, reorder the entries in
9440 alphabetical order.
9441
71b30f27
MK
94422015-03-31 Matthias Klose <doko@ubuntu.com>
9443
9444 * compile/compile.c (compile_to_object): Allow triplets with or
9445 without vendor set.
9446
13ce9222
DE
94472015-03-30 Doug Evans <dje@google.com>
9448
9449 PR c++/18141
9450 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9451 klass in VAR_DOMAIN.
9452
20f796c9
GB
94532015-03-30 Gary Benson <gbenson@redhat.com>
9454
9455 * remote.c (remote_mourn_1): Remove function. Update all callers
9456 to use remote_mourn.
9457 (extended_remote_mourn_1): Remove function. Update all callers
9458 to use extended_remote_mourn.
9459 (extended_remote_attach_1): Remove function. Update all callers
9460 to use extended_remote_attach.
9461
49d45b20
JB
94622015-03-28 James Bowman <james.bowman@ftdichip.com>
9463
9464 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9465 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9466 (ALLDEPFILES): Add ft32-tdep.c.
9467 * configure.tgt: Add FT32 entry.
9468 * ft32-tdep.c: New file, FT32 target-dependent code.
9469 * ft32-tdep.h: New file, FT32 target-dependent code.
9470
1c4ff080
JK
94712015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9472
9473 Revert:
9474 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9475 Code cleanup.
9476 * printcmd.c (print_command_1): Move expr variable scope.
9477
79498702
JB
94782015-03-27 Joel Brobecker <brobecker@adacore.com>
9479
9480 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9481
ce9c0ca1
AK
94822015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9483
9484 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9485 sections.
9486
429e1e81
JB
94872015-03-26 Joel Brobecker <brobecker@adacore.com>
9488
9489 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9490 exception raised while parsing the probe arguments.
9491 Force parsing to be done using the C language parser.
9492 * expression.h (parse_expression_with_language): Declare.
9493 * parse.c (parse_expression_with_language): New function.
9494
4593441b
JT
94952015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9496
9497 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9498
ff908ebf
AW
94992015-03-26 Andy Wingo <wingo@igalia.com>
9500
9501 PR symtab/18148
9502 * dwarf2read.c (struct partial_die_info): Add has_const_value
9503 member.
9504 (add_partial_symbol): Don't punt on symbols that have const_value
9505 attributes.
9506 (read_partial_die): Detect DW_AT_const_value.
9507
f30d5c78
JK
95082015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9509
9510 Code cleanup.
9511 * printcmd.c (print_command_1): Move expr variable scope.
9512
8d89f51a
JK
95132015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9514
9515 Code cleanup.
9516 * printcmd.c (validate_format): Make the parameter cmdname const.
9517
0b736949
DB
95182015-03-26 Don Breazeal <donb@codesourcery.com>
9519
9520 * remote.c (_initialize_remote): Update comment.
9521
20d35291
PA
95222015-03-26 Pedro Alves <palves@redhat.com>
9523 Jon TURNEY <jon.turney@dronecode.org.uk>
9524
9525 * coffread.c (coff_symfile_read): When constructing the name of an
9526 import stub symbol from import symbol for amd64, only skip the
9527 char after _imp_ if the target is underscored (like i386) and the
9528 char is indeed the target's leading char.
9529
6a3753b3
PA
95302015-03-25 Pedro Alves <palves@redhat.com>
9531
9532 * target.h <to_async>: Replace 'callback' and 'context' parameters
9533 with boolean 'enable' parameter.
9534 (target_async): Replace CALLBACK and CONTEXT parameters with
9535 boolean ENABLE parameter.
9536 * inf-loop.c (inferior_event_handler): Adjust.
9537 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9538 (linux_nat_resume): Adjust.
9539 (async_client_callback, async_client_context): Delete.
9540 (handle_target_event): Call inferior_event_handler directly.
9541 (linux_nat_async): Replace 'callback' and 'context' parameters
9542 with boolean 'enable' parameter. Adjust. Remove references to
9543 async_client_callback and async_client_context.
9544 (linux_nat_close): Adjust.
9545 * record-btrace.c (record_btrace_async): Replace 'callback' and
9546 'context' parameters with boolean 'enable' parameter. Adjust.
9547 (record_btrace_resume): Adjust.
9548 * record-full.c (record_full_async): Replace 'callback' and
9549 'context' parameters with boolean 'enable' parameter. Adjust.
9550 (record_full_resume, record_full_core_resume): Adjust.
9551 * remote.c (struct remote_state) <async_client_callback,
9552 async_client_context>: Delete fields.
9553 (remote_start_remote, extended_remote_attach_1, remote_resume)
9554 (extended_remote_create_inferior): Adjust.
9555 (remote_async_serial_handler): Call inferior_event_handler
9556 directly.
9557 (remote_async): Replace 'callback' and 'context' parameters with
9558 boolean 'enable' parameter. Adjust.
9559 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9560 Adjust.
9561 * target-delegates.c: Regenerate.
9562
1c4b552b
GB
95632015-03-25 Gary Benson <gbenson@redhat.com>
9564 Pedro Alves <palves@redhat.com>
9565
9566 * target.c (fileio_ft_t): New typedef, define object vector.
9567 (fileio_fhandles): New static variable.
9568 (is_closed_fileio_fh): New macro.
9569 (lowest_closed_fd): New static variable.
9570 (acquire_fileio_fd): New function.
9571 (release_fileio_fd): Likewise.
9572 (fileio_fd_to_fh): New macro.
9573 (target_fileio_open): Wrap the file descriptor on success.
9574 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9575 (target_fileio_pread): Likewise.
9576 (target_fileio_close): Likewise.
9577
a25d8bf9
PA
95782015-03-24 Pedro Alves <palves@redhat.com>
9579
9580 * thread.c (thread_apply_all_command): Take exited threads into
9581 account.
9582
44a1ee51
PA
95832015-03-24 Pedro Alves <palves@redhat.com>
9584
9585 * infrun.c (resume, proceed): Mention
9586 switch_back_to_stepped_thread, not switch_back_to_stepping.
9587
f3263aa4
PA
95882015-03-24 Pedro Alves <palves@redhat.com>
9589
9590 * infrun.c (user_visible_resume_ptid): Rewrite going from
9591 most-locked to unlocked instead of the opposite. Move comment ...
9592 * infrun.h (user_visible_resume_ptid): ... here.
9593
2bf6fb9d
PA
95942015-03-24 Pedro Alves <palves@redhat.com>
9595
9596 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9597 to resume the event lwp. Use the lwp's ptid instead of the passed
9598 in (maybe wildcard) ptid.
9599 (stop_wait_callback): Tweak debug log output.
9600 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9601 TRAP_TRACE.
9602 (linux_nat_filter_event): In debug output, distinguish a
9603 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9604 before trying to resume the lwp.
9605
283a9958
JB
96062015-03-24 Joel Brobecker <brobecker@adacore.com>
9607
9608 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9609 pointer indirection.
9610 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9611 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9612
93a8e227
JB
96132015-03-24 Joel Brobecker <brobecker@adacore.com>
9614
9615 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9616 Renames DYN_ATTR_DATA_LOCATION.
9617 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9618 DYN_ATTR_DATA_LOCATION.
9619 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9620 instead of DYN_ATTR_DATA_LOCATION.
9621
64ce06e4
PA
96222015-03-24 Pedro Alves <palves@redhat.com>
9623
9624 * breakpoint.c (until_break_command): Adjust call to proceed.
9625 * gdbthread.h (struct thread_control_state) <stepping_command>:
9626 New field.
9627 * infcall.c (run_inferior_call): Adjust call to proceed.
9628 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9629 Adjust calls to proceed.
9630 (set_step_frame): Set the current thread's step_start_function
9631 here.
9632 (step_once): Adjust calls to proceed.
9633 (jump_command, signal_command, until_next_command)
9634 (finish_backward, finish_forward, proceed_after_attach_callback)
9635 (attach_command_post_wait): Adjust calls to proceed.
9636 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9637 (do_target_resume): New function, factored out from ...
9638 (resume): ... here. Remove 'step' parameter. Instead, check
9639 currently_stepping to determine whether the thread should be
9640 single-stepped.
9641 (proceed): Remove 'step' parameter and don't set the thread's
9642 step_start_function here. Adjust call to 'resume'.
9643 (handle_inferior_event): Adjust calls to 'resume'.
9644 (switch_back_to_stepped_thread): Use do_target_resume instead of
9645 'resume'.
9646 (keep_going): Adjust calls to 'resume'.
9647 * infrun.h (proceed): Remove 'step' parameter.
9648 (resume): Likewise.
9649 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9650 'resume'.
9651 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9652
856e7dd6
PA
96532015-03-24 Pedro Alves <palves@redhat.com>
9654
9655 * gdbthread.h (struct thread_control_state) <stepping_command>:
9656 New field.
9657 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9658 the thread's stepping_command field.
9659 * infrun.c (resume): Check the thread's stepping_command flag to
9660 determine which threads should be resumed. Rename 'entry_step'
9661 local to user_step.
9662 (clear_proceed_status_thread): Clear 'stepping_command'.
9663 (schedlock_applies): Change parameter type to struct thread_info
9664 pointer. Adjust.
9665 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9666 (switch_back_to_stepped_thread): Adjust calls to
9667 'schedlock_applies'.
9668 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9669
885eeb5b
PA
96702015-03-24 Pedro Alves <palves@redhat.com>
9671
9672 * infrun.c (step_start_function): Delete and ...
9673 * gdbthread.h (struct thread_control_state) <step_start_function>:
9674 ... now a field here.
9675 * infrun.c (clear_proceed_status_thread): Clear the thread's
9676 step_start_function.
9677 (proceed, process_event_stop_test, print_stop_event): Adjust.
9678
3333f03a
PA
96792015-03-24 Pedro Alves <palves@redhat.com>
9680
9681 * infrun.c (proceed): No longer handle negative step.
9682
369f6daa
GB
96832015-03-24 Gary Benson <gbenson@redhat.com>
9684
9685 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9686 (x86_linux_prepare_to_resume): Likewise.
9687 * x86-linux-nat.c (x86_linux_new_thread):
9688 Moved to nat/x86-linux.c.
9689 (x86_linux_prepare_to_resume): Likewise.
9690 * nat/x86-linux.c (x86_linux_new_thread): New function.
9691 (x86_linux_prepare_to_resume): Likewise.
9692
8e5d4070
GB
96932015-03-24 Gary Benson <gbenson@redhat.com>
9694
9695 * nat/x86-linux-dregs.h: New file.
9696 * nat/x86-linux-dregs.c: Likewise.
9697 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9698 (x86-linux-dregs.o): New rule.
9699 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9700 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9701 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9702 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9703 (x86_linux_dr_get): Likewise.
9704 (x86_linux_dr_set): Likewise.
9705 (x86_linux_dr_get_addr): Likewise.
9706 (x86_linux_dr_get_control): Likewise.
9707 (x86_linux_dr_get_status): Likewise.
9708 (update_debug_registers_callback): Likewise.
9709 (x86_linux_dr_set_control): Likewise.
9710 (x86_linux_dr_set_addr): Likewise.
9711 (x86_linux_update_debug_registers): Likewise.
9712
2b95d440
GB
97132015-03-24 Gary Benson <gbenson@redhat.com>
9714
9715 * x86-linux-nat.c (x86_linux_update_debug_registers):
9716 New function, factored out from...
9717 (x86_linux_prepare_to_resume): ...this.
9718
14b0bc68
GB
97192015-03-24 Gary Benson <gbenson@redhat.com>
9720
9721 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9722 (x86_linux_dr_set): Likewise.
9723 (x86_linux_dr_get_addr): Likewise.
9724 (x86_linux_dr_get_control): Likewise.
9725 (x86_linux_dr_get_status): Likewise.
9726 (update_debug_registers_callback): Likewise.
9727 (x86_linux_dr_set_control): Likewise.
9728 (x86_linux_dr_set_addr): Likewise.
9729 (x86_linux_prepare_to_resume): Likewise.
9730 (x86_linux_new_thread): Likewise.
9731
5dfe6ca8
GB
97322015-03-24 Gary Benson <gbenson@redhat.com>
9733
9734 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9735 (x86_linux_new_thread): Rename argument.
9736
4b134ca1
GB
97372015-03-24 Gary Benson <gbenson@redhat.com>
9738
9739 * nat/x86-linux.h: New file.
9740 * nat/x86-linux.c: Likewise.
9741 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9742 (x86-linux.o): New rule.
9743 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9744 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9745 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9746 (lwp_set_arch_private_info): New declaration.
9747 (lwp_arch_private_info): Likewise.
9748 * linux-nat.c (lwp_set_arch_private_info): New function.
9749 (lwp_arch_private_info): Likewise.
9750 * x86-linux-nat.c: Include nat/x86-linux.h.
9751 (arch_lwp_info): Removed structure.
9752 (update_debug_registers_callback):
9753 Use lwp_set_debug_registers_changed.
9754 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9755 and lwp_set_debug_registers_changed.
9756 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9757
cff068da
GB
97582015-03-24 Gary Benson <gbenson@redhat.com>
9759
9760 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9761 (lwp_is_stopped): Likewise.
9762 (lwp_stop_reason): Likewise.
9763 * linux-nat.c (ptid_of_lwp): New function.
9764 (lwp_is_stopped): Likewise.
9765 (lwp_is_stopped_by_watchpoint): Likewise.
9766 * x86-linux-nat.c (update_debug_registers_callback):
9767 Use lwp_is_stopped.
9768 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9769 lwp_stop_reason.
9770
b2f7c7e8
GB
97712015-03-24 Gary Benson <gbenson@redhat.com>
9772
9773 * linux-nat.h (linux_stop_lwp): Move declaration to...
9774 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9775
6d4ee8c6
GB
97762015-03-24 Gary Benson <gbenson@redhat.com>
9777
9778 * linux-nat.h: Include nat/linux-nat.h.
9779 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9780 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9781 (iterate_over_lwps_ftype): New typedef.
9782 (iterate_over_lwps): New declaration.
9783 * linux-nat.h (iterate_over_lwps): Update comment. Use
9784 iterate_over_lwps_ftype. Update callback return value check.
9785
70a0bb6b
GB
97862015-03-24 Gary Benson <gbenson@redhat.com>
9787
9788 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9789 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9790
7b669087
GB
97912015-03-24 Gary Benson <gbenson@redhat.com>
9792
9793 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9794 * linux-nat.c (current_lwp_ptid): New function.
9795 * x86-linux-nat.c: Include nat/linux-nat.h.
9796 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9797 (x86_linux_dr_get_control): Likewise.
9798 (x86_linux_dr_get_status): Likewise.
9799 (x86_linux_dr_set_control): Likewise.
9800 (x86_linux_dr_set_addr): Likewise.
9801
15630549
AT
98022015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9803
9804 PR breakpoints/16466
9805 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9806
8a4506c0
JB
98072015-03-23 Joel Brobecker <brobecker@adacore.com>
9808
9809 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9810 * ser-unix.c (hardwire_setparity): Likewise.
9811
236af5e3
YG
98122015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9813
9814 * NEWS: Mention set/show serial parity command.
9815 * monitor.c (monitor_open): Call serial_setparity.
9816 * remote.c (remote_open_1): Likewise.
9817 * ser-base.c (ser_base_serparity): New function.
9818 * ser-base.h (ser_base_setparity): Add declaration.
9819 * ser-go32.c (dos_ops): Set "setparity" field.
9820 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9821 state.Parity.
9822 (ser_windows_setparity): New function.
9823 (hardwire_ops): Add ser_windows_setparity.
9824 (tty_ops): Add NULL for setparity field.
9825 (pipe_ops): Add ser_base_setparity.
9826 (tcp_ops): Likewise.
9827 * ser-pipe.c (pipe_ops): Likewise.
9828 * ser-tcp.c (tcp_ops): Likewise.
9829 * ser-unix.c (hardwire_setparity): Add declaration.
9830 (hardwire_raw): Don't reset PARENB flag.
9831 (hardwire_setparity): New function.
9832 (hardwire_ops): Add hardwire_setparity.
9833 * serial.c (serial_setparity): New function.
9834 (serial_parity): New global.
9835 (parity_none, parity_odd, parity_even, parity_enums, parity):
9836 New static globals.
9837 (set_parity): New function.
9838 (_initialize_serial): Add set/show serial parity commands.
9839 * serial.h (GDBPARITY_NONE): Define.
9840 (GDBPARITY_ODD): Define.
9841 (GDBPARITY_EVEN): Define.
9842 (serial_setparity) Add declaration.
9843 (struct serial_ops): Add setparity field.
9844 * target.h (serial_parity): Add declaration.
9845
32b40af9
KS
98462015-03-23 Keith Seitz <keiths@redhat.com>
9847
9848 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9849
693dca06
KS
98502015-03-23 Keith Seitz <keiths@redhat.com>
9851
9852 * breakpoint.c (parse_breakpoint_sals): Use
9853 linespec_lexer_lex_keyword to ascertain if the user specified
9854 a NULL location.
9855 * linespec.c [IF_KEYWORD_INDEX]: Define.
9856 (linespec_lexer_lex_keyword): Export.
9857 (struct ls_parser) <keyword_ok>: Remove.
9858 A keyword is only a keyword if not followed by another keyword.
9859 (linespec_lexer_lex_one): Remove keyword_ok handling.
9860 Add comment explaining why the parsing stream is not advanced
9861 when a keyword is seen.
9862 (parse_linespec): Remove parser->keyword_ok.
9863 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9864
7e993ebf
KS
98652015-03-23 Keith Seitz <keiths@redhat.com>
9866
9867 PR gdb/18021
9868 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9869 if we find a static method with DW_AT_vtable_elem_location.
9870
b1a0f704
EZ
98712015-03-21 Eli Zaretskii <eliz@gnu.org>
9872
9873 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9874 before the second loop, to avoid undefined behavior. Reported by
9875 Anton Blanchard <anton@samba.org>.
9876
d9823cbb
KB
98772015-03-20 Keven Boell <keven.boell@intel.com>
9878
9879 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9880 data_location usage to linked list.
9881 (resolve_dynamic_type_internal): Adapt data_location to
9882 linked list.
9883 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9884 (copy_type_recursive, copy_type): Add copy of linked list.
9885 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9886 (struct dynamic_prop_list): New struct.
9887 * dwarf2read.c (set_die_type): Set data_location data.
9888
2e7bf1d7
PA
98892015-03-20 Pedro Alves <palves@redhat.com>
9890
9891 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9892 inner block and make it const.
9893 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9894
7a26bd4d
PA
98952015-03-20 Pedro Alves <palves@redhat.com>
9896
9897 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9898 * breakpoint.h (set_breakpoint_condition): Update declaration.
9899
cd46431b
PA
99002015-03-20 Pedro Alves <palves@redhat.com>
9901
9902 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9903
e28566f7
PA
99042015-03-20 Pedro Alves <palves@redhat.com>
9905
9906 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9907
f6fc92f6
PA
99082015-03-20 Pedro Alves <palves@redhat.com>
9909
9910 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9911
c32ed3ef
PA
99122015-03-20 Pedro Alves <palves@redhat.com>
9913
9914 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9915 (nto_init_solib_absolute_prefix): Likewise.
9916
53e78085
PA
99172015-03-20 Pedro Alves <palves@redhat.com>
9918
9919 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9920 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9921
bc23328c
JK
99222015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9923
9924 * config/djgpp/README: Remove gdb.hp.
9925
e8ffc436
YQ
99262015-03-20 Yao Qi <yao.qi@linaro.org>
9927
9928 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9929 set_gdbarch_cannot_step_breakpoint.
9930
23f238d3
PA
99312015-03-19 Pedro Alves <palves@redhat.com>
9932
9933 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9934 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9935 instead call perror_with_name.
9936 (check_ptrace_stopped_lwp_gone): New function.
9937 (linux_resume_one_lwp): Reimplement as wrapper around
9938 linux_resume_one_lwp_throw that swallows errors if the LWP is
9939 gone.
9940 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9941 swallows errors if the LWP is gone. Use
9942 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9943
eb54c8bf
PA
99442015-03-19 Pedro Alves <palves@redhat.com>
9945
9946 * linux-nat.c (status_callback): Return early if the LWP has no
9947 status pending.
9948
b90fc188
PA
99492015-03-19 Pedro Alves <palves@redhat.com>
9950
9951 * linux-nat.c (select_event_lwp_callback): Update comment to no
9952 longer mention SIGTRAP.
9953
670f82d4
TG
99542015-03-18 Tristan Gingold <gingold@adacore.com>
9955
72f4393d
L
9956 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9957 redirection code to ...
9958 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9959 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 9960
464b0089
GB
99612015-03-18 Gary Benson <gbenson@redhat.com>
9962
9963 (remote_protocol_features): Remove the "vFile:fstat" feature.
9964 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9965
f68f11b7
YQ
99662015-03-11 Yao Qi <yao.qi@linaro.org>
9967
9968 PR tdep/18107
9969 * aarch64-linux-tdep.c: Include xml-syscall.h
9970 (aarch64_linux_get_syscall_number): New function.
9971 (aarch64_linux_init_abi): Call
9972 set_gdbarch_get_syscall_number.
9973 * syscalls/aarch64-linux.xml: New file.
9974
393bd0c0
YG
99752015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9976
9977 * ser-base.h (ser_base_setstopbits): Change second argument name
9978 from "rate" to "num".
9979
7f3647e2
GB
99802015-03-17 Gary Benson <gbenson@redhat.com>
9981 Luke Allardyce <lukeallardyce@gmail.com>
9982
9983 PR gdb/18131
9984 * common/common-remote-fileio.h (sys/stat.h): New include.
9985 (stuct stat): Remove forward declaration.
9986
3ce5b6e2
JB
99872015-03-16 John Baldwin <jhb@FreeBSD.org>
9988
9989 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9990 before writing core register notes.
9991
d053f6be
YZ
99922015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9993 Pedro Alves <palves@redhat.com>
9994
9995 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9996 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9997 (tgoto): Wrap with extern "C".
9998
b1a921c8
PA
99992015-03-16 Pedro Alves <palves@redhat.com>
10000 Yuanhui Zhang <asmwarrior@gmail.com>
10001
10002 * stub-termcap.c (tputs): Change prototype.
10003
876d1cd7
YZ
100042015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10005 Pedro Alves <palves@redhat.com>
10006
10007 * windows-nat.c (struct thread_info_struct): Rename to ...
10008 (struct windows_thread_info_struct): ... this.
10009 (thread_info): Rename to ...
10010 (windows_thread_info): ... this.
10011 All users updated.
10012
0800b440
JK
100132015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10014 Pedro Alves <palves@redhat.com>
10015
10016 * NEWS: New Removed targets and native configurations.
10017
100182015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
10019
10020 Remove HPUX.
10021 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10022 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10023 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10024 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10025 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10026 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10027 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10028 hppa-hpux-tdep.c.
10029 * config/ia64/hpux.mh: Remove file.
10030 * config/pa/hpux.mh: Remove file.
10031 * configure: Rebuilt.
10032 * configure.ac (dlgetmodinfo, somread.o): Remove.
10033 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10034 (ia64-*-hpux*): Remove its float format exception.
10035 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10036 * hppa-hpux-nat.c: Remove file.
10037 * hppa-hpux-tdep.c: Remove file.
10038 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10039 Move them here from hppa-tdep.h
10040 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10041 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10042 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10043 Move them to hppa-tdep.c.
10044 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10045 declarations.
10046 * ia64-hpux-nat.c: Remove file.
10047 * ia64-hpux-tdep.c: Remove file.
10048 * ia64-hpux-tdep.h: Remove file.
10049 * inf-ttrace.c: Remove file.
10050 * inf-ttrace.h: Remove file.
10051 * solib-ia64-hpux.c: Remove file.
10052 * solib-ia64-hpux.h: Remove file.
10053 * solib-pa64.c: Remove file.
10054 * solib-pa64.h: Remove file.
10055 * solib-som.c: Remove file.
10056 * solib-som.h: Remove file.
10057 * somread.c: Remove file.
10058
25268153
JB
100592015-03-13 John Baldwin <jhb@FreeBSD.org>
10060
10061 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10062 * config.in: Regenerate.
10063 * configure: Regenerate.
10064 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 10065 define.
25268153
JB
10066 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10067 enumerate memory regions if present.
10068
773eacf5
JB
100692015-03-13 John Baldwin <jhb@FreeBSD.org>
10070
10071 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10072 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10073 expressions.
10074 (i386fbsd_sigtramp_p): Likewise.
10075
01b6bdb0
JB
100762015-03-12 John Baldwin <jhb@FreeBSD.org>
10077
10078 * MAINTAINERS (Write After Approval): Add John Baldwin.
10079
811a659a
GB
100802015-03-12 Gary Benson <gbenson@redhat.com>
10081
10082 * solib.c (_initialize_solib): Make "set/show sysroot" use
10083 add_setshow_optional_filename_cmd so it can be restored to
10084 empty after being set.
10085
10304ef3
SDJ
100862015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10087
10088 * Makefile.in (SFILES): New source break-catch-syscall.c.
10089 (COMMON_OBS): New object break-catch-syscall.o.
10090 * break-catch-syscall.c: New file.
10091 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10092 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10093 (struct syscall_catchpoint): Likewise.
10094 (dtor_catch_syscall): Likewise.
10095 (catch_syscall_inferior_data): Likewise.
10096 (struct catch_syscall_inferior_data): Likewise.
10097 (get_catch_syscall_inferior_data): Likewise.
10098 (catch_syscall_inferior_data_cleanup): Likewise.
10099 (insert_catch_syscall): Likewise.
10100 (remove_catch_syscall): Likewise.
10101 (breakpoint_hit_catch_syscall): Likewise.
10102 (print_it_catch_syscall): Likewise.
10103 (print_one_catch_syscall): Likewise.
10104 (print_mention_catch_syscall): Likewise.
10105 (print_recreate_catch_syscall): Likewise.
10106 (catch_syscall_breakpoint_ops): Likewise.
10107 (syscall_catchpoint_p): Likewise.
10108 (create_syscall_event_catchpoint): Likewise.
10109 (catch_syscall_split_args): Likewise.
10110 (catch_syscall_command_1): Likewise.
10111 (is_syscall_catchpoint_enabled): Likewise.
10112 (catch_syscall_enabled): Likewise.
10113 (catching_syscall_number): Likewise.
10114 (catch_syscall_completer): Likewise.
10115 (clear_syscall_counts): Likewise.
10116 (initialize_breakpoint_ops): Move initialization of syscall
10117 catchpoints to break-catch-syscall.c.
10118 (_initialize_breakpoint): Move code related to syscall catchpoints
10119 to break-catch-syscall.c.
10120
badd37ce
SDJ
101212015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10122
10123 * breakpoint.c (breakpoint_find_if): New function.
10124 * breakpoint.h (breakpoint_find_if): New prototype.
10125
0a93529c
GB
101262015-03-11 Gary Benson <gbenson@redhat.com>
10127
10128 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10129 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10130 (remote_fileio_to_host_ulong): Likewise.
10131 (remote_fileio_to_host_mode): Likewise.
10132 (remote_fileio_to_host_time): Likewise.
10133 (remote_fileio_to_host_stat): Likewise.
10134 * remote.c (PACKET_vFile_fstat): New enum value.
10135 (remote_protocol_features): Register the "vFile:fstat" feature.
10136 (remote_hostio_fstat): New function.
10137 (remote_bfd_iovec_stat): Use the above.
10138 (_initialize_remote): Register new "set/show remote
10139 hostio-fstat-packet" command.
10140 * symfile.c (separate_debug_file_exists): Update comment.
10141 * NEWS: Announce new vFile:fstat packet.
10142
791c0056
GB
101432015-03-11 Gary Benson <gbenson@redhat.com>
10144
10145 * common/common-remote-fileio.h: New file.
10146 * common/common-remote-fileio.c: Likewise.
10147 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10148 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10149 (COMMON_OBS): Add common-remote-fileio.o.
10150 (common-remote-fileio.o): New rule.
10151 * remote-fileio.h (common-remote-fileio.h): New include.
10152 * remote-fileio.c (gdb/fileio.h): Do not include.
10153 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10154 (remote_fileio_to_fio_uint): Likewise.
10155 (remote_fileio_to_fio_time): Likewise.
10156 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10157 (remote_fileio_to_fio_mode): Likewise.
10158 (remote_fileio_to_fio_ulong): Likewise.
10159 (remote_fileio_to_fio_stat): Likewise.
10160
1390d0ef
AW
101612015-03-11 Andy Wingo <wingo@igalia.com>
10162
10163 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10164 we were checking the cached type, not the cached dynamic type.
10165
84a4591a
AW
101662015-03-11 Andy Wingo <wingo@igalia.com>
10167
10168 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10169 other strings, as these are on the GC'd heap, and will be
10170 collected along with the smob.
10171
85642ba0
AW
101722015-03-11 Andy Wingo <wingo@igalia.com>
10173
10174 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10175 (objfile_functions): Bind gdbscm_objfile_progspace to
10176 objfile-progspace.
10177 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10178
92fab5a6
AW
101792015-03-11 Andy Wingo <wingo@igalia.com>
10180
10181 * guile/guile.c (_initialize_guile): Disable automatic
10182 finalization, if Guile offers us that possibility.
10183 * guile/guile.c (call_initialize_gdb_module):
10184 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10185 finalizers in appropriate places.
10186 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10187 scm_set_automatic_finalization_enabled.
10188 * configure: Regenerated.
10189
f054145e
AA
101902015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10191
10192 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10193 SAL, if possible.
10194
18396193
AA
101952015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10196
10197 * s390-linux-nat.c (struct arch_lwp_info): New.
10198 (s390_fix_watch_points): Rename to...
10199 (s390_prepare_to_resume): ...this. Skip the PER info update
10200 unless the watch points have changed.
10201 (s390_refresh_per_info, s390_new_thread): New functions.
10202 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10203 s390_fix_watch_points.
10204 (s390_remove_watchpoint): Likewise.
10205 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10206 Register s390_prepare_to_resume.
10207
9eb1356e
PA
102082015-03-09 Pedro Alves <palves@redhat.com>
10209
10210 Revert:
10211 2015-03-07 Pedro Alves <palves@redhat.com>
10212 * common/gdb_socket.h: New file.
10213 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10214 sys/socket.h.
10215 (net_open): Use union gdb_sockaddr_u.
10216
aac331e4
PA
102172015-03-07 Pedro Alves <palves@redhat.com>
10218
10219 * configure.ac (build_warnings): Move -Wmissing-prototypes
10220 -Wdeclaration-after-statement -Wmissing-parameter-type
10221 -Wold-style-declaration -Wold-style-definition to the C-specific
10222 set.
10223 * configure: Regenerate.
10224
366c75fc
PA
102252015-03-07 Pedro Alves <palves@redhat.com>
10226
10227 * common/gdb_socket.h: New file.
10228 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10229 sys/socket.h.
10230 (net_open): Use union gdb_sockaddr_u.
10231
72df25b2
PA
102322015-03-07 Pedro Alves <palves@redhat.com>
10233
10234 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10235 (exceptions_state_mc_action_iter)
10236 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10237 Don't define.
10238 [__cplusplus] (try_scope_depth): New global.
10239 [__cplusplus] (exception_try_scope_entry)
10240 (exception_try_scope_exit, gdb_exception_sliced_copy)
10241 (exception_rethrow): New functions.
10242 (throw_exception): In C++ mode, throw
10243 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10244 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10245 (throw_it): In C++ mode, use try_scope_depth.
10246 * common/common-exceptions.h [!__cplusplus]
10247 (exceptions_state_mc_action_iter)
10248 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10249 Don't declare.
10250 [__cplusplus] (exception_try_scope_entry)
10251 (exception_try_scope_exit, exception_rethrow): Declare.
10252 [__cplusplus] (struct exception_try_scope): New struct.
10253 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10254 C++ exceptions.
10255 (struct gdb_exception_RETURN_MASK_ALL)
10256 (struct gdb_exception_RETURN_MASK_ERROR)
10257 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10258
284e6217
PA
102592015-03-07 Pedro Alves <palves@redhat.com>
10260
10261 * main.c (handle_command_errors): Remove volatile qualifier from
10262 parameter.
10263
6c63c96a
PA
102642015-03-07 Pedro Alves <palves@redhat.com>
10265
10266 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10267 TRY and CATCH.
10268 * gdbtypes.c (safe_parse_type): Remove empty line.
10269 (types_deeply_equal):
10270 * guile/scm-frame.c (gdbscm_frame_name):
10271 * linux-thread-db.c (find_new_threads_once):
10272 * python/py-breakpoint.c (bppy_get_commands):
10273 * record-btrace.c (record_btrace_insert_breakpoint)
10274 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10275 (record_btrace_start_replaying): Adjust to avoid code between TRY
10276 and CATCH.
10277
492d29ea
PA
102782015-03-07 Pedro Alves <palves@redhat.com>
10279
10280 * common/common-exceptions.c (struct catcher) <exception>: No
10281 longer a pointer to volatile exception. Now an exception value.
10282 <mask>: Delete field.
10283 (exceptions_state_mc_init): Remove all parameters. Adjust.
10284 (exceptions_state_mc): No longer pop the catcher here.
10285 (exceptions_state_mc_catch): New function.
10286 (throw_exception): Adjust.
10287 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10288 all parameters.
10289 (exceptions_state_mc_catch): Declare.
10290 (TRY_CATCH): Rename to ...
10291 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10292 (CATCH, END_CATCH): New.
10293 All callers adjusted.
10294
ece957c8
TT
102952015-03-07 Tom Tromey <tromey@redhat.com>
10296
10297 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10298
7556d4a4
PA
102992015-03-07 Pedro Alves <palves@redhat.com>
10300
10301 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10302 (amd64_epilogue_frame_cache): Normal exception handling code.
10303 * break-catch-throw.c (check_status_exception_catchpoint)
10304 (re_set_exception_catchpoint): Ditto.
10305 * cli/cli-interp.c (safe_execute_command):
10306 * cli/cli-script.c (script_from_file): Ditto.
10307 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10308 Ditto.
10309 * compile/compile-object-run.c (compile_object_run): Ditto.
10310 * cp-abi.c (baseclass_offset): Ditto.
10311 * cp-valprint.c (cp_print_value): Ditto.
10312 * exceptions.c (catch_exceptions_with_msg):
10313 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10314 * frame.c (get_frame_address_in_block_if_available): Ditto.
10315 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10316 (i386_sigtramp_frame_cache): Ditto.
10317 * infcmd.c (post_create_inferior): Ditto.
10318 * linespec.c (parse_linespec, find_linespec_symbols):
10319 * p-valprint.c (pascal_object_print_value): Ditto.
10320 * parse.c (parse_expression_for_completion): Ditto.
10321 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10322 * remote.c (remote_get_noisy_reply): Ditto.
10323 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10324 * solib-svr4.c (solib_svr4_r_map): Ditto.
10325
f873665f 103262015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
10327
10328 * common/common-utils.h (startswith): New inline function.
10329 All places where this logic was used updated to use the above.
10330
68901c4d
PA
103312015-03-05 Pedro Alves <palves@redhat.com>
10332
10333 PR gdb/18002
10334 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10335 after reading the breakpoint's shadow memory.
10336
2dcb2b1a
MK
103372015-03-05 Mark Kettenis <kettenis@gnu.org>
10338
10339 * hppabsd-nat.c: Remove file.
10340 * hppaobsd-nat.c: New file.
10341 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10342 hppaobsd-nat.c.
10343 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10344 hppaobsd-nat.o.
10345
527a273a
PA
103462015-03-04 Pedro Alves <palves@redhat.com>
10347
10348 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10349 (target_decr_pc_after_break): Delete declaration.
10350 * target.c (default_target_decr_pc_after_break)
10351 (target_decr_pc_after_break): Delete.
10352 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10353 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10354 * linux-thread-db.c (check_event): Likewise.
10355 * infrun.c (adjust_pc_after_break): Likewise.
10356 * darwin-nat.c (cancel_breakpoint): Likewise.
10357 * aix-thread.c (aix_thread_wait): Likewise.
10358 * target-delegates.c: Regenerate.
10359
faf09f01
PA
103602015-03-04 Pedro Alves <palves@redhat.com>
10361
10362 * linux-nat.c (save_sigtrap): Check for breakpoints before
10363 checking watchpoints.
10364 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10365 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10366 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10367 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10368 (linux_nat_stopped_by_sw_breakpoint)
10369 (linux_nat_supports_stopped_by_sw_breakpoint)
10370 (linux_nat_stopped_by_hw_breakpoint)
10371 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10372 (linux_nat_wait_1): Don't re-increment the PC if relying on
10373 SIGTRAP's siginfo->si_code.
10374 (linux_nat_add_target): Install new target methods.
10375 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10376 offset if the target already adjusted the PC.
10377 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10378 (GDB_ARCH_TRAP_BRKPT): New.
10379 (TRAP_HWBKPT): Define if not already defined.
10380
f7e6eed5
PA
103812015-03-04 Pedro Alves <palves@redhat.com>
10382
10383 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10384 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10385 Delete field.
10386 <stop_reason>: New field.
10387 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10388 (packet_set_cmd_state): New function.
10389 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10390 features.
10391 (remote_query_supported): If not disabled with the corresponding
10392 "set remote foo-packet" command, report support for the swbreak
10393 and hwbreak features.
10394 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10395 field.
10396 <stop_reason>: New field.
10397 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10398 (remote_wait_as): Adjust.
10399 (remote_stopped_by_sw_breakpoint)
10400 (remote_supports_stopped_by_sw_breakpoint)
10401 (remote_stopped_by_hw_breakpoint)
10402 (remote_supports_stopped_by_hw_breakpoint): New functions.
10403 (remote_stopped_by_watchpoint): New function.
10404 (init_remote_ops): Install them.
10405 (_initialize_remote): Register new "set/show remote
10406 swbreak-feature-packet" and "set/show remote
10407 swbreak-feature-packet" commands.
10408
9e8915c6
PA
104092015-03-04 Pedro Alves <palves@redhat.com>
10410
10411 * btrace.h: Include target/waitstatus.h.
10412 (struct btrace_thread_info) <stop_reason>: New field.
10413 * record-btrace.c (record_btrace_step_thread): Use
10414 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10415 (record_btrace_decr_pc_after_break): Delete.
10416 (record_btrace_stopped_by_sw_breakpoint)
10417 (record_btrace_supports_stopped_by_sw_breakpoint)
10418 (record_btrace_stopped_by_hw_breakpoint)
10419 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10420 (init_record_btrace_ops): Install them.
10421 * record-full.c (record_full_hw_watchpoint): Delete and replace
10422 with ...
10423 (record_full_stop_reason): ... this throughout.
10424 (record_full_exec_insn): Adjust.
10425 (record_full_wait_1): Adjust. No longer re-increment the PC.
10426 (record_full_wait_1): Adjust. Use
10427 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10428 (record_full_stopped_by_watchpoint): Adjust.
10429 (record_full_stopped_by_sw_breakpoint)
10430 (record_full_supports_stopped_by_sw_breakpoint)
10431 (record_full_supports_stopped_by_sw_breakpoint)
10432 (record_full_stopped_by_hw_breakpoint)
10433 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10434 (init_record_full_ops, init_record_full_core_ops): Install them.
10435 * record.c (record_check_stopped_by_breakpoint): New function.
10436 * record.h: Include target/waitstatus.h.
10437 (record_check_stopped_by_breakpoint): New declaration.
10438
15c66dd6
PA
104392015-03-04 Pedro Alves <palves@redhat.com>
10440
10441 enum lwp_stop_reason -> enum target_stop_reason
10442 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10443 (linux_nat_stopped_by_watchpoint, status_callback)
10444 (linux_nat_wait_1): Adjust.
10445 * linux-nat.h (enum lwp_stop_reason): Delete.
10446 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10447 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10448 * target/waitstatus.h (enum target_stop_reason): New.
10449
1cf4d951
PA
104502015-03-04 Pedro Alves <palves@redhat.com>
10451
10452 * breakpoint.c (need_moribund_for_location_type): New function.
10453 (bpstat_stop_status): Don't skipping checking moribund locations
10454 of breakpoint types which the target tell caused a stop.
10455 (program_breakpoint_here_p): New function, factored out from ...
10456 (bp_loc_is_permanent): ... this.
10457 (update_global_location_list): Don't create a moribund location if
10458 the target supports reporting stops of the type of the removed
10459 breakpoint.
10460 * breakpoint.h (program_breakpoint_here_p): New declaration.
10461 * infrun.c (adjust_pc_after_break): Return early if the target has
10462 already adjusted the PC. Add comments.
10463 (handle_signal_stop): If nothing explains a signal, and the target
10464 tells us the stop was caused by a software breakpoint, check if
10465 there's a breakpoint instruction in the memory. If so, adjust the
10466 PC before presenting the stop to the user. Otherwise, ignore the
10467 trap. If nothing explains a signal, and the target tells us the
10468 stop was caused by a hardware breakpoint, ignore the trap.
10469 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10470 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10471 to_supports_stopped_by_hw_breakpoint>: New fields.
10472 (target_stopped_by_sw_breakpoint)
10473 (target_supports_stopped_by_sw_breakpoint)
10474 (target_stopped_by_hw_breakpoint)
10475 (target_supports_stopped_by_hw_breakpoint): Define.
10476 * target-delegates.c: Regenerate.
10477
79639e11
PA
104782015-03-04 Pedro Alves <palves@redhat.com>
10479
10480 * infrun.c (follow_fork_inferior): Use the whole of the
10481 inferior_ptid and pending_follow.related_pid ptids instead of
10482 building ptids from the process components. Adjust verbose output
10483 to use target_pid_to_str.
10484 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10485 inferior_ptid and pending_follow.related_pid ptids instead of
10486 building ptids from the process components.
10487
e85e8e5e
MK
104882015-03-04 Mark Kettenis <kettenis@gnu.org>
10489
10490 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10491 (inf_ptrace_insert_fork_catchpoint): New function.
10492 (inf_ptrace_remove_fork_catchpoint): New function.
10493 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10494
87de11c0
AA
104952015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10496
10497 * s390-linux-tdep.c (s390_register_name): Return empty string
10498 instead of NULL for registers that shouldn't be visible.
10499
d851a69a
AA
105002015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10501
10502 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10503 XML file for 64-bit targets.
10504
b072f6c1
SM
105052015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10506
10507 * target.h (find_default_create_inferior): Remove declaration.
10508 (find_default_attach): Likewise.
10509
c1593e4f
PA
105102015-03-03 Pedro Alves <palves@redhat.com>
10511
10512 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10513 Use ptid_get_pid to get the overall process id when resuming all
10514 threads.
10515
90ad5e1d
PA
105162015-03-03 Pedro Alves <palves@redhat.com>
10517
10518 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10519 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10520 * inf-ptrace.c (get_ptrace_pid): New function.
10521 (inf_ptrace_resume): Use it.
10522 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10523 to the lower layer.
10524
d68e53f4
MM
105252015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10526
10527 * nat/linux-btrace.c: Include sys/utsname.h.
10528 (linux_determine_kernel_ptr_bits): New.
10529 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10530 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10531 ptr_bits.
10532
986b6601
MM
105332015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10534
10535 * btrace.c (ftrace_update_function): Treat return as tailcall for
10536 "_dl_runtime_resolve".
10537
ce0dfbea
MM
105382015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10539
10540 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10541 * btrace.c (ftrace_debug): Do not print the line range.
10542 (ftrace_skip_file, ftrace_update_lines): Remove.
10543 (ftrace_new_function): Remove lbegin and lend initialization.
10544 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10545 * record-btrace.c (btrace_compute_src_line_range): New.
10546 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10547
95e50b27
PA
105482015-03-02 Pedro Alves <palves@redhat.com>
10549
10550 * infrun.c (follow_exec): Delete all threads of the process except
10551 the event thread. Extended comments.
10552
00e474c2
JB
105532015-03-02 Joel Brobecker <brobecker@adacore.com>
10554
10555 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10556
cc7039d3
JB
105572015-03-02 Joel Brobecker <brobecker@adacore.com>
10558
10559 * utils.h: Remove <stdbool.h> #include.
10560 (producer_is_gcc): Change return type to "int".
10561 * utils.c (producer_is_gcc): Change return type to int.
10562 Return 1 instead of true, and 0 instead of false.
10563 Adjust function documentation accordingly.
10564
550bdf96
AA
105652015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10566
10567 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10568 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10569 present.
10570 (s390_linux_store_inferior_registers): Likewise.
10571 (s390_get_hwcap): Remove function. Embed its logic...
10572 (s390_read_description): ...here. Yield a target description with
10573 vector registers if applicable.
10574 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10575 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10576 "features/s390x-tevx-linux64.c".
10577 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10578 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10579 for "GNU/Linux-specific registers".
10580 (s390_dwarf_reg_r0l): New enum value.
10581 (s390_dwarf_reg_to_regnum): Support vector registers.
10582 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10583 of GPR lower halves.
10584 (regnum_is_vxr_full): New function.
10585 (s390_register_name): New function.
10586 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10587 f0-f15 and v0l-v15l.
10588 (s390_pseudo_register_type): Likewise.
10589 (s390_pseudo_register_read): Likewise.
10590 (s390_pseudo_register_write): Likewise.
10591 (s390_value_from_register): Account for the fact that values are
10592 placed left-justified in vector registers.
10593 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10594 the vector reggroup and omit them from the general reggroup.
10595 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10596 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10597 (s390_iterate_over_regset_sections): Add iterations for the two
10598 new vector regsets.
10599 (s390_core_read_description): Yield a target description with
10600 vector registers if applicable.
10601 (s390_gdbarch_init): Handle target descriptions with vector
10602 registers. Add "register_name" gdbarch method.
10603 (_initialize_s390_tdep): Call new tdesc initialization functions.
10604 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10605 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10606 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10607 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10608 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10609 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10610 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10611 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10612 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10613 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10614 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10615 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10616 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10617 (S390_NUM_REGS): Adjust value.
10618 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10619 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10620 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10621 * NEWS: Announce S/390 vector register support.
10622
446899e4
AA
106232015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10624
10625 * features/s390-tevx-linux64.xml: New file.
10626 * features/s390-vx-linux64.xml: New file.
10627 * features/s390-vx.xml: New file.
10628 * features/s390x-tevx-linux64.xml: New file.
10629 * features/s390x-vx-linux64.xml: New file.
10630 * features/Makefile (WHICH): Add s390-vx-linux64,
10631 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10632 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10633 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10634 macros.
10635 * features/s390-tevx-linux64.c: New generated file.
10636 * features/s390-vx-linux64.c: Likewise.
10637 * features/s390x-tevx-linux64.c: Likewise.
10638 * features/s390x-vx-linux64.c: Likewise.
10639 * regformats/s390-tevx-linux64.dat: Likewise.
10640 * regformats/s390-vx-linux64.dat: Likewise.
10641 * regformats/s390x-tevx-linux64.dat: Likewise.
10642 * regformats/s390x-vx-linux64.dat: Likewise.
10643
b7236fbe
DE
106442015-02-28 Doug Evans <xdje42@gmail.com>
10645
10646 * symtab.h (struct symtab) <next>: Fix comment.
10647
02e62830
SM
106482015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10649
10650 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10651 python_GdbMethods.
10652
bf36a1e7
PA
106532015-02-27 Pedro Alves <palves@redhat.com>
10654
10655 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10656
ad6aff7d
PA
106572015-02-27 Pedro Alves <palves@redhat.com>
10658
10659 * common/common-exceptions.h (exception_none): Declare.
10660 * common/common-exceptions.c (exception_none): Moved from
10661 exceptions.c.
10662 (exceptions_state_mc_init): Use exception_none.
10663 * exceptions.c (exception_none): Move to
10664 common/common-exceptions.c.
10665 * exceptions.h (exception_none): Move to
10666 common/common-exceptions.h.
10667
97c18565
PA
106682015-02-27 Pedro Alves <palves@redhat.com>
10669
10670 * main.c (catch_command_errors, catch_command_errors_const):
10671 Remove 'mask' argument. Adjust.
10672 (captured_main): Adjust callers.
10673
e992c591
PA
106742015-02-27 Pedro Alves <palves@redhat.com>
10675
10676 * python/python-internal.h: Include "extension-priv.h".
10677
64166036
PA
106782015-02-27 Pedro Alves <palves@redhat.com>
10679
10680 * breakpoint.h (enum print_stop_action): Move further up in the
10681 file.
10682
8a526fa6
PA
106832015-02-27 Pedro Alves <palves@redhat.com>
10684
10685 * gdbarch.sh: Include regcache.h.
10686 * gdbarch.h: Regenerate.
10687
0fa9c223
PA
106882015-02-27 Pedro Alves <palves@redhat.com>
10689
10690 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10691 Remove duplicate const.
10692 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10693 duplicate const.
10694
7cf99fb1
PA
106952015-02-27 Pedro Alves <palves@redhat.com>
10696
10697 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10698 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10699 * features/feature_to_c.sh: Tag the generated xml_builtin array
10700 with extern const in C++ mode.
10701
1424c16e
TT
107022015-02-27 Tom Tromey <tromey@redhat.com>
10703
10704 * minidebug.c (struct lzma_stream): Rename to ...
10705 (struct gdb_lzma_stream): ... this.
10706 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10707
10367c7c
PA
107082015-02-27 Pedro Alves <palves@redhat.com>
10709
10710 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10711 function.
10712 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10713 (mi_cmd_stack_list_variables): Use it.
10714
4180215b
PA
107152015-02-27 Pedro Alves <palves@redhat.com>
10716
10717 * x86-linux-nat.c (u_debugreg_offset): New function.
10718 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10719
2f56f7c3
PA
107202015-02-27 Pedro Alves <palves@redhat.com>
10721
10722 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10723 declaration.
10724 Include break-common.h.
10725
570dc176
TT
107262015-02-27 Tom Tromey <tromey@redhat.com>
10727 Pedro Alves <palves@redhat.com>
10728
10729 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10730 local used to iterate over enums.
10731 * completer.c (signal_completer): Likewise.
10732 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10733 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10734 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10735 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10736 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10737 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10738 * tui-wingeneral.c (tui_refresh_all): Likewise.
10739
68c14faa
PA
107402015-02-27 Pedro Alves <palves@redhat.com>
10741
10742 * target.h: Include "infrun.h".
10743
749bab01
PA
107442015-02-27 Pedro Alves <palves@redhat.com>
10745
10746 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10747
3c14e5a3
PA
107482015-02-27 Pedro Alves <palves@redhat.com>
10749
10750 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10751 (IPA_SYM): Use it.
10752 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10753
56000a98
PA
107542015-02-27 Pedro Alves <palves@redhat.com>
10755
10756 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10757 cli_mld_erase_entire_line, and make it extern "C".
10758 * common/common-defs.h (EXTERN_C): New.
10759 * completer.c (_rl_completion_prefix_display_length)
10760 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10761 out of gdb_display_match_list_1.
10762 (_rl_qsort_string_compare): Move declaration out of
10763 gdb_display_match_list_1, and make it extern "C".
10764 * defs.h (re_comp): Use EXTERN_C.
10765 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10766 and make it extern "C".
10767 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10768 and make it extern "C".
10769 (main): Move declaration out of maintenance_set_profile_cmd.
10770 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10771 EXTERN_C.
10772
bcabf420
PA
107732015-02-27 Pedro Alves <palves@redhat.com>
10774
10775 * python/python.c (GdbMethods): Rename to ...
10776 (python_GdbMethods): ... this and make extern.
10777 (GdbModuleDef): Rename to ...
10778 (python_GdbModuleDef): ... this and make extern.
10779
928dbe07
PA
107802015-02-27 Pedro Alves <palves@redhat.com>
10781
10782 * record-btrace.c (set_record_btrace_cmdlist)
10783 (show_record_btrace_cmdlist): Remove redefinitions.
10784
52059ffd
TT
107852015-02-27 Tom Tromey <tromey@redhat.com>
10786 Pedro Alves <palves@redhat.com>
10787
10788 * dwarf2-frame.c (enum cfa_how_kind, struct
10789 dwarf2_frame_state_reg_info): Move out of struct
10790 dwarf2_frame_state.
10791 * dwarf2read.c (struct tu_stats): Move out of struct
10792 dwarf2_per_objfile.
10793 (struct file_entry): Move out of struct line_header.
10794 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10795 typedef_field_list): Move out of struct field_info.
10796 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10797 Move out of struct dynamic_prop.
10798 (union type_owner, union field_location, struct field, struct
10799 range_bounds, union type_specific): Move out of struct main_type.
10800 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10801 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10802 (struct call_site_target, union call_site_parameter_u, struct
10803 call_site_parameter): Move out of struct call_site.
10804 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10805 m32c_prologue.
10806 (enum srcdest_kind): Move out of struct srcdest.
10807 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10808 * prologue-value.h (enum prologue_value_kind): Move out of struct
10809 prologue_value.
10810 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10811 gdbarch_tdep.
10812 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10813 out of struct field_info.
10814 * symfile.h (struct other_sections): Move out of struct
10815 section_addr_info.
10816 * symtab.c (struct symbol_cache_slot): Move out struct
10817 block_symbol_cache.
10818 * target-descriptions.c (enum tdesc_type_kind): Move out of
10819 typedef struct tdesc_type.
10820 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10821 struct tui_line_or_address.
10822 * value.c (enum internalvar_kind, union internalvar_data): Move
10823 out of struct internalvar.
10824 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10825 gdbarch_tdep.
10826
fe978cb0
PA
108272015-02-27 Tom Tromey <tromey@redhat.com>
10828 Pedro Alves <palves@redhat.com>
10829
10830 Rename symbols whose names are reserved C++ keywords throughout.
10831
3bc3d82a
PA
108322015-02-27 Pedro Alves <palves@redhat.com>
10833
10834 * Makefile.in (COMPILER): New, get it from autoconf.
10835 (COMPILE.pre, CC_LD): Use COMPILER.
10836 (CXX): Get from autoconf instead.
10837 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10838 * acinclude.m4: Include build-with-cxx.m4.
10839 * build-with-cxx.m4: New file.
10840 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10841 Disable -Werror by default if building in C++ mode.
10842 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10843 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10844 Run supported-warning-flags tests with the C++ compiler.
10845 Save/restore CXXFLAGS too.
10846 * configure: Regenerate.
10847
07697489
PA
108482015-02-27 Pedro Alves <palves@redhat.com>
10849
10850 * libiberty.m4: New file.
10851 * acinclude.m4: Include libiberty.m4.
10852 * configure.ac: Call libiberty_INIT.
10853 * config.in, configure: Regenerate.
10854
60abeae4
AA
108552015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10856
10857 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10858 31-bit targets, but 64-bit targets as well.
10859 (s390_gnu_triplet_regexp): New function.
10860 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10861 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10862 method.
10863
f44466fb 108642015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
10865
10866 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10867 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10868 from CONTEXT_DEBUGGER.
10869
0def5aaa
DE
108702015-02-26 Doug Evans <dje@google.com>
10871
10872 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10873 CHECK_TYPEDEF.
10874 (set_type_vptr_fieldno): Ditto.
10875 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10876 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10877
77b64a49
PA
108782015-02-26 Pedro Alves <palves@redhat.com>
10879
10880 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10881 * complaints.c (vcomplaint): Pass argument FMT directly to
10882 printf-like functions instead of complaint->fmt.
10883 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10884 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10885 * compile/compile-loc2c.c (pushf, unary, binary): Add
10886 ATTRIBUTE_PRINTF.
10887 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10888 to pushf.
10889 (BINARY): Pass string literal as format string to 'binary'.
10890 * compile/compile-object-load.c (link_callbacks_einfo): Add
10891 ATTRIBUTE_PRINTF.
10892 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10893
532f44ed
PA
108942015-02-26 Pedro Alves <palves@redhat.com>
10895
10896 * windows-termcap.c: Rename to ...
10897 * stub-termcap.c: ... this. Adjust header line.
10898 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10899 windows-termcap.c.
10900 * configure: Regenerate.
10901 * configure.ac: Refer to stub-termcap.o instead of
10902 windows-termcap.o.
10903 * gdb_curses.h: Mention stub-termcap.c instead of
10904 windows-termcap.c.
10905
081a1c2c
JK
109062015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10907
10908 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10909 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10910
2f41223f
AT
109112015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10912
10913 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10914
80c57053
JK
109152015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10916
10917 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10918 bfd_canonicalize_symtab.
10919
cf424aef
JB
109202015-02-25 John Baldwin <jhb@FreeBSD.org>
10921
10922 * amd64fbsd-nat.c: Include sys/user.h.
10923 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10924 instead of KERN_PS_STRINGS to locate the signal trampoline.
10925 * i386fbsd-nat.c: Include sys/user.h.
10926 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10927 instead of KERN_PS_STRINGS to locate the signal trampoline.
10928 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10929 (amd64fbsd_sigtramp_p): New.
10930 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10931 longer set default values.
10932 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10933 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10934 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10935 (i386fbsd_freebsd4_sigtramp_start)
10936 (i386fbsd_freebsd4_sigtramp_middle)
10937 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10938 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10939 (i386fbsd_sigtramp_p): New.
10940 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10941 longer set default values.
10942 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10943
c5cb74ee
JB
109442015-02-25 John Baldwin <jhb@freebsd.org>
10945
10946 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10947 get_frame_register instead of frame_unwind_register_unsigned.
10948
17487d85
JK
109492015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10950
10951 PR build/18033
10952 * compile/compile-c-support.c (c_compute_program): Change // comment.
10953 * compile/compile-object-load.c (setup_sections): Change // comment.
10954
9357a9e6
JB
109552015-02-26 Joel Brobecker <brobecker@adacore.com>
10956
10957 PR build/18033:
10958 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10959
1f10ba14
PA
109602015-02-23 Pedro Alves <palves@redhat.com>
10961
10962 * remote.c (skip_to_semicolon): New function.
10963 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10964 special case the stop reasons that look like hex numbers
10965 upfront. Instead handle real register numbers after matching
10966 all the known stop reasons.
10967
96553a0c
DE
109682015-02-21 Doug Evans <dje@google.com>
10969
10970 PR c++/17976, symtab/17821
10971 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10972 is_in_anonymous. All callers updated.
10973 (find_symbol_in_baseclass): Ditto.
10974 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10975 for symbols in an anonymous namespace.
10976 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10977 DW_AT_name directly.
10978 (dwarf2_name): Convert missing namespace name to
10979 CP_ANONYMOUS_NAMESPACE_STR.
10980
2db9a427
PA
109812015-02-20 Pedro Alves <palves@redhat.com>
10982
10983 * linux-nat.c (linux_handle_extended_wait): Call
10984 thread_db_notice_clone whenever a new clone LWP is detected.
10985 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10986 functions.
10987 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10988 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10989 (linux_unstop_all_lwps): Declare.
10990 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10991 (thread_get_info_callback): Delete.
10992 (thread_from_lwp): Use td_thr_get_info and record_thread.
10993 (thread_db_attach_lwp): Delete.
10994 (thread_db_notice_clone): New function.
10995 (try_thread_db_load_1): If /proc is mounted and shows the
10996 process'es task list, walk over all LWPs and call thread_from_lwp
10997 instead of relying on td_ta_thr_iter.
10998 (attach_thread): Don't call check_thread_signals here. Split the
10999 tail part of the function (which adds the thread to the core GDB
11000 thread list) to ...
11001 (record_thread): ... this function. Call check_thread_signals
11002 here.
11003 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11004 call thread_from_lwp.
11005 (thread_db_update_thread_list): Rename to ...
11006 (thread_db_update_thread_list_org): ... this.
11007 (thread_db_update_thread_list): New function.
11008 (thread_db_find_thread_from_tid): Delete.
11009 (thread_db_get_ada_task_ptid): Simplify.
11010 * nat/linux-procfs.c: Include <sys/stat.h>.
11011 (linux_proc_task_list_dir_exists): New function.
11012 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11013
3b27ef47
PA
110142015-02-20 Pedro Alves <palves@redhat.com>
11015
11016 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11017 main LWP. Handle the case of waitpid returning 0 if we're already
11018 attached to the LWP. Don't set the LWP's last_resume_kind to
11019 resume_stop if we already knew about the LWP.
11020 (linux_nat_filter_event): Add debug logs.
11021
1cc28231
PA
110222015-02-20 Pedro Alves <palves@redhat.com>
11023
11024 * target.h (forward_target_decr_pc_after_break): Delete
11025 declaration.
11026
5c5019c2
PA
110272015-02-20 Pedro Alves <palves@redhat.com>
11028
11029 PR threads/18006
11030 * linux-thread-db.c (thread_get_info_callback): Return early if
11031 the thread's lwp id is -1.
11032
f3978e91
JB
110332015-02-20 Joel Brobecker <brobecker@adacore.com>
11034
11035 GDB 7.9 released.
11036
ffdf88ec
SE
110372015-02-19 Steve Ellcey <sellcey@imgtec.com>
11038
11039 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11040 (dtrace_get_probes) Change type of variable 'dof'.
11041
c9587f88
AT
110422015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11043
11044 PR breakpoints/16812
11045 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11046 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11047 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11048
53cf2ee0
DT
110492015-02-19 David Taylor <dtaylor@emc.com>
11050
11051 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11052
acfe0940
PP
110532015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11054
11055 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11056 function.
11057 (tui_putc): Don't call tui_handle_resize_during_io.
11058 (tui_getc): Likewise.
11059 (tui_mld_getc): Likewise.
11060 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11061 (tui_sigwinch_token): New static variable.
11062 (tui_initialize_win): Adjust documentation. Set
11063 tui_sigwinch_token.
11064 (tui_async_resize_screen): New asynchronous callback.
11065 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11066 invoke tui_async_resize_screen.
11067
f6a88844
JM
110682015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11069
11070 * configure: Regenerated.
11071 * configure.ac: Use GDB_AC_TRANSFORM.
11072 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11073 * acinclude.m4: sinclude transform.m4.
11074 * transform.m4: New file.
11075 (GDB_AC_TRANSFORM): New macro.
11076
b05e3b0d
JM
110772015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11078
11079 * NEWS: Announce the support for DTrace SDT probes.
11080
c3e3045e
JM
110812015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11082
11083 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11084 (amd64_dtrace_parse_probe_argument): New function.
11085 (amd64_dtrace_probe_is_enabled): Likewise.
11086 (amd64_dtrace_enable_probe): Likewise.
11087 (amd64_dtrace_disable_probe): Likewise.
11088 (amd64_linux_init_abi): Register the
11089 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11090 `gdbarch_dtrace_disable_probe' and
11091 `gdbarch_dtrace_probe_is_enabled' hooks.
11092 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11093 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11094 (amd64_dtrace_enable_probe_sequence): Likewise.
11095 (amd64_dtrace_disable_probe_sequence): Likewise.
11096
d4777acb
JM
110972015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11098
11099 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11100 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11101 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11102 handle ELF files.
11103 * Makefile.in (SFILES): dtrace-probe.c added.
11104 * configure: Regenerate.
11105 * dtrace-probe.c: New file.
11106 (SHT_SUNW_dof): New constant.
11107 (dtrace_probe_type): New enum.
11108 (dtrace_probe_arg): New struct.
11109 (dtrace_probe_arg_s): New typedef.
11110 (struct dtrace_probe_enabler): New struct.
11111 (dtrace_probe_enabler_s): New typedef.
11112 (dtrace_probe): New struct.
11113 (dtrace_probe_is_linespec): New function.
11114 (dtrace_dof_sect_type): New enum.
11115 (dtrace_dof_dofh_ident): Likewise.
11116 (dtrace_dof_encoding): Likewise.
11117 (DTRACE_DOF_ENCODE_LSB): Likewise.
11118 (DTRACE_DOF_ENCODE_MSB): Likewise.
11119 (dtrace_dof_hdr): New struct.
11120 (dtrace_dof_sect): Likewise.
11121 (dtrace_dof_provider): Likewise.
11122 (dtrace_dof_probe): Likewise.
11123 (DOF_UINT): New macro.
11124 (DTRACE_DOF_PTR): Likewise.
11125 (DTRACE_DOF_SECT): Likewise.
11126 (dtrace_process_dof_probe): New function.
11127 (dtrace_process_dof): Likewise.
11128 (dtrace_build_arg_exprs): Likewise.
11129 (dtrace_get_arg): Likewise.
11130 (dtrace_get_probes): Likewise.
11131 (dtrace_get_probe_argument_count): Likewise.
11132 (dtrace_can_evaluate_probe_arguments): Likewise.
11133 (dtrace_evaluate_probe_argument): Likewise.
11134 (dtrace_compile_to_ax): Likewise.
11135 (dtrace_probe_destroy): Likewise.
11136 (dtrace_gen_info_probes_table_header): Likewise.
11137 (dtrace_gen_info_probes_table_values): Likewise.
11138 (dtrace_probe_is_enabled): Likewise.
11139 (dtrace_probe_ops): New variable.
11140 (info_probes_dtrace_command): New function.
11141 (_initialize_dtrace_probe): Likewise.
11142 (dtrace_type_name): Likewise.
11143
8b367e17
JM
111442015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11145
11146 * gdbarch.sh (dtrace_parse_probe_argument): New.
11147 (dtrace_probe_is_enabled): Likewise.
11148 (dtrace_enable_probe): Likewise.
11149 (dtrace_disable_probe): Likewise.
11150 * gdbarch.c: Regenerate.
11151 * gdbarch.h: Regenerate.
11152
9aca2ff8
JM
111532015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11154
11155 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11156 stap_probe_ops for `enable_probe' and `disable_probe'.
11157 * probe.c (enable_probes_command): New function.
11158 (disable_probes_command): Likewise.
11159 (_initialize_probe): Define the cli commands `enable probe' and
11160 `disable probe'.
11161 (parse_probe_linespec): New function.
11162 (info_probes_for_ops): Use parse_probe_linespec.
11163 * probe.h (probe_ops): New hooks `enable_probe' and
11164 `disable_probe'.
11165
03e98035
JM
111662015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11167
11168 * probe.c (compute_probe_arg): Moved from stap-probe.c
11169 (compile_probe_arg): Likewise.
11170 (probe_funcs): Likewise.
11171 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11172 (compile_probe_arg): Likewise.
11173 (probe_funcs): Likewise.
11174
6f9b8491
JM
111752015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11176
11177 * probe.c (print_ui_out_not_applicables): New function.
11178 (exists_probe_with_pops): Likewise.
11179 (info_probes_for_ops): Do not include column headers for probe
11180 types for which no probe has been actually found on any object.
11181 Also invoke `print_ui_out_not_applicables' in order to match the
11182 column rows with the header when probes of several types are
11183 listed.
11184 Print the "Type" column.
11185 * probe.h (probe_ops): Added a new probe operation `type_name'.
11186 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11187 (stap_type_name): New function.
11188
69efdff1
PP
111892015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11190
11191 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11192 (key_is_command_char): Delete.
11193
f8e5e23e
PA
111942015-02-17 Pedro Alves <palves@redhat.com>
11195
11196 * tui/tui.c (tui_enable): Resize windows before anything
11197 might show a window.
11198
9f2e0721
MO
111992015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11200
11201 PR gdb/17984
11202 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11203 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11204 call.
11205 * aarch64-tdep.h (tdesc_aarch64): Declare.
11206
171e6b1c
MW
112072015-02-12 Mark Wielaard <mjw@redhat.com>
11208
11209 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11210
d5ff0482
DE
112112015-02-13 Doug Evans <dje@google.com>
11212
11213 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11214 anonymous_namespace to is_in_anonymous for consistency with the rest
11215 of the file.
11216 (cp_lookup_bare_symbol): Fix typo in comment.
11217 (cp_search_static_and_baseclasses): Ditto.
11218 (search_symbol_list): Use vertical space in comment better.
11219 (reset_directive_searched): Ditto. Fix typo.
11220 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11221
9f04ac5f
YQ
112222015-02-13 Yao Qi <yao.qi@arm.com>
11223
11224 * MAINTAINERS: Update my email address.
11225
013d0319
DE
112262015-02-12 Doug Evans <dje@google.com>
11227
b615dd20 11228 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 11229
9a7e538e
DE
112302015-02-12 Doug Evans <dje@google.com>
11231
11232 * completer.c (complete_line): Remove incorrect comment.
11233
e1fcd575
JK
112342015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11235
11236 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11237 (py_print_frame): Use RETURN_MASK_ERROR.
11238
b99bf4e3
JK
112392015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11240
11241 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11242 function comment. Wrap all function that can throw in cleanups.
11243 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11244 cleanups.
11245
800eb1ce
JK
112462015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11247
11248 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11249 Remove the error label.
11250
34019068
JK
112512015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11252
11253 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11254 with goto first, indent the former else codepath left. Put variable
11255 'elided' to a new inner block.
11256
8d4a54e2
JK
112572015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11258
11259 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11260
18ad82c1
PA
112612015-02-11 Pedro Alves <palves@redhat.com>
11262
11263 * xcoffread.c (within_function): Delete.
11264
e36122e9
TT
112652015-02-11 Tom Tromey <tromey@redhat.com>
11266 Pedro Alves <palves@redhat.com>
11267
11268 * breakpoint.c (base_breakpoint_ops): Delete.
11269 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11270 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11271 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11272 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11273 * python/py-arch.c (arch_object_type): Make extern.
11274 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11275 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11276 * python/py-cmd.c (cmdpy_object_type): Make extern.
11277 * python/py-continueevent.c (continue_event_object_type)
11278 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11279 parameter. Update all callers.
11280 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11281 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11282 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11283 * python/py-function.c (fnpy_object_type): Make extern.
11284 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11285 * python/py-infevents.c (call_pre_event_object_type)
11286 (inferior_call_post_event_object_type).
11287 (memory_changed_event_object_type): Make extern.
11288 * python/py-infthread.c (thread_object_type): Make extern.
11289 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11290 * python/py-linetable.c (linetable_entry_object_type)
11291 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11292 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11293 (clear_objfiles_event_object_type): Make extern.
11294 * python/py-objfile.c (objfile_object_type): Make extern.
11295 * python/py-param.c (parmpy_object_type): Make extern.
11296 * python/py-progspace.c (pspace_object_type): Make extern.
11297 * python/py-signalevent.c (signal_event_object_type): Make extern.
11298 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11299 * python/py-type.c (type_object_type, field_object_type)
11300 (type_iterator_object_type): Make extern.
11301 * python/python.c (python_extension_script_ops)
11302 (python_extension_ops): Make extern.
11303 * stap-probe.c (stap_probe_ops): Make extern.
11304
0703599a
PA
113052015-02-11 Pedro Alves <pedro@codesourcery.com>
11306
11307 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11308 because the event thread is not the current thread.
11309
eaaf76ab
DE
113102015-02-11 Doug Evans <xdje42@gmail.com>
11311
11312 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11313 been initialized yet, return NULL.
11314
e7d52ed3
DE
113152015-02-11 Doug Evans <dje@google.com>
11316
11317 * symfile.h (new_symfile_objfile): Delete.
11318 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11319 All callers updated.
11320
fc6b1256
PP
113212015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11322
11323 * tui/tui-io.c (tui_handle_resize_during_io): Call
11324 tui_update_gdb_sizes() after resizing the screen.
11325 * tui/tui.c (tui_enable): Resize the terminal before
11326 calling tui_update_gdb_sizes().
11327
d9080678
PP
113282015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11329
11330 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11331 line before printing a newline.
11332
9f615e3a
MW
113332015-02-11 Mark Wielaard <mjw@redhat.com>
11334
11335 * utils.c (producer_is_gcc): Return true or false.
11336
d9080678 113372015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
11338
11339 * utils.h (producer_is_gcc): Change return type to bool. Add major
11340 argument.
11341 * utils.c (producer_is_gcc): Likewise.
11342 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11343 * dwarf2read.c (check_producer): Likewise.
11344
b052c4fb
PA
113452015-02-10 Pedro Alves <palves@redhat.com>
11346
11347 * infrun.c (displaced_step_fixup): Switch to the event thread
11348 before calling gdbarch_displaced_step_fixup.
11349
3ac240d4
AT
113502015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11351
11352 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11353
c1cc6152
SM
113542015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11355
11356 * ada-varobj.c (ada_name_of_child): Constify parent.
11357 (ada_path_expr_of_child): Same.
11358 (ada_value_of_child): Same.
11359 (ada_type_of_child): Same.
11360 * c-varobj.c (c_is_path_expr_parent): Same.
11361 (c_describe_child): Same.
11362 (c_name_of_child): Same.
11363 (c_value_of_child): Same.
11364 (c_type_of_child): Same.
11365 (cplus_number_of_children): Same.
11366 (cplus_describe_child): Constify var.
11367 (cplus_name_of_child): Constify parent.
11368 (cplus_value_of_child): Same.
11369 (cplus_type_of_child): Same.
11370 * jv-varobj.c (java_name_of_child): Same.
11371 (java_value_of_child): Same.
11372 (java_type_of_child): Same.
11373 * varobj.c (value_of_child): Same.
11374 (varobj_default_is_path_expr_parent): Constify var, parent and return
11375 value.
11376 (varobj_get_path_expr): Constify var, modify path_expr through
11377 mutable_var.
11378 (install_new_value): Constify parent.
11379 (value_of_child): Constify parent.
11380 * varobj.h (struct varobj): Constify parent.
11381 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11382 type_of_child.
11383 (varobj_get_path_expr): Constify var.
11384 (varobj_get_path_expr_parent): Constify var and return value.
11385
c1ee9414
LM
113862015-02-10 Luis Machado <lgustavo@codesourcery.com>
11387
11388 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11389 (arm_prologue_this_id): Move PC and SP limit checks to
11390 arm_prologue_unwind_stop_reason.
11391 (arm_prologue_unwind) <stop_reason> : Set to
11392 arm_prologue_unwind_stop_reason.
11393
f7de9aab
MW
113942015-02-09 Mark Wielaard <mjw@redhat.com>
11395
11396 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11397 DW_LANG_Fortran08 as language_fortran.
11398
0b24eb2d
SDJ
113992015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11400
11401 PR remote/17946
11402 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11403 of pointer against char.
11404
a2c2acaf
MW
114052015-02-09 Mark Wielaard <mjw@redhat.com>
11406
11407 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11408 (c_type_print_modifier): Likewise.
11409 * dwarf2read.c (read_tag_atomic_type): New function.
11410 (read_type_die_1): Handle DW_TAG_atomic_type.
11411 * gdbtypes.c (make_atomic_type): New function.
11412 (recursive_dump_type): Handle TYPE_ATOMIC.
11413 * gdbtypes.h (enum type_flag_values): Renumber.
11414 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11415 (TYPE_ATOMIC): New macro.
11416 (make_atomic_type): Declare.
11417
31fd9caa
MM
114182015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11419
11420 * btrace.c (ftrace_find_call): Skip gaps.
11421 (ftrace_new_function): Initialize level.
11422 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11423 (ftrace_new_switch): Update
11424 level computation.
11425 (ftrace_new_gap): New.
11426 (ftrace_update_function): Create new function after gap.
11427 (btrace_compute_ftrace_bts): Create gap on error.
11428 (btrace_stitch_bts): Update parameters. Clear trace if it
11429 becomes empty.
11430 (btrace_stitch_trace): Update parameters. Update callers.
11431 (btrace_clear): Reset the number of gaps.
11432 (btrace_insn_get): Return NULL if the iterator points to a gap.
11433 (btrace_insn_number): Return zero if the iterator points to a gap.
11434 (btrace_insn_end): Allow gaps at the end.
11435 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11436 (btrace_find_insn_by_number): Assert that the found iterator does
11437 not point to a gap.
11438 (btrace_call_next, btrace_call_prev): Assert that the last function
11439 is not a gap.
11440 * btrace.h (btrace_bts_error): New.
11441 (btrace_function): Update comment.
11442 (btrace_function) <insn, insn_offset, number>: Update comment.
11443 (btrace_function) <errcode>: New.
11444 (btrace_thread_info) <ngaps>: New.
11445 (btrace_thread_info) <replay>: Update comment.
11446 (btrace_insn_get): Update comment.
11447 * record-btrace.c (btrace_ui_out_decode_error): New.
11448 (record_btrace_info): Print number of gaps.
11449 (btrace_insn_history, btrace_call_history): Call
11450 btrace_ui_out_decode_error for gaps.
11451 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11452
afb778a2
MM
114532015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11454
11455 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11456 * nat/linux-btrace.c: (btrace_this_cpu): New.
11457 (cpu_supports_bts): Call btrace_this_cpu.
11458 (intel_supports_bts): Add cpu parameter.
11459
7d5c24b3
MM
114602015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11461
11462 * btrace.h (btrace_insn_class): New.
11463 (btrace_insn) <size, iclass>: New.
11464 * btrace.c (ftrace_find_call): Update parameters. Update users.
11465 Use instruction classification.
11466 (ftrace_new_return): Update parameters. Update users.
11467 (ftrace_update_function): Update parameters. Update users. Use
11468 instruction classification.
11469 (ftrace_update_insns): Update parameters. Update users.
11470 (ftrace_classify_insn): New.
11471 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11472 TRY_CATCH around call to gdb_insn_length.
11473
76235df1
MM
114742015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11475
11476 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11477 Update parameters. Update users.
11478
d33501a5
MM
114792015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11480
11481 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11482 (btrace_conf_bts_attributes): New.
11483 (btrace_conf_children): Add attributes.
11484 * common/btrace-common.h (btrace_config_bts): New.
11485 (btrace_config)<bts>: New.
11486 (btrace_config): Update comment.
11487 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11488 Use config.
11489 * features/btrace-conf.dtd: Increment version. Add size
11490 attribute to bts element.
11491 * record-btrace.c (set_record_btrace_bts_cmdlist,
11492 show_record_btrace_bts_cmdlist): New.
11493 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11494 record_btrace_print_conf, cmd_set_record_btrace_bts,
11495 cmd_show_record_btrace_bts): New.
11496 (record_btrace_info): Call record_btrace_print_conf.
11497 (_initialize_record_btrace): Add commands.
11498 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11499 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11500 (btrace_sync_conf): Synchronize bts size.
11501 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11502 * NEWS: Announce new commands and new packets.
11503
f4abbc16
MM
115042015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11505
11506 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11507 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11508 (x86_linux_btrace_conf): New.
11509 (x86_linux_create_target): Initialize to_btrace_conf.
11510 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11511 Check format. Split into this and ...
11512 (linux_enable_bts): ... this.
11513 (linux_btrace_conf): New.
11514 (perf_event_skip_record): Renamed into ...
11515 (perf_event_skip_bts_record): ... this. Updated users.
11516 (linux_disable_btrace): Split into this and ...
11517 (linux_disable_bts): ... this.
11518 (linux_read_btrace): Check format.
11519 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11520 (linux_btrace_conf): New.
11521 (btrace_target_info)<ptid>: Moved.
11522 (btrace_target_info)<conf>: New.
11523 (btrace_target_info): Split into this and ...
11524 (btrace_tinfo_bts): ... this. Updated users.
11525 * btrace.c (btrace_enable): Update parameters.
11526 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11527 (btrace_conf_children, btrace_conf_attributes)
11528 (btrace_conf_elements): New.
11529 * btrace.h (btrace_enable): Update parameters.
11530 (btrace_conf, parse_xml_btrace_conf): New.
11531 * common/btrace-common.h (btrace_config): New.
11532 * feature/btrace-conf.dtd: New.
11533 * record-btrace.c (record_btrace_conf): New.
11534 (record_btrace_cmdlist): New.
11535 (record_btrace_enable_warn, record_btrace_open): Pass
11536 &record_btrace_conf.
11537 (record_btrace_info): Print recording format.
11538 (cmd_record_btrace_bts_start): New.
11539 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11540 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11541 Add "record bts" alias command.
11542 * remote.c (remote_state)<btrace_config>: New.
11543 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11544 (remote_protocol_features): Add qXfer:btrace-conf:read.
11545 (remote_open_1): Call remote_btrace_reset.
11546 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11547 (btrace_target_info)<conf>: New.
11548 (btrace_sync_conf, btrace_read_config): New.
11549 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11550 btrace_read_conf.
11551 (remote_btrace_conf): New.
11552 (init_remote_ops): Initialize to_btrace_conf.
11553 (_initialize_remote): Add qXfer:btrace-conf packet.
11554 * target.c (target_enable_btrace): Update parameters.
11555 (target_btrace_conf): New.
11556 * target.h (target_enable_btrace): Update parameters.
11557 (target_btrace_conf): New.
11558 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11559 (target_ops)<to_enable_btrace>: Update parameters and comment.
11560 (target_ops)<to_btrace_conf>: New.
11561 * target-delegates: Regenerate.
11562 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11563 (target_debug_print_const_struct_btrace_target_info_p): New.
11564 * NEWS: Announce new command and new packet.
11565
aadf7753
MM
115662015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11567
11568 * nat/linux-btrace.h (perf_event_buffer): New.
11569 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11570 <bts>: ... this.
11571 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11572 (perf_event_buffer_size, perf_event_buffer_begin)
11573 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11574 Updated users.
11575 (perf_event_new_data): New.
11576
043c3577
MM
115772015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11578
11579 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11580 * record-btrace.c (record_btrace_open): Remove call to
11581 target_supports_btrace.
11582 * remote.c (remote_supports_btrace): Update parameters.
11583 * target.c (target_supports_btrace): Update parameters.
11584 * target.h (to_supports_btrace, target_supports_btrace): Update
11585 parameters.
11586 * target-delegates.c: Regenerate.
11587 * target-debug.h (target_debug_print_enum_btrace_format): New.
11588 * nat/linux-btrace.c
11589 (kernel_supports_btrace): Rename into ...
11590 (kernel_supports_bts): ... this. Update users. Update warning text.
11591 (intel_supports_btrace): Rename into ...
11592 (intel_supports_bts): ... this. Update users.
11593 (cpu_supports_btrace): Rename into ...
11594 (cpu_supports_bts): ... this. Update users.
11595 (linux_supports_btrace): Update parameters. Split into this and ...
11596 (linux_supports_bts): ... this.
11597 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11598
734b0e4b
MM
115992015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11600
11601 * Makefile.in (SFILES): Add common/btrace-common.c.
11602 (COMMON_OBS): Add common/btrace-common.o.
11603 (btrace-common.o): Add build rules.
11604 * btrace.c (parse_xml_btrace): Update parameters.
11605 (parse_xml_btrace_block): Set format field.
11606 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11607 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11608 (btrace_compute_ftrace): Split into this and...
11609 (btrace_compute_ftrace_bts): ...this.
11610 (btrace_stitch_trace): Split into this and...
11611 (btrace_stitch_bts): ...this.
11612 * btrace.h (parse_xml_btrace): Update parameters.
11613 (make_cleanup_btrace_data): New.
11614 * common/btrace-common.c: New.
11615 * common/btrace-common.h: Include common-defs.h.
11616 (btrace_block_s): Update comment.
11617 (btrace_format): New.
11618 (btrace_format_string): New.
11619 (btrace_data_bts): New.
11620 (btrace_data): New.
11621 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11622 * remote.c (remote_read_btrace): Update parameters.
11623 * target.c (target_read_btrace): Update parameters.
11624 * target.h (target_read_btrace): Update parameters.
11625 (target_ops)<to_read_btrace>: Update parameters.
11626 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11627 * target-delegates.c: Regenerate.
11628 * target-debug (target_debug_print_struct_btrace_data_p): New.
11629 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11630 (linux_read_bts): ...this.
11631 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11632
bd2e0e9e
DE
116332015-02-06 Doug Evans <dje@google.com>
11634
11635 * remote-m32r-sdi.c: Include symfile.h.
11636
f176c4b5
DE
116372015-02-06 Doug Evans <dje@google.com>
11638
11639 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11640 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11641 to here.
11642
d6c146e9
PA
116432015-02-06 Pedro Alves <palves@redhat.com>
11644
11645 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11646
b9d61307
SM
116472015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11648
11649 PR gdb/15678
11650 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11651 (enable_count_command): Check args for NULL value.
11652
e9fbd043
DE
116532015-02-05 Doug Evans <xdje42@gmail.com>
11654
11655 * guile/scm-frame.c: Fix spelling errors in a comment.
11656
881d5d5d
JK
116572015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11658
11659 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11660 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11661 return type.
11662
20ba1ce6
PA
116632015-02-04 Pedro Alves <palves@redhat.com>
11664
11665 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11666 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11667 returns true.
11668 (resume_stopped_resumed_lwps): Don't check whether the thread is
11669 marked as executing.
11670 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11671
f962539a
AA
116722015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11673
11674 * regset.h (struct regset): Add flags field.
11675 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11676 * corelow.c (get_core_register_section): Add warning if the size
11677 exceeds the requested size and the regset does not have the
11678 REGSET_VARIABLE_SIZE flag set.
11679 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11680 flag.
11681 * armbsd-tdep.c (armbsd_gregset): Likewise.
11682 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11683 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11684 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11685 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11686
dde9acd6
AA
116872015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11688
11689 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11690 For ".reg-xstate", explicitly specify the requested section size
11691 via X86_XSTATE_SIZE instead of just 0 on input and
11692 X86_XSTATE_MAX_SIZE on output.
11693 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11694 Likewise.
11695
1528345d
AA
116962015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11697
11698 PR corefiles/17808:
11699 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11700 function type, particularly its SIZE parameter.
11701 * gdbarch.h: Regenerate.
11702 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11703 actual against required size using ">=" instead of "==".
11704 (amd64_collect_fpregset): Likewise.
11705 * i386-tdep.c (i386_supply_gregset): Likewise.
11706 (i386_collect_gregset): Likewise.
11707 (i386_supply_fpregset): Likewise.
11708 (i386_collect_fpregset): Likewise.
11709 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11710 (mips_fill_gregset_wrapper): Likewise.
11711 (mips_supply_fpregset_wrapper): Likewise.
11712 (mips_fill_fpregset_wrapper): Likewise.
11713 (mips64_supply_gregset_wrapper): Likewise.
11714 (mips64_fill_gregset_wrapper): Likewise.
11715 (mips64_supply_fpregset_wrapper): Likewise.
11716 (mips64_fill_fpregset_wrapper): Likewise.
11717 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11718 (am33_supply_fpregset_method): Likewise.
11719 (am33_collect_gregset_method): Likewise.
11720 (am33_collect_fpregset_method): Likewise.
11721
518be979
DE
117222015-02-04 Doug Evans <dje@google.com>
11723 Pedro Alves <palves@redhat.com>
11724 Eli Zaretskii <eliz@gnu.org>
11725
11726 PR tui/17810
11727 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11728 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11729 * tui/tui-file.c: #include tui/tui-command.h.
11730 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11731 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11732 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11733
80bd5fab
PA
117342015-02-04 Pedro Alves <palves@redhat.com>
11735
11736 Fix build breakage.
11737 * event-loop.c (gdb_do_one_event): Add default switch case.
11738
a7606d80
JK
117392015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11740
11741 Filter out inferior gcc option -fpreprocessed.
11742 * compile/compile.c (filter_args): New function.
11743 (get_args): Use it.
11744
70b66289
PA
117452015-02-03 Pedro Alves <palves@redhat.com>
11746
11747 * event-loop.c: Don't declare nor define a queue type for
11748 gdb_event_p.
11749 (event_queue): Delete.
11750 (create_event, create_file_event, gdb_event_xfree)
11751 (initialize_event_loop, process_event): Delete.
11752 (gdb_do_one_event): Return as soon as one event is handled.
11753 (handle_file_event): Change prototype. Used the passed in
11754 file_handler pointer and ready_mask instead of looping over all
11755 file handlers.
11756 (gdb_wait_for_event): Update the poll/select timeouts before
11757 blocking. Run event handlers directly instead of queueing events.
11758 Return as soon as one event is handled.
11759 (struct async_event_handler_data): Delete.
11760 (invoke_async_event_handler): Delete.
11761 (check_async_event_handlers): Change return type to int. Run
11762 event handlers directly instead of queueing events. Return as
11763 soon as one event is handled.
11764 (handle_timer_event): Delete.
11765 (update_wait_timeout): New function, factored out from
11766 poll_timers.
11767 (poll_timers): Reimplement.
11768 * event-loop.h (initialize_event_loop): Delete declaration.
11769 * top.c (gdb_init): Don't call initialize_event_loop.
11770
b7d2e916
PA
117712015-02-03 Pedro Alves <palves@redhat.com>
11772
11773 * event-loop.c (clear_async_event_handler): New function.
11774 * event-loop.h (clear_async_event_handler): New declaration.
11775 * record-btrace.c (record_btrace_async): New function.
11776 (init_record_btrace_ops): Install record_btrace_async.
11777 * record-full.c (record_full_async): New function.
11778 (record_full_resume): Don't mark the async event source here.
11779 (init_record_full_ops): Install record_full_async.
11780 (record_full_core_resume): Don't mark the async event source here.
11781 (init_record_full_core_ops): Install record_full_async.
11782 * remote.c (remote_async): Mark and clear the async stop reply
11783 queue event-loop token as appropriate.
11784
d9d41e78
PA
117852015-02-03 Pedro Alves <palves@redhat.com>
11786
11787 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11788 target_is_async_p instead of target_can_async.
11789 (linux_nat_wait): Use target_is_async_p instead of
11790 target_can_async. Don't enable async here.
11791 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11792 target_is_async_p instead of target_can_async.
11793
aa3de267
SM
117942015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11795
11796 * varobj.h (lang_varobj_ops): Mention which return values need
11797 to be freed.
11798
2c811c0f
JB
117992015-02-02 Joel Brobecker <brobecker@adacore.com>
11800
11801 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11802
b1eedac9
JB
118032015-02-02 Joel Brobecker <brobecker@adacore.com>
11804
11805 PR gdb/17856:
11806 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11807 results found in the cache.
11808
66c168ae
JB
118092015-02-02 Joel Brobecker <brobecker@adacore.com>
11810
11811 PR gdb/17854:
11812 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11813 when allocating a new one.
11814
4bdc02b2
TT
118152015-02-01 Tom Tromey <tom@tromey.com>
11816
11817 * MAINTAINERS: Remove myself.
11818
ae6ae975
DE
118192015-01-31 Doug Evans <xdje42@gmail.com>
11820
11821 * dwarf2read.c (process_structure_scope): Update setting of
11822 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11823 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11824 (set_type_vptr_fieldno): New function.
11825 (internal_type_vptr_basetype): New function.
11826 (set_type_vptr_basetype): New function.
11827 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11828 TYPE_VPTR_BASETYPE.
11829 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11830 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11831 (print_cplus_stuff): ... moved here.
11832 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11833 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11834 moved to ...
11835 (struct cplus_struct_type): ... here. All uses updated.
11836 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11837 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11838 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11839 * stabsread.c (read_tilde_fields): Update setting of
11840 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11841
09e2d7c7
DE
118422015-01-31 Doug Evans <xdje42@gmail.com>
11843
11844 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11845 to self_p.
11846 (cp_print_class_member): Rename local domain to self_type.
11847 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11848 domain_type to self_type.
11849 (set_die_type) <need_gnat_info>: Handle
11850 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11851 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11852 TYPE_SPECIFIC_SELF_TYPE.
11853 * gdbtypes.c (internal_type_self_type): New function.
11854 (set_type_self_type): New function.
11855 (smash_to_memberptr_type): Rename parameter domain to self_type.
11856 Update setting of TYPE_SELF_TYPE.
11857 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11858 (smash_to_method_type): Rename parameter domain to self_type.
11859 Update setting of TYPE_SELF_TYPE.
11860 (check_stub_method): Call smash_to_method_type.
11861 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11862 (copy_type_recursive): Ditto.
11863 * gdbtypes.h (enum type_specific_kind): New value
11864 TYPE_SPECIFIC_SELF_TYPE.
11865 (struct main_type) <type_specific>: New member self_type.
11866 (struct cplus_struct_type) <fn_field.type>: Update comment.
11867 (TYPE_SELF_TYPE): Rewrite.
11868 (internal_type_self_type, set_type_self_type): Declare.
11869 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11870 self_type.
11871 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11872 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11873 TYPE_TARGET_TYPE.
11874 * stabsread.c (read_member_functions): Mark methods with
11875 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11876 TYPE_SELF_TYPE.
11877
4bfb94b8
DE
118782015-01-31 Doug Evans <xdje42@gmail.com>
11879
11880 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11881 All uses updated.
11882
5f4ce105
DE
118832015-01-31 Doug Evans <xdje42@gmail.com>
11884
11885 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11886 or unions. Return zero if union.
11887 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11888 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11889 gnuv3_get_vtable.
11890 (compute_vtable_size): Assert only passed structs.
11891 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11892
f6b3afbf
DE
118932015-01-31 Doug Evans <xdje42@gmail.com>
11894
11895 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11896 kinds.
11897
cfb069a8
GB
118982015-01-31 Gary Benson <gbenson@redhat.com>
11899 Doug Evans <dje@google.com>
11900
11901 PR cli/9007
11902 PR cli/11920
11903 PR cli/15548
11904 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11905 reached.
11906 * common/common-exceptions.h (enum errors)
11907 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11908 * completer.h (get_max_completions_reached_message): New declaration.
11909 (max_completions): Likewise.
11910 (completion_tracker_t): New typedef.
11911 (new_completion_tracker): New declaration.
11912 (make_cleanup_free_completion_tracker): Likewise.
11913 (maybe_add_completion_enum): New enum.
11914 (maybe_add_completion): New declaration.
11915 (throw_max_completions_reached_error): Likewise.
11916 * completer.c (max_completions): New global variable.
11917 (new_completion_tracker): New function.
11918 (free_completion_tracker): Likewise.
11919 (make_cleanup_free_completion_tracker): Likewise.
11920 (maybe_add_completions): Likewise.
11921 (throw_max_completions_reached_error): Likewise.
11922 (complete_line): Remove duplicates and limit result to max_completions
11923 entries.
11924 (get_max_completions_reached_message): New function.
11925 (gdb_display_match_list): Handle max_completions.
11926 (_initialize_completer): New declaration and function.
11927 * symtab.c: Include completer.h.
11928 (completion_tracker): New static variable.
11929 (completion_list_add_name): Call maybe_add_completion.
11930 (default_make_symbol_completion_list_break_on_1): Renamed from
11931 default_make_symbol_completion_list_break_on. Maintain
11932 completion_tracker across calls to completion_list_add_name.
11933 (default_make_symbol_completion_list_break_on): New function.
11934 * top.c (init_main): Set rl_completion_display_matches_hook.
11935 * tui/tui-io.c: Include completer.h.
11936 (tui_old_rl_display_matches_hook): New static global.
11937 (tui_rl_display_match_list): Notify user if max-completions reached.
11938 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11939 * NEWS (New Options): Mention set/show max-completions.
11940
e11c72c7
GB
119412015-01-31 Gary Benson <gbenson@redhat.com>
11942
11943 * symtab.c (struct add_name_data) <code>: New field.
11944 Updated comments.
11945 (add_symtab_completions): New function.
11946 (symtab_expansion_callback): Likewise.
11947 (default_make_symbol_completion_list_break_on): Set datum.code.
11948 Move minimal symbol scan before calling expand_symtabs_matching.
11949 Scan known primary symtabs for externs and statics before calling
11950 expand_symtabs_matching. Pass symtab_expansion_callback as
11951 expansion_notify argument to expand_symtabs_matching. Do not scan
11952 primary symtabs for externs and statics after calling
11953 expand_symtabs_matching.
11954
276d885b
GB
119552015-01-31 Gary Benson <gbenson@redhat.com>
11956
11957 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11958 (struct quick_symbol_functions) <expand_symtabs_matching>:
11959 New argument expansion_notify. All uses updated.
11960 (expand_symtabs_matching): New argument expansion_notify.
11961 All uses updated.
11962 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11963 Also print expansion notify.
11964 * symtab.c (expand_symtabs_matching_via_partial): Call
11965 expansion_notify whenever a partial symbol table is expanded.
11966 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11967 expansion_notify whenever a symbol table is instantiated.
11968
82083d6d
DE
119692015-01-31 Doug Evans <xdje42@gmail.com>
11970
11971 * cli-out.c: #include completer.h, readline/readline.h.
11972 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11973 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11974 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11975 * cli-out.h (cli_display_match_list): Declare.
11976 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11977 (ELLIPSIS_LEN): Ditto.
11978 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11979 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11980 (gdb_fnprint, gdb_print_filename): Ditto.
11981 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11982 (gdb_display_match_list): Ditto.
11983 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11984 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11985 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11986 (match_list_displayer): New struct.
11987 (gdb_display_match_list): Declare.
11988 * top.c (init_main): Set rl_completion_display_matches_hook.
11989 * tui/tui-io.c: #include completer.h.
11990 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11991 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11992 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11993 (tui_mld_getc, tui_mld_read_key): Ditto.
11994 (tui_rl_display_match_list): Rewrite.
11995 (tui_handle_resize_during_io): New arg for_completion. All callers
11996 updated.
11997
f57d2163
DE
119982015-01-31 Doug Evans <xdje42@gmail.com>
11999
12000 Add symbol lookup cache.
12001 * NEWS: Document new options and commands.
12002 * symtab.c (symbol_cache_key): New static global.
12003 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12004 (SYMBOL_LOOKUP_FAILED): New macro.
12005 (symbol_cache_slot_state): New enum.
12006 (block_symbol_cache): New struct.
12007 (symbol_cache): New struct.
12008 (new_symbol_cache_size, symbol_cache_size): New static globals.
12009 (hash_symbol_entry, eq_symbol_entry): New functions.
12010 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12011 (make_symbol_cache, free_symbol_cache): New functions.
12012 (get_symbol_cache, symbol_cache_cleanup): New function.
12013 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12014 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12015 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12016 (symbol_cache_flush, symbol_cache_dump): New functions.
12017 (maintenance_print_symbol_cache): New function.
12018 (maintenance_flush_symbol_cache): New function.
12019 (symbol_cache_stats): New function.
12020 (maintenance_print_symbol_cache_statistics): New function.
12021 (symtab_new_objfile_observer): New function.
12022 (symtab_free_objfile_observer): New function.
12023 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12024 (_initialize_symtab): Init symbol_cache_key. New parameter
12025 maint symbol-cache-size. New maint commands print symbol-cache,
12026 print symbol-cache-statistics, flush-symbol-cache.
12027 Install new_objfile, free_objfile observers.
12028
e700d1b2
JB
120292015-01-31 Joel Brobecker <brobecker@adacore.com>
12030
12031 PR symtab/17855
12032 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12033 to end.
12034
9f050062
DE
120352015-01-31 Doug Evans <xdje42@gmail.com>
12036
12037 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12038 * auto-load.c: #include ctype.h.
12039 (struct auto_load_pspace_info): Replace member loaded_scripts with
12040 new members loaded_script_files, loaded_script_texts.
12041 (auto_load_pspace_data_cleanup): Update.
12042 (init_loaded_scripts_info): Update.
12043 (get_auto_load_pspace_data_for_loading): Update.
12044 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12045 updated.
12046 (maybe_add_script_text): New function.
12047 (clear_section_scripts): Update.
12048 (source_script_file, execute_script_contents): New functions.
12049 (source_section_scripts): Add support for
12050 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12051 (print_scripts): New function.
12052 (auto_load_info_scripts): Also print inlined scripts.
12053 (maybe_print_unsupported_script_warning): Renamed from
12054 unsupported_script_warning_print. All callers updated.
12055 (maybe_print_script_not_found_warning): Renamed from
12056 script_not_found_warning_print. All callers updated.
12057 * extension-priv.h (struct extension_language_script_ops): New member
12058 objfile_script_executor.
12059 * extension.c (ext_lang_objfile_script_executor): New function.
12060 * extension.h (objfile_script_executor_func): New typedef.
12061 (ext_lang_objfile_script_executor): Declare.
12062 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12063 * guile/guile.c (guile_extension_script_ops): Update.
12064 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12065 * python/python.c (python_extension_script_ops): Update.
12066 (gdbpy_execute_objfile_script): New function.
12067
312809f8
EZ
120682015-01-31 Eli Zaretskii <eliz@gnu.org>
12069
12070 * tui/tui-io.c (tui_expand_tabs): New function.
12071 (tui_puts, tui_redisplay_readline): Expand TABs into the
12072 appropriate number of spaces.
12073 * tui/tui-regs.c: Include tui-io.h.
12074 (tui_register_format): Call tui_expand_tabs to expand TABs into
12075 the appropriate number of spaces.
12076 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12077
b6577aab
DE
120782015-01-30 Doug Evans <dje@google.com>
12079
12080 * NEWS: "info source" command now display producer string if present.
12081 * source.c (source_info): Print producer string if present.
12082
6da58d3e
SM
120832015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12084
12085 * varobj.c (varobj_delete): Fix comment.
12086
837ce252
SM
120872015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12088
12089 * varobj.c (create_child): Modify comment.
12090
b09e2c59
SM
120912015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12092
12093 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12094 parameter.
12095 (ada_name_of_variable): Same.
12096 (ada_path_expr_of_child): Same.
12097 (ada_value_of_variable): Same.
12098 (ada_value_is_changeable_p): Same.
12099 (ada_value_has_mutated): Same.
12100 * c-varobj.c (varobj_is_anonymous_child): Same.
12101 (c_is_path_expr_parent): Same.
12102 (c_number_of_children): Same.
12103 (c_name_of_variable): Same.
12104 (c_path_expr_of_child): Same.
12105 (get_type): Same.
12106 (c_value_of_variable): Same.
12107 (cplus_number_of_children): Same.
12108 (cplus_name_of_variable): Same.
12109 (cplus_path_expr_of_child): Same.
12110 (cplus_value_of_variable): Same.
12111 * jv-varobj.c (java_number_of_children): Same.
12112 (java_name_of_variable): Same.
12113 (java_path_expr_of_child): Same.
12114 (java_value_of_variable): Same.
12115 * varobj.c (number_of_children): Same.
12116 (name_of_variable): Same.
12117 (is_root_p): Same.
12118 (varobj_ensure_python_env): Same.
12119 (varobj_get_objname): Same.
12120 (varobj_get_expression): Same.
12121 (varobj_get_display_format): Same.
12122 (varobj_get_display_hint): Same.
12123 (varobj_has_more): Same.
12124 (varobj_get_thread_id): Same.
12125 (varobj_get_frozen): Same.
12126 (dynamic_varobj_has_child_method): Same.
12127 (varobj_get_gdb_type): Same.
12128 (is_path_expr_parent): Same.
12129 (varobj_default_is_path_expr_parent): Same.
12130 (varobj_get_language): Same.
12131 (varobj_get_attributes): Same.
12132 (varobj_is_dynamic_p): Same.
12133 (varobj_get_child_range): Same.
12134 (varobj_value_has_mutated): Same.
12135 (varobj_get_value_type): Same.
12136 (number_of_children): Same.
12137 (name_of_variable): Same.
12138 (check_scope): Same.
12139 (varobj_editable_p): Same.
12140 (varobj_value_is_changeable_p): Same.
12141 (varobj_floating_p): Same.
12142 (varobj_default_value_is_changeable_p): Same.
12143
2568868e
SM
121442015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12145
12146 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12147 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12148 child->path_expr.
12149 (cplus_path_expr_of_child): Same.
12150
ca83fa81
SM
121512015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12152
12153 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12154 result.
12155 (mi_cmd_var_info_expression): Same.
12156 * varobj.c (varobj_get_expression): Mention in the comment that
12157 the result must by freed by the caller.
12158
afa269ae
SM
121592015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12160
12161 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12162 varobj_get_type.
12163 (varobj_update_one): Same.
12164 * varobj.c (update_type_if_necessary): Free curr_type_str and
12165 new_type_str.
12166 (varobj_get_type): Specify in comment that the result needs to be
12167 freed by the caller.
12168
cd366ee8
DE
121692015-01-29 Doug Evans <dje@google.com>
12170
12171 PR symtab/17890
12172 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12173
38360086
MW
121742015-01-25 Mark Wielaard <mjw@redhat.com>
12175
12176 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12177 * utils.c (producer_is_gcc_ge_4): Likewise.
12178 (producer_is_gcc): New function.
12179 * utils.h (producer_is_gcc): New declaration.
12180
df25ebbd
JB
121812015-01-29 Joel Brobecker <brobecker@adacore.com>
12182
12183 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12184 kind.
12185 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12186 parameter by "addr_stack" parameter.
12187 (resolve_dynamic_range): Replace "addr" parameter by
12188 "stack_addr" parameter. Update function documentation.
12189 Update code accordingly.
12190 (resolve_dynamic_array, resolve_dynamic_union)
12191 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12192 (resolve_dynamic_type): Update code, following the changes made
12193 to resolve_dynamic_type_internal's interface.
12194 * dwarf2loc.h (struct property_addr_info): New.
12195 (dwarf2_evaluate_property): Replace "address" parameter
12196 by "addr_stack" parameter. Adjust function documentation.
12197 (struct dwarf2_offset_baton): New.
12198 (struct dwarf2_property_baton): Update documentation of
12199 field "referenced_type" to be more general. New field
12200 "offset_info" in union data field.
12201 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12202 parameter by "addr_stack" parameter. Adjust code accordingly.
12203 Add support for PROP_ADDR_OFFSET properties.
12204 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12205 DW_AT_data_member_location attributes as well. Use case
12206 statements instead of if/else condition.
12207
4a0ca9ec
JB
122082015-01-29 Joel Brobecker <brobecker@adacore.com>
12209
12210 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12211 Return zero if PARENT_VALUE is NULL and parent_type's
12212 range type is dynamic.
12213
ddb87a81
JB
122142015-01-29 Joel Brobecker <brobecker@adacore.com>
12215
12216 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12217 nonzero if the type's subtype is dynamic.
12218 (resolve_dynamic_range): Also resolve the range's subtype.
12219
3d7ad9b4 122202015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 12221
3d7ad9b4 12222 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
12223 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12224
3a8b707a
DE
122252015-01-27 Doug Evans <dje@google.com>
12226
12227 * NEWS: Mention gdb.Objfile.username.
12228 * python/py-objfile.c (objfpy_get_username): New function.
12229 (objfile_getset): Add "username".
12230
d35b90fb
MW
122312015-01-24 Mark Wielaard <mjw@redhat.com>
12232
12233 * stack.c (return_command): Markup warning message with _.
12234
734ae125
DE
122352015-01-24 Doug Evans <xdje42@gmail.com>
12236
12237 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12238
527f3840
JK
122392015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12240
12241 Fix 100x slowdown regression on DWZ files.
12242 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12243 (struct line_header): Add offset and offset_in_dwz.
12244 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12245 (free_line_header_voidp): New declaration.
12246 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12247 functions.
12248 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12249 (handle_DW_AT_stmt_list): Use line_header_hash.
12250 (free_line_header_voidp): New function.
12251 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12252 (dwarf_decode_lines): New parameter decode_mapping, use it.
12253 (dwarf2_free_objfile): Free line_header_hash.
12254
f7e5394d
SM
122552015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12256
12257 PR gdb/17416
12258 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12259 value_ind.
12260
743649fd
MW
122612015-01-15 Mark Wielaard <mjw@redhat.com>
12262
12263 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12264 DW_AT_noreturn.
12265 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12266 calling_convention an 8 bit bit field.
12267 (TYPE_NO_RETURN): New macro.
12268 * infcmd.c (finish_command): Query if function does not return
12269 normally.
12270 * stack.c (return_command): Likewise.
12271
198297aa
PA
122722015-01-23 Pedro Alves <palves@redhat.com>
12273
12274 * linux-nat.c (linux_is_async_p): New macro.
12275 (linux_nat_is_async_p):
12276 (linux_nat_terminal_inferior): Check whether the target can async
12277 instead of whether it is already async.
12278 (linux_nat_terminal_ours): Don't check whether the target is
12279 async.
12280 (linux_async_pipe): Use linux_is_async_p.
12281
253828f1
JK
122822015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12283
12284 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12285 '-ascending'.
12286 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12287 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12288 Sort tp_array using tp_array_compar.
12289 (_initialize_thread): Extend thread_apply_all_command help.
12290
f0e8c4c5
JK
122912015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12292
12293 * corelow.c (core_open): Call also thread_command.
12294 * gdbthread.h (thread_command): New prototype moved from ...
12295 * thread.c (thread_command): ... here.
12296 (thread_command): Make it global.
12297
03b79603
PA
122982015-01-22 Pedro Alves <palves@redhat.com>
12299
12300 * configure.ac [*mingw32*]: Check $curses_found instead of
12301 $prefer_curses.
12302 * configure: Regenerate.
12303 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12304 HAVE_NCURSES_NCURSES_H checks.
12305
6b8a872f
EZ
123062015-01-22 Eli Zaretskii <eliz@gnu.org>
12307
bbbbffbb 12308 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
12309 fails with the 1st arg NULL, try again with "unknown". Don't test
12310 the "cup" capability: it isn't supported by the Windows port of
12311 ncurses, but the Windows console driver is still capable of
12312 supporting TUI.
12313
4b62a76e
JK
123142015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12315
12316 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12317
82a864f9
EZ
123182015-01-22 Eli Zaretskii <eliz@gnu.org>
12319
12320 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12321 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12322 reason that "make TAGS" is broken.
12323
b35018fd
CG
123242015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12325
12326 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12327 and check additional store instructions.
12328
ffbc4646
WW
123292015-01-21 Wei-cheng Wang <cole945@gmail.com>
12330
12331 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12332
ddeca1df
WW
123332015-01-21 Wei-cheng Wang <cole945@gmail.com>
12334
12335 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12336 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12337 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12338 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12339 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12340 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12341 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12342 ppc_process_record_op19, ppc_process_record_op31,
12343 ppc_process_record_op59, ppc_process_record_op60,
12344 ppc_process_record_op63): Likewise.
12345
049bb5de
JB
123462015-01-20 Joel Brobecker <brobecker@adacore.com>
12347
12348 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12349 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12350 strerror.
12351
42b87c63 123522015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
12353
12354 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12355 ppc_process_record_op31, ppc_process_record_op59,
12356 ppc_process_record_op60, ppc_process_record_op63,
12357 ppc_process_record): Fix -Wformat warning.
12358 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12359 Remove unused variables.
12360
569340fc
CG
123612015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12362
12363 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12364
63413d85
EZ
123652015-01-19 Eli Zaretskii <eliz@gnu.org>
12366
12367 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12368 CONFIG_OBS if not building with a curses library.
12369 * configure: Regenerate.
12370
12371 * windows-termcap.c: Include defs.h. Make the whole body empty if
12372 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12373 HAVE_NCURSES_NCURSES_H is defined.
12374
16d8013c
JB
123752015-01-19 Joel Brobecker <brobecker@adacore.com>
12376
12377 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12378 from end of line to start of next line.
12379
cf90fd9a
WW
123802015-01-17 Wei-cheng Wang <cole945@gmail.com>
12381
12382 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12383 Scan PLT stub backward for reverse debugging.
12384 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12385
b4cdae6f
WW
123862015-01-17 Wei-cheng Wang <cole945@gmail.com>
12387 Ulrich Weigand <uweigand@de.ibm.com>
12388
12389 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12390 gdb_target_obs.
12391 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12392 record.
12393 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12394 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12395 (ppc_linux_init_abi): Set process_record, process_record_signal.
12396 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12397 ppc_linux_record_tdep to gdbarch_tdep.
12398 (ppc_process_record): New declaration.
12399 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12400 ppc_process_record_op19, ppc_process_record_op31,
12401 ppc_process_record_op59, ppc_process_record_op60,
12402 ppc_process_record_op63, ppc_process_record): New functions.
12403
2608dbf8
WW
124042015-01-17 Wei-cheng Wang <cole945@gmail.com>
12405
12406 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12407 rs6000_in_function_epilogue_frame_p and add an argument
12408 for frame_info.
12409 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12410 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12411 New functions.
12412 (rs6000_epilogue_frame_unwind): New.
12413 (rs6000_gdbarch_init): Append epilogue unwinder.
12414
4c347be6
SDJ
124152015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12416
12417 * nat/linux-personality.c: Replace "#ifndef
12418 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12419 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12420 systems.
12421
9f2850ba
EZ
124222015-01-16 Eli Zaretskii <eliz@gnu.org>
12423
6cdb25f4
EZ
12424 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12425 functions.
12426 (_initialize_tui_win) <border-kind, border-mode>:
12427 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
12428 (tui_set_tab_width_command): Fix the commentary.
12429
6cdb25f4
EZ
12430 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12431
bf555842
EZ
12432 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12433 Doc fix.
cb86fcc1
EZ
12434 (tui_set_tab_width_command): Delete and recreate the source and
12435 the disassembly windows, to show the effect of the changed tab
12436 size immediately.
bf555842 12437
9f2850ba
EZ
12438 * tui/tui-data.h (LINE_PREFIX): Make shorter
12439 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12440 "Thread NNNNN.XXXX" thread ID notation on Windows.
12441
95761b2d
JK
124422015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12443
12444 Fix gcc-5 compilation.
12445 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12446
8cc73a39
SDJ
124472015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12448
12449 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12450 (linux-personality.o): New rule.
12451 * common/common-defs.h: Include <stdint.h>.
12452 * config/aarch64/linux.mh (NATDEPFILES): Include
12453 linux-personality.o.
12454 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12455 * config/arm/linux.mh (NATDEPFILES): Likewise.
12456 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12457 * config/i386/linux.mh (NATDEPFILES): Likewise.
12458 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12459 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12460 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12461 * config/mips/linux.mh (NATDEPFILES): Likewise.
12462 * config/pa/linux.mh (NATDEPFILES): Likewise.
12463 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12464 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12465 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12466 * config/s390/linux.mh (NATDEPFILES): Likewise.
12467 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12468 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12469 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12470 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12471 * defs.h: Remove #include <stdint.h> (moved to
12472 common/common-defs.h).
12473 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12474 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12475 nat/linux-personality.c).
12476 (linux_nat_create_inferior): Remove code to disable address space
12477 randomization (moved to nat/linux-personality.c). Create cleanup
12478 to disable address space randomization.
12479 * nat/linux-personality.c: New file.
12480 * nat/linux-personality.h: Likewise.
12481
fb23d554
SDJ
124822015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12483
12484 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12485 common/posix-strerror.c.
12486 (posix-strerror.o): New rule.
12487 (mingw-strerror.o): Likewise.
12488 * common/common-utils.h (safe_strerror): Move prototype to here,
12489 from utils.h.
12490 * common/common.host: New file.
12491 * common/mingw-strerror.c: Likewise.
12492 * common/posix-strerror.c: Likewise.
12493 * configure: Regenerated.
12494 * configure.ac: Source common/common.host. Add variable
12495 common_host_obs to gdb_host_obs.
12496 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12497 gdb/common/posix-strerror.c when warning about the use of
12498 strerror.
12499 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12500 common/mingw-strerror.c.
12501 * posix-hdep.c (safe_strerror): Remove definition; move it to
12502 common/posix-hdep.c.
12503 * utils.h (safe_strerror): Remove prototype; move to
12504 common/common-utils.h.
12505
3af8af43
JB
125062015-01-15 Joel Brobecker <brobecker@adacore.com>
12507
12508 GDB 7.8.2 released.
12509
bafffb51
JB
125102015-01-15 Joel Brobecker <brobecker@adacore.com>
12511
12512 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12513 ___XA type if the array has already been fixed.
12514
cdf43629
YQ
125152015-01-14 Yao Qi <yao@codesourcery.com>
12516
12517 * Makefile.in (ppc-linux.o): New rule.
12518 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12519 * configure.ac: AC_CHECK_FUNCS(getauxval).
12520 * config.in: Re-generated.
12521 * configure: Re-generated.
12522 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12523 Declare.
12524 * nat/ppc-linux.c: New file.
12525 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12526 Call ppc64_64bit_inferior_p.
12527
514c5338
YQ
125282015-01-14 Yao Qi <yao@codesourcery.com>
12529
12530 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12531 nat/ppc-linux.h.
12532 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12533 (PPC_FEATURE_HAS_DFP): Likewise.
12534 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12535 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12536 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12537 Include "nat/ppc-linux.h".
12538 * nat/ppc-linux.h: New file.
12539 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12540
5589af0e
PA
125412015-01-14 Pedro Alves <palves@redhat.com>
12542
12543 PR gdb/17525
12544 * breakpoint.c: Include "interps.h".
12545 (bpstat_do_actions_1): Also check whether the interpreter is
12546 async.
12547
6c400b59
PA
125482015-01-14 Pedro Alves <palves@redhat.com>
12549
12550 PR cli/17828
12551 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12552 reinstall if the interpreter is sync.
12553
e02c96a7
DE
125542015-01-13 Doug Evans <dje@google.com>
12555
12556 * objfiles.c (objfile_filename): New function.
12557 * objfiles.h (objfile_filename): Declare it.
12558 (objfile_name): Add function comment.
12559 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12560 bfd file name (which may be realpath'd), and the original name.
12561
3b2f13ff
JB
125622015-01-13 Joel Brobecker <brobecker@adacore.com>
12563
12564 * NEWS: Create a new section for the next release branch.
12565 Rename the section of the current branch, now that it has
12566 been cut.
12567
b4cfe7f8
JB
125682015-01-13 Joel Brobecker <brobecker@adacore.com>
12569
12570 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12571 * version.in: Bump version to 7.9.50.DATE-cvs.
12572
92fc2e69
JB
125732015-01-13 Joel Brobecker <brobecker@adacore.com>
12574
12575 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12576 Remove trailing new-line in argument of call to warning.
12577
f71f0b0d
JB
125782015-01-13 Joel Brobecker <brobecker@adacore.com>
12579
12580 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12581 new-line in argument of call to "warning".
12582
04dccad0
JB
125832015-01-13 Joel Brobecker <brobecker@adacore.com>
12584
12585 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12586 in static block, then try searching for primitive types.
12587
08b13bdd
PP
125882015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12589
12590 * top.h (gdb_add_history): Declare.
12591 * top.c (command_count): New variable.
12592 (gdb_add_history): New function.
12593 (gdb_safe_append_history): New static function.
12594 (quit_force): Call it.
12595 (command_line_input): Use gdb_add_history instead of
12596 add_history.
12597 * event-top.c (command_line_handler): Likewise.
12598
4ac15b59
JC
125992015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12600
12601 PR gdb/17046
12602 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12603 <setjmp.h> #include.
12604
005e54bb
DE
126052015-01-11 Doug Evans <xdje42@gmail.com>
12606
12607 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12608
439250fb
DE
126092015-01-11 Doug Evans <xdje42@gmail.com>
12610
12611 PR gdb/15830
12612 * NEWS: The "maint demangle" command is renamed as "demangle".
12613 * demangle.c: #include cli/cli-utils.h, language.h.
12614 (demangle_command): New function.
12615 (_initialize_demangle): Add new command "demangle".
12616 * maint.c (maintenance_demangle): Stub out.
12617 (_initialize_maint_cmds): Update help text for "maint demangle",
12618 and mark as deprecated.
12619
ebf3aa72
MK
126202015-01-11 Mark Kettenis <kettenis@gnu.org>
12621
12622 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12623 inferior_thread is a function.
12624
6bf045cd
PP
126252015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12626
12627 * Makefile.in (.y.c): Don't munge yacc's #line
12628 directives.
12629
588dcc3e
PP
126302015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12631
12632 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12633 to prompt for input.
12634 * tui/tui-hooks.c (tui_query_hook): Remove.
12635 (tui_install_hooks): Don't set deprecated_query_hook.
12636 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12637 height calculation. Always update the command window's cur_line.
12638
9c02b525
PA
126392015-01-09 Pedro Alves <palves@redhat.com>
12640
12641 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12642 function.
12643 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12644 declaration.
12645 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12646 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12647 stop_reason.
12648 (check_stopped_by_watchpoint): New function.
12649 (save_sigtrap): Reimplement.
12650 (linux_nat_stopped_by_watchpoint): Adjust.
12651 (linux_nat_lp_status_is_event): Delete.
12652 (stop_wait_callback): Only call save_sigtrap after storing the
12653 pending status.
12654 (status_callback): If the thread had been stopped for a breakpoint
12655 that has since been removed, discard the event and resume the LWP.
12656 (count_events_callback, select_event_lwp_callback): Use
12657 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12658 (cancel_breakpoint): Rename to ...
12659 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12660 stopped for a software breakpoint or hardware breakpoint.
12661 (select_event_lwp): Only give preference to the stepping LWP in
12662 all-stop mode. Adjust comments.
12663 (stop_and_resume_callback): Remove references to new_pending_p.
12664 (linux_nat_filter_event): Likewise. Leave exit events of the
12665 leader thread pending here. Handle signal short circuiting here.
12666 Only call save_sigtrap after storing the pending waitstatus.
12667 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12668 new_pending. Don't handle leaving events the caller is not
12669 interested in pending here, nor handle signal short-circuiting
12670 here. Also give equal priority to all LWPs that have had events
12671 in non-stop mode. If reporting a software breakpoint event,
12672 unadjust the LWP's PC.
12673 * linux-nat.h (enum lwp_stop_reason): New.
12674 (struct lwp_info) <stop_pc>: New field.
12675 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12676 (struct lwp_info) <stop_reason>: New field.
12677 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12678
8af756ef
PA
126792015-01-09 Pedro Alves <palves@redhat.com>
12680
12681 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12682 Set the LWP's 'resumed' flag.
12683
8a99810d
PA
126842015-01-09 Pedro Alves <palves@redhat.com>
12685
12686 * linux-nat.c (linux_resume_one_lwp): New function.
12687 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12688 (linux_nat_resume): Use lwp_status_pending_p and
12689 linux_resume_one_lwp.
12690 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12691 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12692 (status_callback, running_callback): Use lwp_status_pending_p.
12693 (lwp_status_pending_p): New function.
12694 (stop_and_resume_callback): Use lwp_status_pending_p.
12695 (linux_nat_filter_event): Use linux_resume_one_lwp.
12696 (linux_nat_wait_1): Always use status_callback to look for an LWP
12697 with a pending status. Use linux_resume_one_lwp.
12698 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12699 linux_resume_one_lwp.
12700
f7ce857f
PA
127012015-01-09 Pedro Alves <palves@redhat.com>
12702
12703 * breakpoint.c (bp_location_inserted_here_p): New function,
12704 factored out from ...
12705 (breakpoint_inserted_here_p): ... here. Use
12706 ALL_BP_LOCATIONS_AT_ADDR.
12707 (software_breakpoint_inserted_here_p): Use
12708 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12709
c1a747c1
PA
127102014-01-09 Pedro Alves <palves@redhat.com>
12711
12712 Skip enabling event reporting if the kernel supports
12713 PTRACE_EVENT_CLONE.
12714 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12715 (thread_db_use_events): New function.
12716 (try_thread_db_load_1): Check thread_db_use_events before enabling
12717 event reporting.
12718 (update_thread_state): New function.
12719 (attach_thread): Use it. Check thread_db_use_events before
12720 enabling event reporting.
12721 (thread_db_detach): Check thread_db_use_events before disabling
12722 event reporting.
12723 (find_new_threads_callback): Check thread_db_use_events before
12724 enabling event reporting. Update the thread's state if not using
12725 libthread_db events.
12726
a33e3959
PA
127272015-01-09 Pedro Alves <palves@redhat.com>
12728
12729 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12730 about to wait for is > 0.
12731 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12732 the kernel thread ID is -1.
12733
8784d563
PA
127342015-01-09 Pedro Alves <palves@redhat.com>
12735
12736 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12737 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12738 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12739 ptrace option flags.
12740 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12741 field.
12742 * nat/linux-procfs.c: Include <dirent.h>.
12743 (linux_proc_get_int): New parameter "warn". Handle it.
12744 (linux_proc_get_tgid): Adjust.
12745 (linux_proc_get_tracerpid): Rename to ...
12746 (linux_proc_get_tracerpid_nowarn): ... this.
12747 (linux_proc_pid_get_state): New function, factored out from
12748 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12749 and handle it.
12750 (linux_proc_pid_is_gone): New function.
12751 (linux_proc_pid_is_stopped): Adjust.
12752 (linux_proc_pid_is_zombie_maybe_warn)
12753 (linux_proc_pid_is_zombie_nowarn): New functions.
12754 (linux_proc_pid_is_zombie): Use
12755 linux_proc_pid_is_zombie_maybe_warn.
12756 (linux_proc_attach_tgid_threads): New function.
12757 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12758 (linux_proc_get_tracerpid): Rename to ...
12759 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12760 (linux_proc_pid_is_gone): New declaration.
12761 (linux_proc_pid_is_zombie): Update comment.
12762 (linux_proc_pid_is_zombie_nowarn): New declaration.
12763 (linux_proc_attach_lwp_func): New typedef.
12764 (linux_proc_attach_tgid_threads): New declaration.
12765 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12766 use nowarn functions.
12767 (linux_ptrace_attach_fail_reason_string): Move here from
12768 gdbserver/linux-low.c and rename.
12769 (ptrace_supports_feature): If the current ptrace options are not
12770 known yet, check them now, instead of asserting.
12771 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12772 Declare.
12773
883ed13e
PA
127742015-01-09 Pedro Alves <palves@redhat.com>
12775
12776 * linux-thread-db.c (thread_db_find_new_threads_silently)
12777 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12778 (find_new_threads_once): Print debug output on gdb_stdlog.
12779
1710aab8
CG
127802015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12781 Pedro Alves <palves@redhat.com>
12782
12783 * compile/compile.c: Include "gdb_wait.h".
12784 (do_rmdir): Check return value, and free 'zap'.
12785
b597c318
YQ
127862015-01-08 Pedro Alves <palves@redhat.com>
12787 Yao Qi <yao@codesourcery.com>
12788
12789 * dwarf2loc.c (indirect_pieced_value): Don't call
12790 gdb_sign_extend. Call extract_signed_integer instead.
12791 * utils.c (gdb_sign_extend): Remove.
12792 * utils.h (gdb_sign_extend): Remove declaration.
12793
025ac414
PM
127942015-01-07 Pierre Muller <muller@sourceware.org>
12795
12796 PR symtab/17811
12797 * stabsread.c (define_symbol): Set language for C++ special symbols.
12798
fa5af12a
PP
127992015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12800
12801 * inflow.c (initial_gdb_ttystate): Tweak comment.
12802
ea42d6f8
JB
128032015-01-07 Joel Brobecker <brobecker@adacore.com>
12804
12805 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12806 comment documenting function.
12807
6a06d660
PP
128082015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12809
12810 * terminal.h (set_initial_gdb_ttystate): Declare.
12811 * inflow.c (initial_gdb_ttystate): New static variable.
12812 (set_initial_gdb_ttystate): New setter.
12813 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12814 instead of our current terminal state.
12815 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12816
e810d75b
JB
128172015-01-07 Joel Brobecker <brobecker@adacore.com>
12818
12819 * guile/scm-type.c (tyscm_array_1): Add comment.
12820 * python/py-type.c (typy_array_1): Add comment.
12821
fce10a84
JB
128222015-01-06 Joel Brobecker <brobecker@adacore.com>
12823
12824 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12825 error if N2 is equal to N1 - 1.
12826
8503d6e1
JB
128272015-01-06 Joel Brobecker <brobecker@adacore.com>
12828
12829 * python/py-type.c (typy_array_1): Do not raise negative-length
12830 exception if N2 is equal to N1 - 1.
12831
4d29c0a8
DE
128322015-01-03 Doug Evans <xdje42@gmail.com>
12833
12834 * c-exp.y: Whitespace cleanup.
12835 (classify_inner_name): Remove extra ;.
12836
eaa6a9a4
MR
128372015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12838
12839 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12840 offset signed.
12841
02fe9972
DE
128422015-01-02 Doug Evans <dje@google.com>
12843
12844 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12845
e2ada9cb
DE
128462015-01-02 Doug Evans <dje@google.com>
12847
12848 * symtab.h (struct symbol): Fix typo in comment.
12849
32d0add0
JB
128502015-01-01 Joel Brobecker <brobecker@adacore.com>
12851
12852 Update year range in copyright notice of all files.
12853
76f2b779
JB
128542015-01-01 Joel Brobecker <brobecker@adacore.com>
12855
12856 * top.c (print_gdb_version): Update copyright year to 2015.
12857
077309e2 128582015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 12859
077309e2 12860 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 12861
077309e2 12862For older changes see ChangeLog-2014.
c906108c
SS
12863\f
12864Local Variables:
12865mode: change-log
12866left-margin: 8
12867fill-column: 74
12868version-control: never
57da7796 12869coding: utf-8
c906108c 12870End:
This page took 2.33514 seconds and 4 git commands to generate.