ia64-tdep.c: Remove (void *) casts
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ce746418
SM
12015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
4 (ia64_push_dummy_call): Remove cast and change type of "to" to
5 array of gdb_byte.
6
a55515ee
SM
72015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
10
6ecf4e06
SM
112015-10-23 Simon Marchi <simon.marchi@ericsson.com>
12
13 * observer.h (observer_${event}_notification_stub): Add cast.
14
034f1a81
YQ
152015-10-23 Yao Qi <yao.qi@linaro.org>
16
17 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
18 dsd.insn_count to zero.
19
d236ad19
PA
202015-10-22 Pedro Alves <palves@redhat.com>
21
22 * infrun.c (stop_after_trap): Delete.
23 (clear_proceed_status, handle_signal_stop, struct
24 infcall_control_state, save_infcall_control_state)
25 (restore_infcall_control_state): Remove references to
26 stop_after_trap.
27
db0f0d0c
SM
282015-10-22 Simon Marchi <simon.marchi@ericsson.com>
29
30 * python/python.c (_initialize_python): Add cast.
31
fb70bc1a
SM
322015-10-22 Simon Marchi <simon.marchi@ericsson.com>
33
34 * nto-tdep.c (nto_inferior_data): Add cast.
35
c72f45d1
PA
362015-10-22 Pedro Alves <palves@redhat.com>
37
38 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
39 windows_wait and windows_resume directly instead of
40 wait_for_inferior and resume.
41
60905b1e
SM
422015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * xtensa-tdep.h (XTREG): Add casts.
45 (XTREG_END): Likewise.
46
5af9928d
SM
472015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
50
3e45d68b
SM
512015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
52
53 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
54
709476c3
SM
552015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
56
57 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
58 buf to gdb_byte*.
59 (supply_32bit_reg): Add cast.
60 (mips64_fill_gregset): Likewise.
61
bed91f4d
SM
622015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
63
64 PR python/18073
65 * python/py-type.c (typy_get_composite): Allow returning a
66 function type.
67
3f2f83dd
KB
682015-10-21 Keven Boell <keven.boell@intel.com>
69
70 * dwarf2read.c (set_die_type): Add read of
71 DW_AT_allocated and DW_AT_associated.
72 * f-typeprint.c: New include of typeprint.h
73 (f_print_type): Add check for allocated/associated
74 status of type.
75 (f_type_print_varspec_suffix): Add check for
76 * gdbtypes.c (create_array_type_with_stride):
77 Add check for valid data location of type in
78 case allocated or associated attributes are set.
79 Length of an array should be only calculated if
80 allocated or associated is resolved as true.
81 (is_dynamic_type_internal): Add check for allocated/
82 associated.
83 (resolve_dynamic_array): Evaluate allocated/associated
84 properties.
85 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
86 <DYN_PROP_ASSOCIATED>: New enums.
87 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
88 (type_not_allocated): New function.
89 (type_not_associated): New function.
90 * valarith.c (value_subscripted_rvalue): Add check for
91 allocated/associated.
92 * valprint.c: New include of typeprint.h.
93 (valprint_check_validity): Add check for allocated/associated.
94 (value_check_printable): Add check for allocated/
95 associated.
96 * typeprint.h (val_print_not_allocated): New function.
97 (val_print_not_associated): New function.
98 * typeprint.c (val_print_not_allocated): New function.
99 (val_print_not_associated): New function.
100
8689682c
AT
1012015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
102
103 * Makefile.in: Add arm.c/o.
104 * arch/arm.c: New file.
105 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
106 (MAKE_THUMB_ADDR): Likewise.
107 (UNMAKE_THUMB_ADDR): Likewise.
108 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
109 (IS_THUMB_ADDR): Move to arm.h.
110 (MAKE_THUMB_ADDR): Likewise.
111 (UNMAKE_THUMB_ADDR): Likewise.
112 * configure.tgt: Add arm.o to all ARM configs.
113
80f0110c
YQ
1142015-10-21 Yao Qi <yao.qi@linaro.org>
115
116 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
117 Remove argument exp_vCont_s.
118 * gdb.base/range-stepping.exp: Callers updated.
119 * gdb.trace/range-stepping.exp: Likewise.
120
d7161de4
AR
1212015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
122
123 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
124 (nto_sniff_abi_note_section): New function.
125 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
126 binary.
127
a9889169
AR
1282015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
129
130 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
131 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
132 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
133 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
134 New functions.
135 (_initialize_nto_tdep): New forward declaration, new function.
136 * nto-tdep.h (struct nto_inferior_data): New struct.
137 (nto_inferior_data): New function declaration.
138
5f3ff4f8
JK
1392015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
140
141 * findvar.c (address_from_register): Check REGNUM validity.
142
e5343fde
AR
1432015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
144
145 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
146 (init_procfs_targets): Wire new function.
147
8a6c0ccd
AR
1482015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
149
150 * nto-procfs.c (sys/auxv.h): Include.
151 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
152 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
153 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
154
609c3040
AR
1552015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
156
157 * nto-procfs.c (nto_procfs_path): Rename to...
158 (nodestr): ... this, and change type.
159 (nto_node): Use new variable and logic accordingly.
160 (procfs_open_1): Use new variable name. Use local buffer to construct
161 procfrs path.
162 (procfs_pidlist): Use NODESTR to construct procfs path.
163 (procfs_files_info): Use NODESTR to output meaningful text.
164 (do_attach): Construct procfs using NODESTR.
165 (procfs_create_inferior): Compare pointer to NULL.
166
bfd09d20
JS
1672015-10-19 Josh Stone <jistone@redhat.com>
168
169 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
170 return state, even when not actively catching syscalls at all.
171 (linux_handle_extended_wait): Mark syscall_state like an entry.
172 (wait_lwp): Set syscall_state ignored for other traps.
173 (linux_nat_filter_event): Likewise.
174
29090fb6
LM
1752015-10-19 Luis Machado <lgustavo@codesourcery.com>
176
177 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
178 when handling 'E', 'T', 'S', 'X' and 'W' packets.
179 Do not set rs->waiting_for_stop_reply back to 1.
180
774ee6d2
AR
1812015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
182
183 * nto-procfs.c (common/filestuff.h): Include.
184 (procfs_can_use_hw_breakpoint): Fix enum name.
185 (procfs_open_1): Fix compiler warning.
186 (procfs_pidlist): Make static.
187 (procfs_meminfo): Make static, fix type name, add missing argument.
188 (procfs_store_registers): Make static.
189 (procfs_thread_info): Remove unused function.
190 (_initialize_procfs): Forward declare.
191
e66acfb1
YQ
1922015-10-16 Yao Qi <yao.qi@arm.com>
193
194 * MAINTAINERS: Update my email address.
195
8d689ee5
YQ
1962015-10-15 Yao Qi <yao.qi@linaro.org>
197
198 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
199 Call gdbarch_breakpoint_from_pc to instruction length.
200 (aarch64_linux_remove_hw_breakpoint): Likewise.
201 * common/common-regcache.h (regcache_register_size): Declare.
202 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
203 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
204 the process is 32bit, otherwise set alignment to 4.
205 (aarch64_handle_breakpoint): Update comments.
206 * regcache.c (regcache_register_size): New function.
207
89fdc87f
AR
2082015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
209
210 * gdbarch.sh (core_regset_section): Remove.
211 * gdbarch.h: Regenerate.
212
6448a3e4
YQ
2132015-10-14 Yao Qi <yao.qi@linaro.org>
214
215 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
216 out of it.
217 (enum aarch64_memory_operand_type): New.
218
33f914a1
DE
2192015-10-13 David Edelsohn <dje.gcc@gmail.com>
220
221 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
222
e6a959d6
PA
2232015-10-13 Pedro Alves <palves@redhat.com>
224
225 * ada-lang.c (ada_enum_name): Constify local.
226 * ada-typeprint.c (print_range_bound): Constify locals.
227 * c-varobj.c (c_describe_child): Likewise.
228 * cli/cli-setshow.c (do_set_command): Likewise.
229 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
230 * dwarf2read.c (find_file_and_directory): Likewise.
231 (anonymous_struct_prefix, dwarf2_name): Likewise.
232 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
233 * go-lang.c (unpack_mangled_go_symbol): Likewise.
234 * jv-typeprint.c (java_type_print_base): Likewise.
235 * ser-tcp.c (net_open): Likewise.
236 * symfile.c (deduce_language_from_filename): Likewise.
237 * symtab.c (gdb_mangle_name): Likewise.
238 * tui/tui-io.c (tui_redisplay_readline): Likewise.
239
170742de
PA
2402015-10-13 Pedro Alves <palves@redhat.com>
241
242 * infrun.c (restore_execution_direction): New function.
243 (fetch_inferior_event): Use it instead of
244 make_cleanup_restore_integer.
245 (execution_direction): Change type to enum
246 exec_direction_kind.
247 * infrun.h (execution_direction): Likewise.
248
bfb1c796
PA
2492015-10-13 Pedro Alves <palves@redhat.com>
250
251 * ada-lang.c (ada_value_primitive_packed_val): Constify
252 locals. Use value_contents_writeable. Remove casts.
253
aa5c10ce
PA
2542015-10-13 Pedro Alves <palves@redhat.com>
255
256 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
257 and alloca calls.
258
4666fec3
SM
2592015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
260
261 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
262 write_memory with write_memory_unsigned_integer.
263
38bc8217 2642015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3953f15c
SM
265
266 * solib-dsbt.c (cmp_name): Constify arguments.
267 * solib-frv.c (cmp_name): Likewise.
268 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
269 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
270 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
271 (gdb_bfd_lookup_symbol): Likewise.
272 * solib.h (gdb_bfd_lookup_symbol): Likewise.
273 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
274
a0d34a39
AB
2752015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
276
277 * stack.c (parse_frame_specification): Remove message parameter,
278 replace with fixed string in function body, update function
279 comment.
280 (frame_info): Remove message to parse_frame_specification.
281 (select_frame_command): Likewise.
282
edbbff4a
AB
2832015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
284
285 * stack.c (parse_frame_specification): Delete.
286 (parse_frame_specification_1): Rename to
287 parse_frame_specification.
288 (frame_info): Use parse_frame_specification.
289 (select_frame_command): Likewise.
290 (return_command): Use select_frame and print_stack_frame rather
291 than frame_command and select_frame_command.
292 (func_command): Use get_current_frame rather than
293 parse_frame_specification.
294
9d622bda
AB
2952015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
296
297 * stack.c (func_command): Return early when there is no ARG
298 string.
299
8d3fea16
AB
3002015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
301
302 * stack.c: Include safe-ctype.h not ctype.h.
303 (parse_frame_specification): Use ISSPACE not isspace.
304 (backtrace_command): Use TOLOWER not tolower.
305
f54b226f
SM
3062015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
307
308 * mep-tdep.c (current_me_module): Add cast.
309 (mep_gdbarch_init): Likewise.
310
6da660c7
SM
3112015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
312
313 * m32c-tdep.c (m32c_move_reg_t): Replace with...
314 (m32c_write_reg_t): ...this and...
315 (m32c_read_reg_t): ...this.
316 (struct m32c_reg): Update types of read and write.
317 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
318 adjust definition.
319 (m32c_banked_read): Likewise.
320 (m32c_sb_read): Likewise.
321 (m32c_part_read): Likewise.
322 (m32c_cat_read): Likewise.
323 (m32c_r3r2r1r0_read): Likewise.
324 (m32c_raw_write): Change declaration type to m32c_write_reg_t
325 and adjust definition.
326 (m32c_banked_write): Likewise.
327 (m32c_sb_write): Likewise.
328 (m32c_part_write): Likewise.
329 (m32c_cat_write): Likewise.
330 (m32c_r3r2r1r0_write): Likewise.
331
1f713e48
SM
3322015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
335
cb65d272
SM
3362015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
339 gdb_sys_no_syscall instead of -1.
340
eda14cf2
YQ
3412015-10-12 Yao Qi <yao.qi@linaro.org>
342
343 * NEWS: Mention the change.
344
1c2e1515
YQ
3452015-10-12 Yao Qi <yao.qi@linaro.org>
346
347 * arch/aarch64-insn.c (emit_load_store): Rename to ...
348 (aarch64_emit_load_store): ... it. All callers updated.
349
e1c587c3
YQ
3502015-10-12 Yao Qi <yao.qi@linaro.org>
351
352 * arch/aarch64-insn.c (emit_insn): Rename to ...
353 (aarch64_emit_insn): ... it. All callers updated.
354
b6542f81
YQ
3552015-10-12 Yao Qi <yao.qi@linaro.org>
356
357 * aarch64-linux-tdep.c: Include arch-utils.h.
358 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
359 set_gdbarch_displaced_step_copy_insn,
360 set_gdbarch_displaced_step_fixup,
361 set_gdbarch_displaced_step_free_closure,
362 set_gdbarch_displaced_step_location,
363 and set_gdbarch_displaced_step_hw_singlestep.
364 * aarch64-tdep.c (struct displaced_step_closure): New.
365 (struct aarch64_displaced_step_data): New.
366 (aarch64_displaced_step_b): New function.
367 (aarch64_displaced_step_b_cond): Likewise.
368 (aarch64_register): Likewise.
369 (aarch64_displaced_step_cb): Likewise.
370 (aarch64_displaced_step_tb): Likewise.
371 (aarch64_displaced_step_adr): Likewise.
372 (aarch64_displaced_step_ldr_literal): Likewise.
373 (aarch64_displaced_step_others): Likewise.
374 (aarch64_displaced_step_copy_insn): Likewise.
375 (aarch64_displaced_step_fixup): Likewise.
376 (aarch64_displaced_step_hw_singlestep): Likewise.
377 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
378 (aarch64_displaced_step_copy_insn): Declare.
379 (aarch64_displaced_step_fixup): Declare.
380 (aarch64_displaced_step_hw_singlestep): Declare.
381 * arch/aarch64-insn.c (emit_insn): Moved from
382 gdbserver/linux-aarch64-low.c.
383 (emit_load_store): Likewise.
384 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
385 gdbserver/linux-aarch64-low.c.
386 (struct aarch64_register): Likewise.
387 (struct aarch64_memory_operand): Likewise.
388 (ENCODE): Likewise.
389 (can_encode_int32): New macro.
390 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
391 (emit_tb, emit_nop): Likewise.
392 (emit_insn): Declare.
393 (emit_load_store): Declare.
394
246994ce
YQ
3952015-10-12 Yao Qi <yao.qi@linaro.org>
396
397 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
398 gdbserver/linux-aarch64-low.c.
399 (aarch64_relocate_instruction): Likewise.
400 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
401 (struct aarch64_insn_data): Moved from
402 gdbserver/linux-aarch64-low.c.
403 (struct aarch64_insn_visitor): Likewise.
404 (aarch64_relocate_instruction): Declare.
405
2520f728
PMR
4062015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
407
408 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
409 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
410 to the returned value.
411
5b639dea
JB
4122015-10-09 Joel Brobecker <brobecker@adacore.com>
413
414 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
415 is large enough for BIT_SIZE. Update function comment.
416
0cafa88c
JB
4172015-10-09 Joel Brobecker <brobecker@adacore.com>
418
419 * ada-lang.c (ada_value_primitive_packed_val): Move
420 src_len variable to local block where used. Override
421 BIT_SIZE if bigger than size of resolved type.
422
220475ed
JB
4232015-10-09 Joel Brobecker <brobecker@adacore.com>
424
425 * gdbtypes.h (is_scalar_type): Add extern declaration.
426 * gdbtypes.c (is_scalar_type): Make non-static.
427 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
428 to compute IS_SCALAR instead of doing it ourselves.
429
d0a9e810
JB
4302015-10-09 Joel Brobecker <brobecker@adacore.com>
431
432 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
433 of case where TYPE is dynamic.
434
f93fca70
JB
4352015-10-09 Joel Brobecker <brobecker@adacore.com>
436
437 * ada-lang.c (ada_unpack_from_contents): New function,
438 extracted from ada_value_primitive_packed_val.
439 (ada_value_primitive_packed_val): Replace extracted out code
440 by call to ada_unpack_from_contents.
441
a1c95e6b
JB
4422015-10-09 Joel Brobecker <brobecker@adacore.com>
443
444 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
445 variable declarations.
446
fbd000da
JB
4472015-10-09 Joel Brobecker <brobecker@adacore.com>
448
449 * ada-lang.c (ada_value_primitive_packed_val): Change the type
450 of local variables src and unpacked to "gdb_type *" instead of
451 "unsigned char *".
452
086ca51f
JB
4532015-10-09 Joel Brobecker <brobecker@adacore.com>
454
455 * ada-lang.c (ada_value_primitive_packed_val): Make the name
456 of various local variables more explicit and consistent.
457 No real code change otherwise.
458
c5bcd278
SM
4592015-10-09 Simon Marchi <simon.marchi@ericsson.com>
460
461 * i386-tdep.h (struct gdbarch_tdep): Change type of
462 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
463
78c5b882
SM
4642015-10-09 Simon Marchi <simon.marchi@ericsson.com>
465
466 * cris-tdep.c (struct instruction_environment): Change type of
467 byte_order to enum bfd_endian.
468
f9fa37b3
SM
4692015-10-09 Simon Marchi <simon.marchi@ericsson.com>
470
471 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
472 enum gdb_syscall casts.
473
7c543f7b
SM
4742015-10-09 Simon Marchi <simon.marchi@ericsson.com>
475
476 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
477 * arm-tdep.c (struct stack_item): Likewise.
478 (push_stack_item): Add gdb_byte* cast.
479 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
480 (push_stack_item): Add gdb_byte* cast.
481 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
482 and add cast.
483 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
484 (push_stack_item): Add gdb_byte* cast.
485 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
486 add cast.
487 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
488 gdb_byte*.
489 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
490 gdb_byte* and remove unnecessary cast.
491 (h8300h_extract_return_value): Likewise.
492 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
493 (h8300h_store_return_value): Likewise.
494 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
495 gdb_byte* and remove unnecessary cast.
496 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
497 and add cast.
498 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
499 gdb_byte* and remove unnecessary cast.
500 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
501 valbuf.
502 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
503 (mep_pseudo_cr64_read): Likewise.
504 (mep_pseudo_csr_write): Likewise.
505 (mep_pseudo_cr32_write): Likewise.
506 (mep_pseudo_cr64_write): Likewise.
507 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
508 gdb_byte* and add cast.
509 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
510 gdb_byte* and remove unnecessary cast.
511 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
512 valbuf.
513 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
514 gdb_byte*.
515 * printcmd.c (void): Likewise.
516 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
517 gdb_byte* and add cast.
518 (infpy_write_memory): Likewise.
519 (infpy_search_memory): Likewise.
520 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
521 and add cast.
522 (regcache_raw_write_unsigned): Likewise.
523 (regcache_cooked_write_signed): Likewise.
524 (regcache_cooked_write_unsigned): Likewise.
525 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
526 gdb_byte*.
527
7567e115
SM
5282015-10-09 Simon Marchi <simon.marchi@ericsson.com>
529
530 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
531 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
532
f9acce4a
EZ
5332015-10-09 Eli Zaretskii <eliz@gnu.org>
534
535 * stack.c (print_stack_frame):
536 * utils.c (printchar): Fix typos in commentary.
537
d5d8c4e1
IB
5382015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
539
540 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
541 (PostfixExpression): Support `expr.sizeof' expressions.
542 (PrimaryExpression): Support `typeof(expr)' expressions.
543
4e7de155
MR
5442015-10-08 Maciej W. Rozycki <macro@imgtec.com>
545
546 * MAINTAINERS: Update my email address.
547
04c4fe8c
MM
5482015-10-08 Markus Metzger <markus.t.metzger@intel.com>
549
550 * record-btrace.c (record_btrace_resume): Fix void return.
551
f77ee802
YQ
5522015-10-07 Yao Qi <yao.qi@linaro.org>
553
554 * aarch64-tdep.c: Include opcode/aarch64.h.
555 (submask): Move it above.
556 (bit): Likewise.
557 (bits): Likewise.
558 (aarch64_software_single_step): Call aarch64_decode_insn.
559 Decode instruction by aarch64_inst instead of using
560 aarch64_decode_bcond and decode_masked_match.
561
cbd641ed
PS
5622015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
563
564 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
565 only when the file is binary.
566
ae4e2501 5672015-10-02 James Bowman <james.bowman@ftdichip.com>
568
569 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
570 subroutine handling.
571
dd0a637a
SM
5722015-10-01 Simon Marchi <simon.marchi@ericsson.com>
573
574 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
575
1fd60fc0
DE
5762015-09-30 Doug Evans <dje@google.com>
577
578 * dwarf2read.c (setup_type_unit_groups): Add comment.
579
398e0813
PA
5802015-09-30 Pedro Alves <palves@redhat.com>
581
582 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
583 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
584 (x86_linux_create_target): Don't install
585 x86_linux_always_non_stop_p.
586
6ab24463
DB
5872015-09-30 Don Breazeal <donb@codesourcery.com>
588
589 * remote.c (remote_parse_stop_reply): Call strprefix instead
590 of strncmp.
591
ede5f151
SM
5922015-09-30 Simon Marchi <simon.marchi@ericsson.com>
593
594 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
595 * gdbarch.h: Regenerate.
596 * i386-tdep.c (i386_gdbarch_init): Remove cast to
597 struct gdbarch_tdep_info *.
598 * mips-tdep.c (mips_gdbarch_init): Likewise.
599 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
600 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
601 * spu-multiarch.c (spu_gdbarch): Likewise.
602
51c935fa 6032015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
604
605 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
606 record a NULL value.
607
3b1ad7d5
KB
6082015-09-29 Kevin Buettner <kevinb@redhat.com>
609
610 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
611 and union arguments the same as pointer arguments when determining
612 size of argument.
613
86feccb9 6142015-09-29 James Bowman <james.bowman@ftdichip.com>
615
616 * ft32-tdep.c: #include "opcode/ft32.h".
617 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
618 (ft32_analyze_prologue): Use FT32_* macros.
619
2181a6c6
SM
6202015-09-28 Simon Marchi <simon.marchi@ericsson.com>
621
84d73afc 622 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
623 comment.
624
245af596
DE
6252015-09-28 Doug Evans <dje@google.com>
626
627 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
628
c402ef90
DE
6292015-09-28 Doug Evans <dje@google.com>
630
631 * common/filestuff.c (make_cleanup_close): Update comment.
632
38bc8217 6332015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
bc84451b
SM
634
635 * btrace.c (parse_xml_btrace_block): Fix cast of
636 xml_find_attribute's return value.
637 * memory-map.c (memory_map_start_memory): Likewise.
638 * solib-svr4.c (library_list_start_library): Likewise.
639 * solib-target.c (library_list_start_segment): Likewise.
640 (library_list_start_section): Likewise.
641 * tracepoint.c (traceframe_info_start_memory): Likewise.
642
ba587d55
IB
6432015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
644
645 * d-namespace.c (d_lookup_symbol): New arg langdef.
646 All callers updated. Support looking up symbol as a primitive type.
647 (lookup_module_scope): New arg langdef. All callers updated.
648 Call d_lookup_symbol directly for simple bare symbols.
649
19ba03f4
SM
6502015-09-25 Simon Marchi <simon.marchi@ericsson.com>
651
652 * macrocmd.c (print_macro_callback): Add cast(s).
653 * macrotab.c (macro_bcache_str): Likewise.
654 (new_macro_definition): Likewise.
655 * main.c (captured_main): Likewise.
656 * maint.c (print_bfd_section_info): Likewise.
657 * mdebugread.c (mdebug_build_psymtabs): Likewise.
658 (basic_type): Likewise.
659 * memattr.c (mem_region_cmp): Likewise.
660 * memory-map.c (memory_map_start_memory): Likewise.
661 (memory_map_end_memory): Likewise.
662 (memory_map_start_property): Likewise.
663 (memory_map_end_property): Likewise.
664 (clear_result): Likewise.
665 * memrange.c (compare_mem_ranges): Likewise.
666 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
667 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
668 * mi/mi-console.c (mi_console_file_delete): Likewise.
669 (mi_console_file_fputs): Likewise.
670 (mi_console_raw_packet): Likewise.
671 (mi_console_file_flush): Likewise.
672 (mi_console_set_raw): Likewise.
673 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
674 (mi_new_thread): Likewise.
675 (mi_thread_exit): Likewise.
676 (mi_record_changed): Likewise.
677 (mi_inferior_added): Likewise.
678 (mi_inferior_appeared): Likewise.
679 (mi_inferior_exit): Likewise.
680 (mi_inferior_removed): Likewise.
681 (mi_interp_data): Likewise.
682 (mi_on_normal_stop): Likewise.
683 (mi_traceframe_changed): Likewise.
684 (mi_tsv_created): Likewise.
685 (mi_tsv_deleted): Likewise.
686 (mi_tsv_modified): Likewise.
687 (mi_breakpoint_created): Likewise.
688 (mi_breakpoint_deleted): Likewise.
689 (mi_breakpoint_modified): Likewise.
690 (mi_output_running_pid): Likewise.
691 (mi_inferior_count): Likewise.
692 (mi_solib_loaded): Likewise.
693 (mi_solib_unloaded): Likewise.
694 (mi_command_param_changed): Likewise.
695 (mi_memory_changed): Likewise.
696 (report_initial_inferior): Likewise.
697 (mi_ui_out): Likewise.
698 (mi_set_logging): Likewise.
699 * mi/mi-main.c (collect_cores): Likewise.
700 (print_one_inferior): Likewise.
701 (free_vector_of_ints): Likewise.
702 (free_splay_tree): Likewise.
703 (mi_execute_command): Likewise.
704 * mi/mi-out.c (mi_table_body): Likewise.
705 (mi_table_end): Likewise.
706 (mi_table_header): Likewise.
707 (mi_begin): Likewise.
708 (mi_end): Likewise.
709 (mi_field_int): Likewise.
710 (mi_field_string): Likewise.
711 (mi_field_fmt): Likewise.
712 (mi_flush): Likewise.
713 (mi_redirect): Likewise.
714 (field_separator): Likewise.
715 (mi_open): Likewise.
716 (mi_close): Likewise.
717 (mi_out_buffered): Likewise.
718 (mi_out_rewind): Likewise.
719 (mi_out_put): Likewise.
720 (mi_version): Likewise.
721 (mi_out_data_dtor): Likewise.
722 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
723 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
724 * minidebug.c (lzma_open): Likewise.
725 (lzma_pread): Likewise.
726 (lzma_close): Likewise.
727 (lzma_stat): Likewise.
728 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
729 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
730 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
731 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
732 (mips_micro_frame_cache): Likewise.
733 (mips_insn32_frame_cache): Likewise.
734 (mips_stub_frame_cache): Likewise.
735 (gdb_print_insn_mips): Likewise.
736 (value_of_mips_user_reg): Likewise.
737 (mips_gdbarch_init): Likewise.
738 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
739 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
740 (mipsnbsd_supply_gregset): Likewise.
741 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
742 (am33_collect_gregset_method): Likewise.
743 (am33_collect_fpregset_method): Likewise.
744 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
745 * moxie-tdep.c (moxie_frame_cache): Likewise.
746 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
747 (msp430_analyze_frame_prologue): Likewise.
748 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
749 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
750 (nios2_collect_gregset): Likewise.
751 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
752 (nios2_stub_frame_cache): Likewise.
753 * objc-lang.c (find_methods): Likewise.
754 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
755 (get_objfile_pspace_data): Likewise.
756 (get_objfile_bfd_data): Likewise.
757 (objfile_bfd_data_free): Likewise.
758 (add_to_objfile_sections): Likewise.
759 (do_free_objfile_cleanup): Likewise.
760 (resume_section_map_updates_cleanup): Likewise.
761 * opencl-lang.c (builtin_opencl_type): Likewise.
762 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
763 * osdata.c (osdata_start_osdata): Likewise.
764 (osdata_start_item): Likewise.
765 (osdata_start_column): Likewise.
766 (osdata_end_column): Likewise.
767 (clear_parsing_data): Likewise.
768 (osdata_free_cleanup): Likewise.
769 * parse.c (type_stack_cleanup): Likewise.
770 (exp_uses_objfile_iter): Likewise.
771 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
772 (ppc_linux_collect_gregset): Likewise.
773 (ppu2spu_prev_arch): Likewise.
774 (ppu2spu_this_id): Likewise.
775 (ppu2spu_prev_register): Likewise.
776 (ppu2spu_unwind_register): Likewise.
777 (ppu2spu_sniffer): Likewise.
778 (ppu2spu_dealloc_cache): Likewise.
779 (ppc_linux_init_abi): Likewise.
780 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
781 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
782 * progspace.c (restore_program_space): Likewise.
783 * psymtab.c (find_pc_sect_psymtab): Likewise.
784 (compare_psymbols): Likewise.
785 (psymbol_bcache_full): Likewise.
786 (allocate_psymtab): Likewise.
787 (discard_psymtabs_upto): Likewise.
788 * python/py-block.c (set_block): Likewise.
789 (del_objfile_blocks): Likewise.
790 * python/py-breakpoint.c (build_bp_list): Likewise.
791 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
792 (build_inferior_list): Likewise.
793 (py_free_inferior): Likewise.
794 * python/py-objfile.c (py_free_objfile): Likewise.
795 (objfile_to_objfile_object): Likewise.
796 * python/py-prettyprint.c (py_restore_tstate): Likewise.
797 * python/py-progspace.c (py_free_pspace): Likewise.
798 (pspace_to_pspace_object): Likewise.
799 * python/py-symbol.c (set_symbol): Likewise.
800 (del_objfile_symbols): Likewise.
801 * python/py-symtab.c (set_sal): Likewise.
802 (set_symtab): Likewise.
803 (del_objfile_symtab): Likewise.
804 (del_objfile_sal): Likewise.
805 * python/py-type.c (save_objfile_types): Likewise.
806 (set_type): Likewise.
807 * python/py-unwind.c (pyuw_prev_register): Likewise.
808 (pyuw_on_new_gdbarch): Likewise.
809 * python/py-utils.c (py_decref): Likewise.
810 (py_xdecref): Likewise.
811 (gdb_py_generic_dict): Likewise.
812 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
813 (gdbpy_clone_xmethod_worker_data): Likewise.
814 (gdbpy_get_xmethod_arg_types): Likewise.
815 (gdbpy_get_xmethod_result_type): Likewise.
816 (gdbpy_invoke_xmethod): Likewise.
817 * python/python.c (gdbpy_apply_type_printers): Likewise.
818 (gdbpy_free_type_printers): Likewise.
819 * record-btrace.c (record_btrace_disable_callback): Likewise.
820 (bfcache_hash): Likewise.
821 (bfcache_eq): Likewise.
822 (btrace_get_frame_function): Likewise.
823 (record_btrace_frame_unwind_stop_reason): Likewise.
824 (record_btrace_frame_this_id): Likewise.
825 (record_btrace_frame_prev_register): Likewise.
826 (record_btrace_frame_dealloc_cache): Likewise.
827 * record-full.c (record_full_message_wrapper): Likewise.
828 (record_full_save_cleanups): Likewise.
829 * regcache.c (regcache_descr): Likewise.
830 (do_regcache_xfree): Likewise.
831 (do_regcache_invalidate): Likewise.
832 (do_cooked_read): Likewise.
833 (regcache_transfer_regset): Likewise.
834 * reggroups.c (reggroup_add): Likewise.
835 (reggroup_next): Likewise.
836 (reggroup_prev): Likewise.
837 * remote-fileio.c (do_remote_fileio_request): Likewise.
838 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
839 (do_notif_event_xfree): Likewise.
840 * remote.c (get_remote_arch_state): Likewise.
841 (remote_pspace_data_cleanup): Likewise.
842 (get_remote_exec_file): Likewise.
843 (set_pspace_remote_exec_file): Likewise.
844 (compare_pnums): Likewise.
845 (clear_threads_listing_context): Likewise.
846 (remote_newthread_step): Likewise.
847 (start_thread): Likewise.
848 (end_thread): Likewise.
849 (remove_child_of_pending_fork): Likewise.
850 (remove_stop_reply_for_inferior): Likewise.
851 (remove_stop_reply_of_remote_state): Likewise.
852 (remote_notif_remove_once_on_match): Likewise.
853 (stop_reply_match_ptid_and_ws): Likewise.
854 (kill_child_of_pending_fork): Likewise.
855 (register_remote_g_packet_guess): Likewise.
856 (remote_read_description_p): Likewise.
857 (remote_read_description): Likewise.
858 (free_actions_list_cleanup_wrapper): Likewise.
859 (remote_async_serial_handler): Likewise.
860 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
861 (rl78_analyze_frame_prologue): Likewise.
862 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
863 (ppc_supply_fpregset): Likewise.
864 (ppc_supply_vsxregset): Likewise.
865 (ppc_supply_vrregset): Likewise.
866 (ppc_collect_gregset): Likewise.
867 (ppc_collect_fpregset): Likewise.
868 (ppc_collect_vsxregset): Likewise.
869 (ppc_collect_vrregset): Likewise.
870 (e500_move_ev_register): Likewise.
871 (do_regcache_raw_write): Likewise.
872 (rs6000_frame_cache): Likewise.
873 (rs6000_epilogue_frame_cache): Likewise.
874 (rs6000_gdbarch_init): Likewise.
875 * rx-tdep.c (rx_get_opcode_byte): Likewise.
876 (rx_analyze_frame_prologue): Likewise.
877 (rx_frame_type): Likewise.
878 (rx_frame_sniffer_common): Likewise.
879 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
880 (s390_frame_unwind_cache): Likewise.
881 (s390_stub_frame_unwind_cache): Likewise.
882 (s390_sigtramp_frame_unwind_cache): Likewise.
883 * score-tdep.c (score_make_prologue_cache): Likewise.
884 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
885 (sentinel_frame_prev_arch): Likewise.
886 * ser-base.c (fd_event): Likewise.
887 (push_event): Likewise.
888 (ser_base_write): Likewise.
889 * ser-pipe.c (pipe_close): Likewise.
890 * serial.c (serial_write): Likewise.
891 * sh-tdep.c (sh_frame_cache): Likewise.
892 (sh_stub_this_id): Likewise.
893 * sh64-tdep.c (sh64_frame_cache): Likewise.
894 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
895 (library_list_start_library): Likewise.
896 (library_list_start_list): Likewise.
897 (solib_aix_free_library_list): Likewise.
898 * solib-darwin.c (get_darwin_info): Likewise.
899 * solib-dsbt.c (get_dsbt_info): Likewise.
900 * solib-spu.c (append_ocl_sos): Likewise.
901 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
902 (get_svr4_info): Likewise.
903 (library_list_start_library): Likewise.
904 (svr4_library_list_start_list): Likewise.
905 (hash_probe_and_action): Likewise.
906 (equal_probe_and_action): Likewise.
907 (svr4_update_solib_event_breakpoint): Likewise.
908 (set_solib_svr4_fetch_link_map_offsets): Likewise.
909 (svr4_fetch_link_map_offsets): Likewise.
910 (svr4_have_link_map_offsets): Likewise.
911 * solib-target.c (library_list_start_segment): Likewise.
912 (library_list_start_section): Likewise.
913 (library_list_start_library): Likewise.
914 (library_list_end_library): Likewise.
915 (library_list_start_list): Likewise.
916 (solib_target_free_library_list): Likewise.
917 * solib.c (solib_ops): Likewise.
918 (set_solib_ops): Likewise.
919 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
920 * sparc-tdep.c (sparc_frame_cache): Likewise.
921 (sparc32_frame_cache): Likewise.
922 (sparc32_supply_gregset): Likewise.
923 (sparc32_collect_gregset): Likewise.
924 (sparc32_supply_fpregset): Likewise.
925 (sparc32_collect_fpregset): Likewise.
926 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
927 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
928 (sparc64_collect_gregset): Likewise.
929 (sparc64_supply_fpregset): Likewise.
930 (sparc64_collect_fpregset): Likewise.
931 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
932 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
933 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
934 (sparc64obsd_trapframe_cache): Likewise.
935 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
936 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
937 * spu-multiarch.c (spu_gdbarch): Likewise.
938 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
939 (spu2ppu_prev_arch): Likewise.
940 (spu2ppu_this_id): Likewise.
941 (spu2ppu_prev_register): Likewise.
942 (spu2ppu_dealloc_cache): Likewise.
943 (spu_dis_asm_print_address): Likewise.
944 (gdb_print_insn_spu): Likewise.
945 (spu_get_overlay_table): Likewise.
946 * stabsread.c (rs6000_builtin_type): Likewise.
947 * stack.c (do_print_variable_and_value): Likewise.
948 * stap-probe.c (get_stap_base_address_1): Likewise.
949 * symfile-debug.c (debug_qf_has_symbols): Likewise.
950 (debug_qf_find_last_source_symtab): Likewise.
951 (debug_qf_forget_cached_source_info): Likewise.
952 (debug_qf_map_symtabs_matching_filename): Likewise.
953 (debug_qf_lookup_symbol): Likewise.
954 (debug_qf_print_stats): Likewise.
955 (debug_qf_dump): Likewise.
956 (debug_qf_relocate): Likewise.
957 (debug_qf_expand_symtabs_for_function): Likewise.
958 (debug_qf_expand_all_symtabs): Likewise.
959 (debug_qf_expand_symtabs_with_fullname): Likewise.
960 (debug_qf_map_matching_symbols): Likewise.
961 (debug_qf_expand_symtabs_matching): Likewise.
962 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
963 (debug_qf_map_symbol_filenames): Likewise.
964 (debug_sym_get_probes): Likewise.
965 (debug_sym_new_init): Likewise.
966 (debug_sym_init): Likewise.
967 (debug_sym_read): Likewise.
968 (debug_sym_read_psymbols): Likewise.
969 (debug_sym_finish): Likewise.
970 (debug_sym_offsets): Likewise.
971 (debug_sym_read_linetable): Likewise.
972 (debug_sym_relocate): Likewise.
973 (uninstall_symfile_debug_logging): Likewise.
974 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
975 * symfile.c (place_section): Likewise.
976 (add_section_size_callback): Likewise.
977 (load_progress): Likewise.
978 (load_section_callback): Likewise.
979 (clear_memory_write_data): Likewise.
980 (allocate_symtab): Likewise.
981 * symmisc.c (maintenance_expand_file_matcher): Likewise.
982 * symtab.c (lookup_symtab_callback): Likewise.
983 (hash_demangled_name_entry): Likewise.
984 (eq_demangled_name_entry): Likewise.
985 (get_symbol_cache): Likewise.
986 (symbol_cache_cleanup): Likewise.
987 (set_symbol_cache_size): Likewise.
988 (symbol_cache_flush): Likewise.
989 (maintenance_print_symbol_cache): Likewise.
990 (maintenance_print_symbol_cache_statistics): Likewise.
991 (delete_filename_seen_cache): Likewise.
992 (output_partial_symbol_filename): Likewise.
993 (search_symbols_file_matches): Likewise.
994 (search_symbols_name_matches): Likewise.
995 (do_free_completion_list): Likewise.
996 (maybe_add_partial_symtab_filename): Likewise.
997 (get_main_info): Likewise.
998 (main_info_cleanup): Likewise.
999 * target-dcache.c (target_dcache_cleanup): Likewise.
1000 (target_dcache_init_p): Likewise.
1001 (target_dcache_invalidate): Likewise.
1002 (target_dcache_get): Likewise.
1003 (target_dcache_get_or_init): Likewise.
1004 * target-descriptions.c (target_find_description): Likewise.
1005 (tdesc_find_type): Likewise.
1006 (tdesc_data_cleanup): Likewise.
1007 (tdesc_find_arch_register): Likewise.
1008 (tdesc_register_name): Likewise.
1009 (tdesc_register_type): Likewise.
1010 (tdesc_register_reggroup_p): Likewise.
1011 (set_tdesc_pseudo_register_name): Likewise.
1012 (set_tdesc_pseudo_register_type): Likewise.
1013 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1014 (tdesc_use_registers): Likewise.
1015 (free_target_description): Likewise.
1016 * target-memory.c (compare_block_starting_address): Likewise.
1017 (cleanup_request_data): Likewise.
1018 (cleanup_write_requests_vector): Likewise.
1019 * target.c (open_target): Likewise.
1020 (cleanup_restore_target_terminal): Likewise.
1021 (free_memory_read_result_vector): Likewise.
1022 * thread.c (disable_thread_stack_temporaries): Likewise.
1023 (finish_thread_state_cleanup): Likewise.
1024 (do_restore_current_thread_cleanup): Likewise.
1025 (restore_current_thread_cleanup_dtor): Likewise.
1026 (set_thread_refcount): Likewise.
1027 (tp_array_compar): Likewise.
1028 (do_captured_thread_select): Likewise.
1029 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1030 (tic6x_stub_this_id): Likewise.
1031 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1032 * top.c (do_restore_instream_cleanup): Likewise.
1033 (gdb_readline_wrapper_cleanup): Likewise.
1034 (kill_or_detach): Likewise.
1035 (print_inferior_quit_action): Likewise.
1036 * tracefile-tfile.c (match_blocktype): Likewise.
1037 (build_traceframe_info): Likewise.
1038 * tracefile.c (trace_file_writer_xfree): Likewise.
1039 * tracepoint.c (memrange_cmp): Likewise.
1040 (do_collect_symbol): Likewise.
1041 (do_clear_collection_list): Likewise.
1042 (do_restore_current_traceframe_cleanup): Likewise.
1043 (restore_current_traceframe_cleanup_dtor): Likewise.
1044 (free_current_marker): Likewise.
1045 (traceframe_info_start_memory): Likewise.
1046 (traceframe_info_start_tvar): Likewise.
1047 (free_result): Likewise.
1048 * tramp-frame.c (tramp_frame_cache): Likewise.
1049 * tui/tui-file.c (tui_file_delete): Likewise.
1050 (tui_fileopen): Likewise.
1051 (tui_sfileopen): Likewise.
1052 (tui_file_isatty): Likewise.
1053 (tui_file_rewind): Likewise.
1054 (tui_file_put): Likewise.
1055 (tui_file_fputs): Likewise.
1056 (tui_file_get_strbuf): Likewise.
1057 (tui_file_adjust_strbuf): Likewise.
1058 (tui_file_flush): Likewise.
1059 * tui/tui-layout.c (make_command_window): Likewise.
1060 (make_data_window): Likewise.
1061 (show_source_disasm_command): Likewise.
1062 (show_data): Likewise.
1063 (make_source_or_disasm_window): Likewise.
1064 (show_source_or_disasm_and_command): Likewise.
1065 * tui/tui-out.c (tui_field_int): Likewise.
1066 (tui_field_string): Likewise.
1067 (tui_field_fmt): Likewise.
1068 (tui_text): Likewise.
1069 * typeprint.c (hash_typedef_field): Likewise.
1070 (eq_typedef_field): Likewise.
1071 (do_free_typedef_hash): Likewise.
1072 (copy_typedef_hash_element): Likewise.
1073 (do_free_global_table): Likewise.
1074 (find_global_typedef): Likewise.
1075 (find_typedef_in_hash): Likewise.
1076 * ui-file.c (ui_file_write_for_put): Likewise.
1077 (do_ui_file_xstrdup): Likewise.
1078 (mem_file_delete): Likewise.
1079 (mem_file_rewind): Likewise.
1080 (mem_file_put): Likewise.
1081 (mem_file_write): Likewise.
1082 (stdio_file_delete): Likewise.
1083 (stdio_file_flush): Likewise.
1084 (stdio_file_read): Likewise.
1085 (stdio_file_write): Likewise.
1086 (stdio_file_write_async_safe): Likewise.
1087 (stdio_file_fputs): Likewise.
1088 (stdio_file_isatty): Likewise.
1089 (stdio_file_fseek): Likewise.
1090 (tee_file_delete): Likewise.
1091 (tee_file_flush): Likewise.
1092 (tee_file_write): Likewise.
1093 (tee_file_fputs): Likewise.
1094 (tee_file_isatty): Likewise.
1095 * ui-out.c (do_cleanup_table_end): Likewise.
1096 (do_cleanup_end): Likewise.
1097 * user-regs.c (user_reg_add): Likewise.
1098 (user_reg_map_name_to_regnum): Likewise.
1099 (usernum_to_user_reg): Likewise.
1100 (maintenance_print_user_registers): Likewise.
1101 * utils.c (do_bfd_close_cleanup): Likewise.
1102 (do_fclose_cleanup): Likewise.
1103 (do_obstack_free): Likewise.
1104 (do_ui_file_delete): Likewise.
1105 (do_ui_out_redirect_pop): Likewise.
1106 (do_free_section_addr_info): Likewise.
1107 (restore_integer): Likewise.
1108 (do_unpush_target): Likewise.
1109 (do_htab_delete_cleanup): Likewise.
1110 (do_restore_ui_file): Likewise.
1111 (do_value_free): Likewise.
1112 (do_free_so): Likewise.
1113 (free_current_contents): Likewise.
1114 (do_regfree_cleanup): Likewise.
1115 (core_addr_hash): Likewise.
1116 (core_addr_eq): Likewise.
1117 (do_free_char_ptr_vec): Likewise.
1118 * v850-tdep.c (v850_frame_cache): Likewise.
1119 * varobj.c (do_free_variable_cleanup): Likewise.
1120 * vax-tdep.c (vax_supply_gregset): Likewise.
1121 (vax_frame_cache): Likewise.
1122 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1123 * xml-support.c (gdb_xml_body_text): Likewise.
1124 (gdb_xml_values_cleanup): Likewise.
1125 (gdb_xml_start_element): Likewise.
1126 (gdb_xml_start_element_wrapper): Likewise.
1127 (gdb_xml_end_element): Likewise.
1128 (gdb_xml_end_element_wrapper): Likewise.
1129 (gdb_xml_cleanup): Likewise.
1130 (gdb_xml_fetch_external_entity): Likewise.
1131 (gdb_xml_parse_attr_enum): Likewise.
1132 (xinclude_start_include): Likewise.
1133 (xinclude_end_include): Likewise.
1134 (xml_xinclude_default): Likewise.
1135 (xml_xinclude_start_doctype): Likewise.
1136 (xml_xinclude_end_doctype): Likewise.
1137 (xml_xinclude_cleanup): Likewise.
1138 (xml_fetch_content_from_file): Likewise.
1139 * xml-syscall.c (free_syscalls_info): Likewise.
1140 (syscall_start_syscall): Likewise.
1141 * xml-tdesc.c (tdesc_end_arch): Likewise.
1142 (tdesc_end_osabi): Likewise.
1143 (tdesc_end_compatible): Likewise.
1144 (tdesc_start_target): Likewise.
1145 (tdesc_start_feature): Likewise.
1146 (tdesc_start_reg): Likewise.
1147 (tdesc_start_union): Likewise.
1148 (tdesc_start_struct): Likewise.
1149 (tdesc_start_flags): Likewise.
1150 (tdesc_start_field): Likewise.
1151 (tdesc_start_vector): Likewise.
1152 (fetch_available_features_from_target): Likewise.
1153 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1154 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1155 (xtensa_frame_cache): Likewise.
1156 (xtensa_frame_prev_register): Likewise.
1157 (xtensa_extract_return_value): Likewise.
1158
9a3c8263
SM
11592015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1160
1161 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1162 (aarch64_make_stub_cache): Likewise.
1163 (value_of_aarch64_user_reg): Likewise.
1164 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1165 (get_ada_inferior_data): Likewise.
1166 (get_ada_pspace_data): Likewise.
1167 (ada_pspace_data_cleanup): Likewise.
1168 (ada_complete_symbol_matcher): Likewise.
1169 (ada_exc_search_name_matches): Likewise.
1170 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1171 (get_ada_tasks_inferior_data): Likewise.
1172 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1173 (splay_obstack_alloc): Likewise.
1174 (splay_obstack_free): Likewise.
1175 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1176 (alpha_linux_collect_gregset): Likewise.
1177 (alpha_linux_supply_fpregset): Likewise.
1178 (alpha_linux_collect_fpregset): Likewise.
1179 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1180 * alpha-tdep.c (alpha_lds): Likewise.
1181 (alpha_sts): Likewise.
1182 (alpha_sigtramp_frame_unwind_cache): Likewise.
1183 (alpha_heuristic_frame_unwind_cache): Likewise.
1184 (alpha_supply_int_regs): Likewise.
1185 (alpha_fill_int_regs): Likewise.
1186 (alpha_supply_fp_regs): Likewise.
1187 (alpha_fill_fp_regs): Likewise.
1188 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1189 (alphanbsd_aout_supply_gregset): Likewise.
1190 (alphanbsd_supply_gregset): Likewise.
1191 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1192 (amd64_x32_linux_init_abi): Likewise.
1193 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1194 (amd64_collect_native_gregset): Likewise.
1195 * amd64-tdep.c (amd64_frame_cache): Likewise.
1196 (amd64_sigtramp_frame_cache): Likewise.
1197 (amd64_epilogue_frame_cache): Likewise.
1198 (amd64_supply_fxsave): Likewise.
1199 (amd64_supply_xsave): Likewise.
1200 (amd64_collect_fxsave): Likewise.
1201 (amd64_collect_xsave): Likewise.
1202 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1203 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1204 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1205 (arm_linux_collect_gregset): Likewise.
1206 (arm_linux_supply_nwfpe): Likewise.
1207 (arm_linux_collect_nwfpe): Likewise.
1208 (arm_linux_supply_vfp): Likewise.
1209 (arm_linux_collect_vfp): Likewise.
1210 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1211 (arm_prologue_unwind_stop_reason): Likewise.
1212 (arm_prologue_this_id): Likewise.
1213 (arm_prologue_prev_register): Likewise.
1214 (arm_exidx_data_free): Likewise.
1215 (arm_find_exidx_entry): Likewise.
1216 (arm_stub_this_id): Likewise.
1217 (arm_m_exception_this_id): Likewise.
1218 (arm_m_exception_prev_register): Likewise.
1219 (arm_normal_frame_base): Likewise.
1220 (gdb_print_insn_arm): Likewise.
1221 (arm_objfile_data_free): Likewise.
1222 (arm_record_special_symbol): Likewise.
1223 (value_of_arm_user_reg): Likewise.
1224 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1225 (armbsd_supply_gregset): Likewise.
1226 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1227 (get_auto_load_pspace_data): Likewise.
1228 (hash_loaded_script_entry): Likewise.
1229 (eq_loaded_script_entry): Likewise.
1230 (clear_section_scripts): Likewise.
1231 (collect_matching_scripts): Likewise.
1232 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1233 (get_auxv_inferior_data): Likewise.
1234 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1235 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1236 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1237 (target_bfd_xclose): Likewise.
1238 (target_bfd_get_section_table): Likewise.
1239 * bfin-tdep.c (bfin_frame_cache): Likewise.
1240 * block.c (find_block_in_blockvector): Likewise.
1241 (call_site_for_pc): Likewise.
1242 (block_find_non_opaque_type_preferred): Likewise.
1243 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1244 (signal_catchpoint_remove_location): Likewise.
1245 (signal_catchpoint_breakpoint_hit): Likewise.
1246 (signal_catchpoint_print_one): Likewise.
1247 (signal_catchpoint_print_mention): Likewise.
1248 (signal_catchpoint_print_recreate): Likewise.
1249 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1250 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1251 (bp_location_compare_addrs): Likewise.
1252 (get_first_locp_gte_addr): Likewise.
1253 (check_tracepoint_command): Likewise.
1254 (do_map_commands_command): Likewise.
1255 (get_breakpoint_objfile_data): Likewise.
1256 (free_breakpoint_probes): Likewise.
1257 (do_captured_breakpoint_query): Likewise.
1258 (compare_breakpoints): Likewise.
1259 (bp_location_compare): Likewise.
1260 (bpstat_remove_breakpoint_callback): Likewise.
1261 (do_delete_breakpoint_cleanup): Likewise.
1262 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1263 (bsd_uthread_set_collect_uthread): Likewise.
1264 (bsd_uthread_activate): Likewise.
1265 (bsd_uthread_fetch_registers): Likewise.
1266 (bsd_uthread_store_registers): Likewise.
1267 * btrace.c (check_xml_btrace_version): Likewise.
1268 (parse_xml_btrace_block): Likewise.
1269 (parse_xml_btrace_pt_config_cpu): Likewise.
1270 (parse_xml_btrace_pt_raw): Likewise.
1271 (parse_xml_btrace_pt): Likewise.
1272 (parse_xml_btrace_conf_bts): Likewise.
1273 (parse_xml_btrace_conf_pt): Likewise.
1274 (do_btrace_data_cleanup): Likewise.
1275 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1276 * charset.c (cleanup_iconv): Likewise.
1277 (do_cleanup_iterator): Likewise.
1278 * cli-out.c (cli_uiout_dtor): Likewise.
1279 (cli_table_begin): Likewise.
1280 (cli_table_body): Likewise.
1281 (cli_table_end): Likewise.
1282 (cli_table_header): Likewise.
1283 (cli_begin): Likewise.
1284 (cli_end): Likewise.
1285 (cli_field_int): Likewise.
1286 (cli_field_skip): Likewise.
1287 (cli_field_string): Likewise.
1288 (cli_field_fmt): Likewise.
1289 (cli_spaces): Likewise.
1290 (cli_text): Likewise.
1291 (cli_message): Likewise.
1292 (cli_wrap_hint): Likewise.
1293 (cli_flush): Likewise.
1294 (cli_redirect): Likewise.
1295 (out_field_fmt): Likewise.
1296 (field_separator): Likewise.
1297 (cli_out_set_stream): Likewise.
1298 * cli/cli-cmds.c (compare_symtabs): Likewise.
1299 * cli/cli-dump.c (call_dump_func): Likewise.
1300 (restore_section_callback): Likewise.
1301 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1302 (do_restore_user_call_depth): Likewise.
1303 (do_free_command_lines_cleanup): Likewise.
1304 * coff-pe-read.c (get_section_vmas): Likewise.
1305 (pe_as16): Likewise.
1306 (pe_as32): Likewise.
1307 * coffread.c (coff_symfile_read): Likewise.
1308 * common/agent.c (agent_look_up_symbols): Likewise.
1309 * common/filestuff.c (do_close_cleanup): Likewise.
1310 * common/format.c (free_format_pieces_cleanup): Likewise.
1311 * common/vec.c (vec_o_reserve): Likewise.
1312 * compile/compile-c-support.c (print_one_macro): Likewise.
1313 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1314 (eq_symbol_error): Likewise.
1315 (del_symbol_error): Likewise.
1316 (error_symbol_once): Likewise.
1317 (gcc_convert_symbol): Likewise.
1318 (gcc_symbol_address): Likewise.
1319 (hash_symname): Likewise.
1320 (eq_symname): Likewise.
1321 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1322 (eq_type_map_instance): Likewise.
1323 (insert_type): Likewise.
1324 (convert_type): Likewise.
1325 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1326 (setup_sections): Likewise.
1327 (link_hash_table_free): Likewise.
1328 (copy_sections): Likewise.
1329 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1330 * compile/compile.c (compile_print_value): Likewise.
1331 (do_rmdir): Likewise.
1332 (cleanup_compile_instance): Likewise.
1333 (cleanup_unlink_file): Likewise.
1334 * completer.c (free_completion_tracker): Likewise.
1335 * corelow.c (add_to_spuid_list): Likewise.
1336 * cp-namespace.c (reset_directive_searched): Likewise.
1337 * cp-support.c (reset_directive_searched): Likewise.
1338 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1339 (cris_frame_unwind_cache): Likewise.
1340 * d-lang.c (builtin_d_type): Likewise.
1341 * d-namespace.c (reset_directive_searched): Likewise.
1342 * dbxread.c (dbx_free_symfile_info): Likewise.
1343 (do_free_bincl_list_cleanup): Likewise.
1344 * disasm.c (hash_dis_line_entry): Likewise.
1345 (eq_dis_line_entry): Likewise.
1346 (dis_asm_print_address): Likewise.
1347 (fprintf_disasm): Likewise.
1348 (do_ui_file_delete): Likewise.
1349 * doublest.c (convert_floatformat_to_doublest): Likewise.
1350 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1351 (dummy_frame_prev_register): Likewise.
1352 (dummy_frame_this_id): Likewise.
1353 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1354 (cache_eq): Likewise.
1355 (cache_find): Likewise.
1356 (tailcall_frame_this_id): Likewise.
1357 (dwarf2_tailcall_prev_register_first): Likewise.
1358 (tailcall_frame_prev_register): Likewise.
1359 (tailcall_frame_dealloc_cache): Likewise.
1360 (tailcall_frame_prev_arch): Likewise.
1361 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1362 (dwarf2_frame_set_init_reg): Likewise.
1363 (dwarf2_frame_init_reg): Likewise.
1364 (dwarf2_frame_set_signal_frame_p): Likewise.
1365 (dwarf2_frame_signal_frame_p): Likewise.
1366 (dwarf2_frame_set_adjust_regnum): Likewise.
1367 (dwarf2_frame_adjust_regnum): Likewise.
1368 (clear_pointer_cleanup): Likewise.
1369 (dwarf2_frame_cache): Likewise.
1370 (find_cie): Likewise.
1371 (dwarf2_frame_find_fde): Likewise.
1372 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1373 (free_dwarf_expr_context_cleanup): Likewise.
1374 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1375 (locexpr_get_frame_base): Likewise.
1376 (loclist_find_frame_base_location): Likewise.
1377 (loclist_get_frame_base): Likewise.
1378 (dwarf_expr_dwarf_call): Likewise.
1379 (dwarf_expr_get_base_type): Likewise.
1380 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1381 (dwarf_expr_get_obj_addr): Likewise.
1382 (entry_data_value_coerce_ref): Likewise.
1383 (entry_data_value_copy_closure): Likewise.
1384 (entry_data_value_free_closure): Likewise.
1385 (get_frame_address_in_block_wrapper): Likewise.
1386 (dwarf2_evaluate_property): Likewise.
1387 (dwarf2_compile_property_to_c): Likewise.
1388 (needs_frame_read_addr_from_reg): Likewise.
1389 (needs_frame_get_reg_value): Likewise.
1390 (needs_frame_frame_base): Likewise.
1391 (needs_frame_frame_cfa): Likewise.
1392 (needs_frame_tls_address): Likewise.
1393 (needs_frame_dwarf_call): Likewise.
1394 (needs_dwarf_reg_entry_value): Likewise.
1395 (get_ax_pc): Likewise.
1396 (locexpr_read_variable): Likewise.
1397 (locexpr_read_variable_at_entry): Likewise.
1398 (locexpr_read_needs_frame): Likewise.
1399 (locexpr_describe_location): Likewise.
1400 (locexpr_tracepoint_var_ref): Likewise.
1401 (locexpr_generate_c_location): Likewise.
1402 (loclist_read_variable): Likewise.
1403 (loclist_read_variable_at_entry): Likewise.
1404 (loclist_describe_location): Likewise.
1405 (loclist_tracepoint_var_ref): Likewise.
1406 (loclist_generate_c_location): Likewise.
1407 * dwarf2read.c (line_header_hash_voidp): Likewise.
1408 (line_header_eq_voidp): Likewise.
1409 (dwarf2_has_info): Likewise.
1410 (dwarf2_get_section_info): Likewise.
1411 (locate_dwz_sections): Likewise.
1412 (hash_file_name_entry): Likewise.
1413 (eq_file_name_entry): Likewise.
1414 (delete_file_name_entry): Likewise.
1415 (dw2_setup): Likewise.
1416 (dw2_get_file_names_reader): Likewise.
1417 (dw2_find_pc_sect_compunit_symtab): Likewise.
1418 (hash_signatured_type): Likewise.
1419 (eq_signatured_type): Likewise.
1420 (add_signatured_type_cu_to_table): Likewise.
1421 (create_debug_types_hash_table): Likewise.
1422 (lookup_dwo_signatured_type): Likewise.
1423 (lookup_dwp_signatured_type): Likewise.
1424 (lookup_signatured_type): Likewise.
1425 (hash_type_unit_group): Likewise.
1426 (eq_type_unit_group): Likewise.
1427 (get_type_unit_group): Likewise.
1428 (process_psymtab_comp_unit_reader): Likewise.
1429 (sort_tu_by_abbrev_offset): Likewise.
1430 (process_skeletonless_type_unit): Likewise.
1431 (psymtabs_addrmap_cleanup): Likewise.
1432 (dwarf2_read_symtab): Likewise.
1433 (psymtab_to_symtab_1): Likewise.
1434 (die_hash): Likewise.
1435 (die_eq): Likewise.
1436 (load_full_comp_unit_reader): Likewise.
1437 (reset_die_in_process): Likewise.
1438 (free_cu_line_header): Likewise.
1439 (handle_DW_AT_stmt_list): Likewise.
1440 (hash_dwo_file): Likewise.
1441 (eq_dwo_file): Likewise.
1442 (hash_dwo_unit): Likewise.
1443 (eq_dwo_unit): Likewise.
1444 (create_dwo_cu_reader): Likewise.
1445 (create_dwo_unit_in_dwp_v1): Likewise.
1446 (create_dwo_unit_in_dwp_v2): Likewise.
1447 (lookup_dwo_unit_in_dwp): Likewise.
1448 (dwarf2_locate_dwo_sections): Likewise.
1449 (dwarf2_locate_common_dwp_sections): Likewise.
1450 (dwarf2_locate_v2_dwp_sections): Likewise.
1451 (hash_dwp_loaded_cutus): Likewise.
1452 (eq_dwp_loaded_cutus): Likewise.
1453 (lookup_dwo_cutu): Likewise.
1454 (abbrev_table_free_cleanup): Likewise.
1455 (dwarf2_free_abbrev_table): Likewise.
1456 (find_partial_die_in_comp_unit): Likewise.
1457 (free_line_header_voidp): Likewise.
1458 (follow_die_offset): Likewise.
1459 (follow_die_sig_1): Likewise.
1460 (free_heap_comp_unit): Likewise.
1461 (free_stack_comp_unit): Likewise.
1462 (dwarf2_free_objfile): Likewise.
1463 (per_cu_offset_and_type_hash): Likewise.
1464 (per_cu_offset_and_type_eq): Likewise.
1465 (get_die_type_at_offset): Likewise.
1466 (partial_die_hash): Likewise.
1467 (partial_die_eq): Likewise.
1468 (dwarf2_per_objfile_free): Likewise.
1469 (hash_strtab_entry): Likewise.
1470 (eq_strtab_entry): Likewise.
1471 (add_string): Likewise.
1472 (hash_symtab_entry): Likewise.
1473 (eq_symtab_entry): Likewise.
1474 (delete_symtab_entry): Likewise.
1475 (cleanup_mapped_symtab): Likewise.
1476 (add_indices_to_cpool): Likewise.
1477 (hash_psymtab_cu_index): Likewise.
1478 (eq_psymtab_cu_index): Likewise.
1479 (add_address_entry_worker): Likewise.
1480 (unlink_if_set): Likewise.
1481 (write_one_signatured_type): Likewise.
1482 (save_gdb_index_command): Likewise.
1483 * elfread.c (elf_symtab_read): Likewise.
1484 (elf_gnu_ifunc_cache_hash): Likewise.
1485 (elf_gnu_ifunc_cache_eq): Likewise.
1486 (elf_gnu_ifunc_record_cache): Likewise.
1487 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1488 (elf_get_probes): Likewise.
1489 (probe_key_free): Likewise.
1490 * f-lang.c (builtin_f_type): Likewise.
1491 * frame-base.c (frame_base_append_sniffer): Likewise.
1492 (frame_base_set_default): Likewise.
1493 (frame_base_find_by_frame): Likewise.
1494 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1495 (frame_unwind_append_unwinder): Likewise.
1496 (frame_unwind_find_by_frame): Likewise.
1497 * frame.c (frame_addr_hash): Likewise.
1498 (frame_addr_hash_eq): Likewise.
1499 (frame_stash_find): Likewise.
1500 (do_frame_register_read): Likewise.
1501 (unwind_to_current_frame): Likewise.
1502 (frame_cleanup_after_sniffer): Likewise.
1503 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1504 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1505 * ft32-tdep.c (ft32_frame_cache): Likewise.
1506 * gcore.c (do_bfd_delete_cleanup): Likewise.
1507 (gcore_create_callback): Likewise.
1508 * gdb_bfd.c (hash_bfd): Likewise.
1509 (eq_bfd): Likewise.
1510 (gdb_bfd_open): Likewise.
1511 (free_one_bfd_section): Likewise.
1512 (gdb_bfd_ref): Likewise.
1513 (gdb_bfd_unref): Likewise.
1514 (get_section_descriptor): Likewise.
1515 (gdb_bfd_map_section): Likewise.
1516 (gdb_bfd_crc): Likewise.
1517 (gdb_bfd_mark_parent): Likewise.
1518 (gdb_bfd_record_inclusion): Likewise.
1519 (gdb_bfd_requires_relocations): Likewise.
1520 (print_one_bfd): Likewise.
1521 * gdbtypes.c (type_pair_hash): Likewise.
1522 (type_pair_eq): Likewise.
1523 (builtin_type): Likewise.
1524 (objfile_type): Likewise.
1525 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1526 (vtable_address_point_offset): Likewise.
1527 (gnuv3_get_vtable): Likewise.
1528 (hash_value_and_voffset): Likewise.
1529 (eq_value_and_voffset): Likewise.
1530 (compare_value_and_voffset): Likewise.
1531 (compute_vtable_size): Likewise.
1532 (gnuv3_get_typeid_type): Likewise.
1533 * go-lang.c (builtin_go_type): Likewise.
1534 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1535 (bkscm_eq_block_smob): Likewise.
1536 (bkscm_objfile_block_map): Likewise.
1537 (bkscm_del_objfile_blocks): Likewise.
1538 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1539 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1540 (gdbscm_disasm_print_address): Likewise.
1541 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1542 (frscm_eq_frame_smob): Likewise.
1543 (frscm_inferior_frame_map): Likewise.
1544 (frscm_del_inferior_frames): Likewise.
1545 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1546 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1547 (ofscm_objfile_smob_from_objfile): Likewise.
1548 * guile/scm-ports.c (ioscm_write): Likewise.
1549 (ioscm_file_port_delete): Likewise.
1550 (ioscm_file_port_rewind): Likewise.
1551 (ioscm_file_port_put): Likewise.
1552 (ioscm_file_port_write): Likewise.
1553 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1554 (psscm_pspace_smob_from_pspace): Likewise.
1555 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1556 (scscm_recording_unwind_handler): Likewise.
1557 (gdbscm_with_catch): Likewise.
1558 (scscm_call_0_body): Likewise.
1559 (scscm_call_1_body): Likewise.
1560 (scscm_call_2_body): Likewise.
1561 (scscm_call_3_body): Likewise.
1562 (scscm_call_4_body): Likewise.
1563 (scscm_apply_1_body): Likewise.
1564 (scscm_eval_scheme_string): Likewise.
1565 (gdbscm_safe_eval_string): Likewise.
1566 (scscm_source_scheme_script): Likewise.
1567 (gdbscm_safe_source_script): Likewise.
1568 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1569 (gdbscm_call_scm_from_stringn): Likewise.
1570 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1571 (syscm_eq_symbol_smob): Likewise.
1572 (syscm_get_symbol_map): Likewise.
1573 (syscm_del_objfile_symbols): Likewise.
1574 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1575 (stscm_eq_symtab_smob): Likewise.
1576 (stscm_objfile_symtab_map): Likewise.
1577 (stscm_del_objfile_symtabs): Likewise.
1578 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1579 (tyscm_eq_type_smob): Likewise.
1580 (tyscm_type_map): Likewise.
1581 (tyscm_copy_type_recursive): Likewise.
1582 (save_objfile_types): Likewise.
1583 * guile/scm-utils.c (extract_arg): Likewise.
1584 * h8300-tdep.c (h8300_frame_cache): Likewise.
1585 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1586 * hppa-tdep.c (compare_unwind_entries): Likewise.
1587 (find_unwind_entry): Likewise.
1588 (hppa_frame_cache): Likewise.
1589 (hppa_stub_frame_unwind_cache): Likewise.
1590 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1591 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1592 (hppaobsd_supply_fpregset): Likewise.
1593 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1594 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1595 * i386-tdep.c (i386_frame_cache): Likewise.
1596 (i386_epilogue_frame_cache): Likewise.
1597 (i386_sigtramp_frame_cache): Likewise.
1598 (i386_supply_gregset): Likewise.
1599 (i386_collect_gregset): Likewise.
1600 (i386_gdbarch_init): Likewise.
1601 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1602 (i386obsd_trapframe_cache): Likewise.
1603 * i387-tdep.c (i387_supply_fsave): Likewise.
1604 (i387_collect_fsave): Likewise.
1605 (i387_supply_fxsave): Likewise.
1606 (i387_collect_fxsave): Likewise.
1607 (i387_supply_xsave): Likewise.
1608 (i387_collect_xsave): Likewise.
1609 * ia64-tdep.c (ia64_frame_cache): Likewise.
1610 (ia64_sigtramp_frame_cache): Likewise.
1611 * infcmd.c (attach_command_continuation): Likewise.
1612 (attach_command_continuation_free_args): Likewise.
1613 * inferior.c (restore_inferior): Likewise.
1614 (delete_thread_of_inferior): Likewise.
1615 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1616 (get_inflow_inferior_data): Likewise.
1617 (inflow_inferior_exit): Likewise.
1618 * infrun.c (displaced_step_clear_cleanup): Likewise.
1619 (restore_current_uiout_cleanup): Likewise.
1620 (release_stop_context_cleanup): Likewise.
1621 (do_restore_infcall_suspend_state_cleanup): Likewise.
1622 (do_restore_infcall_control_state_cleanup): Likewise.
1623 (restore_inferior_ptid): Likewise.
1624 * inline-frame.c (block_starting_point_at): Likewise.
1625 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1626 * jit.c (get_jit_objfile_data): Likewise.
1627 (get_jit_program_space_data): Likewise.
1628 (jit_object_close_impl): Likewise.
1629 (jit_find_objf_with_entry_addr): Likewise.
1630 (jit_breakpoint_deleted): Likewise.
1631 (jit_unwind_reg_set_impl): Likewise.
1632 (jit_unwind_reg_get_impl): Likewise.
1633 (jit_dealloc_cache): Likewise.
1634 (jit_frame_sniffer): Likewise.
1635 (jit_frame_prev_register): Likewise.
1636 (jit_prepend_unwinder): Likewise.
1637 (jit_inferior_exit_hook): Likewise.
1638 (free_objfile_data): Likewise.
1639 * jv-lang.c (jv_per_objfile_free): Likewise.
1640 (get_dynamics_objfile): Likewise.
1641 (get_java_class_symtab): Likewise.
1642 (builtin_java_type): Likewise.
1643 * language.c (language_string_char_type): Likewise.
1644 (language_bool_type): Likewise.
1645 (language_lookup_primitive_type): Likewise.
1646 (language_lookup_primitive_type_as_symbol): Likewise.
1647 * linespec.c (hash_address_entry): Likewise.
1648 (eq_address_entry): Likewise.
1649 (iterate_inline_only): Likewise.
1650 (iterate_name_matcher): Likewise.
1651 (decode_line_2_compare_items): Likewise.
1652 (collect_one_symbol): Likewise.
1653 (compare_symbols): Likewise.
1654 (compare_msymbols): Likewise.
1655 (add_symtabs_to_list): Likewise.
1656 (collect_symbols): Likewise.
1657 (compare_msyms): Likewise.
1658 (add_minsym): Likewise.
1659 (cleanup_linespec_result): Likewise.
1660 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1661 * linux-nat.c (delete_lwp_cleanup): Likewise.
1662 (count_events_callback): Likewise.
1663 (select_event_lwp_callback): Likewise.
1664 (resume_stopped_resumed_lwps): Likewise.
1665 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1666 (invalidate_linux_cache_inf): Likewise.
1667 (get_linux_inferior_data): Likewise.
1668 (linux_find_memory_regions_thunk): Likewise.
1669 (linux_make_mappings_callback): Likewise.
1670 (linux_corefile_thread_callback): Likewise.
1671 (find_mapping_size): Likewise.
1672 * linux-thread-db.c (find_new_threads_callback): Likewise.
1673 * lm32-tdep.c (lm32_frame_cache): Likewise.
1674 * m2-lang.c (builtin_m2_type): Likewise.
1675 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1676 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1677 (m32r_linux_supply_gregset): Likewise.
1678 (m32r_linux_collect_gregset): Likewise.
1679 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1680 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1681 * m68k-tdep.c (m68k_frame_cache): Likewise.
1682 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1683 (m68kbsd_supply_gregset): Likewise.
1684 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1685 * m88k-tdep.c (m88k_frame_cache): Likewise.
1686 (m88k_supply_gregset): Likewise.
1687
224c3ddb
SM
16882015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1689
1690 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1691 to allocation result assignment.
1692 * ada-exp.y (write_object_renaming): Likewise.
1693 (write_ambiguous_var): Likewise.
1694 (ada_nget_field_index): Likewise.
1695 (write_var_or_type): Likewise.
1696 * ada-lang.c (ada_decode_symbol): Likewise.
1697 (ada_value_assign): Likewise.
1698 (value_pointer): Likewise.
1699 (cache_symbol): Likewise.
1700 (add_nonlocal_symbols): Likewise.
1701 (ada_name_for_lookup): Likewise.
1702 (symbol_completion_add): Likewise.
1703 (ada_to_fixed_type_1): Likewise.
1704 (ada_get_next_arg): Likewise.
1705 (defns_collected): Likewise.
1706 * ada-lex.l (processId): Likewise.
1707 (processString): Likewise.
1708 * ada-tasks.c (read_known_tasks_array): Likewise.
1709 (read_known_tasks_list): Likewise.
1710 * ada-typeprint.c (decoded_type_name): Likewise.
1711 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1712 * amd64-tdep.c (amd64_push_arguments): Likewise.
1713 (amd64_displaced_step_copy_insn): Likewise.
1714 (amd64_classify_insn_at): Likewise.
1715 (amd64_relocate_instruction): Likewise.
1716 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1717 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1718 (initialize_current_architecture): Likewise.
1719 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1720 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1721 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1722 (arm_push_dummy_call): Likewise.
1723 (extend_buffer_earlier): Likewise.
1724 (arm_adjust_breakpoint_address): Likewise.
1725 (arm_skip_stub): Likewise.
1726 * auto-load.c (filename_is_in_pattern): Likewise.
1727 (maybe_add_script_file): Likewise.
1728 (maybe_add_script_text): Likewise.
1729 (auto_load_objfile_script_1): Likewise.
1730 * auxv.c (ld_so_xfer_auxv): Likewise.
1731 * ax-general.c (new_agent_expr): Likewise.
1732 (grow_expr): Likewise.
1733 (ax_reg_mask): Likewise.
1734 * bcache.c (bcache_full): Likewise.
1735 * breakpoint.c (program_breakpoint_here_p): Likewise.
1736 * btrace.c (parse_xml_raw): Likewise.
1737 * build-id.c (build_id_to_debug_bfd): Likewise.
1738 * buildsym.c (end_symtab_with_blockvector): Likewise.
1739 * c-exp.y (string_exp): Likewise.
1740 (qualified_name): Likewise.
1741 (write_destructor_name): Likewise.
1742 (operator_stoken): Likewise.
1743 (parse_number): Likewise.
1744 (scan_macro_expansion): Likewise.
1745 (yylex): Likewise.
1746 (c_print_token): Likewise.
1747 * c-lang.c (c_get_string): Likewise.
1748 (emit_numeric_character): Likewise.
1749 * charset.c (wchar_iterate): Likewise.
1750 * cli/cli-cmds.c (complete_command): Likewise.
1751 (make_command): Likewise.
1752 * cli/cli-dump.c (restore_section_callback): Likewise.
1753 (restore_binary_file): Likewise.
1754 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1755 * cli/cli-script.c (execute_control_command): Likewise.
1756 * cli/cli-setshow.c (do_set_command): Likewise.
1757 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1758 (read_pe_exported_syms): Likewise.
1759 * coffread.c (coff_read_struct_type): Likewise.
1760 (coff_read_enum_type): Likewise.
1761 * common/btrace-common.c (btrace_data_append): Likewise.
1762 * common/buffer.c (buffer_grow): Likewise.
1763 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1764 * common/format.c (parse_format_string): Likewise.
1765 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1766 * common/xml-utils.c (xml_escape_text): Likewise.
1767 * compile/compile-object-load.c (copy_sections): Likewise.
1768 (compile_object_load): Likewise.
1769 * compile/compile-object-run.c (compile_object_run): Likewise.
1770 * completer.c (filename_completer): Likewise.
1771 * corefile.c (read_memory_typed_address): Likewise.
1772 (write_memory_unsigned_integer): Likewise.
1773 (write_memory_signed_integer): Likewise.
1774 (complete_set_gnutarget): Likewise.
1775 * corelow.c (get_core_register_section): Likewise.
1776 * cp-name-parser.y (d_grab): Likewise.
1777 (allocate_info): Likewise.
1778 (cp_new_demangle_parse_info): Likewise.
1779 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1780 (cp_lookup_symbol_in_namespace): Likewise.
1781 (lookup_namespace_scope): Likewise.
1782 (find_symbol_in_baseclass): Likewise.
1783 (cp_lookup_nested_symbol): Likewise.
1784 (cp_lookup_transparent_type_loop): Likewise.
1785 * cp-support.c (copy_string_to_obstack): Likewise.
1786 (make_symbol_overload_list): Likewise.
1787 (make_symbol_overload_list_namespace): Likewise.
1788 (make_symbol_overload_list_adl_namespace): Likewise.
1789 (first_component_command): Likewise.
1790 * cp-valprint.c (cp_print_value): Likewise.
1791 * ctf.c (ctf_xfer_partial): Likewise.
1792 * d-exp.y (StringExp): Likewise.
1793 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1794 (lookup_module_scope): Likewise.
1795 (find_symbol_in_baseclass): Likewise.
1796 (d_lookup_nested_symbol): Likewise.
1797 * dbxread.c (find_stab_function_addr): Likewise.
1798 (read_dbx_symtab): Likewise.
1799 (dbx_end_psymtab): Likewise.
1800 (cp_set_block_scope): Likewise.
1801 * dcache.c (dcache_alloc): Likewise.
1802 * demangle.c (_initialize_demangler): Likewise.
1803 * dicos-tdep.c (dicos_load_module_p): Likewise.
1804 * dictionary.c (dict_create_hashed_expandable): Likewise.
1805 (dict_create_linear_expandable): Likewise.
1806 (expand_hashtable): Likewise.
1807 (add_symbol_linear_expandable): Likewise.
1808 * dwarf2-frame.c (add_cie): Likewise.
1809 (add_fde): Likewise.
1810 (dwarf2_build_frame_info): Likewise.
1811 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1812 (dwarf_expr_fetch_address): Likewise.
1813 (add_piece): Likewise.
1814 (execute_stack_op): Likewise.
1815 * dwarf2loc.c (chain_candidate): Likewise.
1816 (dwarf_entry_parameter_to_value): Likewise.
1817 (read_pieced_value): Likewise.
1818 (write_pieced_value): Likewise.
1819 * dwarf2read.c (dwarf2_read_section): Likewise.
1820 (add_type_unit): Likewise.
1821 (read_comp_units_from_section): Likewise.
1822 (fixup_go_packaging): Likewise.
1823 (dwarf2_compute_name): Likewise.
1824 (dwarf2_physname): Likewise.
1825 (create_dwo_unit_in_dwp_v1): Likewise.
1826 (create_dwo_unit_in_dwp_v2): Likewise.
1827 (read_func_scope): Likewise.
1828 (read_call_site_scope): Likewise.
1829 (dwarf2_attach_fields_to_type): Likewise.
1830 (process_structure_scope): Likewise.
1831 (mark_common_block_symbol_computed): Likewise.
1832 (read_common_block): Likewise.
1833 (abbrev_table_read_table): Likewise.
1834 (guess_partial_die_structure_name): Likewise.
1835 (fixup_partial_die): Likewise.
1836 (add_file_name): Likewise.
1837 (dwarf2_const_value_data): Likewise.
1838 (dwarf2_const_value_attr): Likewise.
1839 (build_error_marker_type): Likewise.
1840 (guess_full_die_structure_name): Likewise.
1841 (anonymous_struct_prefix): Likewise.
1842 (typename_concat): Likewise.
1843 (dwarf2_canonicalize_name): Likewise.
1844 (dwarf2_name): Likewise.
1845 (write_constant_as_bytes): Likewise.
1846 (dwarf2_fetch_constant_bytes): Likewise.
1847 (copy_string): Likewise.
1848 (parse_macro_definition): Likewise.
1849 * elfread.c (elf_symfile_segments): Likewise.
1850 (elf_rel_plt_read): Likewise.
1851 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1852 (elf_gnu_ifunc_resolve_by_got): Likewise.
1853 (elf_read_minimal_symbols): Likewise.
1854 (elf_gnu_ifunc_record_cache): Likewise.
1855 * event-top.c (top_level_prompt): Likewise.
1856 (command_line_handler): Likewise.
1857 * exec.c (resize_section_table): Likewise.
1858 * expprint.c (print_subexp_standard): Likewise.
1859 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1860 * findcmd.c (parse_find_args): Likewise.
1861 * findvar.c (address_from_register): Likewise.
1862 * frame.c (get_prev_frame_always): Likewise.
1863 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1864 (get_section_descriptor): Likewise.
1865 * gdb_obstack.c (obconcat): Likewise.
1866 (obstack_strdup): Likewise.
1867 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1868 (create_set_type): Likewise.
1869 (lookup_unsigned_typename): Likewise.
1870 (lookup_signed_typename): Likewise.
1871 (resolve_dynamic_union): Likewise.
1872 (resolve_dynamic_struct): Likewise.
1873 (add_dyn_prop): Likewise.
1874 (copy_dynamic_prop_list): Likewise.
1875 (arch_flags_type): Likewise.
1876 (append_composite_type_field_raw): Likewise.
1877 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1878 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1879 * go-exp.y (string_exp): Likewise.
1880 * go-lang.c (go_demangle): Likewise.
1881 * guile/guile.c (compute_scheme_string): Likewise.
1882 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1883 (gdbscm_canonicalize_command_name): Likewise.
1884 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1885 (ioscm_init_memory_port): Likewise.
1886 (ioscm_reinit_memory_port): Likewise.
1887 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1888 (gdbscm_gc_dup_argv): Likewise.
1889 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1890 * hppa-tdep.c (internalize_unwinds): Likewise.
1891 (read_unwind_info): Likewise.
1892 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1893 (windows_core_xfer_shared_libraries): Likewise.
1894 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1895 (i386_stap_parse_special_token_triplet): Likewise.
1896 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1897 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1898 * inf-child.c (inf_child_fileio_readlink): Likewise.
1899 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1900 (inf_ptrace_store_register): Likewise.
1901 * infrun.c (follow_exec): Likewise.
1902 (displaced_step_prepare_throw): Likewise.
1903 (save_stop_context): Likewise.
1904 (save_infcall_suspend_state): Likewise.
1905 * jit.c (jit_read_descriptor): Likewise.
1906 (jit_read_code_entry): Likewise.
1907 (jit_symtab_line_mapping_add_impl): Likewise.
1908 (finalize_symtab): Likewise.
1909 (jit_unwind_reg_get_impl): Likewise.
1910 * jv-exp.y (QualifiedName): Likewise.
1911 * jv-lang.c (get_java_utf8_name): Likewise.
1912 (type_from_class): Likewise.
1913 (java_demangle_type_signature): Likewise.
1914 (java_class_name_from_physname): Likewise.
1915 * jv-typeprint.c (java_type_print_base): Likewise.
1916 * jv-valprint.c (java_value_print): Likewise.
1917 * language.c (add_language): Likewise.
1918 * linespec.c (add_sal_to_sals_basic): Likewise.
1919 (add_sal_to_sals): Likewise.
1920 (decode_objc): Likewise.
1921 (find_linespec_symbols): Likewise.
1922 * linux-fork.c (fork_save_infrun_state): Likewise.
1923 * linux-nat.c (linux_nat_detach): Likewise.
1924 (linux_nat_fileio_readlink): Likewise.
1925 * linux-record.c (record_linux_sockaddr): Likewise.
1926 (record_linux_msghdr): Likewise.
1927 (Do): Likewise.
1928 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1929 (linux_collect_regset_section_cb): Likewise.
1930 (linux_get_siginfo_data): Likewise.
1931 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1932 (try_thread_db_load_from_dir): Likewise.
1933 (thread_db_load_search): Likewise.
1934 (info_auto_load_libthread_db): Likewise.
1935 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1936 (m32c_m16c_pointer_to_address): Likewise.
1937 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1938 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1939 * machoread.c (macho_check_dsym): Likewise.
1940 * macroexp.c (resize_buffer): Likewise.
1941 (gather_arguments): Likewise.
1942 (maybe_expand): Likewise.
1943 * macrotab.c (new_macro_key): Likewise.
1944 (new_source_file): Likewise.
1945 (new_macro_definition): Likewise.
1946 * mdebugread.c (parse_symbol): Likewise.
1947 (parse_type): Likewise.
1948 (parse_partial_symbols): Likewise.
1949 (psymtab_to_symtab_1): Likewise.
1950 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1951 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1952 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1953 (mi_cmd_data_read_memory_bytes): Likewise.
1954 (mi_cmd_data_write_memory_bytes): Likewise.
1955 (mi_cmd_trace_frame_collected): Likewise.
1956 * mi/mi-parse.c (mi_parse_argv): Likewise.
1957 (mi_parse): Likewise.
1958 * minidebug.c (lzma_open): Likewise.
1959 (lzma_pread): Likewise.
1960 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1961 (mips_print_fp_register): Likewise.
1962 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1963 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1964 * mt-tdep.c (mt_register_name): Likewise.
1965 (mt_registers_info): Likewise.
1966 (mt_push_dummy_call): Likewise.
1967 * namespace.c (add_using_directive): Likewise.
1968 * nat/linux-btrace.c (perf_event_read): Likewise.
1969 (linux_enable_bts): Likewise.
1970 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1971 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1972 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1973 (nto_parse_redirection): Likewise.
1974 * objc-lang.c (objc_demangle): Likewise.
1975 (find_methods): Likewise.
1976 * objfiles.c (get_objfile_bfd_data): Likewise.
1977 (set_objfile_main_name): Likewise.
1978 (allocate_objfile): Likewise.
1979 (objfile_relocate): Likewise.
1980 (update_section_map): Likewise.
1981 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1982 * p-exp.y (exp): Likewise.
1983 (yylex): Likewise.
1984 * p-valprint.c (pascal_object_print_value): Likewise.
1985 * parse.c (initialize_expout): Likewise.
1986 (mark_completion_tag): Likewise.
1987 (copy_name): Likewise.
1988 (parse_float): Likewise.
1989 (type_stack_reserve): Likewise.
1990 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1991 (ppu2spu_prev_register): Likewise.
1992 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1993 * printcmd.c (printf_wide_c_string): Likewise.
1994 (printf_pointer): Likewise.
1995 * probe.c (parse_probes): Likewise.
1996 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1997 (cmdpy_init): Likewise.
1998 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1999 * python/py-symtab.c (set_sal): Likewise.
2000 * python/py-unwind.c (pyuw_sniffer): Likewise.
2001 * python/python.c (python_interactive_command): Likewise.
2002 (compute_python_string): Likewise.
2003 * ravenscar-thread.c (get_running_thread_id): Likewise.
2004 * record-full.c (record_full_exec_insn): Likewise.
2005 (record_full_core_open_1): Likewise.
2006 * regcache.c (regcache_raw_read_signed): Likewise.
2007 (regcache_raw_read_unsigned): Likewise.
2008 (regcache_cooked_read_signed): Likewise.
2009 (regcache_cooked_read_unsigned): Likewise.
2010 * remote-fileio.c (remote_fileio_func_open): Likewise.
2011 (remote_fileio_func_rename): Likewise.
2012 (remote_fileio_func_unlink): Likewise.
2013 (remote_fileio_func_stat): Likewise.
2014 (remote_fileio_func_system): Likewise.
2015 * remote-mips.c (mips_xfer_memory): Likewise.
2016 (mips_load_srec): Likewise.
2017 (pmon_end_download): Likewise.
2018 * remote.c (new_remote_state): Likewise.
2019 (map_regcache_remote_table): Likewise.
2020 (remote_register_number_and_offset): Likewise.
2021 (init_remote_state): Likewise.
2022 (get_memory_packet_size): Likewise.
2023 (remote_pass_signals): Likewise.
2024 (remote_program_signals): Likewise.
2025 (remote_start_remote): Likewise.
2026 (remote_check_symbols): Likewise.
2027 (remote_query_supported): Likewise.
2028 (extended_remote_attach): Likewise.
2029 (process_g_packet): Likewise.
2030 (store_registers_using_G): Likewise.
2031 (putpkt_binary): Likewise.
2032 (read_frame): Likewise.
2033 (compare_sections_command): Likewise.
2034 (remote_hostio_pread): Likewise.
2035 (remote_hostio_readlink): Likewise.
2036 (remote_file_put): Likewise.
2037 (remote_file_get): Likewise.
2038 (remote_pid_to_exec_file): Likewise.
2039 (_initialize_remote): Likewise.
2040 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2041 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2042 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2043 (bfd_uses_spe_extensions): Likewise.
2044 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2045 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2046 * solib-dsbt.c (decode_loadmap): Likewise.
2047 (fetch_loadmap): Likewise.
2048 (scan_dyntag): Likewise.
2049 (enable_break): Likewise.
2050 (dsbt_relocate_main_executable): Likewise.
2051 * solib-frv.c (fetch_loadmap): Likewise.
2052 (enable_break2): Likewise.
2053 (frv_relocate_main_executable): Likewise.
2054 * solib-spu.c (spu_relocate_main_executable): Likewise.
2055 (spu_bfd_open): Likewise.
2056 * solib-svr4.c (lm_info_read): Likewise.
2057 (read_program_header): Likewise.
2058 (find_program_interpreter): Likewise.
2059 (scan_dyntag): Likewise.
2060 (elf_locate_base): Likewise.
2061 (open_symbol_file_object): Likewise.
2062 (read_program_headers_from_bfd): Likewise.
2063 (svr4_relocate_main_executable): Likewise.
2064 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2065 * solib.c (solib_find_1): Likewise.
2066 (exec_file_find): Likewise.
2067 (solib_find): Likewise.
2068 * source.c (openp): Likewise.
2069 (print_source_lines_base): Likewise.
2070 (forward_search_command): Likewise.
2071 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2072 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2073 (spu_get_overlay_table): Likewise.
2074 * stabsread.c (patch_block_stabs): Likewise.
2075 (define_symbol): Likewise.
2076 (again:): Likewise.
2077 (read_member_functions): Likewise.
2078 (read_one_struct_field): Likewise.
2079 (read_enum_type): Likewise.
2080 (common_block_start): Likewise.
2081 * stack.c (read_frame_arg): Likewise.
2082 (backtrace_command): Likewise.
2083 * stap-probe.c (stap_parse_register_operand): Likewise.
2084 * symfile.c (syms_from_objfile_1): Likewise.
2085 (find_separate_debug_file): Likewise.
2086 (load_command): Likewise.
2087 (load_progress): Likewise.
2088 (load_section_callback): Likewise.
2089 (reread_symbols): Likewise.
2090 (add_filename_language): Likewise.
2091 (allocate_compunit_symtab): Likewise.
2092 (read_target_long_array): Likewise.
2093 (simple_read_overlay_table): Likewise.
2094 * symtab.c (symbol_set_names): Likewise.
2095 (resize_symbol_cache): Likewise.
2096 (rbreak_command): Likewise.
2097 (completion_list_add_name): Likewise.
2098 (completion_list_objc_symbol): Likewise.
2099 (add_filename_to_list): Likewise.
2100 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2101 * target-memory.c (target_write_memory_blocks): Likewise.
2102 * target.c (target_read_string): Likewise.
2103 (read_whatever_is_readable): Likewise.
2104 (target_read_alloc_1): Likewise.
2105 (simple_search_memory): Likewise.
2106 (target_fileio_read_alloc_1): Likewise.
2107 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2108 * top.c (command_line_input): Likewise.
2109 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2110 * tracefile.c (tracefile_fetch_registers): Likewise.
2111 * tracepoint.c (add_memrange): Likewise.
2112 (init_collection_list): Likewise.
2113 (add_aexpr): Likewise.
2114 (trace_dump_actions): Likewise.
2115 (parse_trace_status): Likewise.
2116 (parse_tracepoint_definition): Likewise.
2117 (parse_tsv_definition): Likewise.
2118 (parse_static_tracepoint_marker_definition): Likewise.
2119 * tui/tui-file.c (tui_sfileopen): Likewise.
2120 (tui_file_adjust_strbuf): Likewise.
2121 * tui/tui-io.c (tui_expand_tabs): Likewise.
2122 * tui/tui-source.c (tui_set_source_content): Likewise.
2123 * typeprint.c (find_global_typedef): Likewise.
2124 * ui-file.c (do_ui_file_xstrdup): Likewise.
2125 (ui_file_obsavestring): Likewise.
2126 (mem_file_write): Likewise.
2127 * utils.c (make_hex_string): Likewise.
2128 (get_regcomp_error): Likewise.
2129 (puts_filtered_tabular): Likewise.
2130 (gdb_realpath_keepfile): Likewise.
2131 (ldirname): Likewise.
2132 (gdb_bfd_errmsg): Likewise.
2133 (substitute_path_component): Likewise.
2134 * valops.c (search_struct_method): Likewise.
2135 (find_oload_champ_namespace_loop): Likewise.
2136 * valprint.c (print_decimal_chars): Likewise.
2137 (read_string): Likewise.
2138 (generic_emit_char): Likewise.
2139 * varobj.c (varobj_delete): Likewise.
2140 (varobj_value_get_print_value): Likewise.
2141 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2142 * windows-tdep.c (display_one_tib): Likewise.
2143 * xcoffread.c (read_xcoff_symtab): Likewise.
2144 (process_xcoff_symbol): Likewise.
2145 (swap_sym): Likewise.
2146 (scan_xcoff_symtab): Likewise.
2147 (xcoff_initial_scan): Likewise.
2148 * xml-support.c (gdb_xml_end_element): Likewise.
2149 (xml_process_xincludes): Likewise.
2150 (xml_fetch_content_from_file): Likewise.
2151 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2152 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2153
623fb775 21542015-09-23 James Bowman <james.bowman@ftdichip.com>
2155
2156 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2157 instead of builtin_func_ptr.
2158 (ft32_pointer_to_address): New function.
2159 (ft32_address_class_type_flags): New function.
2160 (ft32_address_class_type_flags_to_name): New function.
2161 (ft32_address_class_name_to_type_flags): New function.
2162 (ft32_gdbarch_init): Set tdep->pc_type. Call
2163 set_gdbarch_pointer_to_address,
2164 set_gdbarch_address_class_type_flags
2165 set_gdbarch_address_class_name_to_type_flags,
2166 and set_gdbarch_address_class_type_flags_to_name.
2167 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2168
e6c2c623
PMR
21692015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2170
2171 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2172 value is a reference, actually dereference it in order to get
2173 the underlying value.
2174
bc1f8cda
SM
21752015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2176
2177 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2178
acaa662f
SM
21792015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2180
2181 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2182 * linespec.c (linespec_lexer_lex_string): Same.
2183
4d9d419e
PL
21842015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2185
2186 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2187
6ec5f4be
PL
21882015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2189
2190 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2191 variable. Call aarch64_decode_adr instead of
2192 aarch64_decode_adrp.
2193 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2194 (aarch64_decode_adr): New function declaration.
2195 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2196 (aarch64_decode_adr): New function, factored out from
2197 aarch64_decode_adrp to decode both adr and adrp instructions.
2198
787749ea
PL
21992015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2200
2201 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2202 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2203 (aarch64-insn.o): New rule.
2204 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2205 (aarch64*-*-linux*): Likewise.
2206 * arch/aarch64-insn.c: New file.
2207 * arch/aarch64-insn.h: New file.
2208 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2209 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2210 arch/aarch64-insn.h.
2211 (decode_add_sub_imm): Rename to ...
2212 (aarch64_decode_add_sub_imm): ... this.
2213 (decode_adrp): Rename to ...
2214 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2215 Declare in arch/aarch64-insn.h.
2216 (decode_b): Rename to ...
2217 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2218 Declare in arch/aarch64-insn.h.
2219 (decode_bcond): Rename to ...
2220 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2221 Declare in arch/aarch64-insn.h.
2222 (decode_br): Rename to ...
2223 (aarch64_decode_br): ... this.
2224 (decode_cb): Rename to ...
2225 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2226 Declare in arch/aarch64-insn.h.
2227 (decode_eret): Rename to ...
2228 (aarch64_decode_eret): ... this.
2229 (decode_movz): Rename to ...
2230 (aarch64_decode_movz): ... this.
2231 (decode_orr_shifted_register_x): Rename to ...
2232 (aarch64_decode_orr_shifted_register_x): ... this.
2233 (decode_ret): Rename to ...
2234 (aarch64_decode_ret): ... this.
2235 (decode_stp_offset): Rename to ...
2236 (aarch64_decode_stp_offset): ... this.
2237 (decode_stp_offset_wb): Rename to ...
2238 (aarch64_decode_stp_offset_wb): ... this.
2239 (decode_stur): Rename to ...
2240 (aarch64_decode_stur): ... this.
2241 (decode_tb): Rename to ...
2242 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2243 Declare in arch/aarch64-insn.h.
2244 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2245
183dc7ec
DE
22462015-09-20 Doug Evans <xdje42@gmail.com>
2247
2248 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2249
2ee7123e
DE
22502015-09-20 Doug Evans <xdje42@gmail.com>
2251
2252 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2253 variable name that collides with a parameter.
2254
7d1c9c9b
JB
22552015-09-20 Joel Brobecker <brobecker@adacore.com>
2256
2257 * dwarf2loc.c (locexpr_get_frame_base): Renames
2258 block_op_get_frame_base.
2259 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2260 block_op_get_frame_base by reference to locexpr_get_frame_base.
2261 (loclist_get_frame_base): New function, near identical copy of
2262 locexpr_get_frame_base.
2263 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2264 block_op_get_frame_base by reference to loclist_get_frame_base.
2265
7dc7c195
DE
22662015-09-19 Doug Evans <xdje42@gmail.com>
2267
2268 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2269 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2270
be550b6e
DE
22712015-09-18 Doug Evans <xdje42@gmail.com>
2272
2273 * linux-thread-db.c (record_thread): Return the created thread.
2274 (thread_from_lwp): Likewise.
2275 (thread_db_get_thread_local_address): Update.
2276
615b3f62
DE
22772015-09-18 Doug Evans <xdje42@gmail.com>
2278
2279 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2280 move only member demangled_name up. All uses updated.
2281
015d2e7e
DE
22822015-09-18 Doug Evans <xdje42@gmail.com>
2283
2284 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2285 kind of minimal symbol in the error message.
2286 * objfiles.c (objfile_flavour_name): New function.
2287 * objfiles.h (objfile_flavour_name): Declare.
2288
a0cc84cd
YQ
22892015-09-18 Yao Qi <yao.qi@linaro.org>
2290
2291 * nat/aarch64-linux.c: Include elf/common.h,
2292 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2293 (aarch64_ps_get_thread_area): New function.
2294 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2295 (aarch64_ps_get_thread_area): Declare.
2296 * aarch64-linux-nat.c (ps_get_thread_area): Call
2297 aarch64_ps_get_thread_area.
2298
d2939ba2
MM
22992015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2300
2301 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2302
f2665db5
MM
23032015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2304
2305 * NEWS: Announce new scheduler-locking mode.
2306 * infrun.c (schedlock_replay): New.
2307 (scheduler_enums): Add schedlock_replay.
2308 (scheduler_mode): Change default to schedlock_replay.
2309 (user_visible_resume_ptid): Handle schedlock_replay.
2310 (clear_proceed_status_thread): Stop replaying if resumed thread is
2311 not replaying.
2312 (schedlock_applies): Handle schedlock_replay.
2313 (_initialize_infrun): Document new scheduler-locking mode.
2314 * record-btrace.c (record_btrace_resume): Remove code to stop other
2315 threads when not replaying the resumed thread.
2316
7ff27e9b
MM
23172015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2318
2319 * record-btrace.c ((record_btrace_will_replay): New.
2320 (init_record_btrace_ops): Initialize to_record_will_replay.
2321 * record-full.c ((record_full_will_replay): New.
2322 (init_record_full_ops): Initialize to_record_will_replay.
2323 * target-delegates.c: Regenerated.
2324 * target.c (target_record_will_replay): New.
2325 * target.h (struct target_ops) <to_record_will_replay>: New.
2326 (target_record_will_replay): New.
2327
797094dd
MM
23282015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2329
2330 * record-btrace.c (record_btrace_resume): Call
2331 target_record_stop_replaying.
2332 (record_btrace_stop_replaying_all): New.
2333 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2334 * record-full.c (record_full_stop_replaying): New.
2335 (init_record_full_ops ): Initialize to_record_stop_replaying.
2336 * target-delegates.c: Regenerated.
2337 * target.c (target_record_stop_replaying): New.
2338 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2339 (target_record_stop_replaying): New.
2340
4d10e986
MM
23412015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2342
2343 * record-btrace.c (record_btrace_xfer_partial)
2344 (record_btrace_store_registers, record_btrace_prepare_to_store):
2345 Call record_btrace_is_replaying with inferior_ptid instead of
2346 minus_one_ptid.
2347 (record_btrace_store_registers): Change error message.
2348
a52eab48
MM
23492015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2350
2351 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2352 Update users to pass minus_one_ptid.
2353 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2354 * record.c (cmd_record_delete): Pass inferior_ptid to
2355 target_record_is_replaying.
2356 * target-delegates.c: Regenerated.
2357 * target.c (target_record_is_replaying): Add ptid argument.
2358 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2359 argument.
2360 (target_record_is_replaying): Add ptid argument.
2361
cbb55fa7
MM
23622015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2363
2364 * record-btrace.c (record_btrace_open): Remove non_stop check.
2365 * NEWS: Announce that record btrace supports non-stop mode.
2366
d1988021
MM
23672015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2368
2369 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2370 in the TARKET_WAITKIND_NO_HISTORY case.
2371
a6b5be76
MM
23722015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2373
2374 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2375 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2376
ec71cc2f
MM
23772015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2378
2379 * record-btrace.c (get_thread_current_frame): New.
2380 (record_btrace_start_replaying): Call get_thread_current_frame.
2381
0ca912df
MM
23822015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2383
2384 * record-btrace.c (record_btrace_resume_thread): A move request
2385 overwrites a previous move request.
2386 (record_btrace_find_resume_thread): Removed.
2387 (record_btrace_resume): Resume all requested threads.
2388
e3cfc1c7
MM
23892015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2390
2391 * record-btrace.c: Include vec.h.
2392 (record_btrace_find_thread_to_move): Removed.
2393 (btrace_step_no_resumed, btrace_step_again)
2394 (record_btrace_stop_replaying_at_end): New.
2395 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2396 (record_btrace_single_step_forward): Remove calls to
2397 record_btrace_stop_replaying.
2398 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2399 BTHR_RCONT. Keep threads at the end of their history moving.
2400 (record_btrace_wait): Call record_btrace_step_thread for all threads
2401 until one reports an event. Call record_btrace_stop_replaying_at_end
2402 for the eventing thread.
2403
cf8f8f0c
MM
24042015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2405
2406 * record-btrace.c (record_btrace_single_step_forward): Return
2407 NO_HISTORY if a step brings us to the end of the execution history.
2408
011c71b6
MM
24092015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2410
2411 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2412 to ...
2413 (record_btrace_single_step_forward): ... here and
2414 (record_btrace_single_step_backward): ... here.
2415
d825d248
MM
24162015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2417
2418 * record-btrace.c (btrace_step_spurious)
2419 (record_btrace_single_step_forward)
2420 (record_btrace_single_step_backward): New.
2421 (record_btrace_step_thread): Call record_btrace_single_step_forward
2422 and record_btrace_single_step_backward.
2423
3c615f99
MM
24242015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2425
2426 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2427 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2428
987e68b1
MM
24292015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2430
2431 * record-btrace.c (btrace_thread_flag_to_str)
2432 (record_btrace_cancel_resume): New.
2433 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2434 (record_btrace_resume): Print execution direction.
2435 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2436 (record_btrace_wait): Call record_btrace_cancel_resume.
2437
6e4879f0
MM
24382015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2439
2440 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2441 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2442 (record_btrace_find_thread_to_move): Also accept threads that have
2443 BTHR_STOP set.
2444 (btrace_step_stopped_on_request, record_btrace_stop): New.
2445 (record_btrace_step_thread): Support BTHR_STOP.
2446 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2447 (init_record_btrace_ops): Initialize to_stop.
2448
5953356c
MM
24492015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2450
2451 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2452 target_is_non_stop_p ().
2453
bfca584f
PMR
24542015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2455
2456 * ada-typeprint.c (print_array_type): Do not describe arrays as
2457 packed when they embed dynamic elements.
2458
5382cfab
PW
24592015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2460
2461 * symtab.h (address_class): Document that TLS variables
2462 are handled by LOC_UNRESOLVED.
2463 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2464 * printcmd.c (address_info): Don't relocate TLS variables.
2465
b277c936
PL
24662015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2467
2468 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2469 (decode_adrp): Likewise.
2470 (decode_b): Likewise.
2471 (decode_bcond): Likewise.
2472 (decode_br): Likewise.
2473 (decode_cb): Likewise.
2474 (decode_eret): Likewise.
2475 (decode_movz): Likewise.
2476 (decode_orr_shifted_register_x): Likewise.
2477 (decode_ret): Likewise.
2478 (decode_stp_offset): Likewise.
2479 (decode_stp_offset_wb): Likewise.
2480 (decode_stur): Likewise.
2481 (decode_tb): Likewise.
2482 (aarch64_analyze_prologue): Likewise.
2483 (pass_in_x): Likewise.
2484 (pass_in_v): Likewise.
2485 (pass_on_stack): Likewise.
2486 (aarch64_push_dummy_call): Likewise.
2487 (aarch64_extract_return_value): Likewise.
2488 (aarch64_store_return_value): Likewise.
2489 (aarch64_return_value): Likewise.
2490 (aarch64_record_asimd_load_store): Likewise.
2491 (aarch64_record_load_store): Likewise.
2492 (aarch64_record_data_proc_simd_fp): Likewise.
2493
141c5cc4
JK
24942015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2495
2496 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2497 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2498 (ppc64_skip_trampoline_code_1): ... here.
2499 (ppc64_skip_trampoline_code): New wrapper function.
2500 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2501
750ce8d1
YQ
25022015-09-15 Yao Qi <yao.qi@linaro.org>
2503
2504 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2505 function.
2506 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2507 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2508 if target_can_do_single_step returns 1.
2509 * remote.c (struct vCont_action_support) <s, S>: New fields.
2510 (PACKET_vContSupported): New enum.
2511 (remote_protocol_features): New element for vContSupported.
2512 (remote_query_supported): Append "vContSupported+".
2513 (remote_vcont_probe): Remove support_s and support_S, use
2514 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2515 vCont packet if c and C actions are not supported.
2516 (remote_can_do_single_step): New function.
2517 (init_remote_ops): Install it to to_can_do_single_step.
2518 (_initialize_remote): Call add_packet_config_cmd.
2519 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2520 (target_can_do_single_step): New macro.
2521 * target-delegates.c: Re-generated.
2522
ade90bde
YQ
25232015-09-15 Yao Qi <yao.qi@linaro.org>
2524
2525 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2526 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2527 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2528 New function.
2529 (aarch64_siginfo_from_compat_siginfo): New function.
2530 * nat/aarch64-linux.h: Include signal.h.
2531 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2532 (compat_timer_t, compat_clock_t): Likewise.
2533 (struct compat_timeval): New.
2534 (union compat_sigval): New.
2535 (struct compat_siginfo): New.
2536 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2537 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2538 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2539 (cpt_si_band, cpt_si_fd): Likewise.
2540
4c2f2a79
PA
25412015-09-14 Pedro Alves <palves@redhat.com>
2542
2543 * infrun.c (current_stop_id): New global.
2544 (get_stop_id, new_stop_id): New functions.
2545 (fetch_inferior_event): Handle normal_stop proceeding the target.
2546 (struct stop_context): New.
2547 (save_stop_context, release_stop_context_cleanup)
2548 (stop_context_changed): New functions.
2549 (normal_stop): Return true if the hook-stop changes the stop
2550 context.
2551 * infrun.h (get_stop_id): Declare.
2552 (normal_stop): Now returns int. Add documentation.
2553
919e6dbe
PMR
25542015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2555
2556 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2557 comment. Handle packed arrays.
2558
b027a8fa
PA
25592015-09-14 Pedro Alves <palves@redhat.com>
2560
2561 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2562 mention of maint set/show target-non-stop.
2563
b459a59b
DB
25642015-09-11 Don Breazeal <donb@codesourcery.com>
2565
2566 * NEWS: Announce new remote packets for the exec-events
2567 feature and the exec-events feature and associated commands.
2568
d46addbb
DB
25692015-09-11 Don Breazeal <donb@codesourcery.com>
2570
2571 * remote.c (remote_exec_event_p): New function.
2572 (remote_insert_exec_catchpoint): New function.
2573 (remote_remove_exec_catchpoint): New function.
2574 (init_extended_remote_ops): Initialize extended_remote_ops
2575 members to_insert_exec_catchpoint and
2576 to_remove_exec_catchpoint.
2577
94585166
DB
25782015-09-11 Don Breazeal <donb@codesourcery.com>
2579 Luis Machado <lgustavo@codesourcery.com>
2580
2581 * infrun.c (follow_exec): Use process-style ptid for
2582 exec message. Call add_inferior_with_spaces and
2583 target_follow_exec.
2584 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2585 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2586 * remote.c (remote_pspace_data): New static variable.
2587 (remote_pspace_data_cleanup): New function.
2588 (get_remote_exec_file): New function.
2589 (set_remote_exec_file_1): New function.
2590 (set_remote_exec_file): New function.
2591 (show_remote_exec_file): New function.
2592 (remote_exec_file): Delete static variable.
2593 (anonymous enum) <PACKET_exec_event_feature>: New
2594 enumeration constant.
2595 (remote_protocol_features): Add entry for exec-events feature.
2596 (remote_query_supported): Add client side of qSupported query
2597 for exec-events feature.
2598 (remote_follow_exec): New function.
2599 (remote_parse_stop_reply): Handle 'exec' stop reason.
2600 (extended_remote_run, extended_remote_create_inferior): Call
2601 get_remote_exec_file and set_remote_exec_file_1.
2602 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2603 member.
2604 (_initialize_remote): Call
2605 register_program_space_data_with_cleanup. Call
2606 add_packet_config_cmd for remote exec-events feature.
2607 Modify call to add_setshow_string_noescape_cmd for exec-file
2608 to use new functions set_remote_exec_file and
2609 show_remote_exec_file.
2610 * target-debug.h, target-delegates.c: Regenerated.
2611 * target.c (target_follow_exec): New function.
2612 * target.h (struct target_ops) <to_follow_exec>: New member.
2613 (target_follow_exec): Declare new function.
2614
669e74e8
PL
26152015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2616
2617 * aarch64-tdep.c (decode_cb): Move up comment describing the
2618 encoding.
2619 (decode_tb): Fix a typo in comment above the function. Move up
2620 comment describing the encoding.
2621
4d50586d
PL
26222015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2623
2624 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2625
6dcaef99
MMN
26262015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2627
2628 PR gdb/18947
2629 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2630 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2631
5da1a4d3
SM
26322015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2633
2634 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2635 operations.
2636
108d56a4
SM
26372015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2638
2639 * ada-lang.c (ada_search_struct_field): Constify parameters
2640 and/or variables..
2641 (xget_renaming_scope): Likewise.
2642 (ada_is_redundant_range_encoding): Likewise.
2643 (scan_discrim_bound): Likewise.
2644 (to_fixed_range_type): Likewise.
2645
dd2e65cc
YQ
26462015-09-10 Yao Qi <yao.qi@linaro.org>
2647
2648 * breakpoint.c (download_tracepoint_locations): New local
2649 can_download_tracepoint. Check the result of
2650 target_can_download_tracepoint and save it in
2651 can_download_tracepoint if there are tracepoints to download.
2652 * linux-nat.h (enum tribool): Move it to ...
2653 * common/common-types.h: ... here.
2654
cfe75703
PA
26552015-09-09 Pedro Alves <palves@redhat.com>
2656
2657 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2658 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2659
a85a3079
PA
26602015-09-09 Pedro Alves <palves@redhat.com>
2661
2662 * continuations.c (add_continuation, restore_thread_cleanup)
2663 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2664 (do_all_continuations_thread, do_all_continuations)
2665 (discard_all_continuations_thread_callback)
2666 (discard_all_continuations_thread, discard_all_continuations)
2667 (add_intermediate_continuation)
2668 (do_all_intermediate_continuations_thread_callback)
2669 (do_all_intermediate_continuations_thread)
2670 (do_all_intermediate_continuations)
2671 (discard_all_intermediate_continuations_thread_callback)
2672 (discard_all_intermediate_continuations_thread)
2673 (discard_all_intermediate_continuations): Delete.
2674 * continuations.h (add_continuation, do_all_continuations)
2675 (do_all_continuations_thread, discard_all_continuations)
2676 (discard_all_continuations_thread, add_intermediate_continuation)
2677 (do_all_intermediate_continuations)
2678 (do_all_intermediate_continuations_thread)
2679 (discard_all_intermediate_continuations)
2680 (discard_all_intermediate_continuations_thread): Delete
2681 declarations.
2682 * event-top.c (stdin_event_handler): Delete references to
2683 continuations.
2684 * gdbthread.h (struct thread_info): Delete continuations and
2685 intermediate_continuations fields.
2686 * inf-loop.c (inferior_event_handler): Remove references to
2687 continuations.
2688 * infrun.c (infrun_thread_stop_requested_callback): Remove
2689 references to continuations.
2690 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2691 * thread.c: Don't include "continuations.h".
2692 (clear_thread_inferior_resources): Remove references to
2693 continuations.
2694
0700e23e
PA
26952015-09-09 Pedro Alves <palves@redhat.com>
2696
2697 * infcall.c (struct dummy_frame_context_saver): Delete.
2698 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2699 (dummy_frame_context_saver_drop)
2700 (dummy_frame_context_saver_cleanup)
2701 (dummy_frame_context_saver_get_regs)
2702 (dummy_frame_context_saver_setup): Delete.
2703 * infcall.h (dummy_frame_context_saver_drop)
2704 (dummy_frame_context_saver_cleanup)
2705 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2706 Delete.
2707 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2708 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2709 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2710
cfc31633
PA
27112015-09-09 Pedro Alves <palves@redhat.com>
2712
2713 * breakpoint.c: Include "thread-fsm.h".
2714 (struct until_break_command_continuation_args): Delete.
2715 (struct until_break_fsm): New.
2716 (until_break_fsm_ops): New global.
2717 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2718 (until_break_command_continuation): Delete.
2719 (until_break_fsm_clean_up): New function.
2720 (until_break_fsm_async_reply_reason): New function.
2721 (until_break_command): Adjust to create an until_break_fsm instead
2722 of a continuation.
2723 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2724 here.
2725 * infcmd.c (struct until_next_fsm): New.
2726 (until_next_fsm_ops): New global.
2727 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2728 (until_next_continuation): Delete.
2729 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2730 functions.
2731 (until_next_command): Adjust to create a new until_next_fsm
2732 instead of a continuation.
2733
388a7084
PA
27342015-09-09 Pedro Alves <palves@redhat.com>
2735
2736 * infcall.c: Include thread_fsm.h.
2737 (struct call_return_meta_info): New.
2738 (get_call_return_value): New function, factored out from
2739 call_function_by_hand_dummy.
2740 (struct call_thread_fsm): New.
2741 (call_thread_fsm_ops): New global.
2742 (new_call_thread_fsm, call_thread_fsm_should_stop)
2743 (call_thread_fsm_should_notify_stop): New functions.
2744 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2745 the thread.
2746 (call_function_by_hand_dummy): Create a new call_thread_fsm
2747 instance, associate it with the thread, and wait for the FSM to
2748 finish. If finished successfully, fetch the function's result
2749 value out of the FSM.
2750 * infrun.c (fetch_inferior_event): If the FSM says the stop
2751 shouldn't be notified, don't call normal_stop.
2752 (maybe_remove_breakpoints): New function, factored out from ...
2753 (normal_stop): ... here. Simplify.
2754 * infrun.h (maybe_remove_breakpoints): Declare.
2755 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2756 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2757 (thread_fsm_should_notify_stop): Declare.
2758
243a9253
PA
27592015-09-09 Pedro Alves <palves@redhat.com>
2760
2761 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2762 * breakpoint.c (handle_jit_event): Print debug output.
2763 (bpstat_what): Split event callback handling to ...
2764 (bpstat_run_callbacks): ... this new function.
2765 (momentary_bkpt_print_it): No longer handle bp_finish here.
2766 * breakpoint.h (bpstat_run_callbacks): Declare.
2767 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2768 <thread_fsm>: New field.
2769 (thread_cancel_execution_command): Declare.
2770 * infcmd.c: Include thread-fsm.h.
2771 (struct step_command_fsm): New.
2772 (step_command_fsm_ops): New global.
2773 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2774 (step_1): Adjust to use step_command_fsm_prepare and
2775 prepare_one_step.
2776 (struct step_1_continuation_args): Delete.
2777 (step_1_continuation): Delete.
2778 (step_command_fsm_should_stop): New function.
2779 (step_once): Delete.
2780 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2781 (prepare_one_step): New function, based on step_once.
2782 (until_next_command): Remove step_multi reference.
2783 (struct return_value_info): New.
2784 (print_return_value): Rename to ...
2785 (print_return_value_1): ... this. New struct return_value_info
2786 parameter. Adjust.
2787 (print_return_value): Reimplement as wrapper around
2788 print_return_value_1.
2789 (struct finish_command_fsm): New.
2790 (finish_command_continuation): Delete.
2791 (finish_command_fsm_ops): New global.
2792 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2793 functions.
2794 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2795 New.
2796 (finish_command_continuation_free_arg): Delete.
2797 (finish_command_fsm_async_reply_reason): New.
2798 (finish_backward, finish_forward): Change symbol parameter to a
2799 finish_command_fsm. Adjust.
2800 (finish_command): Create a finish_command_fsm. Adjust.
2801 * infrun.c: Include "thread-fsm.h".
2802 (clear_proceed_status_thread): Delete the thread's FSM.
2803 (infrun_thread_stop_requested_callback): Cancel the thread's
2804 execution command.
2805 (clean_up_just_stopped_threads_fsms): New function.
2806 (fetch_inferior_event): Handle the event_thread's should_stop
2807 method saying the command isn't done yet.
2808 (process_event_stop_test): Run breakpoint callbacks here.
2809 (print_stop_event): Rename to ...
2810 (print_stop_location): ... this.
2811 (restore_current_uiout_cleanup): New function.
2812 (print_stop_event): Reimplement.
2813 (normal_stop): No longer notify the end_stepping_range observers
2814 here handle "step N" nor "finish" here. No longer call
2815 print_stop_event here.
2816 * infrun.h (struct return_value_info): Forward declare.
2817 (print_return_value): Declare.
2818 (print_stop_event): Change prototype.
2819 * thread-fsm.c: New file.
2820 * thread-fsm.h: New file.
2821 * thread.c: Include "thread-fsm.h".
2822 (thread_cancel_execution_command): New function.
2823 (clear_thread_inferior_resources): Call it.
2824 * cli/cli-interp.c (cli_on_normal_stop): New function.
2825 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2826 observer.
2827 * mi/mi-interp.c: Include "thread-fsm.h".
2828 (restore_current_uiout_cleanup): Delete.
2829 (mi_on_normal_stop): If the thread has an FSM associated, and it
2830 finished, ask it for the async-reply-reason to print. Always call
2831 print_stop_event here, regardless of the top-level interpreter.
2832 Check bpstat_what to tell whether an asynchronous breakpoint hit
2833 triggered.
2834 * tui/tui-interp.c (tui_on_normal_stop): New function.
2835 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2836
0b333c5e
PA
28372015-09-09 Pedro Alves <palves@redhat.com>
2838
2839 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2840 check whether the target can async.
2841 * inf-loop.c (inferior_event_handler): Only call target_async if
2842 the target can async.
2843 * infcall.c: Include top.h and interps.h.
2844 (run_inferior_call): For the interpreter to sync mode while
2845 running the infcall. Call wait_sync_command_done instead of
2846 wait_for_inferior plus normal_stop.
2847 * infcmd.c (prepare_execution_command): Don't check whether the
2848 target can async when running in the foreground.
2849 (step_1): Delete synchronous case handling.
2850 (step_once): Always install a continuation, even in sync mode.
2851 (until_next_command, finish_forward): Don't check whether the
2852 target can async.
2853 (attach_command_post_wait, notice_new_inferior): Always install a
2854 continuation, even in sync mode.
2855 * infrun.c (mark_infrun_async_event_handler): New function.
2856 (proceed): In sync mode, mark infrun's event source instead of
2857 waiting for events here.
2858 (fetch_inferior_event): If the target can't async, do a blocking
2859 wait.
2860 (prepare_to_wait): In sync mode, mark infrun's event source.
2861 (infrun_async_inferior_event_handler): No longer bail out if the
2862 target can't async.
2863 * infrun.h (mark_infrun_async_event_handler): New declaration.
2864 * linux-nat.c (linux_nat_wait_1): Remove calls to
2865 set_sigint_trap/clear_sigint_trap.
2866 (linux_nat_terminal_inferior): No longer check whether the target
2867 can async.
2868 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2869 comment.
2870 (mi_execute_command_input_handler): No longer check whether the
2871 target is async. Update and simplify comment.
2872 * target.c (default_target_wait): New function.
2873 * target.h (struct target_ops) <to_wait>: Now defaults to
2874 default_target_wait.
2875 (default_target_wait): Declare.
2876 * top.c (wait_sync_command_done): New function, factored out from
2877 ...
2878 (maybe_wait_sync_command_done): ... this.
2879 * top.h (wait_sync_command_done): Declare.
2880 * target-delegates.c: Regenerate.
2881
0568462b
MM
28822015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2883
2884 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2885 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2886 Remove include of sys/utsname.h.
2887 (linux_determine_kernel_ptr_bits): Remove.
2888 (linux_determine_kernel_start): New.
2889 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2890 Update check.
2891 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2892 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2893 initialization.
2894 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2895 assignment.
2896
72e02483
PA
28972015-09-07 Pedro Alves <palves@redhat.com>
2898
2899 * guile/guile-internal.h (as_a_scm_t_subr): New.
2900 * guile/guile.c (misc_guile_functions): Use it.
2901 * guile/scm-arch.c (arch_functions): Use it.
2902 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2903 Use it.
2904 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2905 * guile/scm-cmd.c (command_functions): Use it.
2906 * guile/scm-disasm.c (disasm_functions): Use it.
2907 * guile/scm-exception.c (exception_functions)
2908 (private_exception_functions): Use it.
2909 * guile/scm-frame.c (frame_functions)
2910 * guile/scm-gsmob.c (gsmob_functions): Use it.
2911 * guile/scm-iterator.c (iterator_functions): Use it.
2912 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2913 * guile/scm-math.c (math_functions): Use it.
2914 * guile/scm-objfile.c (objfile_functions): Use it.
2915 * guile/scm-param.c (parameter_functions): Use it.
2916 * guile/scm-ports.c (port_functions, private_port_functions): Use
2917 it.
2918 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2919 * guile/scm-progspace.c (pspace_functions): Use it.
2920 * guile/scm-string.c (string_functions): Use it.
2921 * guile/scm-symbol.c (symbol_functions): Use it.
2922 * guile/scm-symtab.c (symtab_functions): Use it.
2923 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2924 it.
2925 * guile/scm-value.c (value_functions): Use it.
2926
e65b5245
AB
29272015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2928
2929 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2930 (tui_next_win): Likewise.
2931 (tui_prev_win): Likewise.
2932 (tui_partial_win_by_name): Likewise.
2933 (tui_init_generic_part): Likewise.
2934 (init_content_element): Likewise.
2935 (tui_del_window): Likewise.
2936 (tui_free_window): Likewise.
2937 (tui_del_data_windows): Likewise.
2938 (tui_free_data_content): Likewise.
2939 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2940 * tui/tui-regs.c (tui_show_register_group): Likewise.
2941 * tui/tui-win.c (tui_resize_all): Likewise.
2942 (tui_set_focus): Likewise.
2943 (tui_set_win_height): Likewise.
2944 (make_invisible_and_set_new_height): Likewise.
2945 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2946 * tui/tui-wingeneral.c (make_visible): Likewise.
2947
b03e6ad9
AB
29482015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2949
2950 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2951
be903358
AB
29522015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2953
2954 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2955 pointer.
2956 * dbxread.c (dbx_end_psymtab): Likewise.
2957 * gnu-nat.c (gnu_write_inferior): Likewise.
2958 * mdebugread.c (cross_ref): Likewise.
2959 * p-valprint.c (pascal_val_print): Likewise.
2960 * xcoffread.c (xcoff_end_psymtab): Likewise.
2961
02f024f9
YQ
29622015-09-04 Yao Qi <yao.qi@linaro.org>
2963
2964 * NEWS: Mention the aarch64 multi-arch debugging support.
2965
cd7c1778
PMR
29662015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2967
2968 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2969 type instead of a TYPE_CODE_INT one for the string_char_type
2970 and the ada_primitive_type_char types.
2971
39edd165
YQ
29722015-09-03 Yao Qi <yao.qi@linaro.org>
2973
2974 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2975 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2976 aarch64_linux_region_ok_for_watchpoint.
2977 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2978 New function.
2979 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2980 Declare it.
2981
6c214e7c
PP
29822015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2983
2984 * gdb_obstack.h (obstack_strdup): Declare.
2985 * gdb_obstack.c (obstack_strdup): Define.
2986 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2987 * gdbarch.c: Regenerate.
2988 * gdbarch.h: Regenerate.
2989 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2990
eed8b28a
PP
29912015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2992
2993 * gdbtypes.c (copy_type_recursive): Update documentation.
2994
73c6b475
SDJ
29952015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2996
2997 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2998 as zero.
2999
ad1c917a
SDJ
30002015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3001
3002 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3003
3bd7e5b7
SDJ
30042015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3005
3006 * solib-svr4.c (solib_event_probe_action): Call
3007 get_probe_argument_count using TRY...CATCH.
3008 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3009
f469e8ce
SDJ
30102015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3011
3012 * probe.h (struct probe_ops) <get_probe_argument_count,
3013 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3014 the comment that the function can throw an exception.
3015 (get_probe_argument_count): Likewise.
3016 (evaluate_probe_argument): Likewise.
3017 * stap-probe.c (stap_get_opcode): Call error instead of
3018 internal_error.
3019 (stap_get_expected_argument_type): Likewise. Add argument
3020 'probe'. Improve error message by mentioning the probe's name.
3021 (stap_parse_probe_arguments): Adjust call to
3022 stap_get_expected_argument_type.
3023 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3024 not zero. Call internal_error if GDB requests an argument but the
3025 probe has no arguments.
3026
dc5c8746
PMR
30272015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3028
3029 * ada-lang.c (ada_resolve_function): Do not ask the user what
3030 match to use when in completion mode.
3031
136765ea
AB
30322015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3033
3034 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3035 cast of NULL.
3036
90b81c5f
MF
30372015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3038
3039 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3040 call_abi using XSHAL_ABI macro.
3041
1cd36e54
DE
30422015-08-29 Doug Evans <xdje42@gmail.com>
3043
3044 * symtab.h (struct symbol): Tweak comment.
3045
8f57eec2
PP
30462015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3047
3048 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3049 gdbarch obstack instead of on the heap. Update commentary
3050 accordingly.
3051
38eebd71
JB
30522015-08-28 Joel Brobecker <brobecker@adacore.com>
3053
3054 GDB 7.10 released.
3055
d63dd61e
SM
30562015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3057
3058 * NEWS: Update entry about non-8-bits addressable memory.
3059
6f059256
UW
30602015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3061
3062 Revert:
3063 2014-11-06 Doug Evans <xdje42@gmail.com>
3064 * solib.c (solib_global_lookup): Fetch arch from objfile,
3065 not target_gdbarch.
3066
70987a92 30672015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
3068
3069 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3070 attempt to relocate a TLS variable offset.
3071
70987a92 30722015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
3073
3074 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3075 registered yet. Set inferior_ptid while calling target_read_memory.
3076
70987a92 30772015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
3078
3079 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3080 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3081 * linux-nat.c (check_stopped_by_breakpoint): Use
3082 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3083
70987a92 30842015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
3085
3086 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3087 thread was not yet discovered, use thread_from_lwp instead of
3088 calling thread_db_find_new_threads_1.
3089
f5cdf498
SM
30902015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3091
3092 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3093 statements.
3094
fd2ae5d6
SM
30952015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3096
3097 * NEWS: Document support for non-8-bits addressable memory.
3098
14d88147
PA
30992015-08-27 Pedro Alves <palves@redhat.com>
3100
3101 * configure.ac: Remove AC_TYPE_SIGNAL call.
3102 * configure, config.in: Regenerate.
3103
a40805d4
PA
31042015-08-27 Pedro Alves <palves@redhat.com>
3105
3106 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3107 * extension-priv.h: Include signal.h.
3108 (struct signal_handler) <handler>: Change type to sighandler_t.
3109 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3110 * inflow.c (sigint_ours, sigquit_ours): Change type to
3111 sighandler_t.
3112 (child_terminal_inferior): Remove casts.
3113 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3114 (osig): Change type to sighandler_t.
3115 * nto-procfs.c (ofunc): Change type to sighandler_t.
3116 (procfs_wait): Remove casts.
3117 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3118 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3119 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3120
0750520d
PA
31212015-08-27 Pedro Alves <palves@redhat.com>
3122
3123 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3124 * gnulib/aclocal.m4: Renegerate.
3125 * gnulib/config.in: Renegerate.
3126 * gnulib/configure: Renegerate.
3127 * gnulib/import/Makefile.am: Update.
3128 * gnulib/import/Makefile.in: Regenerate.
3129 * gnulib/import/m4/gnulib-cache.m4: Update.
3130 * gnulib/import/m4/gnulib-comp.m4: Update.
3131 * gnulib/import/m4/signal_h.m4: New file.
3132 * gnulib/import/signal.in.h: New file.
3133
a5c0808e
PA
31342015-08-27 Pedro Alves <palves@redhat.com>
3135
3136 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3137 (MIN_MEMORY_PACKET_SIZE): New.
3138 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3139 (get_memory_packet_size): Adjust. No longer limit the max packet
3140 size.
3141 (set_memory_packet_size): Adjust, and remove dead code.
3142 (remote_check_symbols): Use xmalloc and a cleanup instead of
3143 alloca.
3144 (remote_packet_size): No longer cap the packet size.
3145 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3146
cdaec3f3
LM
31472015-08-26 Luis Machado <lgustavo@codesourcery.com>
3148
3149 * compile/compile.c (compile_to_object): Mention language in
3150 error message.
3151
e9756d52
PP
31522015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3153
3154 * target.c (target_pre_inferior): Unset attach_flag.
3155
1dc7a623
SM
31562015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3157
3158 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3159 * gdbarch.c: Re-generate.
3160
8d749320
SM
31612015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3162
6711b7f8
SM
3163 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3164 function with the XNEW-family equivalent.
8d749320
SM
3165 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3166 * ada-exp.y (write_ambiguous_var): Likewise.
3167 * ada-lang.c (resolve_subexp): Likewise.
3168 (user_select_syms): Likewise.
3169 (assign_aggregate): Likewise.
3170 (ada_evaluate_subexp): Likewise.
3171 (cache_symbol): Likewise.
3172 * addrmap.c (allocate_key): Likewise.
3173 (addrmap_create_mutable): Likewise.
3174 * aix-thread.c (sync_threadlists): Likewise.
3175 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3176 (alpha_gdbarch_init): Likewise.
3177 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3178 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3179 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3180 * arm-tdep.c (push_stack_item): Likewise.
3181 (arm_displaced_step_copy_insn): Likewise.
3182 (arm_gdbarch_init): Likewise.
3183 (_initialize_arm_tdep): Likewise.
3184 * avr-tdep.c (push_stack_item): Likewise.
3185 * ax-general.c (new_agent_expr): Likewise.
3186 * block.c (block_initialize_namespace): Likewise.
3187 * breakpoint.c (alloc_counted_command_line): Likewise.
3188 (update_dprintf_command_list): Likewise.
3189 (parse_breakpoint_sals): Likewise.
3190 (decode_static_tracepoint_spec): Likewise.
3191 (until_break_command): Likewise.
3192 (clear_command): Likewise.
3193 (update_global_location_list): Likewise.
3194 (get_breakpoint_objfile_data) Likewise.
3195 * btrace.c (ftrace_new_function): Likewise.
3196 (btrace_set_insn_history): Likewise.
3197 (btrace_set_call_history): Likewise.
3198 * buildsym.c (add_symbol_to_list): Likewise.
3199 (record_pending_block): Likewise.
3200 (start_subfile): Likewise.
3201 (start_buildsym_compunit): Likewise.
3202 (push_subfile): Likewise.
3203 (end_symtab_get_static_block): Likewise.
3204 (buildsym_init): Likewise.
3205 * cli/cli-cmds.c (source_command): Likewise.
3206 * cli/cli-decode.c (add_cmd): Likewise.
3207 * cli/cli-script.c (build_command_line): Likewise.
3208 (setup_user_args): Likewise.
3209 (realloc_body_list): Likewise.
3210 (process_next_line): Likewise.
3211 (copy_command_lines): Likewise.
3212 * cli/cli-setshow.c (do_set_command): Likewise.
3213 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3214 * coffread.c (coff_locate_sections): Likewise.
3215 (coff_symtab_read): Likewise.
3216 (coff_read_struct_type): Likewise.
3217 * common/cleanups.c (make_my_cleanup2): Likewise.
3218 * common/common-exceptions.c (throw_it): Likewise.
3219 * common/filestuff.c (make_cleanup_close): Likewise.
3220 * common/format.c (parse_format_string): Likewise.
3221 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3222 * compile/compile-object-load.c (munmap_list_add): Likewise.
3223 (compile_object_load): Likewise.
3224 * compile/compile-object-run.c (compile_object_run): Likewise.
3225 * compile/compile.c (append_args): Likewise.
3226 * corefile.c (specify_exec_file_hook): Likewise.
3227 * cp-support.c (make_symbol_overload_list): Likewise.
3228 * cris-tdep.c (push_stack_item): Likewise.
3229 (cris_gdbarch_init): Likewise.
3230 * ctf.c (ctf_trace_file_writer_new): Likewise.
3231 * dbxread.c (init_header_files): Likewise.
3232 (add_new_header_file): Likewise.
3233 (init_bincl_list): Likewise.
3234 (dbx_end_psymtab): Likewise.
3235 (start_psymtab): Likewise.
3236 (dbx_end_psymtab): Likewise.
3237 * dcache.c (dcache_init): Likewise.
3238 * dictionary.c (dict_create_hashed): Likewise.
3239 (dict_create_hashed_expandable): Likewise.
3240 (dict_create_linear): Likewise.
3241 (dict_create_linear_expandable): Likewise.
3242 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3243 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3244 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3245 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3246 (decode_frame_entry_1): Likewise.
3247 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3248 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3249 * dwarf2read.c (dwarf2_has_info): Likewise.
3250 (create_signatured_type_table_from_index): Likewise.
3251 (dwarf2_read_index): Likewise.
3252 (dw2_get_file_names_reader): Likewise.
3253 (create_all_type_units): Likewise.
3254 (read_cutu_die_from_dwo): Likewise.
3255 (init_tu_and_read_dwo_dies): Likewise.
3256 (init_cutu_and_read_dies): Likewise.
3257 (create_all_comp_units): Likewise.
3258 (queue_comp_unit): Likewise.
3259 (inherit_abstract_dies): Likewise.
3260 (read_call_site_scope): Likewise.
3261 (dwarf2_add_field): Likewise.
3262 (dwarf2_add_typedef): Likewise.
3263 (dwarf2_add_member_fn): Likewise.
3264 (attr_to_dynamic_prop): Likewise.
3265 (abbrev_table_alloc_abbrev): Likewise.
3266 (abbrev_table_read_table): Likewise.
3267 (add_include_dir): Likewise.
3268 (add_file_name): Likewise.
3269 (dwarf_decode_line_header): Likewise.
3270 (dwarf2_const_value_attr): Likewise.
3271 (dwarf_alloc_block): Likewise.
3272 (parse_macro_definition): Likewise.
3273 (set_die_type): Likewise.
3274 (write_psymtabs_to_index): Likewise.
3275 (create_cus_from_index): Likewise.
3276 (dwarf2_create_include_psymtab): Likewise.
3277 (process_psymtab_comp_unit_reader): Likewise.
3278 (build_type_psymtab_dependencies): Likewise.
3279 (read_comp_units_from_section): Likewise.
3280 (compute_compunit_symtab_includes): Likewise.
3281 (create_dwo_unit_in_dwp_v1): Likewise.
3282 (create_dwo_unit_in_dwp_v2): Likewise.
3283 (read_func_scope): Likewise.
3284 (process_structure_scope): Likewise.
3285 (mark_common_block_symbol_computed): Likewise.
3286 (load_partial_dies): Likewise.
3287 (dwarf2_symbol_mark_computed): Likewise.
3288 * elfread.c (elf_symfile_segments): Likewise.
3289 (elf_read_minimal_symbols): Likewise.
3290 * environ.c (make_environ): Likewise.
3291 * eval.c (evaluate_subexp_standard): Likewise.
3292 * event-loop.c (create_file_handler): Likewise.
3293 (create_async_signal_handler): Likewise.
3294 (create_async_event_handler): Likewise.
3295 (create_timer): Likewise.
3296 * exec.c (build_section_table): Likewise.
3297 * fbsd-nat.c (fbsd_remember_child): Likewise.
3298 * fork-child.c (fork_inferior): Likewise.
3299 * frv-tdep.c (new_variant): Likewise.
3300 * gdbarch.sh (gdbarch_alloc): Likewise.
3301 (append_name): Likewise.
3302 * gdbtypes.c (rank_function): Likewise.
3303 (copy_type_recursive): Likewise.
3304 (add_dyn_prop): Likewise.
3305 * gnu-nat.c (make_proc): Likewise.
3306 (make_inf): Likewise.
3307 (gnu_write_inferior): Likewise.
3308 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3309 (build_std_type_info_type): Likewise.
3310 * guile/scm-param.c (compute_enum_list): Likewise.
3311 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3312 * guile/scm-value.c (gdbscm_value_call): Likewise.
3313 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3314 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3315 (read_unwind_info): Likewise.
3316 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3317 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3318 (call_function_by_hand_dummy): Likewise.
3319 * infcmd.c (step_once): Likewise.
3320 (finish_forward): Likewise.
3321 (attach_command): Likewise.
3322 (notice_new_inferior): Likewise.
3323 * inferior.c (add_inferior_silent): Likewise.
3324 * infrun.c (add_displaced_stepping_state): Likewise.
3325 (save_infcall_control_state): Likewise.
3326 (save_inferior_ptid): Likewise.
3327 (_initialize_infrun): Likewise.
3328 * jit.c (bfd_open_from_target_memory): Likewise.
3329 (jit_gdbarch_data_init): Likewise.
3330 * language.c (add_language): Likewise.
3331 * linespec.c (decode_line_2): Likewise.
3332 * linux-nat.c (add_to_pid_list): Likewise.
3333 (add_initial_lwp): Likewise.
3334 * linux-thread-db.c (add_thread_db_info): Likewise.
3335 (record_thread): Likewise.
3336 (info_auto_load_libthread_db): Likewise.
3337 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3339 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3340 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3341 * macrocmd.c (macro_define_command): Likewise.
3342 * macroexp.c (gather_arguments): Likewise.
3343 * macroscope.c (sal_macro_scope): Likewise.
3344 * macrotab.c (new_macro_table): Likewise.
3345 * mdebugread.c (push_parse_stack): Likewise.
3346 (parse_partial_symbols): Likewise.
3347 (parse_symbol): Likewise.
3348 (psymtab_to_symtab_1): Likewise.
3349 (new_block): Likewise.
3350 (new_psymtab): Likewise.
3351 (mdebug_build_psymtabs): Likewise.
3352 (add_pending): Likewise.
3353 (elfmdebug_build_psymtabs): Likewise.
3354 * mep-tdep.c (mep_gdbarch_init): Likewise.
3355 * mi/mi-main.c (mi_execute_command): Likewise.
3356 * mi/mi-parse.c (mi_parse_argv): Likewise.
3357 * minidebug.c (lzma_open): Likewise.
3358 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3359 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3360 * mips-tdep.c (mips_gdbarch_init): Likewise.
3361 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3362 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3363 * mt-tdep.c (mt_registers_info): Likewise.
3364 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3365 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3366 (linux_enable_pt): Likewise.
3367 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3368 (linux_xfer_osdata_processgroups): Likewise.
3369 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3370 * nto-procfs.c (procfs_meminfo): Likewise.
3371 * objc-lang.c (start_msglist): Likewise.
3372 (selectors_info): Likewise.
3373 (classes_info): Likewise.
3374 (find_methods): Likewise.
3375 * objfiles.c (allocate_objfile): Likewise.
3376 (update_section_map): Likewise.
3377 * osabi.c (gdbarch_register_osabi): Likewise.
3378 (gdbarch_register_osabi_sniffer): Likewise.
3379 * parse.c (start_arglist): Likewise.
3380 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3381 (hwdebug_insert_point): Likewise.
3382 * printcmd.c (display_command): Likewise.
3383 (ui_printf): Likewise.
3384 * procfs.c (create_procinfo): Likewise.
3385 (load_syscalls): Likewise.
3386 (proc_get_LDT_entry): Likewise.
3387 (proc_update_threads): Likewise.
3388 * prologue-value.c (make_pv_area): Likewise.
3389 (pv_area_store): Likewise.
3390 * psymtab.c (extend_psymbol_list): Likewise.
3391 (init_psymbol_list): Likewise.
3392 (allocate_psymtab): Likewise.
3393 * python/py-inferior.c (add_thread_object): Likewise.
3394 * python/py-param.c (compute_enum_values): Likewise.
3395 * python/py-value.c (valpy_call): Likewise.
3396 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3397 * python/python.c (ensure_python_env): Likewise.
3398 * record-btrace.c (record_btrace_start_replaying): Likewise.
3399 * record-full.c (record_full_reg_alloc): Likewise.
3400 (record_full_mem_alloc): Likewise.
3401 (record_full_end_alloc): Likewise.
3402 (record_full_core_xfer_partial): Likewise.
3403 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3404 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3405 * remote-notif.c (remote_notif_state_allocate): Likewise.
3406 * remote.c (demand_private_info): Likewise.
3407 (remote_notif_stop_alloc_reply): Likewise.
3408 (remote_enable_btrace): Likewise.
3409 * reverse.c (save_bookmark_command): Likewise.
3410 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3411 * rx-tdep.c (rx_gdbarch_init): Likewise.
3412 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3413 * ser-go32.c (dos_get_tty_state): Likewise.
3414 (dos_copy_tty_state): Likewise.
3415 * ser-mingw.c (ser_windows_open): Likewise.
3416 (ser_console_wait_handle): Likewise.
3417 (ser_console_get_tty_state): Likewise.
3418 (make_pipe_state): Likewise.
3419 (net_windows_open): Likewise.
3420 * ser-unix.c (hardwire_get_tty_state): Likewise.
3421 (hardwire_copy_tty_state): Likewise.
3422 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3423 * solib-dsbt.c (dsbt_current_sos): Likewise.
3424 (dsbt_relocate_main_executable): Likewise.
3425 * solib-frv.c (frv_current_sos): Likewise.
3426 (frv_relocate_main_executable): Likewise.
3427 * solib-spu.c (spu_bfd_fopen): Likewise.
3428 * solib-svr4.c (lm_info_read): Likewise.
3429 (svr4_copy_library_list): Likewise.
3430 (svr4_default_sos): Likewise.
3431 * source.c (find_source_lines): Likewise.
3432 (line_info): Likewise.
3433 (add_substitute_path_rule): Likewise.
3434 * spu-linux-nat.c (spu_bfd_open): Likewise.
3435 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3436 * stabsread.c (dbx_lookup_type): Likewise.
3437 (read_type): Likewise.
3438 (read_member_functions): Likewise.
3439 (read_struct_fields): Likewise.
3440 (read_baseclasses): Likewise.
3441 (read_args): Likewise.
3442 (_initialize_stabsread): Likewise.
3443 * stack.c (func_command): Likewise.
3444 * stap-probe.c (handle_stap_probe): Likewise.
3445 * symfile.c (addrs_section_sort): Likewise.
3446 (addr_info_make_relative): Likewise.
3447 (load_section_callback): Likewise.
3448 (add_symbol_file_command): Likewise.
3449 (init_filename_language_table): Likewise.
3450 * symtab.c (create_filename_seen_cache): Likewise.
3451 (sort_search_symbols_remove_dups): Likewise.
3452 (search_symbols): Likewise.
3453 * target.c (make_cleanup_restore_target_terminal): Likewise.
3454 * thread.c (new_thread): Likewise.
3455 (enable_thread_stack_temporaries): Likewise.
3456 (make_cleanup_restore_current_thread): Likewise.
3457 (thread_apply_all_command): Likewise.
3458 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3459 * top.c (gdb_readline_wrapper): Likewise.
3460 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3461 * tracepoint.c (trace_find_line_command): Likewise.
3462 (all_tracepoint_actions_and_cleanup): Likewise.
3463 (make_cleanup_restore_current_traceframe): Likewise.
3464 (get_uploaded_tp): Likewise.
3465 (get_uploaded_tsv): Likewise.
3466 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3467 (tui_alloc_win_info): Likewise.
3468 (tui_alloc_content): Likewise.
3469 (tui_add_content_elements): Likewise.
3470 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3471 (tui_set_disassem_content): Likewise.
3472 * ui-file.c (ui_file_new): Likewise.
3473 (stdio_file_new): Likewise.
3474 (tee_file_new): Likewise.
3475 * utils.c (make_cleanup_restore_integer): Likewise.
3476 (add_internal_problem_command): Likewise.
3477 * v850-tdep.c (v850_gdbarch_init): Likewise.
3478 * valops.c (find_oload_champ): Likewise.
3479 * value.c (allocate_value_lazy): Likewise.
3480 (record_latest_value): Likewise.
3481 (create_internalvar): Likewise.
3482 * varobj.c (install_variable): Likewise.
3483 (new_variable): Likewise.
3484 (new_root_variable): Likewise.
3485 (cppush): Likewise.
3486 (_initialize_varobj): Likewise.
3487 * windows-nat.c (windows_make_so): Likewise.
3488 * x86-nat.c (x86_add_process): Likewise.
3489 * xcoffread.c (arrange_linetable): Likewise.
3490 (allocate_include_entry): Likewise.
3491 (process_linenos): Likewise.
3492 (SYMBOL_DUP): Likewise.
3493 (xcoff_start_psymtab): Likewise.
3494 (xcoff_end_psymtab): Likewise.
3495 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3496 * xtensa-tdep.c (xtensa_register_type): Likewise.
3497 * gdbarch.c: Regenerate.
3498 * gdbarch.h: Regenerate.
3499
17d8546e
DB
35002015-08-25 Don Breazeal <donb@codesourcery.com>
3501
3502 * infrun.c (follow_exec): Re-order operations for
3503 handling follow-exec-mode "new".
3504 (handle_inferior_event_1): Assign ecs->event_thread
3505 to the current thread.
3506 * remote.c (get_remote_arch_state): Add an assertion.
3507
ba49e44b
PA
35082015-08-26 Pedro Alves <palves@redhat.com>
3509
3510 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3511
7541ab03 35122015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 3513
7541ab03 3514 PR gdb/18804
abc56d60
PA
3515 * defs.h (maybe_quit): Declare.
3516 (QUIT): Now calls maybe_quit.
3517 * event-loop.c (clear_async_signal_handler)
3518 (async_signal_handler_is_marked): New functions.
3519 * event-loop.h (async_signal_handler_is_marked)
3520 (clear_async_signal_handler): New declarations.
3521 * remote.c (remote_check_pending_interrupt): New function.
3522 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3523 longer check whether the target is async. If waiting for a stop
3524 reply, and a Ctrl-C as been sent to the target, offer to
3525 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3526 Otherwise do not disconnect and throw a quit.
3527 (_initialize_remote): Install remote_check_pending_interrupt as
3528 to_check_pending_interrupt.
3529 * target.c (target_check_pending_interrupt): New function.
3530 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3531 field.
3532 (target_check_pending_interrupt): New declaration.
3533 * utils.c (maybe_quit): New function.
3534 * target-delegates.c: Regenerate.
3535
dfe7f77c
YQ
35362015-08-25 Yao Qi <yao.qi@linaro.org>
3537
3538 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3539 Rename local variable pid to tid, and get lwpid of lwp. Update
3540 debug output.
3541
63e43d3a
PMR
35422015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3543
3544 * ada-lang.c (ada_read_var_value): Add a var_block argument
3545 and pass it to default_read_var_value.
3546 * block.c (block_static_link): New accessor.
3547 * block.h (block_static_link): Declare it.
3548 * buildsym.c (finish_block_internal): Add a static_link
3549 argument. If there is a static link, associate it to the new
3550 block.
3551 (finish_block): Add a static link argument and pass it to
3552 finish_block_internal.
3553 (end_symtab_get_static_block): Update calls to finish_block and
3554 to finish_block_internal.
3555 (end_symtab_with_blockvector): Update call to
3556 finish_block_internal.
3557 * buildsym.h: Forward-declare struct dynamic_prop.
3558 (struct context_stack): Add a static_link field.
3559 (finish_block): Add a static link argument.
3560 * c-exp.y: Remove an obsolete comment (evaluation of variables
3561 already start from the selected frame, and now they climb *up*
3562 the call stack) and propagate the block information to the
3563 produced expression.
3564 * d-exp.y: Likewise.
3565 * f-exp.y: Likewise.
3566 * go-exp.y: Likewise.
3567 * jv-exp.y: Likewise.
3568 * m2-exp.y: Likewise.
3569 * p-exp.y: Likewise.
3570 * coffread.c (coff_symtab_read): Update calls to finish_block.
3571 * dbxread.c (process_one_symbol): Likewise.
3572 * xcoffread.c (read_xcoff_symtab): Likewise.
3573 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3574 "sym" parameter to struct block_symbol, update its uses and pass
3575 its block to calls to read_var_value.
3576 (convert_symbol_sym): Update the calls to convert_one_symbol.
3577 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3578 call to read_var_value.
3579 * dwarf2loc.c (block_op_get_frame_base): New.
3580 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3581 get_frame_base method.
3582 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3583 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3584 instead of the selected frame in order to evaluate the
3585 expression.
3586 (dwarf2_evaluate_property): Add a frame argument. Update call
3587 to dwarf2_locexpr_baton_eval to provide a frame in available and
3588 to handle the absence of address stack.
3589 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3590 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3591 declaration.
3592 (read_func_scope): Record any available static link description.
3593 Update call to finish_block.
3594 (read_lexical_block_scope): Update call to finish_block.
3595 * findvar.c (follow_static_link): New.
3596 (get_hosting_frame): New.
3597 (default_read_var_value): Add a var_block argument. Use
3598 get_hosting_frame to handle non-local references.
3599 (read_var_value): Add a var_block argument and pass it to the
3600 LA_READ_VAR_VALUE method.
3601 * gdbtypes.c (resolve_dynamic_range): Update calls to
3602 dwarf2_evaluate_property.
3603 (resolve_dynamic_type_internal): Likewise.
3604 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3605 read_var_value, passing it the block coming from symbol lookup.
3606 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3607 read_var_value (TODO).
3608 * infcmd.c (finish_command_continuation): Update call to
3609 read_var_value, passing it the block coming from symbol lookup.
3610 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3611 * language.h (struct language_defn): Add a var_block argument to
3612 the LA_READ_VAR_VALUE method.
3613 * objfiles.c (struct static_link_htab_entry): New.
3614 (static_link_htab_entry_hash): New.
3615 (static_link_htab_entry_eq): New.
3616 (objfile_register_static_link): New.
3617 (objfile_lookup_static_link): New.
3618 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3619 * objfiles.h: Include hashtab.h.
3620 (struct objfile): Add a static_links field.
3621 (objfile_register_static_link): New.
3622 (objfile_lookup_static_link): New.
3623 * printcmd.c (print_variable_and_value): Update call to
3624 read_var_value.
3625 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3626 * python/py-frame.c (frapy_read_var): Update call to
3627 read_var_value, passing it the block coming from symbol lookup.
3628 * python/py-framefilter.c (extract_sym): Add a sym_block
3629 parameter and set the pointed value to NULL (TODO).
3630 (enumerate_args): Update call to extract_sym.
3631 (enumerate_locals): Update calls to extract_sym and to
3632 read_var_value.
3633 * python/py-symbol.c (sympy_value): Update call to
3634 read_var_value (TODO).
3635 * stack.c (read_frame_local): Update call to read_var_value.
3636 (read_frame_arg): Likewise.
3637 (return_command): Likewise.
3638 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3639 method.
3640 (struct symbol): Add a block field.
3641 (SYMBOL_BLOCK): New accessor.
3642 * valops.c (value_of_variable): Remove frame/block handling and
3643 pass the block argument to read_var_value, which does this job
3644 now.
3645 (value_struct_elt_for_reference): Update calls to
3646 read_var_value.
3647 (value_of_this): Pass the block found to read_var_value.
3648 * value.h (read_var_value): Add a var_block argument.
3649 (default_read_var_value): Likewise.
3650
ed8b7b42
YQ
36512015-08-25 Yao Qi <yao.qi@linaro.org>
3652
3653 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3654 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3655 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3656
db3cb7cb
YQ
36572015-08-25 Yao Qi <yao.qi@linaro.org>
3658
3659 * Makefile.in (aarch64-liunx.o): New rule.
3660 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3661 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3662 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3663 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3664 extern.
3665 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3666 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3667 * nat/aarch64-linux.c: New file.
3668 * nat/aarch64-linux.h: New file.
3669
f6011a1c
YQ
36702015-08-25 Yao Qi <yao.qi@linaro.org>
3671
3672 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3673 lwp_arch_private_info and ptid_of_lwp.
3674
5e35436e
YQ
36752015-08-25 Yao Qi <yao.qi@linaro.org>
3676
3677 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3678 Move it to nat/aarch64-linux-hw-point.c.
3679 (debug_reg_change_callback): Likewise.
3680 (aarch64_notify_debug_reg_change): :Likewise.
3681 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3682 (aarch64_dr_update_callback_param): New.
3683 (debug_reg_change_callback): New function.
3684 (aarch64_notify_debug_reg_change): Likewise.
3685 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3686 Remove the declaration.
3687
4a8a7965
YQ
36882015-08-25 Yao Qi <yao.qi@linaro.org>
3689
3690 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3691 Call current_lwp_ptid.
3692
32a271ee
YQ
36932015-08-25 Yao Qi <yao.qi@linaro.org>
3694
3695 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3696 debug_printf.
3697
5e137137
YQ
36982015-08-25 Yao Qi <yao.qi@linaro.org>
3699
3700 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3701 ptid_get_pid rather than ptid_get_lwp.
3702
73b8c1fd
PA
37032015-08-24 Pedro Alves <palves@redhat.com>
3704
3705 * NEWS (New commands): Mention set/show remote
3706 multiprocess-extensions-packet.
3707 * remote.c (remote_query_supported): Only tell the server to use
3708 the multiprocess extensions if the user hasn't force-disabled them
3709 with "set remote multiprocess-extensions-packet off".
3710
4a626d0a
PA
37112015-08-24 Pedro Alves <palves@redhat.com>
3712
3713 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3714 1029a8112290f6eee9d7878a391c49db42c999bd.
3715 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3716 Regenerate.
3717 * gnulib/import/Makefile.am: Update.
3718 * gnulib/import/Makefile.in: Update.
3719 * gnulib/import/alloca.in.h: Update.
3720 * gnulib/import/basename-lgpl.c: Update.
3721 * gnulib/import/canonicalize-lgpl.c: Update.
3722 * gnulib/import/config.charset: Update.
3723 * gnulib/import/dirent.in.h: Update.
3724 * gnulib/import/dirfd.c: Update.
3725 * gnulib/import/dirname-lgpl.c: Update.
3726 * gnulib/import/dirname.h: Update.
3727 * gnulib/import/dosname.h: Update.
3728 * gnulib/import/errno.in.h: Update.
3729 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3730 * gnulib/import/extra/snippet/c++defs.h: Update.
3731 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3732 * gnulib/import/extra/update-copyright: Update.
3733 * gnulib/import/float+.h: Update.
3734 * gnulib/import/float.c: Update.
3735 * gnulib/import/float.in.h: Update.
3736 * gnulib/import/fnmatch.c: Update.
3737 * gnulib/import/fnmatch.in.h: Update.
3738 * gnulib/import/fnmatch_loop.c: Update.
3739 * gnulib/import/fpucw.h: Update.
3740 * gnulib/import/frexp.c: Update.
3741 * gnulib/import/frexpl.c: Update.
3742 * gnulib/import/gettimeofday.c: Update.
3743 * gnulib/import/inttypes.in.h: Update.
3744 * gnulib/import/isnan.c: Update.
3745 * gnulib/import/isnand-nolibm.h: Update.
3746 * gnulib/import/isnand.c: Update.
3747 * gnulib/import/isnanl-nolibm.h: Update.
3748 * gnulib/import/isnanl.c: Update.
3749 * gnulib/import/itold.c: Update.
3750 * gnulib/import/localcharset.c: Update.
3751 * gnulib/import/localcharset.h: Update.
3752 * gnulib/import/lstat.c: Update.
3753 * gnulib/import/m4/00gnulib.m4: Update.
3754 * gnulib/import/m4/absolute-header.m4: Update.
3755 * gnulib/import/m4/alloca.m4: Update.
3756 * gnulib/import/m4/canonicalize.m4: Update.
3757 * gnulib/import/m4/codeset.m4: Update.
3758 * gnulib/import/m4/configmake.m4: Update.
3759 * gnulib/import/m4/dirent_h.m4: Update.
3760 * gnulib/import/m4/dirfd.m4: Update.
3761 * gnulib/import/m4/dirname.m4: Update.
3762 * gnulib/import/m4/double-slash-root.m4: Update.
3763 * gnulib/import/m4/eealloc.m4: Update.
3764 * gnulib/import/m4/errno_h.m4: Update.
3765 * gnulib/import/m4/exponentd.m4: Update.
3766 * gnulib/import/m4/exponentl.m4: Update.
3767 * gnulib/import/m4/extensions.m4: Update.
3768 * gnulib/import/m4/extern-inline.m4: Update.
3769 * gnulib/import/m4/fcntl-o.m4: Update.
3770 * gnulib/import/m4/float_h.m4: Update.
3771 * gnulib/import/m4/fnmatch.m4: Update.
3772 * gnulib/import/m4/fpieee.m4: Update.
3773 * gnulib/import/m4/frexp.m4: Update.
3774 * gnulib/import/m4/frexpl.m4: Update.
3775 * gnulib/import/m4/gettimeofday.m4: Update.
3776 * gnulib/import/m4/glibc21.m4: Update.
3777 * gnulib/import/m4/gnulib-cache.m4: Update.
3778 * gnulib/import/m4/gnulib-common.m4: Update.
3779 * gnulib/import/m4/gnulib-comp.m4: Update.
3780 * gnulib/import/m4/gnulib-tool.m4: Update.
3781 * gnulib/import/m4/include_next.m4: Update.
3782 * gnulib/import/m4/inttypes-pri.m4: Update.
3783 * gnulib/import/m4/inttypes.m4: Update.
3784 * gnulib/import/m4/isnand.m4: Update.
3785 * gnulib/import/m4/isnanl.m4: Update.
3786 * gnulib/import/m4/largefile.m4: Update.
3787 * gnulib/import/m4/localcharset.m4: Update.
3788 * gnulib/import/m4/locale-fr.m4: Update.
3789 * gnulib/import/m4/locale-ja.m4: Update.
3790 * gnulib/import/m4/locale-zh.m4: Update.
3791 * gnulib/import/m4/longlong.m4: Update.
3792 * gnulib/import/m4/lstat.m4: Update.
3793 * gnulib/import/m4/malloc.m4: Update.
3794 * gnulib/import/m4/malloca.m4: Update.
3795 * gnulib/import/m4/math_h.m4: Update.
3796 * gnulib/import/m4/mbrtowc.m4: Update.
3797 * gnulib/import/m4/mbsinit.m4: Update.
3798 * gnulib/import/m4/mbsrtowcs.m4: Update.
3799 * gnulib/import/m4/mbstate_t.m4: Update.
3800 * gnulib/import/m4/memchr.m4: Update.
3801 * gnulib/import/m4/memmem.m4: Update.
3802 * gnulib/import/m4/mmap-anon.m4: Update.
3803 * gnulib/import/m4/multiarch.m4: Update.
3804 * gnulib/import/m4/nocrash.m4: Update.
3805 * gnulib/import/m4/off_t.m4: Update.
3806 * gnulib/import/m4/pathmax.m4: Update.
3807 * gnulib/import/m4/readlink.m4: Update.
3808 * gnulib/import/m4/rename.m4: Update.
3809 * gnulib/import/m4/rmdir.m4: Update.
3810 * gnulib/import/m4/ssize_t.m4: Update.
3811 * gnulib/import/m4/stat.m4: Update.
3812 * gnulib/import/m4/stdbool.m4: Update.
3813 * gnulib/import/m4/stddef_h.m4: Update.
3814 * gnulib/import/m4/stdint.m4: Update.
3815 * gnulib/import/m4/stdio_h.m4: Update.
3816 * gnulib/import/m4/stdlib_h.m4: Update.
3817 * gnulib/import/m4/string_h.m4: Update.
3818 * gnulib/import/m4/strstr.m4: Update.
3819 * gnulib/import/m4/strtok_r.m4: Update.
3820 * gnulib/import/m4/sys_socket_h.m4: Update.
3821 * gnulib/import/m4/sys_stat_h.m4: Update.
3822 * gnulib/import/m4/sys_time_h.m4: Update.
3823 * gnulib/import/m4/sys_types_h.m4: Update.
3824 * gnulib/import/m4/time_h.m4: Update.
3825 * gnulib/import/m4/unistd_h.m4: Update.
3826 * gnulib/import/m4/warn-on-use.m4: Update.
3827 * gnulib/import/m4/wchar_h.m4: Update.
3828 * gnulib/import/m4/wchar_t.m4: Update.
3829 * gnulib/import/m4/wctype_h.m4: Update.
3830 * gnulib/import/m4/wint_t.m4: Update.
3831 * gnulib/import/malloc.c: Update.
3832 * gnulib/import/malloca.c: Update.
3833 * gnulib/import/malloca.h: Update.
3834 * gnulib/import/math.in.h: Update.
3835 * gnulib/import/mbrtowc.c: Update.
3836 * gnulib/import/mbsinit.c: Update.
3837 * gnulib/import/mbsrtowcs-impl.h: Update.
3838 * gnulib/import/mbsrtowcs-state.c: Update.
3839 * gnulib/import/mbsrtowcs.c: Update.
3840 * gnulib/import/memchr.c: Update.
3841 * gnulib/import/memmem.c: Update.
3842 * gnulib/import/pathmax.h: Update.
3843 * gnulib/import/readlink.c: Update.
3844 * gnulib/import/ref-add.sin: Update.
3845 * gnulib/import/ref-del.sin: Update.
3846 * gnulib/import/rename.c: Update.
3847 * gnulib/import/rmdir.c: Update.
3848 * gnulib/import/same-inode.h: Update.
3849 * gnulib/import/stat.c: Update.
3850 * gnulib/import/stdbool.in.h: Update.
3851 * gnulib/import/stddef.in.h: Update.
3852 * gnulib/import/stdint.in.h: Update.
3853 * gnulib/import/stdio.c: Update.
3854 * gnulib/import/stdio.in.h: Update.
3855 * gnulib/import/stdlib.in.h: Update.
3856 * gnulib/import/str-two-way.h: Update.
3857 * gnulib/import/streq.h: Update.
3858 * gnulib/import/string.in.h: Update.
3859 * gnulib/import/stripslash.c: Update.
3860 * gnulib/import/strnlen1.c: Update.
3861 * gnulib/import/strnlen1.h: Update.
3862 * gnulib/import/strstr.c: Update.
3863 * gnulib/import/strtok_r.c: Update.
3864 * gnulib/import/sys_stat.in.h: Update.
3865 * gnulib/import/sys_time.in.h: Update.
3866 * gnulib/import/sys_types.in.h: Update.
3867 * gnulib/import/time.in.h: Update.
3868 * gnulib/import/unistd.in.h: Update.
3869 * gnulib/import/verify.h: Update.
3870 * gnulib/import/wchar.in.h: Update.
3871 * gnulib/import/wctype.in.h: Update.
3872 * gnulib/import/gettimeofday.c: New file.
3873 * gnulib/import/m4/absolute-header.m4: New file.
3874 * gnulib/import/m4/gettimeofday.m4: New file.
3875 * gnulib/import/m4/sys_socket_h.m4: New file.
3876 * gnulib/import/m4/sys_time_h.m4: New file.
3877 * gnulib/import/stdio.c: Delete file.
3878 * gnulib/import/sys_time.in.h: New file.
3879
438e1e42
PA
38802015-08-24 Pedro Alves <palves@redhat.com>
3881
3882 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3883 * common/gdb_sys_time.h: New file.
3884 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3885 * gdb_select.h: Likewise.
3886 * gdb_usleep.c: Likewise.
3887 * maint.c: Likewise.
3888 * mi/mi-main.c: Likewise.
3889 * mi/mi-parse.h: Likewise.
3890 * remote-fileio.c: Likewise.
3891 * remote-m32r-sdi.c: Likewise.
3892 * remote.c: Likewise.
3893 * ser-base.c: Likewise.
3894 * ser-pipe.c: Likewise.
3895 * ser-tcp.c: Likewise.
3896 * ser-unix.c: Likewise.
3897 * symfile.c: Likewise.
3898 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3899 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3900 * utils.c: Likewise.
3901
40e0b271
PA
39022015-08-24 Pedro Alves <palves@redhat.com>
3903
3904 * NEWS: Mention removed support for the various ROM monitors.
3905 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3906 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3907 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3908 gdb_target_obs.
3909 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3910 gdb_target_obs.
3911 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3912 dsrec.o from gdb_target_obs.
3913 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3914 from gdb_target_obs.
3915 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3916 gdb_target_obs.
3917 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3918 dink32-rom.o from gdb_target_obs.
3919 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3920 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3921 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3922 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3923
f8904751
PA
39242015-08-21 Pedro Alves <palves@redhat.com>
3925
3926 * frame.c (null_frame_id): Explicitly zero-initialize.
3927
049412e3
TT
39282015-08-21 Tom Tromey <tromey@redhat.com>
3929
3930 * dwarf2read.c (struct dwarf2_section_info): Rename field
3931 'asection' to 'section'.
3932 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3933 (dwarf2_locate_sections, dwarf2_locate_sections)
3934 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3935 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3936 (dwarf2_locate_v2_dwp_sections): Adjust.
3937
948578a9
PP
39382015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3939
3940 * top.h (gdb_in_secondary_prompt_p): Declare.
3941 * top.c (gdb_secondary_prompt_depth): Define.
3942 (gdb_in_secondary_prompt_p): Define.
3943 (gdb_readline_wrapper_cleanup): Decrement
3944 gdb_secondary_prompt_depth.
3945 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3946 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3947 are in a secondary prompt.
3948
7a8bcb88
PP
39492015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3950
3951 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3952 emit the newline.
3953
2d7711a3
GB
39542015-08-21 Gary Benson <gbenson@redhat.com>
3955
3956 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3957
4313b8c0
GB
39582015-08-21 Gary Benson <gbenson@redhat.com>
3959
3960 * target.h (struct target_ops) <to_fileio_open>: New argument
3961 warn_if_slow. Update comment. All implementations updated.
3962 (target_fileio_open_warn_if_slow): New declaration.
3963 * target.c (target_fileio_open): Renamed as...
3964 (target_fileio_open_1): ...this. New argument warn_if_slow.
3965 Pass warn_if_slow to implementation. Update debug printing.
3966 (target_fileio_open): New function.
3967 (target_fileio_open_warn_if_slow): Likewise.
3968 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3969 target_fileio_open_warn_if_slow.
3970
f36b8719
GB
39712015-08-21 Gary Benson <gbenson@redhat.com>
3972
3973 * nat/linux-namespaces.c (linux_mntns_access_fs):
3974 Do not overwrite old_chain.
3975
40045d91
MF
39762015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3977
3978 * arch/xtensa.h: New file.
3979 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3980 (ps_get_thread_area): New function.
3981 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3982 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3983 * xtensa-tdep.c (osabi.h): New #include.
3984 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3985 xtensa-specific hooks.
3986 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3987 member and move the structure to arch/xtensa.h.
3988
80152258
PA
39892015-08-21 Pedro Alves <palves@redhat.com>
3990
3991 * remote.c (struct readahead_cache): New.
3992 (struct remote_state) <readahead_cache>: New field.
3993 (remote_open_1): Invalidate the cache.
3994 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3995 functions.
3996 (remote_hostio_pwrite): Invalidate the readahead cache.
3997 (remote_hostio_pread): Rename to ...
3998 (remote_hostio_pread_vFile): ... this.
3999 (remote_hostio_pread_from_cache): New function.
4000 (remote_hostio_pread): Reimplement.
4001 (remote_hostio_close): Invalidate the readahead cache.
4002
88fc5eb7
MC
40032015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4004
4005 PR build/18843
4006 * procfs.c: Include "filestuff.h".
4007
6f1cb6ea
PP
40082015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4009
4010 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4011 curch.
4012 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4013 cur_line or curch, instead call wmove().
4014 (init_win_info) [CMD_WIN]: Likewise.
4015 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4016 instead call getcury().
4017 (tui_redisplay_readline): Don't set cur_line or curch.
4018 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4019 getcury().
4020 (tui_cont_sig): Remove call to wmove.
4021 (tui_getc): Don't read cur_line or curch, instead call getcury()
4022 or getyx(). Don't set curch.
4023 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4024 set cur_line or curch. Always move cursor to (0,0).
4025
221e1a37
PA
40262015-08-20 Pedro Alves <palves@redhat.com>
4027
4028 * infrun.c (print_target_wait_results): Make extern.
4029 * infrun.h (print_target_wait_results): Declare.
4030 * remote.c (set_stop_requested_callback): Delete.
4031 (process_initial_stop_replies): New function.
4032 (remote_start_remote): Use it.
4033 (stop_reply_queue_length): New function.
4034
40e3ad0e
PA
40352015-08-20 Pedro Alves <palves@redhat.com>
4036
4037 * dwarf2read.c (process_full_comp_unit): To tell whether
4038 start_subfile managed to deduce a language, test for
4039 language_unknown instead of language_c.
4040
af39b327
PMR
40412015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4042
4043 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4044 matches attributes.
4045
7d45c7c3
KB
40462015-08-19 Kevin Buettner <kevinb@redhat.com>
4047
4048 * dwarf2read.c (dwarf2_string_attr): New function.
4049 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4050 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4051 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4052 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4053 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4054
4d6cceb4
DE
40552015-08-18 Doug Evans <dje@google.com>
4056 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4057
4058 PR mi/18833
4059 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4060 if MI-like.
4061 * mi/mi-out.c: #include "vec.h".
4062 (ui_filep): New type.
4063 (DEV_VEC_P (ui_filep)): New type.
4064 (struct ui_out_data) <buffer, original_buffer>: Delete.
4065 (struct ui_out_data) <streams>: New member.
4066 (mi_ui_out_impl): Add data_destroy field.
4067 (mi_field_string, mi_field_fmt): Update.
4068 (mi_flush, mi_redirect, field_separator): Update.
4069 (mi_open, mi_close): Update.
4070 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4071 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4072 (mi_out_new): Call mi_out_data_ctor.
4073
26d56a93
SL
40742015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4075
4076 * remote.c (strprefix): New.
4077 (remote_parse_stop_reply): Use strprefix instead of strncmp
4078 to ensure exact match of keyword.
4079
566f5e3b
AB
40802015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4081
4082 * gdb_bfd.c (debug_bfd_cache): New variable.
4083 (show_bfd_cache_debug): New function.
4084 (gdb_bfd_open): Add debug logging.
4085 (gdb_bfd_ref): Likewise.
4086 (gdb_bfd_unref): Likewise.
4087 (_initialize_gdb_bfd): Add new set/show command.
4088 * NEWS: Mention new command.
4089
18989b3c
AB
40902015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4091
4092 * gdb_bfd.c (bfd_sharing): New variable.
4093 (show_bfd_sharing): New function.
4094 (gdb_bfd_open): Check bfd_sharing variable.
4095 (_initialize_gdb_bfd): Add new set/show command.
4096 * NEWS: Mention new command.
4097
c04fe68f
AB
40982015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4099
4100 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4101 field.
4102 (struct gdb_bfd_cache_search): Likewise.
4103 (eq_bfd): Compare the size, inode, and device id fields.
4104 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4105 (gdb_bfd_ref): Likewise.
4106 (gdb_bfd_unref): Likewise.
4107
b2a33439
PA
41082015-08-18 Pedro Alves <palves@redhat.com>
4109
4110 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4111 target implements to_always_non_stop_p, call it.
4112 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4113 (x86_linux_create_target): Install it as to_always_non_stop_p
4114 method.
4115
71b57e37
DE
41162015-08-17 Doug Evans <dje@google.com>
4117
4118 * ui-out.c (default_ui_out_impl): Add comment.
4119
7f3706eb
IB
41202015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4121
4122 * d-exp.y (type_aggregate_p): New function.
4123 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4124 (classify_inner_name): Likewise.
4125 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4126
1762568f
DE
41272015-08-15 Doug Evans <xdje42@gmail.com>
4128
4129 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4130 updated.
4131 (add_psymbol_to_list): Ditto.
4132
8763cede
DE
41332015-08-15 Doug Evans <xdje42@gmail.com>
4134
4135 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4136 updated. Call end_psymtab_common.
4137 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4138 end_psymtab_common.
4139 (build_type_psymtabs_reader): Ditto.
4140 * psympriv.h (sort_pst_symbols): Delete.
4141 (end_psymtab_common): Declare.
4142 * psymtab.c (sort_pst_symbols): Make static.
4143 (end_psymtab_common): New function.
4144 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4145
51cdc993
DE
41462015-08-15 Doug Evans <xdje42@gmail.com>
4147
4148 * defs.h (LANGUAGE_BITS): Define.
4149 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4150 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4151 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4152 (minimal_symbol_type): Add nr_minsym_types.
4153 (MINSYM_TYPE_BITS): Define.
4154 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4155 (domain_enum_tag): Add NR_DOMAINS.
4156 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4157 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4158
95cf5869
DE
41592015-08-15 Doug Evans <xdje42@gmail.com>
4160
4161 * objfiles.h: Whitespace cleanup.
4162 * psympriv.h: Whitespace cleanup.
4163 * psymtab.c: Whitespace/coding convention cleanup.
4164
e3ae3c43
PP
41652015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4166
4167 * inferior.c (detach_inferior_command): Don't call
4168 any_thread_of_process when pid is 0.
4169 (kill_inferior_command): Likewise.
4170
6ff0ba5f
DE
41712015-08-14 Doug Evans <xdje42@gmail.com>
4172
4173 PR gdb/11833
4174 * NEWS: Document new /s modifier for the disassemble command.
4175 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4176 (_initialize_cli_cmds): Update online docs of disassemble command.
4177 * disasm.c: #include "source.h".
4178 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4179 All uses updated.
4180 (dis_line_entry): New struct.
4181 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4182 (allocate_dis_line_table): New functions.
4183 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4184 (dump_insns): New arg end_pc. All callers updated.
4185 (do_mixed_source_and_assembly_deprecated): Renamed from
4186 do_mixed_source_and_assembly. All callers updated.
4187 (do_mixed_source_and_assembly): New function.
4188 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4189 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4190 DISASSEMBLY_SOURCE. All uses updated.
4191 (DISASSEMBLY_SOURCE): New macro.
4192 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4193
b56ccc20
KS
41942015-08-14 Keith Seitz <keiths@redhat.com>
4195
4196 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4197 `typename' to `type_name' to avoid C++ reserved word.
4198
ebdad8fc
KS
41992015-08-14 Keith Seitz <keiths@redhat.com>
4200
4201 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4202 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4203 silence ARI errors.
4204
c0fe2ae7
IB
42052015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4206
4207 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4208 xstrprintf instead of malloc and sprintf.
4209 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4210 (lex_one_token): Likewise.
4211
a738da3a
MF
42122015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4213
4214 * solib-svr4.c (read_program_header): Add base_addr argument to
4215 report the runtime address of the segment.
4216 (find_program_interpreter): Update read_program_header call to pass
4217 a NULL pointer for the new argument.
4218 (scan_dyntag): Add ptr_addr argument to report the runtime address
4219 of the tag payload.
4220 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4221 read_program_header to get the base address of the dynamic segment.
4222 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4223 read_program_header.
4224 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4225
f8edc4ff
MF
42262015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4227
4228 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4229
444c1ed8
IB
42302015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4231
4232 * d-exp.y (%union): Add voidval.
4233 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4234 name in the lexing stage.
4235 (PostfixExpression): Move symbol completion handling in grammar here
4236 from PrimaryExpression.
4237 (PrimaryExpression): Move routines to handle resolving identifier
4238 tokens in the grammar here from push_expression_name.
4239 (IdentifierExp): Remove the handling of alternating '.' and identifier
4240 tokens.
4241 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4242 (BasicType): Remove C-style typename rules.
4243 (d_type_from_name, d_module_from_name, push_variable)
4244 (push_fieldnames, push_type_name, push_module_name)
4245 (push_expression_name): Remove.
4246 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4247 (token_and_value): New type.
4248 (token_fifo, popping, name_obstack): New globals.
4249 (classify_name): New function.
4250 (classify_inner_name): Likewise.
4251 (yylex): Likewise.
4252 (d_parse): Initialize token_fifo, popping and name_obstack.
4253
bc7c9fab
IB
42542015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4255
4256 * Makefile.in (SFILES): Add d-namespace.c.
4257 (COMMON_OBS): Add d-namespace.o.
4258 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4259 la_lookup_symbol_nonlocal callback function pointer.
4260 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4261 (d_lookup_nested_symbol): New declaration.
4262 * d-namespace.c: New file.
4263
3207396b
PA
42642015-08-13 Pedro Alves <palves@redhat.com>
4265
4266 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4267 cleanup after the decref cleanup, not before.
4268
5d8c3ed3
PMR
42692015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4270
4271 * ada-lang.c: Include namespace.h
4272 (aux_add_nonlocal_symbols): Fix a function name in comment.
4273 (ada_add_block_renamings): New.
4274 (add_nonlocal_symbols): Add global renamings handling.
4275 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4276 to...
4277 (ada_add_all_symbols): ... this new function.
4278 (ada_add_block_symbols): Try to match the input name against the
4279 "using directives list", perform a recursive symbol lookup on
4280 the matched declarations.
4281 * block.h (struct block): Move the_namespace to top-level as
4282 namespace_info. Remove the language_specific field.
4283 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4284 * buildsym.h (using_directives): Rename into...
4285 (local_using_directives): ... this.
4286 (global_using_directives): New.
4287 (struct context_stack): Rename the using_directives field into
4288 local_using_directives.
4289 * buildsym.c (finish_block_internal): Deal with the proper
4290 using directives repository (local or global).
4291 (prepare_for_building): Reset local_using_directives. Assert
4292 that there is no pending global using directive.
4293 (reset_symtab_globals): Reset global_using_directives and
4294 local_using_directives.
4295 (end_symtab_get_static_block): Don't ignore symtabs that have
4296 only using directives.
4297 (push_context): Update references to local_using_directives.
4298 (buildsym_init): Do not reset using_directives.
4299 * cp-support.c: Include namespace.h.
4300 * cp-support.h (struct using_direct): Move to namespace.h.
4301 (cp_add_using_directives): Move to namespace.h.
4302 * cp-namespace.c: Include namespace.h
4303 (cp_add_using_directive): Move to namespace.c, rename it to
4304 add_using_directive, add a "using_directives" argument and use
4305 it as the pending using directives repository. All callers
4306 updated.
4307 * dwarf2read.c (using_directives): New.
4308 (read_import_statement): Call using_directives.
4309 (read_func_scope): Update references to local_using_directives.
4310 (read_lexical_block_scope): Likewise.
4311 (read_namespace): Update the heading comment, call
4312 using_directives.
4313 * namespace.h: New file.
4314 * namespace.c: New file.
4315 * Makefile.in (SFILES): Add namespace.c.
4316 (COMMON_OBS): Add namespace.o
4317
4dafcdeb
JB
43182015-08-12 Joel Brobecker <brobecker@adacore.com>
4319
4320 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4321 compute RETADDR.
4322
67994074
KS
43232015-08-12 Keith Seitz <keiths@redhat.com>
4324
4325 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4326 reserved C++ keyword "explicit" to "explicit_loc".
4327 * breakpoint.c (create_overlay_event_breakpoint)
4328 (create_longjmp_master_breakpoint)
4329 (create_std_terminate_master_breakpoint)
4330 (create_exception_master_breakpoint, update_static_tracepoint):
4331 Rename reserved C++ keyword "explicit" to "explicit_loc".
4332 * completer.c (collect_explicit_location_matches)
4333 (explicit_location_completer): Rename reserved C++ keyword
4334 "explicit" to "explicit_loc".
4335 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4336 (canonicalize_linespec, create_sals_line_offset)
4337 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4338 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4339 "explicit" to "explicit_loc".
4340 * location.c (struct event_location) <explicit>: Rename to
4341 "explicit_loc".
4342 (initialize_explicit_location, new_explicit_location)
4343 (explicit_location_to_string_internal, explicit_location_to_linespec):
4344 Rename reserved C++ keyword "explicit" to "explicit_loc".
4345 * location.h (explicit_location_to_string)
4346 (explicit_location_to_linespec, initialize_explicit_location)
4347 (new_explicit_location): Rename reserved C++ keyword "explicit"
4348 to "explicit_loc".
4349 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4350 keyword "explicit" to "explicit_loc".
4351
59ecaff3
KS
43522015-08-12 Keith Seitz <keiths@redhat.com>
4353
4354 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4355 and only call decode_line_1 when it is non-NULL.
4356
244558af
LM
43572015-08-12 Luis Machado <lgustavo@codesourcery.com>
4358
4359 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4360 location address is not meaningful.
4361 (breakpoint_address_is_meaningful): Update comment.
4362
629500fa
KS
43632015-08-11 Keith Seitz <keiths@redhat.com>
4364
4365 * NEWS: Mention explicit locations.
4366 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4367 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4368 (_initialize_breakpoint): Update documentation for
4369 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4370
eb8c4e2e
KS
43712015-08-11 Keith Seitz <keiths@redhat.com>
4372
4373 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4374 explicit locations, options "--source", "--function",
4375 "--label", and "--line".
4376
87f0e720
KS
43772015-08-11 Keith Seitz <keiths@redhat.com>
4378
4379 * completer.c: Include location.h.
4380 (enum match_type): New enum.
4381 (location_completer): Rename to ...
4382 (linespec_completer): ... this.
4383 (collect_explicit_location_matches, backup_text_ptr)
4384 (explicit_location_completer): New functions.
4385 (location_completer): "New" function; handle linespec
4386 and explicit location completions.
4387 (complete_line_internal): Remove all location completer-specific
4388 handling.
4389 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4390 (find_toplevel_char): Export.
4391 (linespec_parse_line_offset): Export.
4392 Issue error if STRING is not numerical.
4393 (gdb_get_linespec_parser_quote_characters): New function.
4394 * linespec.h (linespec_parse_line_offset): Declare.
4395 (get_gdb_linespec_parser_quote_characters): Declare.
4396 (is_ada_operator): Declare.
4397 (find_toplevel_char): Declare.
4398 (linespec_lexer_lex_keyword): Declare.
4399 * location.c (explicit_to_event_location): New function.
4400 (explicit_location_lex_one): New function.
4401 (string_to_explicit_location): New function.
4402 (string_to_event_location): Handle explicit locations.
4403 * location.h (explicit_to_event_location): Declare.
4404 (string_to_explicit_location): Declare.
4405
00e52e53
KS
44062015-08-11 Keith Seitz <keiths@redhat.com>
4407
4408 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4409 linespec into explicit location.
4410 * breakpoint.c (create_overlay_breakpoint)
4411 (create_longjmp_master_breakpoint)
4412 (create_std_terminate_master_breakpoint)
4413 (create_exception_master_breakpoint): Convert linespec into explicit
4414 location.
4415 (update_static_tracepoint): Convert linespec into explicit location.
4416 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4417 location.h.
4418 (struct linespec) <expression, expr_pc, source_filename>
4419 <function_name, label_name, line_offset>: Replace with ...
4420 <explicit>: ... this.
4421 <is_linespec>: New member.
4422 (PARSER_EXPLICIT): New accessor macro.
4423 (undefined_label_error): New function.
4424 (source_file_not_found_error): New function.
4425 (linespec_parse_basic): The parser result is now an explicit location.
4426 Use PARSER_EXPLICIT to access it.
4427 Use undefined_label_error.
4428 (canonicalize_linespec): Convert canonical linespec into explicit
4429 location.
4430 Move string representation of location to explicit_location_to_linespec
4431 and use it and explicit_location_to_string to save string
4432 representations of the canonical location.
4433 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4434 explicit location. Update all references.
4435 (convert_explicit_location_to_sals): New function.
4436 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4437 result's explicit location.
4438 (linespec_state_constructor): Initialize is_linespec.
4439 Use PARSER_EXPLICIT.
4440 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4441 result.
4442 (event_location_to_sals): For linespec locations, set is_linespec.
4443 Handle explicit locations.
4444 (decode_objc): 'ls' contains an explicit location now. Update all
4445 references.
4446 (symtabs_from_filename): Use source_file_not_found_error.
4447 * location.c (struct event_location.u) <explicit>: New member.
4448 (initialize_explicit_location): New function.
4449 (initialize_event_location): Initialize explicit locations.
4450 (new_explicit_location, get_explicit_location)
4451 (get_explicit_location_const): New functions.
4452 (explicit_to_string_internal): New function; most of contents moved
4453 from canonicalize_linespec.
4454 (explicit_location_to_string): New function.
4455 (explicit_location_to_linespec): New function.
4456 (copy_event_location, delete_event_location)
4457 (event_location_to_string_const, event_location_empty_p): Handle
4458 explicit locations.
4459 * location.h (enum offset_relative_sign, struct line_offset): Move
4460 here from linespec.h.
4461 (enum event_location_type): Add EXPLICIT_LOCATION.
4462 (struct explicit_location): New structure.
4463 (explicit_location_to_string): Declare.
4464 (explicit_location_to_linespec): Declare.
4465 (new_explicit_location, get_explicit_locationp
4466 (get_explicit_location_const, initialize_explicit_location): Declare.
4467
5b56227b
KS
44682015-08-11 Keith Seitz <keiths@redhat.com>
4469
4470 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4471 linespec for stap probe to probe location.
4472 * breakpoint.c (create_longjmp_master_breakpoint)
4473 (create_exception_master_breakpoint): Likewise.
4474 (break_command_1): Remove local variable `arg_cp'.
4475 Check location type to set appropriate breakpoint ops methods.
4476 (trace_command): Likewise.
4477 * linespec.c (event_location_to_sals): Assert on probe locations.
4478 * location.c (EL_PROBE): Add macro definition.
4479 (new_probe_location, get_probe_location): New functions.
4480 (copy_event_location, delete_event_location, event_location_to_string)
4481 (string_to_event_location, event_location_empty_p): Handle probe
4482 locations.
4483 * location.h (enum event_location_type): Add PROBE_LOCATION.
4484 (new_probe_location, get_probe_location): Declare.
4485 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4486 Convert linespec into probe location.
4487
a06efdd6
KS
44882015-08-11 Keith Seitz <keiths@redhat.com>
4489
4490 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4491 Convert linespec to address location.
4492 * linespec.c (canonicalize_linespec): Do not handle address
4493 locations here.
4494 (convert_address_location_to_sals): New function; contents moved
4495 from ...
4496 (convert_linespc_to_sals): ... here.
4497 (parse_linespec): Remove address locations from linespec grammar.
4498 Remove handling of address locations.
4499 (linespec_lex_to_end): Remove handling of address linespecs.
4500 (event_location_to_sals): Handle ADDRESS_LOCATION.
4501 (linespec_expression_to_pc): Export.
4502 * linespec.h (linespec_expression_to_pc): Add declaration.
4503 * location.c (struct event_location.u) <address>: New member.
4504 (new_address_location, get_address_location): New functions.
4505 (copy_event_location, delete_event_location, event_location_to_string)
4506 (string_to_event_location, event_location_empty_p): Handle address
4507 locations.
4508 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4509 (new_address_location, get_address_location): Declare.
4510 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4511 to address location.
4512 * spu-tdep.c (spu_catch_start): Likewise.
4513
f00aae0f
KS
45142015-08-11 Keith Seitz <keiths@redhat.com>
4515
4516 * ax-gdb.c: Include location.h.
4517 (agent_command_1) Use linespec location instead of address
4518 string.
4519 * break-catch-throw.c: Include location.h.
4520 (re_set_exception_catchpoint): Use linespec locations instead
4521 of address strings.
4522 * breakpoint.c: Include location.h.
4523 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4524 (create_std_terminate_master_breakpoint)
4525 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4526 Use linespec location instead of address string.
4527 (print_breakpoint_location): Use locations and
4528 event_location_to_string.
4529 Print extra_string for pending locations for non-MI streams.
4530 (print_one_breakpoint_location): Use locations and
4531 event_location_to_string.
4532 (init_raw_breakpoint_without_location): Initialize b->location.
4533 (create_thread_event_breakpoint): Use linespec location instead of
4534 address string.
4535 (init_breakpoint_sal): Likewise.
4536 Only save extra_string if it is non-NULL and not the empty string.
4537 Use event_location_to_string instead of `addr_string'.
4538 Constify `p' and `endp'.
4539 Use skip_spaces_const/skip_space_const instead of non-const versions.
4540 Copy the location into the breakpoint.
4541 If LOCATION is NULL, save the breakpoint address as a linespec location
4542 instead of an address string.
4543 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4544 event_location. All uses updated.
4545 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4546 (parse_breakpoint_sals): Use locations instead of address strings.
4547 Remove check for empty linespec with conditional.
4548 Refactor.
4549 (decode_static_tracepoint_spec): Make argument const and update
4550 function.
4551 (create_breakpoint): Change `arg' to a struct event_location and
4552 rename.
4553 Remove `copy_arg' and `addr_start'.
4554 If EXTRA_STRING is empty, set it to NULL.
4555 Don't populate `canonical' for pending breakpoints.
4556 Pass `extra_string' to find_condition_and_thread.
4557 Clear `extra_string' if `rest' was NULL.
4558 Do not error with "garbage after location" if setting a dprintf
4559 breakpoint.
4560 Copy the location into the breakpoint instead of an address string.
4561 (break_command_1): Use string_to_event_location and pass this to
4562 create_breakpoint instead of an address string.
4563 Check against `arg_cp' for a probe linespec.
4564 (dprintf_command): Use string_to_event_location and pass this to
4565 create_breakpoint instead of an address string.
4566 Throw an exception if no format string was specified.
4567 (print_recreate_ranged_breakpoint): Use event_location_to_string
4568 instead of address strings.
4569 (break_range_command, until_break_command)
4570 (init_ada_exception_breakpoint): Use locations instead
4571 of address strings.
4572 (say_where): Print out extra_string for pending locations.
4573 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4574 the breakpoint.
4575 (base_breakpoint_create_sals_from_location): Use struct event_location
4576 instead of address string.
4577 Remove `addr_start' and `copy_arg' parameters.
4578 (base_breakpoint_decode_location): Use struct event_location instead of
4579 address string.
4580 (bkpt_re_set): Use locations instead of address strings.
4581 Use event_location_empty_p to check for unset location.
4582 (bkpt_print_recreate): Use event_location_to_string instead of
4583 an address string.
4584 Print out extra_string for pending locations.
4585 (bkpt_create_sals_from_location, bkpt_decode_location)
4586 (bkpt_probe_create_sals_from_location): Use struct event_location
4587 instead of address string.
4588 (bkpt_probe_decode_location): Use struct event_location instead of
4589 address string.
4590 (tracepoint_print_recreate): Use event_location_to_string to
4591 recreate the tracepoint.
4592 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4593 (tracepoint_probe_create_sals_from_location)
4594 (tracepoint_probe_decode_location): Use struct event_location
4595 instead of address string.
4596 (dprintf_print_recreate): Use event_location_to_string to recreate
4597 the dprintf.
4598 (dprintf_re_set): Remove check for valid/missing format string.
4599 (strace_marker_create_sals_from_location)
4600 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4601 (update_static_tracepoint): Use struct event_location instead of
4602 address string.
4603 (location_to_sals): Likewise.
4604 Pass `extra_string' to find_condition_and_thread.
4605 For newly resolved pending breakpoint locations, clear the location's
4606 string representation.
4607 Assert that the breakpoint's condition string is NULL when
4608 condition_not_parsed.
4609 (breakpoint_re_set_default, create_sals_from_location_default)
4610 (decode_location_default, trace_command, ftrace_command)
4611 (strace_command, create_tracepoint_from_upload): Use locations
4612 instead of address strings.
4613 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4614 Use struct event_location instead of address string.
4615 Update all uses.
4616 <decode_location>: Likewise.
4617 (struct breakpoint) <addr_string>: Change to struct event_location
4618 and rename `location'.
4619 <addr_string_range_end>: Change to struct event_location and rename
4620 `location_range_end'.
4621 (create_breakpoint): Use struct event_location instead of address
4622 string.
4623 * cli/cli-cmds.c: Include location.h.
4624 (edit_command, list_command): Use locations instead of address strings.
4625 * elfread.c: Include location.h.
4626 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4627 * guile/scm-breakpoint.c: Include location.h.
4628 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4629 (gdbscm_register_breakpoint): Use locations instead of address
4630 strings.
4631 * linespec.c: Include location.h.
4632 (struct ls_parser) <stream>: Change to const char *.
4633 (PARSER_STREAM): Update.
4634 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4635 keywords must be followed by whitespace.
4636 (canonicalize_linespec): Save a linespec location into `canonical'.
4637 Save a canonical linespec into `canonical'.
4638 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4639 All uses updated.
4640 Update function description.
4641 (linespec_parser_new): Initialize `parser'.
4642 Update initialization of parsing stream.
4643 (event_location_to_sals): New function.
4644 (decode_line_full): Change `argptr' to a struct event_location and
4645 rename it `location'.
4646 Use locations instead of address strings.
4647 Call event_location_to_sals instead of parse_linespec.
4648 (decode_line_1): Likewise.
4649 (decode_line_with_current_source, decode_line_with_last_displayed)
4650 Use locations instead of address strings.
4651 (decode_objc): Likewise.
4652 Change `argptr' to const char * and rename `arg'.
4653 (destroy_linespec_result): Delete the linespec result's location
4654 instead of freeing the address string.
4655 * linespec.h (struct linespec_result) <addr_string>: Change to
4656 struct event_location and rename to ...
4657 <location>: ... this.
4658 (decode_line_1, decode_line_full): Change `argptr' to struct
4659 event_location. All callers updated.
4660 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4661 (mi_cmd_break_insert_1): Use locations instead of address strings.
4662 Throw an error if there was "garbage" at the end of the specified
4663 linespec.
4664 * probe.c: Include location.h.
4665 (parse_probes): Change `argptr' to struct event_location.
4666 Use event locations instead of address strings.
4667 * probe.h (parse_probes): Change `argptr' to struct event_location.
4668 * python/py-breakpoint.c: Include location.h.
4669 (bppy_get_location): Constify local variable `str'.
4670 Use event_location_to_string.
4671 (bppy_init): Use locations instead of address strings.
4672 * python/py-finishbreakpoint.c: Include location.h.
4673 (bpfinishpy_init): Remove local variable `addr_str'.
4674 Use locations instead of address strings.
4675 * python/python.c: Include location.h.
4676 (gdbpy_decode_line): Use locations instead of address strings.
4677 * remote.c: Include location.h.
4678 (remote_download_tracepoint): Use locations instead of address
4679 strings.
4680 * spu-tdep.c: Include location.h.
4681 (spu_catch_start): Remove local variable `buf'.
4682 Use locations instead of address strings.
4683 * tracepoint.c: Include location.h.
4684 (scope_info): Use locations instead of address strings.
4685 (encode_source_string): Constify parameter `src'.
4686 * tracepoint.h (encode_source_string): Likewise.
4687
c7c1b3e9
KS
46882015-08-11 Keith Seitz <keiths@redhat.com>
4689
4690 * Makefile.in (SFILES): Add location.c.
4691 (HFILES_NO_SRCDIR): Add location.h.
4692 (COMMON_OBS): Add location.o.
4693 * linespec.c (linespec_lex_to_end): New function.
4694 * linespec.h (linespec_lex_to_end): Declare.
4695 * location.c: New file.
4696 * location.h: New file.
4697
5f700d83
KS
46982015-08-11 Keith Seitz <keiths@redhat.com>
4699
4700 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4701 Renamed to create_sals_from_location.
4702 <decode_linespec>: Renamed to decode_location.
4703 Update all callers.
4704 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4705 (create_sals_from_location_default): ... this.
4706 (addr_string_to_sals): Renamed to ...
4707 (location_to_sals): ... this.
4708 (decode_linespec_default): Renamed to ...
4709 (decode_location_default): ... this.
4710 (base_breakpoint_create_sals_from_address): Renamed to ...
4711 (base_breakpoint_create_sals_from_location): ... this.
4712 (bkpt_create_sals_from_address): Renamed to ...
4713 (bkpt_create_sals_from_location): ... this.
4714 (bkpt_decode_linespec): Renamed to ...
4715 (bkpt_decode_location): ... this.
4716 (bkpt_probe_create_sals_from_address): Renamed to ...
4717 (bkpt_probe_create_sals_from_location): ... this.
4718 (tracepoint_create_sals_from_address): Renamed to ...
4719 (tracepoint_create_sals_from_location): ... this.
4720 (tracepoint_decode_linespec): Renamed to ...
4721 (tracepoint_decode_location): ... this.
4722 (tracepoint_probe_create_sals_from_address): Renamed to ...
4723 (tracepoint_probe_create_sals_from_location): ... this.
4724 (tracepoint_probe_decode_linespec): Renamed to ...
4725 (tracepoint_probe_decode_location): ... this.
4726 (strace_marker_create_sals_from_address): Renamed to ...
4727 (strace_marker_create_sals_from_location): ... this.
4728 (decode_linespec_default): Renamed to ...
4729 (decode_location_default): ... this.
4730
e27852be
DE
47312015-08-10 Doug Evans <dje@google.com>
4732 Keith Seitz <keiths@redhat.com>
4733
4734 PR gdb/17960
4735 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4736 make_file_symbol_completion_list and made static.
4737 (make_file_symbol_completion_list): New function.
80af41e0 4738
fd7dcb94
JB
47392015-08-10 Joel Brobecker <brobecker@adacore.com>
4740
4741 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4742 trailing new-line at end of warning message.
4743 (proceed): Add i18n marker to error messages.
4744
f12899e9
PA
47452015-08-07 Pedro Alves <palves@redhat.com>
4746
4747 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4748
5ac21343
PA
47492015-08-07 Pedro Alves <palves@redhat.com>
4750
4751 * s390-linux-tdep.c (is_non_branch_ril)
4752 (s390_displaced_step_copy_insn): New functions.
4753 (s390_displaced_step_fixup): Update comment.
4754 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4755 gdbarch_displaced_step_copy_insn hook.
4756
7f03bd92
PA
47572015-08-07 Pedro Alves <palves@redhat.com>
4758
4759 * infrun.c (displaced_step_prepare_throw): Return -1 if
4760 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4761 comment.
4762 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4763 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4764 in file.
4765 (ppc_displaced_step_copy_insn): New function.
4766 (ppc_displaced_step_fixup): Update comment.
4767 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4768 gdbarch_displaced_step_copy_insn hook.
4769 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4770 NULL return.
4771 * gdbarch.h: Regenerate.
4772
3fc8eb30
PA
47732015-08-07 Pedro Alves <palves@redhat.com>
4774
4775 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4776 field.
4777 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4778 Return false if dispaced stepping failed before.
4779 (resume): Pass the current inferior to
4780 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4781 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4782 displaced_stepping_failed flag, and fall back to an in-line
4783 step-over.
4784
bfedc46a
PA
47852015-08-07 Pedro Alves <palves@redhat.com>
4786
4787 * darwin-nat.c (darwin_stop): Rename to ...
4788 (darwin_interrupt): ... this.
4789 (_initialize_darwin_inferior): Adjust.
4790 * gnu-nat.c (gnu_stop): Delete.
4791 (gnu_target): Don't install gnu_stop.
4792 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4793 (inf_ptrace_interrupt): ... this.
4794 (inf_ptrace_target): Adjust.
4795 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4796 target_stop.
4797 * linux-nat (linux_nat_stop): Rename to ...
4798 (linux_nat_interrupt): ... this.
4799 (linux_nat_stop): Reimplement.
4800 (linux_nat_add_target): Install linux_nat_interrupt.
4801 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4802 (nto_handle_sigint_twice): ... this.
4803 (nto_interrupt): Rename to ...
4804 (nto_handle_sigint): ... this. Call target_interrupt instead of
4805 target_stop.
4806 (procfs_wait): Adjust.
4807 (procfs_stop): Rename to ...
4808 (procfs_interrupt): ... this.
4809 (init_procfs_targets): Adjust.
4810 * procfs.c (procfs_stop): Rename to ...
4811 (procfs_interrupt): ... this.
4812 (procfs_target): Adjust.
4813 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4814 (m32r_interrupt): ... this.
4815 (init_m32r_ops): Adjust.
4816 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4817 (gdbsim_interrupt_inferior): ... this.
4818 (gdbsim_stop): Rename to ...
4819 (gdbsim_interrupt): ... this.
4820 (gdbsim_cntrl_c): Adjust.
4821 (init_gdbsim_ops): Adjust.
4822 * remote.c (sync_remote_interrupt): Adjust comments.
4823 (remote_stop_as): Rename to ...
4824 (remote_interrupt_as): ... this.
4825 (remote_stop): Adjust comment.
4826 (remote_interrupt): New function.
4827 (init_remote_ops): Install remote_interrupt.
4828 * target.c (target_interrupt): New function.
4829 * target.h (struct target_ops) <to_interrupt>: New field.
4830 (target_interrupt): New declaration.
4831 * windows-nat.c (windows_stop): Rename to ...
4832 (windows_interrupt): ... this.
4833 * target-delegates.c: Regenerate.
4834
d55007b5
PA
48352015-08-07 Pedro Alves <palves@redhat.com>
4836
4837 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4838 threads" as alternative to "switching back to stepped thread".
4839
fbea99ea
PA
48402015-08-07 Pedro Alves <palves@redhat.com>
4841
4842 * NEWS: Mention "maint set/show target-non-stop".
4843 * breakpoint.c (update_global_location_list): Check
4844 target_is_non_stop_p instead of non_stop.
4845 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4846 * infrun.c (show_can_use_displaced_stepping)
4847 (can_use_displaced_stepping_p, start_step_over_inferior):
4848 Likewise.
4849 (internal_resume_ptid): New function.
4850 (resume): Use it.
4851 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4852 all-stop mode but the target is always in non-stop mode, start all
4853 the other threads that are implicitly resumed too.
4854 (for_each_just_stopped_thread, fetch_inferior_event)
4855 (adjust_pc_after_break, stop_all_threads): Check
4856 target_is_non_stop_p instead of non_stop.
4857 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4858 with the target always in non-stop mode.
4859 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4860 instead of non_stop.
4861 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4862 instead of non_stop.
4863 (keep_going_stepped_thread): Use internal_resume_ptid.
4864 (stop_waiting): If in all-stop mode, and the target is in non-stop
4865 mode, stop all threads.
4866 (keep_going_pass): Likewise, when starting a new in-line step-over
4867 sequence.
4868 * linux-nat.c (get_pending_status, select_event_lwp)
4869 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4870 target_is_non_stop_p instead of non_stop.
4871 (linux_nat_always_non_stop_p): New function.
4872 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4873 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4874 * target-delegates.c: Regenerate.
4875 * target.c (target_is_non_stop_p): New function.
4876 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4877 (maint_set_target_non_stop_command)
4878 (maint_show_target_non_stop_command): New functions.
4879 (_initilize_target): Install "maint set/show target-non-stop"
4880 commands.
4881 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4882 (target_non_stop_enabled): New declaration.
4883 (target_is_non_stop_p): New declaration.
4884
372316f1
PA
48852015-08-07 Pedro Alves <pedro@codesourcery.com>
4886
4887 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4888 has a pending status, return true.
4889 * gdbthread.h: Include target/waitstatus.h.
4890 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4891 stop_pc>: New fields.
4892 (struct thread_info) <resumed>: New field.
4893 (set_resumed): Declare.
4894 * infrun.c: Include "event-loop.h".
4895 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4896 (infrun_async): New function.
4897 (clear_step_over_info): Add debug output.
4898 (displaced_step_in_progress_any_inferior): New function.
4899 (displaced_step_fixup): New returns int.
4900 (start_step_over): Handle in-line step-overs too. Assert the
4901 thread is marked resumed.
4902 (resume_cleanups): Clear the thread's resumed flag.
4903 (resume): Set the thread's resumed flag. Return early if the
4904 thread has a pending status. Allow stepping a breakpoint with no
4905 signal.
4906 (proceed): Adjust to check 'resumed' instead of 'executing'.
4907 (clear_proceed_status_thread): If the thread has a pending status,
4908 and that status is a finished step, discard the pending status.
4909 (clear_proceed_status): Don't clear step_over_info here.
4910 (random_pending_event_thread, do_target_wait): New functions.
4911 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4912 do_target_wait.
4913 (wait_one): New function.
4914 (THREAD_STOPPED_BY): New macro.
4915 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4916 (thread_stopped_by_hw_breakpoint): New functions.
4917 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4918 functions.
4919 (handle_inferior_event): Also call set_resumed(false) on all
4920 threads implicitly stopped by the event.
4921 (restart_threads, resumed_thread_with_pending_status): New
4922 functions.
4923 (finish_step_over): If we were doing an in-line step-over before,
4924 and no longer are after trying to start a new step-over, restart
4925 all threads. If we have multiple threads with pending events,
4926 save the current event and go through the event loop again.
4927 (handle_signal_stop): Return early if finish_step_over returns
4928 false.
4929 <random signal>: If we get a signal while stepping over a
4930 breakpoint in-line in non-stop mode, restart all threads. Clear
4931 step_over_info before delivering the signal.
4932 (keep_going_stepped_thread): Use internal_error instead of
4933 gdb_assert. Mark the thread as resumed.
4934 (keep_going_pass_signal): Assert the thread isn't already resumed.
4935 If some other thread is doing an in-line step-over, defer the
4936 resume. If we just started a new in-line step-over, stop all
4937 threads. Don't clear step_over_info.
4938 (infrun_async_inferior_event_handler): New function.
4939 (_initialize_infrun): Create async event handler with
4940 infrun_async_inferior_event_handler as callback.
4941 (infrun_async): New declaration.
4942 * target.c (target_async): New function.
4943 * target.h (target_async): Declare macro and readd as function
4944 declaration.
4945 * target/waitstatus.h (enum target_stop_reason)
4946 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4947 * thread.c (new_thread): Clear the new waitstatus field.
4948 (set_resumed): New function.
4949
2ac7589c
PA
49502015-08-07 Pedro Alves <palves@redhat.com>
4951
4952 * infrun.c (keep_going_stepped_thread): New function, factored out
4953 from ...
4954 (switch_back_to_stepped_thread): ... here.
4955
8b061563
PA
49562015-08-07 Pedro Alves <palves@redhat.com>
4957
4958 * infrun.c (currently_stepping): Extend intro comment.
4959 * target.h (target_resume): Extend intro comment.
4960
1afd5965
PA
49612015-08-07 Pedro Alves <palves@redhat.com>
4962
4963 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4964 of inferior_ptid. If the stepped thread vanished, return 0
4965 instead of resuming here. Use reset_ecs. Print the prev_pc and
4966 the current stop_pc in log message. Clear trap_expected if the
4967 thread advanced. Don't pass currently_stepping to
4968 do_target_resume.
4969
4d9d9d04
PA
49702015-08-07 Pedro Alves <palves@redhat.com>
4971
4972 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4973 * infrun.c (struct execution_control_state): Move higher up in the
4974 file.
4975 (reset_ecs): New function.
4976 (start_step_over): Now returns int. Rewrite to use
4977 keep_going_pass_signal instead of manually starting a displaced step.
4978 (resume): Don't call set_running here. If displaced stepping
4979 can't start now, clear trap_expected.
4980 (find_thread_needs_step_over): Delete function.
4981 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4982 If the current thread needs a step over, push it in the step-over
4983 chain. Don't set insert breakpoints nor call resume directly
4984 here. Instead rewrite to use start_step_over and
4985 keep_going_pass_signal.
4986 (finish_step_over): New function.
4987 (handle_signal_stop): Call finish_step_over instead of
4988 start_step_over.
4989 (switch_back_to_stepped_thread): If the event thread needs another
4990 step-over do that first. Use start_step_over.
4991 (keep_going_pass_signal): New function, factored out from ...
4992 (keep_going): ... here.
4993 (_initialize_infrun): Comment moved here.
4994 * thread.c (set_running_thread): New function.
4995 (set_running, finish_thread_state): Use set_running_thread.
4996
c2829269
PA
49972015-08-07 Pedro Alves <palves@redhat.com>
4998
4999 * gdbthread.h (struct thread_info) <step_over_prev,
5000 step_over_next>: New fields.
5001 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5002 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5003 declarations.
5004 * infrun.c (struct displaced_step_request): Delete.
5005 (struct displaced_step_inferior_state) <step_request_queue>:
5006 Delete field.
5007 (displaced_step_prepare): Assert that trap_expected is set. Use
5008 thread_step_over_chain_enqueue. Split starting a new displaced
5009 step to ...
5010 (start_step_over): ... this new function.
5011 (resume): Assert the thread isn't waiting for a step over already.
5012 (proceed): Assert the thread isn't waiting for a step over
5013 already.
5014 (infrun_thread_stop_requested): Adjust to remove threads from the
5015 embedded step-over chain.
5016 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5017 displaced_step_fixup.
5018 (handle_signal_stop): Call start_step_over after
5019 displaced_step_fixup.
5020 * infrun.h (step_over_queue_head): New declaration.
5021 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5022 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5023 (thread_step_over_chain_enqueue)
5024 (thread_step_over_chain_remove): New functions.
5025 (delete_thread_1): Remove thread from the step-over chain.
5026
6c4cfb24
PA
50272015-08-07 Pedro Alves <palves@redhat.com>
5028
5029 * infrun.c (thread_still_needs_step_over): Rename to ...
5030 (thread_still_needs_step_over_bp): ... this.
5031 (enum step_over_what): New.
5032 (thread_still_needs_step_over): Reimplement.
5033
567420d1
PA
50342015-08-07 Pedro Alves <palves@redhat.com>
5035
5036 * remote.c (remote_wait_as): If not waiting for a stop reply,
5037 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5038 requested, don't block waiting forever.
5039
d8dd4d5f
PA
50402015-08-07 Pedro Alves <pedro@codesourcery.com>
5041
5042 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5043 waitstatus pointers instead of an ecs. Adjust.
5044 (handle_inferior_event): Adjust caller.
5045
e1316e60
PA
50462015-08-07 Pedro Alves <palves@redhat.com>
5047
5048 * infrun.c (handle_inferior_event): If we get
5049 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5050 mode, mark all threads of the exiting process as not-executing.
5051 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5052 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5053 exiting process, if inferior_ptid still points at a process.
5054 * thread.c (struct current_thread_cleanup) <next>: New field.
5055 (current_thread_cleanup_chain): New global.
5056 (restore_current_thread_ptid_changed): New function.
5057 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5058 current_thread_cleanup_chain list.
5059 (make_cleanup_restore_current_thread): Add the cleanup data to the
5060 current_thread_cleanup_chain list.
5061 (_initialize_thread): Install restore_current_thread_ptid_changed
5062 as thread_ptid_changed observer.
5063
47e9c225
JB
50642015-08-07 Joel Brobecker <brobecker@adacore.com>
5065
5066 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5067 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5068 smaller than expected.
5069
06096720
AB
50702015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5071
5072 * stack.c (get_frame_language): Moved ...
5073 * frame.c (get_frame_language): ... to here.
5074 * language.h (get_frame_language): Declaration moved to frame.h.
5075 * frame.h: Add language.h include, for language enum.
5076 (get_frame_language): Declaration moved from language.h.
5077 * language.c: Add frame.h include.
5078 * top.c: Add frame.h include.
5079 * symtab.h (struct obj_section): Declare.
5080 (struct cmd_list_element): Declare.
5081
7ff38b1c
AB
50822015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5083
5084 * language.c (show_language_command): Find selected frame before
5085 asking for the language of that frame.
5086 (set_language_command): Likewise.
5087 * language.h (get_frame_language): Add frame parameter.
5088 * stack.c (get_frame_language): Add frame parameter, assert
5089 parameter is not NULL, update comment and reindent.
5090 * top.c (check_frame_language_change): Pass the selected frame
5091 into get_frame_language.
5092
da8c46d2
MM
50932015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5094
5095 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5096 (pt_btrace_insn_flags): New.
5097 (ftrace_add_pt): Call pt_btrace_insn_flags.
5098 * btrace.h (btrace_insn_flag): New.
5099 (btrace_insn) <flags>: New.
5100 * record-btrace.c (btrace_insn_history): Print insn prefix.
5101 * NEWS: Announce it.
5102
5599c404
MM
51032015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5104
5105 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5106 * configure: Regenerate.
5107
016a3251
DD
51082015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5109
5110 * Makefile.in (LIBICONV): Define.
5111 (CLIBS): Add LIBICONV.
5112 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5113 * configure: Regenerate.
5114
aead7601
SM
51152015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5116 Pedro Alves <palves@redhat.com>
5117
5118 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5119 (arm_set_abi): Likewise.
5120 * ax-general.c (ax_print): Likewise.
5121 * c-exp.y (exp : string_exp): Likewise.
5122 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5123 (do_compile_dwarf_expr_to_c): Likewise.
5124 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5125 Likewise.
5126 * dwarf2expr.c (execute_stack_op): Likewise.
5127 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5128 (disassemble_dwarf_expression): Likewise.
5129 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5130 (read_array_order): Likewise.
5131 (abbrev_table_read_table): Likewise.
5132 (read_attribute_value): Likewise.
5133 (skip_unknown_opcode): Likewise.
5134 (dwarf_decode_macro_bytes): Likewise.
5135 (dwarf_decode_macros): Likewise.
5136 * eval.c (value_f90_subarray): Likewise.
5137 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5138 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5139 * infrun.c (handle_command): Likewise.
5140 * memory-map.c (memory_map_start_memory): Likewise.
5141 * osabi.c (set_osabi): Likewise.
5142 * parse.c (operator_length_standard): Likewise.
5143 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5144 single return point.
5145 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5146 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5147 (gdbpy_lookup_global_symbol): Likewise.
5148 * record-full.c (record_full_restore): Likewise.
5149 * regcache.c (regcache_register_status): Likewise.
5150 (regcache_raw_read): Likewise.
5151 (regcache_cooked_read): Likewise.
5152 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5153 * symtab.c (initialize_ordinary_address_classes): Likewise.
5154 * target-debug.h (target_debug_print_signals): Likewise.
5155 * utils.c (do_restore_current_language): Likewise.
5156
ca0a5f0b
CD
51572015-08-06 Clem Dickey <clemd@acm.org>
5158
5159 PR python/17136
5160 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5161
05d999b0
SM
51622015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5163
5164 * complaints.c (enum complaint_series): Add newlines and remove
5165 out of date comment.
5166 (struct complaints) <series>: Change type to enum
5167 complaint_series and remove out of date comment.
5168 (symfile_complaint_hook): Use equivalent enum value
5169 ISOLATED_MESSAGE instead of 0.
5170
bf47e248
PA
51712015-08-06 Pedro Alves <palves@redhat.com>
5172
5173 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5174 returned > 0.
5175
b6b9ffcc
PL
51762015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5177
5178 * common/agent.c (symbol_list) <required>: Remove.
5179
863d01bd
PA
51802015-08-06 Pedro Alves <palves@redhat.com>
5181
5182 * target/waitstatus.h (enum target_stop_reason)
5183 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5184
0a39bb32
PA
51852015-08-05 Pedro Alves <palves@redhat.com>
5186 Joel Brobecker <brobecker@adacore.com>
5187
9d996aba 5188 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
5189 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5190 case where BS->STOP is not set.
5191
260439cb
UW
51922015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5193
5194 * nat/gdb_thread_db.h: Add copyright header.
5195 Protect against multiple inclusion.
5196
d89fa914
YQ
51972015-08-05 Yao Qi <yao.qi@linaro.org>
5198
5199 * aarch64-linux-nat.c (get_thread_id): Remove.
5200 (debug_reg_change_callback): Call ptid_get_lwp instead of
5201 get_thread_id.
5202 (fetch_gregs_from_thread): Likewise.
5203 (store_gregs_to_thread): Likewise.
5204 (fetch_fpregs_from_thread): Likewise.
5205 (store_fpregs_to_thread): Likewise.
5206 (aarch64_linux_get_debug_reg_capacity): Likewise.
5207 * arm-linux-nat.c (get_thread_id): Remove.
5208 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5209 * xtensa-linux-nat.c (get_thread_id): Remove.
5210 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5211 * arm-linux-nat.c (get_thread_id): Remove.
5212 (GET_THREAD_ID): Remove.
5213 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5214 (store_fpregs, fetch_regs, store_regs): Likewise.
5215 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5216 (fetch_vfp_regs, store_vfp_regs): Likewise.
5217 (arm_linux_read_description): Likewise.
5218 (arm_linux_get_hwbp_cap): Likewise.
5219 * xtensa-linux-nat.c (get_thread_id): Remove.
5220 (GET_THREAD_ID): Remove.
5221 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5222 GET_THREAD_ID.
5223
4efd80aa
CS
52242015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5225
5226 * python/py-linetable.c: Fix case of Linetable to LineTable
5227 in docstrings and code comments.
5228 * python/py-symtab.c: Same.
5229
c6343a91
JK
52302015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5231
5232 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5233
978b9495
JK
52342015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5235
5236 PR gdb/18767
5237 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5238 use.
5239
96e9210f
PA
52402015-08-04 Pedro Alves <palves@redhat.com>
5241
5242 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5243 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5244 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5245 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5246 (td_thr_validate_ftype, td_thr_get_info_ftype)
5247 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5248 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5249 New typedefs.
5250 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5251 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5252 local macros and use them instead of verbose_dlsym and dlsym
5253 calls.
5254
af60a1ef
SL
52552015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5256
5257 * nios2-tdep.h: Include opcode/nios2.h here.
5258 (NIOS2_CDX_OPCODE_SIZE): New.
5259 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5260 * nios2-tdep.c: Don't include opcode/nios2.h here.
5261 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5262 4-byte read fails.
5263 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5264 (nios2_match_addi, nios2_match_orhi): Likewise.
5265 (nios2_match_stw, nios2_match_ldw): Likewise.
5266 (nios2_match_rdctl): Likewise.
5267 (nios2_match_stwm, nios2_match_ldwm): New.
5268 (nios2_match_branch): Add cases for R2 encodings.
5269 (nios2_match_jmpi, nios2_match_calli): Likewise.
5270 (nios2_match_jmpr, nios2_match_callr): Likewise.
5271 (nios2_match_break, nios2_match_trap): Likewise.
5272 (nios2_in_epilogue_p): Add R2 support.
5273 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5274 prologues.
5275 (nios2_breakpoint_from_pc): Handle R2 instructions.
5276 (nios2_get_next_pc): Likewise. Adjust call to
5277 tdep->syscall_next_pc.
5278 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5279 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5280 instruction field macros instead of literal hex values.
5281 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5282 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5283 Use size field from OP instead of assuming all instructions
5284 are the same size.
5285 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5286
1da03605
UW
52872015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5288
5289 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5290 variable warning with some compilers.
5291
8156fe7f
YQ
52922015-08-03 Yao Qi <yao.qi@linaro.org>
5293
5294 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5295 in comment. Replace "rw" with "type".
5296 (arm_linux_remove_watchpoint): Change type of "rw" to
5297 "enum target_hw_bp_type".
5298
835a09d9
PMR
52992015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5300
5301 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5302 lookup_symbol.
5303 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5304 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5305 * mt-tdep.c (mt_skip_prologue): Likewise.
5306 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5307
d12307c1
PMR
53082015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5309
5310 * ada-exp.y (write_object_renaming): Replace struct
5311 ada_symbol_info with struct block_symbol. Update field
5312 references accordingly.
5313 (block_lookup, select_possible_type_sym): Likewise.
5314 (find_primitive_type): Likewise. Also update call to
5315 ada_lookup_symbol to extract the symbol itself.
5316 (write_var_or_type, write_name_assoc): Likewise.
5317 * ada-lang.h (struct ada_symbol_info): Remove.
5318 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5319 struct block_symbol.
5320 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5321 (ada_lookup_symbol): Return struct block_symbol instead of a
5322 mere symbol.
5323 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5324 with struct block_symbol.
5325 (resolve_subexp, ada_resolve_function, sort_choices,
5326 user_select_syms, is_nonfunction, add_defn_to_vec,
5327 num_defns_collected, defns_collected,
5328 symbols_are_identical_enums, remove_extra_symbols,
5329 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5330 ada_lookup_symbol_list, ada_iterate_over_symbols,
5331 ada_lookup_encoded_symbol, get_var_value): Likewise.
5332 (ada_lookup_symbol): Return a block_symbol instead of a mere
5333 symbol. Replace struct ada_symbol_info with struct
5334 block_symbol.
5335 (ada_lookup_symbol_nonlocal): Likewise.
5336 (standard_lookup): Make block passing explicit through
5337 lookup_symbol_in_language.
5338 * ada-tasks.c (get_tcb_types_info): Update the calls to
5339 lookup_symbol_in_language to extract the mere symbol out of the
5340 returned value.
5341 (ada_tasks_inferior_data_sniffer): Likewise.
5342 * ax-gdb.c (gen_static_field): Likewise for the call to
5343 lookup_symbol.
a5fdf78a 5344 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
5345 lookup functions.
5346 (gen_expr): Likewise.
5347 * c-exp.y: Likewise. Remove uses of block_found.
5348 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5349 (classify_name): Likewise. Rename the "sym" local variable to
5350 "bsym".
5351 * c-valprint.c (print_unpacked_pointer): Likewise.
5352 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5353 "sym" parameter from struct symbol * to struct block_symbol.
5354 Use it to remove uses of block_found. Deal with struct
a5fdf78a 5355 block_symbol from lookup functions.
d12307c1
PMR
5356 (gcc_convert_symbol): Likewise. Update the call to
5357 convert_symbol_sym.
5358 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 5359 struct block_symbol from lookup functions.
d12307c1
PMR
5360 * cp-namespace.c (cp_lookup_nested_symbol_1,
5361 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5362 cp_search_static_and_baseclasses,
5363 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5364 cp_lookup_symbol_imports_or_template,
5365 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5366 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
5367 find_symbol_in_baseclass): Return struct block_symbol instead of
5368 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
5369 functions.
5370 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 5371 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
5372 lookup functions.
5373 * cp-support.h (cp_lookup_symbol_nonlocal,
5374 cp_lookup_symbol_from_namespace,
5375 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 5376 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
5377 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5378 push_module_name):
a5fdf78a 5379 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
5380 uses of block_found.
5381 * eval.c (evaluate_subexp_standard): Update call to
5382 cp_lookup_symbol_namespace.
a5fdf78a
PMR
5383 * f-exp.y: Deal with struct block_symbol from lookup functions.
5384 Remove uses of block_found.
d12307c1
PMR
5385 (yylex): Likewise.
5386 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5387 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 5388 struct block_symbol from lookup functions.
d12307c1
PMR
5389 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5390 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5391 (gdbscm_lookup_global_symbol): Likewise.
5392 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5393 * go-exp.y: Likewise. Remove uses of block_found.
5394 (package_name_p, classify_packaged_name, classify_name):
5395 Likewise.
5396 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5397 * jv-exp.y (push_variable): Likewise.
5398 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5399 * language.c (language_bool_type): Likewise.
5400 * language.h (struct language_defn): Update
a5fdf78a
PMR
5401 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5402 than a mere symbol.
5403 * linespec.c (find_label_symbols): Deal with struct block_symbol
5404 from lookup functions.
d12307c1
PMR
5405 * m2-exp.y: Likewise. Remove uses of block_found.
5406 (yylex): Likewise.
5407 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5408 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5409 * p-exp.y: Likewise. Remove uses of block_found.
5410 (yylex): Likewise.
5411 * p-valprint.c (pascal_val_print): Likewise.
5412 * parse.c (write_dollar_variable): Likewise. Remove uses of
5413 block_found.
5414 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
5415 struct block_symbol.
5416 * printcmd.c (address_info): Deal with struct block_symbol from
5417 lookup functions.
d12307c1
PMR
5418 * python/py-frame.c (frapy_read_var): Likewise.
5419 * python/py-symbol.c (gdbpy_lookup_symbol,
5420 gdbpy_lookup_global_symbol): Likewise.
5421 * skip.c (skip_function_command): Likewise.
5422 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 5423 block_symbol instead of a mere symbol.
d12307c1
PMR
5424 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5425 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5426 * solib.c (solib_global_lookup): Likewise.
5427 * solist.h (solib_global_lookup): Likewise.
5428 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
5429 return a struct block_symbol rather than a mere symbol.
5430 * source.c (select_source_symtab): Deal with struct block_symbol
5431 from lookup functions.
d12307c1
PMR
5432 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5433 Likewise.
5434 * symfile.c (set_initial_language): Likewise.
5435 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 5436 block_symbol.
d12307c1
PMR
5437 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5438 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 5439 block_symbol.
d12307c1 5440 (block_found): Remove.
a5fdf78a 5441 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 5442 cache slots.
a5fdf78a
PMR
5443 (symbol_cache_lookup): Return a struct block_symbol rather than
5444 a mere symbol.
d12307c1
PMR
5445 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5446 appropriately the cache slots. Update callers.
5447 (symbol_cache_dump): Update cache slots handling to the type
5448 change.
5449 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5450 lookup_symbol_aux, lookup_local_symbol,
5451 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5452 lookup_symbol_in_objfile_symtabs,
5453 lookup_symbol_in_objfile_from_linkage_name,
5454 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5455 lookup_symbol_in_static_block, lookup_static_symbol,
5456 lookup_global_symbol):
a5fdf78a
PMR
5457 Return a struct block_symbol rather than a mere symbol. Deal
5458 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
5459 uses of block_found.
5460 (lookup_symbol_in_block): Remove uses of block_found.
5461 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 5462 struct block_symbol.
d12307c1
PMR
5463 (lookup_symbol_global_iterator_cb): Update references to the
5464 RESULT field.
a5fdf78a 5465 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 5466 functions.
a5fdf78a 5467 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
5468 (block_found): Remove.
5469 (lookup_symbol_in_language, lookup_symbol,
5470 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
5471 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5472 lookup_global_symbol_from_objfile): Return a struct block_symbol
5473 rather than just a mere symbol. Update comments to remove
5474 mentions of block_found.
d12307c1
PMR
5475 * valops.c (find_function_in_inferior,
5476 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 5477 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
5478 functions.
5479 * value.c (value_static_field, value_fn_field): Likewise.
5480
b1c59ddc
SM
54812015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5482
5483 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5484 instead of integer.
5485
f486487f 54862015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 5487 Pedro Alves <palves@redhat.com>
f486487f
SM
5488
5489 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5490 type or value instead of integer.
5491 (aarch64_linux_insert_watchpoint): Likewise.
5492 (aarch64_linux_remove_watchpoint): Likewise.
5493 * ada-lang.c (ada_op_print_tab): Likewise.
5494 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5495 (amd64_linux_syscall_record_common): Likewise.
5496 * arch-utils.c (target_byte_order_user): Likewise.
5497 (default_byte_order): Likewise.
5498 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5499 (arm_linux_get_hwbp_type): Likewise.
5500 (arm_linux_hw_watchpoint_initialize): Likewise.
5501 (arm_linux_insert_watchpoint): Likewise.
5502 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5503 (arm_linux_syscall_record): Likewise.
5504 * breakpoint.c (update_watchpoint): Likewise.
5505 (breakpoint_here_p): Likewise.
5506 (bpstat_print): Likewise.
5507 (enable_breakpoint_disp): Likewise.
5508 * c-lang.c (c_op_print_tab): Likewise.
5509 * cli/cli-decode.c (add_info_alias): Likewise.
5510 * d-lang.c (d_op_print_tab): Likewise.
5511 * eval.c (evaluate_subexp_standard): Likewise.
5512 * f-exp.y (dot_ops): Likewise.
5513 (f77_keywords): Likewise.
5514 * f-lang.c (f_op_print_tab): Likewise.
5515 * go-lang.c (go_op_print_tab): Likewise.
5516 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5517 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5518 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5519 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5520 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5521 (struct scm_from_stringn_data): Likewise.
5522 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5523 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5524 (ia64_linux_remove_watchpoint): Likewise.
5525 (ia64_linux_can_use_hw_breakpoint): Likewise.
5526 * infrun.c (print_stop_event): Likewise.
5527 * jv-lang.c (java_op_print_tab): Likewise.
5528 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5529 * linux-nat.h (struct lwp_info): Likewise.
5530 * linux-thread-db.c (enable_thread_event): Likewise.
5531 * m2-lang.c (m2_op_print_tab): Likewise.
5532 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5533 (mi_cmd_stack_list_variables): Likewise.
5534 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5535 * mi/mi-out.c (mi_table_begin): Likewise.
5536 (mi_table_header): Likewise.
5537 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5538 (mips_linux_insert_watchpoint): Likewise.
5539 (mips_linux_remove_watchpoint): Likewise.
5540 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5541 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5542 (mips_linux_watch_type_to_irw): Likewise.
5543 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5544 (procfs_insert_hw_watchpoint): Likewise.
5545 (procfs_remove_hw_watchpoint): Likewise.
5546 (procfs_hw_watchpoint): Likewise.
5547 (procfs_can_use_hw_breakpoint): Likewise.
5548 (procfs_remove_hw_watchpoint): Likewise.
5549 (procfs_insert_hw_watchpoint): Likewise.
5550 * p-lang.c (pascal_op_print_tab): Likewise.
5551 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5552 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5553 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5554 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5555 (procfs_insert_watchpoint): Likewise.
5556 (procfs_remove_watchpoint): Likewise.
5557 * psymtab.c (recursively_search_psymtabs): Likewise.
5558 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5559 (m32r_insert_watchpoint): Likewise.
5560 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5561 (mips_insert_watchpoint): Likewise.
5562 (mips_remove_watchpoint): Likewise.
5563 * remote.c (watchpoint_to_Z_packet): Likewise.
5564 (remote_insert_watchpoint): Likewise.
5565 (remote_remove_watchpoint): Likewise.
5566 (remote_check_watch_resources): Likewise.
5567 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5568 (s390_remove_watchpoint): Likewise.
5569 (s390_can_use_hw_breakpoint): Likewise.
5570 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5571 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5572 * target.h (struct target_ops): Likewise.
5573 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5574 * ui-out.c (struct ui_out_hdr): Likewise.
5575 (append_header_to_list): Likewise.
5576 (get_next_header): Likewise.
5577 (verify_field): Likewise.
5578 (ui_out_begin): Likewise.
5579 (ui_out_field_int): Likewise.
5580 (ui_out_field_fmt_int): Likewise.
5581 (ui_out_field_skip): Likewise.
5582 (ui_out_field_string): Likewise.
5583 (ui_out_field_fmt): Likewise.
5584 * varobj.c (new_variable): Likewise.
5585 * x86-nat.c (x86_insert_watchpoint): Likewise.
5586 (x86_remove_watchpoint): Likewise.
5587 (x86_can_use_hw_breakpoint): Likewise.
5588 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5589 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5590 previously anonymous enumeration type..
5591 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5592 value.
5593 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5594 (target_debug_print_enum_bptype): New.
5595 * target-delegates.c: Regenerate.
5596
e1b5381f
SL
55972015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5598
5599 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5600 already says and disallow non-stack memory writes in the prologue.
5601
9aaf8e3a
SL
56022015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5603
5604 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5605 reflect how current GCC emits stack overflow checks. Match
5606 both trap and break instructions for backward compatbility.
5607 Disallow other trap and break instructions in the prologue.
5608
69dde7dc
PA
56092015-07-30 Pedro Alves <palves@redhat.com>
5610
5611 PR threads/18600
5612 * linux-nat.c (wait_lwp): Report to the core when thread group
5613 leader exits.
5614
4dd63d48
PA
56152015-07-30 Pedro Alves <palves@redhat.com>
5616 Simon Marchi <simon.marchi@ericsson.com>
5617
5618 PR threads/18600
5619 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5620 mark the new thread as resumed. Remove STOPPING parameter.
5621 (wait_lwp): Adjust call to linux_handle_extended_wait.
5622 (linux_nat_filter_event): Adjust call to
5623 linux_handle_extended_wait.
5624 (resume_stopped_resumed_lwps): Add debug output.
5625
6b940e6a
PL
56262015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5627
5628 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5629 isize argument.
5630 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5631 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5632 gdbarch_fast_tracepoint_valid_at.
5633 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5634 * gdbarch.h: Regenerate.
5635 * gdbarch.c: Regenerate.
5636 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5637 argument. Do not set it.
5638 * remote.c (remote_download_tracepoint): Adjust call to
5639 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5640 the instruction length.
5641
ec741292
YQ
56422015-07-30 Yao Qi <yao.qi@linaro.org>
5643
5644 * arm-tdep.h (enum gdb_regnum): Move it to ...
5645 * arch/arm.h: ... here. New file.
5646 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5647
0ea6402e
PL
56482015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5649
5650 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5651 Change its type to int *.
5652 (decode_br): Rename link argument to is_blr. Change its type to
5653 int *.
5654 (decode_cb): Rename op argument to is_cbnz. Change its type to
5655 int *.
5656 (decode_tb): Rename op argument to is_tbnz. Change its type to
5657 int *. Set is_tbnz to either 1 or 0.
5658 (aarch64_analyze_prologue): Change type of is_link to int. Add
5659 new variables is_cbnz and is_tbnz. Adjust call to
5660 aarch64_decode_cb and aarch64_decode_tb.
5661
aa58a496
SM
56622015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5663
5664 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5665 parameter.
5666 (mips_linux_new_thread): Likewise.
5667 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5668
18206ca3
PP
56692015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5670
5671 * top.c: Include "tui/tui.h".
5672 (undo_terminal_modifications_before_exit): New static function.
5673 (quit_force): Use it.
5674
7afa63c6
PP
56752015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5676
5677 * target.c (terminal_state): Initialize to terminal_is_ours.
5678
cc9f16aa
YQ
56792015-07-29 Yao Qi <yao.qi@linaro.org>
5680
5681 PR record/18691
5682 * dcache.c (dcache_read_memory_partial): Call
5683 raw_memory_xfer_partial.
5684 * target.c (raw_memory_xfer_partial): Make it non-static.
5685 * target.h (raw_memory_xfer_partial): Declare.
5686
3ae385af
SM
56872015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5688
5689 * c-valprint.c (c_val_print_array): Consider addressable memory
5690 unit size.
5691 (c_val_print_ptr): Likewise.
5692 (c_val_print_int): Likewise.
5693 * findvar.c (read_frame_register_value): Likewise.
5694 * valarith.c (find_size_for_pointer_math): Likewise.
5695 (value_ptrdiff): Likewise.
5696 (value_subscripted_rvalue): Likewise.
5697 * valops.c (read_value_memory): Likewise (and rename variables).
5698 (value_assign): Likewise.
5699 (value_repeat): Likewise.
5700 (value_array): Likewise.
5701 (value_slice): Likewise.
5702 * valprint.c (generic_val_print_ptr): Likewise.
5703 (generic_val_print_enum): Likewise.
5704 (generic_val_print_bool): Likewise.
5705 (generic_val_print_int): Likewise.
5706 (generic_val_print_char): Likewise.
5707 (generic_val_print_float): Likewise.
5708 (generic_val_print_decfloat): Likewise.
5709 (generic_val_print_complex): Likewise.
5710 (val_print_scalar_formatted): Likewise.
5711 (val_print_array_elements): Likewise.
5712 * value.c (set_value_parent): Likewise.
5713 (value_contents_copy_raw): Likewise.
5714 (set_internalvar_component): Likewise.
5715 (value_primitive_field): Likewise.
5716 (value_fetch_lazy): Likewise.
5717 * value.h (read_value_memory): Update comment.
5718
e512cdbd
SM
57192015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5720
5721 * value.c (get_value_arch): New function.
5722 * value.h (get_value_arch): New declaration.
5723
3723fda8
SM
57242015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5725
5726 * value.c (struct value): Update comments.
5727
2e056931
SM
57282015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5729
5730 * gdbtypes.c (type_length_units): New function.
5731 * gdbtypes.h (type_length_units): New declaration.
5732 (struct type) <length>: Update comment.
5733
0c87c0bf
SM
57342015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5735
5736 * valprint.c (generic_val_print): Factor out complex
5737 printing code to ...
5738 (generic_val_print_complex): ... this new function.
5739
9550ae5e
SM
57402015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5741
5742 * valprint.c (generic_val_print): Factor out decfloat
5743 printing code to ...
5744 (generic_val_print_decfloat): ... this new function.
5745
7784724b
SM
57462015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5747
5748 * valprint.c (generic_val_print): Factor out float
5749 printing code to ...
5750 (generic_val_print_float): ... this new function.
5751
385f5aff
SM
57522015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5753
5754 * valprint.c (generic_val_print): Factor out char
5755 printing code to ...
5756 (generic_val_print_char): ... this new function.
5757
b21b6342
SM
57582015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5759
5760 * valprint.c (generic_val_print): Factor out integer
5761 printing code to ...
5762 (generic_val_print_int): ... this new function.
5763
e5bead4b
SM
57642015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5765
5766 * valprint.c (generic_val_print): Factor out bool
5767 printing code to ...
5768 (generic_val_print_bool): ... this new function.
5769
4a8c372f
SM
57702015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5771
5772 * valprint.c (generic_val_print): Factor out function/method
5773 printing code to ...
5774 (generic_val_print_func): ... this new function.
5775
d93880bd
SM
57762015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5777
5778 * valprint.c (generic_val_print): Factor out flags
5779 printing code to ...
5780 (generic_val_print_flags): ... this new function.
5781
ef0bc0dd
SM
57822015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5783
5784 * valprint.c (generic_val_print): Factor out enum
5785 printing code to ...
5786 (generic_val_print_enum): ... this new function.
5787
fe43fede
SM
57882015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5789
5790 * valprint.c (generic_val_print): Factor out reference
5791 printing code to ...
5792 (generic_val_print_ref): ... this new function.
5793
45000ea2
SM
57942015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5795
5796 * valprint.c (generic_val_print): Factor out memberptr
5797 printing code to ...
5798 (generic_val_print_memberptr): ... this new function.
5799
81eb921a
SM
58002015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5801
5802 * valprint.c (generic_val_print): Factor out pointer
5803 printing code to ...
5804 (generic_val_print_ptr): ... this new function.
5805
557dbe8a
SM
58062015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5807
5808 * valprint.c (generic_val_print): Factor out array
5809 printing code to ...
5810 (generic_val_print_array): ... this new function.
5811
9f436164
SM
58122015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5813
5814 * valprint.c (generic_val_print): Factor out
5815 print_unpacked_pointer code to ...
5816 (print_unpacked_pointer): ... this new function.
5817
077836f7
PP
58182015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5819
5820 * event-top.c (handle_sigterm): Don't inspect
5821 target_can_async_p. Always set the quit flag and always mark
5822 the async signal handler.
5823
3a60804f
YQ
58242015-07-27 Yao Qi <yao.qi@linaro.org>
5825
5826 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5827
c9f35b34
KB
58282015-07-25 Kevin Buettner <kevinb@redhat.com>
5829
5830 * remote.c (read_ptid): Return null_ptid when no thread id
5831 is found.
5832 (remote_current_thread): Add log warning for malformed
5833 qC reply.
5834 (remote_start_remote): Add log warning when current thread
5835 not found.
5836
2b4cab86
PA
58372015-07-24 Pedro Alves <palves@redhat.com>
5838
5839 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5840 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5841 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5842
77598427
PA
58432015-07-24 Pedro Alves <palves@redhat.com>
5844
5845 PR gdb/18717
5846 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5847 is resumed, and extend the debug log.
5848
fe23c31f
PA
58492015-07-24 Pedro Alves <palves@redhat.com>
5850
5851 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5852
5826e159
PA
58532015-07-24 Pedro Alves <palves@redhat.com>
5854
5855 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5856 sys/ptrace.h.
5857 * alpha-linux-nat.c: Likewise.
5858 * amd64-linux-nat.c: Likewise.
5859 * arm-linux-nat.c: Likewise.
5860 * hppa-linux-nat.c: Likewise.
5861 * i386-linux-nat.c: Likewise.
5862 * ia64-linux-nat.c: Likewise.
5863 * linux-fork.c: Likewise.
5864 * linux-nat.c: Likewise.
5865 * m32r-linux-nat.c: Likewise.
5866 * m68klinux-nat.c: Likewise.
5867 * mips-linux-nat.c: Likewise.
5868 * nat/linux-btrace.c: Likewise.
5869 * nat/linux-ptrace.c: Likewise.
5870 * nat/linux-ptrace.h
5871 * nat/mips-linux-watch.c: Likewise.
5872 * nat/x86-linux-dregs.c: Likewise.
5873 * ppc-linux-nat.c: Likewise.
5874 * s390-linux-nat.c: Likewise.
5875 * spu-linux-nat.c: Likewise.
5876 * tilegx-linux-nat.c: Likewise.
5877 * x86-linux-nat.c: Likewise.
5878 * xtensa-linux-nat.c: Likewise.
5879
54019719
PA
58802015-07-24 Pedro Alves <palves@redhat.com>
5881
5882 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5883 __ptrace_request as first parameter type instead of int.
5884 (PTRACE_TYPE_ARG1): Define.
5885 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5886 that casts first argument to PTRACE_TYPE_ARG1.
5887 * config.in: Regenerate.
5888 * configure: Regenerate.
5889
e3790375
PA
58902015-07-24 Pedro Alves <palves@redhat.com>
5891
5892 * gdb_ptrace.h: Move ...
5893 * nat/gdb_ptrace.h: ... here.
5894 * inf-ptrace.c: Adjust.
5895
eb7aa561
PA
58962015-07-24 Pedro Alves <palves@redhat.com>
5897
5898 * acinclude.m4: Include ptrace.m4.
5899 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5900 * ptrace.m4: ... to this new file.
5901
cc12ce38
DE
59022015-07-23 Doug Evans <dje@google.com>
5903
5904 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5905 (load_cu): Handle dummy CUs.
5906 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5907 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5908
7b849db4
CS
59092015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5910
5911 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5912 documentation to say that it returns a list rather than
5913 a FrozenSet.
5914 (linetable_object_methods): Update the docstring of the
5915 "source_line" entry.
5916
d0d84780
PMR
59172015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5918
5919 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5920 type to the recursive call instead of the original (maybe
5921 TYPE_CODE_TYPEDEF) type.
5922
c2fbdc59
YQ
59232015-07-23 Yao Qi <yao.qi@linaro.org>
5924
5925 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5926 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5927 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5928
af1b22f3
YQ
59292015-07-21 Yao Qi <yao.qi@linaro.org>
5930
5931 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5932 Move it to nat/aarch64-linux-hw-point.c.
5933 (aarch64_linux_child_post_startup_inferior): Update.
5934 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5935 New function.
5936 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5937 Declare it.
5938
40e050d2
MM
59392015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5940
5941 * common/btrace-common.c (btrace_data_append): Change case label.
5942
3675a06a
YQ
59432015-07-20 Yao Qi <yao.qi@linaro.org>
5944
5945 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5946 Re-indent the code.
5947 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5948 "unsigned long long".
5949
b4e1fd61
KB
59502015-07-18 Kevin Buettner <kevinb@redhat.com>
5951
5952 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5953 to be set for SEC_ALLOC sections too.
5954
554717a3
YQ
59552015-07-17 Yao Qi <yao.qi@linaro.org>
5956
5957 * Makefile.in (HFILES_NO_SRCDIR): Add
5958 nat/aarch64-linux-hw-point.h.
5959 (aarch64-linux-hw-point.o): New rule.
5960 * nat/aarch64-linux-hw-point.h: New file.
5961 * nat/aarch64-linux-hw-point.c: New file.
5962 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5963 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5964 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5965 (AARCH64_HWP_ALIGNMENT): Likewise.
5966 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5967 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5968 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5969 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5970 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5971 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5972 (struct aarch64_debug_reg_state): Likewise.
5973 (struct arch_lwp_info): Likewise.
5974 (aarch64_linux_set_debug_regs): Likewise.
5975 (aarch64_notify_debug_reg_change): Remove static.
5976 (aarch64_align_watchpoint): Likewise.
5977 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5978 (aarch64_watchpoint_length): Likewise.
5979 (aarch64_point_encode_ctrl_reg): Likewise
5980 (aarch64_point_is_aligned): Likewise.
5981 (aarch64_dr_state_insert_one_point): Likewise.
5982 (aarch64_dr_state_remove_one_point): Likewise.
5983 (aarch64_handle_breakpoint): Likewise.
5984 (aarch64_handle_aligned_watchpoint): Likewise.
5985 (aarch64_handle_unaligned_watchpoint): Likewise.
5986 (aarch64_handle_watchpoint): Likewise.
5987 * config/aarch64/linux.mh (NAT_FILE): Add
5988 aarch64-linux-hw-point.o.
5989
c67ca4de
YQ
59902015-07-17 Yao Qi <yao.qi@linaro.org>
5991
5992 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5993 state and don't call aarch64_get_debug_reg_state. All callers
5994 update.
5995 (aarch64_linux_insert_hw_breakpoint): Call
5996 aarch64_get_debug_reg_state earlier.
5997 (aarch64_linux_remove_hw_breakpoint): Likewise.
5998 (aarch64_handle_aligned_watchpoint): Add argument state and
5999 don't call aarch64_get_debug_reg_state. All callers update.
6000 (aarch64_handle_unaligned_watchpoint): Likewise.
6001 (aarch64_handle_watchpoint): Add argument state.
6002 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6003 earlier.
6004 (aarch64_linux_remove_watchpoint): Likewise.
6005
25abf979
YQ
60062015-07-17 Yao Qi <yao.qi@linaro.org>
6007
6008 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6009 debug_printf.
6010 (aarch64_handle_unaligned_watchpoint): Likewise.
6011
2ecd81c2
YQ
60122015-07-17 Yao Qi <yao.qi@linaro.org>
6013
6014 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6015 argument type's type to 'enum target_hw_bp_type'.
6016 (aarch64_dr_state_remove_one_point): Likewise.
6017 (aarch64_handle_breakpoint): Likewise.
6018 (aarch64_linux_insert_hw_breakpoint): Likewise.
6019 (aarch64_linux_remove_hw_breakpoint): Likewise.
6020 (aarch64_handle_aligned_watchpoint): Likewise.
6021
e53b6938
YQ
60222015-07-17 Yao Qi <yao.qi@linaro.org>
6023
6024 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6025 ptid_get_pid instead of get_thread_id.
6026
6a49a997
YQ
60272015-07-17 Yao Qi <yao.qi@linaro.org>
6028
6029 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6030 (add_current_inferior_and_thread): Don't initialise ptid.
6031
4bcddace
PL
60322015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6033
6034 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6035 unavailable if invalid.
6036
db1ff28b
JK
60372015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6038
6039 Revert the previous 6 commits:
6040 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6041 Move gdb_regex* to common/
6042 Prepare linux_find_memory_regions_full & co. for move
6043 Move linux_find_memory_regions_full & co.
6044 gdbserver build-id attribute generator
6045 Validate symbol file using build-id
6046
ca5268b6
JK
60472015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6048 Jan Kratochvil <jan.kratochvil@redhat.com>
6049
6050 Validate symbol file using build-id.
6051 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6052 and 'show validate-build-id'. Add build-id attribute.
6053 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6054 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6055 * solib-frv.c (_initialize_frv_solib): Ditto.
6056 * solib-spu.c (set_spu_solib_ops): Ditto.
6057 * solib-svr4.c: Include rsp-low.h.
6058 (NOTE_GNU_BUILD_ID_NAME): New define.
6059 (svr4_validate): New function.
6060 (svr4_copy_library_list): Duplicate field build_id.
6061 (library_list_start_library): Parse 'build-id' attribute.
6062 (svr4_library_attributes): Add 'build-id' attribute.
6063 (_initialize_svr4_solib): Assign validate value.
6064 * solib-target.c (solib.h): Include.
6065 (_initialize_solib_target): Assign validate value.
6066 * solib.c (validate_build_id, show_validate_build_id): New.
6067 (solib_map_sections): Use ops->validate.
6068 (clear_so): Free build_id.
6069 (default_solib_validate): New function.
6070 (_initialize_solib): Add "validate-build-id".
6071 * solib.h (default_solib_validate): New declaration.
6072 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6073 (target_so_ops): New field 'validate'.
6074
700ca40f
JK
60752015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6076 Jan Kratochvil <jan.kratochvil@redhat.com>
6077
6078 gdbserver build-id attribute generator.
6079 * features/library-list-svr4.dtd (library-list-svr4): New
6080 'build-id' attribute.
6081
9904185c
JK
60822015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6083 Jan Kratochvil <jan.kratochvil@redhat.com>
6084
6085 Move linux_find_memory_regions_full & co.
6086 * linux-tdep.c (nat/linux-maps.h): Include.
6087 (gdb_regex.h): Remove the include.
6088 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6089 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6090 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6091 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6092 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6093 and target/target.h.
6094 (struct smaps_vmflags, read_mapping, decode_vmflags)
6095 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6096 (linux_find_memory_regions_full): Move from linux-tdep.c.
6097 * nat/linux-maps.h (read_mapping): New declaration.
6098 (linux_find_memory_region_ftype, enum filterflags): Moved from
6099 linux-tdep.c.
6100 (linux_find_memory_regions_full): New declaration.
6101 * target.c (target/target-utils.h): Include.
6102 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6103 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6104 definitions to target/target-utils.c.
6105 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6106 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6107 from target.c.
6108 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6109 (read_alloc): New declaration.
6110 (read_stralloc_func_ftype): New typedef.
6111 (read_stralloc): New declaration.
6112 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6113
f7af1fcd
JK
61142015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6115 Jan Kratochvil <jan.kratochvil@redhat.com>
6116
6117 Prepare linux_find_memory_regions_full & co. for move.
6118 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6119 (linux_find_memory_regions_full): Change signature and prepare
6120 for moving to linux-maps.
6121 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6122 (linux_find_memory_regions_thunk): New.
6123 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6124 (linux_find_memory_regions_gdb): New.
6125 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6126 (linux_make_mappings_corefile_notes): Use
6127 linux_find_memory_regions_gdb.
6128 * target.c (read_alloc_pread_ftype): New typedef.
6129 (target_fileio_read_alloc_1_pread): New function.
6130 (read_alloc): Refactor from target_fileio_read_alloc_1.
6131 (read_stralloc_func_ftype): New typedef.
6132 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6133 (read_stralloc): Refactored from target_fileio_read_stralloc.
6134 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6135
6e5b4429
JK
61362015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6137
6138 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6139 common/gdb_regex.h.
6140 (COMMON_OBS): Add gdb_regex.o.
6141 (gdb_regex.o): New.
6142 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6143 --without-included-regex and USE_INCLUDED_REGEX.
6144 * common/gdb_regex.c: New file from utils.c functions.
6145 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6146 file wrapping define name.
6147 * configure: Rebuilt.
6148 * configure.ac (gdb_use_included_regex, --without-included-regex)
6149 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6150 * gdb_regex.h: Move it to common/gdb_regex.h.
6151 * utils.c: Remove include gdb_regex.h.
6152 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6153 (compile_rx_or_error): Move them to common/gdb_regex.c.
6154
ddc98fbf
JK
61552015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6156 Jan Kratochvil <jan.kratochvil@redhat.com>
6157
6158 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6159 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6160 common/target-utils.h.
6161 (COMMON_OBS): Add target-utils.o.
6162 (linux-maps.o, target-utils.o): New.
6163 * target/target-utils.c: New file.
6164 * target/target-utils.h: New file.
6165 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6166 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6167 * nat/linux-maps.c: New file.
6168 * nat/linux-maps.h: New file.
6169
e7b01ce0
MM
61702015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6171 Pedro Alves <palves@redhat.com>
6172
6173 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6174 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6175 (perf_event_read_bts): Change the type of SIZE and READ.
6176 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6177 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6178 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6179 mmap page.
6180 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6181 buffer size to UINT_MAX.
6182 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6183 DATA_TAIL.
6184 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6185 <last_head>: Change type.
6186 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6187 * common/btrace-common.c (btrace_data_append): Change the type of
6188 SIZE.
6189 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6190 check.
6191
f168693b
SM
61922015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6193
6194 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6195 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6196 with check_typedef.
6197 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6198 (ada_array_length): Likewise.
6199 (find_parallel_type_by_descriptive_type): Likewise.
6200 (ada_check_typedef): Likewise.
6201 * arm-tdep.c (arm_return_in_memory): Likewise.
6202 * ax-gdb.c (gen_trace_static_fields): Likewise.
6203 (gen_struct_ref_recursive): Likewise.
6204 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6205 (variable: block COLONCOLON name): Likewise.
6206 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6207 * c-lang.c (classify_type): Likewise.
6208 * c-typeprint.c (c_print_type): Likewise.
6209 (c_print_typedef): Likewise.
6210 (c_type_print_base): Likewise.
6211 * c-valprint.c (c_val_print): Likewise.
6212 * compile/compile-c-types.c (convert_type): Likewise.
6213 * compile/compile-object-load.c (get_out_value_type): Likewise.
6214 * completer.c (add_struct_fields): Likewise.
6215 (expression_completer): Likewise.
6216 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6217 (cp_lookup_nested_symbol_1): Likewise.
6218 (cp_lookup_nested_symbol): Likewise.
6219 * cp-valprint.c (cp_print_value_fields): Likewise.
6220 (cp_print_static_field): Likewise.
6221 * d-valprint.c (d_val_print): Likewise.
6222 * eval.c (evaluate_subexp_standard): Likewise.
6223 (evaluate_subexp_for_sizeof): Likewise.
6224 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6225 * f-typeprint.c (f_type_print_base): Likewise.
6226 * f-valprint.c (f_val_print): Likewise.
6227 * gdbtypes.c (get_discrete_bounds): Likewise.
6228 (create_array_type_with_stride): Likewise.
6229 (type_name_no_tag_or_error): Likewise.
6230 (lookup_struct_elt_type): Likewise.
6231 (get_unsigned_type_max): Likewise.
6232 (internal_type_vptr_fieldno): Likewise.
6233 (set_type_vptr_fieldno): Likewise.
6234 (internal_type_vptr_basetype): Likewise.
6235 (set_type_vptr_basetype): Likewise.
6236 (get_vptr_fieldno): Likewise.
6237 (is_integral_type): Likewise.
6238 (is_scalar_type): Likewise.
6239 (is_scalar_type_recursive): Likewise.
6240 (distance_to_ancestor): Likewise.
6241 (is_unique_ancestor_worker): Likewise.
6242 (check_types_equal): Likewise.
6243 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6244
45280282
IB
62452015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6246
6247 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6248 also test for language_d.
6249 (dwarf2_compute_name): Likewise.
6250 (read_func_scope): Likewise.
6251 (read_structure_type): Likewise.
6252 (new_symbol_full): Likewise.
6253 (determine_prefix): Likewise.
6254 (read_import_statement): Use dot as the separator for language_d.
6255 (typename_concat): Likewise, but don't prefix the D main function.
6256
99fe86f7
PB
62572015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6258
6259 * nat/linux-namespaces.c (setns): Rename from this ...
6260 (do_setns): ... to this. Support calling setns if it exists.
6261 (mnsh_handle_setns): Call do_setns.
6262
d5131498
YQ
62632015-07-13 Yao Qi <yao.qi@linaro.org>
6264
6265 * exec.c (exec_file_attach): Add period at the end of error
6266 message.
6267
97605e61
AB
62682015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6269
6270 * tui/tui-win.c (window_name_completer): New function.
6271 (focus_completer): Call window_name_completer. All old content
6272 moved into window_name_completer.
6273 (winheight_completer): New function.
6274 (_initialize_tui_win): Rename variable. Add completer to
6275 winheight command. Update doc string on winheight.
6276
8d6dbeb4
SL
62772015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6278
6279 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6280 all nios2 mach variants.
6281
a0e28e54
KB
62822015-07-10 Kevin Buettner <kevinb@redhat.com>
6283
6284 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6285 of target_read_memory.
6286
c101f28f
AB
62872015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6288
6289 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6290 string copy.
6291 (parse_scrolling_args): Likewise.
6292
150375dc
AB
62932015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6294
6295 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6296 names in this function.
6297
6dce28e4
AB
62982015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6299
6300 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6301 (CMD_NAME): Likewise.
6302 (DATA_NAME): Likewise.
6303 (DISASSEM_NAME): Likewise.
6304 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6305 (tui_set_win_height): Likewise.
6306 (parse_scrolling_args): Likewise.
6307
485668e5
MM
63082015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6309
6310 * record-btrace.c (record_btrace_goto_begin)
6311 (record_btrace_goto_end, record_btrace_goto): Move call to
6312 print_stack_frame ...
6313 (record_btrace_set_replay): ... here. Set stop_pc.
6314 * record-full.c (record_full_goto_entry): Set stop_pc.
6315
58d2eda5
PL
63162015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6317
6318 * NEWS: Mention support for tracepoints on aarch64-linux.
6319
7671bf47
PL
63202015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6321
6322 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6323 function. Return 1.
6324 (the_low_target): Install it.
6325
7890fb45
PL
63262015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6327
6328 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6329 * gdb.trace/collection.exp: Likewise.
6330 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6331 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6332 * gdb.trace/report.exp: Likewise.
6333 * gdb.trace/trace-break.exp: Likewise.
6334 * gdb.trace/unavailable.exp: Likewise.
6335 * gdb.trace/while-dyn.exp: Likewise.
6336
ea873d8e
PL
63372015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6338
6339 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6340 (aarch64_gen_return_address): New function.
6341 (aarch64_gdbarch_init): Hook it.
6342
02a2a705
PL
63432015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6344
6345 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6346 swallow NOT_AVAILABLE_ERROR.
6347 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6348 available_p is not set.
6349 (aarch64_stub_frame_unwind_stop_reason): New function.
6350 (aarch64_stub_unwind): Install it.
6351
7dfa3edc
PL
63522015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6353
6354 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6355 field.
6356 (aarch64_make_prologue_cache_1): New function, factored out from
6357 aarch64_make_prologue_cache. Do not allocate cache. Set
6358 available_p.
6359 (aarch64_make_prologue_cache): Reimplement wrapping
6360 aarch64_make_prologue_cache_1, and swallowing
6361 NOT_AVAILABLE_ERROR.
6362 (aarch64_prologue_frame_unwind_stop_reason): New function.
6363 Return UNWIND_UNAVAILABLE if available_p is not set.
6364 (aarch64_prologue_unwind): Install it.
6365 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6366 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6367 frame_id_build_unavailable_stack if available_p is not set.
6368
db634143
PL
63692015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6370
6371 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6372 fields.
6373 (aarch64_scan_prologue): Set prev_pc.
6374 (aarch64_make_prologue_cache): Set func.
6375 (aarch64_make_stub_cache): Set prev_pc.
6376 (aarch64_prologue_this_id): Remove local variables id, pc and
6377 func. Read prev_pc and func from cache.
6378 (aarch64_stub_this_id): Read prev_pc from cache.
6379
8b61f75d
PL
63802015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6381
6382 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6383 argument this_cache. Remove unused local variables reg and
6384 unwound_fp. Return early if this_cache is already set. Set
6385 this_cache.
6386 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6387
7c8edfae
PL
63882015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6389
6390 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6391 New argument this_cache. Return early if this_cache is already
6392 set. Set this_cache.
6393 (aarch64_prologue_this_id): Update call to
6394 aarch64_make_prologue_cache.
6395 (aarch64_prologue_prev_register): Likewise.
6396 (aarch64_normal_frame_base): Likewise.
6397
938c69a1
SM
63982015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6399
6400 * c-valprint.c (c_val_print): Factor out memberptr printing code
6401 from c_val_print to ...
6402 (c_val_print_memberptr): ... this new function.
6403
49f7fe28
SM
64042015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6405
6406 * c-valprint.c (c_val_print): Factor out int printing code to ...
6407 (c_val_print_int): ... this new function.
6408
9e4f353c
SM
64092015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6410
6411 * c-valprint.c (c_val_print): Factor out struct and union
6412 printing code to ...
6413 (c_val_print_struct): ... this new function ...
6414 (c_val_print_union): ... and this new function.
6415
1c67f032
SM
64162015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6417
6418 * c-valprint.c (c_val_print): Factor out pointer printing code
6419 to ...
6420 (c_val_print_ptr): ... this new function.
6421
0b6ef777
SM
64222015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6423
6424 * c-valprint.c (c_valprint): Factor our array printing code from
6425 c_val_print to ...
6426 (c_val_print_array): ... this new function.
6427
1033c33c
SM
64282015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6429
6430 * c-valprint.c (c_val_print): Factor out pointer printing code
6431 to ...
6432 (print_unpacked_pointer): ... this new function.
6433
f6b93c34
SM
64342015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6435
6436 * c-valprint.c (c_val_print): Remove an assignment to i and move
6437 its declaration.
6438
0f4576e3
YQ
64392015-07-09 Yao Qi <yao.qi@linaro.org>
6440
6441 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6442 argument ptid. Update comments. Caller update.
6443
37fdfe4c
MM
64442015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6445
6446 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6447 mnt packets.
6448
80a2b330
MM
64492015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6450
6451 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6452
4ab31498
SM
64532015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6454
6455 * progspace.c (delete_program_space): Add missing spaces.
6456
7a41607e
SM
64572015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6458
6459 * inferior.c (delete_inferior_1): Rename to ...
6460 (delete_inferior): ..., remove 'silent' parameter, delete
6461 program space when unused and remove call to prune_program_spaces.
6462 Remove the old, unused, delete_inferior.
6463 (delete_inferior_silent): Remove.
6464 (prune_inferiors): Change call from delete_inferior_1 to
6465 delete_inferior and remove 'silent' parameter. Remove call to
6466 prune_program_spaces.
6467 (remove_inferior_command): Idem.
6468 * inferior.h (delete_inferior_1): Rename to...
6469 (delete_inferior): ..., remove 'silent' parameter and remove the
6470 original delete_inferior.
6471 (delete_inferior_silent): Remove.
6472 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6473 delete_inferior_1 to delete_inferior and remove 'silent'
6474 parameter.
6475 * progspace.c (prune_program_spaces): Remove.
6476 (pspace_empty_p): Rename to...
6477 (program_space_empty_p): ... and make non-static.
6478 (delete_program_space): New.
6479 * progspace.h (prune_program_spaces): Remove declaration.
6480 (program_space_empty_p): New declaration.
6481 (delete_program_space): New declaration.
6482 * monitor.c (monitor_close): Replace call to
6483 delete_thread_silent and delete_inferior_silent with
6484 discard_all_inferiors.
6485
a9bd710f
PP
64862015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6487
6488 * defs.h (deprecated_register_changed_hook): Remove prototype.
6489 * interps.c (clear_iterpreter_hooks): Remove reference to
6490 deprecated_register_changed_hook.
6491 * top.c (deprecated_register_changed_hook): Remove prototype.
6492 * valops.c (value_assign): Remove reference to
6493 deprecated_register_changed_hook.
6494 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6495 Add comment documenting the function.
6496 (tui_register_changed_observer): Define.
6497 (tui_install_hooks): Remove reference to
6498 deprecated_register_changed_hook. Set
6499 tui_register_changed_observer.
6500 (tui_remove_hooks): Remove reference to
6501 deprecated_register_changed_hook. Unset
6502 tui_register_changed_observer.
6503
08464196
JK
65042015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6505
6506 PR compile/18484
6507 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6508
bcf5c1d9
RC
65092015-07-08 Robert O'Callahan <robert@ocallahan.org>
6510
6511 PR exp/18617
6512 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6513
e8643a45
MM
65142015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6515
6516 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6517
76fb6829
MM
65182015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6519
6520 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6521 Use safe_strerror() instead of strerror().
6522
82c40d4b
YQ
65232015-07-07 Yao Qi <yao.qi@linaro.org>
6524
6525 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6526 * features/arm-with-m-fpa-layout.c: Regenerated.
6527 * features/arm-with-m-vfp-d16.xml: Likewise.
6528 * features/arm-with-m-vfp-d16.c: Regenerated.
6529 * features/arm-with-m.xml: Likewise.
6530 * features/arm-with-m.c: Regenerated.
6531 * features/arm-with-neon.xml: Likewise.
6532 * features/arm-with-neon.c: Regenerated.
6533 * features/arm-with-vfpv2.xml: Likewise.
6534 * features/arm-with-vfpv2.c: Regenerated.
6535 * features/arm-with-vfpv3.xml: Likewise.
6536 * features/arm-with-vfpv3.c: Regenerated.
6537
607685ec
YQ
65382015-07-07 Yao Qi <yao.qi@linaro.org>
6539
6540 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6541 arm-linux-nat.c.
6542 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6543 elf/external.h.
6544 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6545 if target is 32-bit.
6546 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6547 if target is 32-bit.
6548 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6549 if target is 32-bit.
6550 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6551 if target is 32-bit.
6552 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6553 (aarch64_linux_read_description): Return the right target
6554 description.
6555 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6556 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6557 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6558 arm-linux-tdep.o.
6559
f1b67888
YQ
65602015-07-07 Yao Qi <yao.qi@linaro.org>
6561
6562 * aarch32-linux-nat.c: New file.
6563 * aarch32-linux-nat.h: New file.
6564 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6565 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6566 aarch32_gp_regcache_supply.
6567 (store_regs): Move code to aarch32-linux-nat.c. Call
6568 aarch32_gp_regcache_collect.
6569 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6570 aarch32_vfp_regcache_supply.
6571 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6572 aarch32_vfp_regcache_collect.
6573 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6574
179bfe82
YQ
65752015-07-07 Yao Qi <yao.qi@linaro.org>
6576
6577 * arm-linux-nat.c (store_fpregister): Remove.
6578 (store_register): Likewise.
6579 (fetch_fpregister): Likewise.
6580 (fetch_register): Likewise.
6581 (arm_linux_store_inferior_registers): Call store_regs and
6582 store_fpregs instead.
6583 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6584 fetch_regs instead.
6585
6008fc5f
AB
65862015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6587
6588 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6589 and focus commands.
6590
7c79d316
JB
65912015-07-06 Joel Brobecker <brobecker@adacore.com>
6592
6593 * NEWS: Create a new section for the next release branch.
6594 Rename the section of the current branch, now that it has
6595 been cut.
6596
f2232bea
JB
65972015-07-06 Joel Brobecker <brobecker@adacore.com>
6598
6599 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6600 * version.in: Bump version to 7.10.50.DATE-cvs.
6601
66c4b3e8
LM
66022015-07-06 Luis Machado <lgustavo@codesourcery.com>
6603
6604 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6605 breakpoints in a special way.
6606 (remove_breakpoint): Likewise.
6607 (mark_breakpoints_out): Likewise.
6608
bcd8537c
AB
66092015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6610
6611 * doc/gdb.texinfo (TUI): Add comma after @xref.
6612
10e9aaa3
AB
66132015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6614
6615 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6616 instead of casting the structure type.
6617
8a13d42d
SM
66182015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6619
6620 * valops.c (search_struct_field): Remove OFFSET parameter.
6621 (value_cast_structs): Adjust calls to search_struct_field.
6622 (value_struct_elt): Same.
6623 (find_overload_match): Same.
6624
a844296a
SM
66252015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6626
6627 * value.c (value_fetch_lazy): Update comment, change return
6628 value to void.
6629 * value.h (value_fetch_lazy): Change return value to void.
6630
f41cbf58
AB
66312015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6632
6633 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6634 (tui_win_name): Make parameter and result const.
6635 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6636
118ca224
PP
66372015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6638
6639 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6640 use printf_unfiltered.
6641 (set_mpx_cmd): Add missing trailing space to command string
6642 literal.
6643 (_initialize_i386_tdep): Give the "mpx" prefix command its
6644 correct name.
6645
1b485e67
KB
66462015-07-02 Kevin Buettner <kevinb@redhat.com>
6647
6648 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6649 (enum rx_frame_type): New.
6650 (struct rx_prologue): Add new field `frame_type'.
6651 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6652 parameter in the prologue struct. Add code for recording
6653 locations of PC and PSW for fast interrupt and exception frames.
6654 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6655 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6656 (rx_frame_type): New function.
6657 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6658 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6659 `this_cache'.
6660 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 6661 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
6662 RX_FRAME_TYPE_FAST_INTERRUPT.
6663 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6664 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6665 (rx_frame_unwind): Use rx_frame_sniffer instead of
6666 default_frame_sniffer.
6667 (rx_frame_unwind): New unwinder.
6668 (rx_gdbarch_init): Register new unwinder.
6669
0561fea4
KB
66702015-07-02 Kevin Buettner <kevinb@redhat.com>
6671
6672 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6673 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6674 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6675 and RX_FPSW_REGNUM.
6676 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6677
decf8d9a
JK
66782015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6679
6680 Fix GCC false warning.
6681 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6682
2fd0f80d
YQ
66832015-07-02 Yao Qi <yao.qi@linaro.org>
6684
6685 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6686 typo in the debugging message.
6687
b0627500
MM
66882015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6689
6690 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6691 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6692 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6693 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6694 (btrace_maint_clear): New.
6695 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6696 (pt_print_packet, btrace_maint_decode_pt)
6697 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6698 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6699 (maint_btrace_packet_history_cmd)
6700 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6701 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6702 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6703 (maint_info_btrace_cmd, _initialize_btrace): New.
6704 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6705 (btrace_maint_packet_history, btrace_maint_info): New.
6706 (btrace_thread_info) <maint>: New.
6707 * NEWS: Announce it.
6708
9be54cae
MM
67092015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6710
6711 * btrace.c (btrace_fetch): Append the new trace data.
6712 (btrace_clear): Clear the stored trace data.
6713 * btrace.h (btrace_thread_info) <data>: New.
6714 * common/btrace-common.h (btrace_data_clear)
6715 (btrace_data_append): New.
6716 * common/btrace-common.c (btrace_data_clear)
6717 (btrace_data_append): New.
6718
010a18a1
MM
67192015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6720
6721 * nat/linux-btrace.c (linux_enable_bts): Check for
6722 PERF_ATTR_SIZE_VER5.
6723 Check for data_offset and data_size fields. Use them.
6724
b20a6524
MM
67252015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6726
6727 * NEWS: Announce new commands "record btrace pt" and "record pt".
6728 Announce new options "set|show record btrace pt buffer-size".
6729 * btrace.c: Include "rsp-low.h".
6730 Include "inttypes.h".
6731 (btrace_add_pc): Add forward declaration.
6732 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6733 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6734 (btrace_compute_ftrace_pt): New.
6735 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6736 (check_xml_btrace_version): Update version check.
6737 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6738 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6739 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6740 (btrace_pt_children): New.
6741 (btrace_children): Add support for "pt".
6742 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6743 (btrace_conf_children): Add support for "pt".
6744 * btrace.h: Include "intel-pt.h".
6745 (btrace_pt_error): New.
6746 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6747 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6748 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6749 (struct btrace_config_pt): New.
6750 (struct btrace_config)<pt>: New.
6751 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6752 (struct btrace_data)<pt>: New.
6753 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6754 (pt): New.
6755 * features/btrace.dtd (btrace)<pt>: New.
6756 (pt, pt-config, cpu): New.
6757 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6758 (perf_event_pt_event_type, kernel_supports_pt)
6759 (linux_supports_pt): New.
6760 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6761 (linux_enable_bts): Free tinfo on error.
6762 (linux_enable_pt): New.
6763 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6764 (linux_disable_pt): New.
6765 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6766 (linux_fill_btrace_pt_config, linux_read_pt): New.
6767 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6768 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6769 (struct btrace_target_info)<pt>: New.
6770 * record-btrace.c (set_record_btrace_pt_cmdlist)
6771 (show_record_btrace_pt_cmdlist): New.
6772 (record_btrace_print_pt_conf): New.
6773 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6774 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6775 (cmd_record_btrace_pt_start): New.
6776 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6777 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6778 (_initialize_record_btrace): Add new commands.
6779 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6780 (remote_protocol_features): Add "Qbtrace:pt".
6781 Add "Qbtrace-conf:pt:size".
6782 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6783 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6784 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6785 (_initialize_remote): Add new commands.
6786
58bfce93
MM
67872015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6788
6789 * configure.ac: check for libipt
6790 * configure: Regenerate.
6791 * config.in: Regenerate.
6792 * Makefile.in (LIBIPT): New.
6793 (CLIBS): Add $LIBIPT.
6794 * NEWS: document new configure options
6795
b0fd6b30
JK
67962015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6797
6798 * compile/compile-object-load.c (compile_object_load): Replace debug
6799 message "lookup undefined ELF symbol" by 3 more specific messages.
6800
e6280369
KB
68012015-07-01 Kevin Buettner <kevinb@redhat.com>
6802
6803 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6804 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6805 (rl78_gdbarch_init): Initialize rl78_psw_type.
6806
bbcbf914
PP
68072015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6808
6809 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6810 Update commentary. Always refresh the registers when frame
6811 information has changed.
6812 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6813 Change return type to int. Return 1 if frame information has
6814 changed, 0 otherwise.
6815 (tui_before_prompt): Update commentary.
6816 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6817 int.
6818
0986c744
PP
68192015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6820
6821 PR tui/13378
6822 * frame.c (select_frame): Remove reference to
6823 deprecated_selected_frame_level_changed_hook.
6824 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6825 declaration.
6826 * stack.c (deprecated_selected_frame_level_changed_hook):
6827 Likewise.
6828 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6829 Rename to ...
6830 (tui_refresh_frame_and_register_information): ... this. Bail
6831 out if there is no stack. Don't update register information
6832 unless registers_too_p is true.
6833 (tui_print_frame_info_listing_hook): Rename to ...
6834 (tui_dummy_print_frame_info_listing_hook): ... this.
6835 (tui_before_prompt): New function.
6836 (tui_normal_stop): New function.
6837 (tui_before_prompt_observer): New observer.
6838 (tui_normal_stop_observer): New observer.
6839 (tui_install_hooks): Set
6840 deprecated_print_frame_info_listing_hook to
6841 tui_dummy_print_frame_info_listing_hook. Register
6842 tui_before_prompt_observer to call tui_before_prompt and
6843 tui_normal_stop_observer to call tui_normal_stop. Remove
6844 reference to deprecated_selected_frame_level_changed_hook.
6845 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6846 and tui_normal_stop_observer. Remove reference to
6847 deprecated_selected_frame_level_changed_hook.
6848
b5fca6d7
PP
68492015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6850
6851 PR tui/13378
6852 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6853 return an int instead of void. Return whether the locator
6854 window has changed.
6855 (tui_show_frame_info): If the locator info has not changed, then
6856 bail out early to avoid refreshing the windows.
6857
c45613e3
PP
68582015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6859
6860 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6861 LOCATOR_WIN to tui_alloc_content.
6862
7b9be803
YQ
68632015-06-30 Yao Qi <yao.qi@linaro.org>
6864
6865 PR tdep/18605
6866 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6867 instructions.
6868
fd6e021d
KB
68692015-06-29 Kevin Buettner <kevinb@redhat.com>
6870
78ab7e9d
KB
6871 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6872 (rx_dwarf_reg_to_regnum): New function.
6873 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6874 unwinding.
fd6e021d 6875
28bf096c
PA
68762015-06-29 Pedro Alves <palves@redhat.com>
6877
6878 PR threads/18127
6879 * infcall.c (run_inferior_call): On infcall success, if the thread
6880 was marked stopped before, reset it back to stopped.
6881 * infrun.c (resume): Don't suppress the set_running calls when
6882 doing an infcall.
6883 (normal_stop): Only discard the finish_thread_state cleanup if the
6884 infcall succeeded.
6885
2880b51c 68862015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
6887
6888 * MAINTAINERS (Write After Approval): Update my email address.
6889
ee93cd5e
KS
68902015-06-26 Keith Seitz <keiths@redhat.com>
6891 Doug Evans <dje@google.com>
6892
6893 PR 16253
6894 * block.c (block_lookup_symbol): For non-function blocks,
6895 continue to search for a symbol with an exact domain match
6896 Otherwise, return any previously found "best domain" symbol.
6897 (block_lookup_symbol_primary): Likewise.
6898
fc637f04
PP
68992015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6900
6901 * NEWS: Mention the new option "history remove-duplicates".
6902 * top.c (history_remove_duplicates): New static variable.
6903 (show_history_remove_duplicates): New static function.
6904 (gdb_add_history): Conditionally remove duplicate history
6905 entries.
6906 (init_main): Add "history remove-duplicates" option.
6907
2e52ae68
PP
69082015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6909
6910 * tui/tui-win.c (focus_completer): New static function.
6911 (_initialize_tui_win): Set the completion function of the
6912 "focus" command to focus_completer.
6913
6e22494e
JK
69142015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6915
6916 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6917 and language_asm..
6918 * symtab.c (find_function_start_sal): Likewise.
6919
f8773be1
GB
69202015-06-25 Gary Benson <gbenson@redhat.com>
6921
6922 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6923 it is the empty string after trailing slashes have been stripped.
6924
a3be80c3
GB
69252015-06-25 Gary Benson <gbenson@redhat.com>
6926
6927 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6928 * infrun.c (follow_exec): Likewise.
6929 * remote.c (remote_filesystem_is_local): Likewise.
6930 * solib.c (solib_find_1): Likewise.
6931
32fad71f
KS
69322015-06-24 Keith Seitz <keiths@redhat.com>
6933
6934 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6935 return value from lrealpath.
6936
87d1b309
MF
69372015-06-24 Mike Frysinger <vapier@gentoo.org>
6938
6939 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6940
23bf70af
MF
69412015-06-24 Mike Frysinger <vapier@gentoo.org>
6942
6943 * remote-sim.c: Include gdb_bfd.h.
6944 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6945 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6946
5cd867b4
YQ
69472015-06-24 Yao Qi <yao.qi@linaro.org>
6948
6949 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6950 set_gdbarch_get_siginfo_type.
6951 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6952 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6953 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6954 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6955 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6956 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6957 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6958 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6959 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6960 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6961
dc06243f
GB
69622015-06-24 Gary Benson <gbenson@redhat.com>
6963
6964 * common/buffer.c (stdint.h): Do not include.
6965 * common/print-utils.c (stdint.h): Likewise.
6966 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6967 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6968 * ft32-tdep.c (gdb_assert.h): Likewise.
6969 * guile/scm-utils.c (stdint.h): Likewise.
6970 * i386-linux-tdep.c (stdint.h): Likewise.
6971 * i386-tdep.c (stdint.h): Likewise.
6972 * nat/linux-btrace.c (stdint.h): Likewise.
6973 * nat/linux-btrace.h (stdint.h): Likewise.
6974 * nat/linux-ptrace.c (stdint.h): Likewise.
6975 * nat/mips-linux-watch.h (stdint.h): Likewise.
6976 * ppc-linux-nat.c (stdint.h): Likewise.
6977 * python/python-internal.h (stdint.h): Likewise.
6978 * stub-termcap.c (stdlib.h): Likewise.
6979 * target/target.h (stdint.h): Likewise.
6980 * xtensa-linux-nat.c (stdint.h): Likewise.
6981
0fc26caf
PP
69822015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6983
6984 * top.c (init_history): Look at errno after calling strtol to
6985 properly map large GDBHISTSIZE values to infinity.
6986
a38fe4fe
DE
69872015-06-23 Doug Evans <dje@google.com>
6988
6989 * inferior.h (struct inferior_suspend_state): Delete, unused.
6990 All references deleted.
6991
7564fe45
MF
69922015-06-23 Mike Frysinger <vapier@gentoo.org>
6993
6994 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6995 (microblaze_push_dummy_call): Likewise.
6996 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6997 and set_gdbarch_push_dummy_call.
6998
0bdb2f78
YQ
69992015-06-23 Yao Qi <yao.qi@linaro.org>
7000
7001 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7002 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7003 (amd64_linux_store_inferior_registers): Likewise.
7004 * arm-linux-nat.c (fetch_fpregister): Likewise.
7005 (fetch_fpregs, store_fpregister): Likewise.
7006 (store_fpregister, store_fpregs): Likewise.
7007 (fetch_register, fetch_regs): Likewise.
7008 (store_register, store_regs): Likewise.
7009 (fetch_vfp_regs, store_vfp_regs): Likewise.
7010 (arm_linux_read_description): Check have_ptrace_getregset is
7011 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7012 or TRIBOOL_FALSE.
7013 * i386-linux-nat.c (fetch_xstateregs): Check
7014 have_ptrace_getregset is not TRIBOOL_TRUE.
7015 (store_xstateregs): Likewise.
7016 * linux-nat.c (have_ptrace_getregset): Change its type to
7017 enum tribool.
7018 * linux-nat.h (tribool): New enum.
7019 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7020 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7021
18a94d75
DE
70222015-06-19 Doug Evans <dje@google.com>
7023
7024 * NEWS: Mention Sun's version of stabs is no longer supported.
7025 * elfread.c (free_elfinfo): Delete. All uses updated.
7026 (elfstab_offset_sections): Delete. All uses updated.
7027 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7028 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7029 All uses updated.
7030 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7031 All callers updated.
7032
124e13d9
SM
70332015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7034
7035 * common/rsp-low.c (needs_escaping): New.
7036 (remote_escape_output): Add unit_size parameter. Refactor to
7037 support multi-byte addressable units. Rename parameters.
7038 * common/rsp-low.h (remote_escape_output): Add unit_size
7039 parameter and rename others. Update doc.
7040 * remote.c (align_for_efficient_write): New.
7041 (remote_write_bytes_aux): Add unit_size parameter and use it.
7042 Rename some variables. Update doc.
7043 (remote_xfer_partial): Get unit size and use it.
7044 (remote_read_bytes_1): Add unit_size parameter and use it.
7045 Rename some variables. Update doc.
7046 (remote_write_bytes): Same.
7047 (remote_xfer_live_readonly_partial): Same.
7048 (remote_read_bytes): Same.
7049 (remote_flash_write): Update call to remote_write_bytes_aux.
7050 (remote_write_qxfer): Update call to remote_escape_output.
7051 (remote_search_memory): Same.
7052 (remote_hostio_pwrite): Same.
7053
6ae88661
LM
70542015-06-17 Luis Machado <lgustavo@codesourcery.com>
7055
7056 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7057 locations as inserted.
7058 Update and expand comment about permanent locations.
7059 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7060 Move comment to add_location_to_breakpoint.
7061 (update_global_location_list): Don't error out if a permanent
7062 breakpoint is not marked inserted.
7063 Don't error out if a non-permanent breakpoint location is inserted on
7064 top of a permanent breakpoint.
7065
da4616f6
LM
70662015-06-17 Luis Machado <lgustavo@codesourcery.com>
7067
7068 * breakpoint.c (make_breakpoint_permanent): Remove unused
7069 function.
7070 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7071
bc460514
PP
70722015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7073
7074 PR gdb/16999
7075 * NEWS: Mention new GDBHISTSIZE behavior.
7076 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7077 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7078
b58c513b
PP
70792015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7080
7081 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7082 * top.c (init_history): Read from GDBHISTSIZE instead of
7083 HISTSIZE.
7084 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7085
2093d2d3
PP
70862015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7087
7088 * top.c (gdb_safe_append_history): Do not call
7089 history_truncate_file if the history is not stifled.
7090
fc248485
AA
70912015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7092
7093 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7094 * syscalls/s390x-linux.xml: Likewise.
7095
4da680ad
ME
70962015-06-16 Michael Eager <eager@eagercon.com>
7097
7098 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7099
0a75489f
PP
71002015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7101
7102 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7103 target_terminal_ours_for_output() before calling
7104 tui_show_frame_info(), and restore the original terminal
7105 settings afterwards.
7106
95855ca8
MS
71072015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7108
7109 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7110
cfc32360
SM
71112015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7112
7113 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7114 memory unit size.
7115 (mi_cmd_data_write_memory_bytes): Same.
7116
cb6f16cf
SM
71172015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7118
7119 * corefile.c (write_memory): Update doc.
7120 * gdbcore.h (write_memory): Same.
7121
31b7833d
JK
71222015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7123
7124 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7125 (dump_mapping_p): Use it for parameter filterflags.
7126 (linux_find_memory_regions_full): Use it for variable filterflags.
7127
909c2cda
JK
71282015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7129 Jan Kratochvil <jan.kratochvil@redhat.com>
7130
7131 Merge multiple hex conversions.
7132 * monitor.c: Include rsp-low.h.
7133 (fromhex): Remove definition.
7134
03aef70f
JK
71352015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7136 Jan Kratochvil <jan.kratochvil@redhat.com>
7137
7138 Move utility functions to common/.
7139 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7140 Move defs to common/common-utils.c.
7141 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7142 (skip_to_space_const): Move decls to common/common-utils.h.
7143 * common/common-defs.h: Move include of common-types.h before
7144 common-utils.h.
7145 * common/common-utils.c: Include host-defs.h and ctype.h.
7146 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7147 from utils.c.
7148 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7149 cli/cli-utils.c.
7150 * common/common-utils.h (strtoulst): Move decl from utils.h.
7151 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7152 Move from cli/cli-utils.h.
7153 * common/host-defs.h: Include limits.h.
7154 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7155 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7156 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7157 common/common-utils.h.
7158 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7159 (strtoulst): Move to common/common-utils.c.
7160 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7161
d1168cc1
YQ
71622015-06-15 Yao Qi <yao.qi@linaro.org>
7163
7164 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7165
c74f7d1c
JT
71662015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7167
7168 * build-id.c: Don't include elf-bfd.h.
7169 (build_id_bfd_get): Use bfd_build_id.
7170 (build_id_verify): Ditto.
7171 * build-id.h: Ditto.
7172 (find_separate_debug_file_by_buildid): Ditto.
7173 * python/py-objfile.c: Don't include elf-bfd.h.
7174 (objfpy_get_build_id) Use bfd_build_id.
7175 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7176 * coffread.c: Include build-id.h.
7177 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7178
f20c58f5
JT
71792015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7180
7181 * windows-nat.c (do_windows_fetch_inferior_registers)
7182 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7183 conditional with __CYGWIN__.
7184
51f0e40d
AB
71852015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7186
7187 * completer.c: Add arch-utils.h include.
7188 (enum reg_completer_targets): New enum.
7189 (reg_or_group_completer_1): New function containing old
7190 reg_or_group_completer, add and use new parameter to control what
7191 is completed on. Use get_current_arch rather than architecture of
7192 currently selected frame.
7193 (reg_or_group_completer): Call new reg_or_group_completer_1.
7194 (reggroup_completer): Call new reg_or_group_completer_1.
7195 * completer.h (reggroup_completer): Add declaration.
7196 * tui/tui-regs.c: Add 'completer.h' include.
7197 (tui_reg_next_command): Renamed to...
7198 (tui_reg_next): ...this. Adjust parameters and return rather than
7199 display new group.
7200 (tui_reg_prev_command): Renamed to...
7201 (tui_reg_prev): ...this. Adjust parameters and return rather than
7202 display new group.
7203 (tui_reg_float_command): Delete.
7204 (tui_reg_general_command): Delete.
7205 (tui_reg_system_command): Delete.
7206 (tui_reg_command): Rewrite to perform switching of register group.
7207 Add header comment.
7208 (tuireglist): Remove.
7209 (tui_reggroup_completer): New function.
7210 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7211 creation of 'tui reg' command.
7212 * NEWS: Add comment about 'tui reg' changes.
7213
d309493c
SM
72142015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7215
7216 * target.c (target_read): Consider addressable unit size when
7217 reading from a memory object.
7218 (read_memory_robust): Same.
7219 (read_whatever_is_readable): Same.
7220 (target_write_with_progress): Consider addressable unit size
7221 when writing to a memory object.
7222 * target.h (target_read): Update documentation.
7223 (target_write): Add documentation.
7224
3374165f
SM
72252015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7226
7227 * arch-utils.h (default_addressable_memory_unit_size): New.
7228 * arch-utils.c (default_addressable_memory_unit_size): New.
7229 * gdbarch.sh (addressable_memory_unit_size): New.
7230 * gdbarch.h: Re-generate.
7231 * gdbarch.c: Re-generate.
7232
279a6fed
SM
72332015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7234
7235 * target.c (target_read): Rename variables and use
7236 TARGET_XFER_E_IO.
7237 (target_read_with_progress): Same.
7238 (read_memory_robust): Constify parameters and rename
7239 variables.
7240 (read_whatever_is_readable): Constify parameters,
7241 rename variables, adjust formatting.
7242 * target.h (read_memory_robust): Constify parameters.
7243
1e5338b6 72442015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
7245
7246 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7247 synthetic (non-AltiVec) vector types.
7248 (ppc64_sysv_abi_return_value): Likewise.
7249
98aa42ee
AT
72502015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7251
7252 PR breakpoints/16465
7253 * breakpoint.c (create_breakpoint): Save extra_string for
7254 pending breakpoints.
7255
966f0aef
WT
72562015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7257
7258 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7259 and bt_mask to CORE_ADDR.
7260
6449ed0d
GB
72612015-06-11 Gary Benson <gbenson@redhat.com>
7262
7263 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7264 (mnsh_recv_message): Likewise.
7265
34f8ac9f
WT
72662015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7267
7268 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7269 long long int and plongest instead of %ll.
7270
198c808c
GB
72712015-06-11 Gary Benson <gbenson@redhat.com>
7272
7273 * nat/linux-namespaces.c (gdb_wait.h): New include.
7274 (sys/wait.h): Do not include.
7275
e815d2d2
SM
72762015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7277
7278 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7279 end_sequence is true.
7280
8847cac2
JK
72812015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7282
7283 Code cleanup.
7284 * solib-target.c (library_list_start_list): Use explicit NULL
7285 comparison.
7286
24c05f46
JK
72872015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7288
7289 * solib-target.c (library_list_start_list): Do not dereference
7290 variable version in its initialization. Make the VERSION check handle
7291 NULL.
7292 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7293
51aad7cc
GB
72942015-06-10 Gary Benson <gbenson@redhat.com>
7295
7296 * NEWS: Announce support for direct access of executable and
7297 shared library files when attaching to inferiors in containers
7298 on GNU/Linux systems.
7299
15a201c8
GB
73002015-06-10 Gary Benson <gbenson@redhat.com>
7301
7302 * remote.c (struct remote_state) <fs_pid>: New field.
7303 (new_remote_state): Initialize the above.
7304 (PACKET_vFile_setfs): New enum value.
7305 (remote_hostio_set_filesystem): New function.
7306 (remote_hostio_open): Call the above.
7307 (remote_hostio_unlink): Likewise.
7308 (remote_hostio_readlink): Likewise.
7309 (_initialize_remote): Register new "set/show remote
7310 hostio-setfs-packet" command.
7311 * NEWS: Announce new vFile:setfs packet.
7312
7a6a1731
GB
73132015-06-10 Gary Benson <gbenson@redhat.com>
7314
7315 * linux-nat.c (nat/linux-namespaces.h): New include.
7316 (fileio.h): Likewise.
7317 (linux_nat_filesystem_is_local): New function.
7318 (linux_nat_fileio_pid_of): Likewise.
7319 (linux_nat_fileio_open): Likewise.
7320 (linux_nat_fileio_readlink): Likewise.
7321 (linux_nat_fileio_unlink): Likewise.
7322 (linux_nat_add_target): Initialize to_filesystem_is_local,
7323 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7324 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7325 commands.
7326 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7327
07c138c8
GB
73282015-06-10 Gary Benson <gbenson@redhat.com>
7329
7330 * target.h (struct inferior): New forward declaration.
7331 (struct target_ops) <to_filesystem_is_local>: Update comment.
7332 (struct target_ops) <to_fileio_open>: New argument inf.
7333 Update comment. All implementations updated.
7334 (struct target_ops) <to_fileio_unlink>: Likewise.
7335 (struct target_ops) <to_fileio_readlink>: Likewise.
7336 (target_filesystem_is_local): Update comment.
7337 (target_fileio_open): New argument inf. Update comment.
7338 (target_fileio_unlink): Likewise.
7339 (target_fileio_readlink): Likewise.
7340 (target_fileio_read_alloc): Likewise.
7341 (target_fileio_read_stralloc): Likewise.
7342 * target.c (target_fileio_open): New argument inf.
7343 Pass inf to implementation. Update debug printing.
7344 (target_fileio_unlink): Likewise.
7345 (target_fileio_readlink): Likewise.
7346 (target_fileio_read_alloc_1): New argument inf. Pass inf
7347 to target_fileio_open.
7348 (target_fileio_read_alloc): New argument inf. Pass inf to
7349 target_fileio_read_alloc_1.
7350 (target_fileio_read_stralloc): Likewise.
7351 * gdb_bfd.c (inferior.h): New include.
7352 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7353 argument with new argument "inferior". Pass inferior to
7354 target_fileio_open.
7355 (gdb_bfd_open): Supply inferior argument to
7356 gdb_bfd_iovec_fileio_open.
7357 * linux-tdep.c (linux_info_proc): Supply inf argument to
7358 relevant target_fileio calls.
7359 (linux_find_memory_regions_full): Likewise.
7360 (linux_fill_prpsinfo): Likewise.
7361 * remote.c (remote_filesystem_is_local): Supply inf
7362 argument to remote_hostio_open.
7363 (remote_file_put): Likewise.
7364 (remote_file_get): Likewise.
7365 (remote_file_delete): Supply inf argument to
7366 remote_hostio_unlink.
7367
12e2a5fd
GB
73682015-06-10 Gary Benson <gbenson@redhat.com>
7369
7370 * inf-child.c (inf_child_fileio_open): Replace comment.
7371 (inf_child_fileio_pwrite): Likewise.
7372 (inf_child_fileio_pread): Likewise.
7373 (inf_child_fileio_fstat): Insert blank line before comment.
7374 (inf_child_fileio_close): Replace comment.
7375 (inf_child_fileio_unlink): Likewise.
7376 (inf_child_fileio_readlink): Likewise.
7377 * remote.c (remote_hostio_open): Likewise.
7378 (remote_hostio_pread): Likewise.
7379 (remote_hostio_pwrite): Likewise.
7380 (remote_hostio_close): Likewise.
7381 (remote_hostio_unlink): Likewise.
7382 (remote_hostio_readlink): Likewise.
7383 (remote_hostio_fstat): Likewise.
7384 (remote_filesystem_is_local): Likewise.
7385 * target.c (target_fileio_open): Likewise.
7386 (target_fileio_pwrite): Likewise.
7387 (target_fileio_pread): Likewise.
7388 (target_fileio_fstat): Insert blank line before comment.
7389 (target_fileio_close): Replace comment.
7390 (target_fileio_unlink): Likewise.
7391 (target_fileio_readlink): Likewise.
7392 (target_fileio_read_alloc): Likewise.
7393 (target_fileio_read_stralloc): Likewise.
7394
9bc3a976
GB
73952015-06-10 Gary Benson <gbenson@redhat.com>
7396
7397 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7398 (check_pid_namespace_match): Use linux_ns_same rather than
7399 linux_proc_pid_get_ns to spot PID namespace mismatches.
7400 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7401 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7402
4b8b5e72
GB
74032015-06-10 Gary Benson <gbenson@redhat.com>
7404
7405 * configure.ac (AC_CHECK_FUNCS): Add setns.
7406 * config.in: Regenerate.
7407 * configure: Likewise.
7408 * nat/linux-namespaces.h: New file.
7409 * nat/linux-namespaces.c: Likewise.
7410 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7411 (linux-namespaces.o): New rule.
7412 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7413 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7414 * config/arm/linux.mh (NATDEPFILES): Likewise.
7415 * config/i386/linux.mh (NATDEPFILES): Likewise.
7416 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7417 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7418 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7419 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7420 * config/mips/linux.mh (NATDEPFILES): Likewise.
7421 * config/pa/linux.mh (NATDEPFILES): Likewise.
7422 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7423 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7424 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7425 * config/s390/linux.mh (NATDEPFILES): Likewise.
7426 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7427 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7428 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7429 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7430
ca095836
GB
74312015-06-10 Gary Benson <gbenson@redhat.com>
7432
7433 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7434 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7435 (make_cleanup_close): Likewise.
7436 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7437 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7438 (make_cleanup_close): Likewise.
7439
5d9c55d3
JT
74402015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7441
7442 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7443 from SuspendThread().
7444
040ea00b
JT
74452015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7446
7447 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7448 from OutputDebugString.
7449
7d73c23c
WT
74502015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7451 Mircea Gherzan <mircea.gherzan@intel.com>
7452
7453 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7454 MPX_BT_MASK_32): New macros.
7455 (i386_mpx_set_bounds): New function that implements
7456 the command "set-mpx-bound".
7457 (i386_mpx_enabled): Helper function to test MPX availability.
7458 (i386_mpx_bd_base): Helper function to calculate the base directory
7459 address.
7460 (i386_mpx_get_bt_entry): Helper function to access a bound
7461 table entry.
7462 (i386_mpx_print_bounds): Effectively display bound information.
7463 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7464 "show mpx".
7465 (_initialize_i386_tdep):
7466 Add "bound" to the commands "show mpx" and "set mpx" commands.
7467 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7468 and "show mpx" commands.
7469 * NEWS: List new commands for MPX support.
7470
3ac2e371
GB
74712015-06-09 Gary Benson <gbenson@redhat.com>
7472
7473 * common/fileio.h (fileio_to_host_mode): New declaration.
7474 * common/fileio.c (fileio_to_host_mode): New Function.
7475 * inf-child.c (inf_child_fileio_open): Process mode argument
7476 with fileio_to_host_mode.
7477
ecef18c5
GB
74782015-06-09 Gary Benson <gbenson@redhat.com>
7479
7480 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7481 conditional.
7482
e3dd7556
GB
74832015-06-05 Gary Benson <gbenson@redhat.com>
7484
7485 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7486 * remote.c (remote_filesystem_is_local): ...here.
7487
5b74bf7d
YQ
74882015-06-04 Yao Qi <yao.qi@linaro.org>
7489
7490 * gdbarch.c: Regenerate it.
7491
7f361056
JK
74922015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7493
7494 * arch-utils.c (default_infcall_munmap): New.
7495 * arch-utils.h (default_infcall_munmap): New declaration.
7496 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7497 (munmap_list_free, munmap_listp_free_cleanup): New.
7498 (struct setup_sections_data): Add field munmap_list_headp.
7499 (setup_sections): Call munmap_list_add.
7500 (compile_object_load): New variable munmap_list_head, initialize
7501 setup_sections_data.munmap_list_headp, return munmap_list_head.
7502 * compile/compile-object-load.h (struct munmap_list): New declaration.
7503 (struct compile_module): Add field munmap_list_head.
7504 (munmap_list_free): New declaration.
7505 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7506 munmap_list_head.
7507 (do_module_cleanup): Call munmap_list_free.
7508 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7509 * gdbarch.c: Regenerate.
7510 * gdbarch.h: Regenerate.
7511 * gdbarch.sh (infcall_munmap): New.
7512 * linux-tdep.c (linux_infcall_munmap): New.
7513 (linux_init_abi): Install it.
7514
3b462ec2
SM
75152015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7516
7517 PR gdb/15564
7518 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7519
8d683210
YQ
75202015-06-02 Yao Qi <yao.qi@linaro.org>
7521
7522 * i386-linux-nat.c: Include linux-nat.h.
7523
e0619de6
JK
75242015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7525 Jan Kratochvil <jan.kratochvil@redhat.com>
7526
7527 PR symtab/18392
7528 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7529 assertion.
7530 * dwarf2loc.c (chain_candidate): Likewise.
7531
bd16da51
YQ
75322015-06-01 Yao Qi <yao.qi@linaro.org>
7533
7534 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7535 (store_vfp_regs): Use PTRACE_SETREGSET.
7536
df9d7ec9
YQ
75372015-06-01 Yao Qi <yao.qi@linaro.org>
7538
7539 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7540 (fetch_fpregs): Likewise.
7541 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7542 (store_fpregs): Likewise.
7543
10766686
YQ
75442015-06-01 Yao Qi <yao.qi@linaro.org>
7545
7546 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7547 (fetch_regs): Likewise.
7548 (store_regs): Use PTRACE_SETREGSET.
7549 (store_register): Likewise.
7550
7efe48d1
YQ
75512015-06-01 Yao Qi <yao.qi@linaro.org>
7552
7553 * arm-linux-nat.c (arm_linux_read_description): Check whether
7554 kernel supports PTRACE_GETREGSET.
7555
433bbbf8
YQ
75562015-06-01 Yao Qi <yao.qi@linaro.org>
7557
7558 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7559 * linux-nat.c: ... here.
7560 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7561 to ...
7562 * linux-nat.h: ... here.
7563
ca9b78ce
YQ
75642015-06-01 Yao Qi <yao.qi@linaro.org>
7565
7566 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7567 * i386-linux-nat.c: Likewise.
7568 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7569 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7570 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7571 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7572 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7573
99cee7b7
EZ
75742015-05-30 Eli Zaretskii <eliz@gnu.org>
7575
7576 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7577 compatible to what read_child and write_child return. This
7578 unbreaks that DJGPP build of GDB which was broken since v7.7.
7579
2147f5bd
MG
75802015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7581
7582 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7583
c8f6c93c
RM
75842015-05-29 Roland McGrath <mcgrathr@google.com>
7585
7586 PR gdb/18464
7587 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7588 rather than internal_error for an unrecognized value.
7589
8c6a948d
MF
75902015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7591
7592 * xtensa-tdep.c (xtensa_pseudo_register_read)
7593 (xtensa_pseudo_register_write): Don't alias last pseudo register
7594 to a1.
7595
8dd06f7a
DB
75962015-05-28 Don Breazeal <donb@codesourcery.com>
7597
7598 * infrun.c (follow_fork_inferior): Ensure the use of
7599 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7600 messages.
7601
a051152b
DE
76022015-05-28 Doug Evans <dje@google.com>
7603
7604 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7605
a56cc1ce
YQ
76062015-05-28 Yao Qi <yao.qi@linaro.org>
7607
7608 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7609 (arm_linux_fetch_inferior_registers): Use
7610 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7611 (arm_linux_store_inferior_registers): Likewise.
7612 (arm_linux_read_description): Don't set
7613 arm_linux_has_wmmx_registers.
7614 * arm-tdep.c (arm_gdbarch_init): Set
7615 tdep->have_wmmx_registers according target descriptions.
7616 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7617 field.
7618
330c6ca9
YQ
76192015-05-28 Yao Qi <yao.qi@linaro.org>
7620
7621 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7622 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7623 instead of arm_linux_vfp_register_count.
7624 (store_vfp_regs): Likewise.
7625 (arm_linux_fetch_inferior_registers): Likewise.
7626 (arm_linux_store_inferior_registers): Likewise.
7627 (arm_linux_read_description): Don't set
7628 arm_linux_vfp_register_count.
7629 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7630 Adjust.
7631 * arm-tdep.c (arm_gdbarch_init): Add assert on
7632 vfp_register_count.
7633 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7634 field to vfp_register_count. All users updated.
7635
d403db27
KH
76362015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7637
7638 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7639 ELFOSABI_GNU binaries.
7640
d9b3de22
DE
76412015-05-27 Doug Evans <dje@google.com>
7642
7643 * dwarf2read.c (lnp_state_machine): New typedef.
7644 (lnp_reader_state): New typedef.
7645 (dwarf_record_line_1): Renamed from dwarf_record_line.
7646 All callers updated.
7647 (dwarf_record_line): New function.
7648 (init_lnp_state_machine): New function.
7649 (check_line_address): Replace p_record_line parameter with state.
7650 All callers updated.
7651 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7652 Update to record state in lnp_state_machine.
7653
924c2928
DE
76542015-05-27 Doug Evans <dje@google.com>
7655
7656 * dwarf2read.c (record_line_ftype): New typedef.
7657 (check_line_address): New function.
7658 (dwarf_decode_lines_1): Call it.
7659
27e0867f
DE
76602015-05-27 Doug Evans <dje@google.com>
7661
7662 * NEWS: Mention "set debug dwarf-line".
7663 * dwarf2read.c (dwarf_line_debug): New static global.
7664 (add_include_dir): Add debug dwarf-line support.
7665 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7666 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7667
4dcabcc2
DE
76682015-05-27 Doug Evans <dje@google.com>
7669
7670 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7671 All callers updated.
7672 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7673 * cp-support.h (cp_lookup_nested_symbol): Update.
7674
b2e2f908
DE
76752015-05-27 Doug Evans <dje@google.com>
7676
7677 PR symtab/18258
7678 * block.c (block_find_symbol): New function.
7679 (block_find_non_opaque_type): Ditto.
7680 (block_find_non_opaque_type_preferred): Ditto.
7681 * block.h (block_symbol_matcher_ftype): New typedef.
7682 (block_find_symbol): Declare.
7683 (block_find_non_opaque_type): Ditto.
7684 (block_find_non_opaque_type_preferred): Ditto.
7685 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7686 * psymtab.c (psym_lookup_symbol): Ditto.
7687 * symtab.c (basic_lookup_transparent_type_1): New function.
7688 (basic_lookup_transparent_type): Call it.
7689
f62fce35
YQ
76902015-05-27 Yao Qi <yao.qi@linaro.org>
7691
7692 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7693 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7694
5d98d3cd
YQ
76952015-05-27 Yao Qi <yao.qi@linaro.org>
7696
7697 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7698 before operator &&.
7699 (aarch64_record_load_store): Likewise.
7700
82c7be31
DE
77012015-05-26 Doug Evans <dje@google.com>
7702
7703 PR c++/18141, c++/18417.
7704 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7705 a typedef.
7706
b4f54984
DE
77072015-05-26 Doug Evans <dje@google.com>
7708
7709 * NEWS: Add entries for command renamings.
7710 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7711 All uses updated.
7712 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7713 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7714 All uses updated.
7715 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7716 All callers updated. Fix spelling of DWARF in help text.
7717 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7718 All uses updated.
7719 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7720 All uses updated.
7721 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7722 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7723 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7724 All uses updated.
7725 (show_dwarf_always_disassemble): Renamed from
7726 show_dwarf2_always_disassemble. All callers updated.
7727 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7728 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7729 "set/show dwarf max-cache-age". Rename
7730 "set/show dwarf2 always-disassemble" to
7731 "set/show dwarf always-disassemble". Rename
7732 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7733 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7734
4ea6efe9
DE
77352015-05-26 Doug Evans <dje@google.com>
7736
7737 PR python/18438
7738 * python/py-lazy-string.c (stpy_convert_to_value): Use
7739 gdbpy_gdb_memory_error not PyExc_MemoryError.
7740 (gdbpy_create_lazy_string_object): Ditto.
7741
b93fd21d
AB
77422015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7743
7744 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7745
55b40027
AB
77462015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7747
7748 * tui/tui-regs.c (tui_reg_prev_command): New function.
7749 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7750 * reggroups.c (reggroup_prev): New function.
7751 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7752
99afc88b
OJ
77532015-05-26 Omair Javaid <omair.javaid@linaro.org>
7754 Yao Qi <yao.qi@linaro.org>
7755
7756 * aarch64-linux-tdep.c: Include linux-record.h and
7757 record-full.h.
7758 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7759 (aarch64_syscall): New enum.
7760 (aarch64_canonicalize_syscall): New function.
7761 (aarch64_all_but_pc_registers_record): New function.
7762 (aarch64_linux_syscall_record): New function.
7763 (aarch64_linux_init_abi): Install AArch64 process record
7764 handler. Update to handle syscall recording.
7765 * aarch64-tdep.c: Include record.h and record-full.h.
7766 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7767 (struct aarch64_mem_r): Define.
7768 (aarch64_record_result): New enum.
7769 (struct insn_decode_record): Define.
7770 (insn_decode_record): New typedef.
7771 (aarch64_record_data_proc_reg): New function.
7772 (aarch64_record_data_proc_imm): New function.
7773 (aarch64_record_branch_except_sys): New function.
7774 (aarch64_record_load_store): New function.
7775 (aarch64_record_data_proc_simd_fp): New function.
7776 (aarch64_record_asimd_load_store): New function.
7777 (aarch64_record_decode_insn_handler): New function.
7778 (deallocate_reg_mem): New function.
7779 (aarch64_process_record): New function.
7780 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7781 New field.
7782 (aarch64_process_record): New extern declaration.
7783 * configure.tgt: Add linux-record.o to gdb_target_obs.
7784 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7785
c16a3f52
OJ
77862015-05-26 Omair Javaid <omair.javaid@linaro.org>
7787
7788 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7789 targets.
7790
c9cf6e20
MG
77912015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7792
7793 * amd64-tdep.c: Replace in_function_epilogue_p with
7794 stack_frame_destroyed_p throughout.
7795 * arch-utils.c: Ditto.
7796 * arch-utils.h: Ditto.
7797 * arm-tdep.c: Ditto.
7798 * breakpoint.c: Ditto.
7799 * gdbarch.sh: Ditto.
7800 * hppa-tdep.c: Ditto.
7801 * i386-tdep.c: Ditto.
7802 * mips-tdep.c: Ditto.
7803 * nios2-tdep.c: Ditto.
7804 * rs6000-tdep.c: Ditto.
7805 * s390-linux-tdep.c: Ditto.
7806 * score-tdep.c: Ditto.
7807 * sh-tdep.c: Ditto.
7808 * sparc-tdep.c: Ditto.
7809 * sparc-tdep.h: Ditto.
7810 * sparc64-tdep.c: Ditto.
7811 * spu-tdep.c: Ditto.
7812 * tic6x-tdep.c: Ditto.
7813 * tilegx-tdep.c: Ditto.
7814 * xstormy16-tdep.c: Ditto.
7815 * gdbarch.c, gdbarch.h: Re-generated.
7816
a4ea0946
AB
78172015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7818
7819 * NEWS: Mention 'tui enable' and 'tui disable'.
7820 * tui/tui.c (tui_enable_command): New function.
7821 (tui_disable_command): New function.
7822 (_initialize_tui): New function.
7823
b75c69bb
AB
78242015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7825
7826 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7827
c1b009ee
AB
78282015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7829
7830 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7831 buf_ptr is freed.
7832
880d1e40
AB
78332015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7834
7835 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7836 into ...
7837 (tui_set_layout_for_display_command): ...here, before calling
7838 tui_set_layout. Only set the layout if gdb has not already
7839 entered the TUI_FAILURE state.
7840
a0145030
AB
78412015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7842
7843 * tui/tui-layout.c (layout_completer): New function.
7844 (_initialize_tui_layout): Set completer on layout command.
7845
7bd0be3a
AB
78462015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7847
7848 * tui/tui-layout.c (tui_set_layout): Remove
7849 tui_register_display_type parameter. Remove all checking of this
7850 parameter, and reindent function. Update header comment.
7851 (tui_set_layout_for_display_command): Rename to...
7852 (tui_set_layout_by_name): ...this, and don't check for different
7853 register class types, don't pass a tui_register_display_type to
7854 tui_set_layout. Update header comment.
7855 (layout_names): Remove register set specific names.
7856 * tui/tui-layout.h (tui_set_layout): Remove
7857 tui_register_display_type parameter.
7858 * tui/tui.c (tui_rl_change_windows): Don't pass a
7859 tui_register_display_type to tui_set_layout.
7860 (tui_rl_delete_other_windows): Likewise.
7861 (tui_enable): Likewise.
7862 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7863 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7864 (TUI_GENERAL_REGS_NAME): Remove.
7865 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7866 (TUI_SPECIAL_REGS_NAME): Remove.
7867 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7868 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7869 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7870 (enum tui_register_display_type): Remove.
7871 (struct tui_layout_def): Remove regs_display_type and
7872 float_regs_display_type fields.
7873 (struct tui_data_info): Remove regs_display_type field.
7874 (tui_layout_command): Use new name for
7875 tui_set_layout_for_display_command.
7876 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7877 (tui_clear_win_detail): Don't initialise removed fields of
7878 win_info.
7879 * tui/tui-regs.c (tui_show_registers): Use new name for
7880 tui_set_layout_for_display_command.
7881 * tui/tui.h (tui_set_layout_for_display_command): Rename
7882 declaration to...
7883 (tui_set_layout_by_name): ...this.
7884 * printcmd.c (display_command): Remove tui related layout call,
7885 and reindent.
7886
0b6e5e10
JB
78872015-05-20 Joel Brobecker <brobecker@adacore.com>
7888
7889 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7890 (handle_inferior_event): New function.
7891
1da0522e
JB
78922015-05-20 Joel Brobecker <brobecker@adacore.com>
7893
7894 * ada-lang.c (to_fixed_array_type): Rename local variable
7895 typename into type_name.
7896
5fe75eec
JK
78972015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7898
7899 Fix ASAN crash for gdb.compile/compile.exp.
7900 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7901
a4063588
JK
79022015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7903
7904 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7905 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7906 * compile/compile-object-load.c (setup_sections, compile_object_load):
7907 Likewise.
7908 * compile/compile.c (compile_to_object): Likewise.
7909
37442ce1
DE
79102015-05-16 Doug Evans <xdje42@gmail.com>
7911
7912 * NEWS: Mention support for unbuffered Guile memory ports.
7913 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7914 (ioscm_lseek_address): Improve overflow calculation.
7915 (gdbscm_memory_port_fill_input): Add assert.
7916 (gdbscm_memory_port_write): Handle unbuffered ports.
7917 Handle large writes identical to Guile's fport_write.
7918 (gdbscm_memory_port_seek): Fix seeking past end check.
7919 (gdbscm_memory_port_close): Handle closing unbuffered port.
7920 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7921 (ioscm_init_memory_port): Handle unbuffered ports.
7922 (ioscm_reinit_memory_port): Ditto.
7923 (ioscm_init_memory_port): Update size calculation.
7924 (gdbscm_open_memory): Support zero sized ports.
7925
d976bace
JK
79262015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7927
7928 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7929 variable compiler warnings.
7930
4d18dfad
JK
79312015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7932
7933 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7934
36de76f9
JK
79352015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7936 Phil Muldoon <pmuldoon@redhat.com>
7937
7938 * NEWS (Changes since GDB 7.9): Add compile print.
7939 * compile/compile-c-support.c (add_code_header, add_code_footer)
7940 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7941 COMPILE_I_PRINT_VALUE_SCOPE.
7942 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7943 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7944 New.
7945 * compile/compile-object-load.c: Include block.h.
7946 (get_out_value_type): New function.
7947 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7948 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7949 OUT_VALUE_TYPE.
7950 * compile/compile-object-load.h (struct compile_module): Add fields
7951 out_value_addr and out_value_type.
7952 * compile/compile-object-run.c: Include valprint.h and compile.h.
7953 (struct do_module_cleanup): Add fields out_value_addr and
7954 out_value_type.
7955 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7956 COMPILE_I_PRINT_VALUE_SCOPE.
7957 (compile_object_run): Propagate out_value_addr and out_value_type.
7958 Pass OUT_VALUE_ADDR.
7959 * compile/compile.c: Include valprint.h.
7960 (compile_print_value, compile_print_command): New functions.
7961 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7962 (_initialize_compile): Update compile code help text. Install
7963 compile_print_command.
7964 * compile/compile.h (compile_print_value): New prototype.
7965 * defs.h (enum compile_i_scope_types): Add
7966 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7967
83d3415e
JK
79682015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7969
7970 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7971 Rely on its parameter count.
7972 (compile_object_load): Replace lookup_minimal_symbol_text by
7973 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7974 return value.
7975 * compile/compile-object-load.h (struct compile_module): Replace
7976 func_addr by func_sym.
7977 * compile/compile-object-run.c: Include block.h.
7978 (compile_object_run): Reset module variable after it is freed. Use
7979 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7980
3a9558c4
JK
79812015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7982
7983 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7984 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7985 (c_compute_program): Call generate_register_struct after typedefs.
7986 * compile/compile-loc2c.c (push, pushf_register_address)
7987 (pushf_register): Cast to GCC_UINTPTR.
7988 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7989 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7990 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7991 * compile/compile.c (_initialize_compile): Enable warnings for
7992 COMPILE_ARGS.
7993
5c65b58a
JK
79942015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7995
7996 * cli/cli-script.c (execute_control_command): Update
7997 eval_compile_command caller.
7998 * compile/compile-object-load.c (compile_object_load): Add parameters
7999 scope and scope_data. Set them.
8000 * compile/compile-object-load.h (struct compile_module): Add fields
8001 scope and scope_data.
8002 (compile_object_load): Add parameters scope and scope_data.
8003 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8004 scope and scope_data.
8005 (compile_object_run): Propagate the fields scope and scope_data.
8006 * compile/compile.c (compile_file_command, compile_code_command):
8007 Update eval_compile_command callers.
8008 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8009 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8010 * defs.h (struct command_line): Add field scope_data.
8011
1c88ceb1
JK
80122015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8013
8014 * printcmd.c (struct format_data): Move it to valprint.h.
8015 (print_command_parse_format, print_value): New functions from ...
8016 (print_command_1): ... here. Call them.
8017 * valprint.h (struct format_data): Move it here from printcmd.c.
8018 (print_command_parse_format, print_value): New declarations.
8019
0b738f27
JK
80202015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8021
8022 * compile/compile-object-load.c (compile_object_load): Add
8023 COMPILE_DEBUG message.
8024
aa715135
JG
80252015-05-15 Jerome Guitton <guitton@adacore.com>
8026
8027 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8028 index to get element instead of enum value.
8029 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8030 of index to compute length, but enum values to compute bounds.
8031 (ada_array_length): Use enum position of index instead of enum value.
8032 (pos_atr): Move position computation to...
8033 (ada_evaluate_subexp): Use enum values to compute bounds.
8034 * gdbtypes.c (discrete_position): ...this new function.
8035 * gdbtypes.h (discrete_position): New function declaration.
8036 * valprint.c (val_print_array_elements): Call discrete_position
8037 to handle array indexed by non-contiguous enumeration types.
8038
931e5bc3
JG
80392015-05-15 Jerome Guitton <guitton@adacore.com>
8040
8041 * ada-lang.c (find_parallel_type_by_descriptive_type):
8042 Go through typedefs during lookup.
8043 (to_fixed_array_type): Add support for non-bit packed arrays
8044 as variable-length fields.
8045
4e63d0ac
PA
80462015-05-15 Pedro Alves <palves@redhat.com>
8047 Simon Marchi <simon.marchi@ericsson.com>
8048
8049 * event-loop.c (gdb_notifier) <next_file_handler,
8050 next_poll_fds_index>: New fields.
8051 (get_next_file_handler_to_handle_and_advance): New function.
8052 (delete_file_handler): If deleting the next file handler to
8053 handle, advance to the next file handler.
8054 (gdb_wait_for_event): Bail early if no event fired. Poll file
8055 handlers in round-robin fashion.
8056
52e48b36
PA
80572015-05-15 Pedro Alves <palves@redhat.com>
8058
8059 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8060 'private' to 'priv'.
8061
2465e12e
PA
80622015-05-15 Pedro Alves <palves@redhat.com>
8063
8064 * nat/linux-nat.h: Include "target/waitstatus.h".
8065
13fa0398
YZ
80662015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8067
8068 * python/py-unwind.c (struct reg_info): Move out of ...
8069 (struct cached_frame_info): ... this scope.
8070 (pending_frame_object_type, unwind_info_object_type): Make extern.
8071
9cd4d857
JB
80722015-05-15 Joel Brobecker <brobecker@adacore.com>
8073
8074 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8075 accumSize is never negative.
8076
e3555239
PP
80772015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8078
8079 * tui/tui-command.c: Remove include of <ctype.h>.
8080 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8081
08a76f8a
MG
80822015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8083
8084 * dwarf2read.c (die_needs_namespace): Return 1 for
8085 DW_TAG_inlined_subroutine.
8086
bd49952b
JK
80872015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8088
8089 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8090 (regcache_cpy_no_passthrough): Make it static, add function comment.
8091 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8092 (regcache_cpy_no_passthrough): Remove declaration.
8093
46c03469
JK
80942015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8095
8096 * gdbthread.h (struct thread_control_state): Update comment for
8097 proceed_to_finish.
8098 * infcall.c (run_inferior_call): Update comment about
8099 proceed_to_finish.
8100 * infcmd.c (get_return_value): Update comment about stop_registers.
8101 (finish_forward): Update comment about proceed_to_finish.
8102 * infrun.c (stop_registers): Remove.
8103 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8104 * infrun.h (stop_registers): Remove.
8105
8a6c4031
JK
81062015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8107
8108 * infcall.c (struct dummy_frame_context_saver)
8109 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8110 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8111 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8112 New.
8113 (call_function_by_hand_dummy): Move discard_cleanups of
8114 inf_status_cleanup before dummy_frame_push. Call
8115 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8116 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8117 * infcall.h (struct dummy_frame_context_saver)
8118 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8119 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8120 New declarations.
8121 * infcmd.c: Include infcall.h.
8122 (get_return_value): Add parameter ctx_saver, use it instead of
8123 stop_registers.
8124 (print_return_value): Add parameter ctx_saver, pass it.
8125 (struct finish_command_continuation_args): Add field ctx_saver.
8126 (finish_command_continuation): Update print_return_value caller.
8127 (finish_command_continuation_free_arg): Free also ctx_saver.
8128 (finish_forward): Call dummy_frame_context_saver_setup.
8129 * inferior.h (struct dummy_frame_context_saver): New declaration.
8130 (get_return_value): Add parameter ctx_saver.
8131 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8132 get_return_value caller.
8133
10989690
JK
81342015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8135
8136 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8137 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8138 (remove_dummy_frame): Process dtor_list.
8139 (pop_dummy_frame): Process dtor_list.
8140 (register_dummy_frame_dtor): Maintain dtor_list.
8141 (find_dummy_frame_dtor): Handle dtor_list.
8142 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8143 Update comments.
8144
5e970501
JK
81452015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8146
8147 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8148 registers_valid.
8149 (compile_object_run): Update do_module_cleanup caller.
8150 * dummy-frame.c: Include infcall.h.
8151 (struct dummy_frame): Update dtor comment.
8152 (remove_dummy_frame): Call dtor.
8153 (pop_dummy_frame): Update dtor caller.
8154 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8155 registers_valid.
8156
1c4eb778
JB
81572015-05-13 Joel Brobecker <brobecker@adacore.com>
8158
8159 GDB 7.9.1 released.
8160
f5f85ab9
JB
81612015-05-13 Joel Brobecker <brobecker@adacore.com>
8162
8163 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8164 Xmethods now being able to specify a result type to that new
8165 sectioin.
8166
242cd84c
PP
81672015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8168
8169 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8170 first before resizing the window.
e3555239 8171 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
8172
81732015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
8174
8175 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8176 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8177 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8178 dummy_dtor parameter.
8179 * infcall.h: Include dummy-frame.h.
8180 (call_function_by_hand_dummy_dtor_ftype): Remove.
8181 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8182 parameter.
8183
ebfd00d2
PP
81842015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8185
8186 PR gdb/17820
8187 * top.c (history_size_setshow_var): Change type to signed.
8188 Initialize to -2. Update documentation.
8189 (set_readline_history_size): Define.
8190 (set_history_size_command): Use it. Remove logic for handling
8191 out-of-range sizes.
8192 (init_history): Use set_readline_history_size(). Test for a
8193 value of -2 instead of 0 when determining whether to set a
8194 default history size.
8195 (init_main): Decode the argument of the "size" command as a
8196 zuinteger_unlimited.
8197
83769d0b
DE
81982015-05-12 Doug Evans <dje@google.com>
8199
8200 * dwarf2read.c (struct file_entry): Tweak comments.
8201 (get_debug_line_section): Tweak comments.
8202
0d71eef5
DB
82032015-05-12 Don Breazeal <donb@codesourcery.com>
8204
8205 * NEWS: Announce fork support in the RSP and support
8206 for fork debugging in extended mode.
8207
cbb8991c
DB
82082015-05-12 Don Breazeal <donb@codesourcery.com>
8209
8210 * remote.c (remote_insert_fork_catchpoint): New function.
8211 (remote_remove_fork_catchpoint): New function.
8212 (remote_insert_vfork_catchpoint): New function.
8213 (remote_remove_vfork_catchpoint): New function.
8214 (pending_fork_parent_callback): New function.
8215 (remove_new_fork_child): New function.
8216 (remote_update_thread_list): Call remote_notif_get_pending_events
8217 and remove_new_fork_child.
8218 (extended_remote_kill): Kill fork child when killing the
8219 parent before follow_fork completes.
8220 (init_extended_remote_ops): Initialize target vector with
8221 new fork catchpoint functions.
8222
c269dbdb
DB
82232015-05-12 Don Breazeal <donb@codesourcery.com>
8224
8225 * remote.c (remove_vfork_event_p): New function.
8226 (remote_follow_fork): Add vfork event type to event checking.
8227 (remote_parse_stop_reply): New stop reasons "vfork" and
8228 "vforkdone" for RSP 'T' Stop Reply Packet.
8229
de0d863e
DB
82302015-05-12 Don Breazeal <donb@codesourcery.com>
8231
8232 * linux-nat.c (linux_nat_ptrace_options): New function.
8233 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8234 Call linux_nat_ptrace_options and use different argument to
8235 linux_enable_event_reporting.
8236 (_initialize_linux_nat): Delete call to
8237 linux_ptrace_set_additional_flags.
c8f6c93c 8238 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
8239 supported_ptrace_options.
8240 (additional_flags): Delete variable.
8241 (linux_check_ptrace_features): Use supported_ptrace_options.
8242 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8243 Likewise, and remove additional_flags check.
8244 (linux_enable_event_reporting): Change 'attached' argument to
8245 'options'. Use supported_ptrace_options.
c8f6c93c 8246 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
8247 supported_ptrace_options.
8248 (linux_ptrace_set_additional_flags): Delete function.
8249 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8250 Delete function prototype.
8251 * remote.c (remote_fork_event_p): New function.
8252 (remote_detach_pid): New function.
8253 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8254 if doing detach-on-fork.
8255 (remote_follow_fork): New function.
8256 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8257 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8258 (init_extended_remote_ops): Initialize to_follow_fork.
8259
89245bc0
DB
82602015-05-12 Don Breazeal <donb@codesourcery.com>
8261
8262 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8263 from static to extern.
8264 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8265 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8266 * PACKET_vfork_event_feature>: New enumeration constants.
8267 (remote_protocol_features): Add table entries for new packets.
8268 (remote_query_supported): Add new feature queries to qSupported
8269 packet.
8270
835205d0
GB
82712015-05-12 Gary Benson <gbenson@redhat.com>
8272
8273 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8274 for fake PIDs as well as real ones.
8275 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8276
4c082a81
SC
82772015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8278
8279 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8280 * python/py-value.c (valpy_reference_value): New function.
8281 (valpy_const_value): Likewise.
8282 (value_object_methods): Add new methods.
8283 * value.c (make_cv_value): New function.
8284 * value.h (make_cv_value): Declare.
8285
afa6c9ab
SL
82862015-05-08 Yao Qi <yao@codesourcery.com>
8287 Sandra Loosemore <sandra@codesourcery.com>
8288
8289 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8290 to 'lh->include_dirs' before accessing to it.
8291 (psymtab_include_file_name): Likewise.
8292 (dwarf_decode_lines_1): Likewise.
8293 (dwarf_decode_lines): Likewise.
8294 (file_file_name): Likewise.
8295
35d54293
SL
82962015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8297
8298 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8299 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8300 (nios2_linux_rt_sigreturn_init): Adjust base address of
8301 register save area.
8302
b73c49b7
SL
83032015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8304
8305 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8306 "trap 31" as the breakpoint instruction on all targets.
8307
dd9f02a0
JK
83082015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8309
8310 * infcmd.c (print_return_value): Remove unused declaration.
8311
6ad395a7
JB
83122015-05-08 Joel Brobecker <brobecker@adacore.com>
8313
8314 * dwarf2read.c (attr_to_dynamic_prop)
8315 <DW_AT_data_member_location>: Use read_type_die isntead of
8316 get_die_type.
8317
8344af1e
JB
83182015-05-08 Joel Brobecker <brobecker@adacore.com>
8319
8320 * ada-lang.c (ada_convert_actual): Add handling of formals
8321 passed inside an aligner type.
8322
80b0912b
JB
83232015-05-08 Joel Brobecker <brobecker@adacore.com>
8324
8325 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8326
df2eb078
SC
83272015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8328
8329 PR python/18291
8330 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8331 Print xmethod matcher status.
8332
2492f0d0
AA
83332015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8334
8335 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8336 register in the regcache when treating the PSWM register, and vice
8337 versa.
8338
1c56a84d
GB
83392015-05-07 Gary Benson <gbenson@redhat.com>
8340
8341 * linux-thread-db.c (struct thread_db_info)
8342 <td_ta_map_id2thr_p>: Remove field.
8343 (try_thread_db_load_1): Remove initialization for the above.
8344
74850322
GB
83452015-05-07 Gary Benson <gbenson@redhat.com>
8346
8347 * linux-thread-db.c (struct thread_db_info)
8348 <td_thr_validate_p>: Remove field.
8349 (try_thread_db_load_1): Remove initialization for the above.
8350
e26efa40
JK
83512015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8352
8353 * compile/compile-object-load.c (compile_object_load): Support
8354 mst_text_gnu_ifunc.
8355
851c9091
JK
83562015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8357
8358 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8359 const. Use new variables for the const compatibility.
8360 (eval_compile_command): Make the cmd_string parameter const.
8361 * compile/compile.h (eval_compile_command): Make the cmd_string
8362 parameter const.
8363
f218b647
JB
83642015-05-06 Joel Brobecker <brobecker@adacore.com>
8365
8366 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8367 comment.
8368 * top.c (deprecated_init_ui_hook): Delete.
8369 (gdb_init): Remove handling of deprecated_init_ui_hook.
8370 * interps.c (clear_interpreter_hooks): Remove handling of
8371 deprecated_init_ui_hook.
8372 * main.c (captured_main): Update comment.
8373
b30a0bc3
JB
83742015-05-06 Joel Brobecker <brobecker@adacore.com>
8375
8376 * solib.c (_initialize_solib): Add "info dll" alias creation.
8377 * windows-nat.c (set_windows_aliases): Delete.
8378 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8379 assignment.
8380 * NEWS: Add news entry about "info dll" now being available
8381 on all platforms.
8382
7c512744
JB
83832015-05-05 Joel Brobecker <brobecker@adacore.com>
8384
8385 * ada-lang.c (value_assign_to_component): Reformat and improve
8386 documentation. Remove all trailing spaces.
8387
0fa7fe50
JB
83882015-05-05 Joel Brobecker <brobecker@adacore.com>
8389
8390 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8391 Stop counting inlined frames as soon as an out-of-line function
8392 is found.
8393
3ea89b92
PMR
83942014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8395
8396 * dwarf2read.c (inherit_abstract_dies): Skip
8397 DW_TAG_GNU_call_site dies while inheriting children of an
8398 abstract DIE into a scope.
8399 (read_lexical_block_scope): Inherit abstract DIE's for
8400 lexical scopes.
8401
2478d075
JB
84022015-05-05 Joel Brobecker <brobecker@adacore.com>
8403
8404 * ada-valprint.c (val_print_packed_array_elements): Delete
8405 variable "len". Add a type-length check when comparing two
8406 consecutive elements of the array. Use the element's actual
8407 length in call to value_contents_eq.
8408 * ada-lang.c (ada_value_primitive_packed_val): Always return
8409 a value whose type has been resolved.
8410
fc958966
JB
84112015-05-05 Joel Brobecker <brobecker@adacore.com>
8412
8413 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8414 BIT_SIZE and LEN if the size of the resolved type is smaller
8415 than BIT_SIZE * HOST_CHAR_BIT.
8416
ca34b84f
JB
84172015-05-05 Joel Brobecker <brobecker@adacore.com>
8418
8419 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8420 correct address in call to value_at. Adjust call to
8421 value_address accordingly.
8422
62c67f3c
JB
84232015-05-05 Joel Brobecker <brobecker@adacore.com>
8424
8425 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8426 to print it.
8427
c3345124
JB
84282015-05-05 Joel Brobecker <brobecker@adacore.com>
8429
8430 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8431 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8432 pinfo->valaddr.
8433 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8434 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8435 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8436 Add handling of addr_stack->valaddr.
8437 (resolve_dynamic_type): Add "valaddr" parameter.
8438 Set pinfo.valaddr field.
8439 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8440 resolve_dynamic_type.
8441 (ada_discrete_type_low_bound): Likewise.
8442 * findvar.c (default_read_var_value): Likewise.
8443 * value.c (value_from_contents_and_address): Likewise.
8444
75ea5859
JB
84452015-05-05 Joel Brobecker <brobecker@adacore.com>
8446
8447 * gdbtypes.c (resolve_dynamic_array): Use
8448 create_array_type_with_stride instead of create_array_type.
8449
0952813b
DD
84502015-04-30 DJ Delorie <dj@redhat.com>
8451
8452 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8453 rl78_decode_opcode
8454
2ce1cdbf
DE
84552015-04-29 Doug Evans <dje@google.com>
8456
8457 PR python/18285
8458 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8459 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8460 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8461 * extension-priv.h (struct extension_language_ops)
8462 <get_xmethod_result_type>: New member.
8463 * extension.c (get_xmethod_result_type): New function.
8464 * extension.h (get_xmethod_result_type): Declare.
8465 * python/py-xmethods.c (get_result_type_method_name): New static
8466 global.
8467 (py_get_result_type_method_name): Ditto.
8468 (gdbpy_get_xmethod_result_type): New function.
8469 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8470 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8471 * python/python.c (python_extension_ops): Add
8472 gdbpy_get_xmethod_result_type.
8473 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8474 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8475 xmethods.
8476 (value_x_unop): Ditto.
8477 * value.c (result_type_of_xmethod): New function.
8478 * value.h (result_type_of_xmethod): Declare.
8479
998d2a3e
GB
84802015-04-29 Gary Benson <gbenson@redhat.com>
8481
8482 * solib.c (solib_find_1): Allow fd argument to be NULL.
8483 (exec_file_find): Update comment.
8484 (solib_find): Likewise.
8485 * exec.c (exec_file_locate_attach): Use NULL as fd
8486 argument to exec_file_find to avoid having to close
8487 the opened file.
8488 * infrun.c (follow_exec): Likewise.
8489
34f5f757
DE
84902015-04-28 Doug Evans <dje@google.com>
8491
8492 PR python/18299
8493 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8494 name or __name__ attributes. Handle gdb module as first argument.
8495
69b4374a
DE
84962015-04-28 Doug Evans <dje@google.com>
8497
8498 PR python/18089
8499 * python/py-prettyprint.c (print_children): Verify result of children
8500 iterator. Provide better error message.
8501 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8502 * python/python.c (gdbpy_print_python_errors_p): New function.
8503
5e7cf078
DE
85042015-04-28 Doug Evans <dje@google.com>
8505
8506 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8507
59fb7612
SS
85082015-04-28 Sasha Smundak <asmundak@google.com>
8509
8510 * NEWS: Mention gdb.Type.optimized_out method.
8511 * python/py-type.c (typy_optimized_out): New function.
8512
cea6e4f1
JB
85132015-04-28 John Baldwin <jhb@FreeBSD.org>
8514
8515 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8516
24b73f8e
PP
85172015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8518
8519 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8520 (initialize_utils): Move call of init_page_info() to ...
8521 * top.c (gdb_init): ... here.
8522
a88d0bb3
PP
85232015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8524
8525 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8526 (tui_sigwinch_handler): Still update our idea of
8527 the terminal's width and height even when TUI is not active.
8528
d6e5e7f7
PP
85292015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8530
8531 * utils.h (set_screen_width_and_height): Declare.
8532 * utils.c (set_screen_width_and_height): Define.
8533 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8534
ff862be4
GB
85352015-04-28 Gary Benson <gbenson@redhat.com>
8536
8537 * infrun.c (solist.h): New include.
8538 (follow_exec): Use exec_file_find to prefix execd_pathname
8539 with gdb_sysroot.
8540
2eb639cb
PP
85412015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8542
8543 * tui/tui-source.c (tui_set_source_content): Avoid calling
8544 strcpy() when offset is 0.
8545
97206799
PP
85462015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8547
8548 PR gdb/18155
8549 * tui/tui-data.c (tui_free_window): Don't free the locator
8550 window when passed an SRC_WIN or a DISASSEM_WIN.
8551
63ed8182
PP
85522015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8553
8554 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8555 (tui_win_content): Move declaration.
8556 (struct tui_gen_win_info): Give 'content' field the
8557 type tui_win_content.
8558 * tui/tui-data.c (init_content_element): Remove redundant and
8559 erroneous casts.
8560 (tui_add_content_elements): Remove erroneous cast.
8561 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8562 casts.
8563 (tui_get_begin_asm_address): Likewise.
8564 * tui/tui-regs.c (tui_show_registers): Likewise.
8565 (tui_show_register_group): Likewise.
8566 (tui_display_registers_from): Likewise.
8567 (tui_check_register_values): Likewise.
8568 * tui/tui-source.c (tui_set_source_content): Likewise.
8569 (tui_set_source_content_nil): Likewise.
8570 (tui_source_is_displayed): Likewise.
8571 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8572 (tui_set_locator_fullname): Likewise.
8573 (tui_set_locator_info): Likewise.
8574 (tui_show_frame_info): Likewise.
8575 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8576 (tui_show_source_line): Likewise.
8577 (tui_horizontal_source_scroll): Likewise.
8578 (tui_update_breakpoint_info): Likewise.
8579 (tui_set_exec_info_content): Likewise.
8580 (tui_show_exec_info_content): Likewise.
8581 (tui_alloc_source_buffer): Likewise.
8582 (tui_line_is_displayed): Likewise.
8583 (tui_addr_is_displayed): Likewise.
8584
d2b41ca0
JB
85852015-04-27 John Baldwin <jhb@FreeBSD.org>
8586
8587 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8588 event if PL_FLAG_EXEC is set.
8589 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8590 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8591 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8592 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8593 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8594
e58e05d6
JB
85952015-04-27 John Baldwin <jhb@FreeBSD.org>
8596
8597 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8598 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8599 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8600 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8601 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8602 [PT_LWPINFO] (fbsd_wait): New function.
8603 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8604 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8605 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8606 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8607 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8608 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8609 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8610 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8611 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8612 "fbsd_wait".
8613 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8614 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8615 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8616 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8617 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8618 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8619 Set "to_post_attach" to "fbsd_post_attach".
8620
8f60fe01
JB
86212015-04-27 John Baldwin <jhb@FreeBSD.org>
8622
8623 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8624 (fbsd_find_memory_regions): Mark static.
8625 (fbsd_nat_add_target): New function.
8626 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8627 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8628 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8629 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8630 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8631 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8632
5fbae7d1
GB
86332015-04-27 Gary Benson <gbenson@redhat.com>
8634
8635 * objfiles.c (allocate_objfile): Do not attempt to expand name
8636 if name is a "target:" filename.
8637 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8638 to load auto-load scripts for objfiles with "target:" filenames.
8639
417c80f9
AA
86402015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8641
8642 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8643 (enum s390_vector_abi_kind): New enum.
8644 (struct gdbarch_tdep)<vector_abi>: New field.
8645 (s390_effective_inner_type): Add parameter min_size. Stop
8646 unwrapping if the inner type is smaller than min_size.
8647 (s390_function_arg_float): Adjust call to
8648 s390_effective_inner_type.
8649 (s390_function_arg_vector): New function.
8650 (s390_function_arg_integer): Adjust comment.
8651 (struct s390_arg_state)<vr>: New field.
8652 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8653 arguments according to vector ABI when appropriate.
8654 (s390_push_dummy_call): Initialize the argument state's field
8655 'vr'. Adjust calls to s390_handle_arg.
8656 (s390_register_return_value): Handle vector return values.
8657 (s390_return_value): Apply the "register" return value convention
8658 to a vector when appropriate.
8659 (s390_gdbarch_init): Initialize tdep->vector_abi.
8660 * NEWS: Announce S390 vector ABI support.
8661
4e65a17e
AA
86622015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8663
8664 * s390-linux-tdep.c (s390_return_value_convention): Remove
8665 function. Inline its logic...
8666 (s390_return_value): ...here. Instead, move the handling of the
8667 "register" return value convention...
8668 (s390_register_return_value): ...here. New function.
8669
80f75320
AA
86702015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8671
8672 * s390-linux-tdep.c
8673 (is_float_singleton): Remove function. Move the "singleton" part
8674 of the logic...
8675 (s390_effective_inner_type): ...here. New function.
8676 (is_float_like): Remove function. Inline its logic...
8677 (s390_function_arg_float): ...here.
8678 (is_pointer_like, is_integer_like, is_struct_like): Remove
8679 functions. Inline their logic...
8680 (s390_function_arg_integer): ...here.
8681 (s390_function_arg_pass_by_reference): Remove function.
8682 (extend_simple_arg): Remove function.
8683 (alignment_of): Remove function.
8684 (struct s390_arg_state): New structure.
8685 (s390_handle_arg): New function.
8686 (s390_push_dummy_call): Move parameter placement logic to the new
8687 function s390_handle_arg. Call it for calculating the stack area
8688 sizes first, and again for actually writing the parameters.
8689
6dbc9c04
AA
86902015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8691
8692 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8693 false if the argument is zero.
8694
9e195661
PMR
86952015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8696
8697 * ada-lang.c (template_to_static_fixed_type): Return input type
8698 when it is already fixed. Cache the input type itself when not
8699 creating a static fixed copy. Make it explicit that we never
8700 molestate the input type.
8701 * gdbtypes.c (resolve_dynamic_struct): Reset the
8702 TYPE_TARGET_TYPE field for resolved copies.
8703
460efde1
JB
87042015-04-27 Joel Brobecker <brobecker@adacore.com>
8705
8706 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8707 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8708 (template_to_static_fixed_type): Call ada_check_typedef only
8709 when necessary.
8710
6faec16b
AB
87112015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8712
8713 * cli/cli-dump.c (srec_dump_command): Add internationalization
8714 mark ups.
8715 (ihex_dump_command): Likewise.
8716 (tekhex_dump_command): Likewise.
8717 (binary_dump_command): Likewise.
8718 (binary_append_command): Likewise.
8719
cf75d6c3
AB
87202015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8721
8722 * cli/cli-dump.c (verilog_cmdlist): New variable.
8723 (dump_verilog_memory): New function.
8724 (dump_verilog_value): New function.
8725 (verilog_dump_command): New function.
8726 (_initialize_cli_dump): Add new commands to support verilog dump
8727 format.
8728 * NEWS: Add entry for "dump verilog".
8729
8cd00c59
PMR
87302015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8731
8732 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8733 descriptive type when there is none.
8734
8900d71e
PP
87352015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8736
8737 * tui/tui-win.c (tui_async_resize_screen): Call
8738 rl_resize_terminal().
8739
f16eab5f
JT
87402015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8741
8742 * windows-nat.c (handle_output_debug_string): Don't change
8743 current_event.dwThreadId.
8744 (get_windows_debug_event): Use thread_id, rather than relying on
8745 current_event.dwThreadId being changed.
8746
68ffc902
JT
87472015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8748
8749 * windows-nat.c (windows_continue): Report an error if
8750 ContinueDebugEvent() fails.
8751
23942819
JT
87522015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8753
8754 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8755
e6ad66bd
JT
87562015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8757
8758 * windows-nat.c (get_windows_debug_event): Replace retval with
8759 thread_id throughout. Update stale comment.
8760
776704b9
JT
87612015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8762
8763 * windows-nat.c (get_windows_debug_event): Don't use ternary
8764 conditional operator.
8765
8aae4344
PM
87662015-04-21 Pierre Muller <muller@sourceware.org>
8767
8768 PR pascal/17815
8769 p-exp.y (yylex): Reorganize code to return the matched pattern
8770 for a field of this.
8771
819843c7
GB
87722015-04-21 Gary Benson <gbenson@redhat.com>
8773
8774 * common/fileio.h (fileio_to_host_openflags): New declaration.
8775 * common/fileio.c (fcntl.h): New include.
8776 (fileio_to_host_openflags): New function, factored out from...
8777 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8778 Single use updated.
8779
0bca7f99
KB
87802015-04-21 Kevin Buettner <kevinb@redhat.com>
8781
8782 * rl78-tdep.c (RL78_SP_ADDR): Define.
8783 (opc_reg_to_gdb_regnum): New static function.
8784 (rl78_analyze_prologue): Recognize instructions forming slightly
8785 more interesting prologues.
8786
e771e4be
PMR
87872015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8788
8789 Revert:
8790 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8791 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8792 TYPE_CODE_REF types so that they are not considered as dynamic
8793 depending on the referenced type.
8794 (resolve_dynamic_type_internal): Likewise.
8795
ee715b5a
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 the unused
8801 "top_level" parameter.
8802 (resolve_dynamic_type_internal): Remove the unused "top_level"
8803 parameter. Update call to is_dynamic_type_internal.
8804 (is_dynamic_type): Update call to is_dynamic_type_internal.
8805 (resolve_dynamic_range): Update call to
8806 resolve_dynamic_type_internal.
8807 (resolve_dynamic_union): Likewise.
8808 (resolve_dynamic_struct): Likewise.
8809 (resolve_dynamic_type): Likewise.
8810
e31d7699
GKB
88112015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8812
8813 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8814 xmalloc.
8815
d214e5e7
TS
88162015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8817
110f9112
TS
8818 * reply_mig_hack.awk: Robustify parsing.
8819
d214e5e7
TS
8820 * reply_mig_hack.awk: Don't bother to declare an intermediate
8821 function pointer variable.
8822
8f61baf8
DE
88232015-04-17 Doug Evans <dje@google.com>
8824
8825 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8826 to "exec_displacement" to avoid confusion with inner use of the name.
8827
dbbf180a
YQ
88282015-04-17 Pedro Alves <palves@redhat.com>
8829
8830 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8831 if HW point of TYPE isn't supported.
8832
059790a0
YQ
88332015-04-17 Yao Qi <yao.qi@linaro.org>
8834 Pedro Alves <palves@redhat.com>
8835
8836 * target.h (target_can_use_hardware_watchpoint): Update comments.
8837 Remove trailing ";".
8838
1b6e6f5c
GB
88392015-04-17 Gary Benson <gbenson@redhat.com>
8840
8841 * remote.c (remote_add_inferior): New argument try_open_exec.
8842 If nonzero, attempt to open the inferior's executable file as
8843 the main executable if no main executable is open already.
8844 All callers updated.
8845 * NEWS: Mention that GDB now supports automatic location and
8846 retrieval of executable + files from remote targets.
8847
c78fa86a
GB
88482015-04-17 Gary Benson <gbenson@redhat.com>
8849
8850 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8851 * remote.c (PACKET_qXfer_exec_file): Likewise.
8852 (remote_protocol_features): Register the
8853 "qXfer:exec-file:read" feature.
8854 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8855 (remote_pid_to_exec_file): New function.
8856 (init_remote_ops): Initialize to_pid_to_exec_file.
8857 (_initialize_remote): Register new "set/show remote
8858 pid-to-exec-file-packet" command.
8859 * NEWS: Announce new qXfer:exec-file:read packet.
8860
e0d86d2c
GB
88612015-04-17 Gary Benson <gbenson@redhat.com>
8862
8863 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8864 New declaration.
8865 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8866 New function, factored out from...
8867 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8868
a9a5a3d1
GB
88692015-04-17 Gary Benson <gbenson@redhat.com>
8870
8871 * exec.c (solist.h): New include.
8872 (exec_file_locate_attach): Prefix absolute executable
8873 paths with gdb_sysroot if set.
8874 * NEWS: Mention that executable paths may be prepended
8875 with sysroot.
8876
af1900b0
GB
88772015-04-17 Gary Benson <gbenson@redhat.com>
8878
8879 * solist.h (exec_file_find): New declaration.
8880 * solib.c (solib_find_1): New function, factored out from...
8881 (solib_find): ...here.
8882 (exec_file_find): New function.
8883
a10de604
GB
88842015-04-17 Gary Benson <gbenson@redhat.com>
8885
8886 * gdbcore.h (exec_file_locate_attach): New declaration.
8887 * exec.c (exec_file_locate_attach): New function, factored
8888 out from...
8889 * infcmd.c (attach_command_post_wait): ...here.
8890
92209ddf
MF
88912015-04-17 Mike Frysinger <vapier@gentoo.org>
8892
8893 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8894
8550d3b3
YQ
88952015-04-16 Yao Qi <yao.qi@linaro.org>
8896
8897 * infrun.c (maybe_software_singlestep): Declare.
8898 (displaced_step_fixup): Call maybe_software_singlestep.
8899
30b3dd9d
DE
89002015-04-15 Doug Evans <dje@google.com>
8901
8902 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8903
61d96d7e
DE
89042015-04-15 Doug Evans <dje@google.com>
8905
8906 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8907
40d2f8d6
SM
89082015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8909
8910 * python/lib/gdb/command/unwinders.py: Add parentheses.
8911
6bbbba9b
YQ
89122015-04-15 Yao Qi <yao.qi@linaro.org>
8913
8914 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8915
2bb2dcab
YQ
89162015-04-15 Yao Qi <yao.qi@linaro.org>
8917
8918 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8919
41f071ef
YQ
89202015-04-15 Yao Qi <yao.qi@linaro.org>
8921
8922 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8923 dsc->insn_size instead of 4.
8924
326a5c7e
GB
89252015-04-14 Gary Benson <gbenson@redhat.com>
8926
8927 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8928 * minidebug.c (lzma_stat): Likewise.
8929 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8930 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8931
dd177e81
SS
89322015-04-13 Stan Shebs <stanshebs@google.com>
8933
8934 * MAINTAINERS: Update my email address.
8935
97de3545
JB
89362015-04-13 John Baldwin <jhb@FreeBSD.org>
8937
8938 * amd64-tdep.c (amd64_target_description): New function.
8939 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8940 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8941 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8942 x86 extended save area.
8943 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8944 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8945 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8946 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8947 "amd64fbsd_read_description".
8948 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8949 (amd64fbsd_supply_xstateregset): New function.
8950 (amd64fbsd_collect_xstateregset): New function.
8951 Add "amd64fbsd_xstateregset".
8952 (amd64fbsd_iterate_over_regset_sections): New function.
8953 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8954 "I386_FBSD_XSAVE_XCR0_OFFSET".
8955 Add "iterate_over_regset_sections" gdbarch method.
8956 Add "core_read_description" gdbarch method.
8957 * i386-tdep.c (i386_target_description): New function.
8958 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8959 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8960 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8961 x86 extended save area.
8962 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8963 * i386bsd-nat.h: Export i386bsd_xsave_len.
8964 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8965 (_initialize_i386fbsd_nat): Set "to_read_description" to
8966 "i386fbsd_read_description".
8967 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8968 (i386fbsd_core_read_description): New function.
8969 (i386fbsd_supply_xstateregset): New function.
8970 (i386fbsd_collect_xstateregset): New function.
8971 Add "i386fbsd_xstateregset".
8972 (i386fbsd_iterate_over_regset_sections): New function.
8973 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8974 "I386_FBSD_XSAVE_XCR0_OFFSET".
8975 Add "iterate_over_regset_sections" gdbarch method.
8976 Add "core_read_description" gdbarch method.
8977 * i386fbsd-tdep.h: New file.
8978
4f45d445
JK
89792015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8980
8981 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8982 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8983 conditional.
8984 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8985 and lb.
8986 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8987 va.
8988 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8989 conditional.
8990 * defs.h (xdb_commands): Remove declaration.
8991 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8992 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8993 * infcmd.c (run_no_args_command, go_command): Remove.
8994 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8995 * infrun.c (xdb_handle_command): Remove.
8996 (_initialize_infrun): Remove xdb_commands for lz and z.
8997 * main.c (xdb_commands): Remove variable.
8998 (captured_main): Remove "xdb" from long_options.
8999 (print_gdb_help): Remove --xdb from help.
9000 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9001 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9002 * stack.c (backtrace_full_command, args_plus_locals_info)
9003 (current_frame_command): Remove.
9004 (_initialize_stack): Remove xdb_commands for t, T and l.
9005 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9006 * thread.c (_initialize_thread): Remove xdb_commands condition.
9007 * tui/tui-layout.c (tui_toggle_layout_command)
9008 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9009 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9010 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9011 (tui_scroll_regs_backward_command): Remove.
9012 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9013 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9014 (_initialize_tui_win): Remove xdb_commands for U and w.
9015 * utils.c (pagination_on_command, pagination_off_command): Remove.
9016 (initialize_utils): Remove xdb_commands for am and sm.
9017
cb71640d
PA
90182015-04-10 Pedro Alves <palves@redhat.com>
9019
9020 * infrun.c (displaced_step_fixup): Switch to the event ptid
9021 earlier. If the thread stopped for a watchpoint and the
9022 target/arch has non-continuable watchpoints, cancel the displaced
9023 step.
9024 (resume): Don't start a displaced step if in-line step-over info
9025 is valid.
9026
8f572e5c
PA
90272015-04-10 Pedro Alves <palves@redhat.com>
9028
9029 * infrun.c (displaced_step_in_progress): New function.
9030 (do_target_resume): Advise target to report all signals if
9031 displaced stepping.
9032
8d707a12
PA
90332015-04-10 Pedro Alves <palves@redhat.com>
9034
9035 PR gdb/18216
9036 * infrun.c (process_event_stop_test): Don't assume a step-resume
9037 is set if tp->stepped_breakpoint is true.
9038
ef713951
YQ
90392015-04-10 Yao Qi <yao.qi@linaro.org>
9040
9041 * arm-tdep.c (install_alu_reg): Update comment.
9042 (thumb_copy_alu_reg): Remove local variable rn. Update
9043 debugging message. Use r2 instead of r1 in the modified
9044 instruction.
9045
906d60cf
PA
90462015-04-10 Pedro Alves <palves@redhat.com>
9047
9048 PR gdb/13858
9049 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9050 linux_displaced_step_location as gdbarch_displaced_step_location
9051 hook.
9052 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9053 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9054 * linux-tdep.c (linux_displaced_step_location): New function,
9055 based on ppc_linux_displaced_step_location.
9056 * linux-tdep.h (linux_displaced_step_location): New declaration.
9057 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9058 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9059 Delete.
9060 (ppc_linux_init_abi): Install linux_displaced_step_location as
9061 gdbarch_displaced_step_location hook, even without Cell/B.E..
9062 (_initialize_ppc_linux_tdep): Don't install
9063 ppc_linux_inferior_created as inferior_created observer.
9064 * s390-linux-tdep.c (s390_gdbarch_init): Install
9065 linux_displaced_step_location as gdbarch_displaced_step_location
9066 hook.
9067
7823a941
GB
90682015-04-09 Gary Benson <gbenson@redhat.com>
9069
9070 * common/common-remote-fileio.h: Rename to...
9071 * common/fileio.h: ...this. Update all references.
9072 (remote_fileio_to_fio_error): Rename to...
9073 (host_to_fileio_error): ...this.
9074 (remote_fileio_to_be): Rename to...
9075 (host_to_bigendian): ...this. Update all callers.
9076 (remote_fileio_to_fio_uint): Rename to...
9077 (host_to_fileio_uint): ...this. Update all callers.
9078 (remote_fileio_to_fio_time): Rename to...
9079 (host_to_fileio_time): ...this. Update all callers.
9080 (remote_fileio_to_fio_stat): Rename to...
9081 (host_to_fileio_stat): ...this.
9082 Update all references.
9083 * common/common-remote-fileio.c: Rename to...
9084 * common/fileio.c: ...this. Update all references.
9085 (remote_fileio_to_fio_error): Rename to...
9086 (host_to_fileio_error): ...this. Update all callers.
9087 (remote_fileio_mode_to_target): Rename to...
9088 (fileio_mode_pack): ...this. Update all callers.
9089 (remote_fileio_to_fio_mode): Rename to...
9090 (host_to_fileio_mode): ...this. Update all callers.
9091 (remote_fileio_to_fio_ulong): Rename to...
9092 (host_to_fileio_ulong): ...this. Update all callers.
9093 (remote_fileio_to_fio_stat): Rename to...
9094 (host_to_fileio_stat): ...this. Update all callers.
9095
f2983cc3
AW
90962015-04-09 Andy Wingo <wingo@igalia.com>
9097
9098 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9099 (frame_functions): Bind gdbscm_frame_read_register to
9100 frame-read-register.
9101 * guile/lib/gdb.scm (frame-read-register): Export.
9102
b88bb450
GB
91032015-04-09 Gary Benson <gbenson@redhat.com>
9104
9105 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9106 New declaration.
9107 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9108 New function, factored out the named functions below.
9109 * inf-child.c (gdb/fileio.h): Remove include.
9110 (common-remote-fileio.h): New include.
9111 (inf_child_errno_to_fileio_error): Remove function. Update
9112 all callers to use remote_fileio_to_fio_error.
9113 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9114
2f2680f3
AW
91152015-04-09 Andy Wingo <wingo@igalia.com>
9116
9117 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9118
5a2d4533
L
91192015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9120
9121 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9122 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9123 * configure: Regenerated.
9124
421693b0
PA
91252015-04-09 Pedro Alves <palves@redhat.com>
9126
9127 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9128 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9129 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9130 * gnulib/import/Makefile.am: Update.
9131 * gnulib/import/Makefile.in: Update.
9132 * gnulib/import/m4/gnulib-cache.m4: Update.
9133 * gnulib/import/m4/gnulib-comp.m4: Update.
9134 * gnulib/import/m4/strtok_r.m4: New file.
9135 * gnulib/import/strtok_r.c: New file.
9136
f543dc83
PA
91372015-04-09 Pedro Alves <palves@redhat.com>
9138
9139 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9140 "called too early to check prototype".
9141
6d62641c
SDJ
91422015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9143
9144 PR python/16699
9145 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9146 use a caching mechanism. Adjust comments and code to reflect
9147 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9148 (cmdpy_completer_handle_brkchars): Adjust call to
9149 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9150 (cmdpy_completer): Likewise.
9151
85558555
YQ
91522015-04-08 Yao Qi <yao.qi@linaro.org>
9153
9154 * spu-tdep.c (spu_gdbarch_init): Don't call
9155 set_gdbarch_cannot_step_breakpoint.
9156
d249a14a
SDJ
91572015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9158
9159 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9160
8a06aea7
PA
91612015-04-07 Pedro Alves <palves@redhat.com>
9162
9163 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9164 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9165 (delete_exited_threads): New declaration.
9166 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9167 * linux-nat.c (linux_nat_update_thread_list): New function.
9168 (linux_nat_add_target): Install it.
9169 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9170 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9171 (delete_exited_threads): New function.
9172
d9b67d9f
PA
91732015-04-07 Pedro Alves <pedro@codesourcery.com>
9174
9175 * infrun.c (resume) <displaced stepping debug output>: Get the
9176 leader thread's regcache, not resume_ptid's.
9177
2c26b84f
DE
91782015-04-06 Doug Evans <xdje42@gmail.com>
9179
9180 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9181 VAR_DOMAIN.
9182 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9183 Include symbol domain in debugging output.
9184
7a85168d
PA
91852015-04-06 Pedro Alves <palves@redhat.com>
9186 Bernd Edlinger <bernd.edlinger@hotmail.de>
9187
9188 * configure.ac: Remove the mingw32-specific stub-termcap.o
9189 fallback, and instead fallback to the stub termcap on all hosts.
9190 * configure: Regenerate.
9191 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9192 symbols.
9193
25755e2b
PMR
91942015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9195
9196 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9197 "top_level" parameter.
9198 (resolve_dynamic_type_internal): Remove the unused "top_level"
9199 parameter. Update call to is_dynamic_type_internal.
9200 (is_dynamic_type): Update call to is_dynamic_type_internal.
9201 (resolve_dynamic_range): Update call to
9202 resolve_dynamic_type_internal.
9203 (resolve_dynamic_union): Likewise.
9204 (resolve_dynamic_struct): Likewise.
9205 (resolve_dynamic_type): Likewise.
9206
961f4160
PMR
92072015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9208
9209 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9210 TYPE_CODE_REF types so that they are not considered as dynamic
9211 depending on the referenced type.
9212 (resolve_dynamic_type_internal): Likewise.
9213
39f3de7c
L
92142015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9215
9216 * Makefile.in (top_srcdir): New.
9217 * configure: Regenerated.
9218
599bd15c
GB
92192015-04-02 Gary Benson <gbenson@redhat.com>
9220
9221 * NEWS: Announce the new default sysroot of "target:".
9222
fed040c6
GB
92232015-04-02 Gary Benson <gbenson@redhat.com>
9224
9225 * main.c (captured_main): Set gdb_sysroot to "target:"
9226 if not otherwise set.
9227
64c0b5de
GB
92282015-04-02 Gary Benson <gbenson@redhat.com>
9229
9230 * exec.c (exec_file_attach): Support "target:" filenames.
9231
b57fbfba
GB
92322015-04-02 Gary Benson <gbenson@redhat.com>
9233
9234 * solib.c (solib_find): Strip "target:" prefix from sysroot
9235 if accessing local files.
9236
97a41605
GB
92372015-04-02 Gary Benson <gbenson@redhat.com>
9238
9239 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9240 checks and error messages.
9241
2938e6cf
GB
92422015-04-02 Gary Benson <gbenson@redhat.com>
9243
9244 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9245 (remote_filename_p): Remove declaration.
9246 (remote_bfd_open): Likewise.
9247 * remote.c (remote_bfd_iovec_open): Remove function.
9248 (remote_bfd_iovec_close): Likewise.
9249 (remote_bfd_iovec_pread): Likewise.
9250 (remote_bfd_iovec_stat): Likewise.
9251 (remote_filename_p): Likewise.
9252 (remote_bfd_open): Likewise.
9253 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9254 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9255 (gdb_bfd_open_maybe_remote): Remove function.
9256 (symfile_bfd_open): Replace remote filename check with
9257 target filename check.
9258 (reread_symbols): Use gdb_bfd_open.
9259 * build-id.c (gdbcore.h): New include.
9260 (build_id_to_debug_bfd): Use gdb_bfd_open.
9261 * infcmd.c (attach_command_post_wait): Remove remote filename
9262 check.
9263 * solib.c (solib_find): Replace remote-specific handling with
9264 target-specific handling. Update comments where necessary.
9265 (solib_bfd_open): Replace remote-specific handling with
9266 target-specific handling.
9267 (gdb_sysroot_changed): New function.
9268 (_initialize_solib): Call the above when gdb_sysroot changes.
9269 * windows-tdep.c (gdbcore.h): New include.
9270 (windows_xfer_shared_library): Use gdb_bfd_open.
9271
f08e97fe
GB
92722015-04-02 Gary Benson <gbenson@redhat.com>
9273
9274 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9275 (is_target_filename): New declaration.
9276 (gdb_bfd_has_target_filename): Likewise.
9277 (gdb_bfd_open): Update documentation comment.
9278 * gdb_bfd.c (target.h): New include.
9279 (gdb/fileio.h): Likewise.
9280 (is_target_filename): New function.
9281 (gdb_bfd_has_target_filename): Likewise.
9282 (fileio_errno_to_host): Likewise.
9283 (gdb_bfd_iovec_fileio_open): Likewise.
9284 (gdb_bfd_iovec_fileio_pread): Likewise.
9285 (gdb_bfd_iovec_fileio_close): Likewise.
9286 (gdb_bfd_iovec_fileio_fstat): Likewise.
9287 (gdb_bfd_open): Use target fileio to access paths prefixed
9288 with "target:" where necessary.
9289
4bd7dc42
GB
92902015-04-02 Gary Benson <gbenson@redhat.com>
9291
9292 * target.h (struct target_ops) <to_filesystem_is_local>:
9293 New field.
9294 (target_filesystem_is_local): New macro.
9295 * target-delegates.c: Regenerate.
9296 * remote.c (remote_filesystem_is_local): New function.
9297 (init_remote_ops): Initialize to_filesystem_is_local.
9298
9b15c1f0
GB
92992015-04-02 Gary Benson <gbenson@redhat.com>
9300
9301 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9302 (target_fileio_fstat): New declaration.
9303 * target.c (target_fileio_fstat): New function.
9304 * inf-child.c (inf_child_fileio_fstat): Likewise.
9305 (inf_child_target): Initialize to_fileio_fstat.
9306 * remote.c (init_remote_ops): Likewise.
9307
d11916aa
SS
93082015-04-01 Sasha Smundak <asmundak@google.com>
9309
9310 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9311 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9312 (py-unwind.o): New recipe.
9313 * NEWS: mention Python frame unwinding.
9314 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9315 gdb/unwinder.py and gdb/command/unwinder.py
9316 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9317 list.
9318 (execute_unwinders): New function.
9319 * python/lib/gdb/command/unwinders.py: New file.
9320 * python/lib/gdb/unwinder.py: New file.
9321 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9322 (objfpy_dealloc): Decrement frame_unwinders reference count.
9323 (objfpy_initialize): Create frame_unwinders list.
9324 (objfpy_get_frame_unwinders): New function.
9325 (objfpy_set_frame_unwinders): Ditto.
9326 (objfile_getset): Add frame_unwinders attribute to Objfile.
9327 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9328 (pspy_dealloc): Decrement frame_unwinders reference count.
9329 (pspy_initialize): Create frame_unwinders list.
9330 (pspy_get_frame_unwinders): New function.
9331 (pspy_set_frame_unwinders): Ditto.
9332 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9333 * python/py-unwind.c: New file.
9334 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9335 (objpy_get_frame_unwinders): New prototype.
9336 (gdbpy_initialize_unwind): New prototype.
9337 * python/python.c (gdbpy_apply_type_printers): Call
9338 gdbpy_initialize_unwind.
9339
6b403daa
PA
93402015-04-01 Pedro Alves <palves@redhat.com>
9341
9342 * infrun.c (resume): Check currently_stepping after clearing
9343 stepped_breakpoint, not before.
9344
1176ecec
PA
93452015-04-01 Pedro Alves <palves@redhat.com>
9346
9347 * infrun.c (print_target_wait_results): Print all the ptid
9348 elements.
9349
de1fe8c8
PA
93502015-04-01 Pedro Alves <palves@redhat.com>
9351
9352 * infrun.c (keep_going): Also discard cleanups if inserting
9353 breakpoints fails.
9354
e6f5c25b
PA
93552015-04-01 Pedro Alves <palves@redhat.com>
9356
9357 * infrun.c (wait_for_inferior): Install the
9358 finish_thread_state_cleanup cleanup across the whole function, not
9359 just around handle_inferior_event.
9360
1ac806b8
PA
93612015-04-01 Pedro Alves <palves@redhat.com>
9362
9363 * infrun.c (resume) <step past permanent breakpoint>: Use
9364 do_target_resume.
9365
2ee52aa4
PA
93662015-04-01 Pedro Alves <palves@redhat.com>
9367
9368 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9369
5445da1b
PMR
93702015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9371
9372 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9373
4eec2deb
PA
93742015-04-01 Pedro Alves <palves@redhat.com>
9375
9376 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9377 list if it was marked exited.
9378
afa59b79
L
93792015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9380
9381 * configure: Regenerated.
9382
df8411da
SDJ
93832015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9384 Jan Kratochvil <jan.kratochvil@redhat.com>
9385 Oleg Nesterov <oleg@redhat.com>
9386
9387 PR corefiles/16092
9388 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9389 New enum identifying the various options of the coredump_filter
9390 file.
9391 (struct smaps_vmflags): New struct.
9392 (use_coredump_filter): New variable.
9393 (decode_vmflags): New function.
9394 (mapping_is_anonymous_p): Likewise.
9395 (dump_mapping_p): Likewise.
9396 (linux_find_memory_regions_full): New variables
9397 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9398 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9399 parsing of its information. Implement memory mapping filtering
9400 based on its contents.
9401 (show_use_coredump_filter): New function.
9402 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9403 * NEWS: Mention the possibility of using the
9404 '/proc/PID/coredump_filter' file when generating a corefile.
9405 Mention new command 'set use-coredump-filter'.
9406
416f679e
SDJ
94072015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9408
9409 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9410 read_memory_unsigned_integer.
9411
711a72d3
L
94122015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9413
9414 * Makefile.in (ZLIB): New.
9415 (ZLIBINC): Likewise.
9416 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9417 (CLIBS): Add $(ZLIB).
9418 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9419 Add -lz to LIBS.
9420 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9421 * top.c (print_gdb_configuration): Remove --with-zlib and
9422 --without-zlib.
9423 * config.in: Regenerated.
9424 * configure: Likewise.
9425
d33279b3
AT
94262015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9427
9428 * NEWS: Mention info os cpus support.
9429 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9430 (struct osdata_type): Add cpus entry, reorder the entries in
9431 alphabetical order.
9432
71b30f27
MK
94332015-03-31 Matthias Klose <doko@ubuntu.com>
9434
9435 * compile/compile.c (compile_to_object): Allow triplets with or
9436 without vendor set.
9437
13ce9222
DE
94382015-03-30 Doug Evans <dje@google.com>
9439
9440 PR c++/18141
9441 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9442 klass in VAR_DOMAIN.
9443
20f796c9
GB
94442015-03-30 Gary Benson <gbenson@redhat.com>
9445
9446 * remote.c (remote_mourn_1): Remove function. Update all callers
9447 to use remote_mourn.
9448 (extended_remote_mourn_1): Remove function. Update all callers
9449 to use extended_remote_mourn.
9450 (extended_remote_attach_1): Remove function. Update all callers
9451 to use extended_remote_attach.
9452
49d45b20
JB
94532015-03-28 James Bowman <james.bowman@ftdichip.com>
9454
9455 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9456 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9457 (ALLDEPFILES): Add ft32-tdep.c.
9458 * configure.tgt: Add FT32 entry.
9459 * ft32-tdep.c: New file, FT32 target-dependent code.
9460 * ft32-tdep.h: New file, FT32 target-dependent code.
9461
1c4ff080
JK
94622015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9463
9464 Revert:
9465 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9466 Code cleanup.
9467 * printcmd.c (print_command_1): Move expr variable scope.
9468
79498702
JB
94692015-03-27 Joel Brobecker <brobecker@adacore.com>
9470
9471 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9472
ce9c0ca1
AK
94732015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9474
9475 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9476 sections.
9477
429e1e81
JB
94782015-03-26 Joel Brobecker <brobecker@adacore.com>
9479
9480 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9481 exception raised while parsing the probe arguments.
9482 Force parsing to be done using the C language parser.
9483 * expression.h (parse_expression_with_language): Declare.
9484 * parse.c (parse_expression_with_language): New function.
9485
4593441b
JT
94862015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9487
9488 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9489
ff908ebf
AW
94902015-03-26 Andy Wingo <wingo@igalia.com>
9491
9492 PR symtab/18148
9493 * dwarf2read.c (struct partial_die_info): Add has_const_value
9494 member.
9495 (add_partial_symbol): Don't punt on symbols that have const_value
9496 attributes.
9497 (read_partial_die): Detect DW_AT_const_value.
9498
f30d5c78
JK
94992015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9500
9501 Code cleanup.
9502 * printcmd.c (print_command_1): Move expr variable scope.
9503
8d89f51a
JK
95042015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9505
9506 Code cleanup.
9507 * printcmd.c (validate_format): Make the parameter cmdname const.
9508
0b736949
DB
95092015-03-26 Don Breazeal <donb@codesourcery.com>
9510
9511 * remote.c (_initialize_remote): Update comment.
9512
20d35291
PA
95132015-03-26 Pedro Alves <palves@redhat.com>
9514 Jon TURNEY <jon.turney@dronecode.org.uk>
9515
9516 * coffread.c (coff_symfile_read): When constructing the name of an
9517 import stub symbol from import symbol for amd64, only skip the
9518 char after _imp_ if the target is underscored (like i386) and the
9519 char is indeed the target's leading char.
9520
6a3753b3
PA
95212015-03-25 Pedro Alves <palves@redhat.com>
9522
9523 * target.h <to_async>: Replace 'callback' and 'context' parameters
9524 with boolean 'enable' parameter.
9525 (target_async): Replace CALLBACK and CONTEXT parameters with
9526 boolean ENABLE parameter.
9527 * inf-loop.c (inferior_event_handler): Adjust.
9528 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9529 (linux_nat_resume): Adjust.
9530 (async_client_callback, async_client_context): Delete.
9531 (handle_target_event): Call inferior_event_handler directly.
9532 (linux_nat_async): Replace 'callback' and 'context' parameters
9533 with boolean 'enable' parameter. Adjust. Remove references to
9534 async_client_callback and async_client_context.
9535 (linux_nat_close): Adjust.
9536 * record-btrace.c (record_btrace_async): Replace 'callback' and
9537 'context' parameters with boolean 'enable' parameter. Adjust.
9538 (record_btrace_resume): Adjust.
9539 * record-full.c (record_full_async): Replace 'callback' and
9540 'context' parameters with boolean 'enable' parameter. Adjust.
9541 (record_full_resume, record_full_core_resume): Adjust.
9542 * remote.c (struct remote_state) <async_client_callback,
9543 async_client_context>: Delete fields.
9544 (remote_start_remote, extended_remote_attach_1, remote_resume)
9545 (extended_remote_create_inferior): Adjust.
9546 (remote_async_serial_handler): Call inferior_event_handler
9547 directly.
9548 (remote_async): Replace 'callback' and 'context' parameters with
9549 boolean 'enable' parameter. Adjust.
9550 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9551 Adjust.
9552 * target-delegates.c: Regenerate.
9553
1c4b552b
GB
95542015-03-25 Gary Benson <gbenson@redhat.com>
9555 Pedro Alves <palves@redhat.com>
9556
9557 * target.c (fileio_ft_t): New typedef, define object vector.
9558 (fileio_fhandles): New static variable.
9559 (is_closed_fileio_fh): New macro.
9560 (lowest_closed_fd): New static variable.
9561 (acquire_fileio_fd): New function.
9562 (release_fileio_fd): Likewise.
9563 (fileio_fd_to_fh): New macro.
9564 (target_fileio_open): Wrap the file descriptor on success.
9565 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9566 (target_fileio_pread): Likewise.
9567 (target_fileio_close): Likewise.
9568
a25d8bf9
PA
95692015-03-24 Pedro Alves <palves@redhat.com>
9570
9571 * thread.c (thread_apply_all_command): Take exited threads into
9572 account.
9573
44a1ee51
PA
95742015-03-24 Pedro Alves <palves@redhat.com>
9575
9576 * infrun.c (resume, proceed): Mention
9577 switch_back_to_stepped_thread, not switch_back_to_stepping.
9578
f3263aa4
PA
95792015-03-24 Pedro Alves <palves@redhat.com>
9580
9581 * infrun.c (user_visible_resume_ptid): Rewrite going from
9582 most-locked to unlocked instead of the opposite. Move comment ...
9583 * infrun.h (user_visible_resume_ptid): ... here.
9584
2bf6fb9d
PA
95852015-03-24 Pedro Alves <palves@redhat.com>
9586
9587 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9588 to resume the event lwp. Use the lwp's ptid instead of the passed
9589 in (maybe wildcard) ptid.
9590 (stop_wait_callback): Tweak debug log output.
9591 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9592 TRAP_TRACE.
9593 (linux_nat_filter_event): In debug output, distinguish a
9594 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9595 before trying to resume the lwp.
9596
283a9958
JB
95972015-03-24 Joel Brobecker <brobecker@adacore.com>
9598
9599 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9600 pointer indirection.
9601 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9602 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9603
93a8e227
JB
96042015-03-24 Joel Brobecker <brobecker@adacore.com>
9605
9606 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9607 Renames DYN_ATTR_DATA_LOCATION.
9608 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9609 DYN_ATTR_DATA_LOCATION.
9610 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9611 instead of DYN_ATTR_DATA_LOCATION.
9612
64ce06e4
PA
96132015-03-24 Pedro Alves <palves@redhat.com>
9614
9615 * breakpoint.c (until_break_command): Adjust call to proceed.
9616 * gdbthread.h (struct thread_control_state) <stepping_command>:
9617 New field.
9618 * infcall.c (run_inferior_call): Adjust call to proceed.
9619 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9620 Adjust calls to proceed.
9621 (set_step_frame): Set the current thread's step_start_function
9622 here.
9623 (step_once): Adjust calls to proceed.
9624 (jump_command, signal_command, until_next_command)
9625 (finish_backward, finish_forward, proceed_after_attach_callback)
9626 (attach_command_post_wait): Adjust calls to proceed.
9627 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9628 (do_target_resume): New function, factored out from ...
9629 (resume): ... here. Remove 'step' parameter. Instead, check
9630 currently_stepping to determine whether the thread should be
9631 single-stepped.
9632 (proceed): Remove 'step' parameter and don't set the thread's
9633 step_start_function here. Adjust call to 'resume'.
9634 (handle_inferior_event): Adjust calls to 'resume'.
9635 (switch_back_to_stepped_thread): Use do_target_resume instead of
9636 'resume'.
9637 (keep_going): Adjust calls to 'resume'.
9638 * infrun.h (proceed): Remove 'step' parameter.
9639 (resume): Likewise.
9640 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9641 'resume'.
9642 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9643
856e7dd6
PA
96442015-03-24 Pedro Alves <palves@redhat.com>
9645
9646 * gdbthread.h (struct thread_control_state) <stepping_command>:
9647 New field.
9648 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9649 the thread's stepping_command field.
9650 * infrun.c (resume): Check the thread's stepping_command flag to
9651 determine which threads should be resumed. Rename 'entry_step'
9652 local to user_step.
9653 (clear_proceed_status_thread): Clear 'stepping_command'.
9654 (schedlock_applies): Change parameter type to struct thread_info
9655 pointer. Adjust.
9656 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9657 (switch_back_to_stepped_thread): Adjust calls to
9658 'schedlock_applies'.
9659 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9660
885eeb5b
PA
96612015-03-24 Pedro Alves <palves@redhat.com>
9662
9663 * infrun.c (step_start_function): Delete and ...
9664 * gdbthread.h (struct thread_control_state) <step_start_function>:
9665 ... now a field here.
9666 * infrun.c (clear_proceed_status_thread): Clear the thread's
9667 step_start_function.
9668 (proceed, process_event_stop_test, print_stop_event): Adjust.
9669
3333f03a
PA
96702015-03-24 Pedro Alves <palves@redhat.com>
9671
9672 * infrun.c (proceed): No longer handle negative step.
9673
369f6daa
GB
96742015-03-24 Gary Benson <gbenson@redhat.com>
9675
9676 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9677 (x86_linux_prepare_to_resume): Likewise.
9678 * x86-linux-nat.c (x86_linux_new_thread):
9679 Moved to nat/x86-linux.c.
9680 (x86_linux_prepare_to_resume): Likewise.
9681 * nat/x86-linux.c (x86_linux_new_thread): New function.
9682 (x86_linux_prepare_to_resume): Likewise.
9683
8e5d4070
GB
96842015-03-24 Gary Benson <gbenson@redhat.com>
9685
9686 * nat/x86-linux-dregs.h: New file.
9687 * nat/x86-linux-dregs.c: Likewise.
9688 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9689 (x86-linux-dregs.o): New rule.
9690 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9691 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9692 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9693 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9694 (x86_linux_dr_get): Likewise.
9695 (x86_linux_dr_set): Likewise.
9696 (x86_linux_dr_get_addr): Likewise.
9697 (x86_linux_dr_get_control): Likewise.
9698 (x86_linux_dr_get_status): Likewise.
9699 (update_debug_registers_callback): Likewise.
9700 (x86_linux_dr_set_control): Likewise.
9701 (x86_linux_dr_set_addr): Likewise.
9702 (x86_linux_update_debug_registers): Likewise.
9703
2b95d440
GB
97042015-03-24 Gary Benson <gbenson@redhat.com>
9705
9706 * x86-linux-nat.c (x86_linux_update_debug_registers):
9707 New function, factored out from...
9708 (x86_linux_prepare_to_resume): ...this.
9709
14b0bc68
GB
97102015-03-24 Gary Benson <gbenson@redhat.com>
9711
9712 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9713 (x86_linux_dr_set): Likewise.
9714 (x86_linux_dr_get_addr): Likewise.
9715 (x86_linux_dr_get_control): Likewise.
9716 (x86_linux_dr_get_status): Likewise.
9717 (update_debug_registers_callback): Likewise.
9718 (x86_linux_dr_set_control): Likewise.
9719 (x86_linux_dr_set_addr): Likewise.
9720 (x86_linux_prepare_to_resume): Likewise.
9721 (x86_linux_new_thread): Likewise.
9722
5dfe6ca8
GB
97232015-03-24 Gary Benson <gbenson@redhat.com>
9724
9725 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9726 (x86_linux_new_thread): Rename argument.
9727
4b134ca1
GB
97282015-03-24 Gary Benson <gbenson@redhat.com>
9729
9730 * nat/x86-linux.h: New file.
9731 * nat/x86-linux.c: Likewise.
9732 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9733 (x86-linux.o): New rule.
9734 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9735 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9736 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9737 (lwp_set_arch_private_info): New declaration.
9738 (lwp_arch_private_info): Likewise.
9739 * linux-nat.c (lwp_set_arch_private_info): New function.
9740 (lwp_arch_private_info): Likewise.
9741 * x86-linux-nat.c: Include nat/x86-linux.h.
9742 (arch_lwp_info): Removed structure.
9743 (update_debug_registers_callback):
9744 Use lwp_set_debug_registers_changed.
9745 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9746 and lwp_set_debug_registers_changed.
9747 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9748
cff068da
GB
97492015-03-24 Gary Benson <gbenson@redhat.com>
9750
9751 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9752 (lwp_is_stopped): Likewise.
9753 (lwp_stop_reason): Likewise.
9754 * linux-nat.c (ptid_of_lwp): New function.
9755 (lwp_is_stopped): Likewise.
9756 (lwp_is_stopped_by_watchpoint): Likewise.
9757 * x86-linux-nat.c (update_debug_registers_callback):
9758 Use lwp_is_stopped.
9759 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9760 lwp_stop_reason.
9761
b2f7c7e8
GB
97622015-03-24 Gary Benson <gbenson@redhat.com>
9763
9764 * linux-nat.h (linux_stop_lwp): Move declaration to...
9765 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9766
6d4ee8c6
GB
97672015-03-24 Gary Benson <gbenson@redhat.com>
9768
9769 * linux-nat.h: Include nat/linux-nat.h.
9770 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9771 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9772 (iterate_over_lwps_ftype): New typedef.
9773 (iterate_over_lwps): New declaration.
9774 * linux-nat.h (iterate_over_lwps): Update comment. Use
9775 iterate_over_lwps_ftype. Update callback return value check.
9776
70a0bb6b
GB
97772015-03-24 Gary Benson <gbenson@redhat.com>
9778
9779 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9780 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9781
7b669087
GB
97822015-03-24 Gary Benson <gbenson@redhat.com>
9783
9784 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9785 * linux-nat.c (current_lwp_ptid): New function.
9786 * x86-linux-nat.c: Include nat/linux-nat.h.
9787 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9788 (x86_linux_dr_get_control): Likewise.
9789 (x86_linux_dr_get_status): Likewise.
9790 (x86_linux_dr_set_control): Likewise.
9791 (x86_linux_dr_set_addr): Likewise.
9792
15630549
AT
97932015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9794
9795 PR breakpoints/16466
9796 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9797
8a4506c0
JB
97982015-03-23 Joel Brobecker <brobecker@adacore.com>
9799
9800 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9801 * ser-unix.c (hardwire_setparity): Likewise.
9802
236af5e3
YG
98032015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9804
9805 * NEWS: Mention set/show serial parity command.
9806 * monitor.c (monitor_open): Call serial_setparity.
9807 * remote.c (remote_open_1): Likewise.
9808 * ser-base.c (ser_base_serparity): New function.
9809 * ser-base.h (ser_base_setparity): Add declaration.
9810 * ser-go32.c (dos_ops): Set "setparity" field.
9811 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9812 state.Parity.
9813 (ser_windows_setparity): New function.
9814 (hardwire_ops): Add ser_windows_setparity.
9815 (tty_ops): Add NULL for setparity field.
9816 (pipe_ops): Add ser_base_setparity.
9817 (tcp_ops): Likewise.
9818 * ser-pipe.c (pipe_ops): Likewise.
9819 * ser-tcp.c (tcp_ops): Likewise.
9820 * ser-unix.c (hardwire_setparity): Add declaration.
9821 (hardwire_raw): Don't reset PARENB flag.
9822 (hardwire_setparity): New function.
9823 (hardwire_ops): Add hardwire_setparity.
9824 * serial.c (serial_setparity): New function.
9825 (serial_parity): New global.
9826 (parity_none, parity_odd, parity_even, parity_enums, parity):
9827 New static globals.
9828 (set_parity): New function.
9829 (_initialize_serial): Add set/show serial parity commands.
9830 * serial.h (GDBPARITY_NONE): Define.
9831 (GDBPARITY_ODD): Define.
9832 (GDBPARITY_EVEN): Define.
9833 (serial_setparity) Add declaration.
9834 (struct serial_ops): Add setparity field.
9835 * target.h (serial_parity): Add declaration.
9836
32b40af9
KS
98372015-03-23 Keith Seitz <keiths@redhat.com>
9838
9839 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9840
693dca06
KS
98412015-03-23 Keith Seitz <keiths@redhat.com>
9842
9843 * breakpoint.c (parse_breakpoint_sals): Use
9844 linespec_lexer_lex_keyword to ascertain if the user specified
9845 a NULL location.
9846 * linespec.c [IF_KEYWORD_INDEX]: Define.
9847 (linespec_lexer_lex_keyword): Export.
9848 (struct ls_parser) <keyword_ok>: Remove.
9849 A keyword is only a keyword if not followed by another keyword.
9850 (linespec_lexer_lex_one): Remove keyword_ok handling.
9851 Add comment explaining why the parsing stream is not advanced
9852 when a keyword is seen.
9853 (parse_linespec): Remove parser->keyword_ok.
9854 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9855
7e993ebf
KS
98562015-03-23 Keith Seitz <keiths@redhat.com>
9857
9858 PR gdb/18021
9859 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9860 if we find a static method with DW_AT_vtable_elem_location.
9861
b1a0f704
EZ
98622015-03-21 Eli Zaretskii <eliz@gnu.org>
9863
9864 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9865 before the second loop, to avoid undefined behavior. Reported by
9866 Anton Blanchard <anton@samba.org>.
9867
d9823cbb
KB
98682015-03-20 Keven Boell <keven.boell@intel.com>
9869
9870 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9871 data_location usage to linked list.
9872 (resolve_dynamic_type_internal): Adapt data_location to
9873 linked list.
9874 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9875 (copy_type_recursive, copy_type): Add copy of linked list.
9876 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9877 (struct dynamic_prop_list): New struct.
9878 * dwarf2read.c (set_die_type): Set data_location data.
9879
2e7bf1d7
PA
98802015-03-20 Pedro Alves <palves@redhat.com>
9881
9882 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9883 inner block and make it const.
9884 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9885
7a26bd4d
PA
98862015-03-20 Pedro Alves <palves@redhat.com>
9887
9888 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9889 * breakpoint.h (set_breakpoint_condition): Update declaration.
9890
cd46431b
PA
98912015-03-20 Pedro Alves <palves@redhat.com>
9892
9893 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9894
e28566f7
PA
98952015-03-20 Pedro Alves <palves@redhat.com>
9896
9897 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9898
f6fc92f6
PA
98992015-03-20 Pedro Alves <palves@redhat.com>
9900
9901 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9902
c32ed3ef
PA
99032015-03-20 Pedro Alves <palves@redhat.com>
9904
9905 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9906 (nto_init_solib_absolute_prefix): Likewise.
9907
53e78085
PA
99082015-03-20 Pedro Alves <palves@redhat.com>
9909
9910 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9911 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9912
bc23328c
JK
99132015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9914
9915 * config/djgpp/README: Remove gdb.hp.
9916
e8ffc436
YQ
99172015-03-20 Yao Qi <yao.qi@linaro.org>
9918
9919 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9920 set_gdbarch_cannot_step_breakpoint.
9921
23f238d3
PA
99222015-03-19 Pedro Alves <palves@redhat.com>
9923
9924 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9925 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9926 instead call perror_with_name.
9927 (check_ptrace_stopped_lwp_gone): New function.
9928 (linux_resume_one_lwp): Reimplement as wrapper around
9929 linux_resume_one_lwp_throw that swallows errors if the LWP is
9930 gone.
9931 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9932 swallows errors if the LWP is gone. Use
9933 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9934
eb54c8bf
PA
99352015-03-19 Pedro Alves <palves@redhat.com>
9936
9937 * linux-nat.c (status_callback): Return early if the LWP has no
9938 status pending.
9939
b90fc188
PA
99402015-03-19 Pedro Alves <palves@redhat.com>
9941
9942 * linux-nat.c (select_event_lwp_callback): Update comment to no
9943 longer mention SIGTRAP.
9944
670f82d4
TG
99452015-03-18 Tristan Gingold <gingold@adacore.com>
9946
72f4393d
L
9947 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9948 redirection code to ...
9949 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9950 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 9951
464b0089
GB
99522015-03-18 Gary Benson <gbenson@redhat.com>
9953
9954 (remote_protocol_features): Remove the "vFile:fstat" feature.
9955 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9956
f68f11b7
YQ
99572015-03-11 Yao Qi <yao.qi@linaro.org>
9958
9959 PR tdep/18107
9960 * aarch64-linux-tdep.c: Include xml-syscall.h
9961 (aarch64_linux_get_syscall_number): New function.
9962 (aarch64_linux_init_abi): Call
9963 set_gdbarch_get_syscall_number.
9964 * syscalls/aarch64-linux.xml: New file.
9965
393bd0c0
YG
99662015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9967
9968 * ser-base.h (ser_base_setstopbits): Change second argument name
9969 from "rate" to "num".
9970
7f3647e2
GB
99712015-03-17 Gary Benson <gbenson@redhat.com>
9972 Luke Allardyce <lukeallardyce@gmail.com>
9973
9974 PR gdb/18131
9975 * common/common-remote-fileio.h (sys/stat.h): New include.
9976 (stuct stat): Remove forward declaration.
9977
3ce5b6e2
JB
99782015-03-16 John Baldwin <jhb@FreeBSD.org>
9979
9980 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9981 before writing core register notes.
9982
d053f6be
YZ
99832015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9984 Pedro Alves <palves@redhat.com>
9985
9986 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9987 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9988 (tgoto): Wrap with extern "C".
9989
b1a921c8
PA
99902015-03-16 Pedro Alves <palves@redhat.com>
9991 Yuanhui Zhang <asmwarrior@gmail.com>
9992
9993 * stub-termcap.c (tputs): Change prototype.
9994
876d1cd7
YZ
99952015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9996 Pedro Alves <palves@redhat.com>
9997
9998 * windows-nat.c (struct thread_info_struct): Rename to ...
9999 (struct windows_thread_info_struct): ... this.
10000 (thread_info): Rename to ...
10001 (windows_thread_info): ... this.
10002 All users updated.
10003
0800b440
JK
100042015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10005 Pedro Alves <palves@redhat.com>
10006
10007 * NEWS: New Removed targets and native configurations.
10008
100092015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
10010
10011 Remove HPUX.
10012 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10013 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10014 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10015 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10016 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10017 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10018 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10019 hppa-hpux-tdep.c.
10020 * config/ia64/hpux.mh: Remove file.
10021 * config/pa/hpux.mh: Remove file.
10022 * configure: Rebuilt.
10023 * configure.ac (dlgetmodinfo, somread.o): Remove.
10024 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10025 (ia64-*-hpux*): Remove its float format exception.
10026 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10027 * hppa-hpux-nat.c: Remove file.
10028 * hppa-hpux-tdep.c: Remove file.
10029 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10030 Move them here from hppa-tdep.h
10031 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10032 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10033 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10034 Move them to hppa-tdep.c.
10035 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10036 declarations.
10037 * ia64-hpux-nat.c: Remove file.
10038 * ia64-hpux-tdep.c: Remove file.
10039 * ia64-hpux-tdep.h: Remove file.
10040 * inf-ttrace.c: Remove file.
10041 * inf-ttrace.h: Remove file.
10042 * solib-ia64-hpux.c: Remove file.
10043 * solib-ia64-hpux.h: Remove file.
10044 * solib-pa64.c: Remove file.
10045 * solib-pa64.h: Remove file.
10046 * solib-som.c: Remove file.
10047 * solib-som.h: Remove file.
10048 * somread.c: Remove file.
10049
25268153
JB
100502015-03-13 John Baldwin <jhb@FreeBSD.org>
10051
10052 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10053 * config.in: Regenerate.
10054 * configure: Regenerate.
10055 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 10056 define.
25268153
JB
10057 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10058 enumerate memory regions if present.
10059
773eacf5
JB
100602015-03-13 John Baldwin <jhb@FreeBSD.org>
10061
10062 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10063 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10064 expressions.
10065 (i386fbsd_sigtramp_p): Likewise.
10066
01b6bdb0
JB
100672015-03-12 John Baldwin <jhb@FreeBSD.org>
10068
10069 * MAINTAINERS (Write After Approval): Add John Baldwin.
10070
811a659a
GB
100712015-03-12 Gary Benson <gbenson@redhat.com>
10072
10073 * solib.c (_initialize_solib): Make "set/show sysroot" use
10074 add_setshow_optional_filename_cmd so it can be restored to
10075 empty after being set.
10076
10304ef3
SDJ
100772015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10078
10079 * Makefile.in (SFILES): New source break-catch-syscall.c.
10080 (COMMON_OBS): New object break-catch-syscall.o.
10081 * break-catch-syscall.c: New file.
10082 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10083 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10084 (struct syscall_catchpoint): Likewise.
10085 (dtor_catch_syscall): Likewise.
10086 (catch_syscall_inferior_data): Likewise.
10087 (struct catch_syscall_inferior_data): Likewise.
10088 (get_catch_syscall_inferior_data): Likewise.
10089 (catch_syscall_inferior_data_cleanup): Likewise.
10090 (insert_catch_syscall): Likewise.
10091 (remove_catch_syscall): Likewise.
10092 (breakpoint_hit_catch_syscall): Likewise.
10093 (print_it_catch_syscall): Likewise.
10094 (print_one_catch_syscall): Likewise.
10095 (print_mention_catch_syscall): Likewise.
10096 (print_recreate_catch_syscall): Likewise.
10097 (catch_syscall_breakpoint_ops): Likewise.
10098 (syscall_catchpoint_p): Likewise.
10099 (create_syscall_event_catchpoint): Likewise.
10100 (catch_syscall_split_args): Likewise.
10101 (catch_syscall_command_1): Likewise.
10102 (is_syscall_catchpoint_enabled): Likewise.
10103 (catch_syscall_enabled): Likewise.
10104 (catching_syscall_number): Likewise.
10105 (catch_syscall_completer): Likewise.
10106 (clear_syscall_counts): Likewise.
10107 (initialize_breakpoint_ops): Move initialization of syscall
10108 catchpoints to break-catch-syscall.c.
10109 (_initialize_breakpoint): Move code related to syscall catchpoints
10110 to break-catch-syscall.c.
10111
badd37ce
SDJ
101122015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10113
10114 * breakpoint.c (breakpoint_find_if): New function.
10115 * breakpoint.h (breakpoint_find_if): New prototype.
10116
0a93529c
GB
101172015-03-11 Gary Benson <gbenson@redhat.com>
10118
10119 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10120 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10121 (remote_fileio_to_host_ulong): Likewise.
10122 (remote_fileio_to_host_mode): Likewise.
10123 (remote_fileio_to_host_time): Likewise.
10124 (remote_fileio_to_host_stat): Likewise.
10125 * remote.c (PACKET_vFile_fstat): New enum value.
10126 (remote_protocol_features): Register the "vFile:fstat" feature.
10127 (remote_hostio_fstat): New function.
10128 (remote_bfd_iovec_stat): Use the above.
10129 (_initialize_remote): Register new "set/show remote
10130 hostio-fstat-packet" command.
10131 * symfile.c (separate_debug_file_exists): Update comment.
10132 * NEWS: Announce new vFile:fstat packet.
10133
791c0056
GB
101342015-03-11 Gary Benson <gbenson@redhat.com>
10135
10136 * common/common-remote-fileio.h: New file.
10137 * common/common-remote-fileio.c: Likewise.
10138 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10139 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10140 (COMMON_OBS): Add common-remote-fileio.o.
10141 (common-remote-fileio.o): New rule.
10142 * remote-fileio.h (common-remote-fileio.h): New include.
10143 * remote-fileio.c (gdb/fileio.h): Do not include.
10144 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10145 (remote_fileio_to_fio_uint): Likewise.
10146 (remote_fileio_to_fio_time): Likewise.
10147 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10148 (remote_fileio_to_fio_mode): Likewise.
10149 (remote_fileio_to_fio_ulong): Likewise.
10150 (remote_fileio_to_fio_stat): Likewise.
10151
1390d0ef
AW
101522015-03-11 Andy Wingo <wingo@igalia.com>
10153
10154 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10155 we were checking the cached type, not the cached dynamic type.
10156
84a4591a
AW
101572015-03-11 Andy Wingo <wingo@igalia.com>
10158
10159 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10160 other strings, as these are on the GC'd heap, and will be
10161 collected along with the smob.
10162
85642ba0
AW
101632015-03-11 Andy Wingo <wingo@igalia.com>
10164
10165 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10166 (objfile_functions): Bind gdbscm_objfile_progspace to
10167 objfile-progspace.
10168 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10169
92fab5a6
AW
101702015-03-11 Andy Wingo <wingo@igalia.com>
10171
10172 * guile/guile.c (_initialize_guile): Disable automatic
10173 finalization, if Guile offers us that possibility.
10174 * guile/guile.c (call_initialize_gdb_module):
10175 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10176 finalizers in appropriate places.
10177 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10178 scm_set_automatic_finalization_enabled.
10179 * configure: Regenerated.
10180
f054145e
AA
101812015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10182
10183 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10184 SAL, if possible.
10185
18396193
AA
101862015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10187
10188 * s390-linux-nat.c (struct arch_lwp_info): New.
10189 (s390_fix_watch_points): Rename to...
10190 (s390_prepare_to_resume): ...this. Skip the PER info update
10191 unless the watch points have changed.
10192 (s390_refresh_per_info, s390_new_thread): New functions.
10193 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10194 s390_fix_watch_points.
10195 (s390_remove_watchpoint): Likewise.
10196 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10197 Register s390_prepare_to_resume.
10198
9eb1356e
PA
101992015-03-09 Pedro Alves <palves@redhat.com>
10200
10201 Revert:
10202 2015-03-07 Pedro Alves <palves@redhat.com>
10203 * common/gdb_socket.h: New file.
10204 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10205 sys/socket.h.
10206 (net_open): Use union gdb_sockaddr_u.
10207
aac331e4
PA
102082015-03-07 Pedro Alves <palves@redhat.com>
10209
10210 * configure.ac (build_warnings): Move -Wmissing-prototypes
10211 -Wdeclaration-after-statement -Wmissing-parameter-type
10212 -Wold-style-declaration -Wold-style-definition to the C-specific
10213 set.
10214 * configure: Regenerate.
10215
366c75fc
PA
102162015-03-07 Pedro Alves <palves@redhat.com>
10217
10218 * common/gdb_socket.h: New file.
10219 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10220 sys/socket.h.
10221 (net_open): Use union gdb_sockaddr_u.
10222
72df25b2
PA
102232015-03-07 Pedro Alves <palves@redhat.com>
10224
10225 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10226 (exceptions_state_mc_action_iter)
10227 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10228 Don't define.
10229 [__cplusplus] (try_scope_depth): New global.
10230 [__cplusplus] (exception_try_scope_entry)
10231 (exception_try_scope_exit, gdb_exception_sliced_copy)
10232 (exception_rethrow): New functions.
10233 (throw_exception): In C++ mode, throw
10234 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10235 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10236 (throw_it): In C++ mode, use try_scope_depth.
10237 * common/common-exceptions.h [!__cplusplus]
10238 (exceptions_state_mc_action_iter)
10239 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10240 Don't declare.
10241 [__cplusplus] (exception_try_scope_entry)
10242 (exception_try_scope_exit, exception_rethrow): Declare.
10243 [__cplusplus] (struct exception_try_scope): New struct.
10244 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10245 C++ exceptions.
10246 (struct gdb_exception_RETURN_MASK_ALL)
10247 (struct gdb_exception_RETURN_MASK_ERROR)
10248 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10249
284e6217
PA
102502015-03-07 Pedro Alves <palves@redhat.com>
10251
10252 * main.c (handle_command_errors): Remove volatile qualifier from
10253 parameter.
10254
6c63c96a
PA
102552015-03-07 Pedro Alves <palves@redhat.com>
10256
10257 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10258 TRY and CATCH.
10259 * gdbtypes.c (safe_parse_type): Remove empty line.
10260 (types_deeply_equal):
10261 * guile/scm-frame.c (gdbscm_frame_name):
10262 * linux-thread-db.c (find_new_threads_once):
10263 * python/py-breakpoint.c (bppy_get_commands):
10264 * record-btrace.c (record_btrace_insert_breakpoint)
10265 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10266 (record_btrace_start_replaying): Adjust to avoid code between TRY
10267 and CATCH.
10268
492d29ea
PA
102692015-03-07 Pedro Alves <palves@redhat.com>
10270
10271 * common/common-exceptions.c (struct catcher) <exception>: No
10272 longer a pointer to volatile exception. Now an exception value.
10273 <mask>: Delete field.
10274 (exceptions_state_mc_init): Remove all parameters. Adjust.
10275 (exceptions_state_mc): No longer pop the catcher here.
10276 (exceptions_state_mc_catch): New function.
10277 (throw_exception): Adjust.
10278 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10279 all parameters.
10280 (exceptions_state_mc_catch): Declare.
10281 (TRY_CATCH): Rename to ...
10282 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10283 (CATCH, END_CATCH): New.
10284 All callers adjusted.
10285
ece957c8
TT
102862015-03-07 Tom Tromey <tromey@redhat.com>
10287
10288 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10289
7556d4a4
PA
102902015-03-07 Pedro Alves <palves@redhat.com>
10291
10292 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10293 (amd64_epilogue_frame_cache): Normal exception handling code.
10294 * break-catch-throw.c (check_status_exception_catchpoint)
10295 (re_set_exception_catchpoint): Ditto.
10296 * cli/cli-interp.c (safe_execute_command):
10297 * cli/cli-script.c (script_from_file): Ditto.
10298 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10299 Ditto.
10300 * compile/compile-object-run.c (compile_object_run): Ditto.
10301 * cp-abi.c (baseclass_offset): Ditto.
10302 * cp-valprint.c (cp_print_value): Ditto.
10303 * exceptions.c (catch_exceptions_with_msg):
10304 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10305 * frame.c (get_frame_address_in_block_if_available): Ditto.
10306 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10307 (i386_sigtramp_frame_cache): Ditto.
10308 * infcmd.c (post_create_inferior): Ditto.
10309 * linespec.c (parse_linespec, find_linespec_symbols):
10310 * p-valprint.c (pascal_object_print_value): Ditto.
10311 * parse.c (parse_expression_for_completion): Ditto.
10312 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10313 * remote.c (remote_get_noisy_reply): Ditto.
10314 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10315 * solib-svr4.c (solib_svr4_r_map): Ditto.
10316
f873665f 103172015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
10318
10319 * common/common-utils.h (startswith): New inline function.
10320 All places where this logic was used updated to use the above.
10321
68901c4d
PA
103222015-03-05 Pedro Alves <palves@redhat.com>
10323
10324 PR gdb/18002
10325 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10326 after reading the breakpoint's shadow memory.
10327
2dcb2b1a
MK
103282015-03-05 Mark Kettenis <kettenis@gnu.org>
10329
10330 * hppabsd-nat.c: Remove file.
10331 * hppaobsd-nat.c: New file.
10332 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10333 hppaobsd-nat.c.
10334 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10335 hppaobsd-nat.o.
10336
527a273a
PA
103372015-03-04 Pedro Alves <palves@redhat.com>
10338
10339 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10340 (target_decr_pc_after_break): Delete declaration.
10341 * target.c (default_target_decr_pc_after_break)
10342 (target_decr_pc_after_break): Delete.
10343 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10344 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10345 * linux-thread-db.c (check_event): Likewise.
10346 * infrun.c (adjust_pc_after_break): Likewise.
10347 * darwin-nat.c (cancel_breakpoint): Likewise.
10348 * aix-thread.c (aix_thread_wait): Likewise.
10349 * target-delegates.c: Regenerate.
10350
faf09f01
PA
103512015-03-04 Pedro Alves <palves@redhat.com>
10352
10353 * linux-nat.c (save_sigtrap): Check for breakpoints before
10354 checking watchpoints.
10355 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10356 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10357 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10358 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10359 (linux_nat_stopped_by_sw_breakpoint)
10360 (linux_nat_supports_stopped_by_sw_breakpoint)
10361 (linux_nat_stopped_by_hw_breakpoint)
10362 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10363 (linux_nat_wait_1): Don't re-increment the PC if relying on
10364 SIGTRAP's siginfo->si_code.
10365 (linux_nat_add_target): Install new target methods.
10366 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10367 offset if the target already adjusted the PC.
10368 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10369 (GDB_ARCH_TRAP_BRKPT): New.
10370 (TRAP_HWBKPT): Define if not already defined.
10371
f7e6eed5
PA
103722015-03-04 Pedro Alves <palves@redhat.com>
10373
10374 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10375 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10376 Delete field.
10377 <stop_reason>: New field.
10378 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10379 (packet_set_cmd_state): New function.
10380 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10381 features.
10382 (remote_query_supported): If not disabled with the corresponding
10383 "set remote foo-packet" command, report support for the swbreak
10384 and hwbreak features.
10385 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10386 field.
10387 <stop_reason>: New field.
10388 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10389 (remote_wait_as): Adjust.
10390 (remote_stopped_by_sw_breakpoint)
10391 (remote_supports_stopped_by_sw_breakpoint)
10392 (remote_stopped_by_hw_breakpoint)
10393 (remote_supports_stopped_by_hw_breakpoint): New functions.
10394 (remote_stopped_by_watchpoint): New function.
10395 (init_remote_ops): Install them.
10396 (_initialize_remote): Register new "set/show remote
10397 swbreak-feature-packet" and "set/show remote
10398 swbreak-feature-packet" commands.
10399
9e8915c6
PA
104002015-03-04 Pedro Alves <palves@redhat.com>
10401
10402 * btrace.h: Include target/waitstatus.h.
10403 (struct btrace_thread_info) <stop_reason>: New field.
10404 * record-btrace.c (record_btrace_step_thread): Use
10405 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10406 (record_btrace_decr_pc_after_break): Delete.
10407 (record_btrace_stopped_by_sw_breakpoint)
10408 (record_btrace_supports_stopped_by_sw_breakpoint)
10409 (record_btrace_stopped_by_hw_breakpoint)
10410 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10411 (init_record_btrace_ops): Install them.
10412 * record-full.c (record_full_hw_watchpoint): Delete and replace
10413 with ...
10414 (record_full_stop_reason): ... this throughout.
10415 (record_full_exec_insn): Adjust.
10416 (record_full_wait_1): Adjust. No longer re-increment the PC.
10417 (record_full_wait_1): Adjust. Use
10418 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10419 (record_full_stopped_by_watchpoint): Adjust.
10420 (record_full_stopped_by_sw_breakpoint)
10421 (record_full_supports_stopped_by_sw_breakpoint)
10422 (record_full_supports_stopped_by_sw_breakpoint)
10423 (record_full_stopped_by_hw_breakpoint)
10424 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10425 (init_record_full_ops, init_record_full_core_ops): Install them.
10426 * record.c (record_check_stopped_by_breakpoint): New function.
10427 * record.h: Include target/waitstatus.h.
10428 (record_check_stopped_by_breakpoint): New declaration.
10429
15c66dd6
PA
104302015-03-04 Pedro Alves <palves@redhat.com>
10431
10432 enum lwp_stop_reason -> enum target_stop_reason
10433 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10434 (linux_nat_stopped_by_watchpoint, status_callback)
10435 (linux_nat_wait_1): Adjust.
10436 * linux-nat.h (enum lwp_stop_reason): Delete.
10437 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10438 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10439 * target/waitstatus.h (enum target_stop_reason): New.
10440
1cf4d951
PA
104412015-03-04 Pedro Alves <palves@redhat.com>
10442
10443 * breakpoint.c (need_moribund_for_location_type): New function.
10444 (bpstat_stop_status): Don't skipping checking moribund locations
10445 of breakpoint types which the target tell caused a stop.
10446 (program_breakpoint_here_p): New function, factored out from ...
10447 (bp_loc_is_permanent): ... this.
10448 (update_global_location_list): Don't create a moribund location if
10449 the target supports reporting stops of the type of the removed
10450 breakpoint.
10451 * breakpoint.h (program_breakpoint_here_p): New declaration.
10452 * infrun.c (adjust_pc_after_break): Return early if the target has
10453 already adjusted the PC. Add comments.
10454 (handle_signal_stop): If nothing explains a signal, and the target
10455 tells us the stop was caused by a software breakpoint, check if
10456 there's a breakpoint instruction in the memory. If so, adjust the
10457 PC before presenting the stop to the user. Otherwise, ignore the
10458 trap. If nothing explains a signal, and the target tells us the
10459 stop was caused by a hardware breakpoint, ignore the trap.
10460 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10461 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10462 to_supports_stopped_by_hw_breakpoint>: New fields.
10463 (target_stopped_by_sw_breakpoint)
10464 (target_supports_stopped_by_sw_breakpoint)
10465 (target_stopped_by_hw_breakpoint)
10466 (target_supports_stopped_by_hw_breakpoint): Define.
10467 * target-delegates.c: Regenerate.
10468
79639e11
PA
104692015-03-04 Pedro Alves <palves@redhat.com>
10470
10471 * infrun.c (follow_fork_inferior): Use the whole of the
10472 inferior_ptid and pending_follow.related_pid ptids instead of
10473 building ptids from the process components. Adjust verbose output
10474 to use target_pid_to_str.
10475 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10476 inferior_ptid and pending_follow.related_pid ptids instead of
10477 building ptids from the process components.
10478
e85e8e5e
MK
104792015-03-04 Mark Kettenis <kettenis@gnu.org>
10480
10481 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10482 (inf_ptrace_insert_fork_catchpoint): New function.
10483 (inf_ptrace_remove_fork_catchpoint): New function.
10484 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10485
87de11c0
AA
104862015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10487
10488 * s390-linux-tdep.c (s390_register_name): Return empty string
10489 instead of NULL for registers that shouldn't be visible.
10490
d851a69a
AA
104912015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10492
10493 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10494 XML file for 64-bit targets.
10495
b072f6c1
SM
104962015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10497
10498 * target.h (find_default_create_inferior): Remove declaration.
10499 (find_default_attach): Likewise.
10500
c1593e4f
PA
105012015-03-03 Pedro Alves <palves@redhat.com>
10502
10503 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10504 Use ptid_get_pid to get the overall process id when resuming all
10505 threads.
10506
90ad5e1d
PA
105072015-03-03 Pedro Alves <palves@redhat.com>
10508
10509 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10510 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10511 * inf-ptrace.c (get_ptrace_pid): New function.
10512 (inf_ptrace_resume): Use it.
10513 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10514 to the lower layer.
10515
d68e53f4
MM
105162015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10517
10518 * nat/linux-btrace.c: Include sys/utsname.h.
10519 (linux_determine_kernel_ptr_bits): New.
10520 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10521 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10522 ptr_bits.
10523
986b6601
MM
105242015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10525
10526 * btrace.c (ftrace_update_function): Treat return as tailcall for
10527 "_dl_runtime_resolve".
10528
ce0dfbea
MM
105292015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10530
10531 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10532 * btrace.c (ftrace_debug): Do not print the line range.
10533 (ftrace_skip_file, ftrace_update_lines): Remove.
10534 (ftrace_new_function): Remove lbegin and lend initialization.
10535 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10536 * record-btrace.c (btrace_compute_src_line_range): New.
10537 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10538
95e50b27
PA
105392015-03-02 Pedro Alves <palves@redhat.com>
10540
10541 * infrun.c (follow_exec): Delete all threads of the process except
10542 the event thread. Extended comments.
10543
00e474c2
JB
105442015-03-02 Joel Brobecker <brobecker@adacore.com>
10545
10546 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10547
cc7039d3
JB
105482015-03-02 Joel Brobecker <brobecker@adacore.com>
10549
10550 * utils.h: Remove <stdbool.h> #include.
10551 (producer_is_gcc): Change return type to "int".
10552 * utils.c (producer_is_gcc): Change return type to int.
10553 Return 1 instead of true, and 0 instead of false.
10554 Adjust function documentation accordingly.
10555
550bdf96
AA
105562015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10557
10558 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10559 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10560 present.
10561 (s390_linux_store_inferior_registers): Likewise.
10562 (s390_get_hwcap): Remove function. Embed its logic...
10563 (s390_read_description): ...here. Yield a target description with
10564 vector registers if applicable.
10565 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10566 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10567 "features/s390x-tevx-linux64.c".
10568 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10569 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10570 for "GNU/Linux-specific registers".
10571 (s390_dwarf_reg_r0l): New enum value.
10572 (s390_dwarf_reg_to_regnum): Support vector registers.
10573 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10574 of GPR lower halves.
10575 (regnum_is_vxr_full): New function.
10576 (s390_register_name): New function.
10577 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10578 f0-f15 and v0l-v15l.
10579 (s390_pseudo_register_type): Likewise.
10580 (s390_pseudo_register_read): Likewise.
10581 (s390_pseudo_register_write): Likewise.
10582 (s390_value_from_register): Account for the fact that values are
10583 placed left-justified in vector registers.
10584 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10585 the vector reggroup and omit them from the general reggroup.
10586 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10587 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10588 (s390_iterate_over_regset_sections): Add iterations for the two
10589 new vector regsets.
10590 (s390_core_read_description): Yield a target description with
10591 vector registers if applicable.
10592 (s390_gdbarch_init): Handle target descriptions with vector
10593 registers. Add "register_name" gdbarch method.
10594 (_initialize_s390_tdep): Call new tdesc initialization functions.
10595 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10596 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10597 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10598 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10599 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10600 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10601 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10602 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10603 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10604 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10605 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10606 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10607 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10608 (S390_NUM_REGS): Adjust value.
10609 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10610 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10611 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10612 * NEWS: Announce S/390 vector register support.
10613
446899e4
AA
106142015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10615
10616 * features/s390-tevx-linux64.xml: New file.
10617 * features/s390-vx-linux64.xml: New file.
10618 * features/s390-vx.xml: New file.
10619 * features/s390x-tevx-linux64.xml: New file.
10620 * features/s390x-vx-linux64.xml: New file.
10621 * features/Makefile (WHICH): Add s390-vx-linux64,
10622 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10623 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10624 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10625 macros.
10626 * features/s390-tevx-linux64.c: New generated file.
10627 * features/s390-vx-linux64.c: Likewise.
10628 * features/s390x-tevx-linux64.c: Likewise.
10629 * features/s390x-vx-linux64.c: Likewise.
10630 * regformats/s390-tevx-linux64.dat: Likewise.
10631 * regformats/s390-vx-linux64.dat: Likewise.
10632 * regformats/s390x-tevx-linux64.dat: Likewise.
10633 * regformats/s390x-vx-linux64.dat: Likewise.
10634
b7236fbe
DE
106352015-02-28 Doug Evans <xdje42@gmail.com>
10636
10637 * symtab.h (struct symtab) <next>: Fix comment.
10638
02e62830
SM
106392015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10640
10641 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10642 python_GdbMethods.
10643
bf36a1e7
PA
106442015-02-27 Pedro Alves <palves@redhat.com>
10645
10646 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10647
ad6aff7d
PA
106482015-02-27 Pedro Alves <palves@redhat.com>
10649
10650 * common/common-exceptions.h (exception_none): Declare.
10651 * common/common-exceptions.c (exception_none): Moved from
10652 exceptions.c.
10653 (exceptions_state_mc_init): Use exception_none.
10654 * exceptions.c (exception_none): Move to
10655 common/common-exceptions.c.
10656 * exceptions.h (exception_none): Move to
10657 common/common-exceptions.h.
10658
97c18565
PA
106592015-02-27 Pedro Alves <palves@redhat.com>
10660
10661 * main.c (catch_command_errors, catch_command_errors_const):
10662 Remove 'mask' argument. Adjust.
10663 (captured_main): Adjust callers.
10664
e992c591
PA
106652015-02-27 Pedro Alves <palves@redhat.com>
10666
10667 * python/python-internal.h: Include "extension-priv.h".
10668
64166036
PA
106692015-02-27 Pedro Alves <palves@redhat.com>
10670
10671 * breakpoint.h (enum print_stop_action): Move further up in the
10672 file.
10673
8a526fa6
PA
106742015-02-27 Pedro Alves <palves@redhat.com>
10675
10676 * gdbarch.sh: Include regcache.h.
10677 * gdbarch.h: Regenerate.
10678
0fa9c223
PA
106792015-02-27 Pedro Alves <palves@redhat.com>
10680
10681 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10682 Remove duplicate const.
10683 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10684 duplicate const.
10685
7cf99fb1
PA
106862015-02-27 Pedro Alves <palves@redhat.com>
10687
10688 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10689 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10690 * features/feature_to_c.sh: Tag the generated xml_builtin array
10691 with extern const in C++ mode.
10692
1424c16e
TT
106932015-02-27 Tom Tromey <tromey@redhat.com>
10694
10695 * minidebug.c (struct lzma_stream): Rename to ...
10696 (struct gdb_lzma_stream): ... this.
10697 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10698
10367c7c
PA
106992015-02-27 Pedro Alves <palves@redhat.com>
10700
10701 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10702 function.
10703 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10704 (mi_cmd_stack_list_variables): Use it.
10705
4180215b
PA
107062015-02-27 Pedro Alves <palves@redhat.com>
10707
10708 * x86-linux-nat.c (u_debugreg_offset): New function.
10709 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10710
2f56f7c3
PA
107112015-02-27 Pedro Alves <palves@redhat.com>
10712
10713 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10714 declaration.
10715 Include break-common.h.
10716
570dc176
TT
107172015-02-27 Tom Tromey <tromey@redhat.com>
10718 Pedro Alves <palves@redhat.com>
10719
10720 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10721 local used to iterate over enums.
10722 * completer.c (signal_completer): Likewise.
10723 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10724 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10725 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10726 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10727 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10728 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10729 * tui-wingeneral.c (tui_refresh_all): Likewise.
10730
68c14faa
PA
107312015-02-27 Pedro Alves <palves@redhat.com>
10732
10733 * target.h: Include "infrun.h".
10734
749bab01
PA
107352015-02-27 Pedro Alves <palves@redhat.com>
10736
10737 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10738
3c14e5a3
PA
107392015-02-27 Pedro Alves <palves@redhat.com>
10740
10741 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10742 (IPA_SYM): Use it.
10743 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10744
56000a98
PA
107452015-02-27 Pedro Alves <palves@redhat.com>
10746
10747 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10748 cli_mld_erase_entire_line, and make it extern "C".
10749 * common/common-defs.h (EXTERN_C): New.
10750 * completer.c (_rl_completion_prefix_display_length)
10751 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10752 out of gdb_display_match_list_1.
10753 (_rl_qsort_string_compare): Move declaration out of
10754 gdb_display_match_list_1, and make it extern "C".
10755 * defs.h (re_comp): Use EXTERN_C.
10756 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10757 and make it extern "C".
10758 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10759 and make it extern "C".
10760 (main): Move declaration out of maintenance_set_profile_cmd.
10761 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10762 EXTERN_C.
10763
bcabf420
PA
107642015-02-27 Pedro Alves <palves@redhat.com>
10765
10766 * python/python.c (GdbMethods): Rename to ...
10767 (python_GdbMethods): ... this and make extern.
10768 (GdbModuleDef): Rename to ...
10769 (python_GdbModuleDef): ... this and make extern.
10770
928dbe07
PA
107712015-02-27 Pedro Alves <palves@redhat.com>
10772
10773 * record-btrace.c (set_record_btrace_cmdlist)
10774 (show_record_btrace_cmdlist): Remove redefinitions.
10775
52059ffd
TT
107762015-02-27 Tom Tromey <tromey@redhat.com>
10777 Pedro Alves <palves@redhat.com>
10778
10779 * dwarf2-frame.c (enum cfa_how_kind, struct
10780 dwarf2_frame_state_reg_info): Move out of struct
10781 dwarf2_frame_state.
10782 * dwarf2read.c (struct tu_stats): Move out of struct
10783 dwarf2_per_objfile.
10784 (struct file_entry): Move out of struct line_header.
10785 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10786 typedef_field_list): Move out of struct field_info.
10787 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10788 Move out of struct dynamic_prop.
10789 (union type_owner, union field_location, struct field, struct
10790 range_bounds, union type_specific): Move out of struct main_type.
10791 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10792 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10793 (struct call_site_target, union call_site_parameter_u, struct
10794 call_site_parameter): Move out of struct call_site.
10795 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10796 m32c_prologue.
10797 (enum srcdest_kind): Move out of struct srcdest.
10798 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10799 * prologue-value.h (enum prologue_value_kind): Move out of struct
10800 prologue_value.
10801 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10802 gdbarch_tdep.
10803 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10804 out of struct field_info.
10805 * symfile.h (struct other_sections): Move out of struct
10806 section_addr_info.
10807 * symtab.c (struct symbol_cache_slot): Move out struct
10808 block_symbol_cache.
10809 * target-descriptions.c (enum tdesc_type_kind): Move out of
10810 typedef struct tdesc_type.
10811 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10812 struct tui_line_or_address.
10813 * value.c (enum internalvar_kind, union internalvar_data): Move
10814 out of struct internalvar.
10815 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10816 gdbarch_tdep.
10817
fe978cb0
PA
108182015-02-27 Tom Tromey <tromey@redhat.com>
10819 Pedro Alves <palves@redhat.com>
10820
10821 Rename symbols whose names are reserved C++ keywords throughout.
10822
3bc3d82a
PA
108232015-02-27 Pedro Alves <palves@redhat.com>
10824
10825 * Makefile.in (COMPILER): New, get it from autoconf.
10826 (COMPILE.pre, CC_LD): Use COMPILER.
10827 (CXX): Get from autoconf instead.
10828 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10829 * acinclude.m4: Include build-with-cxx.m4.
10830 * build-with-cxx.m4: New file.
10831 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10832 Disable -Werror by default if building in C++ mode.
10833 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10834 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10835 Run supported-warning-flags tests with the C++ compiler.
10836 Save/restore CXXFLAGS too.
10837 * configure: Regenerate.
10838
07697489
PA
108392015-02-27 Pedro Alves <palves@redhat.com>
10840
10841 * libiberty.m4: New file.
10842 * acinclude.m4: Include libiberty.m4.
10843 * configure.ac: Call libiberty_INIT.
10844 * config.in, configure: Regenerate.
10845
60abeae4
AA
108462015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10847
10848 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10849 31-bit targets, but 64-bit targets as well.
10850 (s390_gnu_triplet_regexp): New function.
10851 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10852 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10853 method.
10854
f44466fb 108552015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
10856
10857 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10858 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10859 from CONTEXT_DEBUGGER.
10860
0def5aaa
DE
108612015-02-26 Doug Evans <dje@google.com>
10862
10863 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10864 CHECK_TYPEDEF.
10865 (set_type_vptr_fieldno): Ditto.
10866 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10867 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10868
77b64a49
PA
108692015-02-26 Pedro Alves <palves@redhat.com>
10870
10871 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10872 * complaints.c (vcomplaint): Pass argument FMT directly to
10873 printf-like functions instead of complaint->fmt.
10874 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10875 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10876 * compile/compile-loc2c.c (pushf, unary, binary): Add
10877 ATTRIBUTE_PRINTF.
10878 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10879 to pushf.
10880 (BINARY): Pass string literal as format string to 'binary'.
10881 * compile/compile-object-load.c (link_callbacks_einfo): Add
10882 ATTRIBUTE_PRINTF.
10883 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10884
532f44ed
PA
108852015-02-26 Pedro Alves <palves@redhat.com>
10886
10887 * windows-termcap.c: Rename to ...
10888 * stub-termcap.c: ... this. Adjust header line.
10889 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10890 windows-termcap.c.
10891 * configure: Regenerate.
10892 * configure.ac: Refer to stub-termcap.o instead of
10893 windows-termcap.o.
10894 * gdb_curses.h: Mention stub-termcap.c instead of
10895 windows-termcap.c.
10896
081a1c2c
JK
108972015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10898
10899 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10900 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10901
2f41223f
AT
109022015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10903
10904 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10905
80c57053
JK
109062015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10907
10908 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10909 bfd_canonicalize_symtab.
10910
cf424aef
JB
109112015-02-25 John Baldwin <jhb@FreeBSD.org>
10912
10913 * amd64fbsd-nat.c: Include sys/user.h.
10914 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10915 instead of KERN_PS_STRINGS to locate the signal trampoline.
10916 * i386fbsd-nat.c: Include sys/user.h.
10917 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10918 instead of KERN_PS_STRINGS to locate the signal trampoline.
10919 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10920 (amd64fbsd_sigtramp_p): New.
10921 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10922 longer set default values.
10923 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10924 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10925 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10926 (i386fbsd_freebsd4_sigtramp_start)
10927 (i386fbsd_freebsd4_sigtramp_middle)
10928 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10929 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10930 (i386fbsd_sigtramp_p): New.
10931 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10932 longer set default values.
10933 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10934
c5cb74ee
JB
109352015-02-25 John Baldwin <jhb@freebsd.org>
10936
10937 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10938 get_frame_register instead of frame_unwind_register_unsigned.
10939
17487d85
JK
109402015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10941
10942 PR build/18033
10943 * compile/compile-c-support.c (c_compute_program): Change // comment.
10944 * compile/compile-object-load.c (setup_sections): Change // comment.
10945
9357a9e6
JB
109462015-02-26 Joel Brobecker <brobecker@adacore.com>
10947
10948 PR build/18033:
10949 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10950
1f10ba14
PA
109512015-02-23 Pedro Alves <palves@redhat.com>
10952
10953 * remote.c (skip_to_semicolon): New function.
10954 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10955 special case the stop reasons that look like hex numbers
10956 upfront. Instead handle real register numbers after matching
10957 all the known stop reasons.
10958
96553a0c
DE
109592015-02-21 Doug Evans <dje@google.com>
10960
10961 PR c++/17976, symtab/17821
10962 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10963 is_in_anonymous. All callers updated.
10964 (find_symbol_in_baseclass): Ditto.
10965 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10966 for symbols in an anonymous namespace.
10967 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10968 DW_AT_name directly.
10969 (dwarf2_name): Convert missing namespace name to
10970 CP_ANONYMOUS_NAMESPACE_STR.
10971
2db9a427
PA
109722015-02-20 Pedro Alves <palves@redhat.com>
10973
10974 * linux-nat.c (linux_handle_extended_wait): Call
10975 thread_db_notice_clone whenever a new clone LWP is detected.
10976 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10977 functions.
10978 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10979 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10980 (linux_unstop_all_lwps): Declare.
10981 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10982 (thread_get_info_callback): Delete.
10983 (thread_from_lwp): Use td_thr_get_info and record_thread.
10984 (thread_db_attach_lwp): Delete.
10985 (thread_db_notice_clone): New function.
10986 (try_thread_db_load_1): If /proc is mounted and shows the
10987 process'es task list, walk over all LWPs and call thread_from_lwp
10988 instead of relying on td_ta_thr_iter.
10989 (attach_thread): Don't call check_thread_signals here. Split the
10990 tail part of the function (which adds the thread to the core GDB
10991 thread list) to ...
10992 (record_thread): ... this function. Call check_thread_signals
10993 here.
10994 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10995 call thread_from_lwp.
10996 (thread_db_update_thread_list): Rename to ...
10997 (thread_db_update_thread_list_org): ... this.
10998 (thread_db_update_thread_list): New function.
10999 (thread_db_find_thread_from_tid): Delete.
11000 (thread_db_get_ada_task_ptid): Simplify.
11001 * nat/linux-procfs.c: Include <sys/stat.h>.
11002 (linux_proc_task_list_dir_exists): New function.
11003 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11004
3b27ef47
PA
110052015-02-20 Pedro Alves <palves@redhat.com>
11006
11007 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11008 main LWP. Handle the case of waitpid returning 0 if we're already
11009 attached to the LWP. Don't set the LWP's last_resume_kind to
11010 resume_stop if we already knew about the LWP.
11011 (linux_nat_filter_event): Add debug logs.
11012
1cc28231
PA
110132015-02-20 Pedro Alves <palves@redhat.com>
11014
11015 * target.h (forward_target_decr_pc_after_break): Delete
11016 declaration.
11017
5c5019c2
PA
110182015-02-20 Pedro Alves <palves@redhat.com>
11019
11020 PR threads/18006
11021 * linux-thread-db.c (thread_get_info_callback): Return early if
11022 the thread's lwp id is -1.
11023
f3978e91
JB
110242015-02-20 Joel Brobecker <brobecker@adacore.com>
11025
11026 GDB 7.9 released.
11027
ffdf88ec
SE
110282015-02-19 Steve Ellcey <sellcey@imgtec.com>
11029
11030 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11031 (dtrace_get_probes) Change type of variable 'dof'.
11032
c9587f88
AT
110332015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11034
11035 PR breakpoints/16812
11036 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11037 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11038 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11039
53cf2ee0
DT
110402015-02-19 David Taylor <dtaylor@emc.com>
11041
11042 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11043
acfe0940
PP
110442015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11045
11046 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11047 function.
11048 (tui_putc): Don't call tui_handle_resize_during_io.
11049 (tui_getc): Likewise.
11050 (tui_mld_getc): Likewise.
11051 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11052 (tui_sigwinch_token): New static variable.
11053 (tui_initialize_win): Adjust documentation. Set
11054 tui_sigwinch_token.
11055 (tui_async_resize_screen): New asynchronous callback.
11056 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11057 invoke tui_async_resize_screen.
11058
f6a88844
JM
110592015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11060
11061 * configure: Regenerated.
11062 * configure.ac: Use GDB_AC_TRANSFORM.
11063 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11064 * acinclude.m4: sinclude transform.m4.
11065 * transform.m4: New file.
11066 (GDB_AC_TRANSFORM): New macro.
11067
b05e3b0d
JM
110682015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11069
11070 * NEWS: Announce the support for DTrace SDT probes.
11071
c3e3045e
JM
110722015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11073
11074 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11075 (amd64_dtrace_parse_probe_argument): New function.
11076 (amd64_dtrace_probe_is_enabled): Likewise.
11077 (amd64_dtrace_enable_probe): Likewise.
11078 (amd64_dtrace_disable_probe): Likewise.
11079 (amd64_linux_init_abi): Register the
11080 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11081 `gdbarch_dtrace_disable_probe' and
11082 `gdbarch_dtrace_probe_is_enabled' hooks.
11083 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11084 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11085 (amd64_dtrace_enable_probe_sequence): Likewise.
11086 (amd64_dtrace_disable_probe_sequence): Likewise.
11087
d4777acb
JM
110882015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11089
11090 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11091 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11092 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11093 handle ELF files.
11094 * Makefile.in (SFILES): dtrace-probe.c added.
11095 * configure: Regenerate.
11096 * dtrace-probe.c: New file.
11097 (SHT_SUNW_dof): New constant.
11098 (dtrace_probe_type): New enum.
11099 (dtrace_probe_arg): New struct.
11100 (dtrace_probe_arg_s): New typedef.
11101 (struct dtrace_probe_enabler): New struct.
11102 (dtrace_probe_enabler_s): New typedef.
11103 (dtrace_probe): New struct.
11104 (dtrace_probe_is_linespec): New function.
11105 (dtrace_dof_sect_type): New enum.
11106 (dtrace_dof_dofh_ident): Likewise.
11107 (dtrace_dof_encoding): Likewise.
11108 (DTRACE_DOF_ENCODE_LSB): Likewise.
11109 (DTRACE_DOF_ENCODE_MSB): Likewise.
11110 (dtrace_dof_hdr): New struct.
11111 (dtrace_dof_sect): Likewise.
11112 (dtrace_dof_provider): Likewise.
11113 (dtrace_dof_probe): Likewise.
11114 (DOF_UINT): New macro.
11115 (DTRACE_DOF_PTR): Likewise.
11116 (DTRACE_DOF_SECT): Likewise.
11117 (dtrace_process_dof_probe): New function.
11118 (dtrace_process_dof): Likewise.
11119 (dtrace_build_arg_exprs): Likewise.
11120 (dtrace_get_arg): Likewise.
11121 (dtrace_get_probes): Likewise.
11122 (dtrace_get_probe_argument_count): Likewise.
11123 (dtrace_can_evaluate_probe_arguments): Likewise.
11124 (dtrace_evaluate_probe_argument): Likewise.
11125 (dtrace_compile_to_ax): Likewise.
11126 (dtrace_probe_destroy): Likewise.
11127 (dtrace_gen_info_probes_table_header): Likewise.
11128 (dtrace_gen_info_probes_table_values): Likewise.
11129 (dtrace_probe_is_enabled): Likewise.
11130 (dtrace_probe_ops): New variable.
11131 (info_probes_dtrace_command): New function.
11132 (_initialize_dtrace_probe): Likewise.
11133 (dtrace_type_name): Likewise.
11134
8b367e17
JM
111352015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11136
11137 * gdbarch.sh (dtrace_parse_probe_argument): New.
11138 (dtrace_probe_is_enabled): Likewise.
11139 (dtrace_enable_probe): Likewise.
11140 (dtrace_disable_probe): Likewise.
11141 * gdbarch.c: Regenerate.
11142 * gdbarch.h: Regenerate.
11143
9aca2ff8
JM
111442015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11145
11146 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11147 stap_probe_ops for `enable_probe' and `disable_probe'.
11148 * probe.c (enable_probes_command): New function.
11149 (disable_probes_command): Likewise.
11150 (_initialize_probe): Define the cli commands `enable probe' and
11151 `disable probe'.
11152 (parse_probe_linespec): New function.
11153 (info_probes_for_ops): Use parse_probe_linespec.
11154 * probe.h (probe_ops): New hooks `enable_probe' and
11155 `disable_probe'.
11156
03e98035
JM
111572015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11158
11159 * probe.c (compute_probe_arg): Moved from stap-probe.c
11160 (compile_probe_arg): Likewise.
11161 (probe_funcs): Likewise.
11162 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11163 (compile_probe_arg): Likewise.
11164 (probe_funcs): Likewise.
11165
6f9b8491
JM
111662015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11167
11168 * probe.c (print_ui_out_not_applicables): New function.
11169 (exists_probe_with_pops): Likewise.
11170 (info_probes_for_ops): Do not include column headers for probe
11171 types for which no probe has been actually found on any object.
11172 Also invoke `print_ui_out_not_applicables' in order to match the
11173 column rows with the header when probes of several types are
11174 listed.
11175 Print the "Type" column.
11176 * probe.h (probe_ops): Added a new probe operation `type_name'.
11177 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11178 (stap_type_name): New function.
11179
69efdff1
PP
111802015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11181
11182 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11183 (key_is_command_char): Delete.
11184
f8e5e23e
PA
111852015-02-17 Pedro Alves <palves@redhat.com>
11186
11187 * tui/tui.c (tui_enable): Resize windows before anything
11188 might show a window.
11189
9f2e0721
MO
111902015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11191
11192 PR gdb/17984
11193 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11194 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11195 call.
11196 * aarch64-tdep.h (tdesc_aarch64): Declare.
11197
171e6b1c
MW
111982015-02-12 Mark Wielaard <mjw@redhat.com>
11199
11200 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11201
d5ff0482
DE
112022015-02-13 Doug Evans <dje@google.com>
11203
11204 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11205 anonymous_namespace to is_in_anonymous for consistency with the rest
11206 of the file.
11207 (cp_lookup_bare_symbol): Fix typo in comment.
11208 (cp_search_static_and_baseclasses): Ditto.
11209 (search_symbol_list): Use vertical space in comment better.
11210 (reset_directive_searched): Ditto. Fix typo.
11211 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11212
9f04ac5f
YQ
112132015-02-13 Yao Qi <yao.qi@arm.com>
11214
11215 * MAINTAINERS: Update my email address.
11216
013d0319
DE
112172015-02-12 Doug Evans <dje@google.com>
11218
b615dd20 11219 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 11220
9a7e538e
DE
112212015-02-12 Doug Evans <dje@google.com>
11222
11223 * completer.c (complete_line): Remove incorrect comment.
11224
e1fcd575
JK
112252015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11226
11227 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11228 (py_print_frame): Use RETURN_MASK_ERROR.
11229
b99bf4e3
JK
112302015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11231
11232 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11233 function comment. Wrap all function that can throw in cleanups.
11234 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11235 cleanups.
11236
800eb1ce
JK
112372015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11238
11239 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11240 Remove the error label.
11241
34019068
JK
112422015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11243
11244 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11245 with goto first, indent the former else codepath left. Put variable
11246 'elided' to a new inner block.
11247
8d4a54e2
JK
112482015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11249
11250 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11251
18ad82c1
PA
112522015-02-11 Pedro Alves <palves@redhat.com>
11253
11254 * xcoffread.c (within_function): Delete.
11255
e36122e9
TT
112562015-02-11 Tom Tromey <tromey@redhat.com>
11257 Pedro Alves <palves@redhat.com>
11258
11259 * breakpoint.c (base_breakpoint_ops): Delete.
11260 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11261 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11262 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11263 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11264 * python/py-arch.c (arch_object_type): Make extern.
11265 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11266 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11267 * python/py-cmd.c (cmdpy_object_type): Make extern.
11268 * python/py-continueevent.c (continue_event_object_type)
11269 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11270 parameter. Update all callers.
11271 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11272 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11273 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11274 * python/py-function.c (fnpy_object_type): Make extern.
11275 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11276 * python/py-infevents.c (call_pre_event_object_type)
11277 (inferior_call_post_event_object_type).
11278 (memory_changed_event_object_type): Make extern.
11279 * python/py-infthread.c (thread_object_type): Make extern.
11280 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11281 * python/py-linetable.c (linetable_entry_object_type)
11282 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11283 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11284 (clear_objfiles_event_object_type): Make extern.
11285 * python/py-objfile.c (objfile_object_type): Make extern.
11286 * python/py-param.c (parmpy_object_type): Make extern.
11287 * python/py-progspace.c (pspace_object_type): Make extern.
11288 * python/py-signalevent.c (signal_event_object_type): Make extern.
11289 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11290 * python/py-type.c (type_object_type, field_object_type)
11291 (type_iterator_object_type): Make extern.
11292 * python/python.c (python_extension_script_ops)
11293 (python_extension_ops): Make extern.
11294 * stap-probe.c (stap_probe_ops): Make extern.
11295
0703599a
PA
112962015-02-11 Pedro Alves <pedro@codesourcery.com>
11297
11298 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11299 because the event thread is not the current thread.
11300
eaaf76ab
DE
113012015-02-11 Doug Evans <xdje42@gmail.com>
11302
11303 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11304 been initialized yet, return NULL.
11305
e7d52ed3
DE
113062015-02-11 Doug Evans <dje@google.com>
11307
11308 * symfile.h (new_symfile_objfile): Delete.
11309 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11310 All callers updated.
11311
fc6b1256
PP
113122015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11313
11314 * tui/tui-io.c (tui_handle_resize_during_io): Call
11315 tui_update_gdb_sizes() after resizing the screen.
11316 * tui/tui.c (tui_enable): Resize the terminal before
11317 calling tui_update_gdb_sizes().
11318
d9080678
PP
113192015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11320
11321 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11322 line before printing a newline.
11323
9f615e3a
MW
113242015-02-11 Mark Wielaard <mjw@redhat.com>
11325
11326 * utils.c (producer_is_gcc): Return true or false.
11327
d9080678 113282015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
11329
11330 * utils.h (producer_is_gcc): Change return type to bool. Add major
11331 argument.
11332 * utils.c (producer_is_gcc): Likewise.
11333 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11334 * dwarf2read.c (check_producer): Likewise.
11335
b052c4fb
PA
113362015-02-10 Pedro Alves <palves@redhat.com>
11337
11338 * infrun.c (displaced_step_fixup): Switch to the event thread
11339 before calling gdbarch_displaced_step_fixup.
11340
3ac240d4
AT
113412015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11342
11343 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11344
c1cc6152
SM
113452015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11346
11347 * ada-varobj.c (ada_name_of_child): Constify parent.
11348 (ada_path_expr_of_child): Same.
11349 (ada_value_of_child): Same.
11350 (ada_type_of_child): Same.
11351 * c-varobj.c (c_is_path_expr_parent): Same.
11352 (c_describe_child): Same.
11353 (c_name_of_child): Same.
11354 (c_value_of_child): Same.
11355 (c_type_of_child): Same.
11356 (cplus_number_of_children): Same.
11357 (cplus_describe_child): Constify var.
11358 (cplus_name_of_child): Constify parent.
11359 (cplus_value_of_child): Same.
11360 (cplus_type_of_child): Same.
11361 * jv-varobj.c (java_name_of_child): Same.
11362 (java_value_of_child): Same.
11363 (java_type_of_child): Same.
11364 * varobj.c (value_of_child): Same.
11365 (varobj_default_is_path_expr_parent): Constify var, parent and return
11366 value.
11367 (varobj_get_path_expr): Constify var, modify path_expr through
11368 mutable_var.
11369 (install_new_value): Constify parent.
11370 (value_of_child): Constify parent.
11371 * varobj.h (struct varobj): Constify parent.
11372 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11373 type_of_child.
11374 (varobj_get_path_expr): Constify var.
11375 (varobj_get_path_expr_parent): Constify var and return value.
11376
c1ee9414
LM
113772015-02-10 Luis Machado <lgustavo@codesourcery.com>
11378
11379 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11380 (arm_prologue_this_id): Move PC and SP limit checks to
11381 arm_prologue_unwind_stop_reason.
11382 (arm_prologue_unwind) <stop_reason> : Set to
11383 arm_prologue_unwind_stop_reason.
11384
f7de9aab
MW
113852015-02-09 Mark Wielaard <mjw@redhat.com>
11386
11387 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11388 DW_LANG_Fortran08 as language_fortran.
11389
0b24eb2d
SDJ
113902015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11391
11392 PR remote/17946
11393 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11394 of pointer against char.
11395
a2c2acaf
MW
113962015-02-09 Mark Wielaard <mjw@redhat.com>
11397
11398 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11399 (c_type_print_modifier): Likewise.
11400 * dwarf2read.c (read_tag_atomic_type): New function.
11401 (read_type_die_1): Handle DW_TAG_atomic_type.
11402 * gdbtypes.c (make_atomic_type): New function.
11403 (recursive_dump_type): Handle TYPE_ATOMIC.
11404 * gdbtypes.h (enum type_flag_values): Renumber.
11405 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11406 (TYPE_ATOMIC): New macro.
11407 (make_atomic_type): Declare.
11408
31fd9caa
MM
114092015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11410
11411 * btrace.c (ftrace_find_call): Skip gaps.
11412 (ftrace_new_function): Initialize level.
11413 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11414 (ftrace_new_switch): Update
11415 level computation.
11416 (ftrace_new_gap): New.
11417 (ftrace_update_function): Create new function after gap.
11418 (btrace_compute_ftrace_bts): Create gap on error.
11419 (btrace_stitch_bts): Update parameters. Clear trace if it
11420 becomes empty.
11421 (btrace_stitch_trace): Update parameters. Update callers.
11422 (btrace_clear): Reset the number of gaps.
11423 (btrace_insn_get): Return NULL if the iterator points to a gap.
11424 (btrace_insn_number): Return zero if the iterator points to a gap.
11425 (btrace_insn_end): Allow gaps at the end.
11426 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11427 (btrace_find_insn_by_number): Assert that the found iterator does
11428 not point to a gap.
11429 (btrace_call_next, btrace_call_prev): Assert that the last function
11430 is not a gap.
11431 * btrace.h (btrace_bts_error): New.
11432 (btrace_function): Update comment.
11433 (btrace_function) <insn, insn_offset, number>: Update comment.
11434 (btrace_function) <errcode>: New.
11435 (btrace_thread_info) <ngaps>: New.
11436 (btrace_thread_info) <replay>: Update comment.
11437 (btrace_insn_get): Update comment.
11438 * record-btrace.c (btrace_ui_out_decode_error): New.
11439 (record_btrace_info): Print number of gaps.
11440 (btrace_insn_history, btrace_call_history): Call
11441 btrace_ui_out_decode_error for gaps.
11442 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11443
afb778a2
MM
114442015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11445
11446 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11447 * nat/linux-btrace.c: (btrace_this_cpu): New.
11448 (cpu_supports_bts): Call btrace_this_cpu.
11449 (intel_supports_bts): Add cpu parameter.
11450
7d5c24b3
MM
114512015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11452
11453 * btrace.h (btrace_insn_class): New.
11454 (btrace_insn) <size, iclass>: New.
11455 * btrace.c (ftrace_find_call): Update parameters. Update users.
11456 Use instruction classification.
11457 (ftrace_new_return): Update parameters. Update users.
11458 (ftrace_update_function): Update parameters. Update users. Use
11459 instruction classification.
11460 (ftrace_update_insns): Update parameters. Update users.
11461 (ftrace_classify_insn): New.
11462 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11463 TRY_CATCH around call to gdb_insn_length.
11464
76235df1
MM
114652015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11466
11467 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11468 Update parameters. Update users.
11469
d33501a5
MM
114702015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11471
11472 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11473 (btrace_conf_bts_attributes): New.
11474 (btrace_conf_children): Add attributes.
11475 * common/btrace-common.h (btrace_config_bts): New.
11476 (btrace_config)<bts>: New.
11477 (btrace_config): Update comment.
11478 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11479 Use config.
11480 * features/btrace-conf.dtd: Increment version. Add size
11481 attribute to bts element.
11482 * record-btrace.c (set_record_btrace_bts_cmdlist,
11483 show_record_btrace_bts_cmdlist): New.
11484 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11485 record_btrace_print_conf, cmd_set_record_btrace_bts,
11486 cmd_show_record_btrace_bts): New.
11487 (record_btrace_info): Call record_btrace_print_conf.
11488 (_initialize_record_btrace): Add commands.
11489 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11490 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11491 (btrace_sync_conf): Synchronize bts size.
11492 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11493 * NEWS: Announce new commands and new packets.
11494
f4abbc16
MM
114952015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11496
11497 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11498 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11499 (x86_linux_btrace_conf): New.
11500 (x86_linux_create_target): Initialize to_btrace_conf.
11501 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11502 Check format. Split into this and ...
11503 (linux_enable_bts): ... this.
11504 (linux_btrace_conf): New.
11505 (perf_event_skip_record): Renamed into ...
11506 (perf_event_skip_bts_record): ... this. Updated users.
11507 (linux_disable_btrace): Split into this and ...
11508 (linux_disable_bts): ... this.
11509 (linux_read_btrace): Check format.
11510 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11511 (linux_btrace_conf): New.
11512 (btrace_target_info)<ptid>: Moved.
11513 (btrace_target_info)<conf>: New.
11514 (btrace_target_info): Split into this and ...
11515 (btrace_tinfo_bts): ... this. Updated users.
11516 * btrace.c (btrace_enable): Update parameters.
11517 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11518 (btrace_conf_children, btrace_conf_attributes)
11519 (btrace_conf_elements): New.
11520 * btrace.h (btrace_enable): Update parameters.
11521 (btrace_conf, parse_xml_btrace_conf): New.
11522 * common/btrace-common.h (btrace_config): New.
11523 * feature/btrace-conf.dtd: New.
11524 * record-btrace.c (record_btrace_conf): New.
11525 (record_btrace_cmdlist): New.
11526 (record_btrace_enable_warn, record_btrace_open): Pass
11527 &record_btrace_conf.
11528 (record_btrace_info): Print recording format.
11529 (cmd_record_btrace_bts_start): New.
11530 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11531 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11532 Add "record bts" alias command.
11533 * remote.c (remote_state)<btrace_config>: New.
11534 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11535 (remote_protocol_features): Add qXfer:btrace-conf:read.
11536 (remote_open_1): Call remote_btrace_reset.
11537 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11538 (btrace_target_info)<conf>: New.
11539 (btrace_sync_conf, btrace_read_config): New.
11540 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11541 btrace_read_conf.
11542 (remote_btrace_conf): New.
11543 (init_remote_ops): Initialize to_btrace_conf.
11544 (_initialize_remote): Add qXfer:btrace-conf packet.
11545 * target.c (target_enable_btrace): Update parameters.
11546 (target_btrace_conf): New.
11547 * target.h (target_enable_btrace): Update parameters.
11548 (target_btrace_conf): New.
11549 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11550 (target_ops)<to_enable_btrace>: Update parameters and comment.
11551 (target_ops)<to_btrace_conf>: New.
11552 * target-delegates: Regenerate.
11553 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11554 (target_debug_print_const_struct_btrace_target_info_p): New.
11555 * NEWS: Announce new command and new packet.
11556
aadf7753
MM
115572015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11558
11559 * nat/linux-btrace.h (perf_event_buffer): New.
11560 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11561 <bts>: ... this.
11562 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11563 (perf_event_buffer_size, perf_event_buffer_begin)
11564 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11565 Updated users.
11566 (perf_event_new_data): New.
11567
043c3577
MM
115682015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11569
11570 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11571 * record-btrace.c (record_btrace_open): Remove call to
11572 target_supports_btrace.
11573 * remote.c (remote_supports_btrace): Update parameters.
11574 * target.c (target_supports_btrace): Update parameters.
11575 * target.h (to_supports_btrace, target_supports_btrace): Update
11576 parameters.
11577 * target-delegates.c: Regenerate.
11578 * target-debug.h (target_debug_print_enum_btrace_format): New.
11579 * nat/linux-btrace.c
11580 (kernel_supports_btrace): Rename into ...
11581 (kernel_supports_bts): ... this. Update users. Update warning text.
11582 (intel_supports_btrace): Rename into ...
11583 (intel_supports_bts): ... this. Update users.
11584 (cpu_supports_btrace): Rename into ...
11585 (cpu_supports_bts): ... this. Update users.
11586 (linux_supports_btrace): Update parameters. Split into this and ...
11587 (linux_supports_bts): ... this.
11588 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11589
734b0e4b
MM
115902015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11591
11592 * Makefile.in (SFILES): Add common/btrace-common.c.
11593 (COMMON_OBS): Add common/btrace-common.o.
11594 (btrace-common.o): Add build rules.
11595 * btrace.c (parse_xml_btrace): Update parameters.
11596 (parse_xml_btrace_block): Set format field.
11597 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11598 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11599 (btrace_compute_ftrace): Split into this and...
11600 (btrace_compute_ftrace_bts): ...this.
11601 (btrace_stitch_trace): Split into this and...
11602 (btrace_stitch_bts): ...this.
11603 * btrace.h (parse_xml_btrace): Update parameters.
11604 (make_cleanup_btrace_data): New.
11605 * common/btrace-common.c: New.
11606 * common/btrace-common.h: Include common-defs.h.
11607 (btrace_block_s): Update comment.
11608 (btrace_format): New.
11609 (btrace_format_string): New.
11610 (btrace_data_bts): New.
11611 (btrace_data): New.
11612 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11613 * remote.c (remote_read_btrace): Update parameters.
11614 * target.c (target_read_btrace): Update parameters.
11615 * target.h (target_read_btrace): Update parameters.
11616 (target_ops)<to_read_btrace>: Update parameters.
11617 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11618 * target-delegates.c: Regenerate.
11619 * target-debug (target_debug_print_struct_btrace_data_p): New.
11620 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11621 (linux_read_bts): ...this.
11622 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11623
bd2e0e9e
DE
116242015-02-06 Doug Evans <dje@google.com>
11625
11626 * remote-m32r-sdi.c: Include symfile.h.
11627
f176c4b5
DE
116282015-02-06 Doug Evans <dje@google.com>
11629
11630 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11631 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11632 to here.
11633
d6c146e9
PA
116342015-02-06 Pedro Alves <palves@redhat.com>
11635
11636 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11637
b9d61307
SM
116382015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11639
11640 PR gdb/15678
11641 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11642 (enable_count_command): Check args for NULL value.
11643
e9fbd043
DE
116442015-02-05 Doug Evans <xdje42@gmail.com>
11645
11646 * guile/scm-frame.c: Fix spelling errors in a comment.
11647
881d5d5d
JK
116482015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11649
11650 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11651 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11652 return type.
11653
20ba1ce6
PA
116542015-02-04 Pedro Alves <palves@redhat.com>
11655
11656 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11657 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11658 returns true.
11659 (resume_stopped_resumed_lwps): Don't check whether the thread is
11660 marked as executing.
11661 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11662
f962539a
AA
116632015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11664
11665 * regset.h (struct regset): Add flags field.
11666 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11667 * corelow.c (get_core_register_section): Add warning if the size
11668 exceeds the requested size and the regset does not have the
11669 REGSET_VARIABLE_SIZE flag set.
11670 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11671 flag.
11672 * armbsd-tdep.c (armbsd_gregset): Likewise.
11673 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11674 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11675 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11676 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11677
dde9acd6
AA
116782015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11679
11680 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11681 For ".reg-xstate", explicitly specify the requested section size
11682 via X86_XSTATE_SIZE instead of just 0 on input and
11683 X86_XSTATE_MAX_SIZE on output.
11684 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11685 Likewise.
11686
1528345d
AA
116872015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11688
11689 PR corefiles/17808:
11690 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11691 function type, particularly its SIZE parameter.
11692 * gdbarch.h: Regenerate.
11693 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11694 actual against required size using ">=" instead of "==".
11695 (amd64_collect_fpregset): Likewise.
11696 * i386-tdep.c (i386_supply_gregset): Likewise.
11697 (i386_collect_gregset): Likewise.
11698 (i386_supply_fpregset): Likewise.
11699 (i386_collect_fpregset): Likewise.
11700 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11701 (mips_fill_gregset_wrapper): Likewise.
11702 (mips_supply_fpregset_wrapper): Likewise.
11703 (mips_fill_fpregset_wrapper): Likewise.
11704 (mips64_supply_gregset_wrapper): Likewise.
11705 (mips64_fill_gregset_wrapper): Likewise.
11706 (mips64_supply_fpregset_wrapper): Likewise.
11707 (mips64_fill_fpregset_wrapper): Likewise.
11708 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11709 (am33_supply_fpregset_method): Likewise.
11710 (am33_collect_gregset_method): Likewise.
11711 (am33_collect_fpregset_method): Likewise.
11712
518be979
DE
117132015-02-04 Doug Evans <dje@google.com>
11714 Pedro Alves <palves@redhat.com>
11715 Eli Zaretskii <eliz@gnu.org>
11716
11717 PR tui/17810
11718 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11719 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11720 * tui/tui-file.c: #include tui/tui-command.h.
11721 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11722 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11723 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11724
80bd5fab
PA
117252015-02-04 Pedro Alves <palves@redhat.com>
11726
11727 Fix build breakage.
11728 * event-loop.c (gdb_do_one_event): Add default switch case.
11729
a7606d80
JK
117302015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11731
11732 Filter out inferior gcc option -fpreprocessed.
11733 * compile/compile.c (filter_args): New function.
11734 (get_args): Use it.
11735
70b66289
PA
117362015-02-03 Pedro Alves <palves@redhat.com>
11737
11738 * event-loop.c: Don't declare nor define a queue type for
11739 gdb_event_p.
11740 (event_queue): Delete.
11741 (create_event, create_file_event, gdb_event_xfree)
11742 (initialize_event_loop, process_event): Delete.
11743 (gdb_do_one_event): Return as soon as one event is handled.
11744 (handle_file_event): Change prototype. Used the passed in
11745 file_handler pointer and ready_mask instead of looping over all
11746 file handlers.
11747 (gdb_wait_for_event): Update the poll/select timeouts before
11748 blocking. Run event handlers directly instead of queueing events.
11749 Return as soon as one event is handled.
11750 (struct async_event_handler_data): Delete.
11751 (invoke_async_event_handler): Delete.
11752 (check_async_event_handlers): Change return type to int. Run
11753 event handlers directly instead of queueing events. Return as
11754 soon as one event is handled.
11755 (handle_timer_event): Delete.
11756 (update_wait_timeout): New function, factored out from
11757 poll_timers.
11758 (poll_timers): Reimplement.
11759 * event-loop.h (initialize_event_loop): Delete declaration.
11760 * top.c (gdb_init): Don't call initialize_event_loop.
11761
b7d2e916
PA
117622015-02-03 Pedro Alves <palves@redhat.com>
11763
11764 * event-loop.c (clear_async_event_handler): New function.
11765 * event-loop.h (clear_async_event_handler): New declaration.
11766 * record-btrace.c (record_btrace_async): New function.
11767 (init_record_btrace_ops): Install record_btrace_async.
11768 * record-full.c (record_full_async): New function.
11769 (record_full_resume): Don't mark the async event source here.
11770 (init_record_full_ops): Install record_full_async.
11771 (record_full_core_resume): Don't mark the async event source here.
11772 (init_record_full_core_ops): Install record_full_async.
11773 * remote.c (remote_async): Mark and clear the async stop reply
11774 queue event-loop token as appropriate.
11775
d9d41e78
PA
117762015-02-03 Pedro Alves <palves@redhat.com>
11777
11778 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11779 target_is_async_p instead of target_can_async.
11780 (linux_nat_wait): Use target_is_async_p instead of
11781 target_can_async. Don't enable async here.
11782 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11783 target_is_async_p instead of target_can_async.
11784
aa3de267
SM
117852015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11786
11787 * varobj.h (lang_varobj_ops): Mention which return values need
11788 to be freed.
11789
2c811c0f
JB
117902015-02-02 Joel Brobecker <brobecker@adacore.com>
11791
11792 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11793
b1eedac9
JB
117942015-02-02 Joel Brobecker <brobecker@adacore.com>
11795
11796 PR gdb/17856:
11797 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11798 results found in the cache.
11799
66c168ae
JB
118002015-02-02 Joel Brobecker <brobecker@adacore.com>
11801
11802 PR gdb/17854:
11803 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11804 when allocating a new one.
11805
4bdc02b2
TT
118062015-02-01 Tom Tromey <tom@tromey.com>
11807
11808 * MAINTAINERS: Remove myself.
11809
ae6ae975
DE
118102015-01-31 Doug Evans <xdje42@gmail.com>
11811
11812 * dwarf2read.c (process_structure_scope): Update setting of
11813 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11814 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11815 (set_type_vptr_fieldno): New function.
11816 (internal_type_vptr_basetype): New function.
11817 (set_type_vptr_basetype): New function.
11818 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11819 TYPE_VPTR_BASETYPE.
11820 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11821 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11822 (print_cplus_stuff): ... moved here.
11823 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11824 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11825 moved to ...
11826 (struct cplus_struct_type): ... here. All uses updated.
11827 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11828 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11829 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11830 * stabsread.c (read_tilde_fields): Update setting of
11831 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11832
09e2d7c7
DE
118332015-01-31 Doug Evans <xdje42@gmail.com>
11834
11835 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11836 to self_p.
11837 (cp_print_class_member): Rename local domain to self_type.
11838 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11839 domain_type to self_type.
11840 (set_die_type) <need_gnat_info>: Handle
11841 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11842 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11843 TYPE_SPECIFIC_SELF_TYPE.
11844 * gdbtypes.c (internal_type_self_type): New function.
11845 (set_type_self_type): New function.
11846 (smash_to_memberptr_type): Rename parameter domain to self_type.
11847 Update setting of TYPE_SELF_TYPE.
11848 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11849 (smash_to_method_type): Rename parameter domain to self_type.
11850 Update setting of TYPE_SELF_TYPE.
11851 (check_stub_method): Call smash_to_method_type.
11852 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11853 (copy_type_recursive): Ditto.
11854 * gdbtypes.h (enum type_specific_kind): New value
11855 TYPE_SPECIFIC_SELF_TYPE.
11856 (struct main_type) <type_specific>: New member self_type.
11857 (struct cplus_struct_type) <fn_field.type>: Update comment.
11858 (TYPE_SELF_TYPE): Rewrite.
11859 (internal_type_self_type, set_type_self_type): Declare.
11860 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11861 self_type.
11862 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11863 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11864 TYPE_TARGET_TYPE.
11865 * stabsread.c (read_member_functions): Mark methods with
11866 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11867 TYPE_SELF_TYPE.
11868
4bfb94b8
DE
118692015-01-31 Doug Evans <xdje42@gmail.com>
11870
11871 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11872 All uses updated.
11873
5f4ce105
DE
118742015-01-31 Doug Evans <xdje42@gmail.com>
11875
11876 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11877 or unions. Return zero if union.
11878 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11879 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11880 gnuv3_get_vtable.
11881 (compute_vtable_size): Assert only passed structs.
11882 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11883
f6b3afbf
DE
118842015-01-31 Doug Evans <xdje42@gmail.com>
11885
11886 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11887 kinds.
11888
cfb069a8
GB
118892015-01-31 Gary Benson <gbenson@redhat.com>
11890 Doug Evans <dje@google.com>
11891
11892 PR cli/9007
11893 PR cli/11920
11894 PR cli/15548
11895 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11896 reached.
11897 * common/common-exceptions.h (enum errors)
11898 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11899 * completer.h (get_max_completions_reached_message): New declaration.
11900 (max_completions): Likewise.
11901 (completion_tracker_t): New typedef.
11902 (new_completion_tracker): New declaration.
11903 (make_cleanup_free_completion_tracker): Likewise.
11904 (maybe_add_completion_enum): New enum.
11905 (maybe_add_completion): New declaration.
11906 (throw_max_completions_reached_error): Likewise.
11907 * completer.c (max_completions): New global variable.
11908 (new_completion_tracker): New function.
11909 (free_completion_tracker): Likewise.
11910 (make_cleanup_free_completion_tracker): Likewise.
11911 (maybe_add_completions): Likewise.
11912 (throw_max_completions_reached_error): Likewise.
11913 (complete_line): Remove duplicates and limit result to max_completions
11914 entries.
11915 (get_max_completions_reached_message): New function.
11916 (gdb_display_match_list): Handle max_completions.
11917 (_initialize_completer): New declaration and function.
11918 * symtab.c: Include completer.h.
11919 (completion_tracker): New static variable.
11920 (completion_list_add_name): Call maybe_add_completion.
11921 (default_make_symbol_completion_list_break_on_1): Renamed from
11922 default_make_symbol_completion_list_break_on. Maintain
11923 completion_tracker across calls to completion_list_add_name.
11924 (default_make_symbol_completion_list_break_on): New function.
11925 * top.c (init_main): Set rl_completion_display_matches_hook.
11926 * tui/tui-io.c: Include completer.h.
11927 (tui_old_rl_display_matches_hook): New static global.
11928 (tui_rl_display_match_list): Notify user if max-completions reached.
11929 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11930 * NEWS (New Options): Mention set/show max-completions.
11931
e11c72c7
GB
119322015-01-31 Gary Benson <gbenson@redhat.com>
11933
11934 * symtab.c (struct add_name_data) <code>: New field.
11935 Updated comments.
11936 (add_symtab_completions): New function.
11937 (symtab_expansion_callback): Likewise.
11938 (default_make_symbol_completion_list_break_on): Set datum.code.
11939 Move minimal symbol scan before calling expand_symtabs_matching.
11940 Scan known primary symtabs for externs and statics before calling
11941 expand_symtabs_matching. Pass symtab_expansion_callback as
11942 expansion_notify argument to expand_symtabs_matching. Do not scan
11943 primary symtabs for externs and statics after calling
11944 expand_symtabs_matching.
11945
276d885b
GB
119462015-01-31 Gary Benson <gbenson@redhat.com>
11947
11948 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11949 (struct quick_symbol_functions) <expand_symtabs_matching>:
11950 New argument expansion_notify. All uses updated.
11951 (expand_symtabs_matching): New argument expansion_notify.
11952 All uses updated.
11953 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11954 Also print expansion notify.
11955 * symtab.c (expand_symtabs_matching_via_partial): Call
11956 expansion_notify whenever a partial symbol table is expanded.
11957 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11958 expansion_notify whenever a symbol table is instantiated.
11959
82083d6d
DE
119602015-01-31 Doug Evans <xdje42@gmail.com>
11961
11962 * cli-out.c: #include completer.h, readline/readline.h.
11963 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11964 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11965 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11966 * cli-out.h (cli_display_match_list): Declare.
11967 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11968 (ELLIPSIS_LEN): Ditto.
11969 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11970 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11971 (gdb_fnprint, gdb_print_filename): Ditto.
11972 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11973 (gdb_display_match_list): Ditto.
11974 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11975 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11976 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11977 (match_list_displayer): New struct.
11978 (gdb_display_match_list): Declare.
11979 * top.c (init_main): Set rl_completion_display_matches_hook.
11980 * tui/tui-io.c: #include completer.h.
11981 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11982 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11983 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11984 (tui_mld_getc, tui_mld_read_key): Ditto.
11985 (tui_rl_display_match_list): Rewrite.
11986 (tui_handle_resize_during_io): New arg for_completion. All callers
11987 updated.
11988
f57d2163
DE
119892015-01-31 Doug Evans <xdje42@gmail.com>
11990
11991 Add symbol lookup cache.
11992 * NEWS: Document new options and commands.
11993 * symtab.c (symbol_cache_key): New static global.
11994 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11995 (SYMBOL_LOOKUP_FAILED): New macro.
11996 (symbol_cache_slot_state): New enum.
11997 (block_symbol_cache): New struct.
11998 (symbol_cache): New struct.
11999 (new_symbol_cache_size, symbol_cache_size): New static globals.
12000 (hash_symbol_entry, eq_symbol_entry): New functions.
12001 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12002 (make_symbol_cache, free_symbol_cache): New functions.
12003 (get_symbol_cache, symbol_cache_cleanup): New function.
12004 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12005 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12006 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12007 (symbol_cache_flush, symbol_cache_dump): New functions.
12008 (maintenance_print_symbol_cache): New function.
12009 (maintenance_flush_symbol_cache): New function.
12010 (symbol_cache_stats): New function.
12011 (maintenance_print_symbol_cache_statistics): New function.
12012 (symtab_new_objfile_observer): New function.
12013 (symtab_free_objfile_observer): New function.
12014 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12015 (_initialize_symtab): Init symbol_cache_key. New parameter
12016 maint symbol-cache-size. New maint commands print symbol-cache,
12017 print symbol-cache-statistics, flush-symbol-cache.
12018 Install new_objfile, free_objfile observers.
12019
e700d1b2
JB
120202015-01-31 Joel Brobecker <brobecker@adacore.com>
12021
12022 PR symtab/17855
12023 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12024 to end.
12025
9f050062
DE
120262015-01-31 Doug Evans <xdje42@gmail.com>
12027
12028 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12029 * auto-load.c: #include ctype.h.
12030 (struct auto_load_pspace_info): Replace member loaded_scripts with
12031 new members loaded_script_files, loaded_script_texts.
12032 (auto_load_pspace_data_cleanup): Update.
12033 (init_loaded_scripts_info): Update.
12034 (get_auto_load_pspace_data_for_loading): Update.
12035 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12036 updated.
12037 (maybe_add_script_text): New function.
12038 (clear_section_scripts): Update.
12039 (source_script_file, execute_script_contents): New functions.
12040 (source_section_scripts): Add support for
12041 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12042 (print_scripts): New function.
12043 (auto_load_info_scripts): Also print inlined scripts.
12044 (maybe_print_unsupported_script_warning): Renamed from
12045 unsupported_script_warning_print. All callers updated.
12046 (maybe_print_script_not_found_warning): Renamed from
12047 script_not_found_warning_print. All callers updated.
12048 * extension-priv.h (struct extension_language_script_ops): New member
12049 objfile_script_executor.
12050 * extension.c (ext_lang_objfile_script_executor): New function.
12051 * extension.h (objfile_script_executor_func): New typedef.
12052 (ext_lang_objfile_script_executor): Declare.
12053 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12054 * guile/guile.c (guile_extension_script_ops): Update.
12055 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12056 * python/python.c (python_extension_script_ops): Update.
12057 (gdbpy_execute_objfile_script): New function.
12058
312809f8
EZ
120592015-01-31 Eli Zaretskii <eliz@gnu.org>
12060
12061 * tui/tui-io.c (tui_expand_tabs): New function.
12062 (tui_puts, tui_redisplay_readline): Expand TABs into the
12063 appropriate number of spaces.
12064 * tui/tui-regs.c: Include tui-io.h.
12065 (tui_register_format): Call tui_expand_tabs to expand TABs into
12066 the appropriate number of spaces.
12067 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12068
b6577aab
DE
120692015-01-30 Doug Evans <dje@google.com>
12070
12071 * NEWS: "info source" command now display producer string if present.
12072 * source.c (source_info): Print producer string if present.
12073
6da58d3e
SM
120742015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12075
12076 * varobj.c (varobj_delete): Fix comment.
12077
837ce252
SM
120782015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12079
12080 * varobj.c (create_child): Modify comment.
12081
b09e2c59
SM
120822015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12083
12084 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12085 parameter.
12086 (ada_name_of_variable): Same.
12087 (ada_path_expr_of_child): Same.
12088 (ada_value_of_variable): Same.
12089 (ada_value_is_changeable_p): Same.
12090 (ada_value_has_mutated): Same.
12091 * c-varobj.c (varobj_is_anonymous_child): Same.
12092 (c_is_path_expr_parent): Same.
12093 (c_number_of_children): Same.
12094 (c_name_of_variable): Same.
12095 (c_path_expr_of_child): Same.
12096 (get_type): Same.
12097 (c_value_of_variable): Same.
12098 (cplus_number_of_children): Same.
12099 (cplus_name_of_variable): Same.
12100 (cplus_path_expr_of_child): Same.
12101 (cplus_value_of_variable): Same.
12102 * jv-varobj.c (java_number_of_children): Same.
12103 (java_name_of_variable): Same.
12104 (java_path_expr_of_child): Same.
12105 (java_value_of_variable): Same.
12106 * varobj.c (number_of_children): Same.
12107 (name_of_variable): Same.
12108 (is_root_p): Same.
12109 (varobj_ensure_python_env): Same.
12110 (varobj_get_objname): Same.
12111 (varobj_get_expression): Same.
12112 (varobj_get_display_format): Same.
12113 (varobj_get_display_hint): Same.
12114 (varobj_has_more): Same.
12115 (varobj_get_thread_id): Same.
12116 (varobj_get_frozen): Same.
12117 (dynamic_varobj_has_child_method): Same.
12118 (varobj_get_gdb_type): Same.
12119 (is_path_expr_parent): Same.
12120 (varobj_default_is_path_expr_parent): Same.
12121 (varobj_get_language): Same.
12122 (varobj_get_attributes): Same.
12123 (varobj_is_dynamic_p): Same.
12124 (varobj_get_child_range): Same.
12125 (varobj_value_has_mutated): Same.
12126 (varobj_get_value_type): Same.
12127 (number_of_children): Same.
12128 (name_of_variable): Same.
12129 (check_scope): Same.
12130 (varobj_editable_p): Same.
12131 (varobj_value_is_changeable_p): Same.
12132 (varobj_floating_p): Same.
12133 (varobj_default_value_is_changeable_p): Same.
12134
2568868e
SM
121352015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12136
12137 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12138 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12139 child->path_expr.
12140 (cplus_path_expr_of_child): Same.
12141
ca83fa81
SM
121422015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12143
12144 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12145 result.
12146 (mi_cmd_var_info_expression): Same.
12147 * varobj.c (varobj_get_expression): Mention in the comment that
12148 the result must by freed by the caller.
12149
afa269ae
SM
121502015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12151
12152 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12153 varobj_get_type.
12154 (varobj_update_one): Same.
12155 * varobj.c (update_type_if_necessary): Free curr_type_str and
12156 new_type_str.
12157 (varobj_get_type): Specify in comment that the result needs to be
12158 freed by the caller.
12159
cd366ee8
DE
121602015-01-29 Doug Evans <dje@google.com>
12161
12162 PR symtab/17890
12163 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12164
38360086
MW
121652015-01-25 Mark Wielaard <mjw@redhat.com>
12166
12167 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12168 * utils.c (producer_is_gcc_ge_4): Likewise.
12169 (producer_is_gcc): New function.
12170 * utils.h (producer_is_gcc): New declaration.
12171
df25ebbd
JB
121722015-01-29 Joel Brobecker <brobecker@adacore.com>
12173
12174 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12175 kind.
12176 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12177 parameter by "addr_stack" parameter.
12178 (resolve_dynamic_range): Replace "addr" parameter by
12179 "stack_addr" parameter. Update function documentation.
12180 Update code accordingly.
12181 (resolve_dynamic_array, resolve_dynamic_union)
12182 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12183 (resolve_dynamic_type): Update code, following the changes made
12184 to resolve_dynamic_type_internal's interface.
12185 * dwarf2loc.h (struct property_addr_info): New.
12186 (dwarf2_evaluate_property): Replace "address" parameter
12187 by "addr_stack" parameter. Adjust function documentation.
12188 (struct dwarf2_offset_baton): New.
12189 (struct dwarf2_property_baton): Update documentation of
12190 field "referenced_type" to be more general. New field
12191 "offset_info" in union data field.
12192 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12193 parameter by "addr_stack" parameter. Adjust code accordingly.
12194 Add support for PROP_ADDR_OFFSET properties.
12195 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12196 DW_AT_data_member_location attributes as well. Use case
12197 statements instead of if/else condition.
12198
4a0ca9ec
JB
121992015-01-29 Joel Brobecker <brobecker@adacore.com>
12200
12201 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12202 Return zero if PARENT_VALUE is NULL and parent_type's
12203 range type is dynamic.
12204
ddb87a81
JB
122052015-01-29 Joel Brobecker <brobecker@adacore.com>
12206
12207 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12208 nonzero if the type's subtype is dynamic.
12209 (resolve_dynamic_range): Also resolve the range's subtype.
12210
3d7ad9b4 122112015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 12212
3d7ad9b4 12213 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
12214 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12215
3a8b707a
DE
122162015-01-27 Doug Evans <dje@google.com>
12217
12218 * NEWS: Mention gdb.Objfile.username.
12219 * python/py-objfile.c (objfpy_get_username): New function.
12220 (objfile_getset): Add "username".
12221
d35b90fb
MW
122222015-01-24 Mark Wielaard <mjw@redhat.com>
12223
12224 * stack.c (return_command): Markup warning message with _.
12225
734ae125
DE
122262015-01-24 Doug Evans <xdje42@gmail.com>
12227
12228 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12229
527f3840
JK
122302015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12231
12232 Fix 100x slowdown regression on DWZ files.
12233 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12234 (struct line_header): Add offset and offset_in_dwz.
12235 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12236 (free_line_header_voidp): New declaration.
12237 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12238 functions.
12239 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12240 (handle_DW_AT_stmt_list): Use line_header_hash.
12241 (free_line_header_voidp): New function.
12242 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12243 (dwarf_decode_lines): New parameter decode_mapping, use it.
12244 (dwarf2_free_objfile): Free line_header_hash.
12245
f7e5394d
SM
122462015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12247
12248 PR gdb/17416
12249 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12250 value_ind.
12251
743649fd
MW
122522015-01-15 Mark Wielaard <mjw@redhat.com>
12253
12254 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12255 DW_AT_noreturn.
12256 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12257 calling_convention an 8 bit bit field.
12258 (TYPE_NO_RETURN): New macro.
12259 * infcmd.c (finish_command): Query if function does not return
12260 normally.
12261 * stack.c (return_command): Likewise.
12262
198297aa
PA
122632015-01-23 Pedro Alves <palves@redhat.com>
12264
12265 * linux-nat.c (linux_is_async_p): New macro.
12266 (linux_nat_is_async_p):
12267 (linux_nat_terminal_inferior): Check whether the target can async
12268 instead of whether it is already async.
12269 (linux_nat_terminal_ours): Don't check whether the target is
12270 async.
12271 (linux_async_pipe): Use linux_is_async_p.
12272
253828f1
JK
122732015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12274
12275 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12276 '-ascending'.
12277 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12278 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12279 Sort tp_array using tp_array_compar.
12280 (_initialize_thread): Extend thread_apply_all_command help.
12281
f0e8c4c5
JK
122822015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12283
12284 * corelow.c (core_open): Call also thread_command.
12285 * gdbthread.h (thread_command): New prototype moved from ...
12286 * thread.c (thread_command): ... here.
12287 (thread_command): Make it global.
12288
03b79603
PA
122892015-01-22 Pedro Alves <palves@redhat.com>
12290
12291 * configure.ac [*mingw32*]: Check $curses_found instead of
12292 $prefer_curses.
12293 * configure: Regenerate.
12294 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12295 HAVE_NCURSES_NCURSES_H checks.
12296
6b8a872f
EZ
122972015-01-22 Eli Zaretskii <eliz@gnu.org>
12298
bbbbffbb 12299 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
12300 fails with the 1st arg NULL, try again with "unknown". Don't test
12301 the "cup" capability: it isn't supported by the Windows port of
12302 ncurses, but the Windows console driver is still capable of
12303 supporting TUI.
12304
4b62a76e
JK
123052015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12306
12307 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12308
82a864f9
EZ
123092015-01-22 Eli Zaretskii <eliz@gnu.org>
12310
12311 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12312 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12313 reason that "make TAGS" is broken.
12314
b35018fd
CG
123152015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12316
12317 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12318 and check additional store instructions.
12319
ffbc4646
WW
123202015-01-21 Wei-cheng Wang <cole945@gmail.com>
12321
12322 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12323
ddeca1df
WW
123242015-01-21 Wei-cheng Wang <cole945@gmail.com>
12325
12326 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12327 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12328 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12329 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12330 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12331 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12332 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12333 ppc_process_record_op19, ppc_process_record_op31,
12334 ppc_process_record_op59, ppc_process_record_op60,
12335 ppc_process_record_op63): Likewise.
12336
049bb5de
JB
123372015-01-20 Joel Brobecker <brobecker@adacore.com>
12338
12339 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12340 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12341 strerror.
12342
42b87c63 123432015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
12344
12345 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12346 ppc_process_record_op31, ppc_process_record_op59,
12347 ppc_process_record_op60, ppc_process_record_op63,
12348 ppc_process_record): Fix -Wformat warning.
12349 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12350 Remove unused variables.
12351
569340fc
CG
123522015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12353
12354 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12355
63413d85
EZ
123562015-01-19 Eli Zaretskii <eliz@gnu.org>
12357
12358 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12359 CONFIG_OBS if not building with a curses library.
12360 * configure: Regenerate.
12361
12362 * windows-termcap.c: Include defs.h. Make the whole body empty if
12363 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12364 HAVE_NCURSES_NCURSES_H is defined.
12365
16d8013c
JB
123662015-01-19 Joel Brobecker <brobecker@adacore.com>
12367
12368 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12369 from end of line to start of next line.
12370
cf90fd9a
WW
123712015-01-17 Wei-cheng Wang <cole945@gmail.com>
12372
12373 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12374 Scan PLT stub backward for reverse debugging.
12375 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12376
b4cdae6f
WW
123772015-01-17 Wei-cheng Wang <cole945@gmail.com>
12378 Ulrich Weigand <uweigand@de.ibm.com>
12379
12380 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12381 gdb_target_obs.
12382 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12383 record.
12384 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12385 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12386 (ppc_linux_init_abi): Set process_record, process_record_signal.
12387 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12388 ppc_linux_record_tdep to gdbarch_tdep.
12389 (ppc_process_record): New declaration.
12390 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12391 ppc_process_record_op19, ppc_process_record_op31,
12392 ppc_process_record_op59, ppc_process_record_op60,
12393 ppc_process_record_op63, ppc_process_record): New functions.
12394
2608dbf8
WW
123952015-01-17 Wei-cheng Wang <cole945@gmail.com>
12396
12397 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12398 rs6000_in_function_epilogue_frame_p and add an argument
12399 for frame_info.
12400 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12401 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12402 New functions.
12403 (rs6000_epilogue_frame_unwind): New.
12404 (rs6000_gdbarch_init): Append epilogue unwinder.
12405
4c347be6
SDJ
124062015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12407
12408 * nat/linux-personality.c: Replace "#ifndef
12409 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12410 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12411 systems.
12412
9f2850ba
EZ
124132015-01-16 Eli Zaretskii <eliz@gnu.org>
12414
6cdb25f4
EZ
12415 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12416 functions.
12417 (_initialize_tui_win) <border-kind, border-mode>:
12418 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
12419 (tui_set_tab_width_command): Fix the commentary.
12420
6cdb25f4
EZ
12421 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12422
bf555842
EZ
12423 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12424 Doc fix.
cb86fcc1
EZ
12425 (tui_set_tab_width_command): Delete and recreate the source and
12426 the disassembly windows, to show the effect of the changed tab
12427 size immediately.
bf555842 12428
9f2850ba
EZ
12429 * tui/tui-data.h (LINE_PREFIX): Make shorter
12430 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12431 "Thread NNNNN.XXXX" thread ID notation on Windows.
12432
95761b2d
JK
124332015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12434
12435 Fix gcc-5 compilation.
12436 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12437
8cc73a39
SDJ
124382015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12439
12440 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12441 (linux-personality.o): New rule.
12442 * common/common-defs.h: Include <stdint.h>.
12443 * config/aarch64/linux.mh (NATDEPFILES): Include
12444 linux-personality.o.
12445 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12446 * config/arm/linux.mh (NATDEPFILES): Likewise.
12447 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12448 * config/i386/linux.mh (NATDEPFILES): Likewise.
12449 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12450 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12451 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12452 * config/mips/linux.mh (NATDEPFILES): Likewise.
12453 * config/pa/linux.mh (NATDEPFILES): Likewise.
12454 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12455 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12456 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12457 * config/s390/linux.mh (NATDEPFILES): Likewise.
12458 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12459 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12460 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12461 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12462 * defs.h: Remove #include <stdint.h> (moved to
12463 common/common-defs.h).
12464 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12465 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12466 nat/linux-personality.c).
12467 (linux_nat_create_inferior): Remove code to disable address space
12468 randomization (moved to nat/linux-personality.c). Create cleanup
12469 to disable address space randomization.
12470 * nat/linux-personality.c: New file.
12471 * nat/linux-personality.h: Likewise.
12472
fb23d554
SDJ
124732015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12474
12475 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12476 common/posix-strerror.c.
12477 (posix-strerror.o): New rule.
12478 (mingw-strerror.o): Likewise.
12479 * common/common-utils.h (safe_strerror): Move prototype to here,
12480 from utils.h.
12481 * common/common.host: New file.
12482 * common/mingw-strerror.c: Likewise.
12483 * common/posix-strerror.c: Likewise.
12484 * configure: Regenerated.
12485 * configure.ac: Source common/common.host. Add variable
12486 common_host_obs to gdb_host_obs.
12487 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12488 gdb/common/posix-strerror.c when warning about the use of
12489 strerror.
12490 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12491 common/mingw-strerror.c.
12492 * posix-hdep.c (safe_strerror): Remove definition; move it to
12493 common/posix-hdep.c.
12494 * utils.h (safe_strerror): Remove prototype; move to
12495 common/common-utils.h.
12496
3af8af43
JB
124972015-01-15 Joel Brobecker <brobecker@adacore.com>
12498
12499 GDB 7.8.2 released.
12500
bafffb51
JB
125012015-01-15 Joel Brobecker <brobecker@adacore.com>
12502
12503 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12504 ___XA type if the array has already been fixed.
12505
cdf43629
YQ
125062015-01-14 Yao Qi <yao@codesourcery.com>
12507
12508 * Makefile.in (ppc-linux.o): New rule.
12509 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12510 * configure.ac: AC_CHECK_FUNCS(getauxval).
12511 * config.in: Re-generated.
12512 * configure: Re-generated.
12513 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12514 Declare.
12515 * nat/ppc-linux.c: New file.
12516 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12517 Call ppc64_64bit_inferior_p.
12518
514c5338
YQ
125192015-01-14 Yao Qi <yao@codesourcery.com>
12520
12521 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12522 nat/ppc-linux.h.
12523 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12524 (PPC_FEATURE_HAS_DFP): Likewise.
12525 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12526 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12527 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12528 Include "nat/ppc-linux.h".
12529 * nat/ppc-linux.h: New file.
12530 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12531
5589af0e
PA
125322015-01-14 Pedro Alves <palves@redhat.com>
12533
12534 PR gdb/17525
12535 * breakpoint.c: Include "interps.h".
12536 (bpstat_do_actions_1): Also check whether the interpreter is
12537 async.
12538
6c400b59
PA
125392015-01-14 Pedro Alves <palves@redhat.com>
12540
12541 PR cli/17828
12542 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12543 reinstall if the interpreter is sync.
12544
e02c96a7
DE
125452015-01-13 Doug Evans <dje@google.com>
12546
12547 * objfiles.c (objfile_filename): New function.
12548 * objfiles.h (objfile_filename): Declare it.
12549 (objfile_name): Add function comment.
12550 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12551 bfd file name (which may be realpath'd), and the original name.
12552
3b2f13ff
JB
125532015-01-13 Joel Brobecker <brobecker@adacore.com>
12554
12555 * NEWS: Create a new section for the next release branch.
12556 Rename the section of the current branch, now that it has
12557 been cut.
12558
b4cfe7f8
JB
125592015-01-13 Joel Brobecker <brobecker@adacore.com>
12560
12561 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12562 * version.in: Bump version to 7.9.50.DATE-cvs.
12563
92fc2e69
JB
125642015-01-13 Joel Brobecker <brobecker@adacore.com>
12565
12566 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12567 Remove trailing new-line in argument of call to warning.
12568
f71f0b0d
JB
125692015-01-13 Joel Brobecker <brobecker@adacore.com>
12570
12571 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12572 new-line in argument of call to "warning".
12573
04dccad0
JB
125742015-01-13 Joel Brobecker <brobecker@adacore.com>
12575
12576 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12577 in static block, then try searching for primitive types.
12578
08b13bdd
PP
125792015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12580
12581 * top.h (gdb_add_history): Declare.
12582 * top.c (command_count): New variable.
12583 (gdb_add_history): New function.
12584 (gdb_safe_append_history): New static function.
12585 (quit_force): Call it.
12586 (command_line_input): Use gdb_add_history instead of
12587 add_history.
12588 * event-top.c (command_line_handler): Likewise.
12589
4ac15b59
JC
125902015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12591
12592 PR gdb/17046
12593 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12594 <setjmp.h> #include.
12595
005e54bb
DE
125962015-01-11 Doug Evans <xdje42@gmail.com>
12597
12598 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12599
439250fb
DE
126002015-01-11 Doug Evans <xdje42@gmail.com>
12601
12602 PR gdb/15830
12603 * NEWS: The "maint demangle" command is renamed as "demangle".
12604 * demangle.c: #include cli/cli-utils.h, language.h.
12605 (demangle_command): New function.
12606 (_initialize_demangle): Add new command "demangle".
12607 * maint.c (maintenance_demangle): Stub out.
12608 (_initialize_maint_cmds): Update help text for "maint demangle",
12609 and mark as deprecated.
12610
ebf3aa72
MK
126112015-01-11 Mark Kettenis <kettenis@gnu.org>
12612
12613 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12614 inferior_thread is a function.
12615
6bf045cd
PP
126162015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12617
12618 * Makefile.in (.y.c): Don't munge yacc's #line
12619 directives.
12620
588dcc3e
PP
126212015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12622
12623 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12624 to prompt for input.
12625 * tui/tui-hooks.c (tui_query_hook): Remove.
12626 (tui_install_hooks): Don't set deprecated_query_hook.
12627 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12628 height calculation. Always update the command window's cur_line.
12629
9c02b525
PA
126302015-01-09 Pedro Alves <palves@redhat.com>
12631
12632 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12633 function.
12634 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12635 declaration.
12636 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12637 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12638 stop_reason.
12639 (check_stopped_by_watchpoint): New function.
12640 (save_sigtrap): Reimplement.
12641 (linux_nat_stopped_by_watchpoint): Adjust.
12642 (linux_nat_lp_status_is_event): Delete.
12643 (stop_wait_callback): Only call save_sigtrap after storing the
12644 pending status.
12645 (status_callback): If the thread had been stopped for a breakpoint
12646 that has since been removed, discard the event and resume the LWP.
12647 (count_events_callback, select_event_lwp_callback): Use
12648 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12649 (cancel_breakpoint): Rename to ...
12650 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12651 stopped for a software breakpoint or hardware breakpoint.
12652 (select_event_lwp): Only give preference to the stepping LWP in
12653 all-stop mode. Adjust comments.
12654 (stop_and_resume_callback): Remove references to new_pending_p.
12655 (linux_nat_filter_event): Likewise. Leave exit events of the
12656 leader thread pending here. Handle signal short circuiting here.
12657 Only call save_sigtrap after storing the pending waitstatus.
12658 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12659 new_pending. Don't handle leaving events the caller is not
12660 interested in pending here, nor handle signal short-circuiting
12661 here. Also give equal priority to all LWPs that have had events
12662 in non-stop mode. If reporting a software breakpoint event,
12663 unadjust the LWP's PC.
12664 * linux-nat.h (enum lwp_stop_reason): New.
12665 (struct lwp_info) <stop_pc>: New field.
12666 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12667 (struct lwp_info) <stop_reason>: New field.
12668 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12669
8af756ef
PA
126702015-01-09 Pedro Alves <palves@redhat.com>
12671
12672 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12673 Set the LWP's 'resumed' flag.
12674
8a99810d
PA
126752015-01-09 Pedro Alves <palves@redhat.com>
12676
12677 * linux-nat.c (linux_resume_one_lwp): New function.
12678 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12679 (linux_nat_resume): Use lwp_status_pending_p and
12680 linux_resume_one_lwp.
12681 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12682 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12683 (status_callback, running_callback): Use lwp_status_pending_p.
12684 (lwp_status_pending_p): New function.
12685 (stop_and_resume_callback): Use lwp_status_pending_p.
12686 (linux_nat_filter_event): Use linux_resume_one_lwp.
12687 (linux_nat_wait_1): Always use status_callback to look for an LWP
12688 with a pending status. Use linux_resume_one_lwp.
12689 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12690 linux_resume_one_lwp.
12691
f7ce857f
PA
126922015-01-09 Pedro Alves <palves@redhat.com>
12693
12694 * breakpoint.c (bp_location_inserted_here_p): New function,
12695 factored out from ...
12696 (breakpoint_inserted_here_p): ... here. Use
12697 ALL_BP_LOCATIONS_AT_ADDR.
12698 (software_breakpoint_inserted_here_p): Use
12699 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12700
c1a747c1
PA
127012014-01-09 Pedro Alves <palves@redhat.com>
12702
12703 Skip enabling event reporting if the kernel supports
12704 PTRACE_EVENT_CLONE.
12705 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12706 (thread_db_use_events): New function.
12707 (try_thread_db_load_1): Check thread_db_use_events before enabling
12708 event reporting.
12709 (update_thread_state): New function.
12710 (attach_thread): Use it. Check thread_db_use_events before
12711 enabling event reporting.
12712 (thread_db_detach): Check thread_db_use_events before disabling
12713 event reporting.
12714 (find_new_threads_callback): Check thread_db_use_events before
12715 enabling event reporting. Update the thread's state if not using
12716 libthread_db events.
12717
a33e3959
PA
127182015-01-09 Pedro Alves <palves@redhat.com>
12719
12720 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12721 about to wait for is > 0.
12722 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12723 the kernel thread ID is -1.
12724
8784d563
PA
127252015-01-09 Pedro Alves <palves@redhat.com>
12726
12727 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12728 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12729 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12730 ptrace option flags.
12731 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12732 field.
12733 * nat/linux-procfs.c: Include <dirent.h>.
12734 (linux_proc_get_int): New parameter "warn". Handle it.
12735 (linux_proc_get_tgid): Adjust.
12736 (linux_proc_get_tracerpid): Rename to ...
12737 (linux_proc_get_tracerpid_nowarn): ... this.
12738 (linux_proc_pid_get_state): New function, factored out from
12739 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12740 and handle it.
12741 (linux_proc_pid_is_gone): New function.
12742 (linux_proc_pid_is_stopped): Adjust.
12743 (linux_proc_pid_is_zombie_maybe_warn)
12744 (linux_proc_pid_is_zombie_nowarn): New functions.
12745 (linux_proc_pid_is_zombie): Use
12746 linux_proc_pid_is_zombie_maybe_warn.
12747 (linux_proc_attach_tgid_threads): New function.
12748 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12749 (linux_proc_get_tracerpid): Rename to ...
12750 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12751 (linux_proc_pid_is_gone): New declaration.
12752 (linux_proc_pid_is_zombie): Update comment.
12753 (linux_proc_pid_is_zombie_nowarn): New declaration.
12754 (linux_proc_attach_lwp_func): New typedef.
12755 (linux_proc_attach_tgid_threads): New declaration.
12756 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12757 use nowarn functions.
12758 (linux_ptrace_attach_fail_reason_string): Move here from
12759 gdbserver/linux-low.c and rename.
12760 (ptrace_supports_feature): If the current ptrace options are not
12761 known yet, check them now, instead of asserting.
12762 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12763 Declare.
12764
883ed13e
PA
127652015-01-09 Pedro Alves <palves@redhat.com>
12766
12767 * linux-thread-db.c (thread_db_find_new_threads_silently)
12768 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12769 (find_new_threads_once): Print debug output on gdb_stdlog.
12770
1710aab8
CG
127712015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12772 Pedro Alves <palves@redhat.com>
12773
12774 * compile/compile.c: Include "gdb_wait.h".
12775 (do_rmdir): Check return value, and free 'zap'.
12776
b597c318
YQ
127772015-01-08 Pedro Alves <palves@redhat.com>
12778 Yao Qi <yao@codesourcery.com>
12779
12780 * dwarf2loc.c (indirect_pieced_value): Don't call
12781 gdb_sign_extend. Call extract_signed_integer instead.
12782 * utils.c (gdb_sign_extend): Remove.
12783 * utils.h (gdb_sign_extend): Remove declaration.
12784
025ac414
PM
127852015-01-07 Pierre Muller <muller@sourceware.org>
12786
12787 PR symtab/17811
12788 * stabsread.c (define_symbol): Set language for C++ special symbols.
12789
fa5af12a
PP
127902015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12791
12792 * inflow.c (initial_gdb_ttystate): Tweak comment.
12793
ea42d6f8
JB
127942015-01-07 Joel Brobecker <brobecker@adacore.com>
12795
12796 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12797 comment documenting function.
12798
6a06d660
PP
127992015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12800
12801 * terminal.h (set_initial_gdb_ttystate): Declare.
12802 * inflow.c (initial_gdb_ttystate): New static variable.
12803 (set_initial_gdb_ttystate): New setter.
12804 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12805 instead of our current terminal state.
12806 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12807
e810d75b
JB
128082015-01-07 Joel Brobecker <brobecker@adacore.com>
12809
12810 * guile/scm-type.c (tyscm_array_1): Add comment.
12811 * python/py-type.c (typy_array_1): Add comment.
12812
fce10a84
JB
128132015-01-06 Joel Brobecker <brobecker@adacore.com>
12814
12815 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12816 error if N2 is equal to N1 - 1.
12817
8503d6e1
JB
128182015-01-06 Joel Brobecker <brobecker@adacore.com>
12819
12820 * python/py-type.c (typy_array_1): Do not raise negative-length
12821 exception if N2 is equal to N1 - 1.
12822
4d29c0a8
DE
128232015-01-03 Doug Evans <xdje42@gmail.com>
12824
12825 * c-exp.y: Whitespace cleanup.
12826 (classify_inner_name): Remove extra ;.
12827
eaa6a9a4
MR
128282015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12829
12830 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12831 offset signed.
12832
02fe9972
DE
128332015-01-02 Doug Evans <dje@google.com>
12834
12835 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12836
e2ada9cb
DE
128372015-01-02 Doug Evans <dje@google.com>
12838
12839 * symtab.h (struct symbol): Fix typo in comment.
12840
32d0add0
JB
128412015-01-01 Joel Brobecker <brobecker@adacore.com>
12842
12843 Update year range in copyright notice of all files.
12844
76f2b779
JB
128452015-01-01 Joel Brobecker <brobecker@adacore.com>
12846
12847 * top.c (print_gdb_version): Update copyright year to 2015.
12848
077309e2 128492015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 12850
077309e2 12851 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 12852
077309e2 12853For older changes see ChangeLog-2014.
c906108c
SS
12854\f
12855Local Variables:
12856mode: change-log
12857left-margin: 8
12858fill-column: 74
12859version-control: never
57da7796 12860coding: utf-8
c906108c 12861End:
This page took 2.584295 seconds and 4 git commands to generate.