1 2012-07-23 Tom Tromey <tromey@redhat.com>
3 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
5 2012-07-23 Tom Tromey <tromey@redhat.com>
7 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
9 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
11 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
12 * machoread.c (macho_add_oso_symfile): Make a cleanup for
14 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
15 * objfiles.c (allocate_objfile): Acquire a new reference.
16 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
17 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
18 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
20 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
22 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
23 make a cleanup for 'abfd'.
24 (symbol_file_add): Make a BFD cleanup.
26 2012-07-23 Tom Tromey <tromey@redhat.com>
28 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
29 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
30 * corelow.c (core_open): Use gdb_bfd_fopen.
31 * dsrec.c (load_srec): Use gdb_bfd_openr.
32 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
33 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
34 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
35 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
36 (gdb_bfd_fdopenr): New functions.
37 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
38 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
39 (gdb_bfd_fdopenr): Declare.
40 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
41 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
42 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
43 gdb_bfd_openr_next_archived_file.
44 (macho_check_dsym): Use gdb_bfd_openr.
45 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
46 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
47 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
48 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
50 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
51 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
52 gdb_bfd_openr_next_archived_file.
53 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
55 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
57 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
58 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
59 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
60 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
61 (symfile_bfd_open): Use gdb_bfd_fopen.
62 (generic_load): Use gdb_bfd_openr.
63 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
65 2012-07-23 Tom Tromey <tromey@redhat.com>
67 * bfd-target.c (target_bfd_reopen): Update.
68 * cli/cli-dump.c (bfd_openr_with_cleanup)
69 (bfd_openw_with_cleanup): Update.
70 * corelow.c (core_open): Update.
71 * dsrec.c (load_srec): Update.
72 * exec.c (exec_file_attach): Update.
73 * gcore.c (create_gcore_bfd): Update.
74 * gdb_bfd.c (gdb_bfd_ref): Return void.
75 (gdb_bfd_open): Update.
76 * gdb_bfd.h (gdb_bfd_ref): Return void.
78 * jit.c (jit_bfd_try_read_symtab): Update.
79 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
80 * machoread.c (macho_symfile_read_all_oso): Update.
81 (macho_check_dsym): Update.
82 * procfs.c (insert_dbx_link_bpt_in_file): Update.
83 * remote-m32r-sdi.c (m32r_load): Update.
84 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
85 * rs6000-nat.c (add_vmap): Update.
86 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
88 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
89 * solib-spu.c (spu_bfd_open): Update.
90 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
91 * spu-linux-nat.c (spu_bfd_open): Update.
92 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
93 (generic_load): Update.
94 * windows-nat.c (windows_make_so): Update.
96 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
98 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
100 2012-07-20 Jeff Kenton <jkenton@tilera.com>
102 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
103 SIGTRAMP_FRAME unwinding.
105 2012-07-20 Doug Evans <dje@google.com>
107 * NEWS: Document new options "set/show use-deprecated-index-sections",
108 and delete reference to --use-deprecated-index-sections.
109 * symfile.h (use_deprecated_index_sections): Delete.
110 * dwarf2read.c (use_deprecated_index_sections): Make static.
111 (read_index_from_section): Update wording of how to load
112 deprecated index sections.
113 (_initialize_dwarf2_read): New options
114 "set/show use-deprecated-index-sections".
115 * main.c (captured_main): Delete --use-deprecated-index-sections.
117 2012-07-20 Pedro Alves <palves@redhat.com>
122 * infrun.c (handle_inferior_event) <new thread>: Don't special
124 <TARGET_WAITKIND_SPURIOUS>: Ditto.
125 * linux-thread-db.c (thread_get_info_callback): Don't return early
126 if the thread is zombie.
127 (thread_from_lwp): Change return type to void. Rewrite stale
129 (attach_thread): Don't return early if the thread is zombie,
130 instead set its "dying" flag.
131 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
132 (find_new_threads_callback): Don't return early if the thread is
135 2012-07-20 Pedro Alves <palves@redhat.com>
137 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
138 * target.c (target_wait): Likewise.
139 (str_comma_list_concat_elem, do_option, target_options_to_string):
141 * target.h (target_options_to_string): Declare.
143 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
144 Tom Tromey <tromey@redhat.com>
146 * dwarf2read.c (dwarf_decode_macros)
147 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
148 DW_MACRO_GNU_transparent_include_alt>: New cases.
149 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
150 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
152 2012-07-20 Tom Tromey <tromey@redhat.com>
154 * dwarf2read.c (try_open_dwo_file): Don't call
155 gdb_bfd_stash_filename.
157 2012-07-20 Pedro Alves <palves@redhat.com>
159 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
160 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
161 (i386_process_record): Tweak description comments.
163 2012-07-20 Pedro Alves <palves@redhat.com>
165 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
166 (i386_process_record): Use record_read_memory.
167 * record.c (record_read_memory): New function.
168 (record_arch_list_add_mem, record_exec_insn): Use
170 * record.h (record_read_memory): Declare.
172 2012-07-20 Yao Qi <yao@codesourcery.com>
174 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
177 2012-07-19 Pedro Alves <palves@redhat.com>
179 * record.c (record_resume): Ask the target beneath to report all
182 2012-07-19 Doug Evans <dje@google.com>
184 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
185 there's no section at address zero.
186 (dwarf2_record_block_ranges): Ditto.
188 2012-07-19 Yao Qi <yao@codesourcery.com>
190 * command.h, remote.c: Fix a typo in comment.
192 2012-07-19 Tom Tromey <tromey@redhat.com>
195 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
196 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
197 OP_DECLTYPE>: New cases.
198 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
199 (type_exp): Add new productions.
200 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
202 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
204 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
205 OP_DECLTYPE>: New case.
206 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
208 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
209 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
211 2012-07-19 Tom Tromey <tromey@redhat.com>
213 * c-exp.y (enum token_flags): New.
214 (struct token) <cxx_only>: Remove.
216 (tokentab3, tokentab2, ident_tokens): Update.
217 (lex_one_token): Update. Handle FLAG_SHADOW.
219 2012-07-19 Tom Tromey <tromey@redhat.com>
221 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
222 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
223 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
224 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
225 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
226 type_exp production where appropriate.
227 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
228 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
229 <UNOP_MEMVAL_TYPE>: New case.
230 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
231 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
232 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
233 <UNOP_MEMVAL_TYPE>: New case.
234 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
235 UNOP_REINTERPRET_CAST>: Update.
236 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
237 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
238 UNOP_REINTERPRET_CAST>: Update.
239 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
240 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
241 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
244 2012-07-19 Yao Qi <yao@codesourcery.com>
245 Jan Kratochvil <jan.kratochvil@redhat.com>
247 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
248 and case 'var_optional_filename' together.
249 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
250 instead of add_setshow_optional_filename_cmd for setshow command
251 'args'. Set completer for 'set args'.
253 2012-07-18 Doug Evans <dje@google.com>
255 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
256 * common/gdb_vecs.c: New file, contents from utils.c.
257 * common/host-defs.h: New file, contents from defs.h.
258 * utils.h: New file, contents from defs.h.
259 * defs.h: Move all declarations of objects defined in utils.c
260 to utils.h (except QUIT() and related).
261 #include "utils.h", "host-defs.h".
262 * probe.h (probe_p): Move here from gdb_vecs.h.
263 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
264 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
265 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
266 * Makefile.in (SFILES): Add common/gdb_vecs.c.
267 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
268 (COMMON_OBS): Add gdb_vecs.o.
269 (gdb_vecs.o): New rule.
271 2012-07-18 Keith Seitz <keiths@redhat.com>
273 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
274 parameter. If non-zero, use SYMNAME as the canonical name
277 (convert_linespec_to_sals): Use add_sal_to_sals for
279 (decode_line_full): No need to "fill in missing canonical names"
280 anymore. Simply make cleanups for the allocated names.
282 2012-07-18 Keith Seitz <keiths@redhat.com>
284 * linespec.c (struct linespec): Constify expression,
285 source_filename, function_name, and label_name.
286 (symbol_not_found_error): Make all parameters const.
287 (linespec_parser_delete): No need to check for NULL
288 when using xfree. Cast const char * to char * for xfree.
290 2012-07-18 Keith Seitz <keiths@redhat.com>
292 * breakpoint.c (invalid_thread_id_error): New function.
293 (find_condition_and_thread): Use invalid_thread_id_error.
294 (watch_command_1): Likewise.
296 2012-07-18 Tom Tromey <tromey@redhat.com>
298 * cc-with-index.sh, cc-with-dwz.sh: Remove.
299 * contrib/cc-with-tweaks.sh: New file.
301 2012-07-18 Tom Tromey <tromey@redhat.com>
303 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
304 (locate_dwz_sections): Recognize .gdb_index.
305 (create_cus_from_index_list): New function.
306 (create_cus_from_index): Use it. Handle .dwz data.
307 (read_index_from_section): New function, extracted from
309 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
312 2012-07-18 Tom Tromey <tromey@redhat.com>
314 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
315 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
317 (struct dwz_file): New.
318 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
319 (locate_dwz_sections, dwarf2_get_dwz_file)
320 (get_abbrev_section_for_cu): New functions.
321 (error_check_comp_unit_head, read_and_check_comp_unit_head)
322 (read_and_check_type_unit_head): Add abbrev_section argument.
323 (create_debug_types_hash_table): Update.
324 (init_cutu_and_read_dies): Use proper abbrev section.
325 (init_cutu_and_read_dies_no_follow): Likewise.
326 (set_partial_user): Do nothing if PST==NULL.
327 (read_comp_units_from_section): New function.
328 (create_all_comp_units): Use it.
329 (scan_partial_symbols, partial_die_parent_scope): Update.
330 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
331 (process_imported_unit_die, read_partial_die): Handle .dwz files.
332 (find_partial_die): Add offset_in_dwz argument. Update.
333 (guess_partial_die_structure_name, fixup_partial_die): Update.
334 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
335 DW_FORM_GNU_strp_alt.
336 (read_indirect_string_from_dwz): New function.
337 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
338 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
339 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
340 (follow_die_offset): Add offset_in_dwz argument.
341 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
342 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
343 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
344 Handle new macro forms.
345 (dwarf_decode_macros): Update.
346 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
347 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
348 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
349 (create_debug_types_hash_table): Use correct abbrev section.
350 (get_debug_line_section): New function.
351 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
352 (process_full_comp_unit): Pass 'required' argument to
353 end_symtab_get_static_block.
354 * buildsym.h (end_symtab_get_static_block): Update.
355 * buildsym.c (end_symtab_get_static_block): Add 'required'
357 (end_symtab, end_expandable_symtab): Update.
359 2012-07-18 Tom Tromey <tromey@redhat.com>
361 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
363 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
364 (zlib_decompress_section): Remove.
365 (dwarf2_read_section): Use gdb_bfd_map_section.
366 (munmap_section_buffer): Remove.
367 (free_dwo_file, dwarf2_per_objfile_free): Don't use
368 munmap_section_buffer.
369 * gdb_bfd.c: Include zlib.h, sys/mman.h.
370 (struct gdb_bfd_section_data): New.
371 (free_one_bfd_section): New function.
372 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
373 (get_section_descriptor, zlib_decompress_section)
374 (gdb_bfd_map_section): New functions.
375 * gdb_bfd.h (gdb_bfd_map_section): Declare.
377 2012-07-18 Tom Tromey <tromey@redhat.com>
379 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
381 2012-07-18 Tom Tromey <tromey@redhat.com>
383 * gdb_bfd.c (struct gdb_bfd_data): New.
384 (gdb_bfd_cache): New global.
385 (struct gdb_bfd_cache_search): New.
386 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
387 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
388 * gdb_bfd.h (gdb_bfd_open): Declare.
390 2012-07-18 Tom Tromey <tromey@redhat.com>
392 * utils.c (make_cleanup_bfd_unref): Rename from
393 make_cleanup_bfd_close.
394 * defs.h (make_cleanup_bfd_unref): Rename from
395 make_cleanup_bfd_close.
396 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
397 (bfd_openw_with_cleanup): Update.
398 * corelow.c (core_open): Update.
399 * dsrec.c (load_srec): Update.
400 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
401 * remote-m32r-sdi.c (m32r_load): Update.
402 * remote-mips.c (mips_load_srec): Update.
403 (pmon_load_fast): Update.
404 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
406 (darwin_bfd_open): Update.
407 * solib.c (solib_bfd_fopen): Update.
408 * symfile-mem.c (symbol_file_add_from_memory): Update.
409 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
410 (symfile_bfd_open): Update.
411 (generic_load): Update.
413 2012-07-18 Tom Tromey <tromey@redhat.com>
415 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
416 (pmon_load_fast): Likewise.
417 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
418 (m32r_upload_command): Likewise.
419 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
420 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
421 Use make_cleanup_bfd_close.
423 2012-07-18 Tom Tromey <tromey@redhat.com>
425 * symfile.c (symfile_bfd_open): Don't copy name. Call
426 gdb_bfd_stash_filename.
427 (load_command): Open the new BFD before freeing the old.
428 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
429 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
430 Call gdb_bfd_stash_filename.
431 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
432 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
433 gdb_bfd_stash_filename.
434 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
436 * rs6000-nat.c (add_vmap): Don't copy filename. Call
437 gdb_bfd_stash_filename.
438 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
439 * machoread.c (macho_add_oso_symfile): Call
440 gdb_bfd_stash_filename.
441 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
442 gdb_bfd_stash_filename.
443 (macho_check_dsym): Don't copy filename. Call
444 gdb_bfd_stash_filename.
445 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
446 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
447 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
448 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
449 * exec.c (exec_close): Don't free the BFD's filename.
450 (exec_file_attach): Don't copy the filename. Call
451 gdb_bfd_stash_filename.
452 * corelow.c (core_close): Don't free the BFD's filename.
453 (core_open): Call gdb_bfd_stash_filename.
454 * corefile.c (reopen_exec_file): Remove #if 0 code.
455 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
457 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
459 2012-07-18 Tom Tromey <tromey@redhat.com>
461 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
463 (free_dwo_file): Use gdb_bfd_unref.
464 * cli/cli-dump.c: Include gdb_bfd.h.
465 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
466 (bfd_openr_with_cleanup): Likewise.
467 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
469 * utils.c: Include gdb_bfd.h.
470 (do_bfd_close_cleanup): Use gdb_bfd_unref.
471 * symfile.c: Include gdb_bfd.h.
472 (separate_debug_file_exists): Use gdb_bfd_unref.
473 (bfd_open_maybe_remote): Use gdb_bfd_ref.
474 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
475 (generic_load): Use gdb_bfd_ref.
476 (reread_symbols): Use gdb_bfd_unref.
477 * symfile-mem.c: Include gdb_bfd.h.
478 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
479 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
480 * solib.c: Include gdb_bfd.h.
481 (solib_bfd_fopen): Use gdb_bfd_ref.
482 (solib_bfd_open): Use gdb_bfd_unref.
483 (free_so_symbols): Use gdb_bfd_unref.
484 (reload_shared_libraries_1): Use gdb_bfd_unref.
485 * solib-spu.c: Include gdb_bfd.h.
486 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
487 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
489 * solib-frv.c: Include gdb_bfd.h.
490 (enable_break2): Use gdb_bfd_unref.
491 * solib-dsbt.c: Include gdb_bfd.h.
492 (enable_break2): Use gdb_bfd_unref.
493 * solib-darwin.c: Include gdb_bfd.h.
494 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
496 (darwin_bfd_open): Use gdb_bfd_unref.
497 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
498 * remote-mips.c: Include gdb_bfd.h.
499 (mips_load_srec): Use gdb_bfd_ref.
500 (pmon_load_fast): Use gdb_bfd_ref.
501 * remote-m32r-sdi.c: Include gdb_bfd.h.
502 (m32r_load): Use gdb_bfd_ref.
503 * record.c: Include gdb_bfd.h.
504 (record_save_cleanups): Use gdb_bfd_unref.
505 (cmd_record_save): Use gdb_bfd_unref.
506 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
508 * objfiles.h (gdb_bfd_close_or_warn): Remove.
509 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
510 * objfiles.c: Include gdb_bfd.h.
511 (free_objfile): Use gdb_bfd_unref.
512 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
514 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
515 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
516 (macho_check_dsym): Likewise.
517 * m32r-rom.c: Include gdb_bfd.h.
518 (m32r_load): Use gdb_bfd_ref.
519 (m32r_upload_command): Use gdb_bfd_ref.
520 * jit.c: Include gdb_bfd.h.
521 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
522 * gdb_bfd.h: New file.
523 * gdb_bfd.c: New file.
524 * gcore.c: Include gdb_bfd.h.
525 (create_gcore_bfd): Use gdb_bfd_ref.
526 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
527 (gcore_command): Use gdb_bfd_unref.
528 * exec.c: Include gdb_bfd.h.
529 (exec_close): Use gdb_bfd_unref.
530 (exec_close_1): Use gdb_bfd_unref.
531 (exec_file_attach): Use gdb_bfd_ref.
532 * elfread.c: Include gdb_bfd.h.
533 (build_id_verify): Use gdb_bfd_unref.
534 * dsrec.c: Include gdb_bfd.h.
535 (load_srec): Use gdb_bfd_ref.
536 * corelow.c: Include gdb_bfd.h.
537 (core_close): Use gdb_bfd_unref.
538 (core_open): Use gdb_bfd_ref.
539 * bfd-target.c: Include gdb_bfd.h.
540 (target_bfd_xclose): Use gdb_bfd_unref.
541 (target_bfd_reopen): Use gdb_bfd_ref.
542 * Makefile.in (SFILES): Add gdb_bfd.c.
543 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
544 (COMMON_OBS): Add gdb_bfd.o.
546 2012-07-18 Keith Seitz <keiths@redhat.com>
548 * breakpoint.c (find_condition_and_thread): Initialize
550 (create_breakpiont): find_condition_and_thread will now
551 initialize COND_STRING, THREAD, and REST (and TASK).
552 (addr_string_to_sals): Likewise.
554 2012-07-18 Pedro Alves <palves@redhat.com>
556 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
557 Pull the single step breakpoints out of the target.
559 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
561 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
562 * stap-probe.c (compile_probe_arg): Likewise.
564 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
566 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
567 (elf_compile_to_ax): Likewise.
568 * infrun.c (insert_exception_resume_from_probe): Likewise.
569 (check_exception_resume): Remove `objfile' variable.
570 * probe.c (find_probe_by_pc): Remove `objfile' argument.
571 (struct probe_and_objfile, probe_and_objfile_s): Delete.
572 (collect_probes): Adjust return value to `VEC (probe_p) *'.
573 (compare_entries): Rename to...
574 (compare_probes): ...this. Adjust function to work with
575 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
577 (gen_ui_out_table_header_info): Adjust `probes' argument to be
579 (print_ui_out_info): Adjust argument to be `struct probe *'.
580 (info_probes_for_ops): Adjust internal computations to use
582 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
583 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
584 gen_info_probes_table_values>: Remove `objfile' argument.
585 (struct probe) <objfile>: New field.
586 (find_probe_by_pc): Remove `objfile' argument.
587 * stap-probe.c (stap_parse_probe_arguments): Likewise.
588 (stap_get_probe_argument_count): Likewise.
589 (stap_get_arg): Likewise.
590 (stap_evaluate_probe_argument): Likewise.
591 (stap_compile_to_ax): Likewise.
592 (compile_probe_arg): Refactor not to pass `objfile' anymore.
593 (handle_stap_probe): Fill `objfile' field from `struct probe'.
594 (stap_gen_info_probes_table_header): Remove `objfile' argument.
595 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
596 sym_compile_to_ax>: Likewise.
598 2012-07-18 Terry Guo <terry.guo@arm.com>
601 * defs.h (GDB_MI_MSG_WIDTH): New.
602 * ser_base (ser_base_read_error_fd): New function.
603 (do_ser_base_readchar): Poll error file descriptor as well as
605 (generic_readchar): Refactor error handling.
607 2012-07-18 Joel Brobecker <brobecker@adacore.com>
609 * NEWS: Create a new section for the next release branch.
610 Rename the section of the current branch, now that it has
613 2012-07-18 Joel Brobecker <brobecker@adacore.com>
615 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
616 * version.in: Bump version to 7.5.50.20120718-cvs.
618 2012-07-17 Keith Seitz <keiths@redhat.com>
620 * linespec.c (linespec_parse_line_offset): Make parameter
623 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
626 * f-valprint.c (info_common_command): New variable frame_id.
627 Reinitialize FI form FRAME_ID after each print_variable_and_value.
628 * printcmd.c (print_variable_and_value): Extend function comment.
629 Add comment for invalidated FRAME.
630 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
631 FI form FRAME_ID after each print_frame_local_vars.
632 (struct print_variable_and_value_data): Change frame to frame_id.
633 (do_print_variable_and_value): New variable frame, initialize it from
634 p->frame_id. Add comment for invalidated FRAME.
635 (print_frame_local_vars, print_frame_arg_vars): New function comment.
636 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
637 for invalidated FRAME.
639 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
640 Pedro Alves <palves@redhat.com>
642 * linux-nat.c (linux_nat_detach): Don't unregister from the event
645 2012-07-16 Tom Tromey <tromey@redhat.com>
647 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
649 2012-07-15 Doug Evans <dje@google.com>
651 * dwarf2read.c (stmt_list_hash): New struct.
652 (type_unit_group): Embed "per_cu" member, remove pointer.
653 New union member "t", move member "tus" into it, all uses updated.
654 New member "hash", replaces member "line_offset, all uses updated.
655 (quick_file_names): Replace member "offset" with "hash", all uses
657 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
658 (hash_file_name_entry, eq_file_name_entry): Call them.
659 (hash_type_unit_group, eq_type_unit_group): Ditto.
660 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
661 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
662 (dw2_get_file_names): Update.
663 (create_type_unit_group): Replace "per_cu" arg with "cu".
664 All callers updated. Fix "quick" (.gdb_index) handling.
665 (get_type_unit_group): Replace "per_cu" arg with "cu".
667 (build_type_unit_groups): Don't reset tu_stats.
669 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
670 "tab_cur_size". Change member "tab" to be a htab_t.
671 (create_filename_seen_cache): Update.
672 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
673 (filename_seen): Update.
675 2012-07-13 Doug Evans <dje@google.com>
677 * symtab.c (filename_seen): Update comment.
679 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
680 Doug Evans <dje@google.com>
682 * buildsym.c (end_symtab_1): Split it to ...
683 (end_symtab_get_static_block): ... this ...
684 (end_symtab_from_static_block): ... and this function.
685 (end_symtab, end_expandable_symtab): Call them.
686 * buildsym.h (end_symtab_get_static_block)
687 (end_symtab_from_static_block): New declarations.
688 * dwarf2read.c (process_full_comp_unit): New variable static_block.
689 Set its valid CU ranges.
691 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
693 * dwarf2loc.c (disassemble_dwarf_expression): Handle
694 DW_OP_GNU_parameter_ref.
696 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
698 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
699 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
701 2012-07-13 Doug Evans <dje@google.com>
703 * symtab.c (output_source_filename): Delete unnecessary forward decl.
704 (filename_seen_cache): New struct.
705 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
706 (create_filename_seen_cache): New function.
707 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
708 (filename_seen): Delete arg "first". New arg "cache". All callers
710 (output_source_filename_data): New struct.
711 (output_source_filename): Delete arg "first". New arg "data".
713 (sources_info): Delete local "first". New locals "data", "cleanups".
714 Rewrite to use filename_seen_cache.
715 (add_partial_filename_data): Delete member "first". New member
716 "filename_seen_cache". All uses updated.
717 (make_source_files_completion_list): Rewrite to use
720 2012-07-12 Doug Evans <dje@google.com>
722 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
724 2012-07-10 Doug Evans <dje@google.com>
727 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
728 all_type_unit_groups, type_unit_groups, tu_stats.
729 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
730 All uses updated. Add type_unit_group to union "s".
731 (type_unit_group): New struct.
732 (IS_TYPE_UNIT_GROUP): New macro.
733 (abbrev_table): Delete unused member "section".
734 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
735 (dw2_get_cu): Assert not used with type_unit_group.
736 (dw2_get_primary_cu): New function.
737 (dw2_build_type_unit_groups_reader): New function.
738 (dw2_build_type_unit_groups): New function.
739 (dw2_get_file_names): Assert not called on type units.
740 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
741 Redo loop to iterate over type unit groups instead of type units.
742 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
743 (read_abbrev_offset): New function.
744 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
746 (create_partial_symtab): New function.
747 (process_psymtab_comp_unit_reader): Assert not used with type units.
748 Call create_partial_symtab.
749 (process_psymtab_type_unit): Delete.
750 (hash_type_unit_group, eq_type_unit_group): New functions.
751 (allocate_type_unit_groups_table): New function.
752 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
753 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
754 (create_type_unit_group, get_type_unit_group): New functions.
755 (tu_abbrev_offset): New struct.
756 (sort_tu_by_abbrev_offset): New function.
757 (add_type_unit_group_to_table): New function.
758 (build_type_unit_groups): New function.
759 (build_type_psymtabs_reader): New function.
760 (build_type_psymtab_dependencies): New function.
761 (build_type_psymtabs): Rewrite.
762 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
763 is seen in a type unit.
764 (process_queue): Move symtab expansion debugging printfs here.
765 Call process_full_type_unit for type units.
766 (compute_symtab_includes): Assert not called for type units.
767 (process_cu_includes): Don't call compute_symtab_includes for
769 (process_full_type_unit): New function.
770 (process_imported_unit_die): Flag an error if called for type units.
771 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
772 updated. Assert not called for type units.
773 (read_file_scope): Call dwarf2_start_symtab.
774 (setup_type_unit_groups): New function.
775 (read_type_unit_scope): Rewrite.
776 (abbrev_table_read_table): Initialize abbrev_table->offset.
777 (abbrev_table_free_cleanup): New function.
778 (dwarf2_start_symtab): New function.
779 (load_full_type_unit): Assert not called for type unit groups.
780 * buildsym.c (finish_block_internal): New arg "expandable".
782 (start_symtab): Move most contents to ...
783 (restart_symtab): ... here. New function.
784 (reset_symtab_globals): New function.
785 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
786 Call reset_symtab_globals.
787 (end_symtab, end_expandable_symtab): New functions.
788 (set_missing_symtab, augment_type_symtab): New functions.
789 * buildsym.h (end_expandable_symtab): Declare.
790 (augment_type_symtab, restart_symtab): Declare.
791 * psympriv.h (struct partial_symtab): New member "anonymous".
792 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
794 (read_psymtabs_with_filename): Ditto.
795 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
796 (expand_symtabs_matching_via_partial): Ditto.
797 (dump_psymtab): Update.
798 * dictionary.c (dict_add_pending): New function.
799 * dictionary.h (dict_add_pending): Declare.
801 2012-07-09 Doug Evans <dje@google.com>
803 * buildsym.c (start_subfile): Remove unnecessary check for
806 * psymtab.c (allocate_psymtab): Use host_address_to_string.
808 * dwarf2read.c (load_full_type_unit): Simplify.
810 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
811 to struct signatured_type **. All uses updated.
813 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
816 2012-07-09 Tom Tromey <tromey@redhat.com>
818 * c-exp.y (check_parameter_typelist): New function.
819 (parameter_typelist): Call it.
820 * eval.c (make_params): Handle '(void)' case.
821 * gdbtypes.c (lookup_function_type_with_arguments): Handle
824 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
826 * common/linux-ptrace.c: Include gdb_assert.h.
827 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
828 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
830 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
832 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
833 * linux-nat.c (linux_child_post_attach)
834 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
836 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
838 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
839 nptl <2.7 bug workaround for core files.
841 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
843 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
845 (save_siginfo): Remove.
846 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
848 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
849 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
850 * linux-nat.h (struct lwp_info): Remove field siginfo.
852 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
854 Code cleanup for the next patch.
855 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
856 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
858 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
859 (ia64_linux_stopped_data_address):
860 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
862 * linux-nat.h (linux_nat_get_siginfo): Likewise.
863 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
864 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
867 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
870 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
871 Increase buffer sizes to 2x we need, not just 2x of the previous size.
873 2012-07-06 Tom Tromey <tromey@redhat.com>
875 * c-exp.y (DOTDOTDOT): New token.
876 (func_mod, exp): Use parameter_typelist.
877 (parameter_typelist): New production.
878 (tokentab3): Add "..." token.
879 * eval.c (make_params): Handle varargs.
880 * gdbtypes.c (lookup_function_type_with_arguments): Handle
883 2012-07-06 Tom Tromey <tromey@redhat.com>
886 * c-exp.y (%union) <tvec>: Change type.
887 (func_mod): Now uses <tvec> type.
888 (exp): Update for tvec change.
889 (direct_abs_decl): Push the typelist.
890 (func_mod): Return a typelist.
891 (nonempty_typelist): Update for tvec change.
892 * gdbtypes.c (lookup_function_type_with_arguments): New function.
893 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
894 * parse.c (pop_type_list): New function.
895 (push_typelist): New function.
896 (follow_types): Handle tp_function_with_arguments.
897 * parser-defs.h (type_ptr): New typedef. Define a VEC.
898 (enum type_pieces) <tp_function_with_arguments>: New constant.
899 (union type_stack_elt) <typelist_val>: New field.
900 (push_typelist): Declare.
902 2012-07-06 Tom Tromey <tromey@redhat.com>
904 * c-exp.y (%union) <type_stack>: New field.
905 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
906 (ptr_operator_ts): New production.
908 * parse.c (type_stack_reserve): New function.
909 (check_type_stack_depth): Use it.
910 (pop_type_stack, append_type_stack, push_type_stack)
911 (get_type_stack, type_stack_cleanup): New functions.
912 (follow_types): Handle tp_type_stack.
913 (_initialize_parse): Simplify initialization.
914 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
916 (union type_stack_elt) <stack_val>: New field.
917 (get_type_stack, append_type_stack, push_type_stack)
918 (type_stack_cleanup): Declare.
920 2012-07-06 Tom Tromey <tromey@redhat.com>
922 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
924 (struct type_stack): New.
925 * parse.c (type_stack, type_stack_size, type_stack_depth):
927 (type_stack): New global.
928 (parse_exp_in_context, check_type_stack_depth)
929 (insert_into_type_stack, insert_type, push_type, push_type_int)
930 (insert_type_address_space, pop_type, pop_type_int)
931 (_initialize_parse): Update.
933 2012-07-06 Tom Tromey <tromey@redhat.com>
935 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
938 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
940 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
942 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
943 Jan Kratochvil <jan.kratochvil@redhat.com>
945 * cp-valprint.c (cp_print_value): Replace potentially unsafe
946 alloca with xmalloc/xfree.
948 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
950 * MAINTAINERS (Write After Approval): Add myself to the list.
952 2012-07-05 Doug Evans <dje@google.com>
954 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
956 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
958 * ax-gdb.c (cli/cli-utils.h): New include.
960 (agent_eval_command_one): New function.
961 (agent_command_1): Ditto.
962 (agent_command): Call function agent_command_1.
963 (agent_eval_command): Ditto.
964 (_initialize_ax_gdb): Change help for "maint agent"
965 and "maint agent-eval".
967 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
969 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
970 * cli/cli-utils.c (check_for_argument): New function.
971 * cli/cli-utils.h (check_for_argument): Ditto.
973 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
975 * NEWS: Mention x32 ABI support.
977 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
979 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
980 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
982 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
983 and pc_regnum_from_eax to -1. Update SP regnum from
984 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
987 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
990 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
992 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
993 * dwarf2expr.h: Include gdbtypes.h.
994 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
995 these forward declarations.
996 (cu_offset, sect_offset): Move these ...
997 * gdbtypes.h: Remove include dwarf2expr.h.
998 (cu_offset, sect_offset): ... here.
1000 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1002 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1003 (amd64_linux_sigtramp_code): This.
1004 (amd64_x32_linux_sigtramp_code): New.
1005 (LINUX_SIGTRAMP_LEN): Updated.
1006 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1008 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1010 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1012 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1014 * config.in: Regenerate.
1015 * configure: Regenerate.
1016 * configure.ac: Remove check for gnu/libc-version.h.
1017 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1019 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1020 variables libc_version, libc_major and libc_minor. Replace sscanf by
1021 inferior_has_bug. Extend the comment.
1023 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1025 * linux-thread-db.c (inferior_has_bug): New function.
1026 (thread_db_find_new_threads_silently): Return boolean as checked by
1027 inferior_has_bug, describe it in the comments.
1028 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1029 earlier. Abort the initialization if it returned non-zero.
1030 (thread_db_new_objfile): Exclude debug files.
1031 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1034 2012-07-02 Doug Evans <dje@google.com>
1036 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1037 related to queue management.
1039 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1040 instead of "debug dwarf2-die" in debugging printfs.
1041 (create_debug_info_hash_table_reader): Ditto.
1042 (create_debug_info_hash_table): Ditto.
1043 (init_dwo_file): Ditto.
1044 (init_cutu_and_read_dies): Add debugging printf.
1045 (init_cutu_and_read_dies_no_follow): Ditto.
1046 (process_psymtab_comp_unit_reader): Ditto.
1048 2012-07-02 Stan Shebs <stan@codesourcery.com>
1050 Add target-side support for dynamic printf.
1051 * NEWS: Mention the additional style.
1052 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1053 (struct bp_location): New field cmd_bytecode.
1054 * breakpoint.c: Include format.h.
1055 (disconnected_dprintf): New global.
1056 (parse_cmd_to_aexpr): New function.
1057 (build_target_command_list): New function.
1058 (insert_bp_location): Call it.
1059 (remove_breakpoints_pid): Skip dprintf breakpoints.
1060 (print_one_breakpoint_location): Ditto.
1061 (dprintf_style_agent): New global.
1062 (dprintf_style_enums): Add dprintf_style_agent.
1063 (update_dprintf_command_list): Add agent case.
1064 (agent_printf_command): New function.
1065 (_initialize_breakpoint): Add new commands.
1066 * common/ax.def (printf): New bytecode.
1067 * ax.h (ax_string): Declare.
1068 * ax-gdb.h (gen_printf): Declare.
1069 * ax-gdb.c: Include cli-utils.h, format.h.
1070 (gen_printf): New function.
1071 (maint_agent_print_command): New function.
1072 (_initialize_ax_gdb): Add maint agent-printf command.
1073 * ax-general.c (ax_string): New function.
1074 (ax_print): Add printf disassembly.
1075 * Makefile.in (SFILES): Add format.c
1076 (COMMON_OBS): Add format.o.
1077 * common/format.h: New file.
1078 * common/format.c: New file.
1079 * printcmd.c: Include format.h.
1080 (ui_printf): Call parse_format_string.
1081 * remote.c (remote_state): New field breakpoint_commands.
1082 (PACKET_BreakpointCommands): New enum.
1083 (remote_breakpoint_commands_feature): New function.
1084 (remote_protocol_features): Add new BreakpointCommands entry.
1085 (remote_can_run_breakpoint_commands): New function.
1086 (remote_add_target_side_commands): New function.
1087 (remote_insert_breakpoint): Call it.
1088 (remote_insert_hw_breakpoint): Ditto.
1089 (_initialize_remote): Add new packet configuration for
1090 target-side breakpoint commands.
1091 * target.h (struct target_ops): New field
1092 to_can_run_breakpoint_commands.
1093 (target_can_run_breakpoint_commands): New macro.
1094 * target.c (update_current_target): Handle
1095 to_can_run_breakpoint_commands.
1097 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1099 Execute -ix and -iex only after system and user gdbinit files.
1100 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1101 processing down after gdbinit files.
1103 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1105 Add fnmatch-gnu module.
1106 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1107 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1108 * gnulib/aclocal.m4: Regenerate.
1109 * gnulib/config.in: Regenerate.
1110 * gnulib/configure: Regenerate.
1111 * gnulib/import/dummy.c: Remove.
1112 * gnulib/import/Makefile.am: Regenerate.
1113 * gnulib/import/Makefile.in: Likewise.
1114 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1115 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1116 * gnulib/import/alloca.c: New file.
1117 * gnulib/import/alloca.in.h: Likewise.
1118 * gnulib/import/config.charset: Likewise.
1119 * gnulib/import/fnmatch.c: Likewise.
1120 * gnulib/import/fnmatch.in.h: Likewise.
1121 * gnulib/import/fnmatch_loop.c: Likewise.
1122 * gnulib/import/localcharset.c: Likewise.
1123 * gnulib/import/localcharset.h: Likewise.
1124 * gnulib/import/m4/alloca.m4: Likewise.
1125 * gnulib/import/m4/codeset.m4: Likewise.
1126 * gnulib/import/m4/configmake.m4: Likewise.
1127 * gnulib/import/m4/fcntl-o.m4: Likewise.
1128 * gnulib/import/m4/fnmatch.m4: Likewise.
1129 * gnulib/import/m4/glibc21.m4: Likewise.
1130 * gnulib/import/m4/localcharset.m4: Likewise.
1131 * gnulib/import/m4/locale-fr.m4: Likewise.
1132 * gnulib/import/m4/locale-ja.m4: Likewise.
1133 * gnulib/import/m4/locale-zh.m4: Likewise.
1134 * gnulib/import/m4/mbrtowc.m4: Likewise.
1135 * gnulib/import/m4/mbsinit.m4: Likewise.
1136 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1137 * gnulib/import/m4/mbstate_t.m4: Likewise.
1138 * gnulib/import/m4/stdbool.m4: Likewise.
1139 * gnulib/import/m4/wchar_h.m4: Likewise.
1140 * gnulib/import/m4/wctype_h.m4: Likewise.
1141 * gnulib/import/m4/wint_t.m4: Likewise.
1142 * gnulib/import/mbrtowc.c: Likewise.
1143 * gnulib/import/mbsinit.c: Likewise.
1144 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1145 * gnulib/import/mbsrtowcs-state.c: Likewise.
1146 * gnulib/import/mbsrtowcs.c: Likewise.
1147 * gnulib/import/ref-add.sin: Likewise.
1148 * gnulib/import/ref-del.sin: Likewise.
1149 * gnulib/import/stdbool.in.h: Likewise.
1150 * gnulib/import/streq.h: Likewise.
1151 * gnulib/import/strnlen1.c: Likewise.
1152 * gnulib/import/strnlen1.h: Likewise.
1153 * gnulib/import/verify.h: Likewise.
1154 * gnulib/import/wchar.in.h: Likewise.
1155 * gnulib/import/wctype.in.h: Likewise.
1157 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1159 Support shell wildcards for 'set auto-load safe-path'.
1160 * auto-load.c: Include fnmatch.h.
1161 (filename_is_in_dir): Rename to ...
1162 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1163 it. Update function comment. Rename dir_len to pattern_len. New
1164 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1165 messages. Use gdb_filename_fnmatch.
1166 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1168 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1169 * defs.h (gdb_filename_fnmatch): New declaration.
1170 * utils.c: Include fnmatch.h.
1171 (gdb_filename_fnmatch): New function.
1173 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1175 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1176 `-probe' and `-probe-stap' options.
1178 2012-07-01 Yao Qi <yao@codesourcery.com>
1180 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1181 always_inserted_off, and always_inserted_enums.
1182 Change always_inserted_mode's type to 'enum auto_boolean'.
1183 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1185 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1186 of add_setshow_enum_cmd.
1187 * infrun.c: Remove can_use_displaced_stepping_auto,
1188 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1189 can_use_displaced_stepping_enum.
1190 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1191 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1192 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1193 add_setshow_enum_cmd.
1195 2012-06-30 Doug Evans <dje@google.com>
1197 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1198 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1199 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1201 2012-06-29 Doug Evans <dje@google.com>
1203 * linespec.c: #include "stack.h".
1204 (decode_line_with_current_source): Moved here from symtab.c and
1205 renamed from decode_line_spec. All callers updated.
1206 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1207 renamed from decode_line_spec_1. All callers updated.
1208 * linespec.h (decode_line_with_current_source): Move declaration here
1209 from symtab.h and renamed from decode_line_spec.
1210 (decode_line_with_last_displayed): Move declaration here from symtab.h
1211 and renamed from decode_line_spec_1.
1212 * macrocmd.c: #include "linespec.h".
1213 * symtab.c: Remove #include "linespec.h".
1215 2012-06-28 Doug Evans <dje@google.com>
1217 * dwarf2read.c (get_cu_length): New function.
1218 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1219 (create_debug_types_hash_table): Ditto.
1220 (init_cutu_and_read_dies): Ditto.
1221 (init_cutu_and_read_dies_no_follow): Ditto.
1223 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1225 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1226 (struct abbrev_table): Define.
1227 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1229 (init_cutu_and_read_dies): Update.
1230 (abbrev_table_alloc_abbrev): New function. Replaces
1231 dwarf_alloc_abbrev. All callers updated.
1232 (abbrev_table_add_abbrev): New function.
1233 (abbrev_table_lookup_abbrev): New function. Replaces
1234 dwarf2_lookup_abbrev. All callers updated.
1235 (abbrev_table_read_table): New function. Contents moved here from
1236 dwarf2_read_abbrevs.
1237 (dwarf2_read_abbrevs): Call it.
1238 (abbrev_table_free): New function.
1239 (dwarf2_free_abbrev_table): Call it.
1241 2012-06-28 Stan Shebs <stan@codesourcery.com>
1243 * osdata.c (info_osdata_command): Filter out "Title" columns
1245 * common/linux-osdata.c (struct osdata_type): Add title field.
1246 (osdata_table): Add titles to each entry.
1247 (linux_command_xfer_osdata): Add a column for title data.
1249 2012-06-28 Stan Shebs <stan@codesourcery.com>
1251 Make logging work for MI.
1253 * interps.h (interp_set_logging_ftype): New typedef.
1254 (struct interp_procs): New field set_logging_proc.
1255 (current_interp_set_logging): Declare.
1256 * interps.c (current_interp_set_logging): New function.
1257 * cli/cli-logging.c: Include interps.h.
1258 (set_logging_redirect): Call current_interp_set_logging.
1259 (pop_output_files): Ditto.
1260 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1261 * mi/mi-console.h (mi_console_set_raw): Declare.
1262 * mi/mi-console.c (mi_console_set_raw): New function.
1263 * mi/mi-interp.c (saved_raw_stdout): New global.
1264 (mi_set_logging): New function.
1265 (_initialize_mi_interp): Add it to interp procs.
1267 2012-06-28 Doug Evans <dje@google.com>
1269 * symtab.c (lookup_symbol_aux_objfile): Use
1270 ALL_OBJFILE_PRIMARY_SYMTABS.
1272 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1274 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1276 * common/buffer.c: Include inttypes.h and stdint.h.
1277 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1279 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1280 Pedro Alves <palves@redhat.com>
1282 * gdbthread.h (ALL_THREADS): New macro.
1283 (thread_list): Declare.
1284 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1285 going, but instead fall through to the stepping handling.
1286 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1287 the passed in signal. Adjust debug output.
1288 (resume_callback): Rename to ...
1289 (linux_nat_resume_callback): ... this. Pass the thread's last
1290 stop signal, if in "pass" state.
1291 (linux_nat_resume): Adjust to rename.
1292 (stop_wait_callback): New assertion. Don't respawn signals;
1293 instead let the LWP remain with SIGNALLED set.
1294 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1295 * remote.c (append_pending_thread_resumptions): New.
1296 (remote_vcont_resume): Call it.
1297 * target.h (target_resume): Extend comment.
1299 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1301 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1303 2012-06-27 Doug Evans <dje@google.com>
1305 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1306 Delete have_addr_base, unused. All uses updated.
1307 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1308 (dwarf2_get_pc_bounds): Add ranges_base.
1309 (dwarf2_record_block_ranges): Ditto.
1311 2012-06-27 Tom Tromey <tromey@redhat.com>
1314 * varobj.c (varobj_create): Update.
1315 (varobj_set_value): Update.
1316 * tracepoint.c (validate_actionline): Update.
1317 (encode_actions_1): Update.
1318 * parse.c (parse_exp_1): Add 'pc' argument.
1319 (parse_exp_in_context): Add 'pc' argument. Change how
1320 expression_context_pc is set.
1321 (parse_expression): Update.
1322 (parse_field_expression): Update.
1323 * expression.h (parse_exp_1): Update.
1324 * eval.c (parse_to_comma_and_eval): Update.
1325 * breakpoint.c (set_breakpoint_condition): Update.
1326 (update_watchpoint): Update.
1327 (init_breakpoint_sal): Update
1328 (find_condition_and_thread): Update.
1329 (watch_command_1): Update.
1330 (update_breakpoint_locations): Update.
1331 * ada-lang.c (ada_read_renaming_var_value): Update.
1332 (create_excep_cond_exprs): Update.
1334 2012-06-27 Doug Evans <dje@google.com>
1336 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1339 2012-06-26 Doug Evans <dje@google.com>
1341 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1343 (error_check_comp_unit_head): New arg abbrev_section. All callers
1345 (read_and_check_comp_unit_head): Ditto.
1346 (read_and_check_type_unit_head): Ditto.
1348 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1350 New attribute 'last' for gdb.Symtab_and_line.
1351 * NEWS (Python Scripting): Add entry about the new attribute.
1352 * python/py-symtab.c (salpy_get_last): New function which
1353 implements the get method for the 'last' attribute of
1354 gdb.Symtab_and_line.
1355 (sal_object_getset): Add entry for the 'last' attribute.
1357 2012-06-26 Doug Evans <dje@google.com>
1359 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1360 (dwo_sections): Add macinfo, macro.
1361 (dwarf2_locate_dwo_sections): Watch for macro sections.
1362 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1363 All callers updated. Handle DWO files.
1365 * NEWS: Mention new options "set debug dwarf2-read" and
1366 "set debug symtab-create".
1367 * dwarf2read.c (dwarf2_read_debug): New static global.
1368 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1369 (process_queue): Ditto.
1370 (process_full_comp_unit): Ditto.
1371 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1372 * elfread.c (elf_symfile_read): Add debugging printf.
1373 * minsyms.c (install_minimal_symbols): Ditto.
1374 * psymtab.c (allocate_psymtab): Ditto.
1375 * symfile.c (allocate_symtab): Ditto.
1376 * symtab.c (symtab_create_debug): New global.
1377 (_initialize_symtab): Add new option "set debug symtab-create".
1378 * symtab.h (symtab_create_debug): Declare.
1380 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1381 (lookup_dwo_type_unit): Ditto.
1383 2012-06-26 Roland McGrath <roland@hack.frob.com>
1384 H.J. Lu <hongjiu.lu@intel.com>
1386 * amd64-linux-nat.c: Include <sys/user.h>.
1387 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1388 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1389 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1391 * configure.ac: Check if the fs_base and gs_base members of
1392 `struct user_regs_struct' exist.
1393 * config.in: Regenerated.
1394 * configure: Likewise.
1396 2012-06-25 Michael Eager <eager@eagercon.com>
1399 * python/python.c (gdbpy_write): Check for interrupted output.
1401 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1403 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1404 register as a stack alignment in ARM mode.
1406 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1408 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1409 * gnulib/config.in: Regenerate.
1410 * gnulib/configure: Likewise.
1411 * gnulib/import/m4/extensions.m4: Update it.
1412 * gnulib/import/m4/gnulib-common.m4: Likewise.
1413 * gnulib/import/m4/memmem.m4: Likewise.
1414 * gnulib/import/m4/mmap-anon.m4: Likewise.
1415 * gnulib/import/m4/multiarch.m4: Likewise.
1416 * gnulib/import/stdint.in.h: Likewise.
1418 2012-06-24 Yao Qi <yao@codesourcery.com>
1420 * corefile.c (write_memory_with_notification): New.
1421 * gdbcore.h: Declare write_memory_with_notification.
1422 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1423 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1424 * valops.c (value_assign): Likewise.
1425 * python/py-inferior.c (infpy_write_memory): Call
1426 'write_memory_with_notification'.
1428 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1430 * cc-with-index.sh: Use also -ex "set auto-load no".
1432 2012-06-23 Doug Evans <dje@google.com>
1435 * NEWS: Document additions to .gdb_index.
1436 * dwarf2read.c: #include "gdb/gdb-index.h".
1437 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1438 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1439 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1440 (dwarf2_read_index): Recognize version 7.
1441 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1442 block_kind, domain): All callers updated.
1443 (dw2_find_symbol_file): Handle new index CU values.
1444 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1445 (add_index_entry): New args is_static, kind. All callers updated.
1446 (offset_type_compare, uniquify_cu_indices): New functions
1447 (symbol_kind): New function.
1448 (write_psymtabs_to_index): Remove duplicate CU values.
1449 (write_psymtabs_to_index): Write .gdb_index version 7.
1451 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1453 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1454 * configure: Regenerate.
1456 2012-06-20 Yao Qi <yao@codesourcery.com>
1458 * python/py-inferior.c: Update comments of infpy_read_memory
1459 and infpy_write_memory.
1461 2012-06-19 Tom Tromey <tromey@redhat.com>
1464 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1465 (push_type_address_space): Remove.
1466 * parse.c (insert_into_type_stack): New function.
1467 (insert_type): Likewise.
1468 (insert_type_address_space): Rename from push_type_address_space.
1469 Insert tp_space_identifier.
1470 * c-exp.y (ptr_operator): New production.
1471 (abs_decl): Use ptr_operator.
1472 (space_identifier): Call insert_type_address_space.
1473 (ptype): Don't use const_or_volatile_or_space_identifier.
1474 (const_or_volatile_noopt): Call insert_type.
1475 (conversion_type_id, conversion_declarator): New productions.
1476 (operator): Use conversion_type_id.
1478 2012-06-18 Doug Evans <dje@google.com>
1480 * symtab.h (minimal_symbol): New member created_by_gdb.
1481 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1483 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1484 (search_symbols): Call it instead of lookup_symbol.
1485 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1487 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1488 Adjust address for DW_OP_GNU_addr_index.
1489 * dwarf2expr.h (dwarf_expr_context): Update comment.
1490 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1491 all callers updated. Handle TLS vars described with
1492 DW_OP_GNU_const_index.
1493 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1494 and DW_OP_GNU_const_index.
1495 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1497 * block.c (find_block_in_blockvector): Make explicit the fact that we
1498 ignore GLOBAL_BLOCK.
1500 2012-06-18 Tom Tromey <tromey@redhat.com>
1502 * c-exp.y (operator): Remove trailing space after "delete" and
1505 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1506 Jan Kratochvil <jan.kratochvil@redhat.com>
1508 Switch i386 and derived targets to ON_STACK.
1509 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1510 (amd64_dicos_init_abi): Remove its installment.
1511 * dicos-tdep.c (dicos_init_abi): Remove the
1512 set_gdbarch_call_dummy_location call. Update the comment here.
1513 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1514 (i386_dicos_init_abi): Remove its installment.
1515 * i386-tdep.c (i386_push_dummy_code): New function.
1516 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1517 i386_push_dummy_code.
1519 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1521 Remove stale dummy frames.
1522 * breakpoint.c: Include dummy-frame.h.
1523 (longjmp_breakpoint_ops): New variable.
1524 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1525 bp_longjmp_call_dummy.
1526 (bpstat_what, bptype_string, print_one_breakpoint_location)
1527 (init_bp_location): Support bp_longjmp_call_dummy.
1528 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1529 (set_longjmp_breakpoint_for_call_dummy)
1530 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1532 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1533 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1534 FIXME comment and extend the other comment for bp_call_dummy.
1535 (set_longjmp_breakpoint_for_call_dummy)
1536 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1537 * dummy-frame.c: Include gdbthread.h.
1538 (pop_dummy_frame_bpt): New function.
1539 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1540 (dummy_frame_discard): New function.
1541 (cleanup_dummy_frames): Update the comment about longjmps.
1542 * dummy-frame.h (dummy_frame_discard): New declaration.
1543 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1544 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1545 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1546 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1547 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1548 keep_going if IS_LONGJMP and there is no other reason to stop.
1550 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1552 * remote-sim.c (sim_command_completer): Initialize
1555 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1557 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1558 * dwarf2loc.c (call_site_parameter_matches): Support
1559 CALL_SITE_PARAMETER_PARAM_OFFSET.
1560 (needs_dwarf_reg_entry_value): Push stub value.
1561 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1562 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1563 * gdbtypes.h (enum call_site_parameter_kind): New item
1564 CALL_SITE_PARAMETER_PARAM_OFFSET.
1565 (struct call_site.parameter.u): New field param_offset.
1567 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1569 Code cleanup: Generalize call_site.parameter key.
1570 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1571 variable dwarf_reg. New variable kind_u. Update parameters to
1572 push_dwarf_reg_entry_value.
1573 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1574 * dwarf2expr.h (enum call_site_parameter_kind)
1575 (union call_site_parameter_u): Forward declarations.
1576 (struct dwarf_expr_context_funcs): Update parameters and their
1577 description for push_dwarf_reg_entry_value.
1578 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1579 * dwarf2loc.c (call_site_parameter_matches): New function.
1580 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1581 description. Use call_site_parameter_matches.
1582 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1583 Update parameters and their description.
1584 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1585 New variable kind_u. Adjust the caller for updated parameters.
1586 (needs_dwarf_reg_entry_value): Update parameters.
1587 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1588 instead of attr. Update for the changed fields of struct
1589 call_site_parameter.
1590 * gdbtypes.h: Include dwarf2expr.h.
1591 (enum call_site_parameter_kind): New.
1592 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1593 fb_offset into new union u.
1595 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1597 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1598 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1601 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1603 * amd64-linux-nat.c (compat_x32_clock_t): New.
1604 (compat_x32_siginfo_t): Likewise.
1605 (compat_x32_siginfo_from_siginfo): Likewise.
1606 (siginfo_from_compat_x32_siginfo): Likewise.
1607 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1608 and siginfo_from_compat_x32_siginfo for x32.
1610 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
1612 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1614 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1616 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1617 instead of gdbarch_ptr_bit.
1618 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1619 (amd64_supply_native_gregset): Likewise.
1620 (amd64_collect_native_gregset): Likewise.
1621 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1622 (amd64_supply_xsave): Likewise.
1623 (amd64_collect_fxsave): Likewise.
1624 (amd64_collect_xsave): Likewise.
1626 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1628 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1629 (amd64_linux_read_description): Check DS segment register for
1632 2012-06-15 Tom Tromey <tromey@redhat.com>
1634 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1635 init_cutu_and_read_dies.
1637 2012-06-15 Iain Sandoe <iain@codesourcery.com>
1639 * MAINTAINERS (Write After Approval): Add myself to the list.
1641 2012-06-15 Tom Tromey <tromey@redhat.com>
1643 * valops.c (value_find_oload_method_list): Now static.
1644 * value.h (value_find_oload_method_list): Don't declare.
1646 2012-06-15 Tom Tromey <tromey@redhat.com>
1648 * valops.c (find_overload_match): Use value_ind.
1650 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1652 * infrun.c (handle_inferior_event): Correct indentation.
1654 2012-06-14 Doug Evans <dje@google.com>
1656 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1657 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1659 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1660 updated. Handle DEBUG_LOC_START_LENGTH.
1661 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1662 (loclist_describe_location): Ditto.
1664 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1667 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1668 after hiding inline functions.
1670 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1672 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1673 _initialize_inf_ttrace.
1675 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1677 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1678 _initialize_hppa_hpux_nat.
1680 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1682 * remote-sim.c (sim_command_completer): Change type of return
1683 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1685 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1686 Jan Kratochvil <jan.kratochvil@redhat.com>
1689 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1690 stack on a 16-byte boundary.
1692 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
1694 * jit.c (finalize_symtab): Set function's return type to 'void' by
1697 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1698 H.J. Lu <hongjiu.lu@intel.com>
1700 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1701 Move bits common to both the classic LP64 and the new x32 ILP32
1703 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1704 (amd64_x32_linux_init_abi): New function.
1705 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1708 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1709 * i386-tdep.c (i386_pseudo_register_name): Make public.
1710 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1711 * amd64-tdep.c (amd64_dword_names): Add "eip".
1712 (amd64_x32_pseudo_register_type): New function
1713 (amd64_x32_init_abi): New function.
1715 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1718 * inferior.h (struct inferior_suspend_state): Comment out.
1719 (struct inferior): Comment out the field suspend.
1720 * infrun.c (struct infcall_suspend_state): Comment out the field
1722 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1725 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1727 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1728 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1729 function comment. Return ERROR for unresolved cases. Implement
1730 returning proper NAME.
1731 (yylex): Accept also NAME from classify_inner_name.
1732 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1733 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1735 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1737 2012-06-13 Tom Tromey <tromey@redhat.com>
1739 * breakpoint.c (condition_completer): New function.
1740 (_initialize_breakpoint): Use it.
1741 * value.c (complete_internalvar): New function.
1742 * value.h (complete_internalvar): Declare.
1744 2012-06-13 Tom Tromey <tromey@redhat.com>
1746 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1747 * breakpoint.c (catch_syscall_completer): Return a VEC.
1748 * cli/cli-cmds.c (complete_command): Update.
1749 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1750 (complete_on_enum): Likewise.
1751 * command.h: Include gdb_vecs.h.
1752 (completer_ftype): Change return type.
1753 (complete_on_cmdlist, complete_on_enum): Likewise.
1754 * completer.c (noop_completer, filename_completer)
1755 (location_completer): Return a VEC.
1756 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1758 (expression_completer, complete_line_internal, complete_line)
1759 (command_completer): Return a VEC.
1760 (gdb_completion_word_break_characters, line_completion_function):
1762 * completer.h: Include gdb_vecs.h.
1763 (complete_line, noop_completer, filename_completer)
1764 (expression_completer, location_completer, command_completer):
1766 * f-lang.c (f_word_break_characters): Return a VEC.
1767 * interps.c (interpreter_completer): Return a VEC.
1768 * language.h (struct language_defn)
1769 <la_make_symbol_completion_list>: Return a VEC.
1770 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1771 * symtab.c (free_completion_list): Take a VEC.
1772 (return_val_size, return_val_index): Remove.
1773 (return_val): Now a VEC.
1774 (completion_list_add_name): Update.
1775 (default_make_symbol_completion_list_break_on)
1776 (default_make_symbol_completion_list, make_symbol_completion_list)
1777 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1779 (add_filename_to_list): Update.
1780 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1782 (maybe_add_partial_symtab_filename): Update.
1783 (make_source_files_completion_list): Return a VEC.
1784 * symtab.h (default_make_symbol_completion_list_break_on)
1785 (default_make_symbol_completion_list, make_symbol_completion_list)
1786 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1787 (make_source_files_completion_list): Update.
1789 2012-06-13 Tom Tromey <tromey@redhat.com>
1791 * breakpoint.c (add_catch_command): Use completer_ftype.
1792 * breakpoint.h: Include command.h.
1793 (add_catch_command): Use completer_ftype.
1794 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1795 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1796 Use completer_ftype.
1797 * command.h (completer_ftype): New typedef.
1798 (set_cmd_completer): Use it.
1799 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1802 2012-06-13 Pedro Alves <palves@redhat.com>
1804 Partial revert of previous change.
1806 * serial.c (scb_base): New global.
1807 (serial_for_fd): New.
1808 (serial_open, serial_fdopen_ops): Link new serial in open serials
1810 (do_serial_close): Unlink serial from the open serials chain.
1812 2012-06-12 Pedro Alves <palves@redhat.com>
1814 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
1816 (prepare_for_detach): No longer context switch here in non-stop
1818 (fetch_inferior_event): Ditto.
1819 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
1820 to the event thread before removing breakpoints. Switch to the
1821 event thread before inserting breakpoints and resuming.
1822 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
1823 event thread before resuming.
1824 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
1825 Switch to the event thread before removing breakpoints.
1827 2012-06-12 Eli Zaretskii <eliz@gnu.org>
1829 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
1830 special characters correctly for the Windows shells. See
1831 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
1833 [!__MINGW32__]: Remove extra double quote character from special
1836 2012-06-11 Stan Shebs <stan@codesourcery.com>
1838 * ui-out.h: Remove #if 0 declarations.
1839 * ui-out.c: Remove #if 0 functions.
1841 2012-06-11 Pedro Alves <palves@redhat.com>
1843 * ser-base.c (run_async_handler_and_reschedule): New.
1844 (fd_event, push_event): Use it.
1845 * serial.c (serial_open, serial_fdopen_ops): Set the initial
1846 reference count to 1.
1847 (do_serial_close): Set the bufp field to NULL. Use serial_unref
1849 (serial_is_open, serial_ref, serial_unref): New.
1850 * serial.h (serial_open): Adjust comment.
1851 (serial_is_open): Declare.
1852 (serial_close): Adjust comment.
1853 (serial_ref, serial_unref) Declare.
1854 (struct serial): New field 'refcnt'.
1856 2012-06-11 Pedro Alves <palves@redhat.com>
1858 Remove #if 0'd "connect" command, and unnecessary associated
1859 refcounting and serial reuse bits.
1861 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
1862 * serial.c (last_serial_opened): Delete.
1864 (serial_open): Adjust.
1865 (serial_for_fd): Delete.
1866 (serial_fdopen_ops, do_serial_close): Adjust.
1867 (serial_fdopen_ops): Adjust.
1869 2012-06-11 Pedro Alves <palves@redhat.com>
1871 * serial.c (do_serial_close): Remove early return when SCB is
1874 2012-06-11 Tom Tromey <tromey@redhat.com>
1876 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
1878 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1880 Fix regression by the "ambiguous linespec" series.
1881 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
1882 get_last_displayed_symtab and get_last_displayed_line and depending
1885 2012-06-11 Tom Tromey <tromey@redhat.com>
1887 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
1888 (dw2_find_symbol_file): Use it.
1890 2012-06-11 Michael Eager <eager@eagercon.com>
1892 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
1893 * mips-linux-tdep.h (mips_signals): New
1895 2012-06-11 Tom Tromey <tromey@redhat.com>
1897 * infrun.c (handle_inferior_event)
1898 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
1900 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
1901 exception logic in all cases. Update comments.
1902 (insert_longjmp_resume_breakpoint): Set the exception resume
1905 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
1907 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
1909 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
1911 * valarith.c (binop_types_user_defined_p): Fix a typo.
1913 2012-06-08 Yao Qi <yao@codesourcery.com>
1914 Chung-Lin Tang <cltang@codesourcery.com>
1916 * arch-utils.c (default_return_in_first_hidden_param_p): New.
1917 * arch-utils.h: Declare.
1918 * gdbarch.sh: Add return_in_first_hidden_param_p.
1919 * gdbarch.c, gdbarch.h: Regenerated.
1920 * infcall.c (call_function_by_hand): Call
1921 gdbarch_return_in_first_hidden_param_p instead of
1922 language_pass_by_reference.
1924 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
1925 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
1926 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
1927 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
1928 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
1929 `cplus_return_struct_by_reference'.
1930 (tic6x_return_value): Handle language cplusplus.
1931 (tic6x_return_in_first_hidden_param_p): New.
1932 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
1934 2012-06-07 Doug Evans <dje@google.com>
1936 * dwarf2read.c (dwarf2_cu): Add comment.
1938 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1940 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
1942 (mips_eabi_push_dummy_call): Likewise.
1943 (mips_n32n64_push_dummy_call): Likewise.
1944 (mips_o32_push_dummy_call): Likewise.
1945 (mips_o64_push_dummy_call): Likewise.
1947 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1949 * mips-tdep.c (mips_convert_register_p): Correct coding style.
1951 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1953 * mips-tdep.c (mips_pseudo_register_type): Use
1954 mips_float_register_p.
1956 2012-06-06 Pedro Alves <palves@redhat.com>
1958 * infrun.c (handle_inferior_event): Remove calls to
1959 reinit_frame_cache that follow a context_switch call.
1961 2012-06-06 Pedro Alves <palves@redhat.com>
1963 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
1964 context_switch and remove stale comment.
1966 2012-06-06 Pedro Alves <palves@redhat.com>
1968 * infrun.c (struct execution_control_state): Remove
1969 `new_thread_event' field.
1970 (handle_inferior_event): Simplify new threads handling; don't
1971 resume the inferior if we find a new thread.
1973 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
1975 * NEWS: Document the deprecation of SH's 'regs' command.
1976 * inferior.h (all_registers_info): Add function declaration.
1977 * sh-tdep.c (sh_show_regs): Remove variable.
1978 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
1979 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
1980 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
1981 (sh_show_regs_command): Remove functions.
1982 (sh_gdbarch_init): Don't set sh_show_regs.
1983 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
1984 'info all-registers'.
1985 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
1986 (sh64_show_regs): Remove functions.
1987 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
1989 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1991 * configure.ac: Move development=true below AC_INIT.
1992 * configure: Regenerate.
1994 2012-06-05 Stan Shebs <stan@codesourcery.com>
1996 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
1999 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2001 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2002 argument as ssize_t.
2003 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2004 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2005 * target.c (target_read_stack, target_write_memory)
2006 (target_write_raw_memory): Likewise.
2007 * target.h (target_read_stack, target_write_memory)
2008 (target_write_raw_memory): Likewise.
2010 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2012 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2013 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2014 * target.c (target_read_memory): Change LEN to ssize_t.
2015 * target.h (target_read_memory): Change LEN to ssize_t.
2017 2012-06-05 Pedro Alves <palves@redhat.com>
2021 * breakpoint.c (until_break_command): Only fetch the selected
2022 frame after decode_line_1.
2024 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2026 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2027 event breakpoint at _start, __start or main if a program
2028 interpreter is not found.
2030 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2032 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2034 * windows-tdep.c: #include "objfiles.h".
2035 (windows_iterate_over_objfiles_in_search_order): New function.
2036 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2037 iterate_over_objfiles_in_search_order gdbarch method to
2038 windows_iterate_over_objfiles_in_search_order.
2039 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2041 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2043 * gdbarch.sh: Add generation of
2044 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2045 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2046 (iterate_over_objfiles_in_search_order): New gdbarch method.
2047 * gdbarch.h, gdbarch.c: Regenerate.
2048 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2050 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2052 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2053 out of lookup_symbol_aux_symtabs.
2054 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2055 call to lookup_symbol_aux_objfile.
2056 (struct global_sym_lookup_data): New type.
2057 (lookup_symbol_global_iterator_cb): New function.
2058 (lookup_symbol_global): Search for symbol using
2059 gdbarch_iterate_over_objfiles_in_search_order and
2060 lookup_symbol_global_iterator_cb.
2061 * findvar.c (struct minsym_lookup_data): New type.
2062 (minsym_lookup_iterator_cb): New function.
2063 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2064 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2065 and minsym_lookup_iterator_cb.
2067 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2069 Revert the following patch:
2070 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2071 try locating the symbol in the symbol's own objfile first, before
2072 extending the search to all objfiles.
2073 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2074 out of lookup_symbol_aux_symtabs.
2075 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2076 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2077 Do not search EXCLUDE_OBJFILE.
2078 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2079 (lookup_symbol_global): Search for matches in the block's objfile
2080 first, before searching all other objfiles.
2082 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2084 * breakpoint.c (find_condition_and_thread): Stop parsing
2085 as soon as the first invalid keyword is found.
2087 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2089 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2091 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2093 * config/djgpp/djcheck.sh: Add copyright header.
2095 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2097 * copyright.py (update_files, main): Fix path to update-copyright
2100 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2102 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2103 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2104 for which a reminder to update by hand is printed.
2106 2012-06-04 Doug Evans <dje@google.com>
2108 * buildsym.c (make_blockvector): Add comment.
2110 2012-06-04 Pedro Alves <palves@redhat.com>
2112 * arch-utils.c (default_gdb_signal_from_target): Delete.
2113 * arch-utils.h (default_gdb_signal_from_target): Delete.
2114 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2115 gdbarch_gdb_signal_from_target_p.
2116 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2118 * gdbarch.h: Regenerate.
2119 * gdbarch.c: Regenerate.
2121 2012-06-04 Pedro Alves <palves@redhat.com>
2123 * gdbarch.sh (gdb_signal_from_target): Mention that the
2124 implementation of the method must be host independent.
2125 * gdbarch.h: Regenerate.
2127 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2129 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2131 (target_read_memory_bfd): New function.
2132 (symbol_file_add_from_memory): Use it.
2134 2012-06-03 Doug Evans <dje@google.com>
2136 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2138 (basic_lookup_transparent_type): Ditto.
2140 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2141 (ALL_PRIMARY_SYMTABS): Use it.
2142 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2143 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2144 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2145 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2146 (basic_lookup_transparent_type): Ditto.
2148 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2150 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2151 it to optimize resolution of demangled name.
2153 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2155 * configure.ac (development): Define new variable.
2156 Call AC_CHECK_LIB for mcheck if $development.
2157 (ERROR_ON_WARNING): Enable it by default only if $development.
2158 * config.in: Regenerate.
2159 * configure: Regenerate.
2161 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2163 * target.c (target_read_memory): Make LEN argument as size_t.
2164 * target.h (target_read_memory): Likewise.
2166 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2168 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2170 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2172 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2173 BookE interface for PowerPC server processors if not available
2174 in the Linux Kernel.
2176 2012-05-31 Keith Seitz <keiths@redhat.com>
2178 * linespec.c (decode_objc): Add cleanup to free
2180 (find_linespec_symbols): Add cleanup to free CLASSES.
2181 * symfile.c (find_separate_debug_file_by_debuglink): Add
2182 cleanup to free DEBUGLINK.
2183 * ui-out.c (clear_header_list): No need to check if
2184 HEADER_NEXT.COLHDR is NULL.
2185 Free HEADER_NEXT.COL_NAME.
2187 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2189 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2192 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2194 * configure.host (gdb_host_cpu): Handle tilegx*.
2195 (gdb_host): Handle tilegx-*-linux*.
2196 * tilegx-linux-nat.c: New file.
2197 * config/tilegx/linux.mh: New file.
2199 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2201 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2202 tilegx-linux-tdep.o.
2203 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2204 tilegx-linux-tdep.c.
2205 * configure.tgt: Handle tilegx-*-linux*.
2206 * tilegx-tdep.h: New file.
2207 * tilegx-tdep.c: New file.
2208 * tilegx-linux-tdep.c: New file.
2209 * regformats/reg-tilegx.dat: New file.
2211 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2213 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2214 accounting of hw watchpoints on ppc.
2216 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2218 * source.c (openp): Expand tilde in path entries.
2220 2012-05-29 Doug Evans <dje@google.com>
2222 * buildsym.c (block_compar): Fix comment.
2223 (end_symtab): Fix and clarify some comments.
2225 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2226 cleanup_undefined_types.
2227 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2228 All callers updated.
2230 2012-05-29 Tom Tromey <tromey@redhat.com>
2232 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2234 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2235 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2237 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2240 2012-05-29 Tristan Gingold <gingold@adacore.com>
2242 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2243 (struct darwin_info): ... New struct.
2244 (solib_darwin_pspace_data): New variable.
2245 (darwin_pspace_data_cleanup): New function.
2246 (get_darwin_info): Likewise.
2247 (darwin_dyld_version_ok, darwin_load_image_infos)
2248 (darwin_solib_get_all_image_info_addr_at_init)
2249 (darwin_solib_read_all_image_info_addr): Add info argument.
2251 (darwin_current_sos): Use per pspace structure.
2252 (darwin_solib_create_inferior_hook): Likewise.
2253 (darwin_clear_solib): Likewise.
2254 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2256 2012-05-28 Pedro Alves <palves@redhat.com>
2258 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2259 block that uses them. Clear ecss before handling each event.
2261 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2263 * solib-svr4.c (svr4_current_sos): New comment on
2264 svr4_current_sos_via_xfer_libraries fall back.
2266 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2268 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2269 it as a fallback for TYPE_IS_OPAQUE.
2270 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2271 symbols for lookup_symbol.
2273 2012-05-24 John Steele Scott <toojays@toojays.net>
2275 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2276 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2277 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2278 (check_producer): ... this new function, which also checks for ICC
2279 and caches the result.
2280 (producer_is_icc): New function.
2281 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2284 2012-05-24 Pedro Alves <palves@redhat.com>
2288 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2289 (default_gdb_signal_to_target): ... this. Add comment.
2290 (default_gdb_signal_from_host): Rename to ...
2291 (default_gdb_signal_from_target): ... this. Add comment.
2292 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2293 (default_gdb_signal_to_target): ... this.
2294 (default_gdb_signal_from_host): Rename to ...
2295 (default_gdb_signal_from_target): ... this.
2296 * corelow.c (core_open): Adjust to naming change. Replace comment.
2297 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2298 (gdb_signal_from_target): ... this. Adjust to
2299 default_gdb_signal_from_host naming change. Extend comment.
2300 (gdb_signal_to_host): Rename to ...
2301 (gdb_signal_to_target): ... this. Adjust to
2302 default_gdb_signal_to_host naming change.
2303 * gdbarch.h, gdbarch.c: Renegerate.
2305 2012-05-24 Pedro Alves <palves@redhat.com>
2309 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2311 2012-05-24 Pedro Alves <palves@redhat.com>
2315 Replace target_signal with gdb_signal throughout.
2317 2012-05-24 Pedro Alves <palves@redhat.com>
2321 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2322 string, instead of reusing the va_list argument.
2324 2012-05-24 Tom Tromey <tromey@redhat.com>
2326 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2329 2012-05-23 Doug Evans <dje@google.com>
2331 * symtab.c (search_symbols): Formatting fixes.
2332 (print_symbol_info): Formatting fixes.
2334 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2335 int64_t change to leb128 API.
2336 (read_encoded_value, decode_frame_entry_1): Ditto.
2337 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2338 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2339 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2340 (execute_stack_op): Ditto.
2341 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2342 (safe_read_uleb128, safe_read_sleb128): Ditto.
2343 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2344 (dwarf2_compile_expr_to_ax): Ditto.
2345 (locexpr_describe_location_piece): Ditto.
2346 (disassemble_dwarf_expression): Ditto.
2347 (locexpr_describe_location_1): Ditto.
2349 2012-05-23 Stan Shebs <stan@codesourcery.com>
2350 Kwok Cheung Yeung <kcy@codesourcery.com>
2352 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2353 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2354 (mi-cmd-info.o): New rule.
2355 * osdata.h (info_osdata_command): New declaration.
2356 * osdata.c (info_osdata_command): Change to non-static.
2357 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2358 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2359 * mi/mi-cmd-info.c: New file.
2361 2012-05-23 Doug Evans <dje@google.com>
2363 * symtab.c (search_symbols): Pass NULL for file_matcher to
2364 expand_symtabs_matching if there are no files to match.
2366 * gdbtypes.c (lookup_typename): Simplify.
2368 2012-05-23 Pedro Alves <palves@redhat.com>
2370 * arch-utils.h (default_target_signal_to_host): Delete.
2371 * arch-utils.c (default_target_signal_to_host): Delete.
2372 * gdbarch.sh (target_signal_to_host): Remove.
2373 * gdbarch.h, gdbarch.c: Regenerate.
2375 2012-05-22 Doug Evans <dje@google.com>
2377 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2379 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2380 (execute_cfa_program): Update to match API of leb128 functions.
2381 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2383 (read_unsigned_leb128, read_signed_leb128): Delete.
2384 (read_initial_length): Change type of buf argument to
2386 (read_encoded_value): Update to match API of leb128 functions.
2387 (decode_frame_entry): Change result to "const gdb_byte *", and
2388 similarly for "start" parameter.
2389 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2390 (dwarf2_build_frame_info): Change local frame_ptr to
2392 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2393 read_uleb128, read_sleb128. All callers updated.
2394 (safe_skip_leb128): New function.
2395 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2396 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2397 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2398 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2399 read_uleb128, read_sleb128.
2400 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2401 (execute_stack_op): Update to match API of leb128 functions.
2402 * dwarf2expr.h: #include "leb128.h".
2403 (read_uleb128, read_sleb128): Delete.
2404 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2405 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2406 * dwarf2loc.c (debug_loc_kind): New enum.
2407 (decode_debug_loc_addresses): New function.
2408 (decode_debug_loc_dwo_addresses): New function.
2409 (dwarf2_find_location_expression): Rewrite.
2410 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2411 (locexpr_describe_location_piece): Ditto.
2412 (disassemble_dwarf_expression): Ditto.
2413 (locexpr_describe_location_1): Ditto.
2414 (loclist_describe_location): Rewrite.
2415 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2416 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2417 (dwarf2_section_buffer_overflow_complaint): Renamed from
2418 dwarf2_macros_too_long_complaint. All callers updated.
2419 (skip_leb128): Delete.
2420 (init_cu_die_reader): Initialize reader->buffer_end.
2421 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2422 (skip_form_bytes): New arg buffer_end. All callers updated.
2423 Replace call to skip_leb128 with gdb_skip_leb128.
2424 (skip_unknown_opcode): New arg mac_end. All callers updated.
2425 (fill_in_loclist_baton): Initialize baton->from_dwo.
2427 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2429 * mips-linux-nat.c (mips_linux_read_description): Use a more
2430 verbose error message.
2432 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2434 * NEWS: Add MIPS/Linux DSP support.
2435 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2436 (SIGCONTEXT_DSPCTL): New macro.
2437 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2438 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2439 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2440 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2441 (N64_SIGCONTEXT_HI3): Likewise.
2442 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2443 (N64_SIGCONTEXT_LO3): Likewise.
2444 (N64_SIGCONTEXT_DSPCTL): Likewise.
2445 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2446 (mips_linux_o32_sigframe_init): Handle DSP registers.
2447 (mips_linux_n32n64_sigframe_init): Likewise.
2449 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2451 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2454 2012-05-22 Pedro Alves <palves@redhat.com>
2456 * target.h (store_waitstatus): Move declaration ...
2457 * inf-child.h (store_waitstatus): ... here.
2458 * target.c: Move inclusion of gdb_wait.h, and ...
2459 (store_waitstatus): ... this ...
2460 * inf-child.c: ... here.
2461 * linux-nat.c: Include inf-child.h.
2462 * rs6000-nat.c: Include inf-child.h.
2463 * spu-linux-nat.c: Include inf-child.h.
2465 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2467 * tracepoint.c (start_tracing): Add missing i18n markup.
2468 (stop_tracing, set_trace_user): Ditto.
2469 (set_trace_notes, set_trace_stop_notes): Ditto.
2471 2012-05-21 Tom Tromey <tromey@redhat.com>
2474 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2476 * value.h (value_cast_pointers): Update.
2477 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2478 (value_cast): Update.
2479 (update_search_result): New function.
2480 (do_search_struct_field): New, from search_struct_field. Check
2481 for ambiguous results.
2482 (search_struct_field): Rewrite.
2483 * infcall.c (value_arg_coerce): Update.
2484 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2485 value_cast_pointers.
2486 * ada-lang.c (ada_convert_actual): Update.
2488 2012-05-21 Tom Tromey <tromey@redhat.com>
2490 * macroexp.c (macro_stringify): Terminate the string.
2492 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2494 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2496 * auto-load.c (auto_load_expand_dir_vars): New function.
2497 (auto_load_safe_path_vec_update): Use it, remove the
2498 substitute_path_component call thanks to it.
2499 (auto_load_objfile_script): Remove the debug_file_directory processing.
2500 Use auto_load_expand_dir_vars, remove the substitute_path_component
2502 * configure: Regenerate.
2503 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2504 path. Escape $ also for $debugdir.
2505 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2506 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2508 2012-05-20 Doug Evans <dje@google.com>
2510 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2511 before use. Check for symtab->includes == NULL before scanning it.
2513 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2515 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2517 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2519 * NEWS: Add microMIPS support and "set mips compression",
2520 "show mips compression" commands.
2521 * mips-tdep.h (mips_isa): New enum.
2522 (gdbarch_tdep): Add mips_isa.
2523 (mips_pc_is_mips16): Update prototype.
2524 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2525 * mips-tdep.c (mips_compression_mips16): New variable.
2526 (mips_compression_micromips): Likewise.
2527 (mips_compression_strings): Likewise.
2528 (mips_compression_string): Likewise.
2529 (is_mips16_isa, is_micromips_isa): New functions.
2530 (is_mips16_addr): Rename to...
2531 (is_compact_addr): ... this.
2532 (unmake_mips16_addr): Likewise to...
2533 (unmake_compact_addr): ... this.
2534 (make_mips16_addr): Likewise to...
2535 (make_compact_addr): ... this.
2536 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2538 (mips_elf_make_msymbol_special): Handle microMIPS code.
2539 (msymbol_is_special): Rename to...
2540 (msymbol_is_mips16): ... this.
2541 (mips_make_symbol_special, mips_pc_is_mips16): Update
2543 (msymbol_is_mips, msymbol_is_micromips): New functions.
2544 (mips16_to_32_reg): Rename to...
2545 (mips_reg3_to_reg): ... this.
2546 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2547 (mips_pc_isa): Likewise.
2548 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2550 (mips_fetch_instruction): Pass return status instead of printing
2551 an error message if requested. Handle microMIPS code. Bail out
2553 (micromips_op): New macro.
2554 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2555 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2556 (b6s4_op, b7s3_reg): Likewise.
2557 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2558 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2559 (mips_insn_size): New function.
2560 (mips32_next_pc): Update mips_fetch_instruction call.
2561 (micromips_relative_offset7): New function.
2562 (micromips_relative_offset10): Likewise.
2563 (micromips_relative_offset16): Likewise.
2564 (micromips_pc_insn_size): Likewise.
2565 (micromips_bc1_pc): Likewise.
2566 (micromips_next_pc): Likewise.
2567 (unpack_mips16): Update mips_fetch_instruction call.
2568 (extended_mips16_next_pc): Update according to change to
2570 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2572 (mips16_scan_prologue): Update mips_fetch_instruction call.
2573 Update according to change to mips16_to_32_reg.
2574 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2575 (mips_insn16_frame_base_sniffer): Likewise.
2576 (micromips_decode_imm9): New function.
2577 (micromips_scan_prologue): Likewise.
2578 (mips_micro_frame_cache): Likewise.
2579 (mips_micro_frame_this_id): Likewise.
2580 (mips_micro_frame_prev_register): Likewise.
2581 (mips_micro_frame_sniffer): Likewise.
2582 (mips_micro_frame_unwind): New variable.
2583 (mips_micro_frame_base_address): New function.
2584 (mips_micro_frame_base): New variable.
2585 (mips_micro_frame_base_sniffer): New function.
2586 (mips32_scan_prologue): Update mips_fetch_instruction call.
2587 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2588 rather than for MIPS16.
2589 (mips_insn32_frame_base_sniffer): Likewise.
2590 (mips_addr_bits_remove): Handle microMIPS code.
2591 (deal_with_atomic_sequence): Rename to...
2592 (mips_deal_with_atomic_sequence): ... this. Update the type
2593 of the variable used to hold an instruction. Remove the ISA bit
2594 check. Update mips_fetch_instruction call.
2595 (micromips_deal_with_atomic_sequence): New function.
2596 (deal_with_atomic_sequence): Likewise.
2597 (mips_about_to_return): Handle microMIPS code. Update
2598 mips_fetch_instruction call.
2599 (heuristic_proc_start): Check for the standard MIPS ISA rather
2600 than for MIPS16. Update mips_pc_is_mips16 and
2601 mips_fetch_instruction calls. Handle microMIPS code.
2602 (mips_push_dummy_code): Handle microMIPS code.
2603 (mips_eabi_push_dummy_call): Likewise.
2604 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2605 (mips_o64_push_dummy_call): Handle microMIPS code.
2606 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2607 (is_delayed): Remove function.
2608 (mips_single_step_through_delay): Replace the call to is_delayed
2609 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2610 Handle microMIPS code.
2611 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2613 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2615 (micromips_in_function_epilogue_p): New function.
2616 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2618 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2620 (gdb_print_insn_mips): Likewise.
2621 (mips_breakpoint_from_pc): Likewise.
2622 (mips_remote_breakpoint_from_pc): New function.
2623 (mips32_instruction_has_delay_slot): Simplify making use of the
2624 updated mips_fetch_instruction interface.
2625 (micromips_instruction_has_delay_slot): New function.
2626 (mips16_instruction_has_delay_slot): Simplify making use of the
2627 updated mips_fetch_instruction interface.
2628 (mips_adjust_breakpoint_address): Check for the standard MIPS
2629 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2630 calls. Handle microMIPS code.
2631 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2632 (mips_skip_trampoline_code): Handle microMIPS code.
2633 (global_mips_compression): New function.
2634 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2635 file flags. Register the microMIPS remote breakpoint handler
2636 and heuristic frame unwinder.
2637 (show_mips_compression): New function.
2638 (_initialize_mips_tdep): Add the "set mips compression" and
2639 "show mips compression" commands.
2641 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2646 * amd64-darwin-tdep.c:
2647 * arm-symbian-tdep.c:
2651 * bfin-linux-tdep.c:
2658 * dwarf2-frame-tailcall.c:
2687 * microblaze-tdep.c:
2688 * mips-linux-tdep.c:
2696 * python/py-finishbreakpoint.c:
2697 * python/py-inferior.c:
2698 * python/py-infthread.c:
2702 * remote-m32r-sdi.c:
2706 * rs6000-aix-tdep.c:
2732 * amd64-darwin-tdep.c:
2733 * arm-symbian-tdep.c:
2734 * arm-tdep.c: Delete unused variables.
2736 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2738 Rename $ddir to $datadir.
2739 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2740 * auto-load.c (auto_load_safe_path_vec_update)
2741 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2742 * configure: Regenerate.
2743 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2744 Likewise. Remove the 'use $ddir' help string.
2746 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2748 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2749 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2751 2012-05-18 Tom Tromey <tromey@redhat.com>
2754 * valprint.h (struct value_print_options) <symbol_print>: New
2756 * valprint.c (user_print_options): Add default for symbol_print.
2757 (show_symbol_print): New function.
2758 (generic_val_print): Respect symbol_print.
2759 (_initialize_valprint): Add "print symbol" setting.
2760 * f-valprint.c (f_val_print): Respect symbol_print.
2761 * c-valprint.c (c_val_print): Respect symbol_print.
2763 * printcmd.c (print_address_symbolic): Return int. Ignore some
2765 (print_address_demangle): Return int.
2766 * defs.h: (print_address_symbolic): Return int.
2767 * value.h (print_address_demangle): Return int.
2769 2012-05-18 Tom Tromey <tromey@redhat.com>
2771 * valprint.c (val_print_string): Don't print leading space.
2772 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2773 print space before string or vtbl.
2774 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2776 * jv-valprint.c (java_value_print): Print space before string.
2777 * go-valprint.c (print_go_string): Print space before string.
2778 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2779 space before string.
2780 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2781 space before string or vtbl.
2782 * auxv.c (fprint_target_auxv): Print space after address.
2784 2012-05-18 Tom Tromey <tromey@redhat.com>
2786 * printcmd.c (print_address_demangle): Remove special case for 0.
2788 2012-05-18 Tom Tromey <tromey@redhat.com>
2790 * printcmd.c (print_address_demangle): Add 'opts' argument.
2791 * p-valprint.c (pascal_val_print): Update.
2792 * jv-valprint.c (java_val_print): Update.
2794 * valprint.c (generic_val_print): Update.
2795 (print_function_pointer_address): Add 'options' argument. Remove
2796 'addressprint' argument. Update.
2797 * m2-valprint.c (print_unpacked_pointer): Update.
2798 * gnu-v3-abi.c (print_one_vtable): Update.
2799 (gnuv3_print_method_ptr): Update.
2800 * f-valprint.c (f_val_print): Update.
2801 * cp-valprint.c (cp_print_value_fields): Update.
2802 * valprint.h (print_function_pointer_address): Update.
2803 * c-valprint.c (c_val_print): Update.
2805 2012-05-18 Tom Tromey <tromey@redhat.com>
2807 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2808 directly corresponding to the found psymtab.
2809 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2810 (dw2_find_pc_sect_symtab): Use it.
2811 * block.h (blockvector_contains_pc): Declare.
2812 * block.c (find_block_in_blockvector): New function.
2813 (blockvector_for_pc_sect): Use it.
2814 (blockvector_contains_pc): New function.
2816 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2818 * mips-tdep.h (mips_write_pc): New prototype.
2819 * mips-tdep.c (mips_write_pc): Make external, add description.
2820 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
2823 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2825 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
2827 (mips_unwind_pc, mips_write_pc): Likewise.
2828 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
2831 2012-05-17 Joel Brobecker <brobecker@adacore.com>
2833 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
2834 proc_warn, proc_error, proc_get_status, proc_flags,
2835 proc_why, proc_what, proc_nsysarg, proc_sysargs,
2836 proc_set_run_on_last_close, proc_unset_run_on_last_close,
2837 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
2838 proc_stop_process, proc_wait_for_stop, proc_run_process,
2839 proc_set_traced_signals, proc_set_traced_faults,
2840 proc_set_traced_sysentry, proc_set_traced_sysexit,
2841 proc_set_held_signals, proc_get_held_signals,
2842 proc_get_traced_signals, proc_get_traced_faults,
2843 proc_get_traced_sysentry, proc_get_traced_sysexit,
2844 proc_clear_current_fault, proc_set_current_signal,
2845 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
2846 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
2847 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
2848 proc_get_current_thread, proc_get_current_thread,
2849 proc_get_current_thread, proc_update_threads,
2850 proc_update_threads, proc_update_threads, proc_update_threads,
2851 proc_iterate_over_threads, procfs_find_new_threads,
2852 procfs_pid_to_str): Make static. Remove advance declaration.
2853 (proc_cursig): Make static. Conditionalized defintion on
2854 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
2855 (proc_syscall, proc_set_kill_on_last_close,
2856 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
2857 proc_get_pending_signals, proc_get_signal_actions,
2858 proc_trace_signal, proc_ignore_signal): Delete.
2860 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2862 * coffread.c (cs_section_address): Passing proper argument for
2863 `bfd_get_section_vma'.
2864 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
2865 `bfd_get_section_flags'.
2866 * remote.c (remote_trace_set_readonly_regions): Likewise, for
2867 `bfd_get_section_vma'.
2869 2012-05-16 Tom Tromey <tromey@redhat.com>
2872 * macrotab.h: (macro_define_special): Declare.
2873 (enum macro_special_kind): New.
2874 (struct macro_definition) <argc, replacement>: Update comments.
2875 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
2876 (macro_define_object_internal): New function.
2877 (macro_define_object): Use it.
2878 (macro_define_special): New function.
2879 (fixup_definition): New function.
2880 (macro_lookup_definition, foreach_macro_in_scope)
2881 (foreach_macro): Use fixup_definition.
2882 * macroexp.h (macro_stringify): Declare.
2883 * macroexp.c (free_buffer_return_text): New function.
2884 (stringify): Constify "arg".
2885 (macro_stringify): New function.
2886 * dwarf2read.c (macro_start_file): Call macro_define_special.
2888 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
2889 Maciej W. Rozycki <macro@mips.com>
2891 * breakpoint.h (bp_location): Add related_address member.
2892 * inferior.h (get_return_value): Take a pointer to struct value
2893 instead of struct type for the function requested.
2894 * value.h (using_struct_return): Likewise.
2895 * gdbarch.sh (return_value): Take a pointer to struct value
2896 instead of struct type for the function requested.
2897 * breakpoint.c (set_breakpoint_location_function): Initialize
2898 related_address for bp_gnu_ifunc_resolver breakpoints.
2899 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
2900 requested function's address to gdbarch_return_value.
2901 * eval.c (evaluate_subexp_standard): Pass the requested
2902 function's address to using_struct_return.
2903 * infcall.c (call_function_by_hand): Pass the requested
2904 function's address to using_struct_return and
2905 gdbarch_return_value.
2906 * infcmd.c (get_return_value): Take a pointer to struct value
2907 instead of struct type for the function requested.
2908 (print_return_value): Update accordingly.
2909 (finish_command_continuation): Likewise.
2910 * stack.c (return_command): Pass the requested function's
2911 address to using_struct_return and gdbarch_return_value.
2912 * value.c (using_struct_return): Take a pointer to struct value
2913 instead of struct type for the function requested. Pass the
2914 requested function's address to gdbarch_return_value.
2915 * python/py-finishbreakpoint.c (finish_breakpoint_object):
2916 New function_value member, replacing function_type.
2917 (bpfinishpy_dealloc): Update accordingly.
2918 (bpfinishpy_pre_stop_hook): Likewise.
2919 (bpfinishpy_init): Likewise. Record the requested function's
2921 * mips-tdep.c (mips_fval_reg): New enum.
2922 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
2923 words put in GP registers.
2924 (mips_o64_push_dummy_call): Update a comment.
2925 (mips_o32_return_value): Take a pointer to struct value instead
2926 of struct type for the function requested and use it to check if
2927 using the MIPS16 calling convention. Return the designated
2928 general purpose registers for floating-point values returned in
2930 (mips_o64_return_value): Likewise.
2931 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
2932 (ppc_sysv_abi_broken_return_value): Likewise.
2933 (ppc64_sysv_abi_return_value): Likewise.
2934 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
2935 value instead of struct type for the function requested.
2936 * amd64-tdep.c (amd64_return_value): Likewise.
2937 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
2938 * arm-tdep.c (arm_return_value): Likewise.
2939 * avr-tdep.c (avr_return_value): Likewise.
2940 * bfin-tdep.c (bfin_return_value): Likewise.
2941 * cris-tdep.c (cris_return_value): Likewise.
2942 * frv-tdep.c (frv_return_value): Likewise.
2943 * h8300-tdep.c (h8300_return_value): Likewise.
2944 (h8300h_return_value): Likewise.
2945 * hppa-tdep.c (hppa32_return_value): Likewise.
2946 (hppa64_return_value): Likewise.
2947 * i386-tdep.c (i386_return_value): Likewise.
2948 * ia64-tdep.c (ia64_return_value): Likewise.
2949 * iq2000-tdep.c (iq2000_return_value): Likewise.
2950 * lm32-tdep.c (lm32_return_value): Likewise.
2951 * m32c-tdep.c (m32c_return_value): Likewise.
2952 * m32r-tdep.c (m32r_return_value): Likewise.
2953 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
2954 * m68k-tdep.c (m68k_return_value): Likewise.
2955 (m68k_svr4_return_value): Likewise.
2956 * m88k-tdep.c (m88k_return_value): Likewise.
2957 * mep-tdep.c (mep_return_value): Likewise.
2958 * microblaze-tdep.c (microblaze_return_value): Likewise.
2959 * mn10300-tdep.c (mn10300_return_value): Likewise.
2960 * moxie-tdep.c (moxie_return_value): Likewise.
2961 * mt-tdep.c (mt_return_value): Likewise.
2962 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
2963 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
2964 (ppc_sysv_abi_broken_return_value): Likewise.
2965 (ppc64_sysv_abi_return_value): Likewise.
2966 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
2967 * rl78-tdep.c (rl78_return_value): Likewise.
2968 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
2969 * rx-tdep.c (rx_return_value): Likewise.
2970 * s390-tdep.c (s390_return_value): Likewise.
2971 * score-tdep.c (score_return_value): Likewise.
2972 * sh-tdep.c (sh_return_value_nofpu): Likewise.
2973 (sh_return_value_fpu): Likewise.
2974 * sh64-tdep.c (sh64_return_value): Likewise.
2975 * sparc-tdep.c (sparc32_return_value): Likewise.
2976 * sparc64-tdep.c (sparc64_return_value): Likewise.
2977 * spu-tdep.c (spu_return_value): Likewise.
2978 * tic6x-tdep.c (tic6x_return_value): Likewise.
2979 * v850-tdep.c (v850_return_value): Likewise.
2980 * vax-tdep.c (vax_return_value): Likewise.
2981 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
2982 * xtensa-tdep.c (xtensa_return_value): Likewise.
2983 * gdbarch.c: Regenerate.
2984 * gdbarch.h: Regenerate.
2986 2012-05-15 Tom Tromey <tromey@redhat.com>
2988 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
2990 2012-05-15 Joel Brobecker <brobecker@adacore.com>
2992 * breakpoint.c (init_breakpoint_sal): Add quotes around part
2993 of command in two error message.
2995 2012-05-15 Joel Brobecker <brobecker@adacore.com>
2997 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
2999 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3001 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3003 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3005 * NEWS (show auto-load scripts-directory): Add forgotten command.
3007 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3009 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3012 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3014 * amd64-tdep.c: Include features/i386/x32.c and
3015 features/i386/x32-avx.c.
3016 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3017 initialize_tdesc_x32_avx.
3019 2012-05-14 Stan Shebs <stan@codesourcery.com>
3022 * breakpoint.h (enum bptype): New type bp_dprintf.
3023 (struct breakpoint): New field extra_string.
3024 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3025 (create_breakpoint): Add extra_string arg.
3026 * breakpoint.c (dprintf_breakpoint_ops): New.
3027 (is_breakpoint): Add bp_dprintf.
3028 (bpstat_what): Add dprintf case.
3029 (bptype_string): Ditto.
3030 (print_one_breakpoint_location): Ditto.
3031 (init_bp_location): Ditto.
3032 (bkpt_print_mention): Ditto.
3033 (dprintf_style_enums): New array.
3034 (dprintf_style): New global.
3035 (dprintf_function): New global.
3036 (dprintf_channel): New global.
3037 (update_dprintf_command_list): New function.
3038 (update_dprintf_commands): New function.
3039 (init_breakpoint_sal): Add extra_string argument, handle it.
3040 (create_breakpoint_sal): Add extra_string argument.
3041 (create_breakpoints_sal): Add extra_string argument, update callers.
3042 (find_condition_and_thread): Add extra argument.
3043 (create_breakpoint): Add extra_string argument, record it.
3044 (dprintf_command): New function.
3045 (break_command_1): Add arg to create_breakpoint call.
3046 (handle_gnu_v3_exceptions): Ditto.
3047 (trace_command): Ditto.
3048 (ftrace_command): Ditto.
3049 (strace_command): Ditto.
3050 (bkpt_print_mention): Add dprintf case.
3051 (create_breakpoint_sal_default): Add extra_string argument.
3052 (_initialize_breakpoint): Add new commands.
3053 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3054 * python/py-breakpoint.c (bppy_init): Ditto.
3055 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3057 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3059 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3061 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3063 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3066 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3068 Add a new function gdb.find_pc_line to the Python API.
3069 * NEWS (Python Scripting): Add entry about the new function.
3070 * python/python.c (gdbpy_find_pc_line): New function which
3071 implements gdb.find_pc_line.
3072 (GdbMethods): Add entry for the new function.
3074 2012-05-12 Pedro Alves <palves@redhat.com>
3076 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3077 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3079 2012-05-12 Eli Zaretskii <eliz@gnu.org>
3081 * inferior.c: Include completer.h
3082 (initialize_inferiors): Set completer of add-inferior to
3085 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3087 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3088 gdbarch_ptr_bit for x32 core dump.
3090 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3092 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3093 and features/i386/x32-avx-linux.c.
3095 2012-05-11 Stan Shebs <stan@codesourcery.com>
3096 Kwok Cheung Yeung <kcy@codesourcery.com>
3098 * NEWS: Describe new info os commands.
3099 * common/linux-osdata.c (PID_T, TIME_T): Define.
3100 (MAX_PID_T_STRLEN): New.
3101 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3103 (command_from_pid): Add comment. Change to use PID_T.
3104 (commandline_from_pid): Change to use PID_T.
3105 (user_from_pid): Add comment.
3106 (get_process_owner): Add comment. Change to use PID_T and
3108 (get_number_of_cpu_cores): Add comment.
3109 (get_cores_used_by_process): Add comment. Change to use PID_T and
3111 (linux_xfer_osdata_processes): Change to use PID_T and
3113 (compare_processes): New function.
3114 (linux_xfer_osdata_processgroups): New function.
3115 (linux_xfer_osdata_threads): Change to use PID_T.
3116 (linux_xfer_osdata_fds): New function.
3117 (format_socket_state, print_sockets): New functions.
3118 (union socket_addr): New union.
3119 (linux_xfer_osdata_isockets): New function.
3120 (time_from_time_t, group_from_gid): New functions.
3121 (linux_xfer_osdata_shm): New function.
3122 (linux_xfer_osdata_sem): New function.
3123 (linux_xfer_osdata_msg): New function.
3124 (linux_xfer_osdata_modules): New function.
3125 (osdata_table): Add new entries.
3126 * common/buffer.c (buffer_xml_printf): Add support for long and
3127 long long format specifiers.
3129 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3131 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3132 (tdesc_x32_avx_linux): Likewise.
3134 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3136 Implement multi-component --with-auto-load-dir.
3137 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3139 (--with-auto-load-safe-path): Update the default value description.
3140 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3142 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3143 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3144 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3145 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3146 "set auto-load scripts-directory".
3147 * config.in: Regenerate.
3148 * configure: Regenerate.
3149 * configure.ac (--with-auto-load-dir): New configure option.
3150 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3152 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3154 Provide $ddir substitution for --with-auto-load-safe-path.
3155 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3157 * auto-load.c: Include observer.h.
3158 (auto_load_safe_path_vec_update): Call substitute_path_component for
3159 each component. New variable ddir_subst.
3160 (auto_load_gdb_datadir_changed): New function.
3161 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3162 AUTO_LOAD_SAFE_PATH. New comment.
3163 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3164 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3165 * config.in: Regenerate.
3166 * configure: Regenerate.
3167 * configure.ac (--auto-load-safe-path): Rename
3168 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3169 GDB_DATADIR/auto-load.
3170 * defs.h (substitute_path_component): New declaration.
3171 * top.c: Include observer.h.
3172 (set_gdb_datadir): New function.
3173 (init_main): Install it for "set data-directory".
3174 * utils.c (substitute_path_component): New function.
3176 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3178 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3179 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3180 DEBUG_FILE_DIRECTORY. Handle multiple components of
3181 DEBUG_FILE_DIRECTORY.
3183 2012-05-10 Tom Tromey <tromey@redhat.com>
3185 * dwarf2read.c (recursively_write_psymbols): New function.
3186 (write_psymtabs_to_index): Use it.
3188 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3190 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3191 (load_partial_comp_unit): Update.
3192 (queue_comp_unit): Add argument 'pretend_language'.
3193 (process_queue): Update.
3194 (psymtab_to_symtab_1): Skip dependencies that have a user.
3195 (load_partial_comp_unit_reader): Give meaning to the 'data'
3197 (load_full_comp_unit): Add 'pretend_language' argument.
3198 (process_full_comp_unit): Add 'pretend_language' argument. Set
3200 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3202 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3203 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3205 (prepare_one_comp_unit): Add 'pretend_language' argument.
3207 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3208 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3209 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3210 (dw2_do_instantiate_symtab): Check whether symtab was read in
3212 (dw2_instantiate_symtab): Add assertion. Call
3213 process_cu_includes.
3214 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3215 (partial_symtab_p): New typedef.
3216 (set_partial_user): New function.
3217 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3218 (scan_partial_symbols): Add imported CU to imported_symtabs.
3219 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3220 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3221 (get_symtab, recursively_compute_inclusions)
3222 (compute_symtab_includes, process_cu_includes)
3223 (process_imported_unit_die): New functions.
3224 (process_die) <DW_TAG_imported_unit>: New case.
3225 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3227 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3229 (struct partial_die_info) <locdesc>: Remove.
3231 (process_psymtab_comp_unit): Add 'read_partial' argument.
3233 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3234 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3235 (add_partial_symbol): Update.
3236 (process_die): Handle DW_TAG_partial_unit.
3237 (read_file_scope): Update comment.
3238 (load_partial_dies): Handle DW_TAG_imported_unit.
3239 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3240 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3242 2012-05-10 Tom Tromey <tromey@redhat.com>
3244 * cc-with-dwz.sh: New file.
3246 2012-05-10 Tom Tromey <tromey@redhat.com>
3248 * symtab.h (struct symtab) <includes, user>: New fields.
3249 * block.h (struct block_iterator) <d, idx, which>: New fields.
3250 * block.c (initialize_block_iterator, find_iterator_symtab)
3251 (block_iterator_step, block_iter_name_step)
3252 (block_iter_match_step): New functions.
3253 (block_iterator_first, block_iterator_next)
3254 (block_iter_name_first, block_iter_name_next)
3255 (block_iter_match_first, block_iter_match_next): Rewrite.
3256 (get_block_symtab): New function.
3258 2012-05-10 Tom Tromey <tromey@redhat.com>
3260 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3262 * jit.c (finalize_symtab): Use allocate_global_block,
3264 * buildsym.c (finish_block_internal): New function, from old
3266 (finish_block): Rewrite.
3267 (end_symtab): Use finish_block_internal, set_block_symtab.
3268 * block.h (struct global_block): New.
3269 (allocate_global_block, set_block_symtab): Declare.
3270 * block.c (allocate_global_block, set_block_symtab): New
3273 2012-05-10 Tom Tromey <tromey@redhat.com>
3275 * psymtab.c (partial_map_expand_apply): Add assertion.
3276 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3277 (psymtab_to_symtab): Find unshared psymtab.
3278 (dump_psymtab): Print including psymtabs.
3279 (recursively_search_psymtabs): New function.
3280 (expand_symtabs_matching_via_partial): Use it.
3281 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3283 (enum psymtab_search_status): New.
3285 2012-05-10 Tom Tromey <tromey@redhat.com>
3287 * tracepoint.c (scope_info): Update.
3288 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3289 (find_pc_sect_symtab, search_symbols)
3290 (default_make_symbol_completion_list_break_on)
3291 (make_file_symbol_completion_list): Update.
3292 * symmisc.c (dump_symtab_1): Update.
3293 * stack.c (print_frame_args, iterate_over_block_locals)
3294 (print_frame_labels, iterate_over_block_arg_vars): Update.
3295 * python/py-block.c (block_object) <dict>: Remove.
3297 <iter>: Change type.
3298 (blpy_iter): Update.
3299 (blpy_block_syms_iternext): Update.
3300 * psymtab.c (map_block): Use block iterators.
3301 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3302 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3303 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3304 * infrun.c (check_exception_resume): Update.
3305 * cp-support.c (make_symbol_overload_list_block): Update.
3306 * coffread.c (patch_opaque_types): Update.
3307 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3308 * block.h (struct block_iterator): New.
3309 (block_iterator_first, block_iterator_next, block_iter_name_first)
3310 (block_iter_name_next, block_iter_match_first)
3311 (block_iter_match_next): Declare.
3312 (ALL_BLOCK_SYMBOLS): Redefine.
3313 * block.c (block_iterator_first, block_iterator_next)
3314 (block_iter_name_first, block_iter_name_next)
3315 (block_iter_match_first, block_iter_match_next): New functions.
3316 * ada-lang.c (ada_add_block_symbols)
3317 (ada_make_symbol_completion_list): Use block iterator.
3319 2012-05-10 Tom Tromey <tromey@redhat.com>
3321 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3322 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3323 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3324 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3325 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3328 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3330 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3331 print-file-var-lib2.c, print-file-var-main.c and
3332 print-file-var.exp (located in gdb/testsuite/gdb.base).
3334 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3336 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3337 try locating the symbol in the symbol's own objfile first, before
3338 extending the search to all objfiles.
3339 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3340 out of lookup_symbol_aux_symtabs.
3341 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3342 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3343 Do not search EXCLUDE_OBJFILE.
3344 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3345 (lookup_symbol_global): Search for matches in the block's objfile
3346 first, before searching all other objfiles.
3348 2012-05-10 Tristan Gingold <gingold@adacore.com>
3350 * printcmd.c (set_command): Add pre/post inc/dec.
3352 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3354 * gdb.1: Document -ex option.
3356 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3358 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3359 * inferior.h (AT_SYMBOL): Delete.
3361 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3363 * mips-tdep.c (mips_push_dummy_code): New function.
3364 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3365 ON_STACK and install mips_push_dummy_code as our gdbarch
3366 push_dummy_code routine.
3368 2012-05-09 Pedro Alves <palves@redhat.com>
3370 * target.c (set_maintenance_target_async_permitted): Rename to ...
3371 (set_target_async_command): ... this.
3372 (show_maintenance_target_async_permitted): Rename to ...
3373 (show_target_async_command): ... this.
3374 (initialize_targets): Adjust.
3376 2012-05-08 Doug Evans <dje@google.com>
3378 * go-exp.y (classify_name): Add missing assignment of fields of
3381 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3383 Display the ">" prompt in interactive mode while reading canned
3384 commands, even when the current interpreter is MI.
3386 * interps.c (interp_set_temp): New function.
3388 * interps.h (interp_set_temp): Add prototype.
3390 * cli/cli-script.c (restore_interp): New cleanup function.
3391 (read_command_lines): Temporarily override the current interpreter
3392 with CLI and arrange for restoring the original one.
3394 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3396 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3398 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3400 * probe.c (parse_probes): Move conditional to check for
3401 debuginfo files from here...
3402 * stap-probe.c (stap_get_probes): ... to here.
3404 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3405 H.J. Lu <hongjiu.lu@intel.com>
3407 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3408 `movl %esp, %ebp' for the X32 ABI.
3410 2012-05-07 Tom Tromey <tromey@redhat.com>
3412 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3414 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3415 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3416 (dwarf_stack_op_name): Remove.
3417 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3418 (decode_locdesc): Use get_DW_OP_name.
3419 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3420 (dwarf2_compile_expr_to_ax): Likewise.
3421 (disassemble_dwarf_expression): Likewise.
3422 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3424 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3426 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3427 (sh_linux_sigtramp_cache): New function.
3428 (sh_linux_sigreturn_init): New function.
3429 (sh_linux_rt_sigreturn_init): New function.
3430 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3432 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3434 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3435 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3436 (sh_linux_init_abi): Add init calls to register new tramp_frame
3437 definitions under 32-bit SH, update comments.
3439 2012-05-07 Pedro Alves <palves@redhat.com>
3443 * amd64-linux-tdep.c: Include glibc-tdep.h.
3444 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3445 gdbarch_skip_solib_resolver callback.
3447 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3449 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3450 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3451 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3452 (add_auto_load_safe_path): Change the error message.
3453 (_initialize_auto_load): Change the "safe-path" help text.
3454 * configure: Regenerate
3455 * configure.ac (--without-auto-load-safe-path): Set
3456 WITH_AUTO_LOAD_SAFE_PATH to /.
3458 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3460 * stap-probe.h: Do not include unecessary `probe.h'.
3462 2012-05-05 Alan Modra <amodra@gmail.com>
3464 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3465 bfd_und_section_ptr.
3466 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3467 and bfd_com_section_ptr.
3469 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3471 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3473 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3475 * windows-nat.h (segment_register_p_ftype): New typedef.
3476 (windows_set_segment_register_p): Add declaration.
3477 * windows-nat.c (segment_register_p): New static global.
3478 (windows_set_segment_register_p): New function.
3479 (do_windows_fetch_inferior_registers): Add special handling
3480 for segment registers.
3481 * amd64-windows-nat.c: #include "amd64-tdep.h".
3482 (amd64_windows_segment_register_p): New function.
3483 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3484 * i386-windows-nat.c: #include "i386-tdep.h".
3485 (i386_windows_segment_register_p): New function.
3486 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3488 2012-05-04 Tristan Gingold <gingold@adacore.com>
3490 * printcmd.c (set_command): Emit a warning if the expression is not
3493 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3495 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3498 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3500 * stap-probe.c (stap_is_operator): Change declaration.
3501 (stap_get_opcode): Change return value.
3502 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3503 `stap_parse_argument_1'.
3505 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3507 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3510 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3512 Add two new methods global_block and static_block to gdb.Symtab
3514 * NEWS (Python scripting): Add entry about the new methods.
3515 * python/py-symtab.c (stpy_global_block): New function which
3516 implements the gdb.Symtab.global_block() method.
3517 (stpy_static_block): New function which implements the
3518 gdb.Symtab.static_block() method.
3519 (symtab_object_methods): Add entries for the two new methods.
3521 2012-05-03 Doug Evans <dje@google.com>
3523 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3526 2012-05-03 Yao Qi <yao@codesourcery.com>
3528 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3530 (i386_process_record): Ditto.
3532 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3534 * infcall.c (unwind_on_signal_p): Make static.
3536 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3538 * sol-thread.c (solaris_pid_to_str): Make static.
3539 (_initialize_sol_thread): Add prototype.
3541 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3543 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3545 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3547 * MAINTAINERS: Remove myself.
3549 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3551 Fix --without-auto-load-safe-path for MS-Windows host platform.
3552 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3554 2012-05-02 Eli Zaretskii <eliz@gnu.org>
3556 * gdb_curses.h: Undefine KEY_EVENT before including curses
3557 headers. Move "#undef MOUSE_MOVED" before any curses header
3560 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3562 * features/i386/i386-mmx-linux.c: Regenerate.
3563 * features/rs6000/powerpc-32.c: Likewise.
3564 * features/rs6000/powerpc-32l.c: Likewise.
3565 * features/rs6000/powerpc-403.c: Likewise.
3566 * features/rs6000/powerpc-403gc.c: Likewise.
3567 * features/rs6000/powerpc-405.c: Likewise.
3568 * features/rs6000/powerpc-505.c: Likewise.
3569 * features/rs6000/powerpc-601.c: Likewise.
3570 * features/rs6000/powerpc-602.c: Likewise.
3571 * features/rs6000/powerpc-603.c: Likewise.
3572 * features/rs6000/powerpc-604.c: Likewise.
3573 * features/rs6000/powerpc-64.c: Likewise.
3574 * features/rs6000/powerpc-64l.c: Likewise.
3575 * features/rs6000/powerpc-750.c: Likewise.
3576 * features/rs6000/powerpc-860.c: Likewise.
3577 * features/rs6000/powerpc-e500.c: Likewise.
3578 * features/rs6000/powerpc-e500l.c: Likewise.
3579 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3580 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3581 * features/rs6000/rs6000.c: Likewise.
3583 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3585 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3587 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3588 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3589 (stap_parse_argument) <e>: Likewise.
3590 (handle_stap_probe) <byte_order>: Likewise.
3592 2012-04-30 Doug Evans <dje@google.com>
3594 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3595 init_and_read_dies_worker. All callers updated.
3596 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3597 replaced with init_cutu_and_read_dies.
3598 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3599 (find_partial_die): Remove FIXME. Don't free current CU.
3601 2012-04-30 Sterling Augustine <saugustine@google.com>
3603 * contrib: New directory.
3604 * contrib/test_pubnames_and_indexes.py: New file.
3606 2012-04-30 Doug Evans <dje@google.com>
3608 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3609 All callers updated.
3610 (init_cu_die_reader): Verify the section is non-empty.
3611 (dwarf_decode_line_header): Don't dereference section->asection
3612 until we know the section is present.
3614 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3616 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3619 2012-04-29 Yao Qi <yao@codesourcery.com>
3621 * gdb-code-style.el: New hook gdb-markup-hook
3622 and gdb-comment-hook.
3624 2012-04-28 Doug Evans <dje@google.com>
3626 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3627 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3629 * symfile.h (dwarf2_debug_sections): New member addr.
3630 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3631 (ctx_no_get_addr_index): New function.
3632 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3633 (ctx_no_get_addr_index): Declare.
3634 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3635 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3636 (dwarf_expr_ctx_funcs): Update.
3637 (needs_get_addr_index): New function.
3638 (needs_frame_ctx_funcs): Update.
3639 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3640 * dwarf2read.c: #include "gdbcore.h".
3641 (dwarf2_per_objfile): New members addr, dwo_files.
3642 (dwarf2_elf_names): Add entry for addr.
3643 (struct dwo_section_names): New type.
3644 (dwo_section_names): New static global.
3645 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3646 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3647 old debug_types_section member updated to use this.
3648 Rename member debug_types_section to info_or_types_section,
3650 (signatured_type): Rename member type_offset to type_offset_in_tu,
3651 all uses updated. New member type_offset_in_section.
3652 (struct dwo_sections): New type.
3653 (struct dwo_unit): New type.
3654 (struct dwo_file): New type.
3655 (die_reader_specs): New member dwo_file.
3656 (dwarf2_locate_sections): Watch for .debug_addr.
3657 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3658 (dwarf2_read_section): Get bfd of section from bfd's asection,
3660 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3661 (create_signatured_type_table_from_index): Initialize
3662 sig_type->info_or_types_section.
3663 (dw2_get_file_names): Statement lists for type units with DWO files
3664 live in the DWO file.
3665 (create_debug_types_hash_table): New function.
3666 (create_all_type_units): Rewrite.
3667 (init_cu_die_reader): New arg dwo_file, all callers updated.
3668 (init_and_read_dies_worker): Get section from
3669 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3670 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3671 continue reading the CU/TU from there.
3672 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3673 updated. Get section from this_cu->info_or_types_section.
3674 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3675 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3676 DW_FORM_GNU_str_index.
3677 (hash_dwo_file, eq_dwo_file): New functions.
3678 (allocate_dwo_file_hash_table): New function.
3679 (hash_dwo_unit, eq_dwo_unit): New functions.
3680 (allocate_dwo_unit_table): New function.
3681 (dwarf2_locate_dwo_sections): New function.
3682 (struct create_dwo_info_table_data): New type.
3683 (create_debug_info_hash_table_reader): New function.
3684 (create_debug_info_hash_table): New function.
3685 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3686 (lookup_dwo_file): New function.
3687 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3688 (free_dwo_file, free_dwo_file_cleanup): New functions.
3689 (free_dwo_file_from_slot, free_dwo_files): New functions.
3690 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3691 (dwarf2_record_block_ranges): Ditto.
3692 (read_partial_die): Ditto.
3693 (process_enumeration_scope): Update to use type_offset_in_section.
3694 (read_full_die_1): New function.
3695 (read_full_die): Rewrite.
3696 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3697 DW_FORM_GNU_str_index.
3698 (read_addr_index_1, read_addr_index): New functions.
3699 (read_addr_index_from_leb128): New function.
3700 (struct dwarf2_read_addr_index_data): New type.
3701 (dwarf2_read_addr_index_reader): New function.
3702 (dwarf2_read_addr_index): New function.
3703 (read_str_index): New function.
3704 (leb128_size): New function.
3705 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3706 If processing a type unit from a DWO file, get the line section
3708 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3709 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3710 DW_FORM_GNU_str_index.
3711 (lookup_die_type): Check whether section offset of type's die is
3712 known before looking it up. Remove assert. Condition can
3713 legimately happen for inter-cu type references.
3714 (dwarf_attr_name): Handle Fission attributes.
3715 (dwarf_form_name): Handle Fission forms.
3716 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3717 DW_FORM_GNU_str_index.
3718 (follow_die_sig): Update to use type_offset_in_section.
3719 (decode_locdesc): New case DW_OP_GNU_addr_index.
3720 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3721 DW_FORM_GNU_str_index.
3722 (cu_debug_loc_section): New function.
3723 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3724 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3725 Free DWO files if present.
3726 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3728 Refactor DIE reading.
3729 * dwarf2read.c (dwarf2_per_objfile): Replace members
3730 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3731 (die_reader_specs): New member "die_section". Temporarily make
3732 member "buffer" non-const, pending constifying all info_ptr uses.
3733 (die_reader_func_ftype): New typedef.
3734 (dw2_get_file_names_reader): New function.
3735 (dw2_get_file_names): Rewrite.
3736 (read_and_check_type_unit_head): Rename arg type_offset to
3738 (create_all_type_units): Improve debugging message.
3739 Improve dummy type unit check.
3740 (init_cu_die_reader): New arg "section". All callers updated.
3741 (init_and_read_dies_worker): New function.
3742 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3743 (init_cutu_and_read_dies_no_follow): New function.
3744 (init_cutu_and_read_dies_simple): New function.
3745 (process_psymtab_comp_unit_reader): New function.
3746 (process_psymtab_comp_unit): Delete args section,
3747 is_debug_types_section. Rewrite. All callers updated.
3748 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3749 All callers updated. Rewrite.
3750 (load_partial_comp_unit_reader): New function.
3751 (load_partial_comp_unit): Rewrite.
3752 (skip_children): New arg reader. Delete args buffer, cu.
3753 All callers updated.
3754 (skip_one_die): New arg reader. Delete args buffer, cu.
3755 All callers updated.
3756 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3757 All callers updated.
3758 (load_full_comp_unit_reader): New function.
3759 (load_full_comp_unit): Rewrite.
3760 (read_comp_unit): Delete.
3761 (read_die_and_children_1): Delete, contents moved ...
3762 (read_die_and_children): ... here.
3763 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3764 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3765 All callers updated.
3766 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3767 All callers updated.
3768 (find_partial_die): Rewrite load_all_dies support.
3769 (read_attribute_value): New arg reader. Delete args abfd, cu.
3770 All callers updated.
3771 (read_attribute): New arg reader. Delete args abfd, cu.
3772 All callers updated.
3773 (load_full_type_unit): Add assert.
3774 (read_signatured_type_reader): New function.
3775 (read_signatured_type): Rewrite.
3776 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3777 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3778 All callers updated. Set per_cu->cu = NULL after freeing it.
3779 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3780 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3781 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3782 (set_die_type): Update.
3783 (get_die_type_at_offset): Update.
3784 (read_file_scope): Call prepare_one_comp_unit.
3785 (read_type_unit_scope): Ditto.
3786 (prepare_one_comp_unit): Set producer if present.
3788 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
3790 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3791 gettext function on `error'.
3793 2012-04-27 Doug Evans <dje@google.com>
3795 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3798 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3799 Tom Tromey <tromey@redhat.com>
3801 * breakpoint.c (struct breakpoint_objfile_data)
3802 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3803 <exception_probes>: New fields.
3804 (free_breakpoint_probes): New function.
3805 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3806 `_Unwind_DebugHook'.
3807 (create_exception_master_breakpoint): Likewise.
3808 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3809 * infrun.c: Including necessary header files for handling SystemTap
3811 (handle_inferior_event): Handling longjmp breakpoint and exceptions
3812 via SystemTap probes.
3813 (check_exception_resume): Remove `func' argument. Handle exception
3814 unwinding breakpoint set via a SystemTap probe.
3815 (insert_exception_resume_from_probe): New function.
3817 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3818 Tom Tromey <tromey@redhat.com>
3819 Jan Kratochvil <jan.kratochvil@redhat.com>
3821 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
3822 (COMMON_OBS): Likewise.
3823 (HFILES_NO_SRCDIR): Add `probe'.
3824 * NEWS: Mention support for static and SystemTap probes.
3825 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
3826 SystemTap probes' arguments parser.
3827 * arm-linux-tdep.c: Including headers needed to perform the parsing
3828 of SystemTap probes' arguments.
3829 (arm_stap_is_single_operand): New function.
3830 (arm_stap_parse_special_token): Likewise.
3831 (arm_linux_init_abi): Initializing proper fields used by SystemTap
3832 probes' arguments parser.
3833 * ax-gdb.c (require_rvalue): Removing static declaration.
3834 (gen_expr): Likewise.
3835 * ax-gdb.h (gen_expr): Declaring function.
3836 (require_rvalue): Likewise.
3837 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
3838 (bkpt_probe_breakpoint_ops): New variable.
3839 (momentary_breakpoint_from_master): Set the `probe' value.
3840 (add_location_to_breakpoint): Likewise.
3841 (break_command_1): Using proper breakpoint_ops according to the
3842 argument passed by the user in the command line.
3843 (bkpt_probe_insert_location): New function.
3844 (bkpt_probe_remove_location): Likewise.
3845 (bkpt_probe_create_sals_from_address): Likewise.
3846 (bkpt_probe_decode_linespec): Likewise.
3847 (tracepoint_probe_create_sals_from_address): Likewise.
3848 (tracepoint_probe_decode_linespec): Likewise.
3849 (tracepoint_probe_breakpoint_ops): New variable.
3850 (trace_command): Using proper breakpoint_ops according to the
3851 argument passed by the user in the command line.
3852 (initialize_breakpoint_ops): Initializing breakpoint_ops for
3853 static probes on breakpoints and tracepoints.
3854 * breakpoint.h (struct bp_location) <probe>: New field.
3855 * cli-utils.c (skip_spaces_const): New function.
3856 (extract_arg): Likewise.
3857 * cli-utils.h (skip_spaces_const): Likewise.
3858 (extract_arg): Likewise.
3859 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
3860 * configure.ac: Append `stap-probe.o' to be generated when ELF
3862 * configure: Regenerate.
3863 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
3864 * elfread.c: Include `probe.h' and `arch-utils.h'.
3865 (probe_key): New variable.
3866 (elf_get_probes): New function.
3867 (elf_get_probe_argument_count): Likewise.
3868 (elf_evaluate_probe_argument): Likewise.
3869 (elf_compile_to_ax): Likewise.
3870 (elf_symfile_relocate_probe): Likewise.
3871 (stap_probe_key_free): Likewise.
3872 (elf_probe_fns): New variable.
3873 (elf_sym_fns): Add `sym_probe_fns' value.
3874 (elf_sym_fns_lazy_psyms): Likewise.
3875 (elf_sym_fns_gdb_index): Likewise.
3876 (_initialize_elfread): Initialize objfile cache for static
3878 * gdb_vecs.h (struct probe): New forward declaration.
3879 (probe_p): New VEC declaration.
3880 * gdbarch.c: Regenerate.
3881 * gdbarch.h: Regenerate.
3882 * gdbarch.sh (stap_integer_prefix): New variable.
3883 (stap_integer_suffix): Likewise.
3884 (stap_register_prefix): Likewise.
3885 (stap_register_suffix): Likewise.
3886 (stap_register_indirection_prefix): Likewise.
3887 (stap_register_indirection_suffix): Likewise.
3888 (stap_gdb_register_prefix): Likewise.
3889 (stap_gdb_register_suffix): Likewise.
3890 (stap_is_single_operand): New function.
3891 (stap_parse_special_token): Likewise.
3892 (struct stap_parse_info): Forward declaration.
3893 * i386-tdep.c: Including headers needed to perform the parsing
3894 of SystemTap probes' arguments.
3895 (i386_stap_is_single_operand): New function.
3896 (i386_stap_parse_special_token): Likewise.
3897 (i386_elf_init_abi): Initializing proper fields used by SystemTap
3898 probes' arguments parser.
3899 * i386-tdep.h (i386_stap_is_single_operand): New function.
3900 (i386_stap_parse_special_token): Likewise.
3901 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
3902 * mipsread.c (ecoff_sym_fns): Likewise.
3903 * objfiles.c (objfile_relocate1): Support relocation for static
3905 * parse.c (prefixify_expression): Remove static declaration.
3906 (initialize_expout): Likewise.
3907 (reallocate_expout): Likewise.
3908 * parser-defs.h (initialize_expout): Declare function.
3909 (reallocate_expout): Likewise.
3910 (prefixify_expression): Likewise.
3911 * ppc-linux-tdep.c: Including headers needed to perform the parsing
3912 of SystemTap probes' arguments.
3913 (ppc_stap_is_single_operand): New function.
3914 (ppc_stap_parse_special_token): Likewise.
3915 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
3916 probes' arguments parser.
3917 * probe.c: New file, for generic statically defined probe support.
3918 * probe.h: Likewise.
3919 * s390-tdep.c: Including headers needed to perform the parsing of
3920 SystemTap probes' arguments.
3921 (s390_stap_is_single_operand): New function.
3922 (s390_gdbarch_init): Initializing proper fields used by SystemTap
3923 probes' arguments parser.
3924 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
3925 * stap-probe.c: New file, for SystemTap probe support.
3926 * stap-probe.h: Likewise.
3927 * symfile.h: Include `gdb_vecs.h'.
3928 (struct sym_probe_fns): New struct.
3929 (struct sym_fns) <sym_probe_fns>: New field.
3930 * symtab.c (init_sal): Initialize `probe' field.
3931 * symtab.h (struct probe): Forward declaration.
3932 (struct symtab_and_line) <probe>: New field.
3933 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
3935 (stop_tracing): Likewise.
3936 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
3938 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3939 Tom Tromey <tromey@redhat.com>
3941 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
3942 and to compile agent expressions.
3943 * infrun.c (siginfo_make_value): New argument `ignore'.
3944 (siginfo_funcs): New struct.
3945 (_initialize_infrun): New argument when calling
3946 `create_internalvar_type_lazy'.
3947 * thread.c (thread_id_make_value): New argument `ignore'.
3948 (thread_funcs): New struct.
3949 (_initialize_thread): New argument when calling
3950 `create_internalvar_type_lazy'.
3951 * tracepoint.c (sdata_make_value): New argument `ignore'.
3952 (sdata_funcs): New struct.
3953 (_initialize_tracepoint): New argument when calling
3954 `create_internalvar_type_lazy'.
3955 * value.c (make_value): New struct.
3956 (create_internalvar_type_lazy): New argument `data'.
3957 (compile_internalvar_to_ax): New function.
3958 (value_of_internalvar): Properly handling `make_value' case.
3959 (clear_internalvar): Likewise.
3960 (show_convenience): Adding `TRY_CATCH' block.
3961 * value.h (internalvar_make_value): Delete, replace by...
3962 (struct internalvar_funcs): ... this.
3963 (create_internalvar_type_lazy) <fun>: Delete argument.
3964 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
3965 (compile_internalvar_to_ax): New function.
3966 * windows-tdep.c (tlb_make_value): New argument `ignore'.
3967 (tlb_funcs): New struct.
3968 (_initialize_windows_tdep): New argument when calling
3969 `create_internalvar_type_lazy'.
3971 2012-04-27 Mark Wielaard <mjw@redhat.com>
3973 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
3974 see whether it is an address or a constant offset from DW_AT_low_pc.
3975 (dwarf2_record_block_ranges): Likewise.
3976 (read_partial_die): Likewise.
3978 2012-04-26 Mark Wielaard <mjw@redhat.com>
3980 * MAINTAINERS (Write After Approval): Add myself to the list.
3982 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
3984 * proc-utils.h (proc_prettyprint_signalset): New prototype.
3985 (proc_prettyprint_signal): Likewise.
3986 (proc_prettyprint_faultset): Likewise.
3987 (proc_prettyprint_fault): Likewise.
3988 (proc_prettyprint_actionset): Likewise.
3989 (proc_prettyprint_flags): Move to new proc-flags.c section.
3990 (proc_prettyfprint_flags): New prototype.
3991 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
3992 (proc_syscall, proc_cursig): Likewise.
3993 (proc_set_kill_on_last_close): Likewise.
3994 (proc_unset_kill_on_last_close): Likewise.
3995 (proc_set_watchpoint): Make static.
3996 (proc_delete_dead_threads): Likewise.
3997 (procfs_set_watchpoint): Likewise.
3998 (_initialize_procfs): Add prototype.
3999 * proc-events.c: Include proc-utils.h.
4000 (init_syscall_table): Make static.
4001 * proc-api.c (_initialize_proc_api): Add prototype.
4002 * proc-flags.c: Include proc-utils.h.
4004 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4006 * configure.ac: Add AC_ARG_PROGRAM.
4007 * configure: Regenerate.
4009 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4011 Fix DW_AT_lower_bound defaults for DWARF-4+.
4012 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4013 high. New variable low_default_is_valid. Implement DWARF-4+
4014 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4015 no default by the DWARF standard.
4017 2012-04-26 Maciej W. Rozycki <macro@mips.com>
4018 Maciej W. Rozycki <macro@codesourcery.com>
4020 * infrun.c (handle_inferior_event): Move the check for return
4021 trampolines ahead of the check for function trampolines.
4022 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4023 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4024 (mips_str_mips16_ret_stub): Likewise.
4025 (mips_str_call_fp_stub): Likewise.
4026 (mips_str_call_stub): Likewise.
4027 (mips_str_fn_stub): Likewise.
4028 (mips_str_pic): Likewise.
4029 (mips_in_frame_stub): New function.
4030 (mips_unwind_pc): Return the return address rather than the PC
4031 if the PC of an intermediate frame is inside a call thunk.
4032 (mips_is_stub_suffix): New function.
4033 (mips_is_stub_mode): Likewise.
4034 (mips_get_mips16_fn_stub_pc): Likewise.
4035 (mips_skip_mips16_trampoline_code): Update to handle all the
4036 currently generated stub types. Don't recurse into __fn_stub
4037 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4038 Use cooked register accesses.
4039 (mips_in_return_stub): Reintroduce function.
4040 (mips_skip_trampoline_code): Traverse trampolines recursively.
4041 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4043 2012-04-26 Joel Brobecker <brobecker@adacore.com>
4047 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4049 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4050 * features/arm-with-m-vfp-d16.xml: New file. Describes
4051 Cortex-M with VFPv4-sp-d16 FPU register layout.
4052 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4053 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4054 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4055 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4056 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4058 2012-04-25 Doug Evans <dje@google.com>
4060 * cli/cli-decode.c (print_doc_line): Use stream instead of
4063 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4065 * features/arm-with-iwmmxt.c: Regenerate.
4066 * features/arm-with-m-fpa-layout.c: Likewise.
4067 * features/arm-with-m.c: Likewise.
4068 * features/arm-with-neon.c: Likewise.
4069 * features/arm-with-vfpv2.c: Likewise.
4070 * features/arm-with-vfpv3.c: Likewise.
4071 * features/mips-dsp-linux.c: Likewise.
4072 * features/mips-linux.c: Likewise.
4073 * features/mips64-dsp-linux.c: Likewise.
4074 * features/mips64-linux.c: Likewise.
4075 * features/s390-linux32.c: Likewise.
4076 * features/s390-linux32v1.c: Likewise.
4077 * features/s390-linux32v2.c: Likewise.
4078 * features/s390-linux64.c: Likewise.
4079 * features/s390-linux64v1.c: Likewise.
4080 * features/s390-linux64v2.c: Likewise.
4081 * features/s390x-linux64.c: Likewise.
4082 * features/s390x-linux64v1.c: Likewise.
4083 * features/s390x-linux64v2.c: Likewise.
4084 * features/tic6x-c62x-linux.c: Likewise.
4085 * features/tic6x-c62x.c: Likewise.
4086 * features/tic6x-c64x-linux.c: Likewise.
4087 * features/tic6x-c64x.c: Likewise.
4088 * features/tic6x-c64xp-linux.c: Likewise.
4089 * features/tic6x-c64xp.c: Likewise.
4090 * target-descriptions.c: Only generate `field_type' and `type'
4091 variables when needed.
4093 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4095 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4097 2012-04-25 Doug Evans <dje@google.com>
4099 Initial pass at Go language support.
4101 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4103 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4104 (YYFILES): Add go-exp.c.
4105 (YYOBJ): Add go-exp.o.
4106 (local-maintainer-clean): Delete go-exp.c.
4107 * defs.h (enum language): Add language_go.
4108 * dwarf2read.c: #include "go-lang.h".
4109 (fixup_go_packaging): New function.
4110 (process_full_comp_unit): Call it when processing Go CUs.
4111 (dwarf2_physname): Add Go support.
4112 (read_file_scope): Handle missing language spec for GNU Go.
4113 (set_cu_language): Handle DW_LANG_Go.
4114 * go-exp.y: New file.
4115 * go-lang.h: New file.
4116 * go-lang.c: New file.
4117 * go-typeprint.c: New file.
4118 * go-valprint.c: New file.
4119 * symtab.c: #include "go-lang.h".
4120 (symbol_set_language): Handle language_go.
4121 (symbol_find_demangled_name, symbol_set_names): Ditto.
4122 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4124 2012-04-24 Jim Meyering <meyering@redhat.com>
4126 avoid a few strncpy-induced buffer overruns
4127 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4128 fname and psargs before trying to concatenate.
4129 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4130 "name" before applying strchr.
4132 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4134 * CONTRIBUTE: Use unified diff instead of context diff when
4137 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4139 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4140 code. Handle JR.HB correctly.
4142 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4145 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4146 with the other MIPS16 helpers.
4148 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4150 * observer.sh: Conditionally declare `args', thus cleaning up
4151 unused instances of this variable.
4153 2012-04-24 Yao Qi <yao@codesourcery.com>
4155 Revert this patch to allow breakpoint always-inserted
4157 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4158 * breakpoint.c: Include record.h.
4159 (breakpoints_always_inserted_mode): Return false when the record
4162 * breakpoint.c (iterate_over_bp_locations): New.
4163 * breakpoint.h: Declare.
4164 New typedef walk_bp_location_callback.
4165 * record.c (record_open): Call record_init_record_breakpoints.
4166 (record_sync_record_breakpoints): New.
4167 (record_init_record_breakpoints): New.
4168 * NEWS: Mention supporting breakpoint always-inserted mode in
4171 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4173 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4176 2012-04-24 Yao Qi <yao@codesourcery.com>
4178 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4179 (is_catchpoint): ... it.
4180 (print_one_breakpoint_location): Caller update.
4181 * breakpoint.h: Update declaration.
4183 2012-04-23 David S. Miller <davem@davemloft.net>
4185 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4187 2012-04-23 Tom Tromey <tromey@redhat.com>
4189 * buildsym.c (add_free_pendings): Remove.
4190 * buildsym.h (add_free_pendings): Remove.
4192 2012-04-23 Doug Evans <dje@google.com>
4194 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4195 attr.u.unsnd instead of attr.u.addr.
4196 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4197 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4199 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4200 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4202 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4204 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4206 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4207 (mips_o32_return_value): Likewise.
4208 (mips_o64_return_value): Likewise.
4210 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4212 * ada-lang.c (ada_evaluate_subexp): Add cases for
4213 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4214 their treatment in eval.c.
4216 2012-04-21 David S. Miller <davem@davemloft.net>
4218 * sparc-tdep.c (X_DISP10): Define.
4219 (sparc_analyze_control_transfer): Handle compare-and-branch.
4221 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4223 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4224 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4226 2012-04-20 Nigel Stephens <nigel@mips.com>
4227 Maciej W. Rozycki <macro@codesourcery.com>
4229 * mips-tdep.c (mips_float_register_p): New function.
4230 (mips_convert_register_float_case_p): Use mips_float_register_p.
4231 (mips_register_type): Likewise.
4232 (mips_print_register): Likewise.
4233 (print_gp_register_row): Likewise.
4234 (mips_print_registers_info): Likewise.
4236 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4238 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4241 2012-04-20 Andrew Pinski <apinski@cavium.com>
4243 * MAINTAINERS (Write After Approval): Add myself to the list.
4245 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4247 * MAINTAINERS: Update my e-mail address.
4249 2012-04-20 Pedro Alves <palves@redhat.com>
4251 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4253 * configure: Regenerate.
4255 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4257 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4259 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4261 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4263 Fix compilation compatibility with python-2.4
4264 * python/py-type.c (convert_field): Cast ADDRSTRING for
4265 PyObject_SetAttrString as non-const. New comment.
4267 2012-04-19 Tom Tromey <tromey@redhat.com>
4269 * top.c (quit_target): Use all_cleanups.
4270 * main.c (captured_command_loop): Use all_cleanups.
4271 * exceptions.c (throw_exception): Use all_cleanups.
4273 2012-04-19 Pedro Alves <palves@redhat.com>
4275 * Makefile.in (GNULIB_BUILDDIR): New.
4276 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4277 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4278 (CLEANDIRS). Remove gnulib/import.
4279 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4281 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4282 (gnulib/import/Makefile): Replace gnulib/import with
4283 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4284 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4285 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4286 acx_configure_dir.m4.
4287 * acinclude.m4: Include acx_configure_dir.m4.
4288 * acx_configure_dir.m4: New file.
4289 * aclocal.m4: Regenerate.
4290 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4291 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4292 (GNULIB): New variable.
4293 (GNULIB_STDINT_H): Adjust.
4294 (AC_OUTPUT): Don't output gnulib/Makefile.
4295 * gdb/defs.h: Include build-gnulib/config.h.
4296 * aclocal.m4: Regenerate.
4297 * config.in: Regenerate.
4298 * configure: Regenerate.
4300 * gnulib/Makefile.in: New file.
4301 * gnulib/configure.ac: New file.
4302 * gnulib/aclocal.m4: New file.
4303 * gnulib/config.in: New file.
4304 * gnulib/configure: New file.
4305 * gnulib/: Re-run gnulib-tool to adjust.
4307 2012-04-19 Doug Evans <dje@google.com>
4309 * cleanups.h (struct cleanup): Move to cleanups.c.
4310 (make_cleanup_dtor_ftype): New typedef.
4311 (make_cleanup_dtor): Use it.
4312 (ALL_CLEANUPS): Replace with ...
4313 (all_cleanups): ... this. Declare. All uses updated.
4314 * cleanups.c: #include "gdb_assert.h".
4315 (sentinel_cleanup): New static global.
4316 (SENTINEL_CLEANUP): Define.
4317 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4318 (make_my_cleanup2): Assert result is non-NULL.
4319 (all_cleanups): New function.
4320 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4323 2012-04-19 Pedro Alves <palves@redhat.com>
4325 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4326 Adjust paths to gnulib imported files.
4328 2012-04-19 Pedro Alves <palves@redhat.com>
4330 * gnulib/: Move whole directory ...
4331 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4332 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4333 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4334 (aclocal_m4_deps): Adjust.
4335 * aclocal.m4: Regenerate.
4336 * configure: Regenerate.
4337 * configure.ac: Adjust AC_OUTPUT output.
4339 2012-04-19 Yao Qi <yao@codesourcery.com>
4341 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4343 * vec.c: Move it ...
4344 * common/vec.c: ... here.
4345 * vec.h: Move it ...
4346 * common/vec.h: ... here.
4348 2012-04-19 Yao Qi <yao@codesourcery.com>
4350 * gdb-code-style.el: New.
4352 2012-04-18 Pedro Alves <palves@redhat.com>
4354 Update gnulib from latest git.
4355 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4357 * gnulib/Makefile.am: Update.
4358 * gnulib/dummy.c: Update.
4359 * gnulib/extra/arg-nonnull.h: Update.
4360 * gnulib/extra/c++defs.h: Update.
4361 * gnulib/extra/update-copyright: Update.
4362 * gnulib/extra/warn-on-use.h: Update.
4363 * gnulib/inttypes.in.h: Update.
4364 * gnulib/m4/00gnulib.m4: Update.
4365 * gnulib/m4/extensions.m4: Update.
4366 * gnulib/m4/gnulib-cache.m4: Update.
4367 * gnulib/m4/gnulib-common.m4: Update.
4368 * gnulib/m4/gnulib-comp.m4: Update.
4369 * gnulib/m4/gnulib-tool.m4: Update.
4370 * gnulib/m4/include_next.m4: Update.
4371 * gnulib/m4/inttypes-pri.m4: Update.
4372 * gnulib/m4/inttypes.m4: Update.
4373 * gnulib/m4/longlong.m4: Update.
4374 * gnulib/m4/memchr.m4: Update.
4375 * gnulib/m4/memmem.m4: Update.
4376 * gnulib/m4/mmap-anon.m4: Update.
4377 * gnulib/m4/multiarch.m4: Update.
4378 * gnulib/m4/onceonly.m4: Update.
4379 * gnulib/m4/stddef_h.m4: Update.
4380 * gnulib/m4/stdint.m4: Update.
4381 * gnulib/m4/string_h.m4: Update.
4382 * gnulib/m4/warn-on-use.m4: Update.
4383 * gnulib/m4/wchar_h.m4: Update.
4384 * gnulib/m4/wchar_t.m4: Update.
4385 * gnulib/m4/wint_t.m4: Update.
4386 * gnulib/memchr.c: Update.
4387 * gnulib/memmem.c: Update.
4388 * gnulib/stddef.in.h: Update.
4389 * gnulib/stdint.in.h: Update.
4390 * gnulib/str-two-way.h: Update.
4391 * gnulib/string.in.h: Update.
4392 * gnulib/wchar.in.h: Update.
4394 * gnulib/extra/arg-nonnull.h: Delete.
4395 * gnulib/extra/c++defs.h: Delete.
4396 * gnulib/extra/warn-on-use.h: Delete.
4397 * gnulib/m4/wchar_h.m4: Delete.
4398 * gnulib/m4/wint_t.m4: Delete.
4399 * gnulib/wchar.in.h: Delete.
4401 * gnulib/extra/snippets/arg-nonnull.h: New.
4402 * gnulib/extra/snippets/c++defs.h: New.
4403 * gnulib/extra/snippets/warn-on-use.h: New.
4405 * aclocal.m4: Regenerate.
4406 * config.in: Regenerate.
4407 * configure: Regenerate.
4408 * gnulib/Makefile.in: Regenerate.
4410 2012-04-18 Pedro Alves <palves@redhat.com>
4412 Reimport the update-copyright module from gnulib
4413 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4415 * configure: Regenerate.
4416 * gnulib/Makefile.am: Update.
4417 * gnulib/Makefile.in: Regenerate.
4418 * gnulib/extra/update-copyright: Update.
4419 * gnulib/m4/gnulib-cache.m4: Update.
4420 * gnulib/m4/gnulib-comp.m4: Update.
4422 2012-04-18 Tristan Gingold <gingold@adacore.com>
4424 * configure.ac (aix): Put -lpthread into libs.
4425 * configure: Regenerate.
4427 2012-04-18 Tom Tromey <tromey@redhat.com>
4429 * linespec.c (convert_linespec_to_sals): Don't use
4431 (compare_msymbols): Arguments are minsym_and_objfile, not
4432 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4434 2012-04-18 Pedro Alves <palves@redhat.com>
4436 Revert gnulib/ part of:
4437 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4438 Copyright year update in most files (performed by copyright.sh).
4440 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4442 Fix 64-bit constants on 32-bit hosts.
4443 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4444 from unsigned long to ULONGEST.
4445 (read_signed_leb128): Change declaration return type from long to
4447 (dwarf2_const_value_attr): Change declaration parameter value from long
4449 (dwarf2_compute_name): Change variable value from long to LONGEST.
4450 (read_unsigned_leb128): Change return type, variable result and some
4451 casts from unsigned long to ULONGEST.
4452 (read_signed_leb128): Change return type, variable result and some
4453 casts from long to LONGEST.
4454 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4455 value from long to LONGEST.
4456 (dwarf2_const_value): Change variable value from long to LONGEST.
4457 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4458 plongest and hex_string.
4459 * symtab.h (struct general_symbol_info): Change ivalue from long to
4460 LONGEST, remove the comment.
4461 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4462 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4464 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4467 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4468 * ada-lang.c (ada_discrete_type_high_bound)
4469 (ada_discrete_type_low_bound): Fix function comment. Use
4470 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4471 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4472 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4473 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4474 Use TYPE_FIELD_ENUMVAL.
4475 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4476 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4477 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4478 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4480 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4481 * dwarf2read.c (process_enumeration_scope): Likewise.
4482 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4484 (class StructMainTypePrettyPrinter): Support also
4485 FIELD_LOC_KIND_ENUMVAL.
4486 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4488 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4489 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4490 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4491 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4493 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4494 accommodate enumval.
4495 (struct call_site): Adjust loc_kind to accommodate enumval.
4496 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4497 (TYPE_FIELD_ENUMVAL): New macros.
4498 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4499 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4501 * p-typeprint.c (pascal_type_print_base): Likewise.
4502 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4504 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4505 * python/py-type.c (convert_field): New variable addrstring. Use
4506 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4507 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4508 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4509 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4511 * valprint.c (generic_val_print): Likewise.
4513 2012-04-17 Doug Evans <dje@google.com>
4515 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4517 * dwarf2read.c: Whitespace fixes.
4518 (lookup_signatured_type): Tweak comment.
4519 (get_die_type_at_offset): Fix comment.
4521 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4523 * xcoffread.c (xcoff_secnum_to_sections): New function.
4524 (secnum_to_section, secnum_to_bfd_section): Reimplement
4525 using xcoff_secnum_to_sections. Rename "secnum" parameter
4527 (RECORD_MINIMAL_SYMBOL): Delete.
4528 (record_minimal_symbol): New function.
4529 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4530 by call to record_minimal_symbol and set misc_func_recorded
4531 to 1. Set last_csect_sec to the XCOFF section index instead
4532 of GDB's section_offset index. Update calls to
4533 prim_record_minimal_symbol_and_info to pass the BFD section
4536 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4538 * xcoffread.c (read_xcoff_symtab): Delete variables
4539 last_csect_val and last_csect_sec and associated code.
4541 2012-04-17 Doug Evans <dje@google.com>
4543 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4544 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4545 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4546 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4548 * cleanups.h: New file.
4549 * cleanups.c: New file.
4550 * Makefile.in (SFILES): Add cleanups.c.
4551 (HFILES_NO_SRCDIR): Add cleanups.h.
4552 (COMMON_OBS): Add cleanups.o.
4553 * defs.h (struct cleanup): Moved to cleanups.h.
4554 (do_cleanups,do_final_cleanups): Ditto.
4555 (discard_cleanups,discard_final_cleanups): Ditto
4556 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4557 (save_cleanups,save_final_cleanups): Ditto.
4558 (restore_cleanups,restore_final_cleanups): Ditto.
4559 (null_cleanup): Ditto.
4560 (make_my_cleanup,make_my_cleanup2): Ditto.
4561 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4562 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4563 (do_cleanups,do_final_cleanups): Ditto.
4564 (discard_cleanups,discard_final_cleanups): Ditto
4565 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4566 (save_cleanups,save_final_cleanups): Ditto.
4567 (restore_cleanups,restore_final_cleanups): Ditto.
4568 (null_cleanup): Ditto.
4569 (make_my_cleanup,make_my_cleanup2): Ditto.
4570 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4572 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4574 (make_cleanup_dyn_string_delete): Ditto.
4575 (make_cleanup_ui_file_delete): Ditto.
4576 (make_cleanup_ui_out_redirect_pop): Ditto.
4577 (make_cleanup_free_section_addr_info): Ditto.
4578 (make_cleanup_restore_integer): Ditto.
4579 (make_cleanup_unpush_target): Ditto.
4580 (make_cleanup_value_free_to_mark): Ditto.
4581 (make_cleanup_value_free): Ditto.
4582 (make_cleanup_free_so): Ditto.
4584 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4586 New option "set debug auto-load".
4587 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4588 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4589 (auto_load_safe_path_vec_update)
4590 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4592 (file_is_auto_load_safe): New parameters debug_fmt and ....
4593 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4594 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4595 caller by explanatory string.
4596 (_initialize_auto_load): Register "set debug auto-load".
4597 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4599 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4600 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4601 by explanatory string.
4602 * main.c (captured_main): Likewise.
4603 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4604 (source_section_scripts): Likewise.
4606 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4608 New option "set auto-load safe-path".
4609 * NEWS: New commands "set auto-load safe-path"
4610 and "show auto-load safe-path".
4611 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4612 (auto_load_safe_path, auto_load_safe_path_vec)
4613 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4614 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4615 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4616 (source_gdb_script_for_objfile): New variable is_safe. Call
4617 file_is_auto_load_safe. Return if it is not.
4618 (struct loaded_script): New field loaded.
4619 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4620 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4621 output "Missing" to "No".
4622 (_initialize_auto_load): New variable cmd. Initialize
4623 auto_load_safe_path. Register "set auto-load safe-path",
4624 "show auto-load safe-path" and "add-auto-load-safe-path".
4625 * auto-load.h (maybe_add_script): Add parameter loaded.
4626 (file_is_auto_load_safe): New declaration.
4627 * config.in: Regenerate.
4628 * configure: Regenerate.
4629 * configure.ac: New parameters --with-auto-load-safe-path
4630 and --without-auto-load-safe-path.
4631 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4632 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4633 * main.c (captured_main): Check file_is_auto_load_safe for
4635 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4636 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4637 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4640 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4642 auto-load: Implementation.
4643 * NEWS: New descriptions for "info auto-load",
4644 "info auto-load gdb-scripts", "info auto-load python-scripts",
4645 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4646 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4647 and "show auto-load-scripts". New description for "set auto-load",
4648 "show auto-load", "set auto-load gdb-scripts",
4649 "show auto-load gdb-scripts", "set auto-load python-scripts",
4650 "show auto-load python-scripts", "set auto-load local-gdbinit",
4651 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4652 "show auto-load libthread-db".
4653 * auto-load.c: Remove include python/python-internal.h. Add includes
4654 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4656 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4657 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4658 (gdbpy_global_auto_load): Rename to ...
4659 (global_auto_load): ... here.
4660 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4661 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4662 (script_language_gdb, source_gdb_script_for_objfile): New.
4663 (struct loaded_script): New field language.
4664 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4666 (maybe_add_script): Add parameter language. Drop redundant
4667 entry.full_path initialization. Initialize entry.language and
4669 (auto_load_objfile_script): Change parameter suffix to language.
4670 Remove the call of maybe_add_script.
4671 Call language->source_script_for_objfile.
4672 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4674 (collect_matching_scripts): Adjust it for
4675 struct collect_matching_scripts_data.
4676 (auto_load_info_scripts_pattern_nl): New variable.
4677 (info_auto_load_scripts): Rename to ...
4678 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4679 for struct collect_matching_scripts_data.
4680 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4681 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4682 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4683 (auto_load_info_cmdlist_get): New.
4684 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4685 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4686 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4687 "info auto-load local-gdbinit".
4688 * auto-load.h (struct script_language): New.
4689 (gdbpy_global_auto_load): Rename to ...
4690 (global_auto_load): ... here.
4691 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4692 (auto_load_local_gdbinit_loaded): New declarations.
4693 (maybe_add_script): New parameter language.
4694 (auto_load_objfile_script): Change parameter suffix to language.
4695 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4696 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4697 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4699 * linux-thread-db.c: Include auto-load.h and ctype.h.
4700 (auto_load_thread_db, show_auto_load_thread_db): New.
4701 (struct thread_db_info): New field filename.
4702 (delete_thread_db_info): Call xfree for FILENAME.
4703 (try_thread_db_load): Initialize FILENAME.
4704 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4705 if !AUTO_LOAD_THREAD_DB.
4706 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4707 (_initialize_thread_db): Install auto_load_thread_db
4708 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4709 as "info auto-load libthread-db".
4710 * main.c (captured_main): Rename gdbpy_global_auto_load to
4711 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4712 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4713 (print_gdb_help): Extend the help for 'local init file'.
4714 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4715 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4716 (auto_load_scripts): Rename to ...
4717 (auto_load_python_scripts): ... here, update the comment.
4718 (gdbpy_load_auto_script_for_objfile): New declaration.
4719 (show_auto_load_python_scripts, script_language_python)
4720 (gdbpy_load_auto_script_for_objfile): New.
4721 (source_section_scripts): Refactor the code.
4722 (load_auto_scripts_for_objfile): Rename to ...
4723 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4724 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4725 (info_auto_load_python_scripts): New.
4726 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4727 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4728 Register "set auto-load-scripts" as its deprecated alias. Register
4729 "info auto-load python-scripts". Register "info auto-load-scripts" as
4730 its deprecated alias.
4731 (load_auto_scripts_for_objfile): Rename to ...
4732 (gdbpy_load_auto_scripts_for_objfile): ... here.
4733 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4734 (gdbpy_load_auto_scripts_for_objfile): ... here.
4736 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4738 auto-load: Move files.
4739 * Makefile.in (SFILES): Add auto-load.c.
4740 (HFILES_NO_SRCDIR): Add auto-load.h.
4741 (COMMON_OBS): Add auto-load.o.
4742 (distclean): Change .gdbinit for gdb-gdb.gdb.
4743 * auto-load.c: New file, with parts from python/py-auto-load.c.
4744 * auto-load.h: New file, with parts from python/python.h.
4745 * configure: Regenerate.
4746 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4747 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4748 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4749 * main.c: Include auto-load.h.
4750 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4751 command.h, observer.h and progspace.h to auto-load.c. Add include
4753 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4754 (struct loaded_script, auto_load_pspace_data)
4755 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4756 (hash_loaded_script_entry, eq_loaded_script_entry)
4757 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4758 (maybe_add_script): Move to auto-load.c.
4759 (source_section_scripts): Change maybe_add_script parameters passing,
4760 use script_not_found_warning_print.
4761 (clear_section_scripts, auto_load_objfile_script)
4762 (auto_load_new_objfile, loaded_script_ptr)
4763 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4764 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4765 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4766 auto_load_new_objfile and info_auto_load_scripts initizations to
4768 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4770 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4773 * charset.c (find_charset_names): Remove variables ix and elt.
4774 Use free_char_ptr_vec.
4775 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4776 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4777 debugdir_end. New variable debugdir_len.
4778 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4779 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4781 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4782 and elt. Use free_char_ptr_vec.
4783 * source.c (add_path): Remove variables argv, arg and argv_index.
4784 New variables dir_vec, back_to, ix and name.
4785 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4786 make_cleanup_freeargv. Remove variable separator. Simplify the code
4787 no longer expecting DIRNAME_SEPARATOR.
4788 (openp): Remove variable p, p1 and len. New variables dir_vec,
4789 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4790 no longer expecting DIRNAME_SEPARATOR.
4791 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4792 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4794 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4795 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4796 (dirnames_to_char_ptr_vec): New functions.
4798 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4801 * source.c (add_path): Remove always true conditional 'p == 0' and
4802 unindent its code block.
4804 2012-04-17 Pedro Alves <palves@redhat.com>
4806 * gdbtypes.h (FIELD_BITPOS): Rename to ...
4807 (FIELD_BITPOS_LVAL): ... this.
4808 (FIELD_BITPOS): New.
4809 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4810 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
4811 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
4813 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
4815 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
4816 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
4817 * target-descriptions.c (tdesc_gdb_type): Adjust to use
4820 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4822 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
4823 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
4824 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
4825 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
4826 * jv-lang.c (java_link_class_type): Likewise, once.
4827 * stabsread.c (read_enum_type): Likewise.
4829 2012-04-16 Yao Qi <yao@codesourcery.com>
4831 * common/agent.c (agent_run_command): Add one more parameter `len'.
4833 * common/agent.h: Update declaration.
4834 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4836 (linux_child_static_tracepoint_markers_by_strid): Ditto.
4838 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
4841 * value.c (value_actual_type): New function.
4842 * value.h (value_actual_type): New declaration.
4843 * varobj.c (update_type_if_necessary): New function.
4844 (varobj_create): Call value_actual_type instead of
4846 (install_dynamic_child): distinct changed and type changed MI variable
4848 (update_dynamic_varobj_children): Updated for install_dynamic_child
4849 change. All callers updated.
4850 (varobj_update): Support for MI variable object type change if
4851 the value changed and RTTI is used to determine the type.
4852 (create_child_with_value): Call value_actual_type instead of
4854 (adjust_value_for_child_access): Extended with a new parameter which
4855 specify whether the given value should be casted to enclosing type.
4856 All callers updated.
4858 2012-04-14 Yao Qi <yao@codesourcery.com>
4860 Import gnulib module inttypes from git
4861 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4862 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
4863 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
4864 gnulib/m4/inttypes-pri.m4
4865 * aclocal.m4, config.in, configure: Regenerated.
4866 * gnulib/Makefile.am: Update.
4867 * gnulib/Makefile.in: Update.
4868 * gnulib/m4/gnulib-cache.m4: Update.
4869 * gnulib/m4/gnulib-comp.m4: Update.
4870 * gnulib/inttypes.in.h: New.
4871 * gnulib/m4/inttypes-pri.m4: New.
4872 * gnulib/m4/inttypes.m4: New.
4874 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
4876 * infrun.c (resume): Update PC address to the real PC after
4877 preparing to do displaced stepping.
4879 2012-04-12 Doug Evans <dje@google.com>
4881 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
4882 All callers updated.
4884 2012-04-12 Mark Kettenis <kettenis@gnu.org>
4886 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
4888 2012-04-12 Doug Evans <dje@google.com>
4890 * dwarf2read.c (create_all_type_units): Renamed from
4891 create_debug_types_hash_table. All callers updated.
4893 * dwarf2read.c (create_signatured_type_table_from_index): Rename
4894 local type_sig to sig_type, type_offset to type_offset_in_tu.
4895 (hash_signatured_type): Renamed from hash_type_signature,
4896 all callers updated.
4897 (eq_signatured_type): Renamed from eq_type_signature,
4898 all callers updated.
4899 (create_debug_types_hash_table): Rename local type_sig to sig_type.
4900 (process_enumeration_scope): Ditto.
4901 (lookup_signatured_type_at_offset): Ditto.
4902 (load_full_type_unit, read_signatured_type): Ditto.
4904 2012-04-12 Yao Qi <yao@codesourcery.com>
4906 * remote.c (async_remote_interrupt): Correct function name in
4908 (async_remote_interrupt_twice): Ditto.
4910 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
4912 * source.c (find_and_open_source): Consistently pass resulting
4913 full path through xfullpath.
4915 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4917 Provide more specific displaced-stepping memory error message.
4918 * infrun.c (displaced_step_prepare): New variable status. Call
4919 target_read_memory instead of read_memory, provide more specific
4922 2012-04-11 Tristan Gingold <gingold@adacore.com>
4925 * darwin-nat.c (darwin_execvp): Revert previous patch.
4927 2012-04-11 Tristan Gingold <gingold@adacore.com>
4930 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
4933 2012-04-11 Tristan Gingold <gingold@adacore.com>
4935 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
4938 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
4940 New command 'explore' which helps explore values and types in
4942 * NEWS: Add an entry about the new 'explore' command.
4943 * data-directory/Makefile.in: Add gdb/command/explore.py
4944 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
4945 command using the GDB Python API.
4947 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
4949 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
4950 extension in jump target calculation.
4952 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
4954 * mips-tdep.c (mips32_next_pc): Handle JALX.
4956 2012-04-10 Yao Qi <yao@codesourcery.com>
4958 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
4960 2012-04-10 Yao Qi <yao@codesourcery.com>
4962 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
4963 and gnulib/m4/gnulib-tool.m4.
4965 2012-04-10 Doug Evans <dje@google.com>
4967 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
4968 (load_partial_dies): Clarify comment.
4969 (find_partial_die): Support rereading type units.
4970 Clarify CU handling, if we know offset is in CU, don't search for the
4971 containing CU. Add comment regarding memory waste.
4973 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
4975 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
4976 i386/x32-avx and i386/x32-avx-linux.
4977 (i386/x32-expedite): New.
4978 (i386/x32-linux-expedite): Likewise.
4979 (i386/x32-avx-expedite): Likewise.
4980 (i386/x32-avx-linux-expedite): Likewise.
4981 ($(outdir)/i386/x32.dat): Likewise.
4982 ($(outdir)/i386/x32-linux.dat): Likewise.
4983 ($(outdir)/i386/x32-avx.dat): Likewise.
4984 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
4986 * features/i386/x32-avx-linux.xml: New file.
4987 * features/i386/x32-avx.xml: Likewise.
4988 * features/i386/x32-core.xml: Likewise.
4989 * features/i386/x32-linux.xml: Likewise.
4990 * features/i386/x32.xml: Likewise.
4992 * features/i386/x32-avx-linux.c: New. Generated.
4993 * features/i386/x32-avx.c: Likewise.
4994 * features/i386/x32-linux.c: Likewise.
4995 * features/i386/x32.c: Likewise.
4996 * regformats/i386/x32-avx-linux.dat: Likewise.
4997 * regformats/i386/x32-avx.dat: Likewise.
4998 * regformats/i386/x32-linux.dat: Likewise.
4999 * regformats/i386/x32.dat: Likewise.
5001 2012-04-10 Tristan Gingold <gingold@adacore.com>
5003 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5004 code to kill the inferior.
5006 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5008 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5010 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5012 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5013 (yyvsp): New defines.
5014 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5016 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5018 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5020 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5022 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5025 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5027 * sparc64-tdep.c (sparc64_store_arguments)
5028 (sparc64_store_arguments): Fix coding style.
5030 2012-04-07 Mark Kettenis <kettenis@gnu.org>
5032 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5033 complex floats, adjust some related comments and tighten a related
5035 (sparc64_extract_return_value): Handle complex floats.
5037 2012-04-07 Doug Evans <dje@google.com>
5039 * dwarf2read.c (load_partial_dies): Change condition to assert.
5041 2012-04-06 Doug Evans <dje@google.com>
5043 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5046 2012-04-05 Kevin Buettner <kevinb@redhat.com>
5048 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5050 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5051 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5054 2012-04-05 Keith Seitz <keiths@redhat.com>
5056 * linespec.c (decode_compound): Remove.
5057 (enum offset_relative_sign): New enum.
5058 (struct line_offset): New struct.
5059 (struct linespec): New struct.
5060 (struct linespec_state): Move file_symtabs,
5061 user_filename, and user_function into struct linespec.
5062 Make result an anonymous struct holding vectors of
5063 symbolp and minsym_and_objfile_d.
5064 Add language member.
5065 (enum ls_token_type): New enum.
5066 (linespec_keywords): New array.
5067 (struct ls_token): New struct.
5068 (struct ls_parser): New struct.
5069 (linespec_lexer_lex_number): New function.
5070 (linespec_lexer_lex_keyword): New function.
5071 (is_ada_operator): New function.
5072 (skip_quote_char): New function.
5073 (copy_token_string): New function.
5074 (is_closing_quote_enclosed): New function.
5075 (find_parameter_list_end): New function.
5076 (linespec_lexer_lex_string): New function.
5077 (linespec_lexer_lex_one): New function.
5078 (linespec_lexer_consume_token): New function.
5079 (linespec_lexer_peek_token): New function.
5080 (cplusplus_error): Remove unused function.
5081 (find_methods): Update comment.
5082 (find_toplevel_char): Return const.
5083 (is_objc_method_format): Remove unused function.
5084 (find_toplevel_string): New function.
5085 (is_linespec_boundary): Remove.
5086 (symbol_not_found_error): New function.
5087 (find_method_overload_end): Remove function.
5088 (unexpected_linespec_error): New function.
5089 (keep_name_info): Remove.
5090 (linespec_parse_line_offset): New function.
5091 (linespec_parse_basic): New function.
5092 (canonicalize_linespec): New function.
5093 (decode_line_internal): Remove.
5094 (create_sals_line_offset): New function adapted from
5096 (convert_linespec_to_sals): New function.
5097 (parse_linespec): New function.
5098 (linespec_parser_new): New function.
5099 (linespec_state_destructor): Change parameter type to
5100 struct linespec_state *.
5101 Add language parameter.
5102 Remove freeing of moved members.
5103 (linespec_parser_delete): New function.
5104 (decode_line_full): Use parse_linespec and linespec_parser_new.
5105 (decode_line_1): Likewise.
5106 (decode_indirect): Rename to ...
5107 (linespec_expression_to_pc): ... this and rewrite
5108 to simply find CORE_ADDR, storing this result for later
5110 (locate_first_half): Remove.
5111 (deocde_objc): Add parameter LS.
5112 Initialize new struct collect_info members.
5113 Handle minimal symbols, too.
5114 (decode_compound): Delete.
5115 (lookup_prefix_sym): Rewrite.
5116 (compare_msymbols): New function.
5117 (find_method): Rewrite.
5118 Do not call cplusplus_error.
5119 (symtabs_from_filename): Rewrite.
5120 (collect_function_symbols): Delete.
5121 (find_function_symbols): Rewrite without ARGPTR-style
5123 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5124 (decode_dollar): Adapted and renamed to ...
5125 (linespec_parse_variable): ... this.
5126 (find_linespec_symbols): New function.
5127 (decode_label): Adapted and renamed to ...
5128 (find_label_symbols): ... this.
5129 (decode_digits_list_mode): Add and use LS argument.
5130 (decode_digits_ordinary): Likewise.
5131 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5132 If in list mode, allow any symbol class. Otherwise, only
5133 permit LOC_BLOCK symbols.
5134 (minsym_found): Update comments.
5135 (search_minsyms_for_name): Do not convert the matching symbol
5136 into a SAL. Simply push the symbol and objfile into the
5138 (decode_variable): Delete. Contents adapted into
5139 find_linespec_symbols.
5141 * cp-support.c (SKIP_SPACE): Remove.
5142 (operator_tokens): Remove unused global.
5143 (cp_validate_operator): Remove.
5144 * cp-support.h (cp_validate_operator): Remove declaration.
5146 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5148 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5149 for TYPE_VPTR_FIELDNO.
5150 * valprint.c (valprint_check_validity): Make it global, move the
5151 function comment ...
5152 * value.h (valprint_check_validity): ... to this new declaration.
5154 2012-04-02 Tristan Gingold <gingold@adacore.com>
5156 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5157 the STATE32 api for i386 state.
5158 (i386_darwin_store_inferior_registers): Likewise.
5160 2012-04-02 Tristan Gingold <gingold@adacore.com>
5162 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5164 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5167 2012-04-02 Tristan Gingold <gingold@adacore.com>
5170 * darwin-nat.c (darwin_execvp): Set binary preference.
5172 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5174 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5176 2012-03-30 Tom Tromey <tromey@redhat.com>
5178 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5179 of TRY_CATCH. Fix error handling.
5180 * python/py-value.c (convert_value_from_python): Move 'old'
5181 declaration to innermost scope.
5183 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5184 Andrey Smirnov <andrew.smirnov@gmail.com>
5186 -Wshadow warning fix.
5187 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5188 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5189 Adjust code accordingly.
5191 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5193 * ada-lang.c (symbol_completion_add): Rename parameter
5194 "encoded" into "encoded_p". Ajust code and documentation
5197 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5198 Andrey Smirnov <andrew.smirnov@gmail.com>
5200 -Wshadow warning fix.
5201 * ada-lang.c (symbol_completion_add): Rename parameter
5202 "wild_match" into wild_match_p. Update code and documentation
5205 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5207 * ada-lang.c (symbol_completion_match): Rename parameter
5208 "encoded" into "encoded_p". Ajust code and documentation
5211 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5212 Andrey Smirnov <andrew.smirnov@gmail.com>
5214 -Wshadow warning fix.
5215 * ada-lang.c (symbol_completion_match): Rename parameter
5216 "wild_match" into "wild_match_p". Adjust code and function
5217 documentation accordingly.
5219 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5220 Andrey Smirnov <andrew.smirnov@gmail.com>
5222 -Wshadow warning fix.
5223 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5224 "symbol_info" into "info". Adjust code accordingly.
5225 (ada_lookup_symbol): Likewise.
5227 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5229 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5230 of this function's documentation.
5232 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5233 Andrey Smirnov <andrew.smirnov@gmail.com>
5235 -Wshadow warning fix.
5236 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5237 variable into "wild_match_p". Adjust code accordingly.
5239 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5240 Andrey Smirnov <andrew.smirnov@gmail.com>
5242 -Wshadow warning fix.
5243 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5244 parameter into "wild_match_p". Adjust code accordingly.
5245 Document this parameter in the function description.
5247 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5248 Andrey Smirnov <andrew.smirnov@gmail.com>
5250 -Wshadow warning fix.
5251 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5252 "wild_match" parameter to "wild_match_p" (-Wshadow).
5254 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5256 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5257 in function documentation.
5259 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5260 Andrey Smirnov <andrew.smirnov@gmail.com>
5262 -Wshadow warning fix.
5263 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5264 variable into wild_match_p. Adjust code accordingly.
5266 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5267 Andrey Smirnov <andrew.smirnov@gmail.com>
5269 * ada-valprint.c (ada_val_print_1): Move the code handling
5270 TYPE_CODE_ENUM inside its own lexical block. Declare
5271 variables len and val there, instead of in the function's
5272 top level block. Avoid declaring deref_val again in a way
5273 that shadows another variable of the same name declared
5274 in one of the up-level blocks. Just re-use the up-level
5277 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5279 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5280 Replace block_found argument by symbol_info. Adjust
5281 implementation accordingly. Add function documentation.
5282 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5284 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5285 * ada-exp.y (write_object_renaming): Adjust to new
5286 ada_lookup_encoded_symbol API.
5288 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5290 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5293 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5295 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5296 (v850_register_name): Add the mpu and fpu register names.
5297 (v850e_register_name): Add the mpu and fpu register names.
5298 (v850e2_register_name): New function.
5299 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5302 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5304 * NEWS: Add entry for Ada varobj support.
5306 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5308 * varobj.c (default_value_is_changeable_p): New function,
5309 extracted from varobj_value_is_changeable_p. Add declaration.
5310 (ada_value_is_changeable_p): New function, extracted from
5311 varobj_value_is_changeable_p. Add declaration.
5312 (struct language_specific): New field "value_is_changeable_p".
5313 (languages): Add entries for new field.
5314 (varobj_create): Set language before calling install_new_value.
5315 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5316 "value_is_changeable_p" language callback.
5318 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5320 * ada-varobj.h, ada-varobj.c: New files.
5321 * Makefile.in (SFILES): Add ada-varobj.c.
5322 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5323 (COMMON_OBS): Add ada-varobj.o.
5325 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5327 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5328 (struct language_specific): New field "value_has_mutated".
5329 (languages): Set field "value_has_mutated" in each entry of array.
5330 (varobj_value_has_mutated): New function.
5331 (varobj_udpdate): Add handling of type mutation.
5332 (value_of_root): Add handling of type mutation.
5333 (ada_value_has_mutated): New function.
5335 2012-03-28 Pedro Alves <palves@redhat.com>
5337 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5338 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5340 2012-03-28 Tom Tromey <tromey@redhat.com>
5342 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5343 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5346 2012-03-28 Tom Tromey <tromey@redhat.com>
5348 * .dir-locals.el: New file.
5350 2012-03-28 Pedro Alves <palves@redhat.com>
5352 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5354 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5356 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5359 2012-03-27 Pedro Alves <palves@redhat.com>
5361 Eliminate struct ui_stream.
5363 * ui-out.h (struct ui_stream): Delete.
5364 (ui_out_field_stream): Adjust prototype.
5365 (ui_out_stream_new, ui_out_stream_delete)
5366 (make_cleanup_ui_out_stream_delete): Delete declarations.
5367 * ui-out.c (ui_out_field_stream): Change prototype to take a
5368 ui_file instead of a ui_stream. Adjust.
5369 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5370 (make_cleanup_ui_out_stream_delete): Delete.
5371 * breakpoint.c (print_breakpoint_location)
5372 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5373 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5374 * disasm.c (dump_insns): Ditto.
5375 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5377 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5378 ui_stream/ui_out_stream_new.
5379 * infcmd.c (print_return_value): Ditto.
5380 * osdata.c (info_osdata_command): Don't allocate a local
5382 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5383 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5384 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5385 allocate a local ui_stream.
5386 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5387 instead of ui_stream/ui_out_stream_new.
5388 (list_args_or_locals): Don't allocate a local ui_stream.
5389 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5390 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5391 ui_stream/ui_out_stream_new.
5392 * cli/cli-setshow.c (do_setshow_command): Ditto.
5394 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5396 * arm-linux-tdep.c (arm_linux_init_abi): Call
5397 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5398 * arm-tdep.c (arm_process_record): New function.
5399 (deallocate_reg_mem): New function.
5400 (decode_insn): New function.
5401 (thumb_record_branch): New function.
5402 (thumb_record_ldm_stm_swi(): New function.
5403 (thumb_record_misc): New function.
5404 (thumb_record_ld_st_stack): New function.
5405 (thumb_record_ld_st_imm_offset): New function.
5406 (thumb_record_ld_st_reg_offset(): New function.
5407 (thumb_record_add_sub_cmp_mov): New function.
5408 (thumb_record_shift_add_sub): New function.
5409 (arm_record_coproc_data_proc): New function.
5410 (arm_record_coproc): New function.
5411 (arm_record_b_bl): New function.
5412 (arm_record_ld_st_multiple): New function.
5413 (arm_record_ld_st_reg_offset): New function.
5414 (arm_record_ld_st_imm_offset): New function.
5415 (arm_record_data_proc_imm): New function.
5416 (arm_record_data_proc_misc_ld_str): New function.
5417 (arm_record_extension_space): New function.
5418 (arm_record_strx): New function.
5419 (sbo_sbz): New function.
5420 (struct insn_decode_record): New structure for arm insn record.
5421 (REG_ALLOC): New macro for reg allocations.
5422 (MEM_ALLOC): New macro for memory allocations.
5423 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5425 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5427 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5428 (store_register): Likewise.
5430 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5432 * MAINTAINERS (Write After Approval): Add myself to the list.
5434 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5436 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5437 Describe also the option "auto".
5439 2012-03-22 Richard Henderson <rth@redhat.com>
5441 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5442 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5444 2012-03-22 Richard Henderson <rth@redhat.com>
5446 * jit.c (jit_read_code_entry): Compute alignment and offset of
5447 int64_t member before computing entry_size.
5449 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5451 Python scripting: Add new method Value.referenced_value to
5452 gdb.Value which can dereference pointer as well as reference
5454 * NEWS: Add entry under 'Python scripting' about the new method
5455 Value.referenced_value on gdb.Value objects.
5456 * python/py-value.c (valpy_referenced_value): New function
5457 defining a new method on gdb.Value objects which can dereference
5458 pointer and reference values.
5460 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5462 * MAINTAINERS (Write After Approval): Add myself to the list.
5464 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5466 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5467 in addition to "main".
5469 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5471 * expression.h (op_name): Add declaration.
5472 * expprint.c (op_name): Remove declaration. Make non-static.
5473 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5475 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5477 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5479 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5480 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5481 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5482 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5483 (linux_nat_get_siginfo): Likewise.
5484 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5485 (linux_nat_get_siginfo): Likewise.
5486 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5487 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5488 * procfs.c (gdb_siginfo_t): Likewise.
5490 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5492 * .gitignore: Ignore more files.
5494 2012-03-20 Pedro Alves <palves@redhat.com>
5496 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5499 2012-03-20 Yao Qi <yao@codesourcery.com>
5501 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5504 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5506 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5507 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5508 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5510 * dwarf2expr.h (cu_offset, sect_offset): New types.
5511 (struct dwarf_expr_context_funcs) <dwarf_call>
5512 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5514 (struct dwarf_expr_context) <len>: Improve the comment.
5515 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5516 cu_offset and sect_offset.
5517 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5518 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5519 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5520 * dwarf2loc.h: Include dwarf2expr.h.
5521 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5523 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5524 Improve the comment.
5525 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5526 (struct signatured_type, struct line_header, struct partial_die_info)
5527 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5528 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5529 (get_die_type_at_offset, create_cus_from_index)
5530 (create_signatured_type_table_from_index, dw2_get_file_names)
5531 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5532 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5533 (create_debug_types_hash_table, process_psymtab_comp_unit)
5534 (load_partial_comp_unit, create_all_comp_units)
5535 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5536 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5537 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5538 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5539 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5540 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5541 (find_partial_die, read_attribute_value, lookup_die_type)
5542 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5543 (is_ref_attr): New function comment.
5544 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5545 Use cu_offset and sect_offset.
5546 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5547 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5548 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5549 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5550 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5551 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5552 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5555 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5558 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5559 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5561 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5563 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5565 * NEWS: Describe new options --init-command=FILE, -ix and
5566 --init-eval-command=COMMAND, -iex.
5567 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5568 CMDARG_INIT_COMMAND.
5569 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5570 "init-command", "init-eval-command", "ix" and "iex" to the variable
5571 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5572 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5573 (print_gdb_help): Describe --init-command=FILE, -ix and
5574 --init-eval-command=COMMAND, -iex.
5576 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5579 * main.c (struct cmdarg): Move it here from main. Add more comments.
5580 (cmdarg_s, VEC (cmdarg_s)): New.
5581 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5582 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5583 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5584 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5587 2012-03-19 Tom Tromey <tromey@redhat.com>
5589 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5591 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5594 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5597 2012-03-16 Chris January <chris.january@allinea.com>
5599 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5602 2012-03-16 Chris January <chris.january@allinea.com>
5604 * source.c (add_path): Use memmove instead of strcpy because the
5607 2012-03-16 Joel Brobecker <brobecker@adacore.com>
5609 * value.h (set_value_parent): Add declaration.
5610 * value.c (set_value_parent): New function.
5611 (value_address): If VALUE->PARENT is not NULL, then use it as
5612 the base address instead of VALUE->LOCATION.address.
5613 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5614 the same as OBJ's address. Adjust V's offset accordingly.
5617 2012-03-16 Gary Benson <gbenson@redhat.com>
5619 PR breakpoints/10738
5620 * dwarf2read.c (use_deprecated_index_sections): New global.
5621 (struct partial_die_info): New member may_be_inlined.
5622 (read_partial_die): Set may_be_inlined where appropriate.
5623 (add_partial_subprogram): Add partial symbols for partial
5624 DIEs that may be inlined.
5625 (new_symbol_full): Add inlined subroutines to the current
5627 (write_psymtabs_to_index): Bump version number.
5628 (dwarf2_read_index): Read only version 6 indices unless
5629 use_deprecated_index_sections is set.
5630 * linespec.c (symbol_and_data_callback): New structure.
5631 (iterate_inline_only): New function.
5632 (iterate_over_all_matching_symtabs): New argument
5633 "include_inline". If nonzero, also call the callback for
5634 symbols representing inlined subroutines.
5635 (lookup_prefix_sym): Pass extra argument to the above.
5636 (find_function_symbols): Likewise.
5637 (add_matching_symbols_to_info): Likewise.
5638 * NEWS: Mention that GDB can now set breakpoints on inlined
5641 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5643 * p-typeprint.c (pascal_type_print_method_args):
5644 Fix display of parameter of methods.
5646 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5648 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5649 Add missing prototype.
5651 2012-03-16 Yao Qi <yao@codesourcery.com>
5652 Jan Kratochvil <jan.kratochvil@redhat.com>
5654 Fix false compilation warning.
5655 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5657 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5658 Pedro Alves <pedro@codesourcery.com>
5660 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5661 (arm_register_g_packet_guesses): New function.
5662 (arm_gdbarch_init): Don't force a target description with
5663 registers when the executable is detected as M-profile. Instead
5664 set gdbarch->tdep->is_m. Register `g' packet guesses.
5665 (_initialize_arm_tdep): Initialize the new target description.
5666 * features/arm-with-m-fpa-layout.xml: New description.
5667 * features/arm-with-m-fpa-layout.c: New, generated.
5669 2012-03-15 Joel Brobecker <brobecker@adacore.com>
5671 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5672 Update function description.
5673 (insert_bp_location): Do not wipe bl->target_info out.
5674 * mem-break.c: #include "gdb_string.h".
5675 (default_memory_insert_breakpoint): Do not call target_read_memory
5676 with a pointer to the breakpoint's shadow_contents buffer. Use
5677 a local buffer instead.
5678 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5680 2012-03-15 Tom Tromey <tromey@redhat.com>
5682 * NEWS: Mention "info vtbl", not "info vtable".
5683 * cp-support.c (info_vtbl_command): Fix comment.
5684 (_initialize_cp_support): Fix text.
5686 2012-03-15 Tom Tromey <tromey@redhat.com>
5688 * cp-valprint.c (cp_print_value_fields): Use
5689 print_function_pointer_address for vtable slot.
5691 2012-03-15 Tom Tromey <tromey@redhat.com>
5693 * gnu-v3-abi.c (struct value_and_voffset): New.
5694 (hash_value_and_voffset, eq_value_and_voffset)
5695 (compare_value_and_voffset, compute_vtable_size)
5696 (print_one_vtable, gnuv3_print_vtable): New functions.
5697 (init_gnuv3_ops): Initialize 'print_vtable' field.
5698 * cp-support.c (info_vtbl_command): New function.
5699 (_initialize_cp_support): Add "info vtbl".
5700 * cp-abi.h (cplus_print_vtable): Declare.
5701 (struct cp_abi_ops) <print_vtable>: New field.
5702 * cp-abi.c (cplus_print_vtable): New function.
5705 2012-03-15 Tom Tromey <tromey@redhat.com>
5707 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5708 iterate_over_symbols.
5710 2012-03-14 Doug Evans <dje@google.com>
5712 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5713 DW_OP_GNU_parameter_ref.
5715 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5717 Fix double prompt of 'interpreter-exec mi'.
5718 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5719 (mi_interpreter_resume): use it.
5720 (mi_execute_command_input_handler): New function.
5721 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5722 mi_execute_command_input_handler.
5724 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
5726 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5728 (darwin_debug_port_info): Make static.
5729 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5730 * machoread.c (_initialize_machoread): Add prototype.
5731 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5732 (i386_darwin_set_control, i386_darwin_get_control)
5733 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5734 i386_darwin_get_status, i386_darwin_get_control):
5735 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5737 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5739 * ax-gdb.c (gen_usual_unary): Remove special handling of
5740 enum and bool types.
5742 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5744 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5746 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5748 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5750 2012-03-13 Chris January <chris.january@allinea.com>
5752 * aix-thread.c (fill_sprs): Store the floating point registers
5753 at the correct offsets into vals.
5755 2012-03-13 Doug Evans <dje@google.com>
5757 * NEWS: Mention symbol-reloading has been deleted.
5758 * symfile.c (symbol_reloading): Delete.
5759 (show_symbol_reloading): Delete.
5760 (_initialize_symfile): Delete set/show symbol-reloading.
5762 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5763 read_in_chain until we have successfully read it in.
5764 (load_full_comp_unit): Ditto.
5765 (read_signatured_type): Add comment.
5767 2012-03-13 Chris January <chris.january@allinea.com>
5769 * stabsread.c (fix_common_block): Change type of valu argument
5772 2012-03-13 Chris January <chris.january@allinea.com>
5774 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5777 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5779 * common/linux-procfs.c (linux_proc_get_int): New, from
5780 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5782 (linux_proc_get_tgid): Only call linux_proc_get_int.
5783 (linux_proc_get_tracerpid): New.
5784 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5785 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5786 linux_proc_pid_has_state.
5787 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5788 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5789 (linux_ptrace_attach_warnings): New.
5790 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5792 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5793 (linux_nat_attach): New variables ex, buffer, message and message_s.
5794 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5796 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5798 * Makefile.in (linux-ptrace.o): New.
5799 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5801 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5802 * common/linux-ptrace.c: New file.
5803 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5804 * config/arm/linux.mh: Likewise.
5805 * config/i386/linux.mh: Likewise.
5806 * config/i386/linux64.mh: Likewise.
5807 * config/ia64/linux.mh: Likewise.
5808 * config/m32r/linux.mh: Likewise.
5809 * config/m68k/linux.mh: Likewise.
5810 * config/mips/linux.mh: Likewise.
5811 * config/pa/linux.mh: Likewise.
5812 * config/powerpc/linux.mh: Likewise.
5813 * config/powerpc/ppc64-linux.mh: Likewise.
5814 * config/powerpc/spu-linux.mh: Likewise.
5815 * config/s390/s390.mh: Likewise.
5816 * config/sparc/linux.mh: Likewise.
5817 * config/sparc/linux64.mh: Likewise.
5818 * config/xtensa/linux.mh: Likewise.
5819 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
5820 common/linux-procfs.c.
5821 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
5823 2012-03-13 Hui Zhu <teawater@gmail.com>
5824 Pedro Alves <palves@redhat.com>
5826 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
5827 CREATE_BREAKPOINT_FLAGS_INSERTED.
5828 (create_breakpoint_sal, create_breakpoints_sal)
5829 (base_breakpoint_create_breakpoints_sal)
5830 (tracepoint_create_breakpoints_sal)
5831 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
5833 (break_command_1, handle_gnu_v3_exceptions, trace_command)
5834 (ftrace_command, strace_command): Adjust.
5835 (create_tracepoint_from_upload): Pass
5836 CREATE_BREAKPOINT_FLAGS_INSERTED.
5837 * breakpoint.h (enum breakpoint_create_flags): New.
5838 (create_breakpoint): New flags parameter.
5839 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
5840 * python/py-breakpoint.c (bppy_init): Adjust.
5841 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
5842 * spu-tdep.c (spu_catch_start): Adjust.
5844 2012-03-13 Pedro Alves <palves@redhat.com>
5845 Hui Zhu <teawater@gmail.com>
5846 Yao Qi <yao@codesourcery.com>
5848 * remote.c (struct remote_state): New field `starting_up'.
5849 (remote_start_remote): Set and clear it.
5850 (remote_can_download_tracepoint): If starting up, return false.
5852 2012-03-13 Yao Qi <yao@codesourcery.com>
5854 * inferior.h (struct inferior): Remove fields any_syscall_count,
5855 syscalls_counts and total_syscalls_count. Move them to new
5856 struct catch_syscall_inferior_data in breakpoint.c.
5857 * breakpoint.c: Call DEF_VEC_I(int).
5858 (struct catch_syscall_inferior_data): New.
5859 (get_catch_syscall_inferior_data): New.
5860 (catch_syscall_inferior_data_cleanup): New.
5861 (insert_catch_syscall): Update to access data in
5862 struct catch_syscall_inferior_data.
5863 (insert_catch_syscall): Likewise.
5864 (remove_catch_syscall): Likewise.
5865 (remove_catch_syscall): Likewise.
5866 (is_syscall_catchpoint_enabled): Likewise.
5867 (add_catch_command): Likewise.
5868 (_initialize_breakpoint): Register cleanup.
5869 * breakpoint.h: Removed DEF_VEC_I(int).
5870 * dwarf2loc.c: Call DEF_VEC_I(int).
5871 * mi/mi-main.c: Likewise.
5873 2012-03-12 Mark Kettenis <kettenis@gnu.org>
5875 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
5877 2012-03-12 Chris January <chris.january@allinea.com>
5879 * aix-thread.c (_initialize_aix_thread): Add prototype.
5880 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
5881 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
5883 2012-03-12 Joel Brobecker <brobecker@adacore.com>
5885 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
5886 include of "amd64-nat.h".
5888 2012-03-12 Tom Tromey <tromey@redhat.com>
5890 * buildsym.c (record_pending_block): Now static.
5891 * buildsym.h: (record_pending_block): Remove.
5893 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
5895 * amd64bsd-nat.c: Include amd64bsd-nat.h.
5897 2012-03-09 Tom Tromey <tromey@redhat.com>
5899 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
5900 producer_is_gxx_lt_4_6>: New fields.
5901 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
5903 2012-03-09 Tom Tromey <tromey@redhat.com>
5905 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
5907 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5909 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
5912 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5914 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
5916 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5918 Fix -Wmissing-prototypes build.
5919 * arm-linux-nat.c (get_thread_id): Make it static.
5920 * xtensa-linux-nat.c (get_thread_id): Likewise.
5922 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5924 * server.c (process_point_options): If a conditional expression
5925 is found, only print a message if remote_debug is nonzero.
5927 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
5929 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
5930 of internal error for unknown/unsupported types.
5932 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5934 Fix CU relative vs. absolute DIE offsets.
5935 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
5936 offset to offset_in_cu.
5937 * dwarf2read.c (process_enumeration_scope): Add CU offset to
5939 (dwarf2_fetch_die_location_block): Rename parameter offset to
5940 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
5942 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5944 * libunwind-frame.c: Rename to ...
5945 * ia64-libunwind-tdep.c: ... here.
5946 * libunwind-frame.h: Rename to ...
5947 * ia64-libunwind-tdep.h: ... here.
5948 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
5949 ia64-libunwind-tdep.h.
5950 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
5951 * README (--with-libunwind): Rename to ...
5952 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
5953 * config.in: Regenerate.
5954 * configure: Regenerate.
5955 * configure.ac: New option --with-libunwind-ia64, make the
5956 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
5957 Remove AC_DEFINE for HAVE_LIBUNWIND.
5958 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
5959 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
5960 Rename libunwind-frame in the general comment.
5961 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
5962 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
5963 Move forward declarations inside #ifndef. Rename libunwind-frame in
5964 the general comment.
5965 * ia64-tdep.c: Rename libunwind-frame.h #include to
5966 ia64-libunwind-tdep.h.
5967 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
5968 (ia64_libunwind_descr): Rename libunwind-frame to
5969 ia64-libunwind-tdep in these function comments.
5970 * ia64-tdep.h: Rename libunwind-frame.h #include to
5971 ia64-libunwind-tdep.h.
5972 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
5973 ia64-libunwind-tdep in that data comment.
5975 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5977 * libunwind-frame.h (struct frame_unwind): New declaration.
5979 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5981 * breakpoint.c (_initialize_breakpoint): Fix error in help of
5982 "set breakpoint condition-evaluation" command.
5984 2012-03-08 Tristan Gingold <gingold@adacore.com>
5986 * sparc-stub.c: Move to stubs/
5987 * sh-stub.c: Likewise.
5988 * m68k-stub.c: Likewise.
5989 * m32r-stub.c: Likewise.
5990 * i386-stub.c: Likewise.
5992 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
5994 * m68klinux-tdep.c (m68k_linux_init_abi): Register
5995 linux_get_siginfo_type.
5997 * m68klinux-nat.c: Include "gdb_proc_service.h".
5998 (PTRACE_GET_THREAD_AREA): Define.
5999 (ps_get_thread_area): New function.
6001 2012-03-08 Yao Qi <yao@codesourcery.com>
6003 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6005 (remote_query_attached): Likewise.
6006 (remote_static_tracepoint_marker_at): Likewise.
6007 (remote_set_permissions): Likewise.
6008 (remote_detach_1, extended_remote_attach_1): Likewise.
6009 (send_g_packet, remote_vkill): Likewise.
6010 (extended_remote_disable_randomization): Likewise.
6011 (remote_add_target_side_condition): Likewise.
6012 (remote_insert_breakpoint): Likewise.
6013 (remote_remove_breakpoint): Likewise.
6014 (remote_insert_watchpoint): Likewise.
6015 (remote_remove_watchpoint): Likewise.
6016 (remote_insert_hw_breakpoint): Likewise.
6017 (remote_insert_hw_breakpoint): Likewise.
6018 (remote_remove_hw_breakpoint): Likewise.
6019 (remote_download_command_source): Likewise.
6020 (remote_download_tracepoint): Likewise.
6021 (remote_download_trace_state_variable): Likewise.
6022 (remote_disable_tracepoint): Likewise.
6023 (remote_trace_set_readonly_regions): Likewise.
6024 (remote_get_tracepoint_status): Likewise.
6025 (remote_trace_find): Likewise.
6026 (remote_get_trace_state_variable_value): Likewise.
6027 (remote_set_disconnected_tracing): Likewise.
6028 (remote_set_circular_trace_buffer): Likewise.
6029 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6030 (remote_use_agent): Likewise.
6031 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6034 2012-03-07 Pedro Alves <palves@redhat.com>
6036 * NEWS: Mention QProgramSignals.
6037 * inferior.h (update_signals_program_target): Declare.
6038 * infrun.c: (update_signals_program_target): New.
6039 (handle_command): Update the target of the new program signals
6041 * remote.c (PACKET_QProgramSignals): New enum.
6042 (last_program_signals_packet): New global.
6043 (remote_program_signals): New.
6044 (remote_start_remote): Update the target with the program signals
6046 (remote_protocol_features): Add entry for QPassSignals.
6047 (remote_open_1): Free anc clear last_program_signals_packet.
6048 (init_remote_ops): Install remote_program_signals.
6049 * target.c (update_current_target): Adjust.
6050 (target_program_signals): New.
6051 * target.h (struct target_ops) <to_program_signals>: New field.
6052 (target_program_signals): Declare.
6054 2012-03-07 Pedro Alves <palves@redhat.com>
6056 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6059 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6061 * m68klinux-nat.c (getregs_supplies): Make static.
6062 (getfpregs_supplies): Likewise.
6063 (have_ptrace_getregs): Likewise.
6065 2012-03-06 Joel Brobecker <brobecker@adacore.com>
6067 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6068 in call to get_die_type_at_offset.
6070 2012-03-06 Stan Shebs <stan@codesourcery.com>
6072 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6073 * mi/mi-cmd-disas.c: Ditto.
6074 * mi/mi-cmd-env.c: Ditto.
6075 * mi/mi-cmd-file.c: Ditto.
6076 * mi/mi-cmd-stack.c: Ditto.
6077 * mi/mi-cmd-target.c: Ditto.
6078 * mi/mi-cmd-var.c: Ditto.
6079 * mi/mi-cmds.c: Ditto.
6080 * mi/mi-cmds.h: Ditto.
6081 * mi/mi-console.c: Ditto.
6082 * mi/mi-getopt.c: Ditto.
6083 * mi/mi-getopt.h: Ditto.
6084 * mi/mi-interp.c: Ditto.
6085 * mi/mi-main.c: Ditto.
6086 * mi/mi-out.c: Ditto.
6087 * mi/mi-parse.c: Ditto.
6088 * mi/mi-parse.h: Ditto.
6089 * mi/mi-symbol-cmds.c: Ditto.
6091 * mi/mi-getopt.h: Move mi_opt struct up.
6092 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6094 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6096 2012-03-06 Tom Tromey <tromey@redhat.com>
6098 * proc-service.c (ps_pglobal_lookup): Set the current program
6101 2012-03-06 Pedro Alves <palves@redhat.com>
6103 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6105 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6107 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6109 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6112 * common/linux-osdata.c (linux_common_core_of_thread): New function
6114 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6115 call by linux_common_core_of_thread.
6116 (linux_nat_core_of_thread_1): Remove.
6117 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6118 * linux-thread-db.c: Include linux-osdata.h.
6119 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6120 linux_common_core_of_thread.
6122 2012-03-05 Tom Tromey <tromey@redhat.com>
6124 * value.c (value_primitive_field): Don't fetch contents for
6127 2012-03-05 Tom Tromey <tromey@redhat.com>
6129 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6131 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6133 * s390-nat.c: Include "gregset.h".
6135 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6137 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6138 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6139 (libunwind_load): New variable so_error, use it for dlerror. Try to
6140 load also LIBUNWIND_SO_7.
6142 2012-03-05 Pedro Alves <palves@redhat.com>
6144 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6145 is not NULL, and remove resulting dead code.
6147 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6149 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6150 prologue to sh_analyze_prologue.
6151 (sh_analyze_prologue): Make better use of such an upper limit, and
6152 generally be more cautious about accessing memory.
6154 2012-03-05 Tom Tromey <tromey@redhat.com>
6156 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6157 _initialize_ia64_hpux_tdep.
6159 2012-03-05 Pedro Alves <palves@redhat.com>
6163 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6164 the register state is clear, supply explicit zero, instead of
6165 marking the register unavailable.
6167 2012-03-05 Tristan Gingold <gingold@adacore.com>
6169 * NEWS: Mention OpenVMS ia64 new target.
6171 2012-03-05 Tristan Gingold <gingold@adacore.com>
6173 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6174 (ia64_unw_accessors, ia64_unw_rse_accessors)
6175 (ia64_libunwind_descr): Declare.
6176 * ia64-vms-tdep.c: New file.
6177 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6178 (ia64_libunwind_descr): Make them public.
6179 * configure.tgt: Add ia64-*-*vms*.
6180 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6181 (ALLDEPFILES): Add ia64-vms-tdep.c
6183 2012-03-05 Tristan Gingold <gingold@adacore.com>
6185 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6186 * remote.c (PACKET_qXfer_uib): New enum value.
6187 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6188 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6189 (_initialize_remote): Call add_packet_config_cmd for
6192 2012-03-05 Tristan Gingold <gingold@adacore.com>
6194 * osabi.c (gdb_osabi_names): Add OpenVMS.
6195 (generic_elf_osabi_sniffer): Likewise.
6196 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6198 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6200 Removed unused code.
6201 * libunwind-frame.c (libunwind_frame_unwind)
6202 (libunwind_frame_base_address): Remove.
6203 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6205 2012-03-04 Yao Qi <yao@codesourcery.com>
6207 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6208 remove trailing new line.
6209 (agent_run_command, agent_run_command): Add _ markup.
6210 (agent_capability_check): Likewise.
6212 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6214 * breakpoint.c (set_condition_evaluation_mode): Set
6215 CONDITION_EVALUATION_MODE unconditionally.
6217 2012-03-03 Yao Qi <yao@codesourcery.com>
6219 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6220 * common/agent.h: Update declaration.
6221 * inf-child.c (inf_child_use_agent): New.
6222 (inf_child_can_use_agent): New.
6223 (inf_child_target): Initialize fields `to_use_agent'
6224 and `to_can_use_agent'.
6225 * agent.c (agent_new_objfile): New.
6226 (_initialize_agent): Add agent_new_objfile to new_objfile
6229 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6231 (linux_target_install_ops): Initialize field
6232 `to_static_tracepoint_markers_by_strid'.
6233 * remote.c (free_current_marker): Move it to ...
6234 * tracepoint.c (free_current_marker): ... here. New.
6235 (cleanup_target_stop): New.
6236 * tracepoint.h: Declare free_current_marker.
6237 * NEWS: Add one entry about `info static-tracepoint-marker'.
6239 2012-03-03 Yao Qi <yao@codesourcery.com>
6241 * common/agent.c (agent_loaded_p): New.
6242 (agent_look_up_symbols): New global.
6243 * common/agent.h: Declare agent_loaded_p.
6245 2012-03-03 Yao Qi <yao@codesourcery.com>
6247 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6248 (agent_capability_check, agent_capability_invalidate): New.
6249 (symbol_list): New array element.
6250 * common/agent.h (enum agent_capa): New.
6251 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6253 2012-03-03 Yao Qi <yao@codesourcery.com>
6255 * target.h (struct target_ops) <to_use_agent>: New field.
6256 (struct target_ops) <to_can_use_agent>: New field.
6257 (target_use_agent, target_can_use_agent): New macro.
6258 * target.c (update_current_target): Update.
6259 * remote.c: New enum `PACKET_QAgent'.
6260 (remote_protocol_features): Add a new element.
6261 (remote_use_agent, remote_can_use_agent): New.
6262 (init_remote_ops): Initialize field `can_use_agent' with
6263 remote_can_use_agent. Intiailize field `use_agent' with
6265 * common/agent.c (use_agent): New global.
6266 * common/agent.h: Declare it.
6267 * tracepoint.c (info_static_tracepoint_markers_command): Add
6269 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6270 (COMMON_OBS): Add common/agent.o and agent.o
6271 (common-agent.o): New rule.
6274 2012-03-03 Yao Qi <yao@codesourcery.com>
6276 * common/agent.c: New.
6277 * common/agent.h: New.
6278 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6280 * configure, configh.in: Regenerated.
6282 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6284 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6285 unless it exists for this architecture.
6287 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6289 * language.h (struct language_defn): New "method" la_read_var_value.
6290 * findvar.c: #include "language.h".
6291 (default_read_var_value): Renames read_var_value. Rewrite
6292 function description.
6293 (read_var_value): New function.
6294 * value.h (default_read_var_value): Add prototype.
6295 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6297 (ada_language_defn): Add entry for la_read_var_value.
6298 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6299 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6300 language_defn structures to add entry for new la_read_var_value
6303 2012-03-02 Tom Tromey <tromey@redhat.com>
6304 Pedro Alves <palves@redhat.com>
6306 PR breakpoints/13776:
6307 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6309 (delete_longjmp_breakpoint_at_next_stop): New.
6310 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6311 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6312 before deleting the inferior. Add comments.
6313 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6314 breakpoints immediately, but only on next stop. Move that code
6315 next to where we mark other breakpoints for deletion.
6317 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6319 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6321 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6324 2012-03-02 Pedro Alves <palves@redhat.com>
6326 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6328 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6330 Fix -Wmissing-prototypes build.
6331 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6332 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6333 (gdbsim_has_memory): Likewise.
6335 2012-03-02 Yao Qi <yao@codesourcery.com>
6337 Fix -Wmissing-prototypes build.
6338 * charset.c (phony_iconv_open): Make static.
6339 (phony_iconv_close, phony_iconv): Likewise.
6340 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6341 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6343 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6344 * ser-mingw.c (create_select_thread): Make static.
6345 * windows-termcap.c (tgetent): New prototype.
6346 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6348 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6350 Fix -Wmissing-prototypes build.
6351 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6352 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6353 (_initialize_loadable): New prototypes.
6355 2012-03-02 Doug Evans <dje@google.com>
6357 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6358 abbrev table, read_comp_unit will do it.
6360 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6362 Fix -Wmissing-prototypes build.
6363 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6364 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6365 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6366 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6367 (_initialize_arm_symbian_tdep): New prototype.
6368 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6369 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6370 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6372 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6373 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6375 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6376 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6377 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6379 * moxie-tdep.c (moxie_process_record): Likewise.
6380 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6381 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6382 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6383 (_initialize_rl78_tdep): New prototype.
6384 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6385 (_initialize_rx_tdep): New prototype.
6386 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6387 (_initialize_darwin_solib): New prototype.
6388 * solib-spu.c: Include solib-spu.h.
6389 (_initialize_spu_solib): New prototype.
6390 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6391 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6392 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6393 (tic6x_software_single_step): Make it static.
6394 (_initialize_tic6x_tdep): New prototype.
6396 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6398 Fix -Wmissing-prototypes build.
6399 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6400 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6402 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6404 Fix -Wmissing-prototypes build.
6405 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6406 (frv_have_stopped_data_address): Remove.
6408 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6410 Fix -Wmissing-prototypes build.
6411 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6412 * sh-tdep.c: Include sh64-tdep.h.
6413 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6414 * sh64-tdep.c: Include sh64-tdep.h.
6415 * sh64-tdep.h: New file.
6417 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6419 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6421 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6423 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6424 sp_regnum once the gdbarch_init_osabi hook has been called.
6426 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6428 * mips-tdep.c (mips32_bc1_pc): New function.
6429 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6430 BPOSGE32 and BPOSGE64 instructions.
6431 (deal_with_atomic_sequence): Likewise.
6432 (mips32_instruction_has_delay_slot): Likewise.
6434 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6435 Chris Dearman <chris@mips.com>
6436 Maciej W. Rozycki <macro@codesourcery.com>
6437 Joseph Myers <joseph@codesourcery.com>
6439 * features/mips-dsp.xml: New file.
6440 * features/mips64-dsp.xml: New file.
6441 * features/mips-dsp-linux.xml: New file.
6442 * features/mips64-dsp-linux.xml: New file.
6443 * features/Makefile (WHICH): Add mips-dsp-linux and
6445 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6446 * features/mips-dsp-linux.c: New file.
6447 * features/mips64-dsp-linux.c: New file.
6448 * regformats/mips-dsp-linux.dat: New file.
6449 * regformats/mips64-dsp-linux.dat: New file.
6450 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6452 (mips64_linux_register_addr): Likewise.
6453 (mips64_linux_regsets_fetch_registers): Likewise.
6454 (mips64_linux_regsets_store_registers): Likewise.
6455 (mips64_linux_fetch_registers): Update call to
6456 mips64_linux_regsets_fetch_registers.
6457 (mips64_linux_store_registers): Update call to
6458 mips64_linux_regsets_store_registers.
6459 (mips_linux_read_description): Probe for DSP registers.
6460 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6461 and initialize_tdesc_mips64_dsp_linux.
6462 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6463 Remove padding of no longer used embedded register slots.
6464 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6465 (MIPS_RESTART_REGNUM): Redefine enum value.
6466 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6468 (mips_tx39_reg_names): Likewise.
6469 (mips_linux_reg_names): New array of register names for Linux
6471 (mips_register_name): Check for a null pointer in
6472 mips_processor_reg_names and return an empty string.
6473 (mips_register_type): Exclude embedded registers for the IRIX
6475 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6476 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6478 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6479 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6480 (mips_gdbarch_init): Likewise. Initialize internal register
6481 indices for the Linux ABI. Use dynamic numbers to refer to
6482 registers, as applicable, while parsing the target description.
6483 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6485 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6487 * frame.h (read_frame_register_unsigned): Fix typo in function
6490 2012-03-01 Pedro Alves <palves@redhat.com>
6492 * jit-reader.in [!__cplusplus]
6493 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6495 2012-03-01 Pedro Alves <palves@redhat.com>
6497 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6498 * configure: Regenerate.
6500 2012-03-01 Pedro Alves <palves@redhat.com>
6502 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6503 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6504 (ftrace_command, strace_command): Make static.
6505 * d-lang.c (_initialize_d_language): Declare.
6506 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6507 * dwarf2loc.c (_initialize_dwarf2loc):
6508 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6509 * exec.c (exec_get_section_table): Make static.
6510 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6511 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6512 * inferior.c (remove_inferior_command, add_inferior_command)
6513 (clone_inferior_command): Make static.
6514 * linux-nat.c (linux_nat_thread_address_space)
6515 (linux_nat_core_of_thread): Make static.
6516 * linux-tdep.c (_initialize_linux_tdep): Declare.
6517 * objc-lang.c (_initialize_objc_lang): Declare.
6518 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6520 (_initialize_opencl_language): Declare.
6521 * record.c (_initialize_record): Declare.
6522 * remote.c (demand_private_info, remote_get_tib_address)
6523 (remote_supports_cond_tracepoints)
6524 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6526 * skip.c (_initialize_step_skip): Declare.
6527 * symtab.c (skip_prologue_using_lineinfo): Make static.
6528 * tracepoint.c (delete_trace_state_variable)
6529 (trace_variable_command, delete_trace_variable_command)
6530 (get_uploaded_tsv, find_matching_tracepoint_location)
6531 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6533 * value.c (pack_unsigned_long): Make static.
6534 * varobj.c (varobj_ensure_python_env): Make static.
6535 * windows-tdep.c (_initialize_windows_tdep): Declare.
6536 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6538 2012-03-01 Pedro Alves <palves@redhat.com>
6540 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6542 (linux_init_abi): Install it as has_shared_address_space gdbarch
6545 2012-03-01 Pedro Alves <palves@redhat.com>
6547 * observer.c (observer_test_first_notification_function)
6548 (observer_test_second_notification_function)
6549 (observer_test_third_notification_function): Add declarations.
6551 2012-03-01 Pedro Alves <palves@redhat.com>
6553 * common/signals.c (default_target_signal_to_host)
6554 (default_target_signal_from_host): Move ...
6555 * arch-utils.c: ... here.
6556 * arch-utils.h (default_target_signal_to_host)
6557 (default_target_signal_from_host): Declare.
6559 * common/signals.c (target_signal_from_command): Move ...
6560 * infrun.c: ... here.
6561 * inferior.h (target_signal_from_command): Declare.
6562 * target.h (target_signal_from_command)
6563 (default_target_signal_from_host, default_target_signal_to_host):
6564 Delete declarations.
6566 * common/signals.c (_initialize_signals): Delete.
6568 2012-03-01 Pedro Alves <palves@redhat.com>
6570 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6571 both __cplusplus and !__cplusplus.
6573 2012-03-01 Pedro Alves <palves@redhat.com>
6575 * psymtab.c (find_and_open_source): Delete declaration.
6576 * source.c (find_and_open_source): Move comment ...
6577 * source.h (find_and_open_source): ... to this new declaration.
6579 2012-03-01 Pedro Alves <palves@redhat.com>
6581 * inline-frame.c: Include inline-frame.h.
6583 2012-03-01 Pedro Alves <palves@redhat.com>
6585 * tui/tui-data.c (set_gen_win_origin): Delete.
6586 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6587 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6589 2012-03-01 Pedro Alves <palves@redhat.com>
6591 * remote.c (encode_actions): Delete declaration.
6592 * tracepoint.c (encode_actions): Make extern.
6593 * tracepoint.h (encode_actions): Declare.
6595 2012-03-01 Pedro Alves <palves@redhat.com>
6597 * python/py-breakpoint.c: Include python.h.
6598 * python/py-continueevent.c (create_continue_event_object): Make
6600 * python/py-lazy-string.c (stpy_get_type): Make static.
6601 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6603 * python/py-utils.c (unicode_to_target_python_string): Make
6605 * python/py-value.c: Include python.h.
6607 2012-03-01 Pedro Alves <palves@redhat.com>
6609 * inferior.c (delete_threads_of_inferior): Delete.
6611 2012-03-01 Pedro Alves <palves@redhat.com>
6613 Import fallback definitions from glibc.
6615 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6616 ps_prochandle): Forward declare.
6617 (ps_err_e): Use glibc's comments.
6618 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6619 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6620 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6621 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6622 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6623 (struct ps_prochandle): Adjust comment.
6625 2012-03-01 Pedro Alves <palves@redhat.com>
6627 * ada-lang.c (ada_modulus_from_name): Delete.
6628 * ada-lex.l (lexer_init): Make static.
6630 2012-03-01 Pedro Alves <palves@redhat.com>
6634 * frame.c (read_frame_register_unsigned): New.
6635 * frame.h (read_frame_register_unsigned): Declare.
6636 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6638 (print_i387_control_word): New parameter `control_p'. Handle it.
6639 (i387_print_float_info): Handle unavailable float registers.
6641 2012-03-01 Keith Seitz <keiths@redhat.com>
6643 * linespec.c (decode_line_2): Sort the list of methods
6644 alphabetically before presenting the user with a selection
6647 2012-03-01 Doug Evans <dje@google.com>
6649 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6651 (dwarf2_read_abbrevs): Remove corresponding initialization.
6653 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
6655 * NEWS: Mention new python command class gdb.COMMAND_USER.
6656 * cli/cli-cmds.c (show_user): Print error when used on a python
6658 (init_cli_cmds): Update documentation strings for "show user" and
6659 "set/show max-user-call-depth" to clarify that it does not apply to
6661 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6663 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6665 * top.c (execute_command): Only execute a user-defined command as a
6666 legacy macro if c->user_commands is set.
6668 2012-03-01 Tom Tromey <tromey@redhat.com>
6670 * valprint.h (struct generic_val_print_decorations): New.
6671 (generic_val_print): Declare.
6672 * valprint.c (generic_val_print): New function.
6673 * p-valprint.c (p_decorations): New global.
6674 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6675 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6676 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6677 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6678 * m2-valprint.c (m2_decorations): New global.
6679 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6680 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6681 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6682 TYPE_CODE_ERROR>: Call generic_val_print.
6683 * f-valprint.c (f_decorations): New global.
6684 (f_val_print): Use print_function_pointer_address.
6685 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6686 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6687 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6689 * c-valprint.c (c_decorations): New global.
6690 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6691 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6692 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6693 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6694 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6695 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6698 2012-03-01 Tom Tromey <tromey@redhat.com>
6700 * valprint.c (val_print): Update.
6701 * p-valprint (pascal_val_print): Return void.
6702 * p-lang.h (pascal_val_print): Return void.
6703 * m2-valprint.c (m2_val_print): Return void.
6704 * m2-lang.h (m2_val_print): Return void.
6705 * language.h (struct language_defn) <la_val_print>: Return void.
6706 * language.c (unk_lang_val_print): Return void.
6707 * jv-valprint.c (java_val_print): Return void.
6708 * jv-lang.h (java_val_print): Return void.
6709 * f-valprint.c (f_val_print): Return void.
6710 * f-lang.h (f_val_print): Return void.
6711 * d-valprint.c (d_val_print): Return void.
6712 (dynamic_array_type): Update.
6713 * d-lang.h (d_val_print): Return void.
6714 * c-valprint.c (c_val_print): Return void.
6715 * c-lang.h (c_val_print): Return void.
6716 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6718 * ada-lang.h (ada_val_print): Return void.
6720 2012-03-01 Tom Tromey <tromey@redhat.com>
6722 * value.h (val_print): Return void.
6723 * valprint.c (val_print): Return void.
6725 2012-03-01 Tom Tromey <tromey@redhat.com>
6727 * value.h (common_val_print): Return void.
6728 * valprint.c (common_val_print): Return void.
6730 2012-03-01 Tom Tromey <tromey@redhat.com>
6732 * value.h (value_print): Return void.
6733 * valprint.c (value_print): Return void.
6734 * p-valprint.c (pascal_value_print): Return void.
6735 * p-lang.h (pascal_value_print): Return void.
6736 * language.h (struct language_defn) <la_value_print>: Return
6738 * language.c (unk_lang_value_print): Return void.
6739 * jv-valprint.c (java_value_print): Return void.
6740 * jv-lang.h (java_value_print): Return void.
6741 * f-valprint.c (c_value_print): Don't declare.
6743 * c-valprint.c (c_value_print): Return void.
6744 * c-lang.h (c_value_print): Return void.
6745 * ada-valprint.c (ada_value_print): Return void.
6746 * ada-lang.h (ada_value_print): Return void.
6748 2012-03-01 Tom Tromey <tromey@redhat.com>
6750 * value.c (value_primitive_field): Handle virtual base classes.
6752 2012-03-01 Tom Tromey <tromey@redhat.com>
6754 * gdbtypes.h (struct vbase): Remove.
6756 2012-03-01 Tom Tromey <tromey@redhat.com>
6758 * c-valprint.c (print_function_pointer_address): Move...
6759 * valprint.c: ... here. Make non-static.
6760 * m2-valprint.c (print_function_pointer_address): Remove.
6761 * valprint.h (print_function_pointer_address): Declare.
6763 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6765 * NEWS: Document the fact that one can provide a condition when
6766 creating an Ada exception catchpoint.
6768 2012-03-01 Tom Tromey <tromey@redhat.com>
6770 * valprint.c (val_print_type_code_flags): Fix placement of
6773 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6775 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6776 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6777 environment variable before calling update-copyright.
6779 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6781 * gnulib/extra/update-copyright: Update to the latest from
6782 gnulib's git repository.
6783 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6784 variable to 2 instead of 1.
6786 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6788 * varobj.c (c_value_of_variable): Remove dead code.
6790 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6792 * ada-lex.p (processId): Do not modify already encoded IDs.
6793 Update function documentation.
6795 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6797 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6798 "name" with "struct symbol *name_sym".
6799 * ada-exp.y (write_var_or_type): Update call to
6800 ada_find_renaming_symbol.
6801 "name" with "struct symbol *name_sym". Adjust Implementation
6802 accordingly. Adjust the function documentation.
6804 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6806 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6807 * ada-lang.c (ada_find_any_type): Add advance declaration.
6808 Make static. Replace ada_find_any_symbol by
6809 ada_find_any_type_symbol.
6810 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
6811 Improve function description. Make static.
6812 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
6813 Replace ada_find_any_symbol by ada_find_any_type_symbol.
6815 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6817 * ada-lang.c (struct tag_args): Delete.
6818 (ada_get_tsd_type): Function body moved up in source file.
6819 (ada_tag_name_1, ada_tag_name_2): Delete.
6820 (ada_get_tsd_from_tag): New function.
6821 (ada_tag_name_from_tsd): New function.
6822 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
6823 to determine the tag name.
6825 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6827 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
6829 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
6832 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6834 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
6836 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6838 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
6841 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6843 * ada-lang.c (constrained_packed_array_type): If there is a
6844 parallel XA type, use it to determine the array index type.
6846 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6848 * ada-valprint.c (ada_val_print_1): If our value is a reference
6849 to an array descriptor, dereference it before converting it
6852 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6854 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
6855 creating fixed value.
6856 (ada_value_ind, ada_coerce_ref, assign_component)
6857 (ada_evaluate_subexp): Remove call to unwrap_value before
6858 call to ada_to_fixed_value.
6860 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6862 * ada-lang.c (to_fixed_array_type): Set result's type name.
6864 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6866 * ada-lang.c (catch_ada_exception_command_split): Add new
6867 argument cond_string. Add support for condition at end of
6868 "catch exception" commands.
6869 (ada_decode_exception_location): Add new argument cond_string.
6870 Update call to catch_ada_exception_command_split.
6871 (create_ada_exception_catchpoint): Add new argument cond_string.
6872 Set the breakpoint condition if needed.
6873 (catch_ada_exception_command): Update call to
6874 ada_decode_exception_location.
6875 (ada_decode_assert_location): Add function documentation.
6876 Add support for condition at end of "catch assert" command.
6877 (catch_assert_command): Update calls to ada_decode_assert_location
6878 and create_ada_exception_catchpoint.
6880 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6882 Fix disp-step-syscall.exp: fork: single step over fork.
6883 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
6884 (i386_linux_get_syscall_number_from_regcache): ... here, new function
6885 comment, change parameters gdbarch and ptid to regcache. Remove
6886 parameter regcache, initialize gdbarch from regcache here.
6887 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
6889 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
6891 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
6892 'syscall'. Make the 'int' check more strict.
6894 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6896 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
6897 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
6898 (i386_linux_intx80_sysenter_syscall_record): ... here.
6899 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
6900 Use the renamed function name.
6902 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6904 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
6905 * breakpoint.c (until_break_command): Likewise.
6906 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6907 * infcall.c (call_function_by_hand): Likewise.
6908 * infcmd.c (finish_forward): Likewise.
6909 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6911 2012-02-28 Tristan Gingold <gingold@adacore.com>
6913 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
6914 avoid variable assignments inside condition.
6916 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6918 Fix static analysis issue found by cppcheck.
6919 * microblaze-tdep.c (microblaze_extract_return_value): Fix
6920 uninitialized BUF for size 2.
6922 2012-02-27 Chris Dearman <chris@mips.com>
6923 Nathan Froyd <froydnj@codesourcery.com>
6924 Maciej W. Rozycki <macro@codesourcery.com>
6926 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
6927 (mips16_instruction_has_delay_slot): Likewise.
6928 (mips_segment_boundary): Likewise.
6929 (mips_adjust_breakpoint_address): Likewise.
6930 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
6932 2012-02-27 Maciej W. Rozycki <macro@mips.com>
6933 Maciej W. Rozycki <macro@codesourcery.com>
6935 * infrun.c (handle_inferior_event): Don't proceed through
6936 shared library trampolines if stepping at the machine
6939 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
6941 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
6944 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
6946 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
6947 (sh_stub_unwind_sniffer): New functions.
6948 (sh_stub_unwind): New variable.
6949 (sh_gdbarch_init): Wire everything.
6951 2012-02-27 Pedro Alves <palves@redhat.com>
6953 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
6954 (linux_nat_post_attach_wait): Adjust to use
6955 linux_proc_pid_is_stopped.
6956 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
6957 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
6958 based on pid_is_stopped from both linux-nat.c and
6959 gdbserver/linux-low.c, and renamed.
6961 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6963 * remote.c (remote_watchpoint_addr_within_range): New function.
6964 (init_remote_ops): Use it.
6966 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6968 * target.h (target_watchpoint_addr_within_range): Document macro.
6970 2012-02-24 Pedro Alves <palves@redhat.com>
6972 * stack.c (set_last_displayed_sal): Issue internal_error instead
6973 of warning, and issue it after clearing the last displayed sal.
6975 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6976 Pedro Alves <palves@redhat.com>
6978 * breakpoint.c (until_break_command): Install breakpoints after
6979 all frame manipulations.
6981 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
6983 * remote.c (remote_supports_cond_breakpoints): New forward
6985 (remote_add_target_side_condition): New function.
6986 (remote_insert_breakpoint): Add target-side breakpoint
6987 conditional if supported.
6988 (remote_insert_hw_breakpoint): Likewise.
6989 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
6992 * target.c (update_current_target): Inherit
6993 to_supports_evaluation_of_breakpoint_conditions.
6994 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
6996 * target.h (struct target_ops)
6997 <to_supports_evaluation_of_breakpoint_conditions>: New field.
6998 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7000 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7001 (condition_evaluation_both, condition_evaluation_auto,
7002 condition_evaluation_host, condition_evaluation_target,
7003 condition_evaluation_enums, condition_evaluation_mode_1,
7004 condition_evaluation_mode): New static globals.
7005 (translate_condition_evaluation_mode): New function.
7006 (breakpoint_condition_evaluation_mode): New function.
7007 (gdb_evaluates_breakpoint_condition_p): New function.
7008 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7009 (mark_breakpoint_modified): New function.
7010 (mark_breakpoint_location_modified): New function.
7011 (set_condition_evaluation_mode): New function.
7012 (show_condition_evaluation_mode): New function.
7013 (bp_location_compare_addrs): New function.
7014 (get_first_location_gte_addr): New helper function.
7015 (set_breakpoint_condition): Free condition bytecode if locations
7016 has become unconditional. Call mark_breakpoint_modified (...).
7017 (condition_command): Call update_global_location_list (1) for
7019 (breakpoint_xfer_memory): Use is_breakpoint (...).
7020 (is_breakpoint): New function.
7021 (parse_cond_to_aexpr): New function.
7022 (build_target_condition_list): New function.
7023 (insert_bp_location): Handle target-side conditional
7024 breakpoints and call build_target_condition_list (...).
7025 (update_inserted_breakpoint_locations): New function.
7026 (insert_breakpoint_locations): Handle target-side conditional
7028 (bpstat_check_breakpoint_conditions): Add comment.
7029 (bp_condition_evaluator): New function.
7030 (bp_location_condition_evaluator): New function.
7031 (print_breakpoint_location): Print information on where the condition
7033 (print_one_breakpoint_location): Likewise.
7034 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7035 breakpoint location.
7036 (force_breakpoint_reinsertion): New functions.
7037 (update_global_location_list): Handle target-side breakpoint
7039 Reinsert locations that are already inserted if conditions have
7041 (bp_location_dtor): Free agent expression bytecode.
7042 (disable_breakpoint): Call mark_breakpoint_modified (...).
7043 Call update_global_location_list (...) with parameter 1 for breakpoints.
7044 (disable_command): Call mark_breakpoint_location_modified (...).
7045 Call update_global_location_list (...) with parameter 1 for breakpoints.
7046 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7047 (enable_command): mark_breakpoint_location_modified (...).
7048 (_initialize_breakpoint): Update documentation and add
7049 condition-evaluation breakpoint subcommand.
7051 * breakpoint.h: Include ax.h.
7052 (condition_list): New data structure.
7053 (condition_status): New enum.
7054 (bp_target_info) <cond_list>: New field.
7055 (bp_location) <condition_changed, cond_bytecode>: New fields.
7056 (is_breakpoint): New prototype.
7058 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7060 * remote.c (remote_state) <cond_breakpoints>: New field.
7061 (PACKET_ConditionalBreakpoints): New enum.
7062 (remote_cond_breakpoint_feature): New function.
7063 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7064 (remote_supports_cond_breakpoints): New function.
7065 (_initialize_remote): Add new packet configuration for
7066 target-side conditional breakpoints.
7068 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7070 * NEWS: Mention target-side conditional breakpoint support,
7071 new condition-evaluation breakpoint subcommand and remote
7074 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7076 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7079 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7081 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7082 (after_prologue): Remove.
7084 2012-02-23 Tom Tromey <tromey@redhat.com>
7086 * jv-valprint.c (java_val_print): Remove dead code.
7088 2012-02-23 Tristan Gingold <gingold@adacore.com>
7090 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7091 known_tasks_element and known_tasks_length fields.
7092 (read_known_tasks_array): Change argument type. Use pointer type
7093 and number of elements from DATA. Adjust.
7094 (read_known_tasks_list): Likewise.
7095 (get_known_tasks_addr): Remove.
7096 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7097 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7098 type and array length. Merge former get_known_tasks_addr code.
7100 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7103 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7104 it after set_momentary_breakpoint.
7106 2012-02-22 Sterling Augustine <saugustine@google.com>
7109 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7111 2012-02-22 Gary Benson <gbenson@redhat.com>
7113 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7114 (find_slot_in_mapped_hash): Likewise.
7116 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7119 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7120 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7121 * configure: Regenerate.
7123 2012-02-21 Tristan Gingold <gingold@adacore.com>
7124 Pedro Alves <palves@redhat.com>
7126 * ia64-tdep.c: Do not include libunwind-ia64.h.
7127 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7128 Include libunwind-ia64.h instead of libunwind.h.
7129 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7130 for libunwind.h existence.
7131 * configure, config.in: Regenerate.
7133 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7135 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7136 instead of value_rtti_target_type.
7137 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7138 instead of value_rtti_target_type.
7139 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7140 value_rtti_target_type.
7141 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7142 (value_rtti_target_type): Rename to ...
7143 (value_rtti_indirect_type): ... here and make it indirect. Update
7145 * value.c (readjust_indirect_value_type): New function.
7146 (coerce_ref): Support for enclosing type setting for references
7147 with readjust_indirect_value_type.
7148 * value.h (readjust_value_type): New declaration.
7149 (value_rtti_target_type): Rename to ...
7150 (value_rtti_indirect_type): ... here.
7152 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7154 * MAINTAINERS (Write After Approval): Add myself to the list.
7156 2012-02-20 Doug Evans <dje@google.com>
7158 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7159 Rename objfile_p_char parameter to objfilep.
7160 (build_objfile_section_table): Result is now void. All callers
7162 * objfiles.h (struct objfile): Tweak comments, whitespace.
7163 (build_objfile_section_table): Update.
7165 * elfread.c (elf_symfile_segments): Fix warning text.
7167 2012-02-20 Tom Tromey <tromey@redhat.com>
7170 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7171 particular set of file names once.
7172 (dw2_map_symbol_filenames): Likewise.
7174 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7177 * main.c (write_files): Remove the declaration.
7178 (external_editor_command): Move the declaration ...
7179 [GDBTK] (external_editor_command): ... here. Fix the comment.
7181 2012-02-20 Tom Tromey <tromey@redhat.com>
7183 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7186 2012-02-20 Tristan Gingold <gingold@adacore.com>
7188 * darwin-nat.h (enum darwin_msg_state): Add comments.
7190 2012-02-20 Tristan Gingold <gingold@adacore.com>
7192 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7195 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7197 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7198 between function description and implementation.
7200 2012-02-17 Tom Tromey <tromey@redhat.com>
7203 * python/py-event.c (event_object_getset): New global.
7204 (event_object_type): Reference it.
7205 * python/py-type.c (field_object_getset): New global.
7206 (field_object_type): Reference it.
7207 * python/python-internal.h (gdb_py_generic_dict): Declare.
7208 * python/py-utils.c (gdb_py_generic_dict): New function.
7210 2012-02-17 Tristan Gingold <gingold@adacore.com>
7212 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7214 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7216 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7217 TYPE_CALLING_CONVENTION annotation.
7219 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7221 * MAINTAINERS: Add rx to target ISA section.
7222 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7223 (ALLDEPFILES): Add rx-tdep.c.
7225 2012-02-16 Tom Tromey <tromey@redhat.com>
7227 * symfile.c (symbol_file_add_main_1): Use inferior's
7229 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7230 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7232 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7234 (follow_exec): Use inferior's symfile_flags.
7235 * inferior.h (struct inferior) <symfile_flags>: New field.
7237 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7240 * remote-sim.c (gdbsim_create_inferior): Call error() when
7241 sim_create_inferior() fails.
7243 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7245 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7247 2012-02-16 Tom Tromey <tromey@redhat.com>
7250 * thread.c (struct current_thread_cleanup) <was_removable>: New
7252 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7253 (make_cleanup_restore_current_thread): Initialize new field.
7255 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7257 * MAINTAINERS: Add rl78 to target ISA section.
7258 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7259 (ALLDEPFILES): Add rl78-tdep.c.
7260 * NEWS: Mention rl78 as a new target.
7262 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7264 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7266 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7268 2012-02-15 Tom Tromey <tromey@redhat.com>
7271 * infcmd.c (registers_info): Print just the current register's
7274 2012-02-15 Tom Tromey <tromey@redhat.com>
7276 * python/py-symbol.c (sympy_value): Use _().
7278 2012-02-15 Pedro Alves <palves@redhat.com>
7280 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7281 output to be like native targets'.
7282 (remote_pid_to_str): Special case the null ptid.
7284 2012-02-14 Stan Shebs <stan@codesourcery.com>
7286 * NEWS: Mention enable count command.
7287 * breakpoint.h (struct breakpoint): New field enable_count.
7288 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7289 (enable_breakpoint): Add arg to call.
7290 (struct disp_data): New struct.
7291 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7292 (do_map_enable_once_breakpoint): Create a struct and pass it.
7293 (do_map_enable_delete_breakpoint): Ditto.
7294 (do_map_enable_count_breakpoint): New function.
7295 (enable_count_command): New function.
7296 (bpstat_stop_status): Decrement enable_count.
7297 (print_one_breakpoint_location): Report enable count.
7298 (_initialize_breakpoint): Add enable count command.
7300 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7302 * rl78-tdep.c (reggroups.h): Include.
7303 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7304 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7305 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7306 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7307 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7308 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7309 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7310 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7311 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7312 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7313 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7314 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7315 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7316 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7317 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7318 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7319 beginning of register list.
7320 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7321 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7322 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7323 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7324 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7325 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7326 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7327 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7328 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7329 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7330 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7331 the pseudo registers. Rearrange other pseudo registers too so
7332 that the bank registers appear at the end.
7333 (rl78_register_type): Account for the fact that the byte sized
7334 bank registers are now pseudo-registers.
7335 (rl78_register_name): Rearrange the register name array. Make
7336 initial set of raw banked registers inaccessible.
7337 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7338 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7339 case for copying bytes back and forth between raw and pseudo
7340 versions of the banked registers. Update other cases to reflect
7342 (rl78_return_value): Update to account for changed names of
7344 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7345 rl78_register_sim_regno().
7347 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7349 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7350 the name parameter being passed to find_pc_partial_function().
7352 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7354 * MAINTAINERS: Step down from being ia64 target maintainer.
7356 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7358 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7359 compilation warning.
7361 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7363 Fix crash on loaded shlibs without loaded exec_bfd.
7364 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7365 (set_section_command): Replace exec_bfd by p->bfd.
7367 2012-02-10 Tom Tromey <tromey@redhat.com>
7369 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7370 when we have a C++ qualified name.
7372 2012-02-10 Pedro Alves <palves@redhat.com>
7374 * inferior.c (inferior_pid_to_str): New.
7375 (print_inferior, inferior_command): Use it.
7377 2012-02-10 Pedro Alves <palves@redhat.com>
7379 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7381 * configure: Regenerate.
7383 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7385 * linespec.c (decode_line_internal): Fix comment correctness.
7387 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7390 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7391 * amd64bsd-nat.c: Add support for debug registers (adapted from
7393 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7394 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7395 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7396 (amd64bsd_dr_get_control): New functions.
7397 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7398 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7399 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7400 watchpoints initialization.
7401 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7403 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7405 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7407 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7409 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7411 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7413 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7415 * language.h (symbol_name_cmp_ftype): Renames
7416 symbol_name_match_p_ftype.
7417 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7418 la_get_symbol_name_match_p.
7419 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7420 ada_get_symbol_name_match_p. Update comment.
7421 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7422 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7423 Renames symbol_name_match_p. Update field type.
7424 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7425 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7426 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7427 "la_get_symbol_name_cmp" in comments.
7428 * language.c: Likewise.
7430 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7432 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7434 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7435 (amd64_sol2_gregset32_reg_offs): Likewise.
7437 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7439 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7440 of the returned BFD is allocated by GDB.
7442 2012-02-07 Tom Tromey <tromey@redhat.com>
7445 * python/python-internal.h (frame_object_type): Declare.
7446 * python/py-symbol.c (sympy_needs_frame): New function.
7447 (sympy_value): New function.
7448 (symbol_object_getset): Add "needs_frame".
7449 (symbol_object_methods): Add "value".
7450 * python/py-frame.c (frame_object_type): No longer static.
7452 2012-02-07 Tom Tromey <tromey@redhat.com>
7455 * python/py-symbol.c (sympy_line): New function.
7456 (symbol_object_getset): Add "line".
7458 2012-02-07 Tom Tromey <tromey@redhat.com>
7460 * charset.c (find_charset_names): Check 'in' against NULL.
7462 2012-02-06 Doug Evans <dje@google.com>
7464 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7465 and fields.name members from char * to const char *. All uses updated.
7466 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7467 from char * to const char *. All uses updated.
7468 (type_name_no_tag): Update.
7469 (lookup_unsigned_typename, lookup_signed_typename): Update.
7470 * gdbtypes.c (type_name_no_tag): Change result type
7471 from char * to const char *. All callers updated.
7472 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7473 name parameter from char * to const char *.
7474 * symtab.h (struct cplus_specific): Change type of demangled_name
7475 member from char * to const char *. All uses updated.
7476 (struct general_symbol_info): Change type of name and
7477 mangled_lang.demangled_name members from char * to const char *.
7479 (symbol_get_demangled_name, symbol_natural_name): Update.
7480 (symbol_demangled_name, symbol_search_name): Update.
7481 * symtab.c (symbol_get_demangled_name): Change result type
7482 from char * to const char *. All callers updated.
7483 (symbol_natural_name, symbol_demangled_name): Ditto.
7484 (symbol_search_name): Ditto.
7485 (completion_list_add_name): Change type of symname,sym_text,
7486 text,word parameters from char * to const char *.
7487 (completion_list_objc_symbol): Change type of sym_text,
7488 text,word parameters from char * to const char *.
7489 * ada-lang.c (find_struct_field): Change type of name parameter
7490 from char * to const char *.
7491 (encoded_ordered_before): Similarly for N0,N1 parameters.
7492 (old_renaming_is_invisible): Similarly for function_name parameter.
7493 (ada_type_name): Change result type from char * to const char *.
7494 All callers updated.
7495 * ada-lang.h (ada_type_name): Update.
7496 * buildsym.c (hashname): Change type of name parameter
7497 from char * to const char *.
7498 * buildsym.h (hashname): Update.
7499 * dbxread.c (end_psymtab): Change type of include_list parameter
7500 from char ** to const char **.
7501 * dwarf2read.c (determine_prefix): Change result type
7502 from char * to const char *. All callers updated.
7503 * f-lang.c (find_common_for_function): Change type of name, funcname
7504 parameters from char * to const char *.
7505 * f-lang.c (find_common_for_function): Update.
7506 * f-valprint.c (list_all_visible_commons): Change type of funcname
7507 parameters from char * to const char *.
7508 * gdbarch.sh (static_transform_name): Change type of name parameter
7509 and result from char * to const char *.
7510 * gdbarch.c: Regenerate.
7511 * gdbarch.h: Regenerate.
7512 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7513 of name parameter from char * to const char *.
7514 * jv-lang.c (java_primitive_type_from_name): Ditto.
7515 (java_demangled_signature_length): Similarly for signature parameter.
7516 (java_demangled_signature_copy): Ditto.
7517 (java_demangle_type_signature): Ditto.
7518 * jv-lang.h (java_primitive_type_from_name): Update.
7519 (java_demangle_type_signature): Update.
7520 * objc-lang.c (specialcmp): Change type of a,b parameters
7521 from char * to const char *.
7522 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7523 from char * to const char *. All callers updated.
7524 * p-lang.h (is_pascal_string_type): Update.
7525 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7526 of name parameter from char * to const char *.
7527 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7528 * utils.c (fprintf_symbol_filtered): Ditto.
7529 * defs.h (fprintf_symbol_filtered): Update.
7530 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7531 * stabsread.h (end_psymtab): Update.
7532 * stack.c (find_frame_funname): Change type of funname parameter
7533 from char ** to const char **.
7534 * stack.h (find_frame_funname): Update.
7535 * typeprint.c (type_print): Change type of varstring parameter
7536 from char * to const char *.
7537 * value.h (type_print): Update.
7538 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7539 from char * to const char *. All callers updated.
7540 (xcoff_end_psymtab): Change type of include_list parameter
7541 from char ** to const char **. All callers updated.
7542 (swap_sym): Similarly for name parameter. All callers updated.
7543 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7545 (process_coff_symbol): Use xstrdup.
7546 * stabsread.c (stabs_method_name_from_physname): Renamed from
7547 update_method_name_from_physname. Change result type from void
7548 to char *. All callers updated.
7549 (read_member_functions): In has_destructor case, store name in objfile
7550 obstack instead of malloc space. In !has_stub case, fix mem leak.
7552 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7554 * configure: Rebuild.
7555 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7558 2012-02-03 Kevin Buettner <kevinb@redhat.com>
7560 * configure.tgt (rl78-*-elf): New target.
7561 * rl78-tdep.c: New file.
7563 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7565 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7566 and continue the loop. Add QUIT statement.
7568 2012-02-03 Tom Tromey <tromey@redhat.com>
7571 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7572 bfd_lookup_symbol_from_symtab.
7573 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7574 gdb_bfd_lookup_symbol_from_symtab.
7576 2012-02-03 Joel Brobecker <brobecker@adacore.com>
7578 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7579 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7580 symbol. Add assertion that sym2 is never NULL.
7582 2012-02-02 Doug Evans <dje@google.com>
7584 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7585 "name" parameter to const char ** from char **. All callers updated.
7586 (find_pc_partial_function): Ditto.
7587 (cache_pc_function_name): Change type to const char * from char *.
7588 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7589 (find_pc_partial_function): Update.
7590 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7591 type of "name" parameter to const char * from char *.
7593 * arch-utils.c (generic_in_solib_return_trampoline): Change
7594 type of "name" parameter to const char * from char *.
7595 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7596 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7597 type of "name" parameter to const char * from char *.
7598 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7599 * gdbarch.c: Regenerate.
7600 * gdbarch.h: Regenerate.
7601 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7602 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7603 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7604 type of "name" parameter to const char * from char *.
7605 * skip.c (skip_function_pc): Ditto.
7606 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7607 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7608 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7609 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7610 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7611 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7612 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7613 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7614 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7616 2012-02-02 Pedro Alves <palves@redhat.com>
7618 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7619 the current inferior has no execution. Make sure the current
7620 remote process matches gdb's current inferior.
7622 2012-02-02 Tom Tromey <tromey@redhat.com>
7625 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7628 2012-02-02 Tom Tromey <tromey@redhat.com>
7631 * symtab.c (lookup_language_this): Set block_found.
7633 2012-02-01 Tom Tromey <tromey@redhat.com>
7636 * jit.c (struct jit_inferior_data): Rewrite.
7637 (struct jit_objfile_data): New.
7638 (get_jit_objfile_data): New function.
7639 (add_objfile_entry): Update.
7640 (jit_read_descriptor): Return int. Replace descriptor_addr
7641 argument with inf_data. Update. Don't call error.
7642 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7644 (jit_inferior_init): Don't look up descriptor. Don't call error.
7645 (jit_reset_inferior_data_and_breakpoints)
7646 (jit_inferior_created_observer): Remove.
7647 (jit_inferior_exit_hook): Update.
7648 (jit_executable_changed_observer): Remove.
7649 (jit_event_handler): Update.
7650 (free_objfile_data): Reset inferior data if needed.
7651 (_initialize_jit): Update.
7653 2012-02-01 Tom Tromey <tromey@redhat.com>
7655 * jit.c (bfd_open_from_target_memory): Move higher in file.
7657 2012-02-01 Tristan Gingold <gingold@adacore.com>
7659 * libunwind-frame.c (libunwind_load): Display message if dlopen
7662 2012-02-01 Gary Benson <gbenson@redhat.com>
7664 * symtab.h (symbol_found_callback_ftype): New typedef.
7665 (iterate_over_symbols): Use the above.
7666 * symtab.c (iterate_over_symbols): Likewise.
7667 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7668 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7669 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7670 (iterate_name_matcher): Document return values.
7671 (collect_one_symbol): Likewise.
7672 (collect_function_symbols): Likewise.
7673 (collect_symbols): Likewise.
7675 2012-02-01 Tom Tromey <tromey@redhat.com>
7677 * ada-lang.c (resolve_subexp): Update.
7678 (ada_lookup_symbol_list): Add 'full_search' argument.
7679 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7680 ada_lookup_symbol_list.
7681 (ada_lookup_encoded_symbol): Update.
7682 (get_var_value): Update.
7683 * ada-exp.y (block_lookup): Update.
7684 (write_var_or_type): Update.
7685 (write_name_assoc): Update.
7686 * ada-lang.h (ada_lookup_symbol_list): Update.
7688 2012-01-31 Tom Tromey <tromey@redhat.com>
7690 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7693 2012-01-31 Doug Evans <dje@google.com>
7695 * symtab.h: Remove outdated comment.
7696 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7698 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
7700 Fix build error in Darwin port.
7701 * i386-darwin-nat.c: Include i386-nat.h.
7703 2012-01-30 Tom Tromey <tromey@redhat.com>
7705 PR breakpoints/13568:
7706 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7707 argument. Check for recursive includes.
7708 (dwarf_decode_macros): Create an include hash.
7710 2012-01-30 Michael Eager <eager@eagercon.com>
7712 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7713 * ppc-linux-tdep.c: Include glibc-tdep.h.
7714 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7715 (powerpc_linux_in_plt_stub): New function.
7716 (powerpc_linux_in_dynsym_resolve_code): New function.
7717 (ppc_skip_trampoline_code): New function.
7718 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7719 Use glibc_skip_solib_resolver.
7721 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7723 Code cleanup: Make 1440 bytes of data segment read-only.
7724 * arch-utils.c (endian_enum): Make it const char *const [].
7725 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7727 * breakpoint.c (always_inserted_enums): Likewise.
7728 * cli/cli-cmds.c (script_ext_enums): Likewise.
7729 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7730 enumlist parameter const char *const *.
7731 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7732 const char *const *.
7733 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7734 parameter const char *const *.
7735 * cris-tdep.c (cris_modes): Make it const char *const [].
7736 * filesystem.c (target_file_system_kinds): Likewise.
7737 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7738 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7739 (can_use_displaced_stepping_enum, scheduler_enums)
7740 (exec_direction_names): Likewise.
7741 * language.c (_initialize_language): Make the type_or_range_names and
7742 case_sensitive_names variables const char *const [].
7743 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7744 * python/python.c (python_excp_enums): Likewise.
7745 * remote.c (interrupt_sequence_modes): Likewise.
7746 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7747 * serial.c (logbase_enums): Likewise.
7748 * sh-tdep.c (sh_cc_enum): Likewise.
7749 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7751 * symtab.c (multiple_symbols_modes): Likewise.
7752 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7754 * utils.c (internal_problem_modes): Likewise.
7756 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7758 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7759 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7762 2012-01-27 Doug Evans <dje@google.com>
7764 * configure.ac (with_python): Fix absolute path handling for win32.
7765 * configure: Regenerate.
7767 2012-01-26 Doug Evans <dje@google.com>
7769 * symtab.c: Whitespace cleanup, no code changes.
7771 * symtab.c (lookup_symbol_in_language): Improve comment.
7772 (lookup_symbol_aux): Fix comment.
7774 * psymtab.c (add_psymbol_to_list): Result is now "void".
7775 * psympriv.h (add_psymbol_to_list): Update.
7777 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7779 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7781 Do not open script filenames twice.
7782 * cli/cli-cmds.c (source_script_from_stream): Pass to
7783 source_python_script also STREAM.
7784 * python/py-auto-load.c (source_section_scripts): Pass to
7785 source_python_script_for_objfile also STREAM.
7786 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7788 * python/python-internal.h (source_python_script_for_objfile): New
7789 parameter file, rename parameter file to filename.
7790 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7791 instead if !_WIN32. Update the function comment.
7792 (source_python_script, source_python_script_for_objfile)
7793 (source_python_script): New parameter file, rename parameter file to
7794 filename. Pass FILENAME to python_run_simple_file.
7795 * python/python.h (source_python_script): New parameter file, rename
7796 parameter file to filename.
7798 2012-01-26 Pedro Alves <palves@redhat.com>
7800 * corelow.c (core_has_fake_pid): Delete.
7801 (core_close): Delete references to `core_has_fake_pid'.
7802 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7803 (core_open): Delete references to `core_has_fake_pid'.
7804 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7807 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7809 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7810 Remove language parameter from name_matcher. Adjust the comment.
7811 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
7812 Remove language parameter.
7813 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
7814 * linespec.c (iterate_name_matcher): Likewise.
7815 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
7816 name_matcher. Adjust call accordingly.
7817 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
7818 (maintenance_check_symtabs): Adjust type of parameter "fun".
7819 * psymtab.h (maintenance_check_symtabs): Likewise.
7821 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7823 * language.h (symbol_name_match_p_ftype): New typedef.
7824 (struct language_defn): Replace field la_symbol_name_compare
7825 by la_get_symbol_name_match_p.
7826 * ada-lang.c (ada_get_symbol_name_match_p): New function.
7827 (ada_language_defn): Use it.
7828 * linespec.c (struct symbol_matcher_data): New type.
7829 (iterate_name_matcher): Rewrite.
7830 (iterate_over_all_matching_symtabs): Pass a pointer to
7831 a symbol_matcher_data struct to expand_symtabs_matching
7832 instead of just the lookup name.
7833 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7834 opencl-lang.c, p-lang.c, language.c: Delete field
7835 la_symbol_name_compare, and replace by NULL for new field
7836 la_get_symbol_name_match_p.
7837 * symfile.h (struct quick_symbol_functions): Update comment.
7839 2012-01-25 Tom Tromey <tromey@redhat.com>
7841 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
7844 2012-01-24 Tom Tromey <tromey@redhat.com>
7847 * solib.c (update_solib_list): Update the program space's
7848 added_solibs and deleted_solibs fields.
7849 * progspace.h (struct program_space) <added_solibs,
7850 deleted_solibs>: New fields.
7851 (clear_program_space_solib_cache): Declare.
7852 * progspace.c (release_program_space): Call
7853 clear_program_space_solib_cache.
7854 (clear_program_space_solib_cache): New function.
7855 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
7856 bpstat_stop_status. Use handle_solib_event.
7857 * breakpoint.c: Include gdb_regex.h.
7858 (print_solib_event): New function.
7859 (bpstat_print): Use print_solib_event.
7860 (bpstat_stop_status): Add special case for bp_shlib_event.
7861 (handle_solib_event): New function.
7862 (bpstat_what): Use handle_solib_event.
7863 (struct solib_catchpoint): New.
7864 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
7865 (breakpoint_hit_catch_solib, check_status_catch_solib)
7866 (print_it_catch_solib, print_one_catch_solib)
7867 (print_mention_catch_solib, print_recreate_catch_solib): New
7869 (catch_solib_breakpoint_ops): New global.
7870 (catch_load_or_unload, catch_load_command_1)
7871 (catch_unload_command_1): New functions.
7872 (internal_bkpt_check_status): Add special case for
7874 (internal_bkpt_print_it): Use print_solib_event.
7875 (initialize_breakpoint_ops): Initialize
7876 catch_solib_breakpoint_ops.
7877 (_initialize_breakpoint): Register "catch load" and "catch
7879 * breakpoint.h (handle_solib_event): Declare.
7880 * NEWS: Add entry for "catch load" and "catch unload".
7882 2012-01-24 Tom Tromey <tromey@redhat.com>
7884 * ada-lang.c: Include gdb_vecs.h.
7885 * charset.c: Include gdb_vecs.h.
7886 * tracepoint.h: Include gdb_vecs.h.
7887 * gdb_vecs.h: New file.
7889 2012-01-24 Pedro Alves <pedro@codesourcery.com>
7891 * breakpoint.c (breakpoint_hit_catch_fork)
7892 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
7893 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
7894 * infrun.c (inferior_has_forked, inferior_has_vforked)
7895 (inferior_has_execd, inferior_has_called_syscall): Delete.
7896 (handle_syscall_event): Get syscall_number from the execution
7897 control state's wait status.
7898 (wait_for_inferior): Don't clear syscall_number.
7900 2012-01-24 Pedro Alves <palves@redhat.com>
7902 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
7903 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
7904 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
7905 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
7907 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
7908 false for events other than TARGET_SIGNAL_TRAP.
7909 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
7911 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
7912 events other than TARGET_SIGNAL_TRAP.
7913 (tracepoint_breakpoint_hit): Add `ws' parameter.
7914 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
7916 (bpstat_stop_status): Same.
7917 (pc_at_non_inline_function): Same.
7918 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
7919 to pass the current event's waitstatus to bpstat_stop_status
7920 and pc_at_non_inline_function.
7922 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7925 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
7926 Update the function comment for it.
7927 (source_script_with_search): Call make_cleanup_fclose for STREAM.
7928 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
7931 2012-01-24 Pedro Alves <palves@redhat.com>
7933 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
7934 outside `bs->stop' block.
7935 (bpstat_what): Rework bp_shlib_event handling.
7936 (internal_bkpt_check_status): If the breakpoint is a
7937 bp_shlib_event, then set bs->stop and bs->print if
7938 stop_on_solib_events is set.
7940 2012-01-24 Gary Benson <gbenson@redhat.com>
7942 Delete #if 0'd out code.
7943 * stack.c (print_frame_label_vars): Remove.
7944 (catch_info): Likewise.
7945 (_initialize_stack): Remove "info catch" command.
7946 * NEWS: Mention the above.
7948 2012-01-24 Pedro Alves <palves@redhat.com>
7950 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
7952 (remote_notice_new_inferior): If the remote end doesn't support
7953 the multiprocess extensions, then the PID is fake.
7954 (add_current_inferior_and_thread): New.
7955 (remote_start_remote): Use it.
7956 (extended_remote_attach_1): Adjust.
7957 (extended_remote_create_inferior_1): Use
7958 add_current_inferior_and_thread.
7960 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7962 Fix watchpoints to be specific for each inferior.
7963 * breakpoint.c (watchpoint_in_thread_scope): Verify also
7964 current_program_space.
7965 * i386-nat.c (i386_inferior_data_cleanup): New.
7966 (i386_inferior_data_get): Replace variable inf_data_local by an
7968 (i386_use_watchpoints): Initialize i386_inferior_data.
7969 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
7970 specific iterate_over_lwps.
7972 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7974 Fix watchpoints across inferior fork.
7975 * amd64-linux-nat.c (update_debug_registers_callback): Update the
7976 comment for linux_nat_iterate_watchpoint_lwps.
7977 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
7978 linux_nat_iterate_watchpoint_lwps.
7979 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
7980 * i386-linux-nat.c (update_debug_registers_callback): Update the
7981 comment for linux_nat_iterate_watchpoint_lwps.
7982 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
7983 linux_nat_iterate_watchpoint_lwps.
7984 (i386_linux_prepare_to_resume): New comment on Linux kernel.
7985 * i386-nat.c: Include inferior.h.
7986 (dr_mirror): Remove.
7987 (i386_inferior_data, struct i386_inferior_data)
7988 (i386_inferior_data_get): New.
7989 (i386_debug_reg_state): Use i386_inferior_data_get.
7990 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
7991 (i386_insert_watchpoint, i386_remove_watchpoint)
7992 (i386_stopped_data_address, i386_insert_hw_breakpoint)
7993 (i386_remove_hw_breakpoint): New variable state, use
7994 i386_debug_reg_state instead of DR_MIRROR.
7995 * linux-nat.c (delete_lwp): New declaration.
7996 (num_lwps): Move here from downwards.
7997 (delete_lwp_cleanup): New.
7998 (linux_child_follow_fork): Create new child_lp, call
7999 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8001 (num_lwps): Move upwards.
8002 (linux_nat_iterate_watchpoint_lwps): New.
8003 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8004 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8006 2012-01-24 Joel Brobecker <brobecker@adacore.com>
8010 2012-01-23 Pedro Alves <palves@redhat.com>
8012 * top.c (caution): Rename to ...
8013 (confirm): ... this.
8014 (show_caution): Rename to ...
8015 (show_confirm): ... this.
8016 (quit_cover): Adjust.
8017 (init_main): Adjust.
8018 * top.h (caution): Rename to ...
8019 (confirm): ... this.
8020 * utils.c (internal_vproblem, defaulted_query): Adjust.
8022 2012-01-23 Pedro Alves <palves@redhat.com>
8024 * top.c (caution): Update comment.
8025 (execute_command): Don't consider the current value of `caution'.
8027 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8029 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8031 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8033 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8034 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8035 * target.c (target_fileio_pwrite): Remove buffer address from
8037 (target_fileio_pread): Likewise.
8039 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8041 * NEWS: Document remote "info proc" and "generate-core-file".
8043 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8045 * gdbarch.sh (find_memory_regions): New callback.
8046 * gdbarch.c, gdbarch.h: Regenerate.
8048 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8049 callback before falling back to target method.
8051 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8052 (linux_target_install_ops): No longer install it.
8054 * linux-tdep.c (linux_find_memory_regions): New function.
8055 (linux_init_abi): Install it.
8057 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8059 * gdbarch.sh (make_corefile_notes): New architecture callback.
8060 * gdbarch.c: Regenerate.
8061 * gdbarch.h: Likewise.
8063 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8064 before target_make_corefile_notes. If NULL is returned, the
8065 target does not support core file generation.
8067 * linux-nat.c: Include "linux-tdep.h".
8068 (find_signalled_thread, find_stop_signal): Remove.
8069 (linux_nat_do_thread_registers): Likewise.
8070 (struct linux_nat_corefile_thread_data): Likewise.
8071 (linux_nat_corefile_thread_callback): Likewise.
8072 (iterate_over_spus): Likewise.
8073 (struct linux_spu_corefile_data): Likewise.
8074 (linux_spu_corefile_callback): Likewise.
8075 (linux_spu_make_corefile_notes): Likewise.
8076 (linux_nat_collect_thread_registers): New function.
8077 (linux_nat_make_corefile_notes): Replace contents by call to
8078 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8079 as native-only callback.
8081 * linux-tdep.h: Include "bfd.h".
8082 (struct regcache): Add forward declaration.
8083 (linux_collect_thread_registers_ftype): New typedef.
8084 (linux_make_corefile_notes): Add prototype.
8085 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8086 "regset.h", and "elf-bfd.h".
8087 (find_signalled_thread, find_stop_signal): New functions.
8088 (linux_spu_make_corefile_notes): Likewise.
8089 (linux_collect_thread_registers): Likewise.
8090 (struct linux_corefile_thread_data): New data structure.
8091 (linux_corefile_thread_callback): New funcion.
8092 (linux_make_corefile_notes): Likewise.
8093 (linux_make_corefile_notes_1): Likewise.
8094 (linux_init_abi): Install it.
8096 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8098 * gdbarch.sh (info_proc): New callback.
8099 * gdbarch.c, gdbarch.h: Regenerate.
8101 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8102 before falling back to the target info_proc callback.
8104 * linux-nat.c: Do not include "cli/cli-utils.h".
8105 (linux_nat_info_proc): Remove.
8106 (linux_target_install_ops): No longer install it.
8108 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8109 (read_mapping): New function.
8110 (linux_info_proc): Likewise.
8111 (linux_init_abi): Install it.
8113 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8115 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8116 * infcmd.c: (info_proc_cmd_1): New function.
8117 (info_proc_cmd): New function, moved here from equivalent routine
8118 orignally in linux-nat.c.
8119 (info_proc_cmd_mappings): Likewise.
8120 (info_proc_cmd_stat): Likewise.
8121 (info_proc_cmd_status): Likewise.
8122 (info_proc_cmd_cwd): Likewise.
8123 (info_proc_cmd_cmdline): Likewise.
8124 (info_proc_cmd_exe): Likewise.
8125 (info_proc_cmd_all): Likewise.
8126 (_initialize_infcmd): Install "info proc" command and subcommands.
8128 * target.h (struct target_ops): Add to_info_proc.
8129 (target_info_proc): Add prototype.
8130 * target.c (target_info_proc): New function.
8132 * procfs.c (procfs_info_proc): Add prototype.
8133 (info_proc_cmd): Rename into ...
8134 (procfs_info_proc): ... this. Update argument types as appropriate
8135 for a to_info_proc implementation. Handle "what" argument.
8136 (procfs_target): Install procfs_info_proc.
8137 (_initialize_procfs): No longer install "info proc" command.
8139 * linux-nat.c: (enum info_proc_what): Remove.
8140 (linux_nat_info_proc_cmd_1): Rename into ...
8141 (linux_nat_info_proc): ... this. Update argument types as appropriate
8142 for a to_info_proc implementation.
8143 (linux_nat_info_proc_cmd): Remove.
8144 (linux_nat_info_proc_cmd_mappings): Likewise.
8145 (linux_nat_info_proc_cmd_stat): Likewise.
8146 (linux_nat_info_proc_cmd_status): Likewise.
8147 (linux_nat_info_proc_cmd_cwd): Likewise.
8148 (linux_nat_info_proc_cmd_cmdline): Likewise.
8149 (linux_nat_info_proc_cmd_exe): Likewise.
8150 (linux_nat_info_proc_cmd_all): Likewise.
8151 (linux_target_install_ops): Install linux_nat_info_proc.
8152 (_initialize_linux_nat): No longer install "info proc" command
8155 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8157 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8158 * config.in, configure: Regenerate.
8160 * target.h (struct target_ops): Add to_fileio_readlink.
8161 (target_fileio_readlink): Add prototype.
8162 * target.c (target_fileio_readlink): New function.
8164 * inf-child.c: Conditionally include <sys/param.h>.
8165 (inf_child_fileio_readlink): New function.
8166 (inf_child_target): Install it.
8168 * remote.c (PACKET_vFile_readlink): New enum value.
8169 (remote_hostio_readlink): New function.
8170 (init_remote_ops): Install it.
8171 (_initialize_remote): Handle vFile:readlink packet type.
8173 2012-01-20 Pedro Alves <palves@redhat.com>
8174 Ulrich Weigand <ulrich.weigand@linaro.org>
8176 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8177 * config.in, configure: Regenerate.
8179 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8180 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8181 (target_fileio_open): Add prototype.
8182 (target_fileio_pwrite): Likewise.
8183 (target_fileio_pread): Likewise.
8184 (target_fileio_close): Likewise.
8185 (target_fileio_unlink): Likewise.
8186 (target_fileio_read_alloc): Likewise.
8187 (target_fileio_read_stralloc): Likewise.
8189 * target.c: Include "gdb/fileio.h".
8190 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8191 (default_fileio_target): New function.
8192 (target_fileio_open): Likewise.
8193 (target_fileio_pwrite): Likewise.
8194 (target_fileio_pread): Likewise.
8195 (target_fileio_close): Likewise.
8196 (target_fileio_unlink): Likewise.
8197 (target_fileio_close_cleanup): Likewise.
8198 (target_fileio_read_alloc_1): Likewise.
8199 (target_fileio_read_alloc): Likewise.
8200 (target_fileio_read_stralloc): Likewise.
8202 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8203 <fcntl.h>, and <unistd.h>.
8204 (inf_child_fileio_open_flags_to_host): New function.
8205 (inf_child_errno_to_fileio_error): Likewise.
8206 (inf_child_fileio_open): Likewise.
8207 (inf_child_fileio_pwrite): Likewise.
8208 (inf_child_fileio_pread): Likewise.
8209 (inf_child_fileio_close): Likewise.
8210 (inf_child_fileio_unlink): Likewise.
8211 (inf_child_target): Install to_fileio routines.
8213 * remote.c (init_remote_ops): Install to_fileio routines.
8215 2012-01-20 Pedro Alves <palves@redhat.com>
8216 Ulrich Weigand <ulrich.weigand@linaro.org>
8218 * remote.c (remote_multi_process_p): Only check for multi-process
8219 protocol feature, do not check for extended protocol.
8220 (remote_supports_multi_process): Check for extended protocol here.
8221 (set_general_process): Likewise.
8222 (extended_remote_kill): Likewise.
8223 (remote_pid_to_str): Likewise.
8224 (remote_query_supported): Always query multiprocess mode.
8226 2012-01-20 Pedro Alves <palves@redhat.com>
8227 Ulrich Weigand <ulrich.weigand@linaro.org>
8229 * inferior.h (struct inferior): Add fake_pid_p.
8230 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8231 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8232 magic_null_ptid since the remote side doesn't provide a real PID.
8234 2012-01-19 Tom Tromey <tromey@redhat.com>
8236 * NEWS: Combine the two Python sections.
8238 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8240 * target.h (target_close): Update comment on the target's unpush state.
8242 2012-01-19 Pedro Alves <palves@redhat.com>
8244 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8245 linux_nat_async directly instead of going through the target
8247 * target.c (unpush_target): Close target after unpushing it, not
8250 2012-01-19 Gary Benson <gbenson@redhat.com>
8252 * mdebugread.c (sort_blocks): Replace integer constants with ones
8253 derived from FIRST_LOCAL_BLOCK.
8255 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8256 Jan Kratochvil <jan.kratochvil@redhat.com>
8259 * symfile.c (find_separate_debug_file): New function.
8260 (terminate_after_last_dir_separator): Likewise.
8261 (find_separate_debug_file_by_debuglink): Also try realpath.
8262 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8263 * configure: Regenerate.
8264 * config.in: Regenerate.
8266 2012-01-18 Doug Evans <dje@google.com>
8268 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8269 (main.o): Remove rule.
8270 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8271 (--with-sysroot): Rewrite.
8272 * configure: Regenerate.
8273 * config.in: Regenerate.
8275 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8277 * parse.c (initialize_expout): New function.
8278 (reallocate_expout): Likewise.
8279 (parse_exp_in_context): Use `initialize_expout' and
8280 `reallocate_expout' when appropriate.
8282 2012-01-18 Pedro Alves <palves@redhat.com>
8284 * record.c (struct record_breakpoint, record_breakpoint_p)
8285 (record_breakpoints): New.
8286 (record_insert_breakpoint, record_remove_breakpoint): Manage
8287 record breakpoints list. Only remove breakpoints from the
8288 inferior if they had been inserted there in the first place.
8290 2012-01-17 Doug Evans <dje@google.com>
8292 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8293 if we know we don't have a file name to look for.
8295 2012-01-17 Pedro Alves <palves@redhat.com>
8297 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8298 the frame's stop reason is UNWIND_UNAVAILABLE.
8300 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8302 Fix compilation error.
8303 * m2-exp.y (yyerror): Use ANSI C prototype.
8305 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8307 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8308 (growbuf_by_size): Likewise.
8309 (yyerror): Likewise.
8310 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8311 (modblock): Remove variable (was #if 0'ed).
8312 (parse_number): Convert prototype from K&R to ANSI C.
8313 (yyerror): Likewise.
8314 * objc-exp.y (parse_number): Likewise.
8315 (yyerror): Likewise.
8316 (yylex): Remove #if 0'ed code.
8317 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8318 (yyerror): Likewise.
8320 2012-01-16 Tom Tromey <tromey@redhat.com>
8323 * symtab.h (compare_filenames_for_search): Declare.
8324 * symtab.c (compare_filenames_for_search): New function.
8325 (iterate_over_some_symtabs): Use it.
8326 * symfile.h (struct quick_symbol_functions)
8327 <map_symtabs_matching_filename>: Change spec.
8328 * psymtab.c (partial_map_symtabs_matching_filename): Use
8329 compare_filenames_for_search. Update for new spec.
8330 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8331 compare_filenames_for_search. Update for new spec.
8332 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8334 2012-01-16 Tom Tromey <tromey@redhat.com>
8337 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8338 (struct main_type) <flag_flag_enum>: New field.
8339 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8340 * NEWS: Add entries.
8341 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8343 * python/lib/gdb/printing.py (_EnumInstance): New class.
8344 (FlagEnumerationPrinter): Likewise.
8346 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8348 * breakpoint.c (create_sals_from_address_default): New function.
8349 (create_breakpoints_sal_default): Likewise.
8350 (decode_linespec_default): Likewise.
8351 (is_marker_spec): Removed.
8352 (strace_marker_p): New function.
8353 (init_breakpoint_sal): Using `strace_marker_p' instead of
8355 (create_breakpoint): Call method `create_sals_from_address' from
8356 breakpoint_ops, replacing code that created SALs conditionally
8357 on the type of the breakpoint. Call method `create_breakpoints_sal',
8358 replacing code that created breakpoints conditionally on the type
8360 (base_breakpoint_create_sals_from_address): New function.
8361 (base_breakpoint_create_breakpoints_sal): Likewise.
8362 (base_breakpoint_decode_linespec): Likewise.
8363 (base_breakpoint_ops): Add methods
8364 `base_breakpoint_create_sals_from_address',
8365 `base_breakpoint_create_breakpoints_sal' and
8366 `base_breakpoint_decode_linespec'.
8367 (bkpt_create_sals_from_address): New function.
8368 (bkpt_create_breakpoints_sal): Likewise.
8369 (bkpt_decode_linespec): Likewise.
8370 (tracepoint_create_sals_from_address): Likewise.
8371 (tracepoint_create_breakpoints_sal): Likewise.
8372 (tracepoint_decode_linespec): Likewise.
8373 (strace_marker_create_sals_from_address): Likewise.
8374 (strace_marker_create_breakpoints_sal): Likewise.
8375 (strace_marker_decode_linespec): Likewise.
8376 (strace_marker_breakpoint_ops): New variable.
8377 (addr_string_to_sals): Remove `marker_spec'. Call method
8378 `decode_linespec' from breakpoint_ops, replacing code that decoded
8379 an address string into a SAL. Use `strace_marker_p' instead of
8381 (strace_command): Decide whether we are dealing with a static
8382 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8383 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8384 * breakpoint.h (linespec_result, linespec_sals): New forward
8386 (breakpoint_ops) <create_sals_from_address>,
8387 <create_breakpoints_sal>, <decode_linespec>: New methods.
8389 2012-01-14 Doug Evans <dje@google.com>
8391 * NEWS: Update text for "maint set python print-stack".
8392 It is deprecated in gdb 7.4 and deleted in 7.5.
8394 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8396 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8399 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8401 * configure: Regenerate.
8402 * config.in: Regenerate.
8404 2012-01-12 Keith Seitz <keiths@redhat.com>
8407 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8408 (ANONYMOUS_UNION_NAME): Define.
8409 (is_path_expr_parent): New function.
8410 (get_path_expr_parent): New function.
8411 (is_anonymous_child): New function.
8412 (create_child_with_value): If the child is anonymous and without
8413 a name, assign an object name to it.
8414 (c_describe_child): Use get_path_expr_parent to determine
8415 the parent expression.
8416 If there field represents an anonymous struct or union and
8417 has no name, set an appropriate display name and expression.
8418 (cplus_describe_child): Likewise.
8420 2012-01-12 Pedro Alves <palves@redhat.com>
8422 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8423 available when %ebp is found to be zero (outermost).
8425 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8427 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8428 an internal gdb_static_assert.
8429 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8431 2012-01-11 Tom Tromey <tromey@redhat.com>
8434 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8435 catch" and "catch throw".
8437 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8439 * blockframe.c (block_innermost_frame): Start search from selected
8440 frame, if present, or otherwise the current frame.
8442 * c-exp.y (variable): Update innermost_block for
8443 'block COLONCOLON NAME' clause.
8444 * m2-exp.y (variable): Ditto.
8445 * objc-exp.y (variable): Ditto.
8447 2012-01-10 Tom Tromey <tromey@redhat.com>
8450 * python/python.c (finish_python_initialization): Set sys.argv.
8452 2012-01-10 Doug Evans <dje@google.com>
8454 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8455 "want_line_info". All callers updated.
8456 (dwarf_decode_lines_1): New function.
8457 (handle_DW_AT_stmt_list): Add function comment.
8458 New arg "want_line_info". All callers updated.
8459 (read_file_scope,read_type_unit_scope): Move comment from
8460 handle_DW_AT_stmt_list to here.
8462 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8464 Fix regression after libiberty/ update for GCC PR 6057 and others.
8465 * c-exp.y (operator) <OPERATOR DELETE>
8466 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8467 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8468 (make_builtin_type, make_name): New variable i, add gdb_assert.
8469 (operator) <OPERATOR NEW>: Update ARGS to 3.
8470 (operator) <OPERATOR DELETE>: Add trailing space.
8471 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8472 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8473 * cp-support.c (cp_canonicalize_string): Check NULL from
8474 cp_comp_to_string, call warning and return.
8476 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8478 Fix duplicate .o files after omitting libbfd.a.
8479 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8480 (SFILES): Add corelow.c.
8481 (COMMON_OBS): Add corelow.o.
8482 (ALLDEPFILES): Remove corelow.c.
8483 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8484 * config/alpha/alpha-osf3.mh: Likewise.
8485 * config/alpha/fbsd.mh: Likewise.
8486 * config/arm/nbsdaout.mh: Likewise.
8487 * config/arm/nbsdelf.mh: Likewise.
8488 * config/i386/i386gnu.mh: Likewise.
8489 * config/ia64/hpux.mh: Likewise.
8490 * config/ia64/linux.mh: Likewise.
8491 * config/m32r/linux.mh: Likewise.
8492 * config/m68k/linux.mh: Likewise.
8493 * config/mips/irix5.mh: Likewise.
8494 * config/mips/irix6.mh: Likewise.
8495 * config/pa/hpux.mh: Likewise.
8496 * config/pa/linux.mh: Likewise.
8497 * config/powerpc/aix.mh: Likewise.
8498 * config/sparc/linux.mh: Likewise.
8499 * config/sparc/linux64.mh: Likewise.
8500 * config/sparc/sol2.mh: Likewise.
8501 * config/vax/vax.mh: Likewise.
8502 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8503 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8504 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8505 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8506 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8507 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8508 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8509 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8510 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8511 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8512 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8513 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8514 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8515 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8516 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8517 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8518 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8519 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8520 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8521 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8522 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8523 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8524 corelow.o from gdb_target_obs.
8525 * corefile.c (core_target): Update the comment on NULL value.
8526 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8527 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8528 MATCHES. Drop YUMMY set on NULL.
8529 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8530 reclaim CORE_DATA if it is already NULL.
8532 2012-01-09 Doug Evans <dje@google.com>
8534 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8535 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8537 2012-01-09 Keith Seitz <keiths@redhat.com>
8539 * breakpoint.c (wrapper.h): Don't include.
8541 2012-01-09 Keith Seitz <keiths@redhat.com>
8543 * Makefile.in (SFILES): Remove wrapper.c.
8544 (HFILES_NO_SRCDIR): Remove wrapper.h.
8545 (COMMON_OBS): Remove wrapper.o.
8546 * cli/cli-interp.c: Don't inlude wrapper.h.
8547 * corelow.c: Likewise.
8548 (core_open): Replace gdb_target_find_new_threads with
8549 TRY_CATCH around target_find_new_threads.
8550 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8551 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8552 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8553 evaluate_expression.
8554 (varobj_set_value): Likewise for evaluate_expression and
8556 (install_new_variable): Likewise for value_fetch_lazy.
8557 (adjust_value_for_child_access): Likewise for value_ind.
8558 (c_describe_child): Likewise for value_subscript and
8560 (c_value_of_root): Likewise for evaluate_expression.
8561 * wrapper.c: Remove.
8562 * wrapper.h: Remove.
8564 2012-01-09 Doug Evans <dje@google.com>
8566 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8567 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8568 "abfd" args with "section". All callers updated.
8569 Error checking code moved ...
8570 (error_check_comp_unit_head): ... here. New function.
8571 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8572 Delete arg "abfd". New arg "type_offset". All callers updated.
8573 (create_debug_types_hash_table): Simplify by using
8574 read_and_check_type_unit_head.
8576 * parser-defs.h (namecopy): Delete.
8577 * parse.c (namecopy, namecopy_size): Move into copy_name.
8579 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8581 Partially fix duplicate .o files after omitting libbfd.a.
8582 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8583 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8584 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8585 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8586 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8587 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8588 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8590 2012-01-09 Pedro Alves <palves@redhat.com>
8592 * MAINTAINERS: Update my email address.
8594 2012-01-08 Doug Evans <dje@google.com>
8596 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8597 n_type_units. Rename type_comp_units to all_type_units.
8599 (add_signatured_type_cu_to_table): Renamed from
8600 add_signatured_type_cu_to_list. All callers updated.
8602 * gdbtypes.h (struct cplus_struct_type): Delete member
8603 nfn_fields_total. All uses removed.
8605 2012-01-06 Doug Evans <dje@google.com>
8607 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8609 (dwarf2_find_comp_unit): Delete.
8610 (process_psymtab_comp_unit): Make result "void".
8611 Delete args buffer, info_ptr, buffer_size, and replace with
8612 "section". All callers updated.
8613 (dwarf2_build_psymtabs_hard): Simplify.
8615 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8616 Thiago Jung Bauermann <bauerman@br.ibm.com>
8618 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8619 before `struct gdb_exception'.
8620 * breakpoint.c (update_global_location_list_nothrow)
8621 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8622 * cp-abi.c (value_rtti_type): Likewise.
8623 * cp-support.c (cp_validate_operator): Likewise.
8624 * infrun.c (insert_exception_resume_breakpoint)
8625 (check_exception_resume, keep_going): Likewise.
8626 * mi-interp.c (mi_breakpoint_created)
8627 (mi_breakpoint_modified): Likewise.
8628 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8629 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8630 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8632 2012-01-05 Doug Evans <dje@google.com>
8634 * dwarf2read.c (statement_prologue): Delete, unused.
8636 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8637 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8639 * dwarf2read.c (comp_unit_header): Delete, unused.
8641 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8643 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8644 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8646 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8648 * infrun.c (normal_stop): Don't skip calling the normal_stop
8649 observers if the thread was doing a multi-step, but stopped for
8650 some reason other than stepping.
8652 2012-01-05 Pedro Alves <alves.ped@gmail.com>
8654 * cli/cli-decode.h: Add comments.
8655 (CMD_LIST_AMBIGUOUS): Moved to command.h
8656 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8657 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8658 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8659 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8660 (add_com, add_com_alias, add_info, add_info_alias)
8661 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8663 * command.h: Add and adjust comments.
8664 (CMD_LIST_AMBIGUOUS): Moved here.
8665 (help_cmd, help_cmd_list): Delete declarations.
8667 2012-01-04 Doug Evans <dje@google.com>
8669 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8670 All callers updated.
8671 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8672 Replace all arguments with "per_cu". All callers updated.
8674 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8676 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8677 New arg "per_cu". All callers updated.
8679 Delete #if 0'd out code.
8680 * language.c (binop_result_type): Delete.
8681 (simple_type, ordered_type, same_type, integral_type): Delete.
8682 (numeric_type, character_type, string_type, boolean_type): Delete.
8683 (float_type, structured_type): Delete.
8684 * language.h: Update.
8686 2012-01-04 Tom Tromey <tromey@redhat.com>
8688 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8690 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8692 * corefile.c (close_exec_file): Delete.
8693 (reopen_exec_file): Remove commented out code that seems related
8694 to close_exec_file, which is being deleted here.
8695 * inferior.h (close_exec_file): Delete.
8696 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8698 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8700 * ada-lang.c: #include "cli/cli-utils.h".
8701 (get_selections): Use skip_spaces.
8702 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8703 (catch_ada_exception_command_split): Use skip_spaces.
8704 (ada_decode_assert_location): Likewise.
8706 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8708 * linespec.c (decode_line_internal): Check for C++ or Java
8709 compound constructs only if the current language is C, C++
8712 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8715 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8716 Joel Brobecker <brobecker@adacore.com>
8717 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8718 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8720 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8721 fall through into AT_ENTRY_POINT.
8722 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8724 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8725 PPC_INSN_SIZE skip to 3 times.
8727 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8729 * linespec.c (add_minsym): Preserve function descriptors.
8731 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8733 * breakpoint.c (all_locations_are_pending): Consider locations
8734 in program spaces executing during startup pending as well.
8736 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8738 Copyright year update in most files of the GDB Project.
8740 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8742 * copyright.sh: Delete.
8743 * copyright.py: Rewrite.
8745 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8747 * gnulib/extra/update-copyright: New file, imported from gnulib.
8749 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8751 * README (Copyright and License Notices): New section.
8753 2012-01-03 Tom Tromey <tromey@redhat.com>
8756 * python/py-value.c (valpy_dereference, valpy_get_address
8757 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8758 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8759 (valpy_absolute, valpy_richcompare): Free intermediate values.
8761 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8763 * ada-lang.c: Reformat the copyright notice.
8765 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8767 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8768 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8769 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8770 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8771 Revert this part of:
8772 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8773 Build gdb directly from *.o files not using libgdb.a.
8774 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8776 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8778 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8779 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8780 Reformat the copyright header.
8782 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8784 Revert this part of:
8785 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8786 Remove the gdbtui binary.
8787 * gdb.c (main): Remove args.interpreter_p initialization.
8788 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8789 * main.h (struct captured_main_args): Remove interpreter_p.
8791 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8793 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8795 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8797 * top.c (print_gdb_version): Update copyright year.
8799 2012-01-02 Yao Qi <yao@codesourcery.com>
8801 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8803 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8804 Joel Brobecker <brobecker@adacore.com>
8806 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8807 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8809 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8810 fall through into AT_ENTRY_POINT.
8811 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8813 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8814 PPC_INSN_SIZE skip to 3 times.
8816 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8818 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
8820 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
8822 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8824 Build gdb directly from *.o files not using libgdb.a.
8825 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
8826 (COMMON_OBS): Remove solib-target.o.
8827 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
8828 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8829 (LIBGDB_OBS, libgdb.a): Move it above.
8830 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
8831 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
8832 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
8833 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
8834 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
8835 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
8836 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
8837 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
8838 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
8839 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
8840 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
8841 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
8842 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
8843 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
8844 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8845 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
8846 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
8847 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8848 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
8849 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
8850 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
8851 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
8852 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
8853 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
8854 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
8855 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
8856 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
8858 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8860 Remove the gdbtui binary.
8861 * .gitignore (/gdbtui): Remove.
8862 * Makefile.in (TUI): Remove.
8863 (SUBDIR_TUI_OBS): Remove tui-main.o.
8864 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
8865 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
8866 (tui-main.o): Remove.
8867 (all_object_files): Remove tui-main.o.
8868 * NEWS: New note for the gdbtui removal.
8869 * configure: Rebuilt.
8870 * configure.ac: No longer add all-tui, clean-tui, install-tui and
8871 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
8872 CONFIG_UNINSTALL respectively.
8873 * gdb.c (main): Remove args.interpreter_p initialization.
8874 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8875 * main.h (struct captured_main_args): Remove interpreter_p.
8876 * tui/tui-main.c: Remove.
8878 2012-01-01 Doug Evans <dje@google.com>
8880 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
8881 (dwarf2_physname, read_import_statement): Ditto.
8882 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
8883 (process_structure_scope read_subroutine_type): Ditto.
8884 (read_typedef, load_partial_dies, read_partial_die): Ditto.
8885 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
8886 (dwarf2_fetch_die_location_block): Ditto.
8887 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
8889 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
8890 All callers updated.
8891 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
8892 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
8893 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
8895 * dwarf2read.c (load_cu): Move assert to more useful location.
8897 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
8898 All callers updated.
8900 * dwarf2read.c (dwarf2_per_objfile): Add comment.
8901 (dwarf2_elf_names): Minor reformat.
8902 (dwarf2_per_cu_data): Tweak comment.
8903 (dwarf2_read_section): Fix comment.
8904 (create_all_comp_units): Fix comment.
8905 (load_full_comp_unit): Fix comment.
8906 (process_full_comp_unit): Fix comment.
8907 (read_signatured_type): Fix comment.
8909 For older changes see ChangeLog-2011.
8915 version-control: never