1 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3 * p-valprint.c (pascal_object_print_value): Replace potentially
4 unsafe alloca with xmalloc/xfree.
5 * valops.c (search_struct_method): Likewise.
7 2012-07-23 Tom Tromey <tromey@redhat.com>
9 * solib-svr4.c (enable_break): Update.
10 * bfd-target.h (target_bfd_reopen): Update documentation.
12 2012-07-23 Tom Tromey <tromey@redhat.com>
14 * symfile.c (separate_debug_file_exists): Update.
15 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
16 (reread_symbols): Update.
17 * elfread.c (build_id_verify): Update.
18 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
19 bfd_open_maybe_remote.
21 2012-07-23 Tom Tromey <tromey@redhat.com>
23 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
25 2012-07-23 Tom Tromey <tromey@redhat.com>
27 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
29 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
31 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
32 * machoread.c (macho_add_oso_symfile): Make a cleanup for
34 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
35 * objfiles.c (allocate_objfile): Acquire a new reference.
36 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
37 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
38 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
40 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
42 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
43 make a cleanup for 'abfd'.
44 (symbol_file_add): Make a BFD cleanup.
46 2012-07-23 Tom Tromey <tromey@redhat.com>
48 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
49 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
50 * corelow.c (core_open): Use gdb_bfd_fopen.
51 * dsrec.c (load_srec): Use gdb_bfd_openr.
52 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
53 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
54 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
55 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
56 (gdb_bfd_fdopenr): New functions.
57 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
58 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
59 (gdb_bfd_fdopenr): Declare.
60 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
61 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
62 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
63 gdb_bfd_openr_next_archived_file.
64 (macho_check_dsym): Use gdb_bfd_openr.
65 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
66 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
67 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
68 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
70 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
71 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
72 gdb_bfd_openr_next_archived_file.
73 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
75 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
77 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
78 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
79 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
80 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
81 (symfile_bfd_open): Use gdb_bfd_fopen.
82 (generic_load): Use gdb_bfd_openr.
83 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
85 2012-07-23 Tom Tromey <tromey@redhat.com>
87 * bfd-target.c (target_bfd_reopen): Update.
88 * cli/cli-dump.c (bfd_openr_with_cleanup)
89 (bfd_openw_with_cleanup): Update.
90 * corelow.c (core_open): Update.
91 * dsrec.c (load_srec): Update.
92 * exec.c (exec_file_attach): Update.
93 * gcore.c (create_gcore_bfd): Update.
94 * gdb_bfd.c (gdb_bfd_ref): Return void.
95 (gdb_bfd_open): Update.
96 * gdb_bfd.h (gdb_bfd_ref): Return void.
98 * jit.c (jit_bfd_try_read_symtab): Update.
99 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
100 * machoread.c (macho_symfile_read_all_oso): Update.
101 (macho_check_dsym): Update.
102 * procfs.c (insert_dbx_link_bpt_in_file): Update.
103 * remote-m32r-sdi.c (m32r_load): Update.
104 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
105 * rs6000-nat.c (add_vmap): Update.
106 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
108 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
109 * solib-spu.c (spu_bfd_open): Update.
110 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
111 * spu-linux-nat.c (spu_bfd_open): Update.
112 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
113 (generic_load): Update.
114 * windows-nat.c (windows_make_so): Update.
116 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
118 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
120 2012-07-20 Jeff Kenton <jkenton@tilera.com>
122 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
123 SIGTRAMP_FRAME unwinding.
125 2012-07-20 Doug Evans <dje@google.com>
127 * NEWS: Document new options "set/show use-deprecated-index-sections",
128 and delete reference to --use-deprecated-index-sections.
129 * symfile.h (use_deprecated_index_sections): Delete.
130 * dwarf2read.c (use_deprecated_index_sections): Make static.
131 (read_index_from_section): Update wording of how to load
132 deprecated index sections.
133 (_initialize_dwarf2_read): New options
134 "set/show use-deprecated-index-sections".
135 * main.c (captured_main): Delete --use-deprecated-index-sections.
137 2012-07-20 Pedro Alves <palves@redhat.com>
142 * infrun.c (handle_inferior_event) <new thread>: Don't special
144 <TARGET_WAITKIND_SPURIOUS>: Ditto.
145 * linux-thread-db.c (thread_get_info_callback): Don't return early
146 if the thread is zombie.
147 (thread_from_lwp): Change return type to void. Rewrite stale
149 (attach_thread): Don't return early if the thread is zombie,
150 instead set its "dying" flag.
151 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
152 (find_new_threads_callback): Don't return early if the thread is
155 2012-07-20 Pedro Alves <palves@redhat.com>
157 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
158 * target.c (target_wait): Likewise.
159 (str_comma_list_concat_elem, do_option, target_options_to_string):
161 * target.h (target_options_to_string): Declare.
163 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
164 Tom Tromey <tromey@redhat.com>
166 * dwarf2read.c (dwarf_decode_macros)
167 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
168 DW_MACRO_GNU_transparent_include_alt>: New cases.
169 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
170 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
172 2012-07-20 Tom Tromey <tromey@redhat.com>
174 * dwarf2read.c (try_open_dwo_file): Don't call
175 gdb_bfd_stash_filename.
177 2012-07-20 Pedro Alves <palves@redhat.com>
179 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
180 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
181 (i386_process_record): Tweak description comments.
183 2012-07-20 Pedro Alves <palves@redhat.com>
185 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
186 (i386_process_record): Use record_read_memory.
187 * record.c (record_read_memory): New function.
188 (record_arch_list_add_mem, record_exec_insn): Use
190 * record.h (record_read_memory): Declare.
192 2012-07-20 Yao Qi <yao@codesourcery.com>
194 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
197 2012-07-19 Pedro Alves <palves@redhat.com>
199 * record.c (record_resume): Ask the target beneath to report all
202 2012-07-19 Doug Evans <dje@google.com>
204 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
205 there's no section at address zero.
206 (dwarf2_record_block_ranges): Ditto.
208 2012-07-19 Yao Qi <yao@codesourcery.com>
210 * command.h, remote.c: Fix a typo in comment.
212 2012-07-19 Tom Tromey <tromey@redhat.com>
215 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
216 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
217 OP_DECLTYPE>: New cases.
218 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
219 (type_exp): Add new productions.
220 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
222 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
224 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
225 OP_DECLTYPE>: New case.
226 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
228 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
229 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
231 2012-07-19 Tom Tromey <tromey@redhat.com>
233 * c-exp.y (enum token_flags): New.
234 (struct token) <cxx_only>: Remove.
236 (tokentab3, tokentab2, ident_tokens): Update.
237 (lex_one_token): Update. Handle FLAG_SHADOW.
239 2012-07-19 Tom Tromey <tromey@redhat.com>
241 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
242 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
243 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
244 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
245 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
246 type_exp production where appropriate.
247 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
248 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
249 <UNOP_MEMVAL_TYPE>: New case.
250 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
251 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
252 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
253 <UNOP_MEMVAL_TYPE>: New case.
254 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
255 UNOP_REINTERPRET_CAST>: Update.
256 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
257 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
258 UNOP_REINTERPRET_CAST>: Update.
259 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
260 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
261 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
264 2012-07-19 Yao Qi <yao@codesourcery.com>
265 Jan Kratochvil <jan.kratochvil@redhat.com>
267 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
268 and case 'var_optional_filename' together.
269 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
270 instead of add_setshow_optional_filename_cmd for setshow command
271 'args'. Set completer for 'set args'.
273 2012-07-18 Doug Evans <dje@google.com>
275 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
276 * common/gdb_vecs.c: New file, contents from utils.c.
277 * common/host-defs.h: New file, contents from defs.h.
278 * utils.h: New file, contents from defs.h.
279 * defs.h: Move all declarations of objects defined in utils.c
280 to utils.h (except QUIT() and related).
281 #include "utils.h", "host-defs.h".
282 * probe.h (probe_p): Move here from gdb_vecs.h.
283 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
284 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
285 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
286 * Makefile.in (SFILES): Add common/gdb_vecs.c.
287 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
288 (COMMON_OBS): Add gdb_vecs.o.
289 (gdb_vecs.o): New rule.
291 2012-07-18 Keith Seitz <keiths@redhat.com>
293 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
294 parameter. If non-zero, use SYMNAME as the canonical name
297 (convert_linespec_to_sals): Use add_sal_to_sals for
299 (decode_line_full): No need to "fill in missing canonical names"
300 anymore. Simply make cleanups for the allocated names.
302 2012-07-18 Keith Seitz <keiths@redhat.com>
304 * linespec.c (struct linespec): Constify expression,
305 source_filename, function_name, and label_name.
306 (symbol_not_found_error): Make all parameters const.
307 (linespec_parser_delete): No need to check for NULL
308 when using xfree. Cast const char * to char * for xfree.
310 2012-07-18 Keith Seitz <keiths@redhat.com>
312 * breakpoint.c (invalid_thread_id_error): New function.
313 (find_condition_and_thread): Use invalid_thread_id_error.
314 (watch_command_1): Likewise.
316 2012-07-18 Tom Tromey <tromey@redhat.com>
318 * cc-with-index.sh, cc-with-dwz.sh: Remove.
319 * contrib/cc-with-tweaks.sh: New file.
321 2012-07-18 Tom Tromey <tromey@redhat.com>
323 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
324 (locate_dwz_sections): Recognize .gdb_index.
325 (create_cus_from_index_list): New function.
326 (create_cus_from_index): Use it. Handle .dwz data.
327 (read_index_from_section): New function, extracted from
329 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
332 2012-07-18 Tom Tromey <tromey@redhat.com>
334 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
335 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
337 (struct dwz_file): New.
338 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
339 (locate_dwz_sections, dwarf2_get_dwz_file)
340 (get_abbrev_section_for_cu): New functions.
341 (error_check_comp_unit_head, read_and_check_comp_unit_head)
342 (read_and_check_type_unit_head): Add abbrev_section argument.
343 (create_debug_types_hash_table): Update.
344 (init_cutu_and_read_dies): Use proper abbrev section.
345 (init_cutu_and_read_dies_no_follow): Likewise.
346 (set_partial_user): Do nothing if PST==NULL.
347 (read_comp_units_from_section): New function.
348 (create_all_comp_units): Use it.
349 (scan_partial_symbols, partial_die_parent_scope): Update.
350 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
351 (process_imported_unit_die, read_partial_die): Handle .dwz files.
352 (find_partial_die): Add offset_in_dwz argument. Update.
353 (guess_partial_die_structure_name, fixup_partial_die): Update.
354 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
355 DW_FORM_GNU_strp_alt.
356 (read_indirect_string_from_dwz): New function.
357 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
358 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
359 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
360 (follow_die_offset): Add offset_in_dwz argument.
361 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
362 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
363 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
364 Handle new macro forms.
365 (dwarf_decode_macros): Update.
366 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
367 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
368 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
369 (create_debug_types_hash_table): Use correct abbrev section.
370 (get_debug_line_section): New function.
371 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
372 (process_full_comp_unit): Pass 'required' argument to
373 end_symtab_get_static_block.
374 * buildsym.h (end_symtab_get_static_block): Update.
375 * buildsym.c (end_symtab_get_static_block): Add 'required'
377 (end_symtab, end_expandable_symtab): Update.
379 2012-07-18 Tom Tromey <tromey@redhat.com>
381 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
383 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
384 (zlib_decompress_section): Remove.
385 (dwarf2_read_section): Use gdb_bfd_map_section.
386 (munmap_section_buffer): Remove.
387 (free_dwo_file, dwarf2_per_objfile_free): Don't use
388 munmap_section_buffer.
389 * gdb_bfd.c: Include zlib.h, sys/mman.h.
390 (struct gdb_bfd_section_data): New.
391 (free_one_bfd_section): New function.
392 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
393 (get_section_descriptor, zlib_decompress_section)
394 (gdb_bfd_map_section): New functions.
395 * gdb_bfd.h (gdb_bfd_map_section): Declare.
397 2012-07-18 Tom Tromey <tromey@redhat.com>
399 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
401 2012-07-18 Tom Tromey <tromey@redhat.com>
403 * gdb_bfd.c (struct gdb_bfd_data): New.
404 (gdb_bfd_cache): New global.
405 (struct gdb_bfd_cache_search): New.
406 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
407 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
408 * gdb_bfd.h (gdb_bfd_open): Declare.
410 2012-07-18 Tom Tromey <tromey@redhat.com>
412 * utils.c (make_cleanup_bfd_unref): Rename from
413 make_cleanup_bfd_close.
414 * defs.h (make_cleanup_bfd_unref): Rename from
415 make_cleanup_bfd_close.
416 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
417 (bfd_openw_with_cleanup): Update.
418 * corelow.c (core_open): Update.
419 * dsrec.c (load_srec): Update.
420 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
421 * remote-m32r-sdi.c (m32r_load): Update.
422 * remote-mips.c (mips_load_srec): Update.
423 (pmon_load_fast): Update.
424 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
426 (darwin_bfd_open): Update.
427 * solib.c (solib_bfd_fopen): Update.
428 * symfile-mem.c (symbol_file_add_from_memory): Update.
429 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
430 (symfile_bfd_open): Update.
431 (generic_load): Update.
433 2012-07-18 Tom Tromey <tromey@redhat.com>
435 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
436 (pmon_load_fast): Likewise.
437 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
438 (m32r_upload_command): Likewise.
439 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
440 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
441 Use make_cleanup_bfd_close.
443 2012-07-18 Tom Tromey <tromey@redhat.com>
445 * symfile.c (symfile_bfd_open): Don't copy name. Call
446 gdb_bfd_stash_filename.
447 (load_command): Open the new BFD before freeing the old.
448 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
449 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
450 Call gdb_bfd_stash_filename.
451 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
452 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
453 gdb_bfd_stash_filename.
454 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
456 * rs6000-nat.c (add_vmap): Don't copy filename. Call
457 gdb_bfd_stash_filename.
458 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
459 * machoread.c (macho_add_oso_symfile): Call
460 gdb_bfd_stash_filename.
461 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
462 gdb_bfd_stash_filename.
463 (macho_check_dsym): Don't copy filename. Call
464 gdb_bfd_stash_filename.
465 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
466 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
467 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
468 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
469 * exec.c (exec_close): Don't free the BFD's filename.
470 (exec_file_attach): Don't copy the filename. Call
471 gdb_bfd_stash_filename.
472 * corelow.c (core_close): Don't free the BFD's filename.
473 (core_open): Call gdb_bfd_stash_filename.
474 * corefile.c (reopen_exec_file): Remove #if 0 code.
475 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
477 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
479 2012-07-18 Tom Tromey <tromey@redhat.com>
481 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
483 (free_dwo_file): Use gdb_bfd_unref.
484 * cli/cli-dump.c: Include gdb_bfd.h.
485 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
486 (bfd_openr_with_cleanup): Likewise.
487 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
489 * utils.c: Include gdb_bfd.h.
490 (do_bfd_close_cleanup): Use gdb_bfd_unref.
491 * symfile.c: Include gdb_bfd.h.
492 (separate_debug_file_exists): Use gdb_bfd_unref.
493 (bfd_open_maybe_remote): Use gdb_bfd_ref.
494 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
495 (generic_load): Use gdb_bfd_ref.
496 (reread_symbols): Use gdb_bfd_unref.
497 * symfile-mem.c: Include gdb_bfd.h.
498 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
499 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
500 * solib.c: Include gdb_bfd.h.
501 (solib_bfd_fopen): Use gdb_bfd_ref.
502 (solib_bfd_open): Use gdb_bfd_unref.
503 (free_so_symbols): Use gdb_bfd_unref.
504 (reload_shared_libraries_1): Use gdb_bfd_unref.
505 * solib-spu.c: Include gdb_bfd.h.
506 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
507 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
509 * solib-frv.c: Include gdb_bfd.h.
510 (enable_break2): Use gdb_bfd_unref.
511 * solib-dsbt.c: Include gdb_bfd.h.
512 (enable_break2): Use gdb_bfd_unref.
513 * solib-darwin.c: Include gdb_bfd.h.
514 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
516 (darwin_bfd_open): Use gdb_bfd_unref.
517 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
518 * remote-mips.c: Include gdb_bfd.h.
519 (mips_load_srec): Use gdb_bfd_ref.
520 (pmon_load_fast): Use gdb_bfd_ref.
521 * remote-m32r-sdi.c: Include gdb_bfd.h.
522 (m32r_load): Use gdb_bfd_ref.
523 * record.c: Include gdb_bfd.h.
524 (record_save_cleanups): Use gdb_bfd_unref.
525 (cmd_record_save): Use gdb_bfd_unref.
526 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
528 * objfiles.h (gdb_bfd_close_or_warn): Remove.
529 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
530 * objfiles.c: Include gdb_bfd.h.
531 (free_objfile): Use gdb_bfd_unref.
532 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
534 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
535 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
536 (macho_check_dsym): Likewise.
537 * m32r-rom.c: Include gdb_bfd.h.
538 (m32r_load): Use gdb_bfd_ref.
539 (m32r_upload_command): Use gdb_bfd_ref.
540 * jit.c: Include gdb_bfd.h.
541 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
542 * gdb_bfd.h: New file.
543 * gdb_bfd.c: New file.
544 * gcore.c: Include gdb_bfd.h.
545 (create_gcore_bfd): Use gdb_bfd_ref.
546 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
547 (gcore_command): Use gdb_bfd_unref.
548 * exec.c: Include gdb_bfd.h.
549 (exec_close): Use gdb_bfd_unref.
550 (exec_close_1): Use gdb_bfd_unref.
551 (exec_file_attach): Use gdb_bfd_ref.
552 * elfread.c: Include gdb_bfd.h.
553 (build_id_verify): Use gdb_bfd_unref.
554 * dsrec.c: Include gdb_bfd.h.
555 (load_srec): Use gdb_bfd_ref.
556 * corelow.c: Include gdb_bfd.h.
557 (core_close): Use gdb_bfd_unref.
558 (core_open): Use gdb_bfd_ref.
559 * bfd-target.c: Include gdb_bfd.h.
560 (target_bfd_xclose): Use gdb_bfd_unref.
561 (target_bfd_reopen): Use gdb_bfd_ref.
562 * Makefile.in (SFILES): Add gdb_bfd.c.
563 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
564 (COMMON_OBS): Add gdb_bfd.o.
566 2012-07-18 Keith Seitz <keiths@redhat.com>
568 * breakpoint.c (find_condition_and_thread): Initialize
570 (create_breakpiont): find_condition_and_thread will now
571 initialize COND_STRING, THREAD, and REST (and TASK).
572 (addr_string_to_sals): Likewise.
574 2012-07-18 Pedro Alves <palves@redhat.com>
576 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
577 Pull the single step breakpoints out of the target.
579 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
581 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
582 * stap-probe.c (compile_probe_arg): Likewise.
584 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
586 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
587 (elf_compile_to_ax): Likewise.
588 * infrun.c (insert_exception_resume_from_probe): Likewise.
589 (check_exception_resume): Remove `objfile' variable.
590 * probe.c (find_probe_by_pc): Remove `objfile' argument.
591 (struct probe_and_objfile, probe_and_objfile_s): Delete.
592 (collect_probes): Adjust return value to `VEC (probe_p) *'.
593 (compare_entries): Rename to...
594 (compare_probes): ...this. Adjust function to work with
595 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
597 (gen_ui_out_table_header_info): Adjust `probes' argument to be
599 (print_ui_out_info): Adjust argument to be `struct probe *'.
600 (info_probes_for_ops): Adjust internal computations to use
602 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
603 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
604 gen_info_probes_table_values>: Remove `objfile' argument.
605 (struct probe) <objfile>: New field.
606 (find_probe_by_pc): Remove `objfile' argument.
607 * stap-probe.c (stap_parse_probe_arguments): Likewise.
608 (stap_get_probe_argument_count): Likewise.
609 (stap_get_arg): Likewise.
610 (stap_evaluate_probe_argument): Likewise.
611 (stap_compile_to_ax): Likewise.
612 (compile_probe_arg): Refactor not to pass `objfile' anymore.
613 (handle_stap_probe): Fill `objfile' field from `struct probe'.
614 (stap_gen_info_probes_table_header): Remove `objfile' argument.
615 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
616 sym_compile_to_ax>: Likewise.
618 2012-07-18 Terry Guo <terry.guo@arm.com>
621 * defs.h (GDB_MI_MSG_WIDTH): New.
622 * ser_base (ser_base_read_error_fd): New function.
623 (do_ser_base_readchar): Poll error file descriptor as well as
625 (generic_readchar): Refactor error handling.
627 2012-07-18 Joel Brobecker <brobecker@adacore.com>
629 * NEWS: Create a new section for the next release branch.
630 Rename the section of the current branch, now that it has
633 2012-07-18 Joel Brobecker <brobecker@adacore.com>
635 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
636 * version.in: Bump version to 7.5.50.20120718-cvs.
638 2012-07-17 Keith Seitz <keiths@redhat.com>
640 * linespec.c (linespec_parse_line_offset): Make parameter
643 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
646 * f-valprint.c (info_common_command): New variable frame_id.
647 Reinitialize FI form FRAME_ID after each print_variable_and_value.
648 * printcmd.c (print_variable_and_value): Extend function comment.
649 Add comment for invalidated FRAME.
650 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
651 FI form FRAME_ID after each print_frame_local_vars.
652 (struct print_variable_and_value_data): Change frame to frame_id.
653 (do_print_variable_and_value): New variable frame, initialize it from
654 p->frame_id. Add comment for invalidated FRAME.
655 (print_frame_local_vars, print_frame_arg_vars): New function comment.
656 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
657 for invalidated FRAME.
659 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
660 Pedro Alves <palves@redhat.com>
662 * linux-nat.c (linux_nat_detach): Don't unregister from the event
665 2012-07-16 Tom Tromey <tromey@redhat.com>
667 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
669 2012-07-15 Doug Evans <dje@google.com>
671 * dwarf2read.c (stmt_list_hash): New struct.
672 (type_unit_group): Embed "per_cu" member, remove pointer.
673 New union member "t", move member "tus" into it, all uses updated.
674 New member "hash", replaces member "line_offset, all uses updated.
675 (quick_file_names): Replace member "offset" with "hash", all uses
677 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
678 (hash_file_name_entry, eq_file_name_entry): Call them.
679 (hash_type_unit_group, eq_type_unit_group): Ditto.
680 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
681 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
682 (dw2_get_file_names): Update.
683 (create_type_unit_group): Replace "per_cu" arg with "cu".
684 All callers updated. Fix "quick" (.gdb_index) handling.
685 (get_type_unit_group): Replace "per_cu" arg with "cu".
687 (build_type_unit_groups): Don't reset tu_stats.
689 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
690 "tab_cur_size". Change member "tab" to be a htab_t.
691 (create_filename_seen_cache): Update.
692 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
693 (filename_seen): Update.
695 2012-07-13 Doug Evans <dje@google.com>
697 * symtab.c (filename_seen): Update comment.
699 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
700 Doug Evans <dje@google.com>
702 * buildsym.c (end_symtab_1): Split it to ...
703 (end_symtab_get_static_block): ... this ...
704 (end_symtab_from_static_block): ... and this function.
705 (end_symtab, end_expandable_symtab): Call them.
706 * buildsym.h (end_symtab_get_static_block)
707 (end_symtab_from_static_block): New declarations.
708 * dwarf2read.c (process_full_comp_unit): New variable static_block.
709 Set its valid CU ranges.
711 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
713 * dwarf2loc.c (disassemble_dwarf_expression): Handle
714 DW_OP_GNU_parameter_ref.
716 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
718 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
719 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
721 2012-07-13 Doug Evans <dje@google.com>
723 * symtab.c (output_source_filename): Delete unnecessary forward decl.
724 (filename_seen_cache): New struct.
725 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
726 (create_filename_seen_cache): New function.
727 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
728 (filename_seen): Delete arg "first". New arg "cache". All callers
730 (output_source_filename_data): New struct.
731 (output_source_filename): Delete arg "first". New arg "data".
733 (sources_info): Delete local "first". New locals "data", "cleanups".
734 Rewrite to use filename_seen_cache.
735 (add_partial_filename_data): Delete member "first". New member
736 "filename_seen_cache". All uses updated.
737 (make_source_files_completion_list): Rewrite to use
740 2012-07-12 Doug Evans <dje@google.com>
742 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
744 2012-07-10 Doug Evans <dje@google.com>
747 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
748 all_type_unit_groups, type_unit_groups, tu_stats.
749 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
750 All uses updated. Add type_unit_group to union "s".
751 (type_unit_group): New struct.
752 (IS_TYPE_UNIT_GROUP): New macro.
753 (abbrev_table): Delete unused member "section".
754 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
755 (dw2_get_cu): Assert not used with type_unit_group.
756 (dw2_get_primary_cu): New function.
757 (dw2_build_type_unit_groups_reader): New function.
758 (dw2_build_type_unit_groups): New function.
759 (dw2_get_file_names): Assert not called on type units.
760 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
761 Redo loop to iterate over type unit groups instead of type units.
762 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
763 (read_abbrev_offset): New function.
764 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
766 (create_partial_symtab): New function.
767 (process_psymtab_comp_unit_reader): Assert not used with type units.
768 Call create_partial_symtab.
769 (process_psymtab_type_unit): Delete.
770 (hash_type_unit_group, eq_type_unit_group): New functions.
771 (allocate_type_unit_groups_table): New function.
772 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
773 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
774 (create_type_unit_group, get_type_unit_group): New functions.
775 (tu_abbrev_offset): New struct.
776 (sort_tu_by_abbrev_offset): New function.
777 (add_type_unit_group_to_table): New function.
778 (build_type_unit_groups): New function.
779 (build_type_psymtabs_reader): New function.
780 (build_type_psymtab_dependencies): New function.
781 (build_type_psymtabs): Rewrite.
782 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
783 is seen in a type unit.
784 (process_queue): Move symtab expansion debugging printfs here.
785 Call process_full_type_unit for type units.
786 (compute_symtab_includes): Assert not called for type units.
787 (process_cu_includes): Don't call compute_symtab_includes for
789 (process_full_type_unit): New function.
790 (process_imported_unit_die): Flag an error if called for type units.
791 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
792 updated. Assert not called for type units.
793 (read_file_scope): Call dwarf2_start_symtab.
794 (setup_type_unit_groups): New function.
795 (read_type_unit_scope): Rewrite.
796 (abbrev_table_read_table): Initialize abbrev_table->offset.
797 (abbrev_table_free_cleanup): New function.
798 (dwarf2_start_symtab): New function.
799 (load_full_type_unit): Assert not called for type unit groups.
800 * buildsym.c (finish_block_internal): New arg "expandable".
802 (start_symtab): Move most contents to ...
803 (restart_symtab): ... here. New function.
804 (reset_symtab_globals): New function.
805 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
806 Call reset_symtab_globals.
807 (end_symtab, end_expandable_symtab): New functions.
808 (set_missing_symtab, augment_type_symtab): New functions.
809 * buildsym.h (end_expandable_symtab): Declare.
810 (augment_type_symtab, restart_symtab): Declare.
811 * psympriv.h (struct partial_symtab): New member "anonymous".
812 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
814 (read_psymtabs_with_filename): Ditto.
815 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
816 (expand_symtabs_matching_via_partial): Ditto.
817 (dump_psymtab): Update.
818 * dictionary.c (dict_add_pending): New function.
819 * dictionary.h (dict_add_pending): Declare.
821 2012-07-09 Doug Evans <dje@google.com>
823 * buildsym.c (start_subfile): Remove unnecessary check for
826 * psymtab.c (allocate_psymtab): Use host_address_to_string.
828 * dwarf2read.c (load_full_type_unit): Simplify.
830 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
831 to struct signatured_type **. All uses updated.
833 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
836 2012-07-09 Tom Tromey <tromey@redhat.com>
838 * c-exp.y (check_parameter_typelist): New function.
839 (parameter_typelist): Call it.
840 * eval.c (make_params): Handle '(void)' case.
841 * gdbtypes.c (lookup_function_type_with_arguments): Handle
844 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
846 * common/linux-ptrace.c: Include gdb_assert.h.
847 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
848 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
850 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
852 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
853 * linux-nat.c (linux_child_post_attach)
854 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
856 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
858 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
859 nptl <2.7 bug workaround for core files.
861 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
863 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
865 (save_siginfo): Remove.
866 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
868 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
869 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
870 * linux-nat.h (struct lwp_info): Remove field siginfo.
872 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
874 Code cleanup for the next patch.
875 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
876 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
878 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
879 (ia64_linux_stopped_data_address):
880 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
882 * linux-nat.h (linux_nat_get_siginfo): Likewise.
883 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
884 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
887 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
890 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
891 Increase buffer sizes to 2x we need, not just 2x of the previous size.
893 2012-07-06 Tom Tromey <tromey@redhat.com>
895 * c-exp.y (DOTDOTDOT): New token.
896 (func_mod, exp): Use parameter_typelist.
897 (parameter_typelist): New production.
898 (tokentab3): Add "..." token.
899 * eval.c (make_params): Handle varargs.
900 * gdbtypes.c (lookup_function_type_with_arguments): Handle
903 2012-07-06 Tom Tromey <tromey@redhat.com>
906 * c-exp.y (%union) <tvec>: Change type.
907 (func_mod): Now uses <tvec> type.
908 (exp): Update for tvec change.
909 (direct_abs_decl): Push the typelist.
910 (func_mod): Return a typelist.
911 (nonempty_typelist): Update for tvec change.
912 * gdbtypes.c (lookup_function_type_with_arguments): New function.
913 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
914 * parse.c (pop_type_list): New function.
915 (push_typelist): New function.
916 (follow_types): Handle tp_function_with_arguments.
917 * parser-defs.h (type_ptr): New typedef. Define a VEC.
918 (enum type_pieces) <tp_function_with_arguments>: New constant.
919 (union type_stack_elt) <typelist_val>: New field.
920 (push_typelist): Declare.
922 2012-07-06 Tom Tromey <tromey@redhat.com>
924 * c-exp.y (%union) <type_stack>: New field.
925 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
926 (ptr_operator_ts): New production.
928 * parse.c (type_stack_reserve): New function.
929 (check_type_stack_depth): Use it.
930 (pop_type_stack, append_type_stack, push_type_stack)
931 (get_type_stack, type_stack_cleanup): New functions.
932 (follow_types): Handle tp_type_stack.
933 (_initialize_parse): Simplify initialization.
934 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
936 (union type_stack_elt) <stack_val>: New field.
937 (get_type_stack, append_type_stack, push_type_stack)
938 (type_stack_cleanup): Declare.
940 2012-07-06 Tom Tromey <tromey@redhat.com>
942 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
944 (struct type_stack): New.
945 * parse.c (type_stack, type_stack_size, type_stack_depth):
947 (type_stack): New global.
948 (parse_exp_in_context, check_type_stack_depth)
949 (insert_into_type_stack, insert_type, push_type, push_type_int)
950 (insert_type_address_space, pop_type, pop_type_int)
951 (_initialize_parse): Update.
953 2012-07-06 Tom Tromey <tromey@redhat.com>
955 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
958 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
960 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
962 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
963 Jan Kratochvil <jan.kratochvil@redhat.com>
965 * cp-valprint.c (cp_print_value): Replace potentially unsafe
966 alloca with xmalloc/xfree.
968 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
970 * MAINTAINERS (Write After Approval): Add myself to the list.
972 2012-07-05 Doug Evans <dje@google.com>
974 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
976 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
978 * ax-gdb.c (cli/cli-utils.h): New include.
980 (agent_eval_command_one): New function.
981 (agent_command_1): Ditto.
982 (agent_command): Call function agent_command_1.
983 (agent_eval_command): Ditto.
984 (_initialize_ax_gdb): Change help for "maint agent"
985 and "maint agent-eval".
987 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
989 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
990 * cli/cli-utils.c (check_for_argument): New function.
991 * cli/cli-utils.h (check_for_argument): Ditto.
993 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
995 * NEWS: Mention x32 ABI support.
997 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
999 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1000 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1002 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1003 and pc_regnum_from_eax to -1. Update SP regnum from
1004 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1007 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1010 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1012 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1013 * dwarf2expr.h: Include gdbtypes.h.
1014 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1015 these forward declarations.
1016 (cu_offset, sect_offset): Move these ...
1017 * gdbtypes.h: Remove include dwarf2expr.h.
1018 (cu_offset, sect_offset): ... here.
1020 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1022 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1023 (amd64_linux_sigtramp_code): This.
1024 (amd64_x32_linux_sigtramp_code): New.
1025 (LINUX_SIGTRAMP_LEN): Updated.
1026 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1028 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1030 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1032 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1034 * config.in: Regenerate.
1035 * configure: Regenerate.
1036 * configure.ac: Remove check for gnu/libc-version.h.
1037 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1039 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1040 variables libc_version, libc_major and libc_minor. Replace sscanf by
1041 inferior_has_bug. Extend the comment.
1043 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1045 * linux-thread-db.c (inferior_has_bug): New function.
1046 (thread_db_find_new_threads_silently): Return boolean as checked by
1047 inferior_has_bug, describe it in the comments.
1048 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1049 earlier. Abort the initialization if it returned non-zero.
1050 (thread_db_new_objfile): Exclude debug files.
1051 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1054 2012-07-02 Doug Evans <dje@google.com>
1056 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1057 related to queue management.
1059 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1060 instead of "debug dwarf2-die" in debugging printfs.
1061 (create_debug_info_hash_table_reader): Ditto.
1062 (create_debug_info_hash_table): Ditto.
1063 (init_dwo_file): Ditto.
1064 (init_cutu_and_read_dies): Add debugging printf.
1065 (init_cutu_and_read_dies_no_follow): Ditto.
1066 (process_psymtab_comp_unit_reader): Ditto.
1068 2012-07-02 Stan Shebs <stan@codesourcery.com>
1070 Add target-side support for dynamic printf.
1071 * NEWS: Mention the additional style.
1072 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1073 (struct bp_location): New field cmd_bytecode.
1074 * breakpoint.c: Include format.h.
1075 (disconnected_dprintf): New global.
1076 (parse_cmd_to_aexpr): New function.
1077 (build_target_command_list): New function.
1078 (insert_bp_location): Call it.
1079 (remove_breakpoints_pid): Skip dprintf breakpoints.
1080 (print_one_breakpoint_location): Ditto.
1081 (dprintf_style_agent): New global.
1082 (dprintf_style_enums): Add dprintf_style_agent.
1083 (update_dprintf_command_list): Add agent case.
1084 (agent_printf_command): New function.
1085 (_initialize_breakpoint): Add new commands.
1086 * common/ax.def (printf): New bytecode.
1087 * ax.h (ax_string): Declare.
1088 * ax-gdb.h (gen_printf): Declare.
1089 * ax-gdb.c: Include cli-utils.h, format.h.
1090 (gen_printf): New function.
1091 (maint_agent_print_command): New function.
1092 (_initialize_ax_gdb): Add maint agent-printf command.
1093 * ax-general.c (ax_string): New function.
1094 (ax_print): Add printf disassembly.
1095 * Makefile.in (SFILES): Add format.c
1096 (COMMON_OBS): Add format.o.
1097 * common/format.h: New file.
1098 * common/format.c: New file.
1099 * printcmd.c: Include format.h.
1100 (ui_printf): Call parse_format_string.
1101 * remote.c (remote_state): New field breakpoint_commands.
1102 (PACKET_BreakpointCommands): New enum.
1103 (remote_breakpoint_commands_feature): New function.
1104 (remote_protocol_features): Add new BreakpointCommands entry.
1105 (remote_can_run_breakpoint_commands): New function.
1106 (remote_add_target_side_commands): New function.
1107 (remote_insert_breakpoint): Call it.
1108 (remote_insert_hw_breakpoint): Ditto.
1109 (_initialize_remote): Add new packet configuration for
1110 target-side breakpoint commands.
1111 * target.h (struct target_ops): New field
1112 to_can_run_breakpoint_commands.
1113 (target_can_run_breakpoint_commands): New macro.
1114 * target.c (update_current_target): Handle
1115 to_can_run_breakpoint_commands.
1117 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1119 Execute -ix and -iex only after system and user gdbinit files.
1120 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1121 processing down after gdbinit files.
1123 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1125 Add fnmatch-gnu module.
1126 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1127 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1128 * gnulib/aclocal.m4: Regenerate.
1129 * gnulib/config.in: Regenerate.
1130 * gnulib/configure: Regenerate.
1131 * gnulib/import/dummy.c: Remove.
1132 * gnulib/import/Makefile.am: Regenerate.
1133 * gnulib/import/Makefile.in: Likewise.
1134 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1135 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1136 * gnulib/import/alloca.c: New file.
1137 * gnulib/import/alloca.in.h: Likewise.
1138 * gnulib/import/config.charset: Likewise.
1139 * gnulib/import/fnmatch.c: Likewise.
1140 * gnulib/import/fnmatch.in.h: Likewise.
1141 * gnulib/import/fnmatch_loop.c: Likewise.
1142 * gnulib/import/localcharset.c: Likewise.
1143 * gnulib/import/localcharset.h: Likewise.
1144 * gnulib/import/m4/alloca.m4: Likewise.
1145 * gnulib/import/m4/codeset.m4: Likewise.
1146 * gnulib/import/m4/configmake.m4: Likewise.
1147 * gnulib/import/m4/fcntl-o.m4: Likewise.
1148 * gnulib/import/m4/fnmatch.m4: Likewise.
1149 * gnulib/import/m4/glibc21.m4: Likewise.
1150 * gnulib/import/m4/localcharset.m4: Likewise.
1151 * gnulib/import/m4/locale-fr.m4: Likewise.
1152 * gnulib/import/m4/locale-ja.m4: Likewise.
1153 * gnulib/import/m4/locale-zh.m4: Likewise.
1154 * gnulib/import/m4/mbrtowc.m4: Likewise.
1155 * gnulib/import/m4/mbsinit.m4: Likewise.
1156 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1157 * gnulib/import/m4/mbstate_t.m4: Likewise.
1158 * gnulib/import/m4/stdbool.m4: Likewise.
1159 * gnulib/import/m4/wchar_h.m4: Likewise.
1160 * gnulib/import/m4/wctype_h.m4: Likewise.
1161 * gnulib/import/m4/wint_t.m4: Likewise.
1162 * gnulib/import/mbrtowc.c: Likewise.
1163 * gnulib/import/mbsinit.c: Likewise.
1164 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1165 * gnulib/import/mbsrtowcs-state.c: Likewise.
1166 * gnulib/import/mbsrtowcs.c: Likewise.
1167 * gnulib/import/ref-add.sin: Likewise.
1168 * gnulib/import/ref-del.sin: Likewise.
1169 * gnulib/import/stdbool.in.h: Likewise.
1170 * gnulib/import/streq.h: Likewise.
1171 * gnulib/import/strnlen1.c: Likewise.
1172 * gnulib/import/strnlen1.h: Likewise.
1173 * gnulib/import/verify.h: Likewise.
1174 * gnulib/import/wchar.in.h: Likewise.
1175 * gnulib/import/wctype.in.h: Likewise.
1177 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1179 Support shell wildcards for 'set auto-load safe-path'.
1180 * auto-load.c: Include fnmatch.h.
1181 (filename_is_in_dir): Rename to ...
1182 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1183 it. Update function comment. Rename dir_len to pattern_len. New
1184 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1185 messages. Use gdb_filename_fnmatch.
1186 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1188 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1189 * defs.h (gdb_filename_fnmatch): New declaration.
1190 * utils.c: Include fnmatch.h.
1191 (gdb_filename_fnmatch): New function.
1193 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1195 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1196 `-probe' and `-probe-stap' options.
1198 2012-07-01 Yao Qi <yao@codesourcery.com>
1200 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1201 always_inserted_off, and always_inserted_enums.
1202 Change always_inserted_mode's type to 'enum auto_boolean'.
1203 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1205 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1206 of add_setshow_enum_cmd.
1207 * infrun.c: Remove can_use_displaced_stepping_auto,
1208 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1209 can_use_displaced_stepping_enum.
1210 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1211 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1212 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1213 add_setshow_enum_cmd.
1215 2012-06-30 Doug Evans <dje@google.com>
1217 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1218 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1219 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1221 2012-06-29 Doug Evans <dje@google.com>
1223 * linespec.c: #include "stack.h".
1224 (decode_line_with_current_source): Moved here from symtab.c and
1225 renamed from decode_line_spec. All callers updated.
1226 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1227 renamed from decode_line_spec_1. All callers updated.
1228 * linespec.h (decode_line_with_current_source): Move declaration here
1229 from symtab.h and renamed from decode_line_spec.
1230 (decode_line_with_last_displayed): Move declaration here from symtab.h
1231 and renamed from decode_line_spec_1.
1232 * macrocmd.c: #include "linespec.h".
1233 * symtab.c: Remove #include "linespec.h".
1235 2012-06-28 Doug Evans <dje@google.com>
1237 * dwarf2read.c (get_cu_length): New function.
1238 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1239 (create_debug_types_hash_table): Ditto.
1240 (init_cutu_and_read_dies): Ditto.
1241 (init_cutu_and_read_dies_no_follow): Ditto.
1243 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1245 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1246 (struct abbrev_table): Define.
1247 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1249 (init_cutu_and_read_dies): Update.
1250 (abbrev_table_alloc_abbrev): New function. Replaces
1251 dwarf_alloc_abbrev. All callers updated.
1252 (abbrev_table_add_abbrev): New function.
1253 (abbrev_table_lookup_abbrev): New function. Replaces
1254 dwarf2_lookup_abbrev. All callers updated.
1255 (abbrev_table_read_table): New function. Contents moved here from
1256 dwarf2_read_abbrevs.
1257 (dwarf2_read_abbrevs): Call it.
1258 (abbrev_table_free): New function.
1259 (dwarf2_free_abbrev_table): Call it.
1261 2012-06-28 Stan Shebs <stan@codesourcery.com>
1263 * osdata.c (info_osdata_command): Filter out "Title" columns
1265 * common/linux-osdata.c (struct osdata_type): Add title field.
1266 (osdata_table): Add titles to each entry.
1267 (linux_command_xfer_osdata): Add a column for title data.
1269 2012-06-28 Stan Shebs <stan@codesourcery.com>
1271 Make logging work for MI.
1273 * interps.h (interp_set_logging_ftype): New typedef.
1274 (struct interp_procs): New field set_logging_proc.
1275 (current_interp_set_logging): Declare.
1276 * interps.c (current_interp_set_logging): New function.
1277 * cli/cli-logging.c: Include interps.h.
1278 (set_logging_redirect): Call current_interp_set_logging.
1279 (pop_output_files): Ditto.
1280 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1281 * mi/mi-console.h (mi_console_set_raw): Declare.
1282 * mi/mi-console.c (mi_console_set_raw): New function.
1283 * mi/mi-interp.c (saved_raw_stdout): New global.
1284 (mi_set_logging): New function.
1285 (_initialize_mi_interp): Add it to interp procs.
1287 2012-06-28 Doug Evans <dje@google.com>
1289 * symtab.c (lookup_symbol_aux_objfile): Use
1290 ALL_OBJFILE_PRIMARY_SYMTABS.
1292 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1294 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1296 * common/buffer.c: Include inttypes.h and stdint.h.
1297 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1299 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1300 Pedro Alves <palves@redhat.com>
1302 * gdbthread.h (ALL_THREADS): New macro.
1303 (thread_list): Declare.
1304 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1305 going, but instead fall through to the stepping handling.
1306 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1307 the passed in signal. Adjust debug output.
1308 (resume_callback): Rename to ...
1309 (linux_nat_resume_callback): ... this. Pass the thread's last
1310 stop signal, if in "pass" state.
1311 (linux_nat_resume): Adjust to rename.
1312 (stop_wait_callback): New assertion. Don't respawn signals;
1313 instead let the LWP remain with SIGNALLED set.
1314 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1315 * remote.c (append_pending_thread_resumptions): New.
1316 (remote_vcont_resume): Call it.
1317 * target.h (target_resume): Extend comment.
1319 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1321 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1323 2012-06-27 Doug Evans <dje@google.com>
1325 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1326 Delete have_addr_base, unused. All uses updated.
1327 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1328 (dwarf2_get_pc_bounds): Add ranges_base.
1329 (dwarf2_record_block_ranges): Ditto.
1331 2012-06-27 Tom Tromey <tromey@redhat.com>
1334 * varobj.c (varobj_create): Update.
1335 (varobj_set_value): Update.
1336 * tracepoint.c (validate_actionline): Update.
1337 (encode_actions_1): Update.
1338 * parse.c (parse_exp_1): Add 'pc' argument.
1339 (parse_exp_in_context): Add 'pc' argument. Change how
1340 expression_context_pc is set.
1341 (parse_expression): Update.
1342 (parse_field_expression): Update.
1343 * expression.h (parse_exp_1): Update.
1344 * eval.c (parse_to_comma_and_eval): Update.
1345 * breakpoint.c (set_breakpoint_condition): Update.
1346 (update_watchpoint): Update.
1347 (init_breakpoint_sal): Update
1348 (find_condition_and_thread): Update.
1349 (watch_command_1): Update.
1350 (update_breakpoint_locations): Update.
1351 * ada-lang.c (ada_read_renaming_var_value): Update.
1352 (create_excep_cond_exprs): Update.
1354 2012-06-27 Doug Evans <dje@google.com>
1356 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1359 2012-06-26 Doug Evans <dje@google.com>
1361 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1363 (error_check_comp_unit_head): New arg abbrev_section. All callers
1365 (read_and_check_comp_unit_head): Ditto.
1366 (read_and_check_type_unit_head): Ditto.
1368 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1370 New attribute 'last' for gdb.Symtab_and_line.
1371 * NEWS (Python Scripting): Add entry about the new attribute.
1372 * python/py-symtab.c (salpy_get_last): New function which
1373 implements the get method for the 'last' attribute of
1374 gdb.Symtab_and_line.
1375 (sal_object_getset): Add entry for the 'last' attribute.
1377 2012-06-26 Doug Evans <dje@google.com>
1379 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1380 (dwo_sections): Add macinfo, macro.
1381 (dwarf2_locate_dwo_sections): Watch for macro sections.
1382 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1383 All callers updated. Handle DWO files.
1385 * NEWS: Mention new options "set debug dwarf2-read" and
1386 "set debug symtab-create".
1387 * dwarf2read.c (dwarf2_read_debug): New static global.
1388 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1389 (process_queue): Ditto.
1390 (process_full_comp_unit): Ditto.
1391 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1392 * elfread.c (elf_symfile_read): Add debugging printf.
1393 * minsyms.c (install_minimal_symbols): Ditto.
1394 * psymtab.c (allocate_psymtab): Ditto.
1395 * symfile.c (allocate_symtab): Ditto.
1396 * symtab.c (symtab_create_debug): New global.
1397 (_initialize_symtab): Add new option "set debug symtab-create".
1398 * symtab.h (symtab_create_debug): Declare.
1400 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1401 (lookup_dwo_type_unit): Ditto.
1403 2012-06-26 Roland McGrath <roland@hack.frob.com>
1404 H.J. Lu <hongjiu.lu@intel.com>
1406 * amd64-linux-nat.c: Include <sys/user.h>.
1407 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1408 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1409 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1411 * configure.ac: Check if the fs_base and gs_base members of
1412 `struct user_regs_struct' exist.
1413 * config.in: Regenerated.
1414 * configure: Likewise.
1416 2012-06-25 Michael Eager <eager@eagercon.com>
1419 * python/python.c (gdbpy_write): Check for interrupted output.
1421 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1423 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1424 register as a stack alignment in ARM mode.
1426 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1428 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1429 * gnulib/config.in: Regenerate.
1430 * gnulib/configure: Likewise.
1431 * gnulib/import/m4/extensions.m4: Update it.
1432 * gnulib/import/m4/gnulib-common.m4: Likewise.
1433 * gnulib/import/m4/memmem.m4: Likewise.
1434 * gnulib/import/m4/mmap-anon.m4: Likewise.
1435 * gnulib/import/m4/multiarch.m4: Likewise.
1436 * gnulib/import/stdint.in.h: Likewise.
1438 2012-06-24 Yao Qi <yao@codesourcery.com>
1440 * corefile.c (write_memory_with_notification): New.
1441 * gdbcore.h: Declare write_memory_with_notification.
1442 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1443 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1444 * valops.c (value_assign): Likewise.
1445 * python/py-inferior.c (infpy_write_memory): Call
1446 'write_memory_with_notification'.
1448 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1450 * cc-with-index.sh: Use also -ex "set auto-load no".
1452 2012-06-23 Doug Evans <dje@google.com>
1455 * NEWS: Document additions to .gdb_index.
1456 * dwarf2read.c: #include "gdb/gdb-index.h".
1457 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1458 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1459 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1460 (dwarf2_read_index): Recognize version 7.
1461 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1462 block_kind, domain): All callers updated.
1463 (dw2_find_symbol_file): Handle new index CU values.
1464 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1465 (add_index_entry): New args is_static, kind. All callers updated.
1466 (offset_type_compare, uniquify_cu_indices): New functions
1467 (symbol_kind): New function.
1468 (write_psymtabs_to_index): Remove duplicate CU values.
1469 (write_psymtabs_to_index): Write .gdb_index version 7.
1471 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1473 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1474 * configure: Regenerate.
1476 2012-06-20 Yao Qi <yao@codesourcery.com>
1478 * python/py-inferior.c: Update comments of infpy_read_memory
1479 and infpy_write_memory.
1481 2012-06-19 Tom Tromey <tromey@redhat.com>
1484 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1485 (push_type_address_space): Remove.
1486 * parse.c (insert_into_type_stack): New function.
1487 (insert_type): Likewise.
1488 (insert_type_address_space): Rename from push_type_address_space.
1489 Insert tp_space_identifier.
1490 * c-exp.y (ptr_operator): New production.
1491 (abs_decl): Use ptr_operator.
1492 (space_identifier): Call insert_type_address_space.
1493 (ptype): Don't use const_or_volatile_or_space_identifier.
1494 (const_or_volatile_noopt): Call insert_type.
1495 (conversion_type_id, conversion_declarator): New productions.
1496 (operator): Use conversion_type_id.
1498 2012-06-18 Doug Evans <dje@google.com>
1500 * symtab.h (minimal_symbol): New member created_by_gdb.
1501 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1503 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1504 (search_symbols): Call it instead of lookup_symbol.
1505 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1507 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1508 Adjust address for DW_OP_GNU_addr_index.
1509 * dwarf2expr.h (dwarf_expr_context): Update comment.
1510 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1511 all callers updated. Handle TLS vars described with
1512 DW_OP_GNU_const_index.
1513 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1514 and DW_OP_GNU_const_index.
1515 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1517 * block.c (find_block_in_blockvector): Make explicit the fact that we
1518 ignore GLOBAL_BLOCK.
1520 2012-06-18 Tom Tromey <tromey@redhat.com>
1522 * c-exp.y (operator): Remove trailing space after "delete" and
1525 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1526 Jan Kratochvil <jan.kratochvil@redhat.com>
1528 Switch i386 and derived targets to ON_STACK.
1529 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1530 (amd64_dicos_init_abi): Remove its installment.
1531 * dicos-tdep.c (dicos_init_abi): Remove the
1532 set_gdbarch_call_dummy_location call. Update the comment here.
1533 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1534 (i386_dicos_init_abi): Remove its installment.
1535 * i386-tdep.c (i386_push_dummy_code): New function.
1536 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1537 i386_push_dummy_code.
1539 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1541 Remove stale dummy frames.
1542 * breakpoint.c: Include dummy-frame.h.
1543 (longjmp_breakpoint_ops): New variable.
1544 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1545 bp_longjmp_call_dummy.
1546 (bpstat_what, bptype_string, print_one_breakpoint_location)
1547 (init_bp_location): Support bp_longjmp_call_dummy.
1548 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1549 (set_longjmp_breakpoint_for_call_dummy)
1550 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1552 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1553 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1554 FIXME comment and extend the other comment for bp_call_dummy.
1555 (set_longjmp_breakpoint_for_call_dummy)
1556 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1557 * dummy-frame.c: Include gdbthread.h.
1558 (pop_dummy_frame_bpt): New function.
1559 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1560 (dummy_frame_discard): New function.
1561 (cleanup_dummy_frames): Update the comment about longjmps.
1562 * dummy-frame.h (dummy_frame_discard): New declaration.
1563 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1564 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1565 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1566 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1567 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1568 keep_going if IS_LONGJMP and there is no other reason to stop.
1570 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1572 * remote-sim.c (sim_command_completer): Initialize
1575 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1577 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1578 * dwarf2loc.c (call_site_parameter_matches): Support
1579 CALL_SITE_PARAMETER_PARAM_OFFSET.
1580 (needs_dwarf_reg_entry_value): Push stub value.
1581 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1582 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1583 * gdbtypes.h (enum call_site_parameter_kind): New item
1584 CALL_SITE_PARAMETER_PARAM_OFFSET.
1585 (struct call_site.parameter.u): New field param_offset.
1587 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1589 Code cleanup: Generalize call_site.parameter key.
1590 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1591 variable dwarf_reg. New variable kind_u. Update parameters to
1592 push_dwarf_reg_entry_value.
1593 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1594 * dwarf2expr.h (enum call_site_parameter_kind)
1595 (union call_site_parameter_u): Forward declarations.
1596 (struct dwarf_expr_context_funcs): Update parameters and their
1597 description for push_dwarf_reg_entry_value.
1598 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1599 * dwarf2loc.c (call_site_parameter_matches): New function.
1600 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1601 description. Use call_site_parameter_matches.
1602 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1603 Update parameters and their description.
1604 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1605 New variable kind_u. Adjust the caller for updated parameters.
1606 (needs_dwarf_reg_entry_value): Update parameters.
1607 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1608 instead of attr. Update for the changed fields of struct
1609 call_site_parameter.
1610 * gdbtypes.h: Include dwarf2expr.h.
1611 (enum call_site_parameter_kind): New.
1612 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1613 fb_offset into new union u.
1615 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1617 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1618 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1621 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1623 * amd64-linux-nat.c (compat_x32_clock_t): New.
1624 (compat_x32_siginfo_t): Likewise.
1625 (compat_x32_siginfo_from_siginfo): Likewise.
1626 (siginfo_from_compat_x32_siginfo): Likewise.
1627 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1628 and siginfo_from_compat_x32_siginfo for x32.
1630 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
1632 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1634 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1636 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1637 instead of gdbarch_ptr_bit.
1638 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1639 (amd64_supply_native_gregset): Likewise.
1640 (amd64_collect_native_gregset): Likewise.
1641 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1642 (amd64_supply_xsave): Likewise.
1643 (amd64_collect_fxsave): Likewise.
1644 (amd64_collect_xsave): Likewise.
1646 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1648 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1649 (amd64_linux_read_description): Check DS segment register for
1652 2012-06-15 Tom Tromey <tromey@redhat.com>
1654 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1655 init_cutu_and_read_dies.
1657 2012-06-15 Iain Sandoe <iain@codesourcery.com>
1659 * MAINTAINERS (Write After Approval): Add myself to the list.
1661 2012-06-15 Tom Tromey <tromey@redhat.com>
1663 * valops.c (value_find_oload_method_list): Now static.
1664 * value.h (value_find_oload_method_list): Don't declare.
1666 2012-06-15 Tom Tromey <tromey@redhat.com>
1668 * valops.c (find_overload_match): Use value_ind.
1670 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1672 * infrun.c (handle_inferior_event): Correct indentation.
1674 2012-06-14 Doug Evans <dje@google.com>
1676 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1677 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1679 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1680 updated. Handle DEBUG_LOC_START_LENGTH.
1681 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1682 (loclist_describe_location): Ditto.
1684 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1687 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1688 after hiding inline functions.
1690 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1692 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1693 _initialize_inf_ttrace.
1695 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1697 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1698 _initialize_hppa_hpux_nat.
1700 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1702 * remote-sim.c (sim_command_completer): Change type of return
1703 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1705 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1706 Jan Kratochvil <jan.kratochvil@redhat.com>
1709 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1710 stack on a 16-byte boundary.
1712 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
1714 * jit.c (finalize_symtab): Set function's return type to 'void' by
1717 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1718 H.J. Lu <hongjiu.lu@intel.com>
1720 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1721 Move bits common to both the classic LP64 and the new x32 ILP32
1723 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1724 (amd64_x32_linux_init_abi): New function.
1725 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1728 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1729 * i386-tdep.c (i386_pseudo_register_name): Make public.
1730 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1731 * amd64-tdep.c (amd64_dword_names): Add "eip".
1732 (amd64_x32_pseudo_register_type): New function
1733 (amd64_x32_init_abi): New function.
1735 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1738 * inferior.h (struct inferior_suspend_state): Comment out.
1739 (struct inferior): Comment out the field suspend.
1740 * infrun.c (struct infcall_suspend_state): Comment out the field
1742 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1745 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1747 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1748 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1749 function comment. Return ERROR for unresolved cases. Implement
1750 returning proper NAME.
1751 (yylex): Accept also NAME from classify_inner_name.
1752 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1753 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1755 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1757 2012-06-13 Tom Tromey <tromey@redhat.com>
1759 * breakpoint.c (condition_completer): New function.
1760 (_initialize_breakpoint): Use it.
1761 * value.c (complete_internalvar): New function.
1762 * value.h (complete_internalvar): Declare.
1764 2012-06-13 Tom Tromey <tromey@redhat.com>
1766 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1767 * breakpoint.c (catch_syscall_completer): Return a VEC.
1768 * cli/cli-cmds.c (complete_command): Update.
1769 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1770 (complete_on_enum): Likewise.
1771 * command.h: Include gdb_vecs.h.
1772 (completer_ftype): Change return type.
1773 (complete_on_cmdlist, complete_on_enum): Likewise.
1774 * completer.c (noop_completer, filename_completer)
1775 (location_completer): Return a VEC.
1776 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1778 (expression_completer, complete_line_internal, complete_line)
1779 (command_completer): Return a VEC.
1780 (gdb_completion_word_break_characters, line_completion_function):
1782 * completer.h: Include gdb_vecs.h.
1783 (complete_line, noop_completer, filename_completer)
1784 (expression_completer, location_completer, command_completer):
1786 * f-lang.c (f_word_break_characters): Return a VEC.
1787 * interps.c (interpreter_completer): Return a VEC.
1788 * language.h (struct language_defn)
1789 <la_make_symbol_completion_list>: Return a VEC.
1790 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1791 * symtab.c (free_completion_list): Take a VEC.
1792 (return_val_size, return_val_index): Remove.
1793 (return_val): Now a VEC.
1794 (completion_list_add_name): Update.
1795 (default_make_symbol_completion_list_break_on)
1796 (default_make_symbol_completion_list, make_symbol_completion_list)
1797 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1799 (add_filename_to_list): Update.
1800 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1802 (maybe_add_partial_symtab_filename): Update.
1803 (make_source_files_completion_list): Return a VEC.
1804 * symtab.h (default_make_symbol_completion_list_break_on)
1805 (default_make_symbol_completion_list, make_symbol_completion_list)
1806 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1807 (make_source_files_completion_list): Update.
1809 2012-06-13 Tom Tromey <tromey@redhat.com>
1811 * breakpoint.c (add_catch_command): Use completer_ftype.
1812 * breakpoint.h: Include command.h.
1813 (add_catch_command): Use completer_ftype.
1814 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1815 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1816 Use completer_ftype.
1817 * command.h (completer_ftype): New typedef.
1818 (set_cmd_completer): Use it.
1819 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1822 2012-06-13 Pedro Alves <palves@redhat.com>
1824 Partial revert of previous change.
1826 * serial.c (scb_base): New global.
1827 (serial_for_fd): New.
1828 (serial_open, serial_fdopen_ops): Link new serial in open serials
1830 (do_serial_close): Unlink serial from the open serials chain.
1832 2012-06-12 Pedro Alves <palves@redhat.com>
1834 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
1836 (prepare_for_detach): No longer context switch here in non-stop
1838 (fetch_inferior_event): Ditto.
1839 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
1840 to the event thread before removing breakpoints. Switch to the
1841 event thread before inserting breakpoints and resuming.
1842 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
1843 event thread before resuming.
1844 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
1845 Switch to the event thread before removing breakpoints.
1847 2012-06-12 Eli Zaretskii <eliz@gnu.org>
1849 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
1850 special characters correctly for the Windows shells. See
1851 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
1853 [!__MINGW32__]: Remove extra double quote character from special
1856 2012-06-11 Stan Shebs <stan@codesourcery.com>
1858 * ui-out.h: Remove #if 0 declarations.
1859 * ui-out.c: Remove #if 0 functions.
1861 2012-06-11 Pedro Alves <palves@redhat.com>
1863 * ser-base.c (run_async_handler_and_reschedule): New.
1864 (fd_event, push_event): Use it.
1865 * serial.c (serial_open, serial_fdopen_ops): Set the initial
1866 reference count to 1.
1867 (do_serial_close): Set the bufp field to NULL. Use serial_unref
1869 (serial_is_open, serial_ref, serial_unref): New.
1870 * serial.h (serial_open): Adjust comment.
1871 (serial_is_open): Declare.
1872 (serial_close): Adjust comment.
1873 (serial_ref, serial_unref) Declare.
1874 (struct serial): New field 'refcnt'.
1876 2012-06-11 Pedro Alves <palves@redhat.com>
1878 Remove #if 0'd "connect" command, and unnecessary associated
1879 refcounting and serial reuse bits.
1881 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
1882 * serial.c (last_serial_opened): Delete.
1884 (serial_open): Adjust.
1885 (serial_for_fd): Delete.
1886 (serial_fdopen_ops, do_serial_close): Adjust.
1887 (serial_fdopen_ops): Adjust.
1889 2012-06-11 Pedro Alves <palves@redhat.com>
1891 * serial.c (do_serial_close): Remove early return when SCB is
1894 2012-06-11 Tom Tromey <tromey@redhat.com>
1896 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
1898 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1900 Fix regression by the "ambiguous linespec" series.
1901 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
1902 get_last_displayed_symtab and get_last_displayed_line and depending
1905 2012-06-11 Tom Tromey <tromey@redhat.com>
1907 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
1908 (dw2_find_symbol_file): Use it.
1910 2012-06-11 Michael Eager <eager@eagercon.com>
1912 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
1913 * mips-linux-tdep.h (mips_signals): New
1915 2012-06-11 Tom Tromey <tromey@redhat.com>
1917 * infrun.c (handle_inferior_event)
1918 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
1920 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
1921 exception logic in all cases. Update comments.
1922 (insert_longjmp_resume_breakpoint): Set the exception resume
1925 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
1927 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
1929 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
1931 * valarith.c (binop_types_user_defined_p): Fix a typo.
1933 2012-06-08 Yao Qi <yao@codesourcery.com>
1934 Chung-Lin Tang <cltang@codesourcery.com>
1936 * arch-utils.c (default_return_in_first_hidden_param_p): New.
1937 * arch-utils.h: Declare.
1938 * gdbarch.sh: Add return_in_first_hidden_param_p.
1939 * gdbarch.c, gdbarch.h: Regenerated.
1940 * infcall.c (call_function_by_hand): Call
1941 gdbarch_return_in_first_hidden_param_p instead of
1942 language_pass_by_reference.
1944 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
1945 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
1946 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
1947 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
1948 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
1949 `cplus_return_struct_by_reference'.
1950 (tic6x_return_value): Handle language cplusplus.
1951 (tic6x_return_in_first_hidden_param_p): New.
1952 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
1954 2012-06-07 Doug Evans <dje@google.com>
1956 * dwarf2read.c (dwarf2_cu): Add comment.
1958 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1960 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
1962 (mips_eabi_push_dummy_call): Likewise.
1963 (mips_n32n64_push_dummy_call): Likewise.
1964 (mips_o32_push_dummy_call): Likewise.
1965 (mips_o64_push_dummy_call): Likewise.
1967 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1969 * mips-tdep.c (mips_convert_register_p): Correct coding style.
1971 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1973 * mips-tdep.c (mips_pseudo_register_type): Use
1974 mips_float_register_p.
1976 2012-06-06 Pedro Alves <palves@redhat.com>
1978 * infrun.c (handle_inferior_event): Remove calls to
1979 reinit_frame_cache that follow a context_switch call.
1981 2012-06-06 Pedro Alves <palves@redhat.com>
1983 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
1984 context_switch and remove stale comment.
1986 2012-06-06 Pedro Alves <palves@redhat.com>
1988 * infrun.c (struct execution_control_state): Remove
1989 `new_thread_event' field.
1990 (handle_inferior_event): Simplify new threads handling; don't
1991 resume the inferior if we find a new thread.
1993 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
1995 * NEWS: Document the deprecation of SH's 'regs' command.
1996 * inferior.h (all_registers_info): Add function declaration.
1997 * sh-tdep.c (sh_show_regs): Remove variable.
1998 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
1999 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2000 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2001 (sh_show_regs_command): Remove functions.
2002 (sh_gdbarch_init): Don't set sh_show_regs.
2003 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2004 'info all-registers'.
2005 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2006 (sh64_show_regs): Remove functions.
2007 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2009 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2011 * configure.ac: Move development=true below AC_INIT.
2012 * configure: Regenerate.
2014 2012-06-05 Stan Shebs <stan@codesourcery.com>
2016 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2019 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2021 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2022 argument as ssize_t.
2023 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2024 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2025 * target.c (target_read_stack, target_write_memory)
2026 (target_write_raw_memory): Likewise.
2027 * target.h (target_read_stack, target_write_memory)
2028 (target_write_raw_memory): Likewise.
2030 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2032 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2033 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2034 * target.c (target_read_memory): Change LEN to ssize_t.
2035 * target.h (target_read_memory): Change LEN to ssize_t.
2037 2012-06-05 Pedro Alves <palves@redhat.com>
2041 * breakpoint.c (until_break_command): Only fetch the selected
2042 frame after decode_line_1.
2044 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2046 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2047 event breakpoint at _start, __start or main if a program
2048 interpreter is not found.
2050 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2052 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2054 * windows-tdep.c: #include "objfiles.h".
2055 (windows_iterate_over_objfiles_in_search_order): New function.
2056 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2057 iterate_over_objfiles_in_search_order gdbarch method to
2058 windows_iterate_over_objfiles_in_search_order.
2059 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2061 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2063 * gdbarch.sh: Add generation of
2064 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2065 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2066 (iterate_over_objfiles_in_search_order): New gdbarch method.
2067 * gdbarch.h, gdbarch.c: Regenerate.
2068 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2070 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2072 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2073 out of lookup_symbol_aux_symtabs.
2074 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2075 call to lookup_symbol_aux_objfile.
2076 (struct global_sym_lookup_data): New type.
2077 (lookup_symbol_global_iterator_cb): New function.
2078 (lookup_symbol_global): Search for symbol using
2079 gdbarch_iterate_over_objfiles_in_search_order and
2080 lookup_symbol_global_iterator_cb.
2081 * findvar.c (struct minsym_lookup_data): New type.
2082 (minsym_lookup_iterator_cb): New function.
2083 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2084 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2085 and minsym_lookup_iterator_cb.
2087 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2089 Revert the following patch:
2090 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2091 try locating the symbol in the symbol's own objfile first, before
2092 extending the search to all objfiles.
2093 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2094 out of lookup_symbol_aux_symtabs.
2095 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2096 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2097 Do not search EXCLUDE_OBJFILE.
2098 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2099 (lookup_symbol_global): Search for matches in the block's objfile
2100 first, before searching all other objfiles.
2102 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2104 * breakpoint.c (find_condition_and_thread): Stop parsing
2105 as soon as the first invalid keyword is found.
2107 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2109 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2111 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2113 * config/djgpp/djcheck.sh: Add copyright header.
2115 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2117 * copyright.py (update_files, main): Fix path to update-copyright
2120 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2122 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2123 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2124 for which a reminder to update by hand is printed.
2126 2012-06-04 Doug Evans <dje@google.com>
2128 * buildsym.c (make_blockvector): Add comment.
2130 2012-06-04 Pedro Alves <palves@redhat.com>
2132 * arch-utils.c (default_gdb_signal_from_target): Delete.
2133 * arch-utils.h (default_gdb_signal_from_target): Delete.
2134 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2135 gdbarch_gdb_signal_from_target_p.
2136 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2138 * gdbarch.h: Regenerate.
2139 * gdbarch.c: Regenerate.
2141 2012-06-04 Pedro Alves <palves@redhat.com>
2143 * gdbarch.sh (gdb_signal_from_target): Mention that the
2144 implementation of the method must be host independent.
2145 * gdbarch.h: Regenerate.
2147 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2149 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2151 (target_read_memory_bfd): New function.
2152 (symbol_file_add_from_memory): Use it.
2154 2012-06-03 Doug Evans <dje@google.com>
2156 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2158 (basic_lookup_transparent_type): Ditto.
2160 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2161 (ALL_PRIMARY_SYMTABS): Use it.
2162 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2163 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2164 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2165 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2166 (basic_lookup_transparent_type): Ditto.
2168 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2170 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2171 it to optimize resolution of demangled name.
2173 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2175 * configure.ac (development): Define new variable.
2176 Call AC_CHECK_LIB for mcheck if $development.
2177 (ERROR_ON_WARNING): Enable it by default only if $development.
2178 * config.in: Regenerate.
2179 * configure: Regenerate.
2181 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2183 * target.c (target_read_memory): Make LEN argument as size_t.
2184 * target.h (target_read_memory): Likewise.
2186 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2188 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2190 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2192 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2193 BookE interface for PowerPC server processors if not available
2194 in the Linux Kernel.
2196 2012-05-31 Keith Seitz <keiths@redhat.com>
2198 * linespec.c (decode_objc): Add cleanup to free
2200 (find_linespec_symbols): Add cleanup to free CLASSES.
2201 * symfile.c (find_separate_debug_file_by_debuglink): Add
2202 cleanup to free DEBUGLINK.
2203 * ui-out.c (clear_header_list): No need to check if
2204 HEADER_NEXT.COLHDR is NULL.
2205 Free HEADER_NEXT.COL_NAME.
2207 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2209 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2212 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2214 * configure.host (gdb_host_cpu): Handle tilegx*.
2215 (gdb_host): Handle tilegx-*-linux*.
2216 * tilegx-linux-nat.c: New file.
2217 * config/tilegx/linux.mh: New file.
2219 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2221 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2222 tilegx-linux-tdep.o.
2223 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2224 tilegx-linux-tdep.c.
2225 * configure.tgt: Handle tilegx-*-linux*.
2226 * tilegx-tdep.h: New file.
2227 * tilegx-tdep.c: New file.
2228 * tilegx-linux-tdep.c: New file.
2229 * regformats/reg-tilegx.dat: New file.
2231 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2233 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2234 accounting of hw watchpoints on ppc.
2236 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2238 * source.c (openp): Expand tilde in path entries.
2240 2012-05-29 Doug Evans <dje@google.com>
2242 * buildsym.c (block_compar): Fix comment.
2243 (end_symtab): Fix and clarify some comments.
2245 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2246 cleanup_undefined_types.
2247 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2248 All callers updated.
2250 2012-05-29 Tom Tromey <tromey@redhat.com>
2252 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2254 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2255 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2257 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2260 2012-05-29 Tristan Gingold <gingold@adacore.com>
2262 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2263 (struct darwin_info): ... New struct.
2264 (solib_darwin_pspace_data): New variable.
2265 (darwin_pspace_data_cleanup): New function.
2266 (get_darwin_info): Likewise.
2267 (darwin_dyld_version_ok, darwin_load_image_infos)
2268 (darwin_solib_get_all_image_info_addr_at_init)
2269 (darwin_solib_read_all_image_info_addr): Add info argument.
2271 (darwin_current_sos): Use per pspace structure.
2272 (darwin_solib_create_inferior_hook): Likewise.
2273 (darwin_clear_solib): Likewise.
2274 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2276 2012-05-28 Pedro Alves <palves@redhat.com>
2278 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2279 block that uses them. Clear ecss before handling each event.
2281 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2283 * solib-svr4.c (svr4_current_sos): New comment on
2284 svr4_current_sos_via_xfer_libraries fall back.
2286 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2288 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2289 it as a fallback for TYPE_IS_OPAQUE.
2290 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2291 symbols for lookup_symbol.
2293 2012-05-24 John Steele Scott <toojays@toojays.net>
2295 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2296 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2297 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2298 (check_producer): ... this new function, which also checks for ICC
2299 and caches the result.
2300 (producer_is_icc): New function.
2301 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2304 2012-05-24 Pedro Alves <palves@redhat.com>
2308 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2309 (default_gdb_signal_to_target): ... this. Add comment.
2310 (default_gdb_signal_from_host): Rename to ...
2311 (default_gdb_signal_from_target): ... this. Add comment.
2312 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2313 (default_gdb_signal_to_target): ... this.
2314 (default_gdb_signal_from_host): Rename to ...
2315 (default_gdb_signal_from_target): ... this.
2316 * corelow.c (core_open): Adjust to naming change. Replace comment.
2317 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2318 (gdb_signal_from_target): ... this. Adjust to
2319 default_gdb_signal_from_host naming change. Extend comment.
2320 (gdb_signal_to_host): Rename to ...
2321 (gdb_signal_to_target): ... this. Adjust to
2322 default_gdb_signal_to_host naming change.
2323 * gdbarch.h, gdbarch.c: Renegerate.
2325 2012-05-24 Pedro Alves <palves@redhat.com>
2329 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2331 2012-05-24 Pedro Alves <palves@redhat.com>
2335 Replace target_signal with gdb_signal throughout.
2337 2012-05-24 Pedro Alves <palves@redhat.com>
2341 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2342 string, instead of reusing the va_list argument.
2344 2012-05-24 Tom Tromey <tromey@redhat.com>
2346 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2349 2012-05-23 Doug Evans <dje@google.com>
2351 * symtab.c (search_symbols): Formatting fixes.
2352 (print_symbol_info): Formatting fixes.
2354 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2355 int64_t change to leb128 API.
2356 (read_encoded_value, decode_frame_entry_1): Ditto.
2357 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2358 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2359 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2360 (execute_stack_op): Ditto.
2361 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2362 (safe_read_uleb128, safe_read_sleb128): Ditto.
2363 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2364 (dwarf2_compile_expr_to_ax): Ditto.
2365 (locexpr_describe_location_piece): Ditto.
2366 (disassemble_dwarf_expression): Ditto.
2367 (locexpr_describe_location_1): Ditto.
2369 2012-05-23 Stan Shebs <stan@codesourcery.com>
2370 Kwok Cheung Yeung <kcy@codesourcery.com>
2372 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2373 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2374 (mi-cmd-info.o): New rule.
2375 * osdata.h (info_osdata_command): New declaration.
2376 * osdata.c (info_osdata_command): Change to non-static.
2377 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2378 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2379 * mi/mi-cmd-info.c: New file.
2381 2012-05-23 Doug Evans <dje@google.com>
2383 * symtab.c (search_symbols): Pass NULL for file_matcher to
2384 expand_symtabs_matching if there are no files to match.
2386 * gdbtypes.c (lookup_typename): Simplify.
2388 2012-05-23 Pedro Alves <palves@redhat.com>
2390 * arch-utils.h (default_target_signal_to_host): Delete.
2391 * arch-utils.c (default_target_signal_to_host): Delete.
2392 * gdbarch.sh (target_signal_to_host): Remove.
2393 * gdbarch.h, gdbarch.c: Regenerate.
2395 2012-05-22 Doug Evans <dje@google.com>
2397 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2399 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2400 (execute_cfa_program): Update to match API of leb128 functions.
2401 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2403 (read_unsigned_leb128, read_signed_leb128): Delete.
2404 (read_initial_length): Change type of buf argument to
2406 (read_encoded_value): Update to match API of leb128 functions.
2407 (decode_frame_entry): Change result to "const gdb_byte *", and
2408 similarly for "start" parameter.
2409 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2410 (dwarf2_build_frame_info): Change local frame_ptr to
2412 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2413 read_uleb128, read_sleb128. All callers updated.
2414 (safe_skip_leb128): New function.
2415 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2416 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2417 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2418 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2419 read_uleb128, read_sleb128.
2420 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2421 (execute_stack_op): Update to match API of leb128 functions.
2422 * dwarf2expr.h: #include "leb128.h".
2423 (read_uleb128, read_sleb128): Delete.
2424 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2425 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2426 * dwarf2loc.c (debug_loc_kind): New enum.
2427 (decode_debug_loc_addresses): New function.
2428 (decode_debug_loc_dwo_addresses): New function.
2429 (dwarf2_find_location_expression): Rewrite.
2430 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2431 (locexpr_describe_location_piece): Ditto.
2432 (disassemble_dwarf_expression): Ditto.
2433 (locexpr_describe_location_1): Ditto.
2434 (loclist_describe_location): Rewrite.
2435 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2436 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2437 (dwarf2_section_buffer_overflow_complaint): Renamed from
2438 dwarf2_macros_too_long_complaint. All callers updated.
2439 (skip_leb128): Delete.
2440 (init_cu_die_reader): Initialize reader->buffer_end.
2441 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2442 (skip_form_bytes): New arg buffer_end. All callers updated.
2443 Replace call to skip_leb128 with gdb_skip_leb128.
2444 (skip_unknown_opcode): New arg mac_end. All callers updated.
2445 (fill_in_loclist_baton): Initialize baton->from_dwo.
2447 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2449 * mips-linux-nat.c (mips_linux_read_description): Use a more
2450 verbose error message.
2452 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2454 * NEWS: Add MIPS/Linux DSP support.
2455 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2456 (SIGCONTEXT_DSPCTL): New macro.
2457 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2458 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2459 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2460 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2461 (N64_SIGCONTEXT_HI3): Likewise.
2462 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2463 (N64_SIGCONTEXT_LO3): Likewise.
2464 (N64_SIGCONTEXT_DSPCTL): Likewise.
2465 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2466 (mips_linux_o32_sigframe_init): Handle DSP registers.
2467 (mips_linux_n32n64_sigframe_init): Likewise.
2469 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2471 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2474 2012-05-22 Pedro Alves <palves@redhat.com>
2476 * target.h (store_waitstatus): Move declaration ...
2477 * inf-child.h (store_waitstatus): ... here.
2478 * target.c: Move inclusion of gdb_wait.h, and ...
2479 (store_waitstatus): ... this ...
2480 * inf-child.c: ... here.
2481 * linux-nat.c: Include inf-child.h.
2482 * rs6000-nat.c: Include inf-child.h.
2483 * spu-linux-nat.c: Include inf-child.h.
2485 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2487 * tracepoint.c (start_tracing): Add missing i18n markup.
2488 (stop_tracing, set_trace_user): Ditto.
2489 (set_trace_notes, set_trace_stop_notes): Ditto.
2491 2012-05-21 Tom Tromey <tromey@redhat.com>
2494 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2496 * value.h (value_cast_pointers): Update.
2497 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2498 (value_cast): Update.
2499 (update_search_result): New function.
2500 (do_search_struct_field): New, from search_struct_field. Check
2501 for ambiguous results.
2502 (search_struct_field): Rewrite.
2503 * infcall.c (value_arg_coerce): Update.
2504 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2505 value_cast_pointers.
2506 * ada-lang.c (ada_convert_actual): Update.
2508 2012-05-21 Tom Tromey <tromey@redhat.com>
2510 * macroexp.c (macro_stringify): Terminate the string.
2512 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2514 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2516 * auto-load.c (auto_load_expand_dir_vars): New function.
2517 (auto_load_safe_path_vec_update): Use it, remove the
2518 substitute_path_component call thanks to it.
2519 (auto_load_objfile_script): Remove the debug_file_directory processing.
2520 Use auto_load_expand_dir_vars, remove the substitute_path_component
2522 * configure: Regenerate.
2523 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2524 path. Escape $ also for $debugdir.
2525 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2526 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2528 2012-05-20 Doug Evans <dje@google.com>
2530 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2531 before use. Check for symtab->includes == NULL before scanning it.
2533 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2535 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2537 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2539 * NEWS: Add microMIPS support and "set mips compression",
2540 "show mips compression" commands.
2541 * mips-tdep.h (mips_isa): New enum.
2542 (gdbarch_tdep): Add mips_isa.
2543 (mips_pc_is_mips16): Update prototype.
2544 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2545 * mips-tdep.c (mips_compression_mips16): New variable.
2546 (mips_compression_micromips): Likewise.
2547 (mips_compression_strings): Likewise.
2548 (mips_compression_string): Likewise.
2549 (is_mips16_isa, is_micromips_isa): New functions.
2550 (is_mips16_addr): Rename to...
2551 (is_compact_addr): ... this.
2552 (unmake_mips16_addr): Likewise to...
2553 (unmake_compact_addr): ... this.
2554 (make_mips16_addr): Likewise to...
2555 (make_compact_addr): ... this.
2556 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2558 (mips_elf_make_msymbol_special): Handle microMIPS code.
2559 (msymbol_is_special): Rename to...
2560 (msymbol_is_mips16): ... this.
2561 (mips_make_symbol_special, mips_pc_is_mips16): Update
2563 (msymbol_is_mips, msymbol_is_micromips): New functions.
2564 (mips16_to_32_reg): Rename to...
2565 (mips_reg3_to_reg): ... this.
2566 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2567 (mips_pc_isa): Likewise.
2568 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2570 (mips_fetch_instruction): Pass return status instead of printing
2571 an error message if requested. Handle microMIPS code. Bail out
2573 (micromips_op): New macro.
2574 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2575 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2576 (b6s4_op, b7s3_reg): Likewise.
2577 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2578 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2579 (mips_insn_size): New function.
2580 (mips32_next_pc): Update mips_fetch_instruction call.
2581 (micromips_relative_offset7): New function.
2582 (micromips_relative_offset10): Likewise.
2583 (micromips_relative_offset16): Likewise.
2584 (micromips_pc_insn_size): Likewise.
2585 (micromips_bc1_pc): Likewise.
2586 (micromips_next_pc): Likewise.
2587 (unpack_mips16): Update mips_fetch_instruction call.
2588 (extended_mips16_next_pc): Update according to change to
2590 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2592 (mips16_scan_prologue): Update mips_fetch_instruction call.
2593 Update according to change to mips16_to_32_reg.
2594 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2595 (mips_insn16_frame_base_sniffer): Likewise.
2596 (micromips_decode_imm9): New function.
2597 (micromips_scan_prologue): Likewise.
2598 (mips_micro_frame_cache): Likewise.
2599 (mips_micro_frame_this_id): Likewise.
2600 (mips_micro_frame_prev_register): Likewise.
2601 (mips_micro_frame_sniffer): Likewise.
2602 (mips_micro_frame_unwind): New variable.
2603 (mips_micro_frame_base_address): New function.
2604 (mips_micro_frame_base): New variable.
2605 (mips_micro_frame_base_sniffer): New function.
2606 (mips32_scan_prologue): Update mips_fetch_instruction call.
2607 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2608 rather than for MIPS16.
2609 (mips_insn32_frame_base_sniffer): Likewise.
2610 (mips_addr_bits_remove): Handle microMIPS code.
2611 (deal_with_atomic_sequence): Rename to...
2612 (mips_deal_with_atomic_sequence): ... this. Update the type
2613 of the variable used to hold an instruction. Remove the ISA bit
2614 check. Update mips_fetch_instruction call.
2615 (micromips_deal_with_atomic_sequence): New function.
2616 (deal_with_atomic_sequence): Likewise.
2617 (mips_about_to_return): Handle microMIPS code. Update
2618 mips_fetch_instruction call.
2619 (heuristic_proc_start): Check for the standard MIPS ISA rather
2620 than for MIPS16. Update mips_pc_is_mips16 and
2621 mips_fetch_instruction calls. Handle microMIPS code.
2622 (mips_push_dummy_code): Handle microMIPS code.
2623 (mips_eabi_push_dummy_call): Likewise.
2624 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2625 (mips_o64_push_dummy_call): Handle microMIPS code.
2626 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2627 (is_delayed): Remove function.
2628 (mips_single_step_through_delay): Replace the call to is_delayed
2629 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2630 Handle microMIPS code.
2631 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2633 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2635 (micromips_in_function_epilogue_p): New function.
2636 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2638 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2640 (gdb_print_insn_mips): Likewise.
2641 (mips_breakpoint_from_pc): Likewise.
2642 (mips_remote_breakpoint_from_pc): New function.
2643 (mips32_instruction_has_delay_slot): Simplify making use of the
2644 updated mips_fetch_instruction interface.
2645 (micromips_instruction_has_delay_slot): New function.
2646 (mips16_instruction_has_delay_slot): Simplify making use of the
2647 updated mips_fetch_instruction interface.
2648 (mips_adjust_breakpoint_address): Check for the standard MIPS
2649 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2650 calls. Handle microMIPS code.
2651 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2652 (mips_skip_trampoline_code): Handle microMIPS code.
2653 (global_mips_compression): New function.
2654 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2655 file flags. Register the microMIPS remote breakpoint handler
2656 and heuristic frame unwinder.
2657 (show_mips_compression): New function.
2658 (_initialize_mips_tdep): Add the "set mips compression" and
2659 "show mips compression" commands.
2661 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2666 * amd64-darwin-tdep.c:
2667 * arm-symbian-tdep.c:
2671 * bfin-linux-tdep.c:
2678 * dwarf2-frame-tailcall.c:
2707 * microblaze-tdep.c:
2708 * mips-linux-tdep.c:
2716 * python/py-finishbreakpoint.c:
2717 * python/py-inferior.c:
2718 * python/py-infthread.c:
2722 * remote-m32r-sdi.c:
2726 * rs6000-aix-tdep.c:
2752 * amd64-darwin-tdep.c:
2753 * arm-symbian-tdep.c:
2754 * arm-tdep.c: Delete unused variables.
2756 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2758 Rename $ddir to $datadir.
2759 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2760 * auto-load.c (auto_load_safe_path_vec_update)
2761 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2762 * configure: Regenerate.
2763 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2764 Likewise. Remove the 'use $ddir' help string.
2766 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2768 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2769 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2771 2012-05-18 Tom Tromey <tromey@redhat.com>
2774 * valprint.h (struct value_print_options) <symbol_print>: New
2776 * valprint.c (user_print_options): Add default for symbol_print.
2777 (show_symbol_print): New function.
2778 (generic_val_print): Respect symbol_print.
2779 (_initialize_valprint): Add "print symbol" setting.
2780 * f-valprint.c (f_val_print): Respect symbol_print.
2781 * c-valprint.c (c_val_print): Respect symbol_print.
2783 * printcmd.c (print_address_symbolic): Return int. Ignore some
2785 (print_address_demangle): Return int.
2786 * defs.h: (print_address_symbolic): Return int.
2787 * value.h (print_address_demangle): Return int.
2789 2012-05-18 Tom Tromey <tromey@redhat.com>
2791 * valprint.c (val_print_string): Don't print leading space.
2792 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2793 print space before string or vtbl.
2794 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2796 * jv-valprint.c (java_value_print): Print space before string.
2797 * go-valprint.c (print_go_string): Print space before string.
2798 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2799 space before string.
2800 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2801 space before string or vtbl.
2802 * auxv.c (fprint_target_auxv): Print space after address.
2804 2012-05-18 Tom Tromey <tromey@redhat.com>
2806 * printcmd.c (print_address_demangle): Remove special case for 0.
2808 2012-05-18 Tom Tromey <tromey@redhat.com>
2810 * printcmd.c (print_address_demangle): Add 'opts' argument.
2811 * p-valprint.c (pascal_val_print): Update.
2812 * jv-valprint.c (java_val_print): Update.
2814 * valprint.c (generic_val_print): Update.
2815 (print_function_pointer_address): Add 'options' argument. Remove
2816 'addressprint' argument. Update.
2817 * m2-valprint.c (print_unpacked_pointer): Update.
2818 * gnu-v3-abi.c (print_one_vtable): Update.
2819 (gnuv3_print_method_ptr): Update.
2820 * f-valprint.c (f_val_print): Update.
2821 * cp-valprint.c (cp_print_value_fields): Update.
2822 * valprint.h (print_function_pointer_address): Update.
2823 * c-valprint.c (c_val_print): Update.
2825 2012-05-18 Tom Tromey <tromey@redhat.com>
2827 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2828 directly corresponding to the found psymtab.
2829 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2830 (dw2_find_pc_sect_symtab): Use it.
2831 * block.h (blockvector_contains_pc): Declare.
2832 * block.c (find_block_in_blockvector): New function.
2833 (blockvector_for_pc_sect): Use it.
2834 (blockvector_contains_pc): New function.
2836 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2838 * mips-tdep.h (mips_write_pc): New prototype.
2839 * mips-tdep.c (mips_write_pc): Make external, add description.
2840 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
2843 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2845 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
2847 (mips_unwind_pc, mips_write_pc): Likewise.
2848 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
2851 2012-05-17 Joel Brobecker <brobecker@adacore.com>
2853 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
2854 proc_warn, proc_error, proc_get_status, proc_flags,
2855 proc_why, proc_what, proc_nsysarg, proc_sysargs,
2856 proc_set_run_on_last_close, proc_unset_run_on_last_close,
2857 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
2858 proc_stop_process, proc_wait_for_stop, proc_run_process,
2859 proc_set_traced_signals, proc_set_traced_faults,
2860 proc_set_traced_sysentry, proc_set_traced_sysexit,
2861 proc_set_held_signals, proc_get_held_signals,
2862 proc_get_traced_signals, proc_get_traced_faults,
2863 proc_get_traced_sysentry, proc_get_traced_sysexit,
2864 proc_clear_current_fault, proc_set_current_signal,
2865 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
2866 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
2867 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
2868 proc_get_current_thread, proc_get_current_thread,
2869 proc_get_current_thread, proc_update_threads,
2870 proc_update_threads, proc_update_threads, proc_update_threads,
2871 proc_iterate_over_threads, procfs_find_new_threads,
2872 procfs_pid_to_str): Make static. Remove advance declaration.
2873 (proc_cursig): Make static. Conditionalized defintion on
2874 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
2875 (proc_syscall, proc_set_kill_on_last_close,
2876 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
2877 proc_get_pending_signals, proc_get_signal_actions,
2878 proc_trace_signal, proc_ignore_signal): Delete.
2880 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2882 * coffread.c (cs_section_address): Passing proper argument for
2883 `bfd_get_section_vma'.
2884 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
2885 `bfd_get_section_flags'.
2886 * remote.c (remote_trace_set_readonly_regions): Likewise, for
2887 `bfd_get_section_vma'.
2889 2012-05-16 Tom Tromey <tromey@redhat.com>
2892 * macrotab.h: (macro_define_special): Declare.
2893 (enum macro_special_kind): New.
2894 (struct macro_definition) <argc, replacement>: Update comments.
2895 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
2896 (macro_define_object_internal): New function.
2897 (macro_define_object): Use it.
2898 (macro_define_special): New function.
2899 (fixup_definition): New function.
2900 (macro_lookup_definition, foreach_macro_in_scope)
2901 (foreach_macro): Use fixup_definition.
2902 * macroexp.h (macro_stringify): Declare.
2903 * macroexp.c (free_buffer_return_text): New function.
2904 (stringify): Constify "arg".
2905 (macro_stringify): New function.
2906 * dwarf2read.c (macro_start_file): Call macro_define_special.
2908 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
2909 Maciej W. Rozycki <macro@mips.com>
2911 * breakpoint.h (bp_location): Add related_address member.
2912 * inferior.h (get_return_value): Take a pointer to struct value
2913 instead of struct type for the function requested.
2914 * value.h (using_struct_return): Likewise.
2915 * gdbarch.sh (return_value): Take a pointer to struct value
2916 instead of struct type for the function requested.
2917 * breakpoint.c (set_breakpoint_location_function): Initialize
2918 related_address for bp_gnu_ifunc_resolver breakpoints.
2919 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
2920 requested function's address to gdbarch_return_value.
2921 * eval.c (evaluate_subexp_standard): Pass the requested
2922 function's address to using_struct_return.
2923 * infcall.c (call_function_by_hand): Pass the requested
2924 function's address to using_struct_return and
2925 gdbarch_return_value.
2926 * infcmd.c (get_return_value): Take a pointer to struct value
2927 instead of struct type for the function requested.
2928 (print_return_value): Update accordingly.
2929 (finish_command_continuation): Likewise.
2930 * stack.c (return_command): Pass the requested function's
2931 address to using_struct_return and gdbarch_return_value.
2932 * value.c (using_struct_return): Take a pointer to struct value
2933 instead of struct type for the function requested. Pass the
2934 requested function's address to gdbarch_return_value.
2935 * python/py-finishbreakpoint.c (finish_breakpoint_object):
2936 New function_value member, replacing function_type.
2937 (bpfinishpy_dealloc): Update accordingly.
2938 (bpfinishpy_pre_stop_hook): Likewise.
2939 (bpfinishpy_init): Likewise. Record the requested function's
2941 * mips-tdep.c (mips_fval_reg): New enum.
2942 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
2943 words put in GP registers.
2944 (mips_o64_push_dummy_call): Update a comment.
2945 (mips_o32_return_value): Take a pointer to struct value instead
2946 of struct type for the function requested and use it to check if
2947 using the MIPS16 calling convention. Return the designated
2948 general purpose registers for floating-point values returned in
2950 (mips_o64_return_value): Likewise.
2951 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
2952 (ppc_sysv_abi_broken_return_value): Likewise.
2953 (ppc64_sysv_abi_return_value): Likewise.
2954 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
2955 value instead of struct type for the function requested.
2956 * amd64-tdep.c (amd64_return_value): Likewise.
2957 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
2958 * arm-tdep.c (arm_return_value): Likewise.
2959 * avr-tdep.c (avr_return_value): Likewise.
2960 * bfin-tdep.c (bfin_return_value): Likewise.
2961 * cris-tdep.c (cris_return_value): Likewise.
2962 * frv-tdep.c (frv_return_value): Likewise.
2963 * h8300-tdep.c (h8300_return_value): Likewise.
2964 (h8300h_return_value): Likewise.
2965 * hppa-tdep.c (hppa32_return_value): Likewise.
2966 (hppa64_return_value): Likewise.
2967 * i386-tdep.c (i386_return_value): Likewise.
2968 * ia64-tdep.c (ia64_return_value): Likewise.
2969 * iq2000-tdep.c (iq2000_return_value): Likewise.
2970 * lm32-tdep.c (lm32_return_value): Likewise.
2971 * m32c-tdep.c (m32c_return_value): Likewise.
2972 * m32r-tdep.c (m32r_return_value): Likewise.
2973 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
2974 * m68k-tdep.c (m68k_return_value): Likewise.
2975 (m68k_svr4_return_value): Likewise.
2976 * m88k-tdep.c (m88k_return_value): Likewise.
2977 * mep-tdep.c (mep_return_value): Likewise.
2978 * microblaze-tdep.c (microblaze_return_value): Likewise.
2979 * mn10300-tdep.c (mn10300_return_value): Likewise.
2980 * moxie-tdep.c (moxie_return_value): Likewise.
2981 * mt-tdep.c (mt_return_value): Likewise.
2982 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
2983 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
2984 (ppc_sysv_abi_broken_return_value): Likewise.
2985 (ppc64_sysv_abi_return_value): Likewise.
2986 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
2987 * rl78-tdep.c (rl78_return_value): Likewise.
2988 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
2989 * rx-tdep.c (rx_return_value): Likewise.
2990 * s390-tdep.c (s390_return_value): Likewise.
2991 * score-tdep.c (score_return_value): Likewise.
2992 * sh-tdep.c (sh_return_value_nofpu): Likewise.
2993 (sh_return_value_fpu): Likewise.
2994 * sh64-tdep.c (sh64_return_value): Likewise.
2995 * sparc-tdep.c (sparc32_return_value): Likewise.
2996 * sparc64-tdep.c (sparc64_return_value): Likewise.
2997 * spu-tdep.c (spu_return_value): Likewise.
2998 * tic6x-tdep.c (tic6x_return_value): Likewise.
2999 * v850-tdep.c (v850_return_value): Likewise.
3000 * vax-tdep.c (vax_return_value): Likewise.
3001 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3002 * xtensa-tdep.c (xtensa_return_value): Likewise.
3003 * gdbarch.c: Regenerate.
3004 * gdbarch.h: Regenerate.
3006 2012-05-15 Tom Tromey <tromey@redhat.com>
3008 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3010 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3012 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3013 of command in two error message.
3015 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3017 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3019 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3021 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3023 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3025 * NEWS (show auto-load scripts-directory): Add forgotten command.
3027 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3029 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3032 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3034 * amd64-tdep.c: Include features/i386/x32.c and
3035 features/i386/x32-avx.c.
3036 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3037 initialize_tdesc_x32_avx.
3039 2012-05-14 Stan Shebs <stan@codesourcery.com>
3042 * breakpoint.h (enum bptype): New type bp_dprintf.
3043 (struct breakpoint): New field extra_string.
3044 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3045 (create_breakpoint): Add extra_string arg.
3046 * breakpoint.c (dprintf_breakpoint_ops): New.
3047 (is_breakpoint): Add bp_dprintf.
3048 (bpstat_what): Add dprintf case.
3049 (bptype_string): Ditto.
3050 (print_one_breakpoint_location): Ditto.
3051 (init_bp_location): Ditto.
3052 (bkpt_print_mention): Ditto.
3053 (dprintf_style_enums): New array.
3054 (dprintf_style): New global.
3055 (dprintf_function): New global.
3056 (dprintf_channel): New global.
3057 (update_dprintf_command_list): New function.
3058 (update_dprintf_commands): New function.
3059 (init_breakpoint_sal): Add extra_string argument, handle it.
3060 (create_breakpoint_sal): Add extra_string argument.
3061 (create_breakpoints_sal): Add extra_string argument, update callers.
3062 (find_condition_and_thread): Add extra argument.
3063 (create_breakpoint): Add extra_string argument, record it.
3064 (dprintf_command): New function.
3065 (break_command_1): Add arg to create_breakpoint call.
3066 (handle_gnu_v3_exceptions): Ditto.
3067 (trace_command): Ditto.
3068 (ftrace_command): Ditto.
3069 (strace_command): Ditto.
3070 (bkpt_print_mention): Add dprintf case.
3071 (create_breakpoint_sal_default): Add extra_string argument.
3072 (_initialize_breakpoint): Add new commands.
3073 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3074 * python/py-breakpoint.c (bppy_init): Ditto.
3075 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3077 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3079 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3081 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3083 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3086 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3088 Add a new function gdb.find_pc_line to the Python API.
3089 * NEWS (Python Scripting): Add entry about the new function.
3090 * python/python.c (gdbpy_find_pc_line): New function which
3091 implements gdb.find_pc_line.
3092 (GdbMethods): Add entry for the new function.
3094 2012-05-12 Pedro Alves <palves@redhat.com>
3096 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3097 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3099 2012-05-12 Eli Zaretskii <eliz@gnu.org>
3101 * inferior.c: Include completer.h
3102 (initialize_inferiors): Set completer of add-inferior to
3105 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3107 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3108 gdbarch_ptr_bit for x32 core dump.
3110 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3112 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3113 and features/i386/x32-avx-linux.c.
3115 2012-05-11 Stan Shebs <stan@codesourcery.com>
3116 Kwok Cheung Yeung <kcy@codesourcery.com>
3118 * NEWS: Describe new info os commands.
3119 * common/linux-osdata.c (PID_T, TIME_T): Define.
3120 (MAX_PID_T_STRLEN): New.
3121 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3123 (command_from_pid): Add comment. Change to use PID_T.
3124 (commandline_from_pid): Change to use PID_T.
3125 (user_from_pid): Add comment.
3126 (get_process_owner): Add comment. Change to use PID_T and
3128 (get_number_of_cpu_cores): Add comment.
3129 (get_cores_used_by_process): Add comment. Change to use PID_T and
3131 (linux_xfer_osdata_processes): Change to use PID_T and
3133 (compare_processes): New function.
3134 (linux_xfer_osdata_processgroups): New function.
3135 (linux_xfer_osdata_threads): Change to use PID_T.
3136 (linux_xfer_osdata_fds): New function.
3137 (format_socket_state, print_sockets): New functions.
3138 (union socket_addr): New union.
3139 (linux_xfer_osdata_isockets): New function.
3140 (time_from_time_t, group_from_gid): New functions.
3141 (linux_xfer_osdata_shm): New function.
3142 (linux_xfer_osdata_sem): New function.
3143 (linux_xfer_osdata_msg): New function.
3144 (linux_xfer_osdata_modules): New function.
3145 (osdata_table): Add new entries.
3146 * common/buffer.c (buffer_xml_printf): Add support for long and
3147 long long format specifiers.
3149 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3151 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3152 (tdesc_x32_avx_linux): Likewise.
3154 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3156 Implement multi-component --with-auto-load-dir.
3157 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3159 (--with-auto-load-safe-path): Update the default value description.
3160 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3162 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3163 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3164 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3165 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3166 "set auto-load scripts-directory".
3167 * config.in: Regenerate.
3168 * configure: Regenerate.
3169 * configure.ac (--with-auto-load-dir): New configure option.
3170 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3172 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3174 Provide $ddir substitution for --with-auto-load-safe-path.
3175 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3177 * auto-load.c: Include observer.h.
3178 (auto_load_safe_path_vec_update): Call substitute_path_component for
3179 each component. New variable ddir_subst.
3180 (auto_load_gdb_datadir_changed): New function.
3181 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3182 AUTO_LOAD_SAFE_PATH. New comment.
3183 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3184 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3185 * config.in: Regenerate.
3186 * configure: Regenerate.
3187 * configure.ac (--auto-load-safe-path): Rename
3188 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3189 GDB_DATADIR/auto-load.
3190 * defs.h (substitute_path_component): New declaration.
3191 * top.c: Include observer.h.
3192 (set_gdb_datadir): New function.
3193 (init_main): Install it for "set data-directory".
3194 * utils.c (substitute_path_component): New function.
3196 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3198 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3199 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3200 DEBUG_FILE_DIRECTORY. Handle multiple components of
3201 DEBUG_FILE_DIRECTORY.
3203 2012-05-10 Tom Tromey <tromey@redhat.com>
3205 * dwarf2read.c (recursively_write_psymbols): New function.
3206 (write_psymtabs_to_index): Use it.
3208 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3210 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3211 (load_partial_comp_unit): Update.
3212 (queue_comp_unit): Add argument 'pretend_language'.
3213 (process_queue): Update.
3214 (psymtab_to_symtab_1): Skip dependencies that have a user.
3215 (load_partial_comp_unit_reader): Give meaning to the 'data'
3217 (load_full_comp_unit): Add 'pretend_language' argument.
3218 (process_full_comp_unit): Add 'pretend_language' argument. Set
3220 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3222 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3223 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3225 (prepare_one_comp_unit): Add 'pretend_language' argument.
3227 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3228 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3229 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3230 (dw2_do_instantiate_symtab): Check whether symtab was read in
3232 (dw2_instantiate_symtab): Add assertion. Call
3233 process_cu_includes.
3234 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3235 (partial_symtab_p): New typedef.
3236 (set_partial_user): New function.
3237 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3238 (scan_partial_symbols): Add imported CU to imported_symtabs.
3239 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3240 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3241 (get_symtab, recursively_compute_inclusions)
3242 (compute_symtab_includes, process_cu_includes)
3243 (process_imported_unit_die): New functions.
3244 (process_die) <DW_TAG_imported_unit>: New case.
3245 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3247 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3249 (struct partial_die_info) <locdesc>: Remove.
3251 (process_psymtab_comp_unit): Add 'read_partial' argument.
3253 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3254 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3255 (add_partial_symbol): Update.
3256 (process_die): Handle DW_TAG_partial_unit.
3257 (read_file_scope): Update comment.
3258 (load_partial_dies): Handle DW_TAG_imported_unit.
3259 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3260 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3262 2012-05-10 Tom Tromey <tromey@redhat.com>
3264 * cc-with-dwz.sh: New file.
3266 2012-05-10 Tom Tromey <tromey@redhat.com>
3268 * symtab.h (struct symtab) <includes, user>: New fields.
3269 * block.h (struct block_iterator) <d, idx, which>: New fields.
3270 * block.c (initialize_block_iterator, find_iterator_symtab)
3271 (block_iterator_step, block_iter_name_step)
3272 (block_iter_match_step): New functions.
3273 (block_iterator_first, block_iterator_next)
3274 (block_iter_name_first, block_iter_name_next)
3275 (block_iter_match_first, block_iter_match_next): Rewrite.
3276 (get_block_symtab): New function.
3278 2012-05-10 Tom Tromey <tromey@redhat.com>
3280 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3282 * jit.c (finalize_symtab): Use allocate_global_block,
3284 * buildsym.c (finish_block_internal): New function, from old
3286 (finish_block): Rewrite.
3287 (end_symtab): Use finish_block_internal, set_block_symtab.
3288 * block.h (struct global_block): New.
3289 (allocate_global_block, set_block_symtab): Declare.
3290 * block.c (allocate_global_block, set_block_symtab): New
3293 2012-05-10 Tom Tromey <tromey@redhat.com>
3295 * psymtab.c (partial_map_expand_apply): Add assertion.
3296 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3297 (psymtab_to_symtab): Find unshared psymtab.
3298 (dump_psymtab): Print including psymtabs.
3299 (recursively_search_psymtabs): New function.
3300 (expand_symtabs_matching_via_partial): Use it.
3301 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3303 (enum psymtab_search_status): New.
3305 2012-05-10 Tom Tromey <tromey@redhat.com>
3307 * tracepoint.c (scope_info): Update.
3308 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3309 (find_pc_sect_symtab, search_symbols)
3310 (default_make_symbol_completion_list_break_on)
3311 (make_file_symbol_completion_list): Update.
3312 * symmisc.c (dump_symtab_1): Update.
3313 * stack.c (print_frame_args, iterate_over_block_locals)
3314 (print_frame_labels, iterate_over_block_arg_vars): Update.
3315 * python/py-block.c (block_object) <dict>: Remove.
3317 <iter>: Change type.
3318 (blpy_iter): Update.
3319 (blpy_block_syms_iternext): Update.
3320 * psymtab.c (map_block): Use block iterators.
3321 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3322 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3323 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3324 * infrun.c (check_exception_resume): Update.
3325 * cp-support.c (make_symbol_overload_list_block): Update.
3326 * coffread.c (patch_opaque_types): Update.
3327 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3328 * block.h (struct block_iterator): New.
3329 (block_iterator_first, block_iterator_next, block_iter_name_first)
3330 (block_iter_name_next, block_iter_match_first)
3331 (block_iter_match_next): Declare.
3332 (ALL_BLOCK_SYMBOLS): Redefine.
3333 * block.c (block_iterator_first, block_iterator_next)
3334 (block_iter_name_first, block_iter_name_next)
3335 (block_iter_match_first, block_iter_match_next): New functions.
3336 * ada-lang.c (ada_add_block_symbols)
3337 (ada_make_symbol_completion_list): Use block iterator.
3339 2012-05-10 Tom Tromey <tromey@redhat.com>
3341 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3342 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3343 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3344 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3345 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3348 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3350 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3351 print-file-var-lib2.c, print-file-var-main.c and
3352 print-file-var.exp (located in gdb/testsuite/gdb.base).
3354 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3356 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3357 try locating the symbol in the symbol's own objfile first, before
3358 extending the search to all objfiles.
3359 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3360 out of lookup_symbol_aux_symtabs.
3361 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3362 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3363 Do not search EXCLUDE_OBJFILE.
3364 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3365 (lookup_symbol_global): Search for matches in the block's objfile
3366 first, before searching all other objfiles.
3368 2012-05-10 Tristan Gingold <gingold@adacore.com>
3370 * printcmd.c (set_command): Add pre/post inc/dec.
3372 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3374 * gdb.1: Document -ex option.
3376 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3378 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3379 * inferior.h (AT_SYMBOL): Delete.
3381 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3383 * mips-tdep.c (mips_push_dummy_code): New function.
3384 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3385 ON_STACK and install mips_push_dummy_code as our gdbarch
3386 push_dummy_code routine.
3388 2012-05-09 Pedro Alves <palves@redhat.com>
3390 * target.c (set_maintenance_target_async_permitted): Rename to ...
3391 (set_target_async_command): ... this.
3392 (show_maintenance_target_async_permitted): Rename to ...
3393 (show_target_async_command): ... this.
3394 (initialize_targets): Adjust.
3396 2012-05-08 Doug Evans <dje@google.com>
3398 * go-exp.y (classify_name): Add missing assignment of fields of
3401 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3403 Display the ">" prompt in interactive mode while reading canned
3404 commands, even when the current interpreter is MI.
3406 * interps.c (interp_set_temp): New function.
3408 * interps.h (interp_set_temp): Add prototype.
3410 * cli/cli-script.c (restore_interp): New cleanup function.
3411 (read_command_lines): Temporarily override the current interpreter
3412 with CLI and arrange for restoring the original one.
3414 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3416 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3418 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3420 * probe.c (parse_probes): Move conditional to check for
3421 debuginfo files from here...
3422 * stap-probe.c (stap_get_probes): ... to here.
3424 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3425 H.J. Lu <hongjiu.lu@intel.com>
3427 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3428 `movl %esp, %ebp' for the X32 ABI.
3430 2012-05-07 Tom Tromey <tromey@redhat.com>
3432 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3434 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3435 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3436 (dwarf_stack_op_name): Remove.
3437 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3438 (decode_locdesc): Use get_DW_OP_name.
3439 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3440 (dwarf2_compile_expr_to_ax): Likewise.
3441 (disassemble_dwarf_expression): Likewise.
3442 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3444 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3446 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3447 (sh_linux_sigtramp_cache): New function.
3448 (sh_linux_sigreturn_init): New function.
3449 (sh_linux_rt_sigreturn_init): New function.
3450 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3452 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3454 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3455 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3456 (sh_linux_init_abi): Add init calls to register new tramp_frame
3457 definitions under 32-bit SH, update comments.
3459 2012-05-07 Pedro Alves <palves@redhat.com>
3463 * amd64-linux-tdep.c: Include glibc-tdep.h.
3464 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3465 gdbarch_skip_solib_resolver callback.
3467 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3469 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3470 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3471 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3472 (add_auto_load_safe_path): Change the error message.
3473 (_initialize_auto_load): Change the "safe-path" help text.
3474 * configure: Regenerate
3475 * configure.ac (--without-auto-load-safe-path): Set
3476 WITH_AUTO_LOAD_SAFE_PATH to /.
3478 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3480 * stap-probe.h: Do not include unecessary `probe.h'.
3482 2012-05-05 Alan Modra <amodra@gmail.com>
3484 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3485 bfd_und_section_ptr.
3486 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3487 and bfd_com_section_ptr.
3489 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3491 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3493 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3495 * windows-nat.h (segment_register_p_ftype): New typedef.
3496 (windows_set_segment_register_p): Add declaration.
3497 * windows-nat.c (segment_register_p): New static global.
3498 (windows_set_segment_register_p): New function.
3499 (do_windows_fetch_inferior_registers): Add special handling
3500 for segment registers.
3501 * amd64-windows-nat.c: #include "amd64-tdep.h".
3502 (amd64_windows_segment_register_p): New function.
3503 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3504 * i386-windows-nat.c: #include "i386-tdep.h".
3505 (i386_windows_segment_register_p): New function.
3506 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3508 2012-05-04 Tristan Gingold <gingold@adacore.com>
3510 * printcmd.c (set_command): Emit a warning if the expression is not
3513 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3515 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3518 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3520 * stap-probe.c (stap_is_operator): Change declaration.
3521 (stap_get_opcode): Change return value.
3522 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3523 `stap_parse_argument_1'.
3525 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3527 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3530 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3532 Add two new methods global_block and static_block to gdb.Symtab
3534 * NEWS (Python scripting): Add entry about the new methods.
3535 * python/py-symtab.c (stpy_global_block): New function which
3536 implements the gdb.Symtab.global_block() method.
3537 (stpy_static_block): New function which implements the
3538 gdb.Symtab.static_block() method.
3539 (symtab_object_methods): Add entries for the two new methods.
3541 2012-05-03 Doug Evans <dje@google.com>
3543 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3546 2012-05-03 Yao Qi <yao@codesourcery.com>
3548 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3550 (i386_process_record): Ditto.
3552 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3554 * infcall.c (unwind_on_signal_p): Make static.
3556 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3558 * sol-thread.c (solaris_pid_to_str): Make static.
3559 (_initialize_sol_thread): Add prototype.
3561 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3563 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3565 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3567 * MAINTAINERS: Remove myself.
3569 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3571 Fix --without-auto-load-safe-path for MS-Windows host platform.
3572 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3574 2012-05-02 Eli Zaretskii <eliz@gnu.org>
3576 * gdb_curses.h: Undefine KEY_EVENT before including curses
3577 headers. Move "#undef MOUSE_MOVED" before any curses header
3580 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3582 * features/i386/i386-mmx-linux.c: Regenerate.
3583 * features/rs6000/powerpc-32.c: Likewise.
3584 * features/rs6000/powerpc-32l.c: Likewise.
3585 * features/rs6000/powerpc-403.c: Likewise.
3586 * features/rs6000/powerpc-403gc.c: Likewise.
3587 * features/rs6000/powerpc-405.c: Likewise.
3588 * features/rs6000/powerpc-505.c: Likewise.
3589 * features/rs6000/powerpc-601.c: Likewise.
3590 * features/rs6000/powerpc-602.c: Likewise.
3591 * features/rs6000/powerpc-603.c: Likewise.
3592 * features/rs6000/powerpc-604.c: Likewise.
3593 * features/rs6000/powerpc-64.c: Likewise.
3594 * features/rs6000/powerpc-64l.c: Likewise.
3595 * features/rs6000/powerpc-750.c: Likewise.
3596 * features/rs6000/powerpc-860.c: Likewise.
3597 * features/rs6000/powerpc-e500.c: Likewise.
3598 * features/rs6000/powerpc-e500l.c: Likewise.
3599 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3600 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3601 * features/rs6000/rs6000.c: Likewise.
3603 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3605 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3607 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3608 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3609 (stap_parse_argument) <e>: Likewise.
3610 (handle_stap_probe) <byte_order>: Likewise.
3612 2012-04-30 Doug Evans <dje@google.com>
3614 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3615 init_and_read_dies_worker. All callers updated.
3616 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3617 replaced with init_cutu_and_read_dies.
3618 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3619 (find_partial_die): Remove FIXME. Don't free current CU.
3621 2012-04-30 Sterling Augustine <saugustine@google.com>
3623 * contrib: New directory.
3624 * contrib/test_pubnames_and_indexes.py: New file.
3626 2012-04-30 Doug Evans <dje@google.com>
3628 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3629 All callers updated.
3630 (init_cu_die_reader): Verify the section is non-empty.
3631 (dwarf_decode_line_header): Don't dereference section->asection
3632 until we know the section is present.
3634 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3636 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3639 2012-04-29 Yao Qi <yao@codesourcery.com>
3641 * gdb-code-style.el: New hook gdb-markup-hook
3642 and gdb-comment-hook.
3644 2012-04-28 Doug Evans <dje@google.com>
3646 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3647 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3649 * symfile.h (dwarf2_debug_sections): New member addr.
3650 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3651 (ctx_no_get_addr_index): New function.
3652 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3653 (ctx_no_get_addr_index): Declare.
3654 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3655 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3656 (dwarf_expr_ctx_funcs): Update.
3657 (needs_get_addr_index): New function.
3658 (needs_frame_ctx_funcs): Update.
3659 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3660 * dwarf2read.c: #include "gdbcore.h".
3661 (dwarf2_per_objfile): New members addr, dwo_files.
3662 (dwarf2_elf_names): Add entry for addr.
3663 (struct dwo_section_names): New type.
3664 (dwo_section_names): New static global.
3665 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3666 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3667 old debug_types_section member updated to use this.
3668 Rename member debug_types_section to info_or_types_section,
3670 (signatured_type): Rename member type_offset to type_offset_in_tu,
3671 all uses updated. New member type_offset_in_section.
3672 (struct dwo_sections): New type.
3673 (struct dwo_unit): New type.
3674 (struct dwo_file): New type.
3675 (die_reader_specs): New member dwo_file.
3676 (dwarf2_locate_sections): Watch for .debug_addr.
3677 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3678 (dwarf2_read_section): Get bfd of section from bfd's asection,
3680 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3681 (create_signatured_type_table_from_index): Initialize
3682 sig_type->info_or_types_section.
3683 (dw2_get_file_names): Statement lists for type units with DWO files
3684 live in the DWO file.
3685 (create_debug_types_hash_table): New function.
3686 (create_all_type_units): Rewrite.
3687 (init_cu_die_reader): New arg dwo_file, all callers updated.
3688 (init_and_read_dies_worker): Get section from
3689 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3690 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3691 continue reading the CU/TU from there.
3692 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3693 updated. Get section from this_cu->info_or_types_section.
3694 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3695 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3696 DW_FORM_GNU_str_index.
3697 (hash_dwo_file, eq_dwo_file): New functions.
3698 (allocate_dwo_file_hash_table): New function.
3699 (hash_dwo_unit, eq_dwo_unit): New functions.
3700 (allocate_dwo_unit_table): New function.
3701 (dwarf2_locate_dwo_sections): New function.
3702 (struct create_dwo_info_table_data): New type.
3703 (create_debug_info_hash_table_reader): New function.
3704 (create_debug_info_hash_table): New function.
3705 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3706 (lookup_dwo_file): New function.
3707 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3708 (free_dwo_file, free_dwo_file_cleanup): New functions.
3709 (free_dwo_file_from_slot, free_dwo_files): New functions.
3710 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3711 (dwarf2_record_block_ranges): Ditto.
3712 (read_partial_die): Ditto.
3713 (process_enumeration_scope): Update to use type_offset_in_section.
3714 (read_full_die_1): New function.
3715 (read_full_die): Rewrite.
3716 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3717 DW_FORM_GNU_str_index.
3718 (read_addr_index_1, read_addr_index): New functions.
3719 (read_addr_index_from_leb128): New function.
3720 (struct dwarf2_read_addr_index_data): New type.
3721 (dwarf2_read_addr_index_reader): New function.
3722 (dwarf2_read_addr_index): New function.
3723 (read_str_index): New function.
3724 (leb128_size): New function.
3725 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3726 If processing a type unit from a DWO file, get the line section
3728 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3729 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3730 DW_FORM_GNU_str_index.
3731 (lookup_die_type): Check whether section offset of type's die is
3732 known before looking it up. Remove assert. Condition can
3733 legimately happen for inter-cu type references.
3734 (dwarf_attr_name): Handle Fission attributes.
3735 (dwarf_form_name): Handle Fission forms.
3736 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3737 DW_FORM_GNU_str_index.
3738 (follow_die_sig): Update to use type_offset_in_section.
3739 (decode_locdesc): New case DW_OP_GNU_addr_index.
3740 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3741 DW_FORM_GNU_str_index.
3742 (cu_debug_loc_section): New function.
3743 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3744 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3745 Free DWO files if present.
3746 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3748 Refactor DIE reading.
3749 * dwarf2read.c (dwarf2_per_objfile): Replace members
3750 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3751 (die_reader_specs): New member "die_section". Temporarily make
3752 member "buffer" non-const, pending constifying all info_ptr uses.
3753 (die_reader_func_ftype): New typedef.
3754 (dw2_get_file_names_reader): New function.
3755 (dw2_get_file_names): Rewrite.
3756 (read_and_check_type_unit_head): Rename arg type_offset to
3758 (create_all_type_units): Improve debugging message.
3759 Improve dummy type unit check.
3760 (init_cu_die_reader): New arg "section". All callers updated.
3761 (init_and_read_dies_worker): New function.
3762 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3763 (init_cutu_and_read_dies_no_follow): New function.
3764 (init_cutu_and_read_dies_simple): New function.
3765 (process_psymtab_comp_unit_reader): New function.
3766 (process_psymtab_comp_unit): Delete args section,
3767 is_debug_types_section. Rewrite. All callers updated.
3768 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3769 All callers updated. Rewrite.
3770 (load_partial_comp_unit_reader): New function.
3771 (load_partial_comp_unit): Rewrite.
3772 (skip_children): New arg reader. Delete args buffer, cu.
3773 All callers updated.
3774 (skip_one_die): New arg reader. Delete args buffer, cu.
3775 All callers updated.
3776 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3777 All callers updated.
3778 (load_full_comp_unit_reader): New function.
3779 (load_full_comp_unit): Rewrite.
3780 (read_comp_unit): Delete.
3781 (read_die_and_children_1): Delete, contents moved ...
3782 (read_die_and_children): ... here.
3783 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3784 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3785 All callers updated.
3786 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3787 All callers updated.
3788 (find_partial_die): Rewrite load_all_dies support.
3789 (read_attribute_value): New arg reader. Delete args abfd, cu.
3790 All callers updated.
3791 (read_attribute): New arg reader. Delete args abfd, cu.
3792 All callers updated.
3793 (load_full_type_unit): Add assert.
3794 (read_signatured_type_reader): New function.
3795 (read_signatured_type): Rewrite.
3796 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3797 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3798 All callers updated. Set per_cu->cu = NULL after freeing it.
3799 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3800 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3801 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3802 (set_die_type): Update.
3803 (get_die_type_at_offset): Update.
3804 (read_file_scope): Call prepare_one_comp_unit.
3805 (read_type_unit_scope): Ditto.
3806 (prepare_one_comp_unit): Set producer if present.
3808 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
3810 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3811 gettext function on `error'.
3813 2012-04-27 Doug Evans <dje@google.com>
3815 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3818 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3819 Tom Tromey <tromey@redhat.com>
3821 * breakpoint.c (struct breakpoint_objfile_data)
3822 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3823 <exception_probes>: New fields.
3824 (free_breakpoint_probes): New function.
3825 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3826 `_Unwind_DebugHook'.
3827 (create_exception_master_breakpoint): Likewise.
3828 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3829 * infrun.c: Including necessary header files for handling SystemTap
3831 (handle_inferior_event): Handling longjmp breakpoint and exceptions
3832 via SystemTap probes.
3833 (check_exception_resume): Remove `func' argument. Handle exception
3834 unwinding breakpoint set via a SystemTap probe.
3835 (insert_exception_resume_from_probe): New function.
3837 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3838 Tom Tromey <tromey@redhat.com>
3839 Jan Kratochvil <jan.kratochvil@redhat.com>
3841 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
3842 (COMMON_OBS): Likewise.
3843 (HFILES_NO_SRCDIR): Add `probe'.
3844 * NEWS: Mention support for static and SystemTap probes.
3845 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
3846 SystemTap probes' arguments parser.
3847 * arm-linux-tdep.c: Including headers needed to perform the parsing
3848 of SystemTap probes' arguments.
3849 (arm_stap_is_single_operand): New function.
3850 (arm_stap_parse_special_token): Likewise.
3851 (arm_linux_init_abi): Initializing proper fields used by SystemTap
3852 probes' arguments parser.
3853 * ax-gdb.c (require_rvalue): Removing static declaration.
3854 (gen_expr): Likewise.
3855 * ax-gdb.h (gen_expr): Declaring function.
3856 (require_rvalue): Likewise.
3857 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
3858 (bkpt_probe_breakpoint_ops): New variable.
3859 (momentary_breakpoint_from_master): Set the `probe' value.
3860 (add_location_to_breakpoint): Likewise.
3861 (break_command_1): Using proper breakpoint_ops according to the
3862 argument passed by the user in the command line.
3863 (bkpt_probe_insert_location): New function.
3864 (bkpt_probe_remove_location): Likewise.
3865 (bkpt_probe_create_sals_from_address): Likewise.
3866 (bkpt_probe_decode_linespec): Likewise.
3867 (tracepoint_probe_create_sals_from_address): Likewise.
3868 (tracepoint_probe_decode_linespec): Likewise.
3869 (tracepoint_probe_breakpoint_ops): New variable.
3870 (trace_command): Using proper breakpoint_ops according to the
3871 argument passed by the user in the command line.
3872 (initialize_breakpoint_ops): Initializing breakpoint_ops for
3873 static probes on breakpoints and tracepoints.
3874 * breakpoint.h (struct bp_location) <probe>: New field.
3875 * cli-utils.c (skip_spaces_const): New function.
3876 (extract_arg): Likewise.
3877 * cli-utils.h (skip_spaces_const): Likewise.
3878 (extract_arg): Likewise.
3879 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
3880 * configure.ac: Append `stap-probe.o' to be generated when ELF
3882 * configure: Regenerate.
3883 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
3884 * elfread.c: Include `probe.h' and `arch-utils.h'.
3885 (probe_key): New variable.
3886 (elf_get_probes): New function.
3887 (elf_get_probe_argument_count): Likewise.
3888 (elf_evaluate_probe_argument): Likewise.
3889 (elf_compile_to_ax): Likewise.
3890 (elf_symfile_relocate_probe): Likewise.
3891 (stap_probe_key_free): Likewise.
3892 (elf_probe_fns): New variable.
3893 (elf_sym_fns): Add `sym_probe_fns' value.
3894 (elf_sym_fns_lazy_psyms): Likewise.
3895 (elf_sym_fns_gdb_index): Likewise.
3896 (_initialize_elfread): Initialize objfile cache for static
3898 * gdb_vecs.h (struct probe): New forward declaration.
3899 (probe_p): New VEC declaration.
3900 * gdbarch.c: Regenerate.
3901 * gdbarch.h: Regenerate.
3902 * gdbarch.sh (stap_integer_prefix): New variable.
3903 (stap_integer_suffix): Likewise.
3904 (stap_register_prefix): Likewise.
3905 (stap_register_suffix): Likewise.
3906 (stap_register_indirection_prefix): Likewise.
3907 (stap_register_indirection_suffix): Likewise.
3908 (stap_gdb_register_prefix): Likewise.
3909 (stap_gdb_register_suffix): Likewise.
3910 (stap_is_single_operand): New function.
3911 (stap_parse_special_token): Likewise.
3912 (struct stap_parse_info): Forward declaration.
3913 * i386-tdep.c: Including headers needed to perform the parsing
3914 of SystemTap probes' arguments.
3915 (i386_stap_is_single_operand): New function.
3916 (i386_stap_parse_special_token): Likewise.
3917 (i386_elf_init_abi): Initializing proper fields used by SystemTap
3918 probes' arguments parser.
3919 * i386-tdep.h (i386_stap_is_single_operand): New function.
3920 (i386_stap_parse_special_token): Likewise.
3921 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
3922 * mipsread.c (ecoff_sym_fns): Likewise.
3923 * objfiles.c (objfile_relocate1): Support relocation for static
3925 * parse.c (prefixify_expression): Remove static declaration.
3926 (initialize_expout): Likewise.
3927 (reallocate_expout): Likewise.
3928 * parser-defs.h (initialize_expout): Declare function.
3929 (reallocate_expout): Likewise.
3930 (prefixify_expression): Likewise.
3931 * ppc-linux-tdep.c: Including headers needed to perform the parsing
3932 of SystemTap probes' arguments.
3933 (ppc_stap_is_single_operand): New function.
3934 (ppc_stap_parse_special_token): Likewise.
3935 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
3936 probes' arguments parser.
3937 * probe.c: New file, for generic statically defined probe support.
3938 * probe.h: Likewise.
3939 * s390-tdep.c: Including headers needed to perform the parsing of
3940 SystemTap probes' arguments.
3941 (s390_stap_is_single_operand): New function.
3942 (s390_gdbarch_init): Initializing proper fields used by SystemTap
3943 probes' arguments parser.
3944 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
3945 * stap-probe.c: New file, for SystemTap probe support.
3946 * stap-probe.h: Likewise.
3947 * symfile.h: Include `gdb_vecs.h'.
3948 (struct sym_probe_fns): New struct.
3949 (struct sym_fns) <sym_probe_fns>: New field.
3950 * symtab.c (init_sal): Initialize `probe' field.
3951 * symtab.h (struct probe): Forward declaration.
3952 (struct symtab_and_line) <probe>: New field.
3953 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
3955 (stop_tracing): Likewise.
3956 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
3958 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3959 Tom Tromey <tromey@redhat.com>
3961 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
3962 and to compile agent expressions.
3963 * infrun.c (siginfo_make_value): New argument `ignore'.
3964 (siginfo_funcs): New struct.
3965 (_initialize_infrun): New argument when calling
3966 `create_internalvar_type_lazy'.
3967 * thread.c (thread_id_make_value): New argument `ignore'.
3968 (thread_funcs): New struct.
3969 (_initialize_thread): New argument when calling
3970 `create_internalvar_type_lazy'.
3971 * tracepoint.c (sdata_make_value): New argument `ignore'.
3972 (sdata_funcs): New struct.
3973 (_initialize_tracepoint): New argument when calling
3974 `create_internalvar_type_lazy'.
3975 * value.c (make_value): New struct.
3976 (create_internalvar_type_lazy): New argument `data'.
3977 (compile_internalvar_to_ax): New function.
3978 (value_of_internalvar): Properly handling `make_value' case.
3979 (clear_internalvar): Likewise.
3980 (show_convenience): Adding `TRY_CATCH' block.
3981 * value.h (internalvar_make_value): Delete, replace by...
3982 (struct internalvar_funcs): ... this.
3983 (create_internalvar_type_lazy) <fun>: Delete argument.
3984 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
3985 (compile_internalvar_to_ax): New function.
3986 * windows-tdep.c (tlb_make_value): New argument `ignore'.
3987 (tlb_funcs): New struct.
3988 (_initialize_windows_tdep): New argument when calling
3989 `create_internalvar_type_lazy'.
3991 2012-04-27 Mark Wielaard <mjw@redhat.com>
3993 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
3994 see whether it is an address or a constant offset from DW_AT_low_pc.
3995 (dwarf2_record_block_ranges): Likewise.
3996 (read_partial_die): Likewise.
3998 2012-04-26 Mark Wielaard <mjw@redhat.com>
4000 * MAINTAINERS (Write After Approval): Add myself to the list.
4002 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4004 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4005 (proc_prettyprint_signal): Likewise.
4006 (proc_prettyprint_faultset): Likewise.
4007 (proc_prettyprint_fault): Likewise.
4008 (proc_prettyprint_actionset): Likewise.
4009 (proc_prettyprint_flags): Move to new proc-flags.c section.
4010 (proc_prettyfprint_flags): New prototype.
4011 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4012 (proc_syscall, proc_cursig): Likewise.
4013 (proc_set_kill_on_last_close): Likewise.
4014 (proc_unset_kill_on_last_close): Likewise.
4015 (proc_set_watchpoint): Make static.
4016 (proc_delete_dead_threads): Likewise.
4017 (procfs_set_watchpoint): Likewise.
4018 (_initialize_procfs): Add prototype.
4019 * proc-events.c: Include proc-utils.h.
4020 (init_syscall_table): Make static.
4021 * proc-api.c (_initialize_proc_api): Add prototype.
4022 * proc-flags.c: Include proc-utils.h.
4024 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4026 * configure.ac: Add AC_ARG_PROGRAM.
4027 * configure: Regenerate.
4029 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4031 Fix DW_AT_lower_bound defaults for DWARF-4+.
4032 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4033 high. New variable low_default_is_valid. Implement DWARF-4+
4034 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4035 no default by the DWARF standard.
4037 2012-04-26 Maciej W. Rozycki <macro@mips.com>
4038 Maciej W. Rozycki <macro@codesourcery.com>
4040 * infrun.c (handle_inferior_event): Move the check for return
4041 trampolines ahead of the check for function trampolines.
4042 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4043 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4044 (mips_str_mips16_ret_stub): Likewise.
4045 (mips_str_call_fp_stub): Likewise.
4046 (mips_str_call_stub): Likewise.
4047 (mips_str_fn_stub): Likewise.
4048 (mips_str_pic): Likewise.
4049 (mips_in_frame_stub): New function.
4050 (mips_unwind_pc): Return the return address rather than the PC
4051 if the PC of an intermediate frame is inside a call thunk.
4052 (mips_is_stub_suffix): New function.
4053 (mips_is_stub_mode): Likewise.
4054 (mips_get_mips16_fn_stub_pc): Likewise.
4055 (mips_skip_mips16_trampoline_code): Update to handle all the
4056 currently generated stub types. Don't recurse into __fn_stub
4057 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4058 Use cooked register accesses.
4059 (mips_in_return_stub): Reintroduce function.
4060 (mips_skip_trampoline_code): Traverse trampolines recursively.
4061 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4063 2012-04-26 Joel Brobecker <brobecker@adacore.com>
4067 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4069 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4070 * features/arm-with-m-vfp-d16.xml: New file. Describes
4071 Cortex-M with VFPv4-sp-d16 FPU register layout.
4072 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4073 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4074 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4075 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4076 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4078 2012-04-25 Doug Evans <dje@google.com>
4080 * cli/cli-decode.c (print_doc_line): Use stream instead of
4083 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4085 * features/arm-with-iwmmxt.c: Regenerate.
4086 * features/arm-with-m-fpa-layout.c: Likewise.
4087 * features/arm-with-m.c: Likewise.
4088 * features/arm-with-neon.c: Likewise.
4089 * features/arm-with-vfpv2.c: Likewise.
4090 * features/arm-with-vfpv3.c: Likewise.
4091 * features/mips-dsp-linux.c: Likewise.
4092 * features/mips-linux.c: Likewise.
4093 * features/mips64-dsp-linux.c: Likewise.
4094 * features/mips64-linux.c: Likewise.
4095 * features/s390-linux32.c: Likewise.
4096 * features/s390-linux32v1.c: Likewise.
4097 * features/s390-linux32v2.c: Likewise.
4098 * features/s390-linux64.c: Likewise.
4099 * features/s390-linux64v1.c: Likewise.
4100 * features/s390-linux64v2.c: Likewise.
4101 * features/s390x-linux64.c: Likewise.
4102 * features/s390x-linux64v1.c: Likewise.
4103 * features/s390x-linux64v2.c: Likewise.
4104 * features/tic6x-c62x-linux.c: Likewise.
4105 * features/tic6x-c62x.c: Likewise.
4106 * features/tic6x-c64x-linux.c: Likewise.
4107 * features/tic6x-c64x.c: Likewise.
4108 * features/tic6x-c64xp-linux.c: Likewise.
4109 * features/tic6x-c64xp.c: Likewise.
4110 * target-descriptions.c: Only generate `field_type' and `type'
4111 variables when needed.
4113 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4115 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4117 2012-04-25 Doug Evans <dje@google.com>
4119 Initial pass at Go language support.
4121 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4123 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4124 (YYFILES): Add go-exp.c.
4125 (YYOBJ): Add go-exp.o.
4126 (local-maintainer-clean): Delete go-exp.c.
4127 * defs.h (enum language): Add language_go.
4128 * dwarf2read.c: #include "go-lang.h".
4129 (fixup_go_packaging): New function.
4130 (process_full_comp_unit): Call it when processing Go CUs.
4131 (dwarf2_physname): Add Go support.
4132 (read_file_scope): Handle missing language spec for GNU Go.
4133 (set_cu_language): Handle DW_LANG_Go.
4134 * go-exp.y: New file.
4135 * go-lang.h: New file.
4136 * go-lang.c: New file.
4137 * go-typeprint.c: New file.
4138 * go-valprint.c: New file.
4139 * symtab.c: #include "go-lang.h".
4140 (symbol_set_language): Handle language_go.
4141 (symbol_find_demangled_name, symbol_set_names): Ditto.
4142 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4144 2012-04-24 Jim Meyering <meyering@redhat.com>
4146 avoid a few strncpy-induced buffer overruns
4147 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4148 fname and psargs before trying to concatenate.
4149 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4150 "name" before applying strchr.
4152 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4154 * CONTRIBUTE: Use unified diff instead of context diff when
4157 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4159 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4160 code. Handle JR.HB correctly.
4162 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4165 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4166 with the other MIPS16 helpers.
4168 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4170 * observer.sh: Conditionally declare `args', thus cleaning up
4171 unused instances of this variable.
4173 2012-04-24 Yao Qi <yao@codesourcery.com>
4175 Revert this patch to allow breakpoint always-inserted
4177 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4178 * breakpoint.c: Include record.h.
4179 (breakpoints_always_inserted_mode): Return false when the record
4182 * breakpoint.c (iterate_over_bp_locations): New.
4183 * breakpoint.h: Declare.
4184 New typedef walk_bp_location_callback.
4185 * record.c (record_open): Call record_init_record_breakpoints.
4186 (record_sync_record_breakpoints): New.
4187 (record_init_record_breakpoints): New.
4188 * NEWS: Mention supporting breakpoint always-inserted mode in
4191 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4193 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4196 2012-04-24 Yao Qi <yao@codesourcery.com>
4198 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4199 (is_catchpoint): ... it.
4200 (print_one_breakpoint_location): Caller update.
4201 * breakpoint.h: Update declaration.
4203 2012-04-23 David S. Miller <davem@davemloft.net>
4205 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4207 2012-04-23 Tom Tromey <tromey@redhat.com>
4209 * buildsym.c (add_free_pendings): Remove.
4210 * buildsym.h (add_free_pendings): Remove.
4212 2012-04-23 Doug Evans <dje@google.com>
4214 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4215 attr.u.unsnd instead of attr.u.addr.
4216 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4217 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4219 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4220 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4222 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4224 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4226 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4227 (mips_o32_return_value): Likewise.
4228 (mips_o64_return_value): Likewise.
4230 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4232 * ada-lang.c (ada_evaluate_subexp): Add cases for
4233 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4234 their treatment in eval.c.
4236 2012-04-21 David S. Miller <davem@davemloft.net>
4238 * sparc-tdep.c (X_DISP10): Define.
4239 (sparc_analyze_control_transfer): Handle compare-and-branch.
4241 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4243 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4244 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4246 2012-04-20 Nigel Stephens <nigel@mips.com>
4247 Maciej W. Rozycki <macro@codesourcery.com>
4249 * mips-tdep.c (mips_float_register_p): New function.
4250 (mips_convert_register_float_case_p): Use mips_float_register_p.
4251 (mips_register_type): Likewise.
4252 (mips_print_register): Likewise.
4253 (print_gp_register_row): Likewise.
4254 (mips_print_registers_info): Likewise.
4256 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4258 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4261 2012-04-20 Andrew Pinski <apinski@cavium.com>
4263 * MAINTAINERS (Write After Approval): Add myself to the list.
4265 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4267 * MAINTAINERS: Update my e-mail address.
4269 2012-04-20 Pedro Alves <palves@redhat.com>
4271 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4273 * configure: Regenerate.
4275 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4277 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4279 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4281 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4283 Fix compilation compatibility with python-2.4
4284 * python/py-type.c (convert_field): Cast ADDRSTRING for
4285 PyObject_SetAttrString as non-const. New comment.
4287 2012-04-19 Tom Tromey <tromey@redhat.com>
4289 * top.c (quit_target): Use all_cleanups.
4290 * main.c (captured_command_loop): Use all_cleanups.
4291 * exceptions.c (throw_exception): Use all_cleanups.
4293 2012-04-19 Pedro Alves <palves@redhat.com>
4295 * Makefile.in (GNULIB_BUILDDIR): New.
4296 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4297 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4298 (CLEANDIRS). Remove gnulib/import.
4299 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4301 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4302 (gnulib/import/Makefile): Replace gnulib/import with
4303 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4304 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4305 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4306 acx_configure_dir.m4.
4307 * acinclude.m4: Include acx_configure_dir.m4.
4308 * acx_configure_dir.m4: New file.
4309 * aclocal.m4: Regenerate.
4310 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4311 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4312 (GNULIB): New variable.
4313 (GNULIB_STDINT_H): Adjust.
4314 (AC_OUTPUT): Don't output gnulib/Makefile.
4315 * gdb/defs.h: Include build-gnulib/config.h.
4316 * aclocal.m4: Regenerate.
4317 * config.in: Regenerate.
4318 * configure: Regenerate.
4320 * gnulib/Makefile.in: New file.
4321 * gnulib/configure.ac: New file.
4322 * gnulib/aclocal.m4: New file.
4323 * gnulib/config.in: New file.
4324 * gnulib/configure: New file.
4325 * gnulib/: Re-run gnulib-tool to adjust.
4327 2012-04-19 Doug Evans <dje@google.com>
4329 * cleanups.h (struct cleanup): Move to cleanups.c.
4330 (make_cleanup_dtor_ftype): New typedef.
4331 (make_cleanup_dtor): Use it.
4332 (ALL_CLEANUPS): Replace with ...
4333 (all_cleanups): ... this. Declare. All uses updated.
4334 * cleanups.c: #include "gdb_assert.h".
4335 (sentinel_cleanup): New static global.
4336 (SENTINEL_CLEANUP): Define.
4337 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4338 (make_my_cleanup2): Assert result is non-NULL.
4339 (all_cleanups): New function.
4340 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4343 2012-04-19 Pedro Alves <palves@redhat.com>
4345 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4346 Adjust paths to gnulib imported files.
4348 2012-04-19 Pedro Alves <palves@redhat.com>
4350 * gnulib/: Move whole directory ...
4351 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4352 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4353 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4354 (aclocal_m4_deps): Adjust.
4355 * aclocal.m4: Regenerate.
4356 * configure: Regenerate.
4357 * configure.ac: Adjust AC_OUTPUT output.
4359 2012-04-19 Yao Qi <yao@codesourcery.com>
4361 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4363 * vec.c: Move it ...
4364 * common/vec.c: ... here.
4365 * vec.h: Move it ...
4366 * common/vec.h: ... here.
4368 2012-04-19 Yao Qi <yao@codesourcery.com>
4370 * gdb-code-style.el: New.
4372 2012-04-18 Pedro Alves <palves@redhat.com>
4374 Update gnulib from latest git.
4375 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4377 * gnulib/Makefile.am: Update.
4378 * gnulib/dummy.c: Update.
4379 * gnulib/extra/arg-nonnull.h: Update.
4380 * gnulib/extra/c++defs.h: Update.
4381 * gnulib/extra/update-copyright: Update.
4382 * gnulib/extra/warn-on-use.h: Update.
4383 * gnulib/inttypes.in.h: Update.
4384 * gnulib/m4/00gnulib.m4: Update.
4385 * gnulib/m4/extensions.m4: Update.
4386 * gnulib/m4/gnulib-cache.m4: Update.
4387 * gnulib/m4/gnulib-common.m4: Update.
4388 * gnulib/m4/gnulib-comp.m4: Update.
4389 * gnulib/m4/gnulib-tool.m4: Update.
4390 * gnulib/m4/include_next.m4: Update.
4391 * gnulib/m4/inttypes-pri.m4: Update.
4392 * gnulib/m4/inttypes.m4: Update.
4393 * gnulib/m4/longlong.m4: Update.
4394 * gnulib/m4/memchr.m4: Update.
4395 * gnulib/m4/memmem.m4: Update.
4396 * gnulib/m4/mmap-anon.m4: Update.
4397 * gnulib/m4/multiarch.m4: Update.
4398 * gnulib/m4/onceonly.m4: Update.
4399 * gnulib/m4/stddef_h.m4: Update.
4400 * gnulib/m4/stdint.m4: Update.
4401 * gnulib/m4/string_h.m4: Update.
4402 * gnulib/m4/warn-on-use.m4: Update.
4403 * gnulib/m4/wchar_h.m4: Update.
4404 * gnulib/m4/wchar_t.m4: Update.
4405 * gnulib/m4/wint_t.m4: Update.
4406 * gnulib/memchr.c: Update.
4407 * gnulib/memmem.c: Update.
4408 * gnulib/stddef.in.h: Update.
4409 * gnulib/stdint.in.h: Update.
4410 * gnulib/str-two-way.h: Update.
4411 * gnulib/string.in.h: Update.
4412 * gnulib/wchar.in.h: Update.
4414 * gnulib/extra/arg-nonnull.h: Delete.
4415 * gnulib/extra/c++defs.h: Delete.
4416 * gnulib/extra/warn-on-use.h: Delete.
4417 * gnulib/m4/wchar_h.m4: Delete.
4418 * gnulib/m4/wint_t.m4: Delete.
4419 * gnulib/wchar.in.h: Delete.
4421 * gnulib/extra/snippets/arg-nonnull.h: New.
4422 * gnulib/extra/snippets/c++defs.h: New.
4423 * gnulib/extra/snippets/warn-on-use.h: New.
4425 * aclocal.m4: Regenerate.
4426 * config.in: Regenerate.
4427 * configure: Regenerate.
4428 * gnulib/Makefile.in: Regenerate.
4430 2012-04-18 Pedro Alves <palves@redhat.com>
4432 Reimport the update-copyright module from gnulib
4433 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4435 * configure: Regenerate.
4436 * gnulib/Makefile.am: Update.
4437 * gnulib/Makefile.in: Regenerate.
4438 * gnulib/extra/update-copyright: Update.
4439 * gnulib/m4/gnulib-cache.m4: Update.
4440 * gnulib/m4/gnulib-comp.m4: Update.
4442 2012-04-18 Tristan Gingold <gingold@adacore.com>
4444 * configure.ac (aix): Put -lpthread into libs.
4445 * configure: Regenerate.
4447 2012-04-18 Tom Tromey <tromey@redhat.com>
4449 * linespec.c (convert_linespec_to_sals): Don't use
4451 (compare_msymbols): Arguments are minsym_and_objfile, not
4452 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4454 2012-04-18 Pedro Alves <palves@redhat.com>
4456 Revert gnulib/ part of:
4457 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4458 Copyright year update in most files (performed by copyright.sh).
4460 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4462 Fix 64-bit constants on 32-bit hosts.
4463 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4464 from unsigned long to ULONGEST.
4465 (read_signed_leb128): Change declaration return type from long to
4467 (dwarf2_const_value_attr): Change declaration parameter value from long
4469 (dwarf2_compute_name): Change variable value from long to LONGEST.
4470 (read_unsigned_leb128): Change return type, variable result and some
4471 casts from unsigned long to ULONGEST.
4472 (read_signed_leb128): Change return type, variable result and some
4473 casts from long to LONGEST.
4474 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4475 value from long to LONGEST.
4476 (dwarf2_const_value): Change variable value from long to LONGEST.
4477 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4478 plongest and hex_string.
4479 * symtab.h (struct general_symbol_info): Change ivalue from long to
4480 LONGEST, remove the comment.
4481 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4482 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4484 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4487 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4488 * ada-lang.c (ada_discrete_type_high_bound)
4489 (ada_discrete_type_low_bound): Fix function comment. Use
4490 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4491 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4492 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4493 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4494 Use TYPE_FIELD_ENUMVAL.
4495 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4496 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4497 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4498 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4500 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4501 * dwarf2read.c (process_enumeration_scope): Likewise.
4502 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4504 (class StructMainTypePrettyPrinter): Support also
4505 FIELD_LOC_KIND_ENUMVAL.
4506 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4508 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4509 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4510 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4511 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4513 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4514 accommodate enumval.
4515 (struct call_site): Adjust loc_kind to accommodate enumval.
4516 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4517 (TYPE_FIELD_ENUMVAL): New macros.
4518 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4519 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4521 * p-typeprint.c (pascal_type_print_base): Likewise.
4522 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4524 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4525 * python/py-type.c (convert_field): New variable addrstring. Use
4526 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4527 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4528 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4529 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4531 * valprint.c (generic_val_print): Likewise.
4533 2012-04-17 Doug Evans <dje@google.com>
4535 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4537 * dwarf2read.c: Whitespace fixes.
4538 (lookup_signatured_type): Tweak comment.
4539 (get_die_type_at_offset): Fix comment.
4541 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4543 * xcoffread.c (xcoff_secnum_to_sections): New function.
4544 (secnum_to_section, secnum_to_bfd_section): Reimplement
4545 using xcoff_secnum_to_sections. Rename "secnum" parameter
4547 (RECORD_MINIMAL_SYMBOL): Delete.
4548 (record_minimal_symbol): New function.
4549 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4550 by call to record_minimal_symbol and set misc_func_recorded
4551 to 1. Set last_csect_sec to the XCOFF section index instead
4552 of GDB's section_offset index. Update calls to
4553 prim_record_minimal_symbol_and_info to pass the BFD section
4556 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4558 * xcoffread.c (read_xcoff_symtab): Delete variables
4559 last_csect_val and last_csect_sec and associated code.
4561 2012-04-17 Doug Evans <dje@google.com>
4563 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4564 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4565 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4566 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4568 * cleanups.h: New file.
4569 * cleanups.c: New file.
4570 * Makefile.in (SFILES): Add cleanups.c.
4571 (HFILES_NO_SRCDIR): Add cleanups.h.
4572 (COMMON_OBS): Add cleanups.o.
4573 * defs.h (struct cleanup): Moved to cleanups.h.
4574 (do_cleanups,do_final_cleanups): Ditto.
4575 (discard_cleanups,discard_final_cleanups): Ditto
4576 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4577 (save_cleanups,save_final_cleanups): Ditto.
4578 (restore_cleanups,restore_final_cleanups): Ditto.
4579 (null_cleanup): Ditto.
4580 (make_my_cleanup,make_my_cleanup2): Ditto.
4581 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4582 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4583 (do_cleanups,do_final_cleanups): Ditto.
4584 (discard_cleanups,discard_final_cleanups): Ditto
4585 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4586 (save_cleanups,save_final_cleanups): Ditto.
4587 (restore_cleanups,restore_final_cleanups): Ditto.
4588 (null_cleanup): Ditto.
4589 (make_my_cleanup,make_my_cleanup2): Ditto.
4590 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4592 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4594 (make_cleanup_dyn_string_delete): Ditto.
4595 (make_cleanup_ui_file_delete): Ditto.
4596 (make_cleanup_ui_out_redirect_pop): Ditto.
4597 (make_cleanup_free_section_addr_info): Ditto.
4598 (make_cleanup_restore_integer): Ditto.
4599 (make_cleanup_unpush_target): Ditto.
4600 (make_cleanup_value_free_to_mark): Ditto.
4601 (make_cleanup_value_free): Ditto.
4602 (make_cleanup_free_so): Ditto.
4604 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4606 New option "set debug auto-load".
4607 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4608 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4609 (auto_load_safe_path_vec_update)
4610 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4612 (file_is_auto_load_safe): New parameters debug_fmt and ....
4613 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4614 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4615 caller by explanatory string.
4616 (_initialize_auto_load): Register "set debug auto-load".
4617 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4619 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4620 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4621 by explanatory string.
4622 * main.c (captured_main): Likewise.
4623 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4624 (source_section_scripts): Likewise.
4626 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4628 New option "set auto-load safe-path".
4629 * NEWS: New commands "set auto-load safe-path"
4630 and "show auto-load safe-path".
4631 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4632 (auto_load_safe_path, auto_load_safe_path_vec)
4633 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4634 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4635 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4636 (source_gdb_script_for_objfile): New variable is_safe. Call
4637 file_is_auto_load_safe. Return if it is not.
4638 (struct loaded_script): New field loaded.
4639 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4640 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4641 output "Missing" to "No".
4642 (_initialize_auto_load): New variable cmd. Initialize
4643 auto_load_safe_path. Register "set auto-load safe-path",
4644 "show auto-load safe-path" and "add-auto-load-safe-path".
4645 * auto-load.h (maybe_add_script): Add parameter loaded.
4646 (file_is_auto_load_safe): New declaration.
4647 * config.in: Regenerate.
4648 * configure: Regenerate.
4649 * configure.ac: New parameters --with-auto-load-safe-path
4650 and --without-auto-load-safe-path.
4651 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4652 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4653 * main.c (captured_main): Check file_is_auto_load_safe for
4655 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4656 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4657 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4660 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4662 auto-load: Implementation.
4663 * NEWS: New descriptions for "info auto-load",
4664 "info auto-load gdb-scripts", "info auto-load python-scripts",
4665 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4666 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4667 and "show auto-load-scripts". New description for "set auto-load",
4668 "show auto-load", "set auto-load gdb-scripts",
4669 "show auto-load gdb-scripts", "set auto-load python-scripts",
4670 "show auto-load python-scripts", "set auto-load local-gdbinit",
4671 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4672 "show auto-load libthread-db".
4673 * auto-load.c: Remove include python/python-internal.h. Add includes
4674 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4676 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4677 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4678 (gdbpy_global_auto_load): Rename to ...
4679 (global_auto_load): ... here.
4680 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4681 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4682 (script_language_gdb, source_gdb_script_for_objfile): New.
4683 (struct loaded_script): New field language.
4684 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4686 (maybe_add_script): Add parameter language. Drop redundant
4687 entry.full_path initialization. Initialize entry.language and
4689 (auto_load_objfile_script): Change parameter suffix to language.
4690 Remove the call of maybe_add_script.
4691 Call language->source_script_for_objfile.
4692 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4694 (collect_matching_scripts): Adjust it for
4695 struct collect_matching_scripts_data.
4696 (auto_load_info_scripts_pattern_nl): New variable.
4697 (info_auto_load_scripts): Rename to ...
4698 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4699 for struct collect_matching_scripts_data.
4700 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4701 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4702 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4703 (auto_load_info_cmdlist_get): New.
4704 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4705 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4706 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4707 "info auto-load local-gdbinit".
4708 * auto-load.h (struct script_language): New.
4709 (gdbpy_global_auto_load): Rename to ...
4710 (global_auto_load): ... here.
4711 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4712 (auto_load_local_gdbinit_loaded): New declarations.
4713 (maybe_add_script): New parameter language.
4714 (auto_load_objfile_script): Change parameter suffix to language.
4715 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4716 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4717 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4719 * linux-thread-db.c: Include auto-load.h and ctype.h.
4720 (auto_load_thread_db, show_auto_load_thread_db): New.
4721 (struct thread_db_info): New field filename.
4722 (delete_thread_db_info): Call xfree for FILENAME.
4723 (try_thread_db_load): Initialize FILENAME.
4724 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4725 if !AUTO_LOAD_THREAD_DB.
4726 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4727 (_initialize_thread_db): Install auto_load_thread_db
4728 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4729 as "info auto-load libthread-db".
4730 * main.c (captured_main): Rename gdbpy_global_auto_load to
4731 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4732 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4733 (print_gdb_help): Extend the help for 'local init file'.
4734 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4735 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4736 (auto_load_scripts): Rename to ...
4737 (auto_load_python_scripts): ... here, update the comment.
4738 (gdbpy_load_auto_script_for_objfile): New declaration.
4739 (show_auto_load_python_scripts, script_language_python)
4740 (gdbpy_load_auto_script_for_objfile): New.
4741 (source_section_scripts): Refactor the code.
4742 (load_auto_scripts_for_objfile): Rename to ...
4743 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4744 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4745 (info_auto_load_python_scripts): New.
4746 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4747 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4748 Register "set auto-load-scripts" as its deprecated alias. Register
4749 "info auto-load python-scripts". Register "info auto-load-scripts" as
4750 its deprecated alias.
4751 (load_auto_scripts_for_objfile): Rename to ...
4752 (gdbpy_load_auto_scripts_for_objfile): ... here.
4753 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4754 (gdbpy_load_auto_scripts_for_objfile): ... here.
4756 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4758 auto-load: Move files.
4759 * Makefile.in (SFILES): Add auto-load.c.
4760 (HFILES_NO_SRCDIR): Add auto-load.h.
4761 (COMMON_OBS): Add auto-load.o.
4762 (distclean): Change .gdbinit for gdb-gdb.gdb.
4763 * auto-load.c: New file, with parts from python/py-auto-load.c.
4764 * auto-load.h: New file, with parts from python/python.h.
4765 * configure: Regenerate.
4766 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4767 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4768 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4769 * main.c: Include auto-load.h.
4770 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4771 command.h, observer.h and progspace.h to auto-load.c. Add include
4773 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4774 (struct loaded_script, auto_load_pspace_data)
4775 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4776 (hash_loaded_script_entry, eq_loaded_script_entry)
4777 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4778 (maybe_add_script): Move to auto-load.c.
4779 (source_section_scripts): Change maybe_add_script parameters passing,
4780 use script_not_found_warning_print.
4781 (clear_section_scripts, auto_load_objfile_script)
4782 (auto_load_new_objfile, loaded_script_ptr)
4783 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4784 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4785 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4786 auto_load_new_objfile and info_auto_load_scripts initizations to
4788 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4790 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4793 * charset.c (find_charset_names): Remove variables ix and elt.
4794 Use free_char_ptr_vec.
4795 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4796 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4797 debugdir_end. New variable debugdir_len.
4798 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4799 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4801 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4802 and elt. Use free_char_ptr_vec.
4803 * source.c (add_path): Remove variables argv, arg and argv_index.
4804 New variables dir_vec, back_to, ix and name.
4805 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4806 make_cleanup_freeargv. Remove variable separator. Simplify the code
4807 no longer expecting DIRNAME_SEPARATOR.
4808 (openp): Remove variable p, p1 and len. New variables dir_vec,
4809 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4810 no longer expecting DIRNAME_SEPARATOR.
4811 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4812 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4814 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4815 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4816 (dirnames_to_char_ptr_vec): New functions.
4818 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4821 * source.c (add_path): Remove always true conditional 'p == 0' and
4822 unindent its code block.
4824 2012-04-17 Pedro Alves <palves@redhat.com>
4826 * gdbtypes.h (FIELD_BITPOS): Rename to ...
4827 (FIELD_BITPOS_LVAL): ... this.
4828 (FIELD_BITPOS): New.
4829 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4830 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
4831 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
4833 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
4835 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
4836 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
4837 * target-descriptions.c (tdesc_gdb_type): Adjust to use
4840 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4842 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
4843 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
4844 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
4845 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
4846 * jv-lang.c (java_link_class_type): Likewise, once.
4847 * stabsread.c (read_enum_type): Likewise.
4849 2012-04-16 Yao Qi <yao@codesourcery.com>
4851 * common/agent.c (agent_run_command): Add one more parameter `len'.
4853 * common/agent.h: Update declaration.
4854 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4856 (linux_child_static_tracepoint_markers_by_strid): Ditto.
4858 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
4861 * value.c (value_actual_type): New function.
4862 * value.h (value_actual_type): New declaration.
4863 * varobj.c (update_type_if_necessary): New function.
4864 (varobj_create): Call value_actual_type instead of
4866 (install_dynamic_child): distinct changed and type changed MI variable
4868 (update_dynamic_varobj_children): Updated for install_dynamic_child
4869 change. All callers updated.
4870 (varobj_update): Support for MI variable object type change if
4871 the value changed and RTTI is used to determine the type.
4872 (create_child_with_value): Call value_actual_type instead of
4874 (adjust_value_for_child_access): Extended with a new parameter which
4875 specify whether the given value should be casted to enclosing type.
4876 All callers updated.
4878 2012-04-14 Yao Qi <yao@codesourcery.com>
4880 Import gnulib module inttypes from git
4881 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4882 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
4883 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
4884 gnulib/m4/inttypes-pri.m4
4885 * aclocal.m4, config.in, configure: Regenerated.
4886 * gnulib/Makefile.am: Update.
4887 * gnulib/Makefile.in: Update.
4888 * gnulib/m4/gnulib-cache.m4: Update.
4889 * gnulib/m4/gnulib-comp.m4: Update.
4890 * gnulib/inttypes.in.h: New.
4891 * gnulib/m4/inttypes-pri.m4: New.
4892 * gnulib/m4/inttypes.m4: New.
4894 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
4896 * infrun.c (resume): Update PC address to the real PC after
4897 preparing to do displaced stepping.
4899 2012-04-12 Doug Evans <dje@google.com>
4901 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
4902 All callers updated.
4904 2012-04-12 Mark Kettenis <kettenis@gnu.org>
4906 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
4908 2012-04-12 Doug Evans <dje@google.com>
4910 * dwarf2read.c (create_all_type_units): Renamed from
4911 create_debug_types_hash_table. All callers updated.
4913 * dwarf2read.c (create_signatured_type_table_from_index): Rename
4914 local type_sig to sig_type, type_offset to type_offset_in_tu.
4915 (hash_signatured_type): Renamed from hash_type_signature,
4916 all callers updated.
4917 (eq_signatured_type): Renamed from eq_type_signature,
4918 all callers updated.
4919 (create_debug_types_hash_table): Rename local type_sig to sig_type.
4920 (process_enumeration_scope): Ditto.
4921 (lookup_signatured_type_at_offset): Ditto.
4922 (load_full_type_unit, read_signatured_type): Ditto.
4924 2012-04-12 Yao Qi <yao@codesourcery.com>
4926 * remote.c (async_remote_interrupt): Correct function name in
4928 (async_remote_interrupt_twice): Ditto.
4930 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
4932 * source.c (find_and_open_source): Consistently pass resulting
4933 full path through xfullpath.
4935 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4937 Provide more specific displaced-stepping memory error message.
4938 * infrun.c (displaced_step_prepare): New variable status. Call
4939 target_read_memory instead of read_memory, provide more specific
4942 2012-04-11 Tristan Gingold <gingold@adacore.com>
4945 * darwin-nat.c (darwin_execvp): Revert previous patch.
4947 2012-04-11 Tristan Gingold <gingold@adacore.com>
4950 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
4953 2012-04-11 Tristan Gingold <gingold@adacore.com>
4955 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
4958 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
4960 New command 'explore' which helps explore values and types in
4962 * NEWS: Add an entry about the new 'explore' command.
4963 * data-directory/Makefile.in: Add gdb/command/explore.py
4964 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
4965 command using the GDB Python API.
4967 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
4969 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
4970 extension in jump target calculation.
4972 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
4974 * mips-tdep.c (mips32_next_pc): Handle JALX.
4976 2012-04-10 Yao Qi <yao@codesourcery.com>
4978 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
4980 2012-04-10 Yao Qi <yao@codesourcery.com>
4982 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
4983 and gnulib/m4/gnulib-tool.m4.
4985 2012-04-10 Doug Evans <dje@google.com>
4987 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
4988 (load_partial_dies): Clarify comment.
4989 (find_partial_die): Support rereading type units.
4990 Clarify CU handling, if we know offset is in CU, don't search for the
4991 containing CU. Add comment regarding memory waste.
4993 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
4995 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
4996 i386/x32-avx and i386/x32-avx-linux.
4997 (i386/x32-expedite): New.
4998 (i386/x32-linux-expedite): Likewise.
4999 (i386/x32-avx-expedite): Likewise.
5000 (i386/x32-avx-linux-expedite): Likewise.
5001 ($(outdir)/i386/x32.dat): Likewise.
5002 ($(outdir)/i386/x32-linux.dat): Likewise.
5003 ($(outdir)/i386/x32-avx.dat): Likewise.
5004 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5006 * features/i386/x32-avx-linux.xml: New file.
5007 * features/i386/x32-avx.xml: Likewise.
5008 * features/i386/x32-core.xml: Likewise.
5009 * features/i386/x32-linux.xml: Likewise.
5010 * features/i386/x32.xml: Likewise.
5012 * features/i386/x32-avx-linux.c: New. Generated.
5013 * features/i386/x32-avx.c: Likewise.
5014 * features/i386/x32-linux.c: Likewise.
5015 * features/i386/x32.c: Likewise.
5016 * regformats/i386/x32-avx-linux.dat: Likewise.
5017 * regformats/i386/x32-avx.dat: Likewise.
5018 * regformats/i386/x32-linux.dat: Likewise.
5019 * regformats/i386/x32.dat: Likewise.
5021 2012-04-10 Tristan Gingold <gingold@adacore.com>
5023 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5024 code to kill the inferior.
5026 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5028 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5030 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5032 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5033 (yyvsp): New defines.
5034 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5036 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5038 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5040 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5042 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5045 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5047 * sparc64-tdep.c (sparc64_store_arguments)
5048 (sparc64_store_arguments): Fix coding style.
5050 2012-04-07 Mark Kettenis <kettenis@gnu.org>
5052 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5053 complex floats, adjust some related comments and tighten a related
5055 (sparc64_extract_return_value): Handle complex floats.
5057 2012-04-07 Doug Evans <dje@google.com>
5059 * dwarf2read.c (load_partial_dies): Change condition to assert.
5061 2012-04-06 Doug Evans <dje@google.com>
5063 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5066 2012-04-05 Kevin Buettner <kevinb@redhat.com>
5068 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5070 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5071 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5074 2012-04-05 Keith Seitz <keiths@redhat.com>
5076 * linespec.c (decode_compound): Remove.
5077 (enum offset_relative_sign): New enum.
5078 (struct line_offset): New struct.
5079 (struct linespec): New struct.
5080 (struct linespec_state): Move file_symtabs,
5081 user_filename, and user_function into struct linespec.
5082 Make result an anonymous struct holding vectors of
5083 symbolp and minsym_and_objfile_d.
5084 Add language member.
5085 (enum ls_token_type): New enum.
5086 (linespec_keywords): New array.
5087 (struct ls_token): New struct.
5088 (struct ls_parser): New struct.
5089 (linespec_lexer_lex_number): New function.
5090 (linespec_lexer_lex_keyword): New function.
5091 (is_ada_operator): New function.
5092 (skip_quote_char): New function.
5093 (copy_token_string): New function.
5094 (is_closing_quote_enclosed): New function.
5095 (find_parameter_list_end): New function.
5096 (linespec_lexer_lex_string): New function.
5097 (linespec_lexer_lex_one): New function.
5098 (linespec_lexer_consume_token): New function.
5099 (linespec_lexer_peek_token): New function.
5100 (cplusplus_error): Remove unused function.
5101 (find_methods): Update comment.
5102 (find_toplevel_char): Return const.
5103 (is_objc_method_format): Remove unused function.
5104 (find_toplevel_string): New function.
5105 (is_linespec_boundary): Remove.
5106 (symbol_not_found_error): New function.
5107 (find_method_overload_end): Remove function.
5108 (unexpected_linespec_error): New function.
5109 (keep_name_info): Remove.
5110 (linespec_parse_line_offset): New function.
5111 (linespec_parse_basic): New function.
5112 (canonicalize_linespec): New function.
5113 (decode_line_internal): Remove.
5114 (create_sals_line_offset): New function adapted from
5116 (convert_linespec_to_sals): New function.
5117 (parse_linespec): New function.
5118 (linespec_parser_new): New function.
5119 (linespec_state_destructor): Change parameter type to
5120 struct linespec_state *.
5121 Add language parameter.
5122 Remove freeing of moved members.
5123 (linespec_parser_delete): New function.
5124 (decode_line_full): Use parse_linespec and linespec_parser_new.
5125 (decode_line_1): Likewise.
5126 (decode_indirect): Rename to ...
5127 (linespec_expression_to_pc): ... this and rewrite
5128 to simply find CORE_ADDR, storing this result for later
5130 (locate_first_half): Remove.
5131 (deocde_objc): Add parameter LS.
5132 Initialize new struct collect_info members.
5133 Handle minimal symbols, too.
5134 (decode_compound): Delete.
5135 (lookup_prefix_sym): Rewrite.
5136 (compare_msymbols): New function.
5137 (find_method): Rewrite.
5138 Do not call cplusplus_error.
5139 (symtabs_from_filename): Rewrite.
5140 (collect_function_symbols): Delete.
5141 (find_function_symbols): Rewrite without ARGPTR-style
5143 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5144 (decode_dollar): Adapted and renamed to ...
5145 (linespec_parse_variable): ... this.
5146 (find_linespec_symbols): New function.
5147 (decode_label): Adapted and renamed to ...
5148 (find_label_symbols): ... this.
5149 (decode_digits_list_mode): Add and use LS argument.
5150 (decode_digits_ordinary): Likewise.
5151 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5152 If in list mode, allow any symbol class. Otherwise, only
5153 permit LOC_BLOCK symbols.
5154 (minsym_found): Update comments.
5155 (search_minsyms_for_name): Do not convert the matching symbol
5156 into a SAL. Simply push the symbol and objfile into the
5158 (decode_variable): Delete. Contents adapted into
5159 find_linespec_symbols.
5161 * cp-support.c (SKIP_SPACE): Remove.
5162 (operator_tokens): Remove unused global.
5163 (cp_validate_operator): Remove.
5164 * cp-support.h (cp_validate_operator): Remove declaration.
5166 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5168 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5169 for TYPE_VPTR_FIELDNO.
5170 * valprint.c (valprint_check_validity): Make it global, move the
5171 function comment ...
5172 * value.h (valprint_check_validity): ... to this new declaration.
5174 2012-04-02 Tristan Gingold <gingold@adacore.com>
5176 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5177 the STATE32 api for i386 state.
5178 (i386_darwin_store_inferior_registers): Likewise.
5180 2012-04-02 Tristan Gingold <gingold@adacore.com>
5182 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5184 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5187 2012-04-02 Tristan Gingold <gingold@adacore.com>
5190 * darwin-nat.c (darwin_execvp): Set binary preference.
5192 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5194 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5196 2012-03-30 Tom Tromey <tromey@redhat.com>
5198 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5199 of TRY_CATCH. Fix error handling.
5200 * python/py-value.c (convert_value_from_python): Move 'old'
5201 declaration to innermost scope.
5203 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5204 Andrey Smirnov <andrew.smirnov@gmail.com>
5206 -Wshadow warning fix.
5207 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5208 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5209 Adjust code accordingly.
5211 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5213 * ada-lang.c (symbol_completion_add): Rename parameter
5214 "encoded" into "encoded_p". Ajust code and documentation
5217 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5218 Andrey Smirnov <andrew.smirnov@gmail.com>
5220 -Wshadow warning fix.
5221 * ada-lang.c (symbol_completion_add): Rename parameter
5222 "wild_match" into wild_match_p. Update code and documentation
5225 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5227 * ada-lang.c (symbol_completion_match): Rename parameter
5228 "encoded" into "encoded_p". Ajust code and documentation
5231 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5232 Andrey Smirnov <andrew.smirnov@gmail.com>
5234 -Wshadow warning fix.
5235 * ada-lang.c (symbol_completion_match): Rename parameter
5236 "wild_match" into "wild_match_p". Adjust code and function
5237 documentation accordingly.
5239 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5240 Andrey Smirnov <andrew.smirnov@gmail.com>
5242 -Wshadow warning fix.
5243 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5244 "symbol_info" into "info". Adjust code accordingly.
5245 (ada_lookup_symbol): Likewise.
5247 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5249 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5250 of this function's documentation.
5252 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5253 Andrey Smirnov <andrew.smirnov@gmail.com>
5255 -Wshadow warning fix.
5256 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5257 variable into "wild_match_p". Adjust code accordingly.
5259 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5260 Andrey Smirnov <andrew.smirnov@gmail.com>
5262 -Wshadow warning fix.
5263 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5264 parameter into "wild_match_p". Adjust code accordingly.
5265 Document this parameter in the function description.
5267 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5268 Andrey Smirnov <andrew.smirnov@gmail.com>
5270 -Wshadow warning fix.
5271 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5272 "wild_match" parameter to "wild_match_p" (-Wshadow).
5274 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5276 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5277 in function documentation.
5279 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5280 Andrey Smirnov <andrew.smirnov@gmail.com>
5282 -Wshadow warning fix.
5283 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5284 variable into wild_match_p. Adjust code accordingly.
5286 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5287 Andrey Smirnov <andrew.smirnov@gmail.com>
5289 * ada-valprint.c (ada_val_print_1): Move the code handling
5290 TYPE_CODE_ENUM inside its own lexical block. Declare
5291 variables len and val there, instead of in the function's
5292 top level block. Avoid declaring deref_val again in a way
5293 that shadows another variable of the same name declared
5294 in one of the up-level blocks. Just re-use the up-level
5297 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5299 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5300 Replace block_found argument by symbol_info. Adjust
5301 implementation accordingly. Add function documentation.
5302 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5304 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5305 * ada-exp.y (write_object_renaming): Adjust to new
5306 ada_lookup_encoded_symbol API.
5308 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5310 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5313 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5315 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5316 (v850_register_name): Add the mpu and fpu register names.
5317 (v850e_register_name): Add the mpu and fpu register names.
5318 (v850e2_register_name): New function.
5319 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5322 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5324 * NEWS: Add entry for Ada varobj support.
5326 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5328 * varobj.c (default_value_is_changeable_p): New function,
5329 extracted from varobj_value_is_changeable_p. Add declaration.
5330 (ada_value_is_changeable_p): New function, extracted from
5331 varobj_value_is_changeable_p. Add declaration.
5332 (struct language_specific): New field "value_is_changeable_p".
5333 (languages): Add entries for new field.
5334 (varobj_create): Set language before calling install_new_value.
5335 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5336 "value_is_changeable_p" language callback.
5338 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5340 * ada-varobj.h, ada-varobj.c: New files.
5341 * Makefile.in (SFILES): Add ada-varobj.c.
5342 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5343 (COMMON_OBS): Add ada-varobj.o.
5345 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5347 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5348 (struct language_specific): New field "value_has_mutated".
5349 (languages): Set field "value_has_mutated" in each entry of array.
5350 (varobj_value_has_mutated): New function.
5351 (varobj_udpdate): Add handling of type mutation.
5352 (value_of_root): Add handling of type mutation.
5353 (ada_value_has_mutated): New function.
5355 2012-03-28 Pedro Alves <palves@redhat.com>
5357 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5358 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5360 2012-03-28 Tom Tromey <tromey@redhat.com>
5362 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5363 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5366 2012-03-28 Tom Tromey <tromey@redhat.com>
5368 * .dir-locals.el: New file.
5370 2012-03-28 Pedro Alves <palves@redhat.com>
5372 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5374 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5376 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5379 2012-03-27 Pedro Alves <palves@redhat.com>
5381 Eliminate struct ui_stream.
5383 * ui-out.h (struct ui_stream): Delete.
5384 (ui_out_field_stream): Adjust prototype.
5385 (ui_out_stream_new, ui_out_stream_delete)
5386 (make_cleanup_ui_out_stream_delete): Delete declarations.
5387 * ui-out.c (ui_out_field_stream): Change prototype to take a
5388 ui_file instead of a ui_stream. Adjust.
5389 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5390 (make_cleanup_ui_out_stream_delete): Delete.
5391 * breakpoint.c (print_breakpoint_location)
5392 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5393 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5394 * disasm.c (dump_insns): Ditto.
5395 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5397 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5398 ui_stream/ui_out_stream_new.
5399 * infcmd.c (print_return_value): Ditto.
5400 * osdata.c (info_osdata_command): Don't allocate a local
5402 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5403 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5404 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5405 allocate a local ui_stream.
5406 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5407 instead of ui_stream/ui_out_stream_new.
5408 (list_args_or_locals): Don't allocate a local ui_stream.
5409 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5410 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5411 ui_stream/ui_out_stream_new.
5412 * cli/cli-setshow.c (do_setshow_command): Ditto.
5414 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5416 * arm-linux-tdep.c (arm_linux_init_abi): Call
5417 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5418 * arm-tdep.c (arm_process_record): New function.
5419 (deallocate_reg_mem): New function.
5420 (decode_insn): New function.
5421 (thumb_record_branch): New function.
5422 (thumb_record_ldm_stm_swi(): New function.
5423 (thumb_record_misc): New function.
5424 (thumb_record_ld_st_stack): New function.
5425 (thumb_record_ld_st_imm_offset): New function.
5426 (thumb_record_ld_st_reg_offset(): New function.
5427 (thumb_record_add_sub_cmp_mov): New function.
5428 (thumb_record_shift_add_sub): New function.
5429 (arm_record_coproc_data_proc): New function.
5430 (arm_record_coproc): New function.
5431 (arm_record_b_bl): New function.
5432 (arm_record_ld_st_multiple): New function.
5433 (arm_record_ld_st_reg_offset): New function.
5434 (arm_record_ld_st_imm_offset): New function.
5435 (arm_record_data_proc_imm): New function.
5436 (arm_record_data_proc_misc_ld_str): New function.
5437 (arm_record_extension_space): New function.
5438 (arm_record_strx): New function.
5439 (sbo_sbz): New function.
5440 (struct insn_decode_record): New structure for arm insn record.
5441 (REG_ALLOC): New macro for reg allocations.
5442 (MEM_ALLOC): New macro for memory allocations.
5443 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5445 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5447 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5448 (store_register): Likewise.
5450 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5452 * MAINTAINERS (Write After Approval): Add myself to the list.
5454 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5456 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5457 Describe also the option "auto".
5459 2012-03-22 Richard Henderson <rth@redhat.com>
5461 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5462 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5464 2012-03-22 Richard Henderson <rth@redhat.com>
5466 * jit.c (jit_read_code_entry): Compute alignment and offset of
5467 int64_t member before computing entry_size.
5469 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5471 Python scripting: Add new method Value.referenced_value to
5472 gdb.Value which can dereference pointer as well as reference
5474 * NEWS: Add entry under 'Python scripting' about the new method
5475 Value.referenced_value on gdb.Value objects.
5476 * python/py-value.c (valpy_referenced_value): New function
5477 defining a new method on gdb.Value objects which can dereference
5478 pointer and reference values.
5480 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5482 * MAINTAINERS (Write After Approval): Add myself to the list.
5484 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5486 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5487 in addition to "main".
5489 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5491 * expression.h (op_name): Add declaration.
5492 * expprint.c (op_name): Remove declaration. Make non-static.
5493 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5495 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5497 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5499 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5500 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5501 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5502 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5503 (linux_nat_get_siginfo): Likewise.
5504 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5505 (linux_nat_get_siginfo): Likewise.
5506 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5507 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5508 * procfs.c (gdb_siginfo_t): Likewise.
5510 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5512 * .gitignore: Ignore more files.
5514 2012-03-20 Pedro Alves <palves@redhat.com>
5516 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5519 2012-03-20 Yao Qi <yao@codesourcery.com>
5521 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5524 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5526 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5527 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5528 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5530 * dwarf2expr.h (cu_offset, sect_offset): New types.
5531 (struct dwarf_expr_context_funcs) <dwarf_call>
5532 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5534 (struct dwarf_expr_context) <len>: Improve the comment.
5535 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5536 cu_offset and sect_offset.
5537 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5538 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5539 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5540 * dwarf2loc.h: Include dwarf2expr.h.
5541 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5543 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5544 Improve the comment.
5545 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5546 (struct signatured_type, struct line_header, struct partial_die_info)
5547 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5548 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5549 (get_die_type_at_offset, create_cus_from_index)
5550 (create_signatured_type_table_from_index, dw2_get_file_names)
5551 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5552 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5553 (create_debug_types_hash_table, process_psymtab_comp_unit)
5554 (load_partial_comp_unit, create_all_comp_units)
5555 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5556 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5557 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5558 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5559 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5560 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5561 (find_partial_die, read_attribute_value, lookup_die_type)
5562 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5563 (is_ref_attr): New function comment.
5564 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5565 Use cu_offset and sect_offset.
5566 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5567 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5568 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5569 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5570 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5571 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5572 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5575 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5578 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5579 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5581 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5583 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5585 * NEWS: Describe new options --init-command=FILE, -ix and
5586 --init-eval-command=COMMAND, -iex.
5587 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5588 CMDARG_INIT_COMMAND.
5589 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5590 "init-command", "init-eval-command", "ix" and "iex" to the variable
5591 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5592 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5593 (print_gdb_help): Describe --init-command=FILE, -ix and
5594 --init-eval-command=COMMAND, -iex.
5596 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5599 * main.c (struct cmdarg): Move it here from main. Add more comments.
5600 (cmdarg_s, VEC (cmdarg_s)): New.
5601 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5602 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5603 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5604 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5607 2012-03-19 Tom Tromey <tromey@redhat.com>
5609 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5611 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5614 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5617 2012-03-16 Chris January <chris.january@allinea.com>
5619 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5622 2012-03-16 Chris January <chris.january@allinea.com>
5624 * source.c (add_path): Use memmove instead of strcpy because the
5627 2012-03-16 Joel Brobecker <brobecker@adacore.com>
5629 * value.h (set_value_parent): Add declaration.
5630 * value.c (set_value_parent): New function.
5631 (value_address): If VALUE->PARENT is not NULL, then use it as
5632 the base address instead of VALUE->LOCATION.address.
5633 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5634 the same as OBJ's address. Adjust V's offset accordingly.
5637 2012-03-16 Gary Benson <gbenson@redhat.com>
5639 PR breakpoints/10738
5640 * dwarf2read.c (use_deprecated_index_sections): New global.
5641 (struct partial_die_info): New member may_be_inlined.
5642 (read_partial_die): Set may_be_inlined where appropriate.
5643 (add_partial_subprogram): Add partial symbols for partial
5644 DIEs that may be inlined.
5645 (new_symbol_full): Add inlined subroutines to the current
5647 (write_psymtabs_to_index): Bump version number.
5648 (dwarf2_read_index): Read only version 6 indices unless
5649 use_deprecated_index_sections is set.
5650 * linespec.c (symbol_and_data_callback): New structure.
5651 (iterate_inline_only): New function.
5652 (iterate_over_all_matching_symtabs): New argument
5653 "include_inline". If nonzero, also call the callback for
5654 symbols representing inlined subroutines.
5655 (lookup_prefix_sym): Pass extra argument to the above.
5656 (find_function_symbols): Likewise.
5657 (add_matching_symbols_to_info): Likewise.
5658 * NEWS: Mention that GDB can now set breakpoints on inlined
5661 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5663 * p-typeprint.c (pascal_type_print_method_args):
5664 Fix display of parameter of methods.
5666 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5668 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5669 Add missing prototype.
5671 2012-03-16 Yao Qi <yao@codesourcery.com>
5672 Jan Kratochvil <jan.kratochvil@redhat.com>
5674 Fix false compilation warning.
5675 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5677 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5678 Pedro Alves <pedro@codesourcery.com>
5680 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5681 (arm_register_g_packet_guesses): New function.
5682 (arm_gdbarch_init): Don't force a target description with
5683 registers when the executable is detected as M-profile. Instead
5684 set gdbarch->tdep->is_m. Register `g' packet guesses.
5685 (_initialize_arm_tdep): Initialize the new target description.
5686 * features/arm-with-m-fpa-layout.xml: New description.
5687 * features/arm-with-m-fpa-layout.c: New, generated.
5689 2012-03-15 Joel Brobecker <brobecker@adacore.com>
5691 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5692 Update function description.
5693 (insert_bp_location): Do not wipe bl->target_info out.
5694 * mem-break.c: #include "gdb_string.h".
5695 (default_memory_insert_breakpoint): Do not call target_read_memory
5696 with a pointer to the breakpoint's shadow_contents buffer. Use
5697 a local buffer instead.
5698 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5700 2012-03-15 Tom Tromey <tromey@redhat.com>
5702 * NEWS: Mention "info vtbl", not "info vtable".
5703 * cp-support.c (info_vtbl_command): Fix comment.
5704 (_initialize_cp_support): Fix text.
5706 2012-03-15 Tom Tromey <tromey@redhat.com>
5708 * cp-valprint.c (cp_print_value_fields): Use
5709 print_function_pointer_address for vtable slot.
5711 2012-03-15 Tom Tromey <tromey@redhat.com>
5713 * gnu-v3-abi.c (struct value_and_voffset): New.
5714 (hash_value_and_voffset, eq_value_and_voffset)
5715 (compare_value_and_voffset, compute_vtable_size)
5716 (print_one_vtable, gnuv3_print_vtable): New functions.
5717 (init_gnuv3_ops): Initialize 'print_vtable' field.
5718 * cp-support.c (info_vtbl_command): New function.
5719 (_initialize_cp_support): Add "info vtbl".
5720 * cp-abi.h (cplus_print_vtable): Declare.
5721 (struct cp_abi_ops) <print_vtable>: New field.
5722 * cp-abi.c (cplus_print_vtable): New function.
5725 2012-03-15 Tom Tromey <tromey@redhat.com>
5727 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5728 iterate_over_symbols.
5730 2012-03-14 Doug Evans <dje@google.com>
5732 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5733 DW_OP_GNU_parameter_ref.
5735 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5737 Fix double prompt of 'interpreter-exec mi'.
5738 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5739 (mi_interpreter_resume): use it.
5740 (mi_execute_command_input_handler): New function.
5741 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5742 mi_execute_command_input_handler.
5744 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
5746 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5748 (darwin_debug_port_info): Make static.
5749 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5750 * machoread.c (_initialize_machoread): Add prototype.
5751 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5752 (i386_darwin_set_control, i386_darwin_get_control)
5753 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5754 i386_darwin_get_status, i386_darwin_get_control):
5755 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5757 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5759 * ax-gdb.c (gen_usual_unary): Remove special handling of
5760 enum and bool types.
5762 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5764 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5766 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5768 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5770 2012-03-13 Chris January <chris.january@allinea.com>
5772 * aix-thread.c (fill_sprs): Store the floating point registers
5773 at the correct offsets into vals.
5775 2012-03-13 Doug Evans <dje@google.com>
5777 * NEWS: Mention symbol-reloading has been deleted.
5778 * symfile.c (symbol_reloading): Delete.
5779 (show_symbol_reloading): Delete.
5780 (_initialize_symfile): Delete set/show symbol-reloading.
5782 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5783 read_in_chain until we have successfully read it in.
5784 (load_full_comp_unit): Ditto.
5785 (read_signatured_type): Add comment.
5787 2012-03-13 Chris January <chris.january@allinea.com>
5789 * stabsread.c (fix_common_block): Change type of valu argument
5792 2012-03-13 Chris January <chris.january@allinea.com>
5794 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5797 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5799 * common/linux-procfs.c (linux_proc_get_int): New, from
5800 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5802 (linux_proc_get_tgid): Only call linux_proc_get_int.
5803 (linux_proc_get_tracerpid): New.
5804 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5805 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5806 linux_proc_pid_has_state.
5807 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5808 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5809 (linux_ptrace_attach_warnings): New.
5810 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5812 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5813 (linux_nat_attach): New variables ex, buffer, message and message_s.
5814 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5816 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5818 * Makefile.in (linux-ptrace.o): New.
5819 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5821 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5822 * common/linux-ptrace.c: New file.
5823 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5824 * config/arm/linux.mh: Likewise.
5825 * config/i386/linux.mh: Likewise.
5826 * config/i386/linux64.mh: Likewise.
5827 * config/ia64/linux.mh: Likewise.
5828 * config/m32r/linux.mh: Likewise.
5829 * config/m68k/linux.mh: Likewise.
5830 * config/mips/linux.mh: Likewise.
5831 * config/pa/linux.mh: Likewise.
5832 * config/powerpc/linux.mh: Likewise.
5833 * config/powerpc/ppc64-linux.mh: Likewise.
5834 * config/powerpc/spu-linux.mh: Likewise.
5835 * config/s390/s390.mh: Likewise.
5836 * config/sparc/linux.mh: Likewise.
5837 * config/sparc/linux64.mh: Likewise.
5838 * config/xtensa/linux.mh: Likewise.
5839 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
5840 common/linux-procfs.c.
5841 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
5843 2012-03-13 Hui Zhu <teawater@gmail.com>
5844 Pedro Alves <palves@redhat.com>
5846 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
5847 CREATE_BREAKPOINT_FLAGS_INSERTED.
5848 (create_breakpoint_sal, create_breakpoints_sal)
5849 (base_breakpoint_create_breakpoints_sal)
5850 (tracepoint_create_breakpoints_sal)
5851 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
5853 (break_command_1, handle_gnu_v3_exceptions, trace_command)
5854 (ftrace_command, strace_command): Adjust.
5855 (create_tracepoint_from_upload): Pass
5856 CREATE_BREAKPOINT_FLAGS_INSERTED.
5857 * breakpoint.h (enum breakpoint_create_flags): New.
5858 (create_breakpoint): New flags parameter.
5859 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
5860 * python/py-breakpoint.c (bppy_init): Adjust.
5861 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
5862 * spu-tdep.c (spu_catch_start): Adjust.
5864 2012-03-13 Pedro Alves <palves@redhat.com>
5865 Hui Zhu <teawater@gmail.com>
5866 Yao Qi <yao@codesourcery.com>
5868 * remote.c (struct remote_state): New field `starting_up'.
5869 (remote_start_remote): Set and clear it.
5870 (remote_can_download_tracepoint): If starting up, return false.
5872 2012-03-13 Yao Qi <yao@codesourcery.com>
5874 * inferior.h (struct inferior): Remove fields any_syscall_count,
5875 syscalls_counts and total_syscalls_count. Move them to new
5876 struct catch_syscall_inferior_data in breakpoint.c.
5877 * breakpoint.c: Call DEF_VEC_I(int).
5878 (struct catch_syscall_inferior_data): New.
5879 (get_catch_syscall_inferior_data): New.
5880 (catch_syscall_inferior_data_cleanup): New.
5881 (insert_catch_syscall): Update to access data in
5882 struct catch_syscall_inferior_data.
5883 (insert_catch_syscall): Likewise.
5884 (remove_catch_syscall): Likewise.
5885 (remove_catch_syscall): Likewise.
5886 (is_syscall_catchpoint_enabled): Likewise.
5887 (add_catch_command): Likewise.
5888 (_initialize_breakpoint): Register cleanup.
5889 * breakpoint.h: Removed DEF_VEC_I(int).
5890 * dwarf2loc.c: Call DEF_VEC_I(int).
5891 * mi/mi-main.c: Likewise.
5893 2012-03-12 Mark Kettenis <kettenis@gnu.org>
5895 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
5897 2012-03-12 Chris January <chris.january@allinea.com>
5899 * aix-thread.c (_initialize_aix_thread): Add prototype.
5900 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
5901 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
5903 2012-03-12 Joel Brobecker <brobecker@adacore.com>
5905 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
5906 include of "amd64-nat.h".
5908 2012-03-12 Tom Tromey <tromey@redhat.com>
5910 * buildsym.c (record_pending_block): Now static.
5911 * buildsym.h: (record_pending_block): Remove.
5913 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
5915 * amd64bsd-nat.c: Include amd64bsd-nat.h.
5917 2012-03-09 Tom Tromey <tromey@redhat.com>
5919 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
5920 producer_is_gxx_lt_4_6>: New fields.
5921 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
5923 2012-03-09 Tom Tromey <tromey@redhat.com>
5925 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
5927 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5929 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
5932 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5934 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
5936 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5938 Fix -Wmissing-prototypes build.
5939 * arm-linux-nat.c (get_thread_id): Make it static.
5940 * xtensa-linux-nat.c (get_thread_id): Likewise.
5942 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5944 * server.c (process_point_options): If a conditional expression
5945 is found, only print a message if remote_debug is nonzero.
5947 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
5949 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
5950 of internal error for unknown/unsupported types.
5952 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5954 Fix CU relative vs. absolute DIE offsets.
5955 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
5956 offset to offset_in_cu.
5957 * dwarf2read.c (process_enumeration_scope): Add CU offset to
5959 (dwarf2_fetch_die_location_block): Rename parameter offset to
5960 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
5962 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5964 * libunwind-frame.c: Rename to ...
5965 * ia64-libunwind-tdep.c: ... here.
5966 * libunwind-frame.h: Rename to ...
5967 * ia64-libunwind-tdep.h: ... here.
5968 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
5969 ia64-libunwind-tdep.h.
5970 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
5971 * README (--with-libunwind): Rename to ...
5972 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
5973 * config.in: Regenerate.
5974 * configure: Regenerate.
5975 * configure.ac: New option --with-libunwind-ia64, make the
5976 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
5977 Remove AC_DEFINE for HAVE_LIBUNWIND.
5978 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
5979 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
5980 Rename libunwind-frame in the general comment.
5981 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
5982 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
5983 Move forward declarations inside #ifndef. Rename libunwind-frame in
5984 the general comment.
5985 * ia64-tdep.c: Rename libunwind-frame.h #include to
5986 ia64-libunwind-tdep.h.
5987 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
5988 (ia64_libunwind_descr): Rename libunwind-frame to
5989 ia64-libunwind-tdep in these function comments.
5990 * ia64-tdep.h: Rename libunwind-frame.h #include to
5991 ia64-libunwind-tdep.h.
5992 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
5993 ia64-libunwind-tdep in that data comment.
5995 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5997 * libunwind-frame.h (struct frame_unwind): New declaration.
5999 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6001 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6002 "set breakpoint condition-evaluation" command.
6004 2012-03-08 Tristan Gingold <gingold@adacore.com>
6006 * sparc-stub.c: Move to stubs/
6007 * sh-stub.c: Likewise.
6008 * m68k-stub.c: Likewise.
6009 * m32r-stub.c: Likewise.
6010 * i386-stub.c: Likewise.
6012 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6014 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6015 linux_get_siginfo_type.
6017 * m68klinux-nat.c: Include "gdb_proc_service.h".
6018 (PTRACE_GET_THREAD_AREA): Define.
6019 (ps_get_thread_area): New function.
6021 2012-03-08 Yao Qi <yao@codesourcery.com>
6023 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6025 (remote_query_attached): Likewise.
6026 (remote_static_tracepoint_marker_at): Likewise.
6027 (remote_set_permissions): Likewise.
6028 (remote_detach_1, extended_remote_attach_1): Likewise.
6029 (send_g_packet, remote_vkill): Likewise.
6030 (extended_remote_disable_randomization): Likewise.
6031 (remote_add_target_side_condition): Likewise.
6032 (remote_insert_breakpoint): Likewise.
6033 (remote_remove_breakpoint): Likewise.
6034 (remote_insert_watchpoint): Likewise.
6035 (remote_remove_watchpoint): Likewise.
6036 (remote_insert_hw_breakpoint): Likewise.
6037 (remote_insert_hw_breakpoint): Likewise.
6038 (remote_remove_hw_breakpoint): Likewise.
6039 (remote_download_command_source): Likewise.
6040 (remote_download_tracepoint): Likewise.
6041 (remote_download_trace_state_variable): Likewise.
6042 (remote_disable_tracepoint): Likewise.
6043 (remote_trace_set_readonly_regions): Likewise.
6044 (remote_get_tracepoint_status): Likewise.
6045 (remote_trace_find): Likewise.
6046 (remote_get_trace_state_variable_value): Likewise.
6047 (remote_set_disconnected_tracing): Likewise.
6048 (remote_set_circular_trace_buffer): Likewise.
6049 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6050 (remote_use_agent): Likewise.
6051 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6054 2012-03-07 Pedro Alves <palves@redhat.com>
6056 * NEWS: Mention QProgramSignals.
6057 * inferior.h (update_signals_program_target): Declare.
6058 * infrun.c: (update_signals_program_target): New.
6059 (handle_command): Update the target of the new program signals
6061 * remote.c (PACKET_QProgramSignals): New enum.
6062 (last_program_signals_packet): New global.
6063 (remote_program_signals): New.
6064 (remote_start_remote): Update the target with the program signals
6066 (remote_protocol_features): Add entry for QPassSignals.
6067 (remote_open_1): Free anc clear last_program_signals_packet.
6068 (init_remote_ops): Install remote_program_signals.
6069 * target.c (update_current_target): Adjust.
6070 (target_program_signals): New.
6071 * target.h (struct target_ops) <to_program_signals>: New field.
6072 (target_program_signals): Declare.
6074 2012-03-07 Pedro Alves <palves@redhat.com>
6076 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6079 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6081 * m68klinux-nat.c (getregs_supplies): Make static.
6082 (getfpregs_supplies): Likewise.
6083 (have_ptrace_getregs): Likewise.
6085 2012-03-06 Joel Brobecker <brobecker@adacore.com>
6087 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6088 in call to get_die_type_at_offset.
6090 2012-03-06 Stan Shebs <stan@codesourcery.com>
6092 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6093 * mi/mi-cmd-disas.c: Ditto.
6094 * mi/mi-cmd-env.c: Ditto.
6095 * mi/mi-cmd-file.c: Ditto.
6096 * mi/mi-cmd-stack.c: Ditto.
6097 * mi/mi-cmd-target.c: Ditto.
6098 * mi/mi-cmd-var.c: Ditto.
6099 * mi/mi-cmds.c: Ditto.
6100 * mi/mi-cmds.h: Ditto.
6101 * mi/mi-console.c: Ditto.
6102 * mi/mi-getopt.c: Ditto.
6103 * mi/mi-getopt.h: Ditto.
6104 * mi/mi-interp.c: Ditto.
6105 * mi/mi-main.c: Ditto.
6106 * mi/mi-out.c: Ditto.
6107 * mi/mi-parse.c: Ditto.
6108 * mi/mi-parse.h: Ditto.
6109 * mi/mi-symbol-cmds.c: Ditto.
6111 * mi/mi-getopt.h: Move mi_opt struct up.
6112 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6114 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6116 2012-03-06 Tom Tromey <tromey@redhat.com>
6118 * proc-service.c (ps_pglobal_lookup): Set the current program
6121 2012-03-06 Pedro Alves <palves@redhat.com>
6123 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6125 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6127 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6129 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6132 * common/linux-osdata.c (linux_common_core_of_thread): New function
6134 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6135 call by linux_common_core_of_thread.
6136 (linux_nat_core_of_thread_1): Remove.
6137 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6138 * linux-thread-db.c: Include linux-osdata.h.
6139 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6140 linux_common_core_of_thread.
6142 2012-03-05 Tom Tromey <tromey@redhat.com>
6144 * value.c (value_primitive_field): Don't fetch contents for
6147 2012-03-05 Tom Tromey <tromey@redhat.com>
6149 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6151 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6153 * s390-nat.c: Include "gregset.h".
6155 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6157 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6158 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6159 (libunwind_load): New variable so_error, use it for dlerror. Try to
6160 load also LIBUNWIND_SO_7.
6162 2012-03-05 Pedro Alves <palves@redhat.com>
6164 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6165 is not NULL, and remove resulting dead code.
6167 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6169 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6170 prologue to sh_analyze_prologue.
6171 (sh_analyze_prologue): Make better use of such an upper limit, and
6172 generally be more cautious about accessing memory.
6174 2012-03-05 Tom Tromey <tromey@redhat.com>
6176 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6177 _initialize_ia64_hpux_tdep.
6179 2012-03-05 Pedro Alves <palves@redhat.com>
6183 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6184 the register state is clear, supply explicit zero, instead of
6185 marking the register unavailable.
6187 2012-03-05 Tristan Gingold <gingold@adacore.com>
6189 * NEWS: Mention OpenVMS ia64 new target.
6191 2012-03-05 Tristan Gingold <gingold@adacore.com>
6193 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6194 (ia64_unw_accessors, ia64_unw_rse_accessors)
6195 (ia64_libunwind_descr): Declare.
6196 * ia64-vms-tdep.c: New file.
6197 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6198 (ia64_libunwind_descr): Make them public.
6199 * configure.tgt: Add ia64-*-*vms*.
6200 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6201 (ALLDEPFILES): Add ia64-vms-tdep.c
6203 2012-03-05 Tristan Gingold <gingold@adacore.com>
6205 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6206 * remote.c (PACKET_qXfer_uib): New enum value.
6207 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6208 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6209 (_initialize_remote): Call add_packet_config_cmd for
6212 2012-03-05 Tristan Gingold <gingold@adacore.com>
6214 * osabi.c (gdb_osabi_names): Add OpenVMS.
6215 (generic_elf_osabi_sniffer): Likewise.
6216 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6218 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6220 Removed unused code.
6221 * libunwind-frame.c (libunwind_frame_unwind)
6222 (libunwind_frame_base_address): Remove.
6223 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6225 2012-03-04 Yao Qi <yao@codesourcery.com>
6227 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6228 remove trailing new line.
6229 (agent_run_command, agent_run_command): Add _ markup.
6230 (agent_capability_check): Likewise.
6232 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6234 * breakpoint.c (set_condition_evaluation_mode): Set
6235 CONDITION_EVALUATION_MODE unconditionally.
6237 2012-03-03 Yao Qi <yao@codesourcery.com>
6239 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6240 * common/agent.h: Update declaration.
6241 * inf-child.c (inf_child_use_agent): New.
6242 (inf_child_can_use_agent): New.
6243 (inf_child_target): Initialize fields `to_use_agent'
6244 and `to_can_use_agent'.
6245 * agent.c (agent_new_objfile): New.
6246 (_initialize_agent): Add agent_new_objfile to new_objfile
6249 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6251 (linux_target_install_ops): Initialize field
6252 `to_static_tracepoint_markers_by_strid'.
6253 * remote.c (free_current_marker): Move it to ...
6254 * tracepoint.c (free_current_marker): ... here. New.
6255 (cleanup_target_stop): New.
6256 * tracepoint.h: Declare free_current_marker.
6257 * NEWS: Add one entry about `info static-tracepoint-marker'.
6259 2012-03-03 Yao Qi <yao@codesourcery.com>
6261 * common/agent.c (agent_loaded_p): New.
6262 (agent_look_up_symbols): New global.
6263 * common/agent.h: Declare agent_loaded_p.
6265 2012-03-03 Yao Qi <yao@codesourcery.com>
6267 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6268 (agent_capability_check, agent_capability_invalidate): New.
6269 (symbol_list): New array element.
6270 * common/agent.h (enum agent_capa): New.
6271 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6273 2012-03-03 Yao Qi <yao@codesourcery.com>
6275 * target.h (struct target_ops) <to_use_agent>: New field.
6276 (struct target_ops) <to_can_use_agent>: New field.
6277 (target_use_agent, target_can_use_agent): New macro.
6278 * target.c (update_current_target): Update.
6279 * remote.c: New enum `PACKET_QAgent'.
6280 (remote_protocol_features): Add a new element.
6281 (remote_use_agent, remote_can_use_agent): New.
6282 (init_remote_ops): Initialize field `can_use_agent' with
6283 remote_can_use_agent. Intiailize field `use_agent' with
6285 * common/agent.c (use_agent): New global.
6286 * common/agent.h: Declare it.
6287 * tracepoint.c (info_static_tracepoint_markers_command): Add
6289 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6290 (COMMON_OBS): Add common/agent.o and agent.o
6291 (common-agent.o): New rule.
6294 2012-03-03 Yao Qi <yao@codesourcery.com>
6296 * common/agent.c: New.
6297 * common/agent.h: New.
6298 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6300 * configure, configh.in: Regenerated.
6302 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6304 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6305 unless it exists for this architecture.
6307 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6309 * language.h (struct language_defn): New "method" la_read_var_value.
6310 * findvar.c: #include "language.h".
6311 (default_read_var_value): Renames read_var_value. Rewrite
6312 function description.
6313 (read_var_value): New function.
6314 * value.h (default_read_var_value): Add prototype.
6315 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6317 (ada_language_defn): Add entry for la_read_var_value.
6318 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6319 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6320 language_defn structures to add entry for new la_read_var_value
6323 2012-03-02 Tom Tromey <tromey@redhat.com>
6324 Pedro Alves <palves@redhat.com>
6326 PR breakpoints/13776:
6327 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6329 (delete_longjmp_breakpoint_at_next_stop): New.
6330 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6331 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6332 before deleting the inferior. Add comments.
6333 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6334 breakpoints immediately, but only on next stop. Move that code
6335 next to where we mark other breakpoints for deletion.
6337 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6339 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6341 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6344 2012-03-02 Pedro Alves <palves@redhat.com>
6346 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6348 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6350 Fix -Wmissing-prototypes build.
6351 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6352 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6353 (gdbsim_has_memory): Likewise.
6355 2012-03-02 Yao Qi <yao@codesourcery.com>
6357 Fix -Wmissing-prototypes build.
6358 * charset.c (phony_iconv_open): Make static.
6359 (phony_iconv_close, phony_iconv): Likewise.
6360 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6361 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6363 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6364 * ser-mingw.c (create_select_thread): Make static.
6365 * windows-termcap.c (tgetent): New prototype.
6366 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6368 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6370 Fix -Wmissing-prototypes build.
6371 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6372 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6373 (_initialize_loadable): New prototypes.
6375 2012-03-02 Doug Evans <dje@google.com>
6377 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6378 abbrev table, read_comp_unit will do it.
6380 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6382 Fix -Wmissing-prototypes build.
6383 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6384 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6385 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6386 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6387 (_initialize_arm_symbian_tdep): New prototype.
6388 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6389 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6390 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6392 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6393 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6395 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6396 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6397 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6399 * moxie-tdep.c (moxie_process_record): Likewise.
6400 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6401 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6402 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6403 (_initialize_rl78_tdep): New prototype.
6404 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6405 (_initialize_rx_tdep): New prototype.
6406 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6407 (_initialize_darwin_solib): New prototype.
6408 * solib-spu.c: Include solib-spu.h.
6409 (_initialize_spu_solib): New prototype.
6410 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6411 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6412 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6413 (tic6x_software_single_step): Make it static.
6414 (_initialize_tic6x_tdep): New prototype.
6416 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6418 Fix -Wmissing-prototypes build.
6419 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6420 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6422 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6424 Fix -Wmissing-prototypes build.
6425 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6426 (frv_have_stopped_data_address): Remove.
6428 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6430 Fix -Wmissing-prototypes build.
6431 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6432 * sh-tdep.c: Include sh64-tdep.h.
6433 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6434 * sh64-tdep.c: Include sh64-tdep.h.
6435 * sh64-tdep.h: New file.
6437 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6439 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6441 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6443 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6444 sp_regnum once the gdbarch_init_osabi hook has been called.
6446 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6448 * mips-tdep.c (mips32_bc1_pc): New function.
6449 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6450 BPOSGE32 and BPOSGE64 instructions.
6451 (deal_with_atomic_sequence): Likewise.
6452 (mips32_instruction_has_delay_slot): Likewise.
6454 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6455 Chris Dearman <chris@mips.com>
6456 Maciej W. Rozycki <macro@codesourcery.com>
6457 Joseph Myers <joseph@codesourcery.com>
6459 * features/mips-dsp.xml: New file.
6460 * features/mips64-dsp.xml: New file.
6461 * features/mips-dsp-linux.xml: New file.
6462 * features/mips64-dsp-linux.xml: New file.
6463 * features/Makefile (WHICH): Add mips-dsp-linux and
6465 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6466 * features/mips-dsp-linux.c: New file.
6467 * features/mips64-dsp-linux.c: New file.
6468 * regformats/mips-dsp-linux.dat: New file.
6469 * regformats/mips64-dsp-linux.dat: New file.
6470 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6472 (mips64_linux_register_addr): Likewise.
6473 (mips64_linux_regsets_fetch_registers): Likewise.
6474 (mips64_linux_regsets_store_registers): Likewise.
6475 (mips64_linux_fetch_registers): Update call to
6476 mips64_linux_regsets_fetch_registers.
6477 (mips64_linux_store_registers): Update call to
6478 mips64_linux_regsets_store_registers.
6479 (mips_linux_read_description): Probe for DSP registers.
6480 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6481 and initialize_tdesc_mips64_dsp_linux.
6482 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6483 Remove padding of no longer used embedded register slots.
6484 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6485 (MIPS_RESTART_REGNUM): Redefine enum value.
6486 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6488 (mips_tx39_reg_names): Likewise.
6489 (mips_linux_reg_names): New array of register names for Linux
6491 (mips_register_name): Check for a null pointer in
6492 mips_processor_reg_names and return an empty string.
6493 (mips_register_type): Exclude embedded registers for the IRIX
6495 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6496 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6498 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6499 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6500 (mips_gdbarch_init): Likewise. Initialize internal register
6501 indices for the Linux ABI. Use dynamic numbers to refer to
6502 registers, as applicable, while parsing the target description.
6503 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6505 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6507 * frame.h (read_frame_register_unsigned): Fix typo in function
6510 2012-03-01 Pedro Alves <palves@redhat.com>
6512 * jit-reader.in [!__cplusplus]
6513 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6515 2012-03-01 Pedro Alves <palves@redhat.com>
6517 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6518 * configure: Regenerate.
6520 2012-03-01 Pedro Alves <palves@redhat.com>
6522 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6523 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6524 (ftrace_command, strace_command): Make static.
6525 * d-lang.c (_initialize_d_language): Declare.
6526 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6527 * dwarf2loc.c (_initialize_dwarf2loc):
6528 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6529 * exec.c (exec_get_section_table): Make static.
6530 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6531 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6532 * inferior.c (remove_inferior_command, add_inferior_command)
6533 (clone_inferior_command): Make static.
6534 * linux-nat.c (linux_nat_thread_address_space)
6535 (linux_nat_core_of_thread): Make static.
6536 * linux-tdep.c (_initialize_linux_tdep): Declare.
6537 * objc-lang.c (_initialize_objc_lang): Declare.
6538 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6540 (_initialize_opencl_language): Declare.
6541 * record.c (_initialize_record): Declare.
6542 * remote.c (demand_private_info, remote_get_tib_address)
6543 (remote_supports_cond_tracepoints)
6544 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6546 * skip.c (_initialize_step_skip): Declare.
6547 * symtab.c (skip_prologue_using_lineinfo): Make static.
6548 * tracepoint.c (delete_trace_state_variable)
6549 (trace_variable_command, delete_trace_variable_command)
6550 (get_uploaded_tsv, find_matching_tracepoint_location)
6551 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6553 * value.c (pack_unsigned_long): Make static.
6554 * varobj.c (varobj_ensure_python_env): Make static.
6555 * windows-tdep.c (_initialize_windows_tdep): Declare.
6556 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6558 2012-03-01 Pedro Alves <palves@redhat.com>
6560 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6562 (linux_init_abi): Install it as has_shared_address_space gdbarch
6565 2012-03-01 Pedro Alves <palves@redhat.com>
6567 * observer.c (observer_test_first_notification_function)
6568 (observer_test_second_notification_function)
6569 (observer_test_third_notification_function): Add declarations.
6571 2012-03-01 Pedro Alves <palves@redhat.com>
6573 * common/signals.c (default_target_signal_to_host)
6574 (default_target_signal_from_host): Move ...
6575 * arch-utils.c: ... here.
6576 * arch-utils.h (default_target_signal_to_host)
6577 (default_target_signal_from_host): Declare.
6579 * common/signals.c (target_signal_from_command): Move ...
6580 * infrun.c: ... here.
6581 * inferior.h (target_signal_from_command): Declare.
6582 * target.h (target_signal_from_command)
6583 (default_target_signal_from_host, default_target_signal_to_host):
6584 Delete declarations.
6586 * common/signals.c (_initialize_signals): Delete.
6588 2012-03-01 Pedro Alves <palves@redhat.com>
6590 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6591 both __cplusplus and !__cplusplus.
6593 2012-03-01 Pedro Alves <palves@redhat.com>
6595 * psymtab.c (find_and_open_source): Delete declaration.
6596 * source.c (find_and_open_source): Move comment ...
6597 * source.h (find_and_open_source): ... to this new declaration.
6599 2012-03-01 Pedro Alves <palves@redhat.com>
6601 * inline-frame.c: Include inline-frame.h.
6603 2012-03-01 Pedro Alves <palves@redhat.com>
6605 * tui/tui-data.c (set_gen_win_origin): Delete.
6606 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6607 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6609 2012-03-01 Pedro Alves <palves@redhat.com>
6611 * remote.c (encode_actions): Delete declaration.
6612 * tracepoint.c (encode_actions): Make extern.
6613 * tracepoint.h (encode_actions): Declare.
6615 2012-03-01 Pedro Alves <palves@redhat.com>
6617 * python/py-breakpoint.c: Include python.h.
6618 * python/py-continueevent.c (create_continue_event_object): Make
6620 * python/py-lazy-string.c (stpy_get_type): Make static.
6621 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6623 * python/py-utils.c (unicode_to_target_python_string): Make
6625 * python/py-value.c: Include python.h.
6627 2012-03-01 Pedro Alves <palves@redhat.com>
6629 * inferior.c (delete_threads_of_inferior): Delete.
6631 2012-03-01 Pedro Alves <palves@redhat.com>
6633 Import fallback definitions from glibc.
6635 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6636 ps_prochandle): Forward declare.
6637 (ps_err_e): Use glibc's comments.
6638 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6639 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6640 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6641 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6642 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6643 (struct ps_prochandle): Adjust comment.
6645 2012-03-01 Pedro Alves <palves@redhat.com>
6647 * ada-lang.c (ada_modulus_from_name): Delete.
6648 * ada-lex.l (lexer_init): Make static.
6650 2012-03-01 Pedro Alves <palves@redhat.com>
6654 * frame.c (read_frame_register_unsigned): New.
6655 * frame.h (read_frame_register_unsigned): Declare.
6656 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6658 (print_i387_control_word): New parameter `control_p'. Handle it.
6659 (i387_print_float_info): Handle unavailable float registers.
6661 2012-03-01 Keith Seitz <keiths@redhat.com>
6663 * linespec.c (decode_line_2): Sort the list of methods
6664 alphabetically before presenting the user with a selection
6667 2012-03-01 Doug Evans <dje@google.com>
6669 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6671 (dwarf2_read_abbrevs): Remove corresponding initialization.
6673 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
6675 * NEWS: Mention new python command class gdb.COMMAND_USER.
6676 * cli/cli-cmds.c (show_user): Print error when used on a python
6678 (init_cli_cmds): Update documentation strings for "show user" and
6679 "set/show max-user-call-depth" to clarify that it does not apply to
6681 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6683 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6685 * top.c (execute_command): Only execute a user-defined command as a
6686 legacy macro if c->user_commands is set.
6688 2012-03-01 Tom Tromey <tromey@redhat.com>
6690 * valprint.h (struct generic_val_print_decorations): New.
6691 (generic_val_print): Declare.
6692 * valprint.c (generic_val_print): New function.
6693 * p-valprint.c (p_decorations): New global.
6694 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6695 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6696 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6697 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6698 * m2-valprint.c (m2_decorations): New global.
6699 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6700 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6701 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6702 TYPE_CODE_ERROR>: Call generic_val_print.
6703 * f-valprint.c (f_decorations): New global.
6704 (f_val_print): Use print_function_pointer_address.
6705 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6706 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6707 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6709 * c-valprint.c (c_decorations): New global.
6710 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6711 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6712 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6713 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6714 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6715 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6718 2012-03-01 Tom Tromey <tromey@redhat.com>
6720 * valprint.c (val_print): Update.
6721 * p-valprint (pascal_val_print): Return void.
6722 * p-lang.h (pascal_val_print): Return void.
6723 * m2-valprint.c (m2_val_print): Return void.
6724 * m2-lang.h (m2_val_print): Return void.
6725 * language.h (struct language_defn) <la_val_print>: Return void.
6726 * language.c (unk_lang_val_print): Return void.
6727 * jv-valprint.c (java_val_print): Return void.
6728 * jv-lang.h (java_val_print): Return void.
6729 * f-valprint.c (f_val_print): Return void.
6730 * f-lang.h (f_val_print): Return void.
6731 * d-valprint.c (d_val_print): Return void.
6732 (dynamic_array_type): Update.
6733 * d-lang.h (d_val_print): Return void.
6734 * c-valprint.c (c_val_print): Return void.
6735 * c-lang.h (c_val_print): Return void.
6736 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6738 * ada-lang.h (ada_val_print): Return void.
6740 2012-03-01 Tom Tromey <tromey@redhat.com>
6742 * value.h (val_print): Return void.
6743 * valprint.c (val_print): Return void.
6745 2012-03-01 Tom Tromey <tromey@redhat.com>
6747 * value.h (common_val_print): Return void.
6748 * valprint.c (common_val_print): Return void.
6750 2012-03-01 Tom Tromey <tromey@redhat.com>
6752 * value.h (value_print): Return void.
6753 * valprint.c (value_print): Return void.
6754 * p-valprint.c (pascal_value_print): Return void.
6755 * p-lang.h (pascal_value_print): Return void.
6756 * language.h (struct language_defn) <la_value_print>: Return
6758 * language.c (unk_lang_value_print): Return void.
6759 * jv-valprint.c (java_value_print): Return void.
6760 * jv-lang.h (java_value_print): Return void.
6761 * f-valprint.c (c_value_print): Don't declare.
6763 * c-valprint.c (c_value_print): Return void.
6764 * c-lang.h (c_value_print): Return void.
6765 * ada-valprint.c (ada_value_print): Return void.
6766 * ada-lang.h (ada_value_print): Return void.
6768 2012-03-01 Tom Tromey <tromey@redhat.com>
6770 * value.c (value_primitive_field): Handle virtual base classes.
6772 2012-03-01 Tom Tromey <tromey@redhat.com>
6774 * gdbtypes.h (struct vbase): Remove.
6776 2012-03-01 Tom Tromey <tromey@redhat.com>
6778 * c-valprint.c (print_function_pointer_address): Move...
6779 * valprint.c: ... here. Make non-static.
6780 * m2-valprint.c (print_function_pointer_address): Remove.
6781 * valprint.h (print_function_pointer_address): Declare.
6783 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6785 * NEWS: Document the fact that one can provide a condition when
6786 creating an Ada exception catchpoint.
6788 2012-03-01 Tom Tromey <tromey@redhat.com>
6790 * valprint.c (val_print_type_code_flags): Fix placement of
6793 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6795 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6796 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6797 environment variable before calling update-copyright.
6799 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6801 * gnulib/extra/update-copyright: Update to the latest from
6802 gnulib's git repository.
6803 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6804 variable to 2 instead of 1.
6806 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6808 * varobj.c (c_value_of_variable): Remove dead code.
6810 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6812 * ada-lex.p (processId): Do not modify already encoded IDs.
6813 Update function documentation.
6815 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6817 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6818 "name" with "struct symbol *name_sym".
6819 * ada-exp.y (write_var_or_type): Update call to
6820 ada_find_renaming_symbol.
6821 "name" with "struct symbol *name_sym". Adjust Implementation
6822 accordingly. Adjust the function documentation.
6824 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6826 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6827 * ada-lang.c (ada_find_any_type): Add advance declaration.
6828 Make static. Replace ada_find_any_symbol by
6829 ada_find_any_type_symbol.
6830 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
6831 Improve function description. Make static.
6832 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
6833 Replace ada_find_any_symbol by ada_find_any_type_symbol.
6835 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6837 * ada-lang.c (struct tag_args): Delete.
6838 (ada_get_tsd_type): Function body moved up in source file.
6839 (ada_tag_name_1, ada_tag_name_2): Delete.
6840 (ada_get_tsd_from_tag): New function.
6841 (ada_tag_name_from_tsd): New function.
6842 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
6843 to determine the tag name.
6845 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6847 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
6849 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
6852 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6854 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
6856 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6858 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
6861 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6863 * ada-lang.c (constrained_packed_array_type): If there is a
6864 parallel XA type, use it to determine the array index type.
6866 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6868 * ada-valprint.c (ada_val_print_1): If our value is a reference
6869 to an array descriptor, dereference it before converting it
6872 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6874 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
6875 creating fixed value.
6876 (ada_value_ind, ada_coerce_ref, assign_component)
6877 (ada_evaluate_subexp): Remove call to unwrap_value before
6878 call to ada_to_fixed_value.
6880 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6882 * ada-lang.c (to_fixed_array_type): Set result's type name.
6884 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6886 * ada-lang.c (catch_ada_exception_command_split): Add new
6887 argument cond_string. Add support for condition at end of
6888 "catch exception" commands.
6889 (ada_decode_exception_location): Add new argument cond_string.
6890 Update call to catch_ada_exception_command_split.
6891 (create_ada_exception_catchpoint): Add new argument cond_string.
6892 Set the breakpoint condition if needed.
6893 (catch_ada_exception_command): Update call to
6894 ada_decode_exception_location.
6895 (ada_decode_assert_location): Add function documentation.
6896 Add support for condition at end of "catch assert" command.
6897 (catch_assert_command): Update calls to ada_decode_assert_location
6898 and create_ada_exception_catchpoint.
6900 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6902 Fix disp-step-syscall.exp: fork: single step over fork.
6903 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
6904 (i386_linux_get_syscall_number_from_regcache): ... here, new function
6905 comment, change parameters gdbarch and ptid to regcache. Remove
6906 parameter regcache, initialize gdbarch from regcache here.
6907 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
6909 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
6911 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
6912 'syscall'. Make the 'int' check more strict.
6914 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6916 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
6917 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
6918 (i386_linux_intx80_sysenter_syscall_record): ... here.
6919 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
6920 Use the renamed function name.
6922 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6924 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
6925 * breakpoint.c (until_break_command): Likewise.
6926 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6927 * infcall.c (call_function_by_hand): Likewise.
6928 * infcmd.c (finish_forward): Likewise.
6929 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6931 2012-02-28 Tristan Gingold <gingold@adacore.com>
6933 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
6934 avoid variable assignments inside condition.
6936 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6938 Fix static analysis issue found by cppcheck.
6939 * microblaze-tdep.c (microblaze_extract_return_value): Fix
6940 uninitialized BUF for size 2.
6942 2012-02-27 Chris Dearman <chris@mips.com>
6943 Nathan Froyd <froydnj@codesourcery.com>
6944 Maciej W. Rozycki <macro@codesourcery.com>
6946 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
6947 (mips16_instruction_has_delay_slot): Likewise.
6948 (mips_segment_boundary): Likewise.
6949 (mips_adjust_breakpoint_address): Likewise.
6950 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
6952 2012-02-27 Maciej W. Rozycki <macro@mips.com>
6953 Maciej W. Rozycki <macro@codesourcery.com>
6955 * infrun.c (handle_inferior_event): Don't proceed through
6956 shared library trampolines if stepping at the machine
6959 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
6961 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
6964 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
6966 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
6967 (sh_stub_unwind_sniffer): New functions.
6968 (sh_stub_unwind): New variable.
6969 (sh_gdbarch_init): Wire everything.
6971 2012-02-27 Pedro Alves <palves@redhat.com>
6973 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
6974 (linux_nat_post_attach_wait): Adjust to use
6975 linux_proc_pid_is_stopped.
6976 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
6977 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
6978 based on pid_is_stopped from both linux-nat.c and
6979 gdbserver/linux-low.c, and renamed.
6981 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6983 * remote.c (remote_watchpoint_addr_within_range): New function.
6984 (init_remote_ops): Use it.
6986 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6988 * target.h (target_watchpoint_addr_within_range): Document macro.
6990 2012-02-24 Pedro Alves <palves@redhat.com>
6992 * stack.c (set_last_displayed_sal): Issue internal_error instead
6993 of warning, and issue it after clearing the last displayed sal.
6995 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6996 Pedro Alves <palves@redhat.com>
6998 * breakpoint.c (until_break_command): Install breakpoints after
6999 all frame manipulations.
7001 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7003 * remote.c (remote_supports_cond_breakpoints): New forward
7005 (remote_add_target_side_condition): New function.
7006 (remote_insert_breakpoint): Add target-side breakpoint
7007 conditional if supported.
7008 (remote_insert_hw_breakpoint): Likewise.
7009 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7012 * target.c (update_current_target): Inherit
7013 to_supports_evaluation_of_breakpoint_conditions.
7014 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7016 * target.h (struct target_ops)
7017 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7018 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7020 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7021 (condition_evaluation_both, condition_evaluation_auto,
7022 condition_evaluation_host, condition_evaluation_target,
7023 condition_evaluation_enums, condition_evaluation_mode_1,
7024 condition_evaluation_mode): New static globals.
7025 (translate_condition_evaluation_mode): New function.
7026 (breakpoint_condition_evaluation_mode): New function.
7027 (gdb_evaluates_breakpoint_condition_p): New function.
7028 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7029 (mark_breakpoint_modified): New function.
7030 (mark_breakpoint_location_modified): New function.
7031 (set_condition_evaluation_mode): New function.
7032 (show_condition_evaluation_mode): New function.
7033 (bp_location_compare_addrs): New function.
7034 (get_first_location_gte_addr): New helper function.
7035 (set_breakpoint_condition): Free condition bytecode if locations
7036 has become unconditional. Call mark_breakpoint_modified (...).
7037 (condition_command): Call update_global_location_list (1) for
7039 (breakpoint_xfer_memory): Use is_breakpoint (...).
7040 (is_breakpoint): New function.
7041 (parse_cond_to_aexpr): New function.
7042 (build_target_condition_list): New function.
7043 (insert_bp_location): Handle target-side conditional
7044 breakpoints and call build_target_condition_list (...).
7045 (update_inserted_breakpoint_locations): New function.
7046 (insert_breakpoint_locations): Handle target-side conditional
7048 (bpstat_check_breakpoint_conditions): Add comment.
7049 (bp_condition_evaluator): New function.
7050 (bp_location_condition_evaluator): New function.
7051 (print_breakpoint_location): Print information on where the condition
7053 (print_one_breakpoint_location): Likewise.
7054 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7055 breakpoint location.
7056 (force_breakpoint_reinsertion): New functions.
7057 (update_global_location_list): Handle target-side breakpoint
7059 Reinsert locations that are already inserted if conditions have
7061 (bp_location_dtor): Free agent expression bytecode.
7062 (disable_breakpoint): Call mark_breakpoint_modified (...).
7063 Call update_global_location_list (...) with parameter 1 for breakpoints.
7064 (disable_command): Call mark_breakpoint_location_modified (...).
7065 Call update_global_location_list (...) with parameter 1 for breakpoints.
7066 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7067 (enable_command): mark_breakpoint_location_modified (...).
7068 (_initialize_breakpoint): Update documentation and add
7069 condition-evaluation breakpoint subcommand.
7071 * breakpoint.h: Include ax.h.
7072 (condition_list): New data structure.
7073 (condition_status): New enum.
7074 (bp_target_info) <cond_list>: New field.
7075 (bp_location) <condition_changed, cond_bytecode>: New fields.
7076 (is_breakpoint): New prototype.
7078 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7080 * remote.c (remote_state) <cond_breakpoints>: New field.
7081 (PACKET_ConditionalBreakpoints): New enum.
7082 (remote_cond_breakpoint_feature): New function.
7083 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7084 (remote_supports_cond_breakpoints): New function.
7085 (_initialize_remote): Add new packet configuration for
7086 target-side conditional breakpoints.
7088 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7090 * NEWS: Mention target-side conditional breakpoint support,
7091 new condition-evaluation breakpoint subcommand and remote
7094 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7096 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7099 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7101 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7102 (after_prologue): Remove.
7104 2012-02-23 Tom Tromey <tromey@redhat.com>
7106 * jv-valprint.c (java_val_print): Remove dead code.
7108 2012-02-23 Tristan Gingold <gingold@adacore.com>
7110 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7111 known_tasks_element and known_tasks_length fields.
7112 (read_known_tasks_array): Change argument type. Use pointer type
7113 and number of elements from DATA. Adjust.
7114 (read_known_tasks_list): Likewise.
7115 (get_known_tasks_addr): Remove.
7116 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7117 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7118 type and array length. Merge former get_known_tasks_addr code.
7120 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7123 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7124 it after set_momentary_breakpoint.
7126 2012-02-22 Sterling Augustine <saugustine@google.com>
7129 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7131 2012-02-22 Gary Benson <gbenson@redhat.com>
7133 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7134 (find_slot_in_mapped_hash): Likewise.
7136 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7139 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7140 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7141 * configure: Regenerate.
7143 2012-02-21 Tristan Gingold <gingold@adacore.com>
7144 Pedro Alves <palves@redhat.com>
7146 * ia64-tdep.c: Do not include libunwind-ia64.h.
7147 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7148 Include libunwind-ia64.h instead of libunwind.h.
7149 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7150 for libunwind.h existence.
7151 * configure, config.in: Regenerate.
7153 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7155 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7156 instead of value_rtti_target_type.
7157 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7158 instead of value_rtti_target_type.
7159 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7160 value_rtti_target_type.
7161 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7162 (value_rtti_target_type): Rename to ...
7163 (value_rtti_indirect_type): ... here and make it indirect. Update
7165 * value.c (readjust_indirect_value_type): New function.
7166 (coerce_ref): Support for enclosing type setting for references
7167 with readjust_indirect_value_type.
7168 * value.h (readjust_value_type): New declaration.
7169 (value_rtti_target_type): Rename to ...
7170 (value_rtti_indirect_type): ... here.
7172 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7174 * MAINTAINERS (Write After Approval): Add myself to the list.
7176 2012-02-20 Doug Evans <dje@google.com>
7178 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7179 Rename objfile_p_char parameter to objfilep.
7180 (build_objfile_section_table): Result is now void. All callers
7182 * objfiles.h (struct objfile): Tweak comments, whitespace.
7183 (build_objfile_section_table): Update.
7185 * elfread.c (elf_symfile_segments): Fix warning text.
7187 2012-02-20 Tom Tromey <tromey@redhat.com>
7190 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7191 particular set of file names once.
7192 (dw2_map_symbol_filenames): Likewise.
7194 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7197 * main.c (write_files): Remove the declaration.
7198 (external_editor_command): Move the declaration ...
7199 [GDBTK] (external_editor_command): ... here. Fix the comment.
7201 2012-02-20 Tom Tromey <tromey@redhat.com>
7203 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7206 2012-02-20 Tristan Gingold <gingold@adacore.com>
7208 * darwin-nat.h (enum darwin_msg_state): Add comments.
7210 2012-02-20 Tristan Gingold <gingold@adacore.com>
7212 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7215 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7217 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7218 between function description and implementation.
7220 2012-02-17 Tom Tromey <tromey@redhat.com>
7223 * python/py-event.c (event_object_getset): New global.
7224 (event_object_type): Reference it.
7225 * python/py-type.c (field_object_getset): New global.
7226 (field_object_type): Reference it.
7227 * python/python-internal.h (gdb_py_generic_dict): Declare.
7228 * python/py-utils.c (gdb_py_generic_dict): New function.
7230 2012-02-17 Tristan Gingold <gingold@adacore.com>
7232 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7234 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7236 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7237 TYPE_CALLING_CONVENTION annotation.
7239 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7241 * MAINTAINERS: Add rx to target ISA section.
7242 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7243 (ALLDEPFILES): Add rx-tdep.c.
7245 2012-02-16 Tom Tromey <tromey@redhat.com>
7247 * symfile.c (symbol_file_add_main_1): Use inferior's
7249 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7250 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7252 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7254 (follow_exec): Use inferior's symfile_flags.
7255 * inferior.h (struct inferior) <symfile_flags>: New field.
7257 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7260 * remote-sim.c (gdbsim_create_inferior): Call error() when
7261 sim_create_inferior() fails.
7263 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7265 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7267 2012-02-16 Tom Tromey <tromey@redhat.com>
7270 * thread.c (struct current_thread_cleanup) <was_removable>: New
7272 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7273 (make_cleanup_restore_current_thread): Initialize new field.
7275 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7277 * MAINTAINERS: Add rl78 to target ISA section.
7278 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7279 (ALLDEPFILES): Add rl78-tdep.c.
7280 * NEWS: Mention rl78 as a new target.
7282 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7284 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7286 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7288 2012-02-15 Tom Tromey <tromey@redhat.com>
7291 * infcmd.c (registers_info): Print just the current register's
7294 2012-02-15 Tom Tromey <tromey@redhat.com>
7296 * python/py-symbol.c (sympy_value): Use _().
7298 2012-02-15 Pedro Alves <palves@redhat.com>
7300 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7301 output to be like native targets'.
7302 (remote_pid_to_str): Special case the null ptid.
7304 2012-02-14 Stan Shebs <stan@codesourcery.com>
7306 * NEWS: Mention enable count command.
7307 * breakpoint.h (struct breakpoint): New field enable_count.
7308 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7309 (enable_breakpoint): Add arg to call.
7310 (struct disp_data): New struct.
7311 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7312 (do_map_enable_once_breakpoint): Create a struct and pass it.
7313 (do_map_enable_delete_breakpoint): Ditto.
7314 (do_map_enable_count_breakpoint): New function.
7315 (enable_count_command): New function.
7316 (bpstat_stop_status): Decrement enable_count.
7317 (print_one_breakpoint_location): Report enable count.
7318 (_initialize_breakpoint): Add enable count command.
7320 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7322 * rl78-tdep.c (reggroups.h): Include.
7323 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7324 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7325 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7326 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7327 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7328 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7329 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7330 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7331 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7332 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7333 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7334 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7335 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7336 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7337 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7338 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7339 beginning of register list.
7340 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7341 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7342 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7343 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7344 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7345 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7346 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7347 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7348 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7349 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7350 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7351 the pseudo registers. Rearrange other pseudo registers too so
7352 that the bank registers appear at the end.
7353 (rl78_register_type): Account for the fact that the byte sized
7354 bank registers are now pseudo-registers.
7355 (rl78_register_name): Rearrange the register name array. Make
7356 initial set of raw banked registers inaccessible.
7357 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7358 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7359 case for copying bytes back and forth between raw and pseudo
7360 versions of the banked registers. Update other cases to reflect
7362 (rl78_return_value): Update to account for changed names of
7364 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7365 rl78_register_sim_regno().
7367 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7369 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7370 the name parameter being passed to find_pc_partial_function().
7372 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7374 * MAINTAINERS: Step down from being ia64 target maintainer.
7376 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7378 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7379 compilation warning.
7381 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7383 Fix crash on loaded shlibs without loaded exec_bfd.
7384 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7385 (set_section_command): Replace exec_bfd by p->bfd.
7387 2012-02-10 Tom Tromey <tromey@redhat.com>
7389 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7390 when we have a C++ qualified name.
7392 2012-02-10 Pedro Alves <palves@redhat.com>
7394 * inferior.c (inferior_pid_to_str): New.
7395 (print_inferior, inferior_command): Use it.
7397 2012-02-10 Pedro Alves <palves@redhat.com>
7399 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7401 * configure: Regenerate.
7403 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7405 * linespec.c (decode_line_internal): Fix comment correctness.
7407 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7410 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7411 * amd64bsd-nat.c: Add support for debug registers (adapted from
7413 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7414 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7415 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7416 (amd64bsd_dr_get_control): New functions.
7417 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7418 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7419 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7420 watchpoints initialization.
7421 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7423 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7425 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7427 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7429 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7431 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7433 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7435 * language.h (symbol_name_cmp_ftype): Renames
7436 symbol_name_match_p_ftype.
7437 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7438 la_get_symbol_name_match_p.
7439 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7440 ada_get_symbol_name_match_p. Update comment.
7441 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7442 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7443 Renames symbol_name_match_p. Update field type.
7444 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7445 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7446 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7447 "la_get_symbol_name_cmp" in comments.
7448 * language.c: Likewise.
7450 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7452 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7454 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7455 (amd64_sol2_gregset32_reg_offs): Likewise.
7457 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7459 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7460 of the returned BFD is allocated by GDB.
7462 2012-02-07 Tom Tromey <tromey@redhat.com>
7465 * python/python-internal.h (frame_object_type): Declare.
7466 * python/py-symbol.c (sympy_needs_frame): New function.
7467 (sympy_value): New function.
7468 (symbol_object_getset): Add "needs_frame".
7469 (symbol_object_methods): Add "value".
7470 * python/py-frame.c (frame_object_type): No longer static.
7472 2012-02-07 Tom Tromey <tromey@redhat.com>
7475 * python/py-symbol.c (sympy_line): New function.
7476 (symbol_object_getset): Add "line".
7478 2012-02-07 Tom Tromey <tromey@redhat.com>
7480 * charset.c (find_charset_names): Check 'in' against NULL.
7482 2012-02-06 Doug Evans <dje@google.com>
7484 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7485 and fields.name members from char * to const char *. All uses updated.
7486 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7487 from char * to const char *. All uses updated.
7488 (type_name_no_tag): Update.
7489 (lookup_unsigned_typename, lookup_signed_typename): Update.
7490 * gdbtypes.c (type_name_no_tag): Change result type
7491 from char * to const char *. All callers updated.
7492 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7493 name parameter from char * to const char *.
7494 * symtab.h (struct cplus_specific): Change type of demangled_name
7495 member from char * to const char *. All uses updated.
7496 (struct general_symbol_info): Change type of name and
7497 mangled_lang.demangled_name members from char * to const char *.
7499 (symbol_get_demangled_name, symbol_natural_name): Update.
7500 (symbol_demangled_name, symbol_search_name): Update.
7501 * symtab.c (symbol_get_demangled_name): Change result type
7502 from char * to const char *. All callers updated.
7503 (symbol_natural_name, symbol_demangled_name): Ditto.
7504 (symbol_search_name): Ditto.
7505 (completion_list_add_name): Change type of symname,sym_text,
7506 text,word parameters from char * to const char *.
7507 (completion_list_objc_symbol): Change type of sym_text,
7508 text,word parameters from char * to const char *.
7509 * ada-lang.c (find_struct_field): Change type of name parameter
7510 from char * to const char *.
7511 (encoded_ordered_before): Similarly for N0,N1 parameters.
7512 (old_renaming_is_invisible): Similarly for function_name parameter.
7513 (ada_type_name): Change result type from char * to const char *.
7514 All callers updated.
7515 * ada-lang.h (ada_type_name): Update.
7516 * buildsym.c (hashname): Change type of name parameter
7517 from char * to const char *.
7518 * buildsym.h (hashname): Update.
7519 * dbxread.c (end_psymtab): Change type of include_list parameter
7520 from char ** to const char **.
7521 * dwarf2read.c (determine_prefix): Change result type
7522 from char * to const char *. All callers updated.
7523 * f-lang.c (find_common_for_function): Change type of name, funcname
7524 parameters from char * to const char *.
7525 * f-lang.c (find_common_for_function): Update.
7526 * f-valprint.c (list_all_visible_commons): Change type of funcname
7527 parameters from char * to const char *.
7528 * gdbarch.sh (static_transform_name): Change type of name parameter
7529 and result from char * to const char *.
7530 * gdbarch.c: Regenerate.
7531 * gdbarch.h: Regenerate.
7532 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7533 of name parameter from char * to const char *.
7534 * jv-lang.c (java_primitive_type_from_name): Ditto.
7535 (java_demangled_signature_length): Similarly for signature parameter.
7536 (java_demangled_signature_copy): Ditto.
7537 (java_demangle_type_signature): Ditto.
7538 * jv-lang.h (java_primitive_type_from_name): Update.
7539 (java_demangle_type_signature): Update.
7540 * objc-lang.c (specialcmp): Change type of a,b parameters
7541 from char * to const char *.
7542 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7543 from char * to const char *. All callers updated.
7544 * p-lang.h (is_pascal_string_type): Update.
7545 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7546 of name parameter from char * to const char *.
7547 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7548 * utils.c (fprintf_symbol_filtered): Ditto.
7549 * defs.h (fprintf_symbol_filtered): Update.
7550 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7551 * stabsread.h (end_psymtab): Update.
7552 * stack.c (find_frame_funname): Change type of funname parameter
7553 from char ** to const char **.
7554 * stack.h (find_frame_funname): Update.
7555 * typeprint.c (type_print): Change type of varstring parameter
7556 from char * to const char *.
7557 * value.h (type_print): Update.
7558 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7559 from char * to const char *. All callers updated.
7560 (xcoff_end_psymtab): Change type of include_list parameter
7561 from char ** to const char **. All callers updated.
7562 (swap_sym): Similarly for name parameter. All callers updated.
7563 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7565 (process_coff_symbol): Use xstrdup.
7566 * stabsread.c (stabs_method_name_from_physname): Renamed from
7567 update_method_name_from_physname. Change result type from void
7568 to char *. All callers updated.
7569 (read_member_functions): In has_destructor case, store name in objfile
7570 obstack instead of malloc space. In !has_stub case, fix mem leak.
7572 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7574 * configure: Rebuild.
7575 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7578 2012-02-03 Kevin Buettner <kevinb@redhat.com>
7580 * configure.tgt (rl78-*-elf): New target.
7581 * rl78-tdep.c: New file.
7583 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7585 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7586 and continue the loop. Add QUIT statement.
7588 2012-02-03 Tom Tromey <tromey@redhat.com>
7591 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7592 bfd_lookup_symbol_from_symtab.
7593 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7594 gdb_bfd_lookup_symbol_from_symtab.
7596 2012-02-03 Joel Brobecker <brobecker@adacore.com>
7598 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7599 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7600 symbol. Add assertion that sym2 is never NULL.
7602 2012-02-02 Doug Evans <dje@google.com>
7604 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7605 "name" parameter to const char ** from char **. All callers updated.
7606 (find_pc_partial_function): Ditto.
7607 (cache_pc_function_name): Change type to const char * from char *.
7608 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7609 (find_pc_partial_function): Update.
7610 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7611 type of "name" parameter to const char * from char *.
7613 * arch-utils.c (generic_in_solib_return_trampoline): Change
7614 type of "name" parameter to const char * from char *.
7615 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7616 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7617 type of "name" parameter to const char * from char *.
7618 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7619 * gdbarch.c: Regenerate.
7620 * gdbarch.h: Regenerate.
7621 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7622 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7623 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7624 type of "name" parameter to const char * from char *.
7625 * skip.c (skip_function_pc): Ditto.
7626 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7627 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7628 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7629 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7630 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7631 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7632 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7633 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7634 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7636 2012-02-02 Pedro Alves <palves@redhat.com>
7638 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7639 the current inferior has no execution. Make sure the current
7640 remote process matches gdb's current inferior.
7642 2012-02-02 Tom Tromey <tromey@redhat.com>
7645 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7648 2012-02-02 Tom Tromey <tromey@redhat.com>
7651 * symtab.c (lookup_language_this): Set block_found.
7653 2012-02-01 Tom Tromey <tromey@redhat.com>
7656 * jit.c (struct jit_inferior_data): Rewrite.
7657 (struct jit_objfile_data): New.
7658 (get_jit_objfile_data): New function.
7659 (add_objfile_entry): Update.
7660 (jit_read_descriptor): Return int. Replace descriptor_addr
7661 argument with inf_data. Update. Don't call error.
7662 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7664 (jit_inferior_init): Don't look up descriptor. Don't call error.
7665 (jit_reset_inferior_data_and_breakpoints)
7666 (jit_inferior_created_observer): Remove.
7667 (jit_inferior_exit_hook): Update.
7668 (jit_executable_changed_observer): Remove.
7669 (jit_event_handler): Update.
7670 (free_objfile_data): Reset inferior data if needed.
7671 (_initialize_jit): Update.
7673 2012-02-01 Tom Tromey <tromey@redhat.com>
7675 * jit.c (bfd_open_from_target_memory): Move higher in file.
7677 2012-02-01 Tristan Gingold <gingold@adacore.com>
7679 * libunwind-frame.c (libunwind_load): Display message if dlopen
7682 2012-02-01 Gary Benson <gbenson@redhat.com>
7684 * symtab.h (symbol_found_callback_ftype): New typedef.
7685 (iterate_over_symbols): Use the above.
7686 * symtab.c (iterate_over_symbols): Likewise.
7687 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7688 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7689 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7690 (iterate_name_matcher): Document return values.
7691 (collect_one_symbol): Likewise.
7692 (collect_function_symbols): Likewise.
7693 (collect_symbols): Likewise.
7695 2012-02-01 Tom Tromey <tromey@redhat.com>
7697 * ada-lang.c (resolve_subexp): Update.
7698 (ada_lookup_symbol_list): Add 'full_search' argument.
7699 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7700 ada_lookup_symbol_list.
7701 (ada_lookup_encoded_symbol): Update.
7702 (get_var_value): Update.
7703 * ada-exp.y (block_lookup): Update.
7704 (write_var_or_type): Update.
7705 (write_name_assoc): Update.
7706 * ada-lang.h (ada_lookup_symbol_list): Update.
7708 2012-01-31 Tom Tromey <tromey@redhat.com>
7710 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7713 2012-01-31 Doug Evans <dje@google.com>
7715 * symtab.h: Remove outdated comment.
7716 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7718 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
7720 Fix build error in Darwin port.
7721 * i386-darwin-nat.c: Include i386-nat.h.
7723 2012-01-30 Tom Tromey <tromey@redhat.com>
7725 PR breakpoints/13568:
7726 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7727 argument. Check for recursive includes.
7728 (dwarf_decode_macros): Create an include hash.
7730 2012-01-30 Michael Eager <eager@eagercon.com>
7732 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7733 * ppc-linux-tdep.c: Include glibc-tdep.h.
7734 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7735 (powerpc_linux_in_plt_stub): New function.
7736 (powerpc_linux_in_dynsym_resolve_code): New function.
7737 (ppc_skip_trampoline_code): New function.
7738 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7739 Use glibc_skip_solib_resolver.
7741 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7743 Code cleanup: Make 1440 bytes of data segment read-only.
7744 * arch-utils.c (endian_enum): Make it const char *const [].
7745 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7747 * breakpoint.c (always_inserted_enums): Likewise.
7748 * cli/cli-cmds.c (script_ext_enums): Likewise.
7749 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7750 enumlist parameter const char *const *.
7751 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7752 const char *const *.
7753 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7754 parameter const char *const *.
7755 * cris-tdep.c (cris_modes): Make it const char *const [].
7756 * filesystem.c (target_file_system_kinds): Likewise.
7757 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7758 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7759 (can_use_displaced_stepping_enum, scheduler_enums)
7760 (exec_direction_names): Likewise.
7761 * language.c (_initialize_language): Make the type_or_range_names and
7762 case_sensitive_names variables const char *const [].
7763 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7764 * python/python.c (python_excp_enums): Likewise.
7765 * remote.c (interrupt_sequence_modes): Likewise.
7766 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7767 * serial.c (logbase_enums): Likewise.
7768 * sh-tdep.c (sh_cc_enum): Likewise.
7769 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7771 * symtab.c (multiple_symbols_modes): Likewise.
7772 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7774 * utils.c (internal_problem_modes): Likewise.
7776 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7778 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7779 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7782 2012-01-27 Doug Evans <dje@google.com>
7784 * configure.ac (with_python): Fix absolute path handling for win32.
7785 * configure: Regenerate.
7787 2012-01-26 Doug Evans <dje@google.com>
7789 * symtab.c: Whitespace cleanup, no code changes.
7791 * symtab.c (lookup_symbol_in_language): Improve comment.
7792 (lookup_symbol_aux): Fix comment.
7794 * psymtab.c (add_psymbol_to_list): Result is now "void".
7795 * psympriv.h (add_psymbol_to_list): Update.
7797 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7799 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7801 Do not open script filenames twice.
7802 * cli/cli-cmds.c (source_script_from_stream): Pass to
7803 source_python_script also STREAM.
7804 * python/py-auto-load.c (source_section_scripts): Pass to
7805 source_python_script_for_objfile also STREAM.
7806 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7808 * python/python-internal.h (source_python_script_for_objfile): New
7809 parameter file, rename parameter file to filename.
7810 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7811 instead if !_WIN32. Update the function comment.
7812 (source_python_script, source_python_script_for_objfile)
7813 (source_python_script): New parameter file, rename parameter file to
7814 filename. Pass FILENAME to python_run_simple_file.
7815 * python/python.h (source_python_script): New parameter file, rename
7816 parameter file to filename.
7818 2012-01-26 Pedro Alves <palves@redhat.com>
7820 * corelow.c (core_has_fake_pid): Delete.
7821 (core_close): Delete references to `core_has_fake_pid'.
7822 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7823 (core_open): Delete references to `core_has_fake_pid'.
7824 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7827 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7829 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7830 Remove language parameter from name_matcher. Adjust the comment.
7831 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
7832 Remove language parameter.
7833 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
7834 * linespec.c (iterate_name_matcher): Likewise.
7835 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
7836 name_matcher. Adjust call accordingly.
7837 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
7838 (maintenance_check_symtabs): Adjust type of parameter "fun".
7839 * psymtab.h (maintenance_check_symtabs): Likewise.
7841 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7843 * language.h (symbol_name_match_p_ftype): New typedef.
7844 (struct language_defn): Replace field la_symbol_name_compare
7845 by la_get_symbol_name_match_p.
7846 * ada-lang.c (ada_get_symbol_name_match_p): New function.
7847 (ada_language_defn): Use it.
7848 * linespec.c (struct symbol_matcher_data): New type.
7849 (iterate_name_matcher): Rewrite.
7850 (iterate_over_all_matching_symtabs): Pass a pointer to
7851 a symbol_matcher_data struct to expand_symtabs_matching
7852 instead of just the lookup name.
7853 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7854 opencl-lang.c, p-lang.c, language.c: Delete field
7855 la_symbol_name_compare, and replace by NULL for new field
7856 la_get_symbol_name_match_p.
7857 * symfile.h (struct quick_symbol_functions): Update comment.
7859 2012-01-25 Tom Tromey <tromey@redhat.com>
7861 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
7864 2012-01-24 Tom Tromey <tromey@redhat.com>
7867 * solib.c (update_solib_list): Update the program space's
7868 added_solibs and deleted_solibs fields.
7869 * progspace.h (struct program_space) <added_solibs,
7870 deleted_solibs>: New fields.
7871 (clear_program_space_solib_cache): Declare.
7872 * progspace.c (release_program_space): Call
7873 clear_program_space_solib_cache.
7874 (clear_program_space_solib_cache): New function.
7875 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
7876 bpstat_stop_status. Use handle_solib_event.
7877 * breakpoint.c: Include gdb_regex.h.
7878 (print_solib_event): New function.
7879 (bpstat_print): Use print_solib_event.
7880 (bpstat_stop_status): Add special case for bp_shlib_event.
7881 (handle_solib_event): New function.
7882 (bpstat_what): Use handle_solib_event.
7883 (struct solib_catchpoint): New.
7884 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
7885 (breakpoint_hit_catch_solib, check_status_catch_solib)
7886 (print_it_catch_solib, print_one_catch_solib)
7887 (print_mention_catch_solib, print_recreate_catch_solib): New
7889 (catch_solib_breakpoint_ops): New global.
7890 (catch_load_or_unload, catch_load_command_1)
7891 (catch_unload_command_1): New functions.
7892 (internal_bkpt_check_status): Add special case for
7894 (internal_bkpt_print_it): Use print_solib_event.
7895 (initialize_breakpoint_ops): Initialize
7896 catch_solib_breakpoint_ops.
7897 (_initialize_breakpoint): Register "catch load" and "catch
7899 * breakpoint.h (handle_solib_event): Declare.
7900 * NEWS: Add entry for "catch load" and "catch unload".
7902 2012-01-24 Tom Tromey <tromey@redhat.com>
7904 * ada-lang.c: Include gdb_vecs.h.
7905 * charset.c: Include gdb_vecs.h.
7906 * tracepoint.h: Include gdb_vecs.h.
7907 * gdb_vecs.h: New file.
7909 2012-01-24 Pedro Alves <pedro@codesourcery.com>
7911 * breakpoint.c (breakpoint_hit_catch_fork)
7912 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
7913 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
7914 * infrun.c (inferior_has_forked, inferior_has_vforked)
7915 (inferior_has_execd, inferior_has_called_syscall): Delete.
7916 (handle_syscall_event): Get syscall_number from the execution
7917 control state's wait status.
7918 (wait_for_inferior): Don't clear syscall_number.
7920 2012-01-24 Pedro Alves <palves@redhat.com>
7922 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
7923 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
7924 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
7925 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
7927 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
7928 false for events other than TARGET_SIGNAL_TRAP.
7929 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
7931 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
7932 events other than TARGET_SIGNAL_TRAP.
7933 (tracepoint_breakpoint_hit): Add `ws' parameter.
7934 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
7936 (bpstat_stop_status): Same.
7937 (pc_at_non_inline_function): Same.
7938 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
7939 to pass the current event's waitstatus to bpstat_stop_status
7940 and pc_at_non_inline_function.
7942 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7945 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
7946 Update the function comment for it.
7947 (source_script_with_search): Call make_cleanup_fclose for STREAM.
7948 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
7951 2012-01-24 Pedro Alves <palves@redhat.com>
7953 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
7954 outside `bs->stop' block.
7955 (bpstat_what): Rework bp_shlib_event handling.
7956 (internal_bkpt_check_status): If the breakpoint is a
7957 bp_shlib_event, then set bs->stop and bs->print if
7958 stop_on_solib_events is set.
7960 2012-01-24 Gary Benson <gbenson@redhat.com>
7962 Delete #if 0'd out code.
7963 * stack.c (print_frame_label_vars): Remove.
7964 (catch_info): Likewise.
7965 (_initialize_stack): Remove "info catch" command.
7966 * NEWS: Mention the above.
7968 2012-01-24 Pedro Alves <palves@redhat.com>
7970 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
7972 (remote_notice_new_inferior): If the remote end doesn't support
7973 the multiprocess extensions, then the PID is fake.
7974 (add_current_inferior_and_thread): New.
7975 (remote_start_remote): Use it.
7976 (extended_remote_attach_1): Adjust.
7977 (extended_remote_create_inferior_1): Use
7978 add_current_inferior_and_thread.
7980 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7982 Fix watchpoints to be specific for each inferior.
7983 * breakpoint.c (watchpoint_in_thread_scope): Verify also
7984 current_program_space.
7985 * i386-nat.c (i386_inferior_data_cleanup): New.
7986 (i386_inferior_data_get): Replace variable inf_data_local by an
7988 (i386_use_watchpoints): Initialize i386_inferior_data.
7989 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
7990 specific iterate_over_lwps.
7992 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7994 Fix watchpoints across inferior fork.
7995 * amd64-linux-nat.c (update_debug_registers_callback): Update the
7996 comment for linux_nat_iterate_watchpoint_lwps.
7997 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
7998 linux_nat_iterate_watchpoint_lwps.
7999 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8000 * i386-linux-nat.c (update_debug_registers_callback): Update the
8001 comment for linux_nat_iterate_watchpoint_lwps.
8002 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8003 linux_nat_iterate_watchpoint_lwps.
8004 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8005 * i386-nat.c: Include inferior.h.
8006 (dr_mirror): Remove.
8007 (i386_inferior_data, struct i386_inferior_data)
8008 (i386_inferior_data_get): New.
8009 (i386_debug_reg_state): Use i386_inferior_data_get.
8010 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8011 (i386_insert_watchpoint, i386_remove_watchpoint)
8012 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8013 (i386_remove_hw_breakpoint): New variable state, use
8014 i386_debug_reg_state instead of DR_MIRROR.
8015 * linux-nat.c (delete_lwp): New declaration.
8016 (num_lwps): Move here from downwards.
8017 (delete_lwp_cleanup): New.
8018 (linux_child_follow_fork): Create new child_lp, call
8019 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8021 (num_lwps): Move upwards.
8022 (linux_nat_iterate_watchpoint_lwps): New.
8023 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8024 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8026 2012-01-24 Joel Brobecker <brobecker@adacore.com>
8030 2012-01-23 Pedro Alves <palves@redhat.com>
8032 * top.c (caution): Rename to ...
8033 (confirm): ... this.
8034 (show_caution): Rename to ...
8035 (show_confirm): ... this.
8036 (quit_cover): Adjust.
8037 (init_main): Adjust.
8038 * top.h (caution): Rename to ...
8039 (confirm): ... this.
8040 * utils.c (internal_vproblem, defaulted_query): Adjust.
8042 2012-01-23 Pedro Alves <palves@redhat.com>
8044 * top.c (caution): Update comment.
8045 (execute_command): Don't consider the current value of `caution'.
8047 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8049 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8051 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8053 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8054 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8055 * target.c (target_fileio_pwrite): Remove buffer address from
8057 (target_fileio_pread): Likewise.
8059 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8061 * NEWS: Document remote "info proc" and "generate-core-file".
8063 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8065 * gdbarch.sh (find_memory_regions): New callback.
8066 * gdbarch.c, gdbarch.h: Regenerate.
8068 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8069 callback before falling back to target method.
8071 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8072 (linux_target_install_ops): No longer install it.
8074 * linux-tdep.c (linux_find_memory_regions): New function.
8075 (linux_init_abi): Install it.
8077 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8079 * gdbarch.sh (make_corefile_notes): New architecture callback.
8080 * gdbarch.c: Regenerate.
8081 * gdbarch.h: Likewise.
8083 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8084 before target_make_corefile_notes. If NULL is returned, the
8085 target does not support core file generation.
8087 * linux-nat.c: Include "linux-tdep.h".
8088 (find_signalled_thread, find_stop_signal): Remove.
8089 (linux_nat_do_thread_registers): Likewise.
8090 (struct linux_nat_corefile_thread_data): Likewise.
8091 (linux_nat_corefile_thread_callback): Likewise.
8092 (iterate_over_spus): Likewise.
8093 (struct linux_spu_corefile_data): Likewise.
8094 (linux_spu_corefile_callback): Likewise.
8095 (linux_spu_make_corefile_notes): Likewise.
8096 (linux_nat_collect_thread_registers): New function.
8097 (linux_nat_make_corefile_notes): Replace contents by call to
8098 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8099 as native-only callback.
8101 * linux-tdep.h: Include "bfd.h".
8102 (struct regcache): Add forward declaration.
8103 (linux_collect_thread_registers_ftype): New typedef.
8104 (linux_make_corefile_notes): Add prototype.
8105 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8106 "regset.h", and "elf-bfd.h".
8107 (find_signalled_thread, find_stop_signal): New functions.
8108 (linux_spu_make_corefile_notes): Likewise.
8109 (linux_collect_thread_registers): Likewise.
8110 (struct linux_corefile_thread_data): New data structure.
8111 (linux_corefile_thread_callback): New funcion.
8112 (linux_make_corefile_notes): Likewise.
8113 (linux_make_corefile_notes_1): Likewise.
8114 (linux_init_abi): Install it.
8116 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8118 * gdbarch.sh (info_proc): New callback.
8119 * gdbarch.c, gdbarch.h: Regenerate.
8121 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8122 before falling back to the target info_proc callback.
8124 * linux-nat.c: Do not include "cli/cli-utils.h".
8125 (linux_nat_info_proc): Remove.
8126 (linux_target_install_ops): No longer install it.
8128 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8129 (read_mapping): New function.
8130 (linux_info_proc): Likewise.
8131 (linux_init_abi): Install it.
8133 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8135 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8136 * infcmd.c: (info_proc_cmd_1): New function.
8137 (info_proc_cmd): New function, moved here from equivalent routine
8138 orignally in linux-nat.c.
8139 (info_proc_cmd_mappings): Likewise.
8140 (info_proc_cmd_stat): Likewise.
8141 (info_proc_cmd_status): Likewise.
8142 (info_proc_cmd_cwd): Likewise.
8143 (info_proc_cmd_cmdline): Likewise.
8144 (info_proc_cmd_exe): Likewise.
8145 (info_proc_cmd_all): Likewise.
8146 (_initialize_infcmd): Install "info proc" command and subcommands.
8148 * target.h (struct target_ops): Add to_info_proc.
8149 (target_info_proc): Add prototype.
8150 * target.c (target_info_proc): New function.
8152 * procfs.c (procfs_info_proc): Add prototype.
8153 (info_proc_cmd): Rename into ...
8154 (procfs_info_proc): ... this. Update argument types as appropriate
8155 for a to_info_proc implementation. Handle "what" argument.
8156 (procfs_target): Install procfs_info_proc.
8157 (_initialize_procfs): No longer install "info proc" command.
8159 * linux-nat.c: (enum info_proc_what): Remove.
8160 (linux_nat_info_proc_cmd_1): Rename into ...
8161 (linux_nat_info_proc): ... this. Update argument types as appropriate
8162 for a to_info_proc implementation.
8163 (linux_nat_info_proc_cmd): Remove.
8164 (linux_nat_info_proc_cmd_mappings): Likewise.
8165 (linux_nat_info_proc_cmd_stat): Likewise.
8166 (linux_nat_info_proc_cmd_status): Likewise.
8167 (linux_nat_info_proc_cmd_cwd): Likewise.
8168 (linux_nat_info_proc_cmd_cmdline): Likewise.
8169 (linux_nat_info_proc_cmd_exe): Likewise.
8170 (linux_nat_info_proc_cmd_all): Likewise.
8171 (linux_target_install_ops): Install linux_nat_info_proc.
8172 (_initialize_linux_nat): No longer install "info proc" command
8175 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8177 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8178 * config.in, configure: Regenerate.
8180 * target.h (struct target_ops): Add to_fileio_readlink.
8181 (target_fileio_readlink): Add prototype.
8182 * target.c (target_fileio_readlink): New function.
8184 * inf-child.c: Conditionally include <sys/param.h>.
8185 (inf_child_fileio_readlink): New function.
8186 (inf_child_target): Install it.
8188 * remote.c (PACKET_vFile_readlink): New enum value.
8189 (remote_hostio_readlink): New function.
8190 (init_remote_ops): Install it.
8191 (_initialize_remote): Handle vFile:readlink packet type.
8193 2012-01-20 Pedro Alves <palves@redhat.com>
8194 Ulrich Weigand <ulrich.weigand@linaro.org>
8196 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8197 * config.in, configure: Regenerate.
8199 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8200 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8201 (target_fileio_open): Add prototype.
8202 (target_fileio_pwrite): Likewise.
8203 (target_fileio_pread): Likewise.
8204 (target_fileio_close): Likewise.
8205 (target_fileio_unlink): Likewise.
8206 (target_fileio_read_alloc): Likewise.
8207 (target_fileio_read_stralloc): Likewise.
8209 * target.c: Include "gdb/fileio.h".
8210 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8211 (default_fileio_target): New function.
8212 (target_fileio_open): Likewise.
8213 (target_fileio_pwrite): Likewise.
8214 (target_fileio_pread): Likewise.
8215 (target_fileio_close): Likewise.
8216 (target_fileio_unlink): Likewise.
8217 (target_fileio_close_cleanup): Likewise.
8218 (target_fileio_read_alloc_1): Likewise.
8219 (target_fileio_read_alloc): Likewise.
8220 (target_fileio_read_stralloc): Likewise.
8222 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8223 <fcntl.h>, and <unistd.h>.
8224 (inf_child_fileio_open_flags_to_host): New function.
8225 (inf_child_errno_to_fileio_error): Likewise.
8226 (inf_child_fileio_open): Likewise.
8227 (inf_child_fileio_pwrite): Likewise.
8228 (inf_child_fileio_pread): Likewise.
8229 (inf_child_fileio_close): Likewise.
8230 (inf_child_fileio_unlink): Likewise.
8231 (inf_child_target): Install to_fileio routines.
8233 * remote.c (init_remote_ops): Install to_fileio routines.
8235 2012-01-20 Pedro Alves <palves@redhat.com>
8236 Ulrich Weigand <ulrich.weigand@linaro.org>
8238 * remote.c (remote_multi_process_p): Only check for multi-process
8239 protocol feature, do not check for extended protocol.
8240 (remote_supports_multi_process): Check for extended protocol here.
8241 (set_general_process): Likewise.
8242 (extended_remote_kill): Likewise.
8243 (remote_pid_to_str): Likewise.
8244 (remote_query_supported): Always query multiprocess mode.
8246 2012-01-20 Pedro Alves <palves@redhat.com>
8247 Ulrich Weigand <ulrich.weigand@linaro.org>
8249 * inferior.h (struct inferior): Add fake_pid_p.
8250 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8251 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8252 magic_null_ptid since the remote side doesn't provide a real PID.
8254 2012-01-19 Tom Tromey <tromey@redhat.com>
8256 * NEWS: Combine the two Python sections.
8258 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8260 * target.h (target_close): Update comment on the target's unpush state.
8262 2012-01-19 Pedro Alves <palves@redhat.com>
8264 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8265 linux_nat_async directly instead of going through the target
8267 * target.c (unpush_target): Close target after unpushing it, not
8270 2012-01-19 Gary Benson <gbenson@redhat.com>
8272 * mdebugread.c (sort_blocks): Replace integer constants with ones
8273 derived from FIRST_LOCAL_BLOCK.
8275 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8276 Jan Kratochvil <jan.kratochvil@redhat.com>
8279 * symfile.c (find_separate_debug_file): New function.
8280 (terminate_after_last_dir_separator): Likewise.
8281 (find_separate_debug_file_by_debuglink): Also try realpath.
8282 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8283 * configure: Regenerate.
8284 * config.in: Regenerate.
8286 2012-01-18 Doug Evans <dje@google.com>
8288 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8289 (main.o): Remove rule.
8290 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8291 (--with-sysroot): Rewrite.
8292 * configure: Regenerate.
8293 * config.in: Regenerate.
8295 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8297 * parse.c (initialize_expout): New function.
8298 (reallocate_expout): Likewise.
8299 (parse_exp_in_context): Use `initialize_expout' and
8300 `reallocate_expout' when appropriate.
8302 2012-01-18 Pedro Alves <palves@redhat.com>
8304 * record.c (struct record_breakpoint, record_breakpoint_p)
8305 (record_breakpoints): New.
8306 (record_insert_breakpoint, record_remove_breakpoint): Manage
8307 record breakpoints list. Only remove breakpoints from the
8308 inferior if they had been inserted there in the first place.
8310 2012-01-17 Doug Evans <dje@google.com>
8312 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8313 if we know we don't have a file name to look for.
8315 2012-01-17 Pedro Alves <palves@redhat.com>
8317 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8318 the frame's stop reason is UNWIND_UNAVAILABLE.
8320 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8322 Fix compilation error.
8323 * m2-exp.y (yyerror): Use ANSI C prototype.
8325 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8327 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8328 (growbuf_by_size): Likewise.
8329 (yyerror): Likewise.
8330 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8331 (modblock): Remove variable (was #if 0'ed).
8332 (parse_number): Convert prototype from K&R to ANSI C.
8333 (yyerror): Likewise.
8334 * objc-exp.y (parse_number): Likewise.
8335 (yyerror): Likewise.
8336 (yylex): Remove #if 0'ed code.
8337 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8338 (yyerror): Likewise.
8340 2012-01-16 Tom Tromey <tromey@redhat.com>
8343 * symtab.h (compare_filenames_for_search): Declare.
8344 * symtab.c (compare_filenames_for_search): New function.
8345 (iterate_over_some_symtabs): Use it.
8346 * symfile.h (struct quick_symbol_functions)
8347 <map_symtabs_matching_filename>: Change spec.
8348 * psymtab.c (partial_map_symtabs_matching_filename): Use
8349 compare_filenames_for_search. Update for new spec.
8350 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8351 compare_filenames_for_search. Update for new spec.
8352 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8354 2012-01-16 Tom Tromey <tromey@redhat.com>
8357 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8358 (struct main_type) <flag_flag_enum>: New field.
8359 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8360 * NEWS: Add entries.
8361 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8363 * python/lib/gdb/printing.py (_EnumInstance): New class.
8364 (FlagEnumerationPrinter): Likewise.
8366 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8368 * breakpoint.c (create_sals_from_address_default): New function.
8369 (create_breakpoints_sal_default): Likewise.
8370 (decode_linespec_default): Likewise.
8371 (is_marker_spec): Removed.
8372 (strace_marker_p): New function.
8373 (init_breakpoint_sal): Using `strace_marker_p' instead of
8375 (create_breakpoint): Call method `create_sals_from_address' from
8376 breakpoint_ops, replacing code that created SALs conditionally
8377 on the type of the breakpoint. Call method `create_breakpoints_sal',
8378 replacing code that created breakpoints conditionally on the type
8380 (base_breakpoint_create_sals_from_address): New function.
8381 (base_breakpoint_create_breakpoints_sal): Likewise.
8382 (base_breakpoint_decode_linespec): Likewise.
8383 (base_breakpoint_ops): Add methods
8384 `base_breakpoint_create_sals_from_address',
8385 `base_breakpoint_create_breakpoints_sal' and
8386 `base_breakpoint_decode_linespec'.
8387 (bkpt_create_sals_from_address): New function.
8388 (bkpt_create_breakpoints_sal): Likewise.
8389 (bkpt_decode_linespec): Likewise.
8390 (tracepoint_create_sals_from_address): Likewise.
8391 (tracepoint_create_breakpoints_sal): Likewise.
8392 (tracepoint_decode_linespec): Likewise.
8393 (strace_marker_create_sals_from_address): Likewise.
8394 (strace_marker_create_breakpoints_sal): Likewise.
8395 (strace_marker_decode_linespec): Likewise.
8396 (strace_marker_breakpoint_ops): New variable.
8397 (addr_string_to_sals): Remove `marker_spec'. Call method
8398 `decode_linespec' from breakpoint_ops, replacing code that decoded
8399 an address string into a SAL. Use `strace_marker_p' instead of
8401 (strace_command): Decide whether we are dealing with a static
8402 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8403 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8404 * breakpoint.h (linespec_result, linespec_sals): New forward
8406 (breakpoint_ops) <create_sals_from_address>,
8407 <create_breakpoints_sal>, <decode_linespec>: New methods.
8409 2012-01-14 Doug Evans <dje@google.com>
8411 * NEWS: Update text for "maint set python print-stack".
8412 It is deprecated in gdb 7.4 and deleted in 7.5.
8414 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8416 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8419 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8421 * configure: Regenerate.
8422 * config.in: Regenerate.
8424 2012-01-12 Keith Seitz <keiths@redhat.com>
8427 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8428 (ANONYMOUS_UNION_NAME): Define.
8429 (is_path_expr_parent): New function.
8430 (get_path_expr_parent): New function.
8431 (is_anonymous_child): New function.
8432 (create_child_with_value): If the child is anonymous and without
8433 a name, assign an object name to it.
8434 (c_describe_child): Use get_path_expr_parent to determine
8435 the parent expression.
8436 If there field represents an anonymous struct or union and
8437 has no name, set an appropriate display name and expression.
8438 (cplus_describe_child): Likewise.
8440 2012-01-12 Pedro Alves <palves@redhat.com>
8442 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8443 available when %ebp is found to be zero (outermost).
8445 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8447 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8448 an internal gdb_static_assert.
8449 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8451 2012-01-11 Tom Tromey <tromey@redhat.com>
8454 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8455 catch" and "catch throw".
8457 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8459 * blockframe.c (block_innermost_frame): Start search from selected
8460 frame, if present, or otherwise the current frame.
8462 * c-exp.y (variable): Update innermost_block for
8463 'block COLONCOLON NAME' clause.
8464 * m2-exp.y (variable): Ditto.
8465 * objc-exp.y (variable): Ditto.
8467 2012-01-10 Tom Tromey <tromey@redhat.com>
8470 * python/python.c (finish_python_initialization): Set sys.argv.
8472 2012-01-10 Doug Evans <dje@google.com>
8474 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8475 "want_line_info". All callers updated.
8476 (dwarf_decode_lines_1): New function.
8477 (handle_DW_AT_stmt_list): Add function comment.
8478 New arg "want_line_info". All callers updated.
8479 (read_file_scope,read_type_unit_scope): Move comment from
8480 handle_DW_AT_stmt_list to here.
8482 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8484 Fix regression after libiberty/ update for GCC PR 6057 and others.
8485 * c-exp.y (operator) <OPERATOR DELETE>
8486 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8487 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8488 (make_builtin_type, make_name): New variable i, add gdb_assert.
8489 (operator) <OPERATOR NEW>: Update ARGS to 3.
8490 (operator) <OPERATOR DELETE>: Add trailing space.
8491 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8492 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8493 * cp-support.c (cp_canonicalize_string): Check NULL from
8494 cp_comp_to_string, call warning and return.
8496 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8498 Fix duplicate .o files after omitting libbfd.a.
8499 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8500 (SFILES): Add corelow.c.
8501 (COMMON_OBS): Add corelow.o.
8502 (ALLDEPFILES): Remove corelow.c.
8503 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8504 * config/alpha/alpha-osf3.mh: Likewise.
8505 * config/alpha/fbsd.mh: Likewise.
8506 * config/arm/nbsdaout.mh: Likewise.
8507 * config/arm/nbsdelf.mh: Likewise.
8508 * config/i386/i386gnu.mh: Likewise.
8509 * config/ia64/hpux.mh: Likewise.
8510 * config/ia64/linux.mh: Likewise.
8511 * config/m32r/linux.mh: Likewise.
8512 * config/m68k/linux.mh: Likewise.
8513 * config/mips/irix5.mh: Likewise.
8514 * config/mips/irix6.mh: Likewise.
8515 * config/pa/hpux.mh: Likewise.
8516 * config/pa/linux.mh: Likewise.
8517 * config/powerpc/aix.mh: Likewise.
8518 * config/sparc/linux.mh: Likewise.
8519 * config/sparc/linux64.mh: Likewise.
8520 * config/sparc/sol2.mh: Likewise.
8521 * config/vax/vax.mh: Likewise.
8522 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8523 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8524 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8525 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8526 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8527 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8528 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8529 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8530 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8531 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8532 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8533 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8534 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8535 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8536 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8537 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8538 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8539 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8540 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8541 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8542 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8543 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8544 corelow.o from gdb_target_obs.
8545 * corefile.c (core_target): Update the comment on NULL value.
8546 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8547 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8548 MATCHES. Drop YUMMY set on NULL.
8549 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8550 reclaim CORE_DATA if it is already NULL.
8552 2012-01-09 Doug Evans <dje@google.com>
8554 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8555 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8557 2012-01-09 Keith Seitz <keiths@redhat.com>
8559 * breakpoint.c (wrapper.h): Don't include.
8561 2012-01-09 Keith Seitz <keiths@redhat.com>
8563 * Makefile.in (SFILES): Remove wrapper.c.
8564 (HFILES_NO_SRCDIR): Remove wrapper.h.
8565 (COMMON_OBS): Remove wrapper.o.
8566 * cli/cli-interp.c: Don't inlude wrapper.h.
8567 * corelow.c: Likewise.
8568 (core_open): Replace gdb_target_find_new_threads with
8569 TRY_CATCH around target_find_new_threads.
8570 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8571 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8572 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8573 evaluate_expression.
8574 (varobj_set_value): Likewise for evaluate_expression and
8576 (install_new_variable): Likewise for value_fetch_lazy.
8577 (adjust_value_for_child_access): Likewise for value_ind.
8578 (c_describe_child): Likewise for value_subscript and
8580 (c_value_of_root): Likewise for evaluate_expression.
8581 * wrapper.c: Remove.
8582 * wrapper.h: Remove.
8584 2012-01-09 Doug Evans <dje@google.com>
8586 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8587 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8588 "abfd" args with "section". All callers updated.
8589 Error checking code moved ...
8590 (error_check_comp_unit_head): ... here. New function.
8591 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8592 Delete arg "abfd". New arg "type_offset". All callers updated.
8593 (create_debug_types_hash_table): Simplify by using
8594 read_and_check_type_unit_head.
8596 * parser-defs.h (namecopy): Delete.
8597 * parse.c (namecopy, namecopy_size): Move into copy_name.
8599 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8601 Partially fix duplicate .o files after omitting libbfd.a.
8602 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8603 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8604 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8605 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8606 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8607 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8608 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8610 2012-01-09 Pedro Alves <palves@redhat.com>
8612 * MAINTAINERS: Update my email address.
8614 2012-01-08 Doug Evans <dje@google.com>
8616 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8617 n_type_units. Rename type_comp_units to all_type_units.
8619 (add_signatured_type_cu_to_table): Renamed from
8620 add_signatured_type_cu_to_list. All callers updated.
8622 * gdbtypes.h (struct cplus_struct_type): Delete member
8623 nfn_fields_total. All uses removed.
8625 2012-01-06 Doug Evans <dje@google.com>
8627 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8629 (dwarf2_find_comp_unit): Delete.
8630 (process_psymtab_comp_unit): Make result "void".
8631 Delete args buffer, info_ptr, buffer_size, and replace with
8632 "section". All callers updated.
8633 (dwarf2_build_psymtabs_hard): Simplify.
8635 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8636 Thiago Jung Bauermann <bauerman@br.ibm.com>
8638 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8639 before `struct gdb_exception'.
8640 * breakpoint.c (update_global_location_list_nothrow)
8641 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8642 * cp-abi.c (value_rtti_type): Likewise.
8643 * cp-support.c (cp_validate_operator): Likewise.
8644 * infrun.c (insert_exception_resume_breakpoint)
8645 (check_exception_resume, keep_going): Likewise.
8646 * mi-interp.c (mi_breakpoint_created)
8647 (mi_breakpoint_modified): Likewise.
8648 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8649 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8650 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8652 2012-01-05 Doug Evans <dje@google.com>
8654 * dwarf2read.c (statement_prologue): Delete, unused.
8656 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8657 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8659 * dwarf2read.c (comp_unit_header): Delete, unused.
8661 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8663 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8664 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8666 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8668 * infrun.c (normal_stop): Don't skip calling the normal_stop
8669 observers if the thread was doing a multi-step, but stopped for
8670 some reason other than stepping.
8672 2012-01-05 Pedro Alves <alves.ped@gmail.com>
8674 * cli/cli-decode.h: Add comments.
8675 (CMD_LIST_AMBIGUOUS): Moved to command.h
8676 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8677 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8678 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8679 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8680 (add_com, add_com_alias, add_info, add_info_alias)
8681 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8683 * command.h: Add and adjust comments.
8684 (CMD_LIST_AMBIGUOUS): Moved here.
8685 (help_cmd, help_cmd_list): Delete declarations.
8687 2012-01-04 Doug Evans <dje@google.com>
8689 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8690 All callers updated.
8691 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8692 Replace all arguments with "per_cu". All callers updated.
8694 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8696 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8697 New arg "per_cu". All callers updated.
8699 Delete #if 0'd out code.
8700 * language.c (binop_result_type): Delete.
8701 (simple_type, ordered_type, same_type, integral_type): Delete.
8702 (numeric_type, character_type, string_type, boolean_type): Delete.
8703 (float_type, structured_type): Delete.
8704 * language.h: Update.
8706 2012-01-04 Tom Tromey <tromey@redhat.com>
8708 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8710 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8712 * corefile.c (close_exec_file): Delete.
8713 (reopen_exec_file): Remove commented out code that seems related
8714 to close_exec_file, which is being deleted here.
8715 * inferior.h (close_exec_file): Delete.
8716 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8718 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8720 * ada-lang.c: #include "cli/cli-utils.h".
8721 (get_selections): Use skip_spaces.
8722 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8723 (catch_ada_exception_command_split): Use skip_spaces.
8724 (ada_decode_assert_location): Likewise.
8726 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8728 * linespec.c (decode_line_internal): Check for C++ or Java
8729 compound constructs only if the current language is C, C++
8732 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8735 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8736 Joel Brobecker <brobecker@adacore.com>
8737 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8738 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8740 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8741 fall through into AT_ENTRY_POINT.
8742 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8744 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8745 PPC_INSN_SIZE skip to 3 times.
8747 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8749 * linespec.c (add_minsym): Preserve function descriptors.
8751 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8753 * breakpoint.c (all_locations_are_pending): Consider locations
8754 in program spaces executing during startup pending as well.
8756 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8758 Copyright year update in most files of the GDB Project.
8760 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8762 * copyright.sh: Delete.
8763 * copyright.py: Rewrite.
8765 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8767 * gnulib/extra/update-copyright: New file, imported from gnulib.
8769 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8771 * README (Copyright and License Notices): New section.
8773 2012-01-03 Tom Tromey <tromey@redhat.com>
8776 * python/py-value.c (valpy_dereference, valpy_get_address
8777 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8778 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8779 (valpy_absolute, valpy_richcompare): Free intermediate values.
8781 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8783 * ada-lang.c: Reformat the copyright notice.
8785 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8787 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8788 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8789 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8790 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8791 Revert this part of:
8792 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8793 Build gdb directly from *.o files not using libgdb.a.
8794 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8796 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8798 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8799 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8800 Reformat the copyright header.
8802 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8804 Revert this part of:
8805 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8806 Remove the gdbtui binary.
8807 * gdb.c (main): Remove args.interpreter_p initialization.
8808 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8809 * main.h (struct captured_main_args): Remove interpreter_p.
8811 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8813 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8815 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8817 * top.c (print_gdb_version): Update copyright year.
8819 2012-01-02 Yao Qi <yao@codesourcery.com>
8821 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8823 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8824 Joel Brobecker <brobecker@adacore.com>
8826 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8827 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8829 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8830 fall through into AT_ENTRY_POINT.
8831 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8833 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8834 PPC_INSN_SIZE skip to 3 times.
8836 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8838 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
8840 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
8842 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8844 Build gdb directly from *.o files not using libgdb.a.
8845 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
8846 (COMMON_OBS): Remove solib-target.o.
8847 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
8848 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8849 (LIBGDB_OBS, libgdb.a): Move it above.
8850 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
8851 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
8852 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
8853 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
8854 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
8855 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
8856 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
8857 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
8858 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
8859 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
8860 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
8861 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
8862 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
8863 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
8864 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8865 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
8866 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
8867 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8868 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
8869 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
8870 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
8871 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
8872 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
8873 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
8874 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
8875 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
8876 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
8878 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8880 Remove the gdbtui binary.
8881 * .gitignore (/gdbtui): Remove.
8882 * Makefile.in (TUI): Remove.
8883 (SUBDIR_TUI_OBS): Remove tui-main.o.
8884 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
8885 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
8886 (tui-main.o): Remove.
8887 (all_object_files): Remove tui-main.o.
8888 * NEWS: New note for the gdbtui removal.
8889 * configure: Rebuilt.
8890 * configure.ac: No longer add all-tui, clean-tui, install-tui and
8891 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
8892 CONFIG_UNINSTALL respectively.
8893 * gdb.c (main): Remove args.interpreter_p initialization.
8894 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8895 * main.h (struct captured_main_args): Remove interpreter_p.
8896 * tui/tui-main.c: Remove.
8898 2012-01-01 Doug Evans <dje@google.com>
8900 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
8901 (dwarf2_physname, read_import_statement): Ditto.
8902 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
8903 (process_structure_scope read_subroutine_type): Ditto.
8904 (read_typedef, load_partial_dies, read_partial_die): Ditto.
8905 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
8906 (dwarf2_fetch_die_location_block): Ditto.
8907 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
8909 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
8910 All callers updated.
8911 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
8912 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
8913 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
8915 * dwarf2read.c (load_cu): Move assert to more useful location.
8917 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
8918 All callers updated.
8920 * dwarf2read.c (dwarf2_per_objfile): Add comment.
8921 (dwarf2_elf_names): Minor reformat.
8922 (dwarf2_per_cu_data): Tweak comment.
8923 (dwarf2_read_section): Fix comment.
8924 (create_all_comp_units): Fix comment.
8925 (load_full_comp_unit): Fix comment.
8926 (process_full_comp_unit): Fix comment.
8927 (read_signatured_type): Fix comment.
8929 For older changes see ChangeLog-2011.
8935 version-control: never