1 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3 * linespec.c (linespec_lexer_lex_number): Update comments,
4 change the return and add check to make sure the input is
6 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
7 false, call linespec_lexer_lex_string.
9 2012-07-24 Tom Tromey <tromey@redhat.com>
11 * symfile.c (symbol_file_add): Don't open BFD twice.
13 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
15 * breakpoint.c (create_breakpoint): Store condition for pending
18 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
20 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
21 (m68k_return_value): Handle complex types like structures.
22 (m68k_svr4_return_value): Likewise.
24 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
26 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
27 parameters to bfd_get_section_name.
29 2012-07-24 Yao Qi <yao@codesourcery.com>
31 * cli/cli-setshow.c: Handle case 'var_uinteger'
32 and 'var_zuninteger' together. Handle case 'var_integer' and
33 'var_zinteger' together.
35 2012-07-23 Keith Seitz <keiths@redhat.com>
37 * linespec.c (convert_linespec_to_sal): Don't add
38 any symbols to the result vector if symbol_to_sal
41 2012-07-23 Keith Seitz <keiths@redhat.com>
43 * linespec.c (decode_objc): Record the function name
46 2012-07-23 Tom Tromey <tromey@redhat.com>
48 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
50 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
51 (map_vmap): Acquire a reference to the BFD.
53 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
55 * p-valprint.c (pascal_object_print_value): Replace potentially
56 unsafe alloca with xmalloc/xfree.
57 * valops.c (search_struct_method): Likewise.
59 2012-07-23 Tom Tromey <tromey@redhat.com>
61 * solib-svr4.c (enable_break): Update.
62 * bfd-target.h (target_bfd_reopen): Update documentation.
64 2012-07-23 Tom Tromey <tromey@redhat.com>
66 * symfile.c (separate_debug_file_exists): Update.
67 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
68 (reread_symbols): Update.
69 * elfread.c (build_id_verify): Update.
70 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
71 bfd_open_maybe_remote.
73 2012-07-23 Tom Tromey <tromey@redhat.com>
75 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
77 2012-07-23 Tom Tromey <tromey@redhat.com>
79 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
81 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
83 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
84 * machoread.c (macho_add_oso_symfile): Make a cleanup for
86 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
87 * objfiles.c (allocate_objfile): Acquire a new reference.
88 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
89 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
90 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
92 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
94 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
95 make a cleanup for 'abfd'.
96 (symbol_file_add): Make a BFD cleanup.
98 2012-07-23 Tom Tromey <tromey@redhat.com>
100 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
101 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
102 * corelow.c (core_open): Use gdb_bfd_fopen.
103 * dsrec.c (load_srec): Use gdb_bfd_openr.
104 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
105 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
106 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
107 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
108 (gdb_bfd_fdopenr): New functions.
109 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
110 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
111 (gdb_bfd_fdopenr): Declare.
112 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
113 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
114 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
115 gdb_bfd_openr_next_archived_file.
116 (macho_check_dsym): Use gdb_bfd_openr.
117 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
118 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
119 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
120 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
122 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
123 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
124 gdb_bfd_openr_next_archived_file.
125 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
127 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
129 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
130 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
131 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
132 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
133 (symfile_bfd_open): Use gdb_bfd_fopen.
134 (generic_load): Use gdb_bfd_openr.
135 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
137 2012-07-23 Tom Tromey <tromey@redhat.com>
139 * bfd-target.c (target_bfd_reopen): Update.
140 * cli/cli-dump.c (bfd_openr_with_cleanup)
141 (bfd_openw_with_cleanup): Update.
142 * corelow.c (core_open): Update.
143 * dsrec.c (load_srec): Update.
144 * exec.c (exec_file_attach): Update.
145 * gcore.c (create_gcore_bfd): Update.
146 * gdb_bfd.c (gdb_bfd_ref): Return void.
147 (gdb_bfd_open): Update.
148 * gdb_bfd.h (gdb_bfd_ref): Return void.
150 * jit.c (jit_bfd_try_read_symtab): Update.
151 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
152 * machoread.c (macho_symfile_read_all_oso): Update.
153 (macho_check_dsym): Update.
154 * procfs.c (insert_dbx_link_bpt_in_file): Update.
155 * remote-m32r-sdi.c (m32r_load): Update.
156 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
157 * rs6000-nat.c (add_vmap): Update.
158 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
160 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
161 * solib-spu.c (spu_bfd_open): Update.
162 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
163 * spu-linux-nat.c (spu_bfd_open): Update.
164 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
165 (generic_load): Update.
166 * windows-nat.c (windows_make_so): Update.
168 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
170 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
172 2012-07-20 Jeff Kenton <jkenton@tilera.com>
174 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
175 SIGTRAMP_FRAME unwinding.
177 2012-07-20 Doug Evans <dje@google.com>
179 * NEWS: Document new options "set/show use-deprecated-index-sections",
180 and delete reference to --use-deprecated-index-sections.
181 * symfile.h (use_deprecated_index_sections): Delete.
182 * dwarf2read.c (use_deprecated_index_sections): Make static.
183 (read_index_from_section): Update wording of how to load
184 deprecated index sections.
185 (_initialize_dwarf2_read): New options
186 "set/show use-deprecated-index-sections".
187 * main.c (captured_main): Delete --use-deprecated-index-sections.
189 2012-07-20 Pedro Alves <palves@redhat.com>
194 * infrun.c (handle_inferior_event) <new thread>: Don't special
196 <TARGET_WAITKIND_SPURIOUS>: Ditto.
197 * linux-thread-db.c (thread_get_info_callback): Don't return early
198 if the thread is zombie.
199 (thread_from_lwp): Change return type to void. Rewrite stale
201 (attach_thread): Don't return early if the thread is zombie,
202 instead set its "dying" flag.
203 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
204 (find_new_threads_callback): Don't return early if the thread is
207 2012-07-20 Pedro Alves <palves@redhat.com>
209 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
210 * target.c (target_wait): Likewise.
211 (str_comma_list_concat_elem, do_option, target_options_to_string):
213 * target.h (target_options_to_string): Declare.
215 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
216 Tom Tromey <tromey@redhat.com>
218 * dwarf2read.c (dwarf_decode_macros)
219 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
220 DW_MACRO_GNU_transparent_include_alt>: New cases.
221 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
222 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
224 2012-07-20 Tom Tromey <tromey@redhat.com>
226 * dwarf2read.c (try_open_dwo_file): Don't call
227 gdb_bfd_stash_filename.
229 2012-07-20 Pedro Alves <palves@redhat.com>
231 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
232 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
233 (i386_process_record): Tweak description comments.
235 2012-07-20 Pedro Alves <palves@redhat.com>
237 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
238 (i386_process_record): Use record_read_memory.
239 * record.c (record_read_memory): New function.
240 (record_arch_list_add_mem, record_exec_insn): Use
242 * record.h (record_read_memory): Declare.
244 2012-07-20 Yao Qi <yao@codesourcery.com>
246 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
249 2012-07-19 Pedro Alves <palves@redhat.com>
251 * record.c (record_resume): Ask the target beneath to report all
254 2012-07-19 Doug Evans <dje@google.com>
256 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
257 there's no section at address zero.
258 (dwarf2_record_block_ranges): Ditto.
260 2012-07-19 Yao Qi <yao@codesourcery.com>
262 * command.h, remote.c: Fix a typo in comment.
264 2012-07-19 Tom Tromey <tromey@redhat.com>
267 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
268 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
269 OP_DECLTYPE>: New cases.
270 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
271 (type_exp): Add new productions.
272 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
274 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
276 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
277 OP_DECLTYPE>: New case.
278 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
280 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
281 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
283 2012-07-19 Tom Tromey <tromey@redhat.com>
285 * c-exp.y (enum token_flags): New.
286 (struct token) <cxx_only>: Remove.
288 (tokentab3, tokentab2, ident_tokens): Update.
289 (lex_one_token): Update. Handle FLAG_SHADOW.
291 2012-07-19 Tom Tromey <tromey@redhat.com>
293 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
294 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
295 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
296 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
297 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
298 type_exp production where appropriate.
299 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
300 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
301 <UNOP_MEMVAL_TYPE>: New case.
302 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
303 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
304 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
305 <UNOP_MEMVAL_TYPE>: New case.
306 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
307 UNOP_REINTERPRET_CAST>: Update.
308 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
309 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
310 UNOP_REINTERPRET_CAST>: Update.
311 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
312 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
313 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
316 2012-07-19 Yao Qi <yao@codesourcery.com>
317 Jan Kratochvil <jan.kratochvil@redhat.com>
319 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
320 and case 'var_optional_filename' together.
321 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
322 instead of add_setshow_optional_filename_cmd for setshow command
323 'args'. Set completer for 'set args'.
325 2012-07-18 Doug Evans <dje@google.com>
327 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
328 * common/gdb_vecs.c: New file, contents from utils.c.
329 * common/host-defs.h: New file, contents from defs.h.
330 * utils.h: New file, contents from defs.h.
331 * defs.h: Move all declarations of objects defined in utils.c
332 to utils.h (except QUIT() and related).
333 #include "utils.h", "host-defs.h".
334 * probe.h (probe_p): Move here from gdb_vecs.h.
335 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
336 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
337 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
338 * Makefile.in (SFILES): Add common/gdb_vecs.c.
339 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
340 (COMMON_OBS): Add gdb_vecs.o.
341 (gdb_vecs.o): New rule.
343 2012-07-18 Keith Seitz <keiths@redhat.com>
345 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
346 parameter. If non-zero, use SYMNAME as the canonical name
349 (convert_linespec_to_sals): Use add_sal_to_sals for
351 (decode_line_full): No need to "fill in missing canonical names"
352 anymore. Simply make cleanups for the allocated names.
354 2012-07-18 Keith Seitz <keiths@redhat.com>
356 * linespec.c (struct linespec): Constify expression,
357 source_filename, function_name, and label_name.
358 (symbol_not_found_error): Make all parameters const.
359 (linespec_parser_delete): No need to check for NULL
360 when using xfree. Cast const char * to char * for xfree.
362 2012-07-18 Keith Seitz <keiths@redhat.com>
364 * breakpoint.c (invalid_thread_id_error): New function.
365 (find_condition_and_thread): Use invalid_thread_id_error.
366 (watch_command_1): Likewise.
368 2012-07-18 Tom Tromey <tromey@redhat.com>
370 * cc-with-index.sh, cc-with-dwz.sh: Remove.
371 * contrib/cc-with-tweaks.sh: New file.
373 2012-07-18 Tom Tromey <tromey@redhat.com>
375 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
376 (locate_dwz_sections): Recognize .gdb_index.
377 (create_cus_from_index_list): New function.
378 (create_cus_from_index): Use it. Handle .dwz data.
379 (read_index_from_section): New function, extracted from
381 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
384 2012-07-18 Tom Tromey <tromey@redhat.com>
386 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
387 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
389 (struct dwz_file): New.
390 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
391 (locate_dwz_sections, dwarf2_get_dwz_file)
392 (get_abbrev_section_for_cu): New functions.
393 (error_check_comp_unit_head, read_and_check_comp_unit_head)
394 (read_and_check_type_unit_head): Add abbrev_section argument.
395 (create_debug_types_hash_table): Update.
396 (init_cutu_and_read_dies): Use proper abbrev section.
397 (init_cutu_and_read_dies_no_follow): Likewise.
398 (set_partial_user): Do nothing if PST==NULL.
399 (read_comp_units_from_section): New function.
400 (create_all_comp_units): Use it.
401 (scan_partial_symbols, partial_die_parent_scope): Update.
402 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
403 (process_imported_unit_die, read_partial_die): Handle .dwz files.
404 (find_partial_die): Add offset_in_dwz argument. Update.
405 (guess_partial_die_structure_name, fixup_partial_die): Update.
406 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
407 DW_FORM_GNU_strp_alt.
408 (read_indirect_string_from_dwz): New function.
409 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
410 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
411 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
412 (follow_die_offset): Add offset_in_dwz argument.
413 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
414 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
415 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
416 Handle new macro forms.
417 (dwarf_decode_macros): Update.
418 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
419 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
420 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
421 (create_debug_types_hash_table): Use correct abbrev section.
422 (get_debug_line_section): New function.
423 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
424 (process_full_comp_unit): Pass 'required' argument to
425 end_symtab_get_static_block.
426 * buildsym.h (end_symtab_get_static_block): Update.
427 * buildsym.c (end_symtab_get_static_block): Add 'required'
429 (end_symtab, end_expandable_symtab): Update.
431 2012-07-18 Tom Tromey <tromey@redhat.com>
433 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
435 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
436 (zlib_decompress_section): Remove.
437 (dwarf2_read_section): Use gdb_bfd_map_section.
438 (munmap_section_buffer): Remove.
439 (free_dwo_file, dwarf2_per_objfile_free): Don't use
440 munmap_section_buffer.
441 * gdb_bfd.c: Include zlib.h, sys/mman.h.
442 (struct gdb_bfd_section_data): New.
443 (free_one_bfd_section): New function.
444 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
445 (get_section_descriptor, zlib_decompress_section)
446 (gdb_bfd_map_section): New functions.
447 * gdb_bfd.h (gdb_bfd_map_section): Declare.
449 2012-07-18 Tom Tromey <tromey@redhat.com>
451 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
453 2012-07-18 Tom Tromey <tromey@redhat.com>
455 * gdb_bfd.c (struct gdb_bfd_data): New.
456 (gdb_bfd_cache): New global.
457 (struct gdb_bfd_cache_search): New.
458 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
459 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
460 * gdb_bfd.h (gdb_bfd_open): Declare.
462 2012-07-18 Tom Tromey <tromey@redhat.com>
464 * utils.c (make_cleanup_bfd_unref): Rename from
465 make_cleanup_bfd_close.
466 * defs.h (make_cleanup_bfd_unref): Rename from
467 make_cleanup_bfd_close.
468 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
469 (bfd_openw_with_cleanup): Update.
470 * corelow.c (core_open): Update.
471 * dsrec.c (load_srec): Update.
472 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
473 * remote-m32r-sdi.c (m32r_load): Update.
474 * remote-mips.c (mips_load_srec): Update.
475 (pmon_load_fast): Update.
476 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
478 (darwin_bfd_open): Update.
479 * solib.c (solib_bfd_fopen): Update.
480 * symfile-mem.c (symbol_file_add_from_memory): Update.
481 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
482 (symfile_bfd_open): Update.
483 (generic_load): Update.
485 2012-07-18 Tom Tromey <tromey@redhat.com>
487 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
488 (pmon_load_fast): Likewise.
489 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
490 (m32r_upload_command): Likewise.
491 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
492 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
493 Use make_cleanup_bfd_close.
495 2012-07-18 Tom Tromey <tromey@redhat.com>
497 * symfile.c (symfile_bfd_open): Don't copy name. Call
498 gdb_bfd_stash_filename.
499 (load_command): Open the new BFD before freeing the old.
500 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
501 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
502 Call gdb_bfd_stash_filename.
503 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
504 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
505 gdb_bfd_stash_filename.
506 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
508 * rs6000-nat.c (add_vmap): Don't copy filename. Call
509 gdb_bfd_stash_filename.
510 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
511 * machoread.c (macho_add_oso_symfile): Call
512 gdb_bfd_stash_filename.
513 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
514 gdb_bfd_stash_filename.
515 (macho_check_dsym): Don't copy filename. Call
516 gdb_bfd_stash_filename.
517 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
518 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
519 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
520 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
521 * exec.c (exec_close): Don't free the BFD's filename.
522 (exec_file_attach): Don't copy the filename. Call
523 gdb_bfd_stash_filename.
524 * corelow.c (core_close): Don't free the BFD's filename.
525 (core_open): Call gdb_bfd_stash_filename.
526 * corefile.c (reopen_exec_file): Remove #if 0 code.
527 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
529 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
531 2012-07-18 Tom Tromey <tromey@redhat.com>
533 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
535 (free_dwo_file): Use gdb_bfd_unref.
536 * cli/cli-dump.c: Include gdb_bfd.h.
537 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
538 (bfd_openr_with_cleanup): Likewise.
539 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
541 * utils.c: Include gdb_bfd.h.
542 (do_bfd_close_cleanup): Use gdb_bfd_unref.
543 * symfile.c: Include gdb_bfd.h.
544 (separate_debug_file_exists): Use gdb_bfd_unref.
545 (bfd_open_maybe_remote): Use gdb_bfd_ref.
546 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
547 (generic_load): Use gdb_bfd_ref.
548 (reread_symbols): Use gdb_bfd_unref.
549 * symfile-mem.c: Include gdb_bfd.h.
550 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
551 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
552 * solib.c: Include gdb_bfd.h.
553 (solib_bfd_fopen): Use gdb_bfd_ref.
554 (solib_bfd_open): Use gdb_bfd_unref.
555 (free_so_symbols): Use gdb_bfd_unref.
556 (reload_shared_libraries_1): Use gdb_bfd_unref.
557 * solib-spu.c: Include gdb_bfd.h.
558 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
559 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
561 * solib-frv.c: Include gdb_bfd.h.
562 (enable_break2): Use gdb_bfd_unref.
563 * solib-dsbt.c: Include gdb_bfd.h.
564 (enable_break2): Use gdb_bfd_unref.
565 * solib-darwin.c: Include gdb_bfd.h.
566 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
568 (darwin_bfd_open): Use gdb_bfd_unref.
569 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
570 * remote-mips.c: Include gdb_bfd.h.
571 (mips_load_srec): Use gdb_bfd_ref.
572 (pmon_load_fast): Use gdb_bfd_ref.
573 * remote-m32r-sdi.c: Include gdb_bfd.h.
574 (m32r_load): Use gdb_bfd_ref.
575 * record.c: Include gdb_bfd.h.
576 (record_save_cleanups): Use gdb_bfd_unref.
577 (cmd_record_save): Use gdb_bfd_unref.
578 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
580 * objfiles.h (gdb_bfd_close_or_warn): Remove.
581 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
582 * objfiles.c: Include gdb_bfd.h.
583 (free_objfile): Use gdb_bfd_unref.
584 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
586 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
587 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
588 (macho_check_dsym): Likewise.
589 * m32r-rom.c: Include gdb_bfd.h.
590 (m32r_load): Use gdb_bfd_ref.
591 (m32r_upload_command): Use gdb_bfd_ref.
592 * jit.c: Include gdb_bfd.h.
593 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
594 * gdb_bfd.h: New file.
595 * gdb_bfd.c: New file.
596 * gcore.c: Include gdb_bfd.h.
597 (create_gcore_bfd): Use gdb_bfd_ref.
598 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
599 (gcore_command): Use gdb_bfd_unref.
600 * exec.c: Include gdb_bfd.h.
601 (exec_close): Use gdb_bfd_unref.
602 (exec_close_1): Use gdb_bfd_unref.
603 (exec_file_attach): Use gdb_bfd_ref.
604 * elfread.c: Include gdb_bfd.h.
605 (build_id_verify): Use gdb_bfd_unref.
606 * dsrec.c: Include gdb_bfd.h.
607 (load_srec): Use gdb_bfd_ref.
608 * corelow.c: Include gdb_bfd.h.
609 (core_close): Use gdb_bfd_unref.
610 (core_open): Use gdb_bfd_ref.
611 * bfd-target.c: Include gdb_bfd.h.
612 (target_bfd_xclose): Use gdb_bfd_unref.
613 (target_bfd_reopen): Use gdb_bfd_ref.
614 * Makefile.in (SFILES): Add gdb_bfd.c.
615 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
616 (COMMON_OBS): Add gdb_bfd.o.
618 2012-07-18 Keith Seitz <keiths@redhat.com>
620 * breakpoint.c (find_condition_and_thread): Initialize
622 (create_breakpiont): find_condition_and_thread will now
623 initialize COND_STRING, THREAD, and REST (and TASK).
624 (addr_string_to_sals): Likewise.
626 2012-07-18 Pedro Alves <palves@redhat.com>
628 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
629 Pull the single step breakpoints out of the target.
631 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
633 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
634 * stap-probe.c (compile_probe_arg): Likewise.
636 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
638 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
639 (elf_compile_to_ax): Likewise.
640 * infrun.c (insert_exception_resume_from_probe): Likewise.
641 (check_exception_resume): Remove `objfile' variable.
642 * probe.c (find_probe_by_pc): Remove `objfile' argument.
643 (struct probe_and_objfile, probe_and_objfile_s): Delete.
644 (collect_probes): Adjust return value to `VEC (probe_p) *'.
645 (compare_entries): Rename to...
646 (compare_probes): ...this. Adjust function to work with
647 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
649 (gen_ui_out_table_header_info): Adjust `probes' argument to be
651 (print_ui_out_info): Adjust argument to be `struct probe *'.
652 (info_probes_for_ops): Adjust internal computations to use
654 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
655 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
656 gen_info_probes_table_values>: Remove `objfile' argument.
657 (struct probe) <objfile>: New field.
658 (find_probe_by_pc): Remove `objfile' argument.
659 * stap-probe.c (stap_parse_probe_arguments): Likewise.
660 (stap_get_probe_argument_count): Likewise.
661 (stap_get_arg): Likewise.
662 (stap_evaluate_probe_argument): Likewise.
663 (stap_compile_to_ax): Likewise.
664 (compile_probe_arg): Refactor not to pass `objfile' anymore.
665 (handle_stap_probe): Fill `objfile' field from `struct probe'.
666 (stap_gen_info_probes_table_header): Remove `objfile' argument.
667 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
668 sym_compile_to_ax>: Likewise.
670 2012-07-18 Terry Guo <terry.guo@arm.com>
673 * defs.h (GDB_MI_MSG_WIDTH): New.
674 * ser_base (ser_base_read_error_fd): New function.
675 (do_ser_base_readchar): Poll error file descriptor as well as
677 (generic_readchar): Refactor error handling.
679 2012-07-18 Joel Brobecker <brobecker@adacore.com>
681 * NEWS: Create a new section for the next release branch.
682 Rename the section of the current branch, now that it has
685 2012-07-18 Joel Brobecker <brobecker@adacore.com>
687 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
688 * version.in: Bump version to 7.5.50.20120718-cvs.
690 2012-07-17 Keith Seitz <keiths@redhat.com>
692 * linespec.c (linespec_parse_line_offset): Make parameter
695 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
698 * f-valprint.c (info_common_command): New variable frame_id.
699 Reinitialize FI form FRAME_ID after each print_variable_and_value.
700 * printcmd.c (print_variable_and_value): Extend function comment.
701 Add comment for invalidated FRAME.
702 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
703 FI form FRAME_ID after each print_frame_local_vars.
704 (struct print_variable_and_value_data): Change frame to frame_id.
705 (do_print_variable_and_value): New variable frame, initialize it from
706 p->frame_id. Add comment for invalidated FRAME.
707 (print_frame_local_vars, print_frame_arg_vars): New function comment.
708 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
709 for invalidated FRAME.
711 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
712 Pedro Alves <palves@redhat.com>
714 * linux-nat.c (linux_nat_detach): Don't unregister from the event
717 2012-07-16 Tom Tromey <tromey@redhat.com>
719 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
721 2012-07-15 Doug Evans <dje@google.com>
723 * dwarf2read.c (stmt_list_hash): New struct.
724 (type_unit_group): Embed "per_cu" member, remove pointer.
725 New union member "t", move member "tus" into it, all uses updated.
726 New member "hash", replaces member "line_offset, all uses updated.
727 (quick_file_names): Replace member "offset" with "hash", all uses
729 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
730 (hash_file_name_entry, eq_file_name_entry): Call them.
731 (hash_type_unit_group, eq_type_unit_group): Ditto.
732 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
733 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
734 (dw2_get_file_names): Update.
735 (create_type_unit_group): Replace "per_cu" arg with "cu".
736 All callers updated. Fix "quick" (.gdb_index) handling.
737 (get_type_unit_group): Replace "per_cu" arg with "cu".
739 (build_type_unit_groups): Don't reset tu_stats.
741 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
742 "tab_cur_size". Change member "tab" to be a htab_t.
743 (create_filename_seen_cache): Update.
744 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
745 (filename_seen): Update.
747 2012-07-13 Doug Evans <dje@google.com>
749 * symtab.c (filename_seen): Update comment.
751 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
752 Doug Evans <dje@google.com>
754 * buildsym.c (end_symtab_1): Split it to ...
755 (end_symtab_get_static_block): ... this ...
756 (end_symtab_from_static_block): ... and this function.
757 (end_symtab, end_expandable_symtab): Call them.
758 * buildsym.h (end_symtab_get_static_block)
759 (end_symtab_from_static_block): New declarations.
760 * dwarf2read.c (process_full_comp_unit): New variable static_block.
761 Set its valid CU ranges.
763 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
765 * dwarf2loc.c (disassemble_dwarf_expression): Handle
766 DW_OP_GNU_parameter_ref.
768 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
770 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
771 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
773 2012-07-13 Doug Evans <dje@google.com>
775 * symtab.c (output_source_filename): Delete unnecessary forward decl.
776 (filename_seen_cache): New struct.
777 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
778 (create_filename_seen_cache): New function.
779 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
780 (filename_seen): Delete arg "first". New arg "cache". All callers
782 (output_source_filename_data): New struct.
783 (output_source_filename): Delete arg "first". New arg "data".
785 (sources_info): Delete local "first". New locals "data", "cleanups".
786 Rewrite to use filename_seen_cache.
787 (add_partial_filename_data): Delete member "first". New member
788 "filename_seen_cache". All uses updated.
789 (make_source_files_completion_list): Rewrite to use
792 2012-07-12 Doug Evans <dje@google.com>
794 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
796 2012-07-10 Doug Evans <dje@google.com>
799 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
800 all_type_unit_groups, type_unit_groups, tu_stats.
801 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
802 All uses updated. Add type_unit_group to union "s".
803 (type_unit_group): New struct.
804 (IS_TYPE_UNIT_GROUP): New macro.
805 (abbrev_table): Delete unused member "section".
806 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
807 (dw2_get_cu): Assert not used with type_unit_group.
808 (dw2_get_primary_cu): New function.
809 (dw2_build_type_unit_groups_reader): New function.
810 (dw2_build_type_unit_groups): New function.
811 (dw2_get_file_names): Assert not called on type units.
812 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
813 Redo loop to iterate over type unit groups instead of type units.
814 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
815 (read_abbrev_offset): New function.
816 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
818 (create_partial_symtab): New function.
819 (process_psymtab_comp_unit_reader): Assert not used with type units.
820 Call create_partial_symtab.
821 (process_psymtab_type_unit): Delete.
822 (hash_type_unit_group, eq_type_unit_group): New functions.
823 (allocate_type_unit_groups_table): New function.
824 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
825 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
826 (create_type_unit_group, get_type_unit_group): New functions.
827 (tu_abbrev_offset): New struct.
828 (sort_tu_by_abbrev_offset): New function.
829 (add_type_unit_group_to_table): New function.
830 (build_type_unit_groups): New function.
831 (build_type_psymtabs_reader): New function.
832 (build_type_psymtab_dependencies): New function.
833 (build_type_psymtabs): Rewrite.
834 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
835 is seen in a type unit.
836 (process_queue): Move symtab expansion debugging printfs here.
837 Call process_full_type_unit for type units.
838 (compute_symtab_includes): Assert not called for type units.
839 (process_cu_includes): Don't call compute_symtab_includes for
841 (process_full_type_unit): New function.
842 (process_imported_unit_die): Flag an error if called for type units.
843 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
844 updated. Assert not called for type units.
845 (read_file_scope): Call dwarf2_start_symtab.
846 (setup_type_unit_groups): New function.
847 (read_type_unit_scope): Rewrite.
848 (abbrev_table_read_table): Initialize abbrev_table->offset.
849 (abbrev_table_free_cleanup): New function.
850 (dwarf2_start_symtab): New function.
851 (load_full_type_unit): Assert not called for type unit groups.
852 * buildsym.c (finish_block_internal): New arg "expandable".
854 (start_symtab): Move most contents to ...
855 (restart_symtab): ... here. New function.
856 (reset_symtab_globals): New function.
857 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
858 Call reset_symtab_globals.
859 (end_symtab, end_expandable_symtab): New functions.
860 (set_missing_symtab, augment_type_symtab): New functions.
861 * buildsym.h (end_expandable_symtab): Declare.
862 (augment_type_symtab, restart_symtab): Declare.
863 * psympriv.h (struct partial_symtab): New member "anonymous".
864 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
866 (read_psymtabs_with_filename): Ditto.
867 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
868 (expand_symtabs_matching_via_partial): Ditto.
869 (dump_psymtab): Update.
870 * dictionary.c (dict_add_pending): New function.
871 * dictionary.h (dict_add_pending): Declare.
873 2012-07-09 Doug Evans <dje@google.com>
875 * buildsym.c (start_subfile): Remove unnecessary check for
878 * psymtab.c (allocate_psymtab): Use host_address_to_string.
880 * dwarf2read.c (load_full_type_unit): Simplify.
882 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
883 to struct signatured_type **. All uses updated.
885 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
888 2012-07-09 Tom Tromey <tromey@redhat.com>
890 * c-exp.y (check_parameter_typelist): New function.
891 (parameter_typelist): Call it.
892 * eval.c (make_params): Handle '(void)' case.
893 * gdbtypes.c (lookup_function_type_with_arguments): Handle
896 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
898 * common/linux-ptrace.c: Include gdb_assert.h.
899 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
900 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
902 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
904 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
905 * linux-nat.c (linux_child_post_attach)
906 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
908 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
910 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
911 nptl <2.7 bug workaround for core files.
913 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
915 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
917 (save_siginfo): Remove.
918 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
920 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
921 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
922 * linux-nat.h (struct lwp_info): Remove field siginfo.
924 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
926 Code cleanup for the next patch.
927 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
928 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
930 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
931 (ia64_linux_stopped_data_address):
932 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
934 * linux-nat.h (linux_nat_get_siginfo): Likewise.
935 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
936 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
939 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
942 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
943 Increase buffer sizes to 2x we need, not just 2x of the previous size.
945 2012-07-06 Tom Tromey <tromey@redhat.com>
947 * c-exp.y (DOTDOTDOT): New token.
948 (func_mod, exp): Use parameter_typelist.
949 (parameter_typelist): New production.
950 (tokentab3): Add "..." token.
951 * eval.c (make_params): Handle varargs.
952 * gdbtypes.c (lookup_function_type_with_arguments): Handle
955 2012-07-06 Tom Tromey <tromey@redhat.com>
958 * c-exp.y (%union) <tvec>: Change type.
959 (func_mod): Now uses <tvec> type.
960 (exp): Update for tvec change.
961 (direct_abs_decl): Push the typelist.
962 (func_mod): Return a typelist.
963 (nonempty_typelist): Update for tvec change.
964 * gdbtypes.c (lookup_function_type_with_arguments): New function.
965 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
966 * parse.c (pop_type_list): New function.
967 (push_typelist): New function.
968 (follow_types): Handle tp_function_with_arguments.
969 * parser-defs.h (type_ptr): New typedef. Define a VEC.
970 (enum type_pieces) <tp_function_with_arguments>: New constant.
971 (union type_stack_elt) <typelist_val>: New field.
972 (push_typelist): Declare.
974 2012-07-06 Tom Tromey <tromey@redhat.com>
976 * c-exp.y (%union) <type_stack>: New field.
977 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
978 (ptr_operator_ts): New production.
980 * parse.c (type_stack_reserve): New function.
981 (check_type_stack_depth): Use it.
982 (pop_type_stack, append_type_stack, push_type_stack)
983 (get_type_stack, type_stack_cleanup): New functions.
984 (follow_types): Handle tp_type_stack.
985 (_initialize_parse): Simplify initialization.
986 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
988 (union type_stack_elt) <stack_val>: New field.
989 (get_type_stack, append_type_stack, push_type_stack)
990 (type_stack_cleanup): Declare.
992 2012-07-06 Tom Tromey <tromey@redhat.com>
994 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
996 (struct type_stack): New.
997 * parse.c (type_stack, type_stack_size, type_stack_depth):
999 (type_stack): New global.
1000 (parse_exp_in_context, check_type_stack_depth)
1001 (insert_into_type_stack, insert_type, push_type, push_type_int)
1002 (insert_type_address_space, pop_type, pop_type_int)
1003 (_initialize_parse): Update.
1005 2012-07-06 Tom Tromey <tromey@redhat.com>
1007 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
1010 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1012 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
1014 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1015 Jan Kratochvil <jan.kratochvil@redhat.com>
1017 * cp-valprint.c (cp_print_value): Replace potentially unsafe
1018 alloca with xmalloc/xfree.
1020 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1022 * MAINTAINERS (Write After Approval): Add myself to the list.
1024 2012-07-05 Doug Evans <dje@google.com>
1026 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
1028 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1030 * ax-gdb.c (cli/cli-utils.h): New include.
1031 (linespec.h): Ditto.
1032 (agent_eval_command_one): New function.
1033 (agent_command_1): Ditto.
1034 (agent_command): Call function agent_command_1.
1035 (agent_eval_command): Ditto.
1036 (_initialize_ax_gdb): Change help for "maint agent"
1037 and "maint agent-eval".
1039 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1041 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
1042 * cli/cli-utils.c (check_for_argument): New function.
1043 * cli/cli-utils.h (check_for_argument): Ditto.
1045 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1047 * NEWS: Mention x32 ABI support.
1049 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1051 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1052 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1054 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1055 and pc_regnum_from_eax to -1. Update SP regnum from
1056 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1059 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1062 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1064 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1065 * dwarf2expr.h: Include gdbtypes.h.
1066 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1067 these forward declarations.
1068 (cu_offset, sect_offset): Move these ...
1069 * gdbtypes.h: Remove include dwarf2expr.h.
1070 (cu_offset, sect_offset): ... here.
1072 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1074 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1075 (amd64_linux_sigtramp_code): This.
1076 (amd64_x32_linux_sigtramp_code): New.
1077 (LINUX_SIGTRAMP_LEN): Updated.
1078 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1080 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1082 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1084 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1086 * config.in: Regenerate.
1087 * configure: Regenerate.
1088 * configure.ac: Remove check for gnu/libc-version.h.
1089 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1091 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1092 variables libc_version, libc_major and libc_minor. Replace sscanf by
1093 inferior_has_bug. Extend the comment.
1095 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1097 * linux-thread-db.c (inferior_has_bug): New function.
1098 (thread_db_find_new_threads_silently): Return boolean as checked by
1099 inferior_has_bug, describe it in the comments.
1100 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1101 earlier. Abort the initialization if it returned non-zero.
1102 (thread_db_new_objfile): Exclude debug files.
1103 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1106 2012-07-02 Doug Evans <dje@google.com>
1108 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1109 related to queue management.
1111 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1112 instead of "debug dwarf2-die" in debugging printfs.
1113 (create_debug_info_hash_table_reader): Ditto.
1114 (create_debug_info_hash_table): Ditto.
1115 (init_dwo_file): Ditto.
1116 (init_cutu_and_read_dies): Add debugging printf.
1117 (init_cutu_and_read_dies_no_follow): Ditto.
1118 (process_psymtab_comp_unit_reader): Ditto.
1120 2012-07-02 Stan Shebs <stan@codesourcery.com>
1122 Add target-side support for dynamic printf.
1123 * NEWS: Mention the additional style.
1124 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1125 (struct bp_location): New field cmd_bytecode.
1126 * breakpoint.c: Include format.h.
1127 (disconnected_dprintf): New global.
1128 (parse_cmd_to_aexpr): New function.
1129 (build_target_command_list): New function.
1130 (insert_bp_location): Call it.
1131 (remove_breakpoints_pid): Skip dprintf breakpoints.
1132 (print_one_breakpoint_location): Ditto.
1133 (dprintf_style_agent): New global.
1134 (dprintf_style_enums): Add dprintf_style_agent.
1135 (update_dprintf_command_list): Add agent case.
1136 (agent_printf_command): New function.
1137 (_initialize_breakpoint): Add new commands.
1138 * common/ax.def (printf): New bytecode.
1139 * ax.h (ax_string): Declare.
1140 * ax-gdb.h (gen_printf): Declare.
1141 * ax-gdb.c: Include cli-utils.h, format.h.
1142 (gen_printf): New function.
1143 (maint_agent_print_command): New function.
1144 (_initialize_ax_gdb): Add maint agent-printf command.
1145 * ax-general.c (ax_string): New function.
1146 (ax_print): Add printf disassembly.
1147 * Makefile.in (SFILES): Add format.c
1148 (COMMON_OBS): Add format.o.
1149 * common/format.h: New file.
1150 * common/format.c: New file.
1151 * printcmd.c: Include format.h.
1152 (ui_printf): Call parse_format_string.
1153 * remote.c (remote_state): New field breakpoint_commands.
1154 (PACKET_BreakpointCommands): New enum.
1155 (remote_breakpoint_commands_feature): New function.
1156 (remote_protocol_features): Add new BreakpointCommands entry.
1157 (remote_can_run_breakpoint_commands): New function.
1158 (remote_add_target_side_commands): New function.
1159 (remote_insert_breakpoint): Call it.
1160 (remote_insert_hw_breakpoint): Ditto.
1161 (_initialize_remote): Add new packet configuration for
1162 target-side breakpoint commands.
1163 * target.h (struct target_ops): New field
1164 to_can_run_breakpoint_commands.
1165 (target_can_run_breakpoint_commands): New macro.
1166 * target.c (update_current_target): Handle
1167 to_can_run_breakpoint_commands.
1169 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1171 Execute -ix and -iex only after system and user gdbinit files.
1172 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1173 processing down after gdbinit files.
1175 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1177 Add fnmatch-gnu module.
1178 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1179 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1180 * gnulib/aclocal.m4: Regenerate.
1181 * gnulib/config.in: Regenerate.
1182 * gnulib/configure: Regenerate.
1183 * gnulib/import/dummy.c: Remove.
1184 * gnulib/import/Makefile.am: Regenerate.
1185 * gnulib/import/Makefile.in: Likewise.
1186 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1187 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1188 * gnulib/import/alloca.c: New file.
1189 * gnulib/import/alloca.in.h: Likewise.
1190 * gnulib/import/config.charset: Likewise.
1191 * gnulib/import/fnmatch.c: Likewise.
1192 * gnulib/import/fnmatch.in.h: Likewise.
1193 * gnulib/import/fnmatch_loop.c: Likewise.
1194 * gnulib/import/localcharset.c: Likewise.
1195 * gnulib/import/localcharset.h: Likewise.
1196 * gnulib/import/m4/alloca.m4: Likewise.
1197 * gnulib/import/m4/codeset.m4: Likewise.
1198 * gnulib/import/m4/configmake.m4: Likewise.
1199 * gnulib/import/m4/fcntl-o.m4: Likewise.
1200 * gnulib/import/m4/fnmatch.m4: Likewise.
1201 * gnulib/import/m4/glibc21.m4: Likewise.
1202 * gnulib/import/m4/localcharset.m4: Likewise.
1203 * gnulib/import/m4/locale-fr.m4: Likewise.
1204 * gnulib/import/m4/locale-ja.m4: Likewise.
1205 * gnulib/import/m4/locale-zh.m4: Likewise.
1206 * gnulib/import/m4/mbrtowc.m4: Likewise.
1207 * gnulib/import/m4/mbsinit.m4: Likewise.
1208 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1209 * gnulib/import/m4/mbstate_t.m4: Likewise.
1210 * gnulib/import/m4/stdbool.m4: Likewise.
1211 * gnulib/import/m4/wchar_h.m4: Likewise.
1212 * gnulib/import/m4/wctype_h.m4: Likewise.
1213 * gnulib/import/m4/wint_t.m4: Likewise.
1214 * gnulib/import/mbrtowc.c: Likewise.
1215 * gnulib/import/mbsinit.c: Likewise.
1216 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1217 * gnulib/import/mbsrtowcs-state.c: Likewise.
1218 * gnulib/import/mbsrtowcs.c: Likewise.
1219 * gnulib/import/ref-add.sin: Likewise.
1220 * gnulib/import/ref-del.sin: Likewise.
1221 * gnulib/import/stdbool.in.h: Likewise.
1222 * gnulib/import/streq.h: Likewise.
1223 * gnulib/import/strnlen1.c: Likewise.
1224 * gnulib/import/strnlen1.h: Likewise.
1225 * gnulib/import/verify.h: Likewise.
1226 * gnulib/import/wchar.in.h: Likewise.
1227 * gnulib/import/wctype.in.h: Likewise.
1229 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1231 Support shell wildcards for 'set auto-load safe-path'.
1232 * auto-load.c: Include fnmatch.h.
1233 (filename_is_in_dir): Rename to ...
1234 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1235 it. Update function comment. Rename dir_len to pattern_len. New
1236 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1237 messages. Use gdb_filename_fnmatch.
1238 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1240 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1241 * defs.h (gdb_filename_fnmatch): New declaration.
1242 * utils.c: Include fnmatch.h.
1243 (gdb_filename_fnmatch): New function.
1245 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1247 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1248 `-probe' and `-probe-stap' options.
1250 2012-07-01 Yao Qi <yao@codesourcery.com>
1252 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1253 always_inserted_off, and always_inserted_enums.
1254 Change always_inserted_mode's type to 'enum auto_boolean'.
1255 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1257 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1258 of add_setshow_enum_cmd.
1259 * infrun.c: Remove can_use_displaced_stepping_auto,
1260 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1261 can_use_displaced_stepping_enum.
1262 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1263 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1264 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1265 add_setshow_enum_cmd.
1267 2012-06-30 Doug Evans <dje@google.com>
1269 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1270 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1271 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1273 2012-06-29 Doug Evans <dje@google.com>
1275 * linespec.c: #include "stack.h".
1276 (decode_line_with_current_source): Moved here from symtab.c and
1277 renamed from decode_line_spec. All callers updated.
1278 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1279 renamed from decode_line_spec_1. All callers updated.
1280 * linespec.h (decode_line_with_current_source): Move declaration here
1281 from symtab.h and renamed from decode_line_spec.
1282 (decode_line_with_last_displayed): Move declaration here from symtab.h
1283 and renamed from decode_line_spec_1.
1284 * macrocmd.c: #include "linespec.h".
1285 * symtab.c: Remove #include "linespec.h".
1287 2012-06-28 Doug Evans <dje@google.com>
1289 * dwarf2read.c (get_cu_length): New function.
1290 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1291 (create_debug_types_hash_table): Ditto.
1292 (init_cutu_and_read_dies): Ditto.
1293 (init_cutu_and_read_dies_no_follow): Ditto.
1295 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1297 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1298 (struct abbrev_table): Define.
1299 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1301 (init_cutu_and_read_dies): Update.
1302 (abbrev_table_alloc_abbrev): New function. Replaces
1303 dwarf_alloc_abbrev. All callers updated.
1304 (abbrev_table_add_abbrev): New function.
1305 (abbrev_table_lookup_abbrev): New function. Replaces
1306 dwarf2_lookup_abbrev. All callers updated.
1307 (abbrev_table_read_table): New function. Contents moved here from
1308 dwarf2_read_abbrevs.
1309 (dwarf2_read_abbrevs): Call it.
1310 (abbrev_table_free): New function.
1311 (dwarf2_free_abbrev_table): Call it.
1313 2012-06-28 Stan Shebs <stan@codesourcery.com>
1315 * osdata.c (info_osdata_command): Filter out "Title" columns
1317 * common/linux-osdata.c (struct osdata_type): Add title field.
1318 (osdata_table): Add titles to each entry.
1319 (linux_command_xfer_osdata): Add a column for title data.
1321 2012-06-28 Stan Shebs <stan@codesourcery.com>
1323 Make logging work for MI.
1325 * interps.h (interp_set_logging_ftype): New typedef.
1326 (struct interp_procs): New field set_logging_proc.
1327 (current_interp_set_logging): Declare.
1328 * interps.c (current_interp_set_logging): New function.
1329 * cli/cli-logging.c: Include interps.h.
1330 (set_logging_redirect): Call current_interp_set_logging.
1331 (pop_output_files): Ditto.
1332 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1333 * mi/mi-console.h (mi_console_set_raw): Declare.
1334 * mi/mi-console.c (mi_console_set_raw): New function.
1335 * mi/mi-interp.c (saved_raw_stdout): New global.
1336 (mi_set_logging): New function.
1337 (_initialize_mi_interp): Add it to interp procs.
1339 2012-06-28 Doug Evans <dje@google.com>
1341 * symtab.c (lookup_symbol_aux_objfile): Use
1342 ALL_OBJFILE_PRIMARY_SYMTABS.
1344 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1346 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1348 * common/buffer.c: Include inttypes.h and stdint.h.
1349 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1351 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1352 Pedro Alves <palves@redhat.com>
1354 * gdbthread.h (ALL_THREADS): New macro.
1355 (thread_list): Declare.
1356 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1357 going, but instead fall through to the stepping handling.
1358 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1359 the passed in signal. Adjust debug output.
1360 (resume_callback): Rename to ...
1361 (linux_nat_resume_callback): ... this. Pass the thread's last
1362 stop signal, if in "pass" state.
1363 (linux_nat_resume): Adjust to rename.
1364 (stop_wait_callback): New assertion. Don't respawn signals;
1365 instead let the LWP remain with SIGNALLED set.
1366 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1367 * remote.c (append_pending_thread_resumptions): New.
1368 (remote_vcont_resume): Call it.
1369 * target.h (target_resume): Extend comment.
1371 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1373 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1375 2012-06-27 Doug Evans <dje@google.com>
1377 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1378 Delete have_addr_base, unused. All uses updated.
1379 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1380 (dwarf2_get_pc_bounds): Add ranges_base.
1381 (dwarf2_record_block_ranges): Ditto.
1383 2012-06-27 Tom Tromey <tromey@redhat.com>
1386 * varobj.c (varobj_create): Update.
1387 (varobj_set_value): Update.
1388 * tracepoint.c (validate_actionline): Update.
1389 (encode_actions_1): Update.
1390 * parse.c (parse_exp_1): Add 'pc' argument.
1391 (parse_exp_in_context): Add 'pc' argument. Change how
1392 expression_context_pc is set.
1393 (parse_expression): Update.
1394 (parse_field_expression): Update.
1395 * expression.h (parse_exp_1): Update.
1396 * eval.c (parse_to_comma_and_eval): Update.
1397 * breakpoint.c (set_breakpoint_condition): Update.
1398 (update_watchpoint): Update.
1399 (init_breakpoint_sal): Update
1400 (find_condition_and_thread): Update.
1401 (watch_command_1): Update.
1402 (update_breakpoint_locations): Update.
1403 * ada-lang.c (ada_read_renaming_var_value): Update.
1404 (create_excep_cond_exprs): Update.
1406 2012-06-27 Doug Evans <dje@google.com>
1408 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1411 2012-06-26 Doug Evans <dje@google.com>
1413 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1415 (error_check_comp_unit_head): New arg abbrev_section. All callers
1417 (read_and_check_comp_unit_head): Ditto.
1418 (read_and_check_type_unit_head): Ditto.
1420 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1422 New attribute 'last' for gdb.Symtab_and_line.
1423 * NEWS (Python Scripting): Add entry about the new attribute.
1424 * python/py-symtab.c (salpy_get_last): New function which
1425 implements the get method for the 'last' attribute of
1426 gdb.Symtab_and_line.
1427 (sal_object_getset): Add entry for the 'last' attribute.
1429 2012-06-26 Doug Evans <dje@google.com>
1431 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1432 (dwo_sections): Add macinfo, macro.
1433 (dwarf2_locate_dwo_sections): Watch for macro sections.
1434 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1435 All callers updated. Handle DWO files.
1437 * NEWS: Mention new options "set debug dwarf2-read" and
1438 "set debug symtab-create".
1439 * dwarf2read.c (dwarf2_read_debug): New static global.
1440 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1441 (process_queue): Ditto.
1442 (process_full_comp_unit): Ditto.
1443 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1444 * elfread.c (elf_symfile_read): Add debugging printf.
1445 * minsyms.c (install_minimal_symbols): Ditto.
1446 * psymtab.c (allocate_psymtab): Ditto.
1447 * symfile.c (allocate_symtab): Ditto.
1448 * symtab.c (symtab_create_debug): New global.
1449 (_initialize_symtab): Add new option "set debug symtab-create".
1450 * symtab.h (symtab_create_debug): Declare.
1452 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1453 (lookup_dwo_type_unit): Ditto.
1455 2012-06-26 Roland McGrath <roland@hack.frob.com>
1456 H.J. Lu <hongjiu.lu@intel.com>
1458 * amd64-linux-nat.c: Include <sys/user.h>.
1459 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1460 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1461 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1463 * configure.ac: Check if the fs_base and gs_base members of
1464 `struct user_regs_struct' exist.
1465 * config.in: Regenerated.
1466 * configure: Likewise.
1468 2012-06-25 Michael Eager <eager@eagercon.com>
1471 * python/python.c (gdbpy_write): Check for interrupted output.
1473 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1475 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1476 register as a stack alignment in ARM mode.
1478 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1480 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1481 * gnulib/config.in: Regenerate.
1482 * gnulib/configure: Likewise.
1483 * gnulib/import/m4/extensions.m4: Update it.
1484 * gnulib/import/m4/gnulib-common.m4: Likewise.
1485 * gnulib/import/m4/memmem.m4: Likewise.
1486 * gnulib/import/m4/mmap-anon.m4: Likewise.
1487 * gnulib/import/m4/multiarch.m4: Likewise.
1488 * gnulib/import/stdint.in.h: Likewise.
1490 2012-06-24 Yao Qi <yao@codesourcery.com>
1492 * corefile.c (write_memory_with_notification): New.
1493 * gdbcore.h: Declare write_memory_with_notification.
1494 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1495 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1496 * valops.c (value_assign): Likewise.
1497 * python/py-inferior.c (infpy_write_memory): Call
1498 'write_memory_with_notification'.
1500 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1502 * cc-with-index.sh: Use also -ex "set auto-load no".
1504 2012-06-23 Doug Evans <dje@google.com>
1507 * NEWS: Document additions to .gdb_index.
1508 * dwarf2read.c: #include "gdb/gdb-index.h".
1509 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1510 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1511 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1512 (dwarf2_read_index): Recognize version 7.
1513 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1514 block_kind, domain): All callers updated.
1515 (dw2_find_symbol_file): Handle new index CU values.
1516 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1517 (add_index_entry): New args is_static, kind. All callers updated.
1518 (offset_type_compare, uniquify_cu_indices): New functions
1519 (symbol_kind): New function.
1520 (write_psymtabs_to_index): Remove duplicate CU values.
1521 (write_psymtabs_to_index): Write .gdb_index version 7.
1523 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1525 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1526 * configure: Regenerate.
1528 2012-06-20 Yao Qi <yao@codesourcery.com>
1530 * python/py-inferior.c: Update comments of infpy_read_memory
1531 and infpy_write_memory.
1533 2012-06-19 Tom Tromey <tromey@redhat.com>
1536 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1537 (push_type_address_space): Remove.
1538 * parse.c (insert_into_type_stack): New function.
1539 (insert_type): Likewise.
1540 (insert_type_address_space): Rename from push_type_address_space.
1541 Insert tp_space_identifier.
1542 * c-exp.y (ptr_operator): New production.
1543 (abs_decl): Use ptr_operator.
1544 (space_identifier): Call insert_type_address_space.
1545 (ptype): Don't use const_or_volatile_or_space_identifier.
1546 (const_or_volatile_noopt): Call insert_type.
1547 (conversion_type_id, conversion_declarator): New productions.
1548 (operator): Use conversion_type_id.
1550 2012-06-18 Doug Evans <dje@google.com>
1552 * symtab.h (minimal_symbol): New member created_by_gdb.
1553 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1555 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1556 (search_symbols): Call it instead of lookup_symbol.
1557 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1559 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1560 Adjust address for DW_OP_GNU_addr_index.
1561 * dwarf2expr.h (dwarf_expr_context): Update comment.
1562 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1563 all callers updated. Handle TLS vars described with
1564 DW_OP_GNU_const_index.
1565 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1566 and DW_OP_GNU_const_index.
1567 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1569 * block.c (find_block_in_blockvector): Make explicit the fact that we
1570 ignore GLOBAL_BLOCK.
1572 2012-06-18 Tom Tromey <tromey@redhat.com>
1574 * c-exp.y (operator): Remove trailing space after "delete" and
1577 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1578 Jan Kratochvil <jan.kratochvil@redhat.com>
1580 Switch i386 and derived targets to ON_STACK.
1581 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1582 (amd64_dicos_init_abi): Remove its installment.
1583 * dicos-tdep.c (dicos_init_abi): Remove the
1584 set_gdbarch_call_dummy_location call. Update the comment here.
1585 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1586 (i386_dicos_init_abi): Remove its installment.
1587 * i386-tdep.c (i386_push_dummy_code): New function.
1588 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1589 i386_push_dummy_code.
1591 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1593 Remove stale dummy frames.
1594 * breakpoint.c: Include dummy-frame.h.
1595 (longjmp_breakpoint_ops): New variable.
1596 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1597 bp_longjmp_call_dummy.
1598 (bpstat_what, bptype_string, print_one_breakpoint_location)
1599 (init_bp_location): Support bp_longjmp_call_dummy.
1600 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1601 (set_longjmp_breakpoint_for_call_dummy)
1602 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1604 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1605 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1606 FIXME comment and extend the other comment for bp_call_dummy.
1607 (set_longjmp_breakpoint_for_call_dummy)
1608 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1609 * dummy-frame.c: Include gdbthread.h.
1610 (pop_dummy_frame_bpt): New function.
1611 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1612 (dummy_frame_discard): New function.
1613 (cleanup_dummy_frames): Update the comment about longjmps.
1614 * dummy-frame.h (dummy_frame_discard): New declaration.
1615 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1616 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1617 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1618 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1619 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1620 keep_going if IS_LONGJMP and there is no other reason to stop.
1622 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1624 * remote-sim.c (sim_command_completer): Initialize
1627 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1629 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1630 * dwarf2loc.c (call_site_parameter_matches): Support
1631 CALL_SITE_PARAMETER_PARAM_OFFSET.
1632 (needs_dwarf_reg_entry_value): Push stub value.
1633 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1634 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1635 * gdbtypes.h (enum call_site_parameter_kind): New item
1636 CALL_SITE_PARAMETER_PARAM_OFFSET.
1637 (struct call_site.parameter.u): New field param_offset.
1639 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1641 Code cleanup: Generalize call_site.parameter key.
1642 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1643 variable dwarf_reg. New variable kind_u. Update parameters to
1644 push_dwarf_reg_entry_value.
1645 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1646 * dwarf2expr.h (enum call_site_parameter_kind)
1647 (union call_site_parameter_u): Forward declarations.
1648 (struct dwarf_expr_context_funcs): Update parameters and their
1649 description for push_dwarf_reg_entry_value.
1650 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1651 * dwarf2loc.c (call_site_parameter_matches): New function.
1652 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1653 description. Use call_site_parameter_matches.
1654 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1655 Update parameters and their description.
1656 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1657 New variable kind_u. Adjust the caller for updated parameters.
1658 (needs_dwarf_reg_entry_value): Update parameters.
1659 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1660 instead of attr. Update for the changed fields of struct
1661 call_site_parameter.
1662 * gdbtypes.h: Include dwarf2expr.h.
1663 (enum call_site_parameter_kind): New.
1664 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1665 fb_offset into new union u.
1667 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1669 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1670 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1673 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1675 * amd64-linux-nat.c (compat_x32_clock_t): New.
1676 (compat_x32_siginfo_t): Likewise.
1677 (compat_x32_siginfo_from_siginfo): Likewise.
1678 (siginfo_from_compat_x32_siginfo): Likewise.
1679 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1680 and siginfo_from_compat_x32_siginfo for x32.
1682 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
1684 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1686 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1688 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1689 instead of gdbarch_ptr_bit.
1690 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1691 (amd64_supply_native_gregset): Likewise.
1692 (amd64_collect_native_gregset): Likewise.
1693 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1694 (amd64_supply_xsave): Likewise.
1695 (amd64_collect_fxsave): Likewise.
1696 (amd64_collect_xsave): Likewise.
1698 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1700 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1701 (amd64_linux_read_description): Check DS segment register for
1704 2012-06-15 Tom Tromey <tromey@redhat.com>
1706 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1707 init_cutu_and_read_dies.
1709 2012-06-15 Iain Sandoe <iain@codesourcery.com>
1711 * MAINTAINERS (Write After Approval): Add myself to the list.
1713 2012-06-15 Tom Tromey <tromey@redhat.com>
1715 * valops.c (value_find_oload_method_list): Now static.
1716 * value.h (value_find_oload_method_list): Don't declare.
1718 2012-06-15 Tom Tromey <tromey@redhat.com>
1720 * valops.c (find_overload_match): Use value_ind.
1722 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1724 * infrun.c (handle_inferior_event): Correct indentation.
1726 2012-06-14 Doug Evans <dje@google.com>
1728 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1729 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1731 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1732 updated. Handle DEBUG_LOC_START_LENGTH.
1733 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1734 (loclist_describe_location): Ditto.
1736 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1739 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1740 after hiding inline functions.
1742 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1744 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1745 _initialize_inf_ttrace.
1747 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1749 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1750 _initialize_hppa_hpux_nat.
1752 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1754 * remote-sim.c (sim_command_completer): Change type of return
1755 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1757 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1758 Jan Kratochvil <jan.kratochvil@redhat.com>
1761 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1762 stack on a 16-byte boundary.
1764 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
1766 * jit.c (finalize_symtab): Set function's return type to 'void' by
1769 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1770 H.J. Lu <hongjiu.lu@intel.com>
1772 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1773 Move bits common to both the classic LP64 and the new x32 ILP32
1775 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1776 (amd64_x32_linux_init_abi): New function.
1777 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1780 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1781 * i386-tdep.c (i386_pseudo_register_name): Make public.
1782 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1783 * amd64-tdep.c (amd64_dword_names): Add "eip".
1784 (amd64_x32_pseudo_register_type): New function
1785 (amd64_x32_init_abi): New function.
1787 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1790 * inferior.h (struct inferior_suspend_state): Comment out.
1791 (struct inferior): Comment out the field suspend.
1792 * infrun.c (struct infcall_suspend_state): Comment out the field
1794 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1797 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1799 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1800 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1801 function comment. Return ERROR for unresolved cases. Implement
1802 returning proper NAME.
1803 (yylex): Accept also NAME from classify_inner_name.
1804 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1805 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1807 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1809 2012-06-13 Tom Tromey <tromey@redhat.com>
1811 * breakpoint.c (condition_completer): New function.
1812 (_initialize_breakpoint): Use it.
1813 * value.c (complete_internalvar): New function.
1814 * value.h (complete_internalvar): Declare.
1816 2012-06-13 Tom Tromey <tromey@redhat.com>
1818 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1819 * breakpoint.c (catch_syscall_completer): Return a VEC.
1820 * cli/cli-cmds.c (complete_command): Update.
1821 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1822 (complete_on_enum): Likewise.
1823 * command.h: Include gdb_vecs.h.
1824 (completer_ftype): Change return type.
1825 (complete_on_cmdlist, complete_on_enum): Likewise.
1826 * completer.c (noop_completer, filename_completer)
1827 (location_completer): Return a VEC.
1828 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1830 (expression_completer, complete_line_internal, complete_line)
1831 (command_completer): Return a VEC.
1832 (gdb_completion_word_break_characters, line_completion_function):
1834 * completer.h: Include gdb_vecs.h.
1835 (complete_line, noop_completer, filename_completer)
1836 (expression_completer, location_completer, command_completer):
1838 * f-lang.c (f_word_break_characters): Return a VEC.
1839 * interps.c (interpreter_completer): Return a VEC.
1840 * language.h (struct language_defn)
1841 <la_make_symbol_completion_list>: Return a VEC.
1842 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1843 * symtab.c (free_completion_list): Take a VEC.
1844 (return_val_size, return_val_index): Remove.
1845 (return_val): Now a VEC.
1846 (completion_list_add_name): Update.
1847 (default_make_symbol_completion_list_break_on)
1848 (default_make_symbol_completion_list, make_symbol_completion_list)
1849 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1851 (add_filename_to_list): Update.
1852 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1854 (maybe_add_partial_symtab_filename): Update.
1855 (make_source_files_completion_list): Return a VEC.
1856 * symtab.h (default_make_symbol_completion_list_break_on)
1857 (default_make_symbol_completion_list, make_symbol_completion_list)
1858 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1859 (make_source_files_completion_list): Update.
1861 2012-06-13 Tom Tromey <tromey@redhat.com>
1863 * breakpoint.c (add_catch_command): Use completer_ftype.
1864 * breakpoint.h: Include command.h.
1865 (add_catch_command): Use completer_ftype.
1866 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1867 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1868 Use completer_ftype.
1869 * command.h (completer_ftype): New typedef.
1870 (set_cmd_completer): Use it.
1871 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1874 2012-06-13 Pedro Alves <palves@redhat.com>
1876 Partial revert of previous change.
1878 * serial.c (scb_base): New global.
1879 (serial_for_fd): New.
1880 (serial_open, serial_fdopen_ops): Link new serial in open serials
1882 (do_serial_close): Unlink serial from the open serials chain.
1884 2012-06-12 Pedro Alves <palves@redhat.com>
1886 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
1888 (prepare_for_detach): No longer context switch here in non-stop
1890 (fetch_inferior_event): Ditto.
1891 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
1892 to the event thread before removing breakpoints. Switch to the
1893 event thread before inserting breakpoints and resuming.
1894 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
1895 event thread before resuming.
1896 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
1897 Switch to the event thread before removing breakpoints.
1899 2012-06-12 Eli Zaretskii <eliz@gnu.org>
1901 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
1902 special characters correctly for the Windows shells. See
1903 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
1905 [!__MINGW32__]: Remove extra double quote character from special
1908 2012-06-11 Stan Shebs <stan@codesourcery.com>
1910 * ui-out.h: Remove #if 0 declarations.
1911 * ui-out.c: Remove #if 0 functions.
1913 2012-06-11 Pedro Alves <palves@redhat.com>
1915 * ser-base.c (run_async_handler_and_reschedule): New.
1916 (fd_event, push_event): Use it.
1917 * serial.c (serial_open, serial_fdopen_ops): Set the initial
1918 reference count to 1.
1919 (do_serial_close): Set the bufp field to NULL. Use serial_unref
1921 (serial_is_open, serial_ref, serial_unref): New.
1922 * serial.h (serial_open): Adjust comment.
1923 (serial_is_open): Declare.
1924 (serial_close): Adjust comment.
1925 (serial_ref, serial_unref) Declare.
1926 (struct serial): New field 'refcnt'.
1928 2012-06-11 Pedro Alves <palves@redhat.com>
1930 Remove #if 0'd "connect" command, and unnecessary associated
1931 refcounting and serial reuse bits.
1933 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
1934 * serial.c (last_serial_opened): Delete.
1936 (serial_open): Adjust.
1937 (serial_for_fd): Delete.
1938 (serial_fdopen_ops, do_serial_close): Adjust.
1939 (serial_fdopen_ops): Adjust.
1941 2012-06-11 Pedro Alves <palves@redhat.com>
1943 * serial.c (do_serial_close): Remove early return when SCB is
1946 2012-06-11 Tom Tromey <tromey@redhat.com>
1948 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
1950 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1952 Fix regression by the "ambiguous linespec" series.
1953 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
1954 get_last_displayed_symtab and get_last_displayed_line and depending
1957 2012-06-11 Tom Tromey <tromey@redhat.com>
1959 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
1960 (dw2_find_symbol_file): Use it.
1962 2012-06-11 Michael Eager <eager@eagercon.com>
1964 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
1965 * mips-linux-tdep.h (mips_signals): New
1967 2012-06-11 Tom Tromey <tromey@redhat.com>
1969 * infrun.c (handle_inferior_event)
1970 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
1972 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
1973 exception logic in all cases. Update comments.
1974 (insert_longjmp_resume_breakpoint): Set the exception resume
1977 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
1979 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
1981 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
1983 * valarith.c (binop_types_user_defined_p): Fix a typo.
1985 2012-06-08 Yao Qi <yao@codesourcery.com>
1986 Chung-Lin Tang <cltang@codesourcery.com>
1988 * arch-utils.c (default_return_in_first_hidden_param_p): New.
1989 * arch-utils.h: Declare.
1990 * gdbarch.sh: Add return_in_first_hidden_param_p.
1991 * gdbarch.c, gdbarch.h: Regenerated.
1992 * infcall.c (call_function_by_hand): Call
1993 gdbarch_return_in_first_hidden_param_p instead of
1994 language_pass_by_reference.
1996 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
1997 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
1998 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
1999 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
2000 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
2001 `cplus_return_struct_by_reference'.
2002 (tic6x_return_value): Handle language cplusplus.
2003 (tic6x_return_in_first_hidden_param_p): New.
2004 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
2006 2012-06-07 Doug Evans <dje@google.com>
2008 * dwarf2read.c (dwarf2_cu): Add comment.
2010 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2012 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
2014 (mips_eabi_push_dummy_call): Likewise.
2015 (mips_n32n64_push_dummy_call): Likewise.
2016 (mips_o32_push_dummy_call): Likewise.
2017 (mips_o64_push_dummy_call): Likewise.
2019 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2021 * mips-tdep.c (mips_convert_register_p): Correct coding style.
2023 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2025 * mips-tdep.c (mips_pseudo_register_type): Use
2026 mips_float_register_p.
2028 2012-06-06 Pedro Alves <palves@redhat.com>
2030 * infrun.c (handle_inferior_event): Remove calls to
2031 reinit_frame_cache that follow a context_switch call.
2033 2012-06-06 Pedro Alves <palves@redhat.com>
2035 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
2036 context_switch and remove stale comment.
2038 2012-06-06 Pedro Alves <palves@redhat.com>
2040 * infrun.c (struct execution_control_state): Remove
2041 `new_thread_event' field.
2042 (handle_inferior_event): Simplify new threads handling; don't
2043 resume the inferior if we find a new thread.
2045 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
2047 * NEWS: Document the deprecation of SH's 'regs' command.
2048 * inferior.h (all_registers_info): Add function declaration.
2049 * sh-tdep.c (sh_show_regs): Remove variable.
2050 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2051 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2052 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2053 (sh_show_regs_command): Remove functions.
2054 (sh_gdbarch_init): Don't set sh_show_regs.
2055 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2056 'info all-registers'.
2057 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2058 (sh64_show_regs): Remove functions.
2059 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2061 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2063 * configure.ac: Move development=true below AC_INIT.
2064 * configure: Regenerate.
2066 2012-06-05 Stan Shebs <stan@codesourcery.com>
2068 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2071 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2073 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2074 argument as ssize_t.
2075 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2076 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2077 * target.c (target_read_stack, target_write_memory)
2078 (target_write_raw_memory): Likewise.
2079 * target.h (target_read_stack, target_write_memory)
2080 (target_write_raw_memory): Likewise.
2082 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2084 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2085 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2086 * target.c (target_read_memory): Change LEN to ssize_t.
2087 * target.h (target_read_memory): Change LEN to ssize_t.
2089 2012-06-05 Pedro Alves <palves@redhat.com>
2093 * breakpoint.c (until_break_command): Only fetch the selected
2094 frame after decode_line_1.
2096 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2098 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2099 event breakpoint at _start, __start or main if a program
2100 interpreter is not found.
2102 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2104 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2106 * windows-tdep.c: #include "objfiles.h".
2107 (windows_iterate_over_objfiles_in_search_order): New function.
2108 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2109 iterate_over_objfiles_in_search_order gdbarch method to
2110 windows_iterate_over_objfiles_in_search_order.
2111 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2113 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2115 * gdbarch.sh: Add generation of
2116 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2117 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2118 (iterate_over_objfiles_in_search_order): New gdbarch method.
2119 * gdbarch.h, gdbarch.c: Regenerate.
2120 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2122 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2124 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2125 out of lookup_symbol_aux_symtabs.
2126 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2127 call to lookup_symbol_aux_objfile.
2128 (struct global_sym_lookup_data): New type.
2129 (lookup_symbol_global_iterator_cb): New function.
2130 (lookup_symbol_global): Search for symbol using
2131 gdbarch_iterate_over_objfiles_in_search_order and
2132 lookup_symbol_global_iterator_cb.
2133 * findvar.c (struct minsym_lookup_data): New type.
2134 (minsym_lookup_iterator_cb): New function.
2135 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2136 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2137 and minsym_lookup_iterator_cb.
2139 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2141 Revert the following patch:
2142 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2143 try locating the symbol in the symbol's own objfile first, before
2144 extending the search to all objfiles.
2145 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2146 out of lookup_symbol_aux_symtabs.
2147 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2148 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2149 Do not search EXCLUDE_OBJFILE.
2150 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2151 (lookup_symbol_global): Search for matches in the block's objfile
2152 first, before searching all other objfiles.
2154 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2156 * breakpoint.c (find_condition_and_thread): Stop parsing
2157 as soon as the first invalid keyword is found.
2159 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2161 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2163 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2165 * config/djgpp/djcheck.sh: Add copyright header.
2167 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2169 * copyright.py (update_files, main): Fix path to update-copyright
2172 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2174 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2175 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2176 for which a reminder to update by hand is printed.
2178 2012-06-04 Doug Evans <dje@google.com>
2180 * buildsym.c (make_blockvector): Add comment.
2182 2012-06-04 Pedro Alves <palves@redhat.com>
2184 * arch-utils.c (default_gdb_signal_from_target): Delete.
2185 * arch-utils.h (default_gdb_signal_from_target): Delete.
2186 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2187 gdbarch_gdb_signal_from_target_p.
2188 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2190 * gdbarch.h: Regenerate.
2191 * gdbarch.c: Regenerate.
2193 2012-06-04 Pedro Alves <palves@redhat.com>
2195 * gdbarch.sh (gdb_signal_from_target): Mention that the
2196 implementation of the method must be host independent.
2197 * gdbarch.h: Regenerate.
2199 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2201 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2203 (target_read_memory_bfd): New function.
2204 (symbol_file_add_from_memory): Use it.
2206 2012-06-03 Doug Evans <dje@google.com>
2208 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2210 (basic_lookup_transparent_type): Ditto.
2212 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2213 (ALL_PRIMARY_SYMTABS): Use it.
2214 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2215 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2216 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2217 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2218 (basic_lookup_transparent_type): Ditto.
2220 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2222 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2223 it to optimize resolution of demangled name.
2225 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2227 * configure.ac (development): Define new variable.
2228 Call AC_CHECK_LIB for mcheck if $development.
2229 (ERROR_ON_WARNING): Enable it by default only if $development.
2230 * config.in: Regenerate.
2231 * configure: Regenerate.
2233 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2235 * target.c (target_read_memory): Make LEN argument as size_t.
2236 * target.h (target_read_memory): Likewise.
2238 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2240 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2242 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2244 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2245 BookE interface for PowerPC server processors if not available
2246 in the Linux Kernel.
2248 2012-05-31 Keith Seitz <keiths@redhat.com>
2250 * linespec.c (decode_objc): Add cleanup to free
2252 (find_linespec_symbols): Add cleanup to free CLASSES.
2253 * symfile.c (find_separate_debug_file_by_debuglink): Add
2254 cleanup to free DEBUGLINK.
2255 * ui-out.c (clear_header_list): No need to check if
2256 HEADER_NEXT.COLHDR is NULL.
2257 Free HEADER_NEXT.COL_NAME.
2259 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2261 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2264 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2266 * configure.host (gdb_host_cpu): Handle tilegx*.
2267 (gdb_host): Handle tilegx-*-linux*.
2268 * tilegx-linux-nat.c: New file.
2269 * config/tilegx/linux.mh: New file.
2271 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2273 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2274 tilegx-linux-tdep.o.
2275 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2276 tilegx-linux-tdep.c.
2277 * configure.tgt: Handle tilegx-*-linux*.
2278 * tilegx-tdep.h: New file.
2279 * tilegx-tdep.c: New file.
2280 * tilegx-linux-tdep.c: New file.
2281 * regformats/reg-tilegx.dat: New file.
2283 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2285 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2286 accounting of hw watchpoints on ppc.
2288 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2290 * source.c (openp): Expand tilde in path entries.
2292 2012-05-29 Doug Evans <dje@google.com>
2294 * buildsym.c (block_compar): Fix comment.
2295 (end_symtab): Fix and clarify some comments.
2297 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2298 cleanup_undefined_types.
2299 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2300 All callers updated.
2302 2012-05-29 Tom Tromey <tromey@redhat.com>
2304 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2306 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2307 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2309 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2312 2012-05-29 Tristan Gingold <gingold@adacore.com>
2314 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2315 (struct darwin_info): ... New struct.
2316 (solib_darwin_pspace_data): New variable.
2317 (darwin_pspace_data_cleanup): New function.
2318 (get_darwin_info): Likewise.
2319 (darwin_dyld_version_ok, darwin_load_image_infos)
2320 (darwin_solib_get_all_image_info_addr_at_init)
2321 (darwin_solib_read_all_image_info_addr): Add info argument.
2323 (darwin_current_sos): Use per pspace structure.
2324 (darwin_solib_create_inferior_hook): Likewise.
2325 (darwin_clear_solib): Likewise.
2326 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2328 2012-05-28 Pedro Alves <palves@redhat.com>
2330 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2331 block that uses them. Clear ecss before handling each event.
2333 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2335 * solib-svr4.c (svr4_current_sos): New comment on
2336 svr4_current_sos_via_xfer_libraries fall back.
2338 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2340 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2341 it as a fallback for TYPE_IS_OPAQUE.
2342 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2343 symbols for lookup_symbol.
2345 2012-05-24 John Steele Scott <toojays@toojays.net>
2347 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2348 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2349 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2350 (check_producer): ... this new function, which also checks for ICC
2351 and caches the result.
2352 (producer_is_icc): New function.
2353 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2356 2012-05-24 Pedro Alves <palves@redhat.com>
2360 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2361 (default_gdb_signal_to_target): ... this. Add comment.
2362 (default_gdb_signal_from_host): Rename to ...
2363 (default_gdb_signal_from_target): ... this. Add comment.
2364 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2365 (default_gdb_signal_to_target): ... this.
2366 (default_gdb_signal_from_host): Rename to ...
2367 (default_gdb_signal_from_target): ... this.
2368 * corelow.c (core_open): Adjust to naming change. Replace comment.
2369 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2370 (gdb_signal_from_target): ... this. Adjust to
2371 default_gdb_signal_from_host naming change. Extend comment.
2372 (gdb_signal_to_host): Rename to ...
2373 (gdb_signal_to_target): ... this. Adjust to
2374 default_gdb_signal_to_host naming change.
2375 * gdbarch.h, gdbarch.c: Renegerate.
2377 2012-05-24 Pedro Alves <palves@redhat.com>
2381 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2383 2012-05-24 Pedro Alves <palves@redhat.com>
2387 Replace target_signal with gdb_signal throughout.
2389 2012-05-24 Pedro Alves <palves@redhat.com>
2393 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2394 string, instead of reusing the va_list argument.
2396 2012-05-24 Tom Tromey <tromey@redhat.com>
2398 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2401 2012-05-23 Doug Evans <dje@google.com>
2403 * symtab.c (search_symbols): Formatting fixes.
2404 (print_symbol_info): Formatting fixes.
2406 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2407 int64_t change to leb128 API.
2408 (read_encoded_value, decode_frame_entry_1): Ditto.
2409 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2410 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2411 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2412 (execute_stack_op): Ditto.
2413 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2414 (safe_read_uleb128, safe_read_sleb128): Ditto.
2415 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2416 (dwarf2_compile_expr_to_ax): Ditto.
2417 (locexpr_describe_location_piece): Ditto.
2418 (disassemble_dwarf_expression): Ditto.
2419 (locexpr_describe_location_1): Ditto.
2421 2012-05-23 Stan Shebs <stan@codesourcery.com>
2422 Kwok Cheung Yeung <kcy@codesourcery.com>
2424 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2425 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2426 (mi-cmd-info.o): New rule.
2427 * osdata.h (info_osdata_command): New declaration.
2428 * osdata.c (info_osdata_command): Change to non-static.
2429 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2430 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2431 * mi/mi-cmd-info.c: New file.
2433 2012-05-23 Doug Evans <dje@google.com>
2435 * symtab.c (search_symbols): Pass NULL for file_matcher to
2436 expand_symtabs_matching if there are no files to match.
2438 * gdbtypes.c (lookup_typename): Simplify.
2440 2012-05-23 Pedro Alves <palves@redhat.com>
2442 * arch-utils.h (default_target_signal_to_host): Delete.
2443 * arch-utils.c (default_target_signal_to_host): Delete.
2444 * gdbarch.sh (target_signal_to_host): Remove.
2445 * gdbarch.h, gdbarch.c: Regenerate.
2447 2012-05-22 Doug Evans <dje@google.com>
2449 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2451 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2452 (execute_cfa_program): Update to match API of leb128 functions.
2453 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2455 (read_unsigned_leb128, read_signed_leb128): Delete.
2456 (read_initial_length): Change type of buf argument to
2458 (read_encoded_value): Update to match API of leb128 functions.
2459 (decode_frame_entry): Change result to "const gdb_byte *", and
2460 similarly for "start" parameter.
2461 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2462 (dwarf2_build_frame_info): Change local frame_ptr to
2464 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2465 read_uleb128, read_sleb128. All callers updated.
2466 (safe_skip_leb128): New function.
2467 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2468 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2469 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2470 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2471 read_uleb128, read_sleb128.
2472 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2473 (execute_stack_op): Update to match API of leb128 functions.
2474 * dwarf2expr.h: #include "leb128.h".
2475 (read_uleb128, read_sleb128): Delete.
2476 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2477 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2478 * dwarf2loc.c (debug_loc_kind): New enum.
2479 (decode_debug_loc_addresses): New function.
2480 (decode_debug_loc_dwo_addresses): New function.
2481 (dwarf2_find_location_expression): Rewrite.
2482 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2483 (locexpr_describe_location_piece): Ditto.
2484 (disassemble_dwarf_expression): Ditto.
2485 (locexpr_describe_location_1): Ditto.
2486 (loclist_describe_location): Rewrite.
2487 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2488 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2489 (dwarf2_section_buffer_overflow_complaint): Renamed from
2490 dwarf2_macros_too_long_complaint. All callers updated.
2491 (skip_leb128): Delete.
2492 (init_cu_die_reader): Initialize reader->buffer_end.
2493 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2494 (skip_form_bytes): New arg buffer_end. All callers updated.
2495 Replace call to skip_leb128 with gdb_skip_leb128.
2496 (skip_unknown_opcode): New arg mac_end. All callers updated.
2497 (fill_in_loclist_baton): Initialize baton->from_dwo.
2499 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2501 * mips-linux-nat.c (mips_linux_read_description): Use a more
2502 verbose error message.
2504 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2506 * NEWS: Add MIPS/Linux DSP support.
2507 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2508 (SIGCONTEXT_DSPCTL): New macro.
2509 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2510 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2511 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2512 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2513 (N64_SIGCONTEXT_HI3): Likewise.
2514 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2515 (N64_SIGCONTEXT_LO3): Likewise.
2516 (N64_SIGCONTEXT_DSPCTL): Likewise.
2517 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2518 (mips_linux_o32_sigframe_init): Handle DSP registers.
2519 (mips_linux_n32n64_sigframe_init): Likewise.
2521 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2523 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2526 2012-05-22 Pedro Alves <palves@redhat.com>
2528 * target.h (store_waitstatus): Move declaration ...
2529 * inf-child.h (store_waitstatus): ... here.
2530 * target.c: Move inclusion of gdb_wait.h, and ...
2531 (store_waitstatus): ... this ...
2532 * inf-child.c: ... here.
2533 * linux-nat.c: Include inf-child.h.
2534 * rs6000-nat.c: Include inf-child.h.
2535 * spu-linux-nat.c: Include inf-child.h.
2537 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2539 * tracepoint.c (start_tracing): Add missing i18n markup.
2540 (stop_tracing, set_trace_user): Ditto.
2541 (set_trace_notes, set_trace_stop_notes): Ditto.
2543 2012-05-21 Tom Tromey <tromey@redhat.com>
2546 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2548 * value.h (value_cast_pointers): Update.
2549 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2550 (value_cast): Update.
2551 (update_search_result): New function.
2552 (do_search_struct_field): New, from search_struct_field. Check
2553 for ambiguous results.
2554 (search_struct_field): Rewrite.
2555 * infcall.c (value_arg_coerce): Update.
2556 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2557 value_cast_pointers.
2558 * ada-lang.c (ada_convert_actual): Update.
2560 2012-05-21 Tom Tromey <tromey@redhat.com>
2562 * macroexp.c (macro_stringify): Terminate the string.
2564 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2566 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2568 * auto-load.c (auto_load_expand_dir_vars): New function.
2569 (auto_load_safe_path_vec_update): Use it, remove the
2570 substitute_path_component call thanks to it.
2571 (auto_load_objfile_script): Remove the debug_file_directory processing.
2572 Use auto_load_expand_dir_vars, remove the substitute_path_component
2574 * configure: Regenerate.
2575 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2576 path. Escape $ also for $debugdir.
2577 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2578 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2580 2012-05-20 Doug Evans <dje@google.com>
2582 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2583 before use. Check for symtab->includes == NULL before scanning it.
2585 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2587 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2589 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2591 * NEWS: Add microMIPS support and "set mips compression",
2592 "show mips compression" commands.
2593 * mips-tdep.h (mips_isa): New enum.
2594 (gdbarch_tdep): Add mips_isa.
2595 (mips_pc_is_mips16): Update prototype.
2596 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2597 * mips-tdep.c (mips_compression_mips16): New variable.
2598 (mips_compression_micromips): Likewise.
2599 (mips_compression_strings): Likewise.
2600 (mips_compression_string): Likewise.
2601 (is_mips16_isa, is_micromips_isa): New functions.
2602 (is_mips16_addr): Rename to...
2603 (is_compact_addr): ... this.
2604 (unmake_mips16_addr): Likewise to...
2605 (unmake_compact_addr): ... this.
2606 (make_mips16_addr): Likewise to...
2607 (make_compact_addr): ... this.
2608 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2610 (mips_elf_make_msymbol_special): Handle microMIPS code.
2611 (msymbol_is_special): Rename to...
2612 (msymbol_is_mips16): ... this.
2613 (mips_make_symbol_special, mips_pc_is_mips16): Update
2615 (msymbol_is_mips, msymbol_is_micromips): New functions.
2616 (mips16_to_32_reg): Rename to...
2617 (mips_reg3_to_reg): ... this.
2618 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2619 (mips_pc_isa): Likewise.
2620 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2622 (mips_fetch_instruction): Pass return status instead of printing
2623 an error message if requested. Handle microMIPS code. Bail out
2625 (micromips_op): New macro.
2626 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2627 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2628 (b6s4_op, b7s3_reg): Likewise.
2629 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2630 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2631 (mips_insn_size): New function.
2632 (mips32_next_pc): Update mips_fetch_instruction call.
2633 (micromips_relative_offset7): New function.
2634 (micromips_relative_offset10): Likewise.
2635 (micromips_relative_offset16): Likewise.
2636 (micromips_pc_insn_size): Likewise.
2637 (micromips_bc1_pc): Likewise.
2638 (micromips_next_pc): Likewise.
2639 (unpack_mips16): Update mips_fetch_instruction call.
2640 (extended_mips16_next_pc): Update according to change to
2642 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2644 (mips16_scan_prologue): Update mips_fetch_instruction call.
2645 Update according to change to mips16_to_32_reg.
2646 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2647 (mips_insn16_frame_base_sniffer): Likewise.
2648 (micromips_decode_imm9): New function.
2649 (micromips_scan_prologue): Likewise.
2650 (mips_micro_frame_cache): Likewise.
2651 (mips_micro_frame_this_id): Likewise.
2652 (mips_micro_frame_prev_register): Likewise.
2653 (mips_micro_frame_sniffer): Likewise.
2654 (mips_micro_frame_unwind): New variable.
2655 (mips_micro_frame_base_address): New function.
2656 (mips_micro_frame_base): New variable.
2657 (mips_micro_frame_base_sniffer): New function.
2658 (mips32_scan_prologue): Update mips_fetch_instruction call.
2659 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2660 rather than for MIPS16.
2661 (mips_insn32_frame_base_sniffer): Likewise.
2662 (mips_addr_bits_remove): Handle microMIPS code.
2663 (deal_with_atomic_sequence): Rename to...
2664 (mips_deal_with_atomic_sequence): ... this. Update the type
2665 of the variable used to hold an instruction. Remove the ISA bit
2666 check. Update mips_fetch_instruction call.
2667 (micromips_deal_with_atomic_sequence): New function.
2668 (deal_with_atomic_sequence): Likewise.
2669 (mips_about_to_return): Handle microMIPS code. Update
2670 mips_fetch_instruction call.
2671 (heuristic_proc_start): Check for the standard MIPS ISA rather
2672 than for MIPS16. Update mips_pc_is_mips16 and
2673 mips_fetch_instruction calls. Handle microMIPS code.
2674 (mips_push_dummy_code): Handle microMIPS code.
2675 (mips_eabi_push_dummy_call): Likewise.
2676 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2677 (mips_o64_push_dummy_call): Handle microMIPS code.
2678 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2679 (is_delayed): Remove function.
2680 (mips_single_step_through_delay): Replace the call to is_delayed
2681 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2682 Handle microMIPS code.
2683 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2685 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2687 (micromips_in_function_epilogue_p): New function.
2688 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2690 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2692 (gdb_print_insn_mips): Likewise.
2693 (mips_breakpoint_from_pc): Likewise.
2694 (mips_remote_breakpoint_from_pc): New function.
2695 (mips32_instruction_has_delay_slot): Simplify making use of the
2696 updated mips_fetch_instruction interface.
2697 (micromips_instruction_has_delay_slot): New function.
2698 (mips16_instruction_has_delay_slot): Simplify making use of the
2699 updated mips_fetch_instruction interface.
2700 (mips_adjust_breakpoint_address): Check for the standard MIPS
2701 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2702 calls. Handle microMIPS code.
2703 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2704 (mips_skip_trampoline_code): Handle microMIPS code.
2705 (global_mips_compression): New function.
2706 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2707 file flags. Register the microMIPS remote breakpoint handler
2708 and heuristic frame unwinder.
2709 (show_mips_compression): New function.
2710 (_initialize_mips_tdep): Add the "set mips compression" and
2711 "show mips compression" commands.
2713 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2718 * amd64-darwin-tdep.c:
2719 * arm-symbian-tdep.c:
2723 * bfin-linux-tdep.c:
2730 * dwarf2-frame-tailcall.c:
2759 * microblaze-tdep.c:
2760 * mips-linux-tdep.c:
2768 * python/py-finishbreakpoint.c:
2769 * python/py-inferior.c:
2770 * python/py-infthread.c:
2774 * remote-m32r-sdi.c:
2778 * rs6000-aix-tdep.c:
2804 * amd64-darwin-tdep.c:
2805 * arm-symbian-tdep.c:
2806 * arm-tdep.c: Delete unused variables.
2808 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2810 Rename $ddir to $datadir.
2811 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2812 * auto-load.c (auto_load_safe_path_vec_update)
2813 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2814 * configure: Regenerate.
2815 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2816 Likewise. Remove the 'use $ddir' help string.
2818 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2820 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2821 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2823 2012-05-18 Tom Tromey <tromey@redhat.com>
2826 * valprint.h (struct value_print_options) <symbol_print>: New
2828 * valprint.c (user_print_options): Add default for symbol_print.
2829 (show_symbol_print): New function.
2830 (generic_val_print): Respect symbol_print.
2831 (_initialize_valprint): Add "print symbol" setting.
2832 * f-valprint.c (f_val_print): Respect symbol_print.
2833 * c-valprint.c (c_val_print): Respect symbol_print.
2835 * printcmd.c (print_address_symbolic): Return int. Ignore some
2837 (print_address_demangle): Return int.
2838 * defs.h: (print_address_symbolic): Return int.
2839 * value.h (print_address_demangle): Return int.
2841 2012-05-18 Tom Tromey <tromey@redhat.com>
2843 * valprint.c (val_print_string): Don't print leading space.
2844 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2845 print space before string or vtbl.
2846 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2848 * jv-valprint.c (java_value_print): Print space before string.
2849 * go-valprint.c (print_go_string): Print space before string.
2850 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2851 space before string.
2852 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2853 space before string or vtbl.
2854 * auxv.c (fprint_target_auxv): Print space after address.
2856 2012-05-18 Tom Tromey <tromey@redhat.com>
2858 * printcmd.c (print_address_demangle): Remove special case for 0.
2860 2012-05-18 Tom Tromey <tromey@redhat.com>
2862 * printcmd.c (print_address_demangle): Add 'opts' argument.
2863 * p-valprint.c (pascal_val_print): Update.
2864 * jv-valprint.c (java_val_print): Update.
2866 * valprint.c (generic_val_print): Update.
2867 (print_function_pointer_address): Add 'options' argument. Remove
2868 'addressprint' argument. Update.
2869 * m2-valprint.c (print_unpacked_pointer): Update.
2870 * gnu-v3-abi.c (print_one_vtable): Update.
2871 (gnuv3_print_method_ptr): Update.
2872 * f-valprint.c (f_val_print): Update.
2873 * cp-valprint.c (cp_print_value_fields): Update.
2874 * valprint.h (print_function_pointer_address): Update.
2875 * c-valprint.c (c_val_print): Update.
2877 2012-05-18 Tom Tromey <tromey@redhat.com>
2879 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2880 directly corresponding to the found psymtab.
2881 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2882 (dw2_find_pc_sect_symtab): Use it.
2883 * block.h (blockvector_contains_pc): Declare.
2884 * block.c (find_block_in_blockvector): New function.
2885 (blockvector_for_pc_sect): Use it.
2886 (blockvector_contains_pc): New function.
2888 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2890 * mips-tdep.h (mips_write_pc): New prototype.
2891 * mips-tdep.c (mips_write_pc): Make external, add description.
2892 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
2895 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2897 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
2899 (mips_unwind_pc, mips_write_pc): Likewise.
2900 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
2903 2012-05-17 Joel Brobecker <brobecker@adacore.com>
2905 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
2906 proc_warn, proc_error, proc_get_status, proc_flags,
2907 proc_why, proc_what, proc_nsysarg, proc_sysargs,
2908 proc_set_run_on_last_close, proc_unset_run_on_last_close,
2909 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
2910 proc_stop_process, proc_wait_for_stop, proc_run_process,
2911 proc_set_traced_signals, proc_set_traced_faults,
2912 proc_set_traced_sysentry, proc_set_traced_sysexit,
2913 proc_set_held_signals, proc_get_held_signals,
2914 proc_get_traced_signals, proc_get_traced_faults,
2915 proc_get_traced_sysentry, proc_get_traced_sysexit,
2916 proc_clear_current_fault, proc_set_current_signal,
2917 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
2918 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
2919 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
2920 proc_get_current_thread, proc_get_current_thread,
2921 proc_get_current_thread, proc_update_threads,
2922 proc_update_threads, proc_update_threads, proc_update_threads,
2923 proc_iterate_over_threads, procfs_find_new_threads,
2924 procfs_pid_to_str): Make static. Remove advance declaration.
2925 (proc_cursig): Make static. Conditionalized defintion on
2926 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
2927 (proc_syscall, proc_set_kill_on_last_close,
2928 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
2929 proc_get_pending_signals, proc_get_signal_actions,
2930 proc_trace_signal, proc_ignore_signal): Delete.
2932 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2934 * coffread.c (cs_section_address): Passing proper argument for
2935 `bfd_get_section_vma'.
2936 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
2937 `bfd_get_section_flags'.
2938 * remote.c (remote_trace_set_readonly_regions): Likewise, for
2939 `bfd_get_section_vma'.
2941 2012-05-16 Tom Tromey <tromey@redhat.com>
2944 * macrotab.h: (macro_define_special): Declare.
2945 (enum macro_special_kind): New.
2946 (struct macro_definition) <argc, replacement>: Update comments.
2947 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
2948 (macro_define_object_internal): New function.
2949 (macro_define_object): Use it.
2950 (macro_define_special): New function.
2951 (fixup_definition): New function.
2952 (macro_lookup_definition, foreach_macro_in_scope)
2953 (foreach_macro): Use fixup_definition.
2954 * macroexp.h (macro_stringify): Declare.
2955 * macroexp.c (free_buffer_return_text): New function.
2956 (stringify): Constify "arg".
2957 (macro_stringify): New function.
2958 * dwarf2read.c (macro_start_file): Call macro_define_special.
2960 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
2961 Maciej W. Rozycki <macro@mips.com>
2963 * breakpoint.h (bp_location): Add related_address member.
2964 * inferior.h (get_return_value): Take a pointer to struct value
2965 instead of struct type for the function requested.
2966 * value.h (using_struct_return): Likewise.
2967 * gdbarch.sh (return_value): Take a pointer to struct value
2968 instead of struct type for the function requested.
2969 * breakpoint.c (set_breakpoint_location_function): Initialize
2970 related_address for bp_gnu_ifunc_resolver breakpoints.
2971 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
2972 requested function's address to gdbarch_return_value.
2973 * eval.c (evaluate_subexp_standard): Pass the requested
2974 function's address to using_struct_return.
2975 * infcall.c (call_function_by_hand): Pass the requested
2976 function's address to using_struct_return and
2977 gdbarch_return_value.
2978 * infcmd.c (get_return_value): Take a pointer to struct value
2979 instead of struct type for the function requested.
2980 (print_return_value): Update accordingly.
2981 (finish_command_continuation): Likewise.
2982 * stack.c (return_command): Pass the requested function's
2983 address to using_struct_return and gdbarch_return_value.
2984 * value.c (using_struct_return): Take a pointer to struct value
2985 instead of struct type for the function requested. Pass the
2986 requested function's address to gdbarch_return_value.
2987 * python/py-finishbreakpoint.c (finish_breakpoint_object):
2988 New function_value member, replacing function_type.
2989 (bpfinishpy_dealloc): Update accordingly.
2990 (bpfinishpy_pre_stop_hook): Likewise.
2991 (bpfinishpy_init): Likewise. Record the requested function's
2993 * mips-tdep.c (mips_fval_reg): New enum.
2994 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
2995 words put in GP registers.
2996 (mips_o64_push_dummy_call): Update a comment.
2997 (mips_o32_return_value): Take a pointer to struct value instead
2998 of struct type for the function requested and use it to check if
2999 using the MIPS16 calling convention. Return the designated
3000 general purpose registers for floating-point values returned in
3002 (mips_o64_return_value): Likewise.
3003 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
3004 (ppc_sysv_abi_broken_return_value): Likewise.
3005 (ppc64_sysv_abi_return_value): Likewise.
3006 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
3007 value instead of struct type for the function requested.
3008 * amd64-tdep.c (amd64_return_value): Likewise.
3009 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
3010 * arm-tdep.c (arm_return_value): Likewise.
3011 * avr-tdep.c (avr_return_value): Likewise.
3012 * bfin-tdep.c (bfin_return_value): Likewise.
3013 * cris-tdep.c (cris_return_value): Likewise.
3014 * frv-tdep.c (frv_return_value): Likewise.
3015 * h8300-tdep.c (h8300_return_value): Likewise.
3016 (h8300h_return_value): Likewise.
3017 * hppa-tdep.c (hppa32_return_value): Likewise.
3018 (hppa64_return_value): Likewise.
3019 * i386-tdep.c (i386_return_value): Likewise.
3020 * ia64-tdep.c (ia64_return_value): Likewise.
3021 * iq2000-tdep.c (iq2000_return_value): Likewise.
3022 * lm32-tdep.c (lm32_return_value): Likewise.
3023 * m32c-tdep.c (m32c_return_value): Likewise.
3024 * m32r-tdep.c (m32r_return_value): Likewise.
3025 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
3026 * m68k-tdep.c (m68k_return_value): Likewise.
3027 (m68k_svr4_return_value): Likewise.
3028 * m88k-tdep.c (m88k_return_value): Likewise.
3029 * mep-tdep.c (mep_return_value): Likewise.
3030 * microblaze-tdep.c (microblaze_return_value): Likewise.
3031 * mn10300-tdep.c (mn10300_return_value): Likewise.
3032 * moxie-tdep.c (moxie_return_value): Likewise.
3033 * mt-tdep.c (mt_return_value): Likewise.
3034 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
3035 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
3036 (ppc_sysv_abi_broken_return_value): Likewise.
3037 (ppc64_sysv_abi_return_value): Likewise.
3038 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
3039 * rl78-tdep.c (rl78_return_value): Likewise.
3040 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
3041 * rx-tdep.c (rx_return_value): Likewise.
3042 * s390-tdep.c (s390_return_value): Likewise.
3043 * score-tdep.c (score_return_value): Likewise.
3044 * sh-tdep.c (sh_return_value_nofpu): Likewise.
3045 (sh_return_value_fpu): Likewise.
3046 * sh64-tdep.c (sh64_return_value): Likewise.
3047 * sparc-tdep.c (sparc32_return_value): Likewise.
3048 * sparc64-tdep.c (sparc64_return_value): Likewise.
3049 * spu-tdep.c (spu_return_value): Likewise.
3050 * tic6x-tdep.c (tic6x_return_value): Likewise.
3051 * v850-tdep.c (v850_return_value): Likewise.
3052 * vax-tdep.c (vax_return_value): Likewise.
3053 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3054 * xtensa-tdep.c (xtensa_return_value): Likewise.
3055 * gdbarch.c: Regenerate.
3056 * gdbarch.h: Regenerate.
3058 2012-05-15 Tom Tromey <tromey@redhat.com>
3060 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3062 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3064 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3065 of command in two error message.
3067 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3069 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3071 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3073 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3075 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3077 * NEWS (show auto-load scripts-directory): Add forgotten command.
3079 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3081 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3084 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3086 * amd64-tdep.c: Include features/i386/x32.c and
3087 features/i386/x32-avx.c.
3088 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3089 initialize_tdesc_x32_avx.
3091 2012-05-14 Stan Shebs <stan@codesourcery.com>
3094 * breakpoint.h (enum bptype): New type bp_dprintf.
3095 (struct breakpoint): New field extra_string.
3096 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3097 (create_breakpoint): Add extra_string arg.
3098 * breakpoint.c (dprintf_breakpoint_ops): New.
3099 (is_breakpoint): Add bp_dprintf.
3100 (bpstat_what): Add dprintf case.
3101 (bptype_string): Ditto.
3102 (print_one_breakpoint_location): Ditto.
3103 (init_bp_location): Ditto.
3104 (bkpt_print_mention): Ditto.
3105 (dprintf_style_enums): New array.
3106 (dprintf_style): New global.
3107 (dprintf_function): New global.
3108 (dprintf_channel): New global.
3109 (update_dprintf_command_list): New function.
3110 (update_dprintf_commands): New function.
3111 (init_breakpoint_sal): Add extra_string argument, handle it.
3112 (create_breakpoint_sal): Add extra_string argument.
3113 (create_breakpoints_sal): Add extra_string argument, update callers.
3114 (find_condition_and_thread): Add extra argument.
3115 (create_breakpoint): Add extra_string argument, record it.
3116 (dprintf_command): New function.
3117 (break_command_1): Add arg to create_breakpoint call.
3118 (handle_gnu_v3_exceptions): Ditto.
3119 (trace_command): Ditto.
3120 (ftrace_command): Ditto.
3121 (strace_command): Ditto.
3122 (bkpt_print_mention): Add dprintf case.
3123 (create_breakpoint_sal_default): Add extra_string argument.
3124 (_initialize_breakpoint): Add new commands.
3125 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3126 * python/py-breakpoint.c (bppy_init): Ditto.
3127 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3129 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3131 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3133 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3135 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3138 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3140 Add a new function gdb.find_pc_line to the Python API.
3141 * NEWS (Python Scripting): Add entry about the new function.
3142 * python/python.c (gdbpy_find_pc_line): New function which
3143 implements gdb.find_pc_line.
3144 (GdbMethods): Add entry for the new function.
3146 2012-05-12 Pedro Alves <palves@redhat.com>
3148 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3149 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3151 2012-05-12 Eli Zaretskii <eliz@gnu.org>
3153 * inferior.c: Include completer.h
3154 (initialize_inferiors): Set completer of add-inferior to
3157 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3159 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3160 gdbarch_ptr_bit for x32 core dump.
3162 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3164 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3165 and features/i386/x32-avx-linux.c.
3167 2012-05-11 Stan Shebs <stan@codesourcery.com>
3168 Kwok Cheung Yeung <kcy@codesourcery.com>
3170 * NEWS: Describe new info os commands.
3171 * common/linux-osdata.c (PID_T, TIME_T): Define.
3172 (MAX_PID_T_STRLEN): New.
3173 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3175 (command_from_pid): Add comment. Change to use PID_T.
3176 (commandline_from_pid): Change to use PID_T.
3177 (user_from_pid): Add comment.
3178 (get_process_owner): Add comment. Change to use PID_T and
3180 (get_number_of_cpu_cores): Add comment.
3181 (get_cores_used_by_process): Add comment. Change to use PID_T and
3183 (linux_xfer_osdata_processes): Change to use PID_T and
3185 (compare_processes): New function.
3186 (linux_xfer_osdata_processgroups): New function.
3187 (linux_xfer_osdata_threads): Change to use PID_T.
3188 (linux_xfer_osdata_fds): New function.
3189 (format_socket_state, print_sockets): New functions.
3190 (union socket_addr): New union.
3191 (linux_xfer_osdata_isockets): New function.
3192 (time_from_time_t, group_from_gid): New functions.
3193 (linux_xfer_osdata_shm): New function.
3194 (linux_xfer_osdata_sem): New function.
3195 (linux_xfer_osdata_msg): New function.
3196 (linux_xfer_osdata_modules): New function.
3197 (osdata_table): Add new entries.
3198 * common/buffer.c (buffer_xml_printf): Add support for long and
3199 long long format specifiers.
3201 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3203 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3204 (tdesc_x32_avx_linux): Likewise.
3206 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3208 Implement multi-component --with-auto-load-dir.
3209 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3211 (--with-auto-load-safe-path): Update the default value description.
3212 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3214 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3215 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3216 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3217 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3218 "set auto-load scripts-directory".
3219 * config.in: Regenerate.
3220 * configure: Regenerate.
3221 * configure.ac (--with-auto-load-dir): New configure option.
3222 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3224 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3226 Provide $ddir substitution for --with-auto-load-safe-path.
3227 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3229 * auto-load.c: Include observer.h.
3230 (auto_load_safe_path_vec_update): Call substitute_path_component for
3231 each component. New variable ddir_subst.
3232 (auto_load_gdb_datadir_changed): New function.
3233 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3234 AUTO_LOAD_SAFE_PATH. New comment.
3235 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3236 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3237 * config.in: Regenerate.
3238 * configure: Regenerate.
3239 * configure.ac (--auto-load-safe-path): Rename
3240 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3241 GDB_DATADIR/auto-load.
3242 * defs.h (substitute_path_component): New declaration.
3243 * top.c: Include observer.h.
3244 (set_gdb_datadir): New function.
3245 (init_main): Install it for "set data-directory".
3246 * utils.c (substitute_path_component): New function.
3248 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3250 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3251 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3252 DEBUG_FILE_DIRECTORY. Handle multiple components of
3253 DEBUG_FILE_DIRECTORY.
3255 2012-05-10 Tom Tromey <tromey@redhat.com>
3257 * dwarf2read.c (recursively_write_psymbols): New function.
3258 (write_psymtabs_to_index): Use it.
3260 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3262 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3263 (load_partial_comp_unit): Update.
3264 (queue_comp_unit): Add argument 'pretend_language'.
3265 (process_queue): Update.
3266 (psymtab_to_symtab_1): Skip dependencies that have a user.
3267 (load_partial_comp_unit_reader): Give meaning to the 'data'
3269 (load_full_comp_unit): Add 'pretend_language' argument.
3270 (process_full_comp_unit): Add 'pretend_language' argument. Set
3272 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3274 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3275 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3277 (prepare_one_comp_unit): Add 'pretend_language' argument.
3279 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3280 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3281 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3282 (dw2_do_instantiate_symtab): Check whether symtab was read in
3284 (dw2_instantiate_symtab): Add assertion. Call
3285 process_cu_includes.
3286 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3287 (partial_symtab_p): New typedef.
3288 (set_partial_user): New function.
3289 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3290 (scan_partial_symbols): Add imported CU to imported_symtabs.
3291 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3292 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3293 (get_symtab, recursively_compute_inclusions)
3294 (compute_symtab_includes, process_cu_includes)
3295 (process_imported_unit_die): New functions.
3296 (process_die) <DW_TAG_imported_unit>: New case.
3297 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3299 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3301 (struct partial_die_info) <locdesc>: Remove.
3303 (process_psymtab_comp_unit): Add 'read_partial' argument.
3305 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3306 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3307 (add_partial_symbol): Update.
3308 (process_die): Handle DW_TAG_partial_unit.
3309 (read_file_scope): Update comment.
3310 (load_partial_dies): Handle DW_TAG_imported_unit.
3311 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3312 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3314 2012-05-10 Tom Tromey <tromey@redhat.com>
3316 * cc-with-dwz.sh: New file.
3318 2012-05-10 Tom Tromey <tromey@redhat.com>
3320 * symtab.h (struct symtab) <includes, user>: New fields.
3321 * block.h (struct block_iterator) <d, idx, which>: New fields.
3322 * block.c (initialize_block_iterator, find_iterator_symtab)
3323 (block_iterator_step, block_iter_name_step)
3324 (block_iter_match_step): New functions.
3325 (block_iterator_first, block_iterator_next)
3326 (block_iter_name_first, block_iter_name_next)
3327 (block_iter_match_first, block_iter_match_next): Rewrite.
3328 (get_block_symtab): New function.
3330 2012-05-10 Tom Tromey <tromey@redhat.com>
3332 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3334 * jit.c (finalize_symtab): Use allocate_global_block,
3336 * buildsym.c (finish_block_internal): New function, from old
3338 (finish_block): Rewrite.
3339 (end_symtab): Use finish_block_internal, set_block_symtab.
3340 * block.h (struct global_block): New.
3341 (allocate_global_block, set_block_symtab): Declare.
3342 * block.c (allocate_global_block, set_block_symtab): New
3345 2012-05-10 Tom Tromey <tromey@redhat.com>
3347 * psymtab.c (partial_map_expand_apply): Add assertion.
3348 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3349 (psymtab_to_symtab): Find unshared psymtab.
3350 (dump_psymtab): Print including psymtabs.
3351 (recursively_search_psymtabs): New function.
3352 (expand_symtabs_matching_via_partial): Use it.
3353 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3355 (enum psymtab_search_status): New.
3357 2012-05-10 Tom Tromey <tromey@redhat.com>
3359 * tracepoint.c (scope_info): Update.
3360 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3361 (find_pc_sect_symtab, search_symbols)
3362 (default_make_symbol_completion_list_break_on)
3363 (make_file_symbol_completion_list): Update.
3364 * symmisc.c (dump_symtab_1): Update.
3365 * stack.c (print_frame_args, iterate_over_block_locals)
3366 (print_frame_labels, iterate_over_block_arg_vars): Update.
3367 * python/py-block.c (block_object) <dict>: Remove.
3369 <iter>: Change type.
3370 (blpy_iter): Update.
3371 (blpy_block_syms_iternext): Update.
3372 * psymtab.c (map_block): Use block iterators.
3373 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3374 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3375 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3376 * infrun.c (check_exception_resume): Update.
3377 * cp-support.c (make_symbol_overload_list_block): Update.
3378 * coffread.c (patch_opaque_types): Update.
3379 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3380 * block.h (struct block_iterator): New.
3381 (block_iterator_first, block_iterator_next, block_iter_name_first)
3382 (block_iter_name_next, block_iter_match_first)
3383 (block_iter_match_next): Declare.
3384 (ALL_BLOCK_SYMBOLS): Redefine.
3385 * block.c (block_iterator_first, block_iterator_next)
3386 (block_iter_name_first, block_iter_name_next)
3387 (block_iter_match_first, block_iter_match_next): New functions.
3388 * ada-lang.c (ada_add_block_symbols)
3389 (ada_make_symbol_completion_list): Use block iterator.
3391 2012-05-10 Tom Tromey <tromey@redhat.com>
3393 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3394 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3395 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3396 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3397 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3400 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3402 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3403 print-file-var-lib2.c, print-file-var-main.c and
3404 print-file-var.exp (located in gdb/testsuite/gdb.base).
3406 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3408 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3409 try locating the symbol in the symbol's own objfile first, before
3410 extending the search to all objfiles.
3411 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3412 out of lookup_symbol_aux_symtabs.
3413 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3414 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3415 Do not search EXCLUDE_OBJFILE.
3416 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3417 (lookup_symbol_global): Search for matches in the block's objfile
3418 first, before searching all other objfiles.
3420 2012-05-10 Tristan Gingold <gingold@adacore.com>
3422 * printcmd.c (set_command): Add pre/post inc/dec.
3424 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3426 * gdb.1: Document -ex option.
3428 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3430 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3431 * inferior.h (AT_SYMBOL): Delete.
3433 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3435 * mips-tdep.c (mips_push_dummy_code): New function.
3436 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3437 ON_STACK and install mips_push_dummy_code as our gdbarch
3438 push_dummy_code routine.
3440 2012-05-09 Pedro Alves <palves@redhat.com>
3442 * target.c (set_maintenance_target_async_permitted): Rename to ...
3443 (set_target_async_command): ... this.
3444 (show_maintenance_target_async_permitted): Rename to ...
3445 (show_target_async_command): ... this.
3446 (initialize_targets): Adjust.
3448 2012-05-08 Doug Evans <dje@google.com>
3450 * go-exp.y (classify_name): Add missing assignment of fields of
3453 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3455 Display the ">" prompt in interactive mode while reading canned
3456 commands, even when the current interpreter is MI.
3458 * interps.c (interp_set_temp): New function.
3460 * interps.h (interp_set_temp): Add prototype.
3462 * cli/cli-script.c (restore_interp): New cleanup function.
3463 (read_command_lines): Temporarily override the current interpreter
3464 with CLI and arrange for restoring the original one.
3466 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3468 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3470 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3472 * probe.c (parse_probes): Move conditional to check for
3473 debuginfo files from here...
3474 * stap-probe.c (stap_get_probes): ... to here.
3476 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3477 H.J. Lu <hongjiu.lu@intel.com>
3479 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3480 `movl %esp, %ebp' for the X32 ABI.
3482 2012-05-07 Tom Tromey <tromey@redhat.com>
3484 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3486 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3487 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3488 (dwarf_stack_op_name): Remove.
3489 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3490 (decode_locdesc): Use get_DW_OP_name.
3491 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3492 (dwarf2_compile_expr_to_ax): Likewise.
3493 (disassemble_dwarf_expression): Likewise.
3494 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3496 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3498 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3499 (sh_linux_sigtramp_cache): New function.
3500 (sh_linux_sigreturn_init): New function.
3501 (sh_linux_rt_sigreturn_init): New function.
3502 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3504 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3506 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3507 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3508 (sh_linux_init_abi): Add init calls to register new tramp_frame
3509 definitions under 32-bit SH, update comments.
3511 2012-05-07 Pedro Alves <palves@redhat.com>
3515 * amd64-linux-tdep.c: Include glibc-tdep.h.
3516 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3517 gdbarch_skip_solib_resolver callback.
3519 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3521 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3522 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3523 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3524 (add_auto_load_safe_path): Change the error message.
3525 (_initialize_auto_load): Change the "safe-path" help text.
3526 * configure: Regenerate
3527 * configure.ac (--without-auto-load-safe-path): Set
3528 WITH_AUTO_LOAD_SAFE_PATH to /.
3530 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3532 * stap-probe.h: Do not include unecessary `probe.h'.
3534 2012-05-05 Alan Modra <amodra@gmail.com>
3536 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3537 bfd_und_section_ptr.
3538 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3539 and bfd_com_section_ptr.
3541 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3543 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3545 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3547 * windows-nat.h (segment_register_p_ftype): New typedef.
3548 (windows_set_segment_register_p): Add declaration.
3549 * windows-nat.c (segment_register_p): New static global.
3550 (windows_set_segment_register_p): New function.
3551 (do_windows_fetch_inferior_registers): Add special handling
3552 for segment registers.
3553 * amd64-windows-nat.c: #include "amd64-tdep.h".
3554 (amd64_windows_segment_register_p): New function.
3555 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3556 * i386-windows-nat.c: #include "i386-tdep.h".
3557 (i386_windows_segment_register_p): New function.
3558 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3560 2012-05-04 Tristan Gingold <gingold@adacore.com>
3562 * printcmd.c (set_command): Emit a warning if the expression is not
3565 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3567 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3570 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3572 * stap-probe.c (stap_is_operator): Change declaration.
3573 (stap_get_opcode): Change return value.
3574 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3575 `stap_parse_argument_1'.
3577 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3579 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3582 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3584 Add two new methods global_block and static_block to gdb.Symtab
3586 * NEWS (Python scripting): Add entry about the new methods.
3587 * python/py-symtab.c (stpy_global_block): New function which
3588 implements the gdb.Symtab.global_block() method.
3589 (stpy_static_block): New function which implements the
3590 gdb.Symtab.static_block() method.
3591 (symtab_object_methods): Add entries for the two new methods.
3593 2012-05-03 Doug Evans <dje@google.com>
3595 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3598 2012-05-03 Yao Qi <yao@codesourcery.com>
3600 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3602 (i386_process_record): Ditto.
3604 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3606 * infcall.c (unwind_on_signal_p): Make static.
3608 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3610 * sol-thread.c (solaris_pid_to_str): Make static.
3611 (_initialize_sol_thread): Add prototype.
3613 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3615 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3617 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3619 * MAINTAINERS: Remove myself.
3621 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3623 Fix --without-auto-load-safe-path for MS-Windows host platform.
3624 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3626 2012-05-02 Eli Zaretskii <eliz@gnu.org>
3628 * gdb_curses.h: Undefine KEY_EVENT before including curses
3629 headers. Move "#undef MOUSE_MOVED" before any curses header
3632 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3634 * features/i386/i386-mmx-linux.c: Regenerate.
3635 * features/rs6000/powerpc-32.c: Likewise.
3636 * features/rs6000/powerpc-32l.c: Likewise.
3637 * features/rs6000/powerpc-403.c: Likewise.
3638 * features/rs6000/powerpc-403gc.c: Likewise.
3639 * features/rs6000/powerpc-405.c: Likewise.
3640 * features/rs6000/powerpc-505.c: Likewise.
3641 * features/rs6000/powerpc-601.c: Likewise.
3642 * features/rs6000/powerpc-602.c: Likewise.
3643 * features/rs6000/powerpc-603.c: Likewise.
3644 * features/rs6000/powerpc-604.c: Likewise.
3645 * features/rs6000/powerpc-64.c: Likewise.
3646 * features/rs6000/powerpc-64l.c: Likewise.
3647 * features/rs6000/powerpc-750.c: Likewise.
3648 * features/rs6000/powerpc-860.c: Likewise.
3649 * features/rs6000/powerpc-e500.c: Likewise.
3650 * features/rs6000/powerpc-e500l.c: Likewise.
3651 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3652 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3653 * features/rs6000/rs6000.c: Likewise.
3655 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3657 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3659 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3660 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3661 (stap_parse_argument) <e>: Likewise.
3662 (handle_stap_probe) <byte_order>: Likewise.
3664 2012-04-30 Doug Evans <dje@google.com>
3666 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3667 init_and_read_dies_worker. All callers updated.
3668 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3669 replaced with init_cutu_and_read_dies.
3670 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3671 (find_partial_die): Remove FIXME. Don't free current CU.
3673 2012-04-30 Sterling Augustine <saugustine@google.com>
3675 * contrib: New directory.
3676 * contrib/test_pubnames_and_indexes.py: New file.
3678 2012-04-30 Doug Evans <dje@google.com>
3680 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3681 All callers updated.
3682 (init_cu_die_reader): Verify the section is non-empty.
3683 (dwarf_decode_line_header): Don't dereference section->asection
3684 until we know the section is present.
3686 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3688 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3691 2012-04-29 Yao Qi <yao@codesourcery.com>
3693 * gdb-code-style.el: New hook gdb-markup-hook
3694 and gdb-comment-hook.
3696 2012-04-28 Doug Evans <dje@google.com>
3698 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3699 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3701 * symfile.h (dwarf2_debug_sections): New member addr.
3702 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3703 (ctx_no_get_addr_index): New function.
3704 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3705 (ctx_no_get_addr_index): Declare.
3706 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3707 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3708 (dwarf_expr_ctx_funcs): Update.
3709 (needs_get_addr_index): New function.
3710 (needs_frame_ctx_funcs): Update.
3711 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3712 * dwarf2read.c: #include "gdbcore.h".
3713 (dwarf2_per_objfile): New members addr, dwo_files.
3714 (dwarf2_elf_names): Add entry for addr.
3715 (struct dwo_section_names): New type.
3716 (dwo_section_names): New static global.
3717 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3718 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3719 old debug_types_section member updated to use this.
3720 Rename member debug_types_section to info_or_types_section,
3722 (signatured_type): Rename member type_offset to type_offset_in_tu,
3723 all uses updated. New member type_offset_in_section.
3724 (struct dwo_sections): New type.
3725 (struct dwo_unit): New type.
3726 (struct dwo_file): New type.
3727 (die_reader_specs): New member dwo_file.
3728 (dwarf2_locate_sections): Watch for .debug_addr.
3729 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3730 (dwarf2_read_section): Get bfd of section from bfd's asection,
3732 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3733 (create_signatured_type_table_from_index): Initialize
3734 sig_type->info_or_types_section.
3735 (dw2_get_file_names): Statement lists for type units with DWO files
3736 live in the DWO file.
3737 (create_debug_types_hash_table): New function.
3738 (create_all_type_units): Rewrite.
3739 (init_cu_die_reader): New arg dwo_file, all callers updated.
3740 (init_and_read_dies_worker): Get section from
3741 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3742 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3743 continue reading the CU/TU from there.
3744 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3745 updated. Get section from this_cu->info_or_types_section.
3746 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3747 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3748 DW_FORM_GNU_str_index.
3749 (hash_dwo_file, eq_dwo_file): New functions.
3750 (allocate_dwo_file_hash_table): New function.
3751 (hash_dwo_unit, eq_dwo_unit): New functions.
3752 (allocate_dwo_unit_table): New function.
3753 (dwarf2_locate_dwo_sections): New function.
3754 (struct create_dwo_info_table_data): New type.
3755 (create_debug_info_hash_table_reader): New function.
3756 (create_debug_info_hash_table): New function.
3757 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3758 (lookup_dwo_file): New function.
3759 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3760 (free_dwo_file, free_dwo_file_cleanup): New functions.
3761 (free_dwo_file_from_slot, free_dwo_files): New functions.
3762 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3763 (dwarf2_record_block_ranges): Ditto.
3764 (read_partial_die): Ditto.
3765 (process_enumeration_scope): Update to use type_offset_in_section.
3766 (read_full_die_1): New function.
3767 (read_full_die): Rewrite.
3768 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3769 DW_FORM_GNU_str_index.
3770 (read_addr_index_1, read_addr_index): New functions.
3771 (read_addr_index_from_leb128): New function.
3772 (struct dwarf2_read_addr_index_data): New type.
3773 (dwarf2_read_addr_index_reader): New function.
3774 (dwarf2_read_addr_index): New function.
3775 (read_str_index): New function.
3776 (leb128_size): New function.
3777 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3778 If processing a type unit from a DWO file, get the line section
3780 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3781 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3782 DW_FORM_GNU_str_index.
3783 (lookup_die_type): Check whether section offset of type's die is
3784 known before looking it up. Remove assert. Condition can
3785 legimately happen for inter-cu type references.
3786 (dwarf_attr_name): Handle Fission attributes.
3787 (dwarf_form_name): Handle Fission forms.
3788 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3789 DW_FORM_GNU_str_index.
3790 (follow_die_sig): Update to use type_offset_in_section.
3791 (decode_locdesc): New case DW_OP_GNU_addr_index.
3792 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3793 DW_FORM_GNU_str_index.
3794 (cu_debug_loc_section): New function.
3795 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3796 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3797 Free DWO files if present.
3798 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3800 Refactor DIE reading.
3801 * dwarf2read.c (dwarf2_per_objfile): Replace members
3802 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3803 (die_reader_specs): New member "die_section". Temporarily make
3804 member "buffer" non-const, pending constifying all info_ptr uses.
3805 (die_reader_func_ftype): New typedef.
3806 (dw2_get_file_names_reader): New function.
3807 (dw2_get_file_names): Rewrite.
3808 (read_and_check_type_unit_head): Rename arg type_offset to
3810 (create_all_type_units): Improve debugging message.
3811 Improve dummy type unit check.
3812 (init_cu_die_reader): New arg "section". All callers updated.
3813 (init_and_read_dies_worker): New function.
3814 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3815 (init_cutu_and_read_dies_no_follow): New function.
3816 (init_cutu_and_read_dies_simple): New function.
3817 (process_psymtab_comp_unit_reader): New function.
3818 (process_psymtab_comp_unit): Delete args section,
3819 is_debug_types_section. Rewrite. All callers updated.
3820 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3821 All callers updated. Rewrite.
3822 (load_partial_comp_unit_reader): New function.
3823 (load_partial_comp_unit): Rewrite.
3824 (skip_children): New arg reader. Delete args buffer, cu.
3825 All callers updated.
3826 (skip_one_die): New arg reader. Delete args buffer, cu.
3827 All callers updated.
3828 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3829 All callers updated.
3830 (load_full_comp_unit_reader): New function.
3831 (load_full_comp_unit): Rewrite.
3832 (read_comp_unit): Delete.
3833 (read_die_and_children_1): Delete, contents moved ...
3834 (read_die_and_children): ... here.
3835 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3836 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3837 All callers updated.
3838 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3839 All callers updated.
3840 (find_partial_die): Rewrite load_all_dies support.
3841 (read_attribute_value): New arg reader. Delete args abfd, cu.
3842 All callers updated.
3843 (read_attribute): New arg reader. Delete args abfd, cu.
3844 All callers updated.
3845 (load_full_type_unit): Add assert.
3846 (read_signatured_type_reader): New function.
3847 (read_signatured_type): Rewrite.
3848 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3849 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3850 All callers updated. Set per_cu->cu = NULL after freeing it.
3851 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3852 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3853 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3854 (set_die_type): Update.
3855 (get_die_type_at_offset): Update.
3856 (read_file_scope): Call prepare_one_comp_unit.
3857 (read_type_unit_scope): Ditto.
3858 (prepare_one_comp_unit): Set producer if present.
3860 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
3862 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3863 gettext function on `error'.
3865 2012-04-27 Doug Evans <dje@google.com>
3867 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3870 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3871 Tom Tromey <tromey@redhat.com>
3873 * breakpoint.c (struct breakpoint_objfile_data)
3874 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3875 <exception_probes>: New fields.
3876 (free_breakpoint_probes): New function.
3877 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3878 `_Unwind_DebugHook'.
3879 (create_exception_master_breakpoint): Likewise.
3880 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3881 * infrun.c: Including necessary header files for handling SystemTap
3883 (handle_inferior_event): Handling longjmp breakpoint and exceptions
3884 via SystemTap probes.
3885 (check_exception_resume): Remove `func' argument. Handle exception
3886 unwinding breakpoint set via a SystemTap probe.
3887 (insert_exception_resume_from_probe): New function.
3889 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3890 Tom Tromey <tromey@redhat.com>
3891 Jan Kratochvil <jan.kratochvil@redhat.com>
3893 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
3894 (COMMON_OBS): Likewise.
3895 (HFILES_NO_SRCDIR): Add `probe'.
3896 * NEWS: Mention support for static and SystemTap probes.
3897 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
3898 SystemTap probes' arguments parser.
3899 * arm-linux-tdep.c: Including headers needed to perform the parsing
3900 of SystemTap probes' arguments.
3901 (arm_stap_is_single_operand): New function.
3902 (arm_stap_parse_special_token): Likewise.
3903 (arm_linux_init_abi): Initializing proper fields used by SystemTap
3904 probes' arguments parser.
3905 * ax-gdb.c (require_rvalue): Removing static declaration.
3906 (gen_expr): Likewise.
3907 * ax-gdb.h (gen_expr): Declaring function.
3908 (require_rvalue): Likewise.
3909 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
3910 (bkpt_probe_breakpoint_ops): New variable.
3911 (momentary_breakpoint_from_master): Set the `probe' value.
3912 (add_location_to_breakpoint): Likewise.
3913 (break_command_1): Using proper breakpoint_ops according to the
3914 argument passed by the user in the command line.
3915 (bkpt_probe_insert_location): New function.
3916 (bkpt_probe_remove_location): Likewise.
3917 (bkpt_probe_create_sals_from_address): Likewise.
3918 (bkpt_probe_decode_linespec): Likewise.
3919 (tracepoint_probe_create_sals_from_address): Likewise.
3920 (tracepoint_probe_decode_linespec): Likewise.
3921 (tracepoint_probe_breakpoint_ops): New variable.
3922 (trace_command): Using proper breakpoint_ops according to the
3923 argument passed by the user in the command line.
3924 (initialize_breakpoint_ops): Initializing breakpoint_ops for
3925 static probes on breakpoints and tracepoints.
3926 * breakpoint.h (struct bp_location) <probe>: New field.
3927 * cli-utils.c (skip_spaces_const): New function.
3928 (extract_arg): Likewise.
3929 * cli-utils.h (skip_spaces_const): Likewise.
3930 (extract_arg): Likewise.
3931 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
3932 * configure.ac: Append `stap-probe.o' to be generated when ELF
3934 * configure: Regenerate.
3935 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
3936 * elfread.c: Include `probe.h' and `arch-utils.h'.
3937 (probe_key): New variable.
3938 (elf_get_probes): New function.
3939 (elf_get_probe_argument_count): Likewise.
3940 (elf_evaluate_probe_argument): Likewise.
3941 (elf_compile_to_ax): Likewise.
3942 (elf_symfile_relocate_probe): Likewise.
3943 (stap_probe_key_free): Likewise.
3944 (elf_probe_fns): New variable.
3945 (elf_sym_fns): Add `sym_probe_fns' value.
3946 (elf_sym_fns_lazy_psyms): Likewise.
3947 (elf_sym_fns_gdb_index): Likewise.
3948 (_initialize_elfread): Initialize objfile cache for static
3950 * gdb_vecs.h (struct probe): New forward declaration.
3951 (probe_p): New VEC declaration.
3952 * gdbarch.c: Regenerate.
3953 * gdbarch.h: Regenerate.
3954 * gdbarch.sh (stap_integer_prefix): New variable.
3955 (stap_integer_suffix): Likewise.
3956 (stap_register_prefix): Likewise.
3957 (stap_register_suffix): Likewise.
3958 (stap_register_indirection_prefix): Likewise.
3959 (stap_register_indirection_suffix): Likewise.
3960 (stap_gdb_register_prefix): Likewise.
3961 (stap_gdb_register_suffix): Likewise.
3962 (stap_is_single_operand): New function.
3963 (stap_parse_special_token): Likewise.
3964 (struct stap_parse_info): Forward declaration.
3965 * i386-tdep.c: Including headers needed to perform the parsing
3966 of SystemTap probes' arguments.
3967 (i386_stap_is_single_operand): New function.
3968 (i386_stap_parse_special_token): Likewise.
3969 (i386_elf_init_abi): Initializing proper fields used by SystemTap
3970 probes' arguments parser.
3971 * i386-tdep.h (i386_stap_is_single_operand): New function.
3972 (i386_stap_parse_special_token): Likewise.
3973 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
3974 * mipsread.c (ecoff_sym_fns): Likewise.
3975 * objfiles.c (objfile_relocate1): Support relocation for static
3977 * parse.c (prefixify_expression): Remove static declaration.
3978 (initialize_expout): Likewise.
3979 (reallocate_expout): Likewise.
3980 * parser-defs.h (initialize_expout): Declare function.
3981 (reallocate_expout): Likewise.
3982 (prefixify_expression): Likewise.
3983 * ppc-linux-tdep.c: Including headers needed to perform the parsing
3984 of SystemTap probes' arguments.
3985 (ppc_stap_is_single_operand): New function.
3986 (ppc_stap_parse_special_token): Likewise.
3987 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
3988 probes' arguments parser.
3989 * probe.c: New file, for generic statically defined probe support.
3990 * probe.h: Likewise.
3991 * s390-tdep.c: Including headers needed to perform the parsing of
3992 SystemTap probes' arguments.
3993 (s390_stap_is_single_operand): New function.
3994 (s390_gdbarch_init): Initializing proper fields used by SystemTap
3995 probes' arguments parser.
3996 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
3997 * stap-probe.c: New file, for SystemTap probe support.
3998 * stap-probe.h: Likewise.
3999 * symfile.h: Include `gdb_vecs.h'.
4000 (struct sym_probe_fns): New struct.
4001 (struct sym_fns) <sym_probe_fns>: New field.
4002 * symtab.c (init_sal): Initialize `probe' field.
4003 * symtab.h (struct probe): Forward declaration.
4004 (struct symtab_and_line) <probe>: New field.
4005 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
4007 (stop_tracing): Likewise.
4008 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
4010 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4011 Tom Tromey <tromey@redhat.com>
4013 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
4014 and to compile agent expressions.
4015 * infrun.c (siginfo_make_value): New argument `ignore'.
4016 (siginfo_funcs): New struct.
4017 (_initialize_infrun): New argument when calling
4018 `create_internalvar_type_lazy'.
4019 * thread.c (thread_id_make_value): New argument `ignore'.
4020 (thread_funcs): New struct.
4021 (_initialize_thread): New argument when calling
4022 `create_internalvar_type_lazy'.
4023 * tracepoint.c (sdata_make_value): New argument `ignore'.
4024 (sdata_funcs): New struct.
4025 (_initialize_tracepoint): New argument when calling
4026 `create_internalvar_type_lazy'.
4027 * value.c (make_value): New struct.
4028 (create_internalvar_type_lazy): New argument `data'.
4029 (compile_internalvar_to_ax): New function.
4030 (value_of_internalvar): Properly handling `make_value' case.
4031 (clear_internalvar): Likewise.
4032 (show_convenience): Adding `TRY_CATCH' block.
4033 * value.h (internalvar_make_value): Delete, replace by...
4034 (struct internalvar_funcs): ... this.
4035 (create_internalvar_type_lazy) <fun>: Delete argument.
4036 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
4037 (compile_internalvar_to_ax): New function.
4038 * windows-tdep.c (tlb_make_value): New argument `ignore'.
4039 (tlb_funcs): New struct.
4040 (_initialize_windows_tdep): New argument when calling
4041 `create_internalvar_type_lazy'.
4043 2012-04-27 Mark Wielaard <mjw@redhat.com>
4045 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4046 see whether it is an address or a constant offset from DW_AT_low_pc.
4047 (dwarf2_record_block_ranges): Likewise.
4048 (read_partial_die): Likewise.
4050 2012-04-26 Mark Wielaard <mjw@redhat.com>
4052 * MAINTAINERS (Write After Approval): Add myself to the list.
4054 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4056 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4057 (proc_prettyprint_signal): Likewise.
4058 (proc_prettyprint_faultset): Likewise.
4059 (proc_prettyprint_fault): Likewise.
4060 (proc_prettyprint_actionset): Likewise.
4061 (proc_prettyprint_flags): Move to new proc-flags.c section.
4062 (proc_prettyfprint_flags): New prototype.
4063 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4064 (proc_syscall, proc_cursig): Likewise.
4065 (proc_set_kill_on_last_close): Likewise.
4066 (proc_unset_kill_on_last_close): Likewise.
4067 (proc_set_watchpoint): Make static.
4068 (proc_delete_dead_threads): Likewise.
4069 (procfs_set_watchpoint): Likewise.
4070 (_initialize_procfs): Add prototype.
4071 * proc-events.c: Include proc-utils.h.
4072 (init_syscall_table): Make static.
4073 * proc-api.c (_initialize_proc_api): Add prototype.
4074 * proc-flags.c: Include proc-utils.h.
4076 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4078 * configure.ac: Add AC_ARG_PROGRAM.
4079 * configure: Regenerate.
4081 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4083 Fix DW_AT_lower_bound defaults for DWARF-4+.
4084 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4085 high. New variable low_default_is_valid. Implement DWARF-4+
4086 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4087 no default by the DWARF standard.
4089 2012-04-26 Maciej W. Rozycki <macro@mips.com>
4090 Maciej W. Rozycki <macro@codesourcery.com>
4092 * infrun.c (handle_inferior_event): Move the check for return
4093 trampolines ahead of the check for function trampolines.
4094 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4095 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4096 (mips_str_mips16_ret_stub): Likewise.
4097 (mips_str_call_fp_stub): Likewise.
4098 (mips_str_call_stub): Likewise.
4099 (mips_str_fn_stub): Likewise.
4100 (mips_str_pic): Likewise.
4101 (mips_in_frame_stub): New function.
4102 (mips_unwind_pc): Return the return address rather than the PC
4103 if the PC of an intermediate frame is inside a call thunk.
4104 (mips_is_stub_suffix): New function.
4105 (mips_is_stub_mode): Likewise.
4106 (mips_get_mips16_fn_stub_pc): Likewise.
4107 (mips_skip_mips16_trampoline_code): Update to handle all the
4108 currently generated stub types. Don't recurse into __fn_stub
4109 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4110 Use cooked register accesses.
4111 (mips_in_return_stub): Reintroduce function.
4112 (mips_skip_trampoline_code): Traverse trampolines recursively.
4113 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4115 2012-04-26 Joel Brobecker <brobecker@adacore.com>
4119 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4121 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4122 * features/arm-with-m-vfp-d16.xml: New file. Describes
4123 Cortex-M with VFPv4-sp-d16 FPU register layout.
4124 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4125 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4126 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4127 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4128 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4130 2012-04-25 Doug Evans <dje@google.com>
4132 * cli/cli-decode.c (print_doc_line): Use stream instead of
4135 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4137 * features/arm-with-iwmmxt.c: Regenerate.
4138 * features/arm-with-m-fpa-layout.c: Likewise.
4139 * features/arm-with-m.c: Likewise.
4140 * features/arm-with-neon.c: Likewise.
4141 * features/arm-with-vfpv2.c: Likewise.
4142 * features/arm-with-vfpv3.c: Likewise.
4143 * features/mips-dsp-linux.c: Likewise.
4144 * features/mips-linux.c: Likewise.
4145 * features/mips64-dsp-linux.c: Likewise.
4146 * features/mips64-linux.c: Likewise.
4147 * features/s390-linux32.c: Likewise.
4148 * features/s390-linux32v1.c: Likewise.
4149 * features/s390-linux32v2.c: Likewise.
4150 * features/s390-linux64.c: Likewise.
4151 * features/s390-linux64v1.c: Likewise.
4152 * features/s390-linux64v2.c: Likewise.
4153 * features/s390x-linux64.c: Likewise.
4154 * features/s390x-linux64v1.c: Likewise.
4155 * features/s390x-linux64v2.c: Likewise.
4156 * features/tic6x-c62x-linux.c: Likewise.
4157 * features/tic6x-c62x.c: Likewise.
4158 * features/tic6x-c64x-linux.c: Likewise.
4159 * features/tic6x-c64x.c: Likewise.
4160 * features/tic6x-c64xp-linux.c: Likewise.
4161 * features/tic6x-c64xp.c: Likewise.
4162 * target-descriptions.c: Only generate `field_type' and `type'
4163 variables when needed.
4165 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4167 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4169 2012-04-25 Doug Evans <dje@google.com>
4171 Initial pass at Go language support.
4173 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4175 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4176 (YYFILES): Add go-exp.c.
4177 (YYOBJ): Add go-exp.o.
4178 (local-maintainer-clean): Delete go-exp.c.
4179 * defs.h (enum language): Add language_go.
4180 * dwarf2read.c: #include "go-lang.h".
4181 (fixup_go_packaging): New function.
4182 (process_full_comp_unit): Call it when processing Go CUs.
4183 (dwarf2_physname): Add Go support.
4184 (read_file_scope): Handle missing language spec for GNU Go.
4185 (set_cu_language): Handle DW_LANG_Go.
4186 * go-exp.y: New file.
4187 * go-lang.h: New file.
4188 * go-lang.c: New file.
4189 * go-typeprint.c: New file.
4190 * go-valprint.c: New file.
4191 * symtab.c: #include "go-lang.h".
4192 (symbol_set_language): Handle language_go.
4193 (symbol_find_demangled_name, symbol_set_names): Ditto.
4194 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4196 2012-04-24 Jim Meyering <meyering@redhat.com>
4198 avoid a few strncpy-induced buffer overruns
4199 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4200 fname and psargs before trying to concatenate.
4201 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4202 "name" before applying strchr.
4204 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4206 * CONTRIBUTE: Use unified diff instead of context diff when
4209 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4211 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4212 code. Handle JR.HB correctly.
4214 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4217 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4218 with the other MIPS16 helpers.
4220 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4222 * observer.sh: Conditionally declare `args', thus cleaning up
4223 unused instances of this variable.
4225 2012-04-24 Yao Qi <yao@codesourcery.com>
4227 Revert this patch to allow breakpoint always-inserted
4229 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4230 * breakpoint.c: Include record.h.
4231 (breakpoints_always_inserted_mode): Return false when the record
4234 * breakpoint.c (iterate_over_bp_locations): New.
4235 * breakpoint.h: Declare.
4236 New typedef walk_bp_location_callback.
4237 * record.c (record_open): Call record_init_record_breakpoints.
4238 (record_sync_record_breakpoints): New.
4239 (record_init_record_breakpoints): New.
4240 * NEWS: Mention supporting breakpoint always-inserted mode in
4243 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4245 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4248 2012-04-24 Yao Qi <yao@codesourcery.com>
4250 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4251 (is_catchpoint): ... it.
4252 (print_one_breakpoint_location): Caller update.
4253 * breakpoint.h: Update declaration.
4255 2012-04-23 David S. Miller <davem@davemloft.net>
4257 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4259 2012-04-23 Tom Tromey <tromey@redhat.com>
4261 * buildsym.c (add_free_pendings): Remove.
4262 * buildsym.h (add_free_pendings): Remove.
4264 2012-04-23 Doug Evans <dje@google.com>
4266 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4267 attr.u.unsnd instead of attr.u.addr.
4268 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4269 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4271 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4272 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4274 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4276 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4278 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4279 (mips_o32_return_value): Likewise.
4280 (mips_o64_return_value): Likewise.
4282 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4284 * ada-lang.c (ada_evaluate_subexp): Add cases for
4285 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4286 their treatment in eval.c.
4288 2012-04-21 David S. Miller <davem@davemloft.net>
4290 * sparc-tdep.c (X_DISP10): Define.
4291 (sparc_analyze_control_transfer): Handle compare-and-branch.
4293 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4295 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4296 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4298 2012-04-20 Nigel Stephens <nigel@mips.com>
4299 Maciej W. Rozycki <macro@codesourcery.com>
4301 * mips-tdep.c (mips_float_register_p): New function.
4302 (mips_convert_register_float_case_p): Use mips_float_register_p.
4303 (mips_register_type): Likewise.
4304 (mips_print_register): Likewise.
4305 (print_gp_register_row): Likewise.
4306 (mips_print_registers_info): Likewise.
4308 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4310 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4313 2012-04-20 Andrew Pinski <apinski@cavium.com>
4315 * MAINTAINERS (Write After Approval): Add myself to the list.
4317 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4319 * MAINTAINERS: Update my e-mail address.
4321 2012-04-20 Pedro Alves <palves@redhat.com>
4323 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4325 * configure: Regenerate.
4327 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4329 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4331 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4333 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4335 Fix compilation compatibility with python-2.4
4336 * python/py-type.c (convert_field): Cast ADDRSTRING for
4337 PyObject_SetAttrString as non-const. New comment.
4339 2012-04-19 Tom Tromey <tromey@redhat.com>
4341 * top.c (quit_target): Use all_cleanups.
4342 * main.c (captured_command_loop): Use all_cleanups.
4343 * exceptions.c (throw_exception): Use all_cleanups.
4345 2012-04-19 Pedro Alves <palves@redhat.com>
4347 * Makefile.in (GNULIB_BUILDDIR): New.
4348 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4349 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4350 (CLEANDIRS). Remove gnulib/import.
4351 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4353 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4354 (gnulib/import/Makefile): Replace gnulib/import with
4355 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4356 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4357 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4358 acx_configure_dir.m4.
4359 * acinclude.m4: Include acx_configure_dir.m4.
4360 * acx_configure_dir.m4: New file.
4361 * aclocal.m4: Regenerate.
4362 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4363 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4364 (GNULIB): New variable.
4365 (GNULIB_STDINT_H): Adjust.
4366 (AC_OUTPUT): Don't output gnulib/Makefile.
4367 * gdb/defs.h: Include build-gnulib/config.h.
4368 * aclocal.m4: Regenerate.
4369 * config.in: Regenerate.
4370 * configure: Regenerate.
4372 * gnulib/Makefile.in: New file.
4373 * gnulib/configure.ac: New file.
4374 * gnulib/aclocal.m4: New file.
4375 * gnulib/config.in: New file.
4376 * gnulib/configure: New file.
4377 * gnulib/: Re-run gnulib-tool to adjust.
4379 2012-04-19 Doug Evans <dje@google.com>
4381 * cleanups.h (struct cleanup): Move to cleanups.c.
4382 (make_cleanup_dtor_ftype): New typedef.
4383 (make_cleanup_dtor): Use it.
4384 (ALL_CLEANUPS): Replace with ...
4385 (all_cleanups): ... this. Declare. All uses updated.
4386 * cleanups.c: #include "gdb_assert.h".
4387 (sentinel_cleanup): New static global.
4388 (SENTINEL_CLEANUP): Define.
4389 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4390 (make_my_cleanup2): Assert result is non-NULL.
4391 (all_cleanups): New function.
4392 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4395 2012-04-19 Pedro Alves <palves@redhat.com>
4397 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4398 Adjust paths to gnulib imported files.
4400 2012-04-19 Pedro Alves <palves@redhat.com>
4402 * gnulib/: Move whole directory ...
4403 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4404 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4405 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4406 (aclocal_m4_deps): Adjust.
4407 * aclocal.m4: Regenerate.
4408 * configure: Regenerate.
4409 * configure.ac: Adjust AC_OUTPUT output.
4411 2012-04-19 Yao Qi <yao@codesourcery.com>
4413 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4415 * vec.c: Move it ...
4416 * common/vec.c: ... here.
4417 * vec.h: Move it ...
4418 * common/vec.h: ... here.
4420 2012-04-19 Yao Qi <yao@codesourcery.com>
4422 * gdb-code-style.el: New.
4424 2012-04-18 Pedro Alves <palves@redhat.com>
4426 Update gnulib from latest git.
4427 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4429 * gnulib/Makefile.am: Update.
4430 * gnulib/dummy.c: Update.
4431 * gnulib/extra/arg-nonnull.h: Update.
4432 * gnulib/extra/c++defs.h: Update.
4433 * gnulib/extra/update-copyright: Update.
4434 * gnulib/extra/warn-on-use.h: Update.
4435 * gnulib/inttypes.in.h: Update.
4436 * gnulib/m4/00gnulib.m4: Update.
4437 * gnulib/m4/extensions.m4: Update.
4438 * gnulib/m4/gnulib-cache.m4: Update.
4439 * gnulib/m4/gnulib-common.m4: Update.
4440 * gnulib/m4/gnulib-comp.m4: Update.
4441 * gnulib/m4/gnulib-tool.m4: Update.
4442 * gnulib/m4/include_next.m4: Update.
4443 * gnulib/m4/inttypes-pri.m4: Update.
4444 * gnulib/m4/inttypes.m4: Update.
4445 * gnulib/m4/longlong.m4: Update.
4446 * gnulib/m4/memchr.m4: Update.
4447 * gnulib/m4/memmem.m4: Update.
4448 * gnulib/m4/mmap-anon.m4: Update.
4449 * gnulib/m4/multiarch.m4: Update.
4450 * gnulib/m4/onceonly.m4: Update.
4451 * gnulib/m4/stddef_h.m4: Update.
4452 * gnulib/m4/stdint.m4: Update.
4453 * gnulib/m4/string_h.m4: Update.
4454 * gnulib/m4/warn-on-use.m4: Update.
4455 * gnulib/m4/wchar_h.m4: Update.
4456 * gnulib/m4/wchar_t.m4: Update.
4457 * gnulib/m4/wint_t.m4: Update.
4458 * gnulib/memchr.c: Update.
4459 * gnulib/memmem.c: Update.
4460 * gnulib/stddef.in.h: Update.
4461 * gnulib/stdint.in.h: Update.
4462 * gnulib/str-two-way.h: Update.
4463 * gnulib/string.in.h: Update.
4464 * gnulib/wchar.in.h: Update.
4466 * gnulib/extra/arg-nonnull.h: Delete.
4467 * gnulib/extra/c++defs.h: Delete.
4468 * gnulib/extra/warn-on-use.h: Delete.
4469 * gnulib/m4/wchar_h.m4: Delete.
4470 * gnulib/m4/wint_t.m4: Delete.
4471 * gnulib/wchar.in.h: Delete.
4473 * gnulib/extra/snippets/arg-nonnull.h: New.
4474 * gnulib/extra/snippets/c++defs.h: New.
4475 * gnulib/extra/snippets/warn-on-use.h: New.
4477 * aclocal.m4: Regenerate.
4478 * config.in: Regenerate.
4479 * configure: Regenerate.
4480 * gnulib/Makefile.in: Regenerate.
4482 2012-04-18 Pedro Alves <palves@redhat.com>
4484 Reimport the update-copyright module from gnulib
4485 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4487 * configure: Regenerate.
4488 * gnulib/Makefile.am: Update.
4489 * gnulib/Makefile.in: Regenerate.
4490 * gnulib/extra/update-copyright: Update.
4491 * gnulib/m4/gnulib-cache.m4: Update.
4492 * gnulib/m4/gnulib-comp.m4: Update.
4494 2012-04-18 Tristan Gingold <gingold@adacore.com>
4496 * configure.ac (aix): Put -lpthread into libs.
4497 * configure: Regenerate.
4499 2012-04-18 Tom Tromey <tromey@redhat.com>
4501 * linespec.c (convert_linespec_to_sals): Don't use
4503 (compare_msymbols): Arguments are minsym_and_objfile, not
4504 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4506 2012-04-18 Pedro Alves <palves@redhat.com>
4508 Revert gnulib/ part of:
4509 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4510 Copyright year update in most files (performed by copyright.sh).
4512 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4514 Fix 64-bit constants on 32-bit hosts.
4515 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4516 from unsigned long to ULONGEST.
4517 (read_signed_leb128): Change declaration return type from long to
4519 (dwarf2_const_value_attr): Change declaration parameter value from long
4521 (dwarf2_compute_name): Change variable value from long to LONGEST.
4522 (read_unsigned_leb128): Change return type, variable result and some
4523 casts from unsigned long to ULONGEST.
4524 (read_signed_leb128): Change return type, variable result and some
4525 casts from long to LONGEST.
4526 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4527 value from long to LONGEST.
4528 (dwarf2_const_value): Change variable value from long to LONGEST.
4529 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4530 plongest and hex_string.
4531 * symtab.h (struct general_symbol_info): Change ivalue from long to
4532 LONGEST, remove the comment.
4533 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4534 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4536 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4539 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4540 * ada-lang.c (ada_discrete_type_high_bound)
4541 (ada_discrete_type_low_bound): Fix function comment. Use
4542 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4543 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4544 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4545 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4546 Use TYPE_FIELD_ENUMVAL.
4547 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4548 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4549 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4550 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4552 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4553 * dwarf2read.c (process_enumeration_scope): Likewise.
4554 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4556 (class StructMainTypePrettyPrinter): Support also
4557 FIELD_LOC_KIND_ENUMVAL.
4558 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4560 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4561 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4562 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4563 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4565 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4566 accommodate enumval.
4567 (struct call_site): Adjust loc_kind to accommodate enumval.
4568 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4569 (TYPE_FIELD_ENUMVAL): New macros.
4570 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4571 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4573 * p-typeprint.c (pascal_type_print_base): Likewise.
4574 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4576 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4577 * python/py-type.c (convert_field): New variable addrstring. Use
4578 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4579 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4580 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4581 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4583 * valprint.c (generic_val_print): Likewise.
4585 2012-04-17 Doug Evans <dje@google.com>
4587 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4589 * dwarf2read.c: Whitespace fixes.
4590 (lookup_signatured_type): Tweak comment.
4591 (get_die_type_at_offset): Fix comment.
4593 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4595 * xcoffread.c (xcoff_secnum_to_sections): New function.
4596 (secnum_to_section, secnum_to_bfd_section): Reimplement
4597 using xcoff_secnum_to_sections. Rename "secnum" parameter
4599 (RECORD_MINIMAL_SYMBOL): Delete.
4600 (record_minimal_symbol): New function.
4601 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4602 by call to record_minimal_symbol and set misc_func_recorded
4603 to 1. Set last_csect_sec to the XCOFF section index instead
4604 of GDB's section_offset index. Update calls to
4605 prim_record_minimal_symbol_and_info to pass the BFD section
4608 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4610 * xcoffread.c (read_xcoff_symtab): Delete variables
4611 last_csect_val and last_csect_sec and associated code.
4613 2012-04-17 Doug Evans <dje@google.com>
4615 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4616 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4617 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4618 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4620 * cleanups.h: New file.
4621 * cleanups.c: New file.
4622 * Makefile.in (SFILES): Add cleanups.c.
4623 (HFILES_NO_SRCDIR): Add cleanups.h.
4624 (COMMON_OBS): Add cleanups.o.
4625 * defs.h (struct cleanup): Moved to cleanups.h.
4626 (do_cleanups,do_final_cleanups): Ditto.
4627 (discard_cleanups,discard_final_cleanups): Ditto
4628 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4629 (save_cleanups,save_final_cleanups): Ditto.
4630 (restore_cleanups,restore_final_cleanups): Ditto.
4631 (null_cleanup): Ditto.
4632 (make_my_cleanup,make_my_cleanup2): Ditto.
4633 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4634 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4635 (do_cleanups,do_final_cleanups): Ditto.
4636 (discard_cleanups,discard_final_cleanups): Ditto
4637 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4638 (save_cleanups,save_final_cleanups): Ditto.
4639 (restore_cleanups,restore_final_cleanups): Ditto.
4640 (null_cleanup): Ditto.
4641 (make_my_cleanup,make_my_cleanup2): Ditto.
4642 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4644 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4646 (make_cleanup_dyn_string_delete): Ditto.
4647 (make_cleanup_ui_file_delete): Ditto.
4648 (make_cleanup_ui_out_redirect_pop): Ditto.
4649 (make_cleanup_free_section_addr_info): Ditto.
4650 (make_cleanup_restore_integer): Ditto.
4651 (make_cleanup_unpush_target): Ditto.
4652 (make_cleanup_value_free_to_mark): Ditto.
4653 (make_cleanup_value_free): Ditto.
4654 (make_cleanup_free_so): Ditto.
4656 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4658 New option "set debug auto-load".
4659 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4660 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4661 (auto_load_safe_path_vec_update)
4662 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4664 (file_is_auto_load_safe): New parameters debug_fmt and ....
4665 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4666 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4667 caller by explanatory string.
4668 (_initialize_auto_load): Register "set debug auto-load".
4669 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4671 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4672 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4673 by explanatory string.
4674 * main.c (captured_main): Likewise.
4675 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4676 (source_section_scripts): Likewise.
4678 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4680 New option "set auto-load safe-path".
4681 * NEWS: New commands "set auto-load safe-path"
4682 and "show auto-load safe-path".
4683 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4684 (auto_load_safe_path, auto_load_safe_path_vec)
4685 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4686 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4687 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4688 (source_gdb_script_for_objfile): New variable is_safe. Call
4689 file_is_auto_load_safe. Return if it is not.
4690 (struct loaded_script): New field loaded.
4691 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4692 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4693 output "Missing" to "No".
4694 (_initialize_auto_load): New variable cmd. Initialize
4695 auto_load_safe_path. Register "set auto-load safe-path",
4696 "show auto-load safe-path" and "add-auto-load-safe-path".
4697 * auto-load.h (maybe_add_script): Add parameter loaded.
4698 (file_is_auto_load_safe): New declaration.
4699 * config.in: Regenerate.
4700 * configure: Regenerate.
4701 * configure.ac: New parameters --with-auto-load-safe-path
4702 and --without-auto-load-safe-path.
4703 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4704 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4705 * main.c (captured_main): Check file_is_auto_load_safe for
4707 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4708 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4709 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4712 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4714 auto-load: Implementation.
4715 * NEWS: New descriptions for "info auto-load",
4716 "info auto-load gdb-scripts", "info auto-load python-scripts",
4717 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4718 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4719 and "show auto-load-scripts". New description for "set auto-load",
4720 "show auto-load", "set auto-load gdb-scripts",
4721 "show auto-load gdb-scripts", "set auto-load python-scripts",
4722 "show auto-load python-scripts", "set auto-load local-gdbinit",
4723 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4724 "show auto-load libthread-db".
4725 * auto-load.c: Remove include python/python-internal.h. Add includes
4726 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4728 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4729 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4730 (gdbpy_global_auto_load): Rename to ...
4731 (global_auto_load): ... here.
4732 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4733 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4734 (script_language_gdb, source_gdb_script_for_objfile): New.
4735 (struct loaded_script): New field language.
4736 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4738 (maybe_add_script): Add parameter language. Drop redundant
4739 entry.full_path initialization. Initialize entry.language and
4741 (auto_load_objfile_script): Change parameter suffix to language.
4742 Remove the call of maybe_add_script.
4743 Call language->source_script_for_objfile.
4744 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4746 (collect_matching_scripts): Adjust it for
4747 struct collect_matching_scripts_data.
4748 (auto_load_info_scripts_pattern_nl): New variable.
4749 (info_auto_load_scripts): Rename to ...
4750 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4751 for struct collect_matching_scripts_data.
4752 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4753 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4754 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4755 (auto_load_info_cmdlist_get): New.
4756 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4757 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4758 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4759 "info auto-load local-gdbinit".
4760 * auto-load.h (struct script_language): New.
4761 (gdbpy_global_auto_load): Rename to ...
4762 (global_auto_load): ... here.
4763 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4764 (auto_load_local_gdbinit_loaded): New declarations.
4765 (maybe_add_script): New parameter language.
4766 (auto_load_objfile_script): Change parameter suffix to language.
4767 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4768 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4769 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4771 * linux-thread-db.c: Include auto-load.h and ctype.h.
4772 (auto_load_thread_db, show_auto_load_thread_db): New.
4773 (struct thread_db_info): New field filename.
4774 (delete_thread_db_info): Call xfree for FILENAME.
4775 (try_thread_db_load): Initialize FILENAME.
4776 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4777 if !AUTO_LOAD_THREAD_DB.
4778 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4779 (_initialize_thread_db): Install auto_load_thread_db
4780 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4781 as "info auto-load libthread-db".
4782 * main.c (captured_main): Rename gdbpy_global_auto_load to
4783 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4784 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4785 (print_gdb_help): Extend the help for 'local init file'.
4786 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4787 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4788 (auto_load_scripts): Rename to ...
4789 (auto_load_python_scripts): ... here, update the comment.
4790 (gdbpy_load_auto_script_for_objfile): New declaration.
4791 (show_auto_load_python_scripts, script_language_python)
4792 (gdbpy_load_auto_script_for_objfile): New.
4793 (source_section_scripts): Refactor the code.
4794 (load_auto_scripts_for_objfile): Rename to ...
4795 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4796 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4797 (info_auto_load_python_scripts): New.
4798 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4799 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4800 Register "set auto-load-scripts" as its deprecated alias. Register
4801 "info auto-load python-scripts". Register "info auto-load-scripts" as
4802 its deprecated alias.
4803 (load_auto_scripts_for_objfile): Rename to ...
4804 (gdbpy_load_auto_scripts_for_objfile): ... here.
4805 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4806 (gdbpy_load_auto_scripts_for_objfile): ... here.
4808 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4810 auto-load: Move files.
4811 * Makefile.in (SFILES): Add auto-load.c.
4812 (HFILES_NO_SRCDIR): Add auto-load.h.
4813 (COMMON_OBS): Add auto-load.o.
4814 (distclean): Change .gdbinit for gdb-gdb.gdb.
4815 * auto-load.c: New file, with parts from python/py-auto-load.c.
4816 * auto-load.h: New file, with parts from python/python.h.
4817 * configure: Regenerate.
4818 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4819 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4820 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4821 * main.c: Include auto-load.h.
4822 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4823 command.h, observer.h and progspace.h to auto-load.c. Add include
4825 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4826 (struct loaded_script, auto_load_pspace_data)
4827 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4828 (hash_loaded_script_entry, eq_loaded_script_entry)
4829 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4830 (maybe_add_script): Move to auto-load.c.
4831 (source_section_scripts): Change maybe_add_script parameters passing,
4832 use script_not_found_warning_print.
4833 (clear_section_scripts, auto_load_objfile_script)
4834 (auto_load_new_objfile, loaded_script_ptr)
4835 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4836 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4837 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4838 auto_load_new_objfile and info_auto_load_scripts initizations to
4840 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4842 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4845 * charset.c (find_charset_names): Remove variables ix and elt.
4846 Use free_char_ptr_vec.
4847 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4848 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4849 debugdir_end. New variable debugdir_len.
4850 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4851 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4853 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4854 and elt. Use free_char_ptr_vec.
4855 * source.c (add_path): Remove variables argv, arg and argv_index.
4856 New variables dir_vec, back_to, ix and name.
4857 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4858 make_cleanup_freeargv. Remove variable separator. Simplify the code
4859 no longer expecting DIRNAME_SEPARATOR.
4860 (openp): Remove variable p, p1 and len. New variables dir_vec,
4861 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4862 no longer expecting DIRNAME_SEPARATOR.
4863 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4864 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4866 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4867 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4868 (dirnames_to_char_ptr_vec): New functions.
4870 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4873 * source.c (add_path): Remove always true conditional 'p == 0' and
4874 unindent its code block.
4876 2012-04-17 Pedro Alves <palves@redhat.com>
4878 * gdbtypes.h (FIELD_BITPOS): Rename to ...
4879 (FIELD_BITPOS_LVAL): ... this.
4880 (FIELD_BITPOS): New.
4881 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4882 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
4883 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
4885 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
4887 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
4888 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
4889 * target-descriptions.c (tdesc_gdb_type): Adjust to use
4892 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4894 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
4895 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
4896 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
4897 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
4898 * jv-lang.c (java_link_class_type): Likewise, once.
4899 * stabsread.c (read_enum_type): Likewise.
4901 2012-04-16 Yao Qi <yao@codesourcery.com>
4903 * common/agent.c (agent_run_command): Add one more parameter `len'.
4905 * common/agent.h: Update declaration.
4906 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4908 (linux_child_static_tracepoint_markers_by_strid): Ditto.
4910 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
4913 * value.c (value_actual_type): New function.
4914 * value.h (value_actual_type): New declaration.
4915 * varobj.c (update_type_if_necessary): New function.
4916 (varobj_create): Call value_actual_type instead of
4918 (install_dynamic_child): distinct changed and type changed MI variable
4920 (update_dynamic_varobj_children): Updated for install_dynamic_child
4921 change. All callers updated.
4922 (varobj_update): Support for MI variable object type change if
4923 the value changed and RTTI is used to determine the type.
4924 (create_child_with_value): Call value_actual_type instead of
4926 (adjust_value_for_child_access): Extended with a new parameter which
4927 specify whether the given value should be casted to enclosing type.
4928 All callers updated.
4930 2012-04-14 Yao Qi <yao@codesourcery.com>
4932 Import gnulib module inttypes from git
4933 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4934 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
4935 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
4936 gnulib/m4/inttypes-pri.m4
4937 * aclocal.m4, config.in, configure: Regenerated.
4938 * gnulib/Makefile.am: Update.
4939 * gnulib/Makefile.in: Update.
4940 * gnulib/m4/gnulib-cache.m4: Update.
4941 * gnulib/m4/gnulib-comp.m4: Update.
4942 * gnulib/inttypes.in.h: New.
4943 * gnulib/m4/inttypes-pri.m4: New.
4944 * gnulib/m4/inttypes.m4: New.
4946 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
4948 * infrun.c (resume): Update PC address to the real PC after
4949 preparing to do displaced stepping.
4951 2012-04-12 Doug Evans <dje@google.com>
4953 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
4954 All callers updated.
4956 2012-04-12 Mark Kettenis <kettenis@gnu.org>
4958 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
4960 2012-04-12 Doug Evans <dje@google.com>
4962 * dwarf2read.c (create_all_type_units): Renamed from
4963 create_debug_types_hash_table. All callers updated.
4965 * dwarf2read.c (create_signatured_type_table_from_index): Rename
4966 local type_sig to sig_type, type_offset to type_offset_in_tu.
4967 (hash_signatured_type): Renamed from hash_type_signature,
4968 all callers updated.
4969 (eq_signatured_type): Renamed from eq_type_signature,
4970 all callers updated.
4971 (create_debug_types_hash_table): Rename local type_sig to sig_type.
4972 (process_enumeration_scope): Ditto.
4973 (lookup_signatured_type_at_offset): Ditto.
4974 (load_full_type_unit, read_signatured_type): Ditto.
4976 2012-04-12 Yao Qi <yao@codesourcery.com>
4978 * remote.c (async_remote_interrupt): Correct function name in
4980 (async_remote_interrupt_twice): Ditto.
4982 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
4984 * source.c (find_and_open_source): Consistently pass resulting
4985 full path through xfullpath.
4987 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4989 Provide more specific displaced-stepping memory error message.
4990 * infrun.c (displaced_step_prepare): New variable status. Call
4991 target_read_memory instead of read_memory, provide more specific
4994 2012-04-11 Tristan Gingold <gingold@adacore.com>
4997 * darwin-nat.c (darwin_execvp): Revert previous patch.
4999 2012-04-11 Tristan Gingold <gingold@adacore.com>
5002 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
5005 2012-04-11 Tristan Gingold <gingold@adacore.com>
5007 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5010 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
5012 New command 'explore' which helps explore values and types in
5014 * NEWS: Add an entry about the new 'explore' command.
5015 * data-directory/Makefile.in: Add gdb/command/explore.py
5016 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
5017 command using the GDB Python API.
5019 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5021 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
5022 extension in jump target calculation.
5024 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5026 * mips-tdep.c (mips32_next_pc): Handle JALX.
5028 2012-04-10 Yao Qi <yao@codesourcery.com>
5030 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
5032 2012-04-10 Yao Qi <yao@codesourcery.com>
5034 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
5035 and gnulib/m4/gnulib-tool.m4.
5037 2012-04-10 Doug Evans <dje@google.com>
5039 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
5040 (load_partial_dies): Clarify comment.
5041 (find_partial_die): Support rereading type units.
5042 Clarify CU handling, if we know offset is in CU, don't search for the
5043 containing CU. Add comment regarding memory waste.
5045 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
5047 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5048 i386/x32-avx and i386/x32-avx-linux.
5049 (i386/x32-expedite): New.
5050 (i386/x32-linux-expedite): Likewise.
5051 (i386/x32-avx-expedite): Likewise.
5052 (i386/x32-avx-linux-expedite): Likewise.
5053 ($(outdir)/i386/x32.dat): Likewise.
5054 ($(outdir)/i386/x32-linux.dat): Likewise.
5055 ($(outdir)/i386/x32-avx.dat): Likewise.
5056 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5058 * features/i386/x32-avx-linux.xml: New file.
5059 * features/i386/x32-avx.xml: Likewise.
5060 * features/i386/x32-core.xml: Likewise.
5061 * features/i386/x32-linux.xml: Likewise.
5062 * features/i386/x32.xml: Likewise.
5064 * features/i386/x32-avx-linux.c: New. Generated.
5065 * features/i386/x32-avx.c: Likewise.
5066 * features/i386/x32-linux.c: Likewise.
5067 * features/i386/x32.c: Likewise.
5068 * regformats/i386/x32-avx-linux.dat: Likewise.
5069 * regformats/i386/x32-avx.dat: Likewise.
5070 * regformats/i386/x32-linux.dat: Likewise.
5071 * regformats/i386/x32.dat: Likewise.
5073 2012-04-10 Tristan Gingold <gingold@adacore.com>
5075 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5076 code to kill the inferior.
5078 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5080 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5082 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5084 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5085 (yyvsp): New defines.
5086 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5088 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5090 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5092 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5094 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5097 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5099 * sparc64-tdep.c (sparc64_store_arguments)
5100 (sparc64_store_arguments): Fix coding style.
5102 2012-04-07 Mark Kettenis <kettenis@gnu.org>
5104 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5105 complex floats, adjust some related comments and tighten a related
5107 (sparc64_extract_return_value): Handle complex floats.
5109 2012-04-07 Doug Evans <dje@google.com>
5111 * dwarf2read.c (load_partial_dies): Change condition to assert.
5113 2012-04-06 Doug Evans <dje@google.com>
5115 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5118 2012-04-05 Kevin Buettner <kevinb@redhat.com>
5120 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5122 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5123 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5126 2012-04-05 Keith Seitz <keiths@redhat.com>
5128 * linespec.c (decode_compound): Remove.
5129 (enum offset_relative_sign): New enum.
5130 (struct line_offset): New struct.
5131 (struct linespec): New struct.
5132 (struct linespec_state): Move file_symtabs,
5133 user_filename, and user_function into struct linespec.
5134 Make result an anonymous struct holding vectors of
5135 symbolp and minsym_and_objfile_d.
5136 Add language member.
5137 (enum ls_token_type): New enum.
5138 (linespec_keywords): New array.
5139 (struct ls_token): New struct.
5140 (struct ls_parser): New struct.
5141 (linespec_lexer_lex_number): New function.
5142 (linespec_lexer_lex_keyword): New function.
5143 (is_ada_operator): New function.
5144 (skip_quote_char): New function.
5145 (copy_token_string): New function.
5146 (is_closing_quote_enclosed): New function.
5147 (find_parameter_list_end): New function.
5148 (linespec_lexer_lex_string): New function.
5149 (linespec_lexer_lex_one): New function.
5150 (linespec_lexer_consume_token): New function.
5151 (linespec_lexer_peek_token): New function.
5152 (cplusplus_error): Remove unused function.
5153 (find_methods): Update comment.
5154 (find_toplevel_char): Return const.
5155 (is_objc_method_format): Remove unused function.
5156 (find_toplevel_string): New function.
5157 (is_linespec_boundary): Remove.
5158 (symbol_not_found_error): New function.
5159 (find_method_overload_end): Remove function.
5160 (unexpected_linespec_error): New function.
5161 (keep_name_info): Remove.
5162 (linespec_parse_line_offset): New function.
5163 (linespec_parse_basic): New function.
5164 (canonicalize_linespec): New function.
5165 (decode_line_internal): Remove.
5166 (create_sals_line_offset): New function adapted from
5168 (convert_linespec_to_sals): New function.
5169 (parse_linespec): New function.
5170 (linespec_parser_new): New function.
5171 (linespec_state_destructor): Change parameter type to
5172 struct linespec_state *.
5173 Add language parameter.
5174 Remove freeing of moved members.
5175 (linespec_parser_delete): New function.
5176 (decode_line_full): Use parse_linespec and linespec_parser_new.
5177 (decode_line_1): Likewise.
5178 (decode_indirect): Rename to ...
5179 (linespec_expression_to_pc): ... this and rewrite
5180 to simply find CORE_ADDR, storing this result for later
5182 (locate_first_half): Remove.
5183 (deocde_objc): Add parameter LS.
5184 Initialize new struct collect_info members.
5185 Handle minimal symbols, too.
5186 (decode_compound): Delete.
5187 (lookup_prefix_sym): Rewrite.
5188 (compare_msymbols): New function.
5189 (find_method): Rewrite.
5190 Do not call cplusplus_error.
5191 (symtabs_from_filename): Rewrite.
5192 (collect_function_symbols): Delete.
5193 (find_function_symbols): Rewrite without ARGPTR-style
5195 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5196 (decode_dollar): Adapted and renamed to ...
5197 (linespec_parse_variable): ... this.
5198 (find_linespec_symbols): New function.
5199 (decode_label): Adapted and renamed to ...
5200 (find_label_symbols): ... this.
5201 (decode_digits_list_mode): Add and use LS argument.
5202 (decode_digits_ordinary): Likewise.
5203 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5204 If in list mode, allow any symbol class. Otherwise, only
5205 permit LOC_BLOCK symbols.
5206 (minsym_found): Update comments.
5207 (search_minsyms_for_name): Do not convert the matching symbol
5208 into a SAL. Simply push the symbol and objfile into the
5210 (decode_variable): Delete. Contents adapted into
5211 find_linespec_symbols.
5213 * cp-support.c (SKIP_SPACE): Remove.
5214 (operator_tokens): Remove unused global.
5215 (cp_validate_operator): Remove.
5216 * cp-support.h (cp_validate_operator): Remove declaration.
5218 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5220 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5221 for TYPE_VPTR_FIELDNO.
5222 * valprint.c (valprint_check_validity): Make it global, move the
5223 function comment ...
5224 * value.h (valprint_check_validity): ... to this new declaration.
5226 2012-04-02 Tristan Gingold <gingold@adacore.com>
5228 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5229 the STATE32 api for i386 state.
5230 (i386_darwin_store_inferior_registers): Likewise.
5232 2012-04-02 Tristan Gingold <gingold@adacore.com>
5234 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5236 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5239 2012-04-02 Tristan Gingold <gingold@adacore.com>
5242 * darwin-nat.c (darwin_execvp): Set binary preference.
5244 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5246 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5248 2012-03-30 Tom Tromey <tromey@redhat.com>
5250 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5251 of TRY_CATCH. Fix error handling.
5252 * python/py-value.c (convert_value_from_python): Move 'old'
5253 declaration to innermost scope.
5255 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5256 Andrey Smirnov <andrew.smirnov@gmail.com>
5258 -Wshadow warning fix.
5259 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5260 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5261 Adjust code accordingly.
5263 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5265 * ada-lang.c (symbol_completion_add): Rename parameter
5266 "encoded" into "encoded_p". Ajust code and documentation
5269 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5270 Andrey Smirnov <andrew.smirnov@gmail.com>
5272 -Wshadow warning fix.
5273 * ada-lang.c (symbol_completion_add): Rename parameter
5274 "wild_match" into wild_match_p. Update code and documentation
5277 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5279 * ada-lang.c (symbol_completion_match): Rename parameter
5280 "encoded" into "encoded_p". Ajust code and documentation
5283 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5284 Andrey Smirnov <andrew.smirnov@gmail.com>
5286 -Wshadow warning fix.
5287 * ada-lang.c (symbol_completion_match): Rename parameter
5288 "wild_match" into "wild_match_p". Adjust code and function
5289 documentation accordingly.
5291 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5292 Andrey Smirnov <andrew.smirnov@gmail.com>
5294 -Wshadow warning fix.
5295 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5296 "symbol_info" into "info". Adjust code accordingly.
5297 (ada_lookup_symbol): Likewise.
5299 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5301 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5302 of this function's documentation.
5304 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5305 Andrey Smirnov <andrew.smirnov@gmail.com>
5307 -Wshadow warning fix.
5308 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5309 variable into "wild_match_p". Adjust code accordingly.
5311 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5312 Andrey Smirnov <andrew.smirnov@gmail.com>
5314 -Wshadow warning fix.
5315 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5316 parameter into "wild_match_p". Adjust code accordingly.
5317 Document this parameter in the function description.
5319 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5320 Andrey Smirnov <andrew.smirnov@gmail.com>
5322 -Wshadow warning fix.
5323 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5324 "wild_match" parameter to "wild_match_p" (-Wshadow).
5326 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5328 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5329 in function documentation.
5331 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5332 Andrey Smirnov <andrew.smirnov@gmail.com>
5334 -Wshadow warning fix.
5335 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5336 variable into wild_match_p. Adjust code accordingly.
5338 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5339 Andrey Smirnov <andrew.smirnov@gmail.com>
5341 * ada-valprint.c (ada_val_print_1): Move the code handling
5342 TYPE_CODE_ENUM inside its own lexical block. Declare
5343 variables len and val there, instead of in the function's
5344 top level block. Avoid declaring deref_val again in a way
5345 that shadows another variable of the same name declared
5346 in one of the up-level blocks. Just re-use the up-level
5349 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5351 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5352 Replace block_found argument by symbol_info. Adjust
5353 implementation accordingly. Add function documentation.
5354 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5356 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5357 * ada-exp.y (write_object_renaming): Adjust to new
5358 ada_lookup_encoded_symbol API.
5360 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5362 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5365 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5367 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5368 (v850_register_name): Add the mpu and fpu register names.
5369 (v850e_register_name): Add the mpu and fpu register names.
5370 (v850e2_register_name): New function.
5371 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5374 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5376 * NEWS: Add entry for Ada varobj support.
5378 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5380 * varobj.c (default_value_is_changeable_p): New function,
5381 extracted from varobj_value_is_changeable_p. Add declaration.
5382 (ada_value_is_changeable_p): New function, extracted from
5383 varobj_value_is_changeable_p. Add declaration.
5384 (struct language_specific): New field "value_is_changeable_p".
5385 (languages): Add entries for new field.
5386 (varobj_create): Set language before calling install_new_value.
5387 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5388 "value_is_changeable_p" language callback.
5390 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5392 * ada-varobj.h, ada-varobj.c: New files.
5393 * Makefile.in (SFILES): Add ada-varobj.c.
5394 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5395 (COMMON_OBS): Add ada-varobj.o.
5397 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5399 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5400 (struct language_specific): New field "value_has_mutated".
5401 (languages): Set field "value_has_mutated" in each entry of array.
5402 (varobj_value_has_mutated): New function.
5403 (varobj_udpdate): Add handling of type mutation.
5404 (value_of_root): Add handling of type mutation.
5405 (ada_value_has_mutated): New function.
5407 2012-03-28 Pedro Alves <palves@redhat.com>
5409 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5410 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5412 2012-03-28 Tom Tromey <tromey@redhat.com>
5414 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5415 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5418 2012-03-28 Tom Tromey <tromey@redhat.com>
5420 * .dir-locals.el: New file.
5422 2012-03-28 Pedro Alves <palves@redhat.com>
5424 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5426 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5428 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5431 2012-03-27 Pedro Alves <palves@redhat.com>
5433 Eliminate struct ui_stream.
5435 * ui-out.h (struct ui_stream): Delete.
5436 (ui_out_field_stream): Adjust prototype.
5437 (ui_out_stream_new, ui_out_stream_delete)
5438 (make_cleanup_ui_out_stream_delete): Delete declarations.
5439 * ui-out.c (ui_out_field_stream): Change prototype to take a
5440 ui_file instead of a ui_stream. Adjust.
5441 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5442 (make_cleanup_ui_out_stream_delete): Delete.
5443 * breakpoint.c (print_breakpoint_location)
5444 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5445 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5446 * disasm.c (dump_insns): Ditto.
5447 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5449 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5450 ui_stream/ui_out_stream_new.
5451 * infcmd.c (print_return_value): Ditto.
5452 * osdata.c (info_osdata_command): Don't allocate a local
5454 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5455 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5456 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5457 allocate a local ui_stream.
5458 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5459 instead of ui_stream/ui_out_stream_new.
5460 (list_args_or_locals): Don't allocate a local ui_stream.
5461 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5462 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5463 ui_stream/ui_out_stream_new.
5464 * cli/cli-setshow.c (do_setshow_command): Ditto.
5466 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5468 * arm-linux-tdep.c (arm_linux_init_abi): Call
5469 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5470 * arm-tdep.c (arm_process_record): New function.
5471 (deallocate_reg_mem): New function.
5472 (decode_insn): New function.
5473 (thumb_record_branch): New function.
5474 (thumb_record_ldm_stm_swi(): New function.
5475 (thumb_record_misc): New function.
5476 (thumb_record_ld_st_stack): New function.
5477 (thumb_record_ld_st_imm_offset): New function.
5478 (thumb_record_ld_st_reg_offset(): New function.
5479 (thumb_record_add_sub_cmp_mov): New function.
5480 (thumb_record_shift_add_sub): New function.
5481 (arm_record_coproc_data_proc): New function.
5482 (arm_record_coproc): New function.
5483 (arm_record_b_bl): New function.
5484 (arm_record_ld_st_multiple): New function.
5485 (arm_record_ld_st_reg_offset): New function.
5486 (arm_record_ld_st_imm_offset): New function.
5487 (arm_record_data_proc_imm): New function.
5488 (arm_record_data_proc_misc_ld_str): New function.
5489 (arm_record_extension_space): New function.
5490 (arm_record_strx): New function.
5491 (sbo_sbz): New function.
5492 (struct insn_decode_record): New structure for arm insn record.
5493 (REG_ALLOC): New macro for reg allocations.
5494 (MEM_ALLOC): New macro for memory allocations.
5495 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5497 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5499 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5500 (store_register): Likewise.
5502 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5504 * MAINTAINERS (Write After Approval): Add myself to the list.
5506 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5508 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5509 Describe also the option "auto".
5511 2012-03-22 Richard Henderson <rth@redhat.com>
5513 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5514 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5516 2012-03-22 Richard Henderson <rth@redhat.com>
5518 * jit.c (jit_read_code_entry): Compute alignment and offset of
5519 int64_t member before computing entry_size.
5521 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5523 Python scripting: Add new method Value.referenced_value to
5524 gdb.Value which can dereference pointer as well as reference
5526 * NEWS: Add entry under 'Python scripting' about the new method
5527 Value.referenced_value on gdb.Value objects.
5528 * python/py-value.c (valpy_referenced_value): New function
5529 defining a new method on gdb.Value objects which can dereference
5530 pointer and reference values.
5532 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5534 * MAINTAINERS (Write After Approval): Add myself to the list.
5536 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5538 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5539 in addition to "main".
5541 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5543 * expression.h (op_name): Add declaration.
5544 * expprint.c (op_name): Remove declaration. Make non-static.
5545 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5547 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5549 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5551 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5552 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5553 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5554 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5555 (linux_nat_get_siginfo): Likewise.
5556 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5557 (linux_nat_get_siginfo): Likewise.
5558 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5559 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5560 * procfs.c (gdb_siginfo_t): Likewise.
5562 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5564 * .gitignore: Ignore more files.
5566 2012-03-20 Pedro Alves <palves@redhat.com>
5568 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5571 2012-03-20 Yao Qi <yao@codesourcery.com>
5573 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5576 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5578 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5579 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5580 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5582 * dwarf2expr.h (cu_offset, sect_offset): New types.
5583 (struct dwarf_expr_context_funcs) <dwarf_call>
5584 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5586 (struct dwarf_expr_context) <len>: Improve the comment.
5587 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5588 cu_offset and sect_offset.
5589 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5590 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5591 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5592 * dwarf2loc.h: Include dwarf2expr.h.
5593 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5595 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5596 Improve the comment.
5597 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5598 (struct signatured_type, struct line_header, struct partial_die_info)
5599 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5600 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5601 (get_die_type_at_offset, create_cus_from_index)
5602 (create_signatured_type_table_from_index, dw2_get_file_names)
5603 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5604 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5605 (create_debug_types_hash_table, process_psymtab_comp_unit)
5606 (load_partial_comp_unit, create_all_comp_units)
5607 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5608 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5609 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5610 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5611 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5612 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5613 (find_partial_die, read_attribute_value, lookup_die_type)
5614 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5615 (is_ref_attr): New function comment.
5616 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5617 Use cu_offset and sect_offset.
5618 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5619 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5620 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5621 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5622 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5623 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5624 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5627 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5630 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5631 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5633 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5635 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5637 * NEWS: Describe new options --init-command=FILE, -ix and
5638 --init-eval-command=COMMAND, -iex.
5639 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5640 CMDARG_INIT_COMMAND.
5641 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5642 "init-command", "init-eval-command", "ix" and "iex" to the variable
5643 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5644 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5645 (print_gdb_help): Describe --init-command=FILE, -ix and
5646 --init-eval-command=COMMAND, -iex.
5648 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5651 * main.c (struct cmdarg): Move it here from main. Add more comments.
5652 (cmdarg_s, VEC (cmdarg_s)): New.
5653 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5654 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5655 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5656 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5659 2012-03-19 Tom Tromey <tromey@redhat.com>
5661 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5663 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5666 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5669 2012-03-16 Chris January <chris.january@allinea.com>
5671 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5674 2012-03-16 Chris January <chris.january@allinea.com>
5676 * source.c (add_path): Use memmove instead of strcpy because the
5679 2012-03-16 Joel Brobecker <brobecker@adacore.com>
5681 * value.h (set_value_parent): Add declaration.
5682 * value.c (set_value_parent): New function.
5683 (value_address): If VALUE->PARENT is not NULL, then use it as
5684 the base address instead of VALUE->LOCATION.address.
5685 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5686 the same as OBJ's address. Adjust V's offset accordingly.
5689 2012-03-16 Gary Benson <gbenson@redhat.com>
5691 PR breakpoints/10738
5692 * dwarf2read.c (use_deprecated_index_sections): New global.
5693 (struct partial_die_info): New member may_be_inlined.
5694 (read_partial_die): Set may_be_inlined where appropriate.
5695 (add_partial_subprogram): Add partial symbols for partial
5696 DIEs that may be inlined.
5697 (new_symbol_full): Add inlined subroutines to the current
5699 (write_psymtabs_to_index): Bump version number.
5700 (dwarf2_read_index): Read only version 6 indices unless
5701 use_deprecated_index_sections is set.
5702 * linespec.c (symbol_and_data_callback): New structure.
5703 (iterate_inline_only): New function.
5704 (iterate_over_all_matching_symtabs): New argument
5705 "include_inline". If nonzero, also call the callback for
5706 symbols representing inlined subroutines.
5707 (lookup_prefix_sym): Pass extra argument to the above.
5708 (find_function_symbols): Likewise.
5709 (add_matching_symbols_to_info): Likewise.
5710 * NEWS: Mention that GDB can now set breakpoints on inlined
5713 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5715 * p-typeprint.c (pascal_type_print_method_args):
5716 Fix display of parameter of methods.
5718 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5720 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5721 Add missing prototype.
5723 2012-03-16 Yao Qi <yao@codesourcery.com>
5724 Jan Kratochvil <jan.kratochvil@redhat.com>
5726 Fix false compilation warning.
5727 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5729 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5730 Pedro Alves <pedro@codesourcery.com>
5732 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5733 (arm_register_g_packet_guesses): New function.
5734 (arm_gdbarch_init): Don't force a target description with
5735 registers when the executable is detected as M-profile. Instead
5736 set gdbarch->tdep->is_m. Register `g' packet guesses.
5737 (_initialize_arm_tdep): Initialize the new target description.
5738 * features/arm-with-m-fpa-layout.xml: New description.
5739 * features/arm-with-m-fpa-layout.c: New, generated.
5741 2012-03-15 Joel Brobecker <brobecker@adacore.com>
5743 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5744 Update function description.
5745 (insert_bp_location): Do not wipe bl->target_info out.
5746 * mem-break.c: #include "gdb_string.h".
5747 (default_memory_insert_breakpoint): Do not call target_read_memory
5748 with a pointer to the breakpoint's shadow_contents buffer. Use
5749 a local buffer instead.
5750 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5752 2012-03-15 Tom Tromey <tromey@redhat.com>
5754 * NEWS: Mention "info vtbl", not "info vtable".
5755 * cp-support.c (info_vtbl_command): Fix comment.
5756 (_initialize_cp_support): Fix text.
5758 2012-03-15 Tom Tromey <tromey@redhat.com>
5760 * cp-valprint.c (cp_print_value_fields): Use
5761 print_function_pointer_address for vtable slot.
5763 2012-03-15 Tom Tromey <tromey@redhat.com>
5765 * gnu-v3-abi.c (struct value_and_voffset): New.
5766 (hash_value_and_voffset, eq_value_and_voffset)
5767 (compare_value_and_voffset, compute_vtable_size)
5768 (print_one_vtable, gnuv3_print_vtable): New functions.
5769 (init_gnuv3_ops): Initialize 'print_vtable' field.
5770 * cp-support.c (info_vtbl_command): New function.
5771 (_initialize_cp_support): Add "info vtbl".
5772 * cp-abi.h (cplus_print_vtable): Declare.
5773 (struct cp_abi_ops) <print_vtable>: New field.
5774 * cp-abi.c (cplus_print_vtable): New function.
5777 2012-03-15 Tom Tromey <tromey@redhat.com>
5779 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5780 iterate_over_symbols.
5782 2012-03-14 Doug Evans <dje@google.com>
5784 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5785 DW_OP_GNU_parameter_ref.
5787 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5789 Fix double prompt of 'interpreter-exec mi'.
5790 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5791 (mi_interpreter_resume): use it.
5792 (mi_execute_command_input_handler): New function.
5793 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5794 mi_execute_command_input_handler.
5796 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
5798 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5800 (darwin_debug_port_info): Make static.
5801 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5802 * machoread.c (_initialize_machoread): Add prototype.
5803 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5804 (i386_darwin_set_control, i386_darwin_get_control)
5805 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5806 i386_darwin_get_status, i386_darwin_get_control):
5807 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5809 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5811 * ax-gdb.c (gen_usual_unary): Remove special handling of
5812 enum and bool types.
5814 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5816 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5818 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5820 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5822 2012-03-13 Chris January <chris.january@allinea.com>
5824 * aix-thread.c (fill_sprs): Store the floating point registers
5825 at the correct offsets into vals.
5827 2012-03-13 Doug Evans <dje@google.com>
5829 * NEWS: Mention symbol-reloading has been deleted.
5830 * symfile.c (symbol_reloading): Delete.
5831 (show_symbol_reloading): Delete.
5832 (_initialize_symfile): Delete set/show symbol-reloading.
5834 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5835 read_in_chain until we have successfully read it in.
5836 (load_full_comp_unit): Ditto.
5837 (read_signatured_type): Add comment.
5839 2012-03-13 Chris January <chris.january@allinea.com>
5841 * stabsread.c (fix_common_block): Change type of valu argument
5844 2012-03-13 Chris January <chris.january@allinea.com>
5846 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5849 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5851 * common/linux-procfs.c (linux_proc_get_int): New, from
5852 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5854 (linux_proc_get_tgid): Only call linux_proc_get_int.
5855 (linux_proc_get_tracerpid): New.
5856 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5857 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5858 linux_proc_pid_has_state.
5859 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5860 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5861 (linux_ptrace_attach_warnings): New.
5862 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5864 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5865 (linux_nat_attach): New variables ex, buffer, message and message_s.
5866 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5868 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5870 * Makefile.in (linux-ptrace.o): New.
5871 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5873 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5874 * common/linux-ptrace.c: New file.
5875 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5876 * config/arm/linux.mh: Likewise.
5877 * config/i386/linux.mh: Likewise.
5878 * config/i386/linux64.mh: Likewise.
5879 * config/ia64/linux.mh: Likewise.
5880 * config/m32r/linux.mh: Likewise.
5881 * config/m68k/linux.mh: Likewise.
5882 * config/mips/linux.mh: Likewise.
5883 * config/pa/linux.mh: Likewise.
5884 * config/powerpc/linux.mh: Likewise.
5885 * config/powerpc/ppc64-linux.mh: Likewise.
5886 * config/powerpc/spu-linux.mh: Likewise.
5887 * config/s390/s390.mh: Likewise.
5888 * config/sparc/linux.mh: Likewise.
5889 * config/sparc/linux64.mh: Likewise.
5890 * config/xtensa/linux.mh: Likewise.
5891 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
5892 common/linux-procfs.c.
5893 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
5895 2012-03-13 Hui Zhu <teawater@gmail.com>
5896 Pedro Alves <palves@redhat.com>
5898 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
5899 CREATE_BREAKPOINT_FLAGS_INSERTED.
5900 (create_breakpoint_sal, create_breakpoints_sal)
5901 (base_breakpoint_create_breakpoints_sal)
5902 (tracepoint_create_breakpoints_sal)
5903 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
5905 (break_command_1, handle_gnu_v3_exceptions, trace_command)
5906 (ftrace_command, strace_command): Adjust.
5907 (create_tracepoint_from_upload): Pass
5908 CREATE_BREAKPOINT_FLAGS_INSERTED.
5909 * breakpoint.h (enum breakpoint_create_flags): New.
5910 (create_breakpoint): New flags parameter.
5911 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
5912 * python/py-breakpoint.c (bppy_init): Adjust.
5913 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
5914 * spu-tdep.c (spu_catch_start): Adjust.
5916 2012-03-13 Pedro Alves <palves@redhat.com>
5917 Hui Zhu <teawater@gmail.com>
5918 Yao Qi <yao@codesourcery.com>
5920 * remote.c (struct remote_state): New field `starting_up'.
5921 (remote_start_remote): Set and clear it.
5922 (remote_can_download_tracepoint): If starting up, return false.
5924 2012-03-13 Yao Qi <yao@codesourcery.com>
5926 * inferior.h (struct inferior): Remove fields any_syscall_count,
5927 syscalls_counts and total_syscalls_count. Move them to new
5928 struct catch_syscall_inferior_data in breakpoint.c.
5929 * breakpoint.c: Call DEF_VEC_I(int).
5930 (struct catch_syscall_inferior_data): New.
5931 (get_catch_syscall_inferior_data): New.
5932 (catch_syscall_inferior_data_cleanup): New.
5933 (insert_catch_syscall): Update to access data in
5934 struct catch_syscall_inferior_data.
5935 (insert_catch_syscall): Likewise.
5936 (remove_catch_syscall): Likewise.
5937 (remove_catch_syscall): Likewise.
5938 (is_syscall_catchpoint_enabled): Likewise.
5939 (add_catch_command): Likewise.
5940 (_initialize_breakpoint): Register cleanup.
5941 * breakpoint.h: Removed DEF_VEC_I(int).
5942 * dwarf2loc.c: Call DEF_VEC_I(int).
5943 * mi/mi-main.c: Likewise.
5945 2012-03-12 Mark Kettenis <kettenis@gnu.org>
5947 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
5949 2012-03-12 Chris January <chris.january@allinea.com>
5951 * aix-thread.c (_initialize_aix_thread): Add prototype.
5952 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
5953 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
5955 2012-03-12 Joel Brobecker <brobecker@adacore.com>
5957 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
5958 include of "amd64-nat.h".
5960 2012-03-12 Tom Tromey <tromey@redhat.com>
5962 * buildsym.c (record_pending_block): Now static.
5963 * buildsym.h: (record_pending_block): Remove.
5965 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
5967 * amd64bsd-nat.c: Include amd64bsd-nat.h.
5969 2012-03-09 Tom Tromey <tromey@redhat.com>
5971 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
5972 producer_is_gxx_lt_4_6>: New fields.
5973 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
5975 2012-03-09 Tom Tromey <tromey@redhat.com>
5977 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
5979 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5981 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
5984 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5986 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
5988 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5990 Fix -Wmissing-prototypes build.
5991 * arm-linux-nat.c (get_thread_id): Make it static.
5992 * xtensa-linux-nat.c (get_thread_id): Likewise.
5994 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5996 * server.c (process_point_options): If a conditional expression
5997 is found, only print a message if remote_debug is nonzero.
5999 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
6001 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
6002 of internal error for unknown/unsupported types.
6004 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6006 Fix CU relative vs. absolute DIE offsets.
6007 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
6008 offset to offset_in_cu.
6009 * dwarf2read.c (process_enumeration_scope): Add CU offset to
6011 (dwarf2_fetch_die_location_block): Rename parameter offset to
6012 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
6014 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6016 * libunwind-frame.c: Rename to ...
6017 * ia64-libunwind-tdep.c: ... here.
6018 * libunwind-frame.h: Rename to ...
6019 * ia64-libunwind-tdep.h: ... here.
6020 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
6021 ia64-libunwind-tdep.h.
6022 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
6023 * README (--with-libunwind): Rename to ...
6024 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
6025 * config.in: Regenerate.
6026 * configure: Regenerate.
6027 * configure.ac: New option --with-libunwind-ia64, make the
6028 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
6029 Remove AC_DEFINE for HAVE_LIBUNWIND.
6030 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
6031 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
6032 Rename libunwind-frame in the general comment.
6033 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
6034 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
6035 Move forward declarations inside #ifndef. Rename libunwind-frame in
6036 the general comment.
6037 * ia64-tdep.c: Rename libunwind-frame.h #include to
6038 ia64-libunwind-tdep.h.
6039 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
6040 (ia64_libunwind_descr): Rename libunwind-frame to
6041 ia64-libunwind-tdep in these function comments.
6042 * ia64-tdep.h: Rename libunwind-frame.h #include to
6043 ia64-libunwind-tdep.h.
6044 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6045 ia64-libunwind-tdep in that data comment.
6047 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6049 * libunwind-frame.h (struct frame_unwind): New declaration.
6051 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6053 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6054 "set breakpoint condition-evaluation" command.
6056 2012-03-08 Tristan Gingold <gingold@adacore.com>
6058 * sparc-stub.c: Move to stubs/
6059 * sh-stub.c: Likewise.
6060 * m68k-stub.c: Likewise.
6061 * m32r-stub.c: Likewise.
6062 * i386-stub.c: Likewise.
6064 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6066 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6067 linux_get_siginfo_type.
6069 * m68klinux-nat.c: Include "gdb_proc_service.h".
6070 (PTRACE_GET_THREAD_AREA): Define.
6071 (ps_get_thread_area): New function.
6073 2012-03-08 Yao Qi <yao@codesourcery.com>
6075 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6077 (remote_query_attached): Likewise.
6078 (remote_static_tracepoint_marker_at): Likewise.
6079 (remote_set_permissions): Likewise.
6080 (remote_detach_1, extended_remote_attach_1): Likewise.
6081 (send_g_packet, remote_vkill): Likewise.
6082 (extended_remote_disable_randomization): Likewise.
6083 (remote_add_target_side_condition): Likewise.
6084 (remote_insert_breakpoint): Likewise.
6085 (remote_remove_breakpoint): Likewise.
6086 (remote_insert_watchpoint): Likewise.
6087 (remote_remove_watchpoint): Likewise.
6088 (remote_insert_hw_breakpoint): Likewise.
6089 (remote_insert_hw_breakpoint): Likewise.
6090 (remote_remove_hw_breakpoint): Likewise.
6091 (remote_download_command_source): Likewise.
6092 (remote_download_tracepoint): Likewise.
6093 (remote_download_trace_state_variable): Likewise.
6094 (remote_disable_tracepoint): Likewise.
6095 (remote_trace_set_readonly_regions): Likewise.
6096 (remote_get_tracepoint_status): Likewise.
6097 (remote_trace_find): Likewise.
6098 (remote_get_trace_state_variable_value): Likewise.
6099 (remote_set_disconnected_tracing): Likewise.
6100 (remote_set_circular_trace_buffer): Likewise.
6101 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6102 (remote_use_agent): Likewise.
6103 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6106 2012-03-07 Pedro Alves <palves@redhat.com>
6108 * NEWS: Mention QProgramSignals.
6109 * inferior.h (update_signals_program_target): Declare.
6110 * infrun.c: (update_signals_program_target): New.
6111 (handle_command): Update the target of the new program signals
6113 * remote.c (PACKET_QProgramSignals): New enum.
6114 (last_program_signals_packet): New global.
6115 (remote_program_signals): New.
6116 (remote_start_remote): Update the target with the program signals
6118 (remote_protocol_features): Add entry for QPassSignals.
6119 (remote_open_1): Free anc clear last_program_signals_packet.
6120 (init_remote_ops): Install remote_program_signals.
6121 * target.c (update_current_target): Adjust.
6122 (target_program_signals): New.
6123 * target.h (struct target_ops) <to_program_signals>: New field.
6124 (target_program_signals): Declare.
6126 2012-03-07 Pedro Alves <palves@redhat.com>
6128 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6131 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6133 * m68klinux-nat.c (getregs_supplies): Make static.
6134 (getfpregs_supplies): Likewise.
6135 (have_ptrace_getregs): Likewise.
6137 2012-03-06 Joel Brobecker <brobecker@adacore.com>
6139 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6140 in call to get_die_type_at_offset.
6142 2012-03-06 Stan Shebs <stan@codesourcery.com>
6144 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6145 * mi/mi-cmd-disas.c: Ditto.
6146 * mi/mi-cmd-env.c: Ditto.
6147 * mi/mi-cmd-file.c: Ditto.
6148 * mi/mi-cmd-stack.c: Ditto.
6149 * mi/mi-cmd-target.c: Ditto.
6150 * mi/mi-cmd-var.c: Ditto.
6151 * mi/mi-cmds.c: Ditto.
6152 * mi/mi-cmds.h: Ditto.
6153 * mi/mi-console.c: Ditto.
6154 * mi/mi-getopt.c: Ditto.
6155 * mi/mi-getopt.h: Ditto.
6156 * mi/mi-interp.c: Ditto.
6157 * mi/mi-main.c: Ditto.
6158 * mi/mi-out.c: Ditto.
6159 * mi/mi-parse.c: Ditto.
6160 * mi/mi-parse.h: Ditto.
6161 * mi/mi-symbol-cmds.c: Ditto.
6163 * mi/mi-getopt.h: Move mi_opt struct up.
6164 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6166 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6168 2012-03-06 Tom Tromey <tromey@redhat.com>
6170 * proc-service.c (ps_pglobal_lookup): Set the current program
6173 2012-03-06 Pedro Alves <palves@redhat.com>
6175 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6177 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6179 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6181 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6184 * common/linux-osdata.c (linux_common_core_of_thread): New function
6186 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6187 call by linux_common_core_of_thread.
6188 (linux_nat_core_of_thread_1): Remove.
6189 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6190 * linux-thread-db.c: Include linux-osdata.h.
6191 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6192 linux_common_core_of_thread.
6194 2012-03-05 Tom Tromey <tromey@redhat.com>
6196 * value.c (value_primitive_field): Don't fetch contents for
6199 2012-03-05 Tom Tromey <tromey@redhat.com>
6201 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6203 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6205 * s390-nat.c: Include "gregset.h".
6207 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6209 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6210 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6211 (libunwind_load): New variable so_error, use it for dlerror. Try to
6212 load also LIBUNWIND_SO_7.
6214 2012-03-05 Pedro Alves <palves@redhat.com>
6216 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6217 is not NULL, and remove resulting dead code.
6219 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6221 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6222 prologue to sh_analyze_prologue.
6223 (sh_analyze_prologue): Make better use of such an upper limit, and
6224 generally be more cautious about accessing memory.
6226 2012-03-05 Tom Tromey <tromey@redhat.com>
6228 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6229 _initialize_ia64_hpux_tdep.
6231 2012-03-05 Pedro Alves <palves@redhat.com>
6235 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6236 the register state is clear, supply explicit zero, instead of
6237 marking the register unavailable.
6239 2012-03-05 Tristan Gingold <gingold@adacore.com>
6241 * NEWS: Mention OpenVMS ia64 new target.
6243 2012-03-05 Tristan Gingold <gingold@adacore.com>
6245 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6246 (ia64_unw_accessors, ia64_unw_rse_accessors)
6247 (ia64_libunwind_descr): Declare.
6248 * ia64-vms-tdep.c: New file.
6249 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6250 (ia64_libunwind_descr): Make them public.
6251 * configure.tgt: Add ia64-*-*vms*.
6252 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6253 (ALLDEPFILES): Add ia64-vms-tdep.c
6255 2012-03-05 Tristan Gingold <gingold@adacore.com>
6257 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6258 * remote.c (PACKET_qXfer_uib): New enum value.
6259 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6260 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6261 (_initialize_remote): Call add_packet_config_cmd for
6264 2012-03-05 Tristan Gingold <gingold@adacore.com>
6266 * osabi.c (gdb_osabi_names): Add OpenVMS.
6267 (generic_elf_osabi_sniffer): Likewise.
6268 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6270 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6272 Removed unused code.
6273 * libunwind-frame.c (libunwind_frame_unwind)
6274 (libunwind_frame_base_address): Remove.
6275 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6277 2012-03-04 Yao Qi <yao@codesourcery.com>
6279 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6280 remove trailing new line.
6281 (agent_run_command, agent_run_command): Add _ markup.
6282 (agent_capability_check): Likewise.
6284 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6286 * breakpoint.c (set_condition_evaluation_mode): Set
6287 CONDITION_EVALUATION_MODE unconditionally.
6289 2012-03-03 Yao Qi <yao@codesourcery.com>
6291 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6292 * common/agent.h: Update declaration.
6293 * inf-child.c (inf_child_use_agent): New.
6294 (inf_child_can_use_agent): New.
6295 (inf_child_target): Initialize fields `to_use_agent'
6296 and `to_can_use_agent'.
6297 * agent.c (agent_new_objfile): New.
6298 (_initialize_agent): Add agent_new_objfile to new_objfile
6301 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6303 (linux_target_install_ops): Initialize field
6304 `to_static_tracepoint_markers_by_strid'.
6305 * remote.c (free_current_marker): Move it to ...
6306 * tracepoint.c (free_current_marker): ... here. New.
6307 (cleanup_target_stop): New.
6308 * tracepoint.h: Declare free_current_marker.
6309 * NEWS: Add one entry about `info static-tracepoint-marker'.
6311 2012-03-03 Yao Qi <yao@codesourcery.com>
6313 * common/agent.c (agent_loaded_p): New.
6314 (agent_look_up_symbols): New global.
6315 * common/agent.h: Declare agent_loaded_p.
6317 2012-03-03 Yao Qi <yao@codesourcery.com>
6319 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6320 (agent_capability_check, agent_capability_invalidate): New.
6321 (symbol_list): New array element.
6322 * common/agent.h (enum agent_capa): New.
6323 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6325 2012-03-03 Yao Qi <yao@codesourcery.com>
6327 * target.h (struct target_ops) <to_use_agent>: New field.
6328 (struct target_ops) <to_can_use_agent>: New field.
6329 (target_use_agent, target_can_use_agent): New macro.
6330 * target.c (update_current_target): Update.
6331 * remote.c: New enum `PACKET_QAgent'.
6332 (remote_protocol_features): Add a new element.
6333 (remote_use_agent, remote_can_use_agent): New.
6334 (init_remote_ops): Initialize field `can_use_agent' with
6335 remote_can_use_agent. Intiailize field `use_agent' with
6337 * common/agent.c (use_agent): New global.
6338 * common/agent.h: Declare it.
6339 * tracepoint.c (info_static_tracepoint_markers_command): Add
6341 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6342 (COMMON_OBS): Add common/agent.o and agent.o
6343 (common-agent.o): New rule.
6346 2012-03-03 Yao Qi <yao@codesourcery.com>
6348 * common/agent.c: New.
6349 * common/agent.h: New.
6350 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6352 * configure, configh.in: Regenerated.
6354 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6356 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6357 unless it exists for this architecture.
6359 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6361 * language.h (struct language_defn): New "method" la_read_var_value.
6362 * findvar.c: #include "language.h".
6363 (default_read_var_value): Renames read_var_value. Rewrite
6364 function description.
6365 (read_var_value): New function.
6366 * value.h (default_read_var_value): Add prototype.
6367 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6369 (ada_language_defn): Add entry for la_read_var_value.
6370 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6371 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6372 language_defn structures to add entry for new la_read_var_value
6375 2012-03-02 Tom Tromey <tromey@redhat.com>
6376 Pedro Alves <palves@redhat.com>
6378 PR breakpoints/13776:
6379 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6381 (delete_longjmp_breakpoint_at_next_stop): New.
6382 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6383 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6384 before deleting the inferior. Add comments.
6385 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6386 breakpoints immediately, but only on next stop. Move that code
6387 next to where we mark other breakpoints for deletion.
6389 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6391 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6393 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6396 2012-03-02 Pedro Alves <palves@redhat.com>
6398 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6400 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6402 Fix -Wmissing-prototypes build.
6403 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6404 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6405 (gdbsim_has_memory): Likewise.
6407 2012-03-02 Yao Qi <yao@codesourcery.com>
6409 Fix -Wmissing-prototypes build.
6410 * charset.c (phony_iconv_open): Make static.
6411 (phony_iconv_close, phony_iconv): Likewise.
6412 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6413 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6415 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6416 * ser-mingw.c (create_select_thread): Make static.
6417 * windows-termcap.c (tgetent): New prototype.
6418 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6420 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6422 Fix -Wmissing-prototypes build.
6423 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6424 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6425 (_initialize_loadable): New prototypes.
6427 2012-03-02 Doug Evans <dje@google.com>
6429 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6430 abbrev table, read_comp_unit will do it.
6432 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6434 Fix -Wmissing-prototypes build.
6435 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6436 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6437 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6438 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6439 (_initialize_arm_symbian_tdep): New prototype.
6440 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6441 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6442 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6444 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6445 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6447 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6448 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6449 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6451 * moxie-tdep.c (moxie_process_record): Likewise.
6452 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6453 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6454 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6455 (_initialize_rl78_tdep): New prototype.
6456 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6457 (_initialize_rx_tdep): New prototype.
6458 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6459 (_initialize_darwin_solib): New prototype.
6460 * solib-spu.c: Include solib-spu.h.
6461 (_initialize_spu_solib): New prototype.
6462 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6463 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6464 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6465 (tic6x_software_single_step): Make it static.
6466 (_initialize_tic6x_tdep): New prototype.
6468 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6470 Fix -Wmissing-prototypes build.
6471 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6472 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6474 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6476 Fix -Wmissing-prototypes build.
6477 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6478 (frv_have_stopped_data_address): Remove.
6480 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6482 Fix -Wmissing-prototypes build.
6483 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6484 * sh-tdep.c: Include sh64-tdep.h.
6485 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6486 * sh64-tdep.c: Include sh64-tdep.h.
6487 * sh64-tdep.h: New file.
6489 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6491 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6493 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6495 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6496 sp_regnum once the gdbarch_init_osabi hook has been called.
6498 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6500 * mips-tdep.c (mips32_bc1_pc): New function.
6501 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6502 BPOSGE32 and BPOSGE64 instructions.
6503 (deal_with_atomic_sequence): Likewise.
6504 (mips32_instruction_has_delay_slot): Likewise.
6506 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6507 Chris Dearman <chris@mips.com>
6508 Maciej W. Rozycki <macro@codesourcery.com>
6509 Joseph Myers <joseph@codesourcery.com>
6511 * features/mips-dsp.xml: New file.
6512 * features/mips64-dsp.xml: New file.
6513 * features/mips-dsp-linux.xml: New file.
6514 * features/mips64-dsp-linux.xml: New file.
6515 * features/Makefile (WHICH): Add mips-dsp-linux and
6517 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6518 * features/mips-dsp-linux.c: New file.
6519 * features/mips64-dsp-linux.c: New file.
6520 * regformats/mips-dsp-linux.dat: New file.
6521 * regformats/mips64-dsp-linux.dat: New file.
6522 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6524 (mips64_linux_register_addr): Likewise.
6525 (mips64_linux_regsets_fetch_registers): Likewise.
6526 (mips64_linux_regsets_store_registers): Likewise.
6527 (mips64_linux_fetch_registers): Update call to
6528 mips64_linux_regsets_fetch_registers.
6529 (mips64_linux_store_registers): Update call to
6530 mips64_linux_regsets_store_registers.
6531 (mips_linux_read_description): Probe for DSP registers.
6532 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6533 and initialize_tdesc_mips64_dsp_linux.
6534 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6535 Remove padding of no longer used embedded register slots.
6536 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6537 (MIPS_RESTART_REGNUM): Redefine enum value.
6538 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6540 (mips_tx39_reg_names): Likewise.
6541 (mips_linux_reg_names): New array of register names for Linux
6543 (mips_register_name): Check for a null pointer in
6544 mips_processor_reg_names and return an empty string.
6545 (mips_register_type): Exclude embedded registers for the IRIX
6547 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6548 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6550 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6551 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6552 (mips_gdbarch_init): Likewise. Initialize internal register
6553 indices for the Linux ABI. Use dynamic numbers to refer to
6554 registers, as applicable, while parsing the target description.
6555 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6557 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6559 * frame.h (read_frame_register_unsigned): Fix typo in function
6562 2012-03-01 Pedro Alves <palves@redhat.com>
6564 * jit-reader.in [!__cplusplus]
6565 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6567 2012-03-01 Pedro Alves <palves@redhat.com>
6569 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6570 * configure: Regenerate.
6572 2012-03-01 Pedro Alves <palves@redhat.com>
6574 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6575 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6576 (ftrace_command, strace_command): Make static.
6577 * d-lang.c (_initialize_d_language): Declare.
6578 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6579 * dwarf2loc.c (_initialize_dwarf2loc):
6580 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6581 * exec.c (exec_get_section_table): Make static.
6582 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6583 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6584 * inferior.c (remove_inferior_command, add_inferior_command)
6585 (clone_inferior_command): Make static.
6586 * linux-nat.c (linux_nat_thread_address_space)
6587 (linux_nat_core_of_thread): Make static.
6588 * linux-tdep.c (_initialize_linux_tdep): Declare.
6589 * objc-lang.c (_initialize_objc_lang): Declare.
6590 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6592 (_initialize_opencl_language): Declare.
6593 * record.c (_initialize_record): Declare.
6594 * remote.c (demand_private_info, remote_get_tib_address)
6595 (remote_supports_cond_tracepoints)
6596 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6598 * skip.c (_initialize_step_skip): Declare.
6599 * symtab.c (skip_prologue_using_lineinfo): Make static.
6600 * tracepoint.c (delete_trace_state_variable)
6601 (trace_variable_command, delete_trace_variable_command)
6602 (get_uploaded_tsv, find_matching_tracepoint_location)
6603 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6605 * value.c (pack_unsigned_long): Make static.
6606 * varobj.c (varobj_ensure_python_env): Make static.
6607 * windows-tdep.c (_initialize_windows_tdep): Declare.
6608 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6610 2012-03-01 Pedro Alves <palves@redhat.com>
6612 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6614 (linux_init_abi): Install it as has_shared_address_space gdbarch
6617 2012-03-01 Pedro Alves <palves@redhat.com>
6619 * observer.c (observer_test_first_notification_function)
6620 (observer_test_second_notification_function)
6621 (observer_test_third_notification_function): Add declarations.
6623 2012-03-01 Pedro Alves <palves@redhat.com>
6625 * common/signals.c (default_target_signal_to_host)
6626 (default_target_signal_from_host): Move ...
6627 * arch-utils.c: ... here.
6628 * arch-utils.h (default_target_signal_to_host)
6629 (default_target_signal_from_host): Declare.
6631 * common/signals.c (target_signal_from_command): Move ...
6632 * infrun.c: ... here.
6633 * inferior.h (target_signal_from_command): Declare.
6634 * target.h (target_signal_from_command)
6635 (default_target_signal_from_host, default_target_signal_to_host):
6636 Delete declarations.
6638 * common/signals.c (_initialize_signals): Delete.
6640 2012-03-01 Pedro Alves <palves@redhat.com>
6642 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6643 both __cplusplus and !__cplusplus.
6645 2012-03-01 Pedro Alves <palves@redhat.com>
6647 * psymtab.c (find_and_open_source): Delete declaration.
6648 * source.c (find_and_open_source): Move comment ...
6649 * source.h (find_and_open_source): ... to this new declaration.
6651 2012-03-01 Pedro Alves <palves@redhat.com>
6653 * inline-frame.c: Include inline-frame.h.
6655 2012-03-01 Pedro Alves <palves@redhat.com>
6657 * tui/tui-data.c (set_gen_win_origin): Delete.
6658 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6659 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6661 2012-03-01 Pedro Alves <palves@redhat.com>
6663 * remote.c (encode_actions): Delete declaration.
6664 * tracepoint.c (encode_actions): Make extern.
6665 * tracepoint.h (encode_actions): Declare.
6667 2012-03-01 Pedro Alves <palves@redhat.com>
6669 * python/py-breakpoint.c: Include python.h.
6670 * python/py-continueevent.c (create_continue_event_object): Make
6672 * python/py-lazy-string.c (stpy_get_type): Make static.
6673 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6675 * python/py-utils.c (unicode_to_target_python_string): Make
6677 * python/py-value.c: Include python.h.
6679 2012-03-01 Pedro Alves <palves@redhat.com>
6681 * inferior.c (delete_threads_of_inferior): Delete.
6683 2012-03-01 Pedro Alves <palves@redhat.com>
6685 Import fallback definitions from glibc.
6687 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6688 ps_prochandle): Forward declare.
6689 (ps_err_e): Use glibc's comments.
6690 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6691 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6692 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6693 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6694 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6695 (struct ps_prochandle): Adjust comment.
6697 2012-03-01 Pedro Alves <palves@redhat.com>
6699 * ada-lang.c (ada_modulus_from_name): Delete.
6700 * ada-lex.l (lexer_init): Make static.
6702 2012-03-01 Pedro Alves <palves@redhat.com>
6706 * frame.c (read_frame_register_unsigned): New.
6707 * frame.h (read_frame_register_unsigned): Declare.
6708 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6710 (print_i387_control_word): New parameter `control_p'. Handle it.
6711 (i387_print_float_info): Handle unavailable float registers.
6713 2012-03-01 Keith Seitz <keiths@redhat.com>
6715 * linespec.c (decode_line_2): Sort the list of methods
6716 alphabetically before presenting the user with a selection
6719 2012-03-01 Doug Evans <dje@google.com>
6721 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6723 (dwarf2_read_abbrevs): Remove corresponding initialization.
6725 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
6727 * NEWS: Mention new python command class gdb.COMMAND_USER.
6728 * cli/cli-cmds.c (show_user): Print error when used on a python
6730 (init_cli_cmds): Update documentation strings for "show user" and
6731 "set/show max-user-call-depth" to clarify that it does not apply to
6733 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6735 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6737 * top.c (execute_command): Only execute a user-defined command as a
6738 legacy macro if c->user_commands is set.
6740 2012-03-01 Tom Tromey <tromey@redhat.com>
6742 * valprint.h (struct generic_val_print_decorations): New.
6743 (generic_val_print): Declare.
6744 * valprint.c (generic_val_print): New function.
6745 * p-valprint.c (p_decorations): New global.
6746 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6747 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6748 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6749 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6750 * m2-valprint.c (m2_decorations): New global.
6751 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6752 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6753 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6754 TYPE_CODE_ERROR>: Call generic_val_print.
6755 * f-valprint.c (f_decorations): New global.
6756 (f_val_print): Use print_function_pointer_address.
6757 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6758 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6759 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6761 * c-valprint.c (c_decorations): New global.
6762 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6763 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6764 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6765 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6766 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6767 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6770 2012-03-01 Tom Tromey <tromey@redhat.com>
6772 * valprint.c (val_print): Update.
6773 * p-valprint (pascal_val_print): Return void.
6774 * p-lang.h (pascal_val_print): Return void.
6775 * m2-valprint.c (m2_val_print): Return void.
6776 * m2-lang.h (m2_val_print): Return void.
6777 * language.h (struct language_defn) <la_val_print>: Return void.
6778 * language.c (unk_lang_val_print): Return void.
6779 * jv-valprint.c (java_val_print): Return void.
6780 * jv-lang.h (java_val_print): Return void.
6781 * f-valprint.c (f_val_print): Return void.
6782 * f-lang.h (f_val_print): Return void.
6783 * d-valprint.c (d_val_print): Return void.
6784 (dynamic_array_type): Update.
6785 * d-lang.h (d_val_print): Return void.
6786 * c-valprint.c (c_val_print): Return void.
6787 * c-lang.h (c_val_print): Return void.
6788 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6790 * ada-lang.h (ada_val_print): Return void.
6792 2012-03-01 Tom Tromey <tromey@redhat.com>
6794 * value.h (val_print): Return void.
6795 * valprint.c (val_print): Return void.
6797 2012-03-01 Tom Tromey <tromey@redhat.com>
6799 * value.h (common_val_print): Return void.
6800 * valprint.c (common_val_print): Return void.
6802 2012-03-01 Tom Tromey <tromey@redhat.com>
6804 * value.h (value_print): Return void.
6805 * valprint.c (value_print): Return void.
6806 * p-valprint.c (pascal_value_print): Return void.
6807 * p-lang.h (pascal_value_print): Return void.
6808 * language.h (struct language_defn) <la_value_print>: Return
6810 * language.c (unk_lang_value_print): Return void.
6811 * jv-valprint.c (java_value_print): Return void.
6812 * jv-lang.h (java_value_print): Return void.
6813 * f-valprint.c (c_value_print): Don't declare.
6815 * c-valprint.c (c_value_print): Return void.
6816 * c-lang.h (c_value_print): Return void.
6817 * ada-valprint.c (ada_value_print): Return void.
6818 * ada-lang.h (ada_value_print): Return void.
6820 2012-03-01 Tom Tromey <tromey@redhat.com>
6822 * value.c (value_primitive_field): Handle virtual base classes.
6824 2012-03-01 Tom Tromey <tromey@redhat.com>
6826 * gdbtypes.h (struct vbase): Remove.
6828 2012-03-01 Tom Tromey <tromey@redhat.com>
6830 * c-valprint.c (print_function_pointer_address): Move...
6831 * valprint.c: ... here. Make non-static.
6832 * m2-valprint.c (print_function_pointer_address): Remove.
6833 * valprint.h (print_function_pointer_address): Declare.
6835 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6837 * NEWS: Document the fact that one can provide a condition when
6838 creating an Ada exception catchpoint.
6840 2012-03-01 Tom Tromey <tromey@redhat.com>
6842 * valprint.c (val_print_type_code_flags): Fix placement of
6845 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6847 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6848 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6849 environment variable before calling update-copyright.
6851 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6853 * gnulib/extra/update-copyright: Update to the latest from
6854 gnulib's git repository.
6855 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6856 variable to 2 instead of 1.
6858 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6860 * varobj.c (c_value_of_variable): Remove dead code.
6862 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6864 * ada-lex.p (processId): Do not modify already encoded IDs.
6865 Update function documentation.
6867 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6869 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6870 "name" with "struct symbol *name_sym".
6871 * ada-exp.y (write_var_or_type): Update call to
6872 ada_find_renaming_symbol.
6873 "name" with "struct symbol *name_sym". Adjust Implementation
6874 accordingly. Adjust the function documentation.
6876 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6878 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6879 * ada-lang.c (ada_find_any_type): Add advance declaration.
6880 Make static. Replace ada_find_any_symbol by
6881 ada_find_any_type_symbol.
6882 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
6883 Improve function description. Make static.
6884 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
6885 Replace ada_find_any_symbol by ada_find_any_type_symbol.
6887 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6889 * ada-lang.c (struct tag_args): Delete.
6890 (ada_get_tsd_type): Function body moved up in source file.
6891 (ada_tag_name_1, ada_tag_name_2): Delete.
6892 (ada_get_tsd_from_tag): New function.
6893 (ada_tag_name_from_tsd): New function.
6894 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
6895 to determine the tag name.
6897 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6899 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
6901 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
6904 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6906 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
6908 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6910 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
6913 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6915 * ada-lang.c (constrained_packed_array_type): If there is a
6916 parallel XA type, use it to determine the array index type.
6918 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6920 * ada-valprint.c (ada_val_print_1): If our value is a reference
6921 to an array descriptor, dereference it before converting it
6924 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6926 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
6927 creating fixed value.
6928 (ada_value_ind, ada_coerce_ref, assign_component)
6929 (ada_evaluate_subexp): Remove call to unwrap_value before
6930 call to ada_to_fixed_value.
6932 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6934 * ada-lang.c (to_fixed_array_type): Set result's type name.
6936 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6938 * ada-lang.c (catch_ada_exception_command_split): Add new
6939 argument cond_string. Add support for condition at end of
6940 "catch exception" commands.
6941 (ada_decode_exception_location): Add new argument cond_string.
6942 Update call to catch_ada_exception_command_split.
6943 (create_ada_exception_catchpoint): Add new argument cond_string.
6944 Set the breakpoint condition if needed.
6945 (catch_ada_exception_command): Update call to
6946 ada_decode_exception_location.
6947 (ada_decode_assert_location): Add function documentation.
6948 Add support for condition at end of "catch assert" command.
6949 (catch_assert_command): Update calls to ada_decode_assert_location
6950 and create_ada_exception_catchpoint.
6952 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6954 Fix disp-step-syscall.exp: fork: single step over fork.
6955 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
6956 (i386_linux_get_syscall_number_from_regcache): ... here, new function
6957 comment, change parameters gdbarch and ptid to regcache. Remove
6958 parameter regcache, initialize gdbarch from regcache here.
6959 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
6961 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
6963 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
6964 'syscall'. Make the 'int' check more strict.
6966 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6968 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
6969 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
6970 (i386_linux_intx80_sysenter_syscall_record): ... here.
6971 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
6972 Use the renamed function name.
6974 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6976 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
6977 * breakpoint.c (until_break_command): Likewise.
6978 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6979 * infcall.c (call_function_by_hand): Likewise.
6980 * infcmd.c (finish_forward): Likewise.
6981 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6983 2012-02-28 Tristan Gingold <gingold@adacore.com>
6985 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
6986 avoid variable assignments inside condition.
6988 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6990 Fix static analysis issue found by cppcheck.
6991 * microblaze-tdep.c (microblaze_extract_return_value): Fix
6992 uninitialized BUF for size 2.
6994 2012-02-27 Chris Dearman <chris@mips.com>
6995 Nathan Froyd <froydnj@codesourcery.com>
6996 Maciej W. Rozycki <macro@codesourcery.com>
6998 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
6999 (mips16_instruction_has_delay_slot): Likewise.
7000 (mips_segment_boundary): Likewise.
7001 (mips_adjust_breakpoint_address): Likewise.
7002 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
7004 2012-02-27 Maciej W. Rozycki <macro@mips.com>
7005 Maciej W. Rozycki <macro@codesourcery.com>
7007 * infrun.c (handle_inferior_event): Don't proceed through
7008 shared library trampolines if stepping at the machine
7011 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
7013 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
7016 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
7018 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
7019 (sh_stub_unwind_sniffer): New functions.
7020 (sh_stub_unwind): New variable.
7021 (sh_gdbarch_init): Wire everything.
7023 2012-02-27 Pedro Alves <palves@redhat.com>
7025 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
7026 (linux_nat_post_attach_wait): Adjust to use
7027 linux_proc_pid_is_stopped.
7028 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
7029 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
7030 based on pid_is_stopped from both linux-nat.c and
7031 gdbserver/linux-low.c, and renamed.
7033 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7035 * remote.c (remote_watchpoint_addr_within_range): New function.
7036 (init_remote_ops): Use it.
7038 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7040 * target.h (target_watchpoint_addr_within_range): Document macro.
7042 2012-02-24 Pedro Alves <palves@redhat.com>
7044 * stack.c (set_last_displayed_sal): Issue internal_error instead
7045 of warning, and issue it after clearing the last displayed sal.
7047 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7048 Pedro Alves <palves@redhat.com>
7050 * breakpoint.c (until_break_command): Install breakpoints after
7051 all frame manipulations.
7053 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7055 * remote.c (remote_supports_cond_breakpoints): New forward
7057 (remote_add_target_side_condition): New function.
7058 (remote_insert_breakpoint): Add target-side breakpoint
7059 conditional if supported.
7060 (remote_insert_hw_breakpoint): Likewise.
7061 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7064 * target.c (update_current_target): Inherit
7065 to_supports_evaluation_of_breakpoint_conditions.
7066 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7068 * target.h (struct target_ops)
7069 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7070 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7072 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7073 (condition_evaluation_both, condition_evaluation_auto,
7074 condition_evaluation_host, condition_evaluation_target,
7075 condition_evaluation_enums, condition_evaluation_mode_1,
7076 condition_evaluation_mode): New static globals.
7077 (translate_condition_evaluation_mode): New function.
7078 (breakpoint_condition_evaluation_mode): New function.
7079 (gdb_evaluates_breakpoint_condition_p): New function.
7080 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7081 (mark_breakpoint_modified): New function.
7082 (mark_breakpoint_location_modified): New function.
7083 (set_condition_evaluation_mode): New function.
7084 (show_condition_evaluation_mode): New function.
7085 (bp_location_compare_addrs): New function.
7086 (get_first_location_gte_addr): New helper function.
7087 (set_breakpoint_condition): Free condition bytecode if locations
7088 has become unconditional. Call mark_breakpoint_modified (...).
7089 (condition_command): Call update_global_location_list (1) for
7091 (breakpoint_xfer_memory): Use is_breakpoint (...).
7092 (is_breakpoint): New function.
7093 (parse_cond_to_aexpr): New function.
7094 (build_target_condition_list): New function.
7095 (insert_bp_location): Handle target-side conditional
7096 breakpoints and call build_target_condition_list (...).
7097 (update_inserted_breakpoint_locations): New function.
7098 (insert_breakpoint_locations): Handle target-side conditional
7100 (bpstat_check_breakpoint_conditions): Add comment.
7101 (bp_condition_evaluator): New function.
7102 (bp_location_condition_evaluator): New function.
7103 (print_breakpoint_location): Print information on where the condition
7105 (print_one_breakpoint_location): Likewise.
7106 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7107 breakpoint location.
7108 (force_breakpoint_reinsertion): New functions.
7109 (update_global_location_list): Handle target-side breakpoint
7111 Reinsert locations that are already inserted if conditions have
7113 (bp_location_dtor): Free agent expression bytecode.
7114 (disable_breakpoint): Call mark_breakpoint_modified (...).
7115 Call update_global_location_list (...) with parameter 1 for breakpoints.
7116 (disable_command): Call mark_breakpoint_location_modified (...).
7117 Call update_global_location_list (...) with parameter 1 for breakpoints.
7118 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7119 (enable_command): mark_breakpoint_location_modified (...).
7120 (_initialize_breakpoint): Update documentation and add
7121 condition-evaluation breakpoint subcommand.
7123 * breakpoint.h: Include ax.h.
7124 (condition_list): New data structure.
7125 (condition_status): New enum.
7126 (bp_target_info) <cond_list>: New field.
7127 (bp_location) <condition_changed, cond_bytecode>: New fields.
7128 (is_breakpoint): New prototype.
7130 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7132 * remote.c (remote_state) <cond_breakpoints>: New field.
7133 (PACKET_ConditionalBreakpoints): New enum.
7134 (remote_cond_breakpoint_feature): New function.
7135 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7136 (remote_supports_cond_breakpoints): New function.
7137 (_initialize_remote): Add new packet configuration for
7138 target-side conditional breakpoints.
7140 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7142 * NEWS: Mention target-side conditional breakpoint support,
7143 new condition-evaluation breakpoint subcommand and remote
7146 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7148 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7151 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7153 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7154 (after_prologue): Remove.
7156 2012-02-23 Tom Tromey <tromey@redhat.com>
7158 * jv-valprint.c (java_val_print): Remove dead code.
7160 2012-02-23 Tristan Gingold <gingold@adacore.com>
7162 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7163 known_tasks_element and known_tasks_length fields.
7164 (read_known_tasks_array): Change argument type. Use pointer type
7165 and number of elements from DATA. Adjust.
7166 (read_known_tasks_list): Likewise.
7167 (get_known_tasks_addr): Remove.
7168 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7169 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7170 type and array length. Merge former get_known_tasks_addr code.
7172 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7175 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7176 it after set_momentary_breakpoint.
7178 2012-02-22 Sterling Augustine <saugustine@google.com>
7181 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7183 2012-02-22 Gary Benson <gbenson@redhat.com>
7185 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7186 (find_slot_in_mapped_hash): Likewise.
7188 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7191 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7192 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7193 * configure: Regenerate.
7195 2012-02-21 Tristan Gingold <gingold@adacore.com>
7196 Pedro Alves <palves@redhat.com>
7198 * ia64-tdep.c: Do not include libunwind-ia64.h.
7199 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7200 Include libunwind-ia64.h instead of libunwind.h.
7201 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7202 for libunwind.h existence.
7203 * configure, config.in: Regenerate.
7205 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7207 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7208 instead of value_rtti_target_type.
7209 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7210 instead of value_rtti_target_type.
7211 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7212 value_rtti_target_type.
7213 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7214 (value_rtti_target_type): Rename to ...
7215 (value_rtti_indirect_type): ... here and make it indirect. Update
7217 * value.c (readjust_indirect_value_type): New function.
7218 (coerce_ref): Support for enclosing type setting for references
7219 with readjust_indirect_value_type.
7220 * value.h (readjust_value_type): New declaration.
7221 (value_rtti_target_type): Rename to ...
7222 (value_rtti_indirect_type): ... here.
7224 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7226 * MAINTAINERS (Write After Approval): Add myself to the list.
7228 2012-02-20 Doug Evans <dje@google.com>
7230 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7231 Rename objfile_p_char parameter to objfilep.
7232 (build_objfile_section_table): Result is now void. All callers
7234 * objfiles.h (struct objfile): Tweak comments, whitespace.
7235 (build_objfile_section_table): Update.
7237 * elfread.c (elf_symfile_segments): Fix warning text.
7239 2012-02-20 Tom Tromey <tromey@redhat.com>
7242 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7243 particular set of file names once.
7244 (dw2_map_symbol_filenames): Likewise.
7246 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7249 * main.c (write_files): Remove the declaration.
7250 (external_editor_command): Move the declaration ...
7251 [GDBTK] (external_editor_command): ... here. Fix the comment.
7253 2012-02-20 Tom Tromey <tromey@redhat.com>
7255 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7258 2012-02-20 Tristan Gingold <gingold@adacore.com>
7260 * darwin-nat.h (enum darwin_msg_state): Add comments.
7262 2012-02-20 Tristan Gingold <gingold@adacore.com>
7264 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7267 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7269 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7270 between function description and implementation.
7272 2012-02-17 Tom Tromey <tromey@redhat.com>
7275 * python/py-event.c (event_object_getset): New global.
7276 (event_object_type): Reference it.
7277 * python/py-type.c (field_object_getset): New global.
7278 (field_object_type): Reference it.
7279 * python/python-internal.h (gdb_py_generic_dict): Declare.
7280 * python/py-utils.c (gdb_py_generic_dict): New function.
7282 2012-02-17 Tristan Gingold <gingold@adacore.com>
7284 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7286 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7288 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7289 TYPE_CALLING_CONVENTION annotation.
7291 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7293 * MAINTAINERS: Add rx to target ISA section.
7294 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7295 (ALLDEPFILES): Add rx-tdep.c.
7297 2012-02-16 Tom Tromey <tromey@redhat.com>
7299 * symfile.c (symbol_file_add_main_1): Use inferior's
7301 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7302 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7304 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7306 (follow_exec): Use inferior's symfile_flags.
7307 * inferior.h (struct inferior) <symfile_flags>: New field.
7309 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7312 * remote-sim.c (gdbsim_create_inferior): Call error() when
7313 sim_create_inferior() fails.
7315 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7317 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7319 2012-02-16 Tom Tromey <tromey@redhat.com>
7322 * thread.c (struct current_thread_cleanup) <was_removable>: New
7324 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7325 (make_cleanup_restore_current_thread): Initialize new field.
7327 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7329 * MAINTAINERS: Add rl78 to target ISA section.
7330 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7331 (ALLDEPFILES): Add rl78-tdep.c.
7332 * NEWS: Mention rl78 as a new target.
7334 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7336 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7338 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7340 2012-02-15 Tom Tromey <tromey@redhat.com>
7343 * infcmd.c (registers_info): Print just the current register's
7346 2012-02-15 Tom Tromey <tromey@redhat.com>
7348 * python/py-symbol.c (sympy_value): Use _().
7350 2012-02-15 Pedro Alves <palves@redhat.com>
7352 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7353 output to be like native targets'.
7354 (remote_pid_to_str): Special case the null ptid.
7356 2012-02-14 Stan Shebs <stan@codesourcery.com>
7358 * NEWS: Mention enable count command.
7359 * breakpoint.h (struct breakpoint): New field enable_count.
7360 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7361 (enable_breakpoint): Add arg to call.
7362 (struct disp_data): New struct.
7363 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7364 (do_map_enable_once_breakpoint): Create a struct and pass it.
7365 (do_map_enable_delete_breakpoint): Ditto.
7366 (do_map_enable_count_breakpoint): New function.
7367 (enable_count_command): New function.
7368 (bpstat_stop_status): Decrement enable_count.
7369 (print_one_breakpoint_location): Report enable count.
7370 (_initialize_breakpoint): Add enable count command.
7372 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7374 * rl78-tdep.c (reggroups.h): Include.
7375 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7376 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7377 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7378 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7379 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7380 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7381 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7382 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7383 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7384 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7385 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7386 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7387 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7388 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7389 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7390 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7391 beginning of register list.
7392 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7393 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7394 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7395 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7396 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7397 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7398 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7399 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7400 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7401 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7402 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7403 the pseudo registers. Rearrange other pseudo registers too so
7404 that the bank registers appear at the end.
7405 (rl78_register_type): Account for the fact that the byte sized
7406 bank registers are now pseudo-registers.
7407 (rl78_register_name): Rearrange the register name array. Make
7408 initial set of raw banked registers inaccessible.
7409 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7410 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7411 case for copying bytes back and forth between raw and pseudo
7412 versions of the banked registers. Update other cases to reflect
7414 (rl78_return_value): Update to account for changed names of
7416 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7417 rl78_register_sim_regno().
7419 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7421 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7422 the name parameter being passed to find_pc_partial_function().
7424 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7426 * MAINTAINERS: Step down from being ia64 target maintainer.
7428 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7430 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7431 compilation warning.
7433 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7435 Fix crash on loaded shlibs without loaded exec_bfd.
7436 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7437 (set_section_command): Replace exec_bfd by p->bfd.
7439 2012-02-10 Tom Tromey <tromey@redhat.com>
7441 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7442 when we have a C++ qualified name.
7444 2012-02-10 Pedro Alves <palves@redhat.com>
7446 * inferior.c (inferior_pid_to_str): New.
7447 (print_inferior, inferior_command): Use it.
7449 2012-02-10 Pedro Alves <palves@redhat.com>
7451 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7453 * configure: Regenerate.
7455 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7457 * linespec.c (decode_line_internal): Fix comment correctness.
7459 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7462 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7463 * amd64bsd-nat.c: Add support for debug registers (adapted from
7465 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7466 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7467 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7468 (amd64bsd_dr_get_control): New functions.
7469 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7470 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7471 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7472 watchpoints initialization.
7473 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7475 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7477 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7479 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7481 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7483 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7485 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7487 * language.h (symbol_name_cmp_ftype): Renames
7488 symbol_name_match_p_ftype.
7489 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7490 la_get_symbol_name_match_p.
7491 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7492 ada_get_symbol_name_match_p. Update comment.
7493 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7494 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7495 Renames symbol_name_match_p. Update field type.
7496 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7497 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7498 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7499 "la_get_symbol_name_cmp" in comments.
7500 * language.c: Likewise.
7502 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7504 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7506 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7507 (amd64_sol2_gregset32_reg_offs): Likewise.
7509 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7511 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7512 of the returned BFD is allocated by GDB.
7514 2012-02-07 Tom Tromey <tromey@redhat.com>
7517 * python/python-internal.h (frame_object_type): Declare.
7518 * python/py-symbol.c (sympy_needs_frame): New function.
7519 (sympy_value): New function.
7520 (symbol_object_getset): Add "needs_frame".
7521 (symbol_object_methods): Add "value".
7522 * python/py-frame.c (frame_object_type): No longer static.
7524 2012-02-07 Tom Tromey <tromey@redhat.com>
7527 * python/py-symbol.c (sympy_line): New function.
7528 (symbol_object_getset): Add "line".
7530 2012-02-07 Tom Tromey <tromey@redhat.com>
7532 * charset.c (find_charset_names): Check 'in' against NULL.
7534 2012-02-06 Doug Evans <dje@google.com>
7536 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7537 and fields.name members from char * to const char *. All uses updated.
7538 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7539 from char * to const char *. All uses updated.
7540 (type_name_no_tag): Update.
7541 (lookup_unsigned_typename, lookup_signed_typename): Update.
7542 * gdbtypes.c (type_name_no_tag): Change result type
7543 from char * to const char *. All callers updated.
7544 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7545 name parameter from char * to const char *.
7546 * symtab.h (struct cplus_specific): Change type of demangled_name
7547 member from char * to const char *. All uses updated.
7548 (struct general_symbol_info): Change type of name and
7549 mangled_lang.demangled_name members from char * to const char *.
7551 (symbol_get_demangled_name, symbol_natural_name): Update.
7552 (symbol_demangled_name, symbol_search_name): Update.
7553 * symtab.c (symbol_get_demangled_name): Change result type
7554 from char * to const char *. All callers updated.
7555 (symbol_natural_name, symbol_demangled_name): Ditto.
7556 (symbol_search_name): Ditto.
7557 (completion_list_add_name): Change type of symname,sym_text,
7558 text,word parameters from char * to const char *.
7559 (completion_list_objc_symbol): Change type of sym_text,
7560 text,word parameters from char * to const char *.
7561 * ada-lang.c (find_struct_field): Change type of name parameter
7562 from char * to const char *.
7563 (encoded_ordered_before): Similarly for N0,N1 parameters.
7564 (old_renaming_is_invisible): Similarly for function_name parameter.
7565 (ada_type_name): Change result type from char * to const char *.
7566 All callers updated.
7567 * ada-lang.h (ada_type_name): Update.
7568 * buildsym.c (hashname): Change type of name parameter
7569 from char * to const char *.
7570 * buildsym.h (hashname): Update.
7571 * dbxread.c (end_psymtab): Change type of include_list parameter
7572 from char ** to const char **.
7573 * dwarf2read.c (determine_prefix): Change result type
7574 from char * to const char *. All callers updated.
7575 * f-lang.c (find_common_for_function): Change type of name, funcname
7576 parameters from char * to const char *.
7577 * f-lang.c (find_common_for_function): Update.
7578 * f-valprint.c (list_all_visible_commons): Change type of funcname
7579 parameters from char * to const char *.
7580 * gdbarch.sh (static_transform_name): Change type of name parameter
7581 and result from char * to const char *.
7582 * gdbarch.c: Regenerate.
7583 * gdbarch.h: Regenerate.
7584 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7585 of name parameter from char * to const char *.
7586 * jv-lang.c (java_primitive_type_from_name): Ditto.
7587 (java_demangled_signature_length): Similarly for signature parameter.
7588 (java_demangled_signature_copy): Ditto.
7589 (java_demangle_type_signature): Ditto.
7590 * jv-lang.h (java_primitive_type_from_name): Update.
7591 (java_demangle_type_signature): Update.
7592 * objc-lang.c (specialcmp): Change type of a,b parameters
7593 from char * to const char *.
7594 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7595 from char * to const char *. All callers updated.
7596 * p-lang.h (is_pascal_string_type): Update.
7597 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7598 of name parameter from char * to const char *.
7599 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7600 * utils.c (fprintf_symbol_filtered): Ditto.
7601 * defs.h (fprintf_symbol_filtered): Update.
7602 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7603 * stabsread.h (end_psymtab): Update.
7604 * stack.c (find_frame_funname): Change type of funname parameter
7605 from char ** to const char **.
7606 * stack.h (find_frame_funname): Update.
7607 * typeprint.c (type_print): Change type of varstring parameter
7608 from char * to const char *.
7609 * value.h (type_print): Update.
7610 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7611 from char * to const char *. All callers updated.
7612 (xcoff_end_psymtab): Change type of include_list parameter
7613 from char ** to const char **. All callers updated.
7614 (swap_sym): Similarly for name parameter. All callers updated.
7615 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7617 (process_coff_symbol): Use xstrdup.
7618 * stabsread.c (stabs_method_name_from_physname): Renamed from
7619 update_method_name_from_physname. Change result type from void
7620 to char *. All callers updated.
7621 (read_member_functions): In has_destructor case, store name in objfile
7622 obstack instead of malloc space. In !has_stub case, fix mem leak.
7624 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7626 * configure: Rebuild.
7627 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7630 2012-02-03 Kevin Buettner <kevinb@redhat.com>
7632 * configure.tgt (rl78-*-elf): New target.
7633 * rl78-tdep.c: New file.
7635 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7637 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7638 and continue the loop. Add QUIT statement.
7640 2012-02-03 Tom Tromey <tromey@redhat.com>
7643 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7644 bfd_lookup_symbol_from_symtab.
7645 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7646 gdb_bfd_lookup_symbol_from_symtab.
7648 2012-02-03 Joel Brobecker <brobecker@adacore.com>
7650 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7651 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7652 symbol. Add assertion that sym2 is never NULL.
7654 2012-02-02 Doug Evans <dje@google.com>
7656 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7657 "name" parameter to const char ** from char **. All callers updated.
7658 (find_pc_partial_function): Ditto.
7659 (cache_pc_function_name): Change type to const char * from char *.
7660 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7661 (find_pc_partial_function): Update.
7662 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7663 type of "name" parameter to const char * from char *.
7665 * arch-utils.c (generic_in_solib_return_trampoline): Change
7666 type of "name" parameter to const char * from char *.
7667 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7668 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7669 type of "name" parameter to const char * from char *.
7670 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7671 * gdbarch.c: Regenerate.
7672 * gdbarch.h: Regenerate.
7673 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7674 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7675 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7676 type of "name" parameter to const char * from char *.
7677 * skip.c (skip_function_pc): Ditto.
7678 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7679 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7680 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7681 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7682 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7683 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7684 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7685 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7686 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7688 2012-02-02 Pedro Alves <palves@redhat.com>
7690 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7691 the current inferior has no execution. Make sure the current
7692 remote process matches gdb's current inferior.
7694 2012-02-02 Tom Tromey <tromey@redhat.com>
7697 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7700 2012-02-02 Tom Tromey <tromey@redhat.com>
7703 * symtab.c (lookup_language_this): Set block_found.
7705 2012-02-01 Tom Tromey <tromey@redhat.com>
7708 * jit.c (struct jit_inferior_data): Rewrite.
7709 (struct jit_objfile_data): New.
7710 (get_jit_objfile_data): New function.
7711 (add_objfile_entry): Update.
7712 (jit_read_descriptor): Return int. Replace descriptor_addr
7713 argument with inf_data. Update. Don't call error.
7714 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7716 (jit_inferior_init): Don't look up descriptor. Don't call error.
7717 (jit_reset_inferior_data_and_breakpoints)
7718 (jit_inferior_created_observer): Remove.
7719 (jit_inferior_exit_hook): Update.
7720 (jit_executable_changed_observer): Remove.
7721 (jit_event_handler): Update.
7722 (free_objfile_data): Reset inferior data if needed.
7723 (_initialize_jit): Update.
7725 2012-02-01 Tom Tromey <tromey@redhat.com>
7727 * jit.c (bfd_open_from_target_memory): Move higher in file.
7729 2012-02-01 Tristan Gingold <gingold@adacore.com>
7731 * libunwind-frame.c (libunwind_load): Display message if dlopen
7734 2012-02-01 Gary Benson <gbenson@redhat.com>
7736 * symtab.h (symbol_found_callback_ftype): New typedef.
7737 (iterate_over_symbols): Use the above.
7738 * symtab.c (iterate_over_symbols): Likewise.
7739 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7740 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7741 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7742 (iterate_name_matcher): Document return values.
7743 (collect_one_symbol): Likewise.
7744 (collect_function_symbols): Likewise.
7745 (collect_symbols): Likewise.
7747 2012-02-01 Tom Tromey <tromey@redhat.com>
7749 * ada-lang.c (resolve_subexp): Update.
7750 (ada_lookup_symbol_list): Add 'full_search' argument.
7751 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7752 ada_lookup_symbol_list.
7753 (ada_lookup_encoded_symbol): Update.
7754 (get_var_value): Update.
7755 * ada-exp.y (block_lookup): Update.
7756 (write_var_or_type): Update.
7757 (write_name_assoc): Update.
7758 * ada-lang.h (ada_lookup_symbol_list): Update.
7760 2012-01-31 Tom Tromey <tromey@redhat.com>
7762 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7765 2012-01-31 Doug Evans <dje@google.com>
7767 * symtab.h: Remove outdated comment.
7768 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7770 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
7772 Fix build error in Darwin port.
7773 * i386-darwin-nat.c: Include i386-nat.h.
7775 2012-01-30 Tom Tromey <tromey@redhat.com>
7777 PR breakpoints/13568:
7778 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7779 argument. Check for recursive includes.
7780 (dwarf_decode_macros): Create an include hash.
7782 2012-01-30 Michael Eager <eager@eagercon.com>
7784 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7785 * ppc-linux-tdep.c: Include glibc-tdep.h.
7786 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7787 (powerpc_linux_in_plt_stub): New function.
7788 (powerpc_linux_in_dynsym_resolve_code): New function.
7789 (ppc_skip_trampoline_code): New function.
7790 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7791 Use glibc_skip_solib_resolver.
7793 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7795 Code cleanup: Make 1440 bytes of data segment read-only.
7796 * arch-utils.c (endian_enum): Make it const char *const [].
7797 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7799 * breakpoint.c (always_inserted_enums): Likewise.
7800 * cli/cli-cmds.c (script_ext_enums): Likewise.
7801 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7802 enumlist parameter const char *const *.
7803 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7804 const char *const *.
7805 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7806 parameter const char *const *.
7807 * cris-tdep.c (cris_modes): Make it const char *const [].
7808 * filesystem.c (target_file_system_kinds): Likewise.
7809 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7810 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7811 (can_use_displaced_stepping_enum, scheduler_enums)
7812 (exec_direction_names): Likewise.
7813 * language.c (_initialize_language): Make the type_or_range_names and
7814 case_sensitive_names variables const char *const [].
7815 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7816 * python/python.c (python_excp_enums): Likewise.
7817 * remote.c (interrupt_sequence_modes): Likewise.
7818 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7819 * serial.c (logbase_enums): Likewise.
7820 * sh-tdep.c (sh_cc_enum): Likewise.
7821 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7823 * symtab.c (multiple_symbols_modes): Likewise.
7824 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7826 * utils.c (internal_problem_modes): Likewise.
7828 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7830 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7831 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7834 2012-01-27 Doug Evans <dje@google.com>
7836 * configure.ac (with_python): Fix absolute path handling for win32.
7837 * configure: Regenerate.
7839 2012-01-26 Doug Evans <dje@google.com>
7841 * symtab.c: Whitespace cleanup, no code changes.
7843 * symtab.c (lookup_symbol_in_language): Improve comment.
7844 (lookup_symbol_aux): Fix comment.
7846 * psymtab.c (add_psymbol_to_list): Result is now "void".
7847 * psympriv.h (add_psymbol_to_list): Update.
7849 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7851 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7853 Do not open script filenames twice.
7854 * cli/cli-cmds.c (source_script_from_stream): Pass to
7855 source_python_script also STREAM.
7856 * python/py-auto-load.c (source_section_scripts): Pass to
7857 source_python_script_for_objfile also STREAM.
7858 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7860 * python/python-internal.h (source_python_script_for_objfile): New
7861 parameter file, rename parameter file to filename.
7862 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7863 instead if !_WIN32. Update the function comment.
7864 (source_python_script, source_python_script_for_objfile)
7865 (source_python_script): New parameter file, rename parameter file to
7866 filename. Pass FILENAME to python_run_simple_file.
7867 * python/python.h (source_python_script): New parameter file, rename
7868 parameter file to filename.
7870 2012-01-26 Pedro Alves <palves@redhat.com>
7872 * corelow.c (core_has_fake_pid): Delete.
7873 (core_close): Delete references to `core_has_fake_pid'.
7874 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7875 (core_open): Delete references to `core_has_fake_pid'.
7876 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7879 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7881 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7882 Remove language parameter from name_matcher. Adjust the comment.
7883 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
7884 Remove language parameter.
7885 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
7886 * linespec.c (iterate_name_matcher): Likewise.
7887 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
7888 name_matcher. Adjust call accordingly.
7889 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
7890 (maintenance_check_symtabs): Adjust type of parameter "fun".
7891 * psymtab.h (maintenance_check_symtabs): Likewise.
7893 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7895 * language.h (symbol_name_match_p_ftype): New typedef.
7896 (struct language_defn): Replace field la_symbol_name_compare
7897 by la_get_symbol_name_match_p.
7898 * ada-lang.c (ada_get_symbol_name_match_p): New function.
7899 (ada_language_defn): Use it.
7900 * linespec.c (struct symbol_matcher_data): New type.
7901 (iterate_name_matcher): Rewrite.
7902 (iterate_over_all_matching_symtabs): Pass a pointer to
7903 a symbol_matcher_data struct to expand_symtabs_matching
7904 instead of just the lookup name.
7905 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7906 opencl-lang.c, p-lang.c, language.c: Delete field
7907 la_symbol_name_compare, and replace by NULL for new field
7908 la_get_symbol_name_match_p.
7909 * symfile.h (struct quick_symbol_functions): Update comment.
7911 2012-01-25 Tom Tromey <tromey@redhat.com>
7913 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
7916 2012-01-24 Tom Tromey <tromey@redhat.com>
7919 * solib.c (update_solib_list): Update the program space's
7920 added_solibs and deleted_solibs fields.
7921 * progspace.h (struct program_space) <added_solibs,
7922 deleted_solibs>: New fields.
7923 (clear_program_space_solib_cache): Declare.
7924 * progspace.c (release_program_space): Call
7925 clear_program_space_solib_cache.
7926 (clear_program_space_solib_cache): New function.
7927 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
7928 bpstat_stop_status. Use handle_solib_event.
7929 * breakpoint.c: Include gdb_regex.h.
7930 (print_solib_event): New function.
7931 (bpstat_print): Use print_solib_event.
7932 (bpstat_stop_status): Add special case for bp_shlib_event.
7933 (handle_solib_event): New function.
7934 (bpstat_what): Use handle_solib_event.
7935 (struct solib_catchpoint): New.
7936 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
7937 (breakpoint_hit_catch_solib, check_status_catch_solib)
7938 (print_it_catch_solib, print_one_catch_solib)
7939 (print_mention_catch_solib, print_recreate_catch_solib): New
7941 (catch_solib_breakpoint_ops): New global.
7942 (catch_load_or_unload, catch_load_command_1)
7943 (catch_unload_command_1): New functions.
7944 (internal_bkpt_check_status): Add special case for
7946 (internal_bkpt_print_it): Use print_solib_event.
7947 (initialize_breakpoint_ops): Initialize
7948 catch_solib_breakpoint_ops.
7949 (_initialize_breakpoint): Register "catch load" and "catch
7951 * breakpoint.h (handle_solib_event): Declare.
7952 * NEWS: Add entry for "catch load" and "catch unload".
7954 2012-01-24 Tom Tromey <tromey@redhat.com>
7956 * ada-lang.c: Include gdb_vecs.h.
7957 * charset.c: Include gdb_vecs.h.
7958 * tracepoint.h: Include gdb_vecs.h.
7959 * gdb_vecs.h: New file.
7961 2012-01-24 Pedro Alves <pedro@codesourcery.com>
7963 * breakpoint.c (breakpoint_hit_catch_fork)
7964 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
7965 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
7966 * infrun.c (inferior_has_forked, inferior_has_vforked)
7967 (inferior_has_execd, inferior_has_called_syscall): Delete.
7968 (handle_syscall_event): Get syscall_number from the execution
7969 control state's wait status.
7970 (wait_for_inferior): Don't clear syscall_number.
7972 2012-01-24 Pedro Alves <palves@redhat.com>
7974 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
7975 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
7976 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
7977 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
7979 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
7980 false for events other than TARGET_SIGNAL_TRAP.
7981 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
7983 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
7984 events other than TARGET_SIGNAL_TRAP.
7985 (tracepoint_breakpoint_hit): Add `ws' parameter.
7986 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
7988 (bpstat_stop_status): Same.
7989 (pc_at_non_inline_function): Same.
7990 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
7991 to pass the current event's waitstatus to bpstat_stop_status
7992 and pc_at_non_inline_function.
7994 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7997 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
7998 Update the function comment for it.
7999 (source_script_with_search): Call make_cleanup_fclose for STREAM.
8000 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
8003 2012-01-24 Pedro Alves <palves@redhat.com>
8005 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
8006 outside `bs->stop' block.
8007 (bpstat_what): Rework bp_shlib_event handling.
8008 (internal_bkpt_check_status): If the breakpoint is a
8009 bp_shlib_event, then set bs->stop and bs->print if
8010 stop_on_solib_events is set.
8012 2012-01-24 Gary Benson <gbenson@redhat.com>
8014 Delete #if 0'd out code.
8015 * stack.c (print_frame_label_vars): Remove.
8016 (catch_info): Likewise.
8017 (_initialize_stack): Remove "info catch" command.
8018 * NEWS: Mention the above.
8020 2012-01-24 Pedro Alves <palves@redhat.com>
8022 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
8024 (remote_notice_new_inferior): If the remote end doesn't support
8025 the multiprocess extensions, then the PID is fake.
8026 (add_current_inferior_and_thread): New.
8027 (remote_start_remote): Use it.
8028 (extended_remote_attach_1): Adjust.
8029 (extended_remote_create_inferior_1): Use
8030 add_current_inferior_and_thread.
8032 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8034 Fix watchpoints to be specific for each inferior.
8035 * breakpoint.c (watchpoint_in_thread_scope): Verify also
8036 current_program_space.
8037 * i386-nat.c (i386_inferior_data_cleanup): New.
8038 (i386_inferior_data_get): Replace variable inf_data_local by an
8040 (i386_use_watchpoints): Initialize i386_inferior_data.
8041 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
8042 specific iterate_over_lwps.
8044 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8046 Fix watchpoints across inferior fork.
8047 * amd64-linux-nat.c (update_debug_registers_callback): Update the
8048 comment for linux_nat_iterate_watchpoint_lwps.
8049 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8050 linux_nat_iterate_watchpoint_lwps.
8051 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8052 * i386-linux-nat.c (update_debug_registers_callback): Update the
8053 comment for linux_nat_iterate_watchpoint_lwps.
8054 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8055 linux_nat_iterate_watchpoint_lwps.
8056 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8057 * i386-nat.c: Include inferior.h.
8058 (dr_mirror): Remove.
8059 (i386_inferior_data, struct i386_inferior_data)
8060 (i386_inferior_data_get): New.
8061 (i386_debug_reg_state): Use i386_inferior_data_get.
8062 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8063 (i386_insert_watchpoint, i386_remove_watchpoint)
8064 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8065 (i386_remove_hw_breakpoint): New variable state, use
8066 i386_debug_reg_state instead of DR_MIRROR.
8067 * linux-nat.c (delete_lwp): New declaration.
8068 (num_lwps): Move here from downwards.
8069 (delete_lwp_cleanup): New.
8070 (linux_child_follow_fork): Create new child_lp, call
8071 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8073 (num_lwps): Move upwards.
8074 (linux_nat_iterate_watchpoint_lwps): New.
8075 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8076 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8078 2012-01-24 Joel Brobecker <brobecker@adacore.com>
8082 2012-01-23 Pedro Alves <palves@redhat.com>
8084 * top.c (caution): Rename to ...
8085 (confirm): ... this.
8086 (show_caution): Rename to ...
8087 (show_confirm): ... this.
8088 (quit_cover): Adjust.
8089 (init_main): Adjust.
8090 * top.h (caution): Rename to ...
8091 (confirm): ... this.
8092 * utils.c (internal_vproblem, defaulted_query): Adjust.
8094 2012-01-23 Pedro Alves <palves@redhat.com>
8096 * top.c (caution): Update comment.
8097 (execute_command): Don't consider the current value of `caution'.
8099 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8101 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8103 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8105 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8106 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8107 * target.c (target_fileio_pwrite): Remove buffer address from
8109 (target_fileio_pread): Likewise.
8111 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8113 * NEWS: Document remote "info proc" and "generate-core-file".
8115 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8117 * gdbarch.sh (find_memory_regions): New callback.
8118 * gdbarch.c, gdbarch.h: Regenerate.
8120 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8121 callback before falling back to target method.
8123 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8124 (linux_target_install_ops): No longer install it.
8126 * linux-tdep.c (linux_find_memory_regions): New function.
8127 (linux_init_abi): Install it.
8129 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8131 * gdbarch.sh (make_corefile_notes): New architecture callback.
8132 * gdbarch.c: Regenerate.
8133 * gdbarch.h: Likewise.
8135 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8136 before target_make_corefile_notes. If NULL is returned, the
8137 target does not support core file generation.
8139 * linux-nat.c: Include "linux-tdep.h".
8140 (find_signalled_thread, find_stop_signal): Remove.
8141 (linux_nat_do_thread_registers): Likewise.
8142 (struct linux_nat_corefile_thread_data): Likewise.
8143 (linux_nat_corefile_thread_callback): Likewise.
8144 (iterate_over_spus): Likewise.
8145 (struct linux_spu_corefile_data): Likewise.
8146 (linux_spu_corefile_callback): Likewise.
8147 (linux_spu_make_corefile_notes): Likewise.
8148 (linux_nat_collect_thread_registers): New function.
8149 (linux_nat_make_corefile_notes): Replace contents by call to
8150 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8151 as native-only callback.
8153 * linux-tdep.h: Include "bfd.h".
8154 (struct regcache): Add forward declaration.
8155 (linux_collect_thread_registers_ftype): New typedef.
8156 (linux_make_corefile_notes): Add prototype.
8157 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8158 "regset.h", and "elf-bfd.h".
8159 (find_signalled_thread, find_stop_signal): New functions.
8160 (linux_spu_make_corefile_notes): Likewise.
8161 (linux_collect_thread_registers): Likewise.
8162 (struct linux_corefile_thread_data): New data structure.
8163 (linux_corefile_thread_callback): New funcion.
8164 (linux_make_corefile_notes): Likewise.
8165 (linux_make_corefile_notes_1): Likewise.
8166 (linux_init_abi): Install it.
8168 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8170 * gdbarch.sh (info_proc): New callback.
8171 * gdbarch.c, gdbarch.h: Regenerate.
8173 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8174 before falling back to the target info_proc callback.
8176 * linux-nat.c: Do not include "cli/cli-utils.h".
8177 (linux_nat_info_proc): Remove.
8178 (linux_target_install_ops): No longer install it.
8180 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8181 (read_mapping): New function.
8182 (linux_info_proc): Likewise.
8183 (linux_init_abi): Install it.
8185 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8187 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8188 * infcmd.c: (info_proc_cmd_1): New function.
8189 (info_proc_cmd): New function, moved here from equivalent routine
8190 orignally in linux-nat.c.
8191 (info_proc_cmd_mappings): Likewise.
8192 (info_proc_cmd_stat): Likewise.
8193 (info_proc_cmd_status): Likewise.
8194 (info_proc_cmd_cwd): Likewise.
8195 (info_proc_cmd_cmdline): Likewise.
8196 (info_proc_cmd_exe): Likewise.
8197 (info_proc_cmd_all): Likewise.
8198 (_initialize_infcmd): Install "info proc" command and subcommands.
8200 * target.h (struct target_ops): Add to_info_proc.
8201 (target_info_proc): Add prototype.
8202 * target.c (target_info_proc): New function.
8204 * procfs.c (procfs_info_proc): Add prototype.
8205 (info_proc_cmd): Rename into ...
8206 (procfs_info_proc): ... this. Update argument types as appropriate
8207 for a to_info_proc implementation. Handle "what" argument.
8208 (procfs_target): Install procfs_info_proc.
8209 (_initialize_procfs): No longer install "info proc" command.
8211 * linux-nat.c: (enum info_proc_what): Remove.
8212 (linux_nat_info_proc_cmd_1): Rename into ...
8213 (linux_nat_info_proc): ... this. Update argument types as appropriate
8214 for a to_info_proc implementation.
8215 (linux_nat_info_proc_cmd): Remove.
8216 (linux_nat_info_proc_cmd_mappings): Likewise.
8217 (linux_nat_info_proc_cmd_stat): Likewise.
8218 (linux_nat_info_proc_cmd_status): Likewise.
8219 (linux_nat_info_proc_cmd_cwd): Likewise.
8220 (linux_nat_info_proc_cmd_cmdline): Likewise.
8221 (linux_nat_info_proc_cmd_exe): Likewise.
8222 (linux_nat_info_proc_cmd_all): Likewise.
8223 (linux_target_install_ops): Install linux_nat_info_proc.
8224 (_initialize_linux_nat): No longer install "info proc" command
8227 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8229 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8230 * config.in, configure: Regenerate.
8232 * target.h (struct target_ops): Add to_fileio_readlink.
8233 (target_fileio_readlink): Add prototype.
8234 * target.c (target_fileio_readlink): New function.
8236 * inf-child.c: Conditionally include <sys/param.h>.
8237 (inf_child_fileio_readlink): New function.
8238 (inf_child_target): Install it.
8240 * remote.c (PACKET_vFile_readlink): New enum value.
8241 (remote_hostio_readlink): New function.
8242 (init_remote_ops): Install it.
8243 (_initialize_remote): Handle vFile:readlink packet type.
8245 2012-01-20 Pedro Alves <palves@redhat.com>
8246 Ulrich Weigand <ulrich.weigand@linaro.org>
8248 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8249 * config.in, configure: Regenerate.
8251 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8252 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8253 (target_fileio_open): Add prototype.
8254 (target_fileio_pwrite): Likewise.
8255 (target_fileio_pread): Likewise.
8256 (target_fileio_close): Likewise.
8257 (target_fileio_unlink): Likewise.
8258 (target_fileio_read_alloc): Likewise.
8259 (target_fileio_read_stralloc): Likewise.
8261 * target.c: Include "gdb/fileio.h".
8262 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8263 (default_fileio_target): New function.
8264 (target_fileio_open): Likewise.
8265 (target_fileio_pwrite): Likewise.
8266 (target_fileio_pread): Likewise.
8267 (target_fileio_close): Likewise.
8268 (target_fileio_unlink): Likewise.
8269 (target_fileio_close_cleanup): Likewise.
8270 (target_fileio_read_alloc_1): Likewise.
8271 (target_fileio_read_alloc): Likewise.
8272 (target_fileio_read_stralloc): Likewise.
8274 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8275 <fcntl.h>, and <unistd.h>.
8276 (inf_child_fileio_open_flags_to_host): New function.
8277 (inf_child_errno_to_fileio_error): Likewise.
8278 (inf_child_fileio_open): Likewise.
8279 (inf_child_fileio_pwrite): Likewise.
8280 (inf_child_fileio_pread): Likewise.
8281 (inf_child_fileio_close): Likewise.
8282 (inf_child_fileio_unlink): Likewise.
8283 (inf_child_target): Install to_fileio routines.
8285 * remote.c (init_remote_ops): Install to_fileio routines.
8287 2012-01-20 Pedro Alves <palves@redhat.com>
8288 Ulrich Weigand <ulrich.weigand@linaro.org>
8290 * remote.c (remote_multi_process_p): Only check for multi-process
8291 protocol feature, do not check for extended protocol.
8292 (remote_supports_multi_process): Check for extended protocol here.
8293 (set_general_process): Likewise.
8294 (extended_remote_kill): Likewise.
8295 (remote_pid_to_str): Likewise.
8296 (remote_query_supported): Always query multiprocess mode.
8298 2012-01-20 Pedro Alves <palves@redhat.com>
8299 Ulrich Weigand <ulrich.weigand@linaro.org>
8301 * inferior.h (struct inferior): Add fake_pid_p.
8302 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8303 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8304 magic_null_ptid since the remote side doesn't provide a real PID.
8306 2012-01-19 Tom Tromey <tromey@redhat.com>
8308 * NEWS: Combine the two Python sections.
8310 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8312 * target.h (target_close): Update comment on the target's unpush state.
8314 2012-01-19 Pedro Alves <palves@redhat.com>
8316 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8317 linux_nat_async directly instead of going through the target
8319 * target.c (unpush_target): Close target after unpushing it, not
8322 2012-01-19 Gary Benson <gbenson@redhat.com>
8324 * mdebugread.c (sort_blocks): Replace integer constants with ones
8325 derived from FIRST_LOCAL_BLOCK.
8327 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8328 Jan Kratochvil <jan.kratochvil@redhat.com>
8331 * symfile.c (find_separate_debug_file): New function.
8332 (terminate_after_last_dir_separator): Likewise.
8333 (find_separate_debug_file_by_debuglink): Also try realpath.
8334 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8335 * configure: Regenerate.
8336 * config.in: Regenerate.
8338 2012-01-18 Doug Evans <dje@google.com>
8340 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8341 (main.o): Remove rule.
8342 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8343 (--with-sysroot): Rewrite.
8344 * configure: Regenerate.
8345 * config.in: Regenerate.
8347 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8349 * parse.c (initialize_expout): New function.
8350 (reallocate_expout): Likewise.
8351 (parse_exp_in_context): Use `initialize_expout' and
8352 `reallocate_expout' when appropriate.
8354 2012-01-18 Pedro Alves <palves@redhat.com>
8356 * record.c (struct record_breakpoint, record_breakpoint_p)
8357 (record_breakpoints): New.
8358 (record_insert_breakpoint, record_remove_breakpoint): Manage
8359 record breakpoints list. Only remove breakpoints from the
8360 inferior if they had been inserted there in the first place.
8362 2012-01-17 Doug Evans <dje@google.com>
8364 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8365 if we know we don't have a file name to look for.
8367 2012-01-17 Pedro Alves <palves@redhat.com>
8369 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8370 the frame's stop reason is UNWIND_UNAVAILABLE.
8372 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8374 Fix compilation error.
8375 * m2-exp.y (yyerror): Use ANSI C prototype.
8377 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8379 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8380 (growbuf_by_size): Likewise.
8381 (yyerror): Likewise.
8382 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8383 (modblock): Remove variable (was #if 0'ed).
8384 (parse_number): Convert prototype from K&R to ANSI C.
8385 (yyerror): Likewise.
8386 * objc-exp.y (parse_number): Likewise.
8387 (yyerror): Likewise.
8388 (yylex): Remove #if 0'ed code.
8389 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8390 (yyerror): Likewise.
8392 2012-01-16 Tom Tromey <tromey@redhat.com>
8395 * symtab.h (compare_filenames_for_search): Declare.
8396 * symtab.c (compare_filenames_for_search): New function.
8397 (iterate_over_some_symtabs): Use it.
8398 * symfile.h (struct quick_symbol_functions)
8399 <map_symtabs_matching_filename>: Change spec.
8400 * psymtab.c (partial_map_symtabs_matching_filename): Use
8401 compare_filenames_for_search. Update for new spec.
8402 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8403 compare_filenames_for_search. Update for new spec.
8404 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8406 2012-01-16 Tom Tromey <tromey@redhat.com>
8409 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8410 (struct main_type) <flag_flag_enum>: New field.
8411 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8412 * NEWS: Add entries.
8413 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8415 * python/lib/gdb/printing.py (_EnumInstance): New class.
8416 (FlagEnumerationPrinter): Likewise.
8418 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8420 * breakpoint.c (create_sals_from_address_default): New function.
8421 (create_breakpoints_sal_default): Likewise.
8422 (decode_linespec_default): Likewise.
8423 (is_marker_spec): Removed.
8424 (strace_marker_p): New function.
8425 (init_breakpoint_sal): Using `strace_marker_p' instead of
8427 (create_breakpoint): Call method `create_sals_from_address' from
8428 breakpoint_ops, replacing code that created SALs conditionally
8429 on the type of the breakpoint. Call method `create_breakpoints_sal',
8430 replacing code that created breakpoints conditionally on the type
8432 (base_breakpoint_create_sals_from_address): New function.
8433 (base_breakpoint_create_breakpoints_sal): Likewise.
8434 (base_breakpoint_decode_linespec): Likewise.
8435 (base_breakpoint_ops): Add methods
8436 `base_breakpoint_create_sals_from_address',
8437 `base_breakpoint_create_breakpoints_sal' and
8438 `base_breakpoint_decode_linespec'.
8439 (bkpt_create_sals_from_address): New function.
8440 (bkpt_create_breakpoints_sal): Likewise.
8441 (bkpt_decode_linespec): Likewise.
8442 (tracepoint_create_sals_from_address): Likewise.
8443 (tracepoint_create_breakpoints_sal): Likewise.
8444 (tracepoint_decode_linespec): Likewise.
8445 (strace_marker_create_sals_from_address): Likewise.
8446 (strace_marker_create_breakpoints_sal): Likewise.
8447 (strace_marker_decode_linespec): Likewise.
8448 (strace_marker_breakpoint_ops): New variable.
8449 (addr_string_to_sals): Remove `marker_spec'. Call method
8450 `decode_linespec' from breakpoint_ops, replacing code that decoded
8451 an address string into a SAL. Use `strace_marker_p' instead of
8453 (strace_command): Decide whether we are dealing with a static
8454 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8455 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8456 * breakpoint.h (linespec_result, linespec_sals): New forward
8458 (breakpoint_ops) <create_sals_from_address>,
8459 <create_breakpoints_sal>, <decode_linespec>: New methods.
8461 2012-01-14 Doug Evans <dje@google.com>
8463 * NEWS: Update text for "maint set python print-stack".
8464 It is deprecated in gdb 7.4 and deleted in 7.5.
8466 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8468 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8471 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8473 * configure: Regenerate.
8474 * config.in: Regenerate.
8476 2012-01-12 Keith Seitz <keiths@redhat.com>
8479 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8480 (ANONYMOUS_UNION_NAME): Define.
8481 (is_path_expr_parent): New function.
8482 (get_path_expr_parent): New function.
8483 (is_anonymous_child): New function.
8484 (create_child_with_value): If the child is anonymous and without
8485 a name, assign an object name to it.
8486 (c_describe_child): Use get_path_expr_parent to determine
8487 the parent expression.
8488 If there field represents an anonymous struct or union and
8489 has no name, set an appropriate display name and expression.
8490 (cplus_describe_child): Likewise.
8492 2012-01-12 Pedro Alves <palves@redhat.com>
8494 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8495 available when %ebp is found to be zero (outermost).
8497 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8499 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8500 an internal gdb_static_assert.
8501 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8503 2012-01-11 Tom Tromey <tromey@redhat.com>
8506 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8507 catch" and "catch throw".
8509 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8511 * blockframe.c (block_innermost_frame): Start search from selected
8512 frame, if present, or otherwise the current frame.
8514 * c-exp.y (variable): Update innermost_block for
8515 'block COLONCOLON NAME' clause.
8516 * m2-exp.y (variable): Ditto.
8517 * objc-exp.y (variable): Ditto.
8519 2012-01-10 Tom Tromey <tromey@redhat.com>
8522 * python/python.c (finish_python_initialization): Set sys.argv.
8524 2012-01-10 Doug Evans <dje@google.com>
8526 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8527 "want_line_info". All callers updated.
8528 (dwarf_decode_lines_1): New function.
8529 (handle_DW_AT_stmt_list): Add function comment.
8530 New arg "want_line_info". All callers updated.
8531 (read_file_scope,read_type_unit_scope): Move comment from
8532 handle_DW_AT_stmt_list to here.
8534 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8536 Fix regression after libiberty/ update for GCC PR 6057 and others.
8537 * c-exp.y (operator) <OPERATOR DELETE>
8538 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8539 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8540 (make_builtin_type, make_name): New variable i, add gdb_assert.
8541 (operator) <OPERATOR NEW>: Update ARGS to 3.
8542 (operator) <OPERATOR DELETE>: Add trailing space.
8543 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8544 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8545 * cp-support.c (cp_canonicalize_string): Check NULL from
8546 cp_comp_to_string, call warning and return.
8548 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8550 Fix duplicate .o files after omitting libbfd.a.
8551 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8552 (SFILES): Add corelow.c.
8553 (COMMON_OBS): Add corelow.o.
8554 (ALLDEPFILES): Remove corelow.c.
8555 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8556 * config/alpha/alpha-osf3.mh: Likewise.
8557 * config/alpha/fbsd.mh: Likewise.
8558 * config/arm/nbsdaout.mh: Likewise.
8559 * config/arm/nbsdelf.mh: Likewise.
8560 * config/i386/i386gnu.mh: Likewise.
8561 * config/ia64/hpux.mh: Likewise.
8562 * config/ia64/linux.mh: Likewise.
8563 * config/m32r/linux.mh: Likewise.
8564 * config/m68k/linux.mh: Likewise.
8565 * config/mips/irix5.mh: Likewise.
8566 * config/mips/irix6.mh: Likewise.
8567 * config/pa/hpux.mh: Likewise.
8568 * config/pa/linux.mh: Likewise.
8569 * config/powerpc/aix.mh: Likewise.
8570 * config/sparc/linux.mh: Likewise.
8571 * config/sparc/linux64.mh: Likewise.
8572 * config/sparc/sol2.mh: Likewise.
8573 * config/vax/vax.mh: Likewise.
8574 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8575 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8576 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8577 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8578 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8579 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8580 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8581 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8582 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8583 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8584 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8585 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8586 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8587 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8588 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8589 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8590 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8591 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8592 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8593 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8594 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8595 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8596 corelow.o from gdb_target_obs.
8597 * corefile.c (core_target): Update the comment on NULL value.
8598 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8599 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8600 MATCHES. Drop YUMMY set on NULL.
8601 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8602 reclaim CORE_DATA if it is already NULL.
8604 2012-01-09 Doug Evans <dje@google.com>
8606 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8607 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8609 2012-01-09 Keith Seitz <keiths@redhat.com>
8611 * breakpoint.c (wrapper.h): Don't include.
8613 2012-01-09 Keith Seitz <keiths@redhat.com>
8615 * Makefile.in (SFILES): Remove wrapper.c.
8616 (HFILES_NO_SRCDIR): Remove wrapper.h.
8617 (COMMON_OBS): Remove wrapper.o.
8618 * cli/cli-interp.c: Don't inlude wrapper.h.
8619 * corelow.c: Likewise.
8620 (core_open): Replace gdb_target_find_new_threads with
8621 TRY_CATCH around target_find_new_threads.
8622 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8623 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8624 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8625 evaluate_expression.
8626 (varobj_set_value): Likewise for evaluate_expression and
8628 (install_new_variable): Likewise for value_fetch_lazy.
8629 (adjust_value_for_child_access): Likewise for value_ind.
8630 (c_describe_child): Likewise for value_subscript and
8632 (c_value_of_root): Likewise for evaluate_expression.
8633 * wrapper.c: Remove.
8634 * wrapper.h: Remove.
8636 2012-01-09 Doug Evans <dje@google.com>
8638 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8639 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8640 "abfd" args with "section". All callers updated.
8641 Error checking code moved ...
8642 (error_check_comp_unit_head): ... here. New function.
8643 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8644 Delete arg "abfd". New arg "type_offset". All callers updated.
8645 (create_debug_types_hash_table): Simplify by using
8646 read_and_check_type_unit_head.
8648 * parser-defs.h (namecopy): Delete.
8649 * parse.c (namecopy, namecopy_size): Move into copy_name.
8651 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8653 Partially fix duplicate .o files after omitting libbfd.a.
8654 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8655 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8656 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8657 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8658 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8659 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8660 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8662 2012-01-09 Pedro Alves <palves@redhat.com>
8664 * MAINTAINERS: Update my email address.
8666 2012-01-08 Doug Evans <dje@google.com>
8668 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8669 n_type_units. Rename type_comp_units to all_type_units.
8671 (add_signatured_type_cu_to_table): Renamed from
8672 add_signatured_type_cu_to_list. All callers updated.
8674 * gdbtypes.h (struct cplus_struct_type): Delete member
8675 nfn_fields_total. All uses removed.
8677 2012-01-06 Doug Evans <dje@google.com>
8679 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8681 (dwarf2_find_comp_unit): Delete.
8682 (process_psymtab_comp_unit): Make result "void".
8683 Delete args buffer, info_ptr, buffer_size, and replace with
8684 "section". All callers updated.
8685 (dwarf2_build_psymtabs_hard): Simplify.
8687 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8688 Thiago Jung Bauermann <bauerman@br.ibm.com>
8690 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8691 before `struct gdb_exception'.
8692 * breakpoint.c (update_global_location_list_nothrow)
8693 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8694 * cp-abi.c (value_rtti_type): Likewise.
8695 * cp-support.c (cp_validate_operator): Likewise.
8696 * infrun.c (insert_exception_resume_breakpoint)
8697 (check_exception_resume, keep_going): Likewise.
8698 * mi-interp.c (mi_breakpoint_created)
8699 (mi_breakpoint_modified): Likewise.
8700 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8701 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8702 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8704 2012-01-05 Doug Evans <dje@google.com>
8706 * dwarf2read.c (statement_prologue): Delete, unused.
8708 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8709 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8711 * dwarf2read.c (comp_unit_header): Delete, unused.
8713 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8715 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8716 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8718 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8720 * infrun.c (normal_stop): Don't skip calling the normal_stop
8721 observers if the thread was doing a multi-step, but stopped for
8722 some reason other than stepping.
8724 2012-01-05 Pedro Alves <alves.ped@gmail.com>
8726 * cli/cli-decode.h: Add comments.
8727 (CMD_LIST_AMBIGUOUS): Moved to command.h
8728 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8729 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8730 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8731 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8732 (add_com, add_com_alias, add_info, add_info_alias)
8733 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8735 * command.h: Add and adjust comments.
8736 (CMD_LIST_AMBIGUOUS): Moved here.
8737 (help_cmd, help_cmd_list): Delete declarations.
8739 2012-01-04 Doug Evans <dje@google.com>
8741 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8742 All callers updated.
8743 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8744 Replace all arguments with "per_cu". All callers updated.
8746 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8748 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8749 New arg "per_cu". All callers updated.
8751 Delete #if 0'd out code.
8752 * language.c (binop_result_type): Delete.
8753 (simple_type, ordered_type, same_type, integral_type): Delete.
8754 (numeric_type, character_type, string_type, boolean_type): Delete.
8755 (float_type, structured_type): Delete.
8756 * language.h: Update.
8758 2012-01-04 Tom Tromey <tromey@redhat.com>
8760 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8762 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8764 * corefile.c (close_exec_file): Delete.
8765 (reopen_exec_file): Remove commented out code that seems related
8766 to close_exec_file, which is being deleted here.
8767 * inferior.h (close_exec_file): Delete.
8768 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8770 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8772 * ada-lang.c: #include "cli/cli-utils.h".
8773 (get_selections): Use skip_spaces.
8774 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8775 (catch_ada_exception_command_split): Use skip_spaces.
8776 (ada_decode_assert_location): Likewise.
8778 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8780 * linespec.c (decode_line_internal): Check for C++ or Java
8781 compound constructs only if the current language is C, C++
8784 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8787 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8788 Joel Brobecker <brobecker@adacore.com>
8789 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8790 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8792 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8793 fall through into AT_ENTRY_POINT.
8794 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8796 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8797 PPC_INSN_SIZE skip to 3 times.
8799 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8801 * linespec.c (add_minsym): Preserve function descriptors.
8803 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8805 * breakpoint.c (all_locations_are_pending): Consider locations
8806 in program spaces executing during startup pending as well.
8808 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8810 Copyright year update in most files of the GDB Project.
8812 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8814 * copyright.sh: Delete.
8815 * copyright.py: Rewrite.
8817 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8819 * gnulib/extra/update-copyright: New file, imported from gnulib.
8821 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8823 * README (Copyright and License Notices): New section.
8825 2012-01-03 Tom Tromey <tromey@redhat.com>
8828 * python/py-value.c (valpy_dereference, valpy_get_address
8829 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8830 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8831 (valpy_absolute, valpy_richcompare): Free intermediate values.
8833 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8835 * ada-lang.c: Reformat the copyright notice.
8837 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8839 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8840 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8841 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8842 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8843 Revert this part of:
8844 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8845 Build gdb directly from *.o files not using libgdb.a.
8846 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8848 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8850 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8851 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8852 Reformat the copyright header.
8854 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8856 Revert this part of:
8857 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8858 Remove the gdbtui binary.
8859 * gdb.c (main): Remove args.interpreter_p initialization.
8860 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8861 * main.h (struct captured_main_args): Remove interpreter_p.
8863 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8865 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8867 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8869 * top.c (print_gdb_version): Update copyright year.
8871 2012-01-02 Yao Qi <yao@codesourcery.com>
8873 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8875 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8876 Joel Brobecker <brobecker@adacore.com>
8878 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8879 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8881 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8882 fall through into AT_ENTRY_POINT.
8883 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8885 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8886 PPC_INSN_SIZE skip to 3 times.
8888 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8890 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
8892 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
8894 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8896 Build gdb directly from *.o files not using libgdb.a.
8897 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
8898 (COMMON_OBS): Remove solib-target.o.
8899 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
8900 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8901 (LIBGDB_OBS, libgdb.a): Move it above.
8902 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
8903 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
8904 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
8905 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
8906 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
8907 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
8908 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
8909 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
8910 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
8911 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
8912 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
8913 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
8914 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
8915 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
8916 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8917 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
8918 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
8919 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8920 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
8921 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
8922 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
8923 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
8924 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
8925 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
8926 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
8927 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
8928 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
8930 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8932 Remove the gdbtui binary.
8933 * .gitignore (/gdbtui): Remove.
8934 * Makefile.in (TUI): Remove.
8935 (SUBDIR_TUI_OBS): Remove tui-main.o.
8936 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
8937 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
8938 (tui-main.o): Remove.
8939 (all_object_files): Remove tui-main.o.
8940 * NEWS: New note for the gdbtui removal.
8941 * configure: Rebuilt.
8942 * configure.ac: No longer add all-tui, clean-tui, install-tui and
8943 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
8944 CONFIG_UNINSTALL respectively.
8945 * gdb.c (main): Remove args.interpreter_p initialization.
8946 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8947 * main.h (struct captured_main_args): Remove interpreter_p.
8948 * tui/tui-main.c: Remove.
8950 2012-01-01 Doug Evans <dje@google.com>
8952 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
8953 (dwarf2_physname, read_import_statement): Ditto.
8954 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
8955 (process_structure_scope read_subroutine_type): Ditto.
8956 (read_typedef, load_partial_dies, read_partial_die): Ditto.
8957 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
8958 (dwarf2_fetch_die_location_block): Ditto.
8959 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
8961 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
8962 All callers updated.
8963 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
8964 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
8965 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
8967 * dwarf2read.c (load_cu): Move assert to more useful location.
8969 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
8970 All callers updated.
8972 * dwarf2read.c (dwarf2_per_objfile): Add comment.
8973 (dwarf2_elf_names): Minor reformat.
8974 (dwarf2_per_cu_data): Tweak comment.
8975 (dwarf2_read_section): Fix comment.
8976 (create_all_comp_units): Fix comment.
8977 (load_full_comp_unit): Fix comment.
8978 (process_full_comp_unit): Fix comment.
8979 (read_signatured_type): Fix comment.
8981 For older changes see ChangeLog-2011.
8987 version-control: never