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