1 2012-12-05 Pierre Muller <muller@sourceware.org>
3 Avoid memory leaks on struct cmd_list_element.doc field.
4 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
5 if flags contains DOC_ALLOCATED.
6 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
8 (delete_cmd): Handle DOC_ALLOCATED flag.
9 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
10 in flags filed of struct cmd_list_element.
11 (struct cmd_list_element): Document new flag item.
13 2012-12-04 Doug Evans <dje@google.com>
15 * symmisc.c: Whitespace fixes.
17 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
19 * i386-tdep.c (i386_skip_prologue): Using symbol table
20 to find the end of prologue for clang compiled binaries.
21 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
22 to find the end of prologue for clang compiled binaries.
24 2012-12-03 Doug Evans <dje@google.com>
26 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
27 (dw2_find_symbol_file): Delete unused local file_data.
29 2012-12-03 Tom Tromey <tromey@redhat.com>
31 * ada-exp.y (write_object_renaming, write_var_or_type)
32 (write_ambiguous_var, write_var_from_sym): Make blocks const.
33 * ada-lang.c (replace_operator_with_call)
34 (find_old_style_renaming_symbol): Make blocks const.
35 * ada-lang.h (ada_find_renaming_symbol): Update.
36 (struct ada_symbol_info) <block>: Now const.
37 * breakpoint.c (watch_command_1): Update.
38 * breakpoint.h (struct watchpoint) <exp_valid_block,
39 cond_exp_valid_block>: Now const.
40 * c-exp.y (classify_inner_name, classify_name): Make block
42 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
44 * expression.h (innermost_block, parse_exp_1): Update.
45 (union exp_element) <block>: Now const.
46 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
47 (lookup_struct): Make block argument const.
48 * gdbtypes.h (lookup_template_type): Update.
49 * go-exp.y (classify_name, classify_packaged_name)
50 (package_name_p): Make block argument const.
51 * objc-lang.c (lookup_struct_typedef): Make block argument const.
52 * objc-lang.h (lookup_struct_typedef): Update.
53 * parse.c (parse_exp_in_context, parse_exp_1)
54 (write_exp_elt_block): Make block arguments const.
55 (expression_context_block, innermost_block): Now const.
56 * parser-defs.h (write_exp_elt_block): Update.
57 (expression_context_block, innermost_block, block_found): Now
59 * printcmd.c (struct display) <block>: Now const.
60 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
61 * valops.c (address_of_variable): Make block argument const.
62 * value.h (value_of_variable): Update.
63 * varobj.c (struct varobj_root) <valid_block>: Now const.
65 2012-11-30 Yao Qi <yao@codesourcery.com>
67 * breakpoint.c (print_one_breakpoint_location): Indent code.
69 2012-11-30 Yao Qi <yao@codesourcery.com>
71 * breakpoint.c (print_one_breakpoint_location): Combine two
72 blocks handling 'hit count' together.
74 2012-11-30 Yao Qi <yao@codesourcery.com>
76 * infrun.c (error_is_running, ensure_not_running): Move them
78 * infcmd.c (error_is_running, ensure_not_running): ... here.
80 * inferior.h: Remove declarations of error_is_running and
83 2012-11-30 Yao Qi <yao@codesourcery.com>
85 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
88 2012-11-30 Yao Qi <yao@codesourcery.com>
90 * infrun.c: Make the declaration of 'init_infwait_state'
92 (init_infwait_state): Make it 'static'.
94 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
96 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
97 return value to void to avoid compiler warning.
99 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
101 * opencl-lang.c (opencl_print_type): New function.
102 (opencl_language_arch_info): Install it.
104 2012-11-29 Tom Tromey <tromey@redhat.com>
106 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
108 * common/common-utils.c (xasprintf, xvasprintf): Remove.
109 * common/common-utils.h (xasprintf, xvasprintf): Remove.
111 2012-11-29 Jerome Guitton <guitton@adacore.com>
113 * ada-lang.c (ada_is_interface_tag): New function.
114 (ada_is_ignored_field): Add interface tags to the list
117 2012-11-29 Jerome Guitton <guitton@adacore.com>
119 * ada-lang.h (ada_tag_value_at_base_address): New function
121 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
123 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
124 relocate the class-wide value if need be.
125 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
126 Let ada_tag_value_at_base_address relocate the class-wide access/ref
127 before dereferencing it.
128 * ada-valprint.c (ada_val_print_1): Relocate to base address
129 before displaying the content of an interface-wide ref.
131 2012-11-29 Jerome Guitton <guitton@adacore.com>
133 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
135 2012-11-29 Joel Brobecker <brobecker@adacore.com>
139 2012-11-29 Yao Qi <yao@codesourcery.com>
140 Tom Tromey <tromey@redhat.com>
142 * eval.c (evaluate_subexp_standard): Get the correct pointer
143 type for TYPE_CODE_MEMBERPTR.
145 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
147 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
148 since now it is being done by binutils' powerpc_init_dialect().
150 2012-11-28 Tom Tromey <tromey@redhat.com>
153 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
154 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
156 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
157 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
158 (gdb_bfd_openr_next_archived_file): Use it.
160 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
162 * configure.ac: Check for linux/perf_event.h.
163 * config.in: Regenerated.
164 * configure: Regenerated.
166 2012-11-28 Yao Qi <yao@codesourcery.com>
168 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
169 abbreviate 'delete tracepoints' to 'delete tr'.
170 * corefile.c (_initialize_core): Call add_alias_cmd to
171 abbreviate 'set gnutarget' to 'set g'.
172 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
173 'show convenience' to 'show conv'.
175 2012-11-27 Joel Brobecker <brobecker@adacore.com>
177 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
178 call to sparc_supply_fpregset.
179 (fill_fpregset): Fix first parameter in call to
180 sparc_collect_fpregset.
182 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
183 Kazu Hirata <kazu@codesourcery.com>
184 Yao Qi <yao@codesourcery.com>
186 * objfiles.c (init_entry_point_info): Call
187 gdbarch_convert_from_func_ptr_addr and
188 gdbarch_addr_bits_remove here ...
189 (entry_point_address_query): ... instead of here.
190 * solib-svr4.c (exec_entry_point): Call
191 gdbarch_addr_bits_remove.
192 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
195 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
196 Yao Qi <yao@codesourcery.com>
198 * eval.c (evaluate_subexp_standard): Add handling of
199 TYPE_CODE_MEMBERPTR when calling functions. Correct the
200 result of ptype for calling a TYPE_CODE_METHODPTR.
202 2012-11-27 Yao Qi <yao@codesourcery.com>
204 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
208 2012-11-26 Alexander Larsson <alexl@redhat.com>
209 Jan Kratochvil <jan.kratochvil@redhat.com>
210 Tom Tromey <tromey@redhat.com>
212 * NEWS: Mention mini debuginfo feature.
213 * minidebug.c: New file.
214 * configure.ac: Check for lzma.
215 * configure, config.in: Rebuild.
216 * Makefile.in (LIBLZMA): New variable.
217 (CLIBS): Include LIBLZMA.
218 (SFILES): Mention minidebug.c.
219 (COMMON_OBS): Mention minidebug.o.
220 * symfile.c (read_symbols): New function.
221 (syms_from_objfile, reread_symbols): Call it.
222 * symfile.h (find_separate_debug_file_in_section): Declare.
224 2012-11-26 Keith Seitz <keiths@redhat.com>
226 * exec.c (exec_file_attach): Move cleanup after verifying that
227 memory has in fact been allocated.
229 2012-11-26 Tom Tromey <tromey@redhat.com>
231 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
232 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
234 * skip.c (skip_info): Use SYMBOL_SYMTAB.
236 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
237 Pedro Alves <palves@redhat.com>
239 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
240 size parameter passed to readlink by one byte.
241 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
242 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
243 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
244 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
247 2012-11-26 Yao Qi <yao@codesourcery.com>
249 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
250 extraneous parentheses.
252 2012-11-26 Yao Qi <yao@codesourcery.com>
254 * remote.c (remote_start_remote): Typo fix.
256 2012-11-23 David S. Miller <davem@davemloft.net>
258 * sparc-tdep.h (struct sparc_fpregset): New data structure.
259 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
260 sparc32_sol2_fpregset): Declare new globals.
261 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
263 * sparc64-tdep.h (sparc64_supply_fpregset,
264 sparc64_collect_fpregset): Likewise.
265 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
267 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
268 (sparc_fpregset): Declare new global.
269 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
271 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
273 (fill_fpregset): Likewise.
274 (_initialize_sparc_linux_nat): Set sparc_fpregset to
275 sparc32_bsd_fpregset.
276 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
277 sparc32_bsd_fpregset down into handler.
278 (sparc32_linux_collect_core_fpregset): Likewise.
279 * sparc-nat.c (sparc_fpregset): Define.
280 (sparc_supply_fpregset): Add 'fpregset' argument.
281 (sparc_collect_fpregset): Likewise.
282 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
283 into fpregset handler.
284 (sparc_store_inferior_registers): Likewise.
285 (_initialize_sparc_nat): Set sparc_fpregset to
286 sparc32_sunos4_fpregset if NULL.
287 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
289 (fill_fpregset): Likewise.
290 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
291 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
292 use it to compute offsets.
293 (sparc32_collect_fpregset): Likewise.
294 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
295 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
297 (fill_fpregset): Likewise.
298 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
300 (sparc64_linux_collect_core_fpregset): Likewise.
301 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
302 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
303 use it to compute offsets.
304 (sparc64_collect_fpregset): Likewise.
305 (sparc64_bsd_fpregset): Define.
306 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
307 sparc64_bsd_fpregset down into handler.
308 (sparc64fbsd_collect_fpregset): Likewise.
309 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
310 and pass sparc{32,64}_bsd_fpregset down into handler.
311 (sparc64nbsd_collect_fpregset): Likewise.
312 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
313 sparc64_bsd_fpregset down into handler.
314 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
315 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
316 to sparc32_bsd_fpregset.
317 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
318 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
319 (sparc32nbsd_supply_fpregset): Likewise.
321 2012-11-21 Tom Tromey <tromey@redhat.com>
323 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
325 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
327 * c-typeprint.c (c_type_print_base): Update.
329 2012-11-21 Yao Qi <yao@codesourcery.com>
332 * gdbarch.sh (smash_text_address): Remove.
333 * gdbarch.c, gdbarch.h: Regenerate.
334 * arm-tdep.c (arm_smash_text_address): Remove.
335 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
336 * hppa-tdep.c (hppa_smash_text_address): Remove.
337 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
338 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
340 * coffread.c (coff_symtab_read): Caller update.
341 * dbxread.c (process_one_symbol): Likewise.
342 * elfread.c (record_minimal_symbol): Likewise.
343 * somread.c (som_symtab_read): Likewise.
345 2012-11-20 Pierre Muller <muller@sourceware.org>
347 ARI fixes: sprintf rule.
348 Replace sprintf function calls for char arrays by
349 calls to xsnprintf calls.
350 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
351 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
352 (arm_neon_quad_read, arm_pseudo_read): Ditto.
353 (arm_neon_quad_write, arm_pseudo_write): Ditto.
354 * breakpoint.c (condition_completer): Ditto.
355 (create_tracepoint_from_upload): Ditto.
356 * dwarf2read.c (file_full_name): Ditto.
357 * gcore.c (gcore_command): Ditto.
358 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
359 * go32-nat.c (go32_sysinfo): Ditto.
360 * interps.c (interp_set): Ditto.
361 * m32c-tdep.c (make_types): Ditto.
362 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
363 * remote-m32r-sdi.c (m32r_open): Ditto.
364 * sol-thread.c (td_err_string): Ditto.
365 (td_state_string, solaris_pid_to_str): Ditto.
366 * symtab.c (gdb_mangle_name): Ditto.
367 * cli/cli-script.c (execute_control_command): Ditto.
368 (define_command, document_command): Ditto.
369 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
370 * tui/tui-stack.c (tui_make_status_line): Ditto.
371 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
373 2012-11-20 Mike Frysinger <vapier@gentoo.org>
375 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
376 it when looking at ptr->func.
377 * command.h (complete_on_cmdlist): Add a fourth arg.
378 * completer.c (complete_line_internal): Add local ignore_help_classes,
379 and set it to 1 when reason is not handle_help. Pass this down to
380 lookup_cmd_1 and complete_on_cmdlist.
382 2012-11-20 Tom Tromey <tromey@redhat.com>
384 * completer.c (count_struct_fields): Remove.
385 (expression_completer): Don't call count_struct_fields.
387 2012-11-20 Pedro Alves <palves@redhat.com>
389 * annotate.c (breakpoints_changed): Rename to ...
390 (annotate_breakpoints_changed): ... this.
391 (annotate_stopped, breakpoint_changed): Adjust caller.
392 * annotate.h (breakpoints_changed): Rename to ...
393 (annotate_breakpoints_changed): ... this.
394 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
395 (do_map_commands_command, init_raw_breakpoint, clear_command)
396 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
398 2012-11-20 David S. Miller <davem@davemloft.net>
400 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
401 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
403 (get_cores_used_by_process): Update comment.
405 2012-11-20 Yao Qi <yao@codesourcery.com>
407 * objfiles.c (init_entry_point_info): Remove trailing spaces.
409 2012-11-20 Yao Qi <yao@codesourcery.com>
411 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
412 to deprecated_context_hook.
414 2012-11-19 Yao Qi <yao@codesourcery.com>
416 * infrun.c (infwait_state): Add static.
418 2012-11-16 Keith Seitz <keiths@redhat.com>
421 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
422 parameter and pass it to lookup_symbol_file.
423 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
424 to search base classes.
425 (cp_lookup_symbol_namespace): Likewise.
426 (lookup_namespace_scope): Likewise.
427 (lookup_symbol_file): Add SEARCH parameter.
428 If SEARCH is non-zero and no symbol is found, lookup the class
429 and call cp_lookup_nested_symbol.
430 (find_symbol_in_baseclass): New function.
431 (cp_lookup_nested_symbol): Do not let
432 cp_lookup_symbol_in_namespace search through base classes.
433 Do that later when there is no global symbol match.
435 2012-11-16 Doug Evans <dje@google.com>
437 * main.c (gdb_datadir_provided): New static global.
438 (get_init_files): If --data-directory is provided,
439 and SYSTEM_GDBINIT lives in data-directory, look for it there.
442 2012-11-15 Pierre Muller <muller@sourceware.org>
444 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
445 * gdb_stat.h: Delete. Moved to common directory.
446 * common/gdb_stat.h: New file.
447 * gdb_wait.h: Delete. Moved to common directory.
448 * common/gdb_wait.h: New file.
449 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
451 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
453 (stat.h rule): Adapt to new gdb_stat.h location.
454 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
456 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
459 2012-11-15 Pierre Muller <muller@sourceware.org>
461 * configure.ac (AC_HEADER_STAT): Remove.
462 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
463 and corresponding code.
464 * configure: Regenerate.
465 * config.in: Regenerate.
467 2012-11-15 Pierre Muller <muller@sourceware.org>
469 ARI xasprintf rule fixes.
470 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
471 instead of xasprintf.
472 (open_and_init_dwp_file): Ditto.
474 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
476 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
479 2012-11-14 Tom Tromey <tromey@redhat.com>
481 * configure, config.in: Rebuild.
482 * configure.ac: Don't check for ctype.h, time.h.
483 * expprint.c: Don't use HAVE_CTYPE_H.
485 2012-11-13 Tom Tromey <tromey@redhat.com>
487 * gdbarch.h, gdbarch.c: Rebuild.
488 * gdbarch.sh (set_target_gdbarch): Rename from
489 deprecated_target_gdbarch_select_hack.
490 * arch-utils.c (gdbarch_update_p): Update.
491 (set_gdbarch_from_file): Update.
493 2012-11-14 Pierre Muller <muller@sourceware.org>
495 * MAINTAINERS (Responsible Maintainers/misc): Add myself
496 as responsible of contrib/ari directory.
498 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
499 Yao Qi <yao@codesourcery.com>
501 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
503 (arm_m_exception_cache, arm_m_exception_this_id)
504 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
505 (arm_m_exception_unwind): New.
506 (arm_gdbarch_init): Register arm_m_exception_unwind.
508 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
510 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
511 parameter COUNT, for pattern filling of memory regions.
514 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
516 * disasm.h (DISASSEMBLY_FILENAME): New macro.
517 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
518 to print_source_lines ().
519 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
521 * source.c (print_source_lines_base): Prefix source line with
522 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
524 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
526 * symtab.h (print_source_lines_flags): New enum.
527 * source.c (print_source_lines_base): Change noerror to flags.
528 (print_source_lines): Change noerror to flags.
530 2012-11-13 Pierre Muller <muller@sourceware.org>
532 ARI fixes: Avoid sprintf function use rule.
533 * charset.c (convert_between_encodings): Use xsnprintf.
534 * cli-out.c (cli_field_int): Likewise.
535 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
536 * expprint.c (op_name_standard): Likewise.
537 * frv-tdep.c (set_variant_num_gprs): Likewise.
538 (set_variant_num_fprs): Likewise.
539 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
540 * nto-tdep.c (nto_find_and_open_solib): Likewise.
541 (nto_init_solib_absolute_prefix): Likewise.
542 * source.c (init_source_path): Likewise.
543 (print_source_lines_base): Likewise.
544 * valprint.c (print_wchar): Likewise.
545 * mi/mi-out.c (mi_field_int): Likewise.
546 windows-nat.c (windows_pid_to_exec_file): Likewise.
547 (windows_create_inferior): Likewise.
548 (_initialize_check_for_gdb_ini): Likewise.
550 2012-11-12 Joel Brobecker <brobecker@adacore.com>
552 * frame.h (deprecated_frame_register_read): Renames
554 * frame.c (deprecated_frame_register_read): Renames
555 frame_register_read. Update all callers.
556 * i386-tdep.c: Update all callers of frame_register_read.
557 * infcmd.c: Likewise.
559 * mips-tdep.c: Likewise.
560 * mt-tdep.c: Likewise.
561 * sh64-tdep.c: Likewise.
563 2012-11-12 Joel Brobecker <brobecker@adacore.com>
565 * frame.h (frame_register_read): Remove FIXME comment.
566 * frame.c (frame_register_read): Add suggestion explaining
567 which function to use in place of this one.
569 2012-11-12 Tom Tromey <tromey@redhat.com>
571 * python/python.c (start_type_printers): Initialize 'result_obj'.
573 2012-11-12 Tom Tromey <tromey@redhat.com>
576 * data-directory/Makefile.in (PYTHON_FILES): Add
578 * python/lib/gdb/command/type_printers.py: New file.
579 * python/lib/gdb/command/types.py (TypePrinter): New class.
580 (_get_some_type_recognizers, get_type_recognizers,
581 apply_type_recognizers, register_type_printer): New
583 * python/py-objfile.c (objfile_object) <type_printers>: New
585 (objfpy_dealloc): Decref new field.
586 (objfpy_new): Set new field.
587 (objfpy_get_type_printers, objfpy_set_type_printers): New
589 (objfile_to_objfile_object): Set new field.
590 (objfile_getset): Add "type_printers".
591 * python/py-progspace.c (pspace_object) <type_printers>: New
593 (pspy_dealloc): Decref new field.
594 (pspy_new): Set new field.
595 (pspy_get_type_printers, pspy_set_type_printers): New functions.
596 (pspace_to_pspace_object): Set new field.
597 (pspace_getset): Add "type_printers".
598 * python/python.c (start_type_printers, apply_type_printers,
599 free_type_printers): New functions.
600 (_initialize_python): Set gdb.type_printers.
601 * python/python.h (start_type_printers, apply_type_printers,
602 free_type_printers): Declare.
603 * typeprint.c (type_print_raw_options, default_ptype_flags):
604 Update for new fields.
605 (do_free_global_table, create_global_typedef_table,
606 find_global_typedef): New functions.
607 (find_typedef_in_hash): Use find_global_typedef.
608 (whatis_exp): Use create_global_typedef_table. Change cleanup
610 * typeprint.h (struct type_print_options) <global_typedefs,
611 global_printers>: New fields.
613 2012-11-12 Tom Tromey <tromey@redhat.com>
615 * c-typeprint.c (find_typedef_for_canonicalize,
616 print_name_maybe_canonical): New functions.
617 (c_print_type): Look up type name.
618 (cp_type_print_derivation_info): Add flags argument. Use
619 print_name_maybe_canonical.
620 (cp_type_print_method_args): Add wrapping.
621 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
622 (c_type_print_template_args): New function.
623 (c_type_print_base): Change wrapping. Use
624 print_name_maybe_canonical.
625 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
627 * gdbtypes.c (types_equal): No longer static.
628 * gdbtypes.h (types_equal): Declare.
629 * typeprint.c (type_print_raw_options, default_ptype_flags):
631 (struct typedef_hash_table): New.
632 (hash_typedef_field, eq_typedef_field,
633 recursively_update_typedef_hash, add_template_parameters,
634 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
635 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
636 copy_typedef_hash, find_typedef_in_hash): New functions.
637 * typeprint.h (struct type_print_options) <local_typedefs>:
639 (recursively_update_typedef_hash, add_template_parameters,
640 create_typedef_hash, free_typedef_hash,
641 make_cleanup_free_typedef_hash, copy_typedef_hash,
642 find_typedef_in_hash): Declare.
644 2012-11-12 Tom Tromey <tromey@redhat.com>
646 * cp-support.c (inspect_type,
647 replace_typedefs_qualified_name, replace_typedefs): Add
648 finder, data arguments. Call as needed.
649 (cp_canonicalize_string_full): New function.
650 (cp_canonicalize_string_no_typedefs): Rewrite.
651 * cp-support.h (canonicalization_ftype): New typedef.
652 (cp_canonicalize_string_full): Declare.
654 2012-11-12 Tom Tromey <tromey@redhat.com>
657 * c-typeprint.c (c_type_print_base): Handle print_method and
658 print_typedefs flags.
659 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
660 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
662 * typeprint.c (type_print_raw_options, default_ptype_flags):
663 Update for new field.s
664 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
665 (setprinttypelist, showprinttypelist, print_methods,
666 print_typedefs): New globals.
667 (set_print_type, show_print_type, set_print_type_methods,
668 show_print_type_methods, set_print_type_typedefs,
669 show_print_type_typedefs): New functions.
670 (_initialize_typeprint): Update documentation. Add "print
671 type methods" and "print type typedefs" parameters.
672 * typeprint.h (struct type_print_options) <print_methods,
673 print_typedefs>: New fields.
675 2012-11-12 Tom Tromey <tromey@redhat.com>
677 * c-typeprint.c (cp_type_print_method_args): Add flags
678 argument. Call c_print_type, not type_print.
679 (c_type_print_base): Call c_print_type, not type_print.
682 2012-11-12 Tom Tromey <tromey@redhat.com>
684 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
685 to type-printing functions.
686 * ada-lang.h (ada_print_type): Add argument.
687 * ada-typeprint.c (print_array_type, print_variant_clauses,
688 print_variant_part, print_selected_record_field_types,
689 print_record_field_types, print_unchecked_union_type,
690 print_func_type, ada_print_type): Add flags argument.
691 (ada_print_typedef): Update.
692 * c-exp.y (OPERATOR conversion_type_id): Update.
693 * c-lang.h (c_print_type, c_type_print_base): Update.
694 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
695 c_type_print_modifier, c_type_print_args,
696 c_type_print_varspec_suffix, c_type_print_base): Add flags
698 * cp-valprint.c (cp_print_class_member): Update.
699 * dwarf2read.c (dwarf2_compute_name): Update.
700 * f-lang.h (f_print_type): Add argument.
701 * f-typeprint.c (f_print_type): Add flags argument.
702 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
703 * go-lang.h (go_print_type): Add argument.
704 * go-typeprint.c (go_print_type): Add flags argument.
705 * jv-lang.h (java_print_type): Add argument.
706 * jv-typeprint.c (java_type_print_base, java_print_type): Add
708 * language.c (unk_lang_print_type): Add flags argument.
709 * language.h (struct language_defn) <la_print_type>: Add flags
711 (LA_PRINT_TYPE): Likewise.
712 * m2-lang.h (m2_print_type): Add argument.
713 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
714 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
715 m2_unbounded_array, m2_record_fields): Add flags argument.
716 * p-lang.h (pascal_print_type, pascal_type_print_base,
717 pascal_type_print_varspec_prefix): Add argument.
718 * p-typeprint.c (pascal_print_type,
719 pascal_type_print_varspec_prefix, pascal_print_func_args,
720 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
722 * symmisc.c (print_symbol): Update.
723 * typeprint.c (type_print_raw_options, default_ptype_flags):
725 (type_print): Update.
726 * typeprint.h (struct type_print_options): New.
727 (type_print_raw_options): Declare.
728 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
730 2012-11-10 Keith Seitz <keiths@redhat.com>
732 * breakpoint.c (clear_command): Add cleanup for
733 sals.sals if an argument is given.
735 * linespec.c (parse_linespec): Do cleanups after
736 parsing a convenience variable.
738 2012-11-10 Keith Seitz <keiths@redhat.com>
741 * c-valprint.c (c_val_print): For character arrays
742 with "print null" option on, print ellipses if
743 the output is truncated and the next character is not \000.
744 * valprint.c (MAX_WCHARS): Define.
745 (WCHAR_BUFLEN): Likewise.
746 (WCHAR_BUFLEN_MAX): Likewise.
747 (struct converted_character): New structure.
748 (count_next_character): New function.
749 (print_converted_chars_to_obstack): New function.
750 (generic_printstr): Rewrite using count_next_character
751 and print_converted_chars_to_obstack.
753 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
755 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
756 while executing the gdb command.
757 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
758 are called from prompt_for_continue.
759 * tui/tui-io.c (tui_redisplay_readline): Likewise.
761 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
765 * tui/tui.c (tui_rl_command_key): Do not call execute_command
766 but insert the command to execute in readline's buffer.
768 2012-11-09 Tom Tromey <tromey@redhat.com>
770 * gdbarch.sh (target_gdbarch): Remove macro.
771 (get_target_gdbarch): Rename to target_gdbarch.
772 * gdbarch.c, gdbarch.h: Rebuild.
773 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
774 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
775 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
776 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
777 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
778 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
779 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
780 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
781 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
782 procfs.c, progspace.c, ravenscar-thread.c, record.c,
783 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
784 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
785 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
786 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
787 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
788 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
789 target-descriptions.c, target.c, target.h, tracepoint.c,
790 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
791 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
792 python/py-inferior.c, python/python.c: Update.
794 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
796 * source.c (print_source_lines_base): Add fullname field giving
797 full path to file in mi output.
798 * NEWS: Mention the new fullname field.
800 2012-11-09 Yao Qi <yao@codesourcery.com>
802 * NEWS: Mention the fix to the ambiguity of 'fo' command.
804 2012-11-09 Pedro Alves <palves@redhat.com>
808 * infrun.c: Include target-descriptions.h.
809 (follow_exec): Fetch new target description.
811 2012-11-09 Yao Qi <yao@codesourcery.com>
813 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
816 2012-11-09 Yao Qi <yao@codesourcery.com>
818 * breakpoint.c: Declare set_tracepoint_count.
819 (install_breakpoint): Call set_tracepoint_count if B is a
821 (trace_command): Don't call set_tracepoint_count. Re-indent.
822 (strace_command, ftrace_command):
823 (create_tracepoint_from_upload): Likewise.
825 2012-11-09 Pedro Alves <palves@redhat.com>
827 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
828 (get_target_gdbarch) <gdbarch.h>: New function.
829 (startup_gdbarch) <gdbarch.h>: Declare.
830 <gdbarch.c> (target_gdbarch): Delete.
831 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
832 current inferior's gdbarch.
833 <gdbarch.c> (get_target_gdbarch): New function.
834 * inferior.c: Include target-descriptions.h.
835 (free_inferior): Free target description info.
836 (add_inferior_with_spaces): Set the inferior's initial
838 (clone_inferior_command): Copy the original inferior's target
839 description if it was user specified.
840 (initialize_inferiors): Add comment.
841 * inferior.h (struct target_desc_info): Forward declare.
842 (struct inferior) <gdbarch>: New field.
843 * linux-nat.c: Include target-descriptions.h.
844 (linux_child_follow_fork): Copy the parent's architecture and
845 target description to the child.
846 * target-descriptions.c: Include inferior.h.
847 (struct target_desc_info): New structure, holding the equivalents
849 (target_desc_fetched, current_target_desc)
850 (target_description_filename): ... these removed globals.
851 (get_tdesc_info, target_desc_info_from_user_p)
852 (copy_inferior_target_desc_info, target_desc_info_free): New.
853 (target_desc_fetched, current_target_desc)
854 (target_description_filename): Reimplemented as convenience
856 (tdesc_filename_cmd_string): New global.
857 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
858 tdescs filename ..." commands to the per-inferior equivalent.
859 (show_tdesc_filename_cmd): Get the value to show from the
860 per-inferior description filename.
861 (_initilize_target_descriptions): Change the "set/show tdesc
862 filename" commands' variable.
863 * target-descriptions.h (struct target_desc, struct target_desc_info)
864 (struct inferior): Forward declare.
865 (target_find_description, target_clear_description)
866 (target_current_description): Adjust comments.
867 (copy_inferior_target_desc_info, target_desc_info_free)
868 (target_desc_info_from_user_p). Declare.
870 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
872 * tui/tui-hooks.c (tui_about_to_proceed): New function.
873 (tui_target_wait_hook): Remove.
874 (tui_install_hooks): Install the about_to_proceed observer.
875 (tui_remove_hooks): And remove it here.
877 2012-11-08 Tom Tromey <tromey@redhat.com>
879 * linux-tdep.c (linux_make_siginfo_note): New function.
880 (linux_make_corefile_notes): Use it.
881 * corelow.c (get_core_siginfo): New function.
882 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
884 2012-11-08 Tom Tromey <tromey@redhat.com>
887 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
888 (zlib_decompress_section): Remove.
889 (gdb_bfd_map_section): Only check for compressed section
890 in mmap case. Use bfd_get_full_section_contents.
891 * osabi.c (check_note): Add 'sectsize' argument. Read
893 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
894 section data. Update for check_note change.
895 * xcoffread.c (xcoff_initial_scan): Use
896 bfd_get_full_section_contents.
897 * py-auto-load.c (auto_load_section_scripts): Use
898 bfd_get_full_section_contents.
899 * contrib/cc-with-tweaks.sh: Add -Z option.
901 2012-11-08 Tom Tromey <tromey@redhat.com>
903 * python/py-bpevent.c: Include defs.h.
904 * python/py-continueevent.c: Include defs.h.
905 * python/py-event.c: Include defs.h.
906 * python/py-event.h: Don't include defs.h.
907 * python/py-events.h: Don't include defs.h.
908 * python/py-evts.c: Include defs.h.
909 * python/py-exitedevent.c: Include defs.h.
910 * python/py-newobjfileevent.c: Include defs.h.
911 * python/py-signalevent.c: Include defs.h.
912 * python/py-stopevent.c: Include defs.h.
913 * python/py-threadevent.c: Include defs.h.
915 2012-11-08 Pierre Muller <muller@sourceware.org>
917 * update-web-ari.sh (print_heading): Add number of files
919 (nb_files): New variable counting the number of sources
920 files found by gdb_find.sh script.
921 (debug_awk): New variable to allow extra debug output.
922 (indexes): Add more information if DEBUG_AWK is set.
924 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
926 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
927 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
928 following the change in PLT call stubs on linker.
930 2012-11-08 Pierre Muller <muller@sourceware.org>
932 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
934 (AWK): Use = instead of == for sh test to avoid warning.
935 (Linux rule): Correct [:digit] into [[:digit:]].
936 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
937 (vasprintf rule): Adapt to common subdirectory moves.
938 (xasprintf rule): Idem.
939 (xvasprintf rule): Idem.
940 (var_boolean rule): Accept occurence in == or != test.
942 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
944 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
946 * tui/tui-hooks.c (tui_inferior_exit): New function.
947 (tui_detach_hook): Remove.
948 (tui_install_hooks): Install the inferior exit observer.
949 (tui_remove_hooks): Remove it.
951 2012-11-08 Yao Qi <yao@codesourcery.com>
954 * source.c (_initialize_source): Call add_com_alias to abbreviate
955 'forward-search' as 'fo'.
957 2012-11-07 Pedro Alves <palves@redhat.com>
959 * arm-tdep.c: Make defs.h be the first include.
960 * coff-pe-read.c: Ditto.
964 * ppcnbsd-nat.c: Ditto.
965 * ada-varobj.h: Don't include defs.h.
966 * i386-darwin-tdep.h: Ditto.
969 2012-11-07 Pedro Alves <palves@redhat.com>
971 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
974 2012-11-07 Pierre Muller <muller@sourceware.org>
976 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
977 File already uses "gdb_dirent.h" header.
979 2012-11-07 Yao Qi <yao@codesourcery.com>
981 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
984 2012-11-06 Tom Tromey <tromey@redhat.com>
986 * target.h (inferior_has_forked, inferior_has_vforked)
987 (inferior_has_execd, inferior_has_called_syscall): Remove
990 2012-11-06 Pierre Muller <muller@sourceware.org>
992 * remote.c (remote_insert_hw_breakpoint): ARI fix,
993 add missing internalization markup.
995 2012-11-06 Pedro Alves <palves@redhat.com>
999 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1001 2012-11-06 Pierre Muller <muller@sourceware.org>
1003 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1006 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1008 * gnulib/update-gnulib.sh: New script.
1010 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1012 * MAINTAINERS: Update my email address.
1014 2012-11-05 Tom Tromey <tromey@redhat.com>
1016 * frame.c (put_frame_register): Don't use temporary buffer.
1018 2012-11-05 Pedro Alves <palves@redhat.com>
1020 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1021 child. Clear 'pending_detach'.
1022 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1023 'pending_detach' in the vfork parent.
1025 2012-11-05 Doug Evans <dje@google.com>
1027 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1028 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1029 * dwarf2read.c: #include "elf-bfd.h".
1030 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1031 (dwop_section_names): Renamed from dwo_section names. All uses
1032 updated. Add entries for .debug_cu_index, .debug_tu_index.
1033 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1035 (struct dwp_sections): New type.
1036 (struct virtual_dwo_sections): New type.
1037 (struct dwp_hash_table): New type.
1038 (struct dwp_file): New type.
1039 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1040 read in. Handle DWOs coming from DWP files.
1041 (lookup_dwo_file_slot): New function.
1042 (dwarf2_locate_dwo_sections): Move definition closer to use.
1043 (create_dwo_debug_info_hash_table_reader): Renamed from
1044 create_debug_info_hash_table_reader. All callers updated.
1045 (create_dwo_debug_info_hash_table): Renamed from
1046 create_debug_info_hash_table. All callers updated.
1047 (create_dwp_hash_table): New function.
1048 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1049 (lookup_dwo_in_dwp): New function.
1050 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1051 is_dwp. All callers updated.
1052 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1053 (open_and_init_dwo_file): Renamed from init_dwo_file.
1054 All callers updated.
1055 (lookup_dwo_file): Delete.
1056 (dwarf2_locate_dwp_sections): New function.
1057 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1058 (allocate_dwp_loaded_cutus_table): New function.
1059 (open_and_init_dwp_file): New function.
1060 (lookup_dwo_cutu): New function.
1061 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1063 2012-11-03 Yao Qi <yao@codesourcery.com>
1066 * breakpoint.c (trace_pass_set_count): Call
1067 observer_notify_breakpoint_modified instead of
1068 observer_notify_tracepoint_modified.
1069 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1071 2012-11-02 Tom Tromey <tromey@redhat.com>
1073 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1074 argument to complete_on_enum.
1076 2012-11-02 Tom Tromey <tromey@redhat.com>
1078 * configure: Rebuild.
1079 * configure.ac (build_warnings): Add -Wempty-body.
1080 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1081 * remote.c (handle_notification): Use braces for empty 'else' body.
1082 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1084 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1086 * solib-som.c (som_relocate_section_addresses): Use braces
1087 for empty 'else' body.
1088 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1089 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1091 2012-11-02 Pedro Alves <palves@redhat.com>
1095 * infrun.c (handle_inferior_event)
1096 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1097 null_ptid before handling a vfork child exec or exit. Switch to
1098 the event ptid afterwards.
1100 2012-11-02 Yao Qi <yao@codesourcery.com>
1102 * std-operator.def: Remove OP_LABELED.
1103 * eval.c: Remove the declaration of 'get_label'.
1104 (get_label): Remove.
1105 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1107 Remove local variable 'variantno' and related code.
1108 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1110 * expprint.c (print_subexp_standard): Likewise.
1111 (dump_subexp_body_standard): Likewise.
1112 * parse.c (operator_length_standard): Likewise.
1114 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1116 Incorporate ARI web page generator into GDB sources.
1117 * contrib/ari/create-web-ari-in-src.sh: New file.
1118 * contrib/ari/gdb_ari.sh: New file.
1119 * contrib/ari/gdb_find.sh: New file.
1120 * contrib/ari/update-web-ari.sh: New file.
1122 2012-10-31 Tom Tromey <tromey@redhat.com>
1124 * gdbarch.c: Rebuild.
1125 * gdbarch.sh: Remove references to gdbarch_swap.
1126 * corelow.c (core_open): Remove obsolete comment.
1128 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1131 * c-typeprint.c (c_print_type): Don't print a space for vector
1132 types, this is handled within the suffix.
1133 (c_type_print_varspec_suffix): Add a space to vector suffix.
1135 2012-10-26 Pedro Alves <palves@redhat.com>
1137 * amd64-tdep.c (amd64_relocate_instruction): Use
1138 store_unsigned_integer instead of memcpy.
1139 * i386-tdep.c (i386_relocate_instruction): Ditto.
1141 2012-10-26 Pedro Alves <palves@redhat.com>
1143 * infrun.c (handle_inferior_event): Merge handling of
1144 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1147 2012-10-26 Pedro Alves <palves@redhat.com>
1149 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1152 2012-10-26 Pedro Alves <palves@redhat.com>
1154 * target.c (target_waitstatus_to_string): Handle
1155 TARGET_WAITKIND_VFORK_DONE.
1157 2012-10-26 Pedro Alves <palves@redhat.com>
1159 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1160 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1162 2012-10-24 Tristan Gingold <gingold@adacore.com>
1164 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1167 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1169 * ravenscar-thread.c (ravenscar_wait): Only update the list
1170 of threads and inferior_ptid if the inferior is still alive.
1172 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1174 * ada-lang.c (is_known_support_routine): Use lbasename when
1175 matching the symtab's filename against
1176 known_runtime_file_name_patterns.
1178 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1180 * ada-lang.c (ada_same_array_size_p): New function.
1181 (ada_promote_array_of_integrals): New function.
1182 (coerce_for_assign): Add handling of arrays where the elements
1183 are integrals of a smaller size than the size of the target
1186 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1188 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1189 against maximum exponent value.
1191 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1193 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1196 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1198 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1199 strip typedef layer when computing the fixed type's field type,
1200 only when computing its size.
1202 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1205 * i386-tdep.c (i386_return_value): Handle complex double and long
1208 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1210 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1211 New local variable args_len.
1212 Quote the name of the executable when computing the command line.
1214 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1219 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1221 * amd64-tdep.c (amd64_classify): Classify complex types.
1222 (amd64_return_value): Handle the COMPLEX_X87 class.
1224 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1226 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1227 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1229 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1231 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1233 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1234 to amd64_windows_auto_wide_charset.
1236 2012-10-23 Yao Qi <yao@codesourcery.com>
1238 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1239 * event-top.h: Remove its declaration.
1240 (async_request_quit): Call mark_async_signal_handler instead of
1241 mark_async_signal_handler_wrapper.
1242 (async_do_nothing, async_disconnect): Likewise.
1243 (async_stop_sig): Likewise.
1244 * remote.c (handle_remote_sigint): Likewise.
1245 (handle_remote_sigint_twice): Likewise.
1247 2012-10-23 Yao Qi <yao@codesourcery.com>
1249 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1250 with 'static struct async_signal_handler *'.
1251 (sighup_token, sigquit_token, sigstp_token): Likewise.
1253 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1255 * gdbarch.sh (function_list): Use 'pstring' when printing
1256 a variable which could return NULL.
1257 * gdbarch.c: Regenerate.
1259 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1260 Tom Tromey <tromey@redhat.com>
1262 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1263 inneffective if condition by gdb assertion. Add function
1264 description comment.
1266 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1268 * parser-defs.h (struct exp_descriptor): Document constraint
1269 on return value for "op_name" callbacks.
1271 2012-10-18 Tom Tromey <tromey@redhat.com>
1273 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1274 * symtab.c (iterate_over_some_symtabs): Constify.
1275 * source.h (symtab_to_fullname): Return 'const char *'.
1276 * source.c (symtab_to_fullname): Return 'const char *'.
1277 * python/py-symtab.c (stpy_fullname): Constify.
1278 * cli/cli-cmds.c (edit_command): Constify.
1279 * breakpoint.c (print_breakpoint_location)
1280 (update_static_tracepoint): Constify.
1282 2012-10-18 Tom Tromey <tromey@redhat.com>
1284 * breakpoint.c (compare_breakpoints): Fix comparison.
1286 2012-10-18 Tom Tromey <tromey@redhat.com>
1288 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1289 gdb_wchar_t to convert_between_encodings.
1291 2012-10-17 Yao Qi <yao@codesourcery.com>
1293 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1294 more parameter 'inferior'.
1295 * corefile.c (write_memory_with_notification): Caller update.
1297 * mi/mi-cmd-var.c: Include "mi-main.h".
1298 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1299 to 1 and restore it later.
1300 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1301 and "data-write-memory-bytes.
1302 * mi/mi-interp.c: Include objfiles.h.
1303 (mi_interpreter_init): Call observer_attach_memory_changed.
1304 (mi_memory_changed): New.
1305 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1308 * NEWS: Mention new MI notification "memory-changed".
1310 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1312 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1314 2012-10-15 Doug Evans <dje@google.com>
1316 New option -nh: inhibit loading of ~/.gdbinit.
1317 * NEWS: Mention -nh.
1318 * main.c (captured_main): Recognize and process -nh.
1319 (print_gdb_help): Mention -nh.
1320 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1322 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1326 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1328 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1329 nor pc_regnum_from_eax.
1330 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1331 nor pc_regnum_from_eax.
1333 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1335 Fix entry values resolving in inlined frames.
1336 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1337 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1340 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1342 * configure.ac: Build with -DMS_WIN64 if building with Python
1343 enabled using GCC on amd64-windows.
1344 * configure: Regenerate.
1346 2012-10-15 Tom Tromey <tromey@redhat.com>
1349 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1352 2012-10-15 Tom Tromey <tromey@redhat.com>
1355 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1357 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1359 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1360 reset thread numbering back to 1.
1362 2012-10-11 Doug Evans <dje@google.com>
1364 PR breakpoints/14643.
1365 * linespec.c (struct ls_parser): New member keyword_ok.
1366 (linespec_lexer_lex_string): Add comment.
1367 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1369 (parse_linespec): Set keyword_ok.
1371 2012-10-10 Doug Evans <dje@google.com>
1373 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1374 "0x" prefix on address in log message.
1376 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1377 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1378 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1379 (lookup_dwo_file): Add const to dwo_name parameter.
1380 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1382 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1384 Fix crash during stepping on ppc32.
1385 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1388 2012-10-03 Doug Evans <dje@google.com>
1391 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1393 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1395 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1396 output and use uint32_t not long to ensure 4 byte size.
1398 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1400 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1403 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1405 * target.c (simple_search_memory): Include access length in
1408 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1409 Edjunior Machado <emachado@linux.vnet.ibm.com>
1412 * solib.c (solib_find): Prevent GDB from loading native libraries when
1413 debugging a cross-target corefile.
1415 2012-09-28 selven <pcthegreat@gmail.com>
1417 Make definition match declaration.
1419 * regcache.c (regcache_register_status): Change return type to
1420 enum register_status.
1422 2012-09-28 Yao Qi <yao@codesourcery.com>
1424 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1425 write_memory_with_notification instead of write_memory.
1426 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1427 instead of target_write_memory.
1429 2012-09-28 Yao Qi <yao@codesourcery.com>
1431 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1432 when the length of content is not an even number.
1434 2012-09-27 Tom Tromey <tromey@redhat.com>
1436 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1437 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1439 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1441 * sol-thread.c (sol_thread_fetch_registers)
1442 (sol_thread_store_registers): Delete commented out code.
1444 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1446 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1447 Move these functions to sparc-sol-thread.c.
1448 * sparc-sol-thread.c: New file.
1449 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1450 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1452 * configure: Regenerate.
1454 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1456 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1457 Remove commented-out code.
1459 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1461 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1462 Enable this code for sparc hosts only.
1464 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1466 * procfs.h (procfs_find_LDT_entry): Add declaration.
1467 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1468 function procfs_find_LDT_entry.
1470 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1472 * procfs.c (proc_get_LDT_entry): Make static.
1474 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1476 * procfs.c (proc_find_memory_regions): Fix declaration.
1478 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1480 * amd64-tdep.c (amd64_return_value): Revert previous change
1481 that used TYPE_LENGTH directly.
1482 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1483 (bfin_store_return_value): Likewise.
1484 * cris-tdep.c (cris_store_return_value): Likewise.
1485 (cris_extract_return_value): Likewise.
1486 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1487 * hppa-tdep.c (hppa64_return_value): Likewise.
1488 * lm32-tdep.c (lm32_store_return_value): Likewise.
1489 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1490 * spu-tdep.c (spu_value_from_register): Likewise.
1491 * vax-tdep.c (vax_return_value): Likewise.
1493 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1495 * gdbtypes.c (lookup_array_range_type): Expand parameters
1496 LOW_BOUND and HIGH_BOUND to LONGEST.
1497 (lookup_string_range_type): Likewise.
1498 * gdbtypes.h (lookup_array_range_type): Likewise.
1499 (lookup_string_range_type): Likewise.
1500 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1501 Expand HIGHBOUND to ssize_t.
1502 (value_string): Likewise.
1503 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1504 (value_string): Likewise.
1506 2012-09-27 Yao Qi <yao@codesourcery.com>
1508 PR breakpoints/13898
1509 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1510 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1511 per breakpoint type.
1513 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1515 * procfs.c: Add gdb_bfd header.
1516 * rs6000-nat.c: Likewise.
1517 * solib-pa64.c: Likewise.
1518 * spu-linux-nat.c: Likewise.
1519 * windows-nat.c: Likewise.
1521 2012-09-26 Tom Tromey <tromey@redhat.com>
1523 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1525 2012-09-26 Tom Tromey <tromey@redhat.com>
1527 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1528 (read_common_block): Handle child DIEs with
1529 DW_AT_data_member_location.
1530 (new_symbol_full): Add special case for common blocks.
1532 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1533 Tom Tromey <tromey@redhat.com>
1535 * dwarf2read.c (read_common_block): Rewrite.
1536 (new_symbol_full): Handle DW_TAG_common_block.
1537 * f-lang.c (head_common_list, find_common_for_function):
1539 * f-lang.h (struct common_entry, struct saved_f77_common,
1540 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1541 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1542 BLANK_COMMON_NAME_LOCAL): Remove.
1543 (struct common_block): New.
1544 * f-valprint.c (list_all_visible_commons): Remove.
1545 (info_common_command_for_block): New function.
1546 (info_common_command): Use it.
1547 * stack.c (iterate_over_block_locals): Special case for
1548 COMMON_BLOCK_DOMAIN.
1549 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1551 (struct general_symbol_info) <value.common_block>: New field.
1552 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1554 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1555 Tom Tromey <tromey@redhat.com>
1557 * f-lang.c (allocate_saved_bf_node,
1558 allocate_saved_function_node, allocate_saved_f77_common_node,
1559 allocate_common_entry_node, tail_common_list, current_common,
1560 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1561 tmp_bf_ptr, add_common_block, add_common_entry,
1562 find_first_common_named, patch_common_entries,
1563 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1564 global_remote_debug, get_bf_for_fcn, saved_function_list,
1565 saved_function_list_end, clear_function_list, struct saved_fcn,
1566 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1567 SAVED_BF, SAVED_BF_PTR): Remove.
1568 * f-lang.h (tail_common_list, current_common,
1569 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1570 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1571 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1572 real_main_c_value): Remove.
1573 * f-valprint.c (there_is_a_visible_common_named): Remove.
1575 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1577 * breakpoint.c (update_global_location_list): Ignore previous
1578 duplicate status of a breakpoint when starting a new scan for
1579 duplicate breakpoints.
1581 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1582 PR breakpoints/14419
1583 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1584 support LLVM compiler.
1586 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1588 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1589 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1590 (bfin_store_return_value): Likewise.
1591 * cris-tdep.c (cris_store_return_value): Likewise.
1592 (cris_extract_return_value): Likewise.
1593 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1594 * hppa-tdep.c (hppa64_return_value): Likewise.
1595 * lm32-tdep.c (lm32_store_return_value): Likewise.
1596 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1597 * spu-tdep.c (spu_value_from_register): Likewise.
1598 * vax-tdep.c (vax_return_value): Likewise.
1600 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1602 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1603 parameter LEN to ssize_t.
1605 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1607 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1609 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1611 (alpha_store_return_value): Likewise.
1612 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1613 (amd64_push_arguments): Likewise.
1614 * ax-gdb.c (gen_trace_static_fields): Likewise.
1615 (gen_traced_pop): Likewise.
1616 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1617 * breakpoint.c (update_watchpoint): Likewise.
1618 * findcmd.c (parse_find_args): Use local variable for type
1620 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1621 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1622 (h8300_store_return_value): Likewise.
1623 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1624 Use i386_darwin_arg_type_alignment directly.
1625 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1626 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1627 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1628 (m68hc11_extract_return_value): Likewise.
1629 * mep-tdep.c (mep_push_dummy_call): Likewise.
1630 * printcmd.c (float_type_from_length): Likewise.
1631 * s390-tdep.c (s390_value_from_register): Likewise.
1632 * stack.c (read_frame_arg): Likewise.
1633 * tracepoint.c (encode_actions_1): Likewise.
1634 * valops.c (value_fetch_lazy): Use local variable for type
1635 instead of length. Use TYPE_LENGTH directly.
1636 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1638 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1640 * symtab.c (skip_prologue_sal): Fix typo in comment.
1642 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1644 * linespec.c (create_sals_line_offset): Fix typo in comment.
1646 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1648 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1649 use plongest to print the array size.
1651 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1653 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1654 * p-valprint.c (pascal_type_print_base): Likewise.
1656 2012-09-22 Yao Qi <yao@codesourcery.com>
1658 * remote.c (remote_get_trace_status): Remove setting default
1659 values of fields of 'ts'.
1661 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1663 Fix internal error on canonicalization of clang types.
1664 * cp-name-parser.y (operator): New comment at make_operator call for
1665 new, delete, new[] and delete[].
1666 (exp): Use "sizeof ". Add new comment at make_operator call.
1668 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1670 Fix disassemble without parameters in tailcall frame.
1671 * cli/cli-cmds.c (disassemble_current_function): Use
1672 get_frame_address_in_block.
1674 2012-09-21 Tom Tromey <tromey@redhat.com>
1676 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1677 TYPE_CODE_UNION>: Unify, removing a goto.
1679 2012-09-21 Tom Tromey <tromey@redhat.com>
1681 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1683 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1685 * findvar.c (read_frame_register_value): Mark the result value as
1686 optimized out if any of the input registers have been optimized out.
1688 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1690 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1692 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1694 * eval.c (evaluate_subexp_standard): Eliminate single-use
1697 2012-09-21 Yao Qi <yao@codesourcery.com>
1699 * mi/mi-interp.c: Declare mi_record_changed.
1700 (mi_interpreter_init): Call observer_attach_record_changed.
1701 (mi_record_changed): New.
1702 * record.c (record_open): Call observer_notify_record_changed.
1703 (cmd_record_stop): Call observer_notify_record_changed.
1706 2012-09-20 Tom Tromey <tromey@redhat.com>
1709 * python/python.c (finalize_python): New function.
1710 (_initialize_python): Make a final cleanup.
1712 2012-09-19 Doug Evans <dje@google.com>
1714 * buildsym.h (param_symbols): Delete, unused.
1715 (context_stack): Delete member "params", unused.
1716 * buildsym.c (push_context): Update.
1717 * dwarf2read.c (read_func_scope): Update.
1719 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1721 * sh-tdep.c (sh_register_convert_to_virtual)
1722 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1723 all callers. Just do a memcpy if not the little-endian case.
1725 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1726 set_gdbarch_double_format and set_gdbarch_long_double_format.
1727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1728 set_gdbarch_double_format.
1729 * sh-tdep.c (sh_gdbarch_init): Likewise.
1731 * NEWS: Document the removal of SH's 'regs' command.
1732 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1735 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1737 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1740 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1742 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1743 language when iterating over symbols.
1745 2012-09-18 Yao Qi <yao@codesourcery.com>
1747 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1748 (mi_interpreter_init): Call observer_attach_tsv_created and
1749 observer_attach_tsv_deleted.
1750 (mi_tsv_created, mi_tsv_deleted): New.
1751 * tracepoint.c (delete_trace_state_variable): Call
1752 observer_notify_tsv_deleted.
1753 (trace_variable_command): Call observer_notify_tsv_created.
1754 (delete_trace_variable_command): Call
1755 observer_notify_tsv_deleted.
1756 (create_tsv_from_upload): Call observer_notify_tsv_created.
1759 2012-09-18 Yao Qi <yao@codesourcery.com>
1761 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1762 if traceframe changed.
1763 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1765 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1766 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1767 'traceframe_changed'.
1768 (mi_traceframe_changed): New.
1769 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1771 * NEWS: Mention the new MI notification.
1773 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1775 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1777 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1779 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1780 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1781 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1782 Extend code also for PaX support. Convert all gdb_assert to warning
1785 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1787 Implement auto-load user conveniences suggested by Doug Evans.
1788 * auto-load.c: Include top.h.
1789 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1790 (_initialize_auto_load): New variable scripts_directory_help. Mention
1791 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1792 scripts-directory. Document in online help one can use also files for
1793 set auto-load safe-path.
1794 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1795 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1797 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1799 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1802 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1804 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1805 ELTLEN and use TYPE_LENGTH directly.
1806 (m2_val_print): Likewise.
1807 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1808 variable LEN and use TYPE_LENGTH directly.
1809 (m68k_svr4_store_return_value): Likewise.
1810 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1811 ARGLEN and use TYPE_LENGTH directly.
1812 (mips_o64_push_dummy_call): Likewise.
1813 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1814 variable LENGTH and use TYPE_LENGTH directly.
1815 (s390_function_arg_float): Likewise.
1816 (s390_function_arg_integer): Likewise.
1817 (s390_push_dummy_call): Likewise.
1818 (s390_return_value_convention): Likewise.
1819 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1820 TYPE_LENGTH directly.
1822 2012-09-17 Yao Qi <yao@codesourcery.com>
1824 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1825 Update comment to add_setshow_integer_cmd.
1826 * cli/cli-setshow.c (do_set_command): Handle case
1827 'var_zuinteger_unlimited'.
1828 (do_show_command): Likewise.
1829 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1830 for command 'remotetimeout'.
1831 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1833 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1834 for command 'set listsize'.
1836 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1838 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1841 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1844 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1845 (frame_pop): Drop also TAILCALL_FRAME frames.
1846 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1848 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1849 Pedro Alves <palves@redhat.com>
1852 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1853 function start if we are already at function start. Both for
1854 reverse-next and for reverse-step into function without line number
1857 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1859 Code cleanup - rename 'inline' depth to 'artificial' depth.
1860 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1861 frame_id_artificial_p, extend the comment.
1862 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1863 * frame.c (fprint_frame_id): Rename at a user, change debug output
1864 text to "artificial=".
1865 (skip_inlined_frames): Rename to ...
1866 (skip_artificial_frames): ... here. Extend the comment.
1867 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1868 (frame_id_inlined_p): Rename to ...
1869 (frame_id_artificial_p): ... here. Rename at a user.
1870 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1871 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1873 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1875 (frame_id_inlined_p): Rename to ...
1876 (frame_id_artificial_p): ... here.
1877 * inline-frame.c (inline_frame_this_id): Rename at a user.
1879 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1881 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1882 vector variables using vector_size syntax rather than array
1885 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1887 * valarith.c (value_concat): Replace unsafe ALLOCA with
1890 2012-09-14 Pedro Alves <palves@redhat.com>
1892 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1894 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1896 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1897 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1898 data-directory as appropriate.
1900 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1902 * printcmd.c (ui_printf): Eliminate single-use variable
1905 2012-09-14 Yao Qi <yao@codesourcery.com>
1906 Pedro Alves <palves@redhat.com>
1908 * valops.c (value_assign): Move observer_notify_target_changed
1909 below to replace reinit_frame_cache.
1911 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1913 Refactor Python "gdb" module into a proper Python package, by
1914 introducing a new "_gdb" module for code implemented in C, and
1915 using reload/__import__ instead of exec.
1916 * python/lib/gdb/__init__.py: Import * from _gdb.
1917 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1918 prompt_hook, sys.argv): Moved from finish_python_initialization.
1919 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1920 (packages, auto_load_packages): New list and function replacing
1921 module_dict and auto-loading code, using __file__ instead of
1922 gdb.PYTHONDIR and reload/__import__ instead of exec.
1923 (GdbSetPythonDirectory): Replacing function of the same name
1924 from finish_python_initialization, using reload/__import__ instead
1925 of exec, as well as call auto_load_packages.
1926 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1927 gdb_python_module and not gdb_module.
1928 * python/python-internal.h (gdb_python_module): Declare.
1929 * python/python.c (gdb_python_module): New global.
1930 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1931 (_initialize_python): Rename gdb module to _gdb.
1932 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1933 (finish_python_initialization): Move Python code to
1934 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1937 2012-09-13 Pedro Alves <palves@redhat.com>
1939 * Makefile.in (COMMON_OBS): Add registry.o.
1940 * registry.c: New file.
1941 * registry.h (struct registry_container): Declare.
1942 (registry_data_callback): New typedef.
1943 (struct registry_data, struct registry_data_registration, struct
1944 registry_data_registry): New type.
1945 (register_data_with_cleanup, registry_alloc_data)
1946 (registry_callback_adaptor, registry_clear_data)
1947 (registry_container_free_data, registry_set_data, registry_data):
1949 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1950 the new common structures and functions.
1951 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1954 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1956 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1957 there is an error inserting hardware breakpoints and use the
1958 error message from the target.
1960 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1961 Catch this exception and print the error message contained within. Do not
1962 print the default hardware error breakpoint message in this case.
1964 2012-09-12 Doug Evans <dje@google.com>
1966 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1969 2012-09-11 Doug Evans <dje@google.com>
1971 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1972 .gdb_index symbol attributes if there are none.
1974 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1976 * symtab.h (struct minimal_symbol) [has_size]: New field.
1977 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1978 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1979 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1980 minimal symbols if the symbol's size is actually known.
1981 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1982 of msymbol's size field. Add comment.
1983 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1984 SET_MSYMBOL_SIZE to set the minimal symbol size.
1986 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1988 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1989 minimal_symbol struct object, rather than setting some of its
1992 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1994 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1995 passed_a_ptr flag when displaying typedef types.
1997 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1999 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2000 the optimized_out flag is preserved.
2002 2012-09-10 Anthony Green <green@moxielogic.com>
2004 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2005 prologue changes in GCC.
2007 2012-09-10 Keith Seitz <keiths@redhat.com>
2010 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2011 (BOOL_CONVERSION_BADNESS): ... this.
2012 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2013 (rank_one_type): Allow all boolean conversions
2014 permitted by the standard.
2016 2012-09-06 Tom Tromey <tromey@redhat.com>
2018 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2019 Don't decref py_objfile.
2021 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2023 Do not enable -lmcheck by default when Python is enabled with
2025 * configure.ac: (python_has_threads) New variable, by testing
2026 if WITH_THREAD is defined in Python.h.
2027 Move --enable-lmcheck after --with-python.
2028 Do not enable -lmcheck by default if python_has_threads=yes.
2029 Warn if --enable-lmcheck and python_has_threads=yes.
2030 * configure: Regenerate.
2032 2012-08-31 Yao Qi <yao@codesourcery.com>
2034 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2035 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2036 Update some commands.
2037 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2038 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2041 2012-08-31 Yao Qi <yao@codesourcery.com>
2043 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2045 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2047 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2049 2012-08-29 Doug Evans <dje@google.com>
2051 * main.c (print_gdb_help): Remove reference to
2052 --use-deprecated-index-sections.
2054 2012-08-28 Yao Qi <yao@codesourcery.com>
2056 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2057 (init_cmds): Call add_setshow_uinteger_cmd for command
2058 'max-user-call-depth'.
2059 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2060 declaration of 'max_user_call_depth'.
2061 * frame.c (backtrace_limit): Add 'unsigned'.
2062 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2064 * remote.c (remoteaddresssize): Add 'unsigned'.
2065 (remote_address_masked): Change local var 'address_size' to
2067 (_initialize_remote): Call add_setshow_uinteger_cmd for
2068 'remoteaddresssize'.
2069 * top.c (history_size): Add 'unsigned'.
2070 (show_commands): Change local variables to 'unsigned'.
2071 (set_history_size_command): Don't check history_size is negative.
2072 Adjust the condition to call unstifle_history and set history_size
2075 2012-08-28 Pedro Alves <palves@redhat.com>
2079 * infcmd.c (default_print_one_register_info): New, factored out
2080 from default_print_registers_info.
2081 (default_print_registers_info): Use it. Mark value unavailable if
2083 (registers_info): Print user registers with
2084 default_print_one_register_info.
2086 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2089 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2090 is not NULL before referencing it.
2092 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2094 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2095 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2098 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2099 Jan Kratochvil <jan.kratochvil@redhat.com>
2101 * auto-load.c (auto_load_objfile_script): Rename to ...
2102 (auto_load_objfile_script_1): ... here, change variable realname to
2103 parameter realname, document it, add return value, add variable retval.
2104 (auto_load_objfile_script): New function.
2106 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2108 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2109 followed by a whitespace.
2111 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2114 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2115 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2116 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2119 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2121 * memattr.c (create_mem_region): Fix memory region overlapping
2124 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2126 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2127 with xmalloc/cleanup.
2128 * mt-tdep.c (mt_push_dummy_call): Likewise.
2129 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2130 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2132 2012-08-24 Yao Qi <yao@codesourcery.com>
2134 * jv-exp.y (push_expression_name): Add "." at the end of error
2137 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2139 Document how to return from "python-interactive" to GDB.
2140 * python/python.c (_initialize_python): Update documentation.
2142 2012-08-23 Pedro Alves <palves@redhat.com>
2144 * infrun.c (_initialize_infrun) <handle command help text>:
2145 Mention that multiple signals are supported.
2147 2012-08-23 Pedro Alves <palves@redhat.com>
2149 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2152 2012-08-23 Yao Qi <yao@codesourcery.com>
2154 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2155 (tfind_1): Don't call registers_changed, set_traceframe_num,
2156 and clear_traceframe_info.
2157 Call set_current_traceframe.
2158 (set_current_traceframe): call set_traceframe_num.
2160 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2162 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2163 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2165 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2167 Enable readline in Python in a GDB-specific way and block the
2168 standard Python readline module to prevent conflicts with GDB.
2169 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2170 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2171 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2172 * python/py-gdb-readline.c: New file.
2173 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2175 * python/python.c (_initialize_python): Call
2176 gdbpy_initialize_gdb_readline.
2178 2012-08-22 Keith Seitz <keiths@redhat.com>
2180 * defs.h: Include build-gnulib/config.h
2182 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2184 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2187 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2189 Add a new "python-interactive" command that starts a standard
2190 Python interactive prompt with "pi" as alias, and add "py" as
2191 an alias to "python".
2192 * NEWS: Mention the new commands.
2193 * python/python.c (eval_python_command): New function.
2194 (python_interactive_command): For "python-interactive" with
2195 arguments, call eval_python_command. For "python-interactive"
2196 without arguments, call PyRun_InteractiveLoop.
2197 (_initialize_python): Add "python-interactive" command with
2198 "pi" as alias, and add "py" as an alias to "python".
2200 2012-08-22 Tom Tromey <tromey@redhat.com>
2202 * defs.h (quit_flag): Don't declare.
2203 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2204 (QUIT): Use new functions.
2205 * event-top.c (command_handler): Use clear_quit_flag.
2206 (handle_sigint): Use set_quit_flag.
2207 (async_request_quit): Use check_quit_flag. Don't check
2209 * exceptions.c (throw_exception): Use clear_quit_flag.
2210 * main.c (captured_main): Use clear_quit_flag.
2211 * python/python.c (clear_quit_flag, set_quit_flag)
2212 (check_quit_flag): New functions.
2213 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2215 * remote.c (remote_wait_as): Use check_quit_flag,
2217 (remote_start_remote): Call QUIT.
2218 * symfile.c (load_progress): Use check_quit_flag.
2219 * top.c (command_loop): Use clear_quit_flag.
2220 (command_line_input): Call QUIT.
2221 * utils.c (quit_flag): Conditionally define.
2222 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2224 (prompt_for_continue): Call QUIT. Use quit, not
2226 * remote-mips.c (mips_expect_timeout): Call QUIT.
2227 * monitor.c (monitor_expect): Call QUIT.
2229 2012-08-22 Tom Tromey <tromey@redhat.com>
2231 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2232 (async_init_signals): Update.
2233 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2234 (SIGWINCH_HANDLER_BODY): Remove.
2236 2012-08-22 Tom Tromey <tromey@redhat.com>
2238 * jit.c (jit_object_close_impl): Don't malloc the objfile
2240 * objfiles.c (allocate_objfile): Don't malloc the objfile
2242 (free_objfile): Don't free the objfile name.
2243 * objfiles.h (struct objfile) <name>: Update comment.
2244 * symfile.c (reread_symbols): Fix reference counting. Don't
2245 malloc objfile name.
2247 2012-08-22 Tom Tromey <tromey@redhat.com>
2249 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2250 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2251 (symfile_bfd_open): Likewise.
2252 (generic_load): Likewise.
2253 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2254 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2256 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2258 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2259 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2260 (pmon_load_fast): Likewise.
2261 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2262 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2263 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2264 (macho_check_dsym): Likewise.
2265 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2266 (m32r_upload_command): Likewise.
2267 * gdb_bfd.h (gdb_bfd_cache): Declare.
2268 * gdb_bfd.c (struct gdb_bfd_data): New.
2269 (gdb_bfd_cache): New global.
2270 (struct gdb_bfd_cache_search): New.
2271 (hash_bfd): New function.
2273 (gdb_bfd_open): Likewise.
2274 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2275 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2277 * exec.c (exec_file_attach): Use gdb_bfd_open.
2278 * dsrec.c (load_srec): Use gdb_bfd_open.
2280 2012-08-22 Tom Tromey <tromey@redhat.com>
2282 * dwarf2read.c (macro_start_file): Update.
2283 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2284 (free_objfile_per_bfd_storage): Destroy macro_cache.
2285 (allocate_objfile, free_objfile): Update.
2286 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2288 (struct objfile) <macro_cache>: Remove.
2289 * symfile.c (reread_symbols): Update.
2290 * symmisc.c (print_symbol_bcache_statistics): Update.
2291 (print_objfile_statistics): Update.
2293 2012-08-22 Tom Tromey <tromey@redhat.com>
2295 * elfread.c (elf_symtab_read): Update.
2296 * objfiles.c (objfiles_bfd_data): New global.
2297 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2298 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2299 (allocate_objfile, free_objfile): Update.
2300 (_initialize_objfiles): Initialize objfiles_bfd_data.
2301 * objfiles.h (struct objfile_per_bfd_storage): New.
2302 (struct objfile) <per_bfd>: New field.
2303 <filename_cache>: Remove.
2304 (set_objfile_per_bfd): Declare.
2305 * symfile.c (reread_symbols): Update. Call
2306 set_objfile_per_bfd.
2307 (allocate_symtab): Update.
2308 * symmisc.c (print_symbol_bcache_statistics): Update.
2309 (print_objfile_statistics): Print the size of the BFD obstack.
2311 2012-08-22 Tom Tromey <tromey@redhat.com>
2313 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2314 * gdb_bfd.c: Use DEFINE_REGISTRY.
2315 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2316 (gdb_bfd_ref): Call bfd_alloc_data.
2317 (gdb_bfd_unref): Call bfd_free_data.
2319 2012-08-22 Tom Tromey <tromey@redhat.com>
2321 * registry.h (struct registry_fields): New.
2322 (REGISTRY_FIELDS): Redefine.
2323 (REGISTRY_ACCESS_FIELD): New macro.
2324 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2327 2012-08-22 Tom Tromey <tromey@redhat.com>
2329 * auto-load.c (_initialize_auto_load): Update.
2330 * solib-svr4.c (_initialize_svr4_solib): Update
2331 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2332 * solib-darwin.c (_initialize_darwin_solib): Update.
2333 * registry.h: New file.
2334 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2335 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2336 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2337 (register_program_space_data_with_cleanup)
2338 (register_program_space_data, program_space_alloc_data)
2339 (clear_program_space_data, set_program_space_data)
2340 (program_space_data): Don't declare.
2341 * progspace.c: Use DEFINE_REGISTRY.
2342 (struct program_space_data, struct
2343 program_space_data_registration, struct
2344 program_space_data_registry, program_space_data_registry)
2345 (register_program_space_data_with_cleanup)
2346 (register_program_space_data, program_space_alloc_data)
2347 (program_space_free_data, clear_program_space_data)
2348 (set_program_space_data, program_space_data): Remove.
2349 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2350 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2351 (register_objfile_data_with_cleanup, register_objfile_data)
2352 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2354 * objfiles.c: Use DEFINE_REGISTRY.
2355 (struct objfile_data, struct objfile_data_registration, struct
2356 objfile_data_registry, objfile_data_registry)
2357 (register_objfile_data_with_cleanup, register_objfile_data)
2358 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2359 (set_objfile_data, objfile_data): Remove.
2360 (_initialize_objfiles): Update.
2361 * jit.c (_initialize_jit): Update.
2362 * inflow.c (_initialize_inflow): Update.
2363 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2364 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2365 (register_inferior_data_with_cleanup, register_inferior_data)
2366 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2368 * inferior.c: Use DEFINE_REGISTRY.
2369 (struct inferior_data, struct inferior_data_registration, struct
2370 inferior_data_registry, inferior_data_registry)
2371 (register_inferior_data_with_cleanup, register_inferior_data)
2372 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2373 (set_inferior_data, inferior_data): Remove.
2374 * auxv.c (_initialize_auxv): Update.
2375 * ada-lang.c (_initialize_ada_language): Update.
2376 * breakpoint.c (_initialize_breakpoint): Update.
2377 * i386-nat.c (i386_use_watchpoints): Update.
2379 2012-08-22 Tom Tromey <tromey@redhat.com>
2381 * exec.c (exec_close, exec_file_attach): Update.
2382 (add_to_section_table): Initialize 'key' field.
2383 (add_target_sections, remove_target_sections): Add 'key' argument.
2384 * exec.h (add_target_sections, remove_target_sections): Add
2386 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2387 (reload_shared_libraries_1): Update.
2388 * target.h (struct target_section) <key>: New field.
2390 2012-08-22 Tom Tromey <tromey@redhat.com>
2392 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2394 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2396 * symfile.c (allocate_symtab): Use host_address_to_string
2397 function instead of cast of pointer to long which is not
2398 compatible with x86_64-w64-mingw32 build.
2400 2012-08-19 Andrew Pinski <apinski@cavium.com>
2402 * mips-tdep.c (is_octeon): New function.
2403 (is_octeon_bbit_op): New function.
2404 (mips32_next_pc): Handle Octeon's bbit instructions.
2405 (mips32_instruction_has_delay_slot): Likewise.
2407 2012-08-19 Andrew Pinski <apinski@cavium.com>
2409 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2410 before the function.
2412 2012-08-19 Andrew Pinski <apinski@cavium.com>
2414 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2416 2012-08-19 Keith Seitz <keiths@redhat.com>
2419 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2420 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2422 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2424 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2425 The typo broke "make TAGS".
2427 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2431 2012-08-17 Keith Seitz <keiths@redhat.com>
2434 * gdbtypes.c (strict_type_checking): New variable.
2435 (show_strict_type_checking): New function.
2436 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2437 if strict type checking is disabled.
2438 (_initialize_gdbtypes): Add "check type" subcommand.
2439 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2441 2012-08-17 Keith Seitz <keiths@redhat.com>
2443 * language.h (type_mode): Remove.
2444 (type_check): Remove.
2445 (struct language_defn): Remove la_type_check.
2446 (STRICT_TYPE): Remove unused macro.
2447 (type_error): Remove.
2448 * language.c (set_type_range_case): Renamed to ...
2449 (set_range_case): ... this. Update all callers.
2450 Remove type_mode/type_check.
2451 (type_mode): Remove.
2452 (type_check): Remove.
2453 (show_type_command): Remove.
2454 (set_type_command): Remove.
2455 (language_info): Remove type checking output.
2456 (type_error): Remove unused function.
2457 (range_error): Update comment.
2458 (unknown_language_defn): Remove la_type_check.
2459 (auto_language_defn): Likewise.
2460 (local_language_defn): Likewise.
2461 (_initialize_language): Remove "check type" subcommand.
2462 * ada-lang.c (ada_language_defn): Remove la_type_check.
2463 * c-lang.c (c_language_defn): Likewise.
2464 (cplus_language_defn): Likewise.
2465 (asm_language_defn): Likewise.
2466 (minimal_language_defn): Likewise.
2467 * d-lang.c (d_language_defn): Likewise.
2468 * f-lang.c (f_language_defn): Likewise.
2469 * go-lang.c (go_language_defn): Likewise.
2470 * jv-lang.c (java_language_defn): Likewise.
2471 * m2-lang.c (m2_language_defn): Likewise.
2472 * objc-lang.c (objc_language_defn): Likewise.
2473 * opencl-lang.c (opencl_language_defn): Likewise.
2474 * p-lang.c (pascal_language_defn): Likewise.
2476 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2478 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2480 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2482 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2484 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2485 using the regache. Use ia64_hpux_get_register_from_save_state_t
2486 to access the bsp and bspstore registers if not.
2488 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2490 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2491 * breakpoint.c (detach_breakpoints): Change pid parameter into
2492 a ptid. Adjust code accordingly.
2493 * infrun.c (handle_inferior_event): Delete variable child_pid.
2494 Update call to detach_breakpoints to pass the child ptid for
2496 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2497 assert that inferior_ptid's lwp is zero.
2498 (linux_handle_extended_wait): Update call to detach_breakpoints.
2499 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2502 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2504 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2505 parent, only call detach_breakpoints if tts.tts_event ==
2508 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2510 * dwarf2-frame.c (dwarf2_frame_cache): Use
2511 get_frame_address_in_block instead of get_frame_pc as
2512 the bound for executing the frame's FDE.
2514 2012-08-16 Yao Qi <yao@codesourcery.com>
2516 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2517 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2518 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2519 (c_type_print_varspec_suffix): Likewise.
2520 * eval.c (evaluate_subexp_standard): Likewise.
2521 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2522 (f_type_print_varspec_suffix): Likewise.
2523 * gdbtypes.c (is_scalar_type): Likewise.
2524 (recursive_dump_type): Likewise.
2525 * infcall.c (value_arg_coerce): Likewise.
2526 * m2-valprint.c (m2_val_print): Likewise.
2527 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2528 (pascal_type_print_varspec_suffix): Likewise.
2529 (pascal_type_print_base): Likewise.
2530 * p-valprint.c (pascal_val_print): Likewise.
2531 (pascal_val_print): Likewise.
2532 * valops.c (value_slice): Likewise.
2533 * valprint.c (scalar_type_p): Likewise.
2534 * valarith.c (value_bitstring_subscript): Remove.
2535 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2536 Remove comment on TYPE_CODE_BITSTRING.
2538 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2539 TYPE_CODE_BITSTRING.
2541 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2544 2012-08-16 Yao Qi <yao@codesourcery.com>
2546 * tracepoint.c (trace_find_none_command): Remove.
2547 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2549 2012-08-16 Yao Qi <yao@codesourcery.com>
2551 * remote.c (handle_notification): Remove parameter 'length'.
2552 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2554 2012-08-15 Keith Seitz <keiths@redhat.com>
2556 * gdbtypes.c (opaque_type_resolution): Make static.
2557 Add missing comment.
2558 (overload_debug): Add missing comment.
2559 (show_opaque_type_resolution): Likewise.
2560 (show_overload_debug): Likewise.
2561 (print_bit_vector): Remove unnecessary forward declaration.
2562 (print_arg_types): Likewise.
2563 (dump_fn_fieldlists): Likewise.
2564 (print_cplus_stuff): Likewise.
2566 2012-08-15 Tom Tromey <tromey@redhat.com>
2568 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2569 (gdb_bfd_ref): Initialize new field.
2570 (gdb_bfd_unref): Unref the archive BFD.
2571 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2574 2012-08-15 Tom Tromey <tromey@redhat.com>
2577 * python/py-bpevent.c (create_breakpoint_event_object): Update
2579 * python/py-event.c (evpy_add_attribute): Update comment.
2580 * python/py-exitedevent.c (create_exited_event_object): Fix
2581 reference counting and error handling.
2582 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2583 Fix reference counting.
2584 * python/py-signalevent.c (create_signal_event_object): Fix
2585 reference counting and error handling.
2586 * python/py-stopevent.c (emit_stop_event): Fix reference
2588 * python/py-threadevent.c (get_event_thread): Return a
2590 * python/py-type.c (convert_field): Fix reference counting.
2592 2012-08-15 Tom Tromey <tromey@redhat.com>
2594 * dwarf2read.c (dwarf_decode_macro_bytes)
2595 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2598 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2600 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2601 stepi, nexti, finish, next, step, jump, and continue commands.
2602 * infrun.c (_initialize_infrun): Update help text for the handle
2605 2012-08-14 Doug Evans <dje@google.com>
2607 * gdbtypes.c (struct extra): Delete, unused.
2609 * gdbtypes.c: Whitespace cleanup.
2610 (address_space_name_to_int): Remove "extern" from definition.
2611 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2613 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2614 TYPE_POINTER_TYPE (type).
2616 2012-08-14 Gary Benson <gbenson@redhat.com>
2618 * solib-svr4.c (svr4_free_library_list): Use free_so.
2620 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2622 * .gitignore: Add go-exp.c.
2624 2012-08-13 Doug Evans <dje@google.com>
2626 * value.c (show_convenience): Tweak comment.
2627 (_initialize_values): Mention convenience functions in the help text
2628 for "show convenience".
2630 2012-08-13 Yao Qi <yao@codesourcery.com>
2632 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2633 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2635 * eval.c (evaluate_subexp_standard): Likewise.
2636 * expprint.c (print_subexp_standard): Likewise.
2637 (dump_subexp_body_standard): Likewise.
2638 * parse.c (operator_length_standard): Likewise.
2640 2012-08-13 Yao Qi <yao@codesourcery.com>
2642 * std-operator.def: Remove OP_BITSTRING.
2643 * breakpoint.c (watchpoint_exp_is_const): Update.
2644 * eval.c (evaluate_subexp_standard): Remove handling to
2646 * expprint.c (print_subexp_standard): Likewise.
2647 (dump_subexp_body_standard): Likewise.
2648 * parse.c (operator_length_standard): Likewise.
2649 * valops.c (value_bitstring): Remove.
2650 * value.h: Remove the declaration of 'value_bitstring'.
2652 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2654 * linespec.c (find_methods): Remove unused variables `i1' and
2656 (decode_line_full): Likewise for `arg_start'.
2658 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2660 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2661 (zlib_decompress_section): Likewise for `section_data'.
2662 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2664 2012-08-10 Doug Evans <dje@google.com>
2666 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2667 * NEWS: Document them.
2668 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2670 * python/py-type.c (typy_array_1): New function.
2671 (typy_array): Call it.
2672 (typy_vector): New function.
2673 (type_object_methods): Add "vector".
2674 * python/lib/gdb/function/__init__.py: New file.
2675 * python/lib/gdb/function/strfns.py: New file.
2677 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2679 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2680 for TYPE_FIELD_BITPOS.
2681 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2683 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2686 * common/vec.h (VEC_merge): Define.
2687 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2688 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2689 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2690 * completer.c: Include gdb_signals.h.
2691 (signal_completer): Define.
2692 * completer.h (signal_completer): Add prototype.
2693 * infcmd.c (_initialize_infcmd): Assign the command
2694 completer for "signal" to handle_completer.
2695 * infrun.c: Include completer.h.
2696 (handle_completer): Define.
2697 (_initialize_infrun): Declare a new local variable c. Store the
2698 result of add_com("handle") to it. Assign the command
2699 completer for "handle" to handle_completer.
2701 2012-08-09 Yao Qi <yao@codesourcery.com>
2703 * cli/cli-decode.c (set_cmd_prefix): New.
2704 (lookup_cmd_for_prefixlist): New.
2705 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2706 of each cmd_list_element in *prefixlist.
2707 (add_setshow_cmd_full): set_cmd_prefix.
2708 (add_alias_cmd): Likewise.
2709 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2710 Declare 'auto_boolean_enums'.
2711 * cli/cli-setshow.c: Include "observer.h".
2712 (notify_command_param_changed_p): New.
2713 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2715 (do_setshow_command): Split it to ...
2716 (do_set_command, do_show_command): ... them. New.
2717 (do_set_command): Call observer_notify_command_param_changed if
2718 notify_command_param_changed_p returns true.
2719 (cmd_show_list): Caller update.
2720 * auto-load.c (set_auto_load_cmd): Likewise.
2721 * remote.c (show_remote_cmd): Likewise.
2722 * cli/cli-setshow.h: Update declarations.
2723 * top.c (execute_command): Call do_set_command and do_show_command.
2725 * NEWS: Mention new MI notification.
2726 * mi/mi-interp.c: Declare mi_command_param_changed.
2727 (mi_interpreter_init): Attach mi_command_param_changed to
2728 observer command_param_changed.
2729 (mi_command_param_changed): New.
2730 Remove mi_suppress_breakpoint_notifications.
2731 Define global variable mi_suppress_notification.
2732 (mi_breakpoint_created): Update.
2733 (mi_breakpoint_deleted): Likewise.
2734 (mi_breakpoint_modified): Likewise.
2735 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2736 'gdb-set' and set mi_suppress_notification.
2737 * mi/mi-main.h: (mi_suppress_notification): New struct.
2739 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2740 Jan Kratochvil <jan.kratochvil@redhat.com>
2742 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2744 2012-08-09 Yao Qi <yao@codesourcery.com>
2746 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2747 (skiplist): Move it to skip.c.
2748 (init_cmd_lists): Remove code setting enablebreaklist and
2750 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2751 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2753 * gdbcmd.h: Likewise.
2754 * skip.c (_initialize_step_skip): Move 'skiplist' from
2757 2012-08-09 Yao Qi <yao@codesourcery.com>
2759 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2760 * gnu-nat.c, symfile.c: Likewise.
2762 2012-08-08 Aaron Gamble <agamble@google.com>
2764 * utils.c (prompt_for_continue_wait_time): New static global.
2765 (make_command_stats_cleanup): Initialize it.
2766 (report_command_stats): Subtract time waiting for user.
2767 (prompt_for_continue): Track time waiting for user.
2768 (defaulted_query): Track time waiting for user.
2770 2012-08-08 Doug Evans <dje@google.com>
2772 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2774 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2775 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2776 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2777 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2778 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2779 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2781 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2782 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2783 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2784 (dump_prefix_expression): Handle OP_TYPE.
2786 2012-08-08 Keith Seitz <keiths@redhat.com>
2788 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2791 2012-08-08 Doug Evans <dje@google.com>
2793 * linux-thread-db.c: #include "gdb_vecs.h".
2794 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2796 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2797 (thread_db_load_search): Use a vector to iterate over path elements.
2798 Handle text appearing after "$pdir".
2800 * gdb_string.h: Moved to ...
2801 * common/gdb_string.h: ... here.
2802 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2803 gdb_string.h and gdb_assert.h.
2805 2012-08-08 Yao Qi <yao@codesourcery.com>
2807 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2808 (tic6x_value_to_register): Likewise.
2809 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2810 and set_gdbarch_value_to_register.
2812 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2813 Jean-Marc Saffroy <saffroy@gmail.com>
2816 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2817 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2818 * gcore.c (gcore_create_callback): New function comment. Add modified
2819 parameter. Only write modified regions. Set SEC_READONLY exactly
2820 according to MODIFIED.
2821 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2822 the passed modified value to FUNC.
2823 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2824 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2825 first. New variables modified and has_anonymous. Parse the lines of
2826 smaps file. Add the passed MODIFIED value to FUNC.
2827 * procfs.c (find_memory_regions_callback): Add the passed modified
2830 2012-08-06 Tom Tromey <tromey@redhat.com>
2832 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2833 (dwarf2_frame_cache): Use it.
2834 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2835 cache initialization constraint.
2837 2012-08-06 Tom Tromey <tromey@redhat.com>
2840 * varobj.c (update_dynamic_varobj_children): Don't call
2843 2012-08-06 Tom Tromey <tromey@redhat.com>
2846 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2848 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2850 * NEWS: New entry for 'cd' default parameters.
2851 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2853 2012-08-03 Tom Tromey <tromey@redhat.com>
2855 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2858 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2860 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2861 to attempting lseek/write.
2862 (inf_child_fileio_pread): Likewise for pread.
2864 2012-08-02 Yao Qi <yao@codesourcery.com>
2866 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2867 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2868 add_setshow_zinteger_cmd.
2869 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2870 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2871 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2872 instead of add_setshow_zinteger_cmd.
2873 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2874 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2875 instead of add_setshow_zinteger_cmd.
2876 * frame.c (frame_debug): Add 'unsigned'.
2877 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2878 add_setshow_zinteger_cmd.
2879 * frame.h: Update the declaration of 'frame_debug'.
2880 * gdbtypes.c (overload_debug): Add 'unsigned'.
2881 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2882 add_setshow_zinteger_cmd.
2883 * inferior.h: Update declaration of 'debug_infrun'.
2884 * infrun.c (debug_infrun): Add 'unsigned'.
2885 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2886 add_setshow_zinteger_cmd.
2887 * jit.c (jit_debug): Add 'unsigned'.
2888 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2889 add_setshow_zinteger_cmd.
2890 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2891 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2892 instead of add_setshow_zinteger_cmd.
2893 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2894 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2895 add_setshow_zinteger_cmd.
2896 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2897 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2898 instead of add_setshow_zinteger_cmd.
2899 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2900 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2901 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2902 intead of add_setshow_zinteger_cmd.
2903 * mips-tdep.c (mips_debug): Add 'unsigned'.
2904 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2905 instead of add_setshow_zinteger_cmd.
2906 * monitor.c (monitor_debug): Add 'unsigned'.
2907 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2908 add_setshow_zinteger_cmd.
2909 * observer.c (observer_debug): Add 'unsigned'.
2910 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2911 add_setshow_zinteger_cmd.
2912 * parse.c (expressiondebug): Add 'unsigned'.
2913 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2914 add_setshow_zinteger_cmd.
2915 * record.c (record_debug): Add 'unsigned'.
2916 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2917 add_setshow_zinteger_cmd.
2918 * record.h: Update the declaration of 'record_debug'.
2919 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2920 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2921 add_setshow_zinteger_cmd.
2922 * serial.c (global_serial_debug_p): Add 'unsigned'.
2923 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2924 add_setshow_zinteger_cmd.
2925 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2926 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2927 add_setshow_zinteger_cmd.
2928 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2929 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2930 add_setshow_zinteger_cmd.
2931 * target.c (targetdebug): Add 'unsigned'.
2932 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2933 add_setshow_zinteger_cmd.
2934 * valops.c (overload_debug): Add 'unsigned'.
2935 * varobj.c (varobjdebug): Add 'unsigned'.
2936 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2937 add_setshow_zinteger_cmd.
2938 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2939 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2940 instead of add_setshow_zinteger_cmd.
2942 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2943 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2944 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2945 instead of add_setshow_zinteger_cmd.
2946 * gdbarch.c, gdbarch.h: Re-generated.
2948 2012-08-02 Yao Qi <yao@codesourcery.com>
2950 * nto-tdep.c: Don't include cli/cli-decode.h and
2952 (_initialize_nto_tdep): Remove.
2953 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2955 Remove macro nto_internal_debugging.
2957 2012-08-01 Richard Henderson <rth@redhat.com>
2959 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2960 (mep-*-*) [gdb_target_obs]: Likewise.
2962 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2964 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2965 linux_get_siginfo_type.
2967 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2969 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2971 (call_function_by_hand) <ON_STACK>: Call write_memory with
2972 gdbarch_breakpoint_from_pc, if possible.
2973 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2976 2012-07-31 Yao Qi <yao@codesourcery.com>
2978 * tracepoint.c: Add 'static' for some variables.
2980 2012-07-31 Yao Qi <yao@codesourcery.com>
2982 * go32-nat.c: Declare _initialize_go32_nat.
2983 * ser-go32.c: Declare _initialize_ser_dos.
2984 * top.c (do_chdir_cleanup): Add 'static'.
2986 2012-07-30 Keith Seitz <keiths@redhat.com>
2988 * linespec.c (linespec_lex_number): A number followed
2989 by quotes is a valid number, too.
2991 2012-07-30 Tom Tromey <tromey@redhat.com>
2993 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2995 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2997 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2998 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3000 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3002 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3003 invalid or reevaluated to prevent prevent references to possibly
3004 delete'd type objects being left in the varobj.
3006 2012-07-27 Tom Tromey <tromey@redhat.com>
3007 Jan Kratochvil <jan.kratochvil@redhat.com>
3009 * copying.awk: Print buffer-read-only and vi ro markers.
3010 * copying.c: Rebuild.
3011 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3012 * gdbarch.c, gdbarch.h: Rebuild.
3013 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3014 buffer-read-only and vi ro markers.
3015 * features/arm-with-iwmmxt.c: Rebuild.
3016 * features/arm-with-m-fpa-layout.c: Rebuild.
3017 * features/arm-with-m-vfp-d16.c: Rebuild.
3018 * features/arm-with-m.c: Rebuild.
3019 * features/arm-with-neon.c: Rebuild.
3020 * features/arm-with-vfpv2.c: Rebuild.
3021 * features/arm-with-vfpv3.c: Rebuild.
3022 * features/i386/amd64-avx-linux.c: Rebuild.
3023 * features/i386/amd64-avx.c: Rebuild.
3024 * features/i386/amd64-linux.c: Rebuild.
3025 * features/i386/amd64.c: Rebuild.
3026 * features/i386/i386-avx-linux.c: Rebuild.
3027 * features/i386/i386-avx.c: Rebuild.
3028 * features/i386/i386-linux.c: Rebuild.
3029 * features/i386/i386-mmx-linux.c: Rebuild.
3030 * features/i386/i386-mmx.c: Rebuild.
3031 * features/i386/i386.c: Rebuild.
3032 * features/i386/x32-avx-linux.c: Rebuild.
3033 * features/i386/x32-avx.c: Rebuild.
3034 * features/i386/x32-linux.c: Rebuild.
3035 * features/i386/x32.c: Rebuild.
3036 * features/mips-dsp-linux.c: Rebuild.
3037 * features/mips-linux.c: Rebuild.
3038 * features/mips64-dsp-linux.c: Rebuild.
3039 * features/mips64-linux.c: Rebuild.
3040 * features/rs6000/powerpc-32.c: Rebuild.
3041 * features/rs6000/powerpc-32l.c: Rebuild.
3042 * features/rs6000/powerpc-403.c: Rebuild.
3043 * features/rs6000/powerpc-403gc.c: Rebuild.
3044 * features/rs6000/powerpc-405.c: Rebuild.
3045 * features/rs6000/powerpc-505.c: Rebuild.
3046 * features/rs6000/powerpc-601.c: Rebuild.
3047 * features/rs6000/powerpc-602.c: Rebuild.
3048 * features/rs6000/powerpc-603.c: Rebuild.
3049 * features/rs6000/powerpc-604.c: Rebuild.
3050 * features/rs6000/powerpc-64.c: Rebuild.
3051 * features/rs6000/powerpc-64l.c: Rebuild.
3052 * features/rs6000/powerpc-7400.c: Rebuild.
3053 * features/rs6000/powerpc-750.c: Rebuild.
3054 * features/rs6000/powerpc-860.c: Rebuild.
3055 * features/rs6000/powerpc-altivec32.c: Rebuild.
3056 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3057 * features/rs6000/powerpc-altivec64.c: Rebuild.
3058 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3059 * features/rs6000/powerpc-cell32l.c: Rebuild.
3060 * features/rs6000/powerpc-cell64l.c: Rebuild.
3061 * features/rs6000/powerpc-e500.c: Rebuild.
3062 * features/rs6000/powerpc-e500l.c: Rebuild.
3063 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3064 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3065 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3066 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3067 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3068 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3069 * features/rs6000/powerpc-vsx32.c: Rebuild.
3070 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3071 * features/rs6000/powerpc-vsx64.c: Rebuild.
3072 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3073 * features/rs6000/rs6000.c: Rebuild.
3074 * features/s390-linux32.c: Rebuild.
3075 * features/s390-linux32v1.c: Rebuild.
3076 * features/s390-linux32v2.c: Rebuild.
3077 * features/s390-linux64.c: Rebuild.
3078 * features/s390-linux64v1.c: Rebuild.
3079 * features/s390-linux64v2.c: Rebuild.
3080 * features/s390x-linux64.c: Rebuild.
3081 * features/s390x-linux64v1.c: Rebuild.
3082 * features/s390x-linux64v2.c: Rebuild.
3083 * features/tic6x-c62x-linux.c: Rebuild.
3084 * features/tic6x-c62x.c: Rebuild.
3085 * features/tic6x-c64x-linux.c: Rebuild.
3086 * features/tic6x-c64x.c: Rebuild.
3087 * features/tic6x-c64xp-linux.c: Rebuild.
3088 * features/tic6x-c64xp.c: Rebuild.
3090 2012-07-27 Tom Tromey <tromey@redhat.com>
3092 * c-exp.y (classify_name): Avoid assignment in condition.
3094 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3096 * amd64-windows-tdep.c: Include "frame.h".
3097 (amd64_windows_skip_trampoline_code): New function.
3098 (amd64_windows_init_abi): Add trampoline registration.
3100 2012-07-27 Yao Qi <yao@codesourcery.com>
3102 * tracepoint.c (cur_traceframe_number): Remove.
3103 (set_tfile_traceframe): Remove.
3104 (tfile_trace_find, tfile_fetch_registers): Update callers.
3105 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3106 (tfile_open, tfile_trace_find): Likewise.
3108 2012-07-27 Yao Qi <yao@codesourcery.com>
3110 * thread.c (switch_to_thread): Don't call registers_changed.
3112 2012-07-26 Tom Tromey <tromey@redhat.com>
3114 * Makefile.in (SFILES): Remove objc-exp.y.
3115 (YYFILES): Remove objc-exp.c.
3116 (YYOBJ): Remove objc-exp.o.
3117 (local-maintainer-clean): Don't mention objc-exp.c.
3118 * c-exp.y: Include objc-lang.h.
3119 (%union) <class>: New field.
3120 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3121 (exp): Clone subscript production for OBJC_LBRAC. Add various
3122 Objective C productions.
3123 (msglist, msgarglist, msgarg): New productions.
3124 (array_mod, func_mod, operator): Clone productions for
3126 (parse_string_or_char): Handle '@' strings.
3127 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3128 (classify_name): Check la_name_of_this. Recognize ObjC class
3130 * objc-exp.y: Remove.
3131 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3132 * objc-lang.h (objc_parse, objc_error): Don't declare.
3134 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3136 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3138 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3140 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3143 2012-07-26 Tom Tromey <tromey@redhat.com>
3145 * copying.c: Rebuild.
3146 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3149 2012-07-26 Tom Tromey <tromey@redhat.com>
3151 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3153 (print_objfile_statistics): Likewise.
3154 (maintenance_print_symbols): Likewise.
3155 (maintenance_print_msymbols): Likewise.
3156 (maintenance_print_objfiles): Likewise.
3157 * psymtab.c (print_partial_symbols): Call QUIT.
3158 (maintenance_print_psymbols): Likewise. Don't modify
3160 * copying.c (show_copying_command): Don't modify immediate_quit.
3161 (show_warranty_command): Likewise.
3162 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3164 2012-07-26 Keith Seitz <keiths@redhat.com>
3166 * linespec.c (linespec_lexer_lex_number): The input
3167 is also a valid number if the next character is a comma
3170 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3172 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3175 2012-07-26 Tristan Gingold <gingold@adacore.com>
3177 * machoread.c: Include gdb_bfd.h.
3179 2012-07-26 Tristan Gingold <gingold@adacore.com>
3181 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3184 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3186 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3188 (dwarf2_evaluate_loc_desc): Likewise.
3189 (dwarf2_loc_desc_needs_frame): Likewise.
3190 (locexpr_describe_location_1): Likewise.
3191 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3193 (struct dwarf2_loclist_baton): Likewise.
3194 * dwarf2read.c (struct dwarf_block): Likewise.
3195 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3196 (decode_locdesc): Expand SIZE and I to size_t.
3198 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3200 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3202 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3204 * doublest.c (convert_doublest_to_floatformat): If the exponent
3205 is too small, treat the value as zero. If the exponent is too
3206 large, treat the value as infinity.
3208 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3210 * configure.ac: Add --enable-lmcheck configure option.
3211 * configure: Regenerate.
3213 2012-07-25 Tom Tromey <tromey@redhat.com>
3215 * NEWS: Mention maint info bfds.
3216 * gdb_bfd.c (all_bfds): New global.
3217 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3218 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3221 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3223 * configure.tgt: Add v850*-*-rtems*.
3225 2012-07-25 Tom Tromey <tromey@redhat.com>
3227 * macrotab.c (macro_bcache_str): Remove cast.
3229 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3231 * linespec.c (linespec_lexer_lex_number): Update comments,
3232 change the return and add check to make sure the input is
3233 the decimal numbers.
3234 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3235 false, call linespec_lexer_lex_string.
3237 2012-07-24 Tom Tromey <tromey@redhat.com>
3239 * symfile.c (symbol_file_add): Don't open BFD twice.
3241 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3243 * breakpoint.c (create_breakpoint): Store condition for pending
3246 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3248 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3249 (m68k_return_value): Handle complex types like structures.
3250 (m68k_svr4_return_value): Likewise.
3252 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3254 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3255 parameters to bfd_get_section_name.
3257 2012-07-24 Yao Qi <yao@codesourcery.com>
3259 * cli/cli-setshow.c: Handle case 'var_uinteger'
3260 and 'var_zuninteger' together. Handle case 'var_integer' and
3261 'var_zinteger' together.
3263 2012-07-23 Keith Seitz <keiths@redhat.com>
3265 * linespec.c (convert_linespec_to_sal): Don't add
3266 any symbols to the result vector if symbol_to_sal
3269 2012-07-23 Keith Seitz <keiths@redhat.com>
3271 * linespec.c (decode_objc): Record the function name
3274 2012-07-23 Tom Tromey <tromey@redhat.com>
3276 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3278 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3279 (map_vmap): Acquire a reference to the BFD.
3281 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3283 * p-valprint.c (pascal_object_print_value): Replace potentially
3284 unsafe alloca with xmalloc/xfree.
3285 * valops.c (search_struct_method): Likewise.
3287 2012-07-23 Tom Tromey <tromey@redhat.com>
3289 * solib-svr4.c (enable_break): Update.
3290 * bfd-target.h (target_bfd_reopen): Update documentation.
3292 2012-07-23 Tom Tromey <tromey@redhat.com>
3294 * symfile.c (separate_debug_file_exists): Update.
3295 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3296 (reread_symbols): Update.
3297 * elfread.c (build_id_verify): Update.
3298 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3299 bfd_open_maybe_remote.
3301 2012-07-23 Tom Tromey <tromey@redhat.com>
3303 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3305 2012-07-23 Tom Tromey <tromey@redhat.com>
3307 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3309 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3311 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3312 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3314 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3315 * objfiles.c (allocate_objfile): Acquire a new reference.
3316 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3317 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3318 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3319 a cleanup for 'nbfd'.
3320 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3322 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3323 make a cleanup for 'abfd'.
3324 (symbol_file_add): Make a BFD cleanup.
3326 2012-07-23 Tom Tromey <tromey@redhat.com>
3328 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3329 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3330 * corelow.c (core_open): Use gdb_bfd_fopen.
3331 * dsrec.c (load_srec): Use gdb_bfd_openr.
3332 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3333 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3334 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3335 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3336 (gdb_bfd_fdopenr): New functions.
3337 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3338 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3339 (gdb_bfd_fdopenr): Declare.
3340 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3341 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3342 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3343 gdb_bfd_openr_next_archived_file.
3344 (macho_check_dsym): Use gdb_bfd_openr.
3345 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3346 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3347 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3348 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3350 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3351 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3352 gdb_bfd_openr_next_archived_file.
3353 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3355 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3357 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3358 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3359 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3360 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3361 (symfile_bfd_open): Use gdb_bfd_fopen.
3362 (generic_load): Use gdb_bfd_openr.
3363 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3365 2012-07-23 Tom Tromey <tromey@redhat.com>
3367 * bfd-target.c (target_bfd_reopen): Update.
3368 * cli/cli-dump.c (bfd_openr_with_cleanup)
3369 (bfd_openw_with_cleanup): Update.
3370 * corelow.c (core_open): Update.
3371 * dsrec.c (load_srec): Update.
3372 * exec.c (exec_file_attach): Update.
3373 * gcore.c (create_gcore_bfd): Update.
3374 * gdb_bfd.c (gdb_bfd_ref): Return void.
3375 (gdb_bfd_open): Update.
3376 * gdb_bfd.h (gdb_bfd_ref): Return void.
3378 * jit.c (jit_bfd_try_read_symtab): Update.
3379 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3380 * machoread.c (macho_symfile_read_all_oso): Update.
3381 (macho_check_dsym): Update.
3382 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3383 * remote-m32r-sdi.c (m32r_load): Update.
3384 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3385 * rs6000-nat.c (add_vmap): Update.
3386 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3388 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3389 * solib-spu.c (spu_bfd_open): Update.
3390 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3391 * spu-linux-nat.c (spu_bfd_open): Update.
3392 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3393 (generic_load): Update.
3394 * windows-nat.c (windows_make_so): Update.
3396 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3398 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3400 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3402 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3403 SIGTRAMP_FRAME unwinding.
3405 2012-07-20 Doug Evans <dje@google.com>
3407 * NEWS: Document new options "set/show use-deprecated-index-sections",
3408 and delete reference to --use-deprecated-index-sections.
3409 * symfile.h (use_deprecated_index_sections): Delete.
3410 * dwarf2read.c (use_deprecated_index_sections): Make static.
3411 (read_index_from_section): Update wording of how to load
3412 deprecated index sections.
3413 (_initialize_dwarf2_read): New options
3414 "set/show use-deprecated-index-sections".
3415 * main.c (captured_main): Delete --use-deprecated-index-sections.
3417 2012-07-20 Pedro Alves <palves@redhat.com>
3422 * infrun.c (handle_inferior_event) <new thread>: Don't special
3423 case minus_one_ptid.
3424 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3425 * linux-thread-db.c (thread_get_info_callback): Don't return early
3426 if the thread is zombie.
3427 (thread_from_lwp): Change return type to void. Rewrite stale
3429 (attach_thread): Don't return early if the thread is zombie,
3430 instead set its "dying" flag.
3431 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3432 (find_new_threads_callback): Don't return early if the thread is
3435 2012-07-20 Pedro Alves <palves@redhat.com>
3437 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3438 * target.c (target_wait): Likewise.
3439 (str_comma_list_concat_elem, do_option, target_options_to_string):
3441 * target.h (target_options_to_string): Declare.
3443 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3444 Tom Tromey <tromey@redhat.com>
3446 * dwarf2read.c (dwarf_decode_macros)
3447 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3448 DW_MACRO_GNU_transparent_include_alt>: New cases.
3449 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3450 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3452 2012-07-20 Tom Tromey <tromey@redhat.com>
3454 * dwarf2read.c (try_open_dwo_file): Don't call
3455 gdb_bfd_stash_filename.
3457 2012-07-20 Pedro Alves <palves@redhat.com>
3459 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3460 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3461 (i386_process_record): Tweak description comments.
3463 2012-07-20 Pedro Alves <palves@redhat.com>
3465 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3466 (i386_process_record): Use record_read_memory.
3467 * record.c (record_read_memory): New function.
3468 (record_arch_list_add_mem, record_exec_insn): Use
3470 * record.h (record_read_memory): Declare.
3472 2012-07-20 Yao Qi <yao@codesourcery.com>
3474 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3477 2012-07-19 Pedro Alves <palves@redhat.com>
3479 * record.c (record_resume): Ask the target beneath to report all
3482 2012-07-19 Doug Evans <dje@google.com>
3484 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3485 there's no section at address zero.
3486 (dwarf2_record_block_ranges): Ditto.
3488 2012-07-19 Yao Qi <yao@codesourcery.com>
3490 * command.h, remote.c: Fix a typo in comment.
3492 2012-07-19 Tom Tromey <tromey@redhat.com>
3495 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3496 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3497 OP_DECLTYPE>: New cases.
3498 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3499 (type_exp): Add new productions.
3500 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3502 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3504 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3505 OP_DECLTYPE>: New case.
3506 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3508 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3509 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3511 2012-07-19 Tom Tromey <tromey@redhat.com>
3513 * c-exp.y (enum token_flags): New.
3514 (struct token) <cxx_only>: Remove.
3516 (tokentab3, tokentab2, ident_tokens): Update.
3517 (lex_one_token): Update. Handle FLAG_SHADOW.
3519 2012-07-19 Tom Tromey <tromey@redhat.com>
3521 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3522 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3523 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3524 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3525 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3526 type_exp production where appropriate.
3527 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3528 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3529 <UNOP_MEMVAL_TYPE>: New case.
3530 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3531 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3532 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3533 <UNOP_MEMVAL_TYPE>: New case.
3534 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3535 UNOP_REINTERPRET_CAST>: Update.
3536 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3537 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3538 UNOP_REINTERPRET_CAST>: Update.
3539 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3540 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3541 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3544 2012-07-19 Yao Qi <yao@codesourcery.com>
3545 Jan Kratochvil <jan.kratochvil@redhat.com>
3547 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3548 and case 'var_optional_filename' together.
3549 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3550 instead of add_setshow_optional_filename_cmd for setshow command
3551 'args'. Set completer for 'set args'.
3553 2012-07-18 Doug Evans <dje@google.com>
3555 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3556 * common/gdb_vecs.c: New file, contents from utils.c.
3557 * common/host-defs.h: New file, contents from defs.h.
3558 * utils.h: New file, contents from defs.h.
3559 * defs.h: Move all declarations of objects defined in utils.c
3560 to utils.h (except QUIT() and related).
3561 #include "utils.h", "host-defs.h".
3562 * probe.h (probe_p): Move here from gdb_vecs.h.
3563 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3564 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3565 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3566 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3567 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3568 (COMMON_OBS): Add gdb_vecs.o.
3569 (gdb_vecs.o): New rule.
3571 2012-07-18 Keith Seitz <keiths@redhat.com>
3573 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3574 parameter. If non-zero, use SYMNAME as the canonical name
3577 (convert_linespec_to_sals): Use add_sal_to_sals for
3579 (decode_line_full): No need to "fill in missing canonical names"
3580 anymore. Simply make cleanups for the allocated names.
3582 2012-07-18 Keith Seitz <keiths@redhat.com>
3584 * linespec.c (struct linespec): Constify expression,
3585 source_filename, function_name, and label_name.
3586 (symbol_not_found_error): Make all parameters const.
3587 (linespec_parser_delete): No need to check for NULL
3588 when using xfree. Cast const char * to char * for xfree.
3590 2012-07-18 Keith Seitz <keiths@redhat.com>
3592 * breakpoint.c (invalid_thread_id_error): New function.
3593 (find_condition_and_thread): Use invalid_thread_id_error.
3594 (watch_command_1): Likewise.
3596 2012-07-18 Tom Tromey <tromey@redhat.com>
3598 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3599 * contrib/cc-with-tweaks.sh: New file.
3601 2012-07-18 Tom Tromey <tromey@redhat.com>
3603 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3604 (locate_dwz_sections): Recognize .gdb_index.
3605 (create_cus_from_index_list): New function.
3606 (create_cus_from_index): Use it. Handle .dwz data.
3607 (read_index_from_section): New function, extracted from
3609 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3612 2012-07-18 Tom Tromey <tromey@redhat.com>
3614 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3615 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3616 <is_dwz>: New field.
3617 (struct dwz_file): New.
3618 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3619 (locate_dwz_sections, dwarf2_get_dwz_file)
3620 (get_abbrev_section_for_cu): New functions.
3621 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3622 (read_and_check_type_unit_head): Add abbrev_section argument.
3623 (create_debug_types_hash_table): Update.
3624 (init_cutu_and_read_dies): Use proper abbrev section.
3625 (init_cutu_and_read_dies_no_follow): Likewise.
3626 (set_partial_user): Do nothing if PST==NULL.
3627 (read_comp_units_from_section): New function.
3628 (create_all_comp_units): Use it.
3629 (scan_partial_symbols, partial_die_parent_scope): Update.
3630 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3631 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3632 (find_partial_die): Add offset_in_dwz argument. Update.
3633 (guess_partial_die_structure_name, fixup_partial_die): Update.
3634 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3635 DW_FORM_GNU_strp_alt.
3636 (read_indirect_string_from_dwz): New function.
3637 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3638 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3639 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3640 (follow_die_offset): Add offset_in_dwz argument.
3641 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3642 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3643 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3644 Handle new macro forms.
3645 (dwarf_decode_macros): Update.
3646 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3647 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3648 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3649 (create_debug_types_hash_table): Use correct abbrev section.
3650 (get_debug_line_section): New function.
3651 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3652 (process_full_comp_unit): Pass 'required' argument to
3653 end_symtab_get_static_block.
3654 * buildsym.h (end_symtab_get_static_block): Update.
3655 * buildsym.c (end_symtab_get_static_block): Add 'required'
3657 (end_symtab, end_expandable_symtab): Update.
3659 2012-07-18 Tom Tromey <tromey@redhat.com>
3661 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3663 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3664 (zlib_decompress_section): Remove.
3665 (dwarf2_read_section): Use gdb_bfd_map_section.
3666 (munmap_section_buffer): Remove.
3667 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3668 munmap_section_buffer.
3669 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3670 (struct gdb_bfd_section_data): New.
3671 (free_one_bfd_section): New function.
3672 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3673 (get_section_descriptor, zlib_decompress_section)
3674 (gdb_bfd_map_section): New functions.
3675 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3677 2012-07-18 Tom Tromey <tromey@redhat.com>
3679 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3681 2012-07-18 Tom Tromey <tromey@redhat.com>
3683 * gdb_bfd.c (struct gdb_bfd_data): New.
3684 (gdb_bfd_cache): New global.
3685 (struct gdb_bfd_cache_search): New.
3686 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3687 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3688 * gdb_bfd.h (gdb_bfd_open): Declare.
3690 2012-07-18 Tom Tromey <tromey@redhat.com>
3692 * utils.c (make_cleanup_bfd_unref): Rename from
3693 make_cleanup_bfd_close.
3694 * defs.h (make_cleanup_bfd_unref): Rename from
3695 make_cleanup_bfd_close.
3696 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3697 (bfd_openw_with_cleanup): Update.
3698 * corelow.c (core_open): Update.
3699 * dsrec.c (load_srec): Update.
3700 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3701 * remote-m32r-sdi.c (m32r_load): Update.
3702 * remote-mips.c (mips_load_srec): Update.
3703 (pmon_load_fast): Update.
3704 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3706 (darwin_bfd_open): Update.
3707 * solib.c (solib_bfd_fopen): Update.
3708 * symfile-mem.c (symbol_file_add_from_memory): Update.
3709 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3710 (symfile_bfd_open): Update.
3711 (generic_load): Update.
3713 2012-07-18 Tom Tromey <tromey@redhat.com>
3715 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3716 (pmon_load_fast): Likewise.
3717 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3718 (m32r_upload_command): Likewise.
3719 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3720 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3721 Use make_cleanup_bfd_close.
3723 2012-07-18 Tom Tromey <tromey@redhat.com>
3725 * symfile.c (symfile_bfd_open): Don't copy name. Call
3726 gdb_bfd_stash_filename.
3727 (load_command): Open the new BFD before freeing the old.
3728 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3729 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3730 Call gdb_bfd_stash_filename.
3731 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3732 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3733 gdb_bfd_stash_filename.
3734 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3735 Free found_pathname.
3736 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3737 gdb_bfd_stash_filename.
3738 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3739 * machoread.c (macho_add_oso_symfile): Call
3740 gdb_bfd_stash_filename.
3741 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3742 gdb_bfd_stash_filename.
3743 (macho_check_dsym): Don't copy filename. Call
3744 gdb_bfd_stash_filename.
3745 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3746 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3747 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3748 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3749 * exec.c (exec_close): Don't free the BFD's filename.
3750 (exec_file_attach): Don't copy the filename. Call
3751 gdb_bfd_stash_filename.
3752 * corelow.c (core_close): Don't free the BFD's filename.
3753 (core_open): Call gdb_bfd_stash_filename.
3754 * corefile.c (reopen_exec_file): Remove #if 0 code.
3755 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3757 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3759 2012-07-18 Tom Tromey <tromey@redhat.com>
3761 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3763 (free_dwo_file): Use gdb_bfd_unref.
3764 * cli/cli-dump.c: Include gdb_bfd.h.
3765 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3766 (bfd_openr_with_cleanup): Likewise.
3767 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3769 * utils.c: Include gdb_bfd.h.
3770 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3771 * symfile.c: Include gdb_bfd.h.
3772 (separate_debug_file_exists): Use gdb_bfd_unref.
3773 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3774 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3775 (generic_load): Use gdb_bfd_ref.
3776 (reread_symbols): Use gdb_bfd_unref.
3777 * symfile-mem.c: Include gdb_bfd.h.
3778 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3779 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3780 * solib.c: Include gdb_bfd.h.
3781 (solib_bfd_fopen): Use gdb_bfd_ref.
3782 (solib_bfd_open): Use gdb_bfd_unref.
3783 (free_so_symbols): Use gdb_bfd_unref.
3784 (reload_shared_libraries_1): Use gdb_bfd_unref.
3785 * solib-spu.c: Include gdb_bfd.h.
3786 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3787 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3789 * solib-frv.c: Include gdb_bfd.h.
3790 (enable_break2): Use gdb_bfd_unref.
3791 * solib-dsbt.c: Include gdb_bfd.h.
3792 (enable_break2): Use gdb_bfd_unref.
3793 * solib-darwin.c: Include gdb_bfd.h.
3794 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3796 (darwin_bfd_open): Use gdb_bfd_unref.
3797 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3798 * remote-mips.c: Include gdb_bfd.h.
3799 (mips_load_srec): Use gdb_bfd_ref.
3800 (pmon_load_fast): Use gdb_bfd_ref.
3801 * remote-m32r-sdi.c: Include gdb_bfd.h.
3802 (m32r_load): Use gdb_bfd_ref.
3803 * record.c: Include gdb_bfd.h.
3804 (record_save_cleanups): Use gdb_bfd_unref.
3805 (cmd_record_save): Use gdb_bfd_unref.
3806 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3808 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3809 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3810 * objfiles.c: Include gdb_bfd.h.
3811 (free_objfile): Use gdb_bfd_unref.
3812 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3814 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3815 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3816 (macho_check_dsym): Likewise.
3817 * m32r-rom.c: Include gdb_bfd.h.
3818 (m32r_load): Use gdb_bfd_ref.
3819 (m32r_upload_command): Use gdb_bfd_ref.
3820 * jit.c: Include gdb_bfd.h.
3821 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3822 * gdb_bfd.h: New file.
3823 * gdb_bfd.c: New file.
3824 * gcore.c: Include gdb_bfd.h.
3825 (create_gcore_bfd): Use gdb_bfd_ref.
3826 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3827 (gcore_command): Use gdb_bfd_unref.
3828 * exec.c: Include gdb_bfd.h.
3829 (exec_close): Use gdb_bfd_unref.
3830 (exec_close_1): Use gdb_bfd_unref.
3831 (exec_file_attach): Use gdb_bfd_ref.
3832 * elfread.c: Include gdb_bfd.h.
3833 (build_id_verify): Use gdb_bfd_unref.
3834 * dsrec.c: Include gdb_bfd.h.
3835 (load_srec): Use gdb_bfd_ref.
3836 * corelow.c: Include gdb_bfd.h.
3837 (core_close): Use gdb_bfd_unref.
3838 (core_open): Use gdb_bfd_ref.
3839 * bfd-target.c: Include gdb_bfd.h.
3840 (target_bfd_xclose): Use gdb_bfd_unref.
3841 (target_bfd_reopen): Use gdb_bfd_ref.
3842 * Makefile.in (SFILES): Add gdb_bfd.c.
3843 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3844 (COMMON_OBS): Add gdb_bfd.o.
3846 2012-07-18 Keith Seitz <keiths@redhat.com>
3848 * breakpoint.c (find_condition_and_thread): Initialize
3850 (create_breakpiont): find_condition_and_thread will now
3851 initialize COND_STRING, THREAD, and REST (and TASK).
3852 (addr_string_to_sals): Likewise.
3854 2012-07-18 Pedro Alves <palves@redhat.com>
3856 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3857 Pull the single step breakpoints out of the target.
3859 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3861 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3862 * stap-probe.c (compile_probe_arg): Likewise.
3864 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3866 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3867 (elf_compile_to_ax): Likewise.
3868 * infrun.c (insert_exception_resume_from_probe): Likewise.
3869 (check_exception_resume): Remove `objfile' variable.
3870 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3871 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3872 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3873 (compare_entries): Rename to...
3874 (compare_probes): ...this. Adjust function to work with
3875 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3877 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3879 (print_ui_out_info): Adjust argument to be `struct probe *'.
3880 (info_probes_for_ops): Adjust internal computations to use
3882 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3883 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3884 gen_info_probes_table_values>: Remove `objfile' argument.
3885 (struct probe) <objfile>: New field.
3886 (find_probe_by_pc): Remove `objfile' argument.
3887 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3888 (stap_get_probe_argument_count): Likewise.
3889 (stap_get_arg): Likewise.
3890 (stap_evaluate_probe_argument): Likewise.
3891 (stap_compile_to_ax): Likewise.
3892 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3893 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3894 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3895 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3896 sym_compile_to_ax>: Likewise.
3898 2012-07-18 Terry Guo <terry.guo@arm.com>
3901 * defs.h (GDB_MI_MSG_WIDTH): New.
3902 * ser_base (ser_base_read_error_fd): New function.
3903 (do_ser_base_readchar): Poll error file descriptor as well as
3905 (generic_readchar): Refactor error handling.
3907 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3909 * NEWS: Create a new section for the next release branch.
3910 Rename the section of the current branch, now that it has
3913 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3915 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3916 * version.in: Bump version to 7.5.50.20120718-cvs.
3918 2012-07-17 Keith Seitz <keiths@redhat.com>
3920 * linespec.c (linespec_parse_line_offset): Make parameter
3923 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3926 * f-valprint.c (info_common_command): New variable frame_id.
3927 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3928 * printcmd.c (print_variable_and_value): Extend function comment.
3929 Add comment for invalidated FRAME.
3930 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3931 FI form FRAME_ID after each print_frame_local_vars.
3932 (struct print_variable_and_value_data): Change frame to frame_id.
3933 (do_print_variable_and_value): New variable frame, initialize it from
3934 p->frame_id. Add comment for invalidated FRAME.
3935 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3936 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3937 for invalidated FRAME.
3939 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3940 Pedro Alves <palves@redhat.com>
3942 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3945 2012-07-16 Tom Tromey <tromey@redhat.com>
3947 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3949 2012-07-15 Doug Evans <dje@google.com>
3951 * dwarf2read.c (stmt_list_hash): New struct.
3952 (type_unit_group): Embed "per_cu" member, remove pointer.
3953 New union member "t", move member "tus" into it, all uses updated.
3954 New member "hash", replaces member "line_offset, all uses updated.
3955 (quick_file_names): Replace member "offset" with "hash", all uses
3957 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3958 (hash_file_name_entry, eq_file_name_entry): Call them.
3959 (hash_type_unit_group, eq_type_unit_group): Ditto.
3960 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3961 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3962 (dw2_get_file_names): Update.
3963 (create_type_unit_group): Replace "per_cu" arg with "cu".
3964 All callers updated. Fix "quick" (.gdb_index) handling.
3965 (get_type_unit_group): Replace "per_cu" arg with "cu".
3966 All callers updated.
3967 (build_type_unit_groups): Don't reset tu_stats.
3969 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3970 "tab_cur_size". Change member "tab" to be a htab_t.
3971 (create_filename_seen_cache): Update.
3972 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3973 (filename_seen): Update.
3975 2012-07-13 Doug Evans <dje@google.com>
3977 * symtab.c (filename_seen): Update comment.
3979 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3980 Doug Evans <dje@google.com>
3982 * buildsym.c (end_symtab_1): Split it to ...
3983 (end_symtab_get_static_block): ... this ...
3984 (end_symtab_from_static_block): ... and this function.
3985 (end_symtab, end_expandable_symtab): Call them.
3986 * buildsym.h (end_symtab_get_static_block)
3987 (end_symtab_from_static_block): New declarations.
3988 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3989 Set its valid CU ranges.
3991 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3993 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3994 DW_OP_GNU_parameter_ref.
3996 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3998 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3999 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4001 2012-07-13 Doug Evans <dje@google.com>
4003 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4004 (filename_seen_cache): New struct.
4005 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4006 (create_filename_seen_cache): New function.
4007 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4008 (filename_seen): Delete arg "first". New arg "cache". All callers
4010 (output_source_filename_data): New struct.
4011 (output_source_filename): Delete arg "first". New arg "data".
4012 All callers updated.
4013 (sources_info): Delete local "first". New locals "data", "cleanups".
4014 Rewrite to use filename_seen_cache.
4015 (add_partial_filename_data): Delete member "first". New member
4016 "filename_seen_cache". All uses updated.
4017 (make_source_files_completion_list): Rewrite to use
4018 filename_seen_cache.
4020 2012-07-12 Doug Evans <dje@google.com>
4022 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4024 2012-07-10 Doug Evans <dje@google.com>
4027 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4028 all_type_unit_groups, type_unit_groups, tu_stats.
4029 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4030 All uses updated. Add type_unit_group to union "s".
4031 (type_unit_group): New struct.
4032 (IS_TYPE_UNIT_GROUP): New macro.
4033 (abbrev_table): Delete unused member "section".
4034 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4035 (dw2_get_cu): Assert not used with type_unit_group.
4036 (dw2_get_primary_cu): New function.
4037 (dw2_build_type_unit_groups_reader): New function.
4038 (dw2_build_type_unit_groups): New function.
4039 (dw2_get_file_names): Assert not called on type units.
4040 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4041 Redo loop to iterate over type unit groups instead of type units.
4042 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4043 (read_abbrev_offset): New function.
4044 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4046 (create_partial_symtab): New function.
4047 (process_psymtab_comp_unit_reader): Assert not used with type units.
4048 Call create_partial_symtab.
4049 (process_psymtab_type_unit): Delete.
4050 (hash_type_unit_group, eq_type_unit_group): New functions.
4051 (allocate_type_unit_groups_table): New function.
4052 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4053 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4054 (create_type_unit_group, get_type_unit_group): New functions.
4055 (tu_abbrev_offset): New struct.
4056 (sort_tu_by_abbrev_offset): New function.
4057 (add_type_unit_group_to_table): New function.
4058 (build_type_unit_groups): New function.
4059 (build_type_psymtabs_reader): New function.
4060 (build_type_psymtab_dependencies): New function.
4061 (build_type_psymtabs): Rewrite.
4062 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4063 is seen in a type unit.
4064 (process_queue): Move symtab expansion debugging printfs here.
4065 Call process_full_type_unit for type units.
4066 (compute_symtab_includes): Assert not called for type units.
4067 (process_cu_includes): Don't call compute_symtab_includes for
4069 (process_full_type_unit): New function.
4070 (process_imported_unit_die): Flag an error if called for type units.
4071 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4072 updated. Assert not called for type units.
4073 (read_file_scope): Call dwarf2_start_symtab.
4074 (setup_type_unit_groups): New function.
4075 (read_type_unit_scope): Rewrite.
4076 (abbrev_table_read_table): Initialize abbrev_table->offset.
4077 (abbrev_table_free_cleanup): New function.
4078 (dwarf2_start_symtab): New function.
4079 (load_full_type_unit): Assert not called for type unit groups.
4080 * buildsym.c (finish_block_internal): New arg "expandable".
4081 All callers updated.
4082 (start_symtab): Move most contents to ...
4083 (restart_symtab): ... here. New function.
4084 (reset_symtab_globals): New function.
4085 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4086 Call reset_symtab_globals.
4087 (end_symtab, end_expandable_symtab): New functions.
4088 (set_missing_symtab, augment_type_symtab): New functions.
4089 * buildsym.h (end_expandable_symtab): Declare.
4090 (augment_type_symtab, restart_symtab): Declare.
4091 * psympriv.h (struct partial_symtab): New member "anonymous".
4092 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4094 (read_psymtabs_with_filename): Ditto.
4095 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4096 (expand_symtabs_matching_via_partial): Ditto.
4097 (dump_psymtab): Update.
4098 * dictionary.c (dict_add_pending): New function.
4099 * dictionary.h (dict_add_pending): Declare.
4101 2012-07-09 Doug Evans <dje@google.com>
4103 * buildsym.c (start_subfile): Remove unnecessary check for
4106 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4108 * dwarf2read.c (load_full_type_unit): Simplify.
4110 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4111 to struct signatured_type **. All uses updated.
4113 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4114 All callers updated.
4116 2012-07-09 Tom Tromey <tromey@redhat.com>
4118 * c-exp.y (check_parameter_typelist): New function.
4119 (parameter_typelist): Call it.
4120 * eval.c (make_params): Handle '(void)' case.
4121 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4124 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4126 * common/linux-ptrace.c: Include gdb_assert.h.
4127 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4128 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4130 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4132 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4133 * linux-nat.c (linux_child_post_attach)
4134 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4136 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4138 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4139 nptl <2.7 bug workaround for core files.
4141 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4143 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4145 (save_siginfo): Remove.
4146 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4148 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4149 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4150 * linux-nat.h (struct lwp_info): Remove field siginfo.
4152 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4154 Code cleanup for the next patch.
4155 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4156 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4158 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4159 (ia64_linux_stopped_data_address):
4160 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4162 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4163 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4164 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4167 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4170 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4171 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4173 2012-07-06 Tom Tromey <tromey@redhat.com>
4175 * c-exp.y (DOTDOTDOT): New token.
4176 (func_mod, exp): Use parameter_typelist.
4177 (parameter_typelist): New production.
4178 (tokentab3): Add "..." token.
4179 * eval.c (make_params): Handle varargs.
4180 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4183 2012-07-06 Tom Tromey <tromey@redhat.com>
4186 * c-exp.y (%union) <tvec>: Change type.
4187 (func_mod): Now uses <tvec> type.
4188 (exp): Update for tvec change.
4189 (direct_abs_decl): Push the typelist.
4190 (func_mod): Return a typelist.
4191 (nonempty_typelist): Update for tvec change.
4192 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4193 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4194 * parse.c (pop_type_list): New function.
4195 (push_typelist): New function.
4196 (follow_types): Handle tp_function_with_arguments.
4197 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4198 (enum type_pieces) <tp_function_with_arguments>: New constant.
4199 (union type_stack_elt) <typelist_val>: New field.
4200 (push_typelist): Declare.
4202 2012-07-06 Tom Tromey <tromey@redhat.com>
4204 * c-exp.y (%union) <type_stack>: New field.
4205 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4206 (ptr_operator_ts): New production.
4208 * parse.c (type_stack_reserve): New function.
4209 (check_type_stack_depth): Use it.
4210 (pop_type_stack, append_type_stack, push_type_stack)
4211 (get_type_stack, type_stack_cleanup): New functions.
4212 (follow_types): Handle tp_type_stack.
4213 (_initialize_parse): Simplify initialization.
4214 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4216 (union type_stack_elt) <stack_val>: New field.
4217 (get_type_stack, append_type_stack, push_type_stack)
4218 (type_stack_cleanup): Declare.
4220 2012-07-06 Tom Tromey <tromey@redhat.com>
4222 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4224 (struct type_stack): New.
4225 * parse.c (type_stack, type_stack_size, type_stack_depth):
4227 (type_stack): New global.
4228 (parse_exp_in_context, check_type_stack_depth)
4229 (insert_into_type_stack, insert_type, push_type, push_type_int)
4230 (insert_type_address_space, pop_type, pop_type_int)
4231 (_initialize_parse): Update.
4233 2012-07-06 Tom Tromey <tromey@redhat.com>
4235 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4238 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4240 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4242 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4243 Jan Kratochvil <jan.kratochvil@redhat.com>
4245 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4246 alloca with xmalloc/xfree.
4248 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4250 * MAINTAINERS (Write After Approval): Add myself to the list.
4252 2012-07-05 Doug Evans <dje@google.com>
4254 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4256 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4258 * ax-gdb.c (cli/cli-utils.h): New include.
4259 (linespec.h): Ditto.
4260 (agent_eval_command_one): New function.
4261 (agent_command_1): Ditto.
4262 (agent_command): Call function agent_command_1.
4263 (agent_eval_command): Ditto.
4264 (_initialize_ax_gdb): Change help for "maint agent"
4265 and "maint agent-eval".
4267 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4269 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4270 * cli/cli-utils.c (check_for_argument): New function.
4271 * cli/cli-utils.h (check_for_argument): Ditto.
4273 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4275 * NEWS: Mention x32 ABI support.
4277 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4279 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4280 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4282 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4283 and pc_regnum_from_eax to -1. Update SP regnum from
4284 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4287 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4290 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4292 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4293 * dwarf2expr.h: Include gdbtypes.h.
4294 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4295 these forward declarations.
4296 (cu_offset, sect_offset): Move these ...
4297 * gdbtypes.h: Remove include dwarf2expr.h.
4298 (cu_offset, sect_offset): ... here.
4300 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4302 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4303 (amd64_linux_sigtramp_code): This.
4304 (amd64_x32_linux_sigtramp_code): New.
4305 (LINUX_SIGTRAMP_LEN): Updated.
4306 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4308 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4310 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4312 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4314 * config.in: Regenerate.
4315 * configure: Regenerate.
4316 * configure.ac: Remove check for gnu/libc-version.h.
4317 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4319 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4320 variables libc_version, libc_major and libc_minor. Replace sscanf by
4321 inferior_has_bug. Extend the comment.
4323 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4325 * linux-thread-db.c (inferior_has_bug): New function.
4326 (thread_db_find_new_threads_silently): Return boolean as checked by
4327 inferior_has_bug, describe it in the comments.
4328 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4329 earlier. Abort the initialization if it returned non-zero.
4330 (thread_db_new_objfile): Exclude debug files.
4331 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4334 2012-07-02 Doug Evans <dje@google.com>
4336 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4337 related to queue management.
4339 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4340 instead of "debug dwarf2-die" in debugging printfs.
4341 (create_debug_info_hash_table_reader): Ditto.
4342 (create_debug_info_hash_table): Ditto.
4343 (init_dwo_file): Ditto.
4344 (init_cutu_and_read_dies): Add debugging printf.
4345 (init_cutu_and_read_dies_no_follow): Ditto.
4346 (process_psymtab_comp_unit_reader): Ditto.
4348 2012-07-02 Stan Shebs <stan@codesourcery.com>
4350 Add target-side support for dynamic printf.
4351 * NEWS: Mention the additional style.
4352 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4353 (struct bp_location): New field cmd_bytecode.
4354 * breakpoint.c: Include format.h.
4355 (disconnected_dprintf): New global.
4356 (parse_cmd_to_aexpr): New function.
4357 (build_target_command_list): New function.
4358 (insert_bp_location): Call it.
4359 (remove_breakpoints_pid): Skip dprintf breakpoints.
4360 (print_one_breakpoint_location): Ditto.
4361 (dprintf_style_agent): New global.
4362 (dprintf_style_enums): Add dprintf_style_agent.
4363 (update_dprintf_command_list): Add agent case.
4364 (agent_printf_command): New function.
4365 (_initialize_breakpoint): Add new commands.
4366 * common/ax.def (printf): New bytecode.
4367 * ax.h (ax_string): Declare.
4368 * ax-gdb.h (gen_printf): Declare.
4369 * ax-gdb.c: Include cli-utils.h, format.h.
4370 (gen_printf): New function.
4371 (maint_agent_print_command): New function.
4372 (_initialize_ax_gdb): Add maint agent-printf command.
4373 * ax-general.c (ax_string): New function.
4374 (ax_print): Add printf disassembly.
4375 * Makefile.in (SFILES): Add format.c
4376 (COMMON_OBS): Add format.o.
4377 * common/format.h: New file.
4378 * common/format.c: New file.
4379 * printcmd.c: Include format.h.
4380 (ui_printf): Call parse_format_string.
4381 * remote.c (remote_state): New field breakpoint_commands.
4382 (PACKET_BreakpointCommands): New enum.
4383 (remote_breakpoint_commands_feature): New function.
4384 (remote_protocol_features): Add new BreakpointCommands entry.
4385 (remote_can_run_breakpoint_commands): New function.
4386 (remote_add_target_side_commands): New function.
4387 (remote_insert_breakpoint): Call it.
4388 (remote_insert_hw_breakpoint): Ditto.
4389 (_initialize_remote): Add new packet configuration for
4390 target-side breakpoint commands.
4391 * target.h (struct target_ops): New field
4392 to_can_run_breakpoint_commands.
4393 (target_can_run_breakpoint_commands): New macro.
4394 * target.c (update_current_target): Handle
4395 to_can_run_breakpoint_commands.
4397 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4399 Execute -ix and -iex only after system and user gdbinit files.
4400 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4401 processing down after gdbinit files.
4403 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4405 Add fnmatch-gnu module.
4406 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4407 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4408 * gnulib/aclocal.m4: Regenerate.
4409 * gnulib/config.in: Regenerate.
4410 * gnulib/configure: Regenerate.
4411 * gnulib/import/dummy.c: Remove.
4412 * gnulib/import/Makefile.am: Regenerate.
4413 * gnulib/import/Makefile.in: Likewise.
4414 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4415 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4416 * gnulib/import/alloca.c: New file.
4417 * gnulib/import/alloca.in.h: Likewise.
4418 * gnulib/import/config.charset: Likewise.
4419 * gnulib/import/fnmatch.c: Likewise.
4420 * gnulib/import/fnmatch.in.h: Likewise.
4421 * gnulib/import/fnmatch_loop.c: Likewise.
4422 * gnulib/import/localcharset.c: Likewise.
4423 * gnulib/import/localcharset.h: Likewise.
4424 * gnulib/import/m4/alloca.m4: Likewise.
4425 * gnulib/import/m4/codeset.m4: Likewise.
4426 * gnulib/import/m4/configmake.m4: Likewise.
4427 * gnulib/import/m4/fcntl-o.m4: Likewise.
4428 * gnulib/import/m4/fnmatch.m4: Likewise.
4429 * gnulib/import/m4/glibc21.m4: Likewise.
4430 * gnulib/import/m4/localcharset.m4: Likewise.
4431 * gnulib/import/m4/locale-fr.m4: Likewise.
4432 * gnulib/import/m4/locale-ja.m4: Likewise.
4433 * gnulib/import/m4/locale-zh.m4: Likewise.
4434 * gnulib/import/m4/mbrtowc.m4: Likewise.
4435 * gnulib/import/m4/mbsinit.m4: Likewise.
4436 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4437 * gnulib/import/m4/mbstate_t.m4: Likewise.
4438 * gnulib/import/m4/stdbool.m4: Likewise.
4439 * gnulib/import/m4/wchar_h.m4: Likewise.
4440 * gnulib/import/m4/wctype_h.m4: Likewise.
4441 * gnulib/import/m4/wint_t.m4: Likewise.
4442 * gnulib/import/mbrtowc.c: Likewise.
4443 * gnulib/import/mbsinit.c: Likewise.
4444 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4445 * gnulib/import/mbsrtowcs-state.c: Likewise.
4446 * gnulib/import/mbsrtowcs.c: Likewise.
4447 * gnulib/import/ref-add.sin: Likewise.
4448 * gnulib/import/ref-del.sin: Likewise.
4449 * gnulib/import/stdbool.in.h: Likewise.
4450 * gnulib/import/streq.h: Likewise.
4451 * gnulib/import/strnlen1.c: Likewise.
4452 * gnulib/import/strnlen1.h: Likewise.
4453 * gnulib/import/verify.h: Likewise.
4454 * gnulib/import/wchar.in.h: Likewise.
4455 * gnulib/import/wctype.in.h: Likewise.
4457 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4459 Support shell wildcards for 'set auto-load safe-path'.
4460 * auto-load.c: Include fnmatch.h.
4461 (filename_is_in_dir): Rename to ...
4462 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4463 it. Update function comment. Rename dir_len to pattern_len. New
4464 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4465 messages. Use gdb_filename_fnmatch.
4466 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4468 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4469 * defs.h (gdb_filename_fnmatch): New declaration.
4470 * utils.c: Include fnmatch.h.
4471 (gdb_filename_fnmatch): New function.
4473 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4475 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4476 `-probe' and `-probe-stap' options.
4478 2012-07-01 Yao Qi <yao@codesourcery.com>
4480 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4481 always_inserted_off, and always_inserted_enums.
4482 Change always_inserted_mode's type to 'enum auto_boolean'.
4483 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4485 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4486 of add_setshow_enum_cmd.
4487 * infrun.c: Remove can_use_displaced_stepping_auto,
4488 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4489 can_use_displaced_stepping_enum.
4490 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4491 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4492 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4493 add_setshow_enum_cmd.
4495 2012-06-30 Doug Evans <dje@google.com>
4497 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4498 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4499 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4501 2012-06-29 Doug Evans <dje@google.com>
4503 * linespec.c: #include "stack.h".
4504 (decode_line_with_current_source): Moved here from symtab.c and
4505 renamed from decode_line_spec. All callers updated.
4506 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4507 renamed from decode_line_spec_1. All callers updated.
4508 * linespec.h (decode_line_with_current_source): Move declaration here
4509 from symtab.h and renamed from decode_line_spec.
4510 (decode_line_with_last_displayed): Move declaration here from symtab.h
4511 and renamed from decode_line_spec_1.
4512 * macrocmd.c: #include "linespec.h".
4513 * symtab.c: Remove #include "linespec.h".
4515 2012-06-28 Doug Evans <dje@google.com>
4517 * dwarf2read.c (get_cu_length): New function.
4518 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4519 (create_debug_types_hash_table): Ditto.
4520 (init_cutu_and_read_dies): Ditto.
4521 (init_cutu_and_read_dies_no_follow): Ditto.
4523 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4525 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4526 (struct abbrev_table): Define.
4527 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4529 (init_cutu_and_read_dies): Update.
4530 (abbrev_table_alloc_abbrev): New function. Replaces
4531 dwarf_alloc_abbrev. All callers updated.
4532 (abbrev_table_add_abbrev): New function.
4533 (abbrev_table_lookup_abbrev): New function. Replaces
4534 dwarf2_lookup_abbrev. All callers updated.
4535 (abbrev_table_read_table): New function. Contents moved here from
4536 dwarf2_read_abbrevs.
4537 (dwarf2_read_abbrevs): Call it.
4538 (abbrev_table_free): New function.
4539 (dwarf2_free_abbrev_table): Call it.
4541 2012-06-28 Stan Shebs <stan@codesourcery.com>
4543 * osdata.c (info_osdata_command): Filter out "Title" columns
4545 * common/linux-osdata.c (struct osdata_type): Add title field.
4546 (osdata_table): Add titles to each entry.
4547 (linux_command_xfer_osdata): Add a column for title data.
4549 2012-06-28 Stan Shebs <stan@codesourcery.com>
4551 Make logging work for MI.
4553 * interps.h (interp_set_logging_ftype): New typedef.
4554 (struct interp_procs): New field set_logging_proc.
4555 (current_interp_set_logging): Declare.
4556 * interps.c (current_interp_set_logging): New function.
4557 * cli/cli-logging.c: Include interps.h.
4558 (set_logging_redirect): Call current_interp_set_logging.
4559 (pop_output_files): Ditto.
4560 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4561 * mi/mi-console.h (mi_console_set_raw): Declare.
4562 * mi/mi-console.c (mi_console_set_raw): New function.
4563 * mi/mi-interp.c (saved_raw_stdout): New global.
4564 (mi_set_logging): New function.
4565 (_initialize_mi_interp): Add it to interp procs.
4567 2012-06-28 Doug Evans <dje@google.com>
4569 * symtab.c (lookup_symbol_aux_objfile): Use
4570 ALL_OBJFILE_PRIMARY_SYMTABS.
4572 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4574 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4576 * common/buffer.c: Include inttypes.h and stdint.h.
4577 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4579 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4580 Pedro Alves <palves@redhat.com>
4582 * gdbthread.h (ALL_THREADS): New macro.
4583 (thread_list): Declare.
4584 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4585 going, but instead fall through to the stepping handling.
4586 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4587 the passed in signal. Adjust debug output.
4588 (resume_callback): Rename to ...
4589 (linux_nat_resume_callback): ... this. Pass the thread's last
4590 stop signal, if in "pass" state.
4591 (linux_nat_resume): Adjust to rename.
4592 (stop_wait_callback): New assertion. Don't respawn signals;
4593 instead let the LWP remain with SIGNALLED set.
4594 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4595 * remote.c (append_pending_thread_resumptions): New.
4596 (remote_vcont_resume): Call it.
4597 * target.h (target_resume): Extend comment.
4599 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4601 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4603 2012-06-27 Doug Evans <dje@google.com>
4605 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4606 Delete have_addr_base, unused. All uses updated.
4607 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4608 (dwarf2_get_pc_bounds): Add ranges_base.
4609 (dwarf2_record_block_ranges): Ditto.
4611 2012-06-27 Tom Tromey <tromey@redhat.com>
4614 * varobj.c (varobj_create): Update.
4615 (varobj_set_value): Update.
4616 * tracepoint.c (validate_actionline): Update.
4617 (encode_actions_1): Update.
4618 * parse.c (parse_exp_1): Add 'pc' argument.
4619 (parse_exp_in_context): Add 'pc' argument. Change how
4620 expression_context_pc is set.
4621 (parse_expression): Update.
4622 (parse_field_expression): Update.
4623 * expression.h (parse_exp_1): Update.
4624 * eval.c (parse_to_comma_and_eval): Update.
4625 * breakpoint.c (set_breakpoint_condition): Update.
4626 (update_watchpoint): Update.
4627 (init_breakpoint_sal): Update
4628 (find_condition_and_thread): Update.
4629 (watch_command_1): Update.
4630 (update_breakpoint_locations): Update.
4631 * ada-lang.c (ada_read_renaming_var_value): Update.
4632 (create_excep_cond_exprs): Update.
4634 2012-06-27 Doug Evans <dje@google.com>
4636 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4639 2012-06-26 Doug Evans <dje@google.com>
4641 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4643 (error_check_comp_unit_head): New arg abbrev_section. All callers
4645 (read_and_check_comp_unit_head): Ditto.
4646 (read_and_check_type_unit_head): Ditto.
4648 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4650 New attribute 'last' for gdb.Symtab_and_line.
4651 * NEWS (Python Scripting): Add entry about the new attribute.
4652 * python/py-symtab.c (salpy_get_last): New function which
4653 implements the get method for the 'last' attribute of
4654 gdb.Symtab_and_line.
4655 (sal_object_getset): Add entry for the 'last' attribute.
4657 2012-06-26 Doug Evans <dje@google.com>
4659 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4660 (dwo_sections): Add macinfo, macro.
4661 (dwarf2_locate_dwo_sections): Watch for macro sections.
4662 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4663 All callers updated. Handle DWO files.
4665 * NEWS: Mention new options "set debug dwarf2-read" and
4666 "set debug symtab-create".
4667 * dwarf2read.c (dwarf2_read_debug): New static global.
4668 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4669 (process_queue): Ditto.
4670 (process_full_comp_unit): Ditto.
4671 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4672 * elfread.c (elf_symfile_read): Add debugging printf.
4673 * minsyms.c (install_minimal_symbols): Ditto.
4674 * psymtab.c (allocate_psymtab): Ditto.
4675 * symfile.c (allocate_symtab): Ditto.
4676 * symtab.c (symtab_create_debug): New global.
4677 (_initialize_symtab): Add new option "set debug symtab-create".
4678 * symtab.h (symtab_create_debug): Declare.
4680 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4681 (lookup_dwo_type_unit): Ditto.
4683 2012-06-26 Roland McGrath <roland@hack.frob.com>
4684 H.J. Lu <hongjiu.lu@intel.com>
4686 * amd64-linux-nat.c: Include <sys/user.h>.
4687 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4688 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4689 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4691 * configure.ac: Check if the fs_base and gs_base members of
4692 `struct user_regs_struct' exist.
4693 * config.in: Regenerated.
4694 * configure: Likewise.
4696 2012-06-25 Michael Eager <eager@eagercon.com>
4699 * python/python.c (gdbpy_write): Check for interrupted output.
4701 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4703 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4704 register as a stack alignment in ARM mode.
4706 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4708 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4709 * gnulib/config.in: Regenerate.
4710 * gnulib/configure: Likewise.
4711 * gnulib/import/m4/extensions.m4: Update it.
4712 * gnulib/import/m4/gnulib-common.m4: Likewise.
4713 * gnulib/import/m4/memmem.m4: Likewise.
4714 * gnulib/import/m4/mmap-anon.m4: Likewise.
4715 * gnulib/import/m4/multiarch.m4: Likewise.
4716 * gnulib/import/stdint.in.h: Likewise.
4718 2012-06-24 Yao Qi <yao@codesourcery.com>
4720 * corefile.c (write_memory_with_notification): New.
4721 * gdbcore.h: Declare write_memory_with_notification.
4722 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4723 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4724 * valops.c (value_assign): Likewise.
4725 * python/py-inferior.c (infpy_write_memory): Call
4726 'write_memory_with_notification'.
4728 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4730 * cc-with-index.sh: Use also -ex "set auto-load no".
4732 2012-06-23 Doug Evans <dje@google.com>
4735 * NEWS: Document additions to .gdb_index.
4736 * dwarf2read.c: #include "gdb/gdb-index.h".
4737 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4738 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4739 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4740 (dwarf2_read_index): Recognize version 7.
4741 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4742 block_kind, domain): All callers updated.
4743 (dw2_find_symbol_file): Handle new index CU values.
4744 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4745 (add_index_entry): New args is_static, kind. All callers updated.
4746 (offset_type_compare, uniquify_cu_indices): New functions
4747 (symbol_kind): New function.
4748 (write_psymtabs_to_index): Remove duplicate CU values.
4749 (write_psymtabs_to_index): Write .gdb_index version 7.
4751 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4753 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4754 * configure: Regenerate.
4756 2012-06-20 Yao Qi <yao@codesourcery.com>
4758 * python/py-inferior.c: Update comments of infpy_read_memory
4759 and infpy_write_memory.
4761 2012-06-19 Tom Tromey <tromey@redhat.com>
4764 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4765 (push_type_address_space): Remove.
4766 * parse.c (insert_into_type_stack): New function.
4767 (insert_type): Likewise.
4768 (insert_type_address_space): Rename from push_type_address_space.
4769 Insert tp_space_identifier.
4770 * c-exp.y (ptr_operator): New production.
4771 (abs_decl): Use ptr_operator.
4772 (space_identifier): Call insert_type_address_space.
4773 (ptype): Don't use const_or_volatile_or_space_identifier.
4774 (const_or_volatile_noopt): Call insert_type.
4775 (conversion_type_id, conversion_declarator): New productions.
4776 (operator): Use conversion_type_id.
4778 2012-06-18 Doug Evans <dje@google.com>
4780 * symtab.h (minimal_symbol): New member created_by_gdb.
4781 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4783 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4784 (search_symbols): Call it instead of lookup_symbol.
4785 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4787 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4788 Adjust address for DW_OP_GNU_addr_index.
4789 * dwarf2expr.h (dwarf_expr_context): Update comment.
4790 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4791 all callers updated. Handle TLS vars described with
4792 DW_OP_GNU_const_index.
4793 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4794 and DW_OP_GNU_const_index.
4795 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4797 * block.c (find_block_in_blockvector): Make explicit the fact that we
4798 ignore GLOBAL_BLOCK.
4800 2012-06-18 Tom Tromey <tromey@redhat.com>
4802 * c-exp.y (operator): Remove trailing space after "delete" and
4805 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4806 Jan Kratochvil <jan.kratochvil@redhat.com>
4808 Switch i386 and derived targets to ON_STACK.
4809 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4810 (amd64_dicos_init_abi): Remove its installment.
4811 * dicos-tdep.c (dicos_init_abi): Remove the
4812 set_gdbarch_call_dummy_location call. Update the comment here.
4813 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4814 (i386_dicos_init_abi): Remove its installment.
4815 * i386-tdep.c (i386_push_dummy_code): New function.
4816 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4817 i386_push_dummy_code.
4819 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4821 Remove stale dummy frames.
4822 * breakpoint.c: Include dummy-frame.h.
4823 (longjmp_breakpoint_ops): New variable.
4824 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4825 bp_longjmp_call_dummy.
4826 (bpstat_what, bptype_string, print_one_breakpoint_location)
4827 (init_bp_location): Support bp_longjmp_call_dummy.
4828 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4829 (set_longjmp_breakpoint_for_call_dummy)
4830 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4832 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4833 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4834 FIXME comment and extend the other comment for bp_call_dummy.
4835 (set_longjmp_breakpoint_for_call_dummy)
4836 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4837 * dummy-frame.c: Include gdbthread.h.
4838 (pop_dummy_frame_bpt): New function.
4839 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4840 (dummy_frame_discard): New function.
4841 (cleanup_dummy_frames): Update the comment about longjmps.
4842 * dummy-frame.h (dummy_frame_discard): New declaration.
4843 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4844 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4845 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4846 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4847 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4848 keep_going if IS_LONGJMP and there is no other reason to stop.
4850 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4852 * remote-sim.c (sim_command_completer): Initialize
4855 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4857 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4858 * dwarf2loc.c (call_site_parameter_matches): Support
4859 CALL_SITE_PARAMETER_PARAM_OFFSET.
4860 (needs_dwarf_reg_entry_value): Push stub value.
4861 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4862 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4863 * gdbtypes.h (enum call_site_parameter_kind): New item
4864 CALL_SITE_PARAMETER_PARAM_OFFSET.
4865 (struct call_site.parameter.u): New field param_offset.
4867 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4869 Code cleanup: Generalize call_site.parameter key.
4870 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4871 variable dwarf_reg. New variable kind_u. Update parameters to
4872 push_dwarf_reg_entry_value.
4873 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4874 * dwarf2expr.h (enum call_site_parameter_kind)
4875 (union call_site_parameter_u): Forward declarations.
4876 (struct dwarf_expr_context_funcs): Update parameters and their
4877 description for push_dwarf_reg_entry_value.
4878 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4879 * dwarf2loc.c (call_site_parameter_matches): New function.
4880 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4881 description. Use call_site_parameter_matches.
4882 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4883 Update parameters and their description.
4884 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4885 New variable kind_u. Adjust the caller for updated parameters.
4886 (needs_dwarf_reg_entry_value): Update parameters.
4887 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4888 instead of attr. Update for the changed fields of struct
4889 call_site_parameter.
4890 * gdbtypes.h: Include dwarf2expr.h.
4891 (enum call_site_parameter_kind): New.
4892 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4893 fb_offset into new union u.
4895 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4897 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4898 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4901 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4903 * amd64-linux-nat.c (compat_x32_clock_t): New.
4904 (compat_x32_siginfo_t): Likewise.
4905 (compat_x32_siginfo_from_siginfo): Likewise.
4906 (siginfo_from_compat_x32_siginfo): Likewise.
4907 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4908 and siginfo_from_compat_x32_siginfo for x32.
4910 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4912 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4914 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4916 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4917 instead of gdbarch_ptr_bit.
4918 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4919 (amd64_supply_native_gregset): Likewise.
4920 (amd64_collect_native_gregset): Likewise.
4921 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4922 (amd64_supply_xsave): Likewise.
4923 (amd64_collect_fxsave): Likewise.
4924 (amd64_collect_xsave): Likewise.
4926 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4928 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4929 (amd64_linux_read_description): Check DS segment register for
4932 2012-06-15 Tom Tromey <tromey@redhat.com>
4934 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4935 init_cutu_and_read_dies.
4937 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4939 * MAINTAINERS (Write After Approval): Add myself to the list.
4941 2012-06-15 Tom Tromey <tromey@redhat.com>
4943 * valops.c (value_find_oload_method_list): Now static.
4944 * value.h (value_find_oload_method_list): Don't declare.
4946 2012-06-15 Tom Tromey <tromey@redhat.com>
4948 * valops.c (find_overload_match): Use value_ind.
4950 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4952 * infrun.c (handle_inferior_event): Correct indentation.
4954 2012-06-14 Doug Evans <dje@google.com>
4956 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4957 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4959 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4960 updated. Handle DEBUG_LOC_START_LENGTH.
4961 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4962 (loclist_describe_location): Ditto.
4964 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4967 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4968 after hiding inline functions.
4970 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4972 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4973 _initialize_inf_ttrace.
4975 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4977 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4978 _initialize_hppa_hpux_nat.
4980 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4982 * remote-sim.c (sim_command_completer): Change type of return
4983 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4985 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4986 Jan Kratochvil <jan.kratochvil@redhat.com>
4989 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4990 stack on a 16-byte boundary.
4992 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4994 * jit.c (finalize_symtab): Set function's return type to 'void' by
4997 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4998 H.J. Lu <hongjiu.lu@intel.com>
5000 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5001 Move bits common to both the classic LP64 and the new x32 ILP32
5003 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5004 (amd64_x32_linux_init_abi): New function.
5005 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5008 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5009 * i386-tdep.c (i386_pseudo_register_name): Make public.
5010 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5011 * amd64-tdep.c (amd64_dword_names): Add "eip".
5012 (amd64_x32_pseudo_register_type): New function
5013 (amd64_x32_init_abi): New function.
5015 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5018 * inferior.h (struct inferior_suspend_state): Comment out.
5019 (struct inferior): Comment out the field suspend.
5020 * infrun.c (struct infcall_suspend_state): Comment out the field
5022 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5025 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5027 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5028 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5029 function comment. Return ERROR for unresolved cases. Implement
5030 returning proper NAME.
5031 (yylex): Accept also NAME from classify_inner_name.
5032 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5033 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5035 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5037 2012-06-13 Tom Tromey <tromey@redhat.com>
5039 * breakpoint.c (condition_completer): New function.
5040 (_initialize_breakpoint): Use it.
5041 * value.c (complete_internalvar): New function.
5042 * value.h (complete_internalvar): Declare.
5044 2012-06-13 Tom Tromey <tromey@redhat.com>
5046 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5047 * breakpoint.c (catch_syscall_completer): Return a VEC.
5048 * cli/cli-cmds.c (complete_command): Update.
5049 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5050 (complete_on_enum): Likewise.
5051 * command.h: Include gdb_vecs.h.
5052 (completer_ftype): Change return type.
5053 (complete_on_cmdlist, complete_on_enum): Likewise.
5054 * completer.c (noop_completer, filename_completer)
5055 (location_completer): Return a VEC.
5056 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5058 (expression_completer, complete_line_internal, complete_line)
5059 (command_completer): Return a VEC.
5060 (gdb_completion_word_break_characters, line_completion_function):
5062 * completer.h: Include gdb_vecs.h.
5063 (complete_line, noop_completer, filename_completer)
5064 (expression_completer, location_completer, command_completer):
5066 * f-lang.c (f_word_break_characters): Return a VEC.
5067 * interps.c (interpreter_completer): Return a VEC.
5068 * language.h (struct language_defn)
5069 <la_make_symbol_completion_list>: Return a VEC.
5070 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5071 * symtab.c (free_completion_list): Take a VEC.
5072 (return_val_size, return_val_index): Remove.
5073 (return_val): Now a VEC.
5074 (completion_list_add_name): Update.
5075 (default_make_symbol_completion_list_break_on)
5076 (default_make_symbol_completion_list, make_symbol_completion_list)
5077 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5079 (add_filename_to_list): Update.
5080 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5082 (maybe_add_partial_symtab_filename): Update.
5083 (make_source_files_completion_list): Return a VEC.
5084 * symtab.h (default_make_symbol_completion_list_break_on)
5085 (default_make_symbol_completion_list, make_symbol_completion_list)
5086 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5087 (make_source_files_completion_list): Update.
5089 2012-06-13 Tom Tromey <tromey@redhat.com>
5091 * breakpoint.c (add_catch_command): Use completer_ftype.
5092 * breakpoint.h: Include command.h.
5093 (add_catch_command): Use completer_ftype.
5094 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5095 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5096 Use completer_ftype.
5097 * command.h (completer_ftype): New typedef.
5098 (set_cmd_completer): Use it.
5099 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5102 2012-06-13 Pedro Alves <palves@redhat.com>
5104 Partial revert of previous change.
5106 * serial.c (scb_base): New global.
5107 (serial_for_fd): New.
5108 (serial_open, serial_fdopen_ops): Link new serial in open serials
5110 (do_serial_close): Unlink serial from the open serials chain.
5112 2012-06-12 Pedro Alves <palves@redhat.com>
5114 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5116 (prepare_for_detach): No longer context switch here in non-stop
5118 (fetch_inferior_event): Ditto.
5119 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5120 to the event thread before removing breakpoints. Switch to the
5121 event thread before inserting breakpoints and resuming.
5122 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5123 event thread before resuming.
5124 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5125 Switch to the event thread before removing breakpoints.
5127 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5129 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5130 special characters correctly for the Windows shells. See
5131 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5133 [!__MINGW32__]: Remove extra double quote character from special
5136 2012-06-11 Stan Shebs <stan@codesourcery.com>
5138 * ui-out.h: Remove #if 0 declarations.
5139 * ui-out.c: Remove #if 0 functions.
5141 2012-06-11 Pedro Alves <palves@redhat.com>
5143 * ser-base.c (run_async_handler_and_reschedule): New.
5144 (fd_event, push_event): Use it.
5145 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5146 reference count to 1.
5147 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5149 (serial_is_open, serial_ref, serial_unref): New.
5150 * serial.h (serial_open): Adjust comment.
5151 (serial_is_open): Declare.
5152 (serial_close): Adjust comment.
5153 (serial_ref, serial_unref) Declare.
5154 (struct serial): New field 'refcnt'.
5156 2012-06-11 Pedro Alves <palves@redhat.com>
5158 Remove #if 0'd "connect" command, and unnecessary associated
5159 refcounting and serial reuse bits.
5161 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5162 * serial.c (last_serial_opened): Delete.
5164 (serial_open): Adjust.
5165 (serial_for_fd): Delete.
5166 (serial_fdopen_ops, do_serial_close): Adjust.
5167 (serial_fdopen_ops): Adjust.
5169 2012-06-11 Pedro Alves <palves@redhat.com>
5171 * serial.c (do_serial_close): Remove early return when SCB is
5174 2012-06-11 Tom Tromey <tromey@redhat.com>
5176 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5178 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5180 Fix regression by the "ambiguous linespec" series.
5181 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5182 get_last_displayed_symtab and get_last_displayed_line and depending
5185 2012-06-11 Tom Tromey <tromey@redhat.com>
5187 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5188 (dw2_find_symbol_file): Use it.
5190 2012-06-11 Michael Eager <eager@eagercon.com>
5192 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5193 * mips-linux-tdep.h (mips_signals): New
5195 2012-06-11 Tom Tromey <tromey@redhat.com>
5197 * infrun.c (handle_inferior_event)
5198 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5200 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5201 exception logic in all cases. Update comments.
5202 (insert_longjmp_resume_breakpoint): Set the exception resume
5205 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5207 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5209 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5211 * valarith.c (binop_types_user_defined_p): Fix a typo.
5213 2012-06-08 Yao Qi <yao@codesourcery.com>
5214 Chung-Lin Tang <cltang@codesourcery.com>
5216 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5217 * arch-utils.h: Declare.
5218 * gdbarch.sh: Add return_in_first_hidden_param_p.
5219 * gdbarch.c, gdbarch.h: Regenerated.
5220 * infcall.c (call_function_by_hand): Call
5221 gdbarch_return_in_first_hidden_param_p instead of
5222 language_pass_by_reference.
5224 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5225 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5226 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5227 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5228 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5229 `cplus_return_struct_by_reference'.
5230 (tic6x_return_value): Handle language cplusplus.
5231 (tic6x_return_in_first_hidden_param_p): New.
5232 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5234 2012-06-07 Doug Evans <dje@google.com>
5236 * dwarf2read.c (dwarf2_cu): Add comment.
5238 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5240 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5242 (mips_eabi_push_dummy_call): Likewise.
5243 (mips_n32n64_push_dummy_call): Likewise.
5244 (mips_o32_push_dummy_call): Likewise.
5245 (mips_o64_push_dummy_call): Likewise.
5247 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5249 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5251 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5253 * mips-tdep.c (mips_pseudo_register_type): Use
5254 mips_float_register_p.
5256 2012-06-06 Pedro Alves <palves@redhat.com>
5258 * infrun.c (handle_inferior_event): Remove calls to
5259 reinit_frame_cache that follow a context_switch call.
5261 2012-06-06 Pedro Alves <palves@redhat.com>
5263 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5264 context_switch and remove stale comment.
5266 2012-06-06 Pedro Alves <palves@redhat.com>
5268 * infrun.c (struct execution_control_state): Remove
5269 `new_thread_event' field.
5270 (handle_inferior_event): Simplify new threads handling; don't
5271 resume the inferior if we find a new thread.
5273 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5275 * NEWS: Document the deprecation of SH's 'regs' command.
5276 * inferior.h (all_registers_info): Add function declaration.
5277 * sh-tdep.c (sh_show_regs): Remove variable.
5278 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5279 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5280 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5281 (sh_show_regs_command): Remove functions.
5282 (sh_gdbarch_init): Don't set sh_show_regs.
5283 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5284 'info all-registers'.
5285 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5286 (sh64_show_regs): Remove functions.
5287 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5289 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5291 * configure.ac: Move development=true below AC_INIT.
5292 * configure: Regenerate.
5294 2012-06-05 Stan Shebs <stan@codesourcery.com>
5296 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5299 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5301 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5302 argument as ssize_t.
5303 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5304 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5305 * target.c (target_read_stack, target_write_memory)
5306 (target_write_raw_memory): Likewise.
5307 * target.h (target_read_stack, target_write_memory)
5308 (target_write_raw_memory): Likewise.
5310 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5312 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5313 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5314 * target.c (target_read_memory): Change LEN to ssize_t.
5315 * target.h (target_read_memory): Change LEN to ssize_t.
5317 2012-06-05 Pedro Alves <palves@redhat.com>
5321 * breakpoint.c (until_break_command): Only fetch the selected
5322 frame after decode_line_1.
5324 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5326 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5327 event breakpoint at _start, __start or main if a program
5328 interpreter is not found.
5330 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5332 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5334 * windows-tdep.c: #include "objfiles.h".
5335 (windows_iterate_over_objfiles_in_search_order): New function.
5336 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5337 iterate_over_objfiles_in_search_order gdbarch method to
5338 windows_iterate_over_objfiles_in_search_order.
5339 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5341 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5343 * gdbarch.sh: Add generation of
5344 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5345 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5346 (iterate_over_objfiles_in_search_order): New gdbarch method.
5347 * gdbarch.h, gdbarch.c: Regenerate.
5348 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5350 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5352 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5353 out of lookup_symbol_aux_symtabs.
5354 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5355 call to lookup_symbol_aux_objfile.
5356 (struct global_sym_lookup_data): New type.
5357 (lookup_symbol_global_iterator_cb): New function.
5358 (lookup_symbol_global): Search for symbol using
5359 gdbarch_iterate_over_objfiles_in_search_order and
5360 lookup_symbol_global_iterator_cb.
5361 * findvar.c (struct minsym_lookup_data): New type.
5362 (minsym_lookup_iterator_cb): New function.
5363 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5364 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5365 and minsym_lookup_iterator_cb.
5367 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5369 Revert the following patch:
5370 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5371 try locating the symbol in the symbol's own objfile first, before
5372 extending the search to all objfiles.
5373 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5374 out of lookup_symbol_aux_symtabs.
5375 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5376 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5377 Do not search EXCLUDE_OBJFILE.
5378 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5379 (lookup_symbol_global): Search for matches in the block's objfile
5380 first, before searching all other objfiles.
5382 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5384 * breakpoint.c (find_condition_and_thread): Stop parsing
5385 as soon as the first invalid keyword is found.
5387 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5389 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5391 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5393 * config/djgpp/djcheck.sh: Add copyright header.
5395 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5397 * copyright.py (update_files, main): Fix path to update-copyright
5400 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5402 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5403 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5404 for which a reminder to update by hand is printed.
5406 2012-06-04 Doug Evans <dje@google.com>
5408 * buildsym.c (make_blockvector): Add comment.
5410 2012-06-04 Pedro Alves <palves@redhat.com>
5412 * arch-utils.c (default_gdb_signal_from_target): Delete.
5413 * arch-utils.h (default_gdb_signal_from_target): Delete.
5414 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5415 gdbarch_gdb_signal_from_target_p.
5416 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5418 * gdbarch.h: Regenerate.
5419 * gdbarch.c: Regenerate.
5421 2012-06-04 Pedro Alves <palves@redhat.com>
5423 * gdbarch.sh (gdb_signal_from_target): Mention that the
5424 implementation of the method must be host independent.
5425 * gdbarch.h: Regenerate.
5427 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5429 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5431 (target_read_memory_bfd): New function.
5432 (symbol_file_add_from_memory): Use it.
5434 2012-06-03 Doug Evans <dje@google.com>
5436 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5438 (basic_lookup_transparent_type): Ditto.
5440 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5441 (ALL_PRIMARY_SYMTABS): Use it.
5442 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5443 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5444 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5445 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5446 (basic_lookup_transparent_type): Ditto.
5448 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5450 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5451 it to optimize resolution of demangled name.
5453 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5455 * configure.ac (development): Define new variable.
5456 Call AC_CHECK_LIB for mcheck if $development.
5457 (ERROR_ON_WARNING): Enable it by default only if $development.
5458 * config.in: Regenerate.
5459 * configure: Regenerate.
5461 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5463 * target.c (target_read_memory): Make LEN argument as size_t.
5464 * target.h (target_read_memory): Likewise.
5466 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5468 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5470 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5472 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5473 BookE interface for PowerPC server processors if not available
5474 in the Linux Kernel.
5476 2012-05-31 Keith Seitz <keiths@redhat.com>
5478 * linespec.c (decode_objc): Add cleanup to free
5480 (find_linespec_symbols): Add cleanup to free CLASSES.
5481 * symfile.c (find_separate_debug_file_by_debuglink): Add
5482 cleanup to free DEBUGLINK.
5483 * ui-out.c (clear_header_list): No need to check if
5484 HEADER_NEXT.COLHDR is NULL.
5485 Free HEADER_NEXT.COL_NAME.
5487 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5489 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5492 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5494 * configure.host (gdb_host_cpu): Handle tilegx*.
5495 (gdb_host): Handle tilegx-*-linux*.
5496 * tilegx-linux-nat.c: New file.
5497 * config/tilegx/linux.mh: New file.
5499 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5501 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5502 tilegx-linux-tdep.o.
5503 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5504 tilegx-linux-tdep.c.
5505 * configure.tgt: Handle tilegx-*-linux*.
5506 * tilegx-tdep.h: New file.
5507 * tilegx-tdep.c: New file.
5508 * tilegx-linux-tdep.c: New file.
5509 * regformats/reg-tilegx.dat: New file.
5511 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5513 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5514 accounting of hw watchpoints on ppc.
5516 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5518 * source.c (openp): Expand tilde in path entries.
5520 2012-05-29 Doug Evans <dje@google.com>
5522 * buildsym.c (block_compar): Fix comment.
5523 (end_symtab): Fix and clarify some comments.
5525 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5526 cleanup_undefined_types.
5527 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5528 All callers updated.
5530 2012-05-29 Tom Tromey <tromey@redhat.com>
5532 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5534 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5535 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5537 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5540 2012-05-29 Tristan Gingold <gingold@adacore.com>
5542 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5543 (struct darwin_info): ... New struct.
5544 (solib_darwin_pspace_data): New variable.
5545 (darwin_pspace_data_cleanup): New function.
5546 (get_darwin_info): Likewise.
5547 (darwin_dyld_version_ok, darwin_load_image_infos)
5548 (darwin_solib_get_all_image_info_addr_at_init)
5549 (darwin_solib_read_all_image_info_addr): Add info argument.
5551 (darwin_current_sos): Use per pspace structure.
5552 (darwin_solib_create_inferior_hook): Likewise.
5553 (darwin_clear_solib): Likewise.
5554 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5556 2012-05-28 Pedro Alves <palves@redhat.com>
5558 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5559 block that uses them. Clear ecss before handling each event.
5561 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5563 * solib-svr4.c (svr4_current_sos): New comment on
5564 svr4_current_sos_via_xfer_libraries fall back.
5566 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5568 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5569 it as a fallback for TYPE_IS_OPAQUE.
5570 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5571 symbols for lookup_symbol.
5573 2012-05-24 John Steele Scott <toojays@toojays.net>
5575 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5576 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5577 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5578 (check_producer): ... this new function, which also checks for ICC
5579 and caches the result.
5580 (producer_is_icc): New function.
5581 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5584 2012-05-24 Pedro Alves <palves@redhat.com>
5588 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5589 (default_gdb_signal_to_target): ... this. Add comment.
5590 (default_gdb_signal_from_host): Rename to ...
5591 (default_gdb_signal_from_target): ... this. Add comment.
5592 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5593 (default_gdb_signal_to_target): ... this.
5594 (default_gdb_signal_from_host): Rename to ...
5595 (default_gdb_signal_from_target): ... this.
5596 * corelow.c (core_open): Adjust to naming change. Replace comment.
5597 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5598 (gdb_signal_from_target): ... this. Adjust to
5599 default_gdb_signal_from_host naming change. Extend comment.
5600 (gdb_signal_to_host): Rename to ...
5601 (gdb_signal_to_target): ... this. Adjust to
5602 default_gdb_signal_to_host naming change.
5603 * gdbarch.h, gdbarch.c: Renegerate.
5605 2012-05-24 Pedro Alves <palves@redhat.com>
5609 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5611 2012-05-24 Pedro Alves <palves@redhat.com>
5615 Replace target_signal with gdb_signal throughout.
5617 2012-05-24 Pedro Alves <palves@redhat.com>
5621 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5622 string, instead of reusing the va_list argument.
5624 2012-05-24 Tom Tromey <tromey@redhat.com>
5626 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5629 2012-05-23 Doug Evans <dje@google.com>
5631 * symtab.c (search_symbols): Formatting fixes.
5632 (print_symbol_info): Formatting fixes.
5634 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5635 int64_t change to leb128 API.
5636 (read_encoded_value, decode_frame_entry_1): Ditto.
5637 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5638 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5639 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5640 (execute_stack_op): Ditto.
5641 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5642 (safe_read_uleb128, safe_read_sleb128): Ditto.
5643 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5644 (dwarf2_compile_expr_to_ax): Ditto.
5645 (locexpr_describe_location_piece): Ditto.
5646 (disassemble_dwarf_expression): Ditto.
5647 (locexpr_describe_location_1): Ditto.
5649 2012-05-23 Stan Shebs <stan@codesourcery.com>
5650 Kwok Cheung Yeung <kcy@codesourcery.com>
5652 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5653 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5654 (mi-cmd-info.o): New rule.
5655 * osdata.h (info_osdata_command): New declaration.
5656 * osdata.c (info_osdata_command): Change to non-static.
5657 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5658 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5659 * mi/mi-cmd-info.c: New file.
5661 2012-05-23 Doug Evans <dje@google.com>
5663 * symtab.c (search_symbols): Pass NULL for file_matcher to
5664 expand_symtabs_matching if there are no files to match.
5666 * gdbtypes.c (lookup_typename): Simplify.
5668 2012-05-23 Pedro Alves <palves@redhat.com>
5670 * arch-utils.h (default_target_signal_to_host): Delete.
5671 * arch-utils.c (default_target_signal_to_host): Delete.
5672 * gdbarch.sh (target_signal_to_host): Remove.
5673 * gdbarch.h, gdbarch.c: Regenerate.
5675 2012-05-22 Doug Evans <dje@google.com>
5677 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5679 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5680 (execute_cfa_program): Update to match API of leb128 functions.
5681 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5683 (read_unsigned_leb128, read_signed_leb128): Delete.
5684 (read_initial_length): Change type of buf argument to
5686 (read_encoded_value): Update to match API of leb128 functions.
5687 (decode_frame_entry): Change result to "const gdb_byte *", and
5688 similarly for "start" parameter.
5689 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5690 (dwarf2_build_frame_info): Change local frame_ptr to
5692 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5693 read_uleb128, read_sleb128. All callers updated.
5694 (safe_skip_leb128): New function.
5695 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5696 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5697 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5698 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5699 read_uleb128, read_sleb128.
5700 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5701 (execute_stack_op): Update to match API of leb128 functions.
5702 * dwarf2expr.h: #include "leb128.h".
5703 (read_uleb128, read_sleb128): Delete.
5704 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5705 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5706 * dwarf2loc.c (debug_loc_kind): New enum.
5707 (decode_debug_loc_addresses): New function.
5708 (decode_debug_loc_dwo_addresses): New function.
5709 (dwarf2_find_location_expression): Rewrite.
5710 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5711 (locexpr_describe_location_piece): Ditto.
5712 (disassemble_dwarf_expression): Ditto.
5713 (locexpr_describe_location_1): Ditto.
5714 (loclist_describe_location): Rewrite.
5715 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5716 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5717 (dwarf2_section_buffer_overflow_complaint): Renamed from
5718 dwarf2_macros_too_long_complaint. All callers updated.
5719 (skip_leb128): Delete.
5720 (init_cu_die_reader): Initialize reader->buffer_end.
5721 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5722 (skip_form_bytes): New arg buffer_end. All callers updated.
5723 Replace call to skip_leb128 with gdb_skip_leb128.
5724 (skip_unknown_opcode): New arg mac_end. All callers updated.
5725 (fill_in_loclist_baton): Initialize baton->from_dwo.
5727 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5729 * mips-linux-nat.c (mips_linux_read_description): Use a more
5730 verbose error message.
5732 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5734 * NEWS: Add MIPS/Linux DSP support.
5735 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5736 (SIGCONTEXT_DSPCTL): New macro.
5737 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5738 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5739 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5740 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5741 (N64_SIGCONTEXT_HI3): Likewise.
5742 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5743 (N64_SIGCONTEXT_LO3): Likewise.
5744 (N64_SIGCONTEXT_DSPCTL): Likewise.
5745 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5746 (mips_linux_o32_sigframe_init): Handle DSP registers.
5747 (mips_linux_n32n64_sigframe_init): Likewise.
5749 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5751 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5754 2012-05-22 Pedro Alves <palves@redhat.com>
5756 * target.h (store_waitstatus): Move declaration ...
5757 * inf-child.h (store_waitstatus): ... here.
5758 * target.c: Move inclusion of gdb_wait.h, and ...
5759 (store_waitstatus): ... this ...
5760 * inf-child.c: ... here.
5761 * linux-nat.c: Include inf-child.h.
5762 * rs6000-nat.c: Include inf-child.h.
5763 * spu-linux-nat.c: Include inf-child.h.
5765 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5767 * tracepoint.c (start_tracing): Add missing i18n markup.
5768 (stop_tracing, set_trace_user): Ditto.
5769 (set_trace_notes, set_trace_stop_notes): Ditto.
5771 2012-05-21 Tom Tromey <tromey@redhat.com>
5774 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5776 * value.h (value_cast_pointers): Update.
5777 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5778 (value_cast): Update.
5779 (update_search_result): New function.
5780 (do_search_struct_field): New, from search_struct_field. Check
5781 for ambiguous results.
5782 (search_struct_field): Rewrite.
5783 * infcall.c (value_arg_coerce): Update.
5784 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5785 value_cast_pointers.
5786 * ada-lang.c (ada_convert_actual): Update.
5788 2012-05-21 Tom Tromey <tromey@redhat.com>
5790 * macroexp.c (macro_stringify): Terminate the string.
5792 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5794 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5796 * auto-load.c (auto_load_expand_dir_vars): New function.
5797 (auto_load_safe_path_vec_update): Use it, remove the
5798 substitute_path_component call thanks to it.
5799 (auto_load_objfile_script): Remove the debug_file_directory processing.
5800 Use auto_load_expand_dir_vars, remove the substitute_path_component
5802 * configure: Regenerate.
5803 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5804 path. Escape $ also for $debugdir.
5805 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5806 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5808 2012-05-20 Doug Evans <dje@google.com>
5810 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5811 before use. Check for symtab->includes == NULL before scanning it.
5813 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5815 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5817 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5819 * NEWS: Add microMIPS support and "set mips compression",
5820 "show mips compression" commands.
5821 * mips-tdep.h (mips_isa): New enum.
5822 (gdbarch_tdep): Add mips_isa.
5823 (mips_pc_is_mips16): Update prototype.
5824 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5825 * mips-tdep.c (mips_compression_mips16): New variable.
5826 (mips_compression_micromips): Likewise.
5827 (mips_compression_strings): Likewise.
5828 (mips_compression_string): Likewise.
5829 (is_mips16_isa, is_micromips_isa): New functions.
5830 (is_mips16_addr): Rename to...
5831 (is_compact_addr): ... this.
5832 (unmake_mips16_addr): Likewise to...
5833 (unmake_compact_addr): ... this.
5834 (make_mips16_addr): Likewise to...
5835 (make_compact_addr): ... this.
5836 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5838 (mips_elf_make_msymbol_special): Handle microMIPS code.
5839 (msymbol_is_special): Rename to...
5840 (msymbol_is_mips16): ... this.
5841 (mips_make_symbol_special, mips_pc_is_mips16): Update
5843 (msymbol_is_mips, msymbol_is_micromips): New functions.
5844 (mips16_to_32_reg): Rename to...
5845 (mips_reg3_to_reg): ... this.
5846 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5847 (mips_pc_isa): Likewise.
5848 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5850 (mips_fetch_instruction): Pass return status instead of printing
5851 an error message if requested. Handle microMIPS code. Bail out
5853 (micromips_op): New macro.
5854 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5855 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5856 (b6s4_op, b7s3_reg): Likewise.
5857 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5858 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5859 (mips_insn_size): New function.
5860 (mips32_next_pc): Update mips_fetch_instruction call.
5861 (micromips_relative_offset7): New function.
5862 (micromips_relative_offset10): Likewise.
5863 (micromips_relative_offset16): Likewise.
5864 (micromips_pc_insn_size): Likewise.
5865 (micromips_bc1_pc): Likewise.
5866 (micromips_next_pc): Likewise.
5867 (unpack_mips16): Update mips_fetch_instruction call.
5868 (extended_mips16_next_pc): Update according to change to
5870 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5872 (mips16_scan_prologue): Update mips_fetch_instruction call.
5873 Update according to change to mips16_to_32_reg.
5874 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5875 (mips_insn16_frame_base_sniffer): Likewise.
5876 (micromips_decode_imm9): New function.
5877 (micromips_scan_prologue): Likewise.
5878 (mips_micro_frame_cache): Likewise.
5879 (mips_micro_frame_this_id): Likewise.
5880 (mips_micro_frame_prev_register): Likewise.
5881 (mips_micro_frame_sniffer): Likewise.
5882 (mips_micro_frame_unwind): New variable.
5883 (mips_micro_frame_base_address): New function.
5884 (mips_micro_frame_base): New variable.
5885 (mips_micro_frame_base_sniffer): New function.
5886 (mips32_scan_prologue): Update mips_fetch_instruction call.
5887 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5888 rather than for MIPS16.
5889 (mips_insn32_frame_base_sniffer): Likewise.
5890 (mips_addr_bits_remove): Handle microMIPS code.
5891 (deal_with_atomic_sequence): Rename to...
5892 (mips_deal_with_atomic_sequence): ... this. Update the type
5893 of the variable used to hold an instruction. Remove the ISA bit
5894 check. Update mips_fetch_instruction call.
5895 (micromips_deal_with_atomic_sequence): New function.
5896 (deal_with_atomic_sequence): Likewise.
5897 (mips_about_to_return): Handle microMIPS code. Update
5898 mips_fetch_instruction call.
5899 (heuristic_proc_start): Check for the standard MIPS ISA rather
5900 than for MIPS16. Update mips_pc_is_mips16 and
5901 mips_fetch_instruction calls. Handle microMIPS code.
5902 (mips_push_dummy_code): Handle microMIPS code.
5903 (mips_eabi_push_dummy_call): Likewise.
5904 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5905 (mips_o64_push_dummy_call): Handle microMIPS code.
5906 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5907 (is_delayed): Remove function.
5908 (mips_single_step_through_delay): Replace the call to is_delayed
5909 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5910 Handle microMIPS code.
5911 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5913 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5915 (micromips_in_function_epilogue_p): New function.
5916 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5918 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5920 (gdb_print_insn_mips): Likewise.
5921 (mips_breakpoint_from_pc): Likewise.
5922 (mips_remote_breakpoint_from_pc): New function.
5923 (mips32_instruction_has_delay_slot): Simplify making use of the
5924 updated mips_fetch_instruction interface.
5925 (micromips_instruction_has_delay_slot): New function.
5926 (mips16_instruction_has_delay_slot): Simplify making use of the
5927 updated mips_fetch_instruction interface.
5928 (mips_adjust_breakpoint_address): Check for the standard MIPS
5929 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5930 calls. Handle microMIPS code.
5931 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5932 (mips_skip_trampoline_code): Handle microMIPS code.
5933 (global_mips_compression): New function.
5934 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5935 file flags. Register the microMIPS remote breakpoint handler
5936 and heuristic frame unwinder.
5937 (show_mips_compression): New function.
5938 (_initialize_mips_tdep): Add the "set mips compression" and
5939 "show mips compression" commands.
5941 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5946 * amd64-darwin-tdep.c:
5947 * arm-symbian-tdep.c:
5951 * bfin-linux-tdep.c:
5958 * dwarf2-frame-tailcall.c:
5987 * microblaze-tdep.c:
5988 * mips-linux-tdep.c:
5996 * python/py-finishbreakpoint.c:
5997 * python/py-inferior.c:
5998 * python/py-infthread.c:
6002 * remote-m32r-sdi.c:
6006 * rs6000-aix-tdep.c:
6032 * amd64-darwin-tdep.c:
6033 * arm-symbian-tdep.c:
6034 * arm-tdep.c: Delete unused variables.
6036 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6038 Rename $ddir to $datadir.
6039 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6040 * auto-load.c (auto_load_safe_path_vec_update)
6041 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6042 * configure: Regenerate.
6043 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6044 Likewise. Remove the 'use $ddir' help string.
6046 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6048 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6049 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6051 2012-05-18 Tom Tromey <tromey@redhat.com>
6054 * valprint.h (struct value_print_options) <symbol_print>: New
6056 * valprint.c (user_print_options): Add default for symbol_print.
6057 (show_symbol_print): New function.
6058 (generic_val_print): Respect symbol_print.
6059 (_initialize_valprint): Add "print symbol" setting.
6060 * f-valprint.c (f_val_print): Respect symbol_print.
6061 * c-valprint.c (c_val_print): Respect symbol_print.
6063 * printcmd.c (print_address_symbolic): Return int. Ignore some
6065 (print_address_demangle): Return int.
6066 * defs.h: (print_address_symbolic): Return int.
6067 * value.h (print_address_demangle): Return int.
6069 2012-05-18 Tom Tromey <tromey@redhat.com>
6071 * valprint.c (val_print_string): Don't print leading space.
6072 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6073 print space before string or vtbl.
6074 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6076 * jv-valprint.c (java_value_print): Print space before string.
6077 * go-valprint.c (print_go_string): Print space before string.
6078 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6079 space before string.
6080 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6081 space before string or vtbl.
6082 * auxv.c (fprint_target_auxv): Print space after address.
6084 2012-05-18 Tom Tromey <tromey@redhat.com>
6086 * printcmd.c (print_address_demangle): Remove special case for 0.
6088 2012-05-18 Tom Tromey <tromey@redhat.com>
6090 * printcmd.c (print_address_demangle): Add 'opts' argument.
6091 * p-valprint.c (pascal_val_print): Update.
6092 * jv-valprint.c (java_val_print): Update.
6094 * valprint.c (generic_val_print): Update.
6095 (print_function_pointer_address): Add 'options' argument. Remove
6096 'addressprint' argument. Update.
6097 * m2-valprint.c (print_unpacked_pointer): Update.
6098 * gnu-v3-abi.c (print_one_vtable): Update.
6099 (gnuv3_print_method_ptr): Update.
6100 * f-valprint.c (f_val_print): Update.
6101 * cp-valprint.c (cp_print_value_fields): Update.
6102 * valprint.h (print_function_pointer_address): Update.
6103 * c-valprint.c (c_val_print): Update.
6105 2012-05-18 Tom Tromey <tromey@redhat.com>
6107 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6108 directly corresponding to the found psymtab.
6109 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6110 (dw2_find_pc_sect_symtab): Use it.
6111 * block.h (blockvector_contains_pc): Declare.
6112 * block.c (find_block_in_blockvector): New function.
6113 (blockvector_for_pc_sect): Use it.
6114 (blockvector_contains_pc): New function.
6116 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6118 * mips-tdep.h (mips_write_pc): New prototype.
6119 * mips-tdep.c (mips_write_pc): Make external, add description.
6120 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6123 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6125 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6127 (mips_unwind_pc, mips_write_pc): Likewise.
6128 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6131 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6133 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6134 proc_warn, proc_error, proc_get_status, proc_flags,
6135 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6136 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6137 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6138 proc_stop_process, proc_wait_for_stop, proc_run_process,
6139 proc_set_traced_signals, proc_set_traced_faults,
6140 proc_set_traced_sysentry, proc_set_traced_sysexit,
6141 proc_set_held_signals, proc_get_held_signals,
6142 proc_get_traced_signals, proc_get_traced_faults,
6143 proc_get_traced_sysentry, proc_get_traced_sysexit,
6144 proc_clear_current_fault, proc_set_current_signal,
6145 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6146 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6147 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6148 proc_get_current_thread, proc_get_current_thread,
6149 proc_get_current_thread, proc_update_threads,
6150 proc_update_threads, proc_update_threads, proc_update_threads,
6151 proc_iterate_over_threads, procfs_find_new_threads,
6152 procfs_pid_to_str): Make static. Remove advance declaration.
6153 (proc_cursig): Make static. Conditionalized defintion on
6154 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6155 (proc_syscall, proc_set_kill_on_last_close,
6156 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6157 proc_get_pending_signals, proc_get_signal_actions,
6158 proc_trace_signal, proc_ignore_signal): Delete.
6160 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6162 * coffread.c (cs_section_address): Passing proper argument for
6163 `bfd_get_section_vma'.
6164 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6165 `bfd_get_section_flags'.
6166 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6167 `bfd_get_section_vma'.
6169 2012-05-16 Tom Tromey <tromey@redhat.com>
6172 * macrotab.h: (macro_define_special): Declare.
6173 (enum macro_special_kind): New.
6174 (struct macro_definition) <argc, replacement>: Update comments.
6175 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6176 (macro_define_object_internal): New function.
6177 (macro_define_object): Use it.
6178 (macro_define_special): New function.
6179 (fixup_definition): New function.
6180 (macro_lookup_definition, foreach_macro_in_scope)
6181 (foreach_macro): Use fixup_definition.
6182 * macroexp.h (macro_stringify): Declare.
6183 * macroexp.c (free_buffer_return_text): New function.
6184 (stringify): Constify "arg".
6185 (macro_stringify): New function.
6186 * dwarf2read.c (macro_start_file): Call macro_define_special.
6188 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6189 Maciej W. Rozycki <macro@mips.com>
6191 * breakpoint.h (bp_location): Add related_address member.
6192 * inferior.h (get_return_value): Take a pointer to struct value
6193 instead of struct type for the function requested.
6194 * value.h (using_struct_return): Likewise.
6195 * gdbarch.sh (return_value): Take a pointer to struct value
6196 instead of struct type for the function requested.
6197 * breakpoint.c (set_breakpoint_location_function): Initialize
6198 related_address for bp_gnu_ifunc_resolver breakpoints.
6199 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6200 requested function's address to gdbarch_return_value.
6201 * eval.c (evaluate_subexp_standard): Pass the requested
6202 function's address to using_struct_return.
6203 * infcall.c (call_function_by_hand): Pass the requested
6204 function's address to using_struct_return and
6205 gdbarch_return_value.
6206 * infcmd.c (get_return_value): Take a pointer to struct value
6207 instead of struct type for the function requested.
6208 (print_return_value): Update accordingly.
6209 (finish_command_continuation): Likewise.
6210 * stack.c (return_command): Pass the requested function's
6211 address to using_struct_return and gdbarch_return_value.
6212 * value.c (using_struct_return): Take a pointer to struct value
6213 instead of struct type for the function requested. Pass the
6214 requested function's address to gdbarch_return_value.
6215 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6216 New function_value member, replacing function_type.
6217 (bpfinishpy_dealloc): Update accordingly.
6218 (bpfinishpy_pre_stop_hook): Likewise.
6219 (bpfinishpy_init): Likewise. Record the requested function's
6221 * mips-tdep.c (mips_fval_reg): New enum.
6222 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6223 words put in GP registers.
6224 (mips_o64_push_dummy_call): Update a comment.
6225 (mips_o32_return_value): Take a pointer to struct value instead
6226 of struct type for the function requested and use it to check if
6227 using the MIPS16 calling convention. Return the designated
6228 general purpose registers for floating-point values returned in
6230 (mips_o64_return_value): Likewise.
6231 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6232 (ppc_sysv_abi_broken_return_value): Likewise.
6233 (ppc64_sysv_abi_return_value): Likewise.
6234 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6235 value instead of struct type for the function requested.
6236 * amd64-tdep.c (amd64_return_value): Likewise.
6237 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6238 * arm-tdep.c (arm_return_value): Likewise.
6239 * avr-tdep.c (avr_return_value): Likewise.
6240 * bfin-tdep.c (bfin_return_value): Likewise.
6241 * cris-tdep.c (cris_return_value): Likewise.
6242 * frv-tdep.c (frv_return_value): Likewise.
6243 * h8300-tdep.c (h8300_return_value): Likewise.
6244 (h8300h_return_value): Likewise.
6245 * hppa-tdep.c (hppa32_return_value): Likewise.
6246 (hppa64_return_value): Likewise.
6247 * i386-tdep.c (i386_return_value): Likewise.
6248 * ia64-tdep.c (ia64_return_value): Likewise.
6249 * iq2000-tdep.c (iq2000_return_value): Likewise.
6250 * lm32-tdep.c (lm32_return_value): Likewise.
6251 * m32c-tdep.c (m32c_return_value): Likewise.
6252 * m32r-tdep.c (m32r_return_value): Likewise.
6253 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6254 * m68k-tdep.c (m68k_return_value): Likewise.
6255 (m68k_svr4_return_value): Likewise.
6256 * m88k-tdep.c (m88k_return_value): Likewise.
6257 * mep-tdep.c (mep_return_value): Likewise.
6258 * microblaze-tdep.c (microblaze_return_value): Likewise.
6259 * mn10300-tdep.c (mn10300_return_value): Likewise.
6260 * moxie-tdep.c (moxie_return_value): Likewise.
6261 * mt-tdep.c (mt_return_value): Likewise.
6262 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6263 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6264 (ppc_sysv_abi_broken_return_value): Likewise.
6265 (ppc64_sysv_abi_return_value): Likewise.
6266 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6267 * rl78-tdep.c (rl78_return_value): Likewise.
6268 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6269 * rx-tdep.c (rx_return_value): Likewise.
6270 * s390-tdep.c (s390_return_value): Likewise.
6271 * score-tdep.c (score_return_value): Likewise.
6272 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6273 (sh_return_value_fpu): Likewise.
6274 * sh64-tdep.c (sh64_return_value): Likewise.
6275 * sparc-tdep.c (sparc32_return_value): Likewise.
6276 * sparc64-tdep.c (sparc64_return_value): Likewise.
6277 * spu-tdep.c (spu_return_value): Likewise.
6278 * tic6x-tdep.c (tic6x_return_value): Likewise.
6279 * v850-tdep.c (v850_return_value): Likewise.
6280 * vax-tdep.c (vax_return_value): Likewise.
6281 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6282 * xtensa-tdep.c (xtensa_return_value): Likewise.
6283 * gdbarch.c: Regenerate.
6284 * gdbarch.h: Regenerate.
6286 2012-05-15 Tom Tromey <tromey@redhat.com>
6288 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6290 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6292 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6293 of command in two error message.
6295 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6297 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6299 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6301 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6303 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6305 * NEWS (show auto-load scripts-directory): Add forgotten command.
6307 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6309 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6312 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6314 * amd64-tdep.c: Include features/i386/x32.c and
6315 features/i386/x32-avx.c.
6316 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6317 initialize_tdesc_x32_avx.
6319 2012-05-14 Stan Shebs <stan@codesourcery.com>
6322 * breakpoint.h (enum bptype): New type bp_dprintf.
6323 (struct breakpoint): New field extra_string.
6324 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6325 (create_breakpoint): Add extra_string arg.
6326 * breakpoint.c (dprintf_breakpoint_ops): New.
6327 (is_breakpoint): Add bp_dprintf.
6328 (bpstat_what): Add dprintf case.
6329 (bptype_string): Ditto.
6330 (print_one_breakpoint_location): Ditto.
6331 (init_bp_location): Ditto.
6332 (bkpt_print_mention): Ditto.
6333 (dprintf_style_enums): New array.
6334 (dprintf_style): New global.
6335 (dprintf_function): New global.
6336 (dprintf_channel): New global.
6337 (update_dprintf_command_list): New function.
6338 (update_dprintf_commands): New function.
6339 (init_breakpoint_sal): Add extra_string argument, handle it.
6340 (create_breakpoint_sal): Add extra_string argument.
6341 (create_breakpoints_sal): Add extra_string argument, update callers.
6342 (find_condition_and_thread): Add extra argument.
6343 (create_breakpoint): Add extra_string argument, record it.
6344 (dprintf_command): New function.
6345 (break_command_1): Add arg to create_breakpoint call.
6346 (handle_gnu_v3_exceptions): Ditto.
6347 (trace_command): Ditto.
6348 (ftrace_command): Ditto.
6349 (strace_command): Ditto.
6350 (bkpt_print_mention): Add dprintf case.
6351 (create_breakpoint_sal_default): Add extra_string argument.
6352 (_initialize_breakpoint): Add new commands.
6353 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6354 * python/py-breakpoint.c (bppy_init): Ditto.
6355 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6357 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6359 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6361 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6363 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6366 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6368 Add a new function gdb.find_pc_line to the Python API.
6369 * NEWS (Python Scripting): Add entry about the new function.
6370 * python/python.c (gdbpy_find_pc_line): New function which
6371 implements gdb.find_pc_line.
6372 (GdbMethods): Add entry for the new function.
6374 2012-05-12 Pedro Alves <palves@redhat.com>
6376 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6377 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6379 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6381 * inferior.c: Include completer.h
6382 (initialize_inferiors): Set completer of add-inferior to
6385 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6387 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6388 gdbarch_ptr_bit for x32 core dump.
6390 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6392 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6393 and features/i386/x32-avx-linux.c.
6395 2012-05-11 Stan Shebs <stan@codesourcery.com>
6396 Kwok Cheung Yeung <kcy@codesourcery.com>
6398 * NEWS: Describe new info os commands.
6399 * common/linux-osdata.c (PID_T, TIME_T): Define.
6400 (MAX_PID_T_STRLEN): New.
6401 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6403 (command_from_pid): Add comment. Change to use PID_T.
6404 (commandline_from_pid): Change to use PID_T.
6405 (user_from_pid): Add comment.
6406 (get_process_owner): Add comment. Change to use PID_T and
6408 (get_number_of_cpu_cores): Add comment.
6409 (get_cores_used_by_process): Add comment. Change to use PID_T and
6411 (linux_xfer_osdata_processes): Change to use PID_T and
6413 (compare_processes): New function.
6414 (linux_xfer_osdata_processgroups): New function.
6415 (linux_xfer_osdata_threads): Change to use PID_T.
6416 (linux_xfer_osdata_fds): New function.
6417 (format_socket_state, print_sockets): New functions.
6418 (union socket_addr): New union.
6419 (linux_xfer_osdata_isockets): New function.
6420 (time_from_time_t, group_from_gid): New functions.
6421 (linux_xfer_osdata_shm): New function.
6422 (linux_xfer_osdata_sem): New function.
6423 (linux_xfer_osdata_msg): New function.
6424 (linux_xfer_osdata_modules): New function.
6425 (osdata_table): Add new entries.
6426 * common/buffer.c (buffer_xml_printf): Add support for long and
6427 long long format specifiers.
6429 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6431 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6432 (tdesc_x32_avx_linux): Likewise.
6434 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6436 Implement multi-component --with-auto-load-dir.
6437 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6439 (--with-auto-load-safe-path): Update the default value description.
6440 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6442 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6443 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6444 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6445 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6446 "set auto-load scripts-directory".
6447 * config.in: Regenerate.
6448 * configure: Regenerate.
6449 * configure.ac (--with-auto-load-dir): New configure option.
6450 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6452 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6454 Provide $ddir substitution for --with-auto-load-safe-path.
6455 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6457 * auto-load.c: Include observer.h.
6458 (auto_load_safe_path_vec_update): Call substitute_path_component for
6459 each component. New variable ddir_subst.
6460 (auto_load_gdb_datadir_changed): New function.
6461 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6462 AUTO_LOAD_SAFE_PATH. New comment.
6463 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6464 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6465 * config.in: Regenerate.
6466 * configure: Regenerate.
6467 * configure.ac (--auto-load-safe-path): Rename
6468 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6469 GDB_DATADIR/auto-load.
6470 * defs.h (substitute_path_component): New declaration.
6471 * top.c: Include observer.h.
6472 (set_gdb_datadir): New function.
6473 (init_main): Install it for "set data-directory".
6474 * utils.c (substitute_path_component): New function.
6476 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6478 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6479 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6480 DEBUG_FILE_DIRECTORY. Handle multiple components of
6481 DEBUG_FILE_DIRECTORY.
6483 2012-05-10 Tom Tromey <tromey@redhat.com>
6485 * dwarf2read.c (recursively_write_psymbols): New function.
6486 (write_psymtabs_to_index): Use it.
6488 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6490 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6491 (load_partial_comp_unit): Update.
6492 (queue_comp_unit): Add argument 'pretend_language'.
6493 (process_queue): Update.
6494 (psymtab_to_symtab_1): Skip dependencies that have a user.
6495 (load_partial_comp_unit_reader): Give meaning to the 'data'
6497 (load_full_comp_unit): Add 'pretend_language' argument.
6498 (process_full_comp_unit): Add 'pretend_language' argument. Set
6500 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6502 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6503 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6505 (prepare_one_comp_unit): Add 'pretend_language' argument.
6507 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6508 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6509 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6510 (dw2_do_instantiate_symtab): Check whether symtab was read in
6512 (dw2_instantiate_symtab): Add assertion. Call
6513 process_cu_includes.
6514 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6515 (partial_symtab_p): New typedef.
6516 (set_partial_user): New function.
6517 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6518 (scan_partial_symbols): Add imported CU to imported_symtabs.
6519 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6520 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6521 (get_symtab, recursively_compute_inclusions)
6522 (compute_symtab_includes, process_cu_includes)
6523 (process_imported_unit_die): New functions.
6524 (process_die) <DW_TAG_imported_unit>: New case.
6525 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6527 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6529 (struct partial_die_info) <locdesc>: Remove.
6531 (process_psymtab_comp_unit): Add 'read_partial' argument.
6533 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6534 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6535 (add_partial_symbol): Update.
6536 (process_die): Handle DW_TAG_partial_unit.
6537 (read_file_scope): Update comment.
6538 (load_partial_dies): Handle DW_TAG_imported_unit.
6539 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6540 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6542 2012-05-10 Tom Tromey <tromey@redhat.com>
6544 * cc-with-dwz.sh: New file.
6546 2012-05-10 Tom Tromey <tromey@redhat.com>
6548 * symtab.h (struct symtab) <includes, user>: New fields.
6549 * block.h (struct block_iterator) <d, idx, which>: New fields.
6550 * block.c (initialize_block_iterator, find_iterator_symtab)
6551 (block_iterator_step, block_iter_name_step)
6552 (block_iter_match_step): New functions.
6553 (block_iterator_first, block_iterator_next)
6554 (block_iter_name_first, block_iter_name_next)
6555 (block_iter_match_first, block_iter_match_next): Rewrite.
6556 (get_block_symtab): New function.
6558 2012-05-10 Tom Tromey <tromey@redhat.com>
6560 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6562 * jit.c (finalize_symtab): Use allocate_global_block,
6564 * buildsym.c (finish_block_internal): New function, from old
6566 (finish_block): Rewrite.
6567 (end_symtab): Use finish_block_internal, set_block_symtab.
6568 * block.h (struct global_block): New.
6569 (allocate_global_block, set_block_symtab): Declare.
6570 * block.c (allocate_global_block, set_block_symtab): New
6573 2012-05-10 Tom Tromey <tromey@redhat.com>
6575 * psymtab.c (partial_map_expand_apply): Add assertion.
6576 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6577 (psymtab_to_symtab): Find unshared psymtab.
6578 (dump_psymtab): Print including psymtabs.
6579 (recursively_search_psymtabs): New function.
6580 (expand_symtabs_matching_via_partial): Use it.
6581 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6583 (enum psymtab_search_status): New.
6585 2012-05-10 Tom Tromey <tromey@redhat.com>
6587 * tracepoint.c (scope_info): Update.
6588 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6589 (find_pc_sect_symtab, search_symbols)
6590 (default_make_symbol_completion_list_break_on)
6591 (make_file_symbol_completion_list): Update.
6592 * symmisc.c (dump_symtab_1): Update.
6593 * stack.c (print_frame_args, iterate_over_block_locals)
6594 (print_frame_labels, iterate_over_block_arg_vars): Update.
6595 * python/py-block.c (block_object) <dict>: Remove.
6597 <iter>: Change type.
6598 (blpy_iter): Update.
6599 (blpy_block_syms_iternext): Update.
6600 * psymtab.c (map_block): Use block iterators.
6601 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6602 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6603 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6604 * infrun.c (check_exception_resume): Update.
6605 * cp-support.c (make_symbol_overload_list_block): Update.
6606 * coffread.c (patch_opaque_types): Update.
6607 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6608 * block.h (struct block_iterator): New.
6609 (block_iterator_first, block_iterator_next, block_iter_name_first)
6610 (block_iter_name_next, block_iter_match_first)
6611 (block_iter_match_next): Declare.
6612 (ALL_BLOCK_SYMBOLS): Redefine.
6613 * block.c (block_iterator_first, block_iterator_next)
6614 (block_iter_name_first, block_iter_name_next)
6615 (block_iter_match_first, block_iter_match_next): New functions.
6616 * ada-lang.c (ada_add_block_symbols)
6617 (ada_make_symbol_completion_list): Use block iterator.
6619 2012-05-10 Tom Tromey <tromey@redhat.com>
6621 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6622 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6623 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6624 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6625 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6628 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6630 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6631 print-file-var-lib2.c, print-file-var-main.c and
6632 print-file-var.exp (located in gdb/testsuite/gdb.base).
6634 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6636 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6637 try locating the symbol in the symbol's own objfile first, before
6638 extending the search to all objfiles.
6639 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6640 out of lookup_symbol_aux_symtabs.
6641 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6642 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6643 Do not search EXCLUDE_OBJFILE.
6644 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6645 (lookup_symbol_global): Search for matches in the block's objfile
6646 first, before searching all other objfiles.
6648 2012-05-10 Tristan Gingold <gingold@adacore.com>
6650 * printcmd.c (set_command): Add pre/post inc/dec.
6652 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6654 * gdb.1: Document -ex option.
6656 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6658 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6659 * inferior.h (AT_SYMBOL): Delete.
6661 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6663 * mips-tdep.c (mips_push_dummy_code): New function.
6664 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6665 ON_STACK and install mips_push_dummy_code as our gdbarch
6666 push_dummy_code routine.
6668 2012-05-09 Pedro Alves <palves@redhat.com>
6670 * target.c (set_maintenance_target_async_permitted): Rename to ...
6671 (set_target_async_command): ... this.
6672 (show_maintenance_target_async_permitted): Rename to ...
6673 (show_target_async_command): ... this.
6674 (initialize_targets): Adjust.
6676 2012-05-08 Doug Evans <dje@google.com>
6678 * go-exp.y (classify_name): Add missing assignment of fields of
6681 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6683 Display the ">" prompt in interactive mode while reading canned
6684 commands, even when the current interpreter is MI.
6686 * interps.c (interp_set_temp): New function.
6688 * interps.h (interp_set_temp): Add prototype.
6690 * cli/cli-script.c (restore_interp): New cleanup function.
6691 (read_command_lines): Temporarily override the current interpreter
6692 with CLI and arrange for restoring the original one.
6694 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6696 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6698 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6700 * probe.c (parse_probes): Move conditional to check for
6701 debuginfo files from here...
6702 * stap-probe.c (stap_get_probes): ... to here.
6704 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6705 H.J. Lu <hongjiu.lu@intel.com>
6707 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6708 `movl %esp, %ebp' for the X32 ABI.
6710 2012-05-07 Tom Tromey <tromey@redhat.com>
6712 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6714 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6715 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6716 (dwarf_stack_op_name): Remove.
6717 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6718 (decode_locdesc): Use get_DW_OP_name.
6719 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6720 (dwarf2_compile_expr_to_ax): Likewise.
6721 (disassemble_dwarf_expression): Likewise.
6722 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6724 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6726 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6727 (sh_linux_sigtramp_cache): New function.
6728 (sh_linux_sigreturn_init): New function.
6729 (sh_linux_rt_sigreturn_init): New function.
6730 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6732 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6734 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6735 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6736 (sh_linux_init_abi): Add init calls to register new tramp_frame
6737 definitions under 32-bit SH, update comments.
6739 2012-05-07 Pedro Alves <palves@redhat.com>
6743 * amd64-linux-tdep.c: Include glibc-tdep.h.
6744 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6745 gdbarch_skip_solib_resolver callback.
6747 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6749 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6750 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6751 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6752 (add_auto_load_safe_path): Change the error message.
6753 (_initialize_auto_load): Change the "safe-path" help text.
6754 * configure: Regenerate
6755 * configure.ac (--without-auto-load-safe-path): Set
6756 WITH_AUTO_LOAD_SAFE_PATH to /.
6758 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6760 * stap-probe.h: Do not include unecessary `probe.h'.
6762 2012-05-05 Alan Modra <amodra@gmail.com>
6764 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6765 bfd_und_section_ptr.
6766 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6767 and bfd_com_section_ptr.
6769 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6771 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6773 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6775 * windows-nat.h (segment_register_p_ftype): New typedef.
6776 (windows_set_segment_register_p): Add declaration.
6777 * windows-nat.c (segment_register_p): New static global.
6778 (windows_set_segment_register_p): New function.
6779 (do_windows_fetch_inferior_registers): Add special handling
6780 for segment registers.
6781 * amd64-windows-nat.c: #include "amd64-tdep.h".
6782 (amd64_windows_segment_register_p): New function.
6783 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6784 * i386-windows-nat.c: #include "i386-tdep.h".
6785 (i386_windows_segment_register_p): New function.
6786 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6788 2012-05-04 Tristan Gingold <gingold@adacore.com>
6790 * printcmd.c (set_command): Emit a warning if the expression is not
6793 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6795 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6798 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6800 * stap-probe.c (stap_is_operator): Change declaration.
6801 (stap_get_opcode): Change return value.
6802 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6803 `stap_parse_argument_1'.
6805 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6807 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6810 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6812 Add two new methods global_block and static_block to gdb.Symtab
6814 * NEWS (Python scripting): Add entry about the new methods.
6815 * python/py-symtab.c (stpy_global_block): New function which
6816 implements the gdb.Symtab.global_block() method.
6817 (stpy_static_block): New function which implements the
6818 gdb.Symtab.static_block() method.
6819 (symtab_object_methods): Add entries for the two new methods.
6821 2012-05-03 Doug Evans <dje@google.com>
6823 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6826 2012-05-03 Yao Qi <yao@codesourcery.com>
6828 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6830 (i386_process_record): Ditto.
6832 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6834 * infcall.c (unwind_on_signal_p): Make static.
6836 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6838 * sol-thread.c (solaris_pid_to_str): Make static.
6839 (_initialize_sol_thread): Add prototype.
6841 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6843 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6845 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6847 * MAINTAINERS: Remove myself.
6849 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6851 Fix --without-auto-load-safe-path for MS-Windows host platform.
6852 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6854 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6856 * gdb_curses.h: Undefine KEY_EVENT before including curses
6857 headers. Move "#undef MOUSE_MOVED" before any curses header
6860 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6862 * features/i386/i386-mmx-linux.c: Regenerate.
6863 * features/rs6000/powerpc-32.c: Likewise.
6864 * features/rs6000/powerpc-32l.c: Likewise.
6865 * features/rs6000/powerpc-403.c: Likewise.
6866 * features/rs6000/powerpc-403gc.c: Likewise.
6867 * features/rs6000/powerpc-405.c: Likewise.
6868 * features/rs6000/powerpc-505.c: Likewise.
6869 * features/rs6000/powerpc-601.c: Likewise.
6870 * features/rs6000/powerpc-602.c: Likewise.
6871 * features/rs6000/powerpc-603.c: Likewise.
6872 * features/rs6000/powerpc-604.c: Likewise.
6873 * features/rs6000/powerpc-64.c: Likewise.
6874 * features/rs6000/powerpc-64l.c: Likewise.
6875 * features/rs6000/powerpc-750.c: Likewise.
6876 * features/rs6000/powerpc-860.c: Likewise.
6877 * features/rs6000/powerpc-e500.c: Likewise.
6878 * features/rs6000/powerpc-e500l.c: Likewise.
6879 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6880 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6881 * features/rs6000/rs6000.c: Likewise.
6883 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6885 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6887 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6888 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6889 (stap_parse_argument) <e>: Likewise.
6890 (handle_stap_probe) <byte_order>: Likewise.
6892 2012-04-30 Doug Evans <dje@google.com>
6894 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6895 init_and_read_dies_worker. All callers updated.
6896 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6897 replaced with init_cutu_and_read_dies.
6898 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6899 (find_partial_die): Remove FIXME. Don't free current CU.
6901 2012-04-30 Sterling Augustine <saugustine@google.com>
6903 * contrib: New directory.
6904 * contrib/test_pubnames_and_indexes.py: New file.
6906 2012-04-30 Doug Evans <dje@google.com>
6908 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6909 All callers updated.
6910 (init_cu_die_reader): Verify the section is non-empty.
6911 (dwarf_decode_line_header): Don't dereference section->asection
6912 until we know the section is present.
6914 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6916 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6919 2012-04-29 Yao Qi <yao@codesourcery.com>
6921 * gdb-code-style.el: New hook gdb-markup-hook
6922 and gdb-comment-hook.
6924 2012-04-28 Doug Evans <dje@google.com>
6926 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6927 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6929 * symfile.h (dwarf2_debug_sections): New member addr.
6930 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6931 (ctx_no_get_addr_index): New function.
6932 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6933 (ctx_no_get_addr_index): Declare.
6934 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6935 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6936 (dwarf_expr_ctx_funcs): Update.
6937 (needs_get_addr_index): New function.
6938 (needs_frame_ctx_funcs): Update.
6939 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6940 * dwarf2read.c: #include "gdbcore.h".
6941 (dwarf2_per_objfile): New members addr, dwo_files.
6942 (dwarf2_elf_names): Add entry for addr.
6943 (struct dwo_section_names): New type.
6944 (dwo_section_names): New static global.
6945 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6946 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6947 old debug_types_section member updated to use this.
6948 Rename member debug_types_section to info_or_types_section,
6950 (signatured_type): Rename member type_offset to type_offset_in_tu,
6951 all uses updated. New member type_offset_in_section.
6952 (struct dwo_sections): New type.
6953 (struct dwo_unit): New type.
6954 (struct dwo_file): New type.
6955 (die_reader_specs): New member dwo_file.
6956 (dwarf2_locate_sections): Watch for .debug_addr.
6957 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6958 (dwarf2_read_section): Get bfd of section from bfd's asection,
6960 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6961 (create_signatured_type_table_from_index): Initialize
6962 sig_type->info_or_types_section.
6963 (dw2_get_file_names): Statement lists for type units with DWO files
6964 live in the DWO file.
6965 (create_debug_types_hash_table): New function.
6966 (create_all_type_units): Rewrite.
6967 (init_cu_die_reader): New arg dwo_file, all callers updated.
6968 (init_and_read_dies_worker): Get section from
6969 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6970 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6971 continue reading the CU/TU from there.
6972 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6973 updated. Get section from this_cu->info_or_types_section.
6974 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6975 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6976 DW_FORM_GNU_str_index.
6977 (hash_dwo_file, eq_dwo_file): New functions.
6978 (allocate_dwo_file_hash_table): New function.
6979 (hash_dwo_unit, eq_dwo_unit): New functions.
6980 (allocate_dwo_unit_table): New function.
6981 (dwarf2_locate_dwo_sections): New function.
6982 (struct create_dwo_info_table_data): New type.
6983 (create_debug_info_hash_table_reader): New function.
6984 (create_debug_info_hash_table): New function.
6985 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6986 (lookup_dwo_file): New function.
6987 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6988 (free_dwo_file, free_dwo_file_cleanup): New functions.
6989 (free_dwo_file_from_slot, free_dwo_files): New functions.
6990 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6991 (dwarf2_record_block_ranges): Ditto.
6992 (read_partial_die): Ditto.
6993 (process_enumeration_scope): Update to use type_offset_in_section.
6994 (read_full_die_1): New function.
6995 (read_full_die): Rewrite.
6996 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6997 DW_FORM_GNU_str_index.
6998 (read_addr_index_1, read_addr_index): New functions.
6999 (read_addr_index_from_leb128): New function.
7000 (struct dwarf2_read_addr_index_data): New type.
7001 (dwarf2_read_addr_index_reader): New function.
7002 (dwarf2_read_addr_index): New function.
7003 (read_str_index): New function.
7004 (leb128_size): New function.
7005 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7006 If processing a type unit from a DWO file, get the line section
7008 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7009 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7010 DW_FORM_GNU_str_index.
7011 (lookup_die_type): Check whether section offset of type's die is
7012 known before looking it up. Remove assert. Condition can
7013 legimately happen for inter-cu type references.
7014 (dwarf_attr_name): Handle Fission attributes.
7015 (dwarf_form_name): Handle Fission forms.
7016 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7017 DW_FORM_GNU_str_index.
7018 (follow_die_sig): Update to use type_offset_in_section.
7019 (decode_locdesc): New case DW_OP_GNU_addr_index.
7020 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7021 DW_FORM_GNU_str_index.
7022 (cu_debug_loc_section): New function.
7023 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7024 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7025 Free DWO files if present.
7026 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7028 Refactor DIE reading.
7029 * dwarf2read.c (dwarf2_per_objfile): Replace members
7030 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7031 (die_reader_specs): New member "die_section". Temporarily make
7032 member "buffer" non-const, pending constifying all info_ptr uses.
7033 (die_reader_func_ftype): New typedef.
7034 (dw2_get_file_names_reader): New function.
7035 (dw2_get_file_names): Rewrite.
7036 (read_and_check_type_unit_head): Rename arg type_offset to
7038 (create_all_type_units): Improve debugging message.
7039 Improve dummy type unit check.
7040 (init_cu_die_reader): New arg "section". All callers updated.
7041 (init_and_read_dies_worker): New function.
7042 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7043 (init_cutu_and_read_dies_no_follow): New function.
7044 (init_cutu_and_read_dies_simple): New function.
7045 (process_psymtab_comp_unit_reader): New function.
7046 (process_psymtab_comp_unit): Delete args section,
7047 is_debug_types_section. Rewrite. All callers updated.
7048 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7049 All callers updated. Rewrite.
7050 (load_partial_comp_unit_reader): New function.
7051 (load_partial_comp_unit): Rewrite.
7052 (skip_children): New arg reader. Delete args buffer, cu.
7053 All callers updated.
7054 (skip_one_die): New arg reader. Delete args buffer, cu.
7055 All callers updated.
7056 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7057 All callers updated.
7058 (load_full_comp_unit_reader): New function.
7059 (load_full_comp_unit): Rewrite.
7060 (read_comp_unit): Delete.
7061 (read_die_and_children_1): Delete, contents moved ...
7062 (read_die_and_children): ... here.
7063 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7064 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7065 All callers updated.
7066 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7067 All callers updated.
7068 (find_partial_die): Rewrite load_all_dies support.
7069 (read_attribute_value): New arg reader. Delete args abfd, cu.
7070 All callers updated.
7071 (read_attribute): New arg reader. Delete args abfd, cu.
7072 All callers updated.
7073 (load_full_type_unit): Add assert.
7074 (read_signatured_type_reader): New function.
7075 (read_signatured_type): Rewrite.
7076 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7077 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7078 All callers updated. Set per_cu->cu = NULL after freeing it.
7079 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7080 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7081 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7082 (set_die_type): Update.
7083 (get_die_type_at_offset): Update.
7084 (read_file_scope): Call prepare_one_comp_unit.
7085 (read_type_unit_scope): Ditto.
7086 (prepare_one_comp_unit): Set producer if present.
7088 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7090 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7091 gettext function on `error'.
7093 2012-04-27 Doug Evans <dje@google.com>
7095 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7098 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7099 Tom Tromey <tromey@redhat.com>
7101 * breakpoint.c (struct breakpoint_objfile_data)
7102 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7103 <exception_probes>: New fields.
7104 (free_breakpoint_probes): New function.
7105 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7106 `_Unwind_DebugHook'.
7107 (create_exception_master_breakpoint): Likewise.
7108 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7109 * infrun.c: Including necessary header files for handling SystemTap
7111 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7112 via SystemTap probes.
7113 (check_exception_resume): Remove `func' argument. Handle exception
7114 unwinding breakpoint set via a SystemTap probe.
7115 (insert_exception_resume_from_probe): New function.
7117 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7118 Tom Tromey <tromey@redhat.com>
7119 Jan Kratochvil <jan.kratochvil@redhat.com>
7121 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7122 (COMMON_OBS): Likewise.
7123 (HFILES_NO_SRCDIR): Add `probe'.
7124 * NEWS: Mention support for static and SystemTap probes.
7125 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7126 SystemTap probes' arguments parser.
7127 * arm-linux-tdep.c: Including headers needed to perform the parsing
7128 of SystemTap probes' arguments.
7129 (arm_stap_is_single_operand): New function.
7130 (arm_stap_parse_special_token): Likewise.
7131 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7132 probes' arguments parser.
7133 * ax-gdb.c (require_rvalue): Removing static declaration.
7134 (gen_expr): Likewise.
7135 * ax-gdb.h (gen_expr): Declaring function.
7136 (require_rvalue): Likewise.
7137 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7138 (bkpt_probe_breakpoint_ops): New variable.
7139 (momentary_breakpoint_from_master): Set the `probe' value.
7140 (add_location_to_breakpoint): Likewise.
7141 (break_command_1): Using proper breakpoint_ops according to the
7142 argument passed by the user in the command line.
7143 (bkpt_probe_insert_location): New function.
7144 (bkpt_probe_remove_location): Likewise.
7145 (bkpt_probe_create_sals_from_address): Likewise.
7146 (bkpt_probe_decode_linespec): Likewise.
7147 (tracepoint_probe_create_sals_from_address): Likewise.
7148 (tracepoint_probe_decode_linespec): Likewise.
7149 (tracepoint_probe_breakpoint_ops): New variable.
7150 (trace_command): Using proper breakpoint_ops according to the
7151 argument passed by the user in the command line.
7152 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7153 static probes on breakpoints and tracepoints.
7154 * breakpoint.h (struct bp_location) <probe>: New field.
7155 * cli-utils.c (skip_spaces_const): New function.
7156 (extract_arg): Likewise.
7157 * cli-utils.h (skip_spaces_const): Likewise.
7158 (extract_arg): Likewise.
7159 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7160 * configure.ac: Append `stap-probe.o' to be generated when ELF
7162 * configure: Regenerate.
7163 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7164 * elfread.c: Include `probe.h' and `arch-utils.h'.
7165 (probe_key): New variable.
7166 (elf_get_probes): New function.
7167 (elf_get_probe_argument_count): Likewise.
7168 (elf_evaluate_probe_argument): Likewise.
7169 (elf_compile_to_ax): Likewise.
7170 (elf_symfile_relocate_probe): Likewise.
7171 (stap_probe_key_free): Likewise.
7172 (elf_probe_fns): New variable.
7173 (elf_sym_fns): Add `sym_probe_fns' value.
7174 (elf_sym_fns_lazy_psyms): Likewise.
7175 (elf_sym_fns_gdb_index): Likewise.
7176 (_initialize_elfread): Initialize objfile cache for static
7178 * gdb_vecs.h (struct probe): New forward declaration.
7179 (probe_p): New VEC declaration.
7180 * gdbarch.c: Regenerate.
7181 * gdbarch.h: Regenerate.
7182 * gdbarch.sh (stap_integer_prefix): New variable.
7183 (stap_integer_suffix): Likewise.
7184 (stap_register_prefix): Likewise.
7185 (stap_register_suffix): Likewise.
7186 (stap_register_indirection_prefix): Likewise.
7187 (stap_register_indirection_suffix): Likewise.
7188 (stap_gdb_register_prefix): Likewise.
7189 (stap_gdb_register_suffix): Likewise.
7190 (stap_is_single_operand): New function.
7191 (stap_parse_special_token): Likewise.
7192 (struct stap_parse_info): Forward declaration.
7193 * i386-tdep.c: Including headers needed to perform the parsing
7194 of SystemTap probes' arguments.
7195 (i386_stap_is_single_operand): New function.
7196 (i386_stap_parse_special_token): Likewise.
7197 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7198 probes' arguments parser.
7199 * i386-tdep.h (i386_stap_is_single_operand): New function.
7200 (i386_stap_parse_special_token): Likewise.
7201 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7202 * mipsread.c (ecoff_sym_fns): Likewise.
7203 * objfiles.c (objfile_relocate1): Support relocation for static
7205 * parse.c (prefixify_expression): Remove static declaration.
7206 (initialize_expout): Likewise.
7207 (reallocate_expout): Likewise.
7208 * parser-defs.h (initialize_expout): Declare function.
7209 (reallocate_expout): Likewise.
7210 (prefixify_expression): Likewise.
7211 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7212 of SystemTap probes' arguments.
7213 (ppc_stap_is_single_operand): New function.
7214 (ppc_stap_parse_special_token): Likewise.
7215 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7216 probes' arguments parser.
7217 * probe.c: New file, for generic statically defined probe support.
7218 * probe.h: Likewise.
7219 * s390-tdep.c: Including headers needed to perform the parsing of
7220 SystemTap probes' arguments.
7221 (s390_stap_is_single_operand): New function.
7222 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7223 probes' arguments parser.
7224 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7225 * stap-probe.c: New file, for SystemTap probe support.
7226 * stap-probe.h: Likewise.
7227 * symfile.h: Include `gdb_vecs.h'.
7228 (struct sym_probe_fns): New struct.
7229 (struct sym_fns) <sym_probe_fns>: New field.
7230 * symtab.c (init_sal): Initialize `probe' field.
7231 * symtab.h (struct probe): Forward declaration.
7232 (struct symtab_and_line) <probe>: New field.
7233 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7235 (stop_tracing): Likewise.
7236 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7238 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7239 Tom Tromey <tromey@redhat.com>
7241 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7242 and to compile agent expressions.
7243 * infrun.c (siginfo_make_value): New argument `ignore'.
7244 (siginfo_funcs): New struct.
7245 (_initialize_infrun): New argument when calling
7246 `create_internalvar_type_lazy'.
7247 * thread.c (thread_id_make_value): New argument `ignore'.
7248 (thread_funcs): New struct.
7249 (_initialize_thread): New argument when calling
7250 `create_internalvar_type_lazy'.
7251 * tracepoint.c (sdata_make_value): New argument `ignore'.
7252 (sdata_funcs): New struct.
7253 (_initialize_tracepoint): New argument when calling
7254 `create_internalvar_type_lazy'.
7255 * value.c (make_value): New struct.
7256 (create_internalvar_type_lazy): New argument `data'.
7257 (compile_internalvar_to_ax): New function.
7258 (value_of_internalvar): Properly handling `make_value' case.
7259 (clear_internalvar): Likewise.
7260 (show_convenience): Adding `TRY_CATCH' block.
7261 * value.h (internalvar_make_value): Delete, replace by...
7262 (struct internalvar_funcs): ... this.
7263 (create_internalvar_type_lazy) <fun>: Delete argument.
7264 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7265 (compile_internalvar_to_ax): New function.
7266 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7267 (tlb_funcs): New struct.
7268 (_initialize_windows_tdep): New argument when calling
7269 `create_internalvar_type_lazy'.
7271 2012-04-27 Mark Wielaard <mjw@redhat.com>
7273 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7274 see whether it is an address or a constant offset from DW_AT_low_pc.
7275 (dwarf2_record_block_ranges): Likewise.
7276 (read_partial_die): Likewise.
7278 2012-04-26 Mark Wielaard <mjw@redhat.com>
7280 * MAINTAINERS (Write After Approval): Add myself to the list.
7282 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7284 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7285 (proc_prettyprint_signal): Likewise.
7286 (proc_prettyprint_faultset): Likewise.
7287 (proc_prettyprint_fault): Likewise.
7288 (proc_prettyprint_actionset): Likewise.
7289 (proc_prettyprint_flags): Move to new proc-flags.c section.
7290 (proc_prettyfprint_flags): New prototype.
7291 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7292 (proc_syscall, proc_cursig): Likewise.
7293 (proc_set_kill_on_last_close): Likewise.
7294 (proc_unset_kill_on_last_close): Likewise.
7295 (proc_set_watchpoint): Make static.
7296 (proc_delete_dead_threads): Likewise.
7297 (procfs_set_watchpoint): Likewise.
7298 (_initialize_procfs): Add prototype.
7299 * proc-events.c: Include proc-utils.h.
7300 (init_syscall_table): Make static.
7301 * proc-api.c (_initialize_proc_api): Add prototype.
7302 * proc-flags.c: Include proc-utils.h.
7304 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7306 * configure.ac: Add AC_ARG_PROGRAM.
7307 * configure: Regenerate.
7309 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7311 Fix DW_AT_lower_bound defaults for DWARF-4+.
7312 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7313 high. New variable low_default_is_valid. Implement DWARF-4+
7314 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7315 no default by the DWARF standard.
7317 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7318 Maciej W. Rozycki <macro@codesourcery.com>
7320 * infrun.c (handle_inferior_event): Move the check for return
7321 trampolines ahead of the check for function trampolines.
7322 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7323 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7324 (mips_str_mips16_ret_stub): Likewise.
7325 (mips_str_call_fp_stub): Likewise.
7326 (mips_str_call_stub): Likewise.
7327 (mips_str_fn_stub): Likewise.
7328 (mips_str_pic): Likewise.
7329 (mips_in_frame_stub): New function.
7330 (mips_unwind_pc): Return the return address rather than the PC
7331 if the PC of an intermediate frame is inside a call thunk.
7332 (mips_is_stub_suffix): New function.
7333 (mips_is_stub_mode): Likewise.
7334 (mips_get_mips16_fn_stub_pc): Likewise.
7335 (mips_skip_mips16_trampoline_code): Update to handle all the
7336 currently generated stub types. Don't recurse into __fn_stub
7337 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7338 Use cooked register accesses.
7339 (mips_in_return_stub): Reintroduce function.
7340 (mips_skip_trampoline_code): Traverse trampolines recursively.
7341 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7343 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7347 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7349 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7350 * features/arm-with-m-vfp-d16.xml: New file. Describes
7351 Cortex-M with VFPv4-sp-d16 FPU register layout.
7352 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7353 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7354 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7355 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7356 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7358 2012-04-25 Doug Evans <dje@google.com>
7360 * cli/cli-decode.c (print_doc_line): Use stream instead of
7363 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7365 * features/arm-with-iwmmxt.c: Regenerate.
7366 * features/arm-with-m-fpa-layout.c: Likewise.
7367 * features/arm-with-m.c: Likewise.
7368 * features/arm-with-neon.c: Likewise.
7369 * features/arm-with-vfpv2.c: Likewise.
7370 * features/arm-with-vfpv3.c: Likewise.
7371 * features/mips-dsp-linux.c: Likewise.
7372 * features/mips-linux.c: Likewise.
7373 * features/mips64-dsp-linux.c: Likewise.
7374 * features/mips64-linux.c: Likewise.
7375 * features/s390-linux32.c: Likewise.
7376 * features/s390-linux32v1.c: Likewise.
7377 * features/s390-linux32v2.c: Likewise.
7378 * features/s390-linux64.c: Likewise.
7379 * features/s390-linux64v1.c: Likewise.
7380 * features/s390-linux64v2.c: Likewise.
7381 * features/s390x-linux64.c: Likewise.
7382 * features/s390x-linux64v1.c: Likewise.
7383 * features/s390x-linux64v2.c: Likewise.
7384 * features/tic6x-c62x-linux.c: Likewise.
7385 * features/tic6x-c62x.c: Likewise.
7386 * features/tic6x-c64x-linux.c: Likewise.
7387 * features/tic6x-c64x.c: Likewise.
7388 * features/tic6x-c64xp-linux.c: Likewise.
7389 * features/tic6x-c64xp.c: Likewise.
7390 * target-descriptions.c: Only generate `field_type' and `type'
7391 variables when needed.
7393 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7395 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7397 2012-04-25 Doug Evans <dje@google.com>
7399 Initial pass at Go language support.
7401 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7403 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7404 (YYFILES): Add go-exp.c.
7405 (YYOBJ): Add go-exp.o.
7406 (local-maintainer-clean): Delete go-exp.c.
7407 * defs.h (enum language): Add language_go.
7408 * dwarf2read.c: #include "go-lang.h".
7409 (fixup_go_packaging): New function.
7410 (process_full_comp_unit): Call it when processing Go CUs.
7411 (dwarf2_physname): Add Go support.
7412 (read_file_scope): Handle missing language spec for GNU Go.
7413 (set_cu_language): Handle DW_LANG_Go.
7414 * go-exp.y: New file.
7415 * go-lang.h: New file.
7416 * go-lang.c: New file.
7417 * go-typeprint.c: New file.
7418 * go-valprint.c: New file.
7419 * symtab.c: #include "go-lang.h".
7420 (symbol_set_language): Handle language_go.
7421 (symbol_find_demangled_name, symbol_set_names): Ditto.
7422 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7424 2012-04-24 Jim Meyering <meyering@redhat.com>
7426 avoid a few strncpy-induced buffer overruns
7427 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7428 fname and psargs before trying to concatenate.
7429 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7430 "name" before applying strchr.
7432 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7434 * CONTRIBUTE: Use unified diff instead of context diff when
7437 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7439 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7440 code. Handle JR.HB correctly.
7442 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7445 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7446 with the other MIPS16 helpers.
7448 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7450 * observer.sh: Conditionally declare `args', thus cleaning up
7451 unused instances of this variable.
7453 2012-04-24 Yao Qi <yao@codesourcery.com>
7455 Revert this patch to allow breakpoint always-inserted
7457 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7458 * breakpoint.c: Include record.h.
7459 (breakpoints_always_inserted_mode): Return false when the record
7462 * breakpoint.c (iterate_over_bp_locations): New.
7463 * breakpoint.h: Declare.
7464 New typedef walk_bp_location_callback.
7465 * record.c (record_open): Call record_init_record_breakpoints.
7466 (record_sync_record_breakpoints): New.
7467 (record_init_record_breakpoints): New.
7468 * NEWS: Mention supporting breakpoint always-inserted mode in
7471 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7473 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7476 2012-04-24 Yao Qi <yao@codesourcery.com>
7478 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7479 (is_catchpoint): ... it.
7480 (print_one_breakpoint_location): Caller update.
7481 * breakpoint.h: Update declaration.
7483 2012-04-23 David S. Miller <davem@davemloft.net>
7485 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7487 2012-04-23 Tom Tromey <tromey@redhat.com>
7489 * buildsym.c (add_free_pendings): Remove.
7490 * buildsym.h (add_free_pendings): Remove.
7492 2012-04-23 Doug Evans <dje@google.com>
7494 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7495 attr.u.unsnd instead of attr.u.addr.
7496 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7497 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7499 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7500 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7502 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7504 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7506 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7507 (mips_o32_return_value): Likewise.
7508 (mips_o64_return_value): Likewise.
7510 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7512 * ada-lang.c (ada_evaluate_subexp): Add cases for
7513 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7514 their treatment in eval.c.
7516 2012-04-21 David S. Miller <davem@davemloft.net>
7518 * sparc-tdep.c (X_DISP10): Define.
7519 (sparc_analyze_control_transfer): Handle compare-and-branch.
7521 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7523 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7524 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7526 2012-04-20 Nigel Stephens <nigel@mips.com>
7527 Maciej W. Rozycki <macro@codesourcery.com>
7529 * mips-tdep.c (mips_float_register_p): New function.
7530 (mips_convert_register_float_case_p): Use mips_float_register_p.
7531 (mips_register_type): Likewise.
7532 (mips_print_register): Likewise.
7533 (print_gp_register_row): Likewise.
7534 (mips_print_registers_info): Likewise.
7536 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7538 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7541 2012-04-20 Andrew Pinski <apinski@cavium.com>
7543 * MAINTAINERS (Write After Approval): Add myself to the list.
7545 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7547 * MAINTAINERS: Update my e-mail address.
7549 2012-04-20 Pedro Alves <palves@redhat.com>
7551 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7553 * configure: Regenerate.
7555 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7557 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7559 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7561 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7563 Fix compilation compatibility with python-2.4
7564 * python/py-type.c (convert_field): Cast ADDRSTRING for
7565 PyObject_SetAttrString as non-const. New comment.
7567 2012-04-19 Tom Tromey <tromey@redhat.com>
7569 * top.c (quit_target): Use all_cleanups.
7570 * main.c (captured_command_loop): Use all_cleanups.
7571 * exceptions.c (throw_exception): Use all_cleanups.
7573 2012-04-19 Pedro Alves <palves@redhat.com>
7575 * Makefile.in (GNULIB_BUILDDIR): New.
7576 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7577 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7578 (CLEANDIRS). Remove gnulib/import.
7579 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7581 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7582 (gnulib/import/Makefile): Replace gnulib/import with
7583 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7584 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7585 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7586 acx_configure_dir.m4.
7587 * acinclude.m4: Include acx_configure_dir.m4.
7588 * acx_configure_dir.m4: New file.
7589 * aclocal.m4: Regenerate.
7590 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7591 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7592 (GNULIB): New variable.
7593 (GNULIB_STDINT_H): Adjust.
7594 (AC_OUTPUT): Don't output gnulib/Makefile.
7595 * gdb/defs.h: Include build-gnulib/config.h.
7596 * aclocal.m4: Regenerate.
7597 * config.in: Regenerate.
7598 * configure: Regenerate.
7600 * gnulib/Makefile.in: New file.
7601 * gnulib/configure.ac: New file.
7602 * gnulib/aclocal.m4: New file.
7603 * gnulib/config.in: New file.
7604 * gnulib/configure: New file.
7605 * gnulib/: Re-run gnulib-tool to adjust.
7607 2012-04-19 Doug Evans <dje@google.com>
7609 * cleanups.h (struct cleanup): Move to cleanups.c.
7610 (make_cleanup_dtor_ftype): New typedef.
7611 (make_cleanup_dtor): Use it.
7612 (ALL_CLEANUPS): Replace with ...
7613 (all_cleanups): ... this. Declare. All uses updated.
7614 * cleanups.c: #include "gdb_assert.h".
7615 (sentinel_cleanup): New static global.
7616 (SENTINEL_CLEANUP): Define.
7617 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7618 (make_my_cleanup2): Assert result is non-NULL.
7619 (all_cleanups): New function.
7620 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7623 2012-04-19 Pedro Alves <palves@redhat.com>
7625 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7626 Adjust paths to gnulib imported files.
7628 2012-04-19 Pedro Alves <palves@redhat.com>
7630 * gnulib/: Move whole directory ...
7631 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7632 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7633 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7634 (aclocal_m4_deps): Adjust.
7635 * aclocal.m4: Regenerate.
7636 * configure: Regenerate.
7637 * configure.ac: Adjust AC_OUTPUT output.
7639 2012-04-19 Yao Qi <yao@codesourcery.com>
7641 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7643 * vec.c: Move it ...
7644 * common/vec.c: ... here.
7645 * vec.h: Move it ...
7646 * common/vec.h: ... here.
7648 2012-04-19 Yao Qi <yao@codesourcery.com>
7650 * gdb-code-style.el: New.
7652 2012-04-18 Pedro Alves <palves@redhat.com>
7654 Update gnulib from latest git.
7655 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7657 * gnulib/Makefile.am: Update.
7658 * gnulib/dummy.c: Update.
7659 * gnulib/extra/arg-nonnull.h: Update.
7660 * gnulib/extra/c++defs.h: Update.
7661 * gnulib/extra/update-copyright: Update.
7662 * gnulib/extra/warn-on-use.h: Update.
7663 * gnulib/inttypes.in.h: Update.
7664 * gnulib/m4/00gnulib.m4: Update.
7665 * gnulib/m4/extensions.m4: Update.
7666 * gnulib/m4/gnulib-cache.m4: Update.
7667 * gnulib/m4/gnulib-common.m4: Update.
7668 * gnulib/m4/gnulib-comp.m4: Update.
7669 * gnulib/m4/gnulib-tool.m4: Update.
7670 * gnulib/m4/include_next.m4: Update.
7671 * gnulib/m4/inttypes-pri.m4: Update.
7672 * gnulib/m4/inttypes.m4: Update.
7673 * gnulib/m4/longlong.m4: Update.
7674 * gnulib/m4/memchr.m4: Update.
7675 * gnulib/m4/memmem.m4: Update.
7676 * gnulib/m4/mmap-anon.m4: Update.
7677 * gnulib/m4/multiarch.m4: Update.
7678 * gnulib/m4/onceonly.m4: Update.
7679 * gnulib/m4/stddef_h.m4: Update.
7680 * gnulib/m4/stdint.m4: Update.
7681 * gnulib/m4/string_h.m4: Update.
7682 * gnulib/m4/warn-on-use.m4: Update.
7683 * gnulib/m4/wchar_h.m4: Update.
7684 * gnulib/m4/wchar_t.m4: Update.
7685 * gnulib/m4/wint_t.m4: Update.
7686 * gnulib/memchr.c: Update.
7687 * gnulib/memmem.c: Update.
7688 * gnulib/stddef.in.h: Update.
7689 * gnulib/stdint.in.h: Update.
7690 * gnulib/str-two-way.h: Update.
7691 * gnulib/string.in.h: Update.
7692 * gnulib/wchar.in.h: Update.
7694 * gnulib/extra/arg-nonnull.h: Delete.
7695 * gnulib/extra/c++defs.h: Delete.
7696 * gnulib/extra/warn-on-use.h: Delete.
7697 * gnulib/m4/wchar_h.m4: Delete.
7698 * gnulib/m4/wint_t.m4: Delete.
7699 * gnulib/wchar.in.h: Delete.
7701 * gnulib/extra/snippets/arg-nonnull.h: New.
7702 * gnulib/extra/snippets/c++defs.h: New.
7703 * gnulib/extra/snippets/warn-on-use.h: New.
7705 * aclocal.m4: Regenerate.
7706 * config.in: Regenerate.
7707 * configure: Regenerate.
7708 * gnulib/Makefile.in: Regenerate.
7710 2012-04-18 Pedro Alves <palves@redhat.com>
7712 Reimport the update-copyright module from gnulib
7713 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7715 * configure: Regenerate.
7716 * gnulib/Makefile.am: Update.
7717 * gnulib/Makefile.in: Regenerate.
7718 * gnulib/extra/update-copyright: Update.
7719 * gnulib/m4/gnulib-cache.m4: Update.
7720 * gnulib/m4/gnulib-comp.m4: Update.
7722 2012-04-18 Tristan Gingold <gingold@adacore.com>
7724 * configure.ac (aix): Put -lpthread into libs.
7725 * configure: Regenerate.
7727 2012-04-18 Tom Tromey <tromey@redhat.com>
7729 * linespec.c (convert_linespec_to_sals): Don't use
7731 (compare_msymbols): Arguments are minsym_and_objfile, not
7732 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7734 2012-04-18 Pedro Alves <palves@redhat.com>
7736 Revert gnulib/ part of:
7737 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7738 Copyright year update in most files (performed by copyright.sh).
7740 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7742 Fix 64-bit constants on 32-bit hosts.
7743 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7744 from unsigned long to ULONGEST.
7745 (read_signed_leb128): Change declaration return type from long to
7747 (dwarf2_const_value_attr): Change declaration parameter value from long
7749 (dwarf2_compute_name): Change variable value from long to LONGEST.
7750 (read_unsigned_leb128): Change return type, variable result and some
7751 casts from unsigned long to ULONGEST.
7752 (read_signed_leb128): Change return type, variable result and some
7753 casts from long to LONGEST.
7754 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7755 value from long to LONGEST.
7756 (dwarf2_const_value): Change variable value from long to LONGEST.
7757 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7758 plongest and hex_string.
7759 * symtab.h (struct general_symbol_info): Change ivalue from long to
7760 LONGEST, remove the comment.
7761 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7762 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7764 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7767 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7768 * ada-lang.c (ada_discrete_type_high_bound)
7769 (ada_discrete_type_low_bound): Fix function comment. Use
7770 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7771 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7772 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7773 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7774 Use TYPE_FIELD_ENUMVAL.
7775 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7776 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7777 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7778 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7780 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7781 * dwarf2read.c (process_enumeration_scope): Likewise.
7782 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7784 (class StructMainTypePrettyPrinter): Support also
7785 FIELD_LOC_KIND_ENUMVAL.
7786 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7788 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7789 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7790 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7791 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7793 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7794 accommodate enumval.
7795 (struct call_site): Adjust loc_kind to accommodate enumval.
7796 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7797 (TYPE_FIELD_ENUMVAL): New macros.
7798 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7799 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7801 * p-typeprint.c (pascal_type_print_base): Likewise.
7802 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7804 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7805 * python/py-type.c (convert_field): New variable addrstring. Use
7806 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7807 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7808 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7809 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7811 * valprint.c (generic_val_print): Likewise.
7813 2012-04-17 Doug Evans <dje@google.com>
7815 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7817 * dwarf2read.c: Whitespace fixes.
7818 (lookup_signatured_type): Tweak comment.
7819 (get_die_type_at_offset): Fix comment.
7821 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7823 * xcoffread.c (xcoff_secnum_to_sections): New function.
7824 (secnum_to_section, secnum_to_bfd_section): Reimplement
7825 using xcoff_secnum_to_sections. Rename "secnum" parameter
7827 (RECORD_MINIMAL_SYMBOL): Delete.
7828 (record_minimal_symbol): New function.
7829 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7830 by call to record_minimal_symbol and set misc_func_recorded
7831 to 1. Set last_csect_sec to the XCOFF section index instead
7832 of GDB's section_offset index. Update calls to
7833 prim_record_minimal_symbol_and_info to pass the BFD section
7836 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7838 * xcoffread.c (read_xcoff_symtab): Delete variables
7839 last_csect_val and last_csect_sec and associated code.
7841 2012-04-17 Doug Evans <dje@google.com>
7843 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7844 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7845 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7846 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7848 * cleanups.h: New file.
7849 * cleanups.c: New file.
7850 * Makefile.in (SFILES): Add cleanups.c.
7851 (HFILES_NO_SRCDIR): Add cleanups.h.
7852 (COMMON_OBS): Add cleanups.o.
7853 * defs.h (struct cleanup): Moved to cleanups.h.
7854 (do_cleanups,do_final_cleanups): Ditto.
7855 (discard_cleanups,discard_final_cleanups): Ditto
7856 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7857 (save_cleanups,save_final_cleanups): Ditto.
7858 (restore_cleanups,restore_final_cleanups): Ditto.
7859 (null_cleanup): Ditto.
7860 (make_my_cleanup,make_my_cleanup2): Ditto.
7861 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7862 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7863 (do_cleanups,do_final_cleanups): Ditto.
7864 (discard_cleanups,discard_final_cleanups): Ditto
7865 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7866 (save_cleanups,save_final_cleanups): Ditto.
7867 (restore_cleanups,restore_final_cleanups): Ditto.
7868 (null_cleanup): Ditto.
7869 (make_my_cleanup,make_my_cleanup2): Ditto.
7870 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7872 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7874 (make_cleanup_dyn_string_delete): Ditto.
7875 (make_cleanup_ui_file_delete): Ditto.
7876 (make_cleanup_ui_out_redirect_pop): Ditto.
7877 (make_cleanup_free_section_addr_info): Ditto.
7878 (make_cleanup_restore_integer): Ditto.
7879 (make_cleanup_unpush_target): Ditto.
7880 (make_cleanup_value_free_to_mark): Ditto.
7881 (make_cleanup_value_free): Ditto.
7882 (make_cleanup_free_so): Ditto.
7884 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7886 New option "set debug auto-load".
7887 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7888 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7889 (auto_load_safe_path_vec_update)
7890 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7892 (file_is_auto_load_safe): New parameters debug_fmt and ....
7893 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7894 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7895 caller by explanatory string.
7896 (_initialize_auto_load): Register "set debug auto-load".
7897 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7899 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7900 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7901 by explanatory string.
7902 * main.c (captured_main): Likewise.
7903 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7904 (source_section_scripts): Likewise.
7906 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7908 New option "set auto-load safe-path".
7909 * NEWS: New commands "set auto-load safe-path"
7910 and "show auto-load safe-path".
7911 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7912 (auto_load_safe_path, auto_load_safe_path_vec)
7913 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7914 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7915 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7916 (source_gdb_script_for_objfile): New variable is_safe. Call
7917 file_is_auto_load_safe. Return if it is not.
7918 (struct loaded_script): New field loaded.
7919 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7920 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7921 output "Missing" to "No".
7922 (_initialize_auto_load): New variable cmd. Initialize
7923 auto_load_safe_path. Register "set auto-load safe-path",
7924 "show auto-load safe-path" and "add-auto-load-safe-path".
7925 * auto-load.h (maybe_add_script): Add parameter loaded.
7926 (file_is_auto_load_safe): New declaration.
7927 * config.in: Regenerate.
7928 * configure: Regenerate.
7929 * configure.ac: New parameters --with-auto-load-safe-path
7930 and --without-auto-load-safe-path.
7931 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7932 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7933 * main.c (captured_main): Check file_is_auto_load_safe for
7935 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7936 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7937 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7940 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7942 auto-load: Implementation.
7943 * NEWS: New descriptions for "info auto-load",
7944 "info auto-load gdb-scripts", "info auto-load python-scripts",
7945 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7946 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7947 and "show auto-load-scripts". New description for "set auto-load",
7948 "show auto-load", "set auto-load gdb-scripts",
7949 "show auto-load gdb-scripts", "set auto-load python-scripts",
7950 "show auto-load python-scripts", "set auto-load local-gdbinit",
7951 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7952 "show auto-load libthread-db".
7953 * auto-load.c: Remove include python/python-internal.h. Add includes
7954 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7956 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7957 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7958 (gdbpy_global_auto_load): Rename to ...
7959 (global_auto_load): ... here.
7960 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7961 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7962 (script_language_gdb, source_gdb_script_for_objfile): New.
7963 (struct loaded_script): New field language.
7964 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7966 (maybe_add_script): Add parameter language. Drop redundant
7967 entry.full_path initialization. Initialize entry.language and
7969 (auto_load_objfile_script): Change parameter suffix to language.
7970 Remove the call of maybe_add_script.
7971 Call language->source_script_for_objfile.
7972 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7974 (collect_matching_scripts): Adjust it for
7975 struct collect_matching_scripts_data.
7976 (auto_load_info_scripts_pattern_nl): New variable.
7977 (info_auto_load_scripts): Rename to ...
7978 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7979 for struct collect_matching_scripts_data.
7980 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7981 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7982 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7983 (auto_load_info_cmdlist_get): New.
7984 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7985 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7986 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7987 "info auto-load local-gdbinit".
7988 * auto-load.h (struct script_language): New.
7989 (gdbpy_global_auto_load): Rename to ...
7990 (global_auto_load): ... here.
7991 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7992 (auto_load_local_gdbinit_loaded): New declarations.
7993 (maybe_add_script): New parameter language.
7994 (auto_load_objfile_script): Change parameter suffix to language.
7995 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7996 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7997 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7999 * linux-thread-db.c: Include auto-load.h and ctype.h.
8000 (auto_load_thread_db, show_auto_load_thread_db): New.
8001 (struct thread_db_info): New field filename.
8002 (delete_thread_db_info): Call xfree for FILENAME.
8003 (try_thread_db_load): Initialize FILENAME.
8004 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8005 if !AUTO_LOAD_THREAD_DB.
8006 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8007 (_initialize_thread_db): Install auto_load_thread_db
8008 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8009 as "info auto-load libthread-db".
8010 * main.c (captured_main): Rename gdbpy_global_auto_load to
8011 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8012 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8013 (print_gdb_help): Extend the help for 'local init file'.
8014 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8015 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8016 (auto_load_scripts): Rename to ...
8017 (auto_load_python_scripts): ... here, update the comment.
8018 (gdbpy_load_auto_script_for_objfile): New declaration.
8019 (show_auto_load_python_scripts, script_language_python)
8020 (gdbpy_load_auto_script_for_objfile): New.
8021 (source_section_scripts): Refactor the code.
8022 (load_auto_scripts_for_objfile): Rename to ...
8023 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8024 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8025 (info_auto_load_python_scripts): New.
8026 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8027 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8028 Register "set auto-load-scripts" as its deprecated alias. Register
8029 "info auto-load python-scripts". Register "info auto-load-scripts" as
8030 its deprecated alias.
8031 (load_auto_scripts_for_objfile): Rename to ...
8032 (gdbpy_load_auto_scripts_for_objfile): ... here.
8033 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8034 (gdbpy_load_auto_scripts_for_objfile): ... here.
8036 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8038 auto-load: Move files.
8039 * Makefile.in (SFILES): Add auto-load.c.
8040 (HFILES_NO_SRCDIR): Add auto-load.h.
8041 (COMMON_OBS): Add auto-load.o.
8042 (distclean): Change .gdbinit for gdb-gdb.gdb.
8043 * auto-load.c: New file, with parts from python/py-auto-load.c.
8044 * auto-load.h: New file, with parts from python/python.h.
8045 * configure: Regenerate.
8046 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8047 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8048 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8049 * main.c: Include auto-load.h.
8050 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8051 command.h, observer.h and progspace.h to auto-load.c. Add include
8053 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8054 (struct loaded_script, auto_load_pspace_data)
8055 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8056 (hash_loaded_script_entry, eq_loaded_script_entry)
8057 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8058 (maybe_add_script): Move to auto-load.c.
8059 (source_section_scripts): Change maybe_add_script parameters passing,
8060 use script_not_found_warning_print.
8061 (clear_section_scripts, auto_load_objfile_script)
8062 (auto_load_new_objfile, loaded_script_ptr)
8063 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8064 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8065 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8066 auto_load_new_objfile and info_auto_load_scripts initizations to
8068 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8070 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8073 * charset.c (find_charset_names): Remove variables ix and elt.
8074 Use free_char_ptr_vec.
8075 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8076 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8077 debugdir_end. New variable debugdir_len.
8078 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8079 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8081 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8082 and elt. Use free_char_ptr_vec.
8083 * source.c (add_path): Remove variables argv, arg and argv_index.
8084 New variables dir_vec, back_to, ix and name.
8085 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8086 make_cleanup_freeargv. Remove variable separator. Simplify the code
8087 no longer expecting DIRNAME_SEPARATOR.
8088 (openp): Remove variable p, p1 and len. New variables dir_vec,
8089 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8090 no longer expecting DIRNAME_SEPARATOR.
8091 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8092 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8094 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8095 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8096 (dirnames_to_char_ptr_vec): New functions.
8098 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8101 * source.c (add_path): Remove always true conditional 'p == 0' and
8102 unindent its code block.
8104 2012-04-17 Pedro Alves <palves@redhat.com>
8106 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8107 (FIELD_BITPOS_LVAL): ... this.
8108 (FIELD_BITPOS): New.
8109 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8110 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8111 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8113 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8115 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8116 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8117 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8120 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8122 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8123 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8124 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8125 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8126 * jv-lang.c (java_link_class_type): Likewise, once.
8127 * stabsread.c (read_enum_type): Likewise.
8129 2012-04-16 Yao Qi <yao@codesourcery.com>
8131 * common/agent.c (agent_run_command): Add one more parameter `len'.
8133 * common/agent.h: Update declaration.
8134 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8136 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8138 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8141 * value.c (value_actual_type): New function.
8142 * value.h (value_actual_type): New declaration.
8143 * varobj.c (update_type_if_necessary): New function.
8144 (varobj_create): Call value_actual_type instead of
8146 (install_dynamic_child): distinct changed and type changed MI variable
8148 (update_dynamic_varobj_children): Updated for install_dynamic_child
8149 change. All callers updated.
8150 (varobj_update): Support for MI variable object type change if
8151 the value changed and RTTI is used to determine the type.
8152 (create_child_with_value): Call value_actual_type instead of
8154 (adjust_value_for_child_access): Extended with a new parameter which
8155 specify whether the given value should be casted to enclosing type.
8156 All callers updated.
8158 2012-04-14 Yao Qi <yao@codesourcery.com>
8160 Import gnulib module inttypes from git
8161 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8162 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8163 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8164 gnulib/m4/inttypes-pri.m4
8165 * aclocal.m4, config.in, configure: Regenerated.
8166 * gnulib/Makefile.am: Update.
8167 * gnulib/Makefile.in: Update.
8168 * gnulib/m4/gnulib-cache.m4: Update.
8169 * gnulib/m4/gnulib-comp.m4: Update.
8170 * gnulib/inttypes.in.h: New.
8171 * gnulib/m4/inttypes-pri.m4: New.
8172 * gnulib/m4/inttypes.m4: New.
8174 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8176 * infrun.c (resume): Update PC address to the real PC after
8177 preparing to do displaced stepping.
8179 2012-04-12 Doug Evans <dje@google.com>
8181 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8182 All callers updated.
8184 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8186 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8188 2012-04-12 Doug Evans <dje@google.com>
8190 * dwarf2read.c (create_all_type_units): Renamed from
8191 create_debug_types_hash_table. All callers updated.
8193 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8194 local type_sig to sig_type, type_offset to type_offset_in_tu.
8195 (hash_signatured_type): Renamed from hash_type_signature,
8196 all callers updated.
8197 (eq_signatured_type): Renamed from eq_type_signature,
8198 all callers updated.
8199 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8200 (process_enumeration_scope): Ditto.
8201 (lookup_signatured_type_at_offset): Ditto.
8202 (load_full_type_unit, read_signatured_type): Ditto.
8204 2012-04-12 Yao Qi <yao@codesourcery.com>
8206 * remote.c (async_remote_interrupt): Correct function name in
8208 (async_remote_interrupt_twice): Ditto.
8210 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8212 * source.c (find_and_open_source): Consistently pass resulting
8213 full path through xfullpath.
8215 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8217 Provide more specific displaced-stepping memory error message.
8218 * infrun.c (displaced_step_prepare): New variable status. Call
8219 target_read_memory instead of read_memory, provide more specific
8222 2012-04-11 Tristan Gingold <gingold@adacore.com>
8225 * darwin-nat.c (darwin_execvp): Revert previous patch.
8227 2012-04-11 Tristan Gingold <gingold@adacore.com>
8230 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8233 2012-04-11 Tristan Gingold <gingold@adacore.com>
8235 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8238 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8240 New command 'explore' which helps explore values and types in
8242 * NEWS: Add an entry about the new 'explore' command.
8243 * data-directory/Makefile.in: Add gdb/command/explore.py
8244 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8245 command using the GDB Python API.
8247 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8249 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8250 extension in jump target calculation.
8252 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8254 * mips-tdep.c (mips32_next_pc): Handle JALX.
8256 2012-04-10 Yao Qi <yao@codesourcery.com>
8258 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8260 2012-04-10 Yao Qi <yao@codesourcery.com>
8262 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8263 and gnulib/m4/gnulib-tool.m4.
8265 2012-04-10 Doug Evans <dje@google.com>
8267 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8268 (load_partial_dies): Clarify comment.
8269 (find_partial_die): Support rereading type units.
8270 Clarify CU handling, if we know offset is in CU, don't search for the
8271 containing CU. Add comment regarding memory waste.
8273 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8275 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8276 i386/x32-avx and i386/x32-avx-linux.
8277 (i386/x32-expedite): New.
8278 (i386/x32-linux-expedite): Likewise.
8279 (i386/x32-avx-expedite): Likewise.
8280 (i386/x32-avx-linux-expedite): Likewise.
8281 ($(outdir)/i386/x32.dat): Likewise.
8282 ($(outdir)/i386/x32-linux.dat): Likewise.
8283 ($(outdir)/i386/x32-avx.dat): Likewise.
8284 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8286 * features/i386/x32-avx-linux.xml: New file.
8287 * features/i386/x32-avx.xml: Likewise.
8288 * features/i386/x32-core.xml: Likewise.
8289 * features/i386/x32-linux.xml: Likewise.
8290 * features/i386/x32.xml: Likewise.
8292 * features/i386/x32-avx-linux.c: New. Generated.
8293 * features/i386/x32-avx.c: Likewise.
8294 * features/i386/x32-linux.c: Likewise.
8295 * features/i386/x32.c: Likewise.
8296 * regformats/i386/x32-avx-linux.dat: Likewise.
8297 * regformats/i386/x32-avx.dat: Likewise.
8298 * regformats/i386/x32-linux.dat: Likewise.
8299 * regformats/i386/x32.dat: Likewise.
8301 2012-04-10 Tristan Gingold <gingold@adacore.com>
8303 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8304 code to kill the inferior.
8306 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8308 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8310 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8312 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8313 (yyvsp): New defines.
8314 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8316 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8318 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8320 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8322 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8325 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8327 * sparc64-tdep.c (sparc64_store_arguments)
8328 (sparc64_store_arguments): Fix coding style.
8330 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8332 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8333 complex floats, adjust some related comments and tighten a related
8335 (sparc64_extract_return_value): Handle complex floats.
8337 2012-04-07 Doug Evans <dje@google.com>
8339 * dwarf2read.c (load_partial_dies): Change condition to assert.
8341 2012-04-06 Doug Evans <dje@google.com>
8343 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8346 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8348 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8350 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8351 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8354 2012-04-05 Keith Seitz <keiths@redhat.com>
8356 * linespec.c (decode_compound): Remove.
8357 (enum offset_relative_sign): New enum.
8358 (struct line_offset): New struct.
8359 (struct linespec): New struct.
8360 (struct linespec_state): Move file_symtabs,
8361 user_filename, and user_function into struct linespec.
8362 Make result an anonymous struct holding vectors of
8363 symbolp and minsym_and_objfile_d.
8364 Add language member.
8365 (enum ls_token_type): New enum.
8366 (linespec_keywords): New array.
8367 (struct ls_token): New struct.
8368 (struct ls_parser): New struct.
8369 (linespec_lexer_lex_number): New function.
8370 (linespec_lexer_lex_keyword): New function.
8371 (is_ada_operator): New function.
8372 (skip_quote_char): New function.
8373 (copy_token_string): New function.
8374 (is_closing_quote_enclosed): New function.
8375 (find_parameter_list_end): New function.
8376 (linespec_lexer_lex_string): New function.
8377 (linespec_lexer_lex_one): New function.
8378 (linespec_lexer_consume_token): New function.
8379 (linespec_lexer_peek_token): New function.
8380 (cplusplus_error): Remove unused function.
8381 (find_methods): Update comment.
8382 (find_toplevel_char): Return const.
8383 (is_objc_method_format): Remove unused function.
8384 (find_toplevel_string): New function.
8385 (is_linespec_boundary): Remove.
8386 (symbol_not_found_error): New function.
8387 (find_method_overload_end): Remove function.
8388 (unexpected_linespec_error): New function.
8389 (keep_name_info): Remove.
8390 (linespec_parse_line_offset): New function.
8391 (linespec_parse_basic): New function.
8392 (canonicalize_linespec): New function.
8393 (decode_line_internal): Remove.
8394 (create_sals_line_offset): New function adapted from
8396 (convert_linespec_to_sals): New function.
8397 (parse_linespec): New function.
8398 (linespec_parser_new): New function.
8399 (linespec_state_destructor): Change parameter type to
8400 struct linespec_state *.
8401 Add language parameter.
8402 Remove freeing of moved members.
8403 (linespec_parser_delete): New function.
8404 (decode_line_full): Use parse_linespec and linespec_parser_new.
8405 (decode_line_1): Likewise.
8406 (decode_indirect): Rename to ...
8407 (linespec_expression_to_pc): ... this and rewrite
8408 to simply find CORE_ADDR, storing this result for later
8410 (locate_first_half): Remove.
8411 (deocde_objc): Add parameter LS.
8412 Initialize new struct collect_info members.
8413 Handle minimal symbols, too.
8414 (decode_compound): Delete.
8415 (lookup_prefix_sym): Rewrite.
8416 (compare_msymbols): New function.
8417 (find_method): Rewrite.
8418 Do not call cplusplus_error.
8419 (symtabs_from_filename): Rewrite.
8420 (collect_function_symbols): Delete.
8421 (find_function_symbols): Rewrite without ARGPTR-style
8423 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8424 (decode_dollar): Adapted and renamed to ...
8425 (linespec_parse_variable): ... this.
8426 (find_linespec_symbols): New function.
8427 (decode_label): Adapted and renamed to ...
8428 (find_label_symbols): ... this.
8429 (decode_digits_list_mode): Add and use LS argument.
8430 (decode_digits_ordinary): Likewise.
8431 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8432 If in list mode, allow any symbol class. Otherwise, only
8433 permit LOC_BLOCK symbols.
8434 (minsym_found): Update comments.
8435 (search_minsyms_for_name): Do not convert the matching symbol
8436 into a SAL. Simply push the symbol and objfile into the
8438 (decode_variable): Delete. Contents adapted into
8439 find_linespec_symbols.
8441 * cp-support.c (SKIP_SPACE): Remove.
8442 (operator_tokens): Remove unused global.
8443 (cp_validate_operator): Remove.
8444 * cp-support.h (cp_validate_operator): Remove declaration.
8446 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8448 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8449 for TYPE_VPTR_FIELDNO.
8450 * valprint.c (valprint_check_validity): Make it global, move the
8451 function comment ...
8452 * value.h (valprint_check_validity): ... to this new declaration.
8454 2012-04-02 Tristan Gingold <gingold@adacore.com>
8456 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8457 the STATE32 api for i386 state.
8458 (i386_darwin_store_inferior_registers): Likewise.
8460 2012-04-02 Tristan Gingold <gingold@adacore.com>
8462 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8464 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8467 2012-04-02 Tristan Gingold <gingold@adacore.com>
8470 * darwin-nat.c (darwin_execvp): Set binary preference.
8472 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8474 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8476 2012-03-30 Tom Tromey <tromey@redhat.com>
8478 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8479 of TRY_CATCH. Fix error handling.
8480 * python/py-value.c (convert_value_from_python): Move 'old'
8481 declaration to innermost scope.
8483 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8484 Andrey Smirnov <andrew.smirnov@gmail.com>
8486 -Wshadow warning fix.
8487 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8488 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8489 Adjust code accordingly.
8491 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8493 * ada-lang.c (symbol_completion_add): Rename parameter
8494 "encoded" into "encoded_p". Ajust code and documentation
8497 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8498 Andrey Smirnov <andrew.smirnov@gmail.com>
8500 -Wshadow warning fix.
8501 * ada-lang.c (symbol_completion_add): Rename parameter
8502 "wild_match" into wild_match_p. Update code and documentation
8505 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8507 * ada-lang.c (symbol_completion_match): Rename parameter
8508 "encoded" into "encoded_p". Ajust code and documentation
8511 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8512 Andrey Smirnov <andrew.smirnov@gmail.com>
8514 -Wshadow warning fix.
8515 * ada-lang.c (symbol_completion_match): Rename parameter
8516 "wild_match" into "wild_match_p". Adjust code and function
8517 documentation accordingly.
8519 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8520 Andrey Smirnov <andrew.smirnov@gmail.com>
8522 -Wshadow warning fix.
8523 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8524 "symbol_info" into "info". Adjust code accordingly.
8525 (ada_lookup_symbol): Likewise.
8527 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8529 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8530 of this function's documentation.
8532 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8533 Andrey Smirnov <andrew.smirnov@gmail.com>
8535 -Wshadow warning fix.
8536 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8537 variable into "wild_match_p". Adjust code accordingly.
8539 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8540 Andrey Smirnov <andrew.smirnov@gmail.com>
8542 -Wshadow warning fix.
8543 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8544 parameter into "wild_match_p". Adjust code accordingly.
8545 Document this parameter in the function description.
8547 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8548 Andrey Smirnov <andrew.smirnov@gmail.com>
8550 -Wshadow warning fix.
8551 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8552 "wild_match" parameter to "wild_match_p" (-Wshadow).
8554 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8556 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8557 in function documentation.
8559 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8560 Andrey Smirnov <andrew.smirnov@gmail.com>
8562 -Wshadow warning fix.
8563 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8564 variable into wild_match_p. Adjust code accordingly.
8566 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8567 Andrey Smirnov <andrew.smirnov@gmail.com>
8569 * ada-valprint.c (ada_val_print_1): Move the code handling
8570 TYPE_CODE_ENUM inside its own lexical block. Declare
8571 variables len and val there, instead of in the function's
8572 top level block. Avoid declaring deref_val again in a way
8573 that shadows another variable of the same name declared
8574 in one of the up-level blocks. Just re-use the up-level
8577 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8579 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8580 Replace block_found argument by symbol_info. Adjust
8581 implementation accordingly. Add function documentation.
8582 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8584 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8585 * ada-exp.y (write_object_renaming): Adjust to new
8586 ada_lookup_encoded_symbol API.
8588 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8590 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8593 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8595 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8596 (v850_register_name): Add the mpu and fpu register names.
8597 (v850e_register_name): Add the mpu and fpu register names.
8598 (v850e2_register_name): New function.
8599 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8602 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8604 * NEWS: Add entry for Ada varobj support.
8606 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8608 * varobj.c (default_value_is_changeable_p): New function,
8609 extracted from varobj_value_is_changeable_p. Add declaration.
8610 (ada_value_is_changeable_p): New function, extracted from
8611 varobj_value_is_changeable_p. Add declaration.
8612 (struct language_specific): New field "value_is_changeable_p".
8613 (languages): Add entries for new field.
8614 (varobj_create): Set language before calling install_new_value.
8615 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8616 "value_is_changeable_p" language callback.
8618 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8620 * ada-varobj.h, ada-varobj.c: New files.
8621 * Makefile.in (SFILES): Add ada-varobj.c.
8622 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8623 (COMMON_OBS): Add ada-varobj.o.
8625 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8627 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8628 (struct language_specific): New field "value_has_mutated".
8629 (languages): Set field "value_has_mutated" in each entry of array.
8630 (varobj_value_has_mutated): New function.
8631 (varobj_udpdate): Add handling of type mutation.
8632 (value_of_root): Add handling of type mutation.
8633 (ada_value_has_mutated): New function.
8635 2012-03-28 Pedro Alves <palves@redhat.com>
8637 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8638 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8640 2012-03-28 Tom Tromey <tromey@redhat.com>
8642 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8643 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8646 2012-03-28 Tom Tromey <tromey@redhat.com>
8648 * .dir-locals.el: New file.
8650 2012-03-28 Pedro Alves <palves@redhat.com>
8652 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8654 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8656 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8659 2012-03-27 Pedro Alves <palves@redhat.com>
8661 Eliminate struct ui_stream.
8663 * ui-out.h (struct ui_stream): Delete.
8664 (ui_out_field_stream): Adjust prototype.
8665 (ui_out_stream_new, ui_out_stream_delete)
8666 (make_cleanup_ui_out_stream_delete): Delete declarations.
8667 * ui-out.c (ui_out_field_stream): Change prototype to take a
8668 ui_file instead of a ui_stream. Adjust.
8669 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8670 (make_cleanup_ui_out_stream_delete): Delete.
8671 * breakpoint.c (print_breakpoint_location)
8672 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8673 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8674 * disasm.c (dump_insns): Ditto.
8675 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8677 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8678 ui_stream/ui_out_stream_new.
8679 * infcmd.c (print_return_value): Ditto.
8680 * osdata.c (info_osdata_command): Don't allocate a local
8682 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8683 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8684 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8685 allocate a local ui_stream.
8686 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8687 instead of ui_stream/ui_out_stream_new.
8688 (list_args_or_locals): Don't allocate a local ui_stream.
8689 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8690 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8691 ui_stream/ui_out_stream_new.
8692 * cli/cli-setshow.c (do_setshow_command): Ditto.
8694 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8696 * arm-linux-tdep.c (arm_linux_init_abi): Call
8697 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8698 * arm-tdep.c (arm_process_record): New function.
8699 (deallocate_reg_mem): New function.
8700 (decode_insn): New function.
8701 (thumb_record_branch): New function.
8702 (thumb_record_ldm_stm_swi(): New function.
8703 (thumb_record_misc): New function.
8704 (thumb_record_ld_st_stack): New function.
8705 (thumb_record_ld_st_imm_offset): New function.
8706 (thumb_record_ld_st_reg_offset(): New function.
8707 (thumb_record_add_sub_cmp_mov): New function.
8708 (thumb_record_shift_add_sub): New function.
8709 (arm_record_coproc_data_proc): New function.
8710 (arm_record_coproc): New function.
8711 (arm_record_b_bl): New function.
8712 (arm_record_ld_st_multiple): New function.
8713 (arm_record_ld_st_reg_offset): New function.
8714 (arm_record_ld_st_imm_offset): New function.
8715 (arm_record_data_proc_imm): New function.
8716 (arm_record_data_proc_misc_ld_str): New function.
8717 (arm_record_extension_space): New function.
8718 (arm_record_strx): New function.
8719 (sbo_sbz): New function.
8720 (struct insn_decode_record): New structure for arm insn record.
8721 (REG_ALLOC): New macro for reg allocations.
8722 (MEM_ALLOC): New macro for memory allocations.
8723 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8725 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8727 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8728 (store_register): Likewise.
8730 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8732 * MAINTAINERS (Write After Approval): Add myself to the list.
8734 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8736 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8737 Describe also the option "auto".
8739 2012-03-22 Richard Henderson <rth@redhat.com>
8741 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8742 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8744 2012-03-22 Richard Henderson <rth@redhat.com>
8746 * jit.c (jit_read_code_entry): Compute alignment and offset of
8747 int64_t member before computing entry_size.
8749 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8751 Python scripting: Add new method Value.referenced_value to
8752 gdb.Value which can dereference pointer as well as reference
8754 * NEWS: Add entry under 'Python scripting' about the new method
8755 Value.referenced_value on gdb.Value objects.
8756 * python/py-value.c (valpy_referenced_value): New function
8757 defining a new method on gdb.Value objects which can dereference
8758 pointer and reference values.
8760 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8762 * MAINTAINERS (Write After Approval): Add myself to the list.
8764 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8766 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8767 in addition to "main".
8769 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8771 * expression.h (op_name): Add declaration.
8772 * expprint.c (op_name): Remove declaration. Make non-static.
8773 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8775 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8777 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8779 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8780 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8781 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8782 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8783 (linux_nat_get_siginfo): Likewise.
8784 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8785 (linux_nat_get_siginfo): Likewise.
8786 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8787 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8788 * procfs.c (gdb_siginfo_t): Likewise.
8790 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8792 * .gitignore: Ignore more files.
8794 2012-03-20 Pedro Alves <palves@redhat.com>
8796 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8799 2012-03-20 Yao Qi <yao@codesourcery.com>
8801 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8804 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8806 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8807 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8808 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8810 * dwarf2expr.h (cu_offset, sect_offset): New types.
8811 (struct dwarf_expr_context_funcs) <dwarf_call>
8812 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8814 (struct dwarf_expr_context) <len>: Improve the comment.
8815 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8816 cu_offset and sect_offset.
8817 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8818 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8819 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8820 * dwarf2loc.h: Include dwarf2expr.h.
8821 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8823 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8824 Improve the comment.
8825 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8826 (struct signatured_type, struct line_header, struct partial_die_info)
8827 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8828 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8829 (get_die_type_at_offset, create_cus_from_index)
8830 (create_signatured_type_table_from_index, dw2_get_file_names)
8831 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8832 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8833 (create_debug_types_hash_table, process_psymtab_comp_unit)
8834 (load_partial_comp_unit, create_all_comp_units)
8835 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8836 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8837 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8838 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8839 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8840 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8841 (find_partial_die, read_attribute_value, lookup_die_type)
8842 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8843 (is_ref_attr): New function comment.
8844 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8845 Use cu_offset and sect_offset.
8846 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8847 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8848 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8849 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8850 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8851 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8852 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8855 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8858 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8859 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8861 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8863 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8865 * NEWS: Describe new options --init-command=FILE, -ix and
8866 --init-eval-command=COMMAND, -iex.
8867 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8868 CMDARG_INIT_COMMAND.
8869 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8870 "init-command", "init-eval-command", "ix" and "iex" to the variable
8871 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8872 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8873 (print_gdb_help): Describe --init-command=FILE, -ix and
8874 --init-eval-command=COMMAND, -iex.
8876 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8879 * main.c (struct cmdarg): Move it here from main. Add more comments.
8880 (cmdarg_s, VEC (cmdarg_s)): New.
8881 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8882 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8883 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8884 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8887 2012-03-19 Tom Tromey <tromey@redhat.com>
8889 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8891 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8894 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8897 2012-03-16 Chris January <chris.january@allinea.com>
8899 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8902 2012-03-16 Chris January <chris.january@allinea.com>
8904 * source.c (add_path): Use memmove instead of strcpy because the
8907 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8909 * value.h (set_value_parent): Add declaration.
8910 * value.c (set_value_parent): New function.
8911 (value_address): If VALUE->PARENT is not NULL, then use it as
8912 the base address instead of VALUE->LOCATION.address.
8913 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8914 the same as OBJ's address. Adjust V's offset accordingly.
8917 2012-03-16 Gary Benson <gbenson@redhat.com>
8919 PR breakpoints/10738
8920 * dwarf2read.c (use_deprecated_index_sections): New global.
8921 (struct partial_die_info): New member may_be_inlined.
8922 (read_partial_die): Set may_be_inlined where appropriate.
8923 (add_partial_subprogram): Add partial symbols for partial
8924 DIEs that may be inlined.
8925 (new_symbol_full): Add inlined subroutines to the current
8927 (write_psymtabs_to_index): Bump version number.
8928 (dwarf2_read_index): Read only version 6 indices unless
8929 use_deprecated_index_sections is set.
8930 * linespec.c (symbol_and_data_callback): New structure.
8931 (iterate_inline_only): New function.
8932 (iterate_over_all_matching_symtabs): New argument
8933 "include_inline". If nonzero, also call the callback for
8934 symbols representing inlined subroutines.
8935 (lookup_prefix_sym): Pass extra argument to the above.
8936 (find_function_symbols): Likewise.
8937 (add_matching_symbols_to_info): Likewise.
8938 * NEWS: Mention that GDB can now set breakpoints on inlined
8941 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8943 * p-typeprint.c (pascal_type_print_method_args):
8944 Fix display of parameter of methods.
8946 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8948 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8949 Add missing prototype.
8951 2012-03-16 Yao Qi <yao@codesourcery.com>
8952 Jan Kratochvil <jan.kratochvil@redhat.com>
8954 Fix false compilation warning.
8955 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8957 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8958 Pedro Alves <pedro@codesourcery.com>
8960 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8961 (arm_register_g_packet_guesses): New function.
8962 (arm_gdbarch_init): Don't force a target description with
8963 registers when the executable is detected as M-profile. Instead
8964 set gdbarch->tdep->is_m. Register `g' packet guesses.
8965 (_initialize_arm_tdep): Initialize the new target description.
8966 * features/arm-with-m-fpa-layout.xml: New description.
8967 * features/arm-with-m-fpa-layout.c: New, generated.
8969 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8971 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8972 Update function description.
8973 (insert_bp_location): Do not wipe bl->target_info out.
8974 * mem-break.c: #include "gdb_string.h".
8975 (default_memory_insert_breakpoint): Do not call target_read_memory
8976 with a pointer to the breakpoint's shadow_contents buffer. Use
8977 a local buffer instead.
8978 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8980 2012-03-15 Tom Tromey <tromey@redhat.com>
8982 * NEWS: Mention "info vtbl", not "info vtable".
8983 * cp-support.c (info_vtbl_command): Fix comment.
8984 (_initialize_cp_support): Fix text.
8986 2012-03-15 Tom Tromey <tromey@redhat.com>
8988 * cp-valprint.c (cp_print_value_fields): Use
8989 print_function_pointer_address for vtable slot.
8991 2012-03-15 Tom Tromey <tromey@redhat.com>
8993 * gnu-v3-abi.c (struct value_and_voffset): New.
8994 (hash_value_and_voffset, eq_value_and_voffset)
8995 (compare_value_and_voffset, compute_vtable_size)
8996 (print_one_vtable, gnuv3_print_vtable): New functions.
8997 (init_gnuv3_ops): Initialize 'print_vtable' field.
8998 * cp-support.c (info_vtbl_command): New function.
8999 (_initialize_cp_support): Add "info vtbl".
9000 * cp-abi.h (cplus_print_vtable): Declare.
9001 (struct cp_abi_ops) <print_vtable>: New field.
9002 * cp-abi.c (cplus_print_vtable): New function.
9005 2012-03-15 Tom Tromey <tromey@redhat.com>
9007 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9008 iterate_over_symbols.
9010 2012-03-14 Doug Evans <dje@google.com>
9012 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9013 DW_OP_GNU_parameter_ref.
9015 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9017 Fix double prompt of 'interpreter-exec mi'.
9018 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9019 (mi_interpreter_resume): use it.
9020 (mi_execute_command_input_handler): New function.
9021 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9022 mi_execute_command_input_handler.
9024 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9026 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9028 (darwin_debug_port_info): Make static.
9029 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9030 * machoread.c (_initialize_machoread): Add prototype.
9031 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9032 (i386_darwin_set_control, i386_darwin_get_control)
9033 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9034 i386_darwin_get_status, i386_darwin_get_control):
9035 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9037 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9039 * ax-gdb.c (gen_usual_unary): Remove special handling of
9040 enum and bool types.
9042 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9044 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9046 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9048 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9050 2012-03-13 Chris January <chris.january@allinea.com>
9052 * aix-thread.c (fill_sprs): Store the floating point registers
9053 at the correct offsets into vals.
9055 2012-03-13 Doug Evans <dje@google.com>
9057 * NEWS: Mention symbol-reloading has been deleted.
9058 * symfile.c (symbol_reloading): Delete.
9059 (show_symbol_reloading): Delete.
9060 (_initialize_symfile): Delete set/show symbol-reloading.
9062 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9063 read_in_chain until we have successfully read it in.
9064 (load_full_comp_unit): Ditto.
9065 (read_signatured_type): Add comment.
9067 2012-03-13 Chris January <chris.january@allinea.com>
9069 * stabsread.c (fix_common_block): Change type of valu argument
9072 2012-03-13 Chris January <chris.january@allinea.com>
9074 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9077 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9079 * common/linux-procfs.c (linux_proc_get_int): New, from
9080 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9082 (linux_proc_get_tgid): Only call linux_proc_get_int.
9083 (linux_proc_get_tracerpid): New.
9084 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9085 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9086 linux_proc_pid_has_state.
9087 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9088 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9089 (linux_ptrace_attach_warnings): New.
9090 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9092 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9093 (linux_nat_attach): New variables ex, buffer, message and message_s.
9094 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9096 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9098 * Makefile.in (linux-ptrace.o): New.
9099 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9101 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9102 * common/linux-ptrace.c: New file.
9103 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9104 * config/arm/linux.mh: Likewise.
9105 * config/i386/linux.mh: Likewise.
9106 * config/i386/linux64.mh: Likewise.
9107 * config/ia64/linux.mh: Likewise.
9108 * config/m32r/linux.mh: Likewise.
9109 * config/m68k/linux.mh: Likewise.
9110 * config/mips/linux.mh: Likewise.
9111 * config/pa/linux.mh: Likewise.
9112 * config/powerpc/linux.mh: Likewise.
9113 * config/powerpc/ppc64-linux.mh: Likewise.
9114 * config/powerpc/spu-linux.mh: Likewise.
9115 * config/s390/s390.mh: Likewise.
9116 * config/sparc/linux.mh: Likewise.
9117 * config/sparc/linux64.mh: Likewise.
9118 * config/xtensa/linux.mh: Likewise.
9119 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9120 common/linux-procfs.c.
9121 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9123 2012-03-13 Hui Zhu <teawater@gmail.com>
9124 Pedro Alves <palves@redhat.com>
9126 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9127 CREATE_BREAKPOINT_FLAGS_INSERTED.
9128 (create_breakpoint_sal, create_breakpoints_sal)
9129 (base_breakpoint_create_breakpoints_sal)
9130 (tracepoint_create_breakpoints_sal)
9131 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9133 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9134 (ftrace_command, strace_command): Adjust.
9135 (create_tracepoint_from_upload): Pass
9136 CREATE_BREAKPOINT_FLAGS_INSERTED.
9137 * breakpoint.h (enum breakpoint_create_flags): New.
9138 (create_breakpoint): New flags parameter.
9139 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9140 * python/py-breakpoint.c (bppy_init): Adjust.
9141 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9142 * spu-tdep.c (spu_catch_start): Adjust.
9144 2012-03-13 Pedro Alves <palves@redhat.com>
9145 Hui Zhu <teawater@gmail.com>
9146 Yao Qi <yao@codesourcery.com>
9148 * remote.c (struct remote_state): New field `starting_up'.
9149 (remote_start_remote): Set and clear it.
9150 (remote_can_download_tracepoint): If starting up, return false.
9152 2012-03-13 Yao Qi <yao@codesourcery.com>
9154 * inferior.h (struct inferior): Remove fields any_syscall_count,
9155 syscalls_counts and total_syscalls_count. Move them to new
9156 struct catch_syscall_inferior_data in breakpoint.c.
9157 * breakpoint.c: Call DEF_VEC_I(int).
9158 (struct catch_syscall_inferior_data): New.
9159 (get_catch_syscall_inferior_data): New.
9160 (catch_syscall_inferior_data_cleanup): New.
9161 (insert_catch_syscall): Update to access data in
9162 struct catch_syscall_inferior_data.
9163 (insert_catch_syscall): Likewise.
9164 (remove_catch_syscall): Likewise.
9165 (remove_catch_syscall): Likewise.
9166 (is_syscall_catchpoint_enabled): Likewise.
9167 (add_catch_command): Likewise.
9168 (_initialize_breakpoint): Register cleanup.
9169 * breakpoint.h: Removed DEF_VEC_I(int).
9170 * dwarf2loc.c: Call DEF_VEC_I(int).
9171 * mi/mi-main.c: Likewise.
9173 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9175 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9177 2012-03-12 Chris January <chris.january@allinea.com>
9179 * aix-thread.c (_initialize_aix_thread): Add prototype.
9180 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9181 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9183 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9185 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9186 include of "amd64-nat.h".
9188 2012-03-12 Tom Tromey <tromey@redhat.com>
9190 * buildsym.c (record_pending_block): Now static.
9191 * buildsym.h: (record_pending_block): Remove.
9193 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9195 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9197 2012-03-09 Tom Tromey <tromey@redhat.com>
9199 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9200 producer_is_gxx_lt_4_6>: New fields.
9201 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9203 2012-03-09 Tom Tromey <tromey@redhat.com>
9205 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9207 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9209 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9212 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9214 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9216 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9218 Fix -Wmissing-prototypes build.
9219 * arm-linux-nat.c (get_thread_id): Make it static.
9220 * xtensa-linux-nat.c (get_thread_id): Likewise.
9222 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9224 * server.c (process_point_options): If a conditional expression
9225 is found, only print a message if remote_debug is nonzero.
9227 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9229 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9230 of internal error for unknown/unsupported types.
9232 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9234 Fix CU relative vs. absolute DIE offsets.
9235 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9236 offset to offset_in_cu.
9237 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9239 (dwarf2_fetch_die_location_block): Rename parameter offset to
9240 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9242 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9244 * libunwind-frame.c: Rename to ...
9245 * ia64-libunwind-tdep.c: ... here.
9246 * libunwind-frame.h: Rename to ...
9247 * ia64-libunwind-tdep.h: ... here.
9248 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9249 ia64-libunwind-tdep.h.
9250 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9251 * README (--with-libunwind): Rename to ...
9252 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9253 * config.in: Regenerate.
9254 * configure: Regenerate.
9255 * configure.ac: New option --with-libunwind-ia64, make the
9256 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9257 Remove AC_DEFINE for HAVE_LIBUNWIND.
9258 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9259 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9260 Rename libunwind-frame in the general comment.
9261 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9262 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9263 Move forward declarations inside #ifndef. Rename libunwind-frame in
9264 the general comment.
9265 * ia64-tdep.c: Rename libunwind-frame.h #include to
9266 ia64-libunwind-tdep.h.
9267 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9268 (ia64_libunwind_descr): Rename libunwind-frame to
9269 ia64-libunwind-tdep in these function comments.
9270 * ia64-tdep.h: Rename libunwind-frame.h #include to
9271 ia64-libunwind-tdep.h.
9272 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9273 ia64-libunwind-tdep in that data comment.
9275 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9277 * libunwind-frame.h (struct frame_unwind): New declaration.
9279 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9281 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9282 "set breakpoint condition-evaluation" command.
9284 2012-03-08 Tristan Gingold <gingold@adacore.com>
9286 * sparc-stub.c: Move to stubs/
9287 * sh-stub.c: Likewise.
9288 * m68k-stub.c: Likewise.
9289 * m32r-stub.c: Likewise.
9290 * i386-stub.c: Likewise.
9292 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9294 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9295 linux_get_siginfo_type.
9297 * m68klinux-nat.c: Include "gdb_proc_service.h".
9298 (PTRACE_GET_THREAD_AREA): Define.
9299 (ps_get_thread_area): New function.
9301 2012-03-08 Yao Qi <yao@codesourcery.com>
9303 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9305 (remote_query_attached): Likewise.
9306 (remote_static_tracepoint_marker_at): Likewise.
9307 (remote_set_permissions): Likewise.
9308 (remote_detach_1, extended_remote_attach_1): Likewise.
9309 (send_g_packet, remote_vkill): Likewise.
9310 (extended_remote_disable_randomization): Likewise.
9311 (remote_add_target_side_condition): Likewise.
9312 (remote_insert_breakpoint): Likewise.
9313 (remote_remove_breakpoint): Likewise.
9314 (remote_insert_watchpoint): Likewise.
9315 (remote_remove_watchpoint): Likewise.
9316 (remote_insert_hw_breakpoint): Likewise.
9317 (remote_insert_hw_breakpoint): Likewise.
9318 (remote_remove_hw_breakpoint): Likewise.
9319 (remote_download_command_source): Likewise.
9320 (remote_download_tracepoint): Likewise.
9321 (remote_download_trace_state_variable): Likewise.
9322 (remote_disable_tracepoint): Likewise.
9323 (remote_trace_set_readonly_regions): Likewise.
9324 (remote_get_tracepoint_status): Likewise.
9325 (remote_trace_find): Likewise.
9326 (remote_get_trace_state_variable_value): Likewise.
9327 (remote_set_disconnected_tracing): Likewise.
9328 (remote_set_circular_trace_buffer): Likewise.
9329 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9330 (remote_use_agent): Likewise.
9331 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9334 2012-03-07 Pedro Alves <palves@redhat.com>
9336 * NEWS: Mention QProgramSignals.
9337 * inferior.h (update_signals_program_target): Declare.
9338 * infrun.c: (update_signals_program_target): New.
9339 (handle_command): Update the target of the new program signals
9341 * remote.c (PACKET_QProgramSignals): New enum.
9342 (last_program_signals_packet): New global.
9343 (remote_program_signals): New.
9344 (remote_start_remote): Update the target with the program signals
9346 (remote_protocol_features): Add entry for QPassSignals.
9347 (remote_open_1): Free anc clear last_program_signals_packet.
9348 (init_remote_ops): Install remote_program_signals.
9349 * target.c (update_current_target): Adjust.
9350 (target_program_signals): New.
9351 * target.h (struct target_ops) <to_program_signals>: New field.
9352 (target_program_signals): Declare.
9354 2012-03-07 Pedro Alves <palves@redhat.com>
9356 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9359 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9361 * m68klinux-nat.c (getregs_supplies): Make static.
9362 (getfpregs_supplies): Likewise.
9363 (have_ptrace_getregs): Likewise.
9365 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9367 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9368 in call to get_die_type_at_offset.
9370 2012-03-06 Stan Shebs <stan@codesourcery.com>
9372 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9373 * mi/mi-cmd-disas.c: Ditto.
9374 * mi/mi-cmd-env.c: Ditto.
9375 * mi/mi-cmd-file.c: Ditto.
9376 * mi/mi-cmd-stack.c: Ditto.
9377 * mi/mi-cmd-target.c: Ditto.
9378 * mi/mi-cmd-var.c: Ditto.
9379 * mi/mi-cmds.c: Ditto.
9380 * mi/mi-cmds.h: Ditto.
9381 * mi/mi-console.c: Ditto.
9382 * mi/mi-getopt.c: Ditto.
9383 * mi/mi-getopt.h: Ditto.
9384 * mi/mi-interp.c: Ditto.
9385 * mi/mi-main.c: Ditto.
9386 * mi/mi-out.c: Ditto.
9387 * mi/mi-parse.c: Ditto.
9388 * mi/mi-parse.h: Ditto.
9389 * mi/mi-symbol-cmds.c: Ditto.
9391 * mi/mi-getopt.h: Move mi_opt struct up.
9392 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9394 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9396 2012-03-06 Tom Tromey <tromey@redhat.com>
9398 * proc-service.c (ps_pglobal_lookup): Set the current program
9401 2012-03-06 Pedro Alves <palves@redhat.com>
9403 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9405 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9407 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9409 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9412 * common/linux-osdata.c (linux_common_core_of_thread): New function
9414 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9415 call by linux_common_core_of_thread.
9416 (linux_nat_core_of_thread_1): Remove.
9417 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9418 * linux-thread-db.c: Include linux-osdata.h.
9419 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9420 linux_common_core_of_thread.
9422 2012-03-05 Tom Tromey <tromey@redhat.com>
9424 * value.c (value_primitive_field): Don't fetch contents for
9427 2012-03-05 Tom Tromey <tromey@redhat.com>
9429 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9431 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9433 * s390-nat.c: Include "gregset.h".
9435 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9437 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9438 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9439 (libunwind_load): New variable so_error, use it for dlerror. Try to
9440 load also LIBUNWIND_SO_7.
9442 2012-03-05 Pedro Alves <palves@redhat.com>
9444 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9445 is not NULL, and remove resulting dead code.
9447 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9449 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9450 prologue to sh_analyze_prologue.
9451 (sh_analyze_prologue): Make better use of such an upper limit, and
9452 generally be more cautious about accessing memory.
9454 2012-03-05 Tom Tromey <tromey@redhat.com>
9456 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9457 _initialize_ia64_hpux_tdep.
9459 2012-03-05 Pedro Alves <palves@redhat.com>
9463 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9464 the register state is clear, supply explicit zero, instead of
9465 marking the register unavailable.
9467 2012-03-05 Tristan Gingold <gingold@adacore.com>
9469 * NEWS: Mention OpenVMS ia64 new target.
9471 2012-03-05 Tristan Gingold <gingold@adacore.com>
9473 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9474 (ia64_unw_accessors, ia64_unw_rse_accessors)
9475 (ia64_libunwind_descr): Declare.
9476 * ia64-vms-tdep.c: New file.
9477 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9478 (ia64_libunwind_descr): Make them public.
9479 * configure.tgt: Add ia64-*-*vms*.
9480 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9481 (ALLDEPFILES): Add ia64-vms-tdep.c
9483 2012-03-05 Tristan Gingold <gingold@adacore.com>
9485 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9486 * remote.c (PACKET_qXfer_uib): New enum value.
9487 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9488 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9489 (_initialize_remote): Call add_packet_config_cmd for
9492 2012-03-05 Tristan Gingold <gingold@adacore.com>
9494 * osabi.c (gdb_osabi_names): Add OpenVMS.
9495 (generic_elf_osabi_sniffer): Likewise.
9496 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9498 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9500 Removed unused code.
9501 * libunwind-frame.c (libunwind_frame_unwind)
9502 (libunwind_frame_base_address): Remove.
9503 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9505 2012-03-04 Yao Qi <yao@codesourcery.com>
9507 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9508 remove trailing new line.
9509 (agent_run_command, agent_run_command): Add _ markup.
9510 (agent_capability_check): Likewise.
9512 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9514 * breakpoint.c (set_condition_evaluation_mode): Set
9515 CONDITION_EVALUATION_MODE unconditionally.
9517 2012-03-03 Yao Qi <yao@codesourcery.com>
9519 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9520 * common/agent.h: Update declaration.
9521 * inf-child.c (inf_child_use_agent): New.
9522 (inf_child_can_use_agent): New.
9523 (inf_child_target): Initialize fields `to_use_agent'
9524 and `to_can_use_agent'.
9525 * agent.c (agent_new_objfile): New.
9526 (_initialize_agent): Add agent_new_objfile to new_objfile
9529 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9531 (linux_target_install_ops): Initialize field
9532 `to_static_tracepoint_markers_by_strid'.
9533 * remote.c (free_current_marker): Move it to ...
9534 * tracepoint.c (free_current_marker): ... here. New.
9535 (cleanup_target_stop): New.
9536 * tracepoint.h: Declare free_current_marker.
9537 * NEWS: Add one entry about `info static-tracepoint-marker'.
9539 2012-03-03 Yao Qi <yao@codesourcery.com>
9541 * common/agent.c (agent_loaded_p): New.
9542 (agent_look_up_symbols): New global.
9543 * common/agent.h: Declare agent_loaded_p.
9545 2012-03-03 Yao Qi <yao@codesourcery.com>
9547 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9548 (agent_capability_check, agent_capability_invalidate): New.
9549 (symbol_list): New array element.
9550 * common/agent.h (enum agent_capa): New.
9551 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9553 2012-03-03 Yao Qi <yao@codesourcery.com>
9555 * target.h (struct target_ops) <to_use_agent>: New field.
9556 (struct target_ops) <to_can_use_agent>: New field.
9557 (target_use_agent, target_can_use_agent): New macro.
9558 * target.c (update_current_target): Update.
9559 * remote.c: New enum `PACKET_QAgent'.
9560 (remote_protocol_features): Add a new element.
9561 (remote_use_agent, remote_can_use_agent): New.
9562 (init_remote_ops): Initialize field `can_use_agent' with
9563 remote_can_use_agent. Intiailize field `use_agent' with
9565 * common/agent.c (use_agent): New global.
9566 * common/agent.h: Declare it.
9567 * tracepoint.c (info_static_tracepoint_markers_command): Add
9569 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9570 (COMMON_OBS): Add common/agent.o and agent.o
9571 (common-agent.o): New rule.
9574 2012-03-03 Yao Qi <yao@codesourcery.com>
9576 * common/agent.c: New.
9577 * common/agent.h: New.
9578 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9580 * configure, configh.in: Regenerated.
9582 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9584 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9585 unless it exists for this architecture.
9587 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9589 * language.h (struct language_defn): New "method" la_read_var_value.
9590 * findvar.c: #include "language.h".
9591 (default_read_var_value): Renames read_var_value. Rewrite
9592 function description.
9593 (read_var_value): New function.
9594 * value.h (default_read_var_value): Add prototype.
9595 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9597 (ada_language_defn): Add entry for la_read_var_value.
9598 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9599 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9600 language_defn structures to add entry for new la_read_var_value
9603 2012-03-02 Tom Tromey <tromey@redhat.com>
9604 Pedro Alves <palves@redhat.com>
9606 PR breakpoints/13776:
9607 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9609 (delete_longjmp_breakpoint_at_next_stop): New.
9610 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9611 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9612 before deleting the inferior. Add comments.
9613 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9614 breakpoints immediately, but only on next stop. Move that code
9615 next to where we mark other breakpoints for deletion.
9617 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9619 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9621 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9624 2012-03-02 Pedro Alves <palves@redhat.com>
9626 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9628 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9630 Fix -Wmissing-prototypes build.
9631 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9632 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9633 (gdbsim_has_memory): Likewise.
9635 2012-03-02 Yao Qi <yao@codesourcery.com>
9637 Fix -Wmissing-prototypes build.
9638 * charset.c (phony_iconv_open): Make static.
9639 (phony_iconv_close, phony_iconv): Likewise.
9640 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9641 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9643 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9644 * ser-mingw.c (create_select_thread): Make static.
9645 * windows-termcap.c (tgetent): New prototype.
9646 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9648 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9650 Fix -Wmissing-prototypes build.
9651 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9652 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9653 (_initialize_loadable): New prototypes.
9655 2012-03-02 Doug Evans <dje@google.com>
9657 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9658 abbrev table, read_comp_unit will do it.
9660 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9662 Fix -Wmissing-prototypes build.
9663 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9664 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9665 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9666 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9667 (_initialize_arm_symbian_tdep): New prototype.
9668 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9669 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9670 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9672 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9673 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9675 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9676 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9677 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9679 * moxie-tdep.c (moxie_process_record): Likewise.
9680 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9681 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9682 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9683 (_initialize_rl78_tdep): New prototype.
9684 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9685 (_initialize_rx_tdep): New prototype.
9686 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9687 (_initialize_darwin_solib): New prototype.
9688 * solib-spu.c: Include solib-spu.h.
9689 (_initialize_spu_solib): New prototype.
9690 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9691 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9692 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9693 (tic6x_software_single_step): Make it static.
9694 (_initialize_tic6x_tdep): New prototype.
9696 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9698 Fix -Wmissing-prototypes build.
9699 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9700 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9702 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9704 Fix -Wmissing-prototypes build.
9705 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9706 (frv_have_stopped_data_address): Remove.
9708 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9710 Fix -Wmissing-prototypes build.
9711 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9712 * sh-tdep.c: Include sh64-tdep.h.
9713 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9714 * sh64-tdep.c: Include sh64-tdep.h.
9715 * sh64-tdep.h: New file.
9717 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9719 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9721 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9723 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9724 sp_regnum once the gdbarch_init_osabi hook has been called.
9726 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9728 * mips-tdep.c (mips32_bc1_pc): New function.
9729 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9730 BPOSGE32 and BPOSGE64 instructions.
9731 (deal_with_atomic_sequence): Likewise.
9732 (mips32_instruction_has_delay_slot): Likewise.
9734 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9735 Chris Dearman <chris@mips.com>
9736 Maciej W. Rozycki <macro@codesourcery.com>
9737 Joseph Myers <joseph@codesourcery.com>
9739 * features/mips-dsp.xml: New file.
9740 * features/mips64-dsp.xml: New file.
9741 * features/mips-dsp-linux.xml: New file.
9742 * features/mips64-dsp-linux.xml: New file.
9743 * features/Makefile (WHICH): Add mips-dsp-linux and
9745 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9746 * features/mips-dsp-linux.c: New file.
9747 * features/mips64-dsp-linux.c: New file.
9748 * regformats/mips-dsp-linux.dat: New file.
9749 * regformats/mips64-dsp-linux.dat: New file.
9750 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9752 (mips64_linux_register_addr): Likewise.
9753 (mips64_linux_regsets_fetch_registers): Likewise.
9754 (mips64_linux_regsets_store_registers): Likewise.
9755 (mips64_linux_fetch_registers): Update call to
9756 mips64_linux_regsets_fetch_registers.
9757 (mips64_linux_store_registers): Update call to
9758 mips64_linux_regsets_store_registers.
9759 (mips_linux_read_description): Probe for DSP registers.
9760 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9761 and initialize_tdesc_mips64_dsp_linux.
9762 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9763 Remove padding of no longer used embedded register slots.
9764 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9765 (MIPS_RESTART_REGNUM): Redefine enum value.
9766 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9768 (mips_tx39_reg_names): Likewise.
9769 (mips_linux_reg_names): New array of register names for Linux
9771 (mips_register_name): Check for a null pointer in
9772 mips_processor_reg_names and return an empty string.
9773 (mips_register_type): Exclude embedded registers for the IRIX
9775 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9776 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9778 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9779 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9780 (mips_gdbarch_init): Likewise. Initialize internal register
9781 indices for the Linux ABI. Use dynamic numbers to refer to
9782 registers, as applicable, while parsing the target description.
9783 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9785 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9787 * frame.h (read_frame_register_unsigned): Fix typo in function
9790 2012-03-01 Pedro Alves <palves@redhat.com>
9792 * jit-reader.in [!__cplusplus]
9793 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9795 2012-03-01 Pedro Alves <palves@redhat.com>
9797 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9798 * configure: Regenerate.
9800 2012-03-01 Pedro Alves <palves@redhat.com>
9802 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9803 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9804 (ftrace_command, strace_command): Make static.
9805 * d-lang.c (_initialize_d_language): Declare.
9806 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9807 * dwarf2loc.c (_initialize_dwarf2loc):
9808 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9809 * exec.c (exec_get_section_table): Make static.
9810 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9811 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9812 * inferior.c (remove_inferior_command, add_inferior_command)
9813 (clone_inferior_command): Make static.
9814 * linux-nat.c (linux_nat_thread_address_space)
9815 (linux_nat_core_of_thread): Make static.
9816 * linux-tdep.c (_initialize_linux_tdep): Declare.
9817 * objc-lang.c (_initialize_objc_lang): Declare.
9818 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9820 (_initialize_opencl_language): Declare.
9821 * record.c (_initialize_record): Declare.
9822 * remote.c (demand_private_info, remote_get_tib_address)
9823 (remote_supports_cond_tracepoints)
9824 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9826 * skip.c (_initialize_step_skip): Declare.
9827 * symtab.c (skip_prologue_using_lineinfo): Make static.
9828 * tracepoint.c (delete_trace_state_variable)
9829 (trace_variable_command, delete_trace_variable_command)
9830 (get_uploaded_tsv, find_matching_tracepoint_location)
9831 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9833 * value.c (pack_unsigned_long): Make static.
9834 * varobj.c (varobj_ensure_python_env): Make static.
9835 * windows-tdep.c (_initialize_windows_tdep): Declare.
9836 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9838 2012-03-01 Pedro Alves <palves@redhat.com>
9840 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9842 (linux_init_abi): Install it as has_shared_address_space gdbarch
9845 2012-03-01 Pedro Alves <palves@redhat.com>
9847 * observer.c (observer_test_first_notification_function)
9848 (observer_test_second_notification_function)
9849 (observer_test_third_notification_function): Add declarations.
9851 2012-03-01 Pedro Alves <palves@redhat.com>
9853 * common/signals.c (default_target_signal_to_host)
9854 (default_target_signal_from_host): Move ...
9855 * arch-utils.c: ... here.
9856 * arch-utils.h (default_target_signal_to_host)
9857 (default_target_signal_from_host): Declare.
9859 * common/signals.c (target_signal_from_command): Move ...
9860 * infrun.c: ... here.
9861 * inferior.h (target_signal_from_command): Declare.
9862 * target.h (target_signal_from_command)
9863 (default_target_signal_from_host, default_target_signal_to_host):
9864 Delete declarations.
9866 * common/signals.c (_initialize_signals): Delete.
9868 2012-03-01 Pedro Alves <palves@redhat.com>
9870 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9871 both __cplusplus and !__cplusplus.
9873 2012-03-01 Pedro Alves <palves@redhat.com>
9875 * psymtab.c (find_and_open_source): Delete declaration.
9876 * source.c (find_and_open_source): Move comment ...
9877 * source.h (find_and_open_source): ... to this new declaration.
9879 2012-03-01 Pedro Alves <palves@redhat.com>
9881 * inline-frame.c: Include inline-frame.h.
9883 2012-03-01 Pedro Alves <palves@redhat.com>
9885 * tui/tui-data.c (set_gen_win_origin): Delete.
9886 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9887 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9889 2012-03-01 Pedro Alves <palves@redhat.com>
9891 * remote.c (encode_actions): Delete declaration.
9892 * tracepoint.c (encode_actions): Make extern.
9893 * tracepoint.h (encode_actions): Declare.
9895 2012-03-01 Pedro Alves <palves@redhat.com>
9897 * python/py-breakpoint.c: Include python.h.
9898 * python/py-continueevent.c (create_continue_event_object): Make
9900 * python/py-lazy-string.c (stpy_get_type): Make static.
9901 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9903 * python/py-utils.c (unicode_to_target_python_string): Make
9905 * python/py-value.c: Include python.h.
9907 2012-03-01 Pedro Alves <palves@redhat.com>
9909 * inferior.c (delete_threads_of_inferior): Delete.
9911 2012-03-01 Pedro Alves <palves@redhat.com>
9913 Import fallback definitions from glibc.
9915 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9916 ps_prochandle): Forward declare.
9917 (ps_err_e): Use glibc's comments.
9918 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9919 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9920 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9921 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9922 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9923 (struct ps_prochandle): Adjust comment.
9925 2012-03-01 Pedro Alves <palves@redhat.com>
9927 * ada-lang.c (ada_modulus_from_name): Delete.
9928 * ada-lex.l (lexer_init): Make static.
9930 2012-03-01 Pedro Alves <palves@redhat.com>
9934 * frame.c (read_frame_register_unsigned): New.
9935 * frame.h (read_frame_register_unsigned): Declare.
9936 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9938 (print_i387_control_word): New parameter `control_p'. Handle it.
9939 (i387_print_float_info): Handle unavailable float registers.
9941 2012-03-01 Keith Seitz <keiths@redhat.com>
9943 * linespec.c (decode_line_2): Sort the list of methods
9944 alphabetically before presenting the user with a selection
9947 2012-03-01 Doug Evans <dje@google.com>
9949 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9951 (dwarf2_read_abbrevs): Remove corresponding initialization.
9953 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9955 * NEWS: Mention new python command class gdb.COMMAND_USER.
9956 * cli/cli-cmds.c (show_user): Print error when used on a python
9958 (init_cli_cmds): Update documentation strings for "show user" and
9959 "set/show max-user-call-depth" to clarify that it does not apply to
9961 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9963 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9965 * top.c (execute_command): Only execute a user-defined command as a
9966 legacy macro if c->user_commands is set.
9968 2012-03-01 Tom Tromey <tromey@redhat.com>
9970 * valprint.h (struct generic_val_print_decorations): New.
9971 (generic_val_print): Declare.
9972 * valprint.c (generic_val_print): New function.
9973 * p-valprint.c (p_decorations): New global.
9974 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9975 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9976 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9977 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9978 * m2-valprint.c (m2_decorations): New global.
9979 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9980 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9981 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9982 TYPE_CODE_ERROR>: Call generic_val_print.
9983 * f-valprint.c (f_decorations): New global.
9984 (f_val_print): Use print_function_pointer_address.
9985 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9986 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9987 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9989 * c-valprint.c (c_decorations): New global.
9990 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9991 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9992 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9993 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9994 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9995 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9998 2012-03-01 Tom Tromey <tromey@redhat.com>
10000 * valprint.c (val_print): Update.
10001 * p-valprint (pascal_val_print): Return void.
10002 * p-lang.h (pascal_val_print): Return void.
10003 * m2-valprint.c (m2_val_print): Return void.
10004 * m2-lang.h (m2_val_print): Return void.
10005 * language.h (struct language_defn) <la_val_print>: Return void.
10006 * language.c (unk_lang_val_print): Return void.
10007 * jv-valprint.c (java_val_print): Return void.
10008 * jv-lang.h (java_val_print): Return void.
10009 * f-valprint.c (f_val_print): Return void.
10010 * f-lang.h (f_val_print): Return void.
10011 * d-valprint.c (d_val_print): Return void.
10012 (dynamic_array_type): Update.
10013 * d-lang.h (d_val_print): Return void.
10014 * c-valprint.c (c_val_print): Return void.
10015 * c-lang.h (c_val_print): Return void.
10016 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10018 * ada-lang.h (ada_val_print): Return void.
10020 2012-03-01 Tom Tromey <tromey@redhat.com>
10022 * value.h (val_print): Return void.
10023 * valprint.c (val_print): Return void.
10025 2012-03-01 Tom Tromey <tromey@redhat.com>
10027 * value.h (common_val_print): Return void.
10028 * valprint.c (common_val_print): Return void.
10030 2012-03-01 Tom Tromey <tromey@redhat.com>
10032 * value.h (value_print): Return void.
10033 * valprint.c (value_print): Return void.
10034 * p-valprint.c (pascal_value_print): Return void.
10035 * p-lang.h (pascal_value_print): Return void.
10036 * language.h (struct language_defn) <la_value_print>: Return
10038 * language.c (unk_lang_value_print): Return void.
10039 * jv-valprint.c (java_value_print): Return void.
10040 * jv-lang.h (java_value_print): Return void.
10041 * f-valprint.c (c_value_print): Don't declare.
10043 * c-valprint.c (c_value_print): Return void.
10044 * c-lang.h (c_value_print): Return void.
10045 * ada-valprint.c (ada_value_print): Return void.
10046 * ada-lang.h (ada_value_print): Return void.
10048 2012-03-01 Tom Tromey <tromey@redhat.com>
10050 * value.c (value_primitive_field): Handle virtual base classes.
10052 2012-03-01 Tom Tromey <tromey@redhat.com>
10054 * gdbtypes.h (struct vbase): Remove.
10056 2012-03-01 Tom Tromey <tromey@redhat.com>
10058 * c-valprint.c (print_function_pointer_address): Move...
10059 * valprint.c: ... here. Make non-static.
10060 * m2-valprint.c (print_function_pointer_address): Remove.
10061 * valprint.h (print_function_pointer_address): Declare.
10063 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10065 * NEWS: Document the fact that one can provide a condition when
10066 creating an Ada exception catchpoint.
10068 2012-03-01 Tom Tromey <tromey@redhat.com>
10070 * valprint.c (val_print_type_code_flags): Fix placement of
10073 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10075 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10076 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10077 environment variable before calling update-copyright.
10079 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10081 * gnulib/extra/update-copyright: Update to the latest from
10082 gnulib's git repository.
10083 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10084 variable to 2 instead of 1.
10086 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10088 * varobj.c (c_value_of_variable): Remove dead code.
10090 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10092 * ada-lex.p (processId): Do not modify already encoded IDs.
10093 Update function documentation.
10095 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10097 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10098 "name" with "struct symbol *name_sym".
10099 * ada-exp.y (write_var_or_type): Update call to
10100 ada_find_renaming_symbol.
10101 "name" with "struct symbol *name_sym". Adjust Implementation
10102 accordingly. Adjust the function documentation.
10104 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10106 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10107 * ada-lang.c (ada_find_any_type): Add advance declaration.
10108 Make static. Replace ada_find_any_symbol by
10109 ada_find_any_type_symbol.
10110 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10111 Improve function description. Make static.
10112 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10113 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10115 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10117 * ada-lang.c (struct tag_args): Delete.
10118 (ada_get_tsd_type): Function body moved up in source file.
10119 (ada_tag_name_1, ada_tag_name_2): Delete.
10120 (ada_get_tsd_from_tag): New function.
10121 (ada_tag_name_from_tsd): New function.
10122 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10123 to determine the tag name.
10125 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10127 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10129 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10132 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10134 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10136 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10138 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10141 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10143 * ada-lang.c (constrained_packed_array_type): If there is a
10144 parallel XA type, use it to determine the array index type.
10146 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10148 * ada-valprint.c (ada_val_print_1): If our value is a reference
10149 to an array descriptor, dereference it before converting it
10152 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10154 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10155 creating fixed value.
10156 (ada_value_ind, ada_coerce_ref, assign_component)
10157 (ada_evaluate_subexp): Remove call to unwrap_value before
10158 call to ada_to_fixed_value.
10160 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10162 * ada-lang.c (to_fixed_array_type): Set result's type name.
10164 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10166 * ada-lang.c (catch_ada_exception_command_split): Add new
10167 argument cond_string. Add support for condition at end of
10168 "catch exception" commands.
10169 (ada_decode_exception_location): Add new argument cond_string.
10170 Update call to catch_ada_exception_command_split.
10171 (create_ada_exception_catchpoint): Add new argument cond_string.
10172 Set the breakpoint condition if needed.
10173 (catch_ada_exception_command): Update call to
10174 ada_decode_exception_location.
10175 (ada_decode_assert_location): Add function documentation.
10176 Add support for condition at end of "catch assert" command.
10177 (catch_assert_command): Update calls to ada_decode_assert_location
10178 and create_ada_exception_catchpoint.
10180 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10182 Fix disp-step-syscall.exp: fork: single step over fork.
10183 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10184 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10185 comment, change parameters gdbarch and ptid to regcache. Remove
10186 parameter regcache, initialize gdbarch from regcache here.
10187 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10189 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10191 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10192 'syscall'. Make the 'int' check more strict.
10194 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10196 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10197 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10198 (i386_linux_intx80_sysenter_syscall_record): ... here.
10199 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10200 Use the renamed function name.
10202 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10204 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10205 * breakpoint.c (until_break_command): Likewise.
10206 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10207 * infcall.c (call_function_by_hand): Likewise.
10208 * infcmd.c (finish_forward): Likewise.
10209 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10211 2012-02-28 Tristan Gingold <gingold@adacore.com>
10213 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10214 avoid variable assignments inside condition.
10216 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10218 Fix static analysis issue found by cppcheck.
10219 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10220 uninitialized BUF for size 2.
10222 2012-02-27 Chris Dearman <chris@mips.com>
10223 Nathan Froyd <froydnj@codesourcery.com>
10224 Maciej W. Rozycki <macro@codesourcery.com>
10226 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10227 (mips16_instruction_has_delay_slot): Likewise.
10228 (mips_segment_boundary): Likewise.
10229 (mips_adjust_breakpoint_address): Likewise.
10230 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10232 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10233 Maciej W. Rozycki <macro@codesourcery.com>
10235 * infrun.c (handle_inferior_event): Don't proceed through
10236 shared library trampolines if stepping at the machine
10239 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10241 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10244 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10246 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10247 (sh_stub_unwind_sniffer): New functions.
10248 (sh_stub_unwind): New variable.
10249 (sh_gdbarch_init): Wire everything.
10251 2012-02-27 Pedro Alves <palves@redhat.com>
10253 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10254 (linux_nat_post_attach_wait): Adjust to use
10255 linux_proc_pid_is_stopped.
10256 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10257 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10258 based on pid_is_stopped from both linux-nat.c and
10259 gdbserver/linux-low.c, and renamed.
10261 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10263 * remote.c (remote_watchpoint_addr_within_range): New function.
10264 (init_remote_ops): Use it.
10266 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10268 * target.h (target_watchpoint_addr_within_range): Document macro.
10270 2012-02-24 Pedro Alves <palves@redhat.com>
10272 * stack.c (set_last_displayed_sal): Issue internal_error instead
10273 of warning, and issue it after clearing the last displayed sal.
10275 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10276 Pedro Alves <palves@redhat.com>
10278 * breakpoint.c (until_break_command): Install breakpoints after
10279 all frame manipulations.
10281 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10283 * remote.c (remote_supports_cond_breakpoints): New forward
10285 (remote_add_target_side_condition): New function.
10286 (remote_insert_breakpoint): Add target-side breakpoint
10287 conditional if supported.
10288 (remote_insert_hw_breakpoint): Likewise.
10289 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10292 * target.c (update_current_target): Inherit
10293 to_supports_evaluation_of_breakpoint_conditions.
10294 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10296 * target.h (struct target_ops)
10297 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10298 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10300 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10301 (condition_evaluation_both, condition_evaluation_auto,
10302 condition_evaluation_host, condition_evaluation_target,
10303 condition_evaluation_enums, condition_evaluation_mode_1,
10304 condition_evaluation_mode): New static globals.
10305 (translate_condition_evaluation_mode): New function.
10306 (breakpoint_condition_evaluation_mode): New function.
10307 (gdb_evaluates_breakpoint_condition_p): New function.
10308 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10309 (mark_breakpoint_modified): New function.
10310 (mark_breakpoint_location_modified): New function.
10311 (set_condition_evaluation_mode): New function.
10312 (show_condition_evaluation_mode): New function.
10313 (bp_location_compare_addrs): New function.
10314 (get_first_location_gte_addr): New helper function.
10315 (set_breakpoint_condition): Free condition bytecode if locations
10316 has become unconditional. Call mark_breakpoint_modified (...).
10317 (condition_command): Call update_global_location_list (1) for
10319 (breakpoint_xfer_memory): Use is_breakpoint (...).
10320 (is_breakpoint): New function.
10321 (parse_cond_to_aexpr): New function.
10322 (build_target_condition_list): New function.
10323 (insert_bp_location): Handle target-side conditional
10324 breakpoints and call build_target_condition_list (...).
10325 (update_inserted_breakpoint_locations): New function.
10326 (insert_breakpoint_locations): Handle target-side conditional
10328 (bpstat_check_breakpoint_conditions): Add comment.
10329 (bp_condition_evaluator): New function.
10330 (bp_location_condition_evaluator): New function.
10331 (print_breakpoint_location): Print information on where the condition
10333 (print_one_breakpoint_location): Likewise.
10334 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10335 breakpoint location.
10336 (force_breakpoint_reinsertion): New functions.
10337 (update_global_location_list): Handle target-side breakpoint
10339 Reinsert locations that are already inserted if conditions have
10341 (bp_location_dtor): Free agent expression bytecode.
10342 (disable_breakpoint): Call mark_breakpoint_modified (...).
10343 Call update_global_location_list (...) with parameter 1 for breakpoints.
10344 (disable_command): Call mark_breakpoint_location_modified (...).
10345 Call update_global_location_list (...) with parameter 1 for breakpoints.
10346 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10347 (enable_command): mark_breakpoint_location_modified (...).
10348 (_initialize_breakpoint): Update documentation and add
10349 condition-evaluation breakpoint subcommand.
10351 * breakpoint.h: Include ax.h.
10352 (condition_list): New data structure.
10353 (condition_status): New enum.
10354 (bp_target_info) <cond_list>: New field.
10355 (bp_location) <condition_changed, cond_bytecode>: New fields.
10356 (is_breakpoint): New prototype.
10358 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10360 * remote.c (remote_state) <cond_breakpoints>: New field.
10361 (PACKET_ConditionalBreakpoints): New enum.
10362 (remote_cond_breakpoint_feature): New function.
10363 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10364 (remote_supports_cond_breakpoints): New function.
10365 (_initialize_remote): Add new packet configuration for
10366 target-side conditional breakpoints.
10368 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10370 * NEWS: Mention target-side conditional breakpoint support,
10371 new condition-evaluation breakpoint subcommand and remote
10374 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10376 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10379 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10381 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10382 (after_prologue): Remove.
10384 2012-02-23 Tom Tromey <tromey@redhat.com>
10386 * jv-valprint.c (java_val_print): Remove dead code.
10388 2012-02-23 Tristan Gingold <gingold@adacore.com>
10390 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10391 known_tasks_element and known_tasks_length fields.
10392 (read_known_tasks_array): Change argument type. Use pointer type
10393 and number of elements from DATA. Adjust.
10394 (read_known_tasks_list): Likewise.
10395 (get_known_tasks_addr): Remove.
10396 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10397 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10398 type and array length. Merge former get_known_tasks_addr code.
10400 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10403 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10404 it after set_momentary_breakpoint.
10406 2012-02-22 Sterling Augustine <saugustine@google.com>
10409 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10411 2012-02-22 Gary Benson <gbenson@redhat.com>
10413 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10414 (find_slot_in_mapped_hash): Likewise.
10416 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10419 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10420 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10421 * configure: Regenerate.
10423 2012-02-21 Tristan Gingold <gingold@adacore.com>
10424 Pedro Alves <palves@redhat.com>
10426 * ia64-tdep.c: Do not include libunwind-ia64.h.
10427 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10428 Include libunwind-ia64.h instead of libunwind.h.
10429 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10430 for libunwind.h existence.
10431 * configure, config.in: Regenerate.
10433 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10435 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10436 instead of value_rtti_target_type.
10437 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10438 instead of value_rtti_target_type.
10439 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10440 value_rtti_target_type.
10441 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10442 (value_rtti_target_type): Rename to ...
10443 (value_rtti_indirect_type): ... here and make it indirect. Update
10445 * value.c (readjust_indirect_value_type): New function.
10446 (coerce_ref): Support for enclosing type setting for references
10447 with readjust_indirect_value_type.
10448 * value.h (readjust_value_type): New declaration.
10449 (value_rtti_target_type): Rename to ...
10450 (value_rtti_indirect_type): ... here.
10452 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10454 * MAINTAINERS (Write After Approval): Add myself to the list.
10456 2012-02-20 Doug Evans <dje@google.com>
10458 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10459 Rename objfile_p_char parameter to objfilep.
10460 (build_objfile_section_table): Result is now void. All callers
10462 * objfiles.h (struct objfile): Tweak comments, whitespace.
10463 (build_objfile_section_table): Update.
10465 * elfread.c (elf_symfile_segments): Fix warning text.
10467 2012-02-20 Tom Tromey <tromey@redhat.com>
10470 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10471 particular set of file names once.
10472 (dw2_map_symbol_filenames): Likewise.
10474 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10477 * main.c (write_files): Remove the declaration.
10478 (external_editor_command): Move the declaration ...
10479 [GDBTK] (external_editor_command): ... here. Fix the comment.
10481 2012-02-20 Tom Tromey <tromey@redhat.com>
10483 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10486 2012-02-20 Tristan Gingold <gingold@adacore.com>
10488 * darwin-nat.h (enum darwin_msg_state): Add comments.
10490 2012-02-20 Tristan Gingold <gingold@adacore.com>
10492 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10495 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10497 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10498 between function description and implementation.
10500 2012-02-17 Tom Tromey <tromey@redhat.com>
10503 * python/py-event.c (event_object_getset): New global.
10504 (event_object_type): Reference it.
10505 * python/py-type.c (field_object_getset): New global.
10506 (field_object_type): Reference it.
10507 * python/python-internal.h (gdb_py_generic_dict): Declare.
10508 * python/py-utils.c (gdb_py_generic_dict): New function.
10510 2012-02-17 Tristan Gingold <gingold@adacore.com>
10512 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10514 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10516 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10517 TYPE_CALLING_CONVENTION annotation.
10519 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10521 * MAINTAINERS: Add rx to target ISA section.
10522 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10523 (ALLDEPFILES): Add rx-tdep.c.
10525 2012-02-16 Tom Tromey <tromey@redhat.com>
10527 * symfile.c (symbol_file_add_main_1): Use inferior's
10529 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10530 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10532 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10534 (follow_exec): Use inferior's symfile_flags.
10535 * inferior.h (struct inferior) <symfile_flags>: New field.
10537 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10540 * remote-sim.c (gdbsim_create_inferior): Call error() when
10541 sim_create_inferior() fails.
10543 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10545 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10547 2012-02-16 Tom Tromey <tromey@redhat.com>
10550 * thread.c (struct current_thread_cleanup) <was_removable>: New
10552 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10553 (make_cleanup_restore_current_thread): Initialize new field.
10555 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10557 * MAINTAINERS: Add rl78 to target ISA section.
10558 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10559 (ALLDEPFILES): Add rl78-tdep.c.
10560 * NEWS: Mention rl78 as a new target.
10562 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10564 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10566 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10568 2012-02-15 Tom Tromey <tromey@redhat.com>
10571 * infcmd.c (registers_info): Print just the current register's
10574 2012-02-15 Tom Tromey <tromey@redhat.com>
10576 * python/py-symbol.c (sympy_value): Use _().
10578 2012-02-15 Pedro Alves <palves@redhat.com>
10580 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10581 output to be like native targets'.
10582 (remote_pid_to_str): Special case the null ptid.
10584 2012-02-14 Stan Shebs <stan@codesourcery.com>
10586 * NEWS: Mention enable count command.
10587 * breakpoint.h (struct breakpoint): New field enable_count.
10588 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10589 (enable_breakpoint): Add arg to call.
10590 (struct disp_data): New struct.
10591 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10592 (do_map_enable_once_breakpoint): Create a struct and pass it.
10593 (do_map_enable_delete_breakpoint): Ditto.
10594 (do_map_enable_count_breakpoint): New function.
10595 (enable_count_command): New function.
10596 (bpstat_stop_status): Decrement enable_count.
10597 (print_one_breakpoint_location): Report enable count.
10598 (_initialize_breakpoint): Add enable count command.
10600 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10602 * rl78-tdep.c (reggroups.h): Include.
10603 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10604 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10605 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10606 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10607 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10608 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10609 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10610 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10611 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10612 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10613 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10614 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10615 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10616 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10617 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10618 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10619 beginning of register list.
10620 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10621 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10622 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10623 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10624 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10625 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10626 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10627 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10628 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10629 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10630 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10631 the pseudo registers. Rearrange other pseudo registers too so
10632 that the bank registers appear at the end.
10633 (rl78_register_type): Account for the fact that the byte sized
10634 bank registers are now pseudo-registers.
10635 (rl78_register_name): Rearrange the register name array. Make
10636 initial set of raw banked registers inaccessible.
10637 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10638 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10639 case for copying bytes back and forth between raw and pseudo
10640 versions of the banked registers. Update other cases to reflect
10642 (rl78_return_value): Update to account for changed names of
10644 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10645 rl78_register_sim_regno().
10647 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10649 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10650 the name parameter being passed to find_pc_partial_function().
10652 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10654 * MAINTAINERS: Step down from being ia64 target maintainer.
10656 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10658 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10659 compilation warning.
10661 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10663 Fix crash on loaded shlibs without loaded exec_bfd.
10664 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10665 (set_section_command): Replace exec_bfd by p->bfd.
10667 2012-02-10 Tom Tromey <tromey@redhat.com>
10669 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10670 when we have a C++ qualified name.
10672 2012-02-10 Pedro Alves <palves@redhat.com>
10674 * inferior.c (inferior_pid_to_str): New.
10675 (print_inferior, inferior_command): Use it.
10677 2012-02-10 Pedro Alves <palves@redhat.com>
10679 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10681 * configure: Regenerate.
10683 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10685 * linespec.c (decode_line_internal): Fix comment correctness.
10687 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10690 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10691 * amd64bsd-nat.c: Add support for debug registers (adapted from
10693 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10694 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10695 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10696 (amd64bsd_dr_get_control): New functions.
10697 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10698 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10699 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10700 watchpoints initialization.
10701 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10703 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10705 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10707 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10709 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10711 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10713 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10715 * language.h (symbol_name_cmp_ftype): Renames
10716 symbol_name_match_p_ftype.
10717 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10718 la_get_symbol_name_match_p.
10719 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10720 ada_get_symbol_name_match_p. Update comment.
10721 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10722 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10723 Renames symbol_name_match_p. Update field type.
10724 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10725 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10726 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10727 "la_get_symbol_name_cmp" in comments.
10728 * language.c: Likewise.
10730 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10732 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10734 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10735 (amd64_sol2_gregset32_reg_offs): Likewise.
10737 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10739 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10740 of the returned BFD is allocated by GDB.
10742 2012-02-07 Tom Tromey <tromey@redhat.com>
10745 * python/python-internal.h (frame_object_type): Declare.
10746 * python/py-symbol.c (sympy_needs_frame): New function.
10747 (sympy_value): New function.
10748 (symbol_object_getset): Add "needs_frame".
10749 (symbol_object_methods): Add "value".
10750 * python/py-frame.c (frame_object_type): No longer static.
10752 2012-02-07 Tom Tromey <tromey@redhat.com>
10755 * python/py-symbol.c (sympy_line): New function.
10756 (symbol_object_getset): Add "line".
10758 2012-02-07 Tom Tromey <tromey@redhat.com>
10760 * charset.c (find_charset_names): Check 'in' against NULL.
10762 2012-02-06 Doug Evans <dje@google.com>
10764 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10765 and fields.name members from char * to const char *. All uses updated.
10766 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10767 from char * to const char *. All uses updated.
10768 (type_name_no_tag): Update.
10769 (lookup_unsigned_typename, lookup_signed_typename): Update.
10770 * gdbtypes.c (type_name_no_tag): Change result type
10771 from char * to const char *. All callers updated.
10772 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10773 name parameter from char * to const char *.
10774 * symtab.h (struct cplus_specific): Change type of demangled_name
10775 member from char * to const char *. All uses updated.
10776 (struct general_symbol_info): Change type of name and
10777 mangled_lang.demangled_name members from char * to const char *.
10779 (symbol_get_demangled_name, symbol_natural_name): Update.
10780 (symbol_demangled_name, symbol_search_name): Update.
10781 * symtab.c (symbol_get_demangled_name): Change result type
10782 from char * to const char *. All callers updated.
10783 (symbol_natural_name, symbol_demangled_name): Ditto.
10784 (symbol_search_name): Ditto.
10785 (completion_list_add_name): Change type of symname,sym_text,
10786 text,word parameters from char * to const char *.
10787 (completion_list_objc_symbol): Change type of sym_text,
10788 text,word parameters from char * to const char *.
10789 * ada-lang.c (find_struct_field): Change type of name parameter
10790 from char * to const char *.
10791 (encoded_ordered_before): Similarly for N0,N1 parameters.
10792 (old_renaming_is_invisible): Similarly for function_name parameter.
10793 (ada_type_name): Change result type from char * to const char *.
10794 All callers updated.
10795 * ada-lang.h (ada_type_name): Update.
10796 * buildsym.c (hashname): Change type of name parameter
10797 from char * to const char *.
10798 * buildsym.h (hashname): Update.
10799 * dbxread.c (end_psymtab): Change type of include_list parameter
10800 from char ** to const char **.
10801 * dwarf2read.c (determine_prefix): Change result type
10802 from char * to const char *. All callers updated.
10803 * f-lang.c (find_common_for_function): Change type of name, funcname
10804 parameters from char * to const char *.
10805 * f-lang.c (find_common_for_function): Update.
10806 * f-valprint.c (list_all_visible_commons): Change type of funcname
10807 parameters from char * to const char *.
10808 * gdbarch.sh (static_transform_name): Change type of name parameter
10809 and result from char * to const char *.
10810 * gdbarch.c: Regenerate.
10811 * gdbarch.h: Regenerate.
10812 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10813 of name parameter from char * to const char *.
10814 * jv-lang.c (java_primitive_type_from_name): Ditto.
10815 (java_demangled_signature_length): Similarly for signature parameter.
10816 (java_demangled_signature_copy): Ditto.
10817 (java_demangle_type_signature): Ditto.
10818 * jv-lang.h (java_primitive_type_from_name): Update.
10819 (java_demangle_type_signature): Update.
10820 * objc-lang.c (specialcmp): Change type of a,b parameters
10821 from char * to const char *.
10822 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10823 from char * to const char *. All callers updated.
10824 * p-lang.h (is_pascal_string_type): Update.
10825 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10826 of name parameter from char * to const char *.
10827 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10828 * utils.c (fprintf_symbol_filtered): Ditto.
10829 * defs.h (fprintf_symbol_filtered): Update.
10830 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10831 * stabsread.h (end_psymtab): Update.
10832 * stack.c (find_frame_funname): Change type of funname parameter
10833 from char ** to const char **.
10834 * stack.h (find_frame_funname): Update.
10835 * typeprint.c (type_print): Change type of varstring parameter
10836 from char * to const char *.
10837 * value.h (type_print): Update.
10838 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10839 from char * to const char *. All callers updated.
10840 (xcoff_end_psymtab): Change type of include_list parameter
10841 from char ** to const char **. All callers updated.
10842 (swap_sym): Similarly for name parameter. All callers updated.
10843 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10845 (process_coff_symbol): Use xstrdup.
10846 * stabsread.c (stabs_method_name_from_physname): Renamed from
10847 update_method_name_from_physname. Change result type from void
10848 to char *. All callers updated.
10849 (read_member_functions): In has_destructor case, store name in objfile
10850 obstack instead of malloc space. In !has_stub case, fix mem leak.
10852 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10854 * configure: Rebuild.
10855 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10858 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10860 * configure.tgt (rl78-*-elf): New target.
10861 * rl78-tdep.c: New file.
10863 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10865 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10866 and continue the loop. Add QUIT statement.
10868 2012-02-03 Tom Tromey <tromey@redhat.com>
10871 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10872 bfd_lookup_symbol_from_symtab.
10873 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10874 gdb_bfd_lookup_symbol_from_symtab.
10876 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10878 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10879 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10880 symbol. Add assertion that sym2 is never NULL.
10882 2012-02-02 Doug Evans <dje@google.com>
10884 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10885 "name" parameter to const char ** from char **. All callers updated.
10886 (find_pc_partial_function): Ditto.
10887 (cache_pc_function_name): Change type to const char * from char *.
10888 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10889 (find_pc_partial_function): Update.
10890 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10891 type of "name" parameter to const char * from char *.
10893 * arch-utils.c (generic_in_solib_return_trampoline): Change
10894 type of "name" parameter to const char * from char *.
10895 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10896 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10897 type of "name" parameter to const char * from char *.
10898 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10899 * gdbarch.c: Regenerate.
10900 * gdbarch.h: Regenerate.
10901 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10902 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10903 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10904 type of "name" parameter to const char * from char *.
10905 * skip.c (skip_function_pc): Ditto.
10906 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10907 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10908 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10909 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10910 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10911 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10912 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10913 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10914 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10916 2012-02-02 Pedro Alves <palves@redhat.com>
10918 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10919 the current inferior has no execution. Make sure the current
10920 remote process matches gdb's current inferior.
10922 2012-02-02 Tom Tromey <tromey@redhat.com>
10925 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10928 2012-02-02 Tom Tromey <tromey@redhat.com>
10931 * symtab.c (lookup_language_this): Set block_found.
10933 2012-02-01 Tom Tromey <tromey@redhat.com>
10936 * jit.c (struct jit_inferior_data): Rewrite.
10937 (struct jit_objfile_data): New.
10938 (get_jit_objfile_data): New function.
10939 (add_objfile_entry): Update.
10940 (jit_read_descriptor): Return int. Replace descriptor_addr
10941 argument with inf_data. Update. Don't call error.
10942 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10944 (jit_inferior_init): Don't look up descriptor. Don't call error.
10945 (jit_reset_inferior_data_and_breakpoints)
10946 (jit_inferior_created_observer): Remove.
10947 (jit_inferior_exit_hook): Update.
10948 (jit_executable_changed_observer): Remove.
10949 (jit_event_handler): Update.
10950 (free_objfile_data): Reset inferior data if needed.
10951 (_initialize_jit): Update.
10953 2012-02-01 Tom Tromey <tromey@redhat.com>
10955 * jit.c (bfd_open_from_target_memory): Move higher in file.
10957 2012-02-01 Tristan Gingold <gingold@adacore.com>
10959 * libunwind-frame.c (libunwind_load): Display message if dlopen
10962 2012-02-01 Gary Benson <gbenson@redhat.com>
10964 * symtab.h (symbol_found_callback_ftype): New typedef.
10965 (iterate_over_symbols): Use the above.
10966 * symtab.c (iterate_over_symbols): Likewise.
10967 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10968 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10969 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10970 (iterate_name_matcher): Document return values.
10971 (collect_one_symbol): Likewise.
10972 (collect_function_symbols): Likewise.
10973 (collect_symbols): Likewise.
10975 2012-02-01 Tom Tromey <tromey@redhat.com>
10977 * ada-lang.c (resolve_subexp): Update.
10978 (ada_lookup_symbol_list): Add 'full_search' argument.
10979 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10980 ada_lookup_symbol_list.
10981 (ada_lookup_encoded_symbol): Update.
10982 (get_var_value): Update.
10983 * ada-exp.y (block_lookup): Update.
10984 (write_var_or_type): Update.
10985 (write_name_assoc): Update.
10986 * ada-lang.h (ada_lookup_symbol_list): Update.
10988 2012-01-31 Tom Tromey <tromey@redhat.com>
10990 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10993 2012-01-31 Doug Evans <dje@google.com>
10995 * symtab.h: Remove outdated comment.
10996 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10998 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11000 Fix build error in Darwin port.
11001 * i386-darwin-nat.c: Include i386-nat.h.
11003 2012-01-30 Tom Tromey <tromey@redhat.com>
11005 PR breakpoints/13568:
11006 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11007 argument. Check for recursive includes.
11008 (dwarf_decode_macros): Create an include hash.
11010 2012-01-30 Michael Eager <eager@eagercon.com>
11012 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11013 * ppc-linux-tdep.c: Include glibc-tdep.h.
11014 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11015 (powerpc_linux_in_plt_stub): New function.
11016 (powerpc_linux_in_dynsym_resolve_code): New function.
11017 (ppc_skip_trampoline_code): New function.
11018 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11019 Use glibc_skip_solib_resolver.
11021 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11023 Code cleanup: Make 1440 bytes of data segment read-only.
11024 * arch-utils.c (endian_enum): Make it const char *const [].
11025 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11027 * breakpoint.c (always_inserted_enums): Likewise.
11028 * cli/cli-cmds.c (script_ext_enums): Likewise.
11029 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11030 enumlist parameter const char *const *.
11031 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11032 const char *const *.
11033 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11034 parameter const char *const *.
11035 * cris-tdep.c (cris_modes): Make it const char *const [].
11036 * filesystem.c (target_file_system_kinds): Likewise.
11037 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11038 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11039 (can_use_displaced_stepping_enum, scheduler_enums)
11040 (exec_direction_names): Likewise.
11041 * language.c (_initialize_language): Make the type_or_range_names and
11042 case_sensitive_names variables const char *const [].
11043 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11044 * python/python.c (python_excp_enums): Likewise.
11045 * remote.c (interrupt_sequence_modes): Likewise.
11046 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11047 * serial.c (logbase_enums): Likewise.
11048 * sh-tdep.c (sh_cc_enum): Likewise.
11049 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11051 * symtab.c (multiple_symbols_modes): Likewise.
11052 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11054 * utils.c (internal_problem_modes): Likewise.
11056 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11058 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11059 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11062 2012-01-27 Doug Evans <dje@google.com>
11064 * configure.ac (with_python): Fix absolute path handling for win32.
11065 * configure: Regenerate.
11067 2012-01-26 Doug Evans <dje@google.com>
11069 * symtab.c: Whitespace cleanup, no code changes.
11071 * symtab.c (lookup_symbol_in_language): Improve comment.
11072 (lookup_symbol_aux): Fix comment.
11074 * psymtab.c (add_psymbol_to_list): Result is now "void".
11075 * psympriv.h (add_psymbol_to_list): Update.
11077 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11079 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11081 Do not open script filenames twice.
11082 * cli/cli-cmds.c (source_script_from_stream): Pass to
11083 source_python_script also STREAM.
11084 * python/py-auto-load.c (source_section_scripts): Pass to
11085 source_python_script_for_objfile also STREAM.
11086 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11088 * python/python-internal.h (source_python_script_for_objfile): New
11089 parameter file, rename parameter file to filename.
11090 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11091 instead if !_WIN32. Update the function comment.
11092 (source_python_script, source_python_script_for_objfile)
11093 (source_python_script): New parameter file, rename parameter file to
11094 filename. Pass FILENAME to python_run_simple_file.
11095 * python/python.h (source_python_script): New parameter file, rename
11096 parameter file to filename.
11098 2012-01-26 Pedro Alves <palves@redhat.com>
11100 * corelow.c (core_has_fake_pid): Delete.
11101 (core_close): Delete references to `core_has_fake_pid'.
11102 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11103 (core_open): Delete references to `core_has_fake_pid'.
11104 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11105 the removed global.
11107 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11109 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11110 Remove language parameter from name_matcher. Adjust the comment.
11111 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11112 Remove language parameter.
11113 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11114 * linespec.c (iterate_name_matcher): Likewise.
11115 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11116 name_matcher. Adjust call accordingly.
11117 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11118 (maintenance_check_symtabs): Adjust type of parameter "fun".
11119 * psymtab.h (maintenance_check_symtabs): Likewise.
11121 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11123 * language.h (symbol_name_match_p_ftype): New typedef.
11124 (struct language_defn): Replace field la_symbol_name_compare
11125 by la_get_symbol_name_match_p.
11126 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11127 (ada_language_defn): Use it.
11128 * linespec.c (struct symbol_matcher_data): New type.
11129 (iterate_name_matcher): Rewrite.
11130 (iterate_over_all_matching_symtabs): Pass a pointer to
11131 a symbol_matcher_data struct to expand_symtabs_matching
11132 instead of just the lookup name.
11133 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11134 opencl-lang.c, p-lang.c, language.c: Delete field
11135 la_symbol_name_compare, and replace by NULL for new field
11136 la_get_symbol_name_match_p.
11137 * symfile.h (struct quick_symbol_functions): Update comment.
11139 2012-01-25 Tom Tromey <tromey@redhat.com>
11141 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11144 2012-01-24 Tom Tromey <tromey@redhat.com>
11147 * solib.c (update_solib_list): Update the program space's
11148 added_solibs and deleted_solibs fields.
11149 * progspace.h (struct program_space) <added_solibs,
11150 deleted_solibs>: New fields.
11151 (clear_program_space_solib_cache): Declare.
11152 * progspace.c (release_program_space): Call
11153 clear_program_space_solib_cache.
11154 (clear_program_space_solib_cache): New function.
11155 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11156 bpstat_stop_status. Use handle_solib_event.
11157 * breakpoint.c: Include gdb_regex.h.
11158 (print_solib_event): New function.
11159 (bpstat_print): Use print_solib_event.
11160 (bpstat_stop_status): Add special case for bp_shlib_event.
11161 (handle_solib_event): New function.
11162 (bpstat_what): Use handle_solib_event.
11163 (struct solib_catchpoint): New.
11164 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11165 (breakpoint_hit_catch_solib, check_status_catch_solib)
11166 (print_it_catch_solib, print_one_catch_solib)
11167 (print_mention_catch_solib, print_recreate_catch_solib): New
11169 (catch_solib_breakpoint_ops): New global.
11170 (catch_load_or_unload, catch_load_command_1)
11171 (catch_unload_command_1): New functions.
11172 (internal_bkpt_check_status): Add special case for
11174 (internal_bkpt_print_it): Use print_solib_event.
11175 (initialize_breakpoint_ops): Initialize
11176 catch_solib_breakpoint_ops.
11177 (_initialize_breakpoint): Register "catch load" and "catch
11179 * breakpoint.h (handle_solib_event): Declare.
11180 * NEWS: Add entry for "catch load" and "catch unload".
11182 2012-01-24 Tom Tromey <tromey@redhat.com>
11184 * ada-lang.c: Include gdb_vecs.h.
11185 * charset.c: Include gdb_vecs.h.
11186 * tracepoint.h: Include gdb_vecs.h.
11187 * gdb_vecs.h: New file.
11189 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11191 * breakpoint.c (breakpoint_hit_catch_fork)
11192 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11193 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11194 * infrun.c (inferior_has_forked, inferior_has_vforked)
11195 (inferior_has_execd, inferior_has_called_syscall): Delete.
11196 (handle_syscall_event): Get syscall_number from the execution
11197 control state's wait status.
11198 (wait_for_inferior): Don't clear syscall_number.
11200 2012-01-24 Pedro Alves <palves@redhat.com>
11202 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11203 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11204 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11205 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11207 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11208 false for events other than TARGET_SIGNAL_TRAP.
11209 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11210 Add `ws' parameter.
11211 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11212 events other than TARGET_SIGNAL_TRAP.
11213 (tracepoint_breakpoint_hit): Add `ws' parameter.
11214 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11216 (bpstat_stop_status): Same.
11217 (pc_at_non_inline_function): Same.
11218 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11219 to pass the current event's waitstatus to bpstat_stop_status
11220 and pc_at_non_inline_function.
11222 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11225 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11226 Update the function comment for it.
11227 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11228 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11231 2012-01-24 Pedro Alves <palves@redhat.com>
11233 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11234 outside `bs->stop' block.
11235 (bpstat_what): Rework bp_shlib_event handling.
11236 (internal_bkpt_check_status): If the breakpoint is a
11237 bp_shlib_event, then set bs->stop and bs->print if
11238 stop_on_solib_events is set.
11240 2012-01-24 Gary Benson <gbenson@redhat.com>
11242 Delete #if 0'd out code.
11243 * stack.c (print_frame_label_vars): Remove.
11244 (catch_info): Likewise.
11245 (_initialize_stack): Remove "info catch" command.
11246 * NEWS: Mention the above.
11248 2012-01-24 Pedro Alves <palves@redhat.com>
11250 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11252 (remote_notice_new_inferior): If the remote end doesn't support
11253 the multiprocess extensions, then the PID is fake.
11254 (add_current_inferior_and_thread): New.
11255 (remote_start_remote): Use it.
11256 (extended_remote_attach_1): Adjust.
11257 (extended_remote_create_inferior_1): Use
11258 add_current_inferior_and_thread.
11260 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11262 Fix watchpoints to be specific for each inferior.
11263 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11264 current_program_space.
11265 * i386-nat.c (i386_inferior_data_cleanup): New.
11266 (i386_inferior_data_get): Replace variable inf_data_local by an
11267 inferior_data call.
11268 (i386_use_watchpoints): Initialize i386_inferior_data.
11269 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11270 specific iterate_over_lwps.
11272 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11274 Fix watchpoints across inferior fork.
11275 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11276 comment for linux_nat_iterate_watchpoint_lwps.
11277 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11278 linux_nat_iterate_watchpoint_lwps.
11279 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11280 * i386-linux-nat.c (update_debug_registers_callback): Update the
11281 comment for linux_nat_iterate_watchpoint_lwps.
11282 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11283 linux_nat_iterate_watchpoint_lwps.
11284 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11285 * i386-nat.c: Include inferior.h.
11286 (dr_mirror): Remove.
11287 (i386_inferior_data, struct i386_inferior_data)
11288 (i386_inferior_data_get): New.
11289 (i386_debug_reg_state): Use i386_inferior_data_get.
11290 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11291 (i386_insert_watchpoint, i386_remove_watchpoint)
11292 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11293 (i386_remove_hw_breakpoint): New variable state, use
11294 i386_debug_reg_state instead of DR_MIRROR.
11295 * linux-nat.c (delete_lwp): New declaration.
11296 (num_lwps): Move here from downwards.
11297 (delete_lwp_cleanup): New.
11298 (linux_child_follow_fork): Create new child_lp, call
11299 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11301 (num_lwps): Move upwards.
11302 (linux_nat_iterate_watchpoint_lwps): New.
11303 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11304 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11306 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11310 2012-01-23 Pedro Alves <palves@redhat.com>
11312 * top.c (caution): Rename to ...
11313 (confirm): ... this.
11314 (show_caution): Rename to ...
11315 (show_confirm): ... this.
11316 (quit_cover): Adjust.
11317 (init_main): Adjust.
11318 * top.h (caution): Rename to ...
11319 (confirm): ... this.
11320 * utils.c (internal_vproblem, defaulted_query): Adjust.
11322 2012-01-23 Pedro Alves <palves@redhat.com>
11324 * top.c (caution): Update comment.
11325 (execute_command): Don't consider the current value of `caution'.
11327 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11329 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11331 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11333 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11334 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11335 * target.c (target_fileio_pwrite): Remove buffer address from
11337 (target_fileio_pread): Likewise.
11339 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11341 * NEWS: Document remote "info proc" and "generate-core-file".
11343 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11345 * gdbarch.sh (find_memory_regions): New callback.
11346 * gdbarch.c, gdbarch.h: Regenerate.
11348 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11349 callback before falling back to target method.
11351 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11352 (linux_target_install_ops): No longer install it.
11354 * linux-tdep.c (linux_find_memory_regions): New function.
11355 (linux_init_abi): Install it.
11357 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11359 * gdbarch.sh (make_corefile_notes): New architecture callback.
11360 * gdbarch.c: Regenerate.
11361 * gdbarch.h: Likewise.
11363 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11364 before target_make_corefile_notes. If NULL is returned, the
11365 target does not support core file generation.
11367 * linux-nat.c: Include "linux-tdep.h".
11368 (find_signalled_thread, find_stop_signal): Remove.
11369 (linux_nat_do_thread_registers): Likewise.
11370 (struct linux_nat_corefile_thread_data): Likewise.
11371 (linux_nat_corefile_thread_callback): Likewise.
11372 (iterate_over_spus): Likewise.
11373 (struct linux_spu_corefile_data): Likewise.
11374 (linux_spu_corefile_callback): Likewise.
11375 (linux_spu_make_corefile_notes): Likewise.
11376 (linux_nat_collect_thread_registers): New function.
11377 (linux_nat_make_corefile_notes): Replace contents by call to
11378 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11379 as native-only callback.
11381 * linux-tdep.h: Include "bfd.h".
11382 (struct regcache): Add forward declaration.
11383 (linux_collect_thread_registers_ftype): New typedef.
11384 (linux_make_corefile_notes): Add prototype.
11385 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11386 "regset.h", and "elf-bfd.h".
11387 (find_signalled_thread, find_stop_signal): New functions.
11388 (linux_spu_make_corefile_notes): Likewise.
11389 (linux_collect_thread_registers): Likewise.
11390 (struct linux_corefile_thread_data): New data structure.
11391 (linux_corefile_thread_callback): New funcion.
11392 (linux_make_corefile_notes): Likewise.
11393 (linux_make_corefile_notes_1): Likewise.
11394 (linux_init_abi): Install it.
11396 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11398 * gdbarch.sh (info_proc): New callback.
11399 * gdbarch.c, gdbarch.h: Regenerate.
11401 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11402 before falling back to the target info_proc callback.
11404 * linux-nat.c: Do not include "cli/cli-utils.h".
11405 (linux_nat_info_proc): Remove.
11406 (linux_target_install_ops): No longer install it.
11408 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11409 (read_mapping): New function.
11410 (linux_info_proc): Likewise.
11411 (linux_init_abi): Install it.
11413 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11415 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11416 * infcmd.c: (info_proc_cmd_1): New function.
11417 (info_proc_cmd): New function, moved here from equivalent routine
11418 orignally in linux-nat.c.
11419 (info_proc_cmd_mappings): Likewise.
11420 (info_proc_cmd_stat): Likewise.
11421 (info_proc_cmd_status): Likewise.
11422 (info_proc_cmd_cwd): Likewise.
11423 (info_proc_cmd_cmdline): Likewise.
11424 (info_proc_cmd_exe): Likewise.
11425 (info_proc_cmd_all): Likewise.
11426 (_initialize_infcmd): Install "info proc" command and subcommands.
11428 * target.h (struct target_ops): Add to_info_proc.
11429 (target_info_proc): Add prototype.
11430 * target.c (target_info_proc): New function.
11432 * procfs.c (procfs_info_proc): Add prototype.
11433 (info_proc_cmd): Rename into ...
11434 (procfs_info_proc): ... this. Update argument types as appropriate
11435 for a to_info_proc implementation. Handle "what" argument.
11436 (procfs_target): Install procfs_info_proc.
11437 (_initialize_procfs): No longer install "info proc" command.
11439 * linux-nat.c: (enum info_proc_what): Remove.
11440 (linux_nat_info_proc_cmd_1): Rename into ...
11441 (linux_nat_info_proc): ... this. Update argument types as appropriate
11442 for a to_info_proc implementation.
11443 (linux_nat_info_proc_cmd): Remove.
11444 (linux_nat_info_proc_cmd_mappings): Likewise.
11445 (linux_nat_info_proc_cmd_stat): Likewise.
11446 (linux_nat_info_proc_cmd_status): Likewise.
11447 (linux_nat_info_proc_cmd_cwd): Likewise.
11448 (linux_nat_info_proc_cmd_cmdline): Likewise.
11449 (linux_nat_info_proc_cmd_exe): Likewise.
11450 (linux_nat_info_proc_cmd_all): Likewise.
11451 (linux_target_install_ops): Install linux_nat_info_proc.
11452 (_initialize_linux_nat): No longer install "info proc" command
11455 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11457 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11458 * config.in, configure: Regenerate.
11460 * target.h (struct target_ops): Add to_fileio_readlink.
11461 (target_fileio_readlink): Add prototype.
11462 * target.c (target_fileio_readlink): New function.
11464 * inf-child.c: Conditionally include <sys/param.h>.
11465 (inf_child_fileio_readlink): New function.
11466 (inf_child_target): Install it.
11468 * remote.c (PACKET_vFile_readlink): New enum value.
11469 (remote_hostio_readlink): New function.
11470 (init_remote_ops): Install it.
11471 (_initialize_remote): Handle vFile:readlink packet type.
11473 2012-01-20 Pedro Alves <palves@redhat.com>
11474 Ulrich Weigand <ulrich.weigand@linaro.org>
11476 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11477 * config.in, configure: Regenerate.
11479 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11480 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11481 (target_fileio_open): Add prototype.
11482 (target_fileio_pwrite): Likewise.
11483 (target_fileio_pread): Likewise.
11484 (target_fileio_close): Likewise.
11485 (target_fileio_unlink): Likewise.
11486 (target_fileio_read_alloc): Likewise.
11487 (target_fileio_read_stralloc): Likewise.
11489 * target.c: Include "gdb/fileio.h".
11490 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11491 (default_fileio_target): New function.
11492 (target_fileio_open): Likewise.
11493 (target_fileio_pwrite): Likewise.
11494 (target_fileio_pread): Likewise.
11495 (target_fileio_close): Likewise.
11496 (target_fileio_unlink): Likewise.
11497 (target_fileio_close_cleanup): Likewise.
11498 (target_fileio_read_alloc_1): Likewise.
11499 (target_fileio_read_alloc): Likewise.
11500 (target_fileio_read_stralloc): Likewise.
11502 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11503 <fcntl.h>, and <unistd.h>.
11504 (inf_child_fileio_open_flags_to_host): New function.
11505 (inf_child_errno_to_fileio_error): Likewise.
11506 (inf_child_fileio_open): Likewise.
11507 (inf_child_fileio_pwrite): Likewise.
11508 (inf_child_fileio_pread): Likewise.
11509 (inf_child_fileio_close): Likewise.
11510 (inf_child_fileio_unlink): Likewise.
11511 (inf_child_target): Install to_fileio routines.
11513 * remote.c (init_remote_ops): Install to_fileio routines.
11515 2012-01-20 Pedro Alves <palves@redhat.com>
11516 Ulrich Weigand <ulrich.weigand@linaro.org>
11518 * remote.c (remote_multi_process_p): Only check for multi-process
11519 protocol feature, do not check for extended protocol.
11520 (remote_supports_multi_process): Check for extended protocol here.
11521 (set_general_process): Likewise.
11522 (extended_remote_kill): Likewise.
11523 (remote_pid_to_str): Likewise.
11524 (remote_query_supported): Always query multiprocess mode.
11526 2012-01-20 Pedro Alves <palves@redhat.com>
11527 Ulrich Weigand <ulrich.weigand@linaro.org>
11529 * inferior.h (struct inferior): Add fake_pid_p.
11530 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11531 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11532 magic_null_ptid since the remote side doesn't provide a real PID.
11534 2012-01-19 Tom Tromey <tromey@redhat.com>
11536 * NEWS: Combine the two Python sections.
11538 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11540 * target.h (target_close): Update comment on the target's unpush state.
11542 2012-01-19 Pedro Alves <palves@redhat.com>
11544 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11545 linux_nat_async directly instead of going through the target
11547 * target.c (unpush_target): Close target after unpushing it, not
11550 2012-01-19 Gary Benson <gbenson@redhat.com>
11552 * mdebugread.c (sort_blocks): Replace integer constants with ones
11553 derived from FIRST_LOCAL_BLOCK.
11555 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11556 Jan Kratochvil <jan.kratochvil@redhat.com>
11559 * symfile.c (find_separate_debug_file): New function.
11560 (terminate_after_last_dir_separator): Likewise.
11561 (find_separate_debug_file_by_debuglink): Also try realpath.
11562 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11563 * configure: Regenerate.
11564 * config.in: Regenerate.
11566 2012-01-18 Doug Evans <dje@google.com>
11568 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11569 (main.o): Remove rule.
11570 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11571 (--with-sysroot): Rewrite.
11572 * configure: Regenerate.
11573 * config.in: Regenerate.
11575 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11577 * parse.c (initialize_expout): New function.
11578 (reallocate_expout): Likewise.
11579 (parse_exp_in_context): Use `initialize_expout' and
11580 `reallocate_expout' when appropriate.
11582 2012-01-18 Pedro Alves <palves@redhat.com>
11584 * record.c (struct record_breakpoint, record_breakpoint_p)
11585 (record_breakpoints): New.
11586 (record_insert_breakpoint, record_remove_breakpoint): Manage
11587 record breakpoints list. Only remove breakpoints from the
11588 inferior if they had been inserted there in the first place.
11590 2012-01-17 Doug Evans <dje@google.com>
11592 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11593 if we know we don't have a file name to look for.
11595 2012-01-17 Pedro Alves <palves@redhat.com>
11597 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11598 the frame's stop reason is UNWIND_UNAVAILABLE.
11600 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11602 Fix compilation error.
11603 * m2-exp.y (yyerror): Use ANSI C prototype.
11605 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11607 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11608 (growbuf_by_size): Likewise.
11609 (yyerror): Likewise.
11610 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11611 (modblock): Remove variable (was #if 0'ed).
11612 (parse_number): Convert prototype from K&R to ANSI C.
11613 (yyerror): Likewise.
11614 * objc-exp.y (parse_number): Likewise.
11615 (yyerror): Likewise.
11616 (yylex): Remove #if 0'ed code.
11617 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11618 (yyerror): Likewise.
11620 2012-01-16 Tom Tromey <tromey@redhat.com>
11623 * symtab.h (compare_filenames_for_search): Declare.
11624 * symtab.c (compare_filenames_for_search): New function.
11625 (iterate_over_some_symtabs): Use it.
11626 * symfile.h (struct quick_symbol_functions)
11627 <map_symtabs_matching_filename>: Change spec.
11628 * psymtab.c (partial_map_symtabs_matching_filename): Use
11629 compare_filenames_for_search. Update for new spec.
11630 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11631 compare_filenames_for_search. Update for new spec.
11632 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11634 2012-01-16 Tom Tromey <tromey@redhat.com>
11637 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11638 (struct main_type) <flag_flag_enum>: New field.
11639 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11640 * NEWS: Add entries.
11641 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11643 * python/lib/gdb/printing.py (_EnumInstance): New class.
11644 (FlagEnumerationPrinter): Likewise.
11646 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11648 * breakpoint.c (create_sals_from_address_default): New function.
11649 (create_breakpoints_sal_default): Likewise.
11650 (decode_linespec_default): Likewise.
11651 (is_marker_spec): Removed.
11652 (strace_marker_p): New function.
11653 (init_breakpoint_sal): Using `strace_marker_p' instead of
11655 (create_breakpoint): Call method `create_sals_from_address' from
11656 breakpoint_ops, replacing code that created SALs conditionally
11657 on the type of the breakpoint. Call method `create_breakpoints_sal',
11658 replacing code that created breakpoints conditionally on the type
11660 (base_breakpoint_create_sals_from_address): New function.
11661 (base_breakpoint_create_breakpoints_sal): Likewise.
11662 (base_breakpoint_decode_linespec): Likewise.
11663 (base_breakpoint_ops): Add methods
11664 `base_breakpoint_create_sals_from_address',
11665 `base_breakpoint_create_breakpoints_sal' and
11666 `base_breakpoint_decode_linespec'.
11667 (bkpt_create_sals_from_address): New function.
11668 (bkpt_create_breakpoints_sal): Likewise.
11669 (bkpt_decode_linespec): Likewise.
11670 (tracepoint_create_sals_from_address): Likewise.
11671 (tracepoint_create_breakpoints_sal): Likewise.
11672 (tracepoint_decode_linespec): Likewise.
11673 (strace_marker_create_sals_from_address): Likewise.
11674 (strace_marker_create_breakpoints_sal): Likewise.
11675 (strace_marker_decode_linespec): Likewise.
11676 (strace_marker_breakpoint_ops): New variable.
11677 (addr_string_to_sals): Remove `marker_spec'. Call method
11678 `decode_linespec' from breakpoint_ops, replacing code that decoded
11679 an address string into a SAL. Use `strace_marker_p' instead of
11681 (strace_command): Decide whether we are dealing with a static
11682 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11683 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11684 * breakpoint.h (linespec_result, linespec_sals): New forward
11686 (breakpoint_ops) <create_sals_from_address>,
11687 <create_breakpoints_sal>, <decode_linespec>: New methods.
11689 2012-01-14 Doug Evans <dje@google.com>
11691 * NEWS: Update text for "maint set python print-stack".
11692 It is deprecated in gdb 7.4 and deleted in 7.5.
11694 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11696 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11697 including curses.h.
11699 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11701 * configure: Regenerate.
11702 * config.in: Regenerate.
11704 2012-01-12 Keith Seitz <keiths@redhat.com>
11707 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11708 (ANONYMOUS_UNION_NAME): Define.
11709 (is_path_expr_parent): New function.
11710 (get_path_expr_parent): New function.
11711 (is_anonymous_child): New function.
11712 (create_child_with_value): If the child is anonymous and without
11713 a name, assign an object name to it.
11714 (c_describe_child): Use get_path_expr_parent to determine
11715 the parent expression.
11716 If there field represents an anonymous struct or union and
11717 has no name, set an appropriate display name and expression.
11718 (cplus_describe_child): Likewise.
11720 2012-01-12 Pedro Alves <palves@redhat.com>
11722 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11723 available when %ebp is found to be zero (outermost).
11725 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11727 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11728 an internal gdb_static_assert.
11729 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11731 2012-01-11 Tom Tromey <tromey@redhat.com>
11734 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11735 catch" and "catch throw".
11737 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11739 * blockframe.c (block_innermost_frame): Start search from selected
11740 frame, if present, or otherwise the current frame.
11742 * c-exp.y (variable): Update innermost_block for
11743 'block COLONCOLON NAME' clause.
11744 * m2-exp.y (variable): Ditto.
11745 * objc-exp.y (variable): Ditto.
11747 2012-01-10 Tom Tromey <tromey@redhat.com>
11750 * python/python.c (finish_python_initialization): Set sys.argv.
11752 2012-01-10 Doug Evans <dje@google.com>
11754 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11755 "want_line_info". All callers updated.
11756 (dwarf_decode_lines_1): New function.
11757 (handle_DW_AT_stmt_list): Add function comment.
11758 New arg "want_line_info". All callers updated.
11759 (read_file_scope,read_type_unit_scope): Move comment from
11760 handle_DW_AT_stmt_list to here.
11762 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11764 Fix regression after libiberty/ update for GCC PR 6057 and others.
11765 * c-exp.y (operator) <OPERATOR DELETE>
11766 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11767 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11768 (make_builtin_type, make_name): New variable i, add gdb_assert.
11769 (operator) <OPERATOR NEW>: Update ARGS to 3.
11770 (operator) <OPERATOR DELETE>: Add trailing space.
11771 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11772 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11773 * cp-support.c (cp_canonicalize_string): Check NULL from
11774 cp_comp_to_string, call warning and return.
11776 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11778 Fix duplicate .o files after omitting libbfd.a.
11779 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11780 (SFILES): Add corelow.c.
11781 (COMMON_OBS): Add corelow.o.
11782 (ALLDEPFILES): Remove corelow.c.
11783 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11784 * config/alpha/alpha-osf3.mh: Likewise.
11785 * config/alpha/fbsd.mh: Likewise.
11786 * config/arm/nbsdaout.mh: Likewise.
11787 * config/arm/nbsdelf.mh: Likewise.
11788 * config/i386/i386gnu.mh: Likewise.
11789 * config/ia64/hpux.mh: Likewise.
11790 * config/ia64/linux.mh: Likewise.
11791 * config/m32r/linux.mh: Likewise.
11792 * config/m68k/linux.mh: Likewise.
11793 * config/mips/irix5.mh: Likewise.
11794 * config/mips/irix6.mh: Likewise.
11795 * config/pa/hpux.mh: Likewise.
11796 * config/pa/linux.mh: Likewise.
11797 * config/powerpc/aix.mh: Likewise.
11798 * config/sparc/linux.mh: Likewise.
11799 * config/sparc/linux64.mh: Likewise.
11800 * config/sparc/sol2.mh: Likewise.
11801 * config/vax/vax.mh: Likewise.
11802 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11803 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11804 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11805 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11806 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11807 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11808 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11809 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11810 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11811 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11812 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11813 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11814 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11815 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11816 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11817 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11818 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11819 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11820 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11821 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11822 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11823 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11824 corelow.o from gdb_target_obs.
11825 * corefile.c (core_target): Update the comment on NULL value.
11826 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11827 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11828 MATCHES. Drop YUMMY set on NULL.
11829 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11830 reclaim CORE_DATA if it is already NULL.
11832 2012-01-09 Doug Evans <dje@google.com>
11834 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11835 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11837 2012-01-09 Keith Seitz <keiths@redhat.com>
11839 * breakpoint.c (wrapper.h): Don't include.
11841 2012-01-09 Keith Seitz <keiths@redhat.com>
11843 * Makefile.in (SFILES): Remove wrapper.c.
11844 (HFILES_NO_SRCDIR): Remove wrapper.h.
11845 (COMMON_OBS): Remove wrapper.o.
11846 * cli/cli-interp.c: Don't inlude wrapper.h.
11847 * corelow.c: Likewise.
11848 (core_open): Replace gdb_target_find_new_threads with
11849 TRY_CATCH around target_find_new_threads.
11850 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11851 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11852 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11853 evaluate_expression.
11854 (varobj_set_value): Likewise for evaluate_expression and
11856 (install_new_variable): Likewise for value_fetch_lazy.
11857 (adjust_value_for_child_access): Likewise for value_ind.
11858 (c_describe_child): Likewise for value_subscript and
11860 (c_value_of_root): Likewise for evaluate_expression.
11861 * wrapper.c: Remove.
11862 * wrapper.h: Remove.
11864 2012-01-09 Doug Evans <dje@google.com>
11866 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11867 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11868 "abfd" args with "section". All callers updated.
11869 Error checking code moved ...
11870 (error_check_comp_unit_head): ... here. New function.
11871 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11872 Delete arg "abfd". New arg "type_offset". All callers updated.
11873 (create_debug_types_hash_table): Simplify by using
11874 read_and_check_type_unit_head.
11876 * parser-defs.h (namecopy): Delete.
11877 * parse.c (namecopy, namecopy_size): Move into copy_name.
11879 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11881 Partially fix duplicate .o files after omitting libbfd.a.
11882 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11883 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11884 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11885 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11886 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11887 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11888 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11890 2012-01-09 Pedro Alves <palves@redhat.com>
11892 * MAINTAINERS: Update my email address.
11894 2012-01-08 Doug Evans <dje@google.com>
11896 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11897 n_type_units. Rename type_comp_units to all_type_units.
11899 (add_signatured_type_cu_to_table): Renamed from
11900 add_signatured_type_cu_to_list. All callers updated.
11902 * gdbtypes.h (struct cplus_struct_type): Delete member
11903 nfn_fields_total. All uses removed.
11905 2012-01-06 Doug Evans <dje@google.com>
11907 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11909 (dwarf2_find_comp_unit): Delete.
11910 (process_psymtab_comp_unit): Make result "void".
11911 Delete args buffer, info_ptr, buffer_size, and replace with
11912 "section". All callers updated.
11913 (dwarf2_build_psymtabs_hard): Simplify.
11915 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11916 Thiago Jung Bauermann <bauerman@br.ibm.com>
11918 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11919 before `struct gdb_exception'.
11920 * breakpoint.c (update_global_location_list_nothrow)
11921 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11922 * cp-abi.c (value_rtti_type): Likewise.
11923 * cp-support.c (cp_validate_operator): Likewise.
11924 * infrun.c (insert_exception_resume_breakpoint)
11925 (check_exception_resume, keep_going): Likewise.
11926 * mi-interp.c (mi_breakpoint_created)
11927 (mi_breakpoint_modified): Likewise.
11928 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11929 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11930 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11932 2012-01-05 Doug Evans <dje@google.com>
11934 * dwarf2read.c (statement_prologue): Delete, unused.
11936 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11937 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11939 * dwarf2read.c (comp_unit_header): Delete, unused.
11941 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11943 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11944 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11946 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11948 * infrun.c (normal_stop): Don't skip calling the normal_stop
11949 observers if the thread was doing a multi-step, but stopped for
11950 some reason other than stepping.
11952 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11954 * cli/cli-decode.h: Add comments.
11955 (CMD_LIST_AMBIGUOUS): Moved to command.h
11956 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11957 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11958 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11959 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11960 (add_com, add_com_alias, add_info, add_info_alias)
11961 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11963 * command.h: Add and adjust comments.
11964 (CMD_LIST_AMBIGUOUS): Moved here.
11965 (help_cmd, help_cmd_list): Delete declarations.
11967 2012-01-04 Doug Evans <dje@google.com>
11969 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11970 All callers updated.
11971 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11972 Replace all arguments with "per_cu". All callers updated.
11974 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11976 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11977 New arg "per_cu". All callers updated.
11979 Delete #if 0'd out code.
11980 * language.c (binop_result_type): Delete.
11981 (simple_type, ordered_type, same_type, integral_type): Delete.
11982 (numeric_type, character_type, string_type, boolean_type): Delete.
11983 (float_type, structured_type): Delete.
11984 * language.h: Update.
11986 2012-01-04 Tom Tromey <tromey@redhat.com>
11988 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11990 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11992 * corefile.c (close_exec_file): Delete.
11993 (reopen_exec_file): Remove commented out code that seems related
11994 to close_exec_file, which is being deleted here.
11995 * inferior.h (close_exec_file): Delete.
11996 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11998 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12000 * ada-lang.c: #include "cli/cli-utils.h".
12001 (get_selections): Use skip_spaces.
12002 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12003 (catch_ada_exception_command_split): Use skip_spaces.
12004 (ada_decode_assert_location): Likewise.
12006 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12008 * linespec.c (decode_line_internal): Check for C++ or Java
12009 compound constructs only if the current language is C, C++
12012 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12015 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12016 Joel Brobecker <brobecker@adacore.com>
12017 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12018 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12020 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12021 fall through into AT_ENTRY_POINT.
12022 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12023 DUMMY_ADDR with it.
12024 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12025 PPC_INSN_SIZE skip to 3 times.
12027 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12029 * linespec.c (add_minsym): Preserve function descriptors.
12031 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12033 * breakpoint.c (all_locations_are_pending): Consider locations
12034 in program spaces executing during startup pending as well.
12036 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12038 Copyright year update in most files of the GDB Project.
12040 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12042 * copyright.sh: Delete.
12043 * copyright.py: Rewrite.
12045 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12047 * gnulib/extra/update-copyright: New file, imported from gnulib.
12049 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12051 * README (Copyright and License Notices): New section.
12053 2012-01-03 Tom Tromey <tromey@redhat.com>
12056 * python/py-value.c (valpy_dereference, valpy_get_address
12057 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12058 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12059 (valpy_absolute, valpy_richcompare): Free intermediate values.
12061 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12063 * ada-lang.c: Reformat the copyright notice.
12065 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12067 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12068 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12069 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12070 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12071 Revert this part of:
12072 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12073 Build gdb directly from *.o files not using libgdb.a.
12074 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12076 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12078 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12079 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12080 Reformat the copyright header.
12082 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12084 Revert this part of:
12085 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12086 Remove the gdbtui binary.
12087 * gdb.c (main): Remove args.interpreter_p initialization.
12088 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12089 * main.h (struct captured_main_args): Remove interpreter_p.
12091 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12093 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12095 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12097 * top.c (print_gdb_version): Update copyright year.
12099 2012-01-02 Yao Qi <yao@codesourcery.com>
12101 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12103 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12104 Joel Brobecker <brobecker@adacore.com>
12106 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12107 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12109 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12110 fall through into AT_ENTRY_POINT.
12111 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12112 DUMMY_ADDR with it.
12113 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12114 PPC_INSN_SIZE skip to 3 times.
12116 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12118 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12120 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12122 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12124 Build gdb directly from *.o files not using libgdb.a.
12125 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12126 (COMMON_OBS): Remove solib-target.o.
12127 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12128 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12129 (LIBGDB_OBS, libgdb.a): Move it above.
12130 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12131 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12132 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12133 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12134 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12135 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12136 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12137 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12138 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12139 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12140 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12141 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12142 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12143 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12144 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12145 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12146 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12147 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12148 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12149 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12150 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12151 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12152 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12153 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12154 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12155 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12156 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12158 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12160 Remove the gdbtui binary.
12161 * .gitignore (/gdbtui): Remove.
12162 * Makefile.in (TUI): Remove.
12163 (SUBDIR_TUI_OBS): Remove tui-main.o.
12164 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12165 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12166 (tui-main.o): Remove.
12167 (all_object_files): Remove tui-main.o.
12168 * NEWS: New note for the gdbtui removal.
12169 * configure: Rebuilt.
12170 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12171 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12172 CONFIG_UNINSTALL respectively.
12173 * gdb.c (main): Remove args.interpreter_p initialization.
12174 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12175 * main.h (struct captured_main_args): Remove interpreter_p.
12176 * tui/tui-main.c: Remove.
12178 2012-01-01 Doug Evans <dje@google.com>
12180 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12181 (dwarf2_physname, read_import_statement): Ditto.
12182 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12183 (process_structure_scope read_subroutine_type): Ditto.
12184 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12185 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12186 (dwarf2_fetch_die_location_block): Ditto.
12187 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12189 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12190 All callers updated.
12191 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12192 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12193 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12195 * dwarf2read.c (load_cu): Move assert to more useful location.
12197 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12198 All callers updated.
12200 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12201 (dwarf2_elf_names): Minor reformat.
12202 (dwarf2_per_cu_data): Tweak comment.
12203 (dwarf2_read_section): Fix comment.
12204 (create_all_comp_units): Fix comment.
12205 (load_full_comp_unit): Fix comment.
12206 (process_full_comp_unit): Fix comment.
12207 (read_signatured_type): Fix comment.
12209 For older changes see ChangeLog-2011.
12215 version-control: never