1 2012-07-23 Tom Tromey <tromey@redhat.com>
3 * symfile.c (separate_debug_file_exists): Update.
4 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
5 (reread_symbols): Update.
6 * elfread.c (build_id_verify): Update.
7 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
10 2012-07-23 Tom Tromey <tromey@redhat.com>
12 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
14 2012-07-23 Tom Tromey <tromey@redhat.com>
16 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
18 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
20 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
21 * machoread.c (macho_add_oso_symfile): Make a cleanup for
23 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
24 * objfiles.c (allocate_objfile): Acquire a new reference.
25 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
26 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
27 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
29 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
31 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
32 make a cleanup for 'abfd'.
33 (symbol_file_add): Make a BFD cleanup.
35 2012-07-23 Tom Tromey <tromey@redhat.com>
37 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
38 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
39 * corelow.c (core_open): Use gdb_bfd_fopen.
40 * dsrec.c (load_srec): Use gdb_bfd_openr.
41 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
42 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
43 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
44 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
45 (gdb_bfd_fdopenr): New functions.
46 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
47 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
48 (gdb_bfd_fdopenr): Declare.
49 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
50 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
51 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
52 gdb_bfd_openr_next_archived_file.
53 (macho_check_dsym): Use gdb_bfd_openr.
54 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
55 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
56 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
57 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
59 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
60 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
61 gdb_bfd_openr_next_archived_file.
62 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
64 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
66 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
67 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
68 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
69 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
70 (symfile_bfd_open): Use gdb_bfd_fopen.
71 (generic_load): Use gdb_bfd_openr.
72 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
74 2012-07-23 Tom Tromey <tromey@redhat.com>
76 * bfd-target.c (target_bfd_reopen): Update.
77 * cli/cli-dump.c (bfd_openr_with_cleanup)
78 (bfd_openw_with_cleanup): Update.
79 * corelow.c (core_open): Update.
80 * dsrec.c (load_srec): Update.
81 * exec.c (exec_file_attach): Update.
82 * gcore.c (create_gcore_bfd): Update.
83 * gdb_bfd.c (gdb_bfd_ref): Return void.
84 (gdb_bfd_open): Update.
85 * gdb_bfd.h (gdb_bfd_ref): Return void.
87 * jit.c (jit_bfd_try_read_symtab): Update.
88 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
89 * machoread.c (macho_symfile_read_all_oso): Update.
90 (macho_check_dsym): Update.
91 * procfs.c (insert_dbx_link_bpt_in_file): Update.
92 * remote-m32r-sdi.c (m32r_load): Update.
93 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
94 * rs6000-nat.c (add_vmap): Update.
95 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
97 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
98 * solib-spu.c (spu_bfd_open): Update.
99 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
100 * spu-linux-nat.c (spu_bfd_open): Update.
101 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
102 (generic_load): Update.
103 * windows-nat.c (windows_make_so): Update.
105 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
107 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
109 2012-07-20 Jeff Kenton <jkenton@tilera.com>
111 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
112 SIGTRAMP_FRAME unwinding.
114 2012-07-20 Doug Evans <dje@google.com>
116 * NEWS: Document new options "set/show use-deprecated-index-sections",
117 and delete reference to --use-deprecated-index-sections.
118 * symfile.h (use_deprecated_index_sections): Delete.
119 * dwarf2read.c (use_deprecated_index_sections): Make static.
120 (read_index_from_section): Update wording of how to load
121 deprecated index sections.
122 (_initialize_dwarf2_read): New options
123 "set/show use-deprecated-index-sections".
124 * main.c (captured_main): Delete --use-deprecated-index-sections.
126 2012-07-20 Pedro Alves <palves@redhat.com>
131 * infrun.c (handle_inferior_event) <new thread>: Don't special
133 <TARGET_WAITKIND_SPURIOUS>: Ditto.
134 * linux-thread-db.c (thread_get_info_callback): Don't return early
135 if the thread is zombie.
136 (thread_from_lwp): Change return type to void. Rewrite stale
138 (attach_thread): Don't return early if the thread is zombie,
139 instead set its "dying" flag.
140 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
141 (find_new_threads_callback): Don't return early if the thread is
144 2012-07-20 Pedro Alves <palves@redhat.com>
146 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
147 * target.c (target_wait): Likewise.
148 (str_comma_list_concat_elem, do_option, target_options_to_string):
150 * target.h (target_options_to_string): Declare.
152 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
153 Tom Tromey <tromey@redhat.com>
155 * dwarf2read.c (dwarf_decode_macros)
156 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
157 DW_MACRO_GNU_transparent_include_alt>: New cases.
158 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
159 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
161 2012-07-20 Tom Tromey <tromey@redhat.com>
163 * dwarf2read.c (try_open_dwo_file): Don't call
164 gdb_bfd_stash_filename.
166 2012-07-20 Pedro Alves <palves@redhat.com>
168 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
169 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
170 (i386_process_record): Tweak description comments.
172 2012-07-20 Pedro Alves <palves@redhat.com>
174 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
175 (i386_process_record): Use record_read_memory.
176 * record.c (record_read_memory): New function.
177 (record_arch_list_add_mem, record_exec_insn): Use
179 * record.h (record_read_memory): Declare.
181 2012-07-20 Yao Qi <yao@codesourcery.com>
183 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
186 2012-07-19 Pedro Alves <palves@redhat.com>
188 * record.c (record_resume): Ask the target beneath to report all
191 2012-07-19 Doug Evans <dje@google.com>
193 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
194 there's no section at address zero.
195 (dwarf2_record_block_ranges): Ditto.
197 2012-07-19 Yao Qi <yao@codesourcery.com>
199 * command.h, remote.c: Fix a typo in comment.
201 2012-07-19 Tom Tromey <tromey@redhat.com>
204 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
205 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
206 OP_DECLTYPE>: New cases.
207 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
208 (type_exp): Add new productions.
209 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
211 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
213 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
214 OP_DECLTYPE>: New case.
215 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
217 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
218 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
220 2012-07-19 Tom Tromey <tromey@redhat.com>
222 * c-exp.y (enum token_flags): New.
223 (struct token) <cxx_only>: Remove.
225 (tokentab3, tokentab2, ident_tokens): Update.
226 (lex_one_token): Update. Handle FLAG_SHADOW.
228 2012-07-19 Tom Tromey <tromey@redhat.com>
230 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
231 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
232 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
233 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
234 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
235 type_exp production where appropriate.
236 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
237 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
238 <UNOP_MEMVAL_TYPE>: New case.
239 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
240 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
241 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
242 <UNOP_MEMVAL_TYPE>: New case.
243 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
244 UNOP_REINTERPRET_CAST>: Update.
245 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
246 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
247 UNOP_REINTERPRET_CAST>: Update.
248 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
249 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
250 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
253 2012-07-19 Yao Qi <yao@codesourcery.com>
254 Jan Kratochvil <jan.kratochvil@redhat.com>
256 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
257 and case 'var_optional_filename' together.
258 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
259 instead of add_setshow_optional_filename_cmd for setshow command
260 'args'. Set completer for 'set args'.
262 2012-07-18 Doug Evans <dje@google.com>
264 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
265 * common/gdb_vecs.c: New file, contents from utils.c.
266 * common/host-defs.h: New file, contents from defs.h.
267 * utils.h: New file, contents from defs.h.
268 * defs.h: Move all declarations of objects defined in utils.c
269 to utils.h (except QUIT() and related).
270 #include "utils.h", "host-defs.h".
271 * probe.h (probe_p): Move here from gdb_vecs.h.
272 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
273 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
274 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
275 * Makefile.in (SFILES): Add common/gdb_vecs.c.
276 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
277 (COMMON_OBS): Add gdb_vecs.o.
278 (gdb_vecs.o): New rule.
280 2012-07-18 Keith Seitz <keiths@redhat.com>
282 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
283 parameter. If non-zero, use SYMNAME as the canonical name
286 (convert_linespec_to_sals): Use add_sal_to_sals for
288 (decode_line_full): No need to "fill in missing canonical names"
289 anymore. Simply make cleanups for the allocated names.
291 2012-07-18 Keith Seitz <keiths@redhat.com>
293 * linespec.c (struct linespec): Constify expression,
294 source_filename, function_name, and label_name.
295 (symbol_not_found_error): Make all parameters const.
296 (linespec_parser_delete): No need to check for NULL
297 when using xfree. Cast const char * to char * for xfree.
299 2012-07-18 Keith Seitz <keiths@redhat.com>
301 * breakpoint.c (invalid_thread_id_error): New function.
302 (find_condition_and_thread): Use invalid_thread_id_error.
303 (watch_command_1): Likewise.
305 2012-07-18 Tom Tromey <tromey@redhat.com>
307 * cc-with-index.sh, cc-with-dwz.sh: Remove.
308 * contrib/cc-with-tweaks.sh: New file.
310 2012-07-18 Tom Tromey <tromey@redhat.com>
312 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
313 (locate_dwz_sections): Recognize .gdb_index.
314 (create_cus_from_index_list): New function.
315 (create_cus_from_index): Use it. Handle .dwz data.
316 (read_index_from_section): New function, extracted from
318 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
321 2012-07-18 Tom Tromey <tromey@redhat.com>
323 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
324 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
326 (struct dwz_file): New.
327 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
328 (locate_dwz_sections, dwarf2_get_dwz_file)
329 (get_abbrev_section_for_cu): New functions.
330 (error_check_comp_unit_head, read_and_check_comp_unit_head)
331 (read_and_check_type_unit_head): Add abbrev_section argument.
332 (create_debug_types_hash_table): Update.
333 (init_cutu_and_read_dies): Use proper abbrev section.
334 (init_cutu_and_read_dies_no_follow): Likewise.
335 (set_partial_user): Do nothing if PST==NULL.
336 (read_comp_units_from_section): New function.
337 (create_all_comp_units): Use it.
338 (scan_partial_symbols, partial_die_parent_scope): Update.
339 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
340 (process_imported_unit_die, read_partial_die): Handle .dwz files.
341 (find_partial_die): Add offset_in_dwz argument. Update.
342 (guess_partial_die_structure_name, fixup_partial_die): Update.
343 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
344 DW_FORM_GNU_strp_alt.
345 (read_indirect_string_from_dwz): New function.
346 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
347 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
348 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
349 (follow_die_offset): Add offset_in_dwz argument.
350 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
351 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
352 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
353 Handle new macro forms.
354 (dwarf_decode_macros): Update.
355 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
356 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
357 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
358 (create_debug_types_hash_table): Use correct abbrev section.
359 (get_debug_line_section): New function.
360 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
361 (process_full_comp_unit): Pass 'required' argument to
362 end_symtab_get_static_block.
363 * buildsym.h (end_symtab_get_static_block): Update.
364 * buildsym.c (end_symtab_get_static_block): Add 'required'
366 (end_symtab, end_expandable_symtab): Update.
368 2012-07-18 Tom Tromey <tromey@redhat.com>
370 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
372 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
373 (zlib_decompress_section): Remove.
374 (dwarf2_read_section): Use gdb_bfd_map_section.
375 (munmap_section_buffer): Remove.
376 (free_dwo_file, dwarf2_per_objfile_free): Don't use
377 munmap_section_buffer.
378 * gdb_bfd.c: Include zlib.h, sys/mman.h.
379 (struct gdb_bfd_section_data): New.
380 (free_one_bfd_section): New function.
381 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
382 (get_section_descriptor, zlib_decompress_section)
383 (gdb_bfd_map_section): New functions.
384 * gdb_bfd.h (gdb_bfd_map_section): Declare.
386 2012-07-18 Tom Tromey <tromey@redhat.com>
388 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
390 2012-07-18 Tom Tromey <tromey@redhat.com>
392 * gdb_bfd.c (struct gdb_bfd_data): New.
393 (gdb_bfd_cache): New global.
394 (struct gdb_bfd_cache_search): New.
395 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
396 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
397 * gdb_bfd.h (gdb_bfd_open): Declare.
399 2012-07-18 Tom Tromey <tromey@redhat.com>
401 * utils.c (make_cleanup_bfd_unref): Rename from
402 make_cleanup_bfd_close.
403 * defs.h (make_cleanup_bfd_unref): Rename from
404 make_cleanup_bfd_close.
405 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
406 (bfd_openw_with_cleanup): Update.
407 * corelow.c (core_open): Update.
408 * dsrec.c (load_srec): Update.
409 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
410 * remote-m32r-sdi.c (m32r_load): Update.
411 * remote-mips.c (mips_load_srec): Update.
412 (pmon_load_fast): Update.
413 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
415 (darwin_bfd_open): Update.
416 * solib.c (solib_bfd_fopen): Update.
417 * symfile-mem.c (symbol_file_add_from_memory): Update.
418 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
419 (symfile_bfd_open): Update.
420 (generic_load): Update.
422 2012-07-18 Tom Tromey <tromey@redhat.com>
424 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
425 (pmon_load_fast): Likewise.
426 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
427 (m32r_upload_command): Likewise.
428 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
429 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
430 Use make_cleanup_bfd_close.
432 2012-07-18 Tom Tromey <tromey@redhat.com>
434 * symfile.c (symfile_bfd_open): Don't copy name. Call
435 gdb_bfd_stash_filename.
436 (load_command): Open the new BFD before freeing the old.
437 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
438 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
439 Call gdb_bfd_stash_filename.
440 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
441 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
442 gdb_bfd_stash_filename.
443 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
445 * rs6000-nat.c (add_vmap): Don't copy filename. Call
446 gdb_bfd_stash_filename.
447 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
448 * machoread.c (macho_add_oso_symfile): Call
449 gdb_bfd_stash_filename.
450 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
451 gdb_bfd_stash_filename.
452 (macho_check_dsym): Don't copy filename. Call
453 gdb_bfd_stash_filename.
454 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
455 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
456 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
457 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
458 * exec.c (exec_close): Don't free the BFD's filename.
459 (exec_file_attach): Don't copy the filename. Call
460 gdb_bfd_stash_filename.
461 * corelow.c (core_close): Don't free the BFD's filename.
462 (core_open): Call gdb_bfd_stash_filename.
463 * corefile.c (reopen_exec_file): Remove #if 0 code.
464 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
466 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
468 2012-07-18 Tom Tromey <tromey@redhat.com>
470 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
472 (free_dwo_file): Use gdb_bfd_unref.
473 * cli/cli-dump.c: Include gdb_bfd.h.
474 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
475 (bfd_openr_with_cleanup): Likewise.
476 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
478 * utils.c: Include gdb_bfd.h.
479 (do_bfd_close_cleanup): Use gdb_bfd_unref.
480 * symfile.c: Include gdb_bfd.h.
481 (separate_debug_file_exists): Use gdb_bfd_unref.
482 (bfd_open_maybe_remote): Use gdb_bfd_ref.
483 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
484 (generic_load): Use gdb_bfd_ref.
485 (reread_symbols): Use gdb_bfd_unref.
486 * symfile-mem.c: Include gdb_bfd.h.
487 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
488 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
489 * solib.c: Include gdb_bfd.h.
490 (solib_bfd_fopen): Use gdb_bfd_ref.
491 (solib_bfd_open): Use gdb_bfd_unref.
492 (free_so_symbols): Use gdb_bfd_unref.
493 (reload_shared_libraries_1): Use gdb_bfd_unref.
494 * solib-spu.c: Include gdb_bfd.h.
495 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
496 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
498 * solib-frv.c: Include gdb_bfd.h.
499 (enable_break2): Use gdb_bfd_unref.
500 * solib-dsbt.c: Include gdb_bfd.h.
501 (enable_break2): Use gdb_bfd_unref.
502 * solib-darwin.c: Include gdb_bfd.h.
503 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
505 (darwin_bfd_open): Use gdb_bfd_unref.
506 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
507 * remote-mips.c: Include gdb_bfd.h.
508 (mips_load_srec): Use gdb_bfd_ref.
509 (pmon_load_fast): Use gdb_bfd_ref.
510 * remote-m32r-sdi.c: Include gdb_bfd.h.
511 (m32r_load): Use gdb_bfd_ref.
512 * record.c: Include gdb_bfd.h.
513 (record_save_cleanups): Use gdb_bfd_unref.
514 (cmd_record_save): Use gdb_bfd_unref.
515 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
517 * objfiles.h (gdb_bfd_close_or_warn): Remove.
518 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
519 * objfiles.c: Include gdb_bfd.h.
520 (free_objfile): Use gdb_bfd_unref.
521 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
523 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
524 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
525 (macho_check_dsym): Likewise.
526 * m32r-rom.c: Include gdb_bfd.h.
527 (m32r_load): Use gdb_bfd_ref.
528 (m32r_upload_command): Use gdb_bfd_ref.
529 * jit.c: Include gdb_bfd.h.
530 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
531 * gdb_bfd.h: New file.
532 * gdb_bfd.c: New file.
533 * gcore.c: Include gdb_bfd.h.
534 (create_gcore_bfd): Use gdb_bfd_ref.
535 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
536 (gcore_command): Use gdb_bfd_unref.
537 * exec.c: Include gdb_bfd.h.
538 (exec_close): Use gdb_bfd_unref.
539 (exec_close_1): Use gdb_bfd_unref.
540 (exec_file_attach): Use gdb_bfd_ref.
541 * elfread.c: Include gdb_bfd.h.
542 (build_id_verify): Use gdb_bfd_unref.
543 * dsrec.c: Include gdb_bfd.h.
544 (load_srec): Use gdb_bfd_ref.
545 * corelow.c: Include gdb_bfd.h.
546 (core_close): Use gdb_bfd_unref.
547 (core_open): Use gdb_bfd_ref.
548 * bfd-target.c: Include gdb_bfd.h.
549 (target_bfd_xclose): Use gdb_bfd_unref.
550 (target_bfd_reopen): Use gdb_bfd_ref.
551 * Makefile.in (SFILES): Add gdb_bfd.c.
552 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
553 (COMMON_OBS): Add gdb_bfd.o.
555 2012-07-18 Keith Seitz <keiths@redhat.com>
557 * breakpoint.c (find_condition_and_thread): Initialize
559 (create_breakpiont): find_condition_and_thread will now
560 initialize COND_STRING, THREAD, and REST (and TASK).
561 (addr_string_to_sals): Likewise.
563 2012-07-18 Pedro Alves <palves@redhat.com>
565 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
566 Pull the single step breakpoints out of the target.
568 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
570 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
571 * stap-probe.c (compile_probe_arg): Likewise.
573 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
575 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
576 (elf_compile_to_ax): Likewise.
577 * infrun.c (insert_exception_resume_from_probe): Likewise.
578 (check_exception_resume): Remove `objfile' variable.
579 * probe.c (find_probe_by_pc): Remove `objfile' argument.
580 (struct probe_and_objfile, probe_and_objfile_s): Delete.
581 (collect_probes): Adjust return value to `VEC (probe_p) *'.
582 (compare_entries): Rename to...
583 (compare_probes): ...this. Adjust function to work with
584 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
586 (gen_ui_out_table_header_info): Adjust `probes' argument to be
588 (print_ui_out_info): Adjust argument to be `struct probe *'.
589 (info_probes_for_ops): Adjust internal computations to use
591 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
592 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
593 gen_info_probes_table_values>: Remove `objfile' argument.
594 (struct probe) <objfile>: New field.
595 (find_probe_by_pc): Remove `objfile' argument.
596 * stap-probe.c (stap_parse_probe_arguments): Likewise.
597 (stap_get_probe_argument_count): Likewise.
598 (stap_get_arg): Likewise.
599 (stap_evaluate_probe_argument): Likewise.
600 (stap_compile_to_ax): Likewise.
601 (compile_probe_arg): Refactor not to pass `objfile' anymore.
602 (handle_stap_probe): Fill `objfile' field from `struct probe'.
603 (stap_gen_info_probes_table_header): Remove `objfile' argument.
604 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
605 sym_compile_to_ax>: Likewise.
607 2012-07-18 Terry Guo <terry.guo@arm.com>
610 * defs.h (GDB_MI_MSG_WIDTH): New.
611 * ser_base (ser_base_read_error_fd): New function.
612 (do_ser_base_readchar): Poll error file descriptor as well as
614 (generic_readchar): Refactor error handling.
616 2012-07-18 Joel Brobecker <brobecker@adacore.com>
618 * NEWS: Create a new section for the next release branch.
619 Rename the section of the current branch, now that it has
622 2012-07-18 Joel Brobecker <brobecker@adacore.com>
624 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
625 * version.in: Bump version to 7.5.50.20120718-cvs.
627 2012-07-17 Keith Seitz <keiths@redhat.com>
629 * linespec.c (linespec_parse_line_offset): Make parameter
632 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
635 * f-valprint.c (info_common_command): New variable frame_id.
636 Reinitialize FI form FRAME_ID after each print_variable_and_value.
637 * printcmd.c (print_variable_and_value): Extend function comment.
638 Add comment for invalidated FRAME.
639 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
640 FI form FRAME_ID after each print_frame_local_vars.
641 (struct print_variable_and_value_data): Change frame to frame_id.
642 (do_print_variable_and_value): New variable frame, initialize it from
643 p->frame_id. Add comment for invalidated FRAME.
644 (print_frame_local_vars, print_frame_arg_vars): New function comment.
645 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
646 for invalidated FRAME.
648 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
649 Pedro Alves <palves@redhat.com>
651 * linux-nat.c (linux_nat_detach): Don't unregister from the event
654 2012-07-16 Tom Tromey <tromey@redhat.com>
656 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
658 2012-07-15 Doug Evans <dje@google.com>
660 * dwarf2read.c (stmt_list_hash): New struct.
661 (type_unit_group): Embed "per_cu" member, remove pointer.
662 New union member "t", move member "tus" into it, all uses updated.
663 New member "hash", replaces member "line_offset, all uses updated.
664 (quick_file_names): Replace member "offset" with "hash", all uses
666 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
667 (hash_file_name_entry, eq_file_name_entry): Call them.
668 (hash_type_unit_group, eq_type_unit_group): Ditto.
669 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
670 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
671 (dw2_get_file_names): Update.
672 (create_type_unit_group): Replace "per_cu" arg with "cu".
673 All callers updated. Fix "quick" (.gdb_index) handling.
674 (get_type_unit_group): Replace "per_cu" arg with "cu".
676 (build_type_unit_groups): Don't reset tu_stats.
678 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
679 "tab_cur_size". Change member "tab" to be a htab_t.
680 (create_filename_seen_cache): Update.
681 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
682 (filename_seen): Update.
684 2012-07-13 Doug Evans <dje@google.com>
686 * symtab.c (filename_seen): Update comment.
688 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
689 Doug Evans <dje@google.com>
691 * buildsym.c (end_symtab_1): Split it to ...
692 (end_symtab_get_static_block): ... this ...
693 (end_symtab_from_static_block): ... and this function.
694 (end_symtab, end_expandable_symtab): Call them.
695 * buildsym.h (end_symtab_get_static_block)
696 (end_symtab_from_static_block): New declarations.
697 * dwarf2read.c (process_full_comp_unit): New variable static_block.
698 Set its valid CU ranges.
700 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
702 * dwarf2loc.c (disassemble_dwarf_expression): Handle
703 DW_OP_GNU_parameter_ref.
705 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
707 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
708 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
710 2012-07-13 Doug Evans <dje@google.com>
712 * symtab.c (output_source_filename): Delete unnecessary forward decl.
713 (filename_seen_cache): New struct.
714 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
715 (create_filename_seen_cache): New function.
716 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
717 (filename_seen): Delete arg "first". New arg "cache". All callers
719 (output_source_filename_data): New struct.
720 (output_source_filename): Delete arg "first". New arg "data".
722 (sources_info): Delete local "first". New locals "data", "cleanups".
723 Rewrite to use filename_seen_cache.
724 (add_partial_filename_data): Delete member "first". New member
725 "filename_seen_cache". All uses updated.
726 (make_source_files_completion_list): Rewrite to use
729 2012-07-12 Doug Evans <dje@google.com>
731 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
733 2012-07-10 Doug Evans <dje@google.com>
736 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
737 all_type_unit_groups, type_unit_groups, tu_stats.
738 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
739 All uses updated. Add type_unit_group to union "s".
740 (type_unit_group): New struct.
741 (IS_TYPE_UNIT_GROUP): New macro.
742 (abbrev_table): Delete unused member "section".
743 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
744 (dw2_get_cu): Assert not used with type_unit_group.
745 (dw2_get_primary_cu): New function.
746 (dw2_build_type_unit_groups_reader): New function.
747 (dw2_build_type_unit_groups): New function.
748 (dw2_get_file_names): Assert not called on type units.
749 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
750 Redo loop to iterate over type unit groups instead of type units.
751 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
752 (read_abbrev_offset): New function.
753 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
755 (create_partial_symtab): New function.
756 (process_psymtab_comp_unit_reader): Assert not used with type units.
757 Call create_partial_symtab.
758 (process_psymtab_type_unit): Delete.
759 (hash_type_unit_group, eq_type_unit_group): New functions.
760 (allocate_type_unit_groups_table): New function.
761 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
762 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
763 (create_type_unit_group, get_type_unit_group): New functions.
764 (tu_abbrev_offset): New struct.
765 (sort_tu_by_abbrev_offset): New function.
766 (add_type_unit_group_to_table): New function.
767 (build_type_unit_groups): New function.
768 (build_type_psymtabs_reader): New function.
769 (build_type_psymtab_dependencies): New function.
770 (build_type_psymtabs): Rewrite.
771 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
772 is seen in a type unit.
773 (process_queue): Move symtab expansion debugging printfs here.
774 Call process_full_type_unit for type units.
775 (compute_symtab_includes): Assert not called for type units.
776 (process_cu_includes): Don't call compute_symtab_includes for
778 (process_full_type_unit): New function.
779 (process_imported_unit_die): Flag an error if called for type units.
780 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
781 updated. Assert not called for type units.
782 (read_file_scope): Call dwarf2_start_symtab.
783 (setup_type_unit_groups): New function.
784 (read_type_unit_scope): Rewrite.
785 (abbrev_table_read_table): Initialize abbrev_table->offset.
786 (abbrev_table_free_cleanup): New function.
787 (dwarf2_start_symtab): New function.
788 (load_full_type_unit): Assert not called for type unit groups.
789 * buildsym.c (finish_block_internal): New arg "expandable".
791 (start_symtab): Move most contents to ...
792 (restart_symtab): ... here. New function.
793 (reset_symtab_globals): New function.
794 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
795 Call reset_symtab_globals.
796 (end_symtab, end_expandable_symtab): New functions.
797 (set_missing_symtab, augment_type_symtab): New functions.
798 * buildsym.h (end_expandable_symtab): Declare.
799 (augment_type_symtab, restart_symtab): Declare.
800 * psympriv.h (struct partial_symtab): New member "anonymous".
801 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
803 (read_psymtabs_with_filename): Ditto.
804 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
805 (expand_symtabs_matching_via_partial): Ditto.
806 (dump_psymtab): Update.
807 * dictionary.c (dict_add_pending): New function.
808 * dictionary.h (dict_add_pending): Declare.
810 2012-07-09 Doug Evans <dje@google.com>
812 * buildsym.c (start_subfile): Remove unnecessary check for
815 * psymtab.c (allocate_psymtab): Use host_address_to_string.
817 * dwarf2read.c (load_full_type_unit): Simplify.
819 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
820 to struct signatured_type **. All uses updated.
822 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
825 2012-07-09 Tom Tromey <tromey@redhat.com>
827 * c-exp.y (check_parameter_typelist): New function.
828 (parameter_typelist): Call it.
829 * eval.c (make_params): Handle '(void)' case.
830 * gdbtypes.c (lookup_function_type_with_arguments): Handle
833 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
835 * common/linux-ptrace.c: Include gdb_assert.h.
836 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
837 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
839 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
841 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
842 * linux-nat.c (linux_child_post_attach)
843 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
845 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
847 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
848 nptl <2.7 bug workaround for core files.
850 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
852 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
854 (save_siginfo): Remove.
855 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
857 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
858 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
859 * linux-nat.h (struct lwp_info): Remove field siginfo.
861 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
863 Code cleanup for the next patch.
864 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
865 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
867 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
868 (ia64_linux_stopped_data_address):
869 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
871 * linux-nat.h (linux_nat_get_siginfo): Likewise.
872 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
873 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
876 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
879 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
880 Increase buffer sizes to 2x we need, not just 2x of the previous size.
882 2012-07-06 Tom Tromey <tromey@redhat.com>
884 * c-exp.y (DOTDOTDOT): New token.
885 (func_mod, exp): Use parameter_typelist.
886 (parameter_typelist): New production.
887 (tokentab3): Add "..." token.
888 * eval.c (make_params): Handle varargs.
889 * gdbtypes.c (lookup_function_type_with_arguments): Handle
892 2012-07-06 Tom Tromey <tromey@redhat.com>
895 * c-exp.y (%union) <tvec>: Change type.
896 (func_mod): Now uses <tvec> type.
897 (exp): Update for tvec change.
898 (direct_abs_decl): Push the typelist.
899 (func_mod): Return a typelist.
900 (nonempty_typelist): Update for tvec change.
901 * gdbtypes.c (lookup_function_type_with_arguments): New function.
902 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
903 * parse.c (pop_type_list): New function.
904 (push_typelist): New function.
905 (follow_types): Handle tp_function_with_arguments.
906 * parser-defs.h (type_ptr): New typedef. Define a VEC.
907 (enum type_pieces) <tp_function_with_arguments>: New constant.
908 (union type_stack_elt) <typelist_val>: New field.
909 (push_typelist): Declare.
911 2012-07-06 Tom Tromey <tromey@redhat.com>
913 * c-exp.y (%union) <type_stack>: New field.
914 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
915 (ptr_operator_ts): New production.
917 * parse.c (type_stack_reserve): New function.
918 (check_type_stack_depth): Use it.
919 (pop_type_stack, append_type_stack, push_type_stack)
920 (get_type_stack, type_stack_cleanup): New functions.
921 (follow_types): Handle tp_type_stack.
922 (_initialize_parse): Simplify initialization.
923 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
925 (union type_stack_elt) <stack_val>: New field.
926 (get_type_stack, append_type_stack, push_type_stack)
927 (type_stack_cleanup): Declare.
929 2012-07-06 Tom Tromey <tromey@redhat.com>
931 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
933 (struct type_stack): New.
934 * parse.c (type_stack, type_stack_size, type_stack_depth):
936 (type_stack): New global.
937 (parse_exp_in_context, check_type_stack_depth)
938 (insert_into_type_stack, insert_type, push_type, push_type_int)
939 (insert_type_address_space, pop_type, pop_type_int)
940 (_initialize_parse): Update.
942 2012-07-06 Tom Tromey <tromey@redhat.com>
944 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
947 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
949 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
951 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
952 Jan Kratochvil <jan.kratochvil@redhat.com>
954 * cp-valprint.c (cp_print_value): Replace potentially unsafe
955 alloca with xmalloc/xfree.
957 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
959 * MAINTAINERS (Write After Approval): Add myself to the list.
961 2012-07-05 Doug Evans <dje@google.com>
963 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
965 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
967 * ax-gdb.c (cli/cli-utils.h): New include.
969 (agent_eval_command_one): New function.
970 (agent_command_1): Ditto.
971 (agent_command): Call function agent_command_1.
972 (agent_eval_command): Ditto.
973 (_initialize_ax_gdb): Change help for "maint agent"
974 and "maint agent-eval".
976 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
978 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
979 * cli/cli-utils.c (check_for_argument): New function.
980 * cli/cli-utils.h (check_for_argument): Ditto.
982 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
984 * NEWS: Mention x32 ABI support.
986 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
988 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
989 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
991 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
992 and pc_regnum_from_eax to -1. Update SP regnum from
993 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
996 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
999 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1001 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1002 * dwarf2expr.h: Include gdbtypes.h.
1003 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1004 these forward declarations.
1005 (cu_offset, sect_offset): Move these ...
1006 * gdbtypes.h: Remove include dwarf2expr.h.
1007 (cu_offset, sect_offset): ... here.
1009 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1011 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1012 (amd64_linux_sigtramp_code): This.
1013 (amd64_x32_linux_sigtramp_code): New.
1014 (LINUX_SIGTRAMP_LEN): Updated.
1015 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1017 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1019 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1021 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1023 * config.in: Regenerate.
1024 * configure: Regenerate.
1025 * configure.ac: Remove check for gnu/libc-version.h.
1026 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1028 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1029 variables libc_version, libc_major and libc_minor. Replace sscanf by
1030 inferior_has_bug. Extend the comment.
1032 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1034 * linux-thread-db.c (inferior_has_bug): New function.
1035 (thread_db_find_new_threads_silently): Return boolean as checked by
1036 inferior_has_bug, describe it in the comments.
1037 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1038 earlier. Abort the initialization if it returned non-zero.
1039 (thread_db_new_objfile): Exclude debug files.
1040 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1043 2012-07-02 Doug Evans <dje@google.com>
1045 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1046 related to queue management.
1048 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1049 instead of "debug dwarf2-die" in debugging printfs.
1050 (create_debug_info_hash_table_reader): Ditto.
1051 (create_debug_info_hash_table): Ditto.
1052 (init_dwo_file): Ditto.
1053 (init_cutu_and_read_dies): Add debugging printf.
1054 (init_cutu_and_read_dies_no_follow): Ditto.
1055 (process_psymtab_comp_unit_reader): Ditto.
1057 2012-07-02 Stan Shebs <stan@codesourcery.com>
1059 Add target-side support for dynamic printf.
1060 * NEWS: Mention the additional style.
1061 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1062 (struct bp_location): New field cmd_bytecode.
1063 * breakpoint.c: Include format.h.
1064 (disconnected_dprintf): New global.
1065 (parse_cmd_to_aexpr): New function.
1066 (build_target_command_list): New function.
1067 (insert_bp_location): Call it.
1068 (remove_breakpoints_pid): Skip dprintf breakpoints.
1069 (print_one_breakpoint_location): Ditto.
1070 (dprintf_style_agent): New global.
1071 (dprintf_style_enums): Add dprintf_style_agent.
1072 (update_dprintf_command_list): Add agent case.
1073 (agent_printf_command): New function.
1074 (_initialize_breakpoint): Add new commands.
1075 * common/ax.def (printf): New bytecode.
1076 * ax.h (ax_string): Declare.
1077 * ax-gdb.h (gen_printf): Declare.
1078 * ax-gdb.c: Include cli-utils.h, format.h.
1079 (gen_printf): New function.
1080 (maint_agent_print_command): New function.
1081 (_initialize_ax_gdb): Add maint agent-printf command.
1082 * ax-general.c (ax_string): New function.
1083 (ax_print): Add printf disassembly.
1084 * Makefile.in (SFILES): Add format.c
1085 (COMMON_OBS): Add format.o.
1086 * common/format.h: New file.
1087 * common/format.c: New file.
1088 * printcmd.c: Include format.h.
1089 (ui_printf): Call parse_format_string.
1090 * remote.c (remote_state): New field breakpoint_commands.
1091 (PACKET_BreakpointCommands): New enum.
1092 (remote_breakpoint_commands_feature): New function.
1093 (remote_protocol_features): Add new BreakpointCommands entry.
1094 (remote_can_run_breakpoint_commands): New function.
1095 (remote_add_target_side_commands): New function.
1096 (remote_insert_breakpoint): Call it.
1097 (remote_insert_hw_breakpoint): Ditto.
1098 (_initialize_remote): Add new packet configuration for
1099 target-side breakpoint commands.
1100 * target.h (struct target_ops): New field
1101 to_can_run_breakpoint_commands.
1102 (target_can_run_breakpoint_commands): New macro.
1103 * target.c (update_current_target): Handle
1104 to_can_run_breakpoint_commands.
1106 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1108 Execute -ix and -iex only after system and user gdbinit files.
1109 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1110 processing down after gdbinit files.
1112 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1114 Add fnmatch-gnu module.
1115 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1116 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1117 * gnulib/aclocal.m4: Regenerate.
1118 * gnulib/config.in: Regenerate.
1119 * gnulib/configure: Regenerate.
1120 * gnulib/import/dummy.c: Remove.
1121 * gnulib/import/Makefile.am: Regenerate.
1122 * gnulib/import/Makefile.in: Likewise.
1123 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1124 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1125 * gnulib/import/alloca.c: New file.
1126 * gnulib/import/alloca.in.h: Likewise.
1127 * gnulib/import/config.charset: Likewise.
1128 * gnulib/import/fnmatch.c: Likewise.
1129 * gnulib/import/fnmatch.in.h: Likewise.
1130 * gnulib/import/fnmatch_loop.c: Likewise.
1131 * gnulib/import/localcharset.c: Likewise.
1132 * gnulib/import/localcharset.h: Likewise.
1133 * gnulib/import/m4/alloca.m4: Likewise.
1134 * gnulib/import/m4/codeset.m4: Likewise.
1135 * gnulib/import/m4/configmake.m4: Likewise.
1136 * gnulib/import/m4/fcntl-o.m4: Likewise.
1137 * gnulib/import/m4/fnmatch.m4: Likewise.
1138 * gnulib/import/m4/glibc21.m4: Likewise.
1139 * gnulib/import/m4/localcharset.m4: Likewise.
1140 * gnulib/import/m4/locale-fr.m4: Likewise.
1141 * gnulib/import/m4/locale-ja.m4: Likewise.
1142 * gnulib/import/m4/locale-zh.m4: Likewise.
1143 * gnulib/import/m4/mbrtowc.m4: Likewise.
1144 * gnulib/import/m4/mbsinit.m4: Likewise.
1145 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1146 * gnulib/import/m4/mbstate_t.m4: Likewise.
1147 * gnulib/import/m4/stdbool.m4: Likewise.
1148 * gnulib/import/m4/wchar_h.m4: Likewise.
1149 * gnulib/import/m4/wctype_h.m4: Likewise.
1150 * gnulib/import/m4/wint_t.m4: Likewise.
1151 * gnulib/import/mbrtowc.c: Likewise.
1152 * gnulib/import/mbsinit.c: Likewise.
1153 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1154 * gnulib/import/mbsrtowcs-state.c: Likewise.
1155 * gnulib/import/mbsrtowcs.c: Likewise.
1156 * gnulib/import/ref-add.sin: Likewise.
1157 * gnulib/import/ref-del.sin: Likewise.
1158 * gnulib/import/stdbool.in.h: Likewise.
1159 * gnulib/import/streq.h: Likewise.
1160 * gnulib/import/strnlen1.c: Likewise.
1161 * gnulib/import/strnlen1.h: Likewise.
1162 * gnulib/import/verify.h: Likewise.
1163 * gnulib/import/wchar.in.h: Likewise.
1164 * gnulib/import/wctype.in.h: Likewise.
1166 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1168 Support shell wildcards for 'set auto-load safe-path'.
1169 * auto-load.c: Include fnmatch.h.
1170 (filename_is_in_dir): Rename to ...
1171 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1172 it. Update function comment. Rename dir_len to pattern_len. New
1173 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1174 messages. Use gdb_filename_fnmatch.
1175 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1177 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1178 * defs.h (gdb_filename_fnmatch): New declaration.
1179 * utils.c: Include fnmatch.h.
1180 (gdb_filename_fnmatch): New function.
1182 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1184 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1185 `-probe' and `-probe-stap' options.
1187 2012-07-01 Yao Qi <yao@codesourcery.com>
1189 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1190 always_inserted_off, and always_inserted_enums.
1191 Change always_inserted_mode's type to 'enum auto_boolean'.
1192 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1194 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1195 of add_setshow_enum_cmd.
1196 * infrun.c: Remove can_use_displaced_stepping_auto,
1197 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1198 can_use_displaced_stepping_enum.
1199 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1200 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1201 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1202 add_setshow_enum_cmd.
1204 2012-06-30 Doug Evans <dje@google.com>
1206 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1207 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1208 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1210 2012-06-29 Doug Evans <dje@google.com>
1212 * linespec.c: #include "stack.h".
1213 (decode_line_with_current_source): Moved here from symtab.c and
1214 renamed from decode_line_spec. All callers updated.
1215 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1216 renamed from decode_line_spec_1. All callers updated.
1217 * linespec.h (decode_line_with_current_source): Move declaration here
1218 from symtab.h and renamed from decode_line_spec.
1219 (decode_line_with_last_displayed): Move declaration here from symtab.h
1220 and renamed from decode_line_spec_1.
1221 * macrocmd.c: #include "linespec.h".
1222 * symtab.c: Remove #include "linespec.h".
1224 2012-06-28 Doug Evans <dje@google.com>
1226 * dwarf2read.c (get_cu_length): New function.
1227 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1228 (create_debug_types_hash_table): Ditto.
1229 (init_cutu_and_read_dies): Ditto.
1230 (init_cutu_and_read_dies_no_follow): Ditto.
1232 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1234 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1235 (struct abbrev_table): Define.
1236 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1238 (init_cutu_and_read_dies): Update.
1239 (abbrev_table_alloc_abbrev): New function. Replaces
1240 dwarf_alloc_abbrev. All callers updated.
1241 (abbrev_table_add_abbrev): New function.
1242 (abbrev_table_lookup_abbrev): New function. Replaces
1243 dwarf2_lookup_abbrev. All callers updated.
1244 (abbrev_table_read_table): New function. Contents moved here from
1245 dwarf2_read_abbrevs.
1246 (dwarf2_read_abbrevs): Call it.
1247 (abbrev_table_free): New function.
1248 (dwarf2_free_abbrev_table): Call it.
1250 2012-06-28 Stan Shebs <stan@codesourcery.com>
1252 * osdata.c (info_osdata_command): Filter out "Title" columns
1254 * common/linux-osdata.c (struct osdata_type): Add title field.
1255 (osdata_table): Add titles to each entry.
1256 (linux_command_xfer_osdata): Add a column for title data.
1258 2012-06-28 Stan Shebs <stan@codesourcery.com>
1260 Make logging work for MI.
1262 * interps.h (interp_set_logging_ftype): New typedef.
1263 (struct interp_procs): New field set_logging_proc.
1264 (current_interp_set_logging): Declare.
1265 * interps.c (current_interp_set_logging): New function.
1266 * cli/cli-logging.c: Include interps.h.
1267 (set_logging_redirect): Call current_interp_set_logging.
1268 (pop_output_files): Ditto.
1269 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1270 * mi/mi-console.h (mi_console_set_raw): Declare.
1271 * mi/mi-console.c (mi_console_set_raw): New function.
1272 * mi/mi-interp.c (saved_raw_stdout): New global.
1273 (mi_set_logging): New function.
1274 (_initialize_mi_interp): Add it to interp procs.
1276 2012-06-28 Doug Evans <dje@google.com>
1278 * symtab.c (lookup_symbol_aux_objfile): Use
1279 ALL_OBJFILE_PRIMARY_SYMTABS.
1281 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1283 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1285 * common/buffer.c: Include inttypes.h and stdint.h.
1286 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1288 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1289 Pedro Alves <palves@redhat.com>
1291 * gdbthread.h (ALL_THREADS): New macro.
1292 (thread_list): Declare.
1293 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1294 going, but instead fall through to the stepping handling.
1295 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1296 the passed in signal. Adjust debug output.
1297 (resume_callback): Rename to ...
1298 (linux_nat_resume_callback): ... this. Pass the thread's last
1299 stop signal, if in "pass" state.
1300 (linux_nat_resume): Adjust to rename.
1301 (stop_wait_callback): New assertion. Don't respawn signals;
1302 instead let the LWP remain with SIGNALLED set.
1303 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1304 * remote.c (append_pending_thread_resumptions): New.
1305 (remote_vcont_resume): Call it.
1306 * target.h (target_resume): Extend comment.
1308 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1310 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1312 2012-06-27 Doug Evans <dje@google.com>
1314 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1315 Delete have_addr_base, unused. All uses updated.
1316 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1317 (dwarf2_get_pc_bounds): Add ranges_base.
1318 (dwarf2_record_block_ranges): Ditto.
1320 2012-06-27 Tom Tromey <tromey@redhat.com>
1323 * varobj.c (varobj_create): Update.
1324 (varobj_set_value): Update.
1325 * tracepoint.c (validate_actionline): Update.
1326 (encode_actions_1): Update.
1327 * parse.c (parse_exp_1): Add 'pc' argument.
1328 (parse_exp_in_context): Add 'pc' argument. Change how
1329 expression_context_pc is set.
1330 (parse_expression): Update.
1331 (parse_field_expression): Update.
1332 * expression.h (parse_exp_1): Update.
1333 * eval.c (parse_to_comma_and_eval): Update.
1334 * breakpoint.c (set_breakpoint_condition): Update.
1335 (update_watchpoint): Update.
1336 (init_breakpoint_sal): Update
1337 (find_condition_and_thread): Update.
1338 (watch_command_1): Update.
1339 (update_breakpoint_locations): Update.
1340 * ada-lang.c (ada_read_renaming_var_value): Update.
1341 (create_excep_cond_exprs): Update.
1343 2012-06-27 Doug Evans <dje@google.com>
1345 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1348 2012-06-26 Doug Evans <dje@google.com>
1350 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1352 (error_check_comp_unit_head): New arg abbrev_section. All callers
1354 (read_and_check_comp_unit_head): Ditto.
1355 (read_and_check_type_unit_head): Ditto.
1357 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1359 New attribute 'last' for gdb.Symtab_and_line.
1360 * NEWS (Python Scripting): Add entry about the new attribute.
1361 * python/py-symtab.c (salpy_get_last): New function which
1362 implements the get method for the 'last' attribute of
1363 gdb.Symtab_and_line.
1364 (sal_object_getset): Add entry for the 'last' attribute.
1366 2012-06-26 Doug Evans <dje@google.com>
1368 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1369 (dwo_sections): Add macinfo, macro.
1370 (dwarf2_locate_dwo_sections): Watch for macro sections.
1371 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1372 All callers updated. Handle DWO files.
1374 * NEWS: Mention new options "set debug dwarf2-read" and
1375 "set debug symtab-create".
1376 * dwarf2read.c (dwarf2_read_debug): New static global.
1377 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1378 (process_queue): Ditto.
1379 (process_full_comp_unit): Ditto.
1380 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1381 * elfread.c (elf_symfile_read): Add debugging printf.
1382 * minsyms.c (install_minimal_symbols): Ditto.
1383 * psymtab.c (allocate_psymtab): Ditto.
1384 * symfile.c (allocate_symtab): Ditto.
1385 * symtab.c (symtab_create_debug): New global.
1386 (_initialize_symtab): Add new option "set debug symtab-create".
1387 * symtab.h (symtab_create_debug): Declare.
1389 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1390 (lookup_dwo_type_unit): Ditto.
1392 2012-06-26 Roland McGrath <roland@hack.frob.com>
1393 H.J. Lu <hongjiu.lu@intel.com>
1395 * amd64-linux-nat.c: Include <sys/user.h>.
1396 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1397 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1398 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1400 * configure.ac: Check if the fs_base and gs_base members of
1401 `struct user_regs_struct' exist.
1402 * config.in: Regenerated.
1403 * configure: Likewise.
1405 2012-06-25 Michael Eager <eager@eagercon.com>
1408 * python/python.c (gdbpy_write): Check for interrupted output.
1410 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1412 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1413 register as a stack alignment in ARM mode.
1415 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1417 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1418 * gnulib/config.in: Regenerate.
1419 * gnulib/configure: Likewise.
1420 * gnulib/import/m4/extensions.m4: Update it.
1421 * gnulib/import/m4/gnulib-common.m4: Likewise.
1422 * gnulib/import/m4/memmem.m4: Likewise.
1423 * gnulib/import/m4/mmap-anon.m4: Likewise.
1424 * gnulib/import/m4/multiarch.m4: Likewise.
1425 * gnulib/import/stdint.in.h: Likewise.
1427 2012-06-24 Yao Qi <yao@codesourcery.com>
1429 * corefile.c (write_memory_with_notification): New.
1430 * gdbcore.h: Declare write_memory_with_notification.
1431 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1432 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1433 * valops.c (value_assign): Likewise.
1434 * python/py-inferior.c (infpy_write_memory): Call
1435 'write_memory_with_notification'.
1437 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1439 * cc-with-index.sh: Use also -ex "set auto-load no".
1441 2012-06-23 Doug Evans <dje@google.com>
1444 * NEWS: Document additions to .gdb_index.
1445 * dwarf2read.c: #include "gdb/gdb-index.h".
1446 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1447 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1448 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1449 (dwarf2_read_index): Recognize version 7.
1450 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1451 block_kind, domain): All callers updated.
1452 (dw2_find_symbol_file): Handle new index CU values.
1453 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1454 (add_index_entry): New args is_static, kind. All callers updated.
1455 (offset_type_compare, uniquify_cu_indices): New functions
1456 (symbol_kind): New function.
1457 (write_psymtabs_to_index): Remove duplicate CU values.
1458 (write_psymtabs_to_index): Write .gdb_index version 7.
1460 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1462 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1463 * configure: Regenerate.
1465 2012-06-20 Yao Qi <yao@codesourcery.com>
1467 * python/py-inferior.c: Update comments of infpy_read_memory
1468 and infpy_write_memory.
1470 2012-06-19 Tom Tromey <tromey@redhat.com>
1473 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1474 (push_type_address_space): Remove.
1475 * parse.c (insert_into_type_stack): New function.
1476 (insert_type): Likewise.
1477 (insert_type_address_space): Rename from push_type_address_space.
1478 Insert tp_space_identifier.
1479 * c-exp.y (ptr_operator): New production.
1480 (abs_decl): Use ptr_operator.
1481 (space_identifier): Call insert_type_address_space.
1482 (ptype): Don't use const_or_volatile_or_space_identifier.
1483 (const_or_volatile_noopt): Call insert_type.
1484 (conversion_type_id, conversion_declarator): New productions.
1485 (operator): Use conversion_type_id.
1487 2012-06-18 Doug Evans <dje@google.com>
1489 * symtab.h (minimal_symbol): New member created_by_gdb.
1490 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1492 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1493 (search_symbols): Call it instead of lookup_symbol.
1494 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1496 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1497 Adjust address for DW_OP_GNU_addr_index.
1498 * dwarf2expr.h (dwarf_expr_context): Update comment.
1499 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1500 all callers updated. Handle TLS vars described with
1501 DW_OP_GNU_const_index.
1502 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1503 and DW_OP_GNU_const_index.
1504 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1506 * block.c (find_block_in_blockvector): Make explicit the fact that we
1507 ignore GLOBAL_BLOCK.
1509 2012-06-18 Tom Tromey <tromey@redhat.com>
1511 * c-exp.y (operator): Remove trailing space after "delete" and
1514 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1515 Jan Kratochvil <jan.kratochvil@redhat.com>
1517 Switch i386 and derived targets to ON_STACK.
1518 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1519 (amd64_dicos_init_abi): Remove its installment.
1520 * dicos-tdep.c (dicos_init_abi): Remove the
1521 set_gdbarch_call_dummy_location call. Update the comment here.
1522 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1523 (i386_dicos_init_abi): Remove its installment.
1524 * i386-tdep.c (i386_push_dummy_code): New function.
1525 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1526 i386_push_dummy_code.
1528 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1530 Remove stale dummy frames.
1531 * breakpoint.c: Include dummy-frame.h.
1532 (longjmp_breakpoint_ops): New variable.
1533 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1534 bp_longjmp_call_dummy.
1535 (bpstat_what, bptype_string, print_one_breakpoint_location)
1536 (init_bp_location): Support bp_longjmp_call_dummy.
1537 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1538 (set_longjmp_breakpoint_for_call_dummy)
1539 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1541 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1542 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1543 FIXME comment and extend the other comment for bp_call_dummy.
1544 (set_longjmp_breakpoint_for_call_dummy)
1545 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1546 * dummy-frame.c: Include gdbthread.h.
1547 (pop_dummy_frame_bpt): New function.
1548 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1549 (dummy_frame_discard): New function.
1550 (cleanup_dummy_frames): Update the comment about longjmps.
1551 * dummy-frame.h (dummy_frame_discard): New declaration.
1552 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1553 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1554 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1555 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1556 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1557 keep_going if IS_LONGJMP and there is no other reason to stop.
1559 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1561 * remote-sim.c (sim_command_completer): Initialize
1564 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1566 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1567 * dwarf2loc.c (call_site_parameter_matches): Support
1568 CALL_SITE_PARAMETER_PARAM_OFFSET.
1569 (needs_dwarf_reg_entry_value): Push stub value.
1570 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1571 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1572 * gdbtypes.h (enum call_site_parameter_kind): New item
1573 CALL_SITE_PARAMETER_PARAM_OFFSET.
1574 (struct call_site.parameter.u): New field param_offset.
1576 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1578 Code cleanup: Generalize call_site.parameter key.
1579 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1580 variable dwarf_reg. New variable kind_u. Update parameters to
1581 push_dwarf_reg_entry_value.
1582 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1583 * dwarf2expr.h (enum call_site_parameter_kind)
1584 (union call_site_parameter_u): Forward declarations.
1585 (struct dwarf_expr_context_funcs): Update parameters and their
1586 description for push_dwarf_reg_entry_value.
1587 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1588 * dwarf2loc.c (call_site_parameter_matches): New function.
1589 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1590 description. Use call_site_parameter_matches.
1591 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1592 Update parameters and their description.
1593 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1594 New variable kind_u. Adjust the caller for updated parameters.
1595 (needs_dwarf_reg_entry_value): Update parameters.
1596 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1597 instead of attr. Update for the changed fields of struct
1598 call_site_parameter.
1599 * gdbtypes.h: Include dwarf2expr.h.
1600 (enum call_site_parameter_kind): New.
1601 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1602 fb_offset into new union u.
1604 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1606 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1607 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1610 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1612 * amd64-linux-nat.c (compat_x32_clock_t): New.
1613 (compat_x32_siginfo_t): Likewise.
1614 (compat_x32_siginfo_from_siginfo): Likewise.
1615 (siginfo_from_compat_x32_siginfo): Likewise.
1616 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1617 and siginfo_from_compat_x32_siginfo for x32.
1619 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
1621 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1623 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1625 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1626 instead of gdbarch_ptr_bit.
1627 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1628 (amd64_supply_native_gregset): Likewise.
1629 (amd64_collect_native_gregset): Likewise.
1630 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1631 (amd64_supply_xsave): Likewise.
1632 (amd64_collect_fxsave): Likewise.
1633 (amd64_collect_xsave): Likewise.
1635 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1637 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1638 (amd64_linux_read_description): Check DS segment register for
1641 2012-06-15 Tom Tromey <tromey@redhat.com>
1643 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1644 init_cutu_and_read_dies.
1646 2012-06-15 Iain Sandoe <iain@codesourcery.com>
1648 * MAINTAINERS (Write After Approval): Add myself to the list.
1650 2012-06-15 Tom Tromey <tromey@redhat.com>
1652 * valops.c (value_find_oload_method_list): Now static.
1653 * value.h (value_find_oload_method_list): Don't declare.
1655 2012-06-15 Tom Tromey <tromey@redhat.com>
1657 * valops.c (find_overload_match): Use value_ind.
1659 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1661 * infrun.c (handle_inferior_event): Correct indentation.
1663 2012-06-14 Doug Evans <dje@google.com>
1665 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1666 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1668 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1669 updated. Handle DEBUG_LOC_START_LENGTH.
1670 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1671 (loclist_describe_location): Ditto.
1673 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1676 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1677 after hiding inline functions.
1679 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1681 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1682 _initialize_inf_ttrace.
1684 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1686 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1687 _initialize_hppa_hpux_nat.
1689 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1691 * remote-sim.c (sim_command_completer): Change type of return
1692 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1694 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1695 Jan Kratochvil <jan.kratochvil@redhat.com>
1698 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1699 stack on a 16-byte boundary.
1701 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
1703 * jit.c (finalize_symtab): Set function's return type to 'void' by
1706 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1707 H.J. Lu <hongjiu.lu@intel.com>
1709 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1710 Move bits common to both the classic LP64 and the new x32 ILP32
1712 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1713 (amd64_x32_linux_init_abi): New function.
1714 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1717 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1718 * i386-tdep.c (i386_pseudo_register_name): Make public.
1719 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1720 * amd64-tdep.c (amd64_dword_names): Add "eip".
1721 (amd64_x32_pseudo_register_type): New function
1722 (amd64_x32_init_abi): New function.
1724 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1727 * inferior.h (struct inferior_suspend_state): Comment out.
1728 (struct inferior): Comment out the field suspend.
1729 * infrun.c (struct infcall_suspend_state): Comment out the field
1731 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1734 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1736 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1737 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1738 function comment. Return ERROR for unresolved cases. Implement
1739 returning proper NAME.
1740 (yylex): Accept also NAME from classify_inner_name.
1741 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1742 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1744 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1746 2012-06-13 Tom Tromey <tromey@redhat.com>
1748 * breakpoint.c (condition_completer): New function.
1749 (_initialize_breakpoint): Use it.
1750 * value.c (complete_internalvar): New function.
1751 * value.h (complete_internalvar): Declare.
1753 2012-06-13 Tom Tromey <tromey@redhat.com>
1755 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1756 * breakpoint.c (catch_syscall_completer): Return a VEC.
1757 * cli/cli-cmds.c (complete_command): Update.
1758 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1759 (complete_on_enum): Likewise.
1760 * command.h: Include gdb_vecs.h.
1761 (completer_ftype): Change return type.
1762 (complete_on_cmdlist, complete_on_enum): Likewise.
1763 * completer.c (noop_completer, filename_completer)
1764 (location_completer): Return a VEC.
1765 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1767 (expression_completer, complete_line_internal, complete_line)
1768 (command_completer): Return a VEC.
1769 (gdb_completion_word_break_characters, line_completion_function):
1771 * completer.h: Include gdb_vecs.h.
1772 (complete_line, noop_completer, filename_completer)
1773 (expression_completer, location_completer, command_completer):
1775 * f-lang.c (f_word_break_characters): Return a VEC.
1776 * interps.c (interpreter_completer): Return a VEC.
1777 * language.h (struct language_defn)
1778 <la_make_symbol_completion_list>: Return a VEC.
1779 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1780 * symtab.c (free_completion_list): Take a VEC.
1781 (return_val_size, return_val_index): Remove.
1782 (return_val): Now a VEC.
1783 (completion_list_add_name): Update.
1784 (default_make_symbol_completion_list_break_on)
1785 (default_make_symbol_completion_list, make_symbol_completion_list)
1786 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1788 (add_filename_to_list): Update.
1789 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1791 (maybe_add_partial_symtab_filename): Update.
1792 (make_source_files_completion_list): Return a VEC.
1793 * symtab.h (default_make_symbol_completion_list_break_on)
1794 (default_make_symbol_completion_list, make_symbol_completion_list)
1795 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1796 (make_source_files_completion_list): Update.
1798 2012-06-13 Tom Tromey <tromey@redhat.com>
1800 * breakpoint.c (add_catch_command): Use completer_ftype.
1801 * breakpoint.h: Include command.h.
1802 (add_catch_command): Use completer_ftype.
1803 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1804 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1805 Use completer_ftype.
1806 * command.h (completer_ftype): New typedef.
1807 (set_cmd_completer): Use it.
1808 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1811 2012-06-13 Pedro Alves <palves@redhat.com>
1813 Partial revert of previous change.
1815 * serial.c (scb_base): New global.
1816 (serial_for_fd): New.
1817 (serial_open, serial_fdopen_ops): Link new serial in open serials
1819 (do_serial_close): Unlink serial from the open serials chain.
1821 2012-06-12 Pedro Alves <palves@redhat.com>
1823 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
1825 (prepare_for_detach): No longer context switch here in non-stop
1827 (fetch_inferior_event): Ditto.
1828 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
1829 to the event thread before removing breakpoints. Switch to the
1830 event thread before inserting breakpoints and resuming.
1831 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
1832 event thread before resuming.
1833 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
1834 Switch to the event thread before removing breakpoints.
1836 2012-06-12 Eli Zaretskii <eliz@gnu.org>
1838 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
1839 special characters correctly for the Windows shells. See
1840 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
1842 [!__MINGW32__]: Remove extra double quote character from special
1845 2012-06-11 Stan Shebs <stan@codesourcery.com>
1847 * ui-out.h: Remove #if 0 declarations.
1848 * ui-out.c: Remove #if 0 functions.
1850 2012-06-11 Pedro Alves <palves@redhat.com>
1852 * ser-base.c (run_async_handler_and_reschedule): New.
1853 (fd_event, push_event): Use it.
1854 * serial.c (serial_open, serial_fdopen_ops): Set the initial
1855 reference count to 1.
1856 (do_serial_close): Set the bufp field to NULL. Use serial_unref
1858 (serial_is_open, serial_ref, serial_unref): New.
1859 * serial.h (serial_open): Adjust comment.
1860 (serial_is_open): Declare.
1861 (serial_close): Adjust comment.
1862 (serial_ref, serial_unref) Declare.
1863 (struct serial): New field 'refcnt'.
1865 2012-06-11 Pedro Alves <palves@redhat.com>
1867 Remove #if 0'd "connect" command, and unnecessary associated
1868 refcounting and serial reuse bits.
1870 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
1871 * serial.c (last_serial_opened): Delete.
1873 (serial_open): Adjust.
1874 (serial_for_fd): Delete.
1875 (serial_fdopen_ops, do_serial_close): Adjust.
1876 (serial_fdopen_ops): Adjust.
1878 2012-06-11 Pedro Alves <palves@redhat.com>
1880 * serial.c (do_serial_close): Remove early return when SCB is
1883 2012-06-11 Tom Tromey <tromey@redhat.com>
1885 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
1887 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1889 Fix regression by the "ambiguous linespec" series.
1890 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
1891 get_last_displayed_symtab and get_last_displayed_line and depending
1894 2012-06-11 Tom Tromey <tromey@redhat.com>
1896 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
1897 (dw2_find_symbol_file): Use it.
1899 2012-06-11 Michael Eager <eager@eagercon.com>
1901 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
1902 * mips-linux-tdep.h (mips_signals): New
1904 2012-06-11 Tom Tromey <tromey@redhat.com>
1906 * infrun.c (handle_inferior_event)
1907 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
1909 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
1910 exception logic in all cases. Update comments.
1911 (insert_longjmp_resume_breakpoint): Set the exception resume
1914 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
1916 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
1918 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
1920 * valarith.c (binop_types_user_defined_p): Fix a typo.
1922 2012-06-08 Yao Qi <yao@codesourcery.com>
1923 Chung-Lin Tang <cltang@codesourcery.com>
1925 * arch-utils.c (default_return_in_first_hidden_param_p): New.
1926 * arch-utils.h: Declare.
1927 * gdbarch.sh: Add return_in_first_hidden_param_p.
1928 * gdbarch.c, gdbarch.h: Regenerated.
1929 * infcall.c (call_function_by_hand): Call
1930 gdbarch_return_in_first_hidden_param_p instead of
1931 language_pass_by_reference.
1933 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
1934 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
1935 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
1936 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
1937 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
1938 `cplus_return_struct_by_reference'.
1939 (tic6x_return_value): Handle language cplusplus.
1940 (tic6x_return_in_first_hidden_param_p): New.
1941 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
1943 2012-06-07 Doug Evans <dje@google.com>
1945 * dwarf2read.c (dwarf2_cu): Add comment.
1947 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1949 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
1951 (mips_eabi_push_dummy_call): Likewise.
1952 (mips_n32n64_push_dummy_call): Likewise.
1953 (mips_o32_push_dummy_call): Likewise.
1954 (mips_o64_push_dummy_call): Likewise.
1956 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1958 * mips-tdep.c (mips_convert_register_p): Correct coding style.
1960 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1962 * mips-tdep.c (mips_pseudo_register_type): Use
1963 mips_float_register_p.
1965 2012-06-06 Pedro Alves <palves@redhat.com>
1967 * infrun.c (handle_inferior_event): Remove calls to
1968 reinit_frame_cache that follow a context_switch call.
1970 2012-06-06 Pedro Alves <palves@redhat.com>
1972 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
1973 context_switch and remove stale comment.
1975 2012-06-06 Pedro Alves <palves@redhat.com>
1977 * infrun.c (struct execution_control_state): Remove
1978 `new_thread_event' field.
1979 (handle_inferior_event): Simplify new threads handling; don't
1980 resume the inferior if we find a new thread.
1982 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
1984 * NEWS: Document the deprecation of SH's 'regs' command.
1985 * inferior.h (all_registers_info): Add function declaration.
1986 * sh-tdep.c (sh_show_regs): Remove variable.
1987 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
1988 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
1989 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
1990 (sh_show_regs_command): Remove functions.
1991 (sh_gdbarch_init): Don't set sh_show_regs.
1992 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
1993 'info all-registers'.
1994 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
1995 (sh64_show_regs): Remove functions.
1996 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
1998 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2000 * configure.ac: Move development=true below AC_INIT.
2001 * configure: Regenerate.
2003 2012-06-05 Stan Shebs <stan@codesourcery.com>
2005 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2008 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2010 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2011 argument as ssize_t.
2012 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2013 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2014 * target.c (target_read_stack, target_write_memory)
2015 (target_write_raw_memory): Likewise.
2016 * target.h (target_read_stack, target_write_memory)
2017 (target_write_raw_memory): Likewise.
2019 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2021 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2022 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2023 * target.c (target_read_memory): Change LEN to ssize_t.
2024 * target.h (target_read_memory): Change LEN to ssize_t.
2026 2012-06-05 Pedro Alves <palves@redhat.com>
2030 * breakpoint.c (until_break_command): Only fetch the selected
2031 frame after decode_line_1.
2033 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2035 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2036 event breakpoint at _start, __start or main if a program
2037 interpreter is not found.
2039 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2041 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2043 * windows-tdep.c: #include "objfiles.h".
2044 (windows_iterate_over_objfiles_in_search_order): New function.
2045 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2046 iterate_over_objfiles_in_search_order gdbarch method to
2047 windows_iterate_over_objfiles_in_search_order.
2048 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2050 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2052 * gdbarch.sh: Add generation of
2053 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2054 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2055 (iterate_over_objfiles_in_search_order): New gdbarch method.
2056 * gdbarch.h, gdbarch.c: Regenerate.
2057 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2059 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2061 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2062 out of lookup_symbol_aux_symtabs.
2063 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2064 call to lookup_symbol_aux_objfile.
2065 (struct global_sym_lookup_data): New type.
2066 (lookup_symbol_global_iterator_cb): New function.
2067 (lookup_symbol_global): Search for symbol using
2068 gdbarch_iterate_over_objfiles_in_search_order and
2069 lookup_symbol_global_iterator_cb.
2070 * findvar.c (struct minsym_lookup_data): New type.
2071 (minsym_lookup_iterator_cb): New function.
2072 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2073 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2074 and minsym_lookup_iterator_cb.
2076 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2078 Revert the following patch:
2079 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2080 try locating the symbol in the symbol's own objfile first, before
2081 extending the search to all objfiles.
2082 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2083 out of lookup_symbol_aux_symtabs.
2084 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2085 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2086 Do not search EXCLUDE_OBJFILE.
2087 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2088 (lookup_symbol_global): Search for matches in the block's objfile
2089 first, before searching all other objfiles.
2091 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2093 * breakpoint.c (find_condition_and_thread): Stop parsing
2094 as soon as the first invalid keyword is found.
2096 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2098 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2100 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2102 * config/djgpp/djcheck.sh: Add copyright header.
2104 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2106 * copyright.py (update_files, main): Fix path to update-copyright
2109 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2111 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2112 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2113 for which a reminder to update by hand is printed.
2115 2012-06-04 Doug Evans <dje@google.com>
2117 * buildsym.c (make_blockvector): Add comment.
2119 2012-06-04 Pedro Alves <palves@redhat.com>
2121 * arch-utils.c (default_gdb_signal_from_target): Delete.
2122 * arch-utils.h (default_gdb_signal_from_target): Delete.
2123 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2124 gdbarch_gdb_signal_from_target_p.
2125 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2127 * gdbarch.h: Regenerate.
2128 * gdbarch.c: Regenerate.
2130 2012-06-04 Pedro Alves <palves@redhat.com>
2132 * gdbarch.sh (gdb_signal_from_target): Mention that the
2133 implementation of the method must be host independent.
2134 * gdbarch.h: Regenerate.
2136 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2138 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2140 (target_read_memory_bfd): New function.
2141 (symbol_file_add_from_memory): Use it.
2143 2012-06-03 Doug Evans <dje@google.com>
2145 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2147 (basic_lookup_transparent_type): Ditto.
2149 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2150 (ALL_PRIMARY_SYMTABS): Use it.
2151 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2152 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2153 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2154 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2155 (basic_lookup_transparent_type): Ditto.
2157 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2159 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2160 it to optimize resolution of demangled name.
2162 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2164 * configure.ac (development): Define new variable.
2165 Call AC_CHECK_LIB for mcheck if $development.
2166 (ERROR_ON_WARNING): Enable it by default only if $development.
2167 * config.in: Regenerate.
2168 * configure: Regenerate.
2170 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2172 * target.c (target_read_memory): Make LEN argument as size_t.
2173 * target.h (target_read_memory): Likewise.
2175 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2177 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2179 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2181 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2182 BookE interface for PowerPC server processors if not available
2183 in the Linux Kernel.
2185 2012-05-31 Keith Seitz <keiths@redhat.com>
2187 * linespec.c (decode_objc): Add cleanup to free
2189 (find_linespec_symbols): Add cleanup to free CLASSES.
2190 * symfile.c (find_separate_debug_file_by_debuglink): Add
2191 cleanup to free DEBUGLINK.
2192 * ui-out.c (clear_header_list): No need to check if
2193 HEADER_NEXT.COLHDR is NULL.
2194 Free HEADER_NEXT.COL_NAME.
2196 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2198 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2201 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2203 * configure.host (gdb_host_cpu): Handle tilegx*.
2204 (gdb_host): Handle tilegx-*-linux*.
2205 * tilegx-linux-nat.c: New file.
2206 * config/tilegx/linux.mh: New file.
2208 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2210 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2211 tilegx-linux-tdep.o.
2212 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2213 tilegx-linux-tdep.c.
2214 * configure.tgt: Handle tilegx-*-linux*.
2215 * tilegx-tdep.h: New file.
2216 * tilegx-tdep.c: New file.
2217 * tilegx-linux-tdep.c: New file.
2218 * regformats/reg-tilegx.dat: New file.
2220 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2222 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2223 accounting of hw watchpoints on ppc.
2225 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2227 * source.c (openp): Expand tilde in path entries.
2229 2012-05-29 Doug Evans <dje@google.com>
2231 * buildsym.c (block_compar): Fix comment.
2232 (end_symtab): Fix and clarify some comments.
2234 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2235 cleanup_undefined_types.
2236 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2237 All callers updated.
2239 2012-05-29 Tom Tromey <tromey@redhat.com>
2241 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2243 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2244 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2246 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2249 2012-05-29 Tristan Gingold <gingold@adacore.com>
2251 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2252 (struct darwin_info): ... New struct.
2253 (solib_darwin_pspace_data): New variable.
2254 (darwin_pspace_data_cleanup): New function.
2255 (get_darwin_info): Likewise.
2256 (darwin_dyld_version_ok, darwin_load_image_infos)
2257 (darwin_solib_get_all_image_info_addr_at_init)
2258 (darwin_solib_read_all_image_info_addr): Add info argument.
2260 (darwin_current_sos): Use per pspace structure.
2261 (darwin_solib_create_inferior_hook): Likewise.
2262 (darwin_clear_solib): Likewise.
2263 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2265 2012-05-28 Pedro Alves <palves@redhat.com>
2267 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2268 block that uses them. Clear ecss before handling each event.
2270 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2272 * solib-svr4.c (svr4_current_sos): New comment on
2273 svr4_current_sos_via_xfer_libraries fall back.
2275 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2277 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2278 it as a fallback for TYPE_IS_OPAQUE.
2279 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2280 symbols for lookup_symbol.
2282 2012-05-24 John Steele Scott <toojays@toojays.net>
2284 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2285 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2286 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2287 (check_producer): ... this new function, which also checks for ICC
2288 and caches the result.
2289 (producer_is_icc): New function.
2290 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2293 2012-05-24 Pedro Alves <palves@redhat.com>
2297 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2298 (default_gdb_signal_to_target): ... this. Add comment.
2299 (default_gdb_signal_from_host): Rename to ...
2300 (default_gdb_signal_from_target): ... this. Add comment.
2301 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2302 (default_gdb_signal_to_target): ... this.
2303 (default_gdb_signal_from_host): Rename to ...
2304 (default_gdb_signal_from_target): ... this.
2305 * corelow.c (core_open): Adjust to naming change. Replace comment.
2306 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2307 (gdb_signal_from_target): ... this. Adjust to
2308 default_gdb_signal_from_host naming change. Extend comment.
2309 (gdb_signal_to_host): Rename to ...
2310 (gdb_signal_to_target): ... this. Adjust to
2311 default_gdb_signal_to_host naming change.
2312 * gdbarch.h, gdbarch.c: Renegerate.
2314 2012-05-24 Pedro Alves <palves@redhat.com>
2318 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2320 2012-05-24 Pedro Alves <palves@redhat.com>
2324 Replace target_signal with gdb_signal throughout.
2326 2012-05-24 Pedro Alves <palves@redhat.com>
2330 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2331 string, instead of reusing the va_list argument.
2333 2012-05-24 Tom Tromey <tromey@redhat.com>
2335 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2338 2012-05-23 Doug Evans <dje@google.com>
2340 * symtab.c (search_symbols): Formatting fixes.
2341 (print_symbol_info): Formatting fixes.
2343 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2344 int64_t change to leb128 API.
2345 (read_encoded_value, decode_frame_entry_1): Ditto.
2346 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2347 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2348 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2349 (execute_stack_op): Ditto.
2350 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2351 (safe_read_uleb128, safe_read_sleb128): Ditto.
2352 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2353 (dwarf2_compile_expr_to_ax): Ditto.
2354 (locexpr_describe_location_piece): Ditto.
2355 (disassemble_dwarf_expression): Ditto.
2356 (locexpr_describe_location_1): Ditto.
2358 2012-05-23 Stan Shebs <stan@codesourcery.com>
2359 Kwok Cheung Yeung <kcy@codesourcery.com>
2361 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2362 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2363 (mi-cmd-info.o): New rule.
2364 * osdata.h (info_osdata_command): New declaration.
2365 * osdata.c (info_osdata_command): Change to non-static.
2366 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2367 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2368 * mi/mi-cmd-info.c: New file.
2370 2012-05-23 Doug Evans <dje@google.com>
2372 * symtab.c (search_symbols): Pass NULL for file_matcher to
2373 expand_symtabs_matching if there are no files to match.
2375 * gdbtypes.c (lookup_typename): Simplify.
2377 2012-05-23 Pedro Alves <palves@redhat.com>
2379 * arch-utils.h (default_target_signal_to_host): Delete.
2380 * arch-utils.c (default_target_signal_to_host): Delete.
2381 * gdbarch.sh (target_signal_to_host): Remove.
2382 * gdbarch.h, gdbarch.c: Regenerate.
2384 2012-05-22 Doug Evans <dje@google.com>
2386 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2388 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2389 (execute_cfa_program): Update to match API of leb128 functions.
2390 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2392 (read_unsigned_leb128, read_signed_leb128): Delete.
2393 (read_initial_length): Change type of buf argument to
2395 (read_encoded_value): Update to match API of leb128 functions.
2396 (decode_frame_entry): Change result to "const gdb_byte *", and
2397 similarly for "start" parameter.
2398 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2399 (dwarf2_build_frame_info): Change local frame_ptr to
2401 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2402 read_uleb128, read_sleb128. All callers updated.
2403 (safe_skip_leb128): New function.
2404 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2405 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2406 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2407 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2408 read_uleb128, read_sleb128.
2409 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2410 (execute_stack_op): Update to match API of leb128 functions.
2411 * dwarf2expr.h: #include "leb128.h".
2412 (read_uleb128, read_sleb128): Delete.
2413 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2414 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2415 * dwarf2loc.c (debug_loc_kind): New enum.
2416 (decode_debug_loc_addresses): New function.
2417 (decode_debug_loc_dwo_addresses): New function.
2418 (dwarf2_find_location_expression): Rewrite.
2419 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2420 (locexpr_describe_location_piece): Ditto.
2421 (disassemble_dwarf_expression): Ditto.
2422 (locexpr_describe_location_1): Ditto.
2423 (loclist_describe_location): Rewrite.
2424 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2425 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2426 (dwarf2_section_buffer_overflow_complaint): Renamed from
2427 dwarf2_macros_too_long_complaint. All callers updated.
2428 (skip_leb128): Delete.
2429 (init_cu_die_reader): Initialize reader->buffer_end.
2430 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2431 (skip_form_bytes): New arg buffer_end. All callers updated.
2432 Replace call to skip_leb128 with gdb_skip_leb128.
2433 (skip_unknown_opcode): New arg mac_end. All callers updated.
2434 (fill_in_loclist_baton): Initialize baton->from_dwo.
2436 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2438 * mips-linux-nat.c (mips_linux_read_description): Use a more
2439 verbose error message.
2441 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2443 * NEWS: Add MIPS/Linux DSP support.
2444 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2445 (SIGCONTEXT_DSPCTL): New macro.
2446 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2447 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2448 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2449 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2450 (N64_SIGCONTEXT_HI3): Likewise.
2451 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2452 (N64_SIGCONTEXT_LO3): Likewise.
2453 (N64_SIGCONTEXT_DSPCTL): Likewise.
2454 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2455 (mips_linux_o32_sigframe_init): Handle DSP registers.
2456 (mips_linux_n32n64_sigframe_init): Likewise.
2458 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2460 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2463 2012-05-22 Pedro Alves <palves@redhat.com>
2465 * target.h (store_waitstatus): Move declaration ...
2466 * inf-child.h (store_waitstatus): ... here.
2467 * target.c: Move inclusion of gdb_wait.h, and ...
2468 (store_waitstatus): ... this ...
2469 * inf-child.c: ... here.
2470 * linux-nat.c: Include inf-child.h.
2471 * rs6000-nat.c: Include inf-child.h.
2472 * spu-linux-nat.c: Include inf-child.h.
2474 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2476 * tracepoint.c (start_tracing): Add missing i18n markup.
2477 (stop_tracing, set_trace_user): Ditto.
2478 (set_trace_notes, set_trace_stop_notes): Ditto.
2480 2012-05-21 Tom Tromey <tromey@redhat.com>
2483 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2485 * value.h (value_cast_pointers): Update.
2486 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2487 (value_cast): Update.
2488 (update_search_result): New function.
2489 (do_search_struct_field): New, from search_struct_field. Check
2490 for ambiguous results.
2491 (search_struct_field): Rewrite.
2492 * infcall.c (value_arg_coerce): Update.
2493 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2494 value_cast_pointers.
2495 * ada-lang.c (ada_convert_actual): Update.
2497 2012-05-21 Tom Tromey <tromey@redhat.com>
2499 * macroexp.c (macro_stringify): Terminate the string.
2501 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2503 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2505 * auto-load.c (auto_load_expand_dir_vars): New function.
2506 (auto_load_safe_path_vec_update): Use it, remove the
2507 substitute_path_component call thanks to it.
2508 (auto_load_objfile_script): Remove the debug_file_directory processing.
2509 Use auto_load_expand_dir_vars, remove the substitute_path_component
2511 * configure: Regenerate.
2512 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2513 path. Escape $ also for $debugdir.
2514 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2515 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2517 2012-05-20 Doug Evans <dje@google.com>
2519 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2520 before use. Check for symtab->includes == NULL before scanning it.
2522 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2524 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2526 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2528 * NEWS: Add microMIPS support and "set mips compression",
2529 "show mips compression" commands.
2530 * mips-tdep.h (mips_isa): New enum.
2531 (gdbarch_tdep): Add mips_isa.
2532 (mips_pc_is_mips16): Update prototype.
2533 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2534 * mips-tdep.c (mips_compression_mips16): New variable.
2535 (mips_compression_micromips): Likewise.
2536 (mips_compression_strings): Likewise.
2537 (mips_compression_string): Likewise.
2538 (is_mips16_isa, is_micromips_isa): New functions.
2539 (is_mips16_addr): Rename to...
2540 (is_compact_addr): ... this.
2541 (unmake_mips16_addr): Likewise to...
2542 (unmake_compact_addr): ... this.
2543 (make_mips16_addr): Likewise to...
2544 (make_compact_addr): ... this.
2545 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2547 (mips_elf_make_msymbol_special): Handle microMIPS code.
2548 (msymbol_is_special): Rename to...
2549 (msymbol_is_mips16): ... this.
2550 (mips_make_symbol_special, mips_pc_is_mips16): Update
2552 (msymbol_is_mips, msymbol_is_micromips): New functions.
2553 (mips16_to_32_reg): Rename to...
2554 (mips_reg3_to_reg): ... this.
2555 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2556 (mips_pc_isa): Likewise.
2557 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2559 (mips_fetch_instruction): Pass return status instead of printing
2560 an error message if requested. Handle microMIPS code. Bail out
2562 (micromips_op): New macro.
2563 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2564 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2565 (b6s4_op, b7s3_reg): Likewise.
2566 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2567 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2568 (mips_insn_size): New function.
2569 (mips32_next_pc): Update mips_fetch_instruction call.
2570 (micromips_relative_offset7): New function.
2571 (micromips_relative_offset10): Likewise.
2572 (micromips_relative_offset16): Likewise.
2573 (micromips_pc_insn_size): Likewise.
2574 (micromips_bc1_pc): Likewise.
2575 (micromips_next_pc): Likewise.
2576 (unpack_mips16): Update mips_fetch_instruction call.
2577 (extended_mips16_next_pc): Update according to change to
2579 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2581 (mips16_scan_prologue): Update mips_fetch_instruction call.
2582 Update according to change to mips16_to_32_reg.
2583 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2584 (mips_insn16_frame_base_sniffer): Likewise.
2585 (micromips_decode_imm9): New function.
2586 (micromips_scan_prologue): Likewise.
2587 (mips_micro_frame_cache): Likewise.
2588 (mips_micro_frame_this_id): Likewise.
2589 (mips_micro_frame_prev_register): Likewise.
2590 (mips_micro_frame_sniffer): Likewise.
2591 (mips_micro_frame_unwind): New variable.
2592 (mips_micro_frame_base_address): New function.
2593 (mips_micro_frame_base): New variable.
2594 (mips_micro_frame_base_sniffer): New function.
2595 (mips32_scan_prologue): Update mips_fetch_instruction call.
2596 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2597 rather than for MIPS16.
2598 (mips_insn32_frame_base_sniffer): Likewise.
2599 (mips_addr_bits_remove): Handle microMIPS code.
2600 (deal_with_atomic_sequence): Rename to...
2601 (mips_deal_with_atomic_sequence): ... this. Update the type
2602 of the variable used to hold an instruction. Remove the ISA bit
2603 check. Update mips_fetch_instruction call.
2604 (micromips_deal_with_atomic_sequence): New function.
2605 (deal_with_atomic_sequence): Likewise.
2606 (mips_about_to_return): Handle microMIPS code. Update
2607 mips_fetch_instruction call.
2608 (heuristic_proc_start): Check for the standard MIPS ISA rather
2609 than for MIPS16. Update mips_pc_is_mips16 and
2610 mips_fetch_instruction calls. Handle microMIPS code.
2611 (mips_push_dummy_code): Handle microMIPS code.
2612 (mips_eabi_push_dummy_call): Likewise.
2613 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2614 (mips_o64_push_dummy_call): Handle microMIPS code.
2615 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2616 (is_delayed): Remove function.
2617 (mips_single_step_through_delay): Replace the call to is_delayed
2618 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2619 Handle microMIPS code.
2620 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2622 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2624 (micromips_in_function_epilogue_p): New function.
2625 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2627 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2629 (gdb_print_insn_mips): Likewise.
2630 (mips_breakpoint_from_pc): Likewise.
2631 (mips_remote_breakpoint_from_pc): New function.
2632 (mips32_instruction_has_delay_slot): Simplify making use of the
2633 updated mips_fetch_instruction interface.
2634 (micromips_instruction_has_delay_slot): New function.
2635 (mips16_instruction_has_delay_slot): Simplify making use of the
2636 updated mips_fetch_instruction interface.
2637 (mips_adjust_breakpoint_address): Check for the standard MIPS
2638 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2639 calls. Handle microMIPS code.
2640 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2641 (mips_skip_trampoline_code): Handle microMIPS code.
2642 (global_mips_compression): New function.
2643 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2644 file flags. Register the microMIPS remote breakpoint handler
2645 and heuristic frame unwinder.
2646 (show_mips_compression): New function.
2647 (_initialize_mips_tdep): Add the "set mips compression" and
2648 "show mips compression" commands.
2650 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2655 * amd64-darwin-tdep.c:
2656 * arm-symbian-tdep.c:
2660 * bfin-linux-tdep.c:
2667 * dwarf2-frame-tailcall.c:
2696 * microblaze-tdep.c:
2697 * mips-linux-tdep.c:
2705 * python/py-finishbreakpoint.c:
2706 * python/py-inferior.c:
2707 * python/py-infthread.c:
2711 * remote-m32r-sdi.c:
2715 * rs6000-aix-tdep.c:
2741 * amd64-darwin-tdep.c:
2742 * arm-symbian-tdep.c:
2743 * arm-tdep.c: Delete unused variables.
2745 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2747 Rename $ddir to $datadir.
2748 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2749 * auto-load.c (auto_load_safe_path_vec_update)
2750 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2751 * configure: Regenerate.
2752 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2753 Likewise. Remove the 'use $ddir' help string.
2755 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2757 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2758 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2760 2012-05-18 Tom Tromey <tromey@redhat.com>
2763 * valprint.h (struct value_print_options) <symbol_print>: New
2765 * valprint.c (user_print_options): Add default for symbol_print.
2766 (show_symbol_print): New function.
2767 (generic_val_print): Respect symbol_print.
2768 (_initialize_valprint): Add "print symbol" setting.
2769 * f-valprint.c (f_val_print): Respect symbol_print.
2770 * c-valprint.c (c_val_print): Respect symbol_print.
2772 * printcmd.c (print_address_symbolic): Return int. Ignore some
2774 (print_address_demangle): Return int.
2775 * defs.h: (print_address_symbolic): Return int.
2776 * value.h (print_address_demangle): Return int.
2778 2012-05-18 Tom Tromey <tromey@redhat.com>
2780 * valprint.c (val_print_string): Don't print leading space.
2781 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2782 print space before string or vtbl.
2783 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2785 * jv-valprint.c (java_value_print): Print space before string.
2786 * go-valprint.c (print_go_string): Print space before string.
2787 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2788 space before string.
2789 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2790 space before string or vtbl.
2791 * auxv.c (fprint_target_auxv): Print space after address.
2793 2012-05-18 Tom Tromey <tromey@redhat.com>
2795 * printcmd.c (print_address_demangle): Remove special case for 0.
2797 2012-05-18 Tom Tromey <tromey@redhat.com>
2799 * printcmd.c (print_address_demangle): Add 'opts' argument.
2800 * p-valprint.c (pascal_val_print): Update.
2801 * jv-valprint.c (java_val_print): Update.
2803 * valprint.c (generic_val_print): Update.
2804 (print_function_pointer_address): Add 'options' argument. Remove
2805 'addressprint' argument. Update.
2806 * m2-valprint.c (print_unpacked_pointer): Update.
2807 * gnu-v3-abi.c (print_one_vtable): Update.
2808 (gnuv3_print_method_ptr): Update.
2809 * f-valprint.c (f_val_print): Update.
2810 * cp-valprint.c (cp_print_value_fields): Update.
2811 * valprint.h (print_function_pointer_address): Update.
2812 * c-valprint.c (c_val_print): Update.
2814 2012-05-18 Tom Tromey <tromey@redhat.com>
2816 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2817 directly corresponding to the found psymtab.
2818 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2819 (dw2_find_pc_sect_symtab): Use it.
2820 * block.h (blockvector_contains_pc): Declare.
2821 * block.c (find_block_in_blockvector): New function.
2822 (blockvector_for_pc_sect): Use it.
2823 (blockvector_contains_pc): New function.
2825 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2827 * mips-tdep.h (mips_write_pc): New prototype.
2828 * mips-tdep.c (mips_write_pc): Make external, add description.
2829 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
2832 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2834 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
2836 (mips_unwind_pc, mips_write_pc): Likewise.
2837 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
2840 2012-05-17 Joel Brobecker <brobecker@adacore.com>
2842 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
2843 proc_warn, proc_error, proc_get_status, proc_flags,
2844 proc_why, proc_what, proc_nsysarg, proc_sysargs,
2845 proc_set_run_on_last_close, proc_unset_run_on_last_close,
2846 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
2847 proc_stop_process, proc_wait_for_stop, proc_run_process,
2848 proc_set_traced_signals, proc_set_traced_faults,
2849 proc_set_traced_sysentry, proc_set_traced_sysexit,
2850 proc_set_held_signals, proc_get_held_signals,
2851 proc_get_traced_signals, proc_get_traced_faults,
2852 proc_get_traced_sysentry, proc_get_traced_sysexit,
2853 proc_clear_current_fault, proc_set_current_signal,
2854 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
2855 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
2856 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
2857 proc_get_current_thread, proc_get_current_thread,
2858 proc_get_current_thread, proc_update_threads,
2859 proc_update_threads, proc_update_threads, proc_update_threads,
2860 proc_iterate_over_threads, procfs_find_new_threads,
2861 procfs_pid_to_str): Make static. Remove advance declaration.
2862 (proc_cursig): Make static. Conditionalized defintion on
2863 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
2864 (proc_syscall, proc_set_kill_on_last_close,
2865 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
2866 proc_get_pending_signals, proc_get_signal_actions,
2867 proc_trace_signal, proc_ignore_signal): Delete.
2869 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2871 * coffread.c (cs_section_address): Passing proper argument for
2872 `bfd_get_section_vma'.
2873 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
2874 `bfd_get_section_flags'.
2875 * remote.c (remote_trace_set_readonly_regions): Likewise, for
2876 `bfd_get_section_vma'.
2878 2012-05-16 Tom Tromey <tromey@redhat.com>
2881 * macrotab.h: (macro_define_special): Declare.
2882 (enum macro_special_kind): New.
2883 (struct macro_definition) <argc, replacement>: Update comments.
2884 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
2885 (macro_define_object_internal): New function.
2886 (macro_define_object): Use it.
2887 (macro_define_special): New function.
2888 (fixup_definition): New function.
2889 (macro_lookup_definition, foreach_macro_in_scope)
2890 (foreach_macro): Use fixup_definition.
2891 * macroexp.h (macro_stringify): Declare.
2892 * macroexp.c (free_buffer_return_text): New function.
2893 (stringify): Constify "arg".
2894 (macro_stringify): New function.
2895 * dwarf2read.c (macro_start_file): Call macro_define_special.
2897 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
2898 Maciej W. Rozycki <macro@mips.com>
2900 * breakpoint.h (bp_location): Add related_address member.
2901 * inferior.h (get_return_value): Take a pointer to struct value
2902 instead of struct type for the function requested.
2903 * value.h (using_struct_return): Likewise.
2904 * gdbarch.sh (return_value): Take a pointer to struct value
2905 instead of struct type for the function requested.
2906 * breakpoint.c (set_breakpoint_location_function): Initialize
2907 related_address for bp_gnu_ifunc_resolver breakpoints.
2908 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
2909 requested function's address to gdbarch_return_value.
2910 * eval.c (evaluate_subexp_standard): Pass the requested
2911 function's address to using_struct_return.
2912 * infcall.c (call_function_by_hand): Pass the requested
2913 function's address to using_struct_return and
2914 gdbarch_return_value.
2915 * infcmd.c (get_return_value): Take a pointer to struct value
2916 instead of struct type for the function requested.
2917 (print_return_value): Update accordingly.
2918 (finish_command_continuation): Likewise.
2919 * stack.c (return_command): Pass the requested function's
2920 address to using_struct_return and gdbarch_return_value.
2921 * value.c (using_struct_return): Take a pointer to struct value
2922 instead of struct type for the function requested. Pass the
2923 requested function's address to gdbarch_return_value.
2924 * python/py-finishbreakpoint.c (finish_breakpoint_object):
2925 New function_value member, replacing function_type.
2926 (bpfinishpy_dealloc): Update accordingly.
2927 (bpfinishpy_pre_stop_hook): Likewise.
2928 (bpfinishpy_init): Likewise. Record the requested function's
2930 * mips-tdep.c (mips_fval_reg): New enum.
2931 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
2932 words put in GP registers.
2933 (mips_o64_push_dummy_call): Update a comment.
2934 (mips_o32_return_value): Take a pointer to struct value instead
2935 of struct type for the function requested and use it to check if
2936 using the MIPS16 calling convention. Return the designated
2937 general purpose registers for floating-point values returned in
2939 (mips_o64_return_value): Likewise.
2940 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
2941 (ppc_sysv_abi_broken_return_value): Likewise.
2942 (ppc64_sysv_abi_return_value): Likewise.
2943 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
2944 value instead of struct type for the function requested.
2945 * amd64-tdep.c (amd64_return_value): Likewise.
2946 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
2947 * arm-tdep.c (arm_return_value): Likewise.
2948 * avr-tdep.c (avr_return_value): Likewise.
2949 * bfin-tdep.c (bfin_return_value): Likewise.
2950 * cris-tdep.c (cris_return_value): Likewise.
2951 * frv-tdep.c (frv_return_value): Likewise.
2952 * h8300-tdep.c (h8300_return_value): Likewise.
2953 (h8300h_return_value): Likewise.
2954 * hppa-tdep.c (hppa32_return_value): Likewise.
2955 (hppa64_return_value): Likewise.
2956 * i386-tdep.c (i386_return_value): Likewise.
2957 * ia64-tdep.c (ia64_return_value): Likewise.
2958 * iq2000-tdep.c (iq2000_return_value): Likewise.
2959 * lm32-tdep.c (lm32_return_value): Likewise.
2960 * m32c-tdep.c (m32c_return_value): Likewise.
2961 * m32r-tdep.c (m32r_return_value): Likewise.
2962 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
2963 * m68k-tdep.c (m68k_return_value): Likewise.
2964 (m68k_svr4_return_value): Likewise.
2965 * m88k-tdep.c (m88k_return_value): Likewise.
2966 * mep-tdep.c (mep_return_value): Likewise.
2967 * microblaze-tdep.c (microblaze_return_value): Likewise.
2968 * mn10300-tdep.c (mn10300_return_value): Likewise.
2969 * moxie-tdep.c (moxie_return_value): Likewise.
2970 * mt-tdep.c (mt_return_value): Likewise.
2971 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
2972 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
2973 (ppc_sysv_abi_broken_return_value): Likewise.
2974 (ppc64_sysv_abi_return_value): Likewise.
2975 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
2976 * rl78-tdep.c (rl78_return_value): Likewise.
2977 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
2978 * rx-tdep.c (rx_return_value): Likewise.
2979 * s390-tdep.c (s390_return_value): Likewise.
2980 * score-tdep.c (score_return_value): Likewise.
2981 * sh-tdep.c (sh_return_value_nofpu): Likewise.
2982 (sh_return_value_fpu): Likewise.
2983 * sh64-tdep.c (sh64_return_value): Likewise.
2984 * sparc-tdep.c (sparc32_return_value): Likewise.
2985 * sparc64-tdep.c (sparc64_return_value): Likewise.
2986 * spu-tdep.c (spu_return_value): Likewise.
2987 * tic6x-tdep.c (tic6x_return_value): Likewise.
2988 * v850-tdep.c (v850_return_value): Likewise.
2989 * vax-tdep.c (vax_return_value): Likewise.
2990 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
2991 * xtensa-tdep.c (xtensa_return_value): Likewise.
2992 * gdbarch.c: Regenerate.
2993 * gdbarch.h: Regenerate.
2995 2012-05-15 Tom Tromey <tromey@redhat.com>
2997 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
2999 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3001 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3002 of command in two error message.
3004 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3006 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3008 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3010 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3012 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3014 * NEWS (show auto-load scripts-directory): Add forgotten command.
3016 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3018 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3021 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3023 * amd64-tdep.c: Include features/i386/x32.c and
3024 features/i386/x32-avx.c.
3025 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3026 initialize_tdesc_x32_avx.
3028 2012-05-14 Stan Shebs <stan@codesourcery.com>
3031 * breakpoint.h (enum bptype): New type bp_dprintf.
3032 (struct breakpoint): New field extra_string.
3033 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3034 (create_breakpoint): Add extra_string arg.
3035 * breakpoint.c (dprintf_breakpoint_ops): New.
3036 (is_breakpoint): Add bp_dprintf.
3037 (bpstat_what): Add dprintf case.
3038 (bptype_string): Ditto.
3039 (print_one_breakpoint_location): Ditto.
3040 (init_bp_location): Ditto.
3041 (bkpt_print_mention): Ditto.
3042 (dprintf_style_enums): New array.
3043 (dprintf_style): New global.
3044 (dprintf_function): New global.
3045 (dprintf_channel): New global.
3046 (update_dprintf_command_list): New function.
3047 (update_dprintf_commands): New function.
3048 (init_breakpoint_sal): Add extra_string argument, handle it.
3049 (create_breakpoint_sal): Add extra_string argument.
3050 (create_breakpoints_sal): Add extra_string argument, update callers.
3051 (find_condition_and_thread): Add extra argument.
3052 (create_breakpoint): Add extra_string argument, record it.
3053 (dprintf_command): New function.
3054 (break_command_1): Add arg to create_breakpoint call.
3055 (handle_gnu_v3_exceptions): Ditto.
3056 (trace_command): Ditto.
3057 (ftrace_command): Ditto.
3058 (strace_command): Ditto.
3059 (bkpt_print_mention): Add dprintf case.
3060 (create_breakpoint_sal_default): Add extra_string argument.
3061 (_initialize_breakpoint): Add new commands.
3062 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3063 * python/py-breakpoint.c (bppy_init): Ditto.
3064 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3066 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3068 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3070 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3072 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3075 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3077 Add a new function gdb.find_pc_line to the Python API.
3078 * NEWS (Python Scripting): Add entry about the new function.
3079 * python/python.c (gdbpy_find_pc_line): New function which
3080 implements gdb.find_pc_line.
3081 (GdbMethods): Add entry for the new function.
3083 2012-05-12 Pedro Alves <palves@redhat.com>
3085 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3086 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3088 2012-05-12 Eli Zaretskii <eliz@gnu.org>
3090 * inferior.c: Include completer.h
3091 (initialize_inferiors): Set completer of add-inferior to
3094 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3096 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3097 gdbarch_ptr_bit for x32 core dump.
3099 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3101 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3102 and features/i386/x32-avx-linux.c.
3104 2012-05-11 Stan Shebs <stan@codesourcery.com>
3105 Kwok Cheung Yeung <kcy@codesourcery.com>
3107 * NEWS: Describe new info os commands.
3108 * common/linux-osdata.c (PID_T, TIME_T): Define.
3109 (MAX_PID_T_STRLEN): New.
3110 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3112 (command_from_pid): Add comment. Change to use PID_T.
3113 (commandline_from_pid): Change to use PID_T.
3114 (user_from_pid): Add comment.
3115 (get_process_owner): Add comment. Change to use PID_T and
3117 (get_number_of_cpu_cores): Add comment.
3118 (get_cores_used_by_process): Add comment. Change to use PID_T and
3120 (linux_xfer_osdata_processes): Change to use PID_T and
3122 (compare_processes): New function.
3123 (linux_xfer_osdata_processgroups): New function.
3124 (linux_xfer_osdata_threads): Change to use PID_T.
3125 (linux_xfer_osdata_fds): New function.
3126 (format_socket_state, print_sockets): New functions.
3127 (union socket_addr): New union.
3128 (linux_xfer_osdata_isockets): New function.
3129 (time_from_time_t, group_from_gid): New functions.
3130 (linux_xfer_osdata_shm): New function.
3131 (linux_xfer_osdata_sem): New function.
3132 (linux_xfer_osdata_msg): New function.
3133 (linux_xfer_osdata_modules): New function.
3134 (osdata_table): Add new entries.
3135 * common/buffer.c (buffer_xml_printf): Add support for long and
3136 long long format specifiers.
3138 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3140 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3141 (tdesc_x32_avx_linux): Likewise.
3143 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3145 Implement multi-component --with-auto-load-dir.
3146 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3148 (--with-auto-load-safe-path): Update the default value description.
3149 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3151 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3152 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3153 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3154 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3155 "set auto-load scripts-directory".
3156 * config.in: Regenerate.
3157 * configure: Regenerate.
3158 * configure.ac (--with-auto-load-dir): New configure option.
3159 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3161 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3163 Provide $ddir substitution for --with-auto-load-safe-path.
3164 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3166 * auto-load.c: Include observer.h.
3167 (auto_load_safe_path_vec_update): Call substitute_path_component for
3168 each component. New variable ddir_subst.
3169 (auto_load_gdb_datadir_changed): New function.
3170 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3171 AUTO_LOAD_SAFE_PATH. New comment.
3172 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3173 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3174 * config.in: Regenerate.
3175 * configure: Regenerate.
3176 * configure.ac (--auto-load-safe-path): Rename
3177 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3178 GDB_DATADIR/auto-load.
3179 * defs.h (substitute_path_component): New declaration.
3180 * top.c: Include observer.h.
3181 (set_gdb_datadir): New function.
3182 (init_main): Install it for "set data-directory".
3183 * utils.c (substitute_path_component): New function.
3185 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3187 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3188 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3189 DEBUG_FILE_DIRECTORY. Handle multiple components of
3190 DEBUG_FILE_DIRECTORY.
3192 2012-05-10 Tom Tromey <tromey@redhat.com>
3194 * dwarf2read.c (recursively_write_psymbols): New function.
3195 (write_psymtabs_to_index): Use it.
3197 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3199 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3200 (load_partial_comp_unit): Update.
3201 (queue_comp_unit): Add argument 'pretend_language'.
3202 (process_queue): Update.
3203 (psymtab_to_symtab_1): Skip dependencies that have a user.
3204 (load_partial_comp_unit_reader): Give meaning to the 'data'
3206 (load_full_comp_unit): Add 'pretend_language' argument.
3207 (process_full_comp_unit): Add 'pretend_language' argument. Set
3209 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3211 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3212 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3214 (prepare_one_comp_unit): Add 'pretend_language' argument.
3216 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3217 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3218 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3219 (dw2_do_instantiate_symtab): Check whether symtab was read in
3221 (dw2_instantiate_symtab): Add assertion. Call
3222 process_cu_includes.
3223 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3224 (partial_symtab_p): New typedef.
3225 (set_partial_user): New function.
3226 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3227 (scan_partial_symbols): Add imported CU to imported_symtabs.
3228 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3229 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3230 (get_symtab, recursively_compute_inclusions)
3231 (compute_symtab_includes, process_cu_includes)
3232 (process_imported_unit_die): New functions.
3233 (process_die) <DW_TAG_imported_unit>: New case.
3234 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3236 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3238 (struct partial_die_info) <locdesc>: Remove.
3240 (process_psymtab_comp_unit): Add 'read_partial' argument.
3242 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3243 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3244 (add_partial_symbol): Update.
3245 (process_die): Handle DW_TAG_partial_unit.
3246 (read_file_scope): Update comment.
3247 (load_partial_dies): Handle DW_TAG_imported_unit.
3248 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3249 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3251 2012-05-10 Tom Tromey <tromey@redhat.com>
3253 * cc-with-dwz.sh: New file.
3255 2012-05-10 Tom Tromey <tromey@redhat.com>
3257 * symtab.h (struct symtab) <includes, user>: New fields.
3258 * block.h (struct block_iterator) <d, idx, which>: New fields.
3259 * block.c (initialize_block_iterator, find_iterator_symtab)
3260 (block_iterator_step, block_iter_name_step)
3261 (block_iter_match_step): New functions.
3262 (block_iterator_first, block_iterator_next)
3263 (block_iter_name_first, block_iter_name_next)
3264 (block_iter_match_first, block_iter_match_next): Rewrite.
3265 (get_block_symtab): New function.
3267 2012-05-10 Tom Tromey <tromey@redhat.com>
3269 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3271 * jit.c (finalize_symtab): Use allocate_global_block,
3273 * buildsym.c (finish_block_internal): New function, from old
3275 (finish_block): Rewrite.
3276 (end_symtab): Use finish_block_internal, set_block_symtab.
3277 * block.h (struct global_block): New.
3278 (allocate_global_block, set_block_symtab): Declare.
3279 * block.c (allocate_global_block, set_block_symtab): New
3282 2012-05-10 Tom Tromey <tromey@redhat.com>
3284 * psymtab.c (partial_map_expand_apply): Add assertion.
3285 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3286 (psymtab_to_symtab): Find unshared psymtab.
3287 (dump_psymtab): Print including psymtabs.
3288 (recursively_search_psymtabs): New function.
3289 (expand_symtabs_matching_via_partial): Use it.
3290 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3292 (enum psymtab_search_status): New.
3294 2012-05-10 Tom Tromey <tromey@redhat.com>
3296 * tracepoint.c (scope_info): Update.
3297 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3298 (find_pc_sect_symtab, search_symbols)
3299 (default_make_symbol_completion_list_break_on)
3300 (make_file_symbol_completion_list): Update.
3301 * symmisc.c (dump_symtab_1): Update.
3302 * stack.c (print_frame_args, iterate_over_block_locals)
3303 (print_frame_labels, iterate_over_block_arg_vars): Update.
3304 * python/py-block.c (block_object) <dict>: Remove.
3306 <iter>: Change type.
3307 (blpy_iter): Update.
3308 (blpy_block_syms_iternext): Update.
3309 * psymtab.c (map_block): Use block iterators.
3310 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3311 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3312 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3313 * infrun.c (check_exception_resume): Update.
3314 * cp-support.c (make_symbol_overload_list_block): Update.
3315 * coffread.c (patch_opaque_types): Update.
3316 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3317 * block.h (struct block_iterator): New.
3318 (block_iterator_first, block_iterator_next, block_iter_name_first)
3319 (block_iter_name_next, block_iter_match_first)
3320 (block_iter_match_next): Declare.
3321 (ALL_BLOCK_SYMBOLS): Redefine.
3322 * block.c (block_iterator_first, block_iterator_next)
3323 (block_iter_name_first, block_iter_name_next)
3324 (block_iter_match_first, block_iter_match_next): New functions.
3325 * ada-lang.c (ada_add_block_symbols)
3326 (ada_make_symbol_completion_list): Use block iterator.
3328 2012-05-10 Tom Tromey <tromey@redhat.com>
3330 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3331 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3332 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3333 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3334 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3337 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3339 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3340 print-file-var-lib2.c, print-file-var-main.c and
3341 print-file-var.exp (located in gdb/testsuite/gdb.base).
3343 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3345 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3346 try locating the symbol in the symbol's own objfile first, before
3347 extending the search to all objfiles.
3348 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3349 out of lookup_symbol_aux_symtabs.
3350 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3351 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3352 Do not search EXCLUDE_OBJFILE.
3353 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3354 (lookup_symbol_global): Search for matches in the block's objfile
3355 first, before searching all other objfiles.
3357 2012-05-10 Tristan Gingold <gingold@adacore.com>
3359 * printcmd.c (set_command): Add pre/post inc/dec.
3361 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3363 * gdb.1: Document -ex option.
3365 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3367 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3368 * inferior.h (AT_SYMBOL): Delete.
3370 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3372 * mips-tdep.c (mips_push_dummy_code): New function.
3373 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3374 ON_STACK and install mips_push_dummy_code as our gdbarch
3375 push_dummy_code routine.
3377 2012-05-09 Pedro Alves <palves@redhat.com>
3379 * target.c (set_maintenance_target_async_permitted): Rename to ...
3380 (set_target_async_command): ... this.
3381 (show_maintenance_target_async_permitted): Rename to ...
3382 (show_target_async_command): ... this.
3383 (initialize_targets): Adjust.
3385 2012-05-08 Doug Evans <dje@google.com>
3387 * go-exp.y (classify_name): Add missing assignment of fields of
3390 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3392 Display the ">" prompt in interactive mode while reading canned
3393 commands, even when the current interpreter is MI.
3395 * interps.c (interp_set_temp): New function.
3397 * interps.h (interp_set_temp): Add prototype.
3399 * cli/cli-script.c (restore_interp): New cleanup function.
3400 (read_command_lines): Temporarily override the current interpreter
3401 with CLI and arrange for restoring the original one.
3403 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3405 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3407 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3409 * probe.c (parse_probes): Move conditional to check for
3410 debuginfo files from here...
3411 * stap-probe.c (stap_get_probes): ... to here.
3413 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3414 H.J. Lu <hongjiu.lu@intel.com>
3416 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3417 `movl %esp, %ebp' for the X32 ABI.
3419 2012-05-07 Tom Tromey <tromey@redhat.com>
3421 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3423 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3424 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3425 (dwarf_stack_op_name): Remove.
3426 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3427 (decode_locdesc): Use get_DW_OP_name.
3428 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3429 (dwarf2_compile_expr_to_ax): Likewise.
3430 (disassemble_dwarf_expression): Likewise.
3431 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3433 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3435 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3436 (sh_linux_sigtramp_cache): New function.
3437 (sh_linux_sigreturn_init): New function.
3438 (sh_linux_rt_sigreturn_init): New function.
3439 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3441 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3443 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3444 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3445 (sh_linux_init_abi): Add init calls to register new tramp_frame
3446 definitions under 32-bit SH, update comments.
3448 2012-05-07 Pedro Alves <palves@redhat.com>
3452 * amd64-linux-tdep.c: Include glibc-tdep.h.
3453 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3454 gdbarch_skip_solib_resolver callback.
3456 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3458 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3459 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3460 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3461 (add_auto_load_safe_path): Change the error message.
3462 (_initialize_auto_load): Change the "safe-path" help text.
3463 * configure: Regenerate
3464 * configure.ac (--without-auto-load-safe-path): Set
3465 WITH_AUTO_LOAD_SAFE_PATH to /.
3467 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3469 * stap-probe.h: Do not include unecessary `probe.h'.
3471 2012-05-05 Alan Modra <amodra@gmail.com>
3473 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3474 bfd_und_section_ptr.
3475 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3476 and bfd_com_section_ptr.
3478 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3480 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3482 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3484 * windows-nat.h (segment_register_p_ftype): New typedef.
3485 (windows_set_segment_register_p): Add declaration.
3486 * windows-nat.c (segment_register_p): New static global.
3487 (windows_set_segment_register_p): New function.
3488 (do_windows_fetch_inferior_registers): Add special handling
3489 for segment registers.
3490 * amd64-windows-nat.c: #include "amd64-tdep.h".
3491 (amd64_windows_segment_register_p): New function.
3492 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3493 * i386-windows-nat.c: #include "i386-tdep.h".
3494 (i386_windows_segment_register_p): New function.
3495 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3497 2012-05-04 Tristan Gingold <gingold@adacore.com>
3499 * printcmd.c (set_command): Emit a warning if the expression is not
3502 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3504 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3507 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3509 * stap-probe.c (stap_is_operator): Change declaration.
3510 (stap_get_opcode): Change return value.
3511 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3512 `stap_parse_argument_1'.
3514 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3516 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3519 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3521 Add two new methods global_block and static_block to gdb.Symtab
3523 * NEWS (Python scripting): Add entry about the new methods.
3524 * python/py-symtab.c (stpy_global_block): New function which
3525 implements the gdb.Symtab.global_block() method.
3526 (stpy_static_block): New function which implements the
3527 gdb.Symtab.static_block() method.
3528 (symtab_object_methods): Add entries for the two new methods.
3530 2012-05-03 Doug Evans <dje@google.com>
3532 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3535 2012-05-03 Yao Qi <yao@codesourcery.com>
3537 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3539 (i386_process_record): Ditto.
3541 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3543 * infcall.c (unwind_on_signal_p): Make static.
3545 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3547 * sol-thread.c (solaris_pid_to_str): Make static.
3548 (_initialize_sol_thread): Add prototype.
3550 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3552 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3554 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3556 * MAINTAINERS: Remove myself.
3558 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3560 Fix --without-auto-load-safe-path for MS-Windows host platform.
3561 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3563 2012-05-02 Eli Zaretskii <eliz@gnu.org>
3565 * gdb_curses.h: Undefine KEY_EVENT before including curses
3566 headers. Move "#undef MOUSE_MOVED" before any curses header
3569 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3571 * features/i386/i386-mmx-linux.c: Regenerate.
3572 * features/rs6000/powerpc-32.c: Likewise.
3573 * features/rs6000/powerpc-32l.c: Likewise.
3574 * features/rs6000/powerpc-403.c: Likewise.
3575 * features/rs6000/powerpc-403gc.c: Likewise.
3576 * features/rs6000/powerpc-405.c: Likewise.
3577 * features/rs6000/powerpc-505.c: Likewise.
3578 * features/rs6000/powerpc-601.c: Likewise.
3579 * features/rs6000/powerpc-602.c: Likewise.
3580 * features/rs6000/powerpc-603.c: Likewise.
3581 * features/rs6000/powerpc-604.c: Likewise.
3582 * features/rs6000/powerpc-64.c: Likewise.
3583 * features/rs6000/powerpc-64l.c: Likewise.
3584 * features/rs6000/powerpc-750.c: Likewise.
3585 * features/rs6000/powerpc-860.c: Likewise.
3586 * features/rs6000/powerpc-e500.c: Likewise.
3587 * features/rs6000/powerpc-e500l.c: Likewise.
3588 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3589 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3590 * features/rs6000/rs6000.c: Likewise.
3592 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3594 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3596 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3597 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3598 (stap_parse_argument) <e>: Likewise.
3599 (handle_stap_probe) <byte_order>: Likewise.
3601 2012-04-30 Doug Evans <dje@google.com>
3603 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3604 init_and_read_dies_worker. All callers updated.
3605 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3606 replaced with init_cutu_and_read_dies.
3607 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3608 (find_partial_die): Remove FIXME. Don't free current CU.
3610 2012-04-30 Sterling Augustine <saugustine@google.com>
3612 * contrib: New directory.
3613 * contrib/test_pubnames_and_indexes.py: New file.
3615 2012-04-30 Doug Evans <dje@google.com>
3617 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3618 All callers updated.
3619 (init_cu_die_reader): Verify the section is non-empty.
3620 (dwarf_decode_line_header): Don't dereference section->asection
3621 until we know the section is present.
3623 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3625 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3628 2012-04-29 Yao Qi <yao@codesourcery.com>
3630 * gdb-code-style.el: New hook gdb-markup-hook
3631 and gdb-comment-hook.
3633 2012-04-28 Doug Evans <dje@google.com>
3635 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3636 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3638 * symfile.h (dwarf2_debug_sections): New member addr.
3639 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3640 (ctx_no_get_addr_index): New function.
3641 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3642 (ctx_no_get_addr_index): Declare.
3643 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3644 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3645 (dwarf_expr_ctx_funcs): Update.
3646 (needs_get_addr_index): New function.
3647 (needs_frame_ctx_funcs): Update.
3648 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3649 * dwarf2read.c: #include "gdbcore.h".
3650 (dwarf2_per_objfile): New members addr, dwo_files.
3651 (dwarf2_elf_names): Add entry for addr.
3652 (struct dwo_section_names): New type.
3653 (dwo_section_names): New static global.
3654 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3655 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3656 old debug_types_section member updated to use this.
3657 Rename member debug_types_section to info_or_types_section,
3659 (signatured_type): Rename member type_offset to type_offset_in_tu,
3660 all uses updated. New member type_offset_in_section.
3661 (struct dwo_sections): New type.
3662 (struct dwo_unit): New type.
3663 (struct dwo_file): New type.
3664 (die_reader_specs): New member dwo_file.
3665 (dwarf2_locate_sections): Watch for .debug_addr.
3666 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3667 (dwarf2_read_section): Get bfd of section from bfd's asection,
3669 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3670 (create_signatured_type_table_from_index): Initialize
3671 sig_type->info_or_types_section.
3672 (dw2_get_file_names): Statement lists for type units with DWO files
3673 live in the DWO file.
3674 (create_debug_types_hash_table): New function.
3675 (create_all_type_units): Rewrite.
3676 (init_cu_die_reader): New arg dwo_file, all callers updated.
3677 (init_and_read_dies_worker): Get section from
3678 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3679 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3680 continue reading the CU/TU from there.
3681 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3682 updated. Get section from this_cu->info_or_types_section.
3683 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3684 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3685 DW_FORM_GNU_str_index.
3686 (hash_dwo_file, eq_dwo_file): New functions.
3687 (allocate_dwo_file_hash_table): New function.
3688 (hash_dwo_unit, eq_dwo_unit): New functions.
3689 (allocate_dwo_unit_table): New function.
3690 (dwarf2_locate_dwo_sections): New function.
3691 (struct create_dwo_info_table_data): New type.
3692 (create_debug_info_hash_table_reader): New function.
3693 (create_debug_info_hash_table): New function.
3694 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3695 (lookup_dwo_file): New function.
3696 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3697 (free_dwo_file, free_dwo_file_cleanup): New functions.
3698 (free_dwo_file_from_slot, free_dwo_files): New functions.
3699 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3700 (dwarf2_record_block_ranges): Ditto.
3701 (read_partial_die): Ditto.
3702 (process_enumeration_scope): Update to use type_offset_in_section.
3703 (read_full_die_1): New function.
3704 (read_full_die): Rewrite.
3705 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3706 DW_FORM_GNU_str_index.
3707 (read_addr_index_1, read_addr_index): New functions.
3708 (read_addr_index_from_leb128): New function.
3709 (struct dwarf2_read_addr_index_data): New type.
3710 (dwarf2_read_addr_index_reader): New function.
3711 (dwarf2_read_addr_index): New function.
3712 (read_str_index): New function.
3713 (leb128_size): New function.
3714 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3715 If processing a type unit from a DWO file, get the line section
3717 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3718 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3719 DW_FORM_GNU_str_index.
3720 (lookup_die_type): Check whether section offset of type's die is
3721 known before looking it up. Remove assert. Condition can
3722 legimately happen for inter-cu type references.
3723 (dwarf_attr_name): Handle Fission attributes.
3724 (dwarf_form_name): Handle Fission forms.
3725 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3726 DW_FORM_GNU_str_index.
3727 (follow_die_sig): Update to use type_offset_in_section.
3728 (decode_locdesc): New case DW_OP_GNU_addr_index.
3729 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3730 DW_FORM_GNU_str_index.
3731 (cu_debug_loc_section): New function.
3732 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3733 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3734 Free DWO files if present.
3735 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3737 Refactor DIE reading.
3738 * dwarf2read.c (dwarf2_per_objfile): Replace members
3739 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3740 (die_reader_specs): New member "die_section". Temporarily make
3741 member "buffer" non-const, pending constifying all info_ptr uses.
3742 (die_reader_func_ftype): New typedef.
3743 (dw2_get_file_names_reader): New function.
3744 (dw2_get_file_names): Rewrite.
3745 (read_and_check_type_unit_head): Rename arg type_offset to
3747 (create_all_type_units): Improve debugging message.
3748 Improve dummy type unit check.
3749 (init_cu_die_reader): New arg "section". All callers updated.
3750 (init_and_read_dies_worker): New function.
3751 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3752 (init_cutu_and_read_dies_no_follow): New function.
3753 (init_cutu_and_read_dies_simple): New function.
3754 (process_psymtab_comp_unit_reader): New function.
3755 (process_psymtab_comp_unit): Delete args section,
3756 is_debug_types_section. Rewrite. All callers updated.
3757 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3758 All callers updated. Rewrite.
3759 (load_partial_comp_unit_reader): New function.
3760 (load_partial_comp_unit): Rewrite.
3761 (skip_children): New arg reader. Delete args buffer, cu.
3762 All callers updated.
3763 (skip_one_die): New arg reader. Delete args buffer, cu.
3764 All callers updated.
3765 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3766 All callers updated.
3767 (load_full_comp_unit_reader): New function.
3768 (load_full_comp_unit): Rewrite.
3769 (read_comp_unit): Delete.
3770 (read_die_and_children_1): Delete, contents moved ...
3771 (read_die_and_children): ... here.
3772 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3773 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3774 All callers updated.
3775 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3776 All callers updated.
3777 (find_partial_die): Rewrite load_all_dies support.
3778 (read_attribute_value): New arg reader. Delete args abfd, cu.
3779 All callers updated.
3780 (read_attribute): New arg reader. Delete args abfd, cu.
3781 All callers updated.
3782 (load_full_type_unit): Add assert.
3783 (read_signatured_type_reader): New function.
3784 (read_signatured_type): Rewrite.
3785 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3786 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3787 All callers updated. Set per_cu->cu = NULL after freeing it.
3788 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3789 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3790 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3791 (set_die_type): Update.
3792 (get_die_type_at_offset): Update.
3793 (read_file_scope): Call prepare_one_comp_unit.
3794 (read_type_unit_scope): Ditto.
3795 (prepare_one_comp_unit): Set producer if present.
3797 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
3799 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3800 gettext function on `error'.
3802 2012-04-27 Doug Evans <dje@google.com>
3804 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3807 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3808 Tom Tromey <tromey@redhat.com>
3810 * breakpoint.c (struct breakpoint_objfile_data)
3811 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3812 <exception_probes>: New fields.
3813 (free_breakpoint_probes): New function.
3814 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3815 `_Unwind_DebugHook'.
3816 (create_exception_master_breakpoint): Likewise.
3817 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3818 * infrun.c: Including necessary header files for handling SystemTap
3820 (handle_inferior_event): Handling longjmp breakpoint and exceptions
3821 via SystemTap probes.
3822 (check_exception_resume): Remove `func' argument. Handle exception
3823 unwinding breakpoint set via a SystemTap probe.
3824 (insert_exception_resume_from_probe): New function.
3826 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3827 Tom Tromey <tromey@redhat.com>
3828 Jan Kratochvil <jan.kratochvil@redhat.com>
3830 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
3831 (COMMON_OBS): Likewise.
3832 (HFILES_NO_SRCDIR): Add `probe'.
3833 * NEWS: Mention support for static and SystemTap probes.
3834 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
3835 SystemTap probes' arguments parser.
3836 * arm-linux-tdep.c: Including headers needed to perform the parsing
3837 of SystemTap probes' arguments.
3838 (arm_stap_is_single_operand): New function.
3839 (arm_stap_parse_special_token): Likewise.
3840 (arm_linux_init_abi): Initializing proper fields used by SystemTap
3841 probes' arguments parser.
3842 * ax-gdb.c (require_rvalue): Removing static declaration.
3843 (gen_expr): Likewise.
3844 * ax-gdb.h (gen_expr): Declaring function.
3845 (require_rvalue): Likewise.
3846 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
3847 (bkpt_probe_breakpoint_ops): New variable.
3848 (momentary_breakpoint_from_master): Set the `probe' value.
3849 (add_location_to_breakpoint): Likewise.
3850 (break_command_1): Using proper breakpoint_ops according to the
3851 argument passed by the user in the command line.
3852 (bkpt_probe_insert_location): New function.
3853 (bkpt_probe_remove_location): Likewise.
3854 (bkpt_probe_create_sals_from_address): Likewise.
3855 (bkpt_probe_decode_linespec): Likewise.
3856 (tracepoint_probe_create_sals_from_address): Likewise.
3857 (tracepoint_probe_decode_linespec): Likewise.
3858 (tracepoint_probe_breakpoint_ops): New variable.
3859 (trace_command): Using proper breakpoint_ops according to the
3860 argument passed by the user in the command line.
3861 (initialize_breakpoint_ops): Initializing breakpoint_ops for
3862 static probes on breakpoints and tracepoints.
3863 * breakpoint.h (struct bp_location) <probe>: New field.
3864 * cli-utils.c (skip_spaces_const): New function.
3865 (extract_arg): Likewise.
3866 * cli-utils.h (skip_spaces_const): Likewise.
3867 (extract_arg): Likewise.
3868 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
3869 * configure.ac: Append `stap-probe.o' to be generated when ELF
3871 * configure: Regenerate.
3872 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
3873 * elfread.c: Include `probe.h' and `arch-utils.h'.
3874 (probe_key): New variable.
3875 (elf_get_probes): New function.
3876 (elf_get_probe_argument_count): Likewise.
3877 (elf_evaluate_probe_argument): Likewise.
3878 (elf_compile_to_ax): Likewise.
3879 (elf_symfile_relocate_probe): Likewise.
3880 (stap_probe_key_free): Likewise.
3881 (elf_probe_fns): New variable.
3882 (elf_sym_fns): Add `sym_probe_fns' value.
3883 (elf_sym_fns_lazy_psyms): Likewise.
3884 (elf_sym_fns_gdb_index): Likewise.
3885 (_initialize_elfread): Initialize objfile cache for static
3887 * gdb_vecs.h (struct probe): New forward declaration.
3888 (probe_p): New VEC declaration.
3889 * gdbarch.c: Regenerate.
3890 * gdbarch.h: Regenerate.
3891 * gdbarch.sh (stap_integer_prefix): New variable.
3892 (stap_integer_suffix): Likewise.
3893 (stap_register_prefix): Likewise.
3894 (stap_register_suffix): Likewise.
3895 (stap_register_indirection_prefix): Likewise.
3896 (stap_register_indirection_suffix): Likewise.
3897 (stap_gdb_register_prefix): Likewise.
3898 (stap_gdb_register_suffix): Likewise.
3899 (stap_is_single_operand): New function.
3900 (stap_parse_special_token): Likewise.
3901 (struct stap_parse_info): Forward declaration.
3902 * i386-tdep.c: Including headers needed to perform the parsing
3903 of SystemTap probes' arguments.
3904 (i386_stap_is_single_operand): New function.
3905 (i386_stap_parse_special_token): Likewise.
3906 (i386_elf_init_abi): Initializing proper fields used by SystemTap
3907 probes' arguments parser.
3908 * i386-tdep.h (i386_stap_is_single_operand): New function.
3909 (i386_stap_parse_special_token): Likewise.
3910 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
3911 * mipsread.c (ecoff_sym_fns): Likewise.
3912 * objfiles.c (objfile_relocate1): Support relocation for static
3914 * parse.c (prefixify_expression): Remove static declaration.
3915 (initialize_expout): Likewise.
3916 (reallocate_expout): Likewise.
3917 * parser-defs.h (initialize_expout): Declare function.
3918 (reallocate_expout): Likewise.
3919 (prefixify_expression): Likewise.
3920 * ppc-linux-tdep.c: Including headers needed to perform the parsing
3921 of SystemTap probes' arguments.
3922 (ppc_stap_is_single_operand): New function.
3923 (ppc_stap_parse_special_token): Likewise.
3924 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
3925 probes' arguments parser.
3926 * probe.c: New file, for generic statically defined probe support.
3927 * probe.h: Likewise.
3928 * s390-tdep.c: Including headers needed to perform the parsing of
3929 SystemTap probes' arguments.
3930 (s390_stap_is_single_operand): New function.
3931 (s390_gdbarch_init): Initializing proper fields used by SystemTap
3932 probes' arguments parser.
3933 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
3934 * stap-probe.c: New file, for SystemTap probe support.
3935 * stap-probe.h: Likewise.
3936 * symfile.h: Include `gdb_vecs.h'.
3937 (struct sym_probe_fns): New struct.
3938 (struct sym_fns) <sym_probe_fns>: New field.
3939 * symtab.c (init_sal): Initialize `probe' field.
3940 * symtab.h (struct probe): Forward declaration.
3941 (struct symtab_and_line) <probe>: New field.
3942 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
3944 (stop_tracing): Likewise.
3945 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
3947 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3948 Tom Tromey <tromey@redhat.com>
3950 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
3951 and to compile agent expressions.
3952 * infrun.c (siginfo_make_value): New argument `ignore'.
3953 (siginfo_funcs): New struct.
3954 (_initialize_infrun): New argument when calling
3955 `create_internalvar_type_lazy'.
3956 * thread.c (thread_id_make_value): New argument `ignore'.
3957 (thread_funcs): New struct.
3958 (_initialize_thread): New argument when calling
3959 `create_internalvar_type_lazy'.
3960 * tracepoint.c (sdata_make_value): New argument `ignore'.
3961 (sdata_funcs): New struct.
3962 (_initialize_tracepoint): New argument when calling
3963 `create_internalvar_type_lazy'.
3964 * value.c (make_value): New struct.
3965 (create_internalvar_type_lazy): New argument `data'.
3966 (compile_internalvar_to_ax): New function.
3967 (value_of_internalvar): Properly handling `make_value' case.
3968 (clear_internalvar): Likewise.
3969 (show_convenience): Adding `TRY_CATCH' block.
3970 * value.h (internalvar_make_value): Delete, replace by...
3971 (struct internalvar_funcs): ... this.
3972 (create_internalvar_type_lazy) <fun>: Delete argument.
3973 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
3974 (compile_internalvar_to_ax): New function.
3975 * windows-tdep.c (tlb_make_value): New argument `ignore'.
3976 (tlb_funcs): New struct.
3977 (_initialize_windows_tdep): New argument when calling
3978 `create_internalvar_type_lazy'.
3980 2012-04-27 Mark Wielaard <mjw@redhat.com>
3982 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
3983 see whether it is an address or a constant offset from DW_AT_low_pc.
3984 (dwarf2_record_block_ranges): Likewise.
3985 (read_partial_die): Likewise.
3987 2012-04-26 Mark Wielaard <mjw@redhat.com>
3989 * MAINTAINERS (Write After Approval): Add myself to the list.
3991 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
3993 * proc-utils.h (proc_prettyprint_signalset): New prototype.
3994 (proc_prettyprint_signal): Likewise.
3995 (proc_prettyprint_faultset): Likewise.
3996 (proc_prettyprint_fault): Likewise.
3997 (proc_prettyprint_actionset): Likewise.
3998 (proc_prettyprint_flags): Move to new proc-flags.c section.
3999 (proc_prettyfprint_flags): New prototype.
4000 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4001 (proc_syscall, proc_cursig): Likewise.
4002 (proc_set_kill_on_last_close): Likewise.
4003 (proc_unset_kill_on_last_close): Likewise.
4004 (proc_set_watchpoint): Make static.
4005 (proc_delete_dead_threads): Likewise.
4006 (procfs_set_watchpoint): Likewise.
4007 (_initialize_procfs): Add prototype.
4008 * proc-events.c: Include proc-utils.h.
4009 (init_syscall_table): Make static.
4010 * proc-api.c (_initialize_proc_api): Add prototype.
4011 * proc-flags.c: Include proc-utils.h.
4013 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4015 * configure.ac: Add AC_ARG_PROGRAM.
4016 * configure: Regenerate.
4018 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4020 Fix DW_AT_lower_bound defaults for DWARF-4+.
4021 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4022 high. New variable low_default_is_valid. Implement DWARF-4+
4023 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4024 no default by the DWARF standard.
4026 2012-04-26 Maciej W. Rozycki <macro@mips.com>
4027 Maciej W. Rozycki <macro@codesourcery.com>
4029 * infrun.c (handle_inferior_event): Move the check for return
4030 trampolines ahead of the check for function trampolines.
4031 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4032 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4033 (mips_str_mips16_ret_stub): Likewise.
4034 (mips_str_call_fp_stub): Likewise.
4035 (mips_str_call_stub): Likewise.
4036 (mips_str_fn_stub): Likewise.
4037 (mips_str_pic): Likewise.
4038 (mips_in_frame_stub): New function.
4039 (mips_unwind_pc): Return the return address rather than the PC
4040 if the PC of an intermediate frame is inside a call thunk.
4041 (mips_is_stub_suffix): New function.
4042 (mips_is_stub_mode): Likewise.
4043 (mips_get_mips16_fn_stub_pc): Likewise.
4044 (mips_skip_mips16_trampoline_code): Update to handle all the
4045 currently generated stub types. Don't recurse into __fn_stub
4046 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4047 Use cooked register accesses.
4048 (mips_in_return_stub): Reintroduce function.
4049 (mips_skip_trampoline_code): Traverse trampolines recursively.
4050 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4052 2012-04-26 Joel Brobecker <brobecker@adacore.com>
4056 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4058 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4059 * features/arm-with-m-vfp-d16.xml: New file. Describes
4060 Cortex-M with VFPv4-sp-d16 FPU register layout.
4061 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4062 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4063 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4064 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4065 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4067 2012-04-25 Doug Evans <dje@google.com>
4069 * cli/cli-decode.c (print_doc_line): Use stream instead of
4072 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4074 * features/arm-with-iwmmxt.c: Regenerate.
4075 * features/arm-with-m-fpa-layout.c: Likewise.
4076 * features/arm-with-m.c: Likewise.
4077 * features/arm-with-neon.c: Likewise.
4078 * features/arm-with-vfpv2.c: Likewise.
4079 * features/arm-with-vfpv3.c: Likewise.
4080 * features/mips-dsp-linux.c: Likewise.
4081 * features/mips-linux.c: Likewise.
4082 * features/mips64-dsp-linux.c: Likewise.
4083 * features/mips64-linux.c: Likewise.
4084 * features/s390-linux32.c: Likewise.
4085 * features/s390-linux32v1.c: Likewise.
4086 * features/s390-linux32v2.c: Likewise.
4087 * features/s390-linux64.c: Likewise.
4088 * features/s390-linux64v1.c: Likewise.
4089 * features/s390-linux64v2.c: Likewise.
4090 * features/s390x-linux64.c: Likewise.
4091 * features/s390x-linux64v1.c: Likewise.
4092 * features/s390x-linux64v2.c: Likewise.
4093 * features/tic6x-c62x-linux.c: Likewise.
4094 * features/tic6x-c62x.c: Likewise.
4095 * features/tic6x-c64x-linux.c: Likewise.
4096 * features/tic6x-c64x.c: Likewise.
4097 * features/tic6x-c64xp-linux.c: Likewise.
4098 * features/tic6x-c64xp.c: Likewise.
4099 * target-descriptions.c: Only generate `field_type' and `type'
4100 variables when needed.
4102 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4104 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4106 2012-04-25 Doug Evans <dje@google.com>
4108 Initial pass at Go language support.
4110 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4112 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4113 (YYFILES): Add go-exp.c.
4114 (YYOBJ): Add go-exp.o.
4115 (local-maintainer-clean): Delete go-exp.c.
4116 * defs.h (enum language): Add language_go.
4117 * dwarf2read.c: #include "go-lang.h".
4118 (fixup_go_packaging): New function.
4119 (process_full_comp_unit): Call it when processing Go CUs.
4120 (dwarf2_physname): Add Go support.
4121 (read_file_scope): Handle missing language spec for GNU Go.
4122 (set_cu_language): Handle DW_LANG_Go.
4123 * go-exp.y: New file.
4124 * go-lang.h: New file.
4125 * go-lang.c: New file.
4126 * go-typeprint.c: New file.
4127 * go-valprint.c: New file.
4128 * symtab.c: #include "go-lang.h".
4129 (symbol_set_language): Handle language_go.
4130 (symbol_find_demangled_name, symbol_set_names): Ditto.
4131 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4133 2012-04-24 Jim Meyering <meyering@redhat.com>
4135 avoid a few strncpy-induced buffer overruns
4136 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4137 fname and psargs before trying to concatenate.
4138 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4139 "name" before applying strchr.
4141 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4143 * CONTRIBUTE: Use unified diff instead of context diff when
4146 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4148 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4149 code. Handle JR.HB correctly.
4151 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4154 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4155 with the other MIPS16 helpers.
4157 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4159 * observer.sh: Conditionally declare `args', thus cleaning up
4160 unused instances of this variable.
4162 2012-04-24 Yao Qi <yao@codesourcery.com>
4164 Revert this patch to allow breakpoint always-inserted
4166 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4167 * breakpoint.c: Include record.h.
4168 (breakpoints_always_inserted_mode): Return false when the record
4171 * breakpoint.c (iterate_over_bp_locations): New.
4172 * breakpoint.h: Declare.
4173 New typedef walk_bp_location_callback.
4174 * record.c (record_open): Call record_init_record_breakpoints.
4175 (record_sync_record_breakpoints): New.
4176 (record_init_record_breakpoints): New.
4177 * NEWS: Mention supporting breakpoint always-inserted mode in
4180 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4182 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4185 2012-04-24 Yao Qi <yao@codesourcery.com>
4187 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4188 (is_catchpoint): ... it.
4189 (print_one_breakpoint_location): Caller update.
4190 * breakpoint.h: Update declaration.
4192 2012-04-23 David S. Miller <davem@davemloft.net>
4194 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4196 2012-04-23 Tom Tromey <tromey@redhat.com>
4198 * buildsym.c (add_free_pendings): Remove.
4199 * buildsym.h (add_free_pendings): Remove.
4201 2012-04-23 Doug Evans <dje@google.com>
4203 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4204 attr.u.unsnd instead of attr.u.addr.
4205 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4206 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4208 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4209 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4211 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4213 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4215 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4216 (mips_o32_return_value): Likewise.
4217 (mips_o64_return_value): Likewise.
4219 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4221 * ada-lang.c (ada_evaluate_subexp): Add cases for
4222 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4223 their treatment in eval.c.
4225 2012-04-21 David S. Miller <davem@davemloft.net>
4227 * sparc-tdep.c (X_DISP10): Define.
4228 (sparc_analyze_control_transfer): Handle compare-and-branch.
4230 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4232 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4233 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4235 2012-04-20 Nigel Stephens <nigel@mips.com>
4236 Maciej W. Rozycki <macro@codesourcery.com>
4238 * mips-tdep.c (mips_float_register_p): New function.
4239 (mips_convert_register_float_case_p): Use mips_float_register_p.
4240 (mips_register_type): Likewise.
4241 (mips_print_register): Likewise.
4242 (print_gp_register_row): Likewise.
4243 (mips_print_registers_info): Likewise.
4245 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4247 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4250 2012-04-20 Andrew Pinski <apinski@cavium.com>
4252 * MAINTAINERS (Write After Approval): Add myself to the list.
4254 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4256 * MAINTAINERS: Update my e-mail address.
4258 2012-04-20 Pedro Alves <palves@redhat.com>
4260 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4262 * configure: Regenerate.
4264 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4266 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4268 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4270 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4272 Fix compilation compatibility with python-2.4
4273 * python/py-type.c (convert_field): Cast ADDRSTRING for
4274 PyObject_SetAttrString as non-const. New comment.
4276 2012-04-19 Tom Tromey <tromey@redhat.com>
4278 * top.c (quit_target): Use all_cleanups.
4279 * main.c (captured_command_loop): Use all_cleanups.
4280 * exceptions.c (throw_exception): Use all_cleanups.
4282 2012-04-19 Pedro Alves <palves@redhat.com>
4284 * Makefile.in (GNULIB_BUILDDIR): New.
4285 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4286 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4287 (CLEANDIRS). Remove gnulib/import.
4288 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4290 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4291 (gnulib/import/Makefile): Replace gnulib/import with
4292 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4293 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4294 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4295 acx_configure_dir.m4.
4296 * acinclude.m4: Include acx_configure_dir.m4.
4297 * acx_configure_dir.m4: New file.
4298 * aclocal.m4: Regenerate.
4299 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4300 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4301 (GNULIB): New variable.
4302 (GNULIB_STDINT_H): Adjust.
4303 (AC_OUTPUT): Don't output gnulib/Makefile.
4304 * gdb/defs.h: Include build-gnulib/config.h.
4305 * aclocal.m4: Regenerate.
4306 * config.in: Regenerate.
4307 * configure: Regenerate.
4309 * gnulib/Makefile.in: New file.
4310 * gnulib/configure.ac: New file.
4311 * gnulib/aclocal.m4: New file.
4312 * gnulib/config.in: New file.
4313 * gnulib/configure: New file.
4314 * gnulib/: Re-run gnulib-tool to adjust.
4316 2012-04-19 Doug Evans <dje@google.com>
4318 * cleanups.h (struct cleanup): Move to cleanups.c.
4319 (make_cleanup_dtor_ftype): New typedef.
4320 (make_cleanup_dtor): Use it.
4321 (ALL_CLEANUPS): Replace with ...
4322 (all_cleanups): ... this. Declare. All uses updated.
4323 * cleanups.c: #include "gdb_assert.h".
4324 (sentinel_cleanup): New static global.
4325 (SENTINEL_CLEANUP): Define.
4326 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4327 (make_my_cleanup2): Assert result is non-NULL.
4328 (all_cleanups): New function.
4329 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4332 2012-04-19 Pedro Alves <palves@redhat.com>
4334 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4335 Adjust paths to gnulib imported files.
4337 2012-04-19 Pedro Alves <palves@redhat.com>
4339 * gnulib/: Move whole directory ...
4340 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4341 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4342 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4343 (aclocal_m4_deps): Adjust.
4344 * aclocal.m4: Regenerate.
4345 * configure: Regenerate.
4346 * configure.ac: Adjust AC_OUTPUT output.
4348 2012-04-19 Yao Qi <yao@codesourcery.com>
4350 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4352 * vec.c: Move it ...
4353 * common/vec.c: ... here.
4354 * vec.h: Move it ...
4355 * common/vec.h: ... here.
4357 2012-04-19 Yao Qi <yao@codesourcery.com>
4359 * gdb-code-style.el: New.
4361 2012-04-18 Pedro Alves <palves@redhat.com>
4363 Update gnulib from latest git.
4364 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4366 * gnulib/Makefile.am: Update.
4367 * gnulib/dummy.c: Update.
4368 * gnulib/extra/arg-nonnull.h: Update.
4369 * gnulib/extra/c++defs.h: Update.
4370 * gnulib/extra/update-copyright: Update.
4371 * gnulib/extra/warn-on-use.h: Update.
4372 * gnulib/inttypes.in.h: Update.
4373 * gnulib/m4/00gnulib.m4: Update.
4374 * gnulib/m4/extensions.m4: Update.
4375 * gnulib/m4/gnulib-cache.m4: Update.
4376 * gnulib/m4/gnulib-common.m4: Update.
4377 * gnulib/m4/gnulib-comp.m4: Update.
4378 * gnulib/m4/gnulib-tool.m4: Update.
4379 * gnulib/m4/include_next.m4: Update.
4380 * gnulib/m4/inttypes-pri.m4: Update.
4381 * gnulib/m4/inttypes.m4: Update.
4382 * gnulib/m4/longlong.m4: Update.
4383 * gnulib/m4/memchr.m4: Update.
4384 * gnulib/m4/memmem.m4: Update.
4385 * gnulib/m4/mmap-anon.m4: Update.
4386 * gnulib/m4/multiarch.m4: Update.
4387 * gnulib/m4/onceonly.m4: Update.
4388 * gnulib/m4/stddef_h.m4: Update.
4389 * gnulib/m4/stdint.m4: Update.
4390 * gnulib/m4/string_h.m4: Update.
4391 * gnulib/m4/warn-on-use.m4: Update.
4392 * gnulib/m4/wchar_h.m4: Update.
4393 * gnulib/m4/wchar_t.m4: Update.
4394 * gnulib/m4/wint_t.m4: Update.
4395 * gnulib/memchr.c: Update.
4396 * gnulib/memmem.c: Update.
4397 * gnulib/stddef.in.h: Update.
4398 * gnulib/stdint.in.h: Update.
4399 * gnulib/str-two-way.h: Update.
4400 * gnulib/string.in.h: Update.
4401 * gnulib/wchar.in.h: Update.
4403 * gnulib/extra/arg-nonnull.h: Delete.
4404 * gnulib/extra/c++defs.h: Delete.
4405 * gnulib/extra/warn-on-use.h: Delete.
4406 * gnulib/m4/wchar_h.m4: Delete.
4407 * gnulib/m4/wint_t.m4: Delete.
4408 * gnulib/wchar.in.h: Delete.
4410 * gnulib/extra/snippets/arg-nonnull.h: New.
4411 * gnulib/extra/snippets/c++defs.h: New.
4412 * gnulib/extra/snippets/warn-on-use.h: New.
4414 * aclocal.m4: Regenerate.
4415 * config.in: Regenerate.
4416 * configure: Regenerate.
4417 * gnulib/Makefile.in: Regenerate.
4419 2012-04-18 Pedro Alves <palves@redhat.com>
4421 Reimport the update-copyright module from gnulib
4422 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4424 * configure: Regenerate.
4425 * gnulib/Makefile.am: Update.
4426 * gnulib/Makefile.in: Regenerate.
4427 * gnulib/extra/update-copyright: Update.
4428 * gnulib/m4/gnulib-cache.m4: Update.
4429 * gnulib/m4/gnulib-comp.m4: Update.
4431 2012-04-18 Tristan Gingold <gingold@adacore.com>
4433 * configure.ac (aix): Put -lpthread into libs.
4434 * configure: Regenerate.
4436 2012-04-18 Tom Tromey <tromey@redhat.com>
4438 * linespec.c (convert_linespec_to_sals): Don't use
4440 (compare_msymbols): Arguments are minsym_and_objfile, not
4441 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4443 2012-04-18 Pedro Alves <palves@redhat.com>
4445 Revert gnulib/ part of:
4446 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4447 Copyright year update in most files (performed by copyright.sh).
4449 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4451 Fix 64-bit constants on 32-bit hosts.
4452 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4453 from unsigned long to ULONGEST.
4454 (read_signed_leb128): Change declaration return type from long to
4456 (dwarf2_const_value_attr): Change declaration parameter value from long
4458 (dwarf2_compute_name): Change variable value from long to LONGEST.
4459 (read_unsigned_leb128): Change return type, variable result and some
4460 casts from unsigned long to ULONGEST.
4461 (read_signed_leb128): Change return type, variable result and some
4462 casts from long to LONGEST.
4463 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4464 value from long to LONGEST.
4465 (dwarf2_const_value): Change variable value from long to LONGEST.
4466 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4467 plongest and hex_string.
4468 * symtab.h (struct general_symbol_info): Change ivalue from long to
4469 LONGEST, remove the comment.
4470 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4471 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4473 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4476 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4477 * ada-lang.c (ada_discrete_type_high_bound)
4478 (ada_discrete_type_low_bound): Fix function comment. Use
4479 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4480 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4481 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4482 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4483 Use TYPE_FIELD_ENUMVAL.
4484 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4485 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4486 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4487 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4489 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4490 * dwarf2read.c (process_enumeration_scope): Likewise.
4491 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4493 (class StructMainTypePrettyPrinter): Support also
4494 FIELD_LOC_KIND_ENUMVAL.
4495 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4497 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4498 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4499 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4500 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4502 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4503 accommodate enumval.
4504 (struct call_site): Adjust loc_kind to accommodate enumval.
4505 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4506 (TYPE_FIELD_ENUMVAL): New macros.
4507 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4508 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4510 * p-typeprint.c (pascal_type_print_base): Likewise.
4511 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4513 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4514 * python/py-type.c (convert_field): New variable addrstring. Use
4515 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4516 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4517 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4518 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4520 * valprint.c (generic_val_print): Likewise.
4522 2012-04-17 Doug Evans <dje@google.com>
4524 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4526 * dwarf2read.c: Whitespace fixes.
4527 (lookup_signatured_type): Tweak comment.
4528 (get_die_type_at_offset): Fix comment.
4530 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4532 * xcoffread.c (xcoff_secnum_to_sections): New function.
4533 (secnum_to_section, secnum_to_bfd_section): Reimplement
4534 using xcoff_secnum_to_sections. Rename "secnum" parameter
4536 (RECORD_MINIMAL_SYMBOL): Delete.
4537 (record_minimal_symbol): New function.
4538 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4539 by call to record_minimal_symbol and set misc_func_recorded
4540 to 1. Set last_csect_sec to the XCOFF section index instead
4541 of GDB's section_offset index. Update calls to
4542 prim_record_minimal_symbol_and_info to pass the BFD section
4545 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4547 * xcoffread.c (read_xcoff_symtab): Delete variables
4548 last_csect_val and last_csect_sec and associated code.
4550 2012-04-17 Doug Evans <dje@google.com>
4552 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4553 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4554 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4555 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4557 * cleanups.h: New file.
4558 * cleanups.c: New file.
4559 * Makefile.in (SFILES): Add cleanups.c.
4560 (HFILES_NO_SRCDIR): Add cleanups.h.
4561 (COMMON_OBS): Add cleanups.o.
4562 * defs.h (struct cleanup): Moved to cleanups.h.
4563 (do_cleanups,do_final_cleanups): Ditto.
4564 (discard_cleanups,discard_final_cleanups): Ditto
4565 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4566 (save_cleanups,save_final_cleanups): Ditto.
4567 (restore_cleanups,restore_final_cleanups): Ditto.
4568 (null_cleanup): Ditto.
4569 (make_my_cleanup,make_my_cleanup2): Ditto.
4570 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4571 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4572 (do_cleanups,do_final_cleanups): Ditto.
4573 (discard_cleanups,discard_final_cleanups): Ditto
4574 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4575 (save_cleanups,save_final_cleanups): Ditto.
4576 (restore_cleanups,restore_final_cleanups): Ditto.
4577 (null_cleanup): Ditto.
4578 (make_my_cleanup,make_my_cleanup2): Ditto.
4579 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4581 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4583 (make_cleanup_dyn_string_delete): Ditto.
4584 (make_cleanup_ui_file_delete): Ditto.
4585 (make_cleanup_ui_out_redirect_pop): Ditto.
4586 (make_cleanup_free_section_addr_info): Ditto.
4587 (make_cleanup_restore_integer): Ditto.
4588 (make_cleanup_unpush_target): Ditto.
4589 (make_cleanup_value_free_to_mark): Ditto.
4590 (make_cleanup_value_free): Ditto.
4591 (make_cleanup_free_so): Ditto.
4593 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4595 New option "set debug auto-load".
4596 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4597 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4598 (auto_load_safe_path_vec_update)
4599 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4601 (file_is_auto_load_safe): New parameters debug_fmt and ....
4602 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4603 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4604 caller by explanatory string.
4605 (_initialize_auto_load): Register "set debug auto-load".
4606 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4608 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4609 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4610 by explanatory string.
4611 * main.c (captured_main): Likewise.
4612 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4613 (source_section_scripts): Likewise.
4615 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4617 New option "set auto-load safe-path".
4618 * NEWS: New commands "set auto-load safe-path"
4619 and "show auto-load safe-path".
4620 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4621 (auto_load_safe_path, auto_load_safe_path_vec)
4622 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4623 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4624 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4625 (source_gdb_script_for_objfile): New variable is_safe. Call
4626 file_is_auto_load_safe. Return if it is not.
4627 (struct loaded_script): New field loaded.
4628 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4629 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4630 output "Missing" to "No".
4631 (_initialize_auto_load): New variable cmd. Initialize
4632 auto_load_safe_path. Register "set auto-load safe-path",
4633 "show auto-load safe-path" and "add-auto-load-safe-path".
4634 * auto-load.h (maybe_add_script): Add parameter loaded.
4635 (file_is_auto_load_safe): New declaration.
4636 * config.in: Regenerate.
4637 * configure: Regenerate.
4638 * configure.ac: New parameters --with-auto-load-safe-path
4639 and --without-auto-load-safe-path.
4640 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4641 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4642 * main.c (captured_main): Check file_is_auto_load_safe for
4644 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4645 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4646 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4649 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4651 auto-load: Implementation.
4652 * NEWS: New descriptions for "info auto-load",
4653 "info auto-load gdb-scripts", "info auto-load python-scripts",
4654 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4655 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4656 and "show auto-load-scripts". New description for "set auto-load",
4657 "show auto-load", "set auto-load gdb-scripts",
4658 "show auto-load gdb-scripts", "set auto-load python-scripts",
4659 "show auto-load python-scripts", "set auto-load local-gdbinit",
4660 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4661 "show auto-load libthread-db".
4662 * auto-load.c: Remove include python/python-internal.h. Add includes
4663 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4665 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4666 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4667 (gdbpy_global_auto_load): Rename to ...
4668 (global_auto_load): ... here.
4669 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4670 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4671 (script_language_gdb, source_gdb_script_for_objfile): New.
4672 (struct loaded_script): New field language.
4673 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4675 (maybe_add_script): Add parameter language. Drop redundant
4676 entry.full_path initialization. Initialize entry.language and
4678 (auto_load_objfile_script): Change parameter suffix to language.
4679 Remove the call of maybe_add_script.
4680 Call language->source_script_for_objfile.
4681 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4683 (collect_matching_scripts): Adjust it for
4684 struct collect_matching_scripts_data.
4685 (auto_load_info_scripts_pattern_nl): New variable.
4686 (info_auto_load_scripts): Rename to ...
4687 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4688 for struct collect_matching_scripts_data.
4689 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4690 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4691 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4692 (auto_load_info_cmdlist_get): New.
4693 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4694 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4695 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4696 "info auto-load local-gdbinit".
4697 * auto-load.h (struct script_language): New.
4698 (gdbpy_global_auto_load): Rename to ...
4699 (global_auto_load): ... here.
4700 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4701 (auto_load_local_gdbinit_loaded): New declarations.
4702 (maybe_add_script): New parameter language.
4703 (auto_load_objfile_script): Change parameter suffix to language.
4704 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4705 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4706 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4708 * linux-thread-db.c: Include auto-load.h and ctype.h.
4709 (auto_load_thread_db, show_auto_load_thread_db): New.
4710 (struct thread_db_info): New field filename.
4711 (delete_thread_db_info): Call xfree for FILENAME.
4712 (try_thread_db_load): Initialize FILENAME.
4713 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4714 if !AUTO_LOAD_THREAD_DB.
4715 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4716 (_initialize_thread_db): Install auto_load_thread_db
4717 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4718 as "info auto-load libthread-db".
4719 * main.c (captured_main): Rename gdbpy_global_auto_load to
4720 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4721 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4722 (print_gdb_help): Extend the help for 'local init file'.
4723 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4724 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4725 (auto_load_scripts): Rename to ...
4726 (auto_load_python_scripts): ... here, update the comment.
4727 (gdbpy_load_auto_script_for_objfile): New declaration.
4728 (show_auto_load_python_scripts, script_language_python)
4729 (gdbpy_load_auto_script_for_objfile): New.
4730 (source_section_scripts): Refactor the code.
4731 (load_auto_scripts_for_objfile): Rename to ...
4732 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4733 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4734 (info_auto_load_python_scripts): New.
4735 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4736 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4737 Register "set auto-load-scripts" as its deprecated alias. Register
4738 "info auto-load python-scripts". Register "info auto-load-scripts" as
4739 its deprecated alias.
4740 (load_auto_scripts_for_objfile): Rename to ...
4741 (gdbpy_load_auto_scripts_for_objfile): ... here.
4742 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4743 (gdbpy_load_auto_scripts_for_objfile): ... here.
4745 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4747 auto-load: Move files.
4748 * Makefile.in (SFILES): Add auto-load.c.
4749 (HFILES_NO_SRCDIR): Add auto-load.h.
4750 (COMMON_OBS): Add auto-load.o.
4751 (distclean): Change .gdbinit for gdb-gdb.gdb.
4752 * auto-load.c: New file, with parts from python/py-auto-load.c.
4753 * auto-load.h: New file, with parts from python/python.h.
4754 * configure: Regenerate.
4755 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4756 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4757 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4758 * main.c: Include auto-load.h.
4759 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4760 command.h, observer.h and progspace.h to auto-load.c. Add include
4762 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4763 (struct loaded_script, auto_load_pspace_data)
4764 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4765 (hash_loaded_script_entry, eq_loaded_script_entry)
4766 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4767 (maybe_add_script): Move to auto-load.c.
4768 (source_section_scripts): Change maybe_add_script parameters passing,
4769 use script_not_found_warning_print.
4770 (clear_section_scripts, auto_load_objfile_script)
4771 (auto_load_new_objfile, loaded_script_ptr)
4772 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4773 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4774 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4775 auto_load_new_objfile and info_auto_load_scripts initizations to
4777 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4779 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4782 * charset.c (find_charset_names): Remove variables ix and elt.
4783 Use free_char_ptr_vec.
4784 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4785 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4786 debugdir_end. New variable debugdir_len.
4787 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4788 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4790 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4791 and elt. Use free_char_ptr_vec.
4792 * source.c (add_path): Remove variables argv, arg and argv_index.
4793 New variables dir_vec, back_to, ix and name.
4794 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4795 make_cleanup_freeargv. Remove variable separator. Simplify the code
4796 no longer expecting DIRNAME_SEPARATOR.
4797 (openp): Remove variable p, p1 and len. New variables dir_vec,
4798 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4799 no longer expecting DIRNAME_SEPARATOR.
4800 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4801 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4803 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4804 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4805 (dirnames_to_char_ptr_vec): New functions.
4807 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4810 * source.c (add_path): Remove always true conditional 'p == 0' and
4811 unindent its code block.
4813 2012-04-17 Pedro Alves <palves@redhat.com>
4815 * gdbtypes.h (FIELD_BITPOS): Rename to ...
4816 (FIELD_BITPOS_LVAL): ... this.
4817 (FIELD_BITPOS): New.
4818 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4819 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
4820 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
4822 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
4824 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
4825 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
4826 * target-descriptions.c (tdesc_gdb_type): Adjust to use
4829 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4831 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
4832 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
4833 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
4834 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
4835 * jv-lang.c (java_link_class_type): Likewise, once.
4836 * stabsread.c (read_enum_type): Likewise.
4838 2012-04-16 Yao Qi <yao@codesourcery.com>
4840 * common/agent.c (agent_run_command): Add one more parameter `len'.
4842 * common/agent.h: Update declaration.
4843 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4845 (linux_child_static_tracepoint_markers_by_strid): Ditto.
4847 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
4850 * value.c (value_actual_type): New function.
4851 * value.h (value_actual_type): New declaration.
4852 * varobj.c (update_type_if_necessary): New function.
4853 (varobj_create): Call value_actual_type instead of
4855 (install_dynamic_child): distinct changed and type changed MI variable
4857 (update_dynamic_varobj_children): Updated for install_dynamic_child
4858 change. All callers updated.
4859 (varobj_update): Support for MI variable object type change if
4860 the value changed and RTTI is used to determine the type.
4861 (create_child_with_value): Call value_actual_type instead of
4863 (adjust_value_for_child_access): Extended with a new parameter which
4864 specify whether the given value should be casted to enclosing type.
4865 All callers updated.
4867 2012-04-14 Yao Qi <yao@codesourcery.com>
4869 Import gnulib module inttypes from git
4870 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4871 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
4872 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
4873 gnulib/m4/inttypes-pri.m4
4874 * aclocal.m4, config.in, configure: Regenerated.
4875 * gnulib/Makefile.am: Update.
4876 * gnulib/Makefile.in: Update.
4877 * gnulib/m4/gnulib-cache.m4: Update.
4878 * gnulib/m4/gnulib-comp.m4: Update.
4879 * gnulib/inttypes.in.h: New.
4880 * gnulib/m4/inttypes-pri.m4: New.
4881 * gnulib/m4/inttypes.m4: New.
4883 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
4885 * infrun.c (resume): Update PC address to the real PC after
4886 preparing to do displaced stepping.
4888 2012-04-12 Doug Evans <dje@google.com>
4890 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
4891 All callers updated.
4893 2012-04-12 Mark Kettenis <kettenis@gnu.org>
4895 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
4897 2012-04-12 Doug Evans <dje@google.com>
4899 * dwarf2read.c (create_all_type_units): Renamed from
4900 create_debug_types_hash_table. All callers updated.
4902 * dwarf2read.c (create_signatured_type_table_from_index): Rename
4903 local type_sig to sig_type, type_offset to type_offset_in_tu.
4904 (hash_signatured_type): Renamed from hash_type_signature,
4905 all callers updated.
4906 (eq_signatured_type): Renamed from eq_type_signature,
4907 all callers updated.
4908 (create_debug_types_hash_table): Rename local type_sig to sig_type.
4909 (process_enumeration_scope): Ditto.
4910 (lookup_signatured_type_at_offset): Ditto.
4911 (load_full_type_unit, read_signatured_type): Ditto.
4913 2012-04-12 Yao Qi <yao@codesourcery.com>
4915 * remote.c (async_remote_interrupt): Correct function name in
4917 (async_remote_interrupt_twice): Ditto.
4919 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
4921 * source.c (find_and_open_source): Consistently pass resulting
4922 full path through xfullpath.
4924 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4926 Provide more specific displaced-stepping memory error message.
4927 * infrun.c (displaced_step_prepare): New variable status. Call
4928 target_read_memory instead of read_memory, provide more specific
4931 2012-04-11 Tristan Gingold <gingold@adacore.com>
4934 * darwin-nat.c (darwin_execvp): Revert previous patch.
4936 2012-04-11 Tristan Gingold <gingold@adacore.com>
4939 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
4942 2012-04-11 Tristan Gingold <gingold@adacore.com>
4944 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
4947 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
4949 New command 'explore' which helps explore values and types in
4951 * NEWS: Add an entry about the new 'explore' command.
4952 * data-directory/Makefile.in: Add gdb/command/explore.py
4953 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
4954 command using the GDB Python API.
4956 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
4958 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
4959 extension in jump target calculation.
4961 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
4963 * mips-tdep.c (mips32_next_pc): Handle JALX.
4965 2012-04-10 Yao Qi <yao@codesourcery.com>
4967 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
4969 2012-04-10 Yao Qi <yao@codesourcery.com>
4971 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
4972 and gnulib/m4/gnulib-tool.m4.
4974 2012-04-10 Doug Evans <dje@google.com>
4976 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
4977 (load_partial_dies): Clarify comment.
4978 (find_partial_die): Support rereading type units.
4979 Clarify CU handling, if we know offset is in CU, don't search for the
4980 containing CU. Add comment regarding memory waste.
4982 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
4984 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
4985 i386/x32-avx and i386/x32-avx-linux.
4986 (i386/x32-expedite): New.
4987 (i386/x32-linux-expedite): Likewise.
4988 (i386/x32-avx-expedite): Likewise.
4989 (i386/x32-avx-linux-expedite): Likewise.
4990 ($(outdir)/i386/x32.dat): Likewise.
4991 ($(outdir)/i386/x32-linux.dat): Likewise.
4992 ($(outdir)/i386/x32-avx.dat): Likewise.
4993 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
4995 * features/i386/x32-avx-linux.xml: New file.
4996 * features/i386/x32-avx.xml: Likewise.
4997 * features/i386/x32-core.xml: Likewise.
4998 * features/i386/x32-linux.xml: Likewise.
4999 * features/i386/x32.xml: Likewise.
5001 * features/i386/x32-avx-linux.c: New. Generated.
5002 * features/i386/x32-avx.c: Likewise.
5003 * features/i386/x32-linux.c: Likewise.
5004 * features/i386/x32.c: Likewise.
5005 * regformats/i386/x32-avx-linux.dat: Likewise.
5006 * regformats/i386/x32-avx.dat: Likewise.
5007 * regformats/i386/x32-linux.dat: Likewise.
5008 * regformats/i386/x32.dat: Likewise.
5010 2012-04-10 Tristan Gingold <gingold@adacore.com>
5012 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5013 code to kill the inferior.
5015 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5017 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5019 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5021 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5022 (yyvsp): New defines.
5023 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5025 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5027 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5029 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5031 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5034 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5036 * sparc64-tdep.c (sparc64_store_arguments)
5037 (sparc64_store_arguments): Fix coding style.
5039 2012-04-07 Mark Kettenis <kettenis@gnu.org>
5041 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5042 complex floats, adjust some related comments and tighten a related
5044 (sparc64_extract_return_value): Handle complex floats.
5046 2012-04-07 Doug Evans <dje@google.com>
5048 * dwarf2read.c (load_partial_dies): Change condition to assert.
5050 2012-04-06 Doug Evans <dje@google.com>
5052 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5055 2012-04-05 Kevin Buettner <kevinb@redhat.com>
5057 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5059 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5060 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5063 2012-04-05 Keith Seitz <keiths@redhat.com>
5065 * linespec.c (decode_compound): Remove.
5066 (enum offset_relative_sign): New enum.
5067 (struct line_offset): New struct.
5068 (struct linespec): New struct.
5069 (struct linespec_state): Move file_symtabs,
5070 user_filename, and user_function into struct linespec.
5071 Make result an anonymous struct holding vectors of
5072 symbolp and minsym_and_objfile_d.
5073 Add language member.
5074 (enum ls_token_type): New enum.
5075 (linespec_keywords): New array.
5076 (struct ls_token): New struct.
5077 (struct ls_parser): New struct.
5078 (linespec_lexer_lex_number): New function.
5079 (linespec_lexer_lex_keyword): New function.
5080 (is_ada_operator): New function.
5081 (skip_quote_char): New function.
5082 (copy_token_string): New function.
5083 (is_closing_quote_enclosed): New function.
5084 (find_parameter_list_end): New function.
5085 (linespec_lexer_lex_string): New function.
5086 (linespec_lexer_lex_one): New function.
5087 (linespec_lexer_consume_token): New function.
5088 (linespec_lexer_peek_token): New function.
5089 (cplusplus_error): Remove unused function.
5090 (find_methods): Update comment.
5091 (find_toplevel_char): Return const.
5092 (is_objc_method_format): Remove unused function.
5093 (find_toplevel_string): New function.
5094 (is_linespec_boundary): Remove.
5095 (symbol_not_found_error): New function.
5096 (find_method_overload_end): Remove function.
5097 (unexpected_linespec_error): New function.
5098 (keep_name_info): Remove.
5099 (linespec_parse_line_offset): New function.
5100 (linespec_parse_basic): New function.
5101 (canonicalize_linespec): New function.
5102 (decode_line_internal): Remove.
5103 (create_sals_line_offset): New function adapted from
5105 (convert_linespec_to_sals): New function.
5106 (parse_linespec): New function.
5107 (linespec_parser_new): New function.
5108 (linespec_state_destructor): Change parameter type to
5109 struct linespec_state *.
5110 Add language parameter.
5111 Remove freeing of moved members.
5112 (linespec_parser_delete): New function.
5113 (decode_line_full): Use parse_linespec and linespec_parser_new.
5114 (decode_line_1): Likewise.
5115 (decode_indirect): Rename to ...
5116 (linespec_expression_to_pc): ... this and rewrite
5117 to simply find CORE_ADDR, storing this result for later
5119 (locate_first_half): Remove.
5120 (deocde_objc): Add parameter LS.
5121 Initialize new struct collect_info members.
5122 Handle minimal symbols, too.
5123 (decode_compound): Delete.
5124 (lookup_prefix_sym): Rewrite.
5125 (compare_msymbols): New function.
5126 (find_method): Rewrite.
5127 Do not call cplusplus_error.
5128 (symtabs_from_filename): Rewrite.
5129 (collect_function_symbols): Delete.
5130 (find_function_symbols): Rewrite without ARGPTR-style
5132 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5133 (decode_dollar): Adapted and renamed to ...
5134 (linespec_parse_variable): ... this.
5135 (find_linespec_symbols): New function.
5136 (decode_label): Adapted and renamed to ...
5137 (find_label_symbols): ... this.
5138 (decode_digits_list_mode): Add and use LS argument.
5139 (decode_digits_ordinary): Likewise.
5140 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5141 If in list mode, allow any symbol class. Otherwise, only
5142 permit LOC_BLOCK symbols.
5143 (minsym_found): Update comments.
5144 (search_minsyms_for_name): Do not convert the matching symbol
5145 into a SAL. Simply push the symbol and objfile into the
5147 (decode_variable): Delete. Contents adapted into
5148 find_linespec_symbols.
5150 * cp-support.c (SKIP_SPACE): Remove.
5151 (operator_tokens): Remove unused global.
5152 (cp_validate_operator): Remove.
5153 * cp-support.h (cp_validate_operator): Remove declaration.
5155 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5157 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5158 for TYPE_VPTR_FIELDNO.
5159 * valprint.c (valprint_check_validity): Make it global, move the
5160 function comment ...
5161 * value.h (valprint_check_validity): ... to this new declaration.
5163 2012-04-02 Tristan Gingold <gingold@adacore.com>
5165 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5166 the STATE32 api for i386 state.
5167 (i386_darwin_store_inferior_registers): Likewise.
5169 2012-04-02 Tristan Gingold <gingold@adacore.com>
5171 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5173 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5176 2012-04-02 Tristan Gingold <gingold@adacore.com>
5179 * darwin-nat.c (darwin_execvp): Set binary preference.
5181 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5183 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5185 2012-03-30 Tom Tromey <tromey@redhat.com>
5187 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5188 of TRY_CATCH. Fix error handling.
5189 * python/py-value.c (convert_value_from_python): Move 'old'
5190 declaration to innermost scope.
5192 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5193 Andrey Smirnov <andrew.smirnov@gmail.com>
5195 -Wshadow warning fix.
5196 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5197 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5198 Adjust code accordingly.
5200 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5202 * ada-lang.c (symbol_completion_add): Rename parameter
5203 "encoded" into "encoded_p". Ajust code and documentation
5206 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5207 Andrey Smirnov <andrew.smirnov@gmail.com>
5209 -Wshadow warning fix.
5210 * ada-lang.c (symbol_completion_add): Rename parameter
5211 "wild_match" into wild_match_p. Update code and documentation
5214 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5216 * ada-lang.c (symbol_completion_match): Rename parameter
5217 "encoded" into "encoded_p". Ajust code and documentation
5220 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5221 Andrey Smirnov <andrew.smirnov@gmail.com>
5223 -Wshadow warning fix.
5224 * ada-lang.c (symbol_completion_match): Rename parameter
5225 "wild_match" into "wild_match_p". Adjust code and function
5226 documentation accordingly.
5228 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5229 Andrey Smirnov <andrew.smirnov@gmail.com>
5231 -Wshadow warning fix.
5232 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5233 "symbol_info" into "info". Adjust code accordingly.
5234 (ada_lookup_symbol): Likewise.
5236 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5238 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5239 of this function's documentation.
5241 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5242 Andrey Smirnov <andrew.smirnov@gmail.com>
5244 -Wshadow warning fix.
5245 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5246 variable into "wild_match_p". Adjust code accordingly.
5248 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5249 Andrey Smirnov <andrew.smirnov@gmail.com>
5251 -Wshadow warning fix.
5252 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5253 parameter into "wild_match_p". Adjust code accordingly.
5254 Document this parameter in the function description.
5256 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5257 Andrey Smirnov <andrew.smirnov@gmail.com>
5259 -Wshadow warning fix.
5260 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5261 "wild_match" parameter to "wild_match_p" (-Wshadow).
5263 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5265 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5266 in function documentation.
5268 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5269 Andrey Smirnov <andrew.smirnov@gmail.com>
5271 -Wshadow warning fix.
5272 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5273 variable into wild_match_p. Adjust code accordingly.
5275 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5276 Andrey Smirnov <andrew.smirnov@gmail.com>
5278 * ada-valprint.c (ada_val_print_1): Move the code handling
5279 TYPE_CODE_ENUM inside its own lexical block. Declare
5280 variables len and val there, instead of in the function's
5281 top level block. Avoid declaring deref_val again in a way
5282 that shadows another variable of the same name declared
5283 in one of the up-level blocks. Just re-use the up-level
5286 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5288 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5289 Replace block_found argument by symbol_info. Adjust
5290 implementation accordingly. Add function documentation.
5291 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5293 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5294 * ada-exp.y (write_object_renaming): Adjust to new
5295 ada_lookup_encoded_symbol API.
5297 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5299 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5302 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5304 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5305 (v850_register_name): Add the mpu and fpu register names.
5306 (v850e_register_name): Add the mpu and fpu register names.
5307 (v850e2_register_name): New function.
5308 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5311 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5313 * NEWS: Add entry for Ada varobj support.
5315 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5317 * varobj.c (default_value_is_changeable_p): New function,
5318 extracted from varobj_value_is_changeable_p. Add declaration.
5319 (ada_value_is_changeable_p): New function, extracted from
5320 varobj_value_is_changeable_p. Add declaration.
5321 (struct language_specific): New field "value_is_changeable_p".
5322 (languages): Add entries for new field.
5323 (varobj_create): Set language before calling install_new_value.
5324 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5325 "value_is_changeable_p" language callback.
5327 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5329 * ada-varobj.h, ada-varobj.c: New files.
5330 * Makefile.in (SFILES): Add ada-varobj.c.
5331 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5332 (COMMON_OBS): Add ada-varobj.o.
5334 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5336 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5337 (struct language_specific): New field "value_has_mutated".
5338 (languages): Set field "value_has_mutated" in each entry of array.
5339 (varobj_value_has_mutated): New function.
5340 (varobj_udpdate): Add handling of type mutation.
5341 (value_of_root): Add handling of type mutation.
5342 (ada_value_has_mutated): New function.
5344 2012-03-28 Pedro Alves <palves@redhat.com>
5346 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5347 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5349 2012-03-28 Tom Tromey <tromey@redhat.com>
5351 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5352 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5355 2012-03-28 Tom Tromey <tromey@redhat.com>
5357 * .dir-locals.el: New file.
5359 2012-03-28 Pedro Alves <palves@redhat.com>
5361 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5363 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5365 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5368 2012-03-27 Pedro Alves <palves@redhat.com>
5370 Eliminate struct ui_stream.
5372 * ui-out.h (struct ui_stream): Delete.
5373 (ui_out_field_stream): Adjust prototype.
5374 (ui_out_stream_new, ui_out_stream_delete)
5375 (make_cleanup_ui_out_stream_delete): Delete declarations.
5376 * ui-out.c (ui_out_field_stream): Change prototype to take a
5377 ui_file instead of a ui_stream. Adjust.
5378 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5379 (make_cleanup_ui_out_stream_delete): Delete.
5380 * breakpoint.c (print_breakpoint_location)
5381 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5382 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5383 * disasm.c (dump_insns): Ditto.
5384 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5386 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5387 ui_stream/ui_out_stream_new.
5388 * infcmd.c (print_return_value): Ditto.
5389 * osdata.c (info_osdata_command): Don't allocate a local
5391 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5392 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5393 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5394 allocate a local ui_stream.
5395 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5396 instead of ui_stream/ui_out_stream_new.
5397 (list_args_or_locals): Don't allocate a local ui_stream.
5398 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5399 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5400 ui_stream/ui_out_stream_new.
5401 * cli/cli-setshow.c (do_setshow_command): Ditto.
5403 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5405 * arm-linux-tdep.c (arm_linux_init_abi): Call
5406 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5407 * arm-tdep.c (arm_process_record): New function.
5408 (deallocate_reg_mem): New function.
5409 (decode_insn): New function.
5410 (thumb_record_branch): New function.
5411 (thumb_record_ldm_stm_swi(): New function.
5412 (thumb_record_misc): New function.
5413 (thumb_record_ld_st_stack): New function.
5414 (thumb_record_ld_st_imm_offset): New function.
5415 (thumb_record_ld_st_reg_offset(): New function.
5416 (thumb_record_add_sub_cmp_mov): New function.
5417 (thumb_record_shift_add_sub): New function.
5418 (arm_record_coproc_data_proc): New function.
5419 (arm_record_coproc): New function.
5420 (arm_record_b_bl): New function.
5421 (arm_record_ld_st_multiple): New function.
5422 (arm_record_ld_st_reg_offset): New function.
5423 (arm_record_ld_st_imm_offset): New function.
5424 (arm_record_data_proc_imm): New function.
5425 (arm_record_data_proc_misc_ld_str): New function.
5426 (arm_record_extension_space): New function.
5427 (arm_record_strx): New function.
5428 (sbo_sbz): New function.
5429 (struct insn_decode_record): New structure for arm insn record.
5430 (REG_ALLOC): New macro for reg allocations.
5431 (MEM_ALLOC): New macro for memory allocations.
5432 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5434 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5436 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5437 (store_register): Likewise.
5439 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5441 * MAINTAINERS (Write After Approval): Add myself to the list.
5443 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5445 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5446 Describe also the option "auto".
5448 2012-03-22 Richard Henderson <rth@redhat.com>
5450 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5451 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5453 2012-03-22 Richard Henderson <rth@redhat.com>
5455 * jit.c (jit_read_code_entry): Compute alignment and offset of
5456 int64_t member before computing entry_size.
5458 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5460 Python scripting: Add new method Value.referenced_value to
5461 gdb.Value which can dereference pointer as well as reference
5463 * NEWS: Add entry under 'Python scripting' about the new method
5464 Value.referenced_value on gdb.Value objects.
5465 * python/py-value.c (valpy_referenced_value): New function
5466 defining a new method on gdb.Value objects which can dereference
5467 pointer and reference values.
5469 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5471 * MAINTAINERS (Write After Approval): Add myself to the list.
5473 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5475 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5476 in addition to "main".
5478 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5480 * expression.h (op_name): Add declaration.
5481 * expprint.c (op_name): Remove declaration. Make non-static.
5482 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5484 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5486 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5488 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5489 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5490 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5491 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5492 (linux_nat_get_siginfo): Likewise.
5493 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5494 (linux_nat_get_siginfo): Likewise.
5495 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5496 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5497 * procfs.c (gdb_siginfo_t): Likewise.
5499 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5501 * .gitignore: Ignore more files.
5503 2012-03-20 Pedro Alves <palves@redhat.com>
5505 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5508 2012-03-20 Yao Qi <yao@codesourcery.com>
5510 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5513 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5515 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5516 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5517 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5519 * dwarf2expr.h (cu_offset, sect_offset): New types.
5520 (struct dwarf_expr_context_funcs) <dwarf_call>
5521 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5523 (struct dwarf_expr_context) <len>: Improve the comment.
5524 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5525 cu_offset and sect_offset.
5526 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5527 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5528 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5529 * dwarf2loc.h: Include dwarf2expr.h.
5530 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5532 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5533 Improve the comment.
5534 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5535 (struct signatured_type, struct line_header, struct partial_die_info)
5536 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5537 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5538 (get_die_type_at_offset, create_cus_from_index)
5539 (create_signatured_type_table_from_index, dw2_get_file_names)
5540 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5541 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5542 (create_debug_types_hash_table, process_psymtab_comp_unit)
5543 (load_partial_comp_unit, create_all_comp_units)
5544 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5545 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5546 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5547 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5548 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5549 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5550 (find_partial_die, read_attribute_value, lookup_die_type)
5551 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5552 (is_ref_attr): New function comment.
5553 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5554 Use cu_offset and sect_offset.
5555 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5556 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5557 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5558 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5559 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5560 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5561 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5564 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5567 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5568 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5570 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5572 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5574 * NEWS: Describe new options --init-command=FILE, -ix and
5575 --init-eval-command=COMMAND, -iex.
5576 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5577 CMDARG_INIT_COMMAND.
5578 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5579 "init-command", "init-eval-command", "ix" and "iex" to the variable
5580 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5581 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5582 (print_gdb_help): Describe --init-command=FILE, -ix and
5583 --init-eval-command=COMMAND, -iex.
5585 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5588 * main.c (struct cmdarg): Move it here from main. Add more comments.
5589 (cmdarg_s, VEC (cmdarg_s)): New.
5590 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5591 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5592 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5593 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5596 2012-03-19 Tom Tromey <tromey@redhat.com>
5598 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5600 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5603 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5606 2012-03-16 Chris January <chris.january@allinea.com>
5608 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5611 2012-03-16 Chris January <chris.january@allinea.com>
5613 * source.c (add_path): Use memmove instead of strcpy because the
5616 2012-03-16 Joel Brobecker <brobecker@adacore.com>
5618 * value.h (set_value_parent): Add declaration.
5619 * value.c (set_value_parent): New function.
5620 (value_address): If VALUE->PARENT is not NULL, then use it as
5621 the base address instead of VALUE->LOCATION.address.
5622 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5623 the same as OBJ's address. Adjust V's offset accordingly.
5626 2012-03-16 Gary Benson <gbenson@redhat.com>
5628 PR breakpoints/10738
5629 * dwarf2read.c (use_deprecated_index_sections): New global.
5630 (struct partial_die_info): New member may_be_inlined.
5631 (read_partial_die): Set may_be_inlined where appropriate.
5632 (add_partial_subprogram): Add partial symbols for partial
5633 DIEs that may be inlined.
5634 (new_symbol_full): Add inlined subroutines to the current
5636 (write_psymtabs_to_index): Bump version number.
5637 (dwarf2_read_index): Read only version 6 indices unless
5638 use_deprecated_index_sections is set.
5639 * linespec.c (symbol_and_data_callback): New structure.
5640 (iterate_inline_only): New function.
5641 (iterate_over_all_matching_symtabs): New argument
5642 "include_inline". If nonzero, also call the callback for
5643 symbols representing inlined subroutines.
5644 (lookup_prefix_sym): Pass extra argument to the above.
5645 (find_function_symbols): Likewise.
5646 (add_matching_symbols_to_info): Likewise.
5647 * NEWS: Mention that GDB can now set breakpoints on inlined
5650 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5652 * p-typeprint.c (pascal_type_print_method_args):
5653 Fix display of parameter of methods.
5655 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5657 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5658 Add missing prototype.
5660 2012-03-16 Yao Qi <yao@codesourcery.com>
5661 Jan Kratochvil <jan.kratochvil@redhat.com>
5663 Fix false compilation warning.
5664 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5666 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5667 Pedro Alves <pedro@codesourcery.com>
5669 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5670 (arm_register_g_packet_guesses): New function.
5671 (arm_gdbarch_init): Don't force a target description with
5672 registers when the executable is detected as M-profile. Instead
5673 set gdbarch->tdep->is_m. Register `g' packet guesses.
5674 (_initialize_arm_tdep): Initialize the new target description.
5675 * features/arm-with-m-fpa-layout.xml: New description.
5676 * features/arm-with-m-fpa-layout.c: New, generated.
5678 2012-03-15 Joel Brobecker <brobecker@adacore.com>
5680 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5681 Update function description.
5682 (insert_bp_location): Do not wipe bl->target_info out.
5683 * mem-break.c: #include "gdb_string.h".
5684 (default_memory_insert_breakpoint): Do not call target_read_memory
5685 with a pointer to the breakpoint's shadow_contents buffer. Use
5686 a local buffer instead.
5687 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5689 2012-03-15 Tom Tromey <tromey@redhat.com>
5691 * NEWS: Mention "info vtbl", not "info vtable".
5692 * cp-support.c (info_vtbl_command): Fix comment.
5693 (_initialize_cp_support): Fix text.
5695 2012-03-15 Tom Tromey <tromey@redhat.com>
5697 * cp-valprint.c (cp_print_value_fields): Use
5698 print_function_pointer_address for vtable slot.
5700 2012-03-15 Tom Tromey <tromey@redhat.com>
5702 * gnu-v3-abi.c (struct value_and_voffset): New.
5703 (hash_value_and_voffset, eq_value_and_voffset)
5704 (compare_value_and_voffset, compute_vtable_size)
5705 (print_one_vtable, gnuv3_print_vtable): New functions.
5706 (init_gnuv3_ops): Initialize 'print_vtable' field.
5707 * cp-support.c (info_vtbl_command): New function.
5708 (_initialize_cp_support): Add "info vtbl".
5709 * cp-abi.h (cplus_print_vtable): Declare.
5710 (struct cp_abi_ops) <print_vtable>: New field.
5711 * cp-abi.c (cplus_print_vtable): New function.
5714 2012-03-15 Tom Tromey <tromey@redhat.com>
5716 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5717 iterate_over_symbols.
5719 2012-03-14 Doug Evans <dje@google.com>
5721 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5722 DW_OP_GNU_parameter_ref.
5724 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5726 Fix double prompt of 'interpreter-exec mi'.
5727 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5728 (mi_interpreter_resume): use it.
5729 (mi_execute_command_input_handler): New function.
5730 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5731 mi_execute_command_input_handler.
5733 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
5735 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5737 (darwin_debug_port_info): Make static.
5738 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5739 * machoread.c (_initialize_machoread): Add prototype.
5740 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5741 (i386_darwin_set_control, i386_darwin_get_control)
5742 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5743 i386_darwin_get_status, i386_darwin_get_control):
5744 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5746 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5748 * ax-gdb.c (gen_usual_unary): Remove special handling of
5749 enum and bool types.
5751 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5753 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5755 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5757 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5759 2012-03-13 Chris January <chris.january@allinea.com>
5761 * aix-thread.c (fill_sprs): Store the floating point registers
5762 at the correct offsets into vals.
5764 2012-03-13 Doug Evans <dje@google.com>
5766 * NEWS: Mention symbol-reloading has been deleted.
5767 * symfile.c (symbol_reloading): Delete.
5768 (show_symbol_reloading): Delete.
5769 (_initialize_symfile): Delete set/show symbol-reloading.
5771 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5772 read_in_chain until we have successfully read it in.
5773 (load_full_comp_unit): Ditto.
5774 (read_signatured_type): Add comment.
5776 2012-03-13 Chris January <chris.january@allinea.com>
5778 * stabsread.c (fix_common_block): Change type of valu argument
5781 2012-03-13 Chris January <chris.january@allinea.com>
5783 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5786 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5788 * common/linux-procfs.c (linux_proc_get_int): New, from
5789 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5791 (linux_proc_get_tgid): Only call linux_proc_get_int.
5792 (linux_proc_get_tracerpid): New.
5793 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5794 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5795 linux_proc_pid_has_state.
5796 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5797 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5798 (linux_ptrace_attach_warnings): New.
5799 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5801 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5802 (linux_nat_attach): New variables ex, buffer, message and message_s.
5803 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5805 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5807 * Makefile.in (linux-ptrace.o): New.
5808 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5810 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5811 * common/linux-ptrace.c: New file.
5812 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5813 * config/arm/linux.mh: Likewise.
5814 * config/i386/linux.mh: Likewise.
5815 * config/i386/linux64.mh: Likewise.
5816 * config/ia64/linux.mh: Likewise.
5817 * config/m32r/linux.mh: Likewise.
5818 * config/m68k/linux.mh: Likewise.
5819 * config/mips/linux.mh: Likewise.
5820 * config/pa/linux.mh: Likewise.
5821 * config/powerpc/linux.mh: Likewise.
5822 * config/powerpc/ppc64-linux.mh: Likewise.
5823 * config/powerpc/spu-linux.mh: Likewise.
5824 * config/s390/s390.mh: Likewise.
5825 * config/sparc/linux.mh: Likewise.
5826 * config/sparc/linux64.mh: Likewise.
5827 * config/xtensa/linux.mh: Likewise.
5828 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
5829 common/linux-procfs.c.
5830 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
5832 2012-03-13 Hui Zhu <teawater@gmail.com>
5833 Pedro Alves <palves@redhat.com>
5835 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
5836 CREATE_BREAKPOINT_FLAGS_INSERTED.
5837 (create_breakpoint_sal, create_breakpoints_sal)
5838 (base_breakpoint_create_breakpoints_sal)
5839 (tracepoint_create_breakpoints_sal)
5840 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
5842 (break_command_1, handle_gnu_v3_exceptions, trace_command)
5843 (ftrace_command, strace_command): Adjust.
5844 (create_tracepoint_from_upload): Pass
5845 CREATE_BREAKPOINT_FLAGS_INSERTED.
5846 * breakpoint.h (enum breakpoint_create_flags): New.
5847 (create_breakpoint): New flags parameter.
5848 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
5849 * python/py-breakpoint.c (bppy_init): Adjust.
5850 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
5851 * spu-tdep.c (spu_catch_start): Adjust.
5853 2012-03-13 Pedro Alves <palves@redhat.com>
5854 Hui Zhu <teawater@gmail.com>
5855 Yao Qi <yao@codesourcery.com>
5857 * remote.c (struct remote_state): New field `starting_up'.
5858 (remote_start_remote): Set and clear it.
5859 (remote_can_download_tracepoint): If starting up, return false.
5861 2012-03-13 Yao Qi <yao@codesourcery.com>
5863 * inferior.h (struct inferior): Remove fields any_syscall_count,
5864 syscalls_counts and total_syscalls_count. Move them to new
5865 struct catch_syscall_inferior_data in breakpoint.c.
5866 * breakpoint.c: Call DEF_VEC_I(int).
5867 (struct catch_syscall_inferior_data): New.
5868 (get_catch_syscall_inferior_data): New.
5869 (catch_syscall_inferior_data_cleanup): New.
5870 (insert_catch_syscall): Update to access data in
5871 struct catch_syscall_inferior_data.
5872 (insert_catch_syscall): Likewise.
5873 (remove_catch_syscall): Likewise.
5874 (remove_catch_syscall): Likewise.
5875 (is_syscall_catchpoint_enabled): Likewise.
5876 (add_catch_command): Likewise.
5877 (_initialize_breakpoint): Register cleanup.
5878 * breakpoint.h: Removed DEF_VEC_I(int).
5879 * dwarf2loc.c: Call DEF_VEC_I(int).
5880 * mi/mi-main.c: Likewise.
5882 2012-03-12 Mark Kettenis <kettenis@gnu.org>
5884 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
5886 2012-03-12 Chris January <chris.january@allinea.com>
5888 * aix-thread.c (_initialize_aix_thread): Add prototype.
5889 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
5890 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
5892 2012-03-12 Joel Brobecker <brobecker@adacore.com>
5894 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
5895 include of "amd64-nat.h".
5897 2012-03-12 Tom Tromey <tromey@redhat.com>
5899 * buildsym.c (record_pending_block): Now static.
5900 * buildsym.h: (record_pending_block): Remove.
5902 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
5904 * amd64bsd-nat.c: Include amd64bsd-nat.h.
5906 2012-03-09 Tom Tromey <tromey@redhat.com>
5908 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
5909 producer_is_gxx_lt_4_6>: New fields.
5910 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
5912 2012-03-09 Tom Tromey <tromey@redhat.com>
5914 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
5916 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5918 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
5921 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5923 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
5925 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5927 Fix -Wmissing-prototypes build.
5928 * arm-linux-nat.c (get_thread_id): Make it static.
5929 * xtensa-linux-nat.c (get_thread_id): Likewise.
5931 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5933 * server.c (process_point_options): If a conditional expression
5934 is found, only print a message if remote_debug is nonzero.
5936 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
5938 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
5939 of internal error for unknown/unsupported types.
5941 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5943 Fix CU relative vs. absolute DIE offsets.
5944 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
5945 offset to offset_in_cu.
5946 * dwarf2read.c (process_enumeration_scope): Add CU offset to
5948 (dwarf2_fetch_die_location_block): Rename parameter offset to
5949 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
5951 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5953 * libunwind-frame.c: Rename to ...
5954 * ia64-libunwind-tdep.c: ... here.
5955 * libunwind-frame.h: Rename to ...
5956 * ia64-libunwind-tdep.h: ... here.
5957 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
5958 ia64-libunwind-tdep.h.
5959 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
5960 * README (--with-libunwind): Rename to ...
5961 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
5962 * config.in: Regenerate.
5963 * configure: Regenerate.
5964 * configure.ac: New option --with-libunwind-ia64, make the
5965 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
5966 Remove AC_DEFINE for HAVE_LIBUNWIND.
5967 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
5968 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
5969 Rename libunwind-frame in the general comment.
5970 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
5971 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
5972 Move forward declarations inside #ifndef. Rename libunwind-frame in
5973 the general comment.
5974 * ia64-tdep.c: Rename libunwind-frame.h #include to
5975 ia64-libunwind-tdep.h.
5976 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
5977 (ia64_libunwind_descr): Rename libunwind-frame to
5978 ia64-libunwind-tdep in these function comments.
5979 * ia64-tdep.h: Rename libunwind-frame.h #include to
5980 ia64-libunwind-tdep.h.
5981 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
5982 ia64-libunwind-tdep in that data comment.
5984 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5986 * libunwind-frame.h (struct frame_unwind): New declaration.
5988 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5990 * breakpoint.c (_initialize_breakpoint): Fix error in help of
5991 "set breakpoint condition-evaluation" command.
5993 2012-03-08 Tristan Gingold <gingold@adacore.com>
5995 * sparc-stub.c: Move to stubs/
5996 * sh-stub.c: Likewise.
5997 * m68k-stub.c: Likewise.
5998 * m32r-stub.c: Likewise.
5999 * i386-stub.c: Likewise.
6001 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6003 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6004 linux_get_siginfo_type.
6006 * m68klinux-nat.c: Include "gdb_proc_service.h".
6007 (PTRACE_GET_THREAD_AREA): Define.
6008 (ps_get_thread_area): New function.
6010 2012-03-08 Yao Qi <yao@codesourcery.com>
6012 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6014 (remote_query_attached): Likewise.
6015 (remote_static_tracepoint_marker_at): Likewise.
6016 (remote_set_permissions): Likewise.
6017 (remote_detach_1, extended_remote_attach_1): Likewise.
6018 (send_g_packet, remote_vkill): Likewise.
6019 (extended_remote_disable_randomization): Likewise.
6020 (remote_add_target_side_condition): Likewise.
6021 (remote_insert_breakpoint): Likewise.
6022 (remote_remove_breakpoint): Likewise.
6023 (remote_insert_watchpoint): Likewise.
6024 (remote_remove_watchpoint): Likewise.
6025 (remote_insert_hw_breakpoint): Likewise.
6026 (remote_insert_hw_breakpoint): Likewise.
6027 (remote_remove_hw_breakpoint): Likewise.
6028 (remote_download_command_source): Likewise.
6029 (remote_download_tracepoint): Likewise.
6030 (remote_download_trace_state_variable): Likewise.
6031 (remote_disable_tracepoint): Likewise.
6032 (remote_trace_set_readonly_regions): Likewise.
6033 (remote_get_tracepoint_status): Likewise.
6034 (remote_trace_find): Likewise.
6035 (remote_get_trace_state_variable_value): Likewise.
6036 (remote_set_disconnected_tracing): Likewise.
6037 (remote_set_circular_trace_buffer): Likewise.
6038 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6039 (remote_use_agent): Likewise.
6040 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6043 2012-03-07 Pedro Alves <palves@redhat.com>
6045 * NEWS: Mention QProgramSignals.
6046 * inferior.h (update_signals_program_target): Declare.
6047 * infrun.c: (update_signals_program_target): New.
6048 (handle_command): Update the target of the new program signals
6050 * remote.c (PACKET_QProgramSignals): New enum.
6051 (last_program_signals_packet): New global.
6052 (remote_program_signals): New.
6053 (remote_start_remote): Update the target with the program signals
6055 (remote_protocol_features): Add entry for QPassSignals.
6056 (remote_open_1): Free anc clear last_program_signals_packet.
6057 (init_remote_ops): Install remote_program_signals.
6058 * target.c (update_current_target): Adjust.
6059 (target_program_signals): New.
6060 * target.h (struct target_ops) <to_program_signals>: New field.
6061 (target_program_signals): Declare.
6063 2012-03-07 Pedro Alves <palves@redhat.com>
6065 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6068 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6070 * m68klinux-nat.c (getregs_supplies): Make static.
6071 (getfpregs_supplies): Likewise.
6072 (have_ptrace_getregs): Likewise.
6074 2012-03-06 Joel Brobecker <brobecker@adacore.com>
6076 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6077 in call to get_die_type_at_offset.
6079 2012-03-06 Stan Shebs <stan@codesourcery.com>
6081 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6082 * mi/mi-cmd-disas.c: Ditto.
6083 * mi/mi-cmd-env.c: Ditto.
6084 * mi/mi-cmd-file.c: Ditto.
6085 * mi/mi-cmd-stack.c: Ditto.
6086 * mi/mi-cmd-target.c: Ditto.
6087 * mi/mi-cmd-var.c: Ditto.
6088 * mi/mi-cmds.c: Ditto.
6089 * mi/mi-cmds.h: Ditto.
6090 * mi/mi-console.c: Ditto.
6091 * mi/mi-getopt.c: Ditto.
6092 * mi/mi-getopt.h: Ditto.
6093 * mi/mi-interp.c: Ditto.
6094 * mi/mi-main.c: Ditto.
6095 * mi/mi-out.c: Ditto.
6096 * mi/mi-parse.c: Ditto.
6097 * mi/mi-parse.h: Ditto.
6098 * mi/mi-symbol-cmds.c: Ditto.
6100 * mi/mi-getopt.h: Move mi_opt struct up.
6101 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6103 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6105 2012-03-06 Tom Tromey <tromey@redhat.com>
6107 * proc-service.c (ps_pglobal_lookup): Set the current program
6110 2012-03-06 Pedro Alves <palves@redhat.com>
6112 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6114 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6116 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6118 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6121 * common/linux-osdata.c (linux_common_core_of_thread): New function
6123 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6124 call by linux_common_core_of_thread.
6125 (linux_nat_core_of_thread_1): Remove.
6126 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6127 * linux-thread-db.c: Include linux-osdata.h.
6128 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6129 linux_common_core_of_thread.
6131 2012-03-05 Tom Tromey <tromey@redhat.com>
6133 * value.c (value_primitive_field): Don't fetch contents for
6136 2012-03-05 Tom Tromey <tromey@redhat.com>
6138 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6140 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6142 * s390-nat.c: Include "gregset.h".
6144 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6146 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6147 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6148 (libunwind_load): New variable so_error, use it for dlerror. Try to
6149 load also LIBUNWIND_SO_7.
6151 2012-03-05 Pedro Alves <palves@redhat.com>
6153 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6154 is not NULL, and remove resulting dead code.
6156 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6158 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6159 prologue to sh_analyze_prologue.
6160 (sh_analyze_prologue): Make better use of such an upper limit, and
6161 generally be more cautious about accessing memory.
6163 2012-03-05 Tom Tromey <tromey@redhat.com>
6165 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6166 _initialize_ia64_hpux_tdep.
6168 2012-03-05 Pedro Alves <palves@redhat.com>
6172 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6173 the register state is clear, supply explicit zero, instead of
6174 marking the register unavailable.
6176 2012-03-05 Tristan Gingold <gingold@adacore.com>
6178 * NEWS: Mention OpenVMS ia64 new target.
6180 2012-03-05 Tristan Gingold <gingold@adacore.com>
6182 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6183 (ia64_unw_accessors, ia64_unw_rse_accessors)
6184 (ia64_libunwind_descr): Declare.
6185 * ia64-vms-tdep.c: New file.
6186 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6187 (ia64_libunwind_descr): Make them public.
6188 * configure.tgt: Add ia64-*-*vms*.
6189 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6190 (ALLDEPFILES): Add ia64-vms-tdep.c
6192 2012-03-05 Tristan Gingold <gingold@adacore.com>
6194 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6195 * remote.c (PACKET_qXfer_uib): New enum value.
6196 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6197 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6198 (_initialize_remote): Call add_packet_config_cmd for
6201 2012-03-05 Tristan Gingold <gingold@adacore.com>
6203 * osabi.c (gdb_osabi_names): Add OpenVMS.
6204 (generic_elf_osabi_sniffer): Likewise.
6205 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6207 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6209 Removed unused code.
6210 * libunwind-frame.c (libunwind_frame_unwind)
6211 (libunwind_frame_base_address): Remove.
6212 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6214 2012-03-04 Yao Qi <yao@codesourcery.com>
6216 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6217 remove trailing new line.
6218 (agent_run_command, agent_run_command): Add _ markup.
6219 (agent_capability_check): Likewise.
6221 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6223 * breakpoint.c (set_condition_evaluation_mode): Set
6224 CONDITION_EVALUATION_MODE unconditionally.
6226 2012-03-03 Yao Qi <yao@codesourcery.com>
6228 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6229 * common/agent.h: Update declaration.
6230 * inf-child.c (inf_child_use_agent): New.
6231 (inf_child_can_use_agent): New.
6232 (inf_child_target): Initialize fields `to_use_agent'
6233 and `to_can_use_agent'.
6234 * agent.c (agent_new_objfile): New.
6235 (_initialize_agent): Add agent_new_objfile to new_objfile
6238 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6240 (linux_target_install_ops): Initialize field
6241 `to_static_tracepoint_markers_by_strid'.
6242 * remote.c (free_current_marker): Move it to ...
6243 * tracepoint.c (free_current_marker): ... here. New.
6244 (cleanup_target_stop): New.
6245 * tracepoint.h: Declare free_current_marker.
6246 * NEWS: Add one entry about `info static-tracepoint-marker'.
6248 2012-03-03 Yao Qi <yao@codesourcery.com>
6250 * common/agent.c (agent_loaded_p): New.
6251 (agent_look_up_symbols): New global.
6252 * common/agent.h: Declare agent_loaded_p.
6254 2012-03-03 Yao Qi <yao@codesourcery.com>
6256 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6257 (agent_capability_check, agent_capability_invalidate): New.
6258 (symbol_list): New array element.
6259 * common/agent.h (enum agent_capa): New.
6260 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6262 2012-03-03 Yao Qi <yao@codesourcery.com>
6264 * target.h (struct target_ops) <to_use_agent>: New field.
6265 (struct target_ops) <to_can_use_agent>: New field.
6266 (target_use_agent, target_can_use_agent): New macro.
6267 * target.c (update_current_target): Update.
6268 * remote.c: New enum `PACKET_QAgent'.
6269 (remote_protocol_features): Add a new element.
6270 (remote_use_agent, remote_can_use_agent): New.
6271 (init_remote_ops): Initialize field `can_use_agent' with
6272 remote_can_use_agent. Intiailize field `use_agent' with
6274 * common/agent.c (use_agent): New global.
6275 * common/agent.h: Declare it.
6276 * tracepoint.c (info_static_tracepoint_markers_command): Add
6278 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6279 (COMMON_OBS): Add common/agent.o and agent.o
6280 (common-agent.o): New rule.
6283 2012-03-03 Yao Qi <yao@codesourcery.com>
6285 * common/agent.c: New.
6286 * common/agent.h: New.
6287 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6289 * configure, configh.in: Regenerated.
6291 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6293 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6294 unless it exists for this architecture.
6296 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6298 * language.h (struct language_defn): New "method" la_read_var_value.
6299 * findvar.c: #include "language.h".
6300 (default_read_var_value): Renames read_var_value. Rewrite
6301 function description.
6302 (read_var_value): New function.
6303 * value.h (default_read_var_value): Add prototype.
6304 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6306 (ada_language_defn): Add entry for la_read_var_value.
6307 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6308 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6309 language_defn structures to add entry for new la_read_var_value
6312 2012-03-02 Tom Tromey <tromey@redhat.com>
6313 Pedro Alves <palves@redhat.com>
6315 PR breakpoints/13776:
6316 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6318 (delete_longjmp_breakpoint_at_next_stop): New.
6319 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6320 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6321 before deleting the inferior. Add comments.
6322 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6323 breakpoints immediately, but only on next stop. Move that code
6324 next to where we mark other breakpoints for deletion.
6326 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6328 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6330 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6333 2012-03-02 Pedro Alves <palves@redhat.com>
6335 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6337 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6339 Fix -Wmissing-prototypes build.
6340 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6341 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6342 (gdbsim_has_memory): Likewise.
6344 2012-03-02 Yao Qi <yao@codesourcery.com>
6346 Fix -Wmissing-prototypes build.
6347 * charset.c (phony_iconv_open): Make static.
6348 (phony_iconv_close, phony_iconv): Likewise.
6349 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6350 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6352 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6353 * ser-mingw.c (create_select_thread): Make static.
6354 * windows-termcap.c (tgetent): New prototype.
6355 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6357 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6359 Fix -Wmissing-prototypes build.
6360 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6361 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6362 (_initialize_loadable): New prototypes.
6364 2012-03-02 Doug Evans <dje@google.com>
6366 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6367 abbrev table, read_comp_unit will do it.
6369 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6371 Fix -Wmissing-prototypes build.
6372 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6373 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6374 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6375 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6376 (_initialize_arm_symbian_tdep): New prototype.
6377 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6378 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6379 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6381 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6382 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6384 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6385 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6386 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6388 * moxie-tdep.c (moxie_process_record): Likewise.
6389 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6390 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6391 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6392 (_initialize_rl78_tdep): New prototype.
6393 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6394 (_initialize_rx_tdep): New prototype.
6395 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6396 (_initialize_darwin_solib): New prototype.
6397 * solib-spu.c: Include solib-spu.h.
6398 (_initialize_spu_solib): New prototype.
6399 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6400 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6401 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6402 (tic6x_software_single_step): Make it static.
6403 (_initialize_tic6x_tdep): New prototype.
6405 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6407 Fix -Wmissing-prototypes build.
6408 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6409 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6411 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6413 Fix -Wmissing-prototypes build.
6414 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6415 (frv_have_stopped_data_address): Remove.
6417 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6419 Fix -Wmissing-prototypes build.
6420 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6421 * sh-tdep.c: Include sh64-tdep.h.
6422 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6423 * sh64-tdep.c: Include sh64-tdep.h.
6424 * sh64-tdep.h: New file.
6426 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6428 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6430 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6432 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6433 sp_regnum once the gdbarch_init_osabi hook has been called.
6435 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6437 * mips-tdep.c (mips32_bc1_pc): New function.
6438 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6439 BPOSGE32 and BPOSGE64 instructions.
6440 (deal_with_atomic_sequence): Likewise.
6441 (mips32_instruction_has_delay_slot): Likewise.
6443 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6444 Chris Dearman <chris@mips.com>
6445 Maciej W. Rozycki <macro@codesourcery.com>
6446 Joseph Myers <joseph@codesourcery.com>
6448 * features/mips-dsp.xml: New file.
6449 * features/mips64-dsp.xml: New file.
6450 * features/mips-dsp-linux.xml: New file.
6451 * features/mips64-dsp-linux.xml: New file.
6452 * features/Makefile (WHICH): Add mips-dsp-linux and
6454 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6455 * features/mips-dsp-linux.c: New file.
6456 * features/mips64-dsp-linux.c: New file.
6457 * regformats/mips-dsp-linux.dat: New file.
6458 * regformats/mips64-dsp-linux.dat: New file.
6459 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6461 (mips64_linux_register_addr): Likewise.
6462 (mips64_linux_regsets_fetch_registers): Likewise.
6463 (mips64_linux_regsets_store_registers): Likewise.
6464 (mips64_linux_fetch_registers): Update call to
6465 mips64_linux_regsets_fetch_registers.
6466 (mips64_linux_store_registers): Update call to
6467 mips64_linux_regsets_store_registers.
6468 (mips_linux_read_description): Probe for DSP registers.
6469 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6470 and initialize_tdesc_mips64_dsp_linux.
6471 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6472 Remove padding of no longer used embedded register slots.
6473 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6474 (MIPS_RESTART_REGNUM): Redefine enum value.
6475 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6477 (mips_tx39_reg_names): Likewise.
6478 (mips_linux_reg_names): New array of register names for Linux
6480 (mips_register_name): Check for a null pointer in
6481 mips_processor_reg_names and return an empty string.
6482 (mips_register_type): Exclude embedded registers for the IRIX
6484 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6485 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6487 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6488 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6489 (mips_gdbarch_init): Likewise. Initialize internal register
6490 indices for the Linux ABI. Use dynamic numbers to refer to
6491 registers, as applicable, while parsing the target description.
6492 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6494 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6496 * frame.h (read_frame_register_unsigned): Fix typo in function
6499 2012-03-01 Pedro Alves <palves@redhat.com>
6501 * jit-reader.in [!__cplusplus]
6502 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6504 2012-03-01 Pedro Alves <palves@redhat.com>
6506 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6507 * configure: Regenerate.
6509 2012-03-01 Pedro Alves <palves@redhat.com>
6511 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6512 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6513 (ftrace_command, strace_command): Make static.
6514 * d-lang.c (_initialize_d_language): Declare.
6515 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6516 * dwarf2loc.c (_initialize_dwarf2loc):
6517 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6518 * exec.c (exec_get_section_table): Make static.
6519 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6520 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6521 * inferior.c (remove_inferior_command, add_inferior_command)
6522 (clone_inferior_command): Make static.
6523 * linux-nat.c (linux_nat_thread_address_space)
6524 (linux_nat_core_of_thread): Make static.
6525 * linux-tdep.c (_initialize_linux_tdep): Declare.
6526 * objc-lang.c (_initialize_objc_lang): Declare.
6527 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6529 (_initialize_opencl_language): Declare.
6530 * record.c (_initialize_record): Declare.
6531 * remote.c (demand_private_info, remote_get_tib_address)
6532 (remote_supports_cond_tracepoints)
6533 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6535 * skip.c (_initialize_step_skip): Declare.
6536 * symtab.c (skip_prologue_using_lineinfo): Make static.
6537 * tracepoint.c (delete_trace_state_variable)
6538 (trace_variable_command, delete_trace_variable_command)
6539 (get_uploaded_tsv, find_matching_tracepoint_location)
6540 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6542 * value.c (pack_unsigned_long): Make static.
6543 * varobj.c (varobj_ensure_python_env): Make static.
6544 * windows-tdep.c (_initialize_windows_tdep): Declare.
6545 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6547 2012-03-01 Pedro Alves <palves@redhat.com>
6549 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6551 (linux_init_abi): Install it as has_shared_address_space gdbarch
6554 2012-03-01 Pedro Alves <palves@redhat.com>
6556 * observer.c (observer_test_first_notification_function)
6557 (observer_test_second_notification_function)
6558 (observer_test_third_notification_function): Add declarations.
6560 2012-03-01 Pedro Alves <palves@redhat.com>
6562 * common/signals.c (default_target_signal_to_host)
6563 (default_target_signal_from_host): Move ...
6564 * arch-utils.c: ... here.
6565 * arch-utils.h (default_target_signal_to_host)
6566 (default_target_signal_from_host): Declare.
6568 * common/signals.c (target_signal_from_command): Move ...
6569 * infrun.c: ... here.
6570 * inferior.h (target_signal_from_command): Declare.
6571 * target.h (target_signal_from_command)
6572 (default_target_signal_from_host, default_target_signal_to_host):
6573 Delete declarations.
6575 * common/signals.c (_initialize_signals): Delete.
6577 2012-03-01 Pedro Alves <palves@redhat.com>
6579 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6580 both __cplusplus and !__cplusplus.
6582 2012-03-01 Pedro Alves <palves@redhat.com>
6584 * psymtab.c (find_and_open_source): Delete declaration.
6585 * source.c (find_and_open_source): Move comment ...
6586 * source.h (find_and_open_source): ... to this new declaration.
6588 2012-03-01 Pedro Alves <palves@redhat.com>
6590 * inline-frame.c: Include inline-frame.h.
6592 2012-03-01 Pedro Alves <palves@redhat.com>
6594 * tui/tui-data.c (set_gen_win_origin): Delete.
6595 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6596 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6598 2012-03-01 Pedro Alves <palves@redhat.com>
6600 * remote.c (encode_actions): Delete declaration.
6601 * tracepoint.c (encode_actions): Make extern.
6602 * tracepoint.h (encode_actions): Declare.
6604 2012-03-01 Pedro Alves <palves@redhat.com>
6606 * python/py-breakpoint.c: Include python.h.
6607 * python/py-continueevent.c (create_continue_event_object): Make
6609 * python/py-lazy-string.c (stpy_get_type): Make static.
6610 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6612 * python/py-utils.c (unicode_to_target_python_string): Make
6614 * python/py-value.c: Include python.h.
6616 2012-03-01 Pedro Alves <palves@redhat.com>
6618 * inferior.c (delete_threads_of_inferior): Delete.
6620 2012-03-01 Pedro Alves <palves@redhat.com>
6622 Import fallback definitions from glibc.
6624 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6625 ps_prochandle): Forward declare.
6626 (ps_err_e): Use glibc's comments.
6627 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6628 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6629 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6630 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6631 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6632 (struct ps_prochandle): Adjust comment.
6634 2012-03-01 Pedro Alves <palves@redhat.com>
6636 * ada-lang.c (ada_modulus_from_name): Delete.
6637 * ada-lex.l (lexer_init): Make static.
6639 2012-03-01 Pedro Alves <palves@redhat.com>
6643 * frame.c (read_frame_register_unsigned): New.
6644 * frame.h (read_frame_register_unsigned): Declare.
6645 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6647 (print_i387_control_word): New parameter `control_p'. Handle it.
6648 (i387_print_float_info): Handle unavailable float registers.
6650 2012-03-01 Keith Seitz <keiths@redhat.com>
6652 * linespec.c (decode_line_2): Sort the list of methods
6653 alphabetically before presenting the user with a selection
6656 2012-03-01 Doug Evans <dje@google.com>
6658 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6660 (dwarf2_read_abbrevs): Remove corresponding initialization.
6662 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
6664 * NEWS: Mention new python command class gdb.COMMAND_USER.
6665 * cli/cli-cmds.c (show_user): Print error when used on a python
6667 (init_cli_cmds): Update documentation strings for "show user" and
6668 "set/show max-user-call-depth" to clarify that it does not apply to
6670 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6672 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6674 * top.c (execute_command): Only execute a user-defined command as a
6675 legacy macro if c->user_commands is set.
6677 2012-03-01 Tom Tromey <tromey@redhat.com>
6679 * valprint.h (struct generic_val_print_decorations): New.
6680 (generic_val_print): Declare.
6681 * valprint.c (generic_val_print): New function.
6682 * p-valprint.c (p_decorations): New global.
6683 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6684 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6685 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6686 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6687 * m2-valprint.c (m2_decorations): New global.
6688 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6689 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6690 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6691 TYPE_CODE_ERROR>: Call generic_val_print.
6692 * f-valprint.c (f_decorations): New global.
6693 (f_val_print): Use print_function_pointer_address.
6694 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6695 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6696 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6698 * c-valprint.c (c_decorations): New global.
6699 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6700 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6701 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6702 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6703 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6704 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6707 2012-03-01 Tom Tromey <tromey@redhat.com>
6709 * valprint.c (val_print): Update.
6710 * p-valprint (pascal_val_print): Return void.
6711 * p-lang.h (pascal_val_print): Return void.
6712 * m2-valprint.c (m2_val_print): Return void.
6713 * m2-lang.h (m2_val_print): Return void.
6714 * language.h (struct language_defn) <la_val_print>: Return void.
6715 * language.c (unk_lang_val_print): Return void.
6716 * jv-valprint.c (java_val_print): Return void.
6717 * jv-lang.h (java_val_print): Return void.
6718 * f-valprint.c (f_val_print): Return void.
6719 * f-lang.h (f_val_print): Return void.
6720 * d-valprint.c (d_val_print): Return void.
6721 (dynamic_array_type): Update.
6722 * d-lang.h (d_val_print): Return void.
6723 * c-valprint.c (c_val_print): Return void.
6724 * c-lang.h (c_val_print): Return void.
6725 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6727 * ada-lang.h (ada_val_print): Return void.
6729 2012-03-01 Tom Tromey <tromey@redhat.com>
6731 * value.h (val_print): Return void.
6732 * valprint.c (val_print): Return void.
6734 2012-03-01 Tom Tromey <tromey@redhat.com>
6736 * value.h (common_val_print): Return void.
6737 * valprint.c (common_val_print): Return void.
6739 2012-03-01 Tom Tromey <tromey@redhat.com>
6741 * value.h (value_print): Return void.
6742 * valprint.c (value_print): Return void.
6743 * p-valprint.c (pascal_value_print): Return void.
6744 * p-lang.h (pascal_value_print): Return void.
6745 * language.h (struct language_defn) <la_value_print>: Return
6747 * language.c (unk_lang_value_print): Return void.
6748 * jv-valprint.c (java_value_print): Return void.
6749 * jv-lang.h (java_value_print): Return void.
6750 * f-valprint.c (c_value_print): Don't declare.
6752 * c-valprint.c (c_value_print): Return void.
6753 * c-lang.h (c_value_print): Return void.
6754 * ada-valprint.c (ada_value_print): Return void.
6755 * ada-lang.h (ada_value_print): Return void.
6757 2012-03-01 Tom Tromey <tromey@redhat.com>
6759 * value.c (value_primitive_field): Handle virtual base classes.
6761 2012-03-01 Tom Tromey <tromey@redhat.com>
6763 * gdbtypes.h (struct vbase): Remove.
6765 2012-03-01 Tom Tromey <tromey@redhat.com>
6767 * c-valprint.c (print_function_pointer_address): Move...
6768 * valprint.c: ... here. Make non-static.
6769 * m2-valprint.c (print_function_pointer_address): Remove.
6770 * valprint.h (print_function_pointer_address): Declare.
6772 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6774 * NEWS: Document the fact that one can provide a condition when
6775 creating an Ada exception catchpoint.
6777 2012-03-01 Tom Tromey <tromey@redhat.com>
6779 * valprint.c (val_print_type_code_flags): Fix placement of
6782 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6784 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6785 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6786 environment variable before calling update-copyright.
6788 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6790 * gnulib/extra/update-copyright: Update to the latest from
6791 gnulib's git repository.
6792 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6793 variable to 2 instead of 1.
6795 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6797 * varobj.c (c_value_of_variable): Remove dead code.
6799 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6801 * ada-lex.p (processId): Do not modify already encoded IDs.
6802 Update function documentation.
6804 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6806 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6807 "name" with "struct symbol *name_sym".
6808 * ada-exp.y (write_var_or_type): Update call to
6809 ada_find_renaming_symbol.
6810 "name" with "struct symbol *name_sym". Adjust Implementation
6811 accordingly. Adjust the function documentation.
6813 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6815 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6816 * ada-lang.c (ada_find_any_type): Add advance declaration.
6817 Make static. Replace ada_find_any_symbol by
6818 ada_find_any_type_symbol.
6819 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
6820 Improve function description. Make static.
6821 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
6822 Replace ada_find_any_symbol by ada_find_any_type_symbol.
6824 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6826 * ada-lang.c (struct tag_args): Delete.
6827 (ada_get_tsd_type): Function body moved up in source file.
6828 (ada_tag_name_1, ada_tag_name_2): Delete.
6829 (ada_get_tsd_from_tag): New function.
6830 (ada_tag_name_from_tsd): New function.
6831 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
6832 to determine the tag name.
6834 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6836 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
6838 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
6841 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6843 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
6845 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6847 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
6850 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6852 * ada-lang.c (constrained_packed_array_type): If there is a
6853 parallel XA type, use it to determine the array index type.
6855 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6857 * ada-valprint.c (ada_val_print_1): If our value is a reference
6858 to an array descriptor, dereference it before converting it
6861 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6863 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
6864 creating fixed value.
6865 (ada_value_ind, ada_coerce_ref, assign_component)
6866 (ada_evaluate_subexp): Remove call to unwrap_value before
6867 call to ada_to_fixed_value.
6869 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6871 * ada-lang.c (to_fixed_array_type): Set result's type name.
6873 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6875 * ada-lang.c (catch_ada_exception_command_split): Add new
6876 argument cond_string. Add support for condition at end of
6877 "catch exception" commands.
6878 (ada_decode_exception_location): Add new argument cond_string.
6879 Update call to catch_ada_exception_command_split.
6880 (create_ada_exception_catchpoint): Add new argument cond_string.
6881 Set the breakpoint condition if needed.
6882 (catch_ada_exception_command): Update call to
6883 ada_decode_exception_location.
6884 (ada_decode_assert_location): Add function documentation.
6885 Add support for condition at end of "catch assert" command.
6886 (catch_assert_command): Update calls to ada_decode_assert_location
6887 and create_ada_exception_catchpoint.
6889 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6891 Fix disp-step-syscall.exp: fork: single step over fork.
6892 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
6893 (i386_linux_get_syscall_number_from_regcache): ... here, new function
6894 comment, change parameters gdbarch and ptid to regcache. Remove
6895 parameter regcache, initialize gdbarch from regcache here.
6896 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
6898 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
6900 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
6901 'syscall'. Make the 'int' check more strict.
6903 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6905 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
6906 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
6907 (i386_linux_intx80_sysenter_syscall_record): ... here.
6908 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
6909 Use the renamed function name.
6911 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6913 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
6914 * breakpoint.c (until_break_command): Likewise.
6915 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6916 * infcall.c (call_function_by_hand): Likewise.
6917 * infcmd.c (finish_forward): Likewise.
6918 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6920 2012-02-28 Tristan Gingold <gingold@adacore.com>
6922 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
6923 avoid variable assignments inside condition.
6925 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6927 Fix static analysis issue found by cppcheck.
6928 * microblaze-tdep.c (microblaze_extract_return_value): Fix
6929 uninitialized BUF for size 2.
6931 2012-02-27 Chris Dearman <chris@mips.com>
6932 Nathan Froyd <froydnj@codesourcery.com>
6933 Maciej W. Rozycki <macro@codesourcery.com>
6935 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
6936 (mips16_instruction_has_delay_slot): Likewise.
6937 (mips_segment_boundary): Likewise.
6938 (mips_adjust_breakpoint_address): Likewise.
6939 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
6941 2012-02-27 Maciej W. Rozycki <macro@mips.com>
6942 Maciej W. Rozycki <macro@codesourcery.com>
6944 * infrun.c (handle_inferior_event): Don't proceed through
6945 shared library trampolines if stepping at the machine
6948 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
6950 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
6953 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
6955 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
6956 (sh_stub_unwind_sniffer): New functions.
6957 (sh_stub_unwind): New variable.
6958 (sh_gdbarch_init): Wire everything.
6960 2012-02-27 Pedro Alves <palves@redhat.com>
6962 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
6963 (linux_nat_post_attach_wait): Adjust to use
6964 linux_proc_pid_is_stopped.
6965 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
6966 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
6967 based on pid_is_stopped from both linux-nat.c and
6968 gdbserver/linux-low.c, and renamed.
6970 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6972 * remote.c (remote_watchpoint_addr_within_range): New function.
6973 (init_remote_ops): Use it.
6975 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6977 * target.h (target_watchpoint_addr_within_range): Document macro.
6979 2012-02-24 Pedro Alves <palves@redhat.com>
6981 * stack.c (set_last_displayed_sal): Issue internal_error instead
6982 of warning, and issue it after clearing the last displayed sal.
6984 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6985 Pedro Alves <palves@redhat.com>
6987 * breakpoint.c (until_break_command): Install breakpoints after
6988 all frame manipulations.
6990 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
6992 * remote.c (remote_supports_cond_breakpoints): New forward
6994 (remote_add_target_side_condition): New function.
6995 (remote_insert_breakpoint): Add target-side breakpoint
6996 conditional if supported.
6997 (remote_insert_hw_breakpoint): Likewise.
6998 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7001 * target.c (update_current_target): Inherit
7002 to_supports_evaluation_of_breakpoint_conditions.
7003 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7005 * target.h (struct target_ops)
7006 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7007 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7009 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7010 (condition_evaluation_both, condition_evaluation_auto,
7011 condition_evaluation_host, condition_evaluation_target,
7012 condition_evaluation_enums, condition_evaluation_mode_1,
7013 condition_evaluation_mode): New static globals.
7014 (translate_condition_evaluation_mode): New function.
7015 (breakpoint_condition_evaluation_mode): New function.
7016 (gdb_evaluates_breakpoint_condition_p): New function.
7017 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7018 (mark_breakpoint_modified): New function.
7019 (mark_breakpoint_location_modified): New function.
7020 (set_condition_evaluation_mode): New function.
7021 (show_condition_evaluation_mode): New function.
7022 (bp_location_compare_addrs): New function.
7023 (get_first_location_gte_addr): New helper function.
7024 (set_breakpoint_condition): Free condition bytecode if locations
7025 has become unconditional. Call mark_breakpoint_modified (...).
7026 (condition_command): Call update_global_location_list (1) for
7028 (breakpoint_xfer_memory): Use is_breakpoint (...).
7029 (is_breakpoint): New function.
7030 (parse_cond_to_aexpr): New function.
7031 (build_target_condition_list): New function.
7032 (insert_bp_location): Handle target-side conditional
7033 breakpoints and call build_target_condition_list (...).
7034 (update_inserted_breakpoint_locations): New function.
7035 (insert_breakpoint_locations): Handle target-side conditional
7037 (bpstat_check_breakpoint_conditions): Add comment.
7038 (bp_condition_evaluator): New function.
7039 (bp_location_condition_evaluator): New function.
7040 (print_breakpoint_location): Print information on where the condition
7042 (print_one_breakpoint_location): Likewise.
7043 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7044 breakpoint location.
7045 (force_breakpoint_reinsertion): New functions.
7046 (update_global_location_list): Handle target-side breakpoint
7048 Reinsert locations that are already inserted if conditions have
7050 (bp_location_dtor): Free agent expression bytecode.
7051 (disable_breakpoint): Call mark_breakpoint_modified (...).
7052 Call update_global_location_list (...) with parameter 1 for breakpoints.
7053 (disable_command): Call mark_breakpoint_location_modified (...).
7054 Call update_global_location_list (...) with parameter 1 for breakpoints.
7055 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7056 (enable_command): mark_breakpoint_location_modified (...).
7057 (_initialize_breakpoint): Update documentation and add
7058 condition-evaluation breakpoint subcommand.
7060 * breakpoint.h: Include ax.h.
7061 (condition_list): New data structure.
7062 (condition_status): New enum.
7063 (bp_target_info) <cond_list>: New field.
7064 (bp_location) <condition_changed, cond_bytecode>: New fields.
7065 (is_breakpoint): New prototype.
7067 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7069 * remote.c (remote_state) <cond_breakpoints>: New field.
7070 (PACKET_ConditionalBreakpoints): New enum.
7071 (remote_cond_breakpoint_feature): New function.
7072 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7073 (remote_supports_cond_breakpoints): New function.
7074 (_initialize_remote): Add new packet configuration for
7075 target-side conditional breakpoints.
7077 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7079 * NEWS: Mention target-side conditional breakpoint support,
7080 new condition-evaluation breakpoint subcommand and remote
7083 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7085 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7088 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7090 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7091 (after_prologue): Remove.
7093 2012-02-23 Tom Tromey <tromey@redhat.com>
7095 * jv-valprint.c (java_val_print): Remove dead code.
7097 2012-02-23 Tristan Gingold <gingold@adacore.com>
7099 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7100 known_tasks_element and known_tasks_length fields.
7101 (read_known_tasks_array): Change argument type. Use pointer type
7102 and number of elements from DATA. Adjust.
7103 (read_known_tasks_list): Likewise.
7104 (get_known_tasks_addr): Remove.
7105 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7106 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7107 type and array length. Merge former get_known_tasks_addr code.
7109 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7112 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7113 it after set_momentary_breakpoint.
7115 2012-02-22 Sterling Augustine <saugustine@google.com>
7118 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7120 2012-02-22 Gary Benson <gbenson@redhat.com>
7122 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7123 (find_slot_in_mapped_hash): Likewise.
7125 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7128 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7129 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7130 * configure: Regenerate.
7132 2012-02-21 Tristan Gingold <gingold@adacore.com>
7133 Pedro Alves <palves@redhat.com>
7135 * ia64-tdep.c: Do not include libunwind-ia64.h.
7136 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7137 Include libunwind-ia64.h instead of libunwind.h.
7138 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7139 for libunwind.h existence.
7140 * configure, config.in: Regenerate.
7142 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7144 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7145 instead of value_rtti_target_type.
7146 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7147 instead of value_rtti_target_type.
7148 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7149 value_rtti_target_type.
7150 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7151 (value_rtti_target_type): Rename to ...
7152 (value_rtti_indirect_type): ... here and make it indirect. Update
7154 * value.c (readjust_indirect_value_type): New function.
7155 (coerce_ref): Support for enclosing type setting for references
7156 with readjust_indirect_value_type.
7157 * value.h (readjust_value_type): New declaration.
7158 (value_rtti_target_type): Rename to ...
7159 (value_rtti_indirect_type): ... here.
7161 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7163 * MAINTAINERS (Write After Approval): Add myself to the list.
7165 2012-02-20 Doug Evans <dje@google.com>
7167 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7168 Rename objfile_p_char parameter to objfilep.
7169 (build_objfile_section_table): Result is now void. All callers
7171 * objfiles.h (struct objfile): Tweak comments, whitespace.
7172 (build_objfile_section_table): Update.
7174 * elfread.c (elf_symfile_segments): Fix warning text.
7176 2012-02-20 Tom Tromey <tromey@redhat.com>
7179 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7180 particular set of file names once.
7181 (dw2_map_symbol_filenames): Likewise.
7183 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7186 * main.c (write_files): Remove the declaration.
7187 (external_editor_command): Move the declaration ...
7188 [GDBTK] (external_editor_command): ... here. Fix the comment.
7190 2012-02-20 Tom Tromey <tromey@redhat.com>
7192 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7195 2012-02-20 Tristan Gingold <gingold@adacore.com>
7197 * darwin-nat.h (enum darwin_msg_state): Add comments.
7199 2012-02-20 Tristan Gingold <gingold@adacore.com>
7201 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7204 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7206 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7207 between function description and implementation.
7209 2012-02-17 Tom Tromey <tromey@redhat.com>
7212 * python/py-event.c (event_object_getset): New global.
7213 (event_object_type): Reference it.
7214 * python/py-type.c (field_object_getset): New global.
7215 (field_object_type): Reference it.
7216 * python/python-internal.h (gdb_py_generic_dict): Declare.
7217 * python/py-utils.c (gdb_py_generic_dict): New function.
7219 2012-02-17 Tristan Gingold <gingold@adacore.com>
7221 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7223 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7225 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7226 TYPE_CALLING_CONVENTION annotation.
7228 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7230 * MAINTAINERS: Add rx to target ISA section.
7231 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7232 (ALLDEPFILES): Add rx-tdep.c.
7234 2012-02-16 Tom Tromey <tromey@redhat.com>
7236 * symfile.c (symbol_file_add_main_1): Use inferior's
7238 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7239 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7241 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7243 (follow_exec): Use inferior's symfile_flags.
7244 * inferior.h (struct inferior) <symfile_flags>: New field.
7246 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7249 * remote-sim.c (gdbsim_create_inferior): Call error() when
7250 sim_create_inferior() fails.
7252 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7254 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7256 2012-02-16 Tom Tromey <tromey@redhat.com>
7259 * thread.c (struct current_thread_cleanup) <was_removable>: New
7261 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7262 (make_cleanup_restore_current_thread): Initialize new field.
7264 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7266 * MAINTAINERS: Add rl78 to target ISA section.
7267 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7268 (ALLDEPFILES): Add rl78-tdep.c.
7269 * NEWS: Mention rl78 as a new target.
7271 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7273 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7275 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7277 2012-02-15 Tom Tromey <tromey@redhat.com>
7280 * infcmd.c (registers_info): Print just the current register's
7283 2012-02-15 Tom Tromey <tromey@redhat.com>
7285 * python/py-symbol.c (sympy_value): Use _().
7287 2012-02-15 Pedro Alves <palves@redhat.com>
7289 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7290 output to be like native targets'.
7291 (remote_pid_to_str): Special case the null ptid.
7293 2012-02-14 Stan Shebs <stan@codesourcery.com>
7295 * NEWS: Mention enable count command.
7296 * breakpoint.h (struct breakpoint): New field enable_count.
7297 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7298 (enable_breakpoint): Add arg to call.
7299 (struct disp_data): New struct.
7300 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7301 (do_map_enable_once_breakpoint): Create a struct and pass it.
7302 (do_map_enable_delete_breakpoint): Ditto.
7303 (do_map_enable_count_breakpoint): New function.
7304 (enable_count_command): New function.
7305 (bpstat_stop_status): Decrement enable_count.
7306 (print_one_breakpoint_location): Report enable count.
7307 (_initialize_breakpoint): Add enable count command.
7309 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7311 * rl78-tdep.c (reggroups.h): Include.
7312 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7313 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7314 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7315 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7316 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7317 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7318 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7319 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7320 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7321 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7322 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7323 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7324 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7325 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7326 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7327 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7328 beginning of register list.
7329 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7330 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7331 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7332 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7333 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7334 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7335 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7336 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7337 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7338 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7339 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7340 the pseudo registers. Rearrange other pseudo registers too so
7341 that the bank registers appear at the end.
7342 (rl78_register_type): Account for the fact that the byte sized
7343 bank registers are now pseudo-registers.
7344 (rl78_register_name): Rearrange the register name array. Make
7345 initial set of raw banked registers inaccessible.
7346 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7347 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7348 case for copying bytes back and forth between raw and pseudo
7349 versions of the banked registers. Update other cases to reflect
7351 (rl78_return_value): Update to account for changed names of
7353 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7354 rl78_register_sim_regno().
7356 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7358 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7359 the name parameter being passed to find_pc_partial_function().
7361 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7363 * MAINTAINERS: Step down from being ia64 target maintainer.
7365 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7367 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7368 compilation warning.
7370 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7372 Fix crash on loaded shlibs without loaded exec_bfd.
7373 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7374 (set_section_command): Replace exec_bfd by p->bfd.
7376 2012-02-10 Tom Tromey <tromey@redhat.com>
7378 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7379 when we have a C++ qualified name.
7381 2012-02-10 Pedro Alves <palves@redhat.com>
7383 * inferior.c (inferior_pid_to_str): New.
7384 (print_inferior, inferior_command): Use it.
7386 2012-02-10 Pedro Alves <palves@redhat.com>
7388 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7390 * configure: Regenerate.
7392 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7394 * linespec.c (decode_line_internal): Fix comment correctness.
7396 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7399 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7400 * amd64bsd-nat.c: Add support for debug registers (adapted from
7402 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7403 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7404 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7405 (amd64bsd_dr_get_control): New functions.
7406 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7407 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7408 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7409 watchpoints initialization.
7410 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7412 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7414 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7416 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7418 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7420 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7422 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7424 * language.h (symbol_name_cmp_ftype): Renames
7425 symbol_name_match_p_ftype.
7426 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7427 la_get_symbol_name_match_p.
7428 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7429 ada_get_symbol_name_match_p. Update comment.
7430 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7431 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7432 Renames symbol_name_match_p. Update field type.
7433 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7434 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7435 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7436 "la_get_symbol_name_cmp" in comments.
7437 * language.c: Likewise.
7439 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7441 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7443 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7444 (amd64_sol2_gregset32_reg_offs): Likewise.
7446 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7448 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7449 of the returned BFD is allocated by GDB.
7451 2012-02-07 Tom Tromey <tromey@redhat.com>
7454 * python/python-internal.h (frame_object_type): Declare.
7455 * python/py-symbol.c (sympy_needs_frame): New function.
7456 (sympy_value): New function.
7457 (symbol_object_getset): Add "needs_frame".
7458 (symbol_object_methods): Add "value".
7459 * python/py-frame.c (frame_object_type): No longer static.
7461 2012-02-07 Tom Tromey <tromey@redhat.com>
7464 * python/py-symbol.c (sympy_line): New function.
7465 (symbol_object_getset): Add "line".
7467 2012-02-07 Tom Tromey <tromey@redhat.com>
7469 * charset.c (find_charset_names): Check 'in' against NULL.
7471 2012-02-06 Doug Evans <dje@google.com>
7473 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7474 and fields.name members from char * to const char *. All uses updated.
7475 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7476 from char * to const char *. All uses updated.
7477 (type_name_no_tag): Update.
7478 (lookup_unsigned_typename, lookup_signed_typename): Update.
7479 * gdbtypes.c (type_name_no_tag): Change result type
7480 from char * to const char *. All callers updated.
7481 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7482 name parameter from char * to const char *.
7483 * symtab.h (struct cplus_specific): Change type of demangled_name
7484 member from char * to const char *. All uses updated.
7485 (struct general_symbol_info): Change type of name and
7486 mangled_lang.demangled_name members from char * to const char *.
7488 (symbol_get_demangled_name, symbol_natural_name): Update.
7489 (symbol_demangled_name, symbol_search_name): Update.
7490 * symtab.c (symbol_get_demangled_name): Change result type
7491 from char * to const char *. All callers updated.
7492 (symbol_natural_name, symbol_demangled_name): Ditto.
7493 (symbol_search_name): Ditto.
7494 (completion_list_add_name): Change type of symname,sym_text,
7495 text,word parameters from char * to const char *.
7496 (completion_list_objc_symbol): Change type of sym_text,
7497 text,word parameters from char * to const char *.
7498 * ada-lang.c (find_struct_field): Change type of name parameter
7499 from char * to const char *.
7500 (encoded_ordered_before): Similarly for N0,N1 parameters.
7501 (old_renaming_is_invisible): Similarly for function_name parameter.
7502 (ada_type_name): Change result type from char * to const char *.
7503 All callers updated.
7504 * ada-lang.h (ada_type_name): Update.
7505 * buildsym.c (hashname): Change type of name parameter
7506 from char * to const char *.
7507 * buildsym.h (hashname): Update.
7508 * dbxread.c (end_psymtab): Change type of include_list parameter
7509 from char ** to const char **.
7510 * dwarf2read.c (determine_prefix): Change result type
7511 from char * to const char *. All callers updated.
7512 * f-lang.c (find_common_for_function): Change type of name, funcname
7513 parameters from char * to const char *.
7514 * f-lang.c (find_common_for_function): Update.
7515 * f-valprint.c (list_all_visible_commons): Change type of funcname
7516 parameters from char * to const char *.
7517 * gdbarch.sh (static_transform_name): Change type of name parameter
7518 and result from char * to const char *.
7519 * gdbarch.c: Regenerate.
7520 * gdbarch.h: Regenerate.
7521 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7522 of name parameter from char * to const char *.
7523 * jv-lang.c (java_primitive_type_from_name): Ditto.
7524 (java_demangled_signature_length): Similarly for signature parameter.
7525 (java_demangled_signature_copy): Ditto.
7526 (java_demangle_type_signature): Ditto.
7527 * jv-lang.h (java_primitive_type_from_name): Update.
7528 (java_demangle_type_signature): Update.
7529 * objc-lang.c (specialcmp): Change type of a,b parameters
7530 from char * to const char *.
7531 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7532 from char * to const char *. All callers updated.
7533 * p-lang.h (is_pascal_string_type): Update.
7534 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7535 of name parameter from char * to const char *.
7536 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7537 * utils.c (fprintf_symbol_filtered): Ditto.
7538 * defs.h (fprintf_symbol_filtered): Update.
7539 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7540 * stabsread.h (end_psymtab): Update.
7541 * stack.c (find_frame_funname): Change type of funname parameter
7542 from char ** to const char **.
7543 * stack.h (find_frame_funname): Update.
7544 * typeprint.c (type_print): Change type of varstring parameter
7545 from char * to const char *.
7546 * value.h (type_print): Update.
7547 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7548 from char * to const char *. All callers updated.
7549 (xcoff_end_psymtab): Change type of include_list parameter
7550 from char ** to const char **. All callers updated.
7551 (swap_sym): Similarly for name parameter. All callers updated.
7552 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7554 (process_coff_symbol): Use xstrdup.
7555 * stabsread.c (stabs_method_name_from_physname): Renamed from
7556 update_method_name_from_physname. Change result type from void
7557 to char *. All callers updated.
7558 (read_member_functions): In has_destructor case, store name in objfile
7559 obstack instead of malloc space. In !has_stub case, fix mem leak.
7561 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7563 * configure: Rebuild.
7564 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7567 2012-02-03 Kevin Buettner <kevinb@redhat.com>
7569 * configure.tgt (rl78-*-elf): New target.
7570 * rl78-tdep.c: New file.
7572 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7574 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7575 and continue the loop. Add QUIT statement.
7577 2012-02-03 Tom Tromey <tromey@redhat.com>
7580 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7581 bfd_lookup_symbol_from_symtab.
7582 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7583 gdb_bfd_lookup_symbol_from_symtab.
7585 2012-02-03 Joel Brobecker <brobecker@adacore.com>
7587 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7588 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7589 symbol. Add assertion that sym2 is never NULL.
7591 2012-02-02 Doug Evans <dje@google.com>
7593 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7594 "name" parameter to const char ** from char **. All callers updated.
7595 (find_pc_partial_function): Ditto.
7596 (cache_pc_function_name): Change type to const char * from char *.
7597 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7598 (find_pc_partial_function): Update.
7599 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7600 type of "name" parameter to const char * from char *.
7602 * arch-utils.c (generic_in_solib_return_trampoline): Change
7603 type of "name" parameter to const char * from char *.
7604 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7605 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7606 type of "name" parameter to const char * from char *.
7607 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7608 * gdbarch.c: Regenerate.
7609 * gdbarch.h: Regenerate.
7610 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7611 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7612 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7613 type of "name" parameter to const char * from char *.
7614 * skip.c (skip_function_pc): Ditto.
7615 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7616 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7617 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7618 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7619 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7620 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7621 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7622 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7623 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7625 2012-02-02 Pedro Alves <palves@redhat.com>
7627 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7628 the current inferior has no execution. Make sure the current
7629 remote process matches gdb's current inferior.
7631 2012-02-02 Tom Tromey <tromey@redhat.com>
7634 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7637 2012-02-02 Tom Tromey <tromey@redhat.com>
7640 * symtab.c (lookup_language_this): Set block_found.
7642 2012-02-01 Tom Tromey <tromey@redhat.com>
7645 * jit.c (struct jit_inferior_data): Rewrite.
7646 (struct jit_objfile_data): New.
7647 (get_jit_objfile_data): New function.
7648 (add_objfile_entry): Update.
7649 (jit_read_descriptor): Return int. Replace descriptor_addr
7650 argument with inf_data. Update. Don't call error.
7651 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7653 (jit_inferior_init): Don't look up descriptor. Don't call error.
7654 (jit_reset_inferior_data_and_breakpoints)
7655 (jit_inferior_created_observer): Remove.
7656 (jit_inferior_exit_hook): Update.
7657 (jit_executable_changed_observer): Remove.
7658 (jit_event_handler): Update.
7659 (free_objfile_data): Reset inferior data if needed.
7660 (_initialize_jit): Update.
7662 2012-02-01 Tom Tromey <tromey@redhat.com>
7664 * jit.c (bfd_open_from_target_memory): Move higher in file.
7666 2012-02-01 Tristan Gingold <gingold@adacore.com>
7668 * libunwind-frame.c (libunwind_load): Display message if dlopen
7671 2012-02-01 Gary Benson <gbenson@redhat.com>
7673 * symtab.h (symbol_found_callback_ftype): New typedef.
7674 (iterate_over_symbols): Use the above.
7675 * symtab.c (iterate_over_symbols): Likewise.
7676 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7677 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7678 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7679 (iterate_name_matcher): Document return values.
7680 (collect_one_symbol): Likewise.
7681 (collect_function_symbols): Likewise.
7682 (collect_symbols): Likewise.
7684 2012-02-01 Tom Tromey <tromey@redhat.com>
7686 * ada-lang.c (resolve_subexp): Update.
7687 (ada_lookup_symbol_list): Add 'full_search' argument.
7688 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7689 ada_lookup_symbol_list.
7690 (ada_lookup_encoded_symbol): Update.
7691 (get_var_value): Update.
7692 * ada-exp.y (block_lookup): Update.
7693 (write_var_or_type): Update.
7694 (write_name_assoc): Update.
7695 * ada-lang.h (ada_lookup_symbol_list): Update.
7697 2012-01-31 Tom Tromey <tromey@redhat.com>
7699 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7702 2012-01-31 Doug Evans <dje@google.com>
7704 * symtab.h: Remove outdated comment.
7705 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7707 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
7709 Fix build error in Darwin port.
7710 * i386-darwin-nat.c: Include i386-nat.h.
7712 2012-01-30 Tom Tromey <tromey@redhat.com>
7714 PR breakpoints/13568:
7715 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7716 argument. Check for recursive includes.
7717 (dwarf_decode_macros): Create an include hash.
7719 2012-01-30 Michael Eager <eager@eagercon.com>
7721 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7722 * ppc-linux-tdep.c: Include glibc-tdep.h.
7723 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7724 (powerpc_linux_in_plt_stub): New function.
7725 (powerpc_linux_in_dynsym_resolve_code): New function.
7726 (ppc_skip_trampoline_code): New function.
7727 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7728 Use glibc_skip_solib_resolver.
7730 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7732 Code cleanup: Make 1440 bytes of data segment read-only.
7733 * arch-utils.c (endian_enum): Make it const char *const [].
7734 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7736 * breakpoint.c (always_inserted_enums): Likewise.
7737 * cli/cli-cmds.c (script_ext_enums): Likewise.
7738 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7739 enumlist parameter const char *const *.
7740 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7741 const char *const *.
7742 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7743 parameter const char *const *.
7744 * cris-tdep.c (cris_modes): Make it const char *const [].
7745 * filesystem.c (target_file_system_kinds): Likewise.
7746 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7747 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7748 (can_use_displaced_stepping_enum, scheduler_enums)
7749 (exec_direction_names): Likewise.
7750 * language.c (_initialize_language): Make the type_or_range_names and
7751 case_sensitive_names variables const char *const [].
7752 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7753 * python/python.c (python_excp_enums): Likewise.
7754 * remote.c (interrupt_sequence_modes): Likewise.
7755 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7756 * serial.c (logbase_enums): Likewise.
7757 * sh-tdep.c (sh_cc_enum): Likewise.
7758 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7760 * symtab.c (multiple_symbols_modes): Likewise.
7761 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7763 * utils.c (internal_problem_modes): Likewise.
7765 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7767 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7768 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7771 2012-01-27 Doug Evans <dje@google.com>
7773 * configure.ac (with_python): Fix absolute path handling for win32.
7774 * configure: Regenerate.
7776 2012-01-26 Doug Evans <dje@google.com>
7778 * symtab.c: Whitespace cleanup, no code changes.
7780 * symtab.c (lookup_symbol_in_language): Improve comment.
7781 (lookup_symbol_aux): Fix comment.
7783 * psymtab.c (add_psymbol_to_list): Result is now "void".
7784 * psympriv.h (add_psymbol_to_list): Update.
7786 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7788 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7790 Do not open script filenames twice.
7791 * cli/cli-cmds.c (source_script_from_stream): Pass to
7792 source_python_script also STREAM.
7793 * python/py-auto-load.c (source_section_scripts): Pass to
7794 source_python_script_for_objfile also STREAM.
7795 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7797 * python/python-internal.h (source_python_script_for_objfile): New
7798 parameter file, rename parameter file to filename.
7799 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7800 instead if !_WIN32. Update the function comment.
7801 (source_python_script, source_python_script_for_objfile)
7802 (source_python_script): New parameter file, rename parameter file to
7803 filename. Pass FILENAME to python_run_simple_file.
7804 * python/python.h (source_python_script): New parameter file, rename
7805 parameter file to filename.
7807 2012-01-26 Pedro Alves <palves@redhat.com>
7809 * corelow.c (core_has_fake_pid): Delete.
7810 (core_close): Delete references to `core_has_fake_pid'.
7811 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7812 (core_open): Delete references to `core_has_fake_pid'.
7813 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7816 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7818 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7819 Remove language parameter from name_matcher. Adjust the comment.
7820 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
7821 Remove language parameter.
7822 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
7823 * linespec.c (iterate_name_matcher): Likewise.
7824 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
7825 name_matcher. Adjust call accordingly.
7826 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
7827 (maintenance_check_symtabs): Adjust type of parameter "fun".
7828 * psymtab.h (maintenance_check_symtabs): Likewise.
7830 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7832 * language.h (symbol_name_match_p_ftype): New typedef.
7833 (struct language_defn): Replace field la_symbol_name_compare
7834 by la_get_symbol_name_match_p.
7835 * ada-lang.c (ada_get_symbol_name_match_p): New function.
7836 (ada_language_defn): Use it.
7837 * linespec.c (struct symbol_matcher_data): New type.
7838 (iterate_name_matcher): Rewrite.
7839 (iterate_over_all_matching_symtabs): Pass a pointer to
7840 a symbol_matcher_data struct to expand_symtabs_matching
7841 instead of just the lookup name.
7842 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7843 opencl-lang.c, p-lang.c, language.c: Delete field
7844 la_symbol_name_compare, and replace by NULL for new field
7845 la_get_symbol_name_match_p.
7846 * symfile.h (struct quick_symbol_functions): Update comment.
7848 2012-01-25 Tom Tromey <tromey@redhat.com>
7850 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
7853 2012-01-24 Tom Tromey <tromey@redhat.com>
7856 * solib.c (update_solib_list): Update the program space's
7857 added_solibs and deleted_solibs fields.
7858 * progspace.h (struct program_space) <added_solibs,
7859 deleted_solibs>: New fields.
7860 (clear_program_space_solib_cache): Declare.
7861 * progspace.c (release_program_space): Call
7862 clear_program_space_solib_cache.
7863 (clear_program_space_solib_cache): New function.
7864 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
7865 bpstat_stop_status. Use handle_solib_event.
7866 * breakpoint.c: Include gdb_regex.h.
7867 (print_solib_event): New function.
7868 (bpstat_print): Use print_solib_event.
7869 (bpstat_stop_status): Add special case for bp_shlib_event.
7870 (handle_solib_event): New function.
7871 (bpstat_what): Use handle_solib_event.
7872 (struct solib_catchpoint): New.
7873 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
7874 (breakpoint_hit_catch_solib, check_status_catch_solib)
7875 (print_it_catch_solib, print_one_catch_solib)
7876 (print_mention_catch_solib, print_recreate_catch_solib): New
7878 (catch_solib_breakpoint_ops): New global.
7879 (catch_load_or_unload, catch_load_command_1)
7880 (catch_unload_command_1): New functions.
7881 (internal_bkpt_check_status): Add special case for
7883 (internal_bkpt_print_it): Use print_solib_event.
7884 (initialize_breakpoint_ops): Initialize
7885 catch_solib_breakpoint_ops.
7886 (_initialize_breakpoint): Register "catch load" and "catch
7888 * breakpoint.h (handle_solib_event): Declare.
7889 * NEWS: Add entry for "catch load" and "catch unload".
7891 2012-01-24 Tom Tromey <tromey@redhat.com>
7893 * ada-lang.c: Include gdb_vecs.h.
7894 * charset.c: Include gdb_vecs.h.
7895 * tracepoint.h: Include gdb_vecs.h.
7896 * gdb_vecs.h: New file.
7898 2012-01-24 Pedro Alves <pedro@codesourcery.com>
7900 * breakpoint.c (breakpoint_hit_catch_fork)
7901 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
7902 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
7903 * infrun.c (inferior_has_forked, inferior_has_vforked)
7904 (inferior_has_execd, inferior_has_called_syscall): Delete.
7905 (handle_syscall_event): Get syscall_number from the execution
7906 control state's wait status.
7907 (wait_for_inferior): Don't clear syscall_number.
7909 2012-01-24 Pedro Alves <palves@redhat.com>
7911 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
7912 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
7913 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
7914 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
7916 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
7917 false for events other than TARGET_SIGNAL_TRAP.
7918 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
7920 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
7921 events other than TARGET_SIGNAL_TRAP.
7922 (tracepoint_breakpoint_hit): Add `ws' parameter.
7923 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
7925 (bpstat_stop_status): Same.
7926 (pc_at_non_inline_function): Same.
7927 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
7928 to pass the current event's waitstatus to bpstat_stop_status
7929 and pc_at_non_inline_function.
7931 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7934 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
7935 Update the function comment for it.
7936 (source_script_with_search): Call make_cleanup_fclose for STREAM.
7937 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
7940 2012-01-24 Pedro Alves <palves@redhat.com>
7942 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
7943 outside `bs->stop' block.
7944 (bpstat_what): Rework bp_shlib_event handling.
7945 (internal_bkpt_check_status): If the breakpoint is a
7946 bp_shlib_event, then set bs->stop and bs->print if
7947 stop_on_solib_events is set.
7949 2012-01-24 Gary Benson <gbenson@redhat.com>
7951 Delete #if 0'd out code.
7952 * stack.c (print_frame_label_vars): Remove.
7953 (catch_info): Likewise.
7954 (_initialize_stack): Remove "info catch" command.
7955 * NEWS: Mention the above.
7957 2012-01-24 Pedro Alves <palves@redhat.com>
7959 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
7961 (remote_notice_new_inferior): If the remote end doesn't support
7962 the multiprocess extensions, then the PID is fake.
7963 (add_current_inferior_and_thread): New.
7964 (remote_start_remote): Use it.
7965 (extended_remote_attach_1): Adjust.
7966 (extended_remote_create_inferior_1): Use
7967 add_current_inferior_and_thread.
7969 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7971 Fix watchpoints to be specific for each inferior.
7972 * breakpoint.c (watchpoint_in_thread_scope): Verify also
7973 current_program_space.
7974 * i386-nat.c (i386_inferior_data_cleanup): New.
7975 (i386_inferior_data_get): Replace variable inf_data_local by an
7977 (i386_use_watchpoints): Initialize i386_inferior_data.
7978 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
7979 specific iterate_over_lwps.
7981 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7983 Fix watchpoints across inferior fork.
7984 * amd64-linux-nat.c (update_debug_registers_callback): Update the
7985 comment for linux_nat_iterate_watchpoint_lwps.
7986 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
7987 linux_nat_iterate_watchpoint_lwps.
7988 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
7989 * i386-linux-nat.c (update_debug_registers_callback): Update the
7990 comment for linux_nat_iterate_watchpoint_lwps.
7991 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
7992 linux_nat_iterate_watchpoint_lwps.
7993 (i386_linux_prepare_to_resume): New comment on Linux kernel.
7994 * i386-nat.c: Include inferior.h.
7995 (dr_mirror): Remove.
7996 (i386_inferior_data, struct i386_inferior_data)
7997 (i386_inferior_data_get): New.
7998 (i386_debug_reg_state): Use i386_inferior_data_get.
7999 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8000 (i386_insert_watchpoint, i386_remove_watchpoint)
8001 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8002 (i386_remove_hw_breakpoint): New variable state, use
8003 i386_debug_reg_state instead of DR_MIRROR.
8004 * linux-nat.c (delete_lwp): New declaration.
8005 (num_lwps): Move here from downwards.
8006 (delete_lwp_cleanup): New.
8007 (linux_child_follow_fork): Create new child_lp, call
8008 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8010 (num_lwps): Move upwards.
8011 (linux_nat_iterate_watchpoint_lwps): New.
8012 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8013 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8015 2012-01-24 Joel Brobecker <brobecker@adacore.com>
8019 2012-01-23 Pedro Alves <palves@redhat.com>
8021 * top.c (caution): Rename to ...
8022 (confirm): ... this.
8023 (show_caution): Rename to ...
8024 (show_confirm): ... this.
8025 (quit_cover): Adjust.
8026 (init_main): Adjust.
8027 * top.h (caution): Rename to ...
8028 (confirm): ... this.
8029 * utils.c (internal_vproblem, defaulted_query): Adjust.
8031 2012-01-23 Pedro Alves <palves@redhat.com>
8033 * top.c (caution): Update comment.
8034 (execute_command): Don't consider the current value of `caution'.
8036 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8038 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8040 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8042 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8043 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8044 * target.c (target_fileio_pwrite): Remove buffer address from
8046 (target_fileio_pread): Likewise.
8048 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8050 * NEWS: Document remote "info proc" and "generate-core-file".
8052 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8054 * gdbarch.sh (find_memory_regions): New callback.
8055 * gdbarch.c, gdbarch.h: Regenerate.
8057 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8058 callback before falling back to target method.
8060 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8061 (linux_target_install_ops): No longer install it.
8063 * linux-tdep.c (linux_find_memory_regions): New function.
8064 (linux_init_abi): Install it.
8066 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8068 * gdbarch.sh (make_corefile_notes): New architecture callback.
8069 * gdbarch.c: Regenerate.
8070 * gdbarch.h: Likewise.
8072 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8073 before target_make_corefile_notes. If NULL is returned, the
8074 target does not support core file generation.
8076 * linux-nat.c: Include "linux-tdep.h".
8077 (find_signalled_thread, find_stop_signal): Remove.
8078 (linux_nat_do_thread_registers): Likewise.
8079 (struct linux_nat_corefile_thread_data): Likewise.
8080 (linux_nat_corefile_thread_callback): Likewise.
8081 (iterate_over_spus): Likewise.
8082 (struct linux_spu_corefile_data): Likewise.
8083 (linux_spu_corefile_callback): Likewise.
8084 (linux_spu_make_corefile_notes): Likewise.
8085 (linux_nat_collect_thread_registers): New function.
8086 (linux_nat_make_corefile_notes): Replace contents by call to
8087 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8088 as native-only callback.
8090 * linux-tdep.h: Include "bfd.h".
8091 (struct regcache): Add forward declaration.
8092 (linux_collect_thread_registers_ftype): New typedef.
8093 (linux_make_corefile_notes): Add prototype.
8094 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8095 "regset.h", and "elf-bfd.h".
8096 (find_signalled_thread, find_stop_signal): New functions.
8097 (linux_spu_make_corefile_notes): Likewise.
8098 (linux_collect_thread_registers): Likewise.
8099 (struct linux_corefile_thread_data): New data structure.
8100 (linux_corefile_thread_callback): New funcion.
8101 (linux_make_corefile_notes): Likewise.
8102 (linux_make_corefile_notes_1): Likewise.
8103 (linux_init_abi): Install it.
8105 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8107 * gdbarch.sh (info_proc): New callback.
8108 * gdbarch.c, gdbarch.h: Regenerate.
8110 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8111 before falling back to the target info_proc callback.
8113 * linux-nat.c: Do not include "cli/cli-utils.h".
8114 (linux_nat_info_proc): Remove.
8115 (linux_target_install_ops): No longer install it.
8117 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8118 (read_mapping): New function.
8119 (linux_info_proc): Likewise.
8120 (linux_init_abi): Install it.
8122 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8124 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8125 * infcmd.c: (info_proc_cmd_1): New function.
8126 (info_proc_cmd): New function, moved here from equivalent routine
8127 orignally in linux-nat.c.
8128 (info_proc_cmd_mappings): Likewise.
8129 (info_proc_cmd_stat): Likewise.
8130 (info_proc_cmd_status): Likewise.
8131 (info_proc_cmd_cwd): Likewise.
8132 (info_proc_cmd_cmdline): Likewise.
8133 (info_proc_cmd_exe): Likewise.
8134 (info_proc_cmd_all): Likewise.
8135 (_initialize_infcmd): Install "info proc" command and subcommands.
8137 * target.h (struct target_ops): Add to_info_proc.
8138 (target_info_proc): Add prototype.
8139 * target.c (target_info_proc): New function.
8141 * procfs.c (procfs_info_proc): Add prototype.
8142 (info_proc_cmd): Rename into ...
8143 (procfs_info_proc): ... this. Update argument types as appropriate
8144 for a to_info_proc implementation. Handle "what" argument.
8145 (procfs_target): Install procfs_info_proc.
8146 (_initialize_procfs): No longer install "info proc" command.
8148 * linux-nat.c: (enum info_proc_what): Remove.
8149 (linux_nat_info_proc_cmd_1): Rename into ...
8150 (linux_nat_info_proc): ... this. Update argument types as appropriate
8151 for a to_info_proc implementation.
8152 (linux_nat_info_proc_cmd): Remove.
8153 (linux_nat_info_proc_cmd_mappings): Likewise.
8154 (linux_nat_info_proc_cmd_stat): Likewise.
8155 (linux_nat_info_proc_cmd_status): Likewise.
8156 (linux_nat_info_proc_cmd_cwd): Likewise.
8157 (linux_nat_info_proc_cmd_cmdline): Likewise.
8158 (linux_nat_info_proc_cmd_exe): Likewise.
8159 (linux_nat_info_proc_cmd_all): Likewise.
8160 (linux_target_install_ops): Install linux_nat_info_proc.
8161 (_initialize_linux_nat): No longer install "info proc" command
8164 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8166 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8167 * config.in, configure: Regenerate.
8169 * target.h (struct target_ops): Add to_fileio_readlink.
8170 (target_fileio_readlink): Add prototype.
8171 * target.c (target_fileio_readlink): New function.
8173 * inf-child.c: Conditionally include <sys/param.h>.
8174 (inf_child_fileio_readlink): New function.
8175 (inf_child_target): Install it.
8177 * remote.c (PACKET_vFile_readlink): New enum value.
8178 (remote_hostio_readlink): New function.
8179 (init_remote_ops): Install it.
8180 (_initialize_remote): Handle vFile:readlink packet type.
8182 2012-01-20 Pedro Alves <palves@redhat.com>
8183 Ulrich Weigand <ulrich.weigand@linaro.org>
8185 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8186 * config.in, configure: Regenerate.
8188 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8189 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8190 (target_fileio_open): Add prototype.
8191 (target_fileio_pwrite): Likewise.
8192 (target_fileio_pread): Likewise.
8193 (target_fileio_close): Likewise.
8194 (target_fileio_unlink): Likewise.
8195 (target_fileio_read_alloc): Likewise.
8196 (target_fileio_read_stralloc): Likewise.
8198 * target.c: Include "gdb/fileio.h".
8199 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8200 (default_fileio_target): New function.
8201 (target_fileio_open): Likewise.
8202 (target_fileio_pwrite): Likewise.
8203 (target_fileio_pread): Likewise.
8204 (target_fileio_close): Likewise.
8205 (target_fileio_unlink): Likewise.
8206 (target_fileio_close_cleanup): Likewise.
8207 (target_fileio_read_alloc_1): Likewise.
8208 (target_fileio_read_alloc): Likewise.
8209 (target_fileio_read_stralloc): Likewise.
8211 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8212 <fcntl.h>, and <unistd.h>.
8213 (inf_child_fileio_open_flags_to_host): New function.
8214 (inf_child_errno_to_fileio_error): Likewise.
8215 (inf_child_fileio_open): Likewise.
8216 (inf_child_fileio_pwrite): Likewise.
8217 (inf_child_fileio_pread): Likewise.
8218 (inf_child_fileio_close): Likewise.
8219 (inf_child_fileio_unlink): Likewise.
8220 (inf_child_target): Install to_fileio routines.
8222 * remote.c (init_remote_ops): Install to_fileio routines.
8224 2012-01-20 Pedro Alves <palves@redhat.com>
8225 Ulrich Weigand <ulrich.weigand@linaro.org>
8227 * remote.c (remote_multi_process_p): Only check for multi-process
8228 protocol feature, do not check for extended protocol.
8229 (remote_supports_multi_process): Check for extended protocol here.
8230 (set_general_process): Likewise.
8231 (extended_remote_kill): Likewise.
8232 (remote_pid_to_str): Likewise.
8233 (remote_query_supported): Always query multiprocess mode.
8235 2012-01-20 Pedro Alves <palves@redhat.com>
8236 Ulrich Weigand <ulrich.weigand@linaro.org>
8238 * inferior.h (struct inferior): Add fake_pid_p.
8239 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8240 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8241 magic_null_ptid since the remote side doesn't provide a real PID.
8243 2012-01-19 Tom Tromey <tromey@redhat.com>
8245 * NEWS: Combine the two Python sections.
8247 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8249 * target.h (target_close): Update comment on the target's unpush state.
8251 2012-01-19 Pedro Alves <palves@redhat.com>
8253 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8254 linux_nat_async directly instead of going through the target
8256 * target.c (unpush_target): Close target after unpushing it, not
8259 2012-01-19 Gary Benson <gbenson@redhat.com>
8261 * mdebugread.c (sort_blocks): Replace integer constants with ones
8262 derived from FIRST_LOCAL_BLOCK.
8264 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8265 Jan Kratochvil <jan.kratochvil@redhat.com>
8268 * symfile.c (find_separate_debug_file): New function.
8269 (terminate_after_last_dir_separator): Likewise.
8270 (find_separate_debug_file_by_debuglink): Also try realpath.
8271 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8272 * configure: Regenerate.
8273 * config.in: Regenerate.
8275 2012-01-18 Doug Evans <dje@google.com>
8277 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8278 (main.o): Remove rule.
8279 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8280 (--with-sysroot): Rewrite.
8281 * configure: Regenerate.
8282 * config.in: Regenerate.
8284 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8286 * parse.c (initialize_expout): New function.
8287 (reallocate_expout): Likewise.
8288 (parse_exp_in_context): Use `initialize_expout' and
8289 `reallocate_expout' when appropriate.
8291 2012-01-18 Pedro Alves <palves@redhat.com>
8293 * record.c (struct record_breakpoint, record_breakpoint_p)
8294 (record_breakpoints): New.
8295 (record_insert_breakpoint, record_remove_breakpoint): Manage
8296 record breakpoints list. Only remove breakpoints from the
8297 inferior if they had been inserted there in the first place.
8299 2012-01-17 Doug Evans <dje@google.com>
8301 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8302 if we know we don't have a file name to look for.
8304 2012-01-17 Pedro Alves <palves@redhat.com>
8306 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8307 the frame's stop reason is UNWIND_UNAVAILABLE.
8309 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8311 Fix compilation error.
8312 * m2-exp.y (yyerror): Use ANSI C prototype.
8314 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8316 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8317 (growbuf_by_size): Likewise.
8318 (yyerror): Likewise.
8319 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8320 (modblock): Remove variable (was #if 0'ed).
8321 (parse_number): Convert prototype from K&R to ANSI C.
8322 (yyerror): Likewise.
8323 * objc-exp.y (parse_number): Likewise.
8324 (yyerror): Likewise.
8325 (yylex): Remove #if 0'ed code.
8326 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8327 (yyerror): Likewise.
8329 2012-01-16 Tom Tromey <tromey@redhat.com>
8332 * symtab.h (compare_filenames_for_search): Declare.
8333 * symtab.c (compare_filenames_for_search): New function.
8334 (iterate_over_some_symtabs): Use it.
8335 * symfile.h (struct quick_symbol_functions)
8336 <map_symtabs_matching_filename>: Change spec.
8337 * psymtab.c (partial_map_symtabs_matching_filename): Use
8338 compare_filenames_for_search. Update for new spec.
8339 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8340 compare_filenames_for_search. Update for new spec.
8341 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8343 2012-01-16 Tom Tromey <tromey@redhat.com>
8346 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8347 (struct main_type) <flag_flag_enum>: New field.
8348 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8349 * NEWS: Add entries.
8350 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8352 * python/lib/gdb/printing.py (_EnumInstance): New class.
8353 (FlagEnumerationPrinter): Likewise.
8355 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8357 * breakpoint.c (create_sals_from_address_default): New function.
8358 (create_breakpoints_sal_default): Likewise.
8359 (decode_linespec_default): Likewise.
8360 (is_marker_spec): Removed.
8361 (strace_marker_p): New function.
8362 (init_breakpoint_sal): Using `strace_marker_p' instead of
8364 (create_breakpoint): Call method `create_sals_from_address' from
8365 breakpoint_ops, replacing code that created SALs conditionally
8366 on the type of the breakpoint. Call method `create_breakpoints_sal',
8367 replacing code that created breakpoints conditionally on the type
8369 (base_breakpoint_create_sals_from_address): New function.
8370 (base_breakpoint_create_breakpoints_sal): Likewise.
8371 (base_breakpoint_decode_linespec): Likewise.
8372 (base_breakpoint_ops): Add methods
8373 `base_breakpoint_create_sals_from_address',
8374 `base_breakpoint_create_breakpoints_sal' and
8375 `base_breakpoint_decode_linespec'.
8376 (bkpt_create_sals_from_address): New function.
8377 (bkpt_create_breakpoints_sal): Likewise.
8378 (bkpt_decode_linespec): Likewise.
8379 (tracepoint_create_sals_from_address): Likewise.
8380 (tracepoint_create_breakpoints_sal): Likewise.
8381 (tracepoint_decode_linespec): Likewise.
8382 (strace_marker_create_sals_from_address): Likewise.
8383 (strace_marker_create_breakpoints_sal): Likewise.
8384 (strace_marker_decode_linespec): Likewise.
8385 (strace_marker_breakpoint_ops): New variable.
8386 (addr_string_to_sals): Remove `marker_spec'. Call method
8387 `decode_linespec' from breakpoint_ops, replacing code that decoded
8388 an address string into a SAL. Use `strace_marker_p' instead of
8390 (strace_command): Decide whether we are dealing with a static
8391 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8392 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8393 * breakpoint.h (linespec_result, linespec_sals): New forward
8395 (breakpoint_ops) <create_sals_from_address>,
8396 <create_breakpoints_sal>, <decode_linespec>: New methods.
8398 2012-01-14 Doug Evans <dje@google.com>
8400 * NEWS: Update text for "maint set python print-stack".
8401 It is deprecated in gdb 7.4 and deleted in 7.5.
8403 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8405 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8408 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8410 * configure: Regenerate.
8411 * config.in: Regenerate.
8413 2012-01-12 Keith Seitz <keiths@redhat.com>
8416 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8417 (ANONYMOUS_UNION_NAME): Define.
8418 (is_path_expr_parent): New function.
8419 (get_path_expr_parent): New function.
8420 (is_anonymous_child): New function.
8421 (create_child_with_value): If the child is anonymous and without
8422 a name, assign an object name to it.
8423 (c_describe_child): Use get_path_expr_parent to determine
8424 the parent expression.
8425 If there field represents an anonymous struct or union and
8426 has no name, set an appropriate display name and expression.
8427 (cplus_describe_child): Likewise.
8429 2012-01-12 Pedro Alves <palves@redhat.com>
8431 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8432 available when %ebp is found to be zero (outermost).
8434 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8436 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8437 an internal gdb_static_assert.
8438 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8440 2012-01-11 Tom Tromey <tromey@redhat.com>
8443 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8444 catch" and "catch throw".
8446 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8448 * blockframe.c (block_innermost_frame): Start search from selected
8449 frame, if present, or otherwise the current frame.
8451 * c-exp.y (variable): Update innermost_block for
8452 'block COLONCOLON NAME' clause.
8453 * m2-exp.y (variable): Ditto.
8454 * objc-exp.y (variable): Ditto.
8456 2012-01-10 Tom Tromey <tromey@redhat.com>
8459 * python/python.c (finish_python_initialization): Set sys.argv.
8461 2012-01-10 Doug Evans <dje@google.com>
8463 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8464 "want_line_info". All callers updated.
8465 (dwarf_decode_lines_1): New function.
8466 (handle_DW_AT_stmt_list): Add function comment.
8467 New arg "want_line_info". All callers updated.
8468 (read_file_scope,read_type_unit_scope): Move comment from
8469 handle_DW_AT_stmt_list to here.
8471 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8473 Fix regression after libiberty/ update for GCC PR 6057 and others.
8474 * c-exp.y (operator) <OPERATOR DELETE>
8475 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8476 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8477 (make_builtin_type, make_name): New variable i, add gdb_assert.
8478 (operator) <OPERATOR NEW>: Update ARGS to 3.
8479 (operator) <OPERATOR DELETE>: Add trailing space.
8480 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8481 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8482 * cp-support.c (cp_canonicalize_string): Check NULL from
8483 cp_comp_to_string, call warning and return.
8485 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8487 Fix duplicate .o files after omitting libbfd.a.
8488 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8489 (SFILES): Add corelow.c.
8490 (COMMON_OBS): Add corelow.o.
8491 (ALLDEPFILES): Remove corelow.c.
8492 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8493 * config/alpha/alpha-osf3.mh: Likewise.
8494 * config/alpha/fbsd.mh: Likewise.
8495 * config/arm/nbsdaout.mh: Likewise.
8496 * config/arm/nbsdelf.mh: Likewise.
8497 * config/i386/i386gnu.mh: Likewise.
8498 * config/ia64/hpux.mh: Likewise.
8499 * config/ia64/linux.mh: Likewise.
8500 * config/m32r/linux.mh: Likewise.
8501 * config/m68k/linux.mh: Likewise.
8502 * config/mips/irix5.mh: Likewise.
8503 * config/mips/irix6.mh: Likewise.
8504 * config/pa/hpux.mh: Likewise.
8505 * config/pa/linux.mh: Likewise.
8506 * config/powerpc/aix.mh: Likewise.
8507 * config/sparc/linux.mh: Likewise.
8508 * config/sparc/linux64.mh: Likewise.
8509 * config/sparc/sol2.mh: Likewise.
8510 * config/vax/vax.mh: Likewise.
8511 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8512 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8513 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8514 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8515 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8516 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8517 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8518 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8519 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8520 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8521 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8522 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8523 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8524 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8525 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8526 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8527 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8528 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8529 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8530 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8531 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8532 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8533 corelow.o from gdb_target_obs.
8534 * corefile.c (core_target): Update the comment on NULL value.
8535 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8536 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8537 MATCHES. Drop YUMMY set on NULL.
8538 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8539 reclaim CORE_DATA if it is already NULL.
8541 2012-01-09 Doug Evans <dje@google.com>
8543 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8544 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8546 2012-01-09 Keith Seitz <keiths@redhat.com>
8548 * breakpoint.c (wrapper.h): Don't include.
8550 2012-01-09 Keith Seitz <keiths@redhat.com>
8552 * Makefile.in (SFILES): Remove wrapper.c.
8553 (HFILES_NO_SRCDIR): Remove wrapper.h.
8554 (COMMON_OBS): Remove wrapper.o.
8555 * cli/cli-interp.c: Don't inlude wrapper.h.
8556 * corelow.c: Likewise.
8557 (core_open): Replace gdb_target_find_new_threads with
8558 TRY_CATCH around target_find_new_threads.
8559 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8560 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8561 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8562 evaluate_expression.
8563 (varobj_set_value): Likewise for evaluate_expression and
8565 (install_new_variable): Likewise for value_fetch_lazy.
8566 (adjust_value_for_child_access): Likewise for value_ind.
8567 (c_describe_child): Likewise for value_subscript and
8569 (c_value_of_root): Likewise for evaluate_expression.
8570 * wrapper.c: Remove.
8571 * wrapper.h: Remove.
8573 2012-01-09 Doug Evans <dje@google.com>
8575 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8576 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8577 "abfd" args with "section". All callers updated.
8578 Error checking code moved ...
8579 (error_check_comp_unit_head): ... here. New function.
8580 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8581 Delete arg "abfd". New arg "type_offset". All callers updated.
8582 (create_debug_types_hash_table): Simplify by using
8583 read_and_check_type_unit_head.
8585 * parser-defs.h (namecopy): Delete.
8586 * parse.c (namecopy, namecopy_size): Move into copy_name.
8588 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8590 Partially fix duplicate .o files after omitting libbfd.a.
8591 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8592 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8593 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8594 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8595 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8596 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8597 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8599 2012-01-09 Pedro Alves <palves@redhat.com>
8601 * MAINTAINERS: Update my email address.
8603 2012-01-08 Doug Evans <dje@google.com>
8605 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8606 n_type_units. Rename type_comp_units to all_type_units.
8608 (add_signatured_type_cu_to_table): Renamed from
8609 add_signatured_type_cu_to_list. All callers updated.
8611 * gdbtypes.h (struct cplus_struct_type): Delete member
8612 nfn_fields_total. All uses removed.
8614 2012-01-06 Doug Evans <dje@google.com>
8616 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8618 (dwarf2_find_comp_unit): Delete.
8619 (process_psymtab_comp_unit): Make result "void".
8620 Delete args buffer, info_ptr, buffer_size, and replace with
8621 "section". All callers updated.
8622 (dwarf2_build_psymtabs_hard): Simplify.
8624 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8625 Thiago Jung Bauermann <bauerman@br.ibm.com>
8627 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8628 before `struct gdb_exception'.
8629 * breakpoint.c (update_global_location_list_nothrow)
8630 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8631 * cp-abi.c (value_rtti_type): Likewise.
8632 * cp-support.c (cp_validate_operator): Likewise.
8633 * infrun.c (insert_exception_resume_breakpoint)
8634 (check_exception_resume, keep_going): Likewise.
8635 * mi-interp.c (mi_breakpoint_created)
8636 (mi_breakpoint_modified): Likewise.
8637 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8638 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8639 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8641 2012-01-05 Doug Evans <dje@google.com>
8643 * dwarf2read.c (statement_prologue): Delete, unused.
8645 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8646 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8648 * dwarf2read.c (comp_unit_header): Delete, unused.
8650 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8652 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8653 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8655 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8657 * infrun.c (normal_stop): Don't skip calling the normal_stop
8658 observers if the thread was doing a multi-step, but stopped for
8659 some reason other than stepping.
8661 2012-01-05 Pedro Alves <alves.ped@gmail.com>
8663 * cli/cli-decode.h: Add comments.
8664 (CMD_LIST_AMBIGUOUS): Moved to command.h
8665 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8666 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8667 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8668 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8669 (add_com, add_com_alias, add_info, add_info_alias)
8670 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8672 * command.h: Add and adjust comments.
8673 (CMD_LIST_AMBIGUOUS): Moved here.
8674 (help_cmd, help_cmd_list): Delete declarations.
8676 2012-01-04 Doug Evans <dje@google.com>
8678 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8679 All callers updated.
8680 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8681 Replace all arguments with "per_cu". All callers updated.
8683 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8685 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8686 New arg "per_cu". All callers updated.
8688 Delete #if 0'd out code.
8689 * language.c (binop_result_type): Delete.
8690 (simple_type, ordered_type, same_type, integral_type): Delete.
8691 (numeric_type, character_type, string_type, boolean_type): Delete.
8692 (float_type, structured_type): Delete.
8693 * language.h: Update.
8695 2012-01-04 Tom Tromey <tromey@redhat.com>
8697 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8699 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8701 * corefile.c (close_exec_file): Delete.
8702 (reopen_exec_file): Remove commented out code that seems related
8703 to close_exec_file, which is being deleted here.
8704 * inferior.h (close_exec_file): Delete.
8705 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8707 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8709 * ada-lang.c: #include "cli/cli-utils.h".
8710 (get_selections): Use skip_spaces.
8711 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8712 (catch_ada_exception_command_split): Use skip_spaces.
8713 (ada_decode_assert_location): Likewise.
8715 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8717 * linespec.c (decode_line_internal): Check for C++ or Java
8718 compound constructs only if the current language is C, C++
8721 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8724 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8725 Joel Brobecker <brobecker@adacore.com>
8726 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8727 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8729 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8730 fall through into AT_ENTRY_POINT.
8731 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8733 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8734 PPC_INSN_SIZE skip to 3 times.
8736 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8738 * linespec.c (add_minsym): Preserve function descriptors.
8740 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8742 * breakpoint.c (all_locations_are_pending): Consider locations
8743 in program spaces executing during startup pending as well.
8745 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8747 Copyright year update in most files of the GDB Project.
8749 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8751 * copyright.sh: Delete.
8752 * copyright.py: Rewrite.
8754 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8756 * gnulib/extra/update-copyright: New file, imported from gnulib.
8758 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8760 * README (Copyright and License Notices): New section.
8762 2012-01-03 Tom Tromey <tromey@redhat.com>
8765 * python/py-value.c (valpy_dereference, valpy_get_address
8766 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8767 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8768 (valpy_absolute, valpy_richcompare): Free intermediate values.
8770 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8772 * ada-lang.c: Reformat the copyright notice.
8774 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8776 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8777 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8778 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8779 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8780 Revert this part of:
8781 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8782 Build gdb directly from *.o files not using libgdb.a.
8783 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8785 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8787 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8788 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8789 Reformat the copyright header.
8791 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8793 Revert this part of:
8794 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8795 Remove the gdbtui binary.
8796 * gdb.c (main): Remove args.interpreter_p initialization.
8797 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8798 * main.h (struct captured_main_args): Remove interpreter_p.
8800 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8802 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8804 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8806 * top.c (print_gdb_version): Update copyright year.
8808 2012-01-02 Yao Qi <yao@codesourcery.com>
8810 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8812 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8813 Joel Brobecker <brobecker@adacore.com>
8815 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8816 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8818 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8819 fall through into AT_ENTRY_POINT.
8820 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8822 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8823 PPC_INSN_SIZE skip to 3 times.
8825 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8827 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
8829 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
8831 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8833 Build gdb directly from *.o files not using libgdb.a.
8834 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
8835 (COMMON_OBS): Remove solib-target.o.
8836 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
8837 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8838 (LIBGDB_OBS, libgdb.a): Move it above.
8839 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
8840 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
8841 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
8842 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
8843 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
8844 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
8845 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
8846 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
8847 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
8848 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
8849 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
8850 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
8851 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
8852 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
8853 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8854 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
8855 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
8856 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8857 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
8858 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
8859 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
8860 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
8861 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
8862 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
8863 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
8864 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
8865 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
8867 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8869 Remove the gdbtui binary.
8870 * .gitignore (/gdbtui): Remove.
8871 * Makefile.in (TUI): Remove.
8872 (SUBDIR_TUI_OBS): Remove tui-main.o.
8873 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
8874 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
8875 (tui-main.o): Remove.
8876 (all_object_files): Remove tui-main.o.
8877 * NEWS: New note for the gdbtui removal.
8878 * configure: Rebuilt.
8879 * configure.ac: No longer add all-tui, clean-tui, install-tui and
8880 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
8881 CONFIG_UNINSTALL respectively.
8882 * gdb.c (main): Remove args.interpreter_p initialization.
8883 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8884 * main.h (struct captured_main_args): Remove interpreter_p.
8885 * tui/tui-main.c: Remove.
8887 2012-01-01 Doug Evans <dje@google.com>
8889 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
8890 (dwarf2_physname, read_import_statement): Ditto.
8891 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
8892 (process_structure_scope read_subroutine_type): Ditto.
8893 (read_typedef, load_partial_dies, read_partial_die): Ditto.
8894 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
8895 (dwarf2_fetch_die_location_block): Ditto.
8896 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
8898 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
8899 All callers updated.
8900 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
8901 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
8902 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
8904 * dwarf2read.c (load_cu): Move assert to more useful location.
8906 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
8907 All callers updated.
8909 * dwarf2read.c (dwarf2_per_objfile): Add comment.
8910 (dwarf2_elf_names): Minor reformat.
8911 (dwarf2_per_cu_data): Tweak comment.
8912 (dwarf2_read_section): Fix comment.
8913 (create_all_comp_units): Fix comment.
8914 (load_full_comp_unit): Fix comment.
8915 (process_full_comp_unit): Fix comment.
8916 (read_signatured_type): Fix comment.
8918 For older changes see ChangeLog-2011.
8924 version-control: never