Use regcache->tdesc instead of arm_hwcap
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ec741292
YQ
12015-07-30 Yao Qi <yao.qi@linaro.org>
2
3 * arm-tdep.h (enum gdb_regnum): Move it to ...
4 * arch/arm.h: ... here. New file.
5 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6
0ea6402e
PL
72015-07-30 Pierre Langlois <pierre.langlois@arm.com>
8
9 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
10 Change its type to int *.
11 (decode_br): Rename link argument to is_blr. Change its type to
12 int *.
13 (decode_cb): Rename op argument to is_cbnz. Change its type to
14 int *.
15 (decode_tb): Rename op argument to is_tbnz. Change its type to
16 int *. Set is_tbnz to either 1 or 0.
17 (aarch64_analyze_prologue): Change type of is_link to int. Add
18 new variables is_cbnz and is_tbnz. Adjust call to
19 aarch64_decode_cb and aarch64_decode_tb.
20
aa58a496
SM
212015-07-29 Simon Marchi <simon.marchi@ericsson.com>
22
23 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
24 parameter.
25 (mips_linux_new_thread): Likewise.
26 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
27
18206ca3
PP
282015-07-29 Patrick Palka <patrick@parcs.ath.cx>
29
30 * top.c: Include "tui/tui.h".
31 (undo_terminal_modifications_before_exit): New static function.
32 (quit_force): Use it.
33
7afa63c6
PP
342015-07-29 Patrick Palka <patrick@parcs.ath.cx>
35
36 * target.c (terminal_state): Initialize to terminal_is_ours.
37
cc9f16aa
YQ
382015-07-29 Yao Qi <yao.qi@linaro.org>
39
40 PR record/18691
41 * dcache.c (dcache_read_memory_partial): Call
42 raw_memory_xfer_partial.
43 * target.c (raw_memory_xfer_partial): Make it non-static.
44 * target.h (raw_memory_xfer_partial): Declare.
45
3ae385af
SM
462015-07-28 Simon Marchi <simon.marchi@ericsson.com>
47
48 * c-valprint.c (c_val_print_array): Consider addressable memory
49 unit size.
50 (c_val_print_ptr): Likewise.
51 (c_val_print_int): Likewise.
52 * findvar.c (read_frame_register_value): Likewise.
53 * valarith.c (find_size_for_pointer_math): Likewise.
54 (value_ptrdiff): Likewise.
55 (value_subscripted_rvalue): Likewise.
56 * valops.c (read_value_memory): Likewise (and rename variables).
57 (value_assign): Likewise.
58 (value_repeat): Likewise.
59 (value_array): Likewise.
60 (value_slice): Likewise.
61 * valprint.c (generic_val_print_ptr): Likewise.
62 (generic_val_print_enum): Likewise.
63 (generic_val_print_bool): Likewise.
64 (generic_val_print_int): Likewise.
65 (generic_val_print_char): Likewise.
66 (generic_val_print_float): Likewise.
67 (generic_val_print_decfloat): Likewise.
68 (generic_val_print_complex): Likewise.
69 (val_print_scalar_formatted): Likewise.
70 (val_print_array_elements): Likewise.
71 * value.c (set_value_parent): Likewise.
72 (value_contents_copy_raw): Likewise.
73 (set_internalvar_component): Likewise.
74 (value_primitive_field): Likewise.
75 (value_fetch_lazy): Likewise.
76 * value.h (read_value_memory): Update comment.
77
e512cdbd
SM
782015-07-28 Simon Marchi <simon.marchi@ericsson.com>
79
80 * value.c (get_value_arch): New function.
81 * value.h (get_value_arch): New declaration.
82
3723fda8
SM
832015-07-28 Simon Marchi <simon.marchi@ericsson.com>
84
85 * value.c (struct value): Update comments.
86
2e056931
SM
872015-07-28 Simon Marchi <simon.marchi@ericsson.com>
88
89 * gdbtypes.c (type_length_units): New function.
90 * gdbtypes.h (type_length_units): New declaration.
91 (struct type) <length>: Update comment.
92
0c87c0bf
SM
932015-07-27 Simon Marchi <simon.marchi@ericsson.com>
94
95 * valprint.c (generic_val_print): Factor out complex
96 printing code to ...
97 (generic_val_print_complex): ... this new function.
98
9550ae5e
SM
992015-07-27 Simon Marchi <simon.marchi@ericsson.com>
100
101 * valprint.c (generic_val_print): Factor out decfloat
102 printing code to ...
103 (generic_val_print_decfloat): ... this new function.
104
7784724b
SM
1052015-07-27 Simon Marchi <simon.marchi@ericsson.com>
106
107 * valprint.c (generic_val_print): Factor out float
108 printing code to ...
109 (generic_val_print_float): ... this new function.
110
385f5aff
SM
1112015-07-27 Simon Marchi <simon.marchi@ericsson.com>
112
113 * valprint.c (generic_val_print): Factor out char
114 printing code to ...
115 (generic_val_print_char): ... this new function.
116
b21b6342
SM
1172015-07-27 Simon Marchi <simon.marchi@ericsson.com>
118
119 * valprint.c (generic_val_print): Factor out integer
120 printing code to ...
121 (generic_val_print_int): ... this new function.
122
e5bead4b
SM
1232015-07-27 Simon Marchi <simon.marchi@ericsson.com>
124
125 * valprint.c (generic_val_print): Factor out bool
126 printing code to ...
127 (generic_val_print_bool): ... this new function.
128
4a8c372f
SM
1292015-07-27 Simon Marchi <simon.marchi@ericsson.com>
130
131 * valprint.c (generic_val_print): Factor out function/method
132 printing code to ...
133 (generic_val_print_func): ... this new function.
134
d93880bd
SM
1352015-07-27 Simon Marchi <simon.marchi@ericsson.com>
136
137 * valprint.c (generic_val_print): Factor out flags
138 printing code to ...
139 (generic_val_print_flags): ... this new function.
140
ef0bc0dd
SM
1412015-07-27 Simon Marchi <simon.marchi@ericsson.com>
142
143 * valprint.c (generic_val_print): Factor out enum
144 printing code to ...
145 (generic_val_print_enum): ... this new function.
146
fe43fede
SM
1472015-07-27 Simon Marchi <simon.marchi@ericsson.com>
148
149 * valprint.c (generic_val_print): Factor out reference
150 printing code to ...
151 (generic_val_print_ref): ... this new function.
152
45000ea2
SM
1532015-07-27 Simon Marchi <simon.marchi@ericsson.com>
154
155 * valprint.c (generic_val_print): Factor out memberptr
156 printing code to ...
157 (generic_val_print_memberptr): ... this new function.
158
81eb921a
SM
1592015-07-27 Simon Marchi <simon.marchi@ericsson.com>
160
161 * valprint.c (generic_val_print): Factor out pointer
162 printing code to ...
163 (generic_val_print_ptr): ... this new function.
164
557dbe8a
SM
1652015-07-27 Simon Marchi <simon.marchi@ericsson.com>
166
167 * valprint.c (generic_val_print): Factor out array
168 printing code to ...
169 (generic_val_print_array): ... this new function.
170
9f436164
SM
1712015-07-27 Simon Marchi <simon.marchi@ericsson.com>
172
173 * valprint.c (generic_val_print): Factor out
174 print_unpacked_pointer code to ...
175 (print_unpacked_pointer): ... this new function.
176
077836f7
PP
1772015-07-27 Patrick Palka <patrick@parcs.ath.cx>
178
179 * event-top.c (handle_sigterm): Don't inspect
180 target_can_async_p. Always set the quit flag and always mark
181 the async signal handler.
182
3a60804f
YQ
1832015-07-27 Yao Qi <yao.qi@linaro.org>
184
185 * Makefile.in (REMOTE_EXAMPLES): Remove it.
186
c9f35b34
KB
1872015-07-25 Kevin Buettner <kevinb@redhat.com>
188
189 * remote.c (read_ptid): Return null_ptid when no thread id
190 is found.
191 (remote_current_thread): Add log warning for malformed
192 qC reply.
193 (remote_start_remote): Add log warning when current thread
194 not found.
195
2b4cab86
PA
1962015-07-24 Pedro Alves <palves@redhat.com>
197
198 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
199 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
200 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
201
77598427
PA
2022015-07-24 Pedro Alves <palves@redhat.com>
203
204 PR gdb/18717
205 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
206 is resumed, and extend the debug log.
207
fe23c31f
PA
2082015-07-24 Pedro Alves <palves@redhat.com>
209
210 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
211
5826e159
PA
2122015-07-24 Pedro Alves <palves@redhat.com>
213
214 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
215 sys/ptrace.h.
216 * alpha-linux-nat.c: Likewise.
217 * amd64-linux-nat.c: Likewise.
218 * arm-linux-nat.c: Likewise.
219 * hppa-linux-nat.c: Likewise.
220 * i386-linux-nat.c: Likewise.
221 * ia64-linux-nat.c: Likewise.
222 * linux-fork.c: Likewise.
223 * linux-nat.c: Likewise.
224 * m32r-linux-nat.c: Likewise.
225 * m68klinux-nat.c: Likewise.
226 * mips-linux-nat.c: Likewise.
227 * nat/linux-btrace.c: Likewise.
228 * nat/linux-ptrace.c: Likewise.
229 * nat/linux-ptrace.h
230 * nat/mips-linux-watch.c: Likewise.
231 * nat/x86-linux-dregs.c: Likewise.
232 * ppc-linux-nat.c: Likewise.
233 * s390-linux-nat.c: Likewise.
234 * spu-linux-nat.c: Likewise.
235 * tilegx-linux-nat.c: Likewise.
236 * x86-linux-nat.c: Likewise.
237 * xtensa-linux-nat.c: Likewise.
238
54019719
PA
2392015-07-24 Pedro Alves <palves@redhat.com>
240
241 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
242 __ptrace_request as first parameter type instead of int.
243 (PTRACE_TYPE_ARG1): Define.
244 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
245 that casts first argument to PTRACE_TYPE_ARG1.
246 * config.in: Regenerate.
247 * configure: Regenerate.
248
e3790375
PA
2492015-07-24 Pedro Alves <palves@redhat.com>
250
251 * gdb_ptrace.h: Move ...
252 * nat/gdb_ptrace.h: ... here.
253 * inf-ptrace.c: Adjust.
254
eb7aa561
PA
2552015-07-24 Pedro Alves <palves@redhat.com>
256
257 * acinclude.m4: Include ptrace.m4.
258 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
259 * ptrace.m4: ... to this new file.
260
cc12ce38
DE
2612015-07-23 Doug Evans <dje@google.com>
262
263 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
264 (load_cu): Handle dummy CUs.
265 (dw2_do_instantiate_symtab, process_queuef): Ditto.
266 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
267
7b849db4
CS
2682015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
269
270 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
271 documentation to say that it returns a list rather than
272 a FrozenSet.
273 (linetable_object_methods): Update the docstring of the
274 "source_line" entry.
275
d0d84780
PMR
2762015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
277
278 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
279 type to the recursive call instead of the original (maybe
280 TYPE_CODE_TYPEDEF) type.
281
c2fbdc59
YQ
2822015-07-23 Yao Qi <yao.qi@linaro.org>
283
284 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
285 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
286 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
287
af1b22f3
YQ
2882015-07-21 Yao Qi <yao.qi@linaro.org>
289
290 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
291 Move it to nat/aarch64-linux-hw-point.c.
292 (aarch64_linux_child_post_startup_inferior): Update.
293 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
294 New function.
295 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
296 Declare it.
297
40e050d2
MM
2982015-07-21 Markus Metzger <markus.t.metzger@intel.com>
299
300 * common/btrace-common.c (btrace_data_append): Change case label.
301
3675a06a
YQ
3022015-07-20 Yao Qi <yao.qi@linaro.org>
303
304 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
305 Re-indent the code.
306 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
307 "unsigned long long".
308
b4e1fd61
KB
3092015-07-18 Kevin Buettner <kevinb@redhat.com>
310
311 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
312 to be set for SEC_ALLOC sections too.
313
554717a3
YQ
3142015-07-17 Yao Qi <yao.qi@linaro.org>
315
316 * Makefile.in (HFILES_NO_SRCDIR): Add
317 nat/aarch64-linux-hw-point.h.
318 (aarch64-linux-hw-point.o): New rule.
319 * nat/aarch64-linux-hw-point.h: New file.
320 * nat/aarch64-linux-hw-point.c: New file.
321 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
322 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
323 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
324 (AARCH64_HWP_ALIGNMENT): Likewise.
325 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
326 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
327 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
328 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
329 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
330 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
331 (struct aarch64_debug_reg_state): Likewise.
332 (struct arch_lwp_info): Likewise.
333 (aarch64_linux_set_debug_regs): Likewise.
334 (aarch64_notify_debug_reg_change): Remove static.
335 (aarch64_align_watchpoint): Likewise.
336 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
337 (aarch64_watchpoint_length): Likewise.
338 (aarch64_point_encode_ctrl_reg): Likewise
339 (aarch64_point_is_aligned): Likewise.
340 (aarch64_dr_state_insert_one_point): Likewise.
341 (aarch64_dr_state_remove_one_point): Likewise.
342 (aarch64_handle_breakpoint): Likewise.
343 (aarch64_handle_aligned_watchpoint): Likewise.
344 (aarch64_handle_unaligned_watchpoint): Likewise.
345 (aarch64_handle_watchpoint): Likewise.
346 * config/aarch64/linux.mh (NAT_FILE): Add
347 aarch64-linux-hw-point.o.
348
c67ca4de
YQ
3492015-07-17 Yao Qi <yao.qi@linaro.org>
350
351 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
352 state and don't call aarch64_get_debug_reg_state. All callers
353 update.
354 (aarch64_linux_insert_hw_breakpoint): Call
355 aarch64_get_debug_reg_state earlier.
356 (aarch64_linux_remove_hw_breakpoint): Likewise.
357 (aarch64_handle_aligned_watchpoint): Add argument state and
358 don't call aarch64_get_debug_reg_state. All callers update.
359 (aarch64_handle_unaligned_watchpoint): Likewise.
360 (aarch64_handle_watchpoint): Add argument state.
361 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
362 earlier.
363 (aarch64_linux_remove_watchpoint): Likewise.
364
25abf979
YQ
3652015-07-17 Yao Qi <yao.qi@linaro.org>
366
367 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
368 debug_printf.
369 (aarch64_handle_unaligned_watchpoint): Likewise.
370
2ecd81c2
YQ
3712015-07-17 Yao Qi <yao.qi@linaro.org>
372
373 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
374 argument type's type to 'enum target_hw_bp_type'.
375 (aarch64_dr_state_remove_one_point): Likewise.
376 (aarch64_handle_breakpoint): Likewise.
377 (aarch64_linux_insert_hw_breakpoint): Likewise.
378 (aarch64_linux_remove_hw_breakpoint): Likewise.
379 (aarch64_handle_aligned_watchpoint): Likewise.
380
e53b6938
YQ
3812015-07-17 Yao Qi <yao.qi@linaro.org>
382
383 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
384 ptid_get_pid instead of get_thread_id.
385
6a49a997
YQ
3862015-07-17 Yao Qi <yao.qi@linaro.org>
387
388 * remote.c (get_current_thread): Initialise ptid to null_ptid.
389 (add_current_inferior_and_thread): Don't initialise ptid.
390
4bcddace
PL
3912015-07-16 Pierre Langlois <pierre.langlois@arm.com>
392
393 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
394 unavailable if invalid.
395
db1ff28b
JK
3962015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
397
398 Revert the previous 6 commits:
399 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
400 Move gdb_regex* to common/
401 Prepare linux_find_memory_regions_full & co. for move
402 Move linux_find_memory_regions_full & co.
403 gdbserver build-id attribute generator
404 Validate symbol file using build-id
405
ca5268b6
JK
4062015-07-15 Aleksandar Ristovski <aristovski@qnx.com
407 Jan Kratochvil <jan.kratochvil@redhat.com>
408
409 Validate symbol file using build-id.
410 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
411 and 'show validate-build-id'. Add build-id attribute.
412 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
413 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
414 * solib-frv.c (_initialize_frv_solib): Ditto.
415 * solib-spu.c (set_spu_solib_ops): Ditto.
416 * solib-svr4.c: Include rsp-low.h.
417 (NOTE_GNU_BUILD_ID_NAME): New define.
418 (svr4_validate): New function.
419 (svr4_copy_library_list): Duplicate field build_id.
420 (library_list_start_library): Parse 'build-id' attribute.
421 (svr4_library_attributes): Add 'build-id' attribute.
422 (_initialize_svr4_solib): Assign validate value.
423 * solib-target.c (solib.h): Include.
424 (_initialize_solib_target): Assign validate value.
425 * solib.c (validate_build_id, show_validate_build_id): New.
426 (solib_map_sections): Use ops->validate.
427 (clear_so): Free build_id.
428 (default_solib_validate): New function.
429 (_initialize_solib): Add "validate-build-id".
430 * solib.h (default_solib_validate): New declaration.
431 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
432 (target_so_ops): New field 'validate'.
433
700ca40f
JK
4342015-07-15 Aleksandar Ristovski <aristovski@qnx.com
435 Jan Kratochvil <jan.kratochvil@redhat.com>
436
437 gdbserver build-id attribute generator.
438 * features/library-list-svr4.dtd (library-list-svr4): New
439 'build-id' attribute.
440
9904185c
JK
4412015-07-15 Aleksandar Ristovski <aristovski@qnx.com
442 Jan Kratochvil <jan.kratochvil@redhat.com>
443
444 Move linux_find_memory_regions_full & co.
445 * linux-tdep.c (nat/linux-maps.h): Include.
446 (gdb_regex.h): Remove the include.
447 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
448 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
449 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
450 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
451 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
452 and target/target.h.
453 (struct smaps_vmflags, read_mapping, decode_vmflags)
454 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
455 (linux_find_memory_regions_full): Move from linux-tdep.c.
456 * nat/linux-maps.h (read_mapping): New declaration.
457 (linux_find_memory_region_ftype, enum filterflags): Moved from
458 linux-tdep.c.
459 (linux_find_memory_regions_full): New declaration.
460 * target.c (target/target-utils.h): Include.
461 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
462 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
463 definitions to target/target-utils.c.
464 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
465 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
466 from target.c.
467 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
468 (read_alloc): New declaration.
469 (read_stralloc_func_ftype): New typedef.
470 (read_stralloc): New declaration.
471 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
472
f7af1fcd
JK
4732015-07-15 Aleksandar Ristovski <aristovski@qnx.com
474 Jan Kratochvil <jan.kratochvil@redhat.com>
475
476 Prepare linux_find_memory_regions_full & co. for move.
477 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
478 (linux_find_memory_regions_full): Change signature and prepare
479 for moving to linux-maps.
480 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
481 (linux_find_memory_regions_thunk): New.
482 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
483 (linux_find_memory_regions_gdb): New.
484 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
485 (linux_make_mappings_corefile_notes): Use
486 linux_find_memory_regions_gdb.
487 * target.c (read_alloc_pread_ftype): New typedef.
488 (target_fileio_read_alloc_1_pread): New function.
489 (read_alloc): Refactor from target_fileio_read_alloc_1.
490 (read_stralloc_func_ftype): New typedef.
491 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
492 (read_stralloc): Refactored from target_fileio_read_stralloc.
493 (target_fileio_read_stralloc): New implementation, use read_stralloc.
494
6e5b4429
JK
4952015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
496
497 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
498 common/gdb_regex.h.
499 (COMMON_OBS): Add gdb_regex.o.
500 (gdb_regex.o): New.
501 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
502 --without-included-regex and USE_INCLUDED_REGEX.
503 * common/gdb_regex.c: New file from utils.c functions.
504 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
505 file wrapping define name.
506 * configure: Rebuilt.
507 * configure.ac (gdb_use_included_regex, --without-included-regex)
508 (USE_INCLUDED_REGEX): Move them to common/common.m4.
509 * gdb_regex.h: Move it to common/gdb_regex.h.
510 * utils.c: Remove include gdb_regex.h.
511 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
512 (compile_rx_or_error): Move them to common/gdb_regex.c.
513
ddc98fbf
JK
5142015-07-15 Aleksandar Ristovski <aristovski@qnx.com
515 Jan Kratochvil <jan.kratochvil@redhat.com>
516
517 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
518 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
519 common/target-utils.h.
520 (COMMON_OBS): Add target-utils.o.
521 (linux-maps.o, target-utils.o): New.
522 * target/target-utils.c: New file.
523 * target/target-utils.h: New file.
524 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
525 * config/i386/linux64.mh (NATDEPFILES): Ditto.
526 * nat/linux-maps.c: New file.
527 * nat/linux-maps.h: New file.
528
e7b01ce0
MM
5292015-07-15 Markus Metzger <markus.t.metzger@intel.com>
530 Pedro Alves <palves@redhat.com>
531
532 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
533 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
534 (perf_event_read_bts): Change the type of SIZE and READ.
535 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
536 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
537 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
538 mmap page.
539 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
540 buffer size to UINT_MAX.
541 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
542 DATA_TAIL.
543 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
544 <last_head>: Change type.
545 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
546 * common/btrace-common.c (btrace_data_append): Change the type of
547 SIZE.
548 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
549 check.
550
f168693b
SM
5512015-07-14 Simon Marchi <simon.marchi@ericsson.com>
552
553 * gdbtypes.h (CHECK_TYPEDEF): Remove.
554 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
555 with check_typedef.
556 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
557 (ada_array_length): Likewise.
558 (find_parallel_type_by_descriptive_type): Likewise.
559 (ada_check_typedef): Likewise.
560 * arm-tdep.c (arm_return_in_memory): Likewise.
561 * ax-gdb.c (gen_trace_static_fields): Likewise.
562 (gen_struct_ref_recursive): Likewise.
563 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
564 (variable: block COLONCOLON name): Likewise.
565 (qualified_name: TYPENAME COLONCOLON name): Likewise.
566 * c-lang.c (classify_type): Likewise.
567 * c-typeprint.c (c_print_type): Likewise.
568 (c_print_typedef): Likewise.
569 (c_type_print_base): Likewise.
570 * c-valprint.c (c_val_print): Likewise.
571 * compile/compile-c-types.c (convert_type): Likewise.
572 * compile/compile-object-load.c (get_out_value_type): Likewise.
573 * completer.c (add_struct_fields): Likewise.
574 (expression_completer): Likewise.
575 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
576 (cp_lookup_nested_symbol_1): Likewise.
577 (cp_lookup_nested_symbol): Likewise.
578 * cp-valprint.c (cp_print_value_fields): Likewise.
579 (cp_print_static_field): Likewise.
580 * d-valprint.c (d_val_print): Likewise.
581 * eval.c (evaluate_subexp_standard): Likewise.
582 (evaluate_subexp_for_sizeof): Likewise.
583 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
584 * f-typeprint.c (f_type_print_base): Likewise.
585 * f-valprint.c (f_val_print): Likewise.
586 * gdbtypes.c (get_discrete_bounds): Likewise.
587 (create_array_type_with_stride): Likewise.
588 (type_name_no_tag_or_error): Likewise.
589 (lookup_struct_elt_type): Likewise.
590 (get_unsigned_type_max): Likewise.
591 (internal_type_vptr_fieldno): Likewise.
592 (set_type_vptr_fieldno): Likewise.
593 (internal_type_vptr_basetype): Likewise.
594 (set_type_vptr_basetype): Likewise.
595 (get_vptr_fieldno): Likewise.
596 (is_integral_type): Likewise.
597 (is_scalar_type): Likewise.
598 (is_scalar_type_recursive): Likewise.
599 (distance_to_ancestor): Likewise.
600 (is_unique_ancestor_worker): Likewise.
601 (check_types_equal): Likewise.
602 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
603
45280282
IB
6042015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
605
606 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
607 also test for language_d.
608 (dwarf2_compute_name): Likewise.
609 (read_func_scope): Likewise.
610 (read_structure_type): Likewise.
611 (new_symbol_full): Likewise.
612 (determine_prefix): Likewise.
613 (read_import_statement): Use dot as the separator for language_d.
614 (typename_concat): Likewise, but don't prefix the D main function.
615
99fe86f7
PB
6162015-07-14 Peter Bergner <bergner@vnet.ibm.com>
617
618 * nat/linux-namespaces.c (setns): Rename from this ...
619 (do_setns): ... to this. Support calling setns if it exists.
620 (mnsh_handle_setns): Call do_setns.
621
d5131498
YQ
6222015-07-13 Yao Qi <yao.qi@linaro.org>
623
624 * exec.c (exec_file_attach): Add period at the end of error
625 message.
626
97605e61
AB
6272015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
628
629 * tui/tui-win.c (window_name_completer): New function.
630 (focus_completer): Call window_name_completer. All old content
631 moved into window_name_completer.
632 (winheight_completer): New function.
633 (_initialize_tui_win): Rename variable. Add completer to
634 winheight command. Update doc string on winheight.
635
8d6dbeb4
SL
6362015-07-12 Sandra Loosemore <sandra@codesourcery.com>
637
638 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
639 all nios2 mach variants.
640
a0e28e54
KB
6412015-07-10 Kevin Buettner <kevinb@redhat.com>
642
643 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
644 of target_read_memory.
645
c101f28f
AB
6462015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
647
648 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
649 string copy.
650 (parse_scrolling_args): Likewise.
651
150375dc
AB
6522015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
653
654 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
655 names in this function.
656
6dce28e4
AB
6572015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
658
659 * tui/tui-data.h (SRC_NAME): Convert to lower case.
660 (CMD_NAME): Likewise.
661 (DATA_NAME): Likewise.
662 (DISASSEM_NAME): Likewise.
663 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
664 (tui_set_win_height): Likewise.
665 (parse_scrolling_args): Likewise.
666
485668e5
MM
6672015-07-10 Markus Metzger <markus.t.metzger@intel.com>
668
669 * record-btrace.c (record_btrace_goto_begin)
670 (record_btrace_goto_end, record_btrace_goto): Move call to
671 print_stack_frame ...
672 (record_btrace_set_replay): ... here. Set stop_pc.
673 * record-full.c (record_full_goto_entry): Set stop_pc.
674
58d2eda5
PL
6752015-07-09 Pierre Langlois <pierre.langlois@arm.com>
676
677 * NEWS: Mention support for tracepoints on aarch64-linux.
678
7671bf47
PL
6792015-07-09 Pierre Langlois <pierre.langlois@arm.com>
680
681 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
682 function. Return 1.
683 (the_low_target): Install it.
684
7890fb45
PL
6852015-07-09 Pierre Langlois <pierre.langlois@arm.com>
686
687 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
688 * gdb.trace/collection.exp: Likewise.
689 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
690 * gdb.trace/mi-trace-unavailable.exp: Likewise.
691 * gdb.trace/report.exp: Likewise.
692 * gdb.trace/trace-break.exp: Likewise.
693 * gdb.trace/unavailable.exp: Likewise.
694 * gdb.trace/while-dyn.exp: Likewise.
695
ea873d8e
PL
6962015-07-09 Pierre Langlois <pierre.langlois@arm.com>
697
698 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
699 (aarch64_gen_return_address): New function.
700 (aarch64_gdbarch_init): Hook it.
701
02a2a705
PL
7022015-07-09 Pierre Langlois <pierre.langlois@arm.com>
703
704 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
705 swallow NOT_AVAILABLE_ERROR.
706 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
707 available_p is not set.
708 (aarch64_stub_frame_unwind_stop_reason): New function.
709 (aarch64_stub_unwind): Install it.
710
7dfa3edc
PL
7112015-07-09 Pierre Langlois <pierre.langlois@arm.com>
712
713 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
714 field.
715 (aarch64_make_prologue_cache_1): New function, factored out from
716 aarch64_make_prologue_cache. Do not allocate cache. Set
717 available_p.
718 (aarch64_make_prologue_cache): Reimplement wrapping
719 aarch64_make_prologue_cache_1, and swallowing
720 NOT_AVAILABLE_ERROR.
721 (aarch64_prologue_frame_unwind_stop_reason): New function.
722 Return UNWIND_UNAVAILABLE if available_p is not set.
723 (aarch64_prologue_unwind): Install it.
724 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
725 checks into aarch64_prologue_frame_unwind_stop_reason. Call
726 frame_id_build_unavailable_stack if available_p is not set.
727
db634143
PL
7282015-07-09 Pierre Langlois <pierre.langlois@arm.com>
729
730 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
731 fields.
732 (aarch64_scan_prologue): Set prev_pc.
733 (aarch64_make_prologue_cache): Set func.
734 (aarch64_make_stub_cache): Set prev_pc.
735 (aarch64_prologue_this_id): Remove local variables id, pc and
736 func. Read prev_pc and func from cache.
737 (aarch64_stub_this_id): Read prev_pc from cache.
738
8b61f75d
PL
7392015-07-09 Pierre Langlois <pierre.langlois@arm.com>
740
741 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
742 argument this_cache. Remove unused local variables reg and
743 unwound_fp. Return early if this_cache is already set. Set
744 this_cache.
745 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
746
7c8edfae
PL
7472015-07-09 Pierre Langlois <pierre.langlois@arm.com>
748
749 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
750 New argument this_cache. Return early if this_cache is already
751 set. Set this_cache.
752 (aarch64_prologue_this_id): Update call to
753 aarch64_make_prologue_cache.
754 (aarch64_prologue_prev_register): Likewise.
755 (aarch64_normal_frame_base): Likewise.
756
938c69a1
SM
7572015-07-09 Simon Marchi <simon.marchi@ericsson.com>
758
759 * c-valprint.c (c_val_print): Factor out memberptr printing code
760 from c_val_print to ...
761 (c_val_print_memberptr): ... this new function.
762
49f7fe28
SM
7632015-07-09 Simon Marchi <simon.marchi@ericsson.com>
764
765 * c-valprint.c (c_val_print): Factor out int printing code to ...
766 (c_val_print_int): ... this new function.
767
9e4f353c
SM
7682015-07-09 Simon Marchi <simon.marchi@ericsson.com>
769
770 * c-valprint.c (c_val_print): Factor out struct and union
771 printing code to ...
772 (c_val_print_struct): ... this new function ...
773 (c_val_print_union): ... and this new function.
774
1c67f032
SM
7752015-07-09 Simon Marchi <simon.marchi@ericsson.com>
776
777 * c-valprint.c (c_val_print): Factor out pointer printing code
778 to ...
779 (c_val_print_ptr): ... this new function.
780
0b6ef777
SM
7812015-07-09 Simon Marchi <simon.marchi@ericsson.com>
782
783 * c-valprint.c (c_valprint): Factor our array printing code from
784 c_val_print to ...
785 (c_val_print_array): ... this new function.
786
1033c33c
SM
7872015-07-09 Simon Marchi <simon.marchi@ericsson.com>
788
789 * c-valprint.c (c_val_print): Factor out pointer printing code
790 to ...
791 (print_unpacked_pointer): ... this new function.
792
f6b93c34
SM
7932015-07-09 Simon Marchi <simon.marchi@ericsson.com>
794
795 * c-valprint.c (c_val_print): Remove an assignment to i and move
796 its declaration.
797
0f4576e3
YQ
7982015-07-09 Yao Qi <yao.qi@linaro.org>
799
800 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
801 argument ptid. Update comments. Caller update.
802
37fdfe4c
MM
8032015-07-09 Markus Metzger <markus.t.metzger@intel.com>
804
805 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
806 mnt packets.
807
80a2b330
MM
8082015-07-09 Markus Metzger <markus.t.metzger@intel.com>
809
810 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
811
4ab31498
SM
8122015-07-08 Simon Marchi <simon.marchi@ericsson.com>
813
814 * progspace.c (delete_program_space): Add missing spaces.
815
7a41607e
SM
8162015-07-08 Simon Marchi <simon.marchi@ericsson.com>
817
818 * inferior.c (delete_inferior_1): Rename to ...
819 (delete_inferior): ..., remove 'silent' parameter, delete
820 program space when unused and remove call to prune_program_spaces.
821 Remove the old, unused, delete_inferior.
822 (delete_inferior_silent): Remove.
823 (prune_inferiors): Change call from delete_inferior_1 to
824 delete_inferior and remove 'silent' parameter. Remove call to
825 prune_program_spaces.
826 (remove_inferior_command): Idem.
827 * inferior.h (delete_inferior_1): Rename to...
828 (delete_inferior): ..., remove 'silent' parameter and remove the
829 original delete_inferior.
830 (delete_inferior_silent): Remove.
831 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
832 delete_inferior_1 to delete_inferior and remove 'silent'
833 parameter.
834 * progspace.c (prune_program_spaces): Remove.
835 (pspace_empty_p): Rename to...
836 (program_space_empty_p): ... and make non-static.
837 (delete_program_space): New.
838 * progspace.h (prune_program_spaces): Remove declaration.
839 (program_space_empty_p): New declaration.
840 (delete_program_space): New declaration.
841 * monitor.c (monitor_close): Replace call to
842 delete_thread_silent and delete_inferior_silent with
843 discard_all_inferiors.
844
a9bd710f
PP
8452015-07-08 Patrick Palka <patrick@parcs.ath.cx>
846
847 * defs.h (deprecated_register_changed_hook): Remove prototype.
848 * interps.c (clear_iterpreter_hooks): Remove reference to
849 deprecated_register_changed_hook.
850 * top.c (deprecated_register_changed_hook): Remove prototype.
851 * valops.c (value_assign): Remove reference to
852 deprecated_register_changed_hook.
853 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
854 Add comment documenting the function.
855 (tui_register_changed_observer): Define.
856 (tui_install_hooks): Remove reference to
857 deprecated_register_changed_hook. Set
858 tui_register_changed_observer.
859 (tui_remove_hooks): Remove reference to
860 deprecated_register_changed_hook. Unset
861 tui_register_changed_observer.
862
08464196
JK
8632015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
864
865 PR compile/18484
866 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
867
bcf5c1d9
RC
8682015-07-08 Robert O'Callahan <robert@ocallahan.org>
869
870 PR exp/18617
871 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
872
e8643a45
MM
8732015-07-08 Markus Metzger <markus.t.metzger@intel.com>
874
875 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
876
76fb6829
MM
8772015-07-08 Markus Metzger <markus.t.metzger@intel.com>
878
879 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
880 Use safe_strerror() instead of strerror().
881
82c40d4b
YQ
8822015-07-07 Yao Qi <yao.qi@linaro.org>
883
884 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
885 * features/arm-with-m-fpa-layout.c: Regenerated.
886 * features/arm-with-m-vfp-d16.xml: Likewise.
887 * features/arm-with-m-vfp-d16.c: Regenerated.
888 * features/arm-with-m.xml: Likewise.
889 * features/arm-with-m.c: Regenerated.
890 * features/arm-with-neon.xml: Likewise.
891 * features/arm-with-neon.c: Regenerated.
892 * features/arm-with-vfpv2.xml: Likewise.
893 * features/arm-with-vfpv2.c: Regenerated.
894 * features/arm-with-vfpv3.xml: Likewise.
895 * features/arm-with-vfpv3.c: Regenerated.
896
607685ec
YQ
8972015-07-07 Yao Qi <yao.qi@linaro.org>
898
899 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
900 arm-linux-nat.c.
901 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
902 elf/external.h.
903 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
904 if target is 32-bit.
905 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
906 if target is 32-bit.
907 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
908 if target is 32-bit.
909 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
910 if target is 32-bit.
911 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
912 (aarch64_linux_read_description): Return the right target
913 description.
914 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
915 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
916 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
917 arm-linux-tdep.o.
918
f1b67888
YQ
9192015-07-07 Yao Qi <yao.qi@linaro.org>
920
921 * aarch32-linux-nat.c: New file.
922 * aarch32-linux-nat.h: New file.
923 * arm-linux-nat.c: Include aarch32-linux-nat.h.
924 (fetch_regs): Move code to aarch32-linux-nat.c. Call
925 aarch32_gp_regcache_supply.
926 (store_regs): Move code to aarch32-linux-nat.c. Call
927 aarch32_gp_regcache_collect.
928 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
929 aarch32_vfp_regcache_supply.
930 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
931 aarch32_vfp_regcache_collect.
932 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
933
179bfe82
YQ
9342015-07-07 Yao Qi <yao.qi@linaro.org>
935
936 * arm-linux-nat.c (store_fpregister): Remove.
937 (store_register): Likewise.
938 (fetch_fpregister): Likewise.
939 (fetch_register): Likewise.
940 (arm_linux_store_inferior_registers): Call store_regs and
941 store_fpregs instead.
942 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
943 fetch_regs instead.
944
6008fc5f
AB
9452015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
946
947 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
948 and focus commands.
949
7c79d316
JB
9502015-07-06 Joel Brobecker <brobecker@adacore.com>
951
952 * NEWS: Create a new section for the next release branch.
953 Rename the section of the current branch, now that it has
954 been cut.
955
f2232bea
JB
9562015-07-06 Joel Brobecker <brobecker@adacore.com>
957
958 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
959 * version.in: Bump version to 7.10.50.DATE-cvs.
960
66c4b3e8
LM
9612015-07-06 Luis Machado <lgustavo@codesourcery.com>
962
963 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
964 breakpoints in a special way.
965 (remove_breakpoint): Likewise.
966 (mark_breakpoints_out): Likewise.
967
bcd8537c
AB
9682015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
969
970 * doc/gdb.texinfo (TUI): Add comma after @xref.
971
10e9aaa3
AB
9722015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
975 instead of casting the structure type.
976
8a13d42d
SM
9772015-07-06 Simon Marchi <simon.marchi@ericsson.com>
978
979 * valops.c (search_struct_field): Remove OFFSET parameter.
980 (value_cast_structs): Adjust calls to search_struct_field.
981 (value_struct_elt): Same.
982 (find_overload_match): Same.
983
a844296a
SM
9842015-07-06 Simon Marchi <simon.marchi@ericsson.com>
985
986 * value.c (value_fetch_lazy): Update comment, change return
987 value to void.
988 * value.h (value_fetch_lazy): Change return value to void.
989
f41cbf58
AB
9902015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
991
992 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
993 (tui_win_name): Make parameter and result const.
994 * tui/tui-data.h (tui_win_name): Make parameter and result const.
995
118ca224
PP
9962015-07-06 Patrick Palka <patrick@parcs.ath.cx>
997
998 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
999 use printf_unfiltered.
1000 (set_mpx_cmd): Add missing trailing space to command string
1001 literal.
1002 (_initialize_i386_tdep): Give the "mpx" prefix command its
1003 correct name.
1004
1b485e67
KB
10052015-07-02 Kevin Buettner <kevinb@redhat.com>
1006
1007 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
1008 (enum rx_frame_type): New.
1009 (struct rx_prologue): Add new field `frame_type'.
1010 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
1011 parameter in the prologue struct. Add code for recording
1012 locations of PC and PSW for fast interrupt and exception frames.
1013 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
1014 (rx_analyze_frame_prologue): Add `frame_type' parameter.
1015 (rx_frame_type): New function.
1016 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
1017 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
1018 `this_cache'.
1019 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 1020 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
1021 RX_FRAME_TYPE_FAST_INTERRUPT.
1022 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
1023 (rx_frame_sniffer, rx_exception_sniffer): New functions.
1024 (rx_frame_unwind): Use rx_frame_sniffer instead of
1025 default_frame_sniffer.
1026 (rx_frame_unwind): New unwinder.
1027 (rx_gdbarch_init): Register new unwinder.
1028
0561fea4
KB
10292015-07-02 Kevin Buettner <kevinb@redhat.com>
1030
1031 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
1032 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
1033 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
1034 and RX_FPSW_REGNUM.
1035 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
1036
decf8d9a
JK
10372015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1038
1039 Fix GCC false warning.
1040 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
1041
2fd0f80d
YQ
10422015-07-02 Yao Qi <yao.qi@linaro.org>
1043
1044 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
1045 typo in the debugging message.
1046
b0627500
MM
10472015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1048
1049 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
1050 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
1051 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
1052 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
1053 (btrace_maint_clear): New.
1054 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
1055 (pt_print_packet, btrace_maint_decode_pt)
1056 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
1057 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
1058 (maint_btrace_packet_history_cmd)
1059 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
1060 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
1061 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
1062 (maint_info_btrace_cmd, _initialize_btrace): New.
1063 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
1064 (btrace_maint_packet_history, btrace_maint_info): New.
1065 (btrace_thread_info) <maint>: New.
1066 * NEWS: Announce it.
1067
9be54cae
MM
10682015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1069
1070 * btrace.c (btrace_fetch): Append the new trace data.
1071 (btrace_clear): Clear the stored trace data.
1072 * btrace.h (btrace_thread_info) <data>: New.
1073 * common/btrace-common.h (btrace_data_clear)
1074 (btrace_data_append): New.
1075 * common/btrace-common.c (btrace_data_clear)
1076 (btrace_data_append): New.
1077
010a18a1
MM
10782015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1079
1080 * nat/linux-btrace.c (linux_enable_bts): Check for
1081 PERF_ATTR_SIZE_VER5.
1082 Check for data_offset and data_size fields. Use them.
1083
b20a6524
MM
10842015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1085
1086 * NEWS: Announce new commands "record btrace pt" and "record pt".
1087 Announce new options "set|show record btrace pt buffer-size".
1088 * btrace.c: Include "rsp-low.h".
1089 Include "inttypes.h".
1090 (btrace_add_pc): Add forward declaration.
1091 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
1092 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
1093 (btrace_compute_ftrace_pt): New.
1094 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
1095 (check_xml_btrace_version): Update version check.
1096 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
1097 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
1098 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
1099 (btrace_pt_children): New.
1100 (btrace_children): Add support for "pt".
1101 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
1102 (btrace_conf_children): Add support for "pt".
1103 * btrace.h: Include "intel-pt.h".
1104 (btrace_pt_error): New.
1105 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
1106 (btrace_data_empty): Support BTRACE_FORMAT_PT.
1107 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
1108 (struct btrace_config_pt): New.
1109 (struct btrace_config)<pt>: New.
1110 (struct btrace_data_pt_config, struct btrace_data_pt): New.
1111 (struct btrace_data)<pt>: New.
1112 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
1113 (pt): New.
1114 * features/btrace.dtd (btrace)<pt>: New.
1115 (pt, pt-config, cpu): New.
1116 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
1117 (perf_event_pt_event_type, kernel_supports_pt)
1118 (linux_supports_pt): New.
1119 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
1120 (linux_enable_bts): Free tinfo on error.
1121 (linux_enable_pt): New.
1122 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
1123 (linux_disable_pt): New.
1124 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
1125 (linux_fill_btrace_pt_config, linux_read_pt): New.
1126 (linux_read_btrace): Support BTRACE_FORMAT_PT.
1127 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
1128 (struct btrace_target_info)<pt>: New.
1129 * record-btrace.c (set_record_btrace_pt_cmdlist)
1130 (show_record_btrace_pt_cmdlist): New.
1131 (record_btrace_print_pt_conf): New.
1132 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
1133 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
1134 (cmd_record_btrace_pt_start): New.
1135 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
1136 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
1137 (_initialize_record_btrace): Add new commands.
1138 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
1139 (remote_protocol_features): Add "Qbtrace:pt".
1140 Add "Qbtrace-conf:pt:size".
1141 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
1142 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
1143 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
1144 (_initialize_remote): Add new commands.
1145
58bfce93
MM
11462015-07-02 Markus Metzger <markus.t.metzger@intel.com>
1147
1148 * configure.ac: check for libipt
1149 * configure: Regenerate.
1150 * config.in: Regenerate.
1151 * Makefile.in (LIBIPT): New.
1152 (CLIBS): Add $LIBIPT.
1153 * NEWS: document new configure options
1154
b0fd6b30
JK
11552015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1156
1157 * compile/compile-object-load.c (compile_object_load): Replace debug
1158 message "lookup undefined ELF symbol" by 3 more specific messages.
1159
e6280369
KB
11602015-07-01 Kevin Buettner <kevinb@redhat.com>
1161
1162 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
1163 (rl78_register_type): Add case for RL78_PSW_REGNUM.
1164 (rl78_gdbarch_init): Initialize rl78_psw_type.
1165
bbcbf914
PP
11662015-07-01 Patrick Palka <patrick@parcs.ath.cx>
1167
1168 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1169 Update commentary. Always refresh the registers when frame
1170 information has changed.
1171 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
1172 Change return type to int. Return 1 if frame information has
1173 changed, 0 otherwise.
1174 (tui_before_prompt): Update commentary.
1175 * tui/tui-stack.h (tui_show_frame_info): Change return type to
1176 int.
1177
0986c744
PP
11782015-06-30 Patrick Palka <patrick@parcs.ath.cx>
1179
1180 PR tui/13378
1181 * frame.c (select_frame): Remove reference to
1182 deprecated_selected_frame_level_changed_hook.
1183 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
1184 declaration.
1185 * stack.c (deprecated_selected_frame_level_changed_hook):
1186 Likewise.
1187 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
1188 Rename to ...
1189 (tui_refresh_frame_and_register_information): ... this. Bail
1190 out if there is no stack. Don't update register information
1191 unless registers_too_p is true.
1192 (tui_print_frame_info_listing_hook): Rename to ...
1193 (tui_dummy_print_frame_info_listing_hook): ... this.
1194 (tui_before_prompt): New function.
1195 (tui_normal_stop): New function.
1196 (tui_before_prompt_observer): New observer.
1197 (tui_normal_stop_observer): New observer.
1198 (tui_install_hooks): Set
1199 deprecated_print_frame_info_listing_hook to
1200 tui_dummy_print_frame_info_listing_hook. Register
1201 tui_before_prompt_observer to call tui_before_prompt and
1202 tui_normal_stop_observer to call tui_normal_stop. Remove
1203 reference to deprecated_selected_frame_level_changed_hook.
1204 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
1205 and tui_normal_stop_observer. Remove reference to
1206 deprecated_selected_frame_level_changed_hook.
1207
b5fca6d7
PP
12082015-06-30 Patrick Palka <patrick@parcs.ath.cx>
1209
1210 PR tui/13378
1211 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
1212 return an int instead of void. Return whether the locator
1213 window has changed.
1214 (tui_show_frame_info): If the locator info has not changed, then
1215 bail out early to avoid refreshing the windows.
1216
c45613e3
PP
12172015-06-30 Patrick Palka <patrick@parcs.ath.cx>
1218
1219 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
1220 LOCATOR_WIN to tui_alloc_content.
1221
7b9be803
YQ
12222015-06-30 Yao Qi <yao.qi@linaro.org>
1223
1224 PR tdep/18605
1225 * arm-tdep.c (arm_get_next_pc_raw): Break for media
1226 instructions.
1227
fd6e021d
KB
12282015-06-29 Kevin Buettner <kevinb@redhat.com>
1229
78ab7e9d
KB
1230 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
1231 (rx_dwarf_reg_to_regnum): New function.
1232 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
1233 unwinding.
fd6e021d 1234
28bf096c
PA
12352015-06-29 Pedro Alves <palves@redhat.com>
1236
1237 PR threads/18127
1238 * infcall.c (run_inferior_call): On infcall success, if the thread
1239 was marked stopped before, reset it back to stopped.
1240 * infrun.c (resume): Don't suppress the set_running calls when
1241 doing an infcall.
1242 (normal_stop): Only discard the finish_thread_state cleanup if the
1243 infcall succeeded.
1244
2880b51c 12452015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
1246
1247 * MAINTAINERS (Write After Approval): Update my email address.
1248
ee93cd5e
KS
12492015-06-26 Keith Seitz <keiths@redhat.com>
1250 Doug Evans <dje@google.com>
1251
1252 PR 16253
1253 * block.c (block_lookup_symbol): For non-function blocks,
1254 continue to search for a symbol with an exact domain match
1255 Otherwise, return any previously found "best domain" symbol.
1256 (block_lookup_symbol_primary): Likewise.
1257
fc637f04
PP
12582015-06-26 Patrick Palka <patrick@parcs.ath.cx>
1259
1260 * NEWS: Mention the new option "history remove-duplicates".
1261 * top.c (history_remove_duplicates): New static variable.
1262 (show_history_remove_duplicates): New static function.
1263 (gdb_add_history): Conditionally remove duplicate history
1264 entries.
1265 (init_main): Add "history remove-duplicates" option.
1266
2e52ae68
PP
12672015-06-26 Patrick Palka <patrick@parcs.ath.cx>
1268
1269 * tui/tui-win.c (focus_completer): New static function.
1270 (_initialize_tui_win): Set the completion function of the
1271 "focus" command to focus_completer.
1272
6e22494e
JK
12732015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1274
1275 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
1276 and language_asm..
1277 * symtab.c (find_function_start_sal): Likewise.
1278
f8773be1
GB
12792015-06-25 Gary Benson <gbenson@redhat.com>
1280
1281 * solib.c (solib_find_1): Set local variable sysroot to NULL if
1282 it is the empty string after trailing slashes have been stripped.
1283
a3be80c3
GB
12842015-06-25 Gary Benson <gbenson@redhat.com>
1285
1286 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
1287 * infrun.c (follow_exec): Likewise.
1288 * remote.c (remote_filesystem_is_local): Likewise.
1289 * solib.c (solib_find_1): Likewise.
1290
32fad71f
KS
12912015-06-24 Keith Seitz <keiths@redhat.com>
1292
1293 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
1294 return value from lrealpath.
1295
87d1b309
MF
12962015-06-24 Mike Frysinger <vapier@gentoo.org>
1297
1298 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
1299
23bf70af
MF
13002015-06-24 Mike Frysinger <vapier@gentoo.org>
1301
1302 * remote-sim.c: Include gdb_bfd.h.
1303 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
1304 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
1305
5cd867b4
YQ
13062015-06-24 Yao Qi <yao.qi@linaro.org>
1307
1308 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
1309 set_gdbarch_get_siginfo_type.
1310 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
1311 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1312 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1313 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
1314 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1315 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1316 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
1317 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
1318 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
1319 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
1320
dc06243f
GB
13212015-06-24 Gary Benson <gbenson@redhat.com>
1322
1323 * common/buffer.c (stdint.h): Do not include.
1324 * common/print-utils.c (stdint.h): Likewise.
1325 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
1326 * compile/compile-c-types.c (gdb_assert.h): Likewise.
1327 * ft32-tdep.c (gdb_assert.h): Likewise.
1328 * guile/scm-utils.c (stdint.h): Likewise.
1329 * i386-linux-tdep.c (stdint.h): Likewise.
1330 * i386-tdep.c (stdint.h): Likewise.
1331 * nat/linux-btrace.c (stdint.h): Likewise.
1332 * nat/linux-btrace.h (stdint.h): Likewise.
1333 * nat/linux-ptrace.c (stdint.h): Likewise.
1334 * nat/mips-linux-watch.h (stdint.h): Likewise.
1335 * ppc-linux-nat.c (stdint.h): Likewise.
1336 * python/python-internal.h (stdint.h): Likewise.
1337 * stub-termcap.c (stdlib.h): Likewise.
1338 * target/target.h (stdint.h): Likewise.
1339 * xtensa-linux-nat.c (stdint.h): Likewise.
1340
0fc26caf
PP
13412015-06-23 Patrick Palka <patrick@parcs.ath.cx>
1342
1343 * top.c (init_history): Look at errno after calling strtol to
1344 properly map large GDBHISTSIZE values to infinity.
1345
a38fe4fe
DE
13462015-06-23 Doug Evans <dje@google.com>
1347
1348 * inferior.h (struct inferior_suspend_state): Delete, unused.
1349 All references deleted.
1350
7564fe45
MF
13512015-06-23 Mike Frysinger <vapier@gentoo.org>
1352
1353 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
1354 (microblaze_push_dummy_call): Likewise.
1355 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
1356 and set_gdbarch_push_dummy_call.
1357
0bdb2f78
YQ
13582015-06-23 Yao Qi <yao.qi@linaro.org>
1359
1360 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
1361 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
1362 (amd64_linux_store_inferior_registers): Likewise.
1363 * arm-linux-nat.c (fetch_fpregister): Likewise.
1364 (fetch_fpregs, store_fpregister): Likewise.
1365 (store_fpregister, store_fpregs): Likewise.
1366 (fetch_register, fetch_regs): Likewise.
1367 (store_register, store_regs): Likewise.
1368 (fetch_vfp_regs, store_vfp_regs): Likewise.
1369 (arm_linux_read_description): Check have_ptrace_getregset is
1370 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
1371 or TRIBOOL_FALSE.
1372 * i386-linux-nat.c (fetch_xstateregs): Check
1373 have_ptrace_getregset is not TRIBOOL_TRUE.
1374 (store_xstateregs): Likewise.
1375 * linux-nat.c (have_ptrace_getregset): Change its type to
1376 enum tribool.
1377 * linux-nat.h (tribool): New enum.
1378 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
1379 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
1380
18a94d75
DE
13812015-06-19 Doug Evans <dje@google.com>
1382
1383 * NEWS: Mention Sun's version of stabs is no longer supported.
1384 * elfread.c (free_elfinfo): Delete. All uses updated.
1385 (elfstab_offset_sections): Delete. All uses updated.
1386 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
1387 * psympriv.h (partial_symtab) <section_offsets>: Delete.
1388 All uses updated.
1389 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
1390 All callers updated.
1391
124e13d9
SM
13922015-06-18 Simon Marchi <simon.marchi@ericsson.com>
1393
1394 * common/rsp-low.c (needs_escaping): New.
1395 (remote_escape_output): Add unit_size parameter. Refactor to
1396 support multi-byte addressable units. Rename parameters.
1397 * common/rsp-low.h (remote_escape_output): Add unit_size
1398 parameter and rename others. Update doc.
1399 * remote.c (align_for_efficient_write): New.
1400 (remote_write_bytes_aux): Add unit_size parameter and use it.
1401 Rename some variables. Update doc.
1402 (remote_xfer_partial): Get unit size and use it.
1403 (remote_read_bytes_1): Add unit_size parameter and use it.
1404 Rename some variables. Update doc.
1405 (remote_write_bytes): Same.
1406 (remote_xfer_live_readonly_partial): Same.
1407 (remote_read_bytes): Same.
1408 (remote_flash_write): Update call to remote_write_bytes_aux.
1409 (remote_write_qxfer): Update call to remote_escape_output.
1410 (remote_search_memory): Same.
1411 (remote_hostio_pwrite): Same.
1412
6ae88661
LM
14132015-06-17 Luis Machado <lgustavo@codesourcery.com>
1414
1415 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
1416 locations as inserted.
1417 Update and expand comment about permanent locations.
1418 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
1419 Move comment to add_location_to_breakpoint.
1420 (update_global_location_list): Don't error out if a permanent
1421 breakpoint is not marked inserted.
1422 Don't error out if a non-permanent breakpoint location is inserted on
1423 top of a permanent breakpoint.
1424
da4616f6
LM
14252015-06-17 Luis Machado <lgustavo@codesourcery.com>
1426
1427 * breakpoint.c (make_breakpoint_permanent): Remove unused
1428 function.
1429 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
1430
bc460514
PP
14312015-06-17 Patrick Palka <patrick@parcs.ath.cx>
1432
1433 PR gdb/16999
1434 * NEWS: Mention new GDBHISTSIZE behavior.
1435 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
1436 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
1437
b58c513b
PP
14382015-06-17 Patrick Palka <patrick@parcs.ath.cx>
1439
1440 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
1441 * top.c (init_history): Read from GDBHISTSIZE instead of
1442 HISTSIZE.
1443 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
1444
2093d2d3
PP
14452015-06-17 Patrick Palka <patrick@parcs.ath.cx>
1446
1447 * top.c (gdb_safe_append_history): Do not call
1448 history_truncate_file if the history is not stifled.
1449
fc248485
AA
14502015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
1451
1452 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
1453 * syscalls/s390x-linux.xml: Likewise.
1454
4da680ad
ME
14552015-06-16 Michael Eager <eager@eagercon.com>
1456
1457 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
1458
0a75489f
PP
14592015-06-16 Patrick Palka <patrick@parcs.ath.cx>
1460
1461 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
1462 target_terminal_ours_for_output() before calling
1463 tui_show_frame_info(), and restore the original terminal
1464 settings afterwards.
1465
95855ca8
MS
14662015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
1467
1468 * arm-linux-nat.c: Include nat/linux-ptrace.h.
1469
cfc32360
SM
14702015-06-15 Simon Marchi <simon.marchi@ericsson.com>
1471
1472 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
1473 memory unit size.
1474 (mi_cmd_data_write_memory_bytes): Same.
1475
cb6f16cf
SM
14762015-06-15 Simon Marchi <simon.marchi@ericsson.com>
1477
1478 * corefile.c (write_memory): Update doc.
1479 * gdbcore.h (write_memory): Same.
1480
31b7833d
JK
14812015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1482
1483 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
1484 (dump_mapping_p): Use it for parameter filterflags.
1485 (linux_find_memory_regions_full): Use it for variable filterflags.
1486
909c2cda
JK
14872015-06-15 Aleksandar Ristovski <aristovski@qnx.com
1488 Jan Kratochvil <jan.kratochvil@redhat.com>
1489
1490 Merge multiple hex conversions.
1491 * monitor.c: Include rsp-low.h.
1492 (fromhex): Remove definition.
1493
03aef70f
JK
14942015-06-15 Aleksandar Ristovski <aristovski@qnx.com
1495 Jan Kratochvil <jan.kratochvil@redhat.com>
1496
1497 Move utility functions to common/.
1498 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
1499 Move defs to common/common-utils.c.
1500 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
1501 (skip_to_space_const): Move decls to common/common-utils.h.
1502 * common/common-defs.h: Move include of common-types.h before
1503 common-utils.h.
1504 * common/common-utils.c: Include host-defs.h and ctype.h.
1505 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
1506 from utils.c.
1507 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
1508 cli/cli-utils.c.
1509 * common/common-utils.h (strtoulst): Move decl from utils.h.
1510 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
1511 Move from cli/cli-utils.h.
1512 * common/host-defs.h: Include limits.h.
1513 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
1514 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
1515 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
1516 common/common-utils.h.
1517 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
1518 (strtoulst): Move to common/common-utils.c.
1519 * utils.h (strtoulst): Moved decl to common/common-utils.h.
1520
d1168cc1
YQ
15212015-06-15 Yao Qi <yao.qi@linaro.org>
1522
1523 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
1524
c74f7d1c
JT
15252015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
1526
1527 * build-id.c: Don't include elf-bfd.h.
1528 (build_id_bfd_get): Use bfd_build_id.
1529 (build_id_verify): Ditto.
1530 * build-id.h: Ditto.
1531 (find_separate_debug_file_by_buildid): Ditto.
1532 * python/py-objfile.c: Don't include elf-bfd.h.
1533 (objfpy_get_build_id) Use bfd_build_id.
1534 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
1535 * coffread.c: Include build-id.h.
1536 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
1537
f20c58f5
JT
15382015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
1539
1540 * windows-nat.c (do_windows_fetch_inferior_registers)
1541 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
1542 conditional with __CYGWIN__.
1543
51f0e40d
AB
15442015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
1545
1546 * completer.c: Add arch-utils.h include.
1547 (enum reg_completer_targets): New enum.
1548 (reg_or_group_completer_1): New function containing old
1549 reg_or_group_completer, add and use new parameter to control what
1550 is completed on. Use get_current_arch rather than architecture of
1551 currently selected frame.
1552 (reg_or_group_completer): Call new reg_or_group_completer_1.
1553 (reggroup_completer): Call new reg_or_group_completer_1.
1554 * completer.h (reggroup_completer): Add declaration.
1555 * tui/tui-regs.c: Add 'completer.h' include.
1556 (tui_reg_next_command): Renamed to...
1557 (tui_reg_next): ...this. Adjust parameters and return rather than
1558 display new group.
1559 (tui_reg_prev_command): Renamed to...
1560 (tui_reg_prev): ...this. Adjust parameters and return rather than
1561 display new group.
1562 (tui_reg_float_command): Delete.
1563 (tui_reg_general_command): Delete.
1564 (tui_reg_system_command): Delete.
1565 (tui_reg_command): Rewrite to perform switching of register group.
1566 Add header comment.
1567 (tuireglist): Remove.
1568 (tui_reggroup_completer): New function.
1569 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
1570 creation of 'tui reg' command.
1571 * NEWS: Add comment about 'tui reg' changes.
1572
d309493c
SM
15732015-06-12 Simon Marchi <simon.marchi@ericsson.com>
1574
1575 * target.c (target_read): Consider addressable unit size when
1576 reading from a memory object.
1577 (read_memory_robust): Same.
1578 (read_whatever_is_readable): Same.
1579 (target_write_with_progress): Consider addressable unit size
1580 when writing to a memory object.
1581 * target.h (target_read): Update documentation.
1582 (target_write): Add documentation.
1583
3374165f
SM
15842015-06-12 Simon Marchi <simon.marchi@ericsson.com>
1585
1586 * arch-utils.h (default_addressable_memory_unit_size): New.
1587 * arch-utils.c (default_addressable_memory_unit_size): New.
1588 * gdbarch.sh (addressable_memory_unit_size): New.
1589 * gdbarch.h: Re-generate.
1590 * gdbarch.c: Re-generate.
1591
279a6fed
SM
15922015-06-12 Simon Marchi <simon.marchi@ericsson.com>
1593
1594 * target.c (target_read): Rename variables and use
1595 TARGET_XFER_E_IO.
1596 (target_read_with_progress): Same.
1597 (read_memory_robust): Constify parameters and rename
1598 variables.
1599 (read_whatever_is_readable): Constify parameters,
1600 rename variables, adjust formatting.
1601 * target.h (read_memory_robust): Constify parameters.
1602
1e5338b6 16032015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
1604
1605 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
1606 synthetic (non-AltiVec) vector types.
1607 (ppc64_sysv_abi_return_value): Likewise.
1608
98aa42ee
AT
16092015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
1610
1611 PR breakpoints/16465
1612 * breakpoint.c (create_breakpoint): Save extra_string for
1613 pending breakpoints.
1614
966f0aef
WT
16152015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
1616
1617 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
1618 and bt_mask to CORE_ADDR.
1619
6449ed0d
GB
16202015-06-11 Gary Benson <gbenson@redhat.com>
1621
1622 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
1623 (mnsh_recv_message): Likewise.
1624
34f8ac9f
WT
16252015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
1626
1627 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
1628 long long int and plongest instead of %ll.
1629
198c808c
GB
16302015-06-11 Gary Benson <gbenson@redhat.com>
1631
1632 * nat/linux-namespaces.c (gdb_wait.h): New include.
1633 (sys/wait.h): Do not include.
1634
e815d2d2
SM
16352015-06-10 Simon Marchi <simon.marchi@ericsson.com>
1636
1637 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
1638 end_sequence is true.
1639
8847cac2
JK
16402015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1641
1642 Code cleanup.
1643 * solib-target.c (library_list_start_list): Use explicit NULL
1644 comparison.
1645
24c05f46
JK
16462015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1647
1648 * solib-target.c (library_list_start_list): Do not dereference
1649 variable version in its initialization. Make the VERSION check handle
1650 NULL.
1651 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
1652
51aad7cc
GB
16532015-06-10 Gary Benson <gbenson@redhat.com>
1654
1655 * NEWS: Announce support for direct access of executable and
1656 shared library files when attaching to inferiors in containers
1657 on GNU/Linux systems.
1658
15a201c8
GB
16592015-06-10 Gary Benson <gbenson@redhat.com>
1660
1661 * remote.c (struct remote_state) <fs_pid>: New field.
1662 (new_remote_state): Initialize the above.
1663 (PACKET_vFile_setfs): New enum value.
1664 (remote_hostio_set_filesystem): New function.
1665 (remote_hostio_open): Call the above.
1666 (remote_hostio_unlink): Likewise.
1667 (remote_hostio_readlink): Likewise.
1668 (_initialize_remote): Register new "set/show remote
1669 hostio-setfs-packet" command.
1670 * NEWS: Announce new vFile:setfs packet.
1671
7a6a1731
GB
16722015-06-10 Gary Benson <gbenson@redhat.com>
1673
1674 * linux-nat.c (nat/linux-namespaces.h): New include.
1675 (fileio.h): Likewise.
1676 (linux_nat_filesystem_is_local): New function.
1677 (linux_nat_fileio_pid_of): Likewise.
1678 (linux_nat_fileio_open): Likewise.
1679 (linux_nat_fileio_readlink): Likewise.
1680 (linux_nat_fileio_unlink): Likewise.
1681 (linux_nat_add_target): Initialize to_filesystem_is_local,
1682 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
1683 (_initialize_linux_nat): New "set/show debug linux-namespaces"
1684 commands.
1685 * NEWS: Mention new "set/show debug linux-namespaces" commands.
1686
07c138c8
GB
16872015-06-10 Gary Benson <gbenson@redhat.com>
1688
1689 * target.h (struct inferior): New forward declaration.
1690 (struct target_ops) <to_filesystem_is_local>: Update comment.
1691 (struct target_ops) <to_fileio_open>: New argument inf.
1692 Update comment. All implementations updated.
1693 (struct target_ops) <to_fileio_unlink>: Likewise.
1694 (struct target_ops) <to_fileio_readlink>: Likewise.
1695 (target_filesystem_is_local): Update comment.
1696 (target_fileio_open): New argument inf. Update comment.
1697 (target_fileio_unlink): Likewise.
1698 (target_fileio_readlink): Likewise.
1699 (target_fileio_read_alloc): Likewise.
1700 (target_fileio_read_stralloc): Likewise.
1701 * target.c (target_fileio_open): New argument inf.
1702 Pass inf to implementation. Update debug printing.
1703 (target_fileio_unlink): Likewise.
1704 (target_fileio_readlink): Likewise.
1705 (target_fileio_read_alloc_1): New argument inf. Pass inf
1706 to target_fileio_open.
1707 (target_fileio_read_alloc): New argument inf. Pass inf to
1708 target_fileio_read_alloc_1.
1709 (target_fileio_read_stralloc): Likewise.
1710 * gdb_bfd.c (inferior.h): New include.
1711 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
1712 argument with new argument "inferior". Pass inferior to
1713 target_fileio_open.
1714 (gdb_bfd_open): Supply inferior argument to
1715 gdb_bfd_iovec_fileio_open.
1716 * linux-tdep.c (linux_info_proc): Supply inf argument to
1717 relevant target_fileio calls.
1718 (linux_find_memory_regions_full): Likewise.
1719 (linux_fill_prpsinfo): Likewise.
1720 * remote.c (remote_filesystem_is_local): Supply inf
1721 argument to remote_hostio_open.
1722 (remote_file_put): Likewise.
1723 (remote_file_get): Likewise.
1724 (remote_file_delete): Supply inf argument to
1725 remote_hostio_unlink.
1726
12e2a5fd
GB
17272015-06-10 Gary Benson <gbenson@redhat.com>
1728
1729 * inf-child.c (inf_child_fileio_open): Replace comment.
1730 (inf_child_fileio_pwrite): Likewise.
1731 (inf_child_fileio_pread): Likewise.
1732 (inf_child_fileio_fstat): Insert blank line before comment.
1733 (inf_child_fileio_close): Replace comment.
1734 (inf_child_fileio_unlink): Likewise.
1735 (inf_child_fileio_readlink): Likewise.
1736 * remote.c (remote_hostio_open): Likewise.
1737 (remote_hostio_pread): Likewise.
1738 (remote_hostio_pwrite): Likewise.
1739 (remote_hostio_close): Likewise.
1740 (remote_hostio_unlink): Likewise.
1741 (remote_hostio_readlink): Likewise.
1742 (remote_hostio_fstat): Likewise.
1743 (remote_filesystem_is_local): Likewise.
1744 * target.c (target_fileio_open): Likewise.
1745 (target_fileio_pwrite): Likewise.
1746 (target_fileio_pread): Likewise.
1747 (target_fileio_fstat): Insert blank line before comment.
1748 (target_fileio_close): Replace comment.
1749 (target_fileio_unlink): Likewise.
1750 (target_fileio_readlink): Likewise.
1751 (target_fileio_read_alloc): Likewise.
1752 (target_fileio_read_stralloc): Likewise.
1753
9bc3a976
GB
17542015-06-10 Gary Benson <gbenson@redhat.com>
1755
1756 * linux-thread-db.c (nat/linux-namespaces.h): New include.
1757 (check_pid_namespace_match): Use linux_ns_same rather than
1758 linux_proc_pid_get_ns to spot PID namespace mismatches.
1759 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
1760 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
1761
4b8b5e72
GB
17622015-06-10 Gary Benson <gbenson@redhat.com>
1763
1764 * configure.ac (AC_CHECK_FUNCS): Add setns.
1765 * config.in: Regenerate.
1766 * configure: Likewise.
1767 * nat/linux-namespaces.h: New file.
1768 * nat/linux-namespaces.c: Likewise.
1769 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
1770 (linux-namespaces.o): New rule.
1771 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
1772 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1773 * config/arm/linux.mh (NATDEPFILES): Likewise.
1774 * config/i386/linux.mh (NATDEPFILES): Likewise.
1775 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1776 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1777 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1778 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1779 * config/mips/linux.mh (NATDEPFILES): Likewise.
1780 * config/pa/linux.mh (NATDEPFILES): Likewise.
1781 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1782 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1783 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1784 * config/s390/linux.mh (NATDEPFILES): Likewise.
1785 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1786 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1787 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1788 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1789
ca095836
GB
17902015-06-10 Gary Benson <gbenson@redhat.com>
1791
1792 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
1793 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
1794 (make_cleanup_close): Likewise.
1795 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
1796 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
1797 (make_cleanup_close): Likewise.
1798
5d9c55d3
JT
17992015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
1800
1801 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
1802 from SuspendThread().
1803
040ea00b
JT
18042015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
1805
1806 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
1807 from OutputDebugString.
1808
7d73c23c
WT
18092015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
1810 Mircea Gherzan <mircea.gherzan@intel.com>
1811
1812 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
1813 MPX_BT_MASK_32): New macros.
1814 (i386_mpx_set_bounds): New function that implements
1815 the command "set-mpx-bound".
1816 (i386_mpx_enabled): Helper function to test MPX availability.
1817 (i386_mpx_bd_base): Helper function to calculate the base directory
1818 address.
1819 (i386_mpx_get_bt_entry): Helper function to access a bound
1820 table entry.
1821 (i386_mpx_print_bounds): Effectively display bound information.
1822 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
1823 "show mpx".
1824 (_initialize_i386_tdep):
1825 Add "bound" to the commands "show mpx" and "set mpx" commands.
1826 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
1827 and "show mpx" commands.
1828 * NEWS: List new commands for MPX support.
1829
3ac2e371
GB
18302015-06-09 Gary Benson <gbenson@redhat.com>
1831
1832 * common/fileio.h (fileio_to_host_mode): New declaration.
1833 * common/fileio.c (fileio_to_host_mode): New Function.
1834 * inf-child.c (inf_child_fileio_open): Process mode argument
1835 with fileio_to_host_mode.
1836
ecef18c5
GB
18372015-06-09 Gary Benson <gbenson@redhat.com>
1838
1839 * common/fileio.c (fileio_mode_pack): Fix preprocessor
1840 conditional.
1841
e3dd7556
GB
18422015-06-05 Gary Benson <gbenson@redhat.com>
1843
1844 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
1845 * remote.c (remote_filesystem_is_local): ...here.
1846
5b74bf7d
YQ
18472015-06-04 Yao Qi <yao.qi@linaro.org>
1848
1849 * gdbarch.c: Regenerate it.
1850
7f361056
JK
18512015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1852
1853 * arch-utils.c (default_infcall_munmap): New.
1854 * arch-utils.h (default_infcall_munmap): New declaration.
1855 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
1856 (munmap_list_free, munmap_listp_free_cleanup): New.
1857 (struct setup_sections_data): Add field munmap_list_headp.
1858 (setup_sections): Call munmap_list_add.
1859 (compile_object_load): New variable munmap_list_head, initialize
1860 setup_sections_data.munmap_list_headp, return munmap_list_head.
1861 * compile/compile-object-load.h (struct munmap_list): New declaration.
1862 (struct compile_module): Add field munmap_list_head.
1863 (munmap_list_free): New declaration.
1864 * compile/compile-object-run.c (struct do_module_cleanup): Add field
1865 munmap_list_head.
1866 (do_module_cleanup): Call munmap_list_free.
1867 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
1868 * gdbarch.c: Regenerate.
1869 * gdbarch.h: Regenerate.
1870 * gdbarch.sh (infcall_munmap): New.
1871 * linux-tdep.c (linux_infcall_munmap): New.
1872 (linux_init_abi): Install it.
1873
3b462ec2
SM
18742015-06-02 Simon Marchi <simon.marchi@ericsson.com>
1875
1876 PR gdb/15564
1877 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
1878
8d683210
YQ
18792015-06-02 Yao Qi <yao.qi@linaro.org>
1880
1881 * i386-linux-nat.c: Include linux-nat.h.
1882
e0619de6
JK
18832015-06-01 Andreas Schwab <schwab@linux-m68k.org>
1884 Jan Kratochvil <jan.kratochvil@redhat.com>
1885
1886 PR symtab/18392
1887 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
1888 assertion.
1889 * dwarf2loc.c (chain_candidate): Likewise.
1890
bd16da51
YQ
18912015-06-01 Yao Qi <yao.qi@linaro.org>
1892
1893 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
1894 (store_vfp_regs): Use PTRACE_SETREGSET.
1895
df9d7ec9
YQ
18962015-06-01 Yao Qi <yao.qi@linaro.org>
1897
1898 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
1899 (fetch_fpregs): Likewise.
1900 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
1901 (store_fpregs): Likewise.
1902
10766686
YQ
19032015-06-01 Yao Qi <yao.qi@linaro.org>
1904
1905 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
1906 (fetch_regs): Likewise.
1907 (store_regs): Use PTRACE_SETREGSET.
1908 (store_register): Likewise.
1909
7efe48d1
YQ
19102015-06-01 Yao Qi <yao.qi@linaro.org>
1911
1912 * arm-linux-nat.c (arm_linux_read_description): Check whether
1913 kernel supports PTRACE_GETREGSET.
1914
433bbbf8
YQ
19152015-06-01 Yao Qi <yao.qi@linaro.org>
1916
1917 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
1918 * linux-nat.c: ... here.
1919 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
1920 to ...
1921 * linux-nat.h: ... here.
1922
ca9b78ce
YQ
19232015-06-01 Yao Qi <yao.qi@linaro.org>
1924
1925 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
1926 * i386-linux-nat.c: Likewise.
1927 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
1928 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
1929 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
1930 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
1931 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
1932
99cee7b7
EZ
19332015-05-30 Eli Zaretskii <eliz@gnu.org>
1934
1935 * go32-nat.c (go32_xfer_memory): Fix the return value to be
1936 compatible to what read_child and write_child return. This
1937 unbreaks that DJGPP build of GDB which was broken since v7.7.
1938
2147f5bd
MG
19392015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
1940
1941 * MAINTAINERS (Write After Approval): Add Martin Galvan.
1942
c8f6c93c
RM
19432015-05-29 Roland McGrath <mcgrathr@google.com>
1944
1945 PR gdb/18464
1946 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
1947 rather than internal_error for an unrecognized value.
1948
8c6a948d
MF
19492015-05-29 Max Filippov <jcmvbkbc@gmail.com>
1950
1951 * xtensa-tdep.c (xtensa_pseudo_register_read)
1952 (xtensa_pseudo_register_write): Don't alias last pseudo register
1953 to a1.
1954
8dd06f7a
DB
19552015-05-28 Don Breazeal <donb@codesourcery.com>
1956
1957 * infrun.c (follow_fork_inferior): Ensure the use of
1958 process-style ptids (pid,0,0) in verbose/debug "Detaching"
1959 messages.
1960
a051152b
DE
19612015-05-28 Doug Evans <dje@google.com>
1962
1963 * dwarf2read.c (record_line_ftype): Remove, duplicate.
1964
a56cc1ce
YQ
19652015-05-28 Yao Qi <yao.qi@linaro.org>
1966
1967 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
1968 (arm_linux_fetch_inferior_registers): Use
1969 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
1970 (arm_linux_store_inferior_registers): Likewise.
1971 (arm_linux_read_description): Don't set
1972 arm_linux_has_wmmx_registers.
1973 * arm-tdep.c (arm_gdbarch_init): Set
1974 tdep->have_wmmx_registers according target descriptions.
1975 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
1976 field.
1977
330c6ca9
YQ
19782015-05-28 Yao Qi <yao.qi@linaro.org>
1979
1980 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
1981 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
1982 instead of arm_linux_vfp_register_count.
1983 (store_vfp_regs): Likewise.
1984 (arm_linux_fetch_inferior_registers): Likewise.
1985 (arm_linux_store_inferior_registers): Likewise.
1986 (arm_linux_read_description): Don't set
1987 arm_linux_vfp_register_count.
1988 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
1989 Adjust.
1990 * arm-tdep.c (arm_gdbarch_init): Add assert on
1991 vfp_register_count.
1992 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
1993 field to vfp_register_count. All users updated.
1994
d403db27
KH
19952015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
1996
1997 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
1998 ELFOSABI_GNU binaries.
1999
d9b3de22
DE
20002015-05-27 Doug Evans <dje@google.com>
2001
2002 * dwarf2read.c (lnp_state_machine): New typedef.
2003 (lnp_reader_state): New typedef.
2004 (dwarf_record_line_1): Renamed from dwarf_record_line.
2005 All callers updated.
2006 (dwarf_record_line): New function.
2007 (init_lnp_state_machine): New function.
2008 (check_line_address): Replace p_record_line parameter with state.
2009 All callers updated.
2010 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
2011 Update to record state in lnp_state_machine.
2012
924c2928
DE
20132015-05-27 Doug Evans <dje@google.com>
2014
2015 * dwarf2read.c (record_line_ftype): New typedef.
2016 (check_line_address): New function.
2017 (dwarf_decode_lines_1): Call it.
2018
27e0867f
DE
20192015-05-27 Doug Evans <dje@google.com>
2020
2021 * NEWS: Mention "set debug dwarf-line".
2022 * dwarf2read.c (dwarf_line_debug): New static global.
2023 (add_include_dir): Add debug dwarf-line support.
2024 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
2025 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
2026
4dcabcc2
DE
20272015-05-27 Doug Evans <dje@google.com>
2028
2029 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
2030 All callers updated.
2031 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
2032 * cp-support.h (cp_lookup_nested_symbol): Update.
2033
b2e2f908
DE
20342015-05-27 Doug Evans <dje@google.com>
2035
2036 PR symtab/18258
2037 * block.c (block_find_symbol): New function.
2038 (block_find_non_opaque_type): Ditto.
2039 (block_find_non_opaque_type_preferred): Ditto.
2040 * block.h (block_symbol_matcher_ftype): New typedef.
2041 (block_find_symbol): Declare.
2042 (block_find_non_opaque_type): Ditto.
2043 (block_find_non_opaque_type_preferred): Ditto.
2044 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
2045 * psymtab.c (psym_lookup_symbol): Ditto.
2046 * symtab.c (basic_lookup_transparent_type_1): New function.
2047 (basic_lookup_transparent_type): Call it.
2048
f62fce35
YQ
20492015-05-27 Yao Qi <yao.qi@linaro.org>
2050
2051 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
2052 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
2053
5d98d3cd
YQ
20542015-05-27 Yao Qi <yao.qi@linaro.org>
2055
2056 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
2057 before operator &&.
2058 (aarch64_record_load_store): Likewise.
2059
82c7be31
DE
20602015-05-26 Doug Evans <dje@google.com>
2061
2062 PR c++/18141, c++/18417.
2063 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
2064 a typedef.
2065
b4f54984
DE
20662015-05-26 Doug Evans <dje@google.com>
2067
2068 * NEWS: Add entries for command renamings.
2069 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
2070 All uses updated.
2071 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
2072 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
2073 All uses updated.
2074 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
2075 All callers updated. Fix spelling of DWARF in help text.
2076 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
2077 All uses updated.
2078 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
2079 All uses updated.
2080 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
2081 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
2082 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
2083 All uses updated.
2084 (show_dwarf_always_disassemble): Renamed from
2085 show_dwarf2_always_disassemble. All callers updated.
2086 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
2087 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
2088 "set/show dwarf max-cache-age". Rename
2089 "set/show dwarf2 always-disassemble" to
2090 "set/show dwarf always-disassemble". Rename
2091 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
2092 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
2093
4ea6efe9
DE
20942015-05-26 Doug Evans <dje@google.com>
2095
2096 PR python/18438
2097 * python/py-lazy-string.c (stpy_convert_to_value): Use
2098 gdbpy_gdb_memory_error not PyExc_MemoryError.
2099 (gdbpy_create_lazy_string_object): Ditto.
2100
b93fd21d
AB
21012015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
2104
55b40027
AB
21052015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
2106
2107 * tui/tui-regs.c (tui_reg_prev_command): New function.
2108 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
2109 * reggroups.c (reggroup_prev): New function.
2110 * reggroups.h (reggroup_prev): Add declaration. Update comment.
2111
99afc88b
OJ
21122015-05-26 Omair Javaid <omair.javaid@linaro.org>
2113 Yao Qi <yao.qi@linaro.org>
2114
2115 * aarch64-linux-tdep.c: Include linux-record.h and
2116 record-full.h.
2117 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
2118 (aarch64_syscall): New enum.
2119 (aarch64_canonicalize_syscall): New function.
2120 (aarch64_all_but_pc_registers_record): New function.
2121 (aarch64_linux_syscall_record): New function.
2122 (aarch64_linux_init_abi): Install AArch64 process record
2123 handler. Update to handle syscall recording.
2124 * aarch64-tdep.c: Include record.h and record-full.h.
2125 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
2126 (struct aarch64_mem_r): Define.
2127 (aarch64_record_result): New enum.
2128 (struct insn_decode_record): Define.
2129 (insn_decode_record): New typedef.
2130 (aarch64_record_data_proc_reg): New function.
2131 (aarch64_record_data_proc_imm): New function.
2132 (aarch64_record_branch_except_sys): New function.
2133 (aarch64_record_load_store): New function.
2134 (aarch64_record_data_proc_simd_fp): New function.
2135 (aarch64_record_asimd_load_store): New function.
2136 (aarch64_record_decode_insn_handler): New function.
2137 (deallocate_reg_mem): New function.
2138 (aarch64_process_record): New function.
2139 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
2140 New field.
2141 (aarch64_process_record): New extern declaration.
2142 * configure.tgt: Add linux-record.o to gdb_target_obs.
2143 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
2144
c16a3f52
OJ
21452015-05-26 Omair Javaid <omair.javaid@linaro.org>
2146
2147 * NEWS: Add a note on process record-replay support on aarch64*-linux*
2148 targets.
2149
c9cf6e20
MG
21502015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
2151
2152 * amd64-tdep.c: Replace in_function_epilogue_p with
2153 stack_frame_destroyed_p throughout.
2154 * arch-utils.c: Ditto.
2155 * arch-utils.h: Ditto.
2156 * arm-tdep.c: Ditto.
2157 * breakpoint.c: Ditto.
2158 * gdbarch.sh: Ditto.
2159 * hppa-tdep.c: Ditto.
2160 * i386-tdep.c: Ditto.
2161 * mips-tdep.c: Ditto.
2162 * nios2-tdep.c: Ditto.
2163 * rs6000-tdep.c: Ditto.
2164 * s390-linux-tdep.c: Ditto.
2165 * score-tdep.c: Ditto.
2166 * sh-tdep.c: Ditto.
2167 * sparc-tdep.c: Ditto.
2168 * sparc-tdep.h: Ditto.
2169 * sparc64-tdep.c: Ditto.
2170 * spu-tdep.c: Ditto.
2171 * tic6x-tdep.c: Ditto.
2172 * tilegx-tdep.c: Ditto.
2173 * xstormy16-tdep.c: Ditto.
2174 * gdbarch.c, gdbarch.h: Re-generated.
2175
a4ea0946
AB
21762015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
2177
2178 * NEWS: Mention 'tui enable' and 'tui disable'.
2179 * tui/tui.c (tui_enable_command): New function.
2180 (tui_disable_command): New function.
2181 (_initialize_tui): New function.
2182
b75c69bb
AB
21832015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2184
2185 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
2186
c1b009ee
AB
21872015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2188
2189 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
2190 buf_ptr is freed.
2191
880d1e40
AB
21922015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2193
2194 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
2195 into ...
2196 (tui_set_layout_for_display_command): ...here, before calling
2197 tui_set_layout. Only set the layout if gdb has not already
2198 entered the TUI_FAILURE state.
2199
a0145030
AB
22002015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2201
2202 * tui/tui-layout.c (layout_completer): New function.
2203 (_initialize_tui_layout): Set completer on layout command.
2204
7bd0be3a
AB
22052015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
2206
2207 * tui/tui-layout.c (tui_set_layout): Remove
2208 tui_register_display_type parameter. Remove all checking of this
2209 parameter, and reindent function. Update header comment.
2210 (tui_set_layout_for_display_command): Rename to...
2211 (tui_set_layout_by_name): ...this, and don't check for different
2212 register class types, don't pass a tui_register_display_type to
2213 tui_set_layout. Update header comment.
2214 (layout_names): Remove register set specific names.
2215 * tui/tui-layout.h (tui_set_layout): Remove
2216 tui_register_display_type parameter.
2217 * tui/tui.c (tui_rl_change_windows): Don't pass a
2218 tui_register_display_type to tui_set_layout.
2219 (tui_rl_delete_other_windows): Likewise.
2220 (tui_enable): Likewise.
2221 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
2222 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
2223 (TUI_GENERAL_REGS_NAME): Remove.
2224 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
2225 (TUI_SPECIAL_REGS_NAME): Remove.
2226 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
2227 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
2228 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
2229 (enum tui_register_display_type): Remove.
2230 (struct tui_layout_def): Remove regs_display_type and
2231 float_regs_display_type fields.
2232 (struct tui_data_info): Remove regs_display_type field.
2233 (tui_layout_command): Use new name for
2234 tui_set_layout_for_display_command.
2235 * tui/tui-data.c (layout_def): Don't initialise removed fields.
2236 (tui_clear_win_detail): Don't initialise removed fields of
2237 win_info.
2238 * tui/tui-regs.c (tui_show_registers): Use new name for
2239 tui_set_layout_for_display_command.
2240 * tui/tui.h (tui_set_layout_for_display_command): Rename
2241 declaration to...
2242 (tui_set_layout_by_name): ...this.
2243 * printcmd.c (display_command): Remove tui related layout call,
2244 and reindent.
2245
0b6e5e10
JB
22462015-05-20 Joel Brobecker <brobecker@adacore.com>
2247
2248 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
2249 (handle_inferior_event): New function.
2250
1da0522e
JB
22512015-05-20 Joel Brobecker <brobecker@adacore.com>
2252
2253 * ada-lang.c (to_fixed_array_type): Rename local variable
2254 typename into type_name.
2255
5fe75eec
JK
22562015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2257
2258 Fix ASAN crash for gdb.compile/compile.exp.
2259 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
2260
a4063588
JK
22612015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2262
2263 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
2264 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
2265 * compile/compile-object-load.c (setup_sections, compile_object_load):
2266 Likewise.
2267 * compile/compile.c (compile_to_object): Likewise.
2268
37442ce1
DE
22692015-05-16 Doug Evans <xdje42@gmail.com>
2270
2271 * NEWS: Mention support for unbuffered Guile memory ports.
2272 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
2273 (ioscm_lseek_address): Improve overflow calculation.
2274 (gdbscm_memory_port_fill_input): Add assert.
2275 (gdbscm_memory_port_write): Handle unbuffered ports.
2276 Handle large writes identical to Guile's fport_write.
2277 (gdbscm_memory_port_seek): Fix seeking past end check.
2278 (gdbscm_memory_port_close): Handle closing unbuffered port.
2279 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
2280 (ioscm_init_memory_port): Handle unbuffered ports.
2281 (ioscm_reinit_memory_port): Ditto.
2282 (ioscm_init_memory_port): Update size calculation.
2283 (gdbscm_open_memory): Support zero sized ports.
2284
d976bace
JK
22852015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2286
2287 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
2288 variable compiler warnings.
2289
4d18dfad
JK
22902015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2291
2292 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
2293
36de76f9
JK
22942015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2295 Phil Muldoon <pmuldoon@redhat.com>
2296
2297 * NEWS (Changes since GDB 7.9): Add compile print.
2298 * compile/compile-c-support.c (add_code_header, add_code_footer)
2299 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
2300 COMPILE_I_PRINT_VALUE_SCOPE.
2301 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
2302 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
2303 New.
2304 * compile/compile-object-load.c: Include block.h.
2305 (get_out_value_type): New function.
2306 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
2307 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
2308 OUT_VALUE_TYPE.
2309 * compile/compile-object-load.h (struct compile_module): Add fields
2310 out_value_addr and out_value_type.
2311 * compile/compile-object-run.c: Include valprint.h and compile.h.
2312 (struct do_module_cleanup): Add fields out_value_addr and
2313 out_value_type.
2314 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
2315 COMPILE_I_PRINT_VALUE_SCOPE.
2316 (compile_object_run): Propagate out_value_addr and out_value_type.
2317 Pass OUT_VALUE_ADDR.
2318 * compile/compile.c: Include valprint.h.
2319 (compile_print_value, compile_print_command): New functions.
2320 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
2321 (_initialize_compile): Update compile code help text. Install
2322 compile_print_command.
2323 * compile/compile.h (compile_print_value): New prototype.
2324 * defs.h (enum compile_i_scope_types): Add
2325 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
2326
83d3415e
JK
23272015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2328
2329 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
2330 Rely on its parameter count.
2331 (compile_object_load): Replace lookup_minimal_symbol_text by
2332 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
2333 return value.
2334 * compile/compile-object-load.h (struct compile_module): Replace
2335 func_addr by func_sym.
2336 * compile/compile-object-run.c: Include block.h.
2337 (compile_object_run): Reset module variable after it is freed. Use
2338 FUNC_SYM instead of FUNC_ADDR. Rely on it.
2339
3a9558c4
JK
23402015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2341
2342 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
2343 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
2344 (c_compute_program): Call generate_register_struct after typedefs.
2345 * compile/compile-loc2c.c (push, pushf_register_address)
2346 (pushf_register): Cast to GCC_UINTPTR.
2347 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
2348 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
2349 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
2350 * compile/compile.c (_initialize_compile): Enable warnings for
2351 COMPILE_ARGS.
2352
5c65b58a
JK
23532015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2354
2355 * cli/cli-script.c (execute_control_command): Update
2356 eval_compile_command caller.
2357 * compile/compile-object-load.c (compile_object_load): Add parameters
2358 scope and scope_data. Set them.
2359 * compile/compile-object-load.h (struct compile_module): Add fields
2360 scope and scope_data.
2361 (compile_object_load): Add parameters scope and scope_data.
2362 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
2363 scope and scope_data.
2364 (compile_object_run): Propagate the fields scope and scope_data.
2365 * compile/compile.c (compile_file_command, compile_code_command):
2366 Update eval_compile_command callers.
2367 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
2368 * compile/compile.h (eval_compile_command): Add parameter scope_data.
2369 * defs.h (struct command_line): Add field scope_data.
2370
1c88ceb1
JK
23712015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2372
2373 * printcmd.c (struct format_data): Move it to valprint.h.
2374 (print_command_parse_format, print_value): New functions from ...
2375 (print_command_1): ... here. Call them.
2376 * valprint.h (struct format_data): Move it here from printcmd.c.
2377 (print_command_parse_format, print_value): New declarations.
2378
0b738f27
JK
23792015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2380
2381 * compile/compile-object-load.c (compile_object_load): Add
2382 COMPILE_DEBUG message.
2383
aa715135
JG
23842015-05-15 Jerome Guitton <guitton@adacore.com>
2385
2386 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
2387 index to get element instead of enum value.
2388 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
2389 of index to compute length, but enum values to compute bounds.
2390 (ada_array_length): Use enum position of index instead of enum value.
2391 (pos_atr): Move position computation to...
2392 (ada_evaluate_subexp): Use enum values to compute bounds.
2393 * gdbtypes.c (discrete_position): ...this new function.
2394 * gdbtypes.h (discrete_position): New function declaration.
2395 * valprint.c (val_print_array_elements): Call discrete_position
2396 to handle array indexed by non-contiguous enumeration types.
2397
931e5bc3
JG
23982015-05-15 Jerome Guitton <guitton@adacore.com>
2399
2400 * ada-lang.c (find_parallel_type_by_descriptive_type):
2401 Go through typedefs during lookup.
2402 (to_fixed_array_type): Add support for non-bit packed arrays
2403 as variable-length fields.
2404
4e63d0ac
PA
24052015-05-15 Pedro Alves <palves@redhat.com>
2406 Simon Marchi <simon.marchi@ericsson.com>
2407
2408 * event-loop.c (gdb_notifier) <next_file_handler,
2409 next_poll_fds_index>: New fields.
2410 (get_next_file_handler_to_handle_and_advance): New function.
2411 (delete_file_handler): If deleting the next file handler to
2412 handle, advance to the next file handler.
2413 (gdb_wait_for_event): Bail early if no event fired. Poll file
2414 handlers in round-robin fashion.
2415
52e48b36
PA
24162015-05-15 Pedro Alves <palves@redhat.com>
2417
2418 * linux-tdep.c (linux_find_memory_regions_full): Rename local
2419 'private' to 'priv'.
2420
2465e12e
PA
24212015-05-15 Pedro Alves <palves@redhat.com>
2422
2423 * nat/linux-nat.h: Include "target/waitstatus.h".
2424
13fa0398
YZ
24252015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
2426
2427 * python/py-unwind.c (struct reg_info): Move out of ...
2428 (struct cached_frame_info): ... this scope.
2429 (pending_frame_object_type, unwind_info_object_type): Make extern.
2430
9cd4d857
JB
24312015-05-15 Joel Brobecker <brobecker@adacore.com>
2432
2433 * ada-lang.c (ada_value_primitive_packed_val): Make sure
2434 accumSize is never negative.
2435
e3555239
PP
24362015-05-14 Patrick Palka <patrick@parcs.ath.cx>
2437
2438 * tui/tui-command.c: Remove include of <ctype.h>.
2439 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
2440
08a76f8a
MG
24412015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
2442
2443 * dwarf2read.c (die_needs_namespace): Return 1 for
2444 DW_TAG_inlined_subroutine.
2445
bd49952b
JK
24462015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2447
2448 * regcache.c (regcache_cpy_no_passthrough): New declaration.
2449 (regcache_cpy_no_passthrough): Make it static, add function comment.
2450 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
2451 (regcache_cpy_no_passthrough): Remove declaration.
2452
46c03469
JK
24532015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2454
2455 * gdbthread.h (struct thread_control_state): Update comment for
2456 proceed_to_finish.
2457 * infcall.c (run_inferior_call): Update comment about
2458 proceed_to_finish.
2459 * infcmd.c (get_return_value): Update comment about stop_registers.
2460 (finish_forward): Update comment about proceed_to_finish.
2461 * infrun.c (stop_registers): Remove.
2462 (clear_proceed_status, normal_stop): Remove stop_registers handling.
2463 * infrun.h (stop_registers): Remove.
2464
8a6c4031
JK
24652015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2466
2467 * infcall.c (struct dummy_frame_context_saver)
2468 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
2469 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
2470 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
2471 New.
2472 (call_function_by_hand_dummy): Move discard_cleanups of
2473 inf_status_cleanup before dummy_frame_push. Call
2474 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
2475 Use dummy_frame_context_saver_get_regs instead of stop_registers.
2476 * infcall.h (struct dummy_frame_context_saver)
2477 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
2478 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
2479 New declarations.
2480 * infcmd.c: Include infcall.h.
2481 (get_return_value): Add parameter ctx_saver, use it instead of
2482 stop_registers.
2483 (print_return_value): Add parameter ctx_saver, pass it.
2484 (struct finish_command_continuation_args): Add field ctx_saver.
2485 (finish_command_continuation): Update print_return_value caller.
2486 (finish_command_continuation_free_arg): Free also ctx_saver.
2487 (finish_forward): Call dummy_frame_context_saver_setup.
2488 * inferior.h (struct dummy_frame_context_saver): New declaration.
2489 (get_return_value): Add parameter ctx_saver.
2490 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
2491 get_return_value caller.
2492
10989690
JK
24932015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2494
2495 * dummy-frame.c (struct dummy_frame_dtor_list): New.
2496 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
2497 (remove_dummy_frame): Process dtor_list.
2498 (pop_dummy_frame): Process dtor_list.
2499 (register_dummy_frame_dtor): Maintain dtor_list.
2500 (find_dummy_frame_dtor): Handle dtor_list.
2501 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
2502 Update comments.
2503
5e970501
JK
25042015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2505
2506 * compile/compile-object-run.c (do_module_cleanup): Add parameter
2507 registers_valid.
2508 (compile_object_run): Update do_module_cleanup caller.
2509 * dummy-frame.c: Include infcall.h.
2510 (struct dummy_frame): Update dtor comment.
2511 (remove_dummy_frame): Call dtor.
2512 (pop_dummy_frame): Update dtor caller.
2513 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
2514 registers_valid.
2515
1c4eb778
JB
25162015-05-13 Joel Brobecker <brobecker@adacore.com>
2517
2518 GDB 7.9.1 released.
2519
f5f85ab9
JB
25202015-05-13 Joel Brobecker <brobecker@adacore.com>
2521
2522 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
2523 Xmethods now being able to specify a result type to that new
2524 sectioin.
2525
242cd84c
PP
25262015-05-13 Patrick Palka <patrick@parcs.ath.cx>
2527
2528 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
2529 first before resizing the window.
e3555239 2530 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
2531
25322015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
2533
2534 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
2535 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
2536 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
2537 dummy_dtor parameter.
2538 * infcall.h: Include dummy-frame.h.
2539 (call_function_by_hand_dummy_dtor_ftype): Remove.
2540 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
2541 parameter.
2542
ebfd00d2
PP
25432015-05-13 Patrick Palka <patrick@parcs.ath.cx>
2544
2545 PR gdb/17820
2546 * top.c (history_size_setshow_var): Change type to signed.
2547 Initialize to -2. Update documentation.
2548 (set_readline_history_size): Define.
2549 (set_history_size_command): Use it. Remove logic for handling
2550 out-of-range sizes.
2551 (init_history): Use set_readline_history_size(). Test for a
2552 value of -2 instead of 0 when determining whether to set a
2553 default history size.
2554 (init_main): Decode the argument of the "size" command as a
2555 zuinteger_unlimited.
2556
83769d0b
DE
25572015-05-12 Doug Evans <dje@google.com>
2558
2559 * dwarf2read.c (struct file_entry): Tweak comments.
2560 (get_debug_line_section): Tweak comments.
2561
0d71eef5
DB
25622015-05-12 Don Breazeal <donb@codesourcery.com>
2563
2564 * NEWS: Announce fork support in the RSP and support
2565 for fork debugging in extended mode.
2566
cbb8991c
DB
25672015-05-12 Don Breazeal <donb@codesourcery.com>
2568
2569 * remote.c (remote_insert_fork_catchpoint): New function.
2570 (remote_remove_fork_catchpoint): New function.
2571 (remote_insert_vfork_catchpoint): New function.
2572 (remote_remove_vfork_catchpoint): New function.
2573 (pending_fork_parent_callback): New function.
2574 (remove_new_fork_child): New function.
2575 (remote_update_thread_list): Call remote_notif_get_pending_events
2576 and remove_new_fork_child.
2577 (extended_remote_kill): Kill fork child when killing the
2578 parent before follow_fork completes.
2579 (init_extended_remote_ops): Initialize target vector with
2580 new fork catchpoint functions.
2581
c269dbdb
DB
25822015-05-12 Don Breazeal <donb@codesourcery.com>
2583
2584 * remote.c (remove_vfork_event_p): New function.
2585 (remote_follow_fork): Add vfork event type to event checking.
2586 (remote_parse_stop_reply): New stop reasons "vfork" and
2587 "vforkdone" for RSP 'T' Stop Reply Packet.
2588
de0d863e
DB
25892015-05-12 Don Breazeal <donb@codesourcery.com>
2590
2591 * linux-nat.c (linux_nat_ptrace_options): New function.
2592 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
2593 Call linux_nat_ptrace_options and use different argument to
2594 linux_enable_event_reporting.
2595 (_initialize_linux_nat): Delete call to
2596 linux_ptrace_set_additional_flags.
c8f6c93c 2597 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
2598 supported_ptrace_options.
2599 (additional_flags): Delete variable.
2600 (linux_check_ptrace_features): Use supported_ptrace_options.
2601 (linux_test_for_tracesysgood, linux_test_for_tracefork):
2602 Likewise, and remove additional_flags check.
2603 (linux_enable_event_reporting): Change 'attached' argument to
2604 'options'. Use supported_ptrace_options.
c8f6c93c 2605 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
2606 supported_ptrace_options.
2607 (linux_ptrace_set_additional_flags): Delete function.
2608 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2609 Delete function prototype.
2610 * remote.c (remote_fork_event_p): New function.
2611 (remote_detach_pid): New function.
2612 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
2613 if doing detach-on-fork.
2614 (remote_follow_fork): New function.
2615 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
2616 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
2617 (init_extended_remote_ops): Initialize to_follow_fork.
2618
89245bc0
DB
26192015-05-12 Don Breazeal <donb@codesourcery.com>
2620
2621 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
2622 from static to extern.
2623 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
2624 * remote.c (anonymous enum): <PACKET_fork_event_feature,
2625 * PACKET_vfork_event_feature>: New enumeration constants.
2626 (remote_protocol_features): Add table entries for new packets.
2627 (remote_query_supported): Add new feature queries to qSupported
2628 packet.
2629
835205d0
GB
26302015-05-12 Gary Benson <gbenson@redhat.com>
2631
2632 * remote.c (remote_add_inferior): Call exec_file_locate_attach
2633 for fake PIDs as well as real ones.
2634 (remote_pid_to_exec_file): Send empty annex if PID is fake.
2635
4c082a81
SC
26362015-05-09 Siva Chandra Reddy <sivachandra@google.com>
2637
2638 * NEWS (Python Scripting): Mention the new gdb.Value methods.
2639 * python/py-value.c (valpy_reference_value): New function.
2640 (valpy_const_value): Likewise.
2641 (value_object_methods): Add new methods.
2642 * value.c (make_cv_value): New function.
2643 * value.h (make_cv_value): Declare.
2644
afa6c9ab
SL
26452015-05-08 Yao Qi <yao@codesourcery.com>
2646 Sandra Loosemore <sandra@codesourcery.com>
2647
2648 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
2649 to 'lh->include_dirs' before accessing to it.
2650 (psymtab_include_file_name): Likewise.
2651 (dwarf_decode_lines_1): Likewise.
2652 (dwarf_decode_lines): Likewise.
2653 (file_file_name): Likewise.
2654
35d54293
SL
26552015-05-08 Sandra Loosemore <sandra@codesourcery.com>
2656
2657 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
2658 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
2659 (nios2_linux_rt_sigreturn_init): Adjust base address of
2660 register save area.
2661
b73c49b7
SL
26622015-05-08 Sandra Loosemore <sandra@codesourcery.com>
2663
2664 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
2665 "trap 31" as the breakpoint instruction on all targets.
2666
dd9f02a0
JK
26672015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2668
2669 * infcmd.c (print_return_value): Remove unused declaration.
2670
6ad395a7
JB
26712015-05-08 Joel Brobecker <brobecker@adacore.com>
2672
2673 * dwarf2read.c (attr_to_dynamic_prop)
2674 <DW_AT_data_member_location>: Use read_type_die isntead of
2675 get_die_type.
2676
8344af1e
JB
26772015-05-08 Joel Brobecker <brobecker@adacore.com>
2678
2679 * ada-lang.c (ada_convert_actual): Add handling of formals
2680 passed inside an aligner type.
2681
80b0912b
JB
26822015-05-08 Joel Brobecker <brobecker@adacore.com>
2683
2684 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
2685
df2eb078
SC
26862015-05-08 Siva Chandra Reddy <sivachandra@google.com>
2687
2688 PR python/18291
2689 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
2690 Print xmethod matcher status.
2691
2492f0d0
AA
26922015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
2693
2694 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
2695 register in the regcache when treating the PSWM register, and vice
2696 versa.
2697
1c56a84d
GB
26982015-05-07 Gary Benson <gbenson@redhat.com>
2699
2700 * linux-thread-db.c (struct thread_db_info)
2701 <td_ta_map_id2thr_p>: Remove field.
2702 (try_thread_db_load_1): Remove initialization for the above.
2703
74850322
GB
27042015-05-07 Gary Benson <gbenson@redhat.com>
2705
2706 * linux-thread-db.c (struct thread_db_info)
2707 <td_thr_validate_p>: Remove field.
2708 (try_thread_db_load_1): Remove initialization for the above.
2709
e26efa40
JK
27102015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2711
2712 * compile/compile-object-load.c (compile_object_load): Support
2713 mst_text_gnu_ifunc.
2714
851c9091
JK
27152015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2716
2717 * compile/compile.c (compile_to_object): Make the cmd_string parameter
2718 const. Use new variables for the const compatibility.
2719 (eval_compile_command): Make the cmd_string parameter const.
2720 * compile/compile.h (eval_compile_command): Make the cmd_string
2721 parameter const.
2722
f218b647
JB
27232015-05-06 Joel Brobecker <brobecker@adacore.com>
2724
2725 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
2726 comment.
2727 * top.c (deprecated_init_ui_hook): Delete.
2728 (gdb_init): Remove handling of deprecated_init_ui_hook.
2729 * interps.c (clear_interpreter_hooks): Remove handling of
2730 deprecated_init_ui_hook.
2731 * main.c (captured_main): Update comment.
2732
b30a0bc3
JB
27332015-05-06 Joel Brobecker <brobecker@adacore.com>
2734
2735 * solib.c (_initialize_solib): Add "info dll" alias creation.
2736 * windows-nat.c (set_windows_aliases): Delete.
2737 (_initialize_windows_nat): Remove deprecated_init_ui_hook
2738 assignment.
2739 * NEWS: Add news entry about "info dll" now being available
2740 on all platforms.
2741
7c512744
JB
27422015-05-05 Joel Brobecker <brobecker@adacore.com>
2743
2744 * ada-lang.c (value_assign_to_component): Reformat and improve
2745 documentation. Remove all trailing spaces.
2746
0fa7fe50
JB
27472015-05-05 Joel Brobecker <brobecker@adacore.com>
2748
2749 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2750 Stop counting inlined frames as soon as an out-of-line function
2751 is found.
2752
3ea89b92
PMR
27532014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
2754
2755 * dwarf2read.c (inherit_abstract_dies): Skip
2756 DW_TAG_GNU_call_site dies while inheriting children of an
2757 abstract DIE into a scope.
2758 (read_lexical_block_scope): Inherit abstract DIE's for
2759 lexical scopes.
2760
2478d075
JB
27612015-05-05 Joel Brobecker <brobecker@adacore.com>
2762
2763 * ada-valprint.c (val_print_packed_array_elements): Delete
2764 variable "len". Add a type-length check when comparing two
2765 consecutive elements of the array. Use the element's actual
2766 length in call to value_contents_eq.
2767 * ada-lang.c (ada_value_primitive_packed_val): Always return
2768 a value whose type has been resolved.
2769
fc958966
JB
27702015-05-05 Joel Brobecker <brobecker@adacore.com>
2771
2772 * ada-lang.c (ada_value_primitive_packed_val): Recompute
2773 BIT_SIZE and LEN if the size of the resolved type is smaller
2774 than BIT_SIZE * HOST_CHAR_BIT.
2775
ca34b84f
JB
27762015-05-05 Joel Brobecker <brobecker@adacore.com>
2777
2778 * ada-lang.c (ada_value_primitive_packed_val): Use a more
2779 correct address in call to value_at. Adjust call to
2780 value_address accordingly.
2781
62c67f3c
JB
27822015-05-05 Joel Brobecker <brobecker@adacore.com>
2783
2784 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
2785 to print it.
2786
c3345124
JB
27872015-05-05 Joel Brobecker <brobecker@adacore.com>
2788
2789 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
2790 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
2791 pinfo->valaddr.
2792 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
2793 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
2794 (resolve_dynamic_type_internal): Set pinfo.valaddr.
2795 Add handling of addr_stack->valaddr.
2796 (resolve_dynamic_type): Add "valaddr" parameter.
2797 Set pinfo.valaddr field.
2798 * ada-lang.c (ada_discrete_type_high_bound): Update call to
2799 resolve_dynamic_type.
2800 (ada_discrete_type_low_bound): Likewise.
2801 * findvar.c (default_read_var_value): Likewise.
2802 * value.c (value_from_contents_and_address): Likewise.
2803
75ea5859
JB
28042015-05-05 Joel Brobecker <brobecker@adacore.com>
2805
2806 * gdbtypes.c (resolve_dynamic_array): Use
2807 create_array_type_with_stride instead of create_array_type.
2808
0952813b
DD
28092015-04-30 DJ Delorie <dj@redhat.com>
2810
2811 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
2812 rl78_decode_opcode
2813
2ce1cdbf
DE
28142015-04-29 Doug Evans <dje@google.com>
2815
2816 PR python/18285
2817 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
2818 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
2819 EVAL_AVOID_SIDE_EFFECTS for xmethods.
2820 * extension-priv.h (struct extension_language_ops)
2821 <get_xmethod_result_type>: New member.
2822 * extension.c (get_xmethod_result_type): New function.
2823 * extension.h (get_xmethod_result_type): Declare.
2824 * python/py-xmethods.c (get_result_type_method_name): New static
2825 global.
2826 (py_get_result_type_method_name): Ditto.
2827 (gdbpy_get_xmethod_result_type): New function.
2828 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
2829 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
2830 * python/python.c (python_extension_ops): Add
2831 gdbpy_get_xmethod_result_type.
2832 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
2833 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
2834 xmethods.
2835 (value_x_unop): Ditto.
2836 * value.c (result_type_of_xmethod): New function.
2837 * value.h (result_type_of_xmethod): Declare.
2838
998d2a3e
GB
28392015-04-29 Gary Benson <gbenson@redhat.com>
2840
2841 * solib.c (solib_find_1): Allow fd argument to be NULL.
2842 (exec_file_find): Update comment.
2843 (solib_find): Likewise.
2844 * exec.c (exec_file_locate_attach): Use NULL as fd
2845 argument to exec_file_find to avoid having to close
2846 the opened file.
2847 * infrun.c (follow_exec): Likewise.
2848
34f5f757
DE
28492015-04-28 Doug Evans <dje@google.com>
2850
2851 PR python/18299
2852 * python/lib/gdb/printing.py (register_pretty_printer): Handle
2853 name or __name__ attributes. Handle gdb module as first argument.
2854
69b4374a
DE
28552015-04-28 Doug Evans <dje@google.com>
2856
2857 PR python/18089
2858 * python/py-prettyprint.c (print_children): Verify result of children
2859 iterator. Provide better error message.
2860 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
2861 * python/python.c (gdbpy_print_python_errors_p): New function.
2862
5e7cf078
DE
28632015-04-28 Doug Evans <dje@google.com>
2864
2865 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
2866
59fb7612
SS
28672015-04-28 Sasha Smundak <asmundak@google.com>
2868
2869 * NEWS: Mention gdb.Type.optimized_out method.
2870 * python/py-type.c (typy_optimized_out): New function.
2871
cea6e4f1
JB
28722015-04-28 John Baldwin <jhb@FreeBSD.org>
2873
2874 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2875
24b73f8e
PP
28762015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2877
2878 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
2879 (initialize_utils): Move call of init_page_info() to ...
2880 * top.c (gdb_init): ... here.
2881
a88d0bb3
PP
28822015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2883
2884 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
2885 (tui_sigwinch_handler): Still update our idea of
2886 the terminal's width and height even when TUI is not active.
2887
d6e5e7f7
PP
28882015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2889
2890 * utils.h (set_screen_width_and_height): Declare.
2891 * utils.c (set_screen_width_and_height): Define.
2892 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
2893
ff862be4
GB
28942015-04-28 Gary Benson <gbenson@redhat.com>
2895
2896 * infrun.c (solist.h): New include.
2897 (follow_exec): Use exec_file_find to prefix execd_pathname
2898 with gdb_sysroot.
2899
2eb639cb
PP
29002015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2901
2902 * tui/tui-source.c (tui_set_source_content): Avoid calling
2903 strcpy() when offset is 0.
2904
97206799
PP
29052015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2906
2907 PR gdb/18155
2908 * tui/tui-data.c (tui_free_window): Don't free the locator
2909 window when passed an SRC_WIN or a DISASSEM_WIN.
2910
63ed8182
PP
29112015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2912
2913 * tui/tui-data.h (struct tui_win_element): Forward-declare.
2914 (tui_win_content): Move declaration.
2915 (struct tui_gen_win_info): Give 'content' field the
2916 type tui_win_content.
2917 * tui/tui-data.c (init_content_element): Remove redundant and
2918 erroneous casts.
2919 (tui_add_content_elements): Remove erroneous cast.
2920 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
2921 casts.
2922 (tui_get_begin_asm_address): Likewise.
2923 * tui/tui-regs.c (tui_show_registers): Likewise.
2924 (tui_show_register_group): Likewise.
2925 (tui_display_registers_from): Likewise.
2926 (tui_check_register_values): Likewise.
2927 * tui/tui-source.c (tui_set_source_content): Likewise.
2928 (tui_set_source_content_nil): Likewise.
2929 (tui_source_is_displayed): Likewise.
2930 * tui/tui-stack.c (tui_show_locator_content): Likewise.
2931 (tui_set_locator_fullname): Likewise.
2932 (tui_set_locator_info): Likewise.
2933 (tui_show_frame_info): Likewise.
2934 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
2935 (tui_show_source_line): Likewise.
2936 (tui_horizontal_source_scroll): Likewise.
2937 (tui_update_breakpoint_info): Likewise.
2938 (tui_set_exec_info_content): Likewise.
2939 (tui_show_exec_info_content): Likewise.
2940 (tui_alloc_source_buffer): Likewise.
2941 (tui_line_is_displayed): Likewise.
2942 (tui_addr_is_displayed): Likewise.
2943
d2b41ca0
JB
29442015-04-27 John Baldwin <jhb@FreeBSD.org>
2945
2946 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
2947 event if PL_FLAG_EXEC is set.
2948 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
2949 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
2950 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
2951 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
2952 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
2953
e58e05d6
JB
29542015-04-27 John Baldwin <jhb@FreeBSD.org>
2955
2956 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
2957 [TDP_RFPPWAIT] New variable fbsd_pending_children.
2958 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
2959 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
2960 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
2961 [PT_LWPINFO] (fbsd_wait): New function.
2962 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
2963 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
2964 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
2965 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
2966 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
2967 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
2968 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
2969 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
2970 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
2971 "fbsd_wait".
2972 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
2973 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
2974 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
2975 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
2976 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
2977 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
2978 Set "to_post_attach" to "fbsd_post_attach".
2979
8f60fe01
JB
29802015-04-27 John Baldwin <jhb@FreeBSD.org>
2981
2982 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
2983 (fbsd_find_memory_regions): Mark static.
2984 (fbsd_nat_add_target): New function.
2985 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
2986 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
2987 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
2988 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2989 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
2990 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
2991
5fbae7d1
GB
29922015-04-27 Gary Benson <gbenson@redhat.com>
2993
2994 * objfiles.c (allocate_objfile): Do not attempt to expand name
2995 if name is a "target:" filename.
2996 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
2997 to load auto-load scripts for objfiles with "target:" filenames.
2998
417c80f9
AA
29992015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3000
3001 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
3002 (enum s390_vector_abi_kind): New enum.
3003 (struct gdbarch_tdep)<vector_abi>: New field.
3004 (s390_effective_inner_type): Add parameter min_size. Stop
3005 unwrapping if the inner type is smaller than min_size.
3006 (s390_function_arg_float): Adjust call to
3007 s390_effective_inner_type.
3008 (s390_function_arg_vector): New function.
3009 (s390_function_arg_integer): Adjust comment.
3010 (struct s390_arg_state)<vr>: New field.
3011 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
3012 arguments according to vector ABI when appropriate.
3013 (s390_push_dummy_call): Initialize the argument state's field
3014 'vr'. Adjust calls to s390_handle_arg.
3015 (s390_register_return_value): Handle vector return values.
3016 (s390_return_value): Apply the "register" return value convention
3017 to a vector when appropriate.
3018 (s390_gdbarch_init): Initialize tdep->vector_abi.
3019 * NEWS: Announce S390 vector ABI support.
3020
4e65a17e
AA
30212015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3022
3023 * s390-linux-tdep.c (s390_return_value_convention): Remove
3024 function. Inline its logic...
3025 (s390_return_value): ...here. Instead, move the handling of the
3026 "register" return value convention...
3027 (s390_register_return_value): ...here. New function.
3028
80f75320
AA
30292015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3030
3031 * s390-linux-tdep.c
3032 (is_float_singleton): Remove function. Move the "singleton" part
3033 of the logic...
3034 (s390_effective_inner_type): ...here. New function.
3035 (is_float_like): Remove function. Inline its logic...
3036 (s390_function_arg_float): ...here.
3037 (is_pointer_like, is_integer_like, is_struct_like): Remove
3038 functions. Inline their logic...
3039 (s390_function_arg_integer): ...here.
3040 (s390_function_arg_pass_by_reference): Remove function.
3041 (extend_simple_arg): Remove function.
3042 (alignment_of): Remove function.
3043 (struct s390_arg_state): New structure.
3044 (s390_handle_arg): New function.
3045 (s390_push_dummy_call): Move parameter placement logic to the new
3046 function s390_handle_arg. Call it for calculating the stack area
3047 sizes first, and again for actually writing the parameters.
3048
6dbc9c04
AA
30492015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3050
3051 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
3052 false if the argument is zero.
3053
9e195661
PMR
30542015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
3055
3056 * ada-lang.c (template_to_static_fixed_type): Return input type
3057 when it is already fixed. Cache the input type itself when not
3058 creating a static fixed copy. Make it explicit that we never
3059 molestate the input type.
3060 * gdbtypes.c (resolve_dynamic_struct): Reset the
3061 TYPE_TARGET_TYPE field for resolved copies.
3062
460efde1
JB
30632015-04-27 Joel Brobecker <brobecker@adacore.com>
3064
3065 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
3066 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
3067 (template_to_static_fixed_type): Call ada_check_typedef only
3068 when necessary.
3069
6faec16b
AB
30702015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
3071
3072 * cli/cli-dump.c (srec_dump_command): Add internationalization
3073 mark ups.
3074 (ihex_dump_command): Likewise.
3075 (tekhex_dump_command): Likewise.
3076 (binary_dump_command): Likewise.
3077 (binary_append_command): Likewise.
3078
cf75d6c3
AB
30792015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
3080
3081 * cli/cli-dump.c (verilog_cmdlist): New variable.
3082 (dump_verilog_memory): New function.
3083 (dump_verilog_value): New function.
3084 (verilog_dump_command): New function.
3085 (_initialize_cli_dump): Add new commands to support verilog dump
3086 format.
3087 * NEWS: Add entry for "dump verilog".
3088
8cd00c59
PMR
30892015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
3090
3091 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
3092 descriptive type when there is none.
3093
8900d71e
PP
30942015-04-23 Patrick Palka <patrick@parcs.ath.cx>
3095
3096 * tui/tui-win.c (tui_async_resize_screen): Call
3097 rl_resize_terminal().
3098
f16eab5f
JT
30992015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
3100
3101 * windows-nat.c (handle_output_debug_string): Don't change
3102 current_event.dwThreadId.
3103 (get_windows_debug_event): Use thread_id, rather than relying on
3104 current_event.dwThreadId being changed.
3105
68ffc902
JT
31062015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
3107
3108 * windows-nat.c (windows_continue): Report an error if
3109 ContinueDebugEvent() fails.
3110
23942819
JT
31112015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3112
3113 * windows-nat.c (windows_resume): Fix misspelling in debug output.
3114
e6ad66bd
JT
31152015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3116
3117 * windows-nat.c (get_windows_debug_event): Replace retval with
3118 thread_id throughout. Update stale comment.
3119
776704b9
JT
31202015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
3121
3122 * windows-nat.c (get_windows_debug_event): Don't use ternary
3123 conditional operator.
3124
8aae4344
PM
31252015-04-21 Pierre Muller <muller@sourceware.org>
3126
3127 PR pascal/17815
3128 p-exp.y (yylex): Reorganize code to return the matched pattern
3129 for a field of this.
3130
819843c7
GB
31312015-04-21 Gary Benson <gbenson@redhat.com>
3132
3133 * common/fileio.h (fileio_to_host_openflags): New declaration.
3134 * common/fileio.c (fcntl.h): New include.
3135 (fileio_to_host_openflags): New function, factored out from...
3136 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
3137 Single use updated.
3138
0bca7f99
KB
31392015-04-21 Kevin Buettner <kevinb@redhat.com>
3140
3141 * rl78-tdep.c (RL78_SP_ADDR): Define.
3142 (opc_reg_to_gdb_regnum): New static function.
3143 (rl78_analyze_prologue): Recognize instructions forming slightly
3144 more interesting prologues.
3145
e771e4be
PMR
31462015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
3147
3148 Revert:
3149 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
3150 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
3151 TYPE_CODE_REF types so that they are not considered as dynamic
3152 depending on the referenced type.
3153 (resolve_dynamic_type_internal): Likewise.
3154
ee715b5a
PMR
31552015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
3156
3157 Revert:
3158 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
3159 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
3160 "top_level" parameter.
3161 (resolve_dynamic_type_internal): Remove the unused "top_level"
3162 parameter. Update call to is_dynamic_type_internal.
3163 (is_dynamic_type): Update call to is_dynamic_type_internal.
3164 (resolve_dynamic_range): Update call to
3165 resolve_dynamic_type_internal.
3166 (resolve_dynamic_union): Likewise.
3167 (resolve_dynamic_struct): Likewise.
3168 (resolve_dynamic_type): Likewise.
3169
e31d7699
GKB
31702015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
3171
3172 * breakpoint.c (update_dprintf_command_list): Remove duplicated
3173 xmalloc.
3174
d214e5e7
TS
31752015-04-20 Thomas Schwinge <thomas@codesourcery.com>
3176
110f9112
TS
3177 * reply_mig_hack.awk: Robustify parsing.
3178
d214e5e7
TS
3179 * reply_mig_hack.awk: Don't bother to declare an intermediate
3180 function pointer variable.
3181
8f61baf8
DE
31822015-04-17 Doug Evans <dje@google.com>
3183
3184 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
3185 to "exec_displacement" to avoid confusion with inner use of the name.
3186
dbbf180a
YQ
31872015-04-17 Pedro Alves <palves@redhat.com>
3188
3189 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
3190 if HW point of TYPE isn't supported.
3191
059790a0
YQ
31922015-04-17 Yao Qi <yao.qi@linaro.org>
3193 Pedro Alves <palves@redhat.com>
3194
3195 * target.h (target_can_use_hardware_watchpoint): Update comments.
3196 Remove trailing ";".
3197
1b6e6f5c
GB
31982015-04-17 Gary Benson <gbenson@redhat.com>
3199
3200 * remote.c (remote_add_inferior): New argument try_open_exec.
3201 If nonzero, attempt to open the inferior's executable file as
3202 the main executable if no main executable is open already.
3203 All callers updated.
3204 * NEWS: Mention that GDB now supports automatic location and
3205 retrieval of executable + files from remote targets.
3206
c78fa86a
GB
32072015-04-17 Gary Benson <gbenson@redhat.com>
3208
3209 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
3210 * remote.c (PACKET_qXfer_exec_file): Likewise.
3211 (remote_protocol_features): Register the
3212 "qXfer:exec-file:read" feature.
3213 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
3214 (remote_pid_to_exec_file): New function.
3215 (init_remote_ops): Initialize to_pid_to_exec_file.
3216 (_initialize_remote): Register new "set/show remote
3217 pid-to-exec-file-packet" command.
3218 * NEWS: Announce new qXfer:exec-file:read packet.
3219
e0d86d2c
GB
32202015-04-17 Gary Benson <gbenson@redhat.com>
3221
3222 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
3223 New declaration.
3224 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
3225 New function, factored out from...
3226 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
3227
a9a5a3d1
GB
32282015-04-17 Gary Benson <gbenson@redhat.com>
3229
3230 * exec.c (solist.h): New include.
3231 (exec_file_locate_attach): Prefix absolute executable
3232 paths with gdb_sysroot if set.
3233 * NEWS: Mention that executable paths may be prepended
3234 with sysroot.
3235
af1900b0
GB
32362015-04-17 Gary Benson <gbenson@redhat.com>
3237
3238 * solist.h (exec_file_find): New declaration.
3239 * solib.c (solib_find_1): New function, factored out from...
3240 (solib_find): ...here.
3241 (exec_file_find): New function.
3242
a10de604
GB
32432015-04-17 Gary Benson <gbenson@redhat.com>
3244
3245 * gdbcore.h (exec_file_locate_attach): New declaration.
3246 * exec.c (exec_file_locate_attach): New function, factored
3247 out from...
3248 * infcmd.c (attach_command_post_wait): ...here.
3249
92209ddf
MF
32502015-04-17 Mike Frysinger <vapier@gentoo.org>
3251
3252 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
3253
8550d3b3
YQ
32542015-04-16 Yao Qi <yao.qi@linaro.org>
3255
3256 * infrun.c (maybe_software_singlestep): Declare.
3257 (displaced_step_fixup): Call maybe_software_singlestep.
3258
30b3dd9d
DE
32592015-04-15 Doug Evans <dje@google.com>
3260
3261 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
3262
61d96d7e
DE
32632015-04-15 Doug Evans <dje@google.com>
3264
3265 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
3266
40d2f8d6
SM
32672015-04-15 Simon Marchi <simon.marchi@ericsson.com>
3268
3269 * python/lib/gdb/command/unwinders.py: Add parentheses.
3270
6bbbba9b
YQ
32712015-04-15 Yao Qi <yao.qi@linaro.org>
3272
3273 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
3274
2bb2dcab
YQ
32752015-04-15 Yao Qi <yao.qi@linaro.org>
3276
3277 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
3278
41f071ef
YQ
32792015-04-15 Yao Qi <yao.qi@linaro.org>
3280
3281 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3282 dsc->insn_size instead of 4.
3283
326a5c7e
GB
32842015-04-14 Gary Benson <gbenson@redhat.com>
3285
3286 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
3287 * minidebug.c (lzma_stat): Likewise.
3288 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
3289 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
3290
dd177e81
SS
32912015-04-13 Stan Shebs <stanshebs@google.com>
3292
3293 * MAINTAINERS: Update my email address.
3294
97de3545
JB
32952015-04-13 John Baldwin <jhb@FreeBSD.org>
3296
3297 * amd64-tdep.c (amd64_target_description): New function.
3298 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
3299 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
3300 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
3301 x86 extended save area.
3302 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
3303 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
3304 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
3305 (_initialize_amd64fbsd_nat): Set "to_read_description" to
3306 "amd64fbsd_read_description".
3307 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
3308 (amd64fbsd_supply_xstateregset): New function.
3309 (amd64fbsd_collect_xstateregset): New function.
3310 Add "amd64fbsd_xstateregset".
3311 (amd64fbsd_iterate_over_regset_sections): New function.
3312 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
3313 "I386_FBSD_XSAVE_XCR0_OFFSET".
3314 Add "iterate_over_regset_sections" gdbarch method.
3315 Add "core_read_description" gdbarch method.
3316 * i386-tdep.c (i386_target_description): New function.
3317 * i386-tdep.h: Export i386_target_description and tdesc_i386.
3318 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
3319 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
3320 x86 extended save area.
3321 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
3322 * i386bsd-nat.h: Export i386bsd_xsave_len.
3323 * i386fbsd-nat.c (i386fbsd_read_description): New function.
3324 (_initialize_i386fbsd_nat): Set "to_read_description" to
3325 "i386fbsd_read_description".
3326 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
3327 (i386fbsd_core_read_description): New function.
3328 (i386fbsd_supply_xstateregset): New function.
3329 (i386fbsd_collect_xstateregset): New function.
3330 Add "i386fbsd_xstateregset".
3331 (i386fbsd_iterate_over_regset_sections): New function.
3332 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
3333 "I386_FBSD_XSAVE_XCR0_OFFSET".
3334 Add "iterate_over_regset_sections" gdbarch method.
3335 Add "core_read_description" gdbarch method.
3336 * i386fbsd-tdep.h: New file.
3337
4f45d445
JK
33382015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3339
3340 * NEWS (Changes since GDB 7.9): Add removed -xdb.
3341 * breakpoint.c (command_line_is_silent): Remove xdb_commands
3342 conditional.
3343 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
3344 and lb.
3345 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
3346 va.
3347 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
3348 conditional.
3349 * defs.h (xdb_commands): Remove declaration.
3350 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
3351 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
3352 * infcmd.c (run_no_args_command, go_command): Remove.
3353 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
3354 * infrun.c (xdb_handle_command): Remove.
3355 (_initialize_infrun): Remove xdb_commands for lz and z.
3356 * main.c (xdb_commands): Remove variable.
3357 (captured_main): Remove "xdb" from long_options.
3358 (print_gdb_help): Remove --xdb from help.
3359 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
3360 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
3361 * stack.c (backtrace_full_command, args_plus_locals_info)
3362 (current_frame_command): Remove.
3363 (_initialize_stack): Remove xdb_commands for t, T and l.
3364 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
3365 * thread.c (_initialize_thread): Remove xdb_commands condition.
3366 * tui/tui-layout.c (tui_toggle_layout_command)
3367 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
3368 (_initialize_tui_layout): Remove xdb_commands for td and ts.
3369 * tui/tui-regs.c (tui_scroll_regs_forward_command)
3370 (tui_scroll_regs_backward_command): Remove.
3371 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
3372 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
3373 (_initialize_tui_win): Remove xdb_commands for U and w.
3374 * utils.c (pagination_on_command, pagination_off_command): Remove.
3375 (initialize_utils): Remove xdb_commands for am and sm.
3376
cb71640d
PA
33772015-04-10 Pedro Alves <palves@redhat.com>
3378
3379 * infrun.c (displaced_step_fixup): Switch to the event ptid
3380 earlier. If the thread stopped for a watchpoint and the
3381 target/arch has non-continuable watchpoints, cancel the displaced
3382 step.
3383 (resume): Don't start a displaced step if in-line step-over info
3384 is valid.
3385
8f572e5c
PA
33862015-04-10 Pedro Alves <palves@redhat.com>
3387
3388 * infrun.c (displaced_step_in_progress): New function.
3389 (do_target_resume): Advise target to report all signals if
3390 displaced stepping.
3391
8d707a12
PA
33922015-04-10 Pedro Alves <palves@redhat.com>
3393
3394 PR gdb/18216
3395 * infrun.c (process_event_stop_test): Don't assume a step-resume
3396 is set if tp->stepped_breakpoint is true.
3397
ef713951
YQ
33982015-04-10 Yao Qi <yao.qi@linaro.org>
3399
3400 * arm-tdep.c (install_alu_reg): Update comment.
3401 (thumb_copy_alu_reg): Remove local variable rn. Update
3402 debugging message. Use r2 instead of r1 in the modified
3403 instruction.
3404
906d60cf
PA
34052015-04-10 Pedro Alves <palves@redhat.com>
3406
3407 PR gdb/13858
3408 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
3409 linux_displaced_step_location as gdbarch_displaced_step_location
3410 hook.
3411 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
3412 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3413 * linux-tdep.c (linux_displaced_step_location): New function,
3414 based on ppc_linux_displaced_step_location.
3415 * linux-tdep.h (linux_displaced_step_location): New declaration.
3416 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
3417 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
3418 Delete.
3419 (ppc_linux_init_abi): Install linux_displaced_step_location as
3420 gdbarch_displaced_step_location hook, even without Cell/B.E..
3421 (_initialize_ppc_linux_tdep): Don't install
3422 ppc_linux_inferior_created as inferior_created observer.
3423 * s390-linux-tdep.c (s390_gdbarch_init): Install
3424 linux_displaced_step_location as gdbarch_displaced_step_location
3425 hook.
3426
7823a941
GB
34272015-04-09 Gary Benson <gbenson@redhat.com>
3428
3429 * common/common-remote-fileio.h: Rename to...
3430 * common/fileio.h: ...this. Update all references.
3431 (remote_fileio_to_fio_error): Rename to...
3432 (host_to_fileio_error): ...this.
3433 (remote_fileio_to_be): Rename to...
3434 (host_to_bigendian): ...this. Update all callers.
3435 (remote_fileio_to_fio_uint): Rename to...
3436 (host_to_fileio_uint): ...this. Update all callers.
3437 (remote_fileio_to_fio_time): Rename to...
3438 (host_to_fileio_time): ...this. Update all callers.
3439 (remote_fileio_to_fio_stat): Rename to...
3440 (host_to_fileio_stat): ...this.
3441 Update all references.
3442 * common/common-remote-fileio.c: Rename to...
3443 * common/fileio.c: ...this. Update all references.
3444 (remote_fileio_to_fio_error): Rename to...
3445 (host_to_fileio_error): ...this. Update all callers.
3446 (remote_fileio_mode_to_target): Rename to...
3447 (fileio_mode_pack): ...this. Update all callers.
3448 (remote_fileio_to_fio_mode): Rename to...
3449 (host_to_fileio_mode): ...this. Update all callers.
3450 (remote_fileio_to_fio_ulong): Rename to...
3451 (host_to_fileio_ulong): ...this. Update all callers.
3452 (remote_fileio_to_fio_stat): Rename to...
3453 (host_to_fileio_stat): ...this. Update all callers.
3454
f2983cc3
AW
34552015-04-09 Andy Wingo <wingo@igalia.com>
3456
3457 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
3458 (frame_functions): Bind gdbscm_frame_read_register to
3459 frame-read-register.
3460 * guile/lib/gdb.scm (frame-read-register): Export.
3461
b88bb450
GB
34622015-04-09 Gary Benson <gbenson@redhat.com>
3463
3464 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
3465 New declaration.
3466 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
3467 New function, factored out the named functions below.
3468 * inf-child.c (gdb/fileio.h): Remove include.
3469 (common-remote-fileio.h): New include.
3470 (inf_child_errno_to_fileio_error): Remove function. Update
3471 all callers to use remote_fileio_to_fio_error.
3472 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
3473
2f2680f3
AW
34742015-04-09 Andy Wingo <wingo@igalia.com>
3475
3476 * MAINTAINERS (Write After Approval): Add Andy Wingo.
3477
5a2d4533
L
34782015-04-09 H.J. Lu <hongjiu.lu@intel.com>
3479
3480 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
3481 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
3482 * configure: Regenerated.
3483
421693b0
PA
34842015-04-09 Pedro Alves <palves@redhat.com>
3485
3486 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
3487 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
3488 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
3489 * gnulib/import/Makefile.am: Update.
3490 * gnulib/import/Makefile.in: Update.
3491 * gnulib/import/m4/gnulib-cache.m4: Update.
3492 * gnulib/import/m4/gnulib-comp.m4: Update.
3493 * gnulib/import/m4/strtok_r.m4: New file.
3494 * gnulib/import/strtok_r.c: New file.
3495
f543dc83
PA
34962015-04-09 Pedro Alves <palves@redhat.com>
3497
3498 * gnulib/update-gnulib.sh (aclocal version check): Filter out
3499 "called too early to check prototype".
3500
6d62641c
SDJ
35012015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
3502
3503 PR python/16699
3504 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
3505 use a caching mechanism. Adjust comments and code to reflect
3506 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
3507 (cmdpy_completer_handle_brkchars): Adjust call to
3508 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
3509 (cmdpy_completer): Likewise.
3510
85558555
YQ
35112015-04-08 Yao Qi <yao.qi@linaro.org>
3512
3513 * spu-tdep.c (spu_gdbarch_init): Don't call
3514 set_gdbarch_cannot_step_breakpoint.
3515
d249a14a
SDJ
35162015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
3517
3518 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
3519
8a06aea7
PA
35202015-04-07 Pedro Alves <palves@redhat.com>
3521
3522 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
3523 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
3524 (delete_exited_threads): New declaration.
3525 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
3526 * linux-nat.c (linux_nat_update_thread_list): New function.
3527 (linux_nat_add_target): Install it.
3528 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
3529 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
3530 (delete_exited_threads): New function.
3531
d9b67d9f
PA
35322015-04-07 Pedro Alves <pedro@codesourcery.com>
3533
3534 * infrun.c (resume) <displaced stepping debug output>: Get the
3535 leader thread's regcache, not resume_ptid's.
3536
2c26b84f
DE
35372015-04-06 Doug Evans <xdje42@gmail.com>
3538
3539 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
3540 VAR_DOMAIN.
3541 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
3542 Include symbol domain in debugging output.
3543
7a85168d
PA
35442015-04-06 Pedro Alves <palves@redhat.com>
3545 Bernd Edlinger <bernd.edlinger@hotmail.de>
3546
3547 * configure.ac: Remove the mingw32-specific stub-termcap.o
3548 fallback, and instead fallback to the stub termcap on all hosts.
3549 * configure: Regenerate.
3550 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
3551 symbols.
3552
25755e2b
PMR
35532015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
3554
3555 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
3556 "top_level" parameter.
3557 (resolve_dynamic_type_internal): Remove the unused "top_level"
3558 parameter. Update call to is_dynamic_type_internal.
3559 (is_dynamic_type): Update call to is_dynamic_type_internal.
3560 (resolve_dynamic_range): Update call to
3561 resolve_dynamic_type_internal.
3562 (resolve_dynamic_union): Likewise.
3563 (resolve_dynamic_struct): Likewise.
3564 (resolve_dynamic_type): Likewise.
3565
961f4160
PMR
35662015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
3567
3568 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
3569 TYPE_CODE_REF types so that they are not considered as dynamic
3570 depending on the referenced type.
3571 (resolve_dynamic_type_internal): Likewise.
3572
39f3de7c
L
35732015-04-02 H.J. Lu <hongjiu.lu@intel.com>
3574
3575 * Makefile.in (top_srcdir): New.
3576 * configure: Regenerated.
3577
599bd15c
GB
35782015-04-02 Gary Benson <gbenson@redhat.com>
3579
3580 * NEWS: Announce the new default sysroot of "target:".
3581
fed040c6
GB
35822015-04-02 Gary Benson <gbenson@redhat.com>
3583
3584 * main.c (captured_main): Set gdb_sysroot to "target:"
3585 if not otherwise set.
3586
64c0b5de
GB
35872015-04-02 Gary Benson <gbenson@redhat.com>
3588
3589 * exec.c (exec_file_attach): Support "target:" filenames.
3590
b57fbfba
GB
35912015-04-02 Gary Benson <gbenson@redhat.com>
3592
3593 * solib.c (solib_find): Strip "target:" prefix from sysroot
3594 if accessing local files.
3595
97a41605
GB
35962015-04-02 Gary Benson <gbenson@redhat.com>
3597
3598 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
3599 checks and error messages.
3600
2938e6cf
GB
36012015-04-02 Gary Benson <gbenson@redhat.com>
3602
3603 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
3604 (remote_filename_p): Remove declaration.
3605 (remote_bfd_open): Likewise.
3606 * remote.c (remote_bfd_iovec_open): Remove function.
3607 (remote_bfd_iovec_close): Likewise.
3608 (remote_bfd_iovec_pread): Likewise.
3609 (remote_bfd_iovec_stat): Likewise.
3610 (remote_filename_p): Likewise.
3611 (remote_bfd_open): Likewise.
3612 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
3613 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
3614 (gdb_bfd_open_maybe_remote): Remove function.
3615 (symfile_bfd_open): Replace remote filename check with
3616 target filename check.
3617 (reread_symbols): Use gdb_bfd_open.
3618 * build-id.c (gdbcore.h): New include.
3619 (build_id_to_debug_bfd): Use gdb_bfd_open.
3620 * infcmd.c (attach_command_post_wait): Remove remote filename
3621 check.
3622 * solib.c (solib_find): Replace remote-specific handling with
3623 target-specific handling. Update comments where necessary.
3624 (solib_bfd_open): Replace remote-specific handling with
3625 target-specific handling.
3626 (gdb_sysroot_changed): New function.
3627 (_initialize_solib): Call the above when gdb_sysroot changes.
3628 * windows-tdep.c (gdbcore.h): New include.
3629 (windows_xfer_shared_library): Use gdb_bfd_open.
3630
f08e97fe
GB
36312015-04-02 Gary Benson <gbenson@redhat.com>
3632
3633 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
3634 (is_target_filename): New declaration.
3635 (gdb_bfd_has_target_filename): Likewise.
3636 (gdb_bfd_open): Update documentation comment.
3637 * gdb_bfd.c (target.h): New include.
3638 (gdb/fileio.h): Likewise.
3639 (is_target_filename): New function.
3640 (gdb_bfd_has_target_filename): Likewise.
3641 (fileio_errno_to_host): Likewise.
3642 (gdb_bfd_iovec_fileio_open): Likewise.
3643 (gdb_bfd_iovec_fileio_pread): Likewise.
3644 (gdb_bfd_iovec_fileio_close): Likewise.
3645 (gdb_bfd_iovec_fileio_fstat): Likewise.
3646 (gdb_bfd_open): Use target fileio to access paths prefixed
3647 with "target:" where necessary.
3648
4bd7dc42
GB
36492015-04-02 Gary Benson <gbenson@redhat.com>
3650
3651 * target.h (struct target_ops) <to_filesystem_is_local>:
3652 New field.
3653 (target_filesystem_is_local): New macro.
3654 * target-delegates.c: Regenerate.
3655 * remote.c (remote_filesystem_is_local): New function.
3656 (init_remote_ops): Initialize to_filesystem_is_local.
3657
9b15c1f0
GB
36582015-04-02 Gary Benson <gbenson@redhat.com>
3659
3660 * target.h (struct target_ops) <to_fileio_fstat>: New field.
3661 (target_fileio_fstat): New declaration.
3662 * target.c (target_fileio_fstat): New function.
3663 * inf-child.c (inf_child_fileio_fstat): Likewise.
3664 (inf_child_target): Initialize to_fileio_fstat.
3665 * remote.c (init_remote_ops): Likewise.
3666
d11916aa
SS
36672015-04-01 Sasha Smundak <asmundak@google.com>
3668
3669 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
3670 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
3671 (py-unwind.o): New recipe.
3672 * NEWS: mention Python frame unwinding.
3673 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
3674 gdb/unwinder.py and gdb/command/unwinder.py
3675 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
3676 list.
3677 (execute_unwinders): New function.
3678 * python/lib/gdb/command/unwinders.py: New file.
3679 * python/lib/gdb/unwinder.py: New file.
3680 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
3681 (objfpy_dealloc): Decrement frame_unwinders reference count.
3682 (objfpy_initialize): Create frame_unwinders list.
3683 (objfpy_get_frame_unwinders): New function.
3684 (objfpy_set_frame_unwinders): Ditto.
3685 (objfile_getset): Add frame_unwinders attribute to Objfile.
3686 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
3687 (pspy_dealloc): Decrement frame_unwinders reference count.
3688 (pspy_initialize): Create frame_unwinders list.
3689 (pspy_get_frame_unwinders): New function.
3690 (pspy_set_frame_unwinders): Ditto.
3691 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
3692 * python/py-unwind.c: New file.
3693 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
3694 (objpy_get_frame_unwinders): New prototype.
3695 (gdbpy_initialize_unwind): New prototype.
3696 * python/python.c (gdbpy_apply_type_printers): Call
3697 gdbpy_initialize_unwind.
3698
6b403daa
PA
36992015-04-01 Pedro Alves <palves@redhat.com>
3700
3701 * infrun.c (resume): Check currently_stepping after clearing
3702 stepped_breakpoint, not before.
3703
1176ecec
PA
37042015-04-01 Pedro Alves <palves@redhat.com>
3705
3706 * infrun.c (print_target_wait_results): Print all the ptid
3707 elements.
3708
de1fe8c8
PA
37092015-04-01 Pedro Alves <palves@redhat.com>
3710
3711 * infrun.c (keep_going): Also discard cleanups if inserting
3712 breakpoints fails.
3713
e6f5c25b
PA
37142015-04-01 Pedro Alves <palves@redhat.com>
3715
3716 * infrun.c (wait_for_inferior): Install the
3717 finish_thread_state_cleanup cleanup across the whole function, not
3718 just around handle_inferior_event.
3719
1ac806b8
PA
37202015-04-01 Pedro Alves <palves@redhat.com>
3721
3722 * infrun.c (resume) <step past permanent breakpoint>: Use
3723 do_target_resume.
3724
2ee52aa4
PA
37252015-04-01 Pedro Alves <palves@redhat.com>
3726
3727 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
3728
5445da1b
PMR
37292015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
3730
3731 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
3732
4eec2deb
PA
37332015-04-01 Pedro Alves <palves@redhat.com>
3734
3735 * linux-thread-db.c (record_thread): Readd the thread to gdb's
3736 list if it was marked exited.
3737
afa59b79
L
37382015-04-01 H.J. Lu <hongjiu.lu@intel.com>
3739
3740 * configure: Regenerated.
3741
df8411da
SDJ
37422015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
3743 Jan Kratochvil <jan.kratochvil@redhat.com>
3744 Oleg Nesterov <oleg@redhat.com>
3745
3746 PR corefiles/16092
3747 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
3748 New enum identifying the various options of the coredump_filter
3749 file.
3750 (struct smaps_vmflags): New struct.
3751 (use_coredump_filter): New variable.
3752 (decode_vmflags): New function.
3753 (mapping_is_anonymous_p): Likewise.
3754 (dump_mapping_p): Likewise.
3755 (linux_find_memory_regions_full): New variables
3756 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
3757 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
3758 parsing of its information. Implement memory mapping filtering
3759 based on its contents.
3760 (show_use_coredump_filter): New function.
3761 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
3762 * NEWS: Mention the possibility of using the
3763 '/proc/PID/coredump_filter' file when generating a corefile.
3764 Mention new command 'set use-coredump-filter'.
3765
416f679e
SDJ
37662015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
3767
3768 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
3769 read_memory_unsigned_integer.
3770
711a72d3
L
37712015-03-31 H.J. Lu <hongjiu.lu@intel.com>
3772
3773 * Makefile.in (ZLIB): New.
3774 (ZLIBINC): Likewise.
3775 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
3776 (CLIBS): Add $(ZLIB).
3777 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
3778 Add -lz to LIBS.
3779 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
3780 * top.c (print_gdb_configuration): Remove --with-zlib and
3781 --without-zlib.
3782 * config.in: Regenerated.
3783 * configure: Likewise.
3784
d33279b3
AT
37852015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
3786
3787 * NEWS: Mention info os cpus support.
3788 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
3789 (struct osdata_type): Add cpus entry, reorder the entries in
3790 alphabetical order.
3791
71b30f27
MK
37922015-03-31 Matthias Klose <doko@ubuntu.com>
3793
3794 * compile/compile.c (compile_to_object): Allow triplets with or
3795 without vendor set.
3796
13ce9222
DE
37972015-03-30 Doug Evans <dje@google.com>
3798
3799 PR c++/18141
3800 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
3801 klass in VAR_DOMAIN.
3802
20f796c9
GB
38032015-03-30 Gary Benson <gbenson@redhat.com>
3804
3805 * remote.c (remote_mourn_1): Remove function. Update all callers
3806 to use remote_mourn.
3807 (extended_remote_mourn_1): Remove function. Update all callers
3808 to use extended_remote_mourn.
3809 (extended_remote_attach_1): Remove function. Update all callers
3810 to use extended_remote_attach.
3811
49d45b20
JB
38122015-03-28 James Bowman <james.bowman@ftdichip.com>
3813
3814 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
3815 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
3816 (ALLDEPFILES): Add ft32-tdep.c.
3817 * configure.tgt: Add FT32 entry.
3818 * ft32-tdep.c: New file, FT32 target-dependent code.
3819 * ft32-tdep.h: New file, FT32 target-dependent code.
3820
1c4ff080
JK
38212015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3822
3823 Revert:
3824 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3825 Code cleanup.
3826 * printcmd.c (print_command_1): Move expr variable scope.
3827
79498702
JB
38282015-03-27 Joel Brobecker <brobecker@adacore.com>
3829
3830 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
3831
ce9c0ca1
AK
38322015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
3833
3834 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
3835 sections.
3836
429e1e81
JB
38372015-03-26 Joel Brobecker <brobecker@adacore.com>
3838
3839 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
3840 exception raised while parsing the probe arguments.
3841 Force parsing to be done using the C language parser.
3842 * expression.h (parse_expression_with_language): Declare.
3843 * parse.c (parse_expression_with_language): New function.
3844
4593441b
JT
38452015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
3846
3847 * MAINTAINERS (Write After Approval): Add "Jon Turney".
3848
ff908ebf
AW
38492015-03-26 Andy Wingo <wingo@igalia.com>
3850
3851 PR symtab/18148
3852 * dwarf2read.c (struct partial_die_info): Add has_const_value
3853 member.
3854 (add_partial_symbol): Don't punt on symbols that have const_value
3855 attributes.
3856 (read_partial_die): Detect DW_AT_const_value.
3857
f30d5c78
JK
38582015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3859
3860 Code cleanup.
3861 * printcmd.c (print_command_1): Move expr variable scope.
3862
8d89f51a
JK
38632015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3864
3865 Code cleanup.
3866 * printcmd.c (validate_format): Make the parameter cmdname const.
3867
0b736949
DB
38682015-03-26 Don Breazeal <donb@codesourcery.com>
3869
3870 * remote.c (_initialize_remote): Update comment.
3871
20d35291
PA
38722015-03-26 Pedro Alves <palves@redhat.com>
3873 Jon TURNEY <jon.turney@dronecode.org.uk>
3874
3875 * coffread.c (coff_symfile_read): When constructing the name of an
3876 import stub symbol from import symbol for amd64, only skip the
3877 char after _imp_ if the target is underscored (like i386) and the
3878 char is indeed the target's leading char.
3879
6a3753b3
PA
38802015-03-25 Pedro Alves <palves@redhat.com>
3881
3882 * target.h <to_async>: Replace 'callback' and 'context' parameters
3883 with boolean 'enable' parameter.
3884 (target_async): Replace CALLBACK and CONTEXT parameters with
3885 boolean ENABLE parameter.
3886 * inf-loop.c (inferior_event_handler): Adjust.
3887 * linux-nat.c (linux_nat_attach, linux_nat_resume)
3888 (linux_nat_resume): Adjust.
3889 (async_client_callback, async_client_context): Delete.
3890 (handle_target_event): Call inferior_event_handler directly.
3891 (linux_nat_async): Replace 'callback' and 'context' parameters
3892 with boolean 'enable' parameter. Adjust. Remove references to
3893 async_client_callback and async_client_context.
3894 (linux_nat_close): Adjust.
3895 * record-btrace.c (record_btrace_async): Replace 'callback' and
3896 'context' parameters with boolean 'enable' parameter. Adjust.
3897 (record_btrace_resume): Adjust.
3898 * record-full.c (record_full_async): Replace 'callback' and
3899 'context' parameters with boolean 'enable' parameter. Adjust.
3900 (record_full_resume, record_full_core_resume): Adjust.
3901 * remote.c (struct remote_state) <async_client_callback,
3902 async_client_context>: Delete fields.
3903 (remote_start_remote, extended_remote_attach_1, remote_resume)
3904 (extended_remote_create_inferior): Adjust.
3905 (remote_async_serial_handler): Call inferior_event_handler
3906 directly.
3907 (remote_async): Replace 'callback' and 'context' parameters with
3908 boolean 'enable' parameter. Adjust.
3909 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
3910 Adjust.
3911 * target-delegates.c: Regenerate.
3912
1c4b552b
GB
39132015-03-25 Gary Benson <gbenson@redhat.com>
3914 Pedro Alves <palves@redhat.com>
3915
3916 * target.c (fileio_ft_t): New typedef, define object vector.
3917 (fileio_fhandles): New static variable.
3918 (is_closed_fileio_fh): New macro.
3919 (lowest_closed_fd): New static variable.
3920 (acquire_fileio_fd): New function.
3921 (release_fileio_fd): Likewise.
3922 (fileio_fd_to_fh): New macro.
3923 (target_fileio_open): Wrap the file descriptor on success.
3924 (target_fileio_pwrite): Updated to use wrapped file descriptor.
3925 (target_fileio_pread): Likewise.
3926 (target_fileio_close): Likewise.
3927
a25d8bf9
PA
39282015-03-24 Pedro Alves <palves@redhat.com>
3929
3930 * thread.c (thread_apply_all_command): Take exited threads into
3931 account.
3932
44a1ee51
PA
39332015-03-24 Pedro Alves <palves@redhat.com>
3934
3935 * infrun.c (resume, proceed): Mention
3936 switch_back_to_stepped_thread, not switch_back_to_stepping.
3937
f3263aa4
PA
39382015-03-24 Pedro Alves <palves@redhat.com>
3939
3940 * infrun.c (user_visible_resume_ptid): Rewrite going from
3941 most-locked to unlocked instead of the opposite. Move comment ...
3942 * infrun.h (user_visible_resume_ptid): ... here.
3943
2bf6fb9d
PA
39442015-03-24 Pedro Alves <palves@redhat.com>
3945
3946 * linux-nat.c (linux_nat_resume): Output debug logs before trying
3947 to resume the event lwp. Use the lwp's ptid instead of the passed
3948 in (maybe wildcard) ptid.
3949 (stop_wait_callback): Tweak debug log output.
3950 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
3951 TRAP_TRACE.
3952 (linux_nat_filter_event): In debug output, distinguish a
3953 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
3954 before trying to resume the lwp.
3955
283a9958
JB
39562015-03-24 Joel Brobecker <brobecker@adacore.com>
3957
3958 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
3959 pointer indirection.
3960 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
3961 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
3962
93a8e227
JB
39632015-03-24 Joel Brobecker <brobecker@adacore.com>
3964
3965 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
3966 Renames DYN_ATTR_DATA_LOCATION.
3967 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
3968 DYN_ATTR_DATA_LOCATION.
3969 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
3970 instead of DYN_ATTR_DATA_LOCATION.
3971
64ce06e4
PA
39722015-03-24 Pedro Alves <palves@redhat.com>
3973
3974 * breakpoint.c (until_break_command): Adjust call to proceed.
3975 * gdbthread.h (struct thread_control_state) <stepping_command>:
3976 New field.
3977 * infcall.c (run_inferior_call): Adjust call to proceed.
3978 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
3979 Adjust calls to proceed.
3980 (set_step_frame): Set the current thread's step_start_function
3981 here.
3982 (step_once): Adjust calls to proceed.
3983 (jump_command, signal_command, until_next_command)
3984 (finish_backward, finish_forward, proceed_after_attach_callback)
3985 (attach_command_post_wait): Adjust calls to proceed.
3986 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
3987 (do_target_resume): New function, factored out from ...
3988 (resume): ... here. Remove 'step' parameter. Instead, check
3989 currently_stepping to determine whether the thread should be
3990 single-stepped.
3991 (proceed): Remove 'step' parameter and don't set the thread's
3992 step_start_function here. Adjust call to 'resume'.
3993 (handle_inferior_event): Adjust calls to 'resume'.
3994 (switch_back_to_stepped_thread): Use do_target_resume instead of
3995 'resume'.
3996 (keep_going): Adjust calls to 'resume'.
3997 * infrun.h (proceed): Remove 'step' parameter.
3998 (resume): Likewise.
3999 * windows-nat.c (do_initial_windows_stuff): Adjust call to
4000 'resume'.
4001 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
4002
856e7dd6
PA
40032015-03-24 Pedro Alves <palves@redhat.com>
4004
4005 * gdbthread.h (struct thread_control_state) <stepping_command>:
4006 New field.
4007 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
4008 the thread's stepping_command field.
4009 * infrun.c (resume): Check the thread's stepping_command flag to
4010 determine which threads should be resumed. Rename 'entry_step'
4011 local to user_step.
4012 (clear_proceed_status_thread): Clear 'stepping_command'.
4013 (schedlock_applies): Change parameter type to struct thread_info
4014 pointer. Adjust.
4015 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
4016 (switch_back_to_stepped_thread): Adjust calls to
4017 'schedlock_applies'.
4018 (_initialize_infrun): Adjust "set scheduler-locking step" help.
4019
885eeb5b
PA
40202015-03-24 Pedro Alves <palves@redhat.com>
4021
4022 * infrun.c (step_start_function): Delete and ...
4023 * gdbthread.h (struct thread_control_state) <step_start_function>:
4024 ... now a field here.
4025 * infrun.c (clear_proceed_status_thread): Clear the thread's
4026 step_start_function.
4027 (proceed, process_event_stop_test, print_stop_event): Adjust.
4028
3333f03a
PA
40292015-03-24 Pedro Alves <palves@redhat.com>
4030
4031 * infrun.c (proceed): No longer handle negative step.
4032
369f6daa
GB
40332015-03-24 Gary Benson <gbenson@redhat.com>
4034
4035 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
4036 (x86_linux_prepare_to_resume): Likewise.
4037 * x86-linux-nat.c (x86_linux_new_thread):
4038 Moved to nat/x86-linux.c.
4039 (x86_linux_prepare_to_resume): Likewise.
4040 * nat/x86-linux.c (x86_linux_new_thread): New function.
4041 (x86_linux_prepare_to_resume): Likewise.
4042
8e5d4070
GB
40432015-03-24 Gary Benson <gbenson@redhat.com>
4044
4045 * nat/x86-linux-dregs.h: New file.
4046 * nat/x86-linux-dregs.c: Likewise.
4047 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
4048 (x86-linux-dregs.o): New rule.
4049 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
4050 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4051 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
4052 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
4053 (x86_linux_dr_get): Likewise.
4054 (x86_linux_dr_set): Likewise.
4055 (x86_linux_dr_get_addr): Likewise.
4056 (x86_linux_dr_get_control): Likewise.
4057 (x86_linux_dr_get_status): Likewise.
4058 (update_debug_registers_callback): Likewise.
4059 (x86_linux_dr_set_control): Likewise.
4060 (x86_linux_dr_set_addr): Likewise.
4061 (x86_linux_update_debug_registers): Likewise.
4062
2b95d440
GB
40632015-03-24 Gary Benson <gbenson@redhat.com>
4064
4065 * x86-linux-nat.c (x86_linux_update_debug_registers):
4066 New function, factored out from...
4067 (x86_linux_prepare_to_resume): ...this.
4068
14b0bc68
GB
40692015-03-24 Gary Benson <gbenson@redhat.com>
4070
4071 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
4072 (x86_linux_dr_set): Likewise.
4073 (x86_linux_dr_get_addr): Likewise.
4074 (x86_linux_dr_get_control): Likewise.
4075 (x86_linux_dr_get_status): Likewise.
4076 (update_debug_registers_callback): Likewise.
4077 (x86_linux_dr_set_control): Likewise.
4078 (x86_linux_dr_set_addr): Likewise.
4079 (x86_linux_prepare_to_resume): Likewise.
4080 (x86_linux_new_thread): Likewise.
4081
5dfe6ca8
GB
40822015-03-24 Gary Benson <gbenson@redhat.com>
4083
4084 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
4085 (x86_linux_new_thread): Rename argument.
4086
4b134ca1
GB
40872015-03-24 Gary Benson <gbenson@redhat.com>
4088
4089 * nat/x86-linux.h: New file.
4090 * nat/x86-linux.c: Likewise.
4091 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
4092 (x86-linux.o): New rule.
4093 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
4094 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4095 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
4096 (lwp_set_arch_private_info): New declaration.
4097 (lwp_arch_private_info): Likewise.
4098 * linux-nat.c (lwp_set_arch_private_info): New function.
4099 (lwp_arch_private_info): Likewise.
4100 * x86-linux-nat.c: Include nat/x86-linux.h.
4101 (arch_lwp_info): Removed structure.
4102 (update_debug_registers_callback):
4103 Use lwp_set_debug_registers_changed.
4104 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
4105 and lwp_set_debug_registers_changed.
4106 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
4107
cff068da
GB
41082015-03-24 Gary Benson <gbenson@redhat.com>
4109
4110 * nat/linux-nat.h (ptid_of_lwp): New declaration.
4111 (lwp_is_stopped): Likewise.
4112 (lwp_stop_reason): Likewise.
4113 * linux-nat.c (ptid_of_lwp): New function.
4114 (lwp_is_stopped): Likewise.
4115 (lwp_is_stopped_by_watchpoint): Likewise.
4116 * x86-linux-nat.c (update_debug_registers_callback):
4117 Use lwp_is_stopped.
4118 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
4119 lwp_stop_reason.
4120
b2f7c7e8
GB
41212015-03-24 Gary Benson <gbenson@redhat.com>
4122
4123 * linux-nat.h (linux_stop_lwp): Move declaration to...
4124 * nat/linux-nat.h (linux_stop_lwp): New declaration.
4125
6d4ee8c6
GB
41262015-03-24 Gary Benson <gbenson@redhat.com>
4127
4128 * linux-nat.h: Include nat/linux-nat.h.
4129 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
4130 * nat/linux-nat.h (struct lwp_info): New forward declaration.
4131 (iterate_over_lwps_ftype): New typedef.
4132 (iterate_over_lwps): New declaration.
4133 * linux-nat.h (iterate_over_lwps): Update comment. Use
4134 iterate_over_lwps_ftype. Update callback return value check.
4135
70a0bb6b
GB
41362015-03-24 Gary Benson <gbenson@redhat.com>
4137
4138 * x86-nat.h (x86_debug_reg_state): Move declaration to...
4139 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
4140
7b669087
GB
41412015-03-24 Gary Benson <gbenson@redhat.com>
4142
4143 * nat/linux-nat.h (current_lwp_ptid): New declaration.
4144 * linux-nat.c (current_lwp_ptid): New function.
4145 * x86-linux-nat.c: Include nat/linux-nat.h.
4146 (x86_linux_dr_get_addr): Use current_lwp_ptid.
4147 (x86_linux_dr_get_control): Likewise.
4148 (x86_linux_dr_get_status): Likewise.
4149 (x86_linux_dr_set_control): Likewise.
4150 (x86_linux_dr_set_addr): Likewise.
4151
15630549
AT
41522015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
4153
4154 PR breakpoints/16466
4155 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
4156
8a4506c0
JB
41572015-03-23 Joel Brobecker <brobecker@adacore.com>
4158
4159 * ser-mingw.c (ser_windows_setparity): Fix indentation.
4160 * ser-unix.c (hardwire_setparity): Likewise.
4161
236af5e3
YG
41622015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
4163
4164 * NEWS: Mention set/show serial parity command.
4165 * monitor.c (monitor_open): Call serial_setparity.
4166 * remote.c (remote_open_1): Likewise.
4167 * ser-base.c (ser_base_serparity): New function.
4168 * ser-base.h (ser_base_setparity): Add declaration.
4169 * ser-go32.c (dos_ops): Set "setparity" field.
4170 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
4171 state.Parity.
4172 (ser_windows_setparity): New function.
4173 (hardwire_ops): Add ser_windows_setparity.
4174 (tty_ops): Add NULL for setparity field.
4175 (pipe_ops): Add ser_base_setparity.
4176 (tcp_ops): Likewise.
4177 * ser-pipe.c (pipe_ops): Likewise.
4178 * ser-tcp.c (tcp_ops): Likewise.
4179 * ser-unix.c (hardwire_setparity): Add declaration.
4180 (hardwire_raw): Don't reset PARENB flag.
4181 (hardwire_setparity): New function.
4182 (hardwire_ops): Add hardwire_setparity.
4183 * serial.c (serial_setparity): New function.
4184 (serial_parity): New global.
4185 (parity_none, parity_odd, parity_even, parity_enums, parity):
4186 New static globals.
4187 (set_parity): New function.
4188 (_initialize_serial): Add set/show serial parity commands.
4189 * serial.h (GDBPARITY_NONE): Define.
4190 (GDBPARITY_ODD): Define.
4191 (GDBPARITY_EVEN): Define.
4192 (serial_setparity) Add declaration.
4193 (struct serial_ops): Add setparity field.
4194 * target.h (serial_parity): Add declaration.
4195
32b40af9
KS
41962015-03-23 Keith Seitz <keiths@redhat.com>
4197
4198 * linespec.c (linespec_lexer_lex_keyword): Update comment.
4199
693dca06
KS
42002015-03-23 Keith Seitz <keiths@redhat.com>
4201
4202 * breakpoint.c (parse_breakpoint_sals): Use
4203 linespec_lexer_lex_keyword to ascertain if the user specified
4204 a NULL location.
4205 * linespec.c [IF_KEYWORD_INDEX]: Define.
4206 (linespec_lexer_lex_keyword): Export.
4207 (struct ls_parser) <keyword_ok>: Remove.
4208 A keyword is only a keyword if not followed by another keyword.
4209 (linespec_lexer_lex_one): Remove keyword_ok handling.
4210 Add comment explaining why the parsing stream is not advanced
4211 when a keyword is seen.
4212 (parse_linespec): Remove parser->keyword_ok.
4213 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
4214
7e993ebf
KS
42152015-03-23 Keith Seitz <keiths@redhat.com>
4216
4217 PR gdb/18021
4218 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
4219 if we find a static method with DW_AT_vtable_elem_location.
4220
b1a0f704
EZ
42212015-03-21 Eli Zaretskii <eliz@gnu.org>
4222
4223 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
4224 before the second loop, to avoid undefined behavior. Reported by
4225 Anton Blanchard <anton@samba.org>.
4226
d9823cbb
KB
42272015-03-20 Keven Boell <keven.boell@intel.com>
4228
4229 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
4230 data_location usage to linked list.
4231 (resolve_dynamic_type_internal): Adapt data_location to
4232 linked list.
4233 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
4234 (copy_type_recursive, copy_type): Add copy of linked list.
4235 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
4236 (struct dynamic_prop_list): New struct.
4237 * dwarf2read.c (set_die_type): Set data_location data.
4238
2e7bf1d7
PA
42392015-03-20 Pedro Alves <palves@redhat.com>
4240
4241 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
4242 inner block and make it const.
4243 * machoread.c (get_archive_prefix_len): Make "lparen" const.
4244
7a26bd4d
PA
42452015-03-20 Pedro Alves <palves@redhat.com>
4246
4247 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
4248 * breakpoint.h (set_breakpoint_condition): Update declaration.
4249
cd46431b
PA
42502015-03-20 Pedro Alves <palves@redhat.com>
4251
4252 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
4253
e28566f7
PA
42542015-03-20 Pedro Alves <palves@redhat.com>
4255
4256 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
4257
f6fc92f6
PA
42582015-03-20 Pedro Alves <palves@redhat.com>
4259
4260 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
4261
c32ed3ef
PA
42622015-03-20 Pedro Alves <palves@redhat.com>
4263
4264 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
4265 (nto_init_solib_absolute_prefix): Likewise.
4266
53e78085
PA
42672015-03-20 Pedro Alves <palves@redhat.com>
4268
4269 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
4270 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
4271
bc23328c
JK
42722015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4273
4274 * config/djgpp/README: Remove gdb.hp.
4275
e8ffc436
YQ
42762015-03-20 Yao Qi <yao.qi@linaro.org>
4277
4278 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
4279 set_gdbarch_cannot_step_breakpoint.
4280
23f238d3
PA
42812015-03-19 Pedro Alves <palves@redhat.com>
4282
4283 * linux-nat.c (linux_resume_one_lwp): Rename to ...
4284 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
4285 instead call perror_with_name.
4286 (check_ptrace_stopped_lwp_gone): New function.
4287 (linux_resume_one_lwp): Reimplement as wrapper around
4288 linux_resume_one_lwp_throw that swallows errors if the LWP is
4289 gone.
4290 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
4291 swallows errors if the LWP is gone. Use
4292 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
4293
eb54c8bf
PA
42942015-03-19 Pedro Alves <palves@redhat.com>
4295
4296 * linux-nat.c (status_callback): Return early if the LWP has no
4297 status pending.
4298
b90fc188
PA
42992015-03-19 Pedro Alves <palves@redhat.com>
4300
4301 * linux-nat.c (select_event_lwp_callback): Update comment to no
4302 longer mention SIGTRAP.
4303
670f82d4
TG
43042015-03-18 Tristan Gingold <gingold@adacore.com>
4305
72f4393d
L
4306 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
4307 redirection code to ...
4308 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
4309 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 4310
464b0089
GB
43112015-03-18 Gary Benson <gbenson@redhat.com>
4312
4313 (remote_protocol_features): Remove the "vFile:fstat" feature.
4314 (remote_hostio_fstat): Probe for "vFile:fstat" support.
4315
f68f11b7
YQ
43162015-03-11 Yao Qi <yao.qi@linaro.org>
4317
4318 PR tdep/18107
4319 * aarch64-linux-tdep.c: Include xml-syscall.h
4320 (aarch64_linux_get_syscall_number): New function.
4321 (aarch64_linux_init_abi): Call
4322 set_gdbarch_get_syscall_number.
4323 * syscalls/aarch64-linux.xml: New file.
4324
393bd0c0
YG
43252015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
4326
4327 * ser-base.h (ser_base_setstopbits): Change second argument name
4328 from "rate" to "num".
4329
7f3647e2
GB
43302015-03-17 Gary Benson <gbenson@redhat.com>
4331 Luke Allardyce <lukeallardyce@gmail.com>
4332
4333 PR gdb/18131
4334 * common/common-remote-fileio.h (sys/stat.h): New include.
4335 (stuct stat): Remove forward declaration.
4336
3ce5b6e2
JB
43372015-03-16 John Baldwin <jhb@FreeBSD.org>
4338
4339 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
4340 before writing core register notes.
4341
d053f6be
YZ
43422015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
4343 Pedro Alves <palves@redhat.com>
4344
4345 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
4346 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
4347 (tgoto): Wrap with extern "C".
4348
b1a921c8
PA
43492015-03-16 Pedro Alves <palves@redhat.com>
4350 Yuanhui Zhang <asmwarrior@gmail.com>
4351
4352 * stub-termcap.c (tputs): Change prototype.
4353
876d1cd7
YZ
43542015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
4355 Pedro Alves <palves@redhat.com>
4356
4357 * windows-nat.c (struct thread_info_struct): Rename to ...
4358 (struct windows_thread_info_struct): ... this.
4359 (thread_info): Rename to ...
4360 (windows_thread_info): ... this.
4361 All users updated.
4362
0800b440
JK
43632015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4364 Pedro Alves <palves@redhat.com>
4365
4366 * NEWS: New Removed targets and native configurations.
4367
43682015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
4369
4370 Remove HPUX.
4371 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
4372 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
4373 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
4374 ia64-hpux-tdep.h, solib-ia64-hpux.h.
4375 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
4376 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
4377 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
4378 hppa-hpux-tdep.c.
4379 * config/ia64/hpux.mh: Remove file.
4380 * config/pa/hpux.mh: Remove file.
4381 * configure: Rebuilt.
4382 * configure.ac (dlgetmodinfo, somread.o): Remove.
4383 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
4384 (ia64-*-hpux*): Remove its float format exception.
4385 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
4386 * hppa-hpux-nat.c: Remove file.
4387 * hppa-hpux-tdep.c: Remove file.
4388 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
4389 Move them here from hppa-tdep.h
4390 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
4391 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
4392 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
4393 Move them to hppa-tdep.c.
4394 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
4395 declarations.
4396 * ia64-hpux-nat.c: Remove file.
4397 * ia64-hpux-tdep.c: Remove file.
4398 * ia64-hpux-tdep.h: Remove file.
4399 * inf-ttrace.c: Remove file.
4400 * inf-ttrace.h: Remove file.
4401 * solib-ia64-hpux.c: Remove file.
4402 * solib-ia64-hpux.h: Remove file.
4403 * solib-pa64.c: Remove file.
4404 * solib-pa64.h: Remove file.
4405 * solib-som.c: Remove file.
4406 * solib-som.h: Remove file.
4407 * somread.c: Remove file.
4408
25268153
JB
44092015-03-13 John Baldwin <jhb@FreeBSD.org>
4410
4411 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
4412 * config.in: Regenerate.
4413 * configure: Regenerate.
4414 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 4415 define.
25268153
JB
4416 (fbsd_find_memory_regions): Use kinfo_getvmmap to
4417 enumerate memory regions if present.
4418
773eacf5
JB
44192015-03-13 John Baldwin <jhb@FreeBSD.org>
4420
4421 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
4422 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
4423 expressions.
4424 (i386fbsd_sigtramp_p): Likewise.
4425
01b6bdb0
JB
44262015-03-12 John Baldwin <jhb@FreeBSD.org>
4427
4428 * MAINTAINERS (Write After Approval): Add John Baldwin.
4429
811a659a
GB
44302015-03-12 Gary Benson <gbenson@redhat.com>
4431
4432 * solib.c (_initialize_solib): Make "set/show sysroot" use
4433 add_setshow_optional_filename_cmd so it can be restored to
4434 empty after being set.
4435
10304ef3
SDJ
44362015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
4437
4438 * Makefile.in (SFILES): New source break-catch-syscall.c.
4439 (COMMON_OBS): New object break-catch-syscall.o.
4440 * break-catch-syscall.c: New file.
4441 * breakpoint.c: Remove inclusion of "xml-syscall.h".
4442 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
4443 (struct syscall_catchpoint): Likewise.
4444 (dtor_catch_syscall): Likewise.
4445 (catch_syscall_inferior_data): Likewise.
4446 (struct catch_syscall_inferior_data): Likewise.
4447 (get_catch_syscall_inferior_data): Likewise.
4448 (catch_syscall_inferior_data_cleanup): Likewise.
4449 (insert_catch_syscall): Likewise.
4450 (remove_catch_syscall): Likewise.
4451 (breakpoint_hit_catch_syscall): Likewise.
4452 (print_it_catch_syscall): Likewise.
4453 (print_one_catch_syscall): Likewise.
4454 (print_mention_catch_syscall): Likewise.
4455 (print_recreate_catch_syscall): Likewise.
4456 (catch_syscall_breakpoint_ops): Likewise.
4457 (syscall_catchpoint_p): Likewise.
4458 (create_syscall_event_catchpoint): Likewise.
4459 (catch_syscall_split_args): Likewise.
4460 (catch_syscall_command_1): Likewise.
4461 (is_syscall_catchpoint_enabled): Likewise.
4462 (catch_syscall_enabled): Likewise.
4463 (catching_syscall_number): Likewise.
4464 (catch_syscall_completer): Likewise.
4465 (clear_syscall_counts): Likewise.
4466 (initialize_breakpoint_ops): Move initialization of syscall
4467 catchpoints to break-catch-syscall.c.
4468 (_initialize_breakpoint): Move code related to syscall catchpoints
4469 to break-catch-syscall.c.
4470
badd37ce
SDJ
44712015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
4472
4473 * breakpoint.c (breakpoint_find_if): New function.
4474 * breakpoint.h (breakpoint_find_if): New prototype.
4475
0a93529c
GB
44762015-03-11 Gary Benson <gbenson@redhat.com>
4477
4478 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
4479 * remote-fileio.c (remote_fileio_to_host_uint): New function.
4480 (remote_fileio_to_host_ulong): Likewise.
4481 (remote_fileio_to_host_mode): Likewise.
4482 (remote_fileio_to_host_time): Likewise.
4483 (remote_fileio_to_host_stat): Likewise.
4484 * remote.c (PACKET_vFile_fstat): New enum value.
4485 (remote_protocol_features): Register the "vFile:fstat" feature.
4486 (remote_hostio_fstat): New function.
4487 (remote_bfd_iovec_stat): Use the above.
4488 (_initialize_remote): Register new "set/show remote
4489 hostio-fstat-packet" command.
4490 * symfile.c (separate_debug_file_exists): Update comment.
4491 * NEWS: Announce new vFile:fstat packet.
4492
791c0056
GB
44932015-03-11 Gary Benson <gbenson@redhat.com>
4494
4495 * common/common-remote-fileio.h: New file.
4496 * common/common-remote-fileio.c: Likewise.
4497 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
4498 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
4499 (COMMON_OBS): Add common-remote-fileio.o.
4500 (common-remote-fileio.o): New rule.
4501 * remote-fileio.h (common-remote-fileio.h): New include.
4502 * remote-fileio.c (gdb/fileio.h): Do not include.
4503 (remote_fileio_to_be): Moved to common-remote-fileio.h.
4504 (remote_fileio_to_fio_uint): Likewise.
4505 (remote_fileio_to_fio_time): Likewise.
4506 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
4507 (remote_fileio_to_fio_mode): Likewise.
4508 (remote_fileio_to_fio_ulong): Likewise.
4509 (remote_fileio_to_fio_stat): Likewise.
4510
1390d0ef
AW
45112015-03-11 Andy Wingo <wingo@igalia.com>
4512
4513 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
4514 we were checking the cached type, not the cached dynamic type.
4515
84a4591a
AW
45162015-03-11 Andy Wingo <wingo@igalia.com>
4517
4518 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
4519 other strings, as these are on the GC'd heap, and will be
4520 collected along with the smob.
4521
85642ba0
AW
45222015-03-11 Andy Wingo <wingo@igalia.com>
4523
4524 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
4525 (objfile_functions): Bind gdbscm_objfile_progspace to
4526 objfile-progspace.
4527 * guile/lib/gdb.scm: Add objfile-progspace to exports.
4528
92fab5a6
AW
45292015-03-11 Andy Wingo <wingo@igalia.com>
4530
4531 * guile/guile.c (_initialize_guile): Disable automatic
4532 finalization, if Guile offers us that possibility.
4533 * guile/guile.c (call_initialize_gdb_module):
4534 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
4535 finalizers in appropriate places.
4536 * configure.ac (AC_TRY_LIBGUILE): Add a check for
4537 scm_set_automatic_finalization_enabled.
4538 * configure: Regenerated.
4539
f054145e
AA
45402015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
4541
4542 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
4543 SAL, if possible.
4544
18396193
AA
45452015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
4546
4547 * s390-linux-nat.c (struct arch_lwp_info): New.
4548 (s390_fix_watch_points): Rename to...
4549 (s390_prepare_to_resume): ...this. Skip the PER info update
4550 unless the watch points have changed.
4551 (s390_refresh_per_info, s390_new_thread): New functions.
4552 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
4553 s390_fix_watch_points.
4554 (s390_remove_watchpoint): Likewise.
4555 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
4556 Register s390_prepare_to_resume.
4557
9eb1356e
PA
45582015-03-09 Pedro Alves <palves@redhat.com>
4559
4560 Revert:
4561 2015-03-07 Pedro Alves <palves@redhat.com>
4562 * common/gdb_socket.h: New file.
4563 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
4564 sys/socket.h.
4565 (net_open): Use union gdb_sockaddr_u.
4566
aac331e4
PA
45672015-03-07 Pedro Alves <palves@redhat.com>
4568
4569 * configure.ac (build_warnings): Move -Wmissing-prototypes
4570 -Wdeclaration-after-statement -Wmissing-parameter-type
4571 -Wold-style-declaration -Wold-style-definition to the C-specific
4572 set.
4573 * configure: Regenerate.
4574
366c75fc
PA
45752015-03-07 Pedro Alves <palves@redhat.com>
4576
4577 * common/gdb_socket.h: New file.
4578 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
4579 sys/socket.h.
4580 (net_open): Use union gdb_sockaddr_u.
4581
72df25b2
PA
45822015-03-07 Pedro Alves <palves@redhat.com>
4583
4584 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
4585 (exceptions_state_mc_action_iter)
4586 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
4587 Don't define.
4588 [__cplusplus] (try_scope_depth): New global.
4589 [__cplusplus] (exception_try_scope_entry)
4590 (exception_try_scope_exit, gdb_exception_sliced_copy)
4591 (exception_rethrow): New functions.
4592 (throw_exception): In C++ mode, throw
4593 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
4594 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
4595 (throw_it): In C++ mode, use try_scope_depth.
4596 * common/common-exceptions.h [!__cplusplus]
4597 (exceptions_state_mc_action_iter)
4598 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
4599 Don't declare.
4600 [__cplusplus] (exception_try_scope_entry)
4601 (exception_try_scope_exit, exception_rethrow): Declare.
4602 [__cplusplus] (struct exception_try_scope): New struct.
4603 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
4604 C++ exceptions.
4605 (struct gdb_exception_RETURN_MASK_ALL)
4606 (struct gdb_exception_RETURN_MASK_ERROR)
4607 (struct gdb_exception_RETURN_MASK_QUIT): New types.
4608
284e6217
PA
46092015-03-07 Pedro Alves <palves@redhat.com>
4610
4611 * main.c (handle_command_errors): Remove volatile qualifier from
4612 parameter.
4613
6c63c96a
PA
46142015-03-07 Pedro Alves <palves@redhat.com>
4615
4616 * breakpoint.c (save_breakpoints): Adjust to avoid code between
4617 TRY and CATCH.
4618 * gdbtypes.c (safe_parse_type): Remove empty line.
4619 (types_deeply_equal):
4620 * guile/scm-frame.c (gdbscm_frame_name):
4621 * linux-thread-db.c (find_new_threads_once):
4622 * python/py-breakpoint.c (bppy_get_commands):
4623 * record-btrace.c (record_btrace_insert_breakpoint)
4624 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
4625 (record_btrace_start_replaying): Adjust to avoid code between TRY
4626 and CATCH.
4627
492d29ea
PA
46282015-03-07 Pedro Alves <palves@redhat.com>
4629
4630 * common/common-exceptions.c (struct catcher) <exception>: No
4631 longer a pointer to volatile exception. Now an exception value.
4632 <mask>: Delete field.
4633 (exceptions_state_mc_init): Remove all parameters. Adjust.
4634 (exceptions_state_mc): No longer pop the catcher here.
4635 (exceptions_state_mc_catch): New function.
4636 (throw_exception): Adjust.
4637 * common/common-exceptions.h (exceptions_state_mc_init): Remove
4638 all parameters.
4639 (exceptions_state_mc_catch): Declare.
4640 (TRY_CATCH): Rename to ...
4641 (TRY): ... this. Remove EXCEPTION and MASK parameters.
4642 (CATCH, END_CATCH): New.
4643 All callers adjusted.
4644
ece957c8
TT
46452015-03-07 Tom Tromey <tromey@redhat.com>
4646
4647 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
4648
7556d4a4
PA
46492015-03-07 Pedro Alves <palves@redhat.com>
4650
4651 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
4652 (amd64_epilogue_frame_cache): Normal exception handling code.
4653 * break-catch-throw.c (check_status_exception_catchpoint)
4654 (re_set_exception_catchpoint): Ditto.
4655 * cli/cli-interp.c (safe_execute_command):
4656 * cli/cli-script.c (script_from_file): Ditto.
4657 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
4658 Ditto.
4659 * compile/compile-object-run.c (compile_object_run): Ditto.
4660 * cp-abi.c (baseclass_offset): Ditto.
4661 * cp-valprint.c (cp_print_value): Ditto.
4662 * exceptions.c (catch_exceptions_with_msg):
4663 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
4664 * frame.c (get_frame_address_in_block_if_available): Ditto.
4665 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
4666 (i386_sigtramp_frame_cache): Ditto.
4667 * infcmd.c (post_create_inferior): Ditto.
4668 * linespec.c (parse_linespec, find_linespec_symbols):
4669 * p-valprint.c (pascal_object_print_value): Ditto.
4670 * parse.c (parse_expression_for_completion): Ditto.
4671 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4672 * remote.c (remote_get_noisy_reply): Ditto.
4673 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
4674 * solib-svr4.c (solib_svr4_r_map): Ditto.
4675
f873665f 46762015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
4677
4678 * common/common-utils.h (startswith): New inline function.
4679 All places where this logic was used updated to use the above.
4680
68901c4d
PA
46812015-03-05 Pedro Alves <palves@redhat.com>
4682
4683 PR gdb/18002
4684 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
4685 after reading the breakpoint's shadow memory.
4686
2dcb2b1a
MK
46872015-03-05 Mark Kettenis <kettenis@gnu.org>
4688
4689 * hppabsd-nat.c: Remove file.
4690 * hppaobsd-nat.c: New file.
4691 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
4692 hppaobsd-nat.c.
4693 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
4694 hppaobsd-nat.o.
4695
527a273a
PA
46962015-03-04 Pedro Alves <palves@redhat.com>
4697
4698 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
4699 (target_decr_pc_after_break): Delete declaration.
4700 * target.c (default_target_decr_pc_after_break)
4701 (target_decr_pc_after_break): Delete.
4702 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
4703 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
4704 * linux-thread-db.c (check_event): Likewise.
4705 * infrun.c (adjust_pc_after_break): Likewise.
4706 * darwin-nat.c (cancel_breakpoint): Likewise.
4707 * aix-thread.c (aix_thread_wait): Likewise.
4708 * target-delegates.c: Regenerate.
4709
faf09f01
PA
47102015-03-04 Pedro Alves <palves@redhat.com>
4711
4712 * linux-nat.c (save_sigtrap): Check for breakpoints before
4713 checking watchpoints.
4714 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
4715 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
4716 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
4717 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
4718 (linux_nat_stopped_by_sw_breakpoint)
4719 (linux_nat_supports_stopped_by_sw_breakpoint)
4720 (linux_nat_stopped_by_hw_breakpoint)
4721 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
4722 (linux_nat_wait_1): Don't re-increment the PC if relying on
4723 SIGTRAP's siginfo->si_code.
4724 (linux_nat_add_target): Install new target methods.
4725 * linux-thread-db.c (check_event): Don't account for breakpoint PC
4726 offset if the target already adjusted the PC.
4727 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
4728 (GDB_ARCH_TRAP_BRKPT): New.
4729 (TRAP_HWBKPT): Define if not already defined.
4730
f7e6eed5
PA
47312015-03-04 Pedro Alves <palves@redhat.com>
4732
4733 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
4734 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
4735 Delete field.
4736 <stop_reason>: New field.
4737 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
4738 (packet_set_cmd_state): New function.
4739 (remote_protocol_features): Register the "swbreak" and "hwbreak"
4740 features.
4741 (remote_query_supported): If not disabled with the corresponding
4742 "set remote foo-packet" command, report support for the swbreak
4743 and hwbreak features.
4744 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
4745 field.
4746 <stop_reason>: New field.
4747 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
4748 (remote_wait_as): Adjust.
4749 (remote_stopped_by_sw_breakpoint)
4750 (remote_supports_stopped_by_sw_breakpoint)
4751 (remote_stopped_by_hw_breakpoint)
4752 (remote_supports_stopped_by_hw_breakpoint): New functions.
4753 (remote_stopped_by_watchpoint): New function.
4754 (init_remote_ops): Install them.
4755 (_initialize_remote): Register new "set/show remote
4756 swbreak-feature-packet" and "set/show remote
4757 swbreak-feature-packet" commands.
4758
9e8915c6
PA
47592015-03-04 Pedro Alves <palves@redhat.com>
4760
4761 * btrace.h: Include target/waitstatus.h.
4762 (struct btrace_thread_info) <stop_reason>: New field.
4763 * record-btrace.c (record_btrace_step_thread): Use
4764 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
4765 (record_btrace_decr_pc_after_break): Delete.
4766 (record_btrace_stopped_by_sw_breakpoint)
4767 (record_btrace_supports_stopped_by_sw_breakpoint)
4768 (record_btrace_stopped_by_hw_breakpoint)
4769 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
4770 (init_record_btrace_ops): Install them.
4771 * record-full.c (record_full_hw_watchpoint): Delete and replace
4772 with ...
4773 (record_full_stop_reason): ... this throughout.
4774 (record_full_exec_insn): Adjust.
4775 (record_full_wait_1): Adjust. No longer re-increment the PC.
4776 (record_full_wait_1): Adjust. Use
4777 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
4778 (record_full_stopped_by_watchpoint): Adjust.
4779 (record_full_stopped_by_sw_breakpoint)
4780 (record_full_supports_stopped_by_sw_breakpoint)
4781 (record_full_supports_stopped_by_sw_breakpoint)
4782 (record_full_stopped_by_hw_breakpoint)
4783 (record_full_supports_stopped_by_hw_breakpoint): New functions.
4784 (init_record_full_ops, init_record_full_core_ops): Install them.
4785 * record.c (record_check_stopped_by_breakpoint): New function.
4786 * record.h: Include target/waitstatus.h.
4787 (record_check_stopped_by_breakpoint): New declaration.
4788
15c66dd6
PA
47892015-03-04 Pedro Alves <palves@redhat.com>
4790
4791 enum lwp_stop_reason -> enum target_stop_reason
4792 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
4793 (linux_nat_stopped_by_watchpoint, status_callback)
4794 (linux_nat_wait_1): Adjust.
4795 * linux-nat.h (enum lwp_stop_reason): Delete.
4796 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
4797 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
4798 * target/waitstatus.h (enum target_stop_reason): New.
4799
1cf4d951
PA
48002015-03-04 Pedro Alves <palves@redhat.com>
4801
4802 * breakpoint.c (need_moribund_for_location_type): New function.
4803 (bpstat_stop_status): Don't skipping checking moribund locations
4804 of breakpoint types which the target tell caused a stop.
4805 (program_breakpoint_here_p): New function, factored out from ...
4806 (bp_loc_is_permanent): ... this.
4807 (update_global_location_list): Don't create a moribund location if
4808 the target supports reporting stops of the type of the removed
4809 breakpoint.
4810 * breakpoint.h (program_breakpoint_here_p): New declaration.
4811 * infrun.c (adjust_pc_after_break): Return early if the target has
4812 already adjusted the PC. Add comments.
4813 (handle_signal_stop): If nothing explains a signal, and the target
4814 tells us the stop was caused by a software breakpoint, check if
4815 there's a breakpoint instruction in the memory. If so, adjust the
4816 PC before presenting the stop to the user. Otherwise, ignore the
4817 trap. If nothing explains a signal, and the target tells us the
4818 stop was caused by a hardware breakpoint, ignore the trap.
4819 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
4820 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
4821 to_supports_stopped_by_hw_breakpoint>: New fields.
4822 (target_stopped_by_sw_breakpoint)
4823 (target_supports_stopped_by_sw_breakpoint)
4824 (target_stopped_by_hw_breakpoint)
4825 (target_supports_stopped_by_hw_breakpoint): Define.
4826 * target-delegates.c: Regenerate.
4827
79639e11
PA
48282015-03-04 Pedro Alves <palves@redhat.com>
4829
4830 * infrun.c (follow_fork_inferior): Use the whole of the
4831 inferior_ptid and pending_follow.related_pid ptids instead of
4832 building ptids from the process components. Adjust verbose output
4833 to use target_pid_to_str.
4834 * linux-nat.c (linux_child_follow_fork): Use the whole of the
4835 inferior_ptid and pending_follow.related_pid ptids instead of
4836 building ptids from the process components.
4837
e85e8e5e
MK
48382015-03-04 Mark Kettenis <kettenis@gnu.org>
4839
4840 * inf-ptrace.c [PT_GET_PROCESS_STATE]
4841 (inf_ptrace_insert_fork_catchpoint): New function.
4842 (inf_ptrace_remove_fork_catchpoint): New function.
4843 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
4844
87de11c0
AA
48452015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
4846
4847 * s390-linux-tdep.c (s390_register_name): Return empty string
4848 instead of NULL for registers that shouldn't be visible.
4849
d851a69a
AA
48502015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
4851
4852 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
4853 XML file for 64-bit targets.
4854
b072f6c1
SM
48552015-03-03 Simon Marchi <simon.marchi@ericsson.com>
4856
4857 * target.h (find_default_create_inferior): Remove declaration.
4858 (find_default_attach): Likewise.
4859
c1593e4f
PA
48602015-03-03 Pedro Alves <palves@redhat.com>
4861
4862 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
4863 Use ptid_get_pid to get the overall process id when resuming all
4864 threads.
4865
90ad5e1d
PA
48662015-03-03 Pedro Alves <palves@redhat.com>
4867
4868 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
4869 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
4870 * inf-ptrace.c (get_ptrace_pid): New function.
4871 (inf_ptrace_resume): Use it.
4872 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
4873 to the lower layer.
4874
d68e53f4
MM
48752015-03-03 Markus Metzger <markus.t.metzger@intel.com>
4876
4877 * nat/linux-btrace.c: Include sys/utsname.h.
4878 (linux_determine_kernel_ptr_bits): New.
4879 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
4880 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
4881 ptr_bits.
4882
986b6601
MM
48832015-03-03 Markus Metzger <markus.t.metzger@intel.com>
4884
4885 * btrace.c (ftrace_update_function): Treat return as tailcall for
4886 "_dl_runtime_resolve".
4887
ce0dfbea
MM
48882015-03-03 Markus Metzger <markus.t.metzger@intel.com>
4889
4890 * btrace.h (btrace_function) <lbegin, lend>: Remove.
4891 * btrace.c (ftrace_debug): Do not print the line range.
4892 (ftrace_skip_file, ftrace_update_lines): Remove.
4893 (ftrace_new_function): Remove lbegin and lend initialization.
4894 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
4895 * record-btrace.c (btrace_compute_src_line_range): New.
4896 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
4897
95e50b27
PA
48982015-03-02 Pedro Alves <palves@redhat.com>
4899
4900 * infrun.c (follow_exec): Delete all threads of the process except
4901 the event thread. Extended comments.
4902
00e474c2
JB
49032015-03-02 Joel Brobecker <brobecker@adacore.com>
4904
4905 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
4906
cc7039d3
JB
49072015-03-02 Joel Brobecker <brobecker@adacore.com>
4908
4909 * utils.h: Remove <stdbool.h> #include.
4910 (producer_is_gcc): Change return type to "int".
4911 * utils.c (producer_is_gcc): Change return type to int.
4912 Return 1 instead of true, and 0 instead of false.
4913 Adjust function documentation accordingly.
4914
550bdf96
AA
49152015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
4916
4917 * s390-linux-nat.c (have_regset_vxrs): New static variable.
4918 (s390_linux_fetch_inferior_registers): Handle vector registers, if
4919 present.
4920 (s390_linux_store_inferior_registers): Likewise.
4921 (s390_get_hwcap): Remove function. Embed its logic...
4922 (s390_read_description): ...here. Yield a target description with
4923 vector registers if applicable.
4924 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
4925 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
4926 "features/s390x-tevx-linux64.c".
4927 (struct gdbarch_tdep) <v0_full_regnum>: New field.
4928 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
4929 for "GNU/Linux-specific registers".
4930 (s390_dwarf_reg_r0l): New enum value.
4931 (s390_dwarf_reg_to_regnum): Support vector registers.
4932 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
4933 of GPR lower halves.
4934 (regnum_is_vxr_full): New function.
4935 (s390_register_name): New function.
4936 (s390_pseudo_register_name): Handle v0-v15, which are composed of
4937 f0-f15 and v0l-v15l.
4938 (s390_pseudo_register_type): Likewise.
4939 (s390_pseudo_register_read): Likewise.
4940 (s390_pseudo_register_write): Likewise.
4941 (s390_value_from_register): Account for the fact that values are
4942 placed left-justified in vector registers.
4943 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
4944 the vector reggroup and omit them from the general reggroup.
4945 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
4946 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
4947 (s390_iterate_over_regset_sections): Add iterations for the two
4948 new vector regsets.
4949 (s390_core_read_description): Yield a target description with
4950 vector registers if applicable.
4951 (s390_gdbarch_init): Handle target descriptions with vector
4952 registers. Add "register_name" gdbarch method.
4953 (_initialize_s390_tdep): Call new tdesc initialization functions.
4954 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
4955 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
4956 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
4957 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
4958 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
4959 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
4960 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
4961 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
4962 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
4963 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
4964 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
4965 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
4966 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
4967 (S390_NUM_REGS): Adjust value.
4968 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
4969 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
4970 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
4971 * NEWS: Announce S/390 vector register support.
4972
446899e4
AA
49732015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
4974
4975 * features/s390-tevx-linux64.xml: New file.
4976 * features/s390-vx-linux64.xml: New file.
4977 * features/s390-vx.xml: New file.
4978 * features/s390x-tevx-linux64.xml: New file.
4979 * features/s390x-vx-linux64.xml: New file.
4980 * features/Makefile (WHICH): Add s390-vx-linux64,
4981 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
4982 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
4983 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
4984 macros.
4985 * features/s390-tevx-linux64.c: New generated file.
4986 * features/s390-vx-linux64.c: Likewise.
4987 * features/s390x-tevx-linux64.c: Likewise.
4988 * features/s390x-vx-linux64.c: Likewise.
4989 * regformats/s390-tevx-linux64.dat: Likewise.
4990 * regformats/s390-vx-linux64.dat: Likewise.
4991 * regformats/s390x-tevx-linux64.dat: Likewise.
4992 * regformats/s390x-vx-linux64.dat: Likewise.
4993
b7236fbe
DE
49942015-02-28 Doug Evans <xdje42@gmail.com>
4995
4996 * symtab.h (struct symtab) <next>: Fix comment.
4997
02e62830
SM
49982015-02-27 Simon Marchi <simon.marchi@ericsson.com>
4999
5000 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
5001 python_GdbMethods.
5002
bf36a1e7
PA
50032015-02-27 Pedro Alves <palves@redhat.com>
5004
5005 * dtrace-probe.c (dtrace_probe_ops): Make extern.
5006
ad6aff7d
PA
50072015-02-27 Pedro Alves <palves@redhat.com>
5008
5009 * common/common-exceptions.h (exception_none): Declare.
5010 * common/common-exceptions.c (exception_none): Moved from
5011 exceptions.c.
5012 (exceptions_state_mc_init): Use exception_none.
5013 * exceptions.c (exception_none): Move to
5014 common/common-exceptions.c.
5015 * exceptions.h (exception_none): Move to
5016 common/common-exceptions.h.
5017
97c18565
PA
50182015-02-27 Pedro Alves <palves@redhat.com>
5019
5020 * main.c (catch_command_errors, catch_command_errors_const):
5021 Remove 'mask' argument. Adjust.
5022 (captured_main): Adjust callers.
5023
e992c591
PA
50242015-02-27 Pedro Alves <palves@redhat.com>
5025
5026 * python/python-internal.h: Include "extension-priv.h".
5027
64166036
PA
50282015-02-27 Pedro Alves <palves@redhat.com>
5029
5030 * breakpoint.h (enum print_stop_action): Move further up in the
5031 file.
5032
8a526fa6
PA
50332015-02-27 Pedro Alves <palves@redhat.com>
5034
5035 * gdbarch.sh: Include regcache.h.
5036 * gdbarch.h: Regenerate.
5037
0fa9c223
PA
50382015-02-27 Pedro Alves <palves@redhat.com>
5039
5040 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
5041 Remove duplicate const.
5042 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
5043 duplicate const.
5044
7cf99fb1
PA
50452015-02-27 Pedro Alves <palves@redhat.com>
5046
5047 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
5048 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
5049 * features/feature_to_c.sh: Tag the generated xml_builtin array
5050 with extern const in C++ mode.
5051
1424c16e
TT
50522015-02-27 Tom Tromey <tromey@redhat.com>
5053
5054 * minidebug.c (struct lzma_stream): Rename to ...
5055 (struct gdb_lzma_stream): ... this.
5056 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
5057
10367c7c
PA
50582015-02-27 Pedro Alves <palves@redhat.com>
5059
5060 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
5061 function.
5062 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5063 (mi_cmd_stack_list_variables): Use it.
5064
4180215b
PA
50652015-02-27 Pedro Alves <palves@redhat.com>
5066
5067 * x86-linux-nat.c (u_debugreg_offset): New function.
5068 (x86_linux_dr_get, x86_linux_dr_set): Use it.
5069
2f56f7c3
PA
50702015-02-27 Pedro Alves <palves@redhat.com>
5071
5072 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
5073 declaration.
5074 Include break-common.h.
5075
570dc176
TT
50762015-02-27 Tom Tromey <tromey@redhat.com>
5077 Pedro Alves <palves@redhat.com>
5078
5079 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
5080 local used to iterate over enums.
5081 * completer.c (signal_completer): Likewise.
5082 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
5083 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5084 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
5085 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
5086 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
5087 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
5088 * tui-wingeneral.c (tui_refresh_all): Likewise.
5089
68c14faa
PA
50902015-02-27 Pedro Alves <palves@redhat.com>
5091
5092 * target.h: Include "infrun.h".
5093
749bab01
PA
50942015-02-27 Pedro Alves <palves@redhat.com>
5095
5096 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
5097
3c14e5a3
PA
50982015-02-27 Pedro Alves <palves@redhat.com>
5099
5100 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
5101 (IPA_SYM): Use it.
5102 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
5103
56000a98
PA
51042015-02-27 Pedro Alves <palves@redhat.com>
5105
5106 * cli-out.c (_rl_erase_entire_line): Move declaration out of
5107 cli_mld_erase_entire_line, and make it extern "C".
5108 * common/common-defs.h (EXTERN_C): New.
5109 * completer.c (_rl_completion_prefix_display_length)
5110 (_rl_print_completions_horizontally, QSFUNC): Move declarations
5111 out of gdb_display_match_list_1.
5112 (_rl_qsort_string_compare): Move declaration out of
5113 gdb_display_match_list_1, and make it extern "C".
5114 * defs.h (re_comp): Use EXTERN_C.
5115 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
5116 and make it extern "C".
5117 (monstartup): Move declaration out of maintenance_set_profile_cmd,
5118 and make it extern "C".
5119 (main): Move declaration out of maintenance_set_profile_cmd.
5120 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
5121 EXTERN_C.
5122
bcabf420
PA
51232015-02-27 Pedro Alves <palves@redhat.com>
5124
5125 * python/python.c (GdbMethods): Rename to ...
5126 (python_GdbMethods): ... this and make extern.
5127 (GdbModuleDef): Rename to ...
5128 (python_GdbModuleDef): ... this and make extern.
5129
928dbe07
PA
51302015-02-27 Pedro Alves <palves@redhat.com>
5131
5132 * record-btrace.c (set_record_btrace_cmdlist)
5133 (show_record_btrace_cmdlist): Remove redefinitions.
5134
52059ffd
TT
51352015-02-27 Tom Tromey <tromey@redhat.com>
5136 Pedro Alves <palves@redhat.com>
5137
5138 * dwarf2-frame.c (enum cfa_how_kind, struct
5139 dwarf2_frame_state_reg_info): Move out of struct
5140 dwarf2_frame_state.
5141 * dwarf2read.c (struct tu_stats): Move out of struct
5142 dwarf2_per_objfile.
5143 (struct file_entry): Move out of struct line_header.
5144 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
5145 typedef_field_list): Move out of struct field_info.
5146 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
5147 Move out of struct dynamic_prop.
5148 (union type_owner, union field_location, struct field, struct
5149 range_bounds, union type_specific): Move out of struct main_type.
5150 (struct fn_fieldlist, struct fn_field, struct typedef_field)
5151 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
5152 (struct call_site_target, union call_site_parameter_u, struct
5153 call_site_parameter): Move out of struct call_site.
5154 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
5155 m32c_prologue.
5156 (enum srcdest_kind): Move out of struct srcdest.
5157 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
5158 * prologue-value.h (enum prologue_value_kind): Move out of struct
5159 prologue_value.
5160 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
5161 gdbarch_tdep.
5162 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
5163 out of struct field_info.
5164 * symfile.h (struct other_sections): Move out of struct
5165 section_addr_info.
5166 * symtab.c (struct symbol_cache_slot): Move out struct
5167 block_symbol_cache.
5168 * target-descriptions.c (enum tdesc_type_kind): Move out of
5169 typedef struct tdesc_type.
5170 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
5171 struct tui_line_or_address.
5172 * value.c (enum internalvar_kind, union internalvar_data): Move
5173 out of struct internalvar.
5174 * xtensa-tdep.h (struct ctype_cache): Move out of struct
5175 gdbarch_tdep.
5176
fe978cb0
PA
51772015-02-27 Tom Tromey <tromey@redhat.com>
5178 Pedro Alves <palves@redhat.com>
5179
5180 Rename symbols whose names are reserved C++ keywords throughout.
5181
3bc3d82a
PA
51822015-02-27 Pedro Alves <palves@redhat.com>
5183
5184 * Makefile.in (COMPILER): New, get it from autoconf.
5185 (COMPILE.pre, CC_LD): Use COMPILER.
5186 (CXX): Get from autoconf instead.
5187 (CXX_FOR_TARGET): Default to g++ instead of gcc.
5188 * acinclude.m4: Include build-with-cxx.m4.
5189 * build-with-cxx.m4: New file.
5190 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
5191 Disable -Werror by default if building in C++ mode.
5192 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
5193 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
5194 Run supported-warning-flags tests with the C++ compiler.
5195 Save/restore CXXFLAGS too.
5196 * configure: Regenerate.
5197
07697489
PA
51982015-02-27 Pedro Alves <palves@redhat.com>
5199
5200 * libiberty.m4: New file.
5201 * acinclude.m4: Include libiberty.m4.
5202 * configure.ac: Call libiberty_INIT.
5203 * config.in, configure: Regenerate.
5204
60abeae4
AA
52052015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5206
5207 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
5208 31-bit targets, but 64-bit targets as well.
5209 (s390_gnu_triplet_regexp): New function.
5210 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
5211 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
5212 method.
5213
f44466fb 52142015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
5215
5216 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
5217 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
5218 from CONTEXT_DEBUGGER.
5219
0def5aaa
DE
52202015-02-26 Doug Evans <dje@google.com>
5221
5222 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
5223 CHECK_TYPEDEF.
5224 (set_type_vptr_fieldno): Ditto.
5225 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
5226 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
5227
77b64a49
PA
52282015-02-26 Pedro Alves <palves@redhat.com>
5229
5230 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
5231 * complaints.c (vcomplaint): Pass argument FMT directly to
5232 printf-like functions instead of complaint->fmt.
5233 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
5234 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
5235 * compile/compile-loc2c.c (pushf, unary, binary): Add
5236 ATTRIBUTE_PRINTF.
5237 (do_compile_dwarf_expr_to_c): Pass string literal as format string
5238 to pushf.
5239 (BINARY): Pass string literal as format string to 'binary'.
5240 * compile/compile-object-load.c (link_callbacks_einfo): Add
5241 ATTRIBUTE_PRINTF.
5242 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
5243
532f44ed
PA
52442015-02-26 Pedro Alves <palves@redhat.com>
5245
5246 * windows-termcap.c: Rename to ...
5247 * stub-termcap.c: ... this. Adjust header line.
5248 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
5249 windows-termcap.c.
5250 * configure: Regenerate.
5251 * configure.ac: Refer to stub-termcap.o instead of
5252 windows-termcap.o.
5253 * gdb_curses.h: Mention stub-termcap.c instead of
5254 windows-termcap.c.
5255
081a1c2c
JK
52562015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5257
5258 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
5259 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
5260
2f41223f
AT
52612015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
5262
5263 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
5264
80c57053
JK
52652015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5266
5267 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
5268 bfd_canonicalize_symtab.
5269
cf424aef
JB
52702015-02-25 John Baldwin <jhb@FreeBSD.org>
5271
5272 * amd64fbsd-nat.c: Include sys/user.h.
5273 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
5274 instead of KERN_PS_STRINGS to locate the signal trampoline.
5275 * i386fbsd-nat.c: Include sys/user.h.
5276 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
5277 instead of KERN_PS_STRINGS to locate the signal trampoline.
5278 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
5279 (amd64fbsd_sigtramp_p): New.
5280 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
5281 longer set default values.
5282 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
5283 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
5284 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
5285 (i386fbsd_freebsd4_sigtramp_start)
5286 (i386fbsd_freebsd4_sigtramp_middle)
5287 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
5288 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
5289 (i386fbsd_sigtramp_p): New.
5290 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
5291 longer set default values.
5292 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
5293
c5cb74ee
JB
52942015-02-25 John Baldwin <jhb@freebsd.org>
5295
5296 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
5297 get_frame_register instead of frame_unwind_register_unsigned.
5298
17487d85
JK
52992015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5300
5301 PR build/18033
5302 * compile/compile-c-support.c (c_compute_program): Change // comment.
5303 * compile/compile-object-load.c (setup_sections): Change // comment.
5304
9357a9e6
JB
53052015-02-26 Joel Brobecker <brobecker@adacore.com>
5306
5307 PR build/18033:
5308 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
5309
1f10ba14
PA
53102015-02-23 Pedro Alves <palves@redhat.com>
5311
5312 * remote.c (skip_to_semicolon): New function.
5313 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
5314 special case the stop reasons that look like hex numbers
5315 upfront. Instead handle real register numbers after matching
5316 all the known stop reasons.
5317
96553a0c
DE
53182015-02-21 Doug Evans <dje@google.com>
5319
5320 PR c++/17976, symtab/17821
5321 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
5322 is_in_anonymous. All callers updated.
5323 (find_symbol_in_baseclass): Ditto.
5324 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
5325 for symbols in an anonymous namespace.
5326 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
5327 DW_AT_name directly.
5328 (dwarf2_name): Convert missing namespace name to
5329 CP_ANONYMOUS_NAMESPACE_STR.
5330
2db9a427
PA
53312015-02-20 Pedro Alves <palves@redhat.com>
5332
5333 * linux-nat.c (linux_handle_extended_wait): Call
5334 thread_db_notice_clone whenever a new clone LWP is detected.
5335 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
5336 functions.
5337 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
5338 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
5339 (linux_unstop_all_lwps): Declare.
5340 * linux-thread-db.c (struct thread_get_info_inout): Delete.
5341 (thread_get_info_callback): Delete.
5342 (thread_from_lwp): Use td_thr_get_info and record_thread.
5343 (thread_db_attach_lwp): Delete.
5344 (thread_db_notice_clone): New function.
5345 (try_thread_db_load_1): If /proc is mounted and shows the
5346 process'es task list, walk over all LWPs and call thread_from_lwp
5347 instead of relying on td_ta_thr_iter.
5348 (attach_thread): Don't call check_thread_signals here. Split the
5349 tail part of the function (which adds the thread to the core GDB
5350 thread list) to ...
5351 (record_thread): ... this function. Call check_thread_signals
5352 here.
5353 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
5354 call thread_from_lwp.
5355 (thread_db_update_thread_list): Rename to ...
5356 (thread_db_update_thread_list_org): ... this.
5357 (thread_db_update_thread_list): New function.
5358 (thread_db_find_thread_from_tid): Delete.
5359 (thread_db_get_ada_task_ptid): Simplify.
5360 * nat/linux-procfs.c: Include <sys/stat.h>.
5361 (linux_proc_task_list_dir_exists): New function.
5362 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
5363
3b27ef47
PA
53642015-02-20 Pedro Alves <palves@redhat.com>
5365
5366 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
5367 main LWP. Handle the case of waitpid returning 0 if we're already
5368 attached to the LWP. Don't set the LWP's last_resume_kind to
5369 resume_stop if we already knew about the LWP.
5370 (linux_nat_filter_event): Add debug logs.
5371
1cc28231
PA
53722015-02-20 Pedro Alves <palves@redhat.com>
5373
5374 * target.h (forward_target_decr_pc_after_break): Delete
5375 declaration.
5376
5c5019c2
PA
53772015-02-20 Pedro Alves <palves@redhat.com>
5378
5379 PR threads/18006
5380 * linux-thread-db.c (thread_get_info_callback): Return early if
5381 the thread's lwp id is -1.
5382
f3978e91
JB
53832015-02-20 Joel Brobecker <brobecker@adacore.com>
5384
5385 GDB 7.9 released.
5386
ffdf88ec
SE
53872015-02-19 Steve Ellcey <sellcey@imgtec.com>
5388
5389 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
5390 (dtrace_get_probes) Change type of variable 'dof'.
5391
c9587f88
AT
53922015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
5393
5394 PR breakpoints/16812
5395 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
5396 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
5397 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
5398
53cf2ee0
DT
53992015-02-19 David Taylor <dtaylor@emc.com>
5400
5401 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
5402
acfe0940
PP
54032015-02-18 Patrick Palka <patrick@parcs.ath.cx>
5404
5405 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
5406 function.
5407 (tui_putc): Don't call tui_handle_resize_during_io.
5408 (tui_getc): Likewise.
5409 (tui_mld_getc): Likewise.
5410 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
5411 (tui_sigwinch_token): New static variable.
5412 (tui_initialize_win): Adjust documentation. Set
5413 tui_sigwinch_token.
5414 (tui_async_resize_screen): New asynchronous callback.
5415 (tui_sigwinch_handler): Adjust documentation. Asynchronously
5416 invoke tui_async_resize_screen.
5417
f6a88844
JM
54182015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
5419
5420 * configure: Regenerated.
5421 * configure.ac: Use GDB_AC_TRANSFORM.
5422 * Makefile.in (aclocal_m4_deps): Added transform.m4.
5423 * acinclude.m4: sinclude transform.m4.
5424 * transform.m4: New file.
5425 (GDB_AC_TRANSFORM): New macro.
5426
b05e3b0d
JM
54272015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5428
5429 * NEWS: Announce the support for DTrace SDT probes.
5430
c3e3045e
JM
54312015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5432
5433 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
5434 (amd64_dtrace_parse_probe_argument): New function.
5435 (amd64_dtrace_probe_is_enabled): Likewise.
5436 (amd64_dtrace_enable_probe): Likewise.
5437 (amd64_dtrace_disable_probe): Likewise.
5438 (amd64_linux_init_abi): Register the
5439 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
5440 `gdbarch_dtrace_disable_probe' and
5441 `gdbarch_dtrace_probe_is_enabled' hooks.
5442 (amd64_dtrace_disabled_probe_sequence_1): New constant.
5443 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
5444 (amd64_dtrace_enable_probe_sequence): Likewise.
5445 (amd64_dtrace_disable_probe_sequence): Likewise.
5446
d4777acb
JM
54472015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5448
5449 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
5450 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
5451 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
5452 handle ELF files.
5453 * Makefile.in (SFILES): dtrace-probe.c added.
5454 * configure: Regenerate.
5455 * dtrace-probe.c: New file.
5456 (SHT_SUNW_dof): New constant.
5457 (dtrace_probe_type): New enum.
5458 (dtrace_probe_arg): New struct.
5459 (dtrace_probe_arg_s): New typedef.
5460 (struct dtrace_probe_enabler): New struct.
5461 (dtrace_probe_enabler_s): New typedef.
5462 (dtrace_probe): New struct.
5463 (dtrace_probe_is_linespec): New function.
5464 (dtrace_dof_sect_type): New enum.
5465 (dtrace_dof_dofh_ident): Likewise.
5466 (dtrace_dof_encoding): Likewise.
5467 (DTRACE_DOF_ENCODE_LSB): Likewise.
5468 (DTRACE_DOF_ENCODE_MSB): Likewise.
5469 (dtrace_dof_hdr): New struct.
5470 (dtrace_dof_sect): Likewise.
5471 (dtrace_dof_provider): Likewise.
5472 (dtrace_dof_probe): Likewise.
5473 (DOF_UINT): New macro.
5474 (DTRACE_DOF_PTR): Likewise.
5475 (DTRACE_DOF_SECT): Likewise.
5476 (dtrace_process_dof_probe): New function.
5477 (dtrace_process_dof): Likewise.
5478 (dtrace_build_arg_exprs): Likewise.
5479 (dtrace_get_arg): Likewise.
5480 (dtrace_get_probes): Likewise.
5481 (dtrace_get_probe_argument_count): Likewise.
5482 (dtrace_can_evaluate_probe_arguments): Likewise.
5483 (dtrace_evaluate_probe_argument): Likewise.
5484 (dtrace_compile_to_ax): Likewise.
5485 (dtrace_probe_destroy): Likewise.
5486 (dtrace_gen_info_probes_table_header): Likewise.
5487 (dtrace_gen_info_probes_table_values): Likewise.
5488 (dtrace_probe_is_enabled): Likewise.
5489 (dtrace_probe_ops): New variable.
5490 (info_probes_dtrace_command): New function.
5491 (_initialize_dtrace_probe): Likewise.
5492 (dtrace_type_name): Likewise.
5493
8b367e17
JM
54942015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5495
5496 * gdbarch.sh (dtrace_parse_probe_argument): New.
5497 (dtrace_probe_is_enabled): Likewise.
5498 (dtrace_enable_probe): Likewise.
5499 (dtrace_disable_probe): Likewise.
5500 * gdbarch.c: Regenerate.
5501 * gdbarch.h: Regenerate.
5502
9aca2ff8
JM
55032015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5504
5505 * stap-probe.c (stap_probe_ops): Add NULLs in the static
5506 stap_probe_ops for `enable_probe' and `disable_probe'.
5507 * probe.c (enable_probes_command): New function.
5508 (disable_probes_command): Likewise.
5509 (_initialize_probe): Define the cli commands `enable probe' and
5510 `disable probe'.
5511 (parse_probe_linespec): New function.
5512 (info_probes_for_ops): Use parse_probe_linespec.
5513 * probe.h (probe_ops): New hooks `enable_probe' and
5514 `disable_probe'.
5515
03e98035
JM
55162015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5517
5518 * probe.c (compute_probe_arg): Moved from stap-probe.c
5519 (compile_probe_arg): Likewise.
5520 (probe_funcs): Likewise.
5521 * stap-probe.c (compute_probe_arg): Moved to probe.c.
5522 (compile_probe_arg): Likewise.
5523 (probe_funcs): Likewise.
5524
6f9b8491
JM
55252015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
5526
5527 * probe.c (print_ui_out_not_applicables): New function.
5528 (exists_probe_with_pops): Likewise.
5529 (info_probes_for_ops): Do not include column headers for probe
5530 types for which no probe has been actually found on any object.
5531 Also invoke `print_ui_out_not_applicables' in order to match the
5532 column rows with the header when probes of several types are
5533 listed.
5534 Print the "Type" column.
5535 * probe.h (probe_ops): Added a new probe operation `type_name'.
5536 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
5537 (stap_type_name): New function.
5538
69efdff1
PP
55392015-02-17 Patrick Palka <patrick@parcs.ath.cx>
5540
5541 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
5542 (key_is_command_char): Delete.
5543
f8e5e23e
PA
55442015-02-17 Pedro Alves <palves@redhat.com>
5545
5546 * tui/tui.c (tui_enable): Resize windows before anything
5547 might show a window.
5548
9f2e0721
MO
55492015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
5550
5551 PR gdb/17984
5552 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
5553 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
5554 call.
5555 * aarch64-tdep.h (tdesc_aarch64): Declare.
5556
171e6b1c
MW
55572015-02-12 Mark Wielaard <mjw@redhat.com>
5558
5559 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
5560
d5ff0482
DE
55612015-02-13 Doug Evans <dje@google.com>
5562
5563 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
5564 anonymous_namespace to is_in_anonymous for consistency with the rest
5565 of the file.
5566 (cp_lookup_bare_symbol): Fix typo in comment.
5567 (cp_search_static_and_baseclasses): Ditto.
5568 (search_symbol_list): Use vertical space in comment better.
5569 (reset_directive_searched): Ditto. Fix typo.
5570 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
5571
9f04ac5f
YQ
55722015-02-13 Yao Qi <yao.qi@arm.com>
5573
5574 * MAINTAINERS: Update my email address.
5575
013d0319
DE
55762015-02-12 Doug Evans <dje@google.com>
5577
b615dd20 5578 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 5579
9a7e538e
DE
55802015-02-12 Doug Evans <dje@google.com>
5581
5582 * completer.c (complete_line): Remove incorrect comment.
5583
e1fcd575
JK
55842015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5585
5586 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
5587 (py_print_frame): Use RETURN_MASK_ERROR.
5588
b99bf4e3
JK
55892015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5590
5591 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
5592 function comment. Wrap all function that can throw in cleanups.
5593 (gdbpy_apply_frame_filter): Wrap all function that can throw in
5594 cleanups.
5595
800eb1ce
JK
55962015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5597
5598 * python/py-framefilter.c (py_print_frame): Substitute goto error.
5599 Remove the error label.
5600
34019068
JK
56012015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5602
5603 * python/py-framefilter.c (py_print_frame): Put conditional code paths
5604 with goto first, indent the former else codepath left. Put variable
5605 'elided' to a new inner block.
5606
8d4a54e2
JK
56072015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5608
5609 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
5610
18ad82c1
PA
56112015-02-11 Pedro Alves <palves@redhat.com>
5612
5613 * xcoffread.c (within_function): Delete.
5614
e36122e9
TT
56152015-02-11 Tom Tromey <tromey@redhat.com>
5616 Pedro Alves <palves@redhat.com>
5617
5618 * breakpoint.c (base_breakpoint_ops): Delete.
5619 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
5620 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
5621 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
5622 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
5623 * python/py-arch.c (arch_object_type): Make extern.
5624 * python/py-block.c (block_syms_iterator_object_type): Make extern.
5625 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
5626 * python/py-cmd.c (cmdpy_object_type): Make extern.
5627 * python/py-continueevent.c (continue_event_object_type)
5628 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
5629 parameter. Update all callers.
5630 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
5631 * python/py-exitedevent.c (exited_event_object_type): Make extern.
5632 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
5633 * python/py-function.c (fnpy_object_type): Make extern.
5634 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
5635 * python/py-infevents.c (call_pre_event_object_type)
5636 (inferior_call_post_event_object_type).
5637 (memory_changed_event_object_type): Make extern.
5638 * python/py-infthread.c (thread_object_type): Make extern.
5639 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
5640 * python/py-linetable.c (linetable_entry_object_type)
5641 (linetable_object_type, ltpy_iterator_object_type): Make extern.
5642 * python/py-newobjfileevent.c (new_objfile_event_object_type)
5643 (clear_objfiles_event_object_type): Make extern.
5644 * python/py-objfile.c (objfile_object_type): Make extern.
5645 * python/py-param.c (parmpy_object_type): Make extern.
5646 * python/py-progspace.c (pspace_object_type): Make extern.
5647 * python/py-signalevent.c (signal_event_object_type): Make extern.
5648 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
5649 * python/py-type.c (type_object_type, field_object_type)
5650 (type_iterator_object_type): Make extern.
5651 * python/python.c (python_extension_script_ops)
5652 (python_extension_ops): Make extern.
5653 * stap-probe.c (stap_probe_ops): Make extern.
5654
0703599a
PA
56552015-02-11 Pedro Alves <pedro@codesourcery.com>
5656
5657 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
5658 because the event thread is not the current thread.
5659
eaaf76ab
DE
56602015-02-11 Doug Evans <xdje42@gmail.com>
5661
5662 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
5663 been initialized yet, return NULL.
5664
e7d52ed3
DE
56652015-02-11 Doug Evans <dje@google.com>
5666
5667 * symfile.h (new_symfile_objfile): Delete.
5668 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
5669 All callers updated.
5670
fc6b1256
PP
56712015-02-11 Patrick Palka <patrick@parcs.ath.cx>
5672
5673 * tui/tui-io.c (tui_handle_resize_during_io): Call
5674 tui_update_gdb_sizes() after resizing the screen.
5675 * tui/tui.c (tui_enable): Resize the terminal before
5676 calling tui_update_gdb_sizes().
5677
d9080678
PP
56782015-02-11 Patrick Palka <patrick@parcs.ath.cx>
5679
5680 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
5681 line before printing a newline.
5682
9f615e3a
MW
56832015-02-11 Mark Wielaard <mjw@redhat.com>
5684
5685 * utils.c (producer_is_gcc): Return true or false.
5686
d9080678 56872015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
5688
5689 * utils.h (producer_is_gcc): Change return type to bool. Add major
5690 argument.
5691 * utils.c (producer_is_gcc): Likewise.
5692 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
5693 * dwarf2read.c (check_producer): Likewise.
5694
b052c4fb
PA
56952015-02-10 Pedro Alves <palves@redhat.com>
5696
5697 * infrun.c (displaced_step_fixup): Switch to the event thread
5698 before calling gdbarch_displaced_step_fixup.
5699
3ac240d4
AT
57002015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
5701
5702 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
5703
c1cc6152
SM
57042015-02-10 Simon Marchi <simon.marchi@ericsson.com>
5705
5706 * ada-varobj.c (ada_name_of_child): Constify parent.
5707 (ada_path_expr_of_child): Same.
5708 (ada_value_of_child): Same.
5709 (ada_type_of_child): Same.
5710 * c-varobj.c (c_is_path_expr_parent): Same.
5711 (c_describe_child): Same.
5712 (c_name_of_child): Same.
5713 (c_value_of_child): Same.
5714 (c_type_of_child): Same.
5715 (cplus_number_of_children): Same.
5716 (cplus_describe_child): Constify var.
5717 (cplus_name_of_child): Constify parent.
5718 (cplus_value_of_child): Same.
5719 (cplus_type_of_child): Same.
5720 * jv-varobj.c (java_name_of_child): Same.
5721 (java_value_of_child): Same.
5722 (java_type_of_child): Same.
5723 * varobj.c (value_of_child): Same.
5724 (varobj_default_is_path_expr_parent): Constify var, parent and return
5725 value.
5726 (varobj_get_path_expr): Constify var, modify path_expr through
5727 mutable_var.
5728 (install_new_value): Constify parent.
5729 (value_of_child): Constify parent.
5730 * varobj.h (struct varobj): Constify parent.
5731 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
5732 type_of_child.
5733 (varobj_get_path_expr): Constify var.
5734 (varobj_get_path_expr_parent): Constify var and return value.
5735
c1ee9414
LM
57362015-02-10 Luis Machado <lgustavo@codesourcery.com>
5737
5738 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
5739 (arm_prologue_this_id): Move PC and SP limit checks to
5740 arm_prologue_unwind_stop_reason.
5741 (arm_prologue_unwind) <stop_reason> : Set to
5742 arm_prologue_unwind_stop_reason.
5743
f7de9aab
MW
57442015-02-09 Mark Wielaard <mjw@redhat.com>
5745
5746 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
5747 DW_LANG_Fortran08 as language_fortran.
5748
0b24eb2d
SDJ
57492015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
5750
5751 PR remote/17946
5752 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
5753 of pointer against char.
5754
a2c2acaf
MW
57552015-02-09 Mark Wielaard <mjw@redhat.com>
5756
5757 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
5758 (c_type_print_modifier): Likewise.
5759 * dwarf2read.c (read_tag_atomic_type): New function.
5760 (read_type_die_1): Handle DW_TAG_atomic_type.
5761 * gdbtypes.c (make_atomic_type): New function.
5762 (recursive_dump_type): Handle TYPE_ATOMIC.
5763 * gdbtypes.h (enum type_flag_values): Renumber.
5764 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
5765 (TYPE_ATOMIC): New macro.
5766 (make_atomic_type): Declare.
5767
31fd9caa
MM
57682015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5769
5770 * btrace.c (ftrace_find_call): Skip gaps.
5771 (ftrace_new_function): Initialize level.
5772 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
5773 (ftrace_new_switch): Update
5774 level computation.
5775 (ftrace_new_gap): New.
5776 (ftrace_update_function): Create new function after gap.
5777 (btrace_compute_ftrace_bts): Create gap on error.
5778 (btrace_stitch_bts): Update parameters. Clear trace if it
5779 becomes empty.
5780 (btrace_stitch_trace): Update parameters. Update callers.
5781 (btrace_clear): Reset the number of gaps.
5782 (btrace_insn_get): Return NULL if the iterator points to a gap.
5783 (btrace_insn_number): Return zero if the iterator points to a gap.
5784 (btrace_insn_end): Allow gaps at the end.
5785 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
5786 (btrace_find_insn_by_number): Assert that the found iterator does
5787 not point to a gap.
5788 (btrace_call_next, btrace_call_prev): Assert that the last function
5789 is not a gap.
5790 * btrace.h (btrace_bts_error): New.
5791 (btrace_function): Update comment.
5792 (btrace_function) <insn, insn_offset, number>: Update comment.
5793 (btrace_function) <errcode>: New.
5794 (btrace_thread_info) <ngaps>: New.
5795 (btrace_thread_info) <replay>: Update comment.
5796 (btrace_insn_get): Update comment.
5797 * record-btrace.c (btrace_ui_out_decode_error): New.
5798 (record_btrace_info): Print number of gaps.
5799 (btrace_insn_history, btrace_call_history): Call
5800 btrace_ui_out_decode_error for gaps.
5801 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
5802
afb778a2
MM
58032015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5804
5805 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
5806 * nat/linux-btrace.c: (btrace_this_cpu): New.
5807 (cpu_supports_bts): Call btrace_this_cpu.
5808 (intel_supports_bts): Add cpu parameter.
5809
7d5c24b3
MM
58102015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5811
5812 * btrace.h (btrace_insn_class): New.
5813 (btrace_insn) <size, iclass>: New.
5814 * btrace.c (ftrace_find_call): Update parameters. Update users.
5815 Use instruction classification.
5816 (ftrace_new_return): Update parameters. Update users.
5817 (ftrace_update_function): Update parameters. Update users. Use
5818 instruction classification.
5819 (ftrace_update_insns): Update parameters. Update users.
5820 (ftrace_classify_insn): New.
5821 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
5822 TRY_CATCH around call to gdb_insn_length.
5823
76235df1
MM
58242015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5825
5826 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
5827 Update parameters. Update users.
5828
d33501a5
MM
58292015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5830
5831 * btrace.c (parse_xml_btrace_conf_bts): Add size.
5832 (btrace_conf_bts_attributes): New.
5833 (btrace_conf_children): Add attributes.
5834 * common/btrace-common.h (btrace_config_bts): New.
5835 (btrace_config)<bts>: New.
5836 (btrace_config): Update comment.
5837 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
5838 Use config.
5839 * features/btrace-conf.dtd: Increment version. Add size
5840 attribute to bts element.
5841 * record-btrace.c (set_record_btrace_bts_cmdlist,
5842 show_record_btrace_bts_cmdlist): New.
5843 (record_btrace_adjust_size, record_btrace_print_bts_conf,
5844 record_btrace_print_conf, cmd_set_record_btrace_bts,
5845 cmd_show_record_btrace_bts): New.
5846 (record_btrace_info): Call record_btrace_print_conf.
5847 (_initialize_record_btrace): Add commands.
5848 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
5849 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
5850 (btrace_sync_conf): Synchronize bts size.
5851 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
5852 * NEWS: Announce new commands and new packets.
5853
f4abbc16
MM
58542015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5855
5856 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
5857 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
5858 (x86_linux_btrace_conf): New.
5859 (x86_linux_create_target): Initialize to_btrace_conf.
5860 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
5861 Check format. Split into this and ...
5862 (linux_enable_bts): ... this.
5863 (linux_btrace_conf): New.
5864 (perf_event_skip_record): Renamed into ...
5865 (perf_event_skip_bts_record): ... this. Updated users.
5866 (linux_disable_btrace): Split into this and ...
5867 (linux_disable_bts): ... this.
5868 (linux_read_btrace): Check format.
5869 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
5870 (linux_btrace_conf): New.
5871 (btrace_target_info)<ptid>: Moved.
5872 (btrace_target_info)<conf>: New.
5873 (btrace_target_info): Split into this and ...
5874 (btrace_tinfo_bts): ... this. Updated users.
5875 * btrace.c (btrace_enable): Update parameters.
5876 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
5877 (btrace_conf_children, btrace_conf_attributes)
5878 (btrace_conf_elements): New.
5879 * btrace.h (btrace_enable): Update parameters.
5880 (btrace_conf, parse_xml_btrace_conf): New.
5881 * common/btrace-common.h (btrace_config): New.
5882 * feature/btrace-conf.dtd: New.
5883 * record-btrace.c (record_btrace_conf): New.
5884 (record_btrace_cmdlist): New.
5885 (record_btrace_enable_warn, record_btrace_open): Pass
5886 &record_btrace_conf.
5887 (record_btrace_info): Print recording format.
5888 (cmd_record_btrace_bts_start): New.
5889 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
5890 (_initialize_record_btrace): Add "record btrace bts" subcommand.
5891 Add "record bts" alias command.
5892 * remote.c (remote_state)<btrace_config>: New.
5893 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
5894 (remote_protocol_features): Add qXfer:btrace-conf:read.
5895 (remote_open_1): Call remote_btrace_reset.
5896 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
5897 (btrace_target_info)<conf>: New.
5898 (btrace_sync_conf, btrace_read_config): New.
5899 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
5900 btrace_read_conf.
5901 (remote_btrace_conf): New.
5902 (init_remote_ops): Initialize to_btrace_conf.
5903 (_initialize_remote): Add qXfer:btrace-conf packet.
5904 * target.c (target_enable_btrace): Update parameters.
5905 (target_btrace_conf): New.
5906 * target.h (target_enable_btrace): Update parameters.
5907 (target_btrace_conf): New.
5908 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
5909 (target_ops)<to_enable_btrace>: Update parameters and comment.
5910 (target_ops)<to_btrace_conf>: New.
5911 * target-delegates: Regenerate.
5912 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
5913 (target_debug_print_const_struct_btrace_target_info_p): New.
5914 * NEWS: Announce new command and new packet.
5915
aadf7753
MM
59162015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5917
5918 * nat/linux-btrace.h (perf_event_buffer): New.
5919 (btrace_target_info) <buffer, size, data_head>: Replace with ...
5920 <bts>: ... this.
5921 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
5922 (perf_event_buffer_size, perf_event_buffer_begin)
5923 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
5924 Updated users.
5925 (perf_event_new_data): New.
5926
043c3577
MM
59272015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5928
5929 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
5930 * record-btrace.c (record_btrace_open): Remove call to
5931 target_supports_btrace.
5932 * remote.c (remote_supports_btrace): Update parameters.
5933 * target.c (target_supports_btrace): Update parameters.
5934 * target.h (to_supports_btrace, target_supports_btrace): Update
5935 parameters.
5936 * target-delegates.c: Regenerate.
5937 * target-debug.h (target_debug_print_enum_btrace_format): New.
5938 * nat/linux-btrace.c
5939 (kernel_supports_btrace): Rename into ...
5940 (kernel_supports_bts): ... this. Update users. Update warning text.
5941 (intel_supports_btrace): Rename into ...
5942 (intel_supports_bts): ... this. Update users.
5943 (cpu_supports_btrace): Rename into ...
5944 (cpu_supports_bts): ... this. Update users.
5945 (linux_supports_btrace): Update parameters. Split into this and ...
5946 (linux_supports_bts): ... this.
5947 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
5948
734b0e4b
MM
59492015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5950
5951 * Makefile.in (SFILES): Add common/btrace-common.c.
5952 (COMMON_OBS): Add common/btrace-common.o.
5953 (btrace-common.o): Add build rules.
5954 * btrace.c (parse_xml_btrace): Update parameters.
5955 (parse_xml_btrace_block): Set format field.
5956 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
5957 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
5958 (btrace_compute_ftrace): Split into this and...
5959 (btrace_compute_ftrace_bts): ...this.
5960 (btrace_stitch_trace): Split into this and...
5961 (btrace_stitch_bts): ...this.
5962 * btrace.h (parse_xml_btrace): Update parameters.
5963 (make_cleanup_btrace_data): New.
5964 * common/btrace-common.c: New.
5965 * common/btrace-common.h: Include common-defs.h.
5966 (btrace_block_s): Update comment.
5967 (btrace_format): New.
5968 (btrace_format_string): New.
5969 (btrace_data_bts): New.
5970 (btrace_data): New.
5971 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
5972 * remote.c (remote_read_btrace): Update parameters.
5973 * target.c (target_read_btrace): Update parameters.
5974 * target.h (target_read_btrace): Update parameters.
5975 (target_ops)<to_read_btrace>: Update parameters.
5976 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
5977 * target-delegates.c: Regenerate.
5978 * target-debug (target_debug_print_struct_btrace_data_p): New.
5979 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
5980 (linux_read_bts): ...this.
5981 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
5982
bd2e0e9e
DE
59832015-02-06 Doug Evans <dje@google.com>
5984
5985 * remote-m32r-sdi.c: Include symfile.h.
5986
f176c4b5
DE
59872015-02-06 Doug Evans <dje@google.com>
5988
5989 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
5990 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
5991 to here.
5992
d6c146e9
PA
59932015-02-06 Pedro Alves <palves@redhat.com>
5994
5995 * linux-thread-db.c (find_new_threads_callback): Add debug output.
5996
b9d61307
SM
59972015-02-06 Simon Marchi <simon.marchi@ericsson.com>
5998
5999 PR gdb/15678
6000 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
6001 (enable_count_command): Check args for NULL value.
6002
e9fbd043
DE
60032015-02-05 Doug Evans <xdje42@gmail.com>
6004
6005 * guile/scm-frame.c: Fix spelling errors in a comment.
6006
881d5d5d
JK
60072015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6008
6009 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
6010 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
6011 return type.
6012
20ba1ce6
PA
60132015-02-04 Pedro Alves <palves@redhat.com>
6014
6015 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
6016 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
6017 returns true.
6018 (resume_stopped_resumed_lwps): Don't check whether the thread is
6019 marked as executing.
6020 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
6021
f962539a
AA
60222015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6023
6024 * regset.h (struct regset): Add flags field.
6025 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
6026 * corelow.c (get_core_register_section): Add warning if the size
6027 exceeds the requested size and the regset does not have the
6028 REGSET_VARIABLE_SIZE flag set.
6029 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
6030 flag.
6031 * armbsd-tdep.c (armbsd_gregset): Likewise.
6032 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6033 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
6034 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
6035 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
6036
dde9acd6
AA
60372015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6038
6039 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
6040 For ".reg-xstate", explicitly specify the requested section size
6041 via X86_XSTATE_SIZE instead of just 0 on input and
6042 X86_XSTATE_MAX_SIZE on output.
6043 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
6044 Likewise.
6045
1528345d
AA
60462015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6047
6048 PR corefiles/17808:
6049 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
6050 function type, particularly its SIZE parameter.
6051 * gdbarch.h: Regenerate.
6052 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
6053 actual against required size using ">=" instead of "==".
6054 (amd64_collect_fpregset): Likewise.
6055 * i386-tdep.c (i386_supply_gregset): Likewise.
6056 (i386_collect_gregset): Likewise.
6057 (i386_supply_fpregset): Likewise.
6058 (i386_collect_fpregset): Likewise.
6059 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
6060 (mips_fill_gregset_wrapper): Likewise.
6061 (mips_supply_fpregset_wrapper): Likewise.
6062 (mips_fill_fpregset_wrapper): Likewise.
6063 (mips64_supply_gregset_wrapper): Likewise.
6064 (mips64_fill_gregset_wrapper): Likewise.
6065 (mips64_supply_fpregset_wrapper): Likewise.
6066 (mips64_fill_fpregset_wrapper): Likewise.
6067 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
6068 (am33_supply_fpregset_method): Likewise.
6069 (am33_collect_gregset_method): Likewise.
6070 (am33_collect_fpregset_method): Likewise.
6071
518be979
DE
60722015-02-04 Doug Evans <dje@google.com>
6073 Pedro Alves <palves@redhat.com>
6074 Eli Zaretskii <eliz@gnu.org>
6075
6076 PR tui/17810
6077 * tui/tui-command.c (tui_refresh_cmd_win): New function.
6078 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
6079 * tui/tui-file.c: #include tui/tui-command.h.
6080 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
6081 (tui_file_flush): Refresh command window if stream is gdb_stdout.
6082 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
6083
80bd5fab
PA
60842015-02-04 Pedro Alves <palves@redhat.com>
6085
6086 Fix build breakage.
6087 * event-loop.c (gdb_do_one_event): Add default switch case.
6088
a7606d80
JK
60892015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6090
6091 Filter out inferior gcc option -fpreprocessed.
6092 * compile/compile.c (filter_args): New function.
6093 (get_args): Use it.
6094
70b66289
PA
60952015-02-03 Pedro Alves <palves@redhat.com>
6096
6097 * event-loop.c: Don't declare nor define a queue type for
6098 gdb_event_p.
6099 (event_queue): Delete.
6100 (create_event, create_file_event, gdb_event_xfree)
6101 (initialize_event_loop, process_event): Delete.
6102 (gdb_do_one_event): Return as soon as one event is handled.
6103 (handle_file_event): Change prototype. Used the passed in
6104 file_handler pointer and ready_mask instead of looping over all
6105 file handlers.
6106 (gdb_wait_for_event): Update the poll/select timeouts before
6107 blocking. Run event handlers directly instead of queueing events.
6108 Return as soon as one event is handled.
6109 (struct async_event_handler_data): Delete.
6110 (invoke_async_event_handler): Delete.
6111 (check_async_event_handlers): Change return type to int. Run
6112 event handlers directly instead of queueing events. Return as
6113 soon as one event is handled.
6114 (handle_timer_event): Delete.
6115 (update_wait_timeout): New function, factored out from
6116 poll_timers.
6117 (poll_timers): Reimplement.
6118 * event-loop.h (initialize_event_loop): Delete declaration.
6119 * top.c (gdb_init): Don't call initialize_event_loop.
6120
b7d2e916
PA
61212015-02-03 Pedro Alves <palves@redhat.com>
6122
6123 * event-loop.c (clear_async_event_handler): New function.
6124 * event-loop.h (clear_async_event_handler): New declaration.
6125 * record-btrace.c (record_btrace_async): New function.
6126 (init_record_btrace_ops): Install record_btrace_async.
6127 * record-full.c (record_full_async): New function.
6128 (record_full_resume): Don't mark the async event source here.
6129 (init_record_full_ops): Install record_full_async.
6130 (record_full_core_resume): Don't mark the async event source here.
6131 (init_record_full_core_ops): Install record_full_async.
6132 * remote.c (remote_async): Mark and clear the async stop reply
6133 queue event-loop token as appropriate.
6134
d9d41e78
PA
61352015-02-03 Pedro Alves <palves@redhat.com>
6136
6137 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
6138 target_is_async_p instead of target_can_async.
6139 (linux_nat_wait): Use target_is_async_p instead of
6140 target_can_async. Don't enable async here.
6141 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
6142 target_is_async_p instead of target_can_async.
6143
aa3de267
SM
61442015-02-02 Simon Marchi <simon.marchi@ericsson.com>
6145
6146 * varobj.h (lang_varobj_ops): Mention which return values need
6147 to be freed.
6148
2c811c0f
JB
61492015-02-02 Joel Brobecker <brobecker@adacore.com>
6150
6151 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
6152
b1eedac9
JB
61532015-02-02 Joel Brobecker <brobecker@adacore.com>
6154
6155 PR gdb/17856:
6156 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
6157 results found in the cache.
6158
66c168ae
JB
61592015-02-02 Joel Brobecker <brobecker@adacore.com>
6160
6161 PR gdb/17854:
6162 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
6163 when allocating a new one.
6164
4bdc02b2
TT
61652015-02-01 Tom Tromey <tom@tromey.com>
6166
6167 * MAINTAINERS: Remove myself.
6168
ae6ae975
DE
61692015-01-31 Doug Evans <xdje42@gmail.com>
6170
6171 * dwarf2read.c (process_structure_scope): Update setting of
6172 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
6173 * gdbtypes.c (internal_type_vptr_fieldno): New function.
6174 (set_type_vptr_fieldno): New function.
6175 (internal_type_vptr_basetype): New function.
6176 (set_type_vptr_basetype): New function.
6177 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
6178 TYPE_VPTR_BASETYPE.
6179 (allocate_cplus_struct_type): Initialize vptr_fieldno.
6180 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
6181 (print_cplus_stuff): ... moved here.
6182 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
6183 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
6184 moved to ...
6185 (struct cplus_struct_type): ... here. All uses updated.
6186 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
6187 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
6188 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
6189 * stabsread.c (read_tilde_fields): Update setting of
6190 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
6191
09e2d7c7
DE
61922015-01-31 Doug Evans <xdje42@gmail.com>
6193
6194 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
6195 to self_p.
6196 (cp_print_class_member): Rename local domain to self_type.
6197 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
6198 domain_type to self_type.
6199 (set_die_type) <need_gnat_info>: Handle
6200 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
6201 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
6202 TYPE_SPECIFIC_SELF_TYPE.
6203 * gdbtypes.c (internal_type_self_type): New function.
6204 (set_type_self_type): New function.
6205 (smash_to_memberptr_type): Rename parameter domain to self_type.
6206 Update setting of TYPE_SELF_TYPE.
6207 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
6208 (smash_to_method_type): Rename parameter domain to self_type.
6209 Update setting of TYPE_SELF_TYPE.
6210 (check_stub_method): Call smash_to_method_type.
6211 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
6212 (copy_type_recursive): Ditto.
6213 * gdbtypes.h (enum type_specific_kind): New value
6214 TYPE_SPECIFIC_SELF_TYPE.
6215 (struct main_type) <type_specific>: New member self_type.
6216 (struct cplus_struct_type) <fn_field.type>: Update comment.
6217 (TYPE_SELF_TYPE): Rewrite.
6218 (internal_type_self_type, set_type_self_type): Declare.
6219 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
6220 self_type.
6221 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
6222 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
6223 TYPE_TARGET_TYPE.
6224 * stabsread.c (read_member_functions): Mark methods with
6225 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
6226 TYPE_SELF_TYPE.
6227
4bfb94b8
DE
62282015-01-31 Doug Evans <xdje42@gmail.com>
6229
6230 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
6231 All uses updated.
6232
5f4ce105
DE
62332015-01-31 Doug Evans <xdje42@gmail.com>
6234
6235 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
6236 or unions. Return zero if union.
6237 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
6238 (gnuv3_rtti_type): Pass already-check_typedef'd value to
6239 gnuv3_get_vtable.
6240 (compute_vtable_size): Assert only passed structs.
6241 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
6242
f6b3afbf
DE
62432015-01-31 Doug Evans <xdje42@gmail.com>
6244
6245 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
6246 kinds.
6247
cfb069a8
GB
62482015-01-31 Gary Benson <gbenson@redhat.com>
6249 Doug Evans <dje@google.com>
6250
6251 PR cli/9007
6252 PR cli/11920
6253 PR cli/15548
6254 * cli/cli-cmds.c (complete_command): Notify user if max-completions
6255 reached.
6256 * common/common-exceptions.h (enum errors)
6257 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
6258 * completer.h (get_max_completions_reached_message): New declaration.
6259 (max_completions): Likewise.
6260 (completion_tracker_t): New typedef.
6261 (new_completion_tracker): New declaration.
6262 (make_cleanup_free_completion_tracker): Likewise.
6263 (maybe_add_completion_enum): New enum.
6264 (maybe_add_completion): New declaration.
6265 (throw_max_completions_reached_error): Likewise.
6266 * completer.c (max_completions): New global variable.
6267 (new_completion_tracker): New function.
6268 (free_completion_tracker): Likewise.
6269 (make_cleanup_free_completion_tracker): Likewise.
6270 (maybe_add_completions): Likewise.
6271 (throw_max_completions_reached_error): Likewise.
6272 (complete_line): Remove duplicates and limit result to max_completions
6273 entries.
6274 (get_max_completions_reached_message): New function.
6275 (gdb_display_match_list): Handle max_completions.
6276 (_initialize_completer): New declaration and function.
6277 * symtab.c: Include completer.h.
6278 (completion_tracker): New static variable.
6279 (completion_list_add_name): Call maybe_add_completion.
6280 (default_make_symbol_completion_list_break_on_1): Renamed from
6281 default_make_symbol_completion_list_break_on. Maintain
6282 completion_tracker across calls to completion_list_add_name.
6283 (default_make_symbol_completion_list_break_on): New function.
6284 * top.c (init_main): Set rl_completion_display_matches_hook.
6285 * tui/tui-io.c: Include completer.h.
6286 (tui_old_rl_display_matches_hook): New static global.
6287 (tui_rl_display_match_list): Notify user if max-completions reached.
6288 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
6289 * NEWS (New Options): Mention set/show max-completions.
6290
e11c72c7
GB
62912015-01-31 Gary Benson <gbenson@redhat.com>
6292
6293 * symtab.c (struct add_name_data) <code>: New field.
6294 Updated comments.
6295 (add_symtab_completions): New function.
6296 (symtab_expansion_callback): Likewise.
6297 (default_make_symbol_completion_list_break_on): Set datum.code.
6298 Move minimal symbol scan before calling expand_symtabs_matching.
6299 Scan known primary symtabs for externs and statics before calling
6300 expand_symtabs_matching. Pass symtab_expansion_callback as
6301 expansion_notify argument to expand_symtabs_matching. Do not scan
6302 primary symtabs for externs and statics after calling
6303 expand_symtabs_matching.
6304
276d885b
GB
63052015-01-31 Gary Benson <gbenson@redhat.com>
6306
6307 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
6308 (struct quick_symbol_functions) <expand_symtabs_matching>:
6309 New argument expansion_notify. All uses updated.
6310 (expand_symtabs_matching): New argument expansion_notify.
6311 All uses updated.
6312 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6313 Also print expansion notify.
6314 * symtab.c (expand_symtabs_matching_via_partial): Call
6315 expansion_notify whenever a partial symbol table is expanded.
6316 * dwarf2read.c (dw2_expand_symtabs_matching): Call
6317 expansion_notify whenever a symbol table is instantiated.
6318
82083d6d
DE
63192015-01-31 Doug Evans <xdje42@gmail.com>
6320
6321 * cli-out.c: #include completer.h, readline/readline.h.
6322 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
6323 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
6324 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
6325 * cli-out.h (cli_display_match_list): Declare.
6326 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
6327 (ELLIPSIS_LEN): Ditto.
6328 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
6329 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
6330 (gdb_fnprint, gdb_print_filename): Ditto.
6331 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
6332 (gdb_display_match_list): Ditto.
6333 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
6334 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
6335 (mld_beep_ftype, mld_read_key_ftype): Ditto.
6336 (match_list_displayer): New struct.
6337 (gdb_display_match_list): Declare.
6338 * top.c (init_main): Set rl_completion_display_matches_hook.
6339 * tui/tui-io.c: #include completer.h.
6340 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
6341 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
6342 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
6343 (tui_mld_getc, tui_mld_read_key): Ditto.
6344 (tui_rl_display_match_list): Rewrite.
6345 (tui_handle_resize_during_io): New arg for_completion. All callers
6346 updated.
6347
f57d2163
DE
63482015-01-31 Doug Evans <xdje42@gmail.com>
6349
6350 Add symbol lookup cache.
6351 * NEWS: Document new options and commands.
6352 * symtab.c (symbol_cache_key): New static global.
6353 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
6354 (SYMBOL_LOOKUP_FAILED): New macro.
6355 (symbol_cache_slot_state): New enum.
6356 (block_symbol_cache): New struct.
6357 (symbol_cache): New struct.
6358 (new_symbol_cache_size, symbol_cache_size): New static globals.
6359 (hash_symbol_entry, eq_symbol_entry): New functions.
6360 (symbol_cache_byte_size, resize_symbol_cache): New functions.
6361 (make_symbol_cache, free_symbol_cache): New functions.
6362 (get_symbol_cache, symbol_cache_cleanup): New function.
6363 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
6364 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
6365 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
6366 (symbol_cache_flush, symbol_cache_dump): New functions.
6367 (maintenance_print_symbol_cache): New function.
6368 (maintenance_flush_symbol_cache): New function.
6369 (symbol_cache_stats): New function.
6370 (maintenance_print_symbol_cache_statistics): New function.
6371 (symtab_new_objfile_observer): New function.
6372 (symtab_free_objfile_observer): New function.
6373 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
6374 (_initialize_symtab): Init symbol_cache_key. New parameter
6375 maint symbol-cache-size. New maint commands print symbol-cache,
6376 print symbol-cache-statistics, flush-symbol-cache.
6377 Install new_objfile, free_objfile observers.
6378
e700d1b2
JB
63792015-01-31 Joel Brobecker <brobecker@adacore.com>
6380
6381 PR symtab/17855
6382 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
6383 to end.
6384
9f050062
DE
63852015-01-31 Doug Evans <xdje42@gmail.com>
6386
6387 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
6388 * auto-load.c: #include ctype.h.
6389 (struct auto_load_pspace_info): Replace member loaded_scripts with
6390 new members loaded_script_files, loaded_script_texts.
6391 (auto_load_pspace_data_cleanup): Update.
6392 (init_loaded_scripts_info): Update.
6393 (get_auto_load_pspace_data_for_loading): Update.
6394 (maybe_add_script_file): Renamed from maybe_add_script. All callers
6395 updated.
6396 (maybe_add_script_text): New function.
6397 (clear_section_scripts): Update.
6398 (source_script_file, execute_script_contents): New functions.
6399 (source_section_scripts): Add support for
6400 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
6401 (print_scripts): New function.
6402 (auto_load_info_scripts): Also print inlined scripts.
6403 (maybe_print_unsupported_script_warning): Renamed from
6404 unsupported_script_warning_print. All callers updated.
6405 (maybe_print_script_not_found_warning): Renamed from
6406 script_not_found_warning_print. All callers updated.
6407 * extension-priv.h (struct extension_language_script_ops): New member
6408 objfile_script_executor.
6409 * extension.c (ext_lang_objfile_script_executor): New function.
6410 * extension.h (objfile_script_executor_func): New typedef.
6411 (ext_lang_objfile_script_executor): Declare.
6412 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
6413 * guile/guile.c (guile_extension_script_ops): Update.
6414 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
6415 * python/python.c (python_extension_script_ops): Update.
6416 (gdbpy_execute_objfile_script): New function.
6417
312809f8
EZ
64182015-01-31 Eli Zaretskii <eliz@gnu.org>
6419
6420 * tui/tui-io.c (tui_expand_tabs): New function.
6421 (tui_puts, tui_redisplay_readline): Expand TABs into the
6422 appropriate number of spaces.
6423 * tui/tui-regs.c: Include tui-io.h.
6424 (tui_register_format): Call tui_expand_tabs to expand TABs into
6425 the appropriate number of spaces.
6426 * tui/tui-io.h: Add prototype for tui_expand_tabs.
6427
b6577aab
DE
64282015-01-30 Doug Evans <dje@google.com>
6429
6430 * NEWS: "info source" command now display producer string if present.
6431 * source.c (source_info): Print producer string if present.
6432
6da58d3e
SM
64332015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6434
6435 * varobj.c (varobj_delete): Fix comment.
6436
837ce252
SM
64372015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6438
6439 * varobj.c (create_child): Modify comment.
6440
b09e2c59
SM
64412015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6442
6443 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
6444 parameter.
6445 (ada_name_of_variable): Same.
6446 (ada_path_expr_of_child): Same.
6447 (ada_value_of_variable): Same.
6448 (ada_value_is_changeable_p): Same.
6449 (ada_value_has_mutated): Same.
6450 * c-varobj.c (varobj_is_anonymous_child): Same.
6451 (c_is_path_expr_parent): Same.
6452 (c_number_of_children): Same.
6453 (c_name_of_variable): Same.
6454 (c_path_expr_of_child): Same.
6455 (get_type): Same.
6456 (c_value_of_variable): Same.
6457 (cplus_number_of_children): Same.
6458 (cplus_name_of_variable): Same.
6459 (cplus_path_expr_of_child): Same.
6460 (cplus_value_of_variable): Same.
6461 * jv-varobj.c (java_number_of_children): Same.
6462 (java_name_of_variable): Same.
6463 (java_path_expr_of_child): Same.
6464 (java_value_of_variable): Same.
6465 * varobj.c (number_of_children): Same.
6466 (name_of_variable): Same.
6467 (is_root_p): Same.
6468 (varobj_ensure_python_env): Same.
6469 (varobj_get_objname): Same.
6470 (varobj_get_expression): Same.
6471 (varobj_get_display_format): Same.
6472 (varobj_get_display_hint): Same.
6473 (varobj_has_more): Same.
6474 (varobj_get_thread_id): Same.
6475 (varobj_get_frozen): Same.
6476 (dynamic_varobj_has_child_method): Same.
6477 (varobj_get_gdb_type): Same.
6478 (is_path_expr_parent): Same.
6479 (varobj_default_is_path_expr_parent): Same.
6480 (varobj_get_language): Same.
6481 (varobj_get_attributes): Same.
6482 (varobj_is_dynamic_p): Same.
6483 (varobj_get_child_range): Same.
6484 (varobj_value_has_mutated): Same.
6485 (varobj_get_value_type): Same.
6486 (number_of_children): Same.
6487 (name_of_variable): Same.
6488 (check_scope): Same.
6489 (varobj_editable_p): Same.
6490 (varobj_value_is_changeable_p): Same.
6491 (varobj_floating_p): Same.
6492 (varobj_default_value_is_changeable_p): Same.
6493
2568868e
SM
64942015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6495
6496 * varobj.c (varobj_get_path_expr): Set var->path_expr.
6497 * c-varobj.c (c_path_expr_of_child): Set local var instead of
6498 child->path_expr.
6499 (cplus_path_expr_of_child): Same.
6500
ca83fa81
SM
65012015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6502
6503 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
6504 result.
6505 (mi_cmd_var_info_expression): Same.
6506 * varobj.c (varobj_get_expression): Mention in the comment that
6507 the result must by freed by the caller.
6508
afa269ae
SM
65092015-01-30 Simon Marchi <simon.marchi@ericsson.com>
6510
6511 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
6512 varobj_get_type.
6513 (varobj_update_one): Same.
6514 * varobj.c (update_type_if_necessary): Free curr_type_str and
6515 new_type_str.
6516 (varobj_get_type): Specify in comment that the result needs to be
6517 freed by the caller.
6518
cd366ee8
DE
65192015-01-29 Doug Evans <dje@google.com>
6520
6521 PR symtab/17890
6522 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
6523
38360086
MW
65242015-01-25 Mark Wielaard <mjw@redhat.com>
6525
6526 * dwarf2read.c (checkproducer): Call producer_is_gcc.
6527 * utils.c (producer_is_gcc_ge_4): Likewise.
6528 (producer_is_gcc): New function.
6529 * utils.h (producer_is_gcc): New declaration.
6530
df25ebbd
JB
65312015-01-29 Joel Brobecker <brobecker@adacore.com>
6532
6533 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
6534 kind.
6535 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
6536 parameter by "addr_stack" parameter.
6537 (resolve_dynamic_range): Replace "addr" parameter by
6538 "stack_addr" parameter. Update function documentation.
6539 Update code accordingly.
6540 (resolve_dynamic_array, resolve_dynamic_union)
6541 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
6542 (resolve_dynamic_type): Update code, following the changes made
6543 to resolve_dynamic_type_internal's interface.
6544 * dwarf2loc.h (struct property_addr_info): New.
6545 (dwarf2_evaluate_property): Replace "address" parameter
6546 by "addr_stack" parameter. Adjust function documentation.
6547 (struct dwarf2_offset_baton): New.
6548 (struct dwarf2_property_baton): Update documentation of
6549 field "referenced_type" to be more general. New field
6550 "offset_info" in union data field.
6551 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
6552 parameter by "addr_stack" parameter. Adjust code accordingly.
6553 Add support for PROP_ADDR_OFFSET properties.
6554 * dwarf2read.c (attr_to_dynamic_prop): Add support for
6555 DW_AT_data_member_location attributes as well. Use case
6556 statements instead of if/else condition.
6557
4a0ca9ec
JB
65582015-01-29 Joel Brobecker <brobecker@adacore.com>
6559
6560 * ada-varobj.c (ada_varobj_get_array_number_of_children):
6561 Return zero if PARENT_VALUE is NULL and parent_type's
6562 range type is dynamic.
6563
ddb87a81
JB
65642015-01-29 Joel Brobecker <brobecker@adacore.com>
6565
6566 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
6567 nonzero if the type's subtype is dynamic.
6568 (resolve_dynamic_range): Also resolve the range's subtype.
6569
3d7ad9b4 65702015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 6571
3d7ad9b4 6572 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
6573 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
6574
3a8b707a
DE
65752015-01-27 Doug Evans <dje@google.com>
6576
6577 * NEWS: Mention gdb.Objfile.username.
6578 * python/py-objfile.c (objfpy_get_username): New function.
6579 (objfile_getset): Add "username".
6580
d35b90fb
MW
65812015-01-24 Mark Wielaard <mjw@redhat.com>
6582
6583 * stack.c (return_command): Markup warning message with _.
6584
734ae125
DE
65852015-01-24 Doug Evans <xdje42@gmail.com>
6586
6587 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
6588
527f3840
JK
65892015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6590
6591 Fix 100x slowdown regression on DWZ files.
6592 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
6593 (struct line_header): Add offset and offset_in_dwz.
6594 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
6595 (free_line_header_voidp): New declaration.
6596 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
6597 functions.
6598 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
6599 (handle_DW_AT_stmt_list): Use line_header_hash.
6600 (free_line_header_voidp): New function.
6601 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
6602 (dwarf_decode_lines): New parameter decode_mapping, use it.
6603 (dwarf2_free_objfile): Free line_header_hash.
6604
f7e5394d
SM
66052015-01-23 Simon Marchi <simon.marchi@ericsson.com>
6606
6607 PR gdb/17416
6608 * valops.c (value_rtti_indirect_type): Catch exception thrown by
6609 value_ind.
6610
743649fd
MW
66112015-01-15 Mark Wielaard <mjw@redhat.com>
6612
6613 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
6614 DW_AT_noreturn.
6615 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
6616 calling_convention an 8 bit bit field.
6617 (TYPE_NO_RETURN): New macro.
6618 * infcmd.c (finish_command): Query if function does not return
6619 normally.
6620 * stack.c (return_command): Likewise.
6621
198297aa
PA
66222015-01-23 Pedro Alves <palves@redhat.com>
6623
6624 * linux-nat.c (linux_is_async_p): New macro.
6625 (linux_nat_is_async_p):
6626 (linux_nat_terminal_inferior): Check whether the target can async
6627 instead of whether it is already async.
6628 (linux_nat_terminal_ours): Don't check whether the target is
6629 async.
6630 (linux_async_pipe): Use linux_is_async_p.
6631
253828f1
JK
66322015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6633
6634 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
6635 '-ascending'.
6636 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
6637 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
6638 Sort tp_array using tp_array_compar.
6639 (_initialize_thread): Extend thread_apply_all_command help.
6640
f0e8c4c5
JK
66412015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6642
6643 * corelow.c (core_open): Call also thread_command.
6644 * gdbthread.h (thread_command): New prototype moved from ...
6645 * thread.c (thread_command): ... here.
6646 (thread_command): Make it global.
6647
03b79603
PA
66482015-01-22 Pedro Alves <palves@redhat.com>
6649
6650 * configure.ac [*mingw32*]: Check $curses_found instead of
6651 $prefer_curses.
6652 * configure: Regenerate.
6653 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
6654 HAVE_NCURSES_NCURSES_H checks.
6655
6b8a872f
EZ
66562015-01-22 Eli Zaretskii <eliz@gnu.org>
6657
bbbbffbb 6658 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
6659 fails with the 1st arg NULL, try again with "unknown". Don't test
6660 the "cup" capability: it isn't supported by the Windows port of
6661 ncurses, but the Windows console driver is still capable of
6662 supporting TUI.
6663
4b62a76e
JK
66642015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6665
6666 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
6667
82a864f9
EZ
66682015-01-22 Eli Zaretskii <eliz@gnu.org>
6669
6670 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
6671 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
6672 reason that "make TAGS" is broken.
6673
b35018fd
CG
66742015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
6675
6676 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
6677 and check additional store instructions.
6678
ffbc4646
WW
66792015-01-21 Wei-cheng Wang <cole945@gmail.com>
6680
6681 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
6682
ddeca1df
WW
66832015-01-21 Wei-cheng Wang <cole945@gmail.com>
6684
6685 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
6686 ppc_canonicalize_syscall, ppc_linux_syscall_record,
6687 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
6688 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
6689 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
6690 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
6691 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
6692 ppc_process_record_op19, ppc_process_record_op31,
6693 ppc_process_record_op59, ppc_process_record_op60,
6694 ppc_process_record_op63): Likewise.
6695
049bb5de
JB
66962015-01-20 Joel Brobecker <brobecker@adacore.com>
6697
6698 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
6699 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
6700 strerror.
6701
42b87c63 67022015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
6703
6704 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
6705 ppc_process_record_op31, ppc_process_record_op59,
6706 ppc_process_record_op60, ppc_process_record_op63,
6707 ppc_process_record): Fix -Wformat warning.
6708 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
6709 Remove unused variables.
6710
569340fc
CG
67112015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
6712
6713 * MAINTAINERS (Write After Approval): Add "Chen Gang".
6714
63413d85
EZ
67152015-01-19 Eli Zaretskii <eliz@gnu.org>
6716
6717 * configure.ac [*mingw32*]: Only add windows-termcap.o to
6718 CONFIG_OBS if not building with a curses library.
6719 * configure: Regenerate.
6720
6721 * windows-termcap.c: Include defs.h. Make the whole body empty if
6722 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
6723 HAVE_NCURSES_NCURSES_H is defined.
6724
16d8013c
JB
67252015-01-19 Joel Brobecker <brobecker@adacore.com>
6726
6727 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
6728 from end of line to start of next line.
6729
cf90fd9a
WW
67302015-01-17 Wei-cheng Wang <cole945@gmail.com>
6731
6732 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
6733 Scan PLT stub backward for reverse debugging.
6734 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
6735
b4cdae6f
WW
67362015-01-17 Wei-cheng Wang <cole945@gmail.com>
6737 Ulrich Weigand <uweigand@de.ibm.com>
6738
6739 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
6740 gdb_target_obs.
6741 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
6742 record.
6743 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
6744 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
6745 (ppc_linux_init_abi): Set process_record, process_record_signal.
6746 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
6747 ppc_linux_record_tdep to gdbarch_tdep.
6748 (ppc_process_record): New declaration.
6749 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
6750 ppc_process_record_op19, ppc_process_record_op31,
6751 ppc_process_record_op59, ppc_process_record_op60,
6752 ppc_process_record_op63, ppc_process_record): New functions.
6753
2608dbf8
WW
67542015-01-17 Wei-cheng Wang <cole945@gmail.com>
6755
6756 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
6757 rs6000_in_function_epilogue_frame_p and add an argument
6758 for frame_info.
6759 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
6760 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
6761 New functions.
6762 (rs6000_epilogue_frame_unwind): New.
6763 (rs6000_gdbarch_init): Append epilogue unwinder.
6764
4c347be6
SDJ
67652015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6766
6767 * nat/linux-personality.c: Replace "#ifndef
6768 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
6769 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
6770 systems.
6771
9f2850ba
EZ
67722015-01-16 Eli Zaretskii <eliz@gnu.org>
6773
6cdb25f4
EZ
6774 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
6775 functions.
6776 (_initialize_tui_win) <border-kind, border-mode>:
6777 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
6778 (tui_set_tab_width_command): Fix the commentary.
6779
6cdb25f4
EZ
6780 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
6781
bf555842
EZ
6782 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
6783 Doc fix.
cb86fcc1
EZ
6784 (tui_set_tab_width_command): Delete and recreate the source and
6785 the disassembly windows, to show the effect of the changed tab
6786 size immediately.
bf555842 6787
9f2850ba
EZ
6788 * tui/tui-data.h (LINE_PREFIX): Make shorter
6789 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
6790 "Thread NNNNN.XXXX" thread ID notation on Windows.
6791
95761b2d
JK
67922015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6793
6794 Fix gcc-5 compilation.
6795 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
6796
8cc73a39
SDJ
67972015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6798
6799 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
6800 (linux-personality.o): New rule.
6801 * common/common-defs.h: Include <stdint.h>.
6802 * config/aarch64/linux.mh (NATDEPFILES): Include
6803 linux-personality.o.
6804 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6805 * config/arm/linux.mh (NATDEPFILES): Likewise.
6806 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6807 * config/i386/linux.mh (NATDEPFILES): Likewise.
6808 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6809 * config/m32r/linux.mh (NATDEPFILES): Likewise.
6810 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6811 * config/mips/linux.mh (NATDEPFILES): Likewise.
6812 * config/pa/linux.mh (NATDEPFILES): Likewise.
6813 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6814 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6815 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6816 * config/s390/linux.mh (NATDEPFILES): Likewise.
6817 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6818 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6819 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6820 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6821 * defs.h: Remove #include <stdint.h> (moved to
6822 common/common-defs.h).
6823 * linux-nat.c: Include nat/linux-personality.h. Remove #include
6824 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
6825 nat/linux-personality.c).
6826 (linux_nat_create_inferior): Remove code to disable address space
6827 randomization (moved to nat/linux-personality.c). Create cleanup
6828 to disable address space randomization.
6829 * nat/linux-personality.c: New file.
6830 * nat/linux-personality.h: Likewise.
6831
fb23d554
SDJ
68322015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6833
6834 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
6835 common/posix-strerror.c.
6836 (posix-strerror.o): New rule.
6837 (mingw-strerror.o): Likewise.
6838 * common/common-utils.h (safe_strerror): Move prototype to here,
6839 from utils.h.
6840 * common/common.host: New file.
6841 * common/mingw-strerror.c: Likewise.
6842 * common/posix-strerror.c: Likewise.
6843 * configure: Regenerated.
6844 * configure.ac: Source common/common.host. Add variable
6845 common_host_obs to gdb_host_obs.
6846 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
6847 gdb/common/posix-strerror.c when warning about the use of
6848 strerror.
6849 * mingw-hdep.c (safe_strerror): Remove definition; move it to
6850 common/mingw-strerror.c.
6851 * posix-hdep.c (safe_strerror): Remove definition; move it to
6852 common/posix-hdep.c.
6853 * utils.h (safe_strerror): Remove prototype; move to
6854 common/common-utils.h.
6855
3af8af43
JB
68562015-01-15 Joel Brobecker <brobecker@adacore.com>
6857
6858 GDB 7.8.2 released.
6859
bafffb51
JB
68602015-01-15 Joel Brobecker <brobecker@adacore.com>
6861
6862 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
6863 ___XA type if the array has already been fixed.
6864
cdf43629
YQ
68652015-01-14 Yao Qi <yao@codesourcery.com>
6866
6867 * Makefile.in (ppc-linux.o): New rule.
6868 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
6869 * configure.ac: AC_CHECK_FUNCS(getauxval).
6870 * config.in: Re-generated.
6871 * configure: Re-generated.
6872 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
6873 Declare.
6874 * nat/ppc-linux.c: New file.
6875 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
6876 Call ppc64_64bit_inferior_p.
6877
514c5338
YQ
68782015-01-14 Yao Qi <yao@codesourcery.com>
6879
6880 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
6881 nat/ppc-linux.h.
6882 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
6883 (PPC_FEATURE_HAS_DFP): Likewise.
6884 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
6885 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
6886 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
6887 Include "nat/ppc-linux.h".
6888 * nat/ppc-linux.h: New file.
6889 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
6890
5589af0e
PA
68912015-01-14 Pedro Alves <palves@redhat.com>
6892
6893 PR gdb/17525
6894 * breakpoint.c: Include "interps.h".
6895 (bpstat_do_actions_1): Also check whether the interpreter is
6896 async.
6897
6c400b59
PA
68982015-01-14 Pedro Alves <palves@redhat.com>
6899
6900 PR cli/17828
6901 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
6902 reinstall if the interpreter is sync.
6903
e02c96a7
DE
69042015-01-13 Doug Evans <dje@google.com>
6905
6906 * objfiles.c (objfile_filename): New function.
6907 * objfiles.h (objfile_filename): Declare it.
6908 (objfile_name): Add function comment.
6909 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
6910 bfd file name (which may be realpath'd), and the original name.
6911
3b2f13ff
JB
69122015-01-13 Joel Brobecker <brobecker@adacore.com>
6913
6914 * NEWS: Create a new section for the next release branch.
6915 Rename the section of the current branch, now that it has
6916 been cut.
6917
b4cfe7f8
JB
69182015-01-13 Joel Brobecker <brobecker@adacore.com>
6919
6920 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
6921 * version.in: Bump version to 7.9.50.DATE-cvs.
6922
92fc2e69
JB
69232015-01-13 Joel Brobecker <brobecker@adacore.com>
6924
6925 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
6926 Remove trailing new-line in argument of call to warning.
6927
f71f0b0d
JB
69282015-01-13 Joel Brobecker <brobecker@adacore.com>
6929
6930 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
6931 new-line in argument of call to "warning".
6932
04dccad0
JB
69332015-01-13 Joel Brobecker <brobecker@adacore.com>
6934
6935 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
6936 in static block, then try searching for primitive types.
6937
08b13bdd
PP
69382015-01-12 Patrick Palka <patrick@parcs.ath.cx>
6939
6940 * top.h (gdb_add_history): Declare.
6941 * top.c (command_count): New variable.
6942 (gdb_add_history): New function.
6943 (gdb_safe_append_history): New static function.
6944 (quit_force): Call it.
6945 (command_line_input): Use gdb_add_history instead of
6946 add_history.
6947 * event-top.c (command_line_handler): Likewise.
6948
4ac15b59
JC
69492015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
6950
6951 PR gdb/17046
6952 * darwin-nat.c: Replace <machine/setjmp.h> #include by
6953 <setjmp.h> #include.
6954
005e54bb
DE
69552015-01-11 Doug Evans <xdje42@gmail.com>
6956
6957 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
6958
439250fb
DE
69592015-01-11 Doug Evans <xdje42@gmail.com>
6960
6961 PR gdb/15830
6962 * NEWS: The "maint demangle" command is renamed as "demangle".
6963 * demangle.c: #include cli/cli-utils.h, language.h.
6964 (demangle_command): New function.
6965 (_initialize_demangle): Add new command "demangle".
6966 * maint.c (maintenance_demangle): Stub out.
6967 (_initialize_maint_cmds): Update help text for "maint demangle",
6968 and mark as deprecated.
6969
ebf3aa72
MK
69702015-01-11 Mark Kettenis <kettenis@gnu.org>
6971
6972 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
6973 inferior_thread is a function.
6974
6bf045cd
PP
69752015-01-09 Patrick Palka <patrick@parcs.ath.cx>
6976
6977 * Makefile.in (.y.c): Don't munge yacc's #line
6978 directives.
6979
588dcc3e
PP
69802015-01-09 Patrick Palka <patrick@parcs.ath.cx>
6981
6982 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
6983 to prompt for input.
6984 * tui/tui-hooks.c (tui_query_hook): Remove.
6985 (tui_install_hooks): Don't set deprecated_query_hook.
6986 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
6987 height calculation. Always update the command window's cur_line.
6988
9c02b525
PA
69892015-01-09 Pedro Alves <palves@redhat.com>
6990
6991 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
6992 function.
6993 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
6994 declaration.
6995 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
6996 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
6997 stop_reason.
6998 (check_stopped_by_watchpoint): New function.
6999 (save_sigtrap): Reimplement.
7000 (linux_nat_stopped_by_watchpoint): Adjust.
7001 (linux_nat_lp_status_is_event): Delete.
7002 (stop_wait_callback): Only call save_sigtrap after storing the
7003 pending status.
7004 (status_callback): If the thread had been stopped for a breakpoint
7005 that has since been removed, discard the event and resume the LWP.
7006 (count_events_callback, select_event_lwp_callback): Use
7007 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
7008 (cancel_breakpoint): Rename to ...
7009 (check_stopped_by_breakpoint): ... this. Record whether the LWP
7010 stopped for a software breakpoint or hardware breakpoint.
7011 (select_event_lwp): Only give preference to the stepping LWP in
7012 all-stop mode. Adjust comments.
7013 (stop_and_resume_callback): Remove references to new_pending_p.
7014 (linux_nat_filter_event): Likewise. Leave exit events of the
7015 leader thread pending here. Handle signal short circuiting here.
7016 Only call save_sigtrap after storing the pending waitstatus.
7017 (linux_nat_wait_1): Remove 'retry' label. Remove references to
7018 new_pending. Don't handle leaving events the caller is not
7019 interested in pending here, nor handle signal short-circuiting
7020 here. Also give equal priority to all LWPs that have had events
7021 in non-stop mode. If reporting a software breakpoint event,
7022 unadjust the LWP's PC.
7023 * linux-nat.h (enum lwp_stop_reason): New.
7024 (struct lwp_info) <stop_pc>: New field.
7025 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
7026 (struct lwp_info) <stop_reason>: New field.
7027 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
7028
8af756ef
PA
70292015-01-09 Pedro Alves <palves@redhat.com>
7030
7031 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
7032 Set the LWP's 'resumed' flag.
7033
8a99810d
PA
70342015-01-09 Pedro Alves <palves@redhat.com>
7035
7036 * linux-nat.c (linux_resume_one_lwp): New function.
7037 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
7038 (linux_nat_resume): Use lwp_status_pending_p and
7039 linux_resume_one_lwp.
7040 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
7041 (linux_handle_extended_wait): Use linux_resume_one_lwp.
7042 (status_callback, running_callback): Use lwp_status_pending_p.
7043 (lwp_status_pending_p): New function.
7044 (stop_and_resume_callback): Use lwp_status_pending_p.
7045 (linux_nat_filter_event): Use linux_resume_one_lwp.
7046 (linux_nat_wait_1): Always use status_callback to look for an LWP
7047 with a pending status. Use linux_resume_one_lwp.
7048 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
7049 linux_resume_one_lwp.
7050
f7ce857f
PA
70512015-01-09 Pedro Alves <palves@redhat.com>
7052
7053 * breakpoint.c (bp_location_inserted_here_p): New function,
7054 factored out from ...
7055 (breakpoint_inserted_here_p): ... here. Use
7056 ALL_BP_LOCATIONS_AT_ADDR.
7057 (software_breakpoint_inserted_here_p): Use
7058 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
7059
c1a747c1
PA
70602014-01-09 Pedro Alves <palves@redhat.com>
7061
7062 Skip enabling event reporting if the kernel supports
7063 PTRACE_EVENT_CLONE.
7064 * linux-thread-db.c: Include "nat/linux-ptrace.h".
7065 (thread_db_use_events): New function.
7066 (try_thread_db_load_1): Check thread_db_use_events before enabling
7067 event reporting.
7068 (update_thread_state): New function.
7069 (attach_thread): Use it. Check thread_db_use_events before
7070 enabling event reporting.
7071 (thread_db_detach): Check thread_db_use_events before disabling
7072 event reporting.
7073 (find_new_threads_callback): Check thread_db_use_events before
7074 enabling event reporting. Update the thread's state if not using
7075 libthread_db events.
7076
a33e3959
PA
70772015-01-09 Pedro Alves <palves@redhat.com>
7078
7079 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
7080 about to wait for is > 0.
7081 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
7082 the kernel thread ID is -1.
7083
8784d563
PA
70842015-01-09 Pedro Alves <palves@redhat.com>
7085
7086 * linux-nat.c (attach_proc_task_lwp_callback): New function.
7087 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
7088 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
7089 ptrace option flags.
7090 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
7091 field.
7092 * nat/linux-procfs.c: Include <dirent.h>.
7093 (linux_proc_get_int): New parameter "warn". Handle it.
7094 (linux_proc_get_tgid): Adjust.
7095 (linux_proc_get_tracerpid): Rename to ...
7096 (linux_proc_get_tracerpid_nowarn): ... this.
7097 (linux_proc_pid_get_state): New function, factored out from
7098 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
7099 and handle it.
7100 (linux_proc_pid_is_gone): New function.
7101 (linux_proc_pid_is_stopped): Adjust.
7102 (linux_proc_pid_is_zombie_maybe_warn)
7103 (linux_proc_pid_is_zombie_nowarn): New functions.
7104 (linux_proc_pid_is_zombie): Use
7105 linux_proc_pid_is_zombie_maybe_warn.
7106 (linux_proc_attach_tgid_threads): New function.
7107 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
7108 (linux_proc_get_tracerpid): Rename to ...
7109 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
7110 (linux_proc_pid_is_gone): New declaration.
7111 (linux_proc_pid_is_zombie): Update comment.
7112 (linux_proc_pid_is_zombie_nowarn): New declaration.
7113 (linux_proc_attach_lwp_func): New typedef.
7114 (linux_proc_attach_tgid_threads): New declaration.
7115 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
7116 use nowarn functions.
7117 (linux_ptrace_attach_fail_reason_string): Move here from
7118 gdbserver/linux-low.c and rename.
7119 (ptrace_supports_feature): If the current ptrace options are not
7120 known yet, check them now, instead of asserting.
7121 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
7122 Declare.
7123
883ed13e
PA
71242015-01-09 Pedro Alves <palves@redhat.com>
7125
7126 * linux-thread-db.c (thread_db_find_new_threads_silently)
7127 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
7128 (find_new_threads_once): Print debug output on gdb_stdlog.
7129
1710aab8
CG
71302015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
7131 Pedro Alves <palves@redhat.com>
7132
7133 * compile/compile.c: Include "gdb_wait.h".
7134 (do_rmdir): Check return value, and free 'zap'.
7135
b597c318
YQ
71362015-01-08 Pedro Alves <palves@redhat.com>
7137 Yao Qi <yao@codesourcery.com>
7138
7139 * dwarf2loc.c (indirect_pieced_value): Don't call
7140 gdb_sign_extend. Call extract_signed_integer instead.
7141 * utils.c (gdb_sign_extend): Remove.
7142 * utils.h (gdb_sign_extend): Remove declaration.
7143
025ac414
PM
71442015-01-07 Pierre Muller <muller@sourceware.org>
7145
7146 PR symtab/17811
7147 * stabsread.c (define_symbol): Set language for C++ special symbols.
7148
fa5af12a
PP
71492015-01-07 Patrick Palka <patrick@parcs.ath.cx>
7150
7151 * inflow.c (initial_gdb_ttystate): Tweak comment.
7152
ea42d6f8
JB
71532015-01-07 Joel Brobecker <brobecker@adacore.com>
7154
7155 * inflow.c (set_initial_gdb_ttystate): Add empty line after
7156 comment documenting function.
7157
6a06d660
PP
71582015-01-07 Patrick Palka <patrick@parcs.ath.cx>
7159
7160 * terminal.h (set_initial_gdb_ttystate): Declare.
7161 * inflow.c (initial_gdb_ttystate): New static variable.
7162 (set_initial_gdb_ttystate): New setter.
7163 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
7164 instead of our current terminal state.
7165 * top.c (gdb_init): Call set_initial_gdb_ttystate.
7166
e810d75b
JB
71672015-01-07 Joel Brobecker <brobecker@adacore.com>
7168
7169 * guile/scm-type.c (tyscm_array_1): Add comment.
7170 * python/py-type.c (typy_array_1): Add comment.
7171
fce10a84
JB
71722015-01-06 Joel Brobecker <brobecker@adacore.com>
7173
7174 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
7175 error if N2 is equal to N1 - 1.
7176
8503d6e1
JB
71772015-01-06 Joel Brobecker <brobecker@adacore.com>
7178
7179 * python/py-type.c (typy_array_1): Do not raise negative-length
7180 exception if N2 is equal to N1 - 1.
7181
4d29c0a8
DE
71822015-01-03 Doug Evans <xdje42@gmail.com>
7183
7184 * c-exp.y: Whitespace cleanup.
7185 (classify_inner_name): Remove extra ;.
7186
eaa6a9a4
MR
71872015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
7188
7189 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
7190 offset signed.
7191
02fe9972
DE
71922015-01-02 Doug Evans <dje@google.com>
7193
7194 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
7195
e2ada9cb
DE
71962015-01-02 Doug Evans <dje@google.com>
7197
7198 * symtab.h (struct symbol): Fix typo in comment.
7199
32d0add0
JB
72002015-01-01 Joel Brobecker <brobecker@adacore.com>
7201
7202 Update year range in copyright notice of all files.
7203
76f2b779
JB
72042015-01-01 Joel Brobecker <brobecker@adacore.com>
7205
7206 * top.c (print_gdb_version): Update copyright year to 2015.
7207
077309e2 72082015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 7209
077309e2 7210 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 7211
077309e2 7212For older changes see ChangeLog-2014.
c906108c
SS
7213\f
7214Local Variables:
7215mode: change-log
7216left-margin: 8
7217fill-column: 74
7218version-control: never
57da7796 7219coding: utf-8
c906108c 7220End:
This page took 2.131345 seconds and 4 git commands to generate.