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