1 2013-07-01 Tom Tromey <tromey@redhat.com>
3 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
6 2013-07-01 Pedro Alves <palves@redhat.com>
8 * defs.h: Include "pathmax.h".
9 * utils.c: Don't include sys/param.h.
10 (gdb_realpath): Remove code that checks for MAXPATHLEN.
11 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
12 instead of MAXPATHLEN.
13 * solib-sunos.c: Don't include sys/param.h.
14 * xcoffread.c: Don't include sys/param.h.
15 * bsd-kvm.c: Don't include sys/param.h.
16 * darwin-nat.c: Don't include sys/param.h.
17 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
18 * darwin-nat-info.c: Don't include sys/param.h.
19 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
21 * i386obsd-nat.c: Don't include sys/param.h.
22 * inf-child.c: Don't include sys/param.h.
23 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
24 * linux-fork.c: Don't include sys/param.h.
25 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
26 * linux-nat.c: Don't include sys/param.h.
27 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
28 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
29 * m68klinux-nat.c: Don't include sys/param.h.
30 * nbsd-nat.c: Don't include sys/param.h.
31 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
32 * ppc-linux-nat.c: Don't include sys/param.h.
33 * rs6000-nat.c: Don't include sys/param.h.
34 * spu-linux-nat.c. Don't include sys/param.h.
35 * windows-nat.c: Don't include sys/param.h.
36 * xtensa-linux-nat.c: Don't include sys/param.h.
37 * config/i386/nm-fbsd.h: Don't include sys/param.h.
39 2013-07-01 Pedro Alves <palves@redhat.com>
41 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
42 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
43 * gnulib/aclocal.m4: Regenerate.
44 * gnulib/config.in: Regenerate.
45 * gnulib/configure: Regenerate.
46 * gnulib/import/pathmax.h: New file.
47 * gnulib/import/Makefile.am: Regenerate.
48 * gnulib/import/Makefile.in: Regenerate.
49 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
50 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
51 * gnulib/import/m4/pathmax.m4: New file.
53 2013-07-01 Pedro Alves <palves@redhat.com>
55 * configure.ac (GDBINIT): Define, depending on host.
56 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
57 * top.c (PATH_MAX): Delete fallback definition.
58 (GDBINIT_FILENAME): Delete.
59 (gdbinit): Reimplement as const char array set to the GDBINIT
61 * top.h (gdbinit): Make const.
62 * configure, config.in: Regenerate.
64 2013-07-01 Pedro Alves <palves@redhat.com>
66 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
67 * cli/cli-cmds.h (source_script): Likewise.
68 * exceptions.c (catch_command_errors_const): New function.
69 * exceptions.h (catch_command_errors_const): Declare.
70 * main.c (get_init_files): Make parameters const, and adjust.
71 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
72 'local_gdbinit' locals const. Adjust to use
73 catch_command_errors_const.
74 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
75 'local_gdbinit' locals const.
77 2013-07-01 Pedro Alves <palves@redhat.com>
79 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
80 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
81 * tracepoint.c: Don't check HAVE_UNISTD_H before including
84 2013-07-01 Pedro Alves <palves@redhat.com>
86 Import the "unistd" gnulib module.
87 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
88 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
89 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
90 import/m4/unistd_h.m4.
91 * gnulib/aclocal.m4: Renenerate.
92 * gnulib/config.in: Renenerate.
93 * gnulib/configure: Renenerate.
94 * gnulib/import/Makefile.am: Renenerate.
95 * gnulib/import/Makefile.in: Renenerate.
96 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
97 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
98 * gnulib/import/m4/off_t.m4: New file.
99 * gnulib/import/m4/ssize_t.m4: New file.
100 * gnulib/import/m4/sys_types_h.m4: New file.
101 * gnulib/import/m4/unistd_h.m4: New file.
102 * gnulib/import/sys_types.in.h: New file.
103 * gnulib/import/unistd.c: New file.
104 * gnulib/import/unistd.in.h: New file.
106 2013-07-01 Pedro Alves <palves@redhat.com>
108 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
109 defined instead of checking HAVE_UNISTD_H.
111 2013-07-01 Pedro Alves <palves@redhat.com>
113 Reimport gnulib from scratch.
114 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
115 import/m4/onceonly.m4.
116 * gnulib/aclocal.m4: Renegerate.
117 * gnulib/config.in: Renegerate.
118 * gnulib/configure: Renegerate.
119 * gnulib/import/Makefile.in: Renegerate.
120 * gnulib/import/extra/update-copyright: Renegerate.
121 * gnulib/import/m4/onceonly.m4: Delete.
123 2013-07-01 Pedro Alves <palves@redhat.com>
125 * tui/tui-regs.c (pagination_enabled): Delete declaration.
127 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
130 * remote.c (async_remote_interrupt_twice): Make it static.
131 * remote.h (async_remote_interrupt_twice): Remove the declaration.
133 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
135 * ia64-linux-tdep.c: Include <ctype.h>.
136 (ia64_linux_stap_is_single_operand): New function.
137 (ia64_linux_init_abi): Initialize SystemTap related attributes.
139 2013-06-28 Tom Tromey <tromey@redhat.com>
141 * Makefile.in (version.c): Use version.in, not
143 * common/create-version.sh: Likewise.
144 * common/version.in: Move...
145 * version.in: ...here.
147 2013-06-28 Pedro Alves <palves@redhat.com>
149 * infrun.c (set_observer_mode): Don't declare pagination_enabled
151 * utils.h (pagination_enabled): Declare.
153 2013-06-28 Pedro Alves <palves@redhat.com>
155 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
156 Move higher up in file.
158 2013-06-28 Tom Tromey <tromey@redhat.com>
160 * tracepoint.c (deprecated_readline_begin_hook)
161 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
164 2013-06-28 Pedro Alves <palves@redhat.com>
167 * tui/tui-regs.c (tui_get_register): Fetch value contents before
168 checking if they're available.
169 * value.c (value_available_contents_eq): Change comment.
170 * value.h (value_available_contents_eq): Expand comment.
172 2013-06-27 Tom Tromey <tromey@redhat.com>
174 * target.c (find_run_target): Remove.
175 * target.h (find_run_target): Remove.
177 2013-06-27 Tom Tromey <tromey@redhat.com>
179 * corelow.c (core_gdbarch): Now static.
181 2013-06-27 Tom Tromey <tromey@redhat.com>
183 * target.c (target_struct_index): Remove.
185 2013-06-27 Pedro Alves <palves@redhat.com>
187 * infrun.c: Remove comment describing the 'stepping over runtime
188 loader dynamic symbol resolution code' mechanism; moved to
191 2013-06-27 Pedro Alves <palves@redhat.com>
193 * exceptions.c (catch_command_errors): Remove spurious space.
194 * exceptions.h (catch_command_errors): Second parameter is "arg",
197 2013-06-27 Yao Qi <yao@codesourcery.com>
199 * common/create-version.sh: Update comments. Handle the case
200 that TARGET_ALIAS is empty.
202 2013-06-26 Pedro Alves <palves@redhat.com>
204 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
207 2013-06-26 Pedro Alves <palves@redhat.com>
209 * infrun.c: Update comments on stepping over runtime loader
210 dynamic symbol resolution code.
212 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
214 * ax-gdb.h (union exp_element): Forward declare.
215 * parser-defs.h: Include expression.h.
217 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
219 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
221 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
223 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
225 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
227 Fix trace-status to output proper start-time and stop-time.
228 * tracepoint.c (trace_status_command): Fix type of printf arg to
229 prevent improper type conversion.
230 (trace_status_mi): Likewise.
232 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
234 * mips-tdep.c (mips_next_pc): Fix a typo.
236 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
238 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
240 2013-06-26 Pedro Alves <pedro@codesourcery.com>
241 Yao Qi <yao@codesourcery.com>
243 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
244 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
245 * mi/mi-main.c (print_variable_or_computed): New function.
246 (mi_cmd_trace_frame_collected): New function.
247 * tracepoint.c (find_trace_state_variable_by_number): New.
248 (struct traceframe_info): Move to tracepoint.h
249 (struct collection_list): Likewise.
250 (do_collect_symbol): Include locals and arguments in the
251 collected variables list.
252 (clear_collection_list): Clear wholly collected variables list
253 and computed variables list.
254 (append_exp): New function.
255 (encode_actions_1): Include variables in the wholly
256 collected variables list. Include memory ranges and
257 full-fledged expressions in the computed expressions list.
258 (encode_actions): Move some code to ...
259 Return the cleanup chain.
260 (encode_actions_rsp): ... here. New function.
261 (get_traceframe_location, get_traceframe_info): Remove static.
262 * tracepoint.h (struct memrange): Moved from tracepoint.c.
263 (struct collection_list): Moved from tracepoint.c. Add two
264 new fields 'wholly_collected' and 'computed'.
265 (find_trace_state_variable_by_number): Declare.
266 (encode_actions): Adjust declaration.
267 (encode_actions_rsp): Declare.
268 (get_traceframe_info, get_traceframe_location): Declare.
270 * NEWS: Mention new MI command -trace-frame-collected.
272 2013-06-26 Pedro Alves <pedro@codesourcery.com>
273 Yao Qi <yao@codesourcery.com>
275 * ctf.c (ctf_traceframe_info): Push trace state variables
276 present in the trace data into the traceframe info object.
277 * breakpoint.c (DEF_VEC_I): Remove.
278 * common/filestuff.c (DEF_VEC_I): Likewise.
279 * dwarf2loc.c (DEF_VEC_I): Likewise.
280 * mi/mi-main.c (DEF_VEC_I): Likewise.
281 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
282 * features/traceframe-info.dtd: Add tvar element and its
284 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
285 (build_traceframe_info): Push trace state variables present in
286 the trace data into the traceframe info object.
287 (traceframe_info_start_tvar): New function.
288 (tvar_attributes): New.
289 (traceframe_info_children): Add "tvar" element.
290 * tracepoint.h (struct traceframe_info) <tvars>: New field.
292 * NEWS: Mention the change in GDB and GDBserver.
294 2013-06-26 Pedro Alves <pedro@codesourcery.com>
295 Yao Qi <yao@codesourcery.com>
297 * tracepoint.c (trace_dump_command): Move code to ...
298 (get_traceframe_location): ... here. New.
300 2013-06-26 Pedro Alves <pedro@codesourcery.com>
301 Yao Qi <yao@codesourcery.com>
303 * tracepoint.c (trace_dump_command): GDB emits an error
304 instead of a warning when a traceframe is not selected.
306 2013-06-26 Pedro Alves <pedro@codesourcery.com>
307 Yao Qi <yao@codesourcery.com>
309 * tracepoint.c (tracepoint_list, stepping_list): Remove.
310 (clear_collection_list): Free fields 'aexpre_list' and 'list'
312 (do_clear_collection_list, init_collection_list): New.
313 (encode_actions): Add local variables 'tracepoint_list' and
314 'stepping_list'. Call init_collection_list and make cleanup
315 which calls do_clear_collection_list. Don't call
316 clear_collection_list.
317 (_initialize_tracepoint): Delete references to
318 'tracepoint_list' and 'stepping_list'.
320 2013-06-25 Tom Tromey <tromey@redhat.com>
322 * common/create-version.sh (date): Use "$", not "$$" in sed
325 2013-06-25 Kevin Buettner <kevinb@redhat.com>
327 * NEWS (New targets): Add entry for TI MSP430.
329 2013-06-25 Yao Qi <yao@codesourcery.com>
331 * remote.c (remote_start_remote): Move code to upload tsv
334 2013-06-25 Yao Qi <yao@codesourcery.com>
335 Hui Zhu <hui@codesourcery.com>
336 Pedro Alves <palves@redhat.com>
340 * breakpoint.c (bpstat_stop_status): Call
341 b->ops->after_condition_true.
342 (update_dprintf_command_list): Don't append "continue" command
343 to the command list of dprintf breakpoint.
344 (base_breakpoint_after_condition_true): New function.
345 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
346 (dprintf_after_condition_true): New function.
347 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
348 * breakpoint.h (breakpoint_ops): Add after_condition_true.
350 2013-06-24 Kevin Buettner <kevinb@redhat.com>
352 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
353 (ALLDEPFILES): Add msp430-tdep.c.
354 * configure.tgt (msp430*-*-elf): New target.
355 * msp430-tdep.c: New file.
357 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
359 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
360 microMIPS synthetic symbols.
362 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
364 * objfiles.h (pc_in_section): New prototype.
365 (in_plt_section): Remove name argument, replace prototype with
366 static inline function.
367 * mips-tdep.h: Include "objfiles.h".
368 (in_mips_stubs_section): New function.
369 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
370 in_solib_call_trampoline member.
371 (hppa_in_solib_call_trampoline): Remove name argument.
372 * objfiles.c (pc_in_section): New function.
373 (in_plt_section): Remove function.
374 * mips-linux-tdep.c: Include "objfiles.h".
375 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
376 name argument. Return 1 rather than the low 16-bit halfword of
377 any instruction examined.
378 (mips_linux_in_dynsym_resolve_code): Update
379 mips_linux_in_dynsym_stub call accordingly.
380 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
381 rather than an equivalent hand-coded sequence.
382 * hppa-hpux-tdep.c (in_opd_section): Remove function.
383 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
384 (hppa64_hpux_in_solib_call_trampoline): Likewise.
385 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
387 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
388 on call to tdep->in_solib_call_trampoline.
389 (hppa_in_solib_call_trampoline): Remove name argument, update
390 according to in_plt_section change.
391 (hppa_skip_trampoline_code): Update according to in_plt_section
393 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
394 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
396 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
397 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
398 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
399 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
400 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
401 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
402 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
403 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
404 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
405 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
406 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
407 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
408 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
410 2013-06-24 Joel Brobecker <brobecker@adacore.com>
412 * common/create-version.sh: Fix expansion of $host_alias
413 and $target_alias in generation of HOST_NAME and TARGET_NAME
416 2013-06-24 Tom Tromey <tromey@redhat.com>
418 * common/create-version.sh: New file.
419 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
421 (HFILES_NO_SRCDIR): Use common/version.h.
422 * version.in: Move to ...
423 * common/version.in: ... here. Replace date with "DATE".
424 * version.h: Move to ...
425 * common/version.h: ... here.
427 2013-06-21 Joel Brobecker <brobecker@adacore.com>
429 * gdb/gnulib/Makefile.in: Update date in copyright header.
430 * gdb/gnulib/configure.ac: Ditto.
431 * gdb/gnulib/update-gnulib.sh: Ditto.
433 2013-06-21 Joel Brobecker <brobecker@adacore.com>
435 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
438 2013-06-21 Will Newton <will.newton@linaro.org>
440 * doublest.c (ldfrexp): Remove function.
441 (convert_doublest_to_floatformat): Call frexpl instead of
444 2013-06-21 Will Newton <will.newton@linaro.org>
446 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
447 * gnulib/aclocal.m4: Regenerate.
448 * gnulib/config.in: Regenerate.
449 * gnulib/configure: Regenerate.
450 * gnulib/import/Makefile.am: Update.
451 * gnulib/import/Makefile.in: Update.
452 * gnulib/import/m4/gnulib-cache.m4: Update.
453 * gnulib/import/m4/gnulib-comp.m4: Update.
454 * gnulib/import/float+.h: Import.
455 * gnulib/import/float.c: Import.
456 * gnulib/import/float.in.h: Import.
457 * gnulib/import/fpucw.h: Import.
458 * gnulib/import/frexp.c: Import.
459 * gnulib/import/frexpl.c: Import.
460 * gnulib/import/isnan.c: Import.
461 * gnulib/import/isnand-nolibm.h: Import.
462 * gnulib/import/isnand.c: Import.
463 * gnulib/import/isnanl-nolibm.h: Import.
464 * gnulib/import/isnanl.c: Import.
465 * gnulib/import/itold.c: Import.
466 * gnulib/import/m4/exponentd.m4: Import.
467 * gnulib/import/m4/exponentl.m4: Import.
468 * gnulib/import/m4/float_h.m4: Import.
469 * gnulib/import/m4/fpieee.m4: Import.
470 * gnulib/import/m4/frexp.m4: Import.
471 * gnulib/import/m4/frexpl.m4: Import.
472 * gnulib/import/m4/isnand.m4: Import.
473 * gnulib/import/m4/isnanl.m4: Import.
474 * gnulib/import/m4/math_h.m4: Import.
475 * gnulib/import/math.c: Import.
476 * gnulib/import/math.in.h: Import.
478 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
480 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
481 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
482 signature_INTEL_edx comparisons.
484 2013-06-20 Doug Evans <dje@google.com>
487 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
489 (open_dwp_file): If we can't find the dwp file, search the basename
490 in debug-file-directory.
492 * dwarf2read.c (struct dwp_file): Fix comment.
493 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
495 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
498 2013-06-20 Yao Qi <yao@codesourcery.com>
500 * breakpoint.c (create_breakpoint): Fix code indentation.
502 2013-06-20 Yao Qi <yao@codesourcery.com>
504 * breakpoint.c (create_breakpoints_sal_default): Remove
505 parameter 'lsal'. Update declaration.
506 (bkpt_create_breakpoints_sal): Caller update.
507 (tracepoint_create_breakpoints_sal): Likewise.
509 2013-06-20 Pedro Alves <pedro@codesourcery.com>
510 Yao Qi <yao@codesourcery.com>
512 * NEWS: Mention the new option '--skip-unavailable' of command
513 -data-list-register-values.
514 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
515 --skip-unavailable option. Adjust to use output_register.
516 (output_register): Add new 'skip_unavailable' parameter.
519 2013-06-19 Mike Frysinger <vapier@gentoo.org>
521 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
522 common/i386-gcc-cpuid.h.
523 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
524 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
525 Copy the latest version from upstream gcc.
526 * common/linux-btrace.c: Include i386-cpuid.h.
527 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
529 (cpu_supports_btrace): Likewise.
530 * go32-nat.c: Include i386-cpuid.h.
531 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
533 2013-06-19 Doug Evans <dje@google.com>
535 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
536 (get_section_index): Ditto.
538 2013-06-19 Tom Tromey <tromey@redhat.com>
540 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
543 2013-06-18 Doug Evans <dje@google.com>
545 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
547 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
548 Move test of cu_index closer to use. Print complaint if cu_index
551 2013-06-18 Joel Brobecker <brobecker@adacore.com>
553 * machoread.c (oso_vector): Delete this global.
554 (macho_register_oso): Add new parameter "oso_vector_ptr".
555 Use it instead of the "oso_vector" global.
556 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
557 (macho_symfile_read): Use a local oso_vector, to be free'ed
558 at the end of this function, in place of the old "oso_vector"
559 global. Update various function calls accordingly. Use one
560 single cleanup chain for the entire function.
562 2013-06-18 Joel Brobecker <brobecker@adacore.com>
564 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
565 DWARF2_PER_OBJFILE by uses of DATA instead.
567 2013-06-18 Tom Tromey <tromey@redhat.com>
569 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
571 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
572 Special case signals other than GDB_SIGNAL_TRAP.
573 (explains_signal_watchpoint): New function.
574 (base_breakpoint_explains_signal): Add 'sig' argument.
575 (initialize_breakpoint_ops): Set 'explains_signal' method for
577 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
579 (bpstat_explains_signal): Likewise.
580 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
582 2013-06-18 Tom Tromey <tromey@redhat.com>
584 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
586 2013-06-18 Tom Tromey <tromey@redhat.com>
588 * python/python.c (finish_python_initialization): Decref
589 'pythondir' on failure path as well.
591 2013-06-18 Tom Tromey <tromey@redhat.com>
594 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
595 after taking bits_to_skip into account. Sign extend byte_offset.
596 * utils.h (gdb_sign_extend): Declare.
597 * utils.c (gdb_sign_extend): New function.
599 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
601 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
603 2013-06-17 Pierre Muller <muller@sourceware.org>
605 * corelow.c (core_open): Print GDB signal name instead of target
608 2013-06-17 Mike Frysinger <vapier@gentoo.org>
610 * .gitignore: Add /gcore.
612 2013-06-13 Doug Evans <dje@google.com>
614 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
615 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
617 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
619 * stack.c (backtrace_command_1): Fix indentation.
621 2013-06-11 Joel Brobecker <brobecker@adacore.com>
623 * window-nat.c (thread_rec): Add missing empty line after
624 local variable declaration.
626 2013-06-11 Joel Brobecker <brobecker@adacore.com>
628 * windows-nat.c (thread_rec): Revert format used to print
629 error code returned by SuspendThread from %d back to %u.
631 2013-06-11 Joel Brobecker <brobecker@adacore.com>
633 * windows-nat.c (windows_continue): Add "0x" prefix for thread
635 (get_windows_debug_event): Likewise, for all debug traces.
637 2013-06-11 Joel Brobecker <brobecker@adacore.com>
639 * window-nat.c (thread_rec): Add thread ID in SuspendThread
642 2013-06-08 Pedro Alves <pedro@codesourcery.com>
643 Yao Qi <yao@codesourcery.com>
645 * mi/mi-main.c (get_register): Remove declaration.
646 (output_register): Declare.
647 (mi_cmd_data_list_register_values): Remove local variable
648 'tuple_cleanup'. Move some code into output_register.
649 (get_register): Renamed to ...
650 (output_register): ... this. Output the register's
651 "number" ui_out tuple here.
653 2013-06-07 Pedro Alves <palves@redhat.com>
655 * darwin-nat.c: Fix formating in copyright header.
656 * darwin-nat.h: Likewise.
657 * gnu-nat.c: Likewise.
658 * machoread.c: Likewise.
660 2013-06-07 Pedro Alves <palves@redhat.com>
663 * regformats/regdat.sh: Output #include tdesc.h. Make globals
664 static. Output a global target description pointer.
665 (init_registers_${name}): Adjust to initialize a
666 target description structure.
668 2013-06-07 Will Newton <will.newton@linaro.org>
670 * printcmd.c (build_address_symbolic): Call
671 gdbarch_addr_bits_remove for text minimal symbols.
673 2013-06-07 Will Newton <will.newton@linaro.org>
675 * MAINTAINERS: Add myself to Write After Approval.
677 2013-06-07 Yao Qi <yao@codesourcery.com>
679 * tracepoint.c (start_tracing): Move code to ...
680 (trace_reset_local_state): ... here. New.
681 (disconnect_tracing): Don't call set_current_traceframe,
682 set_tracepoint_num, and set_traceframe_context. Call
683 trace_reset_local_state instead.
684 (tfile_close): Call trace_reset_local_state.
685 * ctf.c (ctf_close): Likewise.
686 * remote.c (remote_close): Likewise.
687 * tracepoint.h (trace_reset_local_state): Declare.
689 2013-06-06 Doug Evans <dje@google.com>
691 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
694 2013-06-05 Doug Evans <dje@google.com>
695 Keith Seitz <keiths@redhat.com>
698 * cp-namespace.c (find_symbol_in_baseclass): Call
699 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
700 Check result of call to lookup_symbol_static.
701 Call lookup_static_symbol_aux unconditionally.
702 Call check_typedef on base types before accessing them.
703 (cp_lookup_nested_symbol): Fix comment.
705 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
707 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
708 minimal symbols pointing to function descriptors.
710 2013-06-05 Tom Tromey <tromey@redhat.com>
712 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
714 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
715 Pedro Alves <palves@redhat.com>
717 * remote.c (remote_wait_as): Restore signal handler before returning
718 when GDB gets a notification.
720 2013-06-04 Gary Benson <gbenson@redhat.com>
723 * breakpoint.h (handle_solib_event): Moved function declaration
725 * breakpoint.c (handle_solib_event): Moved function to solib.c.
726 (bpstat_stop_status): Pass new argument to handle_solib_event.
727 * solib.h (update_solib_breakpoints): New function declaration.
728 (handle_solib_event): Moved function declaration from
730 * solib.c (update_solib_breakpoints): New function.
731 (handle_solib_event): Moved function from breakpoint.c.
732 Updated to call solib_ops->handle_event if not NULL.
733 * solist.h (target_so_ops): New fields "update_breakpoints" and
735 * infrun.c (set_stop_on_solib_events): New function.
736 (_initialize_infrun): Use the above for "set
737 stop-on-solib-events".
738 (handle_inferior_event): Pass new argument to handle_solib_event.
739 * solib-svr4.c (probe.h): New include.
740 (svr4_free_library_list): New forward declaration.
741 (probe_action): New enum.
742 (probe_info): New struct.
743 (probe_info): New static variable.
744 (NUM_PROBES): New definition.
745 (svr4_info): New fields "using_xfer", "probes_table" and
747 (free_probes_table): New function.
748 (free_solib_list): New function.
749 (svr4_pspace_data_cleanup): Free probes table and solib list.
750 (svr4_copy_library_list): New function.
751 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
752 (svr4_read_so_list): New parameter "prev_lm".
753 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
754 (svr4_current_sos): New function.
755 (probe_and_action): New struct.
756 (hash_probe_and_action): New function.
757 (equal_probe_and_action): Likewise.
758 (register_solib_event_probe): Likewise.
759 (solib_event_probe_at): Likewise.
760 (solib_event_probe_action): Likewise.
761 (solist_update_full): Likewise.
762 (solist_update_incremental): Likewise.
763 (disable_probes_interface_cleanup): Likewise.
764 (svr4_handle_solib_event): Likewise.
765 (svr4_update_solib_event_breakpoint): Likewise.
766 (svr4_update_solib_event_breakpoints): Likewise.
767 (svr4_create_solib_event_breakpoints): Likewise.
768 (enable_break): Free probes table before creating breakpoints.
769 Use svr4_create_solib_event_breakpoints to create breakpoints.
770 (svr4_solib_create_inferior_hook): Free the solib list.
771 (_initialize_svr4_solib): Initialise
772 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
774 2013-06-04 Gary Benson <gbenson@redhat.com>
776 * target.h (target_ops): New field
777 "to_augmented_libraries_svr4_read".
778 (target_augmented_libraries_svr4_read): New macro.
779 * target.c (update_current_target): Handle
780 to_augmented_libraries_svr4_read.
781 * remote.c (remote_state): New field
782 "augmented_libraries_svr4_read".
783 (remote_augmented_libraries_svr4_read_feature): New function.
784 (remote_protocol_features): Add entry for
785 "augmented-libraries-svr4-read".
786 (remote_augmented_libraries_svr4_read): New function.
787 (init_remote_ops): Initialize
788 remote_ops.to_augmented_libraries_svr4_read.
790 2013-06-04 Gary Benson <gbenson@redhat.com>
794 2013-06-04 Gary Benson <gbenson@redhat.com>
796 * objfiles.h (inhibit_section_map_updates): New function
798 (resume_section_map_updates): Likewise.
799 (resume_section_map_updates_cleanup): Likewise.
800 * objfiles.c (objfile_pspace_info): Removed field
801 "objfiles_changed_p". New fields "new_objfiles_available",
802 "section_map_dirty" and "inhibit_updates".
803 (allocate_objfile): Set new_objfiles_available.
804 (free_objfile): Set section_map_dirty.
805 (objfile_relocate1): Likewise.
806 (in_plt_section): Likewise.
807 (find_pc_section): Update the conditions under which the
808 section map will be updated.
809 (inhibit_section_map_updates): New function.
810 (resume_section_map_updates): Likewise.
811 (resume_section_map_updates_cleanup): Likewise.
813 2013-06-04 Gary Benson <gbenson@redhat.com>
815 * probe.h (get_probe_argument_count): New declaration.
816 (evaluate_probe_argument): Likewise.
817 * probe.c (get_probe_argument_count): New function.
818 (evaluate_probe_argument): Likewise.
819 (probe_safe_evaluate_at_pc): Use the above new functions.
821 2013-06-04 Alan Modra <amodra@gmail.com>
823 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
824 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
825 (ppc_insns_match_pattern): Add frame param. Avoid multiple
826 target mem reads on optional insns.
827 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
828 ppc_insns_match_pattern calls.
829 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
830 Add match for power7 thread safety insns, and new order of
831 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
832 invocation in comment, and update rest of comment.
833 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
834 PPC64_STANDARD_LINKAGE3_LEN): Delete.
835 (ppc64_standard_linkage2_target): Update insn offsets.
836 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
837 stubs first. Update calls.
839 2013-06-04 Yao Qi <yao@codesourcery.com>
841 * solib.c (solib_find): Don't need dir separator if path has
844 2013-06-03 Joel Brobecker <brobecker@adacore.com>
846 Revert (indirectly causes a SIGSEGV):
847 * machoread.c (macho_symfile_read): Assign first cleanup to
850 2013-06-03 Yao Qi <yao@codesourcery.com>
852 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
853 mi-parse.c. Make them static.
854 (mi_all_values): Likewise.
855 (mi_parse_values_option): Move to mi-parse.c. Rename it to
856 mi_parse_print_values. Make it external.
857 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
858 Remove the declarations.
859 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
860 * mi/mi-parse.h (mi_parse_print_values): Declare.
861 * mi/mi-cmd-stack.c: Include mi-parse.h.
862 (parse_print_values): Remove
863 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
864 of parse_print_values.
865 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
867 2013-05-31 Pedro Alves <pedro@codesourcery.com>
868 Yao Qi <yao@codesourcery.com>
870 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
871 (encode_actions): Move code to ...
872 (all_tracepoint_actions_and_cleanup): ... here. New.
873 (trace_dump_command): Likewise.
875 2013-05-30 Tom Tromey <tromey@redhat.com>
877 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
879 2013-05-30 Tom Tromey <tromey@redhat.com>
881 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
882 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
883 'old_chain' argument. Add 'parser_result' argument.
884 (gdb_xml_create_parser_and_cleanup): Remove old version.
885 (gdb_xml_parse_quick): Update.
886 (xml_process_xincludes): Update.
887 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
890 2013-05-30 Tom Tromey <tromey@redhat.com>
892 * probe.c (collect_probes): Check arguments for NULL before
893 calling compile_rx_or_error.
894 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
897 2013-05-30 Tom Tromey <tromey@redhat.com>
899 * infrun.c (adjust_pc_after_break): Introduce an outer null
902 2013-05-30 Tom Tromey <tromey@redhat.com>
904 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
906 2013-05-30 Tom Tromey <tromey@redhat.com>
908 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
909 for 'old_chain'. Do not check 'head' before processing
912 2013-05-30 Tom Tromey <tromey@redhat.com>
914 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
917 2013-05-30 Tom Tromey <tromey@redhat.com>
919 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
920 inner scope. Unconditionally call do_cleanups.
922 2013-05-30 Tom Tromey <tromey@redhat.com>
924 * source.c (find_and_open_source): Call do_cleanups.
926 2013-05-30 Tom Tromey <tromey@redhat.com>
928 * linux-thread-db.c (thread_db_load_search): Unconditionally
931 2013-05-30 Tom Tromey <tromey@redhat.com>
933 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
934 for 'cleanup'; instead use a later one.
936 2013-05-30 Tom Tromey <tromey@redhat.com>
938 * python/py-breakpoint.c (bppy_get_commands): Use
939 explicit, unconditional return.
940 * python/py-frame.c (frapy_read_var): Likewise.
941 * python/python.c (gdbpy_decode_line): Likewise.
943 2013-05-30 Tom Tromey <tromey@redhat.com>
945 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
946 do_cleanups on all return paths.
948 2013-05-30 Tom Tromey <tromey@redhat.com>
950 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
952 2013-05-30 Tom Tromey <tromey@redhat.com>
954 * stabsread.c (read_struct_type): Call do_cleanups along
957 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
959 * mips-linux-tdep.c: Adjust formatting throughout.
961 2013-05-30 Tom Tromey <tromey@redhat.com>
963 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
964 along all return paths.
966 2013-05-30 Tom Tromey <tromey@redhat.com>
968 * symfile.c (find_separate_debug_file): Call do_cleanups
969 along all return paths.
971 2013-05-30 Tom Tromey <tromey@redhat.com>
973 * symtab.c (search_symbols): Introduce a null cleanup for
976 2013-05-30 Tom Tromey <tromey@redhat.com>
978 * python/py-value.c (valpy_binop): Call do_cleanups before
981 2013-05-30 Tom Tromey <tromey@redhat.com>
983 * python/py-prettyprint.c (print_children): Remove extra
986 2013-05-30 Tom Tromey <tromey@redhat.com>
988 * python/py-frame.c (frapy_read_var): Call do_cleanups along
991 2013-05-30 Tom Tromey <tromey@redhat.com>
993 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
994 along all return paths.
996 2013-05-30 Tom Tromey <tromey@redhat.com>
998 * cli/cli-logging.c (set_logging_redirect): Unconditionally
1001 2013-05-30 Tom Tromey <tromey@redhat.com>
1003 * varobj.c (c_value_of_root): Call do_cleanups along all
1006 2013-05-30 Tom Tromey <tromey@redhat.com>
1008 * tracepoint.c (trace_dump_command): Unconditionally call
1011 2013-05-30 Tom Tromey <tromey@redhat.com>
1013 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
1014 do_cleanups earlier.
1016 2013-05-30 Tom Tromey <tromey@redhat.com>
1018 * machoread.c (macho_symfile_read): Assign first cleanup to
1021 2013-05-30 Tom Tromey <tromey@redhat.com>
1023 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
1025 2013-05-30 Tom Tromey <tromey@redhat.com>
1027 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
1029 2013-05-30 Tom Tromey <tromey@redhat.com>
1031 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
1032 call discard_cleanups.
1033 (inf_ptrace_attach): Likewise.
1035 2013-05-30 Tom Tromey <tromey@redhat.com>
1037 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
1039 (mips_initialize): Likewise.
1040 (common_open): Call do_cleanups.
1042 2013-05-30 Tom Tromey <tromey@redhat.com>
1044 * utils.c (internal_vproblem): Call do_cleanups.
1046 2013-05-30 Tom Tromey <tromey@redhat.com>
1048 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
1050 2013-05-30 Tom Tromey <tromey@redhat.com>
1052 * cli/cli-script.c (setup_user_args): Don't return after error.
1054 2013-05-30 Tom Tromey <tromey@redhat.com>
1056 * somread.c (som_symtab_read): Call do_cleanups.
1058 2013-05-30 Tom Tromey <tromey@redhat.com>
1060 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
1062 2013-05-30 Tom Tromey <tromey@redhat.com>
1064 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
1065 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
1066 * interps.c (interpreter_exec_cmd): Call do_cleanups.
1067 * source.c (show_substitute_path_command): Call do_cleanups.
1068 (unset_substitute_path_command, set_substitute_path_command):
1070 * symfile.c (load_command): Call do_cleanups.
1072 2013-05-30 Tom Tromey <tromey@redhat.com>
1074 * contrib/cleanup_check.py: New file.
1075 * contrib/gcc-with-excheck: Add option parsing.
1077 2013-05-30 Joel Brobecker <brobecker@adacore.com>
1079 * windows-nat.c (windows_delete_thread): Add missing space
1082 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
1084 * inferior.c (top level): Include tilde.h.
1085 (add_inferior_command): Call tilde_expand on the value of 'exec'
1088 2013-05-30 Pedro Alves <pedro@codesourcery.com>
1089 Yao Qi <yao@codesourcery.com>
1091 * tracepoint.c (encode_actions_1): Remove parameter 't'.
1093 (encode_actions): Likewise.
1094 * remote.c (remote_download_tracepoint): Caller update.
1095 * tracepoint.h (encode_actions): Update declaration.
1097 2013-05-30 Pedro Alves <palves@redhat.com>
1099 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
1102 2013-05-30 Yao Qi <yao@codesourcery.com>
1104 * remote.c (remote_check_symbols): Remove unused parameter
1107 (remote_start_remote, remote_new_objfile): Caller update.
1109 2013-05-30 Yao Qi <yao@codesourcery.com>
1111 * mi/mi-cmds.c (mi_cmds): Define MI command
1112 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
1115 2013-05-29 Pedro Alves <palves@redhat.com>
1117 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
1118 (remote_insert_watchpoint, remote_remove_watchpoint)
1119 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
1120 (remote_verify_memory, compare_sections_command)
1121 (remote_search_memory): Set the general process/thread on the
1124 2013-05-29 Pedro Alves <palves@redhat.com>
1126 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
1127 (_initialize_aarch64_tdep): Don't call
1128 initialize_tdesc_aarch64_without_fpu.
1129 * features/Makefile (WHICH): Remove reference to
1130 aarch64-without-fpu.
1131 * features/aarch64-without-fpu.c: Delete file.
1132 * regformats/aarch64-without-fpu.dat: Delete file.
1134 2013-05-28 Yao Qi <yao@codesourcery.com>
1136 * tracepoint.c (stringify_collection_list): Remove parameter
1138 (encode_actions): Caller update. Remove local variables.
1140 2013-05-24 Yao Qi <yao@codesourcery.com>
1142 * tracepoint.c (TFILE_PID): Remove.
1143 (tfile_open): Don't add thread and inferior.
1144 (tfile_close): Don't set 'inferior_ptid'. Don't call
1145 exit_inferior_silent.
1146 (tfile_thread_alive): Remove.
1147 (init_tfile_ops): Don't set field 'to_thread_alive' of
1150 2013-05-23 Doug Evans <dje@google.com>
1152 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
1154 2013-05-23 Pedro Alves <palves@redhat.com>
1156 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
1157 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
1158 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
1159 Only define if HAVE_SOCKETS is defined.
1160 * configure.ac: Check for sys/socket.h.
1161 * config.in, configure: Regenerate.
1163 2013-05-23 Pedro Alves <palves@redhat.com>
1165 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
1166 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
1167 printing uint32_t variables.
1169 2013-05-23 Pedro Alves <palves@redhat.com>
1171 * NEWS: Mention GDBserver range stepping support.
1173 2013-05-23 Yao Qi <yao@codesourcery.com>
1174 Pedro Alves <palves@redhat.com>
1176 * gdbthread.h (struct thread_control_state) <may_range_step>: New
1178 * infcmd.c (step_once, until_next_command): Enable range stepping.
1179 * infrun.c (displaced_step_prepare): Disable range stepping.
1180 (resume): Disable range stepping if stepping over a breakpoint or
1181 we have software watchpoints. If range stepping is enabled,
1182 assert the thread is in the stepping range.
1183 (clear_proceed_status_thread): Clear may_range_step.
1184 (handle_inferior_event): Disable range stepping as soon as we know
1185 the thread that hit the event. Re-enable it whenever we're going
1186 to step with a step range.
1187 * remote.c (struct vCont_action_support) <r>: New field.
1188 (use_range_stepping): New global.
1189 (remote_vcont_probe): Handle 'r' action.
1190 (append_resumption): Append an 'r' action if the thread may range
1192 (show_range_stepping): New function.
1193 (set_range_stepping): New function.
1194 (_initialize_remote): Call add_setshow_boolean_cmd to register the
1195 'set range-stepping' and 'show range-stepping' commands.
1196 * NEWS: Mention range stepping, the new vCont;r action, and the
1197 new "set/show range-stepping" commands.
1199 2013-05-23 Yao Qi <yao@codesourcery.com>
1200 Pedro Alves <palves@redhat.com>
1202 * remote.c (struct vCont_action_support): New struct.
1203 (struct remote_state) <support_vCont_t>: Remove field.
1204 <vCont_actions_support>: New field.
1205 (remote_vcont_probe, remote_stop_ns): Update.
1207 2013-05-23 Yao Qi <yao@codesourcery.com>
1208 Pedro Alves <palves@redhat.com>
1210 * gdbthread.h (pc_in_thread_step_range): New declaration.
1211 * thread.c (pc_in_thread_step_range): New function.
1212 * infrun.c (handle_inferior_event): Use it.
1214 2013-05-23 Joel Brobecker <brobecker@adacore.com>
1216 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
1219 2013-05-22 Keith Seitz <keiths@redhat.com>
1221 * ada-lang.c (is_known_support_routine): Add explicit free of
1222 'func_name' from find_frame_funname.
1223 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
1224 for func_name from find_frame_funname.
1225 * python/py-frame.c (frapy_name): Add explicit free of
1226 'name' from find_frame_funname.
1227 * stack.c (find_frame_funname): Add comment explaining that
1228 funcp must be freed by the caller.
1229 Return copy of symbol names instead of pointers.
1230 (print_frame): Add a cleanup for 'funname' from
1232 * stack.h (find_frame_funname): Remove "const" from
1233 'funname' parameter.
1235 2013-05-22 Tom Tromey <tromey@redhat.com>
1238 * c-valprint.c (c_value_print): Use value_addr for
1239 references. Convert back to reference type with value_ref.
1241 2013-05-22 Eli Zaretskii <eliz@gnu.org>
1243 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
1244 unloaded DLL, it will be done by handle_solib_event. See
1245 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
1248 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
1250 * ui-out.c: Create typedef ui_out_level_p and define vector
1251 operations for that type.
1252 (struct ui_out): Use a vector instead of an array.
1253 (current_level): Return level from a vector.
1254 (push_level): Create a level in a vector.
1255 (pop_level): Delete a level in a vector.
1256 (ui_out_new): Create initial level zero level, and store in a
1258 (ui_out_destroy): Add vector cleanup.
1260 2013-05-22 Pedro Alves <palves@redhat.com>
1262 * python/python-internal.h (gdb_Py_DECREF): Tag with
1263 "ARI: editCase function".
1265 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
1267 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
1269 2013-05-21 Pedro Alves <palves@redhat.com>
1271 * python/py-prettyprint.c (apply_val_pretty_printer): Check
1272 whether PRINTER is NULL before installing a Py_DECREF cleanup.
1273 * python/py-utils.c (py_decref): Don't check for NULL before
1276 2013-05-21 Pedro Alves <palves@redhat.com>
1278 * python/py-utils.c (py_decref): Remove extra braces.
1279 (gdb_pymodule_addobject): Remove extra braces.
1280 * python-internal.h (gdb_Py_DECREF): New static inline function.
1281 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
1283 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1285 * breakpoints.c (detach_breakpoints): Do not
1286 detach breakpoints locations with loc_type bp_loc_other.
1288 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1290 Workaround Python 2.6.
1291 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
1294 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1296 Code cleanup: constification.
1297 * solib.c (solib_ops): Make return type and ops variable type const.
1298 (set_solib_ops): Make the new_ops parameter and ops variable const.
1299 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
1300 (solib_add, solib_keep_data_in_core, clear_solib)
1301 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
1302 (reload_shared_libraries, solib_global_lookup): Make the ops variable
1304 * solib.h (set_solib_ops): Make the new_ops parameter const.
1306 2013-05-21 Joel Brobecker <brobecker@adacore.com>
1308 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
1310 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
1311 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
1312 (SYSTEM_GDBINIT_FILES): New variables.
1313 (all): Add stamp-system-gdbinit.
1314 (stamp-system-gdbinit): New rule.
1315 (clean-system-gdbinit, install-system-gdbinit)
1316 (uninstall-system-gdbinit): New rules. Make them .PHONY.
1317 (install-only): Add dependency on install-system-gdbinit.
1318 (uninstall): Add dependency on uninstall-system-gdbinit.
1319 (clean): Add dependency on clean-system-gdbinit.
1320 * system-gdbinit/elinos.py: New file.
1321 * system-gdbinit/wrs-linux.py: New file.
1323 2013-05-21 Joel Brobecker <brobecker@adacore.com>
1325 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
1327 2013-05-21 Hui Zhu <hui@codesourcery.com>
1329 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
1330 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
1331 * mi/mi-cmd-break.c (ctype.h): New include.
1332 (gdb_obstack.h): New include.
1333 (mi_argv_to_format, mi_cmd_break_insert_1): New.
1334 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
1335 (mi_cmd_dprintf_insert): New.
1336 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
1337 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
1339 2013-05-20 Tom Tromey <tromey@redhat.com>
1341 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
1343 2013-05-20 Tom Tromey <tromey@redhat.com>
1345 * python/py-value.c (valpy_get_dynamic_type): Simplify
1346 dynamic_type assignment. Use Py_XINCREF.
1348 2013-05-20 Tom Tromey <tromey@redhat.com>
1350 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
1352 2013-05-20 Tom Tromey <tromey@redhat.com>
1354 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
1355 (gdbpy_selected_frame): Move object-construction code
1358 2013-05-20 Tom Tromey <tromey@redhat.com>
1360 * python/py-arch.c (gdbpy_initialize_arch): Use
1361 gdb_pymodule_addobject.
1362 * python/py-block.c (gdbpy_initialize_blocks): Use
1363 gdb_pymodule_addobject.
1364 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
1365 gdb_pymodule_addobject.
1366 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
1367 gdb_pymodule_addobject.
1368 * python/py-event.c (gdbpy_initialize_event_generic): Use
1369 gdb_pymodule_addobject.
1370 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
1371 gdb_pymodule_addobject.
1372 * python/py-evts.c (add_new_registry): Use
1373 gdb_pymodule_addobject.
1374 (gdbpy_initialize_py_events): Likewise.
1375 * python/py-finishbreakpoint.c
1376 (gdbpy_initialize_finishbreakpoints): Use
1377 gdb_pymodule_addobject.
1378 * python/py-frame.c (gdbpy_initialize_frames): Use
1379 gdb_pymodule_addobject.
1380 * python/py-function.c (gdbpy_initialize_functions): Use
1381 gdb_pymodule_addobject.
1382 * python/py-inferior.c (gdbpy_initialize_inferior): Use
1383 gdb_pymodule_addobject.
1384 * python/py-infthread.c (gdbpy_initialize_thread): Use
1385 gdb_pymodule_addobject.
1386 * python/py-objfile.c (gdbpy_initialize_objfile): Use
1387 gdb_pymodule_addobject.
1388 * python/py-param.c (gdbpy_initialize_parameters): Use
1389 gdb_pymodule_addobject.
1390 * python/py-progspace.c (gdbpy_initialize_pspace): Use
1391 gdb_pymodule_addobject.
1392 * python/py-symbol.c (gdbpy_initialize_symbols): Use
1393 gdb_pymodule_addobject.
1394 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
1395 gdb_pymodule_addobject.
1396 * python/py-type.c (gdbpy_initialize_types): Use
1397 gdb_pymodule_addobject.
1398 * python/py-utils.c (gdb_pymodule_addobject): New function.
1399 * python/py-value.c (gdbpy_initialize_values): Use
1400 gdb_pymodule_addobject.
1401 * python/python-internal.h (gdb_pymodule_addobject): Declare.
1402 * python/python.c (_initialize_python): Use
1403 gdb_pymodule_addobject.
1405 2013-05-20 Tom Tromey <tromey@redhat.com>
1407 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
1408 * python/py-param.c (get_set_value, get_show_value): Use
1410 * python/python.c (start_type_printers, apply_type_printers):
1411 Use explicit decrefs.
1413 2013-05-20 Tom Tromey <tromey@redhat.com>
1415 * python/py-evts.c (gdbpy_initialize_py_events): Don't
1418 2013-05-20 Tom Tromey <tromey@redhat.com>
1420 * python/python.c (gdbpy_run_events): Decref the result
1421 of PyObject_CallObject.
1423 2013-05-20 Tom Tromey <tromey@redhat.com>
1425 * python/py-symtab.c (set_sal): Use
1426 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
1427 (symtab_and_line_to_sal_object): Update.
1429 2013-05-20 Tom Tromey <tromey@redhat.com>
1431 * python/py-param.c (compute_enum_values): Decref 'item'.
1433 2013-05-20 Tom Tromey <tromey@redhat.com>
1435 * mi/mi-main.c: Include python-internal.h.
1436 (mi_cmd_list_features): Check gdb_python_initialized.
1437 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
1438 (python_inferior_exit, python_new_objfile, add_thread_object)
1439 (delete_thread_object, py_free_inferior): Check
1440 gdb_python_initialized.
1441 * python/py-prettyprint.c (apply_val_pretty_printer): Check
1442 gdb_python_initialized.
1443 * python/py-type.c (save_objfile_types): Check
1444 gdb_python_initialized.
1445 * python/python-internal.h (gdb_python_initialized): Declare.
1446 * python/python.c (ensure_python_env): Throw exception if
1447 Python not initialized.
1448 (before_prompt_hook, source_python_script_for_objfile)
1449 (start_type_printers, apply_type_printers,
1450 free_type_printers): Check gdb_python_initialized.
1451 * varobj.c (varobj_get_display_hint)
1452 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
1453 (install_new_value_visualizer, varobj_set_visualizer)
1454 (value_get_print_value): Check gdb_python_initialized.
1456 2013-05-20 Tom Tromey <tromey@redhat.com>
1458 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
1460 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
1461 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
1463 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
1465 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
1467 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
1469 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
1470 init function to return 'int'.
1471 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
1472 Return 'int'. Check errors.
1473 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
1475 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
1476 Return 'int'. Check errors.
1477 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
1479 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
1481 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
1483 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
1485 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
1487 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
1489 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
1491 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
1493 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
1495 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
1497 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
1499 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
1501 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
1503 * python/python-internal.h (gdbpy_initialize_auto_load,
1504 gdbpy_initialize_values, gdbpy_initialize_frames,
1505 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
1506 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
1507 gdbpy_initialize_blocks, gdbpy_initialize_types,
1508 gdbpy_initialize_functions, gdbpy_initialize_pspace,
1509 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
1510 gdbpy_initialize_finishbreakpoints,
1511 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
1512 gdbpy_initialize_thread, gdbpy_initialize_inferior,
1513 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
1514 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
1515 gdbpy_initialize_signal_event,
1516 gdbpy_initialize_breakpoint_event,
1517 gdbpy_initialize_continue_event,
1518 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
1519 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
1520 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1521 * python/python.c (gdb_python_initialized): New global.
1522 (gdbpy_initialize_events): Return 'int'. Check errors.
1523 (_initialize_python): Check errors. Set
1524 gdb_python_initialized.
1526 2013-05-20 Tom Tromey <tromey@redhat.com>
1528 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
1529 Decref the reslut of PyObject_CallMethod.
1531 2013-05-20 Tom Tromey <tromey@redhat.com>
1533 * python/py-event.c (gdbpy_initialize_event_generic): Return
1534 early if PyType_Ready fails.
1536 2013-05-20 Tom Tromey <tromey@redhat.com>
1538 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
1539 as 'default' in the switch.
1541 2013-05-20 Tom Tromey <tromey@redhat.com>
1543 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
1544 get_addr_from_python calls out of TRY_CATCH.
1545 (infpy_write_memory, infpy_search_memory): Likewise.
1546 * python/py-utils.c (get_addr_from_python): Return negative
1547 value on error. Use TRY_CATCH.
1548 * python/python-internal.h (get_addr_from_python): Use
1549 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1551 2013-05-20 Tom Tromey <tromey@redhat.com>
1553 * python/py-event.c (evpy_emit_event): Decref the
1554 result of PyObject_CallFunctionObjArgs.
1556 2013-05-20 Tom Tromey <tromey@redhat.com>
1558 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
1561 2013-05-20 Tom Tromey <tromey@redhat.com>
1563 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
1565 2013-05-20 Tom Tromey <tromey@redhat.com>
1567 * python/py-event.h (gdbpy_initialize_event_generic): Use
1568 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1569 * python/py-evts.c (add_new_registry): Use
1570 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1571 * python/python-internal.h
1572 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
1574 2013-05-20 Tom Tromey <tromey@redhat.com>
1576 * python/py-arch.c (archpy_disassemble): Update.
1577 * python/py-type.c (typy_get_composite, typy_lookup_typename)
1578 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
1579 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
1580 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
1582 (GDB_PY_HANDLE_EXCEPTION): Update.
1583 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
1585 2013-05-20 Tom Tromey <tromey@redhat.com>
1587 * python/python-internal.h (events_object_type): Remove.
1589 2013-05-20 Tom Tromey <tromey@redhat.com>
1591 * python/py-event.h (evpy_emit_event): Use
1592 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1593 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1596 2013-05-20 Tom Tromey <tromey@redhat.com>
1598 * py-evtregistry.c (create_event_object): Decref
1599 eventregistry_object if PyList_New fails.
1601 2013-05-20 Tom Tromey <tromey@redhat.com>
1603 * py-cmd.c (gdbpy_string_to_argv): Check result of
1606 2013-05-20 Tom Tromey <tromey@redhat.com>
1608 * python/python.c (before_prompt_hook): Add cleanup to
1611 2013-05-20 Tom Tromey <tromey@redhat.com>
1613 * python/py-function.c (fnpy_init): Decref result of
1614 PyObject_GetAttrString.
1616 2013-05-20 Tom Tromey <tromey@redhat.com>
1618 * python/py-threadevent.c (get_event_thread): Use
1619 CPYCHECKER_RETURNS_BORROWED_REF.
1620 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1622 (pspace_to_pspace_object, objfile_to_objfile_object)
1623 (find_thread_object): Use it.
1625 2013-05-20 Tom Tromey <tromey@redhat.com>
1627 * python/py-arch.c (arch_object_type): Use
1628 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1629 * python/py-block.c (block_syms_iterator_object_type):
1630 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1631 * python/py-bpevent.c (breakpoint_event_object_type):
1632 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1633 * python/py-cmd.c (cmdpy_object_type): Use
1634 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1635 * python/py-continueevent.c (continue_event_object_type):
1636 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1637 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
1638 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1639 * python/py-events.h (thread_event_object_type):
1640 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1641 * python/py-evtregistry.c (eventregistry_object_type): Use
1642 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1643 * python/py-exitedevent.c (exited_event_object_type):
1644 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1645 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
1646 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1647 * python/py-function.c (fnpy_object_type): Use
1648 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1649 * python/py-inferior.c (inferior_object_type, membuf_object_type):
1650 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1651 * python/py-infthread.c (thread_object_type): Use
1652 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1653 * python/py-lazy-string.c (lazy_string_object_type):
1654 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1655 * python/py-newobjfileevent.c (new_objfile_event_object_type):
1656 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1657 * python/py-objfile.c (objfile_object_type): Use
1658 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1659 * python/py-param.c (parmpy_object_type):
1660 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1661 * python/py-progspace.c (pspace_object_type):
1662 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1663 * python/py-signalevent.c (signal_event_object_type):
1664 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1665 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
1666 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1667 * python/py-type.c (type_object_type, field_object_type)
1668 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1669 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
1671 (value_object_type, block_object_type, symbol_object_type)
1672 (event_object_type, stop_event_object_type, breakpoint_object_type)
1673 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1675 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
1677 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
1678 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
1680 2013-05-20 Doug Evans <dje@google.com>
1682 When reading CU, stay in DWO. Be more tolerent of bad debug info.
1684 * dwarf2read.c (struct dwarf2_per_cu_data): New member
1685 reading_dwo_directly.
1686 (struct signatured_type): New member dwo_unit.
1687 (struct die_reader_specs): New member comp_dir.
1688 (create_signatured_type_table_from_index): Use malloc for
1689 all_type_units instead of objfile's obstack.
1690 (create_all_type_units): Ditto.
1691 (fill_in_sig_entry_from_dwo_entry): New function.
1692 (add_type_unit): New function.
1693 (lookup_dwo_signatured_type): New function.
1694 (lookup_dwp_signatured_type): New function.
1695 (lookup_signatured_type): New arg cu. All callers updated.
1696 (init_cu_die_reader): Initialize comp_dir.
1697 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
1698 Change assert of matching type signatures to call error on mismatch.
1699 (lookup_dwo_unit): Add assert.
1700 (init_tu_and_read_dwo_dies): New function.
1701 (init_cutu_and_read_dies): Call it.
1702 (build_type_unit_groups): Handle case of no type unit groups created.
1703 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
1704 (lookup_dwo_cutu): Tweak complaint.
1705 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
1706 (dwarf2_per_objfile_free): Free all_type_units.
1708 2013-05-20 Joel Brobecker <brobecker@adacore.com>
1710 * windows-nat.c (handle_unload_dll): Add missing empty line.
1712 2013-05-20 Joel Brobecker <brobecker@adacore.com>
1714 * dwarf2read.c (prototyped_function_p): New function.
1715 (read_subroutine_type): Use it.
1717 2013-05-20 Joel Brobecker <brobecker@adacore.com>
1719 * rs6000-aix-tdep.c: De-indent some example code provided
1722 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
1724 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
1725 region is ok for a hardware watchpoint using the new ptrace interface
1728 2013-05-17 Doug Evans <dje@google.com>
1730 * NEWS: Mention new maintenance commands check-symtabs, and
1731 expand-symtabs, and renamed check-psymtabs.
1732 * psymtab.c (maintenance_check_psymtabs): Renamed from
1733 maintenance_check_symtabs. Only process already-expanded symbol
1735 (_initialize_psymtab): Update.
1736 * symmisc.c (maintenance_check_symtabs): New function.
1737 (maintenance_expand_name_matcher): New function
1738 (maintenance_expand_file_matcher): New function
1739 (maintenance_expand_symtabs): New function.
1740 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
1743 2013-05-17 Tom Tromey <tromey@redhat.com>
1745 * python/py-inferior.c (infpy_read_memory): Don't call
1746 PyErr_SetString if PyObject_New fails.
1747 * python/py-frame.c (frame_info_to_frame_object): Don't call
1748 PyErr_SetString if PyObject_New fails.
1750 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
1752 * acinclude.m4: Add check for dlopen in libdl.
1753 * configure.ac: Ditto.
1754 * configure: Regenerate.
1756 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
1758 * frame.c (frame_stash): Convert to htab.
1759 (frame_addr_hash): New function.
1760 (frame_addr_hash_eq): New function.
1761 (frame_stash_create): Convert function to create
1763 (frame_stash_add): Convert function to add an entry to a hash
1765 (frame_stash_find): Convert function to search the hash table.
1766 (frame_stash_invalidate): Convert function to empty the hash
1768 (get_frame_id): Only add to stash if a frame_id is created.
1769 (_initialize_frame): Call frame_stash_create.
1771 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
1773 * configure.ac: Ensure MIG is available when building for GNU Hurd
1775 * configure: Regenerate.
1777 2013-05-16 Joel Brobecker <brobecker@adacore.com>
1779 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
1781 2013-05-16 Joel Brobecker <brobecker@adacore.com>
1783 * ada-lang.c (ada_make_symbol_completion_list): Make sure
1784 all cleanups are done before returning from this function.
1786 2013-05-15 Joel Brobecker <brobecker@adacore.com>
1788 * utils.h: #include "exceptions.h".
1789 (enum errors): Remove partial declaration.
1791 2013-05-15 Joel Brobecker <brobecker@adacore.com>
1793 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
1794 * gdbarch.h, gdbarch.c: Regenerate.
1795 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
1798 * rs6000-aix-tdep.h: New file.
1799 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
1800 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
1802 (struct field_info, struct ld_info_desc): New types.
1803 (ld_info32_desc, ld_info64_desc): New static constants.
1804 (struct ld_info): New type.
1805 (rs6000_aix_extract_ld_info): New function.
1806 (rs6000_aix_shared_library_to_xml): Likewise.
1807 (rs6000_aix_ld_info_to_xml): Likewise.
1808 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1809 (rs6000_aix_init_osabi): Add call to
1810 set_gdbarch_core_xfer_shared_libraries_aix.
1811 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
1812 Remove "xml-utils.h" include.
1813 (LdInfo): Delete typedef.
1814 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
1816 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
1817 Adjust code accordingly.
1818 (rs6000_core_ldinfo): Delete, folded into
1819 rs6000_aix_core_xfer_shared_libraries_aix.
1820 (rs6000_xfer_shared_library): Delete.
1821 (rs6000_xfer_shared_libraries): Reimplement.
1823 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
1825 * record.c (record_goto_cmdlist): New.
1826 (cmd_record_goto): Split into this ...
1827 (cmd_record_goto_begin): ... this
1828 (cmd_record_goto_end): ... and this.
1829 (_initialize_record): Change "record goto" to prefix command.
1830 Add commands for "record goto begin" and "record goto end".
1831 Add an alias for "record goto start" to "record goto begin".
1833 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1835 * linespec.c (convert_linespec_to_sals): New comment for
1836 SOURCE_FILENAME assignment.
1838 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1840 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
1843 2013-05-14 Tom Tromey <tromey@redhat.com>
1845 * eval.c (parse_and_eval_long): Make 'exp' const.
1846 * value.h (parse_and_eval_long): Update.
1848 2013-05-14 Tom Tromey <tromey@redhat.com>
1850 * ui-file.c (gdb_fopen): Make arguments const.
1851 * ui-file.h (gdb_fopen): Make arguments const.
1853 2013-05-14 Tom Tromey <tromey@redhat.com>
1855 * remote.c (remote_set_trace_notes): Make arguments const.
1856 * target.c (update_current_target): Update cast.
1857 * target.h (to_set_trace_notes): Make arguments const.
1859 2013-05-14 Tom Tromey <tromey@redhat.com>
1861 * go32-nat.c (go32_terminal_info): Make 'args' const.
1862 * inferior.h (child_terminal_info): Update.
1863 * inflow.c (child_terminal_info): Make 'args' const.
1864 * target.c (default_terminal_info): Make 'args' const.
1865 (debug_to_terminal_save_ours): Likewise.
1866 * target.h (struct target_ops) <to_terminal_info>: Make argument
1869 2013-05-13 Tom Tromey <tromey@redhat.com>
1871 * gcore.c (create_gcore_bfd): Make 'filename' const.
1872 * gcore.h (create_gcore_bfd): Make 'filename' const.
1873 * record-full.c (record_full_save): Make 'recfilename' const.
1874 * target.c (target_save_record): Make 'filename' const.
1875 * target.h (struct target_ops) <to_save_record>: Make 'filename'
1877 (target_save_record): Likewise.
1879 2013-05-13 Tom Tromey <tromey@redhat.com>
1882 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
1883 ranges section has been read.
1885 2013-05-13 Tom Tromey <tromey@redhat.com>
1888 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
1889 STRUCTOP_PTR>: Return a not_lval value for
1890 EVAL_AVOID_SIDE_EFFECTS.
1891 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
1892 for EVAL_AVOID_SIDE_EFFECTS.
1894 2013-05-13 Joel Brobecker <brobecker@adacore.com>
1896 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
1897 floating point registers to register type before storing
1899 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
1902 2013-05-10 Joel Brobecker <brobecker@adacore.com>
1903 Tom Tromey <tromey@redhat.com>
1905 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1907 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1909 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
1910 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
1911 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
1912 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
1914 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
1915 Tom Tromey <tromey@redhat.com>
1918 * configure: Rebuild.
1919 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
1922 2013-05-10 Pedro Alves <palves@redhat.com>
1924 * remote.c (_initialize_remote): Fix spelling of
1925 qXfer:traceframe-info:read packet in packet config command.
1927 2013-05-10 David Taylor <dtaylor@emc.com>
1931 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
1932 "QTro" at start of packet.
1934 2013-05-10 Joel Brobecker <brobecker@adacore.com>
1936 * solib-aix.c (solib_aix_relocate_section_addresses):
1937 For the .bss section action, apply the same offset as
1940 2013-05-10 Joel Brobecker <brobecker@adacore.com>
1942 * solib-aix.c (solib_aix_relocate_section_addresses):
1943 Remove FIXME comment.
1945 2013-05-10 Joel Brobecker <brobecker@adacore.com>
1948 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1949 New functions, directly copied from sparc-sol-thread.c.
1950 * sparc-sol-thread.c: Delete.
1951 * configure.ac: Remove code handling sparc-solaris-thread.c.
1952 * configure: Regenerate.
1954 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
1956 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
1958 (backtrace_command): Add "no-filters" option parsing.
1959 (_initialize_stack): Alter help to reflect "no-filters" option.
1960 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
1961 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
1962 (py-frame.o): Add target
1963 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
1965 * python/python.h: Add new frame filter constants, and flag enum.
1966 (apply_frame_filter): Add definition.
1967 * python/python.c (apply_frame_filter): New non-Python
1969 * python/py-utils.c (py_xdecref): New function.
1970 (make_cleanup_py_xdecref): Ditto.
1971 * python/py-objfile.c: Declare frame_filters dictionary.
1972 (objfpy_dealloc): Add frame_filters dealloc.
1973 (objfpy_new): Initialize frame_filters attribute.
1974 (objfile_to_objfile_object): Ditto.
1975 (objfpy_get_frame_filters): New function.
1976 (objfpy_set_frame_filters): New function.
1977 * python/py-progspace.c: Declare frame_filters dictionary.
1978 (pspy_dealloc): Add frame_filters dealloc.
1979 (pspy_new): Initialize frame_filters attribute.
1980 (pspacee_to_pspace_object): Ditto.
1981 (pspy_get_frame_filters): New function.
1982 (pspy_set_frame_filters): New function.
1983 * python/py-framefilter.c: New file.
1984 * python/lib/gdb/command/frame_filters.py: New file.
1985 * python/lib/gdb/frames.py: New file.
1986 * python/lib/gdb/__init__.py: Initialize global frame_filters
1988 * python/lib/gdb/FrameDecorator.py: New file.
1989 * python/lib/gdb/FrameIterator.py: New file.
1990 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
1991 * mi/mi-cmds.h: Declare.
1992 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
1993 --no-frame-filter logic, and Python frame filter logic.
1994 (stack_enable_frame_filters): New function.
1995 (parse_no_frame_option): Ditto.
1996 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
1998 (mi_cmd_stack_list_locals): Ditto.
1999 (mi_cmd_stack_list_args): Ditto.
2000 (mi_cmd_stack_list_variables): Ditto.
2001 * NEWS: Add frame filter note.
2003 2013-05-09 Doug Evans <dje@google.com>
2005 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
2006 All callers updated.
2007 (syms_from_objfile): Ditto. Make static.
2008 (symbol_file_add_with_addrs): Renamed from
2009 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
2010 num_offsets. All callers updated.
2011 * symfile.h (syms_from_objfile): Delete.
2013 * symfile.c (decrement_reading_symtab): Add assert.
2014 (increment_reading_symtab): Ditto.
2016 2013-05-09 Joel Brobecker <brobecker@adacore.com>
2018 * source.c (forward_search_command): Replace call to getc
2020 (reverse_search_command): Likewise.
2022 2013-05-08 Doug Evans <dje@google.com>
2024 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
2027 2013-05-08 Joel Brobecker <brobecker@adacore.com>
2029 * sol-thread.c (info_cb): Factorize the code a little.
2031 2013-05-08 Joel Brobecker <brobecker@adacore.com>
2033 * sol-thread.c (info_cb): Rework the output of the "maintenance
2034 info sol-threads" command a bit.
2036 2013-05-08 Joel Brobecker <brobecker@adacore.com>
2038 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
2039 Replace ti.ti_startfunc by ti.ti_pc.
2041 2013-05-08 Joel Brobecker <brobecker@adacore.com>
2043 * solib-aix.c (solib_aix_free_library_list): New function
2044 for the case where HAVE_LIBEXPAT is not defined.
2046 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2048 PR breakpoints/15413:
2049 * breakpoint.c (condition_completer): Simplify the code to
2050 disconsider multiple locations of breakpoints when completing the
2051 "condition" command.
2053 2013-05-07 Pierre Muller <muller@sourceware.org>
2055 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
2056 instead of <sys/wait.h>.
2058 2013-05-07 Pierre Muller <muller@sourceware.org>
2060 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
2061 trailing new line from warning message.
2063 2013-05-07 Pierre Muller <muller@sourceware.org>
2065 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
2066 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
2068 2013-05-07 Joel Brobecker <brobecker@adacore.com>
2070 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
2071 error message (ARI fix).
2073 2013-05-07 Joel Brobecker <brobecker@adacore.com>
2075 * features/library-list-aix.dtd: Replace library-list by
2077 * rs6000-nat.c: Replace library-list by library-list-aix
2079 * solib-aix.c: Likewise.
2081 2013-05-07 Joel Brobecker <brobecker@adacore.com>
2083 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
2084 Renames TARGET_OBJECT_AIX_LIBRARIES.
2085 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
2086 TARGET_OBJECT_LIBRARIES_AIX throughout.
2087 * solib-aix.c: Likwise.
2089 2013-05-07 Yao Qi <yao@codesourcery.com>
2091 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
2092 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
2094 2013-05-07 Yao Qi <yao@codesourcery.com>
2096 * solib-dsbt.c (enable_break): Declare.
2097 (dsbt_current_sos): Remove call to enable_break2.
2098 (enable_break2): Rename to enable_break. Set solib breakpoint
2099 on '_dl_debug_state'.
2100 (enable_break): Remove.
2102 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
2104 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
2105 debug state prior to replicating existing hardware watchpoints or
2108 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2110 * gcore.c (gcore_create_callback): Ignore sections with
2111 separate_debug_objfile_backlink != NULL.
2113 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
2114 Andrew Jenner <andrew@codesourcery.com>
2115 Chung-Lin Tang <cltang@codesourcery.com>
2116 Julian Brown <julian@codesourcery.com>
2118 Based on the nios2-elf port from Altera Corporation.
2120 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
2122 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
2123 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
2124 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
2125 * nios2-tdep.h: New.
2126 * nios2-tdep.c: New.
2127 * nios2-linux-tdep.c: New.
2128 * features/Makefile (WHICH): Add nios2-linux.
2129 (nios2-linux-expedite): Set.
2130 * features/nios2-cpu.xml: New.
2131 * features/nios2.xml: New.
2132 * features/nios2-linux.xml: New.
2133 * features/nios2.c: New (autogenerated).
2134 * features/nios2-linux.c: New (autogenerated).
2135 * regformats/nios2-linux.dat: New (autogenerated).
2136 * NEWS (Changes since GDB 7.6): Add new Nios II targets
2139 2013-05-06 Doug Evans <dje@google.com>
2141 * symfile.c: Whitespace cleanup.
2143 * solist.h (struct target_so_ops): New member clear_so.
2144 * solib-svr4.c (svr4_clear_so): New function.
2145 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
2146 * solib.c (clear_so): Renamed from free_so_symbols.
2147 All callers updated. Call target clear_so if it exists.
2149 2013-05-06 Tom Tromey <tromey@redhat.com>
2151 * ada-lang.c (ada_value_primitive_packed_val): Don't
2153 * value.c (set_value_parent): Incref the new parent and decref
2155 (value_copy, value_primitive_field): Use set_value_parent.
2157 2013-05-06 Tom Tromey <tromey@redhat.com>
2159 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
2160 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
2162 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
2163 * dwarf2read.c (write_constant_as_bytes)
2164 (dwarf2_fetch_constant_bytes): New functions.
2166 2013-05-06 Tom Tromey <tromey@redhat.com>
2168 * dwarf2read.c (dwarf2_const_value_data): Remove unused
2170 (dwarf2_const_value_attr): Update.
2172 2013-05-06 Tom Tromey <tromey@redhat.com>
2174 * somread.c (som_symfile_offsets): Add 'const' to addrs.
2175 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
2176 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
2179 2013-05-06 Tom Tromey <tromey@redhat.com>
2181 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
2184 2013-05-06 Doug Evans <dje@google.com>
2186 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
2187 * stabsread.h (process_one_symbol): Update declaration.
2188 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
2189 * elfread.c (elf_symfile_relocate_probe): Ditto.
2190 * psymtab.c (relocate_psymtabs): Ditto.
2191 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
2192 (objfile_relocate): Ditto.
2193 * objfiles.h (objfile_relocate): Update declaration.
2194 * symfile.c (relative_addr_info_to_section_offsets): Constify
2196 (default_symfile_offsets): Ditto.
2197 (syms_from_objfile_1): Constify offsets parameter.
2198 (syms_from_objfile): Ditto.
2199 (symbol_file_add_with_addrs_or_offsets): Ditto.
2200 (symfile_map_offsets_to_segments): Constify data parameter.
2201 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
2202 delta parameters of member relocate.
2203 (struct sym_probe_fns): Constify new_offsets,
2204 delta parameters of member sym_relocate_probe.
2205 (struct sym_fns): Constify section_addr_info parameter of member
2207 (relative_addr_info_to_section_offsets): Update declaration.
2208 (default_symfile_offsets): Ditto.
2209 (syms_from_objfile): Ditto.
2210 (symfile_map_offsets_to_segments): Ditto.
2212 * symfile.c (syms_from_objfile_1): Use correct section count when
2213 objfile->sf == NULL.
2215 2013-05-06 Mike Frysinger <vapier@gentoo.org>
2217 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
2219 2013-05-06 Doug Evans <dje@google.com>
2221 * psympriv.h (struct partial_symtab): Augment comment for member
2224 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2226 Reimplement shared library support on ppc-aix...
2227 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
2228 * features/library-list-aix.dtd: New file.
2229 * solib-aix.h, solib-aix.c: New file.
2230 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
2231 (rs6000_find_toc_address_hook): Delete.
2232 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
2233 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
2234 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
2236 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
2237 (vmap_symtab, fixup_breakpoints): Delete.
2238 (rs6000_xfer_shared_libraries): New function.
2239 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
2240 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
2241 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
2242 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
2243 (rs6000_xfer_shared_library): New function.
2244 (find_toc_address): Delete.
2245 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
2246 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
2247 * xcoffread.c (record_minimal_symbol): Reloate symbol address
2248 before creating minimal symbol. Adjust function description
2250 (scan_xcoff_symtab): Replace call to
2251 prim_record_minimal_symbol_and_info by call to
2252 record_minimal_symbol.
2253 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
2254 around default_symfile_offsets.
2255 * configure.tgt: Add solib-aix.o to gdb_target_obs for
2256 powerpc-aix targets.
2257 * config/rs6000/nm-rs6000.h: Delete.
2258 * config/powerpc/aix.mh (NAT_FILE): Delete.
2259 (NATDEPFILES): Remove xcoffsolib.o.
2260 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
2261 (ALL_TARGET_OBS): Add solib-aix.o.
2262 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
2263 config/rs6000/nm-rs6000.h. Add solib-aix.h.
2264 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
2265 * xcoffsolib.h, xcoffsolib.c: Delete.
2267 * solib.c (reload_shared_libraries): Remove reference to
2268 SOLIB_CREATE_INFERIOR_HOOK.
2269 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
2270 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
2271 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
2273 * corelow.c (deprecated_core_resize_section_table): Delete.
2274 * exec.c: Remove include of xcoffsolib.h".
2275 (map_vmap, vmap): Delete.
2276 (exec_close_1): Remove references to vmap.
2277 (exec_file_attach): Remove vmap handling code, and reference
2278 to DEPRECATED_IBM6000_TARGET.
2279 (bfdsec_to_vmap): Delete.
2280 (exec_files_info): Remove block of code handling VMAP.
2281 * infcmd.c (post_create_inferior): Remove reference to
2282 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
2283 * infrun.c (follow_exec): Remove reference to
2284 SOLIB_CREATE_INFERIOR_HOOK.
2285 * stack.c (print_frame): Remove reference to PC_SOLIB.
2286 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
2287 (dsbt_relocate_main_executable): Likewise.
2288 * solib-frv.c (frv_current_sos): Likewise.
2290 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2292 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
2293 to target_write_memory and target_read_memory.
2295 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2297 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
2298 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
2300 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2302 * darwin-nat.c: Replace all "%x" instances in format strings
2303 into "0x%x" throughout.
2305 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2307 * darwin-nat.c (darwin_mourn_inferior): Replace call to
2308 gdb_assert by call to MACH_CHECK_ERROR.
2309 (darwin_attach_pid): Raise an error rather than a failed
2310 assertion when various system calls failed. Report a warning
2311 instead of raising a failed assertion when PREV_NOT is not NULL
2312 after call to mach_port_request_notification.
2313 (darwin_ptrace_me): Raise an error rather than a failed
2314 assertion when read returns nonzero.
2316 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2318 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
2320 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2322 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
2324 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2326 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
2327 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
2328 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
2329 a stale cleanup. Fix double free of NAME.
2331 2013-05-04 Eli Zaretskii <eliz@gnu.org>
2333 * windows-nat.c (windows_delete_thread): Accept an additional
2334 argument, the thread's exit code, and announce thread death when
2335 print_thread_events is non-zero and we are deleting a thread that
2336 is not the main thread.
2337 (get_windows_debug_event): Pass thread exit code to
2338 windows_delete_thread.
2340 2013-05-03 Kevin Buettner <kevinb@redhat.com>
2342 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
2343 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
2344 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
2345 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
2346 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
2347 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
2348 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
2349 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
2350 (gdbarch_tdep): New struct.
2351 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
2353 (v850e3v5_register_name): New function.
2354 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
2355 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
2356 code handling the struct return conventions for the RH850 ABI.
2358 (v850_eight_byte_align_p): New function.
2359 (v850_push_call_dummy): Push structs by value, not by reference
2360 for the RH850 ABI. Add support for eight byte alignment.
2361 (v850_dbtrap_breakpoint_from_pc): New function.
2362 (v850_gdbarch_init): Add ABI detection code. Register
2363 v850e3v5_register_name for the v850e3v5 architecture. Set the
2364 number of registers for v850e3v5. Register
2365 v850_dbtrap_breakpoint_from_pc as appropriate.
2366 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
2368 2013-05-03 Doug Evans <dje@google.com>
2370 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
2371 of bfd_count_sections.
2372 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
2373 * symfile.c (default_symfile_offsets): Ditto.
2374 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
2375 one entry, not bfd_count_sections entries.
2377 2013-05-03 Kevin Buettner <kevinb@redhat.com>
2379 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
2380 `save' and `restore' register groups. Don't include SPL
2381 or SPH in these groups.
2382 (rl78_dwarf_reg_to_regnum): Adjust mapping for
2383 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
2384 RL78_ES_REGNUM, and RL78_CS_REGNUM.
2385 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
2386 dwarf2_append_unwinders().
2388 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2390 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
2391 ignore SIGINT and SIGTRAP in case these internal signals are
2394 2013-05-01 Joel Brobecker <brobecker@adacore.com>
2396 * darwin-nat.c (darwin_read_write_inferior): Change types
2397 of parameters rdaddr and wraddr to "gdb_byte *". Change type
2398 of copy_count to "mach_msg_type_number_t".
2399 (darwin_read_dyld_info): Change type of parameter
2400 rdaddr to "gdb_byte *".
2402 2013-05-01 Joel Brobecker <brobecker@adacore.com>
2404 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
2405 of &info->load_map from "char *" to "gdb_byte *".
2407 2013-05-01 Joel Brobecker <brobecker@adacore.com>
2409 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
2410 from "char *" to "gdb_byte *".
2411 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
2413 2013-04-30 Doug Evans <dje@google.com>
2415 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
2416 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
2417 DWO stub. If DWO isn't found, just use stub.
2418 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
2420 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
2421 calling init_cutu_and_read_dies.
2423 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
2425 * target-descriptions.c (maint_print_c_tdesc_cmd):
2426 Add case to parse structures as register types and
2429 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
2431 * MAINTAINERS (Write After Approval): Add myself to the list.
2433 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2435 * sol-thread.c (rw_common): Change type of parameter "buf"
2437 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
2438 rw_common to "gdb_byte *" instead of "char *".
2440 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2442 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
2443 of local variable msym to const struct bound_minimal_symbol.
2444 Adjust use accordingly.
2445 [ti.ti_state == TD_THR_SLEEP]: Likewise.
2447 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
2449 * i386gnu-nat.c (CREG_OFFSET): New macro.
2450 (creg_offset): New array.
2451 (CREG_ADDR): Use creg_offset instead of reg_offset.
2453 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2455 * mep-tdep.c (mep_write_pc): Delete.
2456 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
2457 Add call to set_gdbarch_pc_regnum.
2459 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2461 * common/filestuff.c: Replace #include <dirent.h> by
2462 #include "gdb_dirent.h".
2464 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2466 * common/filestuff.c: Replace #include <sys/stat.h> by
2467 #include "gdb_stat.h".
2469 2013-04-29 Pierre Muller <muller@sourceware.org>
2471 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
2472 editCase function rule.
2473 (get_DW_AT_signature_type): Likewise.
2475 2013-04-29 Joel Brobecker <brobecker@adacore.com>
2477 * m32r-tdep.c (m32r_write_pc): Delete.
2478 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
2479 Add call to set_gdbarch_pc_regnum.
2481 2013-04-29 Pierre Muller <muller@sourceware.org>
2483 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
2485 2013-04-29 Joel Brobecker <brobecker@adacore.com>
2487 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
2489 2013-04-28 Yao Qi <yao@codesourcery.com>
2491 * solib-dsbt.c (fetch_loadmap): Re-indent.
2492 (displacement_from_map, enable_break2): Likewise.
2493 (dsbt_relocate_section_addresses): Likewise.
2495 2013-04-26 Joel Brobecker <brobecker@adacore.com>
2499 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
2502 * dwarf2read.c (process_full_comp_unit): Always create a static
2505 2013-04-25 Hui Zhu <hui@codesourcery.com>
2507 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
2508 to loc->cmd_bytecode.
2510 2013-04-24 Doug Evans <dje@google.com>
2512 * dwarf2read.c (setup_type_unit_groups): Fix comment.
2514 2013-04-22 Keith Seitz <keiths@redhat.com>
2516 * tracepoint.c (trace_save): Call the writer's start method.
2518 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
2521 * cli/cli-decode.c (lookup_command): Show an error if there is no space
2524 2013-04-23 Tom Tromey <tromey@redhat.com>
2526 * common/filestuff.c: Check USE_WIN32API before including
2528 (HAVE_F_GETFD): New define.
2529 (mark_cloexec): Check HAVE_F_GETFD.
2530 (gdb_open_cloexec): Change 'mode' to unsigned long.
2531 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
2532 (gdb_pipe_cloexec): Check HAVE_PIPE.
2533 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
2536 2013-04-23 Hui Zhu <hui@codesourcery.com>
2539 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
2541 2013-04-23 Hui Zhu <hui@codesourcery.com>
2544 * breakpoint.c (dprintf_print_recreate): New.
2545 (save_breakpoints): Let it not save dprintf commands.
2546 (initialize_breakpoint_ops): Set dprintf_print_recreate.
2548 2013-04-22 Tom Tromey <tromey@redhat.com>
2551 * Makefile.in (SFILES): Add filestuff.c
2552 (COMMON_OBS): Add filestuff.o.
2553 (filestuff.o): New target.
2554 * auto-load.c (auto_load_objfile_script_1): Use
2556 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
2557 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
2558 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
2559 * common/agent.c (gdb_connect_sync_socket): Use
2561 * common/filestuff.c: New file.
2562 * common/filestuff.h: New file.
2563 * common/linux-osdata.c (linux_common_core_of_thread)
2564 (command_from_pid, commandline_from_pid, print_source_lines)
2565 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
2566 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
2568 * common/linux-procfs.c (linux_proc_get_int)
2569 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
2570 * config.in, configure: Rebuild.
2571 * configure.ac: Don't check for sys/socket.h. Check for
2573 * corelow.c (core_open): Use gdb_open_cloexec.
2574 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
2575 * fork-child.c (fork_inferior): Call close_most_fds.
2576 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
2577 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
2578 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
2579 Use gdb_fopen_cloexec.
2580 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
2582 (linux_async_pipe): Use gdb_pipe_cloexec.
2583 * remote-fileio.c (remote_fileio_func_open): Use
2585 * remote.c (remote_file_put, remote_file_get): Use
2587 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
2589 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
2590 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
2591 * solib.c (solib_find): Use gdb_open_cloexec.
2592 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
2593 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
2594 (tfile_open): Use gdb_open_cloexec.
2595 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
2596 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
2597 * xml-support.c (xml_fetch_content_from_file): Use
2599 * main.c (captured_main): Call notice_open_fds.
2601 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
2603 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
2604 'char *' to 'gdb_byte *'.
2605 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
2608 2013-04-22 Yao Qi <yao@codesourcery.com>
2610 * infrun.c: Fix typo in comment.
2612 2013-04-22 Andrew Haley <aph@redhat.com>
2614 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
2617 2013-04-20 Yao Qi <yao@codesourcery.com>
2619 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
2620 'char *' to 'gdb_byte *'. Cast the return value of
2621 'bt_ctf_get_char_array' to 'gdb_byte *'.
2623 2013-04-19 Pedro Alves <palves@redhat.com>
2625 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
2627 * configure: Regenerate.
2629 2013-04-19 Pedro Alves <palves@redhat.com>
2631 * ser-tcp.c (net_read_prim): Cast second argument to recv to
2634 2013-04-19 Pedro Alves <palves@redhat.com>
2636 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
2637 Change type of 'myaddr' parameter to gdb_byte pointer.
2638 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
2639 to 'long long' pointer instead of to 'unsigned long long'.
2640 (monitor_write_memory_block, monitor_read_memory_single)
2641 (monitor_read_memory): Change type of 'myaddr' parameter to
2644 2013-04-19 Pedro Alves <palves@redhat.com>
2646 * record.c (validate_history_size): Make parameter 'setting'
2649 2013-04-19 Pedro Alves <palves@redhat.com>
2651 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
2654 2013-04-19 Pedro Alves <palves@redhat.com>
2656 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
2659 2013-04-19 Pedro Alves <palves@redhat.com>
2661 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
2662 * ada-tasks.c (read_fat_string_value): Likewise.
2664 2013-04-19 Pedro Alves <palves@redhat.com>
2666 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
2667 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
2668 'offset', and adjust.
2670 2013-04-19 Pedro Alves <palves@redhat.com>
2672 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
2673 (read_index_from_section): Add cast to 'char *'.
2675 2013-04-19 Pedro Alves <palves@redhat.com>
2677 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
2679 2013-04-19 Pedro Alves <palves@redhat.com>
2681 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
2683 2013-04-19 Pedro Alves <palves@redhat.com>
2685 * record-full.c (record_full_get_bookmark): Change local 'ret'
2686 type to char * and add cast to gdb_byte *.
2687 (record_full_goto_bookmark): Handle 'bookmark' argument as a
2689 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
2691 2013-04-19 Pedro Alves <palves@redhat.com>
2693 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
2694 * python/py-prettyprint.c (print_string_repr): Change type of
2695 'output' local to char *. Add cast to gdb_byte * in
2696 LA_PRINT_STRING call.
2697 (print_children): Change type of 'output' local to char *.
2698 * python/py-value.c (valpy_string): Add cast to const char * in
2699 PyUnicode_Decode call.
2701 2013-04-19 Pedro Alves <palves@redhat.com>
2703 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
2704 and change its type to 'const char *'. Adjust.
2705 (mips_send_packet): Add cast to 'char *', and remove cast to
2707 (mips_receive_packet): Remove cast to 'unsigned char *'.
2708 (mips_load_srec): Use bfd_byte.
2709 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
2710 (pmon_checkset): Make 'value' parameter unsigned.
2712 2013-04-19 Pedro Alves <palves@redhat.com>
2714 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
2716 2013-04-19 Pedro Alves <palves@redhat.com>
2718 * remote.c (remote_write_bytes_aux, compare_sections_command)
2720 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
2721 (remote_hostio_readlink, remote_bfd_iovec_pread)
2722 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
2723 binary buffer, and char when buffer is used as string.
2724 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
2725 (trace_save, tfile_open, traceframe_walk_blocks)
2726 (tfile_fetch_registers): Likewise.
2728 2013-04-19 Pedro Alves <palves@redhat.com>
2730 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
2731 buffer and size_t size. Adjust.
2732 * ser-base.h (ser_base_write): Adjust.
2733 * ser-go32.c (cnts): Change type to size_t.
2734 (dos_write): Change prototype -- take 'void *'
2735 buffer and size_t size. Adjust.
2736 (dos_info): Print elements of 'cnts' as unsigned long.
2737 * serial.c (serial_write): Likewise.
2738 * serial.h (serial_write): Adjust.
2739 (struct serial_ops) <write>: Change prototype -- take 'void *'
2740 buffer and size_t size. Adjust.
2742 2013-04-19 Pedro Alves <palves@redhat.com>
2744 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
2746 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
2748 2013-04-19 Pedro Alves <palves@redhat.com>
2750 * alpha-tdep.c (alpha_extract_return_value): Use
2751 regcache_cooked_read_unsigned to read 'v0'.
2753 2013-04-19 Pedro Alves <palves@redhat.com>
2755 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
2756 parameters 'at', 'as' and 'offset' to uint32_t.
2758 2013-04-19 Pedro Alves <palves@redhat.com>
2760 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
2761 'is64' to signed 'int'.
2763 2013-04-19 Pedro Alves <palves@redhat.com>
2765 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
2768 2013-04-19 Pedro Alves <palves@redhat.com>
2770 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
2771 'insnbuf' buffer type to unsigned int[].
2773 2013-04-19 Pedro Alves <palves@redhat.com>
2775 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
2777 2013-04-19 Pedro Alves <palves@redhat.com>
2779 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
2782 2013-04-19 Pedro Alves <palves@redhat.com>
2784 * alpha-tdep.c (heuristic_fence_post): Change type to int.
2785 (alpha_heuristic_proc_start): Adjust to check -1 instead of
2787 * mips-tdep.c (heuristic_fence_post): Change type to int.
2788 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
2790 2013-04-19 Pedro Alves <palves@redhat.com>
2792 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
2793 (struct gdbarch_tdep) <cris_version>: Make unsigned.
2794 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
2796 2013-04-19 Pedro Alves <palves@redhat.com>
2798 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
2799 it to get a string view of the byte buffer.
2800 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
2801 type to gdb_byte *. Adjust.
2802 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
2803 Change local to char *.
2804 * solib-darwin.c (find_program_interpreter): Change return type to
2806 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
2807 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
2808 * solib-frv.c (enable_break2): Change local 'buf' to char *.
2809 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
2810 * solib-svr4.c (find_program_interpreter): Change return type to
2812 (enable_break): Change local 'interp_name' to char *.
2813 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2814 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
2815 (spu_pseudo_register_write_spu): Use char for string buffer.
2817 (info_spu_event_command, info_spu_signal_command): Add casts to
2820 2013-04-19 Pedro Alves <palves@redhat.com>
2822 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
2824 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
2825 * ada-lang.c (ada_value_assign): Use gdb_byte.
2826 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
2827 (alphanbsd_sigtramp_offset): Use gdb_byte.
2828 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
2829 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
2830 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
2831 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
2832 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
2833 * arm-tdep.c (arm_stub_unwind_sniffer)
2834 (arm_displaced_init_closure): Use gdb_byte.
2835 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
2836 (arm_default_thumb_le_breakpoint)
2837 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
2838 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
2839 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
2840 * arm-wince-tdep.c (arm_wince_le_breakpoint)
2841 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
2842 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
2843 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
2844 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
2845 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
2846 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
2847 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
2848 (cris_store_return_value, cris_extract_return_value): Use
2850 (constraint): Change type of parameter to char * from signed
2851 char*. Use gdb_byte.
2852 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
2853 of local buffer to gdb_byte *.
2854 * dwarf2read.c (read_index_from_section): Use gdb_byte.
2855 (create_dwp_hash_table): Change type of locals to gdb_byte *.
2856 (add_address_entry): Change type of local buffer to gdb_byte[].
2857 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
2858 (frv_push_dummy_call): Use gdb_byte.
2859 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
2860 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
2861 (hppa_hpux_supply_save_state): Use gdb_byte.
2862 * hppa-tdep.c (hppa32_push_dummy_call)
2863 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
2864 * ia64-tdep.c (extract_bit_field, replace_bit_field)
2865 (slotN_contents, replace_slotN_contents): Change type of parameter
2867 (fetch_instruction, ia64_pseudo_register_write)
2868 (ia64_register_to_value, ia64_value_to_register)
2869 (ia64_extract_return_value, ia64_store_return_value)
2870 (ia64_push_dummy_call): Use gdb_byte.
2871 * m32c-tdep.c (m32c_return_value): Remove cast.
2872 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
2873 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
2875 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
2876 * mn10300-tdep.c (mn10300_store_return_value)
2877 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
2879 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
2880 (moxie_process_record): Remove casts.
2881 * ppc-ravenscar-thread.c (supply_register_at_address)
2882 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
2883 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
2884 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
2885 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
2886 * remote.c (compare_sections_command): Use gdb_byte.
2887 * score-tdep.c (score7_free_memblock): Change type of parameter to
2889 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
2890 gdb_byte *. Use gdb_byte.
2891 (sh_push_dummy_call_fpu): Use gdb_byte.
2892 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
2893 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
2894 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
2895 Change parameter type to 'gdb_byte *'. Use gdb_byte.
2896 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
2897 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
2898 (sh64_store_return_value, sh64_register_convert_to_virtual):
2899 Change parameter type to 'gdb_byte *'. Use gdb_byte.
2900 (sh64_pseudo_register_write): Use gdb_byte.
2901 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
2902 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
2904 (irix_current_sos): Use gdb_byte.
2905 * solib-som.c (som_current_sos): Use gdb_byte.
2906 * sparc-ravenscar-thread.c (supply_register_at_address)
2907 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
2908 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2909 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
2910 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
2912 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
2914 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
2915 * xstormy16-tdep.c (xstormy16_extract_return_value)
2916 (xstormy16_store_return_value): Change parameter type to
2917 'gdb_byte *'. Adjust.
2918 (xstormy16_push_dummy_call): Use gdb_byte.
2919 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
2920 (call0_analyze_prologue, execute_code): Use gdb_byte.
2922 2013-04-19 Vladimir Kargov <kargov@gmail.com>
2923 Pedro Alves <palves@redhat.com>
2925 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
2928 2013-04-17 Doug Evans <dje@google.com>
2930 * dwarf2read.c (struct signatured_type): New member type.
2931 (struct attribute): Replace member signatured_type with signature.
2932 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
2933 (read_call_site_scope): Call follow_die_ref instead of
2934 follow_die_ref_or_sig.
2935 (read_structure_type): Rewrite handling of signatured types.
2936 (read_enumeration_type): Ditto.
2937 (read_attribute_value): Update.
2938 (build_error_marker_type): New function.
2939 (lookup_die_type): Add assert. Rewrite handling of signatured types.
2940 Don't call error for bad types, just build an error marker type.
2941 (dump_die_shallow): Update.
2942 (follow_die_sig_1): Renamed from follow_die_sig.
2943 Don't call error for bad types, instead return NULL.
2944 (follow_die_sig): New function.
2945 (get_signatured_type, get_DW_AT_signature_type): New functions.
2947 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
2949 * aarch64-tdep.c (aarch64_write_pc): Removed.
2950 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
2953 2013-04-17 Yao Qi <yao@codesourcery.com>
2955 * top.c (print_gdb_configuration): Print configure-time
2956 parameter on using libbabeltrace or not.
2958 2013-04-16 Pedro Alves <palves@redhat.com>
2960 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
2962 2013-04-16 Pedro Alves <palves@redhat.com>
2964 * common/glibc_thread_db.h: Update from upstream glibc
2965 (git 568035b7874a099087b77f7bba3e36a1173787b0).
2967 2013-04-16 Pedro Alves <palves@redhat.com>
2969 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
2970 * common/glibc_thread_db.h: ... this new file ...
2971 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
2973 2013-04-16 Will Newton <will.newton@gmail.com>
2974 Pedro Alves <palves@redhat.com>
2978 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
2979 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
2982 2013-04-16 Pedro Alves <palves@redhat.com>
2983 Eli Zaretskii <eliz@gnu.org>
2985 * NEWS: Mention "set foo unlimited".
2987 2013-04-15 Doug Evans <dje@google.com>
2989 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
2990 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
2991 (create_dwo_cu_reader): Renamed from
2992 create_dwo_debug_info_hash_table_reader.
2993 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
2994 Remove support for multiple CUs in a DWO file.
2995 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
2997 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
2999 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
3000 (create_dwo_in_dwp): Ditto.
3002 2013-04-15 Tom Tromey <tromey@redhat.com>
3004 * NEWS: Move recent entries into "since 7.6" section.
3006 2013-04-15 Tom Tromey <tromey@redhat.com>
3010 * break-catch-throw.c (struct exception_catchpoint)
3011 <exception_rx, pattern>: New fields.
3012 (fetch_probe_arguments, dtor_exception_catchpoint)
3013 (check_status_exception_catchpoint)
3014 (print_one_detail_exception_catchpoint): New functions.
3015 (handle_gnu_v3_exceptions): Add "except_rx" argument.
3016 Compile regular expression if needed.
3017 (extract_exception_regexp): New function.
3018 (catch_exception_command_1): Use extract_exception_regexp.
3019 (compute_exception): Use fetch_probe_arguments.
3020 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
3021 and check_status fields.
3022 * cp-abi.c (cplus_typename_from_type_info): New function.
3023 * cp-abi.h (cplus_typename_from_type_info): Declare.
3024 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
3025 * gdb_regex.h (compile_rx_or_error): Declare.
3026 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
3028 (init_gnuv3_ops): Set get_type_from_type_info field.
3029 * probe.c (compile_rx_or_error): Move...
3030 * utils.c (compile_rx_or_error): ... here.
3032 2013-04-15 Tom Tromey <tromey@redhat.com>
3036 * break-catch-throw.c (compute_exception): New function.
3037 (exception_funcs): New global.
3038 (_initialize_break_catch_throw): Create $_exception.
3039 * cp-abi.c (cplus_type_from_type_info): New function.
3040 * cp-abi.h (cplus_type_from_type_info): Declare.
3041 (struct cp_abi_ops) <get_type_from_type_info>: New field.
3042 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
3043 (gnuv3_get_type_from_type_info): New functions.
3044 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
3046 2013-04-15 Tom Tromey <tromey@redhat.com>
3048 * break-catch-throw.c (struct exception_names): New.
3049 (exception_functions): Change type.
3050 (re_set_exception_catchpoint): Look for SDT probes.
3052 2013-04-15 Tom Tromey <tromey@redhat.com>
3055 * break-catch-throw.c (exception_functions): New global.
3056 (gnu_v3_exception_catchpoint_ops): Move earlier.
3057 (struct exception_catchpoint): New.
3058 (classify_exception_breakpoint): Rewrite.
3059 (re_set_exception_catchpoint): New function.
3060 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
3061 Allocate a struct exception_catchpoint.
3062 (catch_exception_command_1): Update.
3063 (initialize_throw_catchpoint_ops): Set 're_set' method.
3065 2013-04-15 Tom Tromey <tromey@redhat.com>
3067 * Makefile.in (SFILES): Add break-catch-throw.c
3068 (COMMON_OBS): Add break-catch-throw.o.
3069 * break-catch-throw.c: New file.
3070 * breakpoint.c: Move exception-catching code to new file.
3071 (ep_parse_optional_if_clause): No longer static.
3072 * breakpoint.h (ep_parse_optional_if_clause): Declare.
3074 2013-04-15 Tom Tromey <tromey@redhat.com>
3078 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
3079 * c-exp.y (TYPEID): New token.
3080 (exp): Add new TYPEID productions.
3081 (ident_tokens): Add "typeid".
3082 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
3083 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
3084 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
3085 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
3086 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
3088 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
3089 (build_std_type_info_type, gnuv3_get_typeid_type)
3090 (gnuv3_get_typeid): New functions.
3091 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
3092 new fields on ABI object.
3093 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
3094 * std-operator.def (OP_TYPEID): New.
3096 2013-04-15 Tom Tromey <tromey@redhat.com>
3098 * elfread.c (elf_symtab_read): Install versioned symbol under
3099 unversioned name as well.
3101 2013-04-15 Tom Tromey <tromey@redhat.com>
3104 * c-lang.c (cplus_language_defn): Use gdb_demangle.
3105 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
3106 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
3107 (gdb_demangle): New function.
3108 * cp-support.h (gdb_demangle): Declare.
3109 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
3110 (dwarf2_name): Use gdb_demangle.
3111 * gdbtypes.c (check_stub_method): Use gdb_demangle.
3112 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
3114 (gnuv3_print_method_ptr): Use gdb_demangle.
3115 * jv-lang.c (java_demangle): Use gdb_demangle.
3116 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
3117 * language.c (unk_lang_demangle): Use gdb_demangle.
3118 * symtab.c (symbol_find_demangled_name)
3119 (demangle_for_lookup): Use gdb_demangle.
3121 2013-04-15 Tom Tromey <tromey@redhat.com>
3125 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
3127 (classify_exception_breakpoint): New function.
3128 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3129 (print_mention_exception_catchpoint)
3130 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
3131 (catch_exception_command_1): Handle "rethrow" catchpoint.
3132 (catch_rethrow_command): New function.
3133 (_initialize_breakpoint): Add "catch rethrow" command.
3135 2013-04-15 Pierre Muller <muller@sourceware.org>
3137 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
3138 set_gdbarch_write_pc as deprecated anymore.
3140 2013-04-15 Joel Brobecker <brobecker@adacore.com>
3142 * spu-tdep.c (spu_write_pc): Add empty line after local variable
3145 2013-04-13 Yao Qi <yao@codesourcery.com>
3147 * ctf.c (_initialize_ctf): Include "completer.h".
3148 Call add_target_with_completer instead of add_target.
3150 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3152 Fix GDB regression related to PR binutils/14813.
3153 * jit.c (mem_bfd_iovec_close): Return 0 for success.
3154 * minidebug.c (lzma_close): Add return value comment.
3155 * remote.c (remote_bfd_iovec_close): Return 0 for success.
3156 * solib-spu.c (spu_bfd_iovec_close): Likewise.
3157 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
3159 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3161 * config.in: Regenerate.
3163 2013-04-12 Tom Tromey <tromey@redhat.com>
3165 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
3167 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
3168 (struct die_reader_specs) <buffer>: Likewise.
3169 (die_reader_func_ftype): Make 'info_ptr' const.
3170 (struct line_header) <include_dirs, statement_program_start,
3171 statement_program_end>: Now const.
3172 (struct file_entry) <name>: Likewise.
3173 (struct partial_die_info) <sibling>: Likewise.
3174 (struct dwarf_block) <data>: Likewise.
3175 (dwarf2_read_section): Remove cast.
3176 (dwarf2_get_section_info): Make 'bufp' const.
3177 (read_index_from_section): Constify.
3178 (dw2_get_file_names_reader): Make 'info_ptr' const.
3179 (dw2_get_primary_filename_reader): Likewise.
3180 (read_comp_unit_head): Make 'info_ptr' and return type const.
3181 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
3183 (read_abbrev_offset): Constify.
3184 (dwarf2_create_include_psymtab): Make 'name' const.
3185 (create_debug_types_hash_table): Update.
3186 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
3187 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
3189 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
3190 (load_partial_comp_unit_reader): Make 'info_ptr' const.
3191 (read_comp_units_from_section): Constify.
3192 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
3193 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
3195 (dwarf2_compute_name, setup_type_unit_groups): Constify.
3196 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
3197 (create_dwp_hash_table, dwarf2_ranges_read)
3198 (dwarf2_record_block_ranges): Constify.
3199 (read_die_and_children, read_die_and_siblings_1)
3200 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
3202 (read_full_die_1, read_full_die): Make 'info_ptr' const.
3203 (abbrev_table_read_table): Constify.
3204 (load_partial_dies): Make 'info_ptr' const.
3205 (read_partial_die, read_attribute_value, read_attribute): Make
3206 'info_ptr' and return type const.
3207 (read_address, read_initial_length)
3208 (read_checked_initial_length_and_offset, read_offset)
3209 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
3211 (read_direct_string): Make 'buf' and return type const.
3212 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
3213 (read_indirect_string): Make return type const.
3214 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
3215 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
3217 (read_str_index): Make return type const.
3218 (add_include_dir): Make 'include_dir' const.
3219 (add_file_name): Make 'name' const.
3220 (dwarf_decode_line_header): Constify.
3221 (psymtab_include_file_name): Make return type const.
3222 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
3223 (dwarf2_start_subfile): Make 'filename' const.
3224 (dwarf2_const_value_attr): Make 'bytes' const.
3225 (read_signatured_type_reader): Make 'info_ptr' const.
3226 (decode_locdesc): Constify.
3227 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
3229 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
3230 'mac_end', and return type const.
3231 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
3232 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
3234 (per_cu_header_read_in): Constify.
3235 * symfile.h (dwarf2_get_section_info): Update.
3237 2013-04-12 Tom Tromey <tromey@redhat.com>
3239 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
3241 2013-04-12 Eli Zaretskii <eliz@gnu.org>
3243 * NEWS: Mention "show configuration", --configuration.
3244 * top.c (print_gdb_configuration): New function, displays the
3245 details about GDB configure-time parameters.
3246 (print_gdb_version): Mention "show configuration".
3247 * cli/cli-cmds.c (show_configuration): New function.
3248 (_initialize_cli_cmds): Add the "show configuration" command.
3249 * main.c (captured_main) <print_configuration>: New static var.
3250 <long_options>: Use it.
3251 If --configuration was given, call print_gdb_configuration.
3253 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3254 Pedro Alves <palves@redhat.com>
3256 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
3257 (generated_files): Add gcore.
3258 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
3259 HAVE_NATIVE_GCORE_HOST.
3261 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
3262 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
3263 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
3264 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
3265 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
3266 Add HAVE_NATIVE_GCORE_HOST.
3267 * configure: Regenerate.
3268 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
3269 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
3270 AC_CONFIG_FILES for gcore.
3271 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
3273 * gdb_gcore.sh: Rename to ...
3274 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
3275 and GCORE_TRANSFORM_NAME substitutions.
3277 Fix parsing tabs in ${gdb_target_obs}.
3278 * configure.tgt (gdb_have_gcore): Replace case with for and if.
3280 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3282 * remote.c (unpush_and_perror): Add output message final dot.
3284 2013-04-11 Yao Qi <yao@codesourcery.com>
3286 * tracepoint.c (tfile_interp_line): Fit parameters line and
3289 2013-04-10 Joel Brobecker <brobecker@adacore.com>
3291 * solib.c (solib_map_sections): Remove code overwriting
3292 SO->SO_NAME with the bfd's filename.
3294 2013-04-10 Pedro Alves <palves@redhat.com>
3296 * cli/cli-decode.c (integer_unlimited_completer): New function.
3297 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
3298 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
3300 * cli/cli-setshow.c: Include "cli/cli-utils.h".
3301 (is_unlimited_literal): New function.
3302 (do_set_command): Handle literal "unlimited" arguments.
3303 * frame.c (_initialize_frame) <set backtrace limit>: Document
3305 * printcmd.c (_initialize_printcmd) <set print
3306 max-symbolic-offset>: Add help text.
3307 * record-full.c (_initialize_record_full) <set record full
3308 insn-number-max>: Likewise.
3309 * record.c (_initialize_record) <set record
3310 instruction-history-size, set record function-call-history-size>:
3312 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
3314 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
3316 * source.c (_initialize_source) <set listsize>: Add help text.
3317 * utils.c (initialize_utils) <set height, set width>: Likewise.
3318 <set pagination>: Mention "set height unlimited".
3319 * valprint.c (_initialize_valprint) <set print elements, set print
3320 repeats>: Document "unlimited".
3322 2013-04-10 Pedro Alves <palves@redhat.com>
3324 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
3325 instead of disconnect_tracing.
3326 * infcmd.c (detach_command, disconnect_command): Call
3327 query_if_trace_running. Adjust.
3328 * top.c: Include "tracepoint.h".
3329 (quit_target): Delete. Contents moved ...
3330 (quit_force): ... here. Wrap each stage of teardown in
3331 TRY_CATCH. Call disconnect_tracing before detaching.
3333 2013-04-10 Hui Zhu <hui@codesourcery.com>
3334 Yao Qi <yao@codesourcery.com>
3336 * configure.ac: Check libbabeltrace is installed.
3337 * config.in: Regenerate.
3338 * configure: Regenerate.
3339 * Makefile.in (LIBBABELTRACE): New.
3340 (CLIBS): Add LIBBABELTRACE.
3341 * ctf.c: Include "exec.h".
3342 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
3343 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
3344 (ctf_save_metadata_header): Define new type aliases in
3346 (ctf_write_header): Define event type "tsv_def" and "tp_def"
3347 in metadata. Start a new faked packet for trace status.
3348 (ctf_write_status): Write trace status to CTF.
3349 (ctf_write_uploaded_tsv): Write TSV to CTF.
3350 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
3351 (ctf_write_definition_end): End the faked packet.
3353 (ctx, ctf_iter, trace_dirname): New.
3354 (start_pos): New variable.
3355 (ctf_destroy, ctf_open_dir, ctf_open): New.
3356 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
3358 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
3359 (ctf_fetch_registers, ctf_xfer_partial): New.
3360 (ctf_get_trace_state_variable_value): New.
3361 (ctf_get_tpnum_from_frame_event): New.
3362 (ctf_get_traceframe_address): New.
3363 (ctf_trace_find, ctf_has_stack): New.
3364 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
3365 (ctf_get_trace_status, ctf_read_status): New.
3366 (_initialize_ctf): New.
3367 * tracepoint.c (get_tracepoint_number): New
3368 (get_uploaded_tsv): Remove 'static'.
3369 (struct traceframe_info, trace_regblock_size): Move it to ...
3370 * tracepoint.h: ... here.
3371 (get_tracepoint_number): Declare it.
3372 (get_uploaded_tsv): Declare it.
3374 * NEWS: Mention new configure option.
3376 2013-04-10 Pedro Alves <palves@redhat.com>
3377 Hui Zhu <hui@codesourcery.com>
3379 * breakpoint.c (dprintf_re_set): New.
3380 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
3383 2013-04-09 Joel Brobecker <brobecker@adacore.com>
3385 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
3386 Remove solib-svr4.o from the list.
3388 2013-04-09 Joel Brobecker <brobecker@adacore.com>
3390 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
3391 Use gdb_assert_not_reached instead of invalid boolean expression.
3393 2013-04-09 Pedro Alves <palves@redhat.com>
3395 * remote.c (unpush_and_perror): New function.
3396 (readchar, remote_serial_write): Use it.
3398 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
3400 * NEWS: Mention new btrace RSP packets.
3402 2013-04-08 Tom Tromey <tromey@redhat.com>
3404 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
3407 2013-04-08 Tom Tromey <tromey@redhat.com>
3409 * maint.c (print_bfd_section_info): Print the section index.
3410 * symmisc.c (dump_msymbols): Print the section index.
3412 2013-04-08 Tom Tromey <tromey@redhat.com>
3415 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
3416 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
3417 * breakpoint.c (resolve_sal_pc): Update.
3418 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3419 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
3420 (minsym_lookup_iterator_cb): Use it.
3421 (default_read_var_value): Update.
3422 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
3424 * infcmd.c (jump_command): Update.
3425 * linespec.c (minsym_found): Update.
3426 * maint.c (maintenance_translate_address): Update.
3427 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
3428 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
3429 * parse.c (write_exp_msymbol): Update.
3430 * printcmd.c (address_info): Update.
3431 * psymtab.c (find_pc_sect_psymbol): Update.
3432 (fixup_psymbol_section): Check SYMBOL_SECTION, not
3434 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
3435 Don't initialize SYMBOL_OBJ_SECTION.
3436 * spu-tdep.c (spu_catch_start): Update.
3437 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
3438 * symmisc.c (dump_msymbols, print_symbol): Update.
3439 * symtab.c (fixup_section): Don't set 'obj_section'. Change
3440 how fallback section is computed.
3441 (fixup_symbol_section): Update.
3442 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
3444 (allocate_symbol, initialize_symbol, allocate_template_symbol):
3445 Initialize SYMBOL_SECTION.
3446 * symtab.h (struct general_symbol_info) <section>: Update comment.
3447 <obj_section>: Remove.
3448 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
3449 (SYMBOL_OBJFILE): New macro.
3451 2013-04-08 Tom Tromey <tromey@redhat.com>
3453 * coffread.c (record_minimal_symbol): Update.
3454 * dbxread.c (record_minimal_symbol): Update.
3455 * elfread.c (record_minimal_symbol): Update.
3456 * machoread.c (macho_symtab_add_minsym): Update.
3457 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
3459 * minsyms.c (prim_record_minimal_symbol): Update.
3460 (prim_record_minimal_symbol_full): Remove 'bfd_section'
3462 (prim_record_minimal_symbol_and_info): Likewise.
3463 * minsyms.h (prim_record_minimal_symbol_full)
3464 (prim_record_minimal_symbol_and_info): Update.
3465 * symtab.c (allocate_symbol, initialize_symbol)
3466 (allocate_template_symbol): Initialize SYMBOL_SECTION.
3467 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
3470 2013-04-08 Tom Tromey <tromey@redhat.com>
3473 * solib-som.c (som_solib_section_offsets): Use BFD section
3474 indices. Set offsets for all sections.
3475 * somread.c (som_symtab_read): Compute BFD section for
3476 symbol. Use prim_record_minimal_symbol_and_info.
3477 (som_symfile_read): Fix comment.
3478 (struct find_section_offset_arg): New.
3479 (find_section_offset, set_section_index): New functions.
3480 (som_symfile_offsets): Use set_section_index to compute
3483 2013-04-08 Tom Tromey <tromey@redhat.com>
3485 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
3486 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
3487 gdb_bfd_section_index.
3488 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
3490 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
3492 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
3494 * objfiles.c (add_to_objfile_sections_full): New function.
3495 (add_to_objfile_sections): Use it.
3496 (build_section_table): Rewrite.
3497 (objfile_relocate1): Use gdb_bfd_section_index. Update.
3498 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
3499 (struct objfile) <sections>: Update comment.
3500 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
3502 (ALL_OBJSECTIONS): Use it.
3503 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
3504 * solib-frv.c (frv_relocate_main_executable): Update.
3505 * solib-target.c (solib_target_relocate_section_addresses):
3506 Use gdb_bfd_section_index.
3507 * symfile.c (build_section_addr_info_from_section_table):
3508 Use gdb_bfd_section_index.
3509 (build_section_addr_info_from_bfd, place_section): Likewise.
3510 * symtab.c (fixup_section): Update.
3511 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
3513 2013-04-08 Tom Tromey <tromey@redhat.com>
3515 * minsyms.h (struct bound_minimal_symbol): New.
3516 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
3517 Remove objfile argument.
3518 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
3519 Return bound_minimal_symbol.
3520 * minsyms.c (lookup_minimal_symbol_by_pc_1)
3521 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
3522 Return bound_minimal_symbol.
3523 (in_gnu_ifunc_stub): Update.
3524 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
3525 Remove 'objfile_p' argument.
3526 (lookup_solib_trampoline_symbol_by_pc): Update.
3527 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
3528 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
3529 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
3530 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
3531 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
3532 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
3533 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
3534 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
3535 stack.c, symtab.c, tui/tui-disasm.c: Update.
3537 2013-04-08 Tom Tromey <tromey@redhat.com>
3539 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
3540 Use symbol's obstack, not an objfile.
3541 * coffread.c (process_coff_symbol): Update.
3542 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
3543 * jv-lang.c (add_class_symbol): Update.
3544 * mdebugread.c (new_symbol): Update.
3545 * minsyms.c (prim_record_minimal_symbol_full)
3546 (terminate_minimal_symbol_table): Update.
3547 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
3548 * stabsread.c (define_symbol, read_enum_type): Update.
3549 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
3550 Handle Ada specially.
3551 (symbol_set_language): Add 'obstack' argument.
3552 (symbol_set_names): Update.
3553 (symbol_natural_name, symbol_demangled_name): Always use
3555 * symtab.h (struct general_symbol_info)
3556 <language_specific::obstack>: New field.
3557 <ada_mangled>: New field.
3558 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
3559 (symbol_set_language): Update.
3561 2013-04-08 Tom Tromey <tromey@redhat.com>
3563 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
3564 Take an obstack, not an objfile.
3565 (symbol_set_names): Update.
3566 * symtab.h (symbol_set_demangled_name): Update.
3568 2013-04-08 Tom Tromey <tromey@redhat.com>
3570 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
3572 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
3573 (read_func_scope): Call allocate_template_symbol.
3574 (new_symbol_full): Call allocate_symbol.
3575 * jit.c (finalize_symtab): Call allocate_symbol.
3576 * jv-lang.c (add_class_symbol): Call allocate_symbol.
3577 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
3578 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3579 (common_block_end): Call allocate_symbol.
3580 * symtab.c (allocate_symbol, initialize_symbol)
3581 (allocate_template_symbol): New functions.
3582 * symtab.c (allocate_symbol, initialize_symbol)
3583 (allocate_template_symbol): Declare.
3584 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
3586 2013-04-08 Pedro Alves <palves@redhat.com>
3587 Keith Seitz <keiths@redhat.com>
3589 * breakpoint.c (create_breakpoint): Rename
3590 "parse_condition_and_thread" parameter to "parse_arg". Update
3591 describing comment. If !PARSE_ARG, then error out if ARG is not
3592 the empty string after extracting the location.
3593 * breakpoint.h (create_breakpoint): Rename
3594 "parse_condition_and_thread" parameter to "parse_arg".
3596 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
3598 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
3600 2013-04-07 Yao Qi <yao@codesourcery.com>
3602 * remote.c (remote_trace_find): Change type of parameters 'addr1'
3603 and 'addr2' to CORE_ADDR.
3604 * target.c (update_current_target): Update.
3605 * target.h (struct target_ops) <to_trace_find>: Change parameter
3607 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
3608 'addr2' to CORE_ADDR.
3609 (tfile_trace_find): Likewise.
3610 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
3611 Change local variable 'addr' to type CORE_ADDR.
3612 * tracepoint.h (tfind_1): Update declaration.
3614 2013-04-06 Eli Zaretskii <eliz@gnu.org>
3616 * windows-nat.c (windows_get_absolute_argv0): Move from here...
3617 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
3620 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
3622 * main.h (windows_get_absolute_argv0): ...to here.
3624 2013-04-05 Doug Evans <dje@google.com>
3626 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
3627 (read_cutu_die_from_dwo): Add comments.
3628 (read_structure_type): Update comment.
3629 (read_enumeration_type, read_namespace_type): Update comment.
3630 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
3632 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3634 Convert man pages to texinfo, new gdbinit.5 texinfo page.
3635 * Makefile.in (gdb.z): Remove.
3636 (install-only): Remove $(man1dir) and gdb.1 installation.
3639 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3641 Fix compatibility with Linux kernel 3.8.3.
3642 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
3643 to more inner block. Remove parsing of NUMBER from outer block.
3644 Parse NUMBER only if KEYWORD has been identified.
3646 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3648 Fix variable name shadowing.
3649 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
3650 filename to mapsfilename and update its uses.
3652 2013-04-05 Eli Zaretskii <eliz@gnu.org>
3654 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
3655 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
3656 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
3657 details of the problem.
3659 2013-04-04 Pedro Alves <palves@redhat.com>
3660 Hui Zhu <hui@codesourcery.com>
3662 * breakpoint.c (validate_commands_for_breakpoint): If validating a
3663 tracepoint, reset its STEP_COUNT and call validate_actionline.
3665 2013-04-03 Doug Evans <dje@google.com>
3667 * dwarf2read.c (read_die_and_siblings_1): Renamed from
3668 read_die_and_siblings.
3669 (read_die_and_siblings): New function.
3670 (read_cutu_die_from_dwo): Dump die if requested.
3671 (read_die_and_children): Call read_full_die_1 and
3672 read_die_and_siblings_1.
3673 (read_full_die): Dump die if requested.
3675 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
3677 * dwarf2read.c (struct dwo_file): New member comp_dir.
3678 Rename member name to dwo_name. All uses updated.
3679 (hash_dwo_file): Include comp_dir in computation.
3680 (eq_dwo_file): Ditto.
3681 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
3682 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
3684 * psymtab.c (read_psymtabs_with_fullname): Don't call
3685 psymtab_to_fullname if the basenames are different.
3687 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3689 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
3690 New entry about "fullname" presence.
3692 2013-04-03 Pedro Alves <palves@redhat.com>
3694 * NEWS: Mention x86_64/Cygwin as new native configuration.
3696 2013-04-02 Doug Evans <dje@google.com>
3698 * dwarf2read.c (read_structure_type): Fix typo in comment.
3700 2013-04-02 Pedro Alves <palves@redhat.com>
3702 * NEWS: Mention "set/show debug aarch64", "set/show debug
3703 coff-pe-read" and "set/show debug mach-o".
3705 2013-04-02 Pedro Alves <palves@redhat.com>
3707 * NEWS: Mention "set/show remote trace-buffer-size-packet".
3709 2013-04-02 Eli Zaretskii <eliz@gnu.org>
3711 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
3712 gdb_string.h is now in common/.
3714 2013-04-02 Pedro Alves <palves@redhat.com>
3716 * NEWS: Move "set debug notification" and "set trace-buffer-size"
3717 under "New options".
3719 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3723 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3725 2013-04-02 Pedro Alves <palves@redhat.com>
3729 * remote.c (send_interrupt_sequence): Use remote_serial_write.
3730 (remote_serial_write): New function.
3731 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
3733 2013-04-01 Jiong Wang <jiwang@tilera.com>
3735 * NEWS: Mention TILE-Gx in "New native configurations" and
3736 "New targets" sections.
3738 2013-04-01 Doug Evans <dje@google.com>
3740 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
3741 (process_enumeration_scope): Simplify.
3743 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
3745 (struct signatured_type): ... to here.
3746 (sig_type_ptr): New typedef.
3747 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
3748 out of union 't'. All uses updated.
3749 (dw2_get_file_names_reader): Assert not called for a type unit.
3750 (dw2_get_file_names): Assert not called for a type unit or type
3752 (build_type_psymtabs_reader): Assert called for a type unit.
3753 (build_type_psymtab_dependencies): Assert called for a type unit group.
3755 * dwarf2read.c (free_dwo_file): Add comment.
3756 (dwarf2_per_objfile_free): Unref dwp bfd.
3758 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3760 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
3761 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
3762 (read_pe_exported_syms): Remove unused 'exportix'.
3763 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
3764 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
3765 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
3767 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3769 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
3770 (print_it_watchpoint): Remove unused 'bl'.
3771 (say_where): Remove unused 'uiout'.
3772 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
3773 (bkpt_breakpoint_hit): Remove unused 'b'.
3774 (internal_bkpt_print_it): Remove unused 'uiout'.
3775 * buildsym.c (augment_type_symtab): Remove unused 'i'.
3777 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
3779 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
3780 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
3782 2013-03-29 Doug Evans <dje@google.com>
3784 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
3785 Delete arg is_dwp. All callers updated.
3786 (open_dwp_file): New function.
3787 (open_and_init_dwp_file): Call it.
3788 (get_dwp_file): New function.
3789 (lookup_dwo_cutu): Call it.
3791 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
3792 unnecessary, cleanup.
3794 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
3796 * dwarf2read.c (read_cutu_die_from_dwo): New function.
3797 (lookup_dwo_unit): New function.
3798 (init_cutu_and_read_dies): Move DWO handling to new functions.
3800 * dwarf2read.c (struct signatured_type): Tweak comment.
3801 (struct dwo_unit): Tweak comment.
3802 (create_debug_types_hash_table): Tweak comment. Reformat long line.
3803 (create_dwo_debug_info_hash_table): Tweak comment.
3804 (dwarf2_per_cu_offset_and_type): Tweak comment.
3806 * dwarf2read.c (lookup_signatured_type): Remove complaint about
3807 missing .debug_types section.
3809 2013-03-29 Yao Qi <yao@codesourcery.com>
3811 * corelow.c: Include "completer.h".
3812 (_initialize_corelow): Call add_target_with_completer with
3813 argument 'filename_completer'.
3814 * tracepoint.c: Likewise.
3815 * exec.c (_initialize_exec): Likewise.
3816 * target.c (add_target): Rename to ...
3817 (add_target_with_completer): ... this. Call set_cmd_completer
3818 if parameter completer is not NULL.
3820 * target.h: Include "command.h".
3821 (add_target_with_completer): Declare it.
3823 2013-03-28 Joel Brobecker <brobecker@adacore.com>
3825 * coffread.c (is_import_fixup_symbol): New function.
3826 (record_minimal_symbol): Use is_import_fixup_symbol to
3827 detect import fixup symbols, and discard them.
3829 2013-03-28 Doug Evans <dje@google.com>
3831 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
3832 types hash table until we know we need it.
3834 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
3837 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
3838 All callers updated.
3839 (dw2_print_stats): Print #read CUs too.
3840 (dump_die_shallow): Print signatured types better.
3842 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
3843 info_or_types_section to section. All uses updated.
3844 (struct dwo_unit): Ditto.
3846 2013-03-28 Pedro Alves <palves@redhat.com>
3848 * NEWS (New options): New section.
3849 (New options): Mention set/show remote trace-status-packet.
3850 * remote.c (PACKET_qTStatus): New enumeration value.
3851 (remote_get_trace_status): Skip sending qTStatus if the packet is
3852 disabled. Use packet_ok.
3853 (_initialize_remote): Register a configuration command for
3856 2013-03-28 Doug Evans <dje@google.com>
3858 * symfile.c (find_separate_debug_file): Add comment.
3859 (terminate_after_last_dir_separator): Tweak comment.
3861 * dwarf2read.c (create_partial_symtab): Add forward decl.
3862 (create_partial_symtab): Move to be closer to other psymtab functions.
3863 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
3865 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
3866 (compute_symtab_includes): Remove unnecessary forward declaration.
3867 (die_needs_namespace): Add comment marking group of functions for
3868 dwarf2 name computation.
3870 * typeprint.c (_initialize_typeprint): Improve type help text.
3872 * python/python.c (finish_python_initialization): Provide suggestion
3873 for how to tell gdb to find its python files.
3875 2013-03-28 Pedro Alves <palves@redhat.com>
3879 * source.c (_initialize_source): Change back "set listsize" to an
3882 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
3885 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3887 2013-03-27 Pedro Alves <palves@redhat.com>
3889 * top.c (history_size): Rename to ...
3890 (history_size_setshow_var): ... this. Add comment.
3891 (show_commands): Use readline's 'history_length' instead of
3892 computing the history length by calling history_get in a loop.
3893 (set_history_size_command): Error out for sizes over INT_MAX.
3894 Restore previous history size on invalid size.
3895 (init_history): If HISTSIZE is negative, leave the history size as
3897 (init_main): Adjust.
3899 2013-03-27 Pedro Alves <palves@redhat.com>
3901 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
3902 coff_pe_read" command to "set debug coff-pe-read".
3904 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
3906 * record.c (command_size_to_target_size): Fix size comparison.
3907 Change parameter type from pointer to integer to integer.
3910 2013-03-27 Pierre Muller <muller@sourceware.org>
3912 * windows-nat.c (handle_output_debug_string): Avoid typecast
3913 from integer of different size warning.
3915 2013-03-26 Joel Brobecker <brobecker@adacore.com>
3917 * windows-nat.c (handle_output_debug_string): Add empty line
3918 after local block variable definition.
3920 2013-03-26 Pedro Alves <palves@redhat.com>
3922 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
3923 (net_open): Make 'polls' local unsigned.
3925 2013-03-26 Pedro Alves <palves@redhat.com>
3927 * remote.c (_initialize_remote): Make "set remoteaddresssize"
3928 a zuinteger command instead of uinteger.
3930 2013-03-26 Pedro Alves <palves@redhat.com>
3932 * record-full.c (record_full_insn_num): Make it unsigned.
3933 (record_full_check_insn_num, record_full_message)
3934 (record_full_registers_change, record_full_xfer_partial): Remove
3935 record_full_insn_max_num check (it's always != 0).
3936 (record_full_info, record_full_restore): Use %u as format string.
3937 (): Use %u as format string.
3938 (set_record_full_insn_max_num): Remove record_full_insn_max_num
3939 check (it's always != 0).
3941 2013-03-26 Pedro Alves <palves@redhat.com>
3943 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
3944 and "set dcache size" commands zuinteger instead of uinteger.
3946 2013-03-26 Pedro Alves <palves@redhat.com>
3948 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
3949 command zuinteger instead of uinteger.
3951 2013-03-26 Pedro Alves <palves@redhat.com>
3953 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
3954 zuinteger instead of uinteger.
3956 2013-03-26 Pedro Alves <palves@redhat.com>
3958 * record.c (record_insn_history_size_setshow_var)
3959 (record_call_history_size_setshow_var): New globals.
3960 (command_size_to_target_size): New function.
3961 (cmd_record_insn_history, cmd_record_call_history): Use
3962 command_size_to_target_size instead of cast.
3963 (validate_history_size, set_record_insn_history_size)
3964 (set_record_call_history_size): New functions.
3965 (_initialize_record): Install set_record_insn_history_size and
3966 set_record_call_history_size as "set" hooks of "set record
3967 instruction-history-size" and "set record
3968 function-call-history-size".
3970 2013-03-26 Pedro Alves <palves@redhat.com>
3972 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
3973 use with history_max_entries use. Remove FIXME note.
3975 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
3977 * record-btrace.c (record_btrace_close): Call
3978 record_btrace_auto_disable.
3980 2013-03-25 Joel Brobecker <brobecker@adacore.com>
3982 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
3984 2013-03-25 Doug Evans <dje@google.com>
3986 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
3988 2013-03-25 Tom Tromey <tromey@redhat.com>
3991 * c-exp.y (exp): Add new productions for destructors after '.' and
3993 (write_destructor_name): New function.
3995 2013-03-25 Tom Tromey <tromey@redhat.com>
3998 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
3999 value_struct_elt, not lookup_struct_elt_type.
4000 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
4001 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
4002 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
4004 2013-03-25 Yao Qi <yao@codesourcery.com>
4006 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
4007 instead of '_mkdir'.
4009 2013-03-23 Eli Zaretskii <eliz@gnu.org>
4011 * windows-nat.c (windows_get_absolute_argv0): New function.
4012 * windows-nat.h: Add its prototype.
4014 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
4015 Use IS_DIR_SEPARATOR instead of looking for a character inside
4016 SLASH_STRING. Include filenames.h.
4017 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
4018 relocate_gdb_directory works when passed gdb_program_name.
4019 Include windows-nat.h.
4021 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4023 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
4024 * remote.c (trace_error): Remove the special handling of '2'.
4025 (readchar) <SERIAL_EOF>
4026 (readchar) <SERIAL_ERROR>
4027 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
4028 (remote_get_trace_status): Call throw_exception if EX is
4030 * utils.c (perror_with_name): Rename to ...
4031 (throw_perror_with_name): ... here. New parameter errcode, describe it
4032 in the function comment.
4033 (perror_with_name): New function wrapper.
4034 * utils.h (enum errors): New stub declaration.
4035 (throw_perror_with_name): New declaration.
4037 2013-03-22 Pedro Alves <palves@redhat.com>
4038 Yao Qi <yao@codesourcery.com>
4039 Mark Kettenis <kettenis@gnu.org>
4041 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
4042 Don't let the user set the value to UINT_MAX directly.
4043 <var_integer>: Don't let the user set the value to INT_MAX
4046 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4048 * remote.c (remote_unpush_target): New function.
4049 (remote_open_1): Remove two pop_target calls, update one comment, add
4050 comment to target_preopen call. Replace pop_target call by
4051 remote_unpush_target call.
4052 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
4053 pop_target calls by remote_unpush_target calls.
4055 2013-03-22 Pedro Alves <palves@redhat.com>
4057 * linux-nat.c (linux_child_follow_fork): Don't call
4058 linux_enable_event_reporting.
4059 (linux_handle_extended_wait): Don't call
4060 linux_enable_event_reporting.
4062 2013-03-22 Pedro Alves <palves@redhat.com>
4064 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
4065 use it to rewrite the trampoline buffers with type gdb_byte[], and
4066 undefine the macro. Remove char* cast.
4068 2013-03-21 Doug Evans <dje@google.com>
4070 New commands "mt set per-command {space,time,symtab} {on,off}".
4072 * event-top.c: #include "maint.h".
4073 * main.c: #include "maint.h".
4074 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
4075 timeval-utils.h, maint.h, cli/cli-setshow.h.
4076 (per_command_time, per_command_space): New static globals.
4077 (per_command_symtab): New static global.
4078 (per_command_setlist, per_command_showlist): New static globals.
4079 (struct cmd_stats): Move here from utils.c.
4080 (set_per_command_time): Renamed from set_display_time in utils.c
4081 and moved here. All callers updated.
4082 (set_per_command_space): Renamed from set_display_space in utils.c
4083 and moved here. All callers updated.
4084 (count_symtabs_and_blocks): New function.
4085 (report_command_stats): Moved here from utils.c. Add support for
4086 printing symtab stats. Only print data if enabled before command
4088 (make_command_stats_cleanup): Ditto.
4089 (sert_per_command_cmd, show_per_command_cmd): New functions.
4090 (_initialize_maint_cmds): Add new commands
4091 mt set per-command {space,time,symtab} {on,off}.
4092 * maint.h: New file.
4093 * top.c: #include "maint.h".
4094 * utils.c (reset_prompt_for_continue_wait_time): New function.
4095 (get_prompt_for_continue_wait_time): New function.
4096 * utils.h (reset_prompt_for_continue_wait_time): Declare
4097 (get_prompt_for_continue_wait_time): Declare.
4098 (make_command_stats_cleanup): Moved to maint.h.
4099 (set_display_time, set_display_space): Moved to maint.h and renamed
4100 to set_per_command_time, set_per_command_space.
4101 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
4102 parse_binary_operation and made non-static. Don't call error,
4103 just return an error marker. All callers updated.
4104 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
4106 2013-03-21 Tom Tromey <tromey@redhat.com>
4108 * symfile.c (alloc_section_addr_info): Update header. Don't set
4109 'num_sections' field.
4110 (build_section_addr_info_from_section_table): Set 'num_sections'.
4111 (build_section_addr_info_from_bfd): Likewise.
4112 (build_section_addr_info_from_objfile): Remove dead loop
4114 (free_section_addr_info): Unconditionally call xfree.
4115 (relative_addr_info_to_section_offsets, addrs_section_sort)
4116 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
4118 (syms_from_objfile_1): Remove dead 'if' condition. Check
4120 (add_symbol_file_command): Set 'num_sections'.
4121 * symfile-mem.c (symbol_file_add_from_memory): Set
4123 * somread.c (som_symfile_offsets): Remove dead loop condition.
4124 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
4125 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
4127 2013-03-21 Tom Tromey <tromey@redhat.com>
4129 * tracepoint.h (decode_agent_options): Add 'trace_string'
4131 * tracepoint.c (decode_agent_options): Add 'trace_string'
4133 (validate_actionline): Update.
4134 (collect_symbol): Add 'trace_string' argument.
4135 (struct add_local_symbols_data) <trace_string>: New field.
4136 (do_collect_symbol): Update.
4137 (add_local_symbols): Add 'trace_string' argument.
4138 (encode_actions_1): Update.
4139 (trace_dump_actions): Update.
4140 * dwarf2loc.c (access_memory): Update.
4141 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
4142 * ax-general.c (new_agent_expr): Update.
4143 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
4144 (gen_trace_for_return_address): Add argument.
4145 (trace_kludge, trace_string_kludge): Remove.
4146 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
4147 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
4148 (gen_trace_for_var): Add 'trace_string' argument.
4149 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
4150 (gen_printf, agent_eval_command_one): Update.
4152 2013-03-21 Tom Tromey <tromey@redhat.com>
4155 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
4156 Handle FILENAME token.
4158 2013-03-21 Tom Tromey <tromey@redhat.com>
4160 * c-exp.y (YYPRINT): Define.
4161 (c_print_token): New function.
4163 2013-03-21 Tom Tromey <tromey@redhat.com>
4165 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
4167 2013-03-21 Yao Qi <yao@codesourcery.com>
4169 * ctf.c: Include "gdb_stat.h".
4170 [USE_WIN32API]: New macro 'mkdir'.
4171 (ctf_start): Use permission bits macros if they are defined.
4173 2013-03-20 Keith Seitz <keiths@redhat.com>
4175 * breakpoint.h (struct breakpoint): Add comment to
4176 extra_string indicating that this member is mallod'd.
4177 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
4179 2013-03-20 Pedro Alves <palves@redhat.com>
4183 * cli/cli-setshow.c (do_set_command)
4184 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
4185 the result of parsing the command argument. Throw error if the
4186 value is greater than UINT_MAX. Print the invalid value with
4188 <var_integer, var_zinteger>: Use LONGEST for variable holding the
4189 result of parsing the command argument. Throw error if the value
4190 is greater than INT_MAX, not greater or equal. Also throw error
4191 if the value is less than INT_MIN. Print the invalid value with
4193 <var_zuinteger_unlimited>: Throw error if the value is greater
4194 than INT_MAX, not greater or equal.
4195 (do_show_command) <var_integer, var_zinteger,
4196 var_zuinteger_unlimited>: Use %d for printing int, not %u.
4198 2013-03-20 Tom Tromey <tromey@redhat.com>
4200 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
4202 * dwarf2read.c (read_func_scope): Remove old FIXME.
4203 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
4205 * findvar.c (symbol_read_needs_frame, default_read_var_value):
4206 Unconditionally call via computed ops, if possible.
4207 * printcmd.c (address_info): Unconditionally call via computed ops,
4209 * stack.c (read_frame_arg): Unconditionally call via computed ops,
4211 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
4212 * tracepoint.c (scope_info): Unconditionally call via computed ops,
4215 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4216 Tom Tromey <tromey@redhat.com>
4219 * coffread.c (coff_register_index): New global.
4220 (process_coff_symbol, coff_read_enum_type): Set
4221 SYMBOL_ACLASS_INDEX.
4222 (_initialize_coffread): Initialize new global.
4223 * dwarf2loc.c (locexpr_find_frame_base_location)
4224 (dwarf2_block_frame_base_locexpr_funcs)
4225 (loclist_find_frame_base_location)
4226 (dwarf2_block_frame_base_loclist_funcs): New.
4227 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
4228 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
4229 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
4230 (dwarf2_block_frame_base_loclist_funcs): New.
4231 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
4232 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
4234 (read_func_scope): Update.
4235 (fixup_go_packaging, mark_common_block_symbol_computed)
4236 (var_decode_location, new_symbol_full, dwarf2_const_value):
4237 Set SYMBOL_ACLASS_INDEX.
4238 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
4239 (_initialize_dwarf2_read): Initialize new globals.
4240 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
4241 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
4242 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
4244 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
4245 (_initialize_mdebugread): Initialize new globals.
4246 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
4247 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
4248 (stab_register_index, stab_regparm_index): New globals.
4249 (define_symbol, read_enum_type, common_block_end): Set
4250 SYMBOL_ACLASS_INDEX.
4251 (_initialize_stabsread): Initialize new globals.
4252 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
4254 (MAX_SYMBOL_IMPLS): New define.
4255 (register_symbol_computed_impl, register_symbol_block_impl)
4256 (register_symbol_register_impl)
4257 (initialize_ordinary_address_classes): New functions.
4258 (_initialize_symtab): Call initialize_ordinary_address_classes.
4259 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
4260 (struct symbol_impl): New.
4261 (SYMBOL_ACLASS_BITS): New define.
4262 (struct symbol) <aclass, ops>: Remove fields.
4263 <aclass_index>: New field.
4264 (symbol_impls): Declare.
4265 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
4266 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
4267 (register_symbol_computed_impl, register_symbol_block_impl)
4268 (register_symbol_register_impl): Declare.
4269 (struct symbol_computed_ops): Add location_has_loclist.
4270 (struct symbol_block_ops): New.
4271 (SYMBOL_BLOCK_OPS): New.
4272 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
4274 2013-03-20 Tom Tromey <tromey@redhat.com>
4276 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
4277 (print_partial_symbols, recursively_search_psymtabs): Use
4280 2013-03-20 Pierre Muller <muller@sourceware.org>
4282 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
4283 addtion, subtraction, multiplication and division binary operator.
4285 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4288 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
4289 * bsd-kvm.c (bsd_kvm_close): Likewise.
4290 * bsd-uthread.c (bsd_uthread_close): Likewise.
4291 * corelow.c (core_close): Likewise.
4292 (core_close_cleanup): Remove parameter quitting from a caller.
4293 * event-top.c (async_disconnect): Likewise.
4294 * exec.c (exec_close_1): Remove parameter quitting.
4295 * go32-nat.c (go32_close): Likewise.
4296 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
4297 parameter quitting from a caller.
4298 * mips-linux-nat.c (super_close): Remove parameter quitting from the
4300 (mips_linux_close): Remove parameter quitting. Remove parameter
4301 quitting from a caller.
4302 * monitor.c (monitor_close): Remove parameter quitting.
4303 * monitor.h (monitor_close): Likewise.
4304 * record-btrace.c (record_btrace_close): Likewise.
4305 * record-full.c (record_full_close): Likewise.
4306 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
4307 it also from fprintf_unfiltered.
4308 * remote-mips.c (mips_close): Remove parameter quitting.
4309 (mips_detach): Remove parameter quitting from a caller.
4310 * remote-sim.c (gdbsim_close): Remove parameter quitting.
4311 (gdbsim_close): Remove duplicate function comment. Remove parameter
4312 quitting and remove it also from printf_filtered.
4313 * remote.c (remote_close): Remove parameter quitting.
4314 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
4315 * target.c (update_current_target): Remove parameter int from to_close
4317 (push_target, unpush_target, pop_target): Remove parameter quitting from
4319 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
4320 Remove parameter quitting from a caller.
4321 (target_preopen): Remove parameter quitting from a caller.
4322 (target_close): Remove parameter quitting. Remove parameter quitting
4323 from a caller two times. Remove parameter quitting also from
4325 * target.h (struct target_ops): Remove parameter quitting and as int
4326 from fields to_xclose and to_close.
4327 (extern struct target_ops current_target):
4328 (target_close, pop_all_targets): Remove parameter quitting. Update the
4330 (pop_all_targets_above): Remove parameter quitting.
4331 * top.c (quit_target): Remove parameter quitting from a caller.
4332 * tracepoint.c (tfile_close): Remove parameter quitting.
4333 * windows-nat.c (windows_close): Remove parameter quitting.
4335 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
4337 * windows-nat.c (handle_output_debug_string): Replace call
4338 to string_to_core_addr with call to strtoull.
4340 2013-03-20 Yao Qi <yao@codesourcery.com>
4342 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
4343 and write it to CTF metadata.
4345 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
4347 * windows-nat.c (handle_output_debug_string): Change type of n to
4348 SIZE_T to avoid crash on 64 bit systems.
4350 2013-03-17 Eli Zaretskii <eliz@gnu.org>
4352 * python/python-internal.h (HAVE_SNPRINTF)
4353 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
4354 about redefinition of snprintf by pyerrors.h.
4356 2013-03-15 Steve Ellcey <sellcey@mips.com>
4358 * remote-sim.c (sim_command_completer): Make char arguments const.
4360 2013-03-15 Tom Tromey <tromey@redhat.com>
4363 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
4365 2013-03-14 Tom Tromey <tromey@redhat.com>
4367 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
4369 (get_file_crc): Move from symfile.c.
4370 (gdb_bfd_crc): New function.
4371 * gdb_bfd.h (gdb_bfd_crc): Declare.
4372 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
4373 * symfile.c (get_file_crc): Move to gdb_bfd.c.
4374 (separate_debug_file_exists): Use gdb_bfd_crc.
4376 2013-03-14 Tom Tromey <tromey@redhat.com>
4378 * symfile.c (get_debug_link_info): Remove.
4379 (find_separate_debug_file_by_debuglink): Use
4380 bfd_get_debug_link_info.
4382 2013-03-14 Tom Tromey <tromey@redhat.com>
4384 * symtab.c (error_in_psymtab_expansion): New function.
4385 (lookup_symbol_aux_quick)
4386 (basic_lookup_transparent_type_quick): Remove "last resort"
4387 code. Use error_in_psymtab_expansion.
4389 2013-03-14 Doug Evans <dje@google.com>
4390 Jan Kratochvil <jan.kratochvil@redhat.com>
4392 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
4393 any successful compare_filenames_for_search or FILENAME_CMP.
4394 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
4395 * symtab.c (iterate_over_some_symtabs): Likewise.
4397 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4399 * source.c (print_source_lines_base): Make a local copy of
4402 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
4403 Jan Kratochvil <jan.kratochvil@redhat.com>
4405 * source.c (print_source_lines_base): Suppress "file" for TUI.
4407 2013-03-14 Keith Seitz <keiths@redhat.com>
4408 Alan Matsuoka <alanm@redhat.com>
4412 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
4414 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
4417 2013-03-14 Yao Qi <yao@codesourcery.com>
4419 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
4420 status to tfile if trace is stopped by command 'tstop'.
4422 2013-03-14 Yao Qi <yao@codesourcery.com>
4424 * tracepoint.c (tfile_write_status): Write trace notes and user
4425 name into tfile if they are not NULL.
4427 2013-03-14 Hui Zhu <hui@codesourcery.com>
4428 Yao Qi <yao@codesourcery.com>
4430 * Makefile.in (REMOTE_OBS): Add ctf.o.
4431 (SFILES): Add ctf.c.
4432 (HFILES_NO_SRCDIR): Add ctf.h.
4433 * ctf.c, ctf.h: New files.
4434 * tracepoint.c: Include 'ctf.h'.
4435 (collect_pseudocommand): Remove static.
4436 (trace_save_command): Parse option "-ctf".
4437 Produce different trace file writers per option.
4438 Adjust output message.
4439 (trace_save_tfile, trace_save_ctf): New.
4440 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
4441 * mi/mi-main.c: Include 'ctf.h'.
4442 (mi_cmd_trace_save): Handle option '-ctf'. Call either
4443 trace_save_tfile or trace_save_ctf.
4444 * NEWS: Mention these changes.
4446 2013-03-14 Yao Qi <yao@codesourcery.com>
4448 * tracepoint.c (trace_file_writer_xfree): New.
4449 (struct tfile_writer_data): New.
4450 (tfile_dtor, tfile_can_target_save, tfile_start): New.
4451 (tfile_write_header, tfile_write_regblock_type): New.
4452 (tfile_write_status, tfile_write_uploaded_tsv): New.
4453 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
4454 (tfile_write_raw_data, (tfile_end): New.
4455 (tfile_write_ops): New global variable.
4456 (TRACE_WRITE_R_BLOCK): New macro.
4457 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
4458 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
4459 (TRACE_WRITE_V_BLOCK): New macro.
4460 (trace_save): Add extra one parameter WRITER. Make it static.
4461 Use WRITER to writer trace.
4462 (tfile_trace_file_writer_new): New.
4463 (trace_save_command): Caller update.
4464 (trace_save_tfile): Write trace data in TFILE format.
4465 * tracepoint.h (struct trace_frame_write_ops): New.
4466 (struct trace_file_write_ops): New.
4467 (struct trace_file_writer): New.
4468 (trace_save): Remove its declaration.
4469 (trace_save_tfile): Declare it.
4470 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
4471 instead of trace_save.
4473 2013-03-13 Pedro Alves <palves@redhat.com>
4475 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
4477 2013-03-13 Pedro Alves <palves@redhat.com>
4479 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
4481 * demangle.c (current_demangling_style_string): Make it const.
4482 (set_demangling_command): Assert the demangling style is known.
4483 Remove all handling of unknown styles. Set
4484 'current_demangling_style_string' to an element of the
4485 demangling_style_names array.
4486 (set_demangling_style): Delete.
4487 (_initialize_demangler): Set current_demangling_style_string to the
4488 element of the demangling_style_names array that corresponds to
4489 the default demangling style. Remove FIXME note. Don't call
4490 set_demangling_style.
4491 * gdb-demangle.h (set_demangling_style): Remove declaration.
4493 2013-03-13 Pedro Alves <palves@redhat.com>
4495 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
4497 (ada_make_symbol_completion_list): Make "text0" parameter const.
4498 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
4499 * breakpoint.c (condition_completer): Make "text" and "word"
4500 parameters const. Adjust.
4501 (check_tracepoint_command): Adjust to validate_actionline
4503 (catch_syscall_completer): Make "text" and "word" parameters
4505 * cli/cli-cmds.c (show_user): Make "comname" local const.
4506 (valid_command_p): Make "command" parameter const.
4507 (alias_command): Make "alias_prefix" and "command_prefix" locals
4509 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
4510 (add_alias_cmd): Make "name" and "oldname" parameters const.
4511 Adjust. No longer make copy of OLDNAME.
4512 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
4513 (add_setshow_cmd_full, add_setshow_enum_cmd)
4514 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4515 (add_setshow_filename_cmd, add_setshow_string_cmd)
4516 (add_setshow_string_noescape_cmd)
4517 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
4518 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
4519 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
4520 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
4521 Make "name" parameter const.
4522 (help_cmd): Rename "command" parameter to "arg". New const local
4524 (find_cmd): Make "command" parameter const.
4525 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
4526 deprecated_cmd_warning prototype change.
4527 (undef_cmd_error): Make "cmdtype" parameter const.
4528 (lookup_cmd): Make "line" parameter const.
4529 (deprecated_cmd_warning): Change type of "text" parameter to
4530 pointer to const char, from pointer to pointer to char. Adjust.
4531 (lookup_cmd_composition): Make "text" parameter const.
4532 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
4534 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
4536 * cli/cli-script.c (validate_comname): Make "tem" local const.
4537 (define_command): New const local "tem_c". Use it in calls to
4539 (document_command): Make "tem" and "comfull" locals const.
4540 (show_user_1): Make "prefix" and "name" parameters const.
4541 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
4543 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
4544 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
4545 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
4546 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
4547 (complete_on_enum, add_setshow_enum_cmd)
4548 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4549 (add_setshow_filename_cmd, add_setshow_string_cmd)
4550 (add_setshow_string_noescape_cmd)
4551 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
4552 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
4553 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
4554 Change prototypes, constifying strings.
4555 * completer.c (noop_completer, filename_completer): Make "text"
4556 and "prefix" parameters const.
4557 (location_completer, expression_completer)
4558 (complete_line_internal): Make "text" and "prefix" parameters
4560 (command_completer, signal_completer): Make "text" and "prefix"
4562 * completer.h (noop_completer, filename_completer)
4563 (expression_completer, location_completer, command_completer)
4564 (signal_completer): Change prototypes.
4565 * corefile.c (complete_set_gnutarget): Make "text" and "word"
4567 * cp-abi.c (cp_abi_completer): Likewise.
4568 * expression.h (parse_expression_for_completion): Change
4570 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
4572 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
4573 * infrun.c (handle_completer): Make "text" and "word" parameters
4575 * interps.c (interpreter_completer): Make "text" and "word"
4577 * language.h (struct language_defn)
4578 <la_make_symbol_completion_list>: Make "text" and "word"
4580 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
4581 (parse_exp_in_context): Rename to ...
4582 (parse_exp_in_context_1): ... this.
4583 (parse_exp_in_context): Reimplement, with const hack from
4585 (parse_expression_for_completion): Make "string" parameter const.
4586 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
4587 to pointer to const char. Adjust.
4588 (print_command_1): Make "exp" parameter const.
4589 (output_command): Rename to ...
4590 (output_command_const): ... this. Make "exp" parameter const.
4591 (output_command): Reimplement.
4592 (x_command): Adjust.
4593 (display_command): Rename "exp" parameter to "arg". New "exp"
4594 local, const version of "arg".
4595 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
4596 "cmd_name" local const.
4597 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
4599 (cmdpy_completer): Make "text" and "word" parameters const.
4600 (gdbpy_parse_command_name): Make "prefix_text2" local const.
4601 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
4603 * remote.c (_initialize_remote): Make "cmd_name" local const.
4604 * symtab.c (language_search_unquoted_string): Make "text" and "p"
4605 parameters const. Adjust.
4606 (completion_list_add_fields): Make "sym_text", "text" and "word"
4608 (struct add_name_data) <sym_text, text, word>: Make fields const.
4609 (default_make_symbol_completion_list_break_on): Make "text" and
4610 "word" parameters const. Adjust locals.
4611 (default_make_symbol_completion_list)
4612 (make_symbol_completion_list, make_symbol_completion_type)
4613 (make_symbol_completion_list_fn): Make "text" and "word"
4615 (make_file_symbol_completion_list): Make "text", "word" and
4616 "srcfile" parameters const. Adjust locals.
4617 (add_filename_to_list): Make "text" and "word" parameters const.
4618 (struct add_partial_filename_data) <text, word>: Make fields
4620 (make_source_files_completion_list): Make "text" and "word"
4622 * symtab.h (default_make_symbol_completion_list_break_on)
4623 (default_make_symbol_completion_list, make_symbol_completion_list)
4624 (make_symbol_completion_type enum type_code)
4625 (make_symbol_completion_list_fn make_file_symbol_completion_list)
4626 (make_source_files_completion_list): Change prototype.
4627 * top.c (execute_command): Adjust to pass pointer to pointer to
4628 const char to lookup_cmd, and to deprecated_cmd_warning prototype
4630 (set_verbose): Make "cmdname" local const.
4631 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
4633 (validate_actionline): Make "line" parameter a pointer to const
4635 (encode_actions_1): Make "action_exp" local const, and adjust.
4636 (encode_actions): Adjust.
4637 (replace_comma): Delete.
4638 (trace_dump_actions): Make "action_exp" and "next_comma" locals
4639 const, and adjust. Don't frob the action string while splitting
4640 it at commas. Instead, make a copy of each split substring in
4642 (trace_dump_command): Adjust to validate_actionline prototype
4644 * tracepoint.h (decode_agent_options, decode_agent_options)
4645 (encode_actions, validate_actionline): Change prototypes.
4646 * valprint.h (output_command): Delete declaration.
4647 (output_command_const): Declare.
4648 * value.c (function_destroyer): Cast const away in xfree call.
4650 2013-03-13 Pedro Alves <palves@redhat.com>
4652 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
4653 rather than casting 'const char * const *' to 'const char **'.
4654 * ada-lex.l (processInt): Make "trailer" local const. Remove
4655 'const char **' cast.
4656 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
4657 locals, and use those as strtol output pointer, instead than doing
4658 invalid casts to from 'const char **' to 'char **'.
4659 (_initialize_demangle): Remove cast.
4660 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
4661 locals, and use those as strtol output pointer, instead than doing
4662 invalid casts to from 'const char **' to 'char **'.
4663 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
4665 * stap-probe.c (stap_parse_register_operand)
4666 (stap_parse_single_operand): Likewise.
4668 2013-03-13 Yao Qi <yao@codesourcery.com>
4670 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
4671 the last matched 'V' blcok in trace frame.
4673 2013-03-12 Joel Brobecker <brobecker@adacore.com>
4675 * NEWS: Create a new section for the next release branch.
4676 Rename the section of the current branch, now that it has
4679 2013-03-12 Joel Brobecker <brobecker@adacore.com>
4681 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
4682 * version.in: Bump version to 7.6.50.20130312-cvs.
4684 2013-03-12 Keith Seitz <keiths@redhat.com>
4686 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
4687 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
4688 Remove temporary copy of input string.
4689 (mi_execute_command_wrapper): Make "cmd" const.
4690 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
4691 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
4693 (mi_parse): Make "cmd" const.
4695 * mi/mi-parse.h (mi_parse): Make "cmd" const.
4697 2013-03-12 Keith Seitz <keiths@redhat.com>
4699 * ada-lang.c (ada_read_renaming_var_value): Pass const
4700 pointer to expression string to parse_exp_1.
4701 (create_excep_cond_exprs): Likewise.
4702 * ax-gdb.c (agent_eval_command_one): Likewise.
4703 (maint_agent_printf_command): Likewise.
4704 Constify much of the string handling/parsing.
4705 * breakpoint.c (set_breakpoint_condition): Pass const
4706 pointer to expression string to parse_exp_1.
4707 (update_watchpoint): Likewise.
4708 (parse_cmd_to_aexpr): Constify string handling.
4709 Pass const pointer to parse_exp_1.
4710 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
4711 (find_condition_and_thread): Likewise.
4713 (watch_command_1): Make "arg" const.
4714 Constify string handling.
4715 Copy the expression string instead of changing the input
4717 (update_breakpoint_location): Pass const pointer to
4719 * eval.c (parse_and_eval_address): Make "exp" const.
4720 (parse_to_comma_and_eval): Make "expp" const.
4721 (parse_and_eval): Make "exp" const.
4722 * expression.h (parse_expression): Make argument const.
4723 (parse_exp_1): Make first argument const.
4724 * findcmd.c (parse_find_args): Treat "args" as const.
4725 * linespec.c (parse_linespec): Pass const pointer to
4726 linespec_expression_to_pc.
4727 (linespec_expression_to_pc): Make "exp_ptr" const.
4728 * parse.c (parse_exp_1): Make "stringptr" const.
4729 Make a copy of the expression to pass to parse_exp_in_context until
4730 this whole interface can be constified.
4731 (parse_expression): Make "string" const.
4732 * printcmd.c (ui_printf): Treat "arg" as const.
4733 Handle const strings.
4734 * tracepoint.c (validate_actionline): Pass const pointer to
4735 all calls to parse_exp_1.
4736 (encode_actions_1): Likewise.
4737 * value.h (parse_to_comma_and_eval): Make argument const.
4738 (parse_and_eval_address): Likewise.
4739 (parse_and_eval): Likewise.
4740 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
4741 (varobj_set_value): Likewise.
4742 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
4743 constify string handling.
4744 Pass const pointers to parse_and_eval_address and
4745 parse_to_comman_and_eval.
4746 * cli/cli-utils.c (skip_to_space): Rename to ...
4747 (skip_to_space_const): ... this. Handle const strings.
4748 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
4749 skip_to_space_const.
4750 (skip_to_space_const): Declare.
4751 * common/format.c (parse_format_string): Make "arg" const.
4752 Handle const strings.
4753 * common/format.h (parse_format_string): Make "arg" const.
4754 * gdbserver/ax.c (ax_printf): Make "format" const.
4755 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
4756 of the expression string.
4758 2013-03-12 Hui Zhu <hui@codesourcery.com>
4760 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
4762 2013-03-12 Yao Qi <yao@codesourcery.com>
4763 Hui Zhu <hui@codesourcery.com>
4765 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
4766 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
4769 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
4771 * ada-lex.l (rules): Only recognize 'thread' as a
4772 delimiter when followed by numerals, as for c-exp.y.
4773 Use new rewind_to_char function to rewind the input for
4774 expression-delimiting tokens.
4775 (rewind_to_char): New function.
4777 2013-03-11 Pedro Alves <palves@redhat.com>
4778 Jan Kratochvil <jan.kratochvil@redhat.com>
4780 * configure: Regenerate.
4781 * configure.ac (check dynamic export flag): Link python test with
4784 2013-03-11 Doug Evans <dje@google.com>
4785 Keith Seitz <keiths@redhat.com>
4787 * linespec.c (find_linespec_symbols): Call find_function_symbols
4788 first, and then call lookup_prefix_sym/find_method.
4790 2013-03-11 Pedro Alves <palves@redhat.com>
4792 * charset.c (convert_between_encodings): Don't cast between
4793 different pointer to pointer types. Instead, make the 'inp' local
4794 be of the type iconv expects.
4795 (wchar_iterate): Don't cast between different pointer to pointer
4796 types. Instead, use new pointer local of the type iconv expects.
4797 * target.c (target_read_stralloc, target_fileio_read_stralloc):
4798 Add new local of type char pointer, and use it to get a
4799 char/string view of the byte buffer, instead of casting between
4800 pointer to pointer types.
4802 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
4804 * remote.c (remote_set_trace_buffer_size): Move != operator
4805 to the start of next line to fix an ARI warning.
4807 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4809 * NEWS: Add record changes.
4811 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4813 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
4814 the instruction history disassembly.
4815 * disasm.c (dump_insns): Omit the pc prefix, if requested.
4816 * disasm.h (DISASSEMBLY_OMIT_PC): New.
4818 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4820 * Makefile.in (SFILES): Add record-btrace.c
4821 (COMMON_OBS): Add record-btrace.o
4822 * record-btrace.c: New.
4823 * objfiles.c: Include btrace.h.
4824 (free_objfile): call btrace_free_objfile.
4826 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4828 * target.c (target_call_history, target_call_history_from,
4829 target_call_history_range): New.
4830 * target.h (target_ops) <to_call_history, to_call_history_from,
4831 to_call_history_range>: New fields.
4832 (target_call_history, target_call_history_from,
4833 target_call_history_range): New declaration.
4834 * record.c (get_call_history_modifiers, cmd_record_call_history,
4835 record_call_history_size): New.
4836 (_initialize_record): Add the "record function-call-history" command.
4837 Add "set/show record function-call-history-size" commands.
4838 * record.h (record_print_flag): New.
4840 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4842 * target.h (target_ops) <to_insn_history, to_insn_history_from,
4843 to_insn_history_range>: New fields.
4844 (target_insn_history): New.
4845 (target_insn_history_from): New.
4846 (target_insn_history_range): New.
4847 * target.c (target_insn_history): New.
4848 (target_insn_history_from): New.
4849 (target_insn_history_range): New.
4850 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
4851 (record_insn_history_size): New.
4852 (get_insn_number): New.
4853 (get_context_size): New.
4855 (get_insn_history_modifiers): New.
4856 (cmd_record_insn_history): New.
4857 (_initialize_record): Add "set/show record instruction-history-size"
4858 command. Add "record instruction-history" command.
4860 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4862 * record.h (record_disconnect): New.
4863 (record_detach): New.
4864 (record_mourn_inferior): New.
4866 * record-full.c (record_disconnect, record_detach,
4867 record_mourn_inferior, record_kill): Move to...
4868 * record.c: ...here.
4871 (record_unpush): New.
4872 (cmd_record_stop): Call record_stop. Replace unpush_target
4873 call with record_unpush call.
4874 (record_disconnect, record_detach): Assert that the target
4875 is of record stratum. Call record_unpush, record_stop, and
4877 (record_mourn_inferior, record_kill): Assert that the target
4878 is of record stratum. Call record_unpush and DEBUG.
4880 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4882 * record-full.h, record-full.c (record_memory_query): Rename
4884 (record_full_memory_query): ...this. Update all users.
4885 (record_arch_list_add_reg): Rename to ...
4886 (record_full_arch_list_add_reg): ...this. Update all users.
4887 (record_arch_list_add_mem): Rename to ...
4888 (record_full_arch_list_add_mem): ...this. Update all users.
4889 (record_arch_list_add_end): Rename to ...
4890 (record_full_arch_list_add_end): ...this. Update all users.
4891 (record_gdb_operation_disable_set): Rename to ...
4892 (record_full_gdb_operation_disable_set): ...this.
4895 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4897 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
4898 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
4899 (RECORD_IS_REPLAY): Renamed to ...
4900 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
4901 (RECORD_FILE_MAGIC): Renamed to ...
4902 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
4903 (record_mem_entry): Renamed to ...
4904 (record_full_mem_entry): ... this. Updated all users.
4905 (record_reg_entry): Renamed to ...
4906 (record_full_reg_entry): ... this. Updated all users.
4907 (record_end_entry): Renamed to ...
4908 (record_full_end_entry): ... this. Updated all users.
4909 (record_type) <record_end, record_reg, record_mem>: Renamed
4911 (record_full_type) <record_full_end, record_full_reg,
4912 record_full_mem>: ... this. Updated all users.
4913 (record_entry): Renamed to ...
4914 (record_full_entry): ... this. Updated all users.
4915 (record_core_buf_entry): Renamed to ...
4916 (record_full_core_buf_entry): ... this. Updated all users.
4917 (record_core_regbuf): Renamed to ...
4918 (record_full_core_regbuf): ... this. Updated all users.
4919 (record_core_start): Renamed to ...
4920 (record_full_core_start): ... this. Updated all users.
4921 (record_core_end): Renamed to ...
4922 (record_full_core_end): ... this. Updated all users.
4923 (record_core_buf_list): Renamed to ...
4924 (record_full_core_buf_list): ... this. Updated all users.
4925 (record_first): Renamed to ...
4926 (record_full_first): ... this. Updated all users.
4927 (record_list): Renamed to ...
4928 (record_full_list): ... this. Updated all users.
4929 (record_arch_list_head): Renamed to ...
4930 (record_full_arch_list_head): ... this. Updated all users.
4931 (record_arch_list_tail): Renamed to ...
4932 (record_full_arch_list_tail): ... this. Updated all users.
4933 (record_stop_at_limit): Renamed to ...
4934 (record_full_stop_at_limit): ... this. Updated all users.
4935 (record_insn_max_num): Renamed to ...
4936 (record_full_insn_max_num): ... this. Updated all users.
4937 (record_insn_num): Renamed to ...
4938 (record_full_insn_num): ... this. Updated all users.
4939 (record_insn_count): Renamed to ...
4940 (record_full_insn_count): ... this. Updated all users.
4941 (record_ops): Renamed to ...
4942 (record_full_ops): ... this. Updated all users.
4943 (record_core_ops): Renamed to ...
4944 (record_full_core_ops): ... this. Updated all users.
4945 (set_record_cmdlist): Renamed to ...
4946 (set_record_full_cmdlist): ... this. Updated all users.
4947 (show_record_cmdlist): Renamed to ...
4948 (show_record_full_cmdlist): ... this. Updated all users.
4949 (record_cmdlist): Renamed to ...
4950 (record_full_cmdlist): ... this. Updated all users.
4951 (record_beneath_to_resume_ops): Renamed to ...
4952 (record_full_beneath_to_resume_ops): ... this. Updated all users.
4953 (record_beneath_to_resume): Renamed to ...
4954 (record_full_beneath_to_resume): ... this. Updated all users.
4955 (record_beneath_to_wait_ops): Renamed to ...
4956 (record_full_beneath_to_wait_ops): ... this. Updated all users.
4957 (record_beneath_to_wait): Renamed to ...
4958 (record_full_beneath_to_wait): ... this. Updated all users.
4959 (record_beneath_to_store_registers_ops): Renamed to ...
4960 (record_full_beneath_to_store_registers_ops): ... this.
4962 (record_beneath_to_store_registers): Renamed to ...
4963 (record_full_beneath_to_store_registers): ... this.
4965 (record_beneath_to_xfer_partial_ops): Renamed to ...
4966 (record_full_beneath_to_xfer_partial_ops): ... this.
4968 (record_beneath_to_xfer_partial): Renamed to ...
4969 (record_full_beneath_to_xfer_partial): ... this.
4971 (record_beneath_to_insert_breakpoint): Renamed to ...
4972 (record_full_beneath_to_insert_breakpoint): ... this.
4974 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
4975 (record_full_beneath_to_stopped_by_watchpoint): ... this.
4977 (record_beneath_to_stopped_data_address): Renamed to ...
4978 (record_full_beneath_to_stopped_data_address): ... this.
4980 (record_beneath_to_async): Renamed to ...
4981 (record_full_beneath_to_async): ... this. Updated all users.
4982 (record_goto_insn): Renamed to ...
4983 (record_full_goto_insn): ... this. Updated all users.
4984 (record_save): Renamed to ...
4985 (record_full_save): ... this. Updated all users.
4986 (record_reg_alloc): Renamed to ...
4987 (record_full_reg_alloc): ... this. Updated all users.
4988 (record_reg_release): Renamed to ...
4989 (record_full_reg_release): ... this. Updated all users.
4990 (record_mem_alloc): Renamed to ...
4991 (record_full_mem_alloc): ... this. Updated all users.
4992 (record_mem_release): Renamed to ...
4993 (record_full_mem_release): ... this. Updated all users.
4994 (record_end_alloc): Renamed to ...
4995 (record_full_end_alloc): ... this. Updated all users.
4996 (record_end_release): Renamed to ...
4997 (record_full_end_release): ... this. Updated all users.
4998 (record_entry_release): Renamed to ...
4999 (record_full_entry_release): ... this. Updated all users.
5000 (record_list_release): Renamed to ...
5001 (record_full_list_release): ... this. Updated all users.
5002 (record_list_release_following): Renamed to ...
5003 (record_full_list_release_following): ... this.
5005 (record_list_release_first): Renamed to ...
5006 (record_full_list_release_first): ... this. Updated all users.
5007 (record_arch_list_add): Renamed to ...
5008 (record_full_arch_list_add): ... this. Updated all users.
5009 (record_get_loc): Renamed to ...
5010 (record_full_get_loc): ... this. Updated all users.
5011 (record_check_insn_num): Renamed to ...
5012 (record_full_check_insn_num): ... this. Updated all users.
5013 (record_arch_list_cleanups): Renamed to ...
5014 (record_full_arch_list_cleanups): ... this. Updated all users.
5015 (record_message): Renamed to ...
5016 (record_full_message): ... this. Updated all users.
5017 (record_message_wrapper): Renamed to ...
5018 (record_full_message_wrapper): ... this. Updated all users.
5019 (record_message_wrapper_safe): Renamed to ...
5020 (record_full_message_wrapper_safe): ... this. Updated all users.
5021 (record_gdb_operation_disable): Renamed to ...
5022 (record_full_gdb_operation_disable): ... this. Updated all users.
5023 (record_hw_watchpoint): Renamed to ...
5024 (record_full_hw_watchpoint): ... this. Updated all users.
5025 (record_exec_insn): Renamed to ...
5026 (record_full_exec_insn): ... this. Updated all users.
5027 (record_restore): Renamed to ...
5028 (record_full_restore): ... this. Updated all users.
5029 (record_async_inferior_event_token): Renamed to ...
5030 (record_full_async_inferior_event_token): ... this.
5032 (record_async_inferior_event_handler): Renamed to ...
5033 (record_full_async_inferior_event_handler): ... this.
5035 (record_core_open_1): Renamed to ...
5036 (record_full_core_open_1): ... this. Updated all users.
5037 (record_open_1): Renamed to ...
5038 (record_full_open_1): ... this. Updated all users.
5039 (record_open): Renamed to ...
5040 (record_full_open): ... this. Updated all users.
5041 (record_close): Renamed to ...
5042 (record_full_close): ... this. Updated all users.
5043 (record_resume_step): Renamed to ...
5044 (record_full_resume_step): ... this. Updated all users.
5045 (record_resumed): Renamed to ...
5046 (record_full_resumed): ... this. Updated all users.
5047 (record_execution_dir): Renamed to ...
5048 (record_full_execution_dir): ... this. Updated all users.
5049 (record_resume): Renamed to ...
5050 (record_full_resume): ... this. Updated all users.
5051 (record_get_sig): Renamed to ...
5052 (record_full_get_sig): ... this. Updated all users.
5053 (record_sig_handler): Renamed to ...
5054 (record_full_sig_handler): ... this. Updated all users.
5055 (record_wait_cleanups): Renamed to ...
5056 (record_full_wait_cleanups): ... this. Updated all users.
5057 (record_wait_1): Renamed to ...
5058 (record_full_wait_1): ... this. Updated all users.
5059 (record_wait): Renamed to ...
5060 (record_full_wait): ... this. Updated all users.
5061 (record_stopped_by_watchpoint): Renamed to ...
5062 (record_full_stopped_by_watchpoint): ... this. Updated all users.
5063 (record_disconnect): Renamed to ...
5064 (record_full_disconnect): ... this. Updated all users.
5065 (record_detach): Renamed to ...
5066 (record_full_detach): ... this. Updated all users.
5067 (record_mourn_inferior): Renamed to ...
5068 (record_full_mourn_inferior): ... this. Updated all users.
5069 (record_kill): Renamed to ...
5070 (record_full_kill): ... this. Updated all users.
5071 (record_stopped_data_address): Renamed to ...
5072 (record_full_stopped_data_address): ... this. Updated all users.
5073 (record_registers_change): Renamed to ...
5074 (record_full_registers_change): ... this. Updated all users.
5075 (record_store_registers): Renamed to ...
5076 (record_full_store_registers): ... this. Updated all users.
5077 (record_xfer_partial): Renamed to ...
5078 (record_full_xfer_partial): ... this. Updated all users.
5079 (record_breakpoint): Renamed to ...
5080 (record_full_breakpoint): ... this. Updated all users.
5081 (record_breakpoint_p): Renamed to ...
5082 (record_full_breakpoint_p): ... this. Updated all users.
5083 (record_breakpoints): Renamed to ...
5084 (record_full_breakpoints): ... this. Updated all users.
5085 (record_sync_record_breakpoints): Renamed to ...
5086 (record_full_sync_record_breakpoints): ... this.
5088 (record_init_record_breakpoints): Renamed to ...
5089 (record_full_init_record_breakpoints): ... this.
5091 (record_insert_breakpoint): Renamed to ...
5092 (record_full_insert_breakpoint): ... this. Updated all users.
5093 (record_remove_breakpoint): Renamed to ...
5094 (record_full_remove_breakpoint): ... this. Updated all users.
5095 (record_can_execute_reverse): Renamed to ...
5096 (record_full_can_execute_reverse): ... this. Updated all users.
5097 (record_get_bookmark): Renamed to ...
5098 (record_full_get_bookmark): ... this. Updated all users.
5099 (record_goto_bookmark): Renamed to ...
5100 (record_full_goto_bookmark): ... this. Updated all users.
5101 (record_async): Renamed to ...
5102 (record_full_async): ... this. Updated all users.
5103 (record_can_async_p): Renamed to ...
5104 (record_full_can_async_p): ... this. Updated all users.
5105 (record_is_async_p): Renamed to ...
5106 (record_full_is_async_p): ... this. Updated all users.
5107 (record_execution_direction): Renamed to ...
5108 (record_full_execution_direction): ... this. Updated all users.
5109 (record_info): Renamed to ...
5110 (record_full_info): ... this. Updated all users.
5111 (record_delete): Renamed to ...
5112 (record_full_delete): ... this. Updated all users.
5113 (record_is_replaying): Renamed to ...
5114 (record_full_is_replaying): ... this. Updated all users.
5115 (record_goto_entry): Renamed to ...
5116 (record_full_goto_entry): ... this. Updated all users.
5117 (record_goto_begin): Renamed to ...
5118 (record_full_goto_begin): ... this. Updated all users.
5119 (record_goto_end): Renamed to ...
5120 (record_full_goto_end): ... this. Updated all users.
5121 (record_goto): Renamed to ...
5122 (record_full_goto): ... this. Updated all users.
5123 (init_record_ops): Renamed to ...
5124 (init_record_full_ops): ... this. Updated all users.
5125 (record_core_resume): Renamed to ...
5126 (record_full_core_resume): ... this. Updated all users.
5127 (record_core_kill): Renamed to ...
5128 (record_full_core_kill): ... this. Updated all users.
5129 (record_core_fetch_registers): Renamed to ...
5130 (record_full_core_fetch_registers): ... this. Updated all users.
5131 (record_core_prepare_to_store): Renamed to ...
5132 (record_full_core_prepare_to_store): ... this. Updated all users.
5133 (record_core_store_registers): Renamed to ...
5134 (record_full_core_store_registers): ... this. Updated all users.
5135 (record_core_xfer_partial): Renamed to ...
5136 (record_full_core_xfer_partial): ... this. Updated all users.
5137 (record_core_insert_breakpoint): Renamed to ...
5138 (record_full_core_insert_breakpoint): ... this. Updated all users.
5139 (record_core_remove_breakpoint): Renamed to ...
5140 (record_full_core_remove_breakpoint): ... this. Updated all users.
5141 (record_core_has_execution): Renamed to ...
5142 (record_full_core_has_execution): ... this. Updated all users.
5143 (init_record_core_ops): Renamed to ...
5144 (init_record_full_core_ops): ... this. Updated all users.
5145 (cmd_record_restore): Renamed to ...
5146 (cmd_record_full_restore): ... this. Updated all users.
5147 (record_save_cleanups): Renamed to ...
5148 (record_full_save_cleanups): ... this. Updated all users.
5149 (cmd_record_start): Renamed to ...
5150 (cmd_record_full_start): ... this. Updated all users.
5151 (set_record_insn_max_num): Renamed to ...
5152 (set_record_full_insn_max_num): ... this. Updated all users.
5153 (set_record_command): Renamed to ...
5154 (set_record_full_command): ... this. Updated all users.
5155 (show_record_command): Renamed to ...
5156 (show_record_full_command): ... this. Updated all users.
5157 (_initialize_record): Renamed to ...
5158 (_initialize_record_full): ... this. Updated all users.
5160 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5162 * record.h: Split into this and ...
5163 * record-full.h: ... this.
5164 * record.c: Split into this and ...
5165 * record-full.c: ... this.
5166 * target.h (target_ops): Add new fields to_info_record,
5167 to_save_record, to_delete_record, to_record_is_replaying,
5168 to_goto_record_begin, to_goto_record_end, to_goto_record.
5169 (target_info_record): New.
5170 (target_save_record): New.
5171 (target_supports_delete_record): New.
5172 (target_delete_record): New.
5173 (target_record_is_replaying): New.
5174 (target_goto_record_begin): New.
5175 (target_goto_record_end): New.
5176 (target_goto_record): New.
5177 * target.c (target_info_record): New.
5178 (target_save_record): New.
5179 (target_supports_delete_record): New.
5180 (target_delete_record): New.
5181 (target_record_is_replaying): New.
5182 (target_goto_record_begin): New.
5183 (target_goto_record_end): New.
5184 (target_goto_record): New.
5185 * record.h: Declare struct cmd_list_element.
5186 (record_cmdlist): New declaration.
5187 (set_record_cmdlist): New declaration.
5188 (show_record_cmdlist): New declaration.
5189 (info_record_cmdlist): New declaration.
5190 (cmd_record_goto): New declaration.
5191 * record.c: Remove unnecessary includes.
5193 (cmd_record_goto): Remove declaration.
5194 (record_cmdlist): Now extern. Initialize.
5195 (set_record_cmdlist): Now extern. Initialize.
5196 (show_record_cmdlist): Now extern. Initialize.
5197 (info_record_cmdlist): Now extern. Initialize.
5198 (find_record_target): New.
5199 (require_record_target): New.
5200 (cmd_record_start): Update.
5201 (cmd_record_delete): Remove target-specific code.
5202 Call target_delete_record.
5203 (cmd_record_stop): Unpush any record target.
5204 (set_record_insn_max_num): Move to record-full.c
5205 (set_record_command): Add comment.
5206 (show_record_command): Add comment.
5207 (info_record_command): Update comment.
5208 Remove target-specific code.
5209 Call the record target's to_info_record.
5210 (cmd_record_start): New.
5211 (cmd_record_goto): Now extern.
5212 Remove target-specific code.
5213 Call target_goto_begin, target_goto_end, or target_goto.
5214 (_initialize_record): Move record target ops initialization to
5216 Change "record" command help text.
5217 Move "record restore", "record set", and "record show" commands to
5219 * Makefile.in (SFILES): Add record-full.c.
5220 (HFILES_NO_SRCDIR): Add record-full.h.
5221 (COMMON_OBS): Add record-full.o.
5222 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
5223 * arm-tdep.c: Include record-full.h.
5224 * i386-linux-tdep.c: Include record-full.h instead of record.h.
5225 * i386-tdep.c: Include record-full.h.
5226 * infrun.c: Include record-full.h.
5227 * linux-record.c: Include record-full.h.
5228 * moxie-tdep.c: Include record-full.h.
5229 * record-full.c: Include record-full.h.
5230 Change module comment.
5231 (set_record_full_cmdlist): New.
5232 (show_record_full_cmdlist): New.
5233 (record_full_cmdlist): New.
5234 (record_goto_insn): New declaration.
5235 (record_save): New declaration.
5236 (record_check_insn_num): Change query string.
5238 (record_delete): New.
5239 (record_is_replaying): New.
5240 (record_goto_entry): New.
5241 (record_goto_begin): New.
5242 (record_goto_end): New.
5244 (init_record_ops): Update.
5245 (init_record_core_ops): Update.
5246 (cmd_record_save): Rename to record_save. Remove target and arg checks.
5247 (cmd_record_start): New.
5248 (set_record_insn_max_num): Moved from record.c
5249 (set_record_full_command): New.
5250 (show_record_full_command): New.
5251 (_initialize_record_full): New.
5253 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5255 * target.h (add_deprecated_target_alias): New.
5256 * target.c (add_deprecated_target_alias): New.
5258 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5260 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
5262 (linux_supports_btrace): Add kernel and
5264 (kernel_supports_btrace): New function.
5265 (cpu_supports_btrace): New function.
5266 (intel_supports_btrace): New function.
5268 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5270 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
5271 * remote.c: Include btrace.h.
5272 (struct btrace_target_info): New struct.
5273 (remote_supports_btrace): New function.
5274 (send_Qbtrace): New function.
5275 (remote_enable_btrace): New function.
5276 (remote_disable_btrace): New function.
5277 (remote_teardown_btrace): New function.
5278 (remote_read_btrace): New function.
5279 (init_remote_ops): Add btrace ops.
5280 (enum <unnamed>): Add btrace packets.
5281 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
5282 (_initialize_remote): Add packet configuration for branch tracing.
5284 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5286 * features/btrace.dtd: New file.
5287 * Makefile.in (XMLFILES): Add btrace.dtd.
5288 * btrace.h (parse_xml_btrace): New declaration.
5289 * btrace.c: Include xml-support.h.
5290 (parse_xml_btrace): New function.
5291 (parse_xml_btrace_block): New function.
5292 (block_attributes): New struct.
5293 (btrace_attributes): New struct.
5294 (btrace_children): New struct.
5295 (btrace_elements): New struct.
5297 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5299 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
5300 (amd64_linux_enable_btrace): New.
5301 (amd64_linux_disable_btrace): New.
5302 (amd64_linux_teardown_btrace): New.
5303 (_initialize_amd64_linux_nat): Initialize btrace ops.
5304 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
5305 (i386_linux_enable_btrace): New.
5306 (i386_linux_disable_btrace): New.
5307 (i386_linux_teardown_btrace): New.
5308 (_initialize_i386_linux_nat): Initialize btrace ops.
5309 * config/i386/linux.mh: Add linux-btrace.o.
5310 * config/i386/linux64.mh: Add linux-btrace.o.
5312 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5314 * common/linux_btrace.h: New file.
5315 * common/linux_btrace.c: New file.
5316 * Makefile.in (SFILES): Add btrace.c.
5317 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
5318 (COMMON_OBS): Add btrace.o.
5319 (linux-btrace.o): New rule.
5321 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5323 * target.h: Include btrace.h.
5324 (struct target_ops) <to_supports_btrace, to_enable_btrace,
5325 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
5326 * target.c (target_supports_btrace): New function.
5327 (target_enable_btrace): New function.
5328 (target_disable_btrace): New function.
5329 (target_teardown_btrace): New function.
5330 (target_read_btrace): New function.
5331 * btrace.h: New file.
5332 * btrace.c: New file.
5333 * Makefile.in: Add btrace.c.
5334 * gdbthread.h: Include btrace.h.
5335 (struct thread_info): Add btrace field.
5336 * thread.c: Include btrace.h.
5337 (clear_thread_inferior_resources): Call target_teardown_btrace.
5338 * common/btrace-common.h: New file.
5340 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5342 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
5343 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
5344 kill_status to outer block.
5346 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5348 Fix entry-values if the callee called a noreturn function.
5349 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5350 get_frame_address_in_block. Add new comment.
5352 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5354 Fix entry-values in C++ across CUs.
5355 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
5356 lookup_minimal_symbol. Add a comment.
5358 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
5361 2013-03-08 Yao Qi <yao@codesourcery.com>
5363 * tracepoint.c (_initialize_tracepoint): Indent the code.
5365 2013-03-08 Pedro Alves <palves@redhat.com>
5367 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
5368 (parse_find_args, find_command): Change type of pattern buffer
5369 locals to 'gdb_byte *'.
5371 2013-03-08 Stan Shebs <stan@codesourcery.com>
5372 Hafiz Abid Qadeer <abidh@codesourcery.com>
5374 * NEWS: Mention set and show trace-buffer-size commands.
5376 * target.h (struct target_ops): New method
5377 to_set_trace_buffer_size.
5378 (target_set_trace_buffer_size): New macro.
5379 * target.c (update_current_target): Set up new method.
5380 * tracepoint.c (trace_buffer_size): New global.
5381 (start_tracing): Send it to the target.
5382 (set_trace_buffer_size): New function.
5383 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
5384 * remote.c (remote_set_trace_buffer_size): New function.
5385 (_initialize_remote): Use it.
5386 (QTBuffer:size) New remote command.
5387 (PACKET_QTBuffer_size): New enum.
5388 (remote_protocol_features): Add an entry for
5389 PACKET_QTBuffer_size.
5391 2013-03-08 Tom Tromey <tromey@redhat.com>
5393 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
5396 2013-03-07 Pedro Alves <palves@redhat.com>
5398 * target.c (target_read_stralloc, target_fileio_read_alloc):
5399 *Cast pointer to 'gdb_byte *' in target call.
5401 2013-03-07 Pedro Alves <palves@redhat.com>
5403 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
5406 2013-03-07 Keith Seitz <keiths@redhat.com>
5408 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
5409 (trace_pass_command): Likewise.
5410 * cli/cli-cmds.c: Include cli/cli-utils.h.
5411 (source_command): Use skip-spaces.
5412 (disassemble_command): Likewise.
5413 * findcmd.c: Include cli/cli-utils.h.
5414 (parse_find_args): Use skip_spaces.
5415 * go32-nat.c: Include cli/cli-utils.h.
5416 (go32_sldt): Use skip_spaces.
5417 (go32_sgdt): Likewise.
5418 (go32_sidt): Likewise.
5419 (go32_pde): Likewise.
5420 (go32_pte): Likewise.
5421 (go32_pte_for_address): Likewise.
5422 * infcmd.c: Include cli/cli-utils.h.
5423 (registers_info): Use skip_spaces.
5424 * linux-tdep.c (read_mapping): Use skip_spaces_const.
5425 (linux_info_proc): Likewise.
5426 * linux-thread-db.c: Include cli/cli-utils.h.
5427 (info_auto_load_libthread_db): Use skip_spaces_const.
5428 * m32r-rom.c: Include cli/cli-utils.h.
5429 (m32r_upload_command): Use skip_spaces.
5430 * maint.c: Include cli/cli-utils.h.
5431 (maintenance_translate_address): Use skip_spaces.
5432 * mi/mi-parse.c: Include cli/cli-utils.h.
5433 (mi_parse_argv): Use skip_spaces.
5434 (mi_parse): Likewise.
5435 * minsyms.c: Include cli/cli-utils.h.
5436 (msymbol_hash_iw): Use skip_spaces_const.
5437 * objc-lang.c: Include cli/cli-utils.h.
5438 (parse_selector): Use skip_spaces.
5439 (parse_method): Likewise.
5440 * python/python.c: Include cli/cli-utils.h.
5441 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
5442 (python_command)[HAVE_PYTHON]: Likewise.
5443 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
5444 * remote-m32r-sdi.c: Include cli/cli-utils.h.
5445 (m32r_load): Use skip_spaces.
5446 * serial.c: Include cli/cli-utils.h.
5447 (serial_open): Use skip_spaces_const.
5448 * stack.c: Include cli/cli-utils.h.
5449 (parse_frame_specification_1): Use skip_spaces_const.
5450 * symfile.c: Include cli/cli-utils.h.
5451 (set_ext_lang_command): Use skip_spaces.
5452 * symtab.c: Include cli/cli-utils.h.
5453 (rbreak_command): Use skip_spaces.
5454 * thread.c (thread_name_command): Use skip_spaces.
5455 * tracepoint.c (validate_actionline): Use skip_spaces.
5456 (encode_actions_1): Likewise.
5457 (trace_find_range_command): Likewise.
5458 (trace_find_outside_command): Likewise.
5459 (trace_dump_actions): Likewise.
5461 2013-03-07 Pedro Alves <palves@redhat.com>
5463 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
5464 * expprint.c (print_subexp_standard): Likewise.
5465 * utils.c (host_char_to_target): Likewise.
5466 * valprint.c (generic_emit_char, generic_printstr): Likewise.
5467 * varobj.c (value_get_print_value): Change type of local to char*.
5468 Cast it gdb_byte * in call to language printer.
5470 2013-03-07 Pedro Alves <palves@redhat.com>
5472 * charset.c (struct wchar_iterator) <input>: Change type to 'const
5474 (make_wchar_iterator): Remove cast to char*.
5475 (wchar_iterate): Change type of local.
5477 2013-03-07 Pedro Alves <palves@redhat.com>
5479 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
5480 for 'regcache->register_status'.
5482 2013-03-07 Pedro Alves <palves@redhat.com>
5484 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
5487 2013-03-07 Pedro Alves <palves@redhat.com>
5489 * stap-probe.c (handle_stap_probe): Add cast to char*.
5491 2013-03-07 Pedro Alves <palves@redhat.com>
5493 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
5494 RECORD_MSGRCV>: Pass a signed variable to
5495 regcache_raw_read_signed, instead of an unsigned one.
5497 2013-03-07 Pedro Alves <palves@redhat.com>
5499 * remote-notif.c (notif_debug): Change type to int.
5500 * remote-notif.h (notif_debug): Likewise.
5502 2013-03-07 Pedro Alves <palves@redhat.com>
5504 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
5506 2013-03-07 Pedro Alves <palves@redhat.com>
5508 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
5509 * remote.h (hex2bin, bin2hex): ... here.
5510 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
5512 2013-03-07 Eli Zaretskii <eliz@gnu.org>
5514 * utils.c (initialize_utils): Improve doc strings of "set/show
5515 width", "set/show height", and "set/show pagination".
5517 2013-03-06 Keith Seitz <keiths@redhat.com>
5519 * ax-gdb.c (gen_printf): Make FORMAT const.
5520 * ax-gdb.h (gen_printf): Likewise.
5521 * ax-general.c (ax_string): Make STR const.
5522 * ax.h (ax_string): Likewise.
5524 2013-03-06 Doug Evans <dje@google.com>
5526 * elfread.c (elf_symfile_read): Move debugging printf to more
5529 2013-03-06 Pedro Alves <palves@redhat.com>
5531 * python/py-utils.c (target_string_to_unicode): Delete function.
5532 * python/python-internal.h (target_string_to_unicode): Delete
5535 2013-03-06 Pierre Muller <muller@sourceware.org>
5537 * linespec.c (get_current_search_block): ARI fix, use (void)
5538 for empty parameter list.
5540 2013-03-05 Doug Evans <dje@google.com>
5542 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
5543 of old ada_lookup_symbol_list. In !full_search case, don't
5545 (ada_lookup_symbol_list): Delete arg full_search, all callers
5546 updated. Call ada_lookup_symbol_list_worker.
5547 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
5548 * ada-lang.h (ada_lookup_symbol_list): Update.
5549 * language.h (language_defn): Update comment for
5550 la_iterate_over_symbols.
5551 * linespec.c (iterate_over_file_blocks): New function.
5552 (iterate_over_all_matching_symtabs): Call it.
5553 (lookup_prefix_sym): Ditto.
5554 (get_current_search_block): New function.
5555 (get_search_block): Delete.
5556 (find_label_symbols): Call get_current_search_block.
5557 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
5558 * symtab.c (iterate_over_symbols): Don't search superblocks.
5560 2013-03-05 Yao Qi <yao@codesourcery.com>
5562 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
5563 parameter VAR's type from "unsigned int" to "int".
5564 * command.h (var_zuinteger_unlimited): Update its comments.
5565 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
5567 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
5569 * NEWS: Mention new target x86_64-*-cygwin*.
5571 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
5573 * configure.host: Add x86_64-*-cygwin* as host.
5574 * configure.tgt: Add x86_64-*-cygwin* as target.
5575 * config/i386/cygwin64.mh: New file.
5577 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5579 * linespec.c (decode_line_2): Fix duplicate request off by two message.
5581 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5583 * linespec.c (struct linespec_canonical_name): New.
5584 (struct linespec_state): Change canonical_names type to it.
5585 (add_sal_to_sals): Change variable canonical_name to canonical. Change
5586 xrealloc element size. Initialize the different CANONICAL fields.
5587 (canonical_to_fullform): New.
5588 (filter_results): Use it. Add variables canonical, fullform and
5590 (struct decode_line_2_item, decode_line_2_compare_items): New.
5591 (decode_line_2): Remove variables iter and item_names, add variables
5592 items and items_count. Modify the code for these new variables.
5594 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
5596 * coff-pe-read.c (read_pe_exported_syms): Don't return without
5599 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
5601 * tracepoint.c (build_traceframe_info): Add code for byte order.
5603 2013-03-02 Kevin Buettner <kevinb@redhat.com>
5605 * v850-tdep.c: (v850e2_register_name): Revise system register
5606 names to match current V850E2M architecture specifications.
5607 Update register number enum comments too.
5609 2013-03-01 Jiong Wang <jiwang@tilera.com>
5610 Pedro Alves <palves@redhat.com>
5612 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
5614 (tilegx_skip_prologue): Limit prologue analysis to section end.
5616 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5618 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
5621 2013-03-01 Pedro Alves <palves@redhat.com>
5623 Use gdb_byte for bytes from the program being debugged.
5625 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
5626 Change type of local 'buf' to gdb_byte.
5627 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
5628 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
5629 * cris-tdep.c (cris_sigcontext_addr)
5630 (cris_sigtramp_frame_unwind_cache): Likewise.
5631 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
5632 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
5634 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
5635 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
5636 (hppa32_hpux_search_dummy_call_sequence)
5637 (hppa_hpux_supply_save_state): Likewise.
5638 * hppa-linux-tdep.c (insns_match_pattern)
5639 (hppa_linux_find_global_pointer): Likewise.
5640 * hppa-tdep.c (hppa_in_function_epilogue_p)
5641 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5642 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
5643 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
5644 (i386fbsd_collect_uthread): Likewise.
5645 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
5646 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
5647 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
5648 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
5649 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
5650 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
5651 (ia64_libunwind_frame_prev_register)
5652 (ia64_libunwind_sigtramp_frame_this_id)
5653 (ia64_find_global_pointer_from_dynamic_section)
5654 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
5655 (ia64_unwind_pc): Likewise.
5656 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
5657 * m68hc11-tdep.c (m68hc11_push_dummy_call)
5658 (m68hc11_extract_return_value): Likewise.
5659 * m68klinux-nat.c (fetch_register, store_register): Likewise.
5660 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
5661 (mep_get_insn, mep_push_dummy_call): Likewise.
5662 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5663 (mips_linux_in_dynsym_stub): Likewise.
5664 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
5665 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5666 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
5668 * remote-mips.c (mips_set_register): Likewise.
5669 * remote-sim.c (gdbsim_fetch_register): Likewise.
5670 * score-tdep.c (score7_fetch_inst): Change type of parameter
5671 'memblock' and local 'buf' to gdb_byte.
5672 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
5673 Change type of local 'buf' to gdb_byte. Adjust.
5674 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
5676 (score7_analyze_prologue): Change type of 'memblock' and
5677 'memblock_ptr' locals to gdb_byte*.
5678 * sh64-tdep.c (sh64_extract_return_value)
5679 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
5680 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
5681 * solib-pa64.c (pa64_solib_create_inferior_hook)
5682 (pa64_open_symbol_file_object): Remove local 'buf'.
5683 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
5684 (som_open_symbol_file_object): Likewise.
5685 * solib-spu.c (spu_current_sos): Likewise.
5686 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5687 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
5688 (spu_store_registers): Likewise.
5689 * target.c (debug_print_register): Likewise.
5690 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
5691 * xstormy16-tdep.c (xstormy16_store_return_value)
5692 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
5693 (xstormy16_find_jmp_table_entry): Likewise.
5695 2013-03-01 Jiong Wang <jiwang@tilera.com>
5697 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
5698 (tilegx_gdbarch_init): Install it.
5700 2013-02-28 Tom Tromey <tromey@redhat.com>
5702 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
5705 2013-02-28 Doug Evans <dje@google.com>
5707 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
5708 * python/python.c (gdbpy_find_pc_line): Ditto.
5710 2013-02-28 Tom Tromey <tromey@redhat.com>
5712 * contrib/excheck.py: New file.
5713 * contrib/exsummary.py: New file.
5714 * contrib/gcc-with-excheck: New file.
5716 2013-02-28 Tom Tromey <tromey@redhat.com>
5718 * python/python.c (gdbpy_print_stack): Call begin_line and
5719 fprintf_filtered inside TRY_CATCH.
5721 2013-02-28 Tom Tromey <tromey@redhat.com>
5723 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
5726 2013-02-28 Tom Tromey <tromey@redhat.com>
5728 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
5729 frame_object_to_frame_info inside TRY_CATCH.
5731 2013-02-28 Tom Tromey <tromey@redhat.com>
5733 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
5736 2013-02-28 Tom Tromey <tromey@redhat.com>
5738 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
5740 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
5742 * windows-nat.c: Throughout, fix format strings and casts of
5743 printf-like functions to avoid type related warnings on all
5745 (handle_output_debug_string): Fetch context information address
5746 from debug string using string_to_core_addr.
5748 2013-02-27 Jiong Wang <jiwang@tilera.com>
5750 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
5751 * regformats/reg-tilegx32.dat: New.
5753 2013-02-27 Jiong Wang <jiwang@tilera.com>
5755 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
5757 2013-02-27 Jiong Wang <jiwang@tilera.com>
5759 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
5761 2013-02-27 Yao Qi <yao@codesourcery.com>
5762 Pedro Alves <palves@redhat.com>
5764 * tracepoint.c (tfile_trace_find): For tfind
5765 pc/tp/range/outside, look for the next trace frame instead of
5766 always starting from frame 0.
5768 2013-02-26 Anthony Green <green@moxielogic.com>
5770 * configure.tgt: Add support for moxie-*-rtems* target.
5772 2013-02-25 Pedro Alves <palves@redhat.com>
5774 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
5777 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5779 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
5780 if $fp is used as the virtual frame pointer.
5782 2013-02-23 Alan Modra <amodra@gmail.com>
5784 * elfread.c (elf_symtab_read): Do not use udata.p here to find
5786 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
5787 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
5788 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
5789 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
5791 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5794 * elfread.c (build_id_bfd_get): Make the return type const.
5795 (build_id_verify): Make the check parameter const.
5796 (build_id_to_debug_filename): Make the build_id parameter and variable
5798 (find_separate_debug_file_by_buildid): Make the variable build_id const.
5800 2013-02-21 Alan Modra <amodra@gmail.com>
5802 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
5804 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
5806 Add a new method 'disassemble' to gdb.Architecture class.
5807 * python/py-arch.c (archpy_disassmble): Implementation of the
5808 new method gdb.Architecture.disassemble.
5809 (arch_object_methods): Add entry for the new method.
5811 2013-02-20 Jiong Wang <jiwang@tilera.com>
5813 * MAINTAINERS (Write After Approval): Add myself to the list.
5815 2013-02-19 Pedro Alves <palves@redhat.com>
5817 Garbage collect 'struct monitor_ops'::load_routine.
5819 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
5820 * monitor.c (monitor_load): No longer call
5821 current_monitor->load_routine.
5822 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
5823 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
5824 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
5826 2013-02-19 Pedro Alves <palves@redhat.com>
5830 Harmonize with generic_load.
5832 * monitor.c: Include "readline/readline.h".
5833 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
5834 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
5835 long/strtol for the 'load_offset' local. Error out if no argument
5836 is given or if too many arguments are given. Tilde expand the
5837 passed in file name.
5839 2013-02-19 Kai Tietz <ktietz@redhat.com>
5842 * symfile.c (load_section_data): Change type of load_offset
5844 (generic_load): User strtoulst instead of strtoul for conversion
5847 2013-02-19 Jiong Wang <jiwang@tilera.com>
5849 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
5850 for return address, "lr" register, saved on stack.
5851 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
5852 after we invoke tilegx_analyze_prologue.
5854 2013-02-19 Jiong Wang <jiwang@tilera.com>
5856 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
5858 2013-02-19 Jiong Wang <jiwang@tilera.com>
5860 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
5862 2013-02-19 Jiong Wang <jiwang@tilera.com>
5864 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
5865 (tilegx_write_pc): New function.
5866 (tilegx_cannot_reference_register): Return zero if REGNO
5867 is TILEGX_FAULTNUM_REGNUM.
5868 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
5869 (tilegx_register_name): Add handling of "faultnum" register.
5870 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
5871 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
5872 handling of TILEGX_FAULTNUM_REGNUM.
5873 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
5875 2013-02-19 Jiong Wang <jiwang@tilera.com>
5877 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
5878 should be aligned to 64bit.
5880 2013-02-19 Kai Tietz <ktietz@redhat.com>
5882 * windows-nat.c (windows_xfer_memory): Fix debug-output
5885 2013-02-19 Lei Liu <lei.liu2@windriver.com>
5887 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
5888 Don't check DSP register number if HAVE_DSP is not set.
5890 2013-02-19 Alan Modra <amodra@gmail.com>
5892 * elfread.c (struct build_id): Delete. Use struct elf_build_id
5893 throughout file instead.
5894 (build_id_bfd_get): Update to use new elf_tdata build_id field.
5895 Don't xmalloc return value.
5896 (build_id_verify): Similarly. Don't xfree.
5897 (build_id_to_debug_filename): Update.
5898 (find_separate_debug_file_by_buildid): Update, don't xfree.
5900 2013-02-18 Tom Tromey <tromey@redhat.com>
5903 * dwarf2read.c (read_subrange_type): Use result of
5906 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
5908 * frame.c: Remove one extra white space after #include
5911 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5913 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
5915 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5917 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
5918 and dir commands into an if block.
5920 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
5922 * python/py-breakpoint (struct pybp_code): Use int instead of
5925 2013-02-15 Pedro Alves <pedro@codesourcery.com>
5926 Hafiz Abid Qadeer <abidh@codesourcery.com>
5928 * NEWS: Mention new field "trace-file".
5929 * tracepoint.c (trace_status_mi): Output "trace-file" field.
5930 (tfile_open): Record the trace file's filename in the trace
5932 (tfile_files_info): Mention the name of the trace file.
5933 Check the "filename" field explicitely.
5934 (trace_status_command): Explicitely check "filename" field.
5935 (trace_find_command): Ditto.
5936 (trace_find_pc_command): Ditto.
5937 (trace_find_tracepoint_command): Ditto.
5938 (trace_find_line_command): Ditto.
5939 (trace_find_range_command): Ditto.
5940 (trace_find_outside_command): Ditto.
5941 * tracepoint.h (struct trace_status) <from_file>: Rename it
5942 to "filename" and make it hold the trace file's filename
5943 instead of a boolean.
5944 * remote.c (remote_get_trace_status): Initialize "filename"
5945 field with NULL instead of 0.
5947 2013-02-15 Yao Qi <yao@codesourcery.com>
5949 * remote.c: Fix a typo.
5951 2013-02-14 Pierre Muller <muller@sourceware.org>
5953 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
5955 2013-02-14 Pedro Alves <palves@redhat.com>
5957 * utils.c (savestring): Don't #undef it. Move function to
5958 common/common-utils.c.
5959 * common/common-utils.c: Include gdb_string.h.
5960 (savestring): Move here from utils.c.
5961 * common/common-utils.h (savestring): Declare.
5963 2013-02-14 Pedro Alves <palves@redhat.com>
5965 * utils.c (savestring): Rename parameter 'size' to 'len'.
5967 2013-02-14 Pedro Alves <palves@redhat.com>
5968 Yufeng Zhang <yufeng.zhang@arm.com>
5970 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
5971 (aarch64_inferior_data, struct aarch64_inferior_data):
5973 (struct aarch64_process_info): New.
5974 (aarch64_process_list): New global.
5975 (aarch64_find_process_pid, aarch64_add_process)
5976 (aarch64_process_info_get): New functions.
5977 (aarch64_inferior_data_get): Delete.
5978 (aarch64_process_info_get): New function.
5979 (aarch64_forget_process): New function.
5980 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
5981 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
5982 aarch64_get_debug_reg_state.
5983 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
5984 instead of linux_nat_iterate_watchpoint_lwps.
5985 (aarch64_linux_new_fork): New function.
5986 (aarch64_linux_child_post_startup_inferior): Use
5987 aarch64_forget_process instead of aarch64_init_debug_reg_state.
5988 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
5989 (aarch64_linux_remove_hw_breakpoint)
5990 (aarch64_handle_aligned_watchpoint)
5991 (aarch64_handle_unaligned_watchpoint)
5992 (aarch64_linux_insert_watchpoint)
5993 (aarch64_linux_remove_watchpoint)
5994 (aarch64_linux_stopped_data_address): Adjust to pass the current
5995 process id to aarch64_debug_reg_state.
5996 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
5997 linux_nat_new_fork hook, and aarch64_forget_process as
5998 linux_nat_forget_process hook; remove the call to
5999 register_inferior_data_with_cleanup.
6001 2013-02-14 Pedro Alves <palves@redhat.com>
6003 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
6004 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
6007 2013-02-14 Pedro Alves <pedro@codesourcery.com>
6008 Hafiz Abid Qadeer <abidh@codesourcery.com>
6010 * tracepoint.h (validate_trace_state_variable_name): Declare.
6011 * tracepoint.c (validate_trace_state_variable_name): New.
6012 (trace_variable_command): Parse the trace state variable's name
6013 without using parse_expression. Do several validations.
6014 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
6015 trace state variable's name with parse_expression. Validate it.
6017 2013-02-14 Yao Qi <yao@codesourcery.com>
6019 * infcmd.c (breakpoint_proceeded): Remove it.
6021 2013-02-14 Yao Qi <yao@codesourcery.com>
6023 * tracepoint.c (end_actions_pseudocommand): Make it static.
6024 (while_stepping_pseudocommand): Likewise.
6025 * tracepoint.h (end_actions_pseudocommand): Remove the
6027 (while_stepping_pseudocommand): Likewise.
6029 2013-02-14 Yao Qi <yao@codesourcery.com>
6031 * cli/cli-decode.c (help_cmd): Remove the declaration of
6033 (help_all): Likewise.
6035 2013-02-13 Pedro Alves <palves@redhat.com>
6037 * amd64-linux-nat.c (update_debug_registers_callback):
6039 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6041 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
6042 i386_debug_reg_state.
6043 (amd64_linux_new_fork): New function.
6044 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
6045 linux_nat_new_fork hook, and i386_forget_process as
6046 linux_nat_forget_process hook.
6047 * i386-linux-nat.c (update_debug_registers_callback):
6049 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6051 (i386_linux_prepare_to_resume): Pass the lwp's pid to
6052 i386_debug_reg_state.
6053 (i386_linux_new_fork): New function.
6054 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
6055 linux_nat_new_fork hook, and i386_forget_process as
6056 linux_nat_forget_process hook.
6057 * i386-nat.c (i386_init_dregs): Delete.
6058 (i386_inferior_data, struct i386_inferior_data):
6060 (struct i386_process_info): New.
6061 (i386_process_list): New global.
6062 (i386_find_process_pid, i386_add_process, i386_process_info_get):
6064 (i386_inferior_data_get): Delete.
6065 (i386_process_info_get): New function.
6066 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
6067 (i386_forget_process): New function.
6068 (i386_cleanup_dregs): Rewrite.
6069 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
6070 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
6071 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6072 (i386_remove_hw_breakpoint): Adjust to pass the current process id
6073 to i386_debug_reg_state.
6074 (i386_use_watchpoints): Don't register inferior data.
6075 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
6077 (i386_forget_process): Declare.
6078 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
6079 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
6081 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
6082 (add_initial_lwp): New, factored out from ...
6083 (add_lwp): ... this. Don't check the number of lwps before
6084 calling linux_nat_new_thread.
6085 (linux_nat_iterate_watchpoint_lwps): Delete.
6086 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
6087 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
6089 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
6091 (linux_nat_kill, linux_nat_mourn_inferior): Call
6092 linux_nat_forget_process.
6093 (linux_nat_set_new_fork, linux_nat_set_forget_process)
6094 (linux_nat_forget_process): New functions.
6095 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
6097 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
6098 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
6100 (linux_nat_set_new_fork, linux_nat_set_forget_process)
6101 (linux_nat_forget_process): New declarations.
6103 * amd64fbsd-nat.c (super_mourn_inferior): New global.
6104 (amd64fbsd_mourn_inferior): New function.
6105 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
6106 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
6108 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
6110 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6113 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
6115 * aarch64-linux-nat.c (debug_reg_change_callback)
6116 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
6119 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
6121 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
6124 2013-02-13 Pedro Alves <palves@redhat.com>
6125 Hafiz Abid Qadeer <abidh@codesourcery.com>
6127 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
6129 2013-02-12 Tom Tromey <tromey@redhat.com>
6132 * c-exp.y (lex_one_token): Initialize other fields of yylval on
6134 (classify_inner_name): Remove 'first_name' argument, add
6135 'context'. Remove unused variable.
6136 (yylex): Explicitly maintain the context type. Exit loop earlier
6137 if NAME result is seen.
6139 2013-02-12 Pedro Alves <palves@redhat.com>
6141 * amd64-darwin-tdep.c: Add (C) after Copyright.
6142 * cli/cli-cmds.h: Ditto.
6143 * cli/cli-decode.c: Ditto.
6144 * cli/cli-decode.h: Ditto.
6145 * cli/cli-dump.c: Ditto.
6146 * cli/cli-dump.h: Ditto.
6147 * cli/cli-interp.c: Ditto.
6148 * cli/cli-logging.c: Ditto.
6149 * cli/cli-script.c: Ditto.
6150 * cli/cli-script.h: Ditto.
6151 * cli/cli-setshow.c: Ditto.
6152 * cli/cli-setshow.h: Ditto.
6153 * cli/cli-utils.c: Ditto.
6154 * cli/cli-utils.h: Ditto.
6155 * config/alpha/nm-osf3.h: Ditto.
6156 * config/djgpp/djconfig.sh: Ditto.
6157 * config/i386/nm-fbsd.h: Ditto.
6158 * config/i386/nm-i386gnu.h: Ditto.
6159 * config/nm-linux.h: Ditto.
6160 * config/nm-nto.h: Ditto.
6161 * config/rs6000/nm-rs6000.h: Ditto.
6162 * config/sparc/nm-sol2.h: Ditto.
6163 * darwin-nat-info.c: Ditto.
6166 * gdb-demangle.h: Ditto.
6167 * i386-darwin-nat.c: Ditto.
6168 * i386-darwin-tdep.c: Ditto.
6169 * linux-fork.h: Ditto.
6170 * m32c-tdep.c: Ditto.
6171 * microblaze-linux-tdep.c: Ditto.
6172 * microblaze-rom.c: Ditto.
6173 * microblaze-tdep.c: Ditto.
6174 * microblaze-tdep.h: Ditto.
6175 * mips-linux-tdep.h: Ditto.
6176 * ppc-ravenscar-thread.c: Ditto.
6177 * ppc-ravenscar-thread.h: Ditto.
6178 * prologue-value.c: Ditto.
6179 * prologue-value.h: Ditto.
6180 * ravenscar-thread.c: Ditto.
6181 * ravenscar-thread.h: Ditto.
6182 * sparc-ravenscar-thread.c: Ditto.
6183 * sparc-ravenscar-thread.h: Ditto.
6184 * tilegx-linux-tdep.c: Ditto.
6185 * unwind_stop_reasons.def: Ditto.
6186 * windows-nat.h: Ditto.
6187 * xtensa-linux-tdep.c: Ditto.
6188 * xtensa-xtregs.c: Ditto.
6189 * regformats/regdat.sh: Ditto.
6190 * regformats/regdef.h: Ditto.
6192 2013-02-12 Pedro Alves <palves@redhat.com>
6194 * break-catch-sig.c: Update copyright years.
6196 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
6198 Add support for a destructor for ui_out data and use it to
6199 provide a ui_out destructor.
6200 * ui-out.h: Declare the new ui_out destructor.
6201 (ui_out_impl): Add a field for data destructor in ui_out_impl.
6202 * ui-out.c (default_data_destroy): Add a default data destructor
6204 (default_ui_out_impl): Set the new data_destroy field to
6205 default_data_destroy
6206 (uo_data_destroy): Local function which invokes the data
6207 destructor if present.
6208 (clear_table): Local function which clears the table data of a
6210 (ui_out_destroy): Public function which frees a ui_out object.
6211 (ui_out_table_end): Use the new clear_table function.
6212 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
6214 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
6217 2013-02-11 Doug Evans <dje@google.com>
6219 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
6220 (printf_decfloat): New function. Broken out from ui_printf.
6221 Remove unnecessary code to shift the entire format string down.
6222 (printf_pointer): New function.
6223 (ui_printf): Code to print C strings, wide C strings, decfloats,
6224 and pointers moved to separate functions.
6226 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
6228 * valops.c (value_assign): Handling bitfield offset in
6229 `lval_internalvar_component' case.
6231 2013-02-08 Doug Evans <dje@google.com>
6233 * common/format.c (parse_format_string): Fix whitespace.
6235 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
6237 * stack.c (return_command): Work around uninitialized variable
6240 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
6242 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
6243 number of the registers from 36 to 34.
6245 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
6247 * NEWS: Mention new AArch64 native and target support.
6249 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
6251 * MAINTAINERS (Write After Approval): Add myself.
6253 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
6254 Marcus Shawcroft <marcus.shawcroft@arm.com>
6255 Nigel Stephens <nigel.stephens@arm.com>
6256 Yufeng Zhang <yufeng.zhang@arm.com>
6258 * aarch64-linux-nat.c: New file.
6259 * config/aarch64/linux.mh: New file.
6260 * configure.host: Add AArch64.
6261 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
6263 2013-02-07 Doug Evans <dje@google.com>
6265 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
6266 disassemble command.
6268 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
6270 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
6271 set_gdbarch_fetch_tls_load_module_address.
6273 2013-02-06 David S. Miller <davem@davemloft.net>
6275 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
6276 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6277 * value.c (struct_return_convention): New function.
6278 (using_struct_return): Implement in terms of struct_return_convention.
6279 * value.h (struct_return_convention): Declare.
6280 * stack.c (return_command): Allow successful overriding of the return
6281 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6283 2013-02-06 Tom Tromey <tromey@redhat.com>
6285 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
6286 outside of TRY_CATCH.
6288 2013-02-06 Yao Qi <yao@codesourcery.com>
6290 * mi/mi-interp.c: Include "tracepoint.h".
6291 (mi_tsv_modified): Declare.
6292 (mi_tsv_created, mi_tsv_deleted): Update declaration.
6293 (mi_interpreter_init): Call observer_attach_tsv_modified.
6294 (mi_tsv_modified): New.
6295 (mi_tsv_created, mi_tsv_deleted): Update.
6296 * tracepoint.c (trace_variable_command): Call
6297 observer_notify_tsv_modified if the initial value of tsv is
6299 (delete_trace_state_variable): Call
6300 observer_notify_tsv_deleted earlier.
6301 (trace_variable_command): Caller update.
6302 (create_tsv_from_upload): Likewise.
6303 * observer.sh: Declare "struct trace_state_variable".
6305 * NEWS: Mention the new MI notification "=tsv-modified".
6307 2013-02-05 Doug Evans <dje@google.com>
6309 * completer.c (location_completer): Fix typo in comment.
6311 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6313 * breakpoint.c (add_location_to_breakpoint): Insert the location with
6316 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
6318 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
6319 Refactor if statement to avoid trailing || operator.
6321 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
6323 * NEWS: Add PowerPC FreeBSD as a new native configuration.
6325 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
6327 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
6328 * configure.host: Add powerpc*-*-freebsd* target.
6329 * configure.tgt: Add target info for powerpc*-*-freebsd*.
6330 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
6331 * config/powerpc/fbsd.mh: New file.
6333 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
6334 Denys Vlasenko <dvlasenk@redhat.com>
6335 Pedro Alves <palves@redhat.com>
6337 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
6338 (struct elf_internal_linux_prpsinfo): Forward declare.
6339 * gdbarch.h, gdbarch.c: Regenerate.
6340 * linux-tdep.c: Include `cli/cli-utils.h'.
6341 (linux_fill_prpsinfo): New function.
6342 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
6343 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
6344 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
6345 depending on gdbarch pointer bitness.
6346 * ppc-linux-tdep.c: Include elf-bfd.h.
6347 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
6350 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6351 Marcus Shawcroft <marcus.shawcroft@arm.com>
6352 Nigel Stephens <nigel.stephens@arm.com>
6353 Yufeng Zhang <yufeng.zhang@arm.com>
6355 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
6357 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6358 Marcus Shawcroft <marcus.shawcroft@arm.com>
6359 Nigel Stephens <nigel.stephens@arm.com>
6360 Yufeng Zhang <yufeng.zhang@arm.com>
6362 * aarch64-newlib-tdep.c: New file.
6363 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
6365 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
6366 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
6367 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
6368 * osabi.c (gdb_osabi_names): Add "Newlib".
6370 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6371 Marcus Shawcroft <marcus.shawcroft@arm.com>
6372 Nigel Stephens <nigel.stephens@arm.com>
6373 Yufeng Zhang <yufeng.zhang@arm.com>
6375 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
6376 (ALLDEPFILES): Add aarch64-linux-tdep.c.
6377 * aarch64-linux-tdep.c: New file.
6378 * aarch64-linux-tdep.h: New file.
6379 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
6380 * configure.tgt: Add aarch64-none-linux-gnu.
6382 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6383 Marcus Shawcroft <marcus.shawcroft@arm.com>
6384 Nigel Stephens <nigel.stephens@arm.com>
6385 Yufeng Zhang <yufeng.zhang@arm.com>
6387 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
6388 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
6389 (ALLDEPFILES): Add aarch64-tdep.c.
6390 * aarch64-tdep.c: New file.
6391 * aarch64-tdep.h: New file.
6392 * configure.tgt: Add AArch64.
6393 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
6394 (aarch64-expedite): New definition.
6395 * features/aarch64-core.xml: New file.
6396 * features/aarch64-fpu.xml: New file.
6397 * features/aarch64-without-fpu.c: New file (generated).
6398 * features/aarch64-without-fpu.xml: New file.
6399 * features/aarch64.c: New file (generated).
6400 * features/aarch64.xml: New file.
6401 * regformats/aarch64-without-fpu.dat: New file (generated).
6402 * regformats/aarch64.dat: New file (generated).
6404 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6406 * contrib/expect-read1.c: New file.
6407 * contrib/expect-read1.sh: New file.
6409 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6411 * dwarf2read.c (file_file_name): New function with code from
6413 (file_full_name): Move most of the code to file_file_name.
6414 (macro_start_file): Rename variable full_name to file_name and use
6415 file_file_name for it. Add comp_dir parameter to new_macro_table.
6416 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
6417 macro_source_file->filename access by macro_source_fullname call.
6418 * macroscope.c (_initialize_macroscope): Update the new_macro_table
6420 * macrotab.c (struct macro_table): New field comp_dir.
6421 (macro_include): New variables link_fullname and source_fullname.
6422 Replace any macro_source_file->filename access by macro_source_fullname
6424 (macro_lookup_inclusion): Remove the partial filenames checking code.
6425 (check_for_redefinition): New variables source_fullname and
6426 found_key_fullname. Replace any macro_source_file->filename access by
6427 macro_source_fullname call.
6428 (macro_undef): New variables source_fullname and key_fullname. Replace
6429 any macro_source_file->filename access by macro_source_fullname call.
6430 (macro_lookup_definition): New variables retval and source_fullname.
6431 Replace any macro_source_file->filename access by macro_source_fullname
6433 (foreach_macro): New variable key_fullname. Replace any
6434 macro_source_file->filename access by macro_source_fullname call.
6435 (foreach_macro_in_scope): New variable datum_fullname. Replace any
6436 macro_source_file->filename access by macro_source_fullname call.
6437 (new_macro_table): Add parameter comp_dir. Initialize T with it.
6438 (macro_source_fullname): New function.
6439 * macrotab.h (struct macro_source_file): Extent the filename field
6441 (new_macro_table): New parameter comp_dir, add a comment for it.
6442 (macro_source_fullname): new declaration.
6444 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6446 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
6447 this_real_name to outer block. Use it also for
6448 compare_filenames_for_search.
6449 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
6450 with dw2_get_real_path for file_matcher, considering also
6451 BASENAMES_MAY_DIFFER.
6452 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
6454 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6456 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
6457 to the file_matcher parameter. Pass 0 to it.
6458 (dwarf2_create_include_psymtab): Copy also DIRNAME.
6459 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
6460 NULL psymtab_to_fullname result.
6461 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
6462 an expected filename instead.
6463 (expand_symtabs_matching_via_partial): Add basenames parameter to the
6464 file_matcher parameter. Call also psymtab_to_fullname, after newly
6465 considering BASENAMES_MAY_DIFFER.
6466 * source.c (rewrite_source_path): Remove static.
6467 * source.h (rewrite_source_path): New declaration.
6468 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
6469 the expand_symtabs_matching field. Comment it.
6470 * symtab.c (file_matches): New function comment. Add parameter
6471 basenames, implement it.
6472 (search_symbols_file_matches): Add basenames parameter. Update the
6473 file_matches caller.
6474 (search_symbols): Match FILES also against symtab_to_fullname.
6475 Optimize it for BASENAMES_MAY_DIFFER.
6477 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6479 * source.c (print_source_lines_base): Print for TUI also "fullname".
6480 * tui/tui-data.c (init_content_element): Change tui_locator_element
6482 * tui/tui-data.h (struct tui_locator_element): Likewise.
6483 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
6484 tui_update_locator_filename calls to tui_update_locator_fullname.
6485 Replace symtab->filename refererence by symtab_to_fullname call.
6486 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
6487 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
6488 field to full_name. Replace symtab->filename refererence by
6489 symtab_to_fullname call.
6490 (tui_show_symtab_source): Rename parameter to fullname. Change
6491 tui_locator_element field to full_name.
6492 * tui/tui-stack.c: Include source.h.
6493 (tui_set_locator_filename): Rename the declaration to ...
6494 (tui_set_locator_fullname): ... here. Rename its parameter to
6495 fullname, updates its comment.
6496 (tui_set_locator_info): Rename its parameter to fullname.
6497 (tui_set_locator_filename): Rename the definition to ...
6498 (tui_set_locator_fullname): ... here. Rename its parameter to
6499 fullname, updates its comment. Change tui_locator_element field to
6501 (tui_set_locator_info): Rename its parameter to fullname.
6502 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
6503 (tui_update_locator_filename): Rename to ...
6504 (tui_update_locator_fullname): ... here. Rename callee to
6505 tui_set_locator_fullname.
6506 (tui_show_frame_info): Replace symtab->filename refererence by
6507 symtab_to_fullname call.
6508 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
6509 (tui_update_locator_fullname): ... here.
6510 * tui/tui-winsource.c (tui_display_main): Rename the callee to
6511 tui_update_locator_fullname. Replace symtab->filename refererence by
6512 symtab_to_fullname call.
6513 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
6514 Rename the callee to tui_update_locator_fullname.
6515 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
6517 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6519 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
6520 by symtab_to_filename_for_display calls.
6521 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
6522 (clear_command): New variable sal_fullname, initialize it. Replace
6523 compare_filenames_for_search by filename_cmp with sal_fullname.
6524 (say_where, update_static_tracepoint): Replace symtab->filename
6525 refererences by symtab_to_filename_for_display calls.
6526 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
6528 * dwarf2read.c: Include source.h.
6529 (fixup_go_packaging): Replace symtab->filename refererences by
6530 symtab_to_filename_for_display calls.
6531 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
6532 Replace symtab->filename refererences by symtab_to_filename_for_display
6534 (create_sals_line_offset, convert_linespec_to_sals): New variable
6535 fullname, initialize it, replace symtab->filename reference by the
6537 * linux-fork.c: Include source.h.
6538 (info_checkpoints_command): Replace symtab->filename refererences by
6539 symtab_to_filename_for_display calls.
6540 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
6541 by symtab_to_filename_for_display calls.
6542 * mdebugread.c: Include source.h.
6543 (psymtab_to_symtab_1): Replace symtab->filename refererences by
6544 symtab_to_filename_for_display calls.
6545 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
6546 (mi_cmd_file_list_exec_source_files): Likewise.
6547 * printcmd.c: Include source.h.
6548 (build_address_symbolic): Replace symtab->filename refererences by
6549 symtab_to_filename_for_display calls.
6550 * psymtab.c (partial_map_symtabs_matching_filename)
6551 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
6552 with psymtab_to_fullname.
6553 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
6554 by symtab_to_filename_for_display calls.
6555 (stpy_get_filename): New variable filename, initialize it, use instead
6556 of symtab->filename refererences.
6557 (salpy_str): Make variable filename const char *. Replace
6558 symtab->filename refererences by symtab_to_filename_for_display calls.
6559 * skip.c: Include source.h and filenames.h.
6560 (skip_file_command): Remove const from the symtab variable. Replace
6561 symtab->filename refererences by symtab_to_fullname call.
6562 (function_name_is_marked_for_skip): New variables searched_for_fullname
6563 and fullname. Use them to search also with symtab's fullname.
6564 * source.c (find_source_lines): Replace symtab->filename refererences
6565 by symtab_to_filename_for_display calls.
6566 (print_source_lines_base): New variable filename, use it instead of
6567 symtab->filename. Replace symtab->filename refererences by
6568 symtab_to_filename_for_display calls.
6569 (line_info, forward_search_command): Replace symtab->filename
6570 refererences by symtab_to_filename_for_display calls.
6571 (reverse_search_command): Replace symtab->filename refererences by
6572 symtab_to_filename_for_display calls. New variable filename for it.
6573 * stack.c (frame_info): Likewise.
6574 * symmisc.c: Include source.h.
6575 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
6576 (maintenance_info_symtabs): Replace symtab->filename refererences by
6577 symtab_to_filename_for_display calls.
6578 * symtab.c (iterate_over_some_symtabs): Call
6579 compare_filenames_for_search also with symtab_to_fullname.
6580 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
6581 symtab->filename refererences by symtab_to_filename_for_display calls.
6582 (find_line_symtab): Replace symtab->filename refererences by
6583 symtab_to_filename_for_display calls.
6584 (file_matches): Replace filename_cmp by compare_filenames_for_search.
6585 (print_symbol_info): Make the last parameter const char *. New
6586 variable s_filename. Use it in the function.
6587 (symtab_symbol_info): Make the last_filename variable const char *.
6588 Replace symtab->filename refererences by symtab_to_filename_for_display
6590 (rbreak_command): New variable fullname. Use it. Replace
6591 symtab->filename refererence by symtab_to_filename_for_display call.
6592 * tracepoint.c (set_traceframe_context, trace_find_line_command)
6593 (print_one_static_tracepoint_marker): Replace symtab->filename
6594 refererences by symtab_to_filename_for_display calls.
6595 * tui/tui-source.c (tui_set_source_content): New variables filename and
6596 s_filename. Replace symtab->filename refererences by this variable.
6597 Replace other symtab->filename refererences by
6598 symtab_to_filename_for_display calls.
6600 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
6601 Jan Kratochvil <jan.kratochvil@redhat.com>
6603 Add a new variable that controls a way in which filenames are
6605 * NEWS (set filename-display): New entry.
6606 * source.c (filename_display_basename, filename_display_relative)
6607 (filename_display_absolute, filename_display_kind_names)
6608 (filename_display_string, show_filename_display_string)
6609 (symtab_to_filename_for_display): New.
6610 (_initialize_source): Added initialization of 'filename-display'
6612 * source.h (symtab_to_filename_for_display): Added declaration.
6613 * stack.c (print_frame): Added new variable and calling of a new
6614 function and condition with this variable. Changed third argument of
6615 calling of a function.
6617 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6619 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
6620 Rename field reference filename to fullname.
6621 * tui/tui-data.h (struct tui_source_info): Rename field filename to
6622 fullname. New comment for it.
6623 * tui/tui-source.c (tui_set_source_content): Rename field reference
6624 filename to fullname. Initialize field by symtab_to_fullname now.
6625 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
6626 reference filename to fullname. Use symtab_to_fullname during
6629 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6632 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
6633 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
6634 filename to fullname. Rename variable this_name to this_fullname.
6635 Lowercase FILENAME_CMP call.
6636 (dw2_find_symbol_file): New comment for the returned string.
6637 (dwarf2_gdb_index_functions): Rename the function to
6638 dw2_expand_symtabs_with_fullname.
6639 * psymtab.c (read_psymtabs_with_filename): Rename to ...
6640 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
6642 (psym_functions): Rename the function to read_psymtabs_with_fullname.
6643 * symfile.h (struct quick_symbol_functions): Rename field
6644 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
6645 parameter filename to fullname. Document returned string meaning for
6647 * symtab.c (find_line_symtab): Rename the called function to
6648 expand_symtabs_with_fullname.
6650 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6653 * breakpoint.c (clear_command): Remove variable is_abs, unify the
6654 call of filename_cmp with compare_filenames_for_search.
6655 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
6656 is_abs, unify the call of FILENAME_CMP with
6657 compare_filenames_for_search. New gdb_asserts for real_path and name.
6658 Unify the call of compare_filenames_for_search with FILENAME_CMP.
6659 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6660 * symfile.h (struct quick_symbol_functions): Extend the comment for
6661 map_symtabs_matching_filename.
6662 * symtab.c (compare_filenames_for_search): Remove the function comment
6663 relative path requirement. Handle absolute filenames, with a comment.
6664 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
6665 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
6666 real_path and name. Unify the call of compare_filenames_for_search
6668 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
6670 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6673 * breakpoint.c (print_breakpoint_location): Replace bp_location field
6674 source_file references by symtab field references. Remove variables
6676 (momentary_breakpoint_from_master, add_location_to_breakpoint):
6677 (clear_command, say_where): Replace bp_location field source_file
6678 references by symtab field references.
6679 (bp_location_dtor): Remove the source_file reference.
6680 (update_static_tracepoint): Replace bp_location field source_file
6681 references by symtab field references.
6682 (breakpoint_free_objfile): New function.
6683 * breakpoint.h (struct bp_location): Extend the comment for line_number.
6684 Replace the field source_file by field symtab, extend its comment.
6685 (breakpoint_free_objfile): New declaration.
6686 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
6687 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
6688 field source_file references by symtab field references.
6690 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6692 Replace xfullpath calls by gdb_realpath calls.
6693 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
6695 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
6696 Remove it from the iterate_over_some_symtabs call.
6697 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
6698 Remove it from the dw2_map_expand_apply calls, remove a block handling
6700 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
6701 Remove it from the iterate_over_some_symtabs call.
6702 (partial_map_symtabs_matching_filename): Remove parameter full_path.
6703 Remove it from the partial_map_expand_apply calls, remove a block
6704 handling it. Drop gdb_realpath call and cleanups from the real_path
6706 * source.c (openp): Drop the comment part about xfullpath. Replace
6707 xfullpath calls by gdb_realpath calls.
6708 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
6709 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
6710 from method map_symtabs_matching_filename and its comment.
6711 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
6713 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
6714 remove it also from the function comment, remove a block handling it.
6715 Drop gdb_realpath call and cleanups from the real_path handling.
6716 (iterate_over_symtabs): Drop variable full_path and its use.
6717 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
6718 * utils.c (xfullpath): Remove.
6719 * utils.h (xfullpath): Remove.
6721 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
6723 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
6724 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
6725 (ALLDEPFILES): Add ppc64-tdep.c.
6726 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
6727 ppc64-tdep.o to gdb_target_obs.
6728 * ppc64-tdep.h: New file.
6729 * ppc64-tdep.c: New file.
6730 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
6731 ppc-linux-tdep.c to here.
6732 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
6733 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
6734 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
6735 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
6736 from ppc-linux-tdep.c to here.
6737 (ppc64_convert_from_func_ptr_addr): Rename from
6738 ppc64_linux_convert_from_func_ptr_addr to
6739 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
6742 (read_insn): Move from ppc-linux-tdep.c to here.
6743 (insns_match_pattern, insn_d_field, insn_ds_field): Move
6744 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
6745 * ppc-linux-tdep.c: Include ppc64-tdep.h.
6746 Removed above functions.
6747 (ppc_linux_init_abi): Adjust.
6749 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
6751 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
6753 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
6755 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
6757 2013-02-01 Pedro Alves <palves@redhat.com>
6759 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
6760 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
6762 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6764 * elfread.c (elf_symfile_read): Limit separate debug info additions to
6765 files with no separate debug info.
6766 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
6767 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
6768 only for files with no separate debug info.
6770 2013-01-31 Tom Tromey <tromey@redhat.com>
6772 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
6774 (struct jit_program_space_data): Rename from jit_inferior_data.
6776 (get_jit_program_space_data): Rename from get_jit_inferior_data.
6777 Change return type. Attach data to program space.
6778 (jit_program_space_data_cleanup): Rename from
6779 jit_inferior_data_cleanup; change argument type.
6780 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
6782 (jit_register_code): Update.
6783 (jit_update_inferior_cache): Remove.
6784 (jit_breakpoint_deleted): Get jit data from the location's program
6786 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
6787 'ps_data', change type.
6788 (jit_inferior_init, jit_breakpoint_re_set_internal)
6789 (jit_event_handler): Update.
6790 (free_objfile_data): Get data from objfile's program space.
6791 (_initialize_jit): Update.
6793 2013-01-31 Tom Tromey <tromey@redhat.com>
6796 * jit.c (struct jit_inferior_data) <cached_code_address,
6797 jit_breakpoint>: New fields.
6798 (jit_breakpoint_re_set_internal): Fix logging. Only create
6799 breakpoint if cached address has changed.
6800 (jit_update_inferior_cache, jit_breakpoint_deleted): New
6802 (_initialize_jit): Register breakpoint deleted observer.
6804 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6806 * infrun.c (handle_syscall_event): Remove unused gdbarch.
6807 (save_infcall_suspend_state): Ifdef out unused inf.
6808 (restore_infcall_suspend_state): Ifdef out unused inf.
6809 * jit.c (jit_register_code): Remove unused i, b, inf_data.
6810 (jit_frame_sniffer): Remove unused inf_data.
6812 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6814 * c-exp.y (classify_inner_name): Remove unused type.
6815 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
6816 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
6818 (c_get_string): Remove unused kind.
6819 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
6821 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6823 * charset.c (intermediate_encoding): Remove unused i.
6824 * completer.c (signal_completer): Remove unused i.
6825 * continuations.c (discard_my_continuations_1): Remove unused
6827 * corelow.c (core_close): Remove unuseD name.
6828 (get_core_siginfo): Remove unused pid.
6829 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
6831 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
6832 (loclist_describe_location): Remove unused first.
6833 * event-top.c (command_line_handler): Remove unused got_eof.
6834 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
6835 (resize_section_table): Remove unused old_value.
6836 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
6837 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
6838 * i386-tdep.c (i386_process_record): Remove unused rex.
6839 * infcmd.c (get_return_value): Remove unused uiout.
6840 * jv-lang.c (type_from_class): Remove unused is_array.
6841 * jv-valprint.c (java_val_print): Remove unused i.
6842 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
6843 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
6844 * m2-typeprint.c (m2_print_type): Remove unused code.
6845 * macroexp.c (get_character_constant): Remove unused body_start.
6846 (macro_stringify): Remove unused result.
6847 * objc-lang.c (find_methods): Remove unused gdbarch.
6848 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
6849 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
6850 * stack.c (print_frame_args): Remove unused summary.
6851 * thread.c (thread_apply_command): Remove unused p.
6852 * valarith.c (value_x_unop): Remove unused mangle_ptr.
6853 * valops.c (search_struct_method): Remove unused skip.
6854 * valprint.c (generic_val_print): Remove unused byte_order.
6855 * varobj.c (varobj_update): Remove unused changed.
6856 * cli/cli-cmds.c (complete_command): Remove unused next_item.
6857 (alias_command): Remove unused c.
6858 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
6859 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
6861 (mi_cmd_data_write_memory): Remove unused word_format.
6862 (mi_cmd_data_write_memory_bytes): Remove unused r.
6863 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
6865 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
6866 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
6869 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6871 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
6872 * symtab.c (iterate_over_symtabs): Remove unused s.
6873 (find_pc_sect_symtab): Remove unused pspAce.
6874 (find_pc_sect_line): Remove unused alt_symtab.
6875 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
6876 (completion_list_add_name): Remove unused newsize.
6878 2013-01-31 Tom Tromey <tromey@redhat.com>
6881 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
6884 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6886 * target.c (target_read_string): Remove unused origlen.
6888 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6890 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
6891 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
6892 * ax-general.c (ax_print): Remove unused is_float.
6893 * blockframe.c (block_innermost_frame): Remove unused start, end.
6894 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
6896 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6898 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
6899 (svr4_read_so_list): Remove unused lmo.
6900 * solib-target.c (solib_target_relocate_section_addresses): Remove
6903 2013-01-30 Tom Tromey <tromey@redhat.com>
6905 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
6907 2013-01-30 Tom Tromey <tromey@redhat.com>
6909 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
6910 * utils.c (gnu_debuglink_crc32): Remove.
6911 * utils.h (gnu_debuglink_crc32): Don't declare.
6913 2013-01-30 Tom Tromey <tromey@redhat.com>
6915 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
6916 (read_structure_type, read_enumeration_type): Remove cast.
6918 2013-01-30 Tom Tromey <tromey@redhat.com>
6920 * dwarf2read.c (read_namespace_type): Remove cast.
6921 (read_typedef): Likewise.
6923 2013-01-29 Tom Tromey <tromey@redhat.com>
6925 * dwarf2read.c (free_dwo_file): Remove assert.
6927 2013-01-29 Tom Tromey <tromey@redhat.com>
6929 * value.c (deprecated_set_value_modifiable): Remove.
6930 * value.h (deprecated_set_value_modifiable): Remove.
6932 2013-01-28 Doug Evans <dje@google.com>
6934 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
6935 to addresses from dwo files.
6937 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
6939 * valops.c (find_overload_match): Remove unused argument 'lax'.
6940 * value.h: Remove unused argument 'lax' from the declaration of
6941 find_overload_match.
6942 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
6943 to find_overload_match.
6944 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
6945 argument to find_overload_match.
6947 2013-01-25 Tom Tromey <tromey@redhat.com>
6949 * dwarf2read.c (processing_has_namespace_info): Remove.
6950 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
6951 (process_die, read_func_scope, dwarf2_start_symtab)
6952 (new_symbol_full): Update.
6954 2013-01-25 Tom Tromey <tromey@redhat.com>
6956 * cp-namespace.c (cp_set_block_scope): Remove.
6957 * cp-support.h (cp_set_block_scope): Remove.
6958 * dbxread.c: Include block.h.
6959 (cp_set_block_scope): New function.
6960 (process_one_symbol): Update.
6961 * dwarf2read.c (read_func_scope): Use block_set_scope.
6963 2013-01-25 Pedro Alves <palves@redhat.com>
6965 * remote.c (add_current_inferior_and_thread): Tweak comment.
6967 2013-01-25 Tom Tromey <tromey@redhat.com>
6969 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6970 (cp_add_using_directive): Add 'copy_names' argument.
6971 * cp-support.h (cp_add_using_directive): Update.
6972 (struct using_direct) <import_src, import_dest, alias,
6973 declaration>: Now const.
6974 * dwarf2read.c (read_import_statement): Use obconcat.
6975 Don't copy names passed to cp_add_using_directive.
6977 2013-01-25 Tom Tromey <tromey@redhat.com>
6979 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
6981 2013-01-25 Pedro Alves <palves@redhat.com>
6983 * remote.c (stop_reply_extract_thread): New.
6984 (add_current_inferior_and_thread): New parameter 'wait_status'.
6986 (remote_start_remote): Pass wait status to
6987 add_current_inferior_and_thread.
6988 (extended_remote_run): Update comment.
6989 (extended_remote_create_inferior_1): Pass wait status to
6990 add_current_inferior_and_thread.
6992 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
6993 Ulrich Weigand <uweigand@de.ibm.com>
6995 * valarith.c (value_vector_widen): New function for replicating a
6996 scalar into a vector.
6997 (value_binop): Use value_vector_widen to widen scalar to vector
6998 rather than casting, this better matches gcc C behaviour.
6999 * valops.c (value_casst): Update logic for casting between vector
7000 types, and for casting from scalar to vector, try to match gcc C
7002 * value.h (value_vector_widen): Declare.
7003 * opencl-lang.c (opencl_value_cast): New opencl specific casting
7004 function, handle special case for casting scalar to vector.
7005 (opencl_relop): Use opencl_value_cast.
7006 (evaluate_subexp_opencl): Use opencl_value_cast instead of
7007 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
7008 in order to use opencl_value_cast.
7010 2013-01-25 Yao Qi <yao@codesourcery.com>
7012 * event-loop.c: Include "queue.h".
7013 (gdb_event_p): New typedef.
7014 (DECLARE_QUEUE_P): Use.
7015 (DEFINE_QUEUE_P): Use.
7016 (async_queue_event): Remove.
7017 (gdb_event_xfree): New.
7018 (initialize_event_loop): New.
7019 (process_event): Use QUEUE macros.
7020 (event_queue): Remove.
7021 (gdb_wait_for_event): Caller update.
7022 (check_async_event_handlers): Likewise.
7023 (poll_timers): Likewise.
7024 * event-loop.h (initialize_event_loop): Declare.
7025 * event-loop.c (gdb_event_xfree): New.
7026 * top.c (gdb_init): Call initialize_event_loop.
7028 2013-01-25 Yao Qi <yao@codesourcery.com>
7030 * event-loop.c (async_queue_event): Remove one parameter
7031 'position'. Remove code handling 'position' == TAIL.
7032 (gdb_wait_for_event): Caller update.
7033 (check_async_event_handlers): Caller update.
7034 (poll_timers): Caller update.
7035 * event-loop.h (enum queue_position): Remove.
7037 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
7039 * MAINTAINERS: Update my email.
7041 2013-01-25 Yao Qi <yao@codesourcery.com>
7043 * main.c (print_gdb_help): Remove "--epoch" from the help
7046 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
7048 * symtab.c (skip_prologue_using_sal): Consider a file
7049 change the same as an increased line number
7051 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7053 * MAINTAINERS (Write After Approval): Add myself to the list.
7055 2013-01-24 Tom Tromey <tromey@redhat.com>
7057 * ada-lang.h (ada_decode_symbol): Make return type const.
7058 * ada-lang.c (ada_decode_symbol): Likewise.
7060 2013-01-23 Doug Evans <dje@google.com>
7062 * linespec.c (find_linespec_symbols): Make static.
7064 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7066 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
7067 type on float conversion for complex type.
7069 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
7071 Add a new class gdb.Architecture which exposes GDB's
7072 internal representation of architecture via GDB Python API.
7073 * Makefile.in: Add entries corresponding to the new file
7075 * NEWS (Python Scripting): Add entries for the new class
7076 gdb.Architecture and the new method gdb.Frame.architecture.
7077 * python/py-arch.c: Implement gdb.Architecture class.
7078 * python/py-frame.c (frapy_arch): Implement the method
7079 gdb.Frame.architecture().
7080 (frame_object_methods): Add 'architecture' to the method table.
7081 * python/python-internal.h: Add declarations of new utility
7083 * python/python.c (_initialize_python): Initialize
7084 gdb.Architecture class.
7086 2013-01-23 Doug Evans <dje@google.com>
7088 Work around binutils/15021.
7089 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
7090 type_unit_group out of union s. All uses updated.
7091 (read_index_from_section): Watch for index version 8.
7092 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
7094 (write_psymtabs_to_index): Increment version number to 8.
7096 2013-01-22 Pedro Alves <palves@redhat.com>
7098 * annotate.c (breakpoint_changed): Skip if breakpoint is not
7101 2013-01-22 Pedro Alves <palves@redhat.com>
7103 * annotate.c (annotate_breakpoints_changed): Rename to ...
7104 (annotate_breakpoints_invalid): ... this. Make static.
7105 (breakpoint_changed): Adjust.
7106 (_initialize_annotate): Always install the observers. Install a
7107 "breakpoint_created" observer.
7108 * annotate.h (annotate_breakpoints_changed): Delete declaration.
7109 * breakpoint.c (set_breakpoint_condition)
7110 (breakpoint_set_commands, do_map_commands_command)
7111 (init_raw_breakpoint, clear_command, set_ignore_count)
7112 (enable_breakpoint_disp): No longer call
7113 annotate_breakpoints_changed.
7115 2013-01-22 Pedro Alves <palves@redhat.com>
7117 * annotate.c: Include "inferior.h".
7118 (frames_invalid_emitted)
7119 (breakpoints_invalid_emitted): New globals.
7120 (async_background_execution_p): New function.
7121 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
7122 emitting the annotation if it has already been emitted.
7123 (annotate_display_prompt): New function.
7124 * annotate.h (annotate_display_prompt): New declaration.
7125 * event-top.c: Include annotate.h.
7126 (display_gdb_prompt): Call annotate_display_prompt.
7128 2013-01-22 Pedro Alves <palves@redhat.com>
7130 * annotate.c (ignore_count_changed): Delete.
7131 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
7132 (annotate_ignore_count_change): Delete.
7133 (annotate_stopped): Don't emit a delayed breakpoints-changed
7135 * annotate.h (annotate_ignore_count_change): Delete.
7136 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
7137 annotate_ignore_count_change.
7139 2013-01-22 Tom Tromey <tromey@redhat.com>
7141 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
7142 require_rvalue for a register location.
7144 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
7146 * breakpoint.c (print_one_breakpoint_location): Add MI
7147 field 'thread-groups' when printing a breakpoint.
7148 (output_thread_groups): New function.
7150 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
7152 * python/lib/gdb/commands/explore.py
7153 (CompoundExplorer.explore_expr): Correct the name of a method
7155 (ExploreTypeCommand.invoke): Add a missing 'return'.
7157 2013-01-21 Tom Tromey <tromey@redhat.com>
7159 * gdb_obstack.h (obconcat): Move declaration here, from...
7160 * symfile.h (obconcat): ... here.
7161 * gdb_obstack.c: New file.
7162 (obconcat): Move from...
7163 * symfile.c (obconcat): ... here.
7164 * Makefile.in (SFILES): Add gdb_obstack.c.
7165 (COMMON_OBS): Add gdb_obstack.o.
7167 2013-01-21 Tom Tromey <tromey@redhat.com>
7169 * symfile.h (obsavestring): Don't declare.
7170 * symfile.c (obsavestring): Remove.
7171 * ada-exp.y: Use obstack_copy0, not obsavestring.
7172 * ada-lang.c: Use obstack_copy0, not obsavestring.
7173 * coffread.c: Use obstack_copy0, not obsavestring.
7174 * cp-namespace.c: Use obstack_copy0, not obsavestring.
7175 * dbxread.c: Use obstack_copy0, not obsavestring.
7176 * dwarf2read.c: Use obstack_copy0, not obsavestring.
7177 * jit.c: Use obstack_copy0, not obsavestring.
7178 * mdebugread.c: Use obstack_copy0, not obsavestring.
7179 * psymtab.c: Use obstack_copy0, not obsavestring.
7180 * stabsread.c: Use obstack_copy0, not obsavestring.
7181 * xcoffread.c: Use obstack_copy0, not obsavestring.
7183 2013-01-21 Tom Tromey <tromey@redhat.com>
7185 * dwarf2read.c (fixup_go_packaging): Save package name
7187 * gdbtypes.c (init_type): Don't copy name.
7189 2013-01-21 Tom Tromey <tromey@redhat.com>
7191 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
7193 (struct attribute) <u.str>: Now const.
7194 (struct fnfieldlist) <name>: Now const.
7195 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
7196 (partial_die_parent_scope): Make return type const.
7197 (partial_die_full_name, add_partial_symbol): Update.
7198 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
7200 (find_file_and_directory): Make 'name' and 'comp_dir' const.
7201 (read_file_scope, read_func_scope, dwarf2_add_field)
7202 (dwarf2_add_member_fn, read_structure_type)
7203 (process_enumeration_scope, read_array_type, read_module_type)
7204 (read_base_type, read_subrange_type): Update.
7205 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
7206 (new_symbol_full, guess_full_die_structure_name): Update.
7207 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
7208 (dwarf2_name): Return const type.
7209 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
7212 2013-01-21 Tom Tromey <tromey@redhat.com>
7214 * gdbtypes.c (init_type): Make 'name' const.
7215 * gdbtypes.h (init_type): Update.
7217 2013-01-21 Tom Tromey <tromey@redhat.com>
7219 * buildsym.c (patch_subfile_names): Use set_last_source_file.
7220 (start_symtab): Make 'name' and 'dirname' const. Use
7221 set_last_source_file.
7222 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
7223 (last_source_file): Define. Now static.
7224 (set_last_source_file, get_last_source_file): New functions.
7225 * buildsym.h (last_source_file): Don't declare.
7226 (start_symtab): Update.
7227 (set_last_source_file, get_last_source_file): Declare.
7228 * coffread.c (complete_symtab): Use set_last_source_file.
7229 (coff_end_symtab): Likewise.
7230 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
7231 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
7232 set_last_source_file.
7233 (process_one_symbol): Use get_last_source_file.
7234 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
7235 (psymtab_to_symtab_1): Use get_last_source_file.
7236 * xcoffread.c (process_linenos): Use get_last_source_file.
7237 (complete_symtab): Use set_last_source_file.
7238 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
7239 (scan_xcoff_symtab): Use set_last_source_file.
7241 2013-01-21 Tom Tromey <tromey@redhat.com>
7243 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
7244 (symbol_set_names): Remove casts. Handle field const-ness.
7246 2013-01-21 Tom Tromey <tromey@redhat.com>
7248 * dwarf2read.c (new_symbol_full): Remove cast.
7249 * symtab.c (symbol_set_demangled_name): Make 'name' const.
7250 * symtab.h (symbol_set_demangled_name): Update.
7252 2013-01-21 Tom Tromey <tromey@redhat.com>
7254 * main.c (captured_main): Call bfd_init.
7256 2013-01-21 Tom Tromey <tromey@redhat.com>
7258 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
7259 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
7260 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
7263 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7265 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
7267 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7269 Fix gdb.fortran/common-block.exp crash in PIE mode.
7270 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
7272 * f-valprint.c (info_common_command_for_block): Expect
7273 LOC_COMMON_BLOCK in gdb_assert.
7274 * symtab.h (struct general_symbol_info): Update comment for the
7275 common_block member.
7276 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
7277 (enum address_class): New member LOC_COMMON_BLOCK.
7279 2013-01-18 David Blaikie <dblaikie@gmail.com>
7281 * MAINTAINERS (Write After Approval): Add "David Blaikie".
7283 2013-01-18 Tom Tromey <tromey@redhat.com>
7286 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
7287 Call require_rvalue.
7289 2013-01-18 Yao Qi <yao@codesourcery.com>
7291 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
7292 (dbx_read_symtab): New declaration.
7293 (dbx_psymtab_to_symtab): Delete.
7294 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
7295 Rename parameter PST to SELF. Exchanged two parameters.
7296 (start_psymtab): Caller update.
7297 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
7298 (dwarf2_read_symtab): New declaration.
7299 (dwarf2_psymtab_to_symtab): Delete.
7300 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
7301 Rename parameter PST to SELF. Exchanged two parameters.
7302 (create_partial_symtab): Caller update.
7303 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
7304 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
7305 Rename parameter PST to SELF. Exchanged two parameters.
7306 (parse_partial_symbols, new_psymtab): Caller update.
7307 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
7309 * psymtab.c (psymtab_to_symtab): Caller update.
7310 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
7311 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
7312 Rename parameter PST to SELF. Exchanged two parameters.
7313 (xcoff_start_psymtab): Caller update.
7315 2013-01-18 Yao Qi <yao@codesourcery.com>
7317 * infrun.c (proceed): Rename local variable 'oneproc' to
7320 2013-01-17 Doug Evans <dje@google.com>
7322 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
7323 (dw2_build_type_unit_groups): Delete. All uses updated.
7325 * symtab.h (struct symbol_search): Add comment.
7327 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7329 * symtab.c (compare_filenames_for_search): New comment for
7332 2013-01-17 Tom Tromey <tromey@redhat.com>
7334 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
7336 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7338 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
7339 initialize it by existing make_cleanup. Call new do_cleanups.
7341 2013-01-17 Tom Tromey <tromey@redhat.com>
7343 * cp-abi.c (cp_abi_completer): New function.
7344 (_initialize_cp_abi): Set completer for "set cp-abi".
7346 2013-01-17 Tom Tromey <tromey@redhat.com>
7348 * mem-break.c: Remove obsolete comment.
7349 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
7351 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
7353 * jit.c (jit_reader_load_command): Interpret the jit reader name
7354 as an absolute path if it begins with a forward slash.
7356 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
7360 * jit.c (finalize_symtab): Ensure that only the global block has a
7363 2013-01-17 Pedro Alves <palves@redhat.com>
7365 * acinclude.m4: Include ../config/plugins.m4,
7366 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
7367 * Makefile.in (aclocal_m4_deps): Update.
7368 * aclocal.m4: Renegerate.
7370 2013-01-16 Doug Evans <dje@google.com>
7372 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
7374 2013-01-16 Pedro Alves <palves@redhat.com>
7375 Tom Tromey <tromey@redhat.com>
7378 * NEWS: Add "catch signal".
7379 * breakpoint.c (base_breakpoint_ops): No longer static.
7380 (bpstat_explains_signal): New function.
7381 (init_catchpoint): No longer static.
7382 (base_breakpoint_explains_signal): New function.
7383 (base_breakpoint_ops): Initialize new field.
7384 * breakpoint.h (enum bpstat_signal_value): New.
7385 (struct breakpoint_ops) <explains_signal>: New field.
7386 (bpstat_explains_signal): Remove macro, declare as function.
7387 (base_breakpoint_ops, init_catchpoint): Declare.
7388 * break-catch-sig.c: New file.
7389 * inferior.h (signal_catch_update): Declare.
7390 * infrun.c (signal_catch): New global.
7391 (handle_syscall_event): Update for change to
7392 bpstat_explains_signal.
7393 (handle_inferior_event): Likewise. Always handle random signals
7395 (signal_cache_update): Check signal_catch.
7396 (signal_catch_update): New function.
7397 (_initialize_infrun): Initialize signal_catch.
7398 * Makefile.in (SFILES): Add break-catch-sig.c.
7399 (COMMON_OBS): Add break-catch-sig.o.
7401 2013-01-16 Tom Tromey <tromey@redhat.com>
7403 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
7404 (print_one_catch_solib, print_one_catch_syscall)
7405 (print_one_catch_exec, print_one_exception_catchpoint): Emit
7408 2013-01-16 Yao Qi <yao@codesourcery.com>
7410 * printcmd.c (current_display_number): Make it static.
7412 2013-01-16 Yao Qi <yao@codesourcery.com>
7414 * infcmd.c (step_once): Don't check '!single_inst' as it was
7417 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7419 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
7421 2013-01-14 Tom Tromey <tromey@redhat.com>
7423 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
7425 * command.h (add_setshow_string_noescape_cmd): Update.
7426 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
7427 (complete_set_gnutarget): New function.
7428 (_initialize_core): Set the "set gnutarget" completer.
7430 2013-01-14 Tom Tromey <tromey@redhat.com>
7433 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
7434 (c_type_print_modifier): Likewise.
7435 * dwarf2read.c (read_tag_restrict_type): New function.
7436 (read_type_die_1): Handle DW_TAG_restrict_type.
7437 * gdbtypes.c (make_restrict_type): New function.
7438 (recursive_dump_type): Handle TYPE_RESTRICT.
7439 * gdbtypes.h (enum type_flag_values): Renumber.
7440 (enum type_instance_flag_value): Add
7441 TYPE_INSTANCE_FLAG_RESTRICT.
7442 (TYPE_RESTRICT): New macro.
7443 (make_restrict_type): Declare.
7445 2013-01-14 Tom Tromey <tromey@redhat.com>
7448 * psymtab.c (struct psymtab_state): New.
7449 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
7451 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
7452 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
7454 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
7455 Pedro Alves <palves@redhat.com>
7459 * remote.c (remote_threads_info): Make a copy of the reply from
7460 qfThreadInfo and use that instead of rs->buf.
7462 2013-01-14 Yao Qi <yao@codesourcery.com>
7464 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
7465 (dbx_psymtab_to_symtab): Likewise.
7466 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
7467 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
7468 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
7470 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7472 * parse.c (parse_exp_in_context): New variable inner_chain. Call
7473 make_cleanup_restore_current_language. Call set_language. Move
7474 OLD_CHAIN and INNER_CHAIN cleanups.
7475 * utils.c (do_restore_current_language)
7476 (make_cleanup_restore_current_language): New functions.
7477 * utils.h (make_cleanup_restore_current_language): New declaration.
7479 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7481 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
7484 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
7485 non-existing files if FILENAME is already absolute.
7487 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7489 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
7490 fputs_filtered. Append trailing newline.
7492 2013-01-11 Yao Qi <yao@codesourcery.com>
7493 Stan Shebs <stan@codesourcery.com>
7495 * psymtab.c (init_psymbol_list): Clarify the comment.
7497 2013-01-11 Yao Qi <yao@codesourcery.com>
7499 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
7500 (update_dprintf_command_list): Assert that 'printf_line' is
7501 non-null. Remove condition check.
7503 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7506 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
7508 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
7510 * tui/tui-source.h (tui_source_is_displayed): Likewise.
7512 2013-01-09 Anthony Green <green@moxielogic.com>
7514 * cp-abi.c (cplus_print_vtable): Don't return value from void
7516 * ada-lang.c (re_set_catch_assert): Ditto.
7518 2013-01-09 Doug Evans <dje@google.com>
7520 * symfile.h (quick_symbol_functions): Delete member
7521 pre_expand_symtabs_matching. All uses removed.
7522 * dwarf2read.c (dw2_lookup_symbol): Implement.
7523 (dw2_do_expand_symtabs_matching): Delete.
7524 (dw2_pre_expand_symtabs_matching): Delete.
7525 (struct dw2_symtab_iterator): New type.
7526 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
7527 (dw2_expand_symtabs_for_function): Rewrite.
7528 (dwarf2_gdb_index_functions): Update.
7529 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
7530 (psym_functions): Update.
7532 2013-01-09 Tom Tromey <tromey@redhat.com>
7534 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
7535 * configure: Rebuild.
7536 * configure.ac: Add somread.o to the build if BFD has SOM
7538 * somread.c: Include som/aout.h, not syms.h.
7539 (som_symtab_read): Use som_external_symbol_dictionary_record.
7540 Unpack records manually.
7541 (_initialize_somread): Declare.
7543 2012-01-08 Mike Frysinger <vapier@gentoo.org>
7545 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
7546 Cast return_address to 64bits.
7548 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
7550 * printcmd.c: Remove define of function output_command.
7551 * tracepoint.c: Remove extern of function output_command.
7552 * valprint.h: (output_command): New extern.
7554 2013-01-07 Tom Tromey <tromey@redhat.com>
7556 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
7558 (objc_language_defn): Use c_printchar, c_printstr,
7561 2013-01-07 Tom Tromey <tromey@redhat.com>
7565 * ada-valprint.c (printstr, print_field_values): Remove
7567 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
7569 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
7571 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
7572 * main.c (captured_main): Remove "epoch" argument.
7573 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
7574 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
7575 * p-valprint.c (pascal_object_print_value_fields): Remove
7577 * printcmd.c (print_command_1): Remove 'inspect' argument.
7578 (print_command, call_command): Update.
7579 (inspect_command): Remove.
7580 (_initialize_printcmd): Make "inspect" an alias for "print".
7581 * top.c (epoch_interface): Remove.
7582 * top.h (epoch_interface): Remove.
7583 * valprint.c (user_print_options): Update.
7584 (print_converted_chars_to_obstack): Remove "inspect_it" code.
7585 * valprint.h (struct value_print_options) <inspect_it>: Remove
7588 2013-01-04 Tom Tromey <tromey@redhat.com>
7590 * valprint.h (read_string): Add 'extern'.
7592 2013-01-07 Joel Brobecker <brobecker@adacore.com>
7594 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
7595 used to decide whether to define darwin_read_dyld_info or not.
7597 2013-01-03 Pierre Muller <muller@sourceware.org>
7599 * main.c (relocate_gdb_directory): Avoid calling stat function
7602 2013-01-03 Yao Qi <yao@codesourcery.com>
7604 * psymtab.c (fixup_psymbol_section): Update declaration.
7605 (fixup_psymbol_section): Remove code returning value.
7607 2013-01-03 Yao Qi <yao@codesourcery.com>
7609 * symtab.h: Remove some out of date comments.
7610 (enum exception_event_kind): Move it ...
7611 * breakpoint.c: ... here.
7613 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
7616 * darwin-nat.c (darwin_read_dyld_info): Only build if
7617 TASK_DYLD_INFO_COUNT is defined.
7618 (darwin_xfer_partial): Call darwin_read_dyld_info only if
7619 TASK_DYLD_INFO_COUNT is defined.
7621 2013-01-02 Tom Tromey <tromey@redhat.com>
7623 * symfile.h (struct ecoff_debug_hack): Remove.
7624 * objfiles.c: Don't include mdebugread.h.
7626 2013-01-02 Tom Tromey <tromey@redhat.com>
7628 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
7629 * configure.ac: Check for Mach-O support in BFD. Update
7631 * configure: Rebuild.
7633 2013-01-02 Tom Tromey <tromey@redhat.com>
7635 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
7636 * configure.ac: Use GDB_AC_CHECK_BFD.
7637 * configure: Rebuild.
7639 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
7641 * MAINTAINERS: Update my email.
7643 2013-01-01 Joel Brobecker <brobecker@adacore.com>
7645 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
7647 2013-01-01 Joel Brobecker <brobecker@adacore.com>
7649 * rs6000-nat.c (bss_data_overlap): New function.
7650 (vmap_symtab): Use it to adjust the .bss section's offset.
7652 2013-01-01 Joel Brobecker <brobecker@adacore.com>
7654 Update year range in copyright notice of all files.
7656 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
7658 * top.c (print_gdb_version): Update copyright year.
7660 For older changes see ChangeLog-2012.
7666 version-control: never