1 2013-07-09 Doug Evans <dje@google.com>
3 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
4 Enum values rename as well. All uses updated.
5 * valprint.h (value_print_options): Rename member pretty to
6 pretty format. Rename member prettyprint_arrays to
7 prettyformat_arrays. Rename member prettyprint_structs to
8 prettyformat_structs. All uses updated.
9 (get_no_prettyformat_print_options): Renamed from
10 get_raw_print_options.
11 * valprint.c (get_no_prettyformat_print_options): Renamed from
12 get_raw_print_options. All callers updated.
13 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
15 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
17 (_initialize_valprint): Improve help text for "set print pretty" and
20 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
22 * value.c (value_bits_valid): Revert previous change, and change
23 by Pedro on 2013-07-04, due to regressions in
24 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
26 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
27 Pedro Alves <palves@redhat.com>
29 * value.c (value_bits_valid): If the value is not lval_computed
30 or has no check validity handler then the answer is the
31 optimized_out flag, otherwise defer to the handler.
33 2013-07-06 Eli Zaretskii <eliz@gnu.org>
35 * top.c (print_gdb_configuration): Explain in output of
36 --configuration what does "relocatable" mean.
38 * main.c (print_gdb_help): Regroup options in the --help text.
39 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
40 the relevant discussions.
42 2013-07-06 Yao Qi <yao@codesourcery.com>
44 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
45 Remove parameter 'lsal'.
46 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
47 to inner block. Caller update.
48 (base_breakpoint_create_breakpoints_sal): Update.
49 (bkpt_create_breakpoints_sal): Likewise.
50 (tracepoint_create_breakpoints_sal): Likewise.
51 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
52 element 0 of vector 'canonical->sals'.
54 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
56 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
57 register number instead of the pseudo register one.
58 (rs6000_dwarf2_reg_to_regnum): Likewise.
60 2013-07-04 Pedro Alves <palves@redhat.com>
62 * findvar.c (value_of_register): Use allocate_optimized_out_value
63 if the register has been optimized out, instead of
64 set_value_optimized_out.
65 * frame-unwind.c (frame_unwind_got_optimized): Use
66 allocate_optimized_out_value.
68 2013-07-04 Pedro Alves <palves@redhat.com>
70 * value.c (value_bits_valid): If the value is not lval_computed,
71 or doesn't have a check_validity hook, assume the value is entirely
74 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
76 * stack.c (read_frame_arg): No longer fetch lazy values.
77 * value.c (value_optimized_out): If the value is not already
78 marked optimized out, and is lazy then fetch it.
79 (value_primitive_field): Move optimized out check to later in the
80 function, after we have loaded any lazy values.
81 (value_fetch_lazy): Use optimized out flag directly rather than
82 calling optimized_out method.
84 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
86 * valops.c: Don't include "user-regs.h".
87 (value_fetch_lazy): Moved to value.c.
88 * value.c: Include "user-regs.h".
89 (value_fetch_lazy): Moved from valops.c.
91 2013-07-04 Yao Qi <yao@codesourcery.com>
94 2013-06-27 Yao Qi <yao@codesourcery.com>
96 * common/create-version.sh: Update comments. Handle the case
97 that TARGET_ALIAS is empty.
99 2013-07-03 Pedro Alves <palves@redhat.com>
101 * Makefile.in (config.status): Depend on development.sh.
102 (aclocal_m4_deps): Add libmcheck.m4.
103 * acinclude.m4: Include libmcheck.m4.
104 * configure.ac: Source development.sh instead of setting
105 'development' here. --enable-libmcheck/--disable-libmcheck code
106 factored out to GDB_AC_LIBMCHECK. Run it.
107 * development.sh: New file.
108 * libmcheck.m4: New file.
109 * configure: Regenerate.
111 2013-07-02 Tom Tromey <tromey@redhat.com>
113 * contrib/ari/update-web-ari.sh: Update for version.in change.
115 2013-07-02 Tom Tromey <tromey@redhat.com>
117 * common/ptid.h: Comment fixes.
119 2013-07-01 Tom Tromey <tromey@redhat.com>
121 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
122 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
123 (dwarf2_read_index, create_all_comp_units): Update.
125 2013-07-01 Tom Tromey <tromey@redhat.com>
127 * configure.ac (build_warnings): Add -Wold-style-definition.
128 * configure: Rebuild.
129 * machoread.c (_initialize_machoread): Use "(void)".
130 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
133 2013-07-01 Tom Tromey <tromey@redhat.com>
135 * configure.ac (build_warnings): Add -Wold-style-declaration.
136 * configure: Rebuild.
137 * dsrec.c (make_srec): Use "static const", not "const static".
138 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
140 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
141 Use "static const", not "const static".
142 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
144 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
146 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
148 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
150 (v850_dbtrap_breakpoint_from_pc): Likewise.
151 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
154 2013-07-01 Tom Tromey <tromey@redhat.com>
156 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
157 * configure: Rebuild.
159 2013-07-01 Pedro Alves <palves@redhat.com>
161 * defs.h: Include "pathmax.h".
162 * utils.c: Don't include sys/param.h.
163 (gdb_realpath): Remove code that checks for MAXPATHLEN.
164 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
165 instead of MAXPATHLEN.
166 * solib-sunos.c: Don't include sys/param.h.
167 * xcoffread.c: Don't include sys/param.h.
168 * bsd-kvm.c: Don't include sys/param.h.
169 * darwin-nat.c: Don't include sys/param.h.
170 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
171 * darwin-nat-info.c: Don't include sys/param.h.
172 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
174 * i386obsd-nat.c: Don't include sys/param.h.
175 * inf-child.c: Don't include sys/param.h.
176 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
177 * linux-fork.c: Don't include sys/param.h.
178 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
179 * linux-nat.c: Don't include sys/param.h.
180 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
181 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
182 * m68klinux-nat.c: Don't include sys/param.h.
183 * nbsd-nat.c: Don't include sys/param.h.
184 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
185 * ppc-linux-nat.c: Don't include sys/param.h.
186 * rs6000-nat.c: Don't include sys/param.h.
187 * spu-linux-nat.c. Don't include sys/param.h.
188 * windows-nat.c: Don't include sys/param.h.
189 * xtensa-linux-nat.c: Don't include sys/param.h.
190 * config/i386/nm-fbsd.h: Don't include sys/param.h.
192 2013-07-01 Pedro Alves <palves@redhat.com>
194 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
195 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
196 * gnulib/aclocal.m4: Regenerate.
197 * gnulib/config.in: Regenerate.
198 * gnulib/configure: Regenerate.
199 * gnulib/import/pathmax.h: New file.
200 * gnulib/import/Makefile.am: Regenerate.
201 * gnulib/import/Makefile.in: Regenerate.
202 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
203 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
204 * gnulib/import/m4/pathmax.m4: New file.
206 2013-07-01 Pedro Alves <palves@redhat.com>
208 * configure.ac (GDBINIT): Define, depending on host.
209 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
210 * top.c (PATH_MAX): Delete fallback definition.
211 (GDBINIT_FILENAME): Delete.
212 (gdbinit): Reimplement as const char array set to the GDBINIT
214 * top.h (gdbinit): Make const.
215 * configure, config.in: Regenerate.
217 2013-07-01 Pedro Alves <palves@redhat.com>
219 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
220 * cli/cli-cmds.h (source_script): Likewise.
221 * exceptions.c (catch_command_errors_const): New function.
222 * exceptions.h (catch_command_errors_const): Declare.
223 * main.c (get_init_files): Make parameters const, and adjust.
224 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
225 'local_gdbinit' locals const. Adjust to use
226 catch_command_errors_const.
227 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
228 'local_gdbinit' locals const.
230 2013-07-01 Pedro Alves <palves@redhat.com>
232 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
233 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
234 * tracepoint.c: Don't check HAVE_UNISTD_H before including
237 2013-07-01 Pedro Alves <palves@redhat.com>
239 Import the "unistd" gnulib module.
240 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
241 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
242 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
243 import/m4/unistd_h.m4.
244 * gnulib/aclocal.m4: Renenerate.
245 * gnulib/config.in: Renenerate.
246 * gnulib/configure: Renenerate.
247 * gnulib/import/Makefile.am: Renenerate.
248 * gnulib/import/Makefile.in: Renenerate.
249 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
250 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
251 * gnulib/import/m4/off_t.m4: New file.
252 * gnulib/import/m4/ssize_t.m4: New file.
253 * gnulib/import/m4/sys_types_h.m4: New file.
254 * gnulib/import/m4/unistd_h.m4: New file.
255 * gnulib/import/sys_types.in.h: New file.
256 * gnulib/import/unistd.c: New file.
257 * gnulib/import/unistd.in.h: New file.
259 2013-07-01 Pedro Alves <palves@redhat.com>
261 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
262 defined instead of checking HAVE_UNISTD_H.
264 2013-07-01 Pedro Alves <palves@redhat.com>
266 Reimport gnulib from scratch.
267 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
268 import/m4/onceonly.m4.
269 * gnulib/aclocal.m4: Renegerate.
270 * gnulib/config.in: Renegerate.
271 * gnulib/configure: Renegerate.
272 * gnulib/import/Makefile.in: Renegerate.
273 * gnulib/import/extra/update-copyright: Renegerate.
274 * gnulib/import/m4/onceonly.m4: Delete.
276 2013-07-01 Pedro Alves <palves@redhat.com>
278 * tui/tui-regs.c (pagination_enabled): Delete declaration.
280 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
283 * remote.c (async_remote_interrupt_twice): Make it static.
284 * remote.h (async_remote_interrupt_twice): Remove the declaration.
286 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
288 * ia64-linux-tdep.c: Include <ctype.h>.
289 (ia64_linux_stap_is_single_operand): New function.
290 (ia64_linux_init_abi): Initialize SystemTap related attributes.
292 2013-06-28 Tom Tromey <tromey@redhat.com>
294 * Makefile.in (version.c): Use version.in, not
296 * common/create-version.sh: Likewise.
297 * common/version.in: Move...
298 * version.in: ...here.
300 2013-06-28 Pedro Alves <palves@redhat.com>
302 * infrun.c (set_observer_mode): Don't declare pagination_enabled
304 * utils.h (pagination_enabled): Declare.
306 2013-06-28 Pedro Alves <palves@redhat.com>
308 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
309 Move higher up in file.
311 2013-06-28 Tom Tromey <tromey@redhat.com>
313 * tracepoint.c (deprecated_readline_begin_hook)
314 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
317 2013-06-28 Pedro Alves <palves@redhat.com>
320 * tui/tui-regs.c (tui_get_register): Fetch value contents before
321 checking if they're available.
322 * value.c (value_available_contents_eq): Change comment.
323 * value.h (value_available_contents_eq): Expand comment.
325 2013-06-27 Tom Tromey <tromey@redhat.com>
327 * target.c (find_run_target): Remove.
328 * target.h (find_run_target): Remove.
330 2013-06-27 Tom Tromey <tromey@redhat.com>
332 * corelow.c (core_gdbarch): Now static.
334 2013-06-27 Tom Tromey <tromey@redhat.com>
336 * target.c (target_struct_index): Remove.
338 2013-06-27 Pedro Alves <palves@redhat.com>
340 * infrun.c: Remove comment describing the 'stepping over runtime
341 loader dynamic symbol resolution code' mechanism; moved to
344 2013-06-27 Pedro Alves <palves@redhat.com>
346 * exceptions.c (catch_command_errors): Remove spurious space.
347 * exceptions.h (catch_command_errors): Second parameter is "arg",
350 2013-06-27 Yao Qi <yao@codesourcery.com>
352 * common/create-version.sh: Update comments. Handle the case
353 that TARGET_ALIAS is empty.
355 2013-06-26 Pedro Alves <palves@redhat.com>
357 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
360 2013-06-26 Pedro Alves <palves@redhat.com>
362 * infrun.c: Update comments on stepping over runtime loader
363 dynamic symbol resolution code.
365 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
367 * ax-gdb.h (union exp_element): Forward declare.
368 * parser-defs.h: Include expression.h.
370 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
372 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
374 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
376 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
378 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
380 Fix trace-status to output proper start-time and stop-time.
381 * tracepoint.c (trace_status_command): Fix type of printf arg to
382 prevent improper type conversion.
383 (trace_status_mi): Likewise.
385 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
387 * mips-tdep.c (mips_next_pc): Fix a typo.
389 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
391 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
393 2013-06-26 Pedro Alves <pedro@codesourcery.com>
394 Yao Qi <yao@codesourcery.com>
396 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
397 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
398 * mi/mi-main.c (print_variable_or_computed): New function.
399 (mi_cmd_trace_frame_collected): New function.
400 * tracepoint.c (find_trace_state_variable_by_number): New.
401 (struct traceframe_info): Move to tracepoint.h
402 (struct collection_list): Likewise.
403 (do_collect_symbol): Include locals and arguments in the
404 collected variables list.
405 (clear_collection_list): Clear wholly collected variables list
406 and computed variables list.
407 (append_exp): New function.
408 (encode_actions_1): Include variables in the wholly
409 collected variables list. Include memory ranges and
410 full-fledged expressions in the computed expressions list.
411 (encode_actions): Move some code to ...
412 Return the cleanup chain.
413 (encode_actions_rsp): ... here. New function.
414 (get_traceframe_location, get_traceframe_info): Remove static.
415 * tracepoint.h (struct memrange): Moved from tracepoint.c.
416 (struct collection_list): Moved from tracepoint.c. Add two
417 new fields 'wholly_collected' and 'computed'.
418 (find_trace_state_variable_by_number): Declare.
419 (encode_actions): Adjust declaration.
420 (encode_actions_rsp): Declare.
421 (get_traceframe_info, get_traceframe_location): Declare.
423 * NEWS: Mention new MI command -trace-frame-collected.
425 2013-06-26 Pedro Alves <pedro@codesourcery.com>
426 Yao Qi <yao@codesourcery.com>
428 * ctf.c (ctf_traceframe_info): Push trace state variables
429 present in the trace data into the traceframe info object.
430 * breakpoint.c (DEF_VEC_I): Remove.
431 * common/filestuff.c (DEF_VEC_I): Likewise.
432 * dwarf2loc.c (DEF_VEC_I): Likewise.
433 * mi/mi-main.c (DEF_VEC_I): Likewise.
434 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
435 * features/traceframe-info.dtd: Add tvar element and its
437 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
438 (build_traceframe_info): Push trace state variables present in
439 the trace data into the traceframe info object.
440 (traceframe_info_start_tvar): New function.
441 (tvar_attributes): New.
442 (traceframe_info_children): Add "tvar" element.
443 * tracepoint.h (struct traceframe_info) <tvars>: New field.
445 * NEWS: Mention the change in GDB and GDBserver.
447 2013-06-26 Pedro Alves <pedro@codesourcery.com>
448 Yao Qi <yao@codesourcery.com>
450 * tracepoint.c (trace_dump_command): Move code to ...
451 (get_traceframe_location): ... here. New.
453 2013-06-26 Pedro Alves <pedro@codesourcery.com>
454 Yao Qi <yao@codesourcery.com>
456 * tracepoint.c (trace_dump_command): GDB emits an error
457 instead of a warning when a traceframe is not selected.
459 2013-06-26 Pedro Alves <pedro@codesourcery.com>
460 Yao Qi <yao@codesourcery.com>
462 * tracepoint.c (tracepoint_list, stepping_list): Remove.
463 (clear_collection_list): Free fields 'aexpre_list' and 'list'
465 (do_clear_collection_list, init_collection_list): New.
466 (encode_actions): Add local variables 'tracepoint_list' and
467 'stepping_list'. Call init_collection_list and make cleanup
468 which calls do_clear_collection_list. Don't call
469 clear_collection_list.
470 (_initialize_tracepoint): Delete references to
471 'tracepoint_list' and 'stepping_list'.
473 2013-06-25 Tom Tromey <tromey@redhat.com>
475 * common/create-version.sh (date): Use "$", not "$$" in sed
478 2013-06-25 Kevin Buettner <kevinb@redhat.com>
480 * NEWS (New targets): Add entry for TI MSP430.
482 2013-06-25 Yao Qi <yao@codesourcery.com>
484 * remote.c (remote_start_remote): Move code to upload tsv
487 2013-06-25 Yao Qi <yao@codesourcery.com>
488 Hui Zhu <hui@codesourcery.com>
489 Pedro Alves <palves@redhat.com>
493 * breakpoint.c (bpstat_stop_status): Call
494 b->ops->after_condition_true.
495 (update_dprintf_command_list): Don't append "continue" command
496 to the command list of dprintf breakpoint.
497 (base_breakpoint_after_condition_true): New function.
498 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
499 (dprintf_after_condition_true): New function.
500 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
501 * breakpoint.h (breakpoint_ops): Add after_condition_true.
503 2013-06-24 Kevin Buettner <kevinb@redhat.com>
505 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
506 (ALLDEPFILES): Add msp430-tdep.c.
507 * configure.tgt (msp430*-*-elf): New target.
508 * msp430-tdep.c: New file.
510 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
512 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
513 microMIPS synthetic symbols.
515 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
517 * objfiles.h (pc_in_section): New prototype.
518 (in_plt_section): Remove name argument, replace prototype with
519 static inline function.
520 * mips-tdep.h: Include "objfiles.h".
521 (in_mips_stubs_section): New function.
522 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
523 in_solib_call_trampoline member.
524 (hppa_in_solib_call_trampoline): Remove name argument.
525 * objfiles.c (pc_in_section): New function.
526 (in_plt_section): Remove function.
527 * mips-linux-tdep.c: Include "objfiles.h".
528 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
529 name argument. Return 1 rather than the low 16-bit halfword of
530 any instruction examined.
531 (mips_linux_in_dynsym_resolve_code): Update
532 mips_linux_in_dynsym_stub call accordingly.
533 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
534 rather than an equivalent hand-coded sequence.
535 * hppa-hpux-tdep.c (in_opd_section): Remove function.
536 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
537 (hppa64_hpux_in_solib_call_trampoline): Likewise.
538 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
540 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
541 on call to tdep->in_solib_call_trampoline.
542 (hppa_in_solib_call_trampoline): Remove name argument, update
543 according to in_plt_section change.
544 (hppa_skip_trampoline_code): Update according to in_plt_section
546 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
547 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
549 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
550 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
551 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
552 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
553 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
554 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
555 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
556 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
557 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
558 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
559 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
560 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
561 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
563 2013-06-24 Joel Brobecker <brobecker@adacore.com>
565 * common/create-version.sh: Fix expansion of $host_alias
566 and $target_alias in generation of HOST_NAME and TARGET_NAME
569 2013-06-24 Tom Tromey <tromey@redhat.com>
571 * common/create-version.sh: New file.
572 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
574 (HFILES_NO_SRCDIR): Use common/version.h.
575 * version.in: Move to ...
576 * common/version.in: ... here. Replace date with "DATE".
577 * version.h: Move to ...
578 * common/version.h: ... here.
580 2013-06-21 Joel Brobecker <brobecker@adacore.com>
582 * gdb/gnulib/Makefile.in: Update date in copyright header.
583 * gdb/gnulib/configure.ac: Ditto.
584 * gdb/gnulib/update-gnulib.sh: Ditto.
586 2013-06-21 Joel Brobecker <brobecker@adacore.com>
588 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
591 2013-06-21 Will Newton <will.newton@linaro.org>
593 * doublest.c (ldfrexp): Remove function.
594 (convert_doublest_to_floatformat): Call frexpl instead of
597 2013-06-21 Will Newton <will.newton@linaro.org>
599 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
600 * gnulib/aclocal.m4: Regenerate.
601 * gnulib/config.in: Regenerate.
602 * gnulib/configure: Regenerate.
603 * gnulib/import/Makefile.am: Update.
604 * gnulib/import/Makefile.in: Update.
605 * gnulib/import/m4/gnulib-cache.m4: Update.
606 * gnulib/import/m4/gnulib-comp.m4: Update.
607 * gnulib/import/float+.h: Import.
608 * gnulib/import/float.c: Import.
609 * gnulib/import/float.in.h: Import.
610 * gnulib/import/fpucw.h: Import.
611 * gnulib/import/frexp.c: Import.
612 * gnulib/import/frexpl.c: Import.
613 * gnulib/import/isnan.c: Import.
614 * gnulib/import/isnand-nolibm.h: Import.
615 * gnulib/import/isnand.c: Import.
616 * gnulib/import/isnanl-nolibm.h: Import.
617 * gnulib/import/isnanl.c: Import.
618 * gnulib/import/itold.c: Import.
619 * gnulib/import/m4/exponentd.m4: Import.
620 * gnulib/import/m4/exponentl.m4: Import.
621 * gnulib/import/m4/float_h.m4: Import.
622 * gnulib/import/m4/fpieee.m4: Import.
623 * gnulib/import/m4/frexp.m4: Import.
624 * gnulib/import/m4/frexpl.m4: Import.
625 * gnulib/import/m4/isnand.m4: Import.
626 * gnulib/import/m4/isnanl.m4: Import.
627 * gnulib/import/m4/math_h.m4: Import.
628 * gnulib/import/math.c: Import.
629 * gnulib/import/math.in.h: Import.
631 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
633 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
634 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
635 signature_INTEL_edx comparisons.
637 2013-06-20 Doug Evans <dje@google.com>
640 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
642 (open_dwp_file): If we can't find the dwp file, search the basename
643 in debug-file-directory.
645 * dwarf2read.c (struct dwp_file): Fix comment.
646 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
648 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
651 2013-06-20 Yao Qi <yao@codesourcery.com>
653 * breakpoint.c (create_breakpoint): Fix code indentation.
655 2013-06-20 Yao Qi <yao@codesourcery.com>
657 * breakpoint.c (create_breakpoints_sal_default): Remove
658 parameter 'lsal'. Update declaration.
659 (bkpt_create_breakpoints_sal): Caller update.
660 (tracepoint_create_breakpoints_sal): Likewise.
662 2013-06-20 Pedro Alves <pedro@codesourcery.com>
663 Yao Qi <yao@codesourcery.com>
665 * NEWS: Mention the new option '--skip-unavailable' of command
666 -data-list-register-values.
667 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
668 --skip-unavailable option. Adjust to use output_register.
669 (output_register): Add new 'skip_unavailable' parameter.
672 2013-06-19 Mike Frysinger <vapier@gentoo.org>
674 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
675 common/i386-gcc-cpuid.h.
676 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
677 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
678 Copy the latest version from upstream gcc.
679 * common/linux-btrace.c: Include i386-cpuid.h.
680 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
682 (cpu_supports_btrace): Likewise.
683 * go32-nat.c: Include i386-cpuid.h.
684 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
686 2013-06-19 Doug Evans <dje@google.com>
688 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
689 (get_section_index): Ditto.
691 2013-06-19 Tom Tromey <tromey@redhat.com>
693 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
696 2013-06-18 Doug Evans <dje@google.com>
698 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
700 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
701 Move test of cu_index closer to use. Print complaint if cu_index
704 2013-06-18 Joel Brobecker <brobecker@adacore.com>
706 * machoread.c (oso_vector): Delete this global.
707 (macho_register_oso): Add new parameter "oso_vector_ptr".
708 Use it instead of the "oso_vector" global.
709 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
710 (macho_symfile_read): Use a local oso_vector, to be free'ed
711 at the end of this function, in place of the old "oso_vector"
712 global. Update various function calls accordingly. Use one
713 single cleanup chain for the entire function.
715 2013-06-18 Joel Brobecker <brobecker@adacore.com>
717 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
718 DWARF2_PER_OBJFILE by uses of DATA instead.
720 2013-06-18 Tom Tromey <tromey@redhat.com>
722 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
724 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
725 Special case signals other than GDB_SIGNAL_TRAP.
726 (explains_signal_watchpoint): New function.
727 (base_breakpoint_explains_signal): Add 'sig' argument.
728 (initialize_breakpoint_ops): Set 'explains_signal' method for
730 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
732 (bpstat_explains_signal): Likewise.
733 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
735 2013-06-18 Tom Tromey <tromey@redhat.com>
737 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
739 2013-06-18 Tom Tromey <tromey@redhat.com>
741 * python/python.c (finish_python_initialization): Decref
742 'pythondir' on failure path as well.
744 2013-06-18 Tom Tromey <tromey@redhat.com>
747 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
748 after taking bits_to_skip into account. Sign extend byte_offset.
749 * utils.h (gdb_sign_extend): Declare.
750 * utils.c (gdb_sign_extend): New function.
752 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
754 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
756 2013-06-17 Pierre Muller <muller@sourceware.org>
758 * corelow.c (core_open): Print GDB signal name instead of target
761 2013-06-17 Mike Frysinger <vapier@gentoo.org>
763 * .gitignore: Add /gcore.
765 2013-06-13 Doug Evans <dje@google.com>
767 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
768 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
770 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
772 * stack.c (backtrace_command_1): Fix indentation.
774 2013-06-11 Joel Brobecker <brobecker@adacore.com>
776 * window-nat.c (thread_rec): Add missing empty line after
777 local variable declaration.
779 2013-06-11 Joel Brobecker <brobecker@adacore.com>
781 * windows-nat.c (thread_rec): Revert format used to print
782 error code returned by SuspendThread from %d back to %u.
784 2013-06-11 Joel Brobecker <brobecker@adacore.com>
786 * windows-nat.c (windows_continue): Add "0x" prefix for thread
788 (get_windows_debug_event): Likewise, for all debug traces.
790 2013-06-11 Joel Brobecker <brobecker@adacore.com>
792 * window-nat.c (thread_rec): Add thread ID in SuspendThread
795 2013-06-08 Pedro Alves <pedro@codesourcery.com>
796 Yao Qi <yao@codesourcery.com>
798 * mi/mi-main.c (get_register): Remove declaration.
799 (output_register): Declare.
800 (mi_cmd_data_list_register_values): Remove local variable
801 'tuple_cleanup'. Move some code into output_register.
802 (get_register): Renamed to ...
803 (output_register): ... this. Output the register's
804 "number" ui_out tuple here.
806 2013-06-07 Pedro Alves <palves@redhat.com>
808 * darwin-nat.c: Fix formating in copyright header.
809 * darwin-nat.h: Likewise.
810 * gnu-nat.c: Likewise.
811 * machoread.c: Likewise.
813 2013-06-07 Pedro Alves <palves@redhat.com>
816 * regformats/regdat.sh: Output #include tdesc.h. Make globals
817 static. Output a global target description pointer.
818 (init_registers_${name}): Adjust to initialize a
819 target description structure.
821 2013-06-07 Will Newton <will.newton@linaro.org>
823 * printcmd.c (build_address_symbolic): Call
824 gdbarch_addr_bits_remove for text minimal symbols.
826 2013-06-07 Will Newton <will.newton@linaro.org>
828 * MAINTAINERS: Add myself to Write After Approval.
830 2013-06-07 Yao Qi <yao@codesourcery.com>
832 * tracepoint.c (start_tracing): Move code to ...
833 (trace_reset_local_state): ... here. New.
834 (disconnect_tracing): Don't call set_current_traceframe,
835 set_tracepoint_num, and set_traceframe_context. Call
836 trace_reset_local_state instead.
837 (tfile_close): Call trace_reset_local_state.
838 * ctf.c (ctf_close): Likewise.
839 * remote.c (remote_close): Likewise.
840 * tracepoint.h (trace_reset_local_state): Declare.
842 2013-06-06 Doug Evans <dje@google.com>
844 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
847 2013-06-05 Doug Evans <dje@google.com>
848 Keith Seitz <keiths@redhat.com>
851 * cp-namespace.c (find_symbol_in_baseclass): Call
852 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
853 Check result of call to lookup_symbol_static.
854 Call lookup_static_symbol_aux unconditionally.
855 Call check_typedef on base types before accessing them.
856 (cp_lookup_nested_symbol): Fix comment.
858 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
860 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
861 minimal symbols pointing to function descriptors.
863 2013-06-05 Tom Tromey <tromey@redhat.com>
865 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
867 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
868 Pedro Alves <palves@redhat.com>
870 * remote.c (remote_wait_as): Restore signal handler before returning
871 when GDB gets a notification.
873 2013-06-04 Gary Benson <gbenson@redhat.com>
876 * breakpoint.h (handle_solib_event): Moved function declaration
878 * breakpoint.c (handle_solib_event): Moved function to solib.c.
879 (bpstat_stop_status): Pass new argument to handle_solib_event.
880 * solib.h (update_solib_breakpoints): New function declaration.
881 (handle_solib_event): Moved function declaration from
883 * solib.c (update_solib_breakpoints): New function.
884 (handle_solib_event): Moved function from breakpoint.c.
885 Updated to call solib_ops->handle_event if not NULL.
886 * solist.h (target_so_ops): New fields "update_breakpoints" and
888 * infrun.c (set_stop_on_solib_events): New function.
889 (_initialize_infrun): Use the above for "set
890 stop-on-solib-events".
891 (handle_inferior_event): Pass new argument to handle_solib_event.
892 * solib-svr4.c (probe.h): New include.
893 (svr4_free_library_list): New forward declaration.
894 (probe_action): New enum.
895 (probe_info): New struct.
896 (probe_info): New static variable.
897 (NUM_PROBES): New definition.
898 (svr4_info): New fields "using_xfer", "probes_table" and
900 (free_probes_table): New function.
901 (free_solib_list): New function.
902 (svr4_pspace_data_cleanup): Free probes table and solib list.
903 (svr4_copy_library_list): New function.
904 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
905 (svr4_read_so_list): New parameter "prev_lm".
906 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
907 (svr4_current_sos): New function.
908 (probe_and_action): New struct.
909 (hash_probe_and_action): New function.
910 (equal_probe_and_action): Likewise.
911 (register_solib_event_probe): Likewise.
912 (solib_event_probe_at): Likewise.
913 (solib_event_probe_action): Likewise.
914 (solist_update_full): Likewise.
915 (solist_update_incremental): Likewise.
916 (disable_probes_interface_cleanup): Likewise.
917 (svr4_handle_solib_event): Likewise.
918 (svr4_update_solib_event_breakpoint): Likewise.
919 (svr4_update_solib_event_breakpoints): Likewise.
920 (svr4_create_solib_event_breakpoints): Likewise.
921 (enable_break): Free probes table before creating breakpoints.
922 Use svr4_create_solib_event_breakpoints to create breakpoints.
923 (svr4_solib_create_inferior_hook): Free the solib list.
924 (_initialize_svr4_solib): Initialise
925 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
927 2013-06-04 Gary Benson <gbenson@redhat.com>
929 * target.h (target_ops): New field
930 "to_augmented_libraries_svr4_read".
931 (target_augmented_libraries_svr4_read): New macro.
932 * target.c (update_current_target): Handle
933 to_augmented_libraries_svr4_read.
934 * remote.c (remote_state): New field
935 "augmented_libraries_svr4_read".
936 (remote_augmented_libraries_svr4_read_feature): New function.
937 (remote_protocol_features): Add entry for
938 "augmented-libraries-svr4-read".
939 (remote_augmented_libraries_svr4_read): New function.
940 (init_remote_ops): Initialize
941 remote_ops.to_augmented_libraries_svr4_read.
943 2013-06-04 Gary Benson <gbenson@redhat.com>
947 2013-06-04 Gary Benson <gbenson@redhat.com>
949 * objfiles.h (inhibit_section_map_updates): New function
951 (resume_section_map_updates): Likewise.
952 (resume_section_map_updates_cleanup): Likewise.
953 * objfiles.c (objfile_pspace_info): Removed field
954 "objfiles_changed_p". New fields "new_objfiles_available",
955 "section_map_dirty" and "inhibit_updates".
956 (allocate_objfile): Set new_objfiles_available.
957 (free_objfile): Set section_map_dirty.
958 (objfile_relocate1): Likewise.
959 (in_plt_section): Likewise.
960 (find_pc_section): Update the conditions under which the
961 section map will be updated.
962 (inhibit_section_map_updates): New function.
963 (resume_section_map_updates): Likewise.
964 (resume_section_map_updates_cleanup): Likewise.
966 2013-06-04 Gary Benson <gbenson@redhat.com>
968 * probe.h (get_probe_argument_count): New declaration.
969 (evaluate_probe_argument): Likewise.
970 * probe.c (get_probe_argument_count): New function.
971 (evaluate_probe_argument): Likewise.
972 (probe_safe_evaluate_at_pc): Use the above new functions.
974 2013-06-04 Alan Modra <amodra@gmail.com>
976 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
977 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
978 (ppc_insns_match_pattern): Add frame param. Avoid multiple
979 target mem reads on optional insns.
980 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
981 ppc_insns_match_pattern calls.
982 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
983 Add match for power7 thread safety insns, and new order of
984 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
985 invocation in comment, and update rest of comment.
986 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
987 PPC64_STANDARD_LINKAGE3_LEN): Delete.
988 (ppc64_standard_linkage2_target): Update insn offsets.
989 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
990 stubs first. Update calls.
992 2013-06-04 Yao Qi <yao@codesourcery.com>
994 * solib.c (solib_find): Don't need dir separator if path has
997 2013-06-03 Joel Brobecker <brobecker@adacore.com>
999 Revert (indirectly causes a SIGSEGV):
1000 * machoread.c (macho_symfile_read): Assign first cleanup to
1003 2013-06-03 Yao Qi <yao@codesourcery.com>
1005 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
1006 mi-parse.c. Make them static.
1007 (mi_all_values): Likewise.
1008 (mi_parse_values_option): Move to mi-parse.c. Rename it to
1009 mi_parse_print_values. Make it external.
1010 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
1011 Remove the declarations.
1012 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
1013 * mi/mi-parse.h (mi_parse_print_values): Declare.
1014 * mi/mi-cmd-stack.c: Include mi-parse.h.
1015 (parse_print_values): Remove
1016 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
1017 of parse_print_values.
1018 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
1020 2013-05-31 Pedro Alves <pedro@codesourcery.com>
1021 Yao Qi <yao@codesourcery.com>
1023 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
1024 (encode_actions): Move code to ...
1025 (all_tracepoint_actions_and_cleanup): ... here. New.
1026 (trace_dump_command): Likewise.
1028 2013-05-30 Tom Tromey <tromey@redhat.com>
1030 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
1032 2013-05-30 Tom Tromey <tromey@redhat.com>
1034 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
1035 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
1036 'old_chain' argument. Add 'parser_result' argument.
1037 (gdb_xml_create_parser_and_cleanup): Remove old version.
1038 (gdb_xml_parse_quick): Update.
1039 (xml_process_xincludes): Update.
1040 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
1043 2013-05-30 Tom Tromey <tromey@redhat.com>
1045 * probe.c (collect_probes): Check arguments for NULL before
1046 calling compile_rx_or_error.
1047 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
1050 2013-05-30 Tom Tromey <tromey@redhat.com>
1052 * infrun.c (adjust_pc_after_break): Introduce an outer null
1055 2013-05-30 Tom Tromey <tromey@redhat.com>
1057 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
1059 2013-05-30 Tom Tromey <tromey@redhat.com>
1061 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
1062 for 'old_chain'. Do not check 'head' before processing
1065 2013-05-30 Tom Tromey <tromey@redhat.com>
1067 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
1070 2013-05-30 Tom Tromey <tromey@redhat.com>
1072 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
1073 inner scope. Unconditionally call do_cleanups.
1075 2013-05-30 Tom Tromey <tromey@redhat.com>
1077 * source.c (find_and_open_source): Call do_cleanups.
1079 2013-05-30 Tom Tromey <tromey@redhat.com>
1081 * linux-thread-db.c (thread_db_load_search): Unconditionally
1084 2013-05-30 Tom Tromey <tromey@redhat.com>
1086 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
1087 for 'cleanup'; instead use a later one.
1089 2013-05-30 Tom Tromey <tromey@redhat.com>
1091 * python/py-breakpoint.c (bppy_get_commands): Use
1092 explicit, unconditional return.
1093 * python/py-frame.c (frapy_read_var): Likewise.
1094 * python/python.c (gdbpy_decode_line): Likewise.
1096 2013-05-30 Tom Tromey <tromey@redhat.com>
1098 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
1099 do_cleanups on all return paths.
1101 2013-05-30 Tom Tromey <tromey@redhat.com>
1103 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
1105 2013-05-30 Tom Tromey <tromey@redhat.com>
1107 * stabsread.c (read_struct_type): Call do_cleanups along
1110 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
1112 * mips-linux-tdep.c: Adjust formatting throughout.
1114 2013-05-30 Tom Tromey <tromey@redhat.com>
1116 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
1117 along all return paths.
1119 2013-05-30 Tom Tromey <tromey@redhat.com>
1121 * symfile.c (find_separate_debug_file): Call do_cleanups
1122 along all return paths.
1124 2013-05-30 Tom Tromey <tromey@redhat.com>
1126 * symtab.c (search_symbols): Introduce a null cleanup for
1129 2013-05-30 Tom Tromey <tromey@redhat.com>
1131 * python/py-value.c (valpy_binop): Call do_cleanups before
1134 2013-05-30 Tom Tromey <tromey@redhat.com>
1136 * python/py-prettyprint.c (print_children): Remove extra
1139 2013-05-30 Tom Tromey <tromey@redhat.com>
1141 * python/py-frame.c (frapy_read_var): Call do_cleanups along
1144 2013-05-30 Tom Tromey <tromey@redhat.com>
1146 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
1147 along all return paths.
1149 2013-05-30 Tom Tromey <tromey@redhat.com>
1151 * cli/cli-logging.c (set_logging_redirect): Unconditionally
1154 2013-05-30 Tom Tromey <tromey@redhat.com>
1156 * varobj.c (c_value_of_root): Call do_cleanups along all
1159 2013-05-30 Tom Tromey <tromey@redhat.com>
1161 * tracepoint.c (trace_dump_command): Unconditionally call
1164 2013-05-30 Tom Tromey <tromey@redhat.com>
1166 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
1167 do_cleanups earlier.
1169 2013-05-30 Tom Tromey <tromey@redhat.com>
1171 * machoread.c (macho_symfile_read): Assign first cleanup to
1174 2013-05-30 Tom Tromey <tromey@redhat.com>
1176 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
1178 2013-05-30 Tom Tromey <tromey@redhat.com>
1180 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
1182 2013-05-30 Tom Tromey <tromey@redhat.com>
1184 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
1185 call discard_cleanups.
1186 (inf_ptrace_attach): Likewise.
1188 2013-05-30 Tom Tromey <tromey@redhat.com>
1190 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
1192 (mips_initialize): Likewise.
1193 (common_open): Call do_cleanups.
1195 2013-05-30 Tom Tromey <tromey@redhat.com>
1197 * utils.c (internal_vproblem): Call do_cleanups.
1199 2013-05-30 Tom Tromey <tromey@redhat.com>
1201 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
1203 2013-05-30 Tom Tromey <tromey@redhat.com>
1205 * cli/cli-script.c (setup_user_args): Don't return after error.
1207 2013-05-30 Tom Tromey <tromey@redhat.com>
1209 * somread.c (som_symtab_read): Call do_cleanups.
1211 2013-05-30 Tom Tromey <tromey@redhat.com>
1213 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
1215 2013-05-30 Tom Tromey <tromey@redhat.com>
1217 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
1218 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
1219 * interps.c (interpreter_exec_cmd): Call do_cleanups.
1220 * source.c (show_substitute_path_command): Call do_cleanups.
1221 (unset_substitute_path_command, set_substitute_path_command):
1223 * symfile.c (load_command): Call do_cleanups.
1225 2013-05-30 Tom Tromey <tromey@redhat.com>
1227 * contrib/cleanup_check.py: New file.
1228 * contrib/gcc-with-excheck: Add option parsing.
1230 2013-05-30 Joel Brobecker <brobecker@adacore.com>
1232 * windows-nat.c (windows_delete_thread): Add missing space
1235 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
1237 * inferior.c (top level): Include tilde.h.
1238 (add_inferior_command): Call tilde_expand on the value of 'exec'
1241 2013-05-30 Pedro Alves <pedro@codesourcery.com>
1242 Yao Qi <yao@codesourcery.com>
1244 * tracepoint.c (encode_actions_1): Remove parameter 't'.
1246 (encode_actions): Likewise.
1247 * remote.c (remote_download_tracepoint): Caller update.
1248 * tracepoint.h (encode_actions): Update declaration.
1250 2013-05-30 Pedro Alves <palves@redhat.com>
1252 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
1255 2013-05-30 Yao Qi <yao@codesourcery.com>
1257 * remote.c (remote_check_symbols): Remove unused parameter
1260 (remote_start_remote, remote_new_objfile): Caller update.
1262 2013-05-30 Yao Qi <yao@codesourcery.com>
1264 * mi/mi-cmds.c (mi_cmds): Define MI command
1265 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
1268 2013-05-29 Pedro Alves <palves@redhat.com>
1270 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
1271 (remote_insert_watchpoint, remote_remove_watchpoint)
1272 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
1273 (remote_verify_memory, compare_sections_command)
1274 (remote_search_memory): Set the general process/thread on the
1277 2013-05-29 Pedro Alves <palves@redhat.com>
1279 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
1280 (_initialize_aarch64_tdep): Don't call
1281 initialize_tdesc_aarch64_without_fpu.
1282 * features/Makefile (WHICH): Remove reference to
1283 aarch64-without-fpu.
1284 * features/aarch64-without-fpu.c: Delete file.
1285 * regformats/aarch64-without-fpu.dat: Delete file.
1287 2013-05-28 Yao Qi <yao@codesourcery.com>
1289 * tracepoint.c (stringify_collection_list): Remove parameter
1291 (encode_actions): Caller update. Remove local variables.
1293 2013-05-24 Yao Qi <yao@codesourcery.com>
1295 * tracepoint.c (TFILE_PID): Remove.
1296 (tfile_open): Don't add thread and inferior.
1297 (tfile_close): Don't set 'inferior_ptid'. Don't call
1298 exit_inferior_silent.
1299 (tfile_thread_alive): Remove.
1300 (init_tfile_ops): Don't set field 'to_thread_alive' of
1303 2013-05-23 Doug Evans <dje@google.com>
1305 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
1307 2013-05-23 Pedro Alves <palves@redhat.com>
1309 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
1310 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
1311 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
1312 Only define if HAVE_SOCKETS is defined.
1313 * configure.ac: Check for sys/socket.h.
1314 * config.in, configure: Regenerate.
1316 2013-05-23 Pedro Alves <palves@redhat.com>
1318 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
1319 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
1320 printing uint32_t variables.
1322 2013-05-23 Pedro Alves <palves@redhat.com>
1324 * NEWS: Mention GDBserver range stepping support.
1326 2013-05-23 Yao Qi <yao@codesourcery.com>
1327 Pedro Alves <palves@redhat.com>
1329 * gdbthread.h (struct thread_control_state) <may_range_step>: New
1331 * infcmd.c (step_once, until_next_command): Enable range stepping.
1332 * infrun.c (displaced_step_prepare): Disable range stepping.
1333 (resume): Disable range stepping if stepping over a breakpoint or
1334 we have software watchpoints. If range stepping is enabled,
1335 assert the thread is in the stepping range.
1336 (clear_proceed_status_thread): Clear may_range_step.
1337 (handle_inferior_event): Disable range stepping as soon as we know
1338 the thread that hit the event. Re-enable it whenever we're going
1339 to step with a step range.
1340 * remote.c (struct vCont_action_support) <r>: New field.
1341 (use_range_stepping): New global.
1342 (remote_vcont_probe): Handle 'r' action.
1343 (append_resumption): Append an 'r' action if the thread may range
1345 (show_range_stepping): New function.
1346 (set_range_stepping): New function.
1347 (_initialize_remote): Call add_setshow_boolean_cmd to register the
1348 'set range-stepping' and 'show range-stepping' commands.
1349 * NEWS: Mention range stepping, the new vCont;r action, and the
1350 new "set/show range-stepping" commands.
1352 2013-05-23 Yao Qi <yao@codesourcery.com>
1353 Pedro Alves <palves@redhat.com>
1355 * remote.c (struct vCont_action_support): New struct.
1356 (struct remote_state) <support_vCont_t>: Remove field.
1357 <vCont_actions_support>: New field.
1358 (remote_vcont_probe, remote_stop_ns): Update.
1360 2013-05-23 Yao Qi <yao@codesourcery.com>
1361 Pedro Alves <palves@redhat.com>
1363 * gdbthread.h (pc_in_thread_step_range): New declaration.
1364 * thread.c (pc_in_thread_step_range): New function.
1365 * infrun.c (handle_inferior_event): Use it.
1367 2013-05-23 Joel Brobecker <brobecker@adacore.com>
1369 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
1372 2013-05-22 Keith Seitz <keiths@redhat.com>
1374 * ada-lang.c (is_known_support_routine): Add explicit free of
1375 'func_name' from find_frame_funname.
1376 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
1377 for func_name from find_frame_funname.
1378 * python/py-frame.c (frapy_name): Add explicit free of
1379 'name' from find_frame_funname.
1380 * stack.c (find_frame_funname): Add comment explaining that
1381 funcp must be freed by the caller.
1382 Return copy of symbol names instead of pointers.
1383 (print_frame): Add a cleanup for 'funname' from
1385 * stack.h (find_frame_funname): Remove "const" from
1386 'funname' parameter.
1388 2013-05-22 Tom Tromey <tromey@redhat.com>
1391 * c-valprint.c (c_value_print): Use value_addr for
1392 references. Convert back to reference type with value_ref.
1394 2013-05-22 Eli Zaretskii <eliz@gnu.org>
1396 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
1397 unloaded DLL, it will be done by handle_solib_event. See
1398 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
1401 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
1403 * ui-out.c: Create typedef ui_out_level_p and define vector
1404 operations for that type.
1405 (struct ui_out): Use a vector instead of an array.
1406 (current_level): Return level from a vector.
1407 (push_level): Create a level in a vector.
1408 (pop_level): Delete a level in a vector.
1409 (ui_out_new): Create initial level zero level, and store in a
1411 (ui_out_destroy): Add vector cleanup.
1413 2013-05-22 Pedro Alves <palves@redhat.com>
1415 * python/python-internal.h (gdb_Py_DECREF): Tag with
1416 "ARI: editCase function".
1418 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
1420 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
1422 2013-05-21 Pedro Alves <palves@redhat.com>
1424 * python/py-prettyprint.c (apply_val_pretty_printer): Check
1425 whether PRINTER is NULL before installing a Py_DECREF cleanup.
1426 * python/py-utils.c (py_decref): Don't check for NULL before
1429 2013-05-21 Pedro Alves <palves@redhat.com>
1431 * python/py-utils.c (py_decref): Remove extra braces.
1432 (gdb_pymodule_addobject): Remove extra braces.
1433 * python-internal.h (gdb_Py_DECREF): New static inline function.
1434 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
1436 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1438 * breakpoints.c (detach_breakpoints): Do not
1439 detach breakpoints locations with loc_type bp_loc_other.
1441 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1443 Workaround Python 2.6.
1444 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
1447 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1449 Code cleanup: constification.
1450 * solib.c (solib_ops): Make return type and ops variable type const.
1451 (set_solib_ops): Make the new_ops parameter and ops variable const.
1452 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
1453 (solib_add, solib_keep_data_in_core, clear_solib)
1454 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
1455 (reload_shared_libraries, solib_global_lookup): Make the ops variable
1457 * solib.h (set_solib_ops): Make the new_ops parameter const.
1459 2013-05-21 Joel Brobecker <brobecker@adacore.com>
1461 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
1463 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
1464 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
1465 (SYSTEM_GDBINIT_FILES): New variables.
1466 (all): Add stamp-system-gdbinit.
1467 (stamp-system-gdbinit): New rule.
1468 (clean-system-gdbinit, install-system-gdbinit)
1469 (uninstall-system-gdbinit): New rules. Make them .PHONY.
1470 (install-only): Add dependency on install-system-gdbinit.
1471 (uninstall): Add dependency on uninstall-system-gdbinit.
1472 (clean): Add dependency on clean-system-gdbinit.
1473 * system-gdbinit/elinos.py: New file.
1474 * system-gdbinit/wrs-linux.py: New file.
1476 2013-05-21 Joel Brobecker <brobecker@adacore.com>
1478 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
1480 2013-05-21 Hui Zhu <hui@codesourcery.com>
1482 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
1483 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
1484 * mi/mi-cmd-break.c (ctype.h): New include.
1485 (gdb_obstack.h): New include.
1486 (mi_argv_to_format, mi_cmd_break_insert_1): New.
1487 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
1488 (mi_cmd_dprintf_insert): New.
1489 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
1490 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
1492 2013-05-20 Tom Tromey <tromey@redhat.com>
1494 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
1496 2013-05-20 Tom Tromey <tromey@redhat.com>
1498 * python/py-value.c (valpy_get_dynamic_type): Simplify
1499 dynamic_type assignment. Use Py_XINCREF.
1501 2013-05-20 Tom Tromey <tromey@redhat.com>
1503 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
1505 2013-05-20 Tom Tromey <tromey@redhat.com>
1507 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
1508 (gdbpy_selected_frame): Move object-construction code
1511 2013-05-20 Tom Tromey <tromey@redhat.com>
1513 * python/py-arch.c (gdbpy_initialize_arch): Use
1514 gdb_pymodule_addobject.
1515 * python/py-block.c (gdbpy_initialize_blocks): Use
1516 gdb_pymodule_addobject.
1517 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
1518 gdb_pymodule_addobject.
1519 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
1520 gdb_pymodule_addobject.
1521 * python/py-event.c (gdbpy_initialize_event_generic): Use
1522 gdb_pymodule_addobject.
1523 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
1524 gdb_pymodule_addobject.
1525 * python/py-evts.c (add_new_registry): Use
1526 gdb_pymodule_addobject.
1527 (gdbpy_initialize_py_events): Likewise.
1528 * python/py-finishbreakpoint.c
1529 (gdbpy_initialize_finishbreakpoints): Use
1530 gdb_pymodule_addobject.
1531 * python/py-frame.c (gdbpy_initialize_frames): Use
1532 gdb_pymodule_addobject.
1533 * python/py-function.c (gdbpy_initialize_functions): Use
1534 gdb_pymodule_addobject.
1535 * python/py-inferior.c (gdbpy_initialize_inferior): Use
1536 gdb_pymodule_addobject.
1537 * python/py-infthread.c (gdbpy_initialize_thread): Use
1538 gdb_pymodule_addobject.
1539 * python/py-objfile.c (gdbpy_initialize_objfile): Use
1540 gdb_pymodule_addobject.
1541 * python/py-param.c (gdbpy_initialize_parameters): Use
1542 gdb_pymodule_addobject.
1543 * python/py-progspace.c (gdbpy_initialize_pspace): Use
1544 gdb_pymodule_addobject.
1545 * python/py-symbol.c (gdbpy_initialize_symbols): Use
1546 gdb_pymodule_addobject.
1547 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
1548 gdb_pymodule_addobject.
1549 * python/py-type.c (gdbpy_initialize_types): Use
1550 gdb_pymodule_addobject.
1551 * python/py-utils.c (gdb_pymodule_addobject): New function.
1552 * python/py-value.c (gdbpy_initialize_values): Use
1553 gdb_pymodule_addobject.
1554 * python/python-internal.h (gdb_pymodule_addobject): Declare.
1555 * python/python.c (_initialize_python): Use
1556 gdb_pymodule_addobject.
1558 2013-05-20 Tom Tromey <tromey@redhat.com>
1560 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
1561 * python/py-param.c (get_set_value, get_show_value): Use
1563 * python/python.c (start_type_printers, apply_type_printers):
1564 Use explicit decrefs.
1566 2013-05-20 Tom Tromey <tromey@redhat.com>
1568 * python/py-evts.c (gdbpy_initialize_py_events): Don't
1571 2013-05-20 Tom Tromey <tromey@redhat.com>
1573 * python/python.c (gdbpy_run_events): Decref the result
1574 of PyObject_CallObject.
1576 2013-05-20 Tom Tromey <tromey@redhat.com>
1578 * python/py-symtab.c (set_sal): Use
1579 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
1580 (symtab_and_line_to_sal_object): Update.
1582 2013-05-20 Tom Tromey <tromey@redhat.com>
1584 * python/py-param.c (compute_enum_values): Decref 'item'.
1586 2013-05-20 Tom Tromey <tromey@redhat.com>
1588 * mi/mi-main.c: Include python-internal.h.
1589 (mi_cmd_list_features): Check gdb_python_initialized.
1590 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
1591 (python_inferior_exit, python_new_objfile, add_thread_object)
1592 (delete_thread_object, py_free_inferior): Check
1593 gdb_python_initialized.
1594 * python/py-prettyprint.c (apply_val_pretty_printer): Check
1595 gdb_python_initialized.
1596 * python/py-type.c (save_objfile_types): Check
1597 gdb_python_initialized.
1598 * python/python-internal.h (gdb_python_initialized): Declare.
1599 * python/python.c (ensure_python_env): Throw exception if
1600 Python not initialized.
1601 (before_prompt_hook, source_python_script_for_objfile)
1602 (start_type_printers, apply_type_printers,
1603 free_type_printers): Check gdb_python_initialized.
1604 * varobj.c (varobj_get_display_hint)
1605 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
1606 (install_new_value_visualizer, varobj_set_visualizer)
1607 (value_get_print_value): Check gdb_python_initialized.
1609 2013-05-20 Tom Tromey <tromey@redhat.com>
1611 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
1613 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
1614 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
1616 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
1618 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
1620 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
1622 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
1623 init function to return 'int'.
1624 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
1625 Return 'int'. Check errors.
1626 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
1628 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
1629 Return 'int'. Check errors.
1630 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
1632 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
1634 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
1636 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
1638 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
1640 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
1642 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
1644 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
1646 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
1648 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
1650 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
1652 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
1654 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
1656 * python/python-internal.h (gdbpy_initialize_auto_load,
1657 gdbpy_initialize_values, gdbpy_initialize_frames,
1658 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
1659 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
1660 gdbpy_initialize_blocks, gdbpy_initialize_types,
1661 gdbpy_initialize_functions, gdbpy_initialize_pspace,
1662 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
1663 gdbpy_initialize_finishbreakpoints,
1664 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
1665 gdbpy_initialize_thread, gdbpy_initialize_inferior,
1666 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
1667 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
1668 gdbpy_initialize_signal_event,
1669 gdbpy_initialize_breakpoint_event,
1670 gdbpy_initialize_continue_event,
1671 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
1672 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
1673 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1674 * python/python.c (gdb_python_initialized): New global.
1675 (gdbpy_initialize_events): Return 'int'. Check errors.
1676 (_initialize_python): Check errors. Set
1677 gdb_python_initialized.
1679 2013-05-20 Tom Tromey <tromey@redhat.com>
1681 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
1682 Decref the reslut of PyObject_CallMethod.
1684 2013-05-20 Tom Tromey <tromey@redhat.com>
1686 * python/py-event.c (gdbpy_initialize_event_generic): Return
1687 early if PyType_Ready fails.
1689 2013-05-20 Tom Tromey <tromey@redhat.com>
1691 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
1692 as 'default' in the switch.
1694 2013-05-20 Tom Tromey <tromey@redhat.com>
1696 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
1697 get_addr_from_python calls out of TRY_CATCH.
1698 (infpy_write_memory, infpy_search_memory): Likewise.
1699 * python/py-utils.c (get_addr_from_python): Return negative
1700 value on error. Use TRY_CATCH.
1701 * python/python-internal.h (get_addr_from_python): Use
1702 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1704 2013-05-20 Tom Tromey <tromey@redhat.com>
1706 * python/py-event.c (evpy_emit_event): Decref the
1707 result of PyObject_CallFunctionObjArgs.
1709 2013-05-20 Tom Tromey <tromey@redhat.com>
1711 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
1714 2013-05-20 Tom Tromey <tromey@redhat.com>
1716 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
1718 2013-05-20 Tom Tromey <tromey@redhat.com>
1720 * python/py-event.h (gdbpy_initialize_event_generic): Use
1721 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1722 * python/py-evts.c (add_new_registry): Use
1723 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1724 * python/python-internal.h
1725 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
1727 2013-05-20 Tom Tromey <tromey@redhat.com>
1729 * python/py-arch.c (archpy_disassemble): Update.
1730 * python/py-type.c (typy_get_composite, typy_lookup_typename)
1731 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
1732 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
1733 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
1735 (GDB_PY_HANDLE_EXCEPTION): Update.
1736 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
1738 2013-05-20 Tom Tromey <tromey@redhat.com>
1740 * python/python-internal.h (events_object_type): Remove.
1742 2013-05-20 Tom Tromey <tromey@redhat.com>
1744 * python/py-event.h (evpy_emit_event): Use
1745 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1746 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1749 2013-05-20 Tom Tromey <tromey@redhat.com>
1751 * py-evtregistry.c (create_event_object): Decref
1752 eventregistry_object if PyList_New fails.
1754 2013-05-20 Tom Tromey <tromey@redhat.com>
1756 * py-cmd.c (gdbpy_string_to_argv): Check result of
1759 2013-05-20 Tom Tromey <tromey@redhat.com>
1761 * python/python.c (before_prompt_hook): Add cleanup to
1764 2013-05-20 Tom Tromey <tromey@redhat.com>
1766 * python/py-function.c (fnpy_init): Decref result of
1767 PyObject_GetAttrString.
1769 2013-05-20 Tom Tromey <tromey@redhat.com>
1771 * python/py-threadevent.c (get_event_thread): Use
1772 CPYCHECKER_RETURNS_BORROWED_REF.
1773 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1775 (pspace_to_pspace_object, objfile_to_objfile_object)
1776 (find_thread_object): Use it.
1778 2013-05-20 Tom Tromey <tromey@redhat.com>
1780 * python/py-arch.c (arch_object_type): Use
1781 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1782 * python/py-block.c (block_syms_iterator_object_type):
1783 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1784 * python/py-bpevent.c (breakpoint_event_object_type):
1785 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1786 * python/py-cmd.c (cmdpy_object_type): Use
1787 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1788 * python/py-continueevent.c (continue_event_object_type):
1789 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1790 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
1791 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1792 * python/py-events.h (thread_event_object_type):
1793 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1794 * python/py-evtregistry.c (eventregistry_object_type): Use
1795 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1796 * python/py-exitedevent.c (exited_event_object_type):
1797 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1798 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
1799 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1800 * python/py-function.c (fnpy_object_type): Use
1801 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1802 * python/py-inferior.c (inferior_object_type, membuf_object_type):
1803 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1804 * python/py-infthread.c (thread_object_type): Use
1805 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1806 * python/py-lazy-string.c (lazy_string_object_type):
1807 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1808 * python/py-newobjfileevent.c (new_objfile_event_object_type):
1809 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1810 * python/py-objfile.c (objfile_object_type): Use
1811 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1812 * python/py-param.c (parmpy_object_type):
1813 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1814 * python/py-progspace.c (pspace_object_type):
1815 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1816 * python/py-signalevent.c (signal_event_object_type):
1817 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1818 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
1819 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1820 * python/py-type.c (type_object_type, field_object_type)
1821 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1822 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
1824 (value_object_type, block_object_type, symbol_object_type)
1825 (event_object_type, stop_event_object_type, breakpoint_object_type)
1826 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1828 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
1830 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
1831 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
1833 2013-05-20 Doug Evans <dje@google.com>
1835 When reading CU, stay in DWO. Be more tolerent of bad debug info.
1837 * dwarf2read.c (struct dwarf2_per_cu_data): New member
1838 reading_dwo_directly.
1839 (struct signatured_type): New member dwo_unit.
1840 (struct die_reader_specs): New member comp_dir.
1841 (create_signatured_type_table_from_index): Use malloc for
1842 all_type_units instead of objfile's obstack.
1843 (create_all_type_units): Ditto.
1844 (fill_in_sig_entry_from_dwo_entry): New function.
1845 (add_type_unit): New function.
1846 (lookup_dwo_signatured_type): New function.
1847 (lookup_dwp_signatured_type): New function.
1848 (lookup_signatured_type): New arg cu. All callers updated.
1849 (init_cu_die_reader): Initialize comp_dir.
1850 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
1851 Change assert of matching type signatures to call error on mismatch.
1852 (lookup_dwo_unit): Add assert.
1853 (init_tu_and_read_dwo_dies): New function.
1854 (init_cutu_and_read_dies): Call it.
1855 (build_type_unit_groups): Handle case of no type unit groups created.
1856 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
1857 (lookup_dwo_cutu): Tweak complaint.
1858 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
1859 (dwarf2_per_objfile_free): Free all_type_units.
1861 2013-05-20 Joel Brobecker <brobecker@adacore.com>
1863 * windows-nat.c (handle_unload_dll): Add missing empty line.
1865 2013-05-20 Joel Brobecker <brobecker@adacore.com>
1867 * dwarf2read.c (prototyped_function_p): New function.
1868 (read_subroutine_type): Use it.
1870 2013-05-20 Joel Brobecker <brobecker@adacore.com>
1872 * rs6000-aix-tdep.c: De-indent some example code provided
1875 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
1877 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
1878 region is ok for a hardware watchpoint using the new ptrace interface
1881 2013-05-17 Doug Evans <dje@google.com>
1883 * NEWS: Mention new maintenance commands check-symtabs, and
1884 expand-symtabs, and renamed check-psymtabs.
1885 * psymtab.c (maintenance_check_psymtabs): Renamed from
1886 maintenance_check_symtabs. Only process already-expanded symbol
1888 (_initialize_psymtab): Update.
1889 * symmisc.c (maintenance_check_symtabs): New function.
1890 (maintenance_expand_name_matcher): New function
1891 (maintenance_expand_file_matcher): New function
1892 (maintenance_expand_symtabs): New function.
1893 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
1896 2013-05-17 Tom Tromey <tromey@redhat.com>
1898 * python/py-inferior.c (infpy_read_memory): Don't call
1899 PyErr_SetString if PyObject_New fails.
1900 * python/py-frame.c (frame_info_to_frame_object): Don't call
1901 PyErr_SetString if PyObject_New fails.
1903 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
1905 * acinclude.m4: Add check for dlopen in libdl.
1906 * configure.ac: Ditto.
1907 * configure: Regenerate.
1909 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
1911 * frame.c (frame_stash): Convert to htab.
1912 (frame_addr_hash): New function.
1913 (frame_addr_hash_eq): New function.
1914 (frame_stash_create): Convert function to create
1916 (frame_stash_add): Convert function to add an entry to a hash
1918 (frame_stash_find): Convert function to search the hash table.
1919 (frame_stash_invalidate): Convert function to empty the hash
1921 (get_frame_id): Only add to stash if a frame_id is created.
1922 (_initialize_frame): Call frame_stash_create.
1924 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
1926 * configure.ac: Ensure MIG is available when building for GNU Hurd
1928 * configure: Regenerate.
1930 2013-05-16 Joel Brobecker <brobecker@adacore.com>
1932 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
1934 2013-05-16 Joel Brobecker <brobecker@adacore.com>
1936 * ada-lang.c (ada_make_symbol_completion_list): Make sure
1937 all cleanups are done before returning from this function.
1939 2013-05-15 Joel Brobecker <brobecker@adacore.com>
1941 * utils.h: #include "exceptions.h".
1942 (enum errors): Remove partial declaration.
1944 2013-05-15 Joel Brobecker <brobecker@adacore.com>
1946 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
1947 * gdbarch.h, gdbarch.c: Regenerate.
1948 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
1951 * rs6000-aix-tdep.h: New file.
1952 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
1953 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
1955 (struct field_info, struct ld_info_desc): New types.
1956 (ld_info32_desc, ld_info64_desc): New static constants.
1957 (struct ld_info): New type.
1958 (rs6000_aix_extract_ld_info): New function.
1959 (rs6000_aix_shared_library_to_xml): Likewise.
1960 (rs6000_aix_ld_info_to_xml): Likewise.
1961 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1962 (rs6000_aix_init_osabi): Add call to
1963 set_gdbarch_core_xfer_shared_libraries_aix.
1964 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
1965 Remove "xml-utils.h" include.
1966 (LdInfo): Delete typedef.
1967 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
1969 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
1970 Adjust code accordingly.
1971 (rs6000_core_ldinfo): Delete, folded into
1972 rs6000_aix_core_xfer_shared_libraries_aix.
1973 (rs6000_xfer_shared_library): Delete.
1974 (rs6000_xfer_shared_libraries): Reimplement.
1976 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
1978 * record.c (record_goto_cmdlist): New.
1979 (cmd_record_goto): Split into this ...
1980 (cmd_record_goto_begin): ... this
1981 (cmd_record_goto_end): ... and this.
1982 (_initialize_record): Change "record goto" to prefix command.
1983 Add commands for "record goto begin" and "record goto end".
1984 Add an alias for "record goto start" to "record goto begin".
1986 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1988 * linespec.c (convert_linespec_to_sals): New comment for
1989 SOURCE_FILENAME assignment.
1991 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1993 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
1996 2013-05-14 Tom Tromey <tromey@redhat.com>
1998 * eval.c (parse_and_eval_long): Make 'exp' const.
1999 * value.h (parse_and_eval_long): Update.
2001 2013-05-14 Tom Tromey <tromey@redhat.com>
2003 * ui-file.c (gdb_fopen): Make arguments const.
2004 * ui-file.h (gdb_fopen): Make arguments const.
2006 2013-05-14 Tom Tromey <tromey@redhat.com>
2008 * remote.c (remote_set_trace_notes): Make arguments const.
2009 * target.c (update_current_target): Update cast.
2010 * target.h (to_set_trace_notes): Make arguments const.
2012 2013-05-14 Tom Tromey <tromey@redhat.com>
2014 * go32-nat.c (go32_terminal_info): Make 'args' const.
2015 * inferior.h (child_terminal_info): Update.
2016 * inflow.c (child_terminal_info): Make 'args' const.
2017 * target.c (default_terminal_info): Make 'args' const.
2018 (debug_to_terminal_save_ours): Likewise.
2019 * target.h (struct target_ops) <to_terminal_info>: Make argument
2022 2013-05-13 Tom Tromey <tromey@redhat.com>
2024 * gcore.c (create_gcore_bfd): Make 'filename' const.
2025 * gcore.h (create_gcore_bfd): Make 'filename' const.
2026 * record-full.c (record_full_save): Make 'recfilename' const.
2027 * target.c (target_save_record): Make 'filename' const.
2028 * target.h (struct target_ops) <to_save_record>: Make 'filename'
2030 (target_save_record): Likewise.
2032 2013-05-13 Tom Tromey <tromey@redhat.com>
2035 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
2036 ranges section has been read.
2038 2013-05-13 Tom Tromey <tromey@redhat.com>
2041 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
2042 STRUCTOP_PTR>: Return a not_lval value for
2043 EVAL_AVOID_SIDE_EFFECTS.
2044 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
2045 for EVAL_AVOID_SIDE_EFFECTS.
2047 2013-05-13 Joel Brobecker <brobecker@adacore.com>
2049 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
2050 floating point registers to register type before storing
2052 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
2055 2013-05-10 Joel Brobecker <brobecker@adacore.com>
2056 Tom Tromey <tromey@redhat.com>
2058 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
2060 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
2062 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
2063 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
2064 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
2065 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
2067 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
2068 Tom Tromey <tromey@redhat.com>
2071 * configure: Rebuild.
2072 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
2075 2013-05-10 Pedro Alves <palves@redhat.com>
2077 * remote.c (_initialize_remote): Fix spelling of
2078 qXfer:traceframe-info:read packet in packet config command.
2080 2013-05-10 David Taylor <dtaylor@emc.com>
2084 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
2085 "QTro" at start of packet.
2087 2013-05-10 Joel Brobecker <brobecker@adacore.com>
2089 * solib-aix.c (solib_aix_relocate_section_addresses):
2090 For the .bss section action, apply the same offset as
2093 2013-05-10 Joel Brobecker <brobecker@adacore.com>
2095 * solib-aix.c (solib_aix_relocate_section_addresses):
2096 Remove FIXME comment.
2098 2013-05-10 Joel Brobecker <brobecker@adacore.com>
2101 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2102 New functions, directly copied from sparc-sol-thread.c.
2103 * sparc-sol-thread.c: Delete.
2104 * configure.ac: Remove code handling sparc-solaris-thread.c.
2105 * configure: Regenerate.
2107 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
2109 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
2111 (backtrace_command): Add "no-filters" option parsing.
2112 (_initialize_stack): Alter help to reflect "no-filters" option.
2113 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
2114 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
2115 (py-frame.o): Add target
2116 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
2118 * python/python.h: Add new frame filter constants, and flag enum.
2119 (apply_frame_filter): Add definition.
2120 * python/python.c (apply_frame_filter): New non-Python
2122 * python/py-utils.c (py_xdecref): New function.
2123 (make_cleanup_py_xdecref): Ditto.
2124 * python/py-objfile.c: Declare frame_filters dictionary.
2125 (objfpy_dealloc): Add frame_filters dealloc.
2126 (objfpy_new): Initialize frame_filters attribute.
2127 (objfile_to_objfile_object): Ditto.
2128 (objfpy_get_frame_filters): New function.
2129 (objfpy_set_frame_filters): New function.
2130 * python/py-progspace.c: Declare frame_filters dictionary.
2131 (pspy_dealloc): Add frame_filters dealloc.
2132 (pspy_new): Initialize frame_filters attribute.
2133 (pspacee_to_pspace_object): Ditto.
2134 (pspy_get_frame_filters): New function.
2135 (pspy_set_frame_filters): New function.
2136 * python/py-framefilter.c: New file.
2137 * python/lib/gdb/command/frame_filters.py: New file.
2138 * python/lib/gdb/frames.py: New file.
2139 * python/lib/gdb/__init__.py: Initialize global frame_filters
2141 * python/lib/gdb/FrameDecorator.py: New file.
2142 * python/lib/gdb/FrameIterator.py: New file.
2143 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
2144 * mi/mi-cmds.h: Declare.
2145 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
2146 --no-frame-filter logic, and Python frame filter logic.
2147 (stack_enable_frame_filters): New function.
2148 (parse_no_frame_option): Ditto.
2149 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
2151 (mi_cmd_stack_list_locals): Ditto.
2152 (mi_cmd_stack_list_args): Ditto.
2153 (mi_cmd_stack_list_variables): Ditto.
2154 * NEWS: Add frame filter note.
2156 2013-05-09 Doug Evans <dje@google.com>
2158 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
2159 All callers updated.
2160 (syms_from_objfile): Ditto. Make static.
2161 (symbol_file_add_with_addrs): Renamed from
2162 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
2163 num_offsets. All callers updated.
2164 * symfile.h (syms_from_objfile): Delete.
2166 * symfile.c (decrement_reading_symtab): Add assert.
2167 (increment_reading_symtab): Ditto.
2169 2013-05-09 Joel Brobecker <brobecker@adacore.com>
2171 * source.c (forward_search_command): Replace call to getc
2173 (reverse_search_command): Likewise.
2175 2013-05-08 Doug Evans <dje@google.com>
2177 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
2180 2013-05-08 Joel Brobecker <brobecker@adacore.com>
2182 * sol-thread.c (info_cb): Factorize the code a little.
2184 2013-05-08 Joel Brobecker <brobecker@adacore.com>
2186 * sol-thread.c (info_cb): Rework the output of the "maintenance
2187 info sol-threads" command a bit.
2189 2013-05-08 Joel Brobecker <brobecker@adacore.com>
2191 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
2192 Replace ti.ti_startfunc by ti.ti_pc.
2194 2013-05-08 Joel Brobecker <brobecker@adacore.com>
2196 * solib-aix.c (solib_aix_free_library_list): New function
2197 for the case where HAVE_LIBEXPAT is not defined.
2199 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2201 PR breakpoints/15413:
2202 * breakpoint.c (condition_completer): Simplify the code to
2203 disconsider multiple locations of breakpoints when completing the
2204 "condition" command.
2206 2013-05-07 Pierre Muller <muller@sourceware.org>
2208 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
2209 instead of <sys/wait.h>.
2211 2013-05-07 Pierre Muller <muller@sourceware.org>
2213 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
2214 trailing new line from warning message.
2216 2013-05-07 Pierre Muller <muller@sourceware.org>
2218 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
2219 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
2221 2013-05-07 Joel Brobecker <brobecker@adacore.com>
2223 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
2224 error message (ARI fix).
2226 2013-05-07 Joel Brobecker <brobecker@adacore.com>
2228 * features/library-list-aix.dtd: Replace library-list by
2230 * rs6000-nat.c: Replace library-list by library-list-aix
2232 * solib-aix.c: Likewise.
2234 2013-05-07 Joel Brobecker <brobecker@adacore.com>
2236 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
2237 Renames TARGET_OBJECT_AIX_LIBRARIES.
2238 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
2239 TARGET_OBJECT_LIBRARIES_AIX throughout.
2240 * solib-aix.c: Likwise.
2242 2013-05-07 Yao Qi <yao@codesourcery.com>
2244 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
2245 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
2247 2013-05-07 Yao Qi <yao@codesourcery.com>
2249 * solib-dsbt.c (enable_break): Declare.
2250 (dsbt_current_sos): Remove call to enable_break2.
2251 (enable_break2): Rename to enable_break. Set solib breakpoint
2252 on '_dl_debug_state'.
2253 (enable_break): Remove.
2255 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
2257 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
2258 debug state prior to replicating existing hardware watchpoints or
2261 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2263 * gcore.c (gcore_create_callback): Ignore sections with
2264 separate_debug_objfile_backlink != NULL.
2266 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
2267 Andrew Jenner <andrew@codesourcery.com>
2268 Chung-Lin Tang <cltang@codesourcery.com>
2269 Julian Brown <julian@codesourcery.com>
2271 Based on the nios2-elf port from Altera Corporation.
2273 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
2275 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
2276 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
2277 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
2278 * nios2-tdep.h: New.
2279 * nios2-tdep.c: New.
2280 * nios2-linux-tdep.c: New.
2281 * features/Makefile (WHICH): Add nios2-linux.
2282 (nios2-linux-expedite): Set.
2283 * features/nios2-cpu.xml: New.
2284 * features/nios2.xml: New.
2285 * features/nios2-linux.xml: New.
2286 * features/nios2.c: New (autogenerated).
2287 * features/nios2-linux.c: New (autogenerated).
2288 * regformats/nios2-linux.dat: New (autogenerated).
2289 * NEWS (Changes since GDB 7.6): Add new Nios II targets
2292 2013-05-06 Doug Evans <dje@google.com>
2294 * symfile.c: Whitespace cleanup.
2296 * solist.h (struct target_so_ops): New member clear_so.
2297 * solib-svr4.c (svr4_clear_so): New function.
2298 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
2299 * solib.c (clear_so): Renamed from free_so_symbols.
2300 All callers updated. Call target clear_so if it exists.
2302 2013-05-06 Tom Tromey <tromey@redhat.com>
2304 * ada-lang.c (ada_value_primitive_packed_val): Don't
2306 * value.c (set_value_parent): Incref the new parent and decref
2308 (value_copy, value_primitive_field): Use set_value_parent.
2310 2013-05-06 Tom Tromey <tromey@redhat.com>
2312 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
2313 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
2315 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
2316 * dwarf2read.c (write_constant_as_bytes)
2317 (dwarf2_fetch_constant_bytes): New functions.
2319 2013-05-06 Tom Tromey <tromey@redhat.com>
2321 * dwarf2read.c (dwarf2_const_value_data): Remove unused
2323 (dwarf2_const_value_attr): Update.
2325 2013-05-06 Tom Tromey <tromey@redhat.com>
2327 * somread.c (som_symfile_offsets): Add 'const' to addrs.
2328 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
2329 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
2332 2013-05-06 Tom Tromey <tromey@redhat.com>
2334 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
2337 2013-05-06 Doug Evans <dje@google.com>
2339 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
2340 * stabsread.h (process_one_symbol): Update declaration.
2341 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
2342 * elfread.c (elf_symfile_relocate_probe): Ditto.
2343 * psymtab.c (relocate_psymtabs): Ditto.
2344 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
2345 (objfile_relocate): Ditto.
2346 * objfiles.h (objfile_relocate): Update declaration.
2347 * symfile.c (relative_addr_info_to_section_offsets): Constify
2349 (default_symfile_offsets): Ditto.
2350 (syms_from_objfile_1): Constify offsets parameter.
2351 (syms_from_objfile): Ditto.
2352 (symbol_file_add_with_addrs_or_offsets): Ditto.
2353 (symfile_map_offsets_to_segments): Constify data parameter.
2354 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
2355 delta parameters of member relocate.
2356 (struct sym_probe_fns): Constify new_offsets,
2357 delta parameters of member sym_relocate_probe.
2358 (struct sym_fns): Constify section_addr_info parameter of member
2360 (relative_addr_info_to_section_offsets): Update declaration.
2361 (default_symfile_offsets): Ditto.
2362 (syms_from_objfile): Ditto.
2363 (symfile_map_offsets_to_segments): Ditto.
2365 * symfile.c (syms_from_objfile_1): Use correct section count when
2366 objfile->sf == NULL.
2368 2013-05-06 Mike Frysinger <vapier@gentoo.org>
2370 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
2372 2013-05-06 Doug Evans <dje@google.com>
2374 * psympriv.h (struct partial_symtab): Augment comment for member
2377 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2379 Reimplement shared library support on ppc-aix...
2380 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
2381 * features/library-list-aix.dtd: New file.
2382 * solib-aix.h, solib-aix.c: New file.
2383 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
2384 (rs6000_find_toc_address_hook): Delete.
2385 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
2386 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
2387 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
2389 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
2390 (vmap_symtab, fixup_breakpoints): Delete.
2391 (rs6000_xfer_shared_libraries): New function.
2392 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
2393 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
2394 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
2395 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
2396 (rs6000_xfer_shared_library): New function.
2397 (find_toc_address): Delete.
2398 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
2399 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
2400 * xcoffread.c (record_minimal_symbol): Reloate symbol address
2401 before creating minimal symbol. Adjust function description
2403 (scan_xcoff_symtab): Replace call to
2404 prim_record_minimal_symbol_and_info by call to
2405 record_minimal_symbol.
2406 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
2407 around default_symfile_offsets.
2408 * configure.tgt: Add solib-aix.o to gdb_target_obs for
2409 powerpc-aix targets.
2410 * config/rs6000/nm-rs6000.h: Delete.
2411 * config/powerpc/aix.mh (NAT_FILE): Delete.
2412 (NATDEPFILES): Remove xcoffsolib.o.
2413 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
2414 (ALL_TARGET_OBS): Add solib-aix.o.
2415 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
2416 config/rs6000/nm-rs6000.h. Add solib-aix.h.
2417 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
2418 * xcoffsolib.h, xcoffsolib.c: Delete.
2420 * solib.c (reload_shared_libraries): Remove reference to
2421 SOLIB_CREATE_INFERIOR_HOOK.
2422 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
2423 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
2424 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
2426 * corelow.c (deprecated_core_resize_section_table): Delete.
2427 * exec.c: Remove include of xcoffsolib.h".
2428 (map_vmap, vmap): Delete.
2429 (exec_close_1): Remove references to vmap.
2430 (exec_file_attach): Remove vmap handling code, and reference
2431 to DEPRECATED_IBM6000_TARGET.
2432 (bfdsec_to_vmap): Delete.
2433 (exec_files_info): Remove block of code handling VMAP.
2434 * infcmd.c (post_create_inferior): Remove reference to
2435 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
2436 * infrun.c (follow_exec): Remove reference to
2437 SOLIB_CREATE_INFERIOR_HOOK.
2438 * stack.c (print_frame): Remove reference to PC_SOLIB.
2439 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
2440 (dsbt_relocate_main_executable): Likewise.
2441 * solib-frv.c (frv_current_sos): Likewise.
2443 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2445 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
2446 to target_write_memory and target_read_memory.
2448 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2450 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
2451 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
2453 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2455 * darwin-nat.c: Replace all "%x" instances in format strings
2456 into "0x%x" throughout.
2458 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2460 * darwin-nat.c (darwin_mourn_inferior): Replace call to
2461 gdb_assert by call to MACH_CHECK_ERROR.
2462 (darwin_attach_pid): Raise an error rather than a failed
2463 assertion when various system calls failed. Report a warning
2464 instead of raising a failed assertion when PREV_NOT is not NULL
2465 after call to mach_port_request_notification.
2466 (darwin_ptrace_me): Raise an error rather than a failed
2467 assertion when read returns nonzero.
2469 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2471 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
2473 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2475 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
2477 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2479 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
2480 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
2481 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
2482 a stale cleanup. Fix double free of NAME.
2484 2013-05-04 Eli Zaretskii <eliz@gnu.org>
2486 * windows-nat.c (windows_delete_thread): Accept an additional
2487 argument, the thread's exit code, and announce thread death when
2488 print_thread_events is non-zero and we are deleting a thread that
2489 is not the main thread.
2490 (get_windows_debug_event): Pass thread exit code to
2491 windows_delete_thread.
2493 2013-05-03 Kevin Buettner <kevinb@redhat.com>
2495 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
2496 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
2497 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
2498 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
2499 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
2500 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
2501 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
2502 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
2503 (gdbarch_tdep): New struct.
2504 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
2506 (v850e3v5_register_name): New function.
2507 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
2508 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
2509 code handling the struct return conventions for the RH850 ABI.
2511 (v850_eight_byte_align_p): New function.
2512 (v850_push_call_dummy): Push structs by value, not by reference
2513 for the RH850 ABI. Add support for eight byte alignment.
2514 (v850_dbtrap_breakpoint_from_pc): New function.
2515 (v850_gdbarch_init): Add ABI detection code. Register
2516 v850e3v5_register_name for the v850e3v5 architecture. Set the
2517 number of registers for v850e3v5. Register
2518 v850_dbtrap_breakpoint_from_pc as appropriate.
2519 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
2521 2013-05-03 Doug Evans <dje@google.com>
2523 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
2524 of bfd_count_sections.
2525 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
2526 * symfile.c (default_symfile_offsets): Ditto.
2527 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
2528 one entry, not bfd_count_sections entries.
2530 2013-05-03 Kevin Buettner <kevinb@redhat.com>
2532 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
2533 `save' and `restore' register groups. Don't include SPL
2534 or SPH in these groups.
2535 (rl78_dwarf_reg_to_regnum): Adjust mapping for
2536 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
2537 RL78_ES_REGNUM, and RL78_CS_REGNUM.
2538 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
2539 dwarf2_append_unwinders().
2541 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2543 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
2544 ignore SIGINT and SIGTRAP in case these internal signals are
2547 2013-05-01 Joel Brobecker <brobecker@adacore.com>
2549 * darwin-nat.c (darwin_read_write_inferior): Change types
2550 of parameters rdaddr and wraddr to "gdb_byte *". Change type
2551 of copy_count to "mach_msg_type_number_t".
2552 (darwin_read_dyld_info): Change type of parameter
2553 rdaddr to "gdb_byte *".
2555 2013-05-01 Joel Brobecker <brobecker@adacore.com>
2557 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
2558 of &info->load_map from "char *" to "gdb_byte *".
2560 2013-05-01 Joel Brobecker <brobecker@adacore.com>
2562 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
2563 from "char *" to "gdb_byte *".
2564 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
2566 2013-04-30 Doug Evans <dje@google.com>
2568 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
2569 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
2570 DWO stub. If DWO isn't found, just use stub.
2571 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
2573 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
2574 calling init_cutu_and_read_dies.
2576 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
2578 * target-descriptions.c (maint_print_c_tdesc_cmd):
2579 Add case to parse structures as register types and
2582 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
2584 * MAINTAINERS (Write After Approval): Add myself to the list.
2586 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2588 * sol-thread.c (rw_common): Change type of parameter "buf"
2590 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
2591 rw_common to "gdb_byte *" instead of "char *".
2593 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2595 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
2596 of local variable msym to const struct bound_minimal_symbol.
2597 Adjust use accordingly.
2598 [ti.ti_state == TD_THR_SLEEP]: Likewise.
2600 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
2602 * i386gnu-nat.c (CREG_OFFSET): New macro.
2603 (creg_offset): New array.
2604 (CREG_ADDR): Use creg_offset instead of reg_offset.
2606 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2608 * mep-tdep.c (mep_write_pc): Delete.
2609 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
2610 Add call to set_gdbarch_pc_regnum.
2612 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2614 * common/filestuff.c: Replace #include <dirent.h> by
2615 #include "gdb_dirent.h".
2617 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2619 * common/filestuff.c: Replace #include <sys/stat.h> by
2620 #include "gdb_stat.h".
2622 2013-04-29 Pierre Muller <muller@sourceware.org>
2624 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
2625 editCase function rule.
2626 (get_DW_AT_signature_type): Likewise.
2628 2013-04-29 Joel Brobecker <brobecker@adacore.com>
2630 * m32r-tdep.c (m32r_write_pc): Delete.
2631 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
2632 Add call to set_gdbarch_pc_regnum.
2634 2013-04-29 Pierre Muller <muller@sourceware.org>
2636 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
2638 2013-04-29 Joel Brobecker <brobecker@adacore.com>
2640 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
2642 2013-04-28 Yao Qi <yao@codesourcery.com>
2644 * solib-dsbt.c (fetch_loadmap): Re-indent.
2645 (displacement_from_map, enable_break2): Likewise.
2646 (dsbt_relocate_section_addresses): Likewise.
2648 2013-04-26 Joel Brobecker <brobecker@adacore.com>
2652 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
2655 * dwarf2read.c (process_full_comp_unit): Always create a static
2658 2013-04-25 Hui Zhu <hui@codesourcery.com>
2660 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
2661 to loc->cmd_bytecode.
2663 2013-04-24 Doug Evans <dje@google.com>
2665 * dwarf2read.c (setup_type_unit_groups): Fix comment.
2667 2013-04-22 Keith Seitz <keiths@redhat.com>
2669 * tracepoint.c (trace_save): Call the writer's start method.
2671 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
2674 * cli/cli-decode.c (lookup_command): Show an error if there is no space
2677 2013-04-23 Tom Tromey <tromey@redhat.com>
2679 * common/filestuff.c: Check USE_WIN32API before including
2681 (HAVE_F_GETFD): New define.
2682 (mark_cloexec): Check HAVE_F_GETFD.
2683 (gdb_open_cloexec): Change 'mode' to unsigned long.
2684 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
2685 (gdb_pipe_cloexec): Check HAVE_PIPE.
2686 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
2689 2013-04-23 Hui Zhu <hui@codesourcery.com>
2692 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
2694 2013-04-23 Hui Zhu <hui@codesourcery.com>
2697 * breakpoint.c (dprintf_print_recreate): New.
2698 (save_breakpoints): Let it not save dprintf commands.
2699 (initialize_breakpoint_ops): Set dprintf_print_recreate.
2701 2013-04-22 Tom Tromey <tromey@redhat.com>
2704 * Makefile.in (SFILES): Add filestuff.c
2705 (COMMON_OBS): Add filestuff.o.
2706 (filestuff.o): New target.
2707 * auto-load.c (auto_load_objfile_script_1): Use
2709 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
2710 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
2711 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
2712 * common/agent.c (gdb_connect_sync_socket): Use
2714 * common/filestuff.c: New file.
2715 * common/filestuff.h: New file.
2716 * common/linux-osdata.c (linux_common_core_of_thread)
2717 (command_from_pid, commandline_from_pid, print_source_lines)
2718 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
2719 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
2721 * common/linux-procfs.c (linux_proc_get_int)
2722 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
2723 * config.in, configure: Rebuild.
2724 * configure.ac: Don't check for sys/socket.h. Check for
2726 * corelow.c (core_open): Use gdb_open_cloexec.
2727 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
2728 * fork-child.c (fork_inferior): Call close_most_fds.
2729 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
2730 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
2731 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
2732 Use gdb_fopen_cloexec.
2733 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
2735 (linux_async_pipe): Use gdb_pipe_cloexec.
2736 * remote-fileio.c (remote_fileio_func_open): Use
2738 * remote.c (remote_file_put, remote_file_get): Use
2740 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
2742 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
2743 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
2744 * solib.c (solib_find): Use gdb_open_cloexec.
2745 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
2746 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
2747 (tfile_open): Use gdb_open_cloexec.
2748 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
2749 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
2750 * xml-support.c (xml_fetch_content_from_file): Use
2752 * main.c (captured_main): Call notice_open_fds.
2754 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
2756 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
2757 'char *' to 'gdb_byte *'.
2758 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
2761 2013-04-22 Yao Qi <yao@codesourcery.com>
2763 * infrun.c: Fix typo in comment.
2765 2013-04-22 Andrew Haley <aph@redhat.com>
2767 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
2770 2013-04-20 Yao Qi <yao@codesourcery.com>
2772 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
2773 'char *' to 'gdb_byte *'. Cast the return value of
2774 'bt_ctf_get_char_array' to 'gdb_byte *'.
2776 2013-04-19 Pedro Alves <palves@redhat.com>
2778 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
2780 * configure: Regenerate.
2782 2013-04-19 Pedro Alves <palves@redhat.com>
2784 * ser-tcp.c (net_read_prim): Cast second argument to recv to
2787 2013-04-19 Pedro Alves <palves@redhat.com>
2789 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
2790 Change type of 'myaddr' parameter to gdb_byte pointer.
2791 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
2792 to 'long long' pointer instead of to 'unsigned long long'.
2793 (monitor_write_memory_block, monitor_read_memory_single)
2794 (monitor_read_memory): Change type of 'myaddr' parameter to
2797 2013-04-19 Pedro Alves <palves@redhat.com>
2799 * record.c (validate_history_size): Make parameter 'setting'
2802 2013-04-19 Pedro Alves <palves@redhat.com>
2804 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
2807 2013-04-19 Pedro Alves <palves@redhat.com>
2809 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
2812 2013-04-19 Pedro Alves <palves@redhat.com>
2814 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
2815 * ada-tasks.c (read_fat_string_value): Likewise.
2817 2013-04-19 Pedro Alves <palves@redhat.com>
2819 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
2820 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
2821 'offset', and adjust.
2823 2013-04-19 Pedro Alves <palves@redhat.com>
2825 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
2826 (read_index_from_section): Add cast to 'char *'.
2828 2013-04-19 Pedro Alves <palves@redhat.com>
2830 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
2832 2013-04-19 Pedro Alves <palves@redhat.com>
2834 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
2836 2013-04-19 Pedro Alves <palves@redhat.com>
2838 * record-full.c (record_full_get_bookmark): Change local 'ret'
2839 type to char * and add cast to gdb_byte *.
2840 (record_full_goto_bookmark): Handle 'bookmark' argument as a
2842 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
2844 2013-04-19 Pedro Alves <palves@redhat.com>
2846 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
2847 * python/py-prettyprint.c (print_string_repr): Change type of
2848 'output' local to char *. Add cast to gdb_byte * in
2849 LA_PRINT_STRING call.
2850 (print_children): Change type of 'output' local to char *.
2851 * python/py-value.c (valpy_string): Add cast to const char * in
2852 PyUnicode_Decode call.
2854 2013-04-19 Pedro Alves <palves@redhat.com>
2856 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
2857 and change its type to 'const char *'. Adjust.
2858 (mips_send_packet): Add cast to 'char *', and remove cast to
2860 (mips_receive_packet): Remove cast to 'unsigned char *'.
2861 (mips_load_srec): Use bfd_byte.
2862 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
2863 (pmon_checkset): Make 'value' parameter unsigned.
2865 2013-04-19 Pedro Alves <palves@redhat.com>
2867 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
2869 2013-04-19 Pedro Alves <palves@redhat.com>
2871 * remote.c (remote_write_bytes_aux, compare_sections_command)
2873 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
2874 (remote_hostio_readlink, remote_bfd_iovec_pread)
2875 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
2876 binary buffer, and char when buffer is used as string.
2877 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
2878 (trace_save, tfile_open, traceframe_walk_blocks)
2879 (tfile_fetch_registers): Likewise.
2881 2013-04-19 Pedro Alves <palves@redhat.com>
2883 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
2884 buffer and size_t size. Adjust.
2885 * ser-base.h (ser_base_write): Adjust.
2886 * ser-go32.c (cnts): Change type to size_t.
2887 (dos_write): Change prototype -- take 'void *'
2888 buffer and size_t size. Adjust.
2889 (dos_info): Print elements of 'cnts' as unsigned long.
2890 * serial.c (serial_write): Likewise.
2891 * serial.h (serial_write): Adjust.
2892 (struct serial_ops) <write>: Change prototype -- take 'void *'
2893 buffer and size_t size. Adjust.
2895 2013-04-19 Pedro Alves <palves@redhat.com>
2897 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
2899 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
2901 2013-04-19 Pedro Alves <palves@redhat.com>
2903 * alpha-tdep.c (alpha_extract_return_value): Use
2904 regcache_cooked_read_unsigned to read 'v0'.
2906 2013-04-19 Pedro Alves <palves@redhat.com>
2908 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
2909 parameters 'at', 'as' and 'offset' to uint32_t.
2911 2013-04-19 Pedro Alves <palves@redhat.com>
2913 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
2914 'is64' to signed 'int'.
2916 2013-04-19 Pedro Alves <palves@redhat.com>
2918 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
2921 2013-04-19 Pedro Alves <palves@redhat.com>
2923 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
2924 'insnbuf' buffer type to unsigned int[].
2926 2013-04-19 Pedro Alves <palves@redhat.com>
2928 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
2930 2013-04-19 Pedro Alves <palves@redhat.com>
2932 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
2935 2013-04-19 Pedro Alves <palves@redhat.com>
2937 * alpha-tdep.c (heuristic_fence_post): Change type to int.
2938 (alpha_heuristic_proc_start): Adjust to check -1 instead of
2940 * mips-tdep.c (heuristic_fence_post): Change type to int.
2941 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
2943 2013-04-19 Pedro Alves <palves@redhat.com>
2945 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
2946 (struct gdbarch_tdep) <cris_version>: Make unsigned.
2947 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
2949 2013-04-19 Pedro Alves <palves@redhat.com>
2951 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
2952 it to get a string view of the byte buffer.
2953 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
2954 type to gdb_byte *. Adjust.
2955 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
2956 Change local to char *.
2957 * solib-darwin.c (find_program_interpreter): Change return type to
2959 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
2960 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
2961 * solib-frv.c (enable_break2): Change local 'buf' to char *.
2962 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
2963 * solib-svr4.c (find_program_interpreter): Change return type to
2965 (enable_break): Change local 'interp_name' to char *.
2966 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2967 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
2968 (spu_pseudo_register_write_spu): Use char for string buffer.
2970 (info_spu_event_command, info_spu_signal_command): Add casts to
2973 2013-04-19 Pedro Alves <palves@redhat.com>
2975 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
2977 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
2978 * ada-lang.c (ada_value_assign): Use gdb_byte.
2979 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
2980 (alphanbsd_sigtramp_offset): Use gdb_byte.
2981 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
2982 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
2983 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
2984 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
2985 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
2986 * arm-tdep.c (arm_stub_unwind_sniffer)
2987 (arm_displaced_init_closure): Use gdb_byte.
2988 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
2989 (arm_default_thumb_le_breakpoint)
2990 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
2991 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
2992 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
2993 * arm-wince-tdep.c (arm_wince_le_breakpoint)
2994 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
2995 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
2996 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
2997 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
2998 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
2999 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
3000 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
3001 (cris_store_return_value, cris_extract_return_value): Use
3003 (constraint): Change type of parameter to char * from signed
3004 char*. Use gdb_byte.
3005 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
3006 of local buffer to gdb_byte *.
3007 * dwarf2read.c (read_index_from_section): Use gdb_byte.
3008 (create_dwp_hash_table): Change type of locals to gdb_byte *.
3009 (add_address_entry): Change type of local buffer to gdb_byte[].
3010 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
3011 (frv_push_dummy_call): Use gdb_byte.
3012 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
3013 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
3014 (hppa_hpux_supply_save_state): Use gdb_byte.
3015 * hppa-tdep.c (hppa32_push_dummy_call)
3016 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
3017 * ia64-tdep.c (extract_bit_field, replace_bit_field)
3018 (slotN_contents, replace_slotN_contents): Change type of parameter
3020 (fetch_instruction, ia64_pseudo_register_write)
3021 (ia64_register_to_value, ia64_value_to_register)
3022 (ia64_extract_return_value, ia64_store_return_value)
3023 (ia64_push_dummy_call): Use gdb_byte.
3024 * m32c-tdep.c (m32c_return_value): Remove cast.
3025 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
3026 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
3028 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
3029 * mn10300-tdep.c (mn10300_store_return_value)
3030 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
3032 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
3033 (moxie_process_record): Remove casts.
3034 * ppc-ravenscar-thread.c (supply_register_at_address)
3035 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
3036 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
3037 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
3038 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
3039 * remote.c (compare_sections_command): Use gdb_byte.
3040 * score-tdep.c (score7_free_memblock): Change type of parameter to
3042 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
3043 gdb_byte *. Use gdb_byte.
3044 (sh_push_dummy_call_fpu): Use gdb_byte.
3045 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
3046 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
3047 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
3048 Change parameter type to 'gdb_byte *'. Use gdb_byte.
3049 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
3050 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
3051 (sh64_store_return_value, sh64_register_convert_to_virtual):
3052 Change parameter type to 'gdb_byte *'. Use gdb_byte.
3053 (sh64_pseudo_register_write): Use gdb_byte.
3054 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
3055 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
3057 (irix_current_sos): Use gdb_byte.
3058 * solib-som.c (som_current_sos): Use gdb_byte.
3059 * sparc-ravenscar-thread.c (supply_register_at_address)
3060 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
3061 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
3062 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
3063 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
3065 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
3067 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
3068 * xstormy16-tdep.c (xstormy16_extract_return_value)
3069 (xstormy16_store_return_value): Change parameter type to
3070 'gdb_byte *'. Adjust.
3071 (xstormy16_push_dummy_call): Use gdb_byte.
3072 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
3073 (call0_analyze_prologue, execute_code): Use gdb_byte.
3075 2013-04-19 Vladimir Kargov <kargov@gmail.com>
3076 Pedro Alves <palves@redhat.com>
3078 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
3081 2013-04-17 Doug Evans <dje@google.com>
3083 * dwarf2read.c (struct signatured_type): New member type.
3084 (struct attribute): Replace member signatured_type with signature.
3085 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
3086 (read_call_site_scope): Call follow_die_ref instead of
3087 follow_die_ref_or_sig.
3088 (read_structure_type): Rewrite handling of signatured types.
3089 (read_enumeration_type): Ditto.
3090 (read_attribute_value): Update.
3091 (build_error_marker_type): New function.
3092 (lookup_die_type): Add assert. Rewrite handling of signatured types.
3093 Don't call error for bad types, just build an error marker type.
3094 (dump_die_shallow): Update.
3095 (follow_die_sig_1): Renamed from follow_die_sig.
3096 Don't call error for bad types, instead return NULL.
3097 (follow_die_sig): New function.
3098 (get_signatured_type, get_DW_AT_signature_type): New functions.
3100 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
3102 * aarch64-tdep.c (aarch64_write_pc): Removed.
3103 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
3106 2013-04-17 Yao Qi <yao@codesourcery.com>
3108 * top.c (print_gdb_configuration): Print configure-time
3109 parameter on using libbabeltrace or not.
3111 2013-04-16 Pedro Alves <palves@redhat.com>
3113 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
3115 2013-04-16 Pedro Alves <palves@redhat.com>
3117 * common/glibc_thread_db.h: Update from upstream glibc
3118 (git 568035b7874a099087b77f7bba3e36a1173787b0).
3120 2013-04-16 Pedro Alves <palves@redhat.com>
3122 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
3123 * common/glibc_thread_db.h: ... this new file ...
3124 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
3126 2013-04-16 Will Newton <will.newton@gmail.com>
3127 Pedro Alves <palves@redhat.com>
3131 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
3132 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
3135 2013-04-16 Pedro Alves <palves@redhat.com>
3136 Eli Zaretskii <eliz@gnu.org>
3138 * NEWS: Mention "set foo unlimited".
3140 2013-04-15 Doug Evans <dje@google.com>
3142 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
3143 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
3144 (create_dwo_cu_reader): Renamed from
3145 create_dwo_debug_info_hash_table_reader.
3146 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
3147 Remove support for multiple CUs in a DWO file.
3148 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
3150 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
3152 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
3153 (create_dwo_in_dwp): Ditto.
3155 2013-04-15 Tom Tromey <tromey@redhat.com>
3157 * NEWS: Move recent entries into "since 7.6" section.
3159 2013-04-15 Tom Tromey <tromey@redhat.com>
3163 * break-catch-throw.c (struct exception_catchpoint)
3164 <exception_rx, pattern>: New fields.
3165 (fetch_probe_arguments, dtor_exception_catchpoint)
3166 (check_status_exception_catchpoint)
3167 (print_one_detail_exception_catchpoint): New functions.
3168 (handle_gnu_v3_exceptions): Add "except_rx" argument.
3169 Compile regular expression if needed.
3170 (extract_exception_regexp): New function.
3171 (catch_exception_command_1): Use extract_exception_regexp.
3172 (compute_exception): Use fetch_probe_arguments.
3173 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
3174 and check_status fields.
3175 * cp-abi.c (cplus_typename_from_type_info): New function.
3176 * cp-abi.h (cplus_typename_from_type_info): Declare.
3177 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
3178 * gdb_regex.h (compile_rx_or_error): Declare.
3179 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
3181 (init_gnuv3_ops): Set get_type_from_type_info field.
3182 * probe.c (compile_rx_or_error): Move...
3183 * utils.c (compile_rx_or_error): ... here.
3185 2013-04-15 Tom Tromey <tromey@redhat.com>
3189 * break-catch-throw.c (compute_exception): New function.
3190 (exception_funcs): New global.
3191 (_initialize_break_catch_throw): Create $_exception.
3192 * cp-abi.c (cplus_type_from_type_info): New function.
3193 * cp-abi.h (cplus_type_from_type_info): Declare.
3194 (struct cp_abi_ops) <get_type_from_type_info>: New field.
3195 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
3196 (gnuv3_get_type_from_type_info): New functions.
3197 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
3199 2013-04-15 Tom Tromey <tromey@redhat.com>
3201 * break-catch-throw.c (struct exception_names): New.
3202 (exception_functions): Change type.
3203 (re_set_exception_catchpoint): Look for SDT probes.
3205 2013-04-15 Tom Tromey <tromey@redhat.com>
3208 * break-catch-throw.c (exception_functions): New global.
3209 (gnu_v3_exception_catchpoint_ops): Move earlier.
3210 (struct exception_catchpoint): New.
3211 (classify_exception_breakpoint): Rewrite.
3212 (re_set_exception_catchpoint): New function.
3213 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
3214 Allocate a struct exception_catchpoint.
3215 (catch_exception_command_1): Update.
3216 (initialize_throw_catchpoint_ops): Set 're_set' method.
3218 2013-04-15 Tom Tromey <tromey@redhat.com>
3220 * Makefile.in (SFILES): Add break-catch-throw.c
3221 (COMMON_OBS): Add break-catch-throw.o.
3222 * break-catch-throw.c: New file.
3223 * breakpoint.c: Move exception-catching code to new file.
3224 (ep_parse_optional_if_clause): No longer static.
3225 * breakpoint.h (ep_parse_optional_if_clause): Declare.
3227 2013-04-15 Tom Tromey <tromey@redhat.com>
3231 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
3232 * c-exp.y (TYPEID): New token.
3233 (exp): Add new TYPEID productions.
3234 (ident_tokens): Add "typeid".
3235 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
3236 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
3237 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
3238 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
3239 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
3241 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
3242 (build_std_type_info_type, gnuv3_get_typeid_type)
3243 (gnuv3_get_typeid): New functions.
3244 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
3245 new fields on ABI object.
3246 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
3247 * std-operator.def (OP_TYPEID): New.
3249 2013-04-15 Tom Tromey <tromey@redhat.com>
3251 * elfread.c (elf_symtab_read): Install versioned symbol under
3252 unversioned name as well.
3254 2013-04-15 Tom Tromey <tromey@redhat.com>
3257 * c-lang.c (cplus_language_defn): Use gdb_demangle.
3258 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
3259 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
3260 (gdb_demangle): New function.
3261 * cp-support.h (gdb_demangle): Declare.
3262 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
3263 (dwarf2_name): Use gdb_demangle.
3264 * gdbtypes.c (check_stub_method): Use gdb_demangle.
3265 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
3267 (gnuv3_print_method_ptr): Use gdb_demangle.
3268 * jv-lang.c (java_demangle): Use gdb_demangle.
3269 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
3270 * language.c (unk_lang_demangle): Use gdb_demangle.
3271 * symtab.c (symbol_find_demangled_name)
3272 (demangle_for_lookup): Use gdb_demangle.
3274 2013-04-15 Tom Tromey <tromey@redhat.com>
3278 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
3280 (classify_exception_breakpoint): New function.
3281 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3282 (print_mention_exception_catchpoint)
3283 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
3284 (catch_exception_command_1): Handle "rethrow" catchpoint.
3285 (catch_rethrow_command): New function.
3286 (_initialize_breakpoint): Add "catch rethrow" command.
3288 2013-04-15 Pierre Muller <muller@sourceware.org>
3290 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
3291 set_gdbarch_write_pc as deprecated anymore.
3293 2013-04-15 Joel Brobecker <brobecker@adacore.com>
3295 * spu-tdep.c (spu_write_pc): Add empty line after local variable
3298 2013-04-13 Yao Qi <yao@codesourcery.com>
3300 * ctf.c (_initialize_ctf): Include "completer.h".
3301 Call add_target_with_completer instead of add_target.
3303 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3305 Fix GDB regression related to PR binutils/14813.
3306 * jit.c (mem_bfd_iovec_close): Return 0 for success.
3307 * minidebug.c (lzma_close): Add return value comment.
3308 * remote.c (remote_bfd_iovec_close): Return 0 for success.
3309 * solib-spu.c (spu_bfd_iovec_close): Likewise.
3310 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
3312 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3314 * config.in: Regenerate.
3316 2013-04-12 Tom Tromey <tromey@redhat.com>
3318 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
3320 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
3321 (struct die_reader_specs) <buffer>: Likewise.
3322 (die_reader_func_ftype): Make 'info_ptr' const.
3323 (struct line_header) <include_dirs, statement_program_start,
3324 statement_program_end>: Now const.
3325 (struct file_entry) <name>: Likewise.
3326 (struct partial_die_info) <sibling>: Likewise.
3327 (struct dwarf_block) <data>: Likewise.
3328 (dwarf2_read_section): Remove cast.
3329 (dwarf2_get_section_info): Make 'bufp' const.
3330 (read_index_from_section): Constify.
3331 (dw2_get_file_names_reader): Make 'info_ptr' const.
3332 (dw2_get_primary_filename_reader): Likewise.
3333 (read_comp_unit_head): Make 'info_ptr' and return type const.
3334 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
3336 (read_abbrev_offset): Constify.
3337 (dwarf2_create_include_psymtab): Make 'name' const.
3338 (create_debug_types_hash_table): Update.
3339 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
3340 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
3342 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
3343 (load_partial_comp_unit_reader): Make 'info_ptr' const.
3344 (read_comp_units_from_section): Constify.
3345 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
3346 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
3348 (dwarf2_compute_name, setup_type_unit_groups): Constify.
3349 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
3350 (create_dwp_hash_table, dwarf2_ranges_read)
3351 (dwarf2_record_block_ranges): Constify.
3352 (read_die_and_children, read_die_and_siblings_1)
3353 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
3355 (read_full_die_1, read_full_die): Make 'info_ptr' const.
3356 (abbrev_table_read_table): Constify.
3357 (load_partial_dies): Make 'info_ptr' const.
3358 (read_partial_die, read_attribute_value, read_attribute): Make
3359 'info_ptr' and return type const.
3360 (read_address, read_initial_length)
3361 (read_checked_initial_length_and_offset, read_offset)
3362 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
3364 (read_direct_string): Make 'buf' and return type const.
3365 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
3366 (read_indirect_string): Make return type const.
3367 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
3368 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
3370 (read_str_index): Make return type const.
3371 (add_include_dir): Make 'include_dir' const.
3372 (add_file_name): Make 'name' const.
3373 (dwarf_decode_line_header): Constify.
3374 (psymtab_include_file_name): Make return type const.
3375 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
3376 (dwarf2_start_subfile): Make 'filename' const.
3377 (dwarf2_const_value_attr): Make 'bytes' const.
3378 (read_signatured_type_reader): Make 'info_ptr' const.
3379 (decode_locdesc): Constify.
3380 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
3382 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
3383 'mac_end', and return type const.
3384 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
3385 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
3387 (per_cu_header_read_in): Constify.
3388 * symfile.h (dwarf2_get_section_info): Update.
3390 2013-04-12 Tom Tromey <tromey@redhat.com>
3392 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
3394 2013-04-12 Eli Zaretskii <eliz@gnu.org>
3396 * NEWS: Mention "show configuration", --configuration.
3397 * top.c (print_gdb_configuration): New function, displays the
3398 details about GDB configure-time parameters.
3399 (print_gdb_version): Mention "show configuration".
3400 * cli/cli-cmds.c (show_configuration): New function.
3401 (_initialize_cli_cmds): Add the "show configuration" command.
3402 * main.c (captured_main) <print_configuration>: New static var.
3403 <long_options>: Use it.
3404 If --configuration was given, call print_gdb_configuration.
3406 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3407 Pedro Alves <palves@redhat.com>
3409 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
3410 (generated_files): Add gcore.
3411 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
3412 HAVE_NATIVE_GCORE_HOST.
3414 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
3415 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
3416 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
3417 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
3418 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
3419 Add HAVE_NATIVE_GCORE_HOST.
3420 * configure: Regenerate.
3421 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
3422 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
3423 AC_CONFIG_FILES for gcore.
3424 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
3426 * gdb_gcore.sh: Rename to ...
3427 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
3428 and GCORE_TRANSFORM_NAME substitutions.
3430 Fix parsing tabs in ${gdb_target_obs}.
3431 * configure.tgt (gdb_have_gcore): Replace case with for and if.
3433 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3435 * remote.c (unpush_and_perror): Add output message final dot.
3437 2013-04-11 Yao Qi <yao@codesourcery.com>
3439 * tracepoint.c (tfile_interp_line): Fit parameters line and
3442 2013-04-10 Joel Brobecker <brobecker@adacore.com>
3444 * solib.c (solib_map_sections): Remove code overwriting
3445 SO->SO_NAME with the bfd's filename.
3447 2013-04-10 Pedro Alves <palves@redhat.com>
3449 * cli/cli-decode.c (integer_unlimited_completer): New function.
3450 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
3451 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
3453 * cli/cli-setshow.c: Include "cli/cli-utils.h".
3454 (is_unlimited_literal): New function.
3455 (do_set_command): Handle literal "unlimited" arguments.
3456 * frame.c (_initialize_frame) <set backtrace limit>: Document
3458 * printcmd.c (_initialize_printcmd) <set print
3459 max-symbolic-offset>: Add help text.
3460 * record-full.c (_initialize_record_full) <set record full
3461 insn-number-max>: Likewise.
3462 * record.c (_initialize_record) <set record
3463 instruction-history-size, set record function-call-history-size>:
3465 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
3467 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
3469 * source.c (_initialize_source) <set listsize>: Add help text.
3470 * utils.c (initialize_utils) <set height, set width>: Likewise.
3471 <set pagination>: Mention "set height unlimited".
3472 * valprint.c (_initialize_valprint) <set print elements, set print
3473 repeats>: Document "unlimited".
3475 2013-04-10 Pedro Alves <palves@redhat.com>
3477 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
3478 instead of disconnect_tracing.
3479 * infcmd.c (detach_command, disconnect_command): Call
3480 query_if_trace_running. Adjust.
3481 * top.c: Include "tracepoint.h".
3482 (quit_target): Delete. Contents moved ...
3483 (quit_force): ... here. Wrap each stage of teardown in
3484 TRY_CATCH. Call disconnect_tracing before detaching.
3486 2013-04-10 Hui Zhu <hui@codesourcery.com>
3487 Yao Qi <yao@codesourcery.com>
3489 * configure.ac: Check libbabeltrace is installed.
3490 * config.in: Regenerate.
3491 * configure: Regenerate.
3492 * Makefile.in (LIBBABELTRACE): New.
3493 (CLIBS): Add LIBBABELTRACE.
3494 * ctf.c: Include "exec.h".
3495 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
3496 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
3497 (ctf_save_metadata_header): Define new type aliases in
3499 (ctf_write_header): Define event type "tsv_def" and "tp_def"
3500 in metadata. Start a new faked packet for trace status.
3501 (ctf_write_status): Write trace status to CTF.
3502 (ctf_write_uploaded_tsv): Write TSV to CTF.
3503 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
3504 (ctf_write_definition_end): End the faked packet.
3506 (ctx, ctf_iter, trace_dirname): New.
3507 (start_pos): New variable.
3508 (ctf_destroy, ctf_open_dir, ctf_open): New.
3509 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
3511 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
3512 (ctf_fetch_registers, ctf_xfer_partial): New.
3513 (ctf_get_trace_state_variable_value): New.
3514 (ctf_get_tpnum_from_frame_event): New.
3515 (ctf_get_traceframe_address): New.
3516 (ctf_trace_find, ctf_has_stack): New.
3517 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
3518 (ctf_get_trace_status, ctf_read_status): New.
3519 (_initialize_ctf): New.
3520 * tracepoint.c (get_tracepoint_number): New
3521 (get_uploaded_tsv): Remove 'static'.
3522 (struct traceframe_info, trace_regblock_size): Move it to ...
3523 * tracepoint.h: ... here.
3524 (get_tracepoint_number): Declare it.
3525 (get_uploaded_tsv): Declare it.
3527 * NEWS: Mention new configure option.
3529 2013-04-10 Pedro Alves <palves@redhat.com>
3530 Hui Zhu <hui@codesourcery.com>
3532 * breakpoint.c (dprintf_re_set): New.
3533 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
3536 2013-04-09 Joel Brobecker <brobecker@adacore.com>
3538 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
3539 Remove solib-svr4.o from the list.
3541 2013-04-09 Joel Brobecker <brobecker@adacore.com>
3543 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
3544 Use gdb_assert_not_reached instead of invalid boolean expression.
3546 2013-04-09 Pedro Alves <palves@redhat.com>
3548 * remote.c (unpush_and_perror): New function.
3549 (readchar, remote_serial_write): Use it.
3551 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
3553 * NEWS: Mention new btrace RSP packets.
3555 2013-04-08 Tom Tromey <tromey@redhat.com>
3557 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
3560 2013-04-08 Tom Tromey <tromey@redhat.com>
3562 * maint.c (print_bfd_section_info): Print the section index.
3563 * symmisc.c (dump_msymbols): Print the section index.
3565 2013-04-08 Tom Tromey <tromey@redhat.com>
3568 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
3569 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
3570 * breakpoint.c (resolve_sal_pc): Update.
3571 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3572 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
3573 (minsym_lookup_iterator_cb): Use it.
3574 (default_read_var_value): Update.
3575 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
3577 * infcmd.c (jump_command): Update.
3578 * linespec.c (minsym_found): Update.
3579 * maint.c (maintenance_translate_address): Update.
3580 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
3581 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
3582 * parse.c (write_exp_msymbol): Update.
3583 * printcmd.c (address_info): Update.
3584 * psymtab.c (find_pc_sect_psymbol): Update.
3585 (fixup_psymbol_section): Check SYMBOL_SECTION, not
3587 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
3588 Don't initialize SYMBOL_OBJ_SECTION.
3589 * spu-tdep.c (spu_catch_start): Update.
3590 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
3591 * symmisc.c (dump_msymbols, print_symbol): Update.
3592 * symtab.c (fixup_section): Don't set 'obj_section'. Change
3593 how fallback section is computed.
3594 (fixup_symbol_section): Update.
3595 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
3597 (allocate_symbol, initialize_symbol, allocate_template_symbol):
3598 Initialize SYMBOL_SECTION.
3599 * symtab.h (struct general_symbol_info) <section>: Update comment.
3600 <obj_section>: Remove.
3601 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
3602 (SYMBOL_OBJFILE): New macro.
3604 2013-04-08 Tom Tromey <tromey@redhat.com>
3606 * coffread.c (record_minimal_symbol): Update.
3607 * dbxread.c (record_minimal_symbol): Update.
3608 * elfread.c (record_minimal_symbol): Update.
3609 * machoread.c (macho_symtab_add_minsym): Update.
3610 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
3612 * minsyms.c (prim_record_minimal_symbol): Update.
3613 (prim_record_minimal_symbol_full): Remove 'bfd_section'
3615 (prim_record_minimal_symbol_and_info): Likewise.
3616 * minsyms.h (prim_record_minimal_symbol_full)
3617 (prim_record_minimal_symbol_and_info): Update.
3618 * symtab.c (allocate_symbol, initialize_symbol)
3619 (allocate_template_symbol): Initialize SYMBOL_SECTION.
3620 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
3623 2013-04-08 Tom Tromey <tromey@redhat.com>
3626 * solib-som.c (som_solib_section_offsets): Use BFD section
3627 indices. Set offsets for all sections.
3628 * somread.c (som_symtab_read): Compute BFD section for
3629 symbol. Use prim_record_minimal_symbol_and_info.
3630 (som_symfile_read): Fix comment.
3631 (struct find_section_offset_arg): New.
3632 (find_section_offset, set_section_index): New functions.
3633 (som_symfile_offsets): Use set_section_index to compute
3636 2013-04-08 Tom Tromey <tromey@redhat.com>
3638 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
3639 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
3640 gdb_bfd_section_index.
3641 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
3643 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
3645 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
3647 * objfiles.c (add_to_objfile_sections_full): New function.
3648 (add_to_objfile_sections): Use it.
3649 (build_section_table): Rewrite.
3650 (objfile_relocate1): Use gdb_bfd_section_index. Update.
3651 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
3652 (struct objfile) <sections>: Update comment.
3653 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
3655 (ALL_OBJSECTIONS): Use it.
3656 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
3657 * solib-frv.c (frv_relocate_main_executable): Update.
3658 * solib-target.c (solib_target_relocate_section_addresses):
3659 Use gdb_bfd_section_index.
3660 * symfile.c (build_section_addr_info_from_section_table):
3661 Use gdb_bfd_section_index.
3662 (build_section_addr_info_from_bfd, place_section): Likewise.
3663 * symtab.c (fixup_section): Update.
3664 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
3666 2013-04-08 Tom Tromey <tromey@redhat.com>
3668 * minsyms.h (struct bound_minimal_symbol): New.
3669 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
3670 Remove objfile argument.
3671 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
3672 Return bound_minimal_symbol.
3673 * minsyms.c (lookup_minimal_symbol_by_pc_1)
3674 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
3675 Return bound_minimal_symbol.
3676 (in_gnu_ifunc_stub): Update.
3677 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
3678 Remove 'objfile_p' argument.
3679 (lookup_solib_trampoline_symbol_by_pc): Update.
3680 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
3681 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
3682 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
3683 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
3684 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
3685 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
3686 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
3687 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
3688 stack.c, symtab.c, tui/tui-disasm.c: Update.
3690 2013-04-08 Tom Tromey <tromey@redhat.com>
3692 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
3693 Use symbol's obstack, not an objfile.
3694 * coffread.c (process_coff_symbol): Update.
3695 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
3696 * jv-lang.c (add_class_symbol): Update.
3697 * mdebugread.c (new_symbol): Update.
3698 * minsyms.c (prim_record_minimal_symbol_full)
3699 (terminate_minimal_symbol_table): Update.
3700 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
3701 * stabsread.c (define_symbol, read_enum_type): Update.
3702 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
3703 Handle Ada specially.
3704 (symbol_set_language): Add 'obstack' argument.
3705 (symbol_set_names): Update.
3706 (symbol_natural_name, symbol_demangled_name): Always use
3708 * symtab.h (struct general_symbol_info)
3709 <language_specific::obstack>: New field.
3710 <ada_mangled>: New field.
3711 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
3712 (symbol_set_language): Update.
3714 2013-04-08 Tom Tromey <tromey@redhat.com>
3716 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
3717 Take an obstack, not an objfile.
3718 (symbol_set_names): Update.
3719 * symtab.h (symbol_set_demangled_name): Update.
3721 2013-04-08 Tom Tromey <tromey@redhat.com>
3723 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
3725 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
3726 (read_func_scope): Call allocate_template_symbol.
3727 (new_symbol_full): Call allocate_symbol.
3728 * jit.c (finalize_symtab): Call allocate_symbol.
3729 * jv-lang.c (add_class_symbol): Call allocate_symbol.
3730 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
3731 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3732 (common_block_end): Call allocate_symbol.
3733 * symtab.c (allocate_symbol, initialize_symbol)
3734 (allocate_template_symbol): New functions.
3735 * symtab.c (allocate_symbol, initialize_symbol)
3736 (allocate_template_symbol): Declare.
3737 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
3739 2013-04-08 Pedro Alves <palves@redhat.com>
3740 Keith Seitz <keiths@redhat.com>
3742 * breakpoint.c (create_breakpoint): Rename
3743 "parse_condition_and_thread" parameter to "parse_arg". Update
3744 describing comment. If !PARSE_ARG, then error out if ARG is not
3745 the empty string after extracting the location.
3746 * breakpoint.h (create_breakpoint): Rename
3747 "parse_condition_and_thread" parameter to "parse_arg".
3749 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
3751 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
3753 2013-04-07 Yao Qi <yao@codesourcery.com>
3755 * remote.c (remote_trace_find): Change type of parameters 'addr1'
3756 and 'addr2' to CORE_ADDR.
3757 * target.c (update_current_target): Update.
3758 * target.h (struct target_ops) <to_trace_find>: Change parameter
3760 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
3761 'addr2' to CORE_ADDR.
3762 (tfile_trace_find): Likewise.
3763 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
3764 Change local variable 'addr' to type CORE_ADDR.
3765 * tracepoint.h (tfind_1): Update declaration.
3767 2013-04-06 Eli Zaretskii <eliz@gnu.org>
3769 * windows-nat.c (windows_get_absolute_argv0): Move from here...
3770 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
3773 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
3775 * main.h (windows_get_absolute_argv0): ...to here.
3777 2013-04-05 Doug Evans <dje@google.com>
3779 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
3780 (read_cutu_die_from_dwo): Add comments.
3781 (read_structure_type): Update comment.
3782 (read_enumeration_type, read_namespace_type): Update comment.
3783 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
3785 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3787 Convert man pages to texinfo, new gdbinit.5 texinfo page.
3788 * Makefile.in (gdb.z): Remove.
3789 (install-only): Remove $(man1dir) and gdb.1 installation.
3792 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3794 Fix compatibility with Linux kernel 3.8.3.
3795 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
3796 to more inner block. Remove parsing of NUMBER from outer block.
3797 Parse NUMBER only if KEYWORD has been identified.
3799 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3801 Fix variable name shadowing.
3802 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
3803 filename to mapsfilename and update its uses.
3805 2013-04-05 Eli Zaretskii <eliz@gnu.org>
3807 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
3808 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
3809 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
3810 details of the problem.
3812 2013-04-04 Pedro Alves <palves@redhat.com>
3813 Hui Zhu <hui@codesourcery.com>
3815 * breakpoint.c (validate_commands_for_breakpoint): If validating a
3816 tracepoint, reset its STEP_COUNT and call validate_actionline.
3818 2013-04-03 Doug Evans <dje@google.com>
3820 * dwarf2read.c (read_die_and_siblings_1): Renamed from
3821 read_die_and_siblings.
3822 (read_die_and_siblings): New function.
3823 (read_cutu_die_from_dwo): Dump die if requested.
3824 (read_die_and_children): Call read_full_die_1 and
3825 read_die_and_siblings_1.
3826 (read_full_die): Dump die if requested.
3828 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
3830 * dwarf2read.c (struct dwo_file): New member comp_dir.
3831 Rename member name to dwo_name. All uses updated.
3832 (hash_dwo_file): Include comp_dir in computation.
3833 (eq_dwo_file): Ditto.
3834 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
3835 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
3837 * psymtab.c (read_psymtabs_with_fullname): Don't call
3838 psymtab_to_fullname if the basenames are different.
3840 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3842 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
3843 New entry about "fullname" presence.
3845 2013-04-03 Pedro Alves <palves@redhat.com>
3847 * NEWS: Mention x86_64/Cygwin as new native configuration.
3849 2013-04-02 Doug Evans <dje@google.com>
3851 * dwarf2read.c (read_structure_type): Fix typo in comment.
3853 2013-04-02 Pedro Alves <palves@redhat.com>
3855 * NEWS: Mention "set/show debug aarch64", "set/show debug
3856 coff-pe-read" and "set/show debug mach-o".
3858 2013-04-02 Pedro Alves <palves@redhat.com>
3860 * NEWS: Mention "set/show remote trace-buffer-size-packet".
3862 2013-04-02 Eli Zaretskii <eliz@gnu.org>
3864 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
3865 gdb_string.h is now in common/.
3867 2013-04-02 Pedro Alves <palves@redhat.com>
3869 * NEWS: Move "set debug notification" and "set trace-buffer-size"
3870 under "New options".
3872 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3876 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3878 2013-04-02 Pedro Alves <palves@redhat.com>
3882 * remote.c (send_interrupt_sequence): Use remote_serial_write.
3883 (remote_serial_write): New function.
3884 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
3886 2013-04-01 Jiong Wang <jiwang@tilera.com>
3888 * NEWS: Mention TILE-Gx in "New native configurations" and
3889 "New targets" sections.
3891 2013-04-01 Doug Evans <dje@google.com>
3893 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
3894 (process_enumeration_scope): Simplify.
3896 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
3898 (struct signatured_type): ... to here.
3899 (sig_type_ptr): New typedef.
3900 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
3901 out of union 't'. All uses updated.
3902 (dw2_get_file_names_reader): Assert not called for a type unit.
3903 (dw2_get_file_names): Assert not called for a type unit or type
3905 (build_type_psymtabs_reader): Assert called for a type unit.
3906 (build_type_psymtab_dependencies): Assert called for a type unit group.
3908 * dwarf2read.c (free_dwo_file): Add comment.
3909 (dwarf2_per_objfile_free): Unref dwp bfd.
3911 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3913 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
3914 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
3915 (read_pe_exported_syms): Remove unused 'exportix'.
3916 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
3917 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
3918 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
3920 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3922 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
3923 (print_it_watchpoint): Remove unused 'bl'.
3924 (say_where): Remove unused 'uiout'.
3925 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
3926 (bkpt_breakpoint_hit): Remove unused 'b'.
3927 (internal_bkpt_print_it): Remove unused 'uiout'.
3928 * buildsym.c (augment_type_symtab): Remove unused 'i'.
3930 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
3932 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
3933 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
3935 2013-03-29 Doug Evans <dje@google.com>
3937 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
3938 Delete arg is_dwp. All callers updated.
3939 (open_dwp_file): New function.
3940 (open_and_init_dwp_file): Call it.
3941 (get_dwp_file): New function.
3942 (lookup_dwo_cutu): Call it.
3944 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
3945 unnecessary, cleanup.
3947 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
3949 * dwarf2read.c (read_cutu_die_from_dwo): New function.
3950 (lookup_dwo_unit): New function.
3951 (init_cutu_and_read_dies): Move DWO handling to new functions.
3953 * dwarf2read.c (struct signatured_type): Tweak comment.
3954 (struct dwo_unit): Tweak comment.
3955 (create_debug_types_hash_table): Tweak comment. Reformat long line.
3956 (create_dwo_debug_info_hash_table): Tweak comment.
3957 (dwarf2_per_cu_offset_and_type): Tweak comment.
3959 * dwarf2read.c (lookup_signatured_type): Remove complaint about
3960 missing .debug_types section.
3962 2013-03-29 Yao Qi <yao@codesourcery.com>
3964 * corelow.c: Include "completer.h".
3965 (_initialize_corelow): Call add_target_with_completer with
3966 argument 'filename_completer'.
3967 * tracepoint.c: Likewise.
3968 * exec.c (_initialize_exec): Likewise.
3969 * target.c (add_target): Rename to ...
3970 (add_target_with_completer): ... this. Call set_cmd_completer
3971 if parameter completer is not NULL.
3973 * target.h: Include "command.h".
3974 (add_target_with_completer): Declare it.
3976 2013-03-28 Joel Brobecker <brobecker@adacore.com>
3978 * coffread.c (is_import_fixup_symbol): New function.
3979 (record_minimal_symbol): Use is_import_fixup_symbol to
3980 detect import fixup symbols, and discard them.
3982 2013-03-28 Doug Evans <dje@google.com>
3984 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
3985 types hash table until we know we need it.
3987 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
3990 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
3991 All callers updated.
3992 (dw2_print_stats): Print #read CUs too.
3993 (dump_die_shallow): Print signatured types better.
3995 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
3996 info_or_types_section to section. All uses updated.
3997 (struct dwo_unit): Ditto.
3999 2013-03-28 Pedro Alves <palves@redhat.com>
4001 * NEWS (New options): New section.
4002 (New options): Mention set/show remote trace-status-packet.
4003 * remote.c (PACKET_qTStatus): New enumeration value.
4004 (remote_get_trace_status): Skip sending qTStatus if the packet is
4005 disabled. Use packet_ok.
4006 (_initialize_remote): Register a configuration command for
4009 2013-03-28 Doug Evans <dje@google.com>
4011 * symfile.c (find_separate_debug_file): Add comment.
4012 (terminate_after_last_dir_separator): Tweak comment.
4014 * dwarf2read.c (create_partial_symtab): Add forward decl.
4015 (create_partial_symtab): Move to be closer to other psymtab functions.
4016 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
4018 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
4019 (compute_symtab_includes): Remove unnecessary forward declaration.
4020 (die_needs_namespace): Add comment marking group of functions for
4021 dwarf2 name computation.
4023 * typeprint.c (_initialize_typeprint): Improve type help text.
4025 * python/python.c (finish_python_initialization): Provide suggestion
4026 for how to tell gdb to find its python files.
4028 2013-03-28 Pedro Alves <palves@redhat.com>
4032 * source.c (_initialize_source): Change back "set listsize" to an
4035 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
4038 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
4040 2013-03-27 Pedro Alves <palves@redhat.com>
4042 * top.c (history_size): Rename to ...
4043 (history_size_setshow_var): ... this. Add comment.
4044 (show_commands): Use readline's 'history_length' instead of
4045 computing the history length by calling history_get in a loop.
4046 (set_history_size_command): Error out for sizes over INT_MAX.
4047 Restore previous history size on invalid size.
4048 (init_history): If HISTSIZE is negative, leave the history size as
4050 (init_main): Adjust.
4052 2013-03-27 Pedro Alves <palves@redhat.com>
4054 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
4055 coff_pe_read" command to "set debug coff-pe-read".
4057 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
4059 * record.c (command_size_to_target_size): Fix size comparison.
4060 Change parameter type from pointer to integer to integer.
4063 2013-03-27 Pierre Muller <muller@sourceware.org>
4065 * windows-nat.c (handle_output_debug_string): Avoid typecast
4066 from integer of different size warning.
4068 2013-03-26 Joel Brobecker <brobecker@adacore.com>
4070 * windows-nat.c (handle_output_debug_string): Add empty line
4071 after local block variable definition.
4073 2013-03-26 Pedro Alves <palves@redhat.com>
4075 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
4076 (net_open): Make 'polls' local unsigned.
4078 2013-03-26 Pedro Alves <palves@redhat.com>
4080 * remote.c (_initialize_remote): Make "set remoteaddresssize"
4081 a zuinteger command instead of uinteger.
4083 2013-03-26 Pedro Alves <palves@redhat.com>
4085 * record-full.c (record_full_insn_num): Make it unsigned.
4086 (record_full_check_insn_num, record_full_message)
4087 (record_full_registers_change, record_full_xfer_partial): Remove
4088 record_full_insn_max_num check (it's always != 0).
4089 (record_full_info, record_full_restore): Use %u as format string.
4090 (): Use %u as format string.
4091 (set_record_full_insn_max_num): Remove record_full_insn_max_num
4092 check (it's always != 0).
4094 2013-03-26 Pedro Alves <palves@redhat.com>
4096 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
4097 and "set dcache size" commands zuinteger instead of uinteger.
4099 2013-03-26 Pedro Alves <palves@redhat.com>
4101 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
4102 command zuinteger instead of uinteger.
4104 2013-03-26 Pedro Alves <palves@redhat.com>
4106 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
4107 zuinteger instead of uinteger.
4109 2013-03-26 Pedro Alves <palves@redhat.com>
4111 * record.c (record_insn_history_size_setshow_var)
4112 (record_call_history_size_setshow_var): New globals.
4113 (command_size_to_target_size): New function.
4114 (cmd_record_insn_history, cmd_record_call_history): Use
4115 command_size_to_target_size instead of cast.
4116 (validate_history_size, set_record_insn_history_size)
4117 (set_record_call_history_size): New functions.
4118 (_initialize_record): Install set_record_insn_history_size and
4119 set_record_call_history_size as "set" hooks of "set record
4120 instruction-history-size" and "set record
4121 function-call-history-size".
4123 2013-03-26 Pedro Alves <palves@redhat.com>
4125 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
4126 use with history_max_entries use. Remove FIXME note.
4128 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
4130 * record-btrace.c (record_btrace_close): Call
4131 record_btrace_auto_disable.
4133 2013-03-25 Joel Brobecker <brobecker@adacore.com>
4135 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
4137 2013-03-25 Doug Evans <dje@google.com>
4139 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
4141 2013-03-25 Tom Tromey <tromey@redhat.com>
4144 * c-exp.y (exp): Add new productions for destructors after '.' and
4146 (write_destructor_name): New function.
4148 2013-03-25 Tom Tromey <tromey@redhat.com>
4151 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
4152 value_struct_elt, not lookup_struct_elt_type.
4153 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
4154 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
4155 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
4157 2013-03-25 Yao Qi <yao@codesourcery.com>
4159 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
4160 instead of '_mkdir'.
4162 2013-03-23 Eli Zaretskii <eliz@gnu.org>
4164 * windows-nat.c (windows_get_absolute_argv0): New function.
4165 * windows-nat.h: Add its prototype.
4167 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
4168 Use IS_DIR_SEPARATOR instead of looking for a character inside
4169 SLASH_STRING. Include filenames.h.
4170 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
4171 relocate_gdb_directory works when passed gdb_program_name.
4172 Include windows-nat.h.
4174 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4176 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
4177 * remote.c (trace_error): Remove the special handling of '2'.
4178 (readchar) <SERIAL_EOF>
4179 (readchar) <SERIAL_ERROR>
4180 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
4181 (remote_get_trace_status): Call throw_exception if EX is
4183 * utils.c (perror_with_name): Rename to ...
4184 (throw_perror_with_name): ... here. New parameter errcode, describe it
4185 in the function comment.
4186 (perror_with_name): New function wrapper.
4187 * utils.h (enum errors): New stub declaration.
4188 (throw_perror_with_name): New declaration.
4190 2013-03-22 Pedro Alves <palves@redhat.com>
4191 Yao Qi <yao@codesourcery.com>
4192 Mark Kettenis <kettenis@gnu.org>
4194 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
4195 Don't let the user set the value to UINT_MAX directly.
4196 <var_integer>: Don't let the user set the value to INT_MAX
4199 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4201 * remote.c (remote_unpush_target): New function.
4202 (remote_open_1): Remove two pop_target calls, update one comment, add
4203 comment to target_preopen call. Replace pop_target call by
4204 remote_unpush_target call.
4205 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
4206 pop_target calls by remote_unpush_target calls.
4208 2013-03-22 Pedro Alves <palves@redhat.com>
4210 * linux-nat.c (linux_child_follow_fork): Don't call
4211 linux_enable_event_reporting.
4212 (linux_handle_extended_wait): Don't call
4213 linux_enable_event_reporting.
4215 2013-03-22 Pedro Alves <palves@redhat.com>
4217 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
4218 use it to rewrite the trampoline buffers with type gdb_byte[], and
4219 undefine the macro. Remove char* cast.
4221 2013-03-21 Doug Evans <dje@google.com>
4223 New commands "mt set per-command {space,time,symtab} {on,off}".
4225 * event-top.c: #include "maint.h".
4226 * main.c: #include "maint.h".
4227 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
4228 timeval-utils.h, maint.h, cli/cli-setshow.h.
4229 (per_command_time, per_command_space): New static globals.
4230 (per_command_symtab): New static global.
4231 (per_command_setlist, per_command_showlist): New static globals.
4232 (struct cmd_stats): Move here from utils.c.
4233 (set_per_command_time): Renamed from set_display_time in utils.c
4234 and moved here. All callers updated.
4235 (set_per_command_space): Renamed from set_display_space in utils.c
4236 and moved here. All callers updated.
4237 (count_symtabs_and_blocks): New function.
4238 (report_command_stats): Moved here from utils.c. Add support for
4239 printing symtab stats. Only print data if enabled before command
4241 (make_command_stats_cleanup): Ditto.
4242 (sert_per_command_cmd, show_per_command_cmd): New functions.
4243 (_initialize_maint_cmds): Add new commands
4244 mt set per-command {space,time,symtab} {on,off}.
4245 * maint.h: New file.
4246 * top.c: #include "maint.h".
4247 * utils.c (reset_prompt_for_continue_wait_time): New function.
4248 (get_prompt_for_continue_wait_time): New function.
4249 * utils.h (reset_prompt_for_continue_wait_time): Declare
4250 (get_prompt_for_continue_wait_time): Declare.
4251 (make_command_stats_cleanup): Moved to maint.h.
4252 (set_display_time, set_display_space): Moved to maint.h and renamed
4253 to set_per_command_time, set_per_command_space.
4254 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
4255 parse_binary_operation and made non-static. Don't call error,
4256 just return an error marker. All callers updated.
4257 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
4259 2013-03-21 Tom Tromey <tromey@redhat.com>
4261 * symfile.c (alloc_section_addr_info): Update header. Don't set
4262 'num_sections' field.
4263 (build_section_addr_info_from_section_table): Set 'num_sections'.
4264 (build_section_addr_info_from_bfd): Likewise.
4265 (build_section_addr_info_from_objfile): Remove dead loop
4267 (free_section_addr_info): Unconditionally call xfree.
4268 (relative_addr_info_to_section_offsets, addrs_section_sort)
4269 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
4271 (syms_from_objfile_1): Remove dead 'if' condition. Check
4273 (add_symbol_file_command): Set 'num_sections'.
4274 * symfile-mem.c (symbol_file_add_from_memory): Set
4276 * somread.c (som_symfile_offsets): Remove dead loop condition.
4277 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
4278 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
4280 2013-03-21 Tom Tromey <tromey@redhat.com>
4282 * tracepoint.h (decode_agent_options): Add 'trace_string'
4284 * tracepoint.c (decode_agent_options): Add 'trace_string'
4286 (validate_actionline): Update.
4287 (collect_symbol): Add 'trace_string' argument.
4288 (struct add_local_symbols_data) <trace_string>: New field.
4289 (do_collect_symbol): Update.
4290 (add_local_symbols): Add 'trace_string' argument.
4291 (encode_actions_1): Update.
4292 (trace_dump_actions): Update.
4293 * dwarf2loc.c (access_memory): Update.
4294 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
4295 * ax-general.c (new_agent_expr): Update.
4296 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
4297 (gen_trace_for_return_address): Add argument.
4298 (trace_kludge, trace_string_kludge): Remove.
4299 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
4300 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
4301 (gen_trace_for_var): Add 'trace_string' argument.
4302 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
4303 (gen_printf, agent_eval_command_one): Update.
4305 2013-03-21 Tom Tromey <tromey@redhat.com>
4308 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
4309 Handle FILENAME token.
4311 2013-03-21 Tom Tromey <tromey@redhat.com>
4313 * c-exp.y (YYPRINT): Define.
4314 (c_print_token): New function.
4316 2013-03-21 Tom Tromey <tromey@redhat.com>
4318 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
4320 2013-03-21 Yao Qi <yao@codesourcery.com>
4322 * ctf.c: Include "gdb_stat.h".
4323 [USE_WIN32API]: New macro 'mkdir'.
4324 (ctf_start): Use permission bits macros if they are defined.
4326 2013-03-20 Keith Seitz <keiths@redhat.com>
4328 * breakpoint.h (struct breakpoint): Add comment to
4329 extra_string indicating that this member is mallod'd.
4330 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
4332 2013-03-20 Pedro Alves <palves@redhat.com>
4336 * cli/cli-setshow.c (do_set_command)
4337 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
4338 the result of parsing the command argument. Throw error if the
4339 value is greater than UINT_MAX. Print the invalid value with
4341 <var_integer, var_zinteger>: Use LONGEST for variable holding the
4342 result of parsing the command argument. Throw error if the value
4343 is greater than INT_MAX, not greater or equal. Also throw error
4344 if the value is less than INT_MIN. Print the invalid value with
4346 <var_zuinteger_unlimited>: Throw error if the value is greater
4347 than INT_MAX, not greater or equal.
4348 (do_show_command) <var_integer, var_zinteger,
4349 var_zuinteger_unlimited>: Use %d for printing int, not %u.
4351 2013-03-20 Tom Tromey <tromey@redhat.com>
4353 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
4355 * dwarf2read.c (read_func_scope): Remove old FIXME.
4356 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
4358 * findvar.c (symbol_read_needs_frame, default_read_var_value):
4359 Unconditionally call via computed ops, if possible.
4360 * printcmd.c (address_info): Unconditionally call via computed ops,
4362 * stack.c (read_frame_arg): Unconditionally call via computed ops,
4364 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
4365 * tracepoint.c (scope_info): Unconditionally call via computed ops,
4368 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4369 Tom Tromey <tromey@redhat.com>
4372 * coffread.c (coff_register_index): New global.
4373 (process_coff_symbol, coff_read_enum_type): Set
4374 SYMBOL_ACLASS_INDEX.
4375 (_initialize_coffread): Initialize new global.
4376 * dwarf2loc.c (locexpr_find_frame_base_location)
4377 (dwarf2_block_frame_base_locexpr_funcs)
4378 (loclist_find_frame_base_location)
4379 (dwarf2_block_frame_base_loclist_funcs): New.
4380 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
4381 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
4382 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
4383 (dwarf2_block_frame_base_loclist_funcs): New.
4384 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
4385 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
4387 (read_func_scope): Update.
4388 (fixup_go_packaging, mark_common_block_symbol_computed)
4389 (var_decode_location, new_symbol_full, dwarf2_const_value):
4390 Set SYMBOL_ACLASS_INDEX.
4391 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
4392 (_initialize_dwarf2_read): Initialize new globals.
4393 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
4394 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
4395 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
4397 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
4398 (_initialize_mdebugread): Initialize new globals.
4399 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
4400 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
4401 (stab_register_index, stab_regparm_index): New globals.
4402 (define_symbol, read_enum_type, common_block_end): Set
4403 SYMBOL_ACLASS_INDEX.
4404 (_initialize_stabsread): Initialize new globals.
4405 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
4407 (MAX_SYMBOL_IMPLS): New define.
4408 (register_symbol_computed_impl, register_symbol_block_impl)
4409 (register_symbol_register_impl)
4410 (initialize_ordinary_address_classes): New functions.
4411 (_initialize_symtab): Call initialize_ordinary_address_classes.
4412 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
4413 (struct symbol_impl): New.
4414 (SYMBOL_ACLASS_BITS): New define.
4415 (struct symbol) <aclass, ops>: Remove fields.
4416 <aclass_index>: New field.
4417 (symbol_impls): Declare.
4418 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
4419 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
4420 (register_symbol_computed_impl, register_symbol_block_impl)
4421 (register_symbol_register_impl): Declare.
4422 (struct symbol_computed_ops): Add location_has_loclist.
4423 (struct symbol_block_ops): New.
4424 (SYMBOL_BLOCK_OPS): New.
4425 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
4427 2013-03-20 Tom Tromey <tromey@redhat.com>
4429 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
4430 (print_partial_symbols, recursively_search_psymtabs): Use
4433 2013-03-20 Pierre Muller <muller@sourceware.org>
4435 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
4436 addtion, subtraction, multiplication and division binary operator.
4438 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4441 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
4442 * bsd-kvm.c (bsd_kvm_close): Likewise.
4443 * bsd-uthread.c (bsd_uthread_close): Likewise.
4444 * corelow.c (core_close): Likewise.
4445 (core_close_cleanup): Remove parameter quitting from a caller.
4446 * event-top.c (async_disconnect): Likewise.
4447 * exec.c (exec_close_1): Remove parameter quitting.
4448 * go32-nat.c (go32_close): Likewise.
4449 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
4450 parameter quitting from a caller.
4451 * mips-linux-nat.c (super_close): Remove parameter quitting from the
4453 (mips_linux_close): Remove parameter quitting. Remove parameter
4454 quitting from a caller.
4455 * monitor.c (monitor_close): Remove parameter quitting.
4456 * monitor.h (monitor_close): Likewise.
4457 * record-btrace.c (record_btrace_close): Likewise.
4458 * record-full.c (record_full_close): Likewise.
4459 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
4460 it also from fprintf_unfiltered.
4461 * remote-mips.c (mips_close): Remove parameter quitting.
4462 (mips_detach): Remove parameter quitting from a caller.
4463 * remote-sim.c (gdbsim_close): Remove parameter quitting.
4464 (gdbsim_close): Remove duplicate function comment. Remove parameter
4465 quitting and remove it also from printf_filtered.
4466 * remote.c (remote_close): Remove parameter quitting.
4467 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
4468 * target.c (update_current_target): Remove parameter int from to_close
4470 (push_target, unpush_target, pop_target): Remove parameter quitting from
4472 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
4473 Remove parameter quitting from a caller.
4474 (target_preopen): Remove parameter quitting from a caller.
4475 (target_close): Remove parameter quitting. Remove parameter quitting
4476 from a caller two times. Remove parameter quitting also from
4478 * target.h (struct target_ops): Remove parameter quitting and as int
4479 from fields to_xclose and to_close.
4480 (extern struct target_ops current_target):
4481 (target_close, pop_all_targets): Remove parameter quitting. Update the
4483 (pop_all_targets_above): Remove parameter quitting.
4484 * top.c (quit_target): Remove parameter quitting from a caller.
4485 * tracepoint.c (tfile_close): Remove parameter quitting.
4486 * windows-nat.c (windows_close): Remove parameter quitting.
4488 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
4490 * windows-nat.c (handle_output_debug_string): Replace call
4491 to string_to_core_addr with call to strtoull.
4493 2013-03-20 Yao Qi <yao@codesourcery.com>
4495 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
4496 and write it to CTF metadata.
4498 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
4500 * windows-nat.c (handle_output_debug_string): Change type of n to
4501 SIZE_T to avoid crash on 64 bit systems.
4503 2013-03-17 Eli Zaretskii <eliz@gnu.org>
4505 * python/python-internal.h (HAVE_SNPRINTF)
4506 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
4507 about redefinition of snprintf by pyerrors.h.
4509 2013-03-15 Steve Ellcey <sellcey@mips.com>
4511 * remote-sim.c (sim_command_completer): Make char arguments const.
4513 2013-03-15 Tom Tromey <tromey@redhat.com>
4516 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
4518 2013-03-14 Tom Tromey <tromey@redhat.com>
4520 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
4522 (get_file_crc): Move from symfile.c.
4523 (gdb_bfd_crc): New function.
4524 * gdb_bfd.h (gdb_bfd_crc): Declare.
4525 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
4526 * symfile.c (get_file_crc): Move to gdb_bfd.c.
4527 (separate_debug_file_exists): Use gdb_bfd_crc.
4529 2013-03-14 Tom Tromey <tromey@redhat.com>
4531 * symfile.c (get_debug_link_info): Remove.
4532 (find_separate_debug_file_by_debuglink): Use
4533 bfd_get_debug_link_info.
4535 2013-03-14 Tom Tromey <tromey@redhat.com>
4537 * symtab.c (error_in_psymtab_expansion): New function.
4538 (lookup_symbol_aux_quick)
4539 (basic_lookup_transparent_type_quick): Remove "last resort"
4540 code. Use error_in_psymtab_expansion.
4542 2013-03-14 Doug Evans <dje@google.com>
4543 Jan Kratochvil <jan.kratochvil@redhat.com>
4545 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
4546 any successful compare_filenames_for_search or FILENAME_CMP.
4547 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
4548 * symtab.c (iterate_over_some_symtabs): Likewise.
4550 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4552 * source.c (print_source_lines_base): Make a local copy of
4555 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
4556 Jan Kratochvil <jan.kratochvil@redhat.com>
4558 * source.c (print_source_lines_base): Suppress "file" for TUI.
4560 2013-03-14 Keith Seitz <keiths@redhat.com>
4561 Alan Matsuoka <alanm@redhat.com>
4565 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
4567 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
4570 2013-03-14 Yao Qi <yao@codesourcery.com>
4572 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
4573 status to tfile if trace is stopped by command 'tstop'.
4575 2013-03-14 Yao Qi <yao@codesourcery.com>
4577 * tracepoint.c (tfile_write_status): Write trace notes and user
4578 name into tfile if they are not NULL.
4580 2013-03-14 Hui Zhu <hui@codesourcery.com>
4581 Yao Qi <yao@codesourcery.com>
4583 * Makefile.in (REMOTE_OBS): Add ctf.o.
4584 (SFILES): Add ctf.c.
4585 (HFILES_NO_SRCDIR): Add ctf.h.
4586 * ctf.c, ctf.h: New files.
4587 * tracepoint.c: Include 'ctf.h'.
4588 (collect_pseudocommand): Remove static.
4589 (trace_save_command): Parse option "-ctf".
4590 Produce different trace file writers per option.
4591 Adjust output message.
4592 (trace_save_tfile, trace_save_ctf): New.
4593 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
4594 * mi/mi-main.c: Include 'ctf.h'.
4595 (mi_cmd_trace_save): Handle option '-ctf'. Call either
4596 trace_save_tfile or trace_save_ctf.
4597 * NEWS: Mention these changes.
4599 2013-03-14 Yao Qi <yao@codesourcery.com>
4601 * tracepoint.c (trace_file_writer_xfree): New.
4602 (struct tfile_writer_data): New.
4603 (tfile_dtor, tfile_can_target_save, tfile_start): New.
4604 (tfile_write_header, tfile_write_regblock_type): New.
4605 (tfile_write_status, tfile_write_uploaded_tsv): New.
4606 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
4607 (tfile_write_raw_data, (tfile_end): New.
4608 (tfile_write_ops): New global variable.
4609 (TRACE_WRITE_R_BLOCK): New macro.
4610 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
4611 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
4612 (TRACE_WRITE_V_BLOCK): New macro.
4613 (trace_save): Add extra one parameter WRITER. Make it static.
4614 Use WRITER to writer trace.
4615 (tfile_trace_file_writer_new): New.
4616 (trace_save_command): Caller update.
4617 (trace_save_tfile): Write trace data in TFILE format.
4618 * tracepoint.h (struct trace_frame_write_ops): New.
4619 (struct trace_file_write_ops): New.
4620 (struct trace_file_writer): New.
4621 (trace_save): Remove its declaration.
4622 (trace_save_tfile): Declare it.
4623 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
4624 instead of trace_save.
4626 2013-03-13 Pedro Alves <palves@redhat.com>
4628 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
4630 2013-03-13 Pedro Alves <palves@redhat.com>
4632 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
4634 * demangle.c (current_demangling_style_string): Make it const.
4635 (set_demangling_command): Assert the demangling style is known.
4636 Remove all handling of unknown styles. Set
4637 'current_demangling_style_string' to an element of the
4638 demangling_style_names array.
4639 (set_demangling_style): Delete.
4640 (_initialize_demangler): Set current_demangling_style_string to the
4641 element of the demangling_style_names array that corresponds to
4642 the default demangling style. Remove FIXME note. Don't call
4643 set_demangling_style.
4644 * gdb-demangle.h (set_demangling_style): Remove declaration.
4646 2013-03-13 Pedro Alves <palves@redhat.com>
4648 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
4650 (ada_make_symbol_completion_list): Make "text0" parameter const.
4651 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
4652 * breakpoint.c (condition_completer): Make "text" and "word"
4653 parameters const. Adjust.
4654 (check_tracepoint_command): Adjust to validate_actionline
4656 (catch_syscall_completer): Make "text" and "word" parameters
4658 * cli/cli-cmds.c (show_user): Make "comname" local const.
4659 (valid_command_p): Make "command" parameter const.
4660 (alias_command): Make "alias_prefix" and "command_prefix" locals
4662 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
4663 (add_alias_cmd): Make "name" and "oldname" parameters const.
4664 Adjust. No longer make copy of OLDNAME.
4665 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
4666 (add_setshow_cmd_full, add_setshow_enum_cmd)
4667 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4668 (add_setshow_filename_cmd, add_setshow_string_cmd)
4669 (add_setshow_string_noescape_cmd)
4670 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
4671 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
4672 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
4673 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
4674 Make "name" parameter const.
4675 (help_cmd): Rename "command" parameter to "arg". New const local
4677 (find_cmd): Make "command" parameter const.
4678 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
4679 deprecated_cmd_warning prototype change.
4680 (undef_cmd_error): Make "cmdtype" parameter const.
4681 (lookup_cmd): Make "line" parameter const.
4682 (deprecated_cmd_warning): Change type of "text" parameter to
4683 pointer to const char, from pointer to pointer to char. Adjust.
4684 (lookup_cmd_composition): Make "text" parameter const.
4685 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
4687 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
4689 * cli/cli-script.c (validate_comname): Make "tem" local const.
4690 (define_command): New const local "tem_c". Use it in calls to
4692 (document_command): Make "tem" and "comfull" locals const.
4693 (show_user_1): Make "prefix" and "name" parameters const.
4694 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
4696 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
4697 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
4698 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
4699 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
4700 (complete_on_enum, add_setshow_enum_cmd)
4701 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4702 (add_setshow_filename_cmd, add_setshow_string_cmd)
4703 (add_setshow_string_noescape_cmd)
4704 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
4705 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
4706 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
4707 Change prototypes, constifying strings.
4708 * completer.c (noop_completer, filename_completer): Make "text"
4709 and "prefix" parameters const.
4710 (location_completer, expression_completer)
4711 (complete_line_internal): Make "text" and "prefix" parameters
4713 (command_completer, signal_completer): Make "text" and "prefix"
4715 * completer.h (noop_completer, filename_completer)
4716 (expression_completer, location_completer, command_completer)
4717 (signal_completer): Change prototypes.
4718 * corefile.c (complete_set_gnutarget): Make "text" and "word"
4720 * cp-abi.c (cp_abi_completer): Likewise.
4721 * expression.h (parse_expression_for_completion): Change
4723 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
4725 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
4726 * infrun.c (handle_completer): Make "text" and "word" parameters
4728 * interps.c (interpreter_completer): Make "text" and "word"
4730 * language.h (struct language_defn)
4731 <la_make_symbol_completion_list>: Make "text" and "word"
4733 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
4734 (parse_exp_in_context): Rename to ...
4735 (parse_exp_in_context_1): ... this.
4736 (parse_exp_in_context): Reimplement, with const hack from
4738 (parse_expression_for_completion): Make "string" parameter const.
4739 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
4740 to pointer to const char. Adjust.
4741 (print_command_1): Make "exp" parameter const.
4742 (output_command): Rename to ...
4743 (output_command_const): ... this. Make "exp" parameter const.
4744 (output_command): Reimplement.
4745 (x_command): Adjust.
4746 (display_command): Rename "exp" parameter to "arg". New "exp"
4747 local, const version of "arg".
4748 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
4749 "cmd_name" local const.
4750 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
4752 (cmdpy_completer): Make "text" and "word" parameters const.
4753 (gdbpy_parse_command_name): Make "prefix_text2" local const.
4754 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
4756 * remote.c (_initialize_remote): Make "cmd_name" local const.
4757 * symtab.c (language_search_unquoted_string): Make "text" and "p"
4758 parameters const. Adjust.
4759 (completion_list_add_fields): Make "sym_text", "text" and "word"
4761 (struct add_name_data) <sym_text, text, word>: Make fields const.
4762 (default_make_symbol_completion_list_break_on): Make "text" and
4763 "word" parameters const. Adjust locals.
4764 (default_make_symbol_completion_list)
4765 (make_symbol_completion_list, make_symbol_completion_type)
4766 (make_symbol_completion_list_fn): Make "text" and "word"
4768 (make_file_symbol_completion_list): Make "text", "word" and
4769 "srcfile" parameters const. Adjust locals.
4770 (add_filename_to_list): Make "text" and "word" parameters const.
4771 (struct add_partial_filename_data) <text, word>: Make fields
4773 (make_source_files_completion_list): Make "text" and "word"
4775 * symtab.h (default_make_symbol_completion_list_break_on)
4776 (default_make_symbol_completion_list, make_symbol_completion_list)
4777 (make_symbol_completion_type enum type_code)
4778 (make_symbol_completion_list_fn make_file_symbol_completion_list)
4779 (make_source_files_completion_list): Change prototype.
4780 * top.c (execute_command): Adjust to pass pointer to pointer to
4781 const char to lookup_cmd, and to deprecated_cmd_warning prototype
4783 (set_verbose): Make "cmdname" local const.
4784 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
4786 (validate_actionline): Make "line" parameter a pointer to const
4788 (encode_actions_1): Make "action_exp" local const, and adjust.
4789 (encode_actions): Adjust.
4790 (replace_comma): Delete.
4791 (trace_dump_actions): Make "action_exp" and "next_comma" locals
4792 const, and adjust. Don't frob the action string while splitting
4793 it at commas. Instead, make a copy of each split substring in
4795 (trace_dump_command): Adjust to validate_actionline prototype
4797 * tracepoint.h (decode_agent_options, decode_agent_options)
4798 (encode_actions, validate_actionline): Change prototypes.
4799 * valprint.h (output_command): Delete declaration.
4800 (output_command_const): Declare.
4801 * value.c (function_destroyer): Cast const away in xfree call.
4803 2013-03-13 Pedro Alves <palves@redhat.com>
4805 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
4806 rather than casting 'const char * const *' to 'const char **'.
4807 * ada-lex.l (processInt): Make "trailer" local const. Remove
4808 'const char **' cast.
4809 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
4810 locals, and use those as strtol output pointer, instead than doing
4811 invalid casts to from 'const char **' to 'char **'.
4812 (_initialize_demangle): Remove cast.
4813 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
4814 locals, and use those as strtol output pointer, instead than doing
4815 invalid casts to from 'const char **' to 'char **'.
4816 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
4818 * stap-probe.c (stap_parse_register_operand)
4819 (stap_parse_single_operand): Likewise.
4821 2013-03-13 Yao Qi <yao@codesourcery.com>
4823 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
4824 the last matched 'V' blcok in trace frame.
4826 2013-03-12 Joel Brobecker <brobecker@adacore.com>
4828 * NEWS: Create a new section for the next release branch.
4829 Rename the section of the current branch, now that it has
4832 2013-03-12 Joel Brobecker <brobecker@adacore.com>
4834 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
4835 * version.in: Bump version to 7.6.50.20130312-cvs.
4837 2013-03-12 Keith Seitz <keiths@redhat.com>
4839 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
4840 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
4841 Remove temporary copy of input string.
4842 (mi_execute_command_wrapper): Make "cmd" const.
4843 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
4844 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
4846 (mi_parse): Make "cmd" const.
4848 * mi/mi-parse.h (mi_parse): Make "cmd" const.
4850 2013-03-12 Keith Seitz <keiths@redhat.com>
4852 * ada-lang.c (ada_read_renaming_var_value): Pass const
4853 pointer to expression string to parse_exp_1.
4854 (create_excep_cond_exprs): Likewise.
4855 * ax-gdb.c (agent_eval_command_one): Likewise.
4856 (maint_agent_printf_command): Likewise.
4857 Constify much of the string handling/parsing.
4858 * breakpoint.c (set_breakpoint_condition): Pass const
4859 pointer to expression string to parse_exp_1.
4860 (update_watchpoint): Likewise.
4861 (parse_cmd_to_aexpr): Constify string handling.
4862 Pass const pointer to parse_exp_1.
4863 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
4864 (find_condition_and_thread): Likewise.
4866 (watch_command_1): Make "arg" const.
4867 Constify string handling.
4868 Copy the expression string instead of changing the input
4870 (update_breakpoint_location): Pass const pointer to
4872 * eval.c (parse_and_eval_address): Make "exp" const.
4873 (parse_to_comma_and_eval): Make "expp" const.
4874 (parse_and_eval): Make "exp" const.
4875 * expression.h (parse_expression): Make argument const.
4876 (parse_exp_1): Make first argument const.
4877 * findcmd.c (parse_find_args): Treat "args" as const.
4878 * linespec.c (parse_linespec): Pass const pointer to
4879 linespec_expression_to_pc.
4880 (linespec_expression_to_pc): Make "exp_ptr" const.
4881 * parse.c (parse_exp_1): Make "stringptr" const.
4882 Make a copy of the expression to pass to parse_exp_in_context until
4883 this whole interface can be constified.
4884 (parse_expression): Make "string" const.
4885 * printcmd.c (ui_printf): Treat "arg" as const.
4886 Handle const strings.
4887 * tracepoint.c (validate_actionline): Pass const pointer to
4888 all calls to parse_exp_1.
4889 (encode_actions_1): Likewise.
4890 * value.h (parse_to_comma_and_eval): Make argument const.
4891 (parse_and_eval_address): Likewise.
4892 (parse_and_eval): Likewise.
4893 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
4894 (varobj_set_value): Likewise.
4895 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
4896 constify string handling.
4897 Pass const pointers to parse_and_eval_address and
4898 parse_to_comman_and_eval.
4899 * cli/cli-utils.c (skip_to_space): Rename to ...
4900 (skip_to_space_const): ... this. Handle const strings.
4901 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
4902 skip_to_space_const.
4903 (skip_to_space_const): Declare.
4904 * common/format.c (parse_format_string): Make "arg" const.
4905 Handle const strings.
4906 * common/format.h (parse_format_string): Make "arg" const.
4907 * gdbserver/ax.c (ax_printf): Make "format" const.
4908 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
4909 of the expression string.
4911 2013-03-12 Hui Zhu <hui@codesourcery.com>
4913 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
4915 2013-03-12 Yao Qi <yao@codesourcery.com>
4916 Hui Zhu <hui@codesourcery.com>
4918 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
4919 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
4922 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
4924 * ada-lex.l (rules): Only recognize 'thread' as a
4925 delimiter when followed by numerals, as for c-exp.y.
4926 Use new rewind_to_char function to rewind the input for
4927 expression-delimiting tokens.
4928 (rewind_to_char): New function.
4930 2013-03-11 Pedro Alves <palves@redhat.com>
4931 Jan Kratochvil <jan.kratochvil@redhat.com>
4933 * configure: Regenerate.
4934 * configure.ac (check dynamic export flag): Link python test with
4937 2013-03-11 Doug Evans <dje@google.com>
4938 Keith Seitz <keiths@redhat.com>
4940 * linespec.c (find_linespec_symbols): Call find_function_symbols
4941 first, and then call lookup_prefix_sym/find_method.
4943 2013-03-11 Pedro Alves <palves@redhat.com>
4945 * charset.c (convert_between_encodings): Don't cast between
4946 different pointer to pointer types. Instead, make the 'inp' local
4947 be of the type iconv expects.
4948 (wchar_iterate): Don't cast between different pointer to pointer
4949 types. Instead, use new pointer local of the type iconv expects.
4950 * target.c (target_read_stralloc, target_fileio_read_stralloc):
4951 Add new local of type char pointer, and use it to get a
4952 char/string view of the byte buffer, instead of casting between
4953 pointer to pointer types.
4955 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
4957 * remote.c (remote_set_trace_buffer_size): Move != operator
4958 to the start of next line to fix an ARI warning.
4960 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4962 * NEWS: Add record changes.
4964 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4966 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
4967 the instruction history disassembly.
4968 * disasm.c (dump_insns): Omit the pc prefix, if requested.
4969 * disasm.h (DISASSEMBLY_OMIT_PC): New.
4971 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4973 * Makefile.in (SFILES): Add record-btrace.c
4974 (COMMON_OBS): Add record-btrace.o
4975 * record-btrace.c: New.
4976 * objfiles.c: Include btrace.h.
4977 (free_objfile): call btrace_free_objfile.
4979 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4981 * target.c (target_call_history, target_call_history_from,
4982 target_call_history_range): New.
4983 * target.h (target_ops) <to_call_history, to_call_history_from,
4984 to_call_history_range>: New fields.
4985 (target_call_history, target_call_history_from,
4986 target_call_history_range): New declaration.
4987 * record.c (get_call_history_modifiers, cmd_record_call_history,
4988 record_call_history_size): New.
4989 (_initialize_record): Add the "record function-call-history" command.
4990 Add "set/show record function-call-history-size" commands.
4991 * record.h (record_print_flag): New.
4993 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4995 * target.h (target_ops) <to_insn_history, to_insn_history_from,
4996 to_insn_history_range>: New fields.
4997 (target_insn_history): New.
4998 (target_insn_history_from): New.
4999 (target_insn_history_range): New.
5000 * target.c (target_insn_history): New.
5001 (target_insn_history_from): New.
5002 (target_insn_history_range): New.
5003 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
5004 (record_insn_history_size): New.
5005 (get_insn_number): New.
5006 (get_context_size): New.
5008 (get_insn_history_modifiers): New.
5009 (cmd_record_insn_history): New.
5010 (_initialize_record): Add "set/show record instruction-history-size"
5011 command. Add "record instruction-history" command.
5013 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5015 * record.h (record_disconnect): New.
5016 (record_detach): New.
5017 (record_mourn_inferior): New.
5019 * record-full.c (record_disconnect, record_detach,
5020 record_mourn_inferior, record_kill): Move to...
5021 * record.c: ...here.
5024 (record_unpush): New.
5025 (cmd_record_stop): Call record_stop. Replace unpush_target
5026 call with record_unpush call.
5027 (record_disconnect, record_detach): Assert that the target
5028 is of record stratum. Call record_unpush, record_stop, and
5030 (record_mourn_inferior, record_kill): Assert that the target
5031 is of record stratum. Call record_unpush and DEBUG.
5033 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5035 * record-full.h, record-full.c (record_memory_query): Rename
5037 (record_full_memory_query): ...this. Update all users.
5038 (record_arch_list_add_reg): Rename to ...
5039 (record_full_arch_list_add_reg): ...this. Update all users.
5040 (record_arch_list_add_mem): Rename to ...
5041 (record_full_arch_list_add_mem): ...this. Update all users.
5042 (record_arch_list_add_end): Rename to ...
5043 (record_full_arch_list_add_end): ...this. Update all users.
5044 (record_gdb_operation_disable_set): Rename to ...
5045 (record_full_gdb_operation_disable_set): ...this.
5048 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5050 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
5051 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
5052 (RECORD_IS_REPLAY): Renamed to ...
5053 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
5054 (RECORD_FILE_MAGIC): Renamed to ...
5055 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
5056 (record_mem_entry): Renamed to ...
5057 (record_full_mem_entry): ... this. Updated all users.
5058 (record_reg_entry): Renamed to ...
5059 (record_full_reg_entry): ... this. Updated all users.
5060 (record_end_entry): Renamed to ...
5061 (record_full_end_entry): ... this. Updated all users.
5062 (record_type) <record_end, record_reg, record_mem>: Renamed
5064 (record_full_type) <record_full_end, record_full_reg,
5065 record_full_mem>: ... this. Updated all users.
5066 (record_entry): Renamed to ...
5067 (record_full_entry): ... this. Updated all users.
5068 (record_core_buf_entry): Renamed to ...
5069 (record_full_core_buf_entry): ... this. Updated all users.
5070 (record_core_regbuf): Renamed to ...
5071 (record_full_core_regbuf): ... this. Updated all users.
5072 (record_core_start): Renamed to ...
5073 (record_full_core_start): ... this. Updated all users.
5074 (record_core_end): Renamed to ...
5075 (record_full_core_end): ... this. Updated all users.
5076 (record_core_buf_list): Renamed to ...
5077 (record_full_core_buf_list): ... this. Updated all users.
5078 (record_first): Renamed to ...
5079 (record_full_first): ... this. Updated all users.
5080 (record_list): Renamed to ...
5081 (record_full_list): ... this. Updated all users.
5082 (record_arch_list_head): Renamed to ...
5083 (record_full_arch_list_head): ... this. Updated all users.
5084 (record_arch_list_tail): Renamed to ...
5085 (record_full_arch_list_tail): ... this. Updated all users.
5086 (record_stop_at_limit): Renamed to ...
5087 (record_full_stop_at_limit): ... this. Updated all users.
5088 (record_insn_max_num): Renamed to ...
5089 (record_full_insn_max_num): ... this. Updated all users.
5090 (record_insn_num): Renamed to ...
5091 (record_full_insn_num): ... this. Updated all users.
5092 (record_insn_count): Renamed to ...
5093 (record_full_insn_count): ... this. Updated all users.
5094 (record_ops): Renamed to ...
5095 (record_full_ops): ... this. Updated all users.
5096 (record_core_ops): Renamed to ...
5097 (record_full_core_ops): ... this. Updated all users.
5098 (set_record_cmdlist): Renamed to ...
5099 (set_record_full_cmdlist): ... this. Updated all users.
5100 (show_record_cmdlist): Renamed to ...
5101 (show_record_full_cmdlist): ... this. Updated all users.
5102 (record_cmdlist): Renamed to ...
5103 (record_full_cmdlist): ... this. Updated all users.
5104 (record_beneath_to_resume_ops): Renamed to ...
5105 (record_full_beneath_to_resume_ops): ... this. Updated all users.
5106 (record_beneath_to_resume): Renamed to ...
5107 (record_full_beneath_to_resume): ... this. Updated all users.
5108 (record_beneath_to_wait_ops): Renamed to ...
5109 (record_full_beneath_to_wait_ops): ... this. Updated all users.
5110 (record_beneath_to_wait): Renamed to ...
5111 (record_full_beneath_to_wait): ... this. Updated all users.
5112 (record_beneath_to_store_registers_ops): Renamed to ...
5113 (record_full_beneath_to_store_registers_ops): ... this.
5115 (record_beneath_to_store_registers): Renamed to ...
5116 (record_full_beneath_to_store_registers): ... this.
5118 (record_beneath_to_xfer_partial_ops): Renamed to ...
5119 (record_full_beneath_to_xfer_partial_ops): ... this.
5121 (record_beneath_to_xfer_partial): Renamed to ...
5122 (record_full_beneath_to_xfer_partial): ... this.
5124 (record_beneath_to_insert_breakpoint): Renamed to ...
5125 (record_full_beneath_to_insert_breakpoint): ... this.
5127 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
5128 (record_full_beneath_to_stopped_by_watchpoint): ... this.
5130 (record_beneath_to_stopped_data_address): Renamed to ...
5131 (record_full_beneath_to_stopped_data_address): ... this.
5133 (record_beneath_to_async): Renamed to ...
5134 (record_full_beneath_to_async): ... this. Updated all users.
5135 (record_goto_insn): Renamed to ...
5136 (record_full_goto_insn): ... this. Updated all users.
5137 (record_save): Renamed to ...
5138 (record_full_save): ... this. Updated all users.
5139 (record_reg_alloc): Renamed to ...
5140 (record_full_reg_alloc): ... this. Updated all users.
5141 (record_reg_release): Renamed to ...
5142 (record_full_reg_release): ... this. Updated all users.
5143 (record_mem_alloc): Renamed to ...
5144 (record_full_mem_alloc): ... this. Updated all users.
5145 (record_mem_release): Renamed to ...
5146 (record_full_mem_release): ... this. Updated all users.
5147 (record_end_alloc): Renamed to ...
5148 (record_full_end_alloc): ... this. Updated all users.
5149 (record_end_release): Renamed to ...
5150 (record_full_end_release): ... this. Updated all users.
5151 (record_entry_release): Renamed to ...
5152 (record_full_entry_release): ... this. Updated all users.
5153 (record_list_release): Renamed to ...
5154 (record_full_list_release): ... this. Updated all users.
5155 (record_list_release_following): Renamed to ...
5156 (record_full_list_release_following): ... this.
5158 (record_list_release_first): Renamed to ...
5159 (record_full_list_release_first): ... this. Updated all users.
5160 (record_arch_list_add): Renamed to ...
5161 (record_full_arch_list_add): ... this. Updated all users.
5162 (record_get_loc): Renamed to ...
5163 (record_full_get_loc): ... this. Updated all users.
5164 (record_check_insn_num): Renamed to ...
5165 (record_full_check_insn_num): ... this. Updated all users.
5166 (record_arch_list_cleanups): Renamed to ...
5167 (record_full_arch_list_cleanups): ... this. Updated all users.
5168 (record_message): Renamed to ...
5169 (record_full_message): ... this. Updated all users.
5170 (record_message_wrapper): Renamed to ...
5171 (record_full_message_wrapper): ... this. Updated all users.
5172 (record_message_wrapper_safe): Renamed to ...
5173 (record_full_message_wrapper_safe): ... this. Updated all users.
5174 (record_gdb_operation_disable): Renamed to ...
5175 (record_full_gdb_operation_disable): ... this. Updated all users.
5176 (record_hw_watchpoint): Renamed to ...
5177 (record_full_hw_watchpoint): ... this. Updated all users.
5178 (record_exec_insn): Renamed to ...
5179 (record_full_exec_insn): ... this. Updated all users.
5180 (record_restore): Renamed to ...
5181 (record_full_restore): ... this. Updated all users.
5182 (record_async_inferior_event_token): Renamed to ...
5183 (record_full_async_inferior_event_token): ... this.
5185 (record_async_inferior_event_handler): Renamed to ...
5186 (record_full_async_inferior_event_handler): ... this.
5188 (record_core_open_1): Renamed to ...
5189 (record_full_core_open_1): ... this. Updated all users.
5190 (record_open_1): Renamed to ...
5191 (record_full_open_1): ... this. Updated all users.
5192 (record_open): Renamed to ...
5193 (record_full_open): ... this. Updated all users.
5194 (record_close): Renamed to ...
5195 (record_full_close): ... this. Updated all users.
5196 (record_resume_step): Renamed to ...
5197 (record_full_resume_step): ... this. Updated all users.
5198 (record_resumed): Renamed to ...
5199 (record_full_resumed): ... this. Updated all users.
5200 (record_execution_dir): Renamed to ...
5201 (record_full_execution_dir): ... this. Updated all users.
5202 (record_resume): Renamed to ...
5203 (record_full_resume): ... this. Updated all users.
5204 (record_get_sig): Renamed to ...
5205 (record_full_get_sig): ... this. Updated all users.
5206 (record_sig_handler): Renamed to ...
5207 (record_full_sig_handler): ... this. Updated all users.
5208 (record_wait_cleanups): Renamed to ...
5209 (record_full_wait_cleanups): ... this. Updated all users.
5210 (record_wait_1): Renamed to ...
5211 (record_full_wait_1): ... this. Updated all users.
5212 (record_wait): Renamed to ...
5213 (record_full_wait): ... this. Updated all users.
5214 (record_stopped_by_watchpoint): Renamed to ...
5215 (record_full_stopped_by_watchpoint): ... this. Updated all users.
5216 (record_disconnect): Renamed to ...
5217 (record_full_disconnect): ... this. Updated all users.
5218 (record_detach): Renamed to ...
5219 (record_full_detach): ... this. Updated all users.
5220 (record_mourn_inferior): Renamed to ...
5221 (record_full_mourn_inferior): ... this. Updated all users.
5222 (record_kill): Renamed to ...
5223 (record_full_kill): ... this. Updated all users.
5224 (record_stopped_data_address): Renamed to ...
5225 (record_full_stopped_data_address): ... this. Updated all users.
5226 (record_registers_change): Renamed to ...
5227 (record_full_registers_change): ... this. Updated all users.
5228 (record_store_registers): Renamed to ...
5229 (record_full_store_registers): ... this. Updated all users.
5230 (record_xfer_partial): Renamed to ...
5231 (record_full_xfer_partial): ... this. Updated all users.
5232 (record_breakpoint): Renamed to ...
5233 (record_full_breakpoint): ... this. Updated all users.
5234 (record_breakpoint_p): Renamed to ...
5235 (record_full_breakpoint_p): ... this. Updated all users.
5236 (record_breakpoints): Renamed to ...
5237 (record_full_breakpoints): ... this. Updated all users.
5238 (record_sync_record_breakpoints): Renamed to ...
5239 (record_full_sync_record_breakpoints): ... this.
5241 (record_init_record_breakpoints): Renamed to ...
5242 (record_full_init_record_breakpoints): ... this.
5244 (record_insert_breakpoint): Renamed to ...
5245 (record_full_insert_breakpoint): ... this. Updated all users.
5246 (record_remove_breakpoint): Renamed to ...
5247 (record_full_remove_breakpoint): ... this. Updated all users.
5248 (record_can_execute_reverse): Renamed to ...
5249 (record_full_can_execute_reverse): ... this. Updated all users.
5250 (record_get_bookmark): Renamed to ...
5251 (record_full_get_bookmark): ... this. Updated all users.
5252 (record_goto_bookmark): Renamed to ...
5253 (record_full_goto_bookmark): ... this. Updated all users.
5254 (record_async): Renamed to ...
5255 (record_full_async): ... this. Updated all users.
5256 (record_can_async_p): Renamed to ...
5257 (record_full_can_async_p): ... this. Updated all users.
5258 (record_is_async_p): Renamed to ...
5259 (record_full_is_async_p): ... this. Updated all users.
5260 (record_execution_direction): Renamed to ...
5261 (record_full_execution_direction): ... this. Updated all users.
5262 (record_info): Renamed to ...
5263 (record_full_info): ... this. Updated all users.
5264 (record_delete): Renamed to ...
5265 (record_full_delete): ... this. Updated all users.
5266 (record_is_replaying): Renamed to ...
5267 (record_full_is_replaying): ... this. Updated all users.
5268 (record_goto_entry): Renamed to ...
5269 (record_full_goto_entry): ... this. Updated all users.
5270 (record_goto_begin): Renamed to ...
5271 (record_full_goto_begin): ... this. Updated all users.
5272 (record_goto_end): Renamed to ...
5273 (record_full_goto_end): ... this. Updated all users.
5274 (record_goto): Renamed to ...
5275 (record_full_goto): ... this. Updated all users.
5276 (init_record_ops): Renamed to ...
5277 (init_record_full_ops): ... this. Updated all users.
5278 (record_core_resume): Renamed to ...
5279 (record_full_core_resume): ... this. Updated all users.
5280 (record_core_kill): Renamed to ...
5281 (record_full_core_kill): ... this. Updated all users.
5282 (record_core_fetch_registers): Renamed to ...
5283 (record_full_core_fetch_registers): ... this. Updated all users.
5284 (record_core_prepare_to_store): Renamed to ...
5285 (record_full_core_prepare_to_store): ... this. Updated all users.
5286 (record_core_store_registers): Renamed to ...
5287 (record_full_core_store_registers): ... this. Updated all users.
5288 (record_core_xfer_partial): Renamed to ...
5289 (record_full_core_xfer_partial): ... this. Updated all users.
5290 (record_core_insert_breakpoint): Renamed to ...
5291 (record_full_core_insert_breakpoint): ... this. Updated all users.
5292 (record_core_remove_breakpoint): Renamed to ...
5293 (record_full_core_remove_breakpoint): ... this. Updated all users.
5294 (record_core_has_execution): Renamed to ...
5295 (record_full_core_has_execution): ... this. Updated all users.
5296 (init_record_core_ops): Renamed to ...
5297 (init_record_full_core_ops): ... this. Updated all users.
5298 (cmd_record_restore): Renamed to ...
5299 (cmd_record_full_restore): ... this. Updated all users.
5300 (record_save_cleanups): Renamed to ...
5301 (record_full_save_cleanups): ... this. Updated all users.
5302 (cmd_record_start): Renamed to ...
5303 (cmd_record_full_start): ... this. Updated all users.
5304 (set_record_insn_max_num): Renamed to ...
5305 (set_record_full_insn_max_num): ... this. Updated all users.
5306 (set_record_command): Renamed to ...
5307 (set_record_full_command): ... this. Updated all users.
5308 (show_record_command): Renamed to ...
5309 (show_record_full_command): ... this. Updated all users.
5310 (_initialize_record): Renamed to ...
5311 (_initialize_record_full): ... this. Updated all users.
5313 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5315 * record.h: Split into this and ...
5316 * record-full.h: ... this.
5317 * record.c: Split into this and ...
5318 * record-full.c: ... this.
5319 * target.h (target_ops): Add new fields to_info_record,
5320 to_save_record, to_delete_record, to_record_is_replaying,
5321 to_goto_record_begin, to_goto_record_end, to_goto_record.
5322 (target_info_record): New.
5323 (target_save_record): New.
5324 (target_supports_delete_record): New.
5325 (target_delete_record): New.
5326 (target_record_is_replaying): New.
5327 (target_goto_record_begin): New.
5328 (target_goto_record_end): New.
5329 (target_goto_record): New.
5330 * target.c (target_info_record): New.
5331 (target_save_record): New.
5332 (target_supports_delete_record): New.
5333 (target_delete_record): New.
5334 (target_record_is_replaying): New.
5335 (target_goto_record_begin): New.
5336 (target_goto_record_end): New.
5337 (target_goto_record): New.
5338 * record.h: Declare struct cmd_list_element.
5339 (record_cmdlist): New declaration.
5340 (set_record_cmdlist): New declaration.
5341 (show_record_cmdlist): New declaration.
5342 (info_record_cmdlist): New declaration.
5343 (cmd_record_goto): New declaration.
5344 * record.c: Remove unnecessary includes.
5346 (cmd_record_goto): Remove declaration.
5347 (record_cmdlist): Now extern. Initialize.
5348 (set_record_cmdlist): Now extern. Initialize.
5349 (show_record_cmdlist): Now extern. Initialize.
5350 (info_record_cmdlist): Now extern. Initialize.
5351 (find_record_target): New.
5352 (require_record_target): New.
5353 (cmd_record_start): Update.
5354 (cmd_record_delete): Remove target-specific code.
5355 Call target_delete_record.
5356 (cmd_record_stop): Unpush any record target.
5357 (set_record_insn_max_num): Move to record-full.c
5358 (set_record_command): Add comment.
5359 (show_record_command): Add comment.
5360 (info_record_command): Update comment.
5361 Remove target-specific code.
5362 Call the record target's to_info_record.
5363 (cmd_record_start): New.
5364 (cmd_record_goto): Now extern.
5365 Remove target-specific code.
5366 Call target_goto_begin, target_goto_end, or target_goto.
5367 (_initialize_record): Move record target ops initialization to
5369 Change "record" command help text.
5370 Move "record restore", "record set", and "record show" commands to
5372 * Makefile.in (SFILES): Add record-full.c.
5373 (HFILES_NO_SRCDIR): Add record-full.h.
5374 (COMMON_OBS): Add record-full.o.
5375 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
5376 * arm-tdep.c: Include record-full.h.
5377 * i386-linux-tdep.c: Include record-full.h instead of record.h.
5378 * i386-tdep.c: Include record-full.h.
5379 * infrun.c: Include record-full.h.
5380 * linux-record.c: Include record-full.h.
5381 * moxie-tdep.c: Include record-full.h.
5382 * record-full.c: Include record-full.h.
5383 Change module comment.
5384 (set_record_full_cmdlist): New.
5385 (show_record_full_cmdlist): New.
5386 (record_full_cmdlist): New.
5387 (record_goto_insn): New declaration.
5388 (record_save): New declaration.
5389 (record_check_insn_num): Change query string.
5391 (record_delete): New.
5392 (record_is_replaying): New.
5393 (record_goto_entry): New.
5394 (record_goto_begin): New.
5395 (record_goto_end): New.
5397 (init_record_ops): Update.
5398 (init_record_core_ops): Update.
5399 (cmd_record_save): Rename to record_save. Remove target and arg checks.
5400 (cmd_record_start): New.
5401 (set_record_insn_max_num): Moved from record.c
5402 (set_record_full_command): New.
5403 (show_record_full_command): New.
5404 (_initialize_record_full): New.
5406 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5408 * target.h (add_deprecated_target_alias): New.
5409 * target.c (add_deprecated_target_alias): New.
5411 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5413 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
5415 (linux_supports_btrace): Add kernel and
5417 (kernel_supports_btrace): New function.
5418 (cpu_supports_btrace): New function.
5419 (intel_supports_btrace): New function.
5421 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5423 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
5424 * remote.c: Include btrace.h.
5425 (struct btrace_target_info): New struct.
5426 (remote_supports_btrace): New function.
5427 (send_Qbtrace): New function.
5428 (remote_enable_btrace): New function.
5429 (remote_disable_btrace): New function.
5430 (remote_teardown_btrace): New function.
5431 (remote_read_btrace): New function.
5432 (init_remote_ops): Add btrace ops.
5433 (enum <unnamed>): Add btrace packets.
5434 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
5435 (_initialize_remote): Add packet configuration for branch tracing.
5437 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5439 * features/btrace.dtd: New file.
5440 * Makefile.in (XMLFILES): Add btrace.dtd.
5441 * btrace.h (parse_xml_btrace): New declaration.
5442 * btrace.c: Include xml-support.h.
5443 (parse_xml_btrace): New function.
5444 (parse_xml_btrace_block): New function.
5445 (block_attributes): New struct.
5446 (btrace_attributes): New struct.
5447 (btrace_children): New struct.
5448 (btrace_elements): New struct.
5450 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5452 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
5453 (amd64_linux_enable_btrace): New.
5454 (amd64_linux_disable_btrace): New.
5455 (amd64_linux_teardown_btrace): New.
5456 (_initialize_amd64_linux_nat): Initialize btrace ops.
5457 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
5458 (i386_linux_enable_btrace): New.
5459 (i386_linux_disable_btrace): New.
5460 (i386_linux_teardown_btrace): New.
5461 (_initialize_i386_linux_nat): Initialize btrace ops.
5462 * config/i386/linux.mh: Add linux-btrace.o.
5463 * config/i386/linux64.mh: Add linux-btrace.o.
5465 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5467 * common/linux_btrace.h: New file.
5468 * common/linux_btrace.c: New file.
5469 * Makefile.in (SFILES): Add btrace.c.
5470 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
5471 (COMMON_OBS): Add btrace.o.
5472 (linux-btrace.o): New rule.
5474 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5476 * target.h: Include btrace.h.
5477 (struct target_ops) <to_supports_btrace, to_enable_btrace,
5478 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
5479 * target.c (target_supports_btrace): New function.
5480 (target_enable_btrace): New function.
5481 (target_disable_btrace): New function.
5482 (target_teardown_btrace): New function.
5483 (target_read_btrace): New function.
5484 * btrace.h: New file.
5485 * btrace.c: New file.
5486 * Makefile.in: Add btrace.c.
5487 * gdbthread.h: Include btrace.h.
5488 (struct thread_info): Add btrace field.
5489 * thread.c: Include btrace.h.
5490 (clear_thread_inferior_resources): Call target_teardown_btrace.
5491 * common/btrace-common.h: New file.
5493 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5495 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
5496 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
5497 kill_status to outer block.
5499 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5501 Fix entry-values if the callee called a noreturn function.
5502 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5503 get_frame_address_in_block. Add new comment.
5505 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5507 Fix entry-values in C++ across CUs.
5508 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
5509 lookup_minimal_symbol. Add a comment.
5511 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
5514 2013-03-08 Yao Qi <yao@codesourcery.com>
5516 * tracepoint.c (_initialize_tracepoint): Indent the code.
5518 2013-03-08 Pedro Alves <palves@redhat.com>
5520 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
5521 (parse_find_args, find_command): Change type of pattern buffer
5522 locals to 'gdb_byte *'.
5524 2013-03-08 Stan Shebs <stan@codesourcery.com>
5525 Hafiz Abid Qadeer <abidh@codesourcery.com>
5527 * NEWS: Mention set and show trace-buffer-size commands.
5529 * target.h (struct target_ops): New method
5530 to_set_trace_buffer_size.
5531 (target_set_trace_buffer_size): New macro.
5532 * target.c (update_current_target): Set up new method.
5533 * tracepoint.c (trace_buffer_size): New global.
5534 (start_tracing): Send it to the target.
5535 (set_trace_buffer_size): New function.
5536 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
5537 * remote.c (remote_set_trace_buffer_size): New function.
5538 (_initialize_remote): Use it.
5539 (QTBuffer:size) New remote command.
5540 (PACKET_QTBuffer_size): New enum.
5541 (remote_protocol_features): Add an entry for
5542 PACKET_QTBuffer_size.
5544 2013-03-08 Tom Tromey <tromey@redhat.com>
5546 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
5549 2013-03-07 Pedro Alves <palves@redhat.com>
5551 * target.c (target_read_stralloc, target_fileio_read_alloc):
5552 *Cast pointer to 'gdb_byte *' in target call.
5554 2013-03-07 Pedro Alves <palves@redhat.com>
5556 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
5559 2013-03-07 Keith Seitz <keiths@redhat.com>
5561 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
5562 (trace_pass_command): Likewise.
5563 * cli/cli-cmds.c: Include cli/cli-utils.h.
5564 (source_command): Use skip-spaces.
5565 (disassemble_command): Likewise.
5566 * findcmd.c: Include cli/cli-utils.h.
5567 (parse_find_args): Use skip_spaces.
5568 * go32-nat.c: Include cli/cli-utils.h.
5569 (go32_sldt): Use skip_spaces.
5570 (go32_sgdt): Likewise.
5571 (go32_sidt): Likewise.
5572 (go32_pde): Likewise.
5573 (go32_pte): Likewise.
5574 (go32_pte_for_address): Likewise.
5575 * infcmd.c: Include cli/cli-utils.h.
5576 (registers_info): Use skip_spaces.
5577 * linux-tdep.c (read_mapping): Use skip_spaces_const.
5578 (linux_info_proc): Likewise.
5579 * linux-thread-db.c: Include cli/cli-utils.h.
5580 (info_auto_load_libthread_db): Use skip_spaces_const.
5581 * m32r-rom.c: Include cli/cli-utils.h.
5582 (m32r_upload_command): Use skip_spaces.
5583 * maint.c: Include cli/cli-utils.h.
5584 (maintenance_translate_address): Use skip_spaces.
5585 * mi/mi-parse.c: Include cli/cli-utils.h.
5586 (mi_parse_argv): Use skip_spaces.
5587 (mi_parse): Likewise.
5588 * minsyms.c: Include cli/cli-utils.h.
5589 (msymbol_hash_iw): Use skip_spaces_const.
5590 * objc-lang.c: Include cli/cli-utils.h.
5591 (parse_selector): Use skip_spaces.
5592 (parse_method): Likewise.
5593 * python/python.c: Include cli/cli-utils.h.
5594 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
5595 (python_command)[HAVE_PYTHON]: Likewise.
5596 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
5597 * remote-m32r-sdi.c: Include cli/cli-utils.h.
5598 (m32r_load): Use skip_spaces.
5599 * serial.c: Include cli/cli-utils.h.
5600 (serial_open): Use skip_spaces_const.
5601 * stack.c: Include cli/cli-utils.h.
5602 (parse_frame_specification_1): Use skip_spaces_const.
5603 * symfile.c: Include cli/cli-utils.h.
5604 (set_ext_lang_command): Use skip_spaces.
5605 * symtab.c: Include cli/cli-utils.h.
5606 (rbreak_command): Use skip_spaces.
5607 * thread.c (thread_name_command): Use skip_spaces.
5608 * tracepoint.c (validate_actionline): Use skip_spaces.
5609 (encode_actions_1): Likewise.
5610 (trace_find_range_command): Likewise.
5611 (trace_find_outside_command): Likewise.
5612 (trace_dump_actions): Likewise.
5614 2013-03-07 Pedro Alves <palves@redhat.com>
5616 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
5617 * expprint.c (print_subexp_standard): Likewise.
5618 * utils.c (host_char_to_target): Likewise.
5619 * valprint.c (generic_emit_char, generic_printstr): Likewise.
5620 * varobj.c (value_get_print_value): Change type of local to char*.
5621 Cast it gdb_byte * in call to language printer.
5623 2013-03-07 Pedro Alves <palves@redhat.com>
5625 * charset.c (struct wchar_iterator) <input>: Change type to 'const
5627 (make_wchar_iterator): Remove cast to char*.
5628 (wchar_iterate): Change type of local.
5630 2013-03-07 Pedro Alves <palves@redhat.com>
5632 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
5633 for 'regcache->register_status'.
5635 2013-03-07 Pedro Alves <palves@redhat.com>
5637 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
5640 2013-03-07 Pedro Alves <palves@redhat.com>
5642 * stap-probe.c (handle_stap_probe): Add cast to char*.
5644 2013-03-07 Pedro Alves <palves@redhat.com>
5646 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
5647 RECORD_MSGRCV>: Pass a signed variable to
5648 regcache_raw_read_signed, instead of an unsigned one.
5650 2013-03-07 Pedro Alves <palves@redhat.com>
5652 * remote-notif.c (notif_debug): Change type to int.
5653 * remote-notif.h (notif_debug): Likewise.
5655 2013-03-07 Pedro Alves <palves@redhat.com>
5657 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
5659 2013-03-07 Pedro Alves <palves@redhat.com>
5661 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
5662 * remote.h (hex2bin, bin2hex): ... here.
5663 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
5665 2013-03-07 Eli Zaretskii <eliz@gnu.org>
5667 * utils.c (initialize_utils): Improve doc strings of "set/show
5668 width", "set/show height", and "set/show pagination".
5670 2013-03-06 Keith Seitz <keiths@redhat.com>
5672 * ax-gdb.c (gen_printf): Make FORMAT const.
5673 * ax-gdb.h (gen_printf): Likewise.
5674 * ax-general.c (ax_string): Make STR const.
5675 * ax.h (ax_string): Likewise.
5677 2013-03-06 Doug Evans <dje@google.com>
5679 * elfread.c (elf_symfile_read): Move debugging printf to more
5682 2013-03-06 Pedro Alves <palves@redhat.com>
5684 * python/py-utils.c (target_string_to_unicode): Delete function.
5685 * python/python-internal.h (target_string_to_unicode): Delete
5688 2013-03-06 Pierre Muller <muller@sourceware.org>
5690 * linespec.c (get_current_search_block): ARI fix, use (void)
5691 for empty parameter list.
5693 2013-03-05 Doug Evans <dje@google.com>
5695 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
5696 of old ada_lookup_symbol_list. In !full_search case, don't
5698 (ada_lookup_symbol_list): Delete arg full_search, all callers
5699 updated. Call ada_lookup_symbol_list_worker.
5700 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
5701 * ada-lang.h (ada_lookup_symbol_list): Update.
5702 * language.h (language_defn): Update comment for
5703 la_iterate_over_symbols.
5704 * linespec.c (iterate_over_file_blocks): New function.
5705 (iterate_over_all_matching_symtabs): Call it.
5706 (lookup_prefix_sym): Ditto.
5707 (get_current_search_block): New function.
5708 (get_search_block): Delete.
5709 (find_label_symbols): Call get_current_search_block.
5710 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
5711 * symtab.c (iterate_over_symbols): Don't search superblocks.
5713 2013-03-05 Yao Qi <yao@codesourcery.com>
5715 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
5716 parameter VAR's type from "unsigned int" to "int".
5717 * command.h (var_zuinteger_unlimited): Update its comments.
5718 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
5720 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
5722 * NEWS: Mention new target x86_64-*-cygwin*.
5724 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
5726 * configure.host: Add x86_64-*-cygwin* as host.
5727 * configure.tgt: Add x86_64-*-cygwin* as target.
5728 * config/i386/cygwin64.mh: New file.
5730 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5732 * linespec.c (decode_line_2): Fix duplicate request off by two message.
5734 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5736 * linespec.c (struct linespec_canonical_name): New.
5737 (struct linespec_state): Change canonical_names type to it.
5738 (add_sal_to_sals): Change variable canonical_name to canonical. Change
5739 xrealloc element size. Initialize the different CANONICAL fields.
5740 (canonical_to_fullform): New.
5741 (filter_results): Use it. Add variables canonical, fullform and
5743 (struct decode_line_2_item, decode_line_2_compare_items): New.
5744 (decode_line_2): Remove variables iter and item_names, add variables
5745 items and items_count. Modify the code for these new variables.
5747 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
5749 * coff-pe-read.c (read_pe_exported_syms): Don't return without
5752 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
5754 * tracepoint.c (build_traceframe_info): Add code for byte order.
5756 2013-03-02 Kevin Buettner <kevinb@redhat.com>
5758 * v850-tdep.c: (v850e2_register_name): Revise system register
5759 names to match current V850E2M architecture specifications.
5760 Update register number enum comments too.
5762 2013-03-01 Jiong Wang <jiwang@tilera.com>
5763 Pedro Alves <palves@redhat.com>
5765 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
5767 (tilegx_skip_prologue): Limit prologue analysis to section end.
5769 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5771 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
5774 2013-03-01 Pedro Alves <palves@redhat.com>
5776 Use gdb_byte for bytes from the program being debugged.
5778 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
5779 Change type of local 'buf' to gdb_byte.
5780 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
5781 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
5782 * cris-tdep.c (cris_sigcontext_addr)
5783 (cris_sigtramp_frame_unwind_cache): Likewise.
5784 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
5785 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
5787 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
5788 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
5789 (hppa32_hpux_search_dummy_call_sequence)
5790 (hppa_hpux_supply_save_state): Likewise.
5791 * hppa-linux-tdep.c (insns_match_pattern)
5792 (hppa_linux_find_global_pointer): Likewise.
5793 * hppa-tdep.c (hppa_in_function_epilogue_p)
5794 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5795 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
5796 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
5797 (i386fbsd_collect_uthread): Likewise.
5798 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
5799 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
5800 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
5801 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
5802 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
5803 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
5804 (ia64_libunwind_frame_prev_register)
5805 (ia64_libunwind_sigtramp_frame_this_id)
5806 (ia64_find_global_pointer_from_dynamic_section)
5807 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
5808 (ia64_unwind_pc): Likewise.
5809 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
5810 * m68hc11-tdep.c (m68hc11_push_dummy_call)
5811 (m68hc11_extract_return_value): Likewise.
5812 * m68klinux-nat.c (fetch_register, store_register): Likewise.
5813 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
5814 (mep_get_insn, mep_push_dummy_call): Likewise.
5815 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5816 (mips_linux_in_dynsym_stub): Likewise.
5817 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
5818 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5819 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
5821 * remote-mips.c (mips_set_register): Likewise.
5822 * remote-sim.c (gdbsim_fetch_register): Likewise.
5823 * score-tdep.c (score7_fetch_inst): Change type of parameter
5824 'memblock' and local 'buf' to gdb_byte.
5825 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
5826 Change type of local 'buf' to gdb_byte. Adjust.
5827 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
5829 (score7_analyze_prologue): Change type of 'memblock' and
5830 'memblock_ptr' locals to gdb_byte*.
5831 * sh64-tdep.c (sh64_extract_return_value)
5832 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
5833 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
5834 * solib-pa64.c (pa64_solib_create_inferior_hook)
5835 (pa64_open_symbol_file_object): Remove local 'buf'.
5836 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
5837 (som_open_symbol_file_object): Likewise.
5838 * solib-spu.c (spu_current_sos): Likewise.
5839 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5840 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
5841 (spu_store_registers): Likewise.
5842 * target.c (debug_print_register): Likewise.
5843 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
5844 * xstormy16-tdep.c (xstormy16_store_return_value)
5845 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
5846 (xstormy16_find_jmp_table_entry): Likewise.
5848 2013-03-01 Jiong Wang <jiwang@tilera.com>
5850 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
5851 (tilegx_gdbarch_init): Install it.
5853 2013-02-28 Tom Tromey <tromey@redhat.com>
5855 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
5858 2013-02-28 Doug Evans <dje@google.com>
5860 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
5861 * python/python.c (gdbpy_find_pc_line): Ditto.
5863 2013-02-28 Tom Tromey <tromey@redhat.com>
5865 * contrib/excheck.py: New file.
5866 * contrib/exsummary.py: New file.
5867 * contrib/gcc-with-excheck: New file.
5869 2013-02-28 Tom Tromey <tromey@redhat.com>
5871 * python/python.c (gdbpy_print_stack): Call begin_line and
5872 fprintf_filtered inside TRY_CATCH.
5874 2013-02-28 Tom Tromey <tromey@redhat.com>
5876 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
5879 2013-02-28 Tom Tromey <tromey@redhat.com>
5881 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
5882 frame_object_to_frame_info inside TRY_CATCH.
5884 2013-02-28 Tom Tromey <tromey@redhat.com>
5886 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
5889 2013-02-28 Tom Tromey <tromey@redhat.com>
5891 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
5893 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
5895 * windows-nat.c: Throughout, fix format strings and casts of
5896 printf-like functions to avoid type related warnings on all
5898 (handle_output_debug_string): Fetch context information address
5899 from debug string using string_to_core_addr.
5901 2013-02-27 Jiong Wang <jiwang@tilera.com>
5903 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
5904 * regformats/reg-tilegx32.dat: New.
5906 2013-02-27 Jiong Wang <jiwang@tilera.com>
5908 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
5910 2013-02-27 Jiong Wang <jiwang@tilera.com>
5912 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
5914 2013-02-27 Yao Qi <yao@codesourcery.com>
5915 Pedro Alves <palves@redhat.com>
5917 * tracepoint.c (tfile_trace_find): For tfind
5918 pc/tp/range/outside, look for the next trace frame instead of
5919 always starting from frame 0.
5921 2013-02-26 Anthony Green <green@moxielogic.com>
5923 * configure.tgt: Add support for moxie-*-rtems* target.
5925 2013-02-25 Pedro Alves <palves@redhat.com>
5927 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
5930 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5932 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
5933 if $fp is used as the virtual frame pointer.
5935 2013-02-23 Alan Modra <amodra@gmail.com>
5937 * elfread.c (elf_symtab_read): Do not use udata.p here to find
5939 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
5940 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
5941 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
5942 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
5944 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5947 * elfread.c (build_id_bfd_get): Make the return type const.
5948 (build_id_verify): Make the check parameter const.
5949 (build_id_to_debug_filename): Make the build_id parameter and variable
5951 (find_separate_debug_file_by_buildid): Make the variable build_id const.
5953 2013-02-21 Alan Modra <amodra@gmail.com>
5955 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
5957 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
5959 Add a new method 'disassemble' to gdb.Architecture class.
5960 * python/py-arch.c (archpy_disassmble): Implementation of the
5961 new method gdb.Architecture.disassemble.
5962 (arch_object_methods): Add entry for the new method.
5964 2013-02-20 Jiong Wang <jiwang@tilera.com>
5966 * MAINTAINERS (Write After Approval): Add myself to the list.
5968 2013-02-19 Pedro Alves <palves@redhat.com>
5970 Garbage collect 'struct monitor_ops'::load_routine.
5972 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
5973 * monitor.c (monitor_load): No longer call
5974 current_monitor->load_routine.
5975 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
5976 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
5977 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
5979 2013-02-19 Pedro Alves <palves@redhat.com>
5983 Harmonize with generic_load.
5985 * monitor.c: Include "readline/readline.h".
5986 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
5987 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
5988 long/strtol for the 'load_offset' local. Error out if no argument
5989 is given or if too many arguments are given. Tilde expand the
5990 passed in file name.
5992 2013-02-19 Kai Tietz <ktietz@redhat.com>
5995 * symfile.c (load_section_data): Change type of load_offset
5997 (generic_load): User strtoulst instead of strtoul for conversion
6000 2013-02-19 Jiong Wang <jiwang@tilera.com>
6002 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
6003 for return address, "lr" register, saved on stack.
6004 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
6005 after we invoke tilegx_analyze_prologue.
6007 2013-02-19 Jiong Wang <jiwang@tilera.com>
6009 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
6011 2013-02-19 Jiong Wang <jiwang@tilera.com>
6013 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
6015 2013-02-19 Jiong Wang <jiwang@tilera.com>
6017 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
6018 (tilegx_write_pc): New function.
6019 (tilegx_cannot_reference_register): Return zero if REGNO
6020 is TILEGX_FAULTNUM_REGNUM.
6021 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
6022 (tilegx_register_name): Add handling of "faultnum" register.
6023 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
6024 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
6025 handling of TILEGX_FAULTNUM_REGNUM.
6026 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
6028 2013-02-19 Jiong Wang <jiwang@tilera.com>
6030 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
6031 should be aligned to 64bit.
6033 2013-02-19 Kai Tietz <ktietz@redhat.com>
6035 * windows-nat.c (windows_xfer_memory): Fix debug-output
6038 2013-02-19 Lei Liu <lei.liu2@windriver.com>
6040 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
6041 Don't check DSP register number if HAVE_DSP is not set.
6043 2013-02-19 Alan Modra <amodra@gmail.com>
6045 * elfread.c (struct build_id): Delete. Use struct elf_build_id
6046 throughout file instead.
6047 (build_id_bfd_get): Update to use new elf_tdata build_id field.
6048 Don't xmalloc return value.
6049 (build_id_verify): Similarly. Don't xfree.
6050 (build_id_to_debug_filename): Update.
6051 (find_separate_debug_file_by_buildid): Update, don't xfree.
6053 2013-02-18 Tom Tromey <tromey@redhat.com>
6056 * dwarf2read.c (read_subrange_type): Use result of
6059 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
6061 * frame.c: Remove one extra white space after #include
6064 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6066 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
6068 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6070 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
6071 and dir commands into an if block.
6073 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
6075 * python/py-breakpoint (struct pybp_code): Use int instead of
6078 2013-02-15 Pedro Alves <pedro@codesourcery.com>
6079 Hafiz Abid Qadeer <abidh@codesourcery.com>
6081 * NEWS: Mention new field "trace-file".
6082 * tracepoint.c (trace_status_mi): Output "trace-file" field.
6083 (tfile_open): Record the trace file's filename in the trace
6085 (tfile_files_info): Mention the name of the trace file.
6086 Check the "filename" field explicitely.
6087 (trace_status_command): Explicitely check "filename" field.
6088 (trace_find_command): Ditto.
6089 (trace_find_pc_command): Ditto.
6090 (trace_find_tracepoint_command): Ditto.
6091 (trace_find_line_command): Ditto.
6092 (trace_find_range_command): Ditto.
6093 (trace_find_outside_command): Ditto.
6094 * tracepoint.h (struct trace_status) <from_file>: Rename it
6095 to "filename" and make it hold the trace file's filename
6096 instead of a boolean.
6097 * remote.c (remote_get_trace_status): Initialize "filename"
6098 field with NULL instead of 0.
6100 2013-02-15 Yao Qi <yao@codesourcery.com>
6102 * remote.c: Fix a typo.
6104 2013-02-14 Pierre Muller <muller@sourceware.org>
6106 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
6108 2013-02-14 Pedro Alves <palves@redhat.com>
6110 * utils.c (savestring): Don't #undef it. Move function to
6111 common/common-utils.c.
6112 * common/common-utils.c: Include gdb_string.h.
6113 (savestring): Move here from utils.c.
6114 * common/common-utils.h (savestring): Declare.
6116 2013-02-14 Pedro Alves <palves@redhat.com>
6118 * utils.c (savestring): Rename parameter 'size' to 'len'.
6120 2013-02-14 Pedro Alves <palves@redhat.com>
6121 Yufeng Zhang <yufeng.zhang@arm.com>
6123 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
6124 (aarch64_inferior_data, struct aarch64_inferior_data):
6126 (struct aarch64_process_info): New.
6127 (aarch64_process_list): New global.
6128 (aarch64_find_process_pid, aarch64_add_process)
6129 (aarch64_process_info_get): New functions.
6130 (aarch64_inferior_data_get): Delete.
6131 (aarch64_process_info_get): New function.
6132 (aarch64_forget_process): New function.
6133 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
6134 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
6135 aarch64_get_debug_reg_state.
6136 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
6137 instead of linux_nat_iterate_watchpoint_lwps.
6138 (aarch64_linux_new_fork): New function.
6139 (aarch64_linux_child_post_startup_inferior): Use
6140 aarch64_forget_process instead of aarch64_init_debug_reg_state.
6141 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
6142 (aarch64_linux_remove_hw_breakpoint)
6143 (aarch64_handle_aligned_watchpoint)
6144 (aarch64_handle_unaligned_watchpoint)
6145 (aarch64_linux_insert_watchpoint)
6146 (aarch64_linux_remove_watchpoint)
6147 (aarch64_linux_stopped_data_address): Adjust to pass the current
6148 process id to aarch64_debug_reg_state.
6149 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
6150 linux_nat_new_fork hook, and aarch64_forget_process as
6151 linux_nat_forget_process hook; remove the call to
6152 register_inferior_data_with_cleanup.
6154 2013-02-14 Pedro Alves <palves@redhat.com>
6156 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
6157 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
6160 2013-02-14 Pedro Alves <pedro@codesourcery.com>
6161 Hafiz Abid Qadeer <abidh@codesourcery.com>
6163 * tracepoint.h (validate_trace_state_variable_name): Declare.
6164 * tracepoint.c (validate_trace_state_variable_name): New.
6165 (trace_variable_command): Parse the trace state variable's name
6166 without using parse_expression. Do several validations.
6167 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
6168 trace state variable's name with parse_expression. Validate it.
6170 2013-02-14 Yao Qi <yao@codesourcery.com>
6172 * infcmd.c (breakpoint_proceeded): Remove it.
6174 2013-02-14 Yao Qi <yao@codesourcery.com>
6176 * tracepoint.c (end_actions_pseudocommand): Make it static.
6177 (while_stepping_pseudocommand): Likewise.
6178 * tracepoint.h (end_actions_pseudocommand): Remove the
6180 (while_stepping_pseudocommand): Likewise.
6182 2013-02-14 Yao Qi <yao@codesourcery.com>
6184 * cli/cli-decode.c (help_cmd): Remove the declaration of
6186 (help_all): Likewise.
6188 2013-02-13 Pedro Alves <palves@redhat.com>
6190 * amd64-linux-nat.c (update_debug_registers_callback):
6192 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6194 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
6195 i386_debug_reg_state.
6196 (amd64_linux_new_fork): New function.
6197 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
6198 linux_nat_new_fork hook, and i386_forget_process as
6199 linux_nat_forget_process hook.
6200 * i386-linux-nat.c (update_debug_registers_callback):
6202 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6204 (i386_linux_prepare_to_resume): Pass the lwp's pid to
6205 i386_debug_reg_state.
6206 (i386_linux_new_fork): New function.
6207 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
6208 linux_nat_new_fork hook, and i386_forget_process as
6209 linux_nat_forget_process hook.
6210 * i386-nat.c (i386_init_dregs): Delete.
6211 (i386_inferior_data, struct i386_inferior_data):
6213 (struct i386_process_info): New.
6214 (i386_process_list): New global.
6215 (i386_find_process_pid, i386_add_process, i386_process_info_get):
6217 (i386_inferior_data_get): Delete.
6218 (i386_process_info_get): New function.
6219 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
6220 (i386_forget_process): New function.
6221 (i386_cleanup_dregs): Rewrite.
6222 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
6223 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
6224 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6225 (i386_remove_hw_breakpoint): Adjust to pass the current process id
6226 to i386_debug_reg_state.
6227 (i386_use_watchpoints): Don't register inferior data.
6228 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
6230 (i386_forget_process): Declare.
6231 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
6232 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
6234 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
6235 (add_initial_lwp): New, factored out from ...
6236 (add_lwp): ... this. Don't check the number of lwps before
6237 calling linux_nat_new_thread.
6238 (linux_nat_iterate_watchpoint_lwps): Delete.
6239 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
6240 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
6242 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
6244 (linux_nat_kill, linux_nat_mourn_inferior): Call
6245 linux_nat_forget_process.
6246 (linux_nat_set_new_fork, linux_nat_set_forget_process)
6247 (linux_nat_forget_process): New functions.
6248 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
6250 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
6251 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
6253 (linux_nat_set_new_fork, linux_nat_set_forget_process)
6254 (linux_nat_forget_process): New declarations.
6256 * amd64fbsd-nat.c (super_mourn_inferior): New global.
6257 (amd64fbsd_mourn_inferior): New function.
6258 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
6259 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
6261 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
6263 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6266 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
6268 * aarch64-linux-nat.c (debug_reg_change_callback)
6269 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
6272 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
6274 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
6277 2013-02-13 Pedro Alves <palves@redhat.com>
6278 Hafiz Abid Qadeer <abidh@codesourcery.com>
6280 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
6282 2013-02-12 Tom Tromey <tromey@redhat.com>
6285 * c-exp.y (lex_one_token): Initialize other fields of yylval on
6287 (classify_inner_name): Remove 'first_name' argument, add
6288 'context'. Remove unused variable.
6289 (yylex): Explicitly maintain the context type. Exit loop earlier
6290 if NAME result is seen.
6292 2013-02-12 Pedro Alves <palves@redhat.com>
6294 * amd64-darwin-tdep.c: Add (C) after Copyright.
6295 * cli/cli-cmds.h: Ditto.
6296 * cli/cli-decode.c: Ditto.
6297 * cli/cli-decode.h: Ditto.
6298 * cli/cli-dump.c: Ditto.
6299 * cli/cli-dump.h: Ditto.
6300 * cli/cli-interp.c: Ditto.
6301 * cli/cli-logging.c: Ditto.
6302 * cli/cli-script.c: Ditto.
6303 * cli/cli-script.h: Ditto.
6304 * cli/cli-setshow.c: Ditto.
6305 * cli/cli-setshow.h: Ditto.
6306 * cli/cli-utils.c: Ditto.
6307 * cli/cli-utils.h: Ditto.
6308 * config/alpha/nm-osf3.h: Ditto.
6309 * config/djgpp/djconfig.sh: Ditto.
6310 * config/i386/nm-fbsd.h: Ditto.
6311 * config/i386/nm-i386gnu.h: Ditto.
6312 * config/nm-linux.h: Ditto.
6313 * config/nm-nto.h: Ditto.
6314 * config/rs6000/nm-rs6000.h: Ditto.
6315 * config/sparc/nm-sol2.h: Ditto.
6316 * darwin-nat-info.c: Ditto.
6319 * gdb-demangle.h: Ditto.
6320 * i386-darwin-nat.c: Ditto.
6321 * i386-darwin-tdep.c: Ditto.
6322 * linux-fork.h: Ditto.
6323 * m32c-tdep.c: Ditto.
6324 * microblaze-linux-tdep.c: Ditto.
6325 * microblaze-rom.c: Ditto.
6326 * microblaze-tdep.c: Ditto.
6327 * microblaze-tdep.h: Ditto.
6328 * mips-linux-tdep.h: Ditto.
6329 * ppc-ravenscar-thread.c: Ditto.
6330 * ppc-ravenscar-thread.h: Ditto.
6331 * prologue-value.c: Ditto.
6332 * prologue-value.h: Ditto.
6333 * ravenscar-thread.c: Ditto.
6334 * ravenscar-thread.h: Ditto.
6335 * sparc-ravenscar-thread.c: Ditto.
6336 * sparc-ravenscar-thread.h: Ditto.
6337 * tilegx-linux-tdep.c: Ditto.
6338 * unwind_stop_reasons.def: Ditto.
6339 * windows-nat.h: Ditto.
6340 * xtensa-linux-tdep.c: Ditto.
6341 * xtensa-xtregs.c: Ditto.
6342 * regformats/regdat.sh: Ditto.
6343 * regformats/regdef.h: Ditto.
6345 2013-02-12 Pedro Alves <palves@redhat.com>
6347 * break-catch-sig.c: Update copyright years.
6349 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
6351 Add support for a destructor for ui_out data and use it to
6352 provide a ui_out destructor.
6353 * ui-out.h: Declare the new ui_out destructor.
6354 (ui_out_impl): Add a field for data destructor in ui_out_impl.
6355 * ui-out.c (default_data_destroy): Add a default data destructor
6357 (default_ui_out_impl): Set the new data_destroy field to
6358 default_data_destroy
6359 (uo_data_destroy): Local function which invokes the data
6360 destructor if present.
6361 (clear_table): Local function which clears the table data of a
6363 (ui_out_destroy): Public function which frees a ui_out object.
6364 (ui_out_table_end): Use the new clear_table function.
6365 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
6367 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
6370 2013-02-11 Doug Evans <dje@google.com>
6372 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
6373 (printf_decfloat): New function. Broken out from ui_printf.
6374 Remove unnecessary code to shift the entire format string down.
6375 (printf_pointer): New function.
6376 (ui_printf): Code to print C strings, wide C strings, decfloats,
6377 and pointers moved to separate functions.
6379 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
6381 * valops.c (value_assign): Handling bitfield offset in
6382 `lval_internalvar_component' case.
6384 2013-02-08 Doug Evans <dje@google.com>
6386 * common/format.c (parse_format_string): Fix whitespace.
6388 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
6390 * stack.c (return_command): Work around uninitialized variable
6393 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
6395 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
6396 number of the registers from 36 to 34.
6398 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
6400 * NEWS: Mention new AArch64 native and target support.
6402 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
6404 * MAINTAINERS (Write After Approval): Add myself.
6406 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
6407 Marcus Shawcroft <marcus.shawcroft@arm.com>
6408 Nigel Stephens <nigel.stephens@arm.com>
6409 Yufeng Zhang <yufeng.zhang@arm.com>
6411 * aarch64-linux-nat.c: New file.
6412 * config/aarch64/linux.mh: New file.
6413 * configure.host: Add AArch64.
6414 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
6416 2013-02-07 Doug Evans <dje@google.com>
6418 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
6419 disassemble command.
6421 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
6423 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
6424 set_gdbarch_fetch_tls_load_module_address.
6426 2013-02-06 David S. Miller <davem@davemloft.net>
6428 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
6429 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6430 * value.c (struct_return_convention): New function.
6431 (using_struct_return): Implement in terms of struct_return_convention.
6432 * value.h (struct_return_convention): Declare.
6433 * stack.c (return_command): Allow successful overriding of the return
6434 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6436 2013-02-06 Tom Tromey <tromey@redhat.com>
6438 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
6439 outside of TRY_CATCH.
6441 2013-02-06 Yao Qi <yao@codesourcery.com>
6443 * mi/mi-interp.c: Include "tracepoint.h".
6444 (mi_tsv_modified): Declare.
6445 (mi_tsv_created, mi_tsv_deleted): Update declaration.
6446 (mi_interpreter_init): Call observer_attach_tsv_modified.
6447 (mi_tsv_modified): New.
6448 (mi_tsv_created, mi_tsv_deleted): Update.
6449 * tracepoint.c (trace_variable_command): Call
6450 observer_notify_tsv_modified if the initial value of tsv is
6452 (delete_trace_state_variable): Call
6453 observer_notify_tsv_deleted earlier.
6454 (trace_variable_command): Caller update.
6455 (create_tsv_from_upload): Likewise.
6456 * observer.sh: Declare "struct trace_state_variable".
6458 * NEWS: Mention the new MI notification "=tsv-modified".
6460 2013-02-05 Doug Evans <dje@google.com>
6462 * completer.c (location_completer): Fix typo in comment.
6464 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6466 * breakpoint.c (add_location_to_breakpoint): Insert the location with
6469 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
6471 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
6472 Refactor if statement to avoid trailing || operator.
6474 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
6476 * NEWS: Add PowerPC FreeBSD as a new native configuration.
6478 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
6480 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
6481 * configure.host: Add powerpc*-*-freebsd* target.
6482 * configure.tgt: Add target info for powerpc*-*-freebsd*.
6483 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
6484 * config/powerpc/fbsd.mh: New file.
6486 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
6487 Denys Vlasenko <dvlasenk@redhat.com>
6488 Pedro Alves <palves@redhat.com>
6490 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
6491 (struct elf_internal_linux_prpsinfo): Forward declare.
6492 * gdbarch.h, gdbarch.c: Regenerate.
6493 * linux-tdep.c: Include `cli/cli-utils.h'.
6494 (linux_fill_prpsinfo): New function.
6495 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
6496 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
6497 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
6498 depending on gdbarch pointer bitness.
6499 * ppc-linux-tdep.c: Include elf-bfd.h.
6500 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
6503 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6504 Marcus Shawcroft <marcus.shawcroft@arm.com>
6505 Nigel Stephens <nigel.stephens@arm.com>
6506 Yufeng Zhang <yufeng.zhang@arm.com>
6508 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
6510 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6511 Marcus Shawcroft <marcus.shawcroft@arm.com>
6512 Nigel Stephens <nigel.stephens@arm.com>
6513 Yufeng Zhang <yufeng.zhang@arm.com>
6515 * aarch64-newlib-tdep.c: New file.
6516 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
6518 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
6519 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
6520 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
6521 * osabi.c (gdb_osabi_names): Add "Newlib".
6523 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6524 Marcus Shawcroft <marcus.shawcroft@arm.com>
6525 Nigel Stephens <nigel.stephens@arm.com>
6526 Yufeng Zhang <yufeng.zhang@arm.com>
6528 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
6529 (ALLDEPFILES): Add aarch64-linux-tdep.c.
6530 * aarch64-linux-tdep.c: New file.
6531 * aarch64-linux-tdep.h: New file.
6532 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
6533 * configure.tgt: Add aarch64-none-linux-gnu.
6535 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6536 Marcus Shawcroft <marcus.shawcroft@arm.com>
6537 Nigel Stephens <nigel.stephens@arm.com>
6538 Yufeng Zhang <yufeng.zhang@arm.com>
6540 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
6541 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
6542 (ALLDEPFILES): Add aarch64-tdep.c.
6543 * aarch64-tdep.c: New file.
6544 * aarch64-tdep.h: New file.
6545 * configure.tgt: Add AArch64.
6546 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
6547 (aarch64-expedite): New definition.
6548 * features/aarch64-core.xml: New file.
6549 * features/aarch64-fpu.xml: New file.
6550 * features/aarch64-without-fpu.c: New file (generated).
6551 * features/aarch64-without-fpu.xml: New file.
6552 * features/aarch64.c: New file (generated).
6553 * features/aarch64.xml: New file.
6554 * regformats/aarch64-without-fpu.dat: New file (generated).
6555 * regformats/aarch64.dat: New file (generated).
6557 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6559 * contrib/expect-read1.c: New file.
6560 * contrib/expect-read1.sh: New file.
6562 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6564 * dwarf2read.c (file_file_name): New function with code from
6566 (file_full_name): Move most of the code to file_file_name.
6567 (macro_start_file): Rename variable full_name to file_name and use
6568 file_file_name for it. Add comp_dir parameter to new_macro_table.
6569 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
6570 macro_source_file->filename access by macro_source_fullname call.
6571 * macroscope.c (_initialize_macroscope): Update the new_macro_table
6573 * macrotab.c (struct macro_table): New field comp_dir.
6574 (macro_include): New variables link_fullname and source_fullname.
6575 Replace any macro_source_file->filename access by macro_source_fullname
6577 (macro_lookup_inclusion): Remove the partial filenames checking code.
6578 (check_for_redefinition): New variables source_fullname and
6579 found_key_fullname. Replace any macro_source_file->filename access by
6580 macro_source_fullname call.
6581 (macro_undef): New variables source_fullname and key_fullname. Replace
6582 any macro_source_file->filename access by macro_source_fullname call.
6583 (macro_lookup_definition): New variables retval and source_fullname.
6584 Replace any macro_source_file->filename access by macro_source_fullname
6586 (foreach_macro): New variable key_fullname. Replace any
6587 macro_source_file->filename access by macro_source_fullname call.
6588 (foreach_macro_in_scope): New variable datum_fullname. Replace any
6589 macro_source_file->filename access by macro_source_fullname call.
6590 (new_macro_table): Add parameter comp_dir. Initialize T with it.
6591 (macro_source_fullname): New function.
6592 * macrotab.h (struct macro_source_file): Extent the filename field
6594 (new_macro_table): New parameter comp_dir, add a comment for it.
6595 (macro_source_fullname): new declaration.
6597 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6599 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
6600 this_real_name to outer block. Use it also for
6601 compare_filenames_for_search.
6602 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
6603 with dw2_get_real_path for file_matcher, considering also
6604 BASENAMES_MAY_DIFFER.
6605 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
6607 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6609 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
6610 to the file_matcher parameter. Pass 0 to it.
6611 (dwarf2_create_include_psymtab): Copy also DIRNAME.
6612 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
6613 NULL psymtab_to_fullname result.
6614 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
6615 an expected filename instead.
6616 (expand_symtabs_matching_via_partial): Add basenames parameter to the
6617 file_matcher parameter. Call also psymtab_to_fullname, after newly
6618 considering BASENAMES_MAY_DIFFER.
6619 * source.c (rewrite_source_path): Remove static.
6620 * source.h (rewrite_source_path): New declaration.
6621 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
6622 the expand_symtabs_matching field. Comment it.
6623 * symtab.c (file_matches): New function comment. Add parameter
6624 basenames, implement it.
6625 (search_symbols_file_matches): Add basenames parameter. Update the
6626 file_matches caller.
6627 (search_symbols): Match FILES also against symtab_to_fullname.
6628 Optimize it for BASENAMES_MAY_DIFFER.
6630 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6632 * source.c (print_source_lines_base): Print for TUI also "fullname".
6633 * tui/tui-data.c (init_content_element): Change tui_locator_element
6635 * tui/tui-data.h (struct tui_locator_element): Likewise.
6636 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
6637 tui_update_locator_filename calls to tui_update_locator_fullname.
6638 Replace symtab->filename refererence by symtab_to_fullname call.
6639 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
6640 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
6641 field to full_name. Replace symtab->filename refererence by
6642 symtab_to_fullname call.
6643 (tui_show_symtab_source): Rename parameter to fullname. Change
6644 tui_locator_element field to full_name.
6645 * tui/tui-stack.c: Include source.h.
6646 (tui_set_locator_filename): Rename the declaration to ...
6647 (tui_set_locator_fullname): ... here. Rename its parameter to
6648 fullname, updates its comment.
6649 (tui_set_locator_info): Rename its parameter to fullname.
6650 (tui_set_locator_filename): Rename the definition to ...
6651 (tui_set_locator_fullname): ... here. Rename its parameter to
6652 fullname, updates its comment. Change tui_locator_element field to
6654 (tui_set_locator_info): Rename its parameter to fullname.
6655 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
6656 (tui_update_locator_filename): Rename to ...
6657 (tui_update_locator_fullname): ... here. Rename callee to
6658 tui_set_locator_fullname.
6659 (tui_show_frame_info): Replace symtab->filename refererence by
6660 symtab_to_fullname call.
6661 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
6662 (tui_update_locator_fullname): ... here.
6663 * tui/tui-winsource.c (tui_display_main): Rename the callee to
6664 tui_update_locator_fullname. Replace symtab->filename refererence by
6665 symtab_to_fullname call.
6666 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
6667 Rename the callee to tui_update_locator_fullname.
6668 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
6670 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6672 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
6673 by symtab_to_filename_for_display calls.
6674 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
6675 (clear_command): New variable sal_fullname, initialize it. Replace
6676 compare_filenames_for_search by filename_cmp with sal_fullname.
6677 (say_where, update_static_tracepoint): Replace symtab->filename
6678 refererences by symtab_to_filename_for_display calls.
6679 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
6681 * dwarf2read.c: Include source.h.
6682 (fixup_go_packaging): Replace symtab->filename refererences by
6683 symtab_to_filename_for_display calls.
6684 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
6685 Replace symtab->filename refererences by symtab_to_filename_for_display
6687 (create_sals_line_offset, convert_linespec_to_sals): New variable
6688 fullname, initialize it, replace symtab->filename reference by the
6690 * linux-fork.c: Include source.h.
6691 (info_checkpoints_command): Replace symtab->filename refererences by
6692 symtab_to_filename_for_display calls.
6693 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
6694 by symtab_to_filename_for_display calls.
6695 * mdebugread.c: Include source.h.
6696 (psymtab_to_symtab_1): Replace symtab->filename refererences by
6697 symtab_to_filename_for_display calls.
6698 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
6699 (mi_cmd_file_list_exec_source_files): Likewise.
6700 * printcmd.c: Include source.h.
6701 (build_address_symbolic): Replace symtab->filename refererences by
6702 symtab_to_filename_for_display calls.
6703 * psymtab.c (partial_map_symtabs_matching_filename)
6704 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
6705 with psymtab_to_fullname.
6706 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
6707 by symtab_to_filename_for_display calls.
6708 (stpy_get_filename): New variable filename, initialize it, use instead
6709 of symtab->filename refererences.
6710 (salpy_str): Make variable filename const char *. Replace
6711 symtab->filename refererences by symtab_to_filename_for_display calls.
6712 * skip.c: Include source.h and filenames.h.
6713 (skip_file_command): Remove const from the symtab variable. Replace
6714 symtab->filename refererences by symtab_to_fullname call.
6715 (function_name_is_marked_for_skip): New variables searched_for_fullname
6716 and fullname. Use them to search also with symtab's fullname.
6717 * source.c (find_source_lines): Replace symtab->filename refererences
6718 by symtab_to_filename_for_display calls.
6719 (print_source_lines_base): New variable filename, use it instead of
6720 symtab->filename. Replace symtab->filename refererences by
6721 symtab_to_filename_for_display calls.
6722 (line_info, forward_search_command): Replace symtab->filename
6723 refererences by symtab_to_filename_for_display calls.
6724 (reverse_search_command): Replace symtab->filename refererences by
6725 symtab_to_filename_for_display calls. New variable filename for it.
6726 * stack.c (frame_info): Likewise.
6727 * symmisc.c: Include source.h.
6728 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
6729 (maintenance_info_symtabs): Replace symtab->filename refererences by
6730 symtab_to_filename_for_display calls.
6731 * symtab.c (iterate_over_some_symtabs): Call
6732 compare_filenames_for_search also with symtab_to_fullname.
6733 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
6734 symtab->filename refererences by symtab_to_filename_for_display calls.
6735 (find_line_symtab): Replace symtab->filename refererences by
6736 symtab_to_filename_for_display calls.
6737 (file_matches): Replace filename_cmp by compare_filenames_for_search.
6738 (print_symbol_info): Make the last parameter const char *. New
6739 variable s_filename. Use it in the function.
6740 (symtab_symbol_info): Make the last_filename variable const char *.
6741 Replace symtab->filename refererences by symtab_to_filename_for_display
6743 (rbreak_command): New variable fullname. Use it. Replace
6744 symtab->filename refererence by symtab_to_filename_for_display call.
6745 * tracepoint.c (set_traceframe_context, trace_find_line_command)
6746 (print_one_static_tracepoint_marker): Replace symtab->filename
6747 refererences by symtab_to_filename_for_display calls.
6748 * tui/tui-source.c (tui_set_source_content): New variables filename and
6749 s_filename. Replace symtab->filename refererences by this variable.
6750 Replace other symtab->filename refererences by
6751 symtab_to_filename_for_display calls.
6753 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
6754 Jan Kratochvil <jan.kratochvil@redhat.com>
6756 Add a new variable that controls a way in which filenames are
6758 * NEWS (set filename-display): New entry.
6759 * source.c (filename_display_basename, filename_display_relative)
6760 (filename_display_absolute, filename_display_kind_names)
6761 (filename_display_string, show_filename_display_string)
6762 (symtab_to_filename_for_display): New.
6763 (_initialize_source): Added initialization of 'filename-display'
6765 * source.h (symtab_to_filename_for_display): Added declaration.
6766 * stack.c (print_frame): Added new variable and calling of a new
6767 function and condition with this variable. Changed third argument of
6768 calling of a function.
6770 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6772 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
6773 Rename field reference filename to fullname.
6774 * tui/tui-data.h (struct tui_source_info): Rename field filename to
6775 fullname. New comment for it.
6776 * tui/tui-source.c (tui_set_source_content): Rename field reference
6777 filename to fullname. Initialize field by symtab_to_fullname now.
6778 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
6779 reference filename to fullname. Use symtab_to_fullname during
6782 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6785 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
6786 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
6787 filename to fullname. Rename variable this_name to this_fullname.
6788 Lowercase FILENAME_CMP call.
6789 (dw2_find_symbol_file): New comment for the returned string.
6790 (dwarf2_gdb_index_functions): Rename the function to
6791 dw2_expand_symtabs_with_fullname.
6792 * psymtab.c (read_psymtabs_with_filename): Rename to ...
6793 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
6795 (psym_functions): Rename the function to read_psymtabs_with_fullname.
6796 * symfile.h (struct quick_symbol_functions): Rename field
6797 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
6798 parameter filename to fullname. Document returned string meaning for
6800 * symtab.c (find_line_symtab): Rename the called function to
6801 expand_symtabs_with_fullname.
6803 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6806 * breakpoint.c (clear_command): Remove variable is_abs, unify the
6807 call of filename_cmp with compare_filenames_for_search.
6808 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
6809 is_abs, unify the call of FILENAME_CMP with
6810 compare_filenames_for_search. New gdb_asserts for real_path and name.
6811 Unify the call of compare_filenames_for_search with FILENAME_CMP.
6812 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6813 * symfile.h (struct quick_symbol_functions): Extend the comment for
6814 map_symtabs_matching_filename.
6815 * symtab.c (compare_filenames_for_search): Remove the function comment
6816 relative path requirement. Handle absolute filenames, with a comment.
6817 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
6818 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
6819 real_path and name. Unify the call of compare_filenames_for_search
6821 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
6823 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6826 * breakpoint.c (print_breakpoint_location): Replace bp_location field
6827 source_file references by symtab field references. Remove variables
6829 (momentary_breakpoint_from_master, add_location_to_breakpoint):
6830 (clear_command, say_where): Replace bp_location field source_file
6831 references by symtab field references.
6832 (bp_location_dtor): Remove the source_file reference.
6833 (update_static_tracepoint): Replace bp_location field source_file
6834 references by symtab field references.
6835 (breakpoint_free_objfile): New function.
6836 * breakpoint.h (struct bp_location): Extend the comment for line_number.
6837 Replace the field source_file by field symtab, extend its comment.
6838 (breakpoint_free_objfile): New declaration.
6839 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
6840 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
6841 field source_file references by symtab field references.
6843 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6845 Replace xfullpath calls by gdb_realpath calls.
6846 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
6848 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
6849 Remove it from the iterate_over_some_symtabs call.
6850 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
6851 Remove it from the dw2_map_expand_apply calls, remove a block handling
6853 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
6854 Remove it from the iterate_over_some_symtabs call.
6855 (partial_map_symtabs_matching_filename): Remove parameter full_path.
6856 Remove it from the partial_map_expand_apply calls, remove a block
6857 handling it. Drop gdb_realpath call and cleanups from the real_path
6859 * source.c (openp): Drop the comment part about xfullpath. Replace
6860 xfullpath calls by gdb_realpath calls.
6861 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
6862 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
6863 from method map_symtabs_matching_filename and its comment.
6864 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
6866 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
6867 remove it also from the function comment, remove a block handling it.
6868 Drop gdb_realpath call and cleanups from the real_path handling.
6869 (iterate_over_symtabs): Drop variable full_path and its use.
6870 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
6871 * utils.c (xfullpath): Remove.
6872 * utils.h (xfullpath): Remove.
6874 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
6876 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
6877 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
6878 (ALLDEPFILES): Add ppc64-tdep.c.
6879 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
6880 ppc64-tdep.o to gdb_target_obs.
6881 * ppc64-tdep.h: New file.
6882 * ppc64-tdep.c: New file.
6883 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
6884 ppc-linux-tdep.c to here.
6885 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
6886 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
6887 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
6888 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
6889 from ppc-linux-tdep.c to here.
6890 (ppc64_convert_from_func_ptr_addr): Rename from
6891 ppc64_linux_convert_from_func_ptr_addr to
6892 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
6895 (read_insn): Move from ppc-linux-tdep.c to here.
6896 (insns_match_pattern, insn_d_field, insn_ds_field): Move
6897 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
6898 * ppc-linux-tdep.c: Include ppc64-tdep.h.
6899 Removed above functions.
6900 (ppc_linux_init_abi): Adjust.
6902 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
6904 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
6906 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
6908 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
6910 2013-02-01 Pedro Alves <palves@redhat.com>
6912 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
6913 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
6915 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6917 * elfread.c (elf_symfile_read): Limit separate debug info additions to
6918 files with no separate debug info.
6919 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
6920 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
6921 only for files with no separate debug info.
6923 2013-01-31 Tom Tromey <tromey@redhat.com>
6925 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
6927 (struct jit_program_space_data): Rename from jit_inferior_data.
6929 (get_jit_program_space_data): Rename from get_jit_inferior_data.
6930 Change return type. Attach data to program space.
6931 (jit_program_space_data_cleanup): Rename from
6932 jit_inferior_data_cleanup; change argument type.
6933 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
6935 (jit_register_code): Update.
6936 (jit_update_inferior_cache): Remove.
6937 (jit_breakpoint_deleted): Get jit data from the location's program
6939 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
6940 'ps_data', change type.
6941 (jit_inferior_init, jit_breakpoint_re_set_internal)
6942 (jit_event_handler): Update.
6943 (free_objfile_data): Get data from objfile's program space.
6944 (_initialize_jit): Update.
6946 2013-01-31 Tom Tromey <tromey@redhat.com>
6949 * jit.c (struct jit_inferior_data) <cached_code_address,
6950 jit_breakpoint>: New fields.
6951 (jit_breakpoint_re_set_internal): Fix logging. Only create
6952 breakpoint if cached address has changed.
6953 (jit_update_inferior_cache, jit_breakpoint_deleted): New
6955 (_initialize_jit): Register breakpoint deleted observer.
6957 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6959 * infrun.c (handle_syscall_event): Remove unused gdbarch.
6960 (save_infcall_suspend_state): Ifdef out unused inf.
6961 (restore_infcall_suspend_state): Ifdef out unused inf.
6962 * jit.c (jit_register_code): Remove unused i, b, inf_data.
6963 (jit_frame_sniffer): Remove unused inf_data.
6965 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6967 * c-exp.y (classify_inner_name): Remove unused type.
6968 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
6969 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
6971 (c_get_string): Remove unused kind.
6972 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
6974 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6976 * charset.c (intermediate_encoding): Remove unused i.
6977 * completer.c (signal_completer): Remove unused i.
6978 * continuations.c (discard_my_continuations_1): Remove unused
6980 * corelow.c (core_close): Remove unuseD name.
6981 (get_core_siginfo): Remove unused pid.
6982 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
6984 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
6985 (loclist_describe_location): Remove unused first.
6986 * event-top.c (command_line_handler): Remove unused got_eof.
6987 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
6988 (resize_section_table): Remove unused old_value.
6989 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
6990 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
6991 * i386-tdep.c (i386_process_record): Remove unused rex.
6992 * infcmd.c (get_return_value): Remove unused uiout.
6993 * jv-lang.c (type_from_class): Remove unused is_array.
6994 * jv-valprint.c (java_val_print): Remove unused i.
6995 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
6996 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
6997 * m2-typeprint.c (m2_print_type): Remove unused code.
6998 * macroexp.c (get_character_constant): Remove unused body_start.
6999 (macro_stringify): Remove unused result.
7000 * objc-lang.c (find_methods): Remove unused gdbarch.
7001 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
7002 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
7003 * stack.c (print_frame_args): Remove unused summary.
7004 * thread.c (thread_apply_command): Remove unused p.
7005 * valarith.c (value_x_unop): Remove unused mangle_ptr.
7006 * valops.c (search_struct_method): Remove unused skip.
7007 * valprint.c (generic_val_print): Remove unused byte_order.
7008 * varobj.c (varobj_update): Remove unused changed.
7009 * cli/cli-cmds.c (complete_command): Remove unused next_item.
7010 (alias_command): Remove unused c.
7011 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
7012 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
7014 (mi_cmd_data_write_memory): Remove unused word_format.
7015 (mi_cmd_data_write_memory_bytes): Remove unused r.
7016 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
7018 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
7019 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
7022 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7024 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
7025 * symtab.c (iterate_over_symtabs): Remove unused s.
7026 (find_pc_sect_symtab): Remove unused pspAce.
7027 (find_pc_sect_line): Remove unused alt_symtab.
7028 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
7029 (completion_list_add_name): Remove unused newsize.
7031 2013-01-31 Tom Tromey <tromey@redhat.com>
7034 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
7037 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7039 * target.c (target_read_string): Remove unused origlen.
7041 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7043 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
7044 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
7045 * ax-general.c (ax_print): Remove unused is_float.
7046 * blockframe.c (block_innermost_frame): Remove unused start, end.
7047 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
7049 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7051 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
7052 (svr4_read_so_list): Remove unused lmo.
7053 * solib-target.c (solib_target_relocate_section_addresses): Remove
7056 2013-01-30 Tom Tromey <tromey@redhat.com>
7058 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
7060 2013-01-30 Tom Tromey <tromey@redhat.com>
7062 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
7063 * utils.c (gnu_debuglink_crc32): Remove.
7064 * utils.h (gnu_debuglink_crc32): Don't declare.
7066 2013-01-30 Tom Tromey <tromey@redhat.com>
7068 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
7069 (read_structure_type, read_enumeration_type): Remove cast.
7071 2013-01-30 Tom Tromey <tromey@redhat.com>
7073 * dwarf2read.c (read_namespace_type): Remove cast.
7074 (read_typedef): Likewise.
7076 2013-01-29 Tom Tromey <tromey@redhat.com>
7078 * dwarf2read.c (free_dwo_file): Remove assert.
7080 2013-01-29 Tom Tromey <tromey@redhat.com>
7082 * value.c (deprecated_set_value_modifiable): Remove.
7083 * value.h (deprecated_set_value_modifiable): Remove.
7085 2013-01-28 Doug Evans <dje@google.com>
7087 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
7088 to addresses from dwo files.
7090 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
7092 * valops.c (find_overload_match): Remove unused argument 'lax'.
7093 * value.h: Remove unused argument 'lax' from the declaration of
7094 find_overload_match.
7095 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
7096 to find_overload_match.
7097 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
7098 argument to find_overload_match.
7100 2013-01-25 Tom Tromey <tromey@redhat.com>
7102 * dwarf2read.c (processing_has_namespace_info): Remove.
7103 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
7104 (process_die, read_func_scope, dwarf2_start_symtab)
7105 (new_symbol_full): Update.
7107 2013-01-25 Tom Tromey <tromey@redhat.com>
7109 * cp-namespace.c (cp_set_block_scope): Remove.
7110 * cp-support.h (cp_set_block_scope): Remove.
7111 * dbxread.c: Include block.h.
7112 (cp_set_block_scope): New function.
7113 (process_one_symbol): Update.
7114 * dwarf2read.c (read_func_scope): Use block_set_scope.
7116 2013-01-25 Pedro Alves <palves@redhat.com>
7118 * remote.c (add_current_inferior_and_thread): Tweak comment.
7120 2013-01-25 Tom Tromey <tromey@redhat.com>
7122 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7123 (cp_add_using_directive): Add 'copy_names' argument.
7124 * cp-support.h (cp_add_using_directive): Update.
7125 (struct using_direct) <import_src, import_dest, alias,
7126 declaration>: Now const.
7127 * dwarf2read.c (read_import_statement): Use obconcat.
7128 Don't copy names passed to cp_add_using_directive.
7130 2013-01-25 Tom Tromey <tromey@redhat.com>
7132 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
7134 2013-01-25 Pedro Alves <palves@redhat.com>
7136 * remote.c (stop_reply_extract_thread): New.
7137 (add_current_inferior_and_thread): New parameter 'wait_status'.
7139 (remote_start_remote): Pass wait status to
7140 add_current_inferior_and_thread.
7141 (extended_remote_run): Update comment.
7142 (extended_remote_create_inferior_1): Pass wait status to
7143 add_current_inferior_and_thread.
7145 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
7146 Ulrich Weigand <uweigand@de.ibm.com>
7148 * valarith.c (value_vector_widen): New function for replicating a
7149 scalar into a vector.
7150 (value_binop): Use value_vector_widen to widen scalar to vector
7151 rather than casting, this better matches gcc C behaviour.
7152 * valops.c (value_casst): Update logic for casting between vector
7153 types, and for casting from scalar to vector, try to match gcc C
7155 * value.h (value_vector_widen): Declare.
7156 * opencl-lang.c (opencl_value_cast): New opencl specific casting
7157 function, handle special case for casting scalar to vector.
7158 (opencl_relop): Use opencl_value_cast.
7159 (evaluate_subexp_opencl): Use opencl_value_cast instead of
7160 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
7161 in order to use opencl_value_cast.
7163 2013-01-25 Yao Qi <yao@codesourcery.com>
7165 * event-loop.c: Include "queue.h".
7166 (gdb_event_p): New typedef.
7167 (DECLARE_QUEUE_P): Use.
7168 (DEFINE_QUEUE_P): Use.
7169 (async_queue_event): Remove.
7170 (gdb_event_xfree): New.
7171 (initialize_event_loop): New.
7172 (process_event): Use QUEUE macros.
7173 (event_queue): Remove.
7174 (gdb_wait_for_event): Caller update.
7175 (check_async_event_handlers): Likewise.
7176 (poll_timers): Likewise.
7177 * event-loop.h (initialize_event_loop): Declare.
7178 * event-loop.c (gdb_event_xfree): New.
7179 * top.c (gdb_init): Call initialize_event_loop.
7181 2013-01-25 Yao Qi <yao@codesourcery.com>
7183 * event-loop.c (async_queue_event): Remove one parameter
7184 'position'. Remove code handling 'position' == TAIL.
7185 (gdb_wait_for_event): Caller update.
7186 (check_async_event_handlers): Caller update.
7187 (poll_timers): Caller update.
7188 * event-loop.h (enum queue_position): Remove.
7190 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
7192 * MAINTAINERS: Update my email.
7194 2013-01-25 Yao Qi <yao@codesourcery.com>
7196 * main.c (print_gdb_help): Remove "--epoch" from the help
7199 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
7201 * symtab.c (skip_prologue_using_sal): Consider a file
7202 change the same as an increased line number
7204 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7206 * MAINTAINERS (Write After Approval): Add myself to the list.
7208 2013-01-24 Tom Tromey <tromey@redhat.com>
7210 * ada-lang.h (ada_decode_symbol): Make return type const.
7211 * ada-lang.c (ada_decode_symbol): Likewise.
7213 2013-01-23 Doug Evans <dje@google.com>
7215 * linespec.c (find_linespec_symbols): Make static.
7217 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7219 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
7220 type on float conversion for complex type.
7222 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
7224 Add a new class gdb.Architecture which exposes GDB's
7225 internal representation of architecture via GDB Python API.
7226 * Makefile.in: Add entries corresponding to the new file
7228 * NEWS (Python Scripting): Add entries for the new class
7229 gdb.Architecture and the new method gdb.Frame.architecture.
7230 * python/py-arch.c: Implement gdb.Architecture class.
7231 * python/py-frame.c (frapy_arch): Implement the method
7232 gdb.Frame.architecture().
7233 (frame_object_methods): Add 'architecture' to the method table.
7234 * python/python-internal.h: Add declarations of new utility
7236 * python/python.c (_initialize_python): Initialize
7237 gdb.Architecture class.
7239 2013-01-23 Doug Evans <dje@google.com>
7241 Work around binutils/15021.
7242 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
7243 type_unit_group out of union s. All uses updated.
7244 (read_index_from_section): Watch for index version 8.
7245 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
7247 (write_psymtabs_to_index): Increment version number to 8.
7249 2013-01-22 Pedro Alves <palves@redhat.com>
7251 * annotate.c (breakpoint_changed): Skip if breakpoint is not
7254 2013-01-22 Pedro Alves <palves@redhat.com>
7256 * annotate.c (annotate_breakpoints_changed): Rename to ...
7257 (annotate_breakpoints_invalid): ... this. Make static.
7258 (breakpoint_changed): Adjust.
7259 (_initialize_annotate): Always install the observers. Install a
7260 "breakpoint_created" observer.
7261 * annotate.h (annotate_breakpoints_changed): Delete declaration.
7262 * breakpoint.c (set_breakpoint_condition)
7263 (breakpoint_set_commands, do_map_commands_command)
7264 (init_raw_breakpoint, clear_command, set_ignore_count)
7265 (enable_breakpoint_disp): No longer call
7266 annotate_breakpoints_changed.
7268 2013-01-22 Pedro Alves <palves@redhat.com>
7270 * annotate.c: Include "inferior.h".
7271 (frames_invalid_emitted)
7272 (breakpoints_invalid_emitted): New globals.
7273 (async_background_execution_p): New function.
7274 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
7275 emitting the annotation if it has already been emitted.
7276 (annotate_display_prompt): New function.
7277 * annotate.h (annotate_display_prompt): New declaration.
7278 * event-top.c: Include annotate.h.
7279 (display_gdb_prompt): Call annotate_display_prompt.
7281 2013-01-22 Pedro Alves <palves@redhat.com>
7283 * annotate.c (ignore_count_changed): Delete.
7284 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
7285 (annotate_ignore_count_change): Delete.
7286 (annotate_stopped): Don't emit a delayed breakpoints-changed
7288 * annotate.h (annotate_ignore_count_change): Delete.
7289 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
7290 annotate_ignore_count_change.
7292 2013-01-22 Tom Tromey <tromey@redhat.com>
7294 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
7295 require_rvalue for a register location.
7297 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
7299 * breakpoint.c (print_one_breakpoint_location): Add MI
7300 field 'thread-groups' when printing a breakpoint.
7301 (output_thread_groups): New function.
7303 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
7305 * python/lib/gdb/commands/explore.py
7306 (CompoundExplorer.explore_expr): Correct the name of a method
7308 (ExploreTypeCommand.invoke): Add a missing 'return'.
7310 2013-01-21 Tom Tromey <tromey@redhat.com>
7312 * gdb_obstack.h (obconcat): Move declaration here, from...
7313 * symfile.h (obconcat): ... here.
7314 * gdb_obstack.c: New file.
7315 (obconcat): Move from...
7316 * symfile.c (obconcat): ... here.
7317 * Makefile.in (SFILES): Add gdb_obstack.c.
7318 (COMMON_OBS): Add gdb_obstack.o.
7320 2013-01-21 Tom Tromey <tromey@redhat.com>
7322 * symfile.h (obsavestring): Don't declare.
7323 * symfile.c (obsavestring): Remove.
7324 * ada-exp.y: Use obstack_copy0, not obsavestring.
7325 * ada-lang.c: Use obstack_copy0, not obsavestring.
7326 * coffread.c: Use obstack_copy0, not obsavestring.
7327 * cp-namespace.c: Use obstack_copy0, not obsavestring.
7328 * dbxread.c: Use obstack_copy0, not obsavestring.
7329 * dwarf2read.c: Use obstack_copy0, not obsavestring.
7330 * jit.c: Use obstack_copy0, not obsavestring.
7331 * mdebugread.c: Use obstack_copy0, not obsavestring.
7332 * psymtab.c: Use obstack_copy0, not obsavestring.
7333 * stabsread.c: Use obstack_copy0, not obsavestring.
7334 * xcoffread.c: Use obstack_copy0, not obsavestring.
7336 2013-01-21 Tom Tromey <tromey@redhat.com>
7338 * dwarf2read.c (fixup_go_packaging): Save package name
7340 * gdbtypes.c (init_type): Don't copy name.
7342 2013-01-21 Tom Tromey <tromey@redhat.com>
7344 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
7346 (struct attribute) <u.str>: Now const.
7347 (struct fnfieldlist) <name>: Now const.
7348 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
7349 (partial_die_parent_scope): Make return type const.
7350 (partial_die_full_name, add_partial_symbol): Update.
7351 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
7353 (find_file_and_directory): Make 'name' and 'comp_dir' const.
7354 (read_file_scope, read_func_scope, dwarf2_add_field)
7355 (dwarf2_add_member_fn, read_structure_type)
7356 (process_enumeration_scope, read_array_type, read_module_type)
7357 (read_base_type, read_subrange_type): Update.
7358 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
7359 (new_symbol_full, guess_full_die_structure_name): Update.
7360 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
7361 (dwarf2_name): Return const type.
7362 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
7365 2013-01-21 Tom Tromey <tromey@redhat.com>
7367 * gdbtypes.c (init_type): Make 'name' const.
7368 * gdbtypes.h (init_type): Update.
7370 2013-01-21 Tom Tromey <tromey@redhat.com>
7372 * buildsym.c (patch_subfile_names): Use set_last_source_file.
7373 (start_symtab): Make 'name' and 'dirname' const. Use
7374 set_last_source_file.
7375 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
7376 (last_source_file): Define. Now static.
7377 (set_last_source_file, get_last_source_file): New functions.
7378 * buildsym.h (last_source_file): Don't declare.
7379 (start_symtab): Update.
7380 (set_last_source_file, get_last_source_file): Declare.
7381 * coffread.c (complete_symtab): Use set_last_source_file.
7382 (coff_end_symtab): Likewise.
7383 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
7384 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
7385 set_last_source_file.
7386 (process_one_symbol): Use get_last_source_file.
7387 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
7388 (psymtab_to_symtab_1): Use get_last_source_file.
7389 * xcoffread.c (process_linenos): Use get_last_source_file.
7390 (complete_symtab): Use set_last_source_file.
7391 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
7392 (scan_xcoff_symtab): Use set_last_source_file.
7394 2013-01-21 Tom Tromey <tromey@redhat.com>
7396 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
7397 (symbol_set_names): Remove casts. Handle field const-ness.
7399 2013-01-21 Tom Tromey <tromey@redhat.com>
7401 * dwarf2read.c (new_symbol_full): Remove cast.
7402 * symtab.c (symbol_set_demangled_name): Make 'name' const.
7403 * symtab.h (symbol_set_demangled_name): Update.
7405 2013-01-21 Tom Tromey <tromey@redhat.com>
7407 * main.c (captured_main): Call bfd_init.
7409 2013-01-21 Tom Tromey <tromey@redhat.com>
7411 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
7412 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
7413 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
7416 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7418 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
7420 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7422 Fix gdb.fortran/common-block.exp crash in PIE mode.
7423 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
7425 * f-valprint.c (info_common_command_for_block): Expect
7426 LOC_COMMON_BLOCK in gdb_assert.
7427 * symtab.h (struct general_symbol_info): Update comment for the
7428 common_block member.
7429 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
7430 (enum address_class): New member LOC_COMMON_BLOCK.
7432 2013-01-18 David Blaikie <dblaikie@gmail.com>
7434 * MAINTAINERS (Write After Approval): Add "David Blaikie".
7436 2013-01-18 Tom Tromey <tromey@redhat.com>
7439 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
7440 Call require_rvalue.
7442 2013-01-18 Yao Qi <yao@codesourcery.com>
7444 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
7445 (dbx_read_symtab): New declaration.
7446 (dbx_psymtab_to_symtab): Delete.
7447 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
7448 Rename parameter PST to SELF. Exchanged two parameters.
7449 (start_psymtab): Caller update.
7450 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
7451 (dwarf2_read_symtab): New declaration.
7452 (dwarf2_psymtab_to_symtab): Delete.
7453 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
7454 Rename parameter PST to SELF. Exchanged two parameters.
7455 (create_partial_symtab): Caller update.
7456 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
7457 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
7458 Rename parameter PST to SELF. Exchanged two parameters.
7459 (parse_partial_symbols, new_psymtab): Caller update.
7460 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
7462 * psymtab.c (psymtab_to_symtab): Caller update.
7463 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
7464 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
7465 Rename parameter PST to SELF. Exchanged two parameters.
7466 (xcoff_start_psymtab): Caller update.
7468 2013-01-18 Yao Qi <yao@codesourcery.com>
7470 * infrun.c (proceed): Rename local variable 'oneproc' to
7473 2013-01-17 Doug Evans <dje@google.com>
7475 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
7476 (dw2_build_type_unit_groups): Delete. All uses updated.
7478 * symtab.h (struct symbol_search): Add comment.
7480 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7482 * symtab.c (compare_filenames_for_search): New comment for
7485 2013-01-17 Tom Tromey <tromey@redhat.com>
7487 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
7489 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7491 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
7492 initialize it by existing make_cleanup. Call new do_cleanups.
7494 2013-01-17 Tom Tromey <tromey@redhat.com>
7496 * cp-abi.c (cp_abi_completer): New function.
7497 (_initialize_cp_abi): Set completer for "set cp-abi".
7499 2013-01-17 Tom Tromey <tromey@redhat.com>
7501 * mem-break.c: Remove obsolete comment.
7502 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
7504 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
7506 * jit.c (jit_reader_load_command): Interpret the jit reader name
7507 as an absolute path if it begins with a forward slash.
7509 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
7513 * jit.c (finalize_symtab): Ensure that only the global block has a
7516 2013-01-17 Pedro Alves <palves@redhat.com>
7518 * acinclude.m4: Include ../config/plugins.m4,
7519 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
7520 * Makefile.in (aclocal_m4_deps): Update.
7521 * aclocal.m4: Renegerate.
7523 2013-01-16 Doug Evans <dje@google.com>
7525 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
7527 2013-01-16 Pedro Alves <palves@redhat.com>
7528 Tom Tromey <tromey@redhat.com>
7531 * NEWS: Add "catch signal".
7532 * breakpoint.c (base_breakpoint_ops): No longer static.
7533 (bpstat_explains_signal): New function.
7534 (init_catchpoint): No longer static.
7535 (base_breakpoint_explains_signal): New function.
7536 (base_breakpoint_ops): Initialize new field.
7537 * breakpoint.h (enum bpstat_signal_value): New.
7538 (struct breakpoint_ops) <explains_signal>: New field.
7539 (bpstat_explains_signal): Remove macro, declare as function.
7540 (base_breakpoint_ops, init_catchpoint): Declare.
7541 * break-catch-sig.c: New file.
7542 * inferior.h (signal_catch_update): Declare.
7543 * infrun.c (signal_catch): New global.
7544 (handle_syscall_event): Update for change to
7545 bpstat_explains_signal.
7546 (handle_inferior_event): Likewise. Always handle random signals
7548 (signal_cache_update): Check signal_catch.
7549 (signal_catch_update): New function.
7550 (_initialize_infrun): Initialize signal_catch.
7551 * Makefile.in (SFILES): Add break-catch-sig.c.
7552 (COMMON_OBS): Add break-catch-sig.o.
7554 2013-01-16 Tom Tromey <tromey@redhat.com>
7556 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
7557 (print_one_catch_solib, print_one_catch_syscall)
7558 (print_one_catch_exec, print_one_exception_catchpoint): Emit
7561 2013-01-16 Yao Qi <yao@codesourcery.com>
7563 * printcmd.c (current_display_number): Make it static.
7565 2013-01-16 Yao Qi <yao@codesourcery.com>
7567 * infcmd.c (step_once): Don't check '!single_inst' as it was
7570 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7572 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
7574 2013-01-14 Tom Tromey <tromey@redhat.com>
7576 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
7578 * command.h (add_setshow_string_noescape_cmd): Update.
7579 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
7580 (complete_set_gnutarget): New function.
7581 (_initialize_core): Set the "set gnutarget" completer.
7583 2013-01-14 Tom Tromey <tromey@redhat.com>
7586 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
7587 (c_type_print_modifier): Likewise.
7588 * dwarf2read.c (read_tag_restrict_type): New function.
7589 (read_type_die_1): Handle DW_TAG_restrict_type.
7590 * gdbtypes.c (make_restrict_type): New function.
7591 (recursive_dump_type): Handle TYPE_RESTRICT.
7592 * gdbtypes.h (enum type_flag_values): Renumber.
7593 (enum type_instance_flag_value): Add
7594 TYPE_INSTANCE_FLAG_RESTRICT.
7595 (TYPE_RESTRICT): New macro.
7596 (make_restrict_type): Declare.
7598 2013-01-14 Tom Tromey <tromey@redhat.com>
7601 * psymtab.c (struct psymtab_state): New.
7602 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
7604 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
7605 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
7607 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
7608 Pedro Alves <palves@redhat.com>
7612 * remote.c (remote_threads_info): Make a copy of the reply from
7613 qfThreadInfo and use that instead of rs->buf.
7615 2013-01-14 Yao Qi <yao@codesourcery.com>
7617 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
7618 (dbx_psymtab_to_symtab): Likewise.
7619 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
7620 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
7621 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
7623 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7625 * parse.c (parse_exp_in_context): New variable inner_chain. Call
7626 make_cleanup_restore_current_language. Call set_language. Move
7627 OLD_CHAIN and INNER_CHAIN cleanups.
7628 * utils.c (do_restore_current_language)
7629 (make_cleanup_restore_current_language): New functions.
7630 * utils.h (make_cleanup_restore_current_language): New declaration.
7632 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7634 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
7637 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
7638 non-existing files if FILENAME is already absolute.
7640 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7642 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
7643 fputs_filtered. Append trailing newline.
7645 2013-01-11 Yao Qi <yao@codesourcery.com>
7646 Stan Shebs <stan@codesourcery.com>
7648 * psymtab.c (init_psymbol_list): Clarify the comment.
7650 2013-01-11 Yao Qi <yao@codesourcery.com>
7652 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
7653 (update_dprintf_command_list): Assert that 'printf_line' is
7654 non-null. Remove condition check.
7656 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7659 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
7661 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
7663 * tui/tui-source.h (tui_source_is_displayed): Likewise.
7665 2013-01-09 Anthony Green <green@moxielogic.com>
7667 * cp-abi.c (cplus_print_vtable): Don't return value from void
7669 * ada-lang.c (re_set_catch_assert): Ditto.
7671 2013-01-09 Doug Evans <dje@google.com>
7673 * symfile.h (quick_symbol_functions): Delete member
7674 pre_expand_symtabs_matching. All uses removed.
7675 * dwarf2read.c (dw2_lookup_symbol): Implement.
7676 (dw2_do_expand_symtabs_matching): Delete.
7677 (dw2_pre_expand_symtabs_matching): Delete.
7678 (struct dw2_symtab_iterator): New type.
7679 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
7680 (dw2_expand_symtabs_for_function): Rewrite.
7681 (dwarf2_gdb_index_functions): Update.
7682 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
7683 (psym_functions): Update.
7685 2013-01-09 Tom Tromey <tromey@redhat.com>
7687 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
7688 * configure: Rebuild.
7689 * configure.ac: Add somread.o to the build if BFD has SOM
7691 * somread.c: Include som/aout.h, not syms.h.
7692 (som_symtab_read): Use som_external_symbol_dictionary_record.
7693 Unpack records manually.
7694 (_initialize_somread): Declare.
7696 2012-01-08 Mike Frysinger <vapier@gentoo.org>
7698 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
7699 Cast return_address to 64bits.
7701 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
7703 * printcmd.c: Remove define of function output_command.
7704 * tracepoint.c: Remove extern of function output_command.
7705 * valprint.h: (output_command): New extern.
7707 2013-01-07 Tom Tromey <tromey@redhat.com>
7709 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
7711 (objc_language_defn): Use c_printchar, c_printstr,
7714 2013-01-07 Tom Tromey <tromey@redhat.com>
7718 * ada-valprint.c (printstr, print_field_values): Remove
7720 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
7722 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
7724 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
7725 * main.c (captured_main): Remove "epoch" argument.
7726 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
7727 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
7728 * p-valprint.c (pascal_object_print_value_fields): Remove
7730 * printcmd.c (print_command_1): Remove 'inspect' argument.
7731 (print_command, call_command): Update.
7732 (inspect_command): Remove.
7733 (_initialize_printcmd): Make "inspect" an alias for "print".
7734 * top.c (epoch_interface): Remove.
7735 * top.h (epoch_interface): Remove.
7736 * valprint.c (user_print_options): Update.
7737 (print_converted_chars_to_obstack): Remove "inspect_it" code.
7738 * valprint.h (struct value_print_options) <inspect_it>: Remove
7741 2013-01-04 Tom Tromey <tromey@redhat.com>
7743 * valprint.h (read_string): Add 'extern'.
7745 2013-01-07 Joel Brobecker <brobecker@adacore.com>
7747 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
7748 used to decide whether to define darwin_read_dyld_info or not.
7750 2013-01-03 Pierre Muller <muller@sourceware.org>
7752 * main.c (relocate_gdb_directory): Avoid calling stat function
7755 2013-01-03 Yao Qi <yao@codesourcery.com>
7757 * psymtab.c (fixup_psymbol_section): Update declaration.
7758 (fixup_psymbol_section): Remove code returning value.
7760 2013-01-03 Yao Qi <yao@codesourcery.com>
7762 * symtab.h: Remove some out of date comments.
7763 (enum exception_event_kind): Move it ...
7764 * breakpoint.c: ... here.
7766 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
7769 * darwin-nat.c (darwin_read_dyld_info): Only build if
7770 TASK_DYLD_INFO_COUNT is defined.
7771 (darwin_xfer_partial): Call darwin_read_dyld_info only if
7772 TASK_DYLD_INFO_COUNT is defined.
7774 2013-01-02 Tom Tromey <tromey@redhat.com>
7776 * symfile.h (struct ecoff_debug_hack): Remove.
7777 * objfiles.c: Don't include mdebugread.h.
7779 2013-01-02 Tom Tromey <tromey@redhat.com>
7781 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
7782 * configure.ac: Check for Mach-O support in BFD. Update
7784 * configure: Rebuild.
7786 2013-01-02 Tom Tromey <tromey@redhat.com>
7788 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
7789 * configure.ac: Use GDB_AC_CHECK_BFD.
7790 * configure: Rebuild.
7792 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
7794 * MAINTAINERS: Update my email.
7796 2013-01-01 Joel Brobecker <brobecker@adacore.com>
7798 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
7800 2013-01-01 Joel Brobecker <brobecker@adacore.com>
7802 * rs6000-nat.c (bss_data_overlap): New function.
7803 (vmap_symtab): Use it to adjust the .bss section's offset.
7805 2013-01-01 Joel Brobecker <brobecker@adacore.com>
7807 Update year range in copyright notice of all files.
7809 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
7811 * top.c (print_gdb_version): Update copyright year.
7813 For older changes see ChangeLog-2012.
7819 version-control: never