]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Modernize configure.ac's
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1e94266c
SM
12016-02-09 Simon Marchi <simon.marchi@ericsson.com>
2
3 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
4 to AC_OUTPUT. Remove "exit 0" at the end.
5 * configure: Regenerate.
6
2a7f3dff
PA
72016-02-09 Pedro Alves <palves@redhat.com>
8
9 PR breakpoints/19548
10 * breakpoint.c (create_overlay_event_breakpoint): Don't update
11 global location list here.
12 (create_longjmp_master_breakpoint)
13 (create_std_terminate_master_breakpoint)
14 (create_exception_master_breakpoint, create_jit_event_breakpoint)
15 (update_breakpoint_locations):
16 (breakpoint_re_set): Update global location list after all
17 breakpoints are re-set.
18
54887903
SM
192016-02-08 Simon Marchi <simon.marchi@ericsson.com>
20
21 * remote.c (remote_register_number_and_offset): Remove unused
22 variable(s).
23 (remote_thread_always_alive): Likewise.
24 (remote_update_thread_list): Likewise.
25 (process_initial_stop_replies): Likewise.
26 (remote_start_remote): Likewise.
27 (remote_check_symbols): Likewise.
28 (discard_pending_stop_replies): Likewise.
29 (process_stop_reply): Likewise.
30 (putpkt_binary): Likewise.
31 (getpkt): Likewise.
32 (remote_add_target_side_condition): Likewise.
33 (remote_insert_breakpoint): Likewise.
34 (remote_supports_stopped_by_sw_breakpoint): Likewise.
35 (remote_supports_stopped_by_hw_breakpoint): Likewise.
36 (remote_xfer_partial): Likewise.
37 (remote_read_btrace): Likewise.
38 (remote_async_serial_handler): Likewise.
39 (remote_thread_events): Likewise.
40 (_initialize_remote): Likewise.
41
30914ca8
SM
422016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * varobj.h (varobj_delete): Remove dellist parameter, update and
45 move documentation here.
46 * varobj.c (struct cpstack, cppush, cppop): Remove.
47 (delete_variable): Remove resultp (first) parameter.
48 (delete_variable_1): Likewise.
49 (varobj_delete): Remove dellist parameter and unused code.
50 (update_dynamic_varobj_children): Adjust varobj_delete call.
51 (update_type_if_necessary): Likewise.
52 (varobj_set_visualizer): Likewise.
53 (varobj_update): Likewise.
54 (value_of_root): Likewise.
55 (varobj_invalidate_iter): Likewise.
56 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
57
e42e5352
YQ
582016-02-04 Yao Qi <yao.qi@linaro.org>
59
60 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
61 0 before handling 'F' and set it back afterwards.
62
6456a18b
SM
632016-02-02 Simon Marchi <simon.marchi@ericsson.com>
64
65 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
66
3f2f6cb5
WT
672016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
68
69 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
70 New types.
71 (compat_siginfo): New bound fields added.
72 (compat_x32_siginfo): New field added.
73 (cpt_si_addr_lsb): New define.
74 (compat_siginfo_from_siginfo): Use nat_siginfo.
75 (siginfo_from_compat_siginfo): Use nat_siginfo.
76 (compat_x32_siginfo_from_siginfo): Likewise.
77 (siginfo_from_compat_x32_siginfo): Likewise.
78
96b5c49f
WT
792016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
80
81 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
82 structure to the siginfo if extra_fields contains
83 LINUX_SIGINFO_FIELD_ADDR_BND.
84
190b495d
WT
852016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
86
87 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
88 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
89 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
90 function.
91 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
92 x86_linux_get_siginfo_type for the amd64 abi.
93 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
94 function.
95 (i386_linux_init_abi): Add new function at the i386 ABI
96 initialization.
97
43564574
WT
982016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
99
100 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
101 (linux_siginfo_extra_fields): New enum type.
102 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
103 (linux_get_siginfo_type): Use new function.
104
93813b37
WT
1052016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
106
107 * nat/amd64-linux-siginfo.c: New file.
108 * nat/amd64-linux-siginfo.h: New file.
109 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
110 (amd64-linux-siginfo.o): New rule.
111 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
112 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
113 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
114 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
115 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
116 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
117 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
118 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
119
5fdf6324
AB
1202016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
121
122 * value.c (max_value_size): New variable.
123 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
124 (set_max_value_size): New function.
125 (show_max_value_size): New function.
126 (check_type_length_before_alloc): New function.
127 (allocate_value_contents): Call check_type_length_before_alloc.
128 (set_value_enclosing_type): Likewise.
129 (_initialize_values): Add set/show handler for max-value-size.
130 * NEWS: Mention new set/show command.
131
5fa13070
SM
1322016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * varobj.h (struct varobj): Fix typos in comments.
135 (struct lang_varobj_ops): Likewise.
136 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
137 (varobj_create): Move misplaced comment.
138
a2e3e93f
SM
1392016-01-29 Simon Marchi <simon.marchi@ericsson.com>
140
141 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
142 to for include additional lines.
143 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
144
56e374a6
SM
1452016-01-28 Simon Marchi <simon.marchi@ericsson.com>
146
147 * gnulib/import/Makefile.am: Regenerate.
148 * gnulib/import/Makefile.in: Regenerate.
149 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
150 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
151
8424cc97
SM
1522016-01-28 Simon Marchi <simon.marchi@ericsson.com>
153
154 * remote.c (skip_to_semicolon): Remove.
155 (remote_parse_stop_reply): Use strchrnul instead of
156 skip_to_semicolon.
157 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
158 strchrnul.
159 * gnulib/aclocal.m4: Regenerate.
160 * gnulib/config.in: Regenerate.
161 * gnulib/configure: Regenerate.
162 * gnulib/import/Makefile.am: Regenerate.
163 * gnulib/import/Makefile.in: Regenerate.
164 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
165 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
166 * gnulib/import/m4/rawmemchr.m4: New file.
167 * gnulib/import/m4/strchrnul.m4: New file.
168 * gnulib/import/rawmemchr.c: New file.
169 * gnulib/import/rawmemchr.valgrind: New file.
170 * gnulib/import/strchrnul.c: New file.
171 * gnulib/import/strchrnul.valgrind: New file.
172
4a6a1ed4
YQ
1732016-01-28 Yao Qi <yao.qi@linaro.org>
174
175 * breakpoint.c (build_target_command_list): Don't call continue
176 if aexpr is NULL.
177 (build_target_condition_list): Likewise.
178
94715c17
KB
1792016-01-27 Kevin Buettner <kevinb@redhat.com>
180
181 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
182 bytes as aggregates.
183
c07af0ab
JB
1842016-01-27 Joel Brobecker <brobecker@adacore.com>
185
186 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
187 Linespec Maintainers.
188
41548caa
SM
1892016-01-26 Simon Marchi <simon.marchi@ericsson.com>
190
191 * common/common-utils.c (skip_spaces): Fix comment.
192 (skip_to_space_const): Likewise.
193
4d18591b
YQ
1942016-01-25 Yao Qi <yao.qi@linaro.org>
195
196 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
197 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
198 (arm_deal_with_atomic_sequence_raw): Likewise.
199 (thumb_get_next_pcs_raw): Likewise.
200 (arm_get_next_pcs_raw): Likewise.
201 (arm_get_next_pcs): Remove argument pc. Callers updated.
202 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
203
a579cd9a
MW
2042016-01-25 Mark Wielaard <mjw@redhat.com>
205
206 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
207 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
208 if statement.
209 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
210 statement block by introducing an else.
211 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
212 of return statements.
213 (record_linux_msghdr): Likewise.
214
a2077e25
PA
2152016-01-25 Pedro Alves <palves@redhat.com>
216
217 PR threads/19461
218 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
219 parent/child running states.
220
1d2736d4
PA
2212016-01-25 Pedro Alves <palves@redhat.com>
222
223 PR gdb/19494
224 * linux-nat.c (kill_one_lwp): New, factored out from ...
225 (kill_callback): ... this.
226 (kill_wait_callback): New, factored out from ...
227 (kill_wait_one_lwp): ... this.
228 (kill_unfollowed_fork_children): New function.
229 (linux_nat_kill): Use it.
230
b2bae2f7
JB
2312016-01-22 John Baldwin <jhb@FreeBSD.org>
232
233 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
234
d86feca3
YQ
2352016-01-22 Yao Qi <yao.qi@linaro.org>
236
237 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
238 instead of warning.
239 (store_fpregs, fetch_regs, store_regs): Likewise.
240 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
241 (fetch_vfp_regs, store_vfp_regs): Likewise.
242
b35a8b2f
DE
2432016-01-21 Doug Evans <dje@google.com>
244
245 * breakpoint.c (init_breakpoint_sal): Add comment.
246
f906b857
MK
2472016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
248
249 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
250
4a099de2
AB
2512016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
252
253 * disasm.c (maybe_add_dis_line_entry): Rename to...
254 (add_dis_line_entry): ...this, and update header comment.
255 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
256
a994041d
PA
2572016-01-21 Pedro Alves <palves@redhat.com>
258
259 * Makefile.in (COMPILER_CFLAGS): New.
260 (CXXFLAGS): Get it from configure.
261 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
262 instead of CFLAGS.
263 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
264 COMPILER_CFLAGS.
265 * configure: Regenerate.
266
305e13e6
JB
2672016-01-21 Joel Brobecker <brobecker@adacore.com>
268
269 * location.h (new_address_location): Add new parameters
270 "addr_string" and "addr_string_len".
271 (get_address_string_location): Add declaration.
272 * location.c (new_address_location): Add new parameters
273 "addr_string" and "addr_string_len". If not NULL, store
274 a copy of the addr_string in the new location as well.
275 (get_address_string_location): New function.
276 (string_to_event_location): Update call to new_address_location.
277 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
278 Save the event location in the parser's state before
279 passing it to convert_address_location_to_sals.
280 * breakpoint.c (create_thread_event_breakpoint): Update call
281 to new_address_location.
282 (init_breakpoint_sal): Get the event location's string, if any,
283 and use it to update call to new_address_location.
284 * python/py-finishbreakpoint.c (bpfinishpy_init):
285 Update call to new_address_location.
286 * spu-tdep.c (spu_catch_start): Likewise.
287
288 * config/djgpp/fnchange.lst: Add entries for
289 gdb/testsuite/gdb.base/break-fun-addr1.c and
290 gdb/testsuite/gdb.base/break-fun-addr2.c.
291
f7a6a40d
YQ
2922016-01-21 Yao Qi <yao.qi@linaro.org>
293
294 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
295 is_thumb and set it according to CPSR saved on the stack.
296 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
297 arm_linux_sigreturn_next_pc.
298
5f5dfff6
SM
2992016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
300
301 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
302 Fix enumerators sort key function.
303
be56871e
JB
3042016-01-20 Joel Brobecker <brobecker@adacore.com>
305
b12e5614 306 * printcmd.c (print_scalar_formatted): Move binary operator from
be56871e
JB
307 end of line to beginning of next line. Adjust formatting
308 accordingly.
309
f2feec98
JB
3102016-01-19 John Baldwin <jhb@FreeBSD.org>
311
312 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
313 "len" with sysctl.
314
20a0aab3
JB
3152016-01-19 John Baldwin <jhb@FreeBSD.org>
316
317 * fbsd-tdep.c (find_stop_signal): Remove.
318 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
319 <stop_signal>: New field.
320 <abort_iteration>: New field.
321 (fbsd_collect_regset_section_cb): Use new fields.
322 (fbsd_collect_thread_registers): New function.
323 (struct fbsd_corefile_thread_data): New structure.
324 (fbsd_corefile_thread): New function.
325 (fbsd_make_corefile_notes): Use new function to dump notes for each
326 non-exited thread in a process.
327
6e9567fe
JB
3282016-01-19 John Baldwin <jhb@FreeBSD.org>
329
330 * configure.ac: Check for support for LWP names on FreeBSD.
331 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
332 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
333 (fbsd_fetch_kinfo_proc): Move function earlier.
334 [PT_LWPINFO] (fbsd_thread_alive): New function.
335 [PT_LWPINFO] (fbsd_pid_to_str): New function.
336 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
337 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
338 [PT_LWPINFO] (fbsd_add_threads): New function.
339 [PT_LWPINFO] (fbsd_update_thread_list): New function.
340 [PT_LWPINFO] New variable super_resume.
341 [PT_LWPINFO] (resume_one_thread_cb): New function.
342 [PT_LWPINFO] (resume_all_threads_cb): New function.
343 [PT_LWPINFO] (fbsd_resume): New function.
344 (fbsd_remember_child): Save full ptid instead of plain pid.
345 (fbsd_is_child_pending): Return ptid of saved child process.
346 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
347 first stop.
348 [PT_LWP_EVENTS] Handle LWP events.
349 [TDP_RFPPWAIT] Include LWP in child ptid.
350 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
351 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
352 Add threads for existing processes.
353 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
354 "fbsd_thread_alive".
355 Set "to_pid_to_str" to "fbsd_pid_to_str".
356 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
357 "fbsd_thread_name".
358 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
359 Set "to_has_thread_control" to "tc_schedlock".
360 Set "to_resume" to "fbsd_resume".
361 (_initialize_fbsd_nat): New function.
362 * configure: Regenerate.
363 * config.in: Regenerate.
364
94309df7
JB
3652016-01-19 John Baldwin <jhb@FreeBSD.org>
366
367 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
368 get_ptrace_pid.
369 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
370 (amd64bsd_dr_get): Use get_ptrace_pid.
371 (amd64bsd_dr_set): Use get_ptrace_pid.
372 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
373 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
374 (i386bsd_dr_get): Use get_ptrace_pid.
375 (i386bsd_dr_set): Use get_ptrace_pid.
376 * inf-ptrace.c (get_ptrace_pid): Export.
377 * inf-ptrace.h (get_ptrace_pid): Declare.
378 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
379 (ppcfbsd_store_inferior_registers): Use lwp id.
380
79117428
JB
3812016-01-19 John Baldwin <jhb@FreeBSD.org>
382
383 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
384 (fbsd_core_thread_name): New function.
385 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
386 Add "core_thread_name" gdbarch method.
387
4dfc5dbc
JB
3882016-01-19 John Baldwin <jhb@FreeBSD.org>
389
390 * corelow.c (core_thread_name): New function.
391 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
392 target op.
393 * gdbarch.sh (core_thread_name): New gdbarch callback.
394 * gdbarch.h: Re-generate.
395 * gdbarch.c: Re-generate.
396
10e3ed90
SM
3972016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
398
399 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
400 convert gdb.Value to integer type using int().
401
a6e69c1f
JB
4022016-01-19 John Baldwin <jhb@FreeBSD.org>
403
404 * configure.ac: Include <sys/types.h when checking for "r_fs" in
405 "struct reg".
406 * configure: Regenerate.
407
37e42b4f
PA
4082016-01-19 Pedro Alves <palves@redhat.com>
409
410 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
411 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
412 current program space down to linespec decoding and breakpoint
413 location updating.
414 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
415 decode_line_full.
416 (until_break_command): Adjust calls to decode_line_1.
417 (base_breakpoint_decode_location, bkpt_decode_location): Add
418 'search_pspace' parameter. Pass it along.
419 (bkpt_probe_create_sals_from_location): Adjust calls to
420 parse_probes.
421 (tracepoint_decode_location, tracepoint_probe_decode_location)
422 (strace_marker_decode_location): Add 'search_pspace' parameter.
423 Pass it along.
424 (all_locations_are_pending): Rewrite to take a breakpoint and
425 program space as arguments instead.
426 (hoist_existing_locations): New function.
427 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
428 hoist_existing_locations instead of always removing all locations,
429 and adjust to all_locations_are_pending change.
430 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
431 Don't disable the breakpoint if there are other locations in
432 another program space.
433 (breakpoint_re_set_default): Adjust to pass down the current
434 program space as filter program space.
435 (decode_location_default): Add 'search_pspace' parameter and pass
436 it along.
437 (prepare_re_set_context): Don't switch program space here.
438 (breakpoint_re_set): Use save_current_space_and_thread instead of
439 save_current_program_space.
440 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
441 'search_pspace' parameter.
442 (update_breakpoint_locations): Add 'filter_pspace' parameter.
443 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
444 decode_line_1.
445 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
446 program space as filter program space.
447 * linespec.c (struct linespec_state) <search_pspace>: New field.
448 (create_sals_line_offset, convert_explicit_location_to_sals)
449 (parse_linespec): Pass the search program space down.
450 (linespec_state_constructor): Add 'search_pspace' parameter.
451 Store it.
452 (linespec_parser_new): Add 'search_pspace' parameter and pass it
453 along.
454 (linespec_lex_to_end): Adjust.
455 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
456 and pass it along.
457 (decode_line_with_last_displayed): Adjust.
458 (collect_symtabs_from_filename, symtabs_from_filename): New
459 'search_pspace' parameter. Use it.
460 (find_function_symbols): Pass the search program space down.
461 * linespec.h (decode_line_1, decode_line_full): Add
462 'search_pspace' parameter.
463 * probe.c (parse_probes_in_pspace): New function, factored out
464 from ...
465 (parse_probes): ... this. Add 'search_pspace' parameter and use
466 it.
467 * probe.h (parse_probes): Add pspace' parameter.
468 * python/python.c (gdbpy_decode_line): Adjust.
469 * tracepoint.c (scope_info): Adjust.
470
100b4f2e
MR
4712016-01-18 Maciej W. Rozycki <macro@imgtec.com>
472
473 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
474 instruction support.
475 (micromips_next_pc): Likewise.
476 (micromips_scan_prologue): Likewise.
477 (micromips_deal_with_atomic_sequence): Likewise.
478 (micromips_stack_frame_destroyed_p): Likewise.
479 (mips_breakpoint_from_pc): Likewise.
480
3f7f3650
MR
4812016-01-18 Maciej W. Rozycki <macro@imgtec.com>
482
483 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
484 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
485
f303dbd6
PA
4862016-01-18 Pedro Alves <palves@redhat.com>
487
488 * NEWS: Mention that GDB now displays the ID and name of the
489 thread that hit a breakpoint or received a signal.
490 * break-catch-sig.c (signal_catchpoint_print_it): Use
491 maybe_print_thread_hit_breakpoint.
492 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
493 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
494 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
495 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
496 (print_it_catch_exec, print_it_ranged_breakpoint)
497 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
498 Use maybe_print_thread_hit_breakpoint.
499 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
500 * gdbthread.h (show_thread_that_caused_stop): Declare.
501 * infrun.c (print_signal_received_reason): Print which thread
502 received signal.
503 * thread.c (show_thread_that_caused_stop): New function.
504
eb0edac8
GB
5052016-01-18 Gary Benson <gbenson@redhat.com>
506
507 * nat/linux-namespaces.c (do_fork): New function.
508 (linux_mntns_get_helper): Use the above.
509
dc365182
JH
5102016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
511
512 Pushed by Joel Brobecker <brobecker@adacore.com>.
513 PR gdb/19208
514 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
515 if the function has no name.
516
f74f61cb
SL
5172016-01-15 Sandra Loosemore <sandra@codesourcery.com>
518
519 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
520 Conditionalize for Windows host.
521 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
522 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
523 (phony_iconv_open): Handle both UTF-32 endiannesses.
524 (phony_iconv): Likewise. Check for output overflow and clean up
525 out-of-input cases. Correct adjustment to input buffer pointer.
526 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
527 phony_iconv_open.
528
71ef29a8
PA
5292016-01-15 Pedro Alves <palves@redhat.com>
530
531 * NEWS: Mention star wildcard ranges.
532 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
533 (number_range_setup_range): New function.
534 * cli/cli-utils.h (number_range_setup_range): New declaration.
535 * thread.c (thread_apply_command): Support star TID ranges.
536 * tid-parse.c (tid_range_parser_finished)
537 (tid_range_parser_string, tid_range_parser_skip)
538 (get_tid_or_range, get_tid_or_range): Handle
539 TID_RANGE_STATE_STAR_RANGE.
540 (tid_range_parser_star_range): New function.
541 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
542 New value.
543 (tid_range_parser_star_range): New declaration.
544
3f5b7598
PA
5452016-01-15 Pedro Alves <palves@redhat.com>
546
547 * thread.c (thread_apply_command): Use the tid range parser to
548 advance past the thread ID list.
549 * tid-parse.c (get_positive_number_trailer): New function.
550 (parse_thread_id): Use it.
551 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
552 thread ID error.
553 (get_tid_or_range): Detect negative values. Return 0 instead of
554 throwing invalid thread ID error.
555
e7cf25a8
YQ
5562016-01-14 Yao Qi <yao.qi@linaro.org>
557
558 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
559 Declare.
560 (arm_linux_get_next_pcs_ops): Install
561 arm_linux_get_next_pcs_syscall_next_pc.
562 (arm_linux_syscall_next_pc): Change to ...
563 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
564 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
565 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
566 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
567 call tdep->syscall_next_pc.
568 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
569 (arm_get_next_pcs_syscall_next_pc): Remove.
570
c0518081
YQ
5712016-01-14 Yao Qi <yao.qi@linaro.org>
572
573 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
574 * thread.c (do_captured_thread_select): Cast to const char *.
575
1b451dda
YQ
5762016-01-14 Yao Qi <yao.qi@linaro.org>
577
578 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
579 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
580 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
581 instead.
582 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
583 <arm_thumb2_breakpoint>: Remove.
584 <has_thumb2_breakpoint>: New field.
585 (arm_get_next_pcs_ctor): Update declaration.
586 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
587 1 to arm_get_next_pcs_ctor.
588 * arm-tdep.c (arm_software_single_step): Pass 0 to
589 arm_get_next_pcs_ctor.
590
bc06e0b1
UW
5912016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
592
593 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
594
4e7b8bea
YQ
5952016-01-13 Yao Qi <yao.qi@linaro.org>
596
597 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
598 byte_order_for_code to read instruction.
599
663f6d42
PA
6002016-01-13 Pedro Alves <palves@redhat.com>
601
602 * NEWS: Mention $_gthread.
603 * gdbthread.h (struct thread_info) <global_num>: Mention
604 $_gthread.
605 * thread.c (thread_num_make_value_helper): New function.
606 (thread_id_make_value): Delete.
607 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
608 New.
609 (thread_funcs): Adjust.
610 (gthread_funcs): New.
611 (_initialize_thread): Register $_gthread variable.
612
c84f6bbf
PA
6132016-01-13 Pedro Alves <palves@redhat.com>
614
615 * NEWS: Mention "info threads -gid".
616 * gdbthread.h (struct thread_info) <global_num>: Mention "info
617 threads -gid".
618 * thread.c (info_threads_command): Handle "-gid".
619 (_initialize_thread): Adjust "info threads" help string to mention
620 -gid.
621
22a02324
PA
6222016-01-13 Pedro Alves <palves@redhat.com>
623
624 * NEWS: Mention InferiorThread.global_num.
625 * python/py-infthread.c (thpy_get_global_num): New function.
626 (thread_object_getset): Register "global_num".
627
5d5658a1
PA
6282016-01-13 Pedro Alves <palves@redhat.com>
629
630 * NEWS: Mention that thread IDs are now per inferior and global
631 thread IDs.
632 * Makefile.in (SFILES): Add tid-parse.c.
633 (COMMON_OBS): Add tid-parse.o.
634 (HFILES_NO_SRCDIR): Add tid-parse.h.
635 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
636 * breakpoint.c (insert_breakpoint_locations)
637 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
638 (print_one_breakpoint_location, set_longjmp_breakpoint)
639 (check_longjmp_breakpoint_for_call_dummy)
640 (set_momentary_breakpoint): Adjust to use global IDs.
641 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
642 (until_break_command, longjmp_bkpt_dtor)
643 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
644 to use global IDs.
645 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
646 ptid_to_global_thread_id.
647 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
648 * gdbthread.h (struct thread_info): Rename field 'num' to
649 'global_num. Add new fields 'per_inf_num' and 'inf'.
650 (thread_id_to_pid): Rename thread_id_to_pid to
651 global_thread_id_to_ptid.
652 (pid_to_thread_id): Rename to ...
653 (ptid_to_global_thread_id): ... this.
654 (valid_thread_id): Rename to ...
655 (valid_global_thread_id): ... this.
656 (find_thread_id): Rename to ...
657 (find_thread_global_id): ... this.
658 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
659 (print_thread_info): Add comment.
660 * tid-parse.h: New file.
661 * tid-parse.c: New file.
662 * infcmd.c (step_command_fsm_prepare)
663 (step_command_fsm_should_stop): Adjust to use the global thread
664 ID.
665 (until_next_command, until_next_command)
666 (finish_command_fsm_should_stop): Adjust to use the global thread
667 ID.
668 (attach_post_wait): Adjust to check the inferior number too.
669 * inferior.h (struct inferior) <highest_thread_num>: New field.
670 * infrun.c (handle_signal_stop)
671 (insert_exception_resume_breakpoint)
672 (insert_exception_resume_from_probe): Adjust to use the global
673 thread ID.
674 * record-btrace.c (record_btrace_open): Use global thread IDs.
675 * remote.c (process_initial_stop_replies): Also consider the
676 inferior number.
677 * target.c (target_pre_inferior): Clear the inferior's highest
678 thread num.
679 * thread.c (clear_thread_inferior_resources): Adjust to use the
680 global thread ID.
681 (new_thread): New inferior parameter. Adjust to use it. Set both
682 the thread's global ID and the thread's per-inferior ID.
683 (add_thread_silent): Adjust.
684 (find_thread_global_id): New.
685 (find_thread_id): Make static. Adjust to rename.
686 (valid_thread_id): Rename to ...
687 (valid_global_thread_id): ... this.
688 (pid_to_thread_id): Rename to ...
689 (ptid_to_global_thread_id): ... this.
690 (thread_id_to_pid): Rename to ...
691 (global_thread_id_to_ptid): ... this. Adjust.
692 (first_thread_of_process): Adjust.
693 (do_captured_list_thread_ids): Adjust to use global thread IDs.
694 (should_print_thread): New function.
695 (print_thread_info): Rename to ...
696 (print_thread_info_1): ... this, and add new show_global_ids
697 parameter. Handle it. Iterate over inferiors.
698 (print_thread_info): Reimplement as wrapper around
699 print_thread_info_1.
700 (show_inferior_qualified_tids): New function.
701 (print_thread_id): Use it.
702 (tp_array_compar): Compare inferior numbers too.
703 (thread_apply_command): Use tid_range_parser.
704 (do_captured_thread_select): Use parse_thread_id.
705 (thread_id_make_value): Adjust.
706 (_initialize_thread): Adjust "info threads" help string.
707 * varobj.c (struct varobj_root): Update comment.
708 (varobj_create): Adjust to use global thread IDs.
709 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
710 * windows-tdep.c (display_tib): No longer accept an argument.
711 * cli/cli-utils.c (get_number_trailer): Make extern.
712 * cli/cli-utils.h (get_number_trailer): Declare.
713 (get_number_const): Adjust documentation.
714 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
715 thread IDs.
716 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
717 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
718 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
719 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
720 Likewise.
721 * python/py-breakpoint.c (bppy_set_thread): Likewise.
722 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
723 * python/py-infthread.c (thpy_get_num): Add comment and return the
724 per-inferior thread ID.
725 (thread_object_getset): Update comment of "num".
726
43792cf0
PA
7272016-01-13 Pedro Alves <palves@redhat.com>
728
729 * breakpoint.c (remove_threaded_breakpoints)
730 (print_one_breakpoint_location): Use print_thread_id.
731 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
732 (btrace_fetch, btrace_clear): Use print_thread_id.
733 * common/print-utils.c (CELLSIZE): Delete.
734 (get_cell): Rename to ...
735 (get_print_cell): ... this and made extern. Adjust call callers.
736 Adjust to use PRINT_CELL_SIZE.
737 * common/print-utils.h (get_print_cell): Declare.
738 (PRINT_CELL_SIZE): New.
739 * gdbthread.h (print_thread_id): Declare.
740 * infcmd.c (signal_command): Use print_thread_id.
741 * inferior.c (print_inferior): Use print_thread_id.
742 * infrun.c (handle_signal_stop)
743 (insert_exception_resume_breakpoint)
744 (insert_exception_resume_from_probe)
745 (print_signal_received_reason): Use print_thread_id.
746 * record-btrace.c (record_btrace_info)
747 (record_btrace_resume_thread, record_btrace_cancel_resume)
748 (record_btrace_step_thread, record_btrace_wait): Use
749 print_thread_id.
750 * thread.c (thread_apply_all_command): Use print_thread_id.
751 (print_thread_id): New function.
752 (thread_apply_command): Use print_thread_id.
753 (thread_command, thread_find_command, do_captured_thread_select):
754 Use print_thread_id.
755
84654457
PA
7562016-01-13 Pedro Alves <palves@redhat.com>
757
758 * NEWS: Mention InferiorThread.inferior.
759 * python/py-infthread.c (thpy_get_inferior): New.
760 (thread_object_getset): Register "inferior".
761
e3940304
PA
7622016-01-13 Pedro Alves <palves@redhat.com>
763
764 * NEWS: Mention $_inferior.
765 * inferior.c (inferior_id_make_value): New.
766 (inferior_funcs): New.
767 (_initialize_inferior): Create $_inferior variable.
768
a911d87a
PA
7692016-01-13 Pedro Alves <palves@redhat.com>
770
771 PR breakpoints/19388
772 * frame.c (get_current_frame): Use validate_registers_access.
773 * gdbthread.h (validate_registers_access): Declare.
774 * infrun.c (validate_siginfo_access): Delete.
775 (siginfo_value_read, siginfo_value_write): Use
776 validate_registers_access.
777 * thread.c (validate_registers_access): New function.
778
82075af2
JS
7792016-01-12 Josh Stone <jistone@redhat.com>
780 Philippe Waroquiers <philippe.waroquiers@skynet.be>
781
782 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
783 syscall_entry and syscall_return stop reasons. Mention GDB
784 support for remote catch syscall.
785 * remote.c (PACKET_QCatchSyscalls): New enum.
786 (remote_set_syscall_catchpoint): New function.
787 (remote_protocol_features): New element for QCatchSyscalls.
788 (remote_parse_stop_reply): Parse syscall_entry/return stops.
789 (init_remote_ops): Install remote_set_syscall_catchpoint.
790 (_initialize_remote): Config QCatchSyscalls.
791 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
792
d18547d8
YQ
7932016-01-12 Yao Qi <yao.qi@linaro.org>
794
795 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
796 to gdb_byte * and pass to linux_fork_to_function.
797
ba4dd7c4
YQ
7982016-01-12 Yao Qi <yao.qi@linaro.org>
799
800 * nat/linux-ptrace.c (linux_fork_to_function): Change type
801 of argument 'function'.
802 (linux_grandchild_function): Change return type to 'int'.
803 Change child_stack's type to 'void *'.
804 (linux_child_function): Likewise.
805
bc504a31
PA
8062016-01-12 Pedro Alves <palves@redhat.com>
807
808 Remove use of the registered trademark symbol throughout.
809
5eddd578
TS
8102016-01-12 Thomas Schwinge <thomas@codesourcery.com>
811
812 * reply_mig_hack.awk: Rewrite one regular expression.
813
b835bb52
MF
8142016-01-11 Mike Frysinger <vapier@gentoo.org>
815
816 * acinclude.m4: Include new warning.m4 file.
817 * configure: Regenerated.
818 * configure.ac: Move all warning logic ...
819 * warning.m4: ... here.
820
2f99e8fc
YQ
8212016-01-08 Yao Qi <yao.qi@linaro.org>
822
823 * extension.c: Include target.h.
824 (set_active_ext_lang): Only call install_gdb_sigint_handler,
825 check_quit_flag, and set_quit_flag if target_terminal_is_ours
826 returns false.
827 (restore_active_ext_lang): Likewise.
828 * target.c (target_terminal_is_ours): New function.
829 * target.h (target_terminal_is_ours): Declare.
830
5dd05630
MR
8312016-01-07 Maciej W. Rozycki <macro@imgtec.com>
832
833 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
834 to `err' in the little-endian leg.
835
f5aa3069
YQ
8362016-01-06 Yao Qi <yao.qi@linaro.org>
837
838 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
839 lines below.
840 (thumb_get_next_pcs_raw): Make it static.
841 (arm_get_next_pcs_raw): Likewise.
842 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
843 declaration.
844 (arm_get_next_pcs_raw): Likewise.
845
bf69ad5a
MF
8462016-01-05 Mike Frysinger <vapier@gentoo.org>
847
848 * version.in: Change cvs to git.
849
66750332
MF
8502016-01-05 Mike Frysinger <vapier@gentoo.org>
851
852 * configure.tgt (score-*-*): Delete gdb_sim assignment.
853
976102cd
PA
8542016-01-05 Pedro Alves <palves@redhat.com>
855
856 PR sim/13418
857 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
858 the target is powerpc*.
fa89c126
PA
859 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
860 of WITH_SIM.
976102cd
PA
861 * configure: Regenerate.
862 * config.in: Regenerate.
863
43368e1d
MM
8642016-01-04 Markus Metzger <markus.t.metzger@intel.com>
865
866 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
867
32273fe6
MF
8682016-01-02 Mike Frysinger <vapier@gentoo.org>
869
870 * configure.tgt (powerpc*-*-*): Delete test call and
871 always assign gdb_sim.
872
618f726f
JB
8732016-01-01 Joel Brobecker <brobecker@adacore.com>
874
875 Update year range in copyright notice of all files.
876
edd88788
JB
8772016-01-01 Joel Brobecker <brobecker@adacore.com>
878
879 * top.c (print_gdb_version): Change copyright year in version
880 message.
881
0f7b3ef4 8822016-01-01 Joel Brobecker <brobecker@adacore.com>
aec47d1d 883
0f7b3ef4 884 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
aec47d1d 885
0f7b3ef4 886For older changes see ChangeLog-2015.
c906108c
SS
887\f
888Local Variables:
889mode: change-log
890left-margin: 8
891fill-column: 74
892version-control: never
57da7796 893coding: utf-8
c906108c 894End: