1 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
5 2012-07-25 Joel Brobecker <brobecker@adacore.com>
7 * doublest.c (convert_doublest_to_floatformat): If the exponent
8 is too small, treat the value as zero. If the exponent is too
9 large, treat the value as infinity.
11 2012-07-25 Joel Brobecker <brobecker@adacore.com>
13 * configure.ac: Add --enable-lmcheck configure option.
14 * configure: Regenerate.
16 2012-07-25 Tom Tromey <tromey@redhat.com>
18 * NEWS: Mention maint info bfds.
19 * gdb_bfd.c (all_bfds): New global.
20 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
21 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
24 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
26 * configure.tgt: Add v850*-*-rtems*.
28 2012-07-25 Tom Tromey <tromey@redhat.com>
30 * macrotab.c (macro_bcache_str): Remove cast.
32 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
34 * linespec.c (linespec_lexer_lex_number): Update comments,
35 change the return and add check to make sure the input is
37 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
38 false, call linespec_lexer_lex_string.
40 2012-07-24 Tom Tromey <tromey@redhat.com>
42 * symfile.c (symbol_file_add): Don't open BFD twice.
44 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
46 * breakpoint.c (create_breakpoint): Store condition for pending
49 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
51 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
52 (m68k_return_value): Handle complex types like structures.
53 (m68k_svr4_return_value): Likewise.
55 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
57 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
58 parameters to bfd_get_section_name.
60 2012-07-24 Yao Qi <yao@codesourcery.com>
62 * cli/cli-setshow.c: Handle case 'var_uinteger'
63 and 'var_zuninteger' together. Handle case 'var_integer' and
64 'var_zinteger' together.
66 2012-07-23 Keith Seitz <keiths@redhat.com>
68 * linespec.c (convert_linespec_to_sal): Don't add
69 any symbols to the result vector if symbol_to_sal
72 2012-07-23 Keith Seitz <keiths@redhat.com>
74 * linespec.c (decode_objc): Record the function name
77 2012-07-23 Tom Tromey <tromey@redhat.com>
79 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
81 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
82 (map_vmap): Acquire a reference to the BFD.
84 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
86 * p-valprint.c (pascal_object_print_value): Replace potentially
87 unsafe alloca with xmalloc/xfree.
88 * valops.c (search_struct_method): Likewise.
90 2012-07-23 Tom Tromey <tromey@redhat.com>
92 * solib-svr4.c (enable_break): Update.
93 * bfd-target.h (target_bfd_reopen): Update documentation.
95 2012-07-23 Tom Tromey <tromey@redhat.com>
97 * symfile.c (separate_debug_file_exists): Update.
98 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
99 (reread_symbols): Update.
100 * elfread.c (build_id_verify): Update.
101 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
102 bfd_open_maybe_remote.
104 2012-07-23 Tom Tromey <tromey@redhat.com>
106 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
108 2012-07-23 Tom Tromey <tromey@redhat.com>
110 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
112 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
114 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
115 * machoread.c (macho_add_oso_symfile): Make a cleanup for
117 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
118 * objfiles.c (allocate_objfile): Acquire a new reference.
119 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
120 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
121 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
122 a cleanup for 'nbfd'.
123 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
125 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
126 make a cleanup for 'abfd'.
127 (symbol_file_add): Make a BFD cleanup.
129 2012-07-23 Tom Tromey <tromey@redhat.com>
131 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
132 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
133 * corelow.c (core_open): Use gdb_bfd_fopen.
134 * dsrec.c (load_srec): Use gdb_bfd_openr.
135 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
136 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
137 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
138 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
139 (gdb_bfd_fdopenr): New functions.
140 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
141 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
142 (gdb_bfd_fdopenr): Declare.
143 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
144 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
145 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
146 gdb_bfd_openr_next_archived_file.
147 (macho_check_dsym): Use gdb_bfd_openr.
148 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
149 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
150 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
151 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
153 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
154 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
155 gdb_bfd_openr_next_archived_file.
156 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
158 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
160 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
161 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
162 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
163 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
164 (symfile_bfd_open): Use gdb_bfd_fopen.
165 (generic_load): Use gdb_bfd_openr.
166 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
168 2012-07-23 Tom Tromey <tromey@redhat.com>
170 * bfd-target.c (target_bfd_reopen): Update.
171 * cli/cli-dump.c (bfd_openr_with_cleanup)
172 (bfd_openw_with_cleanup): Update.
173 * corelow.c (core_open): Update.
174 * dsrec.c (load_srec): Update.
175 * exec.c (exec_file_attach): Update.
176 * gcore.c (create_gcore_bfd): Update.
177 * gdb_bfd.c (gdb_bfd_ref): Return void.
178 (gdb_bfd_open): Update.
179 * gdb_bfd.h (gdb_bfd_ref): Return void.
181 * jit.c (jit_bfd_try_read_symtab): Update.
182 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
183 * machoread.c (macho_symfile_read_all_oso): Update.
184 (macho_check_dsym): Update.
185 * procfs.c (insert_dbx_link_bpt_in_file): Update.
186 * remote-m32r-sdi.c (m32r_load): Update.
187 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
188 * rs6000-nat.c (add_vmap): Update.
189 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
191 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
192 * solib-spu.c (spu_bfd_open): Update.
193 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
194 * spu-linux-nat.c (spu_bfd_open): Update.
195 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
196 (generic_load): Update.
197 * windows-nat.c (windows_make_so): Update.
199 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
201 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
203 2012-07-20 Jeff Kenton <jkenton@tilera.com>
205 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
206 SIGTRAMP_FRAME unwinding.
208 2012-07-20 Doug Evans <dje@google.com>
210 * NEWS: Document new options "set/show use-deprecated-index-sections",
211 and delete reference to --use-deprecated-index-sections.
212 * symfile.h (use_deprecated_index_sections): Delete.
213 * dwarf2read.c (use_deprecated_index_sections): Make static.
214 (read_index_from_section): Update wording of how to load
215 deprecated index sections.
216 (_initialize_dwarf2_read): New options
217 "set/show use-deprecated-index-sections".
218 * main.c (captured_main): Delete --use-deprecated-index-sections.
220 2012-07-20 Pedro Alves <palves@redhat.com>
225 * infrun.c (handle_inferior_event) <new thread>: Don't special
227 <TARGET_WAITKIND_SPURIOUS>: Ditto.
228 * linux-thread-db.c (thread_get_info_callback): Don't return early
229 if the thread is zombie.
230 (thread_from_lwp): Change return type to void. Rewrite stale
232 (attach_thread): Don't return early if the thread is zombie,
233 instead set its "dying" flag.
234 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
235 (find_new_threads_callback): Don't return early if the thread is
238 2012-07-20 Pedro Alves <palves@redhat.com>
240 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
241 * target.c (target_wait): Likewise.
242 (str_comma_list_concat_elem, do_option, target_options_to_string):
244 * target.h (target_options_to_string): Declare.
246 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
247 Tom Tromey <tromey@redhat.com>
249 * dwarf2read.c (dwarf_decode_macros)
250 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
251 DW_MACRO_GNU_transparent_include_alt>: New cases.
252 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
253 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
255 2012-07-20 Tom Tromey <tromey@redhat.com>
257 * dwarf2read.c (try_open_dwo_file): Don't call
258 gdb_bfd_stash_filename.
260 2012-07-20 Pedro Alves <palves@redhat.com>
262 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
263 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
264 (i386_process_record): Tweak description comments.
266 2012-07-20 Pedro Alves <palves@redhat.com>
268 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
269 (i386_process_record): Use record_read_memory.
270 * record.c (record_read_memory): New function.
271 (record_arch_list_add_mem, record_exec_insn): Use
273 * record.h (record_read_memory): Declare.
275 2012-07-20 Yao Qi <yao@codesourcery.com>
277 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
280 2012-07-19 Pedro Alves <palves@redhat.com>
282 * record.c (record_resume): Ask the target beneath to report all
285 2012-07-19 Doug Evans <dje@google.com>
287 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
288 there's no section at address zero.
289 (dwarf2_record_block_ranges): Ditto.
291 2012-07-19 Yao Qi <yao@codesourcery.com>
293 * command.h, remote.c: Fix a typo in comment.
295 2012-07-19 Tom Tromey <tromey@redhat.com>
298 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
299 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
300 OP_DECLTYPE>: New cases.
301 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
302 (type_exp): Add new productions.
303 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
305 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
307 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
308 OP_DECLTYPE>: New case.
309 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
311 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
312 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
314 2012-07-19 Tom Tromey <tromey@redhat.com>
316 * c-exp.y (enum token_flags): New.
317 (struct token) <cxx_only>: Remove.
319 (tokentab3, tokentab2, ident_tokens): Update.
320 (lex_one_token): Update. Handle FLAG_SHADOW.
322 2012-07-19 Tom Tromey <tromey@redhat.com>
324 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
325 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
326 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
327 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
328 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
329 type_exp production where appropriate.
330 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
331 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
332 <UNOP_MEMVAL_TYPE>: New case.
333 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
334 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
335 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
336 <UNOP_MEMVAL_TYPE>: New case.
337 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
338 UNOP_REINTERPRET_CAST>: Update.
339 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
340 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
341 UNOP_REINTERPRET_CAST>: Update.
342 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
343 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
344 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
347 2012-07-19 Yao Qi <yao@codesourcery.com>
348 Jan Kratochvil <jan.kratochvil@redhat.com>
350 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
351 and case 'var_optional_filename' together.
352 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
353 instead of add_setshow_optional_filename_cmd for setshow command
354 'args'. Set completer for 'set args'.
356 2012-07-18 Doug Evans <dje@google.com>
358 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
359 * common/gdb_vecs.c: New file, contents from utils.c.
360 * common/host-defs.h: New file, contents from defs.h.
361 * utils.h: New file, contents from defs.h.
362 * defs.h: Move all declarations of objects defined in utils.c
363 to utils.h (except QUIT() and related).
364 #include "utils.h", "host-defs.h".
365 * probe.h (probe_p): Move here from gdb_vecs.h.
366 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
367 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
368 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
369 * Makefile.in (SFILES): Add common/gdb_vecs.c.
370 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
371 (COMMON_OBS): Add gdb_vecs.o.
372 (gdb_vecs.o): New rule.
374 2012-07-18 Keith Seitz <keiths@redhat.com>
376 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
377 parameter. If non-zero, use SYMNAME as the canonical name
380 (convert_linespec_to_sals): Use add_sal_to_sals for
382 (decode_line_full): No need to "fill in missing canonical names"
383 anymore. Simply make cleanups for the allocated names.
385 2012-07-18 Keith Seitz <keiths@redhat.com>
387 * linespec.c (struct linespec): Constify expression,
388 source_filename, function_name, and label_name.
389 (symbol_not_found_error): Make all parameters const.
390 (linespec_parser_delete): No need to check for NULL
391 when using xfree. Cast const char * to char * for xfree.
393 2012-07-18 Keith Seitz <keiths@redhat.com>
395 * breakpoint.c (invalid_thread_id_error): New function.
396 (find_condition_and_thread): Use invalid_thread_id_error.
397 (watch_command_1): Likewise.
399 2012-07-18 Tom Tromey <tromey@redhat.com>
401 * cc-with-index.sh, cc-with-dwz.sh: Remove.
402 * contrib/cc-with-tweaks.sh: New file.
404 2012-07-18 Tom Tromey <tromey@redhat.com>
406 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
407 (locate_dwz_sections): Recognize .gdb_index.
408 (create_cus_from_index_list): New function.
409 (create_cus_from_index): Use it. Handle .dwz data.
410 (read_index_from_section): New function, extracted from
412 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
415 2012-07-18 Tom Tromey <tromey@redhat.com>
417 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
418 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
420 (struct dwz_file): New.
421 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
422 (locate_dwz_sections, dwarf2_get_dwz_file)
423 (get_abbrev_section_for_cu): New functions.
424 (error_check_comp_unit_head, read_and_check_comp_unit_head)
425 (read_and_check_type_unit_head): Add abbrev_section argument.
426 (create_debug_types_hash_table): Update.
427 (init_cutu_and_read_dies): Use proper abbrev section.
428 (init_cutu_and_read_dies_no_follow): Likewise.
429 (set_partial_user): Do nothing if PST==NULL.
430 (read_comp_units_from_section): New function.
431 (create_all_comp_units): Use it.
432 (scan_partial_symbols, partial_die_parent_scope): Update.
433 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
434 (process_imported_unit_die, read_partial_die): Handle .dwz files.
435 (find_partial_die): Add offset_in_dwz argument. Update.
436 (guess_partial_die_structure_name, fixup_partial_die): Update.
437 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
438 DW_FORM_GNU_strp_alt.
439 (read_indirect_string_from_dwz): New function.
440 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
441 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
442 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
443 (follow_die_offset): Add offset_in_dwz argument.
444 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
445 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
446 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
447 Handle new macro forms.
448 (dwarf_decode_macros): Update.
449 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
450 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
451 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
452 (create_debug_types_hash_table): Use correct abbrev section.
453 (get_debug_line_section): New function.
454 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
455 (process_full_comp_unit): Pass 'required' argument to
456 end_symtab_get_static_block.
457 * buildsym.h (end_symtab_get_static_block): Update.
458 * buildsym.c (end_symtab_get_static_block): Add 'required'
460 (end_symtab, end_expandable_symtab): Update.
462 2012-07-18 Tom Tromey <tromey@redhat.com>
464 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
466 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
467 (zlib_decompress_section): Remove.
468 (dwarf2_read_section): Use gdb_bfd_map_section.
469 (munmap_section_buffer): Remove.
470 (free_dwo_file, dwarf2_per_objfile_free): Don't use
471 munmap_section_buffer.
472 * gdb_bfd.c: Include zlib.h, sys/mman.h.
473 (struct gdb_bfd_section_data): New.
474 (free_one_bfd_section): New function.
475 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
476 (get_section_descriptor, zlib_decompress_section)
477 (gdb_bfd_map_section): New functions.
478 * gdb_bfd.h (gdb_bfd_map_section): Declare.
480 2012-07-18 Tom Tromey <tromey@redhat.com>
482 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
484 2012-07-18 Tom Tromey <tromey@redhat.com>
486 * gdb_bfd.c (struct gdb_bfd_data): New.
487 (gdb_bfd_cache): New global.
488 (struct gdb_bfd_cache_search): New.
489 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
490 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
491 * gdb_bfd.h (gdb_bfd_open): Declare.
493 2012-07-18 Tom Tromey <tromey@redhat.com>
495 * utils.c (make_cleanup_bfd_unref): Rename from
496 make_cleanup_bfd_close.
497 * defs.h (make_cleanup_bfd_unref): Rename from
498 make_cleanup_bfd_close.
499 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
500 (bfd_openw_with_cleanup): Update.
501 * corelow.c (core_open): Update.
502 * dsrec.c (load_srec): Update.
503 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
504 * remote-m32r-sdi.c (m32r_load): Update.
505 * remote-mips.c (mips_load_srec): Update.
506 (pmon_load_fast): Update.
507 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
509 (darwin_bfd_open): Update.
510 * solib.c (solib_bfd_fopen): Update.
511 * symfile-mem.c (symbol_file_add_from_memory): Update.
512 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
513 (symfile_bfd_open): Update.
514 (generic_load): Update.
516 2012-07-18 Tom Tromey <tromey@redhat.com>
518 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
519 (pmon_load_fast): Likewise.
520 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
521 (m32r_upload_command): Likewise.
522 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
523 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
524 Use make_cleanup_bfd_close.
526 2012-07-18 Tom Tromey <tromey@redhat.com>
528 * symfile.c (symfile_bfd_open): Don't copy name. Call
529 gdb_bfd_stash_filename.
530 (load_command): Open the new BFD before freeing the old.
531 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
532 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
533 Call gdb_bfd_stash_filename.
534 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
535 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
536 gdb_bfd_stash_filename.
537 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
539 * rs6000-nat.c (add_vmap): Don't copy filename. Call
540 gdb_bfd_stash_filename.
541 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
542 * machoread.c (macho_add_oso_symfile): Call
543 gdb_bfd_stash_filename.
544 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
545 gdb_bfd_stash_filename.
546 (macho_check_dsym): Don't copy filename. Call
547 gdb_bfd_stash_filename.
548 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
549 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
550 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
551 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
552 * exec.c (exec_close): Don't free the BFD's filename.
553 (exec_file_attach): Don't copy the filename. Call
554 gdb_bfd_stash_filename.
555 * corelow.c (core_close): Don't free the BFD's filename.
556 (core_open): Call gdb_bfd_stash_filename.
557 * corefile.c (reopen_exec_file): Remove #if 0 code.
558 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
560 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
562 2012-07-18 Tom Tromey <tromey@redhat.com>
564 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
566 (free_dwo_file): Use gdb_bfd_unref.
567 * cli/cli-dump.c: Include gdb_bfd.h.
568 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
569 (bfd_openr_with_cleanup): Likewise.
570 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
572 * utils.c: Include gdb_bfd.h.
573 (do_bfd_close_cleanup): Use gdb_bfd_unref.
574 * symfile.c: Include gdb_bfd.h.
575 (separate_debug_file_exists): Use gdb_bfd_unref.
576 (bfd_open_maybe_remote): Use gdb_bfd_ref.
577 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
578 (generic_load): Use gdb_bfd_ref.
579 (reread_symbols): Use gdb_bfd_unref.
580 * symfile-mem.c: Include gdb_bfd.h.
581 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
582 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
583 * solib.c: Include gdb_bfd.h.
584 (solib_bfd_fopen): Use gdb_bfd_ref.
585 (solib_bfd_open): Use gdb_bfd_unref.
586 (free_so_symbols): Use gdb_bfd_unref.
587 (reload_shared_libraries_1): Use gdb_bfd_unref.
588 * solib-spu.c: Include gdb_bfd.h.
589 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
590 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
592 * solib-frv.c: Include gdb_bfd.h.
593 (enable_break2): Use gdb_bfd_unref.
594 * solib-dsbt.c: Include gdb_bfd.h.
595 (enable_break2): Use gdb_bfd_unref.
596 * solib-darwin.c: Include gdb_bfd.h.
597 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
599 (darwin_bfd_open): Use gdb_bfd_unref.
600 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
601 * remote-mips.c: Include gdb_bfd.h.
602 (mips_load_srec): Use gdb_bfd_ref.
603 (pmon_load_fast): Use gdb_bfd_ref.
604 * remote-m32r-sdi.c: Include gdb_bfd.h.
605 (m32r_load): Use gdb_bfd_ref.
606 * record.c: Include gdb_bfd.h.
607 (record_save_cleanups): Use gdb_bfd_unref.
608 (cmd_record_save): Use gdb_bfd_unref.
609 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
611 * objfiles.h (gdb_bfd_close_or_warn): Remove.
612 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
613 * objfiles.c: Include gdb_bfd.h.
614 (free_objfile): Use gdb_bfd_unref.
615 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
617 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
618 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
619 (macho_check_dsym): Likewise.
620 * m32r-rom.c: Include gdb_bfd.h.
621 (m32r_load): Use gdb_bfd_ref.
622 (m32r_upload_command): Use gdb_bfd_ref.
623 * jit.c: Include gdb_bfd.h.
624 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
625 * gdb_bfd.h: New file.
626 * gdb_bfd.c: New file.
627 * gcore.c: Include gdb_bfd.h.
628 (create_gcore_bfd): Use gdb_bfd_ref.
629 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
630 (gcore_command): Use gdb_bfd_unref.
631 * exec.c: Include gdb_bfd.h.
632 (exec_close): Use gdb_bfd_unref.
633 (exec_close_1): Use gdb_bfd_unref.
634 (exec_file_attach): Use gdb_bfd_ref.
635 * elfread.c: Include gdb_bfd.h.
636 (build_id_verify): Use gdb_bfd_unref.
637 * dsrec.c: Include gdb_bfd.h.
638 (load_srec): Use gdb_bfd_ref.
639 * corelow.c: Include gdb_bfd.h.
640 (core_close): Use gdb_bfd_unref.
641 (core_open): Use gdb_bfd_ref.
642 * bfd-target.c: Include gdb_bfd.h.
643 (target_bfd_xclose): Use gdb_bfd_unref.
644 (target_bfd_reopen): Use gdb_bfd_ref.
645 * Makefile.in (SFILES): Add gdb_bfd.c.
646 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
647 (COMMON_OBS): Add gdb_bfd.o.
649 2012-07-18 Keith Seitz <keiths@redhat.com>
651 * breakpoint.c (find_condition_and_thread): Initialize
653 (create_breakpiont): find_condition_and_thread will now
654 initialize COND_STRING, THREAD, and REST (and TASK).
655 (addr_string_to_sals): Likewise.
657 2012-07-18 Pedro Alves <palves@redhat.com>
659 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
660 Pull the single step breakpoints out of the target.
662 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
664 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
665 * stap-probe.c (compile_probe_arg): Likewise.
667 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
669 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
670 (elf_compile_to_ax): Likewise.
671 * infrun.c (insert_exception_resume_from_probe): Likewise.
672 (check_exception_resume): Remove `objfile' variable.
673 * probe.c (find_probe_by_pc): Remove `objfile' argument.
674 (struct probe_and_objfile, probe_and_objfile_s): Delete.
675 (collect_probes): Adjust return value to `VEC (probe_p) *'.
676 (compare_entries): Rename to...
677 (compare_probes): ...this. Adjust function to work with
678 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
680 (gen_ui_out_table_header_info): Adjust `probes' argument to be
682 (print_ui_out_info): Adjust argument to be `struct probe *'.
683 (info_probes_for_ops): Adjust internal computations to use
685 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
686 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
687 gen_info_probes_table_values>: Remove `objfile' argument.
688 (struct probe) <objfile>: New field.
689 (find_probe_by_pc): Remove `objfile' argument.
690 * stap-probe.c (stap_parse_probe_arguments): Likewise.
691 (stap_get_probe_argument_count): Likewise.
692 (stap_get_arg): Likewise.
693 (stap_evaluate_probe_argument): Likewise.
694 (stap_compile_to_ax): Likewise.
695 (compile_probe_arg): Refactor not to pass `objfile' anymore.
696 (handle_stap_probe): Fill `objfile' field from `struct probe'.
697 (stap_gen_info_probes_table_header): Remove `objfile' argument.
698 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
699 sym_compile_to_ax>: Likewise.
701 2012-07-18 Terry Guo <terry.guo@arm.com>
704 * defs.h (GDB_MI_MSG_WIDTH): New.
705 * ser_base (ser_base_read_error_fd): New function.
706 (do_ser_base_readchar): Poll error file descriptor as well as
708 (generic_readchar): Refactor error handling.
710 2012-07-18 Joel Brobecker <brobecker@adacore.com>
712 * NEWS: Create a new section for the next release branch.
713 Rename the section of the current branch, now that it has
716 2012-07-18 Joel Brobecker <brobecker@adacore.com>
718 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
719 * version.in: Bump version to 7.5.50.20120718-cvs.
721 2012-07-17 Keith Seitz <keiths@redhat.com>
723 * linespec.c (linespec_parse_line_offset): Make parameter
726 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
729 * f-valprint.c (info_common_command): New variable frame_id.
730 Reinitialize FI form FRAME_ID after each print_variable_and_value.
731 * printcmd.c (print_variable_and_value): Extend function comment.
732 Add comment for invalidated FRAME.
733 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
734 FI form FRAME_ID after each print_frame_local_vars.
735 (struct print_variable_and_value_data): Change frame to frame_id.
736 (do_print_variable_and_value): New variable frame, initialize it from
737 p->frame_id. Add comment for invalidated FRAME.
738 (print_frame_local_vars, print_frame_arg_vars): New function comment.
739 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
740 for invalidated FRAME.
742 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
743 Pedro Alves <palves@redhat.com>
745 * linux-nat.c (linux_nat_detach): Don't unregister from the event
748 2012-07-16 Tom Tromey <tromey@redhat.com>
750 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
752 2012-07-15 Doug Evans <dje@google.com>
754 * dwarf2read.c (stmt_list_hash): New struct.
755 (type_unit_group): Embed "per_cu" member, remove pointer.
756 New union member "t", move member "tus" into it, all uses updated.
757 New member "hash", replaces member "line_offset, all uses updated.
758 (quick_file_names): Replace member "offset" with "hash", all uses
760 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
761 (hash_file_name_entry, eq_file_name_entry): Call them.
762 (hash_type_unit_group, eq_type_unit_group): Ditto.
763 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
764 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
765 (dw2_get_file_names): Update.
766 (create_type_unit_group): Replace "per_cu" arg with "cu".
767 All callers updated. Fix "quick" (.gdb_index) handling.
768 (get_type_unit_group): Replace "per_cu" arg with "cu".
770 (build_type_unit_groups): Don't reset tu_stats.
772 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
773 "tab_cur_size". Change member "tab" to be a htab_t.
774 (create_filename_seen_cache): Update.
775 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
776 (filename_seen): Update.
778 2012-07-13 Doug Evans <dje@google.com>
780 * symtab.c (filename_seen): Update comment.
782 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
783 Doug Evans <dje@google.com>
785 * buildsym.c (end_symtab_1): Split it to ...
786 (end_symtab_get_static_block): ... this ...
787 (end_symtab_from_static_block): ... and this function.
788 (end_symtab, end_expandable_symtab): Call them.
789 * buildsym.h (end_symtab_get_static_block)
790 (end_symtab_from_static_block): New declarations.
791 * dwarf2read.c (process_full_comp_unit): New variable static_block.
792 Set its valid CU ranges.
794 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
796 * dwarf2loc.c (disassemble_dwarf_expression): Handle
797 DW_OP_GNU_parameter_ref.
799 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
801 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
802 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
804 2012-07-13 Doug Evans <dje@google.com>
806 * symtab.c (output_source_filename): Delete unnecessary forward decl.
807 (filename_seen_cache): New struct.
808 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
809 (create_filename_seen_cache): New function.
810 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
811 (filename_seen): Delete arg "first". New arg "cache". All callers
813 (output_source_filename_data): New struct.
814 (output_source_filename): Delete arg "first". New arg "data".
816 (sources_info): Delete local "first". New locals "data", "cleanups".
817 Rewrite to use filename_seen_cache.
818 (add_partial_filename_data): Delete member "first". New member
819 "filename_seen_cache". All uses updated.
820 (make_source_files_completion_list): Rewrite to use
823 2012-07-12 Doug Evans <dje@google.com>
825 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
827 2012-07-10 Doug Evans <dje@google.com>
830 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
831 all_type_unit_groups, type_unit_groups, tu_stats.
832 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
833 All uses updated. Add type_unit_group to union "s".
834 (type_unit_group): New struct.
835 (IS_TYPE_UNIT_GROUP): New macro.
836 (abbrev_table): Delete unused member "section".
837 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
838 (dw2_get_cu): Assert not used with type_unit_group.
839 (dw2_get_primary_cu): New function.
840 (dw2_build_type_unit_groups_reader): New function.
841 (dw2_build_type_unit_groups): New function.
842 (dw2_get_file_names): Assert not called on type units.
843 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
844 Redo loop to iterate over type unit groups instead of type units.
845 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
846 (read_abbrev_offset): New function.
847 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
849 (create_partial_symtab): New function.
850 (process_psymtab_comp_unit_reader): Assert not used with type units.
851 Call create_partial_symtab.
852 (process_psymtab_type_unit): Delete.
853 (hash_type_unit_group, eq_type_unit_group): New functions.
854 (allocate_type_unit_groups_table): New function.
855 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
856 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
857 (create_type_unit_group, get_type_unit_group): New functions.
858 (tu_abbrev_offset): New struct.
859 (sort_tu_by_abbrev_offset): New function.
860 (add_type_unit_group_to_table): New function.
861 (build_type_unit_groups): New function.
862 (build_type_psymtabs_reader): New function.
863 (build_type_psymtab_dependencies): New function.
864 (build_type_psymtabs): Rewrite.
865 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
866 is seen in a type unit.
867 (process_queue): Move symtab expansion debugging printfs here.
868 Call process_full_type_unit for type units.
869 (compute_symtab_includes): Assert not called for type units.
870 (process_cu_includes): Don't call compute_symtab_includes for
872 (process_full_type_unit): New function.
873 (process_imported_unit_die): Flag an error if called for type units.
874 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
875 updated. Assert not called for type units.
876 (read_file_scope): Call dwarf2_start_symtab.
877 (setup_type_unit_groups): New function.
878 (read_type_unit_scope): Rewrite.
879 (abbrev_table_read_table): Initialize abbrev_table->offset.
880 (abbrev_table_free_cleanup): New function.
881 (dwarf2_start_symtab): New function.
882 (load_full_type_unit): Assert not called for type unit groups.
883 * buildsym.c (finish_block_internal): New arg "expandable".
885 (start_symtab): Move most contents to ...
886 (restart_symtab): ... here. New function.
887 (reset_symtab_globals): New function.
888 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
889 Call reset_symtab_globals.
890 (end_symtab, end_expandable_symtab): New functions.
891 (set_missing_symtab, augment_type_symtab): New functions.
892 * buildsym.h (end_expandable_symtab): Declare.
893 (augment_type_symtab, restart_symtab): Declare.
894 * psympriv.h (struct partial_symtab): New member "anonymous".
895 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
897 (read_psymtabs_with_filename): Ditto.
898 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
899 (expand_symtabs_matching_via_partial): Ditto.
900 (dump_psymtab): Update.
901 * dictionary.c (dict_add_pending): New function.
902 * dictionary.h (dict_add_pending): Declare.
904 2012-07-09 Doug Evans <dje@google.com>
906 * buildsym.c (start_subfile): Remove unnecessary check for
909 * psymtab.c (allocate_psymtab): Use host_address_to_string.
911 * dwarf2read.c (load_full_type_unit): Simplify.
913 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
914 to struct signatured_type **. All uses updated.
916 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
919 2012-07-09 Tom Tromey <tromey@redhat.com>
921 * c-exp.y (check_parameter_typelist): New function.
922 (parameter_typelist): Call it.
923 * eval.c (make_params): Handle '(void)' case.
924 * gdbtypes.c (lookup_function_type_with_arguments): Handle
927 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
929 * common/linux-ptrace.c: Include gdb_assert.h.
930 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
931 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
933 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
935 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
936 * linux-nat.c (linux_child_post_attach)
937 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
939 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
941 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
942 nptl <2.7 bug workaround for core files.
944 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
946 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
948 (save_siginfo): Remove.
949 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
951 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
952 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
953 * linux-nat.h (struct lwp_info): Remove field siginfo.
955 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
957 Code cleanup for the next patch.
958 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
959 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
961 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
962 (ia64_linux_stopped_data_address):
963 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
965 * linux-nat.h (linux_nat_get_siginfo): Likewise.
966 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
967 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
970 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
973 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
974 Increase buffer sizes to 2x we need, not just 2x of the previous size.
976 2012-07-06 Tom Tromey <tromey@redhat.com>
978 * c-exp.y (DOTDOTDOT): New token.
979 (func_mod, exp): Use parameter_typelist.
980 (parameter_typelist): New production.
981 (tokentab3): Add "..." token.
982 * eval.c (make_params): Handle varargs.
983 * gdbtypes.c (lookup_function_type_with_arguments): Handle
986 2012-07-06 Tom Tromey <tromey@redhat.com>
989 * c-exp.y (%union) <tvec>: Change type.
990 (func_mod): Now uses <tvec> type.
991 (exp): Update for tvec change.
992 (direct_abs_decl): Push the typelist.
993 (func_mod): Return a typelist.
994 (nonempty_typelist): Update for tvec change.
995 * gdbtypes.c (lookup_function_type_with_arguments): New function.
996 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
997 * parse.c (pop_type_list): New function.
998 (push_typelist): New function.
999 (follow_types): Handle tp_function_with_arguments.
1000 * parser-defs.h (type_ptr): New typedef. Define a VEC.
1001 (enum type_pieces) <tp_function_with_arguments>: New constant.
1002 (union type_stack_elt) <typelist_val>: New field.
1003 (push_typelist): Declare.
1005 2012-07-06 Tom Tromey <tromey@redhat.com>
1007 * c-exp.y (%union) <type_stack>: New field.
1008 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
1009 (ptr_operator_ts): New production.
1011 * parse.c (type_stack_reserve): New function.
1012 (check_type_stack_depth): Use it.
1013 (pop_type_stack, append_type_stack, push_type_stack)
1014 (get_type_stack, type_stack_cleanup): New functions.
1015 (follow_types): Handle tp_type_stack.
1016 (_initialize_parse): Simplify initialization.
1017 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
1019 (union type_stack_elt) <stack_val>: New field.
1020 (get_type_stack, append_type_stack, push_type_stack)
1021 (type_stack_cleanup): Declare.
1023 2012-07-06 Tom Tromey <tromey@redhat.com>
1025 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
1027 (struct type_stack): New.
1028 * parse.c (type_stack, type_stack_size, type_stack_depth):
1030 (type_stack): New global.
1031 (parse_exp_in_context, check_type_stack_depth)
1032 (insert_into_type_stack, insert_type, push_type, push_type_int)
1033 (insert_type_address_space, pop_type, pop_type_int)
1034 (_initialize_parse): Update.
1036 2012-07-06 Tom Tromey <tromey@redhat.com>
1038 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
1041 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1043 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
1045 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1046 Jan Kratochvil <jan.kratochvil@redhat.com>
1048 * cp-valprint.c (cp_print_value): Replace potentially unsafe
1049 alloca with xmalloc/xfree.
1051 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1053 * MAINTAINERS (Write After Approval): Add myself to the list.
1055 2012-07-05 Doug Evans <dje@google.com>
1057 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
1059 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1061 * ax-gdb.c (cli/cli-utils.h): New include.
1062 (linespec.h): Ditto.
1063 (agent_eval_command_one): New function.
1064 (agent_command_1): Ditto.
1065 (agent_command): Call function agent_command_1.
1066 (agent_eval_command): Ditto.
1067 (_initialize_ax_gdb): Change help for "maint agent"
1068 and "maint agent-eval".
1070 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1072 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
1073 * cli/cli-utils.c (check_for_argument): New function.
1074 * cli/cli-utils.h (check_for_argument): Ditto.
1076 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1078 * NEWS: Mention x32 ABI support.
1080 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1082 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1083 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1085 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1086 and pc_regnum_from_eax to -1. Update SP regnum from
1087 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1090 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1093 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1095 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1096 * dwarf2expr.h: Include gdbtypes.h.
1097 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1098 these forward declarations.
1099 (cu_offset, sect_offset): Move these ...
1100 * gdbtypes.h: Remove include dwarf2expr.h.
1101 (cu_offset, sect_offset): ... here.
1103 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1105 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1106 (amd64_linux_sigtramp_code): This.
1107 (amd64_x32_linux_sigtramp_code): New.
1108 (LINUX_SIGTRAMP_LEN): Updated.
1109 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1111 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1113 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1115 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1117 * config.in: Regenerate.
1118 * configure: Regenerate.
1119 * configure.ac: Remove check for gnu/libc-version.h.
1120 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1122 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1123 variables libc_version, libc_major and libc_minor. Replace sscanf by
1124 inferior_has_bug. Extend the comment.
1126 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1128 * linux-thread-db.c (inferior_has_bug): New function.
1129 (thread_db_find_new_threads_silently): Return boolean as checked by
1130 inferior_has_bug, describe it in the comments.
1131 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1132 earlier. Abort the initialization if it returned non-zero.
1133 (thread_db_new_objfile): Exclude debug files.
1134 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1137 2012-07-02 Doug Evans <dje@google.com>
1139 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1140 related to queue management.
1142 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1143 instead of "debug dwarf2-die" in debugging printfs.
1144 (create_debug_info_hash_table_reader): Ditto.
1145 (create_debug_info_hash_table): Ditto.
1146 (init_dwo_file): Ditto.
1147 (init_cutu_and_read_dies): Add debugging printf.
1148 (init_cutu_and_read_dies_no_follow): Ditto.
1149 (process_psymtab_comp_unit_reader): Ditto.
1151 2012-07-02 Stan Shebs <stan@codesourcery.com>
1153 Add target-side support for dynamic printf.
1154 * NEWS: Mention the additional style.
1155 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1156 (struct bp_location): New field cmd_bytecode.
1157 * breakpoint.c: Include format.h.
1158 (disconnected_dprintf): New global.
1159 (parse_cmd_to_aexpr): New function.
1160 (build_target_command_list): New function.
1161 (insert_bp_location): Call it.
1162 (remove_breakpoints_pid): Skip dprintf breakpoints.
1163 (print_one_breakpoint_location): Ditto.
1164 (dprintf_style_agent): New global.
1165 (dprintf_style_enums): Add dprintf_style_agent.
1166 (update_dprintf_command_list): Add agent case.
1167 (agent_printf_command): New function.
1168 (_initialize_breakpoint): Add new commands.
1169 * common/ax.def (printf): New bytecode.
1170 * ax.h (ax_string): Declare.
1171 * ax-gdb.h (gen_printf): Declare.
1172 * ax-gdb.c: Include cli-utils.h, format.h.
1173 (gen_printf): New function.
1174 (maint_agent_print_command): New function.
1175 (_initialize_ax_gdb): Add maint agent-printf command.
1176 * ax-general.c (ax_string): New function.
1177 (ax_print): Add printf disassembly.
1178 * Makefile.in (SFILES): Add format.c
1179 (COMMON_OBS): Add format.o.
1180 * common/format.h: New file.
1181 * common/format.c: New file.
1182 * printcmd.c: Include format.h.
1183 (ui_printf): Call parse_format_string.
1184 * remote.c (remote_state): New field breakpoint_commands.
1185 (PACKET_BreakpointCommands): New enum.
1186 (remote_breakpoint_commands_feature): New function.
1187 (remote_protocol_features): Add new BreakpointCommands entry.
1188 (remote_can_run_breakpoint_commands): New function.
1189 (remote_add_target_side_commands): New function.
1190 (remote_insert_breakpoint): Call it.
1191 (remote_insert_hw_breakpoint): Ditto.
1192 (_initialize_remote): Add new packet configuration for
1193 target-side breakpoint commands.
1194 * target.h (struct target_ops): New field
1195 to_can_run_breakpoint_commands.
1196 (target_can_run_breakpoint_commands): New macro.
1197 * target.c (update_current_target): Handle
1198 to_can_run_breakpoint_commands.
1200 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1202 Execute -ix and -iex only after system and user gdbinit files.
1203 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1204 processing down after gdbinit files.
1206 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1208 Add fnmatch-gnu module.
1209 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1210 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1211 * gnulib/aclocal.m4: Regenerate.
1212 * gnulib/config.in: Regenerate.
1213 * gnulib/configure: Regenerate.
1214 * gnulib/import/dummy.c: Remove.
1215 * gnulib/import/Makefile.am: Regenerate.
1216 * gnulib/import/Makefile.in: Likewise.
1217 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1218 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1219 * gnulib/import/alloca.c: New file.
1220 * gnulib/import/alloca.in.h: Likewise.
1221 * gnulib/import/config.charset: Likewise.
1222 * gnulib/import/fnmatch.c: Likewise.
1223 * gnulib/import/fnmatch.in.h: Likewise.
1224 * gnulib/import/fnmatch_loop.c: Likewise.
1225 * gnulib/import/localcharset.c: Likewise.
1226 * gnulib/import/localcharset.h: Likewise.
1227 * gnulib/import/m4/alloca.m4: Likewise.
1228 * gnulib/import/m4/codeset.m4: Likewise.
1229 * gnulib/import/m4/configmake.m4: Likewise.
1230 * gnulib/import/m4/fcntl-o.m4: Likewise.
1231 * gnulib/import/m4/fnmatch.m4: Likewise.
1232 * gnulib/import/m4/glibc21.m4: Likewise.
1233 * gnulib/import/m4/localcharset.m4: Likewise.
1234 * gnulib/import/m4/locale-fr.m4: Likewise.
1235 * gnulib/import/m4/locale-ja.m4: Likewise.
1236 * gnulib/import/m4/locale-zh.m4: Likewise.
1237 * gnulib/import/m4/mbrtowc.m4: Likewise.
1238 * gnulib/import/m4/mbsinit.m4: Likewise.
1239 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1240 * gnulib/import/m4/mbstate_t.m4: Likewise.
1241 * gnulib/import/m4/stdbool.m4: Likewise.
1242 * gnulib/import/m4/wchar_h.m4: Likewise.
1243 * gnulib/import/m4/wctype_h.m4: Likewise.
1244 * gnulib/import/m4/wint_t.m4: Likewise.
1245 * gnulib/import/mbrtowc.c: Likewise.
1246 * gnulib/import/mbsinit.c: Likewise.
1247 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1248 * gnulib/import/mbsrtowcs-state.c: Likewise.
1249 * gnulib/import/mbsrtowcs.c: Likewise.
1250 * gnulib/import/ref-add.sin: Likewise.
1251 * gnulib/import/ref-del.sin: Likewise.
1252 * gnulib/import/stdbool.in.h: Likewise.
1253 * gnulib/import/streq.h: Likewise.
1254 * gnulib/import/strnlen1.c: Likewise.
1255 * gnulib/import/strnlen1.h: Likewise.
1256 * gnulib/import/verify.h: Likewise.
1257 * gnulib/import/wchar.in.h: Likewise.
1258 * gnulib/import/wctype.in.h: Likewise.
1260 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1262 Support shell wildcards for 'set auto-load safe-path'.
1263 * auto-load.c: Include fnmatch.h.
1264 (filename_is_in_dir): Rename to ...
1265 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1266 it. Update function comment. Rename dir_len to pattern_len. New
1267 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1268 messages. Use gdb_filename_fnmatch.
1269 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1271 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1272 * defs.h (gdb_filename_fnmatch): New declaration.
1273 * utils.c: Include fnmatch.h.
1274 (gdb_filename_fnmatch): New function.
1276 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1278 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1279 `-probe' and `-probe-stap' options.
1281 2012-07-01 Yao Qi <yao@codesourcery.com>
1283 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1284 always_inserted_off, and always_inserted_enums.
1285 Change always_inserted_mode's type to 'enum auto_boolean'.
1286 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1288 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1289 of add_setshow_enum_cmd.
1290 * infrun.c: Remove can_use_displaced_stepping_auto,
1291 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1292 can_use_displaced_stepping_enum.
1293 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1294 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1295 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1296 add_setshow_enum_cmd.
1298 2012-06-30 Doug Evans <dje@google.com>
1300 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1301 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1302 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1304 2012-06-29 Doug Evans <dje@google.com>
1306 * linespec.c: #include "stack.h".
1307 (decode_line_with_current_source): Moved here from symtab.c and
1308 renamed from decode_line_spec. All callers updated.
1309 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1310 renamed from decode_line_spec_1. All callers updated.
1311 * linespec.h (decode_line_with_current_source): Move declaration here
1312 from symtab.h and renamed from decode_line_spec.
1313 (decode_line_with_last_displayed): Move declaration here from symtab.h
1314 and renamed from decode_line_spec_1.
1315 * macrocmd.c: #include "linespec.h".
1316 * symtab.c: Remove #include "linespec.h".
1318 2012-06-28 Doug Evans <dje@google.com>
1320 * dwarf2read.c (get_cu_length): New function.
1321 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1322 (create_debug_types_hash_table): Ditto.
1323 (init_cutu_and_read_dies): Ditto.
1324 (init_cutu_and_read_dies_no_follow): Ditto.
1326 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1328 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1329 (struct abbrev_table): Define.
1330 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1332 (init_cutu_and_read_dies): Update.
1333 (abbrev_table_alloc_abbrev): New function. Replaces
1334 dwarf_alloc_abbrev. All callers updated.
1335 (abbrev_table_add_abbrev): New function.
1336 (abbrev_table_lookup_abbrev): New function. Replaces
1337 dwarf2_lookup_abbrev. All callers updated.
1338 (abbrev_table_read_table): New function. Contents moved here from
1339 dwarf2_read_abbrevs.
1340 (dwarf2_read_abbrevs): Call it.
1341 (abbrev_table_free): New function.
1342 (dwarf2_free_abbrev_table): Call it.
1344 2012-06-28 Stan Shebs <stan@codesourcery.com>
1346 * osdata.c (info_osdata_command): Filter out "Title" columns
1348 * common/linux-osdata.c (struct osdata_type): Add title field.
1349 (osdata_table): Add titles to each entry.
1350 (linux_command_xfer_osdata): Add a column for title data.
1352 2012-06-28 Stan Shebs <stan@codesourcery.com>
1354 Make logging work for MI.
1356 * interps.h (interp_set_logging_ftype): New typedef.
1357 (struct interp_procs): New field set_logging_proc.
1358 (current_interp_set_logging): Declare.
1359 * interps.c (current_interp_set_logging): New function.
1360 * cli/cli-logging.c: Include interps.h.
1361 (set_logging_redirect): Call current_interp_set_logging.
1362 (pop_output_files): Ditto.
1363 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1364 * mi/mi-console.h (mi_console_set_raw): Declare.
1365 * mi/mi-console.c (mi_console_set_raw): New function.
1366 * mi/mi-interp.c (saved_raw_stdout): New global.
1367 (mi_set_logging): New function.
1368 (_initialize_mi_interp): Add it to interp procs.
1370 2012-06-28 Doug Evans <dje@google.com>
1372 * symtab.c (lookup_symbol_aux_objfile): Use
1373 ALL_OBJFILE_PRIMARY_SYMTABS.
1375 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1377 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1379 * common/buffer.c: Include inttypes.h and stdint.h.
1380 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1382 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1383 Pedro Alves <palves@redhat.com>
1385 * gdbthread.h (ALL_THREADS): New macro.
1386 (thread_list): Declare.
1387 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1388 going, but instead fall through to the stepping handling.
1389 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1390 the passed in signal. Adjust debug output.
1391 (resume_callback): Rename to ...
1392 (linux_nat_resume_callback): ... this. Pass the thread's last
1393 stop signal, if in "pass" state.
1394 (linux_nat_resume): Adjust to rename.
1395 (stop_wait_callback): New assertion. Don't respawn signals;
1396 instead let the LWP remain with SIGNALLED set.
1397 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1398 * remote.c (append_pending_thread_resumptions): New.
1399 (remote_vcont_resume): Call it.
1400 * target.h (target_resume): Extend comment.
1402 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1404 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1406 2012-06-27 Doug Evans <dje@google.com>
1408 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1409 Delete have_addr_base, unused. All uses updated.
1410 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1411 (dwarf2_get_pc_bounds): Add ranges_base.
1412 (dwarf2_record_block_ranges): Ditto.
1414 2012-06-27 Tom Tromey <tromey@redhat.com>
1417 * varobj.c (varobj_create): Update.
1418 (varobj_set_value): Update.
1419 * tracepoint.c (validate_actionline): Update.
1420 (encode_actions_1): Update.
1421 * parse.c (parse_exp_1): Add 'pc' argument.
1422 (parse_exp_in_context): Add 'pc' argument. Change how
1423 expression_context_pc is set.
1424 (parse_expression): Update.
1425 (parse_field_expression): Update.
1426 * expression.h (parse_exp_1): Update.
1427 * eval.c (parse_to_comma_and_eval): Update.
1428 * breakpoint.c (set_breakpoint_condition): Update.
1429 (update_watchpoint): Update.
1430 (init_breakpoint_sal): Update
1431 (find_condition_and_thread): Update.
1432 (watch_command_1): Update.
1433 (update_breakpoint_locations): Update.
1434 * ada-lang.c (ada_read_renaming_var_value): Update.
1435 (create_excep_cond_exprs): Update.
1437 2012-06-27 Doug Evans <dje@google.com>
1439 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1442 2012-06-26 Doug Evans <dje@google.com>
1444 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1446 (error_check_comp_unit_head): New arg abbrev_section. All callers
1448 (read_and_check_comp_unit_head): Ditto.
1449 (read_and_check_type_unit_head): Ditto.
1451 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1453 New attribute 'last' for gdb.Symtab_and_line.
1454 * NEWS (Python Scripting): Add entry about the new attribute.
1455 * python/py-symtab.c (salpy_get_last): New function which
1456 implements the get method for the 'last' attribute of
1457 gdb.Symtab_and_line.
1458 (sal_object_getset): Add entry for the 'last' attribute.
1460 2012-06-26 Doug Evans <dje@google.com>
1462 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1463 (dwo_sections): Add macinfo, macro.
1464 (dwarf2_locate_dwo_sections): Watch for macro sections.
1465 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1466 All callers updated. Handle DWO files.
1468 * NEWS: Mention new options "set debug dwarf2-read" and
1469 "set debug symtab-create".
1470 * dwarf2read.c (dwarf2_read_debug): New static global.
1471 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1472 (process_queue): Ditto.
1473 (process_full_comp_unit): Ditto.
1474 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1475 * elfread.c (elf_symfile_read): Add debugging printf.
1476 * minsyms.c (install_minimal_symbols): Ditto.
1477 * psymtab.c (allocate_psymtab): Ditto.
1478 * symfile.c (allocate_symtab): Ditto.
1479 * symtab.c (symtab_create_debug): New global.
1480 (_initialize_symtab): Add new option "set debug symtab-create".
1481 * symtab.h (symtab_create_debug): Declare.
1483 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1484 (lookup_dwo_type_unit): Ditto.
1486 2012-06-26 Roland McGrath <roland@hack.frob.com>
1487 H.J. Lu <hongjiu.lu@intel.com>
1489 * amd64-linux-nat.c: Include <sys/user.h>.
1490 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1491 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1492 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1494 * configure.ac: Check if the fs_base and gs_base members of
1495 `struct user_regs_struct' exist.
1496 * config.in: Regenerated.
1497 * configure: Likewise.
1499 2012-06-25 Michael Eager <eager@eagercon.com>
1502 * python/python.c (gdbpy_write): Check for interrupted output.
1504 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1506 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1507 register as a stack alignment in ARM mode.
1509 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1511 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1512 * gnulib/config.in: Regenerate.
1513 * gnulib/configure: Likewise.
1514 * gnulib/import/m4/extensions.m4: Update it.
1515 * gnulib/import/m4/gnulib-common.m4: Likewise.
1516 * gnulib/import/m4/memmem.m4: Likewise.
1517 * gnulib/import/m4/mmap-anon.m4: Likewise.
1518 * gnulib/import/m4/multiarch.m4: Likewise.
1519 * gnulib/import/stdint.in.h: Likewise.
1521 2012-06-24 Yao Qi <yao@codesourcery.com>
1523 * corefile.c (write_memory_with_notification): New.
1524 * gdbcore.h: Declare write_memory_with_notification.
1525 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1526 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1527 * valops.c (value_assign): Likewise.
1528 * python/py-inferior.c (infpy_write_memory): Call
1529 'write_memory_with_notification'.
1531 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1533 * cc-with-index.sh: Use also -ex "set auto-load no".
1535 2012-06-23 Doug Evans <dje@google.com>
1538 * NEWS: Document additions to .gdb_index.
1539 * dwarf2read.c: #include "gdb/gdb-index.h".
1540 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1541 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1542 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1543 (dwarf2_read_index): Recognize version 7.
1544 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1545 block_kind, domain): All callers updated.
1546 (dw2_find_symbol_file): Handle new index CU values.
1547 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1548 (add_index_entry): New args is_static, kind. All callers updated.
1549 (offset_type_compare, uniquify_cu_indices): New functions
1550 (symbol_kind): New function.
1551 (write_psymtabs_to_index): Remove duplicate CU values.
1552 (write_psymtabs_to_index): Write .gdb_index version 7.
1554 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1556 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1557 * configure: Regenerate.
1559 2012-06-20 Yao Qi <yao@codesourcery.com>
1561 * python/py-inferior.c: Update comments of infpy_read_memory
1562 and infpy_write_memory.
1564 2012-06-19 Tom Tromey <tromey@redhat.com>
1567 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1568 (push_type_address_space): Remove.
1569 * parse.c (insert_into_type_stack): New function.
1570 (insert_type): Likewise.
1571 (insert_type_address_space): Rename from push_type_address_space.
1572 Insert tp_space_identifier.
1573 * c-exp.y (ptr_operator): New production.
1574 (abs_decl): Use ptr_operator.
1575 (space_identifier): Call insert_type_address_space.
1576 (ptype): Don't use const_or_volatile_or_space_identifier.
1577 (const_or_volatile_noopt): Call insert_type.
1578 (conversion_type_id, conversion_declarator): New productions.
1579 (operator): Use conversion_type_id.
1581 2012-06-18 Doug Evans <dje@google.com>
1583 * symtab.h (minimal_symbol): New member created_by_gdb.
1584 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1586 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1587 (search_symbols): Call it instead of lookup_symbol.
1588 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1590 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1591 Adjust address for DW_OP_GNU_addr_index.
1592 * dwarf2expr.h (dwarf_expr_context): Update comment.
1593 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1594 all callers updated. Handle TLS vars described with
1595 DW_OP_GNU_const_index.
1596 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1597 and DW_OP_GNU_const_index.
1598 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1600 * block.c (find_block_in_blockvector): Make explicit the fact that we
1601 ignore GLOBAL_BLOCK.
1603 2012-06-18 Tom Tromey <tromey@redhat.com>
1605 * c-exp.y (operator): Remove trailing space after "delete" and
1608 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1609 Jan Kratochvil <jan.kratochvil@redhat.com>
1611 Switch i386 and derived targets to ON_STACK.
1612 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1613 (amd64_dicos_init_abi): Remove its installment.
1614 * dicos-tdep.c (dicos_init_abi): Remove the
1615 set_gdbarch_call_dummy_location call. Update the comment here.
1616 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1617 (i386_dicos_init_abi): Remove its installment.
1618 * i386-tdep.c (i386_push_dummy_code): New function.
1619 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1620 i386_push_dummy_code.
1622 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1624 Remove stale dummy frames.
1625 * breakpoint.c: Include dummy-frame.h.
1626 (longjmp_breakpoint_ops): New variable.
1627 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1628 bp_longjmp_call_dummy.
1629 (bpstat_what, bptype_string, print_one_breakpoint_location)
1630 (init_bp_location): Support bp_longjmp_call_dummy.
1631 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1632 (set_longjmp_breakpoint_for_call_dummy)
1633 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1635 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1636 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1637 FIXME comment and extend the other comment for bp_call_dummy.
1638 (set_longjmp_breakpoint_for_call_dummy)
1639 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1640 * dummy-frame.c: Include gdbthread.h.
1641 (pop_dummy_frame_bpt): New function.
1642 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1643 (dummy_frame_discard): New function.
1644 (cleanup_dummy_frames): Update the comment about longjmps.
1645 * dummy-frame.h (dummy_frame_discard): New declaration.
1646 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1647 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1648 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1649 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1650 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1651 keep_going if IS_LONGJMP and there is no other reason to stop.
1653 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1655 * remote-sim.c (sim_command_completer): Initialize
1658 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1660 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1661 * dwarf2loc.c (call_site_parameter_matches): Support
1662 CALL_SITE_PARAMETER_PARAM_OFFSET.
1663 (needs_dwarf_reg_entry_value): Push stub value.
1664 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1665 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1666 * gdbtypes.h (enum call_site_parameter_kind): New item
1667 CALL_SITE_PARAMETER_PARAM_OFFSET.
1668 (struct call_site.parameter.u): New field param_offset.
1670 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1672 Code cleanup: Generalize call_site.parameter key.
1673 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1674 variable dwarf_reg. New variable kind_u. Update parameters to
1675 push_dwarf_reg_entry_value.
1676 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1677 * dwarf2expr.h (enum call_site_parameter_kind)
1678 (union call_site_parameter_u): Forward declarations.
1679 (struct dwarf_expr_context_funcs): Update parameters and their
1680 description for push_dwarf_reg_entry_value.
1681 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1682 * dwarf2loc.c (call_site_parameter_matches): New function.
1683 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1684 description. Use call_site_parameter_matches.
1685 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1686 Update parameters and their description.
1687 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1688 New variable kind_u. Adjust the caller for updated parameters.
1689 (needs_dwarf_reg_entry_value): Update parameters.
1690 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1691 instead of attr. Update for the changed fields of struct
1692 call_site_parameter.
1693 * gdbtypes.h: Include dwarf2expr.h.
1694 (enum call_site_parameter_kind): New.
1695 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1696 fb_offset into new union u.
1698 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1700 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1701 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1704 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1706 * amd64-linux-nat.c (compat_x32_clock_t): New.
1707 (compat_x32_siginfo_t): Likewise.
1708 (compat_x32_siginfo_from_siginfo): Likewise.
1709 (siginfo_from_compat_x32_siginfo): Likewise.
1710 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1711 and siginfo_from_compat_x32_siginfo for x32.
1713 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
1715 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1717 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1719 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1720 instead of gdbarch_ptr_bit.
1721 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1722 (amd64_supply_native_gregset): Likewise.
1723 (amd64_collect_native_gregset): Likewise.
1724 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1725 (amd64_supply_xsave): Likewise.
1726 (amd64_collect_fxsave): Likewise.
1727 (amd64_collect_xsave): Likewise.
1729 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1731 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1732 (amd64_linux_read_description): Check DS segment register for
1735 2012-06-15 Tom Tromey <tromey@redhat.com>
1737 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1738 init_cutu_and_read_dies.
1740 2012-06-15 Iain Sandoe <iain@codesourcery.com>
1742 * MAINTAINERS (Write After Approval): Add myself to the list.
1744 2012-06-15 Tom Tromey <tromey@redhat.com>
1746 * valops.c (value_find_oload_method_list): Now static.
1747 * value.h (value_find_oload_method_list): Don't declare.
1749 2012-06-15 Tom Tromey <tromey@redhat.com>
1751 * valops.c (find_overload_match): Use value_ind.
1753 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1755 * infrun.c (handle_inferior_event): Correct indentation.
1757 2012-06-14 Doug Evans <dje@google.com>
1759 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1760 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1762 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1763 updated. Handle DEBUG_LOC_START_LENGTH.
1764 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1765 (loclist_describe_location): Ditto.
1767 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1770 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1771 after hiding inline functions.
1773 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1775 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1776 _initialize_inf_ttrace.
1778 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1780 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1781 _initialize_hppa_hpux_nat.
1783 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1785 * remote-sim.c (sim_command_completer): Change type of return
1786 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1788 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1789 Jan Kratochvil <jan.kratochvil@redhat.com>
1792 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1793 stack on a 16-byte boundary.
1795 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
1797 * jit.c (finalize_symtab): Set function's return type to 'void' by
1800 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1801 H.J. Lu <hongjiu.lu@intel.com>
1803 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1804 Move bits common to both the classic LP64 and the new x32 ILP32
1806 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1807 (amd64_x32_linux_init_abi): New function.
1808 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1811 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1812 * i386-tdep.c (i386_pseudo_register_name): Make public.
1813 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1814 * amd64-tdep.c (amd64_dword_names): Add "eip".
1815 (amd64_x32_pseudo_register_type): New function
1816 (amd64_x32_init_abi): New function.
1818 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1821 * inferior.h (struct inferior_suspend_state): Comment out.
1822 (struct inferior): Comment out the field suspend.
1823 * infrun.c (struct infcall_suspend_state): Comment out the field
1825 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1828 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1830 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1831 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1832 function comment. Return ERROR for unresolved cases. Implement
1833 returning proper NAME.
1834 (yylex): Accept also NAME from classify_inner_name.
1835 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1836 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1838 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1840 2012-06-13 Tom Tromey <tromey@redhat.com>
1842 * breakpoint.c (condition_completer): New function.
1843 (_initialize_breakpoint): Use it.
1844 * value.c (complete_internalvar): New function.
1845 * value.h (complete_internalvar): Declare.
1847 2012-06-13 Tom Tromey <tromey@redhat.com>
1849 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1850 * breakpoint.c (catch_syscall_completer): Return a VEC.
1851 * cli/cli-cmds.c (complete_command): Update.
1852 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1853 (complete_on_enum): Likewise.
1854 * command.h: Include gdb_vecs.h.
1855 (completer_ftype): Change return type.
1856 (complete_on_cmdlist, complete_on_enum): Likewise.
1857 * completer.c (noop_completer, filename_completer)
1858 (location_completer): Return a VEC.
1859 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1861 (expression_completer, complete_line_internal, complete_line)
1862 (command_completer): Return a VEC.
1863 (gdb_completion_word_break_characters, line_completion_function):
1865 * completer.h: Include gdb_vecs.h.
1866 (complete_line, noop_completer, filename_completer)
1867 (expression_completer, location_completer, command_completer):
1869 * f-lang.c (f_word_break_characters): Return a VEC.
1870 * interps.c (interpreter_completer): Return a VEC.
1871 * language.h (struct language_defn)
1872 <la_make_symbol_completion_list>: Return a VEC.
1873 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1874 * symtab.c (free_completion_list): Take a VEC.
1875 (return_val_size, return_val_index): Remove.
1876 (return_val): Now a VEC.
1877 (completion_list_add_name): Update.
1878 (default_make_symbol_completion_list_break_on)
1879 (default_make_symbol_completion_list, make_symbol_completion_list)
1880 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1882 (add_filename_to_list): Update.
1883 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1885 (maybe_add_partial_symtab_filename): Update.
1886 (make_source_files_completion_list): Return a VEC.
1887 * symtab.h (default_make_symbol_completion_list_break_on)
1888 (default_make_symbol_completion_list, make_symbol_completion_list)
1889 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1890 (make_source_files_completion_list): Update.
1892 2012-06-13 Tom Tromey <tromey@redhat.com>
1894 * breakpoint.c (add_catch_command): Use completer_ftype.
1895 * breakpoint.h: Include command.h.
1896 (add_catch_command): Use completer_ftype.
1897 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1898 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1899 Use completer_ftype.
1900 * command.h (completer_ftype): New typedef.
1901 (set_cmd_completer): Use it.
1902 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1905 2012-06-13 Pedro Alves <palves@redhat.com>
1907 Partial revert of previous change.
1909 * serial.c (scb_base): New global.
1910 (serial_for_fd): New.
1911 (serial_open, serial_fdopen_ops): Link new serial in open serials
1913 (do_serial_close): Unlink serial from the open serials chain.
1915 2012-06-12 Pedro Alves <palves@redhat.com>
1917 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
1919 (prepare_for_detach): No longer context switch here in non-stop
1921 (fetch_inferior_event): Ditto.
1922 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
1923 to the event thread before removing breakpoints. Switch to the
1924 event thread before inserting breakpoints and resuming.
1925 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
1926 event thread before resuming.
1927 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
1928 Switch to the event thread before removing breakpoints.
1930 2012-06-12 Eli Zaretskii <eliz@gnu.org>
1932 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
1933 special characters correctly for the Windows shells. See
1934 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
1936 [!__MINGW32__]: Remove extra double quote character from special
1939 2012-06-11 Stan Shebs <stan@codesourcery.com>
1941 * ui-out.h: Remove #if 0 declarations.
1942 * ui-out.c: Remove #if 0 functions.
1944 2012-06-11 Pedro Alves <palves@redhat.com>
1946 * ser-base.c (run_async_handler_and_reschedule): New.
1947 (fd_event, push_event): Use it.
1948 * serial.c (serial_open, serial_fdopen_ops): Set the initial
1949 reference count to 1.
1950 (do_serial_close): Set the bufp field to NULL. Use serial_unref
1952 (serial_is_open, serial_ref, serial_unref): New.
1953 * serial.h (serial_open): Adjust comment.
1954 (serial_is_open): Declare.
1955 (serial_close): Adjust comment.
1956 (serial_ref, serial_unref) Declare.
1957 (struct serial): New field 'refcnt'.
1959 2012-06-11 Pedro Alves <palves@redhat.com>
1961 Remove #if 0'd "connect" command, and unnecessary associated
1962 refcounting and serial reuse bits.
1964 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
1965 * serial.c (last_serial_opened): Delete.
1967 (serial_open): Adjust.
1968 (serial_for_fd): Delete.
1969 (serial_fdopen_ops, do_serial_close): Adjust.
1970 (serial_fdopen_ops): Adjust.
1972 2012-06-11 Pedro Alves <palves@redhat.com>
1974 * serial.c (do_serial_close): Remove early return when SCB is
1977 2012-06-11 Tom Tromey <tromey@redhat.com>
1979 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
1981 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1983 Fix regression by the "ambiguous linespec" series.
1984 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
1985 get_last_displayed_symtab and get_last_displayed_line and depending
1988 2012-06-11 Tom Tromey <tromey@redhat.com>
1990 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
1991 (dw2_find_symbol_file): Use it.
1993 2012-06-11 Michael Eager <eager@eagercon.com>
1995 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
1996 * mips-linux-tdep.h (mips_signals): New
1998 2012-06-11 Tom Tromey <tromey@redhat.com>
2000 * infrun.c (handle_inferior_event)
2001 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
2003 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
2004 exception logic in all cases. Update comments.
2005 (insert_longjmp_resume_breakpoint): Set the exception resume
2008 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
2010 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
2012 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
2014 * valarith.c (binop_types_user_defined_p): Fix a typo.
2016 2012-06-08 Yao Qi <yao@codesourcery.com>
2017 Chung-Lin Tang <cltang@codesourcery.com>
2019 * arch-utils.c (default_return_in_first_hidden_param_p): New.
2020 * arch-utils.h: Declare.
2021 * gdbarch.sh: Add return_in_first_hidden_param_p.
2022 * gdbarch.c, gdbarch.h: Regenerated.
2023 * infcall.c (call_function_by_hand): Call
2024 gdbarch_return_in_first_hidden_param_p instead of
2025 language_pass_by_reference.
2027 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
2028 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
2029 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
2030 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
2031 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
2032 `cplus_return_struct_by_reference'.
2033 (tic6x_return_value): Handle language cplusplus.
2034 (tic6x_return_in_first_hidden_param_p): New.
2035 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
2037 2012-06-07 Doug Evans <dje@google.com>
2039 * dwarf2read.c (dwarf2_cu): Add comment.
2041 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2043 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
2045 (mips_eabi_push_dummy_call): Likewise.
2046 (mips_n32n64_push_dummy_call): Likewise.
2047 (mips_o32_push_dummy_call): Likewise.
2048 (mips_o64_push_dummy_call): Likewise.
2050 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2052 * mips-tdep.c (mips_convert_register_p): Correct coding style.
2054 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2056 * mips-tdep.c (mips_pseudo_register_type): Use
2057 mips_float_register_p.
2059 2012-06-06 Pedro Alves <palves@redhat.com>
2061 * infrun.c (handle_inferior_event): Remove calls to
2062 reinit_frame_cache that follow a context_switch call.
2064 2012-06-06 Pedro Alves <palves@redhat.com>
2066 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
2067 context_switch and remove stale comment.
2069 2012-06-06 Pedro Alves <palves@redhat.com>
2071 * infrun.c (struct execution_control_state): Remove
2072 `new_thread_event' field.
2073 (handle_inferior_event): Simplify new threads handling; don't
2074 resume the inferior if we find a new thread.
2076 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
2078 * NEWS: Document the deprecation of SH's 'regs' command.
2079 * inferior.h (all_registers_info): Add function declaration.
2080 * sh-tdep.c (sh_show_regs): Remove variable.
2081 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2082 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2083 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2084 (sh_show_regs_command): Remove functions.
2085 (sh_gdbarch_init): Don't set sh_show_regs.
2086 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2087 'info all-registers'.
2088 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2089 (sh64_show_regs): Remove functions.
2090 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2092 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2094 * configure.ac: Move development=true below AC_INIT.
2095 * configure: Regenerate.
2097 2012-06-05 Stan Shebs <stan@codesourcery.com>
2099 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2102 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2104 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2105 argument as ssize_t.
2106 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2107 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2108 * target.c (target_read_stack, target_write_memory)
2109 (target_write_raw_memory): Likewise.
2110 * target.h (target_read_stack, target_write_memory)
2111 (target_write_raw_memory): Likewise.
2113 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2115 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2116 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2117 * target.c (target_read_memory): Change LEN to ssize_t.
2118 * target.h (target_read_memory): Change LEN to ssize_t.
2120 2012-06-05 Pedro Alves <palves@redhat.com>
2124 * breakpoint.c (until_break_command): Only fetch the selected
2125 frame after decode_line_1.
2127 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2129 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2130 event breakpoint at _start, __start or main if a program
2131 interpreter is not found.
2133 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2135 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2137 * windows-tdep.c: #include "objfiles.h".
2138 (windows_iterate_over_objfiles_in_search_order): New function.
2139 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2140 iterate_over_objfiles_in_search_order gdbarch method to
2141 windows_iterate_over_objfiles_in_search_order.
2142 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2144 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2146 * gdbarch.sh: Add generation of
2147 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2148 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2149 (iterate_over_objfiles_in_search_order): New gdbarch method.
2150 * gdbarch.h, gdbarch.c: Regenerate.
2151 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2153 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2155 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2156 out of lookup_symbol_aux_symtabs.
2157 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2158 call to lookup_symbol_aux_objfile.
2159 (struct global_sym_lookup_data): New type.
2160 (lookup_symbol_global_iterator_cb): New function.
2161 (lookup_symbol_global): Search for symbol using
2162 gdbarch_iterate_over_objfiles_in_search_order and
2163 lookup_symbol_global_iterator_cb.
2164 * findvar.c (struct minsym_lookup_data): New type.
2165 (minsym_lookup_iterator_cb): New function.
2166 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2167 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2168 and minsym_lookup_iterator_cb.
2170 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2172 Revert the following patch:
2173 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2174 try locating the symbol in the symbol's own objfile first, before
2175 extending the search to all objfiles.
2176 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2177 out of lookup_symbol_aux_symtabs.
2178 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2179 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2180 Do not search EXCLUDE_OBJFILE.
2181 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2182 (lookup_symbol_global): Search for matches in the block's objfile
2183 first, before searching all other objfiles.
2185 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2187 * breakpoint.c (find_condition_and_thread): Stop parsing
2188 as soon as the first invalid keyword is found.
2190 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2192 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2194 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2196 * config/djgpp/djcheck.sh: Add copyright header.
2198 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2200 * copyright.py (update_files, main): Fix path to update-copyright
2203 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2205 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2206 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2207 for which a reminder to update by hand is printed.
2209 2012-06-04 Doug Evans <dje@google.com>
2211 * buildsym.c (make_blockvector): Add comment.
2213 2012-06-04 Pedro Alves <palves@redhat.com>
2215 * arch-utils.c (default_gdb_signal_from_target): Delete.
2216 * arch-utils.h (default_gdb_signal_from_target): Delete.
2217 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2218 gdbarch_gdb_signal_from_target_p.
2219 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2221 * gdbarch.h: Regenerate.
2222 * gdbarch.c: Regenerate.
2224 2012-06-04 Pedro Alves <palves@redhat.com>
2226 * gdbarch.sh (gdb_signal_from_target): Mention that the
2227 implementation of the method must be host independent.
2228 * gdbarch.h: Regenerate.
2230 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2232 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2234 (target_read_memory_bfd): New function.
2235 (symbol_file_add_from_memory): Use it.
2237 2012-06-03 Doug Evans <dje@google.com>
2239 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2241 (basic_lookup_transparent_type): Ditto.
2243 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2244 (ALL_PRIMARY_SYMTABS): Use it.
2245 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2246 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2247 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2248 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2249 (basic_lookup_transparent_type): Ditto.
2251 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2253 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2254 it to optimize resolution of demangled name.
2256 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2258 * configure.ac (development): Define new variable.
2259 Call AC_CHECK_LIB for mcheck if $development.
2260 (ERROR_ON_WARNING): Enable it by default only if $development.
2261 * config.in: Regenerate.
2262 * configure: Regenerate.
2264 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2266 * target.c (target_read_memory): Make LEN argument as size_t.
2267 * target.h (target_read_memory): Likewise.
2269 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2271 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2273 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2275 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2276 BookE interface for PowerPC server processors if not available
2277 in the Linux Kernel.
2279 2012-05-31 Keith Seitz <keiths@redhat.com>
2281 * linespec.c (decode_objc): Add cleanup to free
2283 (find_linespec_symbols): Add cleanup to free CLASSES.
2284 * symfile.c (find_separate_debug_file_by_debuglink): Add
2285 cleanup to free DEBUGLINK.
2286 * ui-out.c (clear_header_list): No need to check if
2287 HEADER_NEXT.COLHDR is NULL.
2288 Free HEADER_NEXT.COL_NAME.
2290 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2292 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2295 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2297 * configure.host (gdb_host_cpu): Handle tilegx*.
2298 (gdb_host): Handle tilegx-*-linux*.
2299 * tilegx-linux-nat.c: New file.
2300 * config/tilegx/linux.mh: New file.
2302 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2304 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2305 tilegx-linux-tdep.o.
2306 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2307 tilegx-linux-tdep.c.
2308 * configure.tgt: Handle tilegx-*-linux*.
2309 * tilegx-tdep.h: New file.
2310 * tilegx-tdep.c: New file.
2311 * tilegx-linux-tdep.c: New file.
2312 * regformats/reg-tilegx.dat: New file.
2314 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2316 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2317 accounting of hw watchpoints on ppc.
2319 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2321 * source.c (openp): Expand tilde in path entries.
2323 2012-05-29 Doug Evans <dje@google.com>
2325 * buildsym.c (block_compar): Fix comment.
2326 (end_symtab): Fix and clarify some comments.
2328 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2329 cleanup_undefined_types.
2330 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2331 All callers updated.
2333 2012-05-29 Tom Tromey <tromey@redhat.com>
2335 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2337 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2338 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2340 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2343 2012-05-29 Tristan Gingold <gingold@adacore.com>
2345 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2346 (struct darwin_info): ... New struct.
2347 (solib_darwin_pspace_data): New variable.
2348 (darwin_pspace_data_cleanup): New function.
2349 (get_darwin_info): Likewise.
2350 (darwin_dyld_version_ok, darwin_load_image_infos)
2351 (darwin_solib_get_all_image_info_addr_at_init)
2352 (darwin_solib_read_all_image_info_addr): Add info argument.
2354 (darwin_current_sos): Use per pspace structure.
2355 (darwin_solib_create_inferior_hook): Likewise.
2356 (darwin_clear_solib): Likewise.
2357 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2359 2012-05-28 Pedro Alves <palves@redhat.com>
2361 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2362 block that uses them. Clear ecss before handling each event.
2364 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2366 * solib-svr4.c (svr4_current_sos): New comment on
2367 svr4_current_sos_via_xfer_libraries fall back.
2369 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2371 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2372 it as a fallback for TYPE_IS_OPAQUE.
2373 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2374 symbols for lookup_symbol.
2376 2012-05-24 John Steele Scott <toojays@toojays.net>
2378 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2379 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2380 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2381 (check_producer): ... this new function, which also checks for ICC
2382 and caches the result.
2383 (producer_is_icc): New function.
2384 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2387 2012-05-24 Pedro Alves <palves@redhat.com>
2391 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2392 (default_gdb_signal_to_target): ... this. Add comment.
2393 (default_gdb_signal_from_host): Rename to ...
2394 (default_gdb_signal_from_target): ... this. Add comment.
2395 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2396 (default_gdb_signal_to_target): ... this.
2397 (default_gdb_signal_from_host): Rename to ...
2398 (default_gdb_signal_from_target): ... this.
2399 * corelow.c (core_open): Adjust to naming change. Replace comment.
2400 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2401 (gdb_signal_from_target): ... this. Adjust to
2402 default_gdb_signal_from_host naming change. Extend comment.
2403 (gdb_signal_to_host): Rename to ...
2404 (gdb_signal_to_target): ... this. Adjust to
2405 default_gdb_signal_to_host naming change.
2406 * gdbarch.h, gdbarch.c: Renegerate.
2408 2012-05-24 Pedro Alves <palves@redhat.com>
2412 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2414 2012-05-24 Pedro Alves <palves@redhat.com>
2418 Replace target_signal with gdb_signal throughout.
2420 2012-05-24 Pedro Alves <palves@redhat.com>
2424 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2425 string, instead of reusing the va_list argument.
2427 2012-05-24 Tom Tromey <tromey@redhat.com>
2429 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2432 2012-05-23 Doug Evans <dje@google.com>
2434 * symtab.c (search_symbols): Formatting fixes.
2435 (print_symbol_info): Formatting fixes.
2437 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2438 int64_t change to leb128 API.
2439 (read_encoded_value, decode_frame_entry_1): Ditto.
2440 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2441 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2442 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2443 (execute_stack_op): Ditto.
2444 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2445 (safe_read_uleb128, safe_read_sleb128): Ditto.
2446 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2447 (dwarf2_compile_expr_to_ax): Ditto.
2448 (locexpr_describe_location_piece): Ditto.
2449 (disassemble_dwarf_expression): Ditto.
2450 (locexpr_describe_location_1): Ditto.
2452 2012-05-23 Stan Shebs <stan@codesourcery.com>
2453 Kwok Cheung Yeung <kcy@codesourcery.com>
2455 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2456 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2457 (mi-cmd-info.o): New rule.
2458 * osdata.h (info_osdata_command): New declaration.
2459 * osdata.c (info_osdata_command): Change to non-static.
2460 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2461 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2462 * mi/mi-cmd-info.c: New file.
2464 2012-05-23 Doug Evans <dje@google.com>
2466 * symtab.c (search_symbols): Pass NULL for file_matcher to
2467 expand_symtabs_matching if there are no files to match.
2469 * gdbtypes.c (lookup_typename): Simplify.
2471 2012-05-23 Pedro Alves <palves@redhat.com>
2473 * arch-utils.h (default_target_signal_to_host): Delete.
2474 * arch-utils.c (default_target_signal_to_host): Delete.
2475 * gdbarch.sh (target_signal_to_host): Remove.
2476 * gdbarch.h, gdbarch.c: Regenerate.
2478 2012-05-22 Doug Evans <dje@google.com>
2480 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2482 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2483 (execute_cfa_program): Update to match API of leb128 functions.
2484 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2486 (read_unsigned_leb128, read_signed_leb128): Delete.
2487 (read_initial_length): Change type of buf argument to
2489 (read_encoded_value): Update to match API of leb128 functions.
2490 (decode_frame_entry): Change result to "const gdb_byte *", and
2491 similarly for "start" parameter.
2492 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2493 (dwarf2_build_frame_info): Change local frame_ptr to
2495 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2496 read_uleb128, read_sleb128. All callers updated.
2497 (safe_skip_leb128): New function.
2498 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2499 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2500 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2501 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2502 read_uleb128, read_sleb128.
2503 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2504 (execute_stack_op): Update to match API of leb128 functions.
2505 * dwarf2expr.h: #include "leb128.h".
2506 (read_uleb128, read_sleb128): Delete.
2507 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2508 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2509 * dwarf2loc.c (debug_loc_kind): New enum.
2510 (decode_debug_loc_addresses): New function.
2511 (decode_debug_loc_dwo_addresses): New function.
2512 (dwarf2_find_location_expression): Rewrite.
2513 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2514 (locexpr_describe_location_piece): Ditto.
2515 (disassemble_dwarf_expression): Ditto.
2516 (locexpr_describe_location_1): Ditto.
2517 (loclist_describe_location): Rewrite.
2518 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2519 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2520 (dwarf2_section_buffer_overflow_complaint): Renamed from
2521 dwarf2_macros_too_long_complaint. All callers updated.
2522 (skip_leb128): Delete.
2523 (init_cu_die_reader): Initialize reader->buffer_end.
2524 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2525 (skip_form_bytes): New arg buffer_end. All callers updated.
2526 Replace call to skip_leb128 with gdb_skip_leb128.
2527 (skip_unknown_opcode): New arg mac_end. All callers updated.
2528 (fill_in_loclist_baton): Initialize baton->from_dwo.
2530 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2532 * mips-linux-nat.c (mips_linux_read_description): Use a more
2533 verbose error message.
2535 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2537 * NEWS: Add MIPS/Linux DSP support.
2538 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2539 (SIGCONTEXT_DSPCTL): New macro.
2540 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2541 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2542 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2543 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2544 (N64_SIGCONTEXT_HI3): Likewise.
2545 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2546 (N64_SIGCONTEXT_LO3): Likewise.
2547 (N64_SIGCONTEXT_DSPCTL): Likewise.
2548 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2549 (mips_linux_o32_sigframe_init): Handle DSP registers.
2550 (mips_linux_n32n64_sigframe_init): Likewise.
2552 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2554 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2557 2012-05-22 Pedro Alves <palves@redhat.com>
2559 * target.h (store_waitstatus): Move declaration ...
2560 * inf-child.h (store_waitstatus): ... here.
2561 * target.c: Move inclusion of gdb_wait.h, and ...
2562 (store_waitstatus): ... this ...
2563 * inf-child.c: ... here.
2564 * linux-nat.c: Include inf-child.h.
2565 * rs6000-nat.c: Include inf-child.h.
2566 * spu-linux-nat.c: Include inf-child.h.
2568 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2570 * tracepoint.c (start_tracing): Add missing i18n markup.
2571 (stop_tracing, set_trace_user): Ditto.
2572 (set_trace_notes, set_trace_stop_notes): Ditto.
2574 2012-05-21 Tom Tromey <tromey@redhat.com>
2577 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2579 * value.h (value_cast_pointers): Update.
2580 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2581 (value_cast): Update.
2582 (update_search_result): New function.
2583 (do_search_struct_field): New, from search_struct_field. Check
2584 for ambiguous results.
2585 (search_struct_field): Rewrite.
2586 * infcall.c (value_arg_coerce): Update.
2587 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2588 value_cast_pointers.
2589 * ada-lang.c (ada_convert_actual): Update.
2591 2012-05-21 Tom Tromey <tromey@redhat.com>
2593 * macroexp.c (macro_stringify): Terminate the string.
2595 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2597 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2599 * auto-load.c (auto_load_expand_dir_vars): New function.
2600 (auto_load_safe_path_vec_update): Use it, remove the
2601 substitute_path_component call thanks to it.
2602 (auto_load_objfile_script): Remove the debug_file_directory processing.
2603 Use auto_load_expand_dir_vars, remove the substitute_path_component
2605 * configure: Regenerate.
2606 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2607 path. Escape $ also for $debugdir.
2608 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2609 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2611 2012-05-20 Doug Evans <dje@google.com>
2613 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2614 before use. Check for symtab->includes == NULL before scanning it.
2616 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2618 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2620 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2622 * NEWS: Add microMIPS support and "set mips compression",
2623 "show mips compression" commands.
2624 * mips-tdep.h (mips_isa): New enum.
2625 (gdbarch_tdep): Add mips_isa.
2626 (mips_pc_is_mips16): Update prototype.
2627 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2628 * mips-tdep.c (mips_compression_mips16): New variable.
2629 (mips_compression_micromips): Likewise.
2630 (mips_compression_strings): Likewise.
2631 (mips_compression_string): Likewise.
2632 (is_mips16_isa, is_micromips_isa): New functions.
2633 (is_mips16_addr): Rename to...
2634 (is_compact_addr): ... this.
2635 (unmake_mips16_addr): Likewise to...
2636 (unmake_compact_addr): ... this.
2637 (make_mips16_addr): Likewise to...
2638 (make_compact_addr): ... this.
2639 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2641 (mips_elf_make_msymbol_special): Handle microMIPS code.
2642 (msymbol_is_special): Rename to...
2643 (msymbol_is_mips16): ... this.
2644 (mips_make_symbol_special, mips_pc_is_mips16): Update
2646 (msymbol_is_mips, msymbol_is_micromips): New functions.
2647 (mips16_to_32_reg): Rename to...
2648 (mips_reg3_to_reg): ... this.
2649 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2650 (mips_pc_isa): Likewise.
2651 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2653 (mips_fetch_instruction): Pass return status instead of printing
2654 an error message if requested. Handle microMIPS code. Bail out
2656 (micromips_op): New macro.
2657 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2658 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2659 (b6s4_op, b7s3_reg): Likewise.
2660 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2661 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2662 (mips_insn_size): New function.
2663 (mips32_next_pc): Update mips_fetch_instruction call.
2664 (micromips_relative_offset7): New function.
2665 (micromips_relative_offset10): Likewise.
2666 (micromips_relative_offset16): Likewise.
2667 (micromips_pc_insn_size): Likewise.
2668 (micromips_bc1_pc): Likewise.
2669 (micromips_next_pc): Likewise.
2670 (unpack_mips16): Update mips_fetch_instruction call.
2671 (extended_mips16_next_pc): Update according to change to
2673 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2675 (mips16_scan_prologue): Update mips_fetch_instruction call.
2676 Update according to change to mips16_to_32_reg.
2677 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2678 (mips_insn16_frame_base_sniffer): Likewise.
2679 (micromips_decode_imm9): New function.
2680 (micromips_scan_prologue): Likewise.
2681 (mips_micro_frame_cache): Likewise.
2682 (mips_micro_frame_this_id): Likewise.
2683 (mips_micro_frame_prev_register): Likewise.
2684 (mips_micro_frame_sniffer): Likewise.
2685 (mips_micro_frame_unwind): New variable.
2686 (mips_micro_frame_base_address): New function.
2687 (mips_micro_frame_base): New variable.
2688 (mips_micro_frame_base_sniffer): New function.
2689 (mips32_scan_prologue): Update mips_fetch_instruction call.
2690 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2691 rather than for MIPS16.
2692 (mips_insn32_frame_base_sniffer): Likewise.
2693 (mips_addr_bits_remove): Handle microMIPS code.
2694 (deal_with_atomic_sequence): Rename to...
2695 (mips_deal_with_atomic_sequence): ... this. Update the type
2696 of the variable used to hold an instruction. Remove the ISA bit
2697 check. Update mips_fetch_instruction call.
2698 (micromips_deal_with_atomic_sequence): New function.
2699 (deal_with_atomic_sequence): Likewise.
2700 (mips_about_to_return): Handle microMIPS code. Update
2701 mips_fetch_instruction call.
2702 (heuristic_proc_start): Check for the standard MIPS ISA rather
2703 than for MIPS16. Update mips_pc_is_mips16 and
2704 mips_fetch_instruction calls. Handle microMIPS code.
2705 (mips_push_dummy_code): Handle microMIPS code.
2706 (mips_eabi_push_dummy_call): Likewise.
2707 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2708 (mips_o64_push_dummy_call): Handle microMIPS code.
2709 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2710 (is_delayed): Remove function.
2711 (mips_single_step_through_delay): Replace the call to is_delayed
2712 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2713 Handle microMIPS code.
2714 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2716 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2718 (micromips_in_function_epilogue_p): New function.
2719 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2721 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2723 (gdb_print_insn_mips): Likewise.
2724 (mips_breakpoint_from_pc): Likewise.
2725 (mips_remote_breakpoint_from_pc): New function.
2726 (mips32_instruction_has_delay_slot): Simplify making use of the
2727 updated mips_fetch_instruction interface.
2728 (micromips_instruction_has_delay_slot): New function.
2729 (mips16_instruction_has_delay_slot): Simplify making use of the
2730 updated mips_fetch_instruction interface.
2731 (mips_adjust_breakpoint_address): Check for the standard MIPS
2732 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2733 calls. Handle microMIPS code.
2734 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2735 (mips_skip_trampoline_code): Handle microMIPS code.
2736 (global_mips_compression): New function.
2737 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2738 file flags. Register the microMIPS remote breakpoint handler
2739 and heuristic frame unwinder.
2740 (show_mips_compression): New function.
2741 (_initialize_mips_tdep): Add the "set mips compression" and
2742 "show mips compression" commands.
2744 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2749 * amd64-darwin-tdep.c:
2750 * arm-symbian-tdep.c:
2754 * bfin-linux-tdep.c:
2761 * dwarf2-frame-tailcall.c:
2790 * microblaze-tdep.c:
2791 * mips-linux-tdep.c:
2799 * python/py-finishbreakpoint.c:
2800 * python/py-inferior.c:
2801 * python/py-infthread.c:
2805 * remote-m32r-sdi.c:
2809 * rs6000-aix-tdep.c:
2835 * amd64-darwin-tdep.c:
2836 * arm-symbian-tdep.c:
2837 * arm-tdep.c: Delete unused variables.
2839 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2841 Rename $ddir to $datadir.
2842 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2843 * auto-load.c (auto_load_safe_path_vec_update)
2844 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2845 * configure: Regenerate.
2846 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2847 Likewise. Remove the 'use $ddir' help string.
2849 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2851 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2852 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2854 2012-05-18 Tom Tromey <tromey@redhat.com>
2857 * valprint.h (struct value_print_options) <symbol_print>: New
2859 * valprint.c (user_print_options): Add default for symbol_print.
2860 (show_symbol_print): New function.
2861 (generic_val_print): Respect symbol_print.
2862 (_initialize_valprint): Add "print symbol" setting.
2863 * f-valprint.c (f_val_print): Respect symbol_print.
2864 * c-valprint.c (c_val_print): Respect symbol_print.
2866 * printcmd.c (print_address_symbolic): Return int. Ignore some
2868 (print_address_demangle): Return int.
2869 * defs.h: (print_address_symbolic): Return int.
2870 * value.h (print_address_demangle): Return int.
2872 2012-05-18 Tom Tromey <tromey@redhat.com>
2874 * valprint.c (val_print_string): Don't print leading space.
2875 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2876 print space before string or vtbl.
2877 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2879 * jv-valprint.c (java_value_print): Print space before string.
2880 * go-valprint.c (print_go_string): Print space before string.
2881 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2882 space before string.
2883 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2884 space before string or vtbl.
2885 * auxv.c (fprint_target_auxv): Print space after address.
2887 2012-05-18 Tom Tromey <tromey@redhat.com>
2889 * printcmd.c (print_address_demangle): Remove special case for 0.
2891 2012-05-18 Tom Tromey <tromey@redhat.com>
2893 * printcmd.c (print_address_demangle): Add 'opts' argument.
2894 * p-valprint.c (pascal_val_print): Update.
2895 * jv-valprint.c (java_val_print): Update.
2897 * valprint.c (generic_val_print): Update.
2898 (print_function_pointer_address): Add 'options' argument. Remove
2899 'addressprint' argument. Update.
2900 * m2-valprint.c (print_unpacked_pointer): Update.
2901 * gnu-v3-abi.c (print_one_vtable): Update.
2902 (gnuv3_print_method_ptr): Update.
2903 * f-valprint.c (f_val_print): Update.
2904 * cp-valprint.c (cp_print_value_fields): Update.
2905 * valprint.h (print_function_pointer_address): Update.
2906 * c-valprint.c (c_val_print): Update.
2908 2012-05-18 Tom Tromey <tromey@redhat.com>
2910 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2911 directly corresponding to the found psymtab.
2912 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2913 (dw2_find_pc_sect_symtab): Use it.
2914 * block.h (blockvector_contains_pc): Declare.
2915 * block.c (find_block_in_blockvector): New function.
2916 (blockvector_for_pc_sect): Use it.
2917 (blockvector_contains_pc): New function.
2919 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2921 * mips-tdep.h (mips_write_pc): New prototype.
2922 * mips-tdep.c (mips_write_pc): Make external, add description.
2923 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
2926 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2928 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
2930 (mips_unwind_pc, mips_write_pc): Likewise.
2931 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
2934 2012-05-17 Joel Brobecker <brobecker@adacore.com>
2936 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
2937 proc_warn, proc_error, proc_get_status, proc_flags,
2938 proc_why, proc_what, proc_nsysarg, proc_sysargs,
2939 proc_set_run_on_last_close, proc_unset_run_on_last_close,
2940 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
2941 proc_stop_process, proc_wait_for_stop, proc_run_process,
2942 proc_set_traced_signals, proc_set_traced_faults,
2943 proc_set_traced_sysentry, proc_set_traced_sysexit,
2944 proc_set_held_signals, proc_get_held_signals,
2945 proc_get_traced_signals, proc_get_traced_faults,
2946 proc_get_traced_sysentry, proc_get_traced_sysexit,
2947 proc_clear_current_fault, proc_set_current_signal,
2948 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
2949 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
2950 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
2951 proc_get_current_thread, proc_get_current_thread,
2952 proc_get_current_thread, proc_update_threads,
2953 proc_update_threads, proc_update_threads, proc_update_threads,
2954 proc_iterate_over_threads, procfs_find_new_threads,
2955 procfs_pid_to_str): Make static. Remove advance declaration.
2956 (proc_cursig): Make static. Conditionalized defintion on
2957 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
2958 (proc_syscall, proc_set_kill_on_last_close,
2959 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
2960 proc_get_pending_signals, proc_get_signal_actions,
2961 proc_trace_signal, proc_ignore_signal): Delete.
2963 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2965 * coffread.c (cs_section_address): Passing proper argument for
2966 `bfd_get_section_vma'.
2967 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
2968 `bfd_get_section_flags'.
2969 * remote.c (remote_trace_set_readonly_regions): Likewise, for
2970 `bfd_get_section_vma'.
2972 2012-05-16 Tom Tromey <tromey@redhat.com>
2975 * macrotab.h: (macro_define_special): Declare.
2976 (enum macro_special_kind): New.
2977 (struct macro_definition) <argc, replacement>: Update comments.
2978 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
2979 (macro_define_object_internal): New function.
2980 (macro_define_object): Use it.
2981 (macro_define_special): New function.
2982 (fixup_definition): New function.
2983 (macro_lookup_definition, foreach_macro_in_scope)
2984 (foreach_macro): Use fixup_definition.
2985 * macroexp.h (macro_stringify): Declare.
2986 * macroexp.c (free_buffer_return_text): New function.
2987 (stringify): Constify "arg".
2988 (macro_stringify): New function.
2989 * dwarf2read.c (macro_start_file): Call macro_define_special.
2991 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
2992 Maciej W. Rozycki <macro@mips.com>
2994 * breakpoint.h (bp_location): Add related_address member.
2995 * inferior.h (get_return_value): Take a pointer to struct value
2996 instead of struct type for the function requested.
2997 * value.h (using_struct_return): Likewise.
2998 * gdbarch.sh (return_value): Take a pointer to struct value
2999 instead of struct type for the function requested.
3000 * breakpoint.c (set_breakpoint_location_function): Initialize
3001 related_address for bp_gnu_ifunc_resolver breakpoints.
3002 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
3003 requested function's address to gdbarch_return_value.
3004 * eval.c (evaluate_subexp_standard): Pass the requested
3005 function's address to using_struct_return.
3006 * infcall.c (call_function_by_hand): Pass the requested
3007 function's address to using_struct_return and
3008 gdbarch_return_value.
3009 * infcmd.c (get_return_value): Take a pointer to struct value
3010 instead of struct type for the function requested.
3011 (print_return_value): Update accordingly.
3012 (finish_command_continuation): Likewise.
3013 * stack.c (return_command): Pass the requested function's
3014 address to using_struct_return and gdbarch_return_value.
3015 * value.c (using_struct_return): Take a pointer to struct value
3016 instead of struct type for the function requested. Pass the
3017 requested function's address to gdbarch_return_value.
3018 * python/py-finishbreakpoint.c (finish_breakpoint_object):
3019 New function_value member, replacing function_type.
3020 (bpfinishpy_dealloc): Update accordingly.
3021 (bpfinishpy_pre_stop_hook): Likewise.
3022 (bpfinishpy_init): Likewise. Record the requested function's
3024 * mips-tdep.c (mips_fval_reg): New enum.
3025 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
3026 words put in GP registers.
3027 (mips_o64_push_dummy_call): Update a comment.
3028 (mips_o32_return_value): Take a pointer to struct value instead
3029 of struct type for the function requested and use it to check if
3030 using the MIPS16 calling convention. Return the designated
3031 general purpose registers for floating-point values returned in
3033 (mips_o64_return_value): Likewise.
3034 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
3035 (ppc_sysv_abi_broken_return_value): Likewise.
3036 (ppc64_sysv_abi_return_value): Likewise.
3037 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
3038 value instead of struct type for the function requested.
3039 * amd64-tdep.c (amd64_return_value): Likewise.
3040 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
3041 * arm-tdep.c (arm_return_value): Likewise.
3042 * avr-tdep.c (avr_return_value): Likewise.
3043 * bfin-tdep.c (bfin_return_value): Likewise.
3044 * cris-tdep.c (cris_return_value): Likewise.
3045 * frv-tdep.c (frv_return_value): Likewise.
3046 * h8300-tdep.c (h8300_return_value): Likewise.
3047 (h8300h_return_value): Likewise.
3048 * hppa-tdep.c (hppa32_return_value): Likewise.
3049 (hppa64_return_value): Likewise.
3050 * i386-tdep.c (i386_return_value): Likewise.
3051 * ia64-tdep.c (ia64_return_value): Likewise.
3052 * iq2000-tdep.c (iq2000_return_value): Likewise.
3053 * lm32-tdep.c (lm32_return_value): Likewise.
3054 * m32c-tdep.c (m32c_return_value): Likewise.
3055 * m32r-tdep.c (m32r_return_value): Likewise.
3056 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
3057 * m68k-tdep.c (m68k_return_value): Likewise.
3058 (m68k_svr4_return_value): Likewise.
3059 * m88k-tdep.c (m88k_return_value): Likewise.
3060 * mep-tdep.c (mep_return_value): Likewise.
3061 * microblaze-tdep.c (microblaze_return_value): Likewise.
3062 * mn10300-tdep.c (mn10300_return_value): Likewise.
3063 * moxie-tdep.c (moxie_return_value): Likewise.
3064 * mt-tdep.c (mt_return_value): Likewise.
3065 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
3066 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
3067 (ppc_sysv_abi_broken_return_value): Likewise.
3068 (ppc64_sysv_abi_return_value): Likewise.
3069 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
3070 * rl78-tdep.c (rl78_return_value): Likewise.
3071 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
3072 * rx-tdep.c (rx_return_value): Likewise.
3073 * s390-tdep.c (s390_return_value): Likewise.
3074 * score-tdep.c (score_return_value): Likewise.
3075 * sh-tdep.c (sh_return_value_nofpu): Likewise.
3076 (sh_return_value_fpu): Likewise.
3077 * sh64-tdep.c (sh64_return_value): Likewise.
3078 * sparc-tdep.c (sparc32_return_value): Likewise.
3079 * sparc64-tdep.c (sparc64_return_value): Likewise.
3080 * spu-tdep.c (spu_return_value): Likewise.
3081 * tic6x-tdep.c (tic6x_return_value): Likewise.
3082 * v850-tdep.c (v850_return_value): Likewise.
3083 * vax-tdep.c (vax_return_value): Likewise.
3084 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3085 * xtensa-tdep.c (xtensa_return_value): Likewise.
3086 * gdbarch.c: Regenerate.
3087 * gdbarch.h: Regenerate.
3089 2012-05-15 Tom Tromey <tromey@redhat.com>
3091 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3093 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3095 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3096 of command in two error message.
3098 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3100 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3102 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3104 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3106 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3108 * NEWS (show auto-load scripts-directory): Add forgotten command.
3110 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3112 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3115 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3117 * amd64-tdep.c: Include features/i386/x32.c and
3118 features/i386/x32-avx.c.
3119 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3120 initialize_tdesc_x32_avx.
3122 2012-05-14 Stan Shebs <stan@codesourcery.com>
3125 * breakpoint.h (enum bptype): New type bp_dprintf.
3126 (struct breakpoint): New field extra_string.
3127 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3128 (create_breakpoint): Add extra_string arg.
3129 * breakpoint.c (dprintf_breakpoint_ops): New.
3130 (is_breakpoint): Add bp_dprintf.
3131 (bpstat_what): Add dprintf case.
3132 (bptype_string): Ditto.
3133 (print_one_breakpoint_location): Ditto.
3134 (init_bp_location): Ditto.
3135 (bkpt_print_mention): Ditto.
3136 (dprintf_style_enums): New array.
3137 (dprintf_style): New global.
3138 (dprintf_function): New global.
3139 (dprintf_channel): New global.
3140 (update_dprintf_command_list): New function.
3141 (update_dprintf_commands): New function.
3142 (init_breakpoint_sal): Add extra_string argument, handle it.
3143 (create_breakpoint_sal): Add extra_string argument.
3144 (create_breakpoints_sal): Add extra_string argument, update callers.
3145 (find_condition_and_thread): Add extra argument.
3146 (create_breakpoint): Add extra_string argument, record it.
3147 (dprintf_command): New function.
3148 (break_command_1): Add arg to create_breakpoint call.
3149 (handle_gnu_v3_exceptions): Ditto.
3150 (trace_command): Ditto.
3151 (ftrace_command): Ditto.
3152 (strace_command): Ditto.
3153 (bkpt_print_mention): Add dprintf case.
3154 (create_breakpoint_sal_default): Add extra_string argument.
3155 (_initialize_breakpoint): Add new commands.
3156 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3157 * python/py-breakpoint.c (bppy_init): Ditto.
3158 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3160 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3162 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3164 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3166 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3169 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3171 Add a new function gdb.find_pc_line to the Python API.
3172 * NEWS (Python Scripting): Add entry about the new function.
3173 * python/python.c (gdbpy_find_pc_line): New function which
3174 implements gdb.find_pc_line.
3175 (GdbMethods): Add entry for the new function.
3177 2012-05-12 Pedro Alves <palves@redhat.com>
3179 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3180 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3182 2012-05-12 Eli Zaretskii <eliz@gnu.org>
3184 * inferior.c: Include completer.h
3185 (initialize_inferiors): Set completer of add-inferior to
3188 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3190 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3191 gdbarch_ptr_bit for x32 core dump.
3193 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3195 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3196 and features/i386/x32-avx-linux.c.
3198 2012-05-11 Stan Shebs <stan@codesourcery.com>
3199 Kwok Cheung Yeung <kcy@codesourcery.com>
3201 * NEWS: Describe new info os commands.
3202 * common/linux-osdata.c (PID_T, TIME_T): Define.
3203 (MAX_PID_T_STRLEN): New.
3204 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3206 (command_from_pid): Add comment. Change to use PID_T.
3207 (commandline_from_pid): Change to use PID_T.
3208 (user_from_pid): Add comment.
3209 (get_process_owner): Add comment. Change to use PID_T and
3211 (get_number_of_cpu_cores): Add comment.
3212 (get_cores_used_by_process): Add comment. Change to use PID_T and
3214 (linux_xfer_osdata_processes): Change to use PID_T and
3216 (compare_processes): New function.
3217 (linux_xfer_osdata_processgroups): New function.
3218 (linux_xfer_osdata_threads): Change to use PID_T.
3219 (linux_xfer_osdata_fds): New function.
3220 (format_socket_state, print_sockets): New functions.
3221 (union socket_addr): New union.
3222 (linux_xfer_osdata_isockets): New function.
3223 (time_from_time_t, group_from_gid): New functions.
3224 (linux_xfer_osdata_shm): New function.
3225 (linux_xfer_osdata_sem): New function.
3226 (linux_xfer_osdata_msg): New function.
3227 (linux_xfer_osdata_modules): New function.
3228 (osdata_table): Add new entries.
3229 * common/buffer.c (buffer_xml_printf): Add support for long and
3230 long long format specifiers.
3232 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3234 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3235 (tdesc_x32_avx_linux): Likewise.
3237 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3239 Implement multi-component --with-auto-load-dir.
3240 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3242 (--with-auto-load-safe-path): Update the default value description.
3243 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3245 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3246 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3247 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3248 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3249 "set auto-load scripts-directory".
3250 * config.in: Regenerate.
3251 * configure: Regenerate.
3252 * configure.ac (--with-auto-load-dir): New configure option.
3253 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3255 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3257 Provide $ddir substitution for --with-auto-load-safe-path.
3258 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3260 * auto-load.c: Include observer.h.
3261 (auto_load_safe_path_vec_update): Call substitute_path_component for
3262 each component. New variable ddir_subst.
3263 (auto_load_gdb_datadir_changed): New function.
3264 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3265 AUTO_LOAD_SAFE_PATH. New comment.
3266 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3267 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3268 * config.in: Regenerate.
3269 * configure: Regenerate.
3270 * configure.ac (--auto-load-safe-path): Rename
3271 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3272 GDB_DATADIR/auto-load.
3273 * defs.h (substitute_path_component): New declaration.
3274 * top.c: Include observer.h.
3275 (set_gdb_datadir): New function.
3276 (init_main): Install it for "set data-directory".
3277 * utils.c (substitute_path_component): New function.
3279 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3281 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3282 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3283 DEBUG_FILE_DIRECTORY. Handle multiple components of
3284 DEBUG_FILE_DIRECTORY.
3286 2012-05-10 Tom Tromey <tromey@redhat.com>
3288 * dwarf2read.c (recursively_write_psymbols): New function.
3289 (write_psymtabs_to_index): Use it.
3291 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3293 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3294 (load_partial_comp_unit): Update.
3295 (queue_comp_unit): Add argument 'pretend_language'.
3296 (process_queue): Update.
3297 (psymtab_to_symtab_1): Skip dependencies that have a user.
3298 (load_partial_comp_unit_reader): Give meaning to the 'data'
3300 (load_full_comp_unit): Add 'pretend_language' argument.
3301 (process_full_comp_unit): Add 'pretend_language' argument. Set
3303 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3305 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3306 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3308 (prepare_one_comp_unit): Add 'pretend_language' argument.
3310 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3311 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3312 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3313 (dw2_do_instantiate_symtab): Check whether symtab was read in
3315 (dw2_instantiate_symtab): Add assertion. Call
3316 process_cu_includes.
3317 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3318 (partial_symtab_p): New typedef.
3319 (set_partial_user): New function.
3320 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3321 (scan_partial_symbols): Add imported CU to imported_symtabs.
3322 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3323 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3324 (get_symtab, recursively_compute_inclusions)
3325 (compute_symtab_includes, process_cu_includes)
3326 (process_imported_unit_die): New functions.
3327 (process_die) <DW_TAG_imported_unit>: New case.
3328 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3330 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3332 (struct partial_die_info) <locdesc>: Remove.
3334 (process_psymtab_comp_unit): Add 'read_partial' argument.
3336 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3337 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3338 (add_partial_symbol): Update.
3339 (process_die): Handle DW_TAG_partial_unit.
3340 (read_file_scope): Update comment.
3341 (load_partial_dies): Handle DW_TAG_imported_unit.
3342 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3343 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3345 2012-05-10 Tom Tromey <tromey@redhat.com>
3347 * cc-with-dwz.sh: New file.
3349 2012-05-10 Tom Tromey <tromey@redhat.com>
3351 * symtab.h (struct symtab) <includes, user>: New fields.
3352 * block.h (struct block_iterator) <d, idx, which>: New fields.
3353 * block.c (initialize_block_iterator, find_iterator_symtab)
3354 (block_iterator_step, block_iter_name_step)
3355 (block_iter_match_step): New functions.
3356 (block_iterator_first, block_iterator_next)
3357 (block_iter_name_first, block_iter_name_next)
3358 (block_iter_match_first, block_iter_match_next): Rewrite.
3359 (get_block_symtab): New function.
3361 2012-05-10 Tom Tromey <tromey@redhat.com>
3363 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3365 * jit.c (finalize_symtab): Use allocate_global_block,
3367 * buildsym.c (finish_block_internal): New function, from old
3369 (finish_block): Rewrite.
3370 (end_symtab): Use finish_block_internal, set_block_symtab.
3371 * block.h (struct global_block): New.
3372 (allocate_global_block, set_block_symtab): Declare.
3373 * block.c (allocate_global_block, set_block_symtab): New
3376 2012-05-10 Tom Tromey <tromey@redhat.com>
3378 * psymtab.c (partial_map_expand_apply): Add assertion.
3379 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3380 (psymtab_to_symtab): Find unshared psymtab.
3381 (dump_psymtab): Print including psymtabs.
3382 (recursively_search_psymtabs): New function.
3383 (expand_symtabs_matching_via_partial): Use it.
3384 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3386 (enum psymtab_search_status): New.
3388 2012-05-10 Tom Tromey <tromey@redhat.com>
3390 * tracepoint.c (scope_info): Update.
3391 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3392 (find_pc_sect_symtab, search_symbols)
3393 (default_make_symbol_completion_list_break_on)
3394 (make_file_symbol_completion_list): Update.
3395 * symmisc.c (dump_symtab_1): Update.
3396 * stack.c (print_frame_args, iterate_over_block_locals)
3397 (print_frame_labels, iterate_over_block_arg_vars): Update.
3398 * python/py-block.c (block_object) <dict>: Remove.
3400 <iter>: Change type.
3401 (blpy_iter): Update.
3402 (blpy_block_syms_iternext): Update.
3403 * psymtab.c (map_block): Use block iterators.
3404 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3405 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3406 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3407 * infrun.c (check_exception_resume): Update.
3408 * cp-support.c (make_symbol_overload_list_block): Update.
3409 * coffread.c (patch_opaque_types): Update.
3410 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3411 * block.h (struct block_iterator): New.
3412 (block_iterator_first, block_iterator_next, block_iter_name_first)
3413 (block_iter_name_next, block_iter_match_first)
3414 (block_iter_match_next): Declare.
3415 (ALL_BLOCK_SYMBOLS): Redefine.
3416 * block.c (block_iterator_first, block_iterator_next)
3417 (block_iter_name_first, block_iter_name_next)
3418 (block_iter_match_first, block_iter_match_next): New functions.
3419 * ada-lang.c (ada_add_block_symbols)
3420 (ada_make_symbol_completion_list): Use block iterator.
3422 2012-05-10 Tom Tromey <tromey@redhat.com>
3424 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3425 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3426 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3427 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3428 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3431 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3433 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3434 print-file-var-lib2.c, print-file-var-main.c and
3435 print-file-var.exp (located in gdb/testsuite/gdb.base).
3437 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3439 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3440 try locating the symbol in the symbol's own objfile first, before
3441 extending the search to all objfiles.
3442 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3443 out of lookup_symbol_aux_symtabs.
3444 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3445 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3446 Do not search EXCLUDE_OBJFILE.
3447 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3448 (lookup_symbol_global): Search for matches in the block's objfile
3449 first, before searching all other objfiles.
3451 2012-05-10 Tristan Gingold <gingold@adacore.com>
3453 * printcmd.c (set_command): Add pre/post inc/dec.
3455 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3457 * gdb.1: Document -ex option.
3459 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3461 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3462 * inferior.h (AT_SYMBOL): Delete.
3464 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3466 * mips-tdep.c (mips_push_dummy_code): New function.
3467 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3468 ON_STACK and install mips_push_dummy_code as our gdbarch
3469 push_dummy_code routine.
3471 2012-05-09 Pedro Alves <palves@redhat.com>
3473 * target.c (set_maintenance_target_async_permitted): Rename to ...
3474 (set_target_async_command): ... this.
3475 (show_maintenance_target_async_permitted): Rename to ...
3476 (show_target_async_command): ... this.
3477 (initialize_targets): Adjust.
3479 2012-05-08 Doug Evans <dje@google.com>
3481 * go-exp.y (classify_name): Add missing assignment of fields of
3484 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3486 Display the ">" prompt in interactive mode while reading canned
3487 commands, even when the current interpreter is MI.
3489 * interps.c (interp_set_temp): New function.
3491 * interps.h (interp_set_temp): Add prototype.
3493 * cli/cli-script.c (restore_interp): New cleanup function.
3494 (read_command_lines): Temporarily override the current interpreter
3495 with CLI and arrange for restoring the original one.
3497 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3499 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3501 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3503 * probe.c (parse_probes): Move conditional to check for
3504 debuginfo files from here...
3505 * stap-probe.c (stap_get_probes): ... to here.
3507 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3508 H.J. Lu <hongjiu.lu@intel.com>
3510 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3511 `movl %esp, %ebp' for the X32 ABI.
3513 2012-05-07 Tom Tromey <tromey@redhat.com>
3515 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3517 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3518 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3519 (dwarf_stack_op_name): Remove.
3520 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3521 (decode_locdesc): Use get_DW_OP_name.
3522 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3523 (dwarf2_compile_expr_to_ax): Likewise.
3524 (disassemble_dwarf_expression): Likewise.
3525 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3527 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3529 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3530 (sh_linux_sigtramp_cache): New function.
3531 (sh_linux_sigreturn_init): New function.
3532 (sh_linux_rt_sigreturn_init): New function.
3533 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3535 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3537 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3538 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3539 (sh_linux_init_abi): Add init calls to register new tramp_frame
3540 definitions under 32-bit SH, update comments.
3542 2012-05-07 Pedro Alves <palves@redhat.com>
3546 * amd64-linux-tdep.c: Include glibc-tdep.h.
3547 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3548 gdbarch_skip_solib_resolver callback.
3550 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3552 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3553 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3554 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3555 (add_auto_load_safe_path): Change the error message.
3556 (_initialize_auto_load): Change the "safe-path" help text.
3557 * configure: Regenerate
3558 * configure.ac (--without-auto-load-safe-path): Set
3559 WITH_AUTO_LOAD_SAFE_PATH to /.
3561 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3563 * stap-probe.h: Do not include unecessary `probe.h'.
3565 2012-05-05 Alan Modra <amodra@gmail.com>
3567 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3568 bfd_und_section_ptr.
3569 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3570 and bfd_com_section_ptr.
3572 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3574 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3576 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3578 * windows-nat.h (segment_register_p_ftype): New typedef.
3579 (windows_set_segment_register_p): Add declaration.
3580 * windows-nat.c (segment_register_p): New static global.
3581 (windows_set_segment_register_p): New function.
3582 (do_windows_fetch_inferior_registers): Add special handling
3583 for segment registers.
3584 * amd64-windows-nat.c: #include "amd64-tdep.h".
3585 (amd64_windows_segment_register_p): New function.
3586 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3587 * i386-windows-nat.c: #include "i386-tdep.h".
3588 (i386_windows_segment_register_p): New function.
3589 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3591 2012-05-04 Tristan Gingold <gingold@adacore.com>
3593 * printcmd.c (set_command): Emit a warning if the expression is not
3596 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3598 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3601 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3603 * stap-probe.c (stap_is_operator): Change declaration.
3604 (stap_get_opcode): Change return value.
3605 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3606 `stap_parse_argument_1'.
3608 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3610 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3613 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3615 Add two new methods global_block and static_block to gdb.Symtab
3617 * NEWS (Python scripting): Add entry about the new methods.
3618 * python/py-symtab.c (stpy_global_block): New function which
3619 implements the gdb.Symtab.global_block() method.
3620 (stpy_static_block): New function which implements the
3621 gdb.Symtab.static_block() method.
3622 (symtab_object_methods): Add entries for the two new methods.
3624 2012-05-03 Doug Evans <dje@google.com>
3626 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3629 2012-05-03 Yao Qi <yao@codesourcery.com>
3631 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3633 (i386_process_record): Ditto.
3635 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3637 * infcall.c (unwind_on_signal_p): Make static.
3639 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3641 * sol-thread.c (solaris_pid_to_str): Make static.
3642 (_initialize_sol_thread): Add prototype.
3644 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3646 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3648 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3650 * MAINTAINERS: Remove myself.
3652 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3654 Fix --without-auto-load-safe-path for MS-Windows host platform.
3655 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3657 2012-05-02 Eli Zaretskii <eliz@gnu.org>
3659 * gdb_curses.h: Undefine KEY_EVENT before including curses
3660 headers. Move "#undef MOUSE_MOVED" before any curses header
3663 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3665 * features/i386/i386-mmx-linux.c: Regenerate.
3666 * features/rs6000/powerpc-32.c: Likewise.
3667 * features/rs6000/powerpc-32l.c: Likewise.
3668 * features/rs6000/powerpc-403.c: Likewise.
3669 * features/rs6000/powerpc-403gc.c: Likewise.
3670 * features/rs6000/powerpc-405.c: Likewise.
3671 * features/rs6000/powerpc-505.c: Likewise.
3672 * features/rs6000/powerpc-601.c: Likewise.
3673 * features/rs6000/powerpc-602.c: Likewise.
3674 * features/rs6000/powerpc-603.c: Likewise.
3675 * features/rs6000/powerpc-604.c: Likewise.
3676 * features/rs6000/powerpc-64.c: Likewise.
3677 * features/rs6000/powerpc-64l.c: Likewise.
3678 * features/rs6000/powerpc-750.c: Likewise.
3679 * features/rs6000/powerpc-860.c: Likewise.
3680 * features/rs6000/powerpc-e500.c: Likewise.
3681 * features/rs6000/powerpc-e500l.c: Likewise.
3682 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3683 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3684 * features/rs6000/rs6000.c: Likewise.
3686 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3688 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3690 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3691 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3692 (stap_parse_argument) <e>: Likewise.
3693 (handle_stap_probe) <byte_order>: Likewise.
3695 2012-04-30 Doug Evans <dje@google.com>
3697 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3698 init_and_read_dies_worker. All callers updated.
3699 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3700 replaced with init_cutu_and_read_dies.
3701 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3702 (find_partial_die): Remove FIXME. Don't free current CU.
3704 2012-04-30 Sterling Augustine <saugustine@google.com>
3706 * contrib: New directory.
3707 * contrib/test_pubnames_and_indexes.py: New file.
3709 2012-04-30 Doug Evans <dje@google.com>
3711 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3712 All callers updated.
3713 (init_cu_die_reader): Verify the section is non-empty.
3714 (dwarf_decode_line_header): Don't dereference section->asection
3715 until we know the section is present.
3717 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3719 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3722 2012-04-29 Yao Qi <yao@codesourcery.com>
3724 * gdb-code-style.el: New hook gdb-markup-hook
3725 and gdb-comment-hook.
3727 2012-04-28 Doug Evans <dje@google.com>
3729 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3730 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3732 * symfile.h (dwarf2_debug_sections): New member addr.
3733 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3734 (ctx_no_get_addr_index): New function.
3735 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3736 (ctx_no_get_addr_index): Declare.
3737 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3738 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3739 (dwarf_expr_ctx_funcs): Update.
3740 (needs_get_addr_index): New function.
3741 (needs_frame_ctx_funcs): Update.
3742 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3743 * dwarf2read.c: #include "gdbcore.h".
3744 (dwarf2_per_objfile): New members addr, dwo_files.
3745 (dwarf2_elf_names): Add entry for addr.
3746 (struct dwo_section_names): New type.
3747 (dwo_section_names): New static global.
3748 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3749 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3750 old debug_types_section member updated to use this.
3751 Rename member debug_types_section to info_or_types_section,
3753 (signatured_type): Rename member type_offset to type_offset_in_tu,
3754 all uses updated. New member type_offset_in_section.
3755 (struct dwo_sections): New type.
3756 (struct dwo_unit): New type.
3757 (struct dwo_file): New type.
3758 (die_reader_specs): New member dwo_file.
3759 (dwarf2_locate_sections): Watch for .debug_addr.
3760 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3761 (dwarf2_read_section): Get bfd of section from bfd's asection,
3763 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3764 (create_signatured_type_table_from_index): Initialize
3765 sig_type->info_or_types_section.
3766 (dw2_get_file_names): Statement lists for type units with DWO files
3767 live in the DWO file.
3768 (create_debug_types_hash_table): New function.
3769 (create_all_type_units): Rewrite.
3770 (init_cu_die_reader): New arg dwo_file, all callers updated.
3771 (init_and_read_dies_worker): Get section from
3772 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3773 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3774 continue reading the CU/TU from there.
3775 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3776 updated. Get section from this_cu->info_or_types_section.
3777 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3778 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3779 DW_FORM_GNU_str_index.
3780 (hash_dwo_file, eq_dwo_file): New functions.
3781 (allocate_dwo_file_hash_table): New function.
3782 (hash_dwo_unit, eq_dwo_unit): New functions.
3783 (allocate_dwo_unit_table): New function.
3784 (dwarf2_locate_dwo_sections): New function.
3785 (struct create_dwo_info_table_data): New type.
3786 (create_debug_info_hash_table_reader): New function.
3787 (create_debug_info_hash_table): New function.
3788 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3789 (lookup_dwo_file): New function.
3790 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3791 (free_dwo_file, free_dwo_file_cleanup): New functions.
3792 (free_dwo_file_from_slot, free_dwo_files): New functions.
3793 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3794 (dwarf2_record_block_ranges): Ditto.
3795 (read_partial_die): Ditto.
3796 (process_enumeration_scope): Update to use type_offset_in_section.
3797 (read_full_die_1): New function.
3798 (read_full_die): Rewrite.
3799 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3800 DW_FORM_GNU_str_index.
3801 (read_addr_index_1, read_addr_index): New functions.
3802 (read_addr_index_from_leb128): New function.
3803 (struct dwarf2_read_addr_index_data): New type.
3804 (dwarf2_read_addr_index_reader): New function.
3805 (dwarf2_read_addr_index): New function.
3806 (read_str_index): New function.
3807 (leb128_size): New function.
3808 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3809 If processing a type unit from a DWO file, get the line section
3811 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3812 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3813 DW_FORM_GNU_str_index.
3814 (lookup_die_type): Check whether section offset of type's die is
3815 known before looking it up. Remove assert. Condition can
3816 legimately happen for inter-cu type references.
3817 (dwarf_attr_name): Handle Fission attributes.
3818 (dwarf_form_name): Handle Fission forms.
3819 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3820 DW_FORM_GNU_str_index.
3821 (follow_die_sig): Update to use type_offset_in_section.
3822 (decode_locdesc): New case DW_OP_GNU_addr_index.
3823 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3824 DW_FORM_GNU_str_index.
3825 (cu_debug_loc_section): New function.
3826 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3827 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3828 Free DWO files if present.
3829 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3831 Refactor DIE reading.
3832 * dwarf2read.c (dwarf2_per_objfile): Replace members
3833 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3834 (die_reader_specs): New member "die_section". Temporarily make
3835 member "buffer" non-const, pending constifying all info_ptr uses.
3836 (die_reader_func_ftype): New typedef.
3837 (dw2_get_file_names_reader): New function.
3838 (dw2_get_file_names): Rewrite.
3839 (read_and_check_type_unit_head): Rename arg type_offset to
3841 (create_all_type_units): Improve debugging message.
3842 Improve dummy type unit check.
3843 (init_cu_die_reader): New arg "section". All callers updated.
3844 (init_and_read_dies_worker): New function.
3845 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3846 (init_cutu_and_read_dies_no_follow): New function.
3847 (init_cutu_and_read_dies_simple): New function.
3848 (process_psymtab_comp_unit_reader): New function.
3849 (process_psymtab_comp_unit): Delete args section,
3850 is_debug_types_section. Rewrite. All callers updated.
3851 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3852 All callers updated. Rewrite.
3853 (load_partial_comp_unit_reader): New function.
3854 (load_partial_comp_unit): Rewrite.
3855 (skip_children): New arg reader. Delete args buffer, cu.
3856 All callers updated.
3857 (skip_one_die): New arg reader. Delete args buffer, cu.
3858 All callers updated.
3859 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3860 All callers updated.
3861 (load_full_comp_unit_reader): New function.
3862 (load_full_comp_unit): Rewrite.
3863 (read_comp_unit): Delete.
3864 (read_die_and_children_1): Delete, contents moved ...
3865 (read_die_and_children): ... here.
3866 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3867 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3868 All callers updated.
3869 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3870 All callers updated.
3871 (find_partial_die): Rewrite load_all_dies support.
3872 (read_attribute_value): New arg reader. Delete args abfd, cu.
3873 All callers updated.
3874 (read_attribute): New arg reader. Delete args abfd, cu.
3875 All callers updated.
3876 (load_full_type_unit): Add assert.
3877 (read_signatured_type_reader): New function.
3878 (read_signatured_type): Rewrite.
3879 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3880 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3881 All callers updated. Set per_cu->cu = NULL after freeing it.
3882 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3883 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3884 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3885 (set_die_type): Update.
3886 (get_die_type_at_offset): Update.
3887 (read_file_scope): Call prepare_one_comp_unit.
3888 (read_type_unit_scope): Ditto.
3889 (prepare_one_comp_unit): Set producer if present.
3891 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
3893 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3894 gettext function on `error'.
3896 2012-04-27 Doug Evans <dje@google.com>
3898 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3901 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3902 Tom Tromey <tromey@redhat.com>
3904 * breakpoint.c (struct breakpoint_objfile_data)
3905 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3906 <exception_probes>: New fields.
3907 (free_breakpoint_probes): New function.
3908 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3909 `_Unwind_DebugHook'.
3910 (create_exception_master_breakpoint): Likewise.
3911 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3912 * infrun.c: Including necessary header files for handling SystemTap
3914 (handle_inferior_event): Handling longjmp breakpoint and exceptions
3915 via SystemTap probes.
3916 (check_exception_resume): Remove `func' argument. Handle exception
3917 unwinding breakpoint set via a SystemTap probe.
3918 (insert_exception_resume_from_probe): New function.
3920 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3921 Tom Tromey <tromey@redhat.com>
3922 Jan Kratochvil <jan.kratochvil@redhat.com>
3924 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
3925 (COMMON_OBS): Likewise.
3926 (HFILES_NO_SRCDIR): Add `probe'.
3927 * NEWS: Mention support for static and SystemTap probes.
3928 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
3929 SystemTap probes' arguments parser.
3930 * arm-linux-tdep.c: Including headers needed to perform the parsing
3931 of SystemTap probes' arguments.
3932 (arm_stap_is_single_operand): New function.
3933 (arm_stap_parse_special_token): Likewise.
3934 (arm_linux_init_abi): Initializing proper fields used by SystemTap
3935 probes' arguments parser.
3936 * ax-gdb.c (require_rvalue): Removing static declaration.
3937 (gen_expr): Likewise.
3938 * ax-gdb.h (gen_expr): Declaring function.
3939 (require_rvalue): Likewise.
3940 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
3941 (bkpt_probe_breakpoint_ops): New variable.
3942 (momentary_breakpoint_from_master): Set the `probe' value.
3943 (add_location_to_breakpoint): Likewise.
3944 (break_command_1): Using proper breakpoint_ops according to the
3945 argument passed by the user in the command line.
3946 (bkpt_probe_insert_location): New function.
3947 (bkpt_probe_remove_location): Likewise.
3948 (bkpt_probe_create_sals_from_address): Likewise.
3949 (bkpt_probe_decode_linespec): Likewise.
3950 (tracepoint_probe_create_sals_from_address): Likewise.
3951 (tracepoint_probe_decode_linespec): Likewise.
3952 (tracepoint_probe_breakpoint_ops): New variable.
3953 (trace_command): Using proper breakpoint_ops according to the
3954 argument passed by the user in the command line.
3955 (initialize_breakpoint_ops): Initializing breakpoint_ops for
3956 static probes on breakpoints and tracepoints.
3957 * breakpoint.h (struct bp_location) <probe>: New field.
3958 * cli-utils.c (skip_spaces_const): New function.
3959 (extract_arg): Likewise.
3960 * cli-utils.h (skip_spaces_const): Likewise.
3961 (extract_arg): Likewise.
3962 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
3963 * configure.ac: Append `stap-probe.o' to be generated when ELF
3965 * configure: Regenerate.
3966 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
3967 * elfread.c: Include `probe.h' and `arch-utils.h'.
3968 (probe_key): New variable.
3969 (elf_get_probes): New function.
3970 (elf_get_probe_argument_count): Likewise.
3971 (elf_evaluate_probe_argument): Likewise.
3972 (elf_compile_to_ax): Likewise.
3973 (elf_symfile_relocate_probe): Likewise.
3974 (stap_probe_key_free): Likewise.
3975 (elf_probe_fns): New variable.
3976 (elf_sym_fns): Add `sym_probe_fns' value.
3977 (elf_sym_fns_lazy_psyms): Likewise.
3978 (elf_sym_fns_gdb_index): Likewise.
3979 (_initialize_elfread): Initialize objfile cache for static
3981 * gdb_vecs.h (struct probe): New forward declaration.
3982 (probe_p): New VEC declaration.
3983 * gdbarch.c: Regenerate.
3984 * gdbarch.h: Regenerate.
3985 * gdbarch.sh (stap_integer_prefix): New variable.
3986 (stap_integer_suffix): Likewise.
3987 (stap_register_prefix): Likewise.
3988 (stap_register_suffix): Likewise.
3989 (stap_register_indirection_prefix): Likewise.
3990 (stap_register_indirection_suffix): Likewise.
3991 (stap_gdb_register_prefix): Likewise.
3992 (stap_gdb_register_suffix): Likewise.
3993 (stap_is_single_operand): New function.
3994 (stap_parse_special_token): Likewise.
3995 (struct stap_parse_info): Forward declaration.
3996 * i386-tdep.c: Including headers needed to perform the parsing
3997 of SystemTap probes' arguments.
3998 (i386_stap_is_single_operand): New function.
3999 (i386_stap_parse_special_token): Likewise.
4000 (i386_elf_init_abi): Initializing proper fields used by SystemTap
4001 probes' arguments parser.
4002 * i386-tdep.h (i386_stap_is_single_operand): New function.
4003 (i386_stap_parse_special_token): Likewise.
4004 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
4005 * mipsread.c (ecoff_sym_fns): Likewise.
4006 * objfiles.c (objfile_relocate1): Support relocation for static
4008 * parse.c (prefixify_expression): Remove static declaration.
4009 (initialize_expout): Likewise.
4010 (reallocate_expout): Likewise.
4011 * parser-defs.h (initialize_expout): Declare function.
4012 (reallocate_expout): Likewise.
4013 (prefixify_expression): Likewise.
4014 * ppc-linux-tdep.c: Including headers needed to perform the parsing
4015 of SystemTap probes' arguments.
4016 (ppc_stap_is_single_operand): New function.
4017 (ppc_stap_parse_special_token): Likewise.
4018 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
4019 probes' arguments parser.
4020 * probe.c: New file, for generic statically defined probe support.
4021 * probe.h: Likewise.
4022 * s390-tdep.c: Including headers needed to perform the parsing of
4023 SystemTap probes' arguments.
4024 (s390_stap_is_single_operand): New function.
4025 (s390_gdbarch_init): Initializing proper fields used by SystemTap
4026 probes' arguments parser.
4027 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
4028 * stap-probe.c: New file, for SystemTap probe support.
4029 * stap-probe.h: Likewise.
4030 * symfile.h: Include `gdb_vecs.h'.
4031 (struct sym_probe_fns): New struct.
4032 (struct sym_fns) <sym_probe_fns>: New field.
4033 * symtab.c (init_sal): Initialize `probe' field.
4034 * symtab.h (struct probe): Forward declaration.
4035 (struct symtab_and_line) <probe>: New field.
4036 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
4038 (stop_tracing): Likewise.
4039 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
4041 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4042 Tom Tromey <tromey@redhat.com>
4044 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
4045 and to compile agent expressions.
4046 * infrun.c (siginfo_make_value): New argument `ignore'.
4047 (siginfo_funcs): New struct.
4048 (_initialize_infrun): New argument when calling
4049 `create_internalvar_type_lazy'.
4050 * thread.c (thread_id_make_value): New argument `ignore'.
4051 (thread_funcs): New struct.
4052 (_initialize_thread): New argument when calling
4053 `create_internalvar_type_lazy'.
4054 * tracepoint.c (sdata_make_value): New argument `ignore'.
4055 (sdata_funcs): New struct.
4056 (_initialize_tracepoint): New argument when calling
4057 `create_internalvar_type_lazy'.
4058 * value.c (make_value): New struct.
4059 (create_internalvar_type_lazy): New argument `data'.
4060 (compile_internalvar_to_ax): New function.
4061 (value_of_internalvar): Properly handling `make_value' case.
4062 (clear_internalvar): Likewise.
4063 (show_convenience): Adding `TRY_CATCH' block.
4064 * value.h (internalvar_make_value): Delete, replace by...
4065 (struct internalvar_funcs): ... this.
4066 (create_internalvar_type_lazy) <fun>: Delete argument.
4067 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
4068 (compile_internalvar_to_ax): New function.
4069 * windows-tdep.c (tlb_make_value): New argument `ignore'.
4070 (tlb_funcs): New struct.
4071 (_initialize_windows_tdep): New argument when calling
4072 `create_internalvar_type_lazy'.
4074 2012-04-27 Mark Wielaard <mjw@redhat.com>
4076 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4077 see whether it is an address or a constant offset from DW_AT_low_pc.
4078 (dwarf2_record_block_ranges): Likewise.
4079 (read_partial_die): Likewise.
4081 2012-04-26 Mark Wielaard <mjw@redhat.com>
4083 * MAINTAINERS (Write After Approval): Add myself to the list.
4085 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4087 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4088 (proc_prettyprint_signal): Likewise.
4089 (proc_prettyprint_faultset): Likewise.
4090 (proc_prettyprint_fault): Likewise.
4091 (proc_prettyprint_actionset): Likewise.
4092 (proc_prettyprint_flags): Move to new proc-flags.c section.
4093 (proc_prettyfprint_flags): New prototype.
4094 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4095 (proc_syscall, proc_cursig): Likewise.
4096 (proc_set_kill_on_last_close): Likewise.
4097 (proc_unset_kill_on_last_close): Likewise.
4098 (proc_set_watchpoint): Make static.
4099 (proc_delete_dead_threads): Likewise.
4100 (procfs_set_watchpoint): Likewise.
4101 (_initialize_procfs): Add prototype.
4102 * proc-events.c: Include proc-utils.h.
4103 (init_syscall_table): Make static.
4104 * proc-api.c (_initialize_proc_api): Add prototype.
4105 * proc-flags.c: Include proc-utils.h.
4107 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4109 * configure.ac: Add AC_ARG_PROGRAM.
4110 * configure: Regenerate.
4112 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4114 Fix DW_AT_lower_bound defaults for DWARF-4+.
4115 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4116 high. New variable low_default_is_valid. Implement DWARF-4+
4117 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4118 no default by the DWARF standard.
4120 2012-04-26 Maciej W. Rozycki <macro@mips.com>
4121 Maciej W. Rozycki <macro@codesourcery.com>
4123 * infrun.c (handle_inferior_event): Move the check for return
4124 trampolines ahead of the check for function trampolines.
4125 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4126 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4127 (mips_str_mips16_ret_stub): Likewise.
4128 (mips_str_call_fp_stub): Likewise.
4129 (mips_str_call_stub): Likewise.
4130 (mips_str_fn_stub): Likewise.
4131 (mips_str_pic): Likewise.
4132 (mips_in_frame_stub): New function.
4133 (mips_unwind_pc): Return the return address rather than the PC
4134 if the PC of an intermediate frame is inside a call thunk.
4135 (mips_is_stub_suffix): New function.
4136 (mips_is_stub_mode): Likewise.
4137 (mips_get_mips16_fn_stub_pc): Likewise.
4138 (mips_skip_mips16_trampoline_code): Update to handle all the
4139 currently generated stub types. Don't recurse into __fn_stub
4140 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4141 Use cooked register accesses.
4142 (mips_in_return_stub): Reintroduce function.
4143 (mips_skip_trampoline_code): Traverse trampolines recursively.
4144 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4146 2012-04-26 Joel Brobecker <brobecker@adacore.com>
4150 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4152 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4153 * features/arm-with-m-vfp-d16.xml: New file. Describes
4154 Cortex-M with VFPv4-sp-d16 FPU register layout.
4155 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4156 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4157 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4158 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4159 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4161 2012-04-25 Doug Evans <dje@google.com>
4163 * cli/cli-decode.c (print_doc_line): Use stream instead of
4166 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4168 * features/arm-with-iwmmxt.c: Regenerate.
4169 * features/arm-with-m-fpa-layout.c: Likewise.
4170 * features/arm-with-m.c: Likewise.
4171 * features/arm-with-neon.c: Likewise.
4172 * features/arm-with-vfpv2.c: Likewise.
4173 * features/arm-with-vfpv3.c: Likewise.
4174 * features/mips-dsp-linux.c: Likewise.
4175 * features/mips-linux.c: Likewise.
4176 * features/mips64-dsp-linux.c: Likewise.
4177 * features/mips64-linux.c: Likewise.
4178 * features/s390-linux32.c: Likewise.
4179 * features/s390-linux32v1.c: Likewise.
4180 * features/s390-linux32v2.c: Likewise.
4181 * features/s390-linux64.c: Likewise.
4182 * features/s390-linux64v1.c: Likewise.
4183 * features/s390-linux64v2.c: Likewise.
4184 * features/s390x-linux64.c: Likewise.
4185 * features/s390x-linux64v1.c: Likewise.
4186 * features/s390x-linux64v2.c: Likewise.
4187 * features/tic6x-c62x-linux.c: Likewise.
4188 * features/tic6x-c62x.c: Likewise.
4189 * features/tic6x-c64x-linux.c: Likewise.
4190 * features/tic6x-c64x.c: Likewise.
4191 * features/tic6x-c64xp-linux.c: Likewise.
4192 * features/tic6x-c64xp.c: Likewise.
4193 * target-descriptions.c: Only generate `field_type' and `type'
4194 variables when needed.
4196 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4198 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4200 2012-04-25 Doug Evans <dje@google.com>
4202 Initial pass at Go language support.
4204 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4206 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4207 (YYFILES): Add go-exp.c.
4208 (YYOBJ): Add go-exp.o.
4209 (local-maintainer-clean): Delete go-exp.c.
4210 * defs.h (enum language): Add language_go.
4211 * dwarf2read.c: #include "go-lang.h".
4212 (fixup_go_packaging): New function.
4213 (process_full_comp_unit): Call it when processing Go CUs.
4214 (dwarf2_physname): Add Go support.
4215 (read_file_scope): Handle missing language spec for GNU Go.
4216 (set_cu_language): Handle DW_LANG_Go.
4217 * go-exp.y: New file.
4218 * go-lang.h: New file.
4219 * go-lang.c: New file.
4220 * go-typeprint.c: New file.
4221 * go-valprint.c: New file.
4222 * symtab.c: #include "go-lang.h".
4223 (symbol_set_language): Handle language_go.
4224 (symbol_find_demangled_name, symbol_set_names): Ditto.
4225 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4227 2012-04-24 Jim Meyering <meyering@redhat.com>
4229 avoid a few strncpy-induced buffer overruns
4230 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4231 fname and psargs before trying to concatenate.
4232 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4233 "name" before applying strchr.
4235 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4237 * CONTRIBUTE: Use unified diff instead of context diff when
4240 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4242 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4243 code. Handle JR.HB correctly.
4245 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4248 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4249 with the other MIPS16 helpers.
4251 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4253 * observer.sh: Conditionally declare `args', thus cleaning up
4254 unused instances of this variable.
4256 2012-04-24 Yao Qi <yao@codesourcery.com>
4258 Revert this patch to allow breakpoint always-inserted
4260 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4261 * breakpoint.c: Include record.h.
4262 (breakpoints_always_inserted_mode): Return false when the record
4265 * breakpoint.c (iterate_over_bp_locations): New.
4266 * breakpoint.h: Declare.
4267 New typedef walk_bp_location_callback.
4268 * record.c (record_open): Call record_init_record_breakpoints.
4269 (record_sync_record_breakpoints): New.
4270 (record_init_record_breakpoints): New.
4271 * NEWS: Mention supporting breakpoint always-inserted mode in
4274 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4276 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4279 2012-04-24 Yao Qi <yao@codesourcery.com>
4281 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4282 (is_catchpoint): ... it.
4283 (print_one_breakpoint_location): Caller update.
4284 * breakpoint.h: Update declaration.
4286 2012-04-23 David S. Miller <davem@davemloft.net>
4288 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4290 2012-04-23 Tom Tromey <tromey@redhat.com>
4292 * buildsym.c (add_free_pendings): Remove.
4293 * buildsym.h (add_free_pendings): Remove.
4295 2012-04-23 Doug Evans <dje@google.com>
4297 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4298 attr.u.unsnd instead of attr.u.addr.
4299 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4300 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4302 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4303 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4305 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4307 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4309 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4310 (mips_o32_return_value): Likewise.
4311 (mips_o64_return_value): Likewise.
4313 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4315 * ada-lang.c (ada_evaluate_subexp): Add cases for
4316 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4317 their treatment in eval.c.
4319 2012-04-21 David S. Miller <davem@davemloft.net>
4321 * sparc-tdep.c (X_DISP10): Define.
4322 (sparc_analyze_control_transfer): Handle compare-and-branch.
4324 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4326 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4327 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4329 2012-04-20 Nigel Stephens <nigel@mips.com>
4330 Maciej W. Rozycki <macro@codesourcery.com>
4332 * mips-tdep.c (mips_float_register_p): New function.
4333 (mips_convert_register_float_case_p): Use mips_float_register_p.
4334 (mips_register_type): Likewise.
4335 (mips_print_register): Likewise.
4336 (print_gp_register_row): Likewise.
4337 (mips_print_registers_info): Likewise.
4339 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4341 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4344 2012-04-20 Andrew Pinski <apinski@cavium.com>
4346 * MAINTAINERS (Write After Approval): Add myself to the list.
4348 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4350 * MAINTAINERS: Update my e-mail address.
4352 2012-04-20 Pedro Alves <palves@redhat.com>
4354 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4356 * configure: Regenerate.
4358 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4360 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4362 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4364 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4366 Fix compilation compatibility with python-2.4
4367 * python/py-type.c (convert_field): Cast ADDRSTRING for
4368 PyObject_SetAttrString as non-const. New comment.
4370 2012-04-19 Tom Tromey <tromey@redhat.com>
4372 * top.c (quit_target): Use all_cleanups.
4373 * main.c (captured_command_loop): Use all_cleanups.
4374 * exceptions.c (throw_exception): Use all_cleanups.
4376 2012-04-19 Pedro Alves <palves@redhat.com>
4378 * Makefile.in (GNULIB_BUILDDIR): New.
4379 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4380 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4381 (CLEANDIRS). Remove gnulib/import.
4382 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4384 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4385 (gnulib/import/Makefile): Replace gnulib/import with
4386 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4387 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4388 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4389 acx_configure_dir.m4.
4390 * acinclude.m4: Include acx_configure_dir.m4.
4391 * acx_configure_dir.m4: New file.
4392 * aclocal.m4: Regenerate.
4393 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4394 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4395 (GNULIB): New variable.
4396 (GNULIB_STDINT_H): Adjust.
4397 (AC_OUTPUT): Don't output gnulib/Makefile.
4398 * gdb/defs.h: Include build-gnulib/config.h.
4399 * aclocal.m4: Regenerate.
4400 * config.in: Regenerate.
4401 * configure: Regenerate.
4403 * gnulib/Makefile.in: New file.
4404 * gnulib/configure.ac: New file.
4405 * gnulib/aclocal.m4: New file.
4406 * gnulib/config.in: New file.
4407 * gnulib/configure: New file.
4408 * gnulib/: Re-run gnulib-tool to adjust.
4410 2012-04-19 Doug Evans <dje@google.com>
4412 * cleanups.h (struct cleanup): Move to cleanups.c.
4413 (make_cleanup_dtor_ftype): New typedef.
4414 (make_cleanup_dtor): Use it.
4415 (ALL_CLEANUPS): Replace with ...
4416 (all_cleanups): ... this. Declare. All uses updated.
4417 * cleanups.c: #include "gdb_assert.h".
4418 (sentinel_cleanup): New static global.
4419 (SENTINEL_CLEANUP): Define.
4420 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4421 (make_my_cleanup2): Assert result is non-NULL.
4422 (all_cleanups): New function.
4423 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4426 2012-04-19 Pedro Alves <palves@redhat.com>
4428 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4429 Adjust paths to gnulib imported files.
4431 2012-04-19 Pedro Alves <palves@redhat.com>
4433 * gnulib/: Move whole directory ...
4434 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4435 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4436 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4437 (aclocal_m4_deps): Adjust.
4438 * aclocal.m4: Regenerate.
4439 * configure: Regenerate.
4440 * configure.ac: Adjust AC_OUTPUT output.
4442 2012-04-19 Yao Qi <yao@codesourcery.com>
4444 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4446 * vec.c: Move it ...
4447 * common/vec.c: ... here.
4448 * vec.h: Move it ...
4449 * common/vec.h: ... here.
4451 2012-04-19 Yao Qi <yao@codesourcery.com>
4453 * gdb-code-style.el: New.
4455 2012-04-18 Pedro Alves <palves@redhat.com>
4457 Update gnulib from latest git.
4458 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4460 * gnulib/Makefile.am: Update.
4461 * gnulib/dummy.c: Update.
4462 * gnulib/extra/arg-nonnull.h: Update.
4463 * gnulib/extra/c++defs.h: Update.
4464 * gnulib/extra/update-copyright: Update.
4465 * gnulib/extra/warn-on-use.h: Update.
4466 * gnulib/inttypes.in.h: Update.
4467 * gnulib/m4/00gnulib.m4: Update.
4468 * gnulib/m4/extensions.m4: Update.
4469 * gnulib/m4/gnulib-cache.m4: Update.
4470 * gnulib/m4/gnulib-common.m4: Update.
4471 * gnulib/m4/gnulib-comp.m4: Update.
4472 * gnulib/m4/gnulib-tool.m4: Update.
4473 * gnulib/m4/include_next.m4: Update.
4474 * gnulib/m4/inttypes-pri.m4: Update.
4475 * gnulib/m4/inttypes.m4: Update.
4476 * gnulib/m4/longlong.m4: Update.
4477 * gnulib/m4/memchr.m4: Update.
4478 * gnulib/m4/memmem.m4: Update.
4479 * gnulib/m4/mmap-anon.m4: Update.
4480 * gnulib/m4/multiarch.m4: Update.
4481 * gnulib/m4/onceonly.m4: Update.
4482 * gnulib/m4/stddef_h.m4: Update.
4483 * gnulib/m4/stdint.m4: Update.
4484 * gnulib/m4/string_h.m4: Update.
4485 * gnulib/m4/warn-on-use.m4: Update.
4486 * gnulib/m4/wchar_h.m4: Update.
4487 * gnulib/m4/wchar_t.m4: Update.
4488 * gnulib/m4/wint_t.m4: Update.
4489 * gnulib/memchr.c: Update.
4490 * gnulib/memmem.c: Update.
4491 * gnulib/stddef.in.h: Update.
4492 * gnulib/stdint.in.h: Update.
4493 * gnulib/str-two-way.h: Update.
4494 * gnulib/string.in.h: Update.
4495 * gnulib/wchar.in.h: Update.
4497 * gnulib/extra/arg-nonnull.h: Delete.
4498 * gnulib/extra/c++defs.h: Delete.
4499 * gnulib/extra/warn-on-use.h: Delete.
4500 * gnulib/m4/wchar_h.m4: Delete.
4501 * gnulib/m4/wint_t.m4: Delete.
4502 * gnulib/wchar.in.h: Delete.
4504 * gnulib/extra/snippets/arg-nonnull.h: New.
4505 * gnulib/extra/snippets/c++defs.h: New.
4506 * gnulib/extra/snippets/warn-on-use.h: New.
4508 * aclocal.m4: Regenerate.
4509 * config.in: Regenerate.
4510 * configure: Regenerate.
4511 * gnulib/Makefile.in: Regenerate.
4513 2012-04-18 Pedro Alves <palves@redhat.com>
4515 Reimport the update-copyright module from gnulib
4516 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4518 * configure: Regenerate.
4519 * gnulib/Makefile.am: Update.
4520 * gnulib/Makefile.in: Regenerate.
4521 * gnulib/extra/update-copyright: Update.
4522 * gnulib/m4/gnulib-cache.m4: Update.
4523 * gnulib/m4/gnulib-comp.m4: Update.
4525 2012-04-18 Tristan Gingold <gingold@adacore.com>
4527 * configure.ac (aix): Put -lpthread into libs.
4528 * configure: Regenerate.
4530 2012-04-18 Tom Tromey <tromey@redhat.com>
4532 * linespec.c (convert_linespec_to_sals): Don't use
4534 (compare_msymbols): Arguments are minsym_and_objfile, not
4535 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4537 2012-04-18 Pedro Alves <palves@redhat.com>
4539 Revert gnulib/ part of:
4540 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4541 Copyright year update in most files (performed by copyright.sh).
4543 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4545 Fix 64-bit constants on 32-bit hosts.
4546 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4547 from unsigned long to ULONGEST.
4548 (read_signed_leb128): Change declaration return type from long to
4550 (dwarf2_const_value_attr): Change declaration parameter value from long
4552 (dwarf2_compute_name): Change variable value from long to LONGEST.
4553 (read_unsigned_leb128): Change return type, variable result and some
4554 casts from unsigned long to ULONGEST.
4555 (read_signed_leb128): Change return type, variable result and some
4556 casts from long to LONGEST.
4557 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4558 value from long to LONGEST.
4559 (dwarf2_const_value): Change variable value from long to LONGEST.
4560 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4561 plongest and hex_string.
4562 * symtab.h (struct general_symbol_info): Change ivalue from long to
4563 LONGEST, remove the comment.
4564 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4565 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4567 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4570 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4571 * ada-lang.c (ada_discrete_type_high_bound)
4572 (ada_discrete_type_low_bound): Fix function comment. Use
4573 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4574 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4575 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4576 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4577 Use TYPE_FIELD_ENUMVAL.
4578 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4579 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4580 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4581 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4583 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4584 * dwarf2read.c (process_enumeration_scope): Likewise.
4585 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4587 (class StructMainTypePrettyPrinter): Support also
4588 FIELD_LOC_KIND_ENUMVAL.
4589 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4591 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4592 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4593 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4594 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4596 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4597 accommodate enumval.
4598 (struct call_site): Adjust loc_kind to accommodate enumval.
4599 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4600 (TYPE_FIELD_ENUMVAL): New macros.
4601 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4602 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4604 * p-typeprint.c (pascal_type_print_base): Likewise.
4605 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4607 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4608 * python/py-type.c (convert_field): New variable addrstring. Use
4609 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4610 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4611 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4612 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4614 * valprint.c (generic_val_print): Likewise.
4616 2012-04-17 Doug Evans <dje@google.com>
4618 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4620 * dwarf2read.c: Whitespace fixes.
4621 (lookup_signatured_type): Tweak comment.
4622 (get_die_type_at_offset): Fix comment.
4624 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4626 * xcoffread.c (xcoff_secnum_to_sections): New function.
4627 (secnum_to_section, secnum_to_bfd_section): Reimplement
4628 using xcoff_secnum_to_sections. Rename "secnum" parameter
4630 (RECORD_MINIMAL_SYMBOL): Delete.
4631 (record_minimal_symbol): New function.
4632 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4633 by call to record_minimal_symbol and set misc_func_recorded
4634 to 1. Set last_csect_sec to the XCOFF section index instead
4635 of GDB's section_offset index. Update calls to
4636 prim_record_minimal_symbol_and_info to pass the BFD section
4639 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4641 * xcoffread.c (read_xcoff_symtab): Delete variables
4642 last_csect_val and last_csect_sec and associated code.
4644 2012-04-17 Doug Evans <dje@google.com>
4646 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4647 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4648 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4649 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4651 * cleanups.h: New file.
4652 * cleanups.c: New file.
4653 * Makefile.in (SFILES): Add cleanups.c.
4654 (HFILES_NO_SRCDIR): Add cleanups.h.
4655 (COMMON_OBS): Add cleanups.o.
4656 * defs.h (struct cleanup): Moved to cleanups.h.
4657 (do_cleanups,do_final_cleanups): Ditto.
4658 (discard_cleanups,discard_final_cleanups): Ditto
4659 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4660 (save_cleanups,save_final_cleanups): Ditto.
4661 (restore_cleanups,restore_final_cleanups): Ditto.
4662 (null_cleanup): Ditto.
4663 (make_my_cleanup,make_my_cleanup2): Ditto.
4664 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4665 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4666 (do_cleanups,do_final_cleanups): Ditto.
4667 (discard_cleanups,discard_final_cleanups): Ditto
4668 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4669 (save_cleanups,save_final_cleanups): Ditto.
4670 (restore_cleanups,restore_final_cleanups): Ditto.
4671 (null_cleanup): Ditto.
4672 (make_my_cleanup,make_my_cleanup2): Ditto.
4673 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4675 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4677 (make_cleanup_dyn_string_delete): Ditto.
4678 (make_cleanup_ui_file_delete): Ditto.
4679 (make_cleanup_ui_out_redirect_pop): Ditto.
4680 (make_cleanup_free_section_addr_info): Ditto.
4681 (make_cleanup_restore_integer): Ditto.
4682 (make_cleanup_unpush_target): Ditto.
4683 (make_cleanup_value_free_to_mark): Ditto.
4684 (make_cleanup_value_free): Ditto.
4685 (make_cleanup_free_so): Ditto.
4687 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4689 New option "set debug auto-load".
4690 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4691 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4692 (auto_load_safe_path_vec_update)
4693 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4695 (file_is_auto_load_safe): New parameters debug_fmt and ....
4696 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4697 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4698 caller by explanatory string.
4699 (_initialize_auto_load): Register "set debug auto-load".
4700 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4702 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4703 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4704 by explanatory string.
4705 * main.c (captured_main): Likewise.
4706 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4707 (source_section_scripts): Likewise.
4709 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4711 New option "set auto-load safe-path".
4712 * NEWS: New commands "set auto-load safe-path"
4713 and "show auto-load safe-path".
4714 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4715 (auto_load_safe_path, auto_load_safe_path_vec)
4716 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4717 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4718 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4719 (source_gdb_script_for_objfile): New variable is_safe. Call
4720 file_is_auto_load_safe. Return if it is not.
4721 (struct loaded_script): New field loaded.
4722 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4723 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4724 output "Missing" to "No".
4725 (_initialize_auto_load): New variable cmd. Initialize
4726 auto_load_safe_path. Register "set auto-load safe-path",
4727 "show auto-load safe-path" and "add-auto-load-safe-path".
4728 * auto-load.h (maybe_add_script): Add parameter loaded.
4729 (file_is_auto_load_safe): New declaration.
4730 * config.in: Regenerate.
4731 * configure: Regenerate.
4732 * configure.ac: New parameters --with-auto-load-safe-path
4733 and --without-auto-load-safe-path.
4734 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4735 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4736 * main.c (captured_main): Check file_is_auto_load_safe for
4738 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4739 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4740 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4743 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4745 auto-load: Implementation.
4746 * NEWS: New descriptions for "info auto-load",
4747 "info auto-load gdb-scripts", "info auto-load python-scripts",
4748 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4749 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4750 and "show auto-load-scripts". New description for "set auto-load",
4751 "show auto-load", "set auto-load gdb-scripts",
4752 "show auto-load gdb-scripts", "set auto-load python-scripts",
4753 "show auto-load python-scripts", "set auto-load local-gdbinit",
4754 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4755 "show auto-load libthread-db".
4756 * auto-load.c: Remove include python/python-internal.h. Add includes
4757 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4759 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4760 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4761 (gdbpy_global_auto_load): Rename to ...
4762 (global_auto_load): ... here.
4763 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4764 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4765 (script_language_gdb, source_gdb_script_for_objfile): New.
4766 (struct loaded_script): New field language.
4767 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4769 (maybe_add_script): Add parameter language. Drop redundant
4770 entry.full_path initialization. Initialize entry.language and
4772 (auto_load_objfile_script): Change parameter suffix to language.
4773 Remove the call of maybe_add_script.
4774 Call language->source_script_for_objfile.
4775 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4777 (collect_matching_scripts): Adjust it for
4778 struct collect_matching_scripts_data.
4779 (auto_load_info_scripts_pattern_nl): New variable.
4780 (info_auto_load_scripts): Rename to ...
4781 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4782 for struct collect_matching_scripts_data.
4783 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4784 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4785 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4786 (auto_load_info_cmdlist_get): New.
4787 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4788 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4789 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4790 "info auto-load local-gdbinit".
4791 * auto-load.h (struct script_language): New.
4792 (gdbpy_global_auto_load): Rename to ...
4793 (global_auto_load): ... here.
4794 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4795 (auto_load_local_gdbinit_loaded): New declarations.
4796 (maybe_add_script): New parameter language.
4797 (auto_load_objfile_script): Change parameter suffix to language.
4798 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4799 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4800 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4802 * linux-thread-db.c: Include auto-load.h and ctype.h.
4803 (auto_load_thread_db, show_auto_load_thread_db): New.
4804 (struct thread_db_info): New field filename.
4805 (delete_thread_db_info): Call xfree for FILENAME.
4806 (try_thread_db_load): Initialize FILENAME.
4807 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4808 if !AUTO_LOAD_THREAD_DB.
4809 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4810 (_initialize_thread_db): Install auto_load_thread_db
4811 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4812 as "info auto-load libthread-db".
4813 * main.c (captured_main): Rename gdbpy_global_auto_load to
4814 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4815 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4816 (print_gdb_help): Extend the help for 'local init file'.
4817 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4818 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4819 (auto_load_scripts): Rename to ...
4820 (auto_load_python_scripts): ... here, update the comment.
4821 (gdbpy_load_auto_script_for_objfile): New declaration.
4822 (show_auto_load_python_scripts, script_language_python)
4823 (gdbpy_load_auto_script_for_objfile): New.
4824 (source_section_scripts): Refactor the code.
4825 (load_auto_scripts_for_objfile): Rename to ...
4826 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4827 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4828 (info_auto_load_python_scripts): New.
4829 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4830 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4831 Register "set auto-load-scripts" as its deprecated alias. Register
4832 "info auto-load python-scripts". Register "info auto-load-scripts" as
4833 its deprecated alias.
4834 (load_auto_scripts_for_objfile): Rename to ...
4835 (gdbpy_load_auto_scripts_for_objfile): ... here.
4836 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4837 (gdbpy_load_auto_scripts_for_objfile): ... here.
4839 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4841 auto-load: Move files.
4842 * Makefile.in (SFILES): Add auto-load.c.
4843 (HFILES_NO_SRCDIR): Add auto-load.h.
4844 (COMMON_OBS): Add auto-load.o.
4845 (distclean): Change .gdbinit for gdb-gdb.gdb.
4846 * auto-load.c: New file, with parts from python/py-auto-load.c.
4847 * auto-load.h: New file, with parts from python/python.h.
4848 * configure: Regenerate.
4849 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4850 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4851 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4852 * main.c: Include auto-load.h.
4853 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4854 command.h, observer.h and progspace.h to auto-load.c. Add include
4856 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4857 (struct loaded_script, auto_load_pspace_data)
4858 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4859 (hash_loaded_script_entry, eq_loaded_script_entry)
4860 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4861 (maybe_add_script): Move to auto-load.c.
4862 (source_section_scripts): Change maybe_add_script parameters passing,
4863 use script_not_found_warning_print.
4864 (clear_section_scripts, auto_load_objfile_script)
4865 (auto_load_new_objfile, loaded_script_ptr)
4866 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4867 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4868 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4869 auto_load_new_objfile and info_auto_load_scripts initizations to
4871 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4873 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4876 * charset.c (find_charset_names): Remove variables ix and elt.
4877 Use free_char_ptr_vec.
4878 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4879 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4880 debugdir_end. New variable debugdir_len.
4881 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4882 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4884 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4885 and elt. Use free_char_ptr_vec.
4886 * source.c (add_path): Remove variables argv, arg and argv_index.
4887 New variables dir_vec, back_to, ix and name.
4888 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4889 make_cleanup_freeargv. Remove variable separator. Simplify the code
4890 no longer expecting DIRNAME_SEPARATOR.
4891 (openp): Remove variable p, p1 and len. New variables dir_vec,
4892 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4893 no longer expecting DIRNAME_SEPARATOR.
4894 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4895 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4897 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4898 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4899 (dirnames_to_char_ptr_vec): New functions.
4901 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4904 * source.c (add_path): Remove always true conditional 'p == 0' and
4905 unindent its code block.
4907 2012-04-17 Pedro Alves <palves@redhat.com>
4909 * gdbtypes.h (FIELD_BITPOS): Rename to ...
4910 (FIELD_BITPOS_LVAL): ... this.
4911 (FIELD_BITPOS): New.
4912 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4913 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
4914 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
4916 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
4918 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
4919 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
4920 * target-descriptions.c (tdesc_gdb_type): Adjust to use
4923 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4925 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
4926 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
4927 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
4928 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
4929 * jv-lang.c (java_link_class_type): Likewise, once.
4930 * stabsread.c (read_enum_type): Likewise.
4932 2012-04-16 Yao Qi <yao@codesourcery.com>
4934 * common/agent.c (agent_run_command): Add one more parameter `len'.
4936 * common/agent.h: Update declaration.
4937 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4939 (linux_child_static_tracepoint_markers_by_strid): Ditto.
4941 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
4944 * value.c (value_actual_type): New function.
4945 * value.h (value_actual_type): New declaration.
4946 * varobj.c (update_type_if_necessary): New function.
4947 (varobj_create): Call value_actual_type instead of
4949 (install_dynamic_child): distinct changed and type changed MI variable
4951 (update_dynamic_varobj_children): Updated for install_dynamic_child
4952 change. All callers updated.
4953 (varobj_update): Support for MI variable object type change if
4954 the value changed and RTTI is used to determine the type.
4955 (create_child_with_value): Call value_actual_type instead of
4957 (adjust_value_for_child_access): Extended with a new parameter which
4958 specify whether the given value should be casted to enclosing type.
4959 All callers updated.
4961 2012-04-14 Yao Qi <yao@codesourcery.com>
4963 Import gnulib module inttypes from git
4964 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4965 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
4966 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
4967 gnulib/m4/inttypes-pri.m4
4968 * aclocal.m4, config.in, configure: Regenerated.
4969 * gnulib/Makefile.am: Update.
4970 * gnulib/Makefile.in: Update.
4971 * gnulib/m4/gnulib-cache.m4: Update.
4972 * gnulib/m4/gnulib-comp.m4: Update.
4973 * gnulib/inttypes.in.h: New.
4974 * gnulib/m4/inttypes-pri.m4: New.
4975 * gnulib/m4/inttypes.m4: New.
4977 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
4979 * infrun.c (resume): Update PC address to the real PC after
4980 preparing to do displaced stepping.
4982 2012-04-12 Doug Evans <dje@google.com>
4984 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
4985 All callers updated.
4987 2012-04-12 Mark Kettenis <kettenis@gnu.org>
4989 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
4991 2012-04-12 Doug Evans <dje@google.com>
4993 * dwarf2read.c (create_all_type_units): Renamed from
4994 create_debug_types_hash_table. All callers updated.
4996 * dwarf2read.c (create_signatured_type_table_from_index): Rename
4997 local type_sig to sig_type, type_offset to type_offset_in_tu.
4998 (hash_signatured_type): Renamed from hash_type_signature,
4999 all callers updated.
5000 (eq_signatured_type): Renamed from eq_type_signature,
5001 all callers updated.
5002 (create_debug_types_hash_table): Rename local type_sig to sig_type.
5003 (process_enumeration_scope): Ditto.
5004 (lookup_signatured_type_at_offset): Ditto.
5005 (load_full_type_unit, read_signatured_type): Ditto.
5007 2012-04-12 Yao Qi <yao@codesourcery.com>
5009 * remote.c (async_remote_interrupt): Correct function name in
5011 (async_remote_interrupt_twice): Ditto.
5013 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
5015 * source.c (find_and_open_source): Consistently pass resulting
5016 full path through xfullpath.
5018 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5020 Provide more specific displaced-stepping memory error message.
5021 * infrun.c (displaced_step_prepare): New variable status. Call
5022 target_read_memory instead of read_memory, provide more specific
5025 2012-04-11 Tristan Gingold <gingold@adacore.com>
5028 * darwin-nat.c (darwin_execvp): Revert previous patch.
5030 2012-04-11 Tristan Gingold <gingold@adacore.com>
5033 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
5036 2012-04-11 Tristan Gingold <gingold@adacore.com>
5038 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5041 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
5043 New command 'explore' which helps explore values and types in
5045 * NEWS: Add an entry about the new 'explore' command.
5046 * data-directory/Makefile.in: Add gdb/command/explore.py
5047 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
5048 command using the GDB Python API.
5050 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5052 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
5053 extension in jump target calculation.
5055 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5057 * mips-tdep.c (mips32_next_pc): Handle JALX.
5059 2012-04-10 Yao Qi <yao@codesourcery.com>
5061 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
5063 2012-04-10 Yao Qi <yao@codesourcery.com>
5065 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
5066 and gnulib/m4/gnulib-tool.m4.
5068 2012-04-10 Doug Evans <dje@google.com>
5070 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
5071 (load_partial_dies): Clarify comment.
5072 (find_partial_die): Support rereading type units.
5073 Clarify CU handling, if we know offset is in CU, don't search for the
5074 containing CU. Add comment regarding memory waste.
5076 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
5078 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5079 i386/x32-avx and i386/x32-avx-linux.
5080 (i386/x32-expedite): New.
5081 (i386/x32-linux-expedite): Likewise.
5082 (i386/x32-avx-expedite): Likewise.
5083 (i386/x32-avx-linux-expedite): Likewise.
5084 ($(outdir)/i386/x32.dat): Likewise.
5085 ($(outdir)/i386/x32-linux.dat): Likewise.
5086 ($(outdir)/i386/x32-avx.dat): Likewise.
5087 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5089 * features/i386/x32-avx-linux.xml: New file.
5090 * features/i386/x32-avx.xml: Likewise.
5091 * features/i386/x32-core.xml: Likewise.
5092 * features/i386/x32-linux.xml: Likewise.
5093 * features/i386/x32.xml: Likewise.
5095 * features/i386/x32-avx-linux.c: New. Generated.
5096 * features/i386/x32-avx.c: Likewise.
5097 * features/i386/x32-linux.c: Likewise.
5098 * features/i386/x32.c: Likewise.
5099 * regformats/i386/x32-avx-linux.dat: Likewise.
5100 * regformats/i386/x32-avx.dat: Likewise.
5101 * regformats/i386/x32-linux.dat: Likewise.
5102 * regformats/i386/x32.dat: Likewise.
5104 2012-04-10 Tristan Gingold <gingold@adacore.com>
5106 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5107 code to kill the inferior.
5109 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5111 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5113 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5115 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5116 (yyvsp): New defines.
5117 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5119 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5121 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5123 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5125 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5128 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5130 * sparc64-tdep.c (sparc64_store_arguments)
5131 (sparc64_store_arguments): Fix coding style.
5133 2012-04-07 Mark Kettenis <kettenis@gnu.org>
5135 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5136 complex floats, adjust some related comments and tighten a related
5138 (sparc64_extract_return_value): Handle complex floats.
5140 2012-04-07 Doug Evans <dje@google.com>
5142 * dwarf2read.c (load_partial_dies): Change condition to assert.
5144 2012-04-06 Doug Evans <dje@google.com>
5146 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5149 2012-04-05 Kevin Buettner <kevinb@redhat.com>
5151 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5153 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5154 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5157 2012-04-05 Keith Seitz <keiths@redhat.com>
5159 * linespec.c (decode_compound): Remove.
5160 (enum offset_relative_sign): New enum.
5161 (struct line_offset): New struct.
5162 (struct linespec): New struct.
5163 (struct linespec_state): Move file_symtabs,
5164 user_filename, and user_function into struct linespec.
5165 Make result an anonymous struct holding vectors of
5166 symbolp and minsym_and_objfile_d.
5167 Add language member.
5168 (enum ls_token_type): New enum.
5169 (linespec_keywords): New array.
5170 (struct ls_token): New struct.
5171 (struct ls_parser): New struct.
5172 (linespec_lexer_lex_number): New function.
5173 (linespec_lexer_lex_keyword): New function.
5174 (is_ada_operator): New function.
5175 (skip_quote_char): New function.
5176 (copy_token_string): New function.
5177 (is_closing_quote_enclosed): New function.
5178 (find_parameter_list_end): New function.
5179 (linespec_lexer_lex_string): New function.
5180 (linespec_lexer_lex_one): New function.
5181 (linespec_lexer_consume_token): New function.
5182 (linespec_lexer_peek_token): New function.
5183 (cplusplus_error): Remove unused function.
5184 (find_methods): Update comment.
5185 (find_toplevel_char): Return const.
5186 (is_objc_method_format): Remove unused function.
5187 (find_toplevel_string): New function.
5188 (is_linespec_boundary): Remove.
5189 (symbol_not_found_error): New function.
5190 (find_method_overload_end): Remove function.
5191 (unexpected_linespec_error): New function.
5192 (keep_name_info): Remove.
5193 (linespec_parse_line_offset): New function.
5194 (linespec_parse_basic): New function.
5195 (canonicalize_linespec): New function.
5196 (decode_line_internal): Remove.
5197 (create_sals_line_offset): New function adapted from
5199 (convert_linespec_to_sals): New function.
5200 (parse_linespec): New function.
5201 (linespec_parser_new): New function.
5202 (linespec_state_destructor): Change parameter type to
5203 struct linespec_state *.
5204 Add language parameter.
5205 Remove freeing of moved members.
5206 (linespec_parser_delete): New function.
5207 (decode_line_full): Use parse_linespec and linespec_parser_new.
5208 (decode_line_1): Likewise.
5209 (decode_indirect): Rename to ...
5210 (linespec_expression_to_pc): ... this and rewrite
5211 to simply find CORE_ADDR, storing this result for later
5213 (locate_first_half): Remove.
5214 (deocde_objc): Add parameter LS.
5215 Initialize new struct collect_info members.
5216 Handle minimal symbols, too.
5217 (decode_compound): Delete.
5218 (lookup_prefix_sym): Rewrite.
5219 (compare_msymbols): New function.
5220 (find_method): Rewrite.
5221 Do not call cplusplus_error.
5222 (symtabs_from_filename): Rewrite.
5223 (collect_function_symbols): Delete.
5224 (find_function_symbols): Rewrite without ARGPTR-style
5226 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5227 (decode_dollar): Adapted and renamed to ...
5228 (linespec_parse_variable): ... this.
5229 (find_linespec_symbols): New function.
5230 (decode_label): Adapted and renamed to ...
5231 (find_label_symbols): ... this.
5232 (decode_digits_list_mode): Add and use LS argument.
5233 (decode_digits_ordinary): Likewise.
5234 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5235 If in list mode, allow any symbol class. Otherwise, only
5236 permit LOC_BLOCK symbols.
5237 (minsym_found): Update comments.
5238 (search_minsyms_for_name): Do not convert the matching symbol
5239 into a SAL. Simply push the symbol and objfile into the
5241 (decode_variable): Delete. Contents adapted into
5242 find_linespec_symbols.
5244 * cp-support.c (SKIP_SPACE): Remove.
5245 (operator_tokens): Remove unused global.
5246 (cp_validate_operator): Remove.
5247 * cp-support.h (cp_validate_operator): Remove declaration.
5249 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5251 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5252 for TYPE_VPTR_FIELDNO.
5253 * valprint.c (valprint_check_validity): Make it global, move the
5254 function comment ...
5255 * value.h (valprint_check_validity): ... to this new declaration.
5257 2012-04-02 Tristan Gingold <gingold@adacore.com>
5259 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5260 the STATE32 api for i386 state.
5261 (i386_darwin_store_inferior_registers): Likewise.
5263 2012-04-02 Tristan Gingold <gingold@adacore.com>
5265 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5267 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5270 2012-04-02 Tristan Gingold <gingold@adacore.com>
5273 * darwin-nat.c (darwin_execvp): Set binary preference.
5275 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5277 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5279 2012-03-30 Tom Tromey <tromey@redhat.com>
5281 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5282 of TRY_CATCH. Fix error handling.
5283 * python/py-value.c (convert_value_from_python): Move 'old'
5284 declaration to innermost scope.
5286 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5287 Andrey Smirnov <andrew.smirnov@gmail.com>
5289 -Wshadow warning fix.
5290 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5291 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5292 Adjust code accordingly.
5294 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5296 * ada-lang.c (symbol_completion_add): Rename parameter
5297 "encoded" into "encoded_p". Ajust code and documentation
5300 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5301 Andrey Smirnov <andrew.smirnov@gmail.com>
5303 -Wshadow warning fix.
5304 * ada-lang.c (symbol_completion_add): Rename parameter
5305 "wild_match" into wild_match_p. Update code and documentation
5308 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5310 * ada-lang.c (symbol_completion_match): Rename parameter
5311 "encoded" into "encoded_p". Ajust code and documentation
5314 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5315 Andrey Smirnov <andrew.smirnov@gmail.com>
5317 -Wshadow warning fix.
5318 * ada-lang.c (symbol_completion_match): Rename parameter
5319 "wild_match" into "wild_match_p". Adjust code and function
5320 documentation accordingly.
5322 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5323 Andrey Smirnov <andrew.smirnov@gmail.com>
5325 -Wshadow warning fix.
5326 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5327 "symbol_info" into "info". Adjust code accordingly.
5328 (ada_lookup_symbol): Likewise.
5330 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5332 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5333 of this function's documentation.
5335 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5336 Andrey Smirnov <andrew.smirnov@gmail.com>
5338 -Wshadow warning fix.
5339 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5340 variable into "wild_match_p". Adjust code accordingly.
5342 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5343 Andrey Smirnov <andrew.smirnov@gmail.com>
5345 -Wshadow warning fix.
5346 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5347 parameter into "wild_match_p". Adjust code accordingly.
5348 Document this parameter in the function description.
5350 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5351 Andrey Smirnov <andrew.smirnov@gmail.com>
5353 -Wshadow warning fix.
5354 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5355 "wild_match" parameter to "wild_match_p" (-Wshadow).
5357 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5359 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5360 in function documentation.
5362 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5363 Andrey Smirnov <andrew.smirnov@gmail.com>
5365 -Wshadow warning fix.
5366 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5367 variable into wild_match_p. Adjust code accordingly.
5369 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5370 Andrey Smirnov <andrew.smirnov@gmail.com>
5372 * ada-valprint.c (ada_val_print_1): Move the code handling
5373 TYPE_CODE_ENUM inside its own lexical block. Declare
5374 variables len and val there, instead of in the function's
5375 top level block. Avoid declaring deref_val again in a way
5376 that shadows another variable of the same name declared
5377 in one of the up-level blocks. Just re-use the up-level
5380 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5382 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5383 Replace block_found argument by symbol_info. Adjust
5384 implementation accordingly. Add function documentation.
5385 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5387 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5388 * ada-exp.y (write_object_renaming): Adjust to new
5389 ada_lookup_encoded_symbol API.
5391 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5393 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5396 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5398 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5399 (v850_register_name): Add the mpu and fpu register names.
5400 (v850e_register_name): Add the mpu and fpu register names.
5401 (v850e2_register_name): New function.
5402 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5405 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5407 * NEWS: Add entry for Ada varobj support.
5409 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5411 * varobj.c (default_value_is_changeable_p): New function,
5412 extracted from varobj_value_is_changeable_p. Add declaration.
5413 (ada_value_is_changeable_p): New function, extracted from
5414 varobj_value_is_changeable_p. Add declaration.
5415 (struct language_specific): New field "value_is_changeable_p".
5416 (languages): Add entries for new field.
5417 (varobj_create): Set language before calling install_new_value.
5418 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5419 "value_is_changeable_p" language callback.
5421 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5423 * ada-varobj.h, ada-varobj.c: New files.
5424 * Makefile.in (SFILES): Add ada-varobj.c.
5425 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5426 (COMMON_OBS): Add ada-varobj.o.
5428 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5430 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5431 (struct language_specific): New field "value_has_mutated".
5432 (languages): Set field "value_has_mutated" in each entry of array.
5433 (varobj_value_has_mutated): New function.
5434 (varobj_udpdate): Add handling of type mutation.
5435 (value_of_root): Add handling of type mutation.
5436 (ada_value_has_mutated): New function.
5438 2012-03-28 Pedro Alves <palves@redhat.com>
5440 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5441 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5443 2012-03-28 Tom Tromey <tromey@redhat.com>
5445 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5446 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5449 2012-03-28 Tom Tromey <tromey@redhat.com>
5451 * .dir-locals.el: New file.
5453 2012-03-28 Pedro Alves <palves@redhat.com>
5455 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5457 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5459 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5462 2012-03-27 Pedro Alves <palves@redhat.com>
5464 Eliminate struct ui_stream.
5466 * ui-out.h (struct ui_stream): Delete.
5467 (ui_out_field_stream): Adjust prototype.
5468 (ui_out_stream_new, ui_out_stream_delete)
5469 (make_cleanup_ui_out_stream_delete): Delete declarations.
5470 * ui-out.c (ui_out_field_stream): Change prototype to take a
5471 ui_file instead of a ui_stream. Adjust.
5472 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5473 (make_cleanup_ui_out_stream_delete): Delete.
5474 * breakpoint.c (print_breakpoint_location)
5475 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5476 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5477 * disasm.c (dump_insns): Ditto.
5478 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5480 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5481 ui_stream/ui_out_stream_new.
5482 * infcmd.c (print_return_value): Ditto.
5483 * osdata.c (info_osdata_command): Don't allocate a local
5485 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5486 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5487 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5488 allocate a local ui_stream.
5489 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5490 instead of ui_stream/ui_out_stream_new.
5491 (list_args_or_locals): Don't allocate a local ui_stream.
5492 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5493 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5494 ui_stream/ui_out_stream_new.
5495 * cli/cli-setshow.c (do_setshow_command): Ditto.
5497 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5499 * arm-linux-tdep.c (arm_linux_init_abi): Call
5500 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5501 * arm-tdep.c (arm_process_record): New function.
5502 (deallocate_reg_mem): New function.
5503 (decode_insn): New function.
5504 (thumb_record_branch): New function.
5505 (thumb_record_ldm_stm_swi(): New function.
5506 (thumb_record_misc): New function.
5507 (thumb_record_ld_st_stack): New function.
5508 (thumb_record_ld_st_imm_offset): New function.
5509 (thumb_record_ld_st_reg_offset(): New function.
5510 (thumb_record_add_sub_cmp_mov): New function.
5511 (thumb_record_shift_add_sub): New function.
5512 (arm_record_coproc_data_proc): New function.
5513 (arm_record_coproc): New function.
5514 (arm_record_b_bl): New function.
5515 (arm_record_ld_st_multiple): New function.
5516 (arm_record_ld_st_reg_offset): New function.
5517 (arm_record_ld_st_imm_offset): New function.
5518 (arm_record_data_proc_imm): New function.
5519 (arm_record_data_proc_misc_ld_str): New function.
5520 (arm_record_extension_space): New function.
5521 (arm_record_strx): New function.
5522 (sbo_sbz): New function.
5523 (struct insn_decode_record): New structure for arm insn record.
5524 (REG_ALLOC): New macro for reg allocations.
5525 (MEM_ALLOC): New macro for memory allocations.
5526 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5528 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5530 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5531 (store_register): Likewise.
5533 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5535 * MAINTAINERS (Write After Approval): Add myself to the list.
5537 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5539 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5540 Describe also the option "auto".
5542 2012-03-22 Richard Henderson <rth@redhat.com>
5544 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5545 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5547 2012-03-22 Richard Henderson <rth@redhat.com>
5549 * jit.c (jit_read_code_entry): Compute alignment and offset of
5550 int64_t member before computing entry_size.
5552 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5554 Python scripting: Add new method Value.referenced_value to
5555 gdb.Value which can dereference pointer as well as reference
5557 * NEWS: Add entry under 'Python scripting' about the new method
5558 Value.referenced_value on gdb.Value objects.
5559 * python/py-value.c (valpy_referenced_value): New function
5560 defining a new method on gdb.Value objects which can dereference
5561 pointer and reference values.
5563 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5565 * MAINTAINERS (Write After Approval): Add myself to the list.
5567 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5569 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5570 in addition to "main".
5572 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5574 * expression.h (op_name): Add declaration.
5575 * expprint.c (op_name): Remove declaration. Make non-static.
5576 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5578 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5580 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5582 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5583 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5584 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5585 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5586 (linux_nat_get_siginfo): Likewise.
5587 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5588 (linux_nat_get_siginfo): Likewise.
5589 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5590 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5591 * procfs.c (gdb_siginfo_t): Likewise.
5593 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5595 * .gitignore: Ignore more files.
5597 2012-03-20 Pedro Alves <palves@redhat.com>
5599 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5602 2012-03-20 Yao Qi <yao@codesourcery.com>
5604 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5607 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5609 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5610 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5611 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5613 * dwarf2expr.h (cu_offset, sect_offset): New types.
5614 (struct dwarf_expr_context_funcs) <dwarf_call>
5615 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5617 (struct dwarf_expr_context) <len>: Improve the comment.
5618 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5619 cu_offset and sect_offset.
5620 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5621 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5622 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5623 * dwarf2loc.h: Include dwarf2expr.h.
5624 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5626 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5627 Improve the comment.
5628 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5629 (struct signatured_type, struct line_header, struct partial_die_info)
5630 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5631 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5632 (get_die_type_at_offset, create_cus_from_index)
5633 (create_signatured_type_table_from_index, dw2_get_file_names)
5634 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5635 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5636 (create_debug_types_hash_table, process_psymtab_comp_unit)
5637 (load_partial_comp_unit, create_all_comp_units)
5638 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5639 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5640 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5641 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5642 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5643 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5644 (find_partial_die, read_attribute_value, lookup_die_type)
5645 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5646 (is_ref_attr): New function comment.
5647 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5648 Use cu_offset and sect_offset.
5649 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5650 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5651 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5652 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5653 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5654 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5655 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5658 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5661 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5662 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5664 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5666 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5668 * NEWS: Describe new options --init-command=FILE, -ix and
5669 --init-eval-command=COMMAND, -iex.
5670 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5671 CMDARG_INIT_COMMAND.
5672 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5673 "init-command", "init-eval-command", "ix" and "iex" to the variable
5674 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5675 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5676 (print_gdb_help): Describe --init-command=FILE, -ix and
5677 --init-eval-command=COMMAND, -iex.
5679 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5682 * main.c (struct cmdarg): Move it here from main. Add more comments.
5683 (cmdarg_s, VEC (cmdarg_s)): New.
5684 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5685 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5686 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5687 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5690 2012-03-19 Tom Tromey <tromey@redhat.com>
5692 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5694 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5697 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5700 2012-03-16 Chris January <chris.january@allinea.com>
5702 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5705 2012-03-16 Chris January <chris.january@allinea.com>
5707 * source.c (add_path): Use memmove instead of strcpy because the
5710 2012-03-16 Joel Brobecker <brobecker@adacore.com>
5712 * value.h (set_value_parent): Add declaration.
5713 * value.c (set_value_parent): New function.
5714 (value_address): If VALUE->PARENT is not NULL, then use it as
5715 the base address instead of VALUE->LOCATION.address.
5716 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5717 the same as OBJ's address. Adjust V's offset accordingly.
5720 2012-03-16 Gary Benson <gbenson@redhat.com>
5722 PR breakpoints/10738
5723 * dwarf2read.c (use_deprecated_index_sections): New global.
5724 (struct partial_die_info): New member may_be_inlined.
5725 (read_partial_die): Set may_be_inlined where appropriate.
5726 (add_partial_subprogram): Add partial symbols for partial
5727 DIEs that may be inlined.
5728 (new_symbol_full): Add inlined subroutines to the current
5730 (write_psymtabs_to_index): Bump version number.
5731 (dwarf2_read_index): Read only version 6 indices unless
5732 use_deprecated_index_sections is set.
5733 * linespec.c (symbol_and_data_callback): New structure.
5734 (iterate_inline_only): New function.
5735 (iterate_over_all_matching_symtabs): New argument
5736 "include_inline". If nonzero, also call the callback for
5737 symbols representing inlined subroutines.
5738 (lookup_prefix_sym): Pass extra argument to the above.
5739 (find_function_symbols): Likewise.
5740 (add_matching_symbols_to_info): Likewise.
5741 * NEWS: Mention that GDB can now set breakpoints on inlined
5744 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5746 * p-typeprint.c (pascal_type_print_method_args):
5747 Fix display of parameter of methods.
5749 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5751 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5752 Add missing prototype.
5754 2012-03-16 Yao Qi <yao@codesourcery.com>
5755 Jan Kratochvil <jan.kratochvil@redhat.com>
5757 Fix false compilation warning.
5758 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5760 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5761 Pedro Alves <pedro@codesourcery.com>
5763 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5764 (arm_register_g_packet_guesses): New function.
5765 (arm_gdbarch_init): Don't force a target description with
5766 registers when the executable is detected as M-profile. Instead
5767 set gdbarch->tdep->is_m. Register `g' packet guesses.
5768 (_initialize_arm_tdep): Initialize the new target description.
5769 * features/arm-with-m-fpa-layout.xml: New description.
5770 * features/arm-with-m-fpa-layout.c: New, generated.
5772 2012-03-15 Joel Brobecker <brobecker@adacore.com>
5774 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5775 Update function description.
5776 (insert_bp_location): Do not wipe bl->target_info out.
5777 * mem-break.c: #include "gdb_string.h".
5778 (default_memory_insert_breakpoint): Do not call target_read_memory
5779 with a pointer to the breakpoint's shadow_contents buffer. Use
5780 a local buffer instead.
5781 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5783 2012-03-15 Tom Tromey <tromey@redhat.com>
5785 * NEWS: Mention "info vtbl", not "info vtable".
5786 * cp-support.c (info_vtbl_command): Fix comment.
5787 (_initialize_cp_support): Fix text.
5789 2012-03-15 Tom Tromey <tromey@redhat.com>
5791 * cp-valprint.c (cp_print_value_fields): Use
5792 print_function_pointer_address for vtable slot.
5794 2012-03-15 Tom Tromey <tromey@redhat.com>
5796 * gnu-v3-abi.c (struct value_and_voffset): New.
5797 (hash_value_and_voffset, eq_value_and_voffset)
5798 (compare_value_and_voffset, compute_vtable_size)
5799 (print_one_vtable, gnuv3_print_vtable): New functions.
5800 (init_gnuv3_ops): Initialize 'print_vtable' field.
5801 * cp-support.c (info_vtbl_command): New function.
5802 (_initialize_cp_support): Add "info vtbl".
5803 * cp-abi.h (cplus_print_vtable): Declare.
5804 (struct cp_abi_ops) <print_vtable>: New field.
5805 * cp-abi.c (cplus_print_vtable): New function.
5808 2012-03-15 Tom Tromey <tromey@redhat.com>
5810 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5811 iterate_over_symbols.
5813 2012-03-14 Doug Evans <dje@google.com>
5815 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5816 DW_OP_GNU_parameter_ref.
5818 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5820 Fix double prompt of 'interpreter-exec mi'.
5821 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5822 (mi_interpreter_resume): use it.
5823 (mi_execute_command_input_handler): New function.
5824 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5825 mi_execute_command_input_handler.
5827 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
5829 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5831 (darwin_debug_port_info): Make static.
5832 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5833 * machoread.c (_initialize_machoread): Add prototype.
5834 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5835 (i386_darwin_set_control, i386_darwin_get_control)
5836 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5837 i386_darwin_get_status, i386_darwin_get_control):
5838 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5840 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5842 * ax-gdb.c (gen_usual_unary): Remove special handling of
5843 enum and bool types.
5845 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5847 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5849 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5851 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5853 2012-03-13 Chris January <chris.january@allinea.com>
5855 * aix-thread.c (fill_sprs): Store the floating point registers
5856 at the correct offsets into vals.
5858 2012-03-13 Doug Evans <dje@google.com>
5860 * NEWS: Mention symbol-reloading has been deleted.
5861 * symfile.c (symbol_reloading): Delete.
5862 (show_symbol_reloading): Delete.
5863 (_initialize_symfile): Delete set/show symbol-reloading.
5865 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5866 read_in_chain until we have successfully read it in.
5867 (load_full_comp_unit): Ditto.
5868 (read_signatured_type): Add comment.
5870 2012-03-13 Chris January <chris.january@allinea.com>
5872 * stabsread.c (fix_common_block): Change type of valu argument
5875 2012-03-13 Chris January <chris.january@allinea.com>
5877 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5880 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5882 * common/linux-procfs.c (linux_proc_get_int): New, from
5883 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5885 (linux_proc_get_tgid): Only call linux_proc_get_int.
5886 (linux_proc_get_tracerpid): New.
5887 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5888 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5889 linux_proc_pid_has_state.
5890 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5891 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5892 (linux_ptrace_attach_warnings): New.
5893 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5895 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5896 (linux_nat_attach): New variables ex, buffer, message and message_s.
5897 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5899 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5901 * Makefile.in (linux-ptrace.o): New.
5902 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5904 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5905 * common/linux-ptrace.c: New file.
5906 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5907 * config/arm/linux.mh: Likewise.
5908 * config/i386/linux.mh: Likewise.
5909 * config/i386/linux64.mh: Likewise.
5910 * config/ia64/linux.mh: Likewise.
5911 * config/m32r/linux.mh: Likewise.
5912 * config/m68k/linux.mh: Likewise.
5913 * config/mips/linux.mh: Likewise.
5914 * config/pa/linux.mh: Likewise.
5915 * config/powerpc/linux.mh: Likewise.
5916 * config/powerpc/ppc64-linux.mh: Likewise.
5917 * config/powerpc/spu-linux.mh: Likewise.
5918 * config/s390/s390.mh: Likewise.
5919 * config/sparc/linux.mh: Likewise.
5920 * config/sparc/linux64.mh: Likewise.
5921 * config/xtensa/linux.mh: Likewise.
5922 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
5923 common/linux-procfs.c.
5924 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
5926 2012-03-13 Hui Zhu <teawater@gmail.com>
5927 Pedro Alves <palves@redhat.com>
5929 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
5930 CREATE_BREAKPOINT_FLAGS_INSERTED.
5931 (create_breakpoint_sal, create_breakpoints_sal)
5932 (base_breakpoint_create_breakpoints_sal)
5933 (tracepoint_create_breakpoints_sal)
5934 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
5936 (break_command_1, handle_gnu_v3_exceptions, trace_command)
5937 (ftrace_command, strace_command): Adjust.
5938 (create_tracepoint_from_upload): Pass
5939 CREATE_BREAKPOINT_FLAGS_INSERTED.
5940 * breakpoint.h (enum breakpoint_create_flags): New.
5941 (create_breakpoint): New flags parameter.
5942 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
5943 * python/py-breakpoint.c (bppy_init): Adjust.
5944 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
5945 * spu-tdep.c (spu_catch_start): Adjust.
5947 2012-03-13 Pedro Alves <palves@redhat.com>
5948 Hui Zhu <teawater@gmail.com>
5949 Yao Qi <yao@codesourcery.com>
5951 * remote.c (struct remote_state): New field `starting_up'.
5952 (remote_start_remote): Set and clear it.
5953 (remote_can_download_tracepoint): If starting up, return false.
5955 2012-03-13 Yao Qi <yao@codesourcery.com>
5957 * inferior.h (struct inferior): Remove fields any_syscall_count,
5958 syscalls_counts and total_syscalls_count. Move them to new
5959 struct catch_syscall_inferior_data in breakpoint.c.
5960 * breakpoint.c: Call DEF_VEC_I(int).
5961 (struct catch_syscall_inferior_data): New.
5962 (get_catch_syscall_inferior_data): New.
5963 (catch_syscall_inferior_data_cleanup): New.
5964 (insert_catch_syscall): Update to access data in
5965 struct catch_syscall_inferior_data.
5966 (insert_catch_syscall): Likewise.
5967 (remove_catch_syscall): Likewise.
5968 (remove_catch_syscall): Likewise.
5969 (is_syscall_catchpoint_enabled): Likewise.
5970 (add_catch_command): Likewise.
5971 (_initialize_breakpoint): Register cleanup.
5972 * breakpoint.h: Removed DEF_VEC_I(int).
5973 * dwarf2loc.c: Call DEF_VEC_I(int).
5974 * mi/mi-main.c: Likewise.
5976 2012-03-12 Mark Kettenis <kettenis@gnu.org>
5978 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
5980 2012-03-12 Chris January <chris.january@allinea.com>
5982 * aix-thread.c (_initialize_aix_thread): Add prototype.
5983 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
5984 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
5986 2012-03-12 Joel Brobecker <brobecker@adacore.com>
5988 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
5989 include of "amd64-nat.h".
5991 2012-03-12 Tom Tromey <tromey@redhat.com>
5993 * buildsym.c (record_pending_block): Now static.
5994 * buildsym.h: (record_pending_block): Remove.
5996 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
5998 * amd64bsd-nat.c: Include amd64bsd-nat.h.
6000 2012-03-09 Tom Tromey <tromey@redhat.com>
6002 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
6003 producer_is_gxx_lt_4_6>: New fields.
6004 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
6006 2012-03-09 Tom Tromey <tromey@redhat.com>
6008 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
6010 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6012 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
6015 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6017 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
6019 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6021 Fix -Wmissing-prototypes build.
6022 * arm-linux-nat.c (get_thread_id): Make it static.
6023 * xtensa-linux-nat.c (get_thread_id): Likewise.
6025 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6027 * server.c (process_point_options): If a conditional expression
6028 is found, only print a message if remote_debug is nonzero.
6030 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
6032 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
6033 of internal error for unknown/unsupported types.
6035 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6037 Fix CU relative vs. absolute DIE offsets.
6038 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
6039 offset to offset_in_cu.
6040 * dwarf2read.c (process_enumeration_scope): Add CU offset to
6042 (dwarf2_fetch_die_location_block): Rename parameter offset to
6043 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
6045 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6047 * libunwind-frame.c: Rename to ...
6048 * ia64-libunwind-tdep.c: ... here.
6049 * libunwind-frame.h: Rename to ...
6050 * ia64-libunwind-tdep.h: ... here.
6051 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
6052 ia64-libunwind-tdep.h.
6053 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
6054 * README (--with-libunwind): Rename to ...
6055 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
6056 * config.in: Regenerate.
6057 * configure: Regenerate.
6058 * configure.ac: New option --with-libunwind-ia64, make the
6059 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
6060 Remove AC_DEFINE for HAVE_LIBUNWIND.
6061 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
6062 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
6063 Rename libunwind-frame in the general comment.
6064 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
6065 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
6066 Move forward declarations inside #ifndef. Rename libunwind-frame in
6067 the general comment.
6068 * ia64-tdep.c: Rename libunwind-frame.h #include to
6069 ia64-libunwind-tdep.h.
6070 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
6071 (ia64_libunwind_descr): Rename libunwind-frame to
6072 ia64-libunwind-tdep in these function comments.
6073 * ia64-tdep.h: Rename libunwind-frame.h #include to
6074 ia64-libunwind-tdep.h.
6075 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6076 ia64-libunwind-tdep in that data comment.
6078 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6080 * libunwind-frame.h (struct frame_unwind): New declaration.
6082 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6084 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6085 "set breakpoint condition-evaluation" command.
6087 2012-03-08 Tristan Gingold <gingold@adacore.com>
6089 * sparc-stub.c: Move to stubs/
6090 * sh-stub.c: Likewise.
6091 * m68k-stub.c: Likewise.
6092 * m32r-stub.c: Likewise.
6093 * i386-stub.c: Likewise.
6095 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6097 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6098 linux_get_siginfo_type.
6100 * m68klinux-nat.c: Include "gdb_proc_service.h".
6101 (PTRACE_GET_THREAD_AREA): Define.
6102 (ps_get_thread_area): New function.
6104 2012-03-08 Yao Qi <yao@codesourcery.com>
6106 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6108 (remote_query_attached): Likewise.
6109 (remote_static_tracepoint_marker_at): Likewise.
6110 (remote_set_permissions): Likewise.
6111 (remote_detach_1, extended_remote_attach_1): Likewise.
6112 (send_g_packet, remote_vkill): Likewise.
6113 (extended_remote_disable_randomization): Likewise.
6114 (remote_add_target_side_condition): Likewise.
6115 (remote_insert_breakpoint): Likewise.
6116 (remote_remove_breakpoint): Likewise.
6117 (remote_insert_watchpoint): Likewise.
6118 (remote_remove_watchpoint): Likewise.
6119 (remote_insert_hw_breakpoint): Likewise.
6120 (remote_insert_hw_breakpoint): Likewise.
6121 (remote_remove_hw_breakpoint): Likewise.
6122 (remote_download_command_source): Likewise.
6123 (remote_download_tracepoint): Likewise.
6124 (remote_download_trace_state_variable): Likewise.
6125 (remote_disable_tracepoint): Likewise.
6126 (remote_trace_set_readonly_regions): Likewise.
6127 (remote_get_tracepoint_status): Likewise.
6128 (remote_trace_find): Likewise.
6129 (remote_get_trace_state_variable_value): Likewise.
6130 (remote_set_disconnected_tracing): Likewise.
6131 (remote_set_circular_trace_buffer): Likewise.
6132 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6133 (remote_use_agent): Likewise.
6134 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6137 2012-03-07 Pedro Alves <palves@redhat.com>
6139 * NEWS: Mention QProgramSignals.
6140 * inferior.h (update_signals_program_target): Declare.
6141 * infrun.c: (update_signals_program_target): New.
6142 (handle_command): Update the target of the new program signals
6144 * remote.c (PACKET_QProgramSignals): New enum.
6145 (last_program_signals_packet): New global.
6146 (remote_program_signals): New.
6147 (remote_start_remote): Update the target with the program signals
6149 (remote_protocol_features): Add entry for QPassSignals.
6150 (remote_open_1): Free anc clear last_program_signals_packet.
6151 (init_remote_ops): Install remote_program_signals.
6152 * target.c (update_current_target): Adjust.
6153 (target_program_signals): New.
6154 * target.h (struct target_ops) <to_program_signals>: New field.
6155 (target_program_signals): Declare.
6157 2012-03-07 Pedro Alves <palves@redhat.com>
6159 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6162 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6164 * m68klinux-nat.c (getregs_supplies): Make static.
6165 (getfpregs_supplies): Likewise.
6166 (have_ptrace_getregs): Likewise.
6168 2012-03-06 Joel Brobecker <brobecker@adacore.com>
6170 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6171 in call to get_die_type_at_offset.
6173 2012-03-06 Stan Shebs <stan@codesourcery.com>
6175 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6176 * mi/mi-cmd-disas.c: Ditto.
6177 * mi/mi-cmd-env.c: Ditto.
6178 * mi/mi-cmd-file.c: Ditto.
6179 * mi/mi-cmd-stack.c: Ditto.
6180 * mi/mi-cmd-target.c: Ditto.
6181 * mi/mi-cmd-var.c: Ditto.
6182 * mi/mi-cmds.c: Ditto.
6183 * mi/mi-cmds.h: Ditto.
6184 * mi/mi-console.c: Ditto.
6185 * mi/mi-getopt.c: Ditto.
6186 * mi/mi-getopt.h: Ditto.
6187 * mi/mi-interp.c: Ditto.
6188 * mi/mi-main.c: Ditto.
6189 * mi/mi-out.c: Ditto.
6190 * mi/mi-parse.c: Ditto.
6191 * mi/mi-parse.h: Ditto.
6192 * mi/mi-symbol-cmds.c: Ditto.
6194 * mi/mi-getopt.h: Move mi_opt struct up.
6195 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6197 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6199 2012-03-06 Tom Tromey <tromey@redhat.com>
6201 * proc-service.c (ps_pglobal_lookup): Set the current program
6204 2012-03-06 Pedro Alves <palves@redhat.com>
6206 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6208 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6210 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6212 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6215 * common/linux-osdata.c (linux_common_core_of_thread): New function
6217 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6218 call by linux_common_core_of_thread.
6219 (linux_nat_core_of_thread_1): Remove.
6220 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6221 * linux-thread-db.c: Include linux-osdata.h.
6222 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6223 linux_common_core_of_thread.
6225 2012-03-05 Tom Tromey <tromey@redhat.com>
6227 * value.c (value_primitive_field): Don't fetch contents for
6230 2012-03-05 Tom Tromey <tromey@redhat.com>
6232 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6234 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6236 * s390-nat.c: Include "gregset.h".
6238 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6240 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6241 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6242 (libunwind_load): New variable so_error, use it for dlerror. Try to
6243 load also LIBUNWIND_SO_7.
6245 2012-03-05 Pedro Alves <palves@redhat.com>
6247 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6248 is not NULL, and remove resulting dead code.
6250 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6252 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6253 prologue to sh_analyze_prologue.
6254 (sh_analyze_prologue): Make better use of such an upper limit, and
6255 generally be more cautious about accessing memory.
6257 2012-03-05 Tom Tromey <tromey@redhat.com>
6259 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6260 _initialize_ia64_hpux_tdep.
6262 2012-03-05 Pedro Alves <palves@redhat.com>
6266 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6267 the register state is clear, supply explicit zero, instead of
6268 marking the register unavailable.
6270 2012-03-05 Tristan Gingold <gingold@adacore.com>
6272 * NEWS: Mention OpenVMS ia64 new target.
6274 2012-03-05 Tristan Gingold <gingold@adacore.com>
6276 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6277 (ia64_unw_accessors, ia64_unw_rse_accessors)
6278 (ia64_libunwind_descr): Declare.
6279 * ia64-vms-tdep.c: New file.
6280 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6281 (ia64_libunwind_descr): Make them public.
6282 * configure.tgt: Add ia64-*-*vms*.
6283 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6284 (ALLDEPFILES): Add ia64-vms-tdep.c
6286 2012-03-05 Tristan Gingold <gingold@adacore.com>
6288 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6289 * remote.c (PACKET_qXfer_uib): New enum value.
6290 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6291 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6292 (_initialize_remote): Call add_packet_config_cmd for
6295 2012-03-05 Tristan Gingold <gingold@adacore.com>
6297 * osabi.c (gdb_osabi_names): Add OpenVMS.
6298 (generic_elf_osabi_sniffer): Likewise.
6299 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6301 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6303 Removed unused code.
6304 * libunwind-frame.c (libunwind_frame_unwind)
6305 (libunwind_frame_base_address): Remove.
6306 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6308 2012-03-04 Yao Qi <yao@codesourcery.com>
6310 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6311 remove trailing new line.
6312 (agent_run_command, agent_run_command): Add _ markup.
6313 (agent_capability_check): Likewise.
6315 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6317 * breakpoint.c (set_condition_evaluation_mode): Set
6318 CONDITION_EVALUATION_MODE unconditionally.
6320 2012-03-03 Yao Qi <yao@codesourcery.com>
6322 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6323 * common/agent.h: Update declaration.
6324 * inf-child.c (inf_child_use_agent): New.
6325 (inf_child_can_use_agent): New.
6326 (inf_child_target): Initialize fields `to_use_agent'
6327 and `to_can_use_agent'.
6328 * agent.c (agent_new_objfile): New.
6329 (_initialize_agent): Add agent_new_objfile to new_objfile
6332 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6334 (linux_target_install_ops): Initialize field
6335 `to_static_tracepoint_markers_by_strid'.
6336 * remote.c (free_current_marker): Move it to ...
6337 * tracepoint.c (free_current_marker): ... here. New.
6338 (cleanup_target_stop): New.
6339 * tracepoint.h: Declare free_current_marker.
6340 * NEWS: Add one entry about `info static-tracepoint-marker'.
6342 2012-03-03 Yao Qi <yao@codesourcery.com>
6344 * common/agent.c (agent_loaded_p): New.
6345 (agent_look_up_symbols): New global.
6346 * common/agent.h: Declare agent_loaded_p.
6348 2012-03-03 Yao Qi <yao@codesourcery.com>
6350 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6351 (agent_capability_check, agent_capability_invalidate): New.
6352 (symbol_list): New array element.
6353 * common/agent.h (enum agent_capa): New.
6354 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6356 2012-03-03 Yao Qi <yao@codesourcery.com>
6358 * target.h (struct target_ops) <to_use_agent>: New field.
6359 (struct target_ops) <to_can_use_agent>: New field.
6360 (target_use_agent, target_can_use_agent): New macro.
6361 * target.c (update_current_target): Update.
6362 * remote.c: New enum `PACKET_QAgent'.
6363 (remote_protocol_features): Add a new element.
6364 (remote_use_agent, remote_can_use_agent): New.
6365 (init_remote_ops): Initialize field `can_use_agent' with
6366 remote_can_use_agent. Intiailize field `use_agent' with
6368 * common/agent.c (use_agent): New global.
6369 * common/agent.h: Declare it.
6370 * tracepoint.c (info_static_tracepoint_markers_command): Add
6372 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6373 (COMMON_OBS): Add common/agent.o and agent.o
6374 (common-agent.o): New rule.
6377 2012-03-03 Yao Qi <yao@codesourcery.com>
6379 * common/agent.c: New.
6380 * common/agent.h: New.
6381 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6383 * configure, configh.in: Regenerated.
6385 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6387 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6388 unless it exists for this architecture.
6390 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6392 * language.h (struct language_defn): New "method" la_read_var_value.
6393 * findvar.c: #include "language.h".
6394 (default_read_var_value): Renames read_var_value. Rewrite
6395 function description.
6396 (read_var_value): New function.
6397 * value.h (default_read_var_value): Add prototype.
6398 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6400 (ada_language_defn): Add entry for la_read_var_value.
6401 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6402 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6403 language_defn structures to add entry for new la_read_var_value
6406 2012-03-02 Tom Tromey <tromey@redhat.com>
6407 Pedro Alves <palves@redhat.com>
6409 PR breakpoints/13776:
6410 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6412 (delete_longjmp_breakpoint_at_next_stop): New.
6413 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6414 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6415 before deleting the inferior. Add comments.
6416 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6417 breakpoints immediately, but only on next stop. Move that code
6418 next to where we mark other breakpoints for deletion.
6420 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6422 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6424 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6427 2012-03-02 Pedro Alves <palves@redhat.com>
6429 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6431 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6433 Fix -Wmissing-prototypes build.
6434 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6435 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6436 (gdbsim_has_memory): Likewise.
6438 2012-03-02 Yao Qi <yao@codesourcery.com>
6440 Fix -Wmissing-prototypes build.
6441 * charset.c (phony_iconv_open): Make static.
6442 (phony_iconv_close, phony_iconv): Likewise.
6443 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6444 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6446 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6447 * ser-mingw.c (create_select_thread): Make static.
6448 * windows-termcap.c (tgetent): New prototype.
6449 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6451 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6453 Fix -Wmissing-prototypes build.
6454 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6455 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6456 (_initialize_loadable): New prototypes.
6458 2012-03-02 Doug Evans <dje@google.com>
6460 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6461 abbrev table, read_comp_unit will do it.
6463 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6465 Fix -Wmissing-prototypes build.
6466 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6467 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6468 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6469 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6470 (_initialize_arm_symbian_tdep): New prototype.
6471 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6472 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6473 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6475 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6476 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6478 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6479 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6480 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6482 * moxie-tdep.c (moxie_process_record): Likewise.
6483 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6484 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6485 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6486 (_initialize_rl78_tdep): New prototype.
6487 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6488 (_initialize_rx_tdep): New prototype.
6489 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6490 (_initialize_darwin_solib): New prototype.
6491 * solib-spu.c: Include solib-spu.h.
6492 (_initialize_spu_solib): New prototype.
6493 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6494 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6495 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6496 (tic6x_software_single_step): Make it static.
6497 (_initialize_tic6x_tdep): New prototype.
6499 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6501 Fix -Wmissing-prototypes build.
6502 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6503 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6505 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6507 Fix -Wmissing-prototypes build.
6508 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6509 (frv_have_stopped_data_address): Remove.
6511 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6513 Fix -Wmissing-prototypes build.
6514 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6515 * sh-tdep.c: Include sh64-tdep.h.
6516 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6517 * sh64-tdep.c: Include sh64-tdep.h.
6518 * sh64-tdep.h: New file.
6520 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6522 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6524 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6526 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6527 sp_regnum once the gdbarch_init_osabi hook has been called.
6529 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6531 * mips-tdep.c (mips32_bc1_pc): New function.
6532 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6533 BPOSGE32 and BPOSGE64 instructions.
6534 (deal_with_atomic_sequence): Likewise.
6535 (mips32_instruction_has_delay_slot): Likewise.
6537 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6538 Chris Dearman <chris@mips.com>
6539 Maciej W. Rozycki <macro@codesourcery.com>
6540 Joseph Myers <joseph@codesourcery.com>
6542 * features/mips-dsp.xml: New file.
6543 * features/mips64-dsp.xml: New file.
6544 * features/mips-dsp-linux.xml: New file.
6545 * features/mips64-dsp-linux.xml: New file.
6546 * features/Makefile (WHICH): Add mips-dsp-linux and
6548 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6549 * features/mips-dsp-linux.c: New file.
6550 * features/mips64-dsp-linux.c: New file.
6551 * regformats/mips-dsp-linux.dat: New file.
6552 * regformats/mips64-dsp-linux.dat: New file.
6553 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6555 (mips64_linux_register_addr): Likewise.
6556 (mips64_linux_regsets_fetch_registers): Likewise.
6557 (mips64_linux_regsets_store_registers): Likewise.
6558 (mips64_linux_fetch_registers): Update call to
6559 mips64_linux_regsets_fetch_registers.
6560 (mips64_linux_store_registers): Update call to
6561 mips64_linux_regsets_store_registers.
6562 (mips_linux_read_description): Probe for DSP registers.
6563 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6564 and initialize_tdesc_mips64_dsp_linux.
6565 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6566 Remove padding of no longer used embedded register slots.
6567 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6568 (MIPS_RESTART_REGNUM): Redefine enum value.
6569 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6571 (mips_tx39_reg_names): Likewise.
6572 (mips_linux_reg_names): New array of register names for Linux
6574 (mips_register_name): Check for a null pointer in
6575 mips_processor_reg_names and return an empty string.
6576 (mips_register_type): Exclude embedded registers for the IRIX
6578 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6579 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6581 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6582 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6583 (mips_gdbarch_init): Likewise. Initialize internal register
6584 indices for the Linux ABI. Use dynamic numbers to refer to
6585 registers, as applicable, while parsing the target description.
6586 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6588 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6590 * frame.h (read_frame_register_unsigned): Fix typo in function
6593 2012-03-01 Pedro Alves <palves@redhat.com>
6595 * jit-reader.in [!__cplusplus]
6596 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6598 2012-03-01 Pedro Alves <palves@redhat.com>
6600 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6601 * configure: Regenerate.
6603 2012-03-01 Pedro Alves <palves@redhat.com>
6605 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6606 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6607 (ftrace_command, strace_command): Make static.
6608 * d-lang.c (_initialize_d_language): Declare.
6609 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6610 * dwarf2loc.c (_initialize_dwarf2loc):
6611 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6612 * exec.c (exec_get_section_table): Make static.
6613 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6614 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6615 * inferior.c (remove_inferior_command, add_inferior_command)
6616 (clone_inferior_command): Make static.
6617 * linux-nat.c (linux_nat_thread_address_space)
6618 (linux_nat_core_of_thread): Make static.
6619 * linux-tdep.c (_initialize_linux_tdep): Declare.
6620 * objc-lang.c (_initialize_objc_lang): Declare.
6621 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6623 (_initialize_opencl_language): Declare.
6624 * record.c (_initialize_record): Declare.
6625 * remote.c (demand_private_info, remote_get_tib_address)
6626 (remote_supports_cond_tracepoints)
6627 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6629 * skip.c (_initialize_step_skip): Declare.
6630 * symtab.c (skip_prologue_using_lineinfo): Make static.
6631 * tracepoint.c (delete_trace_state_variable)
6632 (trace_variable_command, delete_trace_variable_command)
6633 (get_uploaded_tsv, find_matching_tracepoint_location)
6634 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6636 * value.c (pack_unsigned_long): Make static.
6637 * varobj.c (varobj_ensure_python_env): Make static.
6638 * windows-tdep.c (_initialize_windows_tdep): Declare.
6639 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6641 2012-03-01 Pedro Alves <palves@redhat.com>
6643 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6645 (linux_init_abi): Install it as has_shared_address_space gdbarch
6648 2012-03-01 Pedro Alves <palves@redhat.com>
6650 * observer.c (observer_test_first_notification_function)
6651 (observer_test_second_notification_function)
6652 (observer_test_third_notification_function): Add declarations.
6654 2012-03-01 Pedro Alves <palves@redhat.com>
6656 * common/signals.c (default_target_signal_to_host)
6657 (default_target_signal_from_host): Move ...
6658 * arch-utils.c: ... here.
6659 * arch-utils.h (default_target_signal_to_host)
6660 (default_target_signal_from_host): Declare.
6662 * common/signals.c (target_signal_from_command): Move ...
6663 * infrun.c: ... here.
6664 * inferior.h (target_signal_from_command): Declare.
6665 * target.h (target_signal_from_command)
6666 (default_target_signal_from_host, default_target_signal_to_host):
6667 Delete declarations.
6669 * common/signals.c (_initialize_signals): Delete.
6671 2012-03-01 Pedro Alves <palves@redhat.com>
6673 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6674 both __cplusplus and !__cplusplus.
6676 2012-03-01 Pedro Alves <palves@redhat.com>
6678 * psymtab.c (find_and_open_source): Delete declaration.
6679 * source.c (find_and_open_source): Move comment ...
6680 * source.h (find_and_open_source): ... to this new declaration.
6682 2012-03-01 Pedro Alves <palves@redhat.com>
6684 * inline-frame.c: Include inline-frame.h.
6686 2012-03-01 Pedro Alves <palves@redhat.com>
6688 * tui/tui-data.c (set_gen_win_origin): Delete.
6689 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6690 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6692 2012-03-01 Pedro Alves <palves@redhat.com>
6694 * remote.c (encode_actions): Delete declaration.
6695 * tracepoint.c (encode_actions): Make extern.
6696 * tracepoint.h (encode_actions): Declare.
6698 2012-03-01 Pedro Alves <palves@redhat.com>
6700 * python/py-breakpoint.c: Include python.h.
6701 * python/py-continueevent.c (create_continue_event_object): Make
6703 * python/py-lazy-string.c (stpy_get_type): Make static.
6704 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6706 * python/py-utils.c (unicode_to_target_python_string): Make
6708 * python/py-value.c: Include python.h.
6710 2012-03-01 Pedro Alves <palves@redhat.com>
6712 * inferior.c (delete_threads_of_inferior): Delete.
6714 2012-03-01 Pedro Alves <palves@redhat.com>
6716 Import fallback definitions from glibc.
6718 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6719 ps_prochandle): Forward declare.
6720 (ps_err_e): Use glibc's comments.
6721 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6722 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6723 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6724 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6725 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6726 (struct ps_prochandle): Adjust comment.
6728 2012-03-01 Pedro Alves <palves@redhat.com>
6730 * ada-lang.c (ada_modulus_from_name): Delete.
6731 * ada-lex.l (lexer_init): Make static.
6733 2012-03-01 Pedro Alves <palves@redhat.com>
6737 * frame.c (read_frame_register_unsigned): New.
6738 * frame.h (read_frame_register_unsigned): Declare.
6739 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6741 (print_i387_control_word): New parameter `control_p'. Handle it.
6742 (i387_print_float_info): Handle unavailable float registers.
6744 2012-03-01 Keith Seitz <keiths@redhat.com>
6746 * linespec.c (decode_line_2): Sort the list of methods
6747 alphabetically before presenting the user with a selection
6750 2012-03-01 Doug Evans <dje@google.com>
6752 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6754 (dwarf2_read_abbrevs): Remove corresponding initialization.
6756 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
6758 * NEWS: Mention new python command class gdb.COMMAND_USER.
6759 * cli/cli-cmds.c (show_user): Print error when used on a python
6761 (init_cli_cmds): Update documentation strings for "show user" and
6762 "set/show max-user-call-depth" to clarify that it does not apply to
6764 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6766 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6768 * top.c (execute_command): Only execute a user-defined command as a
6769 legacy macro if c->user_commands is set.
6771 2012-03-01 Tom Tromey <tromey@redhat.com>
6773 * valprint.h (struct generic_val_print_decorations): New.
6774 (generic_val_print): Declare.
6775 * valprint.c (generic_val_print): New function.
6776 * p-valprint.c (p_decorations): New global.
6777 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6778 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6779 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6780 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6781 * m2-valprint.c (m2_decorations): New global.
6782 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6783 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6784 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6785 TYPE_CODE_ERROR>: Call generic_val_print.
6786 * f-valprint.c (f_decorations): New global.
6787 (f_val_print): Use print_function_pointer_address.
6788 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6789 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6790 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6792 * c-valprint.c (c_decorations): New global.
6793 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6794 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6795 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6796 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6797 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6798 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6801 2012-03-01 Tom Tromey <tromey@redhat.com>
6803 * valprint.c (val_print): Update.
6804 * p-valprint (pascal_val_print): Return void.
6805 * p-lang.h (pascal_val_print): Return void.
6806 * m2-valprint.c (m2_val_print): Return void.
6807 * m2-lang.h (m2_val_print): Return void.
6808 * language.h (struct language_defn) <la_val_print>: Return void.
6809 * language.c (unk_lang_val_print): Return void.
6810 * jv-valprint.c (java_val_print): Return void.
6811 * jv-lang.h (java_val_print): Return void.
6812 * f-valprint.c (f_val_print): Return void.
6813 * f-lang.h (f_val_print): Return void.
6814 * d-valprint.c (d_val_print): Return void.
6815 (dynamic_array_type): Update.
6816 * d-lang.h (d_val_print): Return void.
6817 * c-valprint.c (c_val_print): Return void.
6818 * c-lang.h (c_val_print): Return void.
6819 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6821 * ada-lang.h (ada_val_print): Return void.
6823 2012-03-01 Tom Tromey <tromey@redhat.com>
6825 * value.h (val_print): Return void.
6826 * valprint.c (val_print): Return void.
6828 2012-03-01 Tom Tromey <tromey@redhat.com>
6830 * value.h (common_val_print): Return void.
6831 * valprint.c (common_val_print): Return void.
6833 2012-03-01 Tom Tromey <tromey@redhat.com>
6835 * value.h (value_print): Return void.
6836 * valprint.c (value_print): Return void.
6837 * p-valprint.c (pascal_value_print): Return void.
6838 * p-lang.h (pascal_value_print): Return void.
6839 * language.h (struct language_defn) <la_value_print>: Return
6841 * language.c (unk_lang_value_print): Return void.
6842 * jv-valprint.c (java_value_print): Return void.
6843 * jv-lang.h (java_value_print): Return void.
6844 * f-valprint.c (c_value_print): Don't declare.
6846 * c-valprint.c (c_value_print): Return void.
6847 * c-lang.h (c_value_print): Return void.
6848 * ada-valprint.c (ada_value_print): Return void.
6849 * ada-lang.h (ada_value_print): Return void.
6851 2012-03-01 Tom Tromey <tromey@redhat.com>
6853 * value.c (value_primitive_field): Handle virtual base classes.
6855 2012-03-01 Tom Tromey <tromey@redhat.com>
6857 * gdbtypes.h (struct vbase): Remove.
6859 2012-03-01 Tom Tromey <tromey@redhat.com>
6861 * c-valprint.c (print_function_pointer_address): Move...
6862 * valprint.c: ... here. Make non-static.
6863 * m2-valprint.c (print_function_pointer_address): Remove.
6864 * valprint.h (print_function_pointer_address): Declare.
6866 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6868 * NEWS: Document the fact that one can provide a condition when
6869 creating an Ada exception catchpoint.
6871 2012-03-01 Tom Tromey <tromey@redhat.com>
6873 * valprint.c (val_print_type_code_flags): Fix placement of
6876 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6878 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6879 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6880 environment variable before calling update-copyright.
6882 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6884 * gnulib/extra/update-copyright: Update to the latest from
6885 gnulib's git repository.
6886 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6887 variable to 2 instead of 1.
6889 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6891 * varobj.c (c_value_of_variable): Remove dead code.
6893 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6895 * ada-lex.p (processId): Do not modify already encoded IDs.
6896 Update function documentation.
6898 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6900 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6901 "name" with "struct symbol *name_sym".
6902 * ada-exp.y (write_var_or_type): Update call to
6903 ada_find_renaming_symbol.
6904 "name" with "struct symbol *name_sym". Adjust Implementation
6905 accordingly. Adjust the function documentation.
6907 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6909 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6910 * ada-lang.c (ada_find_any_type): Add advance declaration.
6911 Make static. Replace ada_find_any_symbol by
6912 ada_find_any_type_symbol.
6913 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
6914 Improve function description. Make static.
6915 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
6916 Replace ada_find_any_symbol by ada_find_any_type_symbol.
6918 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6920 * ada-lang.c (struct tag_args): Delete.
6921 (ada_get_tsd_type): Function body moved up in source file.
6922 (ada_tag_name_1, ada_tag_name_2): Delete.
6923 (ada_get_tsd_from_tag): New function.
6924 (ada_tag_name_from_tsd): New function.
6925 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
6926 to determine the tag name.
6928 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6930 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
6932 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
6935 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6937 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
6939 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6941 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
6944 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6946 * ada-lang.c (constrained_packed_array_type): If there is a
6947 parallel XA type, use it to determine the array index type.
6949 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6951 * ada-valprint.c (ada_val_print_1): If our value is a reference
6952 to an array descriptor, dereference it before converting it
6955 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6957 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
6958 creating fixed value.
6959 (ada_value_ind, ada_coerce_ref, assign_component)
6960 (ada_evaluate_subexp): Remove call to unwrap_value before
6961 call to ada_to_fixed_value.
6963 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6965 * ada-lang.c (to_fixed_array_type): Set result's type name.
6967 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6969 * ada-lang.c (catch_ada_exception_command_split): Add new
6970 argument cond_string. Add support for condition at end of
6971 "catch exception" commands.
6972 (ada_decode_exception_location): Add new argument cond_string.
6973 Update call to catch_ada_exception_command_split.
6974 (create_ada_exception_catchpoint): Add new argument cond_string.
6975 Set the breakpoint condition if needed.
6976 (catch_ada_exception_command): Update call to
6977 ada_decode_exception_location.
6978 (ada_decode_assert_location): Add function documentation.
6979 Add support for condition at end of "catch assert" command.
6980 (catch_assert_command): Update calls to ada_decode_assert_location
6981 and create_ada_exception_catchpoint.
6983 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6985 Fix disp-step-syscall.exp: fork: single step over fork.
6986 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
6987 (i386_linux_get_syscall_number_from_regcache): ... here, new function
6988 comment, change parameters gdbarch and ptid to regcache. Remove
6989 parameter regcache, initialize gdbarch from regcache here.
6990 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
6992 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
6994 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
6995 'syscall'. Make the 'int' check more strict.
6997 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6999 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
7000 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
7001 (i386_linux_intx80_sysenter_syscall_record): ... here.
7002 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
7003 Use the renamed function name.
7005 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7007 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
7008 * breakpoint.c (until_break_command): Likewise.
7009 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
7010 * infcall.c (call_function_by_hand): Likewise.
7011 * infcmd.c (finish_forward): Likewise.
7012 * infrun.c (insert_exception_resume_breakpoint): Likewise.
7014 2012-02-28 Tristan Gingold <gingold@adacore.com>
7016 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
7017 avoid variable assignments inside condition.
7019 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7021 Fix static analysis issue found by cppcheck.
7022 * microblaze-tdep.c (microblaze_extract_return_value): Fix
7023 uninitialized BUF for size 2.
7025 2012-02-27 Chris Dearman <chris@mips.com>
7026 Nathan Froyd <froydnj@codesourcery.com>
7027 Maciej W. Rozycki <macro@codesourcery.com>
7029 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
7030 (mips16_instruction_has_delay_slot): Likewise.
7031 (mips_segment_boundary): Likewise.
7032 (mips_adjust_breakpoint_address): Likewise.
7033 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
7035 2012-02-27 Maciej W. Rozycki <macro@mips.com>
7036 Maciej W. Rozycki <macro@codesourcery.com>
7038 * infrun.c (handle_inferior_event): Don't proceed through
7039 shared library trampolines if stepping at the machine
7042 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
7044 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
7047 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
7049 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
7050 (sh_stub_unwind_sniffer): New functions.
7051 (sh_stub_unwind): New variable.
7052 (sh_gdbarch_init): Wire everything.
7054 2012-02-27 Pedro Alves <palves@redhat.com>
7056 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
7057 (linux_nat_post_attach_wait): Adjust to use
7058 linux_proc_pid_is_stopped.
7059 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
7060 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
7061 based on pid_is_stopped from both linux-nat.c and
7062 gdbserver/linux-low.c, and renamed.
7064 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7066 * remote.c (remote_watchpoint_addr_within_range): New function.
7067 (init_remote_ops): Use it.
7069 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7071 * target.h (target_watchpoint_addr_within_range): Document macro.
7073 2012-02-24 Pedro Alves <palves@redhat.com>
7075 * stack.c (set_last_displayed_sal): Issue internal_error instead
7076 of warning, and issue it after clearing the last displayed sal.
7078 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7079 Pedro Alves <palves@redhat.com>
7081 * breakpoint.c (until_break_command): Install breakpoints after
7082 all frame manipulations.
7084 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7086 * remote.c (remote_supports_cond_breakpoints): New forward
7088 (remote_add_target_side_condition): New function.
7089 (remote_insert_breakpoint): Add target-side breakpoint
7090 conditional if supported.
7091 (remote_insert_hw_breakpoint): Likewise.
7092 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7095 * target.c (update_current_target): Inherit
7096 to_supports_evaluation_of_breakpoint_conditions.
7097 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7099 * target.h (struct target_ops)
7100 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7101 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7103 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7104 (condition_evaluation_both, condition_evaluation_auto,
7105 condition_evaluation_host, condition_evaluation_target,
7106 condition_evaluation_enums, condition_evaluation_mode_1,
7107 condition_evaluation_mode): New static globals.
7108 (translate_condition_evaluation_mode): New function.
7109 (breakpoint_condition_evaluation_mode): New function.
7110 (gdb_evaluates_breakpoint_condition_p): New function.
7111 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7112 (mark_breakpoint_modified): New function.
7113 (mark_breakpoint_location_modified): New function.
7114 (set_condition_evaluation_mode): New function.
7115 (show_condition_evaluation_mode): New function.
7116 (bp_location_compare_addrs): New function.
7117 (get_first_location_gte_addr): New helper function.
7118 (set_breakpoint_condition): Free condition bytecode if locations
7119 has become unconditional. Call mark_breakpoint_modified (...).
7120 (condition_command): Call update_global_location_list (1) for
7122 (breakpoint_xfer_memory): Use is_breakpoint (...).
7123 (is_breakpoint): New function.
7124 (parse_cond_to_aexpr): New function.
7125 (build_target_condition_list): New function.
7126 (insert_bp_location): Handle target-side conditional
7127 breakpoints and call build_target_condition_list (...).
7128 (update_inserted_breakpoint_locations): New function.
7129 (insert_breakpoint_locations): Handle target-side conditional
7131 (bpstat_check_breakpoint_conditions): Add comment.
7132 (bp_condition_evaluator): New function.
7133 (bp_location_condition_evaluator): New function.
7134 (print_breakpoint_location): Print information on where the condition
7136 (print_one_breakpoint_location): Likewise.
7137 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7138 breakpoint location.
7139 (force_breakpoint_reinsertion): New functions.
7140 (update_global_location_list): Handle target-side breakpoint
7142 Reinsert locations that are already inserted if conditions have
7144 (bp_location_dtor): Free agent expression bytecode.
7145 (disable_breakpoint): Call mark_breakpoint_modified (...).
7146 Call update_global_location_list (...) with parameter 1 for breakpoints.
7147 (disable_command): Call mark_breakpoint_location_modified (...).
7148 Call update_global_location_list (...) with parameter 1 for breakpoints.
7149 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7150 (enable_command): mark_breakpoint_location_modified (...).
7151 (_initialize_breakpoint): Update documentation and add
7152 condition-evaluation breakpoint subcommand.
7154 * breakpoint.h: Include ax.h.
7155 (condition_list): New data structure.
7156 (condition_status): New enum.
7157 (bp_target_info) <cond_list>: New field.
7158 (bp_location) <condition_changed, cond_bytecode>: New fields.
7159 (is_breakpoint): New prototype.
7161 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7163 * remote.c (remote_state) <cond_breakpoints>: New field.
7164 (PACKET_ConditionalBreakpoints): New enum.
7165 (remote_cond_breakpoint_feature): New function.
7166 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7167 (remote_supports_cond_breakpoints): New function.
7168 (_initialize_remote): Add new packet configuration for
7169 target-side conditional breakpoints.
7171 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7173 * NEWS: Mention target-side conditional breakpoint support,
7174 new condition-evaluation breakpoint subcommand and remote
7177 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7179 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7182 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7184 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7185 (after_prologue): Remove.
7187 2012-02-23 Tom Tromey <tromey@redhat.com>
7189 * jv-valprint.c (java_val_print): Remove dead code.
7191 2012-02-23 Tristan Gingold <gingold@adacore.com>
7193 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7194 known_tasks_element and known_tasks_length fields.
7195 (read_known_tasks_array): Change argument type. Use pointer type
7196 and number of elements from DATA. Adjust.
7197 (read_known_tasks_list): Likewise.
7198 (get_known_tasks_addr): Remove.
7199 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7200 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7201 type and array length. Merge former get_known_tasks_addr code.
7203 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7206 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7207 it after set_momentary_breakpoint.
7209 2012-02-22 Sterling Augustine <saugustine@google.com>
7212 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7214 2012-02-22 Gary Benson <gbenson@redhat.com>
7216 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7217 (find_slot_in_mapped_hash): Likewise.
7219 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7222 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7223 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7224 * configure: Regenerate.
7226 2012-02-21 Tristan Gingold <gingold@adacore.com>
7227 Pedro Alves <palves@redhat.com>
7229 * ia64-tdep.c: Do not include libunwind-ia64.h.
7230 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7231 Include libunwind-ia64.h instead of libunwind.h.
7232 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7233 for libunwind.h existence.
7234 * configure, config.in: Regenerate.
7236 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7238 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7239 instead of value_rtti_target_type.
7240 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7241 instead of value_rtti_target_type.
7242 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7243 value_rtti_target_type.
7244 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7245 (value_rtti_target_type): Rename to ...
7246 (value_rtti_indirect_type): ... here and make it indirect. Update
7248 * value.c (readjust_indirect_value_type): New function.
7249 (coerce_ref): Support for enclosing type setting for references
7250 with readjust_indirect_value_type.
7251 * value.h (readjust_value_type): New declaration.
7252 (value_rtti_target_type): Rename to ...
7253 (value_rtti_indirect_type): ... here.
7255 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7257 * MAINTAINERS (Write After Approval): Add myself to the list.
7259 2012-02-20 Doug Evans <dje@google.com>
7261 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7262 Rename objfile_p_char parameter to objfilep.
7263 (build_objfile_section_table): Result is now void. All callers
7265 * objfiles.h (struct objfile): Tweak comments, whitespace.
7266 (build_objfile_section_table): Update.
7268 * elfread.c (elf_symfile_segments): Fix warning text.
7270 2012-02-20 Tom Tromey <tromey@redhat.com>
7273 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7274 particular set of file names once.
7275 (dw2_map_symbol_filenames): Likewise.
7277 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7280 * main.c (write_files): Remove the declaration.
7281 (external_editor_command): Move the declaration ...
7282 [GDBTK] (external_editor_command): ... here. Fix the comment.
7284 2012-02-20 Tom Tromey <tromey@redhat.com>
7286 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7289 2012-02-20 Tristan Gingold <gingold@adacore.com>
7291 * darwin-nat.h (enum darwin_msg_state): Add comments.
7293 2012-02-20 Tristan Gingold <gingold@adacore.com>
7295 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7298 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7300 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7301 between function description and implementation.
7303 2012-02-17 Tom Tromey <tromey@redhat.com>
7306 * python/py-event.c (event_object_getset): New global.
7307 (event_object_type): Reference it.
7308 * python/py-type.c (field_object_getset): New global.
7309 (field_object_type): Reference it.
7310 * python/python-internal.h (gdb_py_generic_dict): Declare.
7311 * python/py-utils.c (gdb_py_generic_dict): New function.
7313 2012-02-17 Tristan Gingold <gingold@adacore.com>
7315 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7317 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7319 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7320 TYPE_CALLING_CONVENTION annotation.
7322 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7324 * MAINTAINERS: Add rx to target ISA section.
7325 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7326 (ALLDEPFILES): Add rx-tdep.c.
7328 2012-02-16 Tom Tromey <tromey@redhat.com>
7330 * symfile.c (symbol_file_add_main_1): Use inferior's
7332 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7333 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7335 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7337 (follow_exec): Use inferior's symfile_flags.
7338 * inferior.h (struct inferior) <symfile_flags>: New field.
7340 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7343 * remote-sim.c (gdbsim_create_inferior): Call error() when
7344 sim_create_inferior() fails.
7346 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7348 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7350 2012-02-16 Tom Tromey <tromey@redhat.com>
7353 * thread.c (struct current_thread_cleanup) <was_removable>: New
7355 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7356 (make_cleanup_restore_current_thread): Initialize new field.
7358 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7360 * MAINTAINERS: Add rl78 to target ISA section.
7361 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7362 (ALLDEPFILES): Add rl78-tdep.c.
7363 * NEWS: Mention rl78 as a new target.
7365 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7367 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7369 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7371 2012-02-15 Tom Tromey <tromey@redhat.com>
7374 * infcmd.c (registers_info): Print just the current register's
7377 2012-02-15 Tom Tromey <tromey@redhat.com>
7379 * python/py-symbol.c (sympy_value): Use _().
7381 2012-02-15 Pedro Alves <palves@redhat.com>
7383 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7384 output to be like native targets'.
7385 (remote_pid_to_str): Special case the null ptid.
7387 2012-02-14 Stan Shebs <stan@codesourcery.com>
7389 * NEWS: Mention enable count command.
7390 * breakpoint.h (struct breakpoint): New field enable_count.
7391 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7392 (enable_breakpoint): Add arg to call.
7393 (struct disp_data): New struct.
7394 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7395 (do_map_enable_once_breakpoint): Create a struct and pass it.
7396 (do_map_enable_delete_breakpoint): Ditto.
7397 (do_map_enable_count_breakpoint): New function.
7398 (enable_count_command): New function.
7399 (bpstat_stop_status): Decrement enable_count.
7400 (print_one_breakpoint_location): Report enable count.
7401 (_initialize_breakpoint): Add enable count command.
7403 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7405 * rl78-tdep.c (reggroups.h): Include.
7406 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7407 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7408 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7409 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7410 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7411 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7412 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7413 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7414 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7415 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7416 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7417 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7418 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7419 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7420 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7421 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7422 beginning of register list.
7423 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7424 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7425 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7426 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7427 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7428 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7429 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7430 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7431 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7432 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7433 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7434 the pseudo registers. Rearrange other pseudo registers too so
7435 that the bank registers appear at the end.
7436 (rl78_register_type): Account for the fact that the byte sized
7437 bank registers are now pseudo-registers.
7438 (rl78_register_name): Rearrange the register name array. Make
7439 initial set of raw banked registers inaccessible.
7440 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7441 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7442 case for copying bytes back and forth between raw and pseudo
7443 versions of the banked registers. Update other cases to reflect
7445 (rl78_return_value): Update to account for changed names of
7447 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7448 rl78_register_sim_regno().
7450 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7452 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7453 the name parameter being passed to find_pc_partial_function().
7455 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7457 * MAINTAINERS: Step down from being ia64 target maintainer.
7459 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7461 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7462 compilation warning.
7464 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7466 Fix crash on loaded shlibs without loaded exec_bfd.
7467 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7468 (set_section_command): Replace exec_bfd by p->bfd.
7470 2012-02-10 Tom Tromey <tromey@redhat.com>
7472 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7473 when we have a C++ qualified name.
7475 2012-02-10 Pedro Alves <palves@redhat.com>
7477 * inferior.c (inferior_pid_to_str): New.
7478 (print_inferior, inferior_command): Use it.
7480 2012-02-10 Pedro Alves <palves@redhat.com>
7482 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7484 * configure: Regenerate.
7486 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7488 * linespec.c (decode_line_internal): Fix comment correctness.
7490 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7493 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7494 * amd64bsd-nat.c: Add support for debug registers (adapted from
7496 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7497 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7498 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7499 (amd64bsd_dr_get_control): New functions.
7500 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7501 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7502 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7503 watchpoints initialization.
7504 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7506 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7508 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7510 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7512 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7514 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7516 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7518 * language.h (symbol_name_cmp_ftype): Renames
7519 symbol_name_match_p_ftype.
7520 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7521 la_get_symbol_name_match_p.
7522 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7523 ada_get_symbol_name_match_p. Update comment.
7524 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7525 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7526 Renames symbol_name_match_p. Update field type.
7527 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7528 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7529 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7530 "la_get_symbol_name_cmp" in comments.
7531 * language.c: Likewise.
7533 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7535 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7537 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7538 (amd64_sol2_gregset32_reg_offs): Likewise.
7540 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7542 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7543 of the returned BFD is allocated by GDB.
7545 2012-02-07 Tom Tromey <tromey@redhat.com>
7548 * python/python-internal.h (frame_object_type): Declare.
7549 * python/py-symbol.c (sympy_needs_frame): New function.
7550 (sympy_value): New function.
7551 (symbol_object_getset): Add "needs_frame".
7552 (symbol_object_methods): Add "value".
7553 * python/py-frame.c (frame_object_type): No longer static.
7555 2012-02-07 Tom Tromey <tromey@redhat.com>
7558 * python/py-symbol.c (sympy_line): New function.
7559 (symbol_object_getset): Add "line".
7561 2012-02-07 Tom Tromey <tromey@redhat.com>
7563 * charset.c (find_charset_names): Check 'in' against NULL.
7565 2012-02-06 Doug Evans <dje@google.com>
7567 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7568 and fields.name members from char * to const char *. All uses updated.
7569 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7570 from char * to const char *. All uses updated.
7571 (type_name_no_tag): Update.
7572 (lookup_unsigned_typename, lookup_signed_typename): Update.
7573 * gdbtypes.c (type_name_no_tag): Change result type
7574 from char * to const char *. All callers updated.
7575 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7576 name parameter from char * to const char *.
7577 * symtab.h (struct cplus_specific): Change type of demangled_name
7578 member from char * to const char *. All uses updated.
7579 (struct general_symbol_info): Change type of name and
7580 mangled_lang.demangled_name members from char * to const char *.
7582 (symbol_get_demangled_name, symbol_natural_name): Update.
7583 (symbol_demangled_name, symbol_search_name): Update.
7584 * symtab.c (symbol_get_demangled_name): Change result type
7585 from char * to const char *. All callers updated.
7586 (symbol_natural_name, symbol_demangled_name): Ditto.
7587 (symbol_search_name): Ditto.
7588 (completion_list_add_name): Change type of symname,sym_text,
7589 text,word parameters from char * to const char *.
7590 (completion_list_objc_symbol): Change type of sym_text,
7591 text,word parameters from char * to const char *.
7592 * ada-lang.c (find_struct_field): Change type of name parameter
7593 from char * to const char *.
7594 (encoded_ordered_before): Similarly for N0,N1 parameters.
7595 (old_renaming_is_invisible): Similarly for function_name parameter.
7596 (ada_type_name): Change result type from char * to const char *.
7597 All callers updated.
7598 * ada-lang.h (ada_type_name): Update.
7599 * buildsym.c (hashname): Change type of name parameter
7600 from char * to const char *.
7601 * buildsym.h (hashname): Update.
7602 * dbxread.c (end_psymtab): Change type of include_list parameter
7603 from char ** to const char **.
7604 * dwarf2read.c (determine_prefix): Change result type
7605 from char * to const char *. All callers updated.
7606 * f-lang.c (find_common_for_function): Change type of name, funcname
7607 parameters from char * to const char *.
7608 * f-lang.c (find_common_for_function): Update.
7609 * f-valprint.c (list_all_visible_commons): Change type of funcname
7610 parameters from char * to const char *.
7611 * gdbarch.sh (static_transform_name): Change type of name parameter
7612 and result from char * to const char *.
7613 * gdbarch.c: Regenerate.
7614 * gdbarch.h: Regenerate.
7615 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7616 of name parameter from char * to const char *.
7617 * jv-lang.c (java_primitive_type_from_name): Ditto.
7618 (java_demangled_signature_length): Similarly for signature parameter.
7619 (java_demangled_signature_copy): Ditto.
7620 (java_demangle_type_signature): Ditto.
7621 * jv-lang.h (java_primitive_type_from_name): Update.
7622 (java_demangle_type_signature): Update.
7623 * objc-lang.c (specialcmp): Change type of a,b parameters
7624 from char * to const char *.
7625 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7626 from char * to const char *. All callers updated.
7627 * p-lang.h (is_pascal_string_type): Update.
7628 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7629 of name parameter from char * to const char *.
7630 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7631 * utils.c (fprintf_symbol_filtered): Ditto.
7632 * defs.h (fprintf_symbol_filtered): Update.
7633 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7634 * stabsread.h (end_psymtab): Update.
7635 * stack.c (find_frame_funname): Change type of funname parameter
7636 from char ** to const char **.
7637 * stack.h (find_frame_funname): Update.
7638 * typeprint.c (type_print): Change type of varstring parameter
7639 from char * to const char *.
7640 * value.h (type_print): Update.
7641 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7642 from char * to const char *. All callers updated.
7643 (xcoff_end_psymtab): Change type of include_list parameter
7644 from char ** to const char **. All callers updated.
7645 (swap_sym): Similarly for name parameter. All callers updated.
7646 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7648 (process_coff_symbol): Use xstrdup.
7649 * stabsread.c (stabs_method_name_from_physname): Renamed from
7650 update_method_name_from_physname. Change result type from void
7651 to char *. All callers updated.
7652 (read_member_functions): In has_destructor case, store name in objfile
7653 obstack instead of malloc space. In !has_stub case, fix mem leak.
7655 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7657 * configure: Rebuild.
7658 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7661 2012-02-03 Kevin Buettner <kevinb@redhat.com>
7663 * configure.tgt (rl78-*-elf): New target.
7664 * rl78-tdep.c: New file.
7666 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7668 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7669 and continue the loop. Add QUIT statement.
7671 2012-02-03 Tom Tromey <tromey@redhat.com>
7674 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7675 bfd_lookup_symbol_from_symtab.
7676 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7677 gdb_bfd_lookup_symbol_from_symtab.
7679 2012-02-03 Joel Brobecker <brobecker@adacore.com>
7681 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7682 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7683 symbol. Add assertion that sym2 is never NULL.
7685 2012-02-02 Doug Evans <dje@google.com>
7687 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7688 "name" parameter to const char ** from char **. All callers updated.
7689 (find_pc_partial_function): Ditto.
7690 (cache_pc_function_name): Change type to const char * from char *.
7691 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7692 (find_pc_partial_function): Update.
7693 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7694 type of "name" parameter to const char * from char *.
7696 * arch-utils.c (generic_in_solib_return_trampoline): Change
7697 type of "name" parameter to const char * from char *.
7698 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7699 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7700 type of "name" parameter to const char * from char *.
7701 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7702 * gdbarch.c: Regenerate.
7703 * gdbarch.h: Regenerate.
7704 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7705 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7706 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7707 type of "name" parameter to const char * from char *.
7708 * skip.c (skip_function_pc): Ditto.
7709 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7710 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7711 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7712 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7713 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7714 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7715 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7716 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7717 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7719 2012-02-02 Pedro Alves <palves@redhat.com>
7721 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7722 the current inferior has no execution. Make sure the current
7723 remote process matches gdb's current inferior.
7725 2012-02-02 Tom Tromey <tromey@redhat.com>
7728 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7731 2012-02-02 Tom Tromey <tromey@redhat.com>
7734 * symtab.c (lookup_language_this): Set block_found.
7736 2012-02-01 Tom Tromey <tromey@redhat.com>
7739 * jit.c (struct jit_inferior_data): Rewrite.
7740 (struct jit_objfile_data): New.
7741 (get_jit_objfile_data): New function.
7742 (add_objfile_entry): Update.
7743 (jit_read_descriptor): Return int. Replace descriptor_addr
7744 argument with inf_data. Update. Don't call error.
7745 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7747 (jit_inferior_init): Don't look up descriptor. Don't call error.
7748 (jit_reset_inferior_data_and_breakpoints)
7749 (jit_inferior_created_observer): Remove.
7750 (jit_inferior_exit_hook): Update.
7751 (jit_executable_changed_observer): Remove.
7752 (jit_event_handler): Update.
7753 (free_objfile_data): Reset inferior data if needed.
7754 (_initialize_jit): Update.
7756 2012-02-01 Tom Tromey <tromey@redhat.com>
7758 * jit.c (bfd_open_from_target_memory): Move higher in file.
7760 2012-02-01 Tristan Gingold <gingold@adacore.com>
7762 * libunwind-frame.c (libunwind_load): Display message if dlopen
7765 2012-02-01 Gary Benson <gbenson@redhat.com>
7767 * symtab.h (symbol_found_callback_ftype): New typedef.
7768 (iterate_over_symbols): Use the above.
7769 * symtab.c (iterate_over_symbols): Likewise.
7770 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7771 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7772 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7773 (iterate_name_matcher): Document return values.
7774 (collect_one_symbol): Likewise.
7775 (collect_function_symbols): Likewise.
7776 (collect_symbols): Likewise.
7778 2012-02-01 Tom Tromey <tromey@redhat.com>
7780 * ada-lang.c (resolve_subexp): Update.
7781 (ada_lookup_symbol_list): Add 'full_search' argument.
7782 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7783 ada_lookup_symbol_list.
7784 (ada_lookup_encoded_symbol): Update.
7785 (get_var_value): Update.
7786 * ada-exp.y (block_lookup): Update.
7787 (write_var_or_type): Update.
7788 (write_name_assoc): Update.
7789 * ada-lang.h (ada_lookup_symbol_list): Update.
7791 2012-01-31 Tom Tromey <tromey@redhat.com>
7793 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7796 2012-01-31 Doug Evans <dje@google.com>
7798 * symtab.h: Remove outdated comment.
7799 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7801 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
7803 Fix build error in Darwin port.
7804 * i386-darwin-nat.c: Include i386-nat.h.
7806 2012-01-30 Tom Tromey <tromey@redhat.com>
7808 PR breakpoints/13568:
7809 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7810 argument. Check for recursive includes.
7811 (dwarf_decode_macros): Create an include hash.
7813 2012-01-30 Michael Eager <eager@eagercon.com>
7815 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7816 * ppc-linux-tdep.c: Include glibc-tdep.h.
7817 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7818 (powerpc_linux_in_plt_stub): New function.
7819 (powerpc_linux_in_dynsym_resolve_code): New function.
7820 (ppc_skip_trampoline_code): New function.
7821 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7822 Use glibc_skip_solib_resolver.
7824 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7826 Code cleanup: Make 1440 bytes of data segment read-only.
7827 * arch-utils.c (endian_enum): Make it const char *const [].
7828 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7830 * breakpoint.c (always_inserted_enums): Likewise.
7831 * cli/cli-cmds.c (script_ext_enums): Likewise.
7832 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7833 enumlist parameter const char *const *.
7834 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7835 const char *const *.
7836 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7837 parameter const char *const *.
7838 * cris-tdep.c (cris_modes): Make it const char *const [].
7839 * filesystem.c (target_file_system_kinds): Likewise.
7840 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7841 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7842 (can_use_displaced_stepping_enum, scheduler_enums)
7843 (exec_direction_names): Likewise.
7844 * language.c (_initialize_language): Make the type_or_range_names and
7845 case_sensitive_names variables const char *const [].
7846 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7847 * python/python.c (python_excp_enums): Likewise.
7848 * remote.c (interrupt_sequence_modes): Likewise.
7849 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7850 * serial.c (logbase_enums): Likewise.
7851 * sh-tdep.c (sh_cc_enum): Likewise.
7852 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7854 * symtab.c (multiple_symbols_modes): Likewise.
7855 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7857 * utils.c (internal_problem_modes): Likewise.
7859 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7861 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7862 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7865 2012-01-27 Doug Evans <dje@google.com>
7867 * configure.ac (with_python): Fix absolute path handling for win32.
7868 * configure: Regenerate.
7870 2012-01-26 Doug Evans <dje@google.com>
7872 * symtab.c: Whitespace cleanup, no code changes.
7874 * symtab.c (lookup_symbol_in_language): Improve comment.
7875 (lookup_symbol_aux): Fix comment.
7877 * psymtab.c (add_psymbol_to_list): Result is now "void".
7878 * psympriv.h (add_psymbol_to_list): Update.
7880 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7882 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7884 Do not open script filenames twice.
7885 * cli/cli-cmds.c (source_script_from_stream): Pass to
7886 source_python_script also STREAM.
7887 * python/py-auto-load.c (source_section_scripts): Pass to
7888 source_python_script_for_objfile also STREAM.
7889 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7891 * python/python-internal.h (source_python_script_for_objfile): New
7892 parameter file, rename parameter file to filename.
7893 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7894 instead if !_WIN32. Update the function comment.
7895 (source_python_script, source_python_script_for_objfile)
7896 (source_python_script): New parameter file, rename parameter file to
7897 filename. Pass FILENAME to python_run_simple_file.
7898 * python/python.h (source_python_script): New parameter file, rename
7899 parameter file to filename.
7901 2012-01-26 Pedro Alves <palves@redhat.com>
7903 * corelow.c (core_has_fake_pid): Delete.
7904 (core_close): Delete references to `core_has_fake_pid'.
7905 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7906 (core_open): Delete references to `core_has_fake_pid'.
7907 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7910 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7912 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7913 Remove language parameter from name_matcher. Adjust the comment.
7914 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
7915 Remove language parameter.
7916 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
7917 * linespec.c (iterate_name_matcher): Likewise.
7918 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
7919 name_matcher. Adjust call accordingly.
7920 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
7921 (maintenance_check_symtabs): Adjust type of parameter "fun".
7922 * psymtab.h (maintenance_check_symtabs): Likewise.
7924 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7926 * language.h (symbol_name_match_p_ftype): New typedef.
7927 (struct language_defn): Replace field la_symbol_name_compare
7928 by la_get_symbol_name_match_p.
7929 * ada-lang.c (ada_get_symbol_name_match_p): New function.
7930 (ada_language_defn): Use it.
7931 * linespec.c (struct symbol_matcher_data): New type.
7932 (iterate_name_matcher): Rewrite.
7933 (iterate_over_all_matching_symtabs): Pass a pointer to
7934 a symbol_matcher_data struct to expand_symtabs_matching
7935 instead of just the lookup name.
7936 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7937 opencl-lang.c, p-lang.c, language.c: Delete field
7938 la_symbol_name_compare, and replace by NULL for new field
7939 la_get_symbol_name_match_p.
7940 * symfile.h (struct quick_symbol_functions): Update comment.
7942 2012-01-25 Tom Tromey <tromey@redhat.com>
7944 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
7947 2012-01-24 Tom Tromey <tromey@redhat.com>
7950 * solib.c (update_solib_list): Update the program space's
7951 added_solibs and deleted_solibs fields.
7952 * progspace.h (struct program_space) <added_solibs,
7953 deleted_solibs>: New fields.
7954 (clear_program_space_solib_cache): Declare.
7955 * progspace.c (release_program_space): Call
7956 clear_program_space_solib_cache.
7957 (clear_program_space_solib_cache): New function.
7958 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
7959 bpstat_stop_status. Use handle_solib_event.
7960 * breakpoint.c: Include gdb_regex.h.
7961 (print_solib_event): New function.
7962 (bpstat_print): Use print_solib_event.
7963 (bpstat_stop_status): Add special case for bp_shlib_event.
7964 (handle_solib_event): New function.
7965 (bpstat_what): Use handle_solib_event.
7966 (struct solib_catchpoint): New.
7967 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
7968 (breakpoint_hit_catch_solib, check_status_catch_solib)
7969 (print_it_catch_solib, print_one_catch_solib)
7970 (print_mention_catch_solib, print_recreate_catch_solib): New
7972 (catch_solib_breakpoint_ops): New global.
7973 (catch_load_or_unload, catch_load_command_1)
7974 (catch_unload_command_1): New functions.
7975 (internal_bkpt_check_status): Add special case for
7977 (internal_bkpt_print_it): Use print_solib_event.
7978 (initialize_breakpoint_ops): Initialize
7979 catch_solib_breakpoint_ops.
7980 (_initialize_breakpoint): Register "catch load" and "catch
7982 * breakpoint.h (handle_solib_event): Declare.
7983 * NEWS: Add entry for "catch load" and "catch unload".
7985 2012-01-24 Tom Tromey <tromey@redhat.com>
7987 * ada-lang.c: Include gdb_vecs.h.
7988 * charset.c: Include gdb_vecs.h.
7989 * tracepoint.h: Include gdb_vecs.h.
7990 * gdb_vecs.h: New file.
7992 2012-01-24 Pedro Alves <pedro@codesourcery.com>
7994 * breakpoint.c (breakpoint_hit_catch_fork)
7995 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
7996 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
7997 * infrun.c (inferior_has_forked, inferior_has_vforked)
7998 (inferior_has_execd, inferior_has_called_syscall): Delete.
7999 (handle_syscall_event): Get syscall_number from the execution
8000 control state's wait status.
8001 (wait_for_inferior): Don't clear syscall_number.
8003 2012-01-24 Pedro Alves <palves@redhat.com>
8005 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
8006 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
8007 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
8008 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
8010 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
8011 false for events other than TARGET_SIGNAL_TRAP.
8012 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
8014 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
8015 events other than TARGET_SIGNAL_TRAP.
8016 (tracepoint_breakpoint_hit): Add `ws' parameter.
8017 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
8019 (bpstat_stop_status): Same.
8020 (pc_at_non_inline_function): Same.
8021 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
8022 to pass the current event's waitstatus to bpstat_stop_status
8023 and pc_at_non_inline_function.
8025 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8028 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
8029 Update the function comment for it.
8030 (source_script_with_search): Call make_cleanup_fclose for STREAM.
8031 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
8034 2012-01-24 Pedro Alves <palves@redhat.com>
8036 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
8037 outside `bs->stop' block.
8038 (bpstat_what): Rework bp_shlib_event handling.
8039 (internal_bkpt_check_status): If the breakpoint is a
8040 bp_shlib_event, then set bs->stop and bs->print if
8041 stop_on_solib_events is set.
8043 2012-01-24 Gary Benson <gbenson@redhat.com>
8045 Delete #if 0'd out code.
8046 * stack.c (print_frame_label_vars): Remove.
8047 (catch_info): Likewise.
8048 (_initialize_stack): Remove "info catch" command.
8049 * NEWS: Mention the above.
8051 2012-01-24 Pedro Alves <palves@redhat.com>
8053 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
8055 (remote_notice_new_inferior): If the remote end doesn't support
8056 the multiprocess extensions, then the PID is fake.
8057 (add_current_inferior_and_thread): New.
8058 (remote_start_remote): Use it.
8059 (extended_remote_attach_1): Adjust.
8060 (extended_remote_create_inferior_1): Use
8061 add_current_inferior_and_thread.
8063 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8065 Fix watchpoints to be specific for each inferior.
8066 * breakpoint.c (watchpoint_in_thread_scope): Verify also
8067 current_program_space.
8068 * i386-nat.c (i386_inferior_data_cleanup): New.
8069 (i386_inferior_data_get): Replace variable inf_data_local by an
8071 (i386_use_watchpoints): Initialize i386_inferior_data.
8072 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
8073 specific iterate_over_lwps.
8075 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8077 Fix watchpoints across inferior fork.
8078 * amd64-linux-nat.c (update_debug_registers_callback): Update the
8079 comment for linux_nat_iterate_watchpoint_lwps.
8080 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8081 linux_nat_iterate_watchpoint_lwps.
8082 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8083 * i386-linux-nat.c (update_debug_registers_callback): Update the
8084 comment for linux_nat_iterate_watchpoint_lwps.
8085 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8086 linux_nat_iterate_watchpoint_lwps.
8087 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8088 * i386-nat.c: Include inferior.h.
8089 (dr_mirror): Remove.
8090 (i386_inferior_data, struct i386_inferior_data)
8091 (i386_inferior_data_get): New.
8092 (i386_debug_reg_state): Use i386_inferior_data_get.
8093 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8094 (i386_insert_watchpoint, i386_remove_watchpoint)
8095 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8096 (i386_remove_hw_breakpoint): New variable state, use
8097 i386_debug_reg_state instead of DR_MIRROR.
8098 * linux-nat.c (delete_lwp): New declaration.
8099 (num_lwps): Move here from downwards.
8100 (delete_lwp_cleanup): New.
8101 (linux_child_follow_fork): Create new child_lp, call
8102 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8104 (num_lwps): Move upwards.
8105 (linux_nat_iterate_watchpoint_lwps): New.
8106 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8107 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8109 2012-01-24 Joel Brobecker <brobecker@adacore.com>
8113 2012-01-23 Pedro Alves <palves@redhat.com>
8115 * top.c (caution): Rename to ...
8116 (confirm): ... this.
8117 (show_caution): Rename to ...
8118 (show_confirm): ... this.
8119 (quit_cover): Adjust.
8120 (init_main): Adjust.
8121 * top.h (caution): Rename to ...
8122 (confirm): ... this.
8123 * utils.c (internal_vproblem, defaulted_query): Adjust.
8125 2012-01-23 Pedro Alves <palves@redhat.com>
8127 * top.c (caution): Update comment.
8128 (execute_command): Don't consider the current value of `caution'.
8130 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8132 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8134 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8136 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8137 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8138 * target.c (target_fileio_pwrite): Remove buffer address from
8140 (target_fileio_pread): Likewise.
8142 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8144 * NEWS: Document remote "info proc" and "generate-core-file".
8146 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8148 * gdbarch.sh (find_memory_regions): New callback.
8149 * gdbarch.c, gdbarch.h: Regenerate.
8151 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8152 callback before falling back to target method.
8154 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8155 (linux_target_install_ops): No longer install it.
8157 * linux-tdep.c (linux_find_memory_regions): New function.
8158 (linux_init_abi): Install it.
8160 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8162 * gdbarch.sh (make_corefile_notes): New architecture callback.
8163 * gdbarch.c: Regenerate.
8164 * gdbarch.h: Likewise.
8166 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8167 before target_make_corefile_notes. If NULL is returned, the
8168 target does not support core file generation.
8170 * linux-nat.c: Include "linux-tdep.h".
8171 (find_signalled_thread, find_stop_signal): Remove.
8172 (linux_nat_do_thread_registers): Likewise.
8173 (struct linux_nat_corefile_thread_data): Likewise.
8174 (linux_nat_corefile_thread_callback): Likewise.
8175 (iterate_over_spus): Likewise.
8176 (struct linux_spu_corefile_data): Likewise.
8177 (linux_spu_corefile_callback): Likewise.
8178 (linux_spu_make_corefile_notes): Likewise.
8179 (linux_nat_collect_thread_registers): New function.
8180 (linux_nat_make_corefile_notes): Replace contents by call to
8181 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8182 as native-only callback.
8184 * linux-tdep.h: Include "bfd.h".
8185 (struct regcache): Add forward declaration.
8186 (linux_collect_thread_registers_ftype): New typedef.
8187 (linux_make_corefile_notes): Add prototype.
8188 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8189 "regset.h", and "elf-bfd.h".
8190 (find_signalled_thread, find_stop_signal): New functions.
8191 (linux_spu_make_corefile_notes): Likewise.
8192 (linux_collect_thread_registers): Likewise.
8193 (struct linux_corefile_thread_data): New data structure.
8194 (linux_corefile_thread_callback): New funcion.
8195 (linux_make_corefile_notes): Likewise.
8196 (linux_make_corefile_notes_1): Likewise.
8197 (linux_init_abi): Install it.
8199 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8201 * gdbarch.sh (info_proc): New callback.
8202 * gdbarch.c, gdbarch.h: Regenerate.
8204 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8205 before falling back to the target info_proc callback.
8207 * linux-nat.c: Do not include "cli/cli-utils.h".
8208 (linux_nat_info_proc): Remove.
8209 (linux_target_install_ops): No longer install it.
8211 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8212 (read_mapping): New function.
8213 (linux_info_proc): Likewise.
8214 (linux_init_abi): Install it.
8216 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8218 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8219 * infcmd.c: (info_proc_cmd_1): New function.
8220 (info_proc_cmd): New function, moved here from equivalent routine
8221 orignally in linux-nat.c.
8222 (info_proc_cmd_mappings): Likewise.
8223 (info_proc_cmd_stat): Likewise.
8224 (info_proc_cmd_status): Likewise.
8225 (info_proc_cmd_cwd): Likewise.
8226 (info_proc_cmd_cmdline): Likewise.
8227 (info_proc_cmd_exe): Likewise.
8228 (info_proc_cmd_all): Likewise.
8229 (_initialize_infcmd): Install "info proc" command and subcommands.
8231 * target.h (struct target_ops): Add to_info_proc.
8232 (target_info_proc): Add prototype.
8233 * target.c (target_info_proc): New function.
8235 * procfs.c (procfs_info_proc): Add prototype.
8236 (info_proc_cmd): Rename into ...
8237 (procfs_info_proc): ... this. Update argument types as appropriate
8238 for a to_info_proc implementation. Handle "what" argument.
8239 (procfs_target): Install procfs_info_proc.
8240 (_initialize_procfs): No longer install "info proc" command.
8242 * linux-nat.c: (enum info_proc_what): Remove.
8243 (linux_nat_info_proc_cmd_1): Rename into ...
8244 (linux_nat_info_proc): ... this. Update argument types as appropriate
8245 for a to_info_proc implementation.
8246 (linux_nat_info_proc_cmd): Remove.
8247 (linux_nat_info_proc_cmd_mappings): Likewise.
8248 (linux_nat_info_proc_cmd_stat): Likewise.
8249 (linux_nat_info_proc_cmd_status): Likewise.
8250 (linux_nat_info_proc_cmd_cwd): Likewise.
8251 (linux_nat_info_proc_cmd_cmdline): Likewise.
8252 (linux_nat_info_proc_cmd_exe): Likewise.
8253 (linux_nat_info_proc_cmd_all): Likewise.
8254 (linux_target_install_ops): Install linux_nat_info_proc.
8255 (_initialize_linux_nat): No longer install "info proc" command
8258 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8260 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8261 * config.in, configure: Regenerate.
8263 * target.h (struct target_ops): Add to_fileio_readlink.
8264 (target_fileio_readlink): Add prototype.
8265 * target.c (target_fileio_readlink): New function.
8267 * inf-child.c: Conditionally include <sys/param.h>.
8268 (inf_child_fileio_readlink): New function.
8269 (inf_child_target): Install it.
8271 * remote.c (PACKET_vFile_readlink): New enum value.
8272 (remote_hostio_readlink): New function.
8273 (init_remote_ops): Install it.
8274 (_initialize_remote): Handle vFile:readlink packet type.
8276 2012-01-20 Pedro Alves <palves@redhat.com>
8277 Ulrich Weigand <ulrich.weigand@linaro.org>
8279 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8280 * config.in, configure: Regenerate.
8282 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8283 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8284 (target_fileio_open): Add prototype.
8285 (target_fileio_pwrite): Likewise.
8286 (target_fileio_pread): Likewise.
8287 (target_fileio_close): Likewise.
8288 (target_fileio_unlink): Likewise.
8289 (target_fileio_read_alloc): Likewise.
8290 (target_fileio_read_stralloc): Likewise.
8292 * target.c: Include "gdb/fileio.h".
8293 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8294 (default_fileio_target): New function.
8295 (target_fileio_open): Likewise.
8296 (target_fileio_pwrite): Likewise.
8297 (target_fileio_pread): Likewise.
8298 (target_fileio_close): Likewise.
8299 (target_fileio_unlink): Likewise.
8300 (target_fileio_close_cleanup): Likewise.
8301 (target_fileio_read_alloc_1): Likewise.
8302 (target_fileio_read_alloc): Likewise.
8303 (target_fileio_read_stralloc): Likewise.
8305 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8306 <fcntl.h>, and <unistd.h>.
8307 (inf_child_fileio_open_flags_to_host): New function.
8308 (inf_child_errno_to_fileio_error): Likewise.
8309 (inf_child_fileio_open): Likewise.
8310 (inf_child_fileio_pwrite): Likewise.
8311 (inf_child_fileio_pread): Likewise.
8312 (inf_child_fileio_close): Likewise.
8313 (inf_child_fileio_unlink): Likewise.
8314 (inf_child_target): Install to_fileio routines.
8316 * remote.c (init_remote_ops): Install to_fileio routines.
8318 2012-01-20 Pedro Alves <palves@redhat.com>
8319 Ulrich Weigand <ulrich.weigand@linaro.org>
8321 * remote.c (remote_multi_process_p): Only check for multi-process
8322 protocol feature, do not check for extended protocol.
8323 (remote_supports_multi_process): Check for extended protocol here.
8324 (set_general_process): Likewise.
8325 (extended_remote_kill): Likewise.
8326 (remote_pid_to_str): Likewise.
8327 (remote_query_supported): Always query multiprocess mode.
8329 2012-01-20 Pedro Alves <palves@redhat.com>
8330 Ulrich Weigand <ulrich.weigand@linaro.org>
8332 * inferior.h (struct inferior): Add fake_pid_p.
8333 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8334 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8335 magic_null_ptid since the remote side doesn't provide a real PID.
8337 2012-01-19 Tom Tromey <tromey@redhat.com>
8339 * NEWS: Combine the two Python sections.
8341 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8343 * target.h (target_close): Update comment on the target's unpush state.
8345 2012-01-19 Pedro Alves <palves@redhat.com>
8347 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8348 linux_nat_async directly instead of going through the target
8350 * target.c (unpush_target): Close target after unpushing it, not
8353 2012-01-19 Gary Benson <gbenson@redhat.com>
8355 * mdebugread.c (sort_blocks): Replace integer constants with ones
8356 derived from FIRST_LOCAL_BLOCK.
8358 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8359 Jan Kratochvil <jan.kratochvil@redhat.com>
8362 * symfile.c (find_separate_debug_file): New function.
8363 (terminate_after_last_dir_separator): Likewise.
8364 (find_separate_debug_file_by_debuglink): Also try realpath.
8365 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8366 * configure: Regenerate.
8367 * config.in: Regenerate.
8369 2012-01-18 Doug Evans <dje@google.com>
8371 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8372 (main.o): Remove rule.
8373 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8374 (--with-sysroot): Rewrite.
8375 * configure: Regenerate.
8376 * config.in: Regenerate.
8378 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8380 * parse.c (initialize_expout): New function.
8381 (reallocate_expout): Likewise.
8382 (parse_exp_in_context): Use `initialize_expout' and
8383 `reallocate_expout' when appropriate.
8385 2012-01-18 Pedro Alves <palves@redhat.com>
8387 * record.c (struct record_breakpoint, record_breakpoint_p)
8388 (record_breakpoints): New.
8389 (record_insert_breakpoint, record_remove_breakpoint): Manage
8390 record breakpoints list. Only remove breakpoints from the
8391 inferior if they had been inserted there in the first place.
8393 2012-01-17 Doug Evans <dje@google.com>
8395 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8396 if we know we don't have a file name to look for.
8398 2012-01-17 Pedro Alves <palves@redhat.com>
8400 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8401 the frame's stop reason is UNWIND_UNAVAILABLE.
8403 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8405 Fix compilation error.
8406 * m2-exp.y (yyerror): Use ANSI C prototype.
8408 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8410 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8411 (growbuf_by_size): Likewise.
8412 (yyerror): Likewise.
8413 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8414 (modblock): Remove variable (was #if 0'ed).
8415 (parse_number): Convert prototype from K&R to ANSI C.
8416 (yyerror): Likewise.
8417 * objc-exp.y (parse_number): Likewise.
8418 (yyerror): Likewise.
8419 (yylex): Remove #if 0'ed code.
8420 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8421 (yyerror): Likewise.
8423 2012-01-16 Tom Tromey <tromey@redhat.com>
8426 * symtab.h (compare_filenames_for_search): Declare.
8427 * symtab.c (compare_filenames_for_search): New function.
8428 (iterate_over_some_symtabs): Use it.
8429 * symfile.h (struct quick_symbol_functions)
8430 <map_symtabs_matching_filename>: Change spec.
8431 * psymtab.c (partial_map_symtabs_matching_filename): Use
8432 compare_filenames_for_search. Update for new spec.
8433 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8434 compare_filenames_for_search. Update for new spec.
8435 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8437 2012-01-16 Tom Tromey <tromey@redhat.com>
8440 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8441 (struct main_type) <flag_flag_enum>: New field.
8442 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8443 * NEWS: Add entries.
8444 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8446 * python/lib/gdb/printing.py (_EnumInstance): New class.
8447 (FlagEnumerationPrinter): Likewise.
8449 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8451 * breakpoint.c (create_sals_from_address_default): New function.
8452 (create_breakpoints_sal_default): Likewise.
8453 (decode_linespec_default): Likewise.
8454 (is_marker_spec): Removed.
8455 (strace_marker_p): New function.
8456 (init_breakpoint_sal): Using `strace_marker_p' instead of
8458 (create_breakpoint): Call method `create_sals_from_address' from
8459 breakpoint_ops, replacing code that created SALs conditionally
8460 on the type of the breakpoint. Call method `create_breakpoints_sal',
8461 replacing code that created breakpoints conditionally on the type
8463 (base_breakpoint_create_sals_from_address): New function.
8464 (base_breakpoint_create_breakpoints_sal): Likewise.
8465 (base_breakpoint_decode_linespec): Likewise.
8466 (base_breakpoint_ops): Add methods
8467 `base_breakpoint_create_sals_from_address',
8468 `base_breakpoint_create_breakpoints_sal' and
8469 `base_breakpoint_decode_linespec'.
8470 (bkpt_create_sals_from_address): New function.
8471 (bkpt_create_breakpoints_sal): Likewise.
8472 (bkpt_decode_linespec): Likewise.
8473 (tracepoint_create_sals_from_address): Likewise.
8474 (tracepoint_create_breakpoints_sal): Likewise.
8475 (tracepoint_decode_linespec): Likewise.
8476 (strace_marker_create_sals_from_address): Likewise.
8477 (strace_marker_create_breakpoints_sal): Likewise.
8478 (strace_marker_decode_linespec): Likewise.
8479 (strace_marker_breakpoint_ops): New variable.
8480 (addr_string_to_sals): Remove `marker_spec'. Call method
8481 `decode_linespec' from breakpoint_ops, replacing code that decoded
8482 an address string into a SAL. Use `strace_marker_p' instead of
8484 (strace_command): Decide whether we are dealing with a static
8485 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8486 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8487 * breakpoint.h (linespec_result, linespec_sals): New forward
8489 (breakpoint_ops) <create_sals_from_address>,
8490 <create_breakpoints_sal>, <decode_linespec>: New methods.
8492 2012-01-14 Doug Evans <dje@google.com>
8494 * NEWS: Update text for "maint set python print-stack".
8495 It is deprecated in gdb 7.4 and deleted in 7.5.
8497 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8499 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8502 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8504 * configure: Regenerate.
8505 * config.in: Regenerate.
8507 2012-01-12 Keith Seitz <keiths@redhat.com>
8510 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8511 (ANONYMOUS_UNION_NAME): Define.
8512 (is_path_expr_parent): New function.
8513 (get_path_expr_parent): New function.
8514 (is_anonymous_child): New function.
8515 (create_child_with_value): If the child is anonymous and without
8516 a name, assign an object name to it.
8517 (c_describe_child): Use get_path_expr_parent to determine
8518 the parent expression.
8519 If there field represents an anonymous struct or union and
8520 has no name, set an appropriate display name and expression.
8521 (cplus_describe_child): Likewise.
8523 2012-01-12 Pedro Alves <palves@redhat.com>
8525 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8526 available when %ebp is found to be zero (outermost).
8528 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8530 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8531 an internal gdb_static_assert.
8532 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8534 2012-01-11 Tom Tromey <tromey@redhat.com>
8537 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8538 catch" and "catch throw".
8540 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8542 * blockframe.c (block_innermost_frame): Start search from selected
8543 frame, if present, or otherwise the current frame.
8545 * c-exp.y (variable): Update innermost_block for
8546 'block COLONCOLON NAME' clause.
8547 * m2-exp.y (variable): Ditto.
8548 * objc-exp.y (variable): Ditto.
8550 2012-01-10 Tom Tromey <tromey@redhat.com>
8553 * python/python.c (finish_python_initialization): Set sys.argv.
8555 2012-01-10 Doug Evans <dje@google.com>
8557 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8558 "want_line_info". All callers updated.
8559 (dwarf_decode_lines_1): New function.
8560 (handle_DW_AT_stmt_list): Add function comment.
8561 New arg "want_line_info". All callers updated.
8562 (read_file_scope,read_type_unit_scope): Move comment from
8563 handle_DW_AT_stmt_list to here.
8565 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8567 Fix regression after libiberty/ update for GCC PR 6057 and others.
8568 * c-exp.y (operator) <OPERATOR DELETE>
8569 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8570 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8571 (make_builtin_type, make_name): New variable i, add gdb_assert.
8572 (operator) <OPERATOR NEW>: Update ARGS to 3.
8573 (operator) <OPERATOR DELETE>: Add trailing space.
8574 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8575 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8576 * cp-support.c (cp_canonicalize_string): Check NULL from
8577 cp_comp_to_string, call warning and return.
8579 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8581 Fix duplicate .o files after omitting libbfd.a.
8582 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8583 (SFILES): Add corelow.c.
8584 (COMMON_OBS): Add corelow.o.
8585 (ALLDEPFILES): Remove corelow.c.
8586 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8587 * config/alpha/alpha-osf3.mh: Likewise.
8588 * config/alpha/fbsd.mh: Likewise.
8589 * config/arm/nbsdaout.mh: Likewise.
8590 * config/arm/nbsdelf.mh: Likewise.
8591 * config/i386/i386gnu.mh: Likewise.
8592 * config/ia64/hpux.mh: Likewise.
8593 * config/ia64/linux.mh: Likewise.
8594 * config/m32r/linux.mh: Likewise.
8595 * config/m68k/linux.mh: Likewise.
8596 * config/mips/irix5.mh: Likewise.
8597 * config/mips/irix6.mh: Likewise.
8598 * config/pa/hpux.mh: Likewise.
8599 * config/pa/linux.mh: Likewise.
8600 * config/powerpc/aix.mh: Likewise.
8601 * config/sparc/linux.mh: Likewise.
8602 * config/sparc/linux64.mh: Likewise.
8603 * config/sparc/sol2.mh: Likewise.
8604 * config/vax/vax.mh: Likewise.
8605 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8606 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8607 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8608 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8609 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8610 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8611 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8612 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8613 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8614 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8615 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8616 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8617 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8618 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8619 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8620 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8621 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8622 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8623 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8624 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8625 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8626 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8627 corelow.o from gdb_target_obs.
8628 * corefile.c (core_target): Update the comment on NULL value.
8629 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8630 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8631 MATCHES. Drop YUMMY set on NULL.
8632 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8633 reclaim CORE_DATA if it is already NULL.
8635 2012-01-09 Doug Evans <dje@google.com>
8637 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8638 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8640 2012-01-09 Keith Seitz <keiths@redhat.com>
8642 * breakpoint.c (wrapper.h): Don't include.
8644 2012-01-09 Keith Seitz <keiths@redhat.com>
8646 * Makefile.in (SFILES): Remove wrapper.c.
8647 (HFILES_NO_SRCDIR): Remove wrapper.h.
8648 (COMMON_OBS): Remove wrapper.o.
8649 * cli/cli-interp.c: Don't inlude wrapper.h.
8650 * corelow.c: Likewise.
8651 (core_open): Replace gdb_target_find_new_threads with
8652 TRY_CATCH around target_find_new_threads.
8653 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8654 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8655 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8656 evaluate_expression.
8657 (varobj_set_value): Likewise for evaluate_expression and
8659 (install_new_variable): Likewise for value_fetch_lazy.
8660 (adjust_value_for_child_access): Likewise for value_ind.
8661 (c_describe_child): Likewise for value_subscript and
8663 (c_value_of_root): Likewise for evaluate_expression.
8664 * wrapper.c: Remove.
8665 * wrapper.h: Remove.
8667 2012-01-09 Doug Evans <dje@google.com>
8669 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8670 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8671 "abfd" args with "section". All callers updated.
8672 Error checking code moved ...
8673 (error_check_comp_unit_head): ... here. New function.
8674 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8675 Delete arg "abfd". New arg "type_offset". All callers updated.
8676 (create_debug_types_hash_table): Simplify by using
8677 read_and_check_type_unit_head.
8679 * parser-defs.h (namecopy): Delete.
8680 * parse.c (namecopy, namecopy_size): Move into copy_name.
8682 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8684 Partially fix duplicate .o files after omitting libbfd.a.
8685 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8686 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8687 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8688 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8689 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8690 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8691 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8693 2012-01-09 Pedro Alves <palves@redhat.com>
8695 * MAINTAINERS: Update my email address.
8697 2012-01-08 Doug Evans <dje@google.com>
8699 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8700 n_type_units. Rename type_comp_units to all_type_units.
8702 (add_signatured_type_cu_to_table): Renamed from
8703 add_signatured_type_cu_to_list. All callers updated.
8705 * gdbtypes.h (struct cplus_struct_type): Delete member
8706 nfn_fields_total. All uses removed.
8708 2012-01-06 Doug Evans <dje@google.com>
8710 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8712 (dwarf2_find_comp_unit): Delete.
8713 (process_psymtab_comp_unit): Make result "void".
8714 Delete args buffer, info_ptr, buffer_size, and replace with
8715 "section". All callers updated.
8716 (dwarf2_build_psymtabs_hard): Simplify.
8718 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8719 Thiago Jung Bauermann <bauerman@br.ibm.com>
8721 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8722 before `struct gdb_exception'.
8723 * breakpoint.c (update_global_location_list_nothrow)
8724 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8725 * cp-abi.c (value_rtti_type): Likewise.
8726 * cp-support.c (cp_validate_operator): Likewise.
8727 * infrun.c (insert_exception_resume_breakpoint)
8728 (check_exception_resume, keep_going): Likewise.
8729 * mi-interp.c (mi_breakpoint_created)
8730 (mi_breakpoint_modified): Likewise.
8731 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8732 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8733 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8735 2012-01-05 Doug Evans <dje@google.com>
8737 * dwarf2read.c (statement_prologue): Delete, unused.
8739 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8740 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8742 * dwarf2read.c (comp_unit_header): Delete, unused.
8744 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8746 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8747 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8749 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8751 * infrun.c (normal_stop): Don't skip calling the normal_stop
8752 observers if the thread was doing a multi-step, but stopped for
8753 some reason other than stepping.
8755 2012-01-05 Pedro Alves <alves.ped@gmail.com>
8757 * cli/cli-decode.h: Add comments.
8758 (CMD_LIST_AMBIGUOUS): Moved to command.h
8759 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8760 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8761 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8762 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8763 (add_com, add_com_alias, add_info, add_info_alias)
8764 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8766 * command.h: Add and adjust comments.
8767 (CMD_LIST_AMBIGUOUS): Moved here.
8768 (help_cmd, help_cmd_list): Delete declarations.
8770 2012-01-04 Doug Evans <dje@google.com>
8772 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8773 All callers updated.
8774 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8775 Replace all arguments with "per_cu". All callers updated.
8777 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8779 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8780 New arg "per_cu". All callers updated.
8782 Delete #if 0'd out code.
8783 * language.c (binop_result_type): Delete.
8784 (simple_type, ordered_type, same_type, integral_type): Delete.
8785 (numeric_type, character_type, string_type, boolean_type): Delete.
8786 (float_type, structured_type): Delete.
8787 * language.h: Update.
8789 2012-01-04 Tom Tromey <tromey@redhat.com>
8791 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8793 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8795 * corefile.c (close_exec_file): Delete.
8796 (reopen_exec_file): Remove commented out code that seems related
8797 to close_exec_file, which is being deleted here.
8798 * inferior.h (close_exec_file): Delete.
8799 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8801 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8803 * ada-lang.c: #include "cli/cli-utils.h".
8804 (get_selections): Use skip_spaces.
8805 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8806 (catch_ada_exception_command_split): Use skip_spaces.
8807 (ada_decode_assert_location): Likewise.
8809 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8811 * linespec.c (decode_line_internal): Check for C++ or Java
8812 compound constructs only if the current language is C, C++
8815 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8818 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8819 Joel Brobecker <brobecker@adacore.com>
8820 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8821 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8823 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8824 fall through into AT_ENTRY_POINT.
8825 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8827 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8828 PPC_INSN_SIZE skip to 3 times.
8830 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8832 * linespec.c (add_minsym): Preserve function descriptors.
8834 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8836 * breakpoint.c (all_locations_are_pending): Consider locations
8837 in program spaces executing during startup pending as well.
8839 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8841 Copyright year update in most files of the GDB Project.
8843 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8845 * copyright.sh: Delete.
8846 * copyright.py: Rewrite.
8848 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8850 * gnulib/extra/update-copyright: New file, imported from gnulib.
8852 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8854 * README (Copyright and License Notices): New section.
8856 2012-01-03 Tom Tromey <tromey@redhat.com>
8859 * python/py-value.c (valpy_dereference, valpy_get_address
8860 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8861 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8862 (valpy_absolute, valpy_richcompare): Free intermediate values.
8864 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8866 * ada-lang.c: Reformat the copyright notice.
8868 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8870 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8871 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8872 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8873 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8874 Revert this part of:
8875 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8876 Build gdb directly from *.o files not using libgdb.a.
8877 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8879 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8881 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8882 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8883 Reformat the copyright header.
8885 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8887 Revert this part of:
8888 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8889 Remove the gdbtui binary.
8890 * gdb.c (main): Remove args.interpreter_p initialization.
8891 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8892 * main.h (struct captured_main_args): Remove interpreter_p.
8894 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8896 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8898 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8900 * top.c (print_gdb_version): Update copyright year.
8902 2012-01-02 Yao Qi <yao@codesourcery.com>
8904 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8906 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8907 Joel Brobecker <brobecker@adacore.com>
8909 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8910 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8912 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8913 fall through into AT_ENTRY_POINT.
8914 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8916 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8917 PPC_INSN_SIZE skip to 3 times.
8919 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8921 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
8923 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
8925 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8927 Build gdb directly from *.o files not using libgdb.a.
8928 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
8929 (COMMON_OBS): Remove solib-target.o.
8930 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
8931 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8932 (LIBGDB_OBS, libgdb.a): Move it above.
8933 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
8934 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
8935 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
8936 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
8937 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
8938 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
8939 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
8940 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
8941 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
8942 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
8943 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
8944 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
8945 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
8946 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
8947 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8948 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
8949 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
8950 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8951 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
8952 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
8953 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
8954 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
8955 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
8956 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
8957 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
8958 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
8959 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
8961 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8963 Remove the gdbtui binary.
8964 * .gitignore (/gdbtui): Remove.
8965 * Makefile.in (TUI): Remove.
8966 (SUBDIR_TUI_OBS): Remove tui-main.o.
8967 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
8968 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
8969 (tui-main.o): Remove.
8970 (all_object_files): Remove tui-main.o.
8971 * NEWS: New note for the gdbtui removal.
8972 * configure: Rebuilt.
8973 * configure.ac: No longer add all-tui, clean-tui, install-tui and
8974 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
8975 CONFIG_UNINSTALL respectively.
8976 * gdb.c (main): Remove args.interpreter_p initialization.
8977 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8978 * main.h (struct captured_main_args): Remove interpreter_p.
8979 * tui/tui-main.c: Remove.
8981 2012-01-01 Doug Evans <dje@google.com>
8983 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
8984 (dwarf2_physname, read_import_statement): Ditto.
8985 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
8986 (process_structure_scope read_subroutine_type): Ditto.
8987 (read_typedef, load_partial_dies, read_partial_die): Ditto.
8988 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
8989 (dwarf2_fetch_die_location_block): Ditto.
8990 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
8992 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
8993 All callers updated.
8994 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
8995 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
8996 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
8998 * dwarf2read.c (load_cu): Move assert to more useful location.
9000 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
9001 All callers updated.
9003 * dwarf2read.c (dwarf2_per_objfile): Add comment.
9004 (dwarf2_elf_names): Minor reformat.
9005 (dwarf2_per_cu_data): Tweak comment.
9006 (dwarf2_read_section): Fix comment.
9007 (create_all_comp_units): Fix comment.
9008 (load_full_comp_unit): Fix comment.
9009 (process_full_comp_unit): Fix comment.
9010 (read_signatured_type): Fix comment.
9012 For older changes see ChangeLog-2011.
9018 version-control: never