1 2012-11-29 Jerome Guitton <guitton@adacore.com>
3 * ada-lang.c (ada_is_interface_tag): New function.
4 (ada_is_ignored_field): Add interface tags to the list
7 2012-11-29 Jerome Guitton <guitton@adacore.com>
9 * ada-lang.h (ada_tag_value_at_base_address): New function
11 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
13 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
14 relocate the class-wide value if need be.
15 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
16 Let ada_tag_value_at_base_address relocate the class-wide access/ref
17 before dereferencing it.
18 * ada-valprint.c (ada_val_print_1): Relocate to base address
19 before displaying the content of an interface-wide ref.
21 2012-11-29 Jerome Guitton <guitton@adacore.com>
23 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
25 2012-11-29 Joel Brobecker <brobecker@adacore.com>
29 2012-11-29 Yao Qi <yao@codesourcery.com>
30 Tom Tromey <tromey@redhat.com>
32 * eval.c (evaluate_subexp_standard): Get the correct pointer
33 type for TYPE_CODE_MEMBERPTR.
35 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
37 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
38 since now it is being done by binutils' powerpc_init_dialect().
40 2012-11-28 Tom Tromey <tromey@redhat.com>
43 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
44 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
46 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
47 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
48 (gdb_bfd_openr_next_archived_file): Use it.
50 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
52 * configure.ac: Check for linux/perf_event.h.
53 * config.in: Regenerated.
54 * configure: Regenerated.
56 2012-11-28 Yao Qi <yao@codesourcery.com>
58 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
59 abbreviate 'delete tracepoints' to 'delete tr'.
60 * corefile.c (_initialize_core): Call add_alias_cmd to
61 abbreviate 'set gnutarget' to 'set g'.
62 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
63 'show convenience' to 'show conv'.
65 2012-11-27 Joel Brobecker <brobecker@adacore.com>
67 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
68 call to sparc_supply_fpregset.
69 (fill_fpregset): Fix first parameter in call to
70 sparc_collect_fpregset.
72 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
73 Kazu Hirata <kazu@codesourcery.com>
74 Yao Qi <yao@codesourcery.com>
76 * objfiles.c (init_entry_point_info): Call
77 gdbarch_convert_from_func_ptr_addr and
78 gdbarch_addr_bits_remove here ...
79 (entry_point_address_query): ... instead of here.
80 * solib-svr4.c (exec_entry_point): Call
81 gdbarch_addr_bits_remove.
82 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
85 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
86 Yao Qi <yao@codesourcery.com>
88 * eval.c (evaluate_subexp_standard): Add handling of
89 TYPE_CODE_MEMBERPTR when calling functions. Correct the
90 result of ptype for calling a TYPE_CODE_METHODPTR.
92 2012-11-27 Yao Qi <yao@codesourcery.com>
94 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
98 2012-11-26 Alexander Larsson <alexl@redhat.com>
99 Jan Kratochvil <jan.kratochvil@redhat.com>
100 Tom Tromey <tromey@redhat.com>
102 * NEWS: Mention mini debuginfo feature.
103 * minidebug.c: New file.
104 * configure.ac: Check for lzma.
105 * configure, config.in: Rebuild.
106 * Makefile.in (LIBLZMA): New variable.
107 (CLIBS): Include LIBLZMA.
108 (SFILES): Mention minidebug.c.
109 (COMMON_OBS): Mention minidebug.o.
110 * symfile.c (read_symbols): New function.
111 (syms_from_objfile, reread_symbols): Call it.
112 * symfile.h (find_separate_debug_file_in_section): Declare.
114 2012-11-26 Keith Seitz <keiths@redhat.com>
116 * exec.c (exec_file_attach): Move cleanup after verifying that
117 memory has in fact been allocated.
119 2012-11-26 Tom Tromey <tromey@redhat.com>
121 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
122 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
124 * skip.c (skip_info): Use SYMBOL_SYMTAB.
126 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
127 Pedro Alves <palves@redhat.com>
129 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
130 size parameter passed to readlink by one byte.
131 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
132 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
133 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
134 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
137 2012-11-26 Yao Qi <yao@codesourcery.com>
139 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
140 extraneous parentheses.
142 2012-11-26 Yao Qi <yao@codesourcery.com>
144 * remote.c (remote_start_remote): Typo fix.
146 2012-11-23 David S. Miller <davem@davemloft.net>
148 * sparc-tdep.h (struct sparc_fpregset): New data structure.
149 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
150 sparc32_sol2_fpregset): Declare new globals.
151 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
153 * sparc64-tdep.h (sparc64_supply_fpregset,
154 sparc64_collect_fpregset): Likewise.
155 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
157 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
158 (sparc_fpregset): Declare new global.
159 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
161 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
163 (fill_fpregset): Likewise.
164 (_initialize_sparc_linux_nat): Set sparc_fpregset to
165 sparc32_bsd_fpregset.
166 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
167 sparc32_bsd_fpregset down into handler.
168 (sparc32_linux_collect_core_fpregset): Likewise.
169 * sparc-nat.c (sparc_fpregset): Define.
170 (sparc_supply_fpregset): Add 'fpregset' argument.
171 (sparc_collect_fpregset): Likewise.
172 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
173 into fpregset handler.
174 (sparc_store_inferior_registers): Likewise.
175 (_initialize_sparc_nat): Set sparc_fpregset to
176 sparc32_sunos4_fpregset if NULL.
177 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
179 (fill_fpregset): Likewise.
180 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
181 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
182 use it to compute offsets.
183 (sparc32_collect_fpregset): Likewise.
184 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
185 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
187 (fill_fpregset): Likewise.
188 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
190 (sparc64_linux_collect_core_fpregset): Likewise.
191 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
192 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
193 use it to compute offsets.
194 (sparc64_collect_fpregset): Likewise.
195 (sparc64_bsd_fpregset): Define.
196 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
197 sparc64_bsd_fpregset down into handler.
198 (sparc64fbsd_collect_fpregset): Likewise.
199 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
200 and pass sparc{32,64}_bsd_fpregset down into handler.
201 (sparc64nbsd_collect_fpregset): Likewise.
202 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
203 sparc64_bsd_fpregset down into handler.
204 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
205 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
206 to sparc32_bsd_fpregset.
207 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
208 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
209 (sparc32nbsd_supply_fpregset): Likewise.
211 2012-11-21 Tom Tromey <tromey@redhat.com>
213 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
215 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
217 * c-typeprint.c (c_type_print_base): Update.
219 2012-11-21 Yao Qi <yao@codesourcery.com>
222 * gdbarch.sh (smash_text_address): Remove.
223 * gdbarch.c, gdbarch.h: Regenerate.
224 * arm-tdep.c (arm_smash_text_address): Remove.
225 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
226 * hppa-tdep.c (hppa_smash_text_address): Remove.
227 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
228 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
230 * coffread.c (coff_symtab_read): Caller update.
231 * dbxread.c (process_one_symbol): Likewise.
232 * elfread.c (record_minimal_symbol): Likewise.
233 * somread.c (som_symtab_read): Likewise.
235 2012-11-20 Pierre Muller <muller@sourceware.org>
237 ARI fixes: sprintf rule.
238 Replace sprintf function calls for char arrays by
239 calls to xsnprintf calls.
240 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
241 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
242 (arm_neon_quad_read, arm_pseudo_read): Ditto.
243 (arm_neon_quad_write, arm_pseudo_write): Ditto.
244 * breakpoint.c (condition_completer): Ditto.
245 (create_tracepoint_from_upload): Ditto.
246 * dwarf2read.c (file_full_name): Ditto.
247 * gcore.c (gcore_command): Ditto.
248 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
249 * go32-nat.c (go32_sysinfo): Ditto.
250 * interps.c (interp_set): Ditto.
251 * m32c-tdep.c (make_types): Ditto.
252 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
253 * remote-m32r-sdi.c (m32r_open): Ditto.
254 * sol-thread.c (td_err_string): Ditto.
255 (td_state_string, solaris_pid_to_str): Ditto.
256 * symtab.c (gdb_mangle_name): Ditto.
257 * cli/cli-script.c (execute_control_command): Ditto.
258 (define_command, document_command): Ditto.
259 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
260 * tui/tui-stack.c (tui_make_status_line): Ditto.
261 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
263 2012-11-20 Mike Frysinger <vapier@gentoo.org>
265 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
266 it when looking at ptr->func.
267 * command.h (complete_on_cmdlist): Add a fourth arg.
268 * completer.c (complete_line_internal): Add local ignore_help_classes,
269 and set it to 1 when reason is not handle_help. Pass this down to
270 lookup_cmd_1 and complete_on_cmdlist.
272 2012-11-20 Tom Tromey <tromey@redhat.com>
274 * completer.c (count_struct_fields): Remove.
275 (expression_completer): Don't call count_struct_fields.
277 2012-11-20 Pedro Alves <palves@redhat.com>
279 * annotate.c (breakpoints_changed): Rename to ...
280 (annotate_breakpoints_changed): ... this.
281 (annotate_stopped, breakpoint_changed): Adjust caller.
282 * annotate.h (breakpoints_changed): Rename to ...
283 (annotate_breakpoints_changed): ... this.
284 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
285 (do_map_commands_command, init_raw_breakpoint, clear_command)
286 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
288 2012-11-20 David S. Miller <davem@davemloft.net>
290 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
291 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
293 (get_cores_used_by_process): Update comment.
295 2012-11-20 Yao Qi <yao@codesourcery.com>
297 * objfiles.c (init_entry_point_info): Remove trailing spaces.
299 2012-11-20 Yao Qi <yao@codesourcery.com>
301 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
302 to deprecated_context_hook.
304 2012-11-19 Yao Qi <yao@codesourcery.com>
306 * infrun.c (infwait_state): Add static.
308 2012-11-16 Keith Seitz <keiths@redhat.com>
311 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
312 parameter and pass it to lookup_symbol_file.
313 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
314 to search base classes.
315 (cp_lookup_symbol_namespace): Likewise.
316 (lookup_namespace_scope): Likewise.
317 (lookup_symbol_file): Add SEARCH parameter.
318 If SEARCH is non-zero and no symbol is found, lookup the class
319 and call cp_lookup_nested_symbol.
320 (find_symbol_in_baseclass): New function.
321 (cp_lookup_nested_symbol): Do not let
322 cp_lookup_symbol_in_namespace search through base classes.
323 Do that later when there is no global symbol match.
325 2012-11-16 Doug Evans <dje@google.com>
327 * main.c (gdb_datadir_provided): New static global.
328 (get_init_files): If --data-directory is provided,
329 and SYSTEM_GDBINIT lives in data-directory, look for it there.
332 2012-11-15 Pierre Muller <muller@sourceware.org>
334 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
335 * gdb_stat.h: Delete. Moved to common directory.
336 * common/gdb_stat.h: New file.
337 * gdb_wait.h: Delete. Moved to common directory.
338 * common/gdb_wait.h: New file.
339 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
341 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
343 (stat.h rule): Adapt to new gdb_stat.h location.
344 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
346 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
349 2012-11-15 Pierre Muller <muller@sourceware.org>
351 * configure.ac (AC_HEADER_STAT): Remove.
352 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
353 and corresponding code.
354 * configure: Regenerate.
355 * config.in: Regenerate.
357 2012-11-15 Pierre Muller <muller@sourceware.org>
359 ARI xasprintf rule fixes.
360 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
361 instead of xasprintf.
362 (open_and_init_dwp_file): Ditto.
364 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
366 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
369 2012-11-14 Tom Tromey <tromey@redhat.com>
371 * configure, config.in: Rebuild.
372 * configure.ac: Don't check for ctype.h, time.h.
373 * expprint.c: Don't use HAVE_CTYPE_H.
375 2012-11-13 Tom Tromey <tromey@redhat.com>
377 * gdbarch.h, gdbarch.c: Rebuild.
378 * gdbarch.sh (set_target_gdbarch): Rename from
379 deprecated_target_gdbarch_select_hack.
380 * arch-utils.c (gdbarch_update_p): Update.
381 (set_gdbarch_from_file): Update.
383 2012-11-14 Pierre Muller <muller@sourceware.org>
385 * MAINTAINERS (Responsible Maintainers/misc): Add myself
386 as responsible of contrib/ari directory.
388 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
389 Yao Qi <yao@codesourcery.com>
391 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
393 (arm_m_exception_cache, arm_m_exception_this_id)
394 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
395 (arm_m_exception_unwind): New.
396 (arm_gdbarch_init): Register arm_m_exception_unwind.
398 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
400 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
401 parameter COUNT, for pattern filling of memory regions.
404 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
406 * disasm.h (DISASSEMBLY_FILENAME): New macro.
407 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
408 to print_source_lines ().
409 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
411 * source.c (print_source_lines_base): Prefix source line with
412 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
414 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
416 * symtab.h (print_source_lines_flags): New enum.
417 * source.c (print_source_lines_base): Change noerror to flags.
418 (print_source_lines): Change noerror to flags.
420 2012-11-13 Pierre Muller <muller@sourceware.org>
422 ARI fixes: Avoid sprintf function use rule.
423 * charset.c (convert_between_encodings): Use xsnprintf.
424 * cli-out.c (cli_field_int): Likewise.
425 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
426 * expprint.c (op_name_standard): Likewise.
427 * frv-tdep.c (set_variant_num_gprs): Likewise.
428 (set_variant_num_fprs): Likewise.
429 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
430 * nto-tdep.c (nto_find_and_open_solib): Likewise.
431 (nto_init_solib_absolute_prefix): Likewise.
432 * source.c (init_source_path): Likewise.
433 (print_source_lines_base): Likewise.
434 * valprint.c (print_wchar): Likewise.
435 * mi/mi-out.c (mi_field_int): Likewise.
436 windows-nat.c (windows_pid_to_exec_file): Likewise.
437 (windows_create_inferior): Likewise.
438 (_initialize_check_for_gdb_ini): Likewise.
440 2012-11-12 Joel Brobecker <brobecker@adacore.com>
442 * frame.h (deprecated_frame_register_read): Renames
444 * frame.c (deprecated_frame_register_read): Renames
445 frame_register_read. Update all callers.
446 * i386-tdep.c: Update all callers of frame_register_read.
447 * infcmd.c: Likewise.
449 * mips-tdep.c: Likewise.
450 * mt-tdep.c: Likewise.
451 * sh64-tdep.c: Likewise.
453 2012-11-12 Joel Brobecker <brobecker@adacore.com>
455 * frame.h (frame_register_read): Remove FIXME comment.
456 * frame.c (frame_register_read): Add suggestion explaining
457 which function to use in place of this one.
459 2012-11-12 Tom Tromey <tromey@redhat.com>
461 * python/python.c (start_type_printers): Initialize 'result_obj'.
463 2012-11-12 Tom Tromey <tromey@redhat.com>
466 * data-directory/Makefile.in (PYTHON_FILES): Add
468 * python/lib/gdb/command/type_printers.py: New file.
469 * python/lib/gdb/command/types.py (TypePrinter): New class.
470 (_get_some_type_recognizers, get_type_recognizers,
471 apply_type_recognizers, register_type_printer): New
473 * python/py-objfile.c (objfile_object) <type_printers>: New
475 (objfpy_dealloc): Decref new field.
476 (objfpy_new): Set new field.
477 (objfpy_get_type_printers, objfpy_set_type_printers): New
479 (objfile_to_objfile_object): Set new field.
480 (objfile_getset): Add "type_printers".
481 * python/py-progspace.c (pspace_object) <type_printers>: New
483 (pspy_dealloc): Decref new field.
484 (pspy_new): Set new field.
485 (pspy_get_type_printers, pspy_set_type_printers): New functions.
486 (pspace_to_pspace_object): Set new field.
487 (pspace_getset): Add "type_printers".
488 * python/python.c (start_type_printers, apply_type_printers,
489 free_type_printers): New functions.
490 (_initialize_python): Set gdb.type_printers.
491 * python/python.h (start_type_printers, apply_type_printers,
492 free_type_printers): Declare.
493 * typeprint.c (type_print_raw_options, default_ptype_flags):
494 Update for new fields.
495 (do_free_global_table, create_global_typedef_table,
496 find_global_typedef): New functions.
497 (find_typedef_in_hash): Use find_global_typedef.
498 (whatis_exp): Use create_global_typedef_table. Change cleanup
500 * typeprint.h (struct type_print_options) <global_typedefs,
501 global_printers>: New fields.
503 2012-11-12 Tom Tromey <tromey@redhat.com>
505 * c-typeprint.c (find_typedef_for_canonicalize,
506 print_name_maybe_canonical): New functions.
507 (c_print_type): Look up type name.
508 (cp_type_print_derivation_info): Add flags argument. Use
509 print_name_maybe_canonical.
510 (cp_type_print_method_args): Add wrapping.
511 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
512 (c_type_print_template_args): New function.
513 (c_type_print_base): Change wrapping. Use
514 print_name_maybe_canonical.
515 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
517 * gdbtypes.c (types_equal): No longer static.
518 * gdbtypes.h (types_equal): Declare.
519 * typeprint.c (type_print_raw_options, default_ptype_flags):
521 (struct typedef_hash_table): New.
522 (hash_typedef_field, eq_typedef_field,
523 recursively_update_typedef_hash, add_template_parameters,
524 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
525 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
526 copy_typedef_hash, find_typedef_in_hash): New functions.
527 * typeprint.h (struct type_print_options) <local_typedefs>:
529 (recursively_update_typedef_hash, add_template_parameters,
530 create_typedef_hash, free_typedef_hash,
531 make_cleanup_free_typedef_hash, copy_typedef_hash,
532 find_typedef_in_hash): Declare.
534 2012-11-12 Tom Tromey <tromey@redhat.com>
536 * cp-support.c (inspect_type,
537 replace_typedefs_qualified_name, replace_typedefs): Add
538 finder, data arguments. Call as needed.
539 (cp_canonicalize_string_full): New function.
540 (cp_canonicalize_string_no_typedefs): Rewrite.
541 * cp-support.h (canonicalization_ftype): New typedef.
542 (cp_canonicalize_string_full): Declare.
544 2012-11-12 Tom Tromey <tromey@redhat.com>
547 * c-typeprint.c (c_type_print_base): Handle print_method and
548 print_typedefs flags.
549 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
550 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
552 * typeprint.c (type_print_raw_options, default_ptype_flags):
553 Update for new field.s
554 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
555 (setprinttypelist, showprinttypelist, print_methods,
556 print_typedefs): New globals.
557 (set_print_type, show_print_type, set_print_type_methods,
558 show_print_type_methods, set_print_type_typedefs,
559 show_print_type_typedefs): New functions.
560 (_initialize_typeprint): Update documentation. Add "print
561 type methods" and "print type typedefs" parameters.
562 * typeprint.h (struct type_print_options) <print_methods,
563 print_typedefs>: New fields.
565 2012-11-12 Tom Tromey <tromey@redhat.com>
567 * c-typeprint.c (cp_type_print_method_args): Add flags
568 argument. Call c_print_type, not type_print.
569 (c_type_print_base): Call c_print_type, not type_print.
572 2012-11-12 Tom Tromey <tromey@redhat.com>
574 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
575 to type-printing functions.
576 * ada-lang.h (ada_print_type): Add argument.
577 * ada-typeprint.c (print_array_type, print_variant_clauses,
578 print_variant_part, print_selected_record_field_types,
579 print_record_field_types, print_unchecked_union_type,
580 print_func_type, ada_print_type): Add flags argument.
581 (ada_print_typedef): Update.
582 * c-exp.y (OPERATOR conversion_type_id): Update.
583 * c-lang.h (c_print_type, c_type_print_base): Update.
584 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
585 c_type_print_modifier, c_type_print_args,
586 c_type_print_varspec_suffix, c_type_print_base): Add flags
588 * cp-valprint.c (cp_print_class_member): Update.
589 * dwarf2read.c (dwarf2_compute_name): Update.
590 * f-lang.h (f_print_type): Add argument.
591 * f-typeprint.c (f_print_type): Add flags argument.
592 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
593 * go-lang.h (go_print_type): Add argument.
594 * go-typeprint.c (go_print_type): Add flags argument.
595 * jv-lang.h (java_print_type): Add argument.
596 * jv-typeprint.c (java_type_print_base, java_print_type): Add
598 * language.c (unk_lang_print_type): Add flags argument.
599 * language.h (struct language_defn) <la_print_type>: Add flags
601 (LA_PRINT_TYPE): Likewise.
602 * m2-lang.h (m2_print_type): Add argument.
603 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
604 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
605 m2_unbounded_array, m2_record_fields): Add flags argument.
606 * p-lang.h (pascal_print_type, pascal_type_print_base,
607 pascal_type_print_varspec_prefix): Add argument.
608 * p-typeprint.c (pascal_print_type,
609 pascal_type_print_varspec_prefix, pascal_print_func_args,
610 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
612 * symmisc.c (print_symbol): Update.
613 * typeprint.c (type_print_raw_options, default_ptype_flags):
615 (type_print): Update.
616 * typeprint.h (struct type_print_options): New.
617 (type_print_raw_options): Declare.
618 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
620 2012-11-10 Keith Seitz <keiths@redhat.com>
622 * breakpoint.c (clear_command): Add cleanup for
623 sals.sals if an argument is given.
625 * linespec.c (parse_linespec): Do cleanups after
626 parsing a convenience variable.
628 2012-11-10 Keith Seitz <keiths@redhat.com>
631 * c-valprint.c (c_val_print): For character arrays
632 with "print null" option on, print ellipses if
633 the output is truncated and the next character is not \000.
634 * valprint.c (MAX_WCHARS): Define.
635 (WCHAR_BUFLEN): Likewise.
636 (WCHAR_BUFLEN_MAX): Likewise.
637 (struct converted_character): New structure.
638 (count_next_character): New function.
639 (print_converted_chars_to_obstack): New function.
640 (generic_printstr): Rewrite using count_next_character
641 and print_converted_chars_to_obstack.
643 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
645 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
646 while executing the gdb command.
647 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
648 are called from prompt_for_continue.
649 * tui/tui-io.c (tui_redisplay_readline): Likewise.
651 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
655 * tui/tui.c (tui_rl_command_key): Do not call execute_command
656 but insert the command to execute in readline's buffer.
658 2012-11-09 Tom Tromey <tromey@redhat.com>
660 * gdbarch.sh (target_gdbarch): Remove macro.
661 (get_target_gdbarch): Rename to target_gdbarch.
662 * gdbarch.c, gdbarch.h: Rebuild.
663 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
664 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
665 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
666 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
667 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
668 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
669 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
670 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
671 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
672 procfs.c, progspace.c, ravenscar-thread.c, record.c,
673 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
674 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
675 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
676 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
677 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
678 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
679 target-descriptions.c, target.c, target.h, tracepoint.c,
680 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
681 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
682 python/py-inferior.c, python/python.c: Update.
684 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
686 * source.c (print_source_lines_base): Add fullname field giving
687 full path to file in mi output.
688 * NEWS: Mention the new fullname field.
690 2012-11-09 Yao Qi <yao@codesourcery.com>
692 * NEWS: Mention the fix to the ambiguity of 'fo' command.
694 2012-11-09 Pedro Alves <palves@redhat.com>
698 * infrun.c: Include target-descriptions.h.
699 (follow_exec): Fetch new target description.
701 2012-11-09 Yao Qi <yao@codesourcery.com>
703 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
706 2012-11-09 Yao Qi <yao@codesourcery.com>
708 * breakpoint.c: Declare set_tracepoint_count.
709 (install_breakpoint): Call set_tracepoint_count if B is a
711 (trace_command): Don't call set_tracepoint_count. Re-indent.
712 (strace_command, ftrace_command):
713 (create_tracepoint_from_upload): Likewise.
715 2012-11-09 Pedro Alves <palves@redhat.com>
717 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
718 (get_target_gdbarch) <gdbarch.h>: New function.
719 (startup_gdbarch) <gdbarch.h>: Declare.
720 <gdbarch.c> (target_gdbarch): Delete.
721 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
722 current inferior's gdbarch.
723 <gdbarch.c> (get_target_gdbarch): New function.
724 * inferior.c: Include target-descriptions.h.
725 (free_inferior): Free target description info.
726 (add_inferior_with_spaces): Set the inferior's initial
728 (clone_inferior_command): Copy the original inferior's target
729 description if it was user specified.
730 (initialize_inferiors): Add comment.
731 * inferior.h (struct target_desc_info): Forward declare.
732 (struct inferior) <gdbarch>: New field.
733 * linux-nat.c: Include target-descriptions.h.
734 (linux_child_follow_fork): Copy the parent's architecture and
735 target description to the child.
736 * target-descriptions.c: Include inferior.h.
737 (struct target_desc_info): New structure, holding the equivalents
739 (target_desc_fetched, current_target_desc)
740 (target_description_filename): ... these removed globals.
741 (get_tdesc_info, target_desc_info_from_user_p)
742 (copy_inferior_target_desc_info, target_desc_info_free): New.
743 (target_desc_fetched, current_target_desc)
744 (target_description_filename): Reimplemented as convenience
746 (tdesc_filename_cmd_string): New global.
747 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
748 tdescs filename ..." commands to the per-inferior equivalent.
749 (show_tdesc_filename_cmd): Get the value to show from the
750 per-inferior description filename.
751 (_initilize_target_descriptions): Change the "set/show tdesc
752 filename" commands' variable.
753 * target-descriptions.h (struct target_desc, struct target_desc_info)
754 (struct inferior): Forward declare.
755 (target_find_description, target_clear_description)
756 (target_current_description): Adjust comments.
757 (copy_inferior_target_desc_info, target_desc_info_free)
758 (target_desc_info_from_user_p). Declare.
760 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
762 * tui/tui-hooks.c (tui_about_to_proceed): New function.
763 (tui_target_wait_hook): Remove.
764 (tui_install_hooks): Install the about_to_proceed observer.
765 (tui_remove_hooks): And remove it here.
767 2012-11-08 Tom Tromey <tromey@redhat.com>
769 * linux-tdep.c (linux_make_siginfo_note): New function.
770 (linux_make_corefile_notes): Use it.
771 * corelow.c (get_core_siginfo): New function.
772 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
774 2012-11-08 Tom Tromey <tromey@redhat.com>
777 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
778 (zlib_decompress_section): Remove.
779 (gdb_bfd_map_section): Only check for compressed section
780 in mmap case. Use bfd_get_full_section_contents.
781 * osabi.c (check_note): Add 'sectsize' argument. Read
783 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
784 section data. Update for check_note change.
785 * xcoffread.c (xcoff_initial_scan): Use
786 bfd_get_full_section_contents.
787 * py-auto-load.c (auto_load_section_scripts): Use
788 bfd_get_full_section_contents.
789 * contrib/cc-with-tweaks.sh: Add -Z option.
791 2012-11-08 Tom Tromey <tromey@redhat.com>
793 * python/py-bpevent.c: Include defs.h.
794 * python/py-continueevent.c: Include defs.h.
795 * python/py-event.c: Include defs.h.
796 * python/py-event.h: Don't include defs.h.
797 * python/py-events.h: Don't include defs.h.
798 * python/py-evts.c: Include defs.h.
799 * python/py-exitedevent.c: Include defs.h.
800 * python/py-newobjfileevent.c: Include defs.h.
801 * python/py-signalevent.c: Include defs.h.
802 * python/py-stopevent.c: Include defs.h.
803 * python/py-threadevent.c: Include defs.h.
805 2012-11-08 Pierre Muller <muller@sourceware.org>
807 * update-web-ari.sh (print_heading): Add number of files
809 (nb_files): New variable counting the number of sources
810 files found by gdb_find.sh script.
811 (debug_awk): New variable to allow extra debug output.
812 (indexes): Add more information if DEBUG_AWK is set.
814 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
816 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
817 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
818 following the change in PLT call stubs on linker.
820 2012-11-08 Pierre Muller <muller@sourceware.org>
822 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
824 (AWK): Use = instead of == for sh test to avoid warning.
825 (Linux rule): Correct [:digit] into [[:digit:]].
826 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
827 (vasprintf rule): Adapt to common subdirectory moves.
828 (xasprintf rule): Idem.
829 (xvasprintf rule): Idem.
830 (var_boolean rule): Accept occurence in == or != test.
832 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
834 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
836 * tui/tui-hooks.c (tui_inferior_exit): New function.
837 (tui_detach_hook): Remove.
838 (tui_install_hooks): Install the inferior exit observer.
839 (tui_remove_hooks): Remove it.
841 2012-11-08 Yao Qi <yao@codesourcery.com>
844 * source.c (_initialize_source): Call add_com_alias to abbreviate
845 'forward-search' as 'fo'.
847 2012-11-07 Pedro Alves <palves@redhat.com>
849 * arm-tdep.c: Make defs.h be the first include.
850 * coff-pe-read.c: Ditto.
854 * ppcnbsd-nat.c: Ditto.
855 * ada-varobj.h: Don't include defs.h.
856 * i386-darwin-tdep.h: Ditto.
859 2012-11-07 Pedro Alves <palves@redhat.com>
861 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
864 2012-11-07 Pierre Muller <muller@sourceware.org>
866 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
867 File already uses "gdb_dirent.h" header.
869 2012-11-07 Yao Qi <yao@codesourcery.com>
871 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
874 2012-11-06 Tom Tromey <tromey@redhat.com>
876 * target.h (inferior_has_forked, inferior_has_vforked)
877 (inferior_has_execd, inferior_has_called_syscall): Remove
880 2012-11-06 Pierre Muller <muller@sourceware.org>
882 * remote.c (remote_insert_hw_breakpoint): ARI fix,
883 add missing internalization markup.
885 2012-11-06 Pedro Alves <palves@redhat.com>
889 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
891 2012-11-06 Pierre Muller <muller@sourceware.org>
893 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
896 2012-11-05 Joel Brobecker <brobecker@adacore.com>
898 * gnulib/update-gnulib.sh: New script.
900 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
902 * MAINTAINERS: Update my email address.
904 2012-11-05 Tom Tromey <tromey@redhat.com>
906 * frame.c (put_frame_register): Don't use temporary buffer.
908 2012-11-05 Pedro Alves <palves@redhat.com>
910 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
911 child. Clear 'pending_detach'.
912 * infrun.c (handle_vfork_child_exec_or_exit): Clear
913 'pending_detach' in the vfork parent.
915 2012-11-05 Doug Evans <dje@google.com>
917 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
918 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
919 * dwarf2read.c: #include "elf-bfd.h".
920 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
921 (dwop_section_names): Renamed from dwo_section names. All uses
922 updated. Add entries for .debug_cu_index, .debug_tu_index.
923 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
925 (struct dwp_sections): New type.
926 (struct virtual_dwo_sections): New type.
927 (struct dwp_hash_table): New type.
928 (struct dwp_file): New type.
929 (init_cutu_and_read_dies): Ensure DWO info/types section has been
930 read in. Handle DWOs coming from DWP files.
931 (lookup_dwo_file_slot): New function.
932 (dwarf2_locate_dwo_sections): Move definition closer to use.
933 (create_dwo_debug_info_hash_table_reader): Renamed from
934 create_debug_info_hash_table_reader. All callers updated.
935 (create_dwo_debug_info_hash_table): Renamed from
936 create_debug_info_hash_table. All callers updated.
937 (create_dwp_hash_table): New function.
938 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
939 (lookup_dwo_in_dwp): New function.
940 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
941 is_dwp. All callers updated.
942 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
943 (open_and_init_dwo_file): Renamed from init_dwo_file.
945 (lookup_dwo_file): Delete.
946 (dwarf2_locate_dwp_sections): New function.
947 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
948 (allocate_dwp_loaded_cutus_table): New function.
949 (open_and_init_dwp_file): New function.
950 (lookup_dwo_cutu): New function.
951 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
953 2012-11-03 Yao Qi <yao@codesourcery.com>
956 * breakpoint.c (trace_pass_set_count): Call
957 observer_notify_breakpoint_modified instead of
958 observer_notify_tracepoint_modified.
959 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
961 2012-11-02 Tom Tromey <tromey@redhat.com>
963 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
964 argument to complete_on_enum.
966 2012-11-02 Tom Tromey <tromey@redhat.com>
968 * configure: Rebuild.
969 * configure.ac (build_warnings): Add -Wempty-body.
970 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
971 * remote.c (handle_notification): Use braces for empty 'else' body.
972 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
974 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
976 * solib-som.c (som_relocate_section_addresses): Use braces
977 for empty 'else' body.
978 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
979 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
981 2012-11-02 Pedro Alves <palves@redhat.com>
985 * infrun.c (handle_inferior_event)
986 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
987 null_ptid before handling a vfork child exec or exit. Switch to
988 the event ptid afterwards.
990 2012-11-02 Yao Qi <yao@codesourcery.com>
992 * std-operator.def: Remove OP_LABELED.
993 * eval.c: Remove the declaration of 'get_label'.
995 (evaluate_struct_tuple): Remove code handling OP_LABELED.
997 Remove local variable 'variantno' and related code.
998 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1000 * expprint.c (print_subexp_standard): Likewise.
1001 (dump_subexp_body_standard): Likewise.
1002 * parse.c (operator_length_standard): Likewise.
1004 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1006 Incorporate ARI web page generator into GDB sources.
1007 * contrib/ari/create-web-ari-in-src.sh: New file.
1008 * contrib/ari/gdb_ari.sh: New file.
1009 * contrib/ari/gdb_find.sh: New file.
1010 * contrib/ari/update-web-ari.sh: New file.
1012 2012-10-31 Tom Tromey <tromey@redhat.com>
1014 * gdbarch.c: Rebuild.
1015 * gdbarch.sh: Remove references to gdbarch_swap.
1016 * corelow.c (core_open): Remove obsolete comment.
1018 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1021 * c-typeprint.c (c_print_type): Don't print a space for vector
1022 types, this is handled within the suffix.
1023 (c_type_print_varspec_suffix): Add a space to vector suffix.
1025 2012-10-26 Pedro Alves <palves@redhat.com>
1027 * amd64-tdep.c (amd64_relocate_instruction): Use
1028 store_unsigned_integer instead of memcpy.
1029 * i386-tdep.c (i386_relocate_instruction): Ditto.
1031 2012-10-26 Pedro Alves <palves@redhat.com>
1033 * infrun.c (handle_inferior_event): Merge handling of
1034 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1037 2012-10-26 Pedro Alves <palves@redhat.com>
1039 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1042 2012-10-26 Pedro Alves <palves@redhat.com>
1044 * target.c (target_waitstatus_to_string): Handle
1045 TARGET_WAITKIND_VFORK_DONE.
1047 2012-10-26 Pedro Alves <palves@redhat.com>
1049 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1050 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1052 2012-10-24 Tristan Gingold <gingold@adacore.com>
1054 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1057 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1059 * ravenscar-thread.c (ravenscar_wait): Only update the list
1060 of threads and inferior_ptid if the inferior is still alive.
1062 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1064 * ada-lang.c (is_known_support_routine): Use lbasename when
1065 matching the symtab's filename against
1066 known_runtime_file_name_patterns.
1068 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1070 * ada-lang.c (ada_same_array_size_p): New function.
1071 (ada_promote_array_of_integrals): New function.
1072 (coerce_for_assign): Add handling of arrays where the elements
1073 are integrals of a smaller size than the size of the target
1076 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1078 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1079 against maximum exponent value.
1081 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1083 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1086 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1088 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1089 strip typedef layer when computing the fixed type's field type,
1090 only when computing its size.
1092 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1095 * i386-tdep.c (i386_return_value): Handle complex double and long
1098 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1100 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1101 New local variable args_len.
1102 Quote the name of the executable when computing the command line.
1104 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1109 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1111 * amd64-tdep.c (amd64_classify): Classify complex types.
1112 (amd64_return_value): Handle the COMPLEX_X87 class.
1114 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1116 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1117 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1119 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1121 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1123 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1124 to amd64_windows_auto_wide_charset.
1126 2012-10-23 Yao Qi <yao@codesourcery.com>
1128 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1129 * event-top.h: Remove its declaration.
1130 (async_request_quit): Call mark_async_signal_handler instead of
1131 mark_async_signal_handler_wrapper.
1132 (async_do_nothing, async_disconnect): Likewise.
1133 (async_stop_sig): Likewise.
1134 * remote.c (handle_remote_sigint): Likewise.
1135 (handle_remote_sigint_twice): Likewise.
1137 2012-10-23 Yao Qi <yao@codesourcery.com>
1139 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1140 with 'static struct async_signal_handler *'.
1141 (sighup_token, sigquit_token, sigstp_token): Likewise.
1143 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1145 * gdbarch.sh (function_list): Use 'pstring' when printing
1146 a variable which could return NULL.
1147 * gdbarch.c: Regenerate.
1149 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1150 Tom Tromey <tromey@redhat.com>
1152 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1153 inneffective if condition by gdb assertion. Add function
1154 description comment.
1156 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1158 * parser-defs.h (struct exp_descriptor): Document constraint
1159 on return value for "op_name" callbacks.
1161 2012-10-18 Tom Tromey <tromey@redhat.com>
1163 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1164 * symtab.c (iterate_over_some_symtabs): Constify.
1165 * source.h (symtab_to_fullname): Return 'const char *'.
1166 * source.c (symtab_to_fullname): Return 'const char *'.
1167 * python/py-symtab.c (stpy_fullname): Constify.
1168 * cli/cli-cmds.c (edit_command): Constify.
1169 * breakpoint.c (print_breakpoint_location)
1170 (update_static_tracepoint): Constify.
1172 2012-10-18 Tom Tromey <tromey@redhat.com>
1174 * breakpoint.c (compare_breakpoints): Fix comparison.
1176 2012-10-18 Tom Tromey <tromey@redhat.com>
1178 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1179 gdb_wchar_t to convert_between_encodings.
1181 2012-10-17 Yao Qi <yao@codesourcery.com>
1183 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1184 more parameter 'inferior'.
1185 * corefile.c (write_memory_with_notification): Caller update.
1187 * mi/mi-cmd-var.c: Include "mi-main.h".
1188 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1189 to 1 and restore it later.
1190 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1191 and "data-write-memory-bytes.
1192 * mi/mi-interp.c: Include objfiles.h.
1193 (mi_interpreter_init): Call observer_attach_memory_changed.
1194 (mi_memory_changed): New.
1195 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1198 * NEWS: Mention new MI notification "memory-changed".
1200 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1202 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1204 2012-10-15 Doug Evans <dje@google.com>
1206 New option -nh: inhibit loading of ~/.gdbinit.
1207 * NEWS: Mention -nh.
1208 * main.c (captured_main): Recognize and process -nh.
1209 (print_gdb_help): Mention -nh.
1210 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1212 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1216 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1218 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1219 nor pc_regnum_from_eax.
1220 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1221 nor pc_regnum_from_eax.
1223 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1225 Fix entry values resolving in inlined frames.
1226 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1227 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1230 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1232 * configure.ac: Build with -DMS_WIN64 if building with Python
1233 enabled using GCC on amd64-windows.
1234 * configure: Regenerate.
1236 2012-10-15 Tom Tromey <tromey@redhat.com>
1239 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1242 2012-10-15 Tom Tromey <tromey@redhat.com>
1245 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1247 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1249 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1250 reset thread numbering back to 1.
1252 2012-10-11 Doug Evans <dje@google.com>
1254 PR breakpoints/14643.
1255 * linespec.c (struct ls_parser): New member keyword_ok.
1256 (linespec_lexer_lex_string): Add comment.
1257 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1259 (parse_linespec): Set keyword_ok.
1261 2012-10-10 Doug Evans <dje@google.com>
1263 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1264 "0x" prefix on address in log message.
1266 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1267 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1268 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1269 (lookup_dwo_file): Add const to dwo_name parameter.
1270 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1272 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1274 Fix crash during stepping on ppc32.
1275 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1278 2012-10-03 Doug Evans <dje@google.com>
1281 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1283 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1285 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1286 output and use uint32_t not long to ensure 4 byte size.
1288 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1290 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1293 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1295 * target.c (simple_search_memory): Include access length in
1298 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1299 Edjunior Machado <emachado@linux.vnet.ibm.com>
1302 * solib.c (solib_find): Prevent GDB from loading native libraries when
1303 debugging a cross-target corefile.
1305 2012-09-28 selven <pcthegreat@gmail.com>
1307 Make definition match declaration.
1309 * regcache.c (regcache_register_status): Change return type to
1310 enum register_status.
1312 2012-09-28 Yao Qi <yao@codesourcery.com>
1314 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1315 write_memory_with_notification instead of write_memory.
1316 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1317 instead of target_write_memory.
1319 2012-09-28 Yao Qi <yao@codesourcery.com>
1321 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1322 when the length of content is not an even number.
1324 2012-09-27 Tom Tromey <tromey@redhat.com>
1326 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1327 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1329 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1331 * sol-thread.c (sol_thread_fetch_registers)
1332 (sol_thread_store_registers): Delete commented out code.
1334 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1336 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1337 Move these functions to sparc-sol-thread.c.
1338 * sparc-sol-thread.c: New file.
1339 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1340 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1342 * configure: Regenerate.
1344 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1346 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1347 Remove commented-out code.
1349 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1351 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1352 Enable this code for sparc hosts only.
1354 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1356 * procfs.h (procfs_find_LDT_entry): Add declaration.
1357 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1358 function procfs_find_LDT_entry.
1360 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1362 * procfs.c (proc_get_LDT_entry): Make static.
1364 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1366 * procfs.c (proc_find_memory_regions): Fix declaration.
1368 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1370 * amd64-tdep.c (amd64_return_value): Revert previous change
1371 that used TYPE_LENGTH directly.
1372 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1373 (bfin_store_return_value): Likewise.
1374 * cris-tdep.c (cris_store_return_value): Likewise.
1375 (cris_extract_return_value): Likewise.
1376 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1377 * hppa-tdep.c (hppa64_return_value): Likewise.
1378 * lm32-tdep.c (lm32_store_return_value): Likewise.
1379 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1380 * spu-tdep.c (spu_value_from_register): Likewise.
1381 * vax-tdep.c (vax_return_value): Likewise.
1383 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1385 * gdbtypes.c (lookup_array_range_type): Expand parameters
1386 LOW_BOUND and HIGH_BOUND to LONGEST.
1387 (lookup_string_range_type): Likewise.
1388 * gdbtypes.h (lookup_array_range_type): Likewise.
1389 (lookup_string_range_type): Likewise.
1390 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1391 Expand HIGHBOUND to ssize_t.
1392 (value_string): Likewise.
1393 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1394 (value_string): Likewise.
1396 2012-09-27 Yao Qi <yao@codesourcery.com>
1398 PR breakpoints/13898
1399 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1400 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1401 per breakpoint type.
1403 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1405 * procfs.c: Add gdb_bfd header.
1406 * rs6000-nat.c: Likewise.
1407 * solib-pa64.c: Likewise.
1408 * spu-linux-nat.c: Likewise.
1409 * windows-nat.c: Likewise.
1411 2012-09-26 Tom Tromey <tromey@redhat.com>
1413 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1415 2012-09-26 Tom Tromey <tromey@redhat.com>
1417 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1418 (read_common_block): Handle child DIEs with
1419 DW_AT_data_member_location.
1420 (new_symbol_full): Add special case for common blocks.
1422 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1423 Tom Tromey <tromey@redhat.com>
1425 * dwarf2read.c (read_common_block): Rewrite.
1426 (new_symbol_full): Handle DW_TAG_common_block.
1427 * f-lang.c (head_common_list, find_common_for_function):
1429 * f-lang.h (struct common_entry, struct saved_f77_common,
1430 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1431 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1432 BLANK_COMMON_NAME_LOCAL): Remove.
1433 (struct common_block): New.
1434 * f-valprint.c (list_all_visible_commons): Remove.
1435 (info_common_command_for_block): New function.
1436 (info_common_command): Use it.
1437 * stack.c (iterate_over_block_locals): Special case for
1438 COMMON_BLOCK_DOMAIN.
1439 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1441 (struct general_symbol_info) <value.common_block>: New field.
1442 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1444 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1445 Tom Tromey <tromey@redhat.com>
1447 * f-lang.c (allocate_saved_bf_node,
1448 allocate_saved_function_node, allocate_saved_f77_common_node,
1449 allocate_common_entry_node, tail_common_list, current_common,
1450 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1451 tmp_bf_ptr, add_common_block, add_common_entry,
1452 find_first_common_named, patch_common_entries,
1453 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1454 global_remote_debug, get_bf_for_fcn, saved_function_list,
1455 saved_function_list_end, clear_function_list, struct saved_fcn,
1456 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1457 SAVED_BF, SAVED_BF_PTR): Remove.
1458 * f-lang.h (tail_common_list, current_common,
1459 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1460 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1461 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1462 real_main_c_value): Remove.
1463 * f-valprint.c (there_is_a_visible_common_named): Remove.
1465 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1467 * breakpoint.c (update_global_location_list): Ignore previous
1468 duplicate status of a breakpoint when starting a new scan for
1469 duplicate breakpoints.
1471 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1472 PR breakpoints/14419
1473 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1474 support LLVM compiler.
1476 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1478 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1479 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1480 (bfin_store_return_value): Likewise.
1481 * cris-tdep.c (cris_store_return_value): Likewise.
1482 (cris_extract_return_value): Likewise.
1483 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1484 * hppa-tdep.c (hppa64_return_value): Likewise.
1485 * lm32-tdep.c (lm32_store_return_value): Likewise.
1486 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1487 * spu-tdep.c (spu_value_from_register): Likewise.
1488 * vax-tdep.c (vax_return_value): Likewise.
1490 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1492 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1493 parameter LEN to ssize_t.
1495 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1497 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1499 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1501 (alpha_store_return_value): Likewise.
1502 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1503 (amd64_push_arguments): Likewise.
1504 * ax-gdb.c (gen_trace_static_fields): Likewise.
1505 (gen_traced_pop): Likewise.
1506 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1507 * breakpoint.c (update_watchpoint): Likewise.
1508 * findcmd.c (parse_find_args): Use local variable for type
1510 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1511 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1512 (h8300_store_return_value): Likewise.
1513 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1514 Use i386_darwin_arg_type_alignment directly.
1515 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1516 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1517 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1518 (m68hc11_extract_return_value): Likewise.
1519 * mep-tdep.c (mep_push_dummy_call): Likewise.
1520 * printcmd.c (float_type_from_length): Likewise.
1521 * s390-tdep.c (s390_value_from_register): Likewise.
1522 * stack.c (read_frame_arg): Likewise.
1523 * tracepoint.c (encode_actions_1): Likewise.
1524 * valops.c (value_fetch_lazy): Use local variable for type
1525 instead of length. Use TYPE_LENGTH directly.
1526 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1528 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1530 * symtab.c (skip_prologue_sal): Fix typo in comment.
1532 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1534 * linespec.c (create_sals_line_offset): Fix typo in comment.
1536 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1538 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1539 use plongest to print the array size.
1541 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1543 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1544 * p-valprint.c (pascal_type_print_base): Likewise.
1546 2012-09-22 Yao Qi <yao@codesourcery.com>
1548 * remote.c (remote_get_trace_status): Remove setting default
1549 values of fields of 'ts'.
1551 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1553 Fix internal error on canonicalization of clang types.
1554 * cp-name-parser.y (operator): New comment at make_operator call for
1555 new, delete, new[] and delete[].
1556 (exp): Use "sizeof ". Add new comment at make_operator call.
1558 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1560 Fix disassemble without parameters in tailcall frame.
1561 * cli/cli-cmds.c (disassemble_current_function): Use
1562 get_frame_address_in_block.
1564 2012-09-21 Tom Tromey <tromey@redhat.com>
1566 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1567 TYPE_CODE_UNION>: Unify, removing a goto.
1569 2012-09-21 Tom Tromey <tromey@redhat.com>
1571 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1573 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1575 * findvar.c (read_frame_register_value): Mark the result value as
1576 optimized out if any of the input registers have been optimized out.
1578 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1580 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1582 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1584 * eval.c (evaluate_subexp_standard): Eliminate single-use
1587 2012-09-21 Yao Qi <yao@codesourcery.com>
1589 * mi/mi-interp.c: Declare mi_record_changed.
1590 (mi_interpreter_init): Call observer_attach_record_changed.
1591 (mi_record_changed): New.
1592 * record.c (record_open): Call observer_notify_record_changed.
1593 (cmd_record_stop): Call observer_notify_record_changed.
1596 2012-09-20 Tom Tromey <tromey@redhat.com>
1599 * python/python.c (finalize_python): New function.
1600 (_initialize_python): Make a final cleanup.
1602 2012-09-19 Doug Evans <dje@google.com>
1604 * buildsym.h (param_symbols): Delete, unused.
1605 (context_stack): Delete member "params", unused.
1606 * buildsym.c (push_context): Update.
1607 * dwarf2read.c (read_func_scope): Update.
1609 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1611 * sh-tdep.c (sh_register_convert_to_virtual)
1612 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1613 all callers. Just do a memcpy if not the little-endian case.
1615 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1616 set_gdbarch_double_format and set_gdbarch_long_double_format.
1617 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1618 set_gdbarch_double_format.
1619 * sh-tdep.c (sh_gdbarch_init): Likewise.
1621 * NEWS: Document the removal of SH's 'regs' command.
1622 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1625 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1627 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1630 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1632 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1633 language when iterating over symbols.
1635 2012-09-18 Yao Qi <yao@codesourcery.com>
1637 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1638 (mi_interpreter_init): Call observer_attach_tsv_created and
1639 observer_attach_tsv_deleted.
1640 (mi_tsv_created, mi_tsv_deleted): New.
1641 * tracepoint.c (delete_trace_state_variable): Call
1642 observer_notify_tsv_deleted.
1643 (trace_variable_command): Call observer_notify_tsv_created.
1644 (delete_trace_variable_command): Call
1645 observer_notify_tsv_deleted.
1646 (create_tsv_from_upload): Call observer_notify_tsv_created.
1649 2012-09-18 Yao Qi <yao@codesourcery.com>
1651 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1652 if traceframe changed.
1653 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1655 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1656 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1657 'traceframe_changed'.
1658 (mi_traceframe_changed): New.
1659 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1661 * NEWS: Mention the new MI notification.
1663 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1665 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1667 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1669 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1670 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1671 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1672 Extend code also for PaX support. Convert all gdb_assert to warning
1675 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1677 Implement auto-load user conveniences suggested by Doug Evans.
1678 * auto-load.c: Include top.h.
1679 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1680 (_initialize_auto_load): New variable scripts_directory_help. Mention
1681 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1682 scripts-directory. Document in online help one can use also files for
1683 set auto-load safe-path.
1684 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1685 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1687 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1689 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1692 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1694 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1695 ELTLEN and use TYPE_LENGTH directly.
1696 (m2_val_print): Likewise.
1697 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1698 variable LEN and use TYPE_LENGTH directly.
1699 (m68k_svr4_store_return_value): Likewise.
1700 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1701 ARGLEN and use TYPE_LENGTH directly.
1702 (mips_o64_push_dummy_call): Likewise.
1703 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1704 variable LENGTH and use TYPE_LENGTH directly.
1705 (s390_function_arg_float): Likewise.
1706 (s390_function_arg_integer): Likewise.
1707 (s390_push_dummy_call): Likewise.
1708 (s390_return_value_convention): Likewise.
1709 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1710 TYPE_LENGTH directly.
1712 2012-09-17 Yao Qi <yao@codesourcery.com>
1714 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1715 Update comment to add_setshow_integer_cmd.
1716 * cli/cli-setshow.c (do_set_command): Handle case
1717 'var_zuinteger_unlimited'.
1718 (do_show_command): Likewise.
1719 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1720 for command 'remotetimeout'.
1721 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1723 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1724 for command 'set listsize'.
1726 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1728 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1731 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1734 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1735 (frame_pop): Drop also TAILCALL_FRAME frames.
1736 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1738 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1739 Pedro Alves <palves@redhat.com>
1742 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1743 function start if we are already at function start. Both for
1744 reverse-next and for reverse-step into function without line number
1747 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1749 Code cleanup - rename 'inline' depth to 'artificial' depth.
1750 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1751 frame_id_artificial_p, extend the comment.
1752 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1753 * frame.c (fprint_frame_id): Rename at a user, change debug output
1754 text to "artificial=".
1755 (skip_inlined_frames): Rename to ...
1756 (skip_artificial_frames): ... here. Extend the comment.
1757 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1758 (frame_id_inlined_p): Rename to ...
1759 (frame_id_artificial_p): ... here. Rename at a user.
1760 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1761 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1763 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1765 (frame_id_inlined_p): Rename to ...
1766 (frame_id_artificial_p): ... here.
1767 * inline-frame.c (inline_frame_this_id): Rename at a user.
1769 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1771 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1772 vector variables using vector_size syntax rather than array
1775 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1777 * valarith.c (value_concat): Replace unsafe ALLOCA with
1780 2012-09-14 Pedro Alves <palves@redhat.com>
1782 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1784 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1786 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1787 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1788 data-directory as appropriate.
1790 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1792 * printcmd.c (ui_printf): Eliminate single-use variable
1795 2012-09-14 Yao Qi <yao@codesourcery.com>
1796 Pedro Alves <palves@redhat.com>
1798 * valops.c (value_assign): Move observer_notify_target_changed
1799 below to replace reinit_frame_cache.
1801 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1803 Refactor Python "gdb" module into a proper Python package, by
1804 introducing a new "_gdb" module for code implemented in C, and
1805 using reload/__import__ instead of exec.
1806 * python/lib/gdb/__init__.py: Import * from _gdb.
1807 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1808 prompt_hook, sys.argv): Moved from finish_python_initialization.
1809 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1810 (packages, auto_load_packages): New list and function replacing
1811 module_dict and auto-loading code, using __file__ instead of
1812 gdb.PYTHONDIR and reload/__import__ instead of exec.
1813 (GdbSetPythonDirectory): Replacing function of the same name
1814 from finish_python_initialization, using reload/__import__ instead
1815 of exec, as well as call auto_load_packages.
1816 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1817 gdb_python_module and not gdb_module.
1818 * python/python-internal.h (gdb_python_module): Declare.
1819 * python/python.c (gdb_python_module): New global.
1820 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1821 (_initialize_python): Rename gdb module to _gdb.
1822 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1823 (finish_python_initialization): Move Python code to
1824 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1827 2012-09-13 Pedro Alves <palves@redhat.com>
1829 * Makefile.in (COMMON_OBS): Add registry.o.
1830 * registry.c: New file.
1831 * registry.h (struct registry_container): Declare.
1832 (registry_data_callback): New typedef.
1833 (struct registry_data, struct registry_data_registration, struct
1834 registry_data_registry): New type.
1835 (register_data_with_cleanup, registry_alloc_data)
1836 (registry_callback_adaptor, registry_clear_data)
1837 (registry_container_free_data, registry_set_data, registry_data):
1839 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1840 the new common structures and functions.
1841 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1844 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1846 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1847 there is an error inserting hardware breakpoints and use the
1848 error message from the target.
1850 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1851 Catch this exception and print the error message contained within. Do not
1852 print the default hardware error breakpoint message in this case.
1854 2012-09-12 Doug Evans <dje@google.com>
1856 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1859 2012-09-11 Doug Evans <dje@google.com>
1861 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1862 .gdb_index symbol attributes if there are none.
1864 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1866 * symtab.h (struct minimal_symbol) [has_size]: New field.
1867 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1868 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1869 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1870 minimal symbols if the symbol's size is actually known.
1871 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1872 of msymbol's size field. Add comment.
1873 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1874 SET_MSYMBOL_SIZE to set the minimal symbol size.
1876 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1878 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1879 minimal_symbol struct object, rather than setting some of its
1882 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1884 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1885 passed_a_ptr flag when displaying typedef types.
1887 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1889 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1890 the optimized_out flag is preserved.
1892 2012-09-10 Anthony Green <green@moxielogic.com>
1894 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1895 prologue changes in GCC.
1897 2012-09-10 Keith Seitz <keiths@redhat.com>
1900 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1901 (BOOL_CONVERSION_BADNESS): ... this.
1902 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1903 (rank_one_type): Allow all boolean conversions
1904 permitted by the standard.
1906 2012-09-06 Tom Tromey <tromey@redhat.com>
1908 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1909 Don't decref py_objfile.
1911 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1913 Do not enable -lmcheck by default when Python is enabled with
1915 * configure.ac: (python_has_threads) New variable, by testing
1916 if WITH_THREAD is defined in Python.h.
1917 Move --enable-lmcheck after --with-python.
1918 Do not enable -lmcheck by default if python_has_threads=yes.
1919 Warn if --enable-lmcheck and python_has_threads=yes.
1920 * configure: Regenerate.
1922 2012-08-31 Yao Qi <yao@codesourcery.com>
1924 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1925 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1926 Update some commands.
1927 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1928 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1931 2012-08-31 Yao Qi <yao@codesourcery.com>
1933 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1935 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1937 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1939 2012-08-29 Doug Evans <dje@google.com>
1941 * main.c (print_gdb_help): Remove reference to
1942 --use-deprecated-index-sections.
1944 2012-08-28 Yao Qi <yao@codesourcery.com>
1946 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1947 (init_cmds): Call add_setshow_uinteger_cmd for command
1948 'max-user-call-depth'.
1949 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1950 declaration of 'max_user_call_depth'.
1951 * frame.c (backtrace_limit): Add 'unsigned'.
1952 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1954 * remote.c (remoteaddresssize): Add 'unsigned'.
1955 (remote_address_masked): Change local var 'address_size' to
1957 (_initialize_remote): Call add_setshow_uinteger_cmd for
1958 'remoteaddresssize'.
1959 * top.c (history_size): Add 'unsigned'.
1960 (show_commands): Change local variables to 'unsigned'.
1961 (set_history_size_command): Don't check history_size is negative.
1962 Adjust the condition to call unstifle_history and set history_size
1965 2012-08-28 Pedro Alves <palves@redhat.com>
1969 * infcmd.c (default_print_one_register_info): New, factored out
1970 from default_print_registers_info.
1971 (default_print_registers_info): Use it. Mark value unavailable if
1973 (registers_info): Print user registers with
1974 default_print_one_register_info.
1976 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1979 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1980 is not NULL before referencing it.
1982 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1984 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1985 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1988 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1989 Jan Kratochvil <jan.kratochvil@redhat.com>
1991 * auto-load.c (auto_load_objfile_script): Rename to ...
1992 (auto_load_objfile_script_1): ... here, change variable realname to
1993 parameter realname, document it, add return value, add variable retval.
1994 (auto_load_objfile_script): New function.
1996 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1998 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1999 followed by a whitespace.
2001 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2004 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2005 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2006 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2009 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2011 * memattr.c (create_mem_region): Fix memory region overlapping
2014 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2016 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2017 with xmalloc/cleanup.
2018 * mt-tdep.c (mt_push_dummy_call): Likewise.
2019 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2020 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2022 2012-08-24 Yao Qi <yao@codesourcery.com>
2024 * jv-exp.y (push_expression_name): Add "." at the end of error
2027 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2029 Document how to return from "python-interactive" to GDB.
2030 * python/python.c (_initialize_python): Update documentation.
2032 2012-08-23 Pedro Alves <palves@redhat.com>
2034 * infrun.c (_initialize_infrun) <handle command help text>:
2035 Mention that multiple signals are supported.
2037 2012-08-23 Pedro Alves <palves@redhat.com>
2039 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2042 2012-08-23 Yao Qi <yao@codesourcery.com>
2044 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2045 (tfind_1): Don't call registers_changed, set_traceframe_num,
2046 and clear_traceframe_info.
2047 Call set_current_traceframe.
2048 (set_current_traceframe): call set_traceframe_num.
2050 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2052 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2053 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2055 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2057 Enable readline in Python in a GDB-specific way and block the
2058 standard Python readline module to prevent conflicts with GDB.
2059 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2060 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2061 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2062 * python/py-gdb-readline.c: New file.
2063 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2065 * python/python.c (_initialize_python): Call
2066 gdbpy_initialize_gdb_readline.
2068 2012-08-22 Keith Seitz <keiths@redhat.com>
2070 * defs.h: Include build-gnulib/config.h
2072 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2074 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2077 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2079 Add a new "python-interactive" command that starts a standard
2080 Python interactive prompt with "pi" as alias, and add "py" as
2081 an alias to "python".
2082 * NEWS: Mention the new commands.
2083 * python/python.c (eval_python_command): New function.
2084 (python_interactive_command): For "python-interactive" with
2085 arguments, call eval_python_command. For "python-interactive"
2086 without arguments, call PyRun_InteractiveLoop.
2087 (_initialize_python): Add "python-interactive" command with
2088 "pi" as alias, and add "py" as an alias to "python".
2090 2012-08-22 Tom Tromey <tromey@redhat.com>
2092 * defs.h (quit_flag): Don't declare.
2093 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2094 (QUIT): Use new functions.
2095 * event-top.c (command_handler): Use clear_quit_flag.
2096 (handle_sigint): Use set_quit_flag.
2097 (async_request_quit): Use check_quit_flag. Don't check
2099 * exceptions.c (throw_exception): Use clear_quit_flag.
2100 * main.c (captured_main): Use clear_quit_flag.
2101 * python/python.c (clear_quit_flag, set_quit_flag)
2102 (check_quit_flag): New functions.
2103 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2105 * remote.c (remote_wait_as): Use check_quit_flag,
2107 (remote_start_remote): Call QUIT.
2108 * symfile.c (load_progress): Use check_quit_flag.
2109 * top.c (command_loop): Use clear_quit_flag.
2110 (command_line_input): Call QUIT.
2111 * utils.c (quit_flag): Conditionally define.
2112 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2114 (prompt_for_continue): Call QUIT. Use quit, not
2116 * remote-mips.c (mips_expect_timeout): Call QUIT.
2117 * monitor.c (monitor_expect): Call QUIT.
2119 2012-08-22 Tom Tromey <tromey@redhat.com>
2121 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2122 (async_init_signals): Update.
2123 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2124 (SIGWINCH_HANDLER_BODY): Remove.
2126 2012-08-22 Tom Tromey <tromey@redhat.com>
2128 * jit.c (jit_object_close_impl): Don't malloc the objfile
2130 * objfiles.c (allocate_objfile): Don't malloc the objfile
2132 (free_objfile): Don't free the objfile name.
2133 * objfiles.h (struct objfile) <name>: Update comment.
2134 * symfile.c (reread_symbols): Fix reference counting. Don't
2135 malloc objfile name.
2137 2012-08-22 Tom Tromey <tromey@redhat.com>
2139 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2140 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2141 (symfile_bfd_open): Likewise.
2142 (generic_load): Likewise.
2143 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2144 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2146 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2148 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2149 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2150 (pmon_load_fast): Likewise.
2151 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2152 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2153 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2154 (macho_check_dsym): Likewise.
2155 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2156 (m32r_upload_command): Likewise.
2157 * gdb_bfd.h (gdb_bfd_cache): Declare.
2158 * gdb_bfd.c (struct gdb_bfd_data): New.
2159 (gdb_bfd_cache): New global.
2160 (struct gdb_bfd_cache_search): New.
2161 (hash_bfd): New function.
2163 (gdb_bfd_open): Likewise.
2164 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2165 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2167 * exec.c (exec_file_attach): Use gdb_bfd_open.
2168 * dsrec.c (load_srec): Use gdb_bfd_open.
2170 2012-08-22 Tom Tromey <tromey@redhat.com>
2172 * dwarf2read.c (macro_start_file): Update.
2173 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2174 (free_objfile_per_bfd_storage): Destroy macro_cache.
2175 (allocate_objfile, free_objfile): Update.
2176 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2178 (struct objfile) <macro_cache>: Remove.
2179 * symfile.c (reread_symbols): Update.
2180 * symmisc.c (print_symbol_bcache_statistics): Update.
2181 (print_objfile_statistics): Update.
2183 2012-08-22 Tom Tromey <tromey@redhat.com>
2185 * elfread.c (elf_symtab_read): Update.
2186 * objfiles.c (objfiles_bfd_data): New global.
2187 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2188 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2189 (allocate_objfile, free_objfile): Update.
2190 (_initialize_objfiles): Initialize objfiles_bfd_data.
2191 * objfiles.h (struct objfile_per_bfd_storage): New.
2192 (struct objfile) <per_bfd>: New field.
2193 <filename_cache>: Remove.
2194 (set_objfile_per_bfd): Declare.
2195 * symfile.c (reread_symbols): Update. Call
2196 set_objfile_per_bfd.
2197 (allocate_symtab): Update.
2198 * symmisc.c (print_symbol_bcache_statistics): Update.
2199 (print_objfile_statistics): Print the size of the BFD obstack.
2201 2012-08-22 Tom Tromey <tromey@redhat.com>
2203 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2204 * gdb_bfd.c: Use DEFINE_REGISTRY.
2205 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2206 (gdb_bfd_ref): Call bfd_alloc_data.
2207 (gdb_bfd_unref): Call bfd_free_data.
2209 2012-08-22 Tom Tromey <tromey@redhat.com>
2211 * registry.h (struct registry_fields): New.
2212 (REGISTRY_FIELDS): Redefine.
2213 (REGISTRY_ACCESS_FIELD): New macro.
2214 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2217 2012-08-22 Tom Tromey <tromey@redhat.com>
2219 * auto-load.c (_initialize_auto_load): Update.
2220 * solib-svr4.c (_initialize_svr4_solib): Update
2221 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2222 * solib-darwin.c (_initialize_darwin_solib): Update.
2223 * registry.h: New file.
2224 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2225 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2226 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2227 (register_program_space_data_with_cleanup)
2228 (register_program_space_data, program_space_alloc_data)
2229 (clear_program_space_data, set_program_space_data)
2230 (program_space_data): Don't declare.
2231 * progspace.c: Use DEFINE_REGISTRY.
2232 (struct program_space_data, struct
2233 program_space_data_registration, struct
2234 program_space_data_registry, program_space_data_registry)
2235 (register_program_space_data_with_cleanup)
2236 (register_program_space_data, program_space_alloc_data)
2237 (program_space_free_data, clear_program_space_data)
2238 (set_program_space_data, program_space_data): Remove.
2239 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2240 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2241 (register_objfile_data_with_cleanup, register_objfile_data)
2242 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2244 * objfiles.c: Use DEFINE_REGISTRY.
2245 (struct objfile_data, struct objfile_data_registration, struct
2246 objfile_data_registry, objfile_data_registry)
2247 (register_objfile_data_with_cleanup, register_objfile_data)
2248 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2249 (set_objfile_data, objfile_data): Remove.
2250 (_initialize_objfiles): Update.
2251 * jit.c (_initialize_jit): Update.
2252 * inflow.c (_initialize_inflow): Update.
2253 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2254 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2255 (register_inferior_data_with_cleanup, register_inferior_data)
2256 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2258 * inferior.c: Use DEFINE_REGISTRY.
2259 (struct inferior_data, struct inferior_data_registration, struct
2260 inferior_data_registry, inferior_data_registry)
2261 (register_inferior_data_with_cleanup, register_inferior_data)
2262 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2263 (set_inferior_data, inferior_data): Remove.
2264 * auxv.c (_initialize_auxv): Update.
2265 * ada-lang.c (_initialize_ada_language): Update.
2266 * breakpoint.c (_initialize_breakpoint): Update.
2267 * i386-nat.c (i386_use_watchpoints): Update.
2269 2012-08-22 Tom Tromey <tromey@redhat.com>
2271 * exec.c (exec_close, exec_file_attach): Update.
2272 (add_to_section_table): Initialize 'key' field.
2273 (add_target_sections, remove_target_sections): Add 'key' argument.
2274 * exec.h (add_target_sections, remove_target_sections): Add
2276 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2277 (reload_shared_libraries_1): Update.
2278 * target.h (struct target_section) <key>: New field.
2280 2012-08-22 Tom Tromey <tromey@redhat.com>
2282 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2284 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2286 * symfile.c (allocate_symtab): Use host_address_to_string
2287 function instead of cast of pointer to long which is not
2288 compatible with x86_64-w64-mingw32 build.
2290 2012-08-19 Andrew Pinski <apinski@cavium.com>
2292 * mips-tdep.c (is_octeon): New function.
2293 (is_octeon_bbit_op): New function.
2294 (mips32_next_pc): Handle Octeon's bbit instructions.
2295 (mips32_instruction_has_delay_slot): Likewise.
2297 2012-08-19 Andrew Pinski <apinski@cavium.com>
2299 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2300 before the function.
2302 2012-08-19 Andrew Pinski <apinski@cavium.com>
2304 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2306 2012-08-19 Keith Seitz <keiths@redhat.com>
2309 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2310 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2312 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2314 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2315 The typo broke "make TAGS".
2317 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2321 2012-08-17 Keith Seitz <keiths@redhat.com>
2324 * gdbtypes.c (strict_type_checking): New variable.
2325 (show_strict_type_checking): New function.
2326 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2327 if strict type checking is disabled.
2328 (_initialize_gdbtypes): Add "check type" subcommand.
2329 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2331 2012-08-17 Keith Seitz <keiths@redhat.com>
2333 * language.h (type_mode): Remove.
2334 (type_check): Remove.
2335 (struct language_defn): Remove la_type_check.
2336 (STRICT_TYPE): Remove unused macro.
2337 (type_error): Remove.
2338 * language.c (set_type_range_case): Renamed to ...
2339 (set_range_case): ... this. Update all callers.
2340 Remove type_mode/type_check.
2341 (type_mode): Remove.
2342 (type_check): Remove.
2343 (show_type_command): Remove.
2344 (set_type_command): Remove.
2345 (language_info): Remove type checking output.
2346 (type_error): Remove unused function.
2347 (range_error): Update comment.
2348 (unknown_language_defn): Remove la_type_check.
2349 (auto_language_defn): Likewise.
2350 (local_language_defn): Likewise.
2351 (_initialize_language): Remove "check type" subcommand.
2352 * ada-lang.c (ada_language_defn): Remove la_type_check.
2353 * c-lang.c (c_language_defn): Likewise.
2354 (cplus_language_defn): Likewise.
2355 (asm_language_defn): Likewise.
2356 (minimal_language_defn): Likewise.
2357 * d-lang.c (d_language_defn): Likewise.
2358 * f-lang.c (f_language_defn): Likewise.
2359 * go-lang.c (go_language_defn): Likewise.
2360 * jv-lang.c (java_language_defn): Likewise.
2361 * m2-lang.c (m2_language_defn): Likewise.
2362 * objc-lang.c (objc_language_defn): Likewise.
2363 * opencl-lang.c (opencl_language_defn): Likewise.
2364 * p-lang.c (pascal_language_defn): Likewise.
2366 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2368 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2370 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2372 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2374 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2375 using the regache. Use ia64_hpux_get_register_from_save_state_t
2376 to access the bsp and bspstore registers if not.
2378 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2380 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2381 * breakpoint.c (detach_breakpoints): Change pid parameter into
2382 a ptid. Adjust code accordingly.
2383 * infrun.c (handle_inferior_event): Delete variable child_pid.
2384 Update call to detach_breakpoints to pass the child ptid for
2386 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2387 assert that inferior_ptid's lwp is zero.
2388 (linux_handle_extended_wait): Update call to detach_breakpoints.
2389 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2392 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2394 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2395 parent, only call detach_breakpoints if tts.tts_event ==
2398 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2400 * dwarf2-frame.c (dwarf2_frame_cache): Use
2401 get_frame_address_in_block instead of get_frame_pc as
2402 the bound for executing the frame's FDE.
2404 2012-08-16 Yao Qi <yao@codesourcery.com>
2406 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2407 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2408 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2409 (c_type_print_varspec_suffix): Likewise.
2410 * eval.c (evaluate_subexp_standard): Likewise.
2411 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2412 (f_type_print_varspec_suffix): Likewise.
2413 * gdbtypes.c (is_scalar_type): Likewise.
2414 (recursive_dump_type): Likewise.
2415 * infcall.c (value_arg_coerce): Likewise.
2416 * m2-valprint.c (m2_val_print): Likewise.
2417 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2418 (pascal_type_print_varspec_suffix): Likewise.
2419 (pascal_type_print_base): Likewise.
2420 * p-valprint.c (pascal_val_print): Likewise.
2421 (pascal_val_print): Likewise.
2422 * valops.c (value_slice): Likewise.
2423 * valprint.c (scalar_type_p): Likewise.
2424 * valarith.c (value_bitstring_subscript): Remove.
2425 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2426 Remove comment on TYPE_CODE_BITSTRING.
2428 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2429 TYPE_CODE_BITSTRING.
2431 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2434 2012-08-16 Yao Qi <yao@codesourcery.com>
2436 * tracepoint.c (trace_find_none_command): Remove.
2437 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2439 2012-08-16 Yao Qi <yao@codesourcery.com>
2441 * remote.c (handle_notification): Remove parameter 'length'.
2442 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2444 2012-08-15 Keith Seitz <keiths@redhat.com>
2446 * gdbtypes.c (opaque_type_resolution): Make static.
2447 Add missing comment.
2448 (overload_debug): Add missing comment.
2449 (show_opaque_type_resolution): Likewise.
2450 (show_overload_debug): Likewise.
2451 (print_bit_vector): Remove unnecessary forward declaration.
2452 (print_arg_types): Likewise.
2453 (dump_fn_fieldlists): Likewise.
2454 (print_cplus_stuff): Likewise.
2456 2012-08-15 Tom Tromey <tromey@redhat.com>
2458 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2459 (gdb_bfd_ref): Initialize new field.
2460 (gdb_bfd_unref): Unref the archive BFD.
2461 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2464 2012-08-15 Tom Tromey <tromey@redhat.com>
2467 * python/py-bpevent.c (create_breakpoint_event_object): Update
2469 * python/py-event.c (evpy_add_attribute): Update comment.
2470 * python/py-exitedevent.c (create_exited_event_object): Fix
2471 reference counting and error handling.
2472 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2473 Fix reference counting.
2474 * python/py-signalevent.c (create_signal_event_object): Fix
2475 reference counting and error handling.
2476 * python/py-stopevent.c (emit_stop_event): Fix reference
2478 * python/py-threadevent.c (get_event_thread): Return a
2480 * python/py-type.c (convert_field): Fix reference counting.
2482 2012-08-15 Tom Tromey <tromey@redhat.com>
2484 * dwarf2read.c (dwarf_decode_macro_bytes)
2485 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2488 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2490 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2491 stepi, nexti, finish, next, step, jump, and continue commands.
2492 * infrun.c (_initialize_infrun): Update help text for the handle
2495 2012-08-14 Doug Evans <dje@google.com>
2497 * gdbtypes.c (struct extra): Delete, unused.
2499 * gdbtypes.c: Whitespace cleanup.
2500 (address_space_name_to_int): Remove "extern" from definition.
2501 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2503 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2504 TYPE_POINTER_TYPE (type).
2506 2012-08-14 Gary Benson <gbenson@redhat.com>
2508 * solib-svr4.c (svr4_free_library_list): Use free_so.
2510 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2512 * .gitignore: Add go-exp.c.
2514 2012-08-13 Doug Evans <dje@google.com>
2516 * value.c (show_convenience): Tweak comment.
2517 (_initialize_values): Mention convenience functions in the help text
2518 for "show convenience".
2520 2012-08-13 Yao Qi <yao@codesourcery.com>
2522 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2523 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2525 * eval.c (evaluate_subexp_standard): Likewise.
2526 * expprint.c (print_subexp_standard): Likewise.
2527 (dump_subexp_body_standard): Likewise.
2528 * parse.c (operator_length_standard): Likewise.
2530 2012-08-13 Yao Qi <yao@codesourcery.com>
2532 * std-operator.def: Remove OP_BITSTRING.
2533 * breakpoint.c (watchpoint_exp_is_const): Update.
2534 * eval.c (evaluate_subexp_standard): Remove handling to
2536 * expprint.c (print_subexp_standard): Likewise.
2537 (dump_subexp_body_standard): Likewise.
2538 * parse.c (operator_length_standard): Likewise.
2539 * valops.c (value_bitstring): Remove.
2540 * value.h: Remove the declaration of 'value_bitstring'.
2542 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2544 * linespec.c (find_methods): Remove unused variables `i1' and
2546 (decode_line_full): Likewise for `arg_start'.
2548 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2550 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2551 (zlib_decompress_section): Likewise for `section_data'.
2552 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2554 2012-08-10 Doug Evans <dje@google.com>
2556 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2557 * NEWS: Document them.
2558 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2560 * python/py-type.c (typy_array_1): New function.
2561 (typy_array): Call it.
2562 (typy_vector): New function.
2563 (type_object_methods): Add "vector".
2564 * python/lib/gdb/function/__init__.py: New file.
2565 * python/lib/gdb/function/strfns.py: New file.
2567 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2569 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2570 for TYPE_FIELD_BITPOS.
2571 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2573 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2576 * common/vec.h (VEC_merge): Define.
2577 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2578 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2579 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2580 * completer.c: Include gdb_signals.h.
2581 (signal_completer): Define.
2582 * completer.h (signal_completer): Add prototype.
2583 * infcmd.c (_initialize_infcmd): Assign the command
2584 completer for "signal" to handle_completer.
2585 * infrun.c: Include completer.h.
2586 (handle_completer): Define.
2587 (_initialize_infrun): Declare a new local variable c. Store the
2588 result of add_com("handle") to it. Assign the command
2589 completer for "handle" to handle_completer.
2591 2012-08-09 Yao Qi <yao@codesourcery.com>
2593 * cli/cli-decode.c (set_cmd_prefix): New.
2594 (lookup_cmd_for_prefixlist): New.
2595 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2596 of each cmd_list_element in *prefixlist.
2597 (add_setshow_cmd_full): set_cmd_prefix.
2598 (add_alias_cmd): Likewise.
2599 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2600 Declare 'auto_boolean_enums'.
2601 * cli/cli-setshow.c: Include "observer.h".
2602 (notify_command_param_changed_p): New.
2603 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2605 (do_setshow_command): Split it to ...
2606 (do_set_command, do_show_command): ... them. New.
2607 (do_set_command): Call observer_notify_command_param_changed if
2608 notify_command_param_changed_p returns true.
2609 (cmd_show_list): Caller update.
2610 * auto-load.c (set_auto_load_cmd): Likewise.
2611 * remote.c (show_remote_cmd): Likewise.
2612 * cli/cli-setshow.h: Update declarations.
2613 * top.c (execute_command): Call do_set_command and do_show_command.
2615 * NEWS: Mention new MI notification.
2616 * mi/mi-interp.c: Declare mi_command_param_changed.
2617 (mi_interpreter_init): Attach mi_command_param_changed to
2618 observer command_param_changed.
2619 (mi_command_param_changed): New.
2620 Remove mi_suppress_breakpoint_notifications.
2621 Define global variable mi_suppress_notification.
2622 (mi_breakpoint_created): Update.
2623 (mi_breakpoint_deleted): Likewise.
2624 (mi_breakpoint_modified): Likewise.
2625 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2626 'gdb-set' and set mi_suppress_notification.
2627 * mi/mi-main.h: (mi_suppress_notification): New struct.
2629 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2630 Jan Kratochvil <jan.kratochvil@redhat.com>
2632 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2634 2012-08-09 Yao Qi <yao@codesourcery.com>
2636 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2637 (skiplist): Move it to skip.c.
2638 (init_cmd_lists): Remove code setting enablebreaklist and
2640 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2641 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2643 * gdbcmd.h: Likewise.
2644 * skip.c (_initialize_step_skip): Move 'skiplist' from
2647 2012-08-09 Yao Qi <yao@codesourcery.com>
2649 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2650 * gnu-nat.c, symfile.c: Likewise.
2652 2012-08-08 Aaron Gamble <agamble@google.com>
2654 * utils.c (prompt_for_continue_wait_time): New static global.
2655 (make_command_stats_cleanup): Initialize it.
2656 (report_command_stats): Subtract time waiting for user.
2657 (prompt_for_continue): Track time waiting for user.
2658 (defaulted_query): Track time waiting for user.
2660 2012-08-08 Doug Evans <dje@google.com>
2662 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2664 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2665 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2666 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2667 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2668 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2669 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2671 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2672 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2673 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2674 (dump_prefix_expression): Handle OP_TYPE.
2676 2012-08-08 Keith Seitz <keiths@redhat.com>
2678 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2681 2012-08-08 Doug Evans <dje@google.com>
2683 * linux-thread-db.c: #include "gdb_vecs.h".
2684 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2686 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2687 (thread_db_load_search): Use a vector to iterate over path elements.
2688 Handle text appearing after "$pdir".
2690 * gdb_string.h: Moved to ...
2691 * common/gdb_string.h: ... here.
2692 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2693 gdb_string.h and gdb_assert.h.
2695 2012-08-08 Yao Qi <yao@codesourcery.com>
2697 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2698 (tic6x_value_to_register): Likewise.
2699 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2700 and set_gdbarch_value_to_register.
2702 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2703 Jean-Marc Saffroy <saffroy@gmail.com>
2706 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2707 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2708 * gcore.c (gcore_create_callback): New function comment. Add modified
2709 parameter. Only write modified regions. Set SEC_READONLY exactly
2710 according to MODIFIED.
2711 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2712 the passed modified value to FUNC.
2713 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2714 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2715 first. New variables modified and has_anonymous. Parse the lines of
2716 smaps file. Add the passed MODIFIED value to FUNC.
2717 * procfs.c (find_memory_regions_callback): Add the passed modified
2720 2012-08-06 Tom Tromey <tromey@redhat.com>
2722 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2723 (dwarf2_frame_cache): Use it.
2724 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2725 cache initialization constraint.
2727 2012-08-06 Tom Tromey <tromey@redhat.com>
2730 * varobj.c (update_dynamic_varobj_children): Don't call
2733 2012-08-06 Tom Tromey <tromey@redhat.com>
2736 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2738 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2740 * NEWS: New entry for 'cd' default parameters.
2741 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2743 2012-08-03 Tom Tromey <tromey@redhat.com>
2745 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2748 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2750 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2751 to attempting lseek/write.
2752 (inf_child_fileio_pread): Likewise for pread.
2754 2012-08-02 Yao Qi <yao@codesourcery.com>
2756 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2757 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2758 add_setshow_zinteger_cmd.
2759 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2760 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2761 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2762 instead of add_setshow_zinteger_cmd.
2763 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2764 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2765 instead of add_setshow_zinteger_cmd.
2766 * frame.c (frame_debug): Add 'unsigned'.
2767 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2768 add_setshow_zinteger_cmd.
2769 * frame.h: Update the declaration of 'frame_debug'.
2770 * gdbtypes.c (overload_debug): Add 'unsigned'.
2771 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2772 add_setshow_zinteger_cmd.
2773 * inferior.h: Update declaration of 'debug_infrun'.
2774 * infrun.c (debug_infrun): Add 'unsigned'.
2775 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2776 add_setshow_zinteger_cmd.
2777 * jit.c (jit_debug): Add 'unsigned'.
2778 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2779 add_setshow_zinteger_cmd.
2780 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2781 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2782 instead of add_setshow_zinteger_cmd.
2783 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2784 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2785 add_setshow_zinteger_cmd.
2786 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2787 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2788 instead of add_setshow_zinteger_cmd.
2789 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2790 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2791 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2792 intead of add_setshow_zinteger_cmd.
2793 * mips-tdep.c (mips_debug): Add 'unsigned'.
2794 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2795 instead of add_setshow_zinteger_cmd.
2796 * monitor.c (monitor_debug): Add 'unsigned'.
2797 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2798 add_setshow_zinteger_cmd.
2799 * observer.c (observer_debug): Add 'unsigned'.
2800 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2801 add_setshow_zinteger_cmd.
2802 * parse.c (expressiondebug): Add 'unsigned'.
2803 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2804 add_setshow_zinteger_cmd.
2805 * record.c (record_debug): Add 'unsigned'.
2806 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2807 add_setshow_zinteger_cmd.
2808 * record.h: Update the declaration of 'record_debug'.
2809 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2810 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2811 add_setshow_zinteger_cmd.
2812 * serial.c (global_serial_debug_p): Add 'unsigned'.
2813 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2814 add_setshow_zinteger_cmd.
2815 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2816 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2817 add_setshow_zinteger_cmd.
2818 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2819 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2820 add_setshow_zinteger_cmd.
2821 * target.c (targetdebug): Add 'unsigned'.
2822 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2823 add_setshow_zinteger_cmd.
2824 * valops.c (overload_debug): Add 'unsigned'.
2825 * varobj.c (varobjdebug): Add 'unsigned'.
2826 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2827 add_setshow_zinteger_cmd.
2828 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2829 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2830 instead of add_setshow_zinteger_cmd.
2832 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2833 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2834 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2835 instead of add_setshow_zinteger_cmd.
2836 * gdbarch.c, gdbarch.h: Re-generated.
2838 2012-08-02 Yao Qi <yao@codesourcery.com>
2840 * nto-tdep.c: Don't include cli/cli-decode.h and
2842 (_initialize_nto_tdep): Remove.
2843 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2845 Remove macro nto_internal_debugging.
2847 2012-08-01 Richard Henderson <rth@redhat.com>
2849 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2850 (mep-*-*) [gdb_target_obs]: Likewise.
2852 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2854 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2855 linux_get_siginfo_type.
2857 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2859 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2861 (call_function_by_hand) <ON_STACK>: Call write_memory with
2862 gdbarch_breakpoint_from_pc, if possible.
2863 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2866 2012-07-31 Yao Qi <yao@codesourcery.com>
2868 * tracepoint.c: Add 'static' for some variables.
2870 2012-07-31 Yao Qi <yao@codesourcery.com>
2872 * go32-nat.c: Declare _initialize_go32_nat.
2873 * ser-go32.c: Declare _initialize_ser_dos.
2874 * top.c (do_chdir_cleanup): Add 'static'.
2876 2012-07-30 Keith Seitz <keiths@redhat.com>
2878 * linespec.c (linespec_lex_number): A number followed
2879 by quotes is a valid number, too.
2881 2012-07-30 Tom Tromey <tromey@redhat.com>
2883 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2885 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2887 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2888 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2890 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2892 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2893 invalid or reevaluated to prevent prevent references to possibly
2894 delete'd type objects being left in the varobj.
2896 2012-07-27 Tom Tromey <tromey@redhat.com>
2897 Jan Kratochvil <jan.kratochvil@redhat.com>
2899 * copying.awk: Print buffer-read-only and vi ro markers.
2900 * copying.c: Rebuild.
2901 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2902 * gdbarch.c, gdbarch.h: Rebuild.
2903 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2904 buffer-read-only and vi ro markers.
2905 * features/arm-with-iwmmxt.c: Rebuild.
2906 * features/arm-with-m-fpa-layout.c: Rebuild.
2907 * features/arm-with-m-vfp-d16.c: Rebuild.
2908 * features/arm-with-m.c: Rebuild.
2909 * features/arm-with-neon.c: Rebuild.
2910 * features/arm-with-vfpv2.c: Rebuild.
2911 * features/arm-with-vfpv3.c: Rebuild.
2912 * features/i386/amd64-avx-linux.c: Rebuild.
2913 * features/i386/amd64-avx.c: Rebuild.
2914 * features/i386/amd64-linux.c: Rebuild.
2915 * features/i386/amd64.c: Rebuild.
2916 * features/i386/i386-avx-linux.c: Rebuild.
2917 * features/i386/i386-avx.c: Rebuild.
2918 * features/i386/i386-linux.c: Rebuild.
2919 * features/i386/i386-mmx-linux.c: Rebuild.
2920 * features/i386/i386-mmx.c: Rebuild.
2921 * features/i386/i386.c: Rebuild.
2922 * features/i386/x32-avx-linux.c: Rebuild.
2923 * features/i386/x32-avx.c: Rebuild.
2924 * features/i386/x32-linux.c: Rebuild.
2925 * features/i386/x32.c: Rebuild.
2926 * features/mips-dsp-linux.c: Rebuild.
2927 * features/mips-linux.c: Rebuild.
2928 * features/mips64-dsp-linux.c: Rebuild.
2929 * features/mips64-linux.c: Rebuild.
2930 * features/rs6000/powerpc-32.c: Rebuild.
2931 * features/rs6000/powerpc-32l.c: Rebuild.
2932 * features/rs6000/powerpc-403.c: Rebuild.
2933 * features/rs6000/powerpc-403gc.c: Rebuild.
2934 * features/rs6000/powerpc-405.c: Rebuild.
2935 * features/rs6000/powerpc-505.c: Rebuild.
2936 * features/rs6000/powerpc-601.c: Rebuild.
2937 * features/rs6000/powerpc-602.c: Rebuild.
2938 * features/rs6000/powerpc-603.c: Rebuild.
2939 * features/rs6000/powerpc-604.c: Rebuild.
2940 * features/rs6000/powerpc-64.c: Rebuild.
2941 * features/rs6000/powerpc-64l.c: Rebuild.
2942 * features/rs6000/powerpc-7400.c: Rebuild.
2943 * features/rs6000/powerpc-750.c: Rebuild.
2944 * features/rs6000/powerpc-860.c: Rebuild.
2945 * features/rs6000/powerpc-altivec32.c: Rebuild.
2946 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2947 * features/rs6000/powerpc-altivec64.c: Rebuild.
2948 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2949 * features/rs6000/powerpc-cell32l.c: Rebuild.
2950 * features/rs6000/powerpc-cell64l.c: Rebuild.
2951 * features/rs6000/powerpc-e500.c: Rebuild.
2952 * features/rs6000/powerpc-e500l.c: Rebuild.
2953 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2954 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2955 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2956 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2957 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2958 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2959 * features/rs6000/powerpc-vsx32.c: Rebuild.
2960 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2961 * features/rs6000/powerpc-vsx64.c: Rebuild.
2962 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2963 * features/rs6000/rs6000.c: Rebuild.
2964 * features/s390-linux32.c: Rebuild.
2965 * features/s390-linux32v1.c: Rebuild.
2966 * features/s390-linux32v2.c: Rebuild.
2967 * features/s390-linux64.c: Rebuild.
2968 * features/s390-linux64v1.c: Rebuild.
2969 * features/s390-linux64v2.c: Rebuild.
2970 * features/s390x-linux64.c: Rebuild.
2971 * features/s390x-linux64v1.c: Rebuild.
2972 * features/s390x-linux64v2.c: Rebuild.
2973 * features/tic6x-c62x-linux.c: Rebuild.
2974 * features/tic6x-c62x.c: Rebuild.
2975 * features/tic6x-c64x-linux.c: Rebuild.
2976 * features/tic6x-c64x.c: Rebuild.
2977 * features/tic6x-c64xp-linux.c: Rebuild.
2978 * features/tic6x-c64xp.c: Rebuild.
2980 2012-07-27 Tom Tromey <tromey@redhat.com>
2982 * c-exp.y (classify_name): Avoid assignment in condition.
2984 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2986 * amd64-windows-tdep.c: Include "frame.h".
2987 (amd64_windows_skip_trampoline_code): New function.
2988 (amd64_windows_init_abi): Add trampoline registration.
2990 2012-07-27 Yao Qi <yao@codesourcery.com>
2992 * tracepoint.c (cur_traceframe_number): Remove.
2993 (set_tfile_traceframe): Remove.
2994 (tfile_trace_find, tfile_fetch_registers): Update callers.
2995 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2996 (tfile_open, tfile_trace_find): Likewise.
2998 2012-07-27 Yao Qi <yao@codesourcery.com>
3000 * thread.c (switch_to_thread): Don't call registers_changed.
3002 2012-07-26 Tom Tromey <tromey@redhat.com>
3004 * Makefile.in (SFILES): Remove objc-exp.y.
3005 (YYFILES): Remove objc-exp.c.
3006 (YYOBJ): Remove objc-exp.o.
3007 (local-maintainer-clean): Don't mention objc-exp.c.
3008 * c-exp.y: Include objc-lang.h.
3009 (%union) <class>: New field.
3010 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3011 (exp): Clone subscript production for OBJC_LBRAC. Add various
3012 Objective C productions.
3013 (msglist, msgarglist, msgarg): New productions.
3014 (array_mod, func_mod, operator): Clone productions for
3016 (parse_string_or_char): Handle '@' strings.
3017 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3018 (classify_name): Check la_name_of_this. Recognize ObjC class
3020 * objc-exp.y: Remove.
3021 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3022 * objc-lang.h (objc_parse, objc_error): Don't declare.
3024 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3026 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3028 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3030 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3033 2012-07-26 Tom Tromey <tromey@redhat.com>
3035 * copying.c: Rebuild.
3036 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3039 2012-07-26 Tom Tromey <tromey@redhat.com>
3041 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3043 (print_objfile_statistics): Likewise.
3044 (maintenance_print_symbols): Likewise.
3045 (maintenance_print_msymbols): Likewise.
3046 (maintenance_print_objfiles): Likewise.
3047 * psymtab.c (print_partial_symbols): Call QUIT.
3048 (maintenance_print_psymbols): Likewise. Don't modify
3050 * copying.c (show_copying_command): Don't modify immediate_quit.
3051 (show_warranty_command): Likewise.
3052 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3054 2012-07-26 Keith Seitz <keiths@redhat.com>
3056 * linespec.c (linespec_lexer_lex_number): The input
3057 is also a valid number if the next character is a comma
3060 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3062 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3065 2012-07-26 Tristan Gingold <gingold@adacore.com>
3067 * machoread.c: Include gdb_bfd.h.
3069 2012-07-26 Tristan Gingold <gingold@adacore.com>
3071 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3074 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3076 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3078 (dwarf2_evaluate_loc_desc): Likewise.
3079 (dwarf2_loc_desc_needs_frame): Likewise.
3080 (locexpr_describe_location_1): Likewise.
3081 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3083 (struct dwarf2_loclist_baton): Likewise.
3084 * dwarf2read.c (struct dwarf_block): Likewise.
3085 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3086 (decode_locdesc): Expand SIZE and I to size_t.
3088 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3090 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3092 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3094 * doublest.c (convert_doublest_to_floatformat): If the exponent
3095 is too small, treat the value as zero. If the exponent is too
3096 large, treat the value as infinity.
3098 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3100 * configure.ac: Add --enable-lmcheck configure option.
3101 * configure: Regenerate.
3103 2012-07-25 Tom Tromey <tromey@redhat.com>
3105 * NEWS: Mention maint info bfds.
3106 * gdb_bfd.c (all_bfds): New global.
3107 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3108 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3111 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3113 * configure.tgt: Add v850*-*-rtems*.
3115 2012-07-25 Tom Tromey <tromey@redhat.com>
3117 * macrotab.c (macro_bcache_str): Remove cast.
3119 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3121 * linespec.c (linespec_lexer_lex_number): Update comments,
3122 change the return and add check to make sure the input is
3123 the decimal numbers.
3124 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3125 false, call linespec_lexer_lex_string.
3127 2012-07-24 Tom Tromey <tromey@redhat.com>
3129 * symfile.c (symbol_file_add): Don't open BFD twice.
3131 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3133 * breakpoint.c (create_breakpoint): Store condition for pending
3136 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3138 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3139 (m68k_return_value): Handle complex types like structures.
3140 (m68k_svr4_return_value): Likewise.
3142 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3144 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3145 parameters to bfd_get_section_name.
3147 2012-07-24 Yao Qi <yao@codesourcery.com>
3149 * cli/cli-setshow.c: Handle case 'var_uinteger'
3150 and 'var_zuninteger' together. Handle case 'var_integer' and
3151 'var_zinteger' together.
3153 2012-07-23 Keith Seitz <keiths@redhat.com>
3155 * linespec.c (convert_linespec_to_sal): Don't add
3156 any symbols to the result vector if symbol_to_sal
3159 2012-07-23 Keith Seitz <keiths@redhat.com>
3161 * linespec.c (decode_objc): Record the function name
3164 2012-07-23 Tom Tromey <tromey@redhat.com>
3166 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3168 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3169 (map_vmap): Acquire a reference to the BFD.
3171 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3173 * p-valprint.c (pascal_object_print_value): Replace potentially
3174 unsafe alloca with xmalloc/xfree.
3175 * valops.c (search_struct_method): Likewise.
3177 2012-07-23 Tom Tromey <tromey@redhat.com>
3179 * solib-svr4.c (enable_break): Update.
3180 * bfd-target.h (target_bfd_reopen): Update documentation.
3182 2012-07-23 Tom Tromey <tromey@redhat.com>
3184 * symfile.c (separate_debug_file_exists): Update.
3185 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3186 (reread_symbols): Update.
3187 * elfread.c (build_id_verify): Update.
3188 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3189 bfd_open_maybe_remote.
3191 2012-07-23 Tom Tromey <tromey@redhat.com>
3193 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3195 2012-07-23 Tom Tromey <tromey@redhat.com>
3197 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3199 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3201 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3202 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3204 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3205 * objfiles.c (allocate_objfile): Acquire a new reference.
3206 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3207 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3208 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3209 a cleanup for 'nbfd'.
3210 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3212 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3213 make a cleanup for 'abfd'.
3214 (symbol_file_add): Make a BFD cleanup.
3216 2012-07-23 Tom Tromey <tromey@redhat.com>
3218 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3219 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3220 * corelow.c (core_open): Use gdb_bfd_fopen.
3221 * dsrec.c (load_srec): Use gdb_bfd_openr.
3222 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3223 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3224 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3225 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3226 (gdb_bfd_fdopenr): New functions.
3227 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3228 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3229 (gdb_bfd_fdopenr): Declare.
3230 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3231 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3232 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3233 gdb_bfd_openr_next_archived_file.
3234 (macho_check_dsym): Use gdb_bfd_openr.
3235 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3236 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3237 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3238 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3240 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3241 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3242 gdb_bfd_openr_next_archived_file.
3243 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3245 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3247 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3248 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3249 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3250 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3251 (symfile_bfd_open): Use gdb_bfd_fopen.
3252 (generic_load): Use gdb_bfd_openr.
3253 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3255 2012-07-23 Tom Tromey <tromey@redhat.com>
3257 * bfd-target.c (target_bfd_reopen): Update.
3258 * cli/cli-dump.c (bfd_openr_with_cleanup)
3259 (bfd_openw_with_cleanup): Update.
3260 * corelow.c (core_open): Update.
3261 * dsrec.c (load_srec): Update.
3262 * exec.c (exec_file_attach): Update.
3263 * gcore.c (create_gcore_bfd): Update.
3264 * gdb_bfd.c (gdb_bfd_ref): Return void.
3265 (gdb_bfd_open): Update.
3266 * gdb_bfd.h (gdb_bfd_ref): Return void.
3268 * jit.c (jit_bfd_try_read_symtab): Update.
3269 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3270 * machoread.c (macho_symfile_read_all_oso): Update.
3271 (macho_check_dsym): Update.
3272 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3273 * remote-m32r-sdi.c (m32r_load): Update.
3274 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3275 * rs6000-nat.c (add_vmap): Update.
3276 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3278 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3279 * solib-spu.c (spu_bfd_open): Update.
3280 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3281 * spu-linux-nat.c (spu_bfd_open): Update.
3282 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3283 (generic_load): Update.
3284 * windows-nat.c (windows_make_so): Update.
3286 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3288 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3290 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3292 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3293 SIGTRAMP_FRAME unwinding.
3295 2012-07-20 Doug Evans <dje@google.com>
3297 * NEWS: Document new options "set/show use-deprecated-index-sections",
3298 and delete reference to --use-deprecated-index-sections.
3299 * symfile.h (use_deprecated_index_sections): Delete.
3300 * dwarf2read.c (use_deprecated_index_sections): Make static.
3301 (read_index_from_section): Update wording of how to load
3302 deprecated index sections.
3303 (_initialize_dwarf2_read): New options
3304 "set/show use-deprecated-index-sections".
3305 * main.c (captured_main): Delete --use-deprecated-index-sections.
3307 2012-07-20 Pedro Alves <palves@redhat.com>
3312 * infrun.c (handle_inferior_event) <new thread>: Don't special
3313 case minus_one_ptid.
3314 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3315 * linux-thread-db.c (thread_get_info_callback): Don't return early
3316 if the thread is zombie.
3317 (thread_from_lwp): Change return type to void. Rewrite stale
3319 (attach_thread): Don't return early if the thread is zombie,
3320 instead set its "dying" flag.
3321 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3322 (find_new_threads_callback): Don't return early if the thread is
3325 2012-07-20 Pedro Alves <palves@redhat.com>
3327 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3328 * target.c (target_wait): Likewise.
3329 (str_comma_list_concat_elem, do_option, target_options_to_string):
3331 * target.h (target_options_to_string): Declare.
3333 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3334 Tom Tromey <tromey@redhat.com>
3336 * dwarf2read.c (dwarf_decode_macros)
3337 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3338 DW_MACRO_GNU_transparent_include_alt>: New cases.
3339 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3340 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3342 2012-07-20 Tom Tromey <tromey@redhat.com>
3344 * dwarf2read.c (try_open_dwo_file): Don't call
3345 gdb_bfd_stash_filename.
3347 2012-07-20 Pedro Alves <palves@redhat.com>
3349 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3350 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3351 (i386_process_record): Tweak description comments.
3353 2012-07-20 Pedro Alves <palves@redhat.com>
3355 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3356 (i386_process_record): Use record_read_memory.
3357 * record.c (record_read_memory): New function.
3358 (record_arch_list_add_mem, record_exec_insn): Use
3360 * record.h (record_read_memory): Declare.
3362 2012-07-20 Yao Qi <yao@codesourcery.com>
3364 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3367 2012-07-19 Pedro Alves <palves@redhat.com>
3369 * record.c (record_resume): Ask the target beneath to report all
3372 2012-07-19 Doug Evans <dje@google.com>
3374 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3375 there's no section at address zero.
3376 (dwarf2_record_block_ranges): Ditto.
3378 2012-07-19 Yao Qi <yao@codesourcery.com>
3380 * command.h, remote.c: Fix a typo in comment.
3382 2012-07-19 Tom Tromey <tromey@redhat.com>
3385 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3386 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3387 OP_DECLTYPE>: New cases.
3388 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3389 (type_exp): Add new productions.
3390 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3392 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3394 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3395 OP_DECLTYPE>: New case.
3396 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3398 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3399 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3401 2012-07-19 Tom Tromey <tromey@redhat.com>
3403 * c-exp.y (enum token_flags): New.
3404 (struct token) <cxx_only>: Remove.
3406 (tokentab3, tokentab2, ident_tokens): Update.
3407 (lex_one_token): Update. Handle FLAG_SHADOW.
3409 2012-07-19 Tom Tromey <tromey@redhat.com>
3411 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3412 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3413 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3414 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3415 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3416 type_exp production where appropriate.
3417 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3418 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3419 <UNOP_MEMVAL_TYPE>: New case.
3420 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3421 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3422 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3423 <UNOP_MEMVAL_TYPE>: New case.
3424 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3425 UNOP_REINTERPRET_CAST>: Update.
3426 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3427 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3428 UNOP_REINTERPRET_CAST>: Update.
3429 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3430 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3431 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3434 2012-07-19 Yao Qi <yao@codesourcery.com>
3435 Jan Kratochvil <jan.kratochvil@redhat.com>
3437 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3438 and case 'var_optional_filename' together.
3439 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3440 instead of add_setshow_optional_filename_cmd for setshow command
3441 'args'. Set completer for 'set args'.
3443 2012-07-18 Doug Evans <dje@google.com>
3445 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3446 * common/gdb_vecs.c: New file, contents from utils.c.
3447 * common/host-defs.h: New file, contents from defs.h.
3448 * utils.h: New file, contents from defs.h.
3449 * defs.h: Move all declarations of objects defined in utils.c
3450 to utils.h (except QUIT() and related).
3451 #include "utils.h", "host-defs.h".
3452 * probe.h (probe_p): Move here from gdb_vecs.h.
3453 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3454 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3455 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3456 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3457 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3458 (COMMON_OBS): Add gdb_vecs.o.
3459 (gdb_vecs.o): New rule.
3461 2012-07-18 Keith Seitz <keiths@redhat.com>
3463 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3464 parameter. If non-zero, use SYMNAME as the canonical name
3467 (convert_linespec_to_sals): Use add_sal_to_sals for
3469 (decode_line_full): No need to "fill in missing canonical names"
3470 anymore. Simply make cleanups for the allocated names.
3472 2012-07-18 Keith Seitz <keiths@redhat.com>
3474 * linespec.c (struct linespec): Constify expression,
3475 source_filename, function_name, and label_name.
3476 (symbol_not_found_error): Make all parameters const.
3477 (linespec_parser_delete): No need to check for NULL
3478 when using xfree. Cast const char * to char * for xfree.
3480 2012-07-18 Keith Seitz <keiths@redhat.com>
3482 * breakpoint.c (invalid_thread_id_error): New function.
3483 (find_condition_and_thread): Use invalid_thread_id_error.
3484 (watch_command_1): Likewise.
3486 2012-07-18 Tom Tromey <tromey@redhat.com>
3488 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3489 * contrib/cc-with-tweaks.sh: New file.
3491 2012-07-18 Tom Tromey <tromey@redhat.com>
3493 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3494 (locate_dwz_sections): Recognize .gdb_index.
3495 (create_cus_from_index_list): New function.
3496 (create_cus_from_index): Use it. Handle .dwz data.
3497 (read_index_from_section): New function, extracted from
3499 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3502 2012-07-18 Tom Tromey <tromey@redhat.com>
3504 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3505 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3506 <is_dwz>: New field.
3507 (struct dwz_file): New.
3508 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3509 (locate_dwz_sections, dwarf2_get_dwz_file)
3510 (get_abbrev_section_for_cu): New functions.
3511 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3512 (read_and_check_type_unit_head): Add abbrev_section argument.
3513 (create_debug_types_hash_table): Update.
3514 (init_cutu_and_read_dies): Use proper abbrev section.
3515 (init_cutu_and_read_dies_no_follow): Likewise.
3516 (set_partial_user): Do nothing if PST==NULL.
3517 (read_comp_units_from_section): New function.
3518 (create_all_comp_units): Use it.
3519 (scan_partial_symbols, partial_die_parent_scope): Update.
3520 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3521 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3522 (find_partial_die): Add offset_in_dwz argument. Update.
3523 (guess_partial_die_structure_name, fixup_partial_die): Update.
3524 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3525 DW_FORM_GNU_strp_alt.
3526 (read_indirect_string_from_dwz): New function.
3527 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3528 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3529 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3530 (follow_die_offset): Add offset_in_dwz argument.
3531 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3532 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3533 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3534 Handle new macro forms.
3535 (dwarf_decode_macros): Update.
3536 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3537 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3538 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3539 (create_debug_types_hash_table): Use correct abbrev section.
3540 (get_debug_line_section): New function.
3541 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3542 (process_full_comp_unit): Pass 'required' argument to
3543 end_symtab_get_static_block.
3544 * buildsym.h (end_symtab_get_static_block): Update.
3545 * buildsym.c (end_symtab_get_static_block): Add 'required'
3547 (end_symtab, end_expandable_symtab): Update.
3549 2012-07-18 Tom Tromey <tromey@redhat.com>
3551 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3553 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3554 (zlib_decompress_section): Remove.
3555 (dwarf2_read_section): Use gdb_bfd_map_section.
3556 (munmap_section_buffer): Remove.
3557 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3558 munmap_section_buffer.
3559 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3560 (struct gdb_bfd_section_data): New.
3561 (free_one_bfd_section): New function.
3562 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3563 (get_section_descriptor, zlib_decompress_section)
3564 (gdb_bfd_map_section): New functions.
3565 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3567 2012-07-18 Tom Tromey <tromey@redhat.com>
3569 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3571 2012-07-18 Tom Tromey <tromey@redhat.com>
3573 * gdb_bfd.c (struct gdb_bfd_data): New.
3574 (gdb_bfd_cache): New global.
3575 (struct gdb_bfd_cache_search): New.
3576 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3577 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3578 * gdb_bfd.h (gdb_bfd_open): Declare.
3580 2012-07-18 Tom Tromey <tromey@redhat.com>
3582 * utils.c (make_cleanup_bfd_unref): Rename from
3583 make_cleanup_bfd_close.
3584 * defs.h (make_cleanup_bfd_unref): Rename from
3585 make_cleanup_bfd_close.
3586 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3587 (bfd_openw_with_cleanup): Update.
3588 * corelow.c (core_open): Update.
3589 * dsrec.c (load_srec): Update.
3590 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3591 * remote-m32r-sdi.c (m32r_load): Update.
3592 * remote-mips.c (mips_load_srec): Update.
3593 (pmon_load_fast): Update.
3594 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3596 (darwin_bfd_open): Update.
3597 * solib.c (solib_bfd_fopen): Update.
3598 * symfile-mem.c (symbol_file_add_from_memory): Update.
3599 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3600 (symfile_bfd_open): Update.
3601 (generic_load): Update.
3603 2012-07-18 Tom Tromey <tromey@redhat.com>
3605 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3606 (pmon_load_fast): Likewise.
3607 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3608 (m32r_upload_command): Likewise.
3609 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3610 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3611 Use make_cleanup_bfd_close.
3613 2012-07-18 Tom Tromey <tromey@redhat.com>
3615 * symfile.c (symfile_bfd_open): Don't copy name. Call
3616 gdb_bfd_stash_filename.
3617 (load_command): Open the new BFD before freeing the old.
3618 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3619 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3620 Call gdb_bfd_stash_filename.
3621 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3622 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3623 gdb_bfd_stash_filename.
3624 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3625 Free found_pathname.
3626 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3627 gdb_bfd_stash_filename.
3628 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3629 * machoread.c (macho_add_oso_symfile): Call
3630 gdb_bfd_stash_filename.
3631 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3632 gdb_bfd_stash_filename.
3633 (macho_check_dsym): Don't copy filename. Call
3634 gdb_bfd_stash_filename.
3635 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3636 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3637 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3638 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3639 * exec.c (exec_close): Don't free the BFD's filename.
3640 (exec_file_attach): Don't copy the filename. Call
3641 gdb_bfd_stash_filename.
3642 * corelow.c (core_close): Don't free the BFD's filename.
3643 (core_open): Call gdb_bfd_stash_filename.
3644 * corefile.c (reopen_exec_file): Remove #if 0 code.
3645 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3647 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3649 2012-07-18 Tom Tromey <tromey@redhat.com>
3651 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3653 (free_dwo_file): Use gdb_bfd_unref.
3654 * cli/cli-dump.c: Include gdb_bfd.h.
3655 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3656 (bfd_openr_with_cleanup): Likewise.
3657 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3659 * utils.c: Include gdb_bfd.h.
3660 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3661 * symfile.c: Include gdb_bfd.h.
3662 (separate_debug_file_exists): Use gdb_bfd_unref.
3663 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3664 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3665 (generic_load): Use gdb_bfd_ref.
3666 (reread_symbols): Use gdb_bfd_unref.
3667 * symfile-mem.c: Include gdb_bfd.h.
3668 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3669 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3670 * solib.c: Include gdb_bfd.h.
3671 (solib_bfd_fopen): Use gdb_bfd_ref.
3672 (solib_bfd_open): Use gdb_bfd_unref.
3673 (free_so_symbols): Use gdb_bfd_unref.
3674 (reload_shared_libraries_1): Use gdb_bfd_unref.
3675 * solib-spu.c: Include gdb_bfd.h.
3676 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3677 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3679 * solib-frv.c: Include gdb_bfd.h.
3680 (enable_break2): Use gdb_bfd_unref.
3681 * solib-dsbt.c: Include gdb_bfd.h.
3682 (enable_break2): Use gdb_bfd_unref.
3683 * solib-darwin.c: Include gdb_bfd.h.
3684 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3686 (darwin_bfd_open): Use gdb_bfd_unref.
3687 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3688 * remote-mips.c: Include gdb_bfd.h.
3689 (mips_load_srec): Use gdb_bfd_ref.
3690 (pmon_load_fast): Use gdb_bfd_ref.
3691 * remote-m32r-sdi.c: Include gdb_bfd.h.
3692 (m32r_load): Use gdb_bfd_ref.
3693 * record.c: Include gdb_bfd.h.
3694 (record_save_cleanups): Use gdb_bfd_unref.
3695 (cmd_record_save): Use gdb_bfd_unref.
3696 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3698 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3699 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3700 * objfiles.c: Include gdb_bfd.h.
3701 (free_objfile): Use gdb_bfd_unref.
3702 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3704 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3705 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3706 (macho_check_dsym): Likewise.
3707 * m32r-rom.c: Include gdb_bfd.h.
3708 (m32r_load): Use gdb_bfd_ref.
3709 (m32r_upload_command): Use gdb_bfd_ref.
3710 * jit.c: Include gdb_bfd.h.
3711 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3712 * gdb_bfd.h: New file.
3713 * gdb_bfd.c: New file.
3714 * gcore.c: Include gdb_bfd.h.
3715 (create_gcore_bfd): Use gdb_bfd_ref.
3716 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3717 (gcore_command): Use gdb_bfd_unref.
3718 * exec.c: Include gdb_bfd.h.
3719 (exec_close): Use gdb_bfd_unref.
3720 (exec_close_1): Use gdb_bfd_unref.
3721 (exec_file_attach): Use gdb_bfd_ref.
3722 * elfread.c: Include gdb_bfd.h.
3723 (build_id_verify): Use gdb_bfd_unref.
3724 * dsrec.c: Include gdb_bfd.h.
3725 (load_srec): Use gdb_bfd_ref.
3726 * corelow.c: Include gdb_bfd.h.
3727 (core_close): Use gdb_bfd_unref.
3728 (core_open): Use gdb_bfd_ref.
3729 * bfd-target.c: Include gdb_bfd.h.
3730 (target_bfd_xclose): Use gdb_bfd_unref.
3731 (target_bfd_reopen): Use gdb_bfd_ref.
3732 * Makefile.in (SFILES): Add gdb_bfd.c.
3733 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3734 (COMMON_OBS): Add gdb_bfd.o.
3736 2012-07-18 Keith Seitz <keiths@redhat.com>
3738 * breakpoint.c (find_condition_and_thread): Initialize
3740 (create_breakpiont): find_condition_and_thread will now
3741 initialize COND_STRING, THREAD, and REST (and TASK).
3742 (addr_string_to_sals): Likewise.
3744 2012-07-18 Pedro Alves <palves@redhat.com>
3746 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3747 Pull the single step breakpoints out of the target.
3749 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3751 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3752 * stap-probe.c (compile_probe_arg): Likewise.
3754 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3756 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3757 (elf_compile_to_ax): Likewise.
3758 * infrun.c (insert_exception_resume_from_probe): Likewise.
3759 (check_exception_resume): Remove `objfile' variable.
3760 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3761 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3762 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3763 (compare_entries): Rename to...
3764 (compare_probes): ...this. Adjust function to work with
3765 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3767 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3769 (print_ui_out_info): Adjust argument to be `struct probe *'.
3770 (info_probes_for_ops): Adjust internal computations to use
3772 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3773 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3774 gen_info_probes_table_values>: Remove `objfile' argument.
3775 (struct probe) <objfile>: New field.
3776 (find_probe_by_pc): Remove `objfile' argument.
3777 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3778 (stap_get_probe_argument_count): Likewise.
3779 (stap_get_arg): Likewise.
3780 (stap_evaluate_probe_argument): Likewise.
3781 (stap_compile_to_ax): Likewise.
3782 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3783 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3784 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3785 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3786 sym_compile_to_ax>: Likewise.
3788 2012-07-18 Terry Guo <terry.guo@arm.com>
3791 * defs.h (GDB_MI_MSG_WIDTH): New.
3792 * ser_base (ser_base_read_error_fd): New function.
3793 (do_ser_base_readchar): Poll error file descriptor as well as
3795 (generic_readchar): Refactor error handling.
3797 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3799 * NEWS: Create a new section for the next release branch.
3800 Rename the section of the current branch, now that it has
3803 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3805 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3806 * version.in: Bump version to 7.5.50.20120718-cvs.
3808 2012-07-17 Keith Seitz <keiths@redhat.com>
3810 * linespec.c (linespec_parse_line_offset): Make parameter
3813 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3816 * f-valprint.c (info_common_command): New variable frame_id.
3817 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3818 * printcmd.c (print_variable_and_value): Extend function comment.
3819 Add comment for invalidated FRAME.
3820 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3821 FI form FRAME_ID after each print_frame_local_vars.
3822 (struct print_variable_and_value_data): Change frame to frame_id.
3823 (do_print_variable_and_value): New variable frame, initialize it from
3824 p->frame_id. Add comment for invalidated FRAME.
3825 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3826 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3827 for invalidated FRAME.
3829 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3830 Pedro Alves <palves@redhat.com>
3832 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3835 2012-07-16 Tom Tromey <tromey@redhat.com>
3837 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3839 2012-07-15 Doug Evans <dje@google.com>
3841 * dwarf2read.c (stmt_list_hash): New struct.
3842 (type_unit_group): Embed "per_cu" member, remove pointer.
3843 New union member "t", move member "tus" into it, all uses updated.
3844 New member "hash", replaces member "line_offset, all uses updated.
3845 (quick_file_names): Replace member "offset" with "hash", all uses
3847 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3848 (hash_file_name_entry, eq_file_name_entry): Call them.
3849 (hash_type_unit_group, eq_type_unit_group): Ditto.
3850 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3851 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3852 (dw2_get_file_names): Update.
3853 (create_type_unit_group): Replace "per_cu" arg with "cu".
3854 All callers updated. Fix "quick" (.gdb_index) handling.
3855 (get_type_unit_group): Replace "per_cu" arg with "cu".
3856 All callers updated.
3857 (build_type_unit_groups): Don't reset tu_stats.
3859 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3860 "tab_cur_size". Change member "tab" to be a htab_t.
3861 (create_filename_seen_cache): Update.
3862 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3863 (filename_seen): Update.
3865 2012-07-13 Doug Evans <dje@google.com>
3867 * symtab.c (filename_seen): Update comment.
3869 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3870 Doug Evans <dje@google.com>
3872 * buildsym.c (end_symtab_1): Split it to ...
3873 (end_symtab_get_static_block): ... this ...
3874 (end_symtab_from_static_block): ... and this function.
3875 (end_symtab, end_expandable_symtab): Call them.
3876 * buildsym.h (end_symtab_get_static_block)
3877 (end_symtab_from_static_block): New declarations.
3878 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3879 Set its valid CU ranges.
3881 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3883 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3884 DW_OP_GNU_parameter_ref.
3886 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3888 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3889 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3891 2012-07-13 Doug Evans <dje@google.com>
3893 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3894 (filename_seen_cache): New struct.
3895 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3896 (create_filename_seen_cache): New function.
3897 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3898 (filename_seen): Delete arg "first". New arg "cache". All callers
3900 (output_source_filename_data): New struct.
3901 (output_source_filename): Delete arg "first". New arg "data".
3902 All callers updated.
3903 (sources_info): Delete local "first". New locals "data", "cleanups".
3904 Rewrite to use filename_seen_cache.
3905 (add_partial_filename_data): Delete member "first". New member
3906 "filename_seen_cache". All uses updated.
3907 (make_source_files_completion_list): Rewrite to use
3908 filename_seen_cache.
3910 2012-07-12 Doug Evans <dje@google.com>
3912 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3914 2012-07-10 Doug Evans <dje@google.com>
3917 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3918 all_type_unit_groups, type_unit_groups, tu_stats.
3919 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3920 All uses updated. Add type_unit_group to union "s".
3921 (type_unit_group): New struct.
3922 (IS_TYPE_UNIT_GROUP): New macro.
3923 (abbrev_table): Delete unused member "section".
3924 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3925 (dw2_get_cu): Assert not used with type_unit_group.
3926 (dw2_get_primary_cu): New function.
3927 (dw2_build_type_unit_groups_reader): New function.
3928 (dw2_build_type_unit_groups): New function.
3929 (dw2_get_file_names): Assert not called on type units.
3930 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3931 Redo loop to iterate over type unit groups instead of type units.
3932 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3933 (read_abbrev_offset): New function.
3934 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3936 (create_partial_symtab): New function.
3937 (process_psymtab_comp_unit_reader): Assert not used with type units.
3938 Call create_partial_symtab.
3939 (process_psymtab_type_unit): Delete.
3940 (hash_type_unit_group, eq_type_unit_group): New functions.
3941 (allocate_type_unit_groups_table): New function.
3942 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3943 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3944 (create_type_unit_group, get_type_unit_group): New functions.
3945 (tu_abbrev_offset): New struct.
3946 (sort_tu_by_abbrev_offset): New function.
3947 (add_type_unit_group_to_table): New function.
3948 (build_type_unit_groups): New function.
3949 (build_type_psymtabs_reader): New function.
3950 (build_type_psymtab_dependencies): New function.
3951 (build_type_psymtabs): Rewrite.
3952 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3953 is seen in a type unit.
3954 (process_queue): Move symtab expansion debugging printfs here.
3955 Call process_full_type_unit for type units.
3956 (compute_symtab_includes): Assert not called for type units.
3957 (process_cu_includes): Don't call compute_symtab_includes for
3959 (process_full_type_unit): New function.
3960 (process_imported_unit_die): Flag an error if called for type units.
3961 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3962 updated. Assert not called for type units.
3963 (read_file_scope): Call dwarf2_start_symtab.
3964 (setup_type_unit_groups): New function.
3965 (read_type_unit_scope): Rewrite.
3966 (abbrev_table_read_table): Initialize abbrev_table->offset.
3967 (abbrev_table_free_cleanup): New function.
3968 (dwarf2_start_symtab): New function.
3969 (load_full_type_unit): Assert not called for type unit groups.
3970 * buildsym.c (finish_block_internal): New arg "expandable".
3971 All callers updated.
3972 (start_symtab): Move most contents to ...
3973 (restart_symtab): ... here. New function.
3974 (reset_symtab_globals): New function.
3975 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3976 Call reset_symtab_globals.
3977 (end_symtab, end_expandable_symtab): New functions.
3978 (set_missing_symtab, augment_type_symtab): New functions.
3979 * buildsym.h (end_expandable_symtab): Declare.
3980 (augment_type_symtab, restart_symtab): Declare.
3981 * psympriv.h (struct partial_symtab): New member "anonymous".
3982 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3984 (read_psymtabs_with_filename): Ditto.
3985 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3986 (expand_symtabs_matching_via_partial): Ditto.
3987 (dump_psymtab): Update.
3988 * dictionary.c (dict_add_pending): New function.
3989 * dictionary.h (dict_add_pending): Declare.
3991 2012-07-09 Doug Evans <dje@google.com>
3993 * buildsym.c (start_subfile): Remove unnecessary check for
3996 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3998 * dwarf2read.c (load_full_type_unit): Simplify.
4000 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4001 to struct signatured_type **. All uses updated.
4003 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4004 All callers updated.
4006 2012-07-09 Tom Tromey <tromey@redhat.com>
4008 * c-exp.y (check_parameter_typelist): New function.
4009 (parameter_typelist): Call it.
4010 * eval.c (make_params): Handle '(void)' case.
4011 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4014 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4016 * common/linux-ptrace.c: Include gdb_assert.h.
4017 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4018 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4020 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4022 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4023 * linux-nat.c (linux_child_post_attach)
4024 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4026 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4028 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4029 nptl <2.7 bug workaround for core files.
4031 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4033 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4035 (save_siginfo): Remove.
4036 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4038 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4039 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4040 * linux-nat.h (struct lwp_info): Remove field siginfo.
4042 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4044 Code cleanup for the next patch.
4045 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4046 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4048 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4049 (ia64_linux_stopped_data_address):
4050 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4052 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4053 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4054 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4057 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4060 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4061 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4063 2012-07-06 Tom Tromey <tromey@redhat.com>
4065 * c-exp.y (DOTDOTDOT): New token.
4066 (func_mod, exp): Use parameter_typelist.
4067 (parameter_typelist): New production.
4068 (tokentab3): Add "..." token.
4069 * eval.c (make_params): Handle varargs.
4070 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4073 2012-07-06 Tom Tromey <tromey@redhat.com>
4076 * c-exp.y (%union) <tvec>: Change type.
4077 (func_mod): Now uses <tvec> type.
4078 (exp): Update for tvec change.
4079 (direct_abs_decl): Push the typelist.
4080 (func_mod): Return a typelist.
4081 (nonempty_typelist): Update for tvec change.
4082 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4083 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4084 * parse.c (pop_type_list): New function.
4085 (push_typelist): New function.
4086 (follow_types): Handle tp_function_with_arguments.
4087 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4088 (enum type_pieces) <tp_function_with_arguments>: New constant.
4089 (union type_stack_elt) <typelist_val>: New field.
4090 (push_typelist): Declare.
4092 2012-07-06 Tom Tromey <tromey@redhat.com>
4094 * c-exp.y (%union) <type_stack>: New field.
4095 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4096 (ptr_operator_ts): New production.
4098 * parse.c (type_stack_reserve): New function.
4099 (check_type_stack_depth): Use it.
4100 (pop_type_stack, append_type_stack, push_type_stack)
4101 (get_type_stack, type_stack_cleanup): New functions.
4102 (follow_types): Handle tp_type_stack.
4103 (_initialize_parse): Simplify initialization.
4104 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4106 (union type_stack_elt) <stack_val>: New field.
4107 (get_type_stack, append_type_stack, push_type_stack)
4108 (type_stack_cleanup): Declare.
4110 2012-07-06 Tom Tromey <tromey@redhat.com>
4112 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4114 (struct type_stack): New.
4115 * parse.c (type_stack, type_stack_size, type_stack_depth):
4117 (type_stack): New global.
4118 (parse_exp_in_context, check_type_stack_depth)
4119 (insert_into_type_stack, insert_type, push_type, push_type_int)
4120 (insert_type_address_space, pop_type, pop_type_int)
4121 (_initialize_parse): Update.
4123 2012-07-06 Tom Tromey <tromey@redhat.com>
4125 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4128 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4130 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4132 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4133 Jan Kratochvil <jan.kratochvil@redhat.com>
4135 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4136 alloca with xmalloc/xfree.
4138 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4140 * MAINTAINERS (Write After Approval): Add myself to the list.
4142 2012-07-05 Doug Evans <dje@google.com>
4144 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4146 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4148 * ax-gdb.c (cli/cli-utils.h): New include.
4149 (linespec.h): Ditto.
4150 (agent_eval_command_one): New function.
4151 (agent_command_1): Ditto.
4152 (agent_command): Call function agent_command_1.
4153 (agent_eval_command): Ditto.
4154 (_initialize_ax_gdb): Change help for "maint agent"
4155 and "maint agent-eval".
4157 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4159 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4160 * cli/cli-utils.c (check_for_argument): New function.
4161 * cli/cli-utils.h (check_for_argument): Ditto.
4163 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4165 * NEWS: Mention x32 ABI support.
4167 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4169 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4170 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4172 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4173 and pc_regnum_from_eax to -1. Update SP regnum from
4174 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4177 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4180 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4182 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4183 * dwarf2expr.h: Include gdbtypes.h.
4184 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4185 these forward declarations.
4186 (cu_offset, sect_offset): Move these ...
4187 * gdbtypes.h: Remove include dwarf2expr.h.
4188 (cu_offset, sect_offset): ... here.
4190 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4192 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4193 (amd64_linux_sigtramp_code): This.
4194 (amd64_x32_linux_sigtramp_code): New.
4195 (LINUX_SIGTRAMP_LEN): Updated.
4196 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4198 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4200 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4202 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4204 * config.in: Regenerate.
4205 * configure: Regenerate.
4206 * configure.ac: Remove check for gnu/libc-version.h.
4207 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4209 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4210 variables libc_version, libc_major and libc_minor. Replace sscanf by
4211 inferior_has_bug. Extend the comment.
4213 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4215 * linux-thread-db.c (inferior_has_bug): New function.
4216 (thread_db_find_new_threads_silently): Return boolean as checked by
4217 inferior_has_bug, describe it in the comments.
4218 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4219 earlier. Abort the initialization if it returned non-zero.
4220 (thread_db_new_objfile): Exclude debug files.
4221 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4224 2012-07-02 Doug Evans <dje@google.com>
4226 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4227 related to queue management.
4229 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4230 instead of "debug dwarf2-die" in debugging printfs.
4231 (create_debug_info_hash_table_reader): Ditto.
4232 (create_debug_info_hash_table): Ditto.
4233 (init_dwo_file): Ditto.
4234 (init_cutu_and_read_dies): Add debugging printf.
4235 (init_cutu_and_read_dies_no_follow): Ditto.
4236 (process_psymtab_comp_unit_reader): Ditto.
4238 2012-07-02 Stan Shebs <stan@codesourcery.com>
4240 Add target-side support for dynamic printf.
4241 * NEWS: Mention the additional style.
4242 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4243 (struct bp_location): New field cmd_bytecode.
4244 * breakpoint.c: Include format.h.
4245 (disconnected_dprintf): New global.
4246 (parse_cmd_to_aexpr): New function.
4247 (build_target_command_list): New function.
4248 (insert_bp_location): Call it.
4249 (remove_breakpoints_pid): Skip dprintf breakpoints.
4250 (print_one_breakpoint_location): Ditto.
4251 (dprintf_style_agent): New global.
4252 (dprintf_style_enums): Add dprintf_style_agent.
4253 (update_dprintf_command_list): Add agent case.
4254 (agent_printf_command): New function.
4255 (_initialize_breakpoint): Add new commands.
4256 * common/ax.def (printf): New bytecode.
4257 * ax.h (ax_string): Declare.
4258 * ax-gdb.h (gen_printf): Declare.
4259 * ax-gdb.c: Include cli-utils.h, format.h.
4260 (gen_printf): New function.
4261 (maint_agent_print_command): New function.
4262 (_initialize_ax_gdb): Add maint agent-printf command.
4263 * ax-general.c (ax_string): New function.
4264 (ax_print): Add printf disassembly.
4265 * Makefile.in (SFILES): Add format.c
4266 (COMMON_OBS): Add format.o.
4267 * common/format.h: New file.
4268 * common/format.c: New file.
4269 * printcmd.c: Include format.h.
4270 (ui_printf): Call parse_format_string.
4271 * remote.c (remote_state): New field breakpoint_commands.
4272 (PACKET_BreakpointCommands): New enum.
4273 (remote_breakpoint_commands_feature): New function.
4274 (remote_protocol_features): Add new BreakpointCommands entry.
4275 (remote_can_run_breakpoint_commands): New function.
4276 (remote_add_target_side_commands): New function.
4277 (remote_insert_breakpoint): Call it.
4278 (remote_insert_hw_breakpoint): Ditto.
4279 (_initialize_remote): Add new packet configuration for
4280 target-side breakpoint commands.
4281 * target.h (struct target_ops): New field
4282 to_can_run_breakpoint_commands.
4283 (target_can_run_breakpoint_commands): New macro.
4284 * target.c (update_current_target): Handle
4285 to_can_run_breakpoint_commands.
4287 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4289 Execute -ix and -iex only after system and user gdbinit files.
4290 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4291 processing down after gdbinit files.
4293 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4295 Add fnmatch-gnu module.
4296 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4297 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4298 * gnulib/aclocal.m4: Regenerate.
4299 * gnulib/config.in: Regenerate.
4300 * gnulib/configure: Regenerate.
4301 * gnulib/import/dummy.c: Remove.
4302 * gnulib/import/Makefile.am: Regenerate.
4303 * gnulib/import/Makefile.in: Likewise.
4304 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4305 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4306 * gnulib/import/alloca.c: New file.
4307 * gnulib/import/alloca.in.h: Likewise.
4308 * gnulib/import/config.charset: Likewise.
4309 * gnulib/import/fnmatch.c: Likewise.
4310 * gnulib/import/fnmatch.in.h: Likewise.
4311 * gnulib/import/fnmatch_loop.c: Likewise.
4312 * gnulib/import/localcharset.c: Likewise.
4313 * gnulib/import/localcharset.h: Likewise.
4314 * gnulib/import/m4/alloca.m4: Likewise.
4315 * gnulib/import/m4/codeset.m4: Likewise.
4316 * gnulib/import/m4/configmake.m4: Likewise.
4317 * gnulib/import/m4/fcntl-o.m4: Likewise.
4318 * gnulib/import/m4/fnmatch.m4: Likewise.
4319 * gnulib/import/m4/glibc21.m4: Likewise.
4320 * gnulib/import/m4/localcharset.m4: Likewise.
4321 * gnulib/import/m4/locale-fr.m4: Likewise.
4322 * gnulib/import/m4/locale-ja.m4: Likewise.
4323 * gnulib/import/m4/locale-zh.m4: Likewise.
4324 * gnulib/import/m4/mbrtowc.m4: Likewise.
4325 * gnulib/import/m4/mbsinit.m4: Likewise.
4326 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4327 * gnulib/import/m4/mbstate_t.m4: Likewise.
4328 * gnulib/import/m4/stdbool.m4: Likewise.
4329 * gnulib/import/m4/wchar_h.m4: Likewise.
4330 * gnulib/import/m4/wctype_h.m4: Likewise.
4331 * gnulib/import/m4/wint_t.m4: Likewise.
4332 * gnulib/import/mbrtowc.c: Likewise.
4333 * gnulib/import/mbsinit.c: Likewise.
4334 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4335 * gnulib/import/mbsrtowcs-state.c: Likewise.
4336 * gnulib/import/mbsrtowcs.c: Likewise.
4337 * gnulib/import/ref-add.sin: Likewise.
4338 * gnulib/import/ref-del.sin: Likewise.
4339 * gnulib/import/stdbool.in.h: Likewise.
4340 * gnulib/import/streq.h: Likewise.
4341 * gnulib/import/strnlen1.c: Likewise.
4342 * gnulib/import/strnlen1.h: Likewise.
4343 * gnulib/import/verify.h: Likewise.
4344 * gnulib/import/wchar.in.h: Likewise.
4345 * gnulib/import/wctype.in.h: Likewise.
4347 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4349 Support shell wildcards for 'set auto-load safe-path'.
4350 * auto-load.c: Include fnmatch.h.
4351 (filename_is_in_dir): Rename to ...
4352 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4353 it. Update function comment. Rename dir_len to pattern_len. New
4354 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4355 messages. Use gdb_filename_fnmatch.
4356 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4358 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4359 * defs.h (gdb_filename_fnmatch): New declaration.
4360 * utils.c: Include fnmatch.h.
4361 (gdb_filename_fnmatch): New function.
4363 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4365 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4366 `-probe' and `-probe-stap' options.
4368 2012-07-01 Yao Qi <yao@codesourcery.com>
4370 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4371 always_inserted_off, and always_inserted_enums.
4372 Change always_inserted_mode's type to 'enum auto_boolean'.
4373 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4375 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4376 of add_setshow_enum_cmd.
4377 * infrun.c: Remove can_use_displaced_stepping_auto,
4378 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4379 can_use_displaced_stepping_enum.
4380 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4381 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4382 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4383 add_setshow_enum_cmd.
4385 2012-06-30 Doug Evans <dje@google.com>
4387 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4388 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4389 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4391 2012-06-29 Doug Evans <dje@google.com>
4393 * linespec.c: #include "stack.h".
4394 (decode_line_with_current_source): Moved here from symtab.c and
4395 renamed from decode_line_spec. All callers updated.
4396 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4397 renamed from decode_line_spec_1. All callers updated.
4398 * linespec.h (decode_line_with_current_source): Move declaration here
4399 from symtab.h and renamed from decode_line_spec.
4400 (decode_line_with_last_displayed): Move declaration here from symtab.h
4401 and renamed from decode_line_spec_1.
4402 * macrocmd.c: #include "linespec.h".
4403 * symtab.c: Remove #include "linespec.h".
4405 2012-06-28 Doug Evans <dje@google.com>
4407 * dwarf2read.c (get_cu_length): New function.
4408 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4409 (create_debug_types_hash_table): Ditto.
4410 (init_cutu_and_read_dies): Ditto.
4411 (init_cutu_and_read_dies_no_follow): Ditto.
4413 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4415 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4416 (struct abbrev_table): Define.
4417 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4419 (init_cutu_and_read_dies): Update.
4420 (abbrev_table_alloc_abbrev): New function. Replaces
4421 dwarf_alloc_abbrev. All callers updated.
4422 (abbrev_table_add_abbrev): New function.
4423 (abbrev_table_lookup_abbrev): New function. Replaces
4424 dwarf2_lookup_abbrev. All callers updated.
4425 (abbrev_table_read_table): New function. Contents moved here from
4426 dwarf2_read_abbrevs.
4427 (dwarf2_read_abbrevs): Call it.
4428 (abbrev_table_free): New function.
4429 (dwarf2_free_abbrev_table): Call it.
4431 2012-06-28 Stan Shebs <stan@codesourcery.com>
4433 * osdata.c (info_osdata_command): Filter out "Title" columns
4435 * common/linux-osdata.c (struct osdata_type): Add title field.
4436 (osdata_table): Add titles to each entry.
4437 (linux_command_xfer_osdata): Add a column for title data.
4439 2012-06-28 Stan Shebs <stan@codesourcery.com>
4441 Make logging work for MI.
4443 * interps.h (interp_set_logging_ftype): New typedef.
4444 (struct interp_procs): New field set_logging_proc.
4445 (current_interp_set_logging): Declare.
4446 * interps.c (current_interp_set_logging): New function.
4447 * cli/cli-logging.c: Include interps.h.
4448 (set_logging_redirect): Call current_interp_set_logging.
4449 (pop_output_files): Ditto.
4450 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4451 * mi/mi-console.h (mi_console_set_raw): Declare.
4452 * mi/mi-console.c (mi_console_set_raw): New function.
4453 * mi/mi-interp.c (saved_raw_stdout): New global.
4454 (mi_set_logging): New function.
4455 (_initialize_mi_interp): Add it to interp procs.
4457 2012-06-28 Doug Evans <dje@google.com>
4459 * symtab.c (lookup_symbol_aux_objfile): Use
4460 ALL_OBJFILE_PRIMARY_SYMTABS.
4462 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4464 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4466 * common/buffer.c: Include inttypes.h and stdint.h.
4467 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4469 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4470 Pedro Alves <palves@redhat.com>
4472 * gdbthread.h (ALL_THREADS): New macro.
4473 (thread_list): Declare.
4474 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4475 going, but instead fall through to the stepping handling.
4476 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4477 the passed in signal. Adjust debug output.
4478 (resume_callback): Rename to ...
4479 (linux_nat_resume_callback): ... this. Pass the thread's last
4480 stop signal, if in "pass" state.
4481 (linux_nat_resume): Adjust to rename.
4482 (stop_wait_callback): New assertion. Don't respawn signals;
4483 instead let the LWP remain with SIGNALLED set.
4484 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4485 * remote.c (append_pending_thread_resumptions): New.
4486 (remote_vcont_resume): Call it.
4487 * target.h (target_resume): Extend comment.
4489 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4491 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4493 2012-06-27 Doug Evans <dje@google.com>
4495 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4496 Delete have_addr_base, unused. All uses updated.
4497 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4498 (dwarf2_get_pc_bounds): Add ranges_base.
4499 (dwarf2_record_block_ranges): Ditto.
4501 2012-06-27 Tom Tromey <tromey@redhat.com>
4504 * varobj.c (varobj_create): Update.
4505 (varobj_set_value): Update.
4506 * tracepoint.c (validate_actionline): Update.
4507 (encode_actions_1): Update.
4508 * parse.c (parse_exp_1): Add 'pc' argument.
4509 (parse_exp_in_context): Add 'pc' argument. Change how
4510 expression_context_pc is set.
4511 (parse_expression): Update.
4512 (parse_field_expression): Update.
4513 * expression.h (parse_exp_1): Update.
4514 * eval.c (parse_to_comma_and_eval): Update.
4515 * breakpoint.c (set_breakpoint_condition): Update.
4516 (update_watchpoint): Update.
4517 (init_breakpoint_sal): Update
4518 (find_condition_and_thread): Update.
4519 (watch_command_1): Update.
4520 (update_breakpoint_locations): Update.
4521 * ada-lang.c (ada_read_renaming_var_value): Update.
4522 (create_excep_cond_exprs): Update.
4524 2012-06-27 Doug Evans <dje@google.com>
4526 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4529 2012-06-26 Doug Evans <dje@google.com>
4531 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4533 (error_check_comp_unit_head): New arg abbrev_section. All callers
4535 (read_and_check_comp_unit_head): Ditto.
4536 (read_and_check_type_unit_head): Ditto.
4538 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4540 New attribute 'last' for gdb.Symtab_and_line.
4541 * NEWS (Python Scripting): Add entry about the new attribute.
4542 * python/py-symtab.c (salpy_get_last): New function which
4543 implements the get method for the 'last' attribute of
4544 gdb.Symtab_and_line.
4545 (sal_object_getset): Add entry for the 'last' attribute.
4547 2012-06-26 Doug Evans <dje@google.com>
4549 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4550 (dwo_sections): Add macinfo, macro.
4551 (dwarf2_locate_dwo_sections): Watch for macro sections.
4552 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4553 All callers updated. Handle DWO files.
4555 * NEWS: Mention new options "set debug dwarf2-read" and
4556 "set debug symtab-create".
4557 * dwarf2read.c (dwarf2_read_debug): New static global.
4558 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4559 (process_queue): Ditto.
4560 (process_full_comp_unit): Ditto.
4561 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4562 * elfread.c (elf_symfile_read): Add debugging printf.
4563 * minsyms.c (install_minimal_symbols): Ditto.
4564 * psymtab.c (allocate_psymtab): Ditto.
4565 * symfile.c (allocate_symtab): Ditto.
4566 * symtab.c (symtab_create_debug): New global.
4567 (_initialize_symtab): Add new option "set debug symtab-create".
4568 * symtab.h (symtab_create_debug): Declare.
4570 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4571 (lookup_dwo_type_unit): Ditto.
4573 2012-06-26 Roland McGrath <roland@hack.frob.com>
4574 H.J. Lu <hongjiu.lu@intel.com>
4576 * amd64-linux-nat.c: Include <sys/user.h>.
4577 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4578 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4579 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4581 * configure.ac: Check if the fs_base and gs_base members of
4582 `struct user_regs_struct' exist.
4583 * config.in: Regenerated.
4584 * configure: Likewise.
4586 2012-06-25 Michael Eager <eager@eagercon.com>
4589 * python/python.c (gdbpy_write): Check for interrupted output.
4591 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4593 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4594 register as a stack alignment in ARM mode.
4596 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4598 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4599 * gnulib/config.in: Regenerate.
4600 * gnulib/configure: Likewise.
4601 * gnulib/import/m4/extensions.m4: Update it.
4602 * gnulib/import/m4/gnulib-common.m4: Likewise.
4603 * gnulib/import/m4/memmem.m4: Likewise.
4604 * gnulib/import/m4/mmap-anon.m4: Likewise.
4605 * gnulib/import/m4/multiarch.m4: Likewise.
4606 * gnulib/import/stdint.in.h: Likewise.
4608 2012-06-24 Yao Qi <yao@codesourcery.com>
4610 * corefile.c (write_memory_with_notification): New.
4611 * gdbcore.h: Declare write_memory_with_notification.
4612 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4613 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4614 * valops.c (value_assign): Likewise.
4615 * python/py-inferior.c (infpy_write_memory): Call
4616 'write_memory_with_notification'.
4618 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4620 * cc-with-index.sh: Use also -ex "set auto-load no".
4622 2012-06-23 Doug Evans <dje@google.com>
4625 * NEWS: Document additions to .gdb_index.
4626 * dwarf2read.c: #include "gdb/gdb-index.h".
4627 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4628 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4629 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4630 (dwarf2_read_index): Recognize version 7.
4631 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4632 block_kind, domain): All callers updated.
4633 (dw2_find_symbol_file): Handle new index CU values.
4634 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4635 (add_index_entry): New args is_static, kind. All callers updated.
4636 (offset_type_compare, uniquify_cu_indices): New functions
4637 (symbol_kind): New function.
4638 (write_psymtabs_to_index): Remove duplicate CU values.
4639 (write_psymtabs_to_index): Write .gdb_index version 7.
4641 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4643 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4644 * configure: Regenerate.
4646 2012-06-20 Yao Qi <yao@codesourcery.com>
4648 * python/py-inferior.c: Update comments of infpy_read_memory
4649 and infpy_write_memory.
4651 2012-06-19 Tom Tromey <tromey@redhat.com>
4654 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4655 (push_type_address_space): Remove.
4656 * parse.c (insert_into_type_stack): New function.
4657 (insert_type): Likewise.
4658 (insert_type_address_space): Rename from push_type_address_space.
4659 Insert tp_space_identifier.
4660 * c-exp.y (ptr_operator): New production.
4661 (abs_decl): Use ptr_operator.
4662 (space_identifier): Call insert_type_address_space.
4663 (ptype): Don't use const_or_volatile_or_space_identifier.
4664 (const_or_volatile_noopt): Call insert_type.
4665 (conversion_type_id, conversion_declarator): New productions.
4666 (operator): Use conversion_type_id.
4668 2012-06-18 Doug Evans <dje@google.com>
4670 * symtab.h (minimal_symbol): New member created_by_gdb.
4671 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4673 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4674 (search_symbols): Call it instead of lookup_symbol.
4675 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4677 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4678 Adjust address for DW_OP_GNU_addr_index.
4679 * dwarf2expr.h (dwarf_expr_context): Update comment.
4680 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4681 all callers updated. Handle TLS vars described with
4682 DW_OP_GNU_const_index.
4683 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4684 and DW_OP_GNU_const_index.
4685 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4687 * block.c (find_block_in_blockvector): Make explicit the fact that we
4688 ignore GLOBAL_BLOCK.
4690 2012-06-18 Tom Tromey <tromey@redhat.com>
4692 * c-exp.y (operator): Remove trailing space after "delete" and
4695 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4696 Jan Kratochvil <jan.kratochvil@redhat.com>
4698 Switch i386 and derived targets to ON_STACK.
4699 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4700 (amd64_dicos_init_abi): Remove its installment.
4701 * dicos-tdep.c (dicos_init_abi): Remove the
4702 set_gdbarch_call_dummy_location call. Update the comment here.
4703 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4704 (i386_dicos_init_abi): Remove its installment.
4705 * i386-tdep.c (i386_push_dummy_code): New function.
4706 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4707 i386_push_dummy_code.
4709 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4711 Remove stale dummy frames.
4712 * breakpoint.c: Include dummy-frame.h.
4713 (longjmp_breakpoint_ops): New variable.
4714 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4715 bp_longjmp_call_dummy.
4716 (bpstat_what, bptype_string, print_one_breakpoint_location)
4717 (init_bp_location): Support bp_longjmp_call_dummy.
4718 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4719 (set_longjmp_breakpoint_for_call_dummy)
4720 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4722 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4723 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4724 FIXME comment and extend the other comment for bp_call_dummy.
4725 (set_longjmp_breakpoint_for_call_dummy)
4726 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4727 * dummy-frame.c: Include gdbthread.h.
4728 (pop_dummy_frame_bpt): New function.
4729 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4730 (dummy_frame_discard): New function.
4731 (cleanup_dummy_frames): Update the comment about longjmps.
4732 * dummy-frame.h (dummy_frame_discard): New declaration.
4733 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4734 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4735 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4736 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4737 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4738 keep_going if IS_LONGJMP and there is no other reason to stop.
4740 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4742 * remote-sim.c (sim_command_completer): Initialize
4745 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4747 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4748 * dwarf2loc.c (call_site_parameter_matches): Support
4749 CALL_SITE_PARAMETER_PARAM_OFFSET.
4750 (needs_dwarf_reg_entry_value): Push stub value.
4751 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4752 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4753 * gdbtypes.h (enum call_site_parameter_kind): New item
4754 CALL_SITE_PARAMETER_PARAM_OFFSET.
4755 (struct call_site.parameter.u): New field param_offset.
4757 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4759 Code cleanup: Generalize call_site.parameter key.
4760 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4761 variable dwarf_reg. New variable kind_u. Update parameters to
4762 push_dwarf_reg_entry_value.
4763 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4764 * dwarf2expr.h (enum call_site_parameter_kind)
4765 (union call_site_parameter_u): Forward declarations.
4766 (struct dwarf_expr_context_funcs): Update parameters and their
4767 description for push_dwarf_reg_entry_value.
4768 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4769 * dwarf2loc.c (call_site_parameter_matches): New function.
4770 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4771 description. Use call_site_parameter_matches.
4772 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4773 Update parameters and their description.
4774 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4775 New variable kind_u. Adjust the caller for updated parameters.
4776 (needs_dwarf_reg_entry_value): Update parameters.
4777 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4778 instead of attr. Update for the changed fields of struct
4779 call_site_parameter.
4780 * gdbtypes.h: Include dwarf2expr.h.
4781 (enum call_site_parameter_kind): New.
4782 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4783 fb_offset into new union u.
4785 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4787 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4788 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4791 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4793 * amd64-linux-nat.c (compat_x32_clock_t): New.
4794 (compat_x32_siginfo_t): Likewise.
4795 (compat_x32_siginfo_from_siginfo): Likewise.
4796 (siginfo_from_compat_x32_siginfo): Likewise.
4797 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4798 and siginfo_from_compat_x32_siginfo for x32.
4800 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4802 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4804 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4806 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4807 instead of gdbarch_ptr_bit.
4808 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4809 (amd64_supply_native_gregset): Likewise.
4810 (amd64_collect_native_gregset): Likewise.
4811 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4812 (amd64_supply_xsave): Likewise.
4813 (amd64_collect_fxsave): Likewise.
4814 (amd64_collect_xsave): Likewise.
4816 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4818 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4819 (amd64_linux_read_description): Check DS segment register for
4822 2012-06-15 Tom Tromey <tromey@redhat.com>
4824 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4825 init_cutu_and_read_dies.
4827 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4829 * MAINTAINERS (Write After Approval): Add myself to the list.
4831 2012-06-15 Tom Tromey <tromey@redhat.com>
4833 * valops.c (value_find_oload_method_list): Now static.
4834 * value.h (value_find_oload_method_list): Don't declare.
4836 2012-06-15 Tom Tromey <tromey@redhat.com>
4838 * valops.c (find_overload_match): Use value_ind.
4840 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4842 * infrun.c (handle_inferior_event): Correct indentation.
4844 2012-06-14 Doug Evans <dje@google.com>
4846 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4847 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4849 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4850 updated. Handle DEBUG_LOC_START_LENGTH.
4851 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4852 (loclist_describe_location): Ditto.
4854 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4857 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4858 after hiding inline functions.
4860 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4862 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4863 _initialize_inf_ttrace.
4865 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4867 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4868 _initialize_hppa_hpux_nat.
4870 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4872 * remote-sim.c (sim_command_completer): Change type of return
4873 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4875 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4876 Jan Kratochvil <jan.kratochvil@redhat.com>
4879 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4880 stack on a 16-byte boundary.
4882 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4884 * jit.c (finalize_symtab): Set function's return type to 'void' by
4887 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4888 H.J. Lu <hongjiu.lu@intel.com>
4890 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4891 Move bits common to both the classic LP64 and the new x32 ILP32
4893 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4894 (amd64_x32_linux_init_abi): New function.
4895 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4898 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4899 * i386-tdep.c (i386_pseudo_register_name): Make public.
4900 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4901 * amd64-tdep.c (amd64_dword_names): Add "eip".
4902 (amd64_x32_pseudo_register_type): New function
4903 (amd64_x32_init_abi): New function.
4905 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4908 * inferior.h (struct inferior_suspend_state): Comment out.
4909 (struct inferior): Comment out the field suspend.
4910 * infrun.c (struct infcall_suspend_state): Comment out the field
4912 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4915 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4917 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4918 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4919 function comment. Return ERROR for unresolved cases. Implement
4920 returning proper NAME.
4921 (yylex): Accept also NAME from classify_inner_name.
4922 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4923 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4925 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4927 2012-06-13 Tom Tromey <tromey@redhat.com>
4929 * breakpoint.c (condition_completer): New function.
4930 (_initialize_breakpoint): Use it.
4931 * value.c (complete_internalvar): New function.
4932 * value.h (complete_internalvar): Declare.
4934 2012-06-13 Tom Tromey <tromey@redhat.com>
4936 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4937 * breakpoint.c (catch_syscall_completer): Return a VEC.
4938 * cli/cli-cmds.c (complete_command): Update.
4939 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4940 (complete_on_enum): Likewise.
4941 * command.h: Include gdb_vecs.h.
4942 (completer_ftype): Change return type.
4943 (complete_on_cmdlist, complete_on_enum): Likewise.
4944 * completer.c (noop_completer, filename_completer)
4945 (location_completer): Return a VEC.
4946 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4948 (expression_completer, complete_line_internal, complete_line)
4949 (command_completer): Return a VEC.
4950 (gdb_completion_word_break_characters, line_completion_function):
4952 * completer.h: Include gdb_vecs.h.
4953 (complete_line, noop_completer, filename_completer)
4954 (expression_completer, location_completer, command_completer):
4956 * f-lang.c (f_word_break_characters): Return a VEC.
4957 * interps.c (interpreter_completer): Return a VEC.
4958 * language.h (struct language_defn)
4959 <la_make_symbol_completion_list>: Return a VEC.
4960 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4961 * symtab.c (free_completion_list): Take a VEC.
4962 (return_val_size, return_val_index): Remove.
4963 (return_val): Now a VEC.
4964 (completion_list_add_name): Update.
4965 (default_make_symbol_completion_list_break_on)
4966 (default_make_symbol_completion_list, make_symbol_completion_list)
4967 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4969 (add_filename_to_list): Update.
4970 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4972 (maybe_add_partial_symtab_filename): Update.
4973 (make_source_files_completion_list): Return a VEC.
4974 * symtab.h (default_make_symbol_completion_list_break_on)
4975 (default_make_symbol_completion_list, make_symbol_completion_list)
4976 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4977 (make_source_files_completion_list): Update.
4979 2012-06-13 Tom Tromey <tromey@redhat.com>
4981 * breakpoint.c (add_catch_command): Use completer_ftype.
4982 * breakpoint.h: Include command.h.
4983 (add_catch_command): Use completer_ftype.
4984 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4985 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4986 Use completer_ftype.
4987 * command.h (completer_ftype): New typedef.
4988 (set_cmd_completer): Use it.
4989 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4992 2012-06-13 Pedro Alves <palves@redhat.com>
4994 Partial revert of previous change.
4996 * serial.c (scb_base): New global.
4997 (serial_for_fd): New.
4998 (serial_open, serial_fdopen_ops): Link new serial in open serials
5000 (do_serial_close): Unlink serial from the open serials chain.
5002 2012-06-12 Pedro Alves <palves@redhat.com>
5004 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5006 (prepare_for_detach): No longer context switch here in non-stop
5008 (fetch_inferior_event): Ditto.
5009 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5010 to the event thread before removing breakpoints. Switch to the
5011 event thread before inserting breakpoints and resuming.
5012 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5013 event thread before resuming.
5014 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5015 Switch to the event thread before removing breakpoints.
5017 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5019 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5020 special characters correctly for the Windows shells. See
5021 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5023 [!__MINGW32__]: Remove extra double quote character from special
5026 2012-06-11 Stan Shebs <stan@codesourcery.com>
5028 * ui-out.h: Remove #if 0 declarations.
5029 * ui-out.c: Remove #if 0 functions.
5031 2012-06-11 Pedro Alves <palves@redhat.com>
5033 * ser-base.c (run_async_handler_and_reschedule): New.
5034 (fd_event, push_event): Use it.
5035 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5036 reference count to 1.
5037 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5039 (serial_is_open, serial_ref, serial_unref): New.
5040 * serial.h (serial_open): Adjust comment.
5041 (serial_is_open): Declare.
5042 (serial_close): Adjust comment.
5043 (serial_ref, serial_unref) Declare.
5044 (struct serial): New field 'refcnt'.
5046 2012-06-11 Pedro Alves <palves@redhat.com>
5048 Remove #if 0'd "connect" command, and unnecessary associated
5049 refcounting and serial reuse bits.
5051 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5052 * serial.c (last_serial_opened): Delete.
5054 (serial_open): Adjust.
5055 (serial_for_fd): Delete.
5056 (serial_fdopen_ops, do_serial_close): Adjust.
5057 (serial_fdopen_ops): Adjust.
5059 2012-06-11 Pedro Alves <palves@redhat.com>
5061 * serial.c (do_serial_close): Remove early return when SCB is
5064 2012-06-11 Tom Tromey <tromey@redhat.com>
5066 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5068 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5070 Fix regression by the "ambiguous linespec" series.
5071 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5072 get_last_displayed_symtab and get_last_displayed_line and depending
5075 2012-06-11 Tom Tromey <tromey@redhat.com>
5077 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5078 (dw2_find_symbol_file): Use it.
5080 2012-06-11 Michael Eager <eager@eagercon.com>
5082 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5083 * mips-linux-tdep.h (mips_signals): New
5085 2012-06-11 Tom Tromey <tromey@redhat.com>
5087 * infrun.c (handle_inferior_event)
5088 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5090 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5091 exception logic in all cases. Update comments.
5092 (insert_longjmp_resume_breakpoint): Set the exception resume
5095 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5097 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5099 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5101 * valarith.c (binop_types_user_defined_p): Fix a typo.
5103 2012-06-08 Yao Qi <yao@codesourcery.com>
5104 Chung-Lin Tang <cltang@codesourcery.com>
5106 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5107 * arch-utils.h: Declare.
5108 * gdbarch.sh: Add return_in_first_hidden_param_p.
5109 * gdbarch.c, gdbarch.h: Regenerated.
5110 * infcall.c (call_function_by_hand): Call
5111 gdbarch_return_in_first_hidden_param_p instead of
5112 language_pass_by_reference.
5114 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5115 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5116 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5117 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5118 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5119 `cplus_return_struct_by_reference'.
5120 (tic6x_return_value): Handle language cplusplus.
5121 (tic6x_return_in_first_hidden_param_p): New.
5122 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5124 2012-06-07 Doug Evans <dje@google.com>
5126 * dwarf2read.c (dwarf2_cu): Add comment.
5128 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5130 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5132 (mips_eabi_push_dummy_call): Likewise.
5133 (mips_n32n64_push_dummy_call): Likewise.
5134 (mips_o32_push_dummy_call): Likewise.
5135 (mips_o64_push_dummy_call): Likewise.
5137 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5139 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5141 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5143 * mips-tdep.c (mips_pseudo_register_type): Use
5144 mips_float_register_p.
5146 2012-06-06 Pedro Alves <palves@redhat.com>
5148 * infrun.c (handle_inferior_event): Remove calls to
5149 reinit_frame_cache that follow a context_switch call.
5151 2012-06-06 Pedro Alves <palves@redhat.com>
5153 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5154 context_switch and remove stale comment.
5156 2012-06-06 Pedro Alves <palves@redhat.com>
5158 * infrun.c (struct execution_control_state): Remove
5159 `new_thread_event' field.
5160 (handle_inferior_event): Simplify new threads handling; don't
5161 resume the inferior if we find a new thread.
5163 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5165 * NEWS: Document the deprecation of SH's 'regs' command.
5166 * inferior.h (all_registers_info): Add function declaration.
5167 * sh-tdep.c (sh_show_regs): Remove variable.
5168 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5169 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5170 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5171 (sh_show_regs_command): Remove functions.
5172 (sh_gdbarch_init): Don't set sh_show_regs.
5173 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5174 'info all-registers'.
5175 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5176 (sh64_show_regs): Remove functions.
5177 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5179 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5181 * configure.ac: Move development=true below AC_INIT.
5182 * configure: Regenerate.
5184 2012-06-05 Stan Shebs <stan@codesourcery.com>
5186 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5189 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5191 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5192 argument as ssize_t.
5193 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5194 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5195 * target.c (target_read_stack, target_write_memory)
5196 (target_write_raw_memory): Likewise.
5197 * target.h (target_read_stack, target_write_memory)
5198 (target_write_raw_memory): Likewise.
5200 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5202 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5203 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5204 * target.c (target_read_memory): Change LEN to ssize_t.
5205 * target.h (target_read_memory): Change LEN to ssize_t.
5207 2012-06-05 Pedro Alves <palves@redhat.com>
5211 * breakpoint.c (until_break_command): Only fetch the selected
5212 frame after decode_line_1.
5214 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5216 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5217 event breakpoint at _start, __start or main if a program
5218 interpreter is not found.
5220 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5222 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5224 * windows-tdep.c: #include "objfiles.h".
5225 (windows_iterate_over_objfiles_in_search_order): New function.
5226 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5227 iterate_over_objfiles_in_search_order gdbarch method to
5228 windows_iterate_over_objfiles_in_search_order.
5229 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5231 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5233 * gdbarch.sh: Add generation of
5234 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5235 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5236 (iterate_over_objfiles_in_search_order): New gdbarch method.
5237 * gdbarch.h, gdbarch.c: Regenerate.
5238 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5240 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5242 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5243 out of lookup_symbol_aux_symtabs.
5244 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5245 call to lookup_symbol_aux_objfile.
5246 (struct global_sym_lookup_data): New type.
5247 (lookup_symbol_global_iterator_cb): New function.
5248 (lookup_symbol_global): Search for symbol using
5249 gdbarch_iterate_over_objfiles_in_search_order and
5250 lookup_symbol_global_iterator_cb.
5251 * findvar.c (struct minsym_lookup_data): New type.
5252 (minsym_lookup_iterator_cb): New function.
5253 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5254 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5255 and minsym_lookup_iterator_cb.
5257 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5259 Revert the following patch:
5260 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5261 try locating the symbol in the symbol's own objfile first, before
5262 extending the search to all objfiles.
5263 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5264 out of lookup_symbol_aux_symtabs.
5265 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5266 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5267 Do not search EXCLUDE_OBJFILE.
5268 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5269 (lookup_symbol_global): Search for matches in the block's objfile
5270 first, before searching all other objfiles.
5272 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5274 * breakpoint.c (find_condition_and_thread): Stop parsing
5275 as soon as the first invalid keyword is found.
5277 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5279 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5281 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5283 * config/djgpp/djcheck.sh: Add copyright header.
5285 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5287 * copyright.py (update_files, main): Fix path to update-copyright
5290 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5292 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5293 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5294 for which a reminder to update by hand is printed.
5296 2012-06-04 Doug Evans <dje@google.com>
5298 * buildsym.c (make_blockvector): Add comment.
5300 2012-06-04 Pedro Alves <palves@redhat.com>
5302 * arch-utils.c (default_gdb_signal_from_target): Delete.
5303 * arch-utils.h (default_gdb_signal_from_target): Delete.
5304 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5305 gdbarch_gdb_signal_from_target_p.
5306 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5308 * gdbarch.h: Regenerate.
5309 * gdbarch.c: Regenerate.
5311 2012-06-04 Pedro Alves <palves@redhat.com>
5313 * gdbarch.sh (gdb_signal_from_target): Mention that the
5314 implementation of the method must be host independent.
5315 * gdbarch.h: Regenerate.
5317 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5319 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5321 (target_read_memory_bfd): New function.
5322 (symbol_file_add_from_memory): Use it.
5324 2012-06-03 Doug Evans <dje@google.com>
5326 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5328 (basic_lookup_transparent_type): Ditto.
5330 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5331 (ALL_PRIMARY_SYMTABS): Use it.
5332 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5333 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5334 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5335 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5336 (basic_lookup_transparent_type): Ditto.
5338 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5340 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5341 it to optimize resolution of demangled name.
5343 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5345 * configure.ac (development): Define new variable.
5346 Call AC_CHECK_LIB for mcheck if $development.
5347 (ERROR_ON_WARNING): Enable it by default only if $development.
5348 * config.in: Regenerate.
5349 * configure: Regenerate.
5351 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5353 * target.c (target_read_memory): Make LEN argument as size_t.
5354 * target.h (target_read_memory): Likewise.
5356 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5358 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5360 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5362 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5363 BookE interface for PowerPC server processors if not available
5364 in the Linux Kernel.
5366 2012-05-31 Keith Seitz <keiths@redhat.com>
5368 * linespec.c (decode_objc): Add cleanup to free
5370 (find_linespec_symbols): Add cleanup to free CLASSES.
5371 * symfile.c (find_separate_debug_file_by_debuglink): Add
5372 cleanup to free DEBUGLINK.
5373 * ui-out.c (clear_header_list): No need to check if
5374 HEADER_NEXT.COLHDR is NULL.
5375 Free HEADER_NEXT.COL_NAME.
5377 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5379 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5382 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5384 * configure.host (gdb_host_cpu): Handle tilegx*.
5385 (gdb_host): Handle tilegx-*-linux*.
5386 * tilegx-linux-nat.c: New file.
5387 * config/tilegx/linux.mh: New file.
5389 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5391 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5392 tilegx-linux-tdep.o.
5393 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5394 tilegx-linux-tdep.c.
5395 * configure.tgt: Handle tilegx-*-linux*.
5396 * tilegx-tdep.h: New file.
5397 * tilegx-tdep.c: New file.
5398 * tilegx-linux-tdep.c: New file.
5399 * regformats/reg-tilegx.dat: New file.
5401 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5403 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5404 accounting of hw watchpoints on ppc.
5406 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5408 * source.c (openp): Expand tilde in path entries.
5410 2012-05-29 Doug Evans <dje@google.com>
5412 * buildsym.c (block_compar): Fix comment.
5413 (end_symtab): Fix and clarify some comments.
5415 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5416 cleanup_undefined_types.
5417 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5418 All callers updated.
5420 2012-05-29 Tom Tromey <tromey@redhat.com>
5422 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5424 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5425 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5427 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5430 2012-05-29 Tristan Gingold <gingold@adacore.com>
5432 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5433 (struct darwin_info): ... New struct.
5434 (solib_darwin_pspace_data): New variable.
5435 (darwin_pspace_data_cleanup): New function.
5436 (get_darwin_info): Likewise.
5437 (darwin_dyld_version_ok, darwin_load_image_infos)
5438 (darwin_solib_get_all_image_info_addr_at_init)
5439 (darwin_solib_read_all_image_info_addr): Add info argument.
5441 (darwin_current_sos): Use per pspace structure.
5442 (darwin_solib_create_inferior_hook): Likewise.
5443 (darwin_clear_solib): Likewise.
5444 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5446 2012-05-28 Pedro Alves <palves@redhat.com>
5448 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5449 block that uses them. Clear ecss before handling each event.
5451 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5453 * solib-svr4.c (svr4_current_sos): New comment on
5454 svr4_current_sos_via_xfer_libraries fall back.
5456 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5458 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5459 it as a fallback for TYPE_IS_OPAQUE.
5460 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5461 symbols for lookup_symbol.
5463 2012-05-24 John Steele Scott <toojays@toojays.net>
5465 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5466 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5467 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5468 (check_producer): ... this new function, which also checks for ICC
5469 and caches the result.
5470 (producer_is_icc): New function.
5471 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5474 2012-05-24 Pedro Alves <palves@redhat.com>
5478 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5479 (default_gdb_signal_to_target): ... this. Add comment.
5480 (default_gdb_signal_from_host): Rename to ...
5481 (default_gdb_signal_from_target): ... this. Add comment.
5482 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5483 (default_gdb_signal_to_target): ... this.
5484 (default_gdb_signal_from_host): Rename to ...
5485 (default_gdb_signal_from_target): ... this.
5486 * corelow.c (core_open): Adjust to naming change. Replace comment.
5487 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5488 (gdb_signal_from_target): ... this. Adjust to
5489 default_gdb_signal_from_host naming change. Extend comment.
5490 (gdb_signal_to_host): Rename to ...
5491 (gdb_signal_to_target): ... this. Adjust to
5492 default_gdb_signal_to_host naming change.
5493 * gdbarch.h, gdbarch.c: Renegerate.
5495 2012-05-24 Pedro Alves <palves@redhat.com>
5499 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5501 2012-05-24 Pedro Alves <palves@redhat.com>
5505 Replace target_signal with gdb_signal throughout.
5507 2012-05-24 Pedro Alves <palves@redhat.com>
5511 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5512 string, instead of reusing the va_list argument.
5514 2012-05-24 Tom Tromey <tromey@redhat.com>
5516 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5519 2012-05-23 Doug Evans <dje@google.com>
5521 * symtab.c (search_symbols): Formatting fixes.
5522 (print_symbol_info): Formatting fixes.
5524 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5525 int64_t change to leb128 API.
5526 (read_encoded_value, decode_frame_entry_1): Ditto.
5527 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5528 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5529 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5530 (execute_stack_op): Ditto.
5531 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5532 (safe_read_uleb128, safe_read_sleb128): Ditto.
5533 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5534 (dwarf2_compile_expr_to_ax): Ditto.
5535 (locexpr_describe_location_piece): Ditto.
5536 (disassemble_dwarf_expression): Ditto.
5537 (locexpr_describe_location_1): Ditto.
5539 2012-05-23 Stan Shebs <stan@codesourcery.com>
5540 Kwok Cheung Yeung <kcy@codesourcery.com>
5542 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5543 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5544 (mi-cmd-info.o): New rule.
5545 * osdata.h (info_osdata_command): New declaration.
5546 * osdata.c (info_osdata_command): Change to non-static.
5547 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5548 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5549 * mi/mi-cmd-info.c: New file.
5551 2012-05-23 Doug Evans <dje@google.com>
5553 * symtab.c (search_symbols): Pass NULL for file_matcher to
5554 expand_symtabs_matching if there are no files to match.
5556 * gdbtypes.c (lookup_typename): Simplify.
5558 2012-05-23 Pedro Alves <palves@redhat.com>
5560 * arch-utils.h (default_target_signal_to_host): Delete.
5561 * arch-utils.c (default_target_signal_to_host): Delete.
5562 * gdbarch.sh (target_signal_to_host): Remove.
5563 * gdbarch.h, gdbarch.c: Regenerate.
5565 2012-05-22 Doug Evans <dje@google.com>
5567 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5569 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5570 (execute_cfa_program): Update to match API of leb128 functions.
5571 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5573 (read_unsigned_leb128, read_signed_leb128): Delete.
5574 (read_initial_length): Change type of buf argument to
5576 (read_encoded_value): Update to match API of leb128 functions.
5577 (decode_frame_entry): Change result to "const gdb_byte *", and
5578 similarly for "start" parameter.
5579 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5580 (dwarf2_build_frame_info): Change local frame_ptr to
5582 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5583 read_uleb128, read_sleb128. All callers updated.
5584 (safe_skip_leb128): New function.
5585 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5586 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5587 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5588 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5589 read_uleb128, read_sleb128.
5590 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5591 (execute_stack_op): Update to match API of leb128 functions.
5592 * dwarf2expr.h: #include "leb128.h".
5593 (read_uleb128, read_sleb128): Delete.
5594 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5595 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5596 * dwarf2loc.c (debug_loc_kind): New enum.
5597 (decode_debug_loc_addresses): New function.
5598 (decode_debug_loc_dwo_addresses): New function.
5599 (dwarf2_find_location_expression): Rewrite.
5600 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5601 (locexpr_describe_location_piece): Ditto.
5602 (disassemble_dwarf_expression): Ditto.
5603 (locexpr_describe_location_1): Ditto.
5604 (loclist_describe_location): Rewrite.
5605 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5606 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5607 (dwarf2_section_buffer_overflow_complaint): Renamed from
5608 dwarf2_macros_too_long_complaint. All callers updated.
5609 (skip_leb128): Delete.
5610 (init_cu_die_reader): Initialize reader->buffer_end.
5611 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5612 (skip_form_bytes): New arg buffer_end. All callers updated.
5613 Replace call to skip_leb128 with gdb_skip_leb128.
5614 (skip_unknown_opcode): New arg mac_end. All callers updated.
5615 (fill_in_loclist_baton): Initialize baton->from_dwo.
5617 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5619 * mips-linux-nat.c (mips_linux_read_description): Use a more
5620 verbose error message.
5622 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5624 * NEWS: Add MIPS/Linux DSP support.
5625 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5626 (SIGCONTEXT_DSPCTL): New macro.
5627 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5628 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5629 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5630 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5631 (N64_SIGCONTEXT_HI3): Likewise.
5632 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5633 (N64_SIGCONTEXT_LO3): Likewise.
5634 (N64_SIGCONTEXT_DSPCTL): Likewise.
5635 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5636 (mips_linux_o32_sigframe_init): Handle DSP registers.
5637 (mips_linux_n32n64_sigframe_init): Likewise.
5639 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5641 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5644 2012-05-22 Pedro Alves <palves@redhat.com>
5646 * target.h (store_waitstatus): Move declaration ...
5647 * inf-child.h (store_waitstatus): ... here.
5648 * target.c: Move inclusion of gdb_wait.h, and ...
5649 (store_waitstatus): ... this ...
5650 * inf-child.c: ... here.
5651 * linux-nat.c: Include inf-child.h.
5652 * rs6000-nat.c: Include inf-child.h.
5653 * spu-linux-nat.c: Include inf-child.h.
5655 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5657 * tracepoint.c (start_tracing): Add missing i18n markup.
5658 (stop_tracing, set_trace_user): Ditto.
5659 (set_trace_notes, set_trace_stop_notes): Ditto.
5661 2012-05-21 Tom Tromey <tromey@redhat.com>
5664 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5666 * value.h (value_cast_pointers): Update.
5667 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5668 (value_cast): Update.
5669 (update_search_result): New function.
5670 (do_search_struct_field): New, from search_struct_field. Check
5671 for ambiguous results.
5672 (search_struct_field): Rewrite.
5673 * infcall.c (value_arg_coerce): Update.
5674 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5675 value_cast_pointers.
5676 * ada-lang.c (ada_convert_actual): Update.
5678 2012-05-21 Tom Tromey <tromey@redhat.com>
5680 * macroexp.c (macro_stringify): Terminate the string.
5682 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5684 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5686 * auto-load.c (auto_load_expand_dir_vars): New function.
5687 (auto_load_safe_path_vec_update): Use it, remove the
5688 substitute_path_component call thanks to it.
5689 (auto_load_objfile_script): Remove the debug_file_directory processing.
5690 Use auto_load_expand_dir_vars, remove the substitute_path_component
5692 * configure: Regenerate.
5693 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5694 path. Escape $ also for $debugdir.
5695 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5696 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5698 2012-05-20 Doug Evans <dje@google.com>
5700 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5701 before use. Check for symtab->includes == NULL before scanning it.
5703 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5705 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5707 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5709 * NEWS: Add microMIPS support and "set mips compression",
5710 "show mips compression" commands.
5711 * mips-tdep.h (mips_isa): New enum.
5712 (gdbarch_tdep): Add mips_isa.
5713 (mips_pc_is_mips16): Update prototype.
5714 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5715 * mips-tdep.c (mips_compression_mips16): New variable.
5716 (mips_compression_micromips): Likewise.
5717 (mips_compression_strings): Likewise.
5718 (mips_compression_string): Likewise.
5719 (is_mips16_isa, is_micromips_isa): New functions.
5720 (is_mips16_addr): Rename to...
5721 (is_compact_addr): ... this.
5722 (unmake_mips16_addr): Likewise to...
5723 (unmake_compact_addr): ... this.
5724 (make_mips16_addr): Likewise to...
5725 (make_compact_addr): ... this.
5726 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5728 (mips_elf_make_msymbol_special): Handle microMIPS code.
5729 (msymbol_is_special): Rename to...
5730 (msymbol_is_mips16): ... this.
5731 (mips_make_symbol_special, mips_pc_is_mips16): Update
5733 (msymbol_is_mips, msymbol_is_micromips): New functions.
5734 (mips16_to_32_reg): Rename to...
5735 (mips_reg3_to_reg): ... this.
5736 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5737 (mips_pc_isa): Likewise.
5738 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5740 (mips_fetch_instruction): Pass return status instead of printing
5741 an error message if requested. Handle microMIPS code. Bail out
5743 (micromips_op): New macro.
5744 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5745 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5746 (b6s4_op, b7s3_reg): Likewise.
5747 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5748 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5749 (mips_insn_size): New function.
5750 (mips32_next_pc): Update mips_fetch_instruction call.
5751 (micromips_relative_offset7): New function.
5752 (micromips_relative_offset10): Likewise.
5753 (micromips_relative_offset16): Likewise.
5754 (micromips_pc_insn_size): Likewise.
5755 (micromips_bc1_pc): Likewise.
5756 (micromips_next_pc): Likewise.
5757 (unpack_mips16): Update mips_fetch_instruction call.
5758 (extended_mips16_next_pc): Update according to change to
5760 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5762 (mips16_scan_prologue): Update mips_fetch_instruction call.
5763 Update according to change to mips16_to_32_reg.
5764 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5765 (mips_insn16_frame_base_sniffer): Likewise.
5766 (micromips_decode_imm9): New function.
5767 (micromips_scan_prologue): Likewise.
5768 (mips_micro_frame_cache): Likewise.
5769 (mips_micro_frame_this_id): Likewise.
5770 (mips_micro_frame_prev_register): Likewise.
5771 (mips_micro_frame_sniffer): Likewise.
5772 (mips_micro_frame_unwind): New variable.
5773 (mips_micro_frame_base_address): New function.
5774 (mips_micro_frame_base): New variable.
5775 (mips_micro_frame_base_sniffer): New function.
5776 (mips32_scan_prologue): Update mips_fetch_instruction call.
5777 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5778 rather than for MIPS16.
5779 (mips_insn32_frame_base_sniffer): Likewise.
5780 (mips_addr_bits_remove): Handle microMIPS code.
5781 (deal_with_atomic_sequence): Rename to...
5782 (mips_deal_with_atomic_sequence): ... this. Update the type
5783 of the variable used to hold an instruction. Remove the ISA bit
5784 check. Update mips_fetch_instruction call.
5785 (micromips_deal_with_atomic_sequence): New function.
5786 (deal_with_atomic_sequence): Likewise.
5787 (mips_about_to_return): Handle microMIPS code. Update
5788 mips_fetch_instruction call.
5789 (heuristic_proc_start): Check for the standard MIPS ISA rather
5790 than for MIPS16. Update mips_pc_is_mips16 and
5791 mips_fetch_instruction calls. Handle microMIPS code.
5792 (mips_push_dummy_code): Handle microMIPS code.
5793 (mips_eabi_push_dummy_call): Likewise.
5794 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5795 (mips_o64_push_dummy_call): Handle microMIPS code.
5796 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5797 (is_delayed): Remove function.
5798 (mips_single_step_through_delay): Replace the call to is_delayed
5799 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5800 Handle microMIPS code.
5801 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5803 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5805 (micromips_in_function_epilogue_p): New function.
5806 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5808 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5810 (gdb_print_insn_mips): Likewise.
5811 (mips_breakpoint_from_pc): Likewise.
5812 (mips_remote_breakpoint_from_pc): New function.
5813 (mips32_instruction_has_delay_slot): Simplify making use of the
5814 updated mips_fetch_instruction interface.
5815 (micromips_instruction_has_delay_slot): New function.
5816 (mips16_instruction_has_delay_slot): Simplify making use of the
5817 updated mips_fetch_instruction interface.
5818 (mips_adjust_breakpoint_address): Check for the standard MIPS
5819 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5820 calls. Handle microMIPS code.
5821 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5822 (mips_skip_trampoline_code): Handle microMIPS code.
5823 (global_mips_compression): New function.
5824 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5825 file flags. Register the microMIPS remote breakpoint handler
5826 and heuristic frame unwinder.
5827 (show_mips_compression): New function.
5828 (_initialize_mips_tdep): Add the "set mips compression" and
5829 "show mips compression" commands.
5831 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5836 * amd64-darwin-tdep.c:
5837 * arm-symbian-tdep.c:
5841 * bfin-linux-tdep.c:
5848 * dwarf2-frame-tailcall.c:
5877 * microblaze-tdep.c:
5878 * mips-linux-tdep.c:
5886 * python/py-finishbreakpoint.c:
5887 * python/py-inferior.c:
5888 * python/py-infthread.c:
5892 * remote-m32r-sdi.c:
5896 * rs6000-aix-tdep.c:
5922 * amd64-darwin-tdep.c:
5923 * arm-symbian-tdep.c:
5924 * arm-tdep.c: Delete unused variables.
5926 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5928 Rename $ddir to $datadir.
5929 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5930 * auto-load.c (auto_load_safe_path_vec_update)
5931 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5932 * configure: Regenerate.
5933 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5934 Likewise. Remove the 'use $ddir' help string.
5936 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5938 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5939 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5941 2012-05-18 Tom Tromey <tromey@redhat.com>
5944 * valprint.h (struct value_print_options) <symbol_print>: New
5946 * valprint.c (user_print_options): Add default for symbol_print.
5947 (show_symbol_print): New function.
5948 (generic_val_print): Respect symbol_print.
5949 (_initialize_valprint): Add "print symbol" setting.
5950 * f-valprint.c (f_val_print): Respect symbol_print.
5951 * c-valprint.c (c_val_print): Respect symbol_print.
5953 * printcmd.c (print_address_symbolic): Return int. Ignore some
5955 (print_address_demangle): Return int.
5956 * defs.h: (print_address_symbolic): Return int.
5957 * value.h (print_address_demangle): Return int.
5959 2012-05-18 Tom Tromey <tromey@redhat.com>
5961 * valprint.c (val_print_string): Don't print leading space.
5962 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5963 print space before string or vtbl.
5964 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5966 * jv-valprint.c (java_value_print): Print space before string.
5967 * go-valprint.c (print_go_string): Print space before string.
5968 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5969 space before string.
5970 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5971 space before string or vtbl.
5972 * auxv.c (fprint_target_auxv): Print space after address.
5974 2012-05-18 Tom Tromey <tromey@redhat.com>
5976 * printcmd.c (print_address_demangle): Remove special case for 0.
5978 2012-05-18 Tom Tromey <tromey@redhat.com>
5980 * printcmd.c (print_address_demangle): Add 'opts' argument.
5981 * p-valprint.c (pascal_val_print): Update.
5982 * jv-valprint.c (java_val_print): Update.
5984 * valprint.c (generic_val_print): Update.
5985 (print_function_pointer_address): Add 'options' argument. Remove
5986 'addressprint' argument. Update.
5987 * m2-valprint.c (print_unpacked_pointer): Update.
5988 * gnu-v3-abi.c (print_one_vtable): Update.
5989 (gnuv3_print_method_ptr): Update.
5990 * f-valprint.c (f_val_print): Update.
5991 * cp-valprint.c (cp_print_value_fields): Update.
5992 * valprint.h (print_function_pointer_address): Update.
5993 * c-valprint.c (c_val_print): Update.
5995 2012-05-18 Tom Tromey <tromey@redhat.com>
5997 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5998 directly corresponding to the found psymtab.
5999 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6000 (dw2_find_pc_sect_symtab): Use it.
6001 * block.h (blockvector_contains_pc): Declare.
6002 * block.c (find_block_in_blockvector): New function.
6003 (blockvector_for_pc_sect): Use it.
6004 (blockvector_contains_pc): New function.
6006 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6008 * mips-tdep.h (mips_write_pc): New prototype.
6009 * mips-tdep.c (mips_write_pc): Make external, add description.
6010 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6013 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6015 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6017 (mips_unwind_pc, mips_write_pc): Likewise.
6018 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6021 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6023 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6024 proc_warn, proc_error, proc_get_status, proc_flags,
6025 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6026 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6027 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6028 proc_stop_process, proc_wait_for_stop, proc_run_process,
6029 proc_set_traced_signals, proc_set_traced_faults,
6030 proc_set_traced_sysentry, proc_set_traced_sysexit,
6031 proc_set_held_signals, proc_get_held_signals,
6032 proc_get_traced_signals, proc_get_traced_faults,
6033 proc_get_traced_sysentry, proc_get_traced_sysexit,
6034 proc_clear_current_fault, proc_set_current_signal,
6035 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6036 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6037 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6038 proc_get_current_thread, proc_get_current_thread,
6039 proc_get_current_thread, proc_update_threads,
6040 proc_update_threads, proc_update_threads, proc_update_threads,
6041 proc_iterate_over_threads, procfs_find_new_threads,
6042 procfs_pid_to_str): Make static. Remove advance declaration.
6043 (proc_cursig): Make static. Conditionalized defintion on
6044 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6045 (proc_syscall, proc_set_kill_on_last_close,
6046 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6047 proc_get_pending_signals, proc_get_signal_actions,
6048 proc_trace_signal, proc_ignore_signal): Delete.
6050 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6052 * coffread.c (cs_section_address): Passing proper argument for
6053 `bfd_get_section_vma'.
6054 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6055 `bfd_get_section_flags'.
6056 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6057 `bfd_get_section_vma'.
6059 2012-05-16 Tom Tromey <tromey@redhat.com>
6062 * macrotab.h: (macro_define_special): Declare.
6063 (enum macro_special_kind): New.
6064 (struct macro_definition) <argc, replacement>: Update comments.
6065 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6066 (macro_define_object_internal): New function.
6067 (macro_define_object): Use it.
6068 (macro_define_special): New function.
6069 (fixup_definition): New function.
6070 (macro_lookup_definition, foreach_macro_in_scope)
6071 (foreach_macro): Use fixup_definition.
6072 * macroexp.h (macro_stringify): Declare.
6073 * macroexp.c (free_buffer_return_text): New function.
6074 (stringify): Constify "arg".
6075 (macro_stringify): New function.
6076 * dwarf2read.c (macro_start_file): Call macro_define_special.
6078 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6079 Maciej W. Rozycki <macro@mips.com>
6081 * breakpoint.h (bp_location): Add related_address member.
6082 * inferior.h (get_return_value): Take a pointer to struct value
6083 instead of struct type for the function requested.
6084 * value.h (using_struct_return): Likewise.
6085 * gdbarch.sh (return_value): Take a pointer to struct value
6086 instead of struct type for the function requested.
6087 * breakpoint.c (set_breakpoint_location_function): Initialize
6088 related_address for bp_gnu_ifunc_resolver breakpoints.
6089 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6090 requested function's address to gdbarch_return_value.
6091 * eval.c (evaluate_subexp_standard): Pass the requested
6092 function's address to using_struct_return.
6093 * infcall.c (call_function_by_hand): Pass the requested
6094 function's address to using_struct_return and
6095 gdbarch_return_value.
6096 * infcmd.c (get_return_value): Take a pointer to struct value
6097 instead of struct type for the function requested.
6098 (print_return_value): Update accordingly.
6099 (finish_command_continuation): Likewise.
6100 * stack.c (return_command): Pass the requested function's
6101 address to using_struct_return and gdbarch_return_value.
6102 * value.c (using_struct_return): Take a pointer to struct value
6103 instead of struct type for the function requested. Pass the
6104 requested function's address to gdbarch_return_value.
6105 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6106 New function_value member, replacing function_type.
6107 (bpfinishpy_dealloc): Update accordingly.
6108 (bpfinishpy_pre_stop_hook): Likewise.
6109 (bpfinishpy_init): Likewise. Record the requested function's
6111 * mips-tdep.c (mips_fval_reg): New enum.
6112 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6113 words put in GP registers.
6114 (mips_o64_push_dummy_call): Update a comment.
6115 (mips_o32_return_value): Take a pointer to struct value instead
6116 of struct type for the function requested and use it to check if
6117 using the MIPS16 calling convention. Return the designated
6118 general purpose registers for floating-point values returned in
6120 (mips_o64_return_value): Likewise.
6121 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6122 (ppc_sysv_abi_broken_return_value): Likewise.
6123 (ppc64_sysv_abi_return_value): Likewise.
6124 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6125 value instead of struct type for the function requested.
6126 * amd64-tdep.c (amd64_return_value): Likewise.
6127 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6128 * arm-tdep.c (arm_return_value): Likewise.
6129 * avr-tdep.c (avr_return_value): Likewise.
6130 * bfin-tdep.c (bfin_return_value): Likewise.
6131 * cris-tdep.c (cris_return_value): Likewise.
6132 * frv-tdep.c (frv_return_value): Likewise.
6133 * h8300-tdep.c (h8300_return_value): Likewise.
6134 (h8300h_return_value): Likewise.
6135 * hppa-tdep.c (hppa32_return_value): Likewise.
6136 (hppa64_return_value): Likewise.
6137 * i386-tdep.c (i386_return_value): Likewise.
6138 * ia64-tdep.c (ia64_return_value): Likewise.
6139 * iq2000-tdep.c (iq2000_return_value): Likewise.
6140 * lm32-tdep.c (lm32_return_value): Likewise.
6141 * m32c-tdep.c (m32c_return_value): Likewise.
6142 * m32r-tdep.c (m32r_return_value): Likewise.
6143 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6144 * m68k-tdep.c (m68k_return_value): Likewise.
6145 (m68k_svr4_return_value): Likewise.
6146 * m88k-tdep.c (m88k_return_value): Likewise.
6147 * mep-tdep.c (mep_return_value): Likewise.
6148 * microblaze-tdep.c (microblaze_return_value): Likewise.
6149 * mn10300-tdep.c (mn10300_return_value): Likewise.
6150 * moxie-tdep.c (moxie_return_value): Likewise.
6151 * mt-tdep.c (mt_return_value): Likewise.
6152 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6153 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6154 (ppc_sysv_abi_broken_return_value): Likewise.
6155 (ppc64_sysv_abi_return_value): Likewise.
6156 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6157 * rl78-tdep.c (rl78_return_value): Likewise.
6158 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6159 * rx-tdep.c (rx_return_value): Likewise.
6160 * s390-tdep.c (s390_return_value): Likewise.
6161 * score-tdep.c (score_return_value): Likewise.
6162 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6163 (sh_return_value_fpu): Likewise.
6164 * sh64-tdep.c (sh64_return_value): Likewise.
6165 * sparc-tdep.c (sparc32_return_value): Likewise.
6166 * sparc64-tdep.c (sparc64_return_value): Likewise.
6167 * spu-tdep.c (spu_return_value): Likewise.
6168 * tic6x-tdep.c (tic6x_return_value): Likewise.
6169 * v850-tdep.c (v850_return_value): Likewise.
6170 * vax-tdep.c (vax_return_value): Likewise.
6171 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6172 * xtensa-tdep.c (xtensa_return_value): Likewise.
6173 * gdbarch.c: Regenerate.
6174 * gdbarch.h: Regenerate.
6176 2012-05-15 Tom Tromey <tromey@redhat.com>
6178 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6180 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6182 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6183 of command in two error message.
6185 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6187 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6189 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6191 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6193 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6195 * NEWS (show auto-load scripts-directory): Add forgotten command.
6197 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6199 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6202 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6204 * amd64-tdep.c: Include features/i386/x32.c and
6205 features/i386/x32-avx.c.
6206 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6207 initialize_tdesc_x32_avx.
6209 2012-05-14 Stan Shebs <stan@codesourcery.com>
6212 * breakpoint.h (enum bptype): New type bp_dprintf.
6213 (struct breakpoint): New field extra_string.
6214 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6215 (create_breakpoint): Add extra_string arg.
6216 * breakpoint.c (dprintf_breakpoint_ops): New.
6217 (is_breakpoint): Add bp_dprintf.
6218 (bpstat_what): Add dprintf case.
6219 (bptype_string): Ditto.
6220 (print_one_breakpoint_location): Ditto.
6221 (init_bp_location): Ditto.
6222 (bkpt_print_mention): Ditto.
6223 (dprintf_style_enums): New array.
6224 (dprintf_style): New global.
6225 (dprintf_function): New global.
6226 (dprintf_channel): New global.
6227 (update_dprintf_command_list): New function.
6228 (update_dprintf_commands): New function.
6229 (init_breakpoint_sal): Add extra_string argument, handle it.
6230 (create_breakpoint_sal): Add extra_string argument.
6231 (create_breakpoints_sal): Add extra_string argument, update callers.
6232 (find_condition_and_thread): Add extra argument.
6233 (create_breakpoint): Add extra_string argument, record it.
6234 (dprintf_command): New function.
6235 (break_command_1): Add arg to create_breakpoint call.
6236 (handle_gnu_v3_exceptions): Ditto.
6237 (trace_command): Ditto.
6238 (ftrace_command): Ditto.
6239 (strace_command): Ditto.
6240 (bkpt_print_mention): Add dprintf case.
6241 (create_breakpoint_sal_default): Add extra_string argument.
6242 (_initialize_breakpoint): Add new commands.
6243 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6244 * python/py-breakpoint.c (bppy_init): Ditto.
6245 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6247 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6249 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6251 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6253 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6256 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6258 Add a new function gdb.find_pc_line to the Python API.
6259 * NEWS (Python Scripting): Add entry about the new function.
6260 * python/python.c (gdbpy_find_pc_line): New function which
6261 implements gdb.find_pc_line.
6262 (GdbMethods): Add entry for the new function.
6264 2012-05-12 Pedro Alves <palves@redhat.com>
6266 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6267 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6269 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6271 * inferior.c: Include completer.h
6272 (initialize_inferiors): Set completer of add-inferior to
6275 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6277 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6278 gdbarch_ptr_bit for x32 core dump.
6280 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6282 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6283 and features/i386/x32-avx-linux.c.
6285 2012-05-11 Stan Shebs <stan@codesourcery.com>
6286 Kwok Cheung Yeung <kcy@codesourcery.com>
6288 * NEWS: Describe new info os commands.
6289 * common/linux-osdata.c (PID_T, TIME_T): Define.
6290 (MAX_PID_T_STRLEN): New.
6291 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6293 (command_from_pid): Add comment. Change to use PID_T.
6294 (commandline_from_pid): Change to use PID_T.
6295 (user_from_pid): Add comment.
6296 (get_process_owner): Add comment. Change to use PID_T and
6298 (get_number_of_cpu_cores): Add comment.
6299 (get_cores_used_by_process): Add comment. Change to use PID_T and
6301 (linux_xfer_osdata_processes): Change to use PID_T and
6303 (compare_processes): New function.
6304 (linux_xfer_osdata_processgroups): New function.
6305 (linux_xfer_osdata_threads): Change to use PID_T.
6306 (linux_xfer_osdata_fds): New function.
6307 (format_socket_state, print_sockets): New functions.
6308 (union socket_addr): New union.
6309 (linux_xfer_osdata_isockets): New function.
6310 (time_from_time_t, group_from_gid): New functions.
6311 (linux_xfer_osdata_shm): New function.
6312 (linux_xfer_osdata_sem): New function.
6313 (linux_xfer_osdata_msg): New function.
6314 (linux_xfer_osdata_modules): New function.
6315 (osdata_table): Add new entries.
6316 * common/buffer.c (buffer_xml_printf): Add support for long and
6317 long long format specifiers.
6319 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6321 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6322 (tdesc_x32_avx_linux): Likewise.
6324 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6326 Implement multi-component --with-auto-load-dir.
6327 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6329 (--with-auto-load-safe-path): Update the default value description.
6330 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6332 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6333 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6334 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6335 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6336 "set auto-load scripts-directory".
6337 * config.in: Regenerate.
6338 * configure: Regenerate.
6339 * configure.ac (--with-auto-load-dir): New configure option.
6340 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6342 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6344 Provide $ddir substitution for --with-auto-load-safe-path.
6345 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6347 * auto-load.c: Include observer.h.
6348 (auto_load_safe_path_vec_update): Call substitute_path_component for
6349 each component. New variable ddir_subst.
6350 (auto_load_gdb_datadir_changed): New function.
6351 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6352 AUTO_LOAD_SAFE_PATH. New comment.
6353 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6354 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6355 * config.in: Regenerate.
6356 * configure: Regenerate.
6357 * configure.ac (--auto-load-safe-path): Rename
6358 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6359 GDB_DATADIR/auto-load.
6360 * defs.h (substitute_path_component): New declaration.
6361 * top.c: Include observer.h.
6362 (set_gdb_datadir): New function.
6363 (init_main): Install it for "set data-directory".
6364 * utils.c (substitute_path_component): New function.
6366 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6368 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6369 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6370 DEBUG_FILE_DIRECTORY. Handle multiple components of
6371 DEBUG_FILE_DIRECTORY.
6373 2012-05-10 Tom Tromey <tromey@redhat.com>
6375 * dwarf2read.c (recursively_write_psymbols): New function.
6376 (write_psymtabs_to_index): Use it.
6378 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6380 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6381 (load_partial_comp_unit): Update.
6382 (queue_comp_unit): Add argument 'pretend_language'.
6383 (process_queue): Update.
6384 (psymtab_to_symtab_1): Skip dependencies that have a user.
6385 (load_partial_comp_unit_reader): Give meaning to the 'data'
6387 (load_full_comp_unit): Add 'pretend_language' argument.
6388 (process_full_comp_unit): Add 'pretend_language' argument. Set
6390 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6392 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6393 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6395 (prepare_one_comp_unit): Add 'pretend_language' argument.
6397 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6398 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6399 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6400 (dw2_do_instantiate_symtab): Check whether symtab was read in
6402 (dw2_instantiate_symtab): Add assertion. Call
6403 process_cu_includes.
6404 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6405 (partial_symtab_p): New typedef.
6406 (set_partial_user): New function.
6407 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6408 (scan_partial_symbols): Add imported CU to imported_symtabs.
6409 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6410 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6411 (get_symtab, recursively_compute_inclusions)
6412 (compute_symtab_includes, process_cu_includes)
6413 (process_imported_unit_die): New functions.
6414 (process_die) <DW_TAG_imported_unit>: New case.
6415 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6417 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6419 (struct partial_die_info) <locdesc>: Remove.
6421 (process_psymtab_comp_unit): Add 'read_partial' argument.
6423 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6424 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6425 (add_partial_symbol): Update.
6426 (process_die): Handle DW_TAG_partial_unit.
6427 (read_file_scope): Update comment.
6428 (load_partial_dies): Handle DW_TAG_imported_unit.
6429 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6430 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6432 2012-05-10 Tom Tromey <tromey@redhat.com>
6434 * cc-with-dwz.sh: New file.
6436 2012-05-10 Tom Tromey <tromey@redhat.com>
6438 * symtab.h (struct symtab) <includes, user>: New fields.
6439 * block.h (struct block_iterator) <d, idx, which>: New fields.
6440 * block.c (initialize_block_iterator, find_iterator_symtab)
6441 (block_iterator_step, block_iter_name_step)
6442 (block_iter_match_step): New functions.
6443 (block_iterator_first, block_iterator_next)
6444 (block_iter_name_first, block_iter_name_next)
6445 (block_iter_match_first, block_iter_match_next): Rewrite.
6446 (get_block_symtab): New function.
6448 2012-05-10 Tom Tromey <tromey@redhat.com>
6450 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6452 * jit.c (finalize_symtab): Use allocate_global_block,
6454 * buildsym.c (finish_block_internal): New function, from old
6456 (finish_block): Rewrite.
6457 (end_symtab): Use finish_block_internal, set_block_symtab.
6458 * block.h (struct global_block): New.
6459 (allocate_global_block, set_block_symtab): Declare.
6460 * block.c (allocate_global_block, set_block_symtab): New
6463 2012-05-10 Tom Tromey <tromey@redhat.com>
6465 * psymtab.c (partial_map_expand_apply): Add assertion.
6466 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6467 (psymtab_to_symtab): Find unshared psymtab.
6468 (dump_psymtab): Print including psymtabs.
6469 (recursively_search_psymtabs): New function.
6470 (expand_symtabs_matching_via_partial): Use it.
6471 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6473 (enum psymtab_search_status): New.
6475 2012-05-10 Tom Tromey <tromey@redhat.com>
6477 * tracepoint.c (scope_info): Update.
6478 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6479 (find_pc_sect_symtab, search_symbols)
6480 (default_make_symbol_completion_list_break_on)
6481 (make_file_symbol_completion_list): Update.
6482 * symmisc.c (dump_symtab_1): Update.
6483 * stack.c (print_frame_args, iterate_over_block_locals)
6484 (print_frame_labels, iterate_over_block_arg_vars): Update.
6485 * python/py-block.c (block_object) <dict>: Remove.
6487 <iter>: Change type.
6488 (blpy_iter): Update.
6489 (blpy_block_syms_iternext): Update.
6490 * psymtab.c (map_block): Use block iterators.
6491 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6492 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6493 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6494 * infrun.c (check_exception_resume): Update.
6495 * cp-support.c (make_symbol_overload_list_block): Update.
6496 * coffread.c (patch_opaque_types): Update.
6497 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6498 * block.h (struct block_iterator): New.
6499 (block_iterator_first, block_iterator_next, block_iter_name_first)
6500 (block_iter_name_next, block_iter_match_first)
6501 (block_iter_match_next): Declare.
6502 (ALL_BLOCK_SYMBOLS): Redefine.
6503 * block.c (block_iterator_first, block_iterator_next)
6504 (block_iter_name_first, block_iter_name_next)
6505 (block_iter_match_first, block_iter_match_next): New functions.
6506 * ada-lang.c (ada_add_block_symbols)
6507 (ada_make_symbol_completion_list): Use block iterator.
6509 2012-05-10 Tom Tromey <tromey@redhat.com>
6511 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6512 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6513 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6514 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6515 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6518 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6520 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6521 print-file-var-lib2.c, print-file-var-main.c and
6522 print-file-var.exp (located in gdb/testsuite/gdb.base).
6524 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6526 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6527 try locating the symbol in the symbol's own objfile first, before
6528 extending the search to all objfiles.
6529 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6530 out of lookup_symbol_aux_symtabs.
6531 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6532 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6533 Do not search EXCLUDE_OBJFILE.
6534 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6535 (lookup_symbol_global): Search for matches in the block's objfile
6536 first, before searching all other objfiles.
6538 2012-05-10 Tristan Gingold <gingold@adacore.com>
6540 * printcmd.c (set_command): Add pre/post inc/dec.
6542 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6544 * gdb.1: Document -ex option.
6546 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6548 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6549 * inferior.h (AT_SYMBOL): Delete.
6551 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6553 * mips-tdep.c (mips_push_dummy_code): New function.
6554 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6555 ON_STACK and install mips_push_dummy_code as our gdbarch
6556 push_dummy_code routine.
6558 2012-05-09 Pedro Alves <palves@redhat.com>
6560 * target.c (set_maintenance_target_async_permitted): Rename to ...
6561 (set_target_async_command): ... this.
6562 (show_maintenance_target_async_permitted): Rename to ...
6563 (show_target_async_command): ... this.
6564 (initialize_targets): Adjust.
6566 2012-05-08 Doug Evans <dje@google.com>
6568 * go-exp.y (classify_name): Add missing assignment of fields of
6571 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6573 Display the ">" prompt in interactive mode while reading canned
6574 commands, even when the current interpreter is MI.
6576 * interps.c (interp_set_temp): New function.
6578 * interps.h (interp_set_temp): Add prototype.
6580 * cli/cli-script.c (restore_interp): New cleanup function.
6581 (read_command_lines): Temporarily override the current interpreter
6582 with CLI and arrange for restoring the original one.
6584 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6586 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6588 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6590 * probe.c (parse_probes): Move conditional to check for
6591 debuginfo files from here...
6592 * stap-probe.c (stap_get_probes): ... to here.
6594 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6595 H.J. Lu <hongjiu.lu@intel.com>
6597 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6598 `movl %esp, %ebp' for the X32 ABI.
6600 2012-05-07 Tom Tromey <tromey@redhat.com>
6602 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6604 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6605 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6606 (dwarf_stack_op_name): Remove.
6607 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6608 (decode_locdesc): Use get_DW_OP_name.
6609 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6610 (dwarf2_compile_expr_to_ax): Likewise.
6611 (disassemble_dwarf_expression): Likewise.
6612 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6614 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6616 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6617 (sh_linux_sigtramp_cache): New function.
6618 (sh_linux_sigreturn_init): New function.
6619 (sh_linux_rt_sigreturn_init): New function.
6620 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6622 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6624 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6625 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6626 (sh_linux_init_abi): Add init calls to register new tramp_frame
6627 definitions under 32-bit SH, update comments.
6629 2012-05-07 Pedro Alves <palves@redhat.com>
6633 * amd64-linux-tdep.c: Include glibc-tdep.h.
6634 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6635 gdbarch_skip_solib_resolver callback.
6637 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6639 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6640 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6641 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6642 (add_auto_load_safe_path): Change the error message.
6643 (_initialize_auto_load): Change the "safe-path" help text.
6644 * configure: Regenerate
6645 * configure.ac (--without-auto-load-safe-path): Set
6646 WITH_AUTO_LOAD_SAFE_PATH to /.
6648 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6650 * stap-probe.h: Do not include unecessary `probe.h'.
6652 2012-05-05 Alan Modra <amodra@gmail.com>
6654 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6655 bfd_und_section_ptr.
6656 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6657 and bfd_com_section_ptr.
6659 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6661 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6663 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6665 * windows-nat.h (segment_register_p_ftype): New typedef.
6666 (windows_set_segment_register_p): Add declaration.
6667 * windows-nat.c (segment_register_p): New static global.
6668 (windows_set_segment_register_p): New function.
6669 (do_windows_fetch_inferior_registers): Add special handling
6670 for segment registers.
6671 * amd64-windows-nat.c: #include "amd64-tdep.h".
6672 (amd64_windows_segment_register_p): New function.
6673 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6674 * i386-windows-nat.c: #include "i386-tdep.h".
6675 (i386_windows_segment_register_p): New function.
6676 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6678 2012-05-04 Tristan Gingold <gingold@adacore.com>
6680 * printcmd.c (set_command): Emit a warning if the expression is not
6683 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6685 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6688 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6690 * stap-probe.c (stap_is_operator): Change declaration.
6691 (stap_get_opcode): Change return value.
6692 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6693 `stap_parse_argument_1'.
6695 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6697 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6700 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6702 Add two new methods global_block and static_block to gdb.Symtab
6704 * NEWS (Python scripting): Add entry about the new methods.
6705 * python/py-symtab.c (stpy_global_block): New function which
6706 implements the gdb.Symtab.global_block() method.
6707 (stpy_static_block): New function which implements the
6708 gdb.Symtab.static_block() method.
6709 (symtab_object_methods): Add entries for the two new methods.
6711 2012-05-03 Doug Evans <dje@google.com>
6713 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6716 2012-05-03 Yao Qi <yao@codesourcery.com>
6718 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6720 (i386_process_record): Ditto.
6722 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6724 * infcall.c (unwind_on_signal_p): Make static.
6726 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6728 * sol-thread.c (solaris_pid_to_str): Make static.
6729 (_initialize_sol_thread): Add prototype.
6731 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6733 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6735 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6737 * MAINTAINERS: Remove myself.
6739 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6741 Fix --without-auto-load-safe-path for MS-Windows host platform.
6742 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6744 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6746 * gdb_curses.h: Undefine KEY_EVENT before including curses
6747 headers. Move "#undef MOUSE_MOVED" before any curses header
6750 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6752 * features/i386/i386-mmx-linux.c: Regenerate.
6753 * features/rs6000/powerpc-32.c: Likewise.
6754 * features/rs6000/powerpc-32l.c: Likewise.
6755 * features/rs6000/powerpc-403.c: Likewise.
6756 * features/rs6000/powerpc-403gc.c: Likewise.
6757 * features/rs6000/powerpc-405.c: Likewise.
6758 * features/rs6000/powerpc-505.c: Likewise.
6759 * features/rs6000/powerpc-601.c: Likewise.
6760 * features/rs6000/powerpc-602.c: Likewise.
6761 * features/rs6000/powerpc-603.c: Likewise.
6762 * features/rs6000/powerpc-604.c: Likewise.
6763 * features/rs6000/powerpc-64.c: Likewise.
6764 * features/rs6000/powerpc-64l.c: Likewise.
6765 * features/rs6000/powerpc-750.c: Likewise.
6766 * features/rs6000/powerpc-860.c: Likewise.
6767 * features/rs6000/powerpc-e500.c: Likewise.
6768 * features/rs6000/powerpc-e500l.c: Likewise.
6769 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6770 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6771 * features/rs6000/rs6000.c: Likewise.
6773 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6775 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6777 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6778 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6779 (stap_parse_argument) <e>: Likewise.
6780 (handle_stap_probe) <byte_order>: Likewise.
6782 2012-04-30 Doug Evans <dje@google.com>
6784 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6785 init_and_read_dies_worker. All callers updated.
6786 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6787 replaced with init_cutu_and_read_dies.
6788 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6789 (find_partial_die): Remove FIXME. Don't free current CU.
6791 2012-04-30 Sterling Augustine <saugustine@google.com>
6793 * contrib: New directory.
6794 * contrib/test_pubnames_and_indexes.py: New file.
6796 2012-04-30 Doug Evans <dje@google.com>
6798 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6799 All callers updated.
6800 (init_cu_die_reader): Verify the section is non-empty.
6801 (dwarf_decode_line_header): Don't dereference section->asection
6802 until we know the section is present.
6804 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6806 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6809 2012-04-29 Yao Qi <yao@codesourcery.com>
6811 * gdb-code-style.el: New hook gdb-markup-hook
6812 and gdb-comment-hook.
6814 2012-04-28 Doug Evans <dje@google.com>
6816 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6817 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6819 * symfile.h (dwarf2_debug_sections): New member addr.
6820 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6821 (ctx_no_get_addr_index): New function.
6822 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6823 (ctx_no_get_addr_index): Declare.
6824 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6825 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6826 (dwarf_expr_ctx_funcs): Update.
6827 (needs_get_addr_index): New function.
6828 (needs_frame_ctx_funcs): Update.
6829 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6830 * dwarf2read.c: #include "gdbcore.h".
6831 (dwarf2_per_objfile): New members addr, dwo_files.
6832 (dwarf2_elf_names): Add entry for addr.
6833 (struct dwo_section_names): New type.
6834 (dwo_section_names): New static global.
6835 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6836 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6837 old debug_types_section member updated to use this.
6838 Rename member debug_types_section to info_or_types_section,
6840 (signatured_type): Rename member type_offset to type_offset_in_tu,
6841 all uses updated. New member type_offset_in_section.
6842 (struct dwo_sections): New type.
6843 (struct dwo_unit): New type.
6844 (struct dwo_file): New type.
6845 (die_reader_specs): New member dwo_file.
6846 (dwarf2_locate_sections): Watch for .debug_addr.
6847 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6848 (dwarf2_read_section): Get bfd of section from bfd's asection,
6850 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6851 (create_signatured_type_table_from_index): Initialize
6852 sig_type->info_or_types_section.
6853 (dw2_get_file_names): Statement lists for type units with DWO files
6854 live in the DWO file.
6855 (create_debug_types_hash_table): New function.
6856 (create_all_type_units): Rewrite.
6857 (init_cu_die_reader): New arg dwo_file, all callers updated.
6858 (init_and_read_dies_worker): Get section from
6859 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6860 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6861 continue reading the CU/TU from there.
6862 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6863 updated. Get section from this_cu->info_or_types_section.
6864 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6865 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6866 DW_FORM_GNU_str_index.
6867 (hash_dwo_file, eq_dwo_file): New functions.
6868 (allocate_dwo_file_hash_table): New function.
6869 (hash_dwo_unit, eq_dwo_unit): New functions.
6870 (allocate_dwo_unit_table): New function.
6871 (dwarf2_locate_dwo_sections): New function.
6872 (struct create_dwo_info_table_data): New type.
6873 (create_debug_info_hash_table_reader): New function.
6874 (create_debug_info_hash_table): New function.
6875 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6876 (lookup_dwo_file): New function.
6877 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6878 (free_dwo_file, free_dwo_file_cleanup): New functions.
6879 (free_dwo_file_from_slot, free_dwo_files): New functions.
6880 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6881 (dwarf2_record_block_ranges): Ditto.
6882 (read_partial_die): Ditto.
6883 (process_enumeration_scope): Update to use type_offset_in_section.
6884 (read_full_die_1): New function.
6885 (read_full_die): Rewrite.
6886 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6887 DW_FORM_GNU_str_index.
6888 (read_addr_index_1, read_addr_index): New functions.
6889 (read_addr_index_from_leb128): New function.
6890 (struct dwarf2_read_addr_index_data): New type.
6891 (dwarf2_read_addr_index_reader): New function.
6892 (dwarf2_read_addr_index): New function.
6893 (read_str_index): New function.
6894 (leb128_size): New function.
6895 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6896 If processing a type unit from a DWO file, get the line section
6898 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6899 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6900 DW_FORM_GNU_str_index.
6901 (lookup_die_type): Check whether section offset of type's die is
6902 known before looking it up. Remove assert. Condition can
6903 legimately happen for inter-cu type references.
6904 (dwarf_attr_name): Handle Fission attributes.
6905 (dwarf_form_name): Handle Fission forms.
6906 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6907 DW_FORM_GNU_str_index.
6908 (follow_die_sig): Update to use type_offset_in_section.
6909 (decode_locdesc): New case DW_OP_GNU_addr_index.
6910 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6911 DW_FORM_GNU_str_index.
6912 (cu_debug_loc_section): New function.
6913 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6914 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6915 Free DWO files if present.
6916 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6918 Refactor DIE reading.
6919 * dwarf2read.c (dwarf2_per_objfile): Replace members
6920 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6921 (die_reader_specs): New member "die_section". Temporarily make
6922 member "buffer" non-const, pending constifying all info_ptr uses.
6923 (die_reader_func_ftype): New typedef.
6924 (dw2_get_file_names_reader): New function.
6925 (dw2_get_file_names): Rewrite.
6926 (read_and_check_type_unit_head): Rename arg type_offset to
6928 (create_all_type_units): Improve debugging message.
6929 Improve dummy type unit check.
6930 (init_cu_die_reader): New arg "section". All callers updated.
6931 (init_and_read_dies_worker): New function.
6932 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6933 (init_cutu_and_read_dies_no_follow): New function.
6934 (init_cutu_and_read_dies_simple): New function.
6935 (process_psymtab_comp_unit_reader): New function.
6936 (process_psymtab_comp_unit): Delete args section,
6937 is_debug_types_section. Rewrite. All callers updated.
6938 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6939 All callers updated. Rewrite.
6940 (load_partial_comp_unit_reader): New function.
6941 (load_partial_comp_unit): Rewrite.
6942 (skip_children): New arg reader. Delete args buffer, cu.
6943 All callers updated.
6944 (skip_one_die): New arg reader. Delete args buffer, cu.
6945 All callers updated.
6946 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6947 All callers updated.
6948 (load_full_comp_unit_reader): New function.
6949 (load_full_comp_unit): Rewrite.
6950 (read_comp_unit): Delete.
6951 (read_die_and_children_1): Delete, contents moved ...
6952 (read_die_and_children): ... here.
6953 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6954 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6955 All callers updated.
6956 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6957 All callers updated.
6958 (find_partial_die): Rewrite load_all_dies support.
6959 (read_attribute_value): New arg reader. Delete args abfd, cu.
6960 All callers updated.
6961 (read_attribute): New arg reader. Delete args abfd, cu.
6962 All callers updated.
6963 (load_full_type_unit): Add assert.
6964 (read_signatured_type_reader): New function.
6965 (read_signatured_type): Rewrite.
6966 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6967 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6968 All callers updated. Set per_cu->cu = NULL after freeing it.
6969 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6970 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6971 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6972 (set_die_type): Update.
6973 (get_die_type_at_offset): Update.
6974 (read_file_scope): Call prepare_one_comp_unit.
6975 (read_type_unit_scope): Ditto.
6976 (prepare_one_comp_unit): Set producer if present.
6978 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6980 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6981 gettext function on `error'.
6983 2012-04-27 Doug Evans <dje@google.com>
6985 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6988 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6989 Tom Tromey <tromey@redhat.com>
6991 * breakpoint.c (struct breakpoint_objfile_data)
6992 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6993 <exception_probes>: New fields.
6994 (free_breakpoint_probes): New function.
6995 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6996 `_Unwind_DebugHook'.
6997 (create_exception_master_breakpoint): Likewise.
6998 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6999 * infrun.c: Including necessary header files for handling SystemTap
7001 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7002 via SystemTap probes.
7003 (check_exception_resume): Remove `func' argument. Handle exception
7004 unwinding breakpoint set via a SystemTap probe.
7005 (insert_exception_resume_from_probe): New function.
7007 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7008 Tom Tromey <tromey@redhat.com>
7009 Jan Kratochvil <jan.kratochvil@redhat.com>
7011 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7012 (COMMON_OBS): Likewise.
7013 (HFILES_NO_SRCDIR): Add `probe'.
7014 * NEWS: Mention support for static and SystemTap probes.
7015 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7016 SystemTap probes' arguments parser.
7017 * arm-linux-tdep.c: Including headers needed to perform the parsing
7018 of SystemTap probes' arguments.
7019 (arm_stap_is_single_operand): New function.
7020 (arm_stap_parse_special_token): Likewise.
7021 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7022 probes' arguments parser.
7023 * ax-gdb.c (require_rvalue): Removing static declaration.
7024 (gen_expr): Likewise.
7025 * ax-gdb.h (gen_expr): Declaring function.
7026 (require_rvalue): Likewise.
7027 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7028 (bkpt_probe_breakpoint_ops): New variable.
7029 (momentary_breakpoint_from_master): Set the `probe' value.
7030 (add_location_to_breakpoint): Likewise.
7031 (break_command_1): Using proper breakpoint_ops according to the
7032 argument passed by the user in the command line.
7033 (bkpt_probe_insert_location): New function.
7034 (bkpt_probe_remove_location): Likewise.
7035 (bkpt_probe_create_sals_from_address): Likewise.
7036 (bkpt_probe_decode_linespec): Likewise.
7037 (tracepoint_probe_create_sals_from_address): Likewise.
7038 (tracepoint_probe_decode_linespec): Likewise.
7039 (tracepoint_probe_breakpoint_ops): New variable.
7040 (trace_command): Using proper breakpoint_ops according to the
7041 argument passed by the user in the command line.
7042 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7043 static probes on breakpoints and tracepoints.
7044 * breakpoint.h (struct bp_location) <probe>: New field.
7045 * cli-utils.c (skip_spaces_const): New function.
7046 (extract_arg): Likewise.
7047 * cli-utils.h (skip_spaces_const): Likewise.
7048 (extract_arg): Likewise.
7049 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7050 * configure.ac: Append `stap-probe.o' to be generated when ELF
7052 * configure: Regenerate.
7053 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7054 * elfread.c: Include `probe.h' and `arch-utils.h'.
7055 (probe_key): New variable.
7056 (elf_get_probes): New function.
7057 (elf_get_probe_argument_count): Likewise.
7058 (elf_evaluate_probe_argument): Likewise.
7059 (elf_compile_to_ax): Likewise.
7060 (elf_symfile_relocate_probe): Likewise.
7061 (stap_probe_key_free): Likewise.
7062 (elf_probe_fns): New variable.
7063 (elf_sym_fns): Add `sym_probe_fns' value.
7064 (elf_sym_fns_lazy_psyms): Likewise.
7065 (elf_sym_fns_gdb_index): Likewise.
7066 (_initialize_elfread): Initialize objfile cache for static
7068 * gdb_vecs.h (struct probe): New forward declaration.
7069 (probe_p): New VEC declaration.
7070 * gdbarch.c: Regenerate.
7071 * gdbarch.h: Regenerate.
7072 * gdbarch.sh (stap_integer_prefix): New variable.
7073 (stap_integer_suffix): Likewise.
7074 (stap_register_prefix): Likewise.
7075 (stap_register_suffix): Likewise.
7076 (stap_register_indirection_prefix): Likewise.
7077 (stap_register_indirection_suffix): Likewise.
7078 (stap_gdb_register_prefix): Likewise.
7079 (stap_gdb_register_suffix): Likewise.
7080 (stap_is_single_operand): New function.
7081 (stap_parse_special_token): Likewise.
7082 (struct stap_parse_info): Forward declaration.
7083 * i386-tdep.c: Including headers needed to perform the parsing
7084 of SystemTap probes' arguments.
7085 (i386_stap_is_single_operand): New function.
7086 (i386_stap_parse_special_token): Likewise.
7087 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7088 probes' arguments parser.
7089 * i386-tdep.h (i386_stap_is_single_operand): New function.
7090 (i386_stap_parse_special_token): Likewise.
7091 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7092 * mipsread.c (ecoff_sym_fns): Likewise.
7093 * objfiles.c (objfile_relocate1): Support relocation for static
7095 * parse.c (prefixify_expression): Remove static declaration.
7096 (initialize_expout): Likewise.
7097 (reallocate_expout): Likewise.
7098 * parser-defs.h (initialize_expout): Declare function.
7099 (reallocate_expout): Likewise.
7100 (prefixify_expression): Likewise.
7101 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7102 of SystemTap probes' arguments.
7103 (ppc_stap_is_single_operand): New function.
7104 (ppc_stap_parse_special_token): Likewise.
7105 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7106 probes' arguments parser.
7107 * probe.c: New file, for generic statically defined probe support.
7108 * probe.h: Likewise.
7109 * s390-tdep.c: Including headers needed to perform the parsing of
7110 SystemTap probes' arguments.
7111 (s390_stap_is_single_operand): New function.
7112 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7113 probes' arguments parser.
7114 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7115 * stap-probe.c: New file, for SystemTap probe support.
7116 * stap-probe.h: Likewise.
7117 * symfile.h: Include `gdb_vecs.h'.
7118 (struct sym_probe_fns): New struct.
7119 (struct sym_fns) <sym_probe_fns>: New field.
7120 * symtab.c (init_sal): Initialize `probe' field.
7121 * symtab.h (struct probe): Forward declaration.
7122 (struct symtab_and_line) <probe>: New field.
7123 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7125 (stop_tracing): Likewise.
7126 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7128 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7129 Tom Tromey <tromey@redhat.com>
7131 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7132 and to compile agent expressions.
7133 * infrun.c (siginfo_make_value): New argument `ignore'.
7134 (siginfo_funcs): New struct.
7135 (_initialize_infrun): New argument when calling
7136 `create_internalvar_type_lazy'.
7137 * thread.c (thread_id_make_value): New argument `ignore'.
7138 (thread_funcs): New struct.
7139 (_initialize_thread): New argument when calling
7140 `create_internalvar_type_lazy'.
7141 * tracepoint.c (sdata_make_value): New argument `ignore'.
7142 (sdata_funcs): New struct.
7143 (_initialize_tracepoint): New argument when calling
7144 `create_internalvar_type_lazy'.
7145 * value.c (make_value): New struct.
7146 (create_internalvar_type_lazy): New argument `data'.
7147 (compile_internalvar_to_ax): New function.
7148 (value_of_internalvar): Properly handling `make_value' case.
7149 (clear_internalvar): Likewise.
7150 (show_convenience): Adding `TRY_CATCH' block.
7151 * value.h (internalvar_make_value): Delete, replace by...
7152 (struct internalvar_funcs): ... this.
7153 (create_internalvar_type_lazy) <fun>: Delete argument.
7154 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7155 (compile_internalvar_to_ax): New function.
7156 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7157 (tlb_funcs): New struct.
7158 (_initialize_windows_tdep): New argument when calling
7159 `create_internalvar_type_lazy'.
7161 2012-04-27 Mark Wielaard <mjw@redhat.com>
7163 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7164 see whether it is an address or a constant offset from DW_AT_low_pc.
7165 (dwarf2_record_block_ranges): Likewise.
7166 (read_partial_die): Likewise.
7168 2012-04-26 Mark Wielaard <mjw@redhat.com>
7170 * MAINTAINERS (Write After Approval): Add myself to the list.
7172 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7174 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7175 (proc_prettyprint_signal): Likewise.
7176 (proc_prettyprint_faultset): Likewise.
7177 (proc_prettyprint_fault): Likewise.
7178 (proc_prettyprint_actionset): Likewise.
7179 (proc_prettyprint_flags): Move to new proc-flags.c section.
7180 (proc_prettyfprint_flags): New prototype.
7181 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7182 (proc_syscall, proc_cursig): Likewise.
7183 (proc_set_kill_on_last_close): Likewise.
7184 (proc_unset_kill_on_last_close): Likewise.
7185 (proc_set_watchpoint): Make static.
7186 (proc_delete_dead_threads): Likewise.
7187 (procfs_set_watchpoint): Likewise.
7188 (_initialize_procfs): Add prototype.
7189 * proc-events.c: Include proc-utils.h.
7190 (init_syscall_table): Make static.
7191 * proc-api.c (_initialize_proc_api): Add prototype.
7192 * proc-flags.c: Include proc-utils.h.
7194 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7196 * configure.ac: Add AC_ARG_PROGRAM.
7197 * configure: Regenerate.
7199 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7201 Fix DW_AT_lower_bound defaults for DWARF-4+.
7202 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7203 high. New variable low_default_is_valid. Implement DWARF-4+
7204 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7205 no default by the DWARF standard.
7207 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7208 Maciej W. Rozycki <macro@codesourcery.com>
7210 * infrun.c (handle_inferior_event): Move the check for return
7211 trampolines ahead of the check for function trampolines.
7212 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7213 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7214 (mips_str_mips16_ret_stub): Likewise.
7215 (mips_str_call_fp_stub): Likewise.
7216 (mips_str_call_stub): Likewise.
7217 (mips_str_fn_stub): Likewise.
7218 (mips_str_pic): Likewise.
7219 (mips_in_frame_stub): New function.
7220 (mips_unwind_pc): Return the return address rather than the PC
7221 if the PC of an intermediate frame is inside a call thunk.
7222 (mips_is_stub_suffix): New function.
7223 (mips_is_stub_mode): Likewise.
7224 (mips_get_mips16_fn_stub_pc): Likewise.
7225 (mips_skip_mips16_trampoline_code): Update to handle all the
7226 currently generated stub types. Don't recurse into __fn_stub
7227 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7228 Use cooked register accesses.
7229 (mips_in_return_stub): Reintroduce function.
7230 (mips_skip_trampoline_code): Traverse trampolines recursively.
7231 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7233 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7237 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7239 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7240 * features/arm-with-m-vfp-d16.xml: New file. Describes
7241 Cortex-M with VFPv4-sp-d16 FPU register layout.
7242 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7243 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7244 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7245 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7246 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7248 2012-04-25 Doug Evans <dje@google.com>
7250 * cli/cli-decode.c (print_doc_line): Use stream instead of
7253 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7255 * features/arm-with-iwmmxt.c: Regenerate.
7256 * features/arm-with-m-fpa-layout.c: Likewise.
7257 * features/arm-with-m.c: Likewise.
7258 * features/arm-with-neon.c: Likewise.
7259 * features/arm-with-vfpv2.c: Likewise.
7260 * features/arm-with-vfpv3.c: Likewise.
7261 * features/mips-dsp-linux.c: Likewise.
7262 * features/mips-linux.c: Likewise.
7263 * features/mips64-dsp-linux.c: Likewise.
7264 * features/mips64-linux.c: Likewise.
7265 * features/s390-linux32.c: Likewise.
7266 * features/s390-linux32v1.c: Likewise.
7267 * features/s390-linux32v2.c: Likewise.
7268 * features/s390-linux64.c: Likewise.
7269 * features/s390-linux64v1.c: Likewise.
7270 * features/s390-linux64v2.c: Likewise.
7271 * features/s390x-linux64.c: Likewise.
7272 * features/s390x-linux64v1.c: Likewise.
7273 * features/s390x-linux64v2.c: Likewise.
7274 * features/tic6x-c62x-linux.c: Likewise.
7275 * features/tic6x-c62x.c: Likewise.
7276 * features/tic6x-c64x-linux.c: Likewise.
7277 * features/tic6x-c64x.c: Likewise.
7278 * features/tic6x-c64xp-linux.c: Likewise.
7279 * features/tic6x-c64xp.c: Likewise.
7280 * target-descriptions.c: Only generate `field_type' and `type'
7281 variables when needed.
7283 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7285 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7287 2012-04-25 Doug Evans <dje@google.com>
7289 Initial pass at Go language support.
7291 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7293 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7294 (YYFILES): Add go-exp.c.
7295 (YYOBJ): Add go-exp.o.
7296 (local-maintainer-clean): Delete go-exp.c.
7297 * defs.h (enum language): Add language_go.
7298 * dwarf2read.c: #include "go-lang.h".
7299 (fixup_go_packaging): New function.
7300 (process_full_comp_unit): Call it when processing Go CUs.
7301 (dwarf2_physname): Add Go support.
7302 (read_file_scope): Handle missing language spec for GNU Go.
7303 (set_cu_language): Handle DW_LANG_Go.
7304 * go-exp.y: New file.
7305 * go-lang.h: New file.
7306 * go-lang.c: New file.
7307 * go-typeprint.c: New file.
7308 * go-valprint.c: New file.
7309 * symtab.c: #include "go-lang.h".
7310 (symbol_set_language): Handle language_go.
7311 (symbol_find_demangled_name, symbol_set_names): Ditto.
7312 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7314 2012-04-24 Jim Meyering <meyering@redhat.com>
7316 avoid a few strncpy-induced buffer overruns
7317 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7318 fname and psargs before trying to concatenate.
7319 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7320 "name" before applying strchr.
7322 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7324 * CONTRIBUTE: Use unified diff instead of context diff when
7327 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7329 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7330 code. Handle JR.HB correctly.
7332 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7335 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7336 with the other MIPS16 helpers.
7338 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7340 * observer.sh: Conditionally declare `args', thus cleaning up
7341 unused instances of this variable.
7343 2012-04-24 Yao Qi <yao@codesourcery.com>
7345 Revert this patch to allow breakpoint always-inserted
7347 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7348 * breakpoint.c: Include record.h.
7349 (breakpoints_always_inserted_mode): Return false when the record
7352 * breakpoint.c (iterate_over_bp_locations): New.
7353 * breakpoint.h: Declare.
7354 New typedef walk_bp_location_callback.
7355 * record.c (record_open): Call record_init_record_breakpoints.
7356 (record_sync_record_breakpoints): New.
7357 (record_init_record_breakpoints): New.
7358 * NEWS: Mention supporting breakpoint always-inserted mode in
7361 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7363 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7366 2012-04-24 Yao Qi <yao@codesourcery.com>
7368 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7369 (is_catchpoint): ... it.
7370 (print_one_breakpoint_location): Caller update.
7371 * breakpoint.h: Update declaration.
7373 2012-04-23 David S. Miller <davem@davemloft.net>
7375 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7377 2012-04-23 Tom Tromey <tromey@redhat.com>
7379 * buildsym.c (add_free_pendings): Remove.
7380 * buildsym.h (add_free_pendings): Remove.
7382 2012-04-23 Doug Evans <dje@google.com>
7384 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7385 attr.u.unsnd instead of attr.u.addr.
7386 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7387 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7389 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7390 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7392 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7394 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7396 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7397 (mips_o32_return_value): Likewise.
7398 (mips_o64_return_value): Likewise.
7400 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7402 * ada-lang.c (ada_evaluate_subexp): Add cases for
7403 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7404 their treatment in eval.c.
7406 2012-04-21 David S. Miller <davem@davemloft.net>
7408 * sparc-tdep.c (X_DISP10): Define.
7409 (sparc_analyze_control_transfer): Handle compare-and-branch.
7411 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7413 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7414 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7416 2012-04-20 Nigel Stephens <nigel@mips.com>
7417 Maciej W. Rozycki <macro@codesourcery.com>
7419 * mips-tdep.c (mips_float_register_p): New function.
7420 (mips_convert_register_float_case_p): Use mips_float_register_p.
7421 (mips_register_type): Likewise.
7422 (mips_print_register): Likewise.
7423 (print_gp_register_row): Likewise.
7424 (mips_print_registers_info): Likewise.
7426 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7428 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7431 2012-04-20 Andrew Pinski <apinski@cavium.com>
7433 * MAINTAINERS (Write After Approval): Add myself to the list.
7435 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7437 * MAINTAINERS: Update my e-mail address.
7439 2012-04-20 Pedro Alves <palves@redhat.com>
7441 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7443 * configure: Regenerate.
7445 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7447 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7449 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7451 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7453 Fix compilation compatibility with python-2.4
7454 * python/py-type.c (convert_field): Cast ADDRSTRING for
7455 PyObject_SetAttrString as non-const. New comment.
7457 2012-04-19 Tom Tromey <tromey@redhat.com>
7459 * top.c (quit_target): Use all_cleanups.
7460 * main.c (captured_command_loop): Use all_cleanups.
7461 * exceptions.c (throw_exception): Use all_cleanups.
7463 2012-04-19 Pedro Alves <palves@redhat.com>
7465 * Makefile.in (GNULIB_BUILDDIR): New.
7466 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7467 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7468 (CLEANDIRS). Remove gnulib/import.
7469 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7471 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7472 (gnulib/import/Makefile): Replace gnulib/import with
7473 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7474 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7475 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7476 acx_configure_dir.m4.
7477 * acinclude.m4: Include acx_configure_dir.m4.
7478 * acx_configure_dir.m4: New file.
7479 * aclocal.m4: Regenerate.
7480 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7481 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7482 (GNULIB): New variable.
7483 (GNULIB_STDINT_H): Adjust.
7484 (AC_OUTPUT): Don't output gnulib/Makefile.
7485 * gdb/defs.h: Include build-gnulib/config.h.
7486 * aclocal.m4: Regenerate.
7487 * config.in: Regenerate.
7488 * configure: Regenerate.
7490 * gnulib/Makefile.in: New file.
7491 * gnulib/configure.ac: New file.
7492 * gnulib/aclocal.m4: New file.
7493 * gnulib/config.in: New file.
7494 * gnulib/configure: New file.
7495 * gnulib/: Re-run gnulib-tool to adjust.
7497 2012-04-19 Doug Evans <dje@google.com>
7499 * cleanups.h (struct cleanup): Move to cleanups.c.
7500 (make_cleanup_dtor_ftype): New typedef.
7501 (make_cleanup_dtor): Use it.
7502 (ALL_CLEANUPS): Replace with ...
7503 (all_cleanups): ... this. Declare. All uses updated.
7504 * cleanups.c: #include "gdb_assert.h".
7505 (sentinel_cleanup): New static global.
7506 (SENTINEL_CLEANUP): Define.
7507 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7508 (make_my_cleanup2): Assert result is non-NULL.
7509 (all_cleanups): New function.
7510 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7513 2012-04-19 Pedro Alves <palves@redhat.com>
7515 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7516 Adjust paths to gnulib imported files.
7518 2012-04-19 Pedro Alves <palves@redhat.com>
7520 * gnulib/: Move whole directory ...
7521 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7522 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7523 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7524 (aclocal_m4_deps): Adjust.
7525 * aclocal.m4: Regenerate.
7526 * configure: Regenerate.
7527 * configure.ac: Adjust AC_OUTPUT output.
7529 2012-04-19 Yao Qi <yao@codesourcery.com>
7531 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7533 * vec.c: Move it ...
7534 * common/vec.c: ... here.
7535 * vec.h: Move it ...
7536 * common/vec.h: ... here.
7538 2012-04-19 Yao Qi <yao@codesourcery.com>
7540 * gdb-code-style.el: New.
7542 2012-04-18 Pedro Alves <palves@redhat.com>
7544 Update gnulib from latest git.
7545 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7547 * gnulib/Makefile.am: Update.
7548 * gnulib/dummy.c: Update.
7549 * gnulib/extra/arg-nonnull.h: Update.
7550 * gnulib/extra/c++defs.h: Update.
7551 * gnulib/extra/update-copyright: Update.
7552 * gnulib/extra/warn-on-use.h: Update.
7553 * gnulib/inttypes.in.h: Update.
7554 * gnulib/m4/00gnulib.m4: Update.
7555 * gnulib/m4/extensions.m4: Update.
7556 * gnulib/m4/gnulib-cache.m4: Update.
7557 * gnulib/m4/gnulib-common.m4: Update.
7558 * gnulib/m4/gnulib-comp.m4: Update.
7559 * gnulib/m4/gnulib-tool.m4: Update.
7560 * gnulib/m4/include_next.m4: Update.
7561 * gnulib/m4/inttypes-pri.m4: Update.
7562 * gnulib/m4/inttypes.m4: Update.
7563 * gnulib/m4/longlong.m4: Update.
7564 * gnulib/m4/memchr.m4: Update.
7565 * gnulib/m4/memmem.m4: Update.
7566 * gnulib/m4/mmap-anon.m4: Update.
7567 * gnulib/m4/multiarch.m4: Update.
7568 * gnulib/m4/onceonly.m4: Update.
7569 * gnulib/m4/stddef_h.m4: Update.
7570 * gnulib/m4/stdint.m4: Update.
7571 * gnulib/m4/string_h.m4: Update.
7572 * gnulib/m4/warn-on-use.m4: Update.
7573 * gnulib/m4/wchar_h.m4: Update.
7574 * gnulib/m4/wchar_t.m4: Update.
7575 * gnulib/m4/wint_t.m4: Update.
7576 * gnulib/memchr.c: Update.
7577 * gnulib/memmem.c: Update.
7578 * gnulib/stddef.in.h: Update.
7579 * gnulib/stdint.in.h: Update.
7580 * gnulib/str-two-way.h: Update.
7581 * gnulib/string.in.h: Update.
7582 * gnulib/wchar.in.h: Update.
7584 * gnulib/extra/arg-nonnull.h: Delete.
7585 * gnulib/extra/c++defs.h: Delete.
7586 * gnulib/extra/warn-on-use.h: Delete.
7587 * gnulib/m4/wchar_h.m4: Delete.
7588 * gnulib/m4/wint_t.m4: Delete.
7589 * gnulib/wchar.in.h: Delete.
7591 * gnulib/extra/snippets/arg-nonnull.h: New.
7592 * gnulib/extra/snippets/c++defs.h: New.
7593 * gnulib/extra/snippets/warn-on-use.h: New.
7595 * aclocal.m4: Regenerate.
7596 * config.in: Regenerate.
7597 * configure: Regenerate.
7598 * gnulib/Makefile.in: Regenerate.
7600 2012-04-18 Pedro Alves <palves@redhat.com>
7602 Reimport the update-copyright module from gnulib
7603 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7605 * configure: Regenerate.
7606 * gnulib/Makefile.am: Update.
7607 * gnulib/Makefile.in: Regenerate.
7608 * gnulib/extra/update-copyright: Update.
7609 * gnulib/m4/gnulib-cache.m4: Update.
7610 * gnulib/m4/gnulib-comp.m4: Update.
7612 2012-04-18 Tristan Gingold <gingold@adacore.com>
7614 * configure.ac (aix): Put -lpthread into libs.
7615 * configure: Regenerate.
7617 2012-04-18 Tom Tromey <tromey@redhat.com>
7619 * linespec.c (convert_linespec_to_sals): Don't use
7621 (compare_msymbols): Arguments are minsym_and_objfile, not
7622 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7624 2012-04-18 Pedro Alves <palves@redhat.com>
7626 Revert gnulib/ part of:
7627 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7628 Copyright year update in most files (performed by copyright.sh).
7630 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7632 Fix 64-bit constants on 32-bit hosts.
7633 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7634 from unsigned long to ULONGEST.
7635 (read_signed_leb128): Change declaration return type from long to
7637 (dwarf2_const_value_attr): Change declaration parameter value from long
7639 (dwarf2_compute_name): Change variable value from long to LONGEST.
7640 (read_unsigned_leb128): Change return type, variable result and some
7641 casts from unsigned long to ULONGEST.
7642 (read_signed_leb128): Change return type, variable result and some
7643 casts from long to LONGEST.
7644 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7645 value from long to LONGEST.
7646 (dwarf2_const_value): Change variable value from long to LONGEST.
7647 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7648 plongest and hex_string.
7649 * symtab.h (struct general_symbol_info): Change ivalue from long to
7650 LONGEST, remove the comment.
7651 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7652 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7654 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7657 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7658 * ada-lang.c (ada_discrete_type_high_bound)
7659 (ada_discrete_type_low_bound): Fix function comment. Use
7660 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7661 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7662 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7663 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7664 Use TYPE_FIELD_ENUMVAL.
7665 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7666 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7667 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7668 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7670 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7671 * dwarf2read.c (process_enumeration_scope): Likewise.
7672 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7674 (class StructMainTypePrettyPrinter): Support also
7675 FIELD_LOC_KIND_ENUMVAL.
7676 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7678 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7679 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7680 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7681 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7683 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7684 accommodate enumval.
7685 (struct call_site): Adjust loc_kind to accommodate enumval.
7686 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7687 (TYPE_FIELD_ENUMVAL): New macros.
7688 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7689 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7691 * p-typeprint.c (pascal_type_print_base): Likewise.
7692 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7694 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7695 * python/py-type.c (convert_field): New variable addrstring. Use
7696 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7697 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7698 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7699 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7701 * valprint.c (generic_val_print): Likewise.
7703 2012-04-17 Doug Evans <dje@google.com>
7705 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7707 * dwarf2read.c: Whitespace fixes.
7708 (lookup_signatured_type): Tweak comment.
7709 (get_die_type_at_offset): Fix comment.
7711 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7713 * xcoffread.c (xcoff_secnum_to_sections): New function.
7714 (secnum_to_section, secnum_to_bfd_section): Reimplement
7715 using xcoff_secnum_to_sections. Rename "secnum" parameter
7717 (RECORD_MINIMAL_SYMBOL): Delete.
7718 (record_minimal_symbol): New function.
7719 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7720 by call to record_minimal_symbol and set misc_func_recorded
7721 to 1. Set last_csect_sec to the XCOFF section index instead
7722 of GDB's section_offset index. Update calls to
7723 prim_record_minimal_symbol_and_info to pass the BFD section
7726 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7728 * xcoffread.c (read_xcoff_symtab): Delete variables
7729 last_csect_val and last_csect_sec and associated code.
7731 2012-04-17 Doug Evans <dje@google.com>
7733 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7734 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7735 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7736 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7738 * cleanups.h: New file.
7739 * cleanups.c: New file.
7740 * Makefile.in (SFILES): Add cleanups.c.
7741 (HFILES_NO_SRCDIR): Add cleanups.h.
7742 (COMMON_OBS): Add cleanups.o.
7743 * defs.h (struct cleanup): Moved to cleanups.h.
7744 (do_cleanups,do_final_cleanups): Ditto.
7745 (discard_cleanups,discard_final_cleanups): Ditto
7746 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7747 (save_cleanups,save_final_cleanups): Ditto.
7748 (restore_cleanups,restore_final_cleanups): Ditto.
7749 (null_cleanup): Ditto.
7750 (make_my_cleanup,make_my_cleanup2): Ditto.
7751 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7752 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7753 (do_cleanups,do_final_cleanups): Ditto.
7754 (discard_cleanups,discard_final_cleanups): Ditto
7755 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7756 (save_cleanups,save_final_cleanups): Ditto.
7757 (restore_cleanups,restore_final_cleanups): Ditto.
7758 (null_cleanup): Ditto.
7759 (make_my_cleanup,make_my_cleanup2): Ditto.
7760 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7762 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7764 (make_cleanup_dyn_string_delete): Ditto.
7765 (make_cleanup_ui_file_delete): Ditto.
7766 (make_cleanup_ui_out_redirect_pop): Ditto.
7767 (make_cleanup_free_section_addr_info): Ditto.
7768 (make_cleanup_restore_integer): Ditto.
7769 (make_cleanup_unpush_target): Ditto.
7770 (make_cleanup_value_free_to_mark): Ditto.
7771 (make_cleanup_value_free): Ditto.
7772 (make_cleanup_free_so): Ditto.
7774 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7776 New option "set debug auto-load".
7777 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7778 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7779 (auto_load_safe_path_vec_update)
7780 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7782 (file_is_auto_load_safe): New parameters debug_fmt and ....
7783 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7784 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7785 caller by explanatory string.
7786 (_initialize_auto_load): Register "set debug auto-load".
7787 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7789 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7790 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7791 by explanatory string.
7792 * main.c (captured_main): Likewise.
7793 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7794 (source_section_scripts): Likewise.
7796 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7798 New option "set auto-load safe-path".
7799 * NEWS: New commands "set auto-load safe-path"
7800 and "show auto-load safe-path".
7801 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7802 (auto_load_safe_path, auto_load_safe_path_vec)
7803 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7804 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7805 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7806 (source_gdb_script_for_objfile): New variable is_safe. Call
7807 file_is_auto_load_safe. Return if it is not.
7808 (struct loaded_script): New field loaded.
7809 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7810 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7811 output "Missing" to "No".
7812 (_initialize_auto_load): New variable cmd. Initialize
7813 auto_load_safe_path. Register "set auto-load safe-path",
7814 "show auto-load safe-path" and "add-auto-load-safe-path".
7815 * auto-load.h (maybe_add_script): Add parameter loaded.
7816 (file_is_auto_load_safe): New declaration.
7817 * config.in: Regenerate.
7818 * configure: Regenerate.
7819 * configure.ac: New parameters --with-auto-load-safe-path
7820 and --without-auto-load-safe-path.
7821 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7822 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7823 * main.c (captured_main): Check file_is_auto_load_safe for
7825 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7826 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7827 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7830 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7832 auto-load: Implementation.
7833 * NEWS: New descriptions for "info auto-load",
7834 "info auto-load gdb-scripts", "info auto-load python-scripts",
7835 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7836 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7837 and "show auto-load-scripts". New description for "set auto-load",
7838 "show auto-load", "set auto-load gdb-scripts",
7839 "show auto-load gdb-scripts", "set auto-load python-scripts",
7840 "show auto-load python-scripts", "set auto-load local-gdbinit",
7841 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7842 "show auto-load libthread-db".
7843 * auto-load.c: Remove include python/python-internal.h. Add includes
7844 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7846 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7847 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7848 (gdbpy_global_auto_load): Rename to ...
7849 (global_auto_load): ... here.
7850 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7851 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7852 (script_language_gdb, source_gdb_script_for_objfile): New.
7853 (struct loaded_script): New field language.
7854 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7856 (maybe_add_script): Add parameter language. Drop redundant
7857 entry.full_path initialization. Initialize entry.language and
7859 (auto_load_objfile_script): Change parameter suffix to language.
7860 Remove the call of maybe_add_script.
7861 Call language->source_script_for_objfile.
7862 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7864 (collect_matching_scripts): Adjust it for
7865 struct collect_matching_scripts_data.
7866 (auto_load_info_scripts_pattern_nl): New variable.
7867 (info_auto_load_scripts): Rename to ...
7868 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7869 for struct collect_matching_scripts_data.
7870 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7871 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7872 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7873 (auto_load_info_cmdlist_get): New.
7874 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7875 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7876 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7877 "info auto-load local-gdbinit".
7878 * auto-load.h (struct script_language): New.
7879 (gdbpy_global_auto_load): Rename to ...
7880 (global_auto_load): ... here.
7881 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7882 (auto_load_local_gdbinit_loaded): New declarations.
7883 (maybe_add_script): New parameter language.
7884 (auto_load_objfile_script): Change parameter suffix to language.
7885 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7886 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7887 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7889 * linux-thread-db.c: Include auto-load.h and ctype.h.
7890 (auto_load_thread_db, show_auto_load_thread_db): New.
7891 (struct thread_db_info): New field filename.
7892 (delete_thread_db_info): Call xfree for FILENAME.
7893 (try_thread_db_load): Initialize FILENAME.
7894 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7895 if !AUTO_LOAD_THREAD_DB.
7896 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7897 (_initialize_thread_db): Install auto_load_thread_db
7898 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7899 as "info auto-load libthread-db".
7900 * main.c (captured_main): Rename gdbpy_global_auto_load to
7901 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7902 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7903 (print_gdb_help): Extend the help for 'local init file'.
7904 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7905 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7906 (auto_load_scripts): Rename to ...
7907 (auto_load_python_scripts): ... here, update the comment.
7908 (gdbpy_load_auto_script_for_objfile): New declaration.
7909 (show_auto_load_python_scripts, script_language_python)
7910 (gdbpy_load_auto_script_for_objfile): New.
7911 (source_section_scripts): Refactor the code.
7912 (load_auto_scripts_for_objfile): Rename to ...
7913 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7914 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7915 (info_auto_load_python_scripts): New.
7916 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7917 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7918 Register "set auto-load-scripts" as its deprecated alias. Register
7919 "info auto-load python-scripts". Register "info auto-load-scripts" as
7920 its deprecated alias.
7921 (load_auto_scripts_for_objfile): Rename to ...
7922 (gdbpy_load_auto_scripts_for_objfile): ... here.
7923 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7924 (gdbpy_load_auto_scripts_for_objfile): ... here.
7926 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7928 auto-load: Move files.
7929 * Makefile.in (SFILES): Add auto-load.c.
7930 (HFILES_NO_SRCDIR): Add auto-load.h.
7931 (COMMON_OBS): Add auto-load.o.
7932 (distclean): Change .gdbinit for gdb-gdb.gdb.
7933 * auto-load.c: New file, with parts from python/py-auto-load.c.
7934 * auto-load.h: New file, with parts from python/python.h.
7935 * configure: Regenerate.
7936 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7937 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7938 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7939 * main.c: Include auto-load.h.
7940 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7941 command.h, observer.h and progspace.h to auto-load.c. Add include
7943 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7944 (struct loaded_script, auto_load_pspace_data)
7945 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7946 (hash_loaded_script_entry, eq_loaded_script_entry)
7947 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7948 (maybe_add_script): Move to auto-load.c.
7949 (source_section_scripts): Change maybe_add_script parameters passing,
7950 use script_not_found_warning_print.
7951 (clear_section_scripts, auto_load_objfile_script)
7952 (auto_load_new_objfile, loaded_script_ptr)
7953 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7954 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7955 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7956 auto_load_new_objfile and info_auto_load_scripts initizations to
7958 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7960 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7963 * charset.c (find_charset_names): Remove variables ix and elt.
7964 Use free_char_ptr_vec.
7965 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7966 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7967 debugdir_end. New variable debugdir_len.
7968 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7969 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7971 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7972 and elt. Use free_char_ptr_vec.
7973 * source.c (add_path): Remove variables argv, arg and argv_index.
7974 New variables dir_vec, back_to, ix and name.
7975 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7976 make_cleanup_freeargv. Remove variable separator. Simplify the code
7977 no longer expecting DIRNAME_SEPARATOR.
7978 (openp): Remove variable p, p1 and len. New variables dir_vec,
7979 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7980 no longer expecting DIRNAME_SEPARATOR.
7981 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7982 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7984 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7985 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7986 (dirnames_to_char_ptr_vec): New functions.
7988 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7991 * source.c (add_path): Remove always true conditional 'p == 0' and
7992 unindent its code block.
7994 2012-04-17 Pedro Alves <palves@redhat.com>
7996 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7997 (FIELD_BITPOS_LVAL): ... this.
7998 (FIELD_BITPOS): New.
7999 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8000 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8001 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8003 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8005 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8006 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8007 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8010 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8012 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8013 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8014 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8015 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8016 * jv-lang.c (java_link_class_type): Likewise, once.
8017 * stabsread.c (read_enum_type): Likewise.
8019 2012-04-16 Yao Qi <yao@codesourcery.com>
8021 * common/agent.c (agent_run_command): Add one more parameter `len'.
8023 * common/agent.h: Update declaration.
8024 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8026 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8028 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8031 * value.c (value_actual_type): New function.
8032 * value.h (value_actual_type): New declaration.
8033 * varobj.c (update_type_if_necessary): New function.
8034 (varobj_create): Call value_actual_type instead of
8036 (install_dynamic_child): distinct changed and type changed MI variable
8038 (update_dynamic_varobj_children): Updated for install_dynamic_child
8039 change. All callers updated.
8040 (varobj_update): Support for MI variable object type change if
8041 the value changed and RTTI is used to determine the type.
8042 (create_child_with_value): Call value_actual_type instead of
8044 (adjust_value_for_child_access): Extended with a new parameter which
8045 specify whether the given value should be casted to enclosing type.
8046 All callers updated.
8048 2012-04-14 Yao Qi <yao@codesourcery.com>
8050 Import gnulib module inttypes from git
8051 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8052 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8053 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8054 gnulib/m4/inttypes-pri.m4
8055 * aclocal.m4, config.in, configure: Regenerated.
8056 * gnulib/Makefile.am: Update.
8057 * gnulib/Makefile.in: Update.
8058 * gnulib/m4/gnulib-cache.m4: Update.
8059 * gnulib/m4/gnulib-comp.m4: Update.
8060 * gnulib/inttypes.in.h: New.
8061 * gnulib/m4/inttypes-pri.m4: New.
8062 * gnulib/m4/inttypes.m4: New.
8064 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8066 * infrun.c (resume): Update PC address to the real PC after
8067 preparing to do displaced stepping.
8069 2012-04-12 Doug Evans <dje@google.com>
8071 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8072 All callers updated.
8074 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8076 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8078 2012-04-12 Doug Evans <dje@google.com>
8080 * dwarf2read.c (create_all_type_units): Renamed from
8081 create_debug_types_hash_table. All callers updated.
8083 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8084 local type_sig to sig_type, type_offset to type_offset_in_tu.
8085 (hash_signatured_type): Renamed from hash_type_signature,
8086 all callers updated.
8087 (eq_signatured_type): Renamed from eq_type_signature,
8088 all callers updated.
8089 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8090 (process_enumeration_scope): Ditto.
8091 (lookup_signatured_type_at_offset): Ditto.
8092 (load_full_type_unit, read_signatured_type): Ditto.
8094 2012-04-12 Yao Qi <yao@codesourcery.com>
8096 * remote.c (async_remote_interrupt): Correct function name in
8098 (async_remote_interrupt_twice): Ditto.
8100 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8102 * source.c (find_and_open_source): Consistently pass resulting
8103 full path through xfullpath.
8105 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8107 Provide more specific displaced-stepping memory error message.
8108 * infrun.c (displaced_step_prepare): New variable status. Call
8109 target_read_memory instead of read_memory, provide more specific
8112 2012-04-11 Tristan Gingold <gingold@adacore.com>
8115 * darwin-nat.c (darwin_execvp): Revert previous patch.
8117 2012-04-11 Tristan Gingold <gingold@adacore.com>
8120 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8123 2012-04-11 Tristan Gingold <gingold@adacore.com>
8125 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8128 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8130 New command 'explore' which helps explore values and types in
8132 * NEWS: Add an entry about the new 'explore' command.
8133 * data-directory/Makefile.in: Add gdb/command/explore.py
8134 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8135 command using the GDB Python API.
8137 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8139 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8140 extension in jump target calculation.
8142 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8144 * mips-tdep.c (mips32_next_pc): Handle JALX.
8146 2012-04-10 Yao Qi <yao@codesourcery.com>
8148 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8150 2012-04-10 Yao Qi <yao@codesourcery.com>
8152 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8153 and gnulib/m4/gnulib-tool.m4.
8155 2012-04-10 Doug Evans <dje@google.com>
8157 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8158 (load_partial_dies): Clarify comment.
8159 (find_partial_die): Support rereading type units.
8160 Clarify CU handling, if we know offset is in CU, don't search for the
8161 containing CU. Add comment regarding memory waste.
8163 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8165 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8166 i386/x32-avx and i386/x32-avx-linux.
8167 (i386/x32-expedite): New.
8168 (i386/x32-linux-expedite): Likewise.
8169 (i386/x32-avx-expedite): Likewise.
8170 (i386/x32-avx-linux-expedite): Likewise.
8171 ($(outdir)/i386/x32.dat): Likewise.
8172 ($(outdir)/i386/x32-linux.dat): Likewise.
8173 ($(outdir)/i386/x32-avx.dat): Likewise.
8174 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8176 * features/i386/x32-avx-linux.xml: New file.
8177 * features/i386/x32-avx.xml: Likewise.
8178 * features/i386/x32-core.xml: Likewise.
8179 * features/i386/x32-linux.xml: Likewise.
8180 * features/i386/x32.xml: Likewise.
8182 * features/i386/x32-avx-linux.c: New. Generated.
8183 * features/i386/x32-avx.c: Likewise.
8184 * features/i386/x32-linux.c: Likewise.
8185 * features/i386/x32.c: Likewise.
8186 * regformats/i386/x32-avx-linux.dat: Likewise.
8187 * regformats/i386/x32-avx.dat: Likewise.
8188 * regformats/i386/x32-linux.dat: Likewise.
8189 * regformats/i386/x32.dat: Likewise.
8191 2012-04-10 Tristan Gingold <gingold@adacore.com>
8193 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8194 code to kill the inferior.
8196 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8198 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8200 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8202 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8203 (yyvsp): New defines.
8204 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8206 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8208 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8210 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8212 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8215 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8217 * sparc64-tdep.c (sparc64_store_arguments)
8218 (sparc64_store_arguments): Fix coding style.
8220 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8222 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8223 complex floats, adjust some related comments and tighten a related
8225 (sparc64_extract_return_value): Handle complex floats.
8227 2012-04-07 Doug Evans <dje@google.com>
8229 * dwarf2read.c (load_partial_dies): Change condition to assert.
8231 2012-04-06 Doug Evans <dje@google.com>
8233 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8236 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8238 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8240 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8241 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8244 2012-04-05 Keith Seitz <keiths@redhat.com>
8246 * linespec.c (decode_compound): Remove.
8247 (enum offset_relative_sign): New enum.
8248 (struct line_offset): New struct.
8249 (struct linespec): New struct.
8250 (struct linespec_state): Move file_symtabs,
8251 user_filename, and user_function into struct linespec.
8252 Make result an anonymous struct holding vectors of
8253 symbolp and minsym_and_objfile_d.
8254 Add language member.
8255 (enum ls_token_type): New enum.
8256 (linespec_keywords): New array.
8257 (struct ls_token): New struct.
8258 (struct ls_parser): New struct.
8259 (linespec_lexer_lex_number): New function.
8260 (linespec_lexer_lex_keyword): New function.
8261 (is_ada_operator): New function.
8262 (skip_quote_char): New function.
8263 (copy_token_string): New function.
8264 (is_closing_quote_enclosed): New function.
8265 (find_parameter_list_end): New function.
8266 (linespec_lexer_lex_string): New function.
8267 (linespec_lexer_lex_one): New function.
8268 (linespec_lexer_consume_token): New function.
8269 (linespec_lexer_peek_token): New function.
8270 (cplusplus_error): Remove unused function.
8271 (find_methods): Update comment.
8272 (find_toplevel_char): Return const.
8273 (is_objc_method_format): Remove unused function.
8274 (find_toplevel_string): New function.
8275 (is_linespec_boundary): Remove.
8276 (symbol_not_found_error): New function.
8277 (find_method_overload_end): Remove function.
8278 (unexpected_linespec_error): New function.
8279 (keep_name_info): Remove.
8280 (linespec_parse_line_offset): New function.
8281 (linespec_parse_basic): New function.
8282 (canonicalize_linespec): New function.
8283 (decode_line_internal): Remove.
8284 (create_sals_line_offset): New function adapted from
8286 (convert_linespec_to_sals): New function.
8287 (parse_linespec): New function.
8288 (linespec_parser_new): New function.
8289 (linespec_state_destructor): Change parameter type to
8290 struct linespec_state *.
8291 Add language parameter.
8292 Remove freeing of moved members.
8293 (linespec_parser_delete): New function.
8294 (decode_line_full): Use parse_linespec and linespec_parser_new.
8295 (decode_line_1): Likewise.
8296 (decode_indirect): Rename to ...
8297 (linespec_expression_to_pc): ... this and rewrite
8298 to simply find CORE_ADDR, storing this result for later
8300 (locate_first_half): Remove.
8301 (deocde_objc): Add parameter LS.
8302 Initialize new struct collect_info members.
8303 Handle minimal symbols, too.
8304 (decode_compound): Delete.
8305 (lookup_prefix_sym): Rewrite.
8306 (compare_msymbols): New function.
8307 (find_method): Rewrite.
8308 Do not call cplusplus_error.
8309 (symtabs_from_filename): Rewrite.
8310 (collect_function_symbols): Delete.
8311 (find_function_symbols): Rewrite without ARGPTR-style
8313 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8314 (decode_dollar): Adapted and renamed to ...
8315 (linespec_parse_variable): ... this.
8316 (find_linespec_symbols): New function.
8317 (decode_label): Adapted and renamed to ...
8318 (find_label_symbols): ... this.
8319 (decode_digits_list_mode): Add and use LS argument.
8320 (decode_digits_ordinary): Likewise.
8321 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8322 If in list mode, allow any symbol class. Otherwise, only
8323 permit LOC_BLOCK symbols.
8324 (minsym_found): Update comments.
8325 (search_minsyms_for_name): Do not convert the matching symbol
8326 into a SAL. Simply push the symbol and objfile into the
8328 (decode_variable): Delete. Contents adapted into
8329 find_linespec_symbols.
8331 * cp-support.c (SKIP_SPACE): Remove.
8332 (operator_tokens): Remove unused global.
8333 (cp_validate_operator): Remove.
8334 * cp-support.h (cp_validate_operator): Remove declaration.
8336 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8338 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8339 for TYPE_VPTR_FIELDNO.
8340 * valprint.c (valprint_check_validity): Make it global, move the
8341 function comment ...
8342 * value.h (valprint_check_validity): ... to this new declaration.
8344 2012-04-02 Tristan Gingold <gingold@adacore.com>
8346 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8347 the STATE32 api for i386 state.
8348 (i386_darwin_store_inferior_registers): Likewise.
8350 2012-04-02 Tristan Gingold <gingold@adacore.com>
8352 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8354 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8357 2012-04-02 Tristan Gingold <gingold@adacore.com>
8360 * darwin-nat.c (darwin_execvp): Set binary preference.
8362 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8364 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8366 2012-03-30 Tom Tromey <tromey@redhat.com>
8368 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8369 of TRY_CATCH. Fix error handling.
8370 * python/py-value.c (convert_value_from_python): Move 'old'
8371 declaration to innermost scope.
8373 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8374 Andrey Smirnov <andrew.smirnov@gmail.com>
8376 -Wshadow warning fix.
8377 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8378 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8379 Adjust code accordingly.
8381 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8383 * ada-lang.c (symbol_completion_add): Rename parameter
8384 "encoded" into "encoded_p". Ajust code and documentation
8387 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8388 Andrey Smirnov <andrew.smirnov@gmail.com>
8390 -Wshadow warning fix.
8391 * ada-lang.c (symbol_completion_add): Rename parameter
8392 "wild_match" into wild_match_p. Update code and documentation
8395 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8397 * ada-lang.c (symbol_completion_match): Rename parameter
8398 "encoded" into "encoded_p". Ajust code and documentation
8401 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8402 Andrey Smirnov <andrew.smirnov@gmail.com>
8404 -Wshadow warning fix.
8405 * ada-lang.c (symbol_completion_match): Rename parameter
8406 "wild_match" into "wild_match_p". Adjust code and function
8407 documentation accordingly.
8409 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8410 Andrey Smirnov <andrew.smirnov@gmail.com>
8412 -Wshadow warning fix.
8413 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8414 "symbol_info" into "info". Adjust code accordingly.
8415 (ada_lookup_symbol): Likewise.
8417 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8419 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8420 of this function's documentation.
8422 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8423 Andrey Smirnov <andrew.smirnov@gmail.com>
8425 -Wshadow warning fix.
8426 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8427 variable into "wild_match_p". Adjust code accordingly.
8429 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8430 Andrey Smirnov <andrew.smirnov@gmail.com>
8432 -Wshadow warning fix.
8433 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8434 parameter into "wild_match_p". Adjust code accordingly.
8435 Document this parameter in the function description.
8437 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8438 Andrey Smirnov <andrew.smirnov@gmail.com>
8440 -Wshadow warning fix.
8441 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8442 "wild_match" parameter to "wild_match_p" (-Wshadow).
8444 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8446 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8447 in function documentation.
8449 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8450 Andrey Smirnov <andrew.smirnov@gmail.com>
8452 -Wshadow warning fix.
8453 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8454 variable into wild_match_p. Adjust code accordingly.
8456 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8457 Andrey Smirnov <andrew.smirnov@gmail.com>
8459 * ada-valprint.c (ada_val_print_1): Move the code handling
8460 TYPE_CODE_ENUM inside its own lexical block. Declare
8461 variables len and val there, instead of in the function's
8462 top level block. Avoid declaring deref_val again in a way
8463 that shadows another variable of the same name declared
8464 in one of the up-level blocks. Just re-use the up-level
8467 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8469 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8470 Replace block_found argument by symbol_info. Adjust
8471 implementation accordingly. Add function documentation.
8472 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8474 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8475 * ada-exp.y (write_object_renaming): Adjust to new
8476 ada_lookup_encoded_symbol API.
8478 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8480 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8483 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8485 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8486 (v850_register_name): Add the mpu and fpu register names.
8487 (v850e_register_name): Add the mpu and fpu register names.
8488 (v850e2_register_name): New function.
8489 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8492 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8494 * NEWS: Add entry for Ada varobj support.
8496 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8498 * varobj.c (default_value_is_changeable_p): New function,
8499 extracted from varobj_value_is_changeable_p. Add declaration.
8500 (ada_value_is_changeable_p): New function, extracted from
8501 varobj_value_is_changeable_p. Add declaration.
8502 (struct language_specific): New field "value_is_changeable_p".
8503 (languages): Add entries for new field.
8504 (varobj_create): Set language before calling install_new_value.
8505 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8506 "value_is_changeable_p" language callback.
8508 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8510 * ada-varobj.h, ada-varobj.c: New files.
8511 * Makefile.in (SFILES): Add ada-varobj.c.
8512 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8513 (COMMON_OBS): Add ada-varobj.o.
8515 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8517 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8518 (struct language_specific): New field "value_has_mutated".
8519 (languages): Set field "value_has_mutated" in each entry of array.
8520 (varobj_value_has_mutated): New function.
8521 (varobj_udpdate): Add handling of type mutation.
8522 (value_of_root): Add handling of type mutation.
8523 (ada_value_has_mutated): New function.
8525 2012-03-28 Pedro Alves <palves@redhat.com>
8527 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8528 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8530 2012-03-28 Tom Tromey <tromey@redhat.com>
8532 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8533 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8536 2012-03-28 Tom Tromey <tromey@redhat.com>
8538 * .dir-locals.el: New file.
8540 2012-03-28 Pedro Alves <palves@redhat.com>
8542 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8544 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8546 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8549 2012-03-27 Pedro Alves <palves@redhat.com>
8551 Eliminate struct ui_stream.
8553 * ui-out.h (struct ui_stream): Delete.
8554 (ui_out_field_stream): Adjust prototype.
8555 (ui_out_stream_new, ui_out_stream_delete)
8556 (make_cleanup_ui_out_stream_delete): Delete declarations.
8557 * ui-out.c (ui_out_field_stream): Change prototype to take a
8558 ui_file instead of a ui_stream. Adjust.
8559 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8560 (make_cleanup_ui_out_stream_delete): Delete.
8561 * breakpoint.c (print_breakpoint_location)
8562 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8563 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8564 * disasm.c (dump_insns): Ditto.
8565 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8567 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8568 ui_stream/ui_out_stream_new.
8569 * infcmd.c (print_return_value): Ditto.
8570 * osdata.c (info_osdata_command): Don't allocate a local
8572 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8573 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8574 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8575 allocate a local ui_stream.
8576 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8577 instead of ui_stream/ui_out_stream_new.
8578 (list_args_or_locals): Don't allocate a local ui_stream.
8579 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8580 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8581 ui_stream/ui_out_stream_new.
8582 * cli/cli-setshow.c (do_setshow_command): Ditto.
8584 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8586 * arm-linux-tdep.c (arm_linux_init_abi): Call
8587 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8588 * arm-tdep.c (arm_process_record): New function.
8589 (deallocate_reg_mem): New function.
8590 (decode_insn): New function.
8591 (thumb_record_branch): New function.
8592 (thumb_record_ldm_stm_swi(): New function.
8593 (thumb_record_misc): New function.
8594 (thumb_record_ld_st_stack): New function.
8595 (thumb_record_ld_st_imm_offset): New function.
8596 (thumb_record_ld_st_reg_offset(): New function.
8597 (thumb_record_add_sub_cmp_mov): New function.
8598 (thumb_record_shift_add_sub): New function.
8599 (arm_record_coproc_data_proc): New function.
8600 (arm_record_coproc): New function.
8601 (arm_record_b_bl): New function.
8602 (arm_record_ld_st_multiple): New function.
8603 (arm_record_ld_st_reg_offset): New function.
8604 (arm_record_ld_st_imm_offset): New function.
8605 (arm_record_data_proc_imm): New function.
8606 (arm_record_data_proc_misc_ld_str): New function.
8607 (arm_record_extension_space): New function.
8608 (arm_record_strx): New function.
8609 (sbo_sbz): New function.
8610 (struct insn_decode_record): New structure for arm insn record.
8611 (REG_ALLOC): New macro for reg allocations.
8612 (MEM_ALLOC): New macro for memory allocations.
8613 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8615 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8617 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8618 (store_register): Likewise.
8620 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8622 * MAINTAINERS (Write After Approval): Add myself to the list.
8624 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8626 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8627 Describe also the option "auto".
8629 2012-03-22 Richard Henderson <rth@redhat.com>
8631 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8632 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8634 2012-03-22 Richard Henderson <rth@redhat.com>
8636 * jit.c (jit_read_code_entry): Compute alignment and offset of
8637 int64_t member before computing entry_size.
8639 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8641 Python scripting: Add new method Value.referenced_value to
8642 gdb.Value which can dereference pointer as well as reference
8644 * NEWS: Add entry under 'Python scripting' about the new method
8645 Value.referenced_value on gdb.Value objects.
8646 * python/py-value.c (valpy_referenced_value): New function
8647 defining a new method on gdb.Value objects which can dereference
8648 pointer and reference values.
8650 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8652 * MAINTAINERS (Write After Approval): Add myself to the list.
8654 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8656 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8657 in addition to "main".
8659 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8661 * expression.h (op_name): Add declaration.
8662 * expprint.c (op_name): Remove declaration. Make non-static.
8663 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8665 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8667 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8669 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8670 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8671 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8672 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8673 (linux_nat_get_siginfo): Likewise.
8674 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8675 (linux_nat_get_siginfo): Likewise.
8676 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8677 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8678 * procfs.c (gdb_siginfo_t): Likewise.
8680 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8682 * .gitignore: Ignore more files.
8684 2012-03-20 Pedro Alves <palves@redhat.com>
8686 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8689 2012-03-20 Yao Qi <yao@codesourcery.com>
8691 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8694 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8696 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8697 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8698 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8700 * dwarf2expr.h (cu_offset, sect_offset): New types.
8701 (struct dwarf_expr_context_funcs) <dwarf_call>
8702 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8704 (struct dwarf_expr_context) <len>: Improve the comment.
8705 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8706 cu_offset and sect_offset.
8707 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8708 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8709 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8710 * dwarf2loc.h: Include dwarf2expr.h.
8711 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8713 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8714 Improve the comment.
8715 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8716 (struct signatured_type, struct line_header, struct partial_die_info)
8717 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8718 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8719 (get_die_type_at_offset, create_cus_from_index)
8720 (create_signatured_type_table_from_index, dw2_get_file_names)
8721 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8722 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8723 (create_debug_types_hash_table, process_psymtab_comp_unit)
8724 (load_partial_comp_unit, create_all_comp_units)
8725 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8726 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8727 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8728 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8729 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8730 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8731 (find_partial_die, read_attribute_value, lookup_die_type)
8732 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8733 (is_ref_attr): New function comment.
8734 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8735 Use cu_offset and sect_offset.
8736 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8737 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8738 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8739 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8740 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8741 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8742 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8745 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8748 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8749 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8751 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8753 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8755 * NEWS: Describe new options --init-command=FILE, -ix and
8756 --init-eval-command=COMMAND, -iex.
8757 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8758 CMDARG_INIT_COMMAND.
8759 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8760 "init-command", "init-eval-command", "ix" and "iex" to the variable
8761 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8762 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8763 (print_gdb_help): Describe --init-command=FILE, -ix and
8764 --init-eval-command=COMMAND, -iex.
8766 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8769 * main.c (struct cmdarg): Move it here from main. Add more comments.
8770 (cmdarg_s, VEC (cmdarg_s)): New.
8771 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8772 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8773 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8774 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8777 2012-03-19 Tom Tromey <tromey@redhat.com>
8779 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8781 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8784 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8787 2012-03-16 Chris January <chris.january@allinea.com>
8789 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8792 2012-03-16 Chris January <chris.january@allinea.com>
8794 * source.c (add_path): Use memmove instead of strcpy because the
8797 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8799 * value.h (set_value_parent): Add declaration.
8800 * value.c (set_value_parent): New function.
8801 (value_address): If VALUE->PARENT is not NULL, then use it as
8802 the base address instead of VALUE->LOCATION.address.
8803 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8804 the same as OBJ's address. Adjust V's offset accordingly.
8807 2012-03-16 Gary Benson <gbenson@redhat.com>
8809 PR breakpoints/10738
8810 * dwarf2read.c (use_deprecated_index_sections): New global.
8811 (struct partial_die_info): New member may_be_inlined.
8812 (read_partial_die): Set may_be_inlined where appropriate.
8813 (add_partial_subprogram): Add partial symbols for partial
8814 DIEs that may be inlined.
8815 (new_symbol_full): Add inlined subroutines to the current
8817 (write_psymtabs_to_index): Bump version number.
8818 (dwarf2_read_index): Read only version 6 indices unless
8819 use_deprecated_index_sections is set.
8820 * linespec.c (symbol_and_data_callback): New structure.
8821 (iterate_inline_only): New function.
8822 (iterate_over_all_matching_symtabs): New argument
8823 "include_inline". If nonzero, also call the callback for
8824 symbols representing inlined subroutines.
8825 (lookup_prefix_sym): Pass extra argument to the above.
8826 (find_function_symbols): Likewise.
8827 (add_matching_symbols_to_info): Likewise.
8828 * NEWS: Mention that GDB can now set breakpoints on inlined
8831 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8833 * p-typeprint.c (pascal_type_print_method_args):
8834 Fix display of parameter of methods.
8836 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8838 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8839 Add missing prototype.
8841 2012-03-16 Yao Qi <yao@codesourcery.com>
8842 Jan Kratochvil <jan.kratochvil@redhat.com>
8844 Fix false compilation warning.
8845 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8847 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8848 Pedro Alves <pedro@codesourcery.com>
8850 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8851 (arm_register_g_packet_guesses): New function.
8852 (arm_gdbarch_init): Don't force a target description with
8853 registers when the executable is detected as M-profile. Instead
8854 set gdbarch->tdep->is_m. Register `g' packet guesses.
8855 (_initialize_arm_tdep): Initialize the new target description.
8856 * features/arm-with-m-fpa-layout.xml: New description.
8857 * features/arm-with-m-fpa-layout.c: New, generated.
8859 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8861 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8862 Update function description.
8863 (insert_bp_location): Do not wipe bl->target_info out.
8864 * mem-break.c: #include "gdb_string.h".
8865 (default_memory_insert_breakpoint): Do not call target_read_memory
8866 with a pointer to the breakpoint's shadow_contents buffer. Use
8867 a local buffer instead.
8868 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8870 2012-03-15 Tom Tromey <tromey@redhat.com>
8872 * NEWS: Mention "info vtbl", not "info vtable".
8873 * cp-support.c (info_vtbl_command): Fix comment.
8874 (_initialize_cp_support): Fix text.
8876 2012-03-15 Tom Tromey <tromey@redhat.com>
8878 * cp-valprint.c (cp_print_value_fields): Use
8879 print_function_pointer_address for vtable slot.
8881 2012-03-15 Tom Tromey <tromey@redhat.com>
8883 * gnu-v3-abi.c (struct value_and_voffset): New.
8884 (hash_value_and_voffset, eq_value_and_voffset)
8885 (compare_value_and_voffset, compute_vtable_size)
8886 (print_one_vtable, gnuv3_print_vtable): New functions.
8887 (init_gnuv3_ops): Initialize 'print_vtable' field.
8888 * cp-support.c (info_vtbl_command): New function.
8889 (_initialize_cp_support): Add "info vtbl".
8890 * cp-abi.h (cplus_print_vtable): Declare.
8891 (struct cp_abi_ops) <print_vtable>: New field.
8892 * cp-abi.c (cplus_print_vtable): New function.
8895 2012-03-15 Tom Tromey <tromey@redhat.com>
8897 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8898 iterate_over_symbols.
8900 2012-03-14 Doug Evans <dje@google.com>
8902 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8903 DW_OP_GNU_parameter_ref.
8905 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8907 Fix double prompt of 'interpreter-exec mi'.
8908 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8909 (mi_interpreter_resume): use it.
8910 (mi_execute_command_input_handler): New function.
8911 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8912 mi_execute_command_input_handler.
8914 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8916 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8918 (darwin_debug_port_info): Make static.
8919 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8920 * machoread.c (_initialize_machoread): Add prototype.
8921 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8922 (i386_darwin_set_control, i386_darwin_get_control)
8923 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8924 i386_darwin_get_status, i386_darwin_get_control):
8925 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8927 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8929 * ax-gdb.c (gen_usual_unary): Remove special handling of
8930 enum and bool types.
8932 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8934 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8936 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8938 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8940 2012-03-13 Chris January <chris.january@allinea.com>
8942 * aix-thread.c (fill_sprs): Store the floating point registers
8943 at the correct offsets into vals.
8945 2012-03-13 Doug Evans <dje@google.com>
8947 * NEWS: Mention symbol-reloading has been deleted.
8948 * symfile.c (symbol_reloading): Delete.
8949 (show_symbol_reloading): Delete.
8950 (_initialize_symfile): Delete set/show symbol-reloading.
8952 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8953 read_in_chain until we have successfully read it in.
8954 (load_full_comp_unit): Ditto.
8955 (read_signatured_type): Add comment.
8957 2012-03-13 Chris January <chris.january@allinea.com>
8959 * stabsread.c (fix_common_block): Change type of valu argument
8962 2012-03-13 Chris January <chris.january@allinea.com>
8964 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8967 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8969 * common/linux-procfs.c (linux_proc_get_int): New, from
8970 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8972 (linux_proc_get_tgid): Only call linux_proc_get_int.
8973 (linux_proc_get_tracerpid): New.
8974 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8975 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8976 linux_proc_pid_has_state.
8977 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8978 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8979 (linux_ptrace_attach_warnings): New.
8980 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8982 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8983 (linux_nat_attach): New variables ex, buffer, message and message_s.
8984 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8986 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8988 * Makefile.in (linux-ptrace.o): New.
8989 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8991 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8992 * common/linux-ptrace.c: New file.
8993 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8994 * config/arm/linux.mh: Likewise.
8995 * config/i386/linux.mh: Likewise.
8996 * config/i386/linux64.mh: Likewise.
8997 * config/ia64/linux.mh: Likewise.
8998 * config/m32r/linux.mh: Likewise.
8999 * config/m68k/linux.mh: Likewise.
9000 * config/mips/linux.mh: Likewise.
9001 * config/pa/linux.mh: Likewise.
9002 * config/powerpc/linux.mh: Likewise.
9003 * config/powerpc/ppc64-linux.mh: Likewise.
9004 * config/powerpc/spu-linux.mh: Likewise.
9005 * config/s390/s390.mh: Likewise.
9006 * config/sparc/linux.mh: Likewise.
9007 * config/sparc/linux64.mh: Likewise.
9008 * config/xtensa/linux.mh: Likewise.
9009 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9010 common/linux-procfs.c.
9011 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9013 2012-03-13 Hui Zhu <teawater@gmail.com>
9014 Pedro Alves <palves@redhat.com>
9016 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9017 CREATE_BREAKPOINT_FLAGS_INSERTED.
9018 (create_breakpoint_sal, create_breakpoints_sal)
9019 (base_breakpoint_create_breakpoints_sal)
9020 (tracepoint_create_breakpoints_sal)
9021 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9023 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9024 (ftrace_command, strace_command): Adjust.
9025 (create_tracepoint_from_upload): Pass
9026 CREATE_BREAKPOINT_FLAGS_INSERTED.
9027 * breakpoint.h (enum breakpoint_create_flags): New.
9028 (create_breakpoint): New flags parameter.
9029 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9030 * python/py-breakpoint.c (bppy_init): Adjust.
9031 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9032 * spu-tdep.c (spu_catch_start): Adjust.
9034 2012-03-13 Pedro Alves <palves@redhat.com>
9035 Hui Zhu <teawater@gmail.com>
9036 Yao Qi <yao@codesourcery.com>
9038 * remote.c (struct remote_state): New field `starting_up'.
9039 (remote_start_remote): Set and clear it.
9040 (remote_can_download_tracepoint): If starting up, return false.
9042 2012-03-13 Yao Qi <yao@codesourcery.com>
9044 * inferior.h (struct inferior): Remove fields any_syscall_count,
9045 syscalls_counts and total_syscalls_count. Move them to new
9046 struct catch_syscall_inferior_data in breakpoint.c.
9047 * breakpoint.c: Call DEF_VEC_I(int).
9048 (struct catch_syscall_inferior_data): New.
9049 (get_catch_syscall_inferior_data): New.
9050 (catch_syscall_inferior_data_cleanup): New.
9051 (insert_catch_syscall): Update to access data in
9052 struct catch_syscall_inferior_data.
9053 (insert_catch_syscall): Likewise.
9054 (remove_catch_syscall): Likewise.
9055 (remove_catch_syscall): Likewise.
9056 (is_syscall_catchpoint_enabled): Likewise.
9057 (add_catch_command): Likewise.
9058 (_initialize_breakpoint): Register cleanup.
9059 * breakpoint.h: Removed DEF_VEC_I(int).
9060 * dwarf2loc.c: Call DEF_VEC_I(int).
9061 * mi/mi-main.c: Likewise.
9063 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9065 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9067 2012-03-12 Chris January <chris.january@allinea.com>
9069 * aix-thread.c (_initialize_aix_thread): Add prototype.
9070 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9071 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9073 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9075 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9076 include of "amd64-nat.h".
9078 2012-03-12 Tom Tromey <tromey@redhat.com>
9080 * buildsym.c (record_pending_block): Now static.
9081 * buildsym.h: (record_pending_block): Remove.
9083 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9085 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9087 2012-03-09 Tom Tromey <tromey@redhat.com>
9089 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9090 producer_is_gxx_lt_4_6>: New fields.
9091 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9093 2012-03-09 Tom Tromey <tromey@redhat.com>
9095 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9097 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9099 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9102 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9104 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9106 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9108 Fix -Wmissing-prototypes build.
9109 * arm-linux-nat.c (get_thread_id): Make it static.
9110 * xtensa-linux-nat.c (get_thread_id): Likewise.
9112 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9114 * server.c (process_point_options): If a conditional expression
9115 is found, only print a message if remote_debug is nonzero.
9117 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9119 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9120 of internal error for unknown/unsupported types.
9122 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9124 Fix CU relative vs. absolute DIE offsets.
9125 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9126 offset to offset_in_cu.
9127 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9129 (dwarf2_fetch_die_location_block): Rename parameter offset to
9130 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9132 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9134 * libunwind-frame.c: Rename to ...
9135 * ia64-libunwind-tdep.c: ... here.
9136 * libunwind-frame.h: Rename to ...
9137 * ia64-libunwind-tdep.h: ... here.
9138 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9139 ia64-libunwind-tdep.h.
9140 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9141 * README (--with-libunwind): Rename to ...
9142 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9143 * config.in: Regenerate.
9144 * configure: Regenerate.
9145 * configure.ac: New option --with-libunwind-ia64, make the
9146 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9147 Remove AC_DEFINE for HAVE_LIBUNWIND.
9148 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9149 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9150 Rename libunwind-frame in the general comment.
9151 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9152 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9153 Move forward declarations inside #ifndef. Rename libunwind-frame in
9154 the general comment.
9155 * ia64-tdep.c: Rename libunwind-frame.h #include to
9156 ia64-libunwind-tdep.h.
9157 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9158 (ia64_libunwind_descr): Rename libunwind-frame to
9159 ia64-libunwind-tdep in these function comments.
9160 * ia64-tdep.h: Rename libunwind-frame.h #include to
9161 ia64-libunwind-tdep.h.
9162 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9163 ia64-libunwind-tdep in that data comment.
9165 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9167 * libunwind-frame.h (struct frame_unwind): New declaration.
9169 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9171 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9172 "set breakpoint condition-evaluation" command.
9174 2012-03-08 Tristan Gingold <gingold@adacore.com>
9176 * sparc-stub.c: Move to stubs/
9177 * sh-stub.c: Likewise.
9178 * m68k-stub.c: Likewise.
9179 * m32r-stub.c: Likewise.
9180 * i386-stub.c: Likewise.
9182 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9184 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9185 linux_get_siginfo_type.
9187 * m68klinux-nat.c: Include "gdb_proc_service.h".
9188 (PTRACE_GET_THREAD_AREA): Define.
9189 (ps_get_thread_area): New function.
9191 2012-03-08 Yao Qi <yao@codesourcery.com>
9193 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9195 (remote_query_attached): Likewise.
9196 (remote_static_tracepoint_marker_at): Likewise.
9197 (remote_set_permissions): Likewise.
9198 (remote_detach_1, extended_remote_attach_1): Likewise.
9199 (send_g_packet, remote_vkill): Likewise.
9200 (extended_remote_disable_randomization): Likewise.
9201 (remote_add_target_side_condition): Likewise.
9202 (remote_insert_breakpoint): Likewise.
9203 (remote_remove_breakpoint): Likewise.
9204 (remote_insert_watchpoint): Likewise.
9205 (remote_remove_watchpoint): Likewise.
9206 (remote_insert_hw_breakpoint): Likewise.
9207 (remote_insert_hw_breakpoint): Likewise.
9208 (remote_remove_hw_breakpoint): Likewise.
9209 (remote_download_command_source): Likewise.
9210 (remote_download_tracepoint): Likewise.
9211 (remote_download_trace_state_variable): Likewise.
9212 (remote_disable_tracepoint): Likewise.
9213 (remote_trace_set_readonly_regions): Likewise.
9214 (remote_get_tracepoint_status): Likewise.
9215 (remote_trace_find): Likewise.
9216 (remote_get_trace_state_variable_value): Likewise.
9217 (remote_set_disconnected_tracing): Likewise.
9218 (remote_set_circular_trace_buffer): Likewise.
9219 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9220 (remote_use_agent): Likewise.
9221 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9224 2012-03-07 Pedro Alves <palves@redhat.com>
9226 * NEWS: Mention QProgramSignals.
9227 * inferior.h (update_signals_program_target): Declare.
9228 * infrun.c: (update_signals_program_target): New.
9229 (handle_command): Update the target of the new program signals
9231 * remote.c (PACKET_QProgramSignals): New enum.
9232 (last_program_signals_packet): New global.
9233 (remote_program_signals): New.
9234 (remote_start_remote): Update the target with the program signals
9236 (remote_protocol_features): Add entry for QPassSignals.
9237 (remote_open_1): Free anc clear last_program_signals_packet.
9238 (init_remote_ops): Install remote_program_signals.
9239 * target.c (update_current_target): Adjust.
9240 (target_program_signals): New.
9241 * target.h (struct target_ops) <to_program_signals>: New field.
9242 (target_program_signals): Declare.
9244 2012-03-07 Pedro Alves <palves@redhat.com>
9246 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9249 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9251 * m68klinux-nat.c (getregs_supplies): Make static.
9252 (getfpregs_supplies): Likewise.
9253 (have_ptrace_getregs): Likewise.
9255 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9257 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9258 in call to get_die_type_at_offset.
9260 2012-03-06 Stan Shebs <stan@codesourcery.com>
9262 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9263 * mi/mi-cmd-disas.c: Ditto.
9264 * mi/mi-cmd-env.c: Ditto.
9265 * mi/mi-cmd-file.c: Ditto.
9266 * mi/mi-cmd-stack.c: Ditto.
9267 * mi/mi-cmd-target.c: Ditto.
9268 * mi/mi-cmd-var.c: Ditto.
9269 * mi/mi-cmds.c: Ditto.
9270 * mi/mi-cmds.h: Ditto.
9271 * mi/mi-console.c: Ditto.
9272 * mi/mi-getopt.c: Ditto.
9273 * mi/mi-getopt.h: Ditto.
9274 * mi/mi-interp.c: Ditto.
9275 * mi/mi-main.c: Ditto.
9276 * mi/mi-out.c: Ditto.
9277 * mi/mi-parse.c: Ditto.
9278 * mi/mi-parse.h: Ditto.
9279 * mi/mi-symbol-cmds.c: Ditto.
9281 * mi/mi-getopt.h: Move mi_opt struct up.
9282 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9284 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9286 2012-03-06 Tom Tromey <tromey@redhat.com>
9288 * proc-service.c (ps_pglobal_lookup): Set the current program
9291 2012-03-06 Pedro Alves <palves@redhat.com>
9293 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9295 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9297 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9299 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9302 * common/linux-osdata.c (linux_common_core_of_thread): New function
9304 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9305 call by linux_common_core_of_thread.
9306 (linux_nat_core_of_thread_1): Remove.
9307 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9308 * linux-thread-db.c: Include linux-osdata.h.
9309 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9310 linux_common_core_of_thread.
9312 2012-03-05 Tom Tromey <tromey@redhat.com>
9314 * value.c (value_primitive_field): Don't fetch contents for
9317 2012-03-05 Tom Tromey <tromey@redhat.com>
9319 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9321 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9323 * s390-nat.c: Include "gregset.h".
9325 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9327 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9328 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9329 (libunwind_load): New variable so_error, use it for dlerror. Try to
9330 load also LIBUNWIND_SO_7.
9332 2012-03-05 Pedro Alves <palves@redhat.com>
9334 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9335 is not NULL, and remove resulting dead code.
9337 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9339 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9340 prologue to sh_analyze_prologue.
9341 (sh_analyze_prologue): Make better use of such an upper limit, and
9342 generally be more cautious about accessing memory.
9344 2012-03-05 Tom Tromey <tromey@redhat.com>
9346 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9347 _initialize_ia64_hpux_tdep.
9349 2012-03-05 Pedro Alves <palves@redhat.com>
9353 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9354 the register state is clear, supply explicit zero, instead of
9355 marking the register unavailable.
9357 2012-03-05 Tristan Gingold <gingold@adacore.com>
9359 * NEWS: Mention OpenVMS ia64 new target.
9361 2012-03-05 Tristan Gingold <gingold@adacore.com>
9363 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9364 (ia64_unw_accessors, ia64_unw_rse_accessors)
9365 (ia64_libunwind_descr): Declare.
9366 * ia64-vms-tdep.c: New file.
9367 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9368 (ia64_libunwind_descr): Make them public.
9369 * configure.tgt: Add ia64-*-*vms*.
9370 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9371 (ALLDEPFILES): Add ia64-vms-tdep.c
9373 2012-03-05 Tristan Gingold <gingold@adacore.com>
9375 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9376 * remote.c (PACKET_qXfer_uib): New enum value.
9377 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9378 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9379 (_initialize_remote): Call add_packet_config_cmd for
9382 2012-03-05 Tristan Gingold <gingold@adacore.com>
9384 * osabi.c (gdb_osabi_names): Add OpenVMS.
9385 (generic_elf_osabi_sniffer): Likewise.
9386 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9388 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9390 Removed unused code.
9391 * libunwind-frame.c (libunwind_frame_unwind)
9392 (libunwind_frame_base_address): Remove.
9393 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9395 2012-03-04 Yao Qi <yao@codesourcery.com>
9397 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9398 remove trailing new line.
9399 (agent_run_command, agent_run_command): Add _ markup.
9400 (agent_capability_check): Likewise.
9402 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9404 * breakpoint.c (set_condition_evaluation_mode): Set
9405 CONDITION_EVALUATION_MODE unconditionally.
9407 2012-03-03 Yao Qi <yao@codesourcery.com>
9409 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9410 * common/agent.h: Update declaration.
9411 * inf-child.c (inf_child_use_agent): New.
9412 (inf_child_can_use_agent): New.
9413 (inf_child_target): Initialize fields `to_use_agent'
9414 and `to_can_use_agent'.
9415 * agent.c (agent_new_objfile): New.
9416 (_initialize_agent): Add agent_new_objfile to new_objfile
9419 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9421 (linux_target_install_ops): Initialize field
9422 `to_static_tracepoint_markers_by_strid'.
9423 * remote.c (free_current_marker): Move it to ...
9424 * tracepoint.c (free_current_marker): ... here. New.
9425 (cleanup_target_stop): New.
9426 * tracepoint.h: Declare free_current_marker.
9427 * NEWS: Add one entry about `info static-tracepoint-marker'.
9429 2012-03-03 Yao Qi <yao@codesourcery.com>
9431 * common/agent.c (agent_loaded_p): New.
9432 (agent_look_up_symbols): New global.
9433 * common/agent.h: Declare agent_loaded_p.
9435 2012-03-03 Yao Qi <yao@codesourcery.com>
9437 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9438 (agent_capability_check, agent_capability_invalidate): New.
9439 (symbol_list): New array element.
9440 * common/agent.h (enum agent_capa): New.
9441 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9443 2012-03-03 Yao Qi <yao@codesourcery.com>
9445 * target.h (struct target_ops) <to_use_agent>: New field.
9446 (struct target_ops) <to_can_use_agent>: New field.
9447 (target_use_agent, target_can_use_agent): New macro.
9448 * target.c (update_current_target): Update.
9449 * remote.c: New enum `PACKET_QAgent'.
9450 (remote_protocol_features): Add a new element.
9451 (remote_use_agent, remote_can_use_agent): New.
9452 (init_remote_ops): Initialize field `can_use_agent' with
9453 remote_can_use_agent. Intiailize field `use_agent' with
9455 * common/agent.c (use_agent): New global.
9456 * common/agent.h: Declare it.
9457 * tracepoint.c (info_static_tracepoint_markers_command): Add
9459 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9460 (COMMON_OBS): Add common/agent.o and agent.o
9461 (common-agent.o): New rule.
9464 2012-03-03 Yao Qi <yao@codesourcery.com>
9466 * common/agent.c: New.
9467 * common/agent.h: New.
9468 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9470 * configure, configh.in: Regenerated.
9472 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9474 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9475 unless it exists for this architecture.
9477 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9479 * language.h (struct language_defn): New "method" la_read_var_value.
9480 * findvar.c: #include "language.h".
9481 (default_read_var_value): Renames read_var_value. Rewrite
9482 function description.
9483 (read_var_value): New function.
9484 * value.h (default_read_var_value): Add prototype.
9485 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9487 (ada_language_defn): Add entry for la_read_var_value.
9488 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9489 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9490 language_defn structures to add entry for new la_read_var_value
9493 2012-03-02 Tom Tromey <tromey@redhat.com>
9494 Pedro Alves <palves@redhat.com>
9496 PR breakpoints/13776:
9497 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9499 (delete_longjmp_breakpoint_at_next_stop): New.
9500 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9501 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9502 before deleting the inferior. Add comments.
9503 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9504 breakpoints immediately, but only on next stop. Move that code
9505 next to where we mark other breakpoints for deletion.
9507 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9509 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9511 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9514 2012-03-02 Pedro Alves <palves@redhat.com>
9516 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9518 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9520 Fix -Wmissing-prototypes build.
9521 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9522 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9523 (gdbsim_has_memory): Likewise.
9525 2012-03-02 Yao Qi <yao@codesourcery.com>
9527 Fix -Wmissing-prototypes build.
9528 * charset.c (phony_iconv_open): Make static.
9529 (phony_iconv_close, phony_iconv): Likewise.
9530 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9531 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9533 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9534 * ser-mingw.c (create_select_thread): Make static.
9535 * windows-termcap.c (tgetent): New prototype.
9536 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9538 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9540 Fix -Wmissing-prototypes build.
9541 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9542 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9543 (_initialize_loadable): New prototypes.
9545 2012-03-02 Doug Evans <dje@google.com>
9547 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9548 abbrev table, read_comp_unit will do it.
9550 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9552 Fix -Wmissing-prototypes build.
9553 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9554 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9555 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9556 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9557 (_initialize_arm_symbian_tdep): New prototype.
9558 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9559 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9560 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9562 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9563 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9565 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9566 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9567 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9569 * moxie-tdep.c (moxie_process_record): Likewise.
9570 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9571 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9572 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9573 (_initialize_rl78_tdep): New prototype.
9574 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9575 (_initialize_rx_tdep): New prototype.
9576 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9577 (_initialize_darwin_solib): New prototype.
9578 * solib-spu.c: Include solib-spu.h.
9579 (_initialize_spu_solib): New prototype.
9580 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9581 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9582 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9583 (tic6x_software_single_step): Make it static.
9584 (_initialize_tic6x_tdep): New prototype.
9586 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9588 Fix -Wmissing-prototypes build.
9589 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9590 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9592 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9594 Fix -Wmissing-prototypes build.
9595 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9596 (frv_have_stopped_data_address): Remove.
9598 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9600 Fix -Wmissing-prototypes build.
9601 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9602 * sh-tdep.c: Include sh64-tdep.h.
9603 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9604 * sh64-tdep.c: Include sh64-tdep.h.
9605 * sh64-tdep.h: New file.
9607 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9609 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9611 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9613 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9614 sp_regnum once the gdbarch_init_osabi hook has been called.
9616 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9618 * mips-tdep.c (mips32_bc1_pc): New function.
9619 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9620 BPOSGE32 and BPOSGE64 instructions.
9621 (deal_with_atomic_sequence): Likewise.
9622 (mips32_instruction_has_delay_slot): Likewise.
9624 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9625 Chris Dearman <chris@mips.com>
9626 Maciej W. Rozycki <macro@codesourcery.com>
9627 Joseph Myers <joseph@codesourcery.com>
9629 * features/mips-dsp.xml: New file.
9630 * features/mips64-dsp.xml: New file.
9631 * features/mips-dsp-linux.xml: New file.
9632 * features/mips64-dsp-linux.xml: New file.
9633 * features/Makefile (WHICH): Add mips-dsp-linux and
9635 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9636 * features/mips-dsp-linux.c: New file.
9637 * features/mips64-dsp-linux.c: New file.
9638 * regformats/mips-dsp-linux.dat: New file.
9639 * regformats/mips64-dsp-linux.dat: New file.
9640 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9642 (mips64_linux_register_addr): Likewise.
9643 (mips64_linux_regsets_fetch_registers): Likewise.
9644 (mips64_linux_regsets_store_registers): Likewise.
9645 (mips64_linux_fetch_registers): Update call to
9646 mips64_linux_regsets_fetch_registers.
9647 (mips64_linux_store_registers): Update call to
9648 mips64_linux_regsets_store_registers.
9649 (mips_linux_read_description): Probe for DSP registers.
9650 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9651 and initialize_tdesc_mips64_dsp_linux.
9652 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9653 Remove padding of no longer used embedded register slots.
9654 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9655 (MIPS_RESTART_REGNUM): Redefine enum value.
9656 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9658 (mips_tx39_reg_names): Likewise.
9659 (mips_linux_reg_names): New array of register names for Linux
9661 (mips_register_name): Check for a null pointer in
9662 mips_processor_reg_names and return an empty string.
9663 (mips_register_type): Exclude embedded registers for the IRIX
9665 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9666 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9668 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9669 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9670 (mips_gdbarch_init): Likewise. Initialize internal register
9671 indices for the Linux ABI. Use dynamic numbers to refer to
9672 registers, as applicable, while parsing the target description.
9673 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9675 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9677 * frame.h (read_frame_register_unsigned): Fix typo in function
9680 2012-03-01 Pedro Alves <palves@redhat.com>
9682 * jit-reader.in [!__cplusplus]
9683 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9685 2012-03-01 Pedro Alves <palves@redhat.com>
9687 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9688 * configure: Regenerate.
9690 2012-03-01 Pedro Alves <palves@redhat.com>
9692 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9693 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9694 (ftrace_command, strace_command): Make static.
9695 * d-lang.c (_initialize_d_language): Declare.
9696 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9697 * dwarf2loc.c (_initialize_dwarf2loc):
9698 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9699 * exec.c (exec_get_section_table): Make static.
9700 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9701 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9702 * inferior.c (remove_inferior_command, add_inferior_command)
9703 (clone_inferior_command): Make static.
9704 * linux-nat.c (linux_nat_thread_address_space)
9705 (linux_nat_core_of_thread): Make static.
9706 * linux-tdep.c (_initialize_linux_tdep): Declare.
9707 * objc-lang.c (_initialize_objc_lang): Declare.
9708 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9710 (_initialize_opencl_language): Declare.
9711 * record.c (_initialize_record): Declare.
9712 * remote.c (demand_private_info, remote_get_tib_address)
9713 (remote_supports_cond_tracepoints)
9714 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9716 * skip.c (_initialize_step_skip): Declare.
9717 * symtab.c (skip_prologue_using_lineinfo): Make static.
9718 * tracepoint.c (delete_trace_state_variable)
9719 (trace_variable_command, delete_trace_variable_command)
9720 (get_uploaded_tsv, find_matching_tracepoint_location)
9721 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9723 * value.c (pack_unsigned_long): Make static.
9724 * varobj.c (varobj_ensure_python_env): Make static.
9725 * windows-tdep.c (_initialize_windows_tdep): Declare.
9726 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9728 2012-03-01 Pedro Alves <palves@redhat.com>
9730 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9732 (linux_init_abi): Install it as has_shared_address_space gdbarch
9735 2012-03-01 Pedro Alves <palves@redhat.com>
9737 * observer.c (observer_test_first_notification_function)
9738 (observer_test_second_notification_function)
9739 (observer_test_third_notification_function): Add declarations.
9741 2012-03-01 Pedro Alves <palves@redhat.com>
9743 * common/signals.c (default_target_signal_to_host)
9744 (default_target_signal_from_host): Move ...
9745 * arch-utils.c: ... here.
9746 * arch-utils.h (default_target_signal_to_host)
9747 (default_target_signal_from_host): Declare.
9749 * common/signals.c (target_signal_from_command): Move ...
9750 * infrun.c: ... here.
9751 * inferior.h (target_signal_from_command): Declare.
9752 * target.h (target_signal_from_command)
9753 (default_target_signal_from_host, default_target_signal_to_host):
9754 Delete declarations.
9756 * common/signals.c (_initialize_signals): Delete.
9758 2012-03-01 Pedro Alves <palves@redhat.com>
9760 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9761 both __cplusplus and !__cplusplus.
9763 2012-03-01 Pedro Alves <palves@redhat.com>
9765 * psymtab.c (find_and_open_source): Delete declaration.
9766 * source.c (find_and_open_source): Move comment ...
9767 * source.h (find_and_open_source): ... to this new declaration.
9769 2012-03-01 Pedro Alves <palves@redhat.com>
9771 * inline-frame.c: Include inline-frame.h.
9773 2012-03-01 Pedro Alves <palves@redhat.com>
9775 * tui/tui-data.c (set_gen_win_origin): Delete.
9776 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9777 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9779 2012-03-01 Pedro Alves <palves@redhat.com>
9781 * remote.c (encode_actions): Delete declaration.
9782 * tracepoint.c (encode_actions): Make extern.
9783 * tracepoint.h (encode_actions): Declare.
9785 2012-03-01 Pedro Alves <palves@redhat.com>
9787 * python/py-breakpoint.c: Include python.h.
9788 * python/py-continueevent.c (create_continue_event_object): Make
9790 * python/py-lazy-string.c (stpy_get_type): Make static.
9791 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9793 * python/py-utils.c (unicode_to_target_python_string): Make
9795 * python/py-value.c: Include python.h.
9797 2012-03-01 Pedro Alves <palves@redhat.com>
9799 * inferior.c (delete_threads_of_inferior): Delete.
9801 2012-03-01 Pedro Alves <palves@redhat.com>
9803 Import fallback definitions from glibc.
9805 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9806 ps_prochandle): Forward declare.
9807 (ps_err_e): Use glibc's comments.
9808 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9809 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9810 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9811 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9812 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9813 (struct ps_prochandle): Adjust comment.
9815 2012-03-01 Pedro Alves <palves@redhat.com>
9817 * ada-lang.c (ada_modulus_from_name): Delete.
9818 * ada-lex.l (lexer_init): Make static.
9820 2012-03-01 Pedro Alves <palves@redhat.com>
9824 * frame.c (read_frame_register_unsigned): New.
9825 * frame.h (read_frame_register_unsigned): Declare.
9826 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9828 (print_i387_control_word): New parameter `control_p'. Handle it.
9829 (i387_print_float_info): Handle unavailable float registers.
9831 2012-03-01 Keith Seitz <keiths@redhat.com>
9833 * linespec.c (decode_line_2): Sort the list of methods
9834 alphabetically before presenting the user with a selection
9837 2012-03-01 Doug Evans <dje@google.com>
9839 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9841 (dwarf2_read_abbrevs): Remove corresponding initialization.
9843 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9845 * NEWS: Mention new python command class gdb.COMMAND_USER.
9846 * cli/cli-cmds.c (show_user): Print error when used on a python
9848 (init_cli_cmds): Update documentation strings for "show user" and
9849 "set/show max-user-call-depth" to clarify that it does not apply to
9851 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9853 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9855 * top.c (execute_command): Only execute a user-defined command as a
9856 legacy macro if c->user_commands is set.
9858 2012-03-01 Tom Tromey <tromey@redhat.com>
9860 * valprint.h (struct generic_val_print_decorations): New.
9861 (generic_val_print): Declare.
9862 * valprint.c (generic_val_print): New function.
9863 * p-valprint.c (p_decorations): New global.
9864 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9865 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9866 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9867 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9868 * m2-valprint.c (m2_decorations): New global.
9869 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9870 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9871 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9872 TYPE_CODE_ERROR>: Call generic_val_print.
9873 * f-valprint.c (f_decorations): New global.
9874 (f_val_print): Use print_function_pointer_address.
9875 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9876 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9877 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9879 * c-valprint.c (c_decorations): New global.
9880 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9881 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9882 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9883 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9884 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9885 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9888 2012-03-01 Tom Tromey <tromey@redhat.com>
9890 * valprint.c (val_print): Update.
9891 * p-valprint (pascal_val_print): Return void.
9892 * p-lang.h (pascal_val_print): Return void.
9893 * m2-valprint.c (m2_val_print): Return void.
9894 * m2-lang.h (m2_val_print): Return void.
9895 * language.h (struct language_defn) <la_val_print>: Return void.
9896 * language.c (unk_lang_val_print): Return void.
9897 * jv-valprint.c (java_val_print): Return void.
9898 * jv-lang.h (java_val_print): Return void.
9899 * f-valprint.c (f_val_print): Return void.
9900 * f-lang.h (f_val_print): Return void.
9901 * d-valprint.c (d_val_print): Return void.
9902 (dynamic_array_type): Update.
9903 * d-lang.h (d_val_print): Return void.
9904 * c-valprint.c (c_val_print): Return void.
9905 * c-lang.h (c_val_print): Return void.
9906 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9908 * ada-lang.h (ada_val_print): Return void.
9910 2012-03-01 Tom Tromey <tromey@redhat.com>
9912 * value.h (val_print): Return void.
9913 * valprint.c (val_print): Return void.
9915 2012-03-01 Tom Tromey <tromey@redhat.com>
9917 * value.h (common_val_print): Return void.
9918 * valprint.c (common_val_print): Return void.
9920 2012-03-01 Tom Tromey <tromey@redhat.com>
9922 * value.h (value_print): Return void.
9923 * valprint.c (value_print): Return void.
9924 * p-valprint.c (pascal_value_print): Return void.
9925 * p-lang.h (pascal_value_print): Return void.
9926 * language.h (struct language_defn) <la_value_print>: Return
9928 * language.c (unk_lang_value_print): Return void.
9929 * jv-valprint.c (java_value_print): Return void.
9930 * jv-lang.h (java_value_print): Return void.
9931 * f-valprint.c (c_value_print): Don't declare.
9933 * c-valprint.c (c_value_print): Return void.
9934 * c-lang.h (c_value_print): Return void.
9935 * ada-valprint.c (ada_value_print): Return void.
9936 * ada-lang.h (ada_value_print): Return void.
9938 2012-03-01 Tom Tromey <tromey@redhat.com>
9940 * value.c (value_primitive_field): Handle virtual base classes.
9942 2012-03-01 Tom Tromey <tromey@redhat.com>
9944 * gdbtypes.h (struct vbase): Remove.
9946 2012-03-01 Tom Tromey <tromey@redhat.com>
9948 * c-valprint.c (print_function_pointer_address): Move...
9949 * valprint.c: ... here. Make non-static.
9950 * m2-valprint.c (print_function_pointer_address): Remove.
9951 * valprint.h (print_function_pointer_address): Declare.
9953 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9955 * NEWS: Document the fact that one can provide a condition when
9956 creating an Ada exception catchpoint.
9958 2012-03-01 Tom Tromey <tromey@redhat.com>
9960 * valprint.c (val_print_type_code_flags): Fix placement of
9963 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9965 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9966 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9967 environment variable before calling update-copyright.
9969 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9971 * gnulib/extra/update-copyright: Update to the latest from
9972 gnulib's git repository.
9973 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9974 variable to 2 instead of 1.
9976 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9978 * varobj.c (c_value_of_variable): Remove dead code.
9980 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9982 * ada-lex.p (processId): Do not modify already encoded IDs.
9983 Update function documentation.
9985 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9987 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9988 "name" with "struct symbol *name_sym".
9989 * ada-exp.y (write_var_or_type): Update call to
9990 ada_find_renaming_symbol.
9991 "name" with "struct symbol *name_sym". Adjust Implementation
9992 accordingly. Adjust the function documentation.
9994 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9996 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9997 * ada-lang.c (ada_find_any_type): Add advance declaration.
9998 Make static. Replace ada_find_any_symbol by
9999 ada_find_any_type_symbol.
10000 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10001 Improve function description. Make static.
10002 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10003 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10005 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10007 * ada-lang.c (struct tag_args): Delete.
10008 (ada_get_tsd_type): Function body moved up in source file.
10009 (ada_tag_name_1, ada_tag_name_2): Delete.
10010 (ada_get_tsd_from_tag): New function.
10011 (ada_tag_name_from_tsd): New function.
10012 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10013 to determine the tag name.
10015 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10017 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10019 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10022 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10024 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10026 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10028 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10031 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10033 * ada-lang.c (constrained_packed_array_type): If there is a
10034 parallel XA type, use it to determine the array index type.
10036 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10038 * ada-valprint.c (ada_val_print_1): If our value is a reference
10039 to an array descriptor, dereference it before converting it
10042 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10044 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10045 creating fixed value.
10046 (ada_value_ind, ada_coerce_ref, assign_component)
10047 (ada_evaluate_subexp): Remove call to unwrap_value before
10048 call to ada_to_fixed_value.
10050 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10052 * ada-lang.c (to_fixed_array_type): Set result's type name.
10054 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10056 * ada-lang.c (catch_ada_exception_command_split): Add new
10057 argument cond_string. Add support for condition at end of
10058 "catch exception" commands.
10059 (ada_decode_exception_location): Add new argument cond_string.
10060 Update call to catch_ada_exception_command_split.
10061 (create_ada_exception_catchpoint): Add new argument cond_string.
10062 Set the breakpoint condition if needed.
10063 (catch_ada_exception_command): Update call to
10064 ada_decode_exception_location.
10065 (ada_decode_assert_location): Add function documentation.
10066 Add support for condition at end of "catch assert" command.
10067 (catch_assert_command): Update calls to ada_decode_assert_location
10068 and create_ada_exception_catchpoint.
10070 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10072 Fix disp-step-syscall.exp: fork: single step over fork.
10073 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10074 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10075 comment, change parameters gdbarch and ptid to regcache. Remove
10076 parameter regcache, initialize gdbarch from regcache here.
10077 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10079 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10081 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10082 'syscall'. Make the 'int' check more strict.
10084 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10086 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10087 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10088 (i386_linux_intx80_sysenter_syscall_record): ... here.
10089 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10090 Use the renamed function name.
10092 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10094 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10095 * breakpoint.c (until_break_command): Likewise.
10096 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10097 * infcall.c (call_function_by_hand): Likewise.
10098 * infcmd.c (finish_forward): Likewise.
10099 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10101 2012-02-28 Tristan Gingold <gingold@adacore.com>
10103 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10104 avoid variable assignments inside condition.
10106 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10108 Fix static analysis issue found by cppcheck.
10109 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10110 uninitialized BUF for size 2.
10112 2012-02-27 Chris Dearman <chris@mips.com>
10113 Nathan Froyd <froydnj@codesourcery.com>
10114 Maciej W. Rozycki <macro@codesourcery.com>
10116 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10117 (mips16_instruction_has_delay_slot): Likewise.
10118 (mips_segment_boundary): Likewise.
10119 (mips_adjust_breakpoint_address): Likewise.
10120 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10122 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10123 Maciej W. Rozycki <macro@codesourcery.com>
10125 * infrun.c (handle_inferior_event): Don't proceed through
10126 shared library trampolines if stepping at the machine
10129 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10131 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10134 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10136 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10137 (sh_stub_unwind_sniffer): New functions.
10138 (sh_stub_unwind): New variable.
10139 (sh_gdbarch_init): Wire everything.
10141 2012-02-27 Pedro Alves <palves@redhat.com>
10143 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10144 (linux_nat_post_attach_wait): Adjust to use
10145 linux_proc_pid_is_stopped.
10146 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10147 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10148 based on pid_is_stopped from both linux-nat.c and
10149 gdbserver/linux-low.c, and renamed.
10151 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10153 * remote.c (remote_watchpoint_addr_within_range): New function.
10154 (init_remote_ops): Use it.
10156 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10158 * target.h (target_watchpoint_addr_within_range): Document macro.
10160 2012-02-24 Pedro Alves <palves@redhat.com>
10162 * stack.c (set_last_displayed_sal): Issue internal_error instead
10163 of warning, and issue it after clearing the last displayed sal.
10165 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10166 Pedro Alves <palves@redhat.com>
10168 * breakpoint.c (until_break_command): Install breakpoints after
10169 all frame manipulations.
10171 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10173 * remote.c (remote_supports_cond_breakpoints): New forward
10175 (remote_add_target_side_condition): New function.
10176 (remote_insert_breakpoint): Add target-side breakpoint
10177 conditional if supported.
10178 (remote_insert_hw_breakpoint): Likewise.
10179 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10182 * target.c (update_current_target): Inherit
10183 to_supports_evaluation_of_breakpoint_conditions.
10184 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10186 * target.h (struct target_ops)
10187 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10188 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10190 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10191 (condition_evaluation_both, condition_evaluation_auto,
10192 condition_evaluation_host, condition_evaluation_target,
10193 condition_evaluation_enums, condition_evaluation_mode_1,
10194 condition_evaluation_mode): New static globals.
10195 (translate_condition_evaluation_mode): New function.
10196 (breakpoint_condition_evaluation_mode): New function.
10197 (gdb_evaluates_breakpoint_condition_p): New function.
10198 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10199 (mark_breakpoint_modified): New function.
10200 (mark_breakpoint_location_modified): New function.
10201 (set_condition_evaluation_mode): New function.
10202 (show_condition_evaluation_mode): New function.
10203 (bp_location_compare_addrs): New function.
10204 (get_first_location_gte_addr): New helper function.
10205 (set_breakpoint_condition): Free condition bytecode if locations
10206 has become unconditional. Call mark_breakpoint_modified (...).
10207 (condition_command): Call update_global_location_list (1) for
10209 (breakpoint_xfer_memory): Use is_breakpoint (...).
10210 (is_breakpoint): New function.
10211 (parse_cond_to_aexpr): New function.
10212 (build_target_condition_list): New function.
10213 (insert_bp_location): Handle target-side conditional
10214 breakpoints and call build_target_condition_list (...).
10215 (update_inserted_breakpoint_locations): New function.
10216 (insert_breakpoint_locations): Handle target-side conditional
10218 (bpstat_check_breakpoint_conditions): Add comment.
10219 (bp_condition_evaluator): New function.
10220 (bp_location_condition_evaluator): New function.
10221 (print_breakpoint_location): Print information on where the condition
10223 (print_one_breakpoint_location): Likewise.
10224 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10225 breakpoint location.
10226 (force_breakpoint_reinsertion): New functions.
10227 (update_global_location_list): Handle target-side breakpoint
10229 Reinsert locations that are already inserted if conditions have
10231 (bp_location_dtor): Free agent expression bytecode.
10232 (disable_breakpoint): Call mark_breakpoint_modified (...).
10233 Call update_global_location_list (...) with parameter 1 for breakpoints.
10234 (disable_command): Call mark_breakpoint_location_modified (...).
10235 Call update_global_location_list (...) with parameter 1 for breakpoints.
10236 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10237 (enable_command): mark_breakpoint_location_modified (...).
10238 (_initialize_breakpoint): Update documentation and add
10239 condition-evaluation breakpoint subcommand.
10241 * breakpoint.h: Include ax.h.
10242 (condition_list): New data structure.
10243 (condition_status): New enum.
10244 (bp_target_info) <cond_list>: New field.
10245 (bp_location) <condition_changed, cond_bytecode>: New fields.
10246 (is_breakpoint): New prototype.
10248 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10250 * remote.c (remote_state) <cond_breakpoints>: New field.
10251 (PACKET_ConditionalBreakpoints): New enum.
10252 (remote_cond_breakpoint_feature): New function.
10253 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10254 (remote_supports_cond_breakpoints): New function.
10255 (_initialize_remote): Add new packet configuration for
10256 target-side conditional breakpoints.
10258 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10260 * NEWS: Mention target-side conditional breakpoint support,
10261 new condition-evaluation breakpoint subcommand and remote
10264 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10266 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10269 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10271 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10272 (after_prologue): Remove.
10274 2012-02-23 Tom Tromey <tromey@redhat.com>
10276 * jv-valprint.c (java_val_print): Remove dead code.
10278 2012-02-23 Tristan Gingold <gingold@adacore.com>
10280 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10281 known_tasks_element and known_tasks_length fields.
10282 (read_known_tasks_array): Change argument type. Use pointer type
10283 and number of elements from DATA. Adjust.
10284 (read_known_tasks_list): Likewise.
10285 (get_known_tasks_addr): Remove.
10286 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10287 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10288 type and array length. Merge former get_known_tasks_addr code.
10290 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10293 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10294 it after set_momentary_breakpoint.
10296 2012-02-22 Sterling Augustine <saugustine@google.com>
10299 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10301 2012-02-22 Gary Benson <gbenson@redhat.com>
10303 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10304 (find_slot_in_mapped_hash): Likewise.
10306 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10309 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10310 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10311 * configure: Regenerate.
10313 2012-02-21 Tristan Gingold <gingold@adacore.com>
10314 Pedro Alves <palves@redhat.com>
10316 * ia64-tdep.c: Do not include libunwind-ia64.h.
10317 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10318 Include libunwind-ia64.h instead of libunwind.h.
10319 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10320 for libunwind.h existence.
10321 * configure, config.in: Regenerate.
10323 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10325 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10326 instead of value_rtti_target_type.
10327 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10328 instead of value_rtti_target_type.
10329 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10330 value_rtti_target_type.
10331 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10332 (value_rtti_target_type): Rename to ...
10333 (value_rtti_indirect_type): ... here and make it indirect. Update
10335 * value.c (readjust_indirect_value_type): New function.
10336 (coerce_ref): Support for enclosing type setting for references
10337 with readjust_indirect_value_type.
10338 * value.h (readjust_value_type): New declaration.
10339 (value_rtti_target_type): Rename to ...
10340 (value_rtti_indirect_type): ... here.
10342 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10344 * MAINTAINERS (Write After Approval): Add myself to the list.
10346 2012-02-20 Doug Evans <dje@google.com>
10348 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10349 Rename objfile_p_char parameter to objfilep.
10350 (build_objfile_section_table): Result is now void. All callers
10352 * objfiles.h (struct objfile): Tweak comments, whitespace.
10353 (build_objfile_section_table): Update.
10355 * elfread.c (elf_symfile_segments): Fix warning text.
10357 2012-02-20 Tom Tromey <tromey@redhat.com>
10360 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10361 particular set of file names once.
10362 (dw2_map_symbol_filenames): Likewise.
10364 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10367 * main.c (write_files): Remove the declaration.
10368 (external_editor_command): Move the declaration ...
10369 [GDBTK] (external_editor_command): ... here. Fix the comment.
10371 2012-02-20 Tom Tromey <tromey@redhat.com>
10373 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10376 2012-02-20 Tristan Gingold <gingold@adacore.com>
10378 * darwin-nat.h (enum darwin_msg_state): Add comments.
10380 2012-02-20 Tristan Gingold <gingold@adacore.com>
10382 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10385 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10387 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10388 between function description and implementation.
10390 2012-02-17 Tom Tromey <tromey@redhat.com>
10393 * python/py-event.c (event_object_getset): New global.
10394 (event_object_type): Reference it.
10395 * python/py-type.c (field_object_getset): New global.
10396 (field_object_type): Reference it.
10397 * python/python-internal.h (gdb_py_generic_dict): Declare.
10398 * python/py-utils.c (gdb_py_generic_dict): New function.
10400 2012-02-17 Tristan Gingold <gingold@adacore.com>
10402 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10404 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10406 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10407 TYPE_CALLING_CONVENTION annotation.
10409 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10411 * MAINTAINERS: Add rx to target ISA section.
10412 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10413 (ALLDEPFILES): Add rx-tdep.c.
10415 2012-02-16 Tom Tromey <tromey@redhat.com>
10417 * symfile.c (symbol_file_add_main_1): Use inferior's
10419 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10420 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10422 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10424 (follow_exec): Use inferior's symfile_flags.
10425 * inferior.h (struct inferior) <symfile_flags>: New field.
10427 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10430 * remote-sim.c (gdbsim_create_inferior): Call error() when
10431 sim_create_inferior() fails.
10433 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10435 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10437 2012-02-16 Tom Tromey <tromey@redhat.com>
10440 * thread.c (struct current_thread_cleanup) <was_removable>: New
10442 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10443 (make_cleanup_restore_current_thread): Initialize new field.
10445 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10447 * MAINTAINERS: Add rl78 to target ISA section.
10448 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10449 (ALLDEPFILES): Add rl78-tdep.c.
10450 * NEWS: Mention rl78 as a new target.
10452 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10454 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10456 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10458 2012-02-15 Tom Tromey <tromey@redhat.com>
10461 * infcmd.c (registers_info): Print just the current register's
10464 2012-02-15 Tom Tromey <tromey@redhat.com>
10466 * python/py-symbol.c (sympy_value): Use _().
10468 2012-02-15 Pedro Alves <palves@redhat.com>
10470 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10471 output to be like native targets'.
10472 (remote_pid_to_str): Special case the null ptid.
10474 2012-02-14 Stan Shebs <stan@codesourcery.com>
10476 * NEWS: Mention enable count command.
10477 * breakpoint.h (struct breakpoint): New field enable_count.
10478 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10479 (enable_breakpoint): Add arg to call.
10480 (struct disp_data): New struct.
10481 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10482 (do_map_enable_once_breakpoint): Create a struct and pass it.
10483 (do_map_enable_delete_breakpoint): Ditto.
10484 (do_map_enable_count_breakpoint): New function.
10485 (enable_count_command): New function.
10486 (bpstat_stop_status): Decrement enable_count.
10487 (print_one_breakpoint_location): Report enable count.
10488 (_initialize_breakpoint): Add enable count command.
10490 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10492 * rl78-tdep.c (reggroups.h): Include.
10493 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10494 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10495 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10496 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10497 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10498 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10499 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10500 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10501 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10502 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10503 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10504 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10505 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10506 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10507 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10508 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10509 beginning of register list.
10510 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10511 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10512 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10513 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10514 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10515 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10516 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10517 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10518 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10519 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10520 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10521 the pseudo registers. Rearrange other pseudo registers too so
10522 that the bank registers appear at the end.
10523 (rl78_register_type): Account for the fact that the byte sized
10524 bank registers are now pseudo-registers.
10525 (rl78_register_name): Rearrange the register name array. Make
10526 initial set of raw banked registers inaccessible.
10527 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10528 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10529 case for copying bytes back and forth between raw and pseudo
10530 versions of the banked registers. Update other cases to reflect
10532 (rl78_return_value): Update to account for changed names of
10534 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10535 rl78_register_sim_regno().
10537 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10539 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10540 the name parameter being passed to find_pc_partial_function().
10542 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10544 * MAINTAINERS: Step down from being ia64 target maintainer.
10546 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10548 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10549 compilation warning.
10551 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10553 Fix crash on loaded shlibs without loaded exec_bfd.
10554 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10555 (set_section_command): Replace exec_bfd by p->bfd.
10557 2012-02-10 Tom Tromey <tromey@redhat.com>
10559 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10560 when we have a C++ qualified name.
10562 2012-02-10 Pedro Alves <palves@redhat.com>
10564 * inferior.c (inferior_pid_to_str): New.
10565 (print_inferior, inferior_command): Use it.
10567 2012-02-10 Pedro Alves <palves@redhat.com>
10569 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10571 * configure: Regenerate.
10573 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10575 * linespec.c (decode_line_internal): Fix comment correctness.
10577 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10580 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10581 * amd64bsd-nat.c: Add support for debug registers (adapted from
10583 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10584 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10585 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10586 (amd64bsd_dr_get_control): New functions.
10587 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10588 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10589 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10590 watchpoints initialization.
10591 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10593 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10595 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10597 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10599 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10601 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10603 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10605 * language.h (symbol_name_cmp_ftype): Renames
10606 symbol_name_match_p_ftype.
10607 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10608 la_get_symbol_name_match_p.
10609 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10610 ada_get_symbol_name_match_p. Update comment.
10611 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10612 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10613 Renames symbol_name_match_p. Update field type.
10614 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10615 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10616 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10617 "la_get_symbol_name_cmp" in comments.
10618 * language.c: Likewise.
10620 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10622 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10624 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10625 (amd64_sol2_gregset32_reg_offs): Likewise.
10627 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10629 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10630 of the returned BFD is allocated by GDB.
10632 2012-02-07 Tom Tromey <tromey@redhat.com>
10635 * python/python-internal.h (frame_object_type): Declare.
10636 * python/py-symbol.c (sympy_needs_frame): New function.
10637 (sympy_value): New function.
10638 (symbol_object_getset): Add "needs_frame".
10639 (symbol_object_methods): Add "value".
10640 * python/py-frame.c (frame_object_type): No longer static.
10642 2012-02-07 Tom Tromey <tromey@redhat.com>
10645 * python/py-symbol.c (sympy_line): New function.
10646 (symbol_object_getset): Add "line".
10648 2012-02-07 Tom Tromey <tromey@redhat.com>
10650 * charset.c (find_charset_names): Check 'in' against NULL.
10652 2012-02-06 Doug Evans <dje@google.com>
10654 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10655 and fields.name members from char * to const char *. All uses updated.
10656 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10657 from char * to const char *. All uses updated.
10658 (type_name_no_tag): Update.
10659 (lookup_unsigned_typename, lookup_signed_typename): Update.
10660 * gdbtypes.c (type_name_no_tag): Change result type
10661 from char * to const char *. All callers updated.
10662 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10663 name parameter from char * to const char *.
10664 * symtab.h (struct cplus_specific): Change type of demangled_name
10665 member from char * to const char *. All uses updated.
10666 (struct general_symbol_info): Change type of name and
10667 mangled_lang.demangled_name members from char * to const char *.
10669 (symbol_get_demangled_name, symbol_natural_name): Update.
10670 (symbol_demangled_name, symbol_search_name): Update.
10671 * symtab.c (symbol_get_demangled_name): Change result type
10672 from char * to const char *. All callers updated.
10673 (symbol_natural_name, symbol_demangled_name): Ditto.
10674 (symbol_search_name): Ditto.
10675 (completion_list_add_name): Change type of symname,sym_text,
10676 text,word parameters from char * to const char *.
10677 (completion_list_objc_symbol): Change type of sym_text,
10678 text,word parameters from char * to const char *.
10679 * ada-lang.c (find_struct_field): Change type of name parameter
10680 from char * to const char *.
10681 (encoded_ordered_before): Similarly for N0,N1 parameters.
10682 (old_renaming_is_invisible): Similarly for function_name parameter.
10683 (ada_type_name): Change result type from char * to const char *.
10684 All callers updated.
10685 * ada-lang.h (ada_type_name): Update.
10686 * buildsym.c (hashname): Change type of name parameter
10687 from char * to const char *.
10688 * buildsym.h (hashname): Update.
10689 * dbxread.c (end_psymtab): Change type of include_list parameter
10690 from char ** to const char **.
10691 * dwarf2read.c (determine_prefix): Change result type
10692 from char * to const char *. All callers updated.
10693 * f-lang.c (find_common_for_function): Change type of name, funcname
10694 parameters from char * to const char *.
10695 * f-lang.c (find_common_for_function): Update.
10696 * f-valprint.c (list_all_visible_commons): Change type of funcname
10697 parameters from char * to const char *.
10698 * gdbarch.sh (static_transform_name): Change type of name parameter
10699 and result from char * to const char *.
10700 * gdbarch.c: Regenerate.
10701 * gdbarch.h: Regenerate.
10702 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10703 of name parameter from char * to const char *.
10704 * jv-lang.c (java_primitive_type_from_name): Ditto.
10705 (java_demangled_signature_length): Similarly for signature parameter.
10706 (java_demangled_signature_copy): Ditto.
10707 (java_demangle_type_signature): Ditto.
10708 * jv-lang.h (java_primitive_type_from_name): Update.
10709 (java_demangle_type_signature): Update.
10710 * objc-lang.c (specialcmp): Change type of a,b parameters
10711 from char * to const char *.
10712 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10713 from char * to const char *. All callers updated.
10714 * p-lang.h (is_pascal_string_type): Update.
10715 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10716 of name parameter from char * to const char *.
10717 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10718 * utils.c (fprintf_symbol_filtered): Ditto.
10719 * defs.h (fprintf_symbol_filtered): Update.
10720 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10721 * stabsread.h (end_psymtab): Update.
10722 * stack.c (find_frame_funname): Change type of funname parameter
10723 from char ** to const char **.
10724 * stack.h (find_frame_funname): Update.
10725 * typeprint.c (type_print): Change type of varstring parameter
10726 from char * to const char *.
10727 * value.h (type_print): Update.
10728 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10729 from char * to const char *. All callers updated.
10730 (xcoff_end_psymtab): Change type of include_list parameter
10731 from char ** to const char **. All callers updated.
10732 (swap_sym): Similarly for name parameter. All callers updated.
10733 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10735 (process_coff_symbol): Use xstrdup.
10736 * stabsread.c (stabs_method_name_from_physname): Renamed from
10737 update_method_name_from_physname. Change result type from void
10738 to char *. All callers updated.
10739 (read_member_functions): In has_destructor case, store name in objfile
10740 obstack instead of malloc space. In !has_stub case, fix mem leak.
10742 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10744 * configure: Rebuild.
10745 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10748 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10750 * configure.tgt (rl78-*-elf): New target.
10751 * rl78-tdep.c: New file.
10753 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10755 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10756 and continue the loop. Add QUIT statement.
10758 2012-02-03 Tom Tromey <tromey@redhat.com>
10761 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10762 bfd_lookup_symbol_from_symtab.
10763 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10764 gdb_bfd_lookup_symbol_from_symtab.
10766 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10768 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10769 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10770 symbol. Add assertion that sym2 is never NULL.
10772 2012-02-02 Doug Evans <dje@google.com>
10774 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10775 "name" parameter to const char ** from char **. All callers updated.
10776 (find_pc_partial_function): Ditto.
10777 (cache_pc_function_name): Change type to const char * from char *.
10778 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10779 (find_pc_partial_function): Update.
10780 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10781 type of "name" parameter to const char * from char *.
10783 * arch-utils.c (generic_in_solib_return_trampoline): Change
10784 type of "name" parameter to const char * from char *.
10785 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10786 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10787 type of "name" parameter to const char * from char *.
10788 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10789 * gdbarch.c: Regenerate.
10790 * gdbarch.h: Regenerate.
10791 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10792 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10793 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10794 type of "name" parameter to const char * from char *.
10795 * skip.c (skip_function_pc): Ditto.
10796 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10797 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10798 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10799 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10800 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10801 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10802 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10803 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10804 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10806 2012-02-02 Pedro Alves <palves@redhat.com>
10808 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10809 the current inferior has no execution. Make sure the current
10810 remote process matches gdb's current inferior.
10812 2012-02-02 Tom Tromey <tromey@redhat.com>
10815 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10818 2012-02-02 Tom Tromey <tromey@redhat.com>
10821 * symtab.c (lookup_language_this): Set block_found.
10823 2012-02-01 Tom Tromey <tromey@redhat.com>
10826 * jit.c (struct jit_inferior_data): Rewrite.
10827 (struct jit_objfile_data): New.
10828 (get_jit_objfile_data): New function.
10829 (add_objfile_entry): Update.
10830 (jit_read_descriptor): Return int. Replace descriptor_addr
10831 argument with inf_data. Update. Don't call error.
10832 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10834 (jit_inferior_init): Don't look up descriptor. Don't call error.
10835 (jit_reset_inferior_data_and_breakpoints)
10836 (jit_inferior_created_observer): Remove.
10837 (jit_inferior_exit_hook): Update.
10838 (jit_executable_changed_observer): Remove.
10839 (jit_event_handler): Update.
10840 (free_objfile_data): Reset inferior data if needed.
10841 (_initialize_jit): Update.
10843 2012-02-01 Tom Tromey <tromey@redhat.com>
10845 * jit.c (bfd_open_from_target_memory): Move higher in file.
10847 2012-02-01 Tristan Gingold <gingold@adacore.com>
10849 * libunwind-frame.c (libunwind_load): Display message if dlopen
10852 2012-02-01 Gary Benson <gbenson@redhat.com>
10854 * symtab.h (symbol_found_callback_ftype): New typedef.
10855 (iterate_over_symbols): Use the above.
10856 * symtab.c (iterate_over_symbols): Likewise.
10857 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10858 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10859 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10860 (iterate_name_matcher): Document return values.
10861 (collect_one_symbol): Likewise.
10862 (collect_function_symbols): Likewise.
10863 (collect_symbols): Likewise.
10865 2012-02-01 Tom Tromey <tromey@redhat.com>
10867 * ada-lang.c (resolve_subexp): Update.
10868 (ada_lookup_symbol_list): Add 'full_search' argument.
10869 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10870 ada_lookup_symbol_list.
10871 (ada_lookup_encoded_symbol): Update.
10872 (get_var_value): Update.
10873 * ada-exp.y (block_lookup): Update.
10874 (write_var_or_type): Update.
10875 (write_name_assoc): Update.
10876 * ada-lang.h (ada_lookup_symbol_list): Update.
10878 2012-01-31 Tom Tromey <tromey@redhat.com>
10880 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10883 2012-01-31 Doug Evans <dje@google.com>
10885 * symtab.h: Remove outdated comment.
10886 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10888 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10890 Fix build error in Darwin port.
10891 * i386-darwin-nat.c: Include i386-nat.h.
10893 2012-01-30 Tom Tromey <tromey@redhat.com>
10895 PR breakpoints/13568:
10896 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10897 argument. Check for recursive includes.
10898 (dwarf_decode_macros): Create an include hash.
10900 2012-01-30 Michael Eager <eager@eagercon.com>
10902 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10903 * ppc-linux-tdep.c: Include glibc-tdep.h.
10904 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10905 (powerpc_linux_in_plt_stub): New function.
10906 (powerpc_linux_in_dynsym_resolve_code): New function.
10907 (ppc_skip_trampoline_code): New function.
10908 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10909 Use glibc_skip_solib_resolver.
10911 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10913 Code cleanup: Make 1440 bytes of data segment read-only.
10914 * arch-utils.c (endian_enum): Make it const char *const [].
10915 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10917 * breakpoint.c (always_inserted_enums): Likewise.
10918 * cli/cli-cmds.c (script_ext_enums): Likewise.
10919 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10920 enumlist parameter const char *const *.
10921 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10922 const char *const *.
10923 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10924 parameter const char *const *.
10925 * cris-tdep.c (cris_modes): Make it const char *const [].
10926 * filesystem.c (target_file_system_kinds): Likewise.
10927 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10928 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10929 (can_use_displaced_stepping_enum, scheduler_enums)
10930 (exec_direction_names): Likewise.
10931 * language.c (_initialize_language): Make the type_or_range_names and
10932 case_sensitive_names variables const char *const [].
10933 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10934 * python/python.c (python_excp_enums): Likewise.
10935 * remote.c (interrupt_sequence_modes): Likewise.
10936 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10937 * serial.c (logbase_enums): Likewise.
10938 * sh-tdep.c (sh_cc_enum): Likewise.
10939 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10941 * symtab.c (multiple_symbols_modes): Likewise.
10942 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10944 * utils.c (internal_problem_modes): Likewise.
10946 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10948 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10949 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10952 2012-01-27 Doug Evans <dje@google.com>
10954 * configure.ac (with_python): Fix absolute path handling for win32.
10955 * configure: Regenerate.
10957 2012-01-26 Doug Evans <dje@google.com>
10959 * symtab.c: Whitespace cleanup, no code changes.
10961 * symtab.c (lookup_symbol_in_language): Improve comment.
10962 (lookup_symbol_aux): Fix comment.
10964 * psymtab.c (add_psymbol_to_list): Result is now "void".
10965 * psympriv.h (add_psymbol_to_list): Update.
10967 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10969 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10971 Do not open script filenames twice.
10972 * cli/cli-cmds.c (source_script_from_stream): Pass to
10973 source_python_script also STREAM.
10974 * python/py-auto-load.c (source_section_scripts): Pass to
10975 source_python_script_for_objfile also STREAM.
10976 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10978 * python/python-internal.h (source_python_script_for_objfile): New
10979 parameter file, rename parameter file to filename.
10980 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10981 instead if !_WIN32. Update the function comment.
10982 (source_python_script, source_python_script_for_objfile)
10983 (source_python_script): New parameter file, rename parameter file to
10984 filename. Pass FILENAME to python_run_simple_file.
10985 * python/python.h (source_python_script): New parameter file, rename
10986 parameter file to filename.
10988 2012-01-26 Pedro Alves <palves@redhat.com>
10990 * corelow.c (core_has_fake_pid): Delete.
10991 (core_close): Delete references to `core_has_fake_pid'.
10992 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10993 (core_open): Delete references to `core_has_fake_pid'.
10994 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10995 the removed global.
10997 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10999 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11000 Remove language parameter from name_matcher. Adjust the comment.
11001 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11002 Remove language parameter.
11003 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11004 * linespec.c (iterate_name_matcher): Likewise.
11005 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11006 name_matcher. Adjust call accordingly.
11007 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11008 (maintenance_check_symtabs): Adjust type of parameter "fun".
11009 * psymtab.h (maintenance_check_symtabs): Likewise.
11011 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11013 * language.h (symbol_name_match_p_ftype): New typedef.
11014 (struct language_defn): Replace field la_symbol_name_compare
11015 by la_get_symbol_name_match_p.
11016 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11017 (ada_language_defn): Use it.
11018 * linespec.c (struct symbol_matcher_data): New type.
11019 (iterate_name_matcher): Rewrite.
11020 (iterate_over_all_matching_symtabs): Pass a pointer to
11021 a symbol_matcher_data struct to expand_symtabs_matching
11022 instead of just the lookup name.
11023 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11024 opencl-lang.c, p-lang.c, language.c: Delete field
11025 la_symbol_name_compare, and replace by NULL for new field
11026 la_get_symbol_name_match_p.
11027 * symfile.h (struct quick_symbol_functions): Update comment.
11029 2012-01-25 Tom Tromey <tromey@redhat.com>
11031 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11034 2012-01-24 Tom Tromey <tromey@redhat.com>
11037 * solib.c (update_solib_list): Update the program space's
11038 added_solibs and deleted_solibs fields.
11039 * progspace.h (struct program_space) <added_solibs,
11040 deleted_solibs>: New fields.
11041 (clear_program_space_solib_cache): Declare.
11042 * progspace.c (release_program_space): Call
11043 clear_program_space_solib_cache.
11044 (clear_program_space_solib_cache): New function.
11045 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11046 bpstat_stop_status. Use handle_solib_event.
11047 * breakpoint.c: Include gdb_regex.h.
11048 (print_solib_event): New function.
11049 (bpstat_print): Use print_solib_event.
11050 (bpstat_stop_status): Add special case for bp_shlib_event.
11051 (handle_solib_event): New function.
11052 (bpstat_what): Use handle_solib_event.
11053 (struct solib_catchpoint): New.
11054 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11055 (breakpoint_hit_catch_solib, check_status_catch_solib)
11056 (print_it_catch_solib, print_one_catch_solib)
11057 (print_mention_catch_solib, print_recreate_catch_solib): New
11059 (catch_solib_breakpoint_ops): New global.
11060 (catch_load_or_unload, catch_load_command_1)
11061 (catch_unload_command_1): New functions.
11062 (internal_bkpt_check_status): Add special case for
11064 (internal_bkpt_print_it): Use print_solib_event.
11065 (initialize_breakpoint_ops): Initialize
11066 catch_solib_breakpoint_ops.
11067 (_initialize_breakpoint): Register "catch load" and "catch
11069 * breakpoint.h (handle_solib_event): Declare.
11070 * NEWS: Add entry for "catch load" and "catch unload".
11072 2012-01-24 Tom Tromey <tromey@redhat.com>
11074 * ada-lang.c: Include gdb_vecs.h.
11075 * charset.c: Include gdb_vecs.h.
11076 * tracepoint.h: Include gdb_vecs.h.
11077 * gdb_vecs.h: New file.
11079 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11081 * breakpoint.c (breakpoint_hit_catch_fork)
11082 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11083 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11084 * infrun.c (inferior_has_forked, inferior_has_vforked)
11085 (inferior_has_execd, inferior_has_called_syscall): Delete.
11086 (handle_syscall_event): Get syscall_number from the execution
11087 control state's wait status.
11088 (wait_for_inferior): Don't clear syscall_number.
11090 2012-01-24 Pedro Alves <palves@redhat.com>
11092 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11093 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11094 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11095 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11097 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11098 false for events other than TARGET_SIGNAL_TRAP.
11099 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11100 Add `ws' parameter.
11101 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11102 events other than TARGET_SIGNAL_TRAP.
11103 (tracepoint_breakpoint_hit): Add `ws' parameter.
11104 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11106 (bpstat_stop_status): Same.
11107 (pc_at_non_inline_function): Same.
11108 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11109 to pass the current event's waitstatus to bpstat_stop_status
11110 and pc_at_non_inline_function.
11112 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11115 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11116 Update the function comment for it.
11117 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11118 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11121 2012-01-24 Pedro Alves <palves@redhat.com>
11123 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11124 outside `bs->stop' block.
11125 (bpstat_what): Rework bp_shlib_event handling.
11126 (internal_bkpt_check_status): If the breakpoint is a
11127 bp_shlib_event, then set bs->stop and bs->print if
11128 stop_on_solib_events is set.
11130 2012-01-24 Gary Benson <gbenson@redhat.com>
11132 Delete #if 0'd out code.
11133 * stack.c (print_frame_label_vars): Remove.
11134 (catch_info): Likewise.
11135 (_initialize_stack): Remove "info catch" command.
11136 * NEWS: Mention the above.
11138 2012-01-24 Pedro Alves <palves@redhat.com>
11140 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11142 (remote_notice_new_inferior): If the remote end doesn't support
11143 the multiprocess extensions, then the PID is fake.
11144 (add_current_inferior_and_thread): New.
11145 (remote_start_remote): Use it.
11146 (extended_remote_attach_1): Adjust.
11147 (extended_remote_create_inferior_1): Use
11148 add_current_inferior_and_thread.
11150 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11152 Fix watchpoints to be specific for each inferior.
11153 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11154 current_program_space.
11155 * i386-nat.c (i386_inferior_data_cleanup): New.
11156 (i386_inferior_data_get): Replace variable inf_data_local by an
11157 inferior_data call.
11158 (i386_use_watchpoints): Initialize i386_inferior_data.
11159 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11160 specific iterate_over_lwps.
11162 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11164 Fix watchpoints across inferior fork.
11165 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11166 comment for linux_nat_iterate_watchpoint_lwps.
11167 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11168 linux_nat_iterate_watchpoint_lwps.
11169 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11170 * i386-linux-nat.c (update_debug_registers_callback): Update the
11171 comment for linux_nat_iterate_watchpoint_lwps.
11172 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11173 linux_nat_iterate_watchpoint_lwps.
11174 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11175 * i386-nat.c: Include inferior.h.
11176 (dr_mirror): Remove.
11177 (i386_inferior_data, struct i386_inferior_data)
11178 (i386_inferior_data_get): New.
11179 (i386_debug_reg_state): Use i386_inferior_data_get.
11180 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11181 (i386_insert_watchpoint, i386_remove_watchpoint)
11182 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11183 (i386_remove_hw_breakpoint): New variable state, use
11184 i386_debug_reg_state instead of DR_MIRROR.
11185 * linux-nat.c (delete_lwp): New declaration.
11186 (num_lwps): Move here from downwards.
11187 (delete_lwp_cleanup): New.
11188 (linux_child_follow_fork): Create new child_lp, call
11189 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11191 (num_lwps): Move upwards.
11192 (linux_nat_iterate_watchpoint_lwps): New.
11193 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11194 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11196 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11200 2012-01-23 Pedro Alves <palves@redhat.com>
11202 * top.c (caution): Rename to ...
11203 (confirm): ... this.
11204 (show_caution): Rename to ...
11205 (show_confirm): ... this.
11206 (quit_cover): Adjust.
11207 (init_main): Adjust.
11208 * top.h (caution): Rename to ...
11209 (confirm): ... this.
11210 * utils.c (internal_vproblem, defaulted_query): Adjust.
11212 2012-01-23 Pedro Alves <palves@redhat.com>
11214 * top.c (caution): Update comment.
11215 (execute_command): Don't consider the current value of `caution'.
11217 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11219 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11221 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11223 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11224 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11225 * target.c (target_fileio_pwrite): Remove buffer address from
11227 (target_fileio_pread): Likewise.
11229 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11231 * NEWS: Document remote "info proc" and "generate-core-file".
11233 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11235 * gdbarch.sh (find_memory_regions): New callback.
11236 * gdbarch.c, gdbarch.h: Regenerate.
11238 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11239 callback before falling back to target method.
11241 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11242 (linux_target_install_ops): No longer install it.
11244 * linux-tdep.c (linux_find_memory_regions): New function.
11245 (linux_init_abi): Install it.
11247 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11249 * gdbarch.sh (make_corefile_notes): New architecture callback.
11250 * gdbarch.c: Regenerate.
11251 * gdbarch.h: Likewise.
11253 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11254 before target_make_corefile_notes. If NULL is returned, the
11255 target does not support core file generation.
11257 * linux-nat.c: Include "linux-tdep.h".
11258 (find_signalled_thread, find_stop_signal): Remove.
11259 (linux_nat_do_thread_registers): Likewise.
11260 (struct linux_nat_corefile_thread_data): Likewise.
11261 (linux_nat_corefile_thread_callback): Likewise.
11262 (iterate_over_spus): Likewise.
11263 (struct linux_spu_corefile_data): Likewise.
11264 (linux_spu_corefile_callback): Likewise.
11265 (linux_spu_make_corefile_notes): Likewise.
11266 (linux_nat_collect_thread_registers): New function.
11267 (linux_nat_make_corefile_notes): Replace contents by call to
11268 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11269 as native-only callback.
11271 * linux-tdep.h: Include "bfd.h".
11272 (struct regcache): Add forward declaration.
11273 (linux_collect_thread_registers_ftype): New typedef.
11274 (linux_make_corefile_notes): Add prototype.
11275 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11276 "regset.h", and "elf-bfd.h".
11277 (find_signalled_thread, find_stop_signal): New functions.
11278 (linux_spu_make_corefile_notes): Likewise.
11279 (linux_collect_thread_registers): Likewise.
11280 (struct linux_corefile_thread_data): New data structure.
11281 (linux_corefile_thread_callback): New funcion.
11282 (linux_make_corefile_notes): Likewise.
11283 (linux_make_corefile_notes_1): Likewise.
11284 (linux_init_abi): Install it.
11286 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11288 * gdbarch.sh (info_proc): New callback.
11289 * gdbarch.c, gdbarch.h: Regenerate.
11291 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11292 before falling back to the target info_proc callback.
11294 * linux-nat.c: Do not include "cli/cli-utils.h".
11295 (linux_nat_info_proc): Remove.
11296 (linux_target_install_ops): No longer install it.
11298 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11299 (read_mapping): New function.
11300 (linux_info_proc): Likewise.
11301 (linux_init_abi): Install it.
11303 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11305 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11306 * infcmd.c: (info_proc_cmd_1): New function.
11307 (info_proc_cmd): New function, moved here from equivalent routine
11308 orignally in linux-nat.c.
11309 (info_proc_cmd_mappings): Likewise.
11310 (info_proc_cmd_stat): Likewise.
11311 (info_proc_cmd_status): Likewise.
11312 (info_proc_cmd_cwd): Likewise.
11313 (info_proc_cmd_cmdline): Likewise.
11314 (info_proc_cmd_exe): Likewise.
11315 (info_proc_cmd_all): Likewise.
11316 (_initialize_infcmd): Install "info proc" command and subcommands.
11318 * target.h (struct target_ops): Add to_info_proc.
11319 (target_info_proc): Add prototype.
11320 * target.c (target_info_proc): New function.
11322 * procfs.c (procfs_info_proc): Add prototype.
11323 (info_proc_cmd): Rename into ...
11324 (procfs_info_proc): ... this. Update argument types as appropriate
11325 for a to_info_proc implementation. Handle "what" argument.
11326 (procfs_target): Install procfs_info_proc.
11327 (_initialize_procfs): No longer install "info proc" command.
11329 * linux-nat.c: (enum info_proc_what): Remove.
11330 (linux_nat_info_proc_cmd_1): Rename into ...
11331 (linux_nat_info_proc): ... this. Update argument types as appropriate
11332 for a to_info_proc implementation.
11333 (linux_nat_info_proc_cmd): Remove.
11334 (linux_nat_info_proc_cmd_mappings): Likewise.
11335 (linux_nat_info_proc_cmd_stat): Likewise.
11336 (linux_nat_info_proc_cmd_status): Likewise.
11337 (linux_nat_info_proc_cmd_cwd): Likewise.
11338 (linux_nat_info_proc_cmd_cmdline): Likewise.
11339 (linux_nat_info_proc_cmd_exe): Likewise.
11340 (linux_nat_info_proc_cmd_all): Likewise.
11341 (linux_target_install_ops): Install linux_nat_info_proc.
11342 (_initialize_linux_nat): No longer install "info proc" command
11345 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11347 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11348 * config.in, configure: Regenerate.
11350 * target.h (struct target_ops): Add to_fileio_readlink.
11351 (target_fileio_readlink): Add prototype.
11352 * target.c (target_fileio_readlink): New function.
11354 * inf-child.c: Conditionally include <sys/param.h>.
11355 (inf_child_fileio_readlink): New function.
11356 (inf_child_target): Install it.
11358 * remote.c (PACKET_vFile_readlink): New enum value.
11359 (remote_hostio_readlink): New function.
11360 (init_remote_ops): Install it.
11361 (_initialize_remote): Handle vFile:readlink packet type.
11363 2012-01-20 Pedro Alves <palves@redhat.com>
11364 Ulrich Weigand <ulrich.weigand@linaro.org>
11366 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11367 * config.in, configure: Regenerate.
11369 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11370 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11371 (target_fileio_open): Add prototype.
11372 (target_fileio_pwrite): Likewise.
11373 (target_fileio_pread): Likewise.
11374 (target_fileio_close): Likewise.
11375 (target_fileio_unlink): Likewise.
11376 (target_fileio_read_alloc): Likewise.
11377 (target_fileio_read_stralloc): Likewise.
11379 * target.c: Include "gdb/fileio.h".
11380 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11381 (default_fileio_target): New function.
11382 (target_fileio_open): Likewise.
11383 (target_fileio_pwrite): Likewise.
11384 (target_fileio_pread): Likewise.
11385 (target_fileio_close): Likewise.
11386 (target_fileio_unlink): Likewise.
11387 (target_fileio_close_cleanup): Likewise.
11388 (target_fileio_read_alloc_1): Likewise.
11389 (target_fileio_read_alloc): Likewise.
11390 (target_fileio_read_stralloc): Likewise.
11392 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11393 <fcntl.h>, and <unistd.h>.
11394 (inf_child_fileio_open_flags_to_host): New function.
11395 (inf_child_errno_to_fileio_error): Likewise.
11396 (inf_child_fileio_open): Likewise.
11397 (inf_child_fileio_pwrite): Likewise.
11398 (inf_child_fileio_pread): Likewise.
11399 (inf_child_fileio_close): Likewise.
11400 (inf_child_fileio_unlink): Likewise.
11401 (inf_child_target): Install to_fileio routines.
11403 * remote.c (init_remote_ops): Install to_fileio routines.
11405 2012-01-20 Pedro Alves <palves@redhat.com>
11406 Ulrich Weigand <ulrich.weigand@linaro.org>
11408 * remote.c (remote_multi_process_p): Only check for multi-process
11409 protocol feature, do not check for extended protocol.
11410 (remote_supports_multi_process): Check for extended protocol here.
11411 (set_general_process): Likewise.
11412 (extended_remote_kill): Likewise.
11413 (remote_pid_to_str): Likewise.
11414 (remote_query_supported): Always query multiprocess mode.
11416 2012-01-20 Pedro Alves <palves@redhat.com>
11417 Ulrich Weigand <ulrich.weigand@linaro.org>
11419 * inferior.h (struct inferior): Add fake_pid_p.
11420 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11421 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11422 magic_null_ptid since the remote side doesn't provide a real PID.
11424 2012-01-19 Tom Tromey <tromey@redhat.com>
11426 * NEWS: Combine the two Python sections.
11428 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11430 * target.h (target_close): Update comment on the target's unpush state.
11432 2012-01-19 Pedro Alves <palves@redhat.com>
11434 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11435 linux_nat_async directly instead of going through the target
11437 * target.c (unpush_target): Close target after unpushing it, not
11440 2012-01-19 Gary Benson <gbenson@redhat.com>
11442 * mdebugread.c (sort_blocks): Replace integer constants with ones
11443 derived from FIRST_LOCAL_BLOCK.
11445 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11446 Jan Kratochvil <jan.kratochvil@redhat.com>
11449 * symfile.c (find_separate_debug_file): New function.
11450 (terminate_after_last_dir_separator): Likewise.
11451 (find_separate_debug_file_by_debuglink): Also try realpath.
11452 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11453 * configure: Regenerate.
11454 * config.in: Regenerate.
11456 2012-01-18 Doug Evans <dje@google.com>
11458 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11459 (main.o): Remove rule.
11460 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11461 (--with-sysroot): Rewrite.
11462 * configure: Regenerate.
11463 * config.in: Regenerate.
11465 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11467 * parse.c (initialize_expout): New function.
11468 (reallocate_expout): Likewise.
11469 (parse_exp_in_context): Use `initialize_expout' and
11470 `reallocate_expout' when appropriate.
11472 2012-01-18 Pedro Alves <palves@redhat.com>
11474 * record.c (struct record_breakpoint, record_breakpoint_p)
11475 (record_breakpoints): New.
11476 (record_insert_breakpoint, record_remove_breakpoint): Manage
11477 record breakpoints list. Only remove breakpoints from the
11478 inferior if they had been inserted there in the first place.
11480 2012-01-17 Doug Evans <dje@google.com>
11482 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11483 if we know we don't have a file name to look for.
11485 2012-01-17 Pedro Alves <palves@redhat.com>
11487 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11488 the frame's stop reason is UNWIND_UNAVAILABLE.
11490 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11492 Fix compilation error.
11493 * m2-exp.y (yyerror): Use ANSI C prototype.
11495 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11497 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11498 (growbuf_by_size): Likewise.
11499 (yyerror): Likewise.
11500 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11501 (modblock): Remove variable (was #if 0'ed).
11502 (parse_number): Convert prototype from K&R to ANSI C.
11503 (yyerror): Likewise.
11504 * objc-exp.y (parse_number): Likewise.
11505 (yyerror): Likewise.
11506 (yylex): Remove #if 0'ed code.
11507 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11508 (yyerror): Likewise.
11510 2012-01-16 Tom Tromey <tromey@redhat.com>
11513 * symtab.h (compare_filenames_for_search): Declare.
11514 * symtab.c (compare_filenames_for_search): New function.
11515 (iterate_over_some_symtabs): Use it.
11516 * symfile.h (struct quick_symbol_functions)
11517 <map_symtabs_matching_filename>: Change spec.
11518 * psymtab.c (partial_map_symtabs_matching_filename): Use
11519 compare_filenames_for_search. Update for new spec.
11520 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11521 compare_filenames_for_search. Update for new spec.
11522 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11524 2012-01-16 Tom Tromey <tromey@redhat.com>
11527 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11528 (struct main_type) <flag_flag_enum>: New field.
11529 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11530 * NEWS: Add entries.
11531 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11533 * python/lib/gdb/printing.py (_EnumInstance): New class.
11534 (FlagEnumerationPrinter): Likewise.
11536 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11538 * breakpoint.c (create_sals_from_address_default): New function.
11539 (create_breakpoints_sal_default): Likewise.
11540 (decode_linespec_default): Likewise.
11541 (is_marker_spec): Removed.
11542 (strace_marker_p): New function.
11543 (init_breakpoint_sal): Using `strace_marker_p' instead of
11545 (create_breakpoint): Call method `create_sals_from_address' from
11546 breakpoint_ops, replacing code that created SALs conditionally
11547 on the type of the breakpoint. Call method `create_breakpoints_sal',
11548 replacing code that created breakpoints conditionally on the type
11550 (base_breakpoint_create_sals_from_address): New function.
11551 (base_breakpoint_create_breakpoints_sal): Likewise.
11552 (base_breakpoint_decode_linespec): Likewise.
11553 (base_breakpoint_ops): Add methods
11554 `base_breakpoint_create_sals_from_address',
11555 `base_breakpoint_create_breakpoints_sal' and
11556 `base_breakpoint_decode_linespec'.
11557 (bkpt_create_sals_from_address): New function.
11558 (bkpt_create_breakpoints_sal): Likewise.
11559 (bkpt_decode_linespec): Likewise.
11560 (tracepoint_create_sals_from_address): Likewise.
11561 (tracepoint_create_breakpoints_sal): Likewise.
11562 (tracepoint_decode_linespec): Likewise.
11563 (strace_marker_create_sals_from_address): Likewise.
11564 (strace_marker_create_breakpoints_sal): Likewise.
11565 (strace_marker_decode_linespec): Likewise.
11566 (strace_marker_breakpoint_ops): New variable.
11567 (addr_string_to_sals): Remove `marker_spec'. Call method
11568 `decode_linespec' from breakpoint_ops, replacing code that decoded
11569 an address string into a SAL. Use `strace_marker_p' instead of
11571 (strace_command): Decide whether we are dealing with a static
11572 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11573 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11574 * breakpoint.h (linespec_result, linespec_sals): New forward
11576 (breakpoint_ops) <create_sals_from_address>,
11577 <create_breakpoints_sal>, <decode_linespec>: New methods.
11579 2012-01-14 Doug Evans <dje@google.com>
11581 * NEWS: Update text for "maint set python print-stack".
11582 It is deprecated in gdb 7.4 and deleted in 7.5.
11584 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11586 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11587 including curses.h.
11589 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11591 * configure: Regenerate.
11592 * config.in: Regenerate.
11594 2012-01-12 Keith Seitz <keiths@redhat.com>
11597 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11598 (ANONYMOUS_UNION_NAME): Define.
11599 (is_path_expr_parent): New function.
11600 (get_path_expr_parent): New function.
11601 (is_anonymous_child): New function.
11602 (create_child_with_value): If the child is anonymous and without
11603 a name, assign an object name to it.
11604 (c_describe_child): Use get_path_expr_parent to determine
11605 the parent expression.
11606 If there field represents an anonymous struct or union and
11607 has no name, set an appropriate display name and expression.
11608 (cplus_describe_child): Likewise.
11610 2012-01-12 Pedro Alves <palves@redhat.com>
11612 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11613 available when %ebp is found to be zero (outermost).
11615 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11617 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11618 an internal gdb_static_assert.
11619 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11621 2012-01-11 Tom Tromey <tromey@redhat.com>
11624 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11625 catch" and "catch throw".
11627 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11629 * blockframe.c (block_innermost_frame): Start search from selected
11630 frame, if present, or otherwise the current frame.
11632 * c-exp.y (variable): Update innermost_block for
11633 'block COLONCOLON NAME' clause.
11634 * m2-exp.y (variable): Ditto.
11635 * objc-exp.y (variable): Ditto.
11637 2012-01-10 Tom Tromey <tromey@redhat.com>
11640 * python/python.c (finish_python_initialization): Set sys.argv.
11642 2012-01-10 Doug Evans <dje@google.com>
11644 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11645 "want_line_info". All callers updated.
11646 (dwarf_decode_lines_1): New function.
11647 (handle_DW_AT_stmt_list): Add function comment.
11648 New arg "want_line_info". All callers updated.
11649 (read_file_scope,read_type_unit_scope): Move comment from
11650 handle_DW_AT_stmt_list to here.
11652 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11654 Fix regression after libiberty/ update for GCC PR 6057 and others.
11655 * c-exp.y (operator) <OPERATOR DELETE>
11656 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11657 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11658 (make_builtin_type, make_name): New variable i, add gdb_assert.
11659 (operator) <OPERATOR NEW>: Update ARGS to 3.
11660 (operator) <OPERATOR DELETE>: Add trailing space.
11661 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11662 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11663 * cp-support.c (cp_canonicalize_string): Check NULL from
11664 cp_comp_to_string, call warning and return.
11666 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11668 Fix duplicate .o files after omitting libbfd.a.
11669 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11670 (SFILES): Add corelow.c.
11671 (COMMON_OBS): Add corelow.o.
11672 (ALLDEPFILES): Remove corelow.c.
11673 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11674 * config/alpha/alpha-osf3.mh: Likewise.
11675 * config/alpha/fbsd.mh: Likewise.
11676 * config/arm/nbsdaout.mh: Likewise.
11677 * config/arm/nbsdelf.mh: Likewise.
11678 * config/i386/i386gnu.mh: Likewise.
11679 * config/ia64/hpux.mh: Likewise.
11680 * config/ia64/linux.mh: Likewise.
11681 * config/m32r/linux.mh: Likewise.
11682 * config/m68k/linux.mh: Likewise.
11683 * config/mips/irix5.mh: Likewise.
11684 * config/mips/irix6.mh: Likewise.
11685 * config/pa/hpux.mh: Likewise.
11686 * config/pa/linux.mh: Likewise.
11687 * config/powerpc/aix.mh: Likewise.
11688 * config/sparc/linux.mh: Likewise.
11689 * config/sparc/linux64.mh: Likewise.
11690 * config/sparc/sol2.mh: Likewise.
11691 * config/vax/vax.mh: Likewise.
11692 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11693 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11694 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11695 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11696 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11697 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11698 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11699 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11700 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11701 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11702 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11703 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11704 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11705 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11706 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11707 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11708 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11709 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11710 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11711 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11712 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11713 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11714 corelow.o from gdb_target_obs.
11715 * corefile.c (core_target): Update the comment on NULL value.
11716 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11717 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11718 MATCHES. Drop YUMMY set on NULL.
11719 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11720 reclaim CORE_DATA if it is already NULL.
11722 2012-01-09 Doug Evans <dje@google.com>
11724 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11725 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11727 2012-01-09 Keith Seitz <keiths@redhat.com>
11729 * breakpoint.c (wrapper.h): Don't include.
11731 2012-01-09 Keith Seitz <keiths@redhat.com>
11733 * Makefile.in (SFILES): Remove wrapper.c.
11734 (HFILES_NO_SRCDIR): Remove wrapper.h.
11735 (COMMON_OBS): Remove wrapper.o.
11736 * cli/cli-interp.c: Don't inlude wrapper.h.
11737 * corelow.c: Likewise.
11738 (core_open): Replace gdb_target_find_new_threads with
11739 TRY_CATCH around target_find_new_threads.
11740 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11741 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11742 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11743 evaluate_expression.
11744 (varobj_set_value): Likewise for evaluate_expression and
11746 (install_new_variable): Likewise for value_fetch_lazy.
11747 (adjust_value_for_child_access): Likewise for value_ind.
11748 (c_describe_child): Likewise for value_subscript and
11750 (c_value_of_root): Likewise for evaluate_expression.
11751 * wrapper.c: Remove.
11752 * wrapper.h: Remove.
11754 2012-01-09 Doug Evans <dje@google.com>
11756 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11757 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11758 "abfd" args with "section". All callers updated.
11759 Error checking code moved ...
11760 (error_check_comp_unit_head): ... here. New function.
11761 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11762 Delete arg "abfd". New arg "type_offset". All callers updated.
11763 (create_debug_types_hash_table): Simplify by using
11764 read_and_check_type_unit_head.
11766 * parser-defs.h (namecopy): Delete.
11767 * parse.c (namecopy, namecopy_size): Move into copy_name.
11769 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11771 Partially fix duplicate .o files after omitting libbfd.a.
11772 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11773 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11774 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11775 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11776 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11777 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11778 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11780 2012-01-09 Pedro Alves <palves@redhat.com>
11782 * MAINTAINERS: Update my email address.
11784 2012-01-08 Doug Evans <dje@google.com>
11786 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11787 n_type_units. Rename type_comp_units to all_type_units.
11789 (add_signatured_type_cu_to_table): Renamed from
11790 add_signatured_type_cu_to_list. All callers updated.
11792 * gdbtypes.h (struct cplus_struct_type): Delete member
11793 nfn_fields_total. All uses removed.
11795 2012-01-06 Doug Evans <dje@google.com>
11797 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11799 (dwarf2_find_comp_unit): Delete.
11800 (process_psymtab_comp_unit): Make result "void".
11801 Delete args buffer, info_ptr, buffer_size, and replace with
11802 "section". All callers updated.
11803 (dwarf2_build_psymtabs_hard): Simplify.
11805 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11806 Thiago Jung Bauermann <bauerman@br.ibm.com>
11808 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11809 before `struct gdb_exception'.
11810 * breakpoint.c (update_global_location_list_nothrow)
11811 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11812 * cp-abi.c (value_rtti_type): Likewise.
11813 * cp-support.c (cp_validate_operator): Likewise.
11814 * infrun.c (insert_exception_resume_breakpoint)
11815 (check_exception_resume, keep_going): Likewise.
11816 * mi-interp.c (mi_breakpoint_created)
11817 (mi_breakpoint_modified): Likewise.
11818 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11819 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11820 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11822 2012-01-05 Doug Evans <dje@google.com>
11824 * dwarf2read.c (statement_prologue): Delete, unused.
11826 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11827 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11829 * dwarf2read.c (comp_unit_header): Delete, unused.
11831 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11833 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11834 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11836 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11838 * infrun.c (normal_stop): Don't skip calling the normal_stop
11839 observers if the thread was doing a multi-step, but stopped for
11840 some reason other than stepping.
11842 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11844 * cli/cli-decode.h: Add comments.
11845 (CMD_LIST_AMBIGUOUS): Moved to command.h
11846 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11847 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11848 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11849 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11850 (add_com, add_com_alias, add_info, add_info_alias)
11851 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11853 * command.h: Add and adjust comments.
11854 (CMD_LIST_AMBIGUOUS): Moved here.
11855 (help_cmd, help_cmd_list): Delete declarations.
11857 2012-01-04 Doug Evans <dje@google.com>
11859 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11860 All callers updated.
11861 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11862 Replace all arguments with "per_cu". All callers updated.
11864 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11866 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11867 New arg "per_cu". All callers updated.
11869 Delete #if 0'd out code.
11870 * language.c (binop_result_type): Delete.
11871 (simple_type, ordered_type, same_type, integral_type): Delete.
11872 (numeric_type, character_type, string_type, boolean_type): Delete.
11873 (float_type, structured_type): Delete.
11874 * language.h: Update.
11876 2012-01-04 Tom Tromey <tromey@redhat.com>
11878 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11880 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11882 * corefile.c (close_exec_file): Delete.
11883 (reopen_exec_file): Remove commented out code that seems related
11884 to close_exec_file, which is being deleted here.
11885 * inferior.h (close_exec_file): Delete.
11886 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11888 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11890 * ada-lang.c: #include "cli/cli-utils.h".
11891 (get_selections): Use skip_spaces.
11892 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11893 (catch_ada_exception_command_split): Use skip_spaces.
11894 (ada_decode_assert_location): Likewise.
11896 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11898 * linespec.c (decode_line_internal): Check for C++ or Java
11899 compound constructs only if the current language is C, C++
11902 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11905 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11906 Joel Brobecker <brobecker@adacore.com>
11907 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11908 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11910 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11911 fall through into AT_ENTRY_POINT.
11912 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11913 DUMMY_ADDR with it.
11914 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11915 PPC_INSN_SIZE skip to 3 times.
11917 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11919 * linespec.c (add_minsym): Preserve function descriptors.
11921 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11923 * breakpoint.c (all_locations_are_pending): Consider locations
11924 in program spaces executing during startup pending as well.
11926 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11928 Copyright year update in most files of the GDB Project.
11930 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11932 * copyright.sh: Delete.
11933 * copyright.py: Rewrite.
11935 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11937 * gnulib/extra/update-copyright: New file, imported from gnulib.
11939 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11941 * README (Copyright and License Notices): New section.
11943 2012-01-03 Tom Tromey <tromey@redhat.com>
11946 * python/py-value.c (valpy_dereference, valpy_get_address
11947 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11948 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11949 (valpy_absolute, valpy_richcompare): Free intermediate values.
11951 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11953 * ada-lang.c: Reformat the copyright notice.
11955 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11957 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11958 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11959 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11960 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11961 Revert this part of:
11962 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11963 Build gdb directly from *.o files not using libgdb.a.
11964 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11966 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11968 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11969 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11970 Reformat the copyright header.
11972 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11974 Revert this part of:
11975 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11976 Remove the gdbtui binary.
11977 * gdb.c (main): Remove args.interpreter_p initialization.
11978 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11979 * main.h (struct captured_main_args): Remove interpreter_p.
11981 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11983 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11985 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11987 * top.c (print_gdb_version): Update copyright year.
11989 2012-01-02 Yao Qi <yao@codesourcery.com>
11991 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11993 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11994 Joel Brobecker <brobecker@adacore.com>
11996 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11997 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11999 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12000 fall through into AT_ENTRY_POINT.
12001 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12002 DUMMY_ADDR with it.
12003 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12004 PPC_INSN_SIZE skip to 3 times.
12006 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12008 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12010 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12012 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12014 Build gdb directly from *.o files not using libgdb.a.
12015 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12016 (COMMON_OBS): Remove solib-target.o.
12017 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12018 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12019 (LIBGDB_OBS, libgdb.a): Move it above.
12020 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12021 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12022 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12023 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12024 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12025 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12026 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12027 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12028 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12029 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12030 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12031 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12032 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12033 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12034 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12035 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12036 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12037 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12038 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12039 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12040 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12041 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12042 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12043 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12044 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12045 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12046 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12048 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12050 Remove the gdbtui binary.
12051 * .gitignore (/gdbtui): Remove.
12052 * Makefile.in (TUI): Remove.
12053 (SUBDIR_TUI_OBS): Remove tui-main.o.
12054 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12055 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12056 (tui-main.o): Remove.
12057 (all_object_files): Remove tui-main.o.
12058 * NEWS: New note for the gdbtui removal.
12059 * configure: Rebuilt.
12060 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12061 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12062 CONFIG_UNINSTALL respectively.
12063 * gdb.c (main): Remove args.interpreter_p initialization.
12064 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12065 * main.h (struct captured_main_args): Remove interpreter_p.
12066 * tui/tui-main.c: Remove.
12068 2012-01-01 Doug Evans <dje@google.com>
12070 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12071 (dwarf2_physname, read_import_statement): Ditto.
12072 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12073 (process_structure_scope read_subroutine_type): Ditto.
12074 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12075 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12076 (dwarf2_fetch_die_location_block): Ditto.
12077 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12079 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12080 All callers updated.
12081 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12082 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12083 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12085 * dwarf2read.c (load_cu): Move assert to more useful location.
12087 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12088 All callers updated.
12090 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12091 (dwarf2_elf_names): Minor reformat.
12092 (dwarf2_per_cu_data): Tweak comment.
12093 (dwarf2_read_section): Fix comment.
12094 (create_all_comp_units): Fix comment.
12095 (load_full_comp_unit): Fix comment.
12096 (process_full_comp_unit): Fix comment.
12097 (read_signatured_type): Fix comment.
12099 For older changes see ChangeLog-2011.
12105 version-control: never