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