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