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