1fcf223df286c568eef09db12236f3dc9c4b7f03
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
2
3 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
4
5 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6
7 * progspace.c (delete_program_space): Add missing spaces.
8
9 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
10
11 * inferior.c (delete_inferior_1): Rename to ...
12 (delete_inferior): ..., remove 'silent' parameter, delete
13 program space when unused and remove call to prune_program_spaces.
14 Remove the old, unused, delete_inferior.
15 (delete_inferior_silent): Remove.
16 (prune_inferiors): Change call from delete_inferior_1 to
17 delete_inferior and remove 'silent' parameter. Remove call to
18 prune_program_spaces.
19 (remove_inferior_command): Idem.
20 * inferior.h (delete_inferior_1): Rename to...
21 (delete_inferior): ..., remove 'silent' parameter and remove the
22 original delete_inferior.
23 (delete_inferior_silent): Remove.
24 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
25 delete_inferior_1 to delete_inferior and remove 'silent'
26 parameter.
27 * progspace.c (prune_program_spaces): Remove.
28 (pspace_empty_p): Rename to...
29 (program_space_empty_p): ... and make non-static.
30 (delete_program_space): New.
31 * progspace.h (prune_program_spaces): Remove declaration.
32 (program_space_empty_p): New declaration.
33 (delete_program_space): New declaration.
34 * monitor.c (monitor_close): Replace call to
35 delete_thread_silent and delete_inferior_silent with
36 discard_all_inferiors.
37
38 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
39
40 * defs.h (deprecated_register_changed_hook): Remove prototype.
41 * interps.c (clear_iterpreter_hooks): Remove reference to
42 deprecated_register_changed_hook.
43 * top.c (deprecated_register_changed_hook): Remove prototype.
44 * valops.c (value_assign): Remove reference to
45 deprecated_register_changed_hook.
46 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
47 Add comment documenting the function.
48 (tui_register_changed_observer): Define.
49 (tui_install_hooks): Remove reference to
50 deprecated_register_changed_hook. Set
51 tui_register_changed_observer.
52 (tui_remove_hooks): Remove reference to
53 deprecated_register_changed_hook. Unset
54 tui_register_changed_observer.
55
56 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
57
58 PR compile/18484
59 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
60
61 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
62
63 PR exp/18617
64 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
65
66 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
67
68 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
69
70 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
71
72 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
73 Use safe_strerror() instead of strerror().
74
75 2015-07-07 Yao Qi <yao.qi@linaro.org>
76
77 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
78 * features/arm-with-m-fpa-layout.c: Regenerated.
79 * features/arm-with-m-vfp-d16.xml: Likewise.
80 * features/arm-with-m-vfp-d16.c: Regenerated.
81 * features/arm-with-m.xml: Likewise.
82 * features/arm-with-m.c: Regenerated.
83 * features/arm-with-neon.xml: Likewise.
84 * features/arm-with-neon.c: Regenerated.
85 * features/arm-with-vfpv2.xml: Likewise.
86 * features/arm-with-vfpv2.c: Regenerated.
87 * features/arm-with-vfpv3.xml: Likewise.
88 * features/arm-with-vfpv3.c: Regenerated.
89
90 2015-07-07 Yao Qi <yao.qi@linaro.org>
91
92 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
93 arm-linux-nat.c.
94 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
95 elf/external.h.
96 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
97 if target is 32-bit.
98 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
99 if target is 32-bit.
100 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
101 if target is 32-bit.
102 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
103 if target is 32-bit.
104 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
105 (aarch64_linux_read_description): Return the right target
106 description.
107 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
108 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
109 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
110 arm-linux-tdep.o.
111
112 2015-07-07 Yao Qi <yao.qi@linaro.org>
113
114 * aarch32-linux-nat.c: New file.
115 * aarch32-linux-nat.h: New file.
116 * arm-linux-nat.c: Include aarch32-linux-nat.h.
117 (fetch_regs): Move code to aarch32-linux-nat.c. Call
118 aarch32_gp_regcache_supply.
119 (store_regs): Move code to aarch32-linux-nat.c. Call
120 aarch32_gp_regcache_collect.
121 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
122 aarch32_vfp_regcache_supply.
123 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
124 aarch32_vfp_regcache_collect.
125 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
126
127 2015-07-07 Yao Qi <yao.qi@linaro.org>
128
129 * arm-linux-nat.c (store_fpregister): Remove.
130 (store_register): Likewise.
131 (fetch_fpregister): Likewise.
132 (fetch_register): Likewise.
133 (arm_linux_store_inferior_registers): Call store_regs and
134 store_fpregs instead.
135 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
136 fetch_regs instead.
137
138 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
139
140 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
141 and focus commands.
142
143 2015-07-06 Joel Brobecker <brobecker@adacore.com>
144
145 * NEWS: Create a new section for the next release branch.
146 Rename the section of the current branch, now that it has
147 been cut.
148
149 2015-07-06 Joel Brobecker <brobecker@adacore.com>
150
151 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
152 * version.in: Bump version to 7.10.50.DATE-cvs.
153
154 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
155
156 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
157 breakpoints in a special way.
158 (remove_breakpoint): Likewise.
159 (mark_breakpoints_out): Likewise.
160
161 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
162
163 * doc/gdb.texinfo (TUI): Add comma after @xref.
164
165 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
166
167 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
168 instead of casting the structure type.
169
170 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
171
172 * valops.c (search_struct_field): Remove OFFSET parameter.
173 (value_cast_structs): Adjust calls to search_struct_field.
174 (value_struct_elt): Same.
175 (find_overload_match): Same.
176
177 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
178
179 * value.c (value_fetch_lazy): Update comment, change return
180 value to void.
181 * value.h (value_fetch_lazy): Change return value to void.
182
183 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
184
185 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
186 (tui_win_name): Make parameter and result const.
187 * tui/tui-data.h (tui_win_name): Make parameter and result const.
188
189 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
190
191 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
192 use printf_unfiltered.
193 (set_mpx_cmd): Add missing trailing space to command string
194 literal.
195 (_initialize_i386_tdep): Give the "mpx" prefix command its
196 correct name.
197
198 2015-07-02 Kevin Buettner <kevinb@redhat.com>
199
200 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
201 (enum rx_frame_type): New.
202 (struct rx_prologue): Add new field `frame_type'.
203 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
204 parameter in the prologue struct. Add code for recording
205 locations of PC and PSW for fast interrupt and exception frames.
206 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
207 (rx_analyze_frame_prologue): Add `frame_type' parameter.
208 (rx_frame_type): New function.
209 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
210 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
211 `this_cache'.
212 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
213 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
214 RX_FRAME_TYPE_FAST_INTERRUPT.
215 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
216 (rx_frame_sniffer, rx_exception_sniffer): New functions.
217 (rx_frame_unwind): Use rx_frame_sniffer instead of
218 default_frame_sniffer.
219 (rx_frame_unwind): New unwinder.
220 (rx_gdbarch_init): Register new unwinder.
221
222 2015-07-02 Kevin Buettner <kevinb@redhat.com>
223
224 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
225 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
226 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
227 and RX_FPSW_REGNUM.
228 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
229
230 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
231
232 Fix GCC false warning.
233 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
234
235 2015-07-02 Yao Qi <yao.qi@linaro.org>
236
237 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
238 typo in the debugging message.
239
240 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
241
242 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
243 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
244 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
245 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
246 (btrace_maint_clear): New.
247 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
248 (pt_print_packet, btrace_maint_decode_pt)
249 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
250 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
251 (maint_btrace_packet_history_cmd)
252 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
253 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
254 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
255 (maint_info_btrace_cmd, _initialize_btrace): New.
256 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
257 (btrace_maint_packet_history, btrace_maint_info): New.
258 (btrace_thread_info) <maint>: New.
259 * NEWS: Announce it.
260
261 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
262
263 * btrace.c (btrace_fetch): Append the new trace data.
264 (btrace_clear): Clear the stored trace data.
265 * btrace.h (btrace_thread_info) <data>: New.
266 * common/btrace-common.h (btrace_data_clear)
267 (btrace_data_append): New.
268 * common/btrace-common.c (btrace_data_clear)
269 (btrace_data_append): New.
270
271 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
272
273 * nat/linux-btrace.c (linux_enable_bts): Check for
274 PERF_ATTR_SIZE_VER5.
275 Check for data_offset and data_size fields. Use them.
276
277 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
278
279 * NEWS: Announce new commands "record btrace pt" and "record pt".
280 Announce new options "set|show record btrace pt buffer-size".
281 * btrace.c: Include "rsp-low.h".
282 Include "inttypes.h".
283 (btrace_add_pc): Add forward declaration.
284 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
285 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
286 (btrace_compute_ftrace_pt): New.
287 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
288 (check_xml_btrace_version): Update version check.
289 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
290 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
291 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
292 (btrace_pt_children): New.
293 (btrace_children): Add support for "pt".
294 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
295 (btrace_conf_children): Add support for "pt".
296 * btrace.h: Include "intel-pt.h".
297 (btrace_pt_error): New.
298 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
299 (btrace_data_empty): Support BTRACE_FORMAT_PT.
300 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
301 (struct btrace_config_pt): New.
302 (struct btrace_config)<pt>: New.
303 (struct btrace_data_pt_config, struct btrace_data_pt): New.
304 (struct btrace_data)<pt>: New.
305 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
306 (pt): New.
307 * features/btrace.dtd (btrace)<pt>: New.
308 (pt, pt-config, cpu): New.
309 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
310 (perf_event_pt_event_type, kernel_supports_pt)
311 (linux_supports_pt): New.
312 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
313 (linux_enable_bts): Free tinfo on error.
314 (linux_enable_pt): New.
315 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
316 (linux_disable_pt): New.
317 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
318 (linux_fill_btrace_pt_config, linux_read_pt): New.
319 (linux_read_btrace): Support BTRACE_FORMAT_PT.
320 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
321 (struct btrace_target_info)<pt>: New.
322 * record-btrace.c (set_record_btrace_pt_cmdlist)
323 (show_record_btrace_pt_cmdlist): New.
324 (record_btrace_print_pt_conf): New.
325 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
326 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
327 (cmd_record_btrace_pt_start): New.
328 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
329 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
330 (_initialize_record_btrace): Add new commands.
331 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
332 (remote_protocol_features): Add "Qbtrace:pt".
333 Add "Qbtrace-conf:pt:size".
334 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
335 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
336 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
337 (_initialize_remote): Add new commands.
338
339 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
340
341 * configure.ac: check for libipt
342 * configure: Regenerate.
343 * config.in: Regenerate.
344 * Makefile.in (LIBIPT): New.
345 (CLIBS): Add $LIBIPT.
346 * NEWS: document new configure options
347
348 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
349
350 * compile/compile-object-load.c (compile_object_load): Replace debug
351 message "lookup undefined ELF symbol" by 3 more specific messages.
352
353 2015-07-01 Kevin Buettner <kevinb@redhat.com>
354
355 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
356 (rl78_register_type): Add case for RL78_PSW_REGNUM.
357 (rl78_gdbarch_init): Initialize rl78_psw_type.
358
359 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
360
361 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
362 Update commentary. Always refresh the registers when frame
363 information has changed.
364 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
365 Change return type to int. Return 1 if frame information has
366 changed, 0 otherwise.
367 (tui_before_prompt): Update commentary.
368 * tui/tui-stack.h (tui_show_frame_info): Change return type to
369 int.
370
371 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
372
373 PR tui/13378
374 * frame.c (select_frame): Remove reference to
375 deprecated_selected_frame_level_changed_hook.
376 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
377 declaration.
378 * stack.c (deprecated_selected_frame_level_changed_hook):
379 Likewise.
380 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
381 Rename to ...
382 (tui_refresh_frame_and_register_information): ... this. Bail
383 out if there is no stack. Don't update register information
384 unless registers_too_p is true.
385 (tui_print_frame_info_listing_hook): Rename to ...
386 (tui_dummy_print_frame_info_listing_hook): ... this.
387 (tui_before_prompt): New function.
388 (tui_normal_stop): New function.
389 (tui_before_prompt_observer): New observer.
390 (tui_normal_stop_observer): New observer.
391 (tui_install_hooks): Set
392 deprecated_print_frame_info_listing_hook to
393 tui_dummy_print_frame_info_listing_hook. Register
394 tui_before_prompt_observer to call tui_before_prompt and
395 tui_normal_stop_observer to call tui_normal_stop. Remove
396 reference to deprecated_selected_frame_level_changed_hook.
397 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
398 and tui_normal_stop_observer. Remove reference to
399 deprecated_selected_frame_level_changed_hook.
400
401 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
402
403 PR tui/13378
404 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
405 return an int instead of void. Return whether the locator
406 window has changed.
407 (tui_show_frame_info): If the locator info has not changed, then
408 bail out early to avoid refreshing the windows.
409
410 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
411
412 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
413 LOCATOR_WIN to tui_alloc_content.
414
415 2015-06-30 Yao Qi <yao.qi@linaro.org>
416
417 PR tdep/18605
418 * arm-tdep.c (arm_get_next_pc_raw): Break for media
419 instructions.
420
421 2015-06-29 Kevin Buettner <kevinb@redhat.com>
422
423 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
424 (rx_dwarf_reg_to_regnum): New function.
425 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
426 unwinding.
427
428 2015-06-29 Pedro Alves <palves@redhat.com>
429
430 PR threads/18127
431 * infcall.c (run_inferior_call): On infcall success, if the thread
432 was marked stopped before, reset it back to stopped.
433 * infrun.c (resume): Don't suppress the set_running calls when
434 doing an infcall.
435 (normal_stop): Only discard the finish_thread_state cleanup if the
436 infcall succeeded.
437
438 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
439
440 * MAINTAINERS (Write After Approval): Update my email address.
441
442 2015-06-26 Keith Seitz <keiths@redhat.com>
443 Doug Evans <dje@google.com>
444
445 PR 16253
446 * block.c (block_lookup_symbol): For non-function blocks,
447 continue to search for a symbol with an exact domain match
448 Otherwise, return any previously found "best domain" symbol.
449 (block_lookup_symbol_primary): Likewise.
450
451 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
452
453 * NEWS: Mention the new option "history remove-duplicates".
454 * top.c (history_remove_duplicates): New static variable.
455 (show_history_remove_duplicates): New static function.
456 (gdb_add_history): Conditionally remove duplicate history
457 entries.
458 (init_main): Add "history remove-duplicates" option.
459
460 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
461
462 * tui/tui-win.c (focus_completer): New static function.
463 (_initialize_tui_win): Set the completion function of the
464 "focus" command to focus_completer.
465
466 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
467
468 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
469 and language_asm..
470 * symtab.c (find_function_start_sal): Likewise.
471
472 2015-06-25 Gary Benson <gbenson@redhat.com>
473
474 * solib.c (solib_find_1): Set local variable sysroot to NULL if
475 it is the empty string after trailing slashes have been stripped.
476
477 2015-06-25 Gary Benson <gbenson@redhat.com>
478
479 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
480 * infrun.c (follow_exec): Likewise.
481 * remote.c (remote_filesystem_is_local): Likewise.
482 * solib.c (solib_find_1): Likewise.
483
484 2015-06-24 Keith Seitz <keiths@redhat.com>
485
486 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
487 return value from lrealpath.
488
489 2015-06-24 Mike Frysinger <vapier@gentoo.org>
490
491 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
492
493 2015-06-24 Mike Frysinger <vapier@gentoo.org>
494
495 * remote-sim.c: Include gdb_bfd.h.
496 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
497 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
498
499 2015-06-24 Yao Qi <yao.qi@linaro.org>
500
501 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
502 set_gdbarch_get_siginfo_type.
503 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
504 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
505 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
506 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
507 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
508 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
509 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
510 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
511 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
512 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
513
514 2015-06-24 Gary Benson <gbenson@redhat.com>
515
516 * common/buffer.c (stdint.h): Do not include.
517 * common/print-utils.c (stdint.h): Likewise.
518 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
519 * compile/compile-c-types.c (gdb_assert.h): Likewise.
520 * ft32-tdep.c (gdb_assert.h): Likewise.
521 * guile/scm-utils.c (stdint.h): Likewise.
522 * i386-linux-tdep.c (stdint.h): Likewise.
523 * i386-tdep.c (stdint.h): Likewise.
524 * nat/linux-btrace.c (stdint.h): Likewise.
525 * nat/linux-btrace.h (stdint.h): Likewise.
526 * nat/linux-ptrace.c (stdint.h): Likewise.
527 * nat/mips-linux-watch.h (stdint.h): Likewise.
528 * ppc-linux-nat.c (stdint.h): Likewise.
529 * python/python-internal.h (stdint.h): Likewise.
530 * stub-termcap.c (stdlib.h): Likewise.
531 * target/target.h (stdint.h): Likewise.
532 * xtensa-linux-nat.c (stdint.h): Likewise.
533
534 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
535
536 * top.c (init_history): Look at errno after calling strtol to
537 properly map large GDBHISTSIZE values to infinity.
538
539 2015-06-23 Doug Evans <dje@google.com>
540
541 * inferior.h (struct inferior_suspend_state): Delete, unused.
542 All references deleted.
543
544 2015-06-23 Mike Frysinger <vapier@gentoo.org>
545
546 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
547 (microblaze_push_dummy_call): Likewise.
548 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
549 and set_gdbarch_push_dummy_call.
550
551 2015-06-23 Yao Qi <yao.qi@linaro.org>
552
553 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
554 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
555 (amd64_linux_store_inferior_registers): Likewise.
556 * arm-linux-nat.c (fetch_fpregister): Likewise.
557 (fetch_fpregs, store_fpregister): Likewise.
558 (store_fpregister, store_fpregs): Likewise.
559 (fetch_register, fetch_regs): Likewise.
560 (store_register, store_regs): Likewise.
561 (fetch_vfp_regs, store_vfp_regs): Likewise.
562 (arm_linux_read_description): Check have_ptrace_getregset is
563 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
564 or TRIBOOL_FALSE.
565 * i386-linux-nat.c (fetch_xstateregs): Check
566 have_ptrace_getregset is not TRIBOOL_TRUE.
567 (store_xstateregs): Likewise.
568 * linux-nat.c (have_ptrace_getregset): Change its type to
569 enum tribool.
570 * linux-nat.h (tribool): New enum.
571 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
572 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
573
574 2015-06-19 Doug Evans <dje@google.com>
575
576 * NEWS: Mention Sun's version of stabs is no longer supported.
577 * elfread.c (free_elfinfo): Delete. All uses updated.
578 (elfstab_offset_sections): Delete. All uses updated.
579 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
580 * psympriv.h (partial_symtab) <section_offsets>: Delete.
581 All uses updated.
582 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
583 All callers updated.
584
585 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
586
587 * common/rsp-low.c (needs_escaping): New.
588 (remote_escape_output): Add unit_size parameter. Refactor to
589 support multi-byte addressable units. Rename parameters.
590 * common/rsp-low.h (remote_escape_output): Add unit_size
591 parameter and rename others. Update doc.
592 * remote.c (align_for_efficient_write): New.
593 (remote_write_bytes_aux): Add unit_size parameter and use it.
594 Rename some variables. Update doc.
595 (remote_xfer_partial): Get unit size and use it.
596 (remote_read_bytes_1): Add unit_size parameter and use it.
597 Rename some variables. Update doc.
598 (remote_write_bytes): Same.
599 (remote_xfer_live_readonly_partial): Same.
600 (remote_read_bytes): Same.
601 (remote_flash_write): Update call to remote_write_bytes_aux.
602 (remote_write_qxfer): Update call to remote_escape_output.
603 (remote_search_memory): Same.
604 (remote_hostio_pwrite): Same.
605
606 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
607
608 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
609 locations as inserted.
610 Update and expand comment about permanent locations.
611 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
612 Move comment to add_location_to_breakpoint.
613 (update_global_location_list): Don't error out if a permanent
614 breakpoint is not marked inserted.
615 Don't error out if a non-permanent breakpoint location is inserted on
616 top of a permanent breakpoint.
617
618 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
619
620 * breakpoint.c (make_breakpoint_permanent): Remove unused
621 function.
622 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
623
624 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
625
626 PR gdb/16999
627 * NEWS: Mention new GDBHISTSIZE behavior.
628 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
629 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
630
631 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
632
633 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
634 * top.c (init_history): Read from GDBHISTSIZE instead of
635 HISTSIZE.
636 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
637
638 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
639
640 * top.c (gdb_safe_append_history): Do not call
641 history_truncate_file if the history is not stifled.
642
643 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
644
645 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
646 * syscalls/s390x-linux.xml: Likewise.
647
648 2015-06-16 Michael Eager <eager@eagercon.com>
649
650 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
651
652 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
653
654 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
655 target_terminal_ours_for_output() before calling
656 tui_show_frame_info(), and restore the original terminal
657 settings afterwards.
658
659 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
660
661 * arm-linux-nat.c: Include nat/linux-ptrace.h.
662
663 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
664
665 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
666 memory unit size.
667 (mi_cmd_data_write_memory_bytes): Same.
668
669 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
670
671 * corefile.c (write_memory): Update doc.
672 * gdbcore.h (write_memory): Same.
673
674 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
675
676 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
677 (dump_mapping_p): Use it for parameter filterflags.
678 (linux_find_memory_regions_full): Use it for variable filterflags.
679
680 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
681 Jan Kratochvil <jan.kratochvil@redhat.com>
682
683 Merge multiple hex conversions.
684 * monitor.c: Include rsp-low.h.
685 (fromhex): Remove definition.
686
687 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
688 Jan Kratochvil <jan.kratochvil@redhat.com>
689
690 Move utility functions to common/.
691 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
692 Move defs to common/common-utils.c.
693 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
694 (skip_to_space_const): Move decls to common/common-utils.h.
695 * common/common-defs.h: Move include of common-types.h before
696 common-utils.h.
697 * common/common-utils.c: Include host-defs.h and ctype.h.
698 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
699 from utils.c.
700 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
701 cli/cli-utils.c.
702 * common/common-utils.h (strtoulst): Move decl from utils.h.
703 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
704 Move from cli/cli-utils.h.
705 * common/host-defs.h: Include limits.h.
706 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
707 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
708 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
709 common/common-utils.h.
710 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
711 (strtoulst): Move to common/common-utils.c.
712 * utils.h (strtoulst): Moved decl to common/common-utils.h.
713
714 2015-06-15 Yao Qi <yao.qi@linaro.org>
715
716 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
717
718 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
719
720 * build-id.c: Don't include elf-bfd.h.
721 (build_id_bfd_get): Use bfd_build_id.
722 (build_id_verify): Ditto.
723 * build-id.h: Ditto.
724 (find_separate_debug_file_by_buildid): Ditto.
725 * python/py-objfile.c: Don't include elf-bfd.h.
726 (objfpy_get_build_id) Use bfd_build_id.
727 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
728 * coffread.c: Include build-id.h.
729 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
730
731 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
732
733 * windows-nat.c (do_windows_fetch_inferior_registers)
734 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
735 conditional with __CYGWIN__.
736
737 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
738
739 * completer.c: Add arch-utils.h include.
740 (enum reg_completer_targets): New enum.
741 (reg_or_group_completer_1): New function containing old
742 reg_or_group_completer, add and use new parameter to control what
743 is completed on. Use get_current_arch rather than architecture of
744 currently selected frame.
745 (reg_or_group_completer): Call new reg_or_group_completer_1.
746 (reggroup_completer): Call new reg_or_group_completer_1.
747 * completer.h (reggroup_completer): Add declaration.
748 * tui/tui-regs.c: Add 'completer.h' include.
749 (tui_reg_next_command): Renamed to...
750 (tui_reg_next): ...this. Adjust parameters and return rather than
751 display new group.
752 (tui_reg_prev_command): Renamed to...
753 (tui_reg_prev): ...this. Adjust parameters and return rather than
754 display new group.
755 (tui_reg_float_command): Delete.
756 (tui_reg_general_command): Delete.
757 (tui_reg_system_command): Delete.
758 (tui_reg_command): Rewrite to perform switching of register group.
759 Add header comment.
760 (tuireglist): Remove.
761 (tui_reggroup_completer): New function.
762 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
763 creation of 'tui reg' command.
764 * NEWS: Add comment about 'tui reg' changes.
765
766 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
767
768 * target.c (target_read): Consider addressable unit size when
769 reading from a memory object.
770 (read_memory_robust): Same.
771 (read_whatever_is_readable): Same.
772 (target_write_with_progress): Consider addressable unit size
773 when writing to a memory object.
774 * target.h (target_read): Update documentation.
775 (target_write): Add documentation.
776
777 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
778
779 * arch-utils.h (default_addressable_memory_unit_size): New.
780 * arch-utils.c (default_addressable_memory_unit_size): New.
781 * gdbarch.sh (addressable_memory_unit_size): New.
782 * gdbarch.h: Re-generate.
783 * gdbarch.c: Re-generate.
784
785 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
786
787 * target.c (target_read): Rename variables and use
788 TARGET_XFER_E_IO.
789 (target_read_with_progress): Same.
790 (read_memory_robust): Constify parameters and rename
791 variables.
792 (read_whatever_is_readable): Constify parameters,
793 rename variables, adjust formatting.
794 * target.h (read_memory_robust): Constify parameters.
795
796 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
797
798 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
799 synthetic (non-AltiVec) vector types.
800 (ppc64_sysv_abi_return_value): Likewise.
801
802 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
803
804 PR breakpoints/16465
805 * breakpoint.c (create_breakpoint): Save extra_string for
806 pending breakpoints.
807
808 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
809
810 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
811 and bt_mask to CORE_ADDR.
812
813 2015-06-11 Gary Benson <gbenson@redhat.com>
814
815 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
816 (mnsh_recv_message): Likewise.
817
818 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
819
820 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
821 long long int and plongest instead of %ll.
822
823 2015-06-11 Gary Benson <gbenson@redhat.com>
824
825 * nat/linux-namespaces.c (gdb_wait.h): New include.
826 (sys/wait.h): Do not include.
827
828 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
829
830 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
831 end_sequence is true.
832
833 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
834
835 Code cleanup.
836 * solib-target.c (library_list_start_list): Use explicit NULL
837 comparison.
838
839 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
840
841 * solib-target.c (library_list_start_list): Do not dereference
842 variable version in its initialization. Make the VERSION check handle
843 NULL.
844 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
845
846 2015-06-10 Gary Benson <gbenson@redhat.com>
847
848 * NEWS: Announce support for direct access of executable and
849 shared library files when attaching to inferiors in containers
850 on GNU/Linux systems.
851
852 2015-06-10 Gary Benson <gbenson@redhat.com>
853
854 * remote.c (struct remote_state) <fs_pid>: New field.
855 (new_remote_state): Initialize the above.
856 (PACKET_vFile_setfs): New enum value.
857 (remote_hostio_set_filesystem): New function.
858 (remote_hostio_open): Call the above.
859 (remote_hostio_unlink): Likewise.
860 (remote_hostio_readlink): Likewise.
861 (_initialize_remote): Register new "set/show remote
862 hostio-setfs-packet" command.
863 * NEWS: Announce new vFile:setfs packet.
864
865 2015-06-10 Gary Benson <gbenson@redhat.com>
866
867 * linux-nat.c (nat/linux-namespaces.h): New include.
868 (fileio.h): Likewise.
869 (linux_nat_filesystem_is_local): New function.
870 (linux_nat_fileio_pid_of): Likewise.
871 (linux_nat_fileio_open): Likewise.
872 (linux_nat_fileio_readlink): Likewise.
873 (linux_nat_fileio_unlink): Likewise.
874 (linux_nat_add_target): Initialize to_filesystem_is_local,
875 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
876 (_initialize_linux_nat): New "set/show debug linux-namespaces"
877 commands.
878 * NEWS: Mention new "set/show debug linux-namespaces" commands.
879
880 2015-06-10 Gary Benson <gbenson@redhat.com>
881
882 * target.h (struct inferior): New forward declaration.
883 (struct target_ops) <to_filesystem_is_local>: Update comment.
884 (struct target_ops) <to_fileio_open>: New argument inf.
885 Update comment. All implementations updated.
886 (struct target_ops) <to_fileio_unlink>: Likewise.
887 (struct target_ops) <to_fileio_readlink>: Likewise.
888 (target_filesystem_is_local): Update comment.
889 (target_fileio_open): New argument inf. Update comment.
890 (target_fileio_unlink): Likewise.
891 (target_fileio_readlink): Likewise.
892 (target_fileio_read_alloc): Likewise.
893 (target_fileio_read_stralloc): Likewise.
894 * target.c (target_fileio_open): New argument inf.
895 Pass inf to implementation. Update debug printing.
896 (target_fileio_unlink): Likewise.
897 (target_fileio_readlink): Likewise.
898 (target_fileio_read_alloc_1): New argument inf. Pass inf
899 to target_fileio_open.
900 (target_fileio_read_alloc): New argument inf. Pass inf to
901 target_fileio_read_alloc_1.
902 (target_fileio_read_stralloc): Likewise.
903 * gdb_bfd.c (inferior.h): New include.
904 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
905 argument with new argument "inferior". Pass inferior to
906 target_fileio_open.
907 (gdb_bfd_open): Supply inferior argument to
908 gdb_bfd_iovec_fileio_open.
909 * linux-tdep.c (linux_info_proc): Supply inf argument to
910 relevant target_fileio calls.
911 (linux_find_memory_regions_full): Likewise.
912 (linux_fill_prpsinfo): Likewise.
913 * remote.c (remote_filesystem_is_local): Supply inf
914 argument to remote_hostio_open.
915 (remote_file_put): Likewise.
916 (remote_file_get): Likewise.
917 (remote_file_delete): Supply inf argument to
918 remote_hostio_unlink.
919
920 2015-06-10 Gary Benson <gbenson@redhat.com>
921
922 * inf-child.c (inf_child_fileio_open): Replace comment.
923 (inf_child_fileio_pwrite): Likewise.
924 (inf_child_fileio_pread): Likewise.
925 (inf_child_fileio_fstat): Insert blank line before comment.
926 (inf_child_fileio_close): Replace comment.
927 (inf_child_fileio_unlink): Likewise.
928 (inf_child_fileio_readlink): Likewise.
929 * remote.c (remote_hostio_open): Likewise.
930 (remote_hostio_pread): Likewise.
931 (remote_hostio_pwrite): Likewise.
932 (remote_hostio_close): Likewise.
933 (remote_hostio_unlink): Likewise.
934 (remote_hostio_readlink): Likewise.
935 (remote_hostio_fstat): Likewise.
936 (remote_filesystem_is_local): Likewise.
937 * target.c (target_fileio_open): Likewise.
938 (target_fileio_pwrite): Likewise.
939 (target_fileio_pread): Likewise.
940 (target_fileio_fstat): Insert blank line before comment.
941 (target_fileio_close): Replace comment.
942 (target_fileio_unlink): Likewise.
943 (target_fileio_readlink): Likewise.
944 (target_fileio_read_alloc): Likewise.
945 (target_fileio_read_stralloc): Likewise.
946
947 2015-06-10 Gary Benson <gbenson@redhat.com>
948
949 * linux-thread-db.c (nat/linux-namespaces.h): New include.
950 (check_pid_namespace_match): Use linux_ns_same rather than
951 linux_proc_pid_get_ns to spot PID namespace mismatches.
952 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
953 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
954
955 2015-06-10 Gary Benson <gbenson@redhat.com>
956
957 * configure.ac (AC_CHECK_FUNCS): Add setns.
958 * config.in: Regenerate.
959 * configure: Likewise.
960 * nat/linux-namespaces.h: New file.
961 * nat/linux-namespaces.c: Likewise.
962 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
963 (linux-namespaces.o): New rule.
964 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
965 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
966 * config/arm/linux.mh (NATDEPFILES): Likewise.
967 * config/i386/linux.mh (NATDEPFILES): Likewise.
968 * config/i386/linux64.mh (NATDEPFILES): Likewise.
969 * config/ia64/linux.mh (NATDEPFILES): Likewise.
970 * config/m32r/linux.mh (NATDEPFILES): Likewise.
971 * config/m68k/linux.mh (NATDEPFILES): Likewise.
972 * config/mips/linux.mh (NATDEPFILES): Likewise.
973 * config/pa/linux.mh (NATDEPFILES): Likewise.
974 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
975 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
976 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
977 * config/s390/linux.mh (NATDEPFILES): Likewise.
978 * config/sparc/linux.mh (NATDEPFILES): Likewise.
979 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
980 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
981 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
982
983 2015-06-10 Gary Benson <gbenson@redhat.com>
984
985 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
986 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
987 (make_cleanup_close): Likewise.
988 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
989 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
990 (make_cleanup_close): Likewise.
991
992 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
993
994 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
995 from SuspendThread().
996
997 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
998
999 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
1000 from OutputDebugString.
1001
1002 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
1003 Mircea Gherzan <mircea.gherzan@intel.com>
1004
1005 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
1006 MPX_BT_MASK_32): New macros.
1007 (i386_mpx_set_bounds): New function that implements
1008 the command "set-mpx-bound".
1009 (i386_mpx_enabled): Helper function to test MPX availability.
1010 (i386_mpx_bd_base): Helper function to calculate the base directory
1011 address.
1012 (i386_mpx_get_bt_entry): Helper function to access a bound
1013 table entry.
1014 (i386_mpx_print_bounds): Effectively display bound information.
1015 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
1016 "show mpx".
1017 (_initialize_i386_tdep):
1018 Add "bound" to the commands "show mpx" and "set mpx" commands.
1019 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
1020 and "show mpx" commands.
1021 * NEWS: List new commands for MPX support.
1022
1023 2015-06-09 Gary Benson <gbenson@redhat.com>
1024
1025 * common/fileio.h (fileio_to_host_mode): New declaration.
1026 * common/fileio.c (fileio_to_host_mode): New Function.
1027 * inf-child.c (inf_child_fileio_open): Process mode argument
1028 with fileio_to_host_mode.
1029
1030 2015-06-09 Gary Benson <gbenson@redhat.com>
1031
1032 * common/fileio.c (fileio_mode_pack): Fix preprocessor
1033 conditional.
1034
1035 2015-06-05 Gary Benson <gbenson@redhat.com>
1036
1037 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
1038 * remote.c (remote_filesystem_is_local): ...here.
1039
1040 2015-06-04 Yao Qi <yao.qi@linaro.org>
1041
1042 * gdbarch.c: Regenerate it.
1043
1044 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1045
1046 * arch-utils.c (default_infcall_munmap): New.
1047 * arch-utils.h (default_infcall_munmap): New declaration.
1048 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
1049 (munmap_list_free, munmap_listp_free_cleanup): New.
1050 (struct setup_sections_data): Add field munmap_list_headp.
1051 (setup_sections): Call munmap_list_add.
1052 (compile_object_load): New variable munmap_list_head, initialize
1053 setup_sections_data.munmap_list_headp, return munmap_list_head.
1054 * compile/compile-object-load.h (struct munmap_list): New declaration.
1055 (struct compile_module): Add field munmap_list_head.
1056 (munmap_list_free): New declaration.
1057 * compile/compile-object-run.c (struct do_module_cleanup): Add field
1058 munmap_list_head.
1059 (do_module_cleanup): Call munmap_list_free.
1060 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
1061 * gdbarch.c: Regenerate.
1062 * gdbarch.h: Regenerate.
1063 * gdbarch.sh (infcall_munmap): New.
1064 * linux-tdep.c (linux_infcall_munmap): New.
1065 (linux_init_abi): Install it.
1066
1067 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
1068
1069 PR gdb/15564
1070 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
1071
1072 2015-06-02 Yao Qi <yao.qi@linaro.org>
1073
1074 * i386-linux-nat.c: Include linux-nat.h.
1075
1076 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
1077 Jan Kratochvil <jan.kratochvil@redhat.com>
1078
1079 PR symtab/18392
1080 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
1081 assertion.
1082 * dwarf2loc.c (chain_candidate): Likewise.
1083
1084 2015-06-01 Yao Qi <yao.qi@linaro.org>
1085
1086 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
1087 (store_vfp_regs): Use PTRACE_SETREGSET.
1088
1089 2015-06-01 Yao Qi <yao.qi@linaro.org>
1090
1091 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
1092 (fetch_fpregs): Likewise.
1093 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
1094 (store_fpregs): Likewise.
1095
1096 2015-06-01 Yao Qi <yao.qi@linaro.org>
1097
1098 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
1099 (fetch_regs): Likewise.
1100 (store_regs): Use PTRACE_SETREGSET.
1101 (store_register): Likewise.
1102
1103 2015-06-01 Yao Qi <yao.qi@linaro.org>
1104
1105 * arm-linux-nat.c (arm_linux_read_description): Check whether
1106 kernel supports PTRACE_GETREGSET.
1107
1108 2015-06-01 Yao Qi <yao.qi@linaro.org>
1109
1110 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
1111 * linux-nat.c: ... here.
1112 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
1113 to ...
1114 * linux-nat.h: ... here.
1115
1116 2015-06-01 Yao Qi <yao.qi@linaro.org>
1117
1118 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
1119 * i386-linux-nat.c: Likewise.
1120 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
1121 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
1122 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
1123 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
1124 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
1125
1126 2015-05-30 Eli Zaretskii <eliz@gnu.org>
1127
1128 * go32-nat.c (go32_xfer_memory): Fix the return value to be
1129 compatible to what read_child and write_child return. This
1130 unbreaks that DJGPP build of GDB which was broken since v7.7.
1131
1132 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
1133
1134 * MAINTAINERS (Write After Approval): Add Martin Galvan.
1135
1136 2015-05-29 Roland McGrath <mcgrathr@google.com>
1137
1138 PR gdb/18464
1139 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
1140 rather than internal_error for an unrecognized value.
1141
1142 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
1143
1144 * xtensa-tdep.c (xtensa_pseudo_register_read)
1145 (xtensa_pseudo_register_write): Don't alias last pseudo register
1146 to a1.
1147
1148 2015-05-28 Don Breazeal <donb@codesourcery.com>
1149
1150 * infrun.c (follow_fork_inferior): Ensure the use of
1151 process-style ptids (pid,0,0) in verbose/debug "Detaching"
1152 messages.
1153
1154 2015-05-28 Doug Evans <dje@google.com>
1155
1156 * dwarf2read.c (record_line_ftype): Remove, duplicate.
1157
1158 2015-05-28 Yao Qi <yao.qi@linaro.org>
1159
1160 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
1161 (arm_linux_fetch_inferior_registers): Use
1162 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
1163 (arm_linux_store_inferior_registers): Likewise.
1164 (arm_linux_read_description): Don't set
1165 arm_linux_has_wmmx_registers.
1166 * arm-tdep.c (arm_gdbarch_init): Set
1167 tdep->have_wmmx_registers according target descriptions.
1168 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
1169 field.
1170
1171 2015-05-28 Yao Qi <yao.qi@linaro.org>
1172
1173 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
1174 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
1175 instead of arm_linux_vfp_register_count.
1176 (store_vfp_regs): Likewise.
1177 (arm_linux_fetch_inferior_registers): Likewise.
1178 (arm_linux_store_inferior_registers): Likewise.
1179 (arm_linux_read_description): Don't set
1180 arm_linux_vfp_register_count.
1181 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
1182 Adjust.
1183 * arm-tdep.c (arm_gdbarch_init): Add assert on
1184 vfp_register_count.
1185 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
1186 field to vfp_register_count. All users updated.
1187
1188 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
1189
1190 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
1191 ELFOSABI_GNU binaries.
1192
1193 2015-05-27 Doug Evans <dje@google.com>
1194
1195 * dwarf2read.c (lnp_state_machine): New typedef.
1196 (lnp_reader_state): New typedef.
1197 (dwarf_record_line_1): Renamed from dwarf_record_line.
1198 All callers updated.
1199 (dwarf_record_line): New function.
1200 (init_lnp_state_machine): New function.
1201 (check_line_address): Replace p_record_line parameter with state.
1202 All callers updated.
1203 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
1204 Update to record state in lnp_state_machine.
1205
1206 2015-05-27 Doug Evans <dje@google.com>
1207
1208 * dwarf2read.c (record_line_ftype): New typedef.
1209 (check_line_address): New function.
1210 (dwarf_decode_lines_1): Call it.
1211
1212 2015-05-27 Doug Evans <dje@google.com>
1213
1214 * NEWS: Mention "set debug dwarf-line".
1215 * dwarf2read.c (dwarf_line_debug): New static global.
1216 (add_include_dir): Add debug dwarf-line support.
1217 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
1218 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
1219
1220 2015-05-27 Doug Evans <dje@google.com>
1221
1222 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
1223 All callers updated.
1224 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
1225 * cp-support.h (cp_lookup_nested_symbol): Update.
1226
1227 2015-05-27 Doug Evans <dje@google.com>
1228
1229 PR symtab/18258
1230 * block.c (block_find_symbol): New function.
1231 (block_find_non_opaque_type): Ditto.
1232 (block_find_non_opaque_type_preferred): Ditto.
1233 * block.h (block_symbol_matcher_ftype): New typedef.
1234 (block_find_symbol): Declare.
1235 (block_find_non_opaque_type): Ditto.
1236 (block_find_non_opaque_type_preferred): Ditto.
1237 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
1238 * psymtab.c (psym_lookup_symbol): Ditto.
1239 * symtab.c (basic_lookup_transparent_type_1): New function.
1240 (basic_lookup_transparent_type): Call it.
1241
1242 2015-05-27 Yao Qi <yao.qi@linaro.org>
1243
1244 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
1245 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
1246
1247 2015-05-27 Yao Qi <yao.qi@linaro.org>
1248
1249 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
1250 before operator &&.
1251 (aarch64_record_load_store): Likewise.
1252
1253 2015-05-26 Doug Evans <dje@google.com>
1254
1255 PR c++/18141, c++/18417.
1256 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
1257 a typedef.
1258
1259 2015-05-26 Doug Evans <dje@google.com>
1260
1261 * NEWS: Add entries for command renamings.
1262 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
1263 All uses updated.
1264 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
1265 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
1266 All uses updated.
1267 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
1268 All callers updated. Fix spelling of DWARF in help text.
1269 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
1270 All uses updated.
1271 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
1272 All uses updated.
1273 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
1274 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
1275 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
1276 All uses updated.
1277 (show_dwarf_always_disassemble): Renamed from
1278 show_dwarf2_always_disassemble. All callers updated.
1279 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
1280 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
1281 "set/show dwarf max-cache-age". Rename
1282 "set/show dwarf2 always-disassemble" to
1283 "set/show dwarf always-disassemble". Rename
1284 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
1285 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
1286
1287 2015-05-26 Doug Evans <dje@google.com>
1288
1289 PR python/18438
1290 * python/py-lazy-string.c (stpy_convert_to_value): Use
1291 gdbpy_gdb_memory_error not PyExc_MemoryError.
1292 (gdbpy_create_lazy_string_object): Ditto.
1293
1294 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
1295
1296 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
1297
1298 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * tui/tui-regs.c (tui_reg_prev_command): New function.
1301 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
1302 * reggroups.c (reggroup_prev): New function.
1303 * reggroups.h (reggroup_prev): Add declaration. Update comment.
1304
1305 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
1306 Yao Qi <yao.qi@linaro.org>
1307
1308 * aarch64-linux-tdep.c: Include linux-record.h and
1309 record-full.h.
1310 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
1311 (aarch64_syscall): New enum.
1312 (aarch64_canonicalize_syscall): New function.
1313 (aarch64_all_but_pc_registers_record): New function.
1314 (aarch64_linux_syscall_record): New function.
1315 (aarch64_linux_init_abi): Install AArch64 process record
1316 handler. Update to handle syscall recording.
1317 * aarch64-tdep.c: Include record.h and record-full.h.
1318 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
1319 (struct aarch64_mem_r): Define.
1320 (aarch64_record_result): New enum.
1321 (struct insn_decode_record): Define.
1322 (insn_decode_record): New typedef.
1323 (aarch64_record_data_proc_reg): New function.
1324 (aarch64_record_data_proc_imm): New function.
1325 (aarch64_record_branch_except_sys): New function.
1326 (aarch64_record_load_store): New function.
1327 (aarch64_record_data_proc_simd_fp): New function.
1328 (aarch64_record_asimd_load_store): New function.
1329 (aarch64_record_decode_insn_handler): New function.
1330 (deallocate_reg_mem): New function.
1331 (aarch64_process_record): New function.
1332 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
1333 New field.
1334 (aarch64_process_record): New extern declaration.
1335 * configure.tgt: Add linux-record.o to gdb_target_obs.
1336 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
1337
1338 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
1339
1340 * NEWS: Add a note on process record-replay support on aarch64*-linux*
1341 targets.
1342
1343 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
1344
1345 * amd64-tdep.c: Replace in_function_epilogue_p with
1346 stack_frame_destroyed_p throughout.
1347 * arch-utils.c: Ditto.
1348 * arch-utils.h: Ditto.
1349 * arm-tdep.c: Ditto.
1350 * breakpoint.c: Ditto.
1351 * gdbarch.sh: Ditto.
1352 * hppa-tdep.c: Ditto.
1353 * i386-tdep.c: Ditto.
1354 * mips-tdep.c: Ditto.
1355 * nios2-tdep.c: Ditto.
1356 * rs6000-tdep.c: Ditto.
1357 * s390-linux-tdep.c: Ditto.
1358 * score-tdep.c: Ditto.
1359 * sh-tdep.c: Ditto.
1360 * sparc-tdep.c: Ditto.
1361 * sparc-tdep.h: Ditto.
1362 * sparc64-tdep.c: Ditto.
1363 * spu-tdep.c: Ditto.
1364 * tic6x-tdep.c: Ditto.
1365 * tilegx-tdep.c: Ditto.
1366 * xstormy16-tdep.c: Ditto.
1367 * gdbarch.c, gdbarch.h: Re-generated.
1368
1369 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
1370
1371 * NEWS: Mention 'tui enable' and 'tui disable'.
1372 * tui/tui.c (tui_enable_command): New function.
1373 (tui_disable_command): New function.
1374 (_initialize_tui): New function.
1375
1376 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1377
1378 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
1379
1380 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
1383 buf_ptr is freed.
1384
1385 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1386
1387 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
1388 into ...
1389 (tui_set_layout_for_display_command): ...here, before calling
1390 tui_set_layout. Only set the layout if gdb has not already
1391 entered the TUI_FAILURE state.
1392
1393 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1394
1395 * tui/tui-layout.c (layout_completer): New function.
1396 (_initialize_tui_layout): Set completer on layout command.
1397
1398 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1399
1400 * tui/tui-layout.c (tui_set_layout): Remove
1401 tui_register_display_type parameter. Remove all checking of this
1402 parameter, and reindent function. Update header comment.
1403 (tui_set_layout_for_display_command): Rename to...
1404 (tui_set_layout_by_name): ...this, and don't check for different
1405 register class types, don't pass a tui_register_display_type to
1406 tui_set_layout. Update header comment.
1407 (layout_names): Remove register set specific names.
1408 * tui/tui-layout.h (tui_set_layout): Remove
1409 tui_register_display_type parameter.
1410 * tui/tui.c (tui_rl_change_windows): Don't pass a
1411 tui_register_display_type to tui_set_layout.
1412 (tui_rl_delete_other_windows): Likewise.
1413 (tui_enable): Likewise.
1414 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
1415 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
1416 (TUI_GENERAL_REGS_NAME): Remove.
1417 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
1418 (TUI_SPECIAL_REGS_NAME): Remove.
1419 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
1420 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
1421 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
1422 (enum tui_register_display_type): Remove.
1423 (struct tui_layout_def): Remove regs_display_type and
1424 float_regs_display_type fields.
1425 (struct tui_data_info): Remove regs_display_type field.
1426 (tui_layout_command): Use new name for
1427 tui_set_layout_for_display_command.
1428 * tui/tui-data.c (layout_def): Don't initialise removed fields.
1429 (tui_clear_win_detail): Don't initialise removed fields of
1430 win_info.
1431 * tui/tui-regs.c (tui_show_registers): Use new name for
1432 tui_set_layout_for_display_command.
1433 * tui/tui.h (tui_set_layout_for_display_command): Rename
1434 declaration to...
1435 (tui_set_layout_by_name): ...this.
1436 * printcmd.c (display_command): Remove tui related layout call,
1437 and reindent.
1438
1439 2015-05-20 Joel Brobecker <brobecker@adacore.com>
1440
1441 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
1442 (handle_inferior_event): New function.
1443
1444 2015-05-20 Joel Brobecker <brobecker@adacore.com>
1445
1446 * ada-lang.c (to_fixed_array_type): Rename local variable
1447 typename into type_name.
1448
1449 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1450
1451 Fix ASAN crash for gdb.compile/compile.exp.
1452 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
1453
1454 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1455
1456 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
1457 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
1458 * compile/compile-object-load.c (setup_sections, compile_object_load):
1459 Likewise.
1460 * compile/compile.c (compile_to_object): Likewise.
1461
1462 2015-05-16 Doug Evans <xdje42@gmail.com>
1463
1464 * NEWS: Mention support for unbuffered Guile memory ports.
1465 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
1466 (ioscm_lseek_address): Improve overflow calculation.
1467 (gdbscm_memory_port_fill_input): Add assert.
1468 (gdbscm_memory_port_write): Handle unbuffered ports.
1469 Handle large writes identical to Guile's fport_write.
1470 (gdbscm_memory_port_seek): Fix seeking past end check.
1471 (gdbscm_memory_port_close): Handle closing unbuffered port.
1472 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
1473 (ioscm_init_memory_port): Handle unbuffered ports.
1474 (ioscm_reinit_memory_port): Ditto.
1475 (ioscm_init_memory_port): Update size calculation.
1476 (gdbscm_open_memory): Support zero sized ports.
1477
1478 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1479
1480 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
1481 variable compiler warnings.
1482
1483 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1484
1485 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
1486
1487 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1488 Phil Muldoon <pmuldoon@redhat.com>
1489
1490 * NEWS (Changes since GDB 7.9): Add compile print.
1491 * compile/compile-c-support.c (add_code_header, add_code_footer)
1492 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
1493 COMPILE_I_PRINT_VALUE_SCOPE.
1494 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
1495 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
1496 New.
1497 * compile/compile-object-load.c: Include block.h.
1498 (get_out_value_type): New function.
1499 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
1500 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
1501 OUT_VALUE_TYPE.
1502 * compile/compile-object-load.h (struct compile_module): Add fields
1503 out_value_addr and out_value_type.
1504 * compile/compile-object-run.c: Include valprint.h and compile.h.
1505 (struct do_module_cleanup): Add fields out_value_addr and
1506 out_value_type.
1507 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
1508 COMPILE_I_PRINT_VALUE_SCOPE.
1509 (compile_object_run): Propagate out_value_addr and out_value_type.
1510 Pass OUT_VALUE_ADDR.
1511 * compile/compile.c: Include valprint.h.
1512 (compile_print_value, compile_print_command): New functions.
1513 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
1514 (_initialize_compile): Update compile code help text. Install
1515 compile_print_command.
1516 * compile/compile.h (compile_print_value): New prototype.
1517 * defs.h (enum compile_i_scope_types): Add
1518 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
1519
1520 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1521
1522 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
1523 Rely on its parameter count.
1524 (compile_object_load): Replace lookup_minimal_symbol_text by
1525 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
1526 return value.
1527 * compile/compile-object-load.h (struct compile_module): Replace
1528 func_addr by func_sym.
1529 * compile/compile-object-run.c: Include block.h.
1530 (compile_object_run): Reset module variable after it is freed. Use
1531 FUNC_SYM instead of FUNC_ADDR. Rely on it.
1532
1533 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1534
1535 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
1536 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
1537 (c_compute_program): Call generate_register_struct after typedefs.
1538 * compile/compile-loc2c.c (push, pushf_register_address)
1539 (pushf_register): Cast to GCC_UINTPTR.
1540 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
1541 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
1542 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
1543 * compile/compile.c (_initialize_compile): Enable warnings for
1544 COMPILE_ARGS.
1545
1546 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1547
1548 * cli/cli-script.c (execute_control_command): Update
1549 eval_compile_command caller.
1550 * compile/compile-object-load.c (compile_object_load): Add parameters
1551 scope and scope_data. Set them.
1552 * compile/compile-object-load.h (struct compile_module): Add fields
1553 scope and scope_data.
1554 (compile_object_load): Add parameters scope and scope_data.
1555 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
1556 scope and scope_data.
1557 (compile_object_run): Propagate the fields scope and scope_data.
1558 * compile/compile.c (compile_file_command, compile_code_command):
1559 Update eval_compile_command callers.
1560 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
1561 * compile/compile.h (eval_compile_command): Add parameter scope_data.
1562 * defs.h (struct command_line): Add field scope_data.
1563
1564 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1565
1566 * printcmd.c (struct format_data): Move it to valprint.h.
1567 (print_command_parse_format, print_value): New functions from ...
1568 (print_command_1): ... here. Call them.
1569 * valprint.h (struct format_data): Move it here from printcmd.c.
1570 (print_command_parse_format, print_value): New declarations.
1571
1572 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1573
1574 * compile/compile-object-load.c (compile_object_load): Add
1575 COMPILE_DEBUG message.
1576
1577 2015-05-15 Jerome Guitton <guitton@adacore.com>
1578
1579 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
1580 index to get element instead of enum value.
1581 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
1582 of index to compute length, but enum values to compute bounds.
1583 (ada_array_length): Use enum position of index instead of enum value.
1584 (pos_atr): Move position computation to...
1585 (ada_evaluate_subexp): Use enum values to compute bounds.
1586 * gdbtypes.c (discrete_position): ...this new function.
1587 * gdbtypes.h (discrete_position): New function declaration.
1588 * valprint.c (val_print_array_elements): Call discrete_position
1589 to handle array indexed by non-contiguous enumeration types.
1590
1591 2015-05-15 Jerome Guitton <guitton@adacore.com>
1592
1593 * ada-lang.c (find_parallel_type_by_descriptive_type):
1594 Go through typedefs during lookup.
1595 (to_fixed_array_type): Add support for non-bit packed arrays
1596 as variable-length fields.
1597
1598 2015-05-15 Pedro Alves <palves@redhat.com>
1599 Simon Marchi <simon.marchi@ericsson.com>
1600
1601 * event-loop.c (gdb_notifier) <next_file_handler,
1602 next_poll_fds_index>: New fields.
1603 (get_next_file_handler_to_handle_and_advance): New function.
1604 (delete_file_handler): If deleting the next file handler to
1605 handle, advance to the next file handler.
1606 (gdb_wait_for_event): Bail early if no event fired. Poll file
1607 handlers in round-robin fashion.
1608
1609 2015-05-15 Pedro Alves <palves@redhat.com>
1610
1611 * linux-tdep.c (linux_find_memory_regions_full): Rename local
1612 'private' to 'priv'.
1613
1614 2015-05-15 Pedro Alves <palves@redhat.com>
1615
1616 * nat/linux-nat.h: Include "target/waitstatus.h".
1617
1618 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
1619
1620 * python/py-unwind.c (struct reg_info): Move out of ...
1621 (struct cached_frame_info): ... this scope.
1622 (pending_frame_object_type, unwind_info_object_type): Make extern.
1623
1624 2015-05-15 Joel Brobecker <brobecker@adacore.com>
1625
1626 * ada-lang.c (ada_value_primitive_packed_val): Make sure
1627 accumSize is never negative.
1628
1629 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
1630
1631 * tui/tui-command.c: Remove include of <ctype.h>.
1632 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
1633
1634 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
1635
1636 * dwarf2read.c (die_needs_namespace): Return 1 for
1637 DW_TAG_inlined_subroutine.
1638
1639 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1640
1641 * regcache.c (regcache_cpy_no_passthrough): New declaration.
1642 (regcache_cpy_no_passthrough): Make it static, add function comment.
1643 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
1644 (regcache_cpy_no_passthrough): Remove declaration.
1645
1646 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1647
1648 * gdbthread.h (struct thread_control_state): Update comment for
1649 proceed_to_finish.
1650 * infcall.c (run_inferior_call): Update comment about
1651 proceed_to_finish.
1652 * infcmd.c (get_return_value): Update comment about stop_registers.
1653 (finish_forward): Update comment about proceed_to_finish.
1654 * infrun.c (stop_registers): Remove.
1655 (clear_proceed_status, normal_stop): Remove stop_registers handling.
1656 * infrun.h (stop_registers): Remove.
1657
1658 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1659
1660 * infcall.c (struct dummy_frame_context_saver)
1661 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
1662 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
1663 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
1664 New.
1665 (call_function_by_hand_dummy): Move discard_cleanups of
1666 inf_status_cleanup before dummy_frame_push. Call
1667 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
1668 Use dummy_frame_context_saver_get_regs instead of stop_registers.
1669 * infcall.h (struct dummy_frame_context_saver)
1670 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
1671 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
1672 New declarations.
1673 * infcmd.c: Include infcall.h.
1674 (get_return_value): Add parameter ctx_saver, use it instead of
1675 stop_registers.
1676 (print_return_value): Add parameter ctx_saver, pass it.
1677 (struct finish_command_continuation_args): Add field ctx_saver.
1678 (finish_command_continuation): Update print_return_value caller.
1679 (finish_command_continuation_free_arg): Free also ctx_saver.
1680 (finish_forward): Call dummy_frame_context_saver_setup.
1681 * inferior.h (struct dummy_frame_context_saver): New declaration.
1682 (get_return_value): Add parameter ctx_saver.
1683 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
1684 get_return_value caller.
1685
1686 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1687
1688 * dummy-frame.c (struct dummy_frame_dtor_list): New.
1689 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
1690 (remove_dummy_frame): Process dtor_list.
1691 (pop_dummy_frame): Process dtor_list.
1692 (register_dummy_frame_dtor): Maintain dtor_list.
1693 (find_dummy_frame_dtor): Handle dtor_list.
1694 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
1695 Update comments.
1696
1697 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1698
1699 * compile/compile-object-run.c (do_module_cleanup): Add parameter
1700 registers_valid.
1701 (compile_object_run): Update do_module_cleanup caller.
1702 * dummy-frame.c: Include infcall.h.
1703 (struct dummy_frame): Update dtor comment.
1704 (remove_dummy_frame): Call dtor.
1705 (pop_dummy_frame): Update dtor caller.
1706 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
1707 registers_valid.
1708
1709 2015-05-13 Joel Brobecker <brobecker@adacore.com>
1710
1711 GDB 7.9.1 released.
1712
1713 2015-05-13 Joel Brobecker <brobecker@adacore.com>
1714
1715 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
1716 Xmethods now being able to specify a result type to that new
1717 sectioin.
1718
1719 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
1720
1721 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
1722 first before resizing the window.
1723 * tui/tui.c (tui_enable): Likewise.
1724
1725 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1726
1727 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
1728 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
1729 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
1730 dummy_dtor parameter.
1731 * infcall.h: Include dummy-frame.h.
1732 (call_function_by_hand_dummy_dtor_ftype): Remove.
1733 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
1734 parameter.
1735
1736 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
1737
1738 PR gdb/17820
1739 * top.c (history_size_setshow_var): Change type to signed.
1740 Initialize to -2. Update documentation.
1741 (set_readline_history_size): Define.
1742 (set_history_size_command): Use it. Remove logic for handling
1743 out-of-range sizes.
1744 (init_history): Use set_readline_history_size(). Test for a
1745 value of -2 instead of 0 when determining whether to set a
1746 default history size.
1747 (init_main): Decode the argument of the "size" command as a
1748 zuinteger_unlimited.
1749
1750 2015-05-12 Doug Evans <dje@google.com>
1751
1752 * dwarf2read.c (struct file_entry): Tweak comments.
1753 (get_debug_line_section): Tweak comments.
1754
1755 2015-05-12 Don Breazeal <donb@codesourcery.com>
1756
1757 * NEWS: Announce fork support in the RSP and support
1758 for fork debugging in extended mode.
1759
1760 2015-05-12 Don Breazeal <donb@codesourcery.com>
1761
1762 * remote.c (remote_insert_fork_catchpoint): New function.
1763 (remote_remove_fork_catchpoint): New function.
1764 (remote_insert_vfork_catchpoint): New function.
1765 (remote_remove_vfork_catchpoint): New function.
1766 (pending_fork_parent_callback): New function.
1767 (remove_new_fork_child): New function.
1768 (remote_update_thread_list): Call remote_notif_get_pending_events
1769 and remove_new_fork_child.
1770 (extended_remote_kill): Kill fork child when killing the
1771 parent before follow_fork completes.
1772 (init_extended_remote_ops): Initialize target vector with
1773 new fork catchpoint functions.
1774
1775 2015-05-12 Don Breazeal <donb@codesourcery.com>
1776
1777 * remote.c (remove_vfork_event_p): New function.
1778 (remote_follow_fork): Add vfork event type to event checking.
1779 (remote_parse_stop_reply): New stop reasons "vfork" and
1780 "vforkdone" for RSP 'T' Stop Reply Packet.
1781
1782 2015-05-12 Don Breazeal <donb@codesourcery.com>
1783
1784 * linux-nat.c (linux_nat_ptrace_options): New function.
1785 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
1786 Call linux_nat_ptrace_options and use different argument to
1787 linux_enable_event_reporting.
1788 (_initialize_linux_nat): Delete call to
1789 linux_ptrace_set_additional_flags.
1790 * nat/linux-ptrace.c (current_ptrace_options): Rename to
1791 supported_ptrace_options.
1792 (additional_flags): Delete variable.
1793 (linux_check_ptrace_features): Use supported_ptrace_options.
1794 (linux_test_for_tracesysgood, linux_test_for_tracefork):
1795 Likewise, and remove additional_flags check.
1796 (linux_enable_event_reporting): Change 'attached' argument to
1797 'options'. Use supported_ptrace_options.
1798 (ptrace_supports_feature): Change comment. Use
1799 supported_ptrace_options.
1800 (linux_ptrace_set_additional_flags): Delete function.
1801 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1802 Delete function prototype.
1803 * remote.c (remote_fork_event_p): New function.
1804 (remote_detach_pid): New function.
1805 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
1806 if doing detach-on-fork.
1807 (remote_follow_fork): New function.
1808 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
1809 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
1810 (init_extended_remote_ops): Initialize to_follow_fork.
1811
1812 2015-05-12 Don Breazeal <donb@codesourcery.com>
1813
1814 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
1815 from static to extern.
1816 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
1817 * remote.c (anonymous enum): <PACKET_fork_event_feature,
1818 * PACKET_vfork_event_feature>: New enumeration constants.
1819 (remote_protocol_features): Add table entries for new packets.
1820 (remote_query_supported): Add new feature queries to qSupported
1821 packet.
1822
1823 2015-05-12 Gary Benson <gbenson@redhat.com>
1824
1825 * remote.c (remote_add_inferior): Call exec_file_locate_attach
1826 for fake PIDs as well as real ones.
1827 (remote_pid_to_exec_file): Send empty annex if PID is fake.
1828
1829 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
1830
1831 * NEWS (Python Scripting): Mention the new gdb.Value methods.
1832 * python/py-value.c (valpy_reference_value): New function.
1833 (valpy_const_value): Likewise.
1834 (value_object_methods): Add new methods.
1835 * value.c (make_cv_value): New function.
1836 * value.h (make_cv_value): Declare.
1837
1838 2015-05-08 Yao Qi <yao@codesourcery.com>
1839 Sandra Loosemore <sandra@codesourcery.com>
1840
1841 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
1842 to 'lh->include_dirs' before accessing to it.
1843 (psymtab_include_file_name): Likewise.
1844 (dwarf_decode_lines_1): Likewise.
1845 (dwarf_decode_lines): Likewise.
1846 (file_file_name): Likewise.
1847
1848 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
1849
1850 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
1851 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
1852 (nios2_linux_rt_sigreturn_init): Adjust base address of
1853 register save area.
1854
1855 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
1856
1857 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
1858 "trap 31" as the breakpoint instruction on all targets.
1859
1860 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1861
1862 * infcmd.c (print_return_value): Remove unused declaration.
1863
1864 2015-05-08 Joel Brobecker <brobecker@adacore.com>
1865
1866 * dwarf2read.c (attr_to_dynamic_prop)
1867 <DW_AT_data_member_location>: Use read_type_die isntead of
1868 get_die_type.
1869
1870 2015-05-08 Joel Brobecker <brobecker@adacore.com>
1871
1872 * ada-lang.c (ada_convert_actual): Add handling of formals
1873 passed inside an aligner type.
1874
1875 2015-05-08 Joel Brobecker <brobecker@adacore.com>
1876
1877 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
1878
1879 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
1880
1881 PR python/18291
1882 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
1883 Print xmethod matcher status.
1884
1885 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
1886
1887 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
1888 register in the regcache when treating the PSWM register, and vice
1889 versa.
1890
1891 2015-05-07 Gary Benson <gbenson@redhat.com>
1892
1893 * linux-thread-db.c (struct thread_db_info)
1894 <td_ta_map_id2thr_p>: Remove field.
1895 (try_thread_db_load_1): Remove initialization for the above.
1896
1897 2015-05-07 Gary Benson <gbenson@redhat.com>
1898
1899 * linux-thread-db.c (struct thread_db_info)
1900 <td_thr_validate_p>: Remove field.
1901 (try_thread_db_load_1): Remove initialization for the above.
1902
1903 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1904
1905 * compile/compile-object-load.c (compile_object_load): Support
1906 mst_text_gnu_ifunc.
1907
1908 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1909
1910 * compile/compile.c (compile_to_object): Make the cmd_string parameter
1911 const. Use new variables for the const compatibility.
1912 (eval_compile_command): Make the cmd_string parameter const.
1913 * compile/compile.h (eval_compile_command): Make the cmd_string
1914 parameter const.
1915
1916 2015-05-06 Joel Brobecker <brobecker@adacore.com>
1917
1918 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
1919 comment.
1920 * top.c (deprecated_init_ui_hook): Delete.
1921 (gdb_init): Remove handling of deprecated_init_ui_hook.
1922 * interps.c (clear_interpreter_hooks): Remove handling of
1923 deprecated_init_ui_hook.
1924 * main.c (captured_main): Update comment.
1925
1926 2015-05-06 Joel Brobecker <brobecker@adacore.com>
1927
1928 * solib.c (_initialize_solib): Add "info dll" alias creation.
1929 * windows-nat.c (set_windows_aliases): Delete.
1930 (_initialize_windows_nat): Remove deprecated_init_ui_hook
1931 assignment.
1932 * NEWS: Add news entry about "info dll" now being available
1933 on all platforms.
1934
1935 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1936
1937 * ada-lang.c (value_assign_to_component): Reformat and improve
1938 documentation. Remove all trailing spaces.
1939
1940 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1941
1942 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1943 Stop counting inlined frames as soon as an out-of-line function
1944 is found.
1945
1946 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
1947
1948 * dwarf2read.c (inherit_abstract_dies): Skip
1949 DW_TAG_GNU_call_site dies while inheriting children of an
1950 abstract DIE into a scope.
1951 (read_lexical_block_scope): Inherit abstract DIE's for
1952 lexical scopes.
1953
1954 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1955
1956 * ada-valprint.c (val_print_packed_array_elements): Delete
1957 variable "len". Add a type-length check when comparing two
1958 consecutive elements of the array. Use the element's actual
1959 length in call to value_contents_eq.
1960 * ada-lang.c (ada_value_primitive_packed_val): Always return
1961 a value whose type has been resolved.
1962
1963 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1964
1965 * ada-lang.c (ada_value_primitive_packed_val): Recompute
1966 BIT_SIZE and LEN if the size of the resolved type is smaller
1967 than BIT_SIZE * HOST_CHAR_BIT.
1968
1969 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1970
1971 * ada-lang.c (ada_value_primitive_packed_val): Use a more
1972 correct address in call to value_at. Adjust call to
1973 value_address accordingly.
1974
1975 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1976
1977 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
1978 to print it.
1979
1980 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1981
1982 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
1983 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
1984 pinfo->valaddr.
1985 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
1986 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
1987 (resolve_dynamic_type_internal): Set pinfo.valaddr.
1988 Add handling of addr_stack->valaddr.
1989 (resolve_dynamic_type): Add "valaddr" parameter.
1990 Set pinfo.valaddr field.
1991 * ada-lang.c (ada_discrete_type_high_bound): Update call to
1992 resolve_dynamic_type.
1993 (ada_discrete_type_low_bound): Likewise.
1994 * findvar.c (default_read_var_value): Likewise.
1995 * value.c (value_from_contents_and_address): Likewise.
1996
1997 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1998
1999 * gdbtypes.c (resolve_dynamic_array): Use
2000 create_array_type_with_stride instead of create_array_type.
2001
2002 2015-04-30 DJ Delorie <dj@redhat.com>
2003
2004 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
2005 rl78_decode_opcode
2006
2007 2015-04-29 Doug Evans <dje@google.com>
2008
2009 PR python/18285
2010 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
2011 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
2012 EVAL_AVOID_SIDE_EFFECTS for xmethods.
2013 * extension-priv.h (struct extension_language_ops)
2014 <get_xmethod_result_type>: New member.
2015 * extension.c (get_xmethod_result_type): New function.
2016 * extension.h (get_xmethod_result_type): Declare.
2017 * python/py-xmethods.c (get_result_type_method_name): New static
2018 global.
2019 (py_get_result_type_method_name): Ditto.
2020 (gdbpy_get_xmethod_result_type): New function.
2021 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
2022 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
2023 * python/python.c (python_extension_ops): Add
2024 gdbpy_get_xmethod_result_type.
2025 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
2026 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
2027 xmethods.
2028 (value_x_unop): Ditto.
2029 * value.c (result_type_of_xmethod): New function.
2030 * value.h (result_type_of_xmethod): Declare.
2031
2032 2015-04-29 Gary Benson <gbenson@redhat.com>
2033
2034 * solib.c (solib_find_1): Allow fd argument to be NULL.
2035 (exec_file_find): Update comment.
2036 (solib_find): Likewise.
2037 * exec.c (exec_file_locate_attach): Use NULL as fd
2038 argument to exec_file_find to avoid having to close
2039 the opened file.
2040 * infrun.c (follow_exec): Likewise.
2041
2042 2015-04-28 Doug Evans <dje@google.com>
2043
2044 PR python/18299
2045 * python/lib/gdb/printing.py (register_pretty_printer): Handle
2046 name or __name__ attributes. Handle gdb module as first argument.
2047
2048 2015-04-28 Doug Evans <dje@google.com>
2049
2050 PR python/18089
2051 * python/py-prettyprint.c (print_children): Verify result of children
2052 iterator. Provide better error message.
2053 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
2054 * python/python.c (gdbpy_print_python_errors_p): New function.
2055
2056 2015-04-28 Doug Evans <dje@google.com>
2057
2058 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
2059
2060 2015-04-28 Sasha Smundak <asmundak@google.com>
2061
2062 * NEWS: Mention gdb.Type.optimized_out method.
2063 * python/py-type.c (typy_optimized_out): New function.
2064
2065 2015-04-28 John Baldwin <jhb@FreeBSD.org>
2066
2067 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2068
2069 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2070
2071 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
2072 (initialize_utils): Move call of init_page_info() to ...
2073 * top.c (gdb_init): ... here.
2074
2075 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2076
2077 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
2078 (tui_sigwinch_handler): Still update our idea of
2079 the terminal's width and height even when TUI is not active.
2080
2081 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2082
2083 * utils.h (set_screen_width_and_height): Declare.
2084 * utils.c (set_screen_width_and_height): Define.
2085 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
2086
2087 2015-04-28 Gary Benson <gbenson@redhat.com>
2088
2089 * infrun.c (solist.h): New include.
2090 (follow_exec): Use exec_file_find to prefix execd_pathname
2091 with gdb_sysroot.
2092
2093 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2094
2095 * tui/tui-source.c (tui_set_source_content): Avoid calling
2096 strcpy() when offset is 0.
2097
2098 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2099
2100 PR gdb/18155
2101 * tui/tui-data.c (tui_free_window): Don't free the locator
2102 window when passed an SRC_WIN or a DISASSEM_WIN.
2103
2104 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2105
2106 * tui/tui-data.h (struct tui_win_element): Forward-declare.
2107 (tui_win_content): Move declaration.
2108 (struct tui_gen_win_info): Give 'content' field the
2109 type tui_win_content.
2110 * tui/tui-data.c (init_content_element): Remove redundant and
2111 erroneous casts.
2112 (tui_add_content_elements): Remove erroneous cast.
2113 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
2114 casts.
2115 (tui_get_begin_asm_address): Likewise.
2116 * tui/tui-regs.c (tui_show_registers): Likewise.
2117 (tui_show_register_group): Likewise.
2118 (tui_display_registers_from): Likewise.
2119 (tui_check_register_values): Likewise.
2120 * tui/tui-source.c (tui_set_source_content): Likewise.
2121 (tui_set_source_content_nil): Likewise.
2122 (tui_source_is_displayed): Likewise.
2123 * tui/tui-stack.c (tui_show_locator_content): Likewise.
2124 (tui_set_locator_fullname): Likewise.
2125 (tui_set_locator_info): Likewise.
2126 (tui_show_frame_info): Likewise.
2127 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
2128 (tui_show_source_line): Likewise.
2129 (tui_horizontal_source_scroll): Likewise.
2130 (tui_update_breakpoint_info): Likewise.
2131 (tui_set_exec_info_content): Likewise.
2132 (tui_show_exec_info_content): Likewise.
2133 (tui_alloc_source_buffer): Likewise.
2134 (tui_line_is_displayed): Likewise.
2135 (tui_addr_is_displayed): Likewise.
2136
2137 2015-04-27 John Baldwin <jhb@FreeBSD.org>
2138
2139 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
2140 event if PL_FLAG_EXEC is set.
2141 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
2142 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
2143 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
2144 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
2145 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
2146
2147 2015-04-27 John Baldwin <jhb@FreeBSD.org>
2148
2149 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
2150 [TDP_RFPPWAIT] New variable fbsd_pending_children.
2151 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
2152 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
2153 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
2154 [PT_LWPINFO] (fbsd_wait): New function.
2155 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
2156 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
2157 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
2158 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
2159 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
2160 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
2161 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
2162 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
2163 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
2164 "fbsd_wait".
2165 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
2166 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
2167 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
2168 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
2169 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
2170 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
2171 Set "to_post_attach" to "fbsd_post_attach".
2172
2173 2015-04-27 John Baldwin <jhb@FreeBSD.org>
2174
2175 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
2176 (fbsd_find_memory_regions): Mark static.
2177 (fbsd_nat_add_target): New function.
2178 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
2179 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
2180 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
2181 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2182 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
2183 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
2184
2185 2015-04-27 Gary Benson <gbenson@redhat.com>
2186
2187 * objfiles.c (allocate_objfile): Do not attempt to expand name
2188 if name is a "target:" filename.
2189 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
2190 to load auto-load scripts for objfiles with "target:" filenames.
2191
2192 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2193
2194 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
2195 (enum s390_vector_abi_kind): New enum.
2196 (struct gdbarch_tdep)<vector_abi>: New field.
2197 (s390_effective_inner_type): Add parameter min_size. Stop
2198 unwrapping if the inner type is smaller than min_size.
2199 (s390_function_arg_float): Adjust call to
2200 s390_effective_inner_type.
2201 (s390_function_arg_vector): New function.
2202 (s390_function_arg_integer): Adjust comment.
2203 (struct s390_arg_state)<vr>: New field.
2204 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
2205 arguments according to vector ABI when appropriate.
2206 (s390_push_dummy_call): Initialize the argument state's field
2207 'vr'. Adjust calls to s390_handle_arg.
2208 (s390_register_return_value): Handle vector return values.
2209 (s390_return_value): Apply the "register" return value convention
2210 to a vector when appropriate.
2211 (s390_gdbarch_init): Initialize tdep->vector_abi.
2212 * NEWS: Announce S390 vector ABI support.
2213
2214 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2215
2216 * s390-linux-tdep.c (s390_return_value_convention): Remove
2217 function. Inline its logic...
2218 (s390_return_value): ...here. Instead, move the handling of the
2219 "register" return value convention...
2220 (s390_register_return_value): ...here. New function.
2221
2222 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2223
2224 * s390-linux-tdep.c
2225 (is_float_singleton): Remove function. Move the "singleton" part
2226 of the logic...
2227 (s390_effective_inner_type): ...here. New function.
2228 (is_float_like): Remove function. Inline its logic...
2229 (s390_function_arg_float): ...here.
2230 (is_pointer_like, is_integer_like, is_struct_like): Remove
2231 functions. Inline their logic...
2232 (s390_function_arg_integer): ...here.
2233 (s390_function_arg_pass_by_reference): Remove function.
2234 (extend_simple_arg): Remove function.
2235 (alignment_of): Remove function.
2236 (struct s390_arg_state): New structure.
2237 (s390_handle_arg): New function.
2238 (s390_push_dummy_call): Move parameter placement logic to the new
2239 function s390_handle_arg. Call it for calculating the stack area
2240 sizes first, and again for actually writing the parameters.
2241
2242 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2243
2244 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
2245 false if the argument is zero.
2246
2247 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
2248
2249 * ada-lang.c (template_to_static_fixed_type): Return input type
2250 when it is already fixed. Cache the input type itself when not
2251 creating a static fixed copy. Make it explicit that we never
2252 molestate the input type.
2253 * gdbtypes.c (resolve_dynamic_struct): Reset the
2254 TYPE_TARGET_TYPE field for resolved copies.
2255
2256 2015-04-27 Joel Brobecker <brobecker@adacore.com>
2257
2258 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
2259 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
2260 (template_to_static_fixed_type): Call ada_check_typedef only
2261 when necessary.
2262
2263 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
2264
2265 * cli/cli-dump.c (srec_dump_command): Add internationalization
2266 mark ups.
2267 (ihex_dump_command): Likewise.
2268 (tekhex_dump_command): Likewise.
2269 (binary_dump_command): Likewise.
2270 (binary_append_command): Likewise.
2271
2272 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
2273
2274 * cli/cli-dump.c (verilog_cmdlist): New variable.
2275 (dump_verilog_memory): New function.
2276 (dump_verilog_value): New function.
2277 (verilog_dump_command): New function.
2278 (_initialize_cli_dump): Add new commands to support verilog dump
2279 format.
2280 * NEWS: Add entry for "dump verilog".
2281
2282 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
2283
2284 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
2285 descriptive type when there is none.
2286
2287 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
2288
2289 * tui/tui-win.c (tui_async_resize_screen): Call
2290 rl_resize_terminal().
2291
2292 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
2293
2294 * windows-nat.c (handle_output_debug_string): Don't change
2295 current_event.dwThreadId.
2296 (get_windows_debug_event): Use thread_id, rather than relying on
2297 current_event.dwThreadId being changed.
2298
2299 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
2300
2301 * windows-nat.c (windows_continue): Report an error if
2302 ContinueDebugEvent() fails.
2303
2304 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
2305
2306 * windows-nat.c (windows_resume): Fix misspelling in debug output.
2307
2308 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
2309
2310 * windows-nat.c (get_windows_debug_event): Replace retval with
2311 thread_id throughout. Update stale comment.
2312
2313 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
2314
2315 * windows-nat.c (get_windows_debug_event): Don't use ternary
2316 conditional operator.
2317
2318 2015-04-21 Pierre Muller <muller@sourceware.org>
2319
2320 PR pascal/17815
2321 p-exp.y (yylex): Reorganize code to return the matched pattern
2322 for a field of this.
2323
2324 2015-04-21 Gary Benson <gbenson@redhat.com>
2325
2326 * common/fileio.h (fileio_to_host_openflags): New declaration.
2327 * common/fileio.c (fcntl.h): New include.
2328 (fileio_to_host_openflags): New function, factored out from...
2329 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
2330 Single use updated.
2331
2332 2015-04-21 Kevin Buettner <kevinb@redhat.com>
2333
2334 * rl78-tdep.c (RL78_SP_ADDR): Define.
2335 (opc_reg_to_gdb_regnum): New static function.
2336 (rl78_analyze_prologue): Recognize instructions forming slightly
2337 more interesting prologues.
2338
2339 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
2340
2341 Revert:
2342 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
2343 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
2344 TYPE_CODE_REF types so that they are not considered as dynamic
2345 depending on the referenced type.
2346 (resolve_dynamic_type_internal): Likewise.
2347
2348 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
2349
2350 Revert:
2351 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
2352 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
2353 "top_level" parameter.
2354 (resolve_dynamic_type_internal): Remove the unused "top_level"
2355 parameter. Update call to is_dynamic_type_internal.
2356 (is_dynamic_type): Update call to is_dynamic_type_internal.
2357 (resolve_dynamic_range): Update call to
2358 resolve_dynamic_type_internal.
2359 (resolve_dynamic_union): Likewise.
2360 (resolve_dynamic_struct): Likewise.
2361 (resolve_dynamic_type): Likewise.
2362
2363 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
2364
2365 * breakpoint.c (update_dprintf_command_list): Remove duplicated
2366 xmalloc.
2367
2368 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
2369
2370 * reply_mig_hack.awk: Robustify parsing.
2371
2372 * reply_mig_hack.awk: Don't bother to declare an intermediate
2373 function pointer variable.
2374
2375 2015-04-17 Doug Evans <dje@google.com>
2376
2377 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
2378 to "exec_displacement" to avoid confusion with inner use of the name.
2379
2380 2015-04-17 Pedro Alves <palves@redhat.com>
2381
2382 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
2383 if HW point of TYPE isn't supported.
2384
2385 2015-04-17 Yao Qi <yao.qi@linaro.org>
2386 Pedro Alves <palves@redhat.com>
2387
2388 * target.h (target_can_use_hardware_watchpoint): Update comments.
2389 Remove trailing ";".
2390
2391 2015-04-17 Gary Benson <gbenson@redhat.com>
2392
2393 * remote.c (remote_add_inferior): New argument try_open_exec.
2394 If nonzero, attempt to open the inferior's executable file as
2395 the main executable if no main executable is open already.
2396 All callers updated.
2397 * NEWS: Mention that GDB now supports automatic location and
2398 retrieval of executable + files from remote targets.
2399
2400 2015-04-17 Gary Benson <gbenson@redhat.com>
2401
2402 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
2403 * remote.c (PACKET_qXfer_exec_file): Likewise.
2404 (remote_protocol_features): Register the
2405 "qXfer:exec-file:read" feature.
2406 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
2407 (remote_pid_to_exec_file): New function.
2408 (init_remote_ops): Initialize to_pid_to_exec_file.
2409 (_initialize_remote): Register new "set/show remote
2410 pid-to-exec-file-packet" command.
2411 * NEWS: Announce new qXfer:exec-file:read packet.
2412
2413 2015-04-17 Gary Benson <gbenson@redhat.com>
2414
2415 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
2416 New declaration.
2417 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
2418 New function, factored out from...
2419 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
2420
2421 2015-04-17 Gary Benson <gbenson@redhat.com>
2422
2423 * exec.c (solist.h): New include.
2424 (exec_file_locate_attach): Prefix absolute executable
2425 paths with gdb_sysroot if set.
2426 * NEWS: Mention that executable paths may be prepended
2427 with sysroot.
2428
2429 2015-04-17 Gary Benson <gbenson@redhat.com>
2430
2431 * solist.h (exec_file_find): New declaration.
2432 * solib.c (solib_find_1): New function, factored out from...
2433 (solib_find): ...here.
2434 (exec_file_find): New function.
2435
2436 2015-04-17 Gary Benson <gbenson@redhat.com>
2437
2438 * gdbcore.h (exec_file_locate_attach): New declaration.
2439 * exec.c (exec_file_locate_attach): New function, factored
2440 out from...
2441 * infcmd.c (attach_command_post_wait): ...here.
2442
2443 2015-04-17 Mike Frysinger <vapier@gentoo.org>
2444
2445 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
2446
2447 2015-04-16 Yao Qi <yao.qi@linaro.org>
2448
2449 * infrun.c (maybe_software_singlestep): Declare.
2450 (displaced_step_fixup): Call maybe_software_singlestep.
2451
2452 2015-04-15 Doug Evans <dje@google.com>
2453
2454 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
2455
2456 2015-04-15 Doug Evans <dje@google.com>
2457
2458 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
2459
2460 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
2461
2462 * python/lib/gdb/command/unwinders.py: Add parentheses.
2463
2464 2015-04-15 Yao Qi <yao.qi@linaro.org>
2465
2466 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
2467
2468 2015-04-15 Yao Qi <yao.qi@linaro.org>
2469
2470 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
2471
2472 2015-04-15 Yao Qi <yao.qi@linaro.org>
2473
2474 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2475 dsc->insn_size instead of 4.
2476
2477 2015-04-14 Gary Benson <gbenson@redhat.com>
2478
2479 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
2480 * minidebug.c (lzma_stat): Likewise.
2481 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
2482 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
2483
2484 2015-04-13 Stan Shebs <stanshebs@google.com>
2485
2486 * MAINTAINERS: Update my email address.
2487
2488 2015-04-13 John Baldwin <jhb@FreeBSD.org>
2489
2490 * amd64-tdep.c (amd64_target_description): New function.
2491 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
2492 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
2493 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
2494 x86 extended save area.
2495 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
2496 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
2497 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
2498 (_initialize_amd64fbsd_nat): Set "to_read_description" to
2499 "amd64fbsd_read_description".
2500 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
2501 (amd64fbsd_supply_xstateregset): New function.
2502 (amd64fbsd_collect_xstateregset): New function.
2503 Add "amd64fbsd_xstateregset".
2504 (amd64fbsd_iterate_over_regset_sections): New function.
2505 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
2506 "I386_FBSD_XSAVE_XCR0_OFFSET".
2507 Add "iterate_over_regset_sections" gdbarch method.
2508 Add "core_read_description" gdbarch method.
2509 * i386-tdep.c (i386_target_description): New function.
2510 * i386-tdep.h: Export i386_target_description and tdesc_i386.
2511 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
2512 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
2513 x86 extended save area.
2514 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
2515 * i386bsd-nat.h: Export i386bsd_xsave_len.
2516 * i386fbsd-nat.c (i386fbsd_read_description): New function.
2517 (_initialize_i386fbsd_nat): Set "to_read_description" to
2518 "i386fbsd_read_description".
2519 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
2520 (i386fbsd_core_read_description): New function.
2521 (i386fbsd_supply_xstateregset): New function.
2522 (i386fbsd_collect_xstateregset): New function.
2523 Add "i386fbsd_xstateregset".
2524 (i386fbsd_iterate_over_regset_sections): New function.
2525 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
2526 "I386_FBSD_XSAVE_XCR0_OFFSET".
2527 Add "iterate_over_regset_sections" gdbarch method.
2528 Add "core_read_description" gdbarch method.
2529 * i386fbsd-tdep.h: New file.
2530
2531 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2532
2533 * NEWS (Changes since GDB 7.9): Add removed -xdb.
2534 * breakpoint.c (command_line_is_silent): Remove xdb_commands
2535 conditional.
2536 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
2537 and lb.
2538 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
2539 va.
2540 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
2541 conditional.
2542 * defs.h (xdb_commands): Remove declaration.
2543 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
2544 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
2545 * infcmd.c (run_no_args_command, go_command): Remove.
2546 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
2547 * infrun.c (xdb_handle_command): Remove.
2548 (_initialize_infrun): Remove xdb_commands for lz and z.
2549 * main.c (xdb_commands): Remove variable.
2550 (captured_main): Remove "xdb" from long_options.
2551 (print_gdb_help): Remove --xdb from help.
2552 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
2553 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
2554 * stack.c (backtrace_full_command, args_plus_locals_info)
2555 (current_frame_command): Remove.
2556 (_initialize_stack): Remove xdb_commands for t, T and l.
2557 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
2558 * thread.c (_initialize_thread): Remove xdb_commands condition.
2559 * tui/tui-layout.c (tui_toggle_layout_command)
2560 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
2561 (_initialize_tui_layout): Remove xdb_commands for td and ts.
2562 * tui/tui-regs.c (tui_scroll_regs_forward_command)
2563 (tui_scroll_regs_backward_command): Remove.
2564 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
2565 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
2566 (_initialize_tui_win): Remove xdb_commands for U and w.
2567 * utils.c (pagination_on_command, pagination_off_command): Remove.
2568 (initialize_utils): Remove xdb_commands for am and sm.
2569
2570 2015-04-10 Pedro Alves <palves@redhat.com>
2571
2572 * infrun.c (displaced_step_fixup): Switch to the event ptid
2573 earlier. If the thread stopped for a watchpoint and the
2574 target/arch has non-continuable watchpoints, cancel the displaced
2575 step.
2576 (resume): Don't start a displaced step if in-line step-over info
2577 is valid.
2578
2579 2015-04-10 Pedro Alves <palves@redhat.com>
2580
2581 * infrun.c (displaced_step_in_progress): New function.
2582 (do_target_resume): Advise target to report all signals if
2583 displaced stepping.
2584
2585 2015-04-10 Pedro Alves <palves@redhat.com>
2586
2587 PR gdb/18216
2588 * infrun.c (process_event_stop_test): Don't assume a step-resume
2589 is set if tp->stepped_breakpoint is true.
2590
2591 2015-04-10 Yao Qi <yao.qi@linaro.org>
2592
2593 * arm-tdep.c (install_alu_reg): Update comment.
2594 (thumb_copy_alu_reg): Remove local variable rn. Update
2595 debugging message. Use r2 instead of r1 in the modified
2596 instruction.
2597
2598 2015-04-10 Pedro Alves <palves@redhat.com>
2599
2600 PR gdb/13858
2601 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
2602 linux_displaced_step_location as gdbarch_displaced_step_location
2603 hook.
2604 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
2605 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2606 * linux-tdep.c (linux_displaced_step_location): New function,
2607 based on ppc_linux_displaced_step_location.
2608 * linux-tdep.h (linux_displaced_step_location): New declaration.
2609 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
2610 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
2611 Delete.
2612 (ppc_linux_init_abi): Install linux_displaced_step_location as
2613 gdbarch_displaced_step_location hook, even without Cell/B.E..
2614 (_initialize_ppc_linux_tdep): Don't install
2615 ppc_linux_inferior_created as inferior_created observer.
2616 * s390-linux-tdep.c (s390_gdbarch_init): Install
2617 linux_displaced_step_location as gdbarch_displaced_step_location
2618 hook.
2619
2620 2015-04-09 Gary Benson <gbenson@redhat.com>
2621
2622 * common/common-remote-fileio.h: Rename to...
2623 * common/fileio.h: ...this. Update all references.
2624 (remote_fileio_to_fio_error): Rename to...
2625 (host_to_fileio_error): ...this.
2626 (remote_fileio_to_be): Rename to...
2627 (host_to_bigendian): ...this. Update all callers.
2628 (remote_fileio_to_fio_uint): Rename to...
2629 (host_to_fileio_uint): ...this. Update all callers.
2630 (remote_fileio_to_fio_time): Rename to...
2631 (host_to_fileio_time): ...this. Update all callers.
2632 (remote_fileio_to_fio_stat): Rename to...
2633 (host_to_fileio_stat): ...this.
2634 Update all references.
2635 * common/common-remote-fileio.c: Rename to...
2636 * common/fileio.c: ...this. Update all references.
2637 (remote_fileio_to_fio_error): Rename to...
2638 (host_to_fileio_error): ...this. Update all callers.
2639 (remote_fileio_mode_to_target): Rename to...
2640 (fileio_mode_pack): ...this. Update all callers.
2641 (remote_fileio_to_fio_mode): Rename to...
2642 (host_to_fileio_mode): ...this. Update all callers.
2643 (remote_fileio_to_fio_ulong): Rename to...
2644 (host_to_fileio_ulong): ...this. Update all callers.
2645 (remote_fileio_to_fio_stat): Rename to...
2646 (host_to_fileio_stat): ...this. Update all callers.
2647
2648 2015-04-09 Andy Wingo <wingo@igalia.com>
2649
2650 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
2651 (frame_functions): Bind gdbscm_frame_read_register to
2652 frame-read-register.
2653 * guile/lib/gdb.scm (frame-read-register): Export.
2654
2655 2015-04-09 Gary Benson <gbenson@redhat.com>
2656
2657 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
2658 New declaration.
2659 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
2660 New function, factored out the named functions below.
2661 * inf-child.c (gdb/fileio.h): Remove include.
2662 (common-remote-fileio.h): New include.
2663 (inf_child_errno_to_fileio_error): Remove function. Update
2664 all callers to use remote_fileio_to_fio_error.
2665 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
2666
2667 2015-04-09 Andy Wingo <wingo@igalia.com>
2668
2669 * MAINTAINERS (Write After Approval): Add Andy Wingo.
2670
2671 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
2672
2673 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
2674 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
2675 * configure: Regenerated.
2676
2677 2015-04-09 Pedro Alves <palves@redhat.com>
2678
2679 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
2680 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
2681 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
2682 * gnulib/import/Makefile.am: Update.
2683 * gnulib/import/Makefile.in: Update.
2684 * gnulib/import/m4/gnulib-cache.m4: Update.
2685 * gnulib/import/m4/gnulib-comp.m4: Update.
2686 * gnulib/import/m4/strtok_r.m4: New file.
2687 * gnulib/import/strtok_r.c: New file.
2688
2689 2015-04-09 Pedro Alves <palves@redhat.com>
2690
2691 * gnulib/update-gnulib.sh (aclocal version check): Filter out
2692 "called too early to check prototype".
2693
2694 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
2695
2696 PR python/16699
2697 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
2698 use a caching mechanism. Adjust comments and code to reflect
2699 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
2700 (cmdpy_completer_handle_brkchars): Adjust call to
2701 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
2702 (cmdpy_completer): Likewise.
2703
2704 2015-04-08 Yao Qi <yao.qi@linaro.org>
2705
2706 * spu-tdep.c (spu_gdbarch_init): Don't call
2707 set_gdbarch_cannot_step_breakpoint.
2708
2709 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
2710
2711 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
2712
2713 2015-04-07 Pedro Alves <palves@redhat.com>
2714
2715 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
2716 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
2717 (delete_exited_threads): New declaration.
2718 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
2719 * linux-nat.c (linux_nat_update_thread_list): New function.
2720 (linux_nat_add_target): Install it.
2721 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
2722 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
2723 (delete_exited_threads): New function.
2724
2725 2015-04-07 Pedro Alves <pedro@codesourcery.com>
2726
2727 * infrun.c (resume) <displaced stepping debug output>: Get the
2728 leader thread's regcache, not resume_ptid's.
2729
2730 2015-04-06 Doug Evans <xdje42@gmail.com>
2731
2732 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
2733 VAR_DOMAIN.
2734 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
2735 Include symbol domain in debugging output.
2736
2737 2015-04-06 Pedro Alves <palves@redhat.com>
2738 Bernd Edlinger <bernd.edlinger@hotmail.de>
2739
2740 * configure.ac: Remove the mingw32-specific stub-termcap.o
2741 fallback, and instead fallback to the stub termcap on all hosts.
2742 * configure: Regenerate.
2743 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
2744 symbols.
2745
2746 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
2747
2748 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
2749 "top_level" parameter.
2750 (resolve_dynamic_type_internal): Remove the unused "top_level"
2751 parameter. Update call to is_dynamic_type_internal.
2752 (is_dynamic_type): Update call to is_dynamic_type_internal.
2753 (resolve_dynamic_range): Update call to
2754 resolve_dynamic_type_internal.
2755 (resolve_dynamic_union): Likewise.
2756 (resolve_dynamic_struct): Likewise.
2757 (resolve_dynamic_type): Likewise.
2758
2759 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
2760
2761 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
2762 TYPE_CODE_REF types so that they are not considered as dynamic
2763 depending on the referenced type.
2764 (resolve_dynamic_type_internal): Likewise.
2765
2766 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
2767
2768 * Makefile.in (top_srcdir): New.
2769 * configure: Regenerated.
2770
2771 2015-04-02 Gary Benson <gbenson@redhat.com>
2772
2773 * NEWS: Announce the new default sysroot of "target:".
2774
2775 2015-04-02 Gary Benson <gbenson@redhat.com>
2776
2777 * main.c (captured_main): Set gdb_sysroot to "target:"
2778 if not otherwise set.
2779
2780 2015-04-02 Gary Benson <gbenson@redhat.com>
2781
2782 * exec.c (exec_file_attach): Support "target:" filenames.
2783
2784 2015-04-02 Gary Benson <gbenson@redhat.com>
2785
2786 * solib.c (solib_find): Strip "target:" prefix from sysroot
2787 if accessing local files.
2788
2789 2015-04-02 Gary Benson <gbenson@redhat.com>
2790
2791 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
2792 checks and error messages.
2793
2794 2015-04-02 Gary Benson <gbenson@redhat.com>
2795
2796 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
2797 (remote_filename_p): Remove declaration.
2798 (remote_bfd_open): Likewise.
2799 * remote.c (remote_bfd_iovec_open): Remove function.
2800 (remote_bfd_iovec_close): Likewise.
2801 (remote_bfd_iovec_pread): Likewise.
2802 (remote_bfd_iovec_stat): Likewise.
2803 (remote_filename_p): Likewise.
2804 (remote_bfd_open): Likewise.
2805 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
2806 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
2807 (gdb_bfd_open_maybe_remote): Remove function.
2808 (symfile_bfd_open): Replace remote filename check with
2809 target filename check.
2810 (reread_symbols): Use gdb_bfd_open.
2811 * build-id.c (gdbcore.h): New include.
2812 (build_id_to_debug_bfd): Use gdb_bfd_open.
2813 * infcmd.c (attach_command_post_wait): Remove remote filename
2814 check.
2815 * solib.c (solib_find): Replace remote-specific handling with
2816 target-specific handling. Update comments where necessary.
2817 (solib_bfd_open): Replace remote-specific handling with
2818 target-specific handling.
2819 (gdb_sysroot_changed): New function.
2820 (_initialize_solib): Call the above when gdb_sysroot changes.
2821 * windows-tdep.c (gdbcore.h): New include.
2822 (windows_xfer_shared_library): Use gdb_bfd_open.
2823
2824 2015-04-02 Gary Benson <gbenson@redhat.com>
2825
2826 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
2827 (is_target_filename): New declaration.
2828 (gdb_bfd_has_target_filename): Likewise.
2829 (gdb_bfd_open): Update documentation comment.
2830 * gdb_bfd.c (target.h): New include.
2831 (gdb/fileio.h): Likewise.
2832 (is_target_filename): New function.
2833 (gdb_bfd_has_target_filename): Likewise.
2834 (fileio_errno_to_host): Likewise.
2835 (gdb_bfd_iovec_fileio_open): Likewise.
2836 (gdb_bfd_iovec_fileio_pread): Likewise.
2837 (gdb_bfd_iovec_fileio_close): Likewise.
2838 (gdb_bfd_iovec_fileio_fstat): Likewise.
2839 (gdb_bfd_open): Use target fileio to access paths prefixed
2840 with "target:" where necessary.
2841
2842 2015-04-02 Gary Benson <gbenson@redhat.com>
2843
2844 * target.h (struct target_ops) <to_filesystem_is_local>:
2845 New field.
2846 (target_filesystem_is_local): New macro.
2847 * target-delegates.c: Regenerate.
2848 * remote.c (remote_filesystem_is_local): New function.
2849 (init_remote_ops): Initialize to_filesystem_is_local.
2850
2851 2015-04-02 Gary Benson <gbenson@redhat.com>
2852
2853 * target.h (struct target_ops) <to_fileio_fstat>: New field.
2854 (target_fileio_fstat): New declaration.
2855 * target.c (target_fileio_fstat): New function.
2856 * inf-child.c (inf_child_fileio_fstat): Likewise.
2857 (inf_child_target): Initialize to_fileio_fstat.
2858 * remote.c (init_remote_ops): Likewise.
2859
2860 2015-04-01 Sasha Smundak <asmundak@google.com>
2861
2862 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
2863 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
2864 (py-unwind.o): New recipe.
2865 * NEWS: mention Python frame unwinding.
2866 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
2867 gdb/unwinder.py and gdb/command/unwinder.py
2868 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
2869 list.
2870 (execute_unwinders): New function.
2871 * python/lib/gdb/command/unwinders.py: New file.
2872 * python/lib/gdb/unwinder.py: New file.
2873 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
2874 (objfpy_dealloc): Decrement frame_unwinders reference count.
2875 (objfpy_initialize): Create frame_unwinders list.
2876 (objfpy_get_frame_unwinders): New function.
2877 (objfpy_set_frame_unwinders): Ditto.
2878 (objfile_getset): Add frame_unwinders attribute to Objfile.
2879 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
2880 (pspy_dealloc): Decrement frame_unwinders reference count.
2881 (pspy_initialize): Create frame_unwinders list.
2882 (pspy_get_frame_unwinders): New function.
2883 (pspy_set_frame_unwinders): Ditto.
2884 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
2885 * python/py-unwind.c: New file.
2886 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
2887 (objpy_get_frame_unwinders): New prototype.
2888 (gdbpy_initialize_unwind): New prototype.
2889 * python/python.c (gdbpy_apply_type_printers): Call
2890 gdbpy_initialize_unwind.
2891
2892 2015-04-01 Pedro Alves <palves@redhat.com>
2893
2894 * infrun.c (resume): Check currently_stepping after clearing
2895 stepped_breakpoint, not before.
2896
2897 2015-04-01 Pedro Alves <palves@redhat.com>
2898
2899 * infrun.c (print_target_wait_results): Print all the ptid
2900 elements.
2901
2902 2015-04-01 Pedro Alves <palves@redhat.com>
2903
2904 * infrun.c (keep_going): Also discard cleanups if inserting
2905 breakpoints fails.
2906
2907 2015-04-01 Pedro Alves <palves@redhat.com>
2908
2909 * infrun.c (wait_for_inferior): Install the
2910 finish_thread_state_cleanup cleanup across the whole function, not
2911 just around handle_inferior_event.
2912
2913 2015-04-01 Pedro Alves <palves@redhat.com>
2914
2915 * infrun.c (resume) <step past permanent breakpoint>: Use
2916 do_target_resume.
2917
2918 2015-04-01 Pedro Alves <palves@redhat.com>
2919
2920 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
2921
2922 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
2923
2924 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
2925
2926 2015-04-01 Pedro Alves <palves@redhat.com>
2927
2928 * linux-thread-db.c (record_thread): Readd the thread to gdb's
2929 list if it was marked exited.
2930
2931 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
2932
2933 * configure: Regenerated.
2934
2935 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
2936 Jan Kratochvil <jan.kratochvil@redhat.com>
2937 Oleg Nesterov <oleg@redhat.com>
2938
2939 PR corefiles/16092
2940 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
2941 New enum identifying the various options of the coredump_filter
2942 file.
2943 (struct smaps_vmflags): New struct.
2944 (use_coredump_filter): New variable.
2945 (decode_vmflags): New function.
2946 (mapping_is_anonymous_p): Likewise.
2947 (dump_mapping_p): Likewise.
2948 (linux_find_memory_regions_full): New variables
2949 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
2950 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
2951 parsing of its information. Implement memory mapping filtering
2952 based on its contents.
2953 (show_use_coredump_filter): New function.
2954 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
2955 * NEWS: Mention the possibility of using the
2956 '/proc/PID/coredump_filter' file when generating a corefile.
2957 Mention new command 'set use-coredump-filter'.
2958
2959 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
2960
2961 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
2962 read_memory_unsigned_integer.
2963
2964 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
2965
2966 * Makefile.in (ZLIB): New.
2967 (ZLIBINC): Likewise.
2968 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
2969 (CLIBS): Add $(ZLIB).
2970 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
2971 Add -lz to LIBS.
2972 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
2973 * top.c (print_gdb_configuration): Remove --with-zlib and
2974 --without-zlib.
2975 * config.in: Regenerated.
2976 * configure: Likewise.
2977
2978 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
2979
2980 * NEWS: Mention info os cpus support.
2981 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
2982 (struct osdata_type): Add cpus entry, reorder the entries in
2983 alphabetical order.
2984
2985 2015-03-31 Matthias Klose <doko@ubuntu.com>
2986
2987 * compile/compile.c (compile_to_object): Allow triplets with or
2988 without vendor set.
2989
2990 2015-03-30 Doug Evans <dje@google.com>
2991
2992 PR c++/18141
2993 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
2994 klass in VAR_DOMAIN.
2995
2996 2015-03-30 Gary Benson <gbenson@redhat.com>
2997
2998 * remote.c (remote_mourn_1): Remove function. Update all callers
2999 to use remote_mourn.
3000 (extended_remote_mourn_1): Remove function. Update all callers
3001 to use extended_remote_mourn.
3002 (extended_remote_attach_1): Remove function. Update all callers
3003 to use extended_remote_attach.
3004
3005 2015-03-28 James Bowman <james.bowman@ftdichip.com>
3006
3007 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
3008 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
3009 (ALLDEPFILES): Add ft32-tdep.c.
3010 * configure.tgt: Add FT32 entry.
3011 * ft32-tdep.c: New file, FT32 target-dependent code.
3012 * ft32-tdep.h: New file, FT32 target-dependent code.
3013
3014 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3015
3016 Revert:
3017 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3018 Code cleanup.
3019 * printcmd.c (print_command_1): Move expr variable scope.
3020
3021 2015-03-27 Joel Brobecker <brobecker@adacore.com>
3022
3023 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
3024
3025 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
3026
3027 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
3028 sections.
3029
3030 2015-03-26 Joel Brobecker <brobecker@adacore.com>
3031
3032 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
3033 exception raised while parsing the probe arguments.
3034 Force parsing to be done using the C language parser.
3035 * expression.h (parse_expression_with_language): Declare.
3036 * parse.c (parse_expression_with_language): New function.
3037
3038 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
3039
3040 * MAINTAINERS (Write After Approval): Add "Jon Turney".
3041
3042 2015-03-26 Andy Wingo <wingo@igalia.com>
3043
3044 PR symtab/18148
3045 * dwarf2read.c (struct partial_die_info): Add has_const_value
3046 member.
3047 (add_partial_symbol): Don't punt on symbols that have const_value
3048 attributes.
3049 (read_partial_die): Detect DW_AT_const_value.
3050
3051 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3052
3053 Code cleanup.
3054 * printcmd.c (print_command_1): Move expr variable scope.
3055
3056 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3057
3058 Code cleanup.
3059 * printcmd.c (validate_format): Make the parameter cmdname const.
3060
3061 2015-03-26 Don Breazeal <donb@codesourcery.com>
3062
3063 * remote.c (_initialize_remote): Update comment.
3064
3065 2015-03-26 Pedro Alves <palves@redhat.com>
3066 Jon TURNEY <jon.turney@dronecode.org.uk>
3067
3068 * coffread.c (coff_symfile_read): When constructing the name of an
3069 import stub symbol from import symbol for amd64, only skip the
3070 char after _imp_ if the target is underscored (like i386) and the
3071 char is indeed the target's leading char.
3072
3073 2015-03-25 Pedro Alves <palves@redhat.com>
3074
3075 * target.h <to_async>: Replace 'callback' and 'context' parameters
3076 with boolean 'enable' parameter.
3077 (target_async): Replace CALLBACK and CONTEXT parameters with
3078 boolean ENABLE parameter.
3079 * inf-loop.c (inferior_event_handler): Adjust.
3080 * linux-nat.c (linux_nat_attach, linux_nat_resume)
3081 (linux_nat_resume): Adjust.
3082 (async_client_callback, async_client_context): Delete.
3083 (handle_target_event): Call inferior_event_handler directly.
3084 (linux_nat_async): Replace 'callback' and 'context' parameters
3085 with boolean 'enable' parameter. Adjust. Remove references to
3086 async_client_callback and async_client_context.
3087 (linux_nat_close): Adjust.
3088 * record-btrace.c (record_btrace_async): Replace 'callback' and
3089 'context' parameters with boolean 'enable' parameter. Adjust.
3090 (record_btrace_resume): Adjust.
3091 * record-full.c (record_full_async): Replace 'callback' and
3092 'context' parameters with boolean 'enable' parameter. Adjust.
3093 (record_full_resume, record_full_core_resume): Adjust.
3094 * remote.c (struct remote_state) <async_client_callback,
3095 async_client_context>: Delete fields.
3096 (remote_start_remote, extended_remote_attach_1, remote_resume)
3097 (extended_remote_create_inferior): Adjust.
3098 (remote_async_serial_handler): Call inferior_event_handler
3099 directly.
3100 (remote_async): Replace 'callback' and 'context' parameters with
3101 boolean 'enable' parameter. Adjust.
3102 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
3103 Adjust.
3104 * target-delegates.c: Regenerate.
3105
3106 2015-03-25 Gary Benson <gbenson@redhat.com>
3107 Pedro Alves <palves@redhat.com>
3108
3109 * target.c (fileio_ft_t): New typedef, define object vector.
3110 (fileio_fhandles): New static variable.
3111 (is_closed_fileio_fh): New macro.
3112 (lowest_closed_fd): New static variable.
3113 (acquire_fileio_fd): New function.
3114 (release_fileio_fd): Likewise.
3115 (fileio_fd_to_fh): New macro.
3116 (target_fileio_open): Wrap the file descriptor on success.
3117 (target_fileio_pwrite): Updated to use wrapped file descriptor.
3118 (target_fileio_pread): Likewise.
3119 (target_fileio_close): Likewise.
3120
3121 2015-03-24 Pedro Alves <palves@redhat.com>
3122
3123 * thread.c (thread_apply_all_command): Take exited threads into
3124 account.
3125
3126 2015-03-24 Pedro Alves <palves@redhat.com>
3127
3128 * infrun.c (resume, proceed): Mention
3129 switch_back_to_stepped_thread, not switch_back_to_stepping.
3130
3131 2015-03-24 Pedro Alves <palves@redhat.com>
3132
3133 * infrun.c (user_visible_resume_ptid): Rewrite going from
3134 most-locked to unlocked instead of the opposite. Move comment ...
3135 * infrun.h (user_visible_resume_ptid): ... here.
3136
3137 2015-03-24 Pedro Alves <palves@redhat.com>
3138
3139 * linux-nat.c (linux_nat_resume): Output debug logs before trying
3140 to resume the event lwp. Use the lwp's ptid instead of the passed
3141 in (maybe wildcard) ptid.
3142 (stop_wait_callback): Tweak debug log output.
3143 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
3144 TRAP_TRACE.
3145 (linux_nat_filter_event): In debug output, distinguish a
3146 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
3147 before trying to resume the lwp.
3148
3149 2015-03-24 Joel Brobecker <brobecker@adacore.com>
3150
3151 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
3152 pointer indirection.
3153 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
3154 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
3155
3156 2015-03-24 Joel Brobecker <brobecker@adacore.com>
3157
3158 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
3159 Renames DYN_ATTR_DATA_LOCATION.
3160 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
3161 DYN_ATTR_DATA_LOCATION.
3162 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
3163 instead of DYN_ATTR_DATA_LOCATION.
3164
3165 2015-03-24 Pedro Alves <palves@redhat.com>
3166
3167 * breakpoint.c (until_break_command): Adjust call to proceed.
3168 * gdbthread.h (struct thread_control_state) <stepping_command>:
3169 New field.
3170 * infcall.c (run_inferior_call): Adjust call to proceed.
3171 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
3172 Adjust calls to proceed.
3173 (set_step_frame): Set the current thread's step_start_function
3174 here.
3175 (step_once): Adjust calls to proceed.
3176 (jump_command, signal_command, until_next_command)
3177 (finish_backward, finish_forward, proceed_after_attach_callback)
3178 (attach_command_post_wait): Adjust calls to proceed.
3179 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
3180 (do_target_resume): New function, factored out from ...
3181 (resume): ... here. Remove 'step' parameter. Instead, check
3182 currently_stepping to determine whether the thread should be
3183 single-stepped.
3184 (proceed): Remove 'step' parameter and don't set the thread's
3185 step_start_function here. Adjust call to 'resume'.
3186 (handle_inferior_event): Adjust calls to 'resume'.
3187 (switch_back_to_stepped_thread): Use do_target_resume instead of
3188 'resume'.
3189 (keep_going): Adjust calls to 'resume'.
3190 * infrun.h (proceed): Remove 'step' parameter.
3191 (resume): Likewise.
3192 * windows-nat.c (do_initial_windows_stuff): Adjust call to
3193 'resume'.
3194 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
3195
3196 2015-03-24 Pedro Alves <palves@redhat.com>
3197
3198 * gdbthread.h (struct thread_control_state) <stepping_command>:
3199 New field.
3200 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
3201 the thread's stepping_command field.
3202 * infrun.c (resume): Check the thread's stepping_command flag to
3203 determine which threads should be resumed. Rename 'entry_step'
3204 local to user_step.
3205 (clear_proceed_status_thread): Clear 'stepping_command'.
3206 (schedlock_applies): Change parameter type to struct thread_info
3207 pointer. Adjust.
3208 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
3209 (switch_back_to_stepped_thread): Adjust calls to
3210 'schedlock_applies'.
3211 (_initialize_infrun): Adjust "set scheduler-locking step" help.
3212
3213 2015-03-24 Pedro Alves <palves@redhat.com>
3214
3215 * infrun.c (step_start_function): Delete and ...
3216 * gdbthread.h (struct thread_control_state) <step_start_function>:
3217 ... now a field here.
3218 * infrun.c (clear_proceed_status_thread): Clear the thread's
3219 step_start_function.
3220 (proceed, process_event_stop_test, print_stop_event): Adjust.
3221
3222 2015-03-24 Pedro Alves <palves@redhat.com>
3223
3224 * infrun.c (proceed): No longer handle negative step.
3225
3226 2015-03-24 Gary Benson <gbenson@redhat.com>
3227
3228 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
3229 (x86_linux_prepare_to_resume): Likewise.
3230 * x86-linux-nat.c (x86_linux_new_thread):
3231 Moved to nat/x86-linux.c.
3232 (x86_linux_prepare_to_resume): Likewise.
3233 * nat/x86-linux.c (x86_linux_new_thread): New function.
3234 (x86_linux_prepare_to_resume): Likewise.
3235
3236 2015-03-24 Gary Benson <gbenson@redhat.com>
3237
3238 * nat/x86-linux-dregs.h: New file.
3239 * nat/x86-linux-dregs.c: Likewise.
3240 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
3241 (x86-linux-dregs.o): New rule.
3242 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
3243 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3244 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
3245 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
3246 (x86_linux_dr_get): Likewise.
3247 (x86_linux_dr_set): Likewise.
3248 (x86_linux_dr_get_addr): Likewise.
3249 (x86_linux_dr_get_control): Likewise.
3250 (x86_linux_dr_get_status): Likewise.
3251 (update_debug_registers_callback): Likewise.
3252 (x86_linux_dr_set_control): Likewise.
3253 (x86_linux_dr_set_addr): Likewise.
3254 (x86_linux_update_debug_registers): Likewise.
3255
3256 2015-03-24 Gary Benson <gbenson@redhat.com>
3257
3258 * x86-linux-nat.c (x86_linux_update_debug_registers):
3259 New function, factored out from...
3260 (x86_linux_prepare_to_resume): ...this.
3261
3262 2015-03-24 Gary Benson <gbenson@redhat.com>
3263
3264 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
3265 (x86_linux_dr_set): Likewise.
3266 (x86_linux_dr_get_addr): Likewise.
3267 (x86_linux_dr_get_control): Likewise.
3268 (x86_linux_dr_get_status): Likewise.
3269 (update_debug_registers_callback): Likewise.
3270 (x86_linux_dr_set_control): Likewise.
3271 (x86_linux_dr_set_addr): Likewise.
3272 (x86_linux_prepare_to_resume): Likewise.
3273 (x86_linux_new_thread): Likewise.
3274
3275 2015-03-24 Gary Benson <gbenson@redhat.com>
3276
3277 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
3278 (x86_linux_new_thread): Rename argument.
3279
3280 2015-03-24 Gary Benson <gbenson@redhat.com>
3281
3282 * nat/x86-linux.h: New file.
3283 * nat/x86-linux.c: Likewise.
3284 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
3285 (x86-linux.o): New rule.
3286 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
3287 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3288 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
3289 (lwp_set_arch_private_info): New declaration.
3290 (lwp_arch_private_info): Likewise.
3291 * linux-nat.c (lwp_set_arch_private_info): New function.
3292 (lwp_arch_private_info): Likewise.
3293 * x86-linux-nat.c: Include nat/x86-linux.h.
3294 (arch_lwp_info): Removed structure.
3295 (update_debug_registers_callback):
3296 Use lwp_set_debug_registers_changed.
3297 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
3298 and lwp_set_debug_registers_changed.
3299 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
3300
3301 2015-03-24 Gary Benson <gbenson@redhat.com>
3302
3303 * nat/linux-nat.h (ptid_of_lwp): New declaration.
3304 (lwp_is_stopped): Likewise.
3305 (lwp_stop_reason): Likewise.
3306 * linux-nat.c (ptid_of_lwp): New function.
3307 (lwp_is_stopped): Likewise.
3308 (lwp_is_stopped_by_watchpoint): Likewise.
3309 * x86-linux-nat.c (update_debug_registers_callback):
3310 Use lwp_is_stopped.
3311 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
3312 lwp_stop_reason.
3313
3314 2015-03-24 Gary Benson <gbenson@redhat.com>
3315
3316 * linux-nat.h (linux_stop_lwp): Move declaration to...
3317 * nat/linux-nat.h (linux_stop_lwp): New declaration.
3318
3319 2015-03-24 Gary Benson <gbenson@redhat.com>
3320
3321 * linux-nat.h: Include nat/linux-nat.h.
3322 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
3323 * nat/linux-nat.h (struct lwp_info): New forward declaration.
3324 (iterate_over_lwps_ftype): New typedef.
3325 (iterate_over_lwps): New declaration.
3326 * linux-nat.h (iterate_over_lwps): Update comment. Use
3327 iterate_over_lwps_ftype. Update callback return value check.
3328
3329 2015-03-24 Gary Benson <gbenson@redhat.com>
3330
3331 * x86-nat.h (x86_debug_reg_state): Move declaration to...
3332 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
3333
3334 2015-03-24 Gary Benson <gbenson@redhat.com>
3335
3336 * nat/linux-nat.h (current_lwp_ptid): New declaration.
3337 * linux-nat.c (current_lwp_ptid): New function.
3338 * x86-linux-nat.c: Include nat/linux-nat.h.
3339 (x86_linux_dr_get_addr): Use current_lwp_ptid.
3340 (x86_linux_dr_get_control): Likewise.
3341 (x86_linux_dr_get_status): Likewise.
3342 (x86_linux_dr_set_control): Likewise.
3343 (x86_linux_dr_set_addr): Likewise.
3344
3345 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
3346
3347 PR breakpoints/16466
3348 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
3349
3350 2015-03-23 Joel Brobecker <brobecker@adacore.com>
3351
3352 * ser-mingw.c (ser_windows_setparity): Fix indentation.
3353 * ser-unix.c (hardwire_setparity): Likewise.
3354
3355 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
3356
3357 * NEWS: Mention set/show serial parity command.
3358 * monitor.c (monitor_open): Call serial_setparity.
3359 * remote.c (remote_open_1): Likewise.
3360 * ser-base.c (ser_base_serparity): New function.
3361 * ser-base.h (ser_base_setparity): Add declaration.
3362 * ser-go32.c (dos_ops): Set "setparity" field.
3363 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
3364 state.Parity.
3365 (ser_windows_setparity): New function.
3366 (hardwire_ops): Add ser_windows_setparity.
3367 (tty_ops): Add NULL for setparity field.
3368 (pipe_ops): Add ser_base_setparity.
3369 (tcp_ops): Likewise.
3370 * ser-pipe.c (pipe_ops): Likewise.
3371 * ser-tcp.c (tcp_ops): Likewise.
3372 * ser-unix.c (hardwire_setparity): Add declaration.
3373 (hardwire_raw): Don't reset PARENB flag.
3374 (hardwire_setparity): New function.
3375 (hardwire_ops): Add hardwire_setparity.
3376 * serial.c (serial_setparity): New function.
3377 (serial_parity): New global.
3378 (parity_none, parity_odd, parity_even, parity_enums, parity):
3379 New static globals.
3380 (set_parity): New function.
3381 (_initialize_serial): Add set/show serial parity commands.
3382 * serial.h (GDBPARITY_NONE): Define.
3383 (GDBPARITY_ODD): Define.
3384 (GDBPARITY_EVEN): Define.
3385 (serial_setparity) Add declaration.
3386 (struct serial_ops): Add setparity field.
3387 * target.h (serial_parity): Add declaration.
3388
3389 2015-03-23 Keith Seitz <keiths@redhat.com>
3390
3391 * linespec.c (linespec_lexer_lex_keyword): Update comment.
3392
3393 2015-03-23 Keith Seitz <keiths@redhat.com>
3394
3395 * breakpoint.c (parse_breakpoint_sals): Use
3396 linespec_lexer_lex_keyword to ascertain if the user specified
3397 a NULL location.
3398 * linespec.c [IF_KEYWORD_INDEX]: Define.
3399 (linespec_lexer_lex_keyword): Export.
3400 (struct ls_parser) <keyword_ok>: Remove.
3401 A keyword is only a keyword if not followed by another keyword.
3402 (linespec_lexer_lex_one): Remove keyword_ok handling.
3403 Add comment explaining why the parsing stream is not advanced
3404 when a keyword is seen.
3405 (parse_linespec): Remove parser->keyword_ok.
3406 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
3407
3408 2015-03-23 Keith Seitz <keiths@redhat.com>
3409
3410 PR gdb/18021
3411 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
3412 if we find a static method with DW_AT_vtable_elem_location.
3413
3414 2015-03-21 Eli Zaretskii <eliz@gnu.org>
3415
3416 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
3417 before the second loop, to avoid undefined behavior. Reported by
3418 Anton Blanchard <anton@samba.org>.
3419
3420 2015-03-20 Keven Boell <keven.boell@intel.com>
3421
3422 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
3423 data_location usage to linked list.
3424 (resolve_dynamic_type_internal): Adapt data_location to
3425 linked list.
3426 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
3427 (copy_type_recursive, copy_type): Add copy of linked list.
3428 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
3429 (struct dynamic_prop_list): New struct.
3430 * dwarf2read.c (set_die_type): Set data_location data.
3431
3432 2015-03-20 Pedro Alves <palves@redhat.com>
3433
3434 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
3435 inner block and make it const.
3436 * machoread.c (get_archive_prefix_len): Make "lparen" const.
3437
3438 2015-03-20 Pedro Alves <palves@redhat.com>
3439
3440 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
3441 * breakpoint.h (set_breakpoint_condition): Update declaration.
3442
3443 2015-03-20 Pedro Alves <palves@redhat.com>
3444
3445 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
3446
3447 2015-03-20 Pedro Alves <palves@redhat.com>
3448
3449 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
3450
3451 2015-03-20 Pedro Alves <palves@redhat.com>
3452
3453 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
3454
3455 2015-03-20 Pedro Alves <palves@redhat.com>
3456
3457 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
3458 (nto_init_solib_absolute_prefix): Likewise.
3459
3460 2015-03-20 Pedro Alves <palves@redhat.com>
3461
3462 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
3463 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
3464
3465 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3466
3467 * config/djgpp/README: Remove gdb.hp.
3468
3469 2015-03-20 Yao Qi <yao.qi@linaro.org>
3470
3471 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
3472 set_gdbarch_cannot_step_breakpoint.
3473
3474 2015-03-19 Pedro Alves <palves@redhat.com>
3475
3476 * linux-nat.c (linux_resume_one_lwp): Rename to ...
3477 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
3478 instead call perror_with_name.
3479 (check_ptrace_stopped_lwp_gone): New function.
3480 (linux_resume_one_lwp): Reimplement as wrapper around
3481 linux_resume_one_lwp_throw that swallows errors if the LWP is
3482 gone.
3483 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
3484 swallows errors if the LWP is gone. Use
3485 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
3486
3487 2015-03-19 Pedro Alves <palves@redhat.com>
3488
3489 * linux-nat.c (status_callback): Return early if the LWP has no
3490 status pending.
3491
3492 2015-03-19 Pedro Alves <palves@redhat.com>
3493
3494 * linux-nat.c (select_event_lwp_callback): Update comment to no
3495 longer mention SIGTRAP.
3496
3497 2015-03-18 Tristan Gingold <gingold@adacore.com>
3498
3499 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
3500 redirection code to ...
3501 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
3502 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
3503
3504 2015-03-18 Gary Benson <gbenson@redhat.com>
3505
3506 (remote_protocol_features): Remove the "vFile:fstat" feature.
3507 (remote_hostio_fstat): Probe for "vFile:fstat" support.
3508
3509 2015-03-11 Yao Qi <yao.qi@linaro.org>
3510
3511 PR tdep/18107
3512 * aarch64-linux-tdep.c: Include xml-syscall.h
3513 (aarch64_linux_get_syscall_number): New function.
3514 (aarch64_linux_init_abi): Call
3515 set_gdbarch_get_syscall_number.
3516 * syscalls/aarch64-linux.xml: New file.
3517
3518 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
3519
3520 * ser-base.h (ser_base_setstopbits): Change second argument name
3521 from "rate" to "num".
3522
3523 2015-03-17 Gary Benson <gbenson@redhat.com>
3524 Luke Allardyce <lukeallardyce@gmail.com>
3525
3526 PR gdb/18131
3527 * common/common-remote-fileio.h (sys/stat.h): New include.
3528 (stuct stat): Remove forward declaration.
3529
3530 2015-03-16 John Baldwin <jhb@FreeBSD.org>
3531
3532 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
3533 before writing core register notes.
3534
3535 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
3536 Pedro Alves <palves@redhat.com>
3537
3538 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
3539 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
3540 (tgoto): Wrap with extern "C".
3541
3542 2015-03-16 Pedro Alves <palves@redhat.com>
3543 Yuanhui Zhang <asmwarrior@gmail.com>
3544
3545 * stub-termcap.c (tputs): Change prototype.
3546
3547 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
3548 Pedro Alves <palves@redhat.com>
3549
3550 * windows-nat.c (struct thread_info_struct): Rename to ...
3551 (struct windows_thread_info_struct): ... this.
3552 (thread_info): Rename to ...
3553 (windows_thread_info): ... this.
3554 All users updated.
3555
3556 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3557 Pedro Alves <palves@redhat.com>
3558
3559 * NEWS: New Removed targets and native configurations.
3560
3561 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3562
3563 Remove HPUX.
3564 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
3565 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
3566 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
3567 ia64-hpux-tdep.h, solib-ia64-hpux.h.
3568 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
3569 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
3570 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
3571 hppa-hpux-tdep.c.
3572 * config/ia64/hpux.mh: Remove file.
3573 * config/pa/hpux.mh: Remove file.
3574 * configure: Rebuilt.
3575 * configure.ac (dlgetmodinfo, somread.o): Remove.
3576 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
3577 (ia64-*-hpux*): Remove its float format exception.
3578 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
3579 * hppa-hpux-nat.c: Remove file.
3580 * hppa-hpux-tdep.c: Remove file.
3581 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
3582 Move them here from hppa-tdep.h
3583 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
3584 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
3585 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
3586 Move them to hppa-tdep.c.
3587 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
3588 declarations.
3589 * ia64-hpux-nat.c: Remove file.
3590 * ia64-hpux-tdep.c: Remove file.
3591 * ia64-hpux-tdep.h: Remove file.
3592 * inf-ttrace.c: Remove file.
3593 * inf-ttrace.h: Remove file.
3594 * solib-ia64-hpux.c: Remove file.
3595 * solib-ia64-hpux.h: Remove file.
3596 * solib-pa64.c: Remove file.
3597 * solib-pa64.h: Remove file.
3598 * solib-som.c: Remove file.
3599 * solib-som.h: Remove file.
3600 * somread.c: Remove file.
3601
3602 2015-03-13 John Baldwin <jhb@FreeBSD.org>
3603
3604 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
3605 * config.in: Regenerate.
3606 * configure: Regenerate.
3607 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
3608 define.
3609 (fbsd_find_memory_regions): Use kinfo_getvmmap to
3610 enumerate memory regions if present.
3611
3612 2015-03-13 John Baldwin <jhb@FreeBSD.org>
3613
3614 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
3615 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
3616 expressions.
3617 (i386fbsd_sigtramp_p): Likewise.
3618
3619 2015-03-12 John Baldwin <jhb@FreeBSD.org>
3620
3621 * MAINTAINERS (Write After Approval): Add John Baldwin.
3622
3623 2015-03-12 Gary Benson <gbenson@redhat.com>
3624
3625 * solib.c (_initialize_solib): Make "set/show sysroot" use
3626 add_setshow_optional_filename_cmd so it can be restored to
3627 empty after being set.
3628
3629 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
3630
3631 * Makefile.in (SFILES): New source break-catch-syscall.c.
3632 (COMMON_OBS): New object break-catch-syscall.o.
3633 * break-catch-syscall.c: New file.
3634 * breakpoint.c: Remove inclusion of "xml-syscall.h".
3635 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
3636 (struct syscall_catchpoint): Likewise.
3637 (dtor_catch_syscall): Likewise.
3638 (catch_syscall_inferior_data): Likewise.
3639 (struct catch_syscall_inferior_data): Likewise.
3640 (get_catch_syscall_inferior_data): Likewise.
3641 (catch_syscall_inferior_data_cleanup): Likewise.
3642 (insert_catch_syscall): Likewise.
3643 (remove_catch_syscall): Likewise.
3644 (breakpoint_hit_catch_syscall): Likewise.
3645 (print_it_catch_syscall): Likewise.
3646 (print_one_catch_syscall): Likewise.
3647 (print_mention_catch_syscall): Likewise.
3648 (print_recreate_catch_syscall): Likewise.
3649 (catch_syscall_breakpoint_ops): Likewise.
3650 (syscall_catchpoint_p): Likewise.
3651 (create_syscall_event_catchpoint): Likewise.
3652 (catch_syscall_split_args): Likewise.
3653 (catch_syscall_command_1): Likewise.
3654 (is_syscall_catchpoint_enabled): Likewise.
3655 (catch_syscall_enabled): Likewise.
3656 (catching_syscall_number): Likewise.
3657 (catch_syscall_completer): Likewise.
3658 (clear_syscall_counts): Likewise.
3659 (initialize_breakpoint_ops): Move initialization of syscall
3660 catchpoints to break-catch-syscall.c.
3661 (_initialize_breakpoint): Move code related to syscall catchpoints
3662 to break-catch-syscall.c.
3663
3664 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
3665
3666 * breakpoint.c (breakpoint_find_if): New function.
3667 * breakpoint.h (breakpoint_find_if): New prototype.
3668
3669 2015-03-11 Gary Benson <gbenson@redhat.com>
3670
3671 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
3672 * remote-fileio.c (remote_fileio_to_host_uint): New function.
3673 (remote_fileio_to_host_ulong): Likewise.
3674 (remote_fileio_to_host_mode): Likewise.
3675 (remote_fileio_to_host_time): Likewise.
3676 (remote_fileio_to_host_stat): Likewise.
3677 * remote.c (PACKET_vFile_fstat): New enum value.
3678 (remote_protocol_features): Register the "vFile:fstat" feature.
3679 (remote_hostio_fstat): New function.
3680 (remote_bfd_iovec_stat): Use the above.
3681 (_initialize_remote): Register new "set/show remote
3682 hostio-fstat-packet" command.
3683 * symfile.c (separate_debug_file_exists): Update comment.
3684 * NEWS: Announce new vFile:fstat packet.
3685
3686 2015-03-11 Gary Benson <gbenson@redhat.com>
3687
3688 * common/common-remote-fileio.h: New file.
3689 * common/common-remote-fileio.c: Likewise.
3690 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
3691 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
3692 (COMMON_OBS): Add common-remote-fileio.o.
3693 (common-remote-fileio.o): New rule.
3694 * remote-fileio.h (common-remote-fileio.h): New include.
3695 * remote-fileio.c (gdb/fileio.h): Do not include.
3696 (remote_fileio_to_be): Moved to common-remote-fileio.h.
3697 (remote_fileio_to_fio_uint): Likewise.
3698 (remote_fileio_to_fio_time): Likewise.
3699 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
3700 (remote_fileio_to_fio_mode): Likewise.
3701 (remote_fileio_to_fio_ulong): Likewise.
3702 (remote_fileio_to_fio_stat): Likewise.
3703
3704 2015-03-11 Andy Wingo <wingo@igalia.com>
3705
3706 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
3707 we were checking the cached type, not the cached dynamic type.
3708
3709 2015-03-11 Andy Wingo <wingo@igalia.com>
3710
3711 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
3712 other strings, as these are on the GC'd heap, and will be
3713 collected along with the smob.
3714
3715 2015-03-11 Andy Wingo <wingo@igalia.com>
3716
3717 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
3718 (objfile_functions): Bind gdbscm_objfile_progspace to
3719 objfile-progspace.
3720 * guile/lib/gdb.scm: Add objfile-progspace to exports.
3721
3722 2015-03-11 Andy Wingo <wingo@igalia.com>
3723
3724 * guile/guile.c (_initialize_guile): Disable automatic
3725 finalization, if Guile offers us that possibility.
3726 * guile/guile.c (call_initialize_gdb_module):
3727 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
3728 finalizers in appropriate places.
3729 * configure.ac (AC_TRY_LIBGUILE): Add a check for
3730 scm_set_automatic_finalization_enabled.
3731 * configure: Regenerated.
3732
3733 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
3734
3735 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
3736 SAL, if possible.
3737
3738 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
3739
3740 * s390-linux-nat.c (struct arch_lwp_info): New.
3741 (s390_fix_watch_points): Rename to...
3742 (s390_prepare_to_resume): ...this. Skip the PER info update
3743 unless the watch points have changed.
3744 (s390_refresh_per_info, s390_new_thread): New functions.
3745 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
3746 s390_fix_watch_points.
3747 (s390_remove_watchpoint): Likewise.
3748 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
3749 Register s390_prepare_to_resume.
3750
3751 2015-03-09 Pedro Alves <palves@redhat.com>
3752
3753 Revert:
3754 2015-03-07 Pedro Alves <palves@redhat.com>
3755 * common/gdb_socket.h: New file.
3756 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
3757 sys/socket.h.
3758 (net_open): Use union gdb_sockaddr_u.
3759
3760 2015-03-07 Pedro Alves <palves@redhat.com>
3761
3762 * configure.ac (build_warnings): Move -Wmissing-prototypes
3763 -Wdeclaration-after-statement -Wmissing-parameter-type
3764 -Wold-style-declaration -Wold-style-definition to the C-specific
3765 set.
3766 * configure: Regenerate.
3767
3768 2015-03-07 Pedro Alves <palves@redhat.com>
3769
3770 * common/gdb_socket.h: New file.
3771 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
3772 sys/socket.h.
3773 (net_open): Use union gdb_sockaddr_u.
3774
3775 2015-03-07 Pedro Alves <palves@redhat.com>
3776
3777 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
3778 (exceptions_state_mc_action_iter)
3779 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
3780 Don't define.
3781 [__cplusplus] (try_scope_depth): New global.
3782 [__cplusplus] (exception_try_scope_entry)
3783 (exception_try_scope_exit, gdb_exception_sliced_copy)
3784 (exception_rethrow): New functions.
3785 (throw_exception): In C++ mode, throw
3786 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
3787 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
3788 (throw_it): In C++ mode, use try_scope_depth.
3789 * common/common-exceptions.h [!__cplusplus]
3790 (exceptions_state_mc_action_iter)
3791 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
3792 Don't declare.
3793 [__cplusplus] (exception_try_scope_entry)
3794 (exception_try_scope_exit, exception_rethrow): Declare.
3795 [__cplusplus] (struct exception_try_scope): New struct.
3796 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
3797 C++ exceptions.
3798 (struct gdb_exception_RETURN_MASK_ALL)
3799 (struct gdb_exception_RETURN_MASK_ERROR)
3800 (struct gdb_exception_RETURN_MASK_QUIT): New types.
3801
3802 2015-03-07 Pedro Alves <palves@redhat.com>
3803
3804 * main.c (handle_command_errors): Remove volatile qualifier from
3805 parameter.
3806
3807 2015-03-07 Pedro Alves <palves@redhat.com>
3808
3809 * breakpoint.c (save_breakpoints): Adjust to avoid code between
3810 TRY and CATCH.
3811 * gdbtypes.c (safe_parse_type): Remove empty line.
3812 (types_deeply_equal):
3813 * guile/scm-frame.c (gdbscm_frame_name):
3814 * linux-thread-db.c (find_new_threads_once):
3815 * python/py-breakpoint.c (bppy_get_commands):
3816 * record-btrace.c (record_btrace_insert_breakpoint)
3817 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
3818 (record_btrace_start_replaying): Adjust to avoid code between TRY
3819 and CATCH.
3820
3821 2015-03-07 Pedro Alves <palves@redhat.com>
3822
3823 * common/common-exceptions.c (struct catcher) <exception>: No
3824 longer a pointer to volatile exception. Now an exception value.
3825 <mask>: Delete field.
3826 (exceptions_state_mc_init): Remove all parameters. Adjust.
3827 (exceptions_state_mc): No longer pop the catcher here.
3828 (exceptions_state_mc_catch): New function.
3829 (throw_exception): Adjust.
3830 * common/common-exceptions.h (exceptions_state_mc_init): Remove
3831 all parameters.
3832 (exceptions_state_mc_catch): Declare.
3833 (TRY_CATCH): Rename to ...
3834 (TRY): ... this. Remove EXCEPTION and MASK parameters.
3835 (CATCH, END_CATCH): New.
3836 All callers adjusted.
3837
3838 2015-03-07 Tom Tromey <tromey@redhat.com>
3839
3840 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
3841
3842 2015-03-07 Pedro Alves <palves@redhat.com>
3843
3844 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
3845 (amd64_epilogue_frame_cache): Normal exception handling code.
3846 * break-catch-throw.c (check_status_exception_catchpoint)
3847 (re_set_exception_catchpoint): Ditto.
3848 * cli/cli-interp.c (safe_execute_command):
3849 * cli/cli-script.c (script_from_file): Ditto.
3850 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
3851 Ditto.
3852 * compile/compile-object-run.c (compile_object_run): Ditto.
3853 * cp-abi.c (baseclass_offset): Ditto.
3854 * cp-valprint.c (cp_print_value): Ditto.
3855 * exceptions.c (catch_exceptions_with_msg):
3856 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
3857 * frame.c (get_frame_address_in_block_if_available): Ditto.
3858 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
3859 (i386_sigtramp_frame_cache): Ditto.
3860 * infcmd.c (post_create_inferior): Ditto.
3861 * linespec.c (parse_linespec, find_linespec_symbols):
3862 * p-valprint.c (pascal_object_print_value): Ditto.
3863 * parse.c (parse_expression_for_completion): Ditto.
3864 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3865 * remote.c (remote_get_noisy_reply): Ditto.
3866 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
3867 * solib-svr4.c (solib_svr4_r_map): Ditto.
3868
3869 2015-03-06 Gary Benson <gbenson@redhat.com>
3870
3871 * common/common-utils.h (startswith): New inline function.
3872 All places where this logic was used updated to use the above.
3873
3874 2015-03-05 Pedro Alves <palves@redhat.com>
3875
3876 PR gdb/18002
3877 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
3878 after reading the breakpoint's shadow memory.
3879
3880 2015-03-05 Mark Kettenis <kettenis@gnu.org>
3881
3882 * hppabsd-nat.c: Remove file.
3883 * hppaobsd-nat.c: New file.
3884 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
3885 hppaobsd-nat.c.
3886 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
3887 hppaobsd-nat.o.
3888
3889 2015-03-04 Pedro Alves <palves@redhat.com>
3890
3891 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
3892 (target_decr_pc_after_break): Delete declaration.
3893 * target.c (default_target_decr_pc_after_break)
3894 (target_decr_pc_after_break): Delete.
3895 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
3896 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
3897 * linux-thread-db.c (check_event): Likewise.
3898 * infrun.c (adjust_pc_after_break): Likewise.
3899 * darwin-nat.c (cancel_breakpoint): Likewise.
3900 * aix-thread.c (aix_thread_wait): Likewise.
3901 * target-delegates.c: Regenerate.
3902
3903 2015-03-04 Pedro Alves <palves@redhat.com>
3904
3905 * linux-nat.c (save_sigtrap): Check for breakpoints before
3906 checking watchpoints.
3907 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
3908 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3909 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
3910 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
3911 (linux_nat_stopped_by_sw_breakpoint)
3912 (linux_nat_supports_stopped_by_sw_breakpoint)
3913 (linux_nat_stopped_by_hw_breakpoint)
3914 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
3915 (linux_nat_wait_1): Don't re-increment the PC if relying on
3916 SIGTRAP's siginfo->si_code.
3917 (linux_nat_add_target): Install new target methods.
3918 * linux-thread-db.c (check_event): Don't account for breakpoint PC
3919 offset if the target already adjusted the PC.
3920 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
3921 (GDB_ARCH_TRAP_BRKPT): New.
3922 (TRAP_HWBKPT): Define if not already defined.
3923
3924 2015-03-04 Pedro Alves <palves@redhat.com>
3925
3926 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
3927 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
3928 Delete field.
3929 <stop_reason>: New field.
3930 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
3931 (packet_set_cmd_state): New function.
3932 (remote_protocol_features): Register the "swbreak" and "hwbreak"
3933 features.
3934 (remote_query_supported): If not disabled with the corresponding
3935 "set remote foo-packet" command, report support for the swbreak
3936 and hwbreak features.
3937 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
3938 field.
3939 <stop_reason>: New field.
3940 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
3941 (remote_wait_as): Adjust.
3942 (remote_stopped_by_sw_breakpoint)
3943 (remote_supports_stopped_by_sw_breakpoint)
3944 (remote_stopped_by_hw_breakpoint)
3945 (remote_supports_stopped_by_hw_breakpoint): New functions.
3946 (remote_stopped_by_watchpoint): New function.
3947 (init_remote_ops): Install them.
3948 (_initialize_remote): Register new "set/show remote
3949 swbreak-feature-packet" and "set/show remote
3950 swbreak-feature-packet" commands.
3951
3952 2015-03-04 Pedro Alves <palves@redhat.com>
3953
3954 * btrace.h: Include target/waitstatus.h.
3955 (struct btrace_thread_info) <stop_reason>: New field.
3956 * record-btrace.c (record_btrace_step_thread): Use
3957 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
3958 (record_btrace_decr_pc_after_break): Delete.
3959 (record_btrace_stopped_by_sw_breakpoint)
3960 (record_btrace_supports_stopped_by_sw_breakpoint)
3961 (record_btrace_stopped_by_hw_breakpoint)
3962 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
3963 (init_record_btrace_ops): Install them.
3964 * record-full.c (record_full_hw_watchpoint): Delete and replace
3965 with ...
3966 (record_full_stop_reason): ... this throughout.
3967 (record_full_exec_insn): Adjust.
3968 (record_full_wait_1): Adjust. No longer re-increment the PC.
3969 (record_full_wait_1): Adjust. Use
3970 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
3971 (record_full_stopped_by_watchpoint): Adjust.
3972 (record_full_stopped_by_sw_breakpoint)
3973 (record_full_supports_stopped_by_sw_breakpoint)
3974 (record_full_supports_stopped_by_sw_breakpoint)
3975 (record_full_stopped_by_hw_breakpoint)
3976 (record_full_supports_stopped_by_hw_breakpoint): New functions.
3977 (init_record_full_ops, init_record_full_core_ops): Install them.
3978 * record.c (record_check_stopped_by_breakpoint): New function.
3979 * record.h: Include target/waitstatus.h.
3980 (record_check_stopped_by_breakpoint): New declaration.
3981
3982 2015-03-04 Pedro Alves <palves@redhat.com>
3983
3984 enum lwp_stop_reason -> enum target_stop_reason
3985 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
3986 (linux_nat_stopped_by_watchpoint, status_callback)
3987 (linux_nat_wait_1): Adjust.
3988 * linux-nat.h (enum lwp_stop_reason): Delete.
3989 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
3990 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
3991 * target/waitstatus.h (enum target_stop_reason): New.
3992
3993 2015-03-04 Pedro Alves <palves@redhat.com>
3994
3995 * breakpoint.c (need_moribund_for_location_type): New function.
3996 (bpstat_stop_status): Don't skipping checking moribund locations
3997 of breakpoint types which the target tell caused a stop.
3998 (program_breakpoint_here_p): New function, factored out from ...
3999 (bp_loc_is_permanent): ... this.
4000 (update_global_location_list): Don't create a moribund location if
4001 the target supports reporting stops of the type of the removed
4002 breakpoint.
4003 * breakpoint.h (program_breakpoint_here_p): New declaration.
4004 * infrun.c (adjust_pc_after_break): Return early if the target has
4005 already adjusted the PC. Add comments.
4006 (handle_signal_stop): If nothing explains a signal, and the target
4007 tells us the stop was caused by a software breakpoint, check if
4008 there's a breakpoint instruction in the memory. If so, adjust the
4009 PC before presenting the stop to the user. Otherwise, ignore the
4010 trap. If nothing explains a signal, and the target tells us the
4011 stop was caused by a hardware breakpoint, ignore the trap.
4012 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
4013 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
4014 to_supports_stopped_by_hw_breakpoint>: New fields.
4015 (target_stopped_by_sw_breakpoint)
4016 (target_supports_stopped_by_sw_breakpoint)
4017 (target_stopped_by_hw_breakpoint)
4018 (target_supports_stopped_by_hw_breakpoint): Define.
4019 * target-delegates.c: Regenerate.
4020
4021 2015-03-04 Pedro Alves <palves@redhat.com>
4022
4023 * infrun.c (follow_fork_inferior): Use the whole of the
4024 inferior_ptid and pending_follow.related_pid ptids instead of
4025 building ptids from the process components. Adjust verbose output
4026 to use target_pid_to_str.
4027 * linux-nat.c (linux_child_follow_fork): Use the whole of the
4028 inferior_ptid and pending_follow.related_pid ptids instead of
4029 building ptids from the process components.
4030
4031 2015-03-04 Mark Kettenis <kettenis@gnu.org>
4032
4033 * inf-ptrace.c [PT_GET_PROCESS_STATE]
4034 (inf_ptrace_insert_fork_catchpoint): New function.
4035 (inf_ptrace_remove_fork_catchpoint): New function.
4036 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
4037
4038 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
4039
4040 * s390-linux-tdep.c (s390_register_name): Return empty string
4041 instead of NULL for registers that shouldn't be visible.
4042
4043 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
4044
4045 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
4046 XML file for 64-bit targets.
4047
4048 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
4049
4050 * target.h (find_default_create_inferior): Remove declaration.
4051 (find_default_attach): Likewise.
4052
4053 2015-03-03 Pedro Alves <palves@redhat.com>
4054
4055 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
4056 Use ptid_get_pid to get the overall process id when resuming all
4057 threads.
4058
4059 2015-03-03 Pedro Alves <palves@redhat.com>
4060
4061 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
4062 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
4063 * inf-ptrace.c (get_ptrace_pid): New function.
4064 (inf_ptrace_resume): Use it.
4065 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
4066 to the lower layer.
4067
4068 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
4069
4070 * nat/linux-btrace.c: Include sys/utsname.h.
4071 (linux_determine_kernel_ptr_bits): New.
4072 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
4073 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
4074 ptr_bits.
4075
4076 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
4077
4078 * btrace.c (ftrace_update_function): Treat return as tailcall for
4079 "_dl_runtime_resolve".
4080
4081 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
4082
4083 * btrace.h (btrace_function) <lbegin, lend>: Remove.
4084 * btrace.c (ftrace_debug): Do not print the line range.
4085 (ftrace_skip_file, ftrace_update_lines): Remove.
4086 (ftrace_new_function): Remove lbegin and lend initialization.
4087 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
4088 * record-btrace.c (btrace_compute_src_line_range): New.
4089 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
4090
4091 2015-03-02 Pedro Alves <palves@redhat.com>
4092
4093 * infrun.c (follow_exec): Delete all threads of the process except
4094 the event thread. Extended comments.
4095
4096 2015-03-02 Joel Brobecker <brobecker@adacore.com>
4097
4098 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
4099
4100 2015-03-02 Joel Brobecker <brobecker@adacore.com>
4101
4102 * utils.h: Remove <stdbool.h> #include.
4103 (producer_is_gcc): Change return type to "int".
4104 * utils.c (producer_is_gcc): Change return type to int.
4105 Return 1 instead of true, and 0 instead of false.
4106 Adjust function documentation accordingly.
4107
4108 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
4109
4110 * s390-linux-nat.c (have_regset_vxrs): New static variable.
4111 (s390_linux_fetch_inferior_registers): Handle vector registers, if
4112 present.
4113 (s390_linux_store_inferior_registers): Likewise.
4114 (s390_get_hwcap): Remove function. Embed its logic...
4115 (s390_read_description): ...here. Yield a target description with
4116 vector registers if applicable.
4117 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
4118 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
4119 "features/s390x-tevx-linux64.c".
4120 (struct gdbarch_tdep) <v0_full_regnum>: New field.
4121 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
4122 for "GNU/Linux-specific registers".
4123 (s390_dwarf_reg_r0l): New enum value.
4124 (s390_dwarf_reg_to_regnum): Support vector registers.
4125 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
4126 of GPR lower halves.
4127 (regnum_is_vxr_full): New function.
4128 (s390_register_name): New function.
4129 (s390_pseudo_register_name): Handle v0-v15, which are composed of
4130 f0-f15 and v0l-v15l.
4131 (s390_pseudo_register_type): Likewise.
4132 (s390_pseudo_register_read): Likewise.
4133 (s390_pseudo_register_write): Likewise.
4134 (s390_value_from_register): Account for the fact that values are
4135 placed left-justified in vector registers.
4136 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
4137 the vector reggroup and omit them from the general reggroup.
4138 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
4139 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
4140 (s390_iterate_over_regset_sections): Add iterations for the two
4141 new vector regsets.
4142 (s390_core_read_description): Yield a target description with
4143 vector registers if applicable.
4144 (s390_gdbarch_init): Handle target descriptions with vector
4145 registers. Add "register_name" gdbarch method.
4146 (_initialize_s390_tdep): Call new tdesc initialization functions.
4147 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
4148 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
4149 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
4150 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
4151 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
4152 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
4153 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
4154 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
4155 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
4156 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
4157 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
4158 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
4159 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
4160 (S390_NUM_REGS): Adjust value.
4161 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
4162 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
4163 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
4164 * NEWS: Announce S/390 vector register support.
4165
4166 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
4167
4168 * features/s390-tevx-linux64.xml: New file.
4169 * features/s390-vx-linux64.xml: New file.
4170 * features/s390-vx.xml: New file.
4171 * features/s390x-tevx-linux64.xml: New file.
4172 * features/s390x-vx-linux64.xml: New file.
4173 * features/Makefile (WHICH): Add s390-vx-linux64,
4174 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
4175 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
4176 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
4177 macros.
4178 * features/s390-tevx-linux64.c: New generated file.
4179 * features/s390-vx-linux64.c: Likewise.
4180 * features/s390x-tevx-linux64.c: Likewise.
4181 * features/s390x-vx-linux64.c: Likewise.
4182 * regformats/s390-tevx-linux64.dat: Likewise.
4183 * regformats/s390-vx-linux64.dat: Likewise.
4184 * regformats/s390x-tevx-linux64.dat: Likewise.
4185 * regformats/s390x-vx-linux64.dat: Likewise.
4186
4187 2015-02-28 Doug Evans <xdje42@gmail.com>
4188
4189 * symtab.h (struct symtab) <next>: Fix comment.
4190
4191 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
4192
4193 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
4194 python_GdbMethods.
4195
4196 2015-02-27 Pedro Alves <palves@redhat.com>
4197
4198 * dtrace-probe.c (dtrace_probe_ops): Make extern.
4199
4200 2015-02-27 Pedro Alves <palves@redhat.com>
4201
4202 * common/common-exceptions.h (exception_none): Declare.
4203 * common/common-exceptions.c (exception_none): Moved from
4204 exceptions.c.
4205 (exceptions_state_mc_init): Use exception_none.
4206 * exceptions.c (exception_none): Move to
4207 common/common-exceptions.c.
4208 * exceptions.h (exception_none): Move to
4209 common/common-exceptions.h.
4210
4211 2015-02-27 Pedro Alves <palves@redhat.com>
4212
4213 * main.c (catch_command_errors, catch_command_errors_const):
4214 Remove 'mask' argument. Adjust.
4215 (captured_main): Adjust callers.
4216
4217 2015-02-27 Pedro Alves <palves@redhat.com>
4218
4219 * python/python-internal.h: Include "extension-priv.h".
4220
4221 2015-02-27 Pedro Alves <palves@redhat.com>
4222
4223 * breakpoint.h (enum print_stop_action): Move further up in the
4224 file.
4225
4226 2015-02-27 Pedro Alves <palves@redhat.com>
4227
4228 * gdbarch.sh: Include regcache.h.
4229 * gdbarch.h: Regenerate.
4230
4231 2015-02-27 Pedro Alves <palves@redhat.com>
4232
4233 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
4234 Remove duplicate const.
4235 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
4236 duplicate const.
4237
4238 2015-02-27 Pedro Alves <palves@redhat.com>
4239
4240 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
4241 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
4242 * features/feature_to_c.sh: Tag the generated xml_builtin array
4243 with extern const in C++ mode.
4244
4245 2015-02-27 Tom Tromey <tromey@redhat.com>
4246
4247 * minidebug.c (struct lzma_stream): Rename to ...
4248 (struct gdb_lzma_stream): ... this.
4249 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
4250
4251 2015-02-27 Pedro Alves <palves@redhat.com>
4252
4253 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
4254 function.
4255 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4256 (mi_cmd_stack_list_variables): Use it.
4257
4258 2015-02-27 Pedro Alves <palves@redhat.com>
4259
4260 * x86-linux-nat.c (u_debugreg_offset): New function.
4261 (x86_linux_dr_get, x86_linux_dr_set): Use it.
4262
4263 2015-02-27 Pedro Alves <palves@redhat.com>
4264
4265 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
4266 declaration.
4267 Include break-common.h.
4268
4269 2015-02-27 Tom Tromey <tromey@redhat.com>
4270 Pedro Alves <palves@redhat.com>
4271
4272 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
4273 local used to iterate over enums.
4274 * completer.c (signal_completer): Likewise.
4275 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
4276 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4277 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
4278 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
4279 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
4280 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
4281 * tui-wingeneral.c (tui_refresh_all): Likewise.
4282
4283 2015-02-27 Pedro Alves <palves@redhat.com>
4284
4285 * target.h: Include "infrun.h".
4286
4287 2015-02-27 Pedro Alves <palves@redhat.com>
4288
4289 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
4290
4291 2015-02-27 Pedro Alves <palves@redhat.com>
4292
4293 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
4294 (IPA_SYM): Use it.
4295 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
4296
4297 2015-02-27 Pedro Alves <palves@redhat.com>
4298
4299 * cli-out.c (_rl_erase_entire_line): Move declaration out of
4300 cli_mld_erase_entire_line, and make it extern "C".
4301 * common/common-defs.h (EXTERN_C): New.
4302 * completer.c (_rl_completion_prefix_display_length)
4303 (_rl_print_completions_horizontally, QSFUNC): Move declarations
4304 out of gdb_display_match_list_1.
4305 (_rl_qsort_string_compare): Move declaration out of
4306 gdb_display_match_list_1, and make it extern "C".
4307 * defs.h (re_comp): Use EXTERN_C.
4308 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
4309 and make it extern "C".
4310 (monstartup): Move declaration out of maintenance_set_profile_cmd,
4311 and make it extern "C".
4312 (main): Move declaration out of maintenance_set_profile_cmd.
4313 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
4314 EXTERN_C.
4315
4316 2015-02-27 Pedro Alves <palves@redhat.com>
4317
4318 * python/python.c (GdbMethods): Rename to ...
4319 (python_GdbMethods): ... this and make extern.
4320 (GdbModuleDef): Rename to ...
4321 (python_GdbModuleDef): ... this and make extern.
4322
4323 2015-02-27 Pedro Alves <palves@redhat.com>
4324
4325 * record-btrace.c (set_record_btrace_cmdlist)
4326 (show_record_btrace_cmdlist): Remove redefinitions.
4327
4328 2015-02-27 Tom Tromey <tromey@redhat.com>
4329 Pedro Alves <palves@redhat.com>
4330
4331 * dwarf2-frame.c (enum cfa_how_kind, struct
4332 dwarf2_frame_state_reg_info): Move out of struct
4333 dwarf2_frame_state.
4334 * dwarf2read.c (struct tu_stats): Move out of struct
4335 dwarf2_per_objfile.
4336 (struct file_entry): Move out of struct line_header.
4337 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
4338 typedef_field_list): Move out of struct field_info.
4339 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
4340 Move out of struct dynamic_prop.
4341 (union type_owner, union field_location, struct field, struct
4342 range_bounds, union type_specific): Move out of struct main_type.
4343 (struct fn_fieldlist, struct fn_field, struct typedef_field)
4344 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
4345 (struct call_site_target, union call_site_parameter_u, struct
4346 call_site_parameter): Move out of struct call_site.
4347 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
4348 m32c_prologue.
4349 (enum srcdest_kind): Move out of struct srcdest.
4350 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
4351 * prologue-value.h (enum prologue_value_kind): Move out of struct
4352 prologue_value.
4353 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
4354 gdbarch_tdep.
4355 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
4356 out of struct field_info.
4357 * symfile.h (struct other_sections): Move out of struct
4358 section_addr_info.
4359 * symtab.c (struct symbol_cache_slot): Move out struct
4360 block_symbol_cache.
4361 * target-descriptions.c (enum tdesc_type_kind): Move out of
4362 typedef struct tdesc_type.
4363 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
4364 struct tui_line_or_address.
4365 * value.c (enum internalvar_kind, union internalvar_data): Move
4366 out of struct internalvar.
4367 * xtensa-tdep.h (struct ctype_cache): Move out of struct
4368 gdbarch_tdep.
4369
4370 2015-02-27 Tom Tromey <tromey@redhat.com>
4371 Pedro Alves <palves@redhat.com>
4372
4373 Rename symbols whose names are reserved C++ keywords throughout.
4374
4375 2015-02-27 Pedro Alves <palves@redhat.com>
4376
4377 * Makefile.in (COMPILER): New, get it from autoconf.
4378 (COMPILE.pre, CC_LD): Use COMPILER.
4379 (CXX): Get from autoconf instead.
4380 (CXX_FOR_TARGET): Default to g++ instead of gcc.
4381 * acinclude.m4: Include build-with-cxx.m4.
4382 * build-with-cxx.m4: New file.
4383 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
4384 Disable -Werror by default if building in C++ mode.
4385 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
4386 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
4387 Run supported-warning-flags tests with the C++ compiler.
4388 Save/restore CXXFLAGS too.
4389 * configure: Regenerate.
4390
4391 2015-02-27 Pedro Alves <palves@redhat.com>
4392
4393 * libiberty.m4: New file.
4394 * acinclude.m4: Include libiberty.m4.
4395 * configure.ac: Call libiberty_INIT.
4396 * config.in, configure: Regenerate.
4397
4398 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
4399
4400 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
4401 31-bit targets, but 64-bit targets as well.
4402 (s390_gnu_triplet_regexp): New function.
4403 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
4404 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
4405 method.
4406
4407 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
4408
4409 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
4410 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
4411 from CONTEXT_DEBUGGER.
4412
4413 2015-02-26 Doug Evans <dje@google.com>
4414
4415 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
4416 CHECK_TYPEDEF.
4417 (set_type_vptr_fieldno): Ditto.
4418 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
4419 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
4420
4421 2015-02-26 Pedro Alves <palves@redhat.com>
4422
4423 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
4424 * complaints.c (vcomplaint): Pass argument FMT directly to
4425 printf-like functions instead of complaint->fmt.
4426 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
4427 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
4428 * compile/compile-loc2c.c (pushf, unary, binary): Add
4429 ATTRIBUTE_PRINTF.
4430 (do_compile_dwarf_expr_to_c): Pass string literal as format string
4431 to pushf.
4432 (BINARY): Pass string literal as format string to 'binary'.
4433 * compile/compile-object-load.c (link_callbacks_einfo): Add
4434 ATTRIBUTE_PRINTF.
4435 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
4436
4437 2015-02-26 Pedro Alves <palves@redhat.com>
4438
4439 * windows-termcap.c: Rename to ...
4440 * stub-termcap.c: ... this. Adjust header line.
4441 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
4442 windows-termcap.c.
4443 * configure: Regenerate.
4444 * configure.ac: Refer to stub-termcap.o instead of
4445 windows-termcap.o.
4446 * gdb_curses.h: Mention stub-termcap.c instead of
4447 windows-termcap.c.
4448
4449 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4450
4451 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
4452 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
4453
4454 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
4455
4456 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
4457
4458 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4459
4460 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
4461 bfd_canonicalize_symtab.
4462
4463 2015-02-25 John Baldwin <jhb@FreeBSD.org>
4464
4465 * amd64fbsd-nat.c: Include sys/user.h.
4466 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
4467 instead of KERN_PS_STRINGS to locate the signal trampoline.
4468 * i386fbsd-nat.c: Include sys/user.h.
4469 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
4470 instead of KERN_PS_STRINGS to locate the signal trampoline.
4471 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
4472 (amd64fbsd_sigtramp_p): New.
4473 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
4474 longer set default values.
4475 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
4476 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
4477 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
4478 (i386fbsd_freebsd4_sigtramp_start)
4479 (i386fbsd_freebsd4_sigtramp_middle)
4480 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
4481 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
4482 (i386fbsd_sigtramp_p): New.
4483 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
4484 longer set default values.
4485 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
4486
4487 2015-02-25 John Baldwin <jhb@freebsd.org>
4488
4489 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
4490 get_frame_register instead of frame_unwind_register_unsigned.
4491
4492 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4493
4494 PR build/18033
4495 * compile/compile-c-support.c (c_compute_program): Change // comment.
4496 * compile/compile-object-load.c (setup_sections): Change // comment.
4497
4498 2015-02-26 Joel Brobecker <brobecker@adacore.com>
4499
4500 PR build/18033:
4501 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
4502
4503 2015-02-23 Pedro Alves <palves@redhat.com>
4504
4505 * remote.c (skip_to_semicolon): New function.
4506 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
4507 special case the stop reasons that look like hex numbers
4508 upfront. Instead handle real register numbers after matching
4509 all the known stop reasons.
4510
4511 2015-02-21 Doug Evans <dje@google.com>
4512
4513 PR c++/17976, symtab/17821
4514 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
4515 is_in_anonymous. All callers updated.
4516 (find_symbol_in_baseclass): Ditto.
4517 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
4518 for symbols in an anonymous namespace.
4519 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
4520 DW_AT_name directly.
4521 (dwarf2_name): Convert missing namespace name to
4522 CP_ANONYMOUS_NAMESPACE_STR.
4523
4524 2015-02-20 Pedro Alves <palves@redhat.com>
4525
4526 * linux-nat.c (linux_handle_extended_wait): Call
4527 thread_db_notice_clone whenever a new clone LWP is detected.
4528 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
4529 functions.
4530 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
4531 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
4532 (linux_unstop_all_lwps): Declare.
4533 * linux-thread-db.c (struct thread_get_info_inout): Delete.
4534 (thread_get_info_callback): Delete.
4535 (thread_from_lwp): Use td_thr_get_info and record_thread.
4536 (thread_db_attach_lwp): Delete.
4537 (thread_db_notice_clone): New function.
4538 (try_thread_db_load_1): If /proc is mounted and shows the
4539 process'es task list, walk over all LWPs and call thread_from_lwp
4540 instead of relying on td_ta_thr_iter.
4541 (attach_thread): Don't call check_thread_signals here. Split the
4542 tail part of the function (which adds the thread to the core GDB
4543 thread list) to ...
4544 (record_thread): ... this function. Call check_thread_signals
4545 here.
4546 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
4547 call thread_from_lwp.
4548 (thread_db_update_thread_list): Rename to ...
4549 (thread_db_update_thread_list_org): ... this.
4550 (thread_db_update_thread_list): New function.
4551 (thread_db_find_thread_from_tid): Delete.
4552 (thread_db_get_ada_task_ptid): Simplify.
4553 * nat/linux-procfs.c: Include <sys/stat.h>.
4554 (linux_proc_task_list_dir_exists): New function.
4555 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
4556
4557 2015-02-20 Pedro Alves <palves@redhat.com>
4558
4559 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
4560 main LWP. Handle the case of waitpid returning 0 if we're already
4561 attached to the LWP. Don't set the LWP's last_resume_kind to
4562 resume_stop if we already knew about the LWP.
4563 (linux_nat_filter_event): Add debug logs.
4564
4565 2015-02-20 Pedro Alves <palves@redhat.com>
4566
4567 * target.h (forward_target_decr_pc_after_break): Delete
4568 declaration.
4569
4570 2015-02-20 Pedro Alves <palves@redhat.com>
4571
4572 PR threads/18006
4573 * linux-thread-db.c (thread_get_info_callback): Return early if
4574 the thread's lwp id is -1.
4575
4576 2015-02-20 Joel Brobecker <brobecker@adacore.com>
4577
4578 GDB 7.9 released.
4579
4580 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
4581
4582 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
4583 (dtrace_get_probes) Change type of variable 'dof'.
4584
4585 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
4586
4587 PR breakpoints/16812
4588 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
4589 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
4590 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
4591
4592 2015-02-19 David Taylor <dtaylor@emc.com>
4593
4594 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
4595
4596 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
4597
4598 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
4599 function.
4600 (tui_putc): Don't call tui_handle_resize_during_io.
4601 (tui_getc): Likewise.
4602 (tui_mld_getc): Likewise.
4603 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
4604 (tui_sigwinch_token): New static variable.
4605 (tui_initialize_win): Adjust documentation. Set
4606 tui_sigwinch_token.
4607 (tui_async_resize_screen): New asynchronous callback.
4608 (tui_sigwinch_handler): Adjust documentation. Asynchronously
4609 invoke tui_async_resize_screen.
4610
4611 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
4612
4613 * configure: Regenerated.
4614 * configure.ac: Use GDB_AC_TRANSFORM.
4615 * Makefile.in (aclocal_m4_deps): Added transform.m4.
4616 * acinclude.m4: sinclude transform.m4.
4617 * transform.m4: New file.
4618 (GDB_AC_TRANSFORM): New macro.
4619
4620 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4621
4622 * NEWS: Announce the support for DTrace SDT probes.
4623
4624 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4625
4626 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
4627 (amd64_dtrace_parse_probe_argument): New function.
4628 (amd64_dtrace_probe_is_enabled): Likewise.
4629 (amd64_dtrace_enable_probe): Likewise.
4630 (amd64_dtrace_disable_probe): Likewise.
4631 (amd64_linux_init_abi): Register the
4632 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
4633 `gdbarch_dtrace_disable_probe' and
4634 `gdbarch_dtrace_probe_is_enabled' hooks.
4635 (amd64_dtrace_disabled_probe_sequence_1): New constant.
4636 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
4637 (amd64_dtrace_enable_probe_sequence): Likewise.
4638 (amd64_dtrace_disable_probe_sequence): Likewise.
4639
4640 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4641
4642 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
4643 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
4644 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
4645 handle ELF files.
4646 * Makefile.in (SFILES): dtrace-probe.c added.
4647 * configure: Regenerate.
4648 * dtrace-probe.c: New file.
4649 (SHT_SUNW_dof): New constant.
4650 (dtrace_probe_type): New enum.
4651 (dtrace_probe_arg): New struct.
4652 (dtrace_probe_arg_s): New typedef.
4653 (struct dtrace_probe_enabler): New struct.
4654 (dtrace_probe_enabler_s): New typedef.
4655 (dtrace_probe): New struct.
4656 (dtrace_probe_is_linespec): New function.
4657 (dtrace_dof_sect_type): New enum.
4658 (dtrace_dof_dofh_ident): Likewise.
4659 (dtrace_dof_encoding): Likewise.
4660 (DTRACE_DOF_ENCODE_LSB): Likewise.
4661 (DTRACE_DOF_ENCODE_MSB): Likewise.
4662 (dtrace_dof_hdr): New struct.
4663 (dtrace_dof_sect): Likewise.
4664 (dtrace_dof_provider): Likewise.
4665 (dtrace_dof_probe): Likewise.
4666 (DOF_UINT): New macro.
4667 (DTRACE_DOF_PTR): Likewise.
4668 (DTRACE_DOF_SECT): Likewise.
4669 (dtrace_process_dof_probe): New function.
4670 (dtrace_process_dof): Likewise.
4671 (dtrace_build_arg_exprs): Likewise.
4672 (dtrace_get_arg): Likewise.
4673 (dtrace_get_probes): Likewise.
4674 (dtrace_get_probe_argument_count): Likewise.
4675 (dtrace_can_evaluate_probe_arguments): Likewise.
4676 (dtrace_evaluate_probe_argument): Likewise.
4677 (dtrace_compile_to_ax): Likewise.
4678 (dtrace_probe_destroy): Likewise.
4679 (dtrace_gen_info_probes_table_header): Likewise.
4680 (dtrace_gen_info_probes_table_values): Likewise.
4681 (dtrace_probe_is_enabled): Likewise.
4682 (dtrace_probe_ops): New variable.
4683 (info_probes_dtrace_command): New function.
4684 (_initialize_dtrace_probe): Likewise.
4685 (dtrace_type_name): Likewise.
4686
4687 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4688
4689 * gdbarch.sh (dtrace_parse_probe_argument): New.
4690 (dtrace_probe_is_enabled): Likewise.
4691 (dtrace_enable_probe): Likewise.
4692 (dtrace_disable_probe): Likewise.
4693 * gdbarch.c: Regenerate.
4694 * gdbarch.h: Regenerate.
4695
4696 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4697
4698 * stap-probe.c (stap_probe_ops): Add NULLs in the static
4699 stap_probe_ops for `enable_probe' and `disable_probe'.
4700 * probe.c (enable_probes_command): New function.
4701 (disable_probes_command): Likewise.
4702 (_initialize_probe): Define the cli commands `enable probe' and
4703 `disable probe'.
4704 (parse_probe_linespec): New function.
4705 (info_probes_for_ops): Use parse_probe_linespec.
4706 * probe.h (probe_ops): New hooks `enable_probe' and
4707 `disable_probe'.
4708
4709 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4710
4711 * probe.c (compute_probe_arg): Moved from stap-probe.c
4712 (compile_probe_arg): Likewise.
4713 (probe_funcs): Likewise.
4714 * stap-probe.c (compute_probe_arg): Moved to probe.c.
4715 (compile_probe_arg): Likewise.
4716 (probe_funcs): Likewise.
4717
4718 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4719
4720 * probe.c (print_ui_out_not_applicables): New function.
4721 (exists_probe_with_pops): Likewise.
4722 (info_probes_for_ops): Do not include column headers for probe
4723 types for which no probe has been actually found on any object.
4724 Also invoke `print_ui_out_not_applicables' in order to match the
4725 column rows with the header when probes of several types are
4726 listed.
4727 Print the "Type" column.
4728 * probe.h (probe_ops): Added a new probe operation `type_name'.
4729 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
4730 (stap_type_name): New function.
4731
4732 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
4733
4734 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
4735 (key_is_command_char): Delete.
4736
4737 2015-02-17 Pedro Alves <palves@redhat.com>
4738
4739 * tui/tui.c (tui_enable): Resize windows before anything
4740 might show a window.
4741
4742 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
4743
4744 PR gdb/17984
4745 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
4746 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
4747 call.
4748 * aarch64-tdep.h (tdesc_aarch64): Declare.
4749
4750 2015-02-12 Mark Wielaard <mjw@redhat.com>
4751
4752 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
4753
4754 2015-02-13 Doug Evans <dje@google.com>
4755
4756 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
4757 anonymous_namespace to is_in_anonymous for consistency with the rest
4758 of the file.
4759 (cp_lookup_bare_symbol): Fix typo in comment.
4760 (cp_search_static_and_baseclasses): Ditto.
4761 (search_symbol_list): Use vertical space in comment better.
4762 (reset_directive_searched): Ditto. Fix typo.
4763 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
4764
4765 2015-02-13 Yao Qi <yao.qi@arm.com>
4766
4767 * MAINTAINERS: Update my email address.
4768
4769 2015-02-12 Doug Evans <dje@google.com>
4770
4771 * symtab.c (completion_list_add_name): Fix memory leak.
4772
4773 2015-02-12 Doug Evans <dje@google.com>
4774
4775 * completer.c (complete_line): Remove incorrect comment.
4776
4777 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4778
4779 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
4780 (py_print_frame): Use RETURN_MASK_ERROR.
4781
4782 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4783
4784 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
4785 function comment. Wrap all function that can throw in cleanups.
4786 (gdbpy_apply_frame_filter): Wrap all function that can throw in
4787 cleanups.
4788
4789 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4790
4791 * python/py-framefilter.c (py_print_frame): Substitute goto error.
4792 Remove the error label.
4793
4794 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4795
4796 * python/py-framefilter.c (py_print_frame): Put conditional code paths
4797 with goto first, indent the former else codepath left. Put variable
4798 'elided' to a new inner block.
4799
4800 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4801
4802 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
4803
4804 2015-02-11 Pedro Alves <palves@redhat.com>
4805
4806 * xcoffread.c (within_function): Delete.
4807
4808 2015-02-11 Tom Tromey <tromey@redhat.com>
4809 Pedro Alves <palves@redhat.com>
4810
4811 * breakpoint.c (base_breakpoint_ops): Delete.
4812 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
4813 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
4814 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
4815 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
4816 * python/py-arch.c (arch_object_type): Make extern.
4817 * python/py-block.c (block_syms_iterator_object_type): Make extern.
4818 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
4819 * python/py-cmd.c (cmdpy_object_type): Make extern.
4820 * python/py-continueevent.c (continue_event_object_type)
4821 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
4822 parameter. Update all callers.
4823 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
4824 * python/py-exitedevent.c (exited_event_object_type): Make extern.
4825 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
4826 * python/py-function.c (fnpy_object_type): Make extern.
4827 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
4828 * python/py-infevents.c (call_pre_event_object_type)
4829 (inferior_call_post_event_object_type).
4830 (memory_changed_event_object_type): Make extern.
4831 * python/py-infthread.c (thread_object_type): Make extern.
4832 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
4833 * python/py-linetable.c (linetable_entry_object_type)
4834 (linetable_object_type, ltpy_iterator_object_type): Make extern.
4835 * python/py-newobjfileevent.c (new_objfile_event_object_type)
4836 (clear_objfiles_event_object_type): Make extern.
4837 * python/py-objfile.c (objfile_object_type): Make extern.
4838 * python/py-param.c (parmpy_object_type): Make extern.
4839 * python/py-progspace.c (pspace_object_type): Make extern.
4840 * python/py-signalevent.c (signal_event_object_type): Make extern.
4841 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
4842 * python/py-type.c (type_object_type, field_object_type)
4843 (type_iterator_object_type): Make extern.
4844 * python/python.c (python_extension_script_ops)
4845 (python_extension_ops): Make extern.
4846 * stap-probe.c (stap_probe_ops): Make extern.
4847
4848 2015-02-11 Pedro Alves <pedro@codesourcery.com>
4849
4850 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
4851 because the event thread is not the current thread.
4852
4853 2015-02-11 Doug Evans <xdje42@gmail.com>
4854
4855 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
4856 been initialized yet, return NULL.
4857
4858 2015-02-11 Doug Evans <dje@google.com>
4859
4860 * symfile.h (new_symfile_objfile): Delete.
4861 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
4862 All callers updated.
4863
4864 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
4865
4866 * tui/tui-io.c (tui_handle_resize_during_io): Call
4867 tui_update_gdb_sizes() after resizing the screen.
4868 * tui/tui.c (tui_enable): Resize the terminal before
4869 calling tui_update_gdb_sizes().
4870
4871 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
4872
4873 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
4874 line before printing a newline.
4875
4876 2015-02-11 Mark Wielaard <mjw@redhat.com>
4877
4878 * utils.c (producer_is_gcc): Return true or false.
4879
4880 2015-02-10 Mark Wielaard <mjw@redhat.com>
4881
4882 * utils.h (producer_is_gcc): Change return type to bool. Add major
4883 argument.
4884 * utils.c (producer_is_gcc): Likewise.
4885 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
4886 * dwarf2read.c (check_producer): Likewise.
4887
4888 2015-02-10 Pedro Alves <palves@redhat.com>
4889
4890 * infrun.c (displaced_step_fixup): Switch to the event thread
4891 before calling gdbarch_displaced_step_fixup.
4892
4893 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
4894
4895 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
4896
4897 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
4898
4899 * ada-varobj.c (ada_name_of_child): Constify parent.
4900 (ada_path_expr_of_child): Same.
4901 (ada_value_of_child): Same.
4902 (ada_type_of_child): Same.
4903 * c-varobj.c (c_is_path_expr_parent): Same.
4904 (c_describe_child): Same.
4905 (c_name_of_child): Same.
4906 (c_value_of_child): Same.
4907 (c_type_of_child): Same.
4908 (cplus_number_of_children): Same.
4909 (cplus_describe_child): Constify var.
4910 (cplus_name_of_child): Constify parent.
4911 (cplus_value_of_child): Same.
4912 (cplus_type_of_child): Same.
4913 * jv-varobj.c (java_name_of_child): Same.
4914 (java_value_of_child): Same.
4915 (java_type_of_child): Same.
4916 * varobj.c (value_of_child): Same.
4917 (varobj_default_is_path_expr_parent): Constify var, parent and return
4918 value.
4919 (varobj_get_path_expr): Constify var, modify path_expr through
4920 mutable_var.
4921 (install_new_value): Constify parent.
4922 (value_of_child): Constify parent.
4923 * varobj.h (struct varobj): Constify parent.
4924 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
4925 type_of_child.
4926 (varobj_get_path_expr): Constify var.
4927 (varobj_get_path_expr_parent): Constify var and return value.
4928
4929 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
4930
4931 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
4932 (arm_prologue_this_id): Move PC and SP limit checks to
4933 arm_prologue_unwind_stop_reason.
4934 (arm_prologue_unwind) <stop_reason> : Set to
4935 arm_prologue_unwind_stop_reason.
4936
4937 2015-02-09 Mark Wielaard <mjw@redhat.com>
4938
4939 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
4940 DW_LANG_Fortran08 as language_fortran.
4941
4942 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
4943
4944 PR remote/17946
4945 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
4946 of pointer against char.
4947
4948 2015-02-09 Mark Wielaard <mjw@redhat.com>
4949
4950 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
4951 (c_type_print_modifier): Likewise.
4952 * dwarf2read.c (read_tag_atomic_type): New function.
4953 (read_type_die_1): Handle DW_TAG_atomic_type.
4954 * gdbtypes.c (make_atomic_type): New function.
4955 (recursive_dump_type): Handle TYPE_ATOMIC.
4956 * gdbtypes.h (enum type_flag_values): Renumber.
4957 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
4958 (TYPE_ATOMIC): New macro.
4959 (make_atomic_type): Declare.
4960
4961 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4962
4963 * btrace.c (ftrace_find_call): Skip gaps.
4964 (ftrace_new_function): Initialize level.
4965 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
4966 (ftrace_new_switch): Update
4967 level computation.
4968 (ftrace_new_gap): New.
4969 (ftrace_update_function): Create new function after gap.
4970 (btrace_compute_ftrace_bts): Create gap on error.
4971 (btrace_stitch_bts): Update parameters. Clear trace if it
4972 becomes empty.
4973 (btrace_stitch_trace): Update parameters. Update callers.
4974 (btrace_clear): Reset the number of gaps.
4975 (btrace_insn_get): Return NULL if the iterator points to a gap.
4976 (btrace_insn_number): Return zero if the iterator points to a gap.
4977 (btrace_insn_end): Allow gaps at the end.
4978 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
4979 (btrace_find_insn_by_number): Assert that the found iterator does
4980 not point to a gap.
4981 (btrace_call_next, btrace_call_prev): Assert that the last function
4982 is not a gap.
4983 * btrace.h (btrace_bts_error): New.
4984 (btrace_function): Update comment.
4985 (btrace_function) <insn, insn_offset, number>: Update comment.
4986 (btrace_function) <errcode>: New.
4987 (btrace_thread_info) <ngaps>: New.
4988 (btrace_thread_info) <replay>: Update comment.
4989 (btrace_insn_get): Update comment.
4990 * record-btrace.c (btrace_ui_out_decode_error): New.
4991 (record_btrace_info): Print number of gaps.
4992 (btrace_insn_history, btrace_call_history): Call
4993 btrace_ui_out_decode_error for gaps.
4994 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
4995
4996 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
4997
4998 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
4999 * nat/linux-btrace.c: (btrace_this_cpu): New.
5000 (cpu_supports_bts): Call btrace_this_cpu.
5001 (intel_supports_bts): Add cpu parameter.
5002
5003 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5004
5005 * btrace.h (btrace_insn_class): New.
5006 (btrace_insn) <size, iclass>: New.
5007 * btrace.c (ftrace_find_call): Update parameters. Update users.
5008 Use instruction classification.
5009 (ftrace_new_return): Update parameters. Update users.
5010 (ftrace_update_function): Update parameters. Update users. Use
5011 instruction classification.
5012 (ftrace_update_insns): Update parameters. Update users.
5013 (ftrace_classify_insn): New.
5014 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
5015 TRY_CATCH around call to gdb_insn_length.
5016
5017 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5018
5019 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
5020 Update parameters. Update users.
5021
5022 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5023
5024 * btrace.c (parse_xml_btrace_conf_bts): Add size.
5025 (btrace_conf_bts_attributes): New.
5026 (btrace_conf_children): Add attributes.
5027 * common/btrace-common.h (btrace_config_bts): New.
5028 (btrace_config)<bts>: New.
5029 (btrace_config): Update comment.
5030 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
5031 Use config.
5032 * features/btrace-conf.dtd: Increment version. Add size
5033 attribute to bts element.
5034 * record-btrace.c (set_record_btrace_bts_cmdlist,
5035 show_record_btrace_bts_cmdlist): New.
5036 (record_btrace_adjust_size, record_btrace_print_bts_conf,
5037 record_btrace_print_conf, cmd_set_record_btrace_bts,
5038 cmd_show_record_btrace_bts): New.
5039 (record_btrace_info): Call record_btrace_print_conf.
5040 (_initialize_record_btrace): Add commands.
5041 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
5042 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
5043 (btrace_sync_conf): Synchronize bts size.
5044 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
5045 * NEWS: Announce new commands and new packets.
5046
5047 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5048
5049 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
5050 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
5051 (x86_linux_btrace_conf): New.
5052 (x86_linux_create_target): Initialize to_btrace_conf.
5053 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
5054 Check format. Split into this and ...
5055 (linux_enable_bts): ... this.
5056 (linux_btrace_conf): New.
5057 (perf_event_skip_record): Renamed into ...
5058 (perf_event_skip_bts_record): ... this. Updated users.
5059 (linux_disable_btrace): Split into this and ...
5060 (linux_disable_bts): ... this.
5061 (linux_read_btrace): Check format.
5062 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
5063 (linux_btrace_conf): New.
5064 (btrace_target_info)<ptid>: Moved.
5065 (btrace_target_info)<conf>: New.
5066 (btrace_target_info): Split into this and ...
5067 (btrace_tinfo_bts): ... this. Updated users.
5068 * btrace.c (btrace_enable): Update parameters.
5069 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
5070 (btrace_conf_children, btrace_conf_attributes)
5071 (btrace_conf_elements): New.
5072 * btrace.h (btrace_enable): Update parameters.
5073 (btrace_conf, parse_xml_btrace_conf): New.
5074 * common/btrace-common.h (btrace_config): New.
5075 * feature/btrace-conf.dtd: New.
5076 * record-btrace.c (record_btrace_conf): New.
5077 (record_btrace_cmdlist): New.
5078 (record_btrace_enable_warn, record_btrace_open): Pass
5079 &record_btrace_conf.
5080 (record_btrace_info): Print recording format.
5081 (cmd_record_btrace_bts_start): New.
5082 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
5083 (_initialize_record_btrace): Add "record btrace bts" subcommand.
5084 Add "record bts" alias command.
5085 * remote.c (remote_state)<btrace_config>: New.
5086 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
5087 (remote_protocol_features): Add qXfer:btrace-conf:read.
5088 (remote_open_1): Call remote_btrace_reset.
5089 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
5090 (btrace_target_info)<conf>: New.
5091 (btrace_sync_conf, btrace_read_config): New.
5092 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
5093 btrace_read_conf.
5094 (remote_btrace_conf): New.
5095 (init_remote_ops): Initialize to_btrace_conf.
5096 (_initialize_remote): Add qXfer:btrace-conf packet.
5097 * target.c (target_enable_btrace): Update parameters.
5098 (target_btrace_conf): New.
5099 * target.h (target_enable_btrace): Update parameters.
5100 (target_btrace_conf): New.
5101 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
5102 (target_ops)<to_enable_btrace>: Update parameters and comment.
5103 (target_ops)<to_btrace_conf>: New.
5104 * target-delegates: Regenerate.
5105 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
5106 (target_debug_print_const_struct_btrace_target_info_p): New.
5107 * NEWS: Announce new command and new packet.
5108
5109 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5110
5111 * nat/linux-btrace.h (perf_event_buffer): New.
5112 (btrace_target_info) <buffer, size, data_head>: Replace with ...
5113 <bts>: ... this.
5114 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
5115 (perf_event_buffer_size, perf_event_buffer_begin)
5116 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
5117 Updated users.
5118 (perf_event_new_data): New.
5119
5120 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5121
5122 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
5123 * record-btrace.c (record_btrace_open): Remove call to
5124 target_supports_btrace.
5125 * remote.c (remote_supports_btrace): Update parameters.
5126 * target.c (target_supports_btrace): Update parameters.
5127 * target.h (to_supports_btrace, target_supports_btrace): Update
5128 parameters.
5129 * target-delegates.c: Regenerate.
5130 * target-debug.h (target_debug_print_enum_btrace_format): New.
5131 * nat/linux-btrace.c
5132 (kernel_supports_btrace): Rename into ...
5133 (kernel_supports_bts): ... this. Update users. Update warning text.
5134 (intel_supports_btrace): Rename into ...
5135 (intel_supports_bts): ... this. Update users.
5136 (cpu_supports_btrace): Rename into ...
5137 (cpu_supports_bts): ... this. Update users.
5138 (linux_supports_btrace): Update parameters. Split into this and ...
5139 (linux_supports_bts): ... this.
5140 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
5141
5142 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5143
5144 * Makefile.in (SFILES): Add common/btrace-common.c.
5145 (COMMON_OBS): Add common/btrace-common.o.
5146 (btrace-common.o): Add build rules.
5147 * btrace.c (parse_xml_btrace): Update parameters.
5148 (parse_xml_btrace_block): Set format field.
5149 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
5150 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
5151 (btrace_compute_ftrace): Split into this and...
5152 (btrace_compute_ftrace_bts): ...this.
5153 (btrace_stitch_trace): Split into this and...
5154 (btrace_stitch_bts): ...this.
5155 * btrace.h (parse_xml_btrace): Update parameters.
5156 (make_cleanup_btrace_data): New.
5157 * common/btrace-common.c: New.
5158 * common/btrace-common.h: Include common-defs.h.
5159 (btrace_block_s): Update comment.
5160 (btrace_format): New.
5161 (btrace_format_string): New.
5162 (btrace_data_bts): New.
5163 (btrace_data): New.
5164 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
5165 * remote.c (remote_read_btrace): Update parameters.
5166 * target.c (target_read_btrace): Update parameters.
5167 * target.h (target_read_btrace): Update parameters.
5168 (target_ops)<to_read_btrace>: Update parameters.
5169 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
5170 * target-delegates.c: Regenerate.
5171 * target-debug (target_debug_print_struct_btrace_data_p): New.
5172 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
5173 (linux_read_bts): ...this.
5174 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
5175
5176 2015-02-06 Doug Evans <dje@google.com>
5177
5178 * remote-m32r-sdi.c: Include symfile.h.
5179
5180 2015-02-06 Doug Evans <dje@google.com>
5181
5182 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
5183 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
5184 to here.
5185
5186 2015-02-06 Pedro Alves <palves@redhat.com>
5187
5188 * linux-thread-db.c (find_new_threads_callback): Add debug output.
5189
5190 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
5191
5192 PR gdb/15678
5193 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
5194 (enable_count_command): Check args for NULL value.
5195
5196 2015-02-05 Doug Evans <xdje42@gmail.com>
5197
5198 * guile/scm-frame.c: Fix spelling errors in a comment.
5199
5200 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5201
5202 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
5203 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
5204 return type.
5205
5206 2015-02-04 Pedro Alves <palves@redhat.com>
5207
5208 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
5209 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
5210 returns true.
5211 (resume_stopped_resumed_lwps): Don't check whether the thread is
5212 marked as executing.
5213 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
5214
5215 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5216
5217 * regset.h (struct regset): Add flags field.
5218 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
5219 * corelow.c (get_core_register_section): Add warning if the size
5220 exceeds the requested size and the regset does not have the
5221 REGSET_VARIABLE_SIZE flag set.
5222 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
5223 flag.
5224 * armbsd-tdep.c (armbsd_gregset): Likewise.
5225 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5226 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
5227 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
5228 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
5229
5230 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5231
5232 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
5233 For ".reg-xstate", explicitly specify the requested section size
5234 via X86_XSTATE_SIZE instead of just 0 on input and
5235 X86_XSTATE_MAX_SIZE on output.
5236 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
5237 Likewise.
5238
5239 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5240
5241 PR corefiles/17808:
5242 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
5243 function type, particularly its SIZE parameter.
5244 * gdbarch.h: Regenerate.
5245 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
5246 actual against required size using ">=" instead of "==".
5247 (amd64_collect_fpregset): Likewise.
5248 * i386-tdep.c (i386_supply_gregset): Likewise.
5249 (i386_collect_gregset): Likewise.
5250 (i386_supply_fpregset): Likewise.
5251 (i386_collect_fpregset): Likewise.
5252 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
5253 (mips_fill_gregset_wrapper): Likewise.
5254 (mips_supply_fpregset_wrapper): Likewise.
5255 (mips_fill_fpregset_wrapper): Likewise.
5256 (mips64_supply_gregset_wrapper): Likewise.
5257 (mips64_fill_gregset_wrapper): Likewise.
5258 (mips64_supply_fpregset_wrapper): Likewise.
5259 (mips64_fill_fpregset_wrapper): Likewise.
5260 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
5261 (am33_supply_fpregset_method): Likewise.
5262 (am33_collect_gregset_method): Likewise.
5263 (am33_collect_fpregset_method): Likewise.
5264
5265 2015-02-04 Doug Evans <dje@google.com>
5266 Pedro Alves <palves@redhat.com>
5267 Eli Zaretskii <eliz@gnu.org>
5268
5269 PR tui/17810
5270 * tui/tui-command.c (tui_refresh_cmd_win): New function.
5271 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
5272 * tui/tui-file.c: #include tui/tui-command.h.
5273 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
5274 (tui_file_flush): Refresh command window if stream is gdb_stdout.
5275 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
5276
5277 2015-02-04 Pedro Alves <palves@redhat.com>
5278
5279 Fix build breakage.
5280 * event-loop.c (gdb_do_one_event): Add default switch case.
5281
5282 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5283
5284 Filter out inferior gcc option -fpreprocessed.
5285 * compile/compile.c (filter_args): New function.
5286 (get_args): Use it.
5287
5288 2015-02-03 Pedro Alves <palves@redhat.com>
5289
5290 * event-loop.c: Don't declare nor define a queue type for
5291 gdb_event_p.
5292 (event_queue): Delete.
5293 (create_event, create_file_event, gdb_event_xfree)
5294 (initialize_event_loop, process_event): Delete.
5295 (gdb_do_one_event): Return as soon as one event is handled.
5296 (handle_file_event): Change prototype. Used the passed in
5297 file_handler pointer and ready_mask instead of looping over all
5298 file handlers.
5299 (gdb_wait_for_event): Update the poll/select timeouts before
5300 blocking. Run event handlers directly instead of queueing events.
5301 Return as soon as one event is handled.
5302 (struct async_event_handler_data): Delete.
5303 (invoke_async_event_handler): Delete.
5304 (check_async_event_handlers): Change return type to int. Run
5305 event handlers directly instead of queueing events. Return as
5306 soon as one event is handled.
5307 (handle_timer_event): Delete.
5308 (update_wait_timeout): New function, factored out from
5309 poll_timers.
5310 (poll_timers): Reimplement.
5311 * event-loop.h (initialize_event_loop): Delete declaration.
5312 * top.c (gdb_init): Don't call initialize_event_loop.
5313
5314 2015-02-03 Pedro Alves <palves@redhat.com>
5315
5316 * event-loop.c (clear_async_event_handler): New function.
5317 * event-loop.h (clear_async_event_handler): New declaration.
5318 * record-btrace.c (record_btrace_async): New function.
5319 (init_record_btrace_ops): Install record_btrace_async.
5320 * record-full.c (record_full_async): New function.
5321 (record_full_resume): Don't mark the async event source here.
5322 (init_record_full_ops): Install record_full_async.
5323 (record_full_core_resume): Don't mark the async event source here.
5324 (init_record_full_core_ops): Install record_full_async.
5325 * remote.c (remote_async): Mark and clear the async stop reply
5326 queue event-loop token as appropriate.
5327
5328 2015-02-03 Pedro Alves <palves@redhat.com>
5329
5330 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
5331 target_is_async_p instead of target_can_async.
5332 (linux_nat_wait): Use target_is_async_p instead of
5333 target_can_async. Don't enable async here.
5334 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
5335 target_is_async_p instead of target_can_async.
5336
5337 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
5338
5339 * varobj.h (lang_varobj_ops): Mention which return values need
5340 to be freed.
5341
5342 2015-02-02 Joel Brobecker <brobecker@adacore.com>
5343
5344 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
5345
5346 2015-02-02 Joel Brobecker <brobecker@adacore.com>
5347
5348 PR gdb/17856:
5349 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
5350 results found in the cache.
5351
5352 2015-02-02 Joel Brobecker <brobecker@adacore.com>
5353
5354 PR gdb/17854:
5355 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
5356 when allocating a new one.
5357
5358 2015-02-01 Tom Tromey <tom@tromey.com>
5359
5360 * MAINTAINERS: Remove myself.
5361
5362 2015-01-31 Doug Evans <xdje42@gmail.com>
5363
5364 * dwarf2read.c (process_structure_scope): Update setting of
5365 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
5366 * gdbtypes.c (internal_type_vptr_fieldno): New function.
5367 (set_type_vptr_fieldno): New function.
5368 (internal_type_vptr_basetype): New function.
5369 (set_type_vptr_basetype): New function.
5370 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
5371 TYPE_VPTR_BASETYPE.
5372 (allocate_cplus_struct_type): Initialize vptr_fieldno.
5373 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
5374 (print_cplus_stuff): ... moved here.
5375 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
5376 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
5377 moved to ...
5378 (struct cplus_struct_type): ... here. All uses updated.
5379 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
5380 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
5381 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
5382 * stabsread.c (read_tilde_fields): Update setting of
5383 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
5384
5385 2015-01-31 Doug Evans <xdje42@gmail.com>
5386
5387 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
5388 to self_p.
5389 (cp_print_class_member): Rename local domain to self_type.
5390 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
5391 domain_type to self_type.
5392 (set_die_type) <need_gnat_info>: Handle
5393 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
5394 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
5395 TYPE_SPECIFIC_SELF_TYPE.
5396 * gdbtypes.c (internal_type_self_type): New function.
5397 (set_type_self_type): New function.
5398 (smash_to_memberptr_type): Rename parameter domain to self_type.
5399 Update setting of TYPE_SELF_TYPE.
5400 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
5401 (smash_to_method_type): Rename parameter domain to self_type.
5402 Update setting of TYPE_SELF_TYPE.
5403 (check_stub_method): Call smash_to_method_type.
5404 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
5405 (copy_type_recursive): Ditto.
5406 * gdbtypes.h (enum type_specific_kind): New value
5407 TYPE_SPECIFIC_SELF_TYPE.
5408 (struct main_type) <type_specific>: New member self_type.
5409 (struct cplus_struct_type) <fn_field.type>: Update comment.
5410 (TYPE_SELF_TYPE): Rewrite.
5411 (internal_type_self_type, set_type_self_type): Declare.
5412 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
5413 self_type.
5414 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
5415 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
5416 TYPE_TARGET_TYPE.
5417 * stabsread.c (read_member_functions): Mark methods with
5418 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
5419 TYPE_SELF_TYPE.
5420
5421 2015-01-31 Doug Evans <xdje42@gmail.com>
5422
5423 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
5424 All uses updated.
5425
5426 2015-01-31 Doug Evans <xdje42@gmail.com>
5427
5428 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
5429 or unions. Return zero if union.
5430 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
5431 (gnuv3_rtti_type): Pass already-check_typedef'd value to
5432 gnuv3_get_vtable.
5433 (compute_vtable_size): Assert only passed structs.
5434 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
5435
5436 2015-01-31 Doug Evans <xdje42@gmail.com>
5437
5438 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
5439 kinds.
5440
5441 2015-01-31 Gary Benson <gbenson@redhat.com>
5442 Doug Evans <dje@google.com>
5443
5444 PR cli/9007
5445 PR cli/11920
5446 PR cli/15548
5447 * cli/cli-cmds.c (complete_command): Notify user if max-completions
5448 reached.
5449 * common/common-exceptions.h (enum errors)
5450 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
5451 * completer.h (get_max_completions_reached_message): New declaration.
5452 (max_completions): Likewise.
5453 (completion_tracker_t): New typedef.
5454 (new_completion_tracker): New declaration.
5455 (make_cleanup_free_completion_tracker): Likewise.
5456 (maybe_add_completion_enum): New enum.
5457 (maybe_add_completion): New declaration.
5458 (throw_max_completions_reached_error): Likewise.
5459 * completer.c (max_completions): New global variable.
5460 (new_completion_tracker): New function.
5461 (free_completion_tracker): Likewise.
5462 (make_cleanup_free_completion_tracker): Likewise.
5463 (maybe_add_completions): Likewise.
5464 (throw_max_completions_reached_error): Likewise.
5465 (complete_line): Remove duplicates and limit result to max_completions
5466 entries.
5467 (get_max_completions_reached_message): New function.
5468 (gdb_display_match_list): Handle max_completions.
5469 (_initialize_completer): New declaration and function.
5470 * symtab.c: Include completer.h.
5471 (completion_tracker): New static variable.
5472 (completion_list_add_name): Call maybe_add_completion.
5473 (default_make_symbol_completion_list_break_on_1): Renamed from
5474 default_make_symbol_completion_list_break_on. Maintain
5475 completion_tracker across calls to completion_list_add_name.
5476 (default_make_symbol_completion_list_break_on): New function.
5477 * top.c (init_main): Set rl_completion_display_matches_hook.
5478 * tui/tui-io.c: Include completer.h.
5479 (tui_old_rl_display_matches_hook): New static global.
5480 (tui_rl_display_match_list): Notify user if max-completions reached.
5481 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
5482 * NEWS (New Options): Mention set/show max-completions.
5483
5484 2015-01-31 Gary Benson <gbenson@redhat.com>
5485
5486 * symtab.c (struct add_name_data) <code>: New field.
5487 Updated comments.
5488 (add_symtab_completions): New function.
5489 (symtab_expansion_callback): Likewise.
5490 (default_make_symbol_completion_list_break_on): Set datum.code.
5491 Move minimal symbol scan before calling expand_symtabs_matching.
5492 Scan known primary symtabs for externs and statics before calling
5493 expand_symtabs_matching. Pass symtab_expansion_callback as
5494 expansion_notify argument to expand_symtabs_matching. Do not scan
5495 primary symtabs for externs and statics after calling
5496 expand_symtabs_matching.
5497
5498 2015-01-31 Gary Benson <gbenson@redhat.com>
5499
5500 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
5501 (struct quick_symbol_functions) <expand_symtabs_matching>:
5502 New argument expansion_notify. All uses updated.
5503 (expand_symtabs_matching): New argument expansion_notify.
5504 All uses updated.
5505 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5506 Also print expansion notify.
5507 * symtab.c (expand_symtabs_matching_via_partial): Call
5508 expansion_notify whenever a partial symbol table is expanded.
5509 * dwarf2read.c (dw2_expand_symtabs_matching): Call
5510 expansion_notify whenever a symbol table is instantiated.
5511
5512 2015-01-31 Doug Evans <xdje42@gmail.com>
5513
5514 * cli-out.c: #include completer.h, readline/readline.h.
5515 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
5516 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
5517 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
5518 * cli-out.h (cli_display_match_list): Declare.
5519 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
5520 (ELLIPSIS_LEN): Ditto.
5521 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
5522 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
5523 (gdb_fnprint, gdb_print_filename): Ditto.
5524 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
5525 (gdb_display_match_list): Ditto.
5526 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
5527 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
5528 (mld_beep_ftype, mld_read_key_ftype): Ditto.
5529 (match_list_displayer): New struct.
5530 (gdb_display_match_list): Declare.
5531 * top.c (init_main): Set rl_completion_display_matches_hook.
5532 * tui/tui-io.c: #include completer.h.
5533 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
5534 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
5535 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
5536 (tui_mld_getc, tui_mld_read_key): Ditto.
5537 (tui_rl_display_match_list): Rewrite.
5538 (tui_handle_resize_during_io): New arg for_completion. All callers
5539 updated.
5540
5541 2015-01-31 Doug Evans <xdje42@gmail.com>
5542
5543 Add symbol lookup cache.
5544 * NEWS: Document new options and commands.
5545 * symtab.c (symbol_cache_key): New static global.
5546 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
5547 (SYMBOL_LOOKUP_FAILED): New macro.
5548 (symbol_cache_slot_state): New enum.
5549 (block_symbol_cache): New struct.
5550 (symbol_cache): New struct.
5551 (new_symbol_cache_size, symbol_cache_size): New static globals.
5552 (hash_symbol_entry, eq_symbol_entry): New functions.
5553 (symbol_cache_byte_size, resize_symbol_cache): New functions.
5554 (make_symbol_cache, free_symbol_cache): New functions.
5555 (get_symbol_cache, symbol_cache_cleanup): New function.
5556 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
5557 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
5558 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
5559 (symbol_cache_flush, symbol_cache_dump): New functions.
5560 (maintenance_print_symbol_cache): New function.
5561 (maintenance_flush_symbol_cache): New function.
5562 (symbol_cache_stats): New function.
5563 (maintenance_print_symbol_cache_statistics): New function.
5564 (symtab_new_objfile_observer): New function.
5565 (symtab_free_objfile_observer): New function.
5566 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
5567 (_initialize_symtab): Init symbol_cache_key. New parameter
5568 maint symbol-cache-size. New maint commands print symbol-cache,
5569 print symbol-cache-statistics, flush-symbol-cache.
5570 Install new_objfile, free_objfile observers.
5571
5572 2015-01-31 Joel Brobecker <brobecker@adacore.com>
5573
5574 PR symtab/17855
5575 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
5576 to end.
5577
5578 2015-01-31 Doug Evans <xdje42@gmail.com>
5579
5580 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
5581 * auto-load.c: #include ctype.h.
5582 (struct auto_load_pspace_info): Replace member loaded_scripts with
5583 new members loaded_script_files, loaded_script_texts.
5584 (auto_load_pspace_data_cleanup): Update.
5585 (init_loaded_scripts_info): Update.
5586 (get_auto_load_pspace_data_for_loading): Update.
5587 (maybe_add_script_file): Renamed from maybe_add_script. All callers
5588 updated.
5589 (maybe_add_script_text): New function.
5590 (clear_section_scripts): Update.
5591 (source_script_file, execute_script_contents): New functions.
5592 (source_section_scripts): Add support for
5593 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
5594 (print_scripts): New function.
5595 (auto_load_info_scripts): Also print inlined scripts.
5596 (maybe_print_unsupported_script_warning): Renamed from
5597 unsupported_script_warning_print. All callers updated.
5598 (maybe_print_script_not_found_warning): Renamed from
5599 script_not_found_warning_print. All callers updated.
5600 * extension-priv.h (struct extension_language_script_ops): New member
5601 objfile_script_executor.
5602 * extension.c (ext_lang_objfile_script_executor): New function.
5603 * extension.h (objfile_script_executor_func): New typedef.
5604 (ext_lang_objfile_script_executor): Declare.
5605 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
5606 * guile/guile.c (guile_extension_script_ops): Update.
5607 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
5608 * python/python.c (python_extension_script_ops): Update.
5609 (gdbpy_execute_objfile_script): New function.
5610
5611 2015-01-31 Eli Zaretskii <eliz@gnu.org>
5612
5613 * tui/tui-io.c (tui_expand_tabs): New function.
5614 (tui_puts, tui_redisplay_readline): Expand TABs into the
5615 appropriate number of spaces.
5616 * tui/tui-regs.c: Include tui-io.h.
5617 (tui_register_format): Call tui_expand_tabs to expand TABs into
5618 the appropriate number of spaces.
5619 * tui/tui-io.h: Add prototype for tui_expand_tabs.
5620
5621 2015-01-30 Doug Evans <dje@google.com>
5622
5623 * NEWS: "info source" command now display producer string if present.
5624 * source.c (source_info): Print producer string if present.
5625
5626 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
5627
5628 * varobj.c (varobj_delete): Fix comment.
5629
5630 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
5631
5632 * varobj.c (create_child): Modify comment.
5633
5634 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
5635
5636 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
5637 parameter.
5638 (ada_name_of_variable): Same.
5639 (ada_path_expr_of_child): Same.
5640 (ada_value_of_variable): Same.
5641 (ada_value_is_changeable_p): Same.
5642 (ada_value_has_mutated): Same.
5643 * c-varobj.c (varobj_is_anonymous_child): Same.
5644 (c_is_path_expr_parent): Same.
5645 (c_number_of_children): Same.
5646 (c_name_of_variable): Same.
5647 (c_path_expr_of_child): Same.
5648 (get_type): Same.
5649 (c_value_of_variable): Same.
5650 (cplus_number_of_children): Same.
5651 (cplus_name_of_variable): Same.
5652 (cplus_path_expr_of_child): Same.
5653 (cplus_value_of_variable): Same.
5654 * jv-varobj.c (java_number_of_children): Same.
5655 (java_name_of_variable): Same.
5656 (java_path_expr_of_child): Same.
5657 (java_value_of_variable): Same.
5658 * varobj.c (number_of_children): Same.
5659 (name_of_variable): Same.
5660 (is_root_p): Same.
5661 (varobj_ensure_python_env): Same.
5662 (varobj_get_objname): Same.
5663 (varobj_get_expression): Same.
5664 (varobj_get_display_format): Same.
5665 (varobj_get_display_hint): Same.
5666 (varobj_has_more): Same.
5667 (varobj_get_thread_id): Same.
5668 (varobj_get_frozen): Same.
5669 (dynamic_varobj_has_child_method): Same.
5670 (varobj_get_gdb_type): Same.
5671 (is_path_expr_parent): Same.
5672 (varobj_default_is_path_expr_parent): Same.
5673 (varobj_get_language): Same.
5674 (varobj_get_attributes): Same.
5675 (varobj_is_dynamic_p): Same.
5676 (varobj_get_child_range): Same.
5677 (varobj_value_has_mutated): Same.
5678 (varobj_get_value_type): Same.
5679 (number_of_children): Same.
5680 (name_of_variable): Same.
5681 (check_scope): Same.
5682 (varobj_editable_p): Same.
5683 (varobj_value_is_changeable_p): Same.
5684 (varobj_floating_p): Same.
5685 (varobj_default_value_is_changeable_p): Same.
5686
5687 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
5688
5689 * varobj.c (varobj_get_path_expr): Set var->path_expr.
5690 * c-varobj.c (c_path_expr_of_child): Set local var instead of
5691 child->path_expr.
5692 (cplus_path_expr_of_child): Same.
5693
5694 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
5695
5696 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
5697 result.
5698 (mi_cmd_var_info_expression): Same.
5699 * varobj.c (varobj_get_expression): Mention in the comment that
5700 the result must by freed by the caller.
5701
5702 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
5703
5704 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
5705 varobj_get_type.
5706 (varobj_update_one): Same.
5707 * varobj.c (update_type_if_necessary): Free curr_type_str and
5708 new_type_str.
5709 (varobj_get_type): Specify in comment that the result needs to be
5710 freed by the caller.
5711
5712 2015-01-29 Doug Evans <dje@google.com>
5713
5714 PR symtab/17890
5715 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
5716
5717 2015-01-25 Mark Wielaard <mjw@redhat.com>
5718
5719 * dwarf2read.c (checkproducer): Call producer_is_gcc.
5720 * utils.c (producer_is_gcc_ge_4): Likewise.
5721 (producer_is_gcc): New function.
5722 * utils.h (producer_is_gcc): New declaration.
5723
5724 2015-01-29 Joel Brobecker <brobecker@adacore.com>
5725
5726 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
5727 kind.
5728 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
5729 parameter by "addr_stack" parameter.
5730 (resolve_dynamic_range): Replace "addr" parameter by
5731 "stack_addr" parameter. Update function documentation.
5732 Update code accordingly.
5733 (resolve_dynamic_array, resolve_dynamic_union)
5734 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
5735 (resolve_dynamic_type): Update code, following the changes made
5736 to resolve_dynamic_type_internal's interface.
5737 * dwarf2loc.h (struct property_addr_info): New.
5738 (dwarf2_evaluate_property): Replace "address" parameter
5739 by "addr_stack" parameter. Adjust function documentation.
5740 (struct dwarf2_offset_baton): New.
5741 (struct dwarf2_property_baton): Update documentation of
5742 field "referenced_type" to be more general. New field
5743 "offset_info" in union data field.
5744 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
5745 parameter by "addr_stack" parameter. Adjust code accordingly.
5746 Add support for PROP_ADDR_OFFSET properties.
5747 * dwarf2read.c (attr_to_dynamic_prop): Add support for
5748 DW_AT_data_member_location attributes as well. Use case
5749 statements instead of if/else condition.
5750
5751 2015-01-29 Joel Brobecker <brobecker@adacore.com>
5752
5753 * ada-varobj.c (ada_varobj_get_array_number_of_children):
5754 Return zero if PARENT_VALUE is NULL and parent_type's
5755 range type is dynamic.
5756
5757 2015-01-29 Joel Brobecker <brobecker@adacore.com>
5758
5759 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
5760 nonzero if the type's subtype is dynamic.
5761 (resolve_dynamic_range): Also resolve the range's subtype.
5762
5763 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
5764
5765 Pushed by Joel Brobecker <brobecker@adacore.com>.
5766 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
5767
5768 2015-01-27 Doug Evans <dje@google.com>
5769
5770 * NEWS: Mention gdb.Objfile.username.
5771 * python/py-objfile.c (objfpy_get_username): New function.
5772 (objfile_getset): Add "username".
5773
5774 2015-01-24 Mark Wielaard <mjw@redhat.com>
5775
5776 * stack.c (return_command): Markup warning message with _.
5777
5778 2015-01-24 Doug Evans <xdje42@gmail.com>
5779
5780 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
5781
5782 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5783
5784 Fix 100x slowdown regression on DWZ files.
5785 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
5786 (struct line_header): Add offset and offset_in_dwz.
5787 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
5788 (free_line_header_voidp): New declaration.
5789 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
5790 functions.
5791 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
5792 (handle_DW_AT_stmt_list): Use line_header_hash.
5793 (free_line_header_voidp): New function.
5794 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
5795 (dwarf_decode_lines): New parameter decode_mapping, use it.
5796 (dwarf2_free_objfile): Free line_header_hash.
5797
5798 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
5799
5800 PR gdb/17416
5801 * valops.c (value_rtti_indirect_type): Catch exception thrown by
5802 value_ind.
5803
5804 2015-01-15 Mark Wielaard <mjw@redhat.com>
5805
5806 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
5807 DW_AT_noreturn.
5808 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
5809 calling_convention an 8 bit bit field.
5810 (TYPE_NO_RETURN): New macro.
5811 * infcmd.c (finish_command): Query if function does not return
5812 normally.
5813 * stack.c (return_command): Likewise.
5814
5815 2015-01-23 Pedro Alves <palves@redhat.com>
5816
5817 * linux-nat.c (linux_is_async_p): New macro.
5818 (linux_nat_is_async_p):
5819 (linux_nat_terminal_inferior): Check whether the target can async
5820 instead of whether it is already async.
5821 (linux_nat_terminal_ours): Don't check whether the target is
5822 async.
5823 (linux_async_pipe): Use linux_is_async_p.
5824
5825 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5826
5827 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
5828 '-ascending'.
5829 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
5830 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
5831 Sort tp_array using tp_array_compar.
5832 (_initialize_thread): Extend thread_apply_all_command help.
5833
5834 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5835
5836 * corelow.c (core_open): Call also thread_command.
5837 * gdbthread.h (thread_command): New prototype moved from ...
5838 * thread.c (thread_command): ... here.
5839 (thread_command): Make it global.
5840
5841 2015-01-22 Pedro Alves <palves@redhat.com>
5842
5843 * configure.ac [*mingw32*]: Check $curses_found instead of
5844 $prefer_curses.
5845 * configure: Regenerate.
5846 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
5847 HAVE_NCURSES_NCURSES_H checks.
5848
5849 2015-01-22 Eli Zaretskii <eliz@gnu.org>
5850
5851 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
5852 fails with the 1st arg NULL, try again with "unknown". Don't test
5853 the "cup" capability: it isn't supported by the Windows port of
5854 ncurses, but the Windows console driver is still capable of
5855 supporting TUI.
5856
5857 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5858
5859 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
5860
5861 2015-01-22 Eli Zaretskii <eliz@gnu.org>
5862
5863 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
5864 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
5865 reason that "make TAGS" is broken.
5866
5867 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
5868
5869 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
5870 and check additional store instructions.
5871
5872 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
5873
5874 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
5875
5876 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
5877
5878 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
5879 ppc_canonicalize_syscall, ppc_linux_syscall_record,
5880 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
5881 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
5882 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
5883 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
5884 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
5885 ppc_process_record_op19, ppc_process_record_op31,
5886 ppc_process_record_op59, ppc_process_record_op60,
5887 ppc_process_record_op63): Likewise.
5888
5889 2015-01-20 Joel Brobecker <brobecker@adacore.com>
5890
5891 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
5892 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
5893 strerror.
5894
5895 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
5896
5897 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
5898 ppc_process_record_op31, ppc_process_record_op59,
5899 ppc_process_record_op60, ppc_process_record_op63,
5900 ppc_process_record): Fix -Wformat warning.
5901 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
5902 Remove unused variables.
5903
5904 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
5905
5906 * MAINTAINERS (Write After Approval): Add "Chen Gang".
5907
5908 2015-01-19 Eli Zaretskii <eliz@gnu.org>
5909
5910 * configure.ac [*mingw32*]: Only add windows-termcap.o to
5911 CONFIG_OBS if not building with a curses library.
5912 * configure: Regenerate.
5913
5914 * windows-termcap.c: Include defs.h. Make the whole body empty if
5915 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
5916 HAVE_NCURSES_NCURSES_H is defined.
5917
5918 2015-01-19 Joel Brobecker <brobecker@adacore.com>
5919
5920 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
5921 from end of line to start of next line.
5922
5923 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
5924
5925 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
5926 Scan PLT stub backward for reverse debugging.
5927 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
5928
5929 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
5930 Ulrich Weigand <uweigand@de.ibm.com>
5931
5932 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
5933 gdb_target_obs.
5934 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
5935 record.
5936 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
5937 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
5938 (ppc_linux_init_abi): Set process_record, process_record_signal.
5939 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
5940 ppc_linux_record_tdep to gdbarch_tdep.
5941 (ppc_process_record): New declaration.
5942 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
5943 ppc_process_record_op19, ppc_process_record_op31,
5944 ppc_process_record_op59, ppc_process_record_op60,
5945 ppc_process_record_op63, ppc_process_record): New functions.
5946
5947 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
5948
5949 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
5950 rs6000_in_function_epilogue_frame_p and add an argument
5951 for frame_info.
5952 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
5953 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
5954 New functions.
5955 (rs6000_epilogue_frame_unwind): New.
5956 (rs6000_gdbarch_init): Append epilogue unwinder.
5957
5958 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5959
5960 * nat/linux-personality.c: Replace "#ifndef
5961 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
5962 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
5963 systems.
5964
5965 2015-01-16 Eli Zaretskii <eliz@gnu.org>
5966
5967 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
5968 functions.
5969 (_initialize_tui_win) <border-kind, border-mode>:
5970 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
5971 (tui_set_tab_width_command): Fix the commentary.
5972
5973 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
5974
5975 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
5976 Doc fix.
5977 (tui_set_tab_width_command): Delete and recreate the source and
5978 the disassembly windows, to show the effect of the changed tab
5979 size immediately.
5980
5981 * tui/tui-data.h (LINE_PREFIX): Make shorter
5982 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
5983 "Thread NNNNN.XXXX" thread ID notation on Windows.
5984
5985 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5986
5987 Fix gcc-5 compilation.
5988 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
5989
5990 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
5991
5992 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
5993 (linux-personality.o): New rule.
5994 * common/common-defs.h: Include <stdint.h>.
5995 * config/aarch64/linux.mh (NATDEPFILES): Include
5996 linux-personality.o.
5997 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
5998 * config/arm/linux.mh (NATDEPFILES): Likewise.
5999 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6000 * config/i386/linux.mh (NATDEPFILES): Likewise.
6001 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6002 * config/m32r/linux.mh (NATDEPFILES): Likewise.
6003 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6004 * config/mips/linux.mh (NATDEPFILES): Likewise.
6005 * config/pa/linux.mh (NATDEPFILES): Likewise.
6006 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6007 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6008 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6009 * config/s390/linux.mh (NATDEPFILES): Likewise.
6010 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6011 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6012 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6013 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6014 * defs.h: Remove #include <stdint.h> (moved to
6015 common/common-defs.h).
6016 * linux-nat.c: Include nat/linux-personality.h. Remove #include
6017 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
6018 nat/linux-personality.c).
6019 (linux_nat_create_inferior): Remove code to disable address space
6020 randomization (moved to nat/linux-personality.c). Create cleanup
6021 to disable address space randomization.
6022 * nat/linux-personality.c: New file.
6023 * nat/linux-personality.h: Likewise.
6024
6025 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6026
6027 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
6028 common/posix-strerror.c.
6029 (posix-strerror.o): New rule.
6030 (mingw-strerror.o): Likewise.
6031 * common/common-utils.h (safe_strerror): Move prototype to here,
6032 from utils.h.
6033 * common/common.host: New file.
6034 * common/mingw-strerror.c: Likewise.
6035 * common/posix-strerror.c: Likewise.
6036 * configure: Regenerated.
6037 * configure.ac: Source common/common.host. Add variable
6038 common_host_obs to gdb_host_obs.
6039 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
6040 gdb/common/posix-strerror.c when warning about the use of
6041 strerror.
6042 * mingw-hdep.c (safe_strerror): Remove definition; move it to
6043 common/mingw-strerror.c.
6044 * posix-hdep.c (safe_strerror): Remove definition; move it to
6045 common/posix-hdep.c.
6046 * utils.h (safe_strerror): Remove prototype; move to
6047 common/common-utils.h.
6048
6049 2015-01-15 Joel Brobecker <brobecker@adacore.com>
6050
6051 GDB 7.8.2 released.
6052
6053 2015-01-15 Joel Brobecker <brobecker@adacore.com>
6054
6055 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
6056 ___XA type if the array has already been fixed.
6057
6058 2015-01-14 Yao Qi <yao@codesourcery.com>
6059
6060 * Makefile.in (ppc-linux.o): New rule.
6061 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
6062 * configure.ac: AC_CHECK_FUNCS(getauxval).
6063 * config.in: Re-generated.
6064 * configure: Re-generated.
6065 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
6066 Declare.
6067 * nat/ppc-linux.c: New file.
6068 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
6069 Call ppc64_64bit_inferior_p.
6070
6071 2015-01-14 Yao Qi <yao@codesourcery.com>
6072
6073 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
6074 nat/ppc-linux.h.
6075 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
6076 (PPC_FEATURE_HAS_DFP): Likewise.
6077 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
6078 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
6079 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
6080 Include "nat/ppc-linux.h".
6081 * nat/ppc-linux.h: New file.
6082 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
6083
6084 2015-01-14 Pedro Alves <palves@redhat.com>
6085
6086 PR gdb/17525
6087 * breakpoint.c: Include "interps.h".
6088 (bpstat_do_actions_1): Also check whether the interpreter is
6089 async.
6090
6091 2015-01-14 Pedro Alves <palves@redhat.com>
6092
6093 PR cli/17828
6094 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
6095 reinstall if the interpreter is sync.
6096
6097 2015-01-13 Doug Evans <dje@google.com>
6098
6099 * objfiles.c (objfile_filename): New function.
6100 * objfiles.h (objfile_filename): Declare it.
6101 (objfile_name): Add function comment.
6102 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
6103 bfd file name (which may be realpath'd), and the original name.
6104
6105 2015-01-13 Joel Brobecker <brobecker@adacore.com>
6106
6107 * NEWS: Create a new section for the next release branch.
6108 Rename the section of the current branch, now that it has
6109 been cut.
6110
6111 2015-01-13 Joel Brobecker <brobecker@adacore.com>
6112
6113 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
6114 * version.in: Bump version to 7.9.50.DATE-cvs.
6115
6116 2015-01-13 Joel Brobecker <brobecker@adacore.com>
6117
6118 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
6119 Remove trailing new-line in argument of call to warning.
6120
6121 2015-01-13 Joel Brobecker <brobecker@adacore.com>
6122
6123 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
6124 new-line in argument of call to "warning".
6125
6126 2015-01-13 Joel Brobecker <brobecker@adacore.com>
6127
6128 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
6129 in static block, then try searching for primitive types.
6130
6131 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
6132
6133 * top.h (gdb_add_history): Declare.
6134 * top.c (command_count): New variable.
6135 (gdb_add_history): New function.
6136 (gdb_safe_append_history): New static function.
6137 (quit_force): Call it.
6138 (command_line_input): Use gdb_add_history instead of
6139 add_history.
6140 * event-top.c (command_line_handler): Likewise.
6141
6142 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
6143
6144 PR gdb/17046
6145 * darwin-nat.c: Replace <machine/setjmp.h> #include by
6146 <setjmp.h> #include.
6147
6148 2015-01-11 Doug Evans <xdje42@gmail.com>
6149
6150 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
6151
6152 2015-01-11 Doug Evans <xdje42@gmail.com>
6153
6154 PR gdb/15830
6155 * NEWS: The "maint demangle" command is renamed as "demangle".
6156 * demangle.c: #include cli/cli-utils.h, language.h.
6157 (demangle_command): New function.
6158 (_initialize_demangle): Add new command "demangle".
6159 * maint.c (maintenance_demangle): Stub out.
6160 (_initialize_maint_cmds): Update help text for "maint demangle",
6161 and mark as deprecated.
6162
6163 2015-01-11 Mark Kettenis <kettenis@gnu.org>
6164
6165 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
6166 inferior_thread is a function.
6167
6168 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
6169
6170 * Makefile.in (.y.c): Don't munge yacc's #line
6171 directives.
6172
6173 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
6174
6175 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
6176 to prompt for input.
6177 * tui/tui-hooks.c (tui_query_hook): Remove.
6178 (tui_install_hooks): Don't set deprecated_query_hook.
6179 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
6180 height calculation. Always update the command window's cur_line.
6181
6182 2015-01-09 Pedro Alves <palves@redhat.com>
6183
6184 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
6185 function.
6186 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
6187 declaration.
6188 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
6189 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
6190 stop_reason.
6191 (check_stopped_by_watchpoint): New function.
6192 (save_sigtrap): Reimplement.
6193 (linux_nat_stopped_by_watchpoint): Adjust.
6194 (linux_nat_lp_status_is_event): Delete.
6195 (stop_wait_callback): Only call save_sigtrap after storing the
6196 pending status.
6197 (status_callback): If the thread had been stopped for a breakpoint
6198 that has since been removed, discard the event and resume the LWP.
6199 (count_events_callback, select_event_lwp_callback): Use
6200 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
6201 (cancel_breakpoint): Rename to ...
6202 (check_stopped_by_breakpoint): ... this. Record whether the LWP
6203 stopped for a software breakpoint or hardware breakpoint.
6204 (select_event_lwp): Only give preference to the stepping LWP in
6205 all-stop mode. Adjust comments.
6206 (stop_and_resume_callback): Remove references to new_pending_p.
6207 (linux_nat_filter_event): Likewise. Leave exit events of the
6208 leader thread pending here. Handle signal short circuiting here.
6209 Only call save_sigtrap after storing the pending waitstatus.
6210 (linux_nat_wait_1): Remove 'retry' label. Remove references to
6211 new_pending. Don't handle leaving events the caller is not
6212 interested in pending here, nor handle signal short-circuiting
6213 here. Also give equal priority to all LWPs that have had events
6214 in non-stop mode. If reporting a software breakpoint event,
6215 unadjust the LWP's PC.
6216 * linux-nat.h (enum lwp_stop_reason): New.
6217 (struct lwp_info) <stop_pc>: New field.
6218 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
6219 (struct lwp_info) <stop_reason>: New field.
6220 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
6221
6222 2015-01-09 Pedro Alves <palves@redhat.com>
6223
6224 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
6225 Set the LWP's 'resumed' flag.
6226
6227 2015-01-09 Pedro Alves <palves@redhat.com>
6228
6229 * linux-nat.c (linux_resume_one_lwp): New function.
6230 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
6231 (linux_nat_resume): Use lwp_status_pending_p and
6232 linux_resume_one_lwp.
6233 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
6234 (linux_handle_extended_wait): Use linux_resume_one_lwp.
6235 (status_callback, running_callback): Use lwp_status_pending_p.
6236 (lwp_status_pending_p): New function.
6237 (stop_and_resume_callback): Use lwp_status_pending_p.
6238 (linux_nat_filter_event): Use linux_resume_one_lwp.
6239 (linux_nat_wait_1): Always use status_callback to look for an LWP
6240 with a pending status. Use linux_resume_one_lwp.
6241 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
6242 linux_resume_one_lwp.
6243
6244 2015-01-09 Pedro Alves <palves@redhat.com>
6245
6246 * breakpoint.c (bp_location_inserted_here_p): New function,
6247 factored out from ...
6248 (breakpoint_inserted_here_p): ... here. Use
6249 ALL_BP_LOCATIONS_AT_ADDR.
6250 (software_breakpoint_inserted_here_p): Use
6251 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
6252
6253 2014-01-09 Pedro Alves <palves@redhat.com>
6254
6255 Skip enabling event reporting if the kernel supports
6256 PTRACE_EVENT_CLONE.
6257 * linux-thread-db.c: Include "nat/linux-ptrace.h".
6258 (thread_db_use_events): New function.
6259 (try_thread_db_load_1): Check thread_db_use_events before enabling
6260 event reporting.
6261 (update_thread_state): New function.
6262 (attach_thread): Use it. Check thread_db_use_events before
6263 enabling event reporting.
6264 (thread_db_detach): Check thread_db_use_events before disabling
6265 event reporting.
6266 (find_new_threads_callback): Check thread_db_use_events before
6267 enabling event reporting. Update the thread's state if not using
6268 libthread_db events.
6269
6270 2015-01-09 Pedro Alves <palves@redhat.com>
6271
6272 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
6273 about to wait for is > 0.
6274 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
6275 the kernel thread ID is -1.
6276
6277 2015-01-09 Pedro Alves <palves@redhat.com>
6278
6279 * linux-nat.c (attach_proc_task_lwp_callback): New function.
6280 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
6281 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
6282 ptrace option flags.
6283 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
6284 field.
6285 * nat/linux-procfs.c: Include <dirent.h>.
6286 (linux_proc_get_int): New parameter "warn". Handle it.
6287 (linux_proc_get_tgid): Adjust.
6288 (linux_proc_get_tracerpid): Rename to ...
6289 (linux_proc_get_tracerpid_nowarn): ... this.
6290 (linux_proc_pid_get_state): New function, factored out from
6291 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
6292 and handle it.
6293 (linux_proc_pid_is_gone): New function.
6294 (linux_proc_pid_is_stopped): Adjust.
6295 (linux_proc_pid_is_zombie_maybe_warn)
6296 (linux_proc_pid_is_zombie_nowarn): New functions.
6297 (linux_proc_pid_is_zombie): Use
6298 linux_proc_pid_is_zombie_maybe_warn.
6299 (linux_proc_attach_tgid_threads): New function.
6300 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
6301 (linux_proc_get_tracerpid): Rename to ...
6302 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
6303 (linux_proc_pid_is_gone): New declaration.
6304 (linux_proc_pid_is_zombie): Update comment.
6305 (linux_proc_pid_is_zombie_nowarn): New declaration.
6306 (linux_proc_attach_lwp_func): New typedef.
6307 (linux_proc_attach_tgid_threads): New declaration.
6308 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
6309 use nowarn functions.
6310 (linux_ptrace_attach_fail_reason_string): Move here from
6311 gdbserver/linux-low.c and rename.
6312 (ptrace_supports_feature): If the current ptrace options are not
6313 known yet, check them now, instead of asserting.
6314 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
6315 Declare.
6316
6317 2015-01-09 Pedro Alves <palves@redhat.com>
6318
6319 * linux-thread-db.c (thread_db_find_new_threads_silently)
6320 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
6321 (find_new_threads_once): Print debug output on gdb_stdlog.
6322
6323 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
6324 Pedro Alves <palves@redhat.com>
6325
6326 * compile/compile.c: Include "gdb_wait.h".
6327 (do_rmdir): Check return value, and free 'zap'.
6328
6329 2015-01-08 Pedro Alves <palves@redhat.com>
6330 Yao Qi <yao@codesourcery.com>
6331
6332 * dwarf2loc.c (indirect_pieced_value): Don't call
6333 gdb_sign_extend. Call extract_signed_integer instead.
6334 * utils.c (gdb_sign_extend): Remove.
6335 * utils.h (gdb_sign_extend): Remove declaration.
6336
6337 2015-01-07 Pierre Muller <muller@sourceware.org>
6338
6339 PR symtab/17811
6340 * stabsread.c (define_symbol): Set language for C++ special symbols.
6341
6342 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
6343
6344 * inflow.c (initial_gdb_ttystate): Tweak comment.
6345
6346 2015-01-07 Joel Brobecker <brobecker@adacore.com>
6347
6348 * inflow.c (set_initial_gdb_ttystate): Add empty line after
6349 comment documenting function.
6350
6351 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
6352
6353 * terminal.h (set_initial_gdb_ttystate): Declare.
6354 * inflow.c (initial_gdb_ttystate): New static variable.
6355 (set_initial_gdb_ttystate): New setter.
6356 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
6357 instead of our current terminal state.
6358 * top.c (gdb_init): Call set_initial_gdb_ttystate.
6359
6360 2015-01-07 Joel Brobecker <brobecker@adacore.com>
6361
6362 * guile/scm-type.c (tyscm_array_1): Add comment.
6363 * python/py-type.c (typy_array_1): Add comment.
6364
6365 2015-01-06 Joel Brobecker <brobecker@adacore.com>
6366
6367 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
6368 error if N2 is equal to N1 - 1.
6369
6370 2015-01-06 Joel Brobecker <brobecker@adacore.com>
6371
6372 * python/py-type.c (typy_array_1): Do not raise negative-length
6373 exception if N2 is equal to N1 - 1.
6374
6375 2015-01-03 Doug Evans <xdje42@gmail.com>
6376
6377 * c-exp.y: Whitespace cleanup.
6378 (classify_inner_name): Remove extra ;.
6379
6380 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
6381
6382 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
6383 offset signed.
6384
6385 2015-01-02 Doug Evans <dje@google.com>
6386
6387 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
6388
6389 2015-01-02 Doug Evans <dje@google.com>
6390
6391 * symtab.h (struct symbol): Fix typo in comment.
6392
6393 2015-01-01 Joel Brobecker <brobecker@adacore.com>
6394
6395 Update year range in copyright notice of all files.
6396
6397 2015-01-01 Joel Brobecker <brobecker@adacore.com>
6398
6399 * top.c (print_gdb_version): Update copyright year to 2015.
6400
6401 2015-01-01 Joel Brobecker <brobecker@adacore.com>
6402
6403 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6404
6405 For older changes see ChangeLog-2014.
6406 \f
6407 Local Variables:
6408 mode: change-log
6409 left-margin: 8
6410 fill-column: 74
6411 version-control: never
6412 coding: utf-8
6413 End:
This page took 0.171723 seconds and 4 git commands to generate.