1 2012-07-23 Keith Seitz <keiths@redhat.com>
3 * linespec.c (convert_linespec_to_sal): Don't add
4 any symbols to the result vector if symbol_to_sal
7 2012-07-23 Keith Seitz <keiths@redhat.com>
9 * linespec.c (decode_objc): Record the function name
12 2012-07-23 Tom Tromey <tromey@redhat.com>
14 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
16 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
17 (map_vmap): Acquire a reference to the BFD.
19 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
21 * p-valprint.c (pascal_object_print_value): Replace potentially
22 unsafe alloca with xmalloc/xfree.
23 * valops.c (search_struct_method): Likewise.
25 2012-07-23 Tom Tromey <tromey@redhat.com>
27 * solib-svr4.c (enable_break): Update.
28 * bfd-target.h (target_bfd_reopen): Update documentation.
30 2012-07-23 Tom Tromey <tromey@redhat.com>
32 * symfile.c (separate_debug_file_exists): Update.
33 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
34 (reread_symbols): Update.
35 * elfread.c (build_id_verify): Update.
36 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
37 bfd_open_maybe_remote.
39 2012-07-23 Tom Tromey <tromey@redhat.com>
41 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
43 2012-07-23 Tom Tromey <tromey@redhat.com>
45 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
47 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
49 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
50 * machoread.c (macho_add_oso_symfile): Make a cleanup for
52 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
53 * objfiles.c (allocate_objfile): Acquire a new reference.
54 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
55 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
56 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
58 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
60 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
61 make a cleanup for 'abfd'.
62 (symbol_file_add): Make a BFD cleanup.
64 2012-07-23 Tom Tromey <tromey@redhat.com>
66 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
67 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
68 * corelow.c (core_open): Use gdb_bfd_fopen.
69 * dsrec.c (load_srec): Use gdb_bfd_openr.
70 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
71 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
72 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
73 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
74 (gdb_bfd_fdopenr): New functions.
75 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
76 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
77 (gdb_bfd_fdopenr): Declare.
78 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
79 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
80 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
81 gdb_bfd_openr_next_archived_file.
82 (macho_check_dsym): Use gdb_bfd_openr.
83 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
84 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
85 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
86 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
88 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
89 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
90 gdb_bfd_openr_next_archived_file.
91 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
93 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
95 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
96 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
97 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
98 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
99 (symfile_bfd_open): Use gdb_bfd_fopen.
100 (generic_load): Use gdb_bfd_openr.
101 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
103 2012-07-23 Tom Tromey <tromey@redhat.com>
105 * bfd-target.c (target_bfd_reopen): Update.
106 * cli/cli-dump.c (bfd_openr_with_cleanup)
107 (bfd_openw_with_cleanup): Update.
108 * corelow.c (core_open): Update.
109 * dsrec.c (load_srec): Update.
110 * exec.c (exec_file_attach): Update.
111 * gcore.c (create_gcore_bfd): Update.
112 * gdb_bfd.c (gdb_bfd_ref): Return void.
113 (gdb_bfd_open): Update.
114 * gdb_bfd.h (gdb_bfd_ref): Return void.
116 * jit.c (jit_bfd_try_read_symtab): Update.
117 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
118 * machoread.c (macho_symfile_read_all_oso): Update.
119 (macho_check_dsym): Update.
120 * procfs.c (insert_dbx_link_bpt_in_file): Update.
121 * remote-m32r-sdi.c (m32r_load): Update.
122 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
123 * rs6000-nat.c (add_vmap): Update.
124 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
126 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
127 * solib-spu.c (spu_bfd_open): Update.
128 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
129 * spu-linux-nat.c (spu_bfd_open): Update.
130 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
131 (generic_load): Update.
132 * windows-nat.c (windows_make_so): Update.
134 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
136 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
138 2012-07-20 Jeff Kenton <jkenton@tilera.com>
140 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
141 SIGTRAMP_FRAME unwinding.
143 2012-07-20 Doug Evans <dje@google.com>
145 * NEWS: Document new options "set/show use-deprecated-index-sections",
146 and delete reference to --use-deprecated-index-sections.
147 * symfile.h (use_deprecated_index_sections): Delete.
148 * dwarf2read.c (use_deprecated_index_sections): Make static.
149 (read_index_from_section): Update wording of how to load
150 deprecated index sections.
151 (_initialize_dwarf2_read): New options
152 "set/show use-deprecated-index-sections".
153 * main.c (captured_main): Delete --use-deprecated-index-sections.
155 2012-07-20 Pedro Alves <palves@redhat.com>
160 * infrun.c (handle_inferior_event) <new thread>: Don't special
162 <TARGET_WAITKIND_SPURIOUS>: Ditto.
163 * linux-thread-db.c (thread_get_info_callback): Don't return early
164 if the thread is zombie.
165 (thread_from_lwp): Change return type to void. Rewrite stale
167 (attach_thread): Don't return early if the thread is zombie,
168 instead set its "dying" flag.
169 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
170 (find_new_threads_callback): Don't return early if the thread is
173 2012-07-20 Pedro Alves <palves@redhat.com>
175 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
176 * target.c (target_wait): Likewise.
177 (str_comma_list_concat_elem, do_option, target_options_to_string):
179 * target.h (target_options_to_string): Declare.
181 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
182 Tom Tromey <tromey@redhat.com>
184 * dwarf2read.c (dwarf_decode_macros)
185 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
186 DW_MACRO_GNU_transparent_include_alt>: New cases.
187 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
188 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
190 2012-07-20 Tom Tromey <tromey@redhat.com>
192 * dwarf2read.c (try_open_dwo_file): Don't call
193 gdb_bfd_stash_filename.
195 2012-07-20 Pedro Alves <palves@redhat.com>
197 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
198 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
199 (i386_process_record): Tweak description comments.
201 2012-07-20 Pedro Alves <palves@redhat.com>
203 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
204 (i386_process_record): Use record_read_memory.
205 * record.c (record_read_memory): New function.
206 (record_arch_list_add_mem, record_exec_insn): Use
208 * record.h (record_read_memory): Declare.
210 2012-07-20 Yao Qi <yao@codesourcery.com>
212 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
215 2012-07-19 Pedro Alves <palves@redhat.com>
217 * record.c (record_resume): Ask the target beneath to report all
220 2012-07-19 Doug Evans <dje@google.com>
222 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
223 there's no section at address zero.
224 (dwarf2_record_block_ranges): Ditto.
226 2012-07-19 Yao Qi <yao@codesourcery.com>
228 * command.h, remote.c: Fix a typo in comment.
230 2012-07-19 Tom Tromey <tromey@redhat.com>
233 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
234 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
235 OP_DECLTYPE>: New cases.
236 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
237 (type_exp): Add new productions.
238 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
240 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
242 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
243 OP_DECLTYPE>: New case.
244 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
246 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
247 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
249 2012-07-19 Tom Tromey <tromey@redhat.com>
251 * c-exp.y (enum token_flags): New.
252 (struct token) <cxx_only>: Remove.
254 (tokentab3, tokentab2, ident_tokens): Update.
255 (lex_one_token): Update. Handle FLAG_SHADOW.
257 2012-07-19 Tom Tromey <tromey@redhat.com>
259 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
260 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
261 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
262 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
263 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
264 type_exp production where appropriate.
265 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
266 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
267 <UNOP_MEMVAL_TYPE>: New case.
268 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
269 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
270 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
271 <UNOP_MEMVAL_TYPE>: New case.
272 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
273 UNOP_REINTERPRET_CAST>: Update.
274 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
275 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
276 UNOP_REINTERPRET_CAST>: Update.
277 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
278 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
279 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
282 2012-07-19 Yao Qi <yao@codesourcery.com>
283 Jan Kratochvil <jan.kratochvil@redhat.com>
285 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
286 and case 'var_optional_filename' together.
287 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
288 instead of add_setshow_optional_filename_cmd for setshow command
289 'args'. Set completer for 'set args'.
291 2012-07-18 Doug Evans <dje@google.com>
293 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
294 * common/gdb_vecs.c: New file, contents from utils.c.
295 * common/host-defs.h: New file, contents from defs.h.
296 * utils.h: New file, contents from defs.h.
297 * defs.h: Move all declarations of objects defined in utils.c
298 to utils.h (except QUIT() and related).
299 #include "utils.h", "host-defs.h".
300 * probe.h (probe_p): Move here from gdb_vecs.h.
301 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
302 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
303 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
304 * Makefile.in (SFILES): Add common/gdb_vecs.c.
305 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
306 (COMMON_OBS): Add gdb_vecs.o.
307 (gdb_vecs.o): New rule.
309 2012-07-18 Keith Seitz <keiths@redhat.com>
311 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
312 parameter. If non-zero, use SYMNAME as the canonical name
315 (convert_linespec_to_sals): Use add_sal_to_sals for
317 (decode_line_full): No need to "fill in missing canonical names"
318 anymore. Simply make cleanups for the allocated names.
320 2012-07-18 Keith Seitz <keiths@redhat.com>
322 * linespec.c (struct linespec): Constify expression,
323 source_filename, function_name, and label_name.
324 (symbol_not_found_error): Make all parameters const.
325 (linespec_parser_delete): No need to check for NULL
326 when using xfree. Cast const char * to char * for xfree.
328 2012-07-18 Keith Seitz <keiths@redhat.com>
330 * breakpoint.c (invalid_thread_id_error): New function.
331 (find_condition_and_thread): Use invalid_thread_id_error.
332 (watch_command_1): Likewise.
334 2012-07-18 Tom Tromey <tromey@redhat.com>
336 * cc-with-index.sh, cc-with-dwz.sh: Remove.
337 * contrib/cc-with-tweaks.sh: New file.
339 2012-07-18 Tom Tromey <tromey@redhat.com>
341 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
342 (locate_dwz_sections): Recognize .gdb_index.
343 (create_cus_from_index_list): New function.
344 (create_cus_from_index): Use it. Handle .dwz data.
345 (read_index_from_section): New function, extracted from
347 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
350 2012-07-18 Tom Tromey <tromey@redhat.com>
352 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
353 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
355 (struct dwz_file): New.
356 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
357 (locate_dwz_sections, dwarf2_get_dwz_file)
358 (get_abbrev_section_for_cu): New functions.
359 (error_check_comp_unit_head, read_and_check_comp_unit_head)
360 (read_and_check_type_unit_head): Add abbrev_section argument.
361 (create_debug_types_hash_table): Update.
362 (init_cutu_and_read_dies): Use proper abbrev section.
363 (init_cutu_and_read_dies_no_follow): Likewise.
364 (set_partial_user): Do nothing if PST==NULL.
365 (read_comp_units_from_section): New function.
366 (create_all_comp_units): Use it.
367 (scan_partial_symbols, partial_die_parent_scope): Update.
368 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
369 (process_imported_unit_die, read_partial_die): Handle .dwz files.
370 (find_partial_die): Add offset_in_dwz argument. Update.
371 (guess_partial_die_structure_name, fixup_partial_die): Update.
372 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
373 DW_FORM_GNU_strp_alt.
374 (read_indirect_string_from_dwz): New function.
375 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
376 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
377 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
378 (follow_die_offset): Add offset_in_dwz argument.
379 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
380 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
381 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
382 Handle new macro forms.
383 (dwarf_decode_macros): Update.
384 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
385 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
386 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
387 (create_debug_types_hash_table): Use correct abbrev section.
388 (get_debug_line_section): New function.
389 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
390 (process_full_comp_unit): Pass 'required' argument to
391 end_symtab_get_static_block.
392 * buildsym.h (end_symtab_get_static_block): Update.
393 * buildsym.c (end_symtab_get_static_block): Add 'required'
395 (end_symtab, end_expandable_symtab): Update.
397 2012-07-18 Tom Tromey <tromey@redhat.com>
399 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
401 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
402 (zlib_decompress_section): Remove.
403 (dwarf2_read_section): Use gdb_bfd_map_section.
404 (munmap_section_buffer): Remove.
405 (free_dwo_file, dwarf2_per_objfile_free): Don't use
406 munmap_section_buffer.
407 * gdb_bfd.c: Include zlib.h, sys/mman.h.
408 (struct gdb_bfd_section_data): New.
409 (free_one_bfd_section): New function.
410 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
411 (get_section_descriptor, zlib_decompress_section)
412 (gdb_bfd_map_section): New functions.
413 * gdb_bfd.h (gdb_bfd_map_section): Declare.
415 2012-07-18 Tom Tromey <tromey@redhat.com>
417 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
419 2012-07-18 Tom Tromey <tromey@redhat.com>
421 * gdb_bfd.c (struct gdb_bfd_data): New.
422 (gdb_bfd_cache): New global.
423 (struct gdb_bfd_cache_search): New.
424 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
425 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
426 * gdb_bfd.h (gdb_bfd_open): Declare.
428 2012-07-18 Tom Tromey <tromey@redhat.com>
430 * utils.c (make_cleanup_bfd_unref): Rename from
431 make_cleanup_bfd_close.
432 * defs.h (make_cleanup_bfd_unref): Rename from
433 make_cleanup_bfd_close.
434 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
435 (bfd_openw_with_cleanup): Update.
436 * corelow.c (core_open): Update.
437 * dsrec.c (load_srec): Update.
438 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
439 * remote-m32r-sdi.c (m32r_load): Update.
440 * remote-mips.c (mips_load_srec): Update.
441 (pmon_load_fast): Update.
442 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
444 (darwin_bfd_open): Update.
445 * solib.c (solib_bfd_fopen): Update.
446 * symfile-mem.c (symbol_file_add_from_memory): Update.
447 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
448 (symfile_bfd_open): Update.
449 (generic_load): Update.
451 2012-07-18 Tom Tromey <tromey@redhat.com>
453 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
454 (pmon_load_fast): Likewise.
455 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
456 (m32r_upload_command): Likewise.
457 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
458 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
459 Use make_cleanup_bfd_close.
461 2012-07-18 Tom Tromey <tromey@redhat.com>
463 * symfile.c (symfile_bfd_open): Don't copy name. Call
464 gdb_bfd_stash_filename.
465 (load_command): Open the new BFD before freeing the old.
466 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
467 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
468 Call gdb_bfd_stash_filename.
469 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
470 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
471 gdb_bfd_stash_filename.
472 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
474 * rs6000-nat.c (add_vmap): Don't copy filename. Call
475 gdb_bfd_stash_filename.
476 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
477 * machoread.c (macho_add_oso_symfile): Call
478 gdb_bfd_stash_filename.
479 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
480 gdb_bfd_stash_filename.
481 (macho_check_dsym): Don't copy filename. Call
482 gdb_bfd_stash_filename.
483 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
484 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
485 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
486 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
487 * exec.c (exec_close): Don't free the BFD's filename.
488 (exec_file_attach): Don't copy the filename. Call
489 gdb_bfd_stash_filename.
490 * corelow.c (core_close): Don't free the BFD's filename.
491 (core_open): Call gdb_bfd_stash_filename.
492 * corefile.c (reopen_exec_file): Remove #if 0 code.
493 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
495 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
497 2012-07-18 Tom Tromey <tromey@redhat.com>
499 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
501 (free_dwo_file): Use gdb_bfd_unref.
502 * cli/cli-dump.c: Include gdb_bfd.h.
503 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
504 (bfd_openr_with_cleanup): Likewise.
505 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
507 * utils.c: Include gdb_bfd.h.
508 (do_bfd_close_cleanup): Use gdb_bfd_unref.
509 * symfile.c: Include gdb_bfd.h.
510 (separate_debug_file_exists): Use gdb_bfd_unref.
511 (bfd_open_maybe_remote): Use gdb_bfd_ref.
512 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
513 (generic_load): Use gdb_bfd_ref.
514 (reread_symbols): Use gdb_bfd_unref.
515 * symfile-mem.c: Include gdb_bfd.h.
516 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
517 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
518 * solib.c: Include gdb_bfd.h.
519 (solib_bfd_fopen): Use gdb_bfd_ref.
520 (solib_bfd_open): Use gdb_bfd_unref.
521 (free_so_symbols): Use gdb_bfd_unref.
522 (reload_shared_libraries_1): Use gdb_bfd_unref.
523 * solib-spu.c: Include gdb_bfd.h.
524 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
525 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
527 * solib-frv.c: Include gdb_bfd.h.
528 (enable_break2): Use gdb_bfd_unref.
529 * solib-dsbt.c: Include gdb_bfd.h.
530 (enable_break2): Use gdb_bfd_unref.
531 * solib-darwin.c: Include gdb_bfd.h.
532 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
534 (darwin_bfd_open): Use gdb_bfd_unref.
535 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
536 * remote-mips.c: Include gdb_bfd.h.
537 (mips_load_srec): Use gdb_bfd_ref.
538 (pmon_load_fast): Use gdb_bfd_ref.
539 * remote-m32r-sdi.c: Include gdb_bfd.h.
540 (m32r_load): Use gdb_bfd_ref.
541 * record.c: Include gdb_bfd.h.
542 (record_save_cleanups): Use gdb_bfd_unref.
543 (cmd_record_save): Use gdb_bfd_unref.
544 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
546 * objfiles.h (gdb_bfd_close_or_warn): Remove.
547 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
548 * objfiles.c: Include gdb_bfd.h.
549 (free_objfile): Use gdb_bfd_unref.
550 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
552 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
553 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
554 (macho_check_dsym): Likewise.
555 * m32r-rom.c: Include gdb_bfd.h.
556 (m32r_load): Use gdb_bfd_ref.
557 (m32r_upload_command): Use gdb_bfd_ref.
558 * jit.c: Include gdb_bfd.h.
559 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
560 * gdb_bfd.h: New file.
561 * gdb_bfd.c: New file.
562 * gcore.c: Include gdb_bfd.h.
563 (create_gcore_bfd): Use gdb_bfd_ref.
564 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
565 (gcore_command): Use gdb_bfd_unref.
566 * exec.c: Include gdb_bfd.h.
567 (exec_close): Use gdb_bfd_unref.
568 (exec_close_1): Use gdb_bfd_unref.
569 (exec_file_attach): Use gdb_bfd_ref.
570 * elfread.c: Include gdb_bfd.h.
571 (build_id_verify): Use gdb_bfd_unref.
572 * dsrec.c: Include gdb_bfd.h.
573 (load_srec): Use gdb_bfd_ref.
574 * corelow.c: Include gdb_bfd.h.
575 (core_close): Use gdb_bfd_unref.
576 (core_open): Use gdb_bfd_ref.
577 * bfd-target.c: Include gdb_bfd.h.
578 (target_bfd_xclose): Use gdb_bfd_unref.
579 (target_bfd_reopen): Use gdb_bfd_ref.
580 * Makefile.in (SFILES): Add gdb_bfd.c.
581 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
582 (COMMON_OBS): Add gdb_bfd.o.
584 2012-07-18 Keith Seitz <keiths@redhat.com>
586 * breakpoint.c (find_condition_and_thread): Initialize
588 (create_breakpiont): find_condition_and_thread will now
589 initialize COND_STRING, THREAD, and REST (and TASK).
590 (addr_string_to_sals): Likewise.
592 2012-07-18 Pedro Alves <palves@redhat.com>
594 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
595 Pull the single step breakpoints out of the target.
597 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
599 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
600 * stap-probe.c (compile_probe_arg): Likewise.
602 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
604 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
605 (elf_compile_to_ax): Likewise.
606 * infrun.c (insert_exception_resume_from_probe): Likewise.
607 (check_exception_resume): Remove `objfile' variable.
608 * probe.c (find_probe_by_pc): Remove `objfile' argument.
609 (struct probe_and_objfile, probe_and_objfile_s): Delete.
610 (collect_probes): Adjust return value to `VEC (probe_p) *'.
611 (compare_entries): Rename to...
612 (compare_probes): ...this. Adjust function to work with
613 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
615 (gen_ui_out_table_header_info): Adjust `probes' argument to be
617 (print_ui_out_info): Adjust argument to be `struct probe *'.
618 (info_probes_for_ops): Adjust internal computations to use
620 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
621 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
622 gen_info_probes_table_values>: Remove `objfile' argument.
623 (struct probe) <objfile>: New field.
624 (find_probe_by_pc): Remove `objfile' argument.
625 * stap-probe.c (stap_parse_probe_arguments): Likewise.
626 (stap_get_probe_argument_count): Likewise.
627 (stap_get_arg): Likewise.
628 (stap_evaluate_probe_argument): Likewise.
629 (stap_compile_to_ax): Likewise.
630 (compile_probe_arg): Refactor not to pass `objfile' anymore.
631 (handle_stap_probe): Fill `objfile' field from `struct probe'.
632 (stap_gen_info_probes_table_header): Remove `objfile' argument.
633 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
634 sym_compile_to_ax>: Likewise.
636 2012-07-18 Terry Guo <terry.guo@arm.com>
639 * defs.h (GDB_MI_MSG_WIDTH): New.
640 * ser_base (ser_base_read_error_fd): New function.
641 (do_ser_base_readchar): Poll error file descriptor as well as
643 (generic_readchar): Refactor error handling.
645 2012-07-18 Joel Brobecker <brobecker@adacore.com>
647 * NEWS: Create a new section for the next release branch.
648 Rename the section of the current branch, now that it has
651 2012-07-18 Joel Brobecker <brobecker@adacore.com>
653 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
654 * version.in: Bump version to 7.5.50.20120718-cvs.
656 2012-07-17 Keith Seitz <keiths@redhat.com>
658 * linespec.c (linespec_parse_line_offset): Make parameter
661 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
664 * f-valprint.c (info_common_command): New variable frame_id.
665 Reinitialize FI form FRAME_ID after each print_variable_and_value.
666 * printcmd.c (print_variable_and_value): Extend function comment.
667 Add comment for invalidated FRAME.
668 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
669 FI form FRAME_ID after each print_frame_local_vars.
670 (struct print_variable_and_value_data): Change frame to frame_id.
671 (do_print_variable_and_value): New variable frame, initialize it from
672 p->frame_id. Add comment for invalidated FRAME.
673 (print_frame_local_vars, print_frame_arg_vars): New function comment.
674 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
675 for invalidated FRAME.
677 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
678 Pedro Alves <palves@redhat.com>
680 * linux-nat.c (linux_nat_detach): Don't unregister from the event
683 2012-07-16 Tom Tromey <tromey@redhat.com>
685 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
687 2012-07-15 Doug Evans <dje@google.com>
689 * dwarf2read.c (stmt_list_hash): New struct.
690 (type_unit_group): Embed "per_cu" member, remove pointer.
691 New union member "t", move member "tus" into it, all uses updated.
692 New member "hash", replaces member "line_offset, all uses updated.
693 (quick_file_names): Replace member "offset" with "hash", all uses
695 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
696 (hash_file_name_entry, eq_file_name_entry): Call them.
697 (hash_type_unit_group, eq_type_unit_group): Ditto.
698 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
699 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
700 (dw2_get_file_names): Update.
701 (create_type_unit_group): Replace "per_cu" arg with "cu".
702 All callers updated. Fix "quick" (.gdb_index) handling.
703 (get_type_unit_group): Replace "per_cu" arg with "cu".
705 (build_type_unit_groups): Don't reset tu_stats.
707 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
708 "tab_cur_size". Change member "tab" to be a htab_t.
709 (create_filename_seen_cache): Update.
710 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
711 (filename_seen): Update.
713 2012-07-13 Doug Evans <dje@google.com>
715 * symtab.c (filename_seen): Update comment.
717 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
718 Doug Evans <dje@google.com>
720 * buildsym.c (end_symtab_1): Split it to ...
721 (end_symtab_get_static_block): ... this ...
722 (end_symtab_from_static_block): ... and this function.
723 (end_symtab, end_expandable_symtab): Call them.
724 * buildsym.h (end_symtab_get_static_block)
725 (end_symtab_from_static_block): New declarations.
726 * dwarf2read.c (process_full_comp_unit): New variable static_block.
727 Set its valid CU ranges.
729 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
731 * dwarf2loc.c (disassemble_dwarf_expression): Handle
732 DW_OP_GNU_parameter_ref.
734 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
736 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
737 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
739 2012-07-13 Doug Evans <dje@google.com>
741 * symtab.c (output_source_filename): Delete unnecessary forward decl.
742 (filename_seen_cache): New struct.
743 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
744 (create_filename_seen_cache): New function.
745 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
746 (filename_seen): Delete arg "first". New arg "cache". All callers
748 (output_source_filename_data): New struct.
749 (output_source_filename): Delete arg "first". New arg "data".
751 (sources_info): Delete local "first". New locals "data", "cleanups".
752 Rewrite to use filename_seen_cache.
753 (add_partial_filename_data): Delete member "first". New member
754 "filename_seen_cache". All uses updated.
755 (make_source_files_completion_list): Rewrite to use
758 2012-07-12 Doug Evans <dje@google.com>
760 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
762 2012-07-10 Doug Evans <dje@google.com>
765 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
766 all_type_unit_groups, type_unit_groups, tu_stats.
767 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
768 All uses updated. Add type_unit_group to union "s".
769 (type_unit_group): New struct.
770 (IS_TYPE_UNIT_GROUP): New macro.
771 (abbrev_table): Delete unused member "section".
772 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
773 (dw2_get_cu): Assert not used with type_unit_group.
774 (dw2_get_primary_cu): New function.
775 (dw2_build_type_unit_groups_reader): New function.
776 (dw2_build_type_unit_groups): New function.
777 (dw2_get_file_names): Assert not called on type units.
778 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
779 Redo loop to iterate over type unit groups instead of type units.
780 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
781 (read_abbrev_offset): New function.
782 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
784 (create_partial_symtab): New function.
785 (process_psymtab_comp_unit_reader): Assert not used with type units.
786 Call create_partial_symtab.
787 (process_psymtab_type_unit): Delete.
788 (hash_type_unit_group, eq_type_unit_group): New functions.
789 (allocate_type_unit_groups_table): New function.
790 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
791 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
792 (create_type_unit_group, get_type_unit_group): New functions.
793 (tu_abbrev_offset): New struct.
794 (sort_tu_by_abbrev_offset): New function.
795 (add_type_unit_group_to_table): New function.
796 (build_type_unit_groups): New function.
797 (build_type_psymtabs_reader): New function.
798 (build_type_psymtab_dependencies): New function.
799 (build_type_psymtabs): Rewrite.
800 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
801 is seen in a type unit.
802 (process_queue): Move symtab expansion debugging printfs here.
803 Call process_full_type_unit for type units.
804 (compute_symtab_includes): Assert not called for type units.
805 (process_cu_includes): Don't call compute_symtab_includes for
807 (process_full_type_unit): New function.
808 (process_imported_unit_die): Flag an error if called for type units.
809 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
810 updated. Assert not called for type units.
811 (read_file_scope): Call dwarf2_start_symtab.
812 (setup_type_unit_groups): New function.
813 (read_type_unit_scope): Rewrite.
814 (abbrev_table_read_table): Initialize abbrev_table->offset.
815 (abbrev_table_free_cleanup): New function.
816 (dwarf2_start_symtab): New function.
817 (load_full_type_unit): Assert not called for type unit groups.
818 * buildsym.c (finish_block_internal): New arg "expandable".
820 (start_symtab): Move most contents to ...
821 (restart_symtab): ... here. New function.
822 (reset_symtab_globals): New function.
823 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
824 Call reset_symtab_globals.
825 (end_symtab, end_expandable_symtab): New functions.
826 (set_missing_symtab, augment_type_symtab): New functions.
827 * buildsym.h (end_expandable_symtab): Declare.
828 (augment_type_symtab, restart_symtab): Declare.
829 * psympriv.h (struct partial_symtab): New member "anonymous".
830 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
832 (read_psymtabs_with_filename): Ditto.
833 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
834 (expand_symtabs_matching_via_partial): Ditto.
835 (dump_psymtab): Update.
836 * dictionary.c (dict_add_pending): New function.
837 * dictionary.h (dict_add_pending): Declare.
839 2012-07-09 Doug Evans <dje@google.com>
841 * buildsym.c (start_subfile): Remove unnecessary check for
844 * psymtab.c (allocate_psymtab): Use host_address_to_string.
846 * dwarf2read.c (load_full_type_unit): Simplify.
848 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
849 to struct signatured_type **. All uses updated.
851 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
854 2012-07-09 Tom Tromey <tromey@redhat.com>
856 * c-exp.y (check_parameter_typelist): New function.
857 (parameter_typelist): Call it.
858 * eval.c (make_params): Handle '(void)' case.
859 * gdbtypes.c (lookup_function_type_with_arguments): Handle
862 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
864 * common/linux-ptrace.c: Include gdb_assert.h.
865 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
866 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
868 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
870 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
871 * linux-nat.c (linux_child_post_attach)
872 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
874 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
876 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
877 nptl <2.7 bug workaround for core files.
879 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
881 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
883 (save_siginfo): Remove.
884 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
886 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
887 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
888 * linux-nat.h (struct lwp_info): Remove field siginfo.
890 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
892 Code cleanup for the next patch.
893 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
894 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
896 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
897 (ia64_linux_stopped_data_address):
898 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
900 * linux-nat.h (linux_nat_get_siginfo): Likewise.
901 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
902 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
905 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
908 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
909 Increase buffer sizes to 2x we need, not just 2x of the previous size.
911 2012-07-06 Tom Tromey <tromey@redhat.com>
913 * c-exp.y (DOTDOTDOT): New token.
914 (func_mod, exp): Use parameter_typelist.
915 (parameter_typelist): New production.
916 (tokentab3): Add "..." token.
917 * eval.c (make_params): Handle varargs.
918 * gdbtypes.c (lookup_function_type_with_arguments): Handle
921 2012-07-06 Tom Tromey <tromey@redhat.com>
924 * c-exp.y (%union) <tvec>: Change type.
925 (func_mod): Now uses <tvec> type.
926 (exp): Update for tvec change.
927 (direct_abs_decl): Push the typelist.
928 (func_mod): Return a typelist.
929 (nonempty_typelist): Update for tvec change.
930 * gdbtypes.c (lookup_function_type_with_arguments): New function.
931 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
932 * parse.c (pop_type_list): New function.
933 (push_typelist): New function.
934 (follow_types): Handle tp_function_with_arguments.
935 * parser-defs.h (type_ptr): New typedef. Define a VEC.
936 (enum type_pieces) <tp_function_with_arguments>: New constant.
937 (union type_stack_elt) <typelist_val>: New field.
938 (push_typelist): Declare.
940 2012-07-06 Tom Tromey <tromey@redhat.com>
942 * c-exp.y (%union) <type_stack>: New field.
943 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
944 (ptr_operator_ts): New production.
946 * parse.c (type_stack_reserve): New function.
947 (check_type_stack_depth): Use it.
948 (pop_type_stack, append_type_stack, push_type_stack)
949 (get_type_stack, type_stack_cleanup): New functions.
950 (follow_types): Handle tp_type_stack.
951 (_initialize_parse): Simplify initialization.
952 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
954 (union type_stack_elt) <stack_val>: New field.
955 (get_type_stack, append_type_stack, push_type_stack)
956 (type_stack_cleanup): Declare.
958 2012-07-06 Tom Tromey <tromey@redhat.com>
960 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
962 (struct type_stack): New.
963 * parse.c (type_stack, type_stack_size, type_stack_depth):
965 (type_stack): New global.
966 (parse_exp_in_context, check_type_stack_depth)
967 (insert_into_type_stack, insert_type, push_type, push_type_int)
968 (insert_type_address_space, pop_type, pop_type_int)
969 (_initialize_parse): Update.
971 2012-07-06 Tom Tromey <tromey@redhat.com>
973 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
976 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
978 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
980 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
981 Jan Kratochvil <jan.kratochvil@redhat.com>
983 * cp-valprint.c (cp_print_value): Replace potentially unsafe
984 alloca with xmalloc/xfree.
986 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
988 * MAINTAINERS (Write After Approval): Add myself to the list.
990 2012-07-05 Doug Evans <dje@google.com>
992 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
994 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
996 * ax-gdb.c (cli/cli-utils.h): New include.
998 (agent_eval_command_one): New function.
999 (agent_command_1): Ditto.
1000 (agent_command): Call function agent_command_1.
1001 (agent_eval_command): Ditto.
1002 (_initialize_ax_gdb): Change help for "maint agent"
1003 and "maint agent-eval".
1005 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1007 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
1008 * cli/cli-utils.c (check_for_argument): New function.
1009 * cli/cli-utils.h (check_for_argument): Ditto.
1011 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1013 * NEWS: Mention x32 ABI support.
1015 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1017 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1018 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1020 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1021 and pc_regnum_from_eax to -1. Update SP regnum from
1022 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1025 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1028 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1030 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1031 * dwarf2expr.h: Include gdbtypes.h.
1032 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1033 these forward declarations.
1034 (cu_offset, sect_offset): Move these ...
1035 * gdbtypes.h: Remove include dwarf2expr.h.
1036 (cu_offset, sect_offset): ... here.
1038 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1040 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1041 (amd64_linux_sigtramp_code): This.
1042 (amd64_x32_linux_sigtramp_code): New.
1043 (LINUX_SIGTRAMP_LEN): Updated.
1044 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1046 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1048 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1050 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1052 * config.in: Regenerate.
1053 * configure: Regenerate.
1054 * configure.ac: Remove check for gnu/libc-version.h.
1055 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1057 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1058 variables libc_version, libc_major and libc_minor. Replace sscanf by
1059 inferior_has_bug. Extend the comment.
1061 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1063 * linux-thread-db.c (inferior_has_bug): New function.
1064 (thread_db_find_new_threads_silently): Return boolean as checked by
1065 inferior_has_bug, describe it in the comments.
1066 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1067 earlier. Abort the initialization if it returned non-zero.
1068 (thread_db_new_objfile): Exclude debug files.
1069 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1072 2012-07-02 Doug Evans <dje@google.com>
1074 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1075 related to queue management.
1077 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1078 instead of "debug dwarf2-die" in debugging printfs.
1079 (create_debug_info_hash_table_reader): Ditto.
1080 (create_debug_info_hash_table): Ditto.
1081 (init_dwo_file): Ditto.
1082 (init_cutu_and_read_dies): Add debugging printf.
1083 (init_cutu_and_read_dies_no_follow): Ditto.
1084 (process_psymtab_comp_unit_reader): Ditto.
1086 2012-07-02 Stan Shebs <stan@codesourcery.com>
1088 Add target-side support for dynamic printf.
1089 * NEWS: Mention the additional style.
1090 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1091 (struct bp_location): New field cmd_bytecode.
1092 * breakpoint.c: Include format.h.
1093 (disconnected_dprintf): New global.
1094 (parse_cmd_to_aexpr): New function.
1095 (build_target_command_list): New function.
1096 (insert_bp_location): Call it.
1097 (remove_breakpoints_pid): Skip dprintf breakpoints.
1098 (print_one_breakpoint_location): Ditto.
1099 (dprintf_style_agent): New global.
1100 (dprintf_style_enums): Add dprintf_style_agent.
1101 (update_dprintf_command_list): Add agent case.
1102 (agent_printf_command): New function.
1103 (_initialize_breakpoint): Add new commands.
1104 * common/ax.def (printf): New bytecode.
1105 * ax.h (ax_string): Declare.
1106 * ax-gdb.h (gen_printf): Declare.
1107 * ax-gdb.c: Include cli-utils.h, format.h.
1108 (gen_printf): New function.
1109 (maint_agent_print_command): New function.
1110 (_initialize_ax_gdb): Add maint agent-printf command.
1111 * ax-general.c (ax_string): New function.
1112 (ax_print): Add printf disassembly.
1113 * Makefile.in (SFILES): Add format.c
1114 (COMMON_OBS): Add format.o.
1115 * common/format.h: New file.
1116 * common/format.c: New file.
1117 * printcmd.c: Include format.h.
1118 (ui_printf): Call parse_format_string.
1119 * remote.c (remote_state): New field breakpoint_commands.
1120 (PACKET_BreakpointCommands): New enum.
1121 (remote_breakpoint_commands_feature): New function.
1122 (remote_protocol_features): Add new BreakpointCommands entry.
1123 (remote_can_run_breakpoint_commands): New function.
1124 (remote_add_target_side_commands): New function.
1125 (remote_insert_breakpoint): Call it.
1126 (remote_insert_hw_breakpoint): Ditto.
1127 (_initialize_remote): Add new packet configuration for
1128 target-side breakpoint commands.
1129 * target.h (struct target_ops): New field
1130 to_can_run_breakpoint_commands.
1131 (target_can_run_breakpoint_commands): New macro.
1132 * target.c (update_current_target): Handle
1133 to_can_run_breakpoint_commands.
1135 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1137 Execute -ix and -iex only after system and user gdbinit files.
1138 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1139 processing down after gdbinit files.
1141 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1143 Add fnmatch-gnu module.
1144 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1145 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1146 * gnulib/aclocal.m4: Regenerate.
1147 * gnulib/config.in: Regenerate.
1148 * gnulib/configure: Regenerate.
1149 * gnulib/import/dummy.c: Remove.
1150 * gnulib/import/Makefile.am: Regenerate.
1151 * gnulib/import/Makefile.in: Likewise.
1152 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1153 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1154 * gnulib/import/alloca.c: New file.
1155 * gnulib/import/alloca.in.h: Likewise.
1156 * gnulib/import/config.charset: Likewise.
1157 * gnulib/import/fnmatch.c: Likewise.
1158 * gnulib/import/fnmatch.in.h: Likewise.
1159 * gnulib/import/fnmatch_loop.c: Likewise.
1160 * gnulib/import/localcharset.c: Likewise.
1161 * gnulib/import/localcharset.h: Likewise.
1162 * gnulib/import/m4/alloca.m4: Likewise.
1163 * gnulib/import/m4/codeset.m4: Likewise.
1164 * gnulib/import/m4/configmake.m4: Likewise.
1165 * gnulib/import/m4/fcntl-o.m4: Likewise.
1166 * gnulib/import/m4/fnmatch.m4: Likewise.
1167 * gnulib/import/m4/glibc21.m4: Likewise.
1168 * gnulib/import/m4/localcharset.m4: Likewise.
1169 * gnulib/import/m4/locale-fr.m4: Likewise.
1170 * gnulib/import/m4/locale-ja.m4: Likewise.
1171 * gnulib/import/m4/locale-zh.m4: Likewise.
1172 * gnulib/import/m4/mbrtowc.m4: Likewise.
1173 * gnulib/import/m4/mbsinit.m4: Likewise.
1174 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1175 * gnulib/import/m4/mbstate_t.m4: Likewise.
1176 * gnulib/import/m4/stdbool.m4: Likewise.
1177 * gnulib/import/m4/wchar_h.m4: Likewise.
1178 * gnulib/import/m4/wctype_h.m4: Likewise.
1179 * gnulib/import/m4/wint_t.m4: Likewise.
1180 * gnulib/import/mbrtowc.c: Likewise.
1181 * gnulib/import/mbsinit.c: Likewise.
1182 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1183 * gnulib/import/mbsrtowcs-state.c: Likewise.
1184 * gnulib/import/mbsrtowcs.c: Likewise.
1185 * gnulib/import/ref-add.sin: Likewise.
1186 * gnulib/import/ref-del.sin: Likewise.
1187 * gnulib/import/stdbool.in.h: Likewise.
1188 * gnulib/import/streq.h: Likewise.
1189 * gnulib/import/strnlen1.c: Likewise.
1190 * gnulib/import/strnlen1.h: Likewise.
1191 * gnulib/import/verify.h: Likewise.
1192 * gnulib/import/wchar.in.h: Likewise.
1193 * gnulib/import/wctype.in.h: Likewise.
1195 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1197 Support shell wildcards for 'set auto-load safe-path'.
1198 * auto-load.c: Include fnmatch.h.
1199 (filename_is_in_dir): Rename to ...
1200 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1201 it. Update function comment. Rename dir_len to pattern_len. New
1202 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1203 messages. Use gdb_filename_fnmatch.
1204 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1206 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1207 * defs.h (gdb_filename_fnmatch): New declaration.
1208 * utils.c: Include fnmatch.h.
1209 (gdb_filename_fnmatch): New function.
1211 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1213 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1214 `-probe' and `-probe-stap' options.
1216 2012-07-01 Yao Qi <yao@codesourcery.com>
1218 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1219 always_inserted_off, and always_inserted_enums.
1220 Change always_inserted_mode's type to 'enum auto_boolean'.
1221 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1223 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1224 of add_setshow_enum_cmd.
1225 * infrun.c: Remove can_use_displaced_stepping_auto,
1226 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1227 can_use_displaced_stepping_enum.
1228 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1229 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1230 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1231 add_setshow_enum_cmd.
1233 2012-06-30 Doug Evans <dje@google.com>
1235 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1236 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1237 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1239 2012-06-29 Doug Evans <dje@google.com>
1241 * linespec.c: #include "stack.h".
1242 (decode_line_with_current_source): Moved here from symtab.c and
1243 renamed from decode_line_spec. All callers updated.
1244 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1245 renamed from decode_line_spec_1. All callers updated.
1246 * linespec.h (decode_line_with_current_source): Move declaration here
1247 from symtab.h and renamed from decode_line_spec.
1248 (decode_line_with_last_displayed): Move declaration here from symtab.h
1249 and renamed from decode_line_spec_1.
1250 * macrocmd.c: #include "linespec.h".
1251 * symtab.c: Remove #include "linespec.h".
1253 2012-06-28 Doug Evans <dje@google.com>
1255 * dwarf2read.c (get_cu_length): New function.
1256 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1257 (create_debug_types_hash_table): Ditto.
1258 (init_cutu_and_read_dies): Ditto.
1259 (init_cutu_and_read_dies_no_follow): Ditto.
1261 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1263 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1264 (struct abbrev_table): Define.
1265 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1267 (init_cutu_and_read_dies): Update.
1268 (abbrev_table_alloc_abbrev): New function. Replaces
1269 dwarf_alloc_abbrev. All callers updated.
1270 (abbrev_table_add_abbrev): New function.
1271 (abbrev_table_lookup_abbrev): New function. Replaces
1272 dwarf2_lookup_abbrev. All callers updated.
1273 (abbrev_table_read_table): New function. Contents moved here from
1274 dwarf2_read_abbrevs.
1275 (dwarf2_read_abbrevs): Call it.
1276 (abbrev_table_free): New function.
1277 (dwarf2_free_abbrev_table): Call it.
1279 2012-06-28 Stan Shebs <stan@codesourcery.com>
1281 * osdata.c (info_osdata_command): Filter out "Title" columns
1283 * common/linux-osdata.c (struct osdata_type): Add title field.
1284 (osdata_table): Add titles to each entry.
1285 (linux_command_xfer_osdata): Add a column for title data.
1287 2012-06-28 Stan Shebs <stan@codesourcery.com>
1289 Make logging work for MI.
1291 * interps.h (interp_set_logging_ftype): New typedef.
1292 (struct interp_procs): New field set_logging_proc.
1293 (current_interp_set_logging): Declare.
1294 * interps.c (current_interp_set_logging): New function.
1295 * cli/cli-logging.c: Include interps.h.
1296 (set_logging_redirect): Call current_interp_set_logging.
1297 (pop_output_files): Ditto.
1298 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1299 * mi/mi-console.h (mi_console_set_raw): Declare.
1300 * mi/mi-console.c (mi_console_set_raw): New function.
1301 * mi/mi-interp.c (saved_raw_stdout): New global.
1302 (mi_set_logging): New function.
1303 (_initialize_mi_interp): Add it to interp procs.
1305 2012-06-28 Doug Evans <dje@google.com>
1307 * symtab.c (lookup_symbol_aux_objfile): Use
1308 ALL_OBJFILE_PRIMARY_SYMTABS.
1310 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1312 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1314 * common/buffer.c: Include inttypes.h and stdint.h.
1315 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1317 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1318 Pedro Alves <palves@redhat.com>
1320 * gdbthread.h (ALL_THREADS): New macro.
1321 (thread_list): Declare.
1322 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1323 going, but instead fall through to the stepping handling.
1324 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1325 the passed in signal. Adjust debug output.
1326 (resume_callback): Rename to ...
1327 (linux_nat_resume_callback): ... this. Pass the thread's last
1328 stop signal, if in "pass" state.
1329 (linux_nat_resume): Adjust to rename.
1330 (stop_wait_callback): New assertion. Don't respawn signals;
1331 instead let the LWP remain with SIGNALLED set.
1332 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1333 * remote.c (append_pending_thread_resumptions): New.
1334 (remote_vcont_resume): Call it.
1335 * target.h (target_resume): Extend comment.
1337 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1339 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1341 2012-06-27 Doug Evans <dje@google.com>
1343 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1344 Delete have_addr_base, unused. All uses updated.
1345 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1346 (dwarf2_get_pc_bounds): Add ranges_base.
1347 (dwarf2_record_block_ranges): Ditto.
1349 2012-06-27 Tom Tromey <tromey@redhat.com>
1352 * varobj.c (varobj_create): Update.
1353 (varobj_set_value): Update.
1354 * tracepoint.c (validate_actionline): Update.
1355 (encode_actions_1): Update.
1356 * parse.c (parse_exp_1): Add 'pc' argument.
1357 (parse_exp_in_context): Add 'pc' argument. Change how
1358 expression_context_pc is set.
1359 (parse_expression): Update.
1360 (parse_field_expression): Update.
1361 * expression.h (parse_exp_1): Update.
1362 * eval.c (parse_to_comma_and_eval): Update.
1363 * breakpoint.c (set_breakpoint_condition): Update.
1364 (update_watchpoint): Update.
1365 (init_breakpoint_sal): Update
1366 (find_condition_and_thread): Update.
1367 (watch_command_1): Update.
1368 (update_breakpoint_locations): Update.
1369 * ada-lang.c (ada_read_renaming_var_value): Update.
1370 (create_excep_cond_exprs): Update.
1372 2012-06-27 Doug Evans <dje@google.com>
1374 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1377 2012-06-26 Doug Evans <dje@google.com>
1379 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1381 (error_check_comp_unit_head): New arg abbrev_section. All callers
1383 (read_and_check_comp_unit_head): Ditto.
1384 (read_and_check_type_unit_head): Ditto.
1386 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1388 New attribute 'last' for gdb.Symtab_and_line.
1389 * NEWS (Python Scripting): Add entry about the new attribute.
1390 * python/py-symtab.c (salpy_get_last): New function which
1391 implements the get method for the 'last' attribute of
1392 gdb.Symtab_and_line.
1393 (sal_object_getset): Add entry for the 'last' attribute.
1395 2012-06-26 Doug Evans <dje@google.com>
1397 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1398 (dwo_sections): Add macinfo, macro.
1399 (dwarf2_locate_dwo_sections): Watch for macro sections.
1400 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1401 All callers updated. Handle DWO files.
1403 * NEWS: Mention new options "set debug dwarf2-read" and
1404 "set debug symtab-create".
1405 * dwarf2read.c (dwarf2_read_debug): New static global.
1406 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1407 (process_queue): Ditto.
1408 (process_full_comp_unit): Ditto.
1409 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1410 * elfread.c (elf_symfile_read): Add debugging printf.
1411 * minsyms.c (install_minimal_symbols): Ditto.
1412 * psymtab.c (allocate_psymtab): Ditto.
1413 * symfile.c (allocate_symtab): Ditto.
1414 * symtab.c (symtab_create_debug): New global.
1415 (_initialize_symtab): Add new option "set debug symtab-create".
1416 * symtab.h (symtab_create_debug): Declare.
1418 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1419 (lookup_dwo_type_unit): Ditto.
1421 2012-06-26 Roland McGrath <roland@hack.frob.com>
1422 H.J. Lu <hongjiu.lu@intel.com>
1424 * amd64-linux-nat.c: Include <sys/user.h>.
1425 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1426 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1427 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1429 * configure.ac: Check if the fs_base and gs_base members of
1430 `struct user_regs_struct' exist.
1431 * config.in: Regenerated.
1432 * configure: Likewise.
1434 2012-06-25 Michael Eager <eager@eagercon.com>
1437 * python/python.c (gdbpy_write): Check for interrupted output.
1439 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1441 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1442 register as a stack alignment in ARM mode.
1444 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1446 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1447 * gnulib/config.in: Regenerate.
1448 * gnulib/configure: Likewise.
1449 * gnulib/import/m4/extensions.m4: Update it.
1450 * gnulib/import/m4/gnulib-common.m4: Likewise.
1451 * gnulib/import/m4/memmem.m4: Likewise.
1452 * gnulib/import/m4/mmap-anon.m4: Likewise.
1453 * gnulib/import/m4/multiarch.m4: Likewise.
1454 * gnulib/import/stdint.in.h: Likewise.
1456 2012-06-24 Yao Qi <yao@codesourcery.com>
1458 * corefile.c (write_memory_with_notification): New.
1459 * gdbcore.h: Declare write_memory_with_notification.
1460 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1461 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1462 * valops.c (value_assign): Likewise.
1463 * python/py-inferior.c (infpy_write_memory): Call
1464 'write_memory_with_notification'.
1466 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1468 * cc-with-index.sh: Use also -ex "set auto-load no".
1470 2012-06-23 Doug Evans <dje@google.com>
1473 * NEWS: Document additions to .gdb_index.
1474 * dwarf2read.c: #include "gdb/gdb-index.h".
1475 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1476 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1477 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1478 (dwarf2_read_index): Recognize version 7.
1479 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1480 block_kind, domain): All callers updated.
1481 (dw2_find_symbol_file): Handle new index CU values.
1482 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1483 (add_index_entry): New args is_static, kind. All callers updated.
1484 (offset_type_compare, uniquify_cu_indices): New functions
1485 (symbol_kind): New function.
1486 (write_psymtabs_to_index): Remove duplicate CU values.
1487 (write_psymtabs_to_index): Write .gdb_index version 7.
1489 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1491 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1492 * configure: Regenerate.
1494 2012-06-20 Yao Qi <yao@codesourcery.com>
1496 * python/py-inferior.c: Update comments of infpy_read_memory
1497 and infpy_write_memory.
1499 2012-06-19 Tom Tromey <tromey@redhat.com>
1502 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1503 (push_type_address_space): Remove.
1504 * parse.c (insert_into_type_stack): New function.
1505 (insert_type): Likewise.
1506 (insert_type_address_space): Rename from push_type_address_space.
1507 Insert tp_space_identifier.
1508 * c-exp.y (ptr_operator): New production.
1509 (abs_decl): Use ptr_operator.
1510 (space_identifier): Call insert_type_address_space.
1511 (ptype): Don't use const_or_volatile_or_space_identifier.
1512 (const_or_volatile_noopt): Call insert_type.
1513 (conversion_type_id, conversion_declarator): New productions.
1514 (operator): Use conversion_type_id.
1516 2012-06-18 Doug Evans <dje@google.com>
1518 * symtab.h (minimal_symbol): New member created_by_gdb.
1519 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1521 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1522 (search_symbols): Call it instead of lookup_symbol.
1523 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1525 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1526 Adjust address for DW_OP_GNU_addr_index.
1527 * dwarf2expr.h (dwarf_expr_context): Update comment.
1528 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1529 all callers updated. Handle TLS vars described with
1530 DW_OP_GNU_const_index.
1531 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1532 and DW_OP_GNU_const_index.
1533 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1535 * block.c (find_block_in_blockvector): Make explicit the fact that we
1536 ignore GLOBAL_BLOCK.
1538 2012-06-18 Tom Tromey <tromey@redhat.com>
1540 * c-exp.y (operator): Remove trailing space after "delete" and
1543 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1544 Jan Kratochvil <jan.kratochvil@redhat.com>
1546 Switch i386 and derived targets to ON_STACK.
1547 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1548 (amd64_dicos_init_abi): Remove its installment.
1549 * dicos-tdep.c (dicos_init_abi): Remove the
1550 set_gdbarch_call_dummy_location call. Update the comment here.
1551 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1552 (i386_dicos_init_abi): Remove its installment.
1553 * i386-tdep.c (i386_push_dummy_code): New function.
1554 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1555 i386_push_dummy_code.
1557 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1559 Remove stale dummy frames.
1560 * breakpoint.c: Include dummy-frame.h.
1561 (longjmp_breakpoint_ops): New variable.
1562 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1563 bp_longjmp_call_dummy.
1564 (bpstat_what, bptype_string, print_one_breakpoint_location)
1565 (init_bp_location): Support bp_longjmp_call_dummy.
1566 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1567 (set_longjmp_breakpoint_for_call_dummy)
1568 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1570 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1571 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1572 FIXME comment and extend the other comment for bp_call_dummy.
1573 (set_longjmp_breakpoint_for_call_dummy)
1574 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1575 * dummy-frame.c: Include gdbthread.h.
1576 (pop_dummy_frame_bpt): New function.
1577 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1578 (dummy_frame_discard): New function.
1579 (cleanup_dummy_frames): Update the comment about longjmps.
1580 * dummy-frame.h (dummy_frame_discard): New declaration.
1581 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1582 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1583 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1584 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1585 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1586 keep_going if IS_LONGJMP and there is no other reason to stop.
1588 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1590 * remote-sim.c (sim_command_completer): Initialize
1593 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1595 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1596 * dwarf2loc.c (call_site_parameter_matches): Support
1597 CALL_SITE_PARAMETER_PARAM_OFFSET.
1598 (needs_dwarf_reg_entry_value): Push stub value.
1599 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1600 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1601 * gdbtypes.h (enum call_site_parameter_kind): New item
1602 CALL_SITE_PARAMETER_PARAM_OFFSET.
1603 (struct call_site.parameter.u): New field param_offset.
1605 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1607 Code cleanup: Generalize call_site.parameter key.
1608 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1609 variable dwarf_reg. New variable kind_u. Update parameters to
1610 push_dwarf_reg_entry_value.
1611 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1612 * dwarf2expr.h (enum call_site_parameter_kind)
1613 (union call_site_parameter_u): Forward declarations.
1614 (struct dwarf_expr_context_funcs): Update parameters and their
1615 description for push_dwarf_reg_entry_value.
1616 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1617 * dwarf2loc.c (call_site_parameter_matches): New function.
1618 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1619 description. Use call_site_parameter_matches.
1620 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1621 Update parameters and their description.
1622 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1623 New variable kind_u. Adjust the caller for updated parameters.
1624 (needs_dwarf_reg_entry_value): Update parameters.
1625 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1626 instead of attr. Update for the changed fields of struct
1627 call_site_parameter.
1628 * gdbtypes.h: Include dwarf2expr.h.
1629 (enum call_site_parameter_kind): New.
1630 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1631 fb_offset into new union u.
1633 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1635 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1636 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1639 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1641 * amd64-linux-nat.c (compat_x32_clock_t): New.
1642 (compat_x32_siginfo_t): Likewise.
1643 (compat_x32_siginfo_from_siginfo): Likewise.
1644 (siginfo_from_compat_x32_siginfo): Likewise.
1645 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1646 and siginfo_from_compat_x32_siginfo for x32.
1648 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
1650 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1652 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1654 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1655 instead of gdbarch_ptr_bit.
1656 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1657 (amd64_supply_native_gregset): Likewise.
1658 (amd64_collect_native_gregset): Likewise.
1659 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1660 (amd64_supply_xsave): Likewise.
1661 (amd64_collect_fxsave): Likewise.
1662 (amd64_collect_xsave): Likewise.
1664 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1666 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1667 (amd64_linux_read_description): Check DS segment register for
1670 2012-06-15 Tom Tromey <tromey@redhat.com>
1672 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1673 init_cutu_and_read_dies.
1675 2012-06-15 Iain Sandoe <iain@codesourcery.com>
1677 * MAINTAINERS (Write After Approval): Add myself to the list.
1679 2012-06-15 Tom Tromey <tromey@redhat.com>
1681 * valops.c (value_find_oload_method_list): Now static.
1682 * value.h (value_find_oload_method_list): Don't declare.
1684 2012-06-15 Tom Tromey <tromey@redhat.com>
1686 * valops.c (find_overload_match): Use value_ind.
1688 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1690 * infrun.c (handle_inferior_event): Correct indentation.
1692 2012-06-14 Doug Evans <dje@google.com>
1694 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1695 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1697 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1698 updated. Handle DEBUG_LOC_START_LENGTH.
1699 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1700 (loclist_describe_location): Ditto.
1702 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1705 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1706 after hiding inline functions.
1708 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1710 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1711 _initialize_inf_ttrace.
1713 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1715 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1716 _initialize_hppa_hpux_nat.
1718 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1720 * remote-sim.c (sim_command_completer): Change type of return
1721 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1723 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1724 Jan Kratochvil <jan.kratochvil@redhat.com>
1727 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1728 stack on a 16-byte boundary.
1730 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
1732 * jit.c (finalize_symtab): Set function's return type to 'void' by
1735 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1736 H.J. Lu <hongjiu.lu@intel.com>
1738 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1739 Move bits common to both the classic LP64 and the new x32 ILP32
1741 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1742 (amd64_x32_linux_init_abi): New function.
1743 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1746 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1747 * i386-tdep.c (i386_pseudo_register_name): Make public.
1748 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1749 * amd64-tdep.c (amd64_dword_names): Add "eip".
1750 (amd64_x32_pseudo_register_type): New function
1751 (amd64_x32_init_abi): New function.
1753 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1756 * inferior.h (struct inferior_suspend_state): Comment out.
1757 (struct inferior): Comment out the field suspend.
1758 * infrun.c (struct infcall_suspend_state): Comment out the field
1760 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1763 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1765 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1766 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1767 function comment. Return ERROR for unresolved cases. Implement
1768 returning proper NAME.
1769 (yylex): Accept also NAME from classify_inner_name.
1770 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1771 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1773 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1775 2012-06-13 Tom Tromey <tromey@redhat.com>
1777 * breakpoint.c (condition_completer): New function.
1778 (_initialize_breakpoint): Use it.
1779 * value.c (complete_internalvar): New function.
1780 * value.h (complete_internalvar): Declare.
1782 2012-06-13 Tom Tromey <tromey@redhat.com>
1784 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1785 * breakpoint.c (catch_syscall_completer): Return a VEC.
1786 * cli/cli-cmds.c (complete_command): Update.
1787 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1788 (complete_on_enum): Likewise.
1789 * command.h: Include gdb_vecs.h.
1790 (completer_ftype): Change return type.
1791 (complete_on_cmdlist, complete_on_enum): Likewise.
1792 * completer.c (noop_completer, filename_completer)
1793 (location_completer): Return a VEC.
1794 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1796 (expression_completer, complete_line_internal, complete_line)
1797 (command_completer): Return a VEC.
1798 (gdb_completion_word_break_characters, line_completion_function):
1800 * completer.h: Include gdb_vecs.h.
1801 (complete_line, noop_completer, filename_completer)
1802 (expression_completer, location_completer, command_completer):
1804 * f-lang.c (f_word_break_characters): Return a VEC.
1805 * interps.c (interpreter_completer): Return a VEC.
1806 * language.h (struct language_defn)
1807 <la_make_symbol_completion_list>: Return a VEC.
1808 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1809 * symtab.c (free_completion_list): Take a VEC.
1810 (return_val_size, return_val_index): Remove.
1811 (return_val): Now a VEC.
1812 (completion_list_add_name): Update.
1813 (default_make_symbol_completion_list_break_on)
1814 (default_make_symbol_completion_list, make_symbol_completion_list)
1815 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1817 (add_filename_to_list): Update.
1818 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1820 (maybe_add_partial_symtab_filename): Update.
1821 (make_source_files_completion_list): Return a VEC.
1822 * symtab.h (default_make_symbol_completion_list_break_on)
1823 (default_make_symbol_completion_list, make_symbol_completion_list)
1824 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1825 (make_source_files_completion_list): Update.
1827 2012-06-13 Tom Tromey <tromey@redhat.com>
1829 * breakpoint.c (add_catch_command): Use completer_ftype.
1830 * breakpoint.h: Include command.h.
1831 (add_catch_command): Use completer_ftype.
1832 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1833 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1834 Use completer_ftype.
1835 * command.h (completer_ftype): New typedef.
1836 (set_cmd_completer): Use it.
1837 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1840 2012-06-13 Pedro Alves <palves@redhat.com>
1842 Partial revert of previous change.
1844 * serial.c (scb_base): New global.
1845 (serial_for_fd): New.
1846 (serial_open, serial_fdopen_ops): Link new serial in open serials
1848 (do_serial_close): Unlink serial from the open serials chain.
1850 2012-06-12 Pedro Alves <palves@redhat.com>
1852 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
1854 (prepare_for_detach): No longer context switch here in non-stop
1856 (fetch_inferior_event): Ditto.
1857 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
1858 to the event thread before removing breakpoints. Switch to the
1859 event thread before inserting breakpoints and resuming.
1860 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
1861 event thread before resuming.
1862 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
1863 Switch to the event thread before removing breakpoints.
1865 2012-06-12 Eli Zaretskii <eliz@gnu.org>
1867 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
1868 special characters correctly for the Windows shells. See
1869 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
1871 [!__MINGW32__]: Remove extra double quote character from special
1874 2012-06-11 Stan Shebs <stan@codesourcery.com>
1876 * ui-out.h: Remove #if 0 declarations.
1877 * ui-out.c: Remove #if 0 functions.
1879 2012-06-11 Pedro Alves <palves@redhat.com>
1881 * ser-base.c (run_async_handler_and_reschedule): New.
1882 (fd_event, push_event): Use it.
1883 * serial.c (serial_open, serial_fdopen_ops): Set the initial
1884 reference count to 1.
1885 (do_serial_close): Set the bufp field to NULL. Use serial_unref
1887 (serial_is_open, serial_ref, serial_unref): New.
1888 * serial.h (serial_open): Adjust comment.
1889 (serial_is_open): Declare.
1890 (serial_close): Adjust comment.
1891 (serial_ref, serial_unref) Declare.
1892 (struct serial): New field 'refcnt'.
1894 2012-06-11 Pedro Alves <palves@redhat.com>
1896 Remove #if 0'd "connect" command, and unnecessary associated
1897 refcounting and serial reuse bits.
1899 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
1900 * serial.c (last_serial_opened): Delete.
1902 (serial_open): Adjust.
1903 (serial_for_fd): Delete.
1904 (serial_fdopen_ops, do_serial_close): Adjust.
1905 (serial_fdopen_ops): Adjust.
1907 2012-06-11 Pedro Alves <palves@redhat.com>
1909 * serial.c (do_serial_close): Remove early return when SCB is
1912 2012-06-11 Tom Tromey <tromey@redhat.com>
1914 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
1916 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1918 Fix regression by the "ambiguous linespec" series.
1919 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
1920 get_last_displayed_symtab and get_last_displayed_line and depending
1923 2012-06-11 Tom Tromey <tromey@redhat.com>
1925 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
1926 (dw2_find_symbol_file): Use it.
1928 2012-06-11 Michael Eager <eager@eagercon.com>
1930 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
1931 * mips-linux-tdep.h (mips_signals): New
1933 2012-06-11 Tom Tromey <tromey@redhat.com>
1935 * infrun.c (handle_inferior_event)
1936 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
1938 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
1939 exception logic in all cases. Update comments.
1940 (insert_longjmp_resume_breakpoint): Set the exception resume
1943 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
1945 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
1947 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
1949 * valarith.c (binop_types_user_defined_p): Fix a typo.
1951 2012-06-08 Yao Qi <yao@codesourcery.com>
1952 Chung-Lin Tang <cltang@codesourcery.com>
1954 * arch-utils.c (default_return_in_first_hidden_param_p): New.
1955 * arch-utils.h: Declare.
1956 * gdbarch.sh: Add return_in_first_hidden_param_p.
1957 * gdbarch.c, gdbarch.h: Regenerated.
1958 * infcall.c (call_function_by_hand): Call
1959 gdbarch_return_in_first_hidden_param_p instead of
1960 language_pass_by_reference.
1962 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
1963 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
1964 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
1965 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
1966 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
1967 `cplus_return_struct_by_reference'.
1968 (tic6x_return_value): Handle language cplusplus.
1969 (tic6x_return_in_first_hidden_param_p): New.
1970 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
1972 2012-06-07 Doug Evans <dje@google.com>
1974 * dwarf2read.c (dwarf2_cu): Add comment.
1976 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1978 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
1980 (mips_eabi_push_dummy_call): Likewise.
1981 (mips_n32n64_push_dummy_call): Likewise.
1982 (mips_o32_push_dummy_call): Likewise.
1983 (mips_o64_push_dummy_call): Likewise.
1985 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1987 * mips-tdep.c (mips_convert_register_p): Correct coding style.
1989 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1991 * mips-tdep.c (mips_pseudo_register_type): Use
1992 mips_float_register_p.
1994 2012-06-06 Pedro Alves <palves@redhat.com>
1996 * infrun.c (handle_inferior_event): Remove calls to
1997 reinit_frame_cache that follow a context_switch call.
1999 2012-06-06 Pedro Alves <palves@redhat.com>
2001 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
2002 context_switch and remove stale comment.
2004 2012-06-06 Pedro Alves <palves@redhat.com>
2006 * infrun.c (struct execution_control_state): Remove
2007 `new_thread_event' field.
2008 (handle_inferior_event): Simplify new threads handling; don't
2009 resume the inferior if we find a new thread.
2011 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
2013 * NEWS: Document the deprecation of SH's 'regs' command.
2014 * inferior.h (all_registers_info): Add function declaration.
2015 * sh-tdep.c (sh_show_regs): Remove variable.
2016 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2017 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2018 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2019 (sh_show_regs_command): Remove functions.
2020 (sh_gdbarch_init): Don't set sh_show_regs.
2021 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2022 'info all-registers'.
2023 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2024 (sh64_show_regs): Remove functions.
2025 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2027 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2029 * configure.ac: Move development=true below AC_INIT.
2030 * configure: Regenerate.
2032 2012-06-05 Stan Shebs <stan@codesourcery.com>
2034 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2037 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2039 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2040 argument as ssize_t.
2041 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2042 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2043 * target.c (target_read_stack, target_write_memory)
2044 (target_write_raw_memory): Likewise.
2045 * target.h (target_read_stack, target_write_memory)
2046 (target_write_raw_memory): Likewise.
2048 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2050 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2051 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2052 * target.c (target_read_memory): Change LEN to ssize_t.
2053 * target.h (target_read_memory): Change LEN to ssize_t.
2055 2012-06-05 Pedro Alves <palves@redhat.com>
2059 * breakpoint.c (until_break_command): Only fetch the selected
2060 frame after decode_line_1.
2062 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2064 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2065 event breakpoint at _start, __start or main if a program
2066 interpreter is not found.
2068 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2070 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2072 * windows-tdep.c: #include "objfiles.h".
2073 (windows_iterate_over_objfiles_in_search_order): New function.
2074 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2075 iterate_over_objfiles_in_search_order gdbarch method to
2076 windows_iterate_over_objfiles_in_search_order.
2077 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2079 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2081 * gdbarch.sh: Add generation of
2082 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2083 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2084 (iterate_over_objfiles_in_search_order): New gdbarch method.
2085 * gdbarch.h, gdbarch.c: Regenerate.
2086 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2088 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2090 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2091 out of lookup_symbol_aux_symtabs.
2092 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2093 call to lookup_symbol_aux_objfile.
2094 (struct global_sym_lookup_data): New type.
2095 (lookup_symbol_global_iterator_cb): New function.
2096 (lookup_symbol_global): Search for symbol using
2097 gdbarch_iterate_over_objfiles_in_search_order and
2098 lookup_symbol_global_iterator_cb.
2099 * findvar.c (struct minsym_lookup_data): New type.
2100 (minsym_lookup_iterator_cb): New function.
2101 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2102 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2103 and minsym_lookup_iterator_cb.
2105 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2107 Revert the following patch:
2108 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2109 try locating the symbol in the symbol's own objfile first, before
2110 extending the search to all objfiles.
2111 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2112 out of lookup_symbol_aux_symtabs.
2113 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2114 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2115 Do not search EXCLUDE_OBJFILE.
2116 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2117 (lookup_symbol_global): Search for matches in the block's objfile
2118 first, before searching all other objfiles.
2120 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2122 * breakpoint.c (find_condition_and_thread): Stop parsing
2123 as soon as the first invalid keyword is found.
2125 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2127 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2129 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2131 * config/djgpp/djcheck.sh: Add copyright header.
2133 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2135 * copyright.py (update_files, main): Fix path to update-copyright
2138 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2140 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2141 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2142 for which a reminder to update by hand is printed.
2144 2012-06-04 Doug Evans <dje@google.com>
2146 * buildsym.c (make_blockvector): Add comment.
2148 2012-06-04 Pedro Alves <palves@redhat.com>
2150 * arch-utils.c (default_gdb_signal_from_target): Delete.
2151 * arch-utils.h (default_gdb_signal_from_target): Delete.
2152 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2153 gdbarch_gdb_signal_from_target_p.
2154 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2156 * gdbarch.h: Regenerate.
2157 * gdbarch.c: Regenerate.
2159 2012-06-04 Pedro Alves <palves@redhat.com>
2161 * gdbarch.sh (gdb_signal_from_target): Mention that the
2162 implementation of the method must be host independent.
2163 * gdbarch.h: Regenerate.
2165 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2167 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2169 (target_read_memory_bfd): New function.
2170 (symbol_file_add_from_memory): Use it.
2172 2012-06-03 Doug Evans <dje@google.com>
2174 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2176 (basic_lookup_transparent_type): Ditto.
2178 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2179 (ALL_PRIMARY_SYMTABS): Use it.
2180 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2181 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2182 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2183 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2184 (basic_lookup_transparent_type): Ditto.
2186 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2188 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2189 it to optimize resolution of demangled name.
2191 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2193 * configure.ac (development): Define new variable.
2194 Call AC_CHECK_LIB for mcheck if $development.
2195 (ERROR_ON_WARNING): Enable it by default only if $development.
2196 * config.in: Regenerate.
2197 * configure: Regenerate.
2199 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2201 * target.c (target_read_memory): Make LEN argument as size_t.
2202 * target.h (target_read_memory): Likewise.
2204 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2206 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2208 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2210 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2211 BookE interface for PowerPC server processors if not available
2212 in the Linux Kernel.
2214 2012-05-31 Keith Seitz <keiths@redhat.com>
2216 * linespec.c (decode_objc): Add cleanup to free
2218 (find_linespec_symbols): Add cleanup to free CLASSES.
2219 * symfile.c (find_separate_debug_file_by_debuglink): Add
2220 cleanup to free DEBUGLINK.
2221 * ui-out.c (clear_header_list): No need to check if
2222 HEADER_NEXT.COLHDR is NULL.
2223 Free HEADER_NEXT.COL_NAME.
2225 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2227 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2230 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2232 * configure.host (gdb_host_cpu): Handle tilegx*.
2233 (gdb_host): Handle tilegx-*-linux*.
2234 * tilegx-linux-nat.c: New file.
2235 * config/tilegx/linux.mh: New file.
2237 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2239 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2240 tilegx-linux-tdep.o.
2241 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2242 tilegx-linux-tdep.c.
2243 * configure.tgt: Handle tilegx-*-linux*.
2244 * tilegx-tdep.h: New file.
2245 * tilegx-tdep.c: New file.
2246 * tilegx-linux-tdep.c: New file.
2247 * regformats/reg-tilegx.dat: New file.
2249 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2251 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2252 accounting of hw watchpoints on ppc.
2254 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2256 * source.c (openp): Expand tilde in path entries.
2258 2012-05-29 Doug Evans <dje@google.com>
2260 * buildsym.c (block_compar): Fix comment.
2261 (end_symtab): Fix and clarify some comments.
2263 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2264 cleanup_undefined_types.
2265 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2266 All callers updated.
2268 2012-05-29 Tom Tromey <tromey@redhat.com>
2270 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2272 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2273 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2275 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2278 2012-05-29 Tristan Gingold <gingold@adacore.com>
2280 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2281 (struct darwin_info): ... New struct.
2282 (solib_darwin_pspace_data): New variable.
2283 (darwin_pspace_data_cleanup): New function.
2284 (get_darwin_info): Likewise.
2285 (darwin_dyld_version_ok, darwin_load_image_infos)
2286 (darwin_solib_get_all_image_info_addr_at_init)
2287 (darwin_solib_read_all_image_info_addr): Add info argument.
2289 (darwin_current_sos): Use per pspace structure.
2290 (darwin_solib_create_inferior_hook): Likewise.
2291 (darwin_clear_solib): Likewise.
2292 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2294 2012-05-28 Pedro Alves <palves@redhat.com>
2296 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2297 block that uses them. Clear ecss before handling each event.
2299 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2301 * solib-svr4.c (svr4_current_sos): New comment on
2302 svr4_current_sos_via_xfer_libraries fall back.
2304 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2306 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2307 it as a fallback for TYPE_IS_OPAQUE.
2308 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2309 symbols for lookup_symbol.
2311 2012-05-24 John Steele Scott <toojays@toojays.net>
2313 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2314 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2315 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2316 (check_producer): ... this new function, which also checks for ICC
2317 and caches the result.
2318 (producer_is_icc): New function.
2319 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2322 2012-05-24 Pedro Alves <palves@redhat.com>
2326 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2327 (default_gdb_signal_to_target): ... this. Add comment.
2328 (default_gdb_signal_from_host): Rename to ...
2329 (default_gdb_signal_from_target): ... this. Add comment.
2330 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2331 (default_gdb_signal_to_target): ... this.
2332 (default_gdb_signal_from_host): Rename to ...
2333 (default_gdb_signal_from_target): ... this.
2334 * corelow.c (core_open): Adjust to naming change. Replace comment.
2335 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2336 (gdb_signal_from_target): ... this. Adjust to
2337 default_gdb_signal_from_host naming change. Extend comment.
2338 (gdb_signal_to_host): Rename to ...
2339 (gdb_signal_to_target): ... this. Adjust to
2340 default_gdb_signal_to_host naming change.
2341 * gdbarch.h, gdbarch.c: Renegerate.
2343 2012-05-24 Pedro Alves <palves@redhat.com>
2347 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2349 2012-05-24 Pedro Alves <palves@redhat.com>
2353 Replace target_signal with gdb_signal throughout.
2355 2012-05-24 Pedro Alves <palves@redhat.com>
2359 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2360 string, instead of reusing the va_list argument.
2362 2012-05-24 Tom Tromey <tromey@redhat.com>
2364 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2367 2012-05-23 Doug Evans <dje@google.com>
2369 * symtab.c (search_symbols): Formatting fixes.
2370 (print_symbol_info): Formatting fixes.
2372 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2373 int64_t change to leb128 API.
2374 (read_encoded_value, decode_frame_entry_1): Ditto.
2375 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2376 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2377 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2378 (execute_stack_op): Ditto.
2379 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2380 (safe_read_uleb128, safe_read_sleb128): Ditto.
2381 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2382 (dwarf2_compile_expr_to_ax): Ditto.
2383 (locexpr_describe_location_piece): Ditto.
2384 (disassemble_dwarf_expression): Ditto.
2385 (locexpr_describe_location_1): Ditto.
2387 2012-05-23 Stan Shebs <stan@codesourcery.com>
2388 Kwok Cheung Yeung <kcy@codesourcery.com>
2390 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2391 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2392 (mi-cmd-info.o): New rule.
2393 * osdata.h (info_osdata_command): New declaration.
2394 * osdata.c (info_osdata_command): Change to non-static.
2395 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2396 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2397 * mi/mi-cmd-info.c: New file.
2399 2012-05-23 Doug Evans <dje@google.com>
2401 * symtab.c (search_symbols): Pass NULL for file_matcher to
2402 expand_symtabs_matching if there are no files to match.
2404 * gdbtypes.c (lookup_typename): Simplify.
2406 2012-05-23 Pedro Alves <palves@redhat.com>
2408 * arch-utils.h (default_target_signal_to_host): Delete.
2409 * arch-utils.c (default_target_signal_to_host): Delete.
2410 * gdbarch.sh (target_signal_to_host): Remove.
2411 * gdbarch.h, gdbarch.c: Regenerate.
2413 2012-05-22 Doug Evans <dje@google.com>
2415 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2417 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2418 (execute_cfa_program): Update to match API of leb128 functions.
2419 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2421 (read_unsigned_leb128, read_signed_leb128): Delete.
2422 (read_initial_length): Change type of buf argument to
2424 (read_encoded_value): Update to match API of leb128 functions.
2425 (decode_frame_entry): Change result to "const gdb_byte *", and
2426 similarly for "start" parameter.
2427 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2428 (dwarf2_build_frame_info): Change local frame_ptr to
2430 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2431 read_uleb128, read_sleb128. All callers updated.
2432 (safe_skip_leb128): New function.
2433 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2434 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2435 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2436 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2437 read_uleb128, read_sleb128.
2438 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2439 (execute_stack_op): Update to match API of leb128 functions.
2440 * dwarf2expr.h: #include "leb128.h".
2441 (read_uleb128, read_sleb128): Delete.
2442 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2443 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2444 * dwarf2loc.c (debug_loc_kind): New enum.
2445 (decode_debug_loc_addresses): New function.
2446 (decode_debug_loc_dwo_addresses): New function.
2447 (dwarf2_find_location_expression): Rewrite.
2448 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2449 (locexpr_describe_location_piece): Ditto.
2450 (disassemble_dwarf_expression): Ditto.
2451 (locexpr_describe_location_1): Ditto.
2452 (loclist_describe_location): Rewrite.
2453 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2454 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2455 (dwarf2_section_buffer_overflow_complaint): Renamed from
2456 dwarf2_macros_too_long_complaint. All callers updated.
2457 (skip_leb128): Delete.
2458 (init_cu_die_reader): Initialize reader->buffer_end.
2459 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2460 (skip_form_bytes): New arg buffer_end. All callers updated.
2461 Replace call to skip_leb128 with gdb_skip_leb128.
2462 (skip_unknown_opcode): New arg mac_end. All callers updated.
2463 (fill_in_loclist_baton): Initialize baton->from_dwo.
2465 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2467 * mips-linux-nat.c (mips_linux_read_description): Use a more
2468 verbose error message.
2470 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2472 * NEWS: Add MIPS/Linux DSP support.
2473 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2474 (SIGCONTEXT_DSPCTL): New macro.
2475 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2476 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2477 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2478 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2479 (N64_SIGCONTEXT_HI3): Likewise.
2480 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2481 (N64_SIGCONTEXT_LO3): Likewise.
2482 (N64_SIGCONTEXT_DSPCTL): Likewise.
2483 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2484 (mips_linux_o32_sigframe_init): Handle DSP registers.
2485 (mips_linux_n32n64_sigframe_init): Likewise.
2487 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2489 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2492 2012-05-22 Pedro Alves <palves@redhat.com>
2494 * target.h (store_waitstatus): Move declaration ...
2495 * inf-child.h (store_waitstatus): ... here.
2496 * target.c: Move inclusion of gdb_wait.h, and ...
2497 (store_waitstatus): ... this ...
2498 * inf-child.c: ... here.
2499 * linux-nat.c: Include inf-child.h.
2500 * rs6000-nat.c: Include inf-child.h.
2501 * spu-linux-nat.c: Include inf-child.h.
2503 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2505 * tracepoint.c (start_tracing): Add missing i18n markup.
2506 (stop_tracing, set_trace_user): Ditto.
2507 (set_trace_notes, set_trace_stop_notes): Ditto.
2509 2012-05-21 Tom Tromey <tromey@redhat.com>
2512 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2514 * value.h (value_cast_pointers): Update.
2515 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2516 (value_cast): Update.
2517 (update_search_result): New function.
2518 (do_search_struct_field): New, from search_struct_field. Check
2519 for ambiguous results.
2520 (search_struct_field): Rewrite.
2521 * infcall.c (value_arg_coerce): Update.
2522 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2523 value_cast_pointers.
2524 * ada-lang.c (ada_convert_actual): Update.
2526 2012-05-21 Tom Tromey <tromey@redhat.com>
2528 * macroexp.c (macro_stringify): Terminate the string.
2530 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2532 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2534 * auto-load.c (auto_load_expand_dir_vars): New function.
2535 (auto_load_safe_path_vec_update): Use it, remove the
2536 substitute_path_component call thanks to it.
2537 (auto_load_objfile_script): Remove the debug_file_directory processing.
2538 Use auto_load_expand_dir_vars, remove the substitute_path_component
2540 * configure: Regenerate.
2541 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2542 path. Escape $ also for $debugdir.
2543 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2544 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2546 2012-05-20 Doug Evans <dje@google.com>
2548 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2549 before use. Check for symtab->includes == NULL before scanning it.
2551 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2553 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2555 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2557 * NEWS: Add microMIPS support and "set mips compression",
2558 "show mips compression" commands.
2559 * mips-tdep.h (mips_isa): New enum.
2560 (gdbarch_tdep): Add mips_isa.
2561 (mips_pc_is_mips16): Update prototype.
2562 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2563 * mips-tdep.c (mips_compression_mips16): New variable.
2564 (mips_compression_micromips): Likewise.
2565 (mips_compression_strings): Likewise.
2566 (mips_compression_string): Likewise.
2567 (is_mips16_isa, is_micromips_isa): New functions.
2568 (is_mips16_addr): Rename to...
2569 (is_compact_addr): ... this.
2570 (unmake_mips16_addr): Likewise to...
2571 (unmake_compact_addr): ... this.
2572 (make_mips16_addr): Likewise to...
2573 (make_compact_addr): ... this.
2574 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2576 (mips_elf_make_msymbol_special): Handle microMIPS code.
2577 (msymbol_is_special): Rename to...
2578 (msymbol_is_mips16): ... this.
2579 (mips_make_symbol_special, mips_pc_is_mips16): Update
2581 (msymbol_is_mips, msymbol_is_micromips): New functions.
2582 (mips16_to_32_reg): Rename to...
2583 (mips_reg3_to_reg): ... this.
2584 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2585 (mips_pc_isa): Likewise.
2586 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2588 (mips_fetch_instruction): Pass return status instead of printing
2589 an error message if requested. Handle microMIPS code. Bail out
2591 (micromips_op): New macro.
2592 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2593 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2594 (b6s4_op, b7s3_reg): Likewise.
2595 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2596 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2597 (mips_insn_size): New function.
2598 (mips32_next_pc): Update mips_fetch_instruction call.
2599 (micromips_relative_offset7): New function.
2600 (micromips_relative_offset10): Likewise.
2601 (micromips_relative_offset16): Likewise.
2602 (micromips_pc_insn_size): Likewise.
2603 (micromips_bc1_pc): Likewise.
2604 (micromips_next_pc): Likewise.
2605 (unpack_mips16): Update mips_fetch_instruction call.
2606 (extended_mips16_next_pc): Update according to change to
2608 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2610 (mips16_scan_prologue): Update mips_fetch_instruction call.
2611 Update according to change to mips16_to_32_reg.
2612 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2613 (mips_insn16_frame_base_sniffer): Likewise.
2614 (micromips_decode_imm9): New function.
2615 (micromips_scan_prologue): Likewise.
2616 (mips_micro_frame_cache): Likewise.
2617 (mips_micro_frame_this_id): Likewise.
2618 (mips_micro_frame_prev_register): Likewise.
2619 (mips_micro_frame_sniffer): Likewise.
2620 (mips_micro_frame_unwind): New variable.
2621 (mips_micro_frame_base_address): New function.
2622 (mips_micro_frame_base): New variable.
2623 (mips_micro_frame_base_sniffer): New function.
2624 (mips32_scan_prologue): Update mips_fetch_instruction call.
2625 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2626 rather than for MIPS16.
2627 (mips_insn32_frame_base_sniffer): Likewise.
2628 (mips_addr_bits_remove): Handle microMIPS code.
2629 (deal_with_atomic_sequence): Rename to...
2630 (mips_deal_with_atomic_sequence): ... this. Update the type
2631 of the variable used to hold an instruction. Remove the ISA bit
2632 check. Update mips_fetch_instruction call.
2633 (micromips_deal_with_atomic_sequence): New function.
2634 (deal_with_atomic_sequence): Likewise.
2635 (mips_about_to_return): Handle microMIPS code. Update
2636 mips_fetch_instruction call.
2637 (heuristic_proc_start): Check for the standard MIPS ISA rather
2638 than for MIPS16. Update mips_pc_is_mips16 and
2639 mips_fetch_instruction calls. Handle microMIPS code.
2640 (mips_push_dummy_code): Handle microMIPS code.
2641 (mips_eabi_push_dummy_call): Likewise.
2642 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2643 (mips_o64_push_dummy_call): Handle microMIPS code.
2644 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2645 (is_delayed): Remove function.
2646 (mips_single_step_through_delay): Replace the call to is_delayed
2647 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2648 Handle microMIPS code.
2649 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2651 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2653 (micromips_in_function_epilogue_p): New function.
2654 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2656 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2658 (gdb_print_insn_mips): Likewise.
2659 (mips_breakpoint_from_pc): Likewise.
2660 (mips_remote_breakpoint_from_pc): New function.
2661 (mips32_instruction_has_delay_slot): Simplify making use of the
2662 updated mips_fetch_instruction interface.
2663 (micromips_instruction_has_delay_slot): New function.
2664 (mips16_instruction_has_delay_slot): Simplify making use of the
2665 updated mips_fetch_instruction interface.
2666 (mips_adjust_breakpoint_address): Check for the standard MIPS
2667 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2668 calls. Handle microMIPS code.
2669 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2670 (mips_skip_trampoline_code): Handle microMIPS code.
2671 (global_mips_compression): New function.
2672 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2673 file flags. Register the microMIPS remote breakpoint handler
2674 and heuristic frame unwinder.
2675 (show_mips_compression): New function.
2676 (_initialize_mips_tdep): Add the "set mips compression" and
2677 "show mips compression" commands.
2679 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2684 * amd64-darwin-tdep.c:
2685 * arm-symbian-tdep.c:
2689 * bfin-linux-tdep.c:
2696 * dwarf2-frame-tailcall.c:
2725 * microblaze-tdep.c:
2726 * mips-linux-tdep.c:
2734 * python/py-finishbreakpoint.c:
2735 * python/py-inferior.c:
2736 * python/py-infthread.c:
2740 * remote-m32r-sdi.c:
2744 * rs6000-aix-tdep.c:
2770 * amd64-darwin-tdep.c:
2771 * arm-symbian-tdep.c:
2772 * arm-tdep.c: Delete unused variables.
2774 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2776 Rename $ddir to $datadir.
2777 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2778 * auto-load.c (auto_load_safe_path_vec_update)
2779 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2780 * configure: Regenerate.
2781 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2782 Likewise. Remove the 'use $ddir' help string.
2784 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2786 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2787 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2789 2012-05-18 Tom Tromey <tromey@redhat.com>
2792 * valprint.h (struct value_print_options) <symbol_print>: New
2794 * valprint.c (user_print_options): Add default for symbol_print.
2795 (show_symbol_print): New function.
2796 (generic_val_print): Respect symbol_print.
2797 (_initialize_valprint): Add "print symbol" setting.
2798 * f-valprint.c (f_val_print): Respect symbol_print.
2799 * c-valprint.c (c_val_print): Respect symbol_print.
2801 * printcmd.c (print_address_symbolic): Return int. Ignore some
2803 (print_address_demangle): Return int.
2804 * defs.h: (print_address_symbolic): Return int.
2805 * value.h (print_address_demangle): Return int.
2807 2012-05-18 Tom Tromey <tromey@redhat.com>
2809 * valprint.c (val_print_string): Don't print leading space.
2810 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2811 print space before string or vtbl.
2812 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2814 * jv-valprint.c (java_value_print): Print space before string.
2815 * go-valprint.c (print_go_string): Print space before string.
2816 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2817 space before string.
2818 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2819 space before string or vtbl.
2820 * auxv.c (fprint_target_auxv): Print space after address.
2822 2012-05-18 Tom Tromey <tromey@redhat.com>
2824 * printcmd.c (print_address_demangle): Remove special case for 0.
2826 2012-05-18 Tom Tromey <tromey@redhat.com>
2828 * printcmd.c (print_address_demangle): Add 'opts' argument.
2829 * p-valprint.c (pascal_val_print): Update.
2830 * jv-valprint.c (java_val_print): Update.
2832 * valprint.c (generic_val_print): Update.
2833 (print_function_pointer_address): Add 'options' argument. Remove
2834 'addressprint' argument. Update.
2835 * m2-valprint.c (print_unpacked_pointer): Update.
2836 * gnu-v3-abi.c (print_one_vtable): Update.
2837 (gnuv3_print_method_ptr): Update.
2838 * f-valprint.c (f_val_print): Update.
2839 * cp-valprint.c (cp_print_value_fields): Update.
2840 * valprint.h (print_function_pointer_address): Update.
2841 * c-valprint.c (c_val_print): Update.
2843 2012-05-18 Tom Tromey <tromey@redhat.com>
2845 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2846 directly corresponding to the found psymtab.
2847 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2848 (dw2_find_pc_sect_symtab): Use it.
2849 * block.h (blockvector_contains_pc): Declare.
2850 * block.c (find_block_in_blockvector): New function.
2851 (blockvector_for_pc_sect): Use it.
2852 (blockvector_contains_pc): New function.
2854 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2856 * mips-tdep.h (mips_write_pc): New prototype.
2857 * mips-tdep.c (mips_write_pc): Make external, add description.
2858 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
2861 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2863 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
2865 (mips_unwind_pc, mips_write_pc): Likewise.
2866 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
2869 2012-05-17 Joel Brobecker <brobecker@adacore.com>
2871 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
2872 proc_warn, proc_error, proc_get_status, proc_flags,
2873 proc_why, proc_what, proc_nsysarg, proc_sysargs,
2874 proc_set_run_on_last_close, proc_unset_run_on_last_close,
2875 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
2876 proc_stop_process, proc_wait_for_stop, proc_run_process,
2877 proc_set_traced_signals, proc_set_traced_faults,
2878 proc_set_traced_sysentry, proc_set_traced_sysexit,
2879 proc_set_held_signals, proc_get_held_signals,
2880 proc_get_traced_signals, proc_get_traced_faults,
2881 proc_get_traced_sysentry, proc_get_traced_sysexit,
2882 proc_clear_current_fault, proc_set_current_signal,
2883 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
2884 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
2885 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
2886 proc_get_current_thread, proc_get_current_thread,
2887 proc_get_current_thread, proc_update_threads,
2888 proc_update_threads, proc_update_threads, proc_update_threads,
2889 proc_iterate_over_threads, procfs_find_new_threads,
2890 procfs_pid_to_str): Make static. Remove advance declaration.
2891 (proc_cursig): Make static. Conditionalized defintion on
2892 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
2893 (proc_syscall, proc_set_kill_on_last_close,
2894 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
2895 proc_get_pending_signals, proc_get_signal_actions,
2896 proc_trace_signal, proc_ignore_signal): Delete.
2898 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2900 * coffread.c (cs_section_address): Passing proper argument for
2901 `bfd_get_section_vma'.
2902 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
2903 `bfd_get_section_flags'.
2904 * remote.c (remote_trace_set_readonly_regions): Likewise, for
2905 `bfd_get_section_vma'.
2907 2012-05-16 Tom Tromey <tromey@redhat.com>
2910 * macrotab.h: (macro_define_special): Declare.
2911 (enum macro_special_kind): New.
2912 (struct macro_definition) <argc, replacement>: Update comments.
2913 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
2914 (macro_define_object_internal): New function.
2915 (macro_define_object): Use it.
2916 (macro_define_special): New function.
2917 (fixup_definition): New function.
2918 (macro_lookup_definition, foreach_macro_in_scope)
2919 (foreach_macro): Use fixup_definition.
2920 * macroexp.h (macro_stringify): Declare.
2921 * macroexp.c (free_buffer_return_text): New function.
2922 (stringify): Constify "arg".
2923 (macro_stringify): New function.
2924 * dwarf2read.c (macro_start_file): Call macro_define_special.
2926 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
2927 Maciej W. Rozycki <macro@mips.com>
2929 * breakpoint.h (bp_location): Add related_address member.
2930 * inferior.h (get_return_value): Take a pointer to struct value
2931 instead of struct type for the function requested.
2932 * value.h (using_struct_return): Likewise.
2933 * gdbarch.sh (return_value): Take a pointer to struct value
2934 instead of struct type for the function requested.
2935 * breakpoint.c (set_breakpoint_location_function): Initialize
2936 related_address for bp_gnu_ifunc_resolver breakpoints.
2937 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
2938 requested function's address to gdbarch_return_value.
2939 * eval.c (evaluate_subexp_standard): Pass the requested
2940 function's address to using_struct_return.
2941 * infcall.c (call_function_by_hand): Pass the requested
2942 function's address to using_struct_return and
2943 gdbarch_return_value.
2944 * infcmd.c (get_return_value): Take a pointer to struct value
2945 instead of struct type for the function requested.
2946 (print_return_value): Update accordingly.
2947 (finish_command_continuation): Likewise.
2948 * stack.c (return_command): Pass the requested function's
2949 address to using_struct_return and gdbarch_return_value.
2950 * value.c (using_struct_return): Take a pointer to struct value
2951 instead of struct type for the function requested. Pass the
2952 requested function's address to gdbarch_return_value.
2953 * python/py-finishbreakpoint.c (finish_breakpoint_object):
2954 New function_value member, replacing function_type.
2955 (bpfinishpy_dealloc): Update accordingly.
2956 (bpfinishpy_pre_stop_hook): Likewise.
2957 (bpfinishpy_init): Likewise. Record the requested function's
2959 * mips-tdep.c (mips_fval_reg): New enum.
2960 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
2961 words put in GP registers.
2962 (mips_o64_push_dummy_call): Update a comment.
2963 (mips_o32_return_value): Take a pointer to struct value instead
2964 of struct type for the function requested and use it to check if
2965 using the MIPS16 calling convention. Return the designated
2966 general purpose registers for floating-point values returned in
2968 (mips_o64_return_value): Likewise.
2969 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
2970 (ppc_sysv_abi_broken_return_value): Likewise.
2971 (ppc64_sysv_abi_return_value): Likewise.
2972 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
2973 value instead of struct type for the function requested.
2974 * amd64-tdep.c (amd64_return_value): Likewise.
2975 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
2976 * arm-tdep.c (arm_return_value): Likewise.
2977 * avr-tdep.c (avr_return_value): Likewise.
2978 * bfin-tdep.c (bfin_return_value): Likewise.
2979 * cris-tdep.c (cris_return_value): Likewise.
2980 * frv-tdep.c (frv_return_value): Likewise.
2981 * h8300-tdep.c (h8300_return_value): Likewise.
2982 (h8300h_return_value): Likewise.
2983 * hppa-tdep.c (hppa32_return_value): Likewise.
2984 (hppa64_return_value): Likewise.
2985 * i386-tdep.c (i386_return_value): Likewise.
2986 * ia64-tdep.c (ia64_return_value): Likewise.
2987 * iq2000-tdep.c (iq2000_return_value): Likewise.
2988 * lm32-tdep.c (lm32_return_value): Likewise.
2989 * m32c-tdep.c (m32c_return_value): Likewise.
2990 * m32r-tdep.c (m32r_return_value): Likewise.
2991 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
2992 * m68k-tdep.c (m68k_return_value): Likewise.
2993 (m68k_svr4_return_value): Likewise.
2994 * m88k-tdep.c (m88k_return_value): Likewise.
2995 * mep-tdep.c (mep_return_value): Likewise.
2996 * microblaze-tdep.c (microblaze_return_value): Likewise.
2997 * mn10300-tdep.c (mn10300_return_value): Likewise.
2998 * moxie-tdep.c (moxie_return_value): Likewise.
2999 * mt-tdep.c (mt_return_value): Likewise.
3000 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
3001 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
3002 (ppc_sysv_abi_broken_return_value): Likewise.
3003 (ppc64_sysv_abi_return_value): Likewise.
3004 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
3005 * rl78-tdep.c (rl78_return_value): Likewise.
3006 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
3007 * rx-tdep.c (rx_return_value): Likewise.
3008 * s390-tdep.c (s390_return_value): Likewise.
3009 * score-tdep.c (score_return_value): Likewise.
3010 * sh-tdep.c (sh_return_value_nofpu): Likewise.
3011 (sh_return_value_fpu): Likewise.
3012 * sh64-tdep.c (sh64_return_value): Likewise.
3013 * sparc-tdep.c (sparc32_return_value): Likewise.
3014 * sparc64-tdep.c (sparc64_return_value): Likewise.
3015 * spu-tdep.c (spu_return_value): Likewise.
3016 * tic6x-tdep.c (tic6x_return_value): Likewise.
3017 * v850-tdep.c (v850_return_value): Likewise.
3018 * vax-tdep.c (vax_return_value): Likewise.
3019 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3020 * xtensa-tdep.c (xtensa_return_value): Likewise.
3021 * gdbarch.c: Regenerate.
3022 * gdbarch.h: Regenerate.
3024 2012-05-15 Tom Tromey <tromey@redhat.com>
3026 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3028 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3030 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3031 of command in two error message.
3033 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3035 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3037 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3039 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3041 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3043 * NEWS (show auto-load scripts-directory): Add forgotten command.
3045 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3047 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3050 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3052 * amd64-tdep.c: Include features/i386/x32.c and
3053 features/i386/x32-avx.c.
3054 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3055 initialize_tdesc_x32_avx.
3057 2012-05-14 Stan Shebs <stan@codesourcery.com>
3060 * breakpoint.h (enum bptype): New type bp_dprintf.
3061 (struct breakpoint): New field extra_string.
3062 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3063 (create_breakpoint): Add extra_string arg.
3064 * breakpoint.c (dprintf_breakpoint_ops): New.
3065 (is_breakpoint): Add bp_dprintf.
3066 (bpstat_what): Add dprintf case.
3067 (bptype_string): Ditto.
3068 (print_one_breakpoint_location): Ditto.
3069 (init_bp_location): Ditto.
3070 (bkpt_print_mention): Ditto.
3071 (dprintf_style_enums): New array.
3072 (dprintf_style): New global.
3073 (dprintf_function): New global.
3074 (dprintf_channel): New global.
3075 (update_dprintf_command_list): New function.
3076 (update_dprintf_commands): New function.
3077 (init_breakpoint_sal): Add extra_string argument, handle it.
3078 (create_breakpoint_sal): Add extra_string argument.
3079 (create_breakpoints_sal): Add extra_string argument, update callers.
3080 (find_condition_and_thread): Add extra argument.
3081 (create_breakpoint): Add extra_string argument, record it.
3082 (dprintf_command): New function.
3083 (break_command_1): Add arg to create_breakpoint call.
3084 (handle_gnu_v3_exceptions): Ditto.
3085 (trace_command): Ditto.
3086 (ftrace_command): Ditto.
3087 (strace_command): Ditto.
3088 (bkpt_print_mention): Add dprintf case.
3089 (create_breakpoint_sal_default): Add extra_string argument.
3090 (_initialize_breakpoint): Add new commands.
3091 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3092 * python/py-breakpoint.c (bppy_init): Ditto.
3093 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3095 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3097 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3099 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3101 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3104 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3106 Add a new function gdb.find_pc_line to the Python API.
3107 * NEWS (Python Scripting): Add entry about the new function.
3108 * python/python.c (gdbpy_find_pc_line): New function which
3109 implements gdb.find_pc_line.
3110 (GdbMethods): Add entry for the new function.
3112 2012-05-12 Pedro Alves <palves@redhat.com>
3114 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3115 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3117 2012-05-12 Eli Zaretskii <eliz@gnu.org>
3119 * inferior.c: Include completer.h
3120 (initialize_inferiors): Set completer of add-inferior to
3123 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3125 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3126 gdbarch_ptr_bit for x32 core dump.
3128 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3130 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3131 and features/i386/x32-avx-linux.c.
3133 2012-05-11 Stan Shebs <stan@codesourcery.com>
3134 Kwok Cheung Yeung <kcy@codesourcery.com>
3136 * NEWS: Describe new info os commands.
3137 * common/linux-osdata.c (PID_T, TIME_T): Define.
3138 (MAX_PID_T_STRLEN): New.
3139 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3141 (command_from_pid): Add comment. Change to use PID_T.
3142 (commandline_from_pid): Change to use PID_T.
3143 (user_from_pid): Add comment.
3144 (get_process_owner): Add comment. Change to use PID_T and
3146 (get_number_of_cpu_cores): Add comment.
3147 (get_cores_used_by_process): Add comment. Change to use PID_T and
3149 (linux_xfer_osdata_processes): Change to use PID_T and
3151 (compare_processes): New function.
3152 (linux_xfer_osdata_processgroups): New function.
3153 (linux_xfer_osdata_threads): Change to use PID_T.
3154 (linux_xfer_osdata_fds): New function.
3155 (format_socket_state, print_sockets): New functions.
3156 (union socket_addr): New union.
3157 (linux_xfer_osdata_isockets): New function.
3158 (time_from_time_t, group_from_gid): New functions.
3159 (linux_xfer_osdata_shm): New function.
3160 (linux_xfer_osdata_sem): New function.
3161 (linux_xfer_osdata_msg): New function.
3162 (linux_xfer_osdata_modules): New function.
3163 (osdata_table): Add new entries.
3164 * common/buffer.c (buffer_xml_printf): Add support for long and
3165 long long format specifiers.
3167 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3169 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3170 (tdesc_x32_avx_linux): Likewise.
3172 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3174 Implement multi-component --with-auto-load-dir.
3175 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3177 (--with-auto-load-safe-path): Update the default value description.
3178 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3180 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3181 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3182 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3183 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3184 "set auto-load scripts-directory".
3185 * config.in: Regenerate.
3186 * configure: Regenerate.
3187 * configure.ac (--with-auto-load-dir): New configure option.
3188 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3190 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3192 Provide $ddir substitution for --with-auto-load-safe-path.
3193 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3195 * auto-load.c: Include observer.h.
3196 (auto_load_safe_path_vec_update): Call substitute_path_component for
3197 each component. New variable ddir_subst.
3198 (auto_load_gdb_datadir_changed): New function.
3199 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3200 AUTO_LOAD_SAFE_PATH. New comment.
3201 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3202 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3203 * config.in: Regenerate.
3204 * configure: Regenerate.
3205 * configure.ac (--auto-load-safe-path): Rename
3206 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3207 GDB_DATADIR/auto-load.
3208 * defs.h (substitute_path_component): New declaration.
3209 * top.c: Include observer.h.
3210 (set_gdb_datadir): New function.
3211 (init_main): Install it for "set data-directory".
3212 * utils.c (substitute_path_component): New function.
3214 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3216 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3217 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3218 DEBUG_FILE_DIRECTORY. Handle multiple components of
3219 DEBUG_FILE_DIRECTORY.
3221 2012-05-10 Tom Tromey <tromey@redhat.com>
3223 * dwarf2read.c (recursively_write_psymbols): New function.
3224 (write_psymtabs_to_index): Use it.
3226 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3228 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3229 (load_partial_comp_unit): Update.
3230 (queue_comp_unit): Add argument 'pretend_language'.
3231 (process_queue): Update.
3232 (psymtab_to_symtab_1): Skip dependencies that have a user.
3233 (load_partial_comp_unit_reader): Give meaning to the 'data'
3235 (load_full_comp_unit): Add 'pretend_language' argument.
3236 (process_full_comp_unit): Add 'pretend_language' argument. Set
3238 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3240 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3241 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3243 (prepare_one_comp_unit): Add 'pretend_language' argument.
3245 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3246 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3247 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3248 (dw2_do_instantiate_symtab): Check whether symtab was read in
3250 (dw2_instantiate_symtab): Add assertion. Call
3251 process_cu_includes.
3252 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3253 (partial_symtab_p): New typedef.
3254 (set_partial_user): New function.
3255 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3256 (scan_partial_symbols): Add imported CU to imported_symtabs.
3257 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3258 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3259 (get_symtab, recursively_compute_inclusions)
3260 (compute_symtab_includes, process_cu_includes)
3261 (process_imported_unit_die): New functions.
3262 (process_die) <DW_TAG_imported_unit>: New case.
3263 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3265 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3267 (struct partial_die_info) <locdesc>: Remove.
3269 (process_psymtab_comp_unit): Add 'read_partial' argument.
3271 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3272 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3273 (add_partial_symbol): Update.
3274 (process_die): Handle DW_TAG_partial_unit.
3275 (read_file_scope): Update comment.
3276 (load_partial_dies): Handle DW_TAG_imported_unit.
3277 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3278 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3280 2012-05-10 Tom Tromey <tromey@redhat.com>
3282 * cc-with-dwz.sh: New file.
3284 2012-05-10 Tom Tromey <tromey@redhat.com>
3286 * symtab.h (struct symtab) <includes, user>: New fields.
3287 * block.h (struct block_iterator) <d, idx, which>: New fields.
3288 * block.c (initialize_block_iterator, find_iterator_symtab)
3289 (block_iterator_step, block_iter_name_step)
3290 (block_iter_match_step): New functions.
3291 (block_iterator_first, block_iterator_next)
3292 (block_iter_name_first, block_iter_name_next)
3293 (block_iter_match_first, block_iter_match_next): Rewrite.
3294 (get_block_symtab): New function.
3296 2012-05-10 Tom Tromey <tromey@redhat.com>
3298 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3300 * jit.c (finalize_symtab): Use allocate_global_block,
3302 * buildsym.c (finish_block_internal): New function, from old
3304 (finish_block): Rewrite.
3305 (end_symtab): Use finish_block_internal, set_block_symtab.
3306 * block.h (struct global_block): New.
3307 (allocate_global_block, set_block_symtab): Declare.
3308 * block.c (allocate_global_block, set_block_symtab): New
3311 2012-05-10 Tom Tromey <tromey@redhat.com>
3313 * psymtab.c (partial_map_expand_apply): Add assertion.
3314 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3315 (psymtab_to_symtab): Find unshared psymtab.
3316 (dump_psymtab): Print including psymtabs.
3317 (recursively_search_psymtabs): New function.
3318 (expand_symtabs_matching_via_partial): Use it.
3319 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3321 (enum psymtab_search_status): New.
3323 2012-05-10 Tom Tromey <tromey@redhat.com>
3325 * tracepoint.c (scope_info): Update.
3326 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3327 (find_pc_sect_symtab, search_symbols)
3328 (default_make_symbol_completion_list_break_on)
3329 (make_file_symbol_completion_list): Update.
3330 * symmisc.c (dump_symtab_1): Update.
3331 * stack.c (print_frame_args, iterate_over_block_locals)
3332 (print_frame_labels, iterate_over_block_arg_vars): Update.
3333 * python/py-block.c (block_object) <dict>: Remove.
3335 <iter>: Change type.
3336 (blpy_iter): Update.
3337 (blpy_block_syms_iternext): Update.
3338 * psymtab.c (map_block): Use block iterators.
3339 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3340 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3341 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3342 * infrun.c (check_exception_resume): Update.
3343 * cp-support.c (make_symbol_overload_list_block): Update.
3344 * coffread.c (patch_opaque_types): Update.
3345 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3346 * block.h (struct block_iterator): New.
3347 (block_iterator_first, block_iterator_next, block_iter_name_first)
3348 (block_iter_name_next, block_iter_match_first)
3349 (block_iter_match_next): Declare.
3350 (ALL_BLOCK_SYMBOLS): Redefine.
3351 * block.c (block_iterator_first, block_iterator_next)
3352 (block_iter_name_first, block_iter_name_next)
3353 (block_iter_match_first, block_iter_match_next): New functions.
3354 * ada-lang.c (ada_add_block_symbols)
3355 (ada_make_symbol_completion_list): Use block iterator.
3357 2012-05-10 Tom Tromey <tromey@redhat.com>
3359 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3360 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3361 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3362 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3363 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3366 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3368 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3369 print-file-var-lib2.c, print-file-var-main.c and
3370 print-file-var.exp (located in gdb/testsuite/gdb.base).
3372 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3374 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3375 try locating the symbol in the symbol's own objfile first, before
3376 extending the search to all objfiles.
3377 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3378 out of lookup_symbol_aux_symtabs.
3379 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3380 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3381 Do not search EXCLUDE_OBJFILE.
3382 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3383 (lookup_symbol_global): Search for matches in the block's objfile
3384 first, before searching all other objfiles.
3386 2012-05-10 Tristan Gingold <gingold@adacore.com>
3388 * printcmd.c (set_command): Add pre/post inc/dec.
3390 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3392 * gdb.1: Document -ex option.
3394 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3396 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3397 * inferior.h (AT_SYMBOL): Delete.
3399 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3401 * mips-tdep.c (mips_push_dummy_code): New function.
3402 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3403 ON_STACK and install mips_push_dummy_code as our gdbarch
3404 push_dummy_code routine.
3406 2012-05-09 Pedro Alves <palves@redhat.com>
3408 * target.c (set_maintenance_target_async_permitted): Rename to ...
3409 (set_target_async_command): ... this.
3410 (show_maintenance_target_async_permitted): Rename to ...
3411 (show_target_async_command): ... this.
3412 (initialize_targets): Adjust.
3414 2012-05-08 Doug Evans <dje@google.com>
3416 * go-exp.y (classify_name): Add missing assignment of fields of
3419 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3421 Display the ">" prompt in interactive mode while reading canned
3422 commands, even when the current interpreter is MI.
3424 * interps.c (interp_set_temp): New function.
3426 * interps.h (interp_set_temp): Add prototype.
3428 * cli/cli-script.c (restore_interp): New cleanup function.
3429 (read_command_lines): Temporarily override the current interpreter
3430 with CLI and arrange for restoring the original one.
3432 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3434 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3436 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3438 * probe.c (parse_probes): Move conditional to check for
3439 debuginfo files from here...
3440 * stap-probe.c (stap_get_probes): ... to here.
3442 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3443 H.J. Lu <hongjiu.lu@intel.com>
3445 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3446 `movl %esp, %ebp' for the X32 ABI.
3448 2012-05-07 Tom Tromey <tromey@redhat.com>
3450 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3452 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3453 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3454 (dwarf_stack_op_name): Remove.
3455 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3456 (decode_locdesc): Use get_DW_OP_name.
3457 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3458 (dwarf2_compile_expr_to_ax): Likewise.
3459 (disassemble_dwarf_expression): Likewise.
3460 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3462 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3464 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3465 (sh_linux_sigtramp_cache): New function.
3466 (sh_linux_sigreturn_init): New function.
3467 (sh_linux_rt_sigreturn_init): New function.
3468 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3470 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3472 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3473 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3474 (sh_linux_init_abi): Add init calls to register new tramp_frame
3475 definitions under 32-bit SH, update comments.
3477 2012-05-07 Pedro Alves <palves@redhat.com>
3481 * amd64-linux-tdep.c: Include glibc-tdep.h.
3482 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3483 gdbarch_skip_solib_resolver callback.
3485 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3487 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3488 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3489 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3490 (add_auto_load_safe_path): Change the error message.
3491 (_initialize_auto_load): Change the "safe-path" help text.
3492 * configure: Regenerate
3493 * configure.ac (--without-auto-load-safe-path): Set
3494 WITH_AUTO_LOAD_SAFE_PATH to /.
3496 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3498 * stap-probe.h: Do not include unecessary `probe.h'.
3500 2012-05-05 Alan Modra <amodra@gmail.com>
3502 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3503 bfd_und_section_ptr.
3504 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3505 and bfd_com_section_ptr.
3507 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3509 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3511 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3513 * windows-nat.h (segment_register_p_ftype): New typedef.
3514 (windows_set_segment_register_p): Add declaration.
3515 * windows-nat.c (segment_register_p): New static global.
3516 (windows_set_segment_register_p): New function.
3517 (do_windows_fetch_inferior_registers): Add special handling
3518 for segment registers.
3519 * amd64-windows-nat.c: #include "amd64-tdep.h".
3520 (amd64_windows_segment_register_p): New function.
3521 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3522 * i386-windows-nat.c: #include "i386-tdep.h".
3523 (i386_windows_segment_register_p): New function.
3524 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3526 2012-05-04 Tristan Gingold <gingold@adacore.com>
3528 * printcmd.c (set_command): Emit a warning if the expression is not
3531 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3533 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3536 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3538 * stap-probe.c (stap_is_operator): Change declaration.
3539 (stap_get_opcode): Change return value.
3540 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3541 `stap_parse_argument_1'.
3543 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3545 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3548 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3550 Add two new methods global_block and static_block to gdb.Symtab
3552 * NEWS (Python scripting): Add entry about the new methods.
3553 * python/py-symtab.c (stpy_global_block): New function which
3554 implements the gdb.Symtab.global_block() method.
3555 (stpy_static_block): New function which implements the
3556 gdb.Symtab.static_block() method.
3557 (symtab_object_methods): Add entries for the two new methods.
3559 2012-05-03 Doug Evans <dje@google.com>
3561 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3564 2012-05-03 Yao Qi <yao@codesourcery.com>
3566 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3568 (i386_process_record): Ditto.
3570 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3572 * infcall.c (unwind_on_signal_p): Make static.
3574 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3576 * sol-thread.c (solaris_pid_to_str): Make static.
3577 (_initialize_sol_thread): Add prototype.
3579 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3581 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3583 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3585 * MAINTAINERS: Remove myself.
3587 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3589 Fix --without-auto-load-safe-path for MS-Windows host platform.
3590 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3592 2012-05-02 Eli Zaretskii <eliz@gnu.org>
3594 * gdb_curses.h: Undefine KEY_EVENT before including curses
3595 headers. Move "#undef MOUSE_MOVED" before any curses header
3598 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3600 * features/i386/i386-mmx-linux.c: Regenerate.
3601 * features/rs6000/powerpc-32.c: Likewise.
3602 * features/rs6000/powerpc-32l.c: Likewise.
3603 * features/rs6000/powerpc-403.c: Likewise.
3604 * features/rs6000/powerpc-403gc.c: Likewise.
3605 * features/rs6000/powerpc-405.c: Likewise.
3606 * features/rs6000/powerpc-505.c: Likewise.
3607 * features/rs6000/powerpc-601.c: Likewise.
3608 * features/rs6000/powerpc-602.c: Likewise.
3609 * features/rs6000/powerpc-603.c: Likewise.
3610 * features/rs6000/powerpc-604.c: Likewise.
3611 * features/rs6000/powerpc-64.c: Likewise.
3612 * features/rs6000/powerpc-64l.c: Likewise.
3613 * features/rs6000/powerpc-750.c: Likewise.
3614 * features/rs6000/powerpc-860.c: Likewise.
3615 * features/rs6000/powerpc-e500.c: Likewise.
3616 * features/rs6000/powerpc-e500l.c: Likewise.
3617 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3618 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3619 * features/rs6000/rs6000.c: Likewise.
3621 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3623 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3625 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3626 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3627 (stap_parse_argument) <e>: Likewise.
3628 (handle_stap_probe) <byte_order>: Likewise.
3630 2012-04-30 Doug Evans <dje@google.com>
3632 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3633 init_and_read_dies_worker. All callers updated.
3634 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3635 replaced with init_cutu_and_read_dies.
3636 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3637 (find_partial_die): Remove FIXME. Don't free current CU.
3639 2012-04-30 Sterling Augustine <saugustine@google.com>
3641 * contrib: New directory.
3642 * contrib/test_pubnames_and_indexes.py: New file.
3644 2012-04-30 Doug Evans <dje@google.com>
3646 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3647 All callers updated.
3648 (init_cu_die_reader): Verify the section is non-empty.
3649 (dwarf_decode_line_header): Don't dereference section->asection
3650 until we know the section is present.
3652 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3654 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3657 2012-04-29 Yao Qi <yao@codesourcery.com>
3659 * gdb-code-style.el: New hook gdb-markup-hook
3660 and gdb-comment-hook.
3662 2012-04-28 Doug Evans <dje@google.com>
3664 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3665 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3667 * symfile.h (dwarf2_debug_sections): New member addr.
3668 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3669 (ctx_no_get_addr_index): New function.
3670 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3671 (ctx_no_get_addr_index): Declare.
3672 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3673 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3674 (dwarf_expr_ctx_funcs): Update.
3675 (needs_get_addr_index): New function.
3676 (needs_frame_ctx_funcs): Update.
3677 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3678 * dwarf2read.c: #include "gdbcore.h".
3679 (dwarf2_per_objfile): New members addr, dwo_files.
3680 (dwarf2_elf_names): Add entry for addr.
3681 (struct dwo_section_names): New type.
3682 (dwo_section_names): New static global.
3683 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3684 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3685 old debug_types_section member updated to use this.
3686 Rename member debug_types_section to info_or_types_section,
3688 (signatured_type): Rename member type_offset to type_offset_in_tu,
3689 all uses updated. New member type_offset_in_section.
3690 (struct dwo_sections): New type.
3691 (struct dwo_unit): New type.
3692 (struct dwo_file): New type.
3693 (die_reader_specs): New member dwo_file.
3694 (dwarf2_locate_sections): Watch for .debug_addr.
3695 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3696 (dwarf2_read_section): Get bfd of section from bfd's asection,
3698 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3699 (create_signatured_type_table_from_index): Initialize
3700 sig_type->info_or_types_section.
3701 (dw2_get_file_names): Statement lists for type units with DWO files
3702 live in the DWO file.
3703 (create_debug_types_hash_table): New function.
3704 (create_all_type_units): Rewrite.
3705 (init_cu_die_reader): New arg dwo_file, all callers updated.
3706 (init_and_read_dies_worker): Get section from
3707 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3708 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3709 continue reading the CU/TU from there.
3710 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3711 updated. Get section from this_cu->info_or_types_section.
3712 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3713 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3714 DW_FORM_GNU_str_index.
3715 (hash_dwo_file, eq_dwo_file): New functions.
3716 (allocate_dwo_file_hash_table): New function.
3717 (hash_dwo_unit, eq_dwo_unit): New functions.
3718 (allocate_dwo_unit_table): New function.
3719 (dwarf2_locate_dwo_sections): New function.
3720 (struct create_dwo_info_table_data): New type.
3721 (create_debug_info_hash_table_reader): New function.
3722 (create_debug_info_hash_table): New function.
3723 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3724 (lookup_dwo_file): New function.
3725 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3726 (free_dwo_file, free_dwo_file_cleanup): New functions.
3727 (free_dwo_file_from_slot, free_dwo_files): New functions.
3728 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3729 (dwarf2_record_block_ranges): Ditto.
3730 (read_partial_die): Ditto.
3731 (process_enumeration_scope): Update to use type_offset_in_section.
3732 (read_full_die_1): New function.
3733 (read_full_die): Rewrite.
3734 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3735 DW_FORM_GNU_str_index.
3736 (read_addr_index_1, read_addr_index): New functions.
3737 (read_addr_index_from_leb128): New function.
3738 (struct dwarf2_read_addr_index_data): New type.
3739 (dwarf2_read_addr_index_reader): New function.
3740 (dwarf2_read_addr_index): New function.
3741 (read_str_index): New function.
3742 (leb128_size): New function.
3743 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3744 If processing a type unit from a DWO file, get the line section
3746 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3747 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3748 DW_FORM_GNU_str_index.
3749 (lookup_die_type): Check whether section offset of type's die is
3750 known before looking it up. Remove assert. Condition can
3751 legimately happen for inter-cu type references.
3752 (dwarf_attr_name): Handle Fission attributes.
3753 (dwarf_form_name): Handle Fission forms.
3754 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3755 DW_FORM_GNU_str_index.
3756 (follow_die_sig): Update to use type_offset_in_section.
3757 (decode_locdesc): New case DW_OP_GNU_addr_index.
3758 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3759 DW_FORM_GNU_str_index.
3760 (cu_debug_loc_section): New function.
3761 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3762 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3763 Free DWO files if present.
3764 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3766 Refactor DIE reading.
3767 * dwarf2read.c (dwarf2_per_objfile): Replace members
3768 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3769 (die_reader_specs): New member "die_section". Temporarily make
3770 member "buffer" non-const, pending constifying all info_ptr uses.
3771 (die_reader_func_ftype): New typedef.
3772 (dw2_get_file_names_reader): New function.
3773 (dw2_get_file_names): Rewrite.
3774 (read_and_check_type_unit_head): Rename arg type_offset to
3776 (create_all_type_units): Improve debugging message.
3777 Improve dummy type unit check.
3778 (init_cu_die_reader): New arg "section". All callers updated.
3779 (init_and_read_dies_worker): New function.
3780 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3781 (init_cutu_and_read_dies_no_follow): New function.
3782 (init_cutu_and_read_dies_simple): New function.
3783 (process_psymtab_comp_unit_reader): New function.
3784 (process_psymtab_comp_unit): Delete args section,
3785 is_debug_types_section. Rewrite. All callers updated.
3786 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3787 All callers updated. Rewrite.
3788 (load_partial_comp_unit_reader): New function.
3789 (load_partial_comp_unit): Rewrite.
3790 (skip_children): New arg reader. Delete args buffer, cu.
3791 All callers updated.
3792 (skip_one_die): New arg reader. Delete args buffer, cu.
3793 All callers updated.
3794 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3795 All callers updated.
3796 (load_full_comp_unit_reader): New function.
3797 (load_full_comp_unit): Rewrite.
3798 (read_comp_unit): Delete.
3799 (read_die_and_children_1): Delete, contents moved ...
3800 (read_die_and_children): ... here.
3801 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3802 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3803 All callers updated.
3804 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3805 All callers updated.
3806 (find_partial_die): Rewrite load_all_dies support.
3807 (read_attribute_value): New arg reader. Delete args abfd, cu.
3808 All callers updated.
3809 (read_attribute): New arg reader. Delete args abfd, cu.
3810 All callers updated.
3811 (load_full_type_unit): Add assert.
3812 (read_signatured_type_reader): New function.
3813 (read_signatured_type): Rewrite.
3814 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3815 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3816 All callers updated. Set per_cu->cu = NULL after freeing it.
3817 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3818 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3819 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3820 (set_die_type): Update.
3821 (get_die_type_at_offset): Update.
3822 (read_file_scope): Call prepare_one_comp_unit.
3823 (read_type_unit_scope): Ditto.
3824 (prepare_one_comp_unit): Set producer if present.
3826 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
3828 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3829 gettext function on `error'.
3831 2012-04-27 Doug Evans <dje@google.com>
3833 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3836 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3837 Tom Tromey <tromey@redhat.com>
3839 * breakpoint.c (struct breakpoint_objfile_data)
3840 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3841 <exception_probes>: New fields.
3842 (free_breakpoint_probes): New function.
3843 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3844 `_Unwind_DebugHook'.
3845 (create_exception_master_breakpoint): Likewise.
3846 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3847 * infrun.c: Including necessary header files for handling SystemTap
3849 (handle_inferior_event): Handling longjmp breakpoint and exceptions
3850 via SystemTap probes.
3851 (check_exception_resume): Remove `func' argument. Handle exception
3852 unwinding breakpoint set via a SystemTap probe.
3853 (insert_exception_resume_from_probe): New function.
3855 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3856 Tom Tromey <tromey@redhat.com>
3857 Jan Kratochvil <jan.kratochvil@redhat.com>
3859 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
3860 (COMMON_OBS): Likewise.
3861 (HFILES_NO_SRCDIR): Add `probe'.
3862 * NEWS: Mention support for static and SystemTap probes.
3863 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
3864 SystemTap probes' arguments parser.
3865 * arm-linux-tdep.c: Including headers needed to perform the parsing
3866 of SystemTap probes' arguments.
3867 (arm_stap_is_single_operand): New function.
3868 (arm_stap_parse_special_token): Likewise.
3869 (arm_linux_init_abi): Initializing proper fields used by SystemTap
3870 probes' arguments parser.
3871 * ax-gdb.c (require_rvalue): Removing static declaration.
3872 (gen_expr): Likewise.
3873 * ax-gdb.h (gen_expr): Declaring function.
3874 (require_rvalue): Likewise.
3875 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
3876 (bkpt_probe_breakpoint_ops): New variable.
3877 (momentary_breakpoint_from_master): Set the `probe' value.
3878 (add_location_to_breakpoint): Likewise.
3879 (break_command_1): Using proper breakpoint_ops according to the
3880 argument passed by the user in the command line.
3881 (bkpt_probe_insert_location): New function.
3882 (bkpt_probe_remove_location): Likewise.
3883 (bkpt_probe_create_sals_from_address): Likewise.
3884 (bkpt_probe_decode_linespec): Likewise.
3885 (tracepoint_probe_create_sals_from_address): Likewise.
3886 (tracepoint_probe_decode_linespec): Likewise.
3887 (tracepoint_probe_breakpoint_ops): New variable.
3888 (trace_command): Using proper breakpoint_ops according to the
3889 argument passed by the user in the command line.
3890 (initialize_breakpoint_ops): Initializing breakpoint_ops for
3891 static probes on breakpoints and tracepoints.
3892 * breakpoint.h (struct bp_location) <probe>: New field.
3893 * cli-utils.c (skip_spaces_const): New function.
3894 (extract_arg): Likewise.
3895 * cli-utils.h (skip_spaces_const): Likewise.
3896 (extract_arg): Likewise.
3897 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
3898 * configure.ac: Append `stap-probe.o' to be generated when ELF
3900 * configure: Regenerate.
3901 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
3902 * elfread.c: Include `probe.h' and `arch-utils.h'.
3903 (probe_key): New variable.
3904 (elf_get_probes): New function.
3905 (elf_get_probe_argument_count): Likewise.
3906 (elf_evaluate_probe_argument): Likewise.
3907 (elf_compile_to_ax): Likewise.
3908 (elf_symfile_relocate_probe): Likewise.
3909 (stap_probe_key_free): Likewise.
3910 (elf_probe_fns): New variable.
3911 (elf_sym_fns): Add `sym_probe_fns' value.
3912 (elf_sym_fns_lazy_psyms): Likewise.
3913 (elf_sym_fns_gdb_index): Likewise.
3914 (_initialize_elfread): Initialize objfile cache for static
3916 * gdb_vecs.h (struct probe): New forward declaration.
3917 (probe_p): New VEC declaration.
3918 * gdbarch.c: Regenerate.
3919 * gdbarch.h: Regenerate.
3920 * gdbarch.sh (stap_integer_prefix): New variable.
3921 (stap_integer_suffix): Likewise.
3922 (stap_register_prefix): Likewise.
3923 (stap_register_suffix): Likewise.
3924 (stap_register_indirection_prefix): Likewise.
3925 (stap_register_indirection_suffix): Likewise.
3926 (stap_gdb_register_prefix): Likewise.
3927 (stap_gdb_register_suffix): Likewise.
3928 (stap_is_single_operand): New function.
3929 (stap_parse_special_token): Likewise.
3930 (struct stap_parse_info): Forward declaration.
3931 * i386-tdep.c: Including headers needed to perform the parsing
3932 of SystemTap probes' arguments.
3933 (i386_stap_is_single_operand): New function.
3934 (i386_stap_parse_special_token): Likewise.
3935 (i386_elf_init_abi): Initializing proper fields used by SystemTap
3936 probes' arguments parser.
3937 * i386-tdep.h (i386_stap_is_single_operand): New function.
3938 (i386_stap_parse_special_token): Likewise.
3939 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
3940 * mipsread.c (ecoff_sym_fns): Likewise.
3941 * objfiles.c (objfile_relocate1): Support relocation for static
3943 * parse.c (prefixify_expression): Remove static declaration.
3944 (initialize_expout): Likewise.
3945 (reallocate_expout): Likewise.
3946 * parser-defs.h (initialize_expout): Declare function.
3947 (reallocate_expout): Likewise.
3948 (prefixify_expression): Likewise.
3949 * ppc-linux-tdep.c: Including headers needed to perform the parsing
3950 of SystemTap probes' arguments.
3951 (ppc_stap_is_single_operand): New function.
3952 (ppc_stap_parse_special_token): Likewise.
3953 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
3954 probes' arguments parser.
3955 * probe.c: New file, for generic statically defined probe support.
3956 * probe.h: Likewise.
3957 * s390-tdep.c: Including headers needed to perform the parsing of
3958 SystemTap probes' arguments.
3959 (s390_stap_is_single_operand): New function.
3960 (s390_gdbarch_init): Initializing proper fields used by SystemTap
3961 probes' arguments parser.
3962 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
3963 * stap-probe.c: New file, for SystemTap probe support.
3964 * stap-probe.h: Likewise.
3965 * symfile.h: Include `gdb_vecs.h'.
3966 (struct sym_probe_fns): New struct.
3967 (struct sym_fns) <sym_probe_fns>: New field.
3968 * symtab.c (init_sal): Initialize `probe' field.
3969 * symtab.h (struct probe): Forward declaration.
3970 (struct symtab_and_line) <probe>: New field.
3971 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
3973 (stop_tracing): Likewise.
3974 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
3976 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3977 Tom Tromey <tromey@redhat.com>
3979 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
3980 and to compile agent expressions.
3981 * infrun.c (siginfo_make_value): New argument `ignore'.
3982 (siginfo_funcs): New struct.
3983 (_initialize_infrun): New argument when calling
3984 `create_internalvar_type_lazy'.
3985 * thread.c (thread_id_make_value): New argument `ignore'.
3986 (thread_funcs): New struct.
3987 (_initialize_thread): New argument when calling
3988 `create_internalvar_type_lazy'.
3989 * tracepoint.c (sdata_make_value): New argument `ignore'.
3990 (sdata_funcs): New struct.
3991 (_initialize_tracepoint): New argument when calling
3992 `create_internalvar_type_lazy'.
3993 * value.c (make_value): New struct.
3994 (create_internalvar_type_lazy): New argument `data'.
3995 (compile_internalvar_to_ax): New function.
3996 (value_of_internalvar): Properly handling `make_value' case.
3997 (clear_internalvar): Likewise.
3998 (show_convenience): Adding `TRY_CATCH' block.
3999 * value.h (internalvar_make_value): Delete, replace by...
4000 (struct internalvar_funcs): ... this.
4001 (create_internalvar_type_lazy) <fun>: Delete argument.
4002 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
4003 (compile_internalvar_to_ax): New function.
4004 * windows-tdep.c (tlb_make_value): New argument `ignore'.
4005 (tlb_funcs): New struct.
4006 (_initialize_windows_tdep): New argument when calling
4007 `create_internalvar_type_lazy'.
4009 2012-04-27 Mark Wielaard <mjw@redhat.com>
4011 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4012 see whether it is an address or a constant offset from DW_AT_low_pc.
4013 (dwarf2_record_block_ranges): Likewise.
4014 (read_partial_die): Likewise.
4016 2012-04-26 Mark Wielaard <mjw@redhat.com>
4018 * MAINTAINERS (Write After Approval): Add myself to the list.
4020 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4022 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4023 (proc_prettyprint_signal): Likewise.
4024 (proc_prettyprint_faultset): Likewise.
4025 (proc_prettyprint_fault): Likewise.
4026 (proc_prettyprint_actionset): Likewise.
4027 (proc_prettyprint_flags): Move to new proc-flags.c section.
4028 (proc_prettyfprint_flags): New prototype.
4029 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4030 (proc_syscall, proc_cursig): Likewise.
4031 (proc_set_kill_on_last_close): Likewise.
4032 (proc_unset_kill_on_last_close): Likewise.
4033 (proc_set_watchpoint): Make static.
4034 (proc_delete_dead_threads): Likewise.
4035 (procfs_set_watchpoint): Likewise.
4036 (_initialize_procfs): Add prototype.
4037 * proc-events.c: Include proc-utils.h.
4038 (init_syscall_table): Make static.
4039 * proc-api.c (_initialize_proc_api): Add prototype.
4040 * proc-flags.c: Include proc-utils.h.
4042 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4044 * configure.ac: Add AC_ARG_PROGRAM.
4045 * configure: Regenerate.
4047 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4049 Fix DW_AT_lower_bound defaults for DWARF-4+.
4050 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4051 high. New variable low_default_is_valid. Implement DWARF-4+
4052 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4053 no default by the DWARF standard.
4055 2012-04-26 Maciej W. Rozycki <macro@mips.com>
4056 Maciej W. Rozycki <macro@codesourcery.com>
4058 * infrun.c (handle_inferior_event): Move the check for return
4059 trampolines ahead of the check for function trampolines.
4060 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4061 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4062 (mips_str_mips16_ret_stub): Likewise.
4063 (mips_str_call_fp_stub): Likewise.
4064 (mips_str_call_stub): Likewise.
4065 (mips_str_fn_stub): Likewise.
4066 (mips_str_pic): Likewise.
4067 (mips_in_frame_stub): New function.
4068 (mips_unwind_pc): Return the return address rather than the PC
4069 if the PC of an intermediate frame is inside a call thunk.
4070 (mips_is_stub_suffix): New function.
4071 (mips_is_stub_mode): Likewise.
4072 (mips_get_mips16_fn_stub_pc): Likewise.
4073 (mips_skip_mips16_trampoline_code): Update to handle all the
4074 currently generated stub types. Don't recurse into __fn_stub
4075 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4076 Use cooked register accesses.
4077 (mips_in_return_stub): Reintroduce function.
4078 (mips_skip_trampoline_code): Traverse trampolines recursively.
4079 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4081 2012-04-26 Joel Brobecker <brobecker@adacore.com>
4085 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4087 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4088 * features/arm-with-m-vfp-d16.xml: New file. Describes
4089 Cortex-M with VFPv4-sp-d16 FPU register layout.
4090 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4091 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4092 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4093 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4094 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4096 2012-04-25 Doug Evans <dje@google.com>
4098 * cli/cli-decode.c (print_doc_line): Use stream instead of
4101 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4103 * features/arm-with-iwmmxt.c: Regenerate.
4104 * features/arm-with-m-fpa-layout.c: Likewise.
4105 * features/arm-with-m.c: Likewise.
4106 * features/arm-with-neon.c: Likewise.
4107 * features/arm-with-vfpv2.c: Likewise.
4108 * features/arm-with-vfpv3.c: Likewise.
4109 * features/mips-dsp-linux.c: Likewise.
4110 * features/mips-linux.c: Likewise.
4111 * features/mips64-dsp-linux.c: Likewise.
4112 * features/mips64-linux.c: Likewise.
4113 * features/s390-linux32.c: Likewise.
4114 * features/s390-linux32v1.c: Likewise.
4115 * features/s390-linux32v2.c: Likewise.
4116 * features/s390-linux64.c: Likewise.
4117 * features/s390-linux64v1.c: Likewise.
4118 * features/s390-linux64v2.c: Likewise.
4119 * features/s390x-linux64.c: Likewise.
4120 * features/s390x-linux64v1.c: Likewise.
4121 * features/s390x-linux64v2.c: Likewise.
4122 * features/tic6x-c62x-linux.c: Likewise.
4123 * features/tic6x-c62x.c: Likewise.
4124 * features/tic6x-c64x-linux.c: Likewise.
4125 * features/tic6x-c64x.c: Likewise.
4126 * features/tic6x-c64xp-linux.c: Likewise.
4127 * features/tic6x-c64xp.c: Likewise.
4128 * target-descriptions.c: Only generate `field_type' and `type'
4129 variables when needed.
4131 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4133 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4135 2012-04-25 Doug Evans <dje@google.com>
4137 Initial pass at Go language support.
4139 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4141 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4142 (YYFILES): Add go-exp.c.
4143 (YYOBJ): Add go-exp.o.
4144 (local-maintainer-clean): Delete go-exp.c.
4145 * defs.h (enum language): Add language_go.
4146 * dwarf2read.c: #include "go-lang.h".
4147 (fixup_go_packaging): New function.
4148 (process_full_comp_unit): Call it when processing Go CUs.
4149 (dwarf2_physname): Add Go support.
4150 (read_file_scope): Handle missing language spec for GNU Go.
4151 (set_cu_language): Handle DW_LANG_Go.
4152 * go-exp.y: New file.
4153 * go-lang.h: New file.
4154 * go-lang.c: New file.
4155 * go-typeprint.c: New file.
4156 * go-valprint.c: New file.
4157 * symtab.c: #include "go-lang.h".
4158 (symbol_set_language): Handle language_go.
4159 (symbol_find_demangled_name, symbol_set_names): Ditto.
4160 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4162 2012-04-24 Jim Meyering <meyering@redhat.com>
4164 avoid a few strncpy-induced buffer overruns
4165 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4166 fname and psargs before trying to concatenate.
4167 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4168 "name" before applying strchr.
4170 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4172 * CONTRIBUTE: Use unified diff instead of context diff when
4175 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4177 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4178 code. Handle JR.HB correctly.
4180 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4183 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4184 with the other MIPS16 helpers.
4186 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4188 * observer.sh: Conditionally declare `args', thus cleaning up
4189 unused instances of this variable.
4191 2012-04-24 Yao Qi <yao@codesourcery.com>
4193 Revert this patch to allow breakpoint always-inserted
4195 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4196 * breakpoint.c: Include record.h.
4197 (breakpoints_always_inserted_mode): Return false when the record
4200 * breakpoint.c (iterate_over_bp_locations): New.
4201 * breakpoint.h: Declare.
4202 New typedef walk_bp_location_callback.
4203 * record.c (record_open): Call record_init_record_breakpoints.
4204 (record_sync_record_breakpoints): New.
4205 (record_init_record_breakpoints): New.
4206 * NEWS: Mention supporting breakpoint always-inserted mode in
4209 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4211 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4214 2012-04-24 Yao Qi <yao@codesourcery.com>
4216 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4217 (is_catchpoint): ... it.
4218 (print_one_breakpoint_location): Caller update.
4219 * breakpoint.h: Update declaration.
4221 2012-04-23 David S. Miller <davem@davemloft.net>
4223 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4225 2012-04-23 Tom Tromey <tromey@redhat.com>
4227 * buildsym.c (add_free_pendings): Remove.
4228 * buildsym.h (add_free_pendings): Remove.
4230 2012-04-23 Doug Evans <dje@google.com>
4232 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4233 attr.u.unsnd instead of attr.u.addr.
4234 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4235 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4237 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4238 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4240 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4242 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4244 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4245 (mips_o32_return_value): Likewise.
4246 (mips_o64_return_value): Likewise.
4248 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4250 * ada-lang.c (ada_evaluate_subexp): Add cases for
4251 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4252 their treatment in eval.c.
4254 2012-04-21 David S. Miller <davem@davemloft.net>
4256 * sparc-tdep.c (X_DISP10): Define.
4257 (sparc_analyze_control_transfer): Handle compare-and-branch.
4259 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4261 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4262 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4264 2012-04-20 Nigel Stephens <nigel@mips.com>
4265 Maciej W. Rozycki <macro@codesourcery.com>
4267 * mips-tdep.c (mips_float_register_p): New function.
4268 (mips_convert_register_float_case_p): Use mips_float_register_p.
4269 (mips_register_type): Likewise.
4270 (mips_print_register): Likewise.
4271 (print_gp_register_row): Likewise.
4272 (mips_print_registers_info): Likewise.
4274 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4276 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4279 2012-04-20 Andrew Pinski <apinski@cavium.com>
4281 * MAINTAINERS (Write After Approval): Add myself to the list.
4283 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4285 * MAINTAINERS: Update my e-mail address.
4287 2012-04-20 Pedro Alves <palves@redhat.com>
4289 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4291 * configure: Regenerate.
4293 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4295 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4297 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4299 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4301 Fix compilation compatibility with python-2.4
4302 * python/py-type.c (convert_field): Cast ADDRSTRING for
4303 PyObject_SetAttrString as non-const. New comment.
4305 2012-04-19 Tom Tromey <tromey@redhat.com>
4307 * top.c (quit_target): Use all_cleanups.
4308 * main.c (captured_command_loop): Use all_cleanups.
4309 * exceptions.c (throw_exception): Use all_cleanups.
4311 2012-04-19 Pedro Alves <palves@redhat.com>
4313 * Makefile.in (GNULIB_BUILDDIR): New.
4314 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4315 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4316 (CLEANDIRS). Remove gnulib/import.
4317 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4319 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4320 (gnulib/import/Makefile): Replace gnulib/import with
4321 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4322 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4323 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4324 acx_configure_dir.m4.
4325 * acinclude.m4: Include acx_configure_dir.m4.
4326 * acx_configure_dir.m4: New file.
4327 * aclocal.m4: Regenerate.
4328 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4329 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4330 (GNULIB): New variable.
4331 (GNULIB_STDINT_H): Adjust.
4332 (AC_OUTPUT): Don't output gnulib/Makefile.
4333 * gdb/defs.h: Include build-gnulib/config.h.
4334 * aclocal.m4: Regenerate.
4335 * config.in: Regenerate.
4336 * configure: Regenerate.
4338 * gnulib/Makefile.in: New file.
4339 * gnulib/configure.ac: New file.
4340 * gnulib/aclocal.m4: New file.
4341 * gnulib/config.in: New file.
4342 * gnulib/configure: New file.
4343 * gnulib/: Re-run gnulib-tool to adjust.
4345 2012-04-19 Doug Evans <dje@google.com>
4347 * cleanups.h (struct cleanup): Move to cleanups.c.
4348 (make_cleanup_dtor_ftype): New typedef.
4349 (make_cleanup_dtor): Use it.
4350 (ALL_CLEANUPS): Replace with ...
4351 (all_cleanups): ... this. Declare. All uses updated.
4352 * cleanups.c: #include "gdb_assert.h".
4353 (sentinel_cleanup): New static global.
4354 (SENTINEL_CLEANUP): Define.
4355 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4356 (make_my_cleanup2): Assert result is non-NULL.
4357 (all_cleanups): New function.
4358 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4361 2012-04-19 Pedro Alves <palves@redhat.com>
4363 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4364 Adjust paths to gnulib imported files.
4366 2012-04-19 Pedro Alves <palves@redhat.com>
4368 * gnulib/: Move whole directory ...
4369 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4370 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4371 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4372 (aclocal_m4_deps): Adjust.
4373 * aclocal.m4: Regenerate.
4374 * configure: Regenerate.
4375 * configure.ac: Adjust AC_OUTPUT output.
4377 2012-04-19 Yao Qi <yao@codesourcery.com>
4379 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4381 * vec.c: Move it ...
4382 * common/vec.c: ... here.
4383 * vec.h: Move it ...
4384 * common/vec.h: ... here.
4386 2012-04-19 Yao Qi <yao@codesourcery.com>
4388 * gdb-code-style.el: New.
4390 2012-04-18 Pedro Alves <palves@redhat.com>
4392 Update gnulib from latest git.
4393 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4395 * gnulib/Makefile.am: Update.
4396 * gnulib/dummy.c: Update.
4397 * gnulib/extra/arg-nonnull.h: Update.
4398 * gnulib/extra/c++defs.h: Update.
4399 * gnulib/extra/update-copyright: Update.
4400 * gnulib/extra/warn-on-use.h: Update.
4401 * gnulib/inttypes.in.h: Update.
4402 * gnulib/m4/00gnulib.m4: Update.
4403 * gnulib/m4/extensions.m4: Update.
4404 * gnulib/m4/gnulib-cache.m4: Update.
4405 * gnulib/m4/gnulib-common.m4: Update.
4406 * gnulib/m4/gnulib-comp.m4: Update.
4407 * gnulib/m4/gnulib-tool.m4: Update.
4408 * gnulib/m4/include_next.m4: Update.
4409 * gnulib/m4/inttypes-pri.m4: Update.
4410 * gnulib/m4/inttypes.m4: Update.
4411 * gnulib/m4/longlong.m4: Update.
4412 * gnulib/m4/memchr.m4: Update.
4413 * gnulib/m4/memmem.m4: Update.
4414 * gnulib/m4/mmap-anon.m4: Update.
4415 * gnulib/m4/multiarch.m4: Update.
4416 * gnulib/m4/onceonly.m4: Update.
4417 * gnulib/m4/stddef_h.m4: Update.
4418 * gnulib/m4/stdint.m4: Update.
4419 * gnulib/m4/string_h.m4: Update.
4420 * gnulib/m4/warn-on-use.m4: Update.
4421 * gnulib/m4/wchar_h.m4: Update.
4422 * gnulib/m4/wchar_t.m4: Update.
4423 * gnulib/m4/wint_t.m4: Update.
4424 * gnulib/memchr.c: Update.
4425 * gnulib/memmem.c: Update.
4426 * gnulib/stddef.in.h: Update.
4427 * gnulib/stdint.in.h: Update.
4428 * gnulib/str-two-way.h: Update.
4429 * gnulib/string.in.h: Update.
4430 * gnulib/wchar.in.h: Update.
4432 * gnulib/extra/arg-nonnull.h: Delete.
4433 * gnulib/extra/c++defs.h: Delete.
4434 * gnulib/extra/warn-on-use.h: Delete.
4435 * gnulib/m4/wchar_h.m4: Delete.
4436 * gnulib/m4/wint_t.m4: Delete.
4437 * gnulib/wchar.in.h: Delete.
4439 * gnulib/extra/snippets/arg-nonnull.h: New.
4440 * gnulib/extra/snippets/c++defs.h: New.
4441 * gnulib/extra/snippets/warn-on-use.h: New.
4443 * aclocal.m4: Regenerate.
4444 * config.in: Regenerate.
4445 * configure: Regenerate.
4446 * gnulib/Makefile.in: Regenerate.
4448 2012-04-18 Pedro Alves <palves@redhat.com>
4450 Reimport the update-copyright module from gnulib
4451 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4453 * configure: Regenerate.
4454 * gnulib/Makefile.am: Update.
4455 * gnulib/Makefile.in: Regenerate.
4456 * gnulib/extra/update-copyright: Update.
4457 * gnulib/m4/gnulib-cache.m4: Update.
4458 * gnulib/m4/gnulib-comp.m4: Update.
4460 2012-04-18 Tristan Gingold <gingold@adacore.com>
4462 * configure.ac (aix): Put -lpthread into libs.
4463 * configure: Regenerate.
4465 2012-04-18 Tom Tromey <tromey@redhat.com>
4467 * linespec.c (convert_linespec_to_sals): Don't use
4469 (compare_msymbols): Arguments are minsym_and_objfile, not
4470 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4472 2012-04-18 Pedro Alves <palves@redhat.com>
4474 Revert gnulib/ part of:
4475 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4476 Copyright year update in most files (performed by copyright.sh).
4478 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4480 Fix 64-bit constants on 32-bit hosts.
4481 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4482 from unsigned long to ULONGEST.
4483 (read_signed_leb128): Change declaration return type from long to
4485 (dwarf2_const_value_attr): Change declaration parameter value from long
4487 (dwarf2_compute_name): Change variable value from long to LONGEST.
4488 (read_unsigned_leb128): Change return type, variable result and some
4489 casts from unsigned long to ULONGEST.
4490 (read_signed_leb128): Change return type, variable result and some
4491 casts from long to LONGEST.
4492 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4493 value from long to LONGEST.
4494 (dwarf2_const_value): Change variable value from long to LONGEST.
4495 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4496 plongest and hex_string.
4497 * symtab.h (struct general_symbol_info): Change ivalue from long to
4498 LONGEST, remove the comment.
4499 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4500 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4502 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4505 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4506 * ada-lang.c (ada_discrete_type_high_bound)
4507 (ada_discrete_type_low_bound): Fix function comment. Use
4508 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4509 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4510 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4511 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4512 Use TYPE_FIELD_ENUMVAL.
4513 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4514 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4515 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4516 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4518 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4519 * dwarf2read.c (process_enumeration_scope): Likewise.
4520 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4522 (class StructMainTypePrettyPrinter): Support also
4523 FIELD_LOC_KIND_ENUMVAL.
4524 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4526 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4527 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4528 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4529 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4531 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4532 accommodate enumval.
4533 (struct call_site): Adjust loc_kind to accommodate enumval.
4534 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4535 (TYPE_FIELD_ENUMVAL): New macros.
4536 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4537 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4539 * p-typeprint.c (pascal_type_print_base): Likewise.
4540 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4542 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4543 * python/py-type.c (convert_field): New variable addrstring. Use
4544 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4545 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4546 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4547 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4549 * valprint.c (generic_val_print): Likewise.
4551 2012-04-17 Doug Evans <dje@google.com>
4553 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4555 * dwarf2read.c: Whitespace fixes.
4556 (lookup_signatured_type): Tweak comment.
4557 (get_die_type_at_offset): Fix comment.
4559 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4561 * xcoffread.c (xcoff_secnum_to_sections): New function.
4562 (secnum_to_section, secnum_to_bfd_section): Reimplement
4563 using xcoff_secnum_to_sections. Rename "secnum" parameter
4565 (RECORD_MINIMAL_SYMBOL): Delete.
4566 (record_minimal_symbol): New function.
4567 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4568 by call to record_minimal_symbol and set misc_func_recorded
4569 to 1. Set last_csect_sec to the XCOFF section index instead
4570 of GDB's section_offset index. Update calls to
4571 prim_record_minimal_symbol_and_info to pass the BFD section
4574 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4576 * xcoffread.c (read_xcoff_symtab): Delete variables
4577 last_csect_val and last_csect_sec and associated code.
4579 2012-04-17 Doug Evans <dje@google.com>
4581 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4582 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4583 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4584 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4586 * cleanups.h: New file.
4587 * cleanups.c: New file.
4588 * Makefile.in (SFILES): Add cleanups.c.
4589 (HFILES_NO_SRCDIR): Add cleanups.h.
4590 (COMMON_OBS): Add cleanups.o.
4591 * defs.h (struct cleanup): Moved to cleanups.h.
4592 (do_cleanups,do_final_cleanups): Ditto.
4593 (discard_cleanups,discard_final_cleanups): Ditto
4594 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4595 (save_cleanups,save_final_cleanups): Ditto.
4596 (restore_cleanups,restore_final_cleanups): Ditto.
4597 (null_cleanup): Ditto.
4598 (make_my_cleanup,make_my_cleanup2): Ditto.
4599 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4600 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4601 (do_cleanups,do_final_cleanups): Ditto.
4602 (discard_cleanups,discard_final_cleanups): Ditto
4603 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4604 (save_cleanups,save_final_cleanups): Ditto.
4605 (restore_cleanups,restore_final_cleanups): Ditto.
4606 (null_cleanup): Ditto.
4607 (make_my_cleanup,make_my_cleanup2): Ditto.
4608 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4610 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4612 (make_cleanup_dyn_string_delete): Ditto.
4613 (make_cleanup_ui_file_delete): Ditto.
4614 (make_cleanup_ui_out_redirect_pop): Ditto.
4615 (make_cleanup_free_section_addr_info): Ditto.
4616 (make_cleanup_restore_integer): Ditto.
4617 (make_cleanup_unpush_target): Ditto.
4618 (make_cleanup_value_free_to_mark): Ditto.
4619 (make_cleanup_value_free): Ditto.
4620 (make_cleanup_free_so): Ditto.
4622 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4624 New option "set debug auto-load".
4625 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4626 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4627 (auto_load_safe_path_vec_update)
4628 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4630 (file_is_auto_load_safe): New parameters debug_fmt and ....
4631 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4632 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4633 caller by explanatory string.
4634 (_initialize_auto_load): Register "set debug auto-load".
4635 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4637 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4638 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4639 by explanatory string.
4640 * main.c (captured_main): Likewise.
4641 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4642 (source_section_scripts): Likewise.
4644 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4646 New option "set auto-load safe-path".
4647 * NEWS: New commands "set auto-load safe-path"
4648 and "show auto-load safe-path".
4649 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4650 (auto_load_safe_path, auto_load_safe_path_vec)
4651 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4652 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4653 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4654 (source_gdb_script_for_objfile): New variable is_safe. Call
4655 file_is_auto_load_safe. Return if it is not.
4656 (struct loaded_script): New field loaded.
4657 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4658 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4659 output "Missing" to "No".
4660 (_initialize_auto_load): New variable cmd. Initialize
4661 auto_load_safe_path. Register "set auto-load safe-path",
4662 "show auto-load safe-path" and "add-auto-load-safe-path".
4663 * auto-load.h (maybe_add_script): Add parameter loaded.
4664 (file_is_auto_load_safe): New declaration.
4665 * config.in: Regenerate.
4666 * configure: Regenerate.
4667 * configure.ac: New parameters --with-auto-load-safe-path
4668 and --without-auto-load-safe-path.
4669 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4670 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4671 * main.c (captured_main): Check file_is_auto_load_safe for
4673 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4674 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4675 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4678 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4680 auto-load: Implementation.
4681 * NEWS: New descriptions for "info auto-load",
4682 "info auto-load gdb-scripts", "info auto-load python-scripts",
4683 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4684 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4685 and "show auto-load-scripts". New description for "set auto-load",
4686 "show auto-load", "set auto-load gdb-scripts",
4687 "show auto-load gdb-scripts", "set auto-load python-scripts",
4688 "show auto-load python-scripts", "set auto-load local-gdbinit",
4689 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4690 "show auto-load libthread-db".
4691 * auto-load.c: Remove include python/python-internal.h. Add includes
4692 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4694 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4695 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4696 (gdbpy_global_auto_load): Rename to ...
4697 (global_auto_load): ... here.
4698 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4699 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4700 (script_language_gdb, source_gdb_script_for_objfile): New.
4701 (struct loaded_script): New field language.
4702 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4704 (maybe_add_script): Add parameter language. Drop redundant
4705 entry.full_path initialization. Initialize entry.language and
4707 (auto_load_objfile_script): Change parameter suffix to language.
4708 Remove the call of maybe_add_script.
4709 Call language->source_script_for_objfile.
4710 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4712 (collect_matching_scripts): Adjust it for
4713 struct collect_matching_scripts_data.
4714 (auto_load_info_scripts_pattern_nl): New variable.
4715 (info_auto_load_scripts): Rename to ...
4716 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4717 for struct collect_matching_scripts_data.
4718 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4719 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4720 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4721 (auto_load_info_cmdlist_get): New.
4722 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4723 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4724 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4725 "info auto-load local-gdbinit".
4726 * auto-load.h (struct script_language): New.
4727 (gdbpy_global_auto_load): Rename to ...
4728 (global_auto_load): ... here.
4729 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4730 (auto_load_local_gdbinit_loaded): New declarations.
4731 (maybe_add_script): New parameter language.
4732 (auto_load_objfile_script): Change parameter suffix to language.
4733 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4734 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4735 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4737 * linux-thread-db.c: Include auto-load.h and ctype.h.
4738 (auto_load_thread_db, show_auto_load_thread_db): New.
4739 (struct thread_db_info): New field filename.
4740 (delete_thread_db_info): Call xfree for FILENAME.
4741 (try_thread_db_load): Initialize FILENAME.
4742 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4743 if !AUTO_LOAD_THREAD_DB.
4744 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4745 (_initialize_thread_db): Install auto_load_thread_db
4746 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4747 as "info auto-load libthread-db".
4748 * main.c (captured_main): Rename gdbpy_global_auto_load to
4749 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4750 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4751 (print_gdb_help): Extend the help for 'local init file'.
4752 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4753 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4754 (auto_load_scripts): Rename to ...
4755 (auto_load_python_scripts): ... here, update the comment.
4756 (gdbpy_load_auto_script_for_objfile): New declaration.
4757 (show_auto_load_python_scripts, script_language_python)
4758 (gdbpy_load_auto_script_for_objfile): New.
4759 (source_section_scripts): Refactor the code.
4760 (load_auto_scripts_for_objfile): Rename to ...
4761 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4762 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4763 (info_auto_load_python_scripts): New.
4764 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4765 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4766 Register "set auto-load-scripts" as its deprecated alias. Register
4767 "info auto-load python-scripts". Register "info auto-load-scripts" as
4768 its deprecated alias.
4769 (load_auto_scripts_for_objfile): Rename to ...
4770 (gdbpy_load_auto_scripts_for_objfile): ... here.
4771 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4772 (gdbpy_load_auto_scripts_for_objfile): ... here.
4774 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4776 auto-load: Move files.
4777 * Makefile.in (SFILES): Add auto-load.c.
4778 (HFILES_NO_SRCDIR): Add auto-load.h.
4779 (COMMON_OBS): Add auto-load.o.
4780 (distclean): Change .gdbinit for gdb-gdb.gdb.
4781 * auto-load.c: New file, with parts from python/py-auto-load.c.
4782 * auto-load.h: New file, with parts from python/python.h.
4783 * configure: Regenerate.
4784 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4785 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4786 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4787 * main.c: Include auto-load.h.
4788 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4789 command.h, observer.h and progspace.h to auto-load.c. Add include
4791 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4792 (struct loaded_script, auto_load_pspace_data)
4793 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4794 (hash_loaded_script_entry, eq_loaded_script_entry)
4795 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4796 (maybe_add_script): Move to auto-load.c.
4797 (source_section_scripts): Change maybe_add_script parameters passing,
4798 use script_not_found_warning_print.
4799 (clear_section_scripts, auto_load_objfile_script)
4800 (auto_load_new_objfile, loaded_script_ptr)
4801 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4802 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4803 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4804 auto_load_new_objfile and info_auto_load_scripts initizations to
4806 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4808 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4811 * charset.c (find_charset_names): Remove variables ix and elt.
4812 Use free_char_ptr_vec.
4813 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4814 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4815 debugdir_end. New variable debugdir_len.
4816 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4817 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4819 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4820 and elt. Use free_char_ptr_vec.
4821 * source.c (add_path): Remove variables argv, arg and argv_index.
4822 New variables dir_vec, back_to, ix and name.
4823 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4824 make_cleanup_freeargv. Remove variable separator. Simplify the code
4825 no longer expecting DIRNAME_SEPARATOR.
4826 (openp): Remove variable p, p1 and len. New variables dir_vec,
4827 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4828 no longer expecting DIRNAME_SEPARATOR.
4829 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4830 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4832 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4833 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4834 (dirnames_to_char_ptr_vec): New functions.
4836 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4839 * source.c (add_path): Remove always true conditional 'p == 0' and
4840 unindent its code block.
4842 2012-04-17 Pedro Alves <palves@redhat.com>
4844 * gdbtypes.h (FIELD_BITPOS): Rename to ...
4845 (FIELD_BITPOS_LVAL): ... this.
4846 (FIELD_BITPOS): New.
4847 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4848 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
4849 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
4851 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
4853 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
4854 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
4855 * target-descriptions.c (tdesc_gdb_type): Adjust to use
4858 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4860 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
4861 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
4862 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
4863 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
4864 * jv-lang.c (java_link_class_type): Likewise, once.
4865 * stabsread.c (read_enum_type): Likewise.
4867 2012-04-16 Yao Qi <yao@codesourcery.com>
4869 * common/agent.c (agent_run_command): Add one more parameter `len'.
4871 * common/agent.h: Update declaration.
4872 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4874 (linux_child_static_tracepoint_markers_by_strid): Ditto.
4876 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
4879 * value.c (value_actual_type): New function.
4880 * value.h (value_actual_type): New declaration.
4881 * varobj.c (update_type_if_necessary): New function.
4882 (varobj_create): Call value_actual_type instead of
4884 (install_dynamic_child): distinct changed and type changed MI variable
4886 (update_dynamic_varobj_children): Updated for install_dynamic_child
4887 change. All callers updated.
4888 (varobj_update): Support for MI variable object type change if
4889 the value changed and RTTI is used to determine the type.
4890 (create_child_with_value): Call value_actual_type instead of
4892 (adjust_value_for_child_access): Extended with a new parameter which
4893 specify whether the given value should be casted to enclosing type.
4894 All callers updated.
4896 2012-04-14 Yao Qi <yao@codesourcery.com>
4898 Import gnulib module inttypes from git
4899 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4900 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
4901 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
4902 gnulib/m4/inttypes-pri.m4
4903 * aclocal.m4, config.in, configure: Regenerated.
4904 * gnulib/Makefile.am: Update.
4905 * gnulib/Makefile.in: Update.
4906 * gnulib/m4/gnulib-cache.m4: Update.
4907 * gnulib/m4/gnulib-comp.m4: Update.
4908 * gnulib/inttypes.in.h: New.
4909 * gnulib/m4/inttypes-pri.m4: New.
4910 * gnulib/m4/inttypes.m4: New.
4912 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
4914 * infrun.c (resume): Update PC address to the real PC after
4915 preparing to do displaced stepping.
4917 2012-04-12 Doug Evans <dje@google.com>
4919 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
4920 All callers updated.
4922 2012-04-12 Mark Kettenis <kettenis@gnu.org>
4924 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
4926 2012-04-12 Doug Evans <dje@google.com>
4928 * dwarf2read.c (create_all_type_units): Renamed from
4929 create_debug_types_hash_table. All callers updated.
4931 * dwarf2read.c (create_signatured_type_table_from_index): Rename
4932 local type_sig to sig_type, type_offset to type_offset_in_tu.
4933 (hash_signatured_type): Renamed from hash_type_signature,
4934 all callers updated.
4935 (eq_signatured_type): Renamed from eq_type_signature,
4936 all callers updated.
4937 (create_debug_types_hash_table): Rename local type_sig to sig_type.
4938 (process_enumeration_scope): Ditto.
4939 (lookup_signatured_type_at_offset): Ditto.
4940 (load_full_type_unit, read_signatured_type): Ditto.
4942 2012-04-12 Yao Qi <yao@codesourcery.com>
4944 * remote.c (async_remote_interrupt): Correct function name in
4946 (async_remote_interrupt_twice): Ditto.
4948 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
4950 * source.c (find_and_open_source): Consistently pass resulting
4951 full path through xfullpath.
4953 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4955 Provide more specific displaced-stepping memory error message.
4956 * infrun.c (displaced_step_prepare): New variable status. Call
4957 target_read_memory instead of read_memory, provide more specific
4960 2012-04-11 Tristan Gingold <gingold@adacore.com>
4963 * darwin-nat.c (darwin_execvp): Revert previous patch.
4965 2012-04-11 Tristan Gingold <gingold@adacore.com>
4968 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
4971 2012-04-11 Tristan Gingold <gingold@adacore.com>
4973 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
4976 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
4978 New command 'explore' which helps explore values and types in
4980 * NEWS: Add an entry about the new 'explore' command.
4981 * data-directory/Makefile.in: Add gdb/command/explore.py
4982 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
4983 command using the GDB Python API.
4985 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
4987 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
4988 extension in jump target calculation.
4990 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
4992 * mips-tdep.c (mips32_next_pc): Handle JALX.
4994 2012-04-10 Yao Qi <yao@codesourcery.com>
4996 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
4998 2012-04-10 Yao Qi <yao@codesourcery.com>
5000 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
5001 and gnulib/m4/gnulib-tool.m4.
5003 2012-04-10 Doug Evans <dje@google.com>
5005 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
5006 (load_partial_dies): Clarify comment.
5007 (find_partial_die): Support rereading type units.
5008 Clarify CU handling, if we know offset is in CU, don't search for the
5009 containing CU. Add comment regarding memory waste.
5011 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
5013 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5014 i386/x32-avx and i386/x32-avx-linux.
5015 (i386/x32-expedite): New.
5016 (i386/x32-linux-expedite): Likewise.
5017 (i386/x32-avx-expedite): Likewise.
5018 (i386/x32-avx-linux-expedite): Likewise.
5019 ($(outdir)/i386/x32.dat): Likewise.
5020 ($(outdir)/i386/x32-linux.dat): Likewise.
5021 ($(outdir)/i386/x32-avx.dat): Likewise.
5022 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5024 * features/i386/x32-avx-linux.xml: New file.
5025 * features/i386/x32-avx.xml: Likewise.
5026 * features/i386/x32-core.xml: Likewise.
5027 * features/i386/x32-linux.xml: Likewise.
5028 * features/i386/x32.xml: Likewise.
5030 * features/i386/x32-avx-linux.c: New. Generated.
5031 * features/i386/x32-avx.c: Likewise.
5032 * features/i386/x32-linux.c: Likewise.
5033 * features/i386/x32.c: Likewise.
5034 * regformats/i386/x32-avx-linux.dat: Likewise.
5035 * regformats/i386/x32-avx.dat: Likewise.
5036 * regformats/i386/x32-linux.dat: Likewise.
5037 * regformats/i386/x32.dat: Likewise.
5039 2012-04-10 Tristan Gingold <gingold@adacore.com>
5041 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5042 code to kill the inferior.
5044 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5046 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5048 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5050 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5051 (yyvsp): New defines.
5052 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5054 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5056 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5058 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5060 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5063 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5065 * sparc64-tdep.c (sparc64_store_arguments)
5066 (sparc64_store_arguments): Fix coding style.
5068 2012-04-07 Mark Kettenis <kettenis@gnu.org>
5070 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5071 complex floats, adjust some related comments and tighten a related
5073 (sparc64_extract_return_value): Handle complex floats.
5075 2012-04-07 Doug Evans <dje@google.com>
5077 * dwarf2read.c (load_partial_dies): Change condition to assert.
5079 2012-04-06 Doug Evans <dje@google.com>
5081 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5084 2012-04-05 Kevin Buettner <kevinb@redhat.com>
5086 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5088 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5089 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5092 2012-04-05 Keith Seitz <keiths@redhat.com>
5094 * linespec.c (decode_compound): Remove.
5095 (enum offset_relative_sign): New enum.
5096 (struct line_offset): New struct.
5097 (struct linespec): New struct.
5098 (struct linespec_state): Move file_symtabs,
5099 user_filename, and user_function into struct linespec.
5100 Make result an anonymous struct holding vectors of
5101 symbolp and minsym_and_objfile_d.
5102 Add language member.
5103 (enum ls_token_type): New enum.
5104 (linespec_keywords): New array.
5105 (struct ls_token): New struct.
5106 (struct ls_parser): New struct.
5107 (linespec_lexer_lex_number): New function.
5108 (linespec_lexer_lex_keyword): New function.
5109 (is_ada_operator): New function.
5110 (skip_quote_char): New function.
5111 (copy_token_string): New function.
5112 (is_closing_quote_enclosed): New function.
5113 (find_parameter_list_end): New function.
5114 (linespec_lexer_lex_string): New function.
5115 (linespec_lexer_lex_one): New function.
5116 (linespec_lexer_consume_token): New function.
5117 (linespec_lexer_peek_token): New function.
5118 (cplusplus_error): Remove unused function.
5119 (find_methods): Update comment.
5120 (find_toplevel_char): Return const.
5121 (is_objc_method_format): Remove unused function.
5122 (find_toplevel_string): New function.
5123 (is_linespec_boundary): Remove.
5124 (symbol_not_found_error): New function.
5125 (find_method_overload_end): Remove function.
5126 (unexpected_linespec_error): New function.
5127 (keep_name_info): Remove.
5128 (linespec_parse_line_offset): New function.
5129 (linespec_parse_basic): New function.
5130 (canonicalize_linespec): New function.
5131 (decode_line_internal): Remove.
5132 (create_sals_line_offset): New function adapted from
5134 (convert_linespec_to_sals): New function.
5135 (parse_linespec): New function.
5136 (linespec_parser_new): New function.
5137 (linespec_state_destructor): Change parameter type to
5138 struct linespec_state *.
5139 Add language parameter.
5140 Remove freeing of moved members.
5141 (linespec_parser_delete): New function.
5142 (decode_line_full): Use parse_linespec and linespec_parser_new.
5143 (decode_line_1): Likewise.
5144 (decode_indirect): Rename to ...
5145 (linespec_expression_to_pc): ... this and rewrite
5146 to simply find CORE_ADDR, storing this result for later
5148 (locate_first_half): Remove.
5149 (deocde_objc): Add parameter LS.
5150 Initialize new struct collect_info members.
5151 Handle minimal symbols, too.
5152 (decode_compound): Delete.
5153 (lookup_prefix_sym): Rewrite.
5154 (compare_msymbols): New function.
5155 (find_method): Rewrite.
5156 Do not call cplusplus_error.
5157 (symtabs_from_filename): Rewrite.
5158 (collect_function_symbols): Delete.
5159 (find_function_symbols): Rewrite without ARGPTR-style
5161 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5162 (decode_dollar): Adapted and renamed to ...
5163 (linespec_parse_variable): ... this.
5164 (find_linespec_symbols): New function.
5165 (decode_label): Adapted and renamed to ...
5166 (find_label_symbols): ... this.
5167 (decode_digits_list_mode): Add and use LS argument.
5168 (decode_digits_ordinary): Likewise.
5169 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5170 If in list mode, allow any symbol class. Otherwise, only
5171 permit LOC_BLOCK symbols.
5172 (minsym_found): Update comments.
5173 (search_minsyms_for_name): Do not convert the matching symbol
5174 into a SAL. Simply push the symbol and objfile into the
5176 (decode_variable): Delete. Contents adapted into
5177 find_linespec_symbols.
5179 * cp-support.c (SKIP_SPACE): Remove.
5180 (operator_tokens): Remove unused global.
5181 (cp_validate_operator): Remove.
5182 * cp-support.h (cp_validate_operator): Remove declaration.
5184 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5186 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5187 for TYPE_VPTR_FIELDNO.
5188 * valprint.c (valprint_check_validity): Make it global, move the
5189 function comment ...
5190 * value.h (valprint_check_validity): ... to this new declaration.
5192 2012-04-02 Tristan Gingold <gingold@adacore.com>
5194 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5195 the STATE32 api for i386 state.
5196 (i386_darwin_store_inferior_registers): Likewise.
5198 2012-04-02 Tristan Gingold <gingold@adacore.com>
5200 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5202 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5205 2012-04-02 Tristan Gingold <gingold@adacore.com>
5208 * darwin-nat.c (darwin_execvp): Set binary preference.
5210 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5212 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5214 2012-03-30 Tom Tromey <tromey@redhat.com>
5216 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5217 of TRY_CATCH. Fix error handling.
5218 * python/py-value.c (convert_value_from_python): Move 'old'
5219 declaration to innermost scope.
5221 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5222 Andrey Smirnov <andrew.smirnov@gmail.com>
5224 -Wshadow warning fix.
5225 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5226 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5227 Adjust code accordingly.
5229 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5231 * ada-lang.c (symbol_completion_add): Rename parameter
5232 "encoded" into "encoded_p". Ajust code and documentation
5235 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5236 Andrey Smirnov <andrew.smirnov@gmail.com>
5238 -Wshadow warning fix.
5239 * ada-lang.c (symbol_completion_add): Rename parameter
5240 "wild_match" into wild_match_p. Update code and documentation
5243 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5245 * ada-lang.c (symbol_completion_match): Rename parameter
5246 "encoded" into "encoded_p". Ajust code and documentation
5249 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5250 Andrey Smirnov <andrew.smirnov@gmail.com>
5252 -Wshadow warning fix.
5253 * ada-lang.c (symbol_completion_match): Rename parameter
5254 "wild_match" into "wild_match_p". Adjust code and function
5255 documentation accordingly.
5257 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5258 Andrey Smirnov <andrew.smirnov@gmail.com>
5260 -Wshadow warning fix.
5261 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5262 "symbol_info" into "info". Adjust code accordingly.
5263 (ada_lookup_symbol): Likewise.
5265 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5267 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5268 of this function's documentation.
5270 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5271 Andrey Smirnov <andrew.smirnov@gmail.com>
5273 -Wshadow warning fix.
5274 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5275 variable into "wild_match_p". Adjust code accordingly.
5277 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5278 Andrey Smirnov <andrew.smirnov@gmail.com>
5280 -Wshadow warning fix.
5281 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5282 parameter into "wild_match_p". Adjust code accordingly.
5283 Document this parameter in the function description.
5285 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5286 Andrey Smirnov <andrew.smirnov@gmail.com>
5288 -Wshadow warning fix.
5289 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5290 "wild_match" parameter to "wild_match_p" (-Wshadow).
5292 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5294 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5295 in function documentation.
5297 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5298 Andrey Smirnov <andrew.smirnov@gmail.com>
5300 -Wshadow warning fix.
5301 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5302 variable into wild_match_p. Adjust code accordingly.
5304 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5305 Andrey Smirnov <andrew.smirnov@gmail.com>
5307 * ada-valprint.c (ada_val_print_1): Move the code handling
5308 TYPE_CODE_ENUM inside its own lexical block. Declare
5309 variables len and val there, instead of in the function's
5310 top level block. Avoid declaring deref_val again in a way
5311 that shadows another variable of the same name declared
5312 in one of the up-level blocks. Just re-use the up-level
5315 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5317 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5318 Replace block_found argument by symbol_info. Adjust
5319 implementation accordingly. Add function documentation.
5320 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5322 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5323 * ada-exp.y (write_object_renaming): Adjust to new
5324 ada_lookup_encoded_symbol API.
5326 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5328 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5331 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5333 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5334 (v850_register_name): Add the mpu and fpu register names.
5335 (v850e_register_name): Add the mpu and fpu register names.
5336 (v850e2_register_name): New function.
5337 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5340 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5342 * NEWS: Add entry for Ada varobj support.
5344 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5346 * varobj.c (default_value_is_changeable_p): New function,
5347 extracted from varobj_value_is_changeable_p. Add declaration.
5348 (ada_value_is_changeable_p): New function, extracted from
5349 varobj_value_is_changeable_p. Add declaration.
5350 (struct language_specific): New field "value_is_changeable_p".
5351 (languages): Add entries for new field.
5352 (varobj_create): Set language before calling install_new_value.
5353 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5354 "value_is_changeable_p" language callback.
5356 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5358 * ada-varobj.h, ada-varobj.c: New files.
5359 * Makefile.in (SFILES): Add ada-varobj.c.
5360 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5361 (COMMON_OBS): Add ada-varobj.o.
5363 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5365 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5366 (struct language_specific): New field "value_has_mutated".
5367 (languages): Set field "value_has_mutated" in each entry of array.
5368 (varobj_value_has_mutated): New function.
5369 (varobj_udpdate): Add handling of type mutation.
5370 (value_of_root): Add handling of type mutation.
5371 (ada_value_has_mutated): New function.
5373 2012-03-28 Pedro Alves <palves@redhat.com>
5375 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5376 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5378 2012-03-28 Tom Tromey <tromey@redhat.com>
5380 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5381 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5384 2012-03-28 Tom Tromey <tromey@redhat.com>
5386 * .dir-locals.el: New file.
5388 2012-03-28 Pedro Alves <palves@redhat.com>
5390 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5392 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5394 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5397 2012-03-27 Pedro Alves <palves@redhat.com>
5399 Eliminate struct ui_stream.
5401 * ui-out.h (struct ui_stream): Delete.
5402 (ui_out_field_stream): Adjust prototype.
5403 (ui_out_stream_new, ui_out_stream_delete)
5404 (make_cleanup_ui_out_stream_delete): Delete declarations.
5405 * ui-out.c (ui_out_field_stream): Change prototype to take a
5406 ui_file instead of a ui_stream. Adjust.
5407 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5408 (make_cleanup_ui_out_stream_delete): Delete.
5409 * breakpoint.c (print_breakpoint_location)
5410 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5411 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5412 * disasm.c (dump_insns): Ditto.
5413 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5415 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5416 ui_stream/ui_out_stream_new.
5417 * infcmd.c (print_return_value): Ditto.
5418 * osdata.c (info_osdata_command): Don't allocate a local
5420 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5421 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5422 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5423 allocate a local ui_stream.
5424 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5425 instead of ui_stream/ui_out_stream_new.
5426 (list_args_or_locals): Don't allocate a local ui_stream.
5427 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5428 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5429 ui_stream/ui_out_stream_new.
5430 * cli/cli-setshow.c (do_setshow_command): Ditto.
5432 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5434 * arm-linux-tdep.c (arm_linux_init_abi): Call
5435 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5436 * arm-tdep.c (arm_process_record): New function.
5437 (deallocate_reg_mem): New function.
5438 (decode_insn): New function.
5439 (thumb_record_branch): New function.
5440 (thumb_record_ldm_stm_swi(): New function.
5441 (thumb_record_misc): New function.
5442 (thumb_record_ld_st_stack): New function.
5443 (thumb_record_ld_st_imm_offset): New function.
5444 (thumb_record_ld_st_reg_offset(): New function.
5445 (thumb_record_add_sub_cmp_mov): New function.
5446 (thumb_record_shift_add_sub): New function.
5447 (arm_record_coproc_data_proc): New function.
5448 (arm_record_coproc): New function.
5449 (arm_record_b_bl): New function.
5450 (arm_record_ld_st_multiple): New function.
5451 (arm_record_ld_st_reg_offset): New function.
5452 (arm_record_ld_st_imm_offset): New function.
5453 (arm_record_data_proc_imm): New function.
5454 (arm_record_data_proc_misc_ld_str): New function.
5455 (arm_record_extension_space): New function.
5456 (arm_record_strx): New function.
5457 (sbo_sbz): New function.
5458 (struct insn_decode_record): New structure for arm insn record.
5459 (REG_ALLOC): New macro for reg allocations.
5460 (MEM_ALLOC): New macro for memory allocations.
5461 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5463 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5465 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5466 (store_register): Likewise.
5468 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5470 * MAINTAINERS (Write After Approval): Add myself to the list.
5472 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5474 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5475 Describe also the option "auto".
5477 2012-03-22 Richard Henderson <rth@redhat.com>
5479 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5480 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5482 2012-03-22 Richard Henderson <rth@redhat.com>
5484 * jit.c (jit_read_code_entry): Compute alignment and offset of
5485 int64_t member before computing entry_size.
5487 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5489 Python scripting: Add new method Value.referenced_value to
5490 gdb.Value which can dereference pointer as well as reference
5492 * NEWS: Add entry under 'Python scripting' about the new method
5493 Value.referenced_value on gdb.Value objects.
5494 * python/py-value.c (valpy_referenced_value): New function
5495 defining a new method on gdb.Value objects which can dereference
5496 pointer and reference values.
5498 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5500 * MAINTAINERS (Write After Approval): Add myself to the list.
5502 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5504 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5505 in addition to "main".
5507 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5509 * expression.h (op_name): Add declaration.
5510 * expprint.c (op_name): Remove declaration. Make non-static.
5511 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5513 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5515 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5517 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5518 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5519 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5520 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5521 (linux_nat_get_siginfo): Likewise.
5522 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5523 (linux_nat_get_siginfo): Likewise.
5524 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5525 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5526 * procfs.c (gdb_siginfo_t): Likewise.
5528 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5530 * .gitignore: Ignore more files.
5532 2012-03-20 Pedro Alves <palves@redhat.com>
5534 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5537 2012-03-20 Yao Qi <yao@codesourcery.com>
5539 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5542 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5544 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5545 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5546 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5548 * dwarf2expr.h (cu_offset, sect_offset): New types.
5549 (struct dwarf_expr_context_funcs) <dwarf_call>
5550 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5552 (struct dwarf_expr_context) <len>: Improve the comment.
5553 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5554 cu_offset and sect_offset.
5555 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5556 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5557 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5558 * dwarf2loc.h: Include dwarf2expr.h.
5559 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5561 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5562 Improve the comment.
5563 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5564 (struct signatured_type, struct line_header, struct partial_die_info)
5565 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5566 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5567 (get_die_type_at_offset, create_cus_from_index)
5568 (create_signatured_type_table_from_index, dw2_get_file_names)
5569 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5570 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5571 (create_debug_types_hash_table, process_psymtab_comp_unit)
5572 (load_partial_comp_unit, create_all_comp_units)
5573 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5574 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5575 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5576 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5577 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5578 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5579 (find_partial_die, read_attribute_value, lookup_die_type)
5580 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5581 (is_ref_attr): New function comment.
5582 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5583 Use cu_offset and sect_offset.
5584 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5585 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5586 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5587 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5588 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5589 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5590 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5593 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5596 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5597 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5599 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5601 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5603 * NEWS: Describe new options --init-command=FILE, -ix and
5604 --init-eval-command=COMMAND, -iex.
5605 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5606 CMDARG_INIT_COMMAND.
5607 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5608 "init-command", "init-eval-command", "ix" and "iex" to the variable
5609 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5610 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5611 (print_gdb_help): Describe --init-command=FILE, -ix and
5612 --init-eval-command=COMMAND, -iex.
5614 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5617 * main.c (struct cmdarg): Move it here from main. Add more comments.
5618 (cmdarg_s, VEC (cmdarg_s)): New.
5619 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5620 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5621 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5622 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5625 2012-03-19 Tom Tromey <tromey@redhat.com>
5627 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5629 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5632 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5635 2012-03-16 Chris January <chris.january@allinea.com>
5637 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5640 2012-03-16 Chris January <chris.january@allinea.com>
5642 * source.c (add_path): Use memmove instead of strcpy because the
5645 2012-03-16 Joel Brobecker <brobecker@adacore.com>
5647 * value.h (set_value_parent): Add declaration.
5648 * value.c (set_value_parent): New function.
5649 (value_address): If VALUE->PARENT is not NULL, then use it as
5650 the base address instead of VALUE->LOCATION.address.
5651 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5652 the same as OBJ's address. Adjust V's offset accordingly.
5655 2012-03-16 Gary Benson <gbenson@redhat.com>
5657 PR breakpoints/10738
5658 * dwarf2read.c (use_deprecated_index_sections): New global.
5659 (struct partial_die_info): New member may_be_inlined.
5660 (read_partial_die): Set may_be_inlined where appropriate.
5661 (add_partial_subprogram): Add partial symbols for partial
5662 DIEs that may be inlined.
5663 (new_symbol_full): Add inlined subroutines to the current
5665 (write_psymtabs_to_index): Bump version number.
5666 (dwarf2_read_index): Read only version 6 indices unless
5667 use_deprecated_index_sections is set.
5668 * linespec.c (symbol_and_data_callback): New structure.
5669 (iterate_inline_only): New function.
5670 (iterate_over_all_matching_symtabs): New argument
5671 "include_inline". If nonzero, also call the callback for
5672 symbols representing inlined subroutines.
5673 (lookup_prefix_sym): Pass extra argument to the above.
5674 (find_function_symbols): Likewise.
5675 (add_matching_symbols_to_info): Likewise.
5676 * NEWS: Mention that GDB can now set breakpoints on inlined
5679 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5681 * p-typeprint.c (pascal_type_print_method_args):
5682 Fix display of parameter of methods.
5684 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5686 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5687 Add missing prototype.
5689 2012-03-16 Yao Qi <yao@codesourcery.com>
5690 Jan Kratochvil <jan.kratochvil@redhat.com>
5692 Fix false compilation warning.
5693 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5695 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5696 Pedro Alves <pedro@codesourcery.com>
5698 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5699 (arm_register_g_packet_guesses): New function.
5700 (arm_gdbarch_init): Don't force a target description with
5701 registers when the executable is detected as M-profile. Instead
5702 set gdbarch->tdep->is_m. Register `g' packet guesses.
5703 (_initialize_arm_tdep): Initialize the new target description.
5704 * features/arm-with-m-fpa-layout.xml: New description.
5705 * features/arm-with-m-fpa-layout.c: New, generated.
5707 2012-03-15 Joel Brobecker <brobecker@adacore.com>
5709 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5710 Update function description.
5711 (insert_bp_location): Do not wipe bl->target_info out.
5712 * mem-break.c: #include "gdb_string.h".
5713 (default_memory_insert_breakpoint): Do not call target_read_memory
5714 with a pointer to the breakpoint's shadow_contents buffer. Use
5715 a local buffer instead.
5716 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5718 2012-03-15 Tom Tromey <tromey@redhat.com>
5720 * NEWS: Mention "info vtbl", not "info vtable".
5721 * cp-support.c (info_vtbl_command): Fix comment.
5722 (_initialize_cp_support): Fix text.
5724 2012-03-15 Tom Tromey <tromey@redhat.com>
5726 * cp-valprint.c (cp_print_value_fields): Use
5727 print_function_pointer_address for vtable slot.
5729 2012-03-15 Tom Tromey <tromey@redhat.com>
5731 * gnu-v3-abi.c (struct value_and_voffset): New.
5732 (hash_value_and_voffset, eq_value_and_voffset)
5733 (compare_value_and_voffset, compute_vtable_size)
5734 (print_one_vtable, gnuv3_print_vtable): New functions.
5735 (init_gnuv3_ops): Initialize 'print_vtable' field.
5736 * cp-support.c (info_vtbl_command): New function.
5737 (_initialize_cp_support): Add "info vtbl".
5738 * cp-abi.h (cplus_print_vtable): Declare.
5739 (struct cp_abi_ops) <print_vtable>: New field.
5740 * cp-abi.c (cplus_print_vtable): New function.
5743 2012-03-15 Tom Tromey <tromey@redhat.com>
5745 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5746 iterate_over_symbols.
5748 2012-03-14 Doug Evans <dje@google.com>
5750 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5751 DW_OP_GNU_parameter_ref.
5753 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5755 Fix double prompt of 'interpreter-exec mi'.
5756 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5757 (mi_interpreter_resume): use it.
5758 (mi_execute_command_input_handler): New function.
5759 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5760 mi_execute_command_input_handler.
5762 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
5764 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5766 (darwin_debug_port_info): Make static.
5767 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5768 * machoread.c (_initialize_machoread): Add prototype.
5769 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5770 (i386_darwin_set_control, i386_darwin_get_control)
5771 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5772 i386_darwin_get_status, i386_darwin_get_control):
5773 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5775 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5777 * ax-gdb.c (gen_usual_unary): Remove special handling of
5778 enum and bool types.
5780 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5782 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5784 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5786 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5788 2012-03-13 Chris January <chris.january@allinea.com>
5790 * aix-thread.c (fill_sprs): Store the floating point registers
5791 at the correct offsets into vals.
5793 2012-03-13 Doug Evans <dje@google.com>
5795 * NEWS: Mention symbol-reloading has been deleted.
5796 * symfile.c (symbol_reloading): Delete.
5797 (show_symbol_reloading): Delete.
5798 (_initialize_symfile): Delete set/show symbol-reloading.
5800 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5801 read_in_chain until we have successfully read it in.
5802 (load_full_comp_unit): Ditto.
5803 (read_signatured_type): Add comment.
5805 2012-03-13 Chris January <chris.january@allinea.com>
5807 * stabsread.c (fix_common_block): Change type of valu argument
5810 2012-03-13 Chris January <chris.january@allinea.com>
5812 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5815 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5817 * common/linux-procfs.c (linux_proc_get_int): New, from
5818 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5820 (linux_proc_get_tgid): Only call linux_proc_get_int.
5821 (linux_proc_get_tracerpid): New.
5822 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5823 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5824 linux_proc_pid_has_state.
5825 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5826 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5827 (linux_ptrace_attach_warnings): New.
5828 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5830 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5831 (linux_nat_attach): New variables ex, buffer, message and message_s.
5832 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5834 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5836 * Makefile.in (linux-ptrace.o): New.
5837 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5839 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5840 * common/linux-ptrace.c: New file.
5841 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5842 * config/arm/linux.mh: Likewise.
5843 * config/i386/linux.mh: Likewise.
5844 * config/i386/linux64.mh: Likewise.
5845 * config/ia64/linux.mh: Likewise.
5846 * config/m32r/linux.mh: Likewise.
5847 * config/m68k/linux.mh: Likewise.
5848 * config/mips/linux.mh: Likewise.
5849 * config/pa/linux.mh: Likewise.
5850 * config/powerpc/linux.mh: Likewise.
5851 * config/powerpc/ppc64-linux.mh: Likewise.
5852 * config/powerpc/spu-linux.mh: Likewise.
5853 * config/s390/s390.mh: Likewise.
5854 * config/sparc/linux.mh: Likewise.
5855 * config/sparc/linux64.mh: Likewise.
5856 * config/xtensa/linux.mh: Likewise.
5857 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
5858 common/linux-procfs.c.
5859 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
5861 2012-03-13 Hui Zhu <teawater@gmail.com>
5862 Pedro Alves <palves@redhat.com>
5864 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
5865 CREATE_BREAKPOINT_FLAGS_INSERTED.
5866 (create_breakpoint_sal, create_breakpoints_sal)
5867 (base_breakpoint_create_breakpoints_sal)
5868 (tracepoint_create_breakpoints_sal)
5869 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
5871 (break_command_1, handle_gnu_v3_exceptions, trace_command)
5872 (ftrace_command, strace_command): Adjust.
5873 (create_tracepoint_from_upload): Pass
5874 CREATE_BREAKPOINT_FLAGS_INSERTED.
5875 * breakpoint.h (enum breakpoint_create_flags): New.
5876 (create_breakpoint): New flags parameter.
5877 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
5878 * python/py-breakpoint.c (bppy_init): Adjust.
5879 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
5880 * spu-tdep.c (spu_catch_start): Adjust.
5882 2012-03-13 Pedro Alves <palves@redhat.com>
5883 Hui Zhu <teawater@gmail.com>
5884 Yao Qi <yao@codesourcery.com>
5886 * remote.c (struct remote_state): New field `starting_up'.
5887 (remote_start_remote): Set and clear it.
5888 (remote_can_download_tracepoint): If starting up, return false.
5890 2012-03-13 Yao Qi <yao@codesourcery.com>
5892 * inferior.h (struct inferior): Remove fields any_syscall_count,
5893 syscalls_counts and total_syscalls_count. Move them to new
5894 struct catch_syscall_inferior_data in breakpoint.c.
5895 * breakpoint.c: Call DEF_VEC_I(int).
5896 (struct catch_syscall_inferior_data): New.
5897 (get_catch_syscall_inferior_data): New.
5898 (catch_syscall_inferior_data_cleanup): New.
5899 (insert_catch_syscall): Update to access data in
5900 struct catch_syscall_inferior_data.
5901 (insert_catch_syscall): Likewise.
5902 (remove_catch_syscall): Likewise.
5903 (remove_catch_syscall): Likewise.
5904 (is_syscall_catchpoint_enabled): Likewise.
5905 (add_catch_command): Likewise.
5906 (_initialize_breakpoint): Register cleanup.
5907 * breakpoint.h: Removed DEF_VEC_I(int).
5908 * dwarf2loc.c: Call DEF_VEC_I(int).
5909 * mi/mi-main.c: Likewise.
5911 2012-03-12 Mark Kettenis <kettenis@gnu.org>
5913 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
5915 2012-03-12 Chris January <chris.january@allinea.com>
5917 * aix-thread.c (_initialize_aix_thread): Add prototype.
5918 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
5919 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
5921 2012-03-12 Joel Brobecker <brobecker@adacore.com>
5923 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
5924 include of "amd64-nat.h".
5926 2012-03-12 Tom Tromey <tromey@redhat.com>
5928 * buildsym.c (record_pending_block): Now static.
5929 * buildsym.h: (record_pending_block): Remove.
5931 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
5933 * amd64bsd-nat.c: Include amd64bsd-nat.h.
5935 2012-03-09 Tom Tromey <tromey@redhat.com>
5937 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
5938 producer_is_gxx_lt_4_6>: New fields.
5939 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
5941 2012-03-09 Tom Tromey <tromey@redhat.com>
5943 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
5945 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5947 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
5950 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5952 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
5954 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5956 Fix -Wmissing-prototypes build.
5957 * arm-linux-nat.c (get_thread_id): Make it static.
5958 * xtensa-linux-nat.c (get_thread_id): Likewise.
5960 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5962 * server.c (process_point_options): If a conditional expression
5963 is found, only print a message if remote_debug is nonzero.
5965 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
5967 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
5968 of internal error for unknown/unsupported types.
5970 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5972 Fix CU relative vs. absolute DIE offsets.
5973 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
5974 offset to offset_in_cu.
5975 * dwarf2read.c (process_enumeration_scope): Add CU offset to
5977 (dwarf2_fetch_die_location_block): Rename parameter offset to
5978 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
5980 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5982 * libunwind-frame.c: Rename to ...
5983 * ia64-libunwind-tdep.c: ... here.
5984 * libunwind-frame.h: Rename to ...
5985 * ia64-libunwind-tdep.h: ... here.
5986 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
5987 ia64-libunwind-tdep.h.
5988 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
5989 * README (--with-libunwind): Rename to ...
5990 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
5991 * config.in: Regenerate.
5992 * configure: Regenerate.
5993 * configure.ac: New option --with-libunwind-ia64, make the
5994 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
5995 Remove AC_DEFINE for HAVE_LIBUNWIND.
5996 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
5997 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
5998 Rename libunwind-frame in the general comment.
5999 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
6000 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
6001 Move forward declarations inside #ifndef. Rename libunwind-frame in
6002 the general comment.
6003 * ia64-tdep.c: Rename libunwind-frame.h #include to
6004 ia64-libunwind-tdep.h.
6005 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
6006 (ia64_libunwind_descr): Rename libunwind-frame to
6007 ia64-libunwind-tdep in these function comments.
6008 * ia64-tdep.h: Rename libunwind-frame.h #include to
6009 ia64-libunwind-tdep.h.
6010 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6011 ia64-libunwind-tdep in that data comment.
6013 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6015 * libunwind-frame.h (struct frame_unwind): New declaration.
6017 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6019 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6020 "set breakpoint condition-evaluation" command.
6022 2012-03-08 Tristan Gingold <gingold@adacore.com>
6024 * sparc-stub.c: Move to stubs/
6025 * sh-stub.c: Likewise.
6026 * m68k-stub.c: Likewise.
6027 * m32r-stub.c: Likewise.
6028 * i386-stub.c: Likewise.
6030 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6032 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6033 linux_get_siginfo_type.
6035 * m68klinux-nat.c: Include "gdb_proc_service.h".
6036 (PTRACE_GET_THREAD_AREA): Define.
6037 (ps_get_thread_area): New function.
6039 2012-03-08 Yao Qi <yao@codesourcery.com>
6041 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6043 (remote_query_attached): Likewise.
6044 (remote_static_tracepoint_marker_at): Likewise.
6045 (remote_set_permissions): Likewise.
6046 (remote_detach_1, extended_remote_attach_1): Likewise.
6047 (send_g_packet, remote_vkill): Likewise.
6048 (extended_remote_disable_randomization): Likewise.
6049 (remote_add_target_side_condition): Likewise.
6050 (remote_insert_breakpoint): Likewise.
6051 (remote_remove_breakpoint): Likewise.
6052 (remote_insert_watchpoint): Likewise.
6053 (remote_remove_watchpoint): Likewise.
6054 (remote_insert_hw_breakpoint): Likewise.
6055 (remote_insert_hw_breakpoint): Likewise.
6056 (remote_remove_hw_breakpoint): Likewise.
6057 (remote_download_command_source): Likewise.
6058 (remote_download_tracepoint): Likewise.
6059 (remote_download_trace_state_variable): Likewise.
6060 (remote_disable_tracepoint): Likewise.
6061 (remote_trace_set_readonly_regions): Likewise.
6062 (remote_get_tracepoint_status): Likewise.
6063 (remote_trace_find): Likewise.
6064 (remote_get_trace_state_variable_value): Likewise.
6065 (remote_set_disconnected_tracing): Likewise.
6066 (remote_set_circular_trace_buffer): Likewise.
6067 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6068 (remote_use_agent): Likewise.
6069 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6072 2012-03-07 Pedro Alves <palves@redhat.com>
6074 * NEWS: Mention QProgramSignals.
6075 * inferior.h (update_signals_program_target): Declare.
6076 * infrun.c: (update_signals_program_target): New.
6077 (handle_command): Update the target of the new program signals
6079 * remote.c (PACKET_QProgramSignals): New enum.
6080 (last_program_signals_packet): New global.
6081 (remote_program_signals): New.
6082 (remote_start_remote): Update the target with the program signals
6084 (remote_protocol_features): Add entry for QPassSignals.
6085 (remote_open_1): Free anc clear last_program_signals_packet.
6086 (init_remote_ops): Install remote_program_signals.
6087 * target.c (update_current_target): Adjust.
6088 (target_program_signals): New.
6089 * target.h (struct target_ops) <to_program_signals>: New field.
6090 (target_program_signals): Declare.
6092 2012-03-07 Pedro Alves <palves@redhat.com>
6094 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6097 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6099 * m68klinux-nat.c (getregs_supplies): Make static.
6100 (getfpregs_supplies): Likewise.
6101 (have_ptrace_getregs): Likewise.
6103 2012-03-06 Joel Brobecker <brobecker@adacore.com>
6105 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6106 in call to get_die_type_at_offset.
6108 2012-03-06 Stan Shebs <stan@codesourcery.com>
6110 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6111 * mi/mi-cmd-disas.c: Ditto.
6112 * mi/mi-cmd-env.c: Ditto.
6113 * mi/mi-cmd-file.c: Ditto.
6114 * mi/mi-cmd-stack.c: Ditto.
6115 * mi/mi-cmd-target.c: Ditto.
6116 * mi/mi-cmd-var.c: Ditto.
6117 * mi/mi-cmds.c: Ditto.
6118 * mi/mi-cmds.h: Ditto.
6119 * mi/mi-console.c: Ditto.
6120 * mi/mi-getopt.c: Ditto.
6121 * mi/mi-getopt.h: Ditto.
6122 * mi/mi-interp.c: Ditto.
6123 * mi/mi-main.c: Ditto.
6124 * mi/mi-out.c: Ditto.
6125 * mi/mi-parse.c: Ditto.
6126 * mi/mi-parse.h: Ditto.
6127 * mi/mi-symbol-cmds.c: Ditto.
6129 * mi/mi-getopt.h: Move mi_opt struct up.
6130 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6132 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6134 2012-03-06 Tom Tromey <tromey@redhat.com>
6136 * proc-service.c (ps_pglobal_lookup): Set the current program
6139 2012-03-06 Pedro Alves <palves@redhat.com>
6141 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6143 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6145 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6147 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6150 * common/linux-osdata.c (linux_common_core_of_thread): New function
6152 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6153 call by linux_common_core_of_thread.
6154 (linux_nat_core_of_thread_1): Remove.
6155 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6156 * linux-thread-db.c: Include linux-osdata.h.
6157 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6158 linux_common_core_of_thread.
6160 2012-03-05 Tom Tromey <tromey@redhat.com>
6162 * value.c (value_primitive_field): Don't fetch contents for
6165 2012-03-05 Tom Tromey <tromey@redhat.com>
6167 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6169 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6171 * s390-nat.c: Include "gregset.h".
6173 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6175 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6176 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6177 (libunwind_load): New variable so_error, use it for dlerror. Try to
6178 load also LIBUNWIND_SO_7.
6180 2012-03-05 Pedro Alves <palves@redhat.com>
6182 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6183 is not NULL, and remove resulting dead code.
6185 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6187 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6188 prologue to sh_analyze_prologue.
6189 (sh_analyze_prologue): Make better use of such an upper limit, and
6190 generally be more cautious about accessing memory.
6192 2012-03-05 Tom Tromey <tromey@redhat.com>
6194 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6195 _initialize_ia64_hpux_tdep.
6197 2012-03-05 Pedro Alves <palves@redhat.com>
6201 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6202 the register state is clear, supply explicit zero, instead of
6203 marking the register unavailable.
6205 2012-03-05 Tristan Gingold <gingold@adacore.com>
6207 * NEWS: Mention OpenVMS ia64 new target.
6209 2012-03-05 Tristan Gingold <gingold@adacore.com>
6211 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6212 (ia64_unw_accessors, ia64_unw_rse_accessors)
6213 (ia64_libunwind_descr): Declare.
6214 * ia64-vms-tdep.c: New file.
6215 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6216 (ia64_libunwind_descr): Make them public.
6217 * configure.tgt: Add ia64-*-*vms*.
6218 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6219 (ALLDEPFILES): Add ia64-vms-tdep.c
6221 2012-03-05 Tristan Gingold <gingold@adacore.com>
6223 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6224 * remote.c (PACKET_qXfer_uib): New enum value.
6225 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6226 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6227 (_initialize_remote): Call add_packet_config_cmd for
6230 2012-03-05 Tristan Gingold <gingold@adacore.com>
6232 * osabi.c (gdb_osabi_names): Add OpenVMS.
6233 (generic_elf_osabi_sniffer): Likewise.
6234 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6236 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6238 Removed unused code.
6239 * libunwind-frame.c (libunwind_frame_unwind)
6240 (libunwind_frame_base_address): Remove.
6241 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6243 2012-03-04 Yao Qi <yao@codesourcery.com>
6245 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6246 remove trailing new line.
6247 (agent_run_command, agent_run_command): Add _ markup.
6248 (agent_capability_check): Likewise.
6250 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6252 * breakpoint.c (set_condition_evaluation_mode): Set
6253 CONDITION_EVALUATION_MODE unconditionally.
6255 2012-03-03 Yao Qi <yao@codesourcery.com>
6257 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6258 * common/agent.h: Update declaration.
6259 * inf-child.c (inf_child_use_agent): New.
6260 (inf_child_can_use_agent): New.
6261 (inf_child_target): Initialize fields `to_use_agent'
6262 and `to_can_use_agent'.
6263 * agent.c (agent_new_objfile): New.
6264 (_initialize_agent): Add agent_new_objfile to new_objfile
6267 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6269 (linux_target_install_ops): Initialize field
6270 `to_static_tracepoint_markers_by_strid'.
6271 * remote.c (free_current_marker): Move it to ...
6272 * tracepoint.c (free_current_marker): ... here. New.
6273 (cleanup_target_stop): New.
6274 * tracepoint.h: Declare free_current_marker.
6275 * NEWS: Add one entry about `info static-tracepoint-marker'.
6277 2012-03-03 Yao Qi <yao@codesourcery.com>
6279 * common/agent.c (agent_loaded_p): New.
6280 (agent_look_up_symbols): New global.
6281 * common/agent.h: Declare agent_loaded_p.
6283 2012-03-03 Yao Qi <yao@codesourcery.com>
6285 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6286 (agent_capability_check, agent_capability_invalidate): New.
6287 (symbol_list): New array element.
6288 * common/agent.h (enum agent_capa): New.
6289 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6291 2012-03-03 Yao Qi <yao@codesourcery.com>
6293 * target.h (struct target_ops) <to_use_agent>: New field.
6294 (struct target_ops) <to_can_use_agent>: New field.
6295 (target_use_agent, target_can_use_agent): New macro.
6296 * target.c (update_current_target): Update.
6297 * remote.c: New enum `PACKET_QAgent'.
6298 (remote_protocol_features): Add a new element.
6299 (remote_use_agent, remote_can_use_agent): New.
6300 (init_remote_ops): Initialize field `can_use_agent' with
6301 remote_can_use_agent. Intiailize field `use_agent' with
6303 * common/agent.c (use_agent): New global.
6304 * common/agent.h: Declare it.
6305 * tracepoint.c (info_static_tracepoint_markers_command): Add
6307 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6308 (COMMON_OBS): Add common/agent.o and agent.o
6309 (common-agent.o): New rule.
6312 2012-03-03 Yao Qi <yao@codesourcery.com>
6314 * common/agent.c: New.
6315 * common/agent.h: New.
6316 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6318 * configure, configh.in: Regenerated.
6320 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6322 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6323 unless it exists for this architecture.
6325 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6327 * language.h (struct language_defn): New "method" la_read_var_value.
6328 * findvar.c: #include "language.h".
6329 (default_read_var_value): Renames read_var_value. Rewrite
6330 function description.
6331 (read_var_value): New function.
6332 * value.h (default_read_var_value): Add prototype.
6333 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6335 (ada_language_defn): Add entry for la_read_var_value.
6336 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6337 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6338 language_defn structures to add entry for new la_read_var_value
6341 2012-03-02 Tom Tromey <tromey@redhat.com>
6342 Pedro Alves <palves@redhat.com>
6344 PR breakpoints/13776:
6345 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6347 (delete_longjmp_breakpoint_at_next_stop): New.
6348 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6349 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6350 before deleting the inferior. Add comments.
6351 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6352 breakpoints immediately, but only on next stop. Move that code
6353 next to where we mark other breakpoints for deletion.
6355 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6357 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6359 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6362 2012-03-02 Pedro Alves <palves@redhat.com>
6364 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6366 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6368 Fix -Wmissing-prototypes build.
6369 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6370 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6371 (gdbsim_has_memory): Likewise.
6373 2012-03-02 Yao Qi <yao@codesourcery.com>
6375 Fix -Wmissing-prototypes build.
6376 * charset.c (phony_iconv_open): Make static.
6377 (phony_iconv_close, phony_iconv): Likewise.
6378 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6379 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6381 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6382 * ser-mingw.c (create_select_thread): Make static.
6383 * windows-termcap.c (tgetent): New prototype.
6384 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6386 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6388 Fix -Wmissing-prototypes build.
6389 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6390 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6391 (_initialize_loadable): New prototypes.
6393 2012-03-02 Doug Evans <dje@google.com>
6395 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6396 abbrev table, read_comp_unit will do it.
6398 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6400 Fix -Wmissing-prototypes build.
6401 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6402 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6403 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6404 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6405 (_initialize_arm_symbian_tdep): New prototype.
6406 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6407 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6408 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6410 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6411 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6413 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6414 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6415 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6417 * moxie-tdep.c (moxie_process_record): Likewise.
6418 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6419 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6420 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6421 (_initialize_rl78_tdep): New prototype.
6422 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6423 (_initialize_rx_tdep): New prototype.
6424 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6425 (_initialize_darwin_solib): New prototype.
6426 * solib-spu.c: Include solib-spu.h.
6427 (_initialize_spu_solib): New prototype.
6428 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6429 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6430 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6431 (tic6x_software_single_step): Make it static.
6432 (_initialize_tic6x_tdep): New prototype.
6434 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6436 Fix -Wmissing-prototypes build.
6437 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6438 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6440 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6442 Fix -Wmissing-prototypes build.
6443 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6444 (frv_have_stopped_data_address): Remove.
6446 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6448 Fix -Wmissing-prototypes build.
6449 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6450 * sh-tdep.c: Include sh64-tdep.h.
6451 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6452 * sh64-tdep.c: Include sh64-tdep.h.
6453 * sh64-tdep.h: New file.
6455 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6457 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6459 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6461 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6462 sp_regnum once the gdbarch_init_osabi hook has been called.
6464 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6466 * mips-tdep.c (mips32_bc1_pc): New function.
6467 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6468 BPOSGE32 and BPOSGE64 instructions.
6469 (deal_with_atomic_sequence): Likewise.
6470 (mips32_instruction_has_delay_slot): Likewise.
6472 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6473 Chris Dearman <chris@mips.com>
6474 Maciej W. Rozycki <macro@codesourcery.com>
6475 Joseph Myers <joseph@codesourcery.com>
6477 * features/mips-dsp.xml: New file.
6478 * features/mips64-dsp.xml: New file.
6479 * features/mips-dsp-linux.xml: New file.
6480 * features/mips64-dsp-linux.xml: New file.
6481 * features/Makefile (WHICH): Add mips-dsp-linux and
6483 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6484 * features/mips-dsp-linux.c: New file.
6485 * features/mips64-dsp-linux.c: New file.
6486 * regformats/mips-dsp-linux.dat: New file.
6487 * regformats/mips64-dsp-linux.dat: New file.
6488 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6490 (mips64_linux_register_addr): Likewise.
6491 (mips64_linux_regsets_fetch_registers): Likewise.
6492 (mips64_linux_regsets_store_registers): Likewise.
6493 (mips64_linux_fetch_registers): Update call to
6494 mips64_linux_regsets_fetch_registers.
6495 (mips64_linux_store_registers): Update call to
6496 mips64_linux_regsets_store_registers.
6497 (mips_linux_read_description): Probe for DSP registers.
6498 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6499 and initialize_tdesc_mips64_dsp_linux.
6500 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6501 Remove padding of no longer used embedded register slots.
6502 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6503 (MIPS_RESTART_REGNUM): Redefine enum value.
6504 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6506 (mips_tx39_reg_names): Likewise.
6507 (mips_linux_reg_names): New array of register names for Linux
6509 (mips_register_name): Check for a null pointer in
6510 mips_processor_reg_names and return an empty string.
6511 (mips_register_type): Exclude embedded registers for the IRIX
6513 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6514 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6516 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6517 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6518 (mips_gdbarch_init): Likewise. Initialize internal register
6519 indices for the Linux ABI. Use dynamic numbers to refer to
6520 registers, as applicable, while parsing the target description.
6521 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6523 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6525 * frame.h (read_frame_register_unsigned): Fix typo in function
6528 2012-03-01 Pedro Alves <palves@redhat.com>
6530 * jit-reader.in [!__cplusplus]
6531 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6533 2012-03-01 Pedro Alves <palves@redhat.com>
6535 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6536 * configure: Regenerate.
6538 2012-03-01 Pedro Alves <palves@redhat.com>
6540 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6541 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6542 (ftrace_command, strace_command): Make static.
6543 * d-lang.c (_initialize_d_language): Declare.
6544 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6545 * dwarf2loc.c (_initialize_dwarf2loc):
6546 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6547 * exec.c (exec_get_section_table): Make static.
6548 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6549 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6550 * inferior.c (remove_inferior_command, add_inferior_command)
6551 (clone_inferior_command): Make static.
6552 * linux-nat.c (linux_nat_thread_address_space)
6553 (linux_nat_core_of_thread): Make static.
6554 * linux-tdep.c (_initialize_linux_tdep): Declare.
6555 * objc-lang.c (_initialize_objc_lang): Declare.
6556 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6558 (_initialize_opencl_language): Declare.
6559 * record.c (_initialize_record): Declare.
6560 * remote.c (demand_private_info, remote_get_tib_address)
6561 (remote_supports_cond_tracepoints)
6562 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6564 * skip.c (_initialize_step_skip): Declare.
6565 * symtab.c (skip_prologue_using_lineinfo): Make static.
6566 * tracepoint.c (delete_trace_state_variable)
6567 (trace_variable_command, delete_trace_variable_command)
6568 (get_uploaded_tsv, find_matching_tracepoint_location)
6569 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6571 * value.c (pack_unsigned_long): Make static.
6572 * varobj.c (varobj_ensure_python_env): Make static.
6573 * windows-tdep.c (_initialize_windows_tdep): Declare.
6574 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6576 2012-03-01 Pedro Alves <palves@redhat.com>
6578 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6580 (linux_init_abi): Install it as has_shared_address_space gdbarch
6583 2012-03-01 Pedro Alves <palves@redhat.com>
6585 * observer.c (observer_test_first_notification_function)
6586 (observer_test_second_notification_function)
6587 (observer_test_third_notification_function): Add declarations.
6589 2012-03-01 Pedro Alves <palves@redhat.com>
6591 * common/signals.c (default_target_signal_to_host)
6592 (default_target_signal_from_host): Move ...
6593 * arch-utils.c: ... here.
6594 * arch-utils.h (default_target_signal_to_host)
6595 (default_target_signal_from_host): Declare.
6597 * common/signals.c (target_signal_from_command): Move ...
6598 * infrun.c: ... here.
6599 * inferior.h (target_signal_from_command): Declare.
6600 * target.h (target_signal_from_command)
6601 (default_target_signal_from_host, default_target_signal_to_host):
6602 Delete declarations.
6604 * common/signals.c (_initialize_signals): Delete.
6606 2012-03-01 Pedro Alves <palves@redhat.com>
6608 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6609 both __cplusplus and !__cplusplus.
6611 2012-03-01 Pedro Alves <palves@redhat.com>
6613 * psymtab.c (find_and_open_source): Delete declaration.
6614 * source.c (find_and_open_source): Move comment ...
6615 * source.h (find_and_open_source): ... to this new declaration.
6617 2012-03-01 Pedro Alves <palves@redhat.com>
6619 * inline-frame.c: Include inline-frame.h.
6621 2012-03-01 Pedro Alves <palves@redhat.com>
6623 * tui/tui-data.c (set_gen_win_origin): Delete.
6624 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6625 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6627 2012-03-01 Pedro Alves <palves@redhat.com>
6629 * remote.c (encode_actions): Delete declaration.
6630 * tracepoint.c (encode_actions): Make extern.
6631 * tracepoint.h (encode_actions): Declare.
6633 2012-03-01 Pedro Alves <palves@redhat.com>
6635 * python/py-breakpoint.c: Include python.h.
6636 * python/py-continueevent.c (create_continue_event_object): Make
6638 * python/py-lazy-string.c (stpy_get_type): Make static.
6639 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6641 * python/py-utils.c (unicode_to_target_python_string): Make
6643 * python/py-value.c: Include python.h.
6645 2012-03-01 Pedro Alves <palves@redhat.com>
6647 * inferior.c (delete_threads_of_inferior): Delete.
6649 2012-03-01 Pedro Alves <palves@redhat.com>
6651 Import fallback definitions from glibc.
6653 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6654 ps_prochandle): Forward declare.
6655 (ps_err_e): Use glibc's comments.
6656 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6657 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6658 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6659 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6660 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6661 (struct ps_prochandle): Adjust comment.
6663 2012-03-01 Pedro Alves <palves@redhat.com>
6665 * ada-lang.c (ada_modulus_from_name): Delete.
6666 * ada-lex.l (lexer_init): Make static.
6668 2012-03-01 Pedro Alves <palves@redhat.com>
6672 * frame.c (read_frame_register_unsigned): New.
6673 * frame.h (read_frame_register_unsigned): Declare.
6674 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6676 (print_i387_control_word): New parameter `control_p'. Handle it.
6677 (i387_print_float_info): Handle unavailable float registers.
6679 2012-03-01 Keith Seitz <keiths@redhat.com>
6681 * linespec.c (decode_line_2): Sort the list of methods
6682 alphabetically before presenting the user with a selection
6685 2012-03-01 Doug Evans <dje@google.com>
6687 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6689 (dwarf2_read_abbrevs): Remove corresponding initialization.
6691 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
6693 * NEWS: Mention new python command class gdb.COMMAND_USER.
6694 * cli/cli-cmds.c (show_user): Print error when used on a python
6696 (init_cli_cmds): Update documentation strings for "show user" and
6697 "set/show max-user-call-depth" to clarify that it does not apply to
6699 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6701 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6703 * top.c (execute_command): Only execute a user-defined command as a
6704 legacy macro if c->user_commands is set.
6706 2012-03-01 Tom Tromey <tromey@redhat.com>
6708 * valprint.h (struct generic_val_print_decorations): New.
6709 (generic_val_print): Declare.
6710 * valprint.c (generic_val_print): New function.
6711 * p-valprint.c (p_decorations): New global.
6712 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6713 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6714 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6715 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6716 * m2-valprint.c (m2_decorations): New global.
6717 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6718 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6719 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6720 TYPE_CODE_ERROR>: Call generic_val_print.
6721 * f-valprint.c (f_decorations): New global.
6722 (f_val_print): Use print_function_pointer_address.
6723 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6724 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6725 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6727 * c-valprint.c (c_decorations): New global.
6728 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6729 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6730 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6731 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6732 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6733 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6736 2012-03-01 Tom Tromey <tromey@redhat.com>
6738 * valprint.c (val_print): Update.
6739 * p-valprint (pascal_val_print): Return void.
6740 * p-lang.h (pascal_val_print): Return void.
6741 * m2-valprint.c (m2_val_print): Return void.
6742 * m2-lang.h (m2_val_print): Return void.
6743 * language.h (struct language_defn) <la_val_print>: Return void.
6744 * language.c (unk_lang_val_print): Return void.
6745 * jv-valprint.c (java_val_print): Return void.
6746 * jv-lang.h (java_val_print): Return void.
6747 * f-valprint.c (f_val_print): Return void.
6748 * f-lang.h (f_val_print): Return void.
6749 * d-valprint.c (d_val_print): Return void.
6750 (dynamic_array_type): Update.
6751 * d-lang.h (d_val_print): Return void.
6752 * c-valprint.c (c_val_print): Return void.
6753 * c-lang.h (c_val_print): Return void.
6754 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6756 * ada-lang.h (ada_val_print): Return void.
6758 2012-03-01 Tom Tromey <tromey@redhat.com>
6760 * value.h (val_print): Return void.
6761 * valprint.c (val_print): Return void.
6763 2012-03-01 Tom Tromey <tromey@redhat.com>
6765 * value.h (common_val_print): Return void.
6766 * valprint.c (common_val_print): Return void.
6768 2012-03-01 Tom Tromey <tromey@redhat.com>
6770 * value.h (value_print): Return void.
6771 * valprint.c (value_print): Return void.
6772 * p-valprint.c (pascal_value_print): Return void.
6773 * p-lang.h (pascal_value_print): Return void.
6774 * language.h (struct language_defn) <la_value_print>: Return
6776 * language.c (unk_lang_value_print): Return void.
6777 * jv-valprint.c (java_value_print): Return void.
6778 * jv-lang.h (java_value_print): Return void.
6779 * f-valprint.c (c_value_print): Don't declare.
6781 * c-valprint.c (c_value_print): Return void.
6782 * c-lang.h (c_value_print): Return void.
6783 * ada-valprint.c (ada_value_print): Return void.
6784 * ada-lang.h (ada_value_print): Return void.
6786 2012-03-01 Tom Tromey <tromey@redhat.com>
6788 * value.c (value_primitive_field): Handle virtual base classes.
6790 2012-03-01 Tom Tromey <tromey@redhat.com>
6792 * gdbtypes.h (struct vbase): Remove.
6794 2012-03-01 Tom Tromey <tromey@redhat.com>
6796 * c-valprint.c (print_function_pointer_address): Move...
6797 * valprint.c: ... here. Make non-static.
6798 * m2-valprint.c (print_function_pointer_address): Remove.
6799 * valprint.h (print_function_pointer_address): Declare.
6801 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6803 * NEWS: Document the fact that one can provide a condition when
6804 creating an Ada exception catchpoint.
6806 2012-03-01 Tom Tromey <tromey@redhat.com>
6808 * valprint.c (val_print_type_code_flags): Fix placement of
6811 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6813 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6814 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6815 environment variable before calling update-copyright.
6817 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6819 * gnulib/extra/update-copyright: Update to the latest from
6820 gnulib's git repository.
6821 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6822 variable to 2 instead of 1.
6824 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6826 * varobj.c (c_value_of_variable): Remove dead code.
6828 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6830 * ada-lex.p (processId): Do not modify already encoded IDs.
6831 Update function documentation.
6833 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6835 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6836 "name" with "struct symbol *name_sym".
6837 * ada-exp.y (write_var_or_type): Update call to
6838 ada_find_renaming_symbol.
6839 "name" with "struct symbol *name_sym". Adjust Implementation
6840 accordingly. Adjust the function documentation.
6842 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6844 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6845 * ada-lang.c (ada_find_any_type): Add advance declaration.
6846 Make static. Replace ada_find_any_symbol by
6847 ada_find_any_type_symbol.
6848 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
6849 Improve function description. Make static.
6850 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
6851 Replace ada_find_any_symbol by ada_find_any_type_symbol.
6853 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6855 * ada-lang.c (struct tag_args): Delete.
6856 (ada_get_tsd_type): Function body moved up in source file.
6857 (ada_tag_name_1, ada_tag_name_2): Delete.
6858 (ada_get_tsd_from_tag): New function.
6859 (ada_tag_name_from_tsd): New function.
6860 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
6861 to determine the tag name.
6863 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6865 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
6867 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
6870 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6872 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
6874 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6876 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
6879 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6881 * ada-lang.c (constrained_packed_array_type): If there is a
6882 parallel XA type, use it to determine the array index type.
6884 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6886 * ada-valprint.c (ada_val_print_1): If our value is a reference
6887 to an array descriptor, dereference it before converting it
6890 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6892 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
6893 creating fixed value.
6894 (ada_value_ind, ada_coerce_ref, assign_component)
6895 (ada_evaluate_subexp): Remove call to unwrap_value before
6896 call to ada_to_fixed_value.
6898 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6900 * ada-lang.c (to_fixed_array_type): Set result's type name.
6902 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6904 * ada-lang.c (catch_ada_exception_command_split): Add new
6905 argument cond_string. Add support for condition at end of
6906 "catch exception" commands.
6907 (ada_decode_exception_location): Add new argument cond_string.
6908 Update call to catch_ada_exception_command_split.
6909 (create_ada_exception_catchpoint): Add new argument cond_string.
6910 Set the breakpoint condition if needed.
6911 (catch_ada_exception_command): Update call to
6912 ada_decode_exception_location.
6913 (ada_decode_assert_location): Add function documentation.
6914 Add support for condition at end of "catch assert" command.
6915 (catch_assert_command): Update calls to ada_decode_assert_location
6916 and create_ada_exception_catchpoint.
6918 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6920 Fix disp-step-syscall.exp: fork: single step over fork.
6921 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
6922 (i386_linux_get_syscall_number_from_regcache): ... here, new function
6923 comment, change parameters gdbarch and ptid to regcache. Remove
6924 parameter regcache, initialize gdbarch from regcache here.
6925 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
6927 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
6929 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
6930 'syscall'. Make the 'int' check more strict.
6932 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6934 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
6935 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
6936 (i386_linux_intx80_sysenter_syscall_record): ... here.
6937 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
6938 Use the renamed function name.
6940 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6942 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
6943 * breakpoint.c (until_break_command): Likewise.
6944 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6945 * infcall.c (call_function_by_hand): Likewise.
6946 * infcmd.c (finish_forward): Likewise.
6947 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6949 2012-02-28 Tristan Gingold <gingold@adacore.com>
6951 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
6952 avoid variable assignments inside condition.
6954 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6956 Fix static analysis issue found by cppcheck.
6957 * microblaze-tdep.c (microblaze_extract_return_value): Fix
6958 uninitialized BUF for size 2.
6960 2012-02-27 Chris Dearman <chris@mips.com>
6961 Nathan Froyd <froydnj@codesourcery.com>
6962 Maciej W. Rozycki <macro@codesourcery.com>
6964 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
6965 (mips16_instruction_has_delay_slot): Likewise.
6966 (mips_segment_boundary): Likewise.
6967 (mips_adjust_breakpoint_address): Likewise.
6968 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
6970 2012-02-27 Maciej W. Rozycki <macro@mips.com>
6971 Maciej W. Rozycki <macro@codesourcery.com>
6973 * infrun.c (handle_inferior_event): Don't proceed through
6974 shared library trampolines if stepping at the machine
6977 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
6979 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
6982 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
6984 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
6985 (sh_stub_unwind_sniffer): New functions.
6986 (sh_stub_unwind): New variable.
6987 (sh_gdbarch_init): Wire everything.
6989 2012-02-27 Pedro Alves <palves@redhat.com>
6991 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
6992 (linux_nat_post_attach_wait): Adjust to use
6993 linux_proc_pid_is_stopped.
6994 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
6995 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
6996 based on pid_is_stopped from both linux-nat.c and
6997 gdbserver/linux-low.c, and renamed.
6999 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7001 * remote.c (remote_watchpoint_addr_within_range): New function.
7002 (init_remote_ops): Use it.
7004 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7006 * target.h (target_watchpoint_addr_within_range): Document macro.
7008 2012-02-24 Pedro Alves <palves@redhat.com>
7010 * stack.c (set_last_displayed_sal): Issue internal_error instead
7011 of warning, and issue it after clearing the last displayed sal.
7013 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7014 Pedro Alves <palves@redhat.com>
7016 * breakpoint.c (until_break_command): Install breakpoints after
7017 all frame manipulations.
7019 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7021 * remote.c (remote_supports_cond_breakpoints): New forward
7023 (remote_add_target_side_condition): New function.
7024 (remote_insert_breakpoint): Add target-side breakpoint
7025 conditional if supported.
7026 (remote_insert_hw_breakpoint): Likewise.
7027 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7030 * target.c (update_current_target): Inherit
7031 to_supports_evaluation_of_breakpoint_conditions.
7032 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7034 * target.h (struct target_ops)
7035 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7036 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7038 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7039 (condition_evaluation_both, condition_evaluation_auto,
7040 condition_evaluation_host, condition_evaluation_target,
7041 condition_evaluation_enums, condition_evaluation_mode_1,
7042 condition_evaluation_mode): New static globals.
7043 (translate_condition_evaluation_mode): New function.
7044 (breakpoint_condition_evaluation_mode): New function.
7045 (gdb_evaluates_breakpoint_condition_p): New function.
7046 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7047 (mark_breakpoint_modified): New function.
7048 (mark_breakpoint_location_modified): New function.
7049 (set_condition_evaluation_mode): New function.
7050 (show_condition_evaluation_mode): New function.
7051 (bp_location_compare_addrs): New function.
7052 (get_first_location_gte_addr): New helper function.
7053 (set_breakpoint_condition): Free condition bytecode if locations
7054 has become unconditional. Call mark_breakpoint_modified (...).
7055 (condition_command): Call update_global_location_list (1) for
7057 (breakpoint_xfer_memory): Use is_breakpoint (...).
7058 (is_breakpoint): New function.
7059 (parse_cond_to_aexpr): New function.
7060 (build_target_condition_list): New function.
7061 (insert_bp_location): Handle target-side conditional
7062 breakpoints and call build_target_condition_list (...).
7063 (update_inserted_breakpoint_locations): New function.
7064 (insert_breakpoint_locations): Handle target-side conditional
7066 (bpstat_check_breakpoint_conditions): Add comment.
7067 (bp_condition_evaluator): New function.
7068 (bp_location_condition_evaluator): New function.
7069 (print_breakpoint_location): Print information on where the condition
7071 (print_one_breakpoint_location): Likewise.
7072 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7073 breakpoint location.
7074 (force_breakpoint_reinsertion): New functions.
7075 (update_global_location_list): Handle target-side breakpoint
7077 Reinsert locations that are already inserted if conditions have
7079 (bp_location_dtor): Free agent expression bytecode.
7080 (disable_breakpoint): Call mark_breakpoint_modified (...).
7081 Call update_global_location_list (...) with parameter 1 for breakpoints.
7082 (disable_command): Call mark_breakpoint_location_modified (...).
7083 Call update_global_location_list (...) with parameter 1 for breakpoints.
7084 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7085 (enable_command): mark_breakpoint_location_modified (...).
7086 (_initialize_breakpoint): Update documentation and add
7087 condition-evaluation breakpoint subcommand.
7089 * breakpoint.h: Include ax.h.
7090 (condition_list): New data structure.
7091 (condition_status): New enum.
7092 (bp_target_info) <cond_list>: New field.
7093 (bp_location) <condition_changed, cond_bytecode>: New fields.
7094 (is_breakpoint): New prototype.
7096 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7098 * remote.c (remote_state) <cond_breakpoints>: New field.
7099 (PACKET_ConditionalBreakpoints): New enum.
7100 (remote_cond_breakpoint_feature): New function.
7101 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7102 (remote_supports_cond_breakpoints): New function.
7103 (_initialize_remote): Add new packet configuration for
7104 target-side conditional breakpoints.
7106 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7108 * NEWS: Mention target-side conditional breakpoint support,
7109 new condition-evaluation breakpoint subcommand and remote
7112 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7114 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7117 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7119 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7120 (after_prologue): Remove.
7122 2012-02-23 Tom Tromey <tromey@redhat.com>
7124 * jv-valprint.c (java_val_print): Remove dead code.
7126 2012-02-23 Tristan Gingold <gingold@adacore.com>
7128 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7129 known_tasks_element and known_tasks_length fields.
7130 (read_known_tasks_array): Change argument type. Use pointer type
7131 and number of elements from DATA. Adjust.
7132 (read_known_tasks_list): Likewise.
7133 (get_known_tasks_addr): Remove.
7134 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7135 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7136 type and array length. Merge former get_known_tasks_addr code.
7138 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7141 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7142 it after set_momentary_breakpoint.
7144 2012-02-22 Sterling Augustine <saugustine@google.com>
7147 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7149 2012-02-22 Gary Benson <gbenson@redhat.com>
7151 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7152 (find_slot_in_mapped_hash): Likewise.
7154 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7157 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7158 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7159 * configure: Regenerate.
7161 2012-02-21 Tristan Gingold <gingold@adacore.com>
7162 Pedro Alves <palves@redhat.com>
7164 * ia64-tdep.c: Do not include libunwind-ia64.h.
7165 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7166 Include libunwind-ia64.h instead of libunwind.h.
7167 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7168 for libunwind.h existence.
7169 * configure, config.in: Regenerate.
7171 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7173 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7174 instead of value_rtti_target_type.
7175 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7176 instead of value_rtti_target_type.
7177 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7178 value_rtti_target_type.
7179 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7180 (value_rtti_target_type): Rename to ...
7181 (value_rtti_indirect_type): ... here and make it indirect. Update
7183 * value.c (readjust_indirect_value_type): New function.
7184 (coerce_ref): Support for enclosing type setting for references
7185 with readjust_indirect_value_type.
7186 * value.h (readjust_value_type): New declaration.
7187 (value_rtti_target_type): Rename to ...
7188 (value_rtti_indirect_type): ... here.
7190 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7192 * MAINTAINERS (Write After Approval): Add myself to the list.
7194 2012-02-20 Doug Evans <dje@google.com>
7196 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7197 Rename objfile_p_char parameter to objfilep.
7198 (build_objfile_section_table): Result is now void. All callers
7200 * objfiles.h (struct objfile): Tweak comments, whitespace.
7201 (build_objfile_section_table): Update.
7203 * elfread.c (elf_symfile_segments): Fix warning text.
7205 2012-02-20 Tom Tromey <tromey@redhat.com>
7208 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7209 particular set of file names once.
7210 (dw2_map_symbol_filenames): Likewise.
7212 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7215 * main.c (write_files): Remove the declaration.
7216 (external_editor_command): Move the declaration ...
7217 [GDBTK] (external_editor_command): ... here. Fix the comment.
7219 2012-02-20 Tom Tromey <tromey@redhat.com>
7221 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7224 2012-02-20 Tristan Gingold <gingold@adacore.com>
7226 * darwin-nat.h (enum darwin_msg_state): Add comments.
7228 2012-02-20 Tristan Gingold <gingold@adacore.com>
7230 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7233 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7235 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7236 between function description and implementation.
7238 2012-02-17 Tom Tromey <tromey@redhat.com>
7241 * python/py-event.c (event_object_getset): New global.
7242 (event_object_type): Reference it.
7243 * python/py-type.c (field_object_getset): New global.
7244 (field_object_type): Reference it.
7245 * python/python-internal.h (gdb_py_generic_dict): Declare.
7246 * python/py-utils.c (gdb_py_generic_dict): New function.
7248 2012-02-17 Tristan Gingold <gingold@adacore.com>
7250 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7252 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7254 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7255 TYPE_CALLING_CONVENTION annotation.
7257 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7259 * MAINTAINERS: Add rx to target ISA section.
7260 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7261 (ALLDEPFILES): Add rx-tdep.c.
7263 2012-02-16 Tom Tromey <tromey@redhat.com>
7265 * symfile.c (symbol_file_add_main_1): Use inferior's
7267 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7268 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7270 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7272 (follow_exec): Use inferior's symfile_flags.
7273 * inferior.h (struct inferior) <symfile_flags>: New field.
7275 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7278 * remote-sim.c (gdbsim_create_inferior): Call error() when
7279 sim_create_inferior() fails.
7281 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7283 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7285 2012-02-16 Tom Tromey <tromey@redhat.com>
7288 * thread.c (struct current_thread_cleanup) <was_removable>: New
7290 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7291 (make_cleanup_restore_current_thread): Initialize new field.
7293 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7295 * MAINTAINERS: Add rl78 to target ISA section.
7296 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7297 (ALLDEPFILES): Add rl78-tdep.c.
7298 * NEWS: Mention rl78 as a new target.
7300 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7302 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7304 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7306 2012-02-15 Tom Tromey <tromey@redhat.com>
7309 * infcmd.c (registers_info): Print just the current register's
7312 2012-02-15 Tom Tromey <tromey@redhat.com>
7314 * python/py-symbol.c (sympy_value): Use _().
7316 2012-02-15 Pedro Alves <palves@redhat.com>
7318 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7319 output to be like native targets'.
7320 (remote_pid_to_str): Special case the null ptid.
7322 2012-02-14 Stan Shebs <stan@codesourcery.com>
7324 * NEWS: Mention enable count command.
7325 * breakpoint.h (struct breakpoint): New field enable_count.
7326 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7327 (enable_breakpoint): Add arg to call.
7328 (struct disp_data): New struct.
7329 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7330 (do_map_enable_once_breakpoint): Create a struct and pass it.
7331 (do_map_enable_delete_breakpoint): Ditto.
7332 (do_map_enable_count_breakpoint): New function.
7333 (enable_count_command): New function.
7334 (bpstat_stop_status): Decrement enable_count.
7335 (print_one_breakpoint_location): Report enable count.
7336 (_initialize_breakpoint): Add enable count command.
7338 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7340 * rl78-tdep.c (reggroups.h): Include.
7341 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7342 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7343 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7344 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7345 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7346 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7347 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7348 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7349 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7350 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7351 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7352 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7353 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7354 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7355 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7356 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7357 beginning of register list.
7358 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7359 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7360 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7361 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7362 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7363 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7364 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7365 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7366 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7367 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7368 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7369 the pseudo registers. Rearrange other pseudo registers too so
7370 that the bank registers appear at the end.
7371 (rl78_register_type): Account for the fact that the byte sized
7372 bank registers are now pseudo-registers.
7373 (rl78_register_name): Rearrange the register name array. Make
7374 initial set of raw banked registers inaccessible.
7375 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7376 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7377 case for copying bytes back and forth between raw and pseudo
7378 versions of the banked registers. Update other cases to reflect
7380 (rl78_return_value): Update to account for changed names of
7382 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7383 rl78_register_sim_regno().
7385 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7387 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7388 the name parameter being passed to find_pc_partial_function().
7390 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7392 * MAINTAINERS: Step down from being ia64 target maintainer.
7394 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7396 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7397 compilation warning.
7399 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7401 Fix crash on loaded shlibs without loaded exec_bfd.
7402 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7403 (set_section_command): Replace exec_bfd by p->bfd.
7405 2012-02-10 Tom Tromey <tromey@redhat.com>
7407 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7408 when we have a C++ qualified name.
7410 2012-02-10 Pedro Alves <palves@redhat.com>
7412 * inferior.c (inferior_pid_to_str): New.
7413 (print_inferior, inferior_command): Use it.
7415 2012-02-10 Pedro Alves <palves@redhat.com>
7417 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7419 * configure: Regenerate.
7421 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7423 * linespec.c (decode_line_internal): Fix comment correctness.
7425 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7428 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7429 * amd64bsd-nat.c: Add support for debug registers (adapted from
7431 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7432 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7433 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7434 (amd64bsd_dr_get_control): New functions.
7435 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7436 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7437 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7438 watchpoints initialization.
7439 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7441 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7443 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7445 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7447 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7449 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7451 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7453 * language.h (symbol_name_cmp_ftype): Renames
7454 symbol_name_match_p_ftype.
7455 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7456 la_get_symbol_name_match_p.
7457 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7458 ada_get_symbol_name_match_p. Update comment.
7459 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7460 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7461 Renames symbol_name_match_p. Update field type.
7462 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7463 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7464 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7465 "la_get_symbol_name_cmp" in comments.
7466 * language.c: Likewise.
7468 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7470 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7472 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7473 (amd64_sol2_gregset32_reg_offs): Likewise.
7475 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7477 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7478 of the returned BFD is allocated by GDB.
7480 2012-02-07 Tom Tromey <tromey@redhat.com>
7483 * python/python-internal.h (frame_object_type): Declare.
7484 * python/py-symbol.c (sympy_needs_frame): New function.
7485 (sympy_value): New function.
7486 (symbol_object_getset): Add "needs_frame".
7487 (symbol_object_methods): Add "value".
7488 * python/py-frame.c (frame_object_type): No longer static.
7490 2012-02-07 Tom Tromey <tromey@redhat.com>
7493 * python/py-symbol.c (sympy_line): New function.
7494 (symbol_object_getset): Add "line".
7496 2012-02-07 Tom Tromey <tromey@redhat.com>
7498 * charset.c (find_charset_names): Check 'in' against NULL.
7500 2012-02-06 Doug Evans <dje@google.com>
7502 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7503 and fields.name members from char * to const char *. All uses updated.
7504 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7505 from char * to const char *. All uses updated.
7506 (type_name_no_tag): Update.
7507 (lookup_unsigned_typename, lookup_signed_typename): Update.
7508 * gdbtypes.c (type_name_no_tag): Change result type
7509 from char * to const char *. All callers updated.
7510 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7511 name parameter from char * to const char *.
7512 * symtab.h (struct cplus_specific): Change type of demangled_name
7513 member from char * to const char *. All uses updated.
7514 (struct general_symbol_info): Change type of name and
7515 mangled_lang.demangled_name members from char * to const char *.
7517 (symbol_get_demangled_name, symbol_natural_name): Update.
7518 (symbol_demangled_name, symbol_search_name): Update.
7519 * symtab.c (symbol_get_demangled_name): Change result type
7520 from char * to const char *. All callers updated.
7521 (symbol_natural_name, symbol_demangled_name): Ditto.
7522 (symbol_search_name): Ditto.
7523 (completion_list_add_name): Change type of symname,sym_text,
7524 text,word parameters from char * to const char *.
7525 (completion_list_objc_symbol): Change type of sym_text,
7526 text,word parameters from char * to const char *.
7527 * ada-lang.c (find_struct_field): Change type of name parameter
7528 from char * to const char *.
7529 (encoded_ordered_before): Similarly for N0,N1 parameters.
7530 (old_renaming_is_invisible): Similarly for function_name parameter.
7531 (ada_type_name): Change result type from char * to const char *.
7532 All callers updated.
7533 * ada-lang.h (ada_type_name): Update.
7534 * buildsym.c (hashname): Change type of name parameter
7535 from char * to const char *.
7536 * buildsym.h (hashname): Update.
7537 * dbxread.c (end_psymtab): Change type of include_list parameter
7538 from char ** to const char **.
7539 * dwarf2read.c (determine_prefix): Change result type
7540 from char * to const char *. All callers updated.
7541 * f-lang.c (find_common_for_function): Change type of name, funcname
7542 parameters from char * to const char *.
7543 * f-lang.c (find_common_for_function): Update.
7544 * f-valprint.c (list_all_visible_commons): Change type of funcname
7545 parameters from char * to const char *.
7546 * gdbarch.sh (static_transform_name): Change type of name parameter
7547 and result from char * to const char *.
7548 * gdbarch.c: Regenerate.
7549 * gdbarch.h: Regenerate.
7550 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7551 of name parameter from char * to const char *.
7552 * jv-lang.c (java_primitive_type_from_name): Ditto.
7553 (java_demangled_signature_length): Similarly for signature parameter.
7554 (java_demangled_signature_copy): Ditto.
7555 (java_demangle_type_signature): Ditto.
7556 * jv-lang.h (java_primitive_type_from_name): Update.
7557 (java_demangle_type_signature): Update.
7558 * objc-lang.c (specialcmp): Change type of a,b parameters
7559 from char * to const char *.
7560 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7561 from char * to const char *. All callers updated.
7562 * p-lang.h (is_pascal_string_type): Update.
7563 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7564 of name parameter from char * to const char *.
7565 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7566 * utils.c (fprintf_symbol_filtered): Ditto.
7567 * defs.h (fprintf_symbol_filtered): Update.
7568 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7569 * stabsread.h (end_psymtab): Update.
7570 * stack.c (find_frame_funname): Change type of funname parameter
7571 from char ** to const char **.
7572 * stack.h (find_frame_funname): Update.
7573 * typeprint.c (type_print): Change type of varstring parameter
7574 from char * to const char *.
7575 * value.h (type_print): Update.
7576 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7577 from char * to const char *. All callers updated.
7578 (xcoff_end_psymtab): Change type of include_list parameter
7579 from char ** to const char **. All callers updated.
7580 (swap_sym): Similarly for name parameter. All callers updated.
7581 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7583 (process_coff_symbol): Use xstrdup.
7584 * stabsread.c (stabs_method_name_from_physname): Renamed from
7585 update_method_name_from_physname. Change result type from void
7586 to char *. All callers updated.
7587 (read_member_functions): In has_destructor case, store name in objfile
7588 obstack instead of malloc space. In !has_stub case, fix mem leak.
7590 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7592 * configure: Rebuild.
7593 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7596 2012-02-03 Kevin Buettner <kevinb@redhat.com>
7598 * configure.tgt (rl78-*-elf): New target.
7599 * rl78-tdep.c: New file.
7601 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7603 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7604 and continue the loop. Add QUIT statement.
7606 2012-02-03 Tom Tromey <tromey@redhat.com>
7609 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7610 bfd_lookup_symbol_from_symtab.
7611 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7612 gdb_bfd_lookup_symbol_from_symtab.
7614 2012-02-03 Joel Brobecker <brobecker@adacore.com>
7616 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7617 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7618 symbol. Add assertion that sym2 is never NULL.
7620 2012-02-02 Doug Evans <dje@google.com>
7622 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7623 "name" parameter to const char ** from char **. All callers updated.
7624 (find_pc_partial_function): Ditto.
7625 (cache_pc_function_name): Change type to const char * from char *.
7626 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7627 (find_pc_partial_function): Update.
7628 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7629 type of "name" parameter to const char * from char *.
7631 * arch-utils.c (generic_in_solib_return_trampoline): Change
7632 type of "name" parameter to const char * from char *.
7633 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7634 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7635 type of "name" parameter to const char * from char *.
7636 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7637 * gdbarch.c: Regenerate.
7638 * gdbarch.h: Regenerate.
7639 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7640 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7641 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7642 type of "name" parameter to const char * from char *.
7643 * skip.c (skip_function_pc): Ditto.
7644 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7645 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7646 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7647 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7648 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7649 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7650 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7651 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7652 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7654 2012-02-02 Pedro Alves <palves@redhat.com>
7656 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7657 the current inferior has no execution. Make sure the current
7658 remote process matches gdb's current inferior.
7660 2012-02-02 Tom Tromey <tromey@redhat.com>
7663 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7666 2012-02-02 Tom Tromey <tromey@redhat.com>
7669 * symtab.c (lookup_language_this): Set block_found.
7671 2012-02-01 Tom Tromey <tromey@redhat.com>
7674 * jit.c (struct jit_inferior_data): Rewrite.
7675 (struct jit_objfile_data): New.
7676 (get_jit_objfile_data): New function.
7677 (add_objfile_entry): Update.
7678 (jit_read_descriptor): Return int. Replace descriptor_addr
7679 argument with inf_data. Update. Don't call error.
7680 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7682 (jit_inferior_init): Don't look up descriptor. Don't call error.
7683 (jit_reset_inferior_data_and_breakpoints)
7684 (jit_inferior_created_observer): Remove.
7685 (jit_inferior_exit_hook): Update.
7686 (jit_executable_changed_observer): Remove.
7687 (jit_event_handler): Update.
7688 (free_objfile_data): Reset inferior data if needed.
7689 (_initialize_jit): Update.
7691 2012-02-01 Tom Tromey <tromey@redhat.com>
7693 * jit.c (bfd_open_from_target_memory): Move higher in file.
7695 2012-02-01 Tristan Gingold <gingold@adacore.com>
7697 * libunwind-frame.c (libunwind_load): Display message if dlopen
7700 2012-02-01 Gary Benson <gbenson@redhat.com>
7702 * symtab.h (symbol_found_callback_ftype): New typedef.
7703 (iterate_over_symbols): Use the above.
7704 * symtab.c (iterate_over_symbols): Likewise.
7705 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7706 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7707 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7708 (iterate_name_matcher): Document return values.
7709 (collect_one_symbol): Likewise.
7710 (collect_function_symbols): Likewise.
7711 (collect_symbols): Likewise.
7713 2012-02-01 Tom Tromey <tromey@redhat.com>
7715 * ada-lang.c (resolve_subexp): Update.
7716 (ada_lookup_symbol_list): Add 'full_search' argument.
7717 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7718 ada_lookup_symbol_list.
7719 (ada_lookup_encoded_symbol): Update.
7720 (get_var_value): Update.
7721 * ada-exp.y (block_lookup): Update.
7722 (write_var_or_type): Update.
7723 (write_name_assoc): Update.
7724 * ada-lang.h (ada_lookup_symbol_list): Update.
7726 2012-01-31 Tom Tromey <tromey@redhat.com>
7728 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7731 2012-01-31 Doug Evans <dje@google.com>
7733 * symtab.h: Remove outdated comment.
7734 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7736 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
7738 Fix build error in Darwin port.
7739 * i386-darwin-nat.c: Include i386-nat.h.
7741 2012-01-30 Tom Tromey <tromey@redhat.com>
7743 PR breakpoints/13568:
7744 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7745 argument. Check for recursive includes.
7746 (dwarf_decode_macros): Create an include hash.
7748 2012-01-30 Michael Eager <eager@eagercon.com>
7750 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7751 * ppc-linux-tdep.c: Include glibc-tdep.h.
7752 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7753 (powerpc_linux_in_plt_stub): New function.
7754 (powerpc_linux_in_dynsym_resolve_code): New function.
7755 (ppc_skip_trampoline_code): New function.
7756 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7757 Use glibc_skip_solib_resolver.
7759 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7761 Code cleanup: Make 1440 bytes of data segment read-only.
7762 * arch-utils.c (endian_enum): Make it const char *const [].
7763 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7765 * breakpoint.c (always_inserted_enums): Likewise.
7766 * cli/cli-cmds.c (script_ext_enums): Likewise.
7767 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7768 enumlist parameter const char *const *.
7769 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7770 const char *const *.
7771 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7772 parameter const char *const *.
7773 * cris-tdep.c (cris_modes): Make it const char *const [].
7774 * filesystem.c (target_file_system_kinds): Likewise.
7775 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7776 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7777 (can_use_displaced_stepping_enum, scheduler_enums)
7778 (exec_direction_names): Likewise.
7779 * language.c (_initialize_language): Make the type_or_range_names and
7780 case_sensitive_names variables const char *const [].
7781 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7782 * python/python.c (python_excp_enums): Likewise.
7783 * remote.c (interrupt_sequence_modes): Likewise.
7784 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7785 * serial.c (logbase_enums): Likewise.
7786 * sh-tdep.c (sh_cc_enum): Likewise.
7787 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7789 * symtab.c (multiple_symbols_modes): Likewise.
7790 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7792 * utils.c (internal_problem_modes): Likewise.
7794 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7796 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7797 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7800 2012-01-27 Doug Evans <dje@google.com>
7802 * configure.ac (with_python): Fix absolute path handling for win32.
7803 * configure: Regenerate.
7805 2012-01-26 Doug Evans <dje@google.com>
7807 * symtab.c: Whitespace cleanup, no code changes.
7809 * symtab.c (lookup_symbol_in_language): Improve comment.
7810 (lookup_symbol_aux): Fix comment.
7812 * psymtab.c (add_psymbol_to_list): Result is now "void".
7813 * psympriv.h (add_psymbol_to_list): Update.
7815 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7817 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7819 Do not open script filenames twice.
7820 * cli/cli-cmds.c (source_script_from_stream): Pass to
7821 source_python_script also STREAM.
7822 * python/py-auto-load.c (source_section_scripts): Pass to
7823 source_python_script_for_objfile also STREAM.
7824 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7826 * python/python-internal.h (source_python_script_for_objfile): New
7827 parameter file, rename parameter file to filename.
7828 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7829 instead if !_WIN32. Update the function comment.
7830 (source_python_script, source_python_script_for_objfile)
7831 (source_python_script): New parameter file, rename parameter file to
7832 filename. Pass FILENAME to python_run_simple_file.
7833 * python/python.h (source_python_script): New parameter file, rename
7834 parameter file to filename.
7836 2012-01-26 Pedro Alves <palves@redhat.com>
7838 * corelow.c (core_has_fake_pid): Delete.
7839 (core_close): Delete references to `core_has_fake_pid'.
7840 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7841 (core_open): Delete references to `core_has_fake_pid'.
7842 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7845 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7847 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7848 Remove language parameter from name_matcher. Adjust the comment.
7849 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
7850 Remove language parameter.
7851 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
7852 * linespec.c (iterate_name_matcher): Likewise.
7853 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
7854 name_matcher. Adjust call accordingly.
7855 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
7856 (maintenance_check_symtabs): Adjust type of parameter "fun".
7857 * psymtab.h (maintenance_check_symtabs): Likewise.
7859 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7861 * language.h (symbol_name_match_p_ftype): New typedef.
7862 (struct language_defn): Replace field la_symbol_name_compare
7863 by la_get_symbol_name_match_p.
7864 * ada-lang.c (ada_get_symbol_name_match_p): New function.
7865 (ada_language_defn): Use it.
7866 * linespec.c (struct symbol_matcher_data): New type.
7867 (iterate_name_matcher): Rewrite.
7868 (iterate_over_all_matching_symtabs): Pass a pointer to
7869 a symbol_matcher_data struct to expand_symtabs_matching
7870 instead of just the lookup name.
7871 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7872 opencl-lang.c, p-lang.c, language.c: Delete field
7873 la_symbol_name_compare, and replace by NULL for new field
7874 la_get_symbol_name_match_p.
7875 * symfile.h (struct quick_symbol_functions): Update comment.
7877 2012-01-25 Tom Tromey <tromey@redhat.com>
7879 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
7882 2012-01-24 Tom Tromey <tromey@redhat.com>
7885 * solib.c (update_solib_list): Update the program space's
7886 added_solibs and deleted_solibs fields.
7887 * progspace.h (struct program_space) <added_solibs,
7888 deleted_solibs>: New fields.
7889 (clear_program_space_solib_cache): Declare.
7890 * progspace.c (release_program_space): Call
7891 clear_program_space_solib_cache.
7892 (clear_program_space_solib_cache): New function.
7893 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
7894 bpstat_stop_status. Use handle_solib_event.
7895 * breakpoint.c: Include gdb_regex.h.
7896 (print_solib_event): New function.
7897 (bpstat_print): Use print_solib_event.
7898 (bpstat_stop_status): Add special case for bp_shlib_event.
7899 (handle_solib_event): New function.
7900 (bpstat_what): Use handle_solib_event.
7901 (struct solib_catchpoint): New.
7902 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
7903 (breakpoint_hit_catch_solib, check_status_catch_solib)
7904 (print_it_catch_solib, print_one_catch_solib)
7905 (print_mention_catch_solib, print_recreate_catch_solib): New
7907 (catch_solib_breakpoint_ops): New global.
7908 (catch_load_or_unload, catch_load_command_1)
7909 (catch_unload_command_1): New functions.
7910 (internal_bkpt_check_status): Add special case for
7912 (internal_bkpt_print_it): Use print_solib_event.
7913 (initialize_breakpoint_ops): Initialize
7914 catch_solib_breakpoint_ops.
7915 (_initialize_breakpoint): Register "catch load" and "catch
7917 * breakpoint.h (handle_solib_event): Declare.
7918 * NEWS: Add entry for "catch load" and "catch unload".
7920 2012-01-24 Tom Tromey <tromey@redhat.com>
7922 * ada-lang.c: Include gdb_vecs.h.
7923 * charset.c: Include gdb_vecs.h.
7924 * tracepoint.h: Include gdb_vecs.h.
7925 * gdb_vecs.h: New file.
7927 2012-01-24 Pedro Alves <pedro@codesourcery.com>
7929 * breakpoint.c (breakpoint_hit_catch_fork)
7930 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
7931 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
7932 * infrun.c (inferior_has_forked, inferior_has_vforked)
7933 (inferior_has_execd, inferior_has_called_syscall): Delete.
7934 (handle_syscall_event): Get syscall_number from the execution
7935 control state's wait status.
7936 (wait_for_inferior): Don't clear syscall_number.
7938 2012-01-24 Pedro Alves <palves@redhat.com>
7940 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
7941 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
7942 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
7943 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
7945 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
7946 false for events other than TARGET_SIGNAL_TRAP.
7947 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
7949 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
7950 events other than TARGET_SIGNAL_TRAP.
7951 (tracepoint_breakpoint_hit): Add `ws' parameter.
7952 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
7954 (bpstat_stop_status): Same.
7955 (pc_at_non_inline_function): Same.
7956 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
7957 to pass the current event's waitstatus to bpstat_stop_status
7958 and pc_at_non_inline_function.
7960 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7963 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
7964 Update the function comment for it.
7965 (source_script_with_search): Call make_cleanup_fclose for STREAM.
7966 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
7969 2012-01-24 Pedro Alves <palves@redhat.com>
7971 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
7972 outside `bs->stop' block.
7973 (bpstat_what): Rework bp_shlib_event handling.
7974 (internal_bkpt_check_status): If the breakpoint is a
7975 bp_shlib_event, then set bs->stop and bs->print if
7976 stop_on_solib_events is set.
7978 2012-01-24 Gary Benson <gbenson@redhat.com>
7980 Delete #if 0'd out code.
7981 * stack.c (print_frame_label_vars): Remove.
7982 (catch_info): Likewise.
7983 (_initialize_stack): Remove "info catch" command.
7984 * NEWS: Mention the above.
7986 2012-01-24 Pedro Alves <palves@redhat.com>
7988 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
7990 (remote_notice_new_inferior): If the remote end doesn't support
7991 the multiprocess extensions, then the PID is fake.
7992 (add_current_inferior_and_thread): New.
7993 (remote_start_remote): Use it.
7994 (extended_remote_attach_1): Adjust.
7995 (extended_remote_create_inferior_1): Use
7996 add_current_inferior_and_thread.
7998 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8000 Fix watchpoints to be specific for each inferior.
8001 * breakpoint.c (watchpoint_in_thread_scope): Verify also
8002 current_program_space.
8003 * i386-nat.c (i386_inferior_data_cleanup): New.
8004 (i386_inferior_data_get): Replace variable inf_data_local by an
8006 (i386_use_watchpoints): Initialize i386_inferior_data.
8007 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
8008 specific iterate_over_lwps.
8010 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8012 Fix watchpoints across inferior fork.
8013 * amd64-linux-nat.c (update_debug_registers_callback): Update the
8014 comment for linux_nat_iterate_watchpoint_lwps.
8015 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8016 linux_nat_iterate_watchpoint_lwps.
8017 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8018 * i386-linux-nat.c (update_debug_registers_callback): Update the
8019 comment for linux_nat_iterate_watchpoint_lwps.
8020 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8021 linux_nat_iterate_watchpoint_lwps.
8022 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8023 * i386-nat.c: Include inferior.h.
8024 (dr_mirror): Remove.
8025 (i386_inferior_data, struct i386_inferior_data)
8026 (i386_inferior_data_get): New.
8027 (i386_debug_reg_state): Use i386_inferior_data_get.
8028 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8029 (i386_insert_watchpoint, i386_remove_watchpoint)
8030 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8031 (i386_remove_hw_breakpoint): New variable state, use
8032 i386_debug_reg_state instead of DR_MIRROR.
8033 * linux-nat.c (delete_lwp): New declaration.
8034 (num_lwps): Move here from downwards.
8035 (delete_lwp_cleanup): New.
8036 (linux_child_follow_fork): Create new child_lp, call
8037 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8039 (num_lwps): Move upwards.
8040 (linux_nat_iterate_watchpoint_lwps): New.
8041 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8042 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8044 2012-01-24 Joel Brobecker <brobecker@adacore.com>
8048 2012-01-23 Pedro Alves <palves@redhat.com>
8050 * top.c (caution): Rename to ...
8051 (confirm): ... this.
8052 (show_caution): Rename to ...
8053 (show_confirm): ... this.
8054 (quit_cover): Adjust.
8055 (init_main): Adjust.
8056 * top.h (caution): Rename to ...
8057 (confirm): ... this.
8058 * utils.c (internal_vproblem, defaulted_query): Adjust.
8060 2012-01-23 Pedro Alves <palves@redhat.com>
8062 * top.c (caution): Update comment.
8063 (execute_command): Don't consider the current value of `caution'.
8065 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8067 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8069 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8071 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8072 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8073 * target.c (target_fileio_pwrite): Remove buffer address from
8075 (target_fileio_pread): Likewise.
8077 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8079 * NEWS: Document remote "info proc" and "generate-core-file".
8081 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8083 * gdbarch.sh (find_memory_regions): New callback.
8084 * gdbarch.c, gdbarch.h: Regenerate.
8086 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8087 callback before falling back to target method.
8089 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8090 (linux_target_install_ops): No longer install it.
8092 * linux-tdep.c (linux_find_memory_regions): New function.
8093 (linux_init_abi): Install it.
8095 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8097 * gdbarch.sh (make_corefile_notes): New architecture callback.
8098 * gdbarch.c: Regenerate.
8099 * gdbarch.h: Likewise.
8101 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8102 before target_make_corefile_notes. If NULL is returned, the
8103 target does not support core file generation.
8105 * linux-nat.c: Include "linux-tdep.h".
8106 (find_signalled_thread, find_stop_signal): Remove.
8107 (linux_nat_do_thread_registers): Likewise.
8108 (struct linux_nat_corefile_thread_data): Likewise.
8109 (linux_nat_corefile_thread_callback): Likewise.
8110 (iterate_over_spus): Likewise.
8111 (struct linux_spu_corefile_data): Likewise.
8112 (linux_spu_corefile_callback): Likewise.
8113 (linux_spu_make_corefile_notes): Likewise.
8114 (linux_nat_collect_thread_registers): New function.
8115 (linux_nat_make_corefile_notes): Replace contents by call to
8116 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8117 as native-only callback.
8119 * linux-tdep.h: Include "bfd.h".
8120 (struct regcache): Add forward declaration.
8121 (linux_collect_thread_registers_ftype): New typedef.
8122 (linux_make_corefile_notes): Add prototype.
8123 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8124 "regset.h", and "elf-bfd.h".
8125 (find_signalled_thread, find_stop_signal): New functions.
8126 (linux_spu_make_corefile_notes): Likewise.
8127 (linux_collect_thread_registers): Likewise.
8128 (struct linux_corefile_thread_data): New data structure.
8129 (linux_corefile_thread_callback): New funcion.
8130 (linux_make_corefile_notes): Likewise.
8131 (linux_make_corefile_notes_1): Likewise.
8132 (linux_init_abi): Install it.
8134 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8136 * gdbarch.sh (info_proc): New callback.
8137 * gdbarch.c, gdbarch.h: Regenerate.
8139 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8140 before falling back to the target info_proc callback.
8142 * linux-nat.c: Do not include "cli/cli-utils.h".
8143 (linux_nat_info_proc): Remove.
8144 (linux_target_install_ops): No longer install it.
8146 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8147 (read_mapping): New function.
8148 (linux_info_proc): Likewise.
8149 (linux_init_abi): Install it.
8151 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8153 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8154 * infcmd.c: (info_proc_cmd_1): New function.
8155 (info_proc_cmd): New function, moved here from equivalent routine
8156 orignally in linux-nat.c.
8157 (info_proc_cmd_mappings): Likewise.
8158 (info_proc_cmd_stat): Likewise.
8159 (info_proc_cmd_status): Likewise.
8160 (info_proc_cmd_cwd): Likewise.
8161 (info_proc_cmd_cmdline): Likewise.
8162 (info_proc_cmd_exe): Likewise.
8163 (info_proc_cmd_all): Likewise.
8164 (_initialize_infcmd): Install "info proc" command and subcommands.
8166 * target.h (struct target_ops): Add to_info_proc.
8167 (target_info_proc): Add prototype.
8168 * target.c (target_info_proc): New function.
8170 * procfs.c (procfs_info_proc): Add prototype.
8171 (info_proc_cmd): Rename into ...
8172 (procfs_info_proc): ... this. Update argument types as appropriate
8173 for a to_info_proc implementation. Handle "what" argument.
8174 (procfs_target): Install procfs_info_proc.
8175 (_initialize_procfs): No longer install "info proc" command.
8177 * linux-nat.c: (enum info_proc_what): Remove.
8178 (linux_nat_info_proc_cmd_1): Rename into ...
8179 (linux_nat_info_proc): ... this. Update argument types as appropriate
8180 for a to_info_proc implementation.
8181 (linux_nat_info_proc_cmd): Remove.
8182 (linux_nat_info_proc_cmd_mappings): Likewise.
8183 (linux_nat_info_proc_cmd_stat): Likewise.
8184 (linux_nat_info_proc_cmd_status): Likewise.
8185 (linux_nat_info_proc_cmd_cwd): Likewise.
8186 (linux_nat_info_proc_cmd_cmdline): Likewise.
8187 (linux_nat_info_proc_cmd_exe): Likewise.
8188 (linux_nat_info_proc_cmd_all): Likewise.
8189 (linux_target_install_ops): Install linux_nat_info_proc.
8190 (_initialize_linux_nat): No longer install "info proc" command
8193 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8195 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8196 * config.in, configure: Regenerate.
8198 * target.h (struct target_ops): Add to_fileio_readlink.
8199 (target_fileio_readlink): Add prototype.
8200 * target.c (target_fileio_readlink): New function.
8202 * inf-child.c: Conditionally include <sys/param.h>.
8203 (inf_child_fileio_readlink): New function.
8204 (inf_child_target): Install it.
8206 * remote.c (PACKET_vFile_readlink): New enum value.
8207 (remote_hostio_readlink): New function.
8208 (init_remote_ops): Install it.
8209 (_initialize_remote): Handle vFile:readlink packet type.
8211 2012-01-20 Pedro Alves <palves@redhat.com>
8212 Ulrich Weigand <ulrich.weigand@linaro.org>
8214 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8215 * config.in, configure: Regenerate.
8217 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8218 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8219 (target_fileio_open): Add prototype.
8220 (target_fileio_pwrite): Likewise.
8221 (target_fileio_pread): Likewise.
8222 (target_fileio_close): Likewise.
8223 (target_fileio_unlink): Likewise.
8224 (target_fileio_read_alloc): Likewise.
8225 (target_fileio_read_stralloc): Likewise.
8227 * target.c: Include "gdb/fileio.h".
8228 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8229 (default_fileio_target): New function.
8230 (target_fileio_open): Likewise.
8231 (target_fileio_pwrite): Likewise.
8232 (target_fileio_pread): Likewise.
8233 (target_fileio_close): Likewise.
8234 (target_fileio_unlink): Likewise.
8235 (target_fileio_close_cleanup): Likewise.
8236 (target_fileio_read_alloc_1): Likewise.
8237 (target_fileio_read_alloc): Likewise.
8238 (target_fileio_read_stralloc): Likewise.
8240 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8241 <fcntl.h>, and <unistd.h>.
8242 (inf_child_fileio_open_flags_to_host): New function.
8243 (inf_child_errno_to_fileio_error): Likewise.
8244 (inf_child_fileio_open): Likewise.
8245 (inf_child_fileio_pwrite): Likewise.
8246 (inf_child_fileio_pread): Likewise.
8247 (inf_child_fileio_close): Likewise.
8248 (inf_child_fileio_unlink): Likewise.
8249 (inf_child_target): Install to_fileio routines.
8251 * remote.c (init_remote_ops): Install to_fileio routines.
8253 2012-01-20 Pedro Alves <palves@redhat.com>
8254 Ulrich Weigand <ulrich.weigand@linaro.org>
8256 * remote.c (remote_multi_process_p): Only check for multi-process
8257 protocol feature, do not check for extended protocol.
8258 (remote_supports_multi_process): Check for extended protocol here.
8259 (set_general_process): Likewise.
8260 (extended_remote_kill): Likewise.
8261 (remote_pid_to_str): Likewise.
8262 (remote_query_supported): Always query multiprocess mode.
8264 2012-01-20 Pedro Alves <palves@redhat.com>
8265 Ulrich Weigand <ulrich.weigand@linaro.org>
8267 * inferior.h (struct inferior): Add fake_pid_p.
8268 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8269 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8270 magic_null_ptid since the remote side doesn't provide a real PID.
8272 2012-01-19 Tom Tromey <tromey@redhat.com>
8274 * NEWS: Combine the two Python sections.
8276 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8278 * target.h (target_close): Update comment on the target's unpush state.
8280 2012-01-19 Pedro Alves <palves@redhat.com>
8282 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8283 linux_nat_async directly instead of going through the target
8285 * target.c (unpush_target): Close target after unpushing it, not
8288 2012-01-19 Gary Benson <gbenson@redhat.com>
8290 * mdebugread.c (sort_blocks): Replace integer constants with ones
8291 derived from FIRST_LOCAL_BLOCK.
8293 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8294 Jan Kratochvil <jan.kratochvil@redhat.com>
8297 * symfile.c (find_separate_debug_file): New function.
8298 (terminate_after_last_dir_separator): Likewise.
8299 (find_separate_debug_file_by_debuglink): Also try realpath.
8300 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8301 * configure: Regenerate.
8302 * config.in: Regenerate.
8304 2012-01-18 Doug Evans <dje@google.com>
8306 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8307 (main.o): Remove rule.
8308 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8309 (--with-sysroot): Rewrite.
8310 * configure: Regenerate.
8311 * config.in: Regenerate.
8313 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8315 * parse.c (initialize_expout): New function.
8316 (reallocate_expout): Likewise.
8317 (parse_exp_in_context): Use `initialize_expout' and
8318 `reallocate_expout' when appropriate.
8320 2012-01-18 Pedro Alves <palves@redhat.com>
8322 * record.c (struct record_breakpoint, record_breakpoint_p)
8323 (record_breakpoints): New.
8324 (record_insert_breakpoint, record_remove_breakpoint): Manage
8325 record breakpoints list. Only remove breakpoints from the
8326 inferior if they had been inserted there in the first place.
8328 2012-01-17 Doug Evans <dje@google.com>
8330 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8331 if we know we don't have a file name to look for.
8333 2012-01-17 Pedro Alves <palves@redhat.com>
8335 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8336 the frame's stop reason is UNWIND_UNAVAILABLE.
8338 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8340 Fix compilation error.
8341 * m2-exp.y (yyerror): Use ANSI C prototype.
8343 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8345 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8346 (growbuf_by_size): Likewise.
8347 (yyerror): Likewise.
8348 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8349 (modblock): Remove variable (was #if 0'ed).
8350 (parse_number): Convert prototype from K&R to ANSI C.
8351 (yyerror): Likewise.
8352 * objc-exp.y (parse_number): Likewise.
8353 (yyerror): Likewise.
8354 (yylex): Remove #if 0'ed code.
8355 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8356 (yyerror): Likewise.
8358 2012-01-16 Tom Tromey <tromey@redhat.com>
8361 * symtab.h (compare_filenames_for_search): Declare.
8362 * symtab.c (compare_filenames_for_search): New function.
8363 (iterate_over_some_symtabs): Use it.
8364 * symfile.h (struct quick_symbol_functions)
8365 <map_symtabs_matching_filename>: Change spec.
8366 * psymtab.c (partial_map_symtabs_matching_filename): Use
8367 compare_filenames_for_search. Update for new spec.
8368 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8369 compare_filenames_for_search. Update for new spec.
8370 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8372 2012-01-16 Tom Tromey <tromey@redhat.com>
8375 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8376 (struct main_type) <flag_flag_enum>: New field.
8377 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8378 * NEWS: Add entries.
8379 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8381 * python/lib/gdb/printing.py (_EnumInstance): New class.
8382 (FlagEnumerationPrinter): Likewise.
8384 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8386 * breakpoint.c (create_sals_from_address_default): New function.
8387 (create_breakpoints_sal_default): Likewise.
8388 (decode_linespec_default): Likewise.
8389 (is_marker_spec): Removed.
8390 (strace_marker_p): New function.
8391 (init_breakpoint_sal): Using `strace_marker_p' instead of
8393 (create_breakpoint): Call method `create_sals_from_address' from
8394 breakpoint_ops, replacing code that created SALs conditionally
8395 on the type of the breakpoint. Call method `create_breakpoints_sal',
8396 replacing code that created breakpoints conditionally on the type
8398 (base_breakpoint_create_sals_from_address): New function.
8399 (base_breakpoint_create_breakpoints_sal): Likewise.
8400 (base_breakpoint_decode_linespec): Likewise.
8401 (base_breakpoint_ops): Add methods
8402 `base_breakpoint_create_sals_from_address',
8403 `base_breakpoint_create_breakpoints_sal' and
8404 `base_breakpoint_decode_linespec'.
8405 (bkpt_create_sals_from_address): New function.
8406 (bkpt_create_breakpoints_sal): Likewise.
8407 (bkpt_decode_linespec): Likewise.
8408 (tracepoint_create_sals_from_address): Likewise.
8409 (tracepoint_create_breakpoints_sal): Likewise.
8410 (tracepoint_decode_linespec): Likewise.
8411 (strace_marker_create_sals_from_address): Likewise.
8412 (strace_marker_create_breakpoints_sal): Likewise.
8413 (strace_marker_decode_linespec): Likewise.
8414 (strace_marker_breakpoint_ops): New variable.
8415 (addr_string_to_sals): Remove `marker_spec'. Call method
8416 `decode_linespec' from breakpoint_ops, replacing code that decoded
8417 an address string into a SAL. Use `strace_marker_p' instead of
8419 (strace_command): Decide whether we are dealing with a static
8420 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8421 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8422 * breakpoint.h (linespec_result, linespec_sals): New forward
8424 (breakpoint_ops) <create_sals_from_address>,
8425 <create_breakpoints_sal>, <decode_linespec>: New methods.
8427 2012-01-14 Doug Evans <dje@google.com>
8429 * NEWS: Update text for "maint set python print-stack".
8430 It is deprecated in gdb 7.4 and deleted in 7.5.
8432 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8434 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8437 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8439 * configure: Regenerate.
8440 * config.in: Regenerate.
8442 2012-01-12 Keith Seitz <keiths@redhat.com>
8445 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8446 (ANONYMOUS_UNION_NAME): Define.
8447 (is_path_expr_parent): New function.
8448 (get_path_expr_parent): New function.
8449 (is_anonymous_child): New function.
8450 (create_child_with_value): If the child is anonymous and without
8451 a name, assign an object name to it.
8452 (c_describe_child): Use get_path_expr_parent to determine
8453 the parent expression.
8454 If there field represents an anonymous struct or union and
8455 has no name, set an appropriate display name and expression.
8456 (cplus_describe_child): Likewise.
8458 2012-01-12 Pedro Alves <palves@redhat.com>
8460 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8461 available when %ebp is found to be zero (outermost).
8463 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8465 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8466 an internal gdb_static_assert.
8467 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8469 2012-01-11 Tom Tromey <tromey@redhat.com>
8472 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8473 catch" and "catch throw".
8475 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8477 * blockframe.c (block_innermost_frame): Start search from selected
8478 frame, if present, or otherwise the current frame.
8480 * c-exp.y (variable): Update innermost_block for
8481 'block COLONCOLON NAME' clause.
8482 * m2-exp.y (variable): Ditto.
8483 * objc-exp.y (variable): Ditto.
8485 2012-01-10 Tom Tromey <tromey@redhat.com>
8488 * python/python.c (finish_python_initialization): Set sys.argv.
8490 2012-01-10 Doug Evans <dje@google.com>
8492 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8493 "want_line_info". All callers updated.
8494 (dwarf_decode_lines_1): New function.
8495 (handle_DW_AT_stmt_list): Add function comment.
8496 New arg "want_line_info". All callers updated.
8497 (read_file_scope,read_type_unit_scope): Move comment from
8498 handle_DW_AT_stmt_list to here.
8500 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8502 Fix regression after libiberty/ update for GCC PR 6057 and others.
8503 * c-exp.y (operator) <OPERATOR DELETE>
8504 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8505 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8506 (make_builtin_type, make_name): New variable i, add gdb_assert.
8507 (operator) <OPERATOR NEW>: Update ARGS to 3.
8508 (operator) <OPERATOR DELETE>: Add trailing space.
8509 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8510 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8511 * cp-support.c (cp_canonicalize_string): Check NULL from
8512 cp_comp_to_string, call warning and return.
8514 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8516 Fix duplicate .o files after omitting libbfd.a.
8517 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8518 (SFILES): Add corelow.c.
8519 (COMMON_OBS): Add corelow.o.
8520 (ALLDEPFILES): Remove corelow.c.
8521 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8522 * config/alpha/alpha-osf3.mh: Likewise.
8523 * config/alpha/fbsd.mh: Likewise.
8524 * config/arm/nbsdaout.mh: Likewise.
8525 * config/arm/nbsdelf.mh: Likewise.
8526 * config/i386/i386gnu.mh: Likewise.
8527 * config/ia64/hpux.mh: Likewise.
8528 * config/ia64/linux.mh: Likewise.
8529 * config/m32r/linux.mh: Likewise.
8530 * config/m68k/linux.mh: Likewise.
8531 * config/mips/irix5.mh: Likewise.
8532 * config/mips/irix6.mh: Likewise.
8533 * config/pa/hpux.mh: Likewise.
8534 * config/pa/linux.mh: Likewise.
8535 * config/powerpc/aix.mh: Likewise.
8536 * config/sparc/linux.mh: Likewise.
8537 * config/sparc/linux64.mh: Likewise.
8538 * config/sparc/sol2.mh: Likewise.
8539 * config/vax/vax.mh: Likewise.
8540 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8541 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8542 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8543 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8544 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8545 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8546 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8547 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8548 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8549 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8550 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8551 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8552 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8553 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8554 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8555 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8556 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8557 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8558 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8559 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8560 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8561 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8562 corelow.o from gdb_target_obs.
8563 * corefile.c (core_target): Update the comment on NULL value.
8564 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8565 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8566 MATCHES. Drop YUMMY set on NULL.
8567 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8568 reclaim CORE_DATA if it is already NULL.
8570 2012-01-09 Doug Evans <dje@google.com>
8572 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8573 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8575 2012-01-09 Keith Seitz <keiths@redhat.com>
8577 * breakpoint.c (wrapper.h): Don't include.
8579 2012-01-09 Keith Seitz <keiths@redhat.com>
8581 * Makefile.in (SFILES): Remove wrapper.c.
8582 (HFILES_NO_SRCDIR): Remove wrapper.h.
8583 (COMMON_OBS): Remove wrapper.o.
8584 * cli/cli-interp.c: Don't inlude wrapper.h.
8585 * corelow.c: Likewise.
8586 (core_open): Replace gdb_target_find_new_threads with
8587 TRY_CATCH around target_find_new_threads.
8588 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8589 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8590 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8591 evaluate_expression.
8592 (varobj_set_value): Likewise for evaluate_expression and
8594 (install_new_variable): Likewise for value_fetch_lazy.
8595 (adjust_value_for_child_access): Likewise for value_ind.
8596 (c_describe_child): Likewise for value_subscript and
8598 (c_value_of_root): Likewise for evaluate_expression.
8599 * wrapper.c: Remove.
8600 * wrapper.h: Remove.
8602 2012-01-09 Doug Evans <dje@google.com>
8604 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8605 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8606 "abfd" args with "section". All callers updated.
8607 Error checking code moved ...
8608 (error_check_comp_unit_head): ... here. New function.
8609 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8610 Delete arg "abfd". New arg "type_offset". All callers updated.
8611 (create_debug_types_hash_table): Simplify by using
8612 read_and_check_type_unit_head.
8614 * parser-defs.h (namecopy): Delete.
8615 * parse.c (namecopy, namecopy_size): Move into copy_name.
8617 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8619 Partially fix duplicate .o files after omitting libbfd.a.
8620 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8621 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8622 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8623 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8624 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8625 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8626 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8628 2012-01-09 Pedro Alves <palves@redhat.com>
8630 * MAINTAINERS: Update my email address.
8632 2012-01-08 Doug Evans <dje@google.com>
8634 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8635 n_type_units. Rename type_comp_units to all_type_units.
8637 (add_signatured_type_cu_to_table): Renamed from
8638 add_signatured_type_cu_to_list. All callers updated.
8640 * gdbtypes.h (struct cplus_struct_type): Delete member
8641 nfn_fields_total. All uses removed.
8643 2012-01-06 Doug Evans <dje@google.com>
8645 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8647 (dwarf2_find_comp_unit): Delete.
8648 (process_psymtab_comp_unit): Make result "void".
8649 Delete args buffer, info_ptr, buffer_size, and replace with
8650 "section". All callers updated.
8651 (dwarf2_build_psymtabs_hard): Simplify.
8653 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8654 Thiago Jung Bauermann <bauerman@br.ibm.com>
8656 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8657 before `struct gdb_exception'.
8658 * breakpoint.c (update_global_location_list_nothrow)
8659 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8660 * cp-abi.c (value_rtti_type): Likewise.
8661 * cp-support.c (cp_validate_operator): Likewise.
8662 * infrun.c (insert_exception_resume_breakpoint)
8663 (check_exception_resume, keep_going): Likewise.
8664 * mi-interp.c (mi_breakpoint_created)
8665 (mi_breakpoint_modified): Likewise.
8666 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8667 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8668 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8670 2012-01-05 Doug Evans <dje@google.com>
8672 * dwarf2read.c (statement_prologue): Delete, unused.
8674 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8675 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8677 * dwarf2read.c (comp_unit_header): Delete, unused.
8679 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8681 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8682 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8684 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8686 * infrun.c (normal_stop): Don't skip calling the normal_stop
8687 observers if the thread was doing a multi-step, but stopped for
8688 some reason other than stepping.
8690 2012-01-05 Pedro Alves <alves.ped@gmail.com>
8692 * cli/cli-decode.h: Add comments.
8693 (CMD_LIST_AMBIGUOUS): Moved to command.h
8694 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8695 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8696 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8697 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8698 (add_com, add_com_alias, add_info, add_info_alias)
8699 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8701 * command.h: Add and adjust comments.
8702 (CMD_LIST_AMBIGUOUS): Moved here.
8703 (help_cmd, help_cmd_list): Delete declarations.
8705 2012-01-04 Doug Evans <dje@google.com>
8707 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8708 All callers updated.
8709 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8710 Replace all arguments with "per_cu". All callers updated.
8712 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8714 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8715 New arg "per_cu". All callers updated.
8717 Delete #if 0'd out code.
8718 * language.c (binop_result_type): Delete.
8719 (simple_type, ordered_type, same_type, integral_type): Delete.
8720 (numeric_type, character_type, string_type, boolean_type): Delete.
8721 (float_type, structured_type): Delete.
8722 * language.h: Update.
8724 2012-01-04 Tom Tromey <tromey@redhat.com>
8726 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8728 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8730 * corefile.c (close_exec_file): Delete.
8731 (reopen_exec_file): Remove commented out code that seems related
8732 to close_exec_file, which is being deleted here.
8733 * inferior.h (close_exec_file): Delete.
8734 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8736 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8738 * ada-lang.c: #include "cli/cli-utils.h".
8739 (get_selections): Use skip_spaces.
8740 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8741 (catch_ada_exception_command_split): Use skip_spaces.
8742 (ada_decode_assert_location): Likewise.
8744 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8746 * linespec.c (decode_line_internal): Check for C++ or Java
8747 compound constructs only if the current language is C, C++
8750 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8753 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8754 Joel Brobecker <brobecker@adacore.com>
8755 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8756 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8758 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8759 fall through into AT_ENTRY_POINT.
8760 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8762 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8763 PPC_INSN_SIZE skip to 3 times.
8765 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8767 * linespec.c (add_minsym): Preserve function descriptors.
8769 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8771 * breakpoint.c (all_locations_are_pending): Consider locations
8772 in program spaces executing during startup pending as well.
8774 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8776 Copyright year update in most files of the GDB Project.
8778 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8780 * copyright.sh: Delete.
8781 * copyright.py: Rewrite.
8783 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8785 * gnulib/extra/update-copyright: New file, imported from gnulib.
8787 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8789 * README (Copyright and License Notices): New section.
8791 2012-01-03 Tom Tromey <tromey@redhat.com>
8794 * python/py-value.c (valpy_dereference, valpy_get_address
8795 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8796 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8797 (valpy_absolute, valpy_richcompare): Free intermediate values.
8799 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8801 * ada-lang.c: Reformat the copyright notice.
8803 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8805 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8806 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8807 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8808 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8809 Revert this part of:
8810 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8811 Build gdb directly from *.o files not using libgdb.a.
8812 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8814 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8816 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8817 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8818 Reformat the copyright header.
8820 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8822 Revert this part of:
8823 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8824 Remove the gdbtui binary.
8825 * gdb.c (main): Remove args.interpreter_p initialization.
8826 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8827 * main.h (struct captured_main_args): Remove interpreter_p.
8829 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8831 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8833 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8835 * top.c (print_gdb_version): Update copyright year.
8837 2012-01-02 Yao Qi <yao@codesourcery.com>
8839 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8841 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8842 Joel Brobecker <brobecker@adacore.com>
8844 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8845 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8847 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8848 fall through into AT_ENTRY_POINT.
8849 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8851 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8852 PPC_INSN_SIZE skip to 3 times.
8854 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8856 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
8858 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
8860 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8862 Build gdb directly from *.o files not using libgdb.a.
8863 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
8864 (COMMON_OBS): Remove solib-target.o.
8865 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
8866 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8867 (LIBGDB_OBS, libgdb.a): Move it above.
8868 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
8869 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
8870 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
8871 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
8872 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
8873 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
8874 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
8875 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
8876 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
8877 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
8878 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
8879 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
8880 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
8881 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
8882 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8883 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
8884 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
8885 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8886 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
8887 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
8888 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
8889 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
8890 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
8891 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
8892 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
8893 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
8894 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
8896 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8898 Remove the gdbtui binary.
8899 * .gitignore (/gdbtui): Remove.
8900 * Makefile.in (TUI): Remove.
8901 (SUBDIR_TUI_OBS): Remove tui-main.o.
8902 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
8903 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
8904 (tui-main.o): Remove.
8905 (all_object_files): Remove tui-main.o.
8906 * NEWS: New note for the gdbtui removal.
8907 * configure: Rebuilt.
8908 * configure.ac: No longer add all-tui, clean-tui, install-tui and
8909 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
8910 CONFIG_UNINSTALL respectively.
8911 * gdb.c (main): Remove args.interpreter_p initialization.
8912 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8913 * main.h (struct captured_main_args): Remove interpreter_p.
8914 * tui/tui-main.c: Remove.
8916 2012-01-01 Doug Evans <dje@google.com>
8918 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
8919 (dwarf2_physname, read_import_statement): Ditto.
8920 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
8921 (process_structure_scope read_subroutine_type): Ditto.
8922 (read_typedef, load_partial_dies, read_partial_die): Ditto.
8923 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
8924 (dwarf2_fetch_die_location_block): Ditto.
8925 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
8927 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
8928 All callers updated.
8929 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
8930 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
8931 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
8933 * dwarf2read.c (load_cu): Move assert to more useful location.
8935 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
8936 All callers updated.
8938 * dwarf2read.c (dwarf2_per_objfile): Add comment.
8939 (dwarf2_elf_names): Minor reformat.
8940 (dwarf2_per_cu_data): Tweak comment.
8941 (dwarf2_read_section): Fix comment.
8942 (create_all_comp_units): Fix comment.
8943 (load_full_comp_unit): Fix comment.
8944 (process_full_comp_unit): Fix comment.
8945 (read_signatured_type): Fix comment.
8947 For older changes see ChangeLog-2011.
8953 version-control: never