Add gdb.Type.optimized_out method.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-04-28 Sasha Smundak <asmundak@google.com>
2
3 * NEWS: Mention gdb.Type.optimized_out method.
4 * python/py-type.c (typy_optimized_out): New function.
5
6 2015-04-28 John Baldwin <jhb@FreeBSD.org>
7
8 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9
10 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
11
12 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
13 (initialize_utils): Move call of init_page_info() to ...
14 * top.c (gdb_init): ... here.
15
16 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
17
18 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
19 (tui_sigwinch_handler): Still update our idea of
20 the terminal's width and height even when TUI is not active.
21
22 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
23
24 * utils.h (set_screen_width_and_height): Declare.
25 * utils.c (set_screen_width_and_height): Define.
26 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
27
28 2015-04-28 Gary Benson <gbenson@redhat.com>
29
30 * infrun.c (solist.h): New include.
31 (follow_exec): Use exec_file_find to prefix execd_pathname
32 with gdb_sysroot.
33
34 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
35
36 * tui/tui-source.c (tui_set_source_content): Avoid calling
37 strcpy() when offset is 0.
38
39 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
40
41 PR gdb/18155
42 * tui/tui-data.c (tui_free_window): Don't free the locator
43 window when passed an SRC_WIN or a DISASSEM_WIN.
44
45 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
46
47 * tui/tui-data.h (struct tui_win_element): Forward-declare.
48 (tui_win_content): Move declaration.
49 (struct tui_gen_win_info): Give 'content' field the
50 type tui_win_content.
51 * tui/tui-data.c (init_content_element): Remove redundant and
52 erroneous casts.
53 (tui_add_content_elements): Remove erroneous cast.
54 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
55 casts.
56 (tui_get_begin_asm_address): Likewise.
57 * tui/tui-regs.c (tui_show_registers): Likewise.
58 (tui_show_register_group): Likewise.
59 (tui_display_registers_from): Likewise.
60 (tui_check_register_values): Likewise.
61 * tui/tui-source.c (tui_set_source_content): Likewise.
62 (tui_set_source_content_nil): Likewise.
63 (tui_source_is_displayed): Likewise.
64 * tui/tui-stack.c (tui_show_locator_content): Likewise.
65 (tui_set_locator_fullname): Likewise.
66 (tui_set_locator_info): Likewise.
67 (tui_show_frame_info): Likewise.
68 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
69 (tui_show_source_line): Likewise.
70 (tui_horizontal_source_scroll): Likewise.
71 (tui_update_breakpoint_info): Likewise.
72 (tui_set_exec_info_content): Likewise.
73 (tui_show_exec_info_content): Likewise.
74 (tui_alloc_source_buffer): Likewise.
75 (tui_line_is_displayed): Likewise.
76 (tui_addr_is_displayed): Likewise.
77
78 2015-04-27 John Baldwin <jhb@FreeBSD.org>
79
80 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
81 event if PL_FLAG_EXEC is set.
82 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
83 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
84 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
85 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
86 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
87
88 2015-04-27 John Baldwin <jhb@FreeBSD.org>
89
90 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
91 [TDP_RFPPWAIT] New variable fbsd_pending_children.
92 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
93 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
94 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
95 [PT_LWPINFO] (fbsd_wait): New function.
96 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
97 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
98 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
99 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
100 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
101 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
102 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
103 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
104 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
105 "fbsd_wait".
106 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
107 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
108 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
109 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
110 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
111 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
112 Set "to_post_attach" to "fbsd_post_attach".
113
114 2015-04-27 John Baldwin <jhb@FreeBSD.org>
115
116 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
117 (fbsd_find_memory_regions): Mark static.
118 (fbsd_nat_add_target): New function.
119 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
120 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
121 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
122 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
123 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
124 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
125
126 2015-04-27 Gary Benson <gbenson@redhat.com>
127
128 * objfiles.c (allocate_objfile): Do not attempt to expand name
129 if name is a "target:" filename.
130 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
131 to load auto-load scripts for objfiles with "target:" filenames.
132
133 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
134
135 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
136 (enum s390_vector_abi_kind): New enum.
137 (struct gdbarch_tdep)<vector_abi>: New field.
138 (s390_effective_inner_type): Add parameter min_size. Stop
139 unwrapping if the inner type is smaller than min_size.
140 (s390_function_arg_float): Adjust call to
141 s390_effective_inner_type.
142 (s390_function_arg_vector): New function.
143 (s390_function_arg_integer): Adjust comment.
144 (struct s390_arg_state)<vr>: New field.
145 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
146 arguments according to vector ABI when appropriate.
147 (s390_push_dummy_call): Initialize the argument state's field
148 'vr'. Adjust calls to s390_handle_arg.
149 (s390_register_return_value): Handle vector return values.
150 (s390_return_value): Apply the "register" return value convention
151 to a vector when appropriate.
152 (s390_gdbarch_init): Initialize tdep->vector_abi.
153 * NEWS: Announce S390 vector ABI support.
154
155 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
156
157 * s390-linux-tdep.c (s390_return_value_convention): Remove
158 function. Inline its logic...
159 (s390_return_value): ...here. Instead, move the handling of the
160 "register" return value convention...
161 (s390_register_return_value): ...here. New function.
162
163 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
164
165 * s390-linux-tdep.c
166 (is_float_singleton): Remove function. Move the "singleton" part
167 of the logic...
168 (s390_effective_inner_type): ...here. New function.
169 (is_float_like): Remove function. Inline its logic...
170 (s390_function_arg_float): ...here.
171 (is_pointer_like, is_integer_like, is_struct_like): Remove
172 functions. Inline their logic...
173 (s390_function_arg_integer): ...here.
174 (s390_function_arg_pass_by_reference): Remove function.
175 (extend_simple_arg): Remove function.
176 (alignment_of): Remove function.
177 (struct s390_arg_state): New structure.
178 (s390_handle_arg): New function.
179 (s390_push_dummy_call): Move parameter placement logic to the new
180 function s390_handle_arg. Call it for calculating the stack area
181 sizes first, and again for actually writing the parameters.
182
183 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
184
185 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
186 false if the argument is zero.
187
188 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
189
190 * ada-lang.c (template_to_static_fixed_type): Return input type
191 when it is already fixed. Cache the input type itself when not
192 creating a static fixed copy. Make it explicit that we never
193 molestate the input type.
194 * gdbtypes.c (resolve_dynamic_struct): Reset the
195 TYPE_TARGET_TYPE field for resolved copies.
196
197 2015-04-27 Joel Brobecker <brobecker@adacore.com>
198
199 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
200 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
201 (template_to_static_fixed_type): Call ada_check_typedef only
202 when necessary.
203
204 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
205
206 * cli/cli-dump.c (srec_dump_command): Add internationalization
207 mark ups.
208 (ihex_dump_command): Likewise.
209 (tekhex_dump_command): Likewise.
210 (binary_dump_command): Likewise.
211 (binary_append_command): Likewise.
212
213 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
214
215 * cli/cli-dump.c (verilog_cmdlist): New variable.
216 (dump_verilog_memory): New function.
217 (dump_verilog_value): New function.
218 (verilog_dump_command): New function.
219 (_initialize_cli_dump): Add new commands to support verilog dump
220 format.
221 * NEWS: Add entry for "dump verilog".
222
223 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
224
225 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
226 descriptive type when there is none.
227
228 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
229
230 * tui/tui-win.c (tui_async_resize_screen): Call
231 rl_resize_terminal().
232
233 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
234
235 * windows-nat.c (handle_output_debug_string): Don't change
236 current_event.dwThreadId.
237 (get_windows_debug_event): Use thread_id, rather than relying on
238 current_event.dwThreadId being changed.
239
240 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
241
242 * windows-nat.c (windows_continue): Report an error if
243 ContinueDebugEvent() fails.
244
245 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
246
247 * windows-nat.c (windows_resume): Fix misspelling in debug output.
248
249 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
250
251 * windows-nat.c (get_windows_debug_event): Replace retval with
252 thread_id throughout. Update stale comment.
253
254 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
255
256 * windows-nat.c (get_windows_debug_event): Don't use ternary
257 conditional operator.
258
259 2015-04-21 Pierre Muller <muller@sourceware.org>
260
261 PR pascal/17815
262 p-exp.y (yylex): Reorganize code to return the matched pattern
263 for a field of this.
264
265 2015-04-21 Gary Benson <gbenson@redhat.com>
266
267 * common/fileio.h (fileio_to_host_openflags): New declaration.
268 * common/fileio.c (fcntl.h): New include.
269 (fileio_to_host_openflags): New function, factored out from...
270 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
271 Single use updated.
272
273 2015-04-21 Kevin Buettner <kevinb@redhat.com>
274
275 * rl78-tdep.c (RL78_SP_ADDR): Define.
276 (opc_reg_to_gdb_regnum): New static function.
277 (rl78_analyze_prologue): Recognize instructions forming slightly
278 more interesting prologues.
279
280 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
281
282 Revert:
283 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
284 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
285 TYPE_CODE_REF types so that they are not considered as dynamic
286 depending on the referenced type.
287 (resolve_dynamic_type_internal): Likewise.
288
289 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
290
291 Revert:
292 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
293 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
294 "top_level" parameter.
295 (resolve_dynamic_type_internal): Remove the unused "top_level"
296 parameter. Update call to is_dynamic_type_internal.
297 (is_dynamic_type): Update call to is_dynamic_type_internal.
298 (resolve_dynamic_range): Update call to
299 resolve_dynamic_type_internal.
300 (resolve_dynamic_union): Likewise.
301 (resolve_dynamic_struct): Likewise.
302 (resolve_dynamic_type): Likewise.
303
304 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
305
306 * breakpoint.c (update_dprintf_command_list): Remove duplicated
307 xmalloc.
308
309 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
310
311 * reply_mig_hack.awk: Robustify parsing.
312
313 * reply_mig_hack.awk: Don't bother to declare an intermediate
314 function pointer variable.
315
316 2015-04-17 Doug Evans <dje@google.com>
317
318 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
319 to "exec_displacement" to avoid confusion with inner use of the name.
320
321 2015-04-17 Pedro Alves <palves@redhat.com>
322
323 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
324 if HW point of TYPE isn't supported.
325
326 2015-04-17 Yao Qi <yao.qi@linaro.org>
327 Pedro Alves <palves@redhat.com>
328
329 * target.h (target_can_use_hardware_watchpoint): Update comments.
330 Remove trailing ";".
331
332 2015-04-17 Gary Benson <gbenson@redhat.com>
333
334 * remote.c (remote_add_inferior): New argument try_open_exec.
335 If nonzero, attempt to open the inferior's executable file as
336 the main executable if no main executable is open already.
337 All callers updated.
338 * NEWS: Mention that GDB now supports automatic location and
339 retrieval of executable + files from remote targets.
340
341 2015-04-17 Gary Benson <gbenson@redhat.com>
342
343 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
344 * remote.c (PACKET_qXfer_exec_file): Likewise.
345 (remote_protocol_features): Register the
346 "qXfer:exec-file:read" feature.
347 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
348 (remote_pid_to_exec_file): New function.
349 (init_remote_ops): Initialize to_pid_to_exec_file.
350 (_initialize_remote): Register new "set/show remote
351 pid-to-exec-file-packet" command.
352 * NEWS: Announce new qXfer:exec-file:read packet.
353
354 2015-04-17 Gary Benson <gbenson@redhat.com>
355
356 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
357 New declaration.
358 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
359 New function, factored out from...
360 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
361
362 2015-04-17 Gary Benson <gbenson@redhat.com>
363
364 * exec.c (solist.h): New include.
365 (exec_file_locate_attach): Prefix absolute executable
366 paths with gdb_sysroot if set.
367 * NEWS: Mention that executable paths may be prepended
368 with sysroot.
369
370 2015-04-17 Gary Benson <gbenson@redhat.com>
371
372 * solist.h (exec_file_find): New declaration.
373 * solib.c (solib_find_1): New function, factored out from...
374 (solib_find): ...here.
375 (exec_file_find): New function.
376
377 2015-04-17 Gary Benson <gbenson@redhat.com>
378
379 * gdbcore.h (exec_file_locate_attach): New declaration.
380 * exec.c (exec_file_locate_attach): New function, factored
381 out from...
382 * infcmd.c (attach_command_post_wait): ...here.
383
384 2015-04-17 Mike Frysinger <vapier@gentoo.org>
385
386 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
387
388 2015-04-16 Yao Qi <yao.qi@linaro.org>
389
390 * infrun.c (maybe_software_singlestep): Declare.
391 (displaced_step_fixup): Call maybe_software_singlestep.
392
393 2015-04-15 Doug Evans <dje@google.com>
394
395 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
396
397 2015-04-15 Doug Evans <dje@google.com>
398
399 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
400
401 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
402
403 * python/lib/gdb/command/unwinders.py: Add parentheses.
404
405 2015-04-15 Yao Qi <yao.qi@linaro.org>
406
407 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
408
409 2015-04-15 Yao Qi <yao.qi@linaro.org>
410
411 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
412
413 2015-04-15 Yao Qi <yao.qi@linaro.org>
414
415 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
416 dsc->insn_size instead of 4.
417
418 2015-04-14 Gary Benson <gbenson@redhat.com>
419
420 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
421 * minidebug.c (lzma_stat): Likewise.
422 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
423 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
424
425 2015-04-13 Stan Shebs <stanshebs@google.com>
426
427 * MAINTAINERS: Update my email address.
428
429 2015-04-13 John Baldwin <jhb@FreeBSD.org>
430
431 * amd64-tdep.c (amd64_target_description): New function.
432 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
433 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
434 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
435 x86 extended save area.
436 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
437 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
438 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
439 (_initialize_amd64fbsd_nat): Set "to_read_description" to
440 "amd64fbsd_read_description".
441 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
442 (amd64fbsd_supply_xstateregset): New function.
443 (amd64fbsd_collect_xstateregset): New function.
444 Add "amd64fbsd_xstateregset".
445 (amd64fbsd_iterate_over_regset_sections): New function.
446 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
447 "I386_FBSD_XSAVE_XCR0_OFFSET".
448 Add "iterate_over_regset_sections" gdbarch method.
449 Add "core_read_description" gdbarch method.
450 * i386-tdep.c (i386_target_description): New function.
451 * i386-tdep.h: Export i386_target_description and tdesc_i386.
452 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
453 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
454 x86 extended save area.
455 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
456 * i386bsd-nat.h: Export i386bsd_xsave_len.
457 * i386fbsd-nat.c (i386fbsd_read_description): New function.
458 (_initialize_i386fbsd_nat): Set "to_read_description" to
459 "i386fbsd_read_description".
460 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
461 (i386fbsd_core_read_description): New function.
462 (i386fbsd_supply_xstateregset): New function.
463 (i386fbsd_collect_xstateregset): New function.
464 Add "i386fbsd_xstateregset".
465 (i386fbsd_iterate_over_regset_sections): New function.
466 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
467 "I386_FBSD_XSAVE_XCR0_OFFSET".
468 Add "iterate_over_regset_sections" gdbarch method.
469 Add "core_read_description" gdbarch method.
470 * i386fbsd-tdep.h: New file.
471
472 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
473
474 * NEWS (Changes since GDB 7.9): Add removed -xdb.
475 * breakpoint.c (command_line_is_silent): Remove xdb_commands
476 conditional.
477 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
478 and lb.
479 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
480 va.
481 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
482 conditional.
483 * defs.h (xdb_commands): Remove declaration.
484 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
485 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
486 * infcmd.c (run_no_args_command, go_command): Remove.
487 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
488 * infrun.c (xdb_handle_command): Remove.
489 (_initialize_infrun): Remove xdb_commands for lz and z.
490 * main.c (xdb_commands): Remove variable.
491 (captured_main): Remove "xdb" from long_options.
492 (print_gdb_help): Remove --xdb from help.
493 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
494 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
495 * stack.c (backtrace_full_command, args_plus_locals_info)
496 (current_frame_command): Remove.
497 (_initialize_stack): Remove xdb_commands for t, T and l.
498 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
499 * thread.c (_initialize_thread): Remove xdb_commands condition.
500 * tui/tui-layout.c (tui_toggle_layout_command)
501 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
502 (_initialize_tui_layout): Remove xdb_commands for td and ts.
503 * tui/tui-regs.c (tui_scroll_regs_forward_command)
504 (tui_scroll_regs_backward_command): Remove.
505 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
506 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
507 (_initialize_tui_win): Remove xdb_commands for U and w.
508 * utils.c (pagination_on_command, pagination_off_command): Remove.
509 (initialize_utils): Remove xdb_commands for am and sm.
510
511 2015-04-10 Pedro Alves <palves@redhat.com>
512
513 * infrun.c (displaced_step_fixup): Switch to the event ptid
514 earlier. If the thread stopped for a watchpoint and the
515 target/arch has non-continuable watchpoints, cancel the displaced
516 step.
517 (resume): Don't start a displaced step if in-line step-over info
518 is valid.
519
520 2015-04-10 Pedro Alves <palves@redhat.com>
521
522 * infrun.c (displaced_step_in_progress): New function.
523 (do_target_resume): Advise target to report all signals if
524 displaced stepping.
525
526 2015-04-10 Pedro Alves <palves@redhat.com>
527
528 PR gdb/18216
529 * infrun.c (process_event_stop_test): Don't assume a step-resume
530 is set if tp->stepped_breakpoint is true.
531
532 2015-04-10 Yao Qi <yao.qi@linaro.org>
533
534 * arm-tdep.c (install_alu_reg): Update comment.
535 (thumb_copy_alu_reg): Remove local variable rn. Update
536 debugging message. Use r2 instead of r1 in the modified
537 instruction.
538
539 2015-04-10 Pedro Alves <palves@redhat.com>
540
541 PR gdb/13858
542 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
543 linux_displaced_step_location as gdbarch_displaced_step_location
544 hook.
545 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
546 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
547 * linux-tdep.c (linux_displaced_step_location): New function,
548 based on ppc_linux_displaced_step_location.
549 * linux-tdep.h (linux_displaced_step_location): New declaration.
550 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
551 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
552 Delete.
553 (ppc_linux_init_abi): Install linux_displaced_step_location as
554 gdbarch_displaced_step_location hook, even without Cell/B.E..
555 (_initialize_ppc_linux_tdep): Don't install
556 ppc_linux_inferior_created as inferior_created observer.
557 * s390-linux-tdep.c (s390_gdbarch_init): Install
558 linux_displaced_step_location as gdbarch_displaced_step_location
559 hook.
560
561 2015-04-09 Gary Benson <gbenson@redhat.com>
562
563 * common/common-remote-fileio.h: Rename to...
564 * common/fileio.h: ...this. Update all references.
565 (remote_fileio_to_fio_error): Rename to...
566 (host_to_fileio_error): ...this.
567 (remote_fileio_to_be): Rename to...
568 (host_to_bigendian): ...this. Update all callers.
569 (remote_fileio_to_fio_uint): Rename to...
570 (host_to_fileio_uint): ...this. Update all callers.
571 (remote_fileio_to_fio_time): Rename to...
572 (host_to_fileio_time): ...this. Update all callers.
573 (remote_fileio_to_fio_stat): Rename to...
574 (host_to_fileio_stat): ...this.
575 Update all references.
576 * common/common-remote-fileio.c: Rename to...
577 * common/fileio.c: ...this. Update all references.
578 (remote_fileio_to_fio_error): Rename to...
579 (host_to_fileio_error): ...this. Update all callers.
580 (remote_fileio_mode_to_target): Rename to...
581 (fileio_mode_pack): ...this. Update all callers.
582 (remote_fileio_to_fio_mode): Rename to...
583 (host_to_fileio_mode): ...this. Update all callers.
584 (remote_fileio_to_fio_ulong): Rename to...
585 (host_to_fileio_ulong): ...this. Update all callers.
586 (remote_fileio_to_fio_stat): Rename to...
587 (host_to_fileio_stat): ...this. Update all callers.
588
589 2015-04-09 Andy Wingo <wingo@igalia.com>
590
591 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
592 (frame_functions): Bind gdbscm_frame_read_register to
593 frame-read-register.
594 * guile/lib/gdb.scm (frame-read-register): Export.
595
596 2015-04-09 Gary Benson <gbenson@redhat.com>
597
598 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
599 New declaration.
600 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
601 New function, factored out the named functions below.
602 * inf-child.c (gdb/fileio.h): Remove include.
603 (common-remote-fileio.h): New include.
604 (inf_child_errno_to_fileio_error): Remove function. Update
605 all callers to use remote_fileio_to_fio_error.
606 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
607
608 2015-04-09 Andy Wingo <wingo@igalia.com>
609
610 * MAINTAINERS (Write After Approval): Add Andy Wingo.
611
612 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
613
614 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
615 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
616 * configure: Regenerated.
617
618 2015-04-09 Pedro Alves <palves@redhat.com>
619
620 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
621 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
622 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
623 * gnulib/import/Makefile.am: Update.
624 * gnulib/import/Makefile.in: Update.
625 * gnulib/import/m4/gnulib-cache.m4: Update.
626 * gnulib/import/m4/gnulib-comp.m4: Update.
627 * gnulib/import/m4/strtok_r.m4: New file.
628 * gnulib/import/strtok_r.c: New file.
629
630 2015-04-09 Pedro Alves <palves@redhat.com>
631
632 * gnulib/update-gnulib.sh (aclocal version check): Filter out
633 "called too early to check prototype".
634
635 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
636
637 PR python/16699
638 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
639 use a caching mechanism. Adjust comments and code to reflect
640 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
641 (cmdpy_completer_handle_brkchars): Adjust call to
642 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
643 (cmdpy_completer): Likewise.
644
645 2015-04-08 Yao Qi <yao.qi@linaro.org>
646
647 * spu-tdep.c (spu_gdbarch_init): Don't call
648 set_gdbarch_cannot_step_breakpoint.
649
650 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
651
652 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
653
654 2015-04-07 Pedro Alves <palves@redhat.com>
655
656 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
657 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
658 (delete_exited_threads): New declaration.
659 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
660 * linux-nat.c (linux_nat_update_thread_list): New function.
661 (linux_nat_add_target): Install it.
662 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
663 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
664 (delete_exited_threads): New function.
665
666 2015-04-07 Pedro Alves <pedro@codesourcery.com>
667
668 * infrun.c (resume) <displaced stepping debug output>: Get the
669 leader thread's regcache, not resume_ptid's.
670
671 2015-04-06 Doug Evans <xdje42@gmail.com>
672
673 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
674 VAR_DOMAIN.
675 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
676 Include symbol domain in debugging output.
677
678 2015-04-06 Pedro Alves <palves@redhat.com>
679 Bernd Edlinger <bernd.edlinger@hotmail.de>
680
681 * configure.ac: Remove the mingw32-specific stub-termcap.o
682 fallback, and instead fallback to the stub termcap on all hosts.
683 * configure: Regenerate.
684 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
685 symbols.
686
687 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
688
689 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
690 "top_level" parameter.
691 (resolve_dynamic_type_internal): Remove the unused "top_level"
692 parameter. Update call to is_dynamic_type_internal.
693 (is_dynamic_type): Update call to is_dynamic_type_internal.
694 (resolve_dynamic_range): Update call to
695 resolve_dynamic_type_internal.
696 (resolve_dynamic_union): Likewise.
697 (resolve_dynamic_struct): Likewise.
698 (resolve_dynamic_type): Likewise.
699
700 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
701
702 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
703 TYPE_CODE_REF types so that they are not considered as dynamic
704 depending on the referenced type.
705 (resolve_dynamic_type_internal): Likewise.
706
707 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
708
709 * Makefile.in (top_srcdir): New.
710 * configure: Regenerated.
711
712 2015-04-02 Gary Benson <gbenson@redhat.com>
713
714 * NEWS: Announce the new default sysroot of "target:".
715
716 2015-04-02 Gary Benson <gbenson@redhat.com>
717
718 * main.c (captured_main): Set gdb_sysroot to "target:"
719 if not otherwise set.
720
721 2015-04-02 Gary Benson <gbenson@redhat.com>
722
723 * exec.c (exec_file_attach): Support "target:" filenames.
724
725 2015-04-02 Gary Benson <gbenson@redhat.com>
726
727 * solib.c (solib_find): Strip "target:" prefix from sysroot
728 if accessing local files.
729
730 2015-04-02 Gary Benson <gbenson@redhat.com>
731
732 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
733 checks and error messages.
734
735 2015-04-02 Gary Benson <gbenson@redhat.com>
736
737 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
738 (remote_filename_p): Remove declaration.
739 (remote_bfd_open): Likewise.
740 * remote.c (remote_bfd_iovec_open): Remove function.
741 (remote_bfd_iovec_close): Likewise.
742 (remote_bfd_iovec_pread): Likewise.
743 (remote_bfd_iovec_stat): Likewise.
744 (remote_filename_p): Likewise.
745 (remote_bfd_open): Likewise.
746 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
747 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
748 (gdb_bfd_open_maybe_remote): Remove function.
749 (symfile_bfd_open): Replace remote filename check with
750 target filename check.
751 (reread_symbols): Use gdb_bfd_open.
752 * build-id.c (gdbcore.h): New include.
753 (build_id_to_debug_bfd): Use gdb_bfd_open.
754 * infcmd.c (attach_command_post_wait): Remove remote filename
755 check.
756 * solib.c (solib_find): Replace remote-specific handling with
757 target-specific handling. Update comments where necessary.
758 (solib_bfd_open): Replace remote-specific handling with
759 target-specific handling.
760 (gdb_sysroot_changed): New function.
761 (_initialize_solib): Call the above when gdb_sysroot changes.
762 * windows-tdep.c (gdbcore.h): New include.
763 (windows_xfer_shared_library): Use gdb_bfd_open.
764
765 2015-04-02 Gary Benson <gbenson@redhat.com>
766
767 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
768 (is_target_filename): New declaration.
769 (gdb_bfd_has_target_filename): Likewise.
770 (gdb_bfd_open): Update documentation comment.
771 * gdb_bfd.c (target.h): New include.
772 (gdb/fileio.h): Likewise.
773 (is_target_filename): New function.
774 (gdb_bfd_has_target_filename): Likewise.
775 (fileio_errno_to_host): Likewise.
776 (gdb_bfd_iovec_fileio_open): Likewise.
777 (gdb_bfd_iovec_fileio_pread): Likewise.
778 (gdb_bfd_iovec_fileio_close): Likewise.
779 (gdb_bfd_iovec_fileio_fstat): Likewise.
780 (gdb_bfd_open): Use target fileio to access paths prefixed
781 with "target:" where necessary.
782
783 2015-04-02 Gary Benson <gbenson@redhat.com>
784
785 * target.h (struct target_ops) <to_filesystem_is_local>:
786 New field.
787 (target_filesystem_is_local): New macro.
788 * target-delegates.c: Regenerate.
789 * remote.c (remote_filesystem_is_local): New function.
790 (init_remote_ops): Initialize to_filesystem_is_local.
791
792 2015-04-02 Gary Benson <gbenson@redhat.com>
793
794 * target.h (struct target_ops) <to_fileio_fstat>: New field.
795 (target_fileio_fstat): New declaration.
796 * target.c (target_fileio_fstat): New function.
797 * inf-child.c (inf_child_fileio_fstat): Likewise.
798 (inf_child_target): Initialize to_fileio_fstat.
799 * remote.c (init_remote_ops): Likewise.
800
801 2015-04-01 Sasha Smundak <asmundak@google.com>
802
803 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
804 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
805 (py-unwind.o): New recipe.
806 * NEWS: mention Python frame unwinding.
807 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
808 gdb/unwinder.py and gdb/command/unwinder.py
809 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
810 list.
811 (execute_unwinders): New function.
812 * python/lib/gdb/command/unwinders.py: New file.
813 * python/lib/gdb/unwinder.py: New file.
814 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
815 (objfpy_dealloc): Decrement frame_unwinders reference count.
816 (objfpy_initialize): Create frame_unwinders list.
817 (objfpy_get_frame_unwinders): New function.
818 (objfpy_set_frame_unwinders): Ditto.
819 (objfile_getset): Add frame_unwinders attribute to Objfile.
820 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
821 (pspy_dealloc): Decrement frame_unwinders reference count.
822 (pspy_initialize): Create frame_unwinders list.
823 (pspy_get_frame_unwinders): New function.
824 (pspy_set_frame_unwinders): Ditto.
825 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
826 * python/py-unwind.c: New file.
827 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
828 (objpy_get_frame_unwinders): New prototype.
829 (gdbpy_initialize_unwind): New prototype.
830 * python/python.c (gdbpy_apply_type_printers): Call
831 gdbpy_initialize_unwind.
832
833 2015-04-01 Pedro Alves <palves@redhat.com>
834
835 * infrun.c (resume): Check currently_stepping after clearing
836 stepped_breakpoint, not before.
837
838 2015-04-01 Pedro Alves <palves@redhat.com>
839
840 * infrun.c (print_target_wait_results): Print all the ptid
841 elements.
842
843 2015-04-01 Pedro Alves <palves@redhat.com>
844
845 * infrun.c (keep_going): Also discard cleanups if inserting
846 breakpoints fails.
847
848 2015-04-01 Pedro Alves <palves@redhat.com>
849
850 * infrun.c (wait_for_inferior): Install the
851 finish_thread_state_cleanup cleanup across the whole function, not
852 just around handle_inferior_event.
853
854 2015-04-01 Pedro Alves <palves@redhat.com>
855
856 * infrun.c (resume) <step past permanent breakpoint>: Use
857 do_target_resume.
858
859 2015-04-01 Pedro Alves <palves@redhat.com>
860
861 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
862
863 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
864
865 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
866
867 2015-04-01 Pedro Alves <palves@redhat.com>
868
869 * linux-thread-db.c (record_thread): Readd the thread to gdb's
870 list if it was marked exited.
871
872 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
873
874 * configure: Regenerated.
875
876 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
877 Jan Kratochvil <jan.kratochvil@redhat.com>
878 Oleg Nesterov <oleg@redhat.com>
879
880 PR corefiles/16092
881 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
882 New enum identifying the various options of the coredump_filter
883 file.
884 (struct smaps_vmflags): New struct.
885 (use_coredump_filter): New variable.
886 (decode_vmflags): New function.
887 (mapping_is_anonymous_p): Likewise.
888 (dump_mapping_p): Likewise.
889 (linux_find_memory_regions_full): New variables
890 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
891 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
892 parsing of its information. Implement memory mapping filtering
893 based on its contents.
894 (show_use_coredump_filter): New function.
895 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
896 * NEWS: Mention the possibility of using the
897 '/proc/PID/coredump_filter' file when generating a corefile.
898 Mention new command 'set use-coredump-filter'.
899
900 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
901
902 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
903 read_memory_unsigned_integer.
904
905 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
906
907 * Makefile.in (ZLIB): New.
908 (ZLIBINC): Likewise.
909 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
910 (CLIBS): Add $(ZLIB).
911 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
912 Add -lz to LIBS.
913 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
914 * top.c (print_gdb_configuration): Remove --with-zlib and
915 --without-zlib.
916 * config.in: Regenerated.
917 * configure: Likewise.
918
919 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
920
921 * NEWS: Mention info os cpus support.
922 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
923 (struct osdata_type): Add cpus entry, reorder the entries in
924 alphabetical order.
925
926 2015-03-31 Matthias Klose <doko@ubuntu.com>
927
928 * compile/compile.c (compile_to_object): Allow triplets with or
929 without vendor set.
930
931 2015-03-30 Doug Evans <dje@google.com>
932
933 PR c++/18141
934 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
935 klass in VAR_DOMAIN.
936
937 2015-03-30 Gary Benson <gbenson@redhat.com>
938
939 * remote.c (remote_mourn_1): Remove function. Update all callers
940 to use remote_mourn.
941 (extended_remote_mourn_1): Remove function. Update all callers
942 to use extended_remote_mourn.
943 (extended_remote_attach_1): Remove function. Update all callers
944 to use extended_remote_attach.
945
946 2015-03-28 James Bowman <james.bowman@ftdichip.com>
947
948 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
949 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
950 (ALLDEPFILES): Add ft32-tdep.c.
951 * configure.tgt: Add FT32 entry.
952 * ft32-tdep.c: New file, FT32 target-dependent code.
953 * ft32-tdep.h: New file, FT32 target-dependent code.
954
955 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
956
957 Revert:
958 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
959 Code cleanup.
960 * printcmd.c (print_command_1): Move expr variable scope.
961
962 2015-03-27 Joel Brobecker <brobecker@adacore.com>
963
964 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
965
966 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
967
968 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
969 sections.
970
971 2015-03-26 Joel Brobecker <brobecker@adacore.com>
972
973 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
974 exception raised while parsing the probe arguments.
975 Force parsing to be done using the C language parser.
976 * expression.h (parse_expression_with_language): Declare.
977 * parse.c (parse_expression_with_language): New function.
978
979 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
980
981 * MAINTAINERS (Write After Approval): Add "Jon Turney".
982
983 2015-03-26 Andy Wingo <wingo@igalia.com>
984
985 PR symtab/18148
986 * dwarf2read.c (struct partial_die_info): Add has_const_value
987 member.
988 (add_partial_symbol): Don't punt on symbols that have const_value
989 attributes.
990 (read_partial_die): Detect DW_AT_const_value.
991
992 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
993
994 Code cleanup.
995 * printcmd.c (print_command_1): Move expr variable scope.
996
997 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
998
999 Code cleanup.
1000 * printcmd.c (validate_format): Make the parameter cmdname const.
1001
1002 2015-03-26 Don Breazeal <donb@codesourcery.com>
1003
1004 * remote.c (_initialize_remote): Update comment.
1005
1006 2015-03-26 Pedro Alves <palves@redhat.com>
1007 Jon TURNEY <jon.turney@dronecode.org.uk>
1008
1009 * coffread.c (coff_symfile_read): When constructing the name of an
1010 import stub symbol from import symbol for amd64, only skip the
1011 char after _imp_ if the target is underscored (like i386) and the
1012 char is indeed the target's leading char.
1013
1014 2015-03-25 Pedro Alves <palves@redhat.com>
1015
1016 * target.h <to_async>: Replace 'callback' and 'context' parameters
1017 with boolean 'enable' parameter.
1018 (target_async): Replace CALLBACK and CONTEXT parameters with
1019 boolean ENABLE parameter.
1020 * inf-loop.c (inferior_event_handler): Adjust.
1021 * linux-nat.c (linux_nat_attach, linux_nat_resume)
1022 (linux_nat_resume): Adjust.
1023 (async_client_callback, async_client_context): Delete.
1024 (handle_target_event): Call inferior_event_handler directly.
1025 (linux_nat_async): Replace 'callback' and 'context' parameters
1026 with boolean 'enable' parameter. Adjust. Remove references to
1027 async_client_callback and async_client_context.
1028 (linux_nat_close): Adjust.
1029 * record-btrace.c (record_btrace_async): Replace 'callback' and
1030 'context' parameters with boolean 'enable' parameter. Adjust.
1031 (record_btrace_resume): Adjust.
1032 * record-full.c (record_full_async): Replace 'callback' and
1033 'context' parameters with boolean 'enable' parameter. Adjust.
1034 (record_full_resume, record_full_core_resume): Adjust.
1035 * remote.c (struct remote_state) <async_client_callback,
1036 async_client_context>: Delete fields.
1037 (remote_start_remote, extended_remote_attach_1, remote_resume)
1038 (extended_remote_create_inferior): Adjust.
1039 (remote_async_serial_handler): Call inferior_event_handler
1040 directly.
1041 (remote_async): Replace 'callback' and 'context' parameters with
1042 boolean 'enable' parameter. Adjust.
1043 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
1044 Adjust.
1045 * target-delegates.c: Regenerate.
1046
1047 2015-03-25 Gary Benson <gbenson@redhat.com>
1048 Pedro Alves <palves@redhat.com>
1049
1050 * target.c (fileio_ft_t): New typedef, define object vector.
1051 (fileio_fhandles): New static variable.
1052 (is_closed_fileio_fh): New macro.
1053 (lowest_closed_fd): New static variable.
1054 (acquire_fileio_fd): New function.
1055 (release_fileio_fd): Likewise.
1056 (fileio_fd_to_fh): New macro.
1057 (target_fileio_open): Wrap the file descriptor on success.
1058 (target_fileio_pwrite): Updated to use wrapped file descriptor.
1059 (target_fileio_pread): Likewise.
1060 (target_fileio_close): Likewise.
1061
1062 2015-03-24 Pedro Alves <palves@redhat.com>
1063
1064 * thread.c (thread_apply_all_command): Take exited threads into
1065 account.
1066
1067 2015-03-24 Pedro Alves <palves@redhat.com>
1068
1069 * infrun.c (resume, proceed): Mention
1070 switch_back_to_stepped_thread, not switch_back_to_stepping.
1071
1072 2015-03-24 Pedro Alves <palves@redhat.com>
1073
1074 * infrun.c (user_visible_resume_ptid): Rewrite going from
1075 most-locked to unlocked instead of the opposite. Move comment ...
1076 * infrun.h (user_visible_resume_ptid): ... here.
1077
1078 2015-03-24 Pedro Alves <palves@redhat.com>
1079
1080 * linux-nat.c (linux_nat_resume): Output debug logs before trying
1081 to resume the event lwp. Use the lwp's ptid instead of the passed
1082 in (maybe wildcard) ptid.
1083 (stop_wait_callback): Tweak debug log output.
1084 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
1085 TRAP_TRACE.
1086 (linux_nat_filter_event): In debug output, distinguish a
1087 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
1088 before trying to resume the lwp.
1089
1090 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1091
1092 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
1093 pointer indirection.
1094 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
1095 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
1096
1097 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1098
1099 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
1100 Renames DYN_ATTR_DATA_LOCATION.
1101 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
1102 DYN_ATTR_DATA_LOCATION.
1103 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
1104 instead of DYN_ATTR_DATA_LOCATION.
1105
1106 2015-03-24 Pedro Alves <palves@redhat.com>
1107
1108 * breakpoint.c (until_break_command): Adjust call to proceed.
1109 * gdbthread.h (struct thread_control_state) <stepping_command>:
1110 New field.
1111 * infcall.c (run_inferior_call): Adjust call to proceed.
1112 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
1113 Adjust calls to proceed.
1114 (set_step_frame): Set the current thread's step_start_function
1115 here.
1116 (step_once): Adjust calls to proceed.
1117 (jump_command, signal_command, until_next_command)
1118 (finish_backward, finish_forward, proceed_after_attach_callback)
1119 (attach_command_post_wait): Adjust calls to proceed.
1120 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
1121 (do_target_resume): New function, factored out from ...
1122 (resume): ... here. Remove 'step' parameter. Instead, check
1123 currently_stepping to determine whether the thread should be
1124 single-stepped.
1125 (proceed): Remove 'step' parameter and don't set the thread's
1126 step_start_function here. Adjust call to 'resume'.
1127 (handle_inferior_event): Adjust calls to 'resume'.
1128 (switch_back_to_stepped_thread): Use do_target_resume instead of
1129 'resume'.
1130 (keep_going): Adjust calls to 'resume'.
1131 * infrun.h (proceed): Remove 'step' parameter.
1132 (resume): Likewise.
1133 * windows-nat.c (do_initial_windows_stuff): Adjust call to
1134 'resume'.
1135 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
1136
1137 2015-03-24 Pedro Alves <palves@redhat.com>
1138
1139 * gdbthread.h (struct thread_control_state) <stepping_command>:
1140 New field.
1141 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
1142 the thread's stepping_command field.
1143 * infrun.c (resume): Check the thread's stepping_command flag to
1144 determine which threads should be resumed. Rename 'entry_step'
1145 local to user_step.
1146 (clear_proceed_status_thread): Clear 'stepping_command'.
1147 (schedlock_applies): Change parameter type to struct thread_info
1148 pointer. Adjust.
1149 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
1150 (switch_back_to_stepped_thread): Adjust calls to
1151 'schedlock_applies'.
1152 (_initialize_infrun): Adjust "set scheduler-locking step" help.
1153
1154 2015-03-24 Pedro Alves <palves@redhat.com>
1155
1156 * infrun.c (step_start_function): Delete and ...
1157 * gdbthread.h (struct thread_control_state) <step_start_function>:
1158 ... now a field here.
1159 * infrun.c (clear_proceed_status_thread): Clear the thread's
1160 step_start_function.
1161 (proceed, process_event_stop_test, print_stop_event): Adjust.
1162
1163 2015-03-24 Pedro Alves <palves@redhat.com>
1164
1165 * infrun.c (proceed): No longer handle negative step.
1166
1167 2015-03-24 Gary Benson <gbenson@redhat.com>
1168
1169 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
1170 (x86_linux_prepare_to_resume): Likewise.
1171 * x86-linux-nat.c (x86_linux_new_thread):
1172 Moved to nat/x86-linux.c.
1173 (x86_linux_prepare_to_resume): Likewise.
1174 * nat/x86-linux.c (x86_linux_new_thread): New function.
1175 (x86_linux_prepare_to_resume): Likewise.
1176
1177 2015-03-24 Gary Benson <gbenson@redhat.com>
1178
1179 * nat/x86-linux-dregs.h: New file.
1180 * nat/x86-linux-dregs.c: Likewise.
1181 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
1182 (x86-linux-dregs.o): New rule.
1183 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
1184 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1185 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
1186 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
1187 (x86_linux_dr_get): Likewise.
1188 (x86_linux_dr_set): Likewise.
1189 (x86_linux_dr_get_addr): Likewise.
1190 (x86_linux_dr_get_control): Likewise.
1191 (x86_linux_dr_get_status): Likewise.
1192 (update_debug_registers_callback): Likewise.
1193 (x86_linux_dr_set_control): Likewise.
1194 (x86_linux_dr_set_addr): Likewise.
1195 (x86_linux_update_debug_registers): Likewise.
1196
1197 2015-03-24 Gary Benson <gbenson@redhat.com>
1198
1199 * x86-linux-nat.c (x86_linux_update_debug_registers):
1200 New function, factored out from...
1201 (x86_linux_prepare_to_resume): ...this.
1202
1203 2015-03-24 Gary Benson <gbenson@redhat.com>
1204
1205 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
1206 (x86_linux_dr_set): Likewise.
1207 (x86_linux_dr_get_addr): Likewise.
1208 (x86_linux_dr_get_control): Likewise.
1209 (x86_linux_dr_get_status): Likewise.
1210 (update_debug_registers_callback): Likewise.
1211 (x86_linux_dr_set_control): Likewise.
1212 (x86_linux_dr_set_addr): Likewise.
1213 (x86_linux_prepare_to_resume): Likewise.
1214 (x86_linux_new_thread): Likewise.
1215
1216 2015-03-24 Gary Benson <gbenson@redhat.com>
1217
1218 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
1219 (x86_linux_new_thread): Rename argument.
1220
1221 2015-03-24 Gary Benson <gbenson@redhat.com>
1222
1223 * nat/x86-linux.h: New file.
1224 * nat/x86-linux.c: Likewise.
1225 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
1226 (x86-linux.o): New rule.
1227 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
1228 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1229 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
1230 (lwp_set_arch_private_info): New declaration.
1231 (lwp_arch_private_info): Likewise.
1232 * linux-nat.c (lwp_set_arch_private_info): New function.
1233 (lwp_arch_private_info): Likewise.
1234 * x86-linux-nat.c: Include nat/x86-linux.h.
1235 (arch_lwp_info): Removed structure.
1236 (update_debug_registers_callback):
1237 Use lwp_set_debug_registers_changed.
1238 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
1239 and lwp_set_debug_registers_changed.
1240 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
1241
1242 2015-03-24 Gary Benson <gbenson@redhat.com>
1243
1244 * nat/linux-nat.h (ptid_of_lwp): New declaration.
1245 (lwp_is_stopped): Likewise.
1246 (lwp_stop_reason): Likewise.
1247 * linux-nat.c (ptid_of_lwp): New function.
1248 (lwp_is_stopped): Likewise.
1249 (lwp_is_stopped_by_watchpoint): Likewise.
1250 * x86-linux-nat.c (update_debug_registers_callback):
1251 Use lwp_is_stopped.
1252 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
1253 lwp_stop_reason.
1254
1255 2015-03-24 Gary Benson <gbenson@redhat.com>
1256
1257 * linux-nat.h (linux_stop_lwp): Move declaration to...
1258 * nat/linux-nat.h (linux_stop_lwp): New declaration.
1259
1260 2015-03-24 Gary Benson <gbenson@redhat.com>
1261
1262 * linux-nat.h: Include nat/linux-nat.h.
1263 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
1264 * nat/linux-nat.h (struct lwp_info): New forward declaration.
1265 (iterate_over_lwps_ftype): New typedef.
1266 (iterate_over_lwps): New declaration.
1267 * linux-nat.h (iterate_over_lwps): Update comment. Use
1268 iterate_over_lwps_ftype. Update callback return value check.
1269
1270 2015-03-24 Gary Benson <gbenson@redhat.com>
1271
1272 * x86-nat.h (x86_debug_reg_state): Move declaration to...
1273 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
1274
1275 2015-03-24 Gary Benson <gbenson@redhat.com>
1276
1277 * nat/linux-nat.h (current_lwp_ptid): New declaration.
1278 * linux-nat.c (current_lwp_ptid): New function.
1279 * x86-linux-nat.c: Include nat/linux-nat.h.
1280 (x86_linux_dr_get_addr): Use current_lwp_ptid.
1281 (x86_linux_dr_get_control): Likewise.
1282 (x86_linux_dr_get_status): Likewise.
1283 (x86_linux_dr_set_control): Likewise.
1284 (x86_linux_dr_set_addr): Likewise.
1285
1286 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
1287
1288 PR breakpoints/16466
1289 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
1290
1291 2015-03-23 Joel Brobecker <brobecker@adacore.com>
1292
1293 * ser-mingw.c (ser_windows_setparity): Fix indentation.
1294 * ser-unix.c (hardwire_setparity): Likewise.
1295
1296 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1297
1298 * NEWS: Mention set/show serial parity command.
1299 * monitor.c (monitor_open): Call serial_setparity.
1300 * remote.c (remote_open_1): Likewise.
1301 * ser-base.c (ser_base_serparity): New function.
1302 * ser-base.h (ser_base_setparity): Add declaration.
1303 * ser-go32.c (dos_ops): Set "setparity" field.
1304 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
1305 state.Parity.
1306 (ser_windows_setparity): New function.
1307 (hardwire_ops): Add ser_windows_setparity.
1308 (tty_ops): Add NULL for setparity field.
1309 (pipe_ops): Add ser_base_setparity.
1310 (tcp_ops): Likewise.
1311 * ser-pipe.c (pipe_ops): Likewise.
1312 * ser-tcp.c (tcp_ops): Likewise.
1313 * ser-unix.c (hardwire_setparity): Add declaration.
1314 (hardwire_raw): Don't reset PARENB flag.
1315 (hardwire_setparity): New function.
1316 (hardwire_ops): Add hardwire_setparity.
1317 * serial.c (serial_setparity): New function.
1318 (serial_parity): New global.
1319 (parity_none, parity_odd, parity_even, parity_enums, parity):
1320 New static globals.
1321 (set_parity): New function.
1322 (_initialize_serial): Add set/show serial parity commands.
1323 * serial.h (GDBPARITY_NONE): Define.
1324 (GDBPARITY_ODD): Define.
1325 (GDBPARITY_EVEN): Define.
1326 (serial_setparity) Add declaration.
1327 (struct serial_ops): Add setparity field.
1328 * target.h (serial_parity): Add declaration.
1329
1330 2015-03-23 Keith Seitz <keiths@redhat.com>
1331
1332 * linespec.c (linespec_lexer_lex_keyword): Update comment.
1333
1334 2015-03-23 Keith Seitz <keiths@redhat.com>
1335
1336 * breakpoint.c (parse_breakpoint_sals): Use
1337 linespec_lexer_lex_keyword to ascertain if the user specified
1338 a NULL location.
1339 * linespec.c [IF_KEYWORD_INDEX]: Define.
1340 (linespec_lexer_lex_keyword): Export.
1341 (struct ls_parser) <keyword_ok>: Remove.
1342 A keyword is only a keyword if not followed by another keyword.
1343 (linespec_lexer_lex_one): Remove keyword_ok handling.
1344 Add comment explaining why the parsing stream is not advanced
1345 when a keyword is seen.
1346 (parse_linespec): Remove parser->keyword_ok.
1347 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
1348
1349 2015-03-23 Keith Seitz <keiths@redhat.com>
1350
1351 PR gdb/18021
1352 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
1353 if we find a static method with DW_AT_vtable_elem_location.
1354
1355 2015-03-21 Eli Zaretskii <eliz@gnu.org>
1356
1357 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
1358 before the second loop, to avoid undefined behavior. Reported by
1359 Anton Blanchard <anton@samba.org>.
1360
1361 2015-03-20 Keven Boell <keven.boell@intel.com>
1362
1363 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
1364 data_location usage to linked list.
1365 (resolve_dynamic_type_internal): Adapt data_location to
1366 linked list.
1367 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
1368 (copy_type_recursive, copy_type): Add copy of linked list.
1369 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
1370 (struct dynamic_prop_list): New struct.
1371 * dwarf2read.c (set_die_type): Set data_location data.
1372
1373 2015-03-20 Pedro Alves <palves@redhat.com>
1374
1375 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
1376 inner block and make it const.
1377 * machoread.c (get_archive_prefix_len): Make "lparen" const.
1378
1379 2015-03-20 Pedro Alves <palves@redhat.com>
1380
1381 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
1382 * breakpoint.h (set_breakpoint_condition): Update declaration.
1383
1384 2015-03-20 Pedro Alves <palves@redhat.com>
1385
1386 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
1387
1388 2015-03-20 Pedro Alves <palves@redhat.com>
1389
1390 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
1391
1392 2015-03-20 Pedro Alves <palves@redhat.com>
1393
1394 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
1395
1396 2015-03-20 Pedro Alves <palves@redhat.com>
1397
1398 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
1399 (nto_init_solib_absolute_prefix): Likewise.
1400
1401 2015-03-20 Pedro Alves <palves@redhat.com>
1402
1403 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
1404 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
1405
1406 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1407
1408 * config/djgpp/README: Remove gdb.hp.
1409
1410 2015-03-20 Yao Qi <yao.qi@linaro.org>
1411
1412 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
1413 set_gdbarch_cannot_step_breakpoint.
1414
1415 2015-03-19 Pedro Alves <palves@redhat.com>
1416
1417 * linux-nat.c (linux_resume_one_lwp): Rename to ...
1418 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
1419 instead call perror_with_name.
1420 (check_ptrace_stopped_lwp_gone): New function.
1421 (linux_resume_one_lwp): Reimplement as wrapper around
1422 linux_resume_one_lwp_throw that swallows errors if the LWP is
1423 gone.
1424 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
1425 swallows errors if the LWP is gone. Use
1426 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
1427
1428 2015-03-19 Pedro Alves <palves@redhat.com>
1429
1430 * linux-nat.c (status_callback): Return early if the LWP has no
1431 status pending.
1432
1433 2015-03-19 Pedro Alves <palves@redhat.com>
1434
1435 * linux-nat.c (select_event_lwp_callback): Update comment to no
1436 longer mention SIGTRAP.
1437
1438 2015-03-18 Tristan Gingold <gingold@adacore.com>
1439
1440 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
1441 redirection code to ...
1442 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
1443 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
1444
1445 2015-03-18 Gary Benson <gbenson@redhat.com>
1446
1447 (remote_protocol_features): Remove the "vFile:fstat" feature.
1448 (remote_hostio_fstat): Probe for "vFile:fstat" support.
1449
1450 2015-03-11 Yao Qi <yao.qi@linaro.org>
1451
1452 PR tdep/18107
1453 * aarch64-linux-tdep.c: Include xml-syscall.h
1454 (aarch64_linux_get_syscall_number): New function.
1455 (aarch64_linux_init_abi): Call
1456 set_gdbarch_get_syscall_number.
1457 * syscalls/aarch64-linux.xml: New file.
1458
1459 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1460
1461 * ser-base.h (ser_base_setstopbits): Change second argument name
1462 from "rate" to "num".
1463
1464 2015-03-17 Gary Benson <gbenson@redhat.com>
1465 Luke Allardyce <lukeallardyce@gmail.com>
1466
1467 PR gdb/18131
1468 * common/common-remote-fileio.h (sys/stat.h): New include.
1469 (stuct stat): Remove forward declaration.
1470
1471 2015-03-16 John Baldwin <jhb@FreeBSD.org>
1472
1473 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
1474 before writing core register notes.
1475
1476 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1477 Pedro Alves <palves@redhat.com>
1478
1479 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
1480 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
1481 (tgoto): Wrap with extern "C".
1482
1483 2015-03-16 Pedro Alves <palves@redhat.com>
1484 Yuanhui Zhang <asmwarrior@gmail.com>
1485
1486 * stub-termcap.c (tputs): Change prototype.
1487
1488 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1489 Pedro Alves <palves@redhat.com>
1490
1491 * windows-nat.c (struct thread_info_struct): Rename to ...
1492 (struct windows_thread_info_struct): ... this.
1493 (thread_info): Rename to ...
1494 (windows_thread_info): ... this.
1495 All users updated.
1496
1497 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1498 Pedro Alves <palves@redhat.com>
1499
1500 * NEWS: New Removed targets and native configurations.
1501
1502 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1503
1504 Remove HPUX.
1505 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
1506 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
1507 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
1508 ia64-hpux-tdep.h, solib-ia64-hpux.h.
1509 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
1510 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
1511 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
1512 hppa-hpux-tdep.c.
1513 * config/ia64/hpux.mh: Remove file.
1514 * config/pa/hpux.mh: Remove file.
1515 * configure: Rebuilt.
1516 * configure.ac (dlgetmodinfo, somread.o): Remove.
1517 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1518 (ia64-*-hpux*): Remove its float format exception.
1519 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1520 * hppa-hpux-nat.c: Remove file.
1521 * hppa-hpux-tdep.c: Remove file.
1522 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
1523 Move them here from hppa-tdep.h
1524 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
1525 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
1526 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
1527 Move them to hppa-tdep.c.
1528 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
1529 declarations.
1530 * ia64-hpux-nat.c: Remove file.
1531 * ia64-hpux-tdep.c: Remove file.
1532 * ia64-hpux-tdep.h: Remove file.
1533 * inf-ttrace.c: Remove file.
1534 * inf-ttrace.h: Remove file.
1535 * solib-ia64-hpux.c: Remove file.
1536 * solib-ia64-hpux.h: Remove file.
1537 * solib-pa64.c: Remove file.
1538 * solib-pa64.h: Remove file.
1539 * solib-som.c: Remove file.
1540 * solib-som.h: Remove file.
1541 * somread.c: Remove file.
1542
1543 2015-03-13 John Baldwin <jhb@FreeBSD.org>
1544
1545 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
1546 * config.in: Regenerate.
1547 * configure: Regenerate.
1548 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
1549 define.
1550 (fbsd_find_memory_regions): Use kinfo_getvmmap to
1551 enumerate memory regions if present.
1552
1553 2015-03-13 John Baldwin <jhb@FreeBSD.org>
1554
1555 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
1556 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
1557 expressions.
1558 (i386fbsd_sigtramp_p): Likewise.
1559
1560 2015-03-12 John Baldwin <jhb@FreeBSD.org>
1561
1562 * MAINTAINERS (Write After Approval): Add John Baldwin.
1563
1564 2015-03-12 Gary Benson <gbenson@redhat.com>
1565
1566 * solib.c (_initialize_solib): Make "set/show sysroot" use
1567 add_setshow_optional_filename_cmd so it can be restored to
1568 empty after being set.
1569
1570 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1571
1572 * Makefile.in (SFILES): New source break-catch-syscall.c.
1573 (COMMON_OBS): New object break-catch-syscall.o.
1574 * break-catch-syscall.c: New file.
1575 * breakpoint.c: Remove inclusion of "xml-syscall.h".
1576 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
1577 (struct syscall_catchpoint): Likewise.
1578 (dtor_catch_syscall): Likewise.
1579 (catch_syscall_inferior_data): Likewise.
1580 (struct catch_syscall_inferior_data): Likewise.
1581 (get_catch_syscall_inferior_data): Likewise.
1582 (catch_syscall_inferior_data_cleanup): Likewise.
1583 (insert_catch_syscall): Likewise.
1584 (remove_catch_syscall): Likewise.
1585 (breakpoint_hit_catch_syscall): Likewise.
1586 (print_it_catch_syscall): Likewise.
1587 (print_one_catch_syscall): Likewise.
1588 (print_mention_catch_syscall): Likewise.
1589 (print_recreate_catch_syscall): Likewise.
1590 (catch_syscall_breakpoint_ops): Likewise.
1591 (syscall_catchpoint_p): Likewise.
1592 (create_syscall_event_catchpoint): Likewise.
1593 (catch_syscall_split_args): Likewise.
1594 (catch_syscall_command_1): Likewise.
1595 (is_syscall_catchpoint_enabled): Likewise.
1596 (catch_syscall_enabled): Likewise.
1597 (catching_syscall_number): Likewise.
1598 (catch_syscall_completer): Likewise.
1599 (clear_syscall_counts): Likewise.
1600 (initialize_breakpoint_ops): Move initialization of syscall
1601 catchpoints to break-catch-syscall.c.
1602 (_initialize_breakpoint): Move code related to syscall catchpoints
1603 to break-catch-syscall.c.
1604
1605 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1606
1607 * breakpoint.c (breakpoint_find_if): New function.
1608 * breakpoint.h (breakpoint_find_if): New prototype.
1609
1610 2015-03-11 Gary Benson <gbenson@redhat.com>
1611
1612 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
1613 * remote-fileio.c (remote_fileio_to_host_uint): New function.
1614 (remote_fileio_to_host_ulong): Likewise.
1615 (remote_fileio_to_host_mode): Likewise.
1616 (remote_fileio_to_host_time): Likewise.
1617 (remote_fileio_to_host_stat): Likewise.
1618 * remote.c (PACKET_vFile_fstat): New enum value.
1619 (remote_protocol_features): Register the "vFile:fstat" feature.
1620 (remote_hostio_fstat): New function.
1621 (remote_bfd_iovec_stat): Use the above.
1622 (_initialize_remote): Register new "set/show remote
1623 hostio-fstat-packet" command.
1624 * symfile.c (separate_debug_file_exists): Update comment.
1625 * NEWS: Announce new vFile:fstat packet.
1626
1627 2015-03-11 Gary Benson <gbenson@redhat.com>
1628
1629 * common/common-remote-fileio.h: New file.
1630 * common/common-remote-fileio.c: Likewise.
1631 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
1632 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
1633 (COMMON_OBS): Add common-remote-fileio.o.
1634 (common-remote-fileio.o): New rule.
1635 * remote-fileio.h (common-remote-fileio.h): New include.
1636 * remote-fileio.c (gdb/fileio.h): Do not include.
1637 (remote_fileio_to_be): Moved to common-remote-fileio.h.
1638 (remote_fileio_to_fio_uint): Likewise.
1639 (remote_fileio_to_fio_time): Likewise.
1640 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
1641 (remote_fileio_to_fio_mode): Likewise.
1642 (remote_fileio_to_fio_ulong): Likewise.
1643 (remote_fileio_to_fio_stat): Likewise.
1644
1645 2015-03-11 Andy Wingo <wingo@igalia.com>
1646
1647 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
1648 we were checking the cached type, not the cached dynamic type.
1649
1650 2015-03-11 Andy Wingo <wingo@igalia.com>
1651
1652 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
1653 other strings, as these are on the GC'd heap, and will be
1654 collected along with the smob.
1655
1656 2015-03-11 Andy Wingo <wingo@igalia.com>
1657
1658 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
1659 (objfile_functions): Bind gdbscm_objfile_progspace to
1660 objfile-progspace.
1661 * guile/lib/gdb.scm: Add objfile-progspace to exports.
1662
1663 2015-03-11 Andy Wingo <wingo@igalia.com>
1664
1665 * guile/guile.c (_initialize_guile): Disable automatic
1666 finalization, if Guile offers us that possibility.
1667 * guile/guile.c (call_initialize_gdb_module):
1668 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
1669 finalizers in appropriate places.
1670 * configure.ac (AC_TRY_LIBGUILE): Add a check for
1671 scm_set_automatic_finalization_enabled.
1672 * configure: Regenerated.
1673
1674 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1675
1676 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
1677 SAL, if possible.
1678
1679 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1680
1681 * s390-linux-nat.c (struct arch_lwp_info): New.
1682 (s390_fix_watch_points): Rename to...
1683 (s390_prepare_to_resume): ...this. Skip the PER info update
1684 unless the watch points have changed.
1685 (s390_refresh_per_info, s390_new_thread): New functions.
1686 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
1687 s390_fix_watch_points.
1688 (s390_remove_watchpoint): Likewise.
1689 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
1690 Register s390_prepare_to_resume.
1691
1692 2015-03-09 Pedro Alves <palves@redhat.com>
1693
1694 Revert:
1695 2015-03-07 Pedro Alves <palves@redhat.com>
1696 * common/gdb_socket.h: New file.
1697 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1698 sys/socket.h.
1699 (net_open): Use union gdb_sockaddr_u.
1700
1701 2015-03-07 Pedro Alves <palves@redhat.com>
1702
1703 * configure.ac (build_warnings): Move -Wmissing-prototypes
1704 -Wdeclaration-after-statement -Wmissing-parameter-type
1705 -Wold-style-declaration -Wold-style-definition to the C-specific
1706 set.
1707 * configure: Regenerate.
1708
1709 2015-03-07 Pedro Alves <palves@redhat.com>
1710
1711 * common/gdb_socket.h: New file.
1712 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1713 sys/socket.h.
1714 (net_open): Use union gdb_sockaddr_u.
1715
1716 2015-03-07 Pedro Alves <palves@redhat.com>
1717
1718 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
1719 (exceptions_state_mc_action_iter)
1720 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1721 Don't define.
1722 [__cplusplus] (try_scope_depth): New global.
1723 [__cplusplus] (exception_try_scope_entry)
1724 (exception_try_scope_exit, gdb_exception_sliced_copy)
1725 (exception_rethrow): New functions.
1726 (throw_exception): In C++ mode, throw
1727 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
1728 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
1729 (throw_it): In C++ mode, use try_scope_depth.
1730 * common/common-exceptions.h [!__cplusplus]
1731 (exceptions_state_mc_action_iter)
1732 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1733 Don't declare.
1734 [__cplusplus] (exception_try_scope_entry)
1735 (exception_try_scope_exit, exception_rethrow): Declare.
1736 [__cplusplus] (struct exception_try_scope): New struct.
1737 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
1738 C++ exceptions.
1739 (struct gdb_exception_RETURN_MASK_ALL)
1740 (struct gdb_exception_RETURN_MASK_ERROR)
1741 (struct gdb_exception_RETURN_MASK_QUIT): New types.
1742
1743 2015-03-07 Pedro Alves <palves@redhat.com>
1744
1745 * main.c (handle_command_errors): Remove volatile qualifier from
1746 parameter.
1747
1748 2015-03-07 Pedro Alves <palves@redhat.com>
1749
1750 * breakpoint.c (save_breakpoints): Adjust to avoid code between
1751 TRY and CATCH.
1752 * gdbtypes.c (safe_parse_type): Remove empty line.
1753 (types_deeply_equal):
1754 * guile/scm-frame.c (gdbscm_frame_name):
1755 * linux-thread-db.c (find_new_threads_once):
1756 * python/py-breakpoint.c (bppy_get_commands):
1757 * record-btrace.c (record_btrace_insert_breakpoint)
1758 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
1759 (record_btrace_start_replaying): Adjust to avoid code between TRY
1760 and CATCH.
1761
1762 2015-03-07 Pedro Alves <palves@redhat.com>
1763
1764 * common/common-exceptions.c (struct catcher) <exception>: No
1765 longer a pointer to volatile exception. Now an exception value.
1766 <mask>: Delete field.
1767 (exceptions_state_mc_init): Remove all parameters. Adjust.
1768 (exceptions_state_mc): No longer pop the catcher here.
1769 (exceptions_state_mc_catch): New function.
1770 (throw_exception): Adjust.
1771 * common/common-exceptions.h (exceptions_state_mc_init): Remove
1772 all parameters.
1773 (exceptions_state_mc_catch): Declare.
1774 (TRY_CATCH): Rename to ...
1775 (TRY): ... this. Remove EXCEPTION and MASK parameters.
1776 (CATCH, END_CATCH): New.
1777 All callers adjusted.
1778
1779 2015-03-07 Tom Tromey <tromey@redhat.com>
1780
1781 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
1782
1783 2015-03-07 Pedro Alves <palves@redhat.com>
1784
1785 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1786 (amd64_epilogue_frame_cache): Normal exception handling code.
1787 * break-catch-throw.c (check_status_exception_catchpoint)
1788 (re_set_exception_catchpoint): Ditto.
1789 * cli/cli-interp.c (safe_execute_command):
1790 * cli/cli-script.c (script_from_file): Ditto.
1791 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
1792 Ditto.
1793 * compile/compile-object-run.c (compile_object_run): Ditto.
1794 * cp-abi.c (baseclass_offset): Ditto.
1795 * cp-valprint.c (cp_print_value): Ditto.
1796 * exceptions.c (catch_exceptions_with_msg):
1797 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
1798 * frame.c (get_frame_address_in_block_if_available): Ditto.
1799 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1800 (i386_sigtramp_frame_cache): Ditto.
1801 * infcmd.c (post_create_inferior): Ditto.
1802 * linespec.c (parse_linespec, find_linespec_symbols):
1803 * p-valprint.c (pascal_object_print_value): Ditto.
1804 * parse.c (parse_expression_for_completion): Ditto.
1805 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1806 * remote.c (remote_get_noisy_reply): Ditto.
1807 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
1808 * solib-svr4.c (solib_svr4_r_map): Ditto.
1809
1810 2015-03-06 Gary Benson <gbenson@redhat.com>
1811
1812 * common/common-utils.h (startswith): New inline function.
1813 All places where this logic was used updated to use the above.
1814
1815 2015-03-05 Pedro Alves <palves@redhat.com>
1816
1817 PR gdb/18002
1818 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
1819 after reading the breakpoint's shadow memory.
1820
1821 2015-03-05 Mark Kettenis <kettenis@gnu.org>
1822
1823 * hppabsd-nat.c: Remove file.
1824 * hppaobsd-nat.c: New file.
1825 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
1826 hppaobsd-nat.c.
1827 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
1828 hppaobsd-nat.o.
1829
1830 2015-03-04 Pedro Alves <palves@redhat.com>
1831
1832 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
1833 (target_decr_pc_after_break): Delete declaration.
1834 * target.c (default_target_decr_pc_after_break)
1835 (target_decr_pc_after_break): Delete.
1836 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
1837 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
1838 * linux-thread-db.c (check_event): Likewise.
1839 * infrun.c (adjust_pc_after_break): Likewise.
1840 * darwin-nat.c (cancel_breakpoint): Likewise.
1841 * aix-thread.c (aix_thread_wait): Likewise.
1842 * target-delegates.c: Regenerate.
1843
1844 2015-03-04 Pedro Alves <palves@redhat.com>
1845
1846 * linux-nat.c (save_sigtrap): Check for breakpoints before
1847 checking watchpoints.
1848 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
1849 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
1850 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
1851 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
1852 (linux_nat_stopped_by_sw_breakpoint)
1853 (linux_nat_supports_stopped_by_sw_breakpoint)
1854 (linux_nat_stopped_by_hw_breakpoint)
1855 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
1856 (linux_nat_wait_1): Don't re-increment the PC if relying on
1857 SIGTRAP's siginfo->si_code.
1858 (linux_nat_add_target): Install new target methods.
1859 * linux-thread-db.c (check_event): Don't account for breakpoint PC
1860 offset if the target already adjusted the PC.
1861 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
1862 (GDB_ARCH_TRAP_BRKPT): New.
1863 (TRAP_HWBKPT): Define if not already defined.
1864
1865 2015-03-04 Pedro Alves <palves@redhat.com>
1866
1867 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
1868 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
1869 Delete field.
1870 <stop_reason>: New field.
1871 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
1872 (packet_set_cmd_state): New function.
1873 (remote_protocol_features): Register the "swbreak" and "hwbreak"
1874 features.
1875 (remote_query_supported): If not disabled with the corresponding
1876 "set remote foo-packet" command, report support for the swbreak
1877 and hwbreak features.
1878 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
1879 field.
1880 <stop_reason>: New field.
1881 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
1882 (remote_wait_as): Adjust.
1883 (remote_stopped_by_sw_breakpoint)
1884 (remote_supports_stopped_by_sw_breakpoint)
1885 (remote_stopped_by_hw_breakpoint)
1886 (remote_supports_stopped_by_hw_breakpoint): New functions.
1887 (remote_stopped_by_watchpoint): New function.
1888 (init_remote_ops): Install them.
1889 (_initialize_remote): Register new "set/show remote
1890 swbreak-feature-packet" and "set/show remote
1891 swbreak-feature-packet" commands.
1892
1893 2015-03-04 Pedro Alves <palves@redhat.com>
1894
1895 * btrace.h: Include target/waitstatus.h.
1896 (struct btrace_thread_info) <stop_reason>: New field.
1897 * record-btrace.c (record_btrace_step_thread): Use
1898 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1899 (record_btrace_decr_pc_after_break): Delete.
1900 (record_btrace_stopped_by_sw_breakpoint)
1901 (record_btrace_supports_stopped_by_sw_breakpoint)
1902 (record_btrace_stopped_by_hw_breakpoint)
1903 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
1904 (init_record_btrace_ops): Install them.
1905 * record-full.c (record_full_hw_watchpoint): Delete and replace
1906 with ...
1907 (record_full_stop_reason): ... this throughout.
1908 (record_full_exec_insn): Adjust.
1909 (record_full_wait_1): Adjust. No longer re-increment the PC.
1910 (record_full_wait_1): Adjust. Use
1911 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1912 (record_full_stopped_by_watchpoint): Adjust.
1913 (record_full_stopped_by_sw_breakpoint)
1914 (record_full_supports_stopped_by_sw_breakpoint)
1915 (record_full_supports_stopped_by_sw_breakpoint)
1916 (record_full_stopped_by_hw_breakpoint)
1917 (record_full_supports_stopped_by_hw_breakpoint): New functions.
1918 (init_record_full_ops, init_record_full_core_ops): Install them.
1919 * record.c (record_check_stopped_by_breakpoint): New function.
1920 * record.h: Include target/waitstatus.h.
1921 (record_check_stopped_by_breakpoint): New declaration.
1922
1923 2015-03-04 Pedro Alves <palves@redhat.com>
1924
1925 enum lwp_stop_reason -> enum target_stop_reason
1926 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
1927 (linux_nat_stopped_by_watchpoint, status_callback)
1928 (linux_nat_wait_1): Adjust.
1929 * linux-nat.h (enum lwp_stop_reason): Delete.
1930 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
1931 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1932 * target/waitstatus.h (enum target_stop_reason): New.
1933
1934 2015-03-04 Pedro Alves <palves@redhat.com>
1935
1936 * breakpoint.c (need_moribund_for_location_type): New function.
1937 (bpstat_stop_status): Don't skipping checking moribund locations
1938 of breakpoint types which the target tell caused a stop.
1939 (program_breakpoint_here_p): New function, factored out from ...
1940 (bp_loc_is_permanent): ... this.
1941 (update_global_location_list): Don't create a moribund location if
1942 the target supports reporting stops of the type of the removed
1943 breakpoint.
1944 * breakpoint.h (program_breakpoint_here_p): New declaration.
1945 * infrun.c (adjust_pc_after_break): Return early if the target has
1946 already adjusted the PC. Add comments.
1947 (handle_signal_stop): If nothing explains a signal, and the target
1948 tells us the stop was caused by a software breakpoint, check if
1949 there's a breakpoint instruction in the memory. If so, adjust the
1950 PC before presenting the stop to the user. Otherwise, ignore the
1951 trap. If nothing explains a signal, and the target tells us the
1952 stop was caused by a hardware breakpoint, ignore the trap.
1953 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
1954 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
1955 to_supports_stopped_by_hw_breakpoint>: New fields.
1956 (target_stopped_by_sw_breakpoint)
1957 (target_supports_stopped_by_sw_breakpoint)
1958 (target_stopped_by_hw_breakpoint)
1959 (target_supports_stopped_by_hw_breakpoint): Define.
1960 * target-delegates.c: Regenerate.
1961
1962 2015-03-04 Pedro Alves <palves@redhat.com>
1963
1964 * infrun.c (follow_fork_inferior): Use the whole of the
1965 inferior_ptid and pending_follow.related_pid ptids instead of
1966 building ptids from the process components. Adjust verbose output
1967 to use target_pid_to_str.
1968 * linux-nat.c (linux_child_follow_fork): Use the whole of the
1969 inferior_ptid and pending_follow.related_pid ptids instead of
1970 building ptids from the process components.
1971
1972 2015-03-04 Mark Kettenis <kettenis@gnu.org>
1973
1974 * inf-ptrace.c [PT_GET_PROCESS_STATE]
1975 (inf_ptrace_insert_fork_catchpoint): New function.
1976 (inf_ptrace_remove_fork_catchpoint): New function.
1977 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
1978
1979 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1980
1981 * s390-linux-tdep.c (s390_register_name): Return empty string
1982 instead of NULL for registers that shouldn't be visible.
1983
1984 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1985
1986 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
1987 XML file for 64-bit targets.
1988
1989 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
1990
1991 * target.h (find_default_create_inferior): Remove declaration.
1992 (find_default_attach): Likewise.
1993
1994 2015-03-03 Pedro Alves <palves@redhat.com>
1995
1996 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
1997 Use ptid_get_pid to get the overall process id when resuming all
1998 threads.
1999
2000 2015-03-03 Pedro Alves <palves@redhat.com>
2001
2002 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
2003 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
2004 * inf-ptrace.c (get_ptrace_pid): New function.
2005 (inf_ptrace_resume): Use it.
2006 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
2007 to the lower layer.
2008
2009 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2010
2011 * nat/linux-btrace.c: Include sys/utsname.h.
2012 (linux_determine_kernel_ptr_bits): New.
2013 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
2014 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
2015 ptr_bits.
2016
2017 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2018
2019 * btrace.c (ftrace_update_function): Treat return as tailcall for
2020 "_dl_runtime_resolve".
2021
2022 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2023
2024 * btrace.h (btrace_function) <lbegin, lend>: Remove.
2025 * btrace.c (ftrace_debug): Do not print the line range.
2026 (ftrace_skip_file, ftrace_update_lines): Remove.
2027 (ftrace_new_function): Remove lbegin and lend initialization.
2028 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
2029 * record-btrace.c (btrace_compute_src_line_range): New.
2030 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
2031
2032 2015-03-02 Pedro Alves <palves@redhat.com>
2033
2034 * infrun.c (follow_exec): Delete all threads of the process except
2035 the event thread. Extended comments.
2036
2037 2015-03-02 Joel Brobecker <brobecker@adacore.com>
2038
2039 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
2040
2041 2015-03-02 Joel Brobecker <brobecker@adacore.com>
2042
2043 * utils.h: Remove <stdbool.h> #include.
2044 (producer_is_gcc): Change return type to "int".
2045 * utils.c (producer_is_gcc): Change return type to int.
2046 Return 1 instead of true, and 0 instead of false.
2047 Adjust function documentation accordingly.
2048
2049 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2050
2051 * s390-linux-nat.c (have_regset_vxrs): New static variable.
2052 (s390_linux_fetch_inferior_registers): Handle vector registers, if
2053 present.
2054 (s390_linux_store_inferior_registers): Likewise.
2055 (s390_get_hwcap): Remove function. Embed its logic...
2056 (s390_read_description): ...here. Yield a target description with
2057 vector registers if applicable.
2058 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
2059 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
2060 "features/s390x-tevx-linux64.c".
2061 (struct gdbarch_tdep) <v0_full_regnum>: New field.
2062 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
2063 for "GNU/Linux-specific registers".
2064 (s390_dwarf_reg_r0l): New enum value.
2065 (s390_dwarf_reg_to_regnum): Support vector registers.
2066 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
2067 of GPR lower halves.
2068 (regnum_is_vxr_full): New function.
2069 (s390_register_name): New function.
2070 (s390_pseudo_register_name): Handle v0-v15, which are composed of
2071 f0-f15 and v0l-v15l.
2072 (s390_pseudo_register_type): Likewise.
2073 (s390_pseudo_register_read): Likewise.
2074 (s390_pseudo_register_write): Likewise.
2075 (s390_value_from_register): Account for the fact that values are
2076 placed left-justified in vector registers.
2077 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
2078 the vector reggroup and omit them from the general reggroup.
2079 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
2080 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
2081 (s390_iterate_over_regset_sections): Add iterations for the two
2082 new vector regsets.
2083 (s390_core_read_description): Yield a target description with
2084 vector registers if applicable.
2085 (s390_gdbarch_init): Handle target descriptions with vector
2086 registers. Add "register_name" gdbarch method.
2087 (_initialize_s390_tdep): Call new tdesc initialization functions.
2088 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
2089 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
2090 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
2091 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
2092 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
2093 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
2094 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
2095 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
2096 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
2097 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
2098 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
2099 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
2100 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
2101 (S390_NUM_REGS): Adjust value.
2102 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
2103 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
2104 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
2105 * NEWS: Announce S/390 vector register support.
2106
2107 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2108
2109 * features/s390-tevx-linux64.xml: New file.
2110 * features/s390-vx-linux64.xml: New file.
2111 * features/s390-vx.xml: New file.
2112 * features/s390x-tevx-linux64.xml: New file.
2113 * features/s390x-vx-linux64.xml: New file.
2114 * features/Makefile (WHICH): Add s390-vx-linux64,
2115 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
2116 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
2117 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
2118 macros.
2119 * features/s390-tevx-linux64.c: New generated file.
2120 * features/s390-vx-linux64.c: Likewise.
2121 * features/s390x-tevx-linux64.c: Likewise.
2122 * features/s390x-vx-linux64.c: Likewise.
2123 * regformats/s390-tevx-linux64.dat: Likewise.
2124 * regformats/s390-vx-linux64.dat: Likewise.
2125 * regformats/s390x-tevx-linux64.dat: Likewise.
2126 * regformats/s390x-vx-linux64.dat: Likewise.
2127
2128 2015-02-28 Doug Evans <xdje42@gmail.com>
2129
2130 * symtab.h (struct symtab) <next>: Fix comment.
2131
2132 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
2133
2134 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
2135 python_GdbMethods.
2136
2137 2015-02-27 Pedro Alves <palves@redhat.com>
2138
2139 * dtrace-probe.c (dtrace_probe_ops): Make extern.
2140
2141 2015-02-27 Pedro Alves <palves@redhat.com>
2142
2143 * common/common-exceptions.h (exception_none): Declare.
2144 * common/common-exceptions.c (exception_none): Moved from
2145 exceptions.c.
2146 (exceptions_state_mc_init): Use exception_none.
2147 * exceptions.c (exception_none): Move to
2148 common/common-exceptions.c.
2149 * exceptions.h (exception_none): Move to
2150 common/common-exceptions.h.
2151
2152 2015-02-27 Pedro Alves <palves@redhat.com>
2153
2154 * main.c (catch_command_errors, catch_command_errors_const):
2155 Remove 'mask' argument. Adjust.
2156 (captured_main): Adjust callers.
2157
2158 2015-02-27 Pedro Alves <palves@redhat.com>
2159
2160 * python/python-internal.h: Include "extension-priv.h".
2161
2162 2015-02-27 Pedro Alves <palves@redhat.com>
2163
2164 * breakpoint.h (enum print_stop_action): Move further up in the
2165 file.
2166
2167 2015-02-27 Pedro Alves <palves@redhat.com>
2168
2169 * gdbarch.sh: Include regcache.h.
2170 * gdbarch.h: Regenerate.
2171
2172 2015-02-27 Pedro Alves <palves@redhat.com>
2173
2174 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
2175 Remove duplicate const.
2176 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
2177 duplicate const.
2178
2179 2015-02-27 Pedro Alves <palves@redhat.com>
2180
2181 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
2182 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
2183 * features/feature_to_c.sh: Tag the generated xml_builtin array
2184 with extern const in C++ mode.
2185
2186 2015-02-27 Tom Tromey <tromey@redhat.com>
2187
2188 * minidebug.c (struct lzma_stream): Rename to ...
2189 (struct gdb_lzma_stream): ... this.
2190 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
2191
2192 2015-02-27 Pedro Alves <palves@redhat.com>
2193
2194 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
2195 function.
2196 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
2197 (mi_cmd_stack_list_variables): Use it.
2198
2199 2015-02-27 Pedro Alves <palves@redhat.com>
2200
2201 * x86-linux-nat.c (u_debugreg_offset): New function.
2202 (x86_linux_dr_get, x86_linux_dr_set): Use it.
2203
2204 2015-02-27 Pedro Alves <palves@redhat.com>
2205
2206 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
2207 declaration.
2208 Include break-common.h.
2209
2210 2015-02-27 Tom Tromey <tromey@redhat.com>
2211 Pedro Alves <palves@redhat.com>
2212
2213 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
2214 local used to iterate over enums.
2215 * completer.c (signal_completer): Likewise.
2216 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
2217 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2218 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
2219 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
2220 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
2221 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
2222 * tui-wingeneral.c (tui_refresh_all): Likewise.
2223
2224 2015-02-27 Pedro Alves <palves@redhat.com>
2225
2226 * target.h: Include "infrun.h".
2227
2228 2015-02-27 Pedro Alves <palves@redhat.com>
2229
2230 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
2231
2232 2015-02-27 Pedro Alves <palves@redhat.com>
2233
2234 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
2235 (IPA_SYM): Use it.
2236 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
2237
2238 2015-02-27 Pedro Alves <palves@redhat.com>
2239
2240 * cli-out.c (_rl_erase_entire_line): Move declaration out of
2241 cli_mld_erase_entire_line, and make it extern "C".
2242 * common/common-defs.h (EXTERN_C): New.
2243 * completer.c (_rl_completion_prefix_display_length)
2244 (_rl_print_completions_horizontally, QSFUNC): Move declarations
2245 out of gdb_display_match_list_1.
2246 (_rl_qsort_string_compare): Move declaration out of
2247 gdb_display_match_list_1, and make it extern "C".
2248 * defs.h (re_comp): Use EXTERN_C.
2249 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
2250 and make it extern "C".
2251 (monstartup): Move declaration out of maintenance_set_profile_cmd,
2252 and make it extern "C".
2253 (main): Move declaration out of maintenance_set_profile_cmd.
2254 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
2255 EXTERN_C.
2256
2257 2015-02-27 Pedro Alves <palves@redhat.com>
2258
2259 * python/python.c (GdbMethods): Rename to ...
2260 (python_GdbMethods): ... this and make extern.
2261 (GdbModuleDef): Rename to ...
2262 (python_GdbModuleDef): ... this and make extern.
2263
2264 2015-02-27 Pedro Alves <palves@redhat.com>
2265
2266 * record-btrace.c (set_record_btrace_cmdlist)
2267 (show_record_btrace_cmdlist): Remove redefinitions.
2268
2269 2015-02-27 Tom Tromey <tromey@redhat.com>
2270 Pedro Alves <palves@redhat.com>
2271
2272 * dwarf2-frame.c (enum cfa_how_kind, struct
2273 dwarf2_frame_state_reg_info): Move out of struct
2274 dwarf2_frame_state.
2275 * dwarf2read.c (struct tu_stats): Move out of struct
2276 dwarf2_per_objfile.
2277 (struct file_entry): Move out of struct line_header.
2278 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
2279 typedef_field_list): Move out of struct field_info.
2280 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
2281 Move out of struct dynamic_prop.
2282 (union type_owner, union field_location, struct field, struct
2283 range_bounds, union type_specific): Move out of struct main_type.
2284 (struct fn_fieldlist, struct fn_field, struct typedef_field)
2285 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
2286 (struct call_site_target, union call_site_parameter_u, struct
2287 call_site_parameter): Move out of struct call_site.
2288 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
2289 m32c_prologue.
2290 (enum srcdest_kind): Move out of struct srcdest.
2291 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
2292 * prologue-value.h (enum prologue_value_kind): Move out of struct
2293 prologue_value.
2294 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
2295 gdbarch_tdep.
2296 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
2297 out of struct field_info.
2298 * symfile.h (struct other_sections): Move out of struct
2299 section_addr_info.
2300 * symtab.c (struct symbol_cache_slot): Move out struct
2301 block_symbol_cache.
2302 * target-descriptions.c (enum tdesc_type_kind): Move out of
2303 typedef struct tdesc_type.
2304 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
2305 struct tui_line_or_address.
2306 * value.c (enum internalvar_kind, union internalvar_data): Move
2307 out of struct internalvar.
2308 * xtensa-tdep.h (struct ctype_cache): Move out of struct
2309 gdbarch_tdep.
2310
2311 2015-02-27 Tom Tromey <tromey@redhat.com>
2312 Pedro Alves <palves@redhat.com>
2313
2314 Rename symbols whose names are reserved C++ keywords throughout.
2315
2316 2015-02-27 Pedro Alves <palves@redhat.com>
2317
2318 * Makefile.in (COMPILER): New, get it from autoconf.
2319 (COMPILE.pre, CC_LD): Use COMPILER.
2320 (CXX): Get from autoconf instead.
2321 (CXX_FOR_TARGET): Default to g++ instead of gcc.
2322 * acinclude.m4: Include build-with-cxx.m4.
2323 * build-with-cxx.m4: New file.
2324 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
2325 Disable -Werror by default if building in C++ mode.
2326 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
2327 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
2328 Run supported-warning-flags tests with the C++ compiler.
2329 Save/restore CXXFLAGS too.
2330 * configure: Regenerate.
2331
2332 2015-02-27 Pedro Alves <palves@redhat.com>
2333
2334 * libiberty.m4: New file.
2335 * acinclude.m4: Include libiberty.m4.
2336 * configure.ac: Call libiberty_INIT.
2337 * config.in, configure: Regenerate.
2338
2339 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2340
2341 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
2342 31-bit targets, but 64-bit targets as well.
2343 (s390_gnu_triplet_regexp): New function.
2344 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
2345 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
2346 method.
2347
2348 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
2349
2350 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
2351 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
2352 from CONTEXT_DEBUGGER.
2353
2354 2015-02-26 Doug Evans <dje@google.com>
2355
2356 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
2357 CHECK_TYPEDEF.
2358 (set_type_vptr_fieldno): Ditto.
2359 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
2360 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
2361
2362 2015-02-26 Pedro Alves <palves@redhat.com>
2363
2364 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
2365 * complaints.c (vcomplaint): Pass argument FMT directly to
2366 printf-like functions instead of complaint->fmt.
2367 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
2368 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
2369 * compile/compile-loc2c.c (pushf, unary, binary): Add
2370 ATTRIBUTE_PRINTF.
2371 (do_compile_dwarf_expr_to_c): Pass string literal as format string
2372 to pushf.
2373 (BINARY): Pass string literal as format string to 'binary'.
2374 * compile/compile-object-load.c (link_callbacks_einfo): Add
2375 ATTRIBUTE_PRINTF.
2376 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
2377
2378 2015-02-26 Pedro Alves <palves@redhat.com>
2379
2380 * windows-termcap.c: Rename to ...
2381 * stub-termcap.c: ... this. Adjust header line.
2382 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
2383 windows-termcap.c.
2384 * configure: Regenerate.
2385 * configure.ac: Refer to stub-termcap.o instead of
2386 windows-termcap.o.
2387 * gdb_curses.h: Mention stub-termcap.c instead of
2388 windows-termcap.c.
2389
2390 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2391
2392 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
2393 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
2394
2395 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
2396
2397 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
2398
2399 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2400
2401 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
2402 bfd_canonicalize_symtab.
2403
2404 2015-02-25 John Baldwin <jhb@FreeBSD.org>
2405
2406 * amd64fbsd-nat.c: Include sys/user.h.
2407 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2408 instead of KERN_PS_STRINGS to locate the signal trampoline.
2409 * i386fbsd-nat.c: Include sys/user.h.
2410 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2411 instead of KERN_PS_STRINGS to locate the signal trampoline.
2412 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
2413 (amd64fbsd_sigtramp_p): New.
2414 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
2415 longer set default values.
2416 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
2417 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
2418 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
2419 (i386fbsd_freebsd4_sigtramp_start)
2420 (i386fbsd_freebsd4_sigtramp_middle)
2421 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
2422 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
2423 (i386fbsd_sigtramp_p): New.
2424 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
2425 longer set default values.
2426 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
2427
2428 2015-02-25 John Baldwin <jhb@freebsd.org>
2429
2430 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
2431 get_frame_register instead of frame_unwind_register_unsigned.
2432
2433 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2434
2435 PR build/18033
2436 * compile/compile-c-support.c (c_compute_program): Change // comment.
2437 * compile/compile-object-load.c (setup_sections): Change // comment.
2438
2439 2015-02-26 Joel Brobecker <brobecker@adacore.com>
2440
2441 PR build/18033:
2442 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
2443
2444 2015-02-23 Pedro Alves <palves@redhat.com>
2445
2446 * remote.c (skip_to_semicolon): New function.
2447 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
2448 special case the stop reasons that look like hex numbers
2449 upfront. Instead handle real register numbers after matching
2450 all the known stop reasons.
2451
2452 2015-02-21 Doug Evans <dje@google.com>
2453
2454 PR c++/17976, symtab/17821
2455 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
2456 is_in_anonymous. All callers updated.
2457 (find_symbol_in_baseclass): Ditto.
2458 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
2459 for symbols in an anonymous namespace.
2460 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
2461 DW_AT_name directly.
2462 (dwarf2_name): Convert missing namespace name to
2463 CP_ANONYMOUS_NAMESPACE_STR.
2464
2465 2015-02-20 Pedro Alves <palves@redhat.com>
2466
2467 * linux-nat.c (linux_handle_extended_wait): Call
2468 thread_db_notice_clone whenever a new clone LWP is detected.
2469 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
2470 functions.
2471 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
2472 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
2473 (linux_unstop_all_lwps): Declare.
2474 * linux-thread-db.c (struct thread_get_info_inout): Delete.
2475 (thread_get_info_callback): Delete.
2476 (thread_from_lwp): Use td_thr_get_info and record_thread.
2477 (thread_db_attach_lwp): Delete.
2478 (thread_db_notice_clone): New function.
2479 (try_thread_db_load_1): If /proc is mounted and shows the
2480 process'es task list, walk over all LWPs and call thread_from_lwp
2481 instead of relying on td_ta_thr_iter.
2482 (attach_thread): Don't call check_thread_signals here. Split the
2483 tail part of the function (which adds the thread to the core GDB
2484 thread list) to ...
2485 (record_thread): ... this function. Call check_thread_signals
2486 here.
2487 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
2488 call thread_from_lwp.
2489 (thread_db_update_thread_list): Rename to ...
2490 (thread_db_update_thread_list_org): ... this.
2491 (thread_db_update_thread_list): New function.
2492 (thread_db_find_thread_from_tid): Delete.
2493 (thread_db_get_ada_task_ptid): Simplify.
2494 * nat/linux-procfs.c: Include <sys/stat.h>.
2495 (linux_proc_task_list_dir_exists): New function.
2496 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
2497
2498 2015-02-20 Pedro Alves <palves@redhat.com>
2499
2500 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
2501 main LWP. Handle the case of waitpid returning 0 if we're already
2502 attached to the LWP. Don't set the LWP's last_resume_kind to
2503 resume_stop if we already knew about the LWP.
2504 (linux_nat_filter_event): Add debug logs.
2505
2506 2015-02-20 Pedro Alves <palves@redhat.com>
2507
2508 * target.h (forward_target_decr_pc_after_break): Delete
2509 declaration.
2510
2511 2015-02-20 Pedro Alves <palves@redhat.com>
2512
2513 PR threads/18006
2514 * linux-thread-db.c (thread_get_info_callback): Return early if
2515 the thread's lwp id is -1.
2516
2517 2015-02-20 Joel Brobecker <brobecker@adacore.com>
2518
2519 GDB 7.9 released.
2520
2521 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
2522
2523 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
2524 (dtrace_get_probes) Change type of variable 'dof'.
2525
2526 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
2527
2528 PR breakpoints/16812
2529 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
2530 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
2531 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
2532
2533 2015-02-19 David Taylor <dtaylor@emc.com>
2534
2535 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
2536
2537 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
2538
2539 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
2540 function.
2541 (tui_putc): Don't call tui_handle_resize_during_io.
2542 (tui_getc): Likewise.
2543 (tui_mld_getc): Likewise.
2544 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
2545 (tui_sigwinch_token): New static variable.
2546 (tui_initialize_win): Adjust documentation. Set
2547 tui_sigwinch_token.
2548 (tui_async_resize_screen): New asynchronous callback.
2549 (tui_sigwinch_handler): Adjust documentation. Asynchronously
2550 invoke tui_async_resize_screen.
2551
2552 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
2553
2554 * configure: Regenerated.
2555 * configure.ac: Use GDB_AC_TRANSFORM.
2556 * Makefile.in (aclocal_m4_deps): Added transform.m4.
2557 * acinclude.m4: sinclude transform.m4.
2558 * transform.m4: New file.
2559 (GDB_AC_TRANSFORM): New macro.
2560
2561 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2562
2563 * NEWS: Announce the support for DTrace SDT probes.
2564
2565 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2566
2567 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
2568 (amd64_dtrace_parse_probe_argument): New function.
2569 (amd64_dtrace_probe_is_enabled): Likewise.
2570 (amd64_dtrace_enable_probe): Likewise.
2571 (amd64_dtrace_disable_probe): Likewise.
2572 (amd64_linux_init_abi): Register the
2573 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
2574 `gdbarch_dtrace_disable_probe' and
2575 `gdbarch_dtrace_probe_is_enabled' hooks.
2576 (amd64_dtrace_disabled_probe_sequence_1): New constant.
2577 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
2578 (amd64_dtrace_enable_probe_sequence): Likewise.
2579 (amd64_dtrace_disable_probe_sequence): Likewise.
2580
2581 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2582
2583 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
2584 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
2585 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
2586 handle ELF files.
2587 * Makefile.in (SFILES): dtrace-probe.c added.
2588 * configure: Regenerate.
2589 * dtrace-probe.c: New file.
2590 (SHT_SUNW_dof): New constant.
2591 (dtrace_probe_type): New enum.
2592 (dtrace_probe_arg): New struct.
2593 (dtrace_probe_arg_s): New typedef.
2594 (struct dtrace_probe_enabler): New struct.
2595 (dtrace_probe_enabler_s): New typedef.
2596 (dtrace_probe): New struct.
2597 (dtrace_probe_is_linespec): New function.
2598 (dtrace_dof_sect_type): New enum.
2599 (dtrace_dof_dofh_ident): Likewise.
2600 (dtrace_dof_encoding): Likewise.
2601 (DTRACE_DOF_ENCODE_LSB): Likewise.
2602 (DTRACE_DOF_ENCODE_MSB): Likewise.
2603 (dtrace_dof_hdr): New struct.
2604 (dtrace_dof_sect): Likewise.
2605 (dtrace_dof_provider): Likewise.
2606 (dtrace_dof_probe): Likewise.
2607 (DOF_UINT): New macro.
2608 (DTRACE_DOF_PTR): Likewise.
2609 (DTRACE_DOF_SECT): Likewise.
2610 (dtrace_process_dof_probe): New function.
2611 (dtrace_process_dof): Likewise.
2612 (dtrace_build_arg_exprs): Likewise.
2613 (dtrace_get_arg): Likewise.
2614 (dtrace_get_probes): Likewise.
2615 (dtrace_get_probe_argument_count): Likewise.
2616 (dtrace_can_evaluate_probe_arguments): Likewise.
2617 (dtrace_evaluate_probe_argument): Likewise.
2618 (dtrace_compile_to_ax): Likewise.
2619 (dtrace_probe_destroy): Likewise.
2620 (dtrace_gen_info_probes_table_header): Likewise.
2621 (dtrace_gen_info_probes_table_values): Likewise.
2622 (dtrace_probe_is_enabled): Likewise.
2623 (dtrace_probe_ops): New variable.
2624 (info_probes_dtrace_command): New function.
2625 (_initialize_dtrace_probe): Likewise.
2626 (dtrace_type_name): Likewise.
2627
2628 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2629
2630 * gdbarch.sh (dtrace_parse_probe_argument): New.
2631 (dtrace_probe_is_enabled): Likewise.
2632 (dtrace_enable_probe): Likewise.
2633 (dtrace_disable_probe): Likewise.
2634 * gdbarch.c: Regenerate.
2635 * gdbarch.h: Regenerate.
2636
2637 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2638
2639 * stap-probe.c (stap_probe_ops): Add NULLs in the static
2640 stap_probe_ops for `enable_probe' and `disable_probe'.
2641 * probe.c (enable_probes_command): New function.
2642 (disable_probes_command): Likewise.
2643 (_initialize_probe): Define the cli commands `enable probe' and
2644 `disable probe'.
2645 (parse_probe_linespec): New function.
2646 (info_probes_for_ops): Use parse_probe_linespec.
2647 * probe.h (probe_ops): New hooks `enable_probe' and
2648 `disable_probe'.
2649
2650 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2651
2652 * probe.c (compute_probe_arg): Moved from stap-probe.c
2653 (compile_probe_arg): Likewise.
2654 (probe_funcs): Likewise.
2655 * stap-probe.c (compute_probe_arg): Moved to probe.c.
2656 (compile_probe_arg): Likewise.
2657 (probe_funcs): Likewise.
2658
2659 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2660
2661 * probe.c (print_ui_out_not_applicables): New function.
2662 (exists_probe_with_pops): Likewise.
2663 (info_probes_for_ops): Do not include column headers for probe
2664 types for which no probe has been actually found on any object.
2665 Also invoke `print_ui_out_not_applicables' in order to match the
2666 column rows with the header when probes of several types are
2667 listed.
2668 Print the "Type" column.
2669 * probe.h (probe_ops): Added a new probe operation `type_name'.
2670 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
2671 (stap_type_name): New function.
2672
2673 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
2674
2675 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
2676 (key_is_command_char): Delete.
2677
2678 2015-02-17 Pedro Alves <palves@redhat.com>
2679
2680 * tui/tui.c (tui_enable): Resize windows before anything
2681 might show a window.
2682
2683 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
2684
2685 PR gdb/17984
2686 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
2687 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
2688 call.
2689 * aarch64-tdep.h (tdesc_aarch64): Declare.
2690
2691 2015-02-12 Mark Wielaard <mjw@redhat.com>
2692
2693 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
2694
2695 2015-02-13 Doug Evans <dje@google.com>
2696
2697 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
2698 anonymous_namespace to is_in_anonymous for consistency with the rest
2699 of the file.
2700 (cp_lookup_bare_symbol): Fix typo in comment.
2701 (cp_search_static_and_baseclasses): Ditto.
2702 (search_symbol_list): Use vertical space in comment better.
2703 (reset_directive_searched): Ditto. Fix typo.
2704 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
2705
2706 2015-02-13 Yao Qi <yao.qi@arm.com>
2707
2708 * MAINTAINERS: Update my email address.
2709
2710 2015-02-12 Doug Evans <dje@google.com>
2711
2712 * symtab.c (completion_list_add_name): Fix memory leak.
2713
2714 2015-02-12 Doug Evans <dje@google.com>
2715
2716 * completer.c (complete_line): Remove incorrect comment.
2717
2718 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2719
2720 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
2721 (py_print_frame): Use RETURN_MASK_ERROR.
2722
2723 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2724
2725 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
2726 function comment. Wrap all function that can throw in cleanups.
2727 (gdbpy_apply_frame_filter): Wrap all function that can throw in
2728 cleanups.
2729
2730 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2731
2732 * python/py-framefilter.c (py_print_frame): Substitute goto error.
2733 Remove the error label.
2734
2735 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2736
2737 * python/py-framefilter.c (py_print_frame): Put conditional code paths
2738 with goto first, indent the former else codepath left. Put variable
2739 'elided' to a new inner block.
2740
2741 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2742
2743 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
2744
2745 2015-02-11 Pedro Alves <palves@redhat.com>
2746
2747 * xcoffread.c (within_function): Delete.
2748
2749 2015-02-11 Tom Tromey <tromey@redhat.com>
2750 Pedro Alves <palves@redhat.com>
2751
2752 * breakpoint.c (base_breakpoint_ops): Delete.
2753 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
2754 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
2755 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
2756 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
2757 * python/py-arch.c (arch_object_type): Make extern.
2758 * python/py-block.c (block_syms_iterator_object_type): Make extern.
2759 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
2760 * python/py-cmd.c (cmdpy_object_type): Make extern.
2761 * python/py-continueevent.c (continue_event_object_type)
2762 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
2763 parameter. Update all callers.
2764 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
2765 * python/py-exitedevent.c (exited_event_object_type): Make extern.
2766 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
2767 * python/py-function.c (fnpy_object_type): Make extern.
2768 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
2769 * python/py-infevents.c (call_pre_event_object_type)
2770 (inferior_call_post_event_object_type).
2771 (memory_changed_event_object_type): Make extern.
2772 * python/py-infthread.c (thread_object_type): Make extern.
2773 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
2774 * python/py-linetable.c (linetable_entry_object_type)
2775 (linetable_object_type, ltpy_iterator_object_type): Make extern.
2776 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2777 (clear_objfiles_event_object_type): Make extern.
2778 * python/py-objfile.c (objfile_object_type): Make extern.
2779 * python/py-param.c (parmpy_object_type): Make extern.
2780 * python/py-progspace.c (pspace_object_type): Make extern.
2781 * python/py-signalevent.c (signal_event_object_type): Make extern.
2782 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
2783 * python/py-type.c (type_object_type, field_object_type)
2784 (type_iterator_object_type): Make extern.
2785 * python/python.c (python_extension_script_ops)
2786 (python_extension_ops): Make extern.
2787 * stap-probe.c (stap_probe_ops): Make extern.
2788
2789 2015-02-11 Pedro Alves <pedro@codesourcery.com>
2790
2791 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
2792 because the event thread is not the current thread.
2793
2794 2015-02-11 Doug Evans <xdje42@gmail.com>
2795
2796 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
2797 been initialized yet, return NULL.
2798
2799 2015-02-11 Doug Evans <dje@google.com>
2800
2801 * symfile.h (new_symfile_objfile): Delete.
2802 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
2803 All callers updated.
2804
2805 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2806
2807 * tui/tui-io.c (tui_handle_resize_during_io): Call
2808 tui_update_gdb_sizes() after resizing the screen.
2809 * tui/tui.c (tui_enable): Resize the terminal before
2810 calling tui_update_gdb_sizes().
2811
2812 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2813
2814 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
2815 line before printing a newline.
2816
2817 2015-02-11 Mark Wielaard <mjw@redhat.com>
2818
2819 * utils.c (producer_is_gcc): Return true or false.
2820
2821 2015-02-10 Mark Wielaard <mjw@redhat.com>
2822
2823 * utils.h (producer_is_gcc): Change return type to bool. Add major
2824 argument.
2825 * utils.c (producer_is_gcc): Likewise.
2826 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
2827 * dwarf2read.c (check_producer): Likewise.
2828
2829 2015-02-10 Pedro Alves <palves@redhat.com>
2830
2831 * infrun.c (displaced_step_fixup): Switch to the event thread
2832 before calling gdbarch_displaced_step_fixup.
2833
2834 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
2835
2836 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
2837
2838 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
2839
2840 * ada-varobj.c (ada_name_of_child): Constify parent.
2841 (ada_path_expr_of_child): Same.
2842 (ada_value_of_child): Same.
2843 (ada_type_of_child): Same.
2844 * c-varobj.c (c_is_path_expr_parent): Same.
2845 (c_describe_child): Same.
2846 (c_name_of_child): Same.
2847 (c_value_of_child): Same.
2848 (c_type_of_child): Same.
2849 (cplus_number_of_children): Same.
2850 (cplus_describe_child): Constify var.
2851 (cplus_name_of_child): Constify parent.
2852 (cplus_value_of_child): Same.
2853 (cplus_type_of_child): Same.
2854 * jv-varobj.c (java_name_of_child): Same.
2855 (java_value_of_child): Same.
2856 (java_type_of_child): Same.
2857 * varobj.c (value_of_child): Same.
2858 (varobj_default_is_path_expr_parent): Constify var, parent and return
2859 value.
2860 (varobj_get_path_expr): Constify var, modify path_expr through
2861 mutable_var.
2862 (install_new_value): Constify parent.
2863 (value_of_child): Constify parent.
2864 * varobj.h (struct varobj): Constify parent.
2865 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
2866 type_of_child.
2867 (varobj_get_path_expr): Constify var.
2868 (varobj_get_path_expr_parent): Constify var and return value.
2869
2870 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
2871
2872 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
2873 (arm_prologue_this_id): Move PC and SP limit checks to
2874 arm_prologue_unwind_stop_reason.
2875 (arm_prologue_unwind) <stop_reason> : Set to
2876 arm_prologue_unwind_stop_reason.
2877
2878 2015-02-09 Mark Wielaard <mjw@redhat.com>
2879
2880 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
2881 DW_LANG_Fortran08 as language_fortran.
2882
2883 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
2884
2885 PR remote/17946
2886 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
2887 of pointer against char.
2888
2889 2015-02-09 Mark Wielaard <mjw@redhat.com>
2890
2891 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
2892 (c_type_print_modifier): Likewise.
2893 * dwarf2read.c (read_tag_atomic_type): New function.
2894 (read_type_die_1): Handle DW_TAG_atomic_type.
2895 * gdbtypes.c (make_atomic_type): New function.
2896 (recursive_dump_type): Handle TYPE_ATOMIC.
2897 * gdbtypes.h (enum type_flag_values): Renumber.
2898 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
2899 (TYPE_ATOMIC): New macro.
2900 (make_atomic_type): Declare.
2901
2902 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2903
2904 * btrace.c (ftrace_find_call): Skip gaps.
2905 (ftrace_new_function): Initialize level.
2906 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
2907 (ftrace_new_switch): Update
2908 level computation.
2909 (ftrace_new_gap): New.
2910 (ftrace_update_function): Create new function after gap.
2911 (btrace_compute_ftrace_bts): Create gap on error.
2912 (btrace_stitch_bts): Update parameters. Clear trace if it
2913 becomes empty.
2914 (btrace_stitch_trace): Update parameters. Update callers.
2915 (btrace_clear): Reset the number of gaps.
2916 (btrace_insn_get): Return NULL if the iterator points to a gap.
2917 (btrace_insn_number): Return zero if the iterator points to a gap.
2918 (btrace_insn_end): Allow gaps at the end.
2919 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
2920 (btrace_find_insn_by_number): Assert that the found iterator does
2921 not point to a gap.
2922 (btrace_call_next, btrace_call_prev): Assert that the last function
2923 is not a gap.
2924 * btrace.h (btrace_bts_error): New.
2925 (btrace_function): Update comment.
2926 (btrace_function) <insn, insn_offset, number>: Update comment.
2927 (btrace_function) <errcode>: New.
2928 (btrace_thread_info) <ngaps>: New.
2929 (btrace_thread_info) <replay>: Update comment.
2930 (btrace_insn_get): Update comment.
2931 * record-btrace.c (btrace_ui_out_decode_error): New.
2932 (record_btrace_info): Print number of gaps.
2933 (btrace_insn_history, btrace_call_history): Call
2934 btrace_ui_out_decode_error for gaps.
2935 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
2936
2937 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2938
2939 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
2940 * nat/linux-btrace.c: (btrace_this_cpu): New.
2941 (cpu_supports_bts): Call btrace_this_cpu.
2942 (intel_supports_bts): Add cpu parameter.
2943
2944 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2945
2946 * btrace.h (btrace_insn_class): New.
2947 (btrace_insn) <size, iclass>: New.
2948 * btrace.c (ftrace_find_call): Update parameters. Update users.
2949 Use instruction classification.
2950 (ftrace_new_return): Update parameters. Update users.
2951 (ftrace_update_function): Update parameters. Update users. Use
2952 instruction classification.
2953 (ftrace_update_insns): Update parameters. Update users.
2954 (ftrace_classify_insn): New.
2955 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
2956 TRY_CATCH around call to gdb_insn_length.
2957
2958 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2959
2960 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
2961 Update parameters. Update users.
2962
2963 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2964
2965 * btrace.c (parse_xml_btrace_conf_bts): Add size.
2966 (btrace_conf_bts_attributes): New.
2967 (btrace_conf_children): Add attributes.
2968 * common/btrace-common.h (btrace_config_bts): New.
2969 (btrace_config)<bts>: New.
2970 (btrace_config): Update comment.
2971 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
2972 Use config.
2973 * features/btrace-conf.dtd: Increment version. Add size
2974 attribute to bts element.
2975 * record-btrace.c (set_record_btrace_bts_cmdlist,
2976 show_record_btrace_bts_cmdlist): New.
2977 (record_btrace_adjust_size, record_btrace_print_bts_conf,
2978 record_btrace_print_conf, cmd_set_record_btrace_bts,
2979 cmd_show_record_btrace_bts): New.
2980 (record_btrace_info): Call record_btrace_print_conf.
2981 (_initialize_record_btrace): Add commands.
2982 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
2983 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
2984 (btrace_sync_conf): Synchronize bts size.
2985 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
2986 * NEWS: Announce new commands and new packets.
2987
2988 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2989
2990 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
2991 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
2992 (x86_linux_btrace_conf): New.
2993 (x86_linux_create_target): Initialize to_btrace_conf.
2994 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
2995 Check format. Split into this and ...
2996 (linux_enable_bts): ... this.
2997 (linux_btrace_conf): New.
2998 (perf_event_skip_record): Renamed into ...
2999 (perf_event_skip_bts_record): ... this. Updated users.
3000 (linux_disable_btrace): Split into this and ...
3001 (linux_disable_bts): ... this.
3002 (linux_read_btrace): Check format.
3003 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
3004 (linux_btrace_conf): New.
3005 (btrace_target_info)<ptid>: Moved.
3006 (btrace_target_info)<conf>: New.
3007 (btrace_target_info): Split into this and ...
3008 (btrace_tinfo_bts): ... this. Updated users.
3009 * btrace.c (btrace_enable): Update parameters.
3010 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
3011 (btrace_conf_children, btrace_conf_attributes)
3012 (btrace_conf_elements): New.
3013 * btrace.h (btrace_enable): Update parameters.
3014 (btrace_conf, parse_xml_btrace_conf): New.
3015 * common/btrace-common.h (btrace_config): New.
3016 * feature/btrace-conf.dtd: New.
3017 * record-btrace.c (record_btrace_conf): New.
3018 (record_btrace_cmdlist): New.
3019 (record_btrace_enable_warn, record_btrace_open): Pass
3020 &record_btrace_conf.
3021 (record_btrace_info): Print recording format.
3022 (cmd_record_btrace_bts_start): New.
3023 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
3024 (_initialize_record_btrace): Add "record btrace bts" subcommand.
3025 Add "record bts" alias command.
3026 * remote.c (remote_state)<btrace_config>: New.
3027 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
3028 (remote_protocol_features): Add qXfer:btrace-conf:read.
3029 (remote_open_1): Call remote_btrace_reset.
3030 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
3031 (btrace_target_info)<conf>: New.
3032 (btrace_sync_conf, btrace_read_config): New.
3033 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
3034 btrace_read_conf.
3035 (remote_btrace_conf): New.
3036 (init_remote_ops): Initialize to_btrace_conf.
3037 (_initialize_remote): Add qXfer:btrace-conf packet.
3038 * target.c (target_enable_btrace): Update parameters.
3039 (target_btrace_conf): New.
3040 * target.h (target_enable_btrace): Update parameters.
3041 (target_btrace_conf): New.
3042 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
3043 (target_ops)<to_enable_btrace>: Update parameters and comment.
3044 (target_ops)<to_btrace_conf>: New.
3045 * target-delegates: Regenerate.
3046 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
3047 (target_debug_print_const_struct_btrace_target_info_p): New.
3048 * NEWS: Announce new command and new packet.
3049
3050 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3051
3052 * nat/linux-btrace.h (perf_event_buffer): New.
3053 (btrace_target_info) <buffer, size, data_head>: Replace with ...
3054 <bts>: ... this.
3055 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
3056 (perf_event_buffer_size, perf_event_buffer_begin)
3057 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
3058 Updated users.
3059 (perf_event_new_data): New.
3060
3061 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3062
3063 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
3064 * record-btrace.c (record_btrace_open): Remove call to
3065 target_supports_btrace.
3066 * remote.c (remote_supports_btrace): Update parameters.
3067 * target.c (target_supports_btrace): Update parameters.
3068 * target.h (to_supports_btrace, target_supports_btrace): Update
3069 parameters.
3070 * target-delegates.c: Regenerate.
3071 * target-debug.h (target_debug_print_enum_btrace_format): New.
3072 * nat/linux-btrace.c
3073 (kernel_supports_btrace): Rename into ...
3074 (kernel_supports_bts): ... this. Update users. Update warning text.
3075 (intel_supports_btrace): Rename into ...
3076 (intel_supports_bts): ... this. Update users.
3077 (cpu_supports_btrace): Rename into ...
3078 (cpu_supports_bts): ... this. Update users.
3079 (linux_supports_btrace): Update parameters. Split into this and ...
3080 (linux_supports_bts): ... this.
3081 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
3082
3083 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3084
3085 * Makefile.in (SFILES): Add common/btrace-common.c.
3086 (COMMON_OBS): Add common/btrace-common.o.
3087 (btrace-common.o): Add build rules.
3088 * btrace.c (parse_xml_btrace): Update parameters.
3089 (parse_xml_btrace_block): Set format field.
3090 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
3091 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
3092 (btrace_compute_ftrace): Split into this and...
3093 (btrace_compute_ftrace_bts): ...this.
3094 (btrace_stitch_trace): Split into this and...
3095 (btrace_stitch_bts): ...this.
3096 * btrace.h (parse_xml_btrace): Update parameters.
3097 (make_cleanup_btrace_data): New.
3098 * common/btrace-common.c: New.
3099 * common/btrace-common.h: Include common-defs.h.
3100 (btrace_block_s): Update comment.
3101 (btrace_format): New.
3102 (btrace_format_string): New.
3103 (btrace_data_bts): New.
3104 (btrace_data): New.
3105 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
3106 * remote.c (remote_read_btrace): Update parameters.
3107 * target.c (target_read_btrace): Update parameters.
3108 * target.h (target_read_btrace): Update parameters.
3109 (target_ops)<to_read_btrace>: Update parameters.
3110 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
3111 * target-delegates.c: Regenerate.
3112 * target-debug (target_debug_print_struct_btrace_data_p): New.
3113 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
3114 (linux_read_bts): ...this.
3115 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
3116
3117 2015-02-06 Doug Evans <dje@google.com>
3118
3119 * remote-m32r-sdi.c: Include symfile.h.
3120
3121 2015-02-06 Doug Evans <dje@google.com>
3122
3123 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
3124 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
3125 to here.
3126
3127 2015-02-06 Pedro Alves <palves@redhat.com>
3128
3129 * linux-thread-db.c (find_new_threads_callback): Add debug output.
3130
3131 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
3132
3133 PR gdb/15678
3134 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
3135 (enable_count_command): Check args for NULL value.
3136
3137 2015-02-05 Doug Evans <xdje42@gmail.com>
3138
3139 * guile/scm-frame.c: Fix spelling errors in a comment.
3140
3141 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3142
3143 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
3144 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
3145 return type.
3146
3147 2015-02-04 Pedro Alves <palves@redhat.com>
3148
3149 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
3150 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
3151 returns true.
3152 (resume_stopped_resumed_lwps): Don't check whether the thread is
3153 marked as executing.
3154 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
3155
3156 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3157
3158 * regset.h (struct regset): Add flags field.
3159 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
3160 * corelow.c (get_core_register_section): Add warning if the size
3161 exceeds the requested size and the regset does not have the
3162 REGSET_VARIABLE_SIZE flag set.
3163 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
3164 flag.
3165 * armbsd-tdep.c (armbsd_gregset): Likewise.
3166 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3167 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
3168 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
3169 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
3170
3171 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3172
3173 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
3174 For ".reg-xstate", explicitly specify the requested section size
3175 via X86_XSTATE_SIZE instead of just 0 on input and
3176 X86_XSTATE_MAX_SIZE on output.
3177 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
3178 Likewise.
3179
3180 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3181
3182 PR corefiles/17808:
3183 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
3184 function type, particularly its SIZE parameter.
3185 * gdbarch.h: Regenerate.
3186 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
3187 actual against required size using ">=" instead of "==".
3188 (amd64_collect_fpregset): Likewise.
3189 * i386-tdep.c (i386_supply_gregset): Likewise.
3190 (i386_collect_gregset): Likewise.
3191 (i386_supply_fpregset): Likewise.
3192 (i386_collect_fpregset): Likewise.
3193 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
3194 (mips_fill_gregset_wrapper): Likewise.
3195 (mips_supply_fpregset_wrapper): Likewise.
3196 (mips_fill_fpregset_wrapper): Likewise.
3197 (mips64_supply_gregset_wrapper): Likewise.
3198 (mips64_fill_gregset_wrapper): Likewise.
3199 (mips64_supply_fpregset_wrapper): Likewise.
3200 (mips64_fill_fpregset_wrapper): Likewise.
3201 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
3202 (am33_supply_fpregset_method): Likewise.
3203 (am33_collect_gregset_method): Likewise.
3204 (am33_collect_fpregset_method): Likewise.
3205
3206 2015-02-04 Doug Evans <dje@google.com>
3207 Pedro Alves <palves@redhat.com>
3208 Eli Zaretskii <eliz@gnu.org>
3209
3210 PR tui/17810
3211 * tui/tui-command.c (tui_refresh_cmd_win): New function.
3212 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
3213 * tui/tui-file.c: #include tui/tui-command.h.
3214 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
3215 (tui_file_flush): Refresh command window if stream is gdb_stdout.
3216 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
3217
3218 2015-02-04 Pedro Alves <palves@redhat.com>
3219
3220 Fix build breakage.
3221 * event-loop.c (gdb_do_one_event): Add default switch case.
3222
3223 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3224
3225 Filter out inferior gcc option -fpreprocessed.
3226 * compile/compile.c (filter_args): New function.
3227 (get_args): Use it.
3228
3229 2015-02-03 Pedro Alves <palves@redhat.com>
3230
3231 * event-loop.c: Don't declare nor define a queue type for
3232 gdb_event_p.
3233 (event_queue): Delete.
3234 (create_event, create_file_event, gdb_event_xfree)
3235 (initialize_event_loop, process_event): Delete.
3236 (gdb_do_one_event): Return as soon as one event is handled.
3237 (handle_file_event): Change prototype. Used the passed in
3238 file_handler pointer and ready_mask instead of looping over all
3239 file handlers.
3240 (gdb_wait_for_event): Update the poll/select timeouts before
3241 blocking. Run event handlers directly instead of queueing events.
3242 Return as soon as one event is handled.
3243 (struct async_event_handler_data): Delete.
3244 (invoke_async_event_handler): Delete.
3245 (check_async_event_handlers): Change return type to int. Run
3246 event handlers directly instead of queueing events. Return as
3247 soon as one event is handled.
3248 (handle_timer_event): Delete.
3249 (update_wait_timeout): New function, factored out from
3250 poll_timers.
3251 (poll_timers): Reimplement.
3252 * event-loop.h (initialize_event_loop): Delete declaration.
3253 * top.c (gdb_init): Don't call initialize_event_loop.
3254
3255 2015-02-03 Pedro Alves <palves@redhat.com>
3256
3257 * event-loop.c (clear_async_event_handler): New function.
3258 * event-loop.h (clear_async_event_handler): New declaration.
3259 * record-btrace.c (record_btrace_async): New function.
3260 (init_record_btrace_ops): Install record_btrace_async.
3261 * record-full.c (record_full_async): New function.
3262 (record_full_resume): Don't mark the async event source here.
3263 (init_record_full_ops): Install record_full_async.
3264 (record_full_core_resume): Don't mark the async event source here.
3265 (init_record_full_core_ops): Install record_full_async.
3266 * remote.c (remote_async): Mark and clear the async stop reply
3267 queue event-loop token as appropriate.
3268
3269 2015-02-03 Pedro Alves <palves@redhat.com>
3270
3271 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
3272 target_is_async_p instead of target_can_async.
3273 (linux_nat_wait): Use target_is_async_p instead of
3274 target_can_async. Don't enable async here.
3275 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
3276 target_is_async_p instead of target_can_async.
3277
3278 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
3279
3280 * varobj.h (lang_varobj_ops): Mention which return values need
3281 to be freed.
3282
3283 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3284
3285 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
3286
3287 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3288
3289 PR gdb/17856:
3290 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
3291 results found in the cache.
3292
3293 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3294
3295 PR gdb/17854:
3296 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
3297 when allocating a new one.
3298
3299 2015-02-01 Tom Tromey <tom@tromey.com>
3300
3301 * MAINTAINERS: Remove myself.
3302
3303 2015-01-31 Doug Evans <xdje42@gmail.com>
3304
3305 * dwarf2read.c (process_structure_scope): Update setting of
3306 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
3307 * gdbtypes.c (internal_type_vptr_fieldno): New function.
3308 (set_type_vptr_fieldno): New function.
3309 (internal_type_vptr_basetype): New function.
3310 (set_type_vptr_basetype): New function.
3311 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
3312 TYPE_VPTR_BASETYPE.
3313 (allocate_cplus_struct_type): Initialize vptr_fieldno.
3314 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
3315 (print_cplus_stuff): ... moved here.
3316 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
3317 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
3318 moved to ...
3319 (struct cplus_struct_type): ... here. All uses updated.
3320 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
3321 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
3322 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
3323 * stabsread.c (read_tilde_fields): Update setting of
3324 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
3325
3326 2015-01-31 Doug Evans <xdje42@gmail.com>
3327
3328 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
3329 to self_p.
3330 (cp_print_class_member): Rename local domain to self_type.
3331 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
3332 domain_type to self_type.
3333 (set_die_type) <need_gnat_info>: Handle
3334 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
3335 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
3336 TYPE_SPECIFIC_SELF_TYPE.
3337 * gdbtypes.c (internal_type_self_type): New function.
3338 (set_type_self_type): New function.
3339 (smash_to_memberptr_type): Rename parameter domain to self_type.
3340 Update setting of TYPE_SELF_TYPE.
3341 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
3342 (smash_to_method_type): Rename parameter domain to self_type.
3343 Update setting of TYPE_SELF_TYPE.
3344 (check_stub_method): Call smash_to_method_type.
3345 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
3346 (copy_type_recursive): Ditto.
3347 * gdbtypes.h (enum type_specific_kind): New value
3348 TYPE_SPECIFIC_SELF_TYPE.
3349 (struct main_type) <type_specific>: New member self_type.
3350 (struct cplus_struct_type) <fn_field.type>: Update comment.
3351 (TYPE_SELF_TYPE): Rewrite.
3352 (internal_type_self_type, set_type_self_type): Declare.
3353 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
3354 self_type.
3355 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
3356 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
3357 TYPE_TARGET_TYPE.
3358 * stabsread.c (read_member_functions): Mark methods with
3359 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
3360 TYPE_SELF_TYPE.
3361
3362 2015-01-31 Doug Evans <xdje42@gmail.com>
3363
3364 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
3365 All uses updated.
3366
3367 2015-01-31 Doug Evans <xdje42@gmail.com>
3368
3369 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
3370 or unions. Return zero if union.
3371 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
3372 (gnuv3_rtti_type): Pass already-check_typedef'd value to
3373 gnuv3_get_vtable.
3374 (compute_vtable_size): Assert only passed structs.
3375 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
3376
3377 2015-01-31 Doug Evans <xdje42@gmail.com>
3378
3379 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
3380 kinds.
3381
3382 2015-01-31 Gary Benson <gbenson@redhat.com>
3383 Doug Evans <dje@google.com>
3384
3385 PR cli/9007
3386 PR cli/11920
3387 PR cli/15548
3388 * cli/cli-cmds.c (complete_command): Notify user if max-completions
3389 reached.
3390 * common/common-exceptions.h (enum errors)
3391 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
3392 * completer.h (get_max_completions_reached_message): New declaration.
3393 (max_completions): Likewise.
3394 (completion_tracker_t): New typedef.
3395 (new_completion_tracker): New declaration.
3396 (make_cleanup_free_completion_tracker): Likewise.
3397 (maybe_add_completion_enum): New enum.
3398 (maybe_add_completion): New declaration.
3399 (throw_max_completions_reached_error): Likewise.
3400 * completer.c (max_completions): New global variable.
3401 (new_completion_tracker): New function.
3402 (free_completion_tracker): Likewise.
3403 (make_cleanup_free_completion_tracker): Likewise.
3404 (maybe_add_completions): Likewise.
3405 (throw_max_completions_reached_error): Likewise.
3406 (complete_line): Remove duplicates and limit result to max_completions
3407 entries.
3408 (get_max_completions_reached_message): New function.
3409 (gdb_display_match_list): Handle max_completions.
3410 (_initialize_completer): New declaration and function.
3411 * symtab.c: Include completer.h.
3412 (completion_tracker): New static variable.
3413 (completion_list_add_name): Call maybe_add_completion.
3414 (default_make_symbol_completion_list_break_on_1): Renamed from
3415 default_make_symbol_completion_list_break_on. Maintain
3416 completion_tracker across calls to completion_list_add_name.
3417 (default_make_symbol_completion_list_break_on): New function.
3418 * top.c (init_main): Set rl_completion_display_matches_hook.
3419 * tui/tui-io.c: Include completer.h.
3420 (tui_old_rl_display_matches_hook): New static global.
3421 (tui_rl_display_match_list): Notify user if max-completions reached.
3422 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
3423 * NEWS (New Options): Mention set/show max-completions.
3424
3425 2015-01-31 Gary Benson <gbenson@redhat.com>
3426
3427 * symtab.c (struct add_name_data) <code>: New field.
3428 Updated comments.
3429 (add_symtab_completions): New function.
3430 (symtab_expansion_callback): Likewise.
3431 (default_make_symbol_completion_list_break_on): Set datum.code.
3432 Move minimal symbol scan before calling expand_symtabs_matching.
3433 Scan known primary symtabs for externs and statics before calling
3434 expand_symtabs_matching. Pass symtab_expansion_callback as
3435 expansion_notify argument to expand_symtabs_matching. Do not scan
3436 primary symtabs for externs and statics after calling
3437 expand_symtabs_matching.
3438
3439 2015-01-31 Gary Benson <gbenson@redhat.com>
3440
3441 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
3442 (struct quick_symbol_functions) <expand_symtabs_matching>:
3443 New argument expansion_notify. All uses updated.
3444 (expand_symtabs_matching): New argument expansion_notify.
3445 All uses updated.
3446 * symfile-debug.c (debug_qf_expand_symtabs_matching):
3447 Also print expansion notify.
3448 * symtab.c (expand_symtabs_matching_via_partial): Call
3449 expansion_notify whenever a partial symbol table is expanded.
3450 * dwarf2read.c (dw2_expand_symtabs_matching): Call
3451 expansion_notify whenever a symbol table is instantiated.
3452
3453 2015-01-31 Doug Evans <xdje42@gmail.com>
3454
3455 * cli-out.c: #include completer.h, readline/readline.h.
3456 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
3457 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
3458 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
3459 * cli-out.h (cli_display_match_list): Declare.
3460 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
3461 (ELLIPSIS_LEN): Ditto.
3462 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
3463 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
3464 (gdb_fnprint, gdb_print_filename): Ditto.
3465 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
3466 (gdb_display_match_list): Ditto.
3467 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
3468 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
3469 (mld_beep_ftype, mld_read_key_ftype): Ditto.
3470 (match_list_displayer): New struct.
3471 (gdb_display_match_list): Declare.
3472 * top.c (init_main): Set rl_completion_display_matches_hook.
3473 * tui/tui-io.c: #include completer.h.
3474 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
3475 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
3476 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
3477 (tui_mld_getc, tui_mld_read_key): Ditto.
3478 (tui_rl_display_match_list): Rewrite.
3479 (tui_handle_resize_during_io): New arg for_completion. All callers
3480 updated.
3481
3482 2015-01-31 Doug Evans <xdje42@gmail.com>
3483
3484 Add symbol lookup cache.
3485 * NEWS: Document new options and commands.
3486 * symtab.c (symbol_cache_key): New static global.
3487 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
3488 (SYMBOL_LOOKUP_FAILED): New macro.
3489 (symbol_cache_slot_state): New enum.
3490 (block_symbol_cache): New struct.
3491 (symbol_cache): New struct.
3492 (new_symbol_cache_size, symbol_cache_size): New static globals.
3493 (hash_symbol_entry, eq_symbol_entry): New functions.
3494 (symbol_cache_byte_size, resize_symbol_cache): New functions.
3495 (make_symbol_cache, free_symbol_cache): New functions.
3496 (get_symbol_cache, symbol_cache_cleanup): New function.
3497 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
3498 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
3499 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
3500 (symbol_cache_flush, symbol_cache_dump): New functions.
3501 (maintenance_print_symbol_cache): New function.
3502 (maintenance_flush_symbol_cache): New function.
3503 (symbol_cache_stats): New function.
3504 (maintenance_print_symbol_cache_statistics): New function.
3505 (symtab_new_objfile_observer): New function.
3506 (symtab_free_objfile_observer): New function.
3507 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
3508 (_initialize_symtab): Init symbol_cache_key. New parameter
3509 maint symbol-cache-size. New maint commands print symbol-cache,
3510 print symbol-cache-statistics, flush-symbol-cache.
3511 Install new_objfile, free_objfile observers.
3512
3513 2015-01-31 Joel Brobecker <brobecker@adacore.com>
3514
3515 PR symtab/17855
3516 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
3517 to end.
3518
3519 2015-01-31 Doug Evans <xdje42@gmail.com>
3520
3521 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
3522 * auto-load.c: #include ctype.h.
3523 (struct auto_load_pspace_info): Replace member loaded_scripts with
3524 new members loaded_script_files, loaded_script_texts.
3525 (auto_load_pspace_data_cleanup): Update.
3526 (init_loaded_scripts_info): Update.
3527 (get_auto_load_pspace_data_for_loading): Update.
3528 (maybe_add_script_file): Renamed from maybe_add_script. All callers
3529 updated.
3530 (maybe_add_script_text): New function.
3531 (clear_section_scripts): Update.
3532 (source_script_file, execute_script_contents): New functions.
3533 (source_section_scripts): Add support for
3534 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
3535 (print_scripts): New function.
3536 (auto_load_info_scripts): Also print inlined scripts.
3537 (maybe_print_unsupported_script_warning): Renamed from
3538 unsupported_script_warning_print. All callers updated.
3539 (maybe_print_script_not_found_warning): Renamed from
3540 script_not_found_warning_print. All callers updated.
3541 * extension-priv.h (struct extension_language_script_ops): New member
3542 objfile_script_executor.
3543 * extension.c (ext_lang_objfile_script_executor): New function.
3544 * extension.h (objfile_script_executor_func): New typedef.
3545 (ext_lang_objfile_script_executor): Declare.
3546 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
3547 * guile/guile.c (guile_extension_script_ops): Update.
3548 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
3549 * python/python.c (python_extension_script_ops): Update.
3550 (gdbpy_execute_objfile_script): New function.
3551
3552 2015-01-31 Eli Zaretskii <eliz@gnu.org>
3553
3554 * tui/tui-io.c (tui_expand_tabs): New function.
3555 (tui_puts, tui_redisplay_readline): Expand TABs into the
3556 appropriate number of spaces.
3557 * tui/tui-regs.c: Include tui-io.h.
3558 (tui_register_format): Call tui_expand_tabs to expand TABs into
3559 the appropriate number of spaces.
3560 * tui/tui-io.h: Add prototype for tui_expand_tabs.
3561
3562 2015-01-30 Doug Evans <dje@google.com>
3563
3564 * NEWS: "info source" command now display producer string if present.
3565 * source.c (source_info): Print producer string if present.
3566
3567 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3568
3569 * varobj.c (varobj_delete): Fix comment.
3570
3571 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3572
3573 * varobj.c (create_child): Modify comment.
3574
3575 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3576
3577 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
3578 parameter.
3579 (ada_name_of_variable): Same.
3580 (ada_path_expr_of_child): Same.
3581 (ada_value_of_variable): Same.
3582 (ada_value_is_changeable_p): Same.
3583 (ada_value_has_mutated): Same.
3584 * c-varobj.c (varobj_is_anonymous_child): Same.
3585 (c_is_path_expr_parent): Same.
3586 (c_number_of_children): Same.
3587 (c_name_of_variable): Same.
3588 (c_path_expr_of_child): Same.
3589 (get_type): Same.
3590 (c_value_of_variable): Same.
3591 (cplus_number_of_children): Same.
3592 (cplus_name_of_variable): Same.
3593 (cplus_path_expr_of_child): Same.
3594 (cplus_value_of_variable): Same.
3595 * jv-varobj.c (java_number_of_children): Same.
3596 (java_name_of_variable): Same.
3597 (java_path_expr_of_child): Same.
3598 (java_value_of_variable): Same.
3599 * varobj.c (number_of_children): Same.
3600 (name_of_variable): Same.
3601 (is_root_p): Same.
3602 (varobj_ensure_python_env): Same.
3603 (varobj_get_objname): Same.
3604 (varobj_get_expression): Same.
3605 (varobj_get_display_format): Same.
3606 (varobj_get_display_hint): Same.
3607 (varobj_has_more): Same.
3608 (varobj_get_thread_id): Same.
3609 (varobj_get_frozen): Same.
3610 (dynamic_varobj_has_child_method): Same.
3611 (varobj_get_gdb_type): Same.
3612 (is_path_expr_parent): Same.
3613 (varobj_default_is_path_expr_parent): Same.
3614 (varobj_get_language): Same.
3615 (varobj_get_attributes): Same.
3616 (varobj_is_dynamic_p): Same.
3617 (varobj_get_child_range): Same.
3618 (varobj_value_has_mutated): Same.
3619 (varobj_get_value_type): Same.
3620 (number_of_children): Same.
3621 (name_of_variable): Same.
3622 (check_scope): Same.
3623 (varobj_editable_p): Same.
3624 (varobj_value_is_changeable_p): Same.
3625 (varobj_floating_p): Same.
3626 (varobj_default_value_is_changeable_p): Same.
3627
3628 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3629
3630 * varobj.c (varobj_get_path_expr): Set var->path_expr.
3631 * c-varobj.c (c_path_expr_of_child): Set local var instead of
3632 child->path_expr.
3633 (cplus_path_expr_of_child): Same.
3634
3635 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3636
3637 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
3638 result.
3639 (mi_cmd_var_info_expression): Same.
3640 * varobj.c (varobj_get_expression): Mention in the comment that
3641 the result must by freed by the caller.
3642
3643 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3644
3645 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
3646 varobj_get_type.
3647 (varobj_update_one): Same.
3648 * varobj.c (update_type_if_necessary): Free curr_type_str and
3649 new_type_str.
3650 (varobj_get_type): Specify in comment that the result needs to be
3651 freed by the caller.
3652
3653 2015-01-29 Doug Evans <dje@google.com>
3654
3655 PR symtab/17890
3656 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
3657
3658 2015-01-25 Mark Wielaard <mjw@redhat.com>
3659
3660 * dwarf2read.c (checkproducer): Call producer_is_gcc.
3661 * utils.c (producer_is_gcc_ge_4): Likewise.
3662 (producer_is_gcc): New function.
3663 * utils.h (producer_is_gcc): New declaration.
3664
3665 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3666
3667 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
3668 kind.
3669 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
3670 parameter by "addr_stack" parameter.
3671 (resolve_dynamic_range): Replace "addr" parameter by
3672 "stack_addr" parameter. Update function documentation.
3673 Update code accordingly.
3674 (resolve_dynamic_array, resolve_dynamic_union)
3675 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
3676 (resolve_dynamic_type): Update code, following the changes made
3677 to resolve_dynamic_type_internal's interface.
3678 * dwarf2loc.h (struct property_addr_info): New.
3679 (dwarf2_evaluate_property): Replace "address" parameter
3680 by "addr_stack" parameter. Adjust function documentation.
3681 (struct dwarf2_offset_baton): New.
3682 (struct dwarf2_property_baton): Update documentation of
3683 field "referenced_type" to be more general. New field
3684 "offset_info" in union data field.
3685 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
3686 parameter by "addr_stack" parameter. Adjust code accordingly.
3687 Add support for PROP_ADDR_OFFSET properties.
3688 * dwarf2read.c (attr_to_dynamic_prop): Add support for
3689 DW_AT_data_member_location attributes as well. Use case
3690 statements instead of if/else condition.
3691
3692 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3693
3694 * ada-varobj.c (ada_varobj_get_array_number_of_children):
3695 Return zero if PARENT_VALUE is NULL and parent_type's
3696 range type is dynamic.
3697
3698 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3699
3700 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
3701 nonzero if the type's subtype is dynamic.
3702 (resolve_dynamic_range): Also resolve the range's subtype.
3703
3704 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
3705
3706 Pushed by Joel Brobecker <brobecker@adacore.com>.
3707 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
3708
3709 2015-01-27 Doug Evans <dje@google.com>
3710
3711 * NEWS: Mention gdb.Objfile.username.
3712 * python/py-objfile.c (objfpy_get_username): New function.
3713 (objfile_getset): Add "username".
3714
3715 2015-01-24 Mark Wielaard <mjw@redhat.com>
3716
3717 * stack.c (return_command): Markup warning message with _.
3718
3719 2015-01-24 Doug Evans <xdje42@gmail.com>
3720
3721 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
3722
3723 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3724
3725 Fix 100x slowdown regression on DWZ files.
3726 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
3727 (struct line_header): Add offset and offset_in_dwz.
3728 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
3729 (free_line_header_voidp): New declaration.
3730 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
3731 functions.
3732 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
3733 (handle_DW_AT_stmt_list): Use line_header_hash.
3734 (free_line_header_voidp): New function.
3735 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
3736 (dwarf_decode_lines): New parameter decode_mapping, use it.
3737 (dwarf2_free_objfile): Free line_header_hash.
3738
3739 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
3740
3741 PR gdb/17416
3742 * valops.c (value_rtti_indirect_type): Catch exception thrown by
3743 value_ind.
3744
3745 2015-01-15 Mark Wielaard <mjw@redhat.com>
3746
3747 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
3748 DW_AT_noreturn.
3749 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
3750 calling_convention an 8 bit bit field.
3751 (TYPE_NO_RETURN): New macro.
3752 * infcmd.c (finish_command): Query if function does not return
3753 normally.
3754 * stack.c (return_command): Likewise.
3755
3756 2015-01-23 Pedro Alves <palves@redhat.com>
3757
3758 * linux-nat.c (linux_is_async_p): New macro.
3759 (linux_nat_is_async_p):
3760 (linux_nat_terminal_inferior): Check whether the target can async
3761 instead of whether it is already async.
3762 (linux_nat_terminal_ours): Don't check whether the target is
3763 async.
3764 (linux_async_pipe): Use linux_is_async_p.
3765
3766 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3767
3768 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
3769 '-ascending'.
3770 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
3771 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
3772 Sort tp_array using tp_array_compar.
3773 (_initialize_thread): Extend thread_apply_all_command help.
3774
3775 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3776
3777 * corelow.c (core_open): Call also thread_command.
3778 * gdbthread.h (thread_command): New prototype moved from ...
3779 * thread.c (thread_command): ... here.
3780 (thread_command): Make it global.
3781
3782 2015-01-22 Pedro Alves <palves@redhat.com>
3783
3784 * configure.ac [*mingw32*]: Check $curses_found instead of
3785 $prefer_curses.
3786 * configure: Regenerate.
3787 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
3788 HAVE_NCURSES_NCURSES_H checks.
3789
3790 2015-01-22 Eli Zaretskii <eliz@gnu.org>
3791
3792 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
3793 fails with the 1st arg NULL, try again with "unknown". Don't test
3794 the "cup" capability: it isn't supported by the Windows port of
3795 ncurses, but the Windows console driver is still capable of
3796 supporting TUI.
3797
3798 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3799
3800 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
3801
3802 2015-01-22 Eli Zaretskii <eliz@gnu.org>
3803
3804 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
3805 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
3806 reason that "make TAGS" is broken.
3807
3808 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
3809
3810 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
3811 and check additional store instructions.
3812
3813 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
3814
3815 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
3816
3817 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
3818
3819 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
3820 ppc_canonicalize_syscall, ppc_linux_syscall_record,
3821 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
3822 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3823 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
3824 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
3825 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
3826 ppc_process_record_op19, ppc_process_record_op31,
3827 ppc_process_record_op59, ppc_process_record_op60,
3828 ppc_process_record_op63): Likewise.
3829
3830 2015-01-20 Joel Brobecker <brobecker@adacore.com>
3831
3832 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
3833 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
3834 strerror.
3835
3836 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
3837
3838 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
3839 ppc_process_record_op31, ppc_process_record_op59,
3840 ppc_process_record_op60, ppc_process_record_op63,
3841 ppc_process_record): Fix -Wformat warning.
3842 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
3843 Remove unused variables.
3844
3845 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
3846
3847 * MAINTAINERS (Write After Approval): Add "Chen Gang".
3848
3849 2015-01-19 Eli Zaretskii <eliz@gnu.org>
3850
3851 * configure.ac [*mingw32*]: Only add windows-termcap.o to
3852 CONFIG_OBS if not building with a curses library.
3853 * configure: Regenerate.
3854
3855 * windows-termcap.c: Include defs.h. Make the whole body empty if
3856 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
3857 HAVE_NCURSES_NCURSES_H is defined.
3858
3859 2015-01-19 Joel Brobecker <brobecker@adacore.com>
3860
3861 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
3862 from end of line to start of next line.
3863
3864 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3865
3866 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
3867 Scan PLT stub backward for reverse debugging.
3868 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3869
3870 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3871 Ulrich Weigand <uweigand@de.ibm.com>
3872
3873 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
3874 gdb_target_obs.
3875 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
3876 record.
3877 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
3878 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
3879 (ppc_linux_init_abi): Set process_record, process_record_signal.
3880 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
3881 ppc_linux_record_tdep to gdbarch_tdep.
3882 (ppc_process_record): New declaration.
3883 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
3884 ppc_process_record_op19, ppc_process_record_op31,
3885 ppc_process_record_op59, ppc_process_record_op60,
3886 ppc_process_record_op63, ppc_process_record): New functions.
3887
3888 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3889
3890 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
3891 rs6000_in_function_epilogue_frame_p and add an argument
3892 for frame_info.
3893 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
3894 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
3895 New functions.
3896 (rs6000_epilogue_frame_unwind): New.
3897 (rs6000_gdbarch_init): Append epilogue unwinder.
3898
3899 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3900
3901 * nat/linux-personality.c: Replace "#ifndef
3902 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
3903 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
3904 systems.
3905
3906 2015-01-16 Eli Zaretskii <eliz@gnu.org>
3907
3908 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
3909 functions.
3910 (_initialize_tui_win) <border-kind, border-mode>:
3911 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
3912 (tui_set_tab_width_command): Fix the commentary.
3913
3914 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
3915
3916 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
3917 Doc fix.
3918 (tui_set_tab_width_command): Delete and recreate the source and
3919 the disassembly windows, to show the effect of the changed tab
3920 size immediately.
3921
3922 * tui/tui-data.h (LINE_PREFIX): Make shorter
3923 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
3924 "Thread NNNNN.XXXX" thread ID notation on Windows.
3925
3926 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3927
3928 Fix gcc-5 compilation.
3929 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
3930
3931 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3932
3933 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
3934 (linux-personality.o): New rule.
3935 * common/common-defs.h: Include <stdint.h>.
3936 * config/aarch64/linux.mh (NATDEPFILES): Include
3937 linux-personality.o.
3938 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3939 * config/arm/linux.mh (NATDEPFILES): Likewise.
3940 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3941 * config/i386/linux.mh (NATDEPFILES): Likewise.
3942 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3943 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3944 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3945 * config/mips/linux.mh (NATDEPFILES): Likewise.
3946 * config/pa/linux.mh (NATDEPFILES): Likewise.
3947 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3948 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3949 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3950 * config/s390/linux.mh (NATDEPFILES): Likewise.
3951 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3952 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3953 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3954 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3955 * defs.h: Remove #include <stdint.h> (moved to
3956 common/common-defs.h).
3957 * linux-nat.c: Include nat/linux-personality.h. Remove #include
3958 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
3959 nat/linux-personality.c).
3960 (linux_nat_create_inferior): Remove code to disable address space
3961 randomization (moved to nat/linux-personality.c). Create cleanup
3962 to disable address space randomization.
3963 * nat/linux-personality.c: New file.
3964 * nat/linux-personality.h: Likewise.
3965
3966 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3967
3968 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
3969 common/posix-strerror.c.
3970 (posix-strerror.o): New rule.
3971 (mingw-strerror.o): Likewise.
3972 * common/common-utils.h (safe_strerror): Move prototype to here,
3973 from utils.h.
3974 * common/common.host: New file.
3975 * common/mingw-strerror.c: Likewise.
3976 * common/posix-strerror.c: Likewise.
3977 * configure: Regenerated.
3978 * configure.ac: Source common/common.host. Add variable
3979 common_host_obs to gdb_host_obs.
3980 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
3981 gdb/common/posix-strerror.c when warning about the use of
3982 strerror.
3983 * mingw-hdep.c (safe_strerror): Remove definition; move it to
3984 common/mingw-strerror.c.
3985 * posix-hdep.c (safe_strerror): Remove definition; move it to
3986 common/posix-hdep.c.
3987 * utils.h (safe_strerror): Remove prototype; move to
3988 common/common-utils.h.
3989
3990 2015-01-15 Joel Brobecker <brobecker@adacore.com>
3991
3992 GDB 7.8.2 released.
3993
3994 2015-01-15 Joel Brobecker <brobecker@adacore.com>
3995
3996 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
3997 ___XA type if the array has already been fixed.
3998
3999 2015-01-14 Yao Qi <yao@codesourcery.com>
4000
4001 * Makefile.in (ppc-linux.o): New rule.
4002 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
4003 * configure.ac: AC_CHECK_FUNCS(getauxval).
4004 * config.in: Re-generated.
4005 * configure: Re-generated.
4006 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
4007 Declare.
4008 * nat/ppc-linux.c: New file.
4009 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
4010 Call ppc64_64bit_inferior_p.
4011
4012 2015-01-14 Yao Qi <yao@codesourcery.com>
4013
4014 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
4015 nat/ppc-linux.h.
4016 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
4017 (PPC_FEATURE_HAS_DFP): Likewise.
4018 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
4019 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
4020 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
4021 Include "nat/ppc-linux.h".
4022 * nat/ppc-linux.h: New file.
4023 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
4024
4025 2015-01-14 Pedro Alves <palves@redhat.com>
4026
4027 PR gdb/17525
4028 * breakpoint.c: Include "interps.h".
4029 (bpstat_do_actions_1): Also check whether the interpreter is
4030 async.
4031
4032 2015-01-14 Pedro Alves <palves@redhat.com>
4033
4034 PR cli/17828
4035 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
4036 reinstall if the interpreter is sync.
4037
4038 2015-01-13 Doug Evans <dje@google.com>
4039
4040 * objfiles.c (objfile_filename): New function.
4041 * objfiles.h (objfile_filename): Declare it.
4042 (objfile_name): Add function comment.
4043 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
4044 bfd file name (which may be realpath'd), and the original name.
4045
4046 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4047
4048 * NEWS: Create a new section for the next release branch.
4049 Rename the section of the current branch, now that it has
4050 been cut.
4051
4052 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4053
4054 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
4055 * version.in: Bump version to 7.9.50.DATE-cvs.
4056
4057 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4058
4059 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
4060 Remove trailing new-line in argument of call to warning.
4061
4062 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4063
4064 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
4065 new-line in argument of call to "warning".
4066
4067 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4068
4069 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
4070 in static block, then try searching for primitive types.
4071
4072 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
4073
4074 * top.h (gdb_add_history): Declare.
4075 * top.c (command_count): New variable.
4076 (gdb_add_history): New function.
4077 (gdb_safe_append_history): New static function.
4078 (quit_force): Call it.
4079 (command_line_input): Use gdb_add_history instead of
4080 add_history.
4081 * event-top.c (command_line_handler): Likewise.
4082
4083 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
4084
4085 PR gdb/17046
4086 * darwin-nat.c: Replace <machine/setjmp.h> #include by
4087 <setjmp.h> #include.
4088
4089 2015-01-11 Doug Evans <xdje42@gmail.com>
4090
4091 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
4092
4093 2015-01-11 Doug Evans <xdje42@gmail.com>
4094
4095 PR gdb/15830
4096 * NEWS: The "maint demangle" command is renamed as "demangle".
4097 * demangle.c: #include cli/cli-utils.h, language.h.
4098 (demangle_command): New function.
4099 (_initialize_demangle): Add new command "demangle".
4100 * maint.c (maintenance_demangle): Stub out.
4101 (_initialize_maint_cmds): Update help text for "maint demangle",
4102 and mark as deprecated.
4103
4104 2015-01-11 Mark Kettenis <kettenis@gnu.org>
4105
4106 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
4107 inferior_thread is a function.
4108
4109 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4110
4111 * Makefile.in (.y.c): Don't munge yacc's #line
4112 directives.
4113
4114 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4115
4116 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
4117 to prompt for input.
4118 * tui/tui-hooks.c (tui_query_hook): Remove.
4119 (tui_install_hooks): Don't set deprecated_query_hook.
4120 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
4121 height calculation. Always update the command window's cur_line.
4122
4123 2015-01-09 Pedro Alves <palves@redhat.com>
4124
4125 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
4126 function.
4127 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
4128 declaration.
4129 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
4130 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
4131 stop_reason.
4132 (check_stopped_by_watchpoint): New function.
4133 (save_sigtrap): Reimplement.
4134 (linux_nat_stopped_by_watchpoint): Adjust.
4135 (linux_nat_lp_status_is_event): Delete.
4136 (stop_wait_callback): Only call save_sigtrap after storing the
4137 pending status.
4138 (status_callback): If the thread had been stopped for a breakpoint
4139 that has since been removed, discard the event and resume the LWP.
4140 (count_events_callback, select_event_lwp_callback): Use
4141 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
4142 (cancel_breakpoint): Rename to ...
4143 (check_stopped_by_breakpoint): ... this. Record whether the LWP
4144 stopped for a software breakpoint or hardware breakpoint.
4145 (select_event_lwp): Only give preference to the stepping LWP in
4146 all-stop mode. Adjust comments.
4147 (stop_and_resume_callback): Remove references to new_pending_p.
4148 (linux_nat_filter_event): Likewise. Leave exit events of the
4149 leader thread pending here. Handle signal short circuiting here.
4150 Only call save_sigtrap after storing the pending waitstatus.
4151 (linux_nat_wait_1): Remove 'retry' label. Remove references to
4152 new_pending. Don't handle leaving events the caller is not
4153 interested in pending here, nor handle signal short-circuiting
4154 here. Also give equal priority to all LWPs that have had events
4155 in non-stop mode. If reporting a software breakpoint event,
4156 unadjust the LWP's PC.
4157 * linux-nat.h (enum lwp_stop_reason): New.
4158 (struct lwp_info) <stop_pc>: New field.
4159 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
4160 (struct lwp_info) <stop_reason>: New field.
4161 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
4162
4163 2015-01-09 Pedro Alves <palves@redhat.com>
4164
4165 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
4166 Set the LWP's 'resumed' flag.
4167
4168 2015-01-09 Pedro Alves <palves@redhat.com>
4169
4170 * linux-nat.c (linux_resume_one_lwp): New function.
4171 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
4172 (linux_nat_resume): Use lwp_status_pending_p and
4173 linux_resume_one_lwp.
4174 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
4175 (linux_handle_extended_wait): Use linux_resume_one_lwp.
4176 (status_callback, running_callback): Use lwp_status_pending_p.
4177 (lwp_status_pending_p): New function.
4178 (stop_and_resume_callback): Use lwp_status_pending_p.
4179 (linux_nat_filter_event): Use linux_resume_one_lwp.
4180 (linux_nat_wait_1): Always use status_callback to look for an LWP
4181 with a pending status. Use linux_resume_one_lwp.
4182 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
4183 linux_resume_one_lwp.
4184
4185 2015-01-09 Pedro Alves <palves@redhat.com>
4186
4187 * breakpoint.c (bp_location_inserted_here_p): New function,
4188 factored out from ...
4189 (breakpoint_inserted_here_p): ... here. Use
4190 ALL_BP_LOCATIONS_AT_ADDR.
4191 (software_breakpoint_inserted_here_p): Use
4192 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
4193
4194 2014-01-09 Pedro Alves <palves@redhat.com>
4195
4196 Skip enabling event reporting if the kernel supports
4197 PTRACE_EVENT_CLONE.
4198 * linux-thread-db.c: Include "nat/linux-ptrace.h".
4199 (thread_db_use_events): New function.
4200 (try_thread_db_load_1): Check thread_db_use_events before enabling
4201 event reporting.
4202 (update_thread_state): New function.
4203 (attach_thread): Use it. Check thread_db_use_events before
4204 enabling event reporting.
4205 (thread_db_detach): Check thread_db_use_events before disabling
4206 event reporting.
4207 (find_new_threads_callback): Check thread_db_use_events before
4208 enabling event reporting. Update the thread's state if not using
4209 libthread_db events.
4210
4211 2015-01-09 Pedro Alves <palves@redhat.com>
4212
4213 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
4214 about to wait for is > 0.
4215 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
4216 the kernel thread ID is -1.
4217
4218 2015-01-09 Pedro Alves <palves@redhat.com>
4219
4220 * linux-nat.c (attach_proc_task_lwp_callback): New function.
4221 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
4222 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
4223 ptrace option flags.
4224 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
4225 field.
4226 * nat/linux-procfs.c: Include <dirent.h>.
4227 (linux_proc_get_int): New parameter "warn". Handle it.
4228 (linux_proc_get_tgid): Adjust.
4229 (linux_proc_get_tracerpid): Rename to ...
4230 (linux_proc_get_tracerpid_nowarn): ... this.
4231 (linux_proc_pid_get_state): New function, factored out from
4232 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
4233 and handle it.
4234 (linux_proc_pid_is_gone): New function.
4235 (linux_proc_pid_is_stopped): Adjust.
4236 (linux_proc_pid_is_zombie_maybe_warn)
4237 (linux_proc_pid_is_zombie_nowarn): New functions.
4238 (linux_proc_pid_is_zombie): Use
4239 linux_proc_pid_is_zombie_maybe_warn.
4240 (linux_proc_attach_tgid_threads): New function.
4241 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
4242 (linux_proc_get_tracerpid): Rename to ...
4243 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
4244 (linux_proc_pid_is_gone): New declaration.
4245 (linux_proc_pid_is_zombie): Update comment.
4246 (linux_proc_pid_is_zombie_nowarn): New declaration.
4247 (linux_proc_attach_lwp_func): New typedef.
4248 (linux_proc_attach_tgid_threads): New declaration.
4249 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
4250 use nowarn functions.
4251 (linux_ptrace_attach_fail_reason_string): Move here from
4252 gdbserver/linux-low.c and rename.
4253 (ptrace_supports_feature): If the current ptrace options are not
4254 known yet, check them now, instead of asserting.
4255 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
4256 Declare.
4257
4258 2015-01-09 Pedro Alves <palves@redhat.com>
4259
4260 * linux-thread-db.c (thread_db_find_new_threads_silently)
4261 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
4262 (find_new_threads_once): Print debug output on gdb_stdlog.
4263
4264 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
4265 Pedro Alves <palves@redhat.com>
4266
4267 * compile/compile.c: Include "gdb_wait.h".
4268 (do_rmdir): Check return value, and free 'zap'.
4269
4270 2015-01-08 Pedro Alves <palves@redhat.com>
4271 Yao Qi <yao@codesourcery.com>
4272
4273 * dwarf2loc.c (indirect_pieced_value): Don't call
4274 gdb_sign_extend. Call extract_signed_integer instead.
4275 * utils.c (gdb_sign_extend): Remove.
4276 * utils.h (gdb_sign_extend): Remove declaration.
4277
4278 2015-01-07 Pierre Muller <muller@sourceware.org>
4279
4280 PR symtab/17811
4281 * stabsread.c (define_symbol): Set language for C++ special symbols.
4282
4283 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4284
4285 * inflow.c (initial_gdb_ttystate): Tweak comment.
4286
4287 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4288
4289 * inflow.c (set_initial_gdb_ttystate): Add empty line after
4290 comment documenting function.
4291
4292 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4293
4294 * terminal.h (set_initial_gdb_ttystate): Declare.
4295 * inflow.c (initial_gdb_ttystate): New static variable.
4296 (set_initial_gdb_ttystate): New setter.
4297 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
4298 instead of our current terminal state.
4299 * top.c (gdb_init): Call set_initial_gdb_ttystate.
4300
4301 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4302
4303 * guile/scm-type.c (tyscm_array_1): Add comment.
4304 * python/py-type.c (typy_array_1): Add comment.
4305
4306 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4307
4308 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
4309 error if N2 is equal to N1 - 1.
4310
4311 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4312
4313 * python/py-type.c (typy_array_1): Do not raise negative-length
4314 exception if N2 is equal to N1 - 1.
4315
4316 2015-01-03 Doug Evans <xdje42@gmail.com>
4317
4318 * c-exp.y: Whitespace cleanup.
4319 (classify_inner_name): Remove extra ;.
4320
4321 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
4322
4323 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
4324 offset signed.
4325
4326 2015-01-02 Doug Evans <dje@google.com>
4327
4328 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
4329
4330 2015-01-02 Doug Evans <dje@google.com>
4331
4332 * symtab.h (struct symbol): Fix typo in comment.
4333
4334 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4335
4336 Update year range in copyright notice of all files.
4337
4338 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4339
4340 * top.c (print_gdb_version): Update copyright year to 2015.
4341
4342 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4343
4344 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
4345
4346 For older changes see ChangeLog-2014.
4347 \f
4348 Local Variables:
4349 mode: change-log
4350 left-margin: 8
4351 fill-column: 74
4352 version-control: never
4353 coding: utf-8
4354 End:
This page took 0.173548 seconds and 4 git commands to generate.