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