1 2012-07-24 Tom Tromey <tromey@redhat.com>
3 * symfile.c (symbol_file_add): Don't open BFD twice.
5 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
7 * breakpoint.c (create_breakpoint): Store condition for pending
10 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
12 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
13 (m68k_return_value): Handle complex types like structures.
14 (m68k_svr4_return_value): Likewise.
16 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
18 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
19 parameters to bfd_get_section_name.
21 2012-07-24 Yao Qi <yao@codesourcery.com>
23 * cli/cli-setshow.c: Handle case 'var_uinteger'
24 and 'var_zuninteger' together. Handle case 'var_integer' and
25 'var_zinteger' together.
27 2012-07-23 Keith Seitz <keiths@redhat.com>
29 * linespec.c (convert_linespec_to_sal): Don't add
30 any symbols to the result vector if symbol_to_sal
33 2012-07-23 Keith Seitz <keiths@redhat.com>
35 * linespec.c (decode_objc): Record the function name
38 2012-07-23 Tom Tromey <tromey@redhat.com>
40 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
42 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
43 (map_vmap): Acquire a reference to the BFD.
45 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
47 * p-valprint.c (pascal_object_print_value): Replace potentially
48 unsafe alloca with xmalloc/xfree.
49 * valops.c (search_struct_method): Likewise.
51 2012-07-23 Tom Tromey <tromey@redhat.com>
53 * solib-svr4.c (enable_break): Update.
54 * bfd-target.h (target_bfd_reopen): Update documentation.
56 2012-07-23 Tom Tromey <tromey@redhat.com>
58 * symfile.c (separate_debug_file_exists): Update.
59 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
60 (reread_symbols): Update.
61 * elfread.c (build_id_verify): Update.
62 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
63 bfd_open_maybe_remote.
65 2012-07-23 Tom Tromey <tromey@redhat.com>
67 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
69 2012-07-23 Tom Tromey <tromey@redhat.com>
71 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
73 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
75 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
76 * machoread.c (macho_add_oso_symfile): Make a cleanup for
78 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
79 * objfiles.c (allocate_objfile): Acquire a new reference.
80 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
81 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
82 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
84 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
86 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
87 make a cleanup for 'abfd'.
88 (symbol_file_add): Make a BFD cleanup.
90 2012-07-23 Tom Tromey <tromey@redhat.com>
92 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
93 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
94 * corelow.c (core_open): Use gdb_bfd_fopen.
95 * dsrec.c (load_srec): Use gdb_bfd_openr.
96 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
97 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
98 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
99 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
100 (gdb_bfd_fdopenr): New functions.
101 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
102 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
103 (gdb_bfd_fdopenr): Declare.
104 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
105 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
106 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
107 gdb_bfd_openr_next_archived_file.
108 (macho_check_dsym): Use gdb_bfd_openr.
109 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
110 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
111 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
112 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
114 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
115 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
116 gdb_bfd_openr_next_archived_file.
117 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
119 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
121 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
122 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
123 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
124 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
125 (symfile_bfd_open): Use gdb_bfd_fopen.
126 (generic_load): Use gdb_bfd_openr.
127 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
129 2012-07-23 Tom Tromey <tromey@redhat.com>
131 * bfd-target.c (target_bfd_reopen): Update.
132 * cli/cli-dump.c (bfd_openr_with_cleanup)
133 (bfd_openw_with_cleanup): Update.
134 * corelow.c (core_open): Update.
135 * dsrec.c (load_srec): Update.
136 * exec.c (exec_file_attach): Update.
137 * gcore.c (create_gcore_bfd): Update.
138 * gdb_bfd.c (gdb_bfd_ref): Return void.
139 (gdb_bfd_open): Update.
140 * gdb_bfd.h (gdb_bfd_ref): Return void.
142 * jit.c (jit_bfd_try_read_symtab): Update.
143 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
144 * machoread.c (macho_symfile_read_all_oso): Update.
145 (macho_check_dsym): Update.
146 * procfs.c (insert_dbx_link_bpt_in_file): Update.
147 * remote-m32r-sdi.c (m32r_load): Update.
148 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
149 * rs6000-nat.c (add_vmap): Update.
150 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
152 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
153 * solib-spu.c (spu_bfd_open): Update.
154 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
155 * spu-linux-nat.c (spu_bfd_open): Update.
156 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
157 (generic_load): Update.
158 * windows-nat.c (windows_make_so): Update.
160 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
162 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
164 2012-07-20 Jeff Kenton <jkenton@tilera.com>
166 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
167 SIGTRAMP_FRAME unwinding.
169 2012-07-20 Doug Evans <dje@google.com>
171 * NEWS: Document new options "set/show use-deprecated-index-sections",
172 and delete reference to --use-deprecated-index-sections.
173 * symfile.h (use_deprecated_index_sections): Delete.
174 * dwarf2read.c (use_deprecated_index_sections): Make static.
175 (read_index_from_section): Update wording of how to load
176 deprecated index sections.
177 (_initialize_dwarf2_read): New options
178 "set/show use-deprecated-index-sections".
179 * main.c (captured_main): Delete --use-deprecated-index-sections.
181 2012-07-20 Pedro Alves <palves@redhat.com>
186 * infrun.c (handle_inferior_event) <new thread>: Don't special
188 <TARGET_WAITKIND_SPURIOUS>: Ditto.
189 * linux-thread-db.c (thread_get_info_callback): Don't return early
190 if the thread is zombie.
191 (thread_from_lwp): Change return type to void. Rewrite stale
193 (attach_thread): Don't return early if the thread is zombie,
194 instead set its "dying" flag.
195 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
196 (find_new_threads_callback): Don't return early if the thread is
199 2012-07-20 Pedro Alves <palves@redhat.com>
201 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
202 * target.c (target_wait): Likewise.
203 (str_comma_list_concat_elem, do_option, target_options_to_string):
205 * target.h (target_options_to_string): Declare.
207 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
208 Tom Tromey <tromey@redhat.com>
210 * dwarf2read.c (dwarf_decode_macros)
211 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
212 DW_MACRO_GNU_transparent_include_alt>: New cases.
213 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
214 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
216 2012-07-20 Tom Tromey <tromey@redhat.com>
218 * dwarf2read.c (try_open_dwo_file): Don't call
219 gdb_bfd_stash_filename.
221 2012-07-20 Pedro Alves <palves@redhat.com>
223 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
224 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
225 (i386_process_record): Tweak description comments.
227 2012-07-20 Pedro Alves <palves@redhat.com>
229 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
230 (i386_process_record): Use record_read_memory.
231 * record.c (record_read_memory): New function.
232 (record_arch_list_add_mem, record_exec_insn): Use
234 * record.h (record_read_memory): Declare.
236 2012-07-20 Yao Qi <yao@codesourcery.com>
238 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
241 2012-07-19 Pedro Alves <palves@redhat.com>
243 * record.c (record_resume): Ask the target beneath to report all
246 2012-07-19 Doug Evans <dje@google.com>
248 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
249 there's no section at address zero.
250 (dwarf2_record_block_ranges): Ditto.
252 2012-07-19 Yao Qi <yao@codesourcery.com>
254 * command.h, remote.c: Fix a typo in comment.
256 2012-07-19 Tom Tromey <tromey@redhat.com>
259 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
260 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
261 OP_DECLTYPE>: New cases.
262 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
263 (type_exp): Add new productions.
264 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
266 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
268 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
269 OP_DECLTYPE>: New case.
270 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
272 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
273 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
275 2012-07-19 Tom Tromey <tromey@redhat.com>
277 * c-exp.y (enum token_flags): New.
278 (struct token) <cxx_only>: Remove.
280 (tokentab3, tokentab2, ident_tokens): Update.
281 (lex_one_token): Update. Handle FLAG_SHADOW.
283 2012-07-19 Tom Tromey <tromey@redhat.com>
285 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
286 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
287 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
288 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
289 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
290 type_exp production where appropriate.
291 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
292 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
293 <UNOP_MEMVAL_TYPE>: New case.
294 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
295 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
296 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
297 <UNOP_MEMVAL_TYPE>: New case.
298 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
299 UNOP_REINTERPRET_CAST>: Update.
300 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
301 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
302 UNOP_REINTERPRET_CAST>: Update.
303 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
304 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
305 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
308 2012-07-19 Yao Qi <yao@codesourcery.com>
309 Jan Kratochvil <jan.kratochvil@redhat.com>
311 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
312 and case 'var_optional_filename' together.
313 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
314 instead of add_setshow_optional_filename_cmd for setshow command
315 'args'. Set completer for 'set args'.
317 2012-07-18 Doug Evans <dje@google.com>
319 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
320 * common/gdb_vecs.c: New file, contents from utils.c.
321 * common/host-defs.h: New file, contents from defs.h.
322 * utils.h: New file, contents from defs.h.
323 * defs.h: Move all declarations of objects defined in utils.c
324 to utils.h (except QUIT() and related).
325 #include "utils.h", "host-defs.h".
326 * probe.h (probe_p): Move here from gdb_vecs.h.
327 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
328 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
329 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
330 * Makefile.in (SFILES): Add common/gdb_vecs.c.
331 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
332 (COMMON_OBS): Add gdb_vecs.o.
333 (gdb_vecs.o): New rule.
335 2012-07-18 Keith Seitz <keiths@redhat.com>
337 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
338 parameter. If non-zero, use SYMNAME as the canonical name
341 (convert_linespec_to_sals): Use add_sal_to_sals for
343 (decode_line_full): No need to "fill in missing canonical names"
344 anymore. Simply make cleanups for the allocated names.
346 2012-07-18 Keith Seitz <keiths@redhat.com>
348 * linespec.c (struct linespec): Constify expression,
349 source_filename, function_name, and label_name.
350 (symbol_not_found_error): Make all parameters const.
351 (linespec_parser_delete): No need to check for NULL
352 when using xfree. Cast const char * to char * for xfree.
354 2012-07-18 Keith Seitz <keiths@redhat.com>
356 * breakpoint.c (invalid_thread_id_error): New function.
357 (find_condition_and_thread): Use invalid_thread_id_error.
358 (watch_command_1): Likewise.
360 2012-07-18 Tom Tromey <tromey@redhat.com>
362 * cc-with-index.sh, cc-with-dwz.sh: Remove.
363 * contrib/cc-with-tweaks.sh: New file.
365 2012-07-18 Tom Tromey <tromey@redhat.com>
367 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
368 (locate_dwz_sections): Recognize .gdb_index.
369 (create_cus_from_index_list): New function.
370 (create_cus_from_index): Use it. Handle .dwz data.
371 (read_index_from_section): New function, extracted from
373 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
376 2012-07-18 Tom Tromey <tromey@redhat.com>
378 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
379 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
381 (struct dwz_file): New.
382 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
383 (locate_dwz_sections, dwarf2_get_dwz_file)
384 (get_abbrev_section_for_cu): New functions.
385 (error_check_comp_unit_head, read_and_check_comp_unit_head)
386 (read_and_check_type_unit_head): Add abbrev_section argument.
387 (create_debug_types_hash_table): Update.
388 (init_cutu_and_read_dies): Use proper abbrev section.
389 (init_cutu_and_read_dies_no_follow): Likewise.
390 (set_partial_user): Do nothing if PST==NULL.
391 (read_comp_units_from_section): New function.
392 (create_all_comp_units): Use it.
393 (scan_partial_symbols, partial_die_parent_scope): Update.
394 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
395 (process_imported_unit_die, read_partial_die): Handle .dwz files.
396 (find_partial_die): Add offset_in_dwz argument. Update.
397 (guess_partial_die_structure_name, fixup_partial_die): Update.
398 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
399 DW_FORM_GNU_strp_alt.
400 (read_indirect_string_from_dwz): New function.
401 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
402 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
403 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
404 (follow_die_offset): Add offset_in_dwz argument.
405 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
406 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
407 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
408 Handle new macro forms.
409 (dwarf_decode_macros): Update.
410 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
411 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
412 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
413 (create_debug_types_hash_table): Use correct abbrev section.
414 (get_debug_line_section): New function.
415 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
416 (process_full_comp_unit): Pass 'required' argument to
417 end_symtab_get_static_block.
418 * buildsym.h (end_symtab_get_static_block): Update.
419 * buildsym.c (end_symtab_get_static_block): Add 'required'
421 (end_symtab, end_expandable_symtab): Update.
423 2012-07-18 Tom Tromey <tromey@redhat.com>
425 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
427 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
428 (zlib_decompress_section): Remove.
429 (dwarf2_read_section): Use gdb_bfd_map_section.
430 (munmap_section_buffer): Remove.
431 (free_dwo_file, dwarf2_per_objfile_free): Don't use
432 munmap_section_buffer.
433 * gdb_bfd.c: Include zlib.h, sys/mman.h.
434 (struct gdb_bfd_section_data): New.
435 (free_one_bfd_section): New function.
436 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
437 (get_section_descriptor, zlib_decompress_section)
438 (gdb_bfd_map_section): New functions.
439 * gdb_bfd.h (gdb_bfd_map_section): Declare.
441 2012-07-18 Tom Tromey <tromey@redhat.com>
443 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
445 2012-07-18 Tom Tromey <tromey@redhat.com>
447 * gdb_bfd.c (struct gdb_bfd_data): New.
448 (gdb_bfd_cache): New global.
449 (struct gdb_bfd_cache_search): New.
450 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
451 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
452 * gdb_bfd.h (gdb_bfd_open): Declare.
454 2012-07-18 Tom Tromey <tromey@redhat.com>
456 * utils.c (make_cleanup_bfd_unref): Rename from
457 make_cleanup_bfd_close.
458 * defs.h (make_cleanup_bfd_unref): Rename from
459 make_cleanup_bfd_close.
460 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
461 (bfd_openw_with_cleanup): Update.
462 * corelow.c (core_open): Update.
463 * dsrec.c (load_srec): Update.
464 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
465 * remote-m32r-sdi.c (m32r_load): Update.
466 * remote-mips.c (mips_load_srec): Update.
467 (pmon_load_fast): Update.
468 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
470 (darwin_bfd_open): Update.
471 * solib.c (solib_bfd_fopen): Update.
472 * symfile-mem.c (symbol_file_add_from_memory): Update.
473 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
474 (symfile_bfd_open): Update.
475 (generic_load): Update.
477 2012-07-18 Tom Tromey <tromey@redhat.com>
479 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
480 (pmon_load_fast): Likewise.
481 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
482 (m32r_upload_command): Likewise.
483 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
484 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
485 Use make_cleanup_bfd_close.
487 2012-07-18 Tom Tromey <tromey@redhat.com>
489 * symfile.c (symfile_bfd_open): Don't copy name. Call
490 gdb_bfd_stash_filename.
491 (load_command): Open the new BFD before freeing the old.
492 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
493 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
494 Call gdb_bfd_stash_filename.
495 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
496 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
497 gdb_bfd_stash_filename.
498 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
500 * rs6000-nat.c (add_vmap): Don't copy filename. Call
501 gdb_bfd_stash_filename.
502 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
503 * machoread.c (macho_add_oso_symfile): Call
504 gdb_bfd_stash_filename.
505 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
506 gdb_bfd_stash_filename.
507 (macho_check_dsym): Don't copy filename. Call
508 gdb_bfd_stash_filename.
509 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
510 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
511 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
512 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
513 * exec.c (exec_close): Don't free the BFD's filename.
514 (exec_file_attach): Don't copy the filename. Call
515 gdb_bfd_stash_filename.
516 * corelow.c (core_close): Don't free the BFD's filename.
517 (core_open): Call gdb_bfd_stash_filename.
518 * corefile.c (reopen_exec_file): Remove #if 0 code.
519 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
521 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
523 2012-07-18 Tom Tromey <tromey@redhat.com>
525 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
527 (free_dwo_file): Use gdb_bfd_unref.
528 * cli/cli-dump.c: Include gdb_bfd.h.
529 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
530 (bfd_openr_with_cleanup): Likewise.
531 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
533 * utils.c: Include gdb_bfd.h.
534 (do_bfd_close_cleanup): Use gdb_bfd_unref.
535 * symfile.c: Include gdb_bfd.h.
536 (separate_debug_file_exists): Use gdb_bfd_unref.
537 (bfd_open_maybe_remote): Use gdb_bfd_ref.
538 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
539 (generic_load): Use gdb_bfd_ref.
540 (reread_symbols): Use gdb_bfd_unref.
541 * symfile-mem.c: Include gdb_bfd.h.
542 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
543 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
544 * solib.c: Include gdb_bfd.h.
545 (solib_bfd_fopen): Use gdb_bfd_ref.
546 (solib_bfd_open): Use gdb_bfd_unref.
547 (free_so_symbols): Use gdb_bfd_unref.
548 (reload_shared_libraries_1): Use gdb_bfd_unref.
549 * solib-spu.c: Include gdb_bfd.h.
550 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
551 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
553 * solib-frv.c: Include gdb_bfd.h.
554 (enable_break2): Use gdb_bfd_unref.
555 * solib-dsbt.c: Include gdb_bfd.h.
556 (enable_break2): Use gdb_bfd_unref.
557 * solib-darwin.c: Include gdb_bfd.h.
558 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
560 (darwin_bfd_open): Use gdb_bfd_unref.
561 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
562 * remote-mips.c: Include gdb_bfd.h.
563 (mips_load_srec): Use gdb_bfd_ref.
564 (pmon_load_fast): Use gdb_bfd_ref.
565 * remote-m32r-sdi.c: Include gdb_bfd.h.
566 (m32r_load): Use gdb_bfd_ref.
567 * record.c: Include gdb_bfd.h.
568 (record_save_cleanups): Use gdb_bfd_unref.
569 (cmd_record_save): Use gdb_bfd_unref.
570 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
572 * objfiles.h (gdb_bfd_close_or_warn): Remove.
573 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
574 * objfiles.c: Include gdb_bfd.h.
575 (free_objfile): Use gdb_bfd_unref.
576 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
578 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
579 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
580 (macho_check_dsym): Likewise.
581 * m32r-rom.c: Include gdb_bfd.h.
582 (m32r_load): Use gdb_bfd_ref.
583 (m32r_upload_command): Use gdb_bfd_ref.
584 * jit.c: Include gdb_bfd.h.
585 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
586 * gdb_bfd.h: New file.
587 * gdb_bfd.c: New file.
588 * gcore.c: Include gdb_bfd.h.
589 (create_gcore_bfd): Use gdb_bfd_ref.
590 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
591 (gcore_command): Use gdb_bfd_unref.
592 * exec.c: Include gdb_bfd.h.
593 (exec_close): Use gdb_bfd_unref.
594 (exec_close_1): Use gdb_bfd_unref.
595 (exec_file_attach): Use gdb_bfd_ref.
596 * elfread.c: Include gdb_bfd.h.
597 (build_id_verify): Use gdb_bfd_unref.
598 * dsrec.c: Include gdb_bfd.h.
599 (load_srec): Use gdb_bfd_ref.
600 * corelow.c: Include gdb_bfd.h.
601 (core_close): Use gdb_bfd_unref.
602 (core_open): Use gdb_bfd_ref.
603 * bfd-target.c: Include gdb_bfd.h.
604 (target_bfd_xclose): Use gdb_bfd_unref.
605 (target_bfd_reopen): Use gdb_bfd_ref.
606 * Makefile.in (SFILES): Add gdb_bfd.c.
607 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
608 (COMMON_OBS): Add gdb_bfd.o.
610 2012-07-18 Keith Seitz <keiths@redhat.com>
612 * breakpoint.c (find_condition_and_thread): Initialize
614 (create_breakpiont): find_condition_and_thread will now
615 initialize COND_STRING, THREAD, and REST (and TASK).
616 (addr_string_to_sals): Likewise.
618 2012-07-18 Pedro Alves <palves@redhat.com>
620 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
621 Pull the single step breakpoints out of the target.
623 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
625 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
626 * stap-probe.c (compile_probe_arg): Likewise.
628 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
630 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
631 (elf_compile_to_ax): Likewise.
632 * infrun.c (insert_exception_resume_from_probe): Likewise.
633 (check_exception_resume): Remove `objfile' variable.
634 * probe.c (find_probe_by_pc): Remove `objfile' argument.
635 (struct probe_and_objfile, probe_and_objfile_s): Delete.
636 (collect_probes): Adjust return value to `VEC (probe_p) *'.
637 (compare_entries): Rename to...
638 (compare_probes): ...this. Adjust function to work with
639 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
641 (gen_ui_out_table_header_info): Adjust `probes' argument to be
643 (print_ui_out_info): Adjust argument to be `struct probe *'.
644 (info_probes_for_ops): Adjust internal computations to use
646 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
647 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
648 gen_info_probes_table_values>: Remove `objfile' argument.
649 (struct probe) <objfile>: New field.
650 (find_probe_by_pc): Remove `objfile' argument.
651 * stap-probe.c (stap_parse_probe_arguments): Likewise.
652 (stap_get_probe_argument_count): Likewise.
653 (stap_get_arg): Likewise.
654 (stap_evaluate_probe_argument): Likewise.
655 (stap_compile_to_ax): Likewise.
656 (compile_probe_arg): Refactor not to pass `objfile' anymore.
657 (handle_stap_probe): Fill `objfile' field from `struct probe'.
658 (stap_gen_info_probes_table_header): Remove `objfile' argument.
659 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
660 sym_compile_to_ax>: Likewise.
662 2012-07-18 Terry Guo <terry.guo@arm.com>
665 * defs.h (GDB_MI_MSG_WIDTH): New.
666 * ser_base (ser_base_read_error_fd): New function.
667 (do_ser_base_readchar): Poll error file descriptor as well as
669 (generic_readchar): Refactor error handling.
671 2012-07-18 Joel Brobecker <brobecker@adacore.com>
673 * NEWS: Create a new section for the next release branch.
674 Rename the section of the current branch, now that it has
677 2012-07-18 Joel Brobecker <brobecker@adacore.com>
679 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
680 * version.in: Bump version to 7.5.50.20120718-cvs.
682 2012-07-17 Keith Seitz <keiths@redhat.com>
684 * linespec.c (linespec_parse_line_offset): Make parameter
687 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
690 * f-valprint.c (info_common_command): New variable frame_id.
691 Reinitialize FI form FRAME_ID after each print_variable_and_value.
692 * printcmd.c (print_variable_and_value): Extend function comment.
693 Add comment for invalidated FRAME.
694 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
695 FI form FRAME_ID after each print_frame_local_vars.
696 (struct print_variable_and_value_data): Change frame to frame_id.
697 (do_print_variable_and_value): New variable frame, initialize it from
698 p->frame_id. Add comment for invalidated FRAME.
699 (print_frame_local_vars, print_frame_arg_vars): New function comment.
700 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
701 for invalidated FRAME.
703 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
704 Pedro Alves <palves@redhat.com>
706 * linux-nat.c (linux_nat_detach): Don't unregister from the event
709 2012-07-16 Tom Tromey <tromey@redhat.com>
711 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
713 2012-07-15 Doug Evans <dje@google.com>
715 * dwarf2read.c (stmt_list_hash): New struct.
716 (type_unit_group): Embed "per_cu" member, remove pointer.
717 New union member "t", move member "tus" into it, all uses updated.
718 New member "hash", replaces member "line_offset, all uses updated.
719 (quick_file_names): Replace member "offset" with "hash", all uses
721 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
722 (hash_file_name_entry, eq_file_name_entry): Call them.
723 (hash_type_unit_group, eq_type_unit_group): Ditto.
724 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
725 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
726 (dw2_get_file_names): Update.
727 (create_type_unit_group): Replace "per_cu" arg with "cu".
728 All callers updated. Fix "quick" (.gdb_index) handling.
729 (get_type_unit_group): Replace "per_cu" arg with "cu".
731 (build_type_unit_groups): Don't reset tu_stats.
733 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
734 "tab_cur_size". Change member "tab" to be a htab_t.
735 (create_filename_seen_cache): Update.
736 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
737 (filename_seen): Update.
739 2012-07-13 Doug Evans <dje@google.com>
741 * symtab.c (filename_seen): Update comment.
743 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
744 Doug Evans <dje@google.com>
746 * buildsym.c (end_symtab_1): Split it to ...
747 (end_symtab_get_static_block): ... this ...
748 (end_symtab_from_static_block): ... and this function.
749 (end_symtab, end_expandable_symtab): Call them.
750 * buildsym.h (end_symtab_get_static_block)
751 (end_symtab_from_static_block): New declarations.
752 * dwarf2read.c (process_full_comp_unit): New variable static_block.
753 Set its valid CU ranges.
755 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
757 * dwarf2loc.c (disassemble_dwarf_expression): Handle
758 DW_OP_GNU_parameter_ref.
760 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
762 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
763 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
765 2012-07-13 Doug Evans <dje@google.com>
767 * symtab.c (output_source_filename): Delete unnecessary forward decl.
768 (filename_seen_cache): New struct.
769 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
770 (create_filename_seen_cache): New function.
771 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
772 (filename_seen): Delete arg "first". New arg "cache". All callers
774 (output_source_filename_data): New struct.
775 (output_source_filename): Delete arg "first". New arg "data".
777 (sources_info): Delete local "first". New locals "data", "cleanups".
778 Rewrite to use filename_seen_cache.
779 (add_partial_filename_data): Delete member "first". New member
780 "filename_seen_cache". All uses updated.
781 (make_source_files_completion_list): Rewrite to use
784 2012-07-12 Doug Evans <dje@google.com>
786 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
788 2012-07-10 Doug Evans <dje@google.com>
791 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
792 all_type_unit_groups, type_unit_groups, tu_stats.
793 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
794 All uses updated. Add type_unit_group to union "s".
795 (type_unit_group): New struct.
796 (IS_TYPE_UNIT_GROUP): New macro.
797 (abbrev_table): Delete unused member "section".
798 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
799 (dw2_get_cu): Assert not used with type_unit_group.
800 (dw2_get_primary_cu): New function.
801 (dw2_build_type_unit_groups_reader): New function.
802 (dw2_build_type_unit_groups): New function.
803 (dw2_get_file_names): Assert not called on type units.
804 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
805 Redo loop to iterate over type unit groups instead of type units.
806 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
807 (read_abbrev_offset): New function.
808 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
810 (create_partial_symtab): New function.
811 (process_psymtab_comp_unit_reader): Assert not used with type units.
812 Call create_partial_symtab.
813 (process_psymtab_type_unit): Delete.
814 (hash_type_unit_group, eq_type_unit_group): New functions.
815 (allocate_type_unit_groups_table): New function.
816 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
817 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
818 (create_type_unit_group, get_type_unit_group): New functions.
819 (tu_abbrev_offset): New struct.
820 (sort_tu_by_abbrev_offset): New function.
821 (add_type_unit_group_to_table): New function.
822 (build_type_unit_groups): New function.
823 (build_type_psymtabs_reader): New function.
824 (build_type_psymtab_dependencies): New function.
825 (build_type_psymtabs): Rewrite.
826 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
827 is seen in a type unit.
828 (process_queue): Move symtab expansion debugging printfs here.
829 Call process_full_type_unit for type units.
830 (compute_symtab_includes): Assert not called for type units.
831 (process_cu_includes): Don't call compute_symtab_includes for
833 (process_full_type_unit): New function.
834 (process_imported_unit_die): Flag an error if called for type units.
835 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
836 updated. Assert not called for type units.
837 (read_file_scope): Call dwarf2_start_symtab.
838 (setup_type_unit_groups): New function.
839 (read_type_unit_scope): Rewrite.
840 (abbrev_table_read_table): Initialize abbrev_table->offset.
841 (abbrev_table_free_cleanup): New function.
842 (dwarf2_start_symtab): New function.
843 (load_full_type_unit): Assert not called for type unit groups.
844 * buildsym.c (finish_block_internal): New arg "expandable".
846 (start_symtab): Move most contents to ...
847 (restart_symtab): ... here. New function.
848 (reset_symtab_globals): New function.
849 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
850 Call reset_symtab_globals.
851 (end_symtab, end_expandable_symtab): New functions.
852 (set_missing_symtab, augment_type_symtab): New functions.
853 * buildsym.h (end_expandable_symtab): Declare.
854 (augment_type_symtab, restart_symtab): Declare.
855 * psympriv.h (struct partial_symtab): New member "anonymous".
856 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
858 (read_psymtabs_with_filename): Ditto.
859 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
860 (expand_symtabs_matching_via_partial): Ditto.
861 (dump_psymtab): Update.
862 * dictionary.c (dict_add_pending): New function.
863 * dictionary.h (dict_add_pending): Declare.
865 2012-07-09 Doug Evans <dje@google.com>
867 * buildsym.c (start_subfile): Remove unnecessary check for
870 * psymtab.c (allocate_psymtab): Use host_address_to_string.
872 * dwarf2read.c (load_full_type_unit): Simplify.
874 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
875 to struct signatured_type **. All uses updated.
877 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
880 2012-07-09 Tom Tromey <tromey@redhat.com>
882 * c-exp.y (check_parameter_typelist): New function.
883 (parameter_typelist): Call it.
884 * eval.c (make_params): Handle '(void)' case.
885 * gdbtypes.c (lookup_function_type_with_arguments): Handle
888 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
890 * common/linux-ptrace.c: Include gdb_assert.h.
891 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
892 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
894 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
896 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
897 * linux-nat.c (linux_child_post_attach)
898 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
900 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
902 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
903 nptl <2.7 bug workaround for core files.
905 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
907 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
909 (save_siginfo): Remove.
910 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
912 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
913 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
914 * linux-nat.h (struct lwp_info): Remove field siginfo.
916 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
918 Code cleanup for the next patch.
919 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
920 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
922 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
923 (ia64_linux_stopped_data_address):
924 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
926 * linux-nat.h (linux_nat_get_siginfo): Likewise.
927 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
928 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
931 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
934 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
935 Increase buffer sizes to 2x we need, not just 2x of the previous size.
937 2012-07-06 Tom Tromey <tromey@redhat.com>
939 * c-exp.y (DOTDOTDOT): New token.
940 (func_mod, exp): Use parameter_typelist.
941 (parameter_typelist): New production.
942 (tokentab3): Add "..." token.
943 * eval.c (make_params): Handle varargs.
944 * gdbtypes.c (lookup_function_type_with_arguments): Handle
947 2012-07-06 Tom Tromey <tromey@redhat.com>
950 * c-exp.y (%union) <tvec>: Change type.
951 (func_mod): Now uses <tvec> type.
952 (exp): Update for tvec change.
953 (direct_abs_decl): Push the typelist.
954 (func_mod): Return a typelist.
955 (nonempty_typelist): Update for tvec change.
956 * gdbtypes.c (lookup_function_type_with_arguments): New function.
957 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
958 * parse.c (pop_type_list): New function.
959 (push_typelist): New function.
960 (follow_types): Handle tp_function_with_arguments.
961 * parser-defs.h (type_ptr): New typedef. Define a VEC.
962 (enum type_pieces) <tp_function_with_arguments>: New constant.
963 (union type_stack_elt) <typelist_val>: New field.
964 (push_typelist): Declare.
966 2012-07-06 Tom Tromey <tromey@redhat.com>
968 * c-exp.y (%union) <type_stack>: New field.
969 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
970 (ptr_operator_ts): New production.
972 * parse.c (type_stack_reserve): New function.
973 (check_type_stack_depth): Use it.
974 (pop_type_stack, append_type_stack, push_type_stack)
975 (get_type_stack, type_stack_cleanup): New functions.
976 (follow_types): Handle tp_type_stack.
977 (_initialize_parse): Simplify initialization.
978 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
980 (union type_stack_elt) <stack_val>: New field.
981 (get_type_stack, append_type_stack, push_type_stack)
982 (type_stack_cleanup): Declare.
984 2012-07-06 Tom Tromey <tromey@redhat.com>
986 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
988 (struct type_stack): New.
989 * parse.c (type_stack, type_stack_size, type_stack_depth):
991 (type_stack): New global.
992 (parse_exp_in_context, check_type_stack_depth)
993 (insert_into_type_stack, insert_type, push_type, push_type_int)
994 (insert_type_address_space, pop_type, pop_type_int)
995 (_initialize_parse): Update.
997 2012-07-06 Tom Tromey <tromey@redhat.com>
999 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
1002 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1004 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
1006 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1007 Jan Kratochvil <jan.kratochvil@redhat.com>
1009 * cp-valprint.c (cp_print_value): Replace potentially unsafe
1010 alloca with xmalloc/xfree.
1012 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1014 * MAINTAINERS (Write After Approval): Add myself to the list.
1016 2012-07-05 Doug Evans <dje@google.com>
1018 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
1020 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1022 * ax-gdb.c (cli/cli-utils.h): New include.
1023 (linespec.h): Ditto.
1024 (agent_eval_command_one): New function.
1025 (agent_command_1): Ditto.
1026 (agent_command): Call function agent_command_1.
1027 (agent_eval_command): Ditto.
1028 (_initialize_ax_gdb): Change help for "maint agent"
1029 and "maint agent-eval".
1031 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1033 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
1034 * cli/cli-utils.c (check_for_argument): New function.
1035 * cli/cli-utils.h (check_for_argument): Ditto.
1037 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1039 * NEWS: Mention x32 ABI support.
1041 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1043 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1044 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1046 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1047 and pc_regnum_from_eax to -1. Update SP regnum from
1048 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1051 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1054 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1056 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1057 * dwarf2expr.h: Include gdbtypes.h.
1058 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1059 these forward declarations.
1060 (cu_offset, sect_offset): Move these ...
1061 * gdbtypes.h: Remove include dwarf2expr.h.
1062 (cu_offset, sect_offset): ... here.
1064 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1066 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1067 (amd64_linux_sigtramp_code): This.
1068 (amd64_x32_linux_sigtramp_code): New.
1069 (LINUX_SIGTRAMP_LEN): Updated.
1070 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1072 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1074 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1076 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1078 * config.in: Regenerate.
1079 * configure: Regenerate.
1080 * configure.ac: Remove check for gnu/libc-version.h.
1081 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1083 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1084 variables libc_version, libc_major and libc_minor. Replace sscanf by
1085 inferior_has_bug. Extend the comment.
1087 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1089 * linux-thread-db.c (inferior_has_bug): New function.
1090 (thread_db_find_new_threads_silently): Return boolean as checked by
1091 inferior_has_bug, describe it in the comments.
1092 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1093 earlier. Abort the initialization if it returned non-zero.
1094 (thread_db_new_objfile): Exclude debug files.
1095 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1098 2012-07-02 Doug Evans <dje@google.com>
1100 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1101 related to queue management.
1103 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1104 instead of "debug dwarf2-die" in debugging printfs.
1105 (create_debug_info_hash_table_reader): Ditto.
1106 (create_debug_info_hash_table): Ditto.
1107 (init_dwo_file): Ditto.
1108 (init_cutu_and_read_dies): Add debugging printf.
1109 (init_cutu_and_read_dies_no_follow): Ditto.
1110 (process_psymtab_comp_unit_reader): Ditto.
1112 2012-07-02 Stan Shebs <stan@codesourcery.com>
1114 Add target-side support for dynamic printf.
1115 * NEWS: Mention the additional style.
1116 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1117 (struct bp_location): New field cmd_bytecode.
1118 * breakpoint.c: Include format.h.
1119 (disconnected_dprintf): New global.
1120 (parse_cmd_to_aexpr): New function.
1121 (build_target_command_list): New function.
1122 (insert_bp_location): Call it.
1123 (remove_breakpoints_pid): Skip dprintf breakpoints.
1124 (print_one_breakpoint_location): Ditto.
1125 (dprintf_style_agent): New global.
1126 (dprintf_style_enums): Add dprintf_style_agent.
1127 (update_dprintf_command_list): Add agent case.
1128 (agent_printf_command): New function.
1129 (_initialize_breakpoint): Add new commands.
1130 * common/ax.def (printf): New bytecode.
1131 * ax.h (ax_string): Declare.
1132 * ax-gdb.h (gen_printf): Declare.
1133 * ax-gdb.c: Include cli-utils.h, format.h.
1134 (gen_printf): New function.
1135 (maint_agent_print_command): New function.
1136 (_initialize_ax_gdb): Add maint agent-printf command.
1137 * ax-general.c (ax_string): New function.
1138 (ax_print): Add printf disassembly.
1139 * Makefile.in (SFILES): Add format.c
1140 (COMMON_OBS): Add format.o.
1141 * common/format.h: New file.
1142 * common/format.c: New file.
1143 * printcmd.c: Include format.h.
1144 (ui_printf): Call parse_format_string.
1145 * remote.c (remote_state): New field breakpoint_commands.
1146 (PACKET_BreakpointCommands): New enum.
1147 (remote_breakpoint_commands_feature): New function.
1148 (remote_protocol_features): Add new BreakpointCommands entry.
1149 (remote_can_run_breakpoint_commands): New function.
1150 (remote_add_target_side_commands): New function.
1151 (remote_insert_breakpoint): Call it.
1152 (remote_insert_hw_breakpoint): Ditto.
1153 (_initialize_remote): Add new packet configuration for
1154 target-side breakpoint commands.
1155 * target.h (struct target_ops): New field
1156 to_can_run_breakpoint_commands.
1157 (target_can_run_breakpoint_commands): New macro.
1158 * target.c (update_current_target): Handle
1159 to_can_run_breakpoint_commands.
1161 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1163 Execute -ix and -iex only after system and user gdbinit files.
1164 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1165 processing down after gdbinit files.
1167 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1169 Add fnmatch-gnu module.
1170 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1171 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1172 * gnulib/aclocal.m4: Regenerate.
1173 * gnulib/config.in: Regenerate.
1174 * gnulib/configure: Regenerate.
1175 * gnulib/import/dummy.c: Remove.
1176 * gnulib/import/Makefile.am: Regenerate.
1177 * gnulib/import/Makefile.in: Likewise.
1178 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1179 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1180 * gnulib/import/alloca.c: New file.
1181 * gnulib/import/alloca.in.h: Likewise.
1182 * gnulib/import/config.charset: Likewise.
1183 * gnulib/import/fnmatch.c: Likewise.
1184 * gnulib/import/fnmatch.in.h: Likewise.
1185 * gnulib/import/fnmatch_loop.c: Likewise.
1186 * gnulib/import/localcharset.c: Likewise.
1187 * gnulib/import/localcharset.h: Likewise.
1188 * gnulib/import/m4/alloca.m4: Likewise.
1189 * gnulib/import/m4/codeset.m4: Likewise.
1190 * gnulib/import/m4/configmake.m4: Likewise.
1191 * gnulib/import/m4/fcntl-o.m4: Likewise.
1192 * gnulib/import/m4/fnmatch.m4: Likewise.
1193 * gnulib/import/m4/glibc21.m4: Likewise.
1194 * gnulib/import/m4/localcharset.m4: Likewise.
1195 * gnulib/import/m4/locale-fr.m4: Likewise.
1196 * gnulib/import/m4/locale-ja.m4: Likewise.
1197 * gnulib/import/m4/locale-zh.m4: Likewise.
1198 * gnulib/import/m4/mbrtowc.m4: Likewise.
1199 * gnulib/import/m4/mbsinit.m4: Likewise.
1200 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1201 * gnulib/import/m4/mbstate_t.m4: Likewise.
1202 * gnulib/import/m4/stdbool.m4: Likewise.
1203 * gnulib/import/m4/wchar_h.m4: Likewise.
1204 * gnulib/import/m4/wctype_h.m4: Likewise.
1205 * gnulib/import/m4/wint_t.m4: Likewise.
1206 * gnulib/import/mbrtowc.c: Likewise.
1207 * gnulib/import/mbsinit.c: Likewise.
1208 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1209 * gnulib/import/mbsrtowcs-state.c: Likewise.
1210 * gnulib/import/mbsrtowcs.c: Likewise.
1211 * gnulib/import/ref-add.sin: Likewise.
1212 * gnulib/import/ref-del.sin: Likewise.
1213 * gnulib/import/stdbool.in.h: Likewise.
1214 * gnulib/import/streq.h: Likewise.
1215 * gnulib/import/strnlen1.c: Likewise.
1216 * gnulib/import/strnlen1.h: Likewise.
1217 * gnulib/import/verify.h: Likewise.
1218 * gnulib/import/wchar.in.h: Likewise.
1219 * gnulib/import/wctype.in.h: Likewise.
1221 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1223 Support shell wildcards for 'set auto-load safe-path'.
1224 * auto-load.c: Include fnmatch.h.
1225 (filename_is_in_dir): Rename to ...
1226 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1227 it. Update function comment. Rename dir_len to pattern_len. New
1228 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1229 messages. Use gdb_filename_fnmatch.
1230 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1232 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1233 * defs.h (gdb_filename_fnmatch): New declaration.
1234 * utils.c: Include fnmatch.h.
1235 (gdb_filename_fnmatch): New function.
1237 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1239 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1240 `-probe' and `-probe-stap' options.
1242 2012-07-01 Yao Qi <yao@codesourcery.com>
1244 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1245 always_inserted_off, and always_inserted_enums.
1246 Change always_inserted_mode's type to 'enum auto_boolean'.
1247 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1249 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1250 of add_setshow_enum_cmd.
1251 * infrun.c: Remove can_use_displaced_stepping_auto,
1252 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1253 can_use_displaced_stepping_enum.
1254 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1255 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1256 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1257 add_setshow_enum_cmd.
1259 2012-06-30 Doug Evans <dje@google.com>
1261 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1262 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1263 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1265 2012-06-29 Doug Evans <dje@google.com>
1267 * linespec.c: #include "stack.h".
1268 (decode_line_with_current_source): Moved here from symtab.c and
1269 renamed from decode_line_spec. All callers updated.
1270 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1271 renamed from decode_line_spec_1. All callers updated.
1272 * linespec.h (decode_line_with_current_source): Move declaration here
1273 from symtab.h and renamed from decode_line_spec.
1274 (decode_line_with_last_displayed): Move declaration here from symtab.h
1275 and renamed from decode_line_spec_1.
1276 * macrocmd.c: #include "linespec.h".
1277 * symtab.c: Remove #include "linespec.h".
1279 2012-06-28 Doug Evans <dje@google.com>
1281 * dwarf2read.c (get_cu_length): New function.
1282 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1283 (create_debug_types_hash_table): Ditto.
1284 (init_cutu_and_read_dies): Ditto.
1285 (init_cutu_and_read_dies_no_follow): Ditto.
1287 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1289 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1290 (struct abbrev_table): Define.
1291 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1293 (init_cutu_and_read_dies): Update.
1294 (abbrev_table_alloc_abbrev): New function. Replaces
1295 dwarf_alloc_abbrev. All callers updated.
1296 (abbrev_table_add_abbrev): New function.
1297 (abbrev_table_lookup_abbrev): New function. Replaces
1298 dwarf2_lookup_abbrev. All callers updated.
1299 (abbrev_table_read_table): New function. Contents moved here from
1300 dwarf2_read_abbrevs.
1301 (dwarf2_read_abbrevs): Call it.
1302 (abbrev_table_free): New function.
1303 (dwarf2_free_abbrev_table): Call it.
1305 2012-06-28 Stan Shebs <stan@codesourcery.com>
1307 * osdata.c (info_osdata_command): Filter out "Title" columns
1309 * common/linux-osdata.c (struct osdata_type): Add title field.
1310 (osdata_table): Add titles to each entry.
1311 (linux_command_xfer_osdata): Add a column for title data.
1313 2012-06-28 Stan Shebs <stan@codesourcery.com>
1315 Make logging work for MI.
1317 * interps.h (interp_set_logging_ftype): New typedef.
1318 (struct interp_procs): New field set_logging_proc.
1319 (current_interp_set_logging): Declare.
1320 * interps.c (current_interp_set_logging): New function.
1321 * cli/cli-logging.c: Include interps.h.
1322 (set_logging_redirect): Call current_interp_set_logging.
1323 (pop_output_files): Ditto.
1324 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1325 * mi/mi-console.h (mi_console_set_raw): Declare.
1326 * mi/mi-console.c (mi_console_set_raw): New function.
1327 * mi/mi-interp.c (saved_raw_stdout): New global.
1328 (mi_set_logging): New function.
1329 (_initialize_mi_interp): Add it to interp procs.
1331 2012-06-28 Doug Evans <dje@google.com>
1333 * symtab.c (lookup_symbol_aux_objfile): Use
1334 ALL_OBJFILE_PRIMARY_SYMTABS.
1336 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1338 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1340 * common/buffer.c: Include inttypes.h and stdint.h.
1341 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1343 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1344 Pedro Alves <palves@redhat.com>
1346 * gdbthread.h (ALL_THREADS): New macro.
1347 (thread_list): Declare.
1348 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1349 going, but instead fall through to the stepping handling.
1350 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1351 the passed in signal. Adjust debug output.
1352 (resume_callback): Rename to ...
1353 (linux_nat_resume_callback): ... this. Pass the thread's last
1354 stop signal, if in "pass" state.
1355 (linux_nat_resume): Adjust to rename.
1356 (stop_wait_callback): New assertion. Don't respawn signals;
1357 instead let the LWP remain with SIGNALLED set.
1358 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1359 * remote.c (append_pending_thread_resumptions): New.
1360 (remote_vcont_resume): Call it.
1361 * target.h (target_resume): Extend comment.
1363 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1365 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1367 2012-06-27 Doug Evans <dje@google.com>
1369 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1370 Delete have_addr_base, unused. All uses updated.
1371 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1372 (dwarf2_get_pc_bounds): Add ranges_base.
1373 (dwarf2_record_block_ranges): Ditto.
1375 2012-06-27 Tom Tromey <tromey@redhat.com>
1378 * varobj.c (varobj_create): Update.
1379 (varobj_set_value): Update.
1380 * tracepoint.c (validate_actionline): Update.
1381 (encode_actions_1): Update.
1382 * parse.c (parse_exp_1): Add 'pc' argument.
1383 (parse_exp_in_context): Add 'pc' argument. Change how
1384 expression_context_pc is set.
1385 (parse_expression): Update.
1386 (parse_field_expression): Update.
1387 * expression.h (parse_exp_1): Update.
1388 * eval.c (parse_to_comma_and_eval): Update.
1389 * breakpoint.c (set_breakpoint_condition): Update.
1390 (update_watchpoint): Update.
1391 (init_breakpoint_sal): Update
1392 (find_condition_and_thread): Update.
1393 (watch_command_1): Update.
1394 (update_breakpoint_locations): Update.
1395 * ada-lang.c (ada_read_renaming_var_value): Update.
1396 (create_excep_cond_exprs): Update.
1398 2012-06-27 Doug Evans <dje@google.com>
1400 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1403 2012-06-26 Doug Evans <dje@google.com>
1405 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1407 (error_check_comp_unit_head): New arg abbrev_section. All callers
1409 (read_and_check_comp_unit_head): Ditto.
1410 (read_and_check_type_unit_head): Ditto.
1412 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1414 New attribute 'last' for gdb.Symtab_and_line.
1415 * NEWS (Python Scripting): Add entry about the new attribute.
1416 * python/py-symtab.c (salpy_get_last): New function which
1417 implements the get method for the 'last' attribute of
1418 gdb.Symtab_and_line.
1419 (sal_object_getset): Add entry for the 'last' attribute.
1421 2012-06-26 Doug Evans <dje@google.com>
1423 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1424 (dwo_sections): Add macinfo, macro.
1425 (dwarf2_locate_dwo_sections): Watch for macro sections.
1426 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1427 All callers updated. Handle DWO files.
1429 * NEWS: Mention new options "set debug dwarf2-read" and
1430 "set debug symtab-create".
1431 * dwarf2read.c (dwarf2_read_debug): New static global.
1432 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1433 (process_queue): Ditto.
1434 (process_full_comp_unit): Ditto.
1435 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1436 * elfread.c (elf_symfile_read): Add debugging printf.
1437 * minsyms.c (install_minimal_symbols): Ditto.
1438 * psymtab.c (allocate_psymtab): Ditto.
1439 * symfile.c (allocate_symtab): Ditto.
1440 * symtab.c (symtab_create_debug): New global.
1441 (_initialize_symtab): Add new option "set debug symtab-create".
1442 * symtab.h (symtab_create_debug): Declare.
1444 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1445 (lookup_dwo_type_unit): Ditto.
1447 2012-06-26 Roland McGrath <roland@hack.frob.com>
1448 H.J. Lu <hongjiu.lu@intel.com>
1450 * amd64-linux-nat.c: Include <sys/user.h>.
1451 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1452 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1453 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1455 * configure.ac: Check if the fs_base and gs_base members of
1456 `struct user_regs_struct' exist.
1457 * config.in: Regenerated.
1458 * configure: Likewise.
1460 2012-06-25 Michael Eager <eager@eagercon.com>
1463 * python/python.c (gdbpy_write): Check for interrupted output.
1465 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1467 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1468 register as a stack alignment in ARM mode.
1470 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1472 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1473 * gnulib/config.in: Regenerate.
1474 * gnulib/configure: Likewise.
1475 * gnulib/import/m4/extensions.m4: Update it.
1476 * gnulib/import/m4/gnulib-common.m4: Likewise.
1477 * gnulib/import/m4/memmem.m4: Likewise.
1478 * gnulib/import/m4/mmap-anon.m4: Likewise.
1479 * gnulib/import/m4/multiarch.m4: Likewise.
1480 * gnulib/import/stdint.in.h: Likewise.
1482 2012-06-24 Yao Qi <yao@codesourcery.com>
1484 * corefile.c (write_memory_with_notification): New.
1485 * gdbcore.h: Declare write_memory_with_notification.
1486 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1487 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1488 * valops.c (value_assign): Likewise.
1489 * python/py-inferior.c (infpy_write_memory): Call
1490 'write_memory_with_notification'.
1492 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1494 * cc-with-index.sh: Use also -ex "set auto-load no".
1496 2012-06-23 Doug Evans <dje@google.com>
1499 * NEWS: Document additions to .gdb_index.
1500 * dwarf2read.c: #include "gdb/gdb-index.h".
1501 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1502 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1503 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1504 (dwarf2_read_index): Recognize version 7.
1505 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1506 block_kind, domain): All callers updated.
1507 (dw2_find_symbol_file): Handle new index CU values.
1508 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1509 (add_index_entry): New args is_static, kind. All callers updated.
1510 (offset_type_compare, uniquify_cu_indices): New functions
1511 (symbol_kind): New function.
1512 (write_psymtabs_to_index): Remove duplicate CU values.
1513 (write_psymtabs_to_index): Write .gdb_index version 7.
1515 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1517 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1518 * configure: Regenerate.
1520 2012-06-20 Yao Qi <yao@codesourcery.com>
1522 * python/py-inferior.c: Update comments of infpy_read_memory
1523 and infpy_write_memory.
1525 2012-06-19 Tom Tromey <tromey@redhat.com>
1528 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1529 (push_type_address_space): Remove.
1530 * parse.c (insert_into_type_stack): New function.
1531 (insert_type): Likewise.
1532 (insert_type_address_space): Rename from push_type_address_space.
1533 Insert tp_space_identifier.
1534 * c-exp.y (ptr_operator): New production.
1535 (abs_decl): Use ptr_operator.
1536 (space_identifier): Call insert_type_address_space.
1537 (ptype): Don't use const_or_volatile_or_space_identifier.
1538 (const_or_volatile_noopt): Call insert_type.
1539 (conversion_type_id, conversion_declarator): New productions.
1540 (operator): Use conversion_type_id.
1542 2012-06-18 Doug Evans <dje@google.com>
1544 * symtab.h (minimal_symbol): New member created_by_gdb.
1545 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1547 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1548 (search_symbols): Call it instead of lookup_symbol.
1549 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1551 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1552 Adjust address for DW_OP_GNU_addr_index.
1553 * dwarf2expr.h (dwarf_expr_context): Update comment.
1554 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1555 all callers updated. Handle TLS vars described with
1556 DW_OP_GNU_const_index.
1557 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1558 and DW_OP_GNU_const_index.
1559 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1561 * block.c (find_block_in_blockvector): Make explicit the fact that we
1562 ignore GLOBAL_BLOCK.
1564 2012-06-18 Tom Tromey <tromey@redhat.com>
1566 * c-exp.y (operator): Remove trailing space after "delete" and
1569 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1570 Jan Kratochvil <jan.kratochvil@redhat.com>
1572 Switch i386 and derived targets to ON_STACK.
1573 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1574 (amd64_dicos_init_abi): Remove its installment.
1575 * dicos-tdep.c (dicos_init_abi): Remove the
1576 set_gdbarch_call_dummy_location call. Update the comment here.
1577 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1578 (i386_dicos_init_abi): Remove its installment.
1579 * i386-tdep.c (i386_push_dummy_code): New function.
1580 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1581 i386_push_dummy_code.
1583 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1585 Remove stale dummy frames.
1586 * breakpoint.c: Include dummy-frame.h.
1587 (longjmp_breakpoint_ops): New variable.
1588 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1589 bp_longjmp_call_dummy.
1590 (bpstat_what, bptype_string, print_one_breakpoint_location)
1591 (init_bp_location): Support bp_longjmp_call_dummy.
1592 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1593 (set_longjmp_breakpoint_for_call_dummy)
1594 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1596 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1597 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1598 FIXME comment and extend the other comment for bp_call_dummy.
1599 (set_longjmp_breakpoint_for_call_dummy)
1600 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1601 * dummy-frame.c: Include gdbthread.h.
1602 (pop_dummy_frame_bpt): New function.
1603 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1604 (dummy_frame_discard): New function.
1605 (cleanup_dummy_frames): Update the comment about longjmps.
1606 * dummy-frame.h (dummy_frame_discard): New declaration.
1607 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1608 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1609 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1610 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1611 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1612 keep_going if IS_LONGJMP and there is no other reason to stop.
1614 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1616 * remote-sim.c (sim_command_completer): Initialize
1619 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1621 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1622 * dwarf2loc.c (call_site_parameter_matches): Support
1623 CALL_SITE_PARAMETER_PARAM_OFFSET.
1624 (needs_dwarf_reg_entry_value): Push stub value.
1625 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1626 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1627 * gdbtypes.h (enum call_site_parameter_kind): New item
1628 CALL_SITE_PARAMETER_PARAM_OFFSET.
1629 (struct call_site.parameter.u): New field param_offset.
1631 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1633 Code cleanup: Generalize call_site.parameter key.
1634 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1635 variable dwarf_reg. New variable kind_u. Update parameters to
1636 push_dwarf_reg_entry_value.
1637 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1638 * dwarf2expr.h (enum call_site_parameter_kind)
1639 (union call_site_parameter_u): Forward declarations.
1640 (struct dwarf_expr_context_funcs): Update parameters and their
1641 description for push_dwarf_reg_entry_value.
1642 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1643 * dwarf2loc.c (call_site_parameter_matches): New function.
1644 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1645 description. Use call_site_parameter_matches.
1646 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1647 Update parameters and their description.
1648 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1649 New variable kind_u. Adjust the caller for updated parameters.
1650 (needs_dwarf_reg_entry_value): Update parameters.
1651 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1652 instead of attr. Update for the changed fields of struct
1653 call_site_parameter.
1654 * gdbtypes.h: Include dwarf2expr.h.
1655 (enum call_site_parameter_kind): New.
1656 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1657 fb_offset into new union u.
1659 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1661 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1662 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1665 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1667 * amd64-linux-nat.c (compat_x32_clock_t): New.
1668 (compat_x32_siginfo_t): Likewise.
1669 (compat_x32_siginfo_from_siginfo): Likewise.
1670 (siginfo_from_compat_x32_siginfo): Likewise.
1671 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1672 and siginfo_from_compat_x32_siginfo for x32.
1674 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
1676 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1678 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1680 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1681 instead of gdbarch_ptr_bit.
1682 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1683 (amd64_supply_native_gregset): Likewise.
1684 (amd64_collect_native_gregset): Likewise.
1685 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1686 (amd64_supply_xsave): Likewise.
1687 (amd64_collect_fxsave): Likewise.
1688 (amd64_collect_xsave): Likewise.
1690 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1692 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1693 (amd64_linux_read_description): Check DS segment register for
1696 2012-06-15 Tom Tromey <tromey@redhat.com>
1698 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1699 init_cutu_and_read_dies.
1701 2012-06-15 Iain Sandoe <iain@codesourcery.com>
1703 * MAINTAINERS (Write After Approval): Add myself to the list.
1705 2012-06-15 Tom Tromey <tromey@redhat.com>
1707 * valops.c (value_find_oload_method_list): Now static.
1708 * value.h (value_find_oload_method_list): Don't declare.
1710 2012-06-15 Tom Tromey <tromey@redhat.com>
1712 * valops.c (find_overload_match): Use value_ind.
1714 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1716 * infrun.c (handle_inferior_event): Correct indentation.
1718 2012-06-14 Doug Evans <dje@google.com>
1720 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1721 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1723 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1724 updated. Handle DEBUG_LOC_START_LENGTH.
1725 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1726 (loclist_describe_location): Ditto.
1728 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1731 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1732 after hiding inline functions.
1734 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1736 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1737 _initialize_inf_ttrace.
1739 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1741 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1742 _initialize_hppa_hpux_nat.
1744 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1746 * remote-sim.c (sim_command_completer): Change type of return
1747 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1749 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1750 Jan Kratochvil <jan.kratochvil@redhat.com>
1753 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1754 stack on a 16-byte boundary.
1756 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
1758 * jit.c (finalize_symtab): Set function's return type to 'void' by
1761 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1762 H.J. Lu <hongjiu.lu@intel.com>
1764 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1765 Move bits common to both the classic LP64 and the new x32 ILP32
1767 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1768 (amd64_x32_linux_init_abi): New function.
1769 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1772 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1773 * i386-tdep.c (i386_pseudo_register_name): Make public.
1774 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1775 * amd64-tdep.c (amd64_dword_names): Add "eip".
1776 (amd64_x32_pseudo_register_type): New function
1777 (amd64_x32_init_abi): New function.
1779 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1782 * inferior.h (struct inferior_suspend_state): Comment out.
1783 (struct inferior): Comment out the field suspend.
1784 * infrun.c (struct infcall_suspend_state): Comment out the field
1786 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1789 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1791 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1792 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1793 function comment. Return ERROR for unresolved cases. Implement
1794 returning proper NAME.
1795 (yylex): Accept also NAME from classify_inner_name.
1796 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1797 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1799 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1801 2012-06-13 Tom Tromey <tromey@redhat.com>
1803 * breakpoint.c (condition_completer): New function.
1804 (_initialize_breakpoint): Use it.
1805 * value.c (complete_internalvar): New function.
1806 * value.h (complete_internalvar): Declare.
1808 2012-06-13 Tom Tromey <tromey@redhat.com>
1810 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1811 * breakpoint.c (catch_syscall_completer): Return a VEC.
1812 * cli/cli-cmds.c (complete_command): Update.
1813 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1814 (complete_on_enum): Likewise.
1815 * command.h: Include gdb_vecs.h.
1816 (completer_ftype): Change return type.
1817 (complete_on_cmdlist, complete_on_enum): Likewise.
1818 * completer.c (noop_completer, filename_completer)
1819 (location_completer): Return a VEC.
1820 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1822 (expression_completer, complete_line_internal, complete_line)
1823 (command_completer): Return a VEC.
1824 (gdb_completion_word_break_characters, line_completion_function):
1826 * completer.h: Include gdb_vecs.h.
1827 (complete_line, noop_completer, filename_completer)
1828 (expression_completer, location_completer, command_completer):
1830 * f-lang.c (f_word_break_characters): Return a VEC.
1831 * interps.c (interpreter_completer): Return a VEC.
1832 * language.h (struct language_defn)
1833 <la_make_symbol_completion_list>: Return a VEC.
1834 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1835 * symtab.c (free_completion_list): Take a VEC.
1836 (return_val_size, return_val_index): Remove.
1837 (return_val): Now a VEC.
1838 (completion_list_add_name): Update.
1839 (default_make_symbol_completion_list_break_on)
1840 (default_make_symbol_completion_list, make_symbol_completion_list)
1841 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1843 (add_filename_to_list): Update.
1844 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1846 (maybe_add_partial_symtab_filename): Update.
1847 (make_source_files_completion_list): Return a VEC.
1848 * symtab.h (default_make_symbol_completion_list_break_on)
1849 (default_make_symbol_completion_list, make_symbol_completion_list)
1850 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1851 (make_source_files_completion_list): Update.
1853 2012-06-13 Tom Tromey <tromey@redhat.com>
1855 * breakpoint.c (add_catch_command): Use completer_ftype.
1856 * breakpoint.h: Include command.h.
1857 (add_catch_command): Use completer_ftype.
1858 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1859 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1860 Use completer_ftype.
1861 * command.h (completer_ftype): New typedef.
1862 (set_cmd_completer): Use it.
1863 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1866 2012-06-13 Pedro Alves <palves@redhat.com>
1868 Partial revert of previous change.
1870 * serial.c (scb_base): New global.
1871 (serial_for_fd): New.
1872 (serial_open, serial_fdopen_ops): Link new serial in open serials
1874 (do_serial_close): Unlink serial from the open serials chain.
1876 2012-06-12 Pedro Alves <palves@redhat.com>
1878 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
1880 (prepare_for_detach): No longer context switch here in non-stop
1882 (fetch_inferior_event): Ditto.
1883 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
1884 to the event thread before removing breakpoints. Switch to the
1885 event thread before inserting breakpoints and resuming.
1886 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
1887 event thread before resuming.
1888 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
1889 Switch to the event thread before removing breakpoints.
1891 2012-06-12 Eli Zaretskii <eliz@gnu.org>
1893 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
1894 special characters correctly for the Windows shells. See
1895 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
1897 [!__MINGW32__]: Remove extra double quote character from special
1900 2012-06-11 Stan Shebs <stan@codesourcery.com>
1902 * ui-out.h: Remove #if 0 declarations.
1903 * ui-out.c: Remove #if 0 functions.
1905 2012-06-11 Pedro Alves <palves@redhat.com>
1907 * ser-base.c (run_async_handler_and_reschedule): New.
1908 (fd_event, push_event): Use it.
1909 * serial.c (serial_open, serial_fdopen_ops): Set the initial
1910 reference count to 1.
1911 (do_serial_close): Set the bufp field to NULL. Use serial_unref
1913 (serial_is_open, serial_ref, serial_unref): New.
1914 * serial.h (serial_open): Adjust comment.
1915 (serial_is_open): Declare.
1916 (serial_close): Adjust comment.
1917 (serial_ref, serial_unref) Declare.
1918 (struct serial): New field 'refcnt'.
1920 2012-06-11 Pedro Alves <palves@redhat.com>
1922 Remove #if 0'd "connect" command, and unnecessary associated
1923 refcounting and serial reuse bits.
1925 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
1926 * serial.c (last_serial_opened): Delete.
1928 (serial_open): Adjust.
1929 (serial_for_fd): Delete.
1930 (serial_fdopen_ops, do_serial_close): Adjust.
1931 (serial_fdopen_ops): Adjust.
1933 2012-06-11 Pedro Alves <palves@redhat.com>
1935 * serial.c (do_serial_close): Remove early return when SCB is
1938 2012-06-11 Tom Tromey <tromey@redhat.com>
1940 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
1942 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1944 Fix regression by the "ambiguous linespec" series.
1945 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
1946 get_last_displayed_symtab and get_last_displayed_line and depending
1949 2012-06-11 Tom Tromey <tromey@redhat.com>
1951 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
1952 (dw2_find_symbol_file): Use it.
1954 2012-06-11 Michael Eager <eager@eagercon.com>
1956 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
1957 * mips-linux-tdep.h (mips_signals): New
1959 2012-06-11 Tom Tromey <tromey@redhat.com>
1961 * infrun.c (handle_inferior_event)
1962 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
1964 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
1965 exception logic in all cases. Update comments.
1966 (insert_longjmp_resume_breakpoint): Set the exception resume
1969 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
1971 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
1973 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
1975 * valarith.c (binop_types_user_defined_p): Fix a typo.
1977 2012-06-08 Yao Qi <yao@codesourcery.com>
1978 Chung-Lin Tang <cltang@codesourcery.com>
1980 * arch-utils.c (default_return_in_first_hidden_param_p): New.
1981 * arch-utils.h: Declare.
1982 * gdbarch.sh: Add return_in_first_hidden_param_p.
1983 * gdbarch.c, gdbarch.h: Regenerated.
1984 * infcall.c (call_function_by_hand): Call
1985 gdbarch_return_in_first_hidden_param_p instead of
1986 language_pass_by_reference.
1988 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
1989 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
1990 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
1991 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
1992 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
1993 `cplus_return_struct_by_reference'.
1994 (tic6x_return_value): Handle language cplusplus.
1995 (tic6x_return_in_first_hidden_param_p): New.
1996 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
1998 2012-06-07 Doug Evans <dje@google.com>
2000 * dwarf2read.c (dwarf2_cu): Add comment.
2002 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2004 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
2006 (mips_eabi_push_dummy_call): Likewise.
2007 (mips_n32n64_push_dummy_call): Likewise.
2008 (mips_o32_push_dummy_call): Likewise.
2009 (mips_o64_push_dummy_call): Likewise.
2011 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2013 * mips-tdep.c (mips_convert_register_p): Correct coding style.
2015 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2017 * mips-tdep.c (mips_pseudo_register_type): Use
2018 mips_float_register_p.
2020 2012-06-06 Pedro Alves <palves@redhat.com>
2022 * infrun.c (handle_inferior_event): Remove calls to
2023 reinit_frame_cache that follow a context_switch call.
2025 2012-06-06 Pedro Alves <palves@redhat.com>
2027 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
2028 context_switch and remove stale comment.
2030 2012-06-06 Pedro Alves <palves@redhat.com>
2032 * infrun.c (struct execution_control_state): Remove
2033 `new_thread_event' field.
2034 (handle_inferior_event): Simplify new threads handling; don't
2035 resume the inferior if we find a new thread.
2037 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
2039 * NEWS: Document the deprecation of SH's 'regs' command.
2040 * inferior.h (all_registers_info): Add function declaration.
2041 * sh-tdep.c (sh_show_regs): Remove variable.
2042 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2043 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2044 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2045 (sh_show_regs_command): Remove functions.
2046 (sh_gdbarch_init): Don't set sh_show_regs.
2047 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2048 'info all-registers'.
2049 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2050 (sh64_show_regs): Remove functions.
2051 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2053 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2055 * configure.ac: Move development=true below AC_INIT.
2056 * configure: Regenerate.
2058 2012-06-05 Stan Shebs <stan@codesourcery.com>
2060 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2063 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2065 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2066 argument as ssize_t.
2067 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2068 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2069 * target.c (target_read_stack, target_write_memory)
2070 (target_write_raw_memory): Likewise.
2071 * target.h (target_read_stack, target_write_memory)
2072 (target_write_raw_memory): Likewise.
2074 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2076 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2077 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2078 * target.c (target_read_memory): Change LEN to ssize_t.
2079 * target.h (target_read_memory): Change LEN to ssize_t.
2081 2012-06-05 Pedro Alves <palves@redhat.com>
2085 * breakpoint.c (until_break_command): Only fetch the selected
2086 frame after decode_line_1.
2088 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2090 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2091 event breakpoint at _start, __start or main if a program
2092 interpreter is not found.
2094 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2096 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2098 * windows-tdep.c: #include "objfiles.h".
2099 (windows_iterate_over_objfiles_in_search_order): New function.
2100 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2101 iterate_over_objfiles_in_search_order gdbarch method to
2102 windows_iterate_over_objfiles_in_search_order.
2103 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2105 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2107 * gdbarch.sh: Add generation of
2108 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2109 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2110 (iterate_over_objfiles_in_search_order): New gdbarch method.
2111 * gdbarch.h, gdbarch.c: Regenerate.
2112 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2114 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2116 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2117 out of lookup_symbol_aux_symtabs.
2118 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2119 call to lookup_symbol_aux_objfile.
2120 (struct global_sym_lookup_data): New type.
2121 (lookup_symbol_global_iterator_cb): New function.
2122 (lookup_symbol_global): Search for symbol using
2123 gdbarch_iterate_over_objfiles_in_search_order and
2124 lookup_symbol_global_iterator_cb.
2125 * findvar.c (struct minsym_lookup_data): New type.
2126 (minsym_lookup_iterator_cb): New function.
2127 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2128 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2129 and minsym_lookup_iterator_cb.
2131 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2133 Revert the following patch:
2134 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2135 try locating the symbol in the symbol's own objfile first, before
2136 extending the search to all objfiles.
2137 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2138 out of lookup_symbol_aux_symtabs.
2139 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2140 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2141 Do not search EXCLUDE_OBJFILE.
2142 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2143 (lookup_symbol_global): Search for matches in the block's objfile
2144 first, before searching all other objfiles.
2146 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2148 * breakpoint.c (find_condition_and_thread): Stop parsing
2149 as soon as the first invalid keyword is found.
2151 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2153 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2155 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2157 * config/djgpp/djcheck.sh: Add copyright header.
2159 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2161 * copyright.py (update_files, main): Fix path to update-copyright
2164 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2166 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2167 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2168 for which a reminder to update by hand is printed.
2170 2012-06-04 Doug Evans <dje@google.com>
2172 * buildsym.c (make_blockvector): Add comment.
2174 2012-06-04 Pedro Alves <palves@redhat.com>
2176 * arch-utils.c (default_gdb_signal_from_target): Delete.
2177 * arch-utils.h (default_gdb_signal_from_target): Delete.
2178 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2179 gdbarch_gdb_signal_from_target_p.
2180 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2182 * gdbarch.h: Regenerate.
2183 * gdbarch.c: Regenerate.
2185 2012-06-04 Pedro Alves <palves@redhat.com>
2187 * gdbarch.sh (gdb_signal_from_target): Mention that the
2188 implementation of the method must be host independent.
2189 * gdbarch.h: Regenerate.
2191 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2193 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2195 (target_read_memory_bfd): New function.
2196 (symbol_file_add_from_memory): Use it.
2198 2012-06-03 Doug Evans <dje@google.com>
2200 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2202 (basic_lookup_transparent_type): Ditto.
2204 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2205 (ALL_PRIMARY_SYMTABS): Use it.
2206 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2207 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2208 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2209 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2210 (basic_lookup_transparent_type): Ditto.
2212 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2214 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2215 it to optimize resolution of demangled name.
2217 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2219 * configure.ac (development): Define new variable.
2220 Call AC_CHECK_LIB for mcheck if $development.
2221 (ERROR_ON_WARNING): Enable it by default only if $development.
2222 * config.in: Regenerate.
2223 * configure: Regenerate.
2225 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2227 * target.c (target_read_memory): Make LEN argument as size_t.
2228 * target.h (target_read_memory): Likewise.
2230 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2232 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2234 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2236 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2237 BookE interface for PowerPC server processors if not available
2238 in the Linux Kernel.
2240 2012-05-31 Keith Seitz <keiths@redhat.com>
2242 * linespec.c (decode_objc): Add cleanup to free
2244 (find_linespec_symbols): Add cleanup to free CLASSES.
2245 * symfile.c (find_separate_debug_file_by_debuglink): Add
2246 cleanup to free DEBUGLINK.
2247 * ui-out.c (clear_header_list): No need to check if
2248 HEADER_NEXT.COLHDR is NULL.
2249 Free HEADER_NEXT.COL_NAME.
2251 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2253 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2256 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2258 * configure.host (gdb_host_cpu): Handle tilegx*.
2259 (gdb_host): Handle tilegx-*-linux*.
2260 * tilegx-linux-nat.c: New file.
2261 * config/tilegx/linux.mh: New file.
2263 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2265 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2266 tilegx-linux-tdep.o.
2267 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2268 tilegx-linux-tdep.c.
2269 * configure.tgt: Handle tilegx-*-linux*.
2270 * tilegx-tdep.h: New file.
2271 * tilegx-tdep.c: New file.
2272 * tilegx-linux-tdep.c: New file.
2273 * regformats/reg-tilegx.dat: New file.
2275 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2277 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2278 accounting of hw watchpoints on ppc.
2280 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2282 * source.c (openp): Expand tilde in path entries.
2284 2012-05-29 Doug Evans <dje@google.com>
2286 * buildsym.c (block_compar): Fix comment.
2287 (end_symtab): Fix and clarify some comments.
2289 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2290 cleanup_undefined_types.
2291 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2292 All callers updated.
2294 2012-05-29 Tom Tromey <tromey@redhat.com>
2296 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2298 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2299 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2301 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2304 2012-05-29 Tristan Gingold <gingold@adacore.com>
2306 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2307 (struct darwin_info): ... New struct.
2308 (solib_darwin_pspace_data): New variable.
2309 (darwin_pspace_data_cleanup): New function.
2310 (get_darwin_info): Likewise.
2311 (darwin_dyld_version_ok, darwin_load_image_infos)
2312 (darwin_solib_get_all_image_info_addr_at_init)
2313 (darwin_solib_read_all_image_info_addr): Add info argument.
2315 (darwin_current_sos): Use per pspace structure.
2316 (darwin_solib_create_inferior_hook): Likewise.
2317 (darwin_clear_solib): Likewise.
2318 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2320 2012-05-28 Pedro Alves <palves@redhat.com>
2322 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2323 block that uses them. Clear ecss before handling each event.
2325 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2327 * solib-svr4.c (svr4_current_sos): New comment on
2328 svr4_current_sos_via_xfer_libraries fall back.
2330 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2332 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2333 it as a fallback for TYPE_IS_OPAQUE.
2334 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2335 symbols for lookup_symbol.
2337 2012-05-24 John Steele Scott <toojays@toojays.net>
2339 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2340 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2341 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2342 (check_producer): ... this new function, which also checks for ICC
2343 and caches the result.
2344 (producer_is_icc): New function.
2345 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2348 2012-05-24 Pedro Alves <palves@redhat.com>
2352 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2353 (default_gdb_signal_to_target): ... this. Add comment.
2354 (default_gdb_signal_from_host): Rename to ...
2355 (default_gdb_signal_from_target): ... this. Add comment.
2356 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2357 (default_gdb_signal_to_target): ... this.
2358 (default_gdb_signal_from_host): Rename to ...
2359 (default_gdb_signal_from_target): ... this.
2360 * corelow.c (core_open): Adjust to naming change. Replace comment.
2361 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2362 (gdb_signal_from_target): ... this. Adjust to
2363 default_gdb_signal_from_host naming change. Extend comment.
2364 (gdb_signal_to_host): Rename to ...
2365 (gdb_signal_to_target): ... this. Adjust to
2366 default_gdb_signal_to_host naming change.
2367 * gdbarch.h, gdbarch.c: Renegerate.
2369 2012-05-24 Pedro Alves <palves@redhat.com>
2373 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2375 2012-05-24 Pedro Alves <palves@redhat.com>
2379 Replace target_signal with gdb_signal throughout.
2381 2012-05-24 Pedro Alves <palves@redhat.com>
2385 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2386 string, instead of reusing the va_list argument.
2388 2012-05-24 Tom Tromey <tromey@redhat.com>
2390 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2393 2012-05-23 Doug Evans <dje@google.com>
2395 * symtab.c (search_symbols): Formatting fixes.
2396 (print_symbol_info): Formatting fixes.
2398 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2399 int64_t change to leb128 API.
2400 (read_encoded_value, decode_frame_entry_1): Ditto.
2401 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2402 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2403 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2404 (execute_stack_op): Ditto.
2405 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2406 (safe_read_uleb128, safe_read_sleb128): Ditto.
2407 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2408 (dwarf2_compile_expr_to_ax): Ditto.
2409 (locexpr_describe_location_piece): Ditto.
2410 (disassemble_dwarf_expression): Ditto.
2411 (locexpr_describe_location_1): Ditto.
2413 2012-05-23 Stan Shebs <stan@codesourcery.com>
2414 Kwok Cheung Yeung <kcy@codesourcery.com>
2416 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2417 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2418 (mi-cmd-info.o): New rule.
2419 * osdata.h (info_osdata_command): New declaration.
2420 * osdata.c (info_osdata_command): Change to non-static.
2421 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2422 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2423 * mi/mi-cmd-info.c: New file.
2425 2012-05-23 Doug Evans <dje@google.com>
2427 * symtab.c (search_symbols): Pass NULL for file_matcher to
2428 expand_symtabs_matching if there are no files to match.
2430 * gdbtypes.c (lookup_typename): Simplify.
2432 2012-05-23 Pedro Alves <palves@redhat.com>
2434 * arch-utils.h (default_target_signal_to_host): Delete.
2435 * arch-utils.c (default_target_signal_to_host): Delete.
2436 * gdbarch.sh (target_signal_to_host): Remove.
2437 * gdbarch.h, gdbarch.c: Regenerate.
2439 2012-05-22 Doug Evans <dje@google.com>
2441 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2443 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2444 (execute_cfa_program): Update to match API of leb128 functions.
2445 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2447 (read_unsigned_leb128, read_signed_leb128): Delete.
2448 (read_initial_length): Change type of buf argument to
2450 (read_encoded_value): Update to match API of leb128 functions.
2451 (decode_frame_entry): Change result to "const gdb_byte *", and
2452 similarly for "start" parameter.
2453 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2454 (dwarf2_build_frame_info): Change local frame_ptr to
2456 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2457 read_uleb128, read_sleb128. All callers updated.
2458 (safe_skip_leb128): New function.
2459 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2460 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2461 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2462 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2463 read_uleb128, read_sleb128.
2464 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2465 (execute_stack_op): Update to match API of leb128 functions.
2466 * dwarf2expr.h: #include "leb128.h".
2467 (read_uleb128, read_sleb128): Delete.
2468 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2469 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2470 * dwarf2loc.c (debug_loc_kind): New enum.
2471 (decode_debug_loc_addresses): New function.
2472 (decode_debug_loc_dwo_addresses): New function.
2473 (dwarf2_find_location_expression): Rewrite.
2474 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2475 (locexpr_describe_location_piece): Ditto.
2476 (disassemble_dwarf_expression): Ditto.
2477 (locexpr_describe_location_1): Ditto.
2478 (loclist_describe_location): Rewrite.
2479 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2480 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2481 (dwarf2_section_buffer_overflow_complaint): Renamed from
2482 dwarf2_macros_too_long_complaint. All callers updated.
2483 (skip_leb128): Delete.
2484 (init_cu_die_reader): Initialize reader->buffer_end.
2485 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2486 (skip_form_bytes): New arg buffer_end. All callers updated.
2487 Replace call to skip_leb128 with gdb_skip_leb128.
2488 (skip_unknown_opcode): New arg mac_end. All callers updated.
2489 (fill_in_loclist_baton): Initialize baton->from_dwo.
2491 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2493 * mips-linux-nat.c (mips_linux_read_description): Use a more
2494 verbose error message.
2496 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2498 * NEWS: Add MIPS/Linux DSP support.
2499 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2500 (SIGCONTEXT_DSPCTL): New macro.
2501 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2502 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2503 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2504 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2505 (N64_SIGCONTEXT_HI3): Likewise.
2506 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2507 (N64_SIGCONTEXT_LO3): Likewise.
2508 (N64_SIGCONTEXT_DSPCTL): Likewise.
2509 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2510 (mips_linux_o32_sigframe_init): Handle DSP registers.
2511 (mips_linux_n32n64_sigframe_init): Likewise.
2513 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2515 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2518 2012-05-22 Pedro Alves <palves@redhat.com>
2520 * target.h (store_waitstatus): Move declaration ...
2521 * inf-child.h (store_waitstatus): ... here.
2522 * target.c: Move inclusion of gdb_wait.h, and ...
2523 (store_waitstatus): ... this ...
2524 * inf-child.c: ... here.
2525 * linux-nat.c: Include inf-child.h.
2526 * rs6000-nat.c: Include inf-child.h.
2527 * spu-linux-nat.c: Include inf-child.h.
2529 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2531 * tracepoint.c (start_tracing): Add missing i18n markup.
2532 (stop_tracing, set_trace_user): Ditto.
2533 (set_trace_notes, set_trace_stop_notes): Ditto.
2535 2012-05-21 Tom Tromey <tromey@redhat.com>
2538 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2540 * value.h (value_cast_pointers): Update.
2541 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2542 (value_cast): Update.
2543 (update_search_result): New function.
2544 (do_search_struct_field): New, from search_struct_field. Check
2545 for ambiguous results.
2546 (search_struct_field): Rewrite.
2547 * infcall.c (value_arg_coerce): Update.
2548 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2549 value_cast_pointers.
2550 * ada-lang.c (ada_convert_actual): Update.
2552 2012-05-21 Tom Tromey <tromey@redhat.com>
2554 * macroexp.c (macro_stringify): Terminate the string.
2556 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2558 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2560 * auto-load.c (auto_load_expand_dir_vars): New function.
2561 (auto_load_safe_path_vec_update): Use it, remove the
2562 substitute_path_component call thanks to it.
2563 (auto_load_objfile_script): Remove the debug_file_directory processing.
2564 Use auto_load_expand_dir_vars, remove the substitute_path_component
2566 * configure: Regenerate.
2567 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2568 path. Escape $ also for $debugdir.
2569 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2570 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2572 2012-05-20 Doug Evans <dje@google.com>
2574 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2575 before use. Check for symtab->includes == NULL before scanning it.
2577 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2579 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2581 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2583 * NEWS: Add microMIPS support and "set mips compression",
2584 "show mips compression" commands.
2585 * mips-tdep.h (mips_isa): New enum.
2586 (gdbarch_tdep): Add mips_isa.
2587 (mips_pc_is_mips16): Update prototype.
2588 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2589 * mips-tdep.c (mips_compression_mips16): New variable.
2590 (mips_compression_micromips): Likewise.
2591 (mips_compression_strings): Likewise.
2592 (mips_compression_string): Likewise.
2593 (is_mips16_isa, is_micromips_isa): New functions.
2594 (is_mips16_addr): Rename to...
2595 (is_compact_addr): ... this.
2596 (unmake_mips16_addr): Likewise to...
2597 (unmake_compact_addr): ... this.
2598 (make_mips16_addr): Likewise to...
2599 (make_compact_addr): ... this.
2600 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2602 (mips_elf_make_msymbol_special): Handle microMIPS code.
2603 (msymbol_is_special): Rename to...
2604 (msymbol_is_mips16): ... this.
2605 (mips_make_symbol_special, mips_pc_is_mips16): Update
2607 (msymbol_is_mips, msymbol_is_micromips): New functions.
2608 (mips16_to_32_reg): Rename to...
2609 (mips_reg3_to_reg): ... this.
2610 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2611 (mips_pc_isa): Likewise.
2612 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2614 (mips_fetch_instruction): Pass return status instead of printing
2615 an error message if requested. Handle microMIPS code. Bail out
2617 (micromips_op): New macro.
2618 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2619 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2620 (b6s4_op, b7s3_reg): Likewise.
2621 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2622 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2623 (mips_insn_size): New function.
2624 (mips32_next_pc): Update mips_fetch_instruction call.
2625 (micromips_relative_offset7): New function.
2626 (micromips_relative_offset10): Likewise.
2627 (micromips_relative_offset16): Likewise.
2628 (micromips_pc_insn_size): Likewise.
2629 (micromips_bc1_pc): Likewise.
2630 (micromips_next_pc): Likewise.
2631 (unpack_mips16): Update mips_fetch_instruction call.
2632 (extended_mips16_next_pc): Update according to change to
2634 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2636 (mips16_scan_prologue): Update mips_fetch_instruction call.
2637 Update according to change to mips16_to_32_reg.
2638 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2639 (mips_insn16_frame_base_sniffer): Likewise.
2640 (micromips_decode_imm9): New function.
2641 (micromips_scan_prologue): Likewise.
2642 (mips_micro_frame_cache): Likewise.
2643 (mips_micro_frame_this_id): Likewise.
2644 (mips_micro_frame_prev_register): Likewise.
2645 (mips_micro_frame_sniffer): Likewise.
2646 (mips_micro_frame_unwind): New variable.
2647 (mips_micro_frame_base_address): New function.
2648 (mips_micro_frame_base): New variable.
2649 (mips_micro_frame_base_sniffer): New function.
2650 (mips32_scan_prologue): Update mips_fetch_instruction call.
2651 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2652 rather than for MIPS16.
2653 (mips_insn32_frame_base_sniffer): Likewise.
2654 (mips_addr_bits_remove): Handle microMIPS code.
2655 (deal_with_atomic_sequence): Rename to...
2656 (mips_deal_with_atomic_sequence): ... this. Update the type
2657 of the variable used to hold an instruction. Remove the ISA bit
2658 check. Update mips_fetch_instruction call.
2659 (micromips_deal_with_atomic_sequence): New function.
2660 (deal_with_atomic_sequence): Likewise.
2661 (mips_about_to_return): Handle microMIPS code. Update
2662 mips_fetch_instruction call.
2663 (heuristic_proc_start): Check for the standard MIPS ISA rather
2664 than for MIPS16. Update mips_pc_is_mips16 and
2665 mips_fetch_instruction calls. Handle microMIPS code.
2666 (mips_push_dummy_code): Handle microMIPS code.
2667 (mips_eabi_push_dummy_call): Likewise.
2668 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2669 (mips_o64_push_dummy_call): Handle microMIPS code.
2670 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2671 (is_delayed): Remove function.
2672 (mips_single_step_through_delay): Replace the call to is_delayed
2673 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2674 Handle microMIPS code.
2675 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2677 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2679 (micromips_in_function_epilogue_p): New function.
2680 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2682 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2684 (gdb_print_insn_mips): Likewise.
2685 (mips_breakpoint_from_pc): Likewise.
2686 (mips_remote_breakpoint_from_pc): New function.
2687 (mips32_instruction_has_delay_slot): Simplify making use of the
2688 updated mips_fetch_instruction interface.
2689 (micromips_instruction_has_delay_slot): New function.
2690 (mips16_instruction_has_delay_slot): Simplify making use of the
2691 updated mips_fetch_instruction interface.
2692 (mips_adjust_breakpoint_address): Check for the standard MIPS
2693 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2694 calls. Handle microMIPS code.
2695 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2696 (mips_skip_trampoline_code): Handle microMIPS code.
2697 (global_mips_compression): New function.
2698 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2699 file flags. Register the microMIPS remote breakpoint handler
2700 and heuristic frame unwinder.
2701 (show_mips_compression): New function.
2702 (_initialize_mips_tdep): Add the "set mips compression" and
2703 "show mips compression" commands.
2705 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2710 * amd64-darwin-tdep.c:
2711 * arm-symbian-tdep.c:
2715 * bfin-linux-tdep.c:
2722 * dwarf2-frame-tailcall.c:
2751 * microblaze-tdep.c:
2752 * mips-linux-tdep.c:
2760 * python/py-finishbreakpoint.c:
2761 * python/py-inferior.c:
2762 * python/py-infthread.c:
2766 * remote-m32r-sdi.c:
2770 * rs6000-aix-tdep.c:
2796 * amd64-darwin-tdep.c:
2797 * arm-symbian-tdep.c:
2798 * arm-tdep.c: Delete unused variables.
2800 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2802 Rename $ddir to $datadir.
2803 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2804 * auto-load.c (auto_load_safe_path_vec_update)
2805 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2806 * configure: Regenerate.
2807 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2808 Likewise. Remove the 'use $ddir' help string.
2810 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2812 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2813 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2815 2012-05-18 Tom Tromey <tromey@redhat.com>
2818 * valprint.h (struct value_print_options) <symbol_print>: New
2820 * valprint.c (user_print_options): Add default for symbol_print.
2821 (show_symbol_print): New function.
2822 (generic_val_print): Respect symbol_print.
2823 (_initialize_valprint): Add "print symbol" setting.
2824 * f-valprint.c (f_val_print): Respect symbol_print.
2825 * c-valprint.c (c_val_print): Respect symbol_print.
2827 * printcmd.c (print_address_symbolic): Return int. Ignore some
2829 (print_address_demangle): Return int.
2830 * defs.h: (print_address_symbolic): Return int.
2831 * value.h (print_address_demangle): Return int.
2833 2012-05-18 Tom Tromey <tromey@redhat.com>
2835 * valprint.c (val_print_string): Don't print leading space.
2836 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2837 print space before string or vtbl.
2838 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2840 * jv-valprint.c (java_value_print): Print space before string.
2841 * go-valprint.c (print_go_string): Print space before string.
2842 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2843 space before string.
2844 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2845 space before string or vtbl.
2846 * auxv.c (fprint_target_auxv): Print space after address.
2848 2012-05-18 Tom Tromey <tromey@redhat.com>
2850 * printcmd.c (print_address_demangle): Remove special case for 0.
2852 2012-05-18 Tom Tromey <tromey@redhat.com>
2854 * printcmd.c (print_address_demangle): Add 'opts' argument.
2855 * p-valprint.c (pascal_val_print): Update.
2856 * jv-valprint.c (java_val_print): Update.
2858 * valprint.c (generic_val_print): Update.
2859 (print_function_pointer_address): Add 'options' argument. Remove
2860 'addressprint' argument. Update.
2861 * m2-valprint.c (print_unpacked_pointer): Update.
2862 * gnu-v3-abi.c (print_one_vtable): Update.
2863 (gnuv3_print_method_ptr): Update.
2864 * f-valprint.c (f_val_print): Update.
2865 * cp-valprint.c (cp_print_value_fields): Update.
2866 * valprint.h (print_function_pointer_address): Update.
2867 * c-valprint.c (c_val_print): Update.
2869 2012-05-18 Tom Tromey <tromey@redhat.com>
2871 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2872 directly corresponding to the found psymtab.
2873 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2874 (dw2_find_pc_sect_symtab): Use it.
2875 * block.h (blockvector_contains_pc): Declare.
2876 * block.c (find_block_in_blockvector): New function.
2877 (blockvector_for_pc_sect): Use it.
2878 (blockvector_contains_pc): New function.
2880 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2882 * mips-tdep.h (mips_write_pc): New prototype.
2883 * mips-tdep.c (mips_write_pc): Make external, add description.
2884 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
2887 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2889 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
2891 (mips_unwind_pc, mips_write_pc): Likewise.
2892 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
2895 2012-05-17 Joel Brobecker <brobecker@adacore.com>
2897 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
2898 proc_warn, proc_error, proc_get_status, proc_flags,
2899 proc_why, proc_what, proc_nsysarg, proc_sysargs,
2900 proc_set_run_on_last_close, proc_unset_run_on_last_close,
2901 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
2902 proc_stop_process, proc_wait_for_stop, proc_run_process,
2903 proc_set_traced_signals, proc_set_traced_faults,
2904 proc_set_traced_sysentry, proc_set_traced_sysexit,
2905 proc_set_held_signals, proc_get_held_signals,
2906 proc_get_traced_signals, proc_get_traced_faults,
2907 proc_get_traced_sysentry, proc_get_traced_sysexit,
2908 proc_clear_current_fault, proc_set_current_signal,
2909 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
2910 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
2911 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
2912 proc_get_current_thread, proc_get_current_thread,
2913 proc_get_current_thread, proc_update_threads,
2914 proc_update_threads, proc_update_threads, proc_update_threads,
2915 proc_iterate_over_threads, procfs_find_new_threads,
2916 procfs_pid_to_str): Make static. Remove advance declaration.
2917 (proc_cursig): Make static. Conditionalized defintion on
2918 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
2919 (proc_syscall, proc_set_kill_on_last_close,
2920 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
2921 proc_get_pending_signals, proc_get_signal_actions,
2922 proc_trace_signal, proc_ignore_signal): Delete.
2924 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2926 * coffread.c (cs_section_address): Passing proper argument for
2927 `bfd_get_section_vma'.
2928 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
2929 `bfd_get_section_flags'.
2930 * remote.c (remote_trace_set_readonly_regions): Likewise, for
2931 `bfd_get_section_vma'.
2933 2012-05-16 Tom Tromey <tromey@redhat.com>
2936 * macrotab.h: (macro_define_special): Declare.
2937 (enum macro_special_kind): New.
2938 (struct macro_definition) <argc, replacement>: Update comments.
2939 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
2940 (macro_define_object_internal): New function.
2941 (macro_define_object): Use it.
2942 (macro_define_special): New function.
2943 (fixup_definition): New function.
2944 (macro_lookup_definition, foreach_macro_in_scope)
2945 (foreach_macro): Use fixup_definition.
2946 * macroexp.h (macro_stringify): Declare.
2947 * macroexp.c (free_buffer_return_text): New function.
2948 (stringify): Constify "arg".
2949 (macro_stringify): New function.
2950 * dwarf2read.c (macro_start_file): Call macro_define_special.
2952 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
2953 Maciej W. Rozycki <macro@mips.com>
2955 * breakpoint.h (bp_location): Add related_address member.
2956 * inferior.h (get_return_value): Take a pointer to struct value
2957 instead of struct type for the function requested.
2958 * value.h (using_struct_return): Likewise.
2959 * gdbarch.sh (return_value): Take a pointer to struct value
2960 instead of struct type for the function requested.
2961 * breakpoint.c (set_breakpoint_location_function): Initialize
2962 related_address for bp_gnu_ifunc_resolver breakpoints.
2963 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
2964 requested function's address to gdbarch_return_value.
2965 * eval.c (evaluate_subexp_standard): Pass the requested
2966 function's address to using_struct_return.
2967 * infcall.c (call_function_by_hand): Pass the requested
2968 function's address to using_struct_return and
2969 gdbarch_return_value.
2970 * infcmd.c (get_return_value): Take a pointer to struct value
2971 instead of struct type for the function requested.
2972 (print_return_value): Update accordingly.
2973 (finish_command_continuation): Likewise.
2974 * stack.c (return_command): Pass the requested function's
2975 address to using_struct_return and gdbarch_return_value.
2976 * value.c (using_struct_return): Take a pointer to struct value
2977 instead of struct type for the function requested. Pass the
2978 requested function's address to gdbarch_return_value.
2979 * python/py-finishbreakpoint.c (finish_breakpoint_object):
2980 New function_value member, replacing function_type.
2981 (bpfinishpy_dealloc): Update accordingly.
2982 (bpfinishpy_pre_stop_hook): Likewise.
2983 (bpfinishpy_init): Likewise. Record the requested function's
2985 * mips-tdep.c (mips_fval_reg): New enum.
2986 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
2987 words put in GP registers.
2988 (mips_o64_push_dummy_call): Update a comment.
2989 (mips_o32_return_value): Take a pointer to struct value instead
2990 of struct type for the function requested and use it to check if
2991 using the MIPS16 calling convention. Return the designated
2992 general purpose registers for floating-point values returned in
2994 (mips_o64_return_value): Likewise.
2995 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
2996 (ppc_sysv_abi_broken_return_value): Likewise.
2997 (ppc64_sysv_abi_return_value): Likewise.
2998 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
2999 value instead of struct type for the function requested.
3000 * amd64-tdep.c (amd64_return_value): Likewise.
3001 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
3002 * arm-tdep.c (arm_return_value): Likewise.
3003 * avr-tdep.c (avr_return_value): Likewise.
3004 * bfin-tdep.c (bfin_return_value): Likewise.
3005 * cris-tdep.c (cris_return_value): Likewise.
3006 * frv-tdep.c (frv_return_value): Likewise.
3007 * h8300-tdep.c (h8300_return_value): Likewise.
3008 (h8300h_return_value): Likewise.
3009 * hppa-tdep.c (hppa32_return_value): Likewise.
3010 (hppa64_return_value): Likewise.
3011 * i386-tdep.c (i386_return_value): Likewise.
3012 * ia64-tdep.c (ia64_return_value): Likewise.
3013 * iq2000-tdep.c (iq2000_return_value): Likewise.
3014 * lm32-tdep.c (lm32_return_value): Likewise.
3015 * m32c-tdep.c (m32c_return_value): Likewise.
3016 * m32r-tdep.c (m32r_return_value): Likewise.
3017 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
3018 * m68k-tdep.c (m68k_return_value): Likewise.
3019 (m68k_svr4_return_value): Likewise.
3020 * m88k-tdep.c (m88k_return_value): Likewise.
3021 * mep-tdep.c (mep_return_value): Likewise.
3022 * microblaze-tdep.c (microblaze_return_value): Likewise.
3023 * mn10300-tdep.c (mn10300_return_value): Likewise.
3024 * moxie-tdep.c (moxie_return_value): Likewise.
3025 * mt-tdep.c (mt_return_value): Likewise.
3026 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
3027 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
3028 (ppc_sysv_abi_broken_return_value): Likewise.
3029 (ppc64_sysv_abi_return_value): Likewise.
3030 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
3031 * rl78-tdep.c (rl78_return_value): Likewise.
3032 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
3033 * rx-tdep.c (rx_return_value): Likewise.
3034 * s390-tdep.c (s390_return_value): Likewise.
3035 * score-tdep.c (score_return_value): Likewise.
3036 * sh-tdep.c (sh_return_value_nofpu): Likewise.
3037 (sh_return_value_fpu): Likewise.
3038 * sh64-tdep.c (sh64_return_value): Likewise.
3039 * sparc-tdep.c (sparc32_return_value): Likewise.
3040 * sparc64-tdep.c (sparc64_return_value): Likewise.
3041 * spu-tdep.c (spu_return_value): Likewise.
3042 * tic6x-tdep.c (tic6x_return_value): Likewise.
3043 * v850-tdep.c (v850_return_value): Likewise.
3044 * vax-tdep.c (vax_return_value): Likewise.
3045 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3046 * xtensa-tdep.c (xtensa_return_value): Likewise.
3047 * gdbarch.c: Regenerate.
3048 * gdbarch.h: Regenerate.
3050 2012-05-15 Tom Tromey <tromey@redhat.com>
3052 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3054 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3056 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3057 of command in two error message.
3059 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3061 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3063 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3065 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3067 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3069 * NEWS (show auto-load scripts-directory): Add forgotten command.
3071 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3073 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3076 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3078 * amd64-tdep.c: Include features/i386/x32.c and
3079 features/i386/x32-avx.c.
3080 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3081 initialize_tdesc_x32_avx.
3083 2012-05-14 Stan Shebs <stan@codesourcery.com>
3086 * breakpoint.h (enum bptype): New type bp_dprintf.
3087 (struct breakpoint): New field extra_string.
3088 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3089 (create_breakpoint): Add extra_string arg.
3090 * breakpoint.c (dprintf_breakpoint_ops): New.
3091 (is_breakpoint): Add bp_dprintf.
3092 (bpstat_what): Add dprintf case.
3093 (bptype_string): Ditto.
3094 (print_one_breakpoint_location): Ditto.
3095 (init_bp_location): Ditto.
3096 (bkpt_print_mention): Ditto.
3097 (dprintf_style_enums): New array.
3098 (dprintf_style): New global.
3099 (dprintf_function): New global.
3100 (dprintf_channel): New global.
3101 (update_dprintf_command_list): New function.
3102 (update_dprintf_commands): New function.
3103 (init_breakpoint_sal): Add extra_string argument, handle it.
3104 (create_breakpoint_sal): Add extra_string argument.
3105 (create_breakpoints_sal): Add extra_string argument, update callers.
3106 (find_condition_and_thread): Add extra argument.
3107 (create_breakpoint): Add extra_string argument, record it.
3108 (dprintf_command): New function.
3109 (break_command_1): Add arg to create_breakpoint call.
3110 (handle_gnu_v3_exceptions): Ditto.
3111 (trace_command): Ditto.
3112 (ftrace_command): Ditto.
3113 (strace_command): Ditto.
3114 (bkpt_print_mention): Add dprintf case.
3115 (create_breakpoint_sal_default): Add extra_string argument.
3116 (_initialize_breakpoint): Add new commands.
3117 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3118 * python/py-breakpoint.c (bppy_init): Ditto.
3119 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3121 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3123 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3125 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3127 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3130 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3132 Add a new function gdb.find_pc_line to the Python API.
3133 * NEWS (Python Scripting): Add entry about the new function.
3134 * python/python.c (gdbpy_find_pc_line): New function which
3135 implements gdb.find_pc_line.
3136 (GdbMethods): Add entry for the new function.
3138 2012-05-12 Pedro Alves <palves@redhat.com>
3140 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3141 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3143 2012-05-12 Eli Zaretskii <eliz@gnu.org>
3145 * inferior.c: Include completer.h
3146 (initialize_inferiors): Set completer of add-inferior to
3149 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3151 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3152 gdbarch_ptr_bit for x32 core dump.
3154 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3156 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3157 and features/i386/x32-avx-linux.c.
3159 2012-05-11 Stan Shebs <stan@codesourcery.com>
3160 Kwok Cheung Yeung <kcy@codesourcery.com>
3162 * NEWS: Describe new info os commands.
3163 * common/linux-osdata.c (PID_T, TIME_T): Define.
3164 (MAX_PID_T_STRLEN): New.
3165 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3167 (command_from_pid): Add comment. Change to use PID_T.
3168 (commandline_from_pid): Change to use PID_T.
3169 (user_from_pid): Add comment.
3170 (get_process_owner): Add comment. Change to use PID_T and
3172 (get_number_of_cpu_cores): Add comment.
3173 (get_cores_used_by_process): Add comment. Change to use PID_T and
3175 (linux_xfer_osdata_processes): Change to use PID_T and
3177 (compare_processes): New function.
3178 (linux_xfer_osdata_processgroups): New function.
3179 (linux_xfer_osdata_threads): Change to use PID_T.
3180 (linux_xfer_osdata_fds): New function.
3181 (format_socket_state, print_sockets): New functions.
3182 (union socket_addr): New union.
3183 (linux_xfer_osdata_isockets): New function.
3184 (time_from_time_t, group_from_gid): New functions.
3185 (linux_xfer_osdata_shm): New function.
3186 (linux_xfer_osdata_sem): New function.
3187 (linux_xfer_osdata_msg): New function.
3188 (linux_xfer_osdata_modules): New function.
3189 (osdata_table): Add new entries.
3190 * common/buffer.c (buffer_xml_printf): Add support for long and
3191 long long format specifiers.
3193 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3195 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3196 (tdesc_x32_avx_linux): Likewise.
3198 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3200 Implement multi-component --with-auto-load-dir.
3201 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3203 (--with-auto-load-safe-path): Update the default value description.
3204 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3206 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3207 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3208 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3209 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3210 "set auto-load scripts-directory".
3211 * config.in: Regenerate.
3212 * configure: Regenerate.
3213 * configure.ac (--with-auto-load-dir): New configure option.
3214 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3216 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3218 Provide $ddir substitution for --with-auto-load-safe-path.
3219 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3221 * auto-load.c: Include observer.h.
3222 (auto_load_safe_path_vec_update): Call substitute_path_component for
3223 each component. New variable ddir_subst.
3224 (auto_load_gdb_datadir_changed): New function.
3225 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3226 AUTO_LOAD_SAFE_PATH. New comment.
3227 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3228 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3229 * config.in: Regenerate.
3230 * configure: Regenerate.
3231 * configure.ac (--auto-load-safe-path): Rename
3232 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3233 GDB_DATADIR/auto-load.
3234 * defs.h (substitute_path_component): New declaration.
3235 * top.c: Include observer.h.
3236 (set_gdb_datadir): New function.
3237 (init_main): Install it for "set data-directory".
3238 * utils.c (substitute_path_component): New function.
3240 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3242 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3243 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3244 DEBUG_FILE_DIRECTORY. Handle multiple components of
3245 DEBUG_FILE_DIRECTORY.
3247 2012-05-10 Tom Tromey <tromey@redhat.com>
3249 * dwarf2read.c (recursively_write_psymbols): New function.
3250 (write_psymtabs_to_index): Use it.
3252 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3254 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3255 (load_partial_comp_unit): Update.
3256 (queue_comp_unit): Add argument 'pretend_language'.
3257 (process_queue): Update.
3258 (psymtab_to_symtab_1): Skip dependencies that have a user.
3259 (load_partial_comp_unit_reader): Give meaning to the 'data'
3261 (load_full_comp_unit): Add 'pretend_language' argument.
3262 (process_full_comp_unit): Add 'pretend_language' argument. Set
3264 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3266 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3267 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3269 (prepare_one_comp_unit): Add 'pretend_language' argument.
3271 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3272 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3273 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3274 (dw2_do_instantiate_symtab): Check whether symtab was read in
3276 (dw2_instantiate_symtab): Add assertion. Call
3277 process_cu_includes.
3278 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3279 (partial_symtab_p): New typedef.
3280 (set_partial_user): New function.
3281 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3282 (scan_partial_symbols): Add imported CU to imported_symtabs.
3283 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3284 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3285 (get_symtab, recursively_compute_inclusions)
3286 (compute_symtab_includes, process_cu_includes)
3287 (process_imported_unit_die): New functions.
3288 (process_die) <DW_TAG_imported_unit>: New case.
3289 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3291 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3293 (struct partial_die_info) <locdesc>: Remove.
3295 (process_psymtab_comp_unit): Add 'read_partial' argument.
3297 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3298 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3299 (add_partial_symbol): Update.
3300 (process_die): Handle DW_TAG_partial_unit.
3301 (read_file_scope): Update comment.
3302 (load_partial_dies): Handle DW_TAG_imported_unit.
3303 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3304 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3306 2012-05-10 Tom Tromey <tromey@redhat.com>
3308 * cc-with-dwz.sh: New file.
3310 2012-05-10 Tom Tromey <tromey@redhat.com>
3312 * symtab.h (struct symtab) <includes, user>: New fields.
3313 * block.h (struct block_iterator) <d, idx, which>: New fields.
3314 * block.c (initialize_block_iterator, find_iterator_symtab)
3315 (block_iterator_step, block_iter_name_step)
3316 (block_iter_match_step): New functions.
3317 (block_iterator_first, block_iterator_next)
3318 (block_iter_name_first, block_iter_name_next)
3319 (block_iter_match_first, block_iter_match_next): Rewrite.
3320 (get_block_symtab): New function.
3322 2012-05-10 Tom Tromey <tromey@redhat.com>
3324 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3326 * jit.c (finalize_symtab): Use allocate_global_block,
3328 * buildsym.c (finish_block_internal): New function, from old
3330 (finish_block): Rewrite.
3331 (end_symtab): Use finish_block_internal, set_block_symtab.
3332 * block.h (struct global_block): New.
3333 (allocate_global_block, set_block_symtab): Declare.
3334 * block.c (allocate_global_block, set_block_symtab): New
3337 2012-05-10 Tom Tromey <tromey@redhat.com>
3339 * psymtab.c (partial_map_expand_apply): Add assertion.
3340 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3341 (psymtab_to_symtab): Find unshared psymtab.
3342 (dump_psymtab): Print including psymtabs.
3343 (recursively_search_psymtabs): New function.
3344 (expand_symtabs_matching_via_partial): Use it.
3345 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3347 (enum psymtab_search_status): New.
3349 2012-05-10 Tom Tromey <tromey@redhat.com>
3351 * tracepoint.c (scope_info): Update.
3352 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3353 (find_pc_sect_symtab, search_symbols)
3354 (default_make_symbol_completion_list_break_on)
3355 (make_file_symbol_completion_list): Update.
3356 * symmisc.c (dump_symtab_1): Update.
3357 * stack.c (print_frame_args, iterate_over_block_locals)
3358 (print_frame_labels, iterate_over_block_arg_vars): Update.
3359 * python/py-block.c (block_object) <dict>: Remove.
3361 <iter>: Change type.
3362 (blpy_iter): Update.
3363 (blpy_block_syms_iternext): Update.
3364 * psymtab.c (map_block): Use block iterators.
3365 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3366 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3367 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3368 * infrun.c (check_exception_resume): Update.
3369 * cp-support.c (make_symbol_overload_list_block): Update.
3370 * coffread.c (patch_opaque_types): Update.
3371 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3372 * block.h (struct block_iterator): New.
3373 (block_iterator_first, block_iterator_next, block_iter_name_first)
3374 (block_iter_name_next, block_iter_match_first)
3375 (block_iter_match_next): Declare.
3376 (ALL_BLOCK_SYMBOLS): Redefine.
3377 * block.c (block_iterator_first, block_iterator_next)
3378 (block_iter_name_first, block_iter_name_next)
3379 (block_iter_match_first, block_iter_match_next): New functions.
3380 * ada-lang.c (ada_add_block_symbols)
3381 (ada_make_symbol_completion_list): Use block iterator.
3383 2012-05-10 Tom Tromey <tromey@redhat.com>
3385 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3386 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3387 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3388 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3389 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3392 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3394 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3395 print-file-var-lib2.c, print-file-var-main.c and
3396 print-file-var.exp (located in gdb/testsuite/gdb.base).
3398 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3400 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3401 try locating the symbol in the symbol's own objfile first, before
3402 extending the search to all objfiles.
3403 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3404 out of lookup_symbol_aux_symtabs.
3405 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3406 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3407 Do not search EXCLUDE_OBJFILE.
3408 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3409 (lookup_symbol_global): Search for matches in the block's objfile
3410 first, before searching all other objfiles.
3412 2012-05-10 Tristan Gingold <gingold@adacore.com>
3414 * printcmd.c (set_command): Add pre/post inc/dec.
3416 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3418 * gdb.1: Document -ex option.
3420 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3422 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3423 * inferior.h (AT_SYMBOL): Delete.
3425 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3427 * mips-tdep.c (mips_push_dummy_code): New function.
3428 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3429 ON_STACK and install mips_push_dummy_code as our gdbarch
3430 push_dummy_code routine.
3432 2012-05-09 Pedro Alves <palves@redhat.com>
3434 * target.c (set_maintenance_target_async_permitted): Rename to ...
3435 (set_target_async_command): ... this.
3436 (show_maintenance_target_async_permitted): Rename to ...
3437 (show_target_async_command): ... this.
3438 (initialize_targets): Adjust.
3440 2012-05-08 Doug Evans <dje@google.com>
3442 * go-exp.y (classify_name): Add missing assignment of fields of
3445 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3447 Display the ">" prompt in interactive mode while reading canned
3448 commands, even when the current interpreter is MI.
3450 * interps.c (interp_set_temp): New function.
3452 * interps.h (interp_set_temp): Add prototype.
3454 * cli/cli-script.c (restore_interp): New cleanup function.
3455 (read_command_lines): Temporarily override the current interpreter
3456 with CLI and arrange for restoring the original one.
3458 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3460 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3462 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3464 * probe.c (parse_probes): Move conditional to check for
3465 debuginfo files from here...
3466 * stap-probe.c (stap_get_probes): ... to here.
3468 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3469 H.J. Lu <hongjiu.lu@intel.com>
3471 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3472 `movl %esp, %ebp' for the X32 ABI.
3474 2012-05-07 Tom Tromey <tromey@redhat.com>
3476 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3478 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3479 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3480 (dwarf_stack_op_name): Remove.
3481 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3482 (decode_locdesc): Use get_DW_OP_name.
3483 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3484 (dwarf2_compile_expr_to_ax): Likewise.
3485 (disassemble_dwarf_expression): Likewise.
3486 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3488 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3490 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3491 (sh_linux_sigtramp_cache): New function.
3492 (sh_linux_sigreturn_init): New function.
3493 (sh_linux_rt_sigreturn_init): New function.
3494 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3496 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3498 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3499 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3500 (sh_linux_init_abi): Add init calls to register new tramp_frame
3501 definitions under 32-bit SH, update comments.
3503 2012-05-07 Pedro Alves <palves@redhat.com>
3507 * amd64-linux-tdep.c: Include glibc-tdep.h.
3508 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3509 gdbarch_skip_solib_resolver callback.
3511 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3513 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3514 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3515 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3516 (add_auto_load_safe_path): Change the error message.
3517 (_initialize_auto_load): Change the "safe-path" help text.
3518 * configure: Regenerate
3519 * configure.ac (--without-auto-load-safe-path): Set
3520 WITH_AUTO_LOAD_SAFE_PATH to /.
3522 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3524 * stap-probe.h: Do not include unecessary `probe.h'.
3526 2012-05-05 Alan Modra <amodra@gmail.com>
3528 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3529 bfd_und_section_ptr.
3530 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3531 and bfd_com_section_ptr.
3533 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3535 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3537 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3539 * windows-nat.h (segment_register_p_ftype): New typedef.
3540 (windows_set_segment_register_p): Add declaration.
3541 * windows-nat.c (segment_register_p): New static global.
3542 (windows_set_segment_register_p): New function.
3543 (do_windows_fetch_inferior_registers): Add special handling
3544 for segment registers.
3545 * amd64-windows-nat.c: #include "amd64-tdep.h".
3546 (amd64_windows_segment_register_p): New function.
3547 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3548 * i386-windows-nat.c: #include "i386-tdep.h".
3549 (i386_windows_segment_register_p): New function.
3550 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3552 2012-05-04 Tristan Gingold <gingold@adacore.com>
3554 * printcmd.c (set_command): Emit a warning if the expression is not
3557 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3559 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3562 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3564 * stap-probe.c (stap_is_operator): Change declaration.
3565 (stap_get_opcode): Change return value.
3566 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3567 `stap_parse_argument_1'.
3569 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3571 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3574 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3576 Add two new methods global_block and static_block to gdb.Symtab
3578 * NEWS (Python scripting): Add entry about the new methods.
3579 * python/py-symtab.c (stpy_global_block): New function which
3580 implements the gdb.Symtab.global_block() method.
3581 (stpy_static_block): New function which implements the
3582 gdb.Symtab.static_block() method.
3583 (symtab_object_methods): Add entries for the two new methods.
3585 2012-05-03 Doug Evans <dje@google.com>
3587 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3590 2012-05-03 Yao Qi <yao@codesourcery.com>
3592 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3594 (i386_process_record): Ditto.
3596 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3598 * infcall.c (unwind_on_signal_p): Make static.
3600 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3602 * sol-thread.c (solaris_pid_to_str): Make static.
3603 (_initialize_sol_thread): Add prototype.
3605 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3607 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3609 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3611 * MAINTAINERS: Remove myself.
3613 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3615 Fix --without-auto-load-safe-path for MS-Windows host platform.
3616 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3618 2012-05-02 Eli Zaretskii <eliz@gnu.org>
3620 * gdb_curses.h: Undefine KEY_EVENT before including curses
3621 headers. Move "#undef MOUSE_MOVED" before any curses header
3624 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3626 * features/i386/i386-mmx-linux.c: Regenerate.
3627 * features/rs6000/powerpc-32.c: Likewise.
3628 * features/rs6000/powerpc-32l.c: Likewise.
3629 * features/rs6000/powerpc-403.c: Likewise.
3630 * features/rs6000/powerpc-403gc.c: Likewise.
3631 * features/rs6000/powerpc-405.c: Likewise.
3632 * features/rs6000/powerpc-505.c: Likewise.
3633 * features/rs6000/powerpc-601.c: Likewise.
3634 * features/rs6000/powerpc-602.c: Likewise.
3635 * features/rs6000/powerpc-603.c: Likewise.
3636 * features/rs6000/powerpc-604.c: Likewise.
3637 * features/rs6000/powerpc-64.c: Likewise.
3638 * features/rs6000/powerpc-64l.c: Likewise.
3639 * features/rs6000/powerpc-750.c: Likewise.
3640 * features/rs6000/powerpc-860.c: Likewise.
3641 * features/rs6000/powerpc-e500.c: Likewise.
3642 * features/rs6000/powerpc-e500l.c: Likewise.
3643 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3644 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3645 * features/rs6000/rs6000.c: Likewise.
3647 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3649 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3651 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3652 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3653 (stap_parse_argument) <e>: Likewise.
3654 (handle_stap_probe) <byte_order>: Likewise.
3656 2012-04-30 Doug Evans <dje@google.com>
3658 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3659 init_and_read_dies_worker. All callers updated.
3660 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3661 replaced with init_cutu_and_read_dies.
3662 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3663 (find_partial_die): Remove FIXME. Don't free current CU.
3665 2012-04-30 Sterling Augustine <saugustine@google.com>
3667 * contrib: New directory.
3668 * contrib/test_pubnames_and_indexes.py: New file.
3670 2012-04-30 Doug Evans <dje@google.com>
3672 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3673 All callers updated.
3674 (init_cu_die_reader): Verify the section is non-empty.
3675 (dwarf_decode_line_header): Don't dereference section->asection
3676 until we know the section is present.
3678 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3680 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3683 2012-04-29 Yao Qi <yao@codesourcery.com>
3685 * gdb-code-style.el: New hook gdb-markup-hook
3686 and gdb-comment-hook.
3688 2012-04-28 Doug Evans <dje@google.com>
3690 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3691 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3693 * symfile.h (dwarf2_debug_sections): New member addr.
3694 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3695 (ctx_no_get_addr_index): New function.
3696 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3697 (ctx_no_get_addr_index): Declare.
3698 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3699 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3700 (dwarf_expr_ctx_funcs): Update.
3701 (needs_get_addr_index): New function.
3702 (needs_frame_ctx_funcs): Update.
3703 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3704 * dwarf2read.c: #include "gdbcore.h".
3705 (dwarf2_per_objfile): New members addr, dwo_files.
3706 (dwarf2_elf_names): Add entry for addr.
3707 (struct dwo_section_names): New type.
3708 (dwo_section_names): New static global.
3709 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3710 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3711 old debug_types_section member updated to use this.
3712 Rename member debug_types_section to info_or_types_section,
3714 (signatured_type): Rename member type_offset to type_offset_in_tu,
3715 all uses updated. New member type_offset_in_section.
3716 (struct dwo_sections): New type.
3717 (struct dwo_unit): New type.
3718 (struct dwo_file): New type.
3719 (die_reader_specs): New member dwo_file.
3720 (dwarf2_locate_sections): Watch for .debug_addr.
3721 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3722 (dwarf2_read_section): Get bfd of section from bfd's asection,
3724 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3725 (create_signatured_type_table_from_index): Initialize
3726 sig_type->info_or_types_section.
3727 (dw2_get_file_names): Statement lists for type units with DWO files
3728 live in the DWO file.
3729 (create_debug_types_hash_table): New function.
3730 (create_all_type_units): Rewrite.
3731 (init_cu_die_reader): New arg dwo_file, all callers updated.
3732 (init_and_read_dies_worker): Get section from
3733 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3734 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3735 continue reading the CU/TU from there.
3736 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3737 updated. Get section from this_cu->info_or_types_section.
3738 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3739 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3740 DW_FORM_GNU_str_index.
3741 (hash_dwo_file, eq_dwo_file): New functions.
3742 (allocate_dwo_file_hash_table): New function.
3743 (hash_dwo_unit, eq_dwo_unit): New functions.
3744 (allocate_dwo_unit_table): New function.
3745 (dwarf2_locate_dwo_sections): New function.
3746 (struct create_dwo_info_table_data): New type.
3747 (create_debug_info_hash_table_reader): New function.
3748 (create_debug_info_hash_table): New function.
3749 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3750 (lookup_dwo_file): New function.
3751 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3752 (free_dwo_file, free_dwo_file_cleanup): New functions.
3753 (free_dwo_file_from_slot, free_dwo_files): New functions.
3754 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3755 (dwarf2_record_block_ranges): Ditto.
3756 (read_partial_die): Ditto.
3757 (process_enumeration_scope): Update to use type_offset_in_section.
3758 (read_full_die_1): New function.
3759 (read_full_die): Rewrite.
3760 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3761 DW_FORM_GNU_str_index.
3762 (read_addr_index_1, read_addr_index): New functions.
3763 (read_addr_index_from_leb128): New function.
3764 (struct dwarf2_read_addr_index_data): New type.
3765 (dwarf2_read_addr_index_reader): New function.
3766 (dwarf2_read_addr_index): New function.
3767 (read_str_index): New function.
3768 (leb128_size): New function.
3769 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3770 If processing a type unit from a DWO file, get the line section
3772 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3773 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3774 DW_FORM_GNU_str_index.
3775 (lookup_die_type): Check whether section offset of type's die is
3776 known before looking it up. Remove assert. Condition can
3777 legimately happen for inter-cu type references.
3778 (dwarf_attr_name): Handle Fission attributes.
3779 (dwarf_form_name): Handle Fission forms.
3780 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3781 DW_FORM_GNU_str_index.
3782 (follow_die_sig): Update to use type_offset_in_section.
3783 (decode_locdesc): New case DW_OP_GNU_addr_index.
3784 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3785 DW_FORM_GNU_str_index.
3786 (cu_debug_loc_section): New function.
3787 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3788 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3789 Free DWO files if present.
3790 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3792 Refactor DIE reading.
3793 * dwarf2read.c (dwarf2_per_objfile): Replace members
3794 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3795 (die_reader_specs): New member "die_section". Temporarily make
3796 member "buffer" non-const, pending constifying all info_ptr uses.
3797 (die_reader_func_ftype): New typedef.
3798 (dw2_get_file_names_reader): New function.
3799 (dw2_get_file_names): Rewrite.
3800 (read_and_check_type_unit_head): Rename arg type_offset to
3802 (create_all_type_units): Improve debugging message.
3803 Improve dummy type unit check.
3804 (init_cu_die_reader): New arg "section". All callers updated.
3805 (init_and_read_dies_worker): New function.
3806 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3807 (init_cutu_and_read_dies_no_follow): New function.
3808 (init_cutu_and_read_dies_simple): New function.
3809 (process_psymtab_comp_unit_reader): New function.
3810 (process_psymtab_comp_unit): Delete args section,
3811 is_debug_types_section. Rewrite. All callers updated.
3812 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3813 All callers updated. Rewrite.
3814 (load_partial_comp_unit_reader): New function.
3815 (load_partial_comp_unit): Rewrite.
3816 (skip_children): New arg reader. Delete args buffer, cu.
3817 All callers updated.
3818 (skip_one_die): New arg reader. Delete args buffer, cu.
3819 All callers updated.
3820 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3821 All callers updated.
3822 (load_full_comp_unit_reader): New function.
3823 (load_full_comp_unit): Rewrite.
3824 (read_comp_unit): Delete.
3825 (read_die_and_children_1): Delete, contents moved ...
3826 (read_die_and_children): ... here.
3827 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3828 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3829 All callers updated.
3830 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3831 All callers updated.
3832 (find_partial_die): Rewrite load_all_dies support.
3833 (read_attribute_value): New arg reader. Delete args abfd, cu.
3834 All callers updated.
3835 (read_attribute): New arg reader. Delete args abfd, cu.
3836 All callers updated.
3837 (load_full_type_unit): Add assert.
3838 (read_signatured_type_reader): New function.
3839 (read_signatured_type): Rewrite.
3840 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3841 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3842 All callers updated. Set per_cu->cu = NULL after freeing it.
3843 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3844 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3845 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3846 (set_die_type): Update.
3847 (get_die_type_at_offset): Update.
3848 (read_file_scope): Call prepare_one_comp_unit.
3849 (read_type_unit_scope): Ditto.
3850 (prepare_one_comp_unit): Set producer if present.
3852 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
3854 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3855 gettext function on `error'.
3857 2012-04-27 Doug Evans <dje@google.com>
3859 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3862 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3863 Tom Tromey <tromey@redhat.com>
3865 * breakpoint.c (struct breakpoint_objfile_data)
3866 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3867 <exception_probes>: New fields.
3868 (free_breakpoint_probes): New function.
3869 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3870 `_Unwind_DebugHook'.
3871 (create_exception_master_breakpoint): Likewise.
3872 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3873 * infrun.c: Including necessary header files for handling SystemTap
3875 (handle_inferior_event): Handling longjmp breakpoint and exceptions
3876 via SystemTap probes.
3877 (check_exception_resume): Remove `func' argument. Handle exception
3878 unwinding breakpoint set via a SystemTap probe.
3879 (insert_exception_resume_from_probe): New function.
3881 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3882 Tom Tromey <tromey@redhat.com>
3883 Jan Kratochvil <jan.kratochvil@redhat.com>
3885 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
3886 (COMMON_OBS): Likewise.
3887 (HFILES_NO_SRCDIR): Add `probe'.
3888 * NEWS: Mention support for static and SystemTap probes.
3889 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
3890 SystemTap probes' arguments parser.
3891 * arm-linux-tdep.c: Including headers needed to perform the parsing
3892 of SystemTap probes' arguments.
3893 (arm_stap_is_single_operand): New function.
3894 (arm_stap_parse_special_token): Likewise.
3895 (arm_linux_init_abi): Initializing proper fields used by SystemTap
3896 probes' arguments parser.
3897 * ax-gdb.c (require_rvalue): Removing static declaration.
3898 (gen_expr): Likewise.
3899 * ax-gdb.h (gen_expr): Declaring function.
3900 (require_rvalue): Likewise.
3901 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
3902 (bkpt_probe_breakpoint_ops): New variable.
3903 (momentary_breakpoint_from_master): Set the `probe' value.
3904 (add_location_to_breakpoint): Likewise.
3905 (break_command_1): Using proper breakpoint_ops according to the
3906 argument passed by the user in the command line.
3907 (bkpt_probe_insert_location): New function.
3908 (bkpt_probe_remove_location): Likewise.
3909 (bkpt_probe_create_sals_from_address): Likewise.
3910 (bkpt_probe_decode_linespec): Likewise.
3911 (tracepoint_probe_create_sals_from_address): Likewise.
3912 (tracepoint_probe_decode_linespec): Likewise.
3913 (tracepoint_probe_breakpoint_ops): New variable.
3914 (trace_command): Using proper breakpoint_ops according to the
3915 argument passed by the user in the command line.
3916 (initialize_breakpoint_ops): Initializing breakpoint_ops for
3917 static probes on breakpoints and tracepoints.
3918 * breakpoint.h (struct bp_location) <probe>: New field.
3919 * cli-utils.c (skip_spaces_const): New function.
3920 (extract_arg): Likewise.
3921 * cli-utils.h (skip_spaces_const): Likewise.
3922 (extract_arg): Likewise.
3923 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
3924 * configure.ac: Append `stap-probe.o' to be generated when ELF
3926 * configure: Regenerate.
3927 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
3928 * elfread.c: Include `probe.h' and `arch-utils.h'.
3929 (probe_key): New variable.
3930 (elf_get_probes): New function.
3931 (elf_get_probe_argument_count): Likewise.
3932 (elf_evaluate_probe_argument): Likewise.
3933 (elf_compile_to_ax): Likewise.
3934 (elf_symfile_relocate_probe): Likewise.
3935 (stap_probe_key_free): Likewise.
3936 (elf_probe_fns): New variable.
3937 (elf_sym_fns): Add `sym_probe_fns' value.
3938 (elf_sym_fns_lazy_psyms): Likewise.
3939 (elf_sym_fns_gdb_index): Likewise.
3940 (_initialize_elfread): Initialize objfile cache for static
3942 * gdb_vecs.h (struct probe): New forward declaration.
3943 (probe_p): New VEC declaration.
3944 * gdbarch.c: Regenerate.
3945 * gdbarch.h: Regenerate.
3946 * gdbarch.sh (stap_integer_prefix): New variable.
3947 (stap_integer_suffix): Likewise.
3948 (stap_register_prefix): Likewise.
3949 (stap_register_suffix): Likewise.
3950 (stap_register_indirection_prefix): Likewise.
3951 (stap_register_indirection_suffix): Likewise.
3952 (stap_gdb_register_prefix): Likewise.
3953 (stap_gdb_register_suffix): Likewise.
3954 (stap_is_single_operand): New function.
3955 (stap_parse_special_token): Likewise.
3956 (struct stap_parse_info): Forward declaration.
3957 * i386-tdep.c: Including headers needed to perform the parsing
3958 of SystemTap probes' arguments.
3959 (i386_stap_is_single_operand): New function.
3960 (i386_stap_parse_special_token): Likewise.
3961 (i386_elf_init_abi): Initializing proper fields used by SystemTap
3962 probes' arguments parser.
3963 * i386-tdep.h (i386_stap_is_single_operand): New function.
3964 (i386_stap_parse_special_token): Likewise.
3965 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
3966 * mipsread.c (ecoff_sym_fns): Likewise.
3967 * objfiles.c (objfile_relocate1): Support relocation for static
3969 * parse.c (prefixify_expression): Remove static declaration.
3970 (initialize_expout): Likewise.
3971 (reallocate_expout): Likewise.
3972 * parser-defs.h (initialize_expout): Declare function.
3973 (reallocate_expout): Likewise.
3974 (prefixify_expression): Likewise.
3975 * ppc-linux-tdep.c: Including headers needed to perform the parsing
3976 of SystemTap probes' arguments.
3977 (ppc_stap_is_single_operand): New function.
3978 (ppc_stap_parse_special_token): Likewise.
3979 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
3980 probes' arguments parser.
3981 * probe.c: New file, for generic statically defined probe support.
3982 * probe.h: Likewise.
3983 * s390-tdep.c: Including headers needed to perform the parsing of
3984 SystemTap probes' arguments.
3985 (s390_stap_is_single_operand): New function.
3986 (s390_gdbarch_init): Initializing proper fields used by SystemTap
3987 probes' arguments parser.
3988 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
3989 * stap-probe.c: New file, for SystemTap probe support.
3990 * stap-probe.h: Likewise.
3991 * symfile.h: Include `gdb_vecs.h'.
3992 (struct sym_probe_fns): New struct.
3993 (struct sym_fns) <sym_probe_fns>: New field.
3994 * symtab.c (init_sal): Initialize `probe' field.
3995 * symtab.h (struct probe): Forward declaration.
3996 (struct symtab_and_line) <probe>: New field.
3997 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
3999 (stop_tracing): Likewise.
4000 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
4002 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4003 Tom Tromey <tromey@redhat.com>
4005 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
4006 and to compile agent expressions.
4007 * infrun.c (siginfo_make_value): New argument `ignore'.
4008 (siginfo_funcs): New struct.
4009 (_initialize_infrun): New argument when calling
4010 `create_internalvar_type_lazy'.
4011 * thread.c (thread_id_make_value): New argument `ignore'.
4012 (thread_funcs): New struct.
4013 (_initialize_thread): New argument when calling
4014 `create_internalvar_type_lazy'.
4015 * tracepoint.c (sdata_make_value): New argument `ignore'.
4016 (sdata_funcs): New struct.
4017 (_initialize_tracepoint): New argument when calling
4018 `create_internalvar_type_lazy'.
4019 * value.c (make_value): New struct.
4020 (create_internalvar_type_lazy): New argument `data'.
4021 (compile_internalvar_to_ax): New function.
4022 (value_of_internalvar): Properly handling `make_value' case.
4023 (clear_internalvar): Likewise.
4024 (show_convenience): Adding `TRY_CATCH' block.
4025 * value.h (internalvar_make_value): Delete, replace by...
4026 (struct internalvar_funcs): ... this.
4027 (create_internalvar_type_lazy) <fun>: Delete argument.
4028 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
4029 (compile_internalvar_to_ax): New function.
4030 * windows-tdep.c (tlb_make_value): New argument `ignore'.
4031 (tlb_funcs): New struct.
4032 (_initialize_windows_tdep): New argument when calling
4033 `create_internalvar_type_lazy'.
4035 2012-04-27 Mark Wielaard <mjw@redhat.com>
4037 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4038 see whether it is an address or a constant offset from DW_AT_low_pc.
4039 (dwarf2_record_block_ranges): Likewise.
4040 (read_partial_die): Likewise.
4042 2012-04-26 Mark Wielaard <mjw@redhat.com>
4044 * MAINTAINERS (Write After Approval): Add myself to the list.
4046 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4048 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4049 (proc_prettyprint_signal): Likewise.
4050 (proc_prettyprint_faultset): Likewise.
4051 (proc_prettyprint_fault): Likewise.
4052 (proc_prettyprint_actionset): Likewise.
4053 (proc_prettyprint_flags): Move to new proc-flags.c section.
4054 (proc_prettyfprint_flags): New prototype.
4055 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4056 (proc_syscall, proc_cursig): Likewise.
4057 (proc_set_kill_on_last_close): Likewise.
4058 (proc_unset_kill_on_last_close): Likewise.
4059 (proc_set_watchpoint): Make static.
4060 (proc_delete_dead_threads): Likewise.
4061 (procfs_set_watchpoint): Likewise.
4062 (_initialize_procfs): Add prototype.
4063 * proc-events.c: Include proc-utils.h.
4064 (init_syscall_table): Make static.
4065 * proc-api.c (_initialize_proc_api): Add prototype.
4066 * proc-flags.c: Include proc-utils.h.
4068 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4070 * configure.ac: Add AC_ARG_PROGRAM.
4071 * configure: Regenerate.
4073 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4075 Fix DW_AT_lower_bound defaults for DWARF-4+.
4076 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4077 high. New variable low_default_is_valid. Implement DWARF-4+
4078 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4079 no default by the DWARF standard.
4081 2012-04-26 Maciej W. Rozycki <macro@mips.com>
4082 Maciej W. Rozycki <macro@codesourcery.com>
4084 * infrun.c (handle_inferior_event): Move the check for return
4085 trampolines ahead of the check for function trampolines.
4086 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4087 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4088 (mips_str_mips16_ret_stub): Likewise.
4089 (mips_str_call_fp_stub): Likewise.
4090 (mips_str_call_stub): Likewise.
4091 (mips_str_fn_stub): Likewise.
4092 (mips_str_pic): Likewise.
4093 (mips_in_frame_stub): New function.
4094 (mips_unwind_pc): Return the return address rather than the PC
4095 if the PC of an intermediate frame is inside a call thunk.
4096 (mips_is_stub_suffix): New function.
4097 (mips_is_stub_mode): Likewise.
4098 (mips_get_mips16_fn_stub_pc): Likewise.
4099 (mips_skip_mips16_trampoline_code): Update to handle all the
4100 currently generated stub types. Don't recurse into __fn_stub
4101 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4102 Use cooked register accesses.
4103 (mips_in_return_stub): Reintroduce function.
4104 (mips_skip_trampoline_code): Traverse trampolines recursively.
4105 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4107 2012-04-26 Joel Brobecker <brobecker@adacore.com>
4111 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4113 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4114 * features/arm-with-m-vfp-d16.xml: New file. Describes
4115 Cortex-M with VFPv4-sp-d16 FPU register layout.
4116 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4117 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4118 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4119 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4120 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4122 2012-04-25 Doug Evans <dje@google.com>
4124 * cli/cli-decode.c (print_doc_line): Use stream instead of
4127 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4129 * features/arm-with-iwmmxt.c: Regenerate.
4130 * features/arm-with-m-fpa-layout.c: Likewise.
4131 * features/arm-with-m.c: Likewise.
4132 * features/arm-with-neon.c: Likewise.
4133 * features/arm-with-vfpv2.c: Likewise.
4134 * features/arm-with-vfpv3.c: Likewise.
4135 * features/mips-dsp-linux.c: Likewise.
4136 * features/mips-linux.c: Likewise.
4137 * features/mips64-dsp-linux.c: Likewise.
4138 * features/mips64-linux.c: Likewise.
4139 * features/s390-linux32.c: Likewise.
4140 * features/s390-linux32v1.c: Likewise.
4141 * features/s390-linux32v2.c: Likewise.
4142 * features/s390-linux64.c: Likewise.
4143 * features/s390-linux64v1.c: Likewise.
4144 * features/s390-linux64v2.c: Likewise.
4145 * features/s390x-linux64.c: Likewise.
4146 * features/s390x-linux64v1.c: Likewise.
4147 * features/s390x-linux64v2.c: Likewise.
4148 * features/tic6x-c62x-linux.c: Likewise.
4149 * features/tic6x-c62x.c: Likewise.
4150 * features/tic6x-c64x-linux.c: Likewise.
4151 * features/tic6x-c64x.c: Likewise.
4152 * features/tic6x-c64xp-linux.c: Likewise.
4153 * features/tic6x-c64xp.c: Likewise.
4154 * target-descriptions.c: Only generate `field_type' and `type'
4155 variables when needed.
4157 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4159 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4161 2012-04-25 Doug Evans <dje@google.com>
4163 Initial pass at Go language support.
4165 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4167 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4168 (YYFILES): Add go-exp.c.
4169 (YYOBJ): Add go-exp.o.
4170 (local-maintainer-clean): Delete go-exp.c.
4171 * defs.h (enum language): Add language_go.
4172 * dwarf2read.c: #include "go-lang.h".
4173 (fixup_go_packaging): New function.
4174 (process_full_comp_unit): Call it when processing Go CUs.
4175 (dwarf2_physname): Add Go support.
4176 (read_file_scope): Handle missing language spec for GNU Go.
4177 (set_cu_language): Handle DW_LANG_Go.
4178 * go-exp.y: New file.
4179 * go-lang.h: New file.
4180 * go-lang.c: New file.
4181 * go-typeprint.c: New file.
4182 * go-valprint.c: New file.
4183 * symtab.c: #include "go-lang.h".
4184 (symbol_set_language): Handle language_go.
4185 (symbol_find_demangled_name, symbol_set_names): Ditto.
4186 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4188 2012-04-24 Jim Meyering <meyering@redhat.com>
4190 avoid a few strncpy-induced buffer overruns
4191 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4192 fname and psargs before trying to concatenate.
4193 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4194 "name" before applying strchr.
4196 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4198 * CONTRIBUTE: Use unified diff instead of context diff when
4201 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4203 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4204 code. Handle JR.HB correctly.
4206 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4209 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4210 with the other MIPS16 helpers.
4212 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4214 * observer.sh: Conditionally declare `args', thus cleaning up
4215 unused instances of this variable.
4217 2012-04-24 Yao Qi <yao@codesourcery.com>
4219 Revert this patch to allow breakpoint always-inserted
4221 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4222 * breakpoint.c: Include record.h.
4223 (breakpoints_always_inserted_mode): Return false when the record
4226 * breakpoint.c (iterate_over_bp_locations): New.
4227 * breakpoint.h: Declare.
4228 New typedef walk_bp_location_callback.
4229 * record.c (record_open): Call record_init_record_breakpoints.
4230 (record_sync_record_breakpoints): New.
4231 (record_init_record_breakpoints): New.
4232 * NEWS: Mention supporting breakpoint always-inserted mode in
4235 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4237 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4240 2012-04-24 Yao Qi <yao@codesourcery.com>
4242 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4243 (is_catchpoint): ... it.
4244 (print_one_breakpoint_location): Caller update.
4245 * breakpoint.h: Update declaration.
4247 2012-04-23 David S. Miller <davem@davemloft.net>
4249 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4251 2012-04-23 Tom Tromey <tromey@redhat.com>
4253 * buildsym.c (add_free_pendings): Remove.
4254 * buildsym.h (add_free_pendings): Remove.
4256 2012-04-23 Doug Evans <dje@google.com>
4258 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4259 attr.u.unsnd instead of attr.u.addr.
4260 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4261 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4263 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4264 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4266 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4268 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4270 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4271 (mips_o32_return_value): Likewise.
4272 (mips_o64_return_value): Likewise.
4274 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4276 * ada-lang.c (ada_evaluate_subexp): Add cases for
4277 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4278 their treatment in eval.c.
4280 2012-04-21 David S. Miller <davem@davemloft.net>
4282 * sparc-tdep.c (X_DISP10): Define.
4283 (sparc_analyze_control_transfer): Handle compare-and-branch.
4285 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4287 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4288 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4290 2012-04-20 Nigel Stephens <nigel@mips.com>
4291 Maciej W. Rozycki <macro@codesourcery.com>
4293 * mips-tdep.c (mips_float_register_p): New function.
4294 (mips_convert_register_float_case_p): Use mips_float_register_p.
4295 (mips_register_type): Likewise.
4296 (mips_print_register): Likewise.
4297 (print_gp_register_row): Likewise.
4298 (mips_print_registers_info): Likewise.
4300 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4302 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4305 2012-04-20 Andrew Pinski <apinski@cavium.com>
4307 * MAINTAINERS (Write After Approval): Add myself to the list.
4309 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4311 * MAINTAINERS: Update my e-mail address.
4313 2012-04-20 Pedro Alves <palves@redhat.com>
4315 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4317 * configure: Regenerate.
4319 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4321 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4323 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4325 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4327 Fix compilation compatibility with python-2.4
4328 * python/py-type.c (convert_field): Cast ADDRSTRING for
4329 PyObject_SetAttrString as non-const. New comment.
4331 2012-04-19 Tom Tromey <tromey@redhat.com>
4333 * top.c (quit_target): Use all_cleanups.
4334 * main.c (captured_command_loop): Use all_cleanups.
4335 * exceptions.c (throw_exception): Use all_cleanups.
4337 2012-04-19 Pedro Alves <palves@redhat.com>
4339 * Makefile.in (GNULIB_BUILDDIR): New.
4340 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4341 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4342 (CLEANDIRS). Remove gnulib/import.
4343 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4345 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4346 (gnulib/import/Makefile): Replace gnulib/import with
4347 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4348 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4349 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4350 acx_configure_dir.m4.
4351 * acinclude.m4: Include acx_configure_dir.m4.
4352 * acx_configure_dir.m4: New file.
4353 * aclocal.m4: Regenerate.
4354 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4355 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4356 (GNULIB): New variable.
4357 (GNULIB_STDINT_H): Adjust.
4358 (AC_OUTPUT): Don't output gnulib/Makefile.
4359 * gdb/defs.h: Include build-gnulib/config.h.
4360 * aclocal.m4: Regenerate.
4361 * config.in: Regenerate.
4362 * configure: Regenerate.
4364 * gnulib/Makefile.in: New file.
4365 * gnulib/configure.ac: New file.
4366 * gnulib/aclocal.m4: New file.
4367 * gnulib/config.in: New file.
4368 * gnulib/configure: New file.
4369 * gnulib/: Re-run gnulib-tool to adjust.
4371 2012-04-19 Doug Evans <dje@google.com>
4373 * cleanups.h (struct cleanup): Move to cleanups.c.
4374 (make_cleanup_dtor_ftype): New typedef.
4375 (make_cleanup_dtor): Use it.
4376 (ALL_CLEANUPS): Replace with ...
4377 (all_cleanups): ... this. Declare. All uses updated.
4378 * cleanups.c: #include "gdb_assert.h".
4379 (sentinel_cleanup): New static global.
4380 (SENTINEL_CLEANUP): Define.
4381 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4382 (make_my_cleanup2): Assert result is non-NULL.
4383 (all_cleanups): New function.
4384 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4387 2012-04-19 Pedro Alves <palves@redhat.com>
4389 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4390 Adjust paths to gnulib imported files.
4392 2012-04-19 Pedro Alves <palves@redhat.com>
4394 * gnulib/: Move whole directory ...
4395 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4396 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4397 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4398 (aclocal_m4_deps): Adjust.
4399 * aclocal.m4: Regenerate.
4400 * configure: Regenerate.
4401 * configure.ac: Adjust AC_OUTPUT output.
4403 2012-04-19 Yao Qi <yao@codesourcery.com>
4405 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4407 * vec.c: Move it ...
4408 * common/vec.c: ... here.
4409 * vec.h: Move it ...
4410 * common/vec.h: ... here.
4412 2012-04-19 Yao Qi <yao@codesourcery.com>
4414 * gdb-code-style.el: New.
4416 2012-04-18 Pedro Alves <palves@redhat.com>
4418 Update gnulib from latest git.
4419 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4421 * gnulib/Makefile.am: Update.
4422 * gnulib/dummy.c: Update.
4423 * gnulib/extra/arg-nonnull.h: Update.
4424 * gnulib/extra/c++defs.h: Update.
4425 * gnulib/extra/update-copyright: Update.
4426 * gnulib/extra/warn-on-use.h: Update.
4427 * gnulib/inttypes.in.h: Update.
4428 * gnulib/m4/00gnulib.m4: Update.
4429 * gnulib/m4/extensions.m4: Update.
4430 * gnulib/m4/gnulib-cache.m4: Update.
4431 * gnulib/m4/gnulib-common.m4: Update.
4432 * gnulib/m4/gnulib-comp.m4: Update.
4433 * gnulib/m4/gnulib-tool.m4: Update.
4434 * gnulib/m4/include_next.m4: Update.
4435 * gnulib/m4/inttypes-pri.m4: Update.
4436 * gnulib/m4/inttypes.m4: Update.
4437 * gnulib/m4/longlong.m4: Update.
4438 * gnulib/m4/memchr.m4: Update.
4439 * gnulib/m4/memmem.m4: Update.
4440 * gnulib/m4/mmap-anon.m4: Update.
4441 * gnulib/m4/multiarch.m4: Update.
4442 * gnulib/m4/onceonly.m4: Update.
4443 * gnulib/m4/stddef_h.m4: Update.
4444 * gnulib/m4/stdint.m4: Update.
4445 * gnulib/m4/string_h.m4: Update.
4446 * gnulib/m4/warn-on-use.m4: Update.
4447 * gnulib/m4/wchar_h.m4: Update.
4448 * gnulib/m4/wchar_t.m4: Update.
4449 * gnulib/m4/wint_t.m4: Update.
4450 * gnulib/memchr.c: Update.
4451 * gnulib/memmem.c: Update.
4452 * gnulib/stddef.in.h: Update.
4453 * gnulib/stdint.in.h: Update.
4454 * gnulib/str-two-way.h: Update.
4455 * gnulib/string.in.h: Update.
4456 * gnulib/wchar.in.h: Update.
4458 * gnulib/extra/arg-nonnull.h: Delete.
4459 * gnulib/extra/c++defs.h: Delete.
4460 * gnulib/extra/warn-on-use.h: Delete.
4461 * gnulib/m4/wchar_h.m4: Delete.
4462 * gnulib/m4/wint_t.m4: Delete.
4463 * gnulib/wchar.in.h: Delete.
4465 * gnulib/extra/snippets/arg-nonnull.h: New.
4466 * gnulib/extra/snippets/c++defs.h: New.
4467 * gnulib/extra/snippets/warn-on-use.h: New.
4469 * aclocal.m4: Regenerate.
4470 * config.in: Regenerate.
4471 * configure: Regenerate.
4472 * gnulib/Makefile.in: Regenerate.
4474 2012-04-18 Pedro Alves <palves@redhat.com>
4476 Reimport the update-copyright module from gnulib
4477 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4479 * configure: Regenerate.
4480 * gnulib/Makefile.am: Update.
4481 * gnulib/Makefile.in: Regenerate.
4482 * gnulib/extra/update-copyright: Update.
4483 * gnulib/m4/gnulib-cache.m4: Update.
4484 * gnulib/m4/gnulib-comp.m4: Update.
4486 2012-04-18 Tristan Gingold <gingold@adacore.com>
4488 * configure.ac (aix): Put -lpthread into libs.
4489 * configure: Regenerate.
4491 2012-04-18 Tom Tromey <tromey@redhat.com>
4493 * linespec.c (convert_linespec_to_sals): Don't use
4495 (compare_msymbols): Arguments are minsym_and_objfile, not
4496 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4498 2012-04-18 Pedro Alves <palves@redhat.com>
4500 Revert gnulib/ part of:
4501 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4502 Copyright year update in most files (performed by copyright.sh).
4504 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4506 Fix 64-bit constants on 32-bit hosts.
4507 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4508 from unsigned long to ULONGEST.
4509 (read_signed_leb128): Change declaration return type from long to
4511 (dwarf2_const_value_attr): Change declaration parameter value from long
4513 (dwarf2_compute_name): Change variable value from long to LONGEST.
4514 (read_unsigned_leb128): Change return type, variable result and some
4515 casts from unsigned long to ULONGEST.
4516 (read_signed_leb128): Change return type, variable result and some
4517 casts from long to LONGEST.
4518 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4519 value from long to LONGEST.
4520 (dwarf2_const_value): Change variable value from long to LONGEST.
4521 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4522 plongest and hex_string.
4523 * symtab.h (struct general_symbol_info): Change ivalue from long to
4524 LONGEST, remove the comment.
4525 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4526 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4528 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4531 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4532 * ada-lang.c (ada_discrete_type_high_bound)
4533 (ada_discrete_type_low_bound): Fix function comment. Use
4534 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4535 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4536 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4537 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4538 Use TYPE_FIELD_ENUMVAL.
4539 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4540 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4541 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4542 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4544 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4545 * dwarf2read.c (process_enumeration_scope): Likewise.
4546 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4548 (class StructMainTypePrettyPrinter): Support also
4549 FIELD_LOC_KIND_ENUMVAL.
4550 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4552 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4553 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4554 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4555 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4557 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4558 accommodate enumval.
4559 (struct call_site): Adjust loc_kind to accommodate enumval.
4560 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4561 (TYPE_FIELD_ENUMVAL): New macros.
4562 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4563 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4565 * p-typeprint.c (pascal_type_print_base): Likewise.
4566 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4568 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4569 * python/py-type.c (convert_field): New variable addrstring. Use
4570 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4571 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4572 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4573 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4575 * valprint.c (generic_val_print): Likewise.
4577 2012-04-17 Doug Evans <dje@google.com>
4579 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4581 * dwarf2read.c: Whitespace fixes.
4582 (lookup_signatured_type): Tweak comment.
4583 (get_die_type_at_offset): Fix comment.
4585 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4587 * xcoffread.c (xcoff_secnum_to_sections): New function.
4588 (secnum_to_section, secnum_to_bfd_section): Reimplement
4589 using xcoff_secnum_to_sections. Rename "secnum" parameter
4591 (RECORD_MINIMAL_SYMBOL): Delete.
4592 (record_minimal_symbol): New function.
4593 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4594 by call to record_minimal_symbol and set misc_func_recorded
4595 to 1. Set last_csect_sec to the XCOFF section index instead
4596 of GDB's section_offset index. Update calls to
4597 prim_record_minimal_symbol_and_info to pass the BFD section
4600 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4602 * xcoffread.c (read_xcoff_symtab): Delete variables
4603 last_csect_val and last_csect_sec and associated code.
4605 2012-04-17 Doug Evans <dje@google.com>
4607 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4608 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4609 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4610 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4612 * cleanups.h: New file.
4613 * cleanups.c: New file.
4614 * Makefile.in (SFILES): Add cleanups.c.
4615 (HFILES_NO_SRCDIR): Add cleanups.h.
4616 (COMMON_OBS): Add cleanups.o.
4617 * defs.h (struct cleanup): Moved to cleanups.h.
4618 (do_cleanups,do_final_cleanups): Ditto.
4619 (discard_cleanups,discard_final_cleanups): Ditto
4620 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4621 (save_cleanups,save_final_cleanups): Ditto.
4622 (restore_cleanups,restore_final_cleanups): Ditto.
4623 (null_cleanup): Ditto.
4624 (make_my_cleanup,make_my_cleanup2): Ditto.
4625 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4626 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4627 (do_cleanups,do_final_cleanups): Ditto.
4628 (discard_cleanups,discard_final_cleanups): Ditto
4629 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4630 (save_cleanups,save_final_cleanups): Ditto.
4631 (restore_cleanups,restore_final_cleanups): Ditto.
4632 (null_cleanup): Ditto.
4633 (make_my_cleanup,make_my_cleanup2): Ditto.
4634 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4636 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4638 (make_cleanup_dyn_string_delete): Ditto.
4639 (make_cleanup_ui_file_delete): Ditto.
4640 (make_cleanup_ui_out_redirect_pop): Ditto.
4641 (make_cleanup_free_section_addr_info): Ditto.
4642 (make_cleanup_restore_integer): Ditto.
4643 (make_cleanup_unpush_target): Ditto.
4644 (make_cleanup_value_free_to_mark): Ditto.
4645 (make_cleanup_value_free): Ditto.
4646 (make_cleanup_free_so): Ditto.
4648 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4650 New option "set debug auto-load".
4651 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4652 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4653 (auto_load_safe_path_vec_update)
4654 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4656 (file_is_auto_load_safe): New parameters debug_fmt and ....
4657 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4658 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4659 caller by explanatory string.
4660 (_initialize_auto_load): Register "set debug auto-load".
4661 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4663 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4664 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4665 by explanatory string.
4666 * main.c (captured_main): Likewise.
4667 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4668 (source_section_scripts): Likewise.
4670 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4672 New option "set auto-load safe-path".
4673 * NEWS: New commands "set auto-load safe-path"
4674 and "show auto-load safe-path".
4675 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4676 (auto_load_safe_path, auto_load_safe_path_vec)
4677 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4678 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4679 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4680 (source_gdb_script_for_objfile): New variable is_safe. Call
4681 file_is_auto_load_safe. Return if it is not.
4682 (struct loaded_script): New field loaded.
4683 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4684 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4685 output "Missing" to "No".
4686 (_initialize_auto_load): New variable cmd. Initialize
4687 auto_load_safe_path. Register "set auto-load safe-path",
4688 "show auto-load safe-path" and "add-auto-load-safe-path".
4689 * auto-load.h (maybe_add_script): Add parameter loaded.
4690 (file_is_auto_load_safe): New declaration.
4691 * config.in: Regenerate.
4692 * configure: Regenerate.
4693 * configure.ac: New parameters --with-auto-load-safe-path
4694 and --without-auto-load-safe-path.
4695 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4696 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4697 * main.c (captured_main): Check file_is_auto_load_safe for
4699 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4700 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4701 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4704 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4706 auto-load: Implementation.
4707 * NEWS: New descriptions for "info auto-load",
4708 "info auto-load gdb-scripts", "info auto-load python-scripts",
4709 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4710 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4711 and "show auto-load-scripts". New description for "set auto-load",
4712 "show auto-load", "set auto-load gdb-scripts",
4713 "show auto-load gdb-scripts", "set auto-load python-scripts",
4714 "show auto-load python-scripts", "set auto-load local-gdbinit",
4715 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4716 "show auto-load libthread-db".
4717 * auto-load.c: Remove include python/python-internal.h. Add includes
4718 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4720 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4721 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4722 (gdbpy_global_auto_load): Rename to ...
4723 (global_auto_load): ... here.
4724 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4725 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4726 (script_language_gdb, source_gdb_script_for_objfile): New.
4727 (struct loaded_script): New field language.
4728 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4730 (maybe_add_script): Add parameter language. Drop redundant
4731 entry.full_path initialization. Initialize entry.language and
4733 (auto_load_objfile_script): Change parameter suffix to language.
4734 Remove the call of maybe_add_script.
4735 Call language->source_script_for_objfile.
4736 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4738 (collect_matching_scripts): Adjust it for
4739 struct collect_matching_scripts_data.
4740 (auto_load_info_scripts_pattern_nl): New variable.
4741 (info_auto_load_scripts): Rename to ...
4742 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4743 for struct collect_matching_scripts_data.
4744 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4745 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4746 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4747 (auto_load_info_cmdlist_get): New.
4748 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4749 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4750 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4751 "info auto-load local-gdbinit".
4752 * auto-load.h (struct script_language): New.
4753 (gdbpy_global_auto_load): Rename to ...
4754 (global_auto_load): ... here.
4755 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4756 (auto_load_local_gdbinit_loaded): New declarations.
4757 (maybe_add_script): New parameter language.
4758 (auto_load_objfile_script): Change parameter suffix to language.
4759 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4760 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4761 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4763 * linux-thread-db.c: Include auto-load.h and ctype.h.
4764 (auto_load_thread_db, show_auto_load_thread_db): New.
4765 (struct thread_db_info): New field filename.
4766 (delete_thread_db_info): Call xfree for FILENAME.
4767 (try_thread_db_load): Initialize FILENAME.
4768 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4769 if !AUTO_LOAD_THREAD_DB.
4770 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4771 (_initialize_thread_db): Install auto_load_thread_db
4772 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4773 as "info auto-load libthread-db".
4774 * main.c (captured_main): Rename gdbpy_global_auto_load to
4775 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4776 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4777 (print_gdb_help): Extend the help for 'local init file'.
4778 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4779 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4780 (auto_load_scripts): Rename to ...
4781 (auto_load_python_scripts): ... here, update the comment.
4782 (gdbpy_load_auto_script_for_objfile): New declaration.
4783 (show_auto_load_python_scripts, script_language_python)
4784 (gdbpy_load_auto_script_for_objfile): New.
4785 (source_section_scripts): Refactor the code.
4786 (load_auto_scripts_for_objfile): Rename to ...
4787 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4788 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4789 (info_auto_load_python_scripts): New.
4790 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4791 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4792 Register "set auto-load-scripts" as its deprecated alias. Register
4793 "info auto-load python-scripts". Register "info auto-load-scripts" as
4794 its deprecated alias.
4795 (load_auto_scripts_for_objfile): Rename to ...
4796 (gdbpy_load_auto_scripts_for_objfile): ... here.
4797 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4798 (gdbpy_load_auto_scripts_for_objfile): ... here.
4800 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4802 auto-load: Move files.
4803 * Makefile.in (SFILES): Add auto-load.c.
4804 (HFILES_NO_SRCDIR): Add auto-load.h.
4805 (COMMON_OBS): Add auto-load.o.
4806 (distclean): Change .gdbinit for gdb-gdb.gdb.
4807 * auto-load.c: New file, with parts from python/py-auto-load.c.
4808 * auto-load.h: New file, with parts from python/python.h.
4809 * configure: Regenerate.
4810 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4811 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4812 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4813 * main.c: Include auto-load.h.
4814 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4815 command.h, observer.h and progspace.h to auto-load.c. Add include
4817 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4818 (struct loaded_script, auto_load_pspace_data)
4819 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4820 (hash_loaded_script_entry, eq_loaded_script_entry)
4821 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4822 (maybe_add_script): Move to auto-load.c.
4823 (source_section_scripts): Change maybe_add_script parameters passing,
4824 use script_not_found_warning_print.
4825 (clear_section_scripts, auto_load_objfile_script)
4826 (auto_load_new_objfile, loaded_script_ptr)
4827 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4828 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4829 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4830 auto_load_new_objfile and info_auto_load_scripts initizations to
4832 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4834 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4837 * charset.c (find_charset_names): Remove variables ix and elt.
4838 Use free_char_ptr_vec.
4839 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4840 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4841 debugdir_end. New variable debugdir_len.
4842 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4843 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4845 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4846 and elt. Use free_char_ptr_vec.
4847 * source.c (add_path): Remove variables argv, arg and argv_index.
4848 New variables dir_vec, back_to, ix and name.
4849 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4850 make_cleanup_freeargv. Remove variable separator. Simplify the code
4851 no longer expecting DIRNAME_SEPARATOR.
4852 (openp): Remove variable p, p1 and len. New variables dir_vec,
4853 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4854 no longer expecting DIRNAME_SEPARATOR.
4855 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4856 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4858 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4859 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4860 (dirnames_to_char_ptr_vec): New functions.
4862 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4865 * source.c (add_path): Remove always true conditional 'p == 0' and
4866 unindent its code block.
4868 2012-04-17 Pedro Alves <palves@redhat.com>
4870 * gdbtypes.h (FIELD_BITPOS): Rename to ...
4871 (FIELD_BITPOS_LVAL): ... this.
4872 (FIELD_BITPOS): New.
4873 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4874 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
4875 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
4877 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
4879 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
4880 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
4881 * target-descriptions.c (tdesc_gdb_type): Adjust to use
4884 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4886 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
4887 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
4888 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
4889 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
4890 * jv-lang.c (java_link_class_type): Likewise, once.
4891 * stabsread.c (read_enum_type): Likewise.
4893 2012-04-16 Yao Qi <yao@codesourcery.com>
4895 * common/agent.c (agent_run_command): Add one more parameter `len'.
4897 * common/agent.h: Update declaration.
4898 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4900 (linux_child_static_tracepoint_markers_by_strid): Ditto.
4902 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
4905 * value.c (value_actual_type): New function.
4906 * value.h (value_actual_type): New declaration.
4907 * varobj.c (update_type_if_necessary): New function.
4908 (varobj_create): Call value_actual_type instead of
4910 (install_dynamic_child): distinct changed and type changed MI variable
4912 (update_dynamic_varobj_children): Updated for install_dynamic_child
4913 change. All callers updated.
4914 (varobj_update): Support for MI variable object type change if
4915 the value changed and RTTI is used to determine the type.
4916 (create_child_with_value): Call value_actual_type instead of
4918 (adjust_value_for_child_access): Extended with a new parameter which
4919 specify whether the given value should be casted to enclosing type.
4920 All callers updated.
4922 2012-04-14 Yao Qi <yao@codesourcery.com>
4924 Import gnulib module inttypes from git
4925 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4926 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
4927 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
4928 gnulib/m4/inttypes-pri.m4
4929 * aclocal.m4, config.in, configure: Regenerated.
4930 * gnulib/Makefile.am: Update.
4931 * gnulib/Makefile.in: Update.
4932 * gnulib/m4/gnulib-cache.m4: Update.
4933 * gnulib/m4/gnulib-comp.m4: Update.
4934 * gnulib/inttypes.in.h: New.
4935 * gnulib/m4/inttypes-pri.m4: New.
4936 * gnulib/m4/inttypes.m4: New.
4938 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
4940 * infrun.c (resume): Update PC address to the real PC after
4941 preparing to do displaced stepping.
4943 2012-04-12 Doug Evans <dje@google.com>
4945 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
4946 All callers updated.
4948 2012-04-12 Mark Kettenis <kettenis@gnu.org>
4950 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
4952 2012-04-12 Doug Evans <dje@google.com>
4954 * dwarf2read.c (create_all_type_units): Renamed from
4955 create_debug_types_hash_table. All callers updated.
4957 * dwarf2read.c (create_signatured_type_table_from_index): Rename
4958 local type_sig to sig_type, type_offset to type_offset_in_tu.
4959 (hash_signatured_type): Renamed from hash_type_signature,
4960 all callers updated.
4961 (eq_signatured_type): Renamed from eq_type_signature,
4962 all callers updated.
4963 (create_debug_types_hash_table): Rename local type_sig to sig_type.
4964 (process_enumeration_scope): Ditto.
4965 (lookup_signatured_type_at_offset): Ditto.
4966 (load_full_type_unit, read_signatured_type): Ditto.
4968 2012-04-12 Yao Qi <yao@codesourcery.com>
4970 * remote.c (async_remote_interrupt): Correct function name in
4972 (async_remote_interrupt_twice): Ditto.
4974 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
4976 * source.c (find_and_open_source): Consistently pass resulting
4977 full path through xfullpath.
4979 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4981 Provide more specific displaced-stepping memory error message.
4982 * infrun.c (displaced_step_prepare): New variable status. Call
4983 target_read_memory instead of read_memory, provide more specific
4986 2012-04-11 Tristan Gingold <gingold@adacore.com>
4989 * darwin-nat.c (darwin_execvp): Revert previous patch.
4991 2012-04-11 Tristan Gingold <gingold@adacore.com>
4994 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
4997 2012-04-11 Tristan Gingold <gingold@adacore.com>
4999 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5002 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
5004 New command 'explore' which helps explore values and types in
5006 * NEWS: Add an entry about the new 'explore' command.
5007 * data-directory/Makefile.in: Add gdb/command/explore.py
5008 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
5009 command using the GDB Python API.
5011 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5013 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
5014 extension in jump target calculation.
5016 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5018 * mips-tdep.c (mips32_next_pc): Handle JALX.
5020 2012-04-10 Yao Qi <yao@codesourcery.com>
5022 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
5024 2012-04-10 Yao Qi <yao@codesourcery.com>
5026 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
5027 and gnulib/m4/gnulib-tool.m4.
5029 2012-04-10 Doug Evans <dje@google.com>
5031 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
5032 (load_partial_dies): Clarify comment.
5033 (find_partial_die): Support rereading type units.
5034 Clarify CU handling, if we know offset is in CU, don't search for the
5035 containing CU. Add comment regarding memory waste.
5037 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
5039 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5040 i386/x32-avx and i386/x32-avx-linux.
5041 (i386/x32-expedite): New.
5042 (i386/x32-linux-expedite): Likewise.
5043 (i386/x32-avx-expedite): Likewise.
5044 (i386/x32-avx-linux-expedite): Likewise.
5045 ($(outdir)/i386/x32.dat): Likewise.
5046 ($(outdir)/i386/x32-linux.dat): Likewise.
5047 ($(outdir)/i386/x32-avx.dat): Likewise.
5048 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5050 * features/i386/x32-avx-linux.xml: New file.
5051 * features/i386/x32-avx.xml: Likewise.
5052 * features/i386/x32-core.xml: Likewise.
5053 * features/i386/x32-linux.xml: Likewise.
5054 * features/i386/x32.xml: Likewise.
5056 * features/i386/x32-avx-linux.c: New. Generated.
5057 * features/i386/x32-avx.c: Likewise.
5058 * features/i386/x32-linux.c: Likewise.
5059 * features/i386/x32.c: Likewise.
5060 * regformats/i386/x32-avx-linux.dat: Likewise.
5061 * regformats/i386/x32-avx.dat: Likewise.
5062 * regformats/i386/x32-linux.dat: Likewise.
5063 * regformats/i386/x32.dat: Likewise.
5065 2012-04-10 Tristan Gingold <gingold@adacore.com>
5067 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5068 code to kill the inferior.
5070 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5072 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5074 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5076 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5077 (yyvsp): New defines.
5078 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5080 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5082 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5084 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5086 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5089 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5091 * sparc64-tdep.c (sparc64_store_arguments)
5092 (sparc64_store_arguments): Fix coding style.
5094 2012-04-07 Mark Kettenis <kettenis@gnu.org>
5096 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5097 complex floats, adjust some related comments and tighten a related
5099 (sparc64_extract_return_value): Handle complex floats.
5101 2012-04-07 Doug Evans <dje@google.com>
5103 * dwarf2read.c (load_partial_dies): Change condition to assert.
5105 2012-04-06 Doug Evans <dje@google.com>
5107 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5110 2012-04-05 Kevin Buettner <kevinb@redhat.com>
5112 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5114 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5115 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5118 2012-04-05 Keith Seitz <keiths@redhat.com>
5120 * linespec.c (decode_compound): Remove.
5121 (enum offset_relative_sign): New enum.
5122 (struct line_offset): New struct.
5123 (struct linespec): New struct.
5124 (struct linespec_state): Move file_symtabs,
5125 user_filename, and user_function into struct linespec.
5126 Make result an anonymous struct holding vectors of
5127 symbolp and minsym_and_objfile_d.
5128 Add language member.
5129 (enum ls_token_type): New enum.
5130 (linespec_keywords): New array.
5131 (struct ls_token): New struct.
5132 (struct ls_parser): New struct.
5133 (linespec_lexer_lex_number): New function.
5134 (linespec_lexer_lex_keyword): New function.
5135 (is_ada_operator): New function.
5136 (skip_quote_char): New function.
5137 (copy_token_string): New function.
5138 (is_closing_quote_enclosed): New function.
5139 (find_parameter_list_end): New function.
5140 (linespec_lexer_lex_string): New function.
5141 (linespec_lexer_lex_one): New function.
5142 (linespec_lexer_consume_token): New function.
5143 (linespec_lexer_peek_token): New function.
5144 (cplusplus_error): Remove unused function.
5145 (find_methods): Update comment.
5146 (find_toplevel_char): Return const.
5147 (is_objc_method_format): Remove unused function.
5148 (find_toplevel_string): New function.
5149 (is_linespec_boundary): Remove.
5150 (symbol_not_found_error): New function.
5151 (find_method_overload_end): Remove function.
5152 (unexpected_linespec_error): New function.
5153 (keep_name_info): Remove.
5154 (linespec_parse_line_offset): New function.
5155 (linespec_parse_basic): New function.
5156 (canonicalize_linespec): New function.
5157 (decode_line_internal): Remove.
5158 (create_sals_line_offset): New function adapted from
5160 (convert_linespec_to_sals): New function.
5161 (parse_linespec): New function.
5162 (linespec_parser_new): New function.
5163 (linespec_state_destructor): Change parameter type to
5164 struct linespec_state *.
5165 Add language parameter.
5166 Remove freeing of moved members.
5167 (linespec_parser_delete): New function.
5168 (decode_line_full): Use parse_linespec and linespec_parser_new.
5169 (decode_line_1): Likewise.
5170 (decode_indirect): Rename to ...
5171 (linespec_expression_to_pc): ... this and rewrite
5172 to simply find CORE_ADDR, storing this result for later
5174 (locate_first_half): Remove.
5175 (deocde_objc): Add parameter LS.
5176 Initialize new struct collect_info members.
5177 Handle minimal symbols, too.
5178 (decode_compound): Delete.
5179 (lookup_prefix_sym): Rewrite.
5180 (compare_msymbols): New function.
5181 (find_method): Rewrite.
5182 Do not call cplusplus_error.
5183 (symtabs_from_filename): Rewrite.
5184 (collect_function_symbols): Delete.
5185 (find_function_symbols): Rewrite without ARGPTR-style
5187 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5188 (decode_dollar): Adapted and renamed to ...
5189 (linespec_parse_variable): ... this.
5190 (find_linespec_symbols): New function.
5191 (decode_label): Adapted and renamed to ...
5192 (find_label_symbols): ... this.
5193 (decode_digits_list_mode): Add and use LS argument.
5194 (decode_digits_ordinary): Likewise.
5195 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5196 If in list mode, allow any symbol class. Otherwise, only
5197 permit LOC_BLOCK symbols.
5198 (minsym_found): Update comments.
5199 (search_minsyms_for_name): Do not convert the matching symbol
5200 into a SAL. Simply push the symbol and objfile into the
5202 (decode_variable): Delete. Contents adapted into
5203 find_linespec_symbols.
5205 * cp-support.c (SKIP_SPACE): Remove.
5206 (operator_tokens): Remove unused global.
5207 (cp_validate_operator): Remove.
5208 * cp-support.h (cp_validate_operator): Remove declaration.
5210 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5212 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5213 for TYPE_VPTR_FIELDNO.
5214 * valprint.c (valprint_check_validity): Make it global, move the
5215 function comment ...
5216 * value.h (valprint_check_validity): ... to this new declaration.
5218 2012-04-02 Tristan Gingold <gingold@adacore.com>
5220 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5221 the STATE32 api for i386 state.
5222 (i386_darwin_store_inferior_registers): Likewise.
5224 2012-04-02 Tristan Gingold <gingold@adacore.com>
5226 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5228 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5231 2012-04-02 Tristan Gingold <gingold@adacore.com>
5234 * darwin-nat.c (darwin_execvp): Set binary preference.
5236 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5238 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5240 2012-03-30 Tom Tromey <tromey@redhat.com>
5242 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5243 of TRY_CATCH. Fix error handling.
5244 * python/py-value.c (convert_value_from_python): Move 'old'
5245 declaration to innermost scope.
5247 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5248 Andrey Smirnov <andrew.smirnov@gmail.com>
5250 -Wshadow warning fix.
5251 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5252 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5253 Adjust code accordingly.
5255 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5257 * ada-lang.c (symbol_completion_add): Rename parameter
5258 "encoded" into "encoded_p". Ajust code and documentation
5261 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5262 Andrey Smirnov <andrew.smirnov@gmail.com>
5264 -Wshadow warning fix.
5265 * ada-lang.c (symbol_completion_add): Rename parameter
5266 "wild_match" into wild_match_p. Update code and documentation
5269 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5271 * ada-lang.c (symbol_completion_match): Rename parameter
5272 "encoded" into "encoded_p". Ajust code and documentation
5275 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5276 Andrey Smirnov <andrew.smirnov@gmail.com>
5278 -Wshadow warning fix.
5279 * ada-lang.c (symbol_completion_match): Rename parameter
5280 "wild_match" into "wild_match_p". Adjust code and function
5281 documentation accordingly.
5283 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5284 Andrey Smirnov <andrew.smirnov@gmail.com>
5286 -Wshadow warning fix.
5287 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5288 "symbol_info" into "info". Adjust code accordingly.
5289 (ada_lookup_symbol): Likewise.
5291 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5293 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5294 of this function's documentation.
5296 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5297 Andrey Smirnov <andrew.smirnov@gmail.com>
5299 -Wshadow warning fix.
5300 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5301 variable into "wild_match_p". Adjust code accordingly.
5303 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5304 Andrey Smirnov <andrew.smirnov@gmail.com>
5306 -Wshadow warning fix.
5307 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5308 parameter into "wild_match_p". Adjust code accordingly.
5309 Document this parameter in the function description.
5311 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5312 Andrey Smirnov <andrew.smirnov@gmail.com>
5314 -Wshadow warning fix.
5315 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5316 "wild_match" parameter to "wild_match_p" (-Wshadow).
5318 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5320 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5321 in function documentation.
5323 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5324 Andrey Smirnov <andrew.smirnov@gmail.com>
5326 -Wshadow warning fix.
5327 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5328 variable into wild_match_p. Adjust code accordingly.
5330 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5331 Andrey Smirnov <andrew.smirnov@gmail.com>
5333 * ada-valprint.c (ada_val_print_1): Move the code handling
5334 TYPE_CODE_ENUM inside its own lexical block. Declare
5335 variables len and val there, instead of in the function's
5336 top level block. Avoid declaring deref_val again in a way
5337 that shadows another variable of the same name declared
5338 in one of the up-level blocks. Just re-use the up-level
5341 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5343 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5344 Replace block_found argument by symbol_info. Adjust
5345 implementation accordingly. Add function documentation.
5346 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5348 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5349 * ada-exp.y (write_object_renaming): Adjust to new
5350 ada_lookup_encoded_symbol API.
5352 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5354 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5357 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5359 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5360 (v850_register_name): Add the mpu and fpu register names.
5361 (v850e_register_name): Add the mpu and fpu register names.
5362 (v850e2_register_name): New function.
5363 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5366 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5368 * NEWS: Add entry for Ada varobj support.
5370 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5372 * varobj.c (default_value_is_changeable_p): New function,
5373 extracted from varobj_value_is_changeable_p. Add declaration.
5374 (ada_value_is_changeable_p): New function, extracted from
5375 varobj_value_is_changeable_p. Add declaration.
5376 (struct language_specific): New field "value_is_changeable_p".
5377 (languages): Add entries for new field.
5378 (varobj_create): Set language before calling install_new_value.
5379 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5380 "value_is_changeable_p" language callback.
5382 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5384 * ada-varobj.h, ada-varobj.c: New files.
5385 * Makefile.in (SFILES): Add ada-varobj.c.
5386 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5387 (COMMON_OBS): Add ada-varobj.o.
5389 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5391 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5392 (struct language_specific): New field "value_has_mutated".
5393 (languages): Set field "value_has_mutated" in each entry of array.
5394 (varobj_value_has_mutated): New function.
5395 (varobj_udpdate): Add handling of type mutation.
5396 (value_of_root): Add handling of type mutation.
5397 (ada_value_has_mutated): New function.
5399 2012-03-28 Pedro Alves <palves@redhat.com>
5401 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5402 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5404 2012-03-28 Tom Tromey <tromey@redhat.com>
5406 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5407 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5410 2012-03-28 Tom Tromey <tromey@redhat.com>
5412 * .dir-locals.el: New file.
5414 2012-03-28 Pedro Alves <palves@redhat.com>
5416 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5418 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5420 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5423 2012-03-27 Pedro Alves <palves@redhat.com>
5425 Eliminate struct ui_stream.
5427 * ui-out.h (struct ui_stream): Delete.
5428 (ui_out_field_stream): Adjust prototype.
5429 (ui_out_stream_new, ui_out_stream_delete)
5430 (make_cleanup_ui_out_stream_delete): Delete declarations.
5431 * ui-out.c (ui_out_field_stream): Change prototype to take a
5432 ui_file instead of a ui_stream. Adjust.
5433 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5434 (make_cleanup_ui_out_stream_delete): Delete.
5435 * breakpoint.c (print_breakpoint_location)
5436 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5437 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5438 * disasm.c (dump_insns): Ditto.
5439 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5441 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5442 ui_stream/ui_out_stream_new.
5443 * infcmd.c (print_return_value): Ditto.
5444 * osdata.c (info_osdata_command): Don't allocate a local
5446 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5447 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5448 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5449 allocate a local ui_stream.
5450 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5451 instead of ui_stream/ui_out_stream_new.
5452 (list_args_or_locals): Don't allocate a local ui_stream.
5453 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5454 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5455 ui_stream/ui_out_stream_new.
5456 * cli/cli-setshow.c (do_setshow_command): Ditto.
5458 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5460 * arm-linux-tdep.c (arm_linux_init_abi): Call
5461 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5462 * arm-tdep.c (arm_process_record): New function.
5463 (deallocate_reg_mem): New function.
5464 (decode_insn): New function.
5465 (thumb_record_branch): New function.
5466 (thumb_record_ldm_stm_swi(): New function.
5467 (thumb_record_misc): New function.
5468 (thumb_record_ld_st_stack): New function.
5469 (thumb_record_ld_st_imm_offset): New function.
5470 (thumb_record_ld_st_reg_offset(): New function.
5471 (thumb_record_add_sub_cmp_mov): New function.
5472 (thumb_record_shift_add_sub): New function.
5473 (arm_record_coproc_data_proc): New function.
5474 (arm_record_coproc): New function.
5475 (arm_record_b_bl): New function.
5476 (arm_record_ld_st_multiple): New function.
5477 (arm_record_ld_st_reg_offset): New function.
5478 (arm_record_ld_st_imm_offset): New function.
5479 (arm_record_data_proc_imm): New function.
5480 (arm_record_data_proc_misc_ld_str): New function.
5481 (arm_record_extension_space): New function.
5482 (arm_record_strx): New function.
5483 (sbo_sbz): New function.
5484 (struct insn_decode_record): New structure for arm insn record.
5485 (REG_ALLOC): New macro for reg allocations.
5486 (MEM_ALLOC): New macro for memory allocations.
5487 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5489 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5491 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5492 (store_register): Likewise.
5494 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5496 * MAINTAINERS (Write After Approval): Add myself to the list.
5498 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5500 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5501 Describe also the option "auto".
5503 2012-03-22 Richard Henderson <rth@redhat.com>
5505 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5506 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5508 2012-03-22 Richard Henderson <rth@redhat.com>
5510 * jit.c (jit_read_code_entry): Compute alignment and offset of
5511 int64_t member before computing entry_size.
5513 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5515 Python scripting: Add new method Value.referenced_value to
5516 gdb.Value which can dereference pointer as well as reference
5518 * NEWS: Add entry under 'Python scripting' about the new method
5519 Value.referenced_value on gdb.Value objects.
5520 * python/py-value.c (valpy_referenced_value): New function
5521 defining a new method on gdb.Value objects which can dereference
5522 pointer and reference values.
5524 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5526 * MAINTAINERS (Write After Approval): Add myself to the list.
5528 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5530 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5531 in addition to "main".
5533 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5535 * expression.h (op_name): Add declaration.
5536 * expprint.c (op_name): Remove declaration. Make non-static.
5537 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5539 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5541 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5543 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5544 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5545 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5546 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5547 (linux_nat_get_siginfo): Likewise.
5548 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5549 (linux_nat_get_siginfo): Likewise.
5550 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5551 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5552 * procfs.c (gdb_siginfo_t): Likewise.
5554 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5556 * .gitignore: Ignore more files.
5558 2012-03-20 Pedro Alves <palves@redhat.com>
5560 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5563 2012-03-20 Yao Qi <yao@codesourcery.com>
5565 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5568 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5570 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5571 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5572 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5574 * dwarf2expr.h (cu_offset, sect_offset): New types.
5575 (struct dwarf_expr_context_funcs) <dwarf_call>
5576 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5578 (struct dwarf_expr_context) <len>: Improve the comment.
5579 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5580 cu_offset and sect_offset.
5581 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5582 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5583 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5584 * dwarf2loc.h: Include dwarf2expr.h.
5585 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5587 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5588 Improve the comment.
5589 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5590 (struct signatured_type, struct line_header, struct partial_die_info)
5591 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5592 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5593 (get_die_type_at_offset, create_cus_from_index)
5594 (create_signatured_type_table_from_index, dw2_get_file_names)
5595 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5596 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5597 (create_debug_types_hash_table, process_psymtab_comp_unit)
5598 (load_partial_comp_unit, create_all_comp_units)
5599 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5600 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5601 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5602 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5603 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5604 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5605 (find_partial_die, read_attribute_value, lookup_die_type)
5606 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5607 (is_ref_attr): New function comment.
5608 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5609 Use cu_offset and sect_offset.
5610 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5611 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5612 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5613 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5614 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5615 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5616 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5619 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5622 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5623 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5625 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5627 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5629 * NEWS: Describe new options --init-command=FILE, -ix and
5630 --init-eval-command=COMMAND, -iex.
5631 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5632 CMDARG_INIT_COMMAND.
5633 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5634 "init-command", "init-eval-command", "ix" and "iex" to the variable
5635 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5636 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5637 (print_gdb_help): Describe --init-command=FILE, -ix and
5638 --init-eval-command=COMMAND, -iex.
5640 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5643 * main.c (struct cmdarg): Move it here from main. Add more comments.
5644 (cmdarg_s, VEC (cmdarg_s)): New.
5645 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5646 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5647 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5648 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5651 2012-03-19 Tom Tromey <tromey@redhat.com>
5653 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5655 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5658 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5661 2012-03-16 Chris January <chris.january@allinea.com>
5663 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5666 2012-03-16 Chris January <chris.january@allinea.com>
5668 * source.c (add_path): Use memmove instead of strcpy because the
5671 2012-03-16 Joel Brobecker <brobecker@adacore.com>
5673 * value.h (set_value_parent): Add declaration.
5674 * value.c (set_value_parent): New function.
5675 (value_address): If VALUE->PARENT is not NULL, then use it as
5676 the base address instead of VALUE->LOCATION.address.
5677 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5678 the same as OBJ's address. Adjust V's offset accordingly.
5681 2012-03-16 Gary Benson <gbenson@redhat.com>
5683 PR breakpoints/10738
5684 * dwarf2read.c (use_deprecated_index_sections): New global.
5685 (struct partial_die_info): New member may_be_inlined.
5686 (read_partial_die): Set may_be_inlined where appropriate.
5687 (add_partial_subprogram): Add partial symbols for partial
5688 DIEs that may be inlined.
5689 (new_symbol_full): Add inlined subroutines to the current
5691 (write_psymtabs_to_index): Bump version number.
5692 (dwarf2_read_index): Read only version 6 indices unless
5693 use_deprecated_index_sections is set.
5694 * linespec.c (symbol_and_data_callback): New structure.
5695 (iterate_inline_only): New function.
5696 (iterate_over_all_matching_symtabs): New argument
5697 "include_inline". If nonzero, also call the callback for
5698 symbols representing inlined subroutines.
5699 (lookup_prefix_sym): Pass extra argument to the above.
5700 (find_function_symbols): Likewise.
5701 (add_matching_symbols_to_info): Likewise.
5702 * NEWS: Mention that GDB can now set breakpoints on inlined
5705 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5707 * p-typeprint.c (pascal_type_print_method_args):
5708 Fix display of parameter of methods.
5710 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5712 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5713 Add missing prototype.
5715 2012-03-16 Yao Qi <yao@codesourcery.com>
5716 Jan Kratochvil <jan.kratochvil@redhat.com>
5718 Fix false compilation warning.
5719 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5721 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5722 Pedro Alves <pedro@codesourcery.com>
5724 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5725 (arm_register_g_packet_guesses): New function.
5726 (arm_gdbarch_init): Don't force a target description with
5727 registers when the executable is detected as M-profile. Instead
5728 set gdbarch->tdep->is_m. Register `g' packet guesses.
5729 (_initialize_arm_tdep): Initialize the new target description.
5730 * features/arm-with-m-fpa-layout.xml: New description.
5731 * features/arm-with-m-fpa-layout.c: New, generated.
5733 2012-03-15 Joel Brobecker <brobecker@adacore.com>
5735 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5736 Update function description.
5737 (insert_bp_location): Do not wipe bl->target_info out.
5738 * mem-break.c: #include "gdb_string.h".
5739 (default_memory_insert_breakpoint): Do not call target_read_memory
5740 with a pointer to the breakpoint's shadow_contents buffer. Use
5741 a local buffer instead.
5742 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5744 2012-03-15 Tom Tromey <tromey@redhat.com>
5746 * NEWS: Mention "info vtbl", not "info vtable".
5747 * cp-support.c (info_vtbl_command): Fix comment.
5748 (_initialize_cp_support): Fix text.
5750 2012-03-15 Tom Tromey <tromey@redhat.com>
5752 * cp-valprint.c (cp_print_value_fields): Use
5753 print_function_pointer_address for vtable slot.
5755 2012-03-15 Tom Tromey <tromey@redhat.com>
5757 * gnu-v3-abi.c (struct value_and_voffset): New.
5758 (hash_value_and_voffset, eq_value_and_voffset)
5759 (compare_value_and_voffset, compute_vtable_size)
5760 (print_one_vtable, gnuv3_print_vtable): New functions.
5761 (init_gnuv3_ops): Initialize 'print_vtable' field.
5762 * cp-support.c (info_vtbl_command): New function.
5763 (_initialize_cp_support): Add "info vtbl".
5764 * cp-abi.h (cplus_print_vtable): Declare.
5765 (struct cp_abi_ops) <print_vtable>: New field.
5766 * cp-abi.c (cplus_print_vtable): New function.
5769 2012-03-15 Tom Tromey <tromey@redhat.com>
5771 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5772 iterate_over_symbols.
5774 2012-03-14 Doug Evans <dje@google.com>
5776 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5777 DW_OP_GNU_parameter_ref.
5779 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5781 Fix double prompt of 'interpreter-exec mi'.
5782 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5783 (mi_interpreter_resume): use it.
5784 (mi_execute_command_input_handler): New function.
5785 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5786 mi_execute_command_input_handler.
5788 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
5790 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5792 (darwin_debug_port_info): Make static.
5793 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5794 * machoread.c (_initialize_machoread): Add prototype.
5795 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5796 (i386_darwin_set_control, i386_darwin_get_control)
5797 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5798 i386_darwin_get_status, i386_darwin_get_control):
5799 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5801 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5803 * ax-gdb.c (gen_usual_unary): Remove special handling of
5804 enum and bool types.
5806 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5808 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5810 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5812 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5814 2012-03-13 Chris January <chris.january@allinea.com>
5816 * aix-thread.c (fill_sprs): Store the floating point registers
5817 at the correct offsets into vals.
5819 2012-03-13 Doug Evans <dje@google.com>
5821 * NEWS: Mention symbol-reloading has been deleted.
5822 * symfile.c (symbol_reloading): Delete.
5823 (show_symbol_reloading): Delete.
5824 (_initialize_symfile): Delete set/show symbol-reloading.
5826 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5827 read_in_chain until we have successfully read it in.
5828 (load_full_comp_unit): Ditto.
5829 (read_signatured_type): Add comment.
5831 2012-03-13 Chris January <chris.january@allinea.com>
5833 * stabsread.c (fix_common_block): Change type of valu argument
5836 2012-03-13 Chris January <chris.january@allinea.com>
5838 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5841 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5843 * common/linux-procfs.c (linux_proc_get_int): New, from
5844 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5846 (linux_proc_get_tgid): Only call linux_proc_get_int.
5847 (linux_proc_get_tracerpid): New.
5848 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5849 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5850 linux_proc_pid_has_state.
5851 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5852 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5853 (linux_ptrace_attach_warnings): New.
5854 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5856 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5857 (linux_nat_attach): New variables ex, buffer, message and message_s.
5858 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5860 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5862 * Makefile.in (linux-ptrace.o): New.
5863 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5865 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5866 * common/linux-ptrace.c: New file.
5867 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5868 * config/arm/linux.mh: Likewise.
5869 * config/i386/linux.mh: Likewise.
5870 * config/i386/linux64.mh: Likewise.
5871 * config/ia64/linux.mh: Likewise.
5872 * config/m32r/linux.mh: Likewise.
5873 * config/m68k/linux.mh: Likewise.
5874 * config/mips/linux.mh: Likewise.
5875 * config/pa/linux.mh: Likewise.
5876 * config/powerpc/linux.mh: Likewise.
5877 * config/powerpc/ppc64-linux.mh: Likewise.
5878 * config/powerpc/spu-linux.mh: Likewise.
5879 * config/s390/s390.mh: Likewise.
5880 * config/sparc/linux.mh: Likewise.
5881 * config/sparc/linux64.mh: Likewise.
5882 * config/xtensa/linux.mh: Likewise.
5883 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
5884 common/linux-procfs.c.
5885 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
5887 2012-03-13 Hui Zhu <teawater@gmail.com>
5888 Pedro Alves <palves@redhat.com>
5890 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
5891 CREATE_BREAKPOINT_FLAGS_INSERTED.
5892 (create_breakpoint_sal, create_breakpoints_sal)
5893 (base_breakpoint_create_breakpoints_sal)
5894 (tracepoint_create_breakpoints_sal)
5895 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
5897 (break_command_1, handle_gnu_v3_exceptions, trace_command)
5898 (ftrace_command, strace_command): Adjust.
5899 (create_tracepoint_from_upload): Pass
5900 CREATE_BREAKPOINT_FLAGS_INSERTED.
5901 * breakpoint.h (enum breakpoint_create_flags): New.
5902 (create_breakpoint): New flags parameter.
5903 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
5904 * python/py-breakpoint.c (bppy_init): Adjust.
5905 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
5906 * spu-tdep.c (spu_catch_start): Adjust.
5908 2012-03-13 Pedro Alves <palves@redhat.com>
5909 Hui Zhu <teawater@gmail.com>
5910 Yao Qi <yao@codesourcery.com>
5912 * remote.c (struct remote_state): New field `starting_up'.
5913 (remote_start_remote): Set and clear it.
5914 (remote_can_download_tracepoint): If starting up, return false.
5916 2012-03-13 Yao Qi <yao@codesourcery.com>
5918 * inferior.h (struct inferior): Remove fields any_syscall_count,
5919 syscalls_counts and total_syscalls_count. Move them to new
5920 struct catch_syscall_inferior_data in breakpoint.c.
5921 * breakpoint.c: Call DEF_VEC_I(int).
5922 (struct catch_syscall_inferior_data): New.
5923 (get_catch_syscall_inferior_data): New.
5924 (catch_syscall_inferior_data_cleanup): New.
5925 (insert_catch_syscall): Update to access data in
5926 struct catch_syscall_inferior_data.
5927 (insert_catch_syscall): Likewise.
5928 (remove_catch_syscall): Likewise.
5929 (remove_catch_syscall): Likewise.
5930 (is_syscall_catchpoint_enabled): Likewise.
5931 (add_catch_command): Likewise.
5932 (_initialize_breakpoint): Register cleanup.
5933 * breakpoint.h: Removed DEF_VEC_I(int).
5934 * dwarf2loc.c: Call DEF_VEC_I(int).
5935 * mi/mi-main.c: Likewise.
5937 2012-03-12 Mark Kettenis <kettenis@gnu.org>
5939 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
5941 2012-03-12 Chris January <chris.january@allinea.com>
5943 * aix-thread.c (_initialize_aix_thread): Add prototype.
5944 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
5945 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
5947 2012-03-12 Joel Brobecker <brobecker@adacore.com>
5949 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
5950 include of "amd64-nat.h".
5952 2012-03-12 Tom Tromey <tromey@redhat.com>
5954 * buildsym.c (record_pending_block): Now static.
5955 * buildsym.h: (record_pending_block): Remove.
5957 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
5959 * amd64bsd-nat.c: Include amd64bsd-nat.h.
5961 2012-03-09 Tom Tromey <tromey@redhat.com>
5963 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
5964 producer_is_gxx_lt_4_6>: New fields.
5965 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
5967 2012-03-09 Tom Tromey <tromey@redhat.com>
5969 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
5971 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5973 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
5976 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5978 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
5980 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5982 Fix -Wmissing-prototypes build.
5983 * arm-linux-nat.c (get_thread_id): Make it static.
5984 * xtensa-linux-nat.c (get_thread_id): Likewise.
5986 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5988 * server.c (process_point_options): If a conditional expression
5989 is found, only print a message if remote_debug is nonzero.
5991 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
5993 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
5994 of internal error for unknown/unsupported types.
5996 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5998 Fix CU relative vs. absolute DIE offsets.
5999 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
6000 offset to offset_in_cu.
6001 * dwarf2read.c (process_enumeration_scope): Add CU offset to
6003 (dwarf2_fetch_die_location_block): Rename parameter offset to
6004 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
6006 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6008 * libunwind-frame.c: Rename to ...
6009 * ia64-libunwind-tdep.c: ... here.
6010 * libunwind-frame.h: Rename to ...
6011 * ia64-libunwind-tdep.h: ... here.
6012 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
6013 ia64-libunwind-tdep.h.
6014 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
6015 * README (--with-libunwind): Rename to ...
6016 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
6017 * config.in: Regenerate.
6018 * configure: Regenerate.
6019 * configure.ac: New option --with-libunwind-ia64, make the
6020 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
6021 Remove AC_DEFINE for HAVE_LIBUNWIND.
6022 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
6023 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
6024 Rename libunwind-frame in the general comment.
6025 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
6026 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
6027 Move forward declarations inside #ifndef. Rename libunwind-frame in
6028 the general comment.
6029 * ia64-tdep.c: Rename libunwind-frame.h #include to
6030 ia64-libunwind-tdep.h.
6031 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
6032 (ia64_libunwind_descr): Rename libunwind-frame to
6033 ia64-libunwind-tdep in these function comments.
6034 * ia64-tdep.h: Rename libunwind-frame.h #include to
6035 ia64-libunwind-tdep.h.
6036 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6037 ia64-libunwind-tdep in that data comment.
6039 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6041 * libunwind-frame.h (struct frame_unwind): New declaration.
6043 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6045 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6046 "set breakpoint condition-evaluation" command.
6048 2012-03-08 Tristan Gingold <gingold@adacore.com>
6050 * sparc-stub.c: Move to stubs/
6051 * sh-stub.c: Likewise.
6052 * m68k-stub.c: Likewise.
6053 * m32r-stub.c: Likewise.
6054 * i386-stub.c: Likewise.
6056 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6058 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6059 linux_get_siginfo_type.
6061 * m68klinux-nat.c: Include "gdb_proc_service.h".
6062 (PTRACE_GET_THREAD_AREA): Define.
6063 (ps_get_thread_area): New function.
6065 2012-03-08 Yao Qi <yao@codesourcery.com>
6067 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6069 (remote_query_attached): Likewise.
6070 (remote_static_tracepoint_marker_at): Likewise.
6071 (remote_set_permissions): Likewise.
6072 (remote_detach_1, extended_remote_attach_1): Likewise.
6073 (send_g_packet, remote_vkill): Likewise.
6074 (extended_remote_disable_randomization): Likewise.
6075 (remote_add_target_side_condition): Likewise.
6076 (remote_insert_breakpoint): Likewise.
6077 (remote_remove_breakpoint): Likewise.
6078 (remote_insert_watchpoint): Likewise.
6079 (remote_remove_watchpoint): Likewise.
6080 (remote_insert_hw_breakpoint): Likewise.
6081 (remote_insert_hw_breakpoint): Likewise.
6082 (remote_remove_hw_breakpoint): Likewise.
6083 (remote_download_command_source): Likewise.
6084 (remote_download_tracepoint): Likewise.
6085 (remote_download_trace_state_variable): Likewise.
6086 (remote_disable_tracepoint): Likewise.
6087 (remote_trace_set_readonly_regions): Likewise.
6088 (remote_get_tracepoint_status): Likewise.
6089 (remote_trace_find): Likewise.
6090 (remote_get_trace_state_variable_value): Likewise.
6091 (remote_set_disconnected_tracing): Likewise.
6092 (remote_set_circular_trace_buffer): Likewise.
6093 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6094 (remote_use_agent): Likewise.
6095 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6098 2012-03-07 Pedro Alves <palves@redhat.com>
6100 * NEWS: Mention QProgramSignals.
6101 * inferior.h (update_signals_program_target): Declare.
6102 * infrun.c: (update_signals_program_target): New.
6103 (handle_command): Update the target of the new program signals
6105 * remote.c (PACKET_QProgramSignals): New enum.
6106 (last_program_signals_packet): New global.
6107 (remote_program_signals): New.
6108 (remote_start_remote): Update the target with the program signals
6110 (remote_protocol_features): Add entry for QPassSignals.
6111 (remote_open_1): Free anc clear last_program_signals_packet.
6112 (init_remote_ops): Install remote_program_signals.
6113 * target.c (update_current_target): Adjust.
6114 (target_program_signals): New.
6115 * target.h (struct target_ops) <to_program_signals>: New field.
6116 (target_program_signals): Declare.
6118 2012-03-07 Pedro Alves <palves@redhat.com>
6120 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6123 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6125 * m68klinux-nat.c (getregs_supplies): Make static.
6126 (getfpregs_supplies): Likewise.
6127 (have_ptrace_getregs): Likewise.
6129 2012-03-06 Joel Brobecker <brobecker@adacore.com>
6131 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6132 in call to get_die_type_at_offset.
6134 2012-03-06 Stan Shebs <stan@codesourcery.com>
6136 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6137 * mi/mi-cmd-disas.c: Ditto.
6138 * mi/mi-cmd-env.c: Ditto.
6139 * mi/mi-cmd-file.c: Ditto.
6140 * mi/mi-cmd-stack.c: Ditto.
6141 * mi/mi-cmd-target.c: Ditto.
6142 * mi/mi-cmd-var.c: Ditto.
6143 * mi/mi-cmds.c: Ditto.
6144 * mi/mi-cmds.h: Ditto.
6145 * mi/mi-console.c: Ditto.
6146 * mi/mi-getopt.c: Ditto.
6147 * mi/mi-getopt.h: Ditto.
6148 * mi/mi-interp.c: Ditto.
6149 * mi/mi-main.c: Ditto.
6150 * mi/mi-out.c: Ditto.
6151 * mi/mi-parse.c: Ditto.
6152 * mi/mi-parse.h: Ditto.
6153 * mi/mi-symbol-cmds.c: Ditto.
6155 * mi/mi-getopt.h: Move mi_opt struct up.
6156 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6158 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6160 2012-03-06 Tom Tromey <tromey@redhat.com>
6162 * proc-service.c (ps_pglobal_lookup): Set the current program
6165 2012-03-06 Pedro Alves <palves@redhat.com>
6167 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6169 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6171 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6173 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6176 * common/linux-osdata.c (linux_common_core_of_thread): New function
6178 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6179 call by linux_common_core_of_thread.
6180 (linux_nat_core_of_thread_1): Remove.
6181 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6182 * linux-thread-db.c: Include linux-osdata.h.
6183 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6184 linux_common_core_of_thread.
6186 2012-03-05 Tom Tromey <tromey@redhat.com>
6188 * value.c (value_primitive_field): Don't fetch contents for
6191 2012-03-05 Tom Tromey <tromey@redhat.com>
6193 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6195 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6197 * s390-nat.c: Include "gregset.h".
6199 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6201 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6202 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6203 (libunwind_load): New variable so_error, use it for dlerror. Try to
6204 load also LIBUNWIND_SO_7.
6206 2012-03-05 Pedro Alves <palves@redhat.com>
6208 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6209 is not NULL, and remove resulting dead code.
6211 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6213 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6214 prologue to sh_analyze_prologue.
6215 (sh_analyze_prologue): Make better use of such an upper limit, and
6216 generally be more cautious about accessing memory.
6218 2012-03-05 Tom Tromey <tromey@redhat.com>
6220 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6221 _initialize_ia64_hpux_tdep.
6223 2012-03-05 Pedro Alves <palves@redhat.com>
6227 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6228 the register state is clear, supply explicit zero, instead of
6229 marking the register unavailable.
6231 2012-03-05 Tristan Gingold <gingold@adacore.com>
6233 * NEWS: Mention OpenVMS ia64 new target.
6235 2012-03-05 Tristan Gingold <gingold@adacore.com>
6237 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6238 (ia64_unw_accessors, ia64_unw_rse_accessors)
6239 (ia64_libunwind_descr): Declare.
6240 * ia64-vms-tdep.c: New file.
6241 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6242 (ia64_libunwind_descr): Make them public.
6243 * configure.tgt: Add ia64-*-*vms*.
6244 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6245 (ALLDEPFILES): Add ia64-vms-tdep.c
6247 2012-03-05 Tristan Gingold <gingold@adacore.com>
6249 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6250 * remote.c (PACKET_qXfer_uib): New enum value.
6251 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6252 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6253 (_initialize_remote): Call add_packet_config_cmd for
6256 2012-03-05 Tristan Gingold <gingold@adacore.com>
6258 * osabi.c (gdb_osabi_names): Add OpenVMS.
6259 (generic_elf_osabi_sniffer): Likewise.
6260 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6262 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6264 Removed unused code.
6265 * libunwind-frame.c (libunwind_frame_unwind)
6266 (libunwind_frame_base_address): Remove.
6267 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6269 2012-03-04 Yao Qi <yao@codesourcery.com>
6271 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6272 remove trailing new line.
6273 (agent_run_command, agent_run_command): Add _ markup.
6274 (agent_capability_check): Likewise.
6276 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6278 * breakpoint.c (set_condition_evaluation_mode): Set
6279 CONDITION_EVALUATION_MODE unconditionally.
6281 2012-03-03 Yao Qi <yao@codesourcery.com>
6283 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6284 * common/agent.h: Update declaration.
6285 * inf-child.c (inf_child_use_agent): New.
6286 (inf_child_can_use_agent): New.
6287 (inf_child_target): Initialize fields `to_use_agent'
6288 and `to_can_use_agent'.
6289 * agent.c (agent_new_objfile): New.
6290 (_initialize_agent): Add agent_new_objfile to new_objfile
6293 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6295 (linux_target_install_ops): Initialize field
6296 `to_static_tracepoint_markers_by_strid'.
6297 * remote.c (free_current_marker): Move it to ...
6298 * tracepoint.c (free_current_marker): ... here. New.
6299 (cleanup_target_stop): New.
6300 * tracepoint.h: Declare free_current_marker.
6301 * NEWS: Add one entry about `info static-tracepoint-marker'.
6303 2012-03-03 Yao Qi <yao@codesourcery.com>
6305 * common/agent.c (agent_loaded_p): New.
6306 (agent_look_up_symbols): New global.
6307 * common/agent.h: Declare agent_loaded_p.
6309 2012-03-03 Yao Qi <yao@codesourcery.com>
6311 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6312 (agent_capability_check, agent_capability_invalidate): New.
6313 (symbol_list): New array element.
6314 * common/agent.h (enum agent_capa): New.
6315 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6317 2012-03-03 Yao Qi <yao@codesourcery.com>
6319 * target.h (struct target_ops) <to_use_agent>: New field.
6320 (struct target_ops) <to_can_use_agent>: New field.
6321 (target_use_agent, target_can_use_agent): New macro.
6322 * target.c (update_current_target): Update.
6323 * remote.c: New enum `PACKET_QAgent'.
6324 (remote_protocol_features): Add a new element.
6325 (remote_use_agent, remote_can_use_agent): New.
6326 (init_remote_ops): Initialize field `can_use_agent' with
6327 remote_can_use_agent. Intiailize field `use_agent' with
6329 * common/agent.c (use_agent): New global.
6330 * common/agent.h: Declare it.
6331 * tracepoint.c (info_static_tracepoint_markers_command): Add
6333 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6334 (COMMON_OBS): Add common/agent.o and agent.o
6335 (common-agent.o): New rule.
6338 2012-03-03 Yao Qi <yao@codesourcery.com>
6340 * common/agent.c: New.
6341 * common/agent.h: New.
6342 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6344 * configure, configh.in: Regenerated.
6346 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6348 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6349 unless it exists for this architecture.
6351 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6353 * language.h (struct language_defn): New "method" la_read_var_value.
6354 * findvar.c: #include "language.h".
6355 (default_read_var_value): Renames read_var_value. Rewrite
6356 function description.
6357 (read_var_value): New function.
6358 * value.h (default_read_var_value): Add prototype.
6359 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6361 (ada_language_defn): Add entry for la_read_var_value.
6362 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6363 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6364 language_defn structures to add entry for new la_read_var_value
6367 2012-03-02 Tom Tromey <tromey@redhat.com>
6368 Pedro Alves <palves@redhat.com>
6370 PR breakpoints/13776:
6371 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6373 (delete_longjmp_breakpoint_at_next_stop): New.
6374 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6375 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6376 before deleting the inferior. Add comments.
6377 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6378 breakpoints immediately, but only on next stop. Move that code
6379 next to where we mark other breakpoints for deletion.
6381 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6383 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6385 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6388 2012-03-02 Pedro Alves <palves@redhat.com>
6390 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6392 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6394 Fix -Wmissing-prototypes build.
6395 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6396 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6397 (gdbsim_has_memory): Likewise.
6399 2012-03-02 Yao Qi <yao@codesourcery.com>
6401 Fix -Wmissing-prototypes build.
6402 * charset.c (phony_iconv_open): Make static.
6403 (phony_iconv_close, phony_iconv): Likewise.
6404 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6405 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6407 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6408 * ser-mingw.c (create_select_thread): Make static.
6409 * windows-termcap.c (tgetent): New prototype.
6410 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6412 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6414 Fix -Wmissing-prototypes build.
6415 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6416 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6417 (_initialize_loadable): New prototypes.
6419 2012-03-02 Doug Evans <dje@google.com>
6421 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6422 abbrev table, read_comp_unit will do it.
6424 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6426 Fix -Wmissing-prototypes build.
6427 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6428 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6429 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6430 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6431 (_initialize_arm_symbian_tdep): New prototype.
6432 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6433 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6434 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6436 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6437 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6439 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6440 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6441 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6443 * moxie-tdep.c (moxie_process_record): Likewise.
6444 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6445 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6446 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6447 (_initialize_rl78_tdep): New prototype.
6448 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6449 (_initialize_rx_tdep): New prototype.
6450 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6451 (_initialize_darwin_solib): New prototype.
6452 * solib-spu.c: Include solib-spu.h.
6453 (_initialize_spu_solib): New prototype.
6454 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6455 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6456 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6457 (tic6x_software_single_step): Make it static.
6458 (_initialize_tic6x_tdep): New prototype.
6460 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6462 Fix -Wmissing-prototypes build.
6463 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6464 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6466 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6468 Fix -Wmissing-prototypes build.
6469 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6470 (frv_have_stopped_data_address): Remove.
6472 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6474 Fix -Wmissing-prototypes build.
6475 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6476 * sh-tdep.c: Include sh64-tdep.h.
6477 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6478 * sh64-tdep.c: Include sh64-tdep.h.
6479 * sh64-tdep.h: New file.
6481 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6483 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6485 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6487 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6488 sp_regnum once the gdbarch_init_osabi hook has been called.
6490 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6492 * mips-tdep.c (mips32_bc1_pc): New function.
6493 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6494 BPOSGE32 and BPOSGE64 instructions.
6495 (deal_with_atomic_sequence): Likewise.
6496 (mips32_instruction_has_delay_slot): Likewise.
6498 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6499 Chris Dearman <chris@mips.com>
6500 Maciej W. Rozycki <macro@codesourcery.com>
6501 Joseph Myers <joseph@codesourcery.com>
6503 * features/mips-dsp.xml: New file.
6504 * features/mips64-dsp.xml: New file.
6505 * features/mips-dsp-linux.xml: New file.
6506 * features/mips64-dsp-linux.xml: New file.
6507 * features/Makefile (WHICH): Add mips-dsp-linux and
6509 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6510 * features/mips-dsp-linux.c: New file.
6511 * features/mips64-dsp-linux.c: New file.
6512 * regformats/mips-dsp-linux.dat: New file.
6513 * regformats/mips64-dsp-linux.dat: New file.
6514 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6516 (mips64_linux_register_addr): Likewise.
6517 (mips64_linux_regsets_fetch_registers): Likewise.
6518 (mips64_linux_regsets_store_registers): Likewise.
6519 (mips64_linux_fetch_registers): Update call to
6520 mips64_linux_regsets_fetch_registers.
6521 (mips64_linux_store_registers): Update call to
6522 mips64_linux_regsets_store_registers.
6523 (mips_linux_read_description): Probe for DSP registers.
6524 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6525 and initialize_tdesc_mips64_dsp_linux.
6526 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6527 Remove padding of no longer used embedded register slots.
6528 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6529 (MIPS_RESTART_REGNUM): Redefine enum value.
6530 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6532 (mips_tx39_reg_names): Likewise.
6533 (mips_linux_reg_names): New array of register names for Linux
6535 (mips_register_name): Check for a null pointer in
6536 mips_processor_reg_names and return an empty string.
6537 (mips_register_type): Exclude embedded registers for the IRIX
6539 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6540 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6542 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6543 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6544 (mips_gdbarch_init): Likewise. Initialize internal register
6545 indices for the Linux ABI. Use dynamic numbers to refer to
6546 registers, as applicable, while parsing the target description.
6547 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6549 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6551 * frame.h (read_frame_register_unsigned): Fix typo in function
6554 2012-03-01 Pedro Alves <palves@redhat.com>
6556 * jit-reader.in [!__cplusplus]
6557 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6559 2012-03-01 Pedro Alves <palves@redhat.com>
6561 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6562 * configure: Regenerate.
6564 2012-03-01 Pedro Alves <palves@redhat.com>
6566 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6567 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6568 (ftrace_command, strace_command): Make static.
6569 * d-lang.c (_initialize_d_language): Declare.
6570 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6571 * dwarf2loc.c (_initialize_dwarf2loc):
6572 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6573 * exec.c (exec_get_section_table): Make static.
6574 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6575 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6576 * inferior.c (remove_inferior_command, add_inferior_command)
6577 (clone_inferior_command): Make static.
6578 * linux-nat.c (linux_nat_thread_address_space)
6579 (linux_nat_core_of_thread): Make static.
6580 * linux-tdep.c (_initialize_linux_tdep): Declare.
6581 * objc-lang.c (_initialize_objc_lang): Declare.
6582 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6584 (_initialize_opencl_language): Declare.
6585 * record.c (_initialize_record): Declare.
6586 * remote.c (demand_private_info, remote_get_tib_address)
6587 (remote_supports_cond_tracepoints)
6588 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6590 * skip.c (_initialize_step_skip): Declare.
6591 * symtab.c (skip_prologue_using_lineinfo): Make static.
6592 * tracepoint.c (delete_trace_state_variable)
6593 (trace_variable_command, delete_trace_variable_command)
6594 (get_uploaded_tsv, find_matching_tracepoint_location)
6595 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6597 * value.c (pack_unsigned_long): Make static.
6598 * varobj.c (varobj_ensure_python_env): Make static.
6599 * windows-tdep.c (_initialize_windows_tdep): Declare.
6600 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6602 2012-03-01 Pedro Alves <palves@redhat.com>
6604 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6606 (linux_init_abi): Install it as has_shared_address_space gdbarch
6609 2012-03-01 Pedro Alves <palves@redhat.com>
6611 * observer.c (observer_test_first_notification_function)
6612 (observer_test_second_notification_function)
6613 (observer_test_third_notification_function): Add declarations.
6615 2012-03-01 Pedro Alves <palves@redhat.com>
6617 * common/signals.c (default_target_signal_to_host)
6618 (default_target_signal_from_host): Move ...
6619 * arch-utils.c: ... here.
6620 * arch-utils.h (default_target_signal_to_host)
6621 (default_target_signal_from_host): Declare.
6623 * common/signals.c (target_signal_from_command): Move ...
6624 * infrun.c: ... here.
6625 * inferior.h (target_signal_from_command): Declare.
6626 * target.h (target_signal_from_command)
6627 (default_target_signal_from_host, default_target_signal_to_host):
6628 Delete declarations.
6630 * common/signals.c (_initialize_signals): Delete.
6632 2012-03-01 Pedro Alves <palves@redhat.com>
6634 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6635 both __cplusplus and !__cplusplus.
6637 2012-03-01 Pedro Alves <palves@redhat.com>
6639 * psymtab.c (find_and_open_source): Delete declaration.
6640 * source.c (find_and_open_source): Move comment ...
6641 * source.h (find_and_open_source): ... to this new declaration.
6643 2012-03-01 Pedro Alves <palves@redhat.com>
6645 * inline-frame.c: Include inline-frame.h.
6647 2012-03-01 Pedro Alves <palves@redhat.com>
6649 * tui/tui-data.c (set_gen_win_origin): Delete.
6650 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6651 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6653 2012-03-01 Pedro Alves <palves@redhat.com>
6655 * remote.c (encode_actions): Delete declaration.
6656 * tracepoint.c (encode_actions): Make extern.
6657 * tracepoint.h (encode_actions): Declare.
6659 2012-03-01 Pedro Alves <palves@redhat.com>
6661 * python/py-breakpoint.c: Include python.h.
6662 * python/py-continueevent.c (create_continue_event_object): Make
6664 * python/py-lazy-string.c (stpy_get_type): Make static.
6665 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6667 * python/py-utils.c (unicode_to_target_python_string): Make
6669 * python/py-value.c: Include python.h.
6671 2012-03-01 Pedro Alves <palves@redhat.com>
6673 * inferior.c (delete_threads_of_inferior): Delete.
6675 2012-03-01 Pedro Alves <palves@redhat.com>
6677 Import fallback definitions from glibc.
6679 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6680 ps_prochandle): Forward declare.
6681 (ps_err_e): Use glibc's comments.
6682 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6683 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6684 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6685 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6686 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6687 (struct ps_prochandle): Adjust comment.
6689 2012-03-01 Pedro Alves <palves@redhat.com>
6691 * ada-lang.c (ada_modulus_from_name): Delete.
6692 * ada-lex.l (lexer_init): Make static.
6694 2012-03-01 Pedro Alves <palves@redhat.com>
6698 * frame.c (read_frame_register_unsigned): New.
6699 * frame.h (read_frame_register_unsigned): Declare.
6700 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6702 (print_i387_control_word): New parameter `control_p'. Handle it.
6703 (i387_print_float_info): Handle unavailable float registers.
6705 2012-03-01 Keith Seitz <keiths@redhat.com>
6707 * linespec.c (decode_line_2): Sort the list of methods
6708 alphabetically before presenting the user with a selection
6711 2012-03-01 Doug Evans <dje@google.com>
6713 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6715 (dwarf2_read_abbrevs): Remove corresponding initialization.
6717 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
6719 * NEWS: Mention new python command class gdb.COMMAND_USER.
6720 * cli/cli-cmds.c (show_user): Print error when used on a python
6722 (init_cli_cmds): Update documentation strings for "show user" and
6723 "set/show max-user-call-depth" to clarify that it does not apply to
6725 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6727 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6729 * top.c (execute_command): Only execute a user-defined command as a
6730 legacy macro if c->user_commands is set.
6732 2012-03-01 Tom Tromey <tromey@redhat.com>
6734 * valprint.h (struct generic_val_print_decorations): New.
6735 (generic_val_print): Declare.
6736 * valprint.c (generic_val_print): New function.
6737 * p-valprint.c (p_decorations): New global.
6738 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6739 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6740 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6741 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6742 * m2-valprint.c (m2_decorations): New global.
6743 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6744 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6745 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6746 TYPE_CODE_ERROR>: Call generic_val_print.
6747 * f-valprint.c (f_decorations): New global.
6748 (f_val_print): Use print_function_pointer_address.
6749 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6750 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6751 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6753 * c-valprint.c (c_decorations): New global.
6754 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6755 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6756 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6757 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6758 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6759 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6762 2012-03-01 Tom Tromey <tromey@redhat.com>
6764 * valprint.c (val_print): Update.
6765 * p-valprint (pascal_val_print): Return void.
6766 * p-lang.h (pascal_val_print): Return void.
6767 * m2-valprint.c (m2_val_print): Return void.
6768 * m2-lang.h (m2_val_print): Return void.
6769 * language.h (struct language_defn) <la_val_print>: Return void.
6770 * language.c (unk_lang_val_print): Return void.
6771 * jv-valprint.c (java_val_print): Return void.
6772 * jv-lang.h (java_val_print): Return void.
6773 * f-valprint.c (f_val_print): Return void.
6774 * f-lang.h (f_val_print): Return void.
6775 * d-valprint.c (d_val_print): Return void.
6776 (dynamic_array_type): Update.
6777 * d-lang.h (d_val_print): Return void.
6778 * c-valprint.c (c_val_print): Return void.
6779 * c-lang.h (c_val_print): Return void.
6780 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6782 * ada-lang.h (ada_val_print): Return void.
6784 2012-03-01 Tom Tromey <tromey@redhat.com>
6786 * value.h (val_print): Return void.
6787 * valprint.c (val_print): Return void.
6789 2012-03-01 Tom Tromey <tromey@redhat.com>
6791 * value.h (common_val_print): Return void.
6792 * valprint.c (common_val_print): Return void.
6794 2012-03-01 Tom Tromey <tromey@redhat.com>
6796 * value.h (value_print): Return void.
6797 * valprint.c (value_print): Return void.
6798 * p-valprint.c (pascal_value_print): Return void.
6799 * p-lang.h (pascal_value_print): Return void.
6800 * language.h (struct language_defn) <la_value_print>: Return
6802 * language.c (unk_lang_value_print): Return void.
6803 * jv-valprint.c (java_value_print): Return void.
6804 * jv-lang.h (java_value_print): Return void.
6805 * f-valprint.c (c_value_print): Don't declare.
6807 * c-valprint.c (c_value_print): Return void.
6808 * c-lang.h (c_value_print): Return void.
6809 * ada-valprint.c (ada_value_print): Return void.
6810 * ada-lang.h (ada_value_print): Return void.
6812 2012-03-01 Tom Tromey <tromey@redhat.com>
6814 * value.c (value_primitive_field): Handle virtual base classes.
6816 2012-03-01 Tom Tromey <tromey@redhat.com>
6818 * gdbtypes.h (struct vbase): Remove.
6820 2012-03-01 Tom Tromey <tromey@redhat.com>
6822 * c-valprint.c (print_function_pointer_address): Move...
6823 * valprint.c: ... here. Make non-static.
6824 * m2-valprint.c (print_function_pointer_address): Remove.
6825 * valprint.h (print_function_pointer_address): Declare.
6827 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6829 * NEWS: Document the fact that one can provide a condition when
6830 creating an Ada exception catchpoint.
6832 2012-03-01 Tom Tromey <tromey@redhat.com>
6834 * valprint.c (val_print_type_code_flags): Fix placement of
6837 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6839 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6840 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6841 environment variable before calling update-copyright.
6843 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6845 * gnulib/extra/update-copyright: Update to the latest from
6846 gnulib's git repository.
6847 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6848 variable to 2 instead of 1.
6850 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6852 * varobj.c (c_value_of_variable): Remove dead code.
6854 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6856 * ada-lex.p (processId): Do not modify already encoded IDs.
6857 Update function documentation.
6859 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6861 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6862 "name" with "struct symbol *name_sym".
6863 * ada-exp.y (write_var_or_type): Update call to
6864 ada_find_renaming_symbol.
6865 "name" with "struct symbol *name_sym". Adjust Implementation
6866 accordingly. Adjust the function documentation.
6868 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6870 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6871 * ada-lang.c (ada_find_any_type): Add advance declaration.
6872 Make static. Replace ada_find_any_symbol by
6873 ada_find_any_type_symbol.
6874 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
6875 Improve function description. Make static.
6876 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
6877 Replace ada_find_any_symbol by ada_find_any_type_symbol.
6879 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6881 * ada-lang.c (struct tag_args): Delete.
6882 (ada_get_tsd_type): Function body moved up in source file.
6883 (ada_tag_name_1, ada_tag_name_2): Delete.
6884 (ada_get_tsd_from_tag): New function.
6885 (ada_tag_name_from_tsd): New function.
6886 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
6887 to determine the tag name.
6889 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6891 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
6893 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
6896 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6898 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
6900 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6902 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
6905 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6907 * ada-lang.c (constrained_packed_array_type): If there is a
6908 parallel XA type, use it to determine the array index type.
6910 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6912 * ada-valprint.c (ada_val_print_1): If our value is a reference
6913 to an array descriptor, dereference it before converting it
6916 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6918 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
6919 creating fixed value.
6920 (ada_value_ind, ada_coerce_ref, assign_component)
6921 (ada_evaluate_subexp): Remove call to unwrap_value before
6922 call to ada_to_fixed_value.
6924 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6926 * ada-lang.c (to_fixed_array_type): Set result's type name.
6928 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6930 * ada-lang.c (catch_ada_exception_command_split): Add new
6931 argument cond_string. Add support for condition at end of
6932 "catch exception" commands.
6933 (ada_decode_exception_location): Add new argument cond_string.
6934 Update call to catch_ada_exception_command_split.
6935 (create_ada_exception_catchpoint): Add new argument cond_string.
6936 Set the breakpoint condition if needed.
6937 (catch_ada_exception_command): Update call to
6938 ada_decode_exception_location.
6939 (ada_decode_assert_location): Add function documentation.
6940 Add support for condition at end of "catch assert" command.
6941 (catch_assert_command): Update calls to ada_decode_assert_location
6942 and create_ada_exception_catchpoint.
6944 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6946 Fix disp-step-syscall.exp: fork: single step over fork.
6947 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
6948 (i386_linux_get_syscall_number_from_regcache): ... here, new function
6949 comment, change parameters gdbarch and ptid to regcache. Remove
6950 parameter regcache, initialize gdbarch from regcache here.
6951 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
6953 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
6955 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
6956 'syscall'. Make the 'int' check more strict.
6958 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6960 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
6961 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
6962 (i386_linux_intx80_sysenter_syscall_record): ... here.
6963 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
6964 Use the renamed function name.
6966 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6968 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
6969 * breakpoint.c (until_break_command): Likewise.
6970 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6971 * infcall.c (call_function_by_hand): Likewise.
6972 * infcmd.c (finish_forward): Likewise.
6973 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6975 2012-02-28 Tristan Gingold <gingold@adacore.com>
6977 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
6978 avoid variable assignments inside condition.
6980 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6982 Fix static analysis issue found by cppcheck.
6983 * microblaze-tdep.c (microblaze_extract_return_value): Fix
6984 uninitialized BUF for size 2.
6986 2012-02-27 Chris Dearman <chris@mips.com>
6987 Nathan Froyd <froydnj@codesourcery.com>
6988 Maciej W. Rozycki <macro@codesourcery.com>
6990 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
6991 (mips16_instruction_has_delay_slot): Likewise.
6992 (mips_segment_boundary): Likewise.
6993 (mips_adjust_breakpoint_address): Likewise.
6994 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
6996 2012-02-27 Maciej W. Rozycki <macro@mips.com>
6997 Maciej W. Rozycki <macro@codesourcery.com>
6999 * infrun.c (handle_inferior_event): Don't proceed through
7000 shared library trampolines if stepping at the machine
7003 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
7005 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
7008 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
7010 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
7011 (sh_stub_unwind_sniffer): New functions.
7012 (sh_stub_unwind): New variable.
7013 (sh_gdbarch_init): Wire everything.
7015 2012-02-27 Pedro Alves <palves@redhat.com>
7017 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
7018 (linux_nat_post_attach_wait): Adjust to use
7019 linux_proc_pid_is_stopped.
7020 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
7021 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
7022 based on pid_is_stopped from both linux-nat.c and
7023 gdbserver/linux-low.c, and renamed.
7025 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7027 * remote.c (remote_watchpoint_addr_within_range): New function.
7028 (init_remote_ops): Use it.
7030 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7032 * target.h (target_watchpoint_addr_within_range): Document macro.
7034 2012-02-24 Pedro Alves <palves@redhat.com>
7036 * stack.c (set_last_displayed_sal): Issue internal_error instead
7037 of warning, and issue it after clearing the last displayed sal.
7039 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7040 Pedro Alves <palves@redhat.com>
7042 * breakpoint.c (until_break_command): Install breakpoints after
7043 all frame manipulations.
7045 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7047 * remote.c (remote_supports_cond_breakpoints): New forward
7049 (remote_add_target_side_condition): New function.
7050 (remote_insert_breakpoint): Add target-side breakpoint
7051 conditional if supported.
7052 (remote_insert_hw_breakpoint): Likewise.
7053 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7056 * target.c (update_current_target): Inherit
7057 to_supports_evaluation_of_breakpoint_conditions.
7058 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7060 * target.h (struct target_ops)
7061 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7062 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7064 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7065 (condition_evaluation_both, condition_evaluation_auto,
7066 condition_evaluation_host, condition_evaluation_target,
7067 condition_evaluation_enums, condition_evaluation_mode_1,
7068 condition_evaluation_mode): New static globals.
7069 (translate_condition_evaluation_mode): New function.
7070 (breakpoint_condition_evaluation_mode): New function.
7071 (gdb_evaluates_breakpoint_condition_p): New function.
7072 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7073 (mark_breakpoint_modified): New function.
7074 (mark_breakpoint_location_modified): New function.
7075 (set_condition_evaluation_mode): New function.
7076 (show_condition_evaluation_mode): New function.
7077 (bp_location_compare_addrs): New function.
7078 (get_first_location_gte_addr): New helper function.
7079 (set_breakpoint_condition): Free condition bytecode if locations
7080 has become unconditional. Call mark_breakpoint_modified (...).
7081 (condition_command): Call update_global_location_list (1) for
7083 (breakpoint_xfer_memory): Use is_breakpoint (...).
7084 (is_breakpoint): New function.
7085 (parse_cond_to_aexpr): New function.
7086 (build_target_condition_list): New function.
7087 (insert_bp_location): Handle target-side conditional
7088 breakpoints and call build_target_condition_list (...).
7089 (update_inserted_breakpoint_locations): New function.
7090 (insert_breakpoint_locations): Handle target-side conditional
7092 (bpstat_check_breakpoint_conditions): Add comment.
7093 (bp_condition_evaluator): New function.
7094 (bp_location_condition_evaluator): New function.
7095 (print_breakpoint_location): Print information on where the condition
7097 (print_one_breakpoint_location): Likewise.
7098 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7099 breakpoint location.
7100 (force_breakpoint_reinsertion): New functions.
7101 (update_global_location_list): Handle target-side breakpoint
7103 Reinsert locations that are already inserted if conditions have
7105 (bp_location_dtor): Free agent expression bytecode.
7106 (disable_breakpoint): Call mark_breakpoint_modified (...).
7107 Call update_global_location_list (...) with parameter 1 for breakpoints.
7108 (disable_command): Call mark_breakpoint_location_modified (...).
7109 Call update_global_location_list (...) with parameter 1 for breakpoints.
7110 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7111 (enable_command): mark_breakpoint_location_modified (...).
7112 (_initialize_breakpoint): Update documentation and add
7113 condition-evaluation breakpoint subcommand.
7115 * breakpoint.h: Include ax.h.
7116 (condition_list): New data structure.
7117 (condition_status): New enum.
7118 (bp_target_info) <cond_list>: New field.
7119 (bp_location) <condition_changed, cond_bytecode>: New fields.
7120 (is_breakpoint): New prototype.
7122 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7124 * remote.c (remote_state) <cond_breakpoints>: New field.
7125 (PACKET_ConditionalBreakpoints): New enum.
7126 (remote_cond_breakpoint_feature): New function.
7127 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7128 (remote_supports_cond_breakpoints): New function.
7129 (_initialize_remote): Add new packet configuration for
7130 target-side conditional breakpoints.
7132 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7134 * NEWS: Mention target-side conditional breakpoint support,
7135 new condition-evaluation breakpoint subcommand and remote
7138 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7140 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7143 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7145 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7146 (after_prologue): Remove.
7148 2012-02-23 Tom Tromey <tromey@redhat.com>
7150 * jv-valprint.c (java_val_print): Remove dead code.
7152 2012-02-23 Tristan Gingold <gingold@adacore.com>
7154 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7155 known_tasks_element and known_tasks_length fields.
7156 (read_known_tasks_array): Change argument type. Use pointer type
7157 and number of elements from DATA. Adjust.
7158 (read_known_tasks_list): Likewise.
7159 (get_known_tasks_addr): Remove.
7160 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7161 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7162 type and array length. Merge former get_known_tasks_addr code.
7164 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7167 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7168 it after set_momentary_breakpoint.
7170 2012-02-22 Sterling Augustine <saugustine@google.com>
7173 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7175 2012-02-22 Gary Benson <gbenson@redhat.com>
7177 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7178 (find_slot_in_mapped_hash): Likewise.
7180 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7183 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7184 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7185 * configure: Regenerate.
7187 2012-02-21 Tristan Gingold <gingold@adacore.com>
7188 Pedro Alves <palves@redhat.com>
7190 * ia64-tdep.c: Do not include libunwind-ia64.h.
7191 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7192 Include libunwind-ia64.h instead of libunwind.h.
7193 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7194 for libunwind.h existence.
7195 * configure, config.in: Regenerate.
7197 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7199 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7200 instead of value_rtti_target_type.
7201 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7202 instead of value_rtti_target_type.
7203 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7204 value_rtti_target_type.
7205 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7206 (value_rtti_target_type): Rename to ...
7207 (value_rtti_indirect_type): ... here and make it indirect. Update
7209 * value.c (readjust_indirect_value_type): New function.
7210 (coerce_ref): Support for enclosing type setting for references
7211 with readjust_indirect_value_type.
7212 * value.h (readjust_value_type): New declaration.
7213 (value_rtti_target_type): Rename to ...
7214 (value_rtti_indirect_type): ... here.
7216 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7218 * MAINTAINERS (Write After Approval): Add myself to the list.
7220 2012-02-20 Doug Evans <dje@google.com>
7222 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7223 Rename objfile_p_char parameter to objfilep.
7224 (build_objfile_section_table): Result is now void. All callers
7226 * objfiles.h (struct objfile): Tweak comments, whitespace.
7227 (build_objfile_section_table): Update.
7229 * elfread.c (elf_symfile_segments): Fix warning text.
7231 2012-02-20 Tom Tromey <tromey@redhat.com>
7234 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7235 particular set of file names once.
7236 (dw2_map_symbol_filenames): Likewise.
7238 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7241 * main.c (write_files): Remove the declaration.
7242 (external_editor_command): Move the declaration ...
7243 [GDBTK] (external_editor_command): ... here. Fix the comment.
7245 2012-02-20 Tom Tromey <tromey@redhat.com>
7247 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7250 2012-02-20 Tristan Gingold <gingold@adacore.com>
7252 * darwin-nat.h (enum darwin_msg_state): Add comments.
7254 2012-02-20 Tristan Gingold <gingold@adacore.com>
7256 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7259 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7261 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7262 between function description and implementation.
7264 2012-02-17 Tom Tromey <tromey@redhat.com>
7267 * python/py-event.c (event_object_getset): New global.
7268 (event_object_type): Reference it.
7269 * python/py-type.c (field_object_getset): New global.
7270 (field_object_type): Reference it.
7271 * python/python-internal.h (gdb_py_generic_dict): Declare.
7272 * python/py-utils.c (gdb_py_generic_dict): New function.
7274 2012-02-17 Tristan Gingold <gingold@adacore.com>
7276 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7278 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7280 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7281 TYPE_CALLING_CONVENTION annotation.
7283 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7285 * MAINTAINERS: Add rx to target ISA section.
7286 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7287 (ALLDEPFILES): Add rx-tdep.c.
7289 2012-02-16 Tom Tromey <tromey@redhat.com>
7291 * symfile.c (symbol_file_add_main_1): Use inferior's
7293 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7294 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7296 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7298 (follow_exec): Use inferior's symfile_flags.
7299 * inferior.h (struct inferior) <symfile_flags>: New field.
7301 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7304 * remote-sim.c (gdbsim_create_inferior): Call error() when
7305 sim_create_inferior() fails.
7307 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7309 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7311 2012-02-16 Tom Tromey <tromey@redhat.com>
7314 * thread.c (struct current_thread_cleanup) <was_removable>: New
7316 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7317 (make_cleanup_restore_current_thread): Initialize new field.
7319 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7321 * MAINTAINERS: Add rl78 to target ISA section.
7322 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7323 (ALLDEPFILES): Add rl78-tdep.c.
7324 * NEWS: Mention rl78 as a new target.
7326 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7328 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7330 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7332 2012-02-15 Tom Tromey <tromey@redhat.com>
7335 * infcmd.c (registers_info): Print just the current register's
7338 2012-02-15 Tom Tromey <tromey@redhat.com>
7340 * python/py-symbol.c (sympy_value): Use _().
7342 2012-02-15 Pedro Alves <palves@redhat.com>
7344 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7345 output to be like native targets'.
7346 (remote_pid_to_str): Special case the null ptid.
7348 2012-02-14 Stan Shebs <stan@codesourcery.com>
7350 * NEWS: Mention enable count command.
7351 * breakpoint.h (struct breakpoint): New field enable_count.
7352 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7353 (enable_breakpoint): Add arg to call.
7354 (struct disp_data): New struct.
7355 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7356 (do_map_enable_once_breakpoint): Create a struct and pass it.
7357 (do_map_enable_delete_breakpoint): Ditto.
7358 (do_map_enable_count_breakpoint): New function.
7359 (enable_count_command): New function.
7360 (bpstat_stop_status): Decrement enable_count.
7361 (print_one_breakpoint_location): Report enable count.
7362 (_initialize_breakpoint): Add enable count command.
7364 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7366 * rl78-tdep.c (reggroups.h): Include.
7367 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7368 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7369 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7370 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7371 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7372 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7373 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7374 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7375 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7376 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7377 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7378 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7379 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7380 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7381 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7382 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7383 beginning of register list.
7384 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7385 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7386 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7387 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7388 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7389 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7390 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7391 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7392 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7393 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7394 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7395 the pseudo registers. Rearrange other pseudo registers too so
7396 that the bank registers appear at the end.
7397 (rl78_register_type): Account for the fact that the byte sized
7398 bank registers are now pseudo-registers.
7399 (rl78_register_name): Rearrange the register name array. Make
7400 initial set of raw banked registers inaccessible.
7401 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7402 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7403 case for copying bytes back and forth between raw and pseudo
7404 versions of the banked registers. Update other cases to reflect
7406 (rl78_return_value): Update to account for changed names of
7408 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7409 rl78_register_sim_regno().
7411 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7413 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7414 the name parameter being passed to find_pc_partial_function().
7416 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7418 * MAINTAINERS: Step down from being ia64 target maintainer.
7420 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7422 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7423 compilation warning.
7425 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7427 Fix crash on loaded shlibs without loaded exec_bfd.
7428 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7429 (set_section_command): Replace exec_bfd by p->bfd.
7431 2012-02-10 Tom Tromey <tromey@redhat.com>
7433 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7434 when we have a C++ qualified name.
7436 2012-02-10 Pedro Alves <palves@redhat.com>
7438 * inferior.c (inferior_pid_to_str): New.
7439 (print_inferior, inferior_command): Use it.
7441 2012-02-10 Pedro Alves <palves@redhat.com>
7443 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7445 * configure: Regenerate.
7447 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7449 * linespec.c (decode_line_internal): Fix comment correctness.
7451 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7454 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7455 * amd64bsd-nat.c: Add support for debug registers (adapted from
7457 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7458 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7459 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7460 (amd64bsd_dr_get_control): New functions.
7461 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7462 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7463 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7464 watchpoints initialization.
7465 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7467 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7469 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7471 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7473 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7475 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7477 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7479 * language.h (symbol_name_cmp_ftype): Renames
7480 symbol_name_match_p_ftype.
7481 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7482 la_get_symbol_name_match_p.
7483 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7484 ada_get_symbol_name_match_p. Update comment.
7485 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7486 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7487 Renames symbol_name_match_p. Update field type.
7488 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7489 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7490 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7491 "la_get_symbol_name_cmp" in comments.
7492 * language.c: Likewise.
7494 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7496 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7498 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7499 (amd64_sol2_gregset32_reg_offs): Likewise.
7501 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7503 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7504 of the returned BFD is allocated by GDB.
7506 2012-02-07 Tom Tromey <tromey@redhat.com>
7509 * python/python-internal.h (frame_object_type): Declare.
7510 * python/py-symbol.c (sympy_needs_frame): New function.
7511 (sympy_value): New function.
7512 (symbol_object_getset): Add "needs_frame".
7513 (symbol_object_methods): Add "value".
7514 * python/py-frame.c (frame_object_type): No longer static.
7516 2012-02-07 Tom Tromey <tromey@redhat.com>
7519 * python/py-symbol.c (sympy_line): New function.
7520 (symbol_object_getset): Add "line".
7522 2012-02-07 Tom Tromey <tromey@redhat.com>
7524 * charset.c (find_charset_names): Check 'in' against NULL.
7526 2012-02-06 Doug Evans <dje@google.com>
7528 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7529 and fields.name members from char * to const char *. All uses updated.
7530 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7531 from char * to const char *. All uses updated.
7532 (type_name_no_tag): Update.
7533 (lookup_unsigned_typename, lookup_signed_typename): Update.
7534 * gdbtypes.c (type_name_no_tag): Change result type
7535 from char * to const char *. All callers updated.
7536 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7537 name parameter from char * to const char *.
7538 * symtab.h (struct cplus_specific): Change type of demangled_name
7539 member from char * to const char *. All uses updated.
7540 (struct general_symbol_info): Change type of name and
7541 mangled_lang.demangled_name members from char * to const char *.
7543 (symbol_get_demangled_name, symbol_natural_name): Update.
7544 (symbol_demangled_name, symbol_search_name): Update.
7545 * symtab.c (symbol_get_demangled_name): Change result type
7546 from char * to const char *. All callers updated.
7547 (symbol_natural_name, symbol_demangled_name): Ditto.
7548 (symbol_search_name): Ditto.
7549 (completion_list_add_name): Change type of symname,sym_text,
7550 text,word parameters from char * to const char *.
7551 (completion_list_objc_symbol): Change type of sym_text,
7552 text,word parameters from char * to const char *.
7553 * ada-lang.c (find_struct_field): Change type of name parameter
7554 from char * to const char *.
7555 (encoded_ordered_before): Similarly for N0,N1 parameters.
7556 (old_renaming_is_invisible): Similarly for function_name parameter.
7557 (ada_type_name): Change result type from char * to const char *.
7558 All callers updated.
7559 * ada-lang.h (ada_type_name): Update.
7560 * buildsym.c (hashname): Change type of name parameter
7561 from char * to const char *.
7562 * buildsym.h (hashname): Update.
7563 * dbxread.c (end_psymtab): Change type of include_list parameter
7564 from char ** to const char **.
7565 * dwarf2read.c (determine_prefix): Change result type
7566 from char * to const char *. All callers updated.
7567 * f-lang.c (find_common_for_function): Change type of name, funcname
7568 parameters from char * to const char *.
7569 * f-lang.c (find_common_for_function): Update.
7570 * f-valprint.c (list_all_visible_commons): Change type of funcname
7571 parameters from char * to const char *.
7572 * gdbarch.sh (static_transform_name): Change type of name parameter
7573 and result from char * to const char *.
7574 * gdbarch.c: Regenerate.
7575 * gdbarch.h: Regenerate.
7576 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7577 of name parameter from char * to const char *.
7578 * jv-lang.c (java_primitive_type_from_name): Ditto.
7579 (java_demangled_signature_length): Similarly for signature parameter.
7580 (java_demangled_signature_copy): Ditto.
7581 (java_demangle_type_signature): Ditto.
7582 * jv-lang.h (java_primitive_type_from_name): Update.
7583 (java_demangle_type_signature): Update.
7584 * objc-lang.c (specialcmp): Change type of a,b parameters
7585 from char * to const char *.
7586 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7587 from char * to const char *. All callers updated.
7588 * p-lang.h (is_pascal_string_type): Update.
7589 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7590 of name parameter from char * to const char *.
7591 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7592 * utils.c (fprintf_symbol_filtered): Ditto.
7593 * defs.h (fprintf_symbol_filtered): Update.
7594 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7595 * stabsread.h (end_psymtab): Update.
7596 * stack.c (find_frame_funname): Change type of funname parameter
7597 from char ** to const char **.
7598 * stack.h (find_frame_funname): Update.
7599 * typeprint.c (type_print): Change type of varstring parameter
7600 from char * to const char *.
7601 * value.h (type_print): Update.
7602 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7603 from char * to const char *. All callers updated.
7604 (xcoff_end_psymtab): Change type of include_list parameter
7605 from char ** to const char **. All callers updated.
7606 (swap_sym): Similarly for name parameter. All callers updated.
7607 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7609 (process_coff_symbol): Use xstrdup.
7610 * stabsread.c (stabs_method_name_from_physname): Renamed from
7611 update_method_name_from_physname. Change result type from void
7612 to char *. All callers updated.
7613 (read_member_functions): In has_destructor case, store name in objfile
7614 obstack instead of malloc space. In !has_stub case, fix mem leak.
7616 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7618 * configure: Rebuild.
7619 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7622 2012-02-03 Kevin Buettner <kevinb@redhat.com>
7624 * configure.tgt (rl78-*-elf): New target.
7625 * rl78-tdep.c: New file.
7627 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7629 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7630 and continue the loop. Add QUIT statement.
7632 2012-02-03 Tom Tromey <tromey@redhat.com>
7635 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7636 bfd_lookup_symbol_from_symtab.
7637 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7638 gdb_bfd_lookup_symbol_from_symtab.
7640 2012-02-03 Joel Brobecker <brobecker@adacore.com>
7642 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7643 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7644 symbol. Add assertion that sym2 is never NULL.
7646 2012-02-02 Doug Evans <dje@google.com>
7648 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7649 "name" parameter to const char ** from char **. All callers updated.
7650 (find_pc_partial_function): Ditto.
7651 (cache_pc_function_name): Change type to const char * from char *.
7652 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7653 (find_pc_partial_function): Update.
7654 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7655 type of "name" parameter to const char * from char *.
7657 * arch-utils.c (generic_in_solib_return_trampoline): Change
7658 type of "name" parameter to const char * from char *.
7659 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7660 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7661 type of "name" parameter to const char * from char *.
7662 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7663 * gdbarch.c: Regenerate.
7664 * gdbarch.h: Regenerate.
7665 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7666 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7667 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7668 type of "name" parameter to const char * from char *.
7669 * skip.c (skip_function_pc): Ditto.
7670 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7671 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7672 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7673 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7674 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7675 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7676 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7677 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7678 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7680 2012-02-02 Pedro Alves <palves@redhat.com>
7682 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7683 the current inferior has no execution. Make sure the current
7684 remote process matches gdb's current inferior.
7686 2012-02-02 Tom Tromey <tromey@redhat.com>
7689 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7692 2012-02-02 Tom Tromey <tromey@redhat.com>
7695 * symtab.c (lookup_language_this): Set block_found.
7697 2012-02-01 Tom Tromey <tromey@redhat.com>
7700 * jit.c (struct jit_inferior_data): Rewrite.
7701 (struct jit_objfile_data): New.
7702 (get_jit_objfile_data): New function.
7703 (add_objfile_entry): Update.
7704 (jit_read_descriptor): Return int. Replace descriptor_addr
7705 argument with inf_data. Update. Don't call error.
7706 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7708 (jit_inferior_init): Don't look up descriptor. Don't call error.
7709 (jit_reset_inferior_data_and_breakpoints)
7710 (jit_inferior_created_observer): Remove.
7711 (jit_inferior_exit_hook): Update.
7712 (jit_executable_changed_observer): Remove.
7713 (jit_event_handler): Update.
7714 (free_objfile_data): Reset inferior data if needed.
7715 (_initialize_jit): Update.
7717 2012-02-01 Tom Tromey <tromey@redhat.com>
7719 * jit.c (bfd_open_from_target_memory): Move higher in file.
7721 2012-02-01 Tristan Gingold <gingold@adacore.com>
7723 * libunwind-frame.c (libunwind_load): Display message if dlopen
7726 2012-02-01 Gary Benson <gbenson@redhat.com>
7728 * symtab.h (symbol_found_callback_ftype): New typedef.
7729 (iterate_over_symbols): Use the above.
7730 * symtab.c (iterate_over_symbols): Likewise.
7731 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7732 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7733 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7734 (iterate_name_matcher): Document return values.
7735 (collect_one_symbol): Likewise.
7736 (collect_function_symbols): Likewise.
7737 (collect_symbols): Likewise.
7739 2012-02-01 Tom Tromey <tromey@redhat.com>
7741 * ada-lang.c (resolve_subexp): Update.
7742 (ada_lookup_symbol_list): Add 'full_search' argument.
7743 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7744 ada_lookup_symbol_list.
7745 (ada_lookup_encoded_symbol): Update.
7746 (get_var_value): Update.
7747 * ada-exp.y (block_lookup): Update.
7748 (write_var_or_type): Update.
7749 (write_name_assoc): Update.
7750 * ada-lang.h (ada_lookup_symbol_list): Update.
7752 2012-01-31 Tom Tromey <tromey@redhat.com>
7754 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7757 2012-01-31 Doug Evans <dje@google.com>
7759 * symtab.h: Remove outdated comment.
7760 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7762 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
7764 Fix build error in Darwin port.
7765 * i386-darwin-nat.c: Include i386-nat.h.
7767 2012-01-30 Tom Tromey <tromey@redhat.com>
7769 PR breakpoints/13568:
7770 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7771 argument. Check for recursive includes.
7772 (dwarf_decode_macros): Create an include hash.
7774 2012-01-30 Michael Eager <eager@eagercon.com>
7776 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7777 * ppc-linux-tdep.c: Include glibc-tdep.h.
7778 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7779 (powerpc_linux_in_plt_stub): New function.
7780 (powerpc_linux_in_dynsym_resolve_code): New function.
7781 (ppc_skip_trampoline_code): New function.
7782 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7783 Use glibc_skip_solib_resolver.
7785 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7787 Code cleanup: Make 1440 bytes of data segment read-only.
7788 * arch-utils.c (endian_enum): Make it const char *const [].
7789 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7791 * breakpoint.c (always_inserted_enums): Likewise.
7792 * cli/cli-cmds.c (script_ext_enums): Likewise.
7793 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7794 enumlist parameter const char *const *.
7795 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7796 const char *const *.
7797 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7798 parameter const char *const *.
7799 * cris-tdep.c (cris_modes): Make it const char *const [].
7800 * filesystem.c (target_file_system_kinds): Likewise.
7801 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7802 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7803 (can_use_displaced_stepping_enum, scheduler_enums)
7804 (exec_direction_names): Likewise.
7805 * language.c (_initialize_language): Make the type_or_range_names and
7806 case_sensitive_names variables const char *const [].
7807 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7808 * python/python.c (python_excp_enums): Likewise.
7809 * remote.c (interrupt_sequence_modes): Likewise.
7810 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7811 * serial.c (logbase_enums): Likewise.
7812 * sh-tdep.c (sh_cc_enum): Likewise.
7813 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7815 * symtab.c (multiple_symbols_modes): Likewise.
7816 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7818 * utils.c (internal_problem_modes): Likewise.
7820 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7822 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7823 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7826 2012-01-27 Doug Evans <dje@google.com>
7828 * configure.ac (with_python): Fix absolute path handling for win32.
7829 * configure: Regenerate.
7831 2012-01-26 Doug Evans <dje@google.com>
7833 * symtab.c: Whitespace cleanup, no code changes.
7835 * symtab.c (lookup_symbol_in_language): Improve comment.
7836 (lookup_symbol_aux): Fix comment.
7838 * psymtab.c (add_psymbol_to_list): Result is now "void".
7839 * psympriv.h (add_psymbol_to_list): Update.
7841 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7843 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7845 Do not open script filenames twice.
7846 * cli/cli-cmds.c (source_script_from_stream): Pass to
7847 source_python_script also STREAM.
7848 * python/py-auto-load.c (source_section_scripts): Pass to
7849 source_python_script_for_objfile also STREAM.
7850 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7852 * python/python-internal.h (source_python_script_for_objfile): New
7853 parameter file, rename parameter file to filename.
7854 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7855 instead if !_WIN32. Update the function comment.
7856 (source_python_script, source_python_script_for_objfile)
7857 (source_python_script): New parameter file, rename parameter file to
7858 filename. Pass FILENAME to python_run_simple_file.
7859 * python/python.h (source_python_script): New parameter file, rename
7860 parameter file to filename.
7862 2012-01-26 Pedro Alves <palves@redhat.com>
7864 * corelow.c (core_has_fake_pid): Delete.
7865 (core_close): Delete references to `core_has_fake_pid'.
7866 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7867 (core_open): Delete references to `core_has_fake_pid'.
7868 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7871 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7873 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7874 Remove language parameter from name_matcher. Adjust the comment.
7875 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
7876 Remove language parameter.
7877 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
7878 * linespec.c (iterate_name_matcher): Likewise.
7879 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
7880 name_matcher. Adjust call accordingly.
7881 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
7882 (maintenance_check_symtabs): Adjust type of parameter "fun".
7883 * psymtab.h (maintenance_check_symtabs): Likewise.
7885 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7887 * language.h (symbol_name_match_p_ftype): New typedef.
7888 (struct language_defn): Replace field la_symbol_name_compare
7889 by la_get_symbol_name_match_p.
7890 * ada-lang.c (ada_get_symbol_name_match_p): New function.
7891 (ada_language_defn): Use it.
7892 * linespec.c (struct symbol_matcher_data): New type.
7893 (iterate_name_matcher): Rewrite.
7894 (iterate_over_all_matching_symtabs): Pass a pointer to
7895 a symbol_matcher_data struct to expand_symtabs_matching
7896 instead of just the lookup name.
7897 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7898 opencl-lang.c, p-lang.c, language.c: Delete field
7899 la_symbol_name_compare, and replace by NULL for new field
7900 la_get_symbol_name_match_p.
7901 * symfile.h (struct quick_symbol_functions): Update comment.
7903 2012-01-25 Tom Tromey <tromey@redhat.com>
7905 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
7908 2012-01-24 Tom Tromey <tromey@redhat.com>
7911 * solib.c (update_solib_list): Update the program space's
7912 added_solibs and deleted_solibs fields.
7913 * progspace.h (struct program_space) <added_solibs,
7914 deleted_solibs>: New fields.
7915 (clear_program_space_solib_cache): Declare.
7916 * progspace.c (release_program_space): Call
7917 clear_program_space_solib_cache.
7918 (clear_program_space_solib_cache): New function.
7919 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
7920 bpstat_stop_status. Use handle_solib_event.
7921 * breakpoint.c: Include gdb_regex.h.
7922 (print_solib_event): New function.
7923 (bpstat_print): Use print_solib_event.
7924 (bpstat_stop_status): Add special case for bp_shlib_event.
7925 (handle_solib_event): New function.
7926 (bpstat_what): Use handle_solib_event.
7927 (struct solib_catchpoint): New.
7928 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
7929 (breakpoint_hit_catch_solib, check_status_catch_solib)
7930 (print_it_catch_solib, print_one_catch_solib)
7931 (print_mention_catch_solib, print_recreate_catch_solib): New
7933 (catch_solib_breakpoint_ops): New global.
7934 (catch_load_or_unload, catch_load_command_1)
7935 (catch_unload_command_1): New functions.
7936 (internal_bkpt_check_status): Add special case for
7938 (internal_bkpt_print_it): Use print_solib_event.
7939 (initialize_breakpoint_ops): Initialize
7940 catch_solib_breakpoint_ops.
7941 (_initialize_breakpoint): Register "catch load" and "catch
7943 * breakpoint.h (handle_solib_event): Declare.
7944 * NEWS: Add entry for "catch load" and "catch unload".
7946 2012-01-24 Tom Tromey <tromey@redhat.com>
7948 * ada-lang.c: Include gdb_vecs.h.
7949 * charset.c: Include gdb_vecs.h.
7950 * tracepoint.h: Include gdb_vecs.h.
7951 * gdb_vecs.h: New file.
7953 2012-01-24 Pedro Alves <pedro@codesourcery.com>
7955 * breakpoint.c (breakpoint_hit_catch_fork)
7956 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
7957 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
7958 * infrun.c (inferior_has_forked, inferior_has_vforked)
7959 (inferior_has_execd, inferior_has_called_syscall): Delete.
7960 (handle_syscall_event): Get syscall_number from the execution
7961 control state's wait status.
7962 (wait_for_inferior): Don't clear syscall_number.
7964 2012-01-24 Pedro Alves <palves@redhat.com>
7966 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
7967 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
7968 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
7969 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
7971 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
7972 false for events other than TARGET_SIGNAL_TRAP.
7973 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
7975 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
7976 events other than TARGET_SIGNAL_TRAP.
7977 (tracepoint_breakpoint_hit): Add `ws' parameter.
7978 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
7980 (bpstat_stop_status): Same.
7981 (pc_at_non_inline_function): Same.
7982 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
7983 to pass the current event's waitstatus to bpstat_stop_status
7984 and pc_at_non_inline_function.
7986 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7989 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
7990 Update the function comment for it.
7991 (source_script_with_search): Call make_cleanup_fclose for STREAM.
7992 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
7995 2012-01-24 Pedro Alves <palves@redhat.com>
7997 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
7998 outside `bs->stop' block.
7999 (bpstat_what): Rework bp_shlib_event handling.
8000 (internal_bkpt_check_status): If the breakpoint is a
8001 bp_shlib_event, then set bs->stop and bs->print if
8002 stop_on_solib_events is set.
8004 2012-01-24 Gary Benson <gbenson@redhat.com>
8006 Delete #if 0'd out code.
8007 * stack.c (print_frame_label_vars): Remove.
8008 (catch_info): Likewise.
8009 (_initialize_stack): Remove "info catch" command.
8010 * NEWS: Mention the above.
8012 2012-01-24 Pedro Alves <palves@redhat.com>
8014 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
8016 (remote_notice_new_inferior): If the remote end doesn't support
8017 the multiprocess extensions, then the PID is fake.
8018 (add_current_inferior_and_thread): New.
8019 (remote_start_remote): Use it.
8020 (extended_remote_attach_1): Adjust.
8021 (extended_remote_create_inferior_1): Use
8022 add_current_inferior_and_thread.
8024 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8026 Fix watchpoints to be specific for each inferior.
8027 * breakpoint.c (watchpoint_in_thread_scope): Verify also
8028 current_program_space.
8029 * i386-nat.c (i386_inferior_data_cleanup): New.
8030 (i386_inferior_data_get): Replace variable inf_data_local by an
8032 (i386_use_watchpoints): Initialize i386_inferior_data.
8033 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
8034 specific iterate_over_lwps.
8036 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8038 Fix watchpoints across inferior fork.
8039 * amd64-linux-nat.c (update_debug_registers_callback): Update the
8040 comment for linux_nat_iterate_watchpoint_lwps.
8041 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8042 linux_nat_iterate_watchpoint_lwps.
8043 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8044 * i386-linux-nat.c (update_debug_registers_callback): Update the
8045 comment for linux_nat_iterate_watchpoint_lwps.
8046 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8047 linux_nat_iterate_watchpoint_lwps.
8048 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8049 * i386-nat.c: Include inferior.h.
8050 (dr_mirror): Remove.
8051 (i386_inferior_data, struct i386_inferior_data)
8052 (i386_inferior_data_get): New.
8053 (i386_debug_reg_state): Use i386_inferior_data_get.
8054 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8055 (i386_insert_watchpoint, i386_remove_watchpoint)
8056 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8057 (i386_remove_hw_breakpoint): New variable state, use
8058 i386_debug_reg_state instead of DR_MIRROR.
8059 * linux-nat.c (delete_lwp): New declaration.
8060 (num_lwps): Move here from downwards.
8061 (delete_lwp_cleanup): New.
8062 (linux_child_follow_fork): Create new child_lp, call
8063 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8065 (num_lwps): Move upwards.
8066 (linux_nat_iterate_watchpoint_lwps): New.
8067 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8068 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8070 2012-01-24 Joel Brobecker <brobecker@adacore.com>
8074 2012-01-23 Pedro Alves <palves@redhat.com>
8076 * top.c (caution): Rename to ...
8077 (confirm): ... this.
8078 (show_caution): Rename to ...
8079 (show_confirm): ... this.
8080 (quit_cover): Adjust.
8081 (init_main): Adjust.
8082 * top.h (caution): Rename to ...
8083 (confirm): ... this.
8084 * utils.c (internal_vproblem, defaulted_query): Adjust.
8086 2012-01-23 Pedro Alves <palves@redhat.com>
8088 * top.c (caution): Update comment.
8089 (execute_command): Don't consider the current value of `caution'.
8091 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8093 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8095 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8097 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8098 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8099 * target.c (target_fileio_pwrite): Remove buffer address from
8101 (target_fileio_pread): Likewise.
8103 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8105 * NEWS: Document remote "info proc" and "generate-core-file".
8107 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8109 * gdbarch.sh (find_memory_regions): New callback.
8110 * gdbarch.c, gdbarch.h: Regenerate.
8112 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8113 callback before falling back to target method.
8115 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8116 (linux_target_install_ops): No longer install it.
8118 * linux-tdep.c (linux_find_memory_regions): New function.
8119 (linux_init_abi): Install it.
8121 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8123 * gdbarch.sh (make_corefile_notes): New architecture callback.
8124 * gdbarch.c: Regenerate.
8125 * gdbarch.h: Likewise.
8127 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8128 before target_make_corefile_notes. If NULL is returned, the
8129 target does not support core file generation.
8131 * linux-nat.c: Include "linux-tdep.h".
8132 (find_signalled_thread, find_stop_signal): Remove.
8133 (linux_nat_do_thread_registers): Likewise.
8134 (struct linux_nat_corefile_thread_data): Likewise.
8135 (linux_nat_corefile_thread_callback): Likewise.
8136 (iterate_over_spus): Likewise.
8137 (struct linux_spu_corefile_data): Likewise.
8138 (linux_spu_corefile_callback): Likewise.
8139 (linux_spu_make_corefile_notes): Likewise.
8140 (linux_nat_collect_thread_registers): New function.
8141 (linux_nat_make_corefile_notes): Replace contents by call to
8142 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8143 as native-only callback.
8145 * linux-tdep.h: Include "bfd.h".
8146 (struct regcache): Add forward declaration.
8147 (linux_collect_thread_registers_ftype): New typedef.
8148 (linux_make_corefile_notes): Add prototype.
8149 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8150 "regset.h", and "elf-bfd.h".
8151 (find_signalled_thread, find_stop_signal): New functions.
8152 (linux_spu_make_corefile_notes): Likewise.
8153 (linux_collect_thread_registers): Likewise.
8154 (struct linux_corefile_thread_data): New data structure.
8155 (linux_corefile_thread_callback): New funcion.
8156 (linux_make_corefile_notes): Likewise.
8157 (linux_make_corefile_notes_1): Likewise.
8158 (linux_init_abi): Install it.
8160 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8162 * gdbarch.sh (info_proc): New callback.
8163 * gdbarch.c, gdbarch.h: Regenerate.
8165 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8166 before falling back to the target info_proc callback.
8168 * linux-nat.c: Do not include "cli/cli-utils.h".
8169 (linux_nat_info_proc): Remove.
8170 (linux_target_install_ops): No longer install it.
8172 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8173 (read_mapping): New function.
8174 (linux_info_proc): Likewise.
8175 (linux_init_abi): Install it.
8177 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8179 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8180 * infcmd.c: (info_proc_cmd_1): New function.
8181 (info_proc_cmd): New function, moved here from equivalent routine
8182 orignally in linux-nat.c.
8183 (info_proc_cmd_mappings): Likewise.
8184 (info_proc_cmd_stat): Likewise.
8185 (info_proc_cmd_status): Likewise.
8186 (info_proc_cmd_cwd): Likewise.
8187 (info_proc_cmd_cmdline): Likewise.
8188 (info_proc_cmd_exe): Likewise.
8189 (info_proc_cmd_all): Likewise.
8190 (_initialize_infcmd): Install "info proc" command and subcommands.
8192 * target.h (struct target_ops): Add to_info_proc.
8193 (target_info_proc): Add prototype.
8194 * target.c (target_info_proc): New function.
8196 * procfs.c (procfs_info_proc): Add prototype.
8197 (info_proc_cmd): Rename into ...
8198 (procfs_info_proc): ... this. Update argument types as appropriate
8199 for a to_info_proc implementation. Handle "what" argument.
8200 (procfs_target): Install procfs_info_proc.
8201 (_initialize_procfs): No longer install "info proc" command.
8203 * linux-nat.c: (enum info_proc_what): Remove.
8204 (linux_nat_info_proc_cmd_1): Rename into ...
8205 (linux_nat_info_proc): ... this. Update argument types as appropriate
8206 for a to_info_proc implementation.
8207 (linux_nat_info_proc_cmd): Remove.
8208 (linux_nat_info_proc_cmd_mappings): Likewise.
8209 (linux_nat_info_proc_cmd_stat): Likewise.
8210 (linux_nat_info_proc_cmd_status): Likewise.
8211 (linux_nat_info_proc_cmd_cwd): Likewise.
8212 (linux_nat_info_proc_cmd_cmdline): Likewise.
8213 (linux_nat_info_proc_cmd_exe): Likewise.
8214 (linux_nat_info_proc_cmd_all): Likewise.
8215 (linux_target_install_ops): Install linux_nat_info_proc.
8216 (_initialize_linux_nat): No longer install "info proc" command
8219 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8221 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8222 * config.in, configure: Regenerate.
8224 * target.h (struct target_ops): Add to_fileio_readlink.
8225 (target_fileio_readlink): Add prototype.
8226 * target.c (target_fileio_readlink): New function.
8228 * inf-child.c: Conditionally include <sys/param.h>.
8229 (inf_child_fileio_readlink): New function.
8230 (inf_child_target): Install it.
8232 * remote.c (PACKET_vFile_readlink): New enum value.
8233 (remote_hostio_readlink): New function.
8234 (init_remote_ops): Install it.
8235 (_initialize_remote): Handle vFile:readlink packet type.
8237 2012-01-20 Pedro Alves <palves@redhat.com>
8238 Ulrich Weigand <ulrich.weigand@linaro.org>
8240 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8241 * config.in, configure: Regenerate.
8243 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8244 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8245 (target_fileio_open): Add prototype.
8246 (target_fileio_pwrite): Likewise.
8247 (target_fileio_pread): Likewise.
8248 (target_fileio_close): Likewise.
8249 (target_fileio_unlink): Likewise.
8250 (target_fileio_read_alloc): Likewise.
8251 (target_fileio_read_stralloc): Likewise.
8253 * target.c: Include "gdb/fileio.h".
8254 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8255 (default_fileio_target): New function.
8256 (target_fileio_open): Likewise.
8257 (target_fileio_pwrite): Likewise.
8258 (target_fileio_pread): Likewise.
8259 (target_fileio_close): Likewise.
8260 (target_fileio_unlink): Likewise.
8261 (target_fileio_close_cleanup): Likewise.
8262 (target_fileio_read_alloc_1): Likewise.
8263 (target_fileio_read_alloc): Likewise.
8264 (target_fileio_read_stralloc): Likewise.
8266 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8267 <fcntl.h>, and <unistd.h>.
8268 (inf_child_fileio_open_flags_to_host): New function.
8269 (inf_child_errno_to_fileio_error): Likewise.
8270 (inf_child_fileio_open): Likewise.
8271 (inf_child_fileio_pwrite): Likewise.
8272 (inf_child_fileio_pread): Likewise.
8273 (inf_child_fileio_close): Likewise.
8274 (inf_child_fileio_unlink): Likewise.
8275 (inf_child_target): Install to_fileio routines.
8277 * remote.c (init_remote_ops): Install to_fileio routines.
8279 2012-01-20 Pedro Alves <palves@redhat.com>
8280 Ulrich Weigand <ulrich.weigand@linaro.org>
8282 * remote.c (remote_multi_process_p): Only check for multi-process
8283 protocol feature, do not check for extended protocol.
8284 (remote_supports_multi_process): Check for extended protocol here.
8285 (set_general_process): Likewise.
8286 (extended_remote_kill): Likewise.
8287 (remote_pid_to_str): Likewise.
8288 (remote_query_supported): Always query multiprocess mode.
8290 2012-01-20 Pedro Alves <palves@redhat.com>
8291 Ulrich Weigand <ulrich.weigand@linaro.org>
8293 * inferior.h (struct inferior): Add fake_pid_p.
8294 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8295 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8296 magic_null_ptid since the remote side doesn't provide a real PID.
8298 2012-01-19 Tom Tromey <tromey@redhat.com>
8300 * NEWS: Combine the two Python sections.
8302 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8304 * target.h (target_close): Update comment on the target's unpush state.
8306 2012-01-19 Pedro Alves <palves@redhat.com>
8308 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8309 linux_nat_async directly instead of going through the target
8311 * target.c (unpush_target): Close target after unpushing it, not
8314 2012-01-19 Gary Benson <gbenson@redhat.com>
8316 * mdebugread.c (sort_blocks): Replace integer constants with ones
8317 derived from FIRST_LOCAL_BLOCK.
8319 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8320 Jan Kratochvil <jan.kratochvil@redhat.com>
8323 * symfile.c (find_separate_debug_file): New function.
8324 (terminate_after_last_dir_separator): Likewise.
8325 (find_separate_debug_file_by_debuglink): Also try realpath.
8326 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8327 * configure: Regenerate.
8328 * config.in: Regenerate.
8330 2012-01-18 Doug Evans <dje@google.com>
8332 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8333 (main.o): Remove rule.
8334 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8335 (--with-sysroot): Rewrite.
8336 * configure: Regenerate.
8337 * config.in: Regenerate.
8339 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8341 * parse.c (initialize_expout): New function.
8342 (reallocate_expout): Likewise.
8343 (parse_exp_in_context): Use `initialize_expout' and
8344 `reallocate_expout' when appropriate.
8346 2012-01-18 Pedro Alves <palves@redhat.com>
8348 * record.c (struct record_breakpoint, record_breakpoint_p)
8349 (record_breakpoints): New.
8350 (record_insert_breakpoint, record_remove_breakpoint): Manage
8351 record breakpoints list. Only remove breakpoints from the
8352 inferior if they had been inserted there in the first place.
8354 2012-01-17 Doug Evans <dje@google.com>
8356 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8357 if we know we don't have a file name to look for.
8359 2012-01-17 Pedro Alves <palves@redhat.com>
8361 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8362 the frame's stop reason is UNWIND_UNAVAILABLE.
8364 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8366 Fix compilation error.
8367 * m2-exp.y (yyerror): Use ANSI C prototype.
8369 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8371 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8372 (growbuf_by_size): Likewise.
8373 (yyerror): Likewise.
8374 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8375 (modblock): Remove variable (was #if 0'ed).
8376 (parse_number): Convert prototype from K&R to ANSI C.
8377 (yyerror): Likewise.
8378 * objc-exp.y (parse_number): Likewise.
8379 (yyerror): Likewise.
8380 (yylex): Remove #if 0'ed code.
8381 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8382 (yyerror): Likewise.
8384 2012-01-16 Tom Tromey <tromey@redhat.com>
8387 * symtab.h (compare_filenames_for_search): Declare.
8388 * symtab.c (compare_filenames_for_search): New function.
8389 (iterate_over_some_symtabs): Use it.
8390 * symfile.h (struct quick_symbol_functions)
8391 <map_symtabs_matching_filename>: Change spec.
8392 * psymtab.c (partial_map_symtabs_matching_filename): Use
8393 compare_filenames_for_search. Update for new spec.
8394 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8395 compare_filenames_for_search. Update for new spec.
8396 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8398 2012-01-16 Tom Tromey <tromey@redhat.com>
8401 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8402 (struct main_type) <flag_flag_enum>: New field.
8403 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8404 * NEWS: Add entries.
8405 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8407 * python/lib/gdb/printing.py (_EnumInstance): New class.
8408 (FlagEnumerationPrinter): Likewise.
8410 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8412 * breakpoint.c (create_sals_from_address_default): New function.
8413 (create_breakpoints_sal_default): Likewise.
8414 (decode_linespec_default): Likewise.
8415 (is_marker_spec): Removed.
8416 (strace_marker_p): New function.
8417 (init_breakpoint_sal): Using `strace_marker_p' instead of
8419 (create_breakpoint): Call method `create_sals_from_address' from
8420 breakpoint_ops, replacing code that created SALs conditionally
8421 on the type of the breakpoint. Call method `create_breakpoints_sal',
8422 replacing code that created breakpoints conditionally on the type
8424 (base_breakpoint_create_sals_from_address): New function.
8425 (base_breakpoint_create_breakpoints_sal): Likewise.
8426 (base_breakpoint_decode_linespec): Likewise.
8427 (base_breakpoint_ops): Add methods
8428 `base_breakpoint_create_sals_from_address',
8429 `base_breakpoint_create_breakpoints_sal' and
8430 `base_breakpoint_decode_linespec'.
8431 (bkpt_create_sals_from_address): New function.
8432 (bkpt_create_breakpoints_sal): Likewise.
8433 (bkpt_decode_linespec): Likewise.
8434 (tracepoint_create_sals_from_address): Likewise.
8435 (tracepoint_create_breakpoints_sal): Likewise.
8436 (tracepoint_decode_linespec): Likewise.
8437 (strace_marker_create_sals_from_address): Likewise.
8438 (strace_marker_create_breakpoints_sal): Likewise.
8439 (strace_marker_decode_linespec): Likewise.
8440 (strace_marker_breakpoint_ops): New variable.
8441 (addr_string_to_sals): Remove `marker_spec'. Call method
8442 `decode_linespec' from breakpoint_ops, replacing code that decoded
8443 an address string into a SAL. Use `strace_marker_p' instead of
8445 (strace_command): Decide whether we are dealing with a static
8446 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8447 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8448 * breakpoint.h (linespec_result, linespec_sals): New forward
8450 (breakpoint_ops) <create_sals_from_address>,
8451 <create_breakpoints_sal>, <decode_linespec>: New methods.
8453 2012-01-14 Doug Evans <dje@google.com>
8455 * NEWS: Update text for "maint set python print-stack".
8456 It is deprecated in gdb 7.4 and deleted in 7.5.
8458 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8460 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8463 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8465 * configure: Regenerate.
8466 * config.in: Regenerate.
8468 2012-01-12 Keith Seitz <keiths@redhat.com>
8471 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8472 (ANONYMOUS_UNION_NAME): Define.
8473 (is_path_expr_parent): New function.
8474 (get_path_expr_parent): New function.
8475 (is_anonymous_child): New function.
8476 (create_child_with_value): If the child is anonymous and without
8477 a name, assign an object name to it.
8478 (c_describe_child): Use get_path_expr_parent to determine
8479 the parent expression.
8480 If there field represents an anonymous struct or union and
8481 has no name, set an appropriate display name and expression.
8482 (cplus_describe_child): Likewise.
8484 2012-01-12 Pedro Alves <palves@redhat.com>
8486 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8487 available when %ebp is found to be zero (outermost).
8489 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8491 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8492 an internal gdb_static_assert.
8493 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8495 2012-01-11 Tom Tromey <tromey@redhat.com>
8498 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8499 catch" and "catch throw".
8501 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8503 * blockframe.c (block_innermost_frame): Start search from selected
8504 frame, if present, or otherwise the current frame.
8506 * c-exp.y (variable): Update innermost_block for
8507 'block COLONCOLON NAME' clause.
8508 * m2-exp.y (variable): Ditto.
8509 * objc-exp.y (variable): Ditto.
8511 2012-01-10 Tom Tromey <tromey@redhat.com>
8514 * python/python.c (finish_python_initialization): Set sys.argv.
8516 2012-01-10 Doug Evans <dje@google.com>
8518 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8519 "want_line_info". All callers updated.
8520 (dwarf_decode_lines_1): New function.
8521 (handle_DW_AT_stmt_list): Add function comment.
8522 New arg "want_line_info". All callers updated.
8523 (read_file_scope,read_type_unit_scope): Move comment from
8524 handle_DW_AT_stmt_list to here.
8526 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8528 Fix regression after libiberty/ update for GCC PR 6057 and others.
8529 * c-exp.y (operator) <OPERATOR DELETE>
8530 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8531 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8532 (make_builtin_type, make_name): New variable i, add gdb_assert.
8533 (operator) <OPERATOR NEW>: Update ARGS to 3.
8534 (operator) <OPERATOR DELETE>: Add trailing space.
8535 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8536 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8537 * cp-support.c (cp_canonicalize_string): Check NULL from
8538 cp_comp_to_string, call warning and return.
8540 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8542 Fix duplicate .o files after omitting libbfd.a.
8543 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8544 (SFILES): Add corelow.c.
8545 (COMMON_OBS): Add corelow.o.
8546 (ALLDEPFILES): Remove corelow.c.
8547 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8548 * config/alpha/alpha-osf3.mh: Likewise.
8549 * config/alpha/fbsd.mh: Likewise.
8550 * config/arm/nbsdaout.mh: Likewise.
8551 * config/arm/nbsdelf.mh: Likewise.
8552 * config/i386/i386gnu.mh: Likewise.
8553 * config/ia64/hpux.mh: Likewise.
8554 * config/ia64/linux.mh: Likewise.
8555 * config/m32r/linux.mh: Likewise.
8556 * config/m68k/linux.mh: Likewise.
8557 * config/mips/irix5.mh: Likewise.
8558 * config/mips/irix6.mh: Likewise.
8559 * config/pa/hpux.mh: Likewise.
8560 * config/pa/linux.mh: Likewise.
8561 * config/powerpc/aix.mh: Likewise.
8562 * config/sparc/linux.mh: Likewise.
8563 * config/sparc/linux64.mh: Likewise.
8564 * config/sparc/sol2.mh: Likewise.
8565 * config/vax/vax.mh: Likewise.
8566 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8567 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8568 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8569 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8570 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8571 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8572 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8573 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8574 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8575 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8576 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8577 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8578 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8579 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8580 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8581 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8582 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8583 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8584 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8585 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8586 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8587 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8588 corelow.o from gdb_target_obs.
8589 * corefile.c (core_target): Update the comment on NULL value.
8590 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8591 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8592 MATCHES. Drop YUMMY set on NULL.
8593 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8594 reclaim CORE_DATA if it is already NULL.
8596 2012-01-09 Doug Evans <dje@google.com>
8598 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8599 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8601 2012-01-09 Keith Seitz <keiths@redhat.com>
8603 * breakpoint.c (wrapper.h): Don't include.
8605 2012-01-09 Keith Seitz <keiths@redhat.com>
8607 * Makefile.in (SFILES): Remove wrapper.c.
8608 (HFILES_NO_SRCDIR): Remove wrapper.h.
8609 (COMMON_OBS): Remove wrapper.o.
8610 * cli/cli-interp.c: Don't inlude wrapper.h.
8611 * corelow.c: Likewise.
8612 (core_open): Replace gdb_target_find_new_threads with
8613 TRY_CATCH around target_find_new_threads.
8614 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8615 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8616 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8617 evaluate_expression.
8618 (varobj_set_value): Likewise for evaluate_expression and
8620 (install_new_variable): Likewise for value_fetch_lazy.
8621 (adjust_value_for_child_access): Likewise for value_ind.
8622 (c_describe_child): Likewise for value_subscript and
8624 (c_value_of_root): Likewise for evaluate_expression.
8625 * wrapper.c: Remove.
8626 * wrapper.h: Remove.
8628 2012-01-09 Doug Evans <dje@google.com>
8630 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8631 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8632 "abfd" args with "section". All callers updated.
8633 Error checking code moved ...
8634 (error_check_comp_unit_head): ... here. New function.
8635 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8636 Delete arg "abfd". New arg "type_offset". All callers updated.
8637 (create_debug_types_hash_table): Simplify by using
8638 read_and_check_type_unit_head.
8640 * parser-defs.h (namecopy): Delete.
8641 * parse.c (namecopy, namecopy_size): Move into copy_name.
8643 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8645 Partially fix duplicate .o files after omitting libbfd.a.
8646 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8647 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8648 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8649 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8650 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8651 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8652 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8654 2012-01-09 Pedro Alves <palves@redhat.com>
8656 * MAINTAINERS: Update my email address.
8658 2012-01-08 Doug Evans <dje@google.com>
8660 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8661 n_type_units. Rename type_comp_units to all_type_units.
8663 (add_signatured_type_cu_to_table): Renamed from
8664 add_signatured_type_cu_to_list. All callers updated.
8666 * gdbtypes.h (struct cplus_struct_type): Delete member
8667 nfn_fields_total. All uses removed.
8669 2012-01-06 Doug Evans <dje@google.com>
8671 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8673 (dwarf2_find_comp_unit): Delete.
8674 (process_psymtab_comp_unit): Make result "void".
8675 Delete args buffer, info_ptr, buffer_size, and replace with
8676 "section". All callers updated.
8677 (dwarf2_build_psymtabs_hard): Simplify.
8679 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8680 Thiago Jung Bauermann <bauerman@br.ibm.com>
8682 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8683 before `struct gdb_exception'.
8684 * breakpoint.c (update_global_location_list_nothrow)
8685 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8686 * cp-abi.c (value_rtti_type): Likewise.
8687 * cp-support.c (cp_validate_operator): Likewise.
8688 * infrun.c (insert_exception_resume_breakpoint)
8689 (check_exception_resume, keep_going): Likewise.
8690 * mi-interp.c (mi_breakpoint_created)
8691 (mi_breakpoint_modified): Likewise.
8692 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8693 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8694 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8696 2012-01-05 Doug Evans <dje@google.com>
8698 * dwarf2read.c (statement_prologue): Delete, unused.
8700 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8701 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8703 * dwarf2read.c (comp_unit_header): Delete, unused.
8705 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8707 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8708 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8710 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8712 * infrun.c (normal_stop): Don't skip calling the normal_stop
8713 observers if the thread was doing a multi-step, but stopped for
8714 some reason other than stepping.
8716 2012-01-05 Pedro Alves <alves.ped@gmail.com>
8718 * cli/cli-decode.h: Add comments.
8719 (CMD_LIST_AMBIGUOUS): Moved to command.h
8720 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8721 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8722 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8723 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8724 (add_com, add_com_alias, add_info, add_info_alias)
8725 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8727 * command.h: Add and adjust comments.
8728 (CMD_LIST_AMBIGUOUS): Moved here.
8729 (help_cmd, help_cmd_list): Delete declarations.
8731 2012-01-04 Doug Evans <dje@google.com>
8733 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8734 All callers updated.
8735 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8736 Replace all arguments with "per_cu". All callers updated.
8738 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8740 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8741 New arg "per_cu". All callers updated.
8743 Delete #if 0'd out code.
8744 * language.c (binop_result_type): Delete.
8745 (simple_type, ordered_type, same_type, integral_type): Delete.
8746 (numeric_type, character_type, string_type, boolean_type): Delete.
8747 (float_type, structured_type): Delete.
8748 * language.h: Update.
8750 2012-01-04 Tom Tromey <tromey@redhat.com>
8752 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8754 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8756 * corefile.c (close_exec_file): Delete.
8757 (reopen_exec_file): Remove commented out code that seems related
8758 to close_exec_file, which is being deleted here.
8759 * inferior.h (close_exec_file): Delete.
8760 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8762 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8764 * ada-lang.c: #include "cli/cli-utils.h".
8765 (get_selections): Use skip_spaces.
8766 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8767 (catch_ada_exception_command_split): Use skip_spaces.
8768 (ada_decode_assert_location): Likewise.
8770 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8772 * linespec.c (decode_line_internal): Check for C++ or Java
8773 compound constructs only if the current language is C, C++
8776 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8779 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8780 Joel Brobecker <brobecker@adacore.com>
8781 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8782 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8784 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8785 fall through into AT_ENTRY_POINT.
8786 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8788 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8789 PPC_INSN_SIZE skip to 3 times.
8791 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8793 * linespec.c (add_minsym): Preserve function descriptors.
8795 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8797 * breakpoint.c (all_locations_are_pending): Consider locations
8798 in program spaces executing during startup pending as well.
8800 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8802 Copyright year update in most files of the GDB Project.
8804 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8806 * copyright.sh: Delete.
8807 * copyright.py: Rewrite.
8809 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8811 * gnulib/extra/update-copyright: New file, imported from gnulib.
8813 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8815 * README (Copyright and License Notices): New section.
8817 2012-01-03 Tom Tromey <tromey@redhat.com>
8820 * python/py-value.c (valpy_dereference, valpy_get_address
8821 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8822 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8823 (valpy_absolute, valpy_richcompare): Free intermediate values.
8825 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8827 * ada-lang.c: Reformat the copyright notice.
8829 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8831 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8832 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8833 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8834 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8835 Revert this part of:
8836 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8837 Build gdb directly from *.o files not using libgdb.a.
8838 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8840 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8842 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8843 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8844 Reformat the copyright header.
8846 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8848 Revert this part of:
8849 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8850 Remove the gdbtui binary.
8851 * gdb.c (main): Remove args.interpreter_p initialization.
8852 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8853 * main.h (struct captured_main_args): Remove interpreter_p.
8855 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8857 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8859 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8861 * top.c (print_gdb_version): Update copyright year.
8863 2012-01-02 Yao Qi <yao@codesourcery.com>
8865 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8867 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8868 Joel Brobecker <brobecker@adacore.com>
8870 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8871 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8873 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8874 fall through into AT_ENTRY_POINT.
8875 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8877 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8878 PPC_INSN_SIZE skip to 3 times.
8880 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8882 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
8884 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
8886 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8888 Build gdb directly from *.o files not using libgdb.a.
8889 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
8890 (COMMON_OBS): Remove solib-target.o.
8891 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
8892 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8893 (LIBGDB_OBS, libgdb.a): Move it above.
8894 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
8895 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
8896 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
8897 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
8898 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
8899 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
8900 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
8901 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
8902 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
8903 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
8904 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
8905 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
8906 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
8907 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
8908 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8909 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
8910 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
8911 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8912 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
8913 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
8914 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
8915 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
8916 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
8917 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
8918 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
8919 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
8920 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
8922 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8924 Remove the gdbtui binary.
8925 * .gitignore (/gdbtui): Remove.
8926 * Makefile.in (TUI): Remove.
8927 (SUBDIR_TUI_OBS): Remove tui-main.o.
8928 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
8929 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
8930 (tui-main.o): Remove.
8931 (all_object_files): Remove tui-main.o.
8932 * NEWS: New note for the gdbtui removal.
8933 * configure: Rebuilt.
8934 * configure.ac: No longer add all-tui, clean-tui, install-tui and
8935 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
8936 CONFIG_UNINSTALL respectively.
8937 * gdb.c (main): Remove args.interpreter_p initialization.
8938 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8939 * main.h (struct captured_main_args): Remove interpreter_p.
8940 * tui/tui-main.c: Remove.
8942 2012-01-01 Doug Evans <dje@google.com>
8944 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
8945 (dwarf2_physname, read_import_statement): Ditto.
8946 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
8947 (process_structure_scope read_subroutine_type): Ditto.
8948 (read_typedef, load_partial_dies, read_partial_die): Ditto.
8949 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
8950 (dwarf2_fetch_die_location_block): Ditto.
8951 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
8953 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
8954 All callers updated.
8955 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
8956 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
8957 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
8959 * dwarf2read.c (load_cu): Move assert to more useful location.
8961 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
8962 All callers updated.
8964 * dwarf2read.c (dwarf2_per_objfile): Add comment.
8965 (dwarf2_elf_names): Minor reformat.
8966 (dwarf2_per_cu_data): Tweak comment.
8967 (dwarf2_read_section): Fix comment.
8968 (create_all_comp_units): Fix comment.
8969 (load_full_comp_unit): Fix comment.
8970 (process_full_comp_unit): Fix comment.
8971 (read_signatured_type): Fix comment.
8973 For older changes see ChangeLog-2011.
8979 version-control: never