1 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3 * doublest.c (convert_doublest_to_floatformat): If the exponent
4 is too small, treat the value as zero. If the exponent is too
5 large, treat the value as infinity.
7 2012-07-25 Joel Brobecker <brobecker@adacore.com>
9 * configure.ac: Add --enable-lmcheck configure option.
10 * configure: Regenerate.
12 2012-07-25 Tom Tromey <tromey@redhat.com>
14 * NEWS: Mention maint info bfds.
15 * gdb_bfd.c (all_bfds): New global.
16 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
17 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
20 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
22 * configure.tgt: Add v850*-*-rtems*.
24 2012-07-25 Tom Tromey <tromey@redhat.com>
26 * macrotab.c (macro_bcache_str): Remove cast.
28 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
30 * linespec.c (linespec_lexer_lex_number): Update comments,
31 change the return and add check to make sure the input is
33 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
34 false, call linespec_lexer_lex_string.
36 2012-07-24 Tom Tromey <tromey@redhat.com>
38 * symfile.c (symbol_file_add): Don't open BFD twice.
40 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
42 * breakpoint.c (create_breakpoint): Store condition for pending
45 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
47 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
48 (m68k_return_value): Handle complex types like structures.
49 (m68k_svr4_return_value): Likewise.
51 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
53 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
54 parameters to bfd_get_section_name.
56 2012-07-24 Yao Qi <yao@codesourcery.com>
58 * cli/cli-setshow.c: Handle case 'var_uinteger'
59 and 'var_zuninteger' together. Handle case 'var_integer' and
60 'var_zinteger' together.
62 2012-07-23 Keith Seitz <keiths@redhat.com>
64 * linespec.c (convert_linespec_to_sal): Don't add
65 any symbols to the result vector if symbol_to_sal
68 2012-07-23 Keith Seitz <keiths@redhat.com>
70 * linespec.c (decode_objc): Record the function name
73 2012-07-23 Tom Tromey <tromey@redhat.com>
75 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
77 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
78 (map_vmap): Acquire a reference to the BFD.
80 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
82 * p-valprint.c (pascal_object_print_value): Replace potentially
83 unsafe alloca with xmalloc/xfree.
84 * valops.c (search_struct_method): Likewise.
86 2012-07-23 Tom Tromey <tromey@redhat.com>
88 * solib-svr4.c (enable_break): Update.
89 * bfd-target.h (target_bfd_reopen): Update documentation.
91 2012-07-23 Tom Tromey <tromey@redhat.com>
93 * symfile.c (separate_debug_file_exists): Update.
94 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
95 (reread_symbols): Update.
96 * elfread.c (build_id_verify): Update.
97 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
98 bfd_open_maybe_remote.
100 2012-07-23 Tom Tromey <tromey@redhat.com>
102 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
104 2012-07-23 Tom Tromey <tromey@redhat.com>
106 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
108 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
110 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
111 * machoread.c (macho_add_oso_symfile): Make a cleanup for
113 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
114 * objfiles.c (allocate_objfile): Acquire a new reference.
115 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
116 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
117 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
118 a cleanup for 'nbfd'.
119 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
121 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
122 make a cleanup for 'abfd'.
123 (symbol_file_add): Make a BFD cleanup.
125 2012-07-23 Tom Tromey <tromey@redhat.com>
127 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
128 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
129 * corelow.c (core_open): Use gdb_bfd_fopen.
130 * dsrec.c (load_srec): Use gdb_bfd_openr.
131 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
132 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
133 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
134 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
135 (gdb_bfd_fdopenr): New functions.
136 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
137 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
138 (gdb_bfd_fdopenr): Declare.
139 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
140 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
141 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
142 gdb_bfd_openr_next_archived_file.
143 (macho_check_dsym): Use gdb_bfd_openr.
144 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
145 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
146 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
147 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
149 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
150 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
151 gdb_bfd_openr_next_archived_file.
152 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
154 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
156 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
157 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
158 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
159 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
160 (symfile_bfd_open): Use gdb_bfd_fopen.
161 (generic_load): Use gdb_bfd_openr.
162 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
164 2012-07-23 Tom Tromey <tromey@redhat.com>
166 * bfd-target.c (target_bfd_reopen): Update.
167 * cli/cli-dump.c (bfd_openr_with_cleanup)
168 (bfd_openw_with_cleanup): Update.
169 * corelow.c (core_open): Update.
170 * dsrec.c (load_srec): Update.
171 * exec.c (exec_file_attach): Update.
172 * gcore.c (create_gcore_bfd): Update.
173 * gdb_bfd.c (gdb_bfd_ref): Return void.
174 (gdb_bfd_open): Update.
175 * gdb_bfd.h (gdb_bfd_ref): Return void.
177 * jit.c (jit_bfd_try_read_symtab): Update.
178 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
179 * machoread.c (macho_symfile_read_all_oso): Update.
180 (macho_check_dsym): Update.
181 * procfs.c (insert_dbx_link_bpt_in_file): Update.
182 * remote-m32r-sdi.c (m32r_load): Update.
183 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
184 * rs6000-nat.c (add_vmap): Update.
185 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
187 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
188 * solib-spu.c (spu_bfd_open): Update.
189 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
190 * spu-linux-nat.c (spu_bfd_open): Update.
191 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
192 (generic_load): Update.
193 * windows-nat.c (windows_make_so): Update.
195 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
197 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
199 2012-07-20 Jeff Kenton <jkenton@tilera.com>
201 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
202 SIGTRAMP_FRAME unwinding.
204 2012-07-20 Doug Evans <dje@google.com>
206 * NEWS: Document new options "set/show use-deprecated-index-sections",
207 and delete reference to --use-deprecated-index-sections.
208 * symfile.h (use_deprecated_index_sections): Delete.
209 * dwarf2read.c (use_deprecated_index_sections): Make static.
210 (read_index_from_section): Update wording of how to load
211 deprecated index sections.
212 (_initialize_dwarf2_read): New options
213 "set/show use-deprecated-index-sections".
214 * main.c (captured_main): Delete --use-deprecated-index-sections.
216 2012-07-20 Pedro Alves <palves@redhat.com>
221 * infrun.c (handle_inferior_event) <new thread>: Don't special
223 <TARGET_WAITKIND_SPURIOUS>: Ditto.
224 * linux-thread-db.c (thread_get_info_callback): Don't return early
225 if the thread is zombie.
226 (thread_from_lwp): Change return type to void. Rewrite stale
228 (attach_thread): Don't return early if the thread is zombie,
229 instead set its "dying" flag.
230 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
231 (find_new_threads_callback): Don't return early if the thread is
234 2012-07-20 Pedro Alves <palves@redhat.com>
236 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
237 * target.c (target_wait): Likewise.
238 (str_comma_list_concat_elem, do_option, target_options_to_string):
240 * target.h (target_options_to_string): Declare.
242 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
243 Tom Tromey <tromey@redhat.com>
245 * dwarf2read.c (dwarf_decode_macros)
246 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
247 DW_MACRO_GNU_transparent_include_alt>: New cases.
248 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
249 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
251 2012-07-20 Tom Tromey <tromey@redhat.com>
253 * dwarf2read.c (try_open_dwo_file): Don't call
254 gdb_bfd_stash_filename.
256 2012-07-20 Pedro Alves <palves@redhat.com>
258 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
259 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
260 (i386_process_record): Tweak description comments.
262 2012-07-20 Pedro Alves <palves@redhat.com>
264 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
265 (i386_process_record): Use record_read_memory.
266 * record.c (record_read_memory): New function.
267 (record_arch_list_add_mem, record_exec_insn): Use
269 * record.h (record_read_memory): Declare.
271 2012-07-20 Yao Qi <yao@codesourcery.com>
273 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
276 2012-07-19 Pedro Alves <palves@redhat.com>
278 * record.c (record_resume): Ask the target beneath to report all
281 2012-07-19 Doug Evans <dje@google.com>
283 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
284 there's no section at address zero.
285 (dwarf2_record_block_ranges): Ditto.
287 2012-07-19 Yao Qi <yao@codesourcery.com>
289 * command.h, remote.c: Fix a typo in comment.
291 2012-07-19 Tom Tromey <tromey@redhat.com>
294 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
295 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
296 OP_DECLTYPE>: New cases.
297 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
298 (type_exp): Add new productions.
299 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
301 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
303 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
304 OP_DECLTYPE>: New case.
305 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
307 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
308 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
310 2012-07-19 Tom Tromey <tromey@redhat.com>
312 * c-exp.y (enum token_flags): New.
313 (struct token) <cxx_only>: Remove.
315 (tokentab3, tokentab2, ident_tokens): Update.
316 (lex_one_token): Update. Handle FLAG_SHADOW.
318 2012-07-19 Tom Tromey <tromey@redhat.com>
320 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
321 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
322 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
323 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
324 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
325 type_exp production where appropriate.
326 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
327 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
328 <UNOP_MEMVAL_TYPE>: New case.
329 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
330 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
331 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
332 <UNOP_MEMVAL_TYPE>: New case.
333 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
334 UNOP_REINTERPRET_CAST>: Update.
335 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
336 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
337 UNOP_REINTERPRET_CAST>: Update.
338 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
339 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
340 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
343 2012-07-19 Yao Qi <yao@codesourcery.com>
344 Jan Kratochvil <jan.kratochvil@redhat.com>
346 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
347 and case 'var_optional_filename' together.
348 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
349 instead of add_setshow_optional_filename_cmd for setshow command
350 'args'. Set completer for 'set args'.
352 2012-07-18 Doug Evans <dje@google.com>
354 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
355 * common/gdb_vecs.c: New file, contents from utils.c.
356 * common/host-defs.h: New file, contents from defs.h.
357 * utils.h: New file, contents from defs.h.
358 * defs.h: Move all declarations of objects defined in utils.c
359 to utils.h (except QUIT() and related).
360 #include "utils.h", "host-defs.h".
361 * probe.h (probe_p): Move here from gdb_vecs.h.
362 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
363 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
364 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
365 * Makefile.in (SFILES): Add common/gdb_vecs.c.
366 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
367 (COMMON_OBS): Add gdb_vecs.o.
368 (gdb_vecs.o): New rule.
370 2012-07-18 Keith Seitz <keiths@redhat.com>
372 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
373 parameter. If non-zero, use SYMNAME as the canonical name
376 (convert_linespec_to_sals): Use add_sal_to_sals for
378 (decode_line_full): No need to "fill in missing canonical names"
379 anymore. Simply make cleanups for the allocated names.
381 2012-07-18 Keith Seitz <keiths@redhat.com>
383 * linespec.c (struct linespec): Constify expression,
384 source_filename, function_name, and label_name.
385 (symbol_not_found_error): Make all parameters const.
386 (linespec_parser_delete): No need to check for NULL
387 when using xfree. Cast const char * to char * for xfree.
389 2012-07-18 Keith Seitz <keiths@redhat.com>
391 * breakpoint.c (invalid_thread_id_error): New function.
392 (find_condition_and_thread): Use invalid_thread_id_error.
393 (watch_command_1): Likewise.
395 2012-07-18 Tom Tromey <tromey@redhat.com>
397 * cc-with-index.sh, cc-with-dwz.sh: Remove.
398 * contrib/cc-with-tweaks.sh: New file.
400 2012-07-18 Tom Tromey <tromey@redhat.com>
402 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
403 (locate_dwz_sections): Recognize .gdb_index.
404 (create_cus_from_index_list): New function.
405 (create_cus_from_index): Use it. Handle .dwz data.
406 (read_index_from_section): New function, extracted from
408 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
411 2012-07-18 Tom Tromey <tromey@redhat.com>
413 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
414 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
416 (struct dwz_file): New.
417 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
418 (locate_dwz_sections, dwarf2_get_dwz_file)
419 (get_abbrev_section_for_cu): New functions.
420 (error_check_comp_unit_head, read_and_check_comp_unit_head)
421 (read_and_check_type_unit_head): Add abbrev_section argument.
422 (create_debug_types_hash_table): Update.
423 (init_cutu_and_read_dies): Use proper abbrev section.
424 (init_cutu_and_read_dies_no_follow): Likewise.
425 (set_partial_user): Do nothing if PST==NULL.
426 (read_comp_units_from_section): New function.
427 (create_all_comp_units): Use it.
428 (scan_partial_symbols, partial_die_parent_scope): Update.
429 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
430 (process_imported_unit_die, read_partial_die): Handle .dwz files.
431 (find_partial_die): Add offset_in_dwz argument. Update.
432 (guess_partial_die_structure_name, fixup_partial_die): Update.
433 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
434 DW_FORM_GNU_strp_alt.
435 (read_indirect_string_from_dwz): New function.
436 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
437 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
438 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
439 (follow_die_offset): Add offset_in_dwz argument.
440 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
441 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
442 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
443 Handle new macro forms.
444 (dwarf_decode_macros): Update.
445 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
446 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
447 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
448 (create_debug_types_hash_table): Use correct abbrev section.
449 (get_debug_line_section): New function.
450 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
451 (process_full_comp_unit): Pass 'required' argument to
452 end_symtab_get_static_block.
453 * buildsym.h (end_symtab_get_static_block): Update.
454 * buildsym.c (end_symtab_get_static_block): Add 'required'
456 (end_symtab, end_expandable_symtab): Update.
458 2012-07-18 Tom Tromey <tromey@redhat.com>
460 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
462 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
463 (zlib_decompress_section): Remove.
464 (dwarf2_read_section): Use gdb_bfd_map_section.
465 (munmap_section_buffer): Remove.
466 (free_dwo_file, dwarf2_per_objfile_free): Don't use
467 munmap_section_buffer.
468 * gdb_bfd.c: Include zlib.h, sys/mman.h.
469 (struct gdb_bfd_section_data): New.
470 (free_one_bfd_section): New function.
471 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
472 (get_section_descriptor, zlib_decompress_section)
473 (gdb_bfd_map_section): New functions.
474 * gdb_bfd.h (gdb_bfd_map_section): Declare.
476 2012-07-18 Tom Tromey <tromey@redhat.com>
478 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
480 2012-07-18 Tom Tromey <tromey@redhat.com>
482 * gdb_bfd.c (struct gdb_bfd_data): New.
483 (gdb_bfd_cache): New global.
484 (struct gdb_bfd_cache_search): New.
485 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
486 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
487 * gdb_bfd.h (gdb_bfd_open): Declare.
489 2012-07-18 Tom Tromey <tromey@redhat.com>
491 * utils.c (make_cleanup_bfd_unref): Rename from
492 make_cleanup_bfd_close.
493 * defs.h (make_cleanup_bfd_unref): Rename from
494 make_cleanup_bfd_close.
495 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
496 (bfd_openw_with_cleanup): Update.
497 * corelow.c (core_open): Update.
498 * dsrec.c (load_srec): Update.
499 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
500 * remote-m32r-sdi.c (m32r_load): Update.
501 * remote-mips.c (mips_load_srec): Update.
502 (pmon_load_fast): Update.
503 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
505 (darwin_bfd_open): Update.
506 * solib.c (solib_bfd_fopen): Update.
507 * symfile-mem.c (symbol_file_add_from_memory): Update.
508 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
509 (symfile_bfd_open): Update.
510 (generic_load): Update.
512 2012-07-18 Tom Tromey <tromey@redhat.com>
514 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
515 (pmon_load_fast): Likewise.
516 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
517 (m32r_upload_command): Likewise.
518 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
519 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
520 Use make_cleanup_bfd_close.
522 2012-07-18 Tom Tromey <tromey@redhat.com>
524 * symfile.c (symfile_bfd_open): Don't copy name. Call
525 gdb_bfd_stash_filename.
526 (load_command): Open the new BFD before freeing the old.
527 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
528 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
529 Call gdb_bfd_stash_filename.
530 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
531 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
532 gdb_bfd_stash_filename.
533 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
535 * rs6000-nat.c (add_vmap): Don't copy filename. Call
536 gdb_bfd_stash_filename.
537 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
538 * machoread.c (macho_add_oso_symfile): Call
539 gdb_bfd_stash_filename.
540 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
541 gdb_bfd_stash_filename.
542 (macho_check_dsym): Don't copy filename. Call
543 gdb_bfd_stash_filename.
544 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
545 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
546 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
547 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
548 * exec.c (exec_close): Don't free the BFD's filename.
549 (exec_file_attach): Don't copy the filename. Call
550 gdb_bfd_stash_filename.
551 * corelow.c (core_close): Don't free the BFD's filename.
552 (core_open): Call gdb_bfd_stash_filename.
553 * corefile.c (reopen_exec_file): Remove #if 0 code.
554 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
556 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
558 2012-07-18 Tom Tromey <tromey@redhat.com>
560 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
562 (free_dwo_file): Use gdb_bfd_unref.
563 * cli/cli-dump.c: Include gdb_bfd.h.
564 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
565 (bfd_openr_with_cleanup): Likewise.
566 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
568 * utils.c: Include gdb_bfd.h.
569 (do_bfd_close_cleanup): Use gdb_bfd_unref.
570 * symfile.c: Include gdb_bfd.h.
571 (separate_debug_file_exists): Use gdb_bfd_unref.
572 (bfd_open_maybe_remote): Use gdb_bfd_ref.
573 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
574 (generic_load): Use gdb_bfd_ref.
575 (reread_symbols): Use gdb_bfd_unref.
576 * symfile-mem.c: Include gdb_bfd.h.
577 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
578 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
579 * solib.c: Include gdb_bfd.h.
580 (solib_bfd_fopen): Use gdb_bfd_ref.
581 (solib_bfd_open): Use gdb_bfd_unref.
582 (free_so_symbols): Use gdb_bfd_unref.
583 (reload_shared_libraries_1): Use gdb_bfd_unref.
584 * solib-spu.c: Include gdb_bfd.h.
585 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
586 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
588 * solib-frv.c: Include gdb_bfd.h.
589 (enable_break2): Use gdb_bfd_unref.
590 * solib-dsbt.c: Include gdb_bfd.h.
591 (enable_break2): Use gdb_bfd_unref.
592 * solib-darwin.c: Include gdb_bfd.h.
593 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
595 (darwin_bfd_open): Use gdb_bfd_unref.
596 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
597 * remote-mips.c: Include gdb_bfd.h.
598 (mips_load_srec): Use gdb_bfd_ref.
599 (pmon_load_fast): Use gdb_bfd_ref.
600 * remote-m32r-sdi.c: Include gdb_bfd.h.
601 (m32r_load): Use gdb_bfd_ref.
602 * record.c: Include gdb_bfd.h.
603 (record_save_cleanups): Use gdb_bfd_unref.
604 (cmd_record_save): Use gdb_bfd_unref.
605 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
607 * objfiles.h (gdb_bfd_close_or_warn): Remove.
608 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
609 * objfiles.c: Include gdb_bfd.h.
610 (free_objfile): Use gdb_bfd_unref.
611 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
613 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
614 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
615 (macho_check_dsym): Likewise.
616 * m32r-rom.c: Include gdb_bfd.h.
617 (m32r_load): Use gdb_bfd_ref.
618 (m32r_upload_command): Use gdb_bfd_ref.
619 * jit.c: Include gdb_bfd.h.
620 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
621 * gdb_bfd.h: New file.
622 * gdb_bfd.c: New file.
623 * gcore.c: Include gdb_bfd.h.
624 (create_gcore_bfd): Use gdb_bfd_ref.
625 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
626 (gcore_command): Use gdb_bfd_unref.
627 * exec.c: Include gdb_bfd.h.
628 (exec_close): Use gdb_bfd_unref.
629 (exec_close_1): Use gdb_bfd_unref.
630 (exec_file_attach): Use gdb_bfd_ref.
631 * elfread.c: Include gdb_bfd.h.
632 (build_id_verify): Use gdb_bfd_unref.
633 * dsrec.c: Include gdb_bfd.h.
634 (load_srec): Use gdb_bfd_ref.
635 * corelow.c: Include gdb_bfd.h.
636 (core_close): Use gdb_bfd_unref.
637 (core_open): Use gdb_bfd_ref.
638 * bfd-target.c: Include gdb_bfd.h.
639 (target_bfd_xclose): Use gdb_bfd_unref.
640 (target_bfd_reopen): Use gdb_bfd_ref.
641 * Makefile.in (SFILES): Add gdb_bfd.c.
642 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
643 (COMMON_OBS): Add gdb_bfd.o.
645 2012-07-18 Keith Seitz <keiths@redhat.com>
647 * breakpoint.c (find_condition_and_thread): Initialize
649 (create_breakpiont): find_condition_and_thread will now
650 initialize COND_STRING, THREAD, and REST (and TASK).
651 (addr_string_to_sals): Likewise.
653 2012-07-18 Pedro Alves <palves@redhat.com>
655 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
656 Pull the single step breakpoints out of the target.
658 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
660 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
661 * stap-probe.c (compile_probe_arg): Likewise.
663 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
665 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
666 (elf_compile_to_ax): Likewise.
667 * infrun.c (insert_exception_resume_from_probe): Likewise.
668 (check_exception_resume): Remove `objfile' variable.
669 * probe.c (find_probe_by_pc): Remove `objfile' argument.
670 (struct probe_and_objfile, probe_and_objfile_s): Delete.
671 (collect_probes): Adjust return value to `VEC (probe_p) *'.
672 (compare_entries): Rename to...
673 (compare_probes): ...this. Adjust function to work with
674 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
676 (gen_ui_out_table_header_info): Adjust `probes' argument to be
678 (print_ui_out_info): Adjust argument to be `struct probe *'.
679 (info_probes_for_ops): Adjust internal computations to use
681 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
682 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
683 gen_info_probes_table_values>: Remove `objfile' argument.
684 (struct probe) <objfile>: New field.
685 (find_probe_by_pc): Remove `objfile' argument.
686 * stap-probe.c (stap_parse_probe_arguments): Likewise.
687 (stap_get_probe_argument_count): Likewise.
688 (stap_get_arg): Likewise.
689 (stap_evaluate_probe_argument): Likewise.
690 (stap_compile_to_ax): Likewise.
691 (compile_probe_arg): Refactor not to pass `objfile' anymore.
692 (handle_stap_probe): Fill `objfile' field from `struct probe'.
693 (stap_gen_info_probes_table_header): Remove `objfile' argument.
694 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
695 sym_compile_to_ax>: Likewise.
697 2012-07-18 Terry Guo <terry.guo@arm.com>
700 * defs.h (GDB_MI_MSG_WIDTH): New.
701 * ser_base (ser_base_read_error_fd): New function.
702 (do_ser_base_readchar): Poll error file descriptor as well as
704 (generic_readchar): Refactor error handling.
706 2012-07-18 Joel Brobecker <brobecker@adacore.com>
708 * NEWS: Create a new section for the next release branch.
709 Rename the section of the current branch, now that it has
712 2012-07-18 Joel Brobecker <brobecker@adacore.com>
714 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
715 * version.in: Bump version to 7.5.50.20120718-cvs.
717 2012-07-17 Keith Seitz <keiths@redhat.com>
719 * linespec.c (linespec_parse_line_offset): Make parameter
722 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
725 * f-valprint.c (info_common_command): New variable frame_id.
726 Reinitialize FI form FRAME_ID after each print_variable_and_value.
727 * printcmd.c (print_variable_and_value): Extend function comment.
728 Add comment for invalidated FRAME.
729 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
730 FI form FRAME_ID after each print_frame_local_vars.
731 (struct print_variable_and_value_data): Change frame to frame_id.
732 (do_print_variable_and_value): New variable frame, initialize it from
733 p->frame_id. Add comment for invalidated FRAME.
734 (print_frame_local_vars, print_frame_arg_vars): New function comment.
735 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
736 for invalidated FRAME.
738 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
739 Pedro Alves <palves@redhat.com>
741 * linux-nat.c (linux_nat_detach): Don't unregister from the event
744 2012-07-16 Tom Tromey <tromey@redhat.com>
746 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
748 2012-07-15 Doug Evans <dje@google.com>
750 * dwarf2read.c (stmt_list_hash): New struct.
751 (type_unit_group): Embed "per_cu" member, remove pointer.
752 New union member "t", move member "tus" into it, all uses updated.
753 New member "hash", replaces member "line_offset, all uses updated.
754 (quick_file_names): Replace member "offset" with "hash", all uses
756 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
757 (hash_file_name_entry, eq_file_name_entry): Call them.
758 (hash_type_unit_group, eq_type_unit_group): Ditto.
759 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
760 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
761 (dw2_get_file_names): Update.
762 (create_type_unit_group): Replace "per_cu" arg with "cu".
763 All callers updated. Fix "quick" (.gdb_index) handling.
764 (get_type_unit_group): Replace "per_cu" arg with "cu".
766 (build_type_unit_groups): Don't reset tu_stats.
768 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
769 "tab_cur_size". Change member "tab" to be a htab_t.
770 (create_filename_seen_cache): Update.
771 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
772 (filename_seen): Update.
774 2012-07-13 Doug Evans <dje@google.com>
776 * symtab.c (filename_seen): Update comment.
778 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
779 Doug Evans <dje@google.com>
781 * buildsym.c (end_symtab_1): Split it to ...
782 (end_symtab_get_static_block): ... this ...
783 (end_symtab_from_static_block): ... and this function.
784 (end_symtab, end_expandable_symtab): Call them.
785 * buildsym.h (end_symtab_get_static_block)
786 (end_symtab_from_static_block): New declarations.
787 * dwarf2read.c (process_full_comp_unit): New variable static_block.
788 Set its valid CU ranges.
790 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
792 * dwarf2loc.c (disassemble_dwarf_expression): Handle
793 DW_OP_GNU_parameter_ref.
795 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
797 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
798 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
800 2012-07-13 Doug Evans <dje@google.com>
802 * symtab.c (output_source_filename): Delete unnecessary forward decl.
803 (filename_seen_cache): New struct.
804 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
805 (create_filename_seen_cache): New function.
806 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
807 (filename_seen): Delete arg "first". New arg "cache". All callers
809 (output_source_filename_data): New struct.
810 (output_source_filename): Delete arg "first". New arg "data".
812 (sources_info): Delete local "first". New locals "data", "cleanups".
813 Rewrite to use filename_seen_cache.
814 (add_partial_filename_data): Delete member "first". New member
815 "filename_seen_cache". All uses updated.
816 (make_source_files_completion_list): Rewrite to use
819 2012-07-12 Doug Evans <dje@google.com>
821 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
823 2012-07-10 Doug Evans <dje@google.com>
826 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
827 all_type_unit_groups, type_unit_groups, tu_stats.
828 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
829 All uses updated. Add type_unit_group to union "s".
830 (type_unit_group): New struct.
831 (IS_TYPE_UNIT_GROUP): New macro.
832 (abbrev_table): Delete unused member "section".
833 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
834 (dw2_get_cu): Assert not used with type_unit_group.
835 (dw2_get_primary_cu): New function.
836 (dw2_build_type_unit_groups_reader): New function.
837 (dw2_build_type_unit_groups): New function.
838 (dw2_get_file_names): Assert not called on type units.
839 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
840 Redo loop to iterate over type unit groups instead of type units.
841 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
842 (read_abbrev_offset): New function.
843 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
845 (create_partial_symtab): New function.
846 (process_psymtab_comp_unit_reader): Assert not used with type units.
847 Call create_partial_symtab.
848 (process_psymtab_type_unit): Delete.
849 (hash_type_unit_group, eq_type_unit_group): New functions.
850 (allocate_type_unit_groups_table): New function.
851 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
852 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
853 (create_type_unit_group, get_type_unit_group): New functions.
854 (tu_abbrev_offset): New struct.
855 (sort_tu_by_abbrev_offset): New function.
856 (add_type_unit_group_to_table): New function.
857 (build_type_unit_groups): New function.
858 (build_type_psymtabs_reader): New function.
859 (build_type_psymtab_dependencies): New function.
860 (build_type_psymtabs): Rewrite.
861 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
862 is seen in a type unit.
863 (process_queue): Move symtab expansion debugging printfs here.
864 Call process_full_type_unit for type units.
865 (compute_symtab_includes): Assert not called for type units.
866 (process_cu_includes): Don't call compute_symtab_includes for
868 (process_full_type_unit): New function.
869 (process_imported_unit_die): Flag an error if called for type units.
870 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
871 updated. Assert not called for type units.
872 (read_file_scope): Call dwarf2_start_symtab.
873 (setup_type_unit_groups): New function.
874 (read_type_unit_scope): Rewrite.
875 (abbrev_table_read_table): Initialize abbrev_table->offset.
876 (abbrev_table_free_cleanup): New function.
877 (dwarf2_start_symtab): New function.
878 (load_full_type_unit): Assert not called for type unit groups.
879 * buildsym.c (finish_block_internal): New arg "expandable".
881 (start_symtab): Move most contents to ...
882 (restart_symtab): ... here. New function.
883 (reset_symtab_globals): New function.
884 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
885 Call reset_symtab_globals.
886 (end_symtab, end_expandable_symtab): New functions.
887 (set_missing_symtab, augment_type_symtab): New functions.
888 * buildsym.h (end_expandable_symtab): Declare.
889 (augment_type_symtab, restart_symtab): Declare.
890 * psympriv.h (struct partial_symtab): New member "anonymous".
891 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
893 (read_psymtabs_with_filename): Ditto.
894 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
895 (expand_symtabs_matching_via_partial): Ditto.
896 (dump_psymtab): Update.
897 * dictionary.c (dict_add_pending): New function.
898 * dictionary.h (dict_add_pending): Declare.
900 2012-07-09 Doug Evans <dje@google.com>
902 * buildsym.c (start_subfile): Remove unnecessary check for
905 * psymtab.c (allocate_psymtab): Use host_address_to_string.
907 * dwarf2read.c (load_full_type_unit): Simplify.
909 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
910 to struct signatured_type **. All uses updated.
912 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
915 2012-07-09 Tom Tromey <tromey@redhat.com>
917 * c-exp.y (check_parameter_typelist): New function.
918 (parameter_typelist): Call it.
919 * eval.c (make_params): Handle '(void)' case.
920 * gdbtypes.c (lookup_function_type_with_arguments): Handle
923 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
925 * common/linux-ptrace.c: Include gdb_assert.h.
926 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
927 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
929 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
931 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
932 * linux-nat.c (linux_child_post_attach)
933 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
935 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
937 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
938 nptl <2.7 bug workaround for core files.
940 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
942 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
944 (save_siginfo): Remove.
945 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
947 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
948 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
949 * linux-nat.h (struct lwp_info): Remove field siginfo.
951 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
953 Code cleanup for the next patch.
954 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
955 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
957 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
958 (ia64_linux_stopped_data_address):
959 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
961 * linux-nat.h (linux_nat_get_siginfo): Likewise.
962 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
963 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
966 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
969 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
970 Increase buffer sizes to 2x we need, not just 2x of the previous size.
972 2012-07-06 Tom Tromey <tromey@redhat.com>
974 * c-exp.y (DOTDOTDOT): New token.
975 (func_mod, exp): Use parameter_typelist.
976 (parameter_typelist): New production.
977 (tokentab3): Add "..." token.
978 * eval.c (make_params): Handle varargs.
979 * gdbtypes.c (lookup_function_type_with_arguments): Handle
982 2012-07-06 Tom Tromey <tromey@redhat.com>
985 * c-exp.y (%union) <tvec>: Change type.
986 (func_mod): Now uses <tvec> type.
987 (exp): Update for tvec change.
988 (direct_abs_decl): Push the typelist.
989 (func_mod): Return a typelist.
990 (nonempty_typelist): Update for tvec change.
991 * gdbtypes.c (lookup_function_type_with_arguments): New function.
992 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
993 * parse.c (pop_type_list): New function.
994 (push_typelist): New function.
995 (follow_types): Handle tp_function_with_arguments.
996 * parser-defs.h (type_ptr): New typedef. Define a VEC.
997 (enum type_pieces) <tp_function_with_arguments>: New constant.
998 (union type_stack_elt) <typelist_val>: New field.
999 (push_typelist): Declare.
1001 2012-07-06 Tom Tromey <tromey@redhat.com>
1003 * c-exp.y (%union) <type_stack>: New field.
1004 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
1005 (ptr_operator_ts): New production.
1007 * parse.c (type_stack_reserve): New function.
1008 (check_type_stack_depth): Use it.
1009 (pop_type_stack, append_type_stack, push_type_stack)
1010 (get_type_stack, type_stack_cleanup): New functions.
1011 (follow_types): Handle tp_type_stack.
1012 (_initialize_parse): Simplify initialization.
1013 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
1015 (union type_stack_elt) <stack_val>: New field.
1016 (get_type_stack, append_type_stack, push_type_stack)
1017 (type_stack_cleanup): Declare.
1019 2012-07-06 Tom Tromey <tromey@redhat.com>
1021 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
1023 (struct type_stack): New.
1024 * parse.c (type_stack, type_stack_size, type_stack_depth):
1026 (type_stack): New global.
1027 (parse_exp_in_context, check_type_stack_depth)
1028 (insert_into_type_stack, insert_type, push_type, push_type_int)
1029 (insert_type_address_space, pop_type, pop_type_int)
1030 (_initialize_parse): Update.
1032 2012-07-06 Tom Tromey <tromey@redhat.com>
1034 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
1037 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1039 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
1041 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1042 Jan Kratochvil <jan.kratochvil@redhat.com>
1044 * cp-valprint.c (cp_print_value): Replace potentially unsafe
1045 alloca with xmalloc/xfree.
1047 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1049 * MAINTAINERS (Write After Approval): Add myself to the list.
1051 2012-07-05 Doug Evans <dje@google.com>
1053 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
1055 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1057 * ax-gdb.c (cli/cli-utils.h): New include.
1058 (linespec.h): Ditto.
1059 (agent_eval_command_one): New function.
1060 (agent_command_1): Ditto.
1061 (agent_command): Call function agent_command_1.
1062 (agent_eval_command): Ditto.
1063 (_initialize_ax_gdb): Change help for "maint agent"
1064 and "maint agent-eval".
1066 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1068 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
1069 * cli/cli-utils.c (check_for_argument): New function.
1070 * cli/cli-utils.h (check_for_argument): Ditto.
1072 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1074 * NEWS: Mention x32 ABI support.
1076 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1078 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1079 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1081 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1082 and pc_regnum_from_eax to -1. Update SP regnum from
1083 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1086 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1089 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1091 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1092 * dwarf2expr.h: Include gdbtypes.h.
1093 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1094 these forward declarations.
1095 (cu_offset, sect_offset): Move these ...
1096 * gdbtypes.h: Remove include dwarf2expr.h.
1097 (cu_offset, sect_offset): ... here.
1099 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1101 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1102 (amd64_linux_sigtramp_code): This.
1103 (amd64_x32_linux_sigtramp_code): New.
1104 (LINUX_SIGTRAMP_LEN): Updated.
1105 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1107 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1109 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1111 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1113 * config.in: Regenerate.
1114 * configure: Regenerate.
1115 * configure.ac: Remove check for gnu/libc-version.h.
1116 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1118 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1119 variables libc_version, libc_major and libc_minor. Replace sscanf by
1120 inferior_has_bug. Extend the comment.
1122 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1124 * linux-thread-db.c (inferior_has_bug): New function.
1125 (thread_db_find_new_threads_silently): Return boolean as checked by
1126 inferior_has_bug, describe it in the comments.
1127 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1128 earlier. Abort the initialization if it returned non-zero.
1129 (thread_db_new_objfile): Exclude debug files.
1130 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1133 2012-07-02 Doug Evans <dje@google.com>
1135 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1136 related to queue management.
1138 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1139 instead of "debug dwarf2-die" in debugging printfs.
1140 (create_debug_info_hash_table_reader): Ditto.
1141 (create_debug_info_hash_table): Ditto.
1142 (init_dwo_file): Ditto.
1143 (init_cutu_and_read_dies): Add debugging printf.
1144 (init_cutu_and_read_dies_no_follow): Ditto.
1145 (process_psymtab_comp_unit_reader): Ditto.
1147 2012-07-02 Stan Shebs <stan@codesourcery.com>
1149 Add target-side support for dynamic printf.
1150 * NEWS: Mention the additional style.
1151 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1152 (struct bp_location): New field cmd_bytecode.
1153 * breakpoint.c: Include format.h.
1154 (disconnected_dprintf): New global.
1155 (parse_cmd_to_aexpr): New function.
1156 (build_target_command_list): New function.
1157 (insert_bp_location): Call it.
1158 (remove_breakpoints_pid): Skip dprintf breakpoints.
1159 (print_one_breakpoint_location): Ditto.
1160 (dprintf_style_agent): New global.
1161 (dprintf_style_enums): Add dprintf_style_agent.
1162 (update_dprintf_command_list): Add agent case.
1163 (agent_printf_command): New function.
1164 (_initialize_breakpoint): Add new commands.
1165 * common/ax.def (printf): New bytecode.
1166 * ax.h (ax_string): Declare.
1167 * ax-gdb.h (gen_printf): Declare.
1168 * ax-gdb.c: Include cli-utils.h, format.h.
1169 (gen_printf): New function.
1170 (maint_agent_print_command): New function.
1171 (_initialize_ax_gdb): Add maint agent-printf command.
1172 * ax-general.c (ax_string): New function.
1173 (ax_print): Add printf disassembly.
1174 * Makefile.in (SFILES): Add format.c
1175 (COMMON_OBS): Add format.o.
1176 * common/format.h: New file.
1177 * common/format.c: New file.
1178 * printcmd.c: Include format.h.
1179 (ui_printf): Call parse_format_string.
1180 * remote.c (remote_state): New field breakpoint_commands.
1181 (PACKET_BreakpointCommands): New enum.
1182 (remote_breakpoint_commands_feature): New function.
1183 (remote_protocol_features): Add new BreakpointCommands entry.
1184 (remote_can_run_breakpoint_commands): New function.
1185 (remote_add_target_side_commands): New function.
1186 (remote_insert_breakpoint): Call it.
1187 (remote_insert_hw_breakpoint): Ditto.
1188 (_initialize_remote): Add new packet configuration for
1189 target-side breakpoint commands.
1190 * target.h (struct target_ops): New field
1191 to_can_run_breakpoint_commands.
1192 (target_can_run_breakpoint_commands): New macro.
1193 * target.c (update_current_target): Handle
1194 to_can_run_breakpoint_commands.
1196 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1198 Execute -ix and -iex only after system and user gdbinit files.
1199 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1200 processing down after gdbinit files.
1202 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1204 Add fnmatch-gnu module.
1205 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1206 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1207 * gnulib/aclocal.m4: Regenerate.
1208 * gnulib/config.in: Regenerate.
1209 * gnulib/configure: Regenerate.
1210 * gnulib/import/dummy.c: Remove.
1211 * gnulib/import/Makefile.am: Regenerate.
1212 * gnulib/import/Makefile.in: Likewise.
1213 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1214 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1215 * gnulib/import/alloca.c: New file.
1216 * gnulib/import/alloca.in.h: Likewise.
1217 * gnulib/import/config.charset: Likewise.
1218 * gnulib/import/fnmatch.c: Likewise.
1219 * gnulib/import/fnmatch.in.h: Likewise.
1220 * gnulib/import/fnmatch_loop.c: Likewise.
1221 * gnulib/import/localcharset.c: Likewise.
1222 * gnulib/import/localcharset.h: Likewise.
1223 * gnulib/import/m4/alloca.m4: Likewise.
1224 * gnulib/import/m4/codeset.m4: Likewise.
1225 * gnulib/import/m4/configmake.m4: Likewise.
1226 * gnulib/import/m4/fcntl-o.m4: Likewise.
1227 * gnulib/import/m4/fnmatch.m4: Likewise.
1228 * gnulib/import/m4/glibc21.m4: Likewise.
1229 * gnulib/import/m4/localcharset.m4: Likewise.
1230 * gnulib/import/m4/locale-fr.m4: Likewise.
1231 * gnulib/import/m4/locale-ja.m4: Likewise.
1232 * gnulib/import/m4/locale-zh.m4: Likewise.
1233 * gnulib/import/m4/mbrtowc.m4: Likewise.
1234 * gnulib/import/m4/mbsinit.m4: Likewise.
1235 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1236 * gnulib/import/m4/mbstate_t.m4: Likewise.
1237 * gnulib/import/m4/stdbool.m4: Likewise.
1238 * gnulib/import/m4/wchar_h.m4: Likewise.
1239 * gnulib/import/m4/wctype_h.m4: Likewise.
1240 * gnulib/import/m4/wint_t.m4: Likewise.
1241 * gnulib/import/mbrtowc.c: Likewise.
1242 * gnulib/import/mbsinit.c: Likewise.
1243 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1244 * gnulib/import/mbsrtowcs-state.c: Likewise.
1245 * gnulib/import/mbsrtowcs.c: Likewise.
1246 * gnulib/import/ref-add.sin: Likewise.
1247 * gnulib/import/ref-del.sin: Likewise.
1248 * gnulib/import/stdbool.in.h: Likewise.
1249 * gnulib/import/streq.h: Likewise.
1250 * gnulib/import/strnlen1.c: Likewise.
1251 * gnulib/import/strnlen1.h: Likewise.
1252 * gnulib/import/verify.h: Likewise.
1253 * gnulib/import/wchar.in.h: Likewise.
1254 * gnulib/import/wctype.in.h: Likewise.
1256 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1258 Support shell wildcards for 'set auto-load safe-path'.
1259 * auto-load.c: Include fnmatch.h.
1260 (filename_is_in_dir): Rename to ...
1261 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1262 it. Update function comment. Rename dir_len to pattern_len. New
1263 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1264 messages. Use gdb_filename_fnmatch.
1265 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1267 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1268 * defs.h (gdb_filename_fnmatch): New declaration.
1269 * utils.c: Include fnmatch.h.
1270 (gdb_filename_fnmatch): New function.
1272 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1274 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1275 `-probe' and `-probe-stap' options.
1277 2012-07-01 Yao Qi <yao@codesourcery.com>
1279 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1280 always_inserted_off, and always_inserted_enums.
1281 Change always_inserted_mode's type to 'enum auto_boolean'.
1282 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1284 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1285 of add_setshow_enum_cmd.
1286 * infrun.c: Remove can_use_displaced_stepping_auto,
1287 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1288 can_use_displaced_stepping_enum.
1289 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1290 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1291 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1292 add_setshow_enum_cmd.
1294 2012-06-30 Doug Evans <dje@google.com>
1296 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1297 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1298 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1300 2012-06-29 Doug Evans <dje@google.com>
1302 * linespec.c: #include "stack.h".
1303 (decode_line_with_current_source): Moved here from symtab.c and
1304 renamed from decode_line_spec. All callers updated.
1305 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1306 renamed from decode_line_spec_1. All callers updated.
1307 * linespec.h (decode_line_with_current_source): Move declaration here
1308 from symtab.h and renamed from decode_line_spec.
1309 (decode_line_with_last_displayed): Move declaration here from symtab.h
1310 and renamed from decode_line_spec_1.
1311 * macrocmd.c: #include "linespec.h".
1312 * symtab.c: Remove #include "linespec.h".
1314 2012-06-28 Doug Evans <dje@google.com>
1316 * dwarf2read.c (get_cu_length): New function.
1317 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1318 (create_debug_types_hash_table): Ditto.
1319 (init_cutu_and_read_dies): Ditto.
1320 (init_cutu_and_read_dies_no_follow): Ditto.
1322 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1324 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1325 (struct abbrev_table): Define.
1326 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1328 (init_cutu_and_read_dies): Update.
1329 (abbrev_table_alloc_abbrev): New function. Replaces
1330 dwarf_alloc_abbrev. All callers updated.
1331 (abbrev_table_add_abbrev): New function.
1332 (abbrev_table_lookup_abbrev): New function. Replaces
1333 dwarf2_lookup_abbrev. All callers updated.
1334 (abbrev_table_read_table): New function. Contents moved here from
1335 dwarf2_read_abbrevs.
1336 (dwarf2_read_abbrevs): Call it.
1337 (abbrev_table_free): New function.
1338 (dwarf2_free_abbrev_table): Call it.
1340 2012-06-28 Stan Shebs <stan@codesourcery.com>
1342 * osdata.c (info_osdata_command): Filter out "Title" columns
1344 * common/linux-osdata.c (struct osdata_type): Add title field.
1345 (osdata_table): Add titles to each entry.
1346 (linux_command_xfer_osdata): Add a column for title data.
1348 2012-06-28 Stan Shebs <stan@codesourcery.com>
1350 Make logging work for MI.
1352 * interps.h (interp_set_logging_ftype): New typedef.
1353 (struct interp_procs): New field set_logging_proc.
1354 (current_interp_set_logging): Declare.
1355 * interps.c (current_interp_set_logging): New function.
1356 * cli/cli-logging.c: Include interps.h.
1357 (set_logging_redirect): Call current_interp_set_logging.
1358 (pop_output_files): Ditto.
1359 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1360 * mi/mi-console.h (mi_console_set_raw): Declare.
1361 * mi/mi-console.c (mi_console_set_raw): New function.
1362 * mi/mi-interp.c (saved_raw_stdout): New global.
1363 (mi_set_logging): New function.
1364 (_initialize_mi_interp): Add it to interp procs.
1366 2012-06-28 Doug Evans <dje@google.com>
1368 * symtab.c (lookup_symbol_aux_objfile): Use
1369 ALL_OBJFILE_PRIMARY_SYMTABS.
1371 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1373 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1375 * common/buffer.c: Include inttypes.h and stdint.h.
1376 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1378 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1379 Pedro Alves <palves@redhat.com>
1381 * gdbthread.h (ALL_THREADS): New macro.
1382 (thread_list): Declare.
1383 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1384 going, but instead fall through to the stepping handling.
1385 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1386 the passed in signal. Adjust debug output.
1387 (resume_callback): Rename to ...
1388 (linux_nat_resume_callback): ... this. Pass the thread's last
1389 stop signal, if in "pass" state.
1390 (linux_nat_resume): Adjust to rename.
1391 (stop_wait_callback): New assertion. Don't respawn signals;
1392 instead let the LWP remain with SIGNALLED set.
1393 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1394 * remote.c (append_pending_thread_resumptions): New.
1395 (remote_vcont_resume): Call it.
1396 * target.h (target_resume): Extend comment.
1398 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1400 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1402 2012-06-27 Doug Evans <dje@google.com>
1404 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1405 Delete have_addr_base, unused. All uses updated.
1406 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1407 (dwarf2_get_pc_bounds): Add ranges_base.
1408 (dwarf2_record_block_ranges): Ditto.
1410 2012-06-27 Tom Tromey <tromey@redhat.com>
1413 * varobj.c (varobj_create): Update.
1414 (varobj_set_value): Update.
1415 * tracepoint.c (validate_actionline): Update.
1416 (encode_actions_1): Update.
1417 * parse.c (parse_exp_1): Add 'pc' argument.
1418 (parse_exp_in_context): Add 'pc' argument. Change how
1419 expression_context_pc is set.
1420 (parse_expression): Update.
1421 (parse_field_expression): Update.
1422 * expression.h (parse_exp_1): Update.
1423 * eval.c (parse_to_comma_and_eval): Update.
1424 * breakpoint.c (set_breakpoint_condition): Update.
1425 (update_watchpoint): Update.
1426 (init_breakpoint_sal): Update
1427 (find_condition_and_thread): Update.
1428 (watch_command_1): Update.
1429 (update_breakpoint_locations): Update.
1430 * ada-lang.c (ada_read_renaming_var_value): Update.
1431 (create_excep_cond_exprs): Update.
1433 2012-06-27 Doug Evans <dje@google.com>
1435 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1438 2012-06-26 Doug Evans <dje@google.com>
1440 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1442 (error_check_comp_unit_head): New arg abbrev_section. All callers
1444 (read_and_check_comp_unit_head): Ditto.
1445 (read_and_check_type_unit_head): Ditto.
1447 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1449 New attribute 'last' for gdb.Symtab_and_line.
1450 * NEWS (Python Scripting): Add entry about the new attribute.
1451 * python/py-symtab.c (salpy_get_last): New function which
1452 implements the get method for the 'last' attribute of
1453 gdb.Symtab_and_line.
1454 (sal_object_getset): Add entry for the 'last' attribute.
1456 2012-06-26 Doug Evans <dje@google.com>
1458 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1459 (dwo_sections): Add macinfo, macro.
1460 (dwarf2_locate_dwo_sections): Watch for macro sections.
1461 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1462 All callers updated. Handle DWO files.
1464 * NEWS: Mention new options "set debug dwarf2-read" and
1465 "set debug symtab-create".
1466 * dwarf2read.c (dwarf2_read_debug): New static global.
1467 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1468 (process_queue): Ditto.
1469 (process_full_comp_unit): Ditto.
1470 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1471 * elfread.c (elf_symfile_read): Add debugging printf.
1472 * minsyms.c (install_minimal_symbols): Ditto.
1473 * psymtab.c (allocate_psymtab): Ditto.
1474 * symfile.c (allocate_symtab): Ditto.
1475 * symtab.c (symtab_create_debug): New global.
1476 (_initialize_symtab): Add new option "set debug symtab-create".
1477 * symtab.h (symtab_create_debug): Declare.
1479 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1480 (lookup_dwo_type_unit): Ditto.
1482 2012-06-26 Roland McGrath <roland@hack.frob.com>
1483 H.J. Lu <hongjiu.lu@intel.com>
1485 * amd64-linux-nat.c: Include <sys/user.h>.
1486 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1487 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1488 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1490 * configure.ac: Check if the fs_base and gs_base members of
1491 `struct user_regs_struct' exist.
1492 * config.in: Regenerated.
1493 * configure: Likewise.
1495 2012-06-25 Michael Eager <eager@eagercon.com>
1498 * python/python.c (gdbpy_write): Check for interrupted output.
1500 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1502 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1503 register as a stack alignment in ARM mode.
1505 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1507 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1508 * gnulib/config.in: Regenerate.
1509 * gnulib/configure: Likewise.
1510 * gnulib/import/m4/extensions.m4: Update it.
1511 * gnulib/import/m4/gnulib-common.m4: Likewise.
1512 * gnulib/import/m4/memmem.m4: Likewise.
1513 * gnulib/import/m4/mmap-anon.m4: Likewise.
1514 * gnulib/import/m4/multiarch.m4: Likewise.
1515 * gnulib/import/stdint.in.h: Likewise.
1517 2012-06-24 Yao Qi <yao@codesourcery.com>
1519 * corefile.c (write_memory_with_notification): New.
1520 * gdbcore.h: Declare write_memory_with_notification.
1521 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1522 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1523 * valops.c (value_assign): Likewise.
1524 * python/py-inferior.c (infpy_write_memory): Call
1525 'write_memory_with_notification'.
1527 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1529 * cc-with-index.sh: Use also -ex "set auto-load no".
1531 2012-06-23 Doug Evans <dje@google.com>
1534 * NEWS: Document additions to .gdb_index.
1535 * dwarf2read.c: #include "gdb/gdb-index.h".
1536 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1537 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1538 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1539 (dwarf2_read_index): Recognize version 7.
1540 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1541 block_kind, domain): All callers updated.
1542 (dw2_find_symbol_file): Handle new index CU values.
1543 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1544 (add_index_entry): New args is_static, kind. All callers updated.
1545 (offset_type_compare, uniquify_cu_indices): New functions
1546 (symbol_kind): New function.
1547 (write_psymtabs_to_index): Remove duplicate CU values.
1548 (write_psymtabs_to_index): Write .gdb_index version 7.
1550 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1552 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1553 * configure: Regenerate.
1555 2012-06-20 Yao Qi <yao@codesourcery.com>
1557 * python/py-inferior.c: Update comments of infpy_read_memory
1558 and infpy_write_memory.
1560 2012-06-19 Tom Tromey <tromey@redhat.com>
1563 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1564 (push_type_address_space): Remove.
1565 * parse.c (insert_into_type_stack): New function.
1566 (insert_type): Likewise.
1567 (insert_type_address_space): Rename from push_type_address_space.
1568 Insert tp_space_identifier.
1569 * c-exp.y (ptr_operator): New production.
1570 (abs_decl): Use ptr_operator.
1571 (space_identifier): Call insert_type_address_space.
1572 (ptype): Don't use const_or_volatile_or_space_identifier.
1573 (const_or_volatile_noopt): Call insert_type.
1574 (conversion_type_id, conversion_declarator): New productions.
1575 (operator): Use conversion_type_id.
1577 2012-06-18 Doug Evans <dje@google.com>
1579 * symtab.h (minimal_symbol): New member created_by_gdb.
1580 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1582 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1583 (search_symbols): Call it instead of lookup_symbol.
1584 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1586 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1587 Adjust address for DW_OP_GNU_addr_index.
1588 * dwarf2expr.h (dwarf_expr_context): Update comment.
1589 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1590 all callers updated. Handle TLS vars described with
1591 DW_OP_GNU_const_index.
1592 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1593 and DW_OP_GNU_const_index.
1594 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1596 * block.c (find_block_in_blockvector): Make explicit the fact that we
1597 ignore GLOBAL_BLOCK.
1599 2012-06-18 Tom Tromey <tromey@redhat.com>
1601 * c-exp.y (operator): Remove trailing space after "delete" and
1604 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1605 Jan Kratochvil <jan.kratochvil@redhat.com>
1607 Switch i386 and derived targets to ON_STACK.
1608 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1609 (amd64_dicos_init_abi): Remove its installment.
1610 * dicos-tdep.c (dicos_init_abi): Remove the
1611 set_gdbarch_call_dummy_location call. Update the comment here.
1612 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1613 (i386_dicos_init_abi): Remove its installment.
1614 * i386-tdep.c (i386_push_dummy_code): New function.
1615 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1616 i386_push_dummy_code.
1618 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1620 Remove stale dummy frames.
1621 * breakpoint.c: Include dummy-frame.h.
1622 (longjmp_breakpoint_ops): New variable.
1623 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1624 bp_longjmp_call_dummy.
1625 (bpstat_what, bptype_string, print_one_breakpoint_location)
1626 (init_bp_location): Support bp_longjmp_call_dummy.
1627 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1628 (set_longjmp_breakpoint_for_call_dummy)
1629 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1631 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1632 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1633 FIXME comment and extend the other comment for bp_call_dummy.
1634 (set_longjmp_breakpoint_for_call_dummy)
1635 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1636 * dummy-frame.c: Include gdbthread.h.
1637 (pop_dummy_frame_bpt): New function.
1638 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1639 (dummy_frame_discard): New function.
1640 (cleanup_dummy_frames): Update the comment about longjmps.
1641 * dummy-frame.h (dummy_frame_discard): New declaration.
1642 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1643 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1644 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1645 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1646 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1647 keep_going if IS_LONGJMP and there is no other reason to stop.
1649 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1651 * remote-sim.c (sim_command_completer): Initialize
1654 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1656 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1657 * dwarf2loc.c (call_site_parameter_matches): Support
1658 CALL_SITE_PARAMETER_PARAM_OFFSET.
1659 (needs_dwarf_reg_entry_value): Push stub value.
1660 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1661 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1662 * gdbtypes.h (enum call_site_parameter_kind): New item
1663 CALL_SITE_PARAMETER_PARAM_OFFSET.
1664 (struct call_site.parameter.u): New field param_offset.
1666 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1668 Code cleanup: Generalize call_site.parameter key.
1669 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1670 variable dwarf_reg. New variable kind_u. Update parameters to
1671 push_dwarf_reg_entry_value.
1672 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1673 * dwarf2expr.h (enum call_site_parameter_kind)
1674 (union call_site_parameter_u): Forward declarations.
1675 (struct dwarf_expr_context_funcs): Update parameters and their
1676 description for push_dwarf_reg_entry_value.
1677 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1678 * dwarf2loc.c (call_site_parameter_matches): New function.
1679 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1680 description. Use call_site_parameter_matches.
1681 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1682 Update parameters and their description.
1683 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1684 New variable kind_u. Adjust the caller for updated parameters.
1685 (needs_dwarf_reg_entry_value): Update parameters.
1686 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1687 instead of attr. Update for the changed fields of struct
1688 call_site_parameter.
1689 * gdbtypes.h: Include dwarf2expr.h.
1690 (enum call_site_parameter_kind): New.
1691 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1692 fb_offset into new union u.
1694 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1696 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1697 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1700 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1702 * amd64-linux-nat.c (compat_x32_clock_t): New.
1703 (compat_x32_siginfo_t): Likewise.
1704 (compat_x32_siginfo_from_siginfo): Likewise.
1705 (siginfo_from_compat_x32_siginfo): Likewise.
1706 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1707 and siginfo_from_compat_x32_siginfo for x32.
1709 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
1711 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1713 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1715 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1716 instead of gdbarch_ptr_bit.
1717 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1718 (amd64_supply_native_gregset): Likewise.
1719 (amd64_collect_native_gregset): Likewise.
1720 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1721 (amd64_supply_xsave): Likewise.
1722 (amd64_collect_fxsave): Likewise.
1723 (amd64_collect_xsave): Likewise.
1725 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1727 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1728 (amd64_linux_read_description): Check DS segment register for
1731 2012-06-15 Tom Tromey <tromey@redhat.com>
1733 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1734 init_cutu_and_read_dies.
1736 2012-06-15 Iain Sandoe <iain@codesourcery.com>
1738 * MAINTAINERS (Write After Approval): Add myself to the list.
1740 2012-06-15 Tom Tromey <tromey@redhat.com>
1742 * valops.c (value_find_oload_method_list): Now static.
1743 * value.h (value_find_oload_method_list): Don't declare.
1745 2012-06-15 Tom Tromey <tromey@redhat.com>
1747 * valops.c (find_overload_match): Use value_ind.
1749 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1751 * infrun.c (handle_inferior_event): Correct indentation.
1753 2012-06-14 Doug Evans <dje@google.com>
1755 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1756 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1758 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1759 updated. Handle DEBUG_LOC_START_LENGTH.
1760 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1761 (loclist_describe_location): Ditto.
1763 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1766 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1767 after hiding inline functions.
1769 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1771 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1772 _initialize_inf_ttrace.
1774 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1776 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1777 _initialize_hppa_hpux_nat.
1779 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1781 * remote-sim.c (sim_command_completer): Change type of return
1782 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1784 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1785 Jan Kratochvil <jan.kratochvil@redhat.com>
1788 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1789 stack on a 16-byte boundary.
1791 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
1793 * jit.c (finalize_symtab): Set function's return type to 'void' by
1796 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1797 H.J. Lu <hongjiu.lu@intel.com>
1799 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1800 Move bits common to both the classic LP64 and the new x32 ILP32
1802 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1803 (amd64_x32_linux_init_abi): New function.
1804 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1807 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1808 * i386-tdep.c (i386_pseudo_register_name): Make public.
1809 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1810 * amd64-tdep.c (amd64_dword_names): Add "eip".
1811 (amd64_x32_pseudo_register_type): New function
1812 (amd64_x32_init_abi): New function.
1814 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1817 * inferior.h (struct inferior_suspend_state): Comment out.
1818 (struct inferior): Comment out the field suspend.
1819 * infrun.c (struct infcall_suspend_state): Comment out the field
1821 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1824 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1826 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1827 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1828 function comment. Return ERROR for unresolved cases. Implement
1829 returning proper NAME.
1830 (yylex): Accept also NAME from classify_inner_name.
1831 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1832 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1834 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1836 2012-06-13 Tom Tromey <tromey@redhat.com>
1838 * breakpoint.c (condition_completer): New function.
1839 (_initialize_breakpoint): Use it.
1840 * value.c (complete_internalvar): New function.
1841 * value.h (complete_internalvar): Declare.
1843 2012-06-13 Tom Tromey <tromey@redhat.com>
1845 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1846 * breakpoint.c (catch_syscall_completer): Return a VEC.
1847 * cli/cli-cmds.c (complete_command): Update.
1848 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1849 (complete_on_enum): Likewise.
1850 * command.h: Include gdb_vecs.h.
1851 (completer_ftype): Change return type.
1852 (complete_on_cmdlist, complete_on_enum): Likewise.
1853 * completer.c (noop_completer, filename_completer)
1854 (location_completer): Return a VEC.
1855 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1857 (expression_completer, complete_line_internal, complete_line)
1858 (command_completer): Return a VEC.
1859 (gdb_completion_word_break_characters, line_completion_function):
1861 * completer.h: Include gdb_vecs.h.
1862 (complete_line, noop_completer, filename_completer)
1863 (expression_completer, location_completer, command_completer):
1865 * f-lang.c (f_word_break_characters): Return a VEC.
1866 * interps.c (interpreter_completer): Return a VEC.
1867 * language.h (struct language_defn)
1868 <la_make_symbol_completion_list>: Return a VEC.
1869 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1870 * symtab.c (free_completion_list): Take a VEC.
1871 (return_val_size, return_val_index): Remove.
1872 (return_val): Now a VEC.
1873 (completion_list_add_name): Update.
1874 (default_make_symbol_completion_list_break_on)
1875 (default_make_symbol_completion_list, make_symbol_completion_list)
1876 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1878 (add_filename_to_list): Update.
1879 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1881 (maybe_add_partial_symtab_filename): Update.
1882 (make_source_files_completion_list): Return a VEC.
1883 * symtab.h (default_make_symbol_completion_list_break_on)
1884 (default_make_symbol_completion_list, make_symbol_completion_list)
1885 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1886 (make_source_files_completion_list): Update.
1888 2012-06-13 Tom Tromey <tromey@redhat.com>
1890 * breakpoint.c (add_catch_command): Use completer_ftype.
1891 * breakpoint.h: Include command.h.
1892 (add_catch_command): Use completer_ftype.
1893 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1894 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1895 Use completer_ftype.
1896 * command.h (completer_ftype): New typedef.
1897 (set_cmd_completer): Use it.
1898 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1901 2012-06-13 Pedro Alves <palves@redhat.com>
1903 Partial revert of previous change.
1905 * serial.c (scb_base): New global.
1906 (serial_for_fd): New.
1907 (serial_open, serial_fdopen_ops): Link new serial in open serials
1909 (do_serial_close): Unlink serial from the open serials chain.
1911 2012-06-12 Pedro Alves <palves@redhat.com>
1913 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
1915 (prepare_for_detach): No longer context switch here in non-stop
1917 (fetch_inferior_event): Ditto.
1918 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
1919 to the event thread before removing breakpoints. Switch to the
1920 event thread before inserting breakpoints and resuming.
1921 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
1922 event thread before resuming.
1923 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
1924 Switch to the event thread before removing breakpoints.
1926 2012-06-12 Eli Zaretskii <eliz@gnu.org>
1928 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
1929 special characters correctly for the Windows shells. See
1930 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
1932 [!__MINGW32__]: Remove extra double quote character from special
1935 2012-06-11 Stan Shebs <stan@codesourcery.com>
1937 * ui-out.h: Remove #if 0 declarations.
1938 * ui-out.c: Remove #if 0 functions.
1940 2012-06-11 Pedro Alves <palves@redhat.com>
1942 * ser-base.c (run_async_handler_and_reschedule): New.
1943 (fd_event, push_event): Use it.
1944 * serial.c (serial_open, serial_fdopen_ops): Set the initial
1945 reference count to 1.
1946 (do_serial_close): Set the bufp field to NULL. Use serial_unref
1948 (serial_is_open, serial_ref, serial_unref): New.
1949 * serial.h (serial_open): Adjust comment.
1950 (serial_is_open): Declare.
1951 (serial_close): Adjust comment.
1952 (serial_ref, serial_unref) Declare.
1953 (struct serial): New field 'refcnt'.
1955 2012-06-11 Pedro Alves <palves@redhat.com>
1957 Remove #if 0'd "connect" command, and unnecessary associated
1958 refcounting and serial reuse bits.
1960 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
1961 * serial.c (last_serial_opened): Delete.
1963 (serial_open): Adjust.
1964 (serial_for_fd): Delete.
1965 (serial_fdopen_ops, do_serial_close): Adjust.
1966 (serial_fdopen_ops): Adjust.
1968 2012-06-11 Pedro Alves <palves@redhat.com>
1970 * serial.c (do_serial_close): Remove early return when SCB is
1973 2012-06-11 Tom Tromey <tromey@redhat.com>
1975 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
1977 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1979 Fix regression by the "ambiguous linespec" series.
1980 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
1981 get_last_displayed_symtab and get_last_displayed_line and depending
1984 2012-06-11 Tom Tromey <tromey@redhat.com>
1986 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
1987 (dw2_find_symbol_file): Use it.
1989 2012-06-11 Michael Eager <eager@eagercon.com>
1991 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
1992 * mips-linux-tdep.h (mips_signals): New
1994 2012-06-11 Tom Tromey <tromey@redhat.com>
1996 * infrun.c (handle_inferior_event)
1997 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
1999 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
2000 exception logic in all cases. Update comments.
2001 (insert_longjmp_resume_breakpoint): Set the exception resume
2004 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
2006 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
2008 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
2010 * valarith.c (binop_types_user_defined_p): Fix a typo.
2012 2012-06-08 Yao Qi <yao@codesourcery.com>
2013 Chung-Lin Tang <cltang@codesourcery.com>
2015 * arch-utils.c (default_return_in_first_hidden_param_p): New.
2016 * arch-utils.h: Declare.
2017 * gdbarch.sh: Add return_in_first_hidden_param_p.
2018 * gdbarch.c, gdbarch.h: Regenerated.
2019 * infcall.c (call_function_by_hand): Call
2020 gdbarch_return_in_first_hidden_param_p instead of
2021 language_pass_by_reference.
2023 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
2024 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
2025 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
2026 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
2027 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
2028 `cplus_return_struct_by_reference'.
2029 (tic6x_return_value): Handle language cplusplus.
2030 (tic6x_return_in_first_hidden_param_p): New.
2031 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
2033 2012-06-07 Doug Evans <dje@google.com>
2035 * dwarf2read.c (dwarf2_cu): Add comment.
2037 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2039 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
2041 (mips_eabi_push_dummy_call): Likewise.
2042 (mips_n32n64_push_dummy_call): Likewise.
2043 (mips_o32_push_dummy_call): Likewise.
2044 (mips_o64_push_dummy_call): Likewise.
2046 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2048 * mips-tdep.c (mips_convert_register_p): Correct coding style.
2050 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2052 * mips-tdep.c (mips_pseudo_register_type): Use
2053 mips_float_register_p.
2055 2012-06-06 Pedro Alves <palves@redhat.com>
2057 * infrun.c (handle_inferior_event): Remove calls to
2058 reinit_frame_cache that follow a context_switch call.
2060 2012-06-06 Pedro Alves <palves@redhat.com>
2062 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
2063 context_switch and remove stale comment.
2065 2012-06-06 Pedro Alves <palves@redhat.com>
2067 * infrun.c (struct execution_control_state): Remove
2068 `new_thread_event' field.
2069 (handle_inferior_event): Simplify new threads handling; don't
2070 resume the inferior if we find a new thread.
2072 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
2074 * NEWS: Document the deprecation of SH's 'regs' command.
2075 * inferior.h (all_registers_info): Add function declaration.
2076 * sh-tdep.c (sh_show_regs): Remove variable.
2077 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2078 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2079 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2080 (sh_show_regs_command): Remove functions.
2081 (sh_gdbarch_init): Don't set sh_show_regs.
2082 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2083 'info all-registers'.
2084 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2085 (sh64_show_regs): Remove functions.
2086 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2088 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2090 * configure.ac: Move development=true below AC_INIT.
2091 * configure: Regenerate.
2093 2012-06-05 Stan Shebs <stan@codesourcery.com>
2095 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2098 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2100 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2101 argument as ssize_t.
2102 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2103 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2104 * target.c (target_read_stack, target_write_memory)
2105 (target_write_raw_memory): Likewise.
2106 * target.h (target_read_stack, target_write_memory)
2107 (target_write_raw_memory): Likewise.
2109 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2111 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2112 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2113 * target.c (target_read_memory): Change LEN to ssize_t.
2114 * target.h (target_read_memory): Change LEN to ssize_t.
2116 2012-06-05 Pedro Alves <palves@redhat.com>
2120 * breakpoint.c (until_break_command): Only fetch the selected
2121 frame after decode_line_1.
2123 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2125 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2126 event breakpoint at _start, __start or main if a program
2127 interpreter is not found.
2129 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2131 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2133 * windows-tdep.c: #include "objfiles.h".
2134 (windows_iterate_over_objfiles_in_search_order): New function.
2135 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2136 iterate_over_objfiles_in_search_order gdbarch method to
2137 windows_iterate_over_objfiles_in_search_order.
2138 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2140 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2142 * gdbarch.sh: Add generation of
2143 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2144 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2145 (iterate_over_objfiles_in_search_order): New gdbarch method.
2146 * gdbarch.h, gdbarch.c: Regenerate.
2147 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2149 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2151 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2152 out of lookup_symbol_aux_symtabs.
2153 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2154 call to lookup_symbol_aux_objfile.
2155 (struct global_sym_lookup_data): New type.
2156 (lookup_symbol_global_iterator_cb): New function.
2157 (lookup_symbol_global): Search for symbol using
2158 gdbarch_iterate_over_objfiles_in_search_order and
2159 lookup_symbol_global_iterator_cb.
2160 * findvar.c (struct minsym_lookup_data): New type.
2161 (minsym_lookup_iterator_cb): New function.
2162 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2163 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2164 and minsym_lookup_iterator_cb.
2166 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2168 Revert the following patch:
2169 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2170 try locating the symbol in the symbol's own objfile first, before
2171 extending the search to all objfiles.
2172 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2173 out of lookup_symbol_aux_symtabs.
2174 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2175 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2176 Do not search EXCLUDE_OBJFILE.
2177 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2178 (lookup_symbol_global): Search for matches in the block's objfile
2179 first, before searching all other objfiles.
2181 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2183 * breakpoint.c (find_condition_and_thread): Stop parsing
2184 as soon as the first invalid keyword is found.
2186 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2188 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2190 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2192 * config/djgpp/djcheck.sh: Add copyright header.
2194 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2196 * copyright.py (update_files, main): Fix path to update-copyright
2199 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2201 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2202 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2203 for which a reminder to update by hand is printed.
2205 2012-06-04 Doug Evans <dje@google.com>
2207 * buildsym.c (make_blockvector): Add comment.
2209 2012-06-04 Pedro Alves <palves@redhat.com>
2211 * arch-utils.c (default_gdb_signal_from_target): Delete.
2212 * arch-utils.h (default_gdb_signal_from_target): Delete.
2213 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2214 gdbarch_gdb_signal_from_target_p.
2215 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2217 * gdbarch.h: Regenerate.
2218 * gdbarch.c: Regenerate.
2220 2012-06-04 Pedro Alves <palves@redhat.com>
2222 * gdbarch.sh (gdb_signal_from_target): Mention that the
2223 implementation of the method must be host independent.
2224 * gdbarch.h: Regenerate.
2226 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2228 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2230 (target_read_memory_bfd): New function.
2231 (symbol_file_add_from_memory): Use it.
2233 2012-06-03 Doug Evans <dje@google.com>
2235 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2237 (basic_lookup_transparent_type): Ditto.
2239 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2240 (ALL_PRIMARY_SYMTABS): Use it.
2241 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2242 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2243 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2244 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2245 (basic_lookup_transparent_type): Ditto.
2247 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2249 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2250 it to optimize resolution of demangled name.
2252 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2254 * configure.ac (development): Define new variable.
2255 Call AC_CHECK_LIB for mcheck if $development.
2256 (ERROR_ON_WARNING): Enable it by default only if $development.
2257 * config.in: Regenerate.
2258 * configure: Regenerate.
2260 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2262 * target.c (target_read_memory): Make LEN argument as size_t.
2263 * target.h (target_read_memory): Likewise.
2265 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2267 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2269 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2271 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2272 BookE interface for PowerPC server processors if not available
2273 in the Linux Kernel.
2275 2012-05-31 Keith Seitz <keiths@redhat.com>
2277 * linespec.c (decode_objc): Add cleanup to free
2279 (find_linespec_symbols): Add cleanup to free CLASSES.
2280 * symfile.c (find_separate_debug_file_by_debuglink): Add
2281 cleanup to free DEBUGLINK.
2282 * ui-out.c (clear_header_list): No need to check if
2283 HEADER_NEXT.COLHDR is NULL.
2284 Free HEADER_NEXT.COL_NAME.
2286 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2288 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2291 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2293 * configure.host (gdb_host_cpu): Handle tilegx*.
2294 (gdb_host): Handle tilegx-*-linux*.
2295 * tilegx-linux-nat.c: New file.
2296 * config/tilegx/linux.mh: New file.
2298 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2300 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2301 tilegx-linux-tdep.o.
2302 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2303 tilegx-linux-tdep.c.
2304 * configure.tgt: Handle tilegx-*-linux*.
2305 * tilegx-tdep.h: New file.
2306 * tilegx-tdep.c: New file.
2307 * tilegx-linux-tdep.c: New file.
2308 * regformats/reg-tilegx.dat: New file.
2310 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2312 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2313 accounting of hw watchpoints on ppc.
2315 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2317 * source.c (openp): Expand tilde in path entries.
2319 2012-05-29 Doug Evans <dje@google.com>
2321 * buildsym.c (block_compar): Fix comment.
2322 (end_symtab): Fix and clarify some comments.
2324 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2325 cleanup_undefined_types.
2326 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2327 All callers updated.
2329 2012-05-29 Tom Tromey <tromey@redhat.com>
2331 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2333 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2334 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2336 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2339 2012-05-29 Tristan Gingold <gingold@adacore.com>
2341 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2342 (struct darwin_info): ... New struct.
2343 (solib_darwin_pspace_data): New variable.
2344 (darwin_pspace_data_cleanup): New function.
2345 (get_darwin_info): Likewise.
2346 (darwin_dyld_version_ok, darwin_load_image_infos)
2347 (darwin_solib_get_all_image_info_addr_at_init)
2348 (darwin_solib_read_all_image_info_addr): Add info argument.
2350 (darwin_current_sos): Use per pspace structure.
2351 (darwin_solib_create_inferior_hook): Likewise.
2352 (darwin_clear_solib): Likewise.
2353 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2355 2012-05-28 Pedro Alves <palves@redhat.com>
2357 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2358 block that uses them. Clear ecss before handling each event.
2360 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2362 * solib-svr4.c (svr4_current_sos): New comment on
2363 svr4_current_sos_via_xfer_libraries fall back.
2365 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2367 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2368 it as a fallback for TYPE_IS_OPAQUE.
2369 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2370 symbols for lookup_symbol.
2372 2012-05-24 John Steele Scott <toojays@toojays.net>
2374 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2375 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2376 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2377 (check_producer): ... this new function, which also checks for ICC
2378 and caches the result.
2379 (producer_is_icc): New function.
2380 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2383 2012-05-24 Pedro Alves <palves@redhat.com>
2387 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2388 (default_gdb_signal_to_target): ... this. Add comment.
2389 (default_gdb_signal_from_host): Rename to ...
2390 (default_gdb_signal_from_target): ... this. Add comment.
2391 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2392 (default_gdb_signal_to_target): ... this.
2393 (default_gdb_signal_from_host): Rename to ...
2394 (default_gdb_signal_from_target): ... this.
2395 * corelow.c (core_open): Adjust to naming change. Replace comment.
2396 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2397 (gdb_signal_from_target): ... this. Adjust to
2398 default_gdb_signal_from_host naming change. Extend comment.
2399 (gdb_signal_to_host): Rename to ...
2400 (gdb_signal_to_target): ... this. Adjust to
2401 default_gdb_signal_to_host naming change.
2402 * gdbarch.h, gdbarch.c: Renegerate.
2404 2012-05-24 Pedro Alves <palves@redhat.com>
2408 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2410 2012-05-24 Pedro Alves <palves@redhat.com>
2414 Replace target_signal with gdb_signal throughout.
2416 2012-05-24 Pedro Alves <palves@redhat.com>
2420 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2421 string, instead of reusing the va_list argument.
2423 2012-05-24 Tom Tromey <tromey@redhat.com>
2425 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2428 2012-05-23 Doug Evans <dje@google.com>
2430 * symtab.c (search_symbols): Formatting fixes.
2431 (print_symbol_info): Formatting fixes.
2433 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2434 int64_t change to leb128 API.
2435 (read_encoded_value, decode_frame_entry_1): Ditto.
2436 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2437 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2438 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2439 (execute_stack_op): Ditto.
2440 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2441 (safe_read_uleb128, safe_read_sleb128): Ditto.
2442 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2443 (dwarf2_compile_expr_to_ax): Ditto.
2444 (locexpr_describe_location_piece): Ditto.
2445 (disassemble_dwarf_expression): Ditto.
2446 (locexpr_describe_location_1): Ditto.
2448 2012-05-23 Stan Shebs <stan@codesourcery.com>
2449 Kwok Cheung Yeung <kcy@codesourcery.com>
2451 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2452 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2453 (mi-cmd-info.o): New rule.
2454 * osdata.h (info_osdata_command): New declaration.
2455 * osdata.c (info_osdata_command): Change to non-static.
2456 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2457 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2458 * mi/mi-cmd-info.c: New file.
2460 2012-05-23 Doug Evans <dje@google.com>
2462 * symtab.c (search_symbols): Pass NULL for file_matcher to
2463 expand_symtabs_matching if there are no files to match.
2465 * gdbtypes.c (lookup_typename): Simplify.
2467 2012-05-23 Pedro Alves <palves@redhat.com>
2469 * arch-utils.h (default_target_signal_to_host): Delete.
2470 * arch-utils.c (default_target_signal_to_host): Delete.
2471 * gdbarch.sh (target_signal_to_host): Remove.
2472 * gdbarch.h, gdbarch.c: Regenerate.
2474 2012-05-22 Doug Evans <dje@google.com>
2476 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2478 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2479 (execute_cfa_program): Update to match API of leb128 functions.
2480 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2482 (read_unsigned_leb128, read_signed_leb128): Delete.
2483 (read_initial_length): Change type of buf argument to
2485 (read_encoded_value): Update to match API of leb128 functions.
2486 (decode_frame_entry): Change result to "const gdb_byte *", and
2487 similarly for "start" parameter.
2488 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2489 (dwarf2_build_frame_info): Change local frame_ptr to
2491 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2492 read_uleb128, read_sleb128. All callers updated.
2493 (safe_skip_leb128): New function.
2494 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2495 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2496 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2497 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2498 read_uleb128, read_sleb128.
2499 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2500 (execute_stack_op): Update to match API of leb128 functions.
2501 * dwarf2expr.h: #include "leb128.h".
2502 (read_uleb128, read_sleb128): Delete.
2503 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2504 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2505 * dwarf2loc.c (debug_loc_kind): New enum.
2506 (decode_debug_loc_addresses): New function.
2507 (decode_debug_loc_dwo_addresses): New function.
2508 (dwarf2_find_location_expression): Rewrite.
2509 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2510 (locexpr_describe_location_piece): Ditto.
2511 (disassemble_dwarf_expression): Ditto.
2512 (locexpr_describe_location_1): Ditto.
2513 (loclist_describe_location): Rewrite.
2514 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2515 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2516 (dwarf2_section_buffer_overflow_complaint): Renamed from
2517 dwarf2_macros_too_long_complaint. All callers updated.
2518 (skip_leb128): Delete.
2519 (init_cu_die_reader): Initialize reader->buffer_end.
2520 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2521 (skip_form_bytes): New arg buffer_end. All callers updated.
2522 Replace call to skip_leb128 with gdb_skip_leb128.
2523 (skip_unknown_opcode): New arg mac_end. All callers updated.
2524 (fill_in_loclist_baton): Initialize baton->from_dwo.
2526 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2528 * mips-linux-nat.c (mips_linux_read_description): Use a more
2529 verbose error message.
2531 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2533 * NEWS: Add MIPS/Linux DSP support.
2534 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2535 (SIGCONTEXT_DSPCTL): New macro.
2536 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2537 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2538 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2539 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2540 (N64_SIGCONTEXT_HI3): Likewise.
2541 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2542 (N64_SIGCONTEXT_LO3): Likewise.
2543 (N64_SIGCONTEXT_DSPCTL): Likewise.
2544 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2545 (mips_linux_o32_sigframe_init): Handle DSP registers.
2546 (mips_linux_n32n64_sigframe_init): Likewise.
2548 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2550 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2553 2012-05-22 Pedro Alves <palves@redhat.com>
2555 * target.h (store_waitstatus): Move declaration ...
2556 * inf-child.h (store_waitstatus): ... here.
2557 * target.c: Move inclusion of gdb_wait.h, and ...
2558 (store_waitstatus): ... this ...
2559 * inf-child.c: ... here.
2560 * linux-nat.c: Include inf-child.h.
2561 * rs6000-nat.c: Include inf-child.h.
2562 * spu-linux-nat.c: Include inf-child.h.
2564 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2566 * tracepoint.c (start_tracing): Add missing i18n markup.
2567 (stop_tracing, set_trace_user): Ditto.
2568 (set_trace_notes, set_trace_stop_notes): Ditto.
2570 2012-05-21 Tom Tromey <tromey@redhat.com>
2573 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2575 * value.h (value_cast_pointers): Update.
2576 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2577 (value_cast): Update.
2578 (update_search_result): New function.
2579 (do_search_struct_field): New, from search_struct_field. Check
2580 for ambiguous results.
2581 (search_struct_field): Rewrite.
2582 * infcall.c (value_arg_coerce): Update.
2583 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2584 value_cast_pointers.
2585 * ada-lang.c (ada_convert_actual): Update.
2587 2012-05-21 Tom Tromey <tromey@redhat.com>
2589 * macroexp.c (macro_stringify): Terminate the string.
2591 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2593 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2595 * auto-load.c (auto_load_expand_dir_vars): New function.
2596 (auto_load_safe_path_vec_update): Use it, remove the
2597 substitute_path_component call thanks to it.
2598 (auto_load_objfile_script): Remove the debug_file_directory processing.
2599 Use auto_load_expand_dir_vars, remove the substitute_path_component
2601 * configure: Regenerate.
2602 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2603 path. Escape $ also for $debugdir.
2604 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2605 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2607 2012-05-20 Doug Evans <dje@google.com>
2609 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2610 before use. Check for symtab->includes == NULL before scanning it.
2612 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2614 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2616 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2618 * NEWS: Add microMIPS support and "set mips compression",
2619 "show mips compression" commands.
2620 * mips-tdep.h (mips_isa): New enum.
2621 (gdbarch_tdep): Add mips_isa.
2622 (mips_pc_is_mips16): Update prototype.
2623 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2624 * mips-tdep.c (mips_compression_mips16): New variable.
2625 (mips_compression_micromips): Likewise.
2626 (mips_compression_strings): Likewise.
2627 (mips_compression_string): Likewise.
2628 (is_mips16_isa, is_micromips_isa): New functions.
2629 (is_mips16_addr): Rename to...
2630 (is_compact_addr): ... this.
2631 (unmake_mips16_addr): Likewise to...
2632 (unmake_compact_addr): ... this.
2633 (make_mips16_addr): Likewise to...
2634 (make_compact_addr): ... this.
2635 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2637 (mips_elf_make_msymbol_special): Handle microMIPS code.
2638 (msymbol_is_special): Rename to...
2639 (msymbol_is_mips16): ... this.
2640 (mips_make_symbol_special, mips_pc_is_mips16): Update
2642 (msymbol_is_mips, msymbol_is_micromips): New functions.
2643 (mips16_to_32_reg): Rename to...
2644 (mips_reg3_to_reg): ... this.
2645 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2646 (mips_pc_isa): Likewise.
2647 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2649 (mips_fetch_instruction): Pass return status instead of printing
2650 an error message if requested. Handle microMIPS code. Bail out
2652 (micromips_op): New macro.
2653 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2654 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2655 (b6s4_op, b7s3_reg): Likewise.
2656 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2657 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2658 (mips_insn_size): New function.
2659 (mips32_next_pc): Update mips_fetch_instruction call.
2660 (micromips_relative_offset7): New function.
2661 (micromips_relative_offset10): Likewise.
2662 (micromips_relative_offset16): Likewise.
2663 (micromips_pc_insn_size): Likewise.
2664 (micromips_bc1_pc): Likewise.
2665 (micromips_next_pc): Likewise.
2666 (unpack_mips16): Update mips_fetch_instruction call.
2667 (extended_mips16_next_pc): Update according to change to
2669 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2671 (mips16_scan_prologue): Update mips_fetch_instruction call.
2672 Update according to change to mips16_to_32_reg.
2673 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2674 (mips_insn16_frame_base_sniffer): Likewise.
2675 (micromips_decode_imm9): New function.
2676 (micromips_scan_prologue): Likewise.
2677 (mips_micro_frame_cache): Likewise.
2678 (mips_micro_frame_this_id): Likewise.
2679 (mips_micro_frame_prev_register): Likewise.
2680 (mips_micro_frame_sniffer): Likewise.
2681 (mips_micro_frame_unwind): New variable.
2682 (mips_micro_frame_base_address): New function.
2683 (mips_micro_frame_base): New variable.
2684 (mips_micro_frame_base_sniffer): New function.
2685 (mips32_scan_prologue): Update mips_fetch_instruction call.
2686 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2687 rather than for MIPS16.
2688 (mips_insn32_frame_base_sniffer): Likewise.
2689 (mips_addr_bits_remove): Handle microMIPS code.
2690 (deal_with_atomic_sequence): Rename to...
2691 (mips_deal_with_atomic_sequence): ... this. Update the type
2692 of the variable used to hold an instruction. Remove the ISA bit
2693 check. Update mips_fetch_instruction call.
2694 (micromips_deal_with_atomic_sequence): New function.
2695 (deal_with_atomic_sequence): Likewise.
2696 (mips_about_to_return): Handle microMIPS code. Update
2697 mips_fetch_instruction call.
2698 (heuristic_proc_start): Check for the standard MIPS ISA rather
2699 than for MIPS16. Update mips_pc_is_mips16 and
2700 mips_fetch_instruction calls. Handle microMIPS code.
2701 (mips_push_dummy_code): Handle microMIPS code.
2702 (mips_eabi_push_dummy_call): Likewise.
2703 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2704 (mips_o64_push_dummy_call): Handle microMIPS code.
2705 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2706 (is_delayed): Remove function.
2707 (mips_single_step_through_delay): Replace the call to is_delayed
2708 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2709 Handle microMIPS code.
2710 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2712 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2714 (micromips_in_function_epilogue_p): New function.
2715 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2717 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2719 (gdb_print_insn_mips): Likewise.
2720 (mips_breakpoint_from_pc): Likewise.
2721 (mips_remote_breakpoint_from_pc): New function.
2722 (mips32_instruction_has_delay_slot): Simplify making use of the
2723 updated mips_fetch_instruction interface.
2724 (micromips_instruction_has_delay_slot): New function.
2725 (mips16_instruction_has_delay_slot): Simplify making use of the
2726 updated mips_fetch_instruction interface.
2727 (mips_adjust_breakpoint_address): Check for the standard MIPS
2728 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2729 calls. Handle microMIPS code.
2730 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2731 (mips_skip_trampoline_code): Handle microMIPS code.
2732 (global_mips_compression): New function.
2733 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2734 file flags. Register the microMIPS remote breakpoint handler
2735 and heuristic frame unwinder.
2736 (show_mips_compression): New function.
2737 (_initialize_mips_tdep): Add the "set mips compression" and
2738 "show mips compression" commands.
2740 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2745 * amd64-darwin-tdep.c:
2746 * arm-symbian-tdep.c:
2750 * bfin-linux-tdep.c:
2757 * dwarf2-frame-tailcall.c:
2786 * microblaze-tdep.c:
2787 * mips-linux-tdep.c:
2795 * python/py-finishbreakpoint.c:
2796 * python/py-inferior.c:
2797 * python/py-infthread.c:
2801 * remote-m32r-sdi.c:
2805 * rs6000-aix-tdep.c:
2831 * amd64-darwin-tdep.c:
2832 * arm-symbian-tdep.c:
2833 * arm-tdep.c: Delete unused variables.
2835 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2837 Rename $ddir to $datadir.
2838 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2839 * auto-load.c (auto_load_safe_path_vec_update)
2840 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2841 * configure: Regenerate.
2842 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2843 Likewise. Remove the 'use $ddir' help string.
2845 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2847 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2848 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2850 2012-05-18 Tom Tromey <tromey@redhat.com>
2853 * valprint.h (struct value_print_options) <symbol_print>: New
2855 * valprint.c (user_print_options): Add default for symbol_print.
2856 (show_symbol_print): New function.
2857 (generic_val_print): Respect symbol_print.
2858 (_initialize_valprint): Add "print symbol" setting.
2859 * f-valprint.c (f_val_print): Respect symbol_print.
2860 * c-valprint.c (c_val_print): Respect symbol_print.
2862 * printcmd.c (print_address_symbolic): Return int. Ignore some
2864 (print_address_demangle): Return int.
2865 * defs.h: (print_address_symbolic): Return int.
2866 * value.h (print_address_demangle): Return int.
2868 2012-05-18 Tom Tromey <tromey@redhat.com>
2870 * valprint.c (val_print_string): Don't print leading space.
2871 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2872 print space before string or vtbl.
2873 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2875 * jv-valprint.c (java_value_print): Print space before string.
2876 * go-valprint.c (print_go_string): Print space before string.
2877 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2878 space before string.
2879 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2880 space before string or vtbl.
2881 * auxv.c (fprint_target_auxv): Print space after address.
2883 2012-05-18 Tom Tromey <tromey@redhat.com>
2885 * printcmd.c (print_address_demangle): Remove special case for 0.
2887 2012-05-18 Tom Tromey <tromey@redhat.com>
2889 * printcmd.c (print_address_demangle): Add 'opts' argument.
2890 * p-valprint.c (pascal_val_print): Update.
2891 * jv-valprint.c (java_val_print): Update.
2893 * valprint.c (generic_val_print): Update.
2894 (print_function_pointer_address): Add 'options' argument. Remove
2895 'addressprint' argument. Update.
2896 * m2-valprint.c (print_unpacked_pointer): Update.
2897 * gnu-v3-abi.c (print_one_vtable): Update.
2898 (gnuv3_print_method_ptr): Update.
2899 * f-valprint.c (f_val_print): Update.
2900 * cp-valprint.c (cp_print_value_fields): Update.
2901 * valprint.h (print_function_pointer_address): Update.
2902 * c-valprint.c (c_val_print): Update.
2904 2012-05-18 Tom Tromey <tromey@redhat.com>
2906 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2907 directly corresponding to the found psymtab.
2908 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2909 (dw2_find_pc_sect_symtab): Use it.
2910 * block.h (blockvector_contains_pc): Declare.
2911 * block.c (find_block_in_blockvector): New function.
2912 (blockvector_for_pc_sect): Use it.
2913 (blockvector_contains_pc): New function.
2915 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2917 * mips-tdep.h (mips_write_pc): New prototype.
2918 * mips-tdep.c (mips_write_pc): Make external, add description.
2919 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
2922 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2924 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
2926 (mips_unwind_pc, mips_write_pc): Likewise.
2927 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
2930 2012-05-17 Joel Brobecker <brobecker@adacore.com>
2932 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
2933 proc_warn, proc_error, proc_get_status, proc_flags,
2934 proc_why, proc_what, proc_nsysarg, proc_sysargs,
2935 proc_set_run_on_last_close, proc_unset_run_on_last_close,
2936 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
2937 proc_stop_process, proc_wait_for_stop, proc_run_process,
2938 proc_set_traced_signals, proc_set_traced_faults,
2939 proc_set_traced_sysentry, proc_set_traced_sysexit,
2940 proc_set_held_signals, proc_get_held_signals,
2941 proc_get_traced_signals, proc_get_traced_faults,
2942 proc_get_traced_sysentry, proc_get_traced_sysexit,
2943 proc_clear_current_fault, proc_set_current_signal,
2944 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
2945 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
2946 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
2947 proc_get_current_thread, proc_get_current_thread,
2948 proc_get_current_thread, proc_update_threads,
2949 proc_update_threads, proc_update_threads, proc_update_threads,
2950 proc_iterate_over_threads, procfs_find_new_threads,
2951 procfs_pid_to_str): Make static. Remove advance declaration.
2952 (proc_cursig): Make static. Conditionalized defintion on
2953 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
2954 (proc_syscall, proc_set_kill_on_last_close,
2955 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
2956 proc_get_pending_signals, proc_get_signal_actions,
2957 proc_trace_signal, proc_ignore_signal): Delete.
2959 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2961 * coffread.c (cs_section_address): Passing proper argument for
2962 `bfd_get_section_vma'.
2963 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
2964 `bfd_get_section_flags'.
2965 * remote.c (remote_trace_set_readonly_regions): Likewise, for
2966 `bfd_get_section_vma'.
2968 2012-05-16 Tom Tromey <tromey@redhat.com>
2971 * macrotab.h: (macro_define_special): Declare.
2972 (enum macro_special_kind): New.
2973 (struct macro_definition) <argc, replacement>: Update comments.
2974 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
2975 (macro_define_object_internal): New function.
2976 (macro_define_object): Use it.
2977 (macro_define_special): New function.
2978 (fixup_definition): New function.
2979 (macro_lookup_definition, foreach_macro_in_scope)
2980 (foreach_macro): Use fixup_definition.
2981 * macroexp.h (macro_stringify): Declare.
2982 * macroexp.c (free_buffer_return_text): New function.
2983 (stringify): Constify "arg".
2984 (macro_stringify): New function.
2985 * dwarf2read.c (macro_start_file): Call macro_define_special.
2987 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
2988 Maciej W. Rozycki <macro@mips.com>
2990 * breakpoint.h (bp_location): Add related_address member.
2991 * inferior.h (get_return_value): Take a pointer to struct value
2992 instead of struct type for the function requested.
2993 * value.h (using_struct_return): Likewise.
2994 * gdbarch.sh (return_value): Take a pointer to struct value
2995 instead of struct type for the function requested.
2996 * breakpoint.c (set_breakpoint_location_function): Initialize
2997 related_address for bp_gnu_ifunc_resolver breakpoints.
2998 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
2999 requested function's address to gdbarch_return_value.
3000 * eval.c (evaluate_subexp_standard): Pass the requested
3001 function's address to using_struct_return.
3002 * infcall.c (call_function_by_hand): Pass the requested
3003 function's address to using_struct_return and
3004 gdbarch_return_value.
3005 * infcmd.c (get_return_value): Take a pointer to struct value
3006 instead of struct type for the function requested.
3007 (print_return_value): Update accordingly.
3008 (finish_command_continuation): Likewise.
3009 * stack.c (return_command): Pass the requested function's
3010 address to using_struct_return and gdbarch_return_value.
3011 * value.c (using_struct_return): Take a pointer to struct value
3012 instead of struct type for the function requested. Pass the
3013 requested function's address to gdbarch_return_value.
3014 * python/py-finishbreakpoint.c (finish_breakpoint_object):
3015 New function_value member, replacing function_type.
3016 (bpfinishpy_dealloc): Update accordingly.
3017 (bpfinishpy_pre_stop_hook): Likewise.
3018 (bpfinishpy_init): Likewise. Record the requested function's
3020 * mips-tdep.c (mips_fval_reg): New enum.
3021 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
3022 words put in GP registers.
3023 (mips_o64_push_dummy_call): Update a comment.
3024 (mips_o32_return_value): Take a pointer to struct value instead
3025 of struct type for the function requested and use it to check if
3026 using the MIPS16 calling convention. Return the designated
3027 general purpose registers for floating-point values returned in
3029 (mips_o64_return_value): Likewise.
3030 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
3031 (ppc_sysv_abi_broken_return_value): Likewise.
3032 (ppc64_sysv_abi_return_value): Likewise.
3033 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
3034 value instead of struct type for the function requested.
3035 * amd64-tdep.c (amd64_return_value): Likewise.
3036 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
3037 * arm-tdep.c (arm_return_value): Likewise.
3038 * avr-tdep.c (avr_return_value): Likewise.
3039 * bfin-tdep.c (bfin_return_value): Likewise.
3040 * cris-tdep.c (cris_return_value): Likewise.
3041 * frv-tdep.c (frv_return_value): Likewise.
3042 * h8300-tdep.c (h8300_return_value): Likewise.
3043 (h8300h_return_value): Likewise.
3044 * hppa-tdep.c (hppa32_return_value): Likewise.
3045 (hppa64_return_value): Likewise.
3046 * i386-tdep.c (i386_return_value): Likewise.
3047 * ia64-tdep.c (ia64_return_value): Likewise.
3048 * iq2000-tdep.c (iq2000_return_value): Likewise.
3049 * lm32-tdep.c (lm32_return_value): Likewise.
3050 * m32c-tdep.c (m32c_return_value): Likewise.
3051 * m32r-tdep.c (m32r_return_value): Likewise.
3052 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
3053 * m68k-tdep.c (m68k_return_value): Likewise.
3054 (m68k_svr4_return_value): Likewise.
3055 * m88k-tdep.c (m88k_return_value): Likewise.
3056 * mep-tdep.c (mep_return_value): Likewise.
3057 * microblaze-tdep.c (microblaze_return_value): Likewise.
3058 * mn10300-tdep.c (mn10300_return_value): Likewise.
3059 * moxie-tdep.c (moxie_return_value): Likewise.
3060 * mt-tdep.c (mt_return_value): Likewise.
3061 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
3062 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
3063 (ppc_sysv_abi_broken_return_value): Likewise.
3064 (ppc64_sysv_abi_return_value): Likewise.
3065 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
3066 * rl78-tdep.c (rl78_return_value): Likewise.
3067 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
3068 * rx-tdep.c (rx_return_value): Likewise.
3069 * s390-tdep.c (s390_return_value): Likewise.
3070 * score-tdep.c (score_return_value): Likewise.
3071 * sh-tdep.c (sh_return_value_nofpu): Likewise.
3072 (sh_return_value_fpu): Likewise.
3073 * sh64-tdep.c (sh64_return_value): Likewise.
3074 * sparc-tdep.c (sparc32_return_value): Likewise.
3075 * sparc64-tdep.c (sparc64_return_value): Likewise.
3076 * spu-tdep.c (spu_return_value): Likewise.
3077 * tic6x-tdep.c (tic6x_return_value): Likewise.
3078 * v850-tdep.c (v850_return_value): Likewise.
3079 * vax-tdep.c (vax_return_value): Likewise.
3080 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3081 * xtensa-tdep.c (xtensa_return_value): Likewise.
3082 * gdbarch.c: Regenerate.
3083 * gdbarch.h: Regenerate.
3085 2012-05-15 Tom Tromey <tromey@redhat.com>
3087 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3089 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3091 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3092 of command in two error message.
3094 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3096 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3098 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3100 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3102 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3104 * NEWS (show auto-load scripts-directory): Add forgotten command.
3106 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3108 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3111 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3113 * amd64-tdep.c: Include features/i386/x32.c and
3114 features/i386/x32-avx.c.
3115 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3116 initialize_tdesc_x32_avx.
3118 2012-05-14 Stan Shebs <stan@codesourcery.com>
3121 * breakpoint.h (enum bptype): New type bp_dprintf.
3122 (struct breakpoint): New field extra_string.
3123 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3124 (create_breakpoint): Add extra_string arg.
3125 * breakpoint.c (dprintf_breakpoint_ops): New.
3126 (is_breakpoint): Add bp_dprintf.
3127 (bpstat_what): Add dprintf case.
3128 (bptype_string): Ditto.
3129 (print_one_breakpoint_location): Ditto.
3130 (init_bp_location): Ditto.
3131 (bkpt_print_mention): Ditto.
3132 (dprintf_style_enums): New array.
3133 (dprintf_style): New global.
3134 (dprintf_function): New global.
3135 (dprintf_channel): New global.
3136 (update_dprintf_command_list): New function.
3137 (update_dprintf_commands): New function.
3138 (init_breakpoint_sal): Add extra_string argument, handle it.
3139 (create_breakpoint_sal): Add extra_string argument.
3140 (create_breakpoints_sal): Add extra_string argument, update callers.
3141 (find_condition_and_thread): Add extra argument.
3142 (create_breakpoint): Add extra_string argument, record it.
3143 (dprintf_command): New function.
3144 (break_command_1): Add arg to create_breakpoint call.
3145 (handle_gnu_v3_exceptions): Ditto.
3146 (trace_command): Ditto.
3147 (ftrace_command): Ditto.
3148 (strace_command): Ditto.
3149 (bkpt_print_mention): Add dprintf case.
3150 (create_breakpoint_sal_default): Add extra_string argument.
3151 (_initialize_breakpoint): Add new commands.
3152 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3153 * python/py-breakpoint.c (bppy_init): Ditto.
3154 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3156 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3158 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3160 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3162 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3165 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3167 Add a new function gdb.find_pc_line to the Python API.
3168 * NEWS (Python Scripting): Add entry about the new function.
3169 * python/python.c (gdbpy_find_pc_line): New function which
3170 implements gdb.find_pc_line.
3171 (GdbMethods): Add entry for the new function.
3173 2012-05-12 Pedro Alves <palves@redhat.com>
3175 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3176 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3178 2012-05-12 Eli Zaretskii <eliz@gnu.org>
3180 * inferior.c: Include completer.h
3181 (initialize_inferiors): Set completer of add-inferior to
3184 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3186 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3187 gdbarch_ptr_bit for x32 core dump.
3189 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3191 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3192 and features/i386/x32-avx-linux.c.
3194 2012-05-11 Stan Shebs <stan@codesourcery.com>
3195 Kwok Cheung Yeung <kcy@codesourcery.com>
3197 * NEWS: Describe new info os commands.
3198 * common/linux-osdata.c (PID_T, TIME_T): Define.
3199 (MAX_PID_T_STRLEN): New.
3200 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3202 (command_from_pid): Add comment. Change to use PID_T.
3203 (commandline_from_pid): Change to use PID_T.
3204 (user_from_pid): Add comment.
3205 (get_process_owner): Add comment. Change to use PID_T and
3207 (get_number_of_cpu_cores): Add comment.
3208 (get_cores_used_by_process): Add comment. Change to use PID_T and
3210 (linux_xfer_osdata_processes): Change to use PID_T and
3212 (compare_processes): New function.
3213 (linux_xfer_osdata_processgroups): New function.
3214 (linux_xfer_osdata_threads): Change to use PID_T.
3215 (linux_xfer_osdata_fds): New function.
3216 (format_socket_state, print_sockets): New functions.
3217 (union socket_addr): New union.
3218 (linux_xfer_osdata_isockets): New function.
3219 (time_from_time_t, group_from_gid): New functions.
3220 (linux_xfer_osdata_shm): New function.
3221 (linux_xfer_osdata_sem): New function.
3222 (linux_xfer_osdata_msg): New function.
3223 (linux_xfer_osdata_modules): New function.
3224 (osdata_table): Add new entries.
3225 * common/buffer.c (buffer_xml_printf): Add support for long and
3226 long long format specifiers.
3228 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3230 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3231 (tdesc_x32_avx_linux): Likewise.
3233 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3235 Implement multi-component --with-auto-load-dir.
3236 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3238 (--with-auto-load-safe-path): Update the default value description.
3239 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3241 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3242 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3243 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3244 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3245 "set auto-load scripts-directory".
3246 * config.in: Regenerate.
3247 * configure: Regenerate.
3248 * configure.ac (--with-auto-load-dir): New configure option.
3249 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3251 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3253 Provide $ddir substitution for --with-auto-load-safe-path.
3254 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3256 * auto-load.c: Include observer.h.
3257 (auto_load_safe_path_vec_update): Call substitute_path_component for
3258 each component. New variable ddir_subst.
3259 (auto_load_gdb_datadir_changed): New function.
3260 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3261 AUTO_LOAD_SAFE_PATH. New comment.
3262 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3263 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3264 * config.in: Regenerate.
3265 * configure: Regenerate.
3266 * configure.ac (--auto-load-safe-path): Rename
3267 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3268 GDB_DATADIR/auto-load.
3269 * defs.h (substitute_path_component): New declaration.
3270 * top.c: Include observer.h.
3271 (set_gdb_datadir): New function.
3272 (init_main): Install it for "set data-directory".
3273 * utils.c (substitute_path_component): New function.
3275 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3277 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3278 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3279 DEBUG_FILE_DIRECTORY. Handle multiple components of
3280 DEBUG_FILE_DIRECTORY.
3282 2012-05-10 Tom Tromey <tromey@redhat.com>
3284 * dwarf2read.c (recursively_write_psymbols): New function.
3285 (write_psymtabs_to_index): Use it.
3287 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3289 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3290 (load_partial_comp_unit): Update.
3291 (queue_comp_unit): Add argument 'pretend_language'.
3292 (process_queue): Update.
3293 (psymtab_to_symtab_1): Skip dependencies that have a user.
3294 (load_partial_comp_unit_reader): Give meaning to the 'data'
3296 (load_full_comp_unit): Add 'pretend_language' argument.
3297 (process_full_comp_unit): Add 'pretend_language' argument. Set
3299 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3301 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3302 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3304 (prepare_one_comp_unit): Add 'pretend_language' argument.
3306 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3307 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3308 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3309 (dw2_do_instantiate_symtab): Check whether symtab was read in
3311 (dw2_instantiate_symtab): Add assertion. Call
3312 process_cu_includes.
3313 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3314 (partial_symtab_p): New typedef.
3315 (set_partial_user): New function.
3316 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3317 (scan_partial_symbols): Add imported CU to imported_symtabs.
3318 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3319 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3320 (get_symtab, recursively_compute_inclusions)
3321 (compute_symtab_includes, process_cu_includes)
3322 (process_imported_unit_die): New functions.
3323 (process_die) <DW_TAG_imported_unit>: New case.
3324 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3326 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3328 (struct partial_die_info) <locdesc>: Remove.
3330 (process_psymtab_comp_unit): Add 'read_partial' argument.
3332 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3333 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3334 (add_partial_symbol): Update.
3335 (process_die): Handle DW_TAG_partial_unit.
3336 (read_file_scope): Update comment.
3337 (load_partial_dies): Handle DW_TAG_imported_unit.
3338 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3339 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3341 2012-05-10 Tom Tromey <tromey@redhat.com>
3343 * cc-with-dwz.sh: New file.
3345 2012-05-10 Tom Tromey <tromey@redhat.com>
3347 * symtab.h (struct symtab) <includes, user>: New fields.
3348 * block.h (struct block_iterator) <d, idx, which>: New fields.
3349 * block.c (initialize_block_iterator, find_iterator_symtab)
3350 (block_iterator_step, block_iter_name_step)
3351 (block_iter_match_step): New functions.
3352 (block_iterator_first, block_iterator_next)
3353 (block_iter_name_first, block_iter_name_next)
3354 (block_iter_match_first, block_iter_match_next): Rewrite.
3355 (get_block_symtab): New function.
3357 2012-05-10 Tom Tromey <tromey@redhat.com>
3359 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3361 * jit.c (finalize_symtab): Use allocate_global_block,
3363 * buildsym.c (finish_block_internal): New function, from old
3365 (finish_block): Rewrite.
3366 (end_symtab): Use finish_block_internal, set_block_symtab.
3367 * block.h (struct global_block): New.
3368 (allocate_global_block, set_block_symtab): Declare.
3369 * block.c (allocate_global_block, set_block_symtab): New
3372 2012-05-10 Tom Tromey <tromey@redhat.com>
3374 * psymtab.c (partial_map_expand_apply): Add assertion.
3375 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3376 (psymtab_to_symtab): Find unshared psymtab.
3377 (dump_psymtab): Print including psymtabs.
3378 (recursively_search_psymtabs): New function.
3379 (expand_symtabs_matching_via_partial): Use it.
3380 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3382 (enum psymtab_search_status): New.
3384 2012-05-10 Tom Tromey <tromey@redhat.com>
3386 * tracepoint.c (scope_info): Update.
3387 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3388 (find_pc_sect_symtab, search_symbols)
3389 (default_make_symbol_completion_list_break_on)
3390 (make_file_symbol_completion_list): Update.
3391 * symmisc.c (dump_symtab_1): Update.
3392 * stack.c (print_frame_args, iterate_over_block_locals)
3393 (print_frame_labels, iterate_over_block_arg_vars): Update.
3394 * python/py-block.c (block_object) <dict>: Remove.
3396 <iter>: Change type.
3397 (blpy_iter): Update.
3398 (blpy_block_syms_iternext): Update.
3399 * psymtab.c (map_block): Use block iterators.
3400 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3401 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3402 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3403 * infrun.c (check_exception_resume): Update.
3404 * cp-support.c (make_symbol_overload_list_block): Update.
3405 * coffread.c (patch_opaque_types): Update.
3406 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3407 * block.h (struct block_iterator): New.
3408 (block_iterator_first, block_iterator_next, block_iter_name_first)
3409 (block_iter_name_next, block_iter_match_first)
3410 (block_iter_match_next): Declare.
3411 (ALL_BLOCK_SYMBOLS): Redefine.
3412 * block.c (block_iterator_first, block_iterator_next)
3413 (block_iter_name_first, block_iter_name_next)
3414 (block_iter_match_first, block_iter_match_next): New functions.
3415 * ada-lang.c (ada_add_block_symbols)
3416 (ada_make_symbol_completion_list): Use block iterator.
3418 2012-05-10 Tom Tromey <tromey@redhat.com>
3420 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3421 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3422 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3423 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3424 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3427 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3429 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3430 print-file-var-lib2.c, print-file-var-main.c and
3431 print-file-var.exp (located in gdb/testsuite/gdb.base).
3433 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3435 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3436 try locating the symbol in the symbol's own objfile first, before
3437 extending the search to all objfiles.
3438 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3439 out of lookup_symbol_aux_symtabs.
3440 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3441 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3442 Do not search EXCLUDE_OBJFILE.
3443 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3444 (lookup_symbol_global): Search for matches in the block's objfile
3445 first, before searching all other objfiles.
3447 2012-05-10 Tristan Gingold <gingold@adacore.com>
3449 * printcmd.c (set_command): Add pre/post inc/dec.
3451 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3453 * gdb.1: Document -ex option.
3455 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3457 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3458 * inferior.h (AT_SYMBOL): Delete.
3460 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3462 * mips-tdep.c (mips_push_dummy_code): New function.
3463 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3464 ON_STACK and install mips_push_dummy_code as our gdbarch
3465 push_dummy_code routine.
3467 2012-05-09 Pedro Alves <palves@redhat.com>
3469 * target.c (set_maintenance_target_async_permitted): Rename to ...
3470 (set_target_async_command): ... this.
3471 (show_maintenance_target_async_permitted): Rename to ...
3472 (show_target_async_command): ... this.
3473 (initialize_targets): Adjust.
3475 2012-05-08 Doug Evans <dje@google.com>
3477 * go-exp.y (classify_name): Add missing assignment of fields of
3480 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3482 Display the ">" prompt in interactive mode while reading canned
3483 commands, even when the current interpreter is MI.
3485 * interps.c (interp_set_temp): New function.
3487 * interps.h (interp_set_temp): Add prototype.
3489 * cli/cli-script.c (restore_interp): New cleanup function.
3490 (read_command_lines): Temporarily override the current interpreter
3491 with CLI and arrange for restoring the original one.
3493 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3495 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3497 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3499 * probe.c (parse_probes): Move conditional to check for
3500 debuginfo files from here...
3501 * stap-probe.c (stap_get_probes): ... to here.
3503 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3504 H.J. Lu <hongjiu.lu@intel.com>
3506 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3507 `movl %esp, %ebp' for the X32 ABI.
3509 2012-05-07 Tom Tromey <tromey@redhat.com>
3511 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3513 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3514 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3515 (dwarf_stack_op_name): Remove.
3516 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3517 (decode_locdesc): Use get_DW_OP_name.
3518 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3519 (dwarf2_compile_expr_to_ax): Likewise.
3520 (disassemble_dwarf_expression): Likewise.
3521 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3523 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3525 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3526 (sh_linux_sigtramp_cache): New function.
3527 (sh_linux_sigreturn_init): New function.
3528 (sh_linux_rt_sigreturn_init): New function.
3529 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3531 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3533 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3534 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3535 (sh_linux_init_abi): Add init calls to register new tramp_frame
3536 definitions under 32-bit SH, update comments.
3538 2012-05-07 Pedro Alves <palves@redhat.com>
3542 * amd64-linux-tdep.c: Include glibc-tdep.h.
3543 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3544 gdbarch_skip_solib_resolver callback.
3546 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3548 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3549 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3550 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3551 (add_auto_load_safe_path): Change the error message.
3552 (_initialize_auto_load): Change the "safe-path" help text.
3553 * configure: Regenerate
3554 * configure.ac (--without-auto-load-safe-path): Set
3555 WITH_AUTO_LOAD_SAFE_PATH to /.
3557 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3559 * stap-probe.h: Do not include unecessary `probe.h'.
3561 2012-05-05 Alan Modra <amodra@gmail.com>
3563 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3564 bfd_und_section_ptr.
3565 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3566 and bfd_com_section_ptr.
3568 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3570 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3572 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3574 * windows-nat.h (segment_register_p_ftype): New typedef.
3575 (windows_set_segment_register_p): Add declaration.
3576 * windows-nat.c (segment_register_p): New static global.
3577 (windows_set_segment_register_p): New function.
3578 (do_windows_fetch_inferior_registers): Add special handling
3579 for segment registers.
3580 * amd64-windows-nat.c: #include "amd64-tdep.h".
3581 (amd64_windows_segment_register_p): New function.
3582 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3583 * i386-windows-nat.c: #include "i386-tdep.h".
3584 (i386_windows_segment_register_p): New function.
3585 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3587 2012-05-04 Tristan Gingold <gingold@adacore.com>
3589 * printcmd.c (set_command): Emit a warning if the expression is not
3592 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3594 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3597 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3599 * stap-probe.c (stap_is_operator): Change declaration.
3600 (stap_get_opcode): Change return value.
3601 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3602 `stap_parse_argument_1'.
3604 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3606 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3609 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3611 Add two new methods global_block and static_block to gdb.Symtab
3613 * NEWS (Python scripting): Add entry about the new methods.
3614 * python/py-symtab.c (stpy_global_block): New function which
3615 implements the gdb.Symtab.global_block() method.
3616 (stpy_static_block): New function which implements the
3617 gdb.Symtab.static_block() method.
3618 (symtab_object_methods): Add entries for the two new methods.
3620 2012-05-03 Doug Evans <dje@google.com>
3622 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3625 2012-05-03 Yao Qi <yao@codesourcery.com>
3627 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3629 (i386_process_record): Ditto.
3631 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3633 * infcall.c (unwind_on_signal_p): Make static.
3635 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3637 * sol-thread.c (solaris_pid_to_str): Make static.
3638 (_initialize_sol_thread): Add prototype.
3640 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3642 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3644 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3646 * MAINTAINERS: Remove myself.
3648 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3650 Fix --without-auto-load-safe-path for MS-Windows host platform.
3651 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3653 2012-05-02 Eli Zaretskii <eliz@gnu.org>
3655 * gdb_curses.h: Undefine KEY_EVENT before including curses
3656 headers. Move "#undef MOUSE_MOVED" before any curses header
3659 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3661 * features/i386/i386-mmx-linux.c: Regenerate.
3662 * features/rs6000/powerpc-32.c: Likewise.
3663 * features/rs6000/powerpc-32l.c: Likewise.
3664 * features/rs6000/powerpc-403.c: Likewise.
3665 * features/rs6000/powerpc-403gc.c: Likewise.
3666 * features/rs6000/powerpc-405.c: Likewise.
3667 * features/rs6000/powerpc-505.c: Likewise.
3668 * features/rs6000/powerpc-601.c: Likewise.
3669 * features/rs6000/powerpc-602.c: Likewise.
3670 * features/rs6000/powerpc-603.c: Likewise.
3671 * features/rs6000/powerpc-604.c: Likewise.
3672 * features/rs6000/powerpc-64.c: Likewise.
3673 * features/rs6000/powerpc-64l.c: Likewise.
3674 * features/rs6000/powerpc-750.c: Likewise.
3675 * features/rs6000/powerpc-860.c: Likewise.
3676 * features/rs6000/powerpc-e500.c: Likewise.
3677 * features/rs6000/powerpc-e500l.c: Likewise.
3678 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3679 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3680 * features/rs6000/rs6000.c: Likewise.
3682 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3684 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3686 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3687 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3688 (stap_parse_argument) <e>: Likewise.
3689 (handle_stap_probe) <byte_order>: Likewise.
3691 2012-04-30 Doug Evans <dje@google.com>
3693 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3694 init_and_read_dies_worker. All callers updated.
3695 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3696 replaced with init_cutu_and_read_dies.
3697 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3698 (find_partial_die): Remove FIXME. Don't free current CU.
3700 2012-04-30 Sterling Augustine <saugustine@google.com>
3702 * contrib: New directory.
3703 * contrib/test_pubnames_and_indexes.py: New file.
3705 2012-04-30 Doug Evans <dje@google.com>
3707 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3708 All callers updated.
3709 (init_cu_die_reader): Verify the section is non-empty.
3710 (dwarf_decode_line_header): Don't dereference section->asection
3711 until we know the section is present.
3713 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3715 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3718 2012-04-29 Yao Qi <yao@codesourcery.com>
3720 * gdb-code-style.el: New hook gdb-markup-hook
3721 and gdb-comment-hook.
3723 2012-04-28 Doug Evans <dje@google.com>
3725 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3726 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3728 * symfile.h (dwarf2_debug_sections): New member addr.
3729 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3730 (ctx_no_get_addr_index): New function.
3731 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3732 (ctx_no_get_addr_index): Declare.
3733 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3734 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3735 (dwarf_expr_ctx_funcs): Update.
3736 (needs_get_addr_index): New function.
3737 (needs_frame_ctx_funcs): Update.
3738 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3739 * dwarf2read.c: #include "gdbcore.h".
3740 (dwarf2_per_objfile): New members addr, dwo_files.
3741 (dwarf2_elf_names): Add entry for addr.
3742 (struct dwo_section_names): New type.
3743 (dwo_section_names): New static global.
3744 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3745 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3746 old debug_types_section member updated to use this.
3747 Rename member debug_types_section to info_or_types_section,
3749 (signatured_type): Rename member type_offset to type_offset_in_tu,
3750 all uses updated. New member type_offset_in_section.
3751 (struct dwo_sections): New type.
3752 (struct dwo_unit): New type.
3753 (struct dwo_file): New type.
3754 (die_reader_specs): New member dwo_file.
3755 (dwarf2_locate_sections): Watch for .debug_addr.
3756 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3757 (dwarf2_read_section): Get bfd of section from bfd's asection,
3759 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3760 (create_signatured_type_table_from_index): Initialize
3761 sig_type->info_or_types_section.
3762 (dw2_get_file_names): Statement lists for type units with DWO files
3763 live in the DWO file.
3764 (create_debug_types_hash_table): New function.
3765 (create_all_type_units): Rewrite.
3766 (init_cu_die_reader): New arg dwo_file, all callers updated.
3767 (init_and_read_dies_worker): Get section from
3768 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3769 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3770 continue reading the CU/TU from there.
3771 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3772 updated. Get section from this_cu->info_or_types_section.
3773 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3774 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3775 DW_FORM_GNU_str_index.
3776 (hash_dwo_file, eq_dwo_file): New functions.
3777 (allocate_dwo_file_hash_table): New function.
3778 (hash_dwo_unit, eq_dwo_unit): New functions.
3779 (allocate_dwo_unit_table): New function.
3780 (dwarf2_locate_dwo_sections): New function.
3781 (struct create_dwo_info_table_data): New type.
3782 (create_debug_info_hash_table_reader): New function.
3783 (create_debug_info_hash_table): New function.
3784 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3785 (lookup_dwo_file): New function.
3786 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3787 (free_dwo_file, free_dwo_file_cleanup): New functions.
3788 (free_dwo_file_from_slot, free_dwo_files): New functions.
3789 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3790 (dwarf2_record_block_ranges): Ditto.
3791 (read_partial_die): Ditto.
3792 (process_enumeration_scope): Update to use type_offset_in_section.
3793 (read_full_die_1): New function.
3794 (read_full_die): Rewrite.
3795 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3796 DW_FORM_GNU_str_index.
3797 (read_addr_index_1, read_addr_index): New functions.
3798 (read_addr_index_from_leb128): New function.
3799 (struct dwarf2_read_addr_index_data): New type.
3800 (dwarf2_read_addr_index_reader): New function.
3801 (dwarf2_read_addr_index): New function.
3802 (read_str_index): New function.
3803 (leb128_size): New function.
3804 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3805 If processing a type unit from a DWO file, get the line section
3807 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3808 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3809 DW_FORM_GNU_str_index.
3810 (lookup_die_type): Check whether section offset of type's die is
3811 known before looking it up. Remove assert. Condition can
3812 legimately happen for inter-cu type references.
3813 (dwarf_attr_name): Handle Fission attributes.
3814 (dwarf_form_name): Handle Fission forms.
3815 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3816 DW_FORM_GNU_str_index.
3817 (follow_die_sig): Update to use type_offset_in_section.
3818 (decode_locdesc): New case DW_OP_GNU_addr_index.
3819 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3820 DW_FORM_GNU_str_index.
3821 (cu_debug_loc_section): New function.
3822 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3823 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3824 Free DWO files if present.
3825 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3827 Refactor DIE reading.
3828 * dwarf2read.c (dwarf2_per_objfile): Replace members
3829 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3830 (die_reader_specs): New member "die_section". Temporarily make
3831 member "buffer" non-const, pending constifying all info_ptr uses.
3832 (die_reader_func_ftype): New typedef.
3833 (dw2_get_file_names_reader): New function.
3834 (dw2_get_file_names): Rewrite.
3835 (read_and_check_type_unit_head): Rename arg type_offset to
3837 (create_all_type_units): Improve debugging message.
3838 Improve dummy type unit check.
3839 (init_cu_die_reader): New arg "section". All callers updated.
3840 (init_and_read_dies_worker): New function.
3841 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3842 (init_cutu_and_read_dies_no_follow): New function.
3843 (init_cutu_and_read_dies_simple): New function.
3844 (process_psymtab_comp_unit_reader): New function.
3845 (process_psymtab_comp_unit): Delete args section,
3846 is_debug_types_section. Rewrite. All callers updated.
3847 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3848 All callers updated. Rewrite.
3849 (load_partial_comp_unit_reader): New function.
3850 (load_partial_comp_unit): Rewrite.
3851 (skip_children): New arg reader. Delete args buffer, cu.
3852 All callers updated.
3853 (skip_one_die): New arg reader. Delete args buffer, cu.
3854 All callers updated.
3855 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3856 All callers updated.
3857 (load_full_comp_unit_reader): New function.
3858 (load_full_comp_unit): Rewrite.
3859 (read_comp_unit): Delete.
3860 (read_die_and_children_1): Delete, contents moved ...
3861 (read_die_and_children): ... here.
3862 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3863 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3864 All callers updated.
3865 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3866 All callers updated.
3867 (find_partial_die): Rewrite load_all_dies support.
3868 (read_attribute_value): New arg reader. Delete args abfd, cu.
3869 All callers updated.
3870 (read_attribute): New arg reader. Delete args abfd, cu.
3871 All callers updated.
3872 (load_full_type_unit): Add assert.
3873 (read_signatured_type_reader): New function.
3874 (read_signatured_type): Rewrite.
3875 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3876 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3877 All callers updated. Set per_cu->cu = NULL after freeing it.
3878 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3879 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3880 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3881 (set_die_type): Update.
3882 (get_die_type_at_offset): Update.
3883 (read_file_scope): Call prepare_one_comp_unit.
3884 (read_type_unit_scope): Ditto.
3885 (prepare_one_comp_unit): Set producer if present.
3887 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
3889 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3890 gettext function on `error'.
3892 2012-04-27 Doug Evans <dje@google.com>
3894 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3897 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3898 Tom Tromey <tromey@redhat.com>
3900 * breakpoint.c (struct breakpoint_objfile_data)
3901 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3902 <exception_probes>: New fields.
3903 (free_breakpoint_probes): New function.
3904 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3905 `_Unwind_DebugHook'.
3906 (create_exception_master_breakpoint): Likewise.
3907 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3908 * infrun.c: Including necessary header files for handling SystemTap
3910 (handle_inferior_event): Handling longjmp breakpoint and exceptions
3911 via SystemTap probes.
3912 (check_exception_resume): Remove `func' argument. Handle exception
3913 unwinding breakpoint set via a SystemTap probe.
3914 (insert_exception_resume_from_probe): New function.
3916 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3917 Tom Tromey <tromey@redhat.com>
3918 Jan Kratochvil <jan.kratochvil@redhat.com>
3920 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
3921 (COMMON_OBS): Likewise.
3922 (HFILES_NO_SRCDIR): Add `probe'.
3923 * NEWS: Mention support for static and SystemTap probes.
3924 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
3925 SystemTap probes' arguments parser.
3926 * arm-linux-tdep.c: Including headers needed to perform the parsing
3927 of SystemTap probes' arguments.
3928 (arm_stap_is_single_operand): New function.
3929 (arm_stap_parse_special_token): Likewise.
3930 (arm_linux_init_abi): Initializing proper fields used by SystemTap
3931 probes' arguments parser.
3932 * ax-gdb.c (require_rvalue): Removing static declaration.
3933 (gen_expr): Likewise.
3934 * ax-gdb.h (gen_expr): Declaring function.
3935 (require_rvalue): Likewise.
3936 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
3937 (bkpt_probe_breakpoint_ops): New variable.
3938 (momentary_breakpoint_from_master): Set the `probe' value.
3939 (add_location_to_breakpoint): Likewise.
3940 (break_command_1): Using proper breakpoint_ops according to the
3941 argument passed by the user in the command line.
3942 (bkpt_probe_insert_location): New function.
3943 (bkpt_probe_remove_location): Likewise.
3944 (bkpt_probe_create_sals_from_address): Likewise.
3945 (bkpt_probe_decode_linespec): Likewise.
3946 (tracepoint_probe_create_sals_from_address): Likewise.
3947 (tracepoint_probe_decode_linespec): Likewise.
3948 (tracepoint_probe_breakpoint_ops): New variable.
3949 (trace_command): Using proper breakpoint_ops according to the
3950 argument passed by the user in the command line.
3951 (initialize_breakpoint_ops): Initializing breakpoint_ops for
3952 static probes on breakpoints and tracepoints.
3953 * breakpoint.h (struct bp_location) <probe>: New field.
3954 * cli-utils.c (skip_spaces_const): New function.
3955 (extract_arg): Likewise.
3956 * cli-utils.h (skip_spaces_const): Likewise.
3957 (extract_arg): Likewise.
3958 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
3959 * configure.ac: Append `stap-probe.o' to be generated when ELF
3961 * configure: Regenerate.
3962 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
3963 * elfread.c: Include `probe.h' and `arch-utils.h'.
3964 (probe_key): New variable.
3965 (elf_get_probes): New function.
3966 (elf_get_probe_argument_count): Likewise.
3967 (elf_evaluate_probe_argument): Likewise.
3968 (elf_compile_to_ax): Likewise.
3969 (elf_symfile_relocate_probe): Likewise.
3970 (stap_probe_key_free): Likewise.
3971 (elf_probe_fns): New variable.
3972 (elf_sym_fns): Add `sym_probe_fns' value.
3973 (elf_sym_fns_lazy_psyms): Likewise.
3974 (elf_sym_fns_gdb_index): Likewise.
3975 (_initialize_elfread): Initialize objfile cache for static
3977 * gdb_vecs.h (struct probe): New forward declaration.
3978 (probe_p): New VEC declaration.
3979 * gdbarch.c: Regenerate.
3980 * gdbarch.h: Regenerate.
3981 * gdbarch.sh (stap_integer_prefix): New variable.
3982 (stap_integer_suffix): Likewise.
3983 (stap_register_prefix): Likewise.
3984 (stap_register_suffix): Likewise.
3985 (stap_register_indirection_prefix): Likewise.
3986 (stap_register_indirection_suffix): Likewise.
3987 (stap_gdb_register_prefix): Likewise.
3988 (stap_gdb_register_suffix): Likewise.
3989 (stap_is_single_operand): New function.
3990 (stap_parse_special_token): Likewise.
3991 (struct stap_parse_info): Forward declaration.
3992 * i386-tdep.c: Including headers needed to perform the parsing
3993 of SystemTap probes' arguments.
3994 (i386_stap_is_single_operand): New function.
3995 (i386_stap_parse_special_token): Likewise.
3996 (i386_elf_init_abi): Initializing proper fields used by SystemTap
3997 probes' arguments parser.
3998 * i386-tdep.h (i386_stap_is_single_operand): New function.
3999 (i386_stap_parse_special_token): Likewise.
4000 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
4001 * mipsread.c (ecoff_sym_fns): Likewise.
4002 * objfiles.c (objfile_relocate1): Support relocation for static
4004 * parse.c (prefixify_expression): Remove static declaration.
4005 (initialize_expout): Likewise.
4006 (reallocate_expout): Likewise.
4007 * parser-defs.h (initialize_expout): Declare function.
4008 (reallocate_expout): Likewise.
4009 (prefixify_expression): Likewise.
4010 * ppc-linux-tdep.c: Including headers needed to perform the parsing
4011 of SystemTap probes' arguments.
4012 (ppc_stap_is_single_operand): New function.
4013 (ppc_stap_parse_special_token): Likewise.
4014 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
4015 probes' arguments parser.
4016 * probe.c: New file, for generic statically defined probe support.
4017 * probe.h: Likewise.
4018 * s390-tdep.c: Including headers needed to perform the parsing of
4019 SystemTap probes' arguments.
4020 (s390_stap_is_single_operand): New function.
4021 (s390_gdbarch_init): Initializing proper fields used by SystemTap
4022 probes' arguments parser.
4023 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
4024 * stap-probe.c: New file, for SystemTap probe support.
4025 * stap-probe.h: Likewise.
4026 * symfile.h: Include `gdb_vecs.h'.
4027 (struct sym_probe_fns): New struct.
4028 (struct sym_fns) <sym_probe_fns>: New field.
4029 * symtab.c (init_sal): Initialize `probe' field.
4030 * symtab.h (struct probe): Forward declaration.
4031 (struct symtab_and_line) <probe>: New field.
4032 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
4034 (stop_tracing): Likewise.
4035 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
4037 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4038 Tom Tromey <tromey@redhat.com>
4040 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
4041 and to compile agent expressions.
4042 * infrun.c (siginfo_make_value): New argument `ignore'.
4043 (siginfo_funcs): New struct.
4044 (_initialize_infrun): New argument when calling
4045 `create_internalvar_type_lazy'.
4046 * thread.c (thread_id_make_value): New argument `ignore'.
4047 (thread_funcs): New struct.
4048 (_initialize_thread): New argument when calling
4049 `create_internalvar_type_lazy'.
4050 * tracepoint.c (sdata_make_value): New argument `ignore'.
4051 (sdata_funcs): New struct.
4052 (_initialize_tracepoint): New argument when calling
4053 `create_internalvar_type_lazy'.
4054 * value.c (make_value): New struct.
4055 (create_internalvar_type_lazy): New argument `data'.
4056 (compile_internalvar_to_ax): New function.
4057 (value_of_internalvar): Properly handling `make_value' case.
4058 (clear_internalvar): Likewise.
4059 (show_convenience): Adding `TRY_CATCH' block.
4060 * value.h (internalvar_make_value): Delete, replace by...
4061 (struct internalvar_funcs): ... this.
4062 (create_internalvar_type_lazy) <fun>: Delete argument.
4063 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
4064 (compile_internalvar_to_ax): New function.
4065 * windows-tdep.c (tlb_make_value): New argument `ignore'.
4066 (tlb_funcs): New struct.
4067 (_initialize_windows_tdep): New argument when calling
4068 `create_internalvar_type_lazy'.
4070 2012-04-27 Mark Wielaard <mjw@redhat.com>
4072 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4073 see whether it is an address or a constant offset from DW_AT_low_pc.
4074 (dwarf2_record_block_ranges): Likewise.
4075 (read_partial_die): Likewise.
4077 2012-04-26 Mark Wielaard <mjw@redhat.com>
4079 * MAINTAINERS (Write After Approval): Add myself to the list.
4081 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4083 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4084 (proc_prettyprint_signal): Likewise.
4085 (proc_prettyprint_faultset): Likewise.
4086 (proc_prettyprint_fault): Likewise.
4087 (proc_prettyprint_actionset): Likewise.
4088 (proc_prettyprint_flags): Move to new proc-flags.c section.
4089 (proc_prettyfprint_flags): New prototype.
4090 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4091 (proc_syscall, proc_cursig): Likewise.
4092 (proc_set_kill_on_last_close): Likewise.
4093 (proc_unset_kill_on_last_close): Likewise.
4094 (proc_set_watchpoint): Make static.
4095 (proc_delete_dead_threads): Likewise.
4096 (procfs_set_watchpoint): Likewise.
4097 (_initialize_procfs): Add prototype.
4098 * proc-events.c: Include proc-utils.h.
4099 (init_syscall_table): Make static.
4100 * proc-api.c (_initialize_proc_api): Add prototype.
4101 * proc-flags.c: Include proc-utils.h.
4103 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4105 * configure.ac: Add AC_ARG_PROGRAM.
4106 * configure: Regenerate.
4108 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4110 Fix DW_AT_lower_bound defaults for DWARF-4+.
4111 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4112 high. New variable low_default_is_valid. Implement DWARF-4+
4113 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4114 no default by the DWARF standard.
4116 2012-04-26 Maciej W. Rozycki <macro@mips.com>
4117 Maciej W. Rozycki <macro@codesourcery.com>
4119 * infrun.c (handle_inferior_event): Move the check for return
4120 trampolines ahead of the check for function trampolines.
4121 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4122 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4123 (mips_str_mips16_ret_stub): Likewise.
4124 (mips_str_call_fp_stub): Likewise.
4125 (mips_str_call_stub): Likewise.
4126 (mips_str_fn_stub): Likewise.
4127 (mips_str_pic): Likewise.
4128 (mips_in_frame_stub): New function.
4129 (mips_unwind_pc): Return the return address rather than the PC
4130 if the PC of an intermediate frame is inside a call thunk.
4131 (mips_is_stub_suffix): New function.
4132 (mips_is_stub_mode): Likewise.
4133 (mips_get_mips16_fn_stub_pc): Likewise.
4134 (mips_skip_mips16_trampoline_code): Update to handle all the
4135 currently generated stub types. Don't recurse into __fn_stub
4136 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4137 Use cooked register accesses.
4138 (mips_in_return_stub): Reintroduce function.
4139 (mips_skip_trampoline_code): Traverse trampolines recursively.
4140 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4142 2012-04-26 Joel Brobecker <brobecker@adacore.com>
4146 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4148 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4149 * features/arm-with-m-vfp-d16.xml: New file. Describes
4150 Cortex-M with VFPv4-sp-d16 FPU register layout.
4151 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4152 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4153 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4154 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4155 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4157 2012-04-25 Doug Evans <dje@google.com>
4159 * cli/cli-decode.c (print_doc_line): Use stream instead of
4162 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4164 * features/arm-with-iwmmxt.c: Regenerate.
4165 * features/arm-with-m-fpa-layout.c: Likewise.
4166 * features/arm-with-m.c: Likewise.
4167 * features/arm-with-neon.c: Likewise.
4168 * features/arm-with-vfpv2.c: Likewise.
4169 * features/arm-with-vfpv3.c: Likewise.
4170 * features/mips-dsp-linux.c: Likewise.
4171 * features/mips-linux.c: Likewise.
4172 * features/mips64-dsp-linux.c: Likewise.
4173 * features/mips64-linux.c: Likewise.
4174 * features/s390-linux32.c: Likewise.
4175 * features/s390-linux32v1.c: Likewise.
4176 * features/s390-linux32v2.c: Likewise.
4177 * features/s390-linux64.c: Likewise.
4178 * features/s390-linux64v1.c: Likewise.
4179 * features/s390-linux64v2.c: Likewise.
4180 * features/s390x-linux64.c: Likewise.
4181 * features/s390x-linux64v1.c: Likewise.
4182 * features/s390x-linux64v2.c: Likewise.
4183 * features/tic6x-c62x-linux.c: Likewise.
4184 * features/tic6x-c62x.c: Likewise.
4185 * features/tic6x-c64x-linux.c: Likewise.
4186 * features/tic6x-c64x.c: Likewise.
4187 * features/tic6x-c64xp-linux.c: Likewise.
4188 * features/tic6x-c64xp.c: Likewise.
4189 * target-descriptions.c: Only generate `field_type' and `type'
4190 variables when needed.
4192 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4194 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4196 2012-04-25 Doug Evans <dje@google.com>
4198 Initial pass at Go language support.
4200 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4202 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4203 (YYFILES): Add go-exp.c.
4204 (YYOBJ): Add go-exp.o.
4205 (local-maintainer-clean): Delete go-exp.c.
4206 * defs.h (enum language): Add language_go.
4207 * dwarf2read.c: #include "go-lang.h".
4208 (fixup_go_packaging): New function.
4209 (process_full_comp_unit): Call it when processing Go CUs.
4210 (dwarf2_physname): Add Go support.
4211 (read_file_scope): Handle missing language spec for GNU Go.
4212 (set_cu_language): Handle DW_LANG_Go.
4213 * go-exp.y: New file.
4214 * go-lang.h: New file.
4215 * go-lang.c: New file.
4216 * go-typeprint.c: New file.
4217 * go-valprint.c: New file.
4218 * symtab.c: #include "go-lang.h".
4219 (symbol_set_language): Handle language_go.
4220 (symbol_find_demangled_name, symbol_set_names): Ditto.
4221 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4223 2012-04-24 Jim Meyering <meyering@redhat.com>
4225 avoid a few strncpy-induced buffer overruns
4226 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4227 fname and psargs before trying to concatenate.
4228 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4229 "name" before applying strchr.
4231 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4233 * CONTRIBUTE: Use unified diff instead of context diff when
4236 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4238 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4239 code. Handle JR.HB correctly.
4241 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4244 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4245 with the other MIPS16 helpers.
4247 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4249 * observer.sh: Conditionally declare `args', thus cleaning up
4250 unused instances of this variable.
4252 2012-04-24 Yao Qi <yao@codesourcery.com>
4254 Revert this patch to allow breakpoint always-inserted
4256 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4257 * breakpoint.c: Include record.h.
4258 (breakpoints_always_inserted_mode): Return false when the record
4261 * breakpoint.c (iterate_over_bp_locations): New.
4262 * breakpoint.h: Declare.
4263 New typedef walk_bp_location_callback.
4264 * record.c (record_open): Call record_init_record_breakpoints.
4265 (record_sync_record_breakpoints): New.
4266 (record_init_record_breakpoints): New.
4267 * NEWS: Mention supporting breakpoint always-inserted mode in
4270 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4272 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4275 2012-04-24 Yao Qi <yao@codesourcery.com>
4277 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4278 (is_catchpoint): ... it.
4279 (print_one_breakpoint_location): Caller update.
4280 * breakpoint.h: Update declaration.
4282 2012-04-23 David S. Miller <davem@davemloft.net>
4284 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4286 2012-04-23 Tom Tromey <tromey@redhat.com>
4288 * buildsym.c (add_free_pendings): Remove.
4289 * buildsym.h (add_free_pendings): Remove.
4291 2012-04-23 Doug Evans <dje@google.com>
4293 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4294 attr.u.unsnd instead of attr.u.addr.
4295 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4296 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4298 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4299 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4301 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4303 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4305 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4306 (mips_o32_return_value): Likewise.
4307 (mips_o64_return_value): Likewise.
4309 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4311 * ada-lang.c (ada_evaluate_subexp): Add cases for
4312 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4313 their treatment in eval.c.
4315 2012-04-21 David S. Miller <davem@davemloft.net>
4317 * sparc-tdep.c (X_DISP10): Define.
4318 (sparc_analyze_control_transfer): Handle compare-and-branch.
4320 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4322 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4323 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4325 2012-04-20 Nigel Stephens <nigel@mips.com>
4326 Maciej W. Rozycki <macro@codesourcery.com>
4328 * mips-tdep.c (mips_float_register_p): New function.
4329 (mips_convert_register_float_case_p): Use mips_float_register_p.
4330 (mips_register_type): Likewise.
4331 (mips_print_register): Likewise.
4332 (print_gp_register_row): Likewise.
4333 (mips_print_registers_info): Likewise.
4335 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4337 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4340 2012-04-20 Andrew Pinski <apinski@cavium.com>
4342 * MAINTAINERS (Write After Approval): Add myself to the list.
4344 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4346 * MAINTAINERS: Update my e-mail address.
4348 2012-04-20 Pedro Alves <palves@redhat.com>
4350 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4352 * configure: Regenerate.
4354 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4356 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4358 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4360 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4362 Fix compilation compatibility with python-2.4
4363 * python/py-type.c (convert_field): Cast ADDRSTRING for
4364 PyObject_SetAttrString as non-const. New comment.
4366 2012-04-19 Tom Tromey <tromey@redhat.com>
4368 * top.c (quit_target): Use all_cleanups.
4369 * main.c (captured_command_loop): Use all_cleanups.
4370 * exceptions.c (throw_exception): Use all_cleanups.
4372 2012-04-19 Pedro Alves <palves@redhat.com>
4374 * Makefile.in (GNULIB_BUILDDIR): New.
4375 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4376 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4377 (CLEANDIRS). Remove gnulib/import.
4378 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4380 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4381 (gnulib/import/Makefile): Replace gnulib/import with
4382 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4383 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4384 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4385 acx_configure_dir.m4.
4386 * acinclude.m4: Include acx_configure_dir.m4.
4387 * acx_configure_dir.m4: New file.
4388 * aclocal.m4: Regenerate.
4389 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4390 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4391 (GNULIB): New variable.
4392 (GNULIB_STDINT_H): Adjust.
4393 (AC_OUTPUT): Don't output gnulib/Makefile.
4394 * gdb/defs.h: Include build-gnulib/config.h.
4395 * aclocal.m4: Regenerate.
4396 * config.in: Regenerate.
4397 * configure: Regenerate.
4399 * gnulib/Makefile.in: New file.
4400 * gnulib/configure.ac: New file.
4401 * gnulib/aclocal.m4: New file.
4402 * gnulib/config.in: New file.
4403 * gnulib/configure: New file.
4404 * gnulib/: Re-run gnulib-tool to adjust.
4406 2012-04-19 Doug Evans <dje@google.com>
4408 * cleanups.h (struct cleanup): Move to cleanups.c.
4409 (make_cleanup_dtor_ftype): New typedef.
4410 (make_cleanup_dtor): Use it.
4411 (ALL_CLEANUPS): Replace with ...
4412 (all_cleanups): ... this. Declare. All uses updated.
4413 * cleanups.c: #include "gdb_assert.h".
4414 (sentinel_cleanup): New static global.
4415 (SENTINEL_CLEANUP): Define.
4416 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4417 (make_my_cleanup2): Assert result is non-NULL.
4418 (all_cleanups): New function.
4419 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4422 2012-04-19 Pedro Alves <palves@redhat.com>
4424 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4425 Adjust paths to gnulib imported files.
4427 2012-04-19 Pedro Alves <palves@redhat.com>
4429 * gnulib/: Move whole directory ...
4430 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4431 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4432 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4433 (aclocal_m4_deps): Adjust.
4434 * aclocal.m4: Regenerate.
4435 * configure: Regenerate.
4436 * configure.ac: Adjust AC_OUTPUT output.
4438 2012-04-19 Yao Qi <yao@codesourcery.com>
4440 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4442 * vec.c: Move it ...
4443 * common/vec.c: ... here.
4444 * vec.h: Move it ...
4445 * common/vec.h: ... here.
4447 2012-04-19 Yao Qi <yao@codesourcery.com>
4449 * gdb-code-style.el: New.
4451 2012-04-18 Pedro Alves <palves@redhat.com>
4453 Update gnulib from latest git.
4454 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4456 * gnulib/Makefile.am: Update.
4457 * gnulib/dummy.c: Update.
4458 * gnulib/extra/arg-nonnull.h: Update.
4459 * gnulib/extra/c++defs.h: Update.
4460 * gnulib/extra/update-copyright: Update.
4461 * gnulib/extra/warn-on-use.h: Update.
4462 * gnulib/inttypes.in.h: Update.
4463 * gnulib/m4/00gnulib.m4: Update.
4464 * gnulib/m4/extensions.m4: Update.
4465 * gnulib/m4/gnulib-cache.m4: Update.
4466 * gnulib/m4/gnulib-common.m4: Update.
4467 * gnulib/m4/gnulib-comp.m4: Update.
4468 * gnulib/m4/gnulib-tool.m4: Update.
4469 * gnulib/m4/include_next.m4: Update.
4470 * gnulib/m4/inttypes-pri.m4: Update.
4471 * gnulib/m4/inttypes.m4: Update.
4472 * gnulib/m4/longlong.m4: Update.
4473 * gnulib/m4/memchr.m4: Update.
4474 * gnulib/m4/memmem.m4: Update.
4475 * gnulib/m4/mmap-anon.m4: Update.
4476 * gnulib/m4/multiarch.m4: Update.
4477 * gnulib/m4/onceonly.m4: Update.
4478 * gnulib/m4/stddef_h.m4: Update.
4479 * gnulib/m4/stdint.m4: Update.
4480 * gnulib/m4/string_h.m4: Update.
4481 * gnulib/m4/warn-on-use.m4: Update.
4482 * gnulib/m4/wchar_h.m4: Update.
4483 * gnulib/m4/wchar_t.m4: Update.
4484 * gnulib/m4/wint_t.m4: Update.
4485 * gnulib/memchr.c: Update.
4486 * gnulib/memmem.c: Update.
4487 * gnulib/stddef.in.h: Update.
4488 * gnulib/stdint.in.h: Update.
4489 * gnulib/str-two-way.h: Update.
4490 * gnulib/string.in.h: Update.
4491 * gnulib/wchar.in.h: Update.
4493 * gnulib/extra/arg-nonnull.h: Delete.
4494 * gnulib/extra/c++defs.h: Delete.
4495 * gnulib/extra/warn-on-use.h: Delete.
4496 * gnulib/m4/wchar_h.m4: Delete.
4497 * gnulib/m4/wint_t.m4: Delete.
4498 * gnulib/wchar.in.h: Delete.
4500 * gnulib/extra/snippets/arg-nonnull.h: New.
4501 * gnulib/extra/snippets/c++defs.h: New.
4502 * gnulib/extra/snippets/warn-on-use.h: New.
4504 * aclocal.m4: Regenerate.
4505 * config.in: Regenerate.
4506 * configure: Regenerate.
4507 * gnulib/Makefile.in: Regenerate.
4509 2012-04-18 Pedro Alves <palves@redhat.com>
4511 Reimport the update-copyright module from gnulib
4512 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4514 * configure: Regenerate.
4515 * gnulib/Makefile.am: Update.
4516 * gnulib/Makefile.in: Regenerate.
4517 * gnulib/extra/update-copyright: Update.
4518 * gnulib/m4/gnulib-cache.m4: Update.
4519 * gnulib/m4/gnulib-comp.m4: Update.
4521 2012-04-18 Tristan Gingold <gingold@adacore.com>
4523 * configure.ac (aix): Put -lpthread into libs.
4524 * configure: Regenerate.
4526 2012-04-18 Tom Tromey <tromey@redhat.com>
4528 * linespec.c (convert_linespec_to_sals): Don't use
4530 (compare_msymbols): Arguments are minsym_and_objfile, not
4531 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4533 2012-04-18 Pedro Alves <palves@redhat.com>
4535 Revert gnulib/ part of:
4536 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4537 Copyright year update in most files (performed by copyright.sh).
4539 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4541 Fix 64-bit constants on 32-bit hosts.
4542 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4543 from unsigned long to ULONGEST.
4544 (read_signed_leb128): Change declaration return type from long to
4546 (dwarf2_const_value_attr): Change declaration parameter value from long
4548 (dwarf2_compute_name): Change variable value from long to LONGEST.
4549 (read_unsigned_leb128): Change return type, variable result and some
4550 casts from unsigned long to ULONGEST.
4551 (read_signed_leb128): Change return type, variable result and some
4552 casts from long to LONGEST.
4553 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4554 value from long to LONGEST.
4555 (dwarf2_const_value): Change variable value from long to LONGEST.
4556 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4557 plongest and hex_string.
4558 * symtab.h (struct general_symbol_info): Change ivalue from long to
4559 LONGEST, remove the comment.
4560 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4561 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4563 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4566 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4567 * ada-lang.c (ada_discrete_type_high_bound)
4568 (ada_discrete_type_low_bound): Fix function comment. Use
4569 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4570 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4571 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4572 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4573 Use TYPE_FIELD_ENUMVAL.
4574 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4575 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4576 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4577 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4579 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4580 * dwarf2read.c (process_enumeration_scope): Likewise.
4581 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4583 (class StructMainTypePrettyPrinter): Support also
4584 FIELD_LOC_KIND_ENUMVAL.
4585 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4587 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4588 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4589 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4590 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4592 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4593 accommodate enumval.
4594 (struct call_site): Adjust loc_kind to accommodate enumval.
4595 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4596 (TYPE_FIELD_ENUMVAL): New macros.
4597 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4598 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4600 * p-typeprint.c (pascal_type_print_base): Likewise.
4601 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4603 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4604 * python/py-type.c (convert_field): New variable addrstring. Use
4605 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4606 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4607 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4608 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4610 * valprint.c (generic_val_print): Likewise.
4612 2012-04-17 Doug Evans <dje@google.com>
4614 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4616 * dwarf2read.c: Whitespace fixes.
4617 (lookup_signatured_type): Tweak comment.
4618 (get_die_type_at_offset): Fix comment.
4620 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4622 * xcoffread.c (xcoff_secnum_to_sections): New function.
4623 (secnum_to_section, secnum_to_bfd_section): Reimplement
4624 using xcoff_secnum_to_sections. Rename "secnum" parameter
4626 (RECORD_MINIMAL_SYMBOL): Delete.
4627 (record_minimal_symbol): New function.
4628 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4629 by call to record_minimal_symbol and set misc_func_recorded
4630 to 1. Set last_csect_sec to the XCOFF section index instead
4631 of GDB's section_offset index. Update calls to
4632 prim_record_minimal_symbol_and_info to pass the BFD section
4635 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4637 * xcoffread.c (read_xcoff_symtab): Delete variables
4638 last_csect_val and last_csect_sec and associated code.
4640 2012-04-17 Doug Evans <dje@google.com>
4642 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4643 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4644 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4645 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4647 * cleanups.h: New file.
4648 * cleanups.c: New file.
4649 * Makefile.in (SFILES): Add cleanups.c.
4650 (HFILES_NO_SRCDIR): Add cleanups.h.
4651 (COMMON_OBS): Add cleanups.o.
4652 * defs.h (struct cleanup): Moved to cleanups.h.
4653 (do_cleanups,do_final_cleanups): Ditto.
4654 (discard_cleanups,discard_final_cleanups): Ditto
4655 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4656 (save_cleanups,save_final_cleanups): Ditto.
4657 (restore_cleanups,restore_final_cleanups): Ditto.
4658 (null_cleanup): Ditto.
4659 (make_my_cleanup,make_my_cleanup2): Ditto.
4660 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4661 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4662 (do_cleanups,do_final_cleanups): Ditto.
4663 (discard_cleanups,discard_final_cleanups): Ditto
4664 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4665 (save_cleanups,save_final_cleanups): Ditto.
4666 (restore_cleanups,restore_final_cleanups): Ditto.
4667 (null_cleanup): Ditto.
4668 (make_my_cleanup,make_my_cleanup2): Ditto.
4669 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4671 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4673 (make_cleanup_dyn_string_delete): Ditto.
4674 (make_cleanup_ui_file_delete): Ditto.
4675 (make_cleanup_ui_out_redirect_pop): Ditto.
4676 (make_cleanup_free_section_addr_info): Ditto.
4677 (make_cleanup_restore_integer): Ditto.
4678 (make_cleanup_unpush_target): Ditto.
4679 (make_cleanup_value_free_to_mark): Ditto.
4680 (make_cleanup_value_free): Ditto.
4681 (make_cleanup_free_so): Ditto.
4683 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4685 New option "set debug auto-load".
4686 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4687 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4688 (auto_load_safe_path_vec_update)
4689 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4691 (file_is_auto_load_safe): New parameters debug_fmt and ....
4692 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4693 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4694 caller by explanatory string.
4695 (_initialize_auto_load): Register "set debug auto-load".
4696 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4698 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4699 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4700 by explanatory string.
4701 * main.c (captured_main): Likewise.
4702 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4703 (source_section_scripts): Likewise.
4705 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4707 New option "set auto-load safe-path".
4708 * NEWS: New commands "set auto-load safe-path"
4709 and "show auto-load safe-path".
4710 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4711 (auto_load_safe_path, auto_load_safe_path_vec)
4712 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4713 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4714 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4715 (source_gdb_script_for_objfile): New variable is_safe. Call
4716 file_is_auto_load_safe. Return if it is not.
4717 (struct loaded_script): New field loaded.
4718 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4719 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4720 output "Missing" to "No".
4721 (_initialize_auto_load): New variable cmd. Initialize
4722 auto_load_safe_path. Register "set auto-load safe-path",
4723 "show auto-load safe-path" and "add-auto-load-safe-path".
4724 * auto-load.h (maybe_add_script): Add parameter loaded.
4725 (file_is_auto_load_safe): New declaration.
4726 * config.in: Regenerate.
4727 * configure: Regenerate.
4728 * configure.ac: New parameters --with-auto-load-safe-path
4729 and --without-auto-load-safe-path.
4730 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4731 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4732 * main.c (captured_main): Check file_is_auto_load_safe for
4734 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4735 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4736 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4739 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4741 auto-load: Implementation.
4742 * NEWS: New descriptions for "info auto-load",
4743 "info auto-load gdb-scripts", "info auto-load python-scripts",
4744 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4745 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4746 and "show auto-load-scripts". New description for "set auto-load",
4747 "show auto-load", "set auto-load gdb-scripts",
4748 "show auto-load gdb-scripts", "set auto-load python-scripts",
4749 "show auto-load python-scripts", "set auto-load local-gdbinit",
4750 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4751 "show auto-load libthread-db".
4752 * auto-load.c: Remove include python/python-internal.h. Add includes
4753 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4755 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4756 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4757 (gdbpy_global_auto_load): Rename to ...
4758 (global_auto_load): ... here.
4759 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4760 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4761 (script_language_gdb, source_gdb_script_for_objfile): New.
4762 (struct loaded_script): New field language.
4763 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4765 (maybe_add_script): Add parameter language. Drop redundant
4766 entry.full_path initialization. Initialize entry.language and
4768 (auto_load_objfile_script): Change parameter suffix to language.
4769 Remove the call of maybe_add_script.
4770 Call language->source_script_for_objfile.
4771 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4773 (collect_matching_scripts): Adjust it for
4774 struct collect_matching_scripts_data.
4775 (auto_load_info_scripts_pattern_nl): New variable.
4776 (info_auto_load_scripts): Rename to ...
4777 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4778 for struct collect_matching_scripts_data.
4779 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4780 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4781 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4782 (auto_load_info_cmdlist_get): New.
4783 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4784 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4785 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4786 "info auto-load local-gdbinit".
4787 * auto-load.h (struct script_language): New.
4788 (gdbpy_global_auto_load): Rename to ...
4789 (global_auto_load): ... here.
4790 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4791 (auto_load_local_gdbinit_loaded): New declarations.
4792 (maybe_add_script): New parameter language.
4793 (auto_load_objfile_script): Change parameter suffix to language.
4794 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4795 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4796 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4798 * linux-thread-db.c: Include auto-load.h and ctype.h.
4799 (auto_load_thread_db, show_auto_load_thread_db): New.
4800 (struct thread_db_info): New field filename.
4801 (delete_thread_db_info): Call xfree for FILENAME.
4802 (try_thread_db_load): Initialize FILENAME.
4803 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4804 if !AUTO_LOAD_THREAD_DB.
4805 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4806 (_initialize_thread_db): Install auto_load_thread_db
4807 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4808 as "info auto-load libthread-db".
4809 * main.c (captured_main): Rename gdbpy_global_auto_load to
4810 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4811 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4812 (print_gdb_help): Extend the help for 'local init file'.
4813 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4814 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4815 (auto_load_scripts): Rename to ...
4816 (auto_load_python_scripts): ... here, update the comment.
4817 (gdbpy_load_auto_script_for_objfile): New declaration.
4818 (show_auto_load_python_scripts, script_language_python)
4819 (gdbpy_load_auto_script_for_objfile): New.
4820 (source_section_scripts): Refactor the code.
4821 (load_auto_scripts_for_objfile): Rename to ...
4822 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4823 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4824 (info_auto_load_python_scripts): New.
4825 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4826 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4827 Register "set auto-load-scripts" as its deprecated alias. Register
4828 "info auto-load python-scripts". Register "info auto-load-scripts" as
4829 its deprecated alias.
4830 (load_auto_scripts_for_objfile): Rename to ...
4831 (gdbpy_load_auto_scripts_for_objfile): ... here.
4832 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4833 (gdbpy_load_auto_scripts_for_objfile): ... here.
4835 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4837 auto-load: Move files.
4838 * Makefile.in (SFILES): Add auto-load.c.
4839 (HFILES_NO_SRCDIR): Add auto-load.h.
4840 (COMMON_OBS): Add auto-load.o.
4841 (distclean): Change .gdbinit for gdb-gdb.gdb.
4842 * auto-load.c: New file, with parts from python/py-auto-load.c.
4843 * auto-load.h: New file, with parts from python/python.h.
4844 * configure: Regenerate.
4845 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4846 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4847 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4848 * main.c: Include auto-load.h.
4849 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4850 command.h, observer.h and progspace.h to auto-load.c. Add include
4852 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4853 (struct loaded_script, auto_load_pspace_data)
4854 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4855 (hash_loaded_script_entry, eq_loaded_script_entry)
4856 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4857 (maybe_add_script): Move to auto-load.c.
4858 (source_section_scripts): Change maybe_add_script parameters passing,
4859 use script_not_found_warning_print.
4860 (clear_section_scripts, auto_load_objfile_script)
4861 (auto_load_new_objfile, loaded_script_ptr)
4862 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4863 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4864 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4865 auto_load_new_objfile and info_auto_load_scripts initizations to
4867 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4869 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4872 * charset.c (find_charset_names): Remove variables ix and elt.
4873 Use free_char_ptr_vec.
4874 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4875 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4876 debugdir_end. New variable debugdir_len.
4877 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4878 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4880 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4881 and elt. Use free_char_ptr_vec.
4882 * source.c (add_path): Remove variables argv, arg and argv_index.
4883 New variables dir_vec, back_to, ix and name.
4884 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4885 make_cleanup_freeargv. Remove variable separator. Simplify the code
4886 no longer expecting DIRNAME_SEPARATOR.
4887 (openp): Remove variable p, p1 and len. New variables dir_vec,
4888 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4889 no longer expecting DIRNAME_SEPARATOR.
4890 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4891 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4893 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4894 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4895 (dirnames_to_char_ptr_vec): New functions.
4897 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4900 * source.c (add_path): Remove always true conditional 'p == 0' and
4901 unindent its code block.
4903 2012-04-17 Pedro Alves <palves@redhat.com>
4905 * gdbtypes.h (FIELD_BITPOS): Rename to ...
4906 (FIELD_BITPOS_LVAL): ... this.
4907 (FIELD_BITPOS): New.
4908 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4909 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
4910 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
4912 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
4914 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
4915 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
4916 * target-descriptions.c (tdesc_gdb_type): Adjust to use
4919 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4921 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
4922 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
4923 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
4924 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
4925 * jv-lang.c (java_link_class_type): Likewise, once.
4926 * stabsread.c (read_enum_type): Likewise.
4928 2012-04-16 Yao Qi <yao@codesourcery.com>
4930 * common/agent.c (agent_run_command): Add one more parameter `len'.
4932 * common/agent.h: Update declaration.
4933 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4935 (linux_child_static_tracepoint_markers_by_strid): Ditto.
4937 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
4940 * value.c (value_actual_type): New function.
4941 * value.h (value_actual_type): New declaration.
4942 * varobj.c (update_type_if_necessary): New function.
4943 (varobj_create): Call value_actual_type instead of
4945 (install_dynamic_child): distinct changed and type changed MI variable
4947 (update_dynamic_varobj_children): Updated for install_dynamic_child
4948 change. All callers updated.
4949 (varobj_update): Support for MI variable object type change if
4950 the value changed and RTTI is used to determine the type.
4951 (create_child_with_value): Call value_actual_type instead of
4953 (adjust_value_for_child_access): Extended with a new parameter which
4954 specify whether the given value should be casted to enclosing type.
4955 All callers updated.
4957 2012-04-14 Yao Qi <yao@codesourcery.com>
4959 Import gnulib module inttypes from git
4960 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4961 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
4962 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
4963 gnulib/m4/inttypes-pri.m4
4964 * aclocal.m4, config.in, configure: Regenerated.
4965 * gnulib/Makefile.am: Update.
4966 * gnulib/Makefile.in: Update.
4967 * gnulib/m4/gnulib-cache.m4: Update.
4968 * gnulib/m4/gnulib-comp.m4: Update.
4969 * gnulib/inttypes.in.h: New.
4970 * gnulib/m4/inttypes-pri.m4: New.
4971 * gnulib/m4/inttypes.m4: New.
4973 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
4975 * infrun.c (resume): Update PC address to the real PC after
4976 preparing to do displaced stepping.
4978 2012-04-12 Doug Evans <dje@google.com>
4980 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
4981 All callers updated.
4983 2012-04-12 Mark Kettenis <kettenis@gnu.org>
4985 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
4987 2012-04-12 Doug Evans <dje@google.com>
4989 * dwarf2read.c (create_all_type_units): Renamed from
4990 create_debug_types_hash_table. All callers updated.
4992 * dwarf2read.c (create_signatured_type_table_from_index): Rename
4993 local type_sig to sig_type, type_offset to type_offset_in_tu.
4994 (hash_signatured_type): Renamed from hash_type_signature,
4995 all callers updated.
4996 (eq_signatured_type): Renamed from eq_type_signature,
4997 all callers updated.
4998 (create_debug_types_hash_table): Rename local type_sig to sig_type.
4999 (process_enumeration_scope): Ditto.
5000 (lookup_signatured_type_at_offset): Ditto.
5001 (load_full_type_unit, read_signatured_type): Ditto.
5003 2012-04-12 Yao Qi <yao@codesourcery.com>
5005 * remote.c (async_remote_interrupt): Correct function name in
5007 (async_remote_interrupt_twice): Ditto.
5009 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
5011 * source.c (find_and_open_source): Consistently pass resulting
5012 full path through xfullpath.
5014 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5016 Provide more specific displaced-stepping memory error message.
5017 * infrun.c (displaced_step_prepare): New variable status. Call
5018 target_read_memory instead of read_memory, provide more specific
5021 2012-04-11 Tristan Gingold <gingold@adacore.com>
5024 * darwin-nat.c (darwin_execvp): Revert previous patch.
5026 2012-04-11 Tristan Gingold <gingold@adacore.com>
5029 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
5032 2012-04-11 Tristan Gingold <gingold@adacore.com>
5034 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5037 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
5039 New command 'explore' which helps explore values and types in
5041 * NEWS: Add an entry about the new 'explore' command.
5042 * data-directory/Makefile.in: Add gdb/command/explore.py
5043 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
5044 command using the GDB Python API.
5046 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5048 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
5049 extension in jump target calculation.
5051 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5053 * mips-tdep.c (mips32_next_pc): Handle JALX.
5055 2012-04-10 Yao Qi <yao@codesourcery.com>
5057 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
5059 2012-04-10 Yao Qi <yao@codesourcery.com>
5061 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
5062 and gnulib/m4/gnulib-tool.m4.
5064 2012-04-10 Doug Evans <dje@google.com>
5066 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
5067 (load_partial_dies): Clarify comment.
5068 (find_partial_die): Support rereading type units.
5069 Clarify CU handling, if we know offset is in CU, don't search for the
5070 containing CU. Add comment regarding memory waste.
5072 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
5074 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5075 i386/x32-avx and i386/x32-avx-linux.
5076 (i386/x32-expedite): New.
5077 (i386/x32-linux-expedite): Likewise.
5078 (i386/x32-avx-expedite): Likewise.
5079 (i386/x32-avx-linux-expedite): Likewise.
5080 ($(outdir)/i386/x32.dat): Likewise.
5081 ($(outdir)/i386/x32-linux.dat): Likewise.
5082 ($(outdir)/i386/x32-avx.dat): Likewise.
5083 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5085 * features/i386/x32-avx-linux.xml: New file.
5086 * features/i386/x32-avx.xml: Likewise.
5087 * features/i386/x32-core.xml: Likewise.
5088 * features/i386/x32-linux.xml: Likewise.
5089 * features/i386/x32.xml: Likewise.
5091 * features/i386/x32-avx-linux.c: New. Generated.
5092 * features/i386/x32-avx.c: Likewise.
5093 * features/i386/x32-linux.c: Likewise.
5094 * features/i386/x32.c: Likewise.
5095 * regformats/i386/x32-avx-linux.dat: Likewise.
5096 * regformats/i386/x32-avx.dat: Likewise.
5097 * regformats/i386/x32-linux.dat: Likewise.
5098 * regformats/i386/x32.dat: Likewise.
5100 2012-04-10 Tristan Gingold <gingold@adacore.com>
5102 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5103 code to kill the inferior.
5105 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5107 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5109 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5111 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5112 (yyvsp): New defines.
5113 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5115 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5117 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5119 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5121 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5124 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5126 * sparc64-tdep.c (sparc64_store_arguments)
5127 (sparc64_store_arguments): Fix coding style.
5129 2012-04-07 Mark Kettenis <kettenis@gnu.org>
5131 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5132 complex floats, adjust some related comments and tighten a related
5134 (sparc64_extract_return_value): Handle complex floats.
5136 2012-04-07 Doug Evans <dje@google.com>
5138 * dwarf2read.c (load_partial_dies): Change condition to assert.
5140 2012-04-06 Doug Evans <dje@google.com>
5142 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5145 2012-04-05 Kevin Buettner <kevinb@redhat.com>
5147 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5149 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5150 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5153 2012-04-05 Keith Seitz <keiths@redhat.com>
5155 * linespec.c (decode_compound): Remove.
5156 (enum offset_relative_sign): New enum.
5157 (struct line_offset): New struct.
5158 (struct linespec): New struct.
5159 (struct linespec_state): Move file_symtabs,
5160 user_filename, and user_function into struct linespec.
5161 Make result an anonymous struct holding vectors of
5162 symbolp and minsym_and_objfile_d.
5163 Add language member.
5164 (enum ls_token_type): New enum.
5165 (linespec_keywords): New array.
5166 (struct ls_token): New struct.
5167 (struct ls_parser): New struct.
5168 (linespec_lexer_lex_number): New function.
5169 (linespec_lexer_lex_keyword): New function.
5170 (is_ada_operator): New function.
5171 (skip_quote_char): New function.
5172 (copy_token_string): New function.
5173 (is_closing_quote_enclosed): New function.
5174 (find_parameter_list_end): New function.
5175 (linespec_lexer_lex_string): New function.
5176 (linespec_lexer_lex_one): New function.
5177 (linespec_lexer_consume_token): New function.
5178 (linespec_lexer_peek_token): New function.
5179 (cplusplus_error): Remove unused function.
5180 (find_methods): Update comment.
5181 (find_toplevel_char): Return const.
5182 (is_objc_method_format): Remove unused function.
5183 (find_toplevel_string): New function.
5184 (is_linespec_boundary): Remove.
5185 (symbol_not_found_error): New function.
5186 (find_method_overload_end): Remove function.
5187 (unexpected_linespec_error): New function.
5188 (keep_name_info): Remove.
5189 (linespec_parse_line_offset): New function.
5190 (linespec_parse_basic): New function.
5191 (canonicalize_linespec): New function.
5192 (decode_line_internal): Remove.
5193 (create_sals_line_offset): New function adapted from
5195 (convert_linespec_to_sals): New function.
5196 (parse_linespec): New function.
5197 (linespec_parser_new): New function.
5198 (linespec_state_destructor): Change parameter type to
5199 struct linespec_state *.
5200 Add language parameter.
5201 Remove freeing of moved members.
5202 (linespec_parser_delete): New function.
5203 (decode_line_full): Use parse_linespec and linespec_parser_new.
5204 (decode_line_1): Likewise.
5205 (decode_indirect): Rename to ...
5206 (linespec_expression_to_pc): ... this and rewrite
5207 to simply find CORE_ADDR, storing this result for later
5209 (locate_first_half): Remove.
5210 (deocde_objc): Add parameter LS.
5211 Initialize new struct collect_info members.
5212 Handle minimal symbols, too.
5213 (decode_compound): Delete.
5214 (lookup_prefix_sym): Rewrite.
5215 (compare_msymbols): New function.
5216 (find_method): Rewrite.
5217 Do not call cplusplus_error.
5218 (symtabs_from_filename): Rewrite.
5219 (collect_function_symbols): Delete.
5220 (find_function_symbols): Rewrite without ARGPTR-style
5222 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5223 (decode_dollar): Adapted and renamed to ...
5224 (linespec_parse_variable): ... this.
5225 (find_linespec_symbols): New function.
5226 (decode_label): Adapted and renamed to ...
5227 (find_label_symbols): ... this.
5228 (decode_digits_list_mode): Add and use LS argument.
5229 (decode_digits_ordinary): Likewise.
5230 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5231 If in list mode, allow any symbol class. Otherwise, only
5232 permit LOC_BLOCK symbols.
5233 (minsym_found): Update comments.
5234 (search_minsyms_for_name): Do not convert the matching symbol
5235 into a SAL. Simply push the symbol and objfile into the
5237 (decode_variable): Delete. Contents adapted into
5238 find_linespec_symbols.
5240 * cp-support.c (SKIP_SPACE): Remove.
5241 (operator_tokens): Remove unused global.
5242 (cp_validate_operator): Remove.
5243 * cp-support.h (cp_validate_operator): Remove declaration.
5245 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5247 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5248 for TYPE_VPTR_FIELDNO.
5249 * valprint.c (valprint_check_validity): Make it global, move the
5250 function comment ...
5251 * value.h (valprint_check_validity): ... to this new declaration.
5253 2012-04-02 Tristan Gingold <gingold@adacore.com>
5255 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5256 the STATE32 api for i386 state.
5257 (i386_darwin_store_inferior_registers): Likewise.
5259 2012-04-02 Tristan Gingold <gingold@adacore.com>
5261 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5263 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5266 2012-04-02 Tristan Gingold <gingold@adacore.com>
5269 * darwin-nat.c (darwin_execvp): Set binary preference.
5271 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5273 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5275 2012-03-30 Tom Tromey <tromey@redhat.com>
5277 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5278 of TRY_CATCH. Fix error handling.
5279 * python/py-value.c (convert_value_from_python): Move 'old'
5280 declaration to innermost scope.
5282 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5283 Andrey Smirnov <andrew.smirnov@gmail.com>
5285 -Wshadow warning fix.
5286 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5287 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5288 Adjust code accordingly.
5290 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5292 * ada-lang.c (symbol_completion_add): Rename parameter
5293 "encoded" into "encoded_p". Ajust code and 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 (symbol_completion_add): Rename parameter
5301 "wild_match" into wild_match_p. Update code and documentation
5304 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5306 * ada-lang.c (symbol_completion_match): Rename parameter
5307 "encoded" into "encoded_p". Ajust code and documentation
5310 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5311 Andrey Smirnov <andrew.smirnov@gmail.com>
5313 -Wshadow warning fix.
5314 * ada-lang.c (symbol_completion_match): Rename parameter
5315 "wild_match" into "wild_match_p". Adjust code and function
5316 documentation accordingly.
5318 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5319 Andrey Smirnov <andrew.smirnov@gmail.com>
5321 -Wshadow warning fix.
5322 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5323 "symbol_info" into "info". Adjust code accordingly.
5324 (ada_lookup_symbol): Likewise.
5326 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5328 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5329 of this function's documentation.
5331 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5332 Andrey Smirnov <andrew.smirnov@gmail.com>
5334 -Wshadow warning fix.
5335 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5336 variable into "wild_match_p". Adjust code accordingly.
5338 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5339 Andrey Smirnov <andrew.smirnov@gmail.com>
5341 -Wshadow warning fix.
5342 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5343 parameter into "wild_match_p". Adjust code accordingly.
5344 Document this parameter in the function description.
5346 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5347 Andrey Smirnov <andrew.smirnov@gmail.com>
5349 -Wshadow warning fix.
5350 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5351 "wild_match" parameter to "wild_match_p" (-Wshadow).
5353 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5355 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5356 in function documentation.
5358 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5359 Andrey Smirnov <andrew.smirnov@gmail.com>
5361 -Wshadow warning fix.
5362 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5363 variable into wild_match_p. Adjust code accordingly.
5365 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5366 Andrey Smirnov <andrew.smirnov@gmail.com>
5368 * ada-valprint.c (ada_val_print_1): Move the code handling
5369 TYPE_CODE_ENUM inside its own lexical block. Declare
5370 variables len and val there, instead of in the function's
5371 top level block. Avoid declaring deref_val again in a way
5372 that shadows another variable of the same name declared
5373 in one of the up-level blocks. Just re-use the up-level
5376 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5378 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5379 Replace block_found argument by symbol_info. Adjust
5380 implementation accordingly. Add function documentation.
5381 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5383 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5384 * ada-exp.y (write_object_renaming): Adjust to new
5385 ada_lookup_encoded_symbol API.
5387 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5389 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5392 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5394 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5395 (v850_register_name): Add the mpu and fpu register names.
5396 (v850e_register_name): Add the mpu and fpu register names.
5397 (v850e2_register_name): New function.
5398 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5401 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5403 * NEWS: Add entry for Ada varobj support.
5405 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5407 * varobj.c (default_value_is_changeable_p): New function,
5408 extracted from varobj_value_is_changeable_p. Add declaration.
5409 (ada_value_is_changeable_p): New function, extracted from
5410 varobj_value_is_changeable_p. Add declaration.
5411 (struct language_specific): New field "value_is_changeable_p".
5412 (languages): Add entries for new field.
5413 (varobj_create): Set language before calling install_new_value.
5414 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5415 "value_is_changeable_p" language callback.
5417 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5419 * ada-varobj.h, ada-varobj.c: New files.
5420 * Makefile.in (SFILES): Add ada-varobj.c.
5421 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5422 (COMMON_OBS): Add ada-varobj.o.
5424 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5426 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5427 (struct language_specific): New field "value_has_mutated".
5428 (languages): Set field "value_has_mutated" in each entry of array.
5429 (varobj_value_has_mutated): New function.
5430 (varobj_udpdate): Add handling of type mutation.
5431 (value_of_root): Add handling of type mutation.
5432 (ada_value_has_mutated): New function.
5434 2012-03-28 Pedro Alves <palves@redhat.com>
5436 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5437 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5439 2012-03-28 Tom Tromey <tromey@redhat.com>
5441 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5442 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5445 2012-03-28 Tom Tromey <tromey@redhat.com>
5447 * .dir-locals.el: New file.
5449 2012-03-28 Pedro Alves <palves@redhat.com>
5451 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5453 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5455 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5458 2012-03-27 Pedro Alves <palves@redhat.com>
5460 Eliminate struct ui_stream.
5462 * ui-out.h (struct ui_stream): Delete.
5463 (ui_out_field_stream): Adjust prototype.
5464 (ui_out_stream_new, ui_out_stream_delete)
5465 (make_cleanup_ui_out_stream_delete): Delete declarations.
5466 * ui-out.c (ui_out_field_stream): Change prototype to take a
5467 ui_file instead of a ui_stream. Adjust.
5468 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5469 (make_cleanup_ui_out_stream_delete): Delete.
5470 * breakpoint.c (print_breakpoint_location)
5471 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5472 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5473 * disasm.c (dump_insns): Ditto.
5474 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5476 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5477 ui_stream/ui_out_stream_new.
5478 * infcmd.c (print_return_value): Ditto.
5479 * osdata.c (info_osdata_command): Don't allocate a local
5481 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5482 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5483 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5484 allocate a local ui_stream.
5485 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5486 instead of ui_stream/ui_out_stream_new.
5487 (list_args_or_locals): Don't allocate a local ui_stream.
5488 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5489 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5490 ui_stream/ui_out_stream_new.
5491 * cli/cli-setshow.c (do_setshow_command): Ditto.
5493 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5495 * arm-linux-tdep.c (arm_linux_init_abi): Call
5496 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5497 * arm-tdep.c (arm_process_record): New function.
5498 (deallocate_reg_mem): New function.
5499 (decode_insn): New function.
5500 (thumb_record_branch): New function.
5501 (thumb_record_ldm_stm_swi(): New function.
5502 (thumb_record_misc): New function.
5503 (thumb_record_ld_st_stack): New function.
5504 (thumb_record_ld_st_imm_offset): New function.
5505 (thumb_record_ld_st_reg_offset(): New function.
5506 (thumb_record_add_sub_cmp_mov): New function.
5507 (thumb_record_shift_add_sub): New function.
5508 (arm_record_coproc_data_proc): New function.
5509 (arm_record_coproc): New function.
5510 (arm_record_b_bl): New function.
5511 (arm_record_ld_st_multiple): New function.
5512 (arm_record_ld_st_reg_offset): New function.
5513 (arm_record_ld_st_imm_offset): New function.
5514 (arm_record_data_proc_imm): New function.
5515 (arm_record_data_proc_misc_ld_str): New function.
5516 (arm_record_extension_space): New function.
5517 (arm_record_strx): New function.
5518 (sbo_sbz): New function.
5519 (struct insn_decode_record): New structure for arm insn record.
5520 (REG_ALLOC): New macro for reg allocations.
5521 (MEM_ALLOC): New macro for memory allocations.
5522 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5524 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5526 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5527 (store_register): Likewise.
5529 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5531 * MAINTAINERS (Write After Approval): Add myself to the list.
5533 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5535 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5536 Describe also the option "auto".
5538 2012-03-22 Richard Henderson <rth@redhat.com>
5540 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5541 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5543 2012-03-22 Richard Henderson <rth@redhat.com>
5545 * jit.c (jit_read_code_entry): Compute alignment and offset of
5546 int64_t member before computing entry_size.
5548 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5550 Python scripting: Add new method Value.referenced_value to
5551 gdb.Value which can dereference pointer as well as reference
5553 * NEWS: Add entry under 'Python scripting' about the new method
5554 Value.referenced_value on gdb.Value objects.
5555 * python/py-value.c (valpy_referenced_value): New function
5556 defining a new method on gdb.Value objects which can dereference
5557 pointer and reference values.
5559 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5561 * MAINTAINERS (Write After Approval): Add myself to the list.
5563 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5565 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5566 in addition to "main".
5568 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5570 * expression.h (op_name): Add declaration.
5571 * expprint.c (op_name): Remove declaration. Make non-static.
5572 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5574 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5576 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5578 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5579 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5580 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5581 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5582 (linux_nat_get_siginfo): Likewise.
5583 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5584 (linux_nat_get_siginfo): Likewise.
5585 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5586 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5587 * procfs.c (gdb_siginfo_t): Likewise.
5589 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5591 * .gitignore: Ignore more files.
5593 2012-03-20 Pedro Alves <palves@redhat.com>
5595 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5598 2012-03-20 Yao Qi <yao@codesourcery.com>
5600 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5603 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5605 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5606 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5607 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5609 * dwarf2expr.h (cu_offset, sect_offset): New types.
5610 (struct dwarf_expr_context_funcs) <dwarf_call>
5611 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5613 (struct dwarf_expr_context) <len>: Improve the comment.
5614 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5615 cu_offset and sect_offset.
5616 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5617 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5618 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5619 * dwarf2loc.h: Include dwarf2expr.h.
5620 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5622 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5623 Improve the comment.
5624 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5625 (struct signatured_type, struct line_header, struct partial_die_info)
5626 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5627 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5628 (get_die_type_at_offset, create_cus_from_index)
5629 (create_signatured_type_table_from_index, dw2_get_file_names)
5630 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5631 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5632 (create_debug_types_hash_table, process_psymtab_comp_unit)
5633 (load_partial_comp_unit, create_all_comp_units)
5634 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5635 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5636 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5637 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5638 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5639 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5640 (find_partial_die, read_attribute_value, lookup_die_type)
5641 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5642 (is_ref_attr): New function comment.
5643 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5644 Use cu_offset and sect_offset.
5645 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5646 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5647 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5648 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5649 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5650 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5651 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5654 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5657 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5658 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5660 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5662 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5664 * NEWS: Describe new options --init-command=FILE, -ix and
5665 --init-eval-command=COMMAND, -iex.
5666 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5667 CMDARG_INIT_COMMAND.
5668 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5669 "init-command", "init-eval-command", "ix" and "iex" to the variable
5670 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5671 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5672 (print_gdb_help): Describe --init-command=FILE, -ix and
5673 --init-eval-command=COMMAND, -iex.
5675 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5678 * main.c (struct cmdarg): Move it here from main. Add more comments.
5679 (cmdarg_s, VEC (cmdarg_s)): New.
5680 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5681 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5682 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5683 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5686 2012-03-19 Tom Tromey <tromey@redhat.com>
5688 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5690 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5693 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5696 2012-03-16 Chris January <chris.january@allinea.com>
5698 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5701 2012-03-16 Chris January <chris.january@allinea.com>
5703 * source.c (add_path): Use memmove instead of strcpy because the
5706 2012-03-16 Joel Brobecker <brobecker@adacore.com>
5708 * value.h (set_value_parent): Add declaration.
5709 * value.c (set_value_parent): New function.
5710 (value_address): If VALUE->PARENT is not NULL, then use it as
5711 the base address instead of VALUE->LOCATION.address.
5712 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5713 the same as OBJ's address. Adjust V's offset accordingly.
5716 2012-03-16 Gary Benson <gbenson@redhat.com>
5718 PR breakpoints/10738
5719 * dwarf2read.c (use_deprecated_index_sections): New global.
5720 (struct partial_die_info): New member may_be_inlined.
5721 (read_partial_die): Set may_be_inlined where appropriate.
5722 (add_partial_subprogram): Add partial symbols for partial
5723 DIEs that may be inlined.
5724 (new_symbol_full): Add inlined subroutines to the current
5726 (write_psymtabs_to_index): Bump version number.
5727 (dwarf2_read_index): Read only version 6 indices unless
5728 use_deprecated_index_sections is set.
5729 * linespec.c (symbol_and_data_callback): New structure.
5730 (iterate_inline_only): New function.
5731 (iterate_over_all_matching_symtabs): New argument
5732 "include_inline". If nonzero, also call the callback for
5733 symbols representing inlined subroutines.
5734 (lookup_prefix_sym): Pass extra argument to the above.
5735 (find_function_symbols): Likewise.
5736 (add_matching_symbols_to_info): Likewise.
5737 * NEWS: Mention that GDB can now set breakpoints on inlined
5740 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5742 * p-typeprint.c (pascal_type_print_method_args):
5743 Fix display of parameter of methods.
5745 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5747 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5748 Add missing prototype.
5750 2012-03-16 Yao Qi <yao@codesourcery.com>
5751 Jan Kratochvil <jan.kratochvil@redhat.com>
5753 Fix false compilation warning.
5754 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5756 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5757 Pedro Alves <pedro@codesourcery.com>
5759 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5760 (arm_register_g_packet_guesses): New function.
5761 (arm_gdbarch_init): Don't force a target description with
5762 registers when the executable is detected as M-profile. Instead
5763 set gdbarch->tdep->is_m. Register `g' packet guesses.
5764 (_initialize_arm_tdep): Initialize the new target description.
5765 * features/arm-with-m-fpa-layout.xml: New description.
5766 * features/arm-with-m-fpa-layout.c: New, generated.
5768 2012-03-15 Joel Brobecker <brobecker@adacore.com>
5770 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5771 Update function description.
5772 (insert_bp_location): Do not wipe bl->target_info out.
5773 * mem-break.c: #include "gdb_string.h".
5774 (default_memory_insert_breakpoint): Do not call target_read_memory
5775 with a pointer to the breakpoint's shadow_contents buffer. Use
5776 a local buffer instead.
5777 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5779 2012-03-15 Tom Tromey <tromey@redhat.com>
5781 * NEWS: Mention "info vtbl", not "info vtable".
5782 * cp-support.c (info_vtbl_command): Fix comment.
5783 (_initialize_cp_support): Fix text.
5785 2012-03-15 Tom Tromey <tromey@redhat.com>
5787 * cp-valprint.c (cp_print_value_fields): Use
5788 print_function_pointer_address for vtable slot.
5790 2012-03-15 Tom Tromey <tromey@redhat.com>
5792 * gnu-v3-abi.c (struct value_and_voffset): New.
5793 (hash_value_and_voffset, eq_value_and_voffset)
5794 (compare_value_and_voffset, compute_vtable_size)
5795 (print_one_vtable, gnuv3_print_vtable): New functions.
5796 (init_gnuv3_ops): Initialize 'print_vtable' field.
5797 * cp-support.c (info_vtbl_command): New function.
5798 (_initialize_cp_support): Add "info vtbl".
5799 * cp-abi.h (cplus_print_vtable): Declare.
5800 (struct cp_abi_ops) <print_vtable>: New field.
5801 * cp-abi.c (cplus_print_vtable): New function.
5804 2012-03-15 Tom Tromey <tromey@redhat.com>
5806 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5807 iterate_over_symbols.
5809 2012-03-14 Doug Evans <dje@google.com>
5811 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5812 DW_OP_GNU_parameter_ref.
5814 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5816 Fix double prompt of 'interpreter-exec mi'.
5817 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5818 (mi_interpreter_resume): use it.
5819 (mi_execute_command_input_handler): New function.
5820 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5821 mi_execute_command_input_handler.
5823 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
5825 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5827 (darwin_debug_port_info): Make static.
5828 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5829 * machoread.c (_initialize_machoread): Add prototype.
5830 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5831 (i386_darwin_set_control, i386_darwin_get_control)
5832 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5833 i386_darwin_get_status, i386_darwin_get_control):
5834 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5836 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5838 * ax-gdb.c (gen_usual_unary): Remove special handling of
5839 enum and bool types.
5841 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5843 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5845 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5847 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5849 2012-03-13 Chris January <chris.january@allinea.com>
5851 * aix-thread.c (fill_sprs): Store the floating point registers
5852 at the correct offsets into vals.
5854 2012-03-13 Doug Evans <dje@google.com>
5856 * NEWS: Mention symbol-reloading has been deleted.
5857 * symfile.c (symbol_reloading): Delete.
5858 (show_symbol_reloading): Delete.
5859 (_initialize_symfile): Delete set/show symbol-reloading.
5861 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5862 read_in_chain until we have successfully read it in.
5863 (load_full_comp_unit): Ditto.
5864 (read_signatured_type): Add comment.
5866 2012-03-13 Chris January <chris.january@allinea.com>
5868 * stabsread.c (fix_common_block): Change type of valu argument
5871 2012-03-13 Chris January <chris.january@allinea.com>
5873 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5876 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5878 * common/linux-procfs.c (linux_proc_get_int): New, from
5879 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5881 (linux_proc_get_tgid): Only call linux_proc_get_int.
5882 (linux_proc_get_tracerpid): New.
5883 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5884 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5885 linux_proc_pid_has_state.
5886 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5887 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5888 (linux_ptrace_attach_warnings): New.
5889 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5891 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5892 (linux_nat_attach): New variables ex, buffer, message and message_s.
5893 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5895 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5897 * Makefile.in (linux-ptrace.o): New.
5898 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5900 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5901 * common/linux-ptrace.c: New file.
5902 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5903 * config/arm/linux.mh: Likewise.
5904 * config/i386/linux.mh: Likewise.
5905 * config/i386/linux64.mh: Likewise.
5906 * config/ia64/linux.mh: Likewise.
5907 * config/m32r/linux.mh: Likewise.
5908 * config/m68k/linux.mh: Likewise.
5909 * config/mips/linux.mh: Likewise.
5910 * config/pa/linux.mh: Likewise.
5911 * config/powerpc/linux.mh: Likewise.
5912 * config/powerpc/ppc64-linux.mh: Likewise.
5913 * config/powerpc/spu-linux.mh: Likewise.
5914 * config/s390/s390.mh: Likewise.
5915 * config/sparc/linux.mh: Likewise.
5916 * config/sparc/linux64.mh: Likewise.
5917 * config/xtensa/linux.mh: Likewise.
5918 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
5919 common/linux-procfs.c.
5920 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
5922 2012-03-13 Hui Zhu <teawater@gmail.com>
5923 Pedro Alves <palves@redhat.com>
5925 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
5926 CREATE_BREAKPOINT_FLAGS_INSERTED.
5927 (create_breakpoint_sal, create_breakpoints_sal)
5928 (base_breakpoint_create_breakpoints_sal)
5929 (tracepoint_create_breakpoints_sal)
5930 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
5932 (break_command_1, handle_gnu_v3_exceptions, trace_command)
5933 (ftrace_command, strace_command): Adjust.
5934 (create_tracepoint_from_upload): Pass
5935 CREATE_BREAKPOINT_FLAGS_INSERTED.
5936 * breakpoint.h (enum breakpoint_create_flags): New.
5937 (create_breakpoint): New flags parameter.
5938 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
5939 * python/py-breakpoint.c (bppy_init): Adjust.
5940 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
5941 * spu-tdep.c (spu_catch_start): Adjust.
5943 2012-03-13 Pedro Alves <palves@redhat.com>
5944 Hui Zhu <teawater@gmail.com>
5945 Yao Qi <yao@codesourcery.com>
5947 * remote.c (struct remote_state): New field `starting_up'.
5948 (remote_start_remote): Set and clear it.
5949 (remote_can_download_tracepoint): If starting up, return false.
5951 2012-03-13 Yao Qi <yao@codesourcery.com>
5953 * inferior.h (struct inferior): Remove fields any_syscall_count,
5954 syscalls_counts and total_syscalls_count. Move them to new
5955 struct catch_syscall_inferior_data in breakpoint.c.
5956 * breakpoint.c: Call DEF_VEC_I(int).
5957 (struct catch_syscall_inferior_data): New.
5958 (get_catch_syscall_inferior_data): New.
5959 (catch_syscall_inferior_data_cleanup): New.
5960 (insert_catch_syscall): Update to access data in
5961 struct catch_syscall_inferior_data.
5962 (insert_catch_syscall): Likewise.
5963 (remove_catch_syscall): Likewise.
5964 (remove_catch_syscall): Likewise.
5965 (is_syscall_catchpoint_enabled): Likewise.
5966 (add_catch_command): Likewise.
5967 (_initialize_breakpoint): Register cleanup.
5968 * breakpoint.h: Removed DEF_VEC_I(int).
5969 * dwarf2loc.c: Call DEF_VEC_I(int).
5970 * mi/mi-main.c: Likewise.
5972 2012-03-12 Mark Kettenis <kettenis@gnu.org>
5974 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
5976 2012-03-12 Chris January <chris.january@allinea.com>
5978 * aix-thread.c (_initialize_aix_thread): Add prototype.
5979 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
5980 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
5982 2012-03-12 Joel Brobecker <brobecker@adacore.com>
5984 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
5985 include of "amd64-nat.h".
5987 2012-03-12 Tom Tromey <tromey@redhat.com>
5989 * buildsym.c (record_pending_block): Now static.
5990 * buildsym.h: (record_pending_block): Remove.
5992 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
5994 * amd64bsd-nat.c: Include amd64bsd-nat.h.
5996 2012-03-09 Tom Tromey <tromey@redhat.com>
5998 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
5999 producer_is_gxx_lt_4_6>: New fields.
6000 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
6002 2012-03-09 Tom Tromey <tromey@redhat.com>
6004 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
6006 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6008 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
6011 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6013 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
6015 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6017 Fix -Wmissing-prototypes build.
6018 * arm-linux-nat.c (get_thread_id): Make it static.
6019 * xtensa-linux-nat.c (get_thread_id): Likewise.
6021 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6023 * server.c (process_point_options): If a conditional expression
6024 is found, only print a message if remote_debug is nonzero.
6026 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
6028 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
6029 of internal error for unknown/unsupported types.
6031 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6033 Fix CU relative vs. absolute DIE offsets.
6034 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
6035 offset to offset_in_cu.
6036 * dwarf2read.c (process_enumeration_scope): Add CU offset to
6038 (dwarf2_fetch_die_location_block): Rename parameter offset to
6039 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
6041 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6043 * libunwind-frame.c: Rename to ...
6044 * ia64-libunwind-tdep.c: ... here.
6045 * libunwind-frame.h: Rename to ...
6046 * ia64-libunwind-tdep.h: ... here.
6047 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
6048 ia64-libunwind-tdep.h.
6049 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
6050 * README (--with-libunwind): Rename to ...
6051 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
6052 * config.in: Regenerate.
6053 * configure: Regenerate.
6054 * configure.ac: New option --with-libunwind-ia64, make the
6055 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
6056 Remove AC_DEFINE for HAVE_LIBUNWIND.
6057 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
6058 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
6059 Rename libunwind-frame in the general comment.
6060 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
6061 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
6062 Move forward declarations inside #ifndef. Rename libunwind-frame in
6063 the general comment.
6064 * ia64-tdep.c: Rename libunwind-frame.h #include to
6065 ia64-libunwind-tdep.h.
6066 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
6067 (ia64_libunwind_descr): Rename libunwind-frame to
6068 ia64-libunwind-tdep in these function comments.
6069 * ia64-tdep.h: Rename libunwind-frame.h #include to
6070 ia64-libunwind-tdep.h.
6071 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6072 ia64-libunwind-tdep in that data comment.
6074 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6076 * libunwind-frame.h (struct frame_unwind): New declaration.
6078 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6080 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6081 "set breakpoint condition-evaluation" command.
6083 2012-03-08 Tristan Gingold <gingold@adacore.com>
6085 * sparc-stub.c: Move to stubs/
6086 * sh-stub.c: Likewise.
6087 * m68k-stub.c: Likewise.
6088 * m32r-stub.c: Likewise.
6089 * i386-stub.c: Likewise.
6091 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6093 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6094 linux_get_siginfo_type.
6096 * m68klinux-nat.c: Include "gdb_proc_service.h".
6097 (PTRACE_GET_THREAD_AREA): Define.
6098 (ps_get_thread_area): New function.
6100 2012-03-08 Yao Qi <yao@codesourcery.com>
6102 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6104 (remote_query_attached): Likewise.
6105 (remote_static_tracepoint_marker_at): Likewise.
6106 (remote_set_permissions): Likewise.
6107 (remote_detach_1, extended_remote_attach_1): Likewise.
6108 (send_g_packet, remote_vkill): Likewise.
6109 (extended_remote_disable_randomization): Likewise.
6110 (remote_add_target_side_condition): Likewise.
6111 (remote_insert_breakpoint): Likewise.
6112 (remote_remove_breakpoint): Likewise.
6113 (remote_insert_watchpoint): Likewise.
6114 (remote_remove_watchpoint): Likewise.
6115 (remote_insert_hw_breakpoint): Likewise.
6116 (remote_insert_hw_breakpoint): Likewise.
6117 (remote_remove_hw_breakpoint): Likewise.
6118 (remote_download_command_source): Likewise.
6119 (remote_download_tracepoint): Likewise.
6120 (remote_download_trace_state_variable): Likewise.
6121 (remote_disable_tracepoint): Likewise.
6122 (remote_trace_set_readonly_regions): Likewise.
6123 (remote_get_tracepoint_status): Likewise.
6124 (remote_trace_find): Likewise.
6125 (remote_get_trace_state_variable_value): Likewise.
6126 (remote_set_disconnected_tracing): Likewise.
6127 (remote_set_circular_trace_buffer): Likewise.
6128 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6129 (remote_use_agent): Likewise.
6130 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6133 2012-03-07 Pedro Alves <palves@redhat.com>
6135 * NEWS: Mention QProgramSignals.
6136 * inferior.h (update_signals_program_target): Declare.
6137 * infrun.c: (update_signals_program_target): New.
6138 (handle_command): Update the target of the new program signals
6140 * remote.c (PACKET_QProgramSignals): New enum.
6141 (last_program_signals_packet): New global.
6142 (remote_program_signals): New.
6143 (remote_start_remote): Update the target with the program signals
6145 (remote_protocol_features): Add entry for QPassSignals.
6146 (remote_open_1): Free anc clear last_program_signals_packet.
6147 (init_remote_ops): Install remote_program_signals.
6148 * target.c (update_current_target): Adjust.
6149 (target_program_signals): New.
6150 * target.h (struct target_ops) <to_program_signals>: New field.
6151 (target_program_signals): Declare.
6153 2012-03-07 Pedro Alves <palves@redhat.com>
6155 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6158 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6160 * m68klinux-nat.c (getregs_supplies): Make static.
6161 (getfpregs_supplies): Likewise.
6162 (have_ptrace_getregs): Likewise.
6164 2012-03-06 Joel Brobecker <brobecker@adacore.com>
6166 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6167 in call to get_die_type_at_offset.
6169 2012-03-06 Stan Shebs <stan@codesourcery.com>
6171 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6172 * mi/mi-cmd-disas.c: Ditto.
6173 * mi/mi-cmd-env.c: Ditto.
6174 * mi/mi-cmd-file.c: Ditto.
6175 * mi/mi-cmd-stack.c: Ditto.
6176 * mi/mi-cmd-target.c: Ditto.
6177 * mi/mi-cmd-var.c: Ditto.
6178 * mi/mi-cmds.c: Ditto.
6179 * mi/mi-cmds.h: Ditto.
6180 * mi/mi-console.c: Ditto.
6181 * mi/mi-getopt.c: Ditto.
6182 * mi/mi-getopt.h: Ditto.
6183 * mi/mi-interp.c: Ditto.
6184 * mi/mi-main.c: Ditto.
6185 * mi/mi-out.c: Ditto.
6186 * mi/mi-parse.c: Ditto.
6187 * mi/mi-parse.h: Ditto.
6188 * mi/mi-symbol-cmds.c: Ditto.
6190 * mi/mi-getopt.h: Move mi_opt struct up.
6191 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6193 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6195 2012-03-06 Tom Tromey <tromey@redhat.com>
6197 * proc-service.c (ps_pglobal_lookup): Set the current program
6200 2012-03-06 Pedro Alves <palves@redhat.com>
6202 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6204 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6206 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6208 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6211 * common/linux-osdata.c (linux_common_core_of_thread): New function
6213 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6214 call by linux_common_core_of_thread.
6215 (linux_nat_core_of_thread_1): Remove.
6216 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6217 * linux-thread-db.c: Include linux-osdata.h.
6218 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6219 linux_common_core_of_thread.
6221 2012-03-05 Tom Tromey <tromey@redhat.com>
6223 * value.c (value_primitive_field): Don't fetch contents for
6226 2012-03-05 Tom Tromey <tromey@redhat.com>
6228 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6230 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6232 * s390-nat.c: Include "gregset.h".
6234 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6236 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6237 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6238 (libunwind_load): New variable so_error, use it for dlerror. Try to
6239 load also LIBUNWIND_SO_7.
6241 2012-03-05 Pedro Alves <palves@redhat.com>
6243 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6244 is not NULL, and remove resulting dead code.
6246 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6248 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6249 prologue to sh_analyze_prologue.
6250 (sh_analyze_prologue): Make better use of such an upper limit, and
6251 generally be more cautious about accessing memory.
6253 2012-03-05 Tom Tromey <tromey@redhat.com>
6255 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6256 _initialize_ia64_hpux_tdep.
6258 2012-03-05 Pedro Alves <palves@redhat.com>
6262 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6263 the register state is clear, supply explicit zero, instead of
6264 marking the register unavailable.
6266 2012-03-05 Tristan Gingold <gingold@adacore.com>
6268 * NEWS: Mention OpenVMS ia64 new target.
6270 2012-03-05 Tristan Gingold <gingold@adacore.com>
6272 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6273 (ia64_unw_accessors, ia64_unw_rse_accessors)
6274 (ia64_libunwind_descr): Declare.
6275 * ia64-vms-tdep.c: New file.
6276 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6277 (ia64_libunwind_descr): Make them public.
6278 * configure.tgt: Add ia64-*-*vms*.
6279 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6280 (ALLDEPFILES): Add ia64-vms-tdep.c
6282 2012-03-05 Tristan Gingold <gingold@adacore.com>
6284 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6285 * remote.c (PACKET_qXfer_uib): New enum value.
6286 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6287 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6288 (_initialize_remote): Call add_packet_config_cmd for
6291 2012-03-05 Tristan Gingold <gingold@adacore.com>
6293 * osabi.c (gdb_osabi_names): Add OpenVMS.
6294 (generic_elf_osabi_sniffer): Likewise.
6295 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6297 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6299 Removed unused code.
6300 * libunwind-frame.c (libunwind_frame_unwind)
6301 (libunwind_frame_base_address): Remove.
6302 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6304 2012-03-04 Yao Qi <yao@codesourcery.com>
6306 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6307 remove trailing new line.
6308 (agent_run_command, agent_run_command): Add _ markup.
6309 (agent_capability_check): Likewise.
6311 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6313 * breakpoint.c (set_condition_evaluation_mode): Set
6314 CONDITION_EVALUATION_MODE unconditionally.
6316 2012-03-03 Yao Qi <yao@codesourcery.com>
6318 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6319 * common/agent.h: Update declaration.
6320 * inf-child.c (inf_child_use_agent): New.
6321 (inf_child_can_use_agent): New.
6322 (inf_child_target): Initialize fields `to_use_agent'
6323 and `to_can_use_agent'.
6324 * agent.c (agent_new_objfile): New.
6325 (_initialize_agent): Add agent_new_objfile to new_objfile
6328 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6330 (linux_target_install_ops): Initialize field
6331 `to_static_tracepoint_markers_by_strid'.
6332 * remote.c (free_current_marker): Move it to ...
6333 * tracepoint.c (free_current_marker): ... here. New.
6334 (cleanup_target_stop): New.
6335 * tracepoint.h: Declare free_current_marker.
6336 * NEWS: Add one entry about `info static-tracepoint-marker'.
6338 2012-03-03 Yao Qi <yao@codesourcery.com>
6340 * common/agent.c (agent_loaded_p): New.
6341 (agent_look_up_symbols): New global.
6342 * common/agent.h: Declare agent_loaded_p.
6344 2012-03-03 Yao Qi <yao@codesourcery.com>
6346 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6347 (agent_capability_check, agent_capability_invalidate): New.
6348 (symbol_list): New array element.
6349 * common/agent.h (enum agent_capa): New.
6350 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6352 2012-03-03 Yao Qi <yao@codesourcery.com>
6354 * target.h (struct target_ops) <to_use_agent>: New field.
6355 (struct target_ops) <to_can_use_agent>: New field.
6356 (target_use_agent, target_can_use_agent): New macro.
6357 * target.c (update_current_target): Update.
6358 * remote.c: New enum `PACKET_QAgent'.
6359 (remote_protocol_features): Add a new element.
6360 (remote_use_agent, remote_can_use_agent): New.
6361 (init_remote_ops): Initialize field `can_use_agent' with
6362 remote_can_use_agent. Intiailize field `use_agent' with
6364 * common/agent.c (use_agent): New global.
6365 * common/agent.h: Declare it.
6366 * tracepoint.c (info_static_tracepoint_markers_command): Add
6368 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6369 (COMMON_OBS): Add common/agent.o and agent.o
6370 (common-agent.o): New rule.
6373 2012-03-03 Yao Qi <yao@codesourcery.com>
6375 * common/agent.c: New.
6376 * common/agent.h: New.
6377 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6379 * configure, configh.in: Regenerated.
6381 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6383 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6384 unless it exists for this architecture.
6386 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6388 * language.h (struct language_defn): New "method" la_read_var_value.
6389 * findvar.c: #include "language.h".
6390 (default_read_var_value): Renames read_var_value. Rewrite
6391 function description.
6392 (read_var_value): New function.
6393 * value.h (default_read_var_value): Add prototype.
6394 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6396 (ada_language_defn): Add entry for la_read_var_value.
6397 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6398 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6399 language_defn structures to add entry for new la_read_var_value
6402 2012-03-02 Tom Tromey <tromey@redhat.com>
6403 Pedro Alves <palves@redhat.com>
6405 PR breakpoints/13776:
6406 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6408 (delete_longjmp_breakpoint_at_next_stop): New.
6409 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6410 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6411 before deleting the inferior. Add comments.
6412 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6413 breakpoints immediately, but only on next stop. Move that code
6414 next to where we mark other breakpoints for deletion.
6416 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6418 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6420 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6423 2012-03-02 Pedro Alves <palves@redhat.com>
6425 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6427 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6429 Fix -Wmissing-prototypes build.
6430 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6431 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6432 (gdbsim_has_memory): Likewise.
6434 2012-03-02 Yao Qi <yao@codesourcery.com>
6436 Fix -Wmissing-prototypes build.
6437 * charset.c (phony_iconv_open): Make static.
6438 (phony_iconv_close, phony_iconv): Likewise.
6439 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6440 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6442 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6443 * ser-mingw.c (create_select_thread): Make static.
6444 * windows-termcap.c (tgetent): New prototype.
6445 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6447 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6449 Fix -Wmissing-prototypes build.
6450 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6451 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6452 (_initialize_loadable): New prototypes.
6454 2012-03-02 Doug Evans <dje@google.com>
6456 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6457 abbrev table, read_comp_unit will do it.
6459 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6461 Fix -Wmissing-prototypes build.
6462 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6463 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6464 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6465 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6466 (_initialize_arm_symbian_tdep): New prototype.
6467 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6468 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6469 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6471 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6472 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6474 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6475 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6476 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6478 * moxie-tdep.c (moxie_process_record): Likewise.
6479 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6480 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6481 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6482 (_initialize_rl78_tdep): New prototype.
6483 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6484 (_initialize_rx_tdep): New prototype.
6485 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6486 (_initialize_darwin_solib): New prototype.
6487 * solib-spu.c: Include solib-spu.h.
6488 (_initialize_spu_solib): New prototype.
6489 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6490 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6491 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6492 (tic6x_software_single_step): Make it static.
6493 (_initialize_tic6x_tdep): New prototype.
6495 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6497 Fix -Wmissing-prototypes build.
6498 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6499 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6501 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6503 Fix -Wmissing-prototypes build.
6504 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6505 (frv_have_stopped_data_address): Remove.
6507 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6509 Fix -Wmissing-prototypes build.
6510 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6511 * sh-tdep.c: Include sh64-tdep.h.
6512 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6513 * sh64-tdep.c: Include sh64-tdep.h.
6514 * sh64-tdep.h: New file.
6516 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6518 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6520 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6522 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6523 sp_regnum once the gdbarch_init_osabi hook has been called.
6525 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6527 * mips-tdep.c (mips32_bc1_pc): New function.
6528 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6529 BPOSGE32 and BPOSGE64 instructions.
6530 (deal_with_atomic_sequence): Likewise.
6531 (mips32_instruction_has_delay_slot): Likewise.
6533 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6534 Chris Dearman <chris@mips.com>
6535 Maciej W. Rozycki <macro@codesourcery.com>
6536 Joseph Myers <joseph@codesourcery.com>
6538 * features/mips-dsp.xml: New file.
6539 * features/mips64-dsp.xml: New file.
6540 * features/mips-dsp-linux.xml: New file.
6541 * features/mips64-dsp-linux.xml: New file.
6542 * features/Makefile (WHICH): Add mips-dsp-linux and
6544 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6545 * features/mips-dsp-linux.c: New file.
6546 * features/mips64-dsp-linux.c: New file.
6547 * regformats/mips-dsp-linux.dat: New file.
6548 * regformats/mips64-dsp-linux.dat: New file.
6549 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6551 (mips64_linux_register_addr): Likewise.
6552 (mips64_linux_regsets_fetch_registers): Likewise.
6553 (mips64_linux_regsets_store_registers): Likewise.
6554 (mips64_linux_fetch_registers): Update call to
6555 mips64_linux_regsets_fetch_registers.
6556 (mips64_linux_store_registers): Update call to
6557 mips64_linux_regsets_store_registers.
6558 (mips_linux_read_description): Probe for DSP registers.
6559 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6560 and initialize_tdesc_mips64_dsp_linux.
6561 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6562 Remove padding of no longer used embedded register slots.
6563 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6564 (MIPS_RESTART_REGNUM): Redefine enum value.
6565 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6567 (mips_tx39_reg_names): Likewise.
6568 (mips_linux_reg_names): New array of register names for Linux
6570 (mips_register_name): Check for a null pointer in
6571 mips_processor_reg_names and return an empty string.
6572 (mips_register_type): Exclude embedded registers for the IRIX
6574 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6575 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6577 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6578 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6579 (mips_gdbarch_init): Likewise. Initialize internal register
6580 indices for the Linux ABI. Use dynamic numbers to refer to
6581 registers, as applicable, while parsing the target description.
6582 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6584 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6586 * frame.h (read_frame_register_unsigned): Fix typo in function
6589 2012-03-01 Pedro Alves <palves@redhat.com>
6591 * jit-reader.in [!__cplusplus]
6592 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6594 2012-03-01 Pedro Alves <palves@redhat.com>
6596 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6597 * configure: Regenerate.
6599 2012-03-01 Pedro Alves <palves@redhat.com>
6601 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6602 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6603 (ftrace_command, strace_command): Make static.
6604 * d-lang.c (_initialize_d_language): Declare.
6605 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6606 * dwarf2loc.c (_initialize_dwarf2loc):
6607 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6608 * exec.c (exec_get_section_table): Make static.
6609 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6610 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6611 * inferior.c (remove_inferior_command, add_inferior_command)
6612 (clone_inferior_command): Make static.
6613 * linux-nat.c (linux_nat_thread_address_space)
6614 (linux_nat_core_of_thread): Make static.
6615 * linux-tdep.c (_initialize_linux_tdep): Declare.
6616 * objc-lang.c (_initialize_objc_lang): Declare.
6617 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6619 (_initialize_opencl_language): Declare.
6620 * record.c (_initialize_record): Declare.
6621 * remote.c (demand_private_info, remote_get_tib_address)
6622 (remote_supports_cond_tracepoints)
6623 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6625 * skip.c (_initialize_step_skip): Declare.
6626 * symtab.c (skip_prologue_using_lineinfo): Make static.
6627 * tracepoint.c (delete_trace_state_variable)
6628 (trace_variable_command, delete_trace_variable_command)
6629 (get_uploaded_tsv, find_matching_tracepoint_location)
6630 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6632 * value.c (pack_unsigned_long): Make static.
6633 * varobj.c (varobj_ensure_python_env): Make static.
6634 * windows-tdep.c (_initialize_windows_tdep): Declare.
6635 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6637 2012-03-01 Pedro Alves <palves@redhat.com>
6639 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6641 (linux_init_abi): Install it as has_shared_address_space gdbarch
6644 2012-03-01 Pedro Alves <palves@redhat.com>
6646 * observer.c (observer_test_first_notification_function)
6647 (observer_test_second_notification_function)
6648 (observer_test_third_notification_function): Add declarations.
6650 2012-03-01 Pedro Alves <palves@redhat.com>
6652 * common/signals.c (default_target_signal_to_host)
6653 (default_target_signal_from_host): Move ...
6654 * arch-utils.c: ... here.
6655 * arch-utils.h (default_target_signal_to_host)
6656 (default_target_signal_from_host): Declare.
6658 * common/signals.c (target_signal_from_command): Move ...
6659 * infrun.c: ... here.
6660 * inferior.h (target_signal_from_command): Declare.
6661 * target.h (target_signal_from_command)
6662 (default_target_signal_from_host, default_target_signal_to_host):
6663 Delete declarations.
6665 * common/signals.c (_initialize_signals): Delete.
6667 2012-03-01 Pedro Alves <palves@redhat.com>
6669 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6670 both __cplusplus and !__cplusplus.
6672 2012-03-01 Pedro Alves <palves@redhat.com>
6674 * psymtab.c (find_and_open_source): Delete declaration.
6675 * source.c (find_and_open_source): Move comment ...
6676 * source.h (find_and_open_source): ... to this new declaration.
6678 2012-03-01 Pedro Alves <palves@redhat.com>
6680 * inline-frame.c: Include inline-frame.h.
6682 2012-03-01 Pedro Alves <palves@redhat.com>
6684 * tui/tui-data.c (set_gen_win_origin): Delete.
6685 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6686 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6688 2012-03-01 Pedro Alves <palves@redhat.com>
6690 * remote.c (encode_actions): Delete declaration.
6691 * tracepoint.c (encode_actions): Make extern.
6692 * tracepoint.h (encode_actions): Declare.
6694 2012-03-01 Pedro Alves <palves@redhat.com>
6696 * python/py-breakpoint.c: Include python.h.
6697 * python/py-continueevent.c (create_continue_event_object): Make
6699 * python/py-lazy-string.c (stpy_get_type): Make static.
6700 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6702 * python/py-utils.c (unicode_to_target_python_string): Make
6704 * python/py-value.c: Include python.h.
6706 2012-03-01 Pedro Alves <palves@redhat.com>
6708 * inferior.c (delete_threads_of_inferior): Delete.
6710 2012-03-01 Pedro Alves <palves@redhat.com>
6712 Import fallback definitions from glibc.
6714 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6715 ps_prochandle): Forward declare.
6716 (ps_err_e): Use glibc's comments.
6717 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6718 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6719 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6720 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6721 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6722 (struct ps_prochandle): Adjust comment.
6724 2012-03-01 Pedro Alves <palves@redhat.com>
6726 * ada-lang.c (ada_modulus_from_name): Delete.
6727 * ada-lex.l (lexer_init): Make static.
6729 2012-03-01 Pedro Alves <palves@redhat.com>
6733 * frame.c (read_frame_register_unsigned): New.
6734 * frame.h (read_frame_register_unsigned): Declare.
6735 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6737 (print_i387_control_word): New parameter `control_p'. Handle it.
6738 (i387_print_float_info): Handle unavailable float registers.
6740 2012-03-01 Keith Seitz <keiths@redhat.com>
6742 * linespec.c (decode_line_2): Sort the list of methods
6743 alphabetically before presenting the user with a selection
6746 2012-03-01 Doug Evans <dje@google.com>
6748 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6750 (dwarf2_read_abbrevs): Remove corresponding initialization.
6752 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
6754 * NEWS: Mention new python command class gdb.COMMAND_USER.
6755 * cli/cli-cmds.c (show_user): Print error when used on a python
6757 (init_cli_cmds): Update documentation strings for "show user" and
6758 "set/show max-user-call-depth" to clarify that it does not apply to
6760 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6762 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6764 * top.c (execute_command): Only execute a user-defined command as a
6765 legacy macro if c->user_commands is set.
6767 2012-03-01 Tom Tromey <tromey@redhat.com>
6769 * valprint.h (struct generic_val_print_decorations): New.
6770 (generic_val_print): Declare.
6771 * valprint.c (generic_val_print): New function.
6772 * p-valprint.c (p_decorations): New global.
6773 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6774 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6775 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6776 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6777 * m2-valprint.c (m2_decorations): New global.
6778 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6779 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6780 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6781 TYPE_CODE_ERROR>: Call generic_val_print.
6782 * f-valprint.c (f_decorations): New global.
6783 (f_val_print): Use print_function_pointer_address.
6784 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6785 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6786 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6788 * c-valprint.c (c_decorations): New global.
6789 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6790 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6791 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6792 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6793 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6794 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6797 2012-03-01 Tom Tromey <tromey@redhat.com>
6799 * valprint.c (val_print): Update.
6800 * p-valprint (pascal_val_print): Return void.
6801 * p-lang.h (pascal_val_print): Return void.
6802 * m2-valprint.c (m2_val_print): Return void.
6803 * m2-lang.h (m2_val_print): Return void.
6804 * language.h (struct language_defn) <la_val_print>: Return void.
6805 * language.c (unk_lang_val_print): Return void.
6806 * jv-valprint.c (java_val_print): Return void.
6807 * jv-lang.h (java_val_print): Return void.
6808 * f-valprint.c (f_val_print): Return void.
6809 * f-lang.h (f_val_print): Return void.
6810 * d-valprint.c (d_val_print): Return void.
6811 (dynamic_array_type): Update.
6812 * d-lang.h (d_val_print): Return void.
6813 * c-valprint.c (c_val_print): Return void.
6814 * c-lang.h (c_val_print): Return void.
6815 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6817 * ada-lang.h (ada_val_print): Return void.
6819 2012-03-01 Tom Tromey <tromey@redhat.com>
6821 * value.h (val_print): Return void.
6822 * valprint.c (val_print): Return void.
6824 2012-03-01 Tom Tromey <tromey@redhat.com>
6826 * value.h (common_val_print): Return void.
6827 * valprint.c (common_val_print): Return void.
6829 2012-03-01 Tom Tromey <tromey@redhat.com>
6831 * value.h (value_print): Return void.
6832 * valprint.c (value_print): Return void.
6833 * p-valprint.c (pascal_value_print): Return void.
6834 * p-lang.h (pascal_value_print): Return void.
6835 * language.h (struct language_defn) <la_value_print>: Return
6837 * language.c (unk_lang_value_print): Return void.
6838 * jv-valprint.c (java_value_print): Return void.
6839 * jv-lang.h (java_value_print): Return void.
6840 * f-valprint.c (c_value_print): Don't declare.
6842 * c-valprint.c (c_value_print): Return void.
6843 * c-lang.h (c_value_print): Return void.
6844 * ada-valprint.c (ada_value_print): Return void.
6845 * ada-lang.h (ada_value_print): Return void.
6847 2012-03-01 Tom Tromey <tromey@redhat.com>
6849 * value.c (value_primitive_field): Handle virtual base classes.
6851 2012-03-01 Tom Tromey <tromey@redhat.com>
6853 * gdbtypes.h (struct vbase): Remove.
6855 2012-03-01 Tom Tromey <tromey@redhat.com>
6857 * c-valprint.c (print_function_pointer_address): Move...
6858 * valprint.c: ... here. Make non-static.
6859 * m2-valprint.c (print_function_pointer_address): Remove.
6860 * valprint.h (print_function_pointer_address): Declare.
6862 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6864 * NEWS: Document the fact that one can provide a condition when
6865 creating an Ada exception catchpoint.
6867 2012-03-01 Tom Tromey <tromey@redhat.com>
6869 * valprint.c (val_print_type_code_flags): Fix placement of
6872 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6874 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6875 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6876 environment variable before calling update-copyright.
6878 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6880 * gnulib/extra/update-copyright: Update to the latest from
6881 gnulib's git repository.
6882 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6883 variable to 2 instead of 1.
6885 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6887 * varobj.c (c_value_of_variable): Remove dead code.
6889 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6891 * ada-lex.p (processId): Do not modify already encoded IDs.
6892 Update function documentation.
6894 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6896 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6897 "name" with "struct symbol *name_sym".
6898 * ada-exp.y (write_var_or_type): Update call to
6899 ada_find_renaming_symbol.
6900 "name" with "struct symbol *name_sym". Adjust Implementation
6901 accordingly. Adjust the function documentation.
6903 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6905 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6906 * ada-lang.c (ada_find_any_type): Add advance declaration.
6907 Make static. Replace ada_find_any_symbol by
6908 ada_find_any_type_symbol.
6909 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
6910 Improve function description. Make static.
6911 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
6912 Replace ada_find_any_symbol by ada_find_any_type_symbol.
6914 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6916 * ada-lang.c (struct tag_args): Delete.
6917 (ada_get_tsd_type): Function body moved up in source file.
6918 (ada_tag_name_1, ada_tag_name_2): Delete.
6919 (ada_get_tsd_from_tag): New function.
6920 (ada_tag_name_from_tsd): New function.
6921 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
6922 to determine the tag name.
6924 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6926 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
6928 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
6931 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6933 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
6935 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6937 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
6940 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6942 * ada-lang.c (constrained_packed_array_type): If there is a
6943 parallel XA type, use it to determine the array index type.
6945 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6947 * ada-valprint.c (ada_val_print_1): If our value is a reference
6948 to an array descriptor, dereference it before converting it
6951 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6953 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
6954 creating fixed value.
6955 (ada_value_ind, ada_coerce_ref, assign_component)
6956 (ada_evaluate_subexp): Remove call to unwrap_value before
6957 call to ada_to_fixed_value.
6959 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6961 * ada-lang.c (to_fixed_array_type): Set result's type name.
6963 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6965 * ada-lang.c (catch_ada_exception_command_split): Add new
6966 argument cond_string. Add support for condition at end of
6967 "catch exception" commands.
6968 (ada_decode_exception_location): Add new argument cond_string.
6969 Update call to catch_ada_exception_command_split.
6970 (create_ada_exception_catchpoint): Add new argument cond_string.
6971 Set the breakpoint condition if needed.
6972 (catch_ada_exception_command): Update call to
6973 ada_decode_exception_location.
6974 (ada_decode_assert_location): Add function documentation.
6975 Add support for condition at end of "catch assert" command.
6976 (catch_assert_command): Update calls to ada_decode_assert_location
6977 and create_ada_exception_catchpoint.
6979 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6981 Fix disp-step-syscall.exp: fork: single step over fork.
6982 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
6983 (i386_linux_get_syscall_number_from_regcache): ... here, new function
6984 comment, change parameters gdbarch and ptid to regcache. Remove
6985 parameter regcache, initialize gdbarch from regcache here.
6986 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
6988 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
6990 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
6991 'syscall'. Make the 'int' check more strict.
6993 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6995 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
6996 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
6997 (i386_linux_intx80_sysenter_syscall_record): ... here.
6998 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
6999 Use the renamed function name.
7001 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7003 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
7004 * breakpoint.c (until_break_command): Likewise.
7005 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
7006 * infcall.c (call_function_by_hand): Likewise.
7007 * infcmd.c (finish_forward): Likewise.
7008 * infrun.c (insert_exception_resume_breakpoint): Likewise.
7010 2012-02-28 Tristan Gingold <gingold@adacore.com>
7012 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
7013 avoid variable assignments inside condition.
7015 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7017 Fix static analysis issue found by cppcheck.
7018 * microblaze-tdep.c (microblaze_extract_return_value): Fix
7019 uninitialized BUF for size 2.
7021 2012-02-27 Chris Dearman <chris@mips.com>
7022 Nathan Froyd <froydnj@codesourcery.com>
7023 Maciej W. Rozycki <macro@codesourcery.com>
7025 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
7026 (mips16_instruction_has_delay_slot): Likewise.
7027 (mips_segment_boundary): Likewise.
7028 (mips_adjust_breakpoint_address): Likewise.
7029 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
7031 2012-02-27 Maciej W. Rozycki <macro@mips.com>
7032 Maciej W. Rozycki <macro@codesourcery.com>
7034 * infrun.c (handle_inferior_event): Don't proceed through
7035 shared library trampolines if stepping at the machine
7038 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
7040 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
7043 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
7045 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
7046 (sh_stub_unwind_sniffer): New functions.
7047 (sh_stub_unwind): New variable.
7048 (sh_gdbarch_init): Wire everything.
7050 2012-02-27 Pedro Alves <palves@redhat.com>
7052 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
7053 (linux_nat_post_attach_wait): Adjust to use
7054 linux_proc_pid_is_stopped.
7055 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
7056 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
7057 based on pid_is_stopped from both linux-nat.c and
7058 gdbserver/linux-low.c, and renamed.
7060 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7062 * remote.c (remote_watchpoint_addr_within_range): New function.
7063 (init_remote_ops): Use it.
7065 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7067 * target.h (target_watchpoint_addr_within_range): Document macro.
7069 2012-02-24 Pedro Alves <palves@redhat.com>
7071 * stack.c (set_last_displayed_sal): Issue internal_error instead
7072 of warning, and issue it after clearing the last displayed sal.
7074 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7075 Pedro Alves <palves@redhat.com>
7077 * breakpoint.c (until_break_command): Install breakpoints after
7078 all frame manipulations.
7080 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7082 * remote.c (remote_supports_cond_breakpoints): New forward
7084 (remote_add_target_side_condition): New function.
7085 (remote_insert_breakpoint): Add target-side breakpoint
7086 conditional if supported.
7087 (remote_insert_hw_breakpoint): Likewise.
7088 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7091 * target.c (update_current_target): Inherit
7092 to_supports_evaluation_of_breakpoint_conditions.
7093 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7095 * target.h (struct target_ops)
7096 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7097 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7099 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7100 (condition_evaluation_both, condition_evaluation_auto,
7101 condition_evaluation_host, condition_evaluation_target,
7102 condition_evaluation_enums, condition_evaluation_mode_1,
7103 condition_evaluation_mode): New static globals.
7104 (translate_condition_evaluation_mode): New function.
7105 (breakpoint_condition_evaluation_mode): New function.
7106 (gdb_evaluates_breakpoint_condition_p): New function.
7107 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7108 (mark_breakpoint_modified): New function.
7109 (mark_breakpoint_location_modified): New function.
7110 (set_condition_evaluation_mode): New function.
7111 (show_condition_evaluation_mode): New function.
7112 (bp_location_compare_addrs): New function.
7113 (get_first_location_gte_addr): New helper function.
7114 (set_breakpoint_condition): Free condition bytecode if locations
7115 has become unconditional. Call mark_breakpoint_modified (...).
7116 (condition_command): Call update_global_location_list (1) for
7118 (breakpoint_xfer_memory): Use is_breakpoint (...).
7119 (is_breakpoint): New function.
7120 (parse_cond_to_aexpr): New function.
7121 (build_target_condition_list): New function.
7122 (insert_bp_location): Handle target-side conditional
7123 breakpoints and call build_target_condition_list (...).
7124 (update_inserted_breakpoint_locations): New function.
7125 (insert_breakpoint_locations): Handle target-side conditional
7127 (bpstat_check_breakpoint_conditions): Add comment.
7128 (bp_condition_evaluator): New function.
7129 (bp_location_condition_evaluator): New function.
7130 (print_breakpoint_location): Print information on where the condition
7132 (print_one_breakpoint_location): Likewise.
7133 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7134 breakpoint location.
7135 (force_breakpoint_reinsertion): New functions.
7136 (update_global_location_list): Handle target-side breakpoint
7138 Reinsert locations that are already inserted if conditions have
7140 (bp_location_dtor): Free agent expression bytecode.
7141 (disable_breakpoint): Call mark_breakpoint_modified (...).
7142 Call update_global_location_list (...) with parameter 1 for breakpoints.
7143 (disable_command): Call mark_breakpoint_location_modified (...).
7144 Call update_global_location_list (...) with parameter 1 for breakpoints.
7145 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7146 (enable_command): mark_breakpoint_location_modified (...).
7147 (_initialize_breakpoint): Update documentation and add
7148 condition-evaluation breakpoint subcommand.
7150 * breakpoint.h: Include ax.h.
7151 (condition_list): New data structure.
7152 (condition_status): New enum.
7153 (bp_target_info) <cond_list>: New field.
7154 (bp_location) <condition_changed, cond_bytecode>: New fields.
7155 (is_breakpoint): New prototype.
7157 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7159 * remote.c (remote_state) <cond_breakpoints>: New field.
7160 (PACKET_ConditionalBreakpoints): New enum.
7161 (remote_cond_breakpoint_feature): New function.
7162 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7163 (remote_supports_cond_breakpoints): New function.
7164 (_initialize_remote): Add new packet configuration for
7165 target-side conditional breakpoints.
7167 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7169 * NEWS: Mention target-side conditional breakpoint support,
7170 new condition-evaluation breakpoint subcommand and remote
7173 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7175 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7178 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7180 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7181 (after_prologue): Remove.
7183 2012-02-23 Tom Tromey <tromey@redhat.com>
7185 * jv-valprint.c (java_val_print): Remove dead code.
7187 2012-02-23 Tristan Gingold <gingold@adacore.com>
7189 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7190 known_tasks_element and known_tasks_length fields.
7191 (read_known_tasks_array): Change argument type. Use pointer type
7192 and number of elements from DATA. Adjust.
7193 (read_known_tasks_list): Likewise.
7194 (get_known_tasks_addr): Remove.
7195 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7196 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7197 type and array length. Merge former get_known_tasks_addr code.
7199 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7202 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7203 it after set_momentary_breakpoint.
7205 2012-02-22 Sterling Augustine <saugustine@google.com>
7208 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7210 2012-02-22 Gary Benson <gbenson@redhat.com>
7212 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7213 (find_slot_in_mapped_hash): Likewise.
7215 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7218 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7219 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7220 * configure: Regenerate.
7222 2012-02-21 Tristan Gingold <gingold@adacore.com>
7223 Pedro Alves <palves@redhat.com>
7225 * ia64-tdep.c: Do not include libunwind-ia64.h.
7226 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7227 Include libunwind-ia64.h instead of libunwind.h.
7228 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7229 for libunwind.h existence.
7230 * configure, config.in: Regenerate.
7232 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7234 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7235 instead of value_rtti_target_type.
7236 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7237 instead of value_rtti_target_type.
7238 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7239 value_rtti_target_type.
7240 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7241 (value_rtti_target_type): Rename to ...
7242 (value_rtti_indirect_type): ... here and make it indirect. Update
7244 * value.c (readjust_indirect_value_type): New function.
7245 (coerce_ref): Support for enclosing type setting for references
7246 with readjust_indirect_value_type.
7247 * value.h (readjust_value_type): New declaration.
7248 (value_rtti_target_type): Rename to ...
7249 (value_rtti_indirect_type): ... here.
7251 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7253 * MAINTAINERS (Write After Approval): Add myself to the list.
7255 2012-02-20 Doug Evans <dje@google.com>
7257 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7258 Rename objfile_p_char parameter to objfilep.
7259 (build_objfile_section_table): Result is now void. All callers
7261 * objfiles.h (struct objfile): Tweak comments, whitespace.
7262 (build_objfile_section_table): Update.
7264 * elfread.c (elf_symfile_segments): Fix warning text.
7266 2012-02-20 Tom Tromey <tromey@redhat.com>
7269 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7270 particular set of file names once.
7271 (dw2_map_symbol_filenames): Likewise.
7273 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7276 * main.c (write_files): Remove the declaration.
7277 (external_editor_command): Move the declaration ...
7278 [GDBTK] (external_editor_command): ... here. Fix the comment.
7280 2012-02-20 Tom Tromey <tromey@redhat.com>
7282 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7285 2012-02-20 Tristan Gingold <gingold@adacore.com>
7287 * darwin-nat.h (enum darwin_msg_state): Add comments.
7289 2012-02-20 Tristan Gingold <gingold@adacore.com>
7291 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7294 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7296 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7297 between function description and implementation.
7299 2012-02-17 Tom Tromey <tromey@redhat.com>
7302 * python/py-event.c (event_object_getset): New global.
7303 (event_object_type): Reference it.
7304 * python/py-type.c (field_object_getset): New global.
7305 (field_object_type): Reference it.
7306 * python/python-internal.h (gdb_py_generic_dict): Declare.
7307 * python/py-utils.c (gdb_py_generic_dict): New function.
7309 2012-02-17 Tristan Gingold <gingold@adacore.com>
7311 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7313 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7315 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7316 TYPE_CALLING_CONVENTION annotation.
7318 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7320 * MAINTAINERS: Add rx to target ISA section.
7321 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7322 (ALLDEPFILES): Add rx-tdep.c.
7324 2012-02-16 Tom Tromey <tromey@redhat.com>
7326 * symfile.c (symbol_file_add_main_1): Use inferior's
7328 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7329 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7331 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7333 (follow_exec): Use inferior's symfile_flags.
7334 * inferior.h (struct inferior) <symfile_flags>: New field.
7336 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7339 * remote-sim.c (gdbsim_create_inferior): Call error() when
7340 sim_create_inferior() fails.
7342 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7344 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7346 2012-02-16 Tom Tromey <tromey@redhat.com>
7349 * thread.c (struct current_thread_cleanup) <was_removable>: New
7351 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7352 (make_cleanup_restore_current_thread): Initialize new field.
7354 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7356 * MAINTAINERS: Add rl78 to target ISA section.
7357 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7358 (ALLDEPFILES): Add rl78-tdep.c.
7359 * NEWS: Mention rl78 as a new target.
7361 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7363 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7365 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7367 2012-02-15 Tom Tromey <tromey@redhat.com>
7370 * infcmd.c (registers_info): Print just the current register's
7373 2012-02-15 Tom Tromey <tromey@redhat.com>
7375 * python/py-symbol.c (sympy_value): Use _().
7377 2012-02-15 Pedro Alves <palves@redhat.com>
7379 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7380 output to be like native targets'.
7381 (remote_pid_to_str): Special case the null ptid.
7383 2012-02-14 Stan Shebs <stan@codesourcery.com>
7385 * NEWS: Mention enable count command.
7386 * breakpoint.h (struct breakpoint): New field enable_count.
7387 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7388 (enable_breakpoint): Add arg to call.
7389 (struct disp_data): New struct.
7390 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7391 (do_map_enable_once_breakpoint): Create a struct and pass it.
7392 (do_map_enable_delete_breakpoint): Ditto.
7393 (do_map_enable_count_breakpoint): New function.
7394 (enable_count_command): New function.
7395 (bpstat_stop_status): Decrement enable_count.
7396 (print_one_breakpoint_location): Report enable count.
7397 (_initialize_breakpoint): Add enable count command.
7399 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7401 * rl78-tdep.c (reggroups.h): Include.
7402 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7403 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7404 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7405 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7406 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7407 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7408 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7409 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7410 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7411 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7412 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7413 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7414 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7415 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7416 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7417 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7418 beginning of register list.
7419 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7420 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7421 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7422 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7423 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7424 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7425 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7426 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7427 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7428 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7429 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7430 the pseudo registers. Rearrange other pseudo registers too so
7431 that the bank registers appear at the end.
7432 (rl78_register_type): Account for the fact that the byte sized
7433 bank registers are now pseudo-registers.
7434 (rl78_register_name): Rearrange the register name array. Make
7435 initial set of raw banked registers inaccessible.
7436 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7437 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7438 case for copying bytes back and forth between raw and pseudo
7439 versions of the banked registers. Update other cases to reflect
7441 (rl78_return_value): Update to account for changed names of
7443 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7444 rl78_register_sim_regno().
7446 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7448 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7449 the name parameter being passed to find_pc_partial_function().
7451 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7453 * MAINTAINERS: Step down from being ia64 target maintainer.
7455 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7457 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7458 compilation warning.
7460 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7462 Fix crash on loaded shlibs without loaded exec_bfd.
7463 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7464 (set_section_command): Replace exec_bfd by p->bfd.
7466 2012-02-10 Tom Tromey <tromey@redhat.com>
7468 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7469 when we have a C++ qualified name.
7471 2012-02-10 Pedro Alves <palves@redhat.com>
7473 * inferior.c (inferior_pid_to_str): New.
7474 (print_inferior, inferior_command): Use it.
7476 2012-02-10 Pedro Alves <palves@redhat.com>
7478 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7480 * configure: Regenerate.
7482 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7484 * linespec.c (decode_line_internal): Fix comment correctness.
7486 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7489 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7490 * amd64bsd-nat.c: Add support for debug registers (adapted from
7492 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7493 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7494 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7495 (amd64bsd_dr_get_control): New functions.
7496 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7497 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7498 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7499 watchpoints initialization.
7500 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7502 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7504 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7506 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7508 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7510 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7512 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7514 * language.h (symbol_name_cmp_ftype): Renames
7515 symbol_name_match_p_ftype.
7516 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7517 la_get_symbol_name_match_p.
7518 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7519 ada_get_symbol_name_match_p. Update comment.
7520 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7521 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7522 Renames symbol_name_match_p. Update field type.
7523 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7524 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7525 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7526 "la_get_symbol_name_cmp" in comments.
7527 * language.c: Likewise.
7529 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7531 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7533 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7534 (amd64_sol2_gregset32_reg_offs): Likewise.
7536 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7538 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7539 of the returned BFD is allocated by GDB.
7541 2012-02-07 Tom Tromey <tromey@redhat.com>
7544 * python/python-internal.h (frame_object_type): Declare.
7545 * python/py-symbol.c (sympy_needs_frame): New function.
7546 (sympy_value): New function.
7547 (symbol_object_getset): Add "needs_frame".
7548 (symbol_object_methods): Add "value".
7549 * python/py-frame.c (frame_object_type): No longer static.
7551 2012-02-07 Tom Tromey <tromey@redhat.com>
7554 * python/py-symbol.c (sympy_line): New function.
7555 (symbol_object_getset): Add "line".
7557 2012-02-07 Tom Tromey <tromey@redhat.com>
7559 * charset.c (find_charset_names): Check 'in' against NULL.
7561 2012-02-06 Doug Evans <dje@google.com>
7563 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7564 and fields.name members from char * to const char *. All uses updated.
7565 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7566 from char * to const char *. All uses updated.
7567 (type_name_no_tag): Update.
7568 (lookup_unsigned_typename, lookup_signed_typename): Update.
7569 * gdbtypes.c (type_name_no_tag): Change result type
7570 from char * to const char *. All callers updated.
7571 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7572 name parameter from char * to const char *.
7573 * symtab.h (struct cplus_specific): Change type of demangled_name
7574 member from char * to const char *. All uses updated.
7575 (struct general_symbol_info): Change type of name and
7576 mangled_lang.demangled_name members from char * to const char *.
7578 (symbol_get_demangled_name, symbol_natural_name): Update.
7579 (symbol_demangled_name, symbol_search_name): Update.
7580 * symtab.c (symbol_get_demangled_name): Change result type
7581 from char * to const char *. All callers updated.
7582 (symbol_natural_name, symbol_demangled_name): Ditto.
7583 (symbol_search_name): Ditto.
7584 (completion_list_add_name): Change type of symname,sym_text,
7585 text,word parameters from char * to const char *.
7586 (completion_list_objc_symbol): Change type of sym_text,
7587 text,word parameters from char * to const char *.
7588 * ada-lang.c (find_struct_field): Change type of name parameter
7589 from char * to const char *.
7590 (encoded_ordered_before): Similarly for N0,N1 parameters.
7591 (old_renaming_is_invisible): Similarly for function_name parameter.
7592 (ada_type_name): Change result type from char * to const char *.
7593 All callers updated.
7594 * ada-lang.h (ada_type_name): Update.
7595 * buildsym.c (hashname): Change type of name parameter
7596 from char * to const char *.
7597 * buildsym.h (hashname): Update.
7598 * dbxread.c (end_psymtab): Change type of include_list parameter
7599 from char ** to const char **.
7600 * dwarf2read.c (determine_prefix): Change result type
7601 from char * to const char *. All callers updated.
7602 * f-lang.c (find_common_for_function): Change type of name, funcname
7603 parameters from char * to const char *.
7604 * f-lang.c (find_common_for_function): Update.
7605 * f-valprint.c (list_all_visible_commons): Change type of funcname
7606 parameters from char * to const char *.
7607 * gdbarch.sh (static_transform_name): Change type of name parameter
7608 and result from char * to const char *.
7609 * gdbarch.c: Regenerate.
7610 * gdbarch.h: Regenerate.
7611 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7612 of name parameter from char * to const char *.
7613 * jv-lang.c (java_primitive_type_from_name): Ditto.
7614 (java_demangled_signature_length): Similarly for signature parameter.
7615 (java_demangled_signature_copy): Ditto.
7616 (java_demangle_type_signature): Ditto.
7617 * jv-lang.h (java_primitive_type_from_name): Update.
7618 (java_demangle_type_signature): Update.
7619 * objc-lang.c (specialcmp): Change type of a,b parameters
7620 from char * to const char *.
7621 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7622 from char * to const char *. All callers updated.
7623 * p-lang.h (is_pascal_string_type): Update.
7624 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7625 of name parameter from char * to const char *.
7626 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7627 * utils.c (fprintf_symbol_filtered): Ditto.
7628 * defs.h (fprintf_symbol_filtered): Update.
7629 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7630 * stabsread.h (end_psymtab): Update.
7631 * stack.c (find_frame_funname): Change type of funname parameter
7632 from char ** to const char **.
7633 * stack.h (find_frame_funname): Update.
7634 * typeprint.c (type_print): Change type of varstring parameter
7635 from char * to const char *.
7636 * value.h (type_print): Update.
7637 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7638 from char * to const char *. All callers updated.
7639 (xcoff_end_psymtab): Change type of include_list parameter
7640 from char ** to const char **. All callers updated.
7641 (swap_sym): Similarly for name parameter. All callers updated.
7642 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7644 (process_coff_symbol): Use xstrdup.
7645 * stabsread.c (stabs_method_name_from_physname): Renamed from
7646 update_method_name_from_physname. Change result type from void
7647 to char *. All callers updated.
7648 (read_member_functions): In has_destructor case, store name in objfile
7649 obstack instead of malloc space. In !has_stub case, fix mem leak.
7651 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7653 * configure: Rebuild.
7654 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7657 2012-02-03 Kevin Buettner <kevinb@redhat.com>
7659 * configure.tgt (rl78-*-elf): New target.
7660 * rl78-tdep.c: New file.
7662 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7664 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7665 and continue the loop. Add QUIT statement.
7667 2012-02-03 Tom Tromey <tromey@redhat.com>
7670 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7671 bfd_lookup_symbol_from_symtab.
7672 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7673 gdb_bfd_lookup_symbol_from_symtab.
7675 2012-02-03 Joel Brobecker <brobecker@adacore.com>
7677 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7678 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7679 symbol. Add assertion that sym2 is never NULL.
7681 2012-02-02 Doug Evans <dje@google.com>
7683 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7684 "name" parameter to const char ** from char **. All callers updated.
7685 (find_pc_partial_function): Ditto.
7686 (cache_pc_function_name): Change type to const char * from char *.
7687 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7688 (find_pc_partial_function): Update.
7689 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7690 type of "name" parameter to const char * from char *.
7692 * arch-utils.c (generic_in_solib_return_trampoline): Change
7693 type of "name" parameter to const char * from char *.
7694 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7695 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7696 type of "name" parameter to const char * from char *.
7697 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7698 * gdbarch.c: Regenerate.
7699 * gdbarch.h: Regenerate.
7700 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7701 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7702 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7703 type of "name" parameter to const char * from char *.
7704 * skip.c (skip_function_pc): Ditto.
7705 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7706 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7707 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7708 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7709 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7710 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7711 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7712 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7713 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7715 2012-02-02 Pedro Alves <palves@redhat.com>
7717 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7718 the current inferior has no execution. Make sure the current
7719 remote process matches gdb's current inferior.
7721 2012-02-02 Tom Tromey <tromey@redhat.com>
7724 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7727 2012-02-02 Tom Tromey <tromey@redhat.com>
7730 * symtab.c (lookup_language_this): Set block_found.
7732 2012-02-01 Tom Tromey <tromey@redhat.com>
7735 * jit.c (struct jit_inferior_data): Rewrite.
7736 (struct jit_objfile_data): New.
7737 (get_jit_objfile_data): New function.
7738 (add_objfile_entry): Update.
7739 (jit_read_descriptor): Return int. Replace descriptor_addr
7740 argument with inf_data. Update. Don't call error.
7741 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7743 (jit_inferior_init): Don't look up descriptor. Don't call error.
7744 (jit_reset_inferior_data_and_breakpoints)
7745 (jit_inferior_created_observer): Remove.
7746 (jit_inferior_exit_hook): Update.
7747 (jit_executable_changed_observer): Remove.
7748 (jit_event_handler): Update.
7749 (free_objfile_data): Reset inferior data if needed.
7750 (_initialize_jit): Update.
7752 2012-02-01 Tom Tromey <tromey@redhat.com>
7754 * jit.c (bfd_open_from_target_memory): Move higher in file.
7756 2012-02-01 Tristan Gingold <gingold@adacore.com>
7758 * libunwind-frame.c (libunwind_load): Display message if dlopen
7761 2012-02-01 Gary Benson <gbenson@redhat.com>
7763 * symtab.h (symbol_found_callback_ftype): New typedef.
7764 (iterate_over_symbols): Use the above.
7765 * symtab.c (iterate_over_symbols): Likewise.
7766 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7767 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7768 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7769 (iterate_name_matcher): Document return values.
7770 (collect_one_symbol): Likewise.
7771 (collect_function_symbols): Likewise.
7772 (collect_symbols): Likewise.
7774 2012-02-01 Tom Tromey <tromey@redhat.com>
7776 * ada-lang.c (resolve_subexp): Update.
7777 (ada_lookup_symbol_list): Add 'full_search' argument.
7778 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7779 ada_lookup_symbol_list.
7780 (ada_lookup_encoded_symbol): Update.
7781 (get_var_value): Update.
7782 * ada-exp.y (block_lookup): Update.
7783 (write_var_or_type): Update.
7784 (write_name_assoc): Update.
7785 * ada-lang.h (ada_lookup_symbol_list): Update.
7787 2012-01-31 Tom Tromey <tromey@redhat.com>
7789 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7792 2012-01-31 Doug Evans <dje@google.com>
7794 * symtab.h: Remove outdated comment.
7795 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7797 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
7799 Fix build error in Darwin port.
7800 * i386-darwin-nat.c: Include i386-nat.h.
7802 2012-01-30 Tom Tromey <tromey@redhat.com>
7804 PR breakpoints/13568:
7805 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7806 argument. Check for recursive includes.
7807 (dwarf_decode_macros): Create an include hash.
7809 2012-01-30 Michael Eager <eager@eagercon.com>
7811 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7812 * ppc-linux-tdep.c: Include glibc-tdep.h.
7813 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7814 (powerpc_linux_in_plt_stub): New function.
7815 (powerpc_linux_in_dynsym_resolve_code): New function.
7816 (ppc_skip_trampoline_code): New function.
7817 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7818 Use glibc_skip_solib_resolver.
7820 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7822 Code cleanup: Make 1440 bytes of data segment read-only.
7823 * arch-utils.c (endian_enum): Make it const char *const [].
7824 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7826 * breakpoint.c (always_inserted_enums): Likewise.
7827 * cli/cli-cmds.c (script_ext_enums): Likewise.
7828 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7829 enumlist parameter const char *const *.
7830 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7831 const char *const *.
7832 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7833 parameter const char *const *.
7834 * cris-tdep.c (cris_modes): Make it const char *const [].
7835 * filesystem.c (target_file_system_kinds): Likewise.
7836 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7837 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7838 (can_use_displaced_stepping_enum, scheduler_enums)
7839 (exec_direction_names): Likewise.
7840 * language.c (_initialize_language): Make the type_or_range_names and
7841 case_sensitive_names variables const char *const [].
7842 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7843 * python/python.c (python_excp_enums): Likewise.
7844 * remote.c (interrupt_sequence_modes): Likewise.
7845 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7846 * serial.c (logbase_enums): Likewise.
7847 * sh-tdep.c (sh_cc_enum): Likewise.
7848 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7850 * symtab.c (multiple_symbols_modes): Likewise.
7851 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7853 * utils.c (internal_problem_modes): Likewise.
7855 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7857 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7858 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7861 2012-01-27 Doug Evans <dje@google.com>
7863 * configure.ac (with_python): Fix absolute path handling for win32.
7864 * configure: Regenerate.
7866 2012-01-26 Doug Evans <dje@google.com>
7868 * symtab.c: Whitespace cleanup, no code changes.
7870 * symtab.c (lookup_symbol_in_language): Improve comment.
7871 (lookup_symbol_aux): Fix comment.
7873 * psymtab.c (add_psymbol_to_list): Result is now "void".
7874 * psympriv.h (add_psymbol_to_list): Update.
7876 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7878 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7880 Do not open script filenames twice.
7881 * cli/cli-cmds.c (source_script_from_stream): Pass to
7882 source_python_script also STREAM.
7883 * python/py-auto-load.c (source_section_scripts): Pass to
7884 source_python_script_for_objfile also STREAM.
7885 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7887 * python/python-internal.h (source_python_script_for_objfile): New
7888 parameter file, rename parameter file to filename.
7889 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7890 instead if !_WIN32. Update the function comment.
7891 (source_python_script, source_python_script_for_objfile)
7892 (source_python_script): New parameter file, rename parameter file to
7893 filename. Pass FILENAME to python_run_simple_file.
7894 * python/python.h (source_python_script): New parameter file, rename
7895 parameter file to filename.
7897 2012-01-26 Pedro Alves <palves@redhat.com>
7899 * corelow.c (core_has_fake_pid): Delete.
7900 (core_close): Delete references to `core_has_fake_pid'.
7901 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7902 (core_open): Delete references to `core_has_fake_pid'.
7903 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7906 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7908 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7909 Remove language parameter from name_matcher. Adjust the comment.
7910 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
7911 Remove language parameter.
7912 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
7913 * linespec.c (iterate_name_matcher): Likewise.
7914 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
7915 name_matcher. Adjust call accordingly.
7916 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
7917 (maintenance_check_symtabs): Adjust type of parameter "fun".
7918 * psymtab.h (maintenance_check_symtabs): Likewise.
7920 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7922 * language.h (symbol_name_match_p_ftype): New typedef.
7923 (struct language_defn): Replace field la_symbol_name_compare
7924 by la_get_symbol_name_match_p.
7925 * ada-lang.c (ada_get_symbol_name_match_p): New function.
7926 (ada_language_defn): Use it.
7927 * linespec.c (struct symbol_matcher_data): New type.
7928 (iterate_name_matcher): Rewrite.
7929 (iterate_over_all_matching_symtabs): Pass a pointer to
7930 a symbol_matcher_data struct to expand_symtabs_matching
7931 instead of just the lookup name.
7932 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7933 opencl-lang.c, p-lang.c, language.c: Delete field
7934 la_symbol_name_compare, and replace by NULL for new field
7935 la_get_symbol_name_match_p.
7936 * symfile.h (struct quick_symbol_functions): Update comment.
7938 2012-01-25 Tom Tromey <tromey@redhat.com>
7940 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
7943 2012-01-24 Tom Tromey <tromey@redhat.com>
7946 * solib.c (update_solib_list): Update the program space's
7947 added_solibs and deleted_solibs fields.
7948 * progspace.h (struct program_space) <added_solibs,
7949 deleted_solibs>: New fields.
7950 (clear_program_space_solib_cache): Declare.
7951 * progspace.c (release_program_space): Call
7952 clear_program_space_solib_cache.
7953 (clear_program_space_solib_cache): New function.
7954 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
7955 bpstat_stop_status. Use handle_solib_event.
7956 * breakpoint.c: Include gdb_regex.h.
7957 (print_solib_event): New function.
7958 (bpstat_print): Use print_solib_event.
7959 (bpstat_stop_status): Add special case for bp_shlib_event.
7960 (handle_solib_event): New function.
7961 (bpstat_what): Use handle_solib_event.
7962 (struct solib_catchpoint): New.
7963 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
7964 (breakpoint_hit_catch_solib, check_status_catch_solib)
7965 (print_it_catch_solib, print_one_catch_solib)
7966 (print_mention_catch_solib, print_recreate_catch_solib): New
7968 (catch_solib_breakpoint_ops): New global.
7969 (catch_load_or_unload, catch_load_command_1)
7970 (catch_unload_command_1): New functions.
7971 (internal_bkpt_check_status): Add special case for
7973 (internal_bkpt_print_it): Use print_solib_event.
7974 (initialize_breakpoint_ops): Initialize
7975 catch_solib_breakpoint_ops.
7976 (_initialize_breakpoint): Register "catch load" and "catch
7978 * breakpoint.h (handle_solib_event): Declare.
7979 * NEWS: Add entry for "catch load" and "catch unload".
7981 2012-01-24 Tom Tromey <tromey@redhat.com>
7983 * ada-lang.c: Include gdb_vecs.h.
7984 * charset.c: Include gdb_vecs.h.
7985 * tracepoint.h: Include gdb_vecs.h.
7986 * gdb_vecs.h: New file.
7988 2012-01-24 Pedro Alves <pedro@codesourcery.com>
7990 * breakpoint.c (breakpoint_hit_catch_fork)
7991 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
7992 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
7993 * infrun.c (inferior_has_forked, inferior_has_vforked)
7994 (inferior_has_execd, inferior_has_called_syscall): Delete.
7995 (handle_syscall_event): Get syscall_number from the execution
7996 control state's wait status.
7997 (wait_for_inferior): Don't clear syscall_number.
7999 2012-01-24 Pedro Alves <palves@redhat.com>
8001 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
8002 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
8003 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
8004 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
8006 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
8007 false for events other than TARGET_SIGNAL_TRAP.
8008 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
8010 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
8011 events other than TARGET_SIGNAL_TRAP.
8012 (tracepoint_breakpoint_hit): Add `ws' parameter.
8013 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
8015 (bpstat_stop_status): Same.
8016 (pc_at_non_inline_function): Same.
8017 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
8018 to pass the current event's waitstatus to bpstat_stop_status
8019 and pc_at_non_inline_function.
8021 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8024 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
8025 Update the function comment for it.
8026 (source_script_with_search): Call make_cleanup_fclose for STREAM.
8027 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
8030 2012-01-24 Pedro Alves <palves@redhat.com>
8032 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
8033 outside `bs->stop' block.
8034 (bpstat_what): Rework bp_shlib_event handling.
8035 (internal_bkpt_check_status): If the breakpoint is a
8036 bp_shlib_event, then set bs->stop and bs->print if
8037 stop_on_solib_events is set.
8039 2012-01-24 Gary Benson <gbenson@redhat.com>
8041 Delete #if 0'd out code.
8042 * stack.c (print_frame_label_vars): Remove.
8043 (catch_info): Likewise.
8044 (_initialize_stack): Remove "info catch" command.
8045 * NEWS: Mention the above.
8047 2012-01-24 Pedro Alves <palves@redhat.com>
8049 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
8051 (remote_notice_new_inferior): If the remote end doesn't support
8052 the multiprocess extensions, then the PID is fake.
8053 (add_current_inferior_and_thread): New.
8054 (remote_start_remote): Use it.
8055 (extended_remote_attach_1): Adjust.
8056 (extended_remote_create_inferior_1): Use
8057 add_current_inferior_and_thread.
8059 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8061 Fix watchpoints to be specific for each inferior.
8062 * breakpoint.c (watchpoint_in_thread_scope): Verify also
8063 current_program_space.
8064 * i386-nat.c (i386_inferior_data_cleanup): New.
8065 (i386_inferior_data_get): Replace variable inf_data_local by an
8067 (i386_use_watchpoints): Initialize i386_inferior_data.
8068 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
8069 specific iterate_over_lwps.
8071 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8073 Fix watchpoints across inferior fork.
8074 * amd64-linux-nat.c (update_debug_registers_callback): Update the
8075 comment for linux_nat_iterate_watchpoint_lwps.
8076 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8077 linux_nat_iterate_watchpoint_lwps.
8078 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8079 * i386-linux-nat.c (update_debug_registers_callback): Update the
8080 comment for linux_nat_iterate_watchpoint_lwps.
8081 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8082 linux_nat_iterate_watchpoint_lwps.
8083 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8084 * i386-nat.c: Include inferior.h.
8085 (dr_mirror): Remove.
8086 (i386_inferior_data, struct i386_inferior_data)
8087 (i386_inferior_data_get): New.
8088 (i386_debug_reg_state): Use i386_inferior_data_get.
8089 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8090 (i386_insert_watchpoint, i386_remove_watchpoint)
8091 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8092 (i386_remove_hw_breakpoint): New variable state, use
8093 i386_debug_reg_state instead of DR_MIRROR.
8094 * linux-nat.c (delete_lwp): New declaration.
8095 (num_lwps): Move here from downwards.
8096 (delete_lwp_cleanup): New.
8097 (linux_child_follow_fork): Create new child_lp, call
8098 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8100 (num_lwps): Move upwards.
8101 (linux_nat_iterate_watchpoint_lwps): New.
8102 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8103 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8105 2012-01-24 Joel Brobecker <brobecker@adacore.com>
8109 2012-01-23 Pedro Alves <palves@redhat.com>
8111 * top.c (caution): Rename to ...
8112 (confirm): ... this.
8113 (show_caution): Rename to ...
8114 (show_confirm): ... this.
8115 (quit_cover): Adjust.
8116 (init_main): Adjust.
8117 * top.h (caution): Rename to ...
8118 (confirm): ... this.
8119 * utils.c (internal_vproblem, defaulted_query): Adjust.
8121 2012-01-23 Pedro Alves <palves@redhat.com>
8123 * top.c (caution): Update comment.
8124 (execute_command): Don't consider the current value of `caution'.
8126 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8128 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8130 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8132 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8133 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8134 * target.c (target_fileio_pwrite): Remove buffer address from
8136 (target_fileio_pread): Likewise.
8138 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8140 * NEWS: Document remote "info proc" and "generate-core-file".
8142 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8144 * gdbarch.sh (find_memory_regions): New callback.
8145 * gdbarch.c, gdbarch.h: Regenerate.
8147 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8148 callback before falling back to target method.
8150 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8151 (linux_target_install_ops): No longer install it.
8153 * linux-tdep.c (linux_find_memory_regions): New function.
8154 (linux_init_abi): Install it.
8156 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8158 * gdbarch.sh (make_corefile_notes): New architecture callback.
8159 * gdbarch.c: Regenerate.
8160 * gdbarch.h: Likewise.
8162 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8163 before target_make_corefile_notes. If NULL is returned, the
8164 target does not support core file generation.
8166 * linux-nat.c: Include "linux-tdep.h".
8167 (find_signalled_thread, find_stop_signal): Remove.
8168 (linux_nat_do_thread_registers): Likewise.
8169 (struct linux_nat_corefile_thread_data): Likewise.
8170 (linux_nat_corefile_thread_callback): Likewise.
8171 (iterate_over_spus): Likewise.
8172 (struct linux_spu_corefile_data): Likewise.
8173 (linux_spu_corefile_callback): Likewise.
8174 (linux_spu_make_corefile_notes): Likewise.
8175 (linux_nat_collect_thread_registers): New function.
8176 (linux_nat_make_corefile_notes): Replace contents by call to
8177 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8178 as native-only callback.
8180 * linux-tdep.h: Include "bfd.h".
8181 (struct regcache): Add forward declaration.
8182 (linux_collect_thread_registers_ftype): New typedef.
8183 (linux_make_corefile_notes): Add prototype.
8184 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8185 "regset.h", and "elf-bfd.h".
8186 (find_signalled_thread, find_stop_signal): New functions.
8187 (linux_spu_make_corefile_notes): Likewise.
8188 (linux_collect_thread_registers): Likewise.
8189 (struct linux_corefile_thread_data): New data structure.
8190 (linux_corefile_thread_callback): New funcion.
8191 (linux_make_corefile_notes): Likewise.
8192 (linux_make_corefile_notes_1): Likewise.
8193 (linux_init_abi): Install it.
8195 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8197 * gdbarch.sh (info_proc): New callback.
8198 * gdbarch.c, gdbarch.h: Regenerate.
8200 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8201 before falling back to the target info_proc callback.
8203 * linux-nat.c: Do not include "cli/cli-utils.h".
8204 (linux_nat_info_proc): Remove.
8205 (linux_target_install_ops): No longer install it.
8207 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8208 (read_mapping): New function.
8209 (linux_info_proc): Likewise.
8210 (linux_init_abi): Install it.
8212 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8214 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8215 * infcmd.c: (info_proc_cmd_1): New function.
8216 (info_proc_cmd): New function, moved here from equivalent routine
8217 orignally in linux-nat.c.
8218 (info_proc_cmd_mappings): Likewise.
8219 (info_proc_cmd_stat): Likewise.
8220 (info_proc_cmd_status): Likewise.
8221 (info_proc_cmd_cwd): Likewise.
8222 (info_proc_cmd_cmdline): Likewise.
8223 (info_proc_cmd_exe): Likewise.
8224 (info_proc_cmd_all): Likewise.
8225 (_initialize_infcmd): Install "info proc" command and subcommands.
8227 * target.h (struct target_ops): Add to_info_proc.
8228 (target_info_proc): Add prototype.
8229 * target.c (target_info_proc): New function.
8231 * procfs.c (procfs_info_proc): Add prototype.
8232 (info_proc_cmd): Rename into ...
8233 (procfs_info_proc): ... this. Update argument types as appropriate
8234 for a to_info_proc implementation. Handle "what" argument.
8235 (procfs_target): Install procfs_info_proc.
8236 (_initialize_procfs): No longer install "info proc" command.
8238 * linux-nat.c: (enum info_proc_what): Remove.
8239 (linux_nat_info_proc_cmd_1): Rename into ...
8240 (linux_nat_info_proc): ... this. Update argument types as appropriate
8241 for a to_info_proc implementation.
8242 (linux_nat_info_proc_cmd): Remove.
8243 (linux_nat_info_proc_cmd_mappings): Likewise.
8244 (linux_nat_info_proc_cmd_stat): Likewise.
8245 (linux_nat_info_proc_cmd_status): Likewise.
8246 (linux_nat_info_proc_cmd_cwd): Likewise.
8247 (linux_nat_info_proc_cmd_cmdline): Likewise.
8248 (linux_nat_info_proc_cmd_exe): Likewise.
8249 (linux_nat_info_proc_cmd_all): Likewise.
8250 (linux_target_install_ops): Install linux_nat_info_proc.
8251 (_initialize_linux_nat): No longer install "info proc" command
8254 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8256 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8257 * config.in, configure: Regenerate.
8259 * target.h (struct target_ops): Add to_fileio_readlink.
8260 (target_fileio_readlink): Add prototype.
8261 * target.c (target_fileio_readlink): New function.
8263 * inf-child.c: Conditionally include <sys/param.h>.
8264 (inf_child_fileio_readlink): New function.
8265 (inf_child_target): Install it.
8267 * remote.c (PACKET_vFile_readlink): New enum value.
8268 (remote_hostio_readlink): New function.
8269 (init_remote_ops): Install it.
8270 (_initialize_remote): Handle vFile:readlink packet type.
8272 2012-01-20 Pedro Alves <palves@redhat.com>
8273 Ulrich Weigand <ulrich.weigand@linaro.org>
8275 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8276 * config.in, configure: Regenerate.
8278 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8279 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8280 (target_fileio_open): Add prototype.
8281 (target_fileio_pwrite): Likewise.
8282 (target_fileio_pread): Likewise.
8283 (target_fileio_close): Likewise.
8284 (target_fileio_unlink): Likewise.
8285 (target_fileio_read_alloc): Likewise.
8286 (target_fileio_read_stralloc): Likewise.
8288 * target.c: Include "gdb/fileio.h".
8289 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8290 (default_fileio_target): New function.
8291 (target_fileio_open): Likewise.
8292 (target_fileio_pwrite): Likewise.
8293 (target_fileio_pread): Likewise.
8294 (target_fileio_close): Likewise.
8295 (target_fileio_unlink): Likewise.
8296 (target_fileio_close_cleanup): Likewise.
8297 (target_fileio_read_alloc_1): Likewise.
8298 (target_fileio_read_alloc): Likewise.
8299 (target_fileio_read_stralloc): Likewise.
8301 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8302 <fcntl.h>, and <unistd.h>.
8303 (inf_child_fileio_open_flags_to_host): New function.
8304 (inf_child_errno_to_fileio_error): Likewise.
8305 (inf_child_fileio_open): Likewise.
8306 (inf_child_fileio_pwrite): Likewise.
8307 (inf_child_fileio_pread): Likewise.
8308 (inf_child_fileio_close): Likewise.
8309 (inf_child_fileio_unlink): Likewise.
8310 (inf_child_target): Install to_fileio routines.
8312 * remote.c (init_remote_ops): Install to_fileio routines.
8314 2012-01-20 Pedro Alves <palves@redhat.com>
8315 Ulrich Weigand <ulrich.weigand@linaro.org>
8317 * remote.c (remote_multi_process_p): Only check for multi-process
8318 protocol feature, do not check for extended protocol.
8319 (remote_supports_multi_process): Check for extended protocol here.
8320 (set_general_process): Likewise.
8321 (extended_remote_kill): Likewise.
8322 (remote_pid_to_str): Likewise.
8323 (remote_query_supported): Always query multiprocess mode.
8325 2012-01-20 Pedro Alves <palves@redhat.com>
8326 Ulrich Weigand <ulrich.weigand@linaro.org>
8328 * inferior.h (struct inferior): Add fake_pid_p.
8329 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8330 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8331 magic_null_ptid since the remote side doesn't provide a real PID.
8333 2012-01-19 Tom Tromey <tromey@redhat.com>
8335 * NEWS: Combine the two Python sections.
8337 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8339 * target.h (target_close): Update comment on the target's unpush state.
8341 2012-01-19 Pedro Alves <palves@redhat.com>
8343 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8344 linux_nat_async directly instead of going through the target
8346 * target.c (unpush_target): Close target after unpushing it, not
8349 2012-01-19 Gary Benson <gbenson@redhat.com>
8351 * mdebugread.c (sort_blocks): Replace integer constants with ones
8352 derived from FIRST_LOCAL_BLOCK.
8354 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8355 Jan Kratochvil <jan.kratochvil@redhat.com>
8358 * symfile.c (find_separate_debug_file): New function.
8359 (terminate_after_last_dir_separator): Likewise.
8360 (find_separate_debug_file_by_debuglink): Also try realpath.
8361 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8362 * configure: Regenerate.
8363 * config.in: Regenerate.
8365 2012-01-18 Doug Evans <dje@google.com>
8367 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8368 (main.o): Remove rule.
8369 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8370 (--with-sysroot): Rewrite.
8371 * configure: Regenerate.
8372 * config.in: Regenerate.
8374 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8376 * parse.c (initialize_expout): New function.
8377 (reallocate_expout): Likewise.
8378 (parse_exp_in_context): Use `initialize_expout' and
8379 `reallocate_expout' when appropriate.
8381 2012-01-18 Pedro Alves <palves@redhat.com>
8383 * record.c (struct record_breakpoint, record_breakpoint_p)
8384 (record_breakpoints): New.
8385 (record_insert_breakpoint, record_remove_breakpoint): Manage
8386 record breakpoints list. Only remove breakpoints from the
8387 inferior if they had been inserted there in the first place.
8389 2012-01-17 Doug Evans <dje@google.com>
8391 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8392 if we know we don't have a file name to look for.
8394 2012-01-17 Pedro Alves <palves@redhat.com>
8396 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8397 the frame's stop reason is UNWIND_UNAVAILABLE.
8399 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8401 Fix compilation error.
8402 * m2-exp.y (yyerror): Use ANSI C prototype.
8404 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8406 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8407 (growbuf_by_size): Likewise.
8408 (yyerror): Likewise.
8409 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8410 (modblock): Remove variable (was #if 0'ed).
8411 (parse_number): Convert prototype from K&R to ANSI C.
8412 (yyerror): Likewise.
8413 * objc-exp.y (parse_number): Likewise.
8414 (yyerror): Likewise.
8415 (yylex): Remove #if 0'ed code.
8416 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8417 (yyerror): Likewise.
8419 2012-01-16 Tom Tromey <tromey@redhat.com>
8422 * symtab.h (compare_filenames_for_search): Declare.
8423 * symtab.c (compare_filenames_for_search): New function.
8424 (iterate_over_some_symtabs): Use it.
8425 * symfile.h (struct quick_symbol_functions)
8426 <map_symtabs_matching_filename>: Change spec.
8427 * psymtab.c (partial_map_symtabs_matching_filename): Use
8428 compare_filenames_for_search. Update for new spec.
8429 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8430 compare_filenames_for_search. Update for new spec.
8431 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8433 2012-01-16 Tom Tromey <tromey@redhat.com>
8436 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8437 (struct main_type) <flag_flag_enum>: New field.
8438 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8439 * NEWS: Add entries.
8440 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8442 * python/lib/gdb/printing.py (_EnumInstance): New class.
8443 (FlagEnumerationPrinter): Likewise.
8445 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8447 * breakpoint.c (create_sals_from_address_default): New function.
8448 (create_breakpoints_sal_default): Likewise.
8449 (decode_linespec_default): Likewise.
8450 (is_marker_spec): Removed.
8451 (strace_marker_p): New function.
8452 (init_breakpoint_sal): Using `strace_marker_p' instead of
8454 (create_breakpoint): Call method `create_sals_from_address' from
8455 breakpoint_ops, replacing code that created SALs conditionally
8456 on the type of the breakpoint. Call method `create_breakpoints_sal',
8457 replacing code that created breakpoints conditionally on the type
8459 (base_breakpoint_create_sals_from_address): New function.
8460 (base_breakpoint_create_breakpoints_sal): Likewise.
8461 (base_breakpoint_decode_linespec): Likewise.
8462 (base_breakpoint_ops): Add methods
8463 `base_breakpoint_create_sals_from_address',
8464 `base_breakpoint_create_breakpoints_sal' and
8465 `base_breakpoint_decode_linespec'.
8466 (bkpt_create_sals_from_address): New function.
8467 (bkpt_create_breakpoints_sal): Likewise.
8468 (bkpt_decode_linespec): Likewise.
8469 (tracepoint_create_sals_from_address): Likewise.
8470 (tracepoint_create_breakpoints_sal): Likewise.
8471 (tracepoint_decode_linespec): Likewise.
8472 (strace_marker_create_sals_from_address): Likewise.
8473 (strace_marker_create_breakpoints_sal): Likewise.
8474 (strace_marker_decode_linespec): Likewise.
8475 (strace_marker_breakpoint_ops): New variable.
8476 (addr_string_to_sals): Remove `marker_spec'. Call method
8477 `decode_linespec' from breakpoint_ops, replacing code that decoded
8478 an address string into a SAL. Use `strace_marker_p' instead of
8480 (strace_command): Decide whether we are dealing with a static
8481 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8482 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8483 * breakpoint.h (linespec_result, linespec_sals): New forward
8485 (breakpoint_ops) <create_sals_from_address>,
8486 <create_breakpoints_sal>, <decode_linespec>: New methods.
8488 2012-01-14 Doug Evans <dje@google.com>
8490 * NEWS: Update text for "maint set python print-stack".
8491 It is deprecated in gdb 7.4 and deleted in 7.5.
8493 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8495 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8498 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8500 * configure: Regenerate.
8501 * config.in: Regenerate.
8503 2012-01-12 Keith Seitz <keiths@redhat.com>
8506 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8507 (ANONYMOUS_UNION_NAME): Define.
8508 (is_path_expr_parent): New function.
8509 (get_path_expr_parent): New function.
8510 (is_anonymous_child): New function.
8511 (create_child_with_value): If the child is anonymous and without
8512 a name, assign an object name to it.
8513 (c_describe_child): Use get_path_expr_parent to determine
8514 the parent expression.
8515 If there field represents an anonymous struct or union and
8516 has no name, set an appropriate display name and expression.
8517 (cplus_describe_child): Likewise.
8519 2012-01-12 Pedro Alves <palves@redhat.com>
8521 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8522 available when %ebp is found to be zero (outermost).
8524 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8526 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8527 an internal gdb_static_assert.
8528 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8530 2012-01-11 Tom Tromey <tromey@redhat.com>
8533 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8534 catch" and "catch throw".
8536 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8538 * blockframe.c (block_innermost_frame): Start search from selected
8539 frame, if present, or otherwise the current frame.
8541 * c-exp.y (variable): Update innermost_block for
8542 'block COLONCOLON NAME' clause.
8543 * m2-exp.y (variable): Ditto.
8544 * objc-exp.y (variable): Ditto.
8546 2012-01-10 Tom Tromey <tromey@redhat.com>
8549 * python/python.c (finish_python_initialization): Set sys.argv.
8551 2012-01-10 Doug Evans <dje@google.com>
8553 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8554 "want_line_info". All callers updated.
8555 (dwarf_decode_lines_1): New function.
8556 (handle_DW_AT_stmt_list): Add function comment.
8557 New arg "want_line_info". All callers updated.
8558 (read_file_scope,read_type_unit_scope): Move comment from
8559 handle_DW_AT_stmt_list to here.
8561 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8563 Fix regression after libiberty/ update for GCC PR 6057 and others.
8564 * c-exp.y (operator) <OPERATOR DELETE>
8565 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8566 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8567 (make_builtin_type, make_name): New variable i, add gdb_assert.
8568 (operator) <OPERATOR NEW>: Update ARGS to 3.
8569 (operator) <OPERATOR DELETE>: Add trailing space.
8570 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8571 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8572 * cp-support.c (cp_canonicalize_string): Check NULL from
8573 cp_comp_to_string, call warning and return.
8575 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8577 Fix duplicate .o files after omitting libbfd.a.
8578 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8579 (SFILES): Add corelow.c.
8580 (COMMON_OBS): Add corelow.o.
8581 (ALLDEPFILES): Remove corelow.c.
8582 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8583 * config/alpha/alpha-osf3.mh: Likewise.
8584 * config/alpha/fbsd.mh: Likewise.
8585 * config/arm/nbsdaout.mh: Likewise.
8586 * config/arm/nbsdelf.mh: Likewise.
8587 * config/i386/i386gnu.mh: Likewise.
8588 * config/ia64/hpux.mh: Likewise.
8589 * config/ia64/linux.mh: Likewise.
8590 * config/m32r/linux.mh: Likewise.
8591 * config/m68k/linux.mh: Likewise.
8592 * config/mips/irix5.mh: Likewise.
8593 * config/mips/irix6.mh: Likewise.
8594 * config/pa/hpux.mh: Likewise.
8595 * config/pa/linux.mh: Likewise.
8596 * config/powerpc/aix.mh: Likewise.
8597 * config/sparc/linux.mh: Likewise.
8598 * config/sparc/linux64.mh: Likewise.
8599 * config/sparc/sol2.mh: Likewise.
8600 * config/vax/vax.mh: Likewise.
8601 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8602 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8603 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8604 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8605 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8606 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8607 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8608 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8609 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8610 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8611 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8612 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8613 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8614 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8615 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8616 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8617 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8618 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8619 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8620 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8621 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8622 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8623 corelow.o from gdb_target_obs.
8624 * corefile.c (core_target): Update the comment on NULL value.
8625 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8626 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8627 MATCHES. Drop YUMMY set on NULL.
8628 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8629 reclaim CORE_DATA if it is already NULL.
8631 2012-01-09 Doug Evans <dje@google.com>
8633 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8634 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8636 2012-01-09 Keith Seitz <keiths@redhat.com>
8638 * breakpoint.c (wrapper.h): Don't include.
8640 2012-01-09 Keith Seitz <keiths@redhat.com>
8642 * Makefile.in (SFILES): Remove wrapper.c.
8643 (HFILES_NO_SRCDIR): Remove wrapper.h.
8644 (COMMON_OBS): Remove wrapper.o.
8645 * cli/cli-interp.c: Don't inlude wrapper.h.
8646 * corelow.c: Likewise.
8647 (core_open): Replace gdb_target_find_new_threads with
8648 TRY_CATCH around target_find_new_threads.
8649 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8650 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8651 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8652 evaluate_expression.
8653 (varobj_set_value): Likewise for evaluate_expression and
8655 (install_new_variable): Likewise for value_fetch_lazy.
8656 (adjust_value_for_child_access): Likewise for value_ind.
8657 (c_describe_child): Likewise for value_subscript and
8659 (c_value_of_root): Likewise for evaluate_expression.
8660 * wrapper.c: Remove.
8661 * wrapper.h: Remove.
8663 2012-01-09 Doug Evans <dje@google.com>
8665 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8666 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8667 "abfd" args with "section". All callers updated.
8668 Error checking code moved ...
8669 (error_check_comp_unit_head): ... here. New function.
8670 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8671 Delete arg "abfd". New arg "type_offset". All callers updated.
8672 (create_debug_types_hash_table): Simplify by using
8673 read_and_check_type_unit_head.
8675 * parser-defs.h (namecopy): Delete.
8676 * parse.c (namecopy, namecopy_size): Move into copy_name.
8678 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8680 Partially fix duplicate .o files after omitting libbfd.a.
8681 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8682 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8683 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8684 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8685 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8686 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8687 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8689 2012-01-09 Pedro Alves <palves@redhat.com>
8691 * MAINTAINERS: Update my email address.
8693 2012-01-08 Doug Evans <dje@google.com>
8695 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8696 n_type_units. Rename type_comp_units to all_type_units.
8698 (add_signatured_type_cu_to_table): Renamed from
8699 add_signatured_type_cu_to_list. All callers updated.
8701 * gdbtypes.h (struct cplus_struct_type): Delete member
8702 nfn_fields_total. All uses removed.
8704 2012-01-06 Doug Evans <dje@google.com>
8706 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8708 (dwarf2_find_comp_unit): Delete.
8709 (process_psymtab_comp_unit): Make result "void".
8710 Delete args buffer, info_ptr, buffer_size, and replace with
8711 "section". All callers updated.
8712 (dwarf2_build_psymtabs_hard): Simplify.
8714 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8715 Thiago Jung Bauermann <bauerman@br.ibm.com>
8717 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8718 before `struct gdb_exception'.
8719 * breakpoint.c (update_global_location_list_nothrow)
8720 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8721 * cp-abi.c (value_rtti_type): Likewise.
8722 * cp-support.c (cp_validate_operator): Likewise.
8723 * infrun.c (insert_exception_resume_breakpoint)
8724 (check_exception_resume, keep_going): Likewise.
8725 * mi-interp.c (mi_breakpoint_created)
8726 (mi_breakpoint_modified): Likewise.
8727 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8728 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8729 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8731 2012-01-05 Doug Evans <dje@google.com>
8733 * dwarf2read.c (statement_prologue): Delete, unused.
8735 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8736 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8738 * dwarf2read.c (comp_unit_header): Delete, unused.
8740 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8742 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8743 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8745 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8747 * infrun.c (normal_stop): Don't skip calling the normal_stop
8748 observers if the thread was doing a multi-step, but stopped for
8749 some reason other than stepping.
8751 2012-01-05 Pedro Alves <alves.ped@gmail.com>
8753 * cli/cli-decode.h: Add comments.
8754 (CMD_LIST_AMBIGUOUS): Moved to command.h
8755 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8756 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8757 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8758 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8759 (add_com, add_com_alias, add_info, add_info_alias)
8760 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8762 * command.h: Add and adjust comments.
8763 (CMD_LIST_AMBIGUOUS): Moved here.
8764 (help_cmd, help_cmd_list): Delete declarations.
8766 2012-01-04 Doug Evans <dje@google.com>
8768 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8769 All callers updated.
8770 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8771 Replace all arguments with "per_cu". All callers updated.
8773 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8775 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8776 New arg "per_cu". All callers updated.
8778 Delete #if 0'd out code.
8779 * language.c (binop_result_type): Delete.
8780 (simple_type, ordered_type, same_type, integral_type): Delete.
8781 (numeric_type, character_type, string_type, boolean_type): Delete.
8782 (float_type, structured_type): Delete.
8783 * language.h: Update.
8785 2012-01-04 Tom Tromey <tromey@redhat.com>
8787 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8789 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8791 * corefile.c (close_exec_file): Delete.
8792 (reopen_exec_file): Remove commented out code that seems related
8793 to close_exec_file, which is being deleted here.
8794 * inferior.h (close_exec_file): Delete.
8795 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8797 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8799 * ada-lang.c: #include "cli/cli-utils.h".
8800 (get_selections): Use skip_spaces.
8801 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8802 (catch_ada_exception_command_split): Use skip_spaces.
8803 (ada_decode_assert_location): Likewise.
8805 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8807 * linespec.c (decode_line_internal): Check for C++ or Java
8808 compound constructs only if the current language is C, C++
8811 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8814 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8815 Joel Brobecker <brobecker@adacore.com>
8816 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8817 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8819 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8820 fall through into AT_ENTRY_POINT.
8821 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8823 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8824 PPC_INSN_SIZE skip to 3 times.
8826 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8828 * linespec.c (add_minsym): Preserve function descriptors.
8830 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8832 * breakpoint.c (all_locations_are_pending): Consider locations
8833 in program spaces executing during startup pending as well.
8835 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8837 Copyright year update in most files of the GDB Project.
8839 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8841 * copyright.sh: Delete.
8842 * copyright.py: Rewrite.
8844 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8846 * gnulib/extra/update-copyright: New file, imported from gnulib.
8848 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8850 * README (Copyright and License Notices): New section.
8852 2012-01-03 Tom Tromey <tromey@redhat.com>
8855 * python/py-value.c (valpy_dereference, valpy_get_address
8856 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8857 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8858 (valpy_absolute, valpy_richcompare): Free intermediate values.
8860 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8862 * ada-lang.c: Reformat the copyright notice.
8864 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8866 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8867 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8868 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8869 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8870 Revert this part of:
8871 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8872 Build gdb directly from *.o files not using libgdb.a.
8873 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8875 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8877 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8878 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8879 Reformat the copyright header.
8881 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8883 Revert this part of:
8884 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8885 Remove the gdbtui binary.
8886 * gdb.c (main): Remove args.interpreter_p initialization.
8887 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8888 * main.h (struct captured_main_args): Remove interpreter_p.
8890 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8892 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8894 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8896 * top.c (print_gdb_version): Update copyright year.
8898 2012-01-02 Yao Qi <yao@codesourcery.com>
8900 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8902 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8903 Joel Brobecker <brobecker@adacore.com>
8905 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8906 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8908 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8909 fall through into AT_ENTRY_POINT.
8910 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8912 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8913 PPC_INSN_SIZE skip to 3 times.
8915 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8917 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
8919 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
8921 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8923 Build gdb directly from *.o files not using libgdb.a.
8924 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
8925 (COMMON_OBS): Remove solib-target.o.
8926 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
8927 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8928 (LIBGDB_OBS, libgdb.a): Move it above.
8929 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
8930 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
8931 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
8932 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
8933 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
8934 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
8935 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
8936 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
8937 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
8938 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
8939 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
8940 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
8941 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
8942 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
8943 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8944 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
8945 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
8946 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8947 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
8948 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
8949 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
8950 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
8951 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
8952 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
8953 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
8954 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
8955 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
8957 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8959 Remove the gdbtui binary.
8960 * .gitignore (/gdbtui): Remove.
8961 * Makefile.in (TUI): Remove.
8962 (SUBDIR_TUI_OBS): Remove tui-main.o.
8963 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
8964 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
8965 (tui-main.o): Remove.
8966 (all_object_files): Remove tui-main.o.
8967 * NEWS: New note for the gdbtui removal.
8968 * configure: Rebuilt.
8969 * configure.ac: No longer add all-tui, clean-tui, install-tui and
8970 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
8971 CONFIG_UNINSTALL respectively.
8972 * gdb.c (main): Remove args.interpreter_p initialization.
8973 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8974 * main.h (struct captured_main_args): Remove interpreter_p.
8975 * tui/tui-main.c: Remove.
8977 2012-01-01 Doug Evans <dje@google.com>
8979 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
8980 (dwarf2_physname, read_import_statement): Ditto.
8981 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
8982 (process_structure_scope read_subroutine_type): Ditto.
8983 (read_typedef, load_partial_dies, read_partial_die): Ditto.
8984 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
8985 (dwarf2_fetch_die_location_block): Ditto.
8986 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
8988 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
8989 All callers updated.
8990 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
8991 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
8992 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
8994 * dwarf2read.c (load_cu): Move assert to more useful location.
8996 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
8997 All callers updated.
8999 * dwarf2read.c (dwarf2_per_objfile): Add comment.
9000 (dwarf2_elf_names): Minor reformat.
9001 (dwarf2_per_cu_data): Tweak comment.
9002 (dwarf2_read_section): Fix comment.
9003 (create_all_comp_units): Fix comment.
9004 (load_full_comp_unit): Fix comment.
9005 (process_full_comp_unit): Fix comment.
9006 (read_signatured_type): Fix comment.
9008 For older changes see ChangeLog-2011.
9014 version-control: never