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