1 2012-07-20 Doug Evans <dje@google.com>
3 * NEWS: Document new options "set/show use-deprecated-index-sections",
4 and delete reference to --use-deprecated-index-sections.
5 * symfile.h (use_deprecated_index_sections): Delete.
6 * dwarf2read.c (use_deprecated_index_sections): Make static.
7 (read_index_from_section): Update wording of how to load
8 deprecated index sections.
9 (_initialize_dwarf2_read): New options
10 "set/show use-deprecated-index-sections".
11 * main.c (captured_main): Delete --use-deprecated-index-sections.
13 2012-07-20 Pedro Alves <palves@redhat.com>
18 * infrun.c (handle_inferior_event) <new thread>: Don't special
20 <TARGET_WAITKIND_SPURIOUS>: Ditto.
21 * linux-thread-db.c (thread_get_info_callback): Don't return early
22 if the thread is zombie.
23 (thread_from_lwp): Change return type to void. Rewrite stale
25 (attach_thread): Don't return early if the thread is zombie,
26 instead set its "dying" flag.
27 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
28 (find_new_threads_callback): Don't return early if the thread is
31 2012-07-20 Pedro Alves <palves@redhat.com>
33 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
34 * target.c (target_wait): Likewise.
35 (str_comma_list_concat_elem, do_option, target_options_to_string):
37 * target.h (target_options_to_string): Declare.
39 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
40 Tom Tromey <tromey@redhat.com>
42 * dwarf2read.c (dwarf_decode_macros)
43 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
44 DW_MACRO_GNU_transparent_include_alt>: New cases.
45 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
46 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
48 2012-07-20 Tom Tromey <tromey@redhat.com>
50 * dwarf2read.c (try_open_dwo_file): Don't call
51 gdb_bfd_stash_filename.
53 2012-07-20 Pedro Alves <palves@redhat.com>
55 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
56 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
57 (i386_process_record): Tweak description comments.
59 2012-07-20 Pedro Alves <palves@redhat.com>
61 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
62 (i386_process_record): Use record_read_memory.
63 * record.c (record_read_memory): New function.
64 (record_arch_list_add_mem, record_exec_insn): Use
66 * record.h (record_read_memory): Declare.
68 2012-07-20 Yao Qi <yao@codesourcery.com>
70 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
73 2012-07-19 Pedro Alves <palves@redhat.com>
75 * record.c (record_resume): Ask the target beneath to report all
78 2012-07-19 Doug Evans <dje@google.com>
80 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
81 there's no section at address zero.
82 (dwarf2_record_block_ranges): Ditto.
84 2012-07-19 Yao Qi <yao@codesourcery.com>
86 * command.h, remote.c: Fix a typo in comment.
88 2012-07-19 Tom Tromey <tromey@redhat.com>
91 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
92 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
93 OP_DECLTYPE>: New cases.
94 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
95 (type_exp): Add new productions.
96 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
98 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
100 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
101 OP_DECLTYPE>: New case.
102 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
104 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
105 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
107 2012-07-19 Tom Tromey <tromey@redhat.com>
109 * c-exp.y (enum token_flags): New.
110 (struct token) <cxx_only>: Remove.
112 (tokentab3, tokentab2, ident_tokens): Update.
113 (lex_one_token): Update. Handle FLAG_SHADOW.
115 2012-07-19 Tom Tromey <tromey@redhat.com>
117 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
118 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
119 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
120 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
121 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
122 type_exp production where appropriate.
123 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
124 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
125 <UNOP_MEMVAL_TYPE>: New case.
126 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
127 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
128 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
129 <UNOP_MEMVAL_TYPE>: New case.
130 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
131 UNOP_REINTERPRET_CAST>: Update.
132 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
133 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
134 UNOP_REINTERPRET_CAST>: Update.
135 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
136 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
137 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
140 2012-07-19 Yao Qi <yao@codesourcery.com>
141 Jan Kratochvil <jan.kratochvil@redhat.com>
143 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
144 and case 'var_optional_filename' together.
145 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
146 instead of add_setshow_optional_filename_cmd for setshow command
147 'args'. Set completer for 'set args'.
149 2012-07-18 Doug Evans <dje@google.com>
151 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
152 * common/gdb_vecs.c: New file, contents from utils.c.
153 * common/host-defs.h: New file, contents from defs.h.
154 * utils.h: New file, contents from defs.h.
155 * defs.h: Move all declarations of objects defined in utils.c
156 to utils.h (except QUIT() and related).
157 #include "utils.h", "host-defs.h".
158 * probe.h (probe_p): Move here from gdb_vecs.h.
159 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
160 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
161 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
162 * Makefile.in (SFILES): Add common/gdb_vecs.c.
163 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
164 (COMMON_OBS): Add gdb_vecs.o.
165 (gdb_vecs.o): New rule.
167 2012-07-18 Keith Seitz <keiths@redhat.com>
169 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
170 parameter. If non-zero, use SYMNAME as the canonical name
173 (convert_linespec_to_sals): Use add_sal_to_sals for
175 (decode_line_full): No need to "fill in missing canonical names"
176 anymore. Simply make cleanups for the allocated names.
178 2012-07-18 Keith Seitz <keiths@redhat.com>
180 * linespec.c (struct linespec): Constify expression,
181 source_filename, function_name, and label_name.
182 (symbol_not_found_error): Make all parameters const.
183 (linespec_parser_delete): No need to check for NULL
184 when using xfree. Cast const char * to char * for xfree.
186 2012-07-18 Keith Seitz <keiths@redhat.com>
188 * breakpoint.c (invalid_thread_id_error): New function.
189 (find_condition_and_thread): Use invalid_thread_id_error.
190 (watch_command_1): Likewise.
192 2012-07-18 Tom Tromey <tromey@redhat.com>
194 * cc-with-index.sh, cc-with-dwz.sh: Remove.
195 * contrib/cc-with-tweaks.sh: New file.
197 2012-07-18 Tom Tromey <tromey@redhat.com>
199 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
200 (locate_dwz_sections): Recognize .gdb_index.
201 (create_cus_from_index_list): New function.
202 (create_cus_from_index): Use it. Handle .dwz data.
203 (read_index_from_section): New function, extracted from
205 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
208 2012-07-18 Tom Tromey <tromey@redhat.com>
210 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
211 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
213 (struct dwz_file): New.
214 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
215 (locate_dwz_sections, dwarf2_get_dwz_file)
216 (get_abbrev_section_for_cu): New functions.
217 (error_check_comp_unit_head, read_and_check_comp_unit_head)
218 (read_and_check_type_unit_head): Add abbrev_section argument.
219 (create_debug_types_hash_table): Update.
220 (init_cutu_and_read_dies): Use proper abbrev section.
221 (init_cutu_and_read_dies_no_follow): Likewise.
222 (set_partial_user): Do nothing if PST==NULL.
223 (read_comp_units_from_section): New function.
224 (create_all_comp_units): Use it.
225 (scan_partial_symbols, partial_die_parent_scope): Update.
226 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
227 (process_imported_unit_die, read_partial_die): Handle .dwz files.
228 (find_partial_die): Add offset_in_dwz argument. Update.
229 (guess_partial_die_structure_name, fixup_partial_die): Update.
230 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
231 DW_FORM_GNU_strp_alt.
232 (read_indirect_string_from_dwz): New function.
233 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
234 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
235 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
236 (follow_die_offset): Add offset_in_dwz argument.
237 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
238 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
239 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
240 Handle new macro forms.
241 (dwarf_decode_macros): Update.
242 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
243 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
244 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
245 (create_debug_types_hash_table): Use correct abbrev section.
246 (get_debug_line_section): New function.
247 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
248 (process_full_comp_unit): Pass 'required' argument to
249 end_symtab_get_static_block.
250 * buildsym.h (end_symtab_get_static_block): Update.
251 * buildsym.c (end_symtab_get_static_block): Add 'required'
253 (end_symtab, end_expandable_symtab): Update.
255 2012-07-18 Tom Tromey <tromey@redhat.com>
257 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
259 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
260 (zlib_decompress_section): Remove.
261 (dwarf2_read_section): Use gdb_bfd_map_section.
262 (munmap_section_buffer): Remove.
263 (free_dwo_file, dwarf2_per_objfile_free): Don't use
264 munmap_section_buffer.
265 * gdb_bfd.c: Include zlib.h, sys/mman.h.
266 (struct gdb_bfd_section_data): New.
267 (free_one_bfd_section): New function.
268 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
269 (get_section_descriptor, zlib_decompress_section)
270 (gdb_bfd_map_section): New functions.
271 * gdb_bfd.h (gdb_bfd_map_section): Declare.
273 2012-07-18 Tom Tromey <tromey@redhat.com>
275 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
277 2012-07-18 Tom Tromey <tromey@redhat.com>
279 * gdb_bfd.c (struct gdb_bfd_data): New.
280 (gdb_bfd_cache): New global.
281 (struct gdb_bfd_cache_search): New.
282 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
283 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
284 * gdb_bfd.h (gdb_bfd_open): Declare.
286 2012-07-18 Tom Tromey <tromey@redhat.com>
288 * utils.c (make_cleanup_bfd_unref): Rename from
289 make_cleanup_bfd_close.
290 * defs.h (make_cleanup_bfd_unref): Rename from
291 make_cleanup_bfd_close.
292 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
293 (bfd_openw_with_cleanup): Update.
294 * corelow.c (core_open): Update.
295 * dsrec.c (load_srec): Update.
296 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
297 * remote-m32r-sdi.c (m32r_load): Update.
298 * remote-mips.c (mips_load_srec): Update.
299 (pmon_load_fast): Update.
300 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
302 (darwin_bfd_open): Update.
303 * solib.c (solib_bfd_fopen): Update.
304 * symfile-mem.c (symbol_file_add_from_memory): Update.
305 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
306 (symfile_bfd_open): Update.
307 (generic_load): Update.
309 2012-07-18 Tom Tromey <tromey@redhat.com>
311 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
312 (pmon_load_fast): Likewise.
313 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
314 (m32r_upload_command): Likewise.
315 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
316 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
317 Use make_cleanup_bfd_close.
319 2012-07-18 Tom Tromey <tromey@redhat.com>
321 * symfile.c (symfile_bfd_open): Don't copy name. Call
322 gdb_bfd_stash_filename.
323 (load_command): Open the new BFD before freeing the old.
324 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
325 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
326 Call gdb_bfd_stash_filename.
327 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
328 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
329 gdb_bfd_stash_filename.
330 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
332 * rs6000-nat.c (add_vmap): Don't copy filename. Call
333 gdb_bfd_stash_filename.
334 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
335 * machoread.c (macho_add_oso_symfile): Call
336 gdb_bfd_stash_filename.
337 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
338 gdb_bfd_stash_filename.
339 (macho_check_dsym): Don't copy filename. Call
340 gdb_bfd_stash_filename.
341 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
342 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
343 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
344 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
345 * exec.c (exec_close): Don't free the BFD's filename.
346 (exec_file_attach): Don't copy the filename. Call
347 gdb_bfd_stash_filename.
348 * corelow.c (core_close): Don't free the BFD's filename.
349 (core_open): Call gdb_bfd_stash_filename.
350 * corefile.c (reopen_exec_file): Remove #if 0 code.
351 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
353 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
355 2012-07-18 Tom Tromey <tromey@redhat.com>
357 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
359 (free_dwo_file): Use gdb_bfd_unref.
360 * cli/cli-dump.c: Include gdb_bfd.h.
361 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
362 (bfd_openr_with_cleanup): Likewise.
363 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
365 * utils.c: Include gdb_bfd.h.
366 (do_bfd_close_cleanup): Use gdb_bfd_unref.
367 * symfile.c: Include gdb_bfd.h.
368 (separate_debug_file_exists): Use gdb_bfd_unref.
369 (bfd_open_maybe_remote): Use gdb_bfd_ref.
370 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
371 (generic_load): Use gdb_bfd_ref.
372 (reread_symbols): Use gdb_bfd_unref.
373 * symfile-mem.c: Include gdb_bfd.h.
374 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
375 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
376 * solib.c: Include gdb_bfd.h.
377 (solib_bfd_fopen): Use gdb_bfd_ref.
378 (solib_bfd_open): Use gdb_bfd_unref.
379 (free_so_symbols): Use gdb_bfd_unref.
380 (reload_shared_libraries_1): Use gdb_bfd_unref.
381 * solib-spu.c: Include gdb_bfd.h.
382 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
383 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
385 * solib-frv.c: Include gdb_bfd.h.
386 (enable_break2): Use gdb_bfd_unref.
387 * solib-dsbt.c: Include gdb_bfd.h.
388 (enable_break2): Use gdb_bfd_unref.
389 * solib-darwin.c: Include gdb_bfd.h.
390 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
392 (darwin_bfd_open): Use gdb_bfd_unref.
393 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
394 * remote-mips.c: Include gdb_bfd.h.
395 (mips_load_srec): Use gdb_bfd_ref.
396 (pmon_load_fast): Use gdb_bfd_ref.
397 * remote-m32r-sdi.c: Include gdb_bfd.h.
398 (m32r_load): Use gdb_bfd_ref.
399 * record.c: Include gdb_bfd.h.
400 (record_save_cleanups): Use gdb_bfd_unref.
401 (cmd_record_save): Use gdb_bfd_unref.
402 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
404 * objfiles.h (gdb_bfd_close_or_warn): Remove.
405 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
406 * objfiles.c: Include gdb_bfd.h.
407 (free_objfile): Use gdb_bfd_unref.
408 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
410 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
411 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
412 (macho_check_dsym): Likewise.
413 * m32r-rom.c: Include gdb_bfd.h.
414 (m32r_load): Use gdb_bfd_ref.
415 (m32r_upload_command): Use gdb_bfd_ref.
416 * jit.c: Include gdb_bfd.h.
417 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
418 * gdb_bfd.h: New file.
419 * gdb_bfd.c: New file.
420 * gcore.c: Include gdb_bfd.h.
421 (create_gcore_bfd): Use gdb_bfd_ref.
422 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
423 (gcore_command): Use gdb_bfd_unref.
424 * exec.c: Include gdb_bfd.h.
425 (exec_close): Use gdb_bfd_unref.
426 (exec_close_1): Use gdb_bfd_unref.
427 (exec_file_attach): Use gdb_bfd_ref.
428 * elfread.c: Include gdb_bfd.h.
429 (build_id_verify): Use gdb_bfd_unref.
430 * dsrec.c: Include gdb_bfd.h.
431 (load_srec): Use gdb_bfd_ref.
432 * corelow.c: Include gdb_bfd.h.
433 (core_close): Use gdb_bfd_unref.
434 (core_open): Use gdb_bfd_ref.
435 * bfd-target.c: Include gdb_bfd.h.
436 (target_bfd_xclose): Use gdb_bfd_unref.
437 (target_bfd_reopen): Use gdb_bfd_ref.
438 * Makefile.in (SFILES): Add gdb_bfd.c.
439 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
440 (COMMON_OBS): Add gdb_bfd.o.
442 2012-07-18 Keith Seitz <keiths@redhat.com>
444 * breakpoint.c (find_condition_and_thread): Initialize
446 (create_breakpiont): find_condition_and_thread will now
447 initialize COND_STRING, THREAD, and REST (and TASK).
448 (addr_string_to_sals): Likewise.
450 2012-07-18 Pedro Alves <palves@redhat.com>
452 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
453 Pull the single step breakpoints out of the target.
455 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
457 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
458 * stap-probe.c (compile_probe_arg): Likewise.
460 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
462 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
463 (elf_compile_to_ax): Likewise.
464 * infrun.c (insert_exception_resume_from_probe): Likewise.
465 (check_exception_resume): Remove `objfile' variable.
466 * probe.c (find_probe_by_pc): Remove `objfile' argument.
467 (struct probe_and_objfile, probe_and_objfile_s): Delete.
468 (collect_probes): Adjust return value to `VEC (probe_p) *'.
469 (compare_entries): Rename to...
470 (compare_probes): ...this. Adjust function to work with
471 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
473 (gen_ui_out_table_header_info): Adjust `probes' argument to be
475 (print_ui_out_info): Adjust argument to be `struct probe *'.
476 (info_probes_for_ops): Adjust internal computations to use
478 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
479 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
480 gen_info_probes_table_values>: Remove `objfile' argument.
481 (struct probe) <objfile>: New field.
482 (find_probe_by_pc): Remove `objfile' argument.
483 * stap-probe.c (stap_parse_probe_arguments): Likewise.
484 (stap_get_probe_argument_count): Likewise.
485 (stap_get_arg): Likewise.
486 (stap_evaluate_probe_argument): Likewise.
487 (stap_compile_to_ax): Likewise.
488 (compile_probe_arg): Refactor not to pass `objfile' anymore.
489 (handle_stap_probe): Fill `objfile' field from `struct probe'.
490 (stap_gen_info_probes_table_header): Remove `objfile' argument.
491 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
492 sym_compile_to_ax>: Likewise.
494 2012-07-18 Terry Guo <terry.guo@arm.com>
497 * defs.h (GDB_MI_MSG_WIDTH): New.
498 * ser_base (ser_base_read_error_fd): New function.
499 (do_ser_base_readchar): Poll error file descriptor as well as
501 (generic_readchar): Refactor error handling.
503 2012-07-18 Joel Brobecker <brobecker@adacore.com>
505 * NEWS: Create a new section for the next release branch.
506 Rename the section of the current branch, now that it has
509 2012-07-18 Joel Brobecker <brobecker@adacore.com>
511 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
512 * version.in: Bump version to 7.5.50.20120718-cvs.
514 2012-07-17 Keith Seitz <keiths@redhat.com>
516 * linespec.c (linespec_parse_line_offset): Make parameter
519 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
522 * f-valprint.c (info_common_command): New variable frame_id.
523 Reinitialize FI form FRAME_ID after each print_variable_and_value.
524 * printcmd.c (print_variable_and_value): Extend function comment.
525 Add comment for invalidated FRAME.
526 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
527 FI form FRAME_ID after each print_frame_local_vars.
528 (struct print_variable_and_value_data): Change frame to frame_id.
529 (do_print_variable_and_value): New variable frame, initialize it from
530 p->frame_id. Add comment for invalidated FRAME.
531 (print_frame_local_vars, print_frame_arg_vars): New function comment.
532 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
533 for invalidated FRAME.
535 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
536 Pedro Alves <palves@redhat.com>
538 * linux-nat.c (linux_nat_detach): Don't unregister from the event
541 2012-07-16 Tom Tromey <tromey@redhat.com>
543 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
545 2012-07-15 Doug Evans <dje@google.com>
547 * dwarf2read.c (stmt_list_hash): New struct.
548 (type_unit_group): Embed "per_cu" member, remove pointer.
549 New union member "t", move member "tus" into it, all uses updated.
550 New member "hash", replaces member "line_offset, all uses updated.
551 (quick_file_names): Replace member "offset" with "hash", all uses
553 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
554 (hash_file_name_entry, eq_file_name_entry): Call them.
555 (hash_type_unit_group, eq_type_unit_group): Ditto.
556 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
557 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
558 (dw2_get_file_names): Update.
559 (create_type_unit_group): Replace "per_cu" arg with "cu".
560 All callers updated. Fix "quick" (.gdb_index) handling.
561 (get_type_unit_group): Replace "per_cu" arg with "cu".
563 (build_type_unit_groups): Don't reset tu_stats.
565 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
566 "tab_cur_size". Change member "tab" to be a htab_t.
567 (create_filename_seen_cache): Update.
568 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
569 (filename_seen): Update.
571 2012-07-13 Doug Evans <dje@google.com>
573 * symtab.c (filename_seen): Update comment.
575 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
576 Doug Evans <dje@google.com>
578 * buildsym.c (end_symtab_1): Split it to ...
579 (end_symtab_get_static_block): ... this ...
580 (end_symtab_from_static_block): ... and this function.
581 (end_symtab, end_expandable_symtab): Call them.
582 * buildsym.h (end_symtab_get_static_block)
583 (end_symtab_from_static_block): New declarations.
584 * dwarf2read.c (process_full_comp_unit): New variable static_block.
585 Set its valid CU ranges.
587 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
589 * dwarf2loc.c (disassemble_dwarf_expression): Handle
590 DW_OP_GNU_parameter_ref.
592 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
594 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
595 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
597 2012-07-13 Doug Evans <dje@google.com>
599 * symtab.c (output_source_filename): Delete unnecessary forward decl.
600 (filename_seen_cache): New struct.
601 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
602 (create_filename_seen_cache): New function.
603 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
604 (filename_seen): Delete arg "first". New arg "cache". All callers
606 (output_source_filename_data): New struct.
607 (output_source_filename): Delete arg "first". New arg "data".
609 (sources_info): Delete local "first". New locals "data", "cleanups".
610 Rewrite to use filename_seen_cache.
611 (add_partial_filename_data): Delete member "first". New member
612 "filename_seen_cache". All uses updated.
613 (make_source_files_completion_list): Rewrite to use
616 2012-07-12 Doug Evans <dje@google.com>
618 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
620 2012-07-10 Doug Evans <dje@google.com>
623 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
624 all_type_unit_groups, type_unit_groups, tu_stats.
625 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
626 All uses updated. Add type_unit_group to union "s".
627 (type_unit_group): New struct.
628 (IS_TYPE_UNIT_GROUP): New macro.
629 (abbrev_table): Delete unused member "section".
630 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
631 (dw2_get_cu): Assert not used with type_unit_group.
632 (dw2_get_primary_cu): New function.
633 (dw2_build_type_unit_groups_reader): New function.
634 (dw2_build_type_unit_groups): New function.
635 (dw2_get_file_names): Assert not called on type units.
636 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
637 Redo loop to iterate over type unit groups instead of type units.
638 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
639 (read_abbrev_offset): New function.
640 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
642 (create_partial_symtab): New function.
643 (process_psymtab_comp_unit_reader): Assert not used with type units.
644 Call create_partial_symtab.
645 (process_psymtab_type_unit): Delete.
646 (hash_type_unit_group, eq_type_unit_group): New functions.
647 (allocate_type_unit_groups_table): New function.
648 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
649 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
650 (create_type_unit_group, get_type_unit_group): New functions.
651 (tu_abbrev_offset): New struct.
652 (sort_tu_by_abbrev_offset): New function.
653 (add_type_unit_group_to_table): New function.
654 (build_type_unit_groups): New function.
655 (build_type_psymtabs_reader): New function.
656 (build_type_psymtab_dependencies): New function.
657 (build_type_psymtabs): Rewrite.
658 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
659 is seen in a type unit.
660 (process_queue): Move symtab expansion debugging printfs here.
661 Call process_full_type_unit for type units.
662 (compute_symtab_includes): Assert not called for type units.
663 (process_cu_includes): Don't call compute_symtab_includes for
665 (process_full_type_unit): New function.
666 (process_imported_unit_die): Flag an error if called for type units.
667 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
668 updated. Assert not called for type units.
669 (read_file_scope): Call dwarf2_start_symtab.
670 (setup_type_unit_groups): New function.
671 (read_type_unit_scope): Rewrite.
672 (abbrev_table_read_table): Initialize abbrev_table->offset.
673 (abbrev_table_free_cleanup): New function.
674 (dwarf2_start_symtab): New function.
675 (load_full_type_unit): Assert not called for type unit groups.
676 * buildsym.c (finish_block_internal): New arg "expandable".
678 (start_symtab): Move most contents to ...
679 (restart_symtab): ... here. New function.
680 (reset_symtab_globals): New function.
681 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
682 Call reset_symtab_globals.
683 (end_symtab, end_expandable_symtab): New functions.
684 (set_missing_symtab, augment_type_symtab): New functions.
685 * buildsym.h (end_expandable_symtab): Declare.
686 (augment_type_symtab, restart_symtab): Declare.
687 * psympriv.h (struct partial_symtab): New member "anonymous".
688 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
690 (read_psymtabs_with_filename): Ditto.
691 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
692 (expand_symtabs_matching_via_partial): Ditto.
693 (dump_psymtab): Update.
694 * dictionary.c (dict_add_pending): New function.
695 * dictionary.h (dict_add_pending): Declare.
697 2012-07-09 Doug Evans <dje@google.com>
699 * buildsym.c (start_subfile): Remove unnecessary check for
702 * psymtab.c (allocate_psymtab): Use host_address_to_string.
704 * dwarf2read.c (load_full_type_unit): Simplify.
706 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
707 to struct signatured_type **. All uses updated.
709 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
712 2012-07-09 Tom Tromey <tromey@redhat.com>
714 * c-exp.y (check_parameter_typelist): New function.
715 (parameter_typelist): Call it.
716 * eval.c (make_params): Handle '(void)' case.
717 * gdbtypes.c (lookup_function_type_with_arguments): Handle
720 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
722 * common/linux-ptrace.c: Include gdb_assert.h.
723 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
724 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
726 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
728 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
729 * linux-nat.c (linux_child_post_attach)
730 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
732 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
734 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
735 nptl <2.7 bug workaround for core files.
737 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
739 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
741 (save_siginfo): Remove.
742 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
744 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
745 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
746 * linux-nat.h (struct lwp_info): Remove field siginfo.
748 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
750 Code cleanup for the next patch.
751 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
752 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
754 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
755 (ia64_linux_stopped_data_address):
756 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
758 * linux-nat.h (linux_nat_get_siginfo): Likewise.
759 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
760 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
763 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
766 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
767 Increase buffer sizes to 2x we need, not just 2x of the previous size.
769 2012-07-06 Tom Tromey <tromey@redhat.com>
771 * c-exp.y (DOTDOTDOT): New token.
772 (func_mod, exp): Use parameter_typelist.
773 (parameter_typelist): New production.
774 (tokentab3): Add "..." token.
775 * eval.c (make_params): Handle varargs.
776 * gdbtypes.c (lookup_function_type_with_arguments): Handle
779 2012-07-06 Tom Tromey <tromey@redhat.com>
782 * c-exp.y (%union) <tvec>: Change type.
783 (func_mod): Now uses <tvec> type.
784 (exp): Update for tvec change.
785 (direct_abs_decl): Push the typelist.
786 (func_mod): Return a typelist.
787 (nonempty_typelist): Update for tvec change.
788 * gdbtypes.c (lookup_function_type_with_arguments): New function.
789 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
790 * parse.c (pop_type_list): New function.
791 (push_typelist): New function.
792 (follow_types): Handle tp_function_with_arguments.
793 * parser-defs.h (type_ptr): New typedef. Define a VEC.
794 (enum type_pieces) <tp_function_with_arguments>: New constant.
795 (union type_stack_elt) <typelist_val>: New field.
796 (push_typelist): Declare.
798 2012-07-06 Tom Tromey <tromey@redhat.com>
800 * c-exp.y (%union) <type_stack>: New field.
801 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
802 (ptr_operator_ts): New production.
804 * parse.c (type_stack_reserve): New function.
805 (check_type_stack_depth): Use it.
806 (pop_type_stack, append_type_stack, push_type_stack)
807 (get_type_stack, type_stack_cleanup): New functions.
808 (follow_types): Handle tp_type_stack.
809 (_initialize_parse): Simplify initialization.
810 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
812 (union type_stack_elt) <stack_val>: New field.
813 (get_type_stack, append_type_stack, push_type_stack)
814 (type_stack_cleanup): Declare.
816 2012-07-06 Tom Tromey <tromey@redhat.com>
818 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
820 (struct type_stack): New.
821 * parse.c (type_stack, type_stack_size, type_stack_depth):
823 (type_stack): New global.
824 (parse_exp_in_context, check_type_stack_depth)
825 (insert_into_type_stack, insert_type, push_type, push_type_int)
826 (insert_type_address_space, pop_type, pop_type_int)
827 (_initialize_parse): Update.
829 2012-07-06 Tom Tromey <tromey@redhat.com>
831 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
834 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
836 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
838 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
839 Jan Kratochvil <jan.kratochvil@redhat.com>
841 * cp-valprint.c (cp_print_value): Replace potentially unsafe
842 alloca with xmalloc/xfree.
844 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
846 * MAINTAINERS (Write After Approval): Add myself to the list.
848 2012-07-05 Doug Evans <dje@google.com>
850 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
852 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
854 * ax-gdb.c (cli/cli-utils.h): New include.
856 (agent_eval_command_one): New function.
857 (agent_command_1): Ditto.
858 (agent_command): Call function agent_command_1.
859 (agent_eval_command): Ditto.
860 (_initialize_ax_gdb): Change help for "maint agent"
861 and "maint agent-eval".
863 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
865 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
866 * cli/cli-utils.c (check_for_argument): New function.
867 * cli/cli-utils.h (check_for_argument): Ditto.
869 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
871 * NEWS: Mention x32 ABI support.
873 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
875 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
876 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
878 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
879 and pc_regnum_from_eax to -1. Update SP regnum from
880 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
883 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
886 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
888 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
889 * dwarf2expr.h: Include gdbtypes.h.
890 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
891 these forward declarations.
892 (cu_offset, sect_offset): Move these ...
893 * gdbtypes.h: Remove include dwarf2expr.h.
894 (cu_offset, sect_offset): ... here.
896 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
898 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
899 (amd64_linux_sigtramp_code): This.
900 (amd64_x32_linux_sigtramp_code): New.
901 (LINUX_SIGTRAMP_LEN): Updated.
902 (amd64_linux_sigtramp_start): Check x32 sigtramp.
904 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
906 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
908 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
910 * config.in: Regenerate.
911 * configure: Regenerate.
912 * configure.ac: Remove check for gnu/libc-version.h.
913 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
915 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
916 variables libc_version, libc_major and libc_minor. Replace sscanf by
917 inferior_has_bug. Extend the comment.
919 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
921 * linux-thread-db.c (inferior_has_bug): New function.
922 (thread_db_find_new_threads_silently): Return boolean as checked by
923 inferior_has_bug, describe it in the comments.
924 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
925 earlier. Abort the initialization if it returned non-zero.
926 (thread_db_new_objfile): Exclude debug files.
927 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
930 2012-07-02 Doug Evans <dje@google.com>
932 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
933 related to queue management.
935 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
936 instead of "debug dwarf2-die" in debugging printfs.
937 (create_debug_info_hash_table_reader): Ditto.
938 (create_debug_info_hash_table): Ditto.
939 (init_dwo_file): Ditto.
940 (init_cutu_and_read_dies): Add debugging printf.
941 (init_cutu_and_read_dies_no_follow): Ditto.
942 (process_psymtab_comp_unit_reader): Ditto.
944 2012-07-02 Stan Shebs <stan@codesourcery.com>
946 Add target-side support for dynamic printf.
947 * NEWS: Mention the additional style.
948 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
949 (struct bp_location): New field cmd_bytecode.
950 * breakpoint.c: Include format.h.
951 (disconnected_dprintf): New global.
952 (parse_cmd_to_aexpr): New function.
953 (build_target_command_list): New function.
954 (insert_bp_location): Call it.
955 (remove_breakpoints_pid): Skip dprintf breakpoints.
956 (print_one_breakpoint_location): Ditto.
957 (dprintf_style_agent): New global.
958 (dprintf_style_enums): Add dprintf_style_agent.
959 (update_dprintf_command_list): Add agent case.
960 (agent_printf_command): New function.
961 (_initialize_breakpoint): Add new commands.
962 * common/ax.def (printf): New bytecode.
963 * ax.h (ax_string): Declare.
964 * ax-gdb.h (gen_printf): Declare.
965 * ax-gdb.c: Include cli-utils.h, format.h.
966 (gen_printf): New function.
967 (maint_agent_print_command): New function.
968 (_initialize_ax_gdb): Add maint agent-printf command.
969 * ax-general.c (ax_string): New function.
970 (ax_print): Add printf disassembly.
971 * Makefile.in (SFILES): Add format.c
972 (COMMON_OBS): Add format.o.
973 * common/format.h: New file.
974 * common/format.c: New file.
975 * printcmd.c: Include format.h.
976 (ui_printf): Call parse_format_string.
977 * remote.c (remote_state): New field breakpoint_commands.
978 (PACKET_BreakpointCommands): New enum.
979 (remote_breakpoint_commands_feature): New function.
980 (remote_protocol_features): Add new BreakpointCommands entry.
981 (remote_can_run_breakpoint_commands): New function.
982 (remote_add_target_side_commands): New function.
983 (remote_insert_breakpoint): Call it.
984 (remote_insert_hw_breakpoint): Ditto.
985 (_initialize_remote): Add new packet configuration for
986 target-side breakpoint commands.
987 * target.h (struct target_ops): New field
988 to_can_run_breakpoint_commands.
989 (target_can_run_breakpoint_commands): New macro.
990 * target.c (update_current_target): Handle
991 to_can_run_breakpoint_commands.
993 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
995 Execute -ix and -iex only after system and user gdbinit files.
996 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
997 processing down after gdbinit files.
999 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1001 Add fnmatch-gnu module.
1002 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1003 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1004 * gnulib/aclocal.m4: Regenerate.
1005 * gnulib/config.in: Regenerate.
1006 * gnulib/configure: Regenerate.
1007 * gnulib/import/dummy.c: Remove.
1008 * gnulib/import/Makefile.am: Regenerate.
1009 * gnulib/import/Makefile.in: Likewise.
1010 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1011 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1012 * gnulib/import/alloca.c: New file.
1013 * gnulib/import/alloca.in.h: Likewise.
1014 * gnulib/import/config.charset: Likewise.
1015 * gnulib/import/fnmatch.c: Likewise.
1016 * gnulib/import/fnmatch.in.h: Likewise.
1017 * gnulib/import/fnmatch_loop.c: Likewise.
1018 * gnulib/import/localcharset.c: Likewise.
1019 * gnulib/import/localcharset.h: Likewise.
1020 * gnulib/import/m4/alloca.m4: Likewise.
1021 * gnulib/import/m4/codeset.m4: Likewise.
1022 * gnulib/import/m4/configmake.m4: Likewise.
1023 * gnulib/import/m4/fcntl-o.m4: Likewise.
1024 * gnulib/import/m4/fnmatch.m4: Likewise.
1025 * gnulib/import/m4/glibc21.m4: Likewise.
1026 * gnulib/import/m4/localcharset.m4: Likewise.
1027 * gnulib/import/m4/locale-fr.m4: Likewise.
1028 * gnulib/import/m4/locale-ja.m4: Likewise.
1029 * gnulib/import/m4/locale-zh.m4: Likewise.
1030 * gnulib/import/m4/mbrtowc.m4: Likewise.
1031 * gnulib/import/m4/mbsinit.m4: Likewise.
1032 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1033 * gnulib/import/m4/mbstate_t.m4: Likewise.
1034 * gnulib/import/m4/stdbool.m4: Likewise.
1035 * gnulib/import/m4/wchar_h.m4: Likewise.
1036 * gnulib/import/m4/wctype_h.m4: Likewise.
1037 * gnulib/import/m4/wint_t.m4: Likewise.
1038 * gnulib/import/mbrtowc.c: Likewise.
1039 * gnulib/import/mbsinit.c: Likewise.
1040 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1041 * gnulib/import/mbsrtowcs-state.c: Likewise.
1042 * gnulib/import/mbsrtowcs.c: Likewise.
1043 * gnulib/import/ref-add.sin: Likewise.
1044 * gnulib/import/ref-del.sin: Likewise.
1045 * gnulib/import/stdbool.in.h: Likewise.
1046 * gnulib/import/streq.h: Likewise.
1047 * gnulib/import/strnlen1.c: Likewise.
1048 * gnulib/import/strnlen1.h: Likewise.
1049 * gnulib/import/verify.h: Likewise.
1050 * gnulib/import/wchar.in.h: Likewise.
1051 * gnulib/import/wctype.in.h: Likewise.
1053 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1055 Support shell wildcards for 'set auto-load safe-path'.
1056 * auto-load.c: Include fnmatch.h.
1057 (filename_is_in_dir): Rename to ...
1058 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1059 it. Update function comment. Rename dir_len to pattern_len. New
1060 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1061 messages. Use gdb_filename_fnmatch.
1062 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1064 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1065 * defs.h (gdb_filename_fnmatch): New declaration.
1066 * utils.c: Include fnmatch.h.
1067 (gdb_filename_fnmatch): New function.
1069 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1071 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1072 `-probe' and `-probe-stap' options.
1074 2012-07-01 Yao Qi <yao@codesourcery.com>
1076 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1077 always_inserted_off, and always_inserted_enums.
1078 Change always_inserted_mode's type to 'enum auto_boolean'.
1079 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1081 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1082 of add_setshow_enum_cmd.
1083 * infrun.c: Remove can_use_displaced_stepping_auto,
1084 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1085 can_use_displaced_stepping_enum.
1086 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1087 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1088 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1089 add_setshow_enum_cmd.
1091 2012-06-30 Doug Evans <dje@google.com>
1093 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1094 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1095 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1097 2012-06-29 Doug Evans <dje@google.com>
1099 * linespec.c: #include "stack.h".
1100 (decode_line_with_current_source): Moved here from symtab.c and
1101 renamed from decode_line_spec. All callers updated.
1102 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1103 renamed from decode_line_spec_1. All callers updated.
1104 * linespec.h (decode_line_with_current_source): Move declaration here
1105 from symtab.h and renamed from decode_line_spec.
1106 (decode_line_with_last_displayed): Move declaration here from symtab.h
1107 and renamed from decode_line_spec_1.
1108 * macrocmd.c: #include "linespec.h".
1109 * symtab.c: Remove #include "linespec.h".
1111 2012-06-28 Doug Evans <dje@google.com>
1113 * dwarf2read.c (get_cu_length): New function.
1114 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1115 (create_debug_types_hash_table): Ditto.
1116 (init_cutu_and_read_dies): Ditto.
1117 (init_cutu_and_read_dies_no_follow): Ditto.
1119 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1121 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1122 (struct abbrev_table): Define.
1123 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1125 (init_cutu_and_read_dies): Update.
1126 (abbrev_table_alloc_abbrev): New function. Replaces
1127 dwarf_alloc_abbrev. All callers updated.
1128 (abbrev_table_add_abbrev): New function.
1129 (abbrev_table_lookup_abbrev): New function. Replaces
1130 dwarf2_lookup_abbrev. All callers updated.
1131 (abbrev_table_read_table): New function. Contents moved here from
1132 dwarf2_read_abbrevs.
1133 (dwarf2_read_abbrevs): Call it.
1134 (abbrev_table_free): New function.
1135 (dwarf2_free_abbrev_table): Call it.
1137 2012-06-28 Stan Shebs <stan@codesourcery.com>
1139 * osdata.c (info_osdata_command): Filter out "Title" columns
1141 * common/linux-osdata.c (struct osdata_type): Add title field.
1142 (osdata_table): Add titles to each entry.
1143 (linux_command_xfer_osdata): Add a column for title data.
1145 2012-06-28 Stan Shebs <stan@codesourcery.com>
1147 Make logging work for MI.
1149 * interps.h (interp_set_logging_ftype): New typedef.
1150 (struct interp_procs): New field set_logging_proc.
1151 (current_interp_set_logging): Declare.
1152 * interps.c (current_interp_set_logging): New function.
1153 * cli/cli-logging.c: Include interps.h.
1154 (set_logging_redirect): Call current_interp_set_logging.
1155 (pop_output_files): Ditto.
1156 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1157 * mi/mi-console.h (mi_console_set_raw): Declare.
1158 * mi/mi-console.c (mi_console_set_raw): New function.
1159 * mi/mi-interp.c (saved_raw_stdout): New global.
1160 (mi_set_logging): New function.
1161 (_initialize_mi_interp): Add it to interp procs.
1163 2012-06-28 Doug Evans <dje@google.com>
1165 * symtab.c (lookup_symbol_aux_objfile): Use
1166 ALL_OBJFILE_PRIMARY_SYMTABS.
1168 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1170 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1172 * common/buffer.c: Include inttypes.h and stdint.h.
1173 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1175 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1176 Pedro Alves <palves@redhat.com>
1178 * gdbthread.h (ALL_THREADS): New macro.
1179 (thread_list): Declare.
1180 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1181 going, but instead fall through to the stepping handling.
1182 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1183 the passed in signal. Adjust debug output.
1184 (resume_callback): Rename to ...
1185 (linux_nat_resume_callback): ... this. Pass the thread's last
1186 stop signal, if in "pass" state.
1187 (linux_nat_resume): Adjust to rename.
1188 (stop_wait_callback): New assertion. Don't respawn signals;
1189 instead let the LWP remain with SIGNALLED set.
1190 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1191 * remote.c (append_pending_thread_resumptions): New.
1192 (remote_vcont_resume): Call it.
1193 * target.h (target_resume): Extend comment.
1195 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1197 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1199 2012-06-27 Doug Evans <dje@google.com>
1201 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1202 Delete have_addr_base, unused. All uses updated.
1203 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1204 (dwarf2_get_pc_bounds): Add ranges_base.
1205 (dwarf2_record_block_ranges): Ditto.
1207 2012-06-27 Tom Tromey <tromey@redhat.com>
1210 * varobj.c (varobj_create): Update.
1211 (varobj_set_value): Update.
1212 * tracepoint.c (validate_actionline): Update.
1213 (encode_actions_1): Update.
1214 * parse.c (parse_exp_1): Add 'pc' argument.
1215 (parse_exp_in_context): Add 'pc' argument. Change how
1216 expression_context_pc is set.
1217 (parse_expression): Update.
1218 (parse_field_expression): Update.
1219 * expression.h (parse_exp_1): Update.
1220 * eval.c (parse_to_comma_and_eval): Update.
1221 * breakpoint.c (set_breakpoint_condition): Update.
1222 (update_watchpoint): Update.
1223 (init_breakpoint_sal): Update
1224 (find_condition_and_thread): Update.
1225 (watch_command_1): Update.
1226 (update_breakpoint_locations): Update.
1227 * ada-lang.c (ada_read_renaming_var_value): Update.
1228 (create_excep_cond_exprs): Update.
1230 2012-06-27 Doug Evans <dje@google.com>
1232 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1235 2012-06-26 Doug Evans <dje@google.com>
1237 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1239 (error_check_comp_unit_head): New arg abbrev_section. All callers
1241 (read_and_check_comp_unit_head): Ditto.
1242 (read_and_check_type_unit_head): Ditto.
1244 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1246 New attribute 'last' for gdb.Symtab_and_line.
1247 * NEWS (Python Scripting): Add entry about the new attribute.
1248 * python/py-symtab.c (salpy_get_last): New function which
1249 implements the get method for the 'last' attribute of
1250 gdb.Symtab_and_line.
1251 (sal_object_getset): Add entry for the 'last' attribute.
1253 2012-06-26 Doug Evans <dje@google.com>
1255 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1256 (dwo_sections): Add macinfo, macro.
1257 (dwarf2_locate_dwo_sections): Watch for macro sections.
1258 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1259 All callers updated. Handle DWO files.
1261 * NEWS: Mention new options "set debug dwarf2-read" and
1262 "set debug symtab-create".
1263 * dwarf2read.c (dwarf2_read_debug): New static global.
1264 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1265 (process_queue): Ditto.
1266 (process_full_comp_unit): Ditto.
1267 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1268 * elfread.c (elf_symfile_read): Add debugging printf.
1269 * minsyms.c (install_minimal_symbols): Ditto.
1270 * psymtab.c (allocate_psymtab): Ditto.
1271 * symfile.c (allocate_symtab): Ditto.
1272 * symtab.c (symtab_create_debug): New global.
1273 (_initialize_symtab): Add new option "set debug symtab-create".
1274 * symtab.h (symtab_create_debug): Declare.
1276 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1277 (lookup_dwo_type_unit): Ditto.
1279 2012-06-26 Roland McGrath <roland@hack.frob.com>
1280 H.J. Lu <hongjiu.lu@intel.com>
1282 * amd64-linux-nat.c: Include <sys/user.h>.
1283 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1284 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1285 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1287 * configure.ac: Check if the fs_base and gs_base members of
1288 `struct user_regs_struct' exist.
1289 * config.in: Regenerated.
1290 * configure: Likewise.
1292 2012-06-25 Michael Eager <eager@eagercon.com>
1295 * python/python.c (gdbpy_write): Check for interrupted output.
1297 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1299 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1300 register as a stack alignment in ARM mode.
1302 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1304 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1305 * gnulib/config.in: Regenerate.
1306 * gnulib/configure: Likewise.
1307 * gnulib/import/m4/extensions.m4: Update it.
1308 * gnulib/import/m4/gnulib-common.m4: Likewise.
1309 * gnulib/import/m4/memmem.m4: Likewise.
1310 * gnulib/import/m4/mmap-anon.m4: Likewise.
1311 * gnulib/import/m4/multiarch.m4: Likewise.
1312 * gnulib/import/stdint.in.h: Likewise.
1314 2012-06-24 Yao Qi <yao@codesourcery.com>
1316 * corefile.c (write_memory_with_notification): New.
1317 * gdbcore.h: Declare write_memory_with_notification.
1318 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1319 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1320 * valops.c (value_assign): Likewise.
1321 * python/py-inferior.c (infpy_write_memory): Call
1322 'write_memory_with_notification'.
1324 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1326 * cc-with-index.sh: Use also -ex "set auto-load no".
1328 2012-06-23 Doug Evans <dje@google.com>
1331 * NEWS: Document additions to .gdb_index.
1332 * dwarf2read.c: #include "gdb/gdb-index.h".
1333 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1334 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1335 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1336 (dwarf2_read_index): Recognize version 7.
1337 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1338 block_kind, domain): All callers updated.
1339 (dw2_find_symbol_file): Handle new index CU values.
1340 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1341 (add_index_entry): New args is_static, kind. All callers updated.
1342 (offset_type_compare, uniquify_cu_indices): New functions
1343 (symbol_kind): New function.
1344 (write_psymtabs_to_index): Remove duplicate CU values.
1345 (write_psymtabs_to_index): Write .gdb_index version 7.
1347 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1349 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1350 * configure: Regenerate.
1352 2012-06-20 Yao Qi <yao@codesourcery.com>
1354 * python/py-inferior.c: Update comments of infpy_read_memory
1355 and infpy_write_memory.
1357 2012-06-19 Tom Tromey <tromey@redhat.com>
1360 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1361 (push_type_address_space): Remove.
1362 * parse.c (insert_into_type_stack): New function.
1363 (insert_type): Likewise.
1364 (insert_type_address_space): Rename from push_type_address_space.
1365 Insert tp_space_identifier.
1366 * c-exp.y (ptr_operator): New production.
1367 (abs_decl): Use ptr_operator.
1368 (space_identifier): Call insert_type_address_space.
1369 (ptype): Don't use const_or_volatile_or_space_identifier.
1370 (const_or_volatile_noopt): Call insert_type.
1371 (conversion_type_id, conversion_declarator): New productions.
1372 (operator): Use conversion_type_id.
1374 2012-06-18 Doug Evans <dje@google.com>
1376 * symtab.h (minimal_symbol): New member created_by_gdb.
1377 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1379 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1380 (search_symbols): Call it instead of lookup_symbol.
1381 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1383 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1384 Adjust address for DW_OP_GNU_addr_index.
1385 * dwarf2expr.h (dwarf_expr_context): Update comment.
1386 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1387 all callers updated. Handle TLS vars described with
1388 DW_OP_GNU_const_index.
1389 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1390 and DW_OP_GNU_const_index.
1391 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1393 * block.c (find_block_in_blockvector): Make explicit the fact that we
1394 ignore GLOBAL_BLOCK.
1396 2012-06-18 Tom Tromey <tromey@redhat.com>
1398 * c-exp.y (operator): Remove trailing space after "delete" and
1401 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1402 Jan Kratochvil <jan.kratochvil@redhat.com>
1404 Switch i386 and derived targets to ON_STACK.
1405 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1406 (amd64_dicos_init_abi): Remove its installment.
1407 * dicos-tdep.c (dicos_init_abi): Remove the
1408 set_gdbarch_call_dummy_location call. Update the comment here.
1409 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1410 (i386_dicos_init_abi): Remove its installment.
1411 * i386-tdep.c (i386_push_dummy_code): New function.
1412 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1413 i386_push_dummy_code.
1415 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1417 Remove stale dummy frames.
1418 * breakpoint.c: Include dummy-frame.h.
1419 (longjmp_breakpoint_ops): New variable.
1420 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1421 bp_longjmp_call_dummy.
1422 (bpstat_what, bptype_string, print_one_breakpoint_location)
1423 (init_bp_location): Support bp_longjmp_call_dummy.
1424 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1425 (set_longjmp_breakpoint_for_call_dummy)
1426 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1428 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1429 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1430 FIXME comment and extend the other comment for bp_call_dummy.
1431 (set_longjmp_breakpoint_for_call_dummy)
1432 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1433 * dummy-frame.c: Include gdbthread.h.
1434 (pop_dummy_frame_bpt): New function.
1435 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1436 (dummy_frame_discard): New function.
1437 (cleanup_dummy_frames): Update the comment about longjmps.
1438 * dummy-frame.h (dummy_frame_discard): New declaration.
1439 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1440 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1441 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1442 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1443 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1444 keep_going if IS_LONGJMP and there is no other reason to stop.
1446 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1448 * remote-sim.c (sim_command_completer): Initialize
1451 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1453 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1454 * dwarf2loc.c (call_site_parameter_matches): Support
1455 CALL_SITE_PARAMETER_PARAM_OFFSET.
1456 (needs_dwarf_reg_entry_value): Push stub value.
1457 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1458 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1459 * gdbtypes.h (enum call_site_parameter_kind): New item
1460 CALL_SITE_PARAMETER_PARAM_OFFSET.
1461 (struct call_site.parameter.u): New field param_offset.
1463 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1465 Code cleanup: Generalize call_site.parameter key.
1466 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1467 variable dwarf_reg. New variable kind_u. Update parameters to
1468 push_dwarf_reg_entry_value.
1469 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1470 * dwarf2expr.h (enum call_site_parameter_kind)
1471 (union call_site_parameter_u): Forward declarations.
1472 (struct dwarf_expr_context_funcs): Update parameters and their
1473 description for push_dwarf_reg_entry_value.
1474 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1475 * dwarf2loc.c (call_site_parameter_matches): New function.
1476 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1477 description. Use call_site_parameter_matches.
1478 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1479 Update parameters and their description.
1480 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1481 New variable kind_u. Adjust the caller for updated parameters.
1482 (needs_dwarf_reg_entry_value): Update parameters.
1483 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1484 instead of attr. Update for the changed fields of struct
1485 call_site_parameter.
1486 * gdbtypes.h: Include dwarf2expr.h.
1487 (enum call_site_parameter_kind): New.
1488 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1489 fb_offset into new union u.
1491 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1493 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1494 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1497 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1499 * amd64-linux-nat.c (compat_x32_clock_t): New.
1500 (compat_x32_siginfo_t): Likewise.
1501 (compat_x32_siginfo_from_siginfo): Likewise.
1502 (siginfo_from_compat_x32_siginfo): Likewise.
1503 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1504 and siginfo_from_compat_x32_siginfo for x32.
1506 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
1508 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1510 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1512 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1513 instead of gdbarch_ptr_bit.
1514 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1515 (amd64_supply_native_gregset): Likewise.
1516 (amd64_collect_native_gregset): Likewise.
1517 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1518 (amd64_supply_xsave): Likewise.
1519 (amd64_collect_fxsave): Likewise.
1520 (amd64_collect_xsave): Likewise.
1522 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1524 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1525 (amd64_linux_read_description): Check DS segment register for
1528 2012-06-15 Tom Tromey <tromey@redhat.com>
1530 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1531 init_cutu_and_read_dies.
1533 2012-06-15 Iain Sandoe <iain@codesourcery.com>
1535 * MAINTAINERS (Write After Approval): Add myself to the list.
1537 2012-06-15 Tom Tromey <tromey@redhat.com>
1539 * valops.c (value_find_oload_method_list): Now static.
1540 * value.h (value_find_oload_method_list): Don't declare.
1542 2012-06-15 Tom Tromey <tromey@redhat.com>
1544 * valops.c (find_overload_match): Use value_ind.
1546 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1548 * infrun.c (handle_inferior_event): Correct indentation.
1550 2012-06-14 Doug Evans <dje@google.com>
1552 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1553 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1555 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1556 updated. Handle DEBUG_LOC_START_LENGTH.
1557 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1558 (loclist_describe_location): Ditto.
1560 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1563 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1564 after hiding inline functions.
1566 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1568 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1569 _initialize_inf_ttrace.
1571 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1573 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1574 _initialize_hppa_hpux_nat.
1576 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1578 * remote-sim.c (sim_command_completer): Change type of return
1579 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1581 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1582 Jan Kratochvil <jan.kratochvil@redhat.com>
1585 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1586 stack on a 16-byte boundary.
1588 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
1590 * jit.c (finalize_symtab): Set function's return type to 'void' by
1593 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1594 H.J. Lu <hongjiu.lu@intel.com>
1596 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1597 Move bits common to both the classic LP64 and the new x32 ILP32
1599 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1600 (amd64_x32_linux_init_abi): New function.
1601 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1604 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1605 * i386-tdep.c (i386_pseudo_register_name): Make public.
1606 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1607 * amd64-tdep.c (amd64_dword_names): Add "eip".
1608 (amd64_x32_pseudo_register_type): New function
1609 (amd64_x32_init_abi): New function.
1611 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1614 * inferior.h (struct inferior_suspend_state): Comment out.
1615 (struct inferior): Comment out the field suspend.
1616 * infrun.c (struct infcall_suspend_state): Comment out the field
1618 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1621 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1623 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1624 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1625 function comment. Return ERROR for unresolved cases. Implement
1626 returning proper NAME.
1627 (yylex): Accept also NAME from classify_inner_name.
1628 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1629 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1631 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1633 2012-06-13 Tom Tromey <tromey@redhat.com>
1635 * breakpoint.c (condition_completer): New function.
1636 (_initialize_breakpoint): Use it.
1637 * value.c (complete_internalvar): New function.
1638 * value.h (complete_internalvar): Declare.
1640 2012-06-13 Tom Tromey <tromey@redhat.com>
1642 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1643 * breakpoint.c (catch_syscall_completer): Return a VEC.
1644 * cli/cli-cmds.c (complete_command): Update.
1645 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1646 (complete_on_enum): Likewise.
1647 * command.h: Include gdb_vecs.h.
1648 (completer_ftype): Change return type.
1649 (complete_on_cmdlist, complete_on_enum): Likewise.
1650 * completer.c (noop_completer, filename_completer)
1651 (location_completer): Return a VEC.
1652 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1654 (expression_completer, complete_line_internal, complete_line)
1655 (command_completer): Return a VEC.
1656 (gdb_completion_word_break_characters, line_completion_function):
1658 * completer.h: Include gdb_vecs.h.
1659 (complete_line, noop_completer, filename_completer)
1660 (expression_completer, location_completer, command_completer):
1662 * f-lang.c (f_word_break_characters): Return a VEC.
1663 * interps.c (interpreter_completer): Return a VEC.
1664 * language.h (struct language_defn)
1665 <la_make_symbol_completion_list>: Return a VEC.
1666 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1667 * symtab.c (free_completion_list): Take a VEC.
1668 (return_val_size, return_val_index): Remove.
1669 (return_val): Now a VEC.
1670 (completion_list_add_name): Update.
1671 (default_make_symbol_completion_list_break_on)
1672 (default_make_symbol_completion_list, make_symbol_completion_list)
1673 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1675 (add_filename_to_list): Update.
1676 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1678 (maybe_add_partial_symtab_filename): Update.
1679 (make_source_files_completion_list): Return a VEC.
1680 * symtab.h (default_make_symbol_completion_list_break_on)
1681 (default_make_symbol_completion_list, make_symbol_completion_list)
1682 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1683 (make_source_files_completion_list): Update.
1685 2012-06-13 Tom Tromey <tromey@redhat.com>
1687 * breakpoint.c (add_catch_command): Use completer_ftype.
1688 * breakpoint.h: Include command.h.
1689 (add_catch_command): Use completer_ftype.
1690 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1691 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1692 Use completer_ftype.
1693 * command.h (completer_ftype): New typedef.
1694 (set_cmd_completer): Use it.
1695 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1698 2012-06-13 Pedro Alves <palves@redhat.com>
1700 Partial revert of previous change.
1702 * serial.c (scb_base): New global.
1703 (serial_for_fd): New.
1704 (serial_open, serial_fdopen_ops): Link new serial in open serials
1706 (do_serial_close): Unlink serial from the open serials chain.
1708 2012-06-12 Pedro Alves <palves@redhat.com>
1710 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
1712 (prepare_for_detach): No longer context switch here in non-stop
1714 (fetch_inferior_event): Ditto.
1715 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
1716 to the event thread before removing breakpoints. Switch to the
1717 event thread before inserting breakpoints and resuming.
1718 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
1719 event thread before resuming.
1720 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
1721 Switch to the event thread before removing breakpoints.
1723 2012-06-12 Eli Zaretskii <eliz@gnu.org>
1725 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
1726 special characters correctly for the Windows shells. See
1727 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
1729 [!__MINGW32__]: Remove extra double quote character from special
1732 2012-06-11 Stan Shebs <stan@codesourcery.com>
1734 * ui-out.h: Remove #if 0 declarations.
1735 * ui-out.c: Remove #if 0 functions.
1737 2012-06-11 Pedro Alves <palves@redhat.com>
1739 * ser-base.c (run_async_handler_and_reschedule): New.
1740 (fd_event, push_event): Use it.
1741 * serial.c (serial_open, serial_fdopen_ops): Set the initial
1742 reference count to 1.
1743 (do_serial_close): Set the bufp field to NULL. Use serial_unref
1745 (serial_is_open, serial_ref, serial_unref): New.
1746 * serial.h (serial_open): Adjust comment.
1747 (serial_is_open): Declare.
1748 (serial_close): Adjust comment.
1749 (serial_ref, serial_unref) Declare.
1750 (struct serial): New field 'refcnt'.
1752 2012-06-11 Pedro Alves <palves@redhat.com>
1754 Remove #if 0'd "connect" command, and unnecessary associated
1755 refcounting and serial reuse bits.
1757 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
1758 * serial.c (last_serial_opened): Delete.
1760 (serial_open): Adjust.
1761 (serial_for_fd): Delete.
1762 (serial_fdopen_ops, do_serial_close): Adjust.
1763 (serial_fdopen_ops): Adjust.
1765 2012-06-11 Pedro Alves <palves@redhat.com>
1767 * serial.c (do_serial_close): Remove early return when SCB is
1770 2012-06-11 Tom Tromey <tromey@redhat.com>
1772 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
1774 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1776 Fix regression by the "ambiguous linespec" series.
1777 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
1778 get_last_displayed_symtab and get_last_displayed_line and depending
1781 2012-06-11 Tom Tromey <tromey@redhat.com>
1783 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
1784 (dw2_find_symbol_file): Use it.
1786 2012-06-11 Michael Eager <eager@eagercon.com>
1788 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
1789 * mips-linux-tdep.h (mips_signals): New
1791 2012-06-11 Tom Tromey <tromey@redhat.com>
1793 * infrun.c (handle_inferior_event)
1794 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
1796 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
1797 exception logic in all cases. Update comments.
1798 (insert_longjmp_resume_breakpoint): Set the exception resume
1801 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
1803 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
1805 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
1807 * valarith.c (binop_types_user_defined_p): Fix a typo.
1809 2012-06-08 Yao Qi <yao@codesourcery.com>
1810 Chung-Lin Tang <cltang@codesourcery.com>
1812 * arch-utils.c (default_return_in_first_hidden_param_p): New.
1813 * arch-utils.h: Declare.
1814 * gdbarch.sh: Add return_in_first_hidden_param_p.
1815 * gdbarch.c, gdbarch.h: Regenerated.
1816 * infcall.c (call_function_by_hand): Call
1817 gdbarch_return_in_first_hidden_param_p instead of
1818 language_pass_by_reference.
1820 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
1821 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
1822 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
1823 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
1824 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
1825 `cplus_return_struct_by_reference'.
1826 (tic6x_return_value): Handle language cplusplus.
1827 (tic6x_return_in_first_hidden_param_p): New.
1828 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
1830 2012-06-07 Doug Evans <dje@google.com>
1832 * dwarf2read.c (dwarf2_cu): Add comment.
1834 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1836 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
1838 (mips_eabi_push_dummy_call): Likewise.
1839 (mips_n32n64_push_dummy_call): Likewise.
1840 (mips_o32_push_dummy_call): Likewise.
1841 (mips_o64_push_dummy_call): Likewise.
1843 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1845 * mips-tdep.c (mips_convert_register_p): Correct coding style.
1847 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
1849 * mips-tdep.c (mips_pseudo_register_type): Use
1850 mips_float_register_p.
1852 2012-06-06 Pedro Alves <palves@redhat.com>
1854 * infrun.c (handle_inferior_event): Remove calls to
1855 reinit_frame_cache that follow a context_switch call.
1857 2012-06-06 Pedro Alves <palves@redhat.com>
1859 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
1860 context_switch and remove stale comment.
1862 2012-06-06 Pedro Alves <palves@redhat.com>
1864 * infrun.c (struct execution_control_state): Remove
1865 `new_thread_event' field.
1866 (handle_inferior_event): Simplify new threads handling; don't
1867 resume the inferior if we find a new thread.
1869 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
1871 * NEWS: Document the deprecation of SH's 'regs' command.
1872 * inferior.h (all_registers_info): Add function declaration.
1873 * sh-tdep.c (sh_show_regs): Remove variable.
1874 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
1875 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
1876 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
1877 (sh_show_regs_command): Remove functions.
1878 (sh_gdbarch_init): Don't set sh_show_regs.
1879 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
1880 'info all-registers'.
1881 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
1882 (sh64_show_regs): Remove functions.
1883 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
1885 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1887 * configure.ac: Move development=true below AC_INIT.
1888 * configure: Regenerate.
1890 2012-06-05 Stan Shebs <stan@codesourcery.com>
1892 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
1895 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
1897 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
1898 argument as ssize_t.
1899 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
1900 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
1901 * target.c (target_read_stack, target_write_memory)
1902 (target_write_raw_memory): Likewise.
1903 * target.h (target_read_stack, target_write_memory)
1904 (target_write_raw_memory): Likewise.
1906 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1908 * symfile-mem.c: Change gdb_static_assert to ssize_t.
1909 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
1910 * target.c (target_read_memory): Change LEN to ssize_t.
1911 * target.h (target_read_memory): Change LEN to ssize_t.
1913 2012-06-05 Pedro Alves <palves@redhat.com>
1917 * breakpoint.c (until_break_command): Only fetch the selected
1918 frame after decode_line_1.
1920 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
1922 * solib-svr4.c (enable_break): Don't fallback to setting the solib
1923 event breakpoint at _start, __start or main if a program
1924 interpreter is not found.
1926 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1928 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
1930 * windows-tdep.c: #include "objfiles.h".
1931 (windows_iterate_over_objfiles_in_search_order): New function.
1932 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1933 iterate_over_objfiles_in_search_order gdbarch method to
1934 windows_iterate_over_objfiles_in_search_order.
1935 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1937 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1939 * gdbarch.sh: Add generation of
1940 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
1941 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
1942 (iterate_over_objfiles_in_search_order): New gdbarch method.
1943 * gdbarch.h, gdbarch.c: Regenerate.
1944 * objfiles.h (default_iterate_over_objfiles_in_search_order):
1946 * objfiles.c (default_iterate_over_objfiles_in_search_order):
1948 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1949 out of lookup_symbol_aux_symtabs.
1950 (lookup_symbol_aux_symtabs): Replace extracted-out code by
1951 call to lookup_symbol_aux_objfile.
1952 (struct global_sym_lookup_data): New type.
1953 (lookup_symbol_global_iterator_cb): New function.
1954 (lookup_symbol_global): Search for symbol using
1955 gdbarch_iterate_over_objfiles_in_search_order and
1956 lookup_symbol_global_iterator_cb.
1957 * findvar.c (struct minsym_lookup_data): New type.
1958 (minsym_lookup_iterator_cb): New function.
1959 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
1960 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
1961 and minsym_lookup_iterator_cb.
1963 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1965 Revert the following patch:
1966 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1967 try locating the symbol in the symbol's own objfile first, before
1968 extending the search to all objfiles.
1969 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1970 out of lookup_symbol_aux_symtabs.
1971 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1972 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1973 Do not search EXCLUDE_OBJFILE.
1974 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1975 (lookup_symbol_global): Search for matches in the block's objfile
1976 first, before searching all other objfiles.
1978 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1980 * breakpoint.c (find_condition_and_thread): Stop parsing
1981 as soon as the first invalid keyword is found.
1983 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1985 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
1987 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1989 * config/djgpp/djcheck.sh: Add copyright header.
1991 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1993 * copyright.py (update_files, main): Fix path to update-copyright
1996 2012-06-05 Joel Brobecker <brobecker@adacore.com>
1998 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
1999 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2000 for which a reminder to update by hand is printed.
2002 2012-06-04 Doug Evans <dje@google.com>
2004 * buildsym.c (make_blockvector): Add comment.
2006 2012-06-04 Pedro Alves <palves@redhat.com>
2008 * arch-utils.c (default_gdb_signal_from_target): Delete.
2009 * arch-utils.h (default_gdb_signal_from_target): Delete.
2010 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2011 gdbarch_gdb_signal_from_target_p.
2012 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2014 * gdbarch.h: Regenerate.
2015 * gdbarch.c: Regenerate.
2017 2012-06-04 Pedro Alves <palves@redhat.com>
2019 * gdbarch.sh (gdb_signal_from_target): Mention that the
2020 implementation of the method must be host independent.
2021 * gdbarch.h: Regenerate.
2023 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2025 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2027 (target_read_memory_bfd): New function.
2028 (symbol_file_add_from_memory): Use it.
2030 2012-06-03 Doug Evans <dje@google.com>
2032 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2034 (basic_lookup_transparent_type): Ditto.
2036 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2037 (ALL_PRIMARY_SYMTABS): Use it.
2038 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2039 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2040 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2041 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2042 (basic_lookup_transparent_type): Ditto.
2044 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2046 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2047 it to optimize resolution of demangled name.
2049 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2051 * configure.ac (development): Define new variable.
2052 Call AC_CHECK_LIB for mcheck if $development.
2053 (ERROR_ON_WARNING): Enable it by default only if $development.
2054 * config.in: Regenerate.
2055 * configure: Regenerate.
2057 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2059 * target.c (target_read_memory): Make LEN argument as size_t.
2060 * target.h (target_read_memory): Likewise.
2062 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2064 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2066 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2068 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2069 BookE interface for PowerPC server processors if not available
2070 in the Linux Kernel.
2072 2012-05-31 Keith Seitz <keiths@redhat.com>
2074 * linespec.c (decode_objc): Add cleanup to free
2076 (find_linespec_symbols): Add cleanup to free CLASSES.
2077 * symfile.c (find_separate_debug_file_by_debuglink): Add
2078 cleanup to free DEBUGLINK.
2079 * ui-out.c (clear_header_list): No need to check if
2080 HEADER_NEXT.COLHDR is NULL.
2081 Free HEADER_NEXT.COL_NAME.
2083 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2085 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2088 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2090 * configure.host (gdb_host_cpu): Handle tilegx*.
2091 (gdb_host): Handle tilegx-*-linux*.
2092 * tilegx-linux-nat.c: New file.
2093 * config/tilegx/linux.mh: New file.
2095 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2097 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2098 tilegx-linux-tdep.o.
2099 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2100 tilegx-linux-tdep.c.
2101 * configure.tgt: Handle tilegx-*-linux*.
2102 * tilegx-tdep.h: New file.
2103 * tilegx-tdep.c: New file.
2104 * tilegx-linux-tdep.c: New file.
2105 * regformats/reg-tilegx.dat: New file.
2107 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2109 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2110 accounting of hw watchpoints on ppc.
2112 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2114 * source.c (openp): Expand tilde in path entries.
2116 2012-05-29 Doug Evans <dje@google.com>
2118 * buildsym.c (block_compar): Fix comment.
2119 (end_symtab): Fix and clarify some comments.
2121 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2122 cleanup_undefined_types.
2123 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2124 All callers updated.
2126 2012-05-29 Tom Tromey <tromey@redhat.com>
2128 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2130 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2131 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2133 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2136 2012-05-29 Tristan Gingold <gingold@adacore.com>
2138 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2139 (struct darwin_info): ... New struct.
2140 (solib_darwin_pspace_data): New variable.
2141 (darwin_pspace_data_cleanup): New function.
2142 (get_darwin_info): Likewise.
2143 (darwin_dyld_version_ok, darwin_load_image_infos)
2144 (darwin_solib_get_all_image_info_addr_at_init)
2145 (darwin_solib_read_all_image_info_addr): Add info argument.
2147 (darwin_current_sos): Use per pspace structure.
2148 (darwin_solib_create_inferior_hook): Likewise.
2149 (darwin_clear_solib): Likewise.
2150 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2152 2012-05-28 Pedro Alves <palves@redhat.com>
2154 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2155 block that uses them. Clear ecss before handling each event.
2157 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2159 * solib-svr4.c (svr4_current_sos): New comment on
2160 svr4_current_sos_via_xfer_libraries fall back.
2162 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2164 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2165 it as a fallback for TYPE_IS_OPAQUE.
2166 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2167 symbols for lookup_symbol.
2169 2012-05-24 John Steele Scott <toojays@toojays.net>
2171 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2172 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2173 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2174 (check_producer): ... this new function, which also checks for ICC
2175 and caches the result.
2176 (producer_is_icc): New function.
2177 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2180 2012-05-24 Pedro Alves <palves@redhat.com>
2184 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2185 (default_gdb_signal_to_target): ... this. Add comment.
2186 (default_gdb_signal_from_host): Rename to ...
2187 (default_gdb_signal_from_target): ... this. Add comment.
2188 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2189 (default_gdb_signal_to_target): ... this.
2190 (default_gdb_signal_from_host): Rename to ...
2191 (default_gdb_signal_from_target): ... this.
2192 * corelow.c (core_open): Adjust to naming change. Replace comment.
2193 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2194 (gdb_signal_from_target): ... this. Adjust to
2195 default_gdb_signal_from_host naming change. Extend comment.
2196 (gdb_signal_to_host): Rename to ...
2197 (gdb_signal_to_target): ... this. Adjust to
2198 default_gdb_signal_to_host naming change.
2199 * gdbarch.h, gdbarch.c: Renegerate.
2201 2012-05-24 Pedro Alves <palves@redhat.com>
2205 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2207 2012-05-24 Pedro Alves <palves@redhat.com>
2211 Replace target_signal with gdb_signal throughout.
2213 2012-05-24 Pedro Alves <palves@redhat.com>
2217 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2218 string, instead of reusing the va_list argument.
2220 2012-05-24 Tom Tromey <tromey@redhat.com>
2222 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2225 2012-05-23 Doug Evans <dje@google.com>
2227 * symtab.c (search_symbols): Formatting fixes.
2228 (print_symbol_info): Formatting fixes.
2230 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2231 int64_t change to leb128 API.
2232 (read_encoded_value, decode_frame_entry_1): Ditto.
2233 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2234 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2235 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2236 (execute_stack_op): Ditto.
2237 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2238 (safe_read_uleb128, safe_read_sleb128): Ditto.
2239 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2240 (dwarf2_compile_expr_to_ax): Ditto.
2241 (locexpr_describe_location_piece): Ditto.
2242 (disassemble_dwarf_expression): Ditto.
2243 (locexpr_describe_location_1): Ditto.
2245 2012-05-23 Stan Shebs <stan@codesourcery.com>
2246 Kwok Cheung Yeung <kcy@codesourcery.com>
2248 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2249 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2250 (mi-cmd-info.o): New rule.
2251 * osdata.h (info_osdata_command): New declaration.
2252 * osdata.c (info_osdata_command): Change to non-static.
2253 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2254 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2255 * mi/mi-cmd-info.c: New file.
2257 2012-05-23 Doug Evans <dje@google.com>
2259 * symtab.c (search_symbols): Pass NULL for file_matcher to
2260 expand_symtabs_matching if there are no files to match.
2262 * gdbtypes.c (lookup_typename): Simplify.
2264 2012-05-23 Pedro Alves <palves@redhat.com>
2266 * arch-utils.h (default_target_signal_to_host): Delete.
2267 * arch-utils.c (default_target_signal_to_host): Delete.
2268 * gdbarch.sh (target_signal_to_host): Remove.
2269 * gdbarch.h, gdbarch.c: Regenerate.
2271 2012-05-22 Doug Evans <dje@google.com>
2273 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2275 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2276 (execute_cfa_program): Update to match API of leb128 functions.
2277 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2279 (read_unsigned_leb128, read_signed_leb128): Delete.
2280 (read_initial_length): Change type of buf argument to
2282 (read_encoded_value): Update to match API of leb128 functions.
2283 (decode_frame_entry): Change result to "const gdb_byte *", and
2284 similarly for "start" parameter.
2285 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2286 (dwarf2_build_frame_info): Change local frame_ptr to
2288 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2289 read_uleb128, read_sleb128. All callers updated.
2290 (safe_skip_leb128): New function.
2291 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2292 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2293 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2294 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2295 read_uleb128, read_sleb128.
2296 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2297 (execute_stack_op): Update to match API of leb128 functions.
2298 * dwarf2expr.h: #include "leb128.h".
2299 (read_uleb128, read_sleb128): Delete.
2300 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2301 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2302 * dwarf2loc.c (debug_loc_kind): New enum.
2303 (decode_debug_loc_addresses): New function.
2304 (decode_debug_loc_dwo_addresses): New function.
2305 (dwarf2_find_location_expression): Rewrite.
2306 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2307 (locexpr_describe_location_piece): Ditto.
2308 (disassemble_dwarf_expression): Ditto.
2309 (locexpr_describe_location_1): Ditto.
2310 (loclist_describe_location): Rewrite.
2311 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2312 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2313 (dwarf2_section_buffer_overflow_complaint): Renamed from
2314 dwarf2_macros_too_long_complaint. All callers updated.
2315 (skip_leb128): Delete.
2316 (init_cu_die_reader): Initialize reader->buffer_end.
2317 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2318 (skip_form_bytes): New arg buffer_end. All callers updated.
2319 Replace call to skip_leb128 with gdb_skip_leb128.
2320 (skip_unknown_opcode): New arg mac_end. All callers updated.
2321 (fill_in_loclist_baton): Initialize baton->from_dwo.
2323 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2325 * mips-linux-nat.c (mips_linux_read_description): Use a more
2326 verbose error message.
2328 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2330 * NEWS: Add MIPS/Linux DSP support.
2331 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2332 (SIGCONTEXT_DSPCTL): New macro.
2333 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2334 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2335 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2336 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2337 (N64_SIGCONTEXT_HI3): Likewise.
2338 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2339 (N64_SIGCONTEXT_LO3): Likewise.
2340 (N64_SIGCONTEXT_DSPCTL): Likewise.
2341 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2342 (mips_linux_o32_sigframe_init): Handle DSP registers.
2343 (mips_linux_n32n64_sigframe_init): Likewise.
2345 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2347 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2350 2012-05-22 Pedro Alves <palves@redhat.com>
2352 * target.h (store_waitstatus): Move declaration ...
2353 * inf-child.h (store_waitstatus): ... here.
2354 * target.c: Move inclusion of gdb_wait.h, and ...
2355 (store_waitstatus): ... this ...
2356 * inf-child.c: ... here.
2357 * linux-nat.c: Include inf-child.h.
2358 * rs6000-nat.c: Include inf-child.h.
2359 * spu-linux-nat.c: Include inf-child.h.
2361 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2363 * tracepoint.c (start_tracing): Add missing i18n markup.
2364 (stop_tracing, set_trace_user): Ditto.
2365 (set_trace_notes, set_trace_stop_notes): Ditto.
2367 2012-05-21 Tom Tromey <tromey@redhat.com>
2370 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2372 * value.h (value_cast_pointers): Update.
2373 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2374 (value_cast): Update.
2375 (update_search_result): New function.
2376 (do_search_struct_field): New, from search_struct_field. Check
2377 for ambiguous results.
2378 (search_struct_field): Rewrite.
2379 * infcall.c (value_arg_coerce): Update.
2380 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2381 value_cast_pointers.
2382 * ada-lang.c (ada_convert_actual): Update.
2384 2012-05-21 Tom Tromey <tromey@redhat.com>
2386 * macroexp.c (macro_stringify): Terminate the string.
2388 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2390 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2392 * auto-load.c (auto_load_expand_dir_vars): New function.
2393 (auto_load_safe_path_vec_update): Use it, remove the
2394 substitute_path_component call thanks to it.
2395 (auto_load_objfile_script): Remove the debug_file_directory processing.
2396 Use auto_load_expand_dir_vars, remove the substitute_path_component
2398 * configure: Regenerate.
2399 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2400 path. Escape $ also for $debugdir.
2401 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2402 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2404 2012-05-20 Doug Evans <dje@google.com>
2406 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2407 before use. Check for symtab->includes == NULL before scanning it.
2409 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2411 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2413 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2415 * NEWS: Add microMIPS support and "set mips compression",
2416 "show mips compression" commands.
2417 * mips-tdep.h (mips_isa): New enum.
2418 (gdbarch_tdep): Add mips_isa.
2419 (mips_pc_is_mips16): Update prototype.
2420 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2421 * mips-tdep.c (mips_compression_mips16): New variable.
2422 (mips_compression_micromips): Likewise.
2423 (mips_compression_strings): Likewise.
2424 (mips_compression_string): Likewise.
2425 (is_mips16_isa, is_micromips_isa): New functions.
2426 (is_mips16_addr): Rename to...
2427 (is_compact_addr): ... this.
2428 (unmake_mips16_addr): Likewise to...
2429 (unmake_compact_addr): ... this.
2430 (make_mips16_addr): Likewise to...
2431 (make_compact_addr): ... this.
2432 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2434 (mips_elf_make_msymbol_special): Handle microMIPS code.
2435 (msymbol_is_special): Rename to...
2436 (msymbol_is_mips16): ... this.
2437 (mips_make_symbol_special, mips_pc_is_mips16): Update
2439 (msymbol_is_mips, msymbol_is_micromips): New functions.
2440 (mips16_to_32_reg): Rename to...
2441 (mips_reg3_to_reg): ... this.
2442 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2443 (mips_pc_isa): Likewise.
2444 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2446 (mips_fetch_instruction): Pass return status instead of printing
2447 an error message if requested. Handle microMIPS code. Bail out
2449 (micromips_op): New macro.
2450 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2451 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2452 (b6s4_op, b7s3_reg): Likewise.
2453 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2454 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2455 (mips_insn_size): New function.
2456 (mips32_next_pc): Update mips_fetch_instruction call.
2457 (micromips_relative_offset7): New function.
2458 (micromips_relative_offset10): Likewise.
2459 (micromips_relative_offset16): Likewise.
2460 (micromips_pc_insn_size): Likewise.
2461 (micromips_bc1_pc): Likewise.
2462 (micromips_next_pc): Likewise.
2463 (unpack_mips16): Update mips_fetch_instruction call.
2464 (extended_mips16_next_pc): Update according to change to
2466 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2468 (mips16_scan_prologue): Update mips_fetch_instruction call.
2469 Update according to change to mips16_to_32_reg.
2470 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2471 (mips_insn16_frame_base_sniffer): Likewise.
2472 (micromips_decode_imm9): New function.
2473 (micromips_scan_prologue): Likewise.
2474 (mips_micro_frame_cache): Likewise.
2475 (mips_micro_frame_this_id): Likewise.
2476 (mips_micro_frame_prev_register): Likewise.
2477 (mips_micro_frame_sniffer): Likewise.
2478 (mips_micro_frame_unwind): New variable.
2479 (mips_micro_frame_base_address): New function.
2480 (mips_micro_frame_base): New variable.
2481 (mips_micro_frame_base_sniffer): New function.
2482 (mips32_scan_prologue): Update mips_fetch_instruction call.
2483 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2484 rather than for MIPS16.
2485 (mips_insn32_frame_base_sniffer): Likewise.
2486 (mips_addr_bits_remove): Handle microMIPS code.
2487 (deal_with_atomic_sequence): Rename to...
2488 (mips_deal_with_atomic_sequence): ... this. Update the type
2489 of the variable used to hold an instruction. Remove the ISA bit
2490 check. Update mips_fetch_instruction call.
2491 (micromips_deal_with_atomic_sequence): New function.
2492 (deal_with_atomic_sequence): Likewise.
2493 (mips_about_to_return): Handle microMIPS code. Update
2494 mips_fetch_instruction call.
2495 (heuristic_proc_start): Check for the standard MIPS ISA rather
2496 than for MIPS16. Update mips_pc_is_mips16 and
2497 mips_fetch_instruction calls. Handle microMIPS code.
2498 (mips_push_dummy_code): Handle microMIPS code.
2499 (mips_eabi_push_dummy_call): Likewise.
2500 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2501 (mips_o64_push_dummy_call): Handle microMIPS code.
2502 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2503 (is_delayed): Remove function.
2504 (mips_single_step_through_delay): Replace the call to is_delayed
2505 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2506 Handle microMIPS code.
2507 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2509 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2511 (micromips_in_function_epilogue_p): New function.
2512 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2514 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2516 (gdb_print_insn_mips): Likewise.
2517 (mips_breakpoint_from_pc): Likewise.
2518 (mips_remote_breakpoint_from_pc): New function.
2519 (mips32_instruction_has_delay_slot): Simplify making use of the
2520 updated mips_fetch_instruction interface.
2521 (micromips_instruction_has_delay_slot): New function.
2522 (mips16_instruction_has_delay_slot): Simplify making use of the
2523 updated mips_fetch_instruction interface.
2524 (mips_adjust_breakpoint_address): Check for the standard MIPS
2525 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2526 calls. Handle microMIPS code.
2527 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2528 (mips_skip_trampoline_code): Handle microMIPS code.
2529 (global_mips_compression): New function.
2530 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2531 file flags. Register the microMIPS remote breakpoint handler
2532 and heuristic frame unwinder.
2533 (show_mips_compression): New function.
2534 (_initialize_mips_tdep): Add the "set mips compression" and
2535 "show mips compression" commands.
2537 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2542 * amd64-darwin-tdep.c:
2543 * arm-symbian-tdep.c:
2547 * bfin-linux-tdep.c:
2554 * dwarf2-frame-tailcall.c:
2583 * microblaze-tdep.c:
2584 * mips-linux-tdep.c:
2592 * python/py-finishbreakpoint.c:
2593 * python/py-inferior.c:
2594 * python/py-infthread.c:
2598 * remote-m32r-sdi.c:
2602 * rs6000-aix-tdep.c:
2628 * amd64-darwin-tdep.c:
2629 * arm-symbian-tdep.c:
2630 * arm-tdep.c: Delete unused variables.
2632 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2634 Rename $ddir to $datadir.
2635 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2636 * auto-load.c (auto_load_safe_path_vec_update)
2637 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2638 * configure: Regenerate.
2639 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2640 Likewise. Remove the 'use $ddir' help string.
2642 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2644 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2645 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2647 2012-05-18 Tom Tromey <tromey@redhat.com>
2650 * valprint.h (struct value_print_options) <symbol_print>: New
2652 * valprint.c (user_print_options): Add default for symbol_print.
2653 (show_symbol_print): New function.
2654 (generic_val_print): Respect symbol_print.
2655 (_initialize_valprint): Add "print symbol" setting.
2656 * f-valprint.c (f_val_print): Respect symbol_print.
2657 * c-valprint.c (c_val_print): Respect symbol_print.
2659 * printcmd.c (print_address_symbolic): Return int. Ignore some
2661 (print_address_demangle): Return int.
2662 * defs.h: (print_address_symbolic): Return int.
2663 * value.h (print_address_demangle): Return int.
2665 2012-05-18 Tom Tromey <tromey@redhat.com>
2667 * valprint.c (val_print_string): Don't print leading space.
2668 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2669 print space before string or vtbl.
2670 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2672 * jv-valprint.c (java_value_print): Print space before string.
2673 * go-valprint.c (print_go_string): Print space before string.
2674 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2675 space before string.
2676 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2677 space before string or vtbl.
2678 * auxv.c (fprint_target_auxv): Print space after address.
2680 2012-05-18 Tom Tromey <tromey@redhat.com>
2682 * printcmd.c (print_address_demangle): Remove special case for 0.
2684 2012-05-18 Tom Tromey <tromey@redhat.com>
2686 * printcmd.c (print_address_demangle): Add 'opts' argument.
2687 * p-valprint.c (pascal_val_print): Update.
2688 * jv-valprint.c (java_val_print): Update.
2690 * valprint.c (generic_val_print): Update.
2691 (print_function_pointer_address): Add 'options' argument. Remove
2692 'addressprint' argument. Update.
2693 * m2-valprint.c (print_unpacked_pointer): Update.
2694 * gnu-v3-abi.c (print_one_vtable): Update.
2695 (gnuv3_print_method_ptr): Update.
2696 * f-valprint.c (f_val_print): Update.
2697 * cp-valprint.c (cp_print_value_fields): Update.
2698 * valprint.h (print_function_pointer_address): Update.
2699 * c-valprint.c (c_val_print): Update.
2701 2012-05-18 Tom Tromey <tromey@redhat.com>
2703 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2704 directly corresponding to the found psymtab.
2705 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2706 (dw2_find_pc_sect_symtab): Use it.
2707 * block.h (blockvector_contains_pc): Declare.
2708 * block.c (find_block_in_blockvector): New function.
2709 (blockvector_for_pc_sect): Use it.
2710 (blockvector_contains_pc): New function.
2712 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2714 * mips-tdep.h (mips_write_pc): New prototype.
2715 * mips-tdep.c (mips_write_pc): Make external, add description.
2716 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
2719 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2721 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
2723 (mips_unwind_pc, mips_write_pc): Likewise.
2724 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
2727 2012-05-17 Joel Brobecker <brobecker@adacore.com>
2729 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
2730 proc_warn, proc_error, proc_get_status, proc_flags,
2731 proc_why, proc_what, proc_nsysarg, proc_sysargs,
2732 proc_set_run_on_last_close, proc_unset_run_on_last_close,
2733 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
2734 proc_stop_process, proc_wait_for_stop, proc_run_process,
2735 proc_set_traced_signals, proc_set_traced_faults,
2736 proc_set_traced_sysentry, proc_set_traced_sysexit,
2737 proc_set_held_signals, proc_get_held_signals,
2738 proc_get_traced_signals, proc_get_traced_faults,
2739 proc_get_traced_sysentry, proc_get_traced_sysexit,
2740 proc_clear_current_fault, proc_set_current_signal,
2741 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
2742 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
2743 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
2744 proc_get_current_thread, proc_get_current_thread,
2745 proc_get_current_thread, proc_update_threads,
2746 proc_update_threads, proc_update_threads, proc_update_threads,
2747 proc_iterate_over_threads, procfs_find_new_threads,
2748 procfs_pid_to_str): Make static. Remove advance declaration.
2749 (proc_cursig): Make static. Conditionalized defintion on
2750 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
2751 (proc_syscall, proc_set_kill_on_last_close,
2752 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
2753 proc_get_pending_signals, proc_get_signal_actions,
2754 proc_trace_signal, proc_ignore_signal): Delete.
2756 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
2758 * coffread.c (cs_section_address): Passing proper argument for
2759 `bfd_get_section_vma'.
2760 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
2761 `bfd_get_section_flags'.
2762 * remote.c (remote_trace_set_readonly_regions): Likewise, for
2763 `bfd_get_section_vma'.
2765 2012-05-16 Tom Tromey <tromey@redhat.com>
2768 * macrotab.h: (macro_define_special): Declare.
2769 (enum macro_special_kind): New.
2770 (struct macro_definition) <argc, replacement>: Update comments.
2771 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
2772 (macro_define_object_internal): New function.
2773 (macro_define_object): Use it.
2774 (macro_define_special): New function.
2775 (fixup_definition): New function.
2776 (macro_lookup_definition, foreach_macro_in_scope)
2777 (foreach_macro): Use fixup_definition.
2778 * macroexp.h (macro_stringify): Declare.
2779 * macroexp.c (free_buffer_return_text): New function.
2780 (stringify): Constify "arg".
2781 (macro_stringify): New function.
2782 * dwarf2read.c (macro_start_file): Call macro_define_special.
2784 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
2785 Maciej W. Rozycki <macro@mips.com>
2787 * breakpoint.h (bp_location): Add related_address member.
2788 * inferior.h (get_return_value): Take a pointer to struct value
2789 instead of struct type for the function requested.
2790 * value.h (using_struct_return): Likewise.
2791 * gdbarch.sh (return_value): Take a pointer to struct value
2792 instead of struct type for the function requested.
2793 * breakpoint.c (set_breakpoint_location_function): Initialize
2794 related_address for bp_gnu_ifunc_resolver breakpoints.
2795 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
2796 requested function's address to gdbarch_return_value.
2797 * eval.c (evaluate_subexp_standard): Pass the requested
2798 function's address to using_struct_return.
2799 * infcall.c (call_function_by_hand): Pass the requested
2800 function's address to using_struct_return and
2801 gdbarch_return_value.
2802 * infcmd.c (get_return_value): Take a pointer to struct value
2803 instead of struct type for the function requested.
2804 (print_return_value): Update accordingly.
2805 (finish_command_continuation): Likewise.
2806 * stack.c (return_command): Pass the requested function's
2807 address to using_struct_return and gdbarch_return_value.
2808 * value.c (using_struct_return): Take a pointer to struct value
2809 instead of struct type for the function requested. Pass the
2810 requested function's address to gdbarch_return_value.
2811 * python/py-finishbreakpoint.c (finish_breakpoint_object):
2812 New function_value member, replacing function_type.
2813 (bpfinishpy_dealloc): Update accordingly.
2814 (bpfinishpy_pre_stop_hook): Likewise.
2815 (bpfinishpy_init): Likewise. Record the requested function's
2817 * mips-tdep.c (mips_fval_reg): New enum.
2818 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
2819 words put in GP registers.
2820 (mips_o64_push_dummy_call): Update a comment.
2821 (mips_o32_return_value): Take a pointer to struct value instead
2822 of struct type for the function requested and use it to check if
2823 using the MIPS16 calling convention. Return the designated
2824 general purpose registers for floating-point values returned in
2826 (mips_o64_return_value): Likewise.
2827 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
2828 (ppc_sysv_abi_broken_return_value): Likewise.
2829 (ppc64_sysv_abi_return_value): Likewise.
2830 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
2831 value instead of struct type for the function requested.
2832 * amd64-tdep.c (amd64_return_value): Likewise.
2833 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
2834 * arm-tdep.c (arm_return_value): Likewise.
2835 * avr-tdep.c (avr_return_value): Likewise.
2836 * bfin-tdep.c (bfin_return_value): Likewise.
2837 * cris-tdep.c (cris_return_value): Likewise.
2838 * frv-tdep.c (frv_return_value): Likewise.
2839 * h8300-tdep.c (h8300_return_value): Likewise.
2840 (h8300h_return_value): Likewise.
2841 * hppa-tdep.c (hppa32_return_value): Likewise.
2842 (hppa64_return_value): Likewise.
2843 * i386-tdep.c (i386_return_value): Likewise.
2844 * ia64-tdep.c (ia64_return_value): Likewise.
2845 * iq2000-tdep.c (iq2000_return_value): Likewise.
2846 * lm32-tdep.c (lm32_return_value): Likewise.
2847 * m32c-tdep.c (m32c_return_value): Likewise.
2848 * m32r-tdep.c (m32r_return_value): Likewise.
2849 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
2850 * m68k-tdep.c (m68k_return_value): Likewise.
2851 (m68k_svr4_return_value): Likewise.
2852 * m88k-tdep.c (m88k_return_value): Likewise.
2853 * mep-tdep.c (mep_return_value): Likewise.
2854 * microblaze-tdep.c (microblaze_return_value): Likewise.
2855 * mn10300-tdep.c (mn10300_return_value): Likewise.
2856 * moxie-tdep.c (moxie_return_value): Likewise.
2857 * mt-tdep.c (mt_return_value): Likewise.
2858 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
2859 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
2860 (ppc_sysv_abi_broken_return_value): Likewise.
2861 (ppc64_sysv_abi_return_value): Likewise.
2862 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
2863 * rl78-tdep.c (rl78_return_value): Likewise.
2864 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
2865 * rx-tdep.c (rx_return_value): Likewise.
2866 * s390-tdep.c (s390_return_value): Likewise.
2867 * score-tdep.c (score_return_value): Likewise.
2868 * sh-tdep.c (sh_return_value_nofpu): Likewise.
2869 (sh_return_value_fpu): Likewise.
2870 * sh64-tdep.c (sh64_return_value): Likewise.
2871 * sparc-tdep.c (sparc32_return_value): Likewise.
2872 * sparc64-tdep.c (sparc64_return_value): Likewise.
2873 * spu-tdep.c (spu_return_value): Likewise.
2874 * tic6x-tdep.c (tic6x_return_value): Likewise.
2875 * v850-tdep.c (v850_return_value): Likewise.
2876 * vax-tdep.c (vax_return_value): Likewise.
2877 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
2878 * xtensa-tdep.c (xtensa_return_value): Likewise.
2879 * gdbarch.c: Regenerate.
2880 * gdbarch.h: Regenerate.
2882 2012-05-15 Tom Tromey <tromey@redhat.com>
2884 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
2886 2012-05-15 Joel Brobecker <brobecker@adacore.com>
2888 * breakpoint.c (init_breakpoint_sal): Add quotes around part
2889 of command in two error message.
2891 2012-05-15 Joel Brobecker <brobecker@adacore.com>
2893 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
2895 2012-05-15 Joel Brobecker <brobecker@adacore.com>
2897 * breakpoint.c (find_condition_and_thread): Minor reformatting.
2899 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2901 * NEWS (show auto-load scripts-directory): Add forgotten command.
2903 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2905 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
2908 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
2910 * amd64-tdep.c: Include features/i386/x32.c and
2911 features/i386/x32-avx.c.
2912 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
2913 initialize_tdesc_x32_avx.
2915 2012-05-14 Stan Shebs <stan@codesourcery.com>
2918 * breakpoint.h (enum bptype): New type bp_dprintf.
2919 (struct breakpoint): New field extra_string.
2920 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
2921 (create_breakpoint): Add extra_string arg.
2922 * breakpoint.c (dprintf_breakpoint_ops): New.
2923 (is_breakpoint): Add bp_dprintf.
2924 (bpstat_what): Add dprintf case.
2925 (bptype_string): Ditto.
2926 (print_one_breakpoint_location): Ditto.
2927 (init_bp_location): Ditto.
2928 (bkpt_print_mention): Ditto.
2929 (dprintf_style_enums): New array.
2930 (dprintf_style): New global.
2931 (dprintf_function): New global.
2932 (dprintf_channel): New global.
2933 (update_dprintf_command_list): New function.
2934 (update_dprintf_commands): New function.
2935 (init_breakpoint_sal): Add extra_string argument, handle it.
2936 (create_breakpoint_sal): Add extra_string argument.
2937 (create_breakpoints_sal): Add extra_string argument, update callers.
2938 (find_condition_and_thread): Add extra argument.
2939 (create_breakpoint): Add extra_string argument, record it.
2940 (dprintf_command): New function.
2941 (break_command_1): Add arg to create_breakpoint call.
2942 (handle_gnu_v3_exceptions): Ditto.
2943 (trace_command): Ditto.
2944 (ftrace_command): Ditto.
2945 (strace_command): Ditto.
2946 (bkpt_print_mention): Add dprintf case.
2947 (create_breakpoint_sal_default): Add extra_string argument.
2948 (_initialize_breakpoint): Add new commands.
2949 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
2950 * python/py-breakpoint.c (bppy_init): Ditto.
2951 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
2953 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
2955 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
2957 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
2959 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
2962 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
2964 Add a new function gdb.find_pc_line to the Python API.
2965 * NEWS (Python Scripting): Add entry about the new function.
2966 * python/python.c (gdbpy_find_pc_line): New function which
2967 implements gdb.find_pc_line.
2968 (GdbMethods): Add entry for the new function.
2970 2012-05-12 Pedro Alves <palves@redhat.com>
2972 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
2973 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
2975 2012-05-12 Eli Zaretskii <eliz@gnu.org>
2977 * inferior.c: Include completer.h
2978 (initialize_inferiors): Set completer of add-inferior to
2981 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
2983 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2984 gdbarch_ptr_bit for x32 core dump.
2986 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
2988 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
2989 and features/i386/x32-avx-linux.c.
2991 2012-05-11 Stan Shebs <stan@codesourcery.com>
2992 Kwok Cheung Yeung <kcy@codesourcery.com>
2994 * NEWS: Describe new info os commands.
2995 * common/linux-osdata.c (PID_T, TIME_T): Define.
2996 (MAX_PID_T_STRLEN): New.
2997 (linux_common_core_of_thread): Add comment. Change to use PID_T and
2999 (command_from_pid): Add comment. Change to use PID_T.
3000 (commandline_from_pid): Change to use PID_T.
3001 (user_from_pid): Add comment.
3002 (get_process_owner): Add comment. Change to use PID_T and
3004 (get_number_of_cpu_cores): Add comment.
3005 (get_cores_used_by_process): Add comment. Change to use PID_T and
3007 (linux_xfer_osdata_processes): Change to use PID_T and
3009 (compare_processes): New function.
3010 (linux_xfer_osdata_processgroups): New function.
3011 (linux_xfer_osdata_threads): Change to use PID_T.
3012 (linux_xfer_osdata_fds): New function.
3013 (format_socket_state, print_sockets): New functions.
3014 (union socket_addr): New union.
3015 (linux_xfer_osdata_isockets): New function.
3016 (time_from_time_t, group_from_gid): New functions.
3017 (linux_xfer_osdata_shm): New function.
3018 (linux_xfer_osdata_sem): New function.
3019 (linux_xfer_osdata_msg): New function.
3020 (linux_xfer_osdata_modules): New function.
3021 (osdata_table): Add new entries.
3022 * common/buffer.c (buffer_xml_printf): Add support for long and
3023 long long format specifiers.
3025 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3027 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3028 (tdesc_x32_avx_linux): Likewise.
3030 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3032 Implement multi-component --with-auto-load-dir.
3033 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3035 (--with-auto-load-safe-path): Update the default value description.
3036 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3038 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3039 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3040 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3041 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3042 "set auto-load scripts-directory".
3043 * config.in: Regenerate.
3044 * configure: Regenerate.
3045 * configure.ac (--with-auto-load-dir): New configure option.
3046 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3048 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3050 Provide $ddir substitution for --with-auto-load-safe-path.
3051 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3053 * auto-load.c: Include observer.h.
3054 (auto_load_safe_path_vec_update): Call substitute_path_component for
3055 each component. New variable ddir_subst.
3056 (auto_load_gdb_datadir_changed): New function.
3057 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3058 AUTO_LOAD_SAFE_PATH. New comment.
3059 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3060 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3061 * config.in: Regenerate.
3062 * configure: Regenerate.
3063 * configure.ac (--auto-load-safe-path): Rename
3064 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3065 GDB_DATADIR/auto-load.
3066 * defs.h (substitute_path_component): New declaration.
3067 * top.c: Include observer.h.
3068 (set_gdb_datadir): New function.
3069 (init_main): Install it for "set data-directory".
3070 * utils.c (substitute_path_component): New function.
3072 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3074 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3075 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3076 DEBUG_FILE_DIRECTORY. Handle multiple components of
3077 DEBUG_FILE_DIRECTORY.
3079 2012-05-10 Tom Tromey <tromey@redhat.com>
3081 * dwarf2read.c (recursively_write_psymbols): New function.
3082 (write_psymtabs_to_index): Use it.
3084 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3086 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3087 (load_partial_comp_unit): Update.
3088 (queue_comp_unit): Add argument 'pretend_language'.
3089 (process_queue): Update.
3090 (psymtab_to_symtab_1): Skip dependencies that have a user.
3091 (load_partial_comp_unit_reader): Give meaning to the 'data'
3093 (load_full_comp_unit): Add 'pretend_language' argument.
3094 (process_full_comp_unit): Add 'pretend_language' argument. Set
3096 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3098 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3099 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3101 (prepare_one_comp_unit): Add 'pretend_language' argument.
3103 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3104 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3105 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3106 (dw2_do_instantiate_symtab): Check whether symtab was read in
3108 (dw2_instantiate_symtab): Add assertion. Call
3109 process_cu_includes.
3110 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3111 (partial_symtab_p): New typedef.
3112 (set_partial_user): New function.
3113 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3114 (scan_partial_symbols): Add imported CU to imported_symtabs.
3115 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3116 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3117 (get_symtab, recursively_compute_inclusions)
3118 (compute_symtab_includes, process_cu_includes)
3119 (process_imported_unit_die): New functions.
3120 (process_die) <DW_TAG_imported_unit>: New case.
3121 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3123 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3125 (struct partial_die_info) <locdesc>: Remove.
3127 (process_psymtab_comp_unit): Add 'read_partial' argument.
3129 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3130 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3131 (add_partial_symbol): Update.
3132 (process_die): Handle DW_TAG_partial_unit.
3133 (read_file_scope): Update comment.
3134 (load_partial_dies): Handle DW_TAG_imported_unit.
3135 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3136 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3138 2012-05-10 Tom Tromey <tromey@redhat.com>
3140 * cc-with-dwz.sh: New file.
3142 2012-05-10 Tom Tromey <tromey@redhat.com>
3144 * symtab.h (struct symtab) <includes, user>: New fields.
3145 * block.h (struct block_iterator) <d, idx, which>: New fields.
3146 * block.c (initialize_block_iterator, find_iterator_symtab)
3147 (block_iterator_step, block_iter_name_step)
3148 (block_iter_match_step): New functions.
3149 (block_iterator_first, block_iterator_next)
3150 (block_iter_name_first, block_iter_name_next)
3151 (block_iter_match_first, block_iter_match_next): Rewrite.
3152 (get_block_symtab): New function.
3154 2012-05-10 Tom Tromey <tromey@redhat.com>
3156 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3158 * jit.c (finalize_symtab): Use allocate_global_block,
3160 * buildsym.c (finish_block_internal): New function, from old
3162 (finish_block): Rewrite.
3163 (end_symtab): Use finish_block_internal, set_block_symtab.
3164 * block.h (struct global_block): New.
3165 (allocate_global_block, set_block_symtab): Declare.
3166 * block.c (allocate_global_block, set_block_symtab): New
3169 2012-05-10 Tom Tromey <tromey@redhat.com>
3171 * psymtab.c (partial_map_expand_apply): Add assertion.
3172 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3173 (psymtab_to_symtab): Find unshared psymtab.
3174 (dump_psymtab): Print including psymtabs.
3175 (recursively_search_psymtabs): New function.
3176 (expand_symtabs_matching_via_partial): Use it.
3177 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3179 (enum psymtab_search_status): New.
3181 2012-05-10 Tom Tromey <tromey@redhat.com>
3183 * tracepoint.c (scope_info): Update.
3184 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3185 (find_pc_sect_symtab, search_symbols)
3186 (default_make_symbol_completion_list_break_on)
3187 (make_file_symbol_completion_list): Update.
3188 * symmisc.c (dump_symtab_1): Update.
3189 * stack.c (print_frame_args, iterate_over_block_locals)
3190 (print_frame_labels, iterate_over_block_arg_vars): Update.
3191 * python/py-block.c (block_object) <dict>: Remove.
3193 <iter>: Change type.
3194 (blpy_iter): Update.
3195 (blpy_block_syms_iternext): Update.
3196 * psymtab.c (map_block): Use block iterators.
3197 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3198 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3199 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3200 * infrun.c (check_exception_resume): Update.
3201 * cp-support.c (make_symbol_overload_list_block): Update.
3202 * coffread.c (patch_opaque_types): Update.
3203 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3204 * block.h (struct block_iterator): New.
3205 (block_iterator_first, block_iterator_next, block_iter_name_first)
3206 (block_iter_name_next, block_iter_match_first)
3207 (block_iter_match_next): Declare.
3208 (ALL_BLOCK_SYMBOLS): Redefine.
3209 * block.c (block_iterator_first, block_iterator_next)
3210 (block_iter_name_first, block_iter_name_next)
3211 (block_iter_match_first, block_iter_match_next): New functions.
3212 * ada-lang.c (ada_add_block_symbols)
3213 (ada_make_symbol_completion_list): Use block iterator.
3215 2012-05-10 Tom Tromey <tromey@redhat.com>
3217 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3218 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3219 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3220 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3221 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3224 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3226 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3227 print-file-var-lib2.c, print-file-var-main.c and
3228 print-file-var.exp (located in gdb/testsuite/gdb.base).
3230 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3232 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3233 try locating the symbol in the symbol's own objfile first, before
3234 extending the search to all objfiles.
3235 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3236 out of lookup_symbol_aux_symtabs.
3237 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3238 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3239 Do not search EXCLUDE_OBJFILE.
3240 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3241 (lookup_symbol_global): Search for matches in the block's objfile
3242 first, before searching all other objfiles.
3244 2012-05-10 Tristan Gingold <gingold@adacore.com>
3246 * printcmd.c (set_command): Add pre/post inc/dec.
3248 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3250 * gdb.1: Document -ex option.
3252 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3254 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3255 * inferior.h (AT_SYMBOL): Delete.
3257 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3259 * mips-tdep.c (mips_push_dummy_code): New function.
3260 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3261 ON_STACK and install mips_push_dummy_code as our gdbarch
3262 push_dummy_code routine.
3264 2012-05-09 Pedro Alves <palves@redhat.com>
3266 * target.c (set_maintenance_target_async_permitted): Rename to ...
3267 (set_target_async_command): ... this.
3268 (show_maintenance_target_async_permitted): Rename to ...
3269 (show_target_async_command): ... this.
3270 (initialize_targets): Adjust.
3272 2012-05-08 Doug Evans <dje@google.com>
3274 * go-exp.y (classify_name): Add missing assignment of fields of
3277 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3279 Display the ">" prompt in interactive mode while reading canned
3280 commands, even when the current interpreter is MI.
3282 * interps.c (interp_set_temp): New function.
3284 * interps.h (interp_set_temp): Add prototype.
3286 * cli/cli-script.c (restore_interp): New cleanup function.
3287 (read_command_lines): Temporarily override the current interpreter
3288 with CLI and arrange for restoring the original one.
3290 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3292 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3294 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3296 * probe.c (parse_probes): Move conditional to check for
3297 debuginfo files from here...
3298 * stap-probe.c (stap_get_probes): ... to here.
3300 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3301 H.J. Lu <hongjiu.lu@intel.com>
3303 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3304 `movl %esp, %ebp' for the X32 ABI.
3306 2012-05-07 Tom Tromey <tromey@redhat.com>
3308 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3310 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3311 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3312 (dwarf_stack_op_name): Remove.
3313 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3314 (decode_locdesc): Use get_DW_OP_name.
3315 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3316 (dwarf2_compile_expr_to_ax): Likewise.
3317 (disassemble_dwarf_expression): Likewise.
3318 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3320 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3322 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3323 (sh_linux_sigtramp_cache): New function.
3324 (sh_linux_sigreturn_init): New function.
3325 (sh_linux_rt_sigreturn_init): New function.
3326 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3328 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3330 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3331 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3332 (sh_linux_init_abi): Add init calls to register new tramp_frame
3333 definitions under 32-bit SH, update comments.
3335 2012-05-07 Pedro Alves <palves@redhat.com>
3339 * amd64-linux-tdep.c: Include glibc-tdep.h.
3340 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3341 gdbarch_skip_solib_resolver callback.
3343 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3345 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3346 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3347 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3348 (add_auto_load_safe_path): Change the error message.
3349 (_initialize_auto_load): Change the "safe-path" help text.
3350 * configure: Regenerate
3351 * configure.ac (--without-auto-load-safe-path): Set
3352 WITH_AUTO_LOAD_SAFE_PATH to /.
3354 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3356 * stap-probe.h: Do not include unecessary `probe.h'.
3358 2012-05-05 Alan Modra <amodra@gmail.com>
3360 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3361 bfd_und_section_ptr.
3362 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3363 and bfd_com_section_ptr.
3365 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3367 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3369 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3371 * windows-nat.h (segment_register_p_ftype): New typedef.
3372 (windows_set_segment_register_p): Add declaration.
3373 * windows-nat.c (segment_register_p): New static global.
3374 (windows_set_segment_register_p): New function.
3375 (do_windows_fetch_inferior_registers): Add special handling
3376 for segment registers.
3377 * amd64-windows-nat.c: #include "amd64-tdep.h".
3378 (amd64_windows_segment_register_p): New function.
3379 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3380 * i386-windows-nat.c: #include "i386-tdep.h".
3381 (i386_windows_segment_register_p): New function.
3382 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3384 2012-05-04 Tristan Gingold <gingold@adacore.com>
3386 * printcmd.c (set_command): Emit a warning if the expression is not
3389 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3391 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3394 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3396 * stap-probe.c (stap_is_operator): Change declaration.
3397 (stap_get_opcode): Change return value.
3398 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3399 `stap_parse_argument_1'.
3401 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3403 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3406 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3408 Add two new methods global_block and static_block to gdb.Symtab
3410 * NEWS (Python scripting): Add entry about the new methods.
3411 * python/py-symtab.c (stpy_global_block): New function which
3412 implements the gdb.Symtab.global_block() method.
3413 (stpy_static_block): New function which implements the
3414 gdb.Symtab.static_block() method.
3415 (symtab_object_methods): Add entries for the two new methods.
3417 2012-05-03 Doug Evans <dje@google.com>
3419 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3422 2012-05-03 Yao Qi <yao@codesourcery.com>
3424 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3426 (i386_process_record): Ditto.
3428 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3430 * infcall.c (unwind_on_signal_p): Make static.
3432 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3434 * sol-thread.c (solaris_pid_to_str): Make static.
3435 (_initialize_sol_thread): Add prototype.
3437 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3439 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3441 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3443 * MAINTAINERS: Remove myself.
3445 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3447 Fix --without-auto-load-safe-path for MS-Windows host platform.
3448 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3450 2012-05-02 Eli Zaretskii <eliz@gnu.org>
3452 * gdb_curses.h: Undefine KEY_EVENT before including curses
3453 headers. Move "#undef MOUSE_MOVED" before any curses header
3456 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3458 * features/i386/i386-mmx-linux.c: Regenerate.
3459 * features/rs6000/powerpc-32.c: Likewise.
3460 * features/rs6000/powerpc-32l.c: Likewise.
3461 * features/rs6000/powerpc-403.c: Likewise.
3462 * features/rs6000/powerpc-403gc.c: Likewise.
3463 * features/rs6000/powerpc-405.c: Likewise.
3464 * features/rs6000/powerpc-505.c: Likewise.
3465 * features/rs6000/powerpc-601.c: Likewise.
3466 * features/rs6000/powerpc-602.c: Likewise.
3467 * features/rs6000/powerpc-603.c: Likewise.
3468 * features/rs6000/powerpc-604.c: Likewise.
3469 * features/rs6000/powerpc-64.c: Likewise.
3470 * features/rs6000/powerpc-64l.c: Likewise.
3471 * features/rs6000/powerpc-750.c: Likewise.
3472 * features/rs6000/powerpc-860.c: Likewise.
3473 * features/rs6000/powerpc-e500.c: Likewise.
3474 * features/rs6000/powerpc-e500l.c: Likewise.
3475 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3476 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3477 * features/rs6000/rs6000.c: Likewise.
3479 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3481 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3483 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3484 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3485 (stap_parse_argument) <e>: Likewise.
3486 (handle_stap_probe) <byte_order>: Likewise.
3488 2012-04-30 Doug Evans <dje@google.com>
3490 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3491 init_and_read_dies_worker. All callers updated.
3492 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3493 replaced with init_cutu_and_read_dies.
3494 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3495 (find_partial_die): Remove FIXME. Don't free current CU.
3497 2012-04-30 Sterling Augustine <saugustine@google.com>
3499 * contrib: New directory.
3500 * contrib/test_pubnames_and_indexes.py: New file.
3502 2012-04-30 Doug Evans <dje@google.com>
3504 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3505 All callers updated.
3506 (init_cu_die_reader): Verify the section is non-empty.
3507 (dwarf_decode_line_header): Don't dereference section->asection
3508 until we know the section is present.
3510 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3512 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3515 2012-04-29 Yao Qi <yao@codesourcery.com>
3517 * gdb-code-style.el: New hook gdb-markup-hook
3518 and gdb-comment-hook.
3520 2012-04-28 Doug Evans <dje@google.com>
3522 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3523 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3525 * symfile.h (dwarf2_debug_sections): New member addr.
3526 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3527 (ctx_no_get_addr_index): New function.
3528 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3529 (ctx_no_get_addr_index): Declare.
3530 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3531 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3532 (dwarf_expr_ctx_funcs): Update.
3533 (needs_get_addr_index): New function.
3534 (needs_frame_ctx_funcs): Update.
3535 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3536 * dwarf2read.c: #include "gdbcore.h".
3537 (dwarf2_per_objfile): New members addr, dwo_files.
3538 (dwarf2_elf_names): Add entry for addr.
3539 (struct dwo_section_names): New type.
3540 (dwo_section_names): New static global.
3541 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3542 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3543 old debug_types_section member updated to use this.
3544 Rename member debug_types_section to info_or_types_section,
3546 (signatured_type): Rename member type_offset to type_offset_in_tu,
3547 all uses updated. New member type_offset_in_section.
3548 (struct dwo_sections): New type.
3549 (struct dwo_unit): New type.
3550 (struct dwo_file): New type.
3551 (die_reader_specs): New member dwo_file.
3552 (dwarf2_locate_sections): Watch for .debug_addr.
3553 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3554 (dwarf2_read_section): Get bfd of section from bfd's asection,
3556 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3557 (create_signatured_type_table_from_index): Initialize
3558 sig_type->info_or_types_section.
3559 (dw2_get_file_names): Statement lists for type units with DWO files
3560 live in the DWO file.
3561 (create_debug_types_hash_table): New function.
3562 (create_all_type_units): Rewrite.
3563 (init_cu_die_reader): New arg dwo_file, all callers updated.
3564 (init_and_read_dies_worker): Get section from
3565 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3566 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3567 continue reading the CU/TU from there.
3568 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3569 updated. Get section from this_cu->info_or_types_section.
3570 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3571 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3572 DW_FORM_GNU_str_index.
3573 (hash_dwo_file, eq_dwo_file): New functions.
3574 (allocate_dwo_file_hash_table): New function.
3575 (hash_dwo_unit, eq_dwo_unit): New functions.
3576 (allocate_dwo_unit_table): New function.
3577 (dwarf2_locate_dwo_sections): New function.
3578 (struct create_dwo_info_table_data): New type.
3579 (create_debug_info_hash_table_reader): New function.
3580 (create_debug_info_hash_table): New function.
3581 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3582 (lookup_dwo_file): New function.
3583 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3584 (free_dwo_file, free_dwo_file_cleanup): New functions.
3585 (free_dwo_file_from_slot, free_dwo_files): New functions.
3586 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3587 (dwarf2_record_block_ranges): Ditto.
3588 (read_partial_die): Ditto.
3589 (process_enumeration_scope): Update to use type_offset_in_section.
3590 (read_full_die_1): New function.
3591 (read_full_die): Rewrite.
3592 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3593 DW_FORM_GNU_str_index.
3594 (read_addr_index_1, read_addr_index): New functions.
3595 (read_addr_index_from_leb128): New function.
3596 (struct dwarf2_read_addr_index_data): New type.
3597 (dwarf2_read_addr_index_reader): New function.
3598 (dwarf2_read_addr_index): New function.
3599 (read_str_index): New function.
3600 (leb128_size): New function.
3601 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3602 If processing a type unit from a DWO file, get the line section
3604 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3605 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3606 DW_FORM_GNU_str_index.
3607 (lookup_die_type): Check whether section offset of type's die is
3608 known before looking it up. Remove assert. Condition can
3609 legimately happen for inter-cu type references.
3610 (dwarf_attr_name): Handle Fission attributes.
3611 (dwarf_form_name): Handle Fission forms.
3612 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3613 DW_FORM_GNU_str_index.
3614 (follow_die_sig): Update to use type_offset_in_section.
3615 (decode_locdesc): New case DW_OP_GNU_addr_index.
3616 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3617 DW_FORM_GNU_str_index.
3618 (cu_debug_loc_section): New function.
3619 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3620 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3621 Free DWO files if present.
3622 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3624 Refactor DIE reading.
3625 * dwarf2read.c (dwarf2_per_objfile): Replace members
3626 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3627 (die_reader_specs): New member "die_section". Temporarily make
3628 member "buffer" non-const, pending constifying all info_ptr uses.
3629 (die_reader_func_ftype): New typedef.
3630 (dw2_get_file_names_reader): New function.
3631 (dw2_get_file_names): Rewrite.
3632 (read_and_check_type_unit_head): Rename arg type_offset to
3634 (create_all_type_units): Improve debugging message.
3635 Improve dummy type unit check.
3636 (init_cu_die_reader): New arg "section". All callers updated.
3637 (init_and_read_dies_worker): New function.
3638 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3639 (init_cutu_and_read_dies_no_follow): New function.
3640 (init_cutu_and_read_dies_simple): New function.
3641 (process_psymtab_comp_unit_reader): New function.
3642 (process_psymtab_comp_unit): Delete args section,
3643 is_debug_types_section. Rewrite. All callers updated.
3644 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3645 All callers updated. Rewrite.
3646 (load_partial_comp_unit_reader): New function.
3647 (load_partial_comp_unit): Rewrite.
3648 (skip_children): New arg reader. Delete args buffer, cu.
3649 All callers updated.
3650 (skip_one_die): New arg reader. Delete args buffer, cu.
3651 All callers updated.
3652 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3653 All callers updated.
3654 (load_full_comp_unit_reader): New function.
3655 (load_full_comp_unit): Rewrite.
3656 (read_comp_unit): Delete.
3657 (read_die_and_children_1): Delete, contents moved ...
3658 (read_die_and_children): ... here.
3659 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3660 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3661 All callers updated.
3662 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3663 All callers updated.
3664 (find_partial_die): Rewrite load_all_dies support.
3665 (read_attribute_value): New arg reader. Delete args abfd, cu.
3666 All callers updated.
3667 (read_attribute): New arg reader. Delete args abfd, cu.
3668 All callers updated.
3669 (load_full_type_unit): Add assert.
3670 (read_signatured_type_reader): New function.
3671 (read_signatured_type): Rewrite.
3672 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3673 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3674 All callers updated. Set per_cu->cu = NULL after freeing it.
3675 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3676 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3677 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3678 (set_die_type): Update.
3679 (get_die_type_at_offset): Update.
3680 (read_file_scope): Call prepare_one_comp_unit.
3681 (read_type_unit_scope): Ditto.
3682 (prepare_one_comp_unit): Set producer if present.
3684 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
3686 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3687 gettext function on `error'.
3689 2012-04-27 Doug Evans <dje@google.com>
3691 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3694 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3695 Tom Tromey <tromey@redhat.com>
3697 * breakpoint.c (struct breakpoint_objfile_data)
3698 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3699 <exception_probes>: New fields.
3700 (free_breakpoint_probes): New function.
3701 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3702 `_Unwind_DebugHook'.
3703 (create_exception_master_breakpoint): Likewise.
3704 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3705 * infrun.c: Including necessary header files for handling SystemTap
3707 (handle_inferior_event): Handling longjmp breakpoint and exceptions
3708 via SystemTap probes.
3709 (check_exception_resume): Remove `func' argument. Handle exception
3710 unwinding breakpoint set via a SystemTap probe.
3711 (insert_exception_resume_from_probe): New function.
3713 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3714 Tom Tromey <tromey@redhat.com>
3715 Jan Kratochvil <jan.kratochvil@redhat.com>
3717 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
3718 (COMMON_OBS): Likewise.
3719 (HFILES_NO_SRCDIR): Add `probe'.
3720 * NEWS: Mention support for static and SystemTap probes.
3721 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
3722 SystemTap probes' arguments parser.
3723 * arm-linux-tdep.c: Including headers needed to perform the parsing
3724 of SystemTap probes' arguments.
3725 (arm_stap_is_single_operand): New function.
3726 (arm_stap_parse_special_token): Likewise.
3727 (arm_linux_init_abi): Initializing proper fields used by SystemTap
3728 probes' arguments parser.
3729 * ax-gdb.c (require_rvalue): Removing static declaration.
3730 (gen_expr): Likewise.
3731 * ax-gdb.h (gen_expr): Declaring function.
3732 (require_rvalue): Likewise.
3733 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
3734 (bkpt_probe_breakpoint_ops): New variable.
3735 (momentary_breakpoint_from_master): Set the `probe' value.
3736 (add_location_to_breakpoint): Likewise.
3737 (break_command_1): Using proper breakpoint_ops according to the
3738 argument passed by the user in the command line.
3739 (bkpt_probe_insert_location): New function.
3740 (bkpt_probe_remove_location): Likewise.
3741 (bkpt_probe_create_sals_from_address): Likewise.
3742 (bkpt_probe_decode_linespec): Likewise.
3743 (tracepoint_probe_create_sals_from_address): Likewise.
3744 (tracepoint_probe_decode_linespec): Likewise.
3745 (tracepoint_probe_breakpoint_ops): New variable.
3746 (trace_command): Using proper breakpoint_ops according to the
3747 argument passed by the user in the command line.
3748 (initialize_breakpoint_ops): Initializing breakpoint_ops for
3749 static probes on breakpoints and tracepoints.
3750 * breakpoint.h (struct bp_location) <probe>: New field.
3751 * cli-utils.c (skip_spaces_const): New function.
3752 (extract_arg): Likewise.
3753 * cli-utils.h (skip_spaces_const): Likewise.
3754 (extract_arg): Likewise.
3755 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
3756 * configure.ac: Append `stap-probe.o' to be generated when ELF
3758 * configure: Regenerate.
3759 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
3760 * elfread.c: Include `probe.h' and `arch-utils.h'.
3761 (probe_key): New variable.
3762 (elf_get_probes): New function.
3763 (elf_get_probe_argument_count): Likewise.
3764 (elf_evaluate_probe_argument): Likewise.
3765 (elf_compile_to_ax): Likewise.
3766 (elf_symfile_relocate_probe): Likewise.
3767 (stap_probe_key_free): Likewise.
3768 (elf_probe_fns): New variable.
3769 (elf_sym_fns): Add `sym_probe_fns' value.
3770 (elf_sym_fns_lazy_psyms): Likewise.
3771 (elf_sym_fns_gdb_index): Likewise.
3772 (_initialize_elfread): Initialize objfile cache for static
3774 * gdb_vecs.h (struct probe): New forward declaration.
3775 (probe_p): New VEC declaration.
3776 * gdbarch.c: Regenerate.
3777 * gdbarch.h: Regenerate.
3778 * gdbarch.sh (stap_integer_prefix): New variable.
3779 (stap_integer_suffix): Likewise.
3780 (stap_register_prefix): Likewise.
3781 (stap_register_suffix): Likewise.
3782 (stap_register_indirection_prefix): Likewise.
3783 (stap_register_indirection_suffix): Likewise.
3784 (stap_gdb_register_prefix): Likewise.
3785 (stap_gdb_register_suffix): Likewise.
3786 (stap_is_single_operand): New function.
3787 (stap_parse_special_token): Likewise.
3788 (struct stap_parse_info): Forward declaration.
3789 * i386-tdep.c: Including headers needed to perform the parsing
3790 of SystemTap probes' arguments.
3791 (i386_stap_is_single_operand): New function.
3792 (i386_stap_parse_special_token): Likewise.
3793 (i386_elf_init_abi): Initializing proper fields used by SystemTap
3794 probes' arguments parser.
3795 * i386-tdep.h (i386_stap_is_single_operand): New function.
3796 (i386_stap_parse_special_token): Likewise.
3797 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
3798 * mipsread.c (ecoff_sym_fns): Likewise.
3799 * objfiles.c (objfile_relocate1): Support relocation for static
3801 * parse.c (prefixify_expression): Remove static declaration.
3802 (initialize_expout): Likewise.
3803 (reallocate_expout): Likewise.
3804 * parser-defs.h (initialize_expout): Declare function.
3805 (reallocate_expout): Likewise.
3806 (prefixify_expression): Likewise.
3807 * ppc-linux-tdep.c: Including headers needed to perform the parsing
3808 of SystemTap probes' arguments.
3809 (ppc_stap_is_single_operand): New function.
3810 (ppc_stap_parse_special_token): Likewise.
3811 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
3812 probes' arguments parser.
3813 * probe.c: New file, for generic statically defined probe support.
3814 * probe.h: Likewise.
3815 * s390-tdep.c: Including headers needed to perform the parsing of
3816 SystemTap probes' arguments.
3817 (s390_stap_is_single_operand): New function.
3818 (s390_gdbarch_init): Initializing proper fields used by SystemTap
3819 probes' arguments parser.
3820 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
3821 * stap-probe.c: New file, for SystemTap probe support.
3822 * stap-probe.h: Likewise.
3823 * symfile.h: Include `gdb_vecs.h'.
3824 (struct sym_probe_fns): New struct.
3825 (struct sym_fns) <sym_probe_fns>: New field.
3826 * symtab.c (init_sal): Initialize `probe' field.
3827 * symtab.h (struct probe): Forward declaration.
3828 (struct symtab_and_line) <probe>: New field.
3829 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
3831 (stop_tracing): Likewise.
3832 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
3834 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3835 Tom Tromey <tromey@redhat.com>
3837 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
3838 and to compile agent expressions.
3839 * infrun.c (siginfo_make_value): New argument `ignore'.
3840 (siginfo_funcs): New struct.
3841 (_initialize_infrun): New argument when calling
3842 `create_internalvar_type_lazy'.
3843 * thread.c (thread_id_make_value): New argument `ignore'.
3844 (thread_funcs): New struct.
3845 (_initialize_thread): New argument when calling
3846 `create_internalvar_type_lazy'.
3847 * tracepoint.c (sdata_make_value): New argument `ignore'.
3848 (sdata_funcs): New struct.
3849 (_initialize_tracepoint): New argument when calling
3850 `create_internalvar_type_lazy'.
3851 * value.c (make_value): New struct.
3852 (create_internalvar_type_lazy): New argument `data'.
3853 (compile_internalvar_to_ax): New function.
3854 (value_of_internalvar): Properly handling `make_value' case.
3855 (clear_internalvar): Likewise.
3856 (show_convenience): Adding `TRY_CATCH' block.
3857 * value.h (internalvar_make_value): Delete, replace by...
3858 (struct internalvar_funcs): ... this.
3859 (create_internalvar_type_lazy) <fun>: Delete argument.
3860 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
3861 (compile_internalvar_to_ax): New function.
3862 * windows-tdep.c (tlb_make_value): New argument `ignore'.
3863 (tlb_funcs): New struct.
3864 (_initialize_windows_tdep): New argument when calling
3865 `create_internalvar_type_lazy'.
3867 2012-04-27 Mark Wielaard <mjw@redhat.com>
3869 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
3870 see whether it is an address or a constant offset from DW_AT_low_pc.
3871 (dwarf2_record_block_ranges): Likewise.
3872 (read_partial_die): Likewise.
3874 2012-04-26 Mark Wielaard <mjw@redhat.com>
3876 * MAINTAINERS (Write After Approval): Add myself to the list.
3878 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
3880 * proc-utils.h (proc_prettyprint_signalset): New prototype.
3881 (proc_prettyprint_signal): Likewise.
3882 (proc_prettyprint_faultset): Likewise.
3883 (proc_prettyprint_fault): Likewise.
3884 (proc_prettyprint_actionset): Likewise.
3885 (proc_prettyprint_flags): Move to new proc-flags.c section.
3886 (proc_prettyfprint_flags): New prototype.
3887 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
3888 (proc_syscall, proc_cursig): Likewise.
3889 (proc_set_kill_on_last_close): Likewise.
3890 (proc_unset_kill_on_last_close): Likewise.
3891 (proc_set_watchpoint): Make static.
3892 (proc_delete_dead_threads): Likewise.
3893 (procfs_set_watchpoint): Likewise.
3894 (_initialize_procfs): Add prototype.
3895 * proc-events.c: Include proc-utils.h.
3896 (init_syscall_table): Make static.
3897 * proc-api.c (_initialize_proc_api): Add prototype.
3898 * proc-flags.c: Include proc-utils.h.
3900 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
3902 * configure.ac: Add AC_ARG_PROGRAM.
3903 * configure: Regenerate.
3905 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3907 Fix DW_AT_lower_bound defaults for DWARF-4+.
3908 * dwarf2read.c (read_subrange_type): Remove initialization of low and
3909 high. New variable low_default_is_valid. Implement DWARF-4+
3910 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
3911 no default by the DWARF standard.
3913 2012-04-26 Maciej W. Rozycki <macro@mips.com>
3914 Maciej W. Rozycki <macro@codesourcery.com>
3916 * infrun.c (handle_inferior_event): Move the check for return
3917 trampolines ahead of the check for function trampolines.
3918 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
3919 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
3920 (mips_str_mips16_ret_stub): Likewise.
3921 (mips_str_call_fp_stub): Likewise.
3922 (mips_str_call_stub): Likewise.
3923 (mips_str_fn_stub): Likewise.
3924 (mips_str_pic): Likewise.
3925 (mips_in_frame_stub): New function.
3926 (mips_unwind_pc): Return the return address rather than the PC
3927 if the PC of an intermediate frame is inside a call thunk.
3928 (mips_is_stub_suffix): New function.
3929 (mips_is_stub_mode): Likewise.
3930 (mips_get_mips16_fn_stub_pc): Likewise.
3931 (mips_skip_mips16_trampoline_code): Update to handle all the
3932 currently generated stub types. Don't recurse into __fn_stub
3933 thunks. Remove heuristics to handle stubs beyond etext/_etext.
3934 Use cooked register accesses.
3935 (mips_in_return_stub): Reintroduce function.
3936 (mips_skip_trampoline_code): Traverse trampolines recursively.
3937 (mips_gdbarch_init): Handle MIPS16 return trampolines.
3939 2012-04-26 Joel Brobecker <brobecker@adacore.com>
3943 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
3945 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
3946 * features/arm-with-m-vfp-d16.xml: New file. Describes
3947 Cortex-M with VFPv4-sp-d16 FPU register layout.
3948 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
3949 * features/arm-with-m-vfp-d16.c: New. Generated from above.
3950 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
3951 (arm-register_g_packet_guesses): Add vfp-d16 guess.
3952 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
3954 2012-04-25 Doug Evans <dje@google.com>
3956 * cli/cli-decode.c (print_doc_line): Use stream instead of
3959 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
3961 * features/arm-with-iwmmxt.c: Regenerate.
3962 * features/arm-with-m-fpa-layout.c: Likewise.
3963 * features/arm-with-m.c: Likewise.
3964 * features/arm-with-neon.c: Likewise.
3965 * features/arm-with-vfpv2.c: Likewise.
3966 * features/arm-with-vfpv3.c: Likewise.
3967 * features/mips-dsp-linux.c: Likewise.
3968 * features/mips-linux.c: Likewise.
3969 * features/mips64-dsp-linux.c: Likewise.
3970 * features/mips64-linux.c: Likewise.
3971 * features/s390-linux32.c: Likewise.
3972 * features/s390-linux32v1.c: Likewise.
3973 * features/s390-linux32v2.c: Likewise.
3974 * features/s390-linux64.c: Likewise.
3975 * features/s390-linux64v1.c: Likewise.
3976 * features/s390-linux64v2.c: Likewise.
3977 * features/s390x-linux64.c: Likewise.
3978 * features/s390x-linux64v1.c: Likewise.
3979 * features/s390x-linux64v2.c: Likewise.
3980 * features/tic6x-c62x-linux.c: Likewise.
3981 * features/tic6x-c62x.c: Likewise.
3982 * features/tic6x-c64x-linux.c: Likewise.
3983 * features/tic6x-c64x.c: Likewise.
3984 * features/tic6x-c64xp-linux.c: Likewise.
3985 * features/tic6x-c64xp.c: Likewise.
3986 * target-descriptions.c: Only generate `field_type' and `type'
3987 variables when needed.
3989 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
3991 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
3993 2012-04-25 Doug Evans <dje@google.com>
3995 Initial pass at Go language support.
3997 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
3999 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4000 (YYFILES): Add go-exp.c.
4001 (YYOBJ): Add go-exp.o.
4002 (local-maintainer-clean): Delete go-exp.c.
4003 * defs.h (enum language): Add language_go.
4004 * dwarf2read.c: #include "go-lang.h".
4005 (fixup_go_packaging): New function.
4006 (process_full_comp_unit): Call it when processing Go CUs.
4007 (dwarf2_physname): Add Go support.
4008 (read_file_scope): Handle missing language spec for GNU Go.
4009 (set_cu_language): Handle DW_LANG_Go.
4010 * go-exp.y: New file.
4011 * go-lang.h: New file.
4012 * go-lang.c: New file.
4013 * go-typeprint.c: New file.
4014 * go-valprint.c: New file.
4015 * symtab.c: #include "go-lang.h".
4016 (symbol_set_language): Handle language_go.
4017 (symbol_find_demangled_name, symbol_set_names): Ditto.
4018 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4020 2012-04-24 Jim Meyering <meyering@redhat.com>
4022 avoid a few strncpy-induced buffer overruns
4023 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4024 fname and psargs before trying to concatenate.
4025 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4026 "name" before applying strchr.
4028 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4030 * CONTRIBUTE: Use unified diff instead of context diff when
4033 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4035 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4036 code. Handle JR.HB correctly.
4038 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4041 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4042 with the other MIPS16 helpers.
4044 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4046 * observer.sh: Conditionally declare `args', thus cleaning up
4047 unused instances of this variable.
4049 2012-04-24 Yao Qi <yao@codesourcery.com>
4051 Revert this patch to allow breakpoint always-inserted
4053 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4054 * breakpoint.c: Include record.h.
4055 (breakpoints_always_inserted_mode): Return false when the record
4058 * breakpoint.c (iterate_over_bp_locations): New.
4059 * breakpoint.h: Declare.
4060 New typedef walk_bp_location_callback.
4061 * record.c (record_open): Call record_init_record_breakpoints.
4062 (record_sync_record_breakpoints): New.
4063 (record_init_record_breakpoints): New.
4064 * NEWS: Mention supporting breakpoint always-inserted mode in
4067 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4069 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4072 2012-04-24 Yao Qi <yao@codesourcery.com>
4074 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4075 (is_catchpoint): ... it.
4076 (print_one_breakpoint_location): Caller update.
4077 * breakpoint.h: Update declaration.
4079 2012-04-23 David S. Miller <davem@davemloft.net>
4081 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4083 2012-04-23 Tom Tromey <tromey@redhat.com>
4085 * buildsym.c (add_free_pendings): Remove.
4086 * buildsym.h (add_free_pendings): Remove.
4088 2012-04-23 Doug Evans <dje@google.com>
4090 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4091 attr.u.unsnd instead of attr.u.addr.
4092 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4093 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4095 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4096 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4098 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4100 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4102 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4103 (mips_o32_return_value): Likewise.
4104 (mips_o64_return_value): Likewise.
4106 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4108 * ada-lang.c (ada_evaluate_subexp): Add cases for
4109 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4110 their treatment in eval.c.
4112 2012-04-21 David S. Miller <davem@davemloft.net>
4114 * sparc-tdep.c (X_DISP10): Define.
4115 (sparc_analyze_control_transfer): Handle compare-and-branch.
4117 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4119 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4120 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4122 2012-04-20 Nigel Stephens <nigel@mips.com>
4123 Maciej W. Rozycki <macro@codesourcery.com>
4125 * mips-tdep.c (mips_float_register_p): New function.
4126 (mips_convert_register_float_case_p): Use mips_float_register_p.
4127 (mips_register_type): Likewise.
4128 (mips_print_register): Likewise.
4129 (print_gp_register_row): Likewise.
4130 (mips_print_registers_info): Likewise.
4132 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4134 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4137 2012-04-20 Andrew Pinski <apinski@cavium.com>
4139 * MAINTAINERS (Write After Approval): Add myself to the list.
4141 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4143 * MAINTAINERS: Update my e-mail address.
4145 2012-04-20 Pedro Alves <palves@redhat.com>
4147 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4149 * configure: Regenerate.
4151 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4153 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4155 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4157 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4159 Fix compilation compatibility with python-2.4
4160 * python/py-type.c (convert_field): Cast ADDRSTRING for
4161 PyObject_SetAttrString as non-const. New comment.
4163 2012-04-19 Tom Tromey <tromey@redhat.com>
4165 * top.c (quit_target): Use all_cleanups.
4166 * main.c (captured_command_loop): Use all_cleanups.
4167 * exceptions.c (throw_exception): Use all_cleanups.
4169 2012-04-19 Pedro Alves <palves@redhat.com>
4171 * Makefile.in (GNULIB_BUILDDIR): New.
4172 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4173 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4174 (CLEANDIRS). Remove gnulib/import.
4175 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4177 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4178 (gnulib/import/Makefile): Replace gnulib/import with
4179 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4180 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4181 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4182 acx_configure_dir.m4.
4183 * acinclude.m4: Include acx_configure_dir.m4.
4184 * acx_configure_dir.m4: New file.
4185 * aclocal.m4: Regenerate.
4186 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4187 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4188 (GNULIB): New variable.
4189 (GNULIB_STDINT_H): Adjust.
4190 (AC_OUTPUT): Don't output gnulib/Makefile.
4191 * gdb/defs.h: Include build-gnulib/config.h.
4192 * aclocal.m4: Regenerate.
4193 * config.in: Regenerate.
4194 * configure: Regenerate.
4196 * gnulib/Makefile.in: New file.
4197 * gnulib/configure.ac: New file.
4198 * gnulib/aclocal.m4: New file.
4199 * gnulib/config.in: New file.
4200 * gnulib/configure: New file.
4201 * gnulib/: Re-run gnulib-tool to adjust.
4203 2012-04-19 Doug Evans <dje@google.com>
4205 * cleanups.h (struct cleanup): Move to cleanups.c.
4206 (make_cleanup_dtor_ftype): New typedef.
4207 (make_cleanup_dtor): Use it.
4208 (ALL_CLEANUPS): Replace with ...
4209 (all_cleanups): ... this. Declare. All uses updated.
4210 * cleanups.c: #include "gdb_assert.h".
4211 (sentinel_cleanup): New static global.
4212 (SENTINEL_CLEANUP): Define.
4213 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4214 (make_my_cleanup2): Assert result is non-NULL.
4215 (all_cleanups): New function.
4216 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4219 2012-04-19 Pedro Alves <palves@redhat.com>
4221 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4222 Adjust paths to gnulib imported files.
4224 2012-04-19 Pedro Alves <palves@redhat.com>
4226 * gnulib/: Move whole directory ...
4227 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4228 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4229 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4230 (aclocal_m4_deps): Adjust.
4231 * aclocal.m4: Regenerate.
4232 * configure: Regenerate.
4233 * configure.ac: Adjust AC_OUTPUT output.
4235 2012-04-19 Yao Qi <yao@codesourcery.com>
4237 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4239 * vec.c: Move it ...
4240 * common/vec.c: ... here.
4241 * vec.h: Move it ...
4242 * common/vec.h: ... here.
4244 2012-04-19 Yao Qi <yao@codesourcery.com>
4246 * gdb-code-style.el: New.
4248 2012-04-18 Pedro Alves <palves@redhat.com>
4250 Update gnulib from latest git.
4251 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4253 * gnulib/Makefile.am: Update.
4254 * gnulib/dummy.c: Update.
4255 * gnulib/extra/arg-nonnull.h: Update.
4256 * gnulib/extra/c++defs.h: Update.
4257 * gnulib/extra/update-copyright: Update.
4258 * gnulib/extra/warn-on-use.h: Update.
4259 * gnulib/inttypes.in.h: Update.
4260 * gnulib/m4/00gnulib.m4: Update.
4261 * gnulib/m4/extensions.m4: Update.
4262 * gnulib/m4/gnulib-cache.m4: Update.
4263 * gnulib/m4/gnulib-common.m4: Update.
4264 * gnulib/m4/gnulib-comp.m4: Update.
4265 * gnulib/m4/gnulib-tool.m4: Update.
4266 * gnulib/m4/include_next.m4: Update.
4267 * gnulib/m4/inttypes-pri.m4: Update.
4268 * gnulib/m4/inttypes.m4: Update.
4269 * gnulib/m4/longlong.m4: Update.
4270 * gnulib/m4/memchr.m4: Update.
4271 * gnulib/m4/memmem.m4: Update.
4272 * gnulib/m4/mmap-anon.m4: Update.
4273 * gnulib/m4/multiarch.m4: Update.
4274 * gnulib/m4/onceonly.m4: Update.
4275 * gnulib/m4/stddef_h.m4: Update.
4276 * gnulib/m4/stdint.m4: Update.
4277 * gnulib/m4/string_h.m4: Update.
4278 * gnulib/m4/warn-on-use.m4: Update.
4279 * gnulib/m4/wchar_h.m4: Update.
4280 * gnulib/m4/wchar_t.m4: Update.
4281 * gnulib/m4/wint_t.m4: Update.
4282 * gnulib/memchr.c: Update.
4283 * gnulib/memmem.c: Update.
4284 * gnulib/stddef.in.h: Update.
4285 * gnulib/stdint.in.h: Update.
4286 * gnulib/str-two-way.h: Update.
4287 * gnulib/string.in.h: Update.
4288 * gnulib/wchar.in.h: Update.
4290 * gnulib/extra/arg-nonnull.h: Delete.
4291 * gnulib/extra/c++defs.h: Delete.
4292 * gnulib/extra/warn-on-use.h: Delete.
4293 * gnulib/m4/wchar_h.m4: Delete.
4294 * gnulib/m4/wint_t.m4: Delete.
4295 * gnulib/wchar.in.h: Delete.
4297 * gnulib/extra/snippets/arg-nonnull.h: New.
4298 * gnulib/extra/snippets/c++defs.h: New.
4299 * gnulib/extra/snippets/warn-on-use.h: New.
4301 * aclocal.m4: Regenerate.
4302 * config.in: Regenerate.
4303 * configure: Regenerate.
4304 * gnulib/Makefile.in: Regenerate.
4306 2012-04-18 Pedro Alves <palves@redhat.com>
4308 Reimport the update-copyright module from gnulib
4309 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4311 * configure: Regenerate.
4312 * gnulib/Makefile.am: Update.
4313 * gnulib/Makefile.in: Regenerate.
4314 * gnulib/extra/update-copyright: Update.
4315 * gnulib/m4/gnulib-cache.m4: Update.
4316 * gnulib/m4/gnulib-comp.m4: Update.
4318 2012-04-18 Tristan Gingold <gingold@adacore.com>
4320 * configure.ac (aix): Put -lpthread into libs.
4321 * configure: Regenerate.
4323 2012-04-18 Tom Tromey <tromey@redhat.com>
4325 * linespec.c (convert_linespec_to_sals): Don't use
4327 (compare_msymbols): Arguments are minsym_and_objfile, not
4328 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4330 2012-04-18 Pedro Alves <palves@redhat.com>
4332 Revert gnulib/ part of:
4333 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4334 Copyright year update in most files (performed by copyright.sh).
4336 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4338 Fix 64-bit constants on 32-bit hosts.
4339 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4340 from unsigned long to ULONGEST.
4341 (read_signed_leb128): Change declaration return type from long to
4343 (dwarf2_const_value_attr): Change declaration parameter value from long
4345 (dwarf2_compute_name): Change variable value from long to LONGEST.
4346 (read_unsigned_leb128): Change return type, variable result and some
4347 casts from unsigned long to ULONGEST.
4348 (read_signed_leb128): Change return type, variable result and some
4349 casts from long to LONGEST.
4350 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4351 value from long to LONGEST.
4352 (dwarf2_const_value): Change variable value from long to LONGEST.
4353 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4354 plongest and hex_string.
4355 * symtab.h (struct general_symbol_info): Change ivalue from long to
4356 LONGEST, remove the comment.
4357 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4358 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4360 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4363 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4364 * ada-lang.c (ada_discrete_type_high_bound)
4365 (ada_discrete_type_low_bound): Fix function comment. Use
4366 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4367 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4368 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4369 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4370 Use TYPE_FIELD_ENUMVAL.
4371 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4372 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4373 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4374 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4376 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4377 * dwarf2read.c (process_enumeration_scope): Likewise.
4378 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4380 (class StructMainTypePrettyPrinter): Support also
4381 FIELD_LOC_KIND_ENUMVAL.
4382 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4384 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4385 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4386 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4387 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4389 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4390 accommodate enumval.
4391 (struct call_site): Adjust loc_kind to accommodate enumval.
4392 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4393 (TYPE_FIELD_ENUMVAL): New macros.
4394 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4395 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4397 * p-typeprint.c (pascal_type_print_base): Likewise.
4398 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4400 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4401 * python/py-type.c (convert_field): New variable addrstring. Use
4402 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4403 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4404 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4405 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4407 * valprint.c (generic_val_print): Likewise.
4409 2012-04-17 Doug Evans <dje@google.com>
4411 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4413 * dwarf2read.c: Whitespace fixes.
4414 (lookup_signatured_type): Tweak comment.
4415 (get_die_type_at_offset): Fix comment.
4417 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4419 * xcoffread.c (xcoff_secnum_to_sections): New function.
4420 (secnum_to_section, secnum_to_bfd_section): Reimplement
4421 using xcoff_secnum_to_sections. Rename "secnum" parameter
4423 (RECORD_MINIMAL_SYMBOL): Delete.
4424 (record_minimal_symbol): New function.
4425 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4426 by call to record_minimal_symbol and set misc_func_recorded
4427 to 1. Set last_csect_sec to the XCOFF section index instead
4428 of GDB's section_offset index. Update calls to
4429 prim_record_minimal_symbol_and_info to pass the BFD section
4432 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4434 * xcoffread.c (read_xcoff_symtab): Delete variables
4435 last_csect_val and last_csect_sec and associated code.
4437 2012-04-17 Doug Evans <dje@google.com>
4439 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4440 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4441 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4442 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4444 * cleanups.h: New file.
4445 * cleanups.c: New file.
4446 * Makefile.in (SFILES): Add cleanups.c.
4447 (HFILES_NO_SRCDIR): Add cleanups.h.
4448 (COMMON_OBS): Add cleanups.o.
4449 * defs.h (struct cleanup): Moved to cleanups.h.
4450 (do_cleanups,do_final_cleanups): Ditto.
4451 (discard_cleanups,discard_final_cleanups): Ditto
4452 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4453 (save_cleanups,save_final_cleanups): Ditto.
4454 (restore_cleanups,restore_final_cleanups): Ditto.
4455 (null_cleanup): Ditto.
4456 (make_my_cleanup,make_my_cleanup2): Ditto.
4457 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4458 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4459 (do_cleanups,do_final_cleanups): Ditto.
4460 (discard_cleanups,discard_final_cleanups): Ditto
4461 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4462 (save_cleanups,save_final_cleanups): Ditto.
4463 (restore_cleanups,restore_final_cleanups): Ditto.
4464 (null_cleanup): Ditto.
4465 (make_my_cleanup,make_my_cleanup2): Ditto.
4466 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4468 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4470 (make_cleanup_dyn_string_delete): Ditto.
4471 (make_cleanup_ui_file_delete): Ditto.
4472 (make_cleanup_ui_out_redirect_pop): Ditto.
4473 (make_cleanup_free_section_addr_info): Ditto.
4474 (make_cleanup_restore_integer): Ditto.
4475 (make_cleanup_unpush_target): Ditto.
4476 (make_cleanup_value_free_to_mark): Ditto.
4477 (make_cleanup_value_free): Ditto.
4478 (make_cleanup_free_so): Ditto.
4480 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4482 New option "set debug auto-load".
4483 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4484 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4485 (auto_load_safe_path_vec_update)
4486 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4488 (file_is_auto_load_safe): New parameters debug_fmt and ....
4489 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4490 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4491 caller by explanatory string.
4492 (_initialize_auto_load): Register "set debug auto-load".
4493 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4495 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4496 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4497 by explanatory string.
4498 * main.c (captured_main): Likewise.
4499 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4500 (source_section_scripts): Likewise.
4502 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4504 New option "set auto-load safe-path".
4505 * NEWS: New commands "set auto-load safe-path"
4506 and "show auto-load safe-path".
4507 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4508 (auto_load_safe_path, auto_load_safe_path_vec)
4509 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4510 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4511 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4512 (source_gdb_script_for_objfile): New variable is_safe. Call
4513 file_is_auto_load_safe. Return if it is not.
4514 (struct loaded_script): New field loaded.
4515 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4516 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4517 output "Missing" to "No".
4518 (_initialize_auto_load): New variable cmd. Initialize
4519 auto_load_safe_path. Register "set auto-load safe-path",
4520 "show auto-load safe-path" and "add-auto-load-safe-path".
4521 * auto-load.h (maybe_add_script): Add parameter loaded.
4522 (file_is_auto_load_safe): New declaration.
4523 * config.in: Regenerate.
4524 * configure: Regenerate.
4525 * configure.ac: New parameters --with-auto-load-safe-path
4526 and --without-auto-load-safe-path.
4527 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4528 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4529 * main.c (captured_main): Check file_is_auto_load_safe for
4531 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4532 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4533 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4536 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4538 auto-load: Implementation.
4539 * NEWS: New descriptions for "info auto-load",
4540 "info auto-load gdb-scripts", "info auto-load python-scripts",
4541 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4542 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4543 and "show auto-load-scripts". New description for "set auto-load",
4544 "show auto-load", "set auto-load gdb-scripts",
4545 "show auto-load gdb-scripts", "set auto-load python-scripts",
4546 "show auto-load python-scripts", "set auto-load local-gdbinit",
4547 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4548 "show auto-load libthread-db".
4549 * auto-load.c: Remove include python/python-internal.h. Add includes
4550 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4552 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4553 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4554 (gdbpy_global_auto_load): Rename to ...
4555 (global_auto_load): ... here.
4556 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4557 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4558 (script_language_gdb, source_gdb_script_for_objfile): New.
4559 (struct loaded_script): New field language.
4560 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4562 (maybe_add_script): Add parameter language. Drop redundant
4563 entry.full_path initialization. Initialize entry.language and
4565 (auto_load_objfile_script): Change parameter suffix to language.
4566 Remove the call of maybe_add_script.
4567 Call language->source_script_for_objfile.
4568 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4570 (collect_matching_scripts): Adjust it for
4571 struct collect_matching_scripts_data.
4572 (auto_load_info_scripts_pattern_nl): New variable.
4573 (info_auto_load_scripts): Rename to ...
4574 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4575 for struct collect_matching_scripts_data.
4576 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4577 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4578 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4579 (auto_load_info_cmdlist_get): New.
4580 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4581 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4582 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4583 "info auto-load local-gdbinit".
4584 * auto-load.h (struct script_language): New.
4585 (gdbpy_global_auto_load): Rename to ...
4586 (global_auto_load): ... here.
4587 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4588 (auto_load_local_gdbinit_loaded): New declarations.
4589 (maybe_add_script): New parameter language.
4590 (auto_load_objfile_script): Change parameter suffix to language.
4591 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4592 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4593 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4595 * linux-thread-db.c: Include auto-load.h and ctype.h.
4596 (auto_load_thread_db, show_auto_load_thread_db): New.
4597 (struct thread_db_info): New field filename.
4598 (delete_thread_db_info): Call xfree for FILENAME.
4599 (try_thread_db_load): Initialize FILENAME.
4600 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4601 if !AUTO_LOAD_THREAD_DB.
4602 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4603 (_initialize_thread_db): Install auto_load_thread_db
4604 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4605 as "info auto-load libthread-db".
4606 * main.c (captured_main): Rename gdbpy_global_auto_load to
4607 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4608 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4609 (print_gdb_help): Extend the help for 'local init file'.
4610 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4611 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4612 (auto_load_scripts): Rename to ...
4613 (auto_load_python_scripts): ... here, update the comment.
4614 (gdbpy_load_auto_script_for_objfile): New declaration.
4615 (show_auto_load_python_scripts, script_language_python)
4616 (gdbpy_load_auto_script_for_objfile): New.
4617 (source_section_scripts): Refactor the code.
4618 (load_auto_scripts_for_objfile): Rename to ...
4619 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4620 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4621 (info_auto_load_python_scripts): New.
4622 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4623 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4624 Register "set auto-load-scripts" as its deprecated alias. Register
4625 "info auto-load python-scripts". Register "info auto-load-scripts" as
4626 its deprecated alias.
4627 (load_auto_scripts_for_objfile): Rename to ...
4628 (gdbpy_load_auto_scripts_for_objfile): ... here.
4629 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4630 (gdbpy_load_auto_scripts_for_objfile): ... here.
4632 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4634 auto-load: Move files.
4635 * Makefile.in (SFILES): Add auto-load.c.
4636 (HFILES_NO_SRCDIR): Add auto-load.h.
4637 (COMMON_OBS): Add auto-load.o.
4638 (distclean): Change .gdbinit for gdb-gdb.gdb.
4639 * auto-load.c: New file, with parts from python/py-auto-load.c.
4640 * auto-load.h: New file, with parts from python/python.h.
4641 * configure: Regenerate.
4642 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4643 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4644 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4645 * main.c: Include auto-load.h.
4646 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4647 command.h, observer.h and progspace.h to auto-load.c. Add include
4649 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4650 (struct loaded_script, auto_load_pspace_data)
4651 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4652 (hash_loaded_script_entry, eq_loaded_script_entry)
4653 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4654 (maybe_add_script): Move to auto-load.c.
4655 (source_section_scripts): Change maybe_add_script parameters passing,
4656 use script_not_found_warning_print.
4657 (clear_section_scripts, auto_load_objfile_script)
4658 (auto_load_new_objfile, loaded_script_ptr)
4659 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4660 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4661 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4662 auto_load_new_objfile and info_auto_load_scripts initizations to
4664 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4666 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4669 * charset.c (find_charset_names): Remove variables ix and elt.
4670 Use free_char_ptr_vec.
4671 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4672 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4673 debugdir_end. New variable debugdir_len.
4674 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4675 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4677 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4678 and elt. Use free_char_ptr_vec.
4679 * source.c (add_path): Remove variables argv, arg and argv_index.
4680 New variables dir_vec, back_to, ix and name.
4681 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4682 make_cleanup_freeargv. Remove variable separator. Simplify the code
4683 no longer expecting DIRNAME_SEPARATOR.
4684 (openp): Remove variable p, p1 and len. New variables dir_vec,
4685 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4686 no longer expecting DIRNAME_SEPARATOR.
4687 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4688 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4690 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4691 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4692 (dirnames_to_char_ptr_vec): New functions.
4694 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4697 * source.c (add_path): Remove always true conditional 'p == 0' and
4698 unindent its code block.
4700 2012-04-17 Pedro Alves <palves@redhat.com>
4702 * gdbtypes.h (FIELD_BITPOS): Rename to ...
4703 (FIELD_BITPOS_LVAL): ... this.
4704 (FIELD_BITPOS): New.
4705 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4706 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
4707 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
4709 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
4711 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
4712 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
4713 * target-descriptions.c (tdesc_gdb_type): Adjust to use
4716 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4718 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
4719 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
4720 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
4721 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
4722 * jv-lang.c (java_link_class_type): Likewise, once.
4723 * stabsread.c (read_enum_type): Likewise.
4725 2012-04-16 Yao Qi <yao@codesourcery.com>
4727 * common/agent.c (agent_run_command): Add one more parameter `len'.
4729 * common/agent.h: Update declaration.
4730 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4732 (linux_child_static_tracepoint_markers_by_strid): Ditto.
4734 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
4737 * value.c (value_actual_type): New function.
4738 * value.h (value_actual_type): New declaration.
4739 * varobj.c (update_type_if_necessary): New function.
4740 (varobj_create): Call value_actual_type instead of
4742 (install_dynamic_child): distinct changed and type changed MI variable
4744 (update_dynamic_varobj_children): Updated for install_dynamic_child
4745 change. All callers updated.
4746 (varobj_update): Support for MI variable object type change if
4747 the value changed and RTTI is used to determine the type.
4748 (create_child_with_value): Call value_actual_type instead of
4750 (adjust_value_for_child_access): Extended with a new parameter which
4751 specify whether the given value should be casted to enclosing type.
4752 All callers updated.
4754 2012-04-14 Yao Qi <yao@codesourcery.com>
4756 Import gnulib module inttypes from git
4757 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4758 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
4759 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
4760 gnulib/m4/inttypes-pri.m4
4761 * aclocal.m4, config.in, configure: Regenerated.
4762 * gnulib/Makefile.am: Update.
4763 * gnulib/Makefile.in: Update.
4764 * gnulib/m4/gnulib-cache.m4: Update.
4765 * gnulib/m4/gnulib-comp.m4: Update.
4766 * gnulib/inttypes.in.h: New.
4767 * gnulib/m4/inttypes-pri.m4: New.
4768 * gnulib/m4/inttypes.m4: New.
4770 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
4772 * infrun.c (resume): Update PC address to the real PC after
4773 preparing to do displaced stepping.
4775 2012-04-12 Doug Evans <dje@google.com>
4777 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
4778 All callers updated.
4780 2012-04-12 Mark Kettenis <kettenis@gnu.org>
4782 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
4784 2012-04-12 Doug Evans <dje@google.com>
4786 * dwarf2read.c (create_all_type_units): Renamed from
4787 create_debug_types_hash_table. All callers updated.
4789 * dwarf2read.c (create_signatured_type_table_from_index): Rename
4790 local type_sig to sig_type, type_offset to type_offset_in_tu.
4791 (hash_signatured_type): Renamed from hash_type_signature,
4792 all callers updated.
4793 (eq_signatured_type): Renamed from eq_type_signature,
4794 all callers updated.
4795 (create_debug_types_hash_table): Rename local type_sig to sig_type.
4796 (process_enumeration_scope): Ditto.
4797 (lookup_signatured_type_at_offset): Ditto.
4798 (load_full_type_unit, read_signatured_type): Ditto.
4800 2012-04-12 Yao Qi <yao@codesourcery.com>
4802 * remote.c (async_remote_interrupt): Correct function name in
4804 (async_remote_interrupt_twice): Ditto.
4806 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
4808 * source.c (find_and_open_source): Consistently pass resulting
4809 full path through xfullpath.
4811 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4813 Provide more specific displaced-stepping memory error message.
4814 * infrun.c (displaced_step_prepare): New variable status. Call
4815 target_read_memory instead of read_memory, provide more specific
4818 2012-04-11 Tristan Gingold <gingold@adacore.com>
4821 * darwin-nat.c (darwin_execvp): Revert previous patch.
4823 2012-04-11 Tristan Gingold <gingold@adacore.com>
4826 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
4829 2012-04-11 Tristan Gingold <gingold@adacore.com>
4831 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
4834 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
4836 New command 'explore' which helps explore values and types in
4838 * NEWS: Add an entry about the new 'explore' command.
4839 * data-directory/Makefile.in: Add gdb/command/explore.py
4840 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
4841 command using the GDB Python API.
4843 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
4845 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
4846 extension in jump target calculation.
4848 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
4850 * mips-tdep.c (mips32_next_pc): Handle JALX.
4852 2012-04-10 Yao Qi <yao@codesourcery.com>
4854 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
4856 2012-04-10 Yao Qi <yao@codesourcery.com>
4858 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
4859 and gnulib/m4/gnulib-tool.m4.
4861 2012-04-10 Doug Evans <dje@google.com>
4863 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
4864 (load_partial_dies): Clarify comment.
4865 (find_partial_die): Support rereading type units.
4866 Clarify CU handling, if we know offset is in CU, don't search for the
4867 containing CU. Add comment regarding memory waste.
4869 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
4871 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
4872 i386/x32-avx and i386/x32-avx-linux.
4873 (i386/x32-expedite): New.
4874 (i386/x32-linux-expedite): Likewise.
4875 (i386/x32-avx-expedite): Likewise.
4876 (i386/x32-avx-linux-expedite): Likewise.
4877 ($(outdir)/i386/x32.dat): Likewise.
4878 ($(outdir)/i386/x32-linux.dat): Likewise.
4879 ($(outdir)/i386/x32-avx.dat): Likewise.
4880 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
4882 * features/i386/x32-avx-linux.xml: New file.
4883 * features/i386/x32-avx.xml: Likewise.
4884 * features/i386/x32-core.xml: Likewise.
4885 * features/i386/x32-linux.xml: Likewise.
4886 * features/i386/x32.xml: Likewise.
4888 * features/i386/x32-avx-linux.c: New. Generated.
4889 * features/i386/x32-avx.c: Likewise.
4890 * features/i386/x32-linux.c: Likewise.
4891 * features/i386/x32.c: Likewise.
4892 * regformats/i386/x32-avx-linux.dat: Likewise.
4893 * regformats/i386/x32-avx.dat: Likewise.
4894 * regformats/i386/x32-linux.dat: Likewise.
4895 * regformats/i386/x32.dat: Likewise.
4897 2012-04-10 Tristan Gingold <gingold@adacore.com>
4899 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
4900 code to kill the inferior.
4902 2012-04-09 Mark Kettenis <kettenis@gnu.org>
4904 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4906 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4908 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
4909 (yyvsp): New defines.
4910 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4912 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4914 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4916 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4918 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
4921 2012-04-09 Mark Kettenis <kettenis@gnu.org>
4923 * sparc64-tdep.c (sparc64_store_arguments)
4924 (sparc64_store_arguments): Fix coding style.
4926 2012-04-07 Mark Kettenis <kettenis@gnu.org>
4928 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
4929 complex floats, adjust some related comments and tighten a related
4931 (sparc64_extract_return_value): Handle complex floats.
4933 2012-04-07 Doug Evans <dje@google.com>
4935 * dwarf2read.c (load_partial_dies): Change condition to assert.
4937 2012-04-06 Doug Evans <dje@google.com>
4939 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
4942 2012-04-05 Kevin Buettner <kevinb@redhat.com>
4944 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
4946 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
4947 (v850_gdbarch_init): Set `num_regs' as appropriate for the
4950 2012-04-05 Keith Seitz <keiths@redhat.com>
4952 * linespec.c (decode_compound): Remove.
4953 (enum offset_relative_sign): New enum.
4954 (struct line_offset): New struct.
4955 (struct linespec): New struct.
4956 (struct linespec_state): Move file_symtabs,
4957 user_filename, and user_function into struct linespec.
4958 Make result an anonymous struct holding vectors of
4959 symbolp and minsym_and_objfile_d.
4960 Add language member.
4961 (enum ls_token_type): New enum.
4962 (linespec_keywords): New array.
4963 (struct ls_token): New struct.
4964 (struct ls_parser): New struct.
4965 (linespec_lexer_lex_number): New function.
4966 (linespec_lexer_lex_keyword): New function.
4967 (is_ada_operator): New function.
4968 (skip_quote_char): New function.
4969 (copy_token_string): New function.
4970 (is_closing_quote_enclosed): New function.
4971 (find_parameter_list_end): New function.
4972 (linespec_lexer_lex_string): New function.
4973 (linespec_lexer_lex_one): New function.
4974 (linespec_lexer_consume_token): New function.
4975 (linespec_lexer_peek_token): New function.
4976 (cplusplus_error): Remove unused function.
4977 (find_methods): Update comment.
4978 (find_toplevel_char): Return const.
4979 (is_objc_method_format): Remove unused function.
4980 (find_toplevel_string): New function.
4981 (is_linespec_boundary): Remove.
4982 (symbol_not_found_error): New function.
4983 (find_method_overload_end): Remove function.
4984 (unexpected_linespec_error): New function.
4985 (keep_name_info): Remove.
4986 (linespec_parse_line_offset): New function.
4987 (linespec_parse_basic): New function.
4988 (canonicalize_linespec): New function.
4989 (decode_line_internal): Remove.
4990 (create_sals_line_offset): New function adapted from
4992 (convert_linespec_to_sals): New function.
4993 (parse_linespec): New function.
4994 (linespec_parser_new): New function.
4995 (linespec_state_destructor): Change parameter type to
4996 struct linespec_state *.
4997 Add language parameter.
4998 Remove freeing of moved members.
4999 (linespec_parser_delete): New function.
5000 (decode_line_full): Use parse_linespec and linespec_parser_new.
5001 (decode_line_1): Likewise.
5002 (decode_indirect): Rename to ...
5003 (linespec_expression_to_pc): ... this and rewrite
5004 to simply find CORE_ADDR, storing this result for later
5006 (locate_first_half): Remove.
5007 (deocde_objc): Add parameter LS.
5008 Initialize new struct collect_info members.
5009 Handle minimal symbols, too.
5010 (decode_compound): Delete.
5011 (lookup_prefix_sym): Rewrite.
5012 (compare_msymbols): New function.
5013 (find_method): Rewrite.
5014 Do not call cplusplus_error.
5015 (symtabs_from_filename): Rewrite.
5016 (collect_function_symbols): Delete.
5017 (find_function_symbols): Rewrite without ARGPTR-style
5019 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5020 (decode_dollar): Adapted and renamed to ...
5021 (linespec_parse_variable): ... this.
5022 (find_linespec_symbols): New function.
5023 (decode_label): Adapted and renamed to ...
5024 (find_label_symbols): ... this.
5025 (decode_digits_list_mode): Add and use LS argument.
5026 (decode_digits_ordinary): Likewise.
5027 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5028 If in list mode, allow any symbol class. Otherwise, only
5029 permit LOC_BLOCK symbols.
5030 (minsym_found): Update comments.
5031 (search_minsyms_for_name): Do not convert the matching symbol
5032 into a SAL. Simply push the symbol and objfile into the
5034 (decode_variable): Delete. Contents adapted into
5035 find_linespec_symbols.
5037 * cp-support.c (SKIP_SPACE): Remove.
5038 (operator_tokens): Remove unused global.
5039 (cp_validate_operator): Remove.
5040 * cp-support.h (cp_validate_operator): Remove declaration.
5042 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5044 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5045 for TYPE_VPTR_FIELDNO.
5046 * valprint.c (valprint_check_validity): Make it global, move the
5047 function comment ...
5048 * value.h (valprint_check_validity): ... to this new declaration.
5050 2012-04-02 Tristan Gingold <gingold@adacore.com>
5052 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5053 the STATE32 api for i386 state.
5054 (i386_darwin_store_inferior_registers): Likewise.
5056 2012-04-02 Tristan Gingold <gingold@adacore.com>
5058 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5060 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5063 2012-04-02 Tristan Gingold <gingold@adacore.com>
5066 * darwin-nat.c (darwin_execvp): Set binary preference.
5068 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5070 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5072 2012-03-30 Tom Tromey <tromey@redhat.com>
5074 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5075 of TRY_CATCH. Fix error handling.
5076 * python/py-value.c (convert_value_from_python): Move 'old'
5077 declaration to innermost scope.
5079 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5080 Andrey Smirnov <andrew.smirnov@gmail.com>
5082 -Wshadow warning fix.
5083 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5084 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5085 Adjust code accordingly.
5087 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5089 * ada-lang.c (symbol_completion_add): Rename parameter
5090 "encoded" into "encoded_p". Ajust code and documentation
5093 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5094 Andrey Smirnov <andrew.smirnov@gmail.com>
5096 -Wshadow warning fix.
5097 * ada-lang.c (symbol_completion_add): Rename parameter
5098 "wild_match" into wild_match_p. Update code and documentation
5101 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5103 * ada-lang.c (symbol_completion_match): Rename parameter
5104 "encoded" into "encoded_p". Ajust code and documentation
5107 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5108 Andrey Smirnov <andrew.smirnov@gmail.com>
5110 -Wshadow warning fix.
5111 * ada-lang.c (symbol_completion_match): Rename parameter
5112 "wild_match" into "wild_match_p". Adjust code and function
5113 documentation accordingly.
5115 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5116 Andrey Smirnov <andrew.smirnov@gmail.com>
5118 -Wshadow warning fix.
5119 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5120 "symbol_info" into "info". Adjust code accordingly.
5121 (ada_lookup_symbol): Likewise.
5123 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5125 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5126 of this function's documentation.
5128 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5129 Andrey Smirnov <andrew.smirnov@gmail.com>
5131 -Wshadow warning fix.
5132 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5133 variable into "wild_match_p". Adjust code accordingly.
5135 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5136 Andrey Smirnov <andrew.smirnov@gmail.com>
5138 -Wshadow warning fix.
5139 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5140 parameter into "wild_match_p". Adjust code accordingly.
5141 Document this parameter in the function description.
5143 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5144 Andrey Smirnov <andrew.smirnov@gmail.com>
5146 -Wshadow warning fix.
5147 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5148 "wild_match" parameter to "wild_match_p" (-Wshadow).
5150 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5152 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5153 in function documentation.
5155 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5156 Andrey Smirnov <andrew.smirnov@gmail.com>
5158 -Wshadow warning fix.
5159 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5160 variable into wild_match_p. Adjust code accordingly.
5162 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5163 Andrey Smirnov <andrew.smirnov@gmail.com>
5165 * ada-valprint.c (ada_val_print_1): Move the code handling
5166 TYPE_CODE_ENUM inside its own lexical block. Declare
5167 variables len and val there, instead of in the function's
5168 top level block. Avoid declaring deref_val again in a way
5169 that shadows another variable of the same name declared
5170 in one of the up-level blocks. Just re-use the up-level
5173 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5175 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5176 Replace block_found argument by symbol_info. Adjust
5177 implementation accordingly. Add function documentation.
5178 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5180 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5181 * ada-exp.y (write_object_renaming): Adjust to new
5182 ada_lookup_encoded_symbol API.
5184 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5186 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5189 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5191 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5192 (v850_register_name): Add the mpu and fpu register names.
5193 (v850e_register_name): Add the mpu and fpu register names.
5194 (v850e2_register_name): New function.
5195 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5198 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5200 * NEWS: Add entry for Ada varobj support.
5202 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5204 * varobj.c (default_value_is_changeable_p): New function,
5205 extracted from varobj_value_is_changeable_p. Add declaration.
5206 (ada_value_is_changeable_p): New function, extracted from
5207 varobj_value_is_changeable_p. Add declaration.
5208 (struct language_specific): New field "value_is_changeable_p".
5209 (languages): Add entries for new field.
5210 (varobj_create): Set language before calling install_new_value.
5211 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5212 "value_is_changeable_p" language callback.
5214 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5216 * ada-varobj.h, ada-varobj.c: New files.
5217 * Makefile.in (SFILES): Add ada-varobj.c.
5218 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5219 (COMMON_OBS): Add ada-varobj.o.
5221 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5223 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5224 (struct language_specific): New field "value_has_mutated".
5225 (languages): Set field "value_has_mutated" in each entry of array.
5226 (varobj_value_has_mutated): New function.
5227 (varobj_udpdate): Add handling of type mutation.
5228 (value_of_root): Add handling of type mutation.
5229 (ada_value_has_mutated): New function.
5231 2012-03-28 Pedro Alves <palves@redhat.com>
5233 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5234 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5236 2012-03-28 Tom Tromey <tromey@redhat.com>
5238 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5239 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5242 2012-03-28 Tom Tromey <tromey@redhat.com>
5244 * .dir-locals.el: New file.
5246 2012-03-28 Pedro Alves <palves@redhat.com>
5248 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5250 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5252 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5255 2012-03-27 Pedro Alves <palves@redhat.com>
5257 Eliminate struct ui_stream.
5259 * ui-out.h (struct ui_stream): Delete.
5260 (ui_out_field_stream): Adjust prototype.
5261 (ui_out_stream_new, ui_out_stream_delete)
5262 (make_cleanup_ui_out_stream_delete): Delete declarations.
5263 * ui-out.c (ui_out_field_stream): Change prototype to take a
5264 ui_file instead of a ui_stream. Adjust.
5265 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5266 (make_cleanup_ui_out_stream_delete): Delete.
5267 * breakpoint.c (print_breakpoint_location)
5268 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5269 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5270 * disasm.c (dump_insns): Ditto.
5271 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5273 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5274 ui_stream/ui_out_stream_new.
5275 * infcmd.c (print_return_value): Ditto.
5276 * osdata.c (info_osdata_command): Don't allocate a local
5278 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5279 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5280 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5281 allocate a local ui_stream.
5282 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5283 instead of ui_stream/ui_out_stream_new.
5284 (list_args_or_locals): Don't allocate a local ui_stream.
5285 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5286 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5287 ui_stream/ui_out_stream_new.
5288 * cli/cli-setshow.c (do_setshow_command): Ditto.
5290 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5292 * arm-linux-tdep.c (arm_linux_init_abi): Call
5293 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5294 * arm-tdep.c (arm_process_record): New function.
5295 (deallocate_reg_mem): New function.
5296 (decode_insn): New function.
5297 (thumb_record_branch): New function.
5298 (thumb_record_ldm_stm_swi(): New function.
5299 (thumb_record_misc): New function.
5300 (thumb_record_ld_st_stack): New function.
5301 (thumb_record_ld_st_imm_offset): New function.
5302 (thumb_record_ld_st_reg_offset(): New function.
5303 (thumb_record_add_sub_cmp_mov): New function.
5304 (thumb_record_shift_add_sub): New function.
5305 (arm_record_coproc_data_proc): New function.
5306 (arm_record_coproc): New function.
5307 (arm_record_b_bl): New function.
5308 (arm_record_ld_st_multiple): New function.
5309 (arm_record_ld_st_reg_offset): New function.
5310 (arm_record_ld_st_imm_offset): New function.
5311 (arm_record_data_proc_imm): New function.
5312 (arm_record_data_proc_misc_ld_str): New function.
5313 (arm_record_extension_space): New function.
5314 (arm_record_strx): New function.
5315 (sbo_sbz): New function.
5316 (struct insn_decode_record): New structure for arm insn record.
5317 (REG_ALLOC): New macro for reg allocations.
5318 (MEM_ALLOC): New macro for memory allocations.
5319 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5321 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5323 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5324 (store_register): Likewise.
5326 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5328 * MAINTAINERS (Write After Approval): Add myself to the list.
5330 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5332 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5333 Describe also the option "auto".
5335 2012-03-22 Richard Henderson <rth@redhat.com>
5337 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5338 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5340 2012-03-22 Richard Henderson <rth@redhat.com>
5342 * jit.c (jit_read_code_entry): Compute alignment and offset of
5343 int64_t member before computing entry_size.
5345 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5347 Python scripting: Add new method Value.referenced_value to
5348 gdb.Value which can dereference pointer as well as reference
5350 * NEWS: Add entry under 'Python scripting' about the new method
5351 Value.referenced_value on gdb.Value objects.
5352 * python/py-value.c (valpy_referenced_value): New function
5353 defining a new method on gdb.Value objects which can dereference
5354 pointer and reference values.
5356 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5358 * MAINTAINERS (Write After Approval): Add myself to the list.
5360 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5362 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5363 in addition to "main".
5365 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5367 * expression.h (op_name): Add declaration.
5368 * expprint.c (op_name): Remove declaration. Make non-static.
5369 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5371 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5373 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5375 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5376 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5377 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5378 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5379 (linux_nat_get_siginfo): Likewise.
5380 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5381 (linux_nat_get_siginfo): Likewise.
5382 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5383 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5384 * procfs.c (gdb_siginfo_t): Likewise.
5386 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5388 * .gitignore: Ignore more files.
5390 2012-03-20 Pedro Alves <palves@redhat.com>
5392 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5395 2012-03-20 Yao Qi <yao@codesourcery.com>
5397 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5400 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5402 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5403 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5404 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5406 * dwarf2expr.h (cu_offset, sect_offset): New types.
5407 (struct dwarf_expr_context_funcs) <dwarf_call>
5408 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5410 (struct dwarf_expr_context) <len>: Improve the comment.
5411 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5412 cu_offset and sect_offset.
5413 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5414 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5415 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5416 * dwarf2loc.h: Include dwarf2expr.h.
5417 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5419 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5420 Improve the comment.
5421 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5422 (struct signatured_type, struct line_header, struct partial_die_info)
5423 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5424 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5425 (get_die_type_at_offset, create_cus_from_index)
5426 (create_signatured_type_table_from_index, dw2_get_file_names)
5427 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5428 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5429 (create_debug_types_hash_table, process_psymtab_comp_unit)
5430 (load_partial_comp_unit, create_all_comp_units)
5431 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5432 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5433 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5434 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5435 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5436 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5437 (find_partial_die, read_attribute_value, lookup_die_type)
5438 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5439 (is_ref_attr): New function comment.
5440 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5441 Use cu_offset and sect_offset.
5442 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5443 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5444 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5445 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5446 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5447 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5448 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5451 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5454 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5455 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5457 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5459 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5461 * NEWS: Describe new options --init-command=FILE, -ix and
5462 --init-eval-command=COMMAND, -iex.
5463 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5464 CMDARG_INIT_COMMAND.
5465 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5466 "init-command", "init-eval-command", "ix" and "iex" to the variable
5467 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5468 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5469 (print_gdb_help): Describe --init-command=FILE, -ix and
5470 --init-eval-command=COMMAND, -iex.
5472 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5475 * main.c (struct cmdarg): Move it here from main. Add more comments.
5476 (cmdarg_s, VEC (cmdarg_s)): New.
5477 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5478 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5479 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5480 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5483 2012-03-19 Tom Tromey <tromey@redhat.com>
5485 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5487 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5490 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5493 2012-03-16 Chris January <chris.january@allinea.com>
5495 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5498 2012-03-16 Chris January <chris.january@allinea.com>
5500 * source.c (add_path): Use memmove instead of strcpy because the
5503 2012-03-16 Joel Brobecker <brobecker@adacore.com>
5505 * value.h (set_value_parent): Add declaration.
5506 * value.c (set_value_parent): New function.
5507 (value_address): If VALUE->PARENT is not NULL, then use it as
5508 the base address instead of VALUE->LOCATION.address.
5509 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5510 the same as OBJ's address. Adjust V's offset accordingly.
5513 2012-03-16 Gary Benson <gbenson@redhat.com>
5515 PR breakpoints/10738
5516 * dwarf2read.c (use_deprecated_index_sections): New global.
5517 (struct partial_die_info): New member may_be_inlined.
5518 (read_partial_die): Set may_be_inlined where appropriate.
5519 (add_partial_subprogram): Add partial symbols for partial
5520 DIEs that may be inlined.
5521 (new_symbol_full): Add inlined subroutines to the current
5523 (write_psymtabs_to_index): Bump version number.
5524 (dwarf2_read_index): Read only version 6 indices unless
5525 use_deprecated_index_sections is set.
5526 * linespec.c (symbol_and_data_callback): New structure.
5527 (iterate_inline_only): New function.
5528 (iterate_over_all_matching_symtabs): New argument
5529 "include_inline". If nonzero, also call the callback for
5530 symbols representing inlined subroutines.
5531 (lookup_prefix_sym): Pass extra argument to the above.
5532 (find_function_symbols): Likewise.
5533 (add_matching_symbols_to_info): Likewise.
5534 * NEWS: Mention that GDB can now set breakpoints on inlined
5537 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5539 * p-typeprint.c (pascal_type_print_method_args):
5540 Fix display of parameter of methods.
5542 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5544 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5545 Add missing prototype.
5547 2012-03-16 Yao Qi <yao@codesourcery.com>
5548 Jan Kratochvil <jan.kratochvil@redhat.com>
5550 Fix false compilation warning.
5551 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5553 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5554 Pedro Alves <pedro@codesourcery.com>
5556 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5557 (arm_register_g_packet_guesses): New function.
5558 (arm_gdbarch_init): Don't force a target description with
5559 registers when the executable is detected as M-profile. Instead
5560 set gdbarch->tdep->is_m. Register `g' packet guesses.
5561 (_initialize_arm_tdep): Initialize the new target description.
5562 * features/arm-with-m-fpa-layout.xml: New description.
5563 * features/arm-with-m-fpa-layout.c: New, generated.
5565 2012-03-15 Joel Brobecker <brobecker@adacore.com>
5567 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5568 Update function description.
5569 (insert_bp_location): Do not wipe bl->target_info out.
5570 * mem-break.c: #include "gdb_string.h".
5571 (default_memory_insert_breakpoint): Do not call target_read_memory
5572 with a pointer to the breakpoint's shadow_contents buffer. Use
5573 a local buffer instead.
5574 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5576 2012-03-15 Tom Tromey <tromey@redhat.com>
5578 * NEWS: Mention "info vtbl", not "info vtable".
5579 * cp-support.c (info_vtbl_command): Fix comment.
5580 (_initialize_cp_support): Fix text.
5582 2012-03-15 Tom Tromey <tromey@redhat.com>
5584 * cp-valprint.c (cp_print_value_fields): Use
5585 print_function_pointer_address for vtable slot.
5587 2012-03-15 Tom Tromey <tromey@redhat.com>
5589 * gnu-v3-abi.c (struct value_and_voffset): New.
5590 (hash_value_and_voffset, eq_value_and_voffset)
5591 (compare_value_and_voffset, compute_vtable_size)
5592 (print_one_vtable, gnuv3_print_vtable): New functions.
5593 (init_gnuv3_ops): Initialize 'print_vtable' field.
5594 * cp-support.c (info_vtbl_command): New function.
5595 (_initialize_cp_support): Add "info vtbl".
5596 * cp-abi.h (cplus_print_vtable): Declare.
5597 (struct cp_abi_ops) <print_vtable>: New field.
5598 * cp-abi.c (cplus_print_vtable): New function.
5601 2012-03-15 Tom Tromey <tromey@redhat.com>
5603 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5604 iterate_over_symbols.
5606 2012-03-14 Doug Evans <dje@google.com>
5608 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5609 DW_OP_GNU_parameter_ref.
5611 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5613 Fix double prompt of 'interpreter-exec mi'.
5614 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5615 (mi_interpreter_resume): use it.
5616 (mi_execute_command_input_handler): New function.
5617 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5618 mi_execute_command_input_handler.
5620 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
5622 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5624 (darwin_debug_port_info): Make static.
5625 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5626 * machoread.c (_initialize_machoread): Add prototype.
5627 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5628 (i386_darwin_set_control, i386_darwin_get_control)
5629 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5630 i386_darwin_get_status, i386_darwin_get_control):
5631 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5633 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5635 * ax-gdb.c (gen_usual_unary): Remove special handling of
5636 enum and bool types.
5638 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5640 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5642 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5644 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5646 2012-03-13 Chris January <chris.january@allinea.com>
5648 * aix-thread.c (fill_sprs): Store the floating point registers
5649 at the correct offsets into vals.
5651 2012-03-13 Doug Evans <dje@google.com>
5653 * NEWS: Mention symbol-reloading has been deleted.
5654 * symfile.c (symbol_reloading): Delete.
5655 (show_symbol_reloading): Delete.
5656 (_initialize_symfile): Delete set/show symbol-reloading.
5658 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5659 read_in_chain until we have successfully read it in.
5660 (load_full_comp_unit): Ditto.
5661 (read_signatured_type): Add comment.
5663 2012-03-13 Chris January <chris.january@allinea.com>
5665 * stabsread.c (fix_common_block): Change type of valu argument
5668 2012-03-13 Chris January <chris.january@allinea.com>
5670 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5673 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5675 * common/linux-procfs.c (linux_proc_get_int): New, from
5676 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5678 (linux_proc_get_tgid): Only call linux_proc_get_int.
5679 (linux_proc_get_tracerpid): New.
5680 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5681 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5682 linux_proc_pid_has_state.
5683 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5684 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5685 (linux_ptrace_attach_warnings): New.
5686 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5688 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5689 (linux_nat_attach): New variables ex, buffer, message and message_s.
5690 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5692 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5694 * Makefile.in (linux-ptrace.o): New.
5695 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5697 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5698 * common/linux-ptrace.c: New file.
5699 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5700 * config/arm/linux.mh: Likewise.
5701 * config/i386/linux.mh: Likewise.
5702 * config/i386/linux64.mh: Likewise.
5703 * config/ia64/linux.mh: Likewise.
5704 * config/m32r/linux.mh: Likewise.
5705 * config/m68k/linux.mh: Likewise.
5706 * config/mips/linux.mh: Likewise.
5707 * config/pa/linux.mh: Likewise.
5708 * config/powerpc/linux.mh: Likewise.
5709 * config/powerpc/ppc64-linux.mh: Likewise.
5710 * config/powerpc/spu-linux.mh: Likewise.
5711 * config/s390/s390.mh: Likewise.
5712 * config/sparc/linux.mh: Likewise.
5713 * config/sparc/linux64.mh: Likewise.
5714 * config/xtensa/linux.mh: Likewise.
5715 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
5716 common/linux-procfs.c.
5717 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
5719 2012-03-13 Hui Zhu <teawater@gmail.com>
5720 Pedro Alves <palves@redhat.com>
5722 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
5723 CREATE_BREAKPOINT_FLAGS_INSERTED.
5724 (create_breakpoint_sal, create_breakpoints_sal)
5725 (base_breakpoint_create_breakpoints_sal)
5726 (tracepoint_create_breakpoints_sal)
5727 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
5729 (break_command_1, handle_gnu_v3_exceptions, trace_command)
5730 (ftrace_command, strace_command): Adjust.
5731 (create_tracepoint_from_upload): Pass
5732 CREATE_BREAKPOINT_FLAGS_INSERTED.
5733 * breakpoint.h (enum breakpoint_create_flags): New.
5734 (create_breakpoint): New flags parameter.
5735 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
5736 * python/py-breakpoint.c (bppy_init): Adjust.
5737 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
5738 * spu-tdep.c (spu_catch_start): Adjust.
5740 2012-03-13 Pedro Alves <palves@redhat.com>
5741 Hui Zhu <teawater@gmail.com>
5742 Yao Qi <yao@codesourcery.com>
5744 * remote.c (struct remote_state): New field `starting_up'.
5745 (remote_start_remote): Set and clear it.
5746 (remote_can_download_tracepoint): If starting up, return false.
5748 2012-03-13 Yao Qi <yao@codesourcery.com>
5750 * inferior.h (struct inferior): Remove fields any_syscall_count,
5751 syscalls_counts and total_syscalls_count. Move them to new
5752 struct catch_syscall_inferior_data in breakpoint.c.
5753 * breakpoint.c: Call DEF_VEC_I(int).
5754 (struct catch_syscall_inferior_data): New.
5755 (get_catch_syscall_inferior_data): New.
5756 (catch_syscall_inferior_data_cleanup): New.
5757 (insert_catch_syscall): Update to access data in
5758 struct catch_syscall_inferior_data.
5759 (insert_catch_syscall): Likewise.
5760 (remove_catch_syscall): Likewise.
5761 (remove_catch_syscall): Likewise.
5762 (is_syscall_catchpoint_enabled): Likewise.
5763 (add_catch_command): Likewise.
5764 (_initialize_breakpoint): Register cleanup.
5765 * breakpoint.h: Removed DEF_VEC_I(int).
5766 * dwarf2loc.c: Call DEF_VEC_I(int).
5767 * mi/mi-main.c: Likewise.
5769 2012-03-12 Mark Kettenis <kettenis@gnu.org>
5771 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
5773 2012-03-12 Chris January <chris.january@allinea.com>
5775 * aix-thread.c (_initialize_aix_thread): Add prototype.
5776 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
5777 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
5779 2012-03-12 Joel Brobecker <brobecker@adacore.com>
5781 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
5782 include of "amd64-nat.h".
5784 2012-03-12 Tom Tromey <tromey@redhat.com>
5786 * buildsym.c (record_pending_block): Now static.
5787 * buildsym.h: (record_pending_block): Remove.
5789 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
5791 * amd64bsd-nat.c: Include amd64bsd-nat.h.
5793 2012-03-09 Tom Tromey <tromey@redhat.com>
5795 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
5796 producer_is_gxx_lt_4_6>: New fields.
5797 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
5799 2012-03-09 Tom Tromey <tromey@redhat.com>
5801 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
5803 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5805 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
5808 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5810 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
5812 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5814 Fix -Wmissing-prototypes build.
5815 * arm-linux-nat.c (get_thread_id): Make it static.
5816 * xtensa-linux-nat.c (get_thread_id): Likewise.
5818 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5820 * server.c (process_point_options): If a conditional expression
5821 is found, only print a message if remote_debug is nonzero.
5823 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
5825 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
5826 of internal error for unknown/unsupported types.
5828 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5830 Fix CU relative vs. absolute DIE offsets.
5831 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
5832 offset to offset_in_cu.
5833 * dwarf2read.c (process_enumeration_scope): Add CU offset to
5835 (dwarf2_fetch_die_location_block): Rename parameter offset to
5836 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
5838 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5840 * libunwind-frame.c: Rename to ...
5841 * ia64-libunwind-tdep.c: ... here.
5842 * libunwind-frame.h: Rename to ...
5843 * ia64-libunwind-tdep.h: ... here.
5844 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
5845 ia64-libunwind-tdep.h.
5846 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
5847 * README (--with-libunwind): Rename to ...
5848 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
5849 * config.in: Regenerate.
5850 * configure: Regenerate.
5851 * configure.ac: New option --with-libunwind-ia64, make the
5852 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
5853 Remove AC_DEFINE for HAVE_LIBUNWIND.
5854 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
5855 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
5856 Rename libunwind-frame in the general comment.
5857 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
5858 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
5859 Move forward declarations inside #ifndef. Rename libunwind-frame in
5860 the general comment.
5861 * ia64-tdep.c: Rename libunwind-frame.h #include to
5862 ia64-libunwind-tdep.h.
5863 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
5864 (ia64_libunwind_descr): Rename libunwind-frame to
5865 ia64-libunwind-tdep in these function comments.
5866 * ia64-tdep.h: Rename libunwind-frame.h #include to
5867 ia64-libunwind-tdep.h.
5868 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
5869 ia64-libunwind-tdep in that data comment.
5871 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5873 * libunwind-frame.h (struct frame_unwind): New declaration.
5875 2012-03-08 Joel Brobecker <brobecker@adacore.com>
5877 * breakpoint.c (_initialize_breakpoint): Fix error in help of
5878 "set breakpoint condition-evaluation" command.
5880 2012-03-08 Tristan Gingold <gingold@adacore.com>
5882 * sparc-stub.c: Move to stubs/
5883 * sh-stub.c: Likewise.
5884 * m68k-stub.c: Likewise.
5885 * m32r-stub.c: Likewise.
5886 * i386-stub.c: Likewise.
5888 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
5890 * m68klinux-tdep.c (m68k_linux_init_abi): Register
5891 linux_get_siginfo_type.
5893 * m68klinux-nat.c: Include "gdb_proc_service.h".
5894 (PTRACE_GET_THREAD_AREA): Define.
5895 (ps_get_thread_area): New function.
5897 2012-03-08 Yao Qi <yao@codesourcery.com>
5899 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
5901 (remote_query_attached): Likewise.
5902 (remote_static_tracepoint_marker_at): Likewise.
5903 (remote_set_permissions): Likewise.
5904 (remote_detach_1, extended_remote_attach_1): Likewise.
5905 (send_g_packet, remote_vkill): Likewise.
5906 (extended_remote_disable_randomization): Likewise.
5907 (remote_add_target_side_condition): Likewise.
5908 (remote_insert_breakpoint): Likewise.
5909 (remote_remove_breakpoint): Likewise.
5910 (remote_insert_watchpoint): Likewise.
5911 (remote_remove_watchpoint): Likewise.
5912 (remote_insert_hw_breakpoint): Likewise.
5913 (remote_insert_hw_breakpoint): Likewise.
5914 (remote_remove_hw_breakpoint): Likewise.
5915 (remote_download_command_source): Likewise.
5916 (remote_download_tracepoint): Likewise.
5917 (remote_download_trace_state_variable): Likewise.
5918 (remote_disable_tracepoint): Likewise.
5919 (remote_trace_set_readonly_regions): Likewise.
5920 (remote_get_tracepoint_status): Likewise.
5921 (remote_trace_find): Likewise.
5922 (remote_get_trace_state_variable_value): Likewise.
5923 (remote_set_disconnected_tracing): Likewise.
5924 (remote_set_circular_trace_buffer): Likewise.
5925 (remote_get_min_fast_tracepoint_insn_len): Likewise.
5926 (remote_use_agent): Likewise.
5927 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
5930 2012-03-07 Pedro Alves <palves@redhat.com>
5932 * NEWS: Mention QProgramSignals.
5933 * inferior.h (update_signals_program_target): Declare.
5934 * infrun.c: (update_signals_program_target): New.
5935 (handle_command): Update the target of the new program signals
5937 * remote.c (PACKET_QProgramSignals): New enum.
5938 (last_program_signals_packet): New global.
5939 (remote_program_signals): New.
5940 (remote_start_remote): Update the target with the program signals
5942 (remote_protocol_features): Add entry for QPassSignals.
5943 (remote_open_1): Free anc clear last_program_signals_packet.
5944 (init_remote_ops): Install remote_program_signals.
5945 * target.c (update_current_target): Adjust.
5946 (target_program_signals): New.
5947 * target.h (struct target_ops) <to_program_signals>: New field.
5948 (target_program_signals): Declare.
5950 2012-03-07 Pedro Alves <palves@redhat.com>
5952 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
5955 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
5957 * m68klinux-nat.c (getregs_supplies): Make static.
5958 (getfpregs_supplies): Likewise.
5959 (have_ptrace_getregs): Likewise.
5961 2012-03-06 Joel Brobecker <brobecker@adacore.com>
5963 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
5964 in call to get_die_type_at_offset.
5966 2012-03-06 Stan Shebs <stan@codesourcery.com>
5968 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
5969 * mi/mi-cmd-disas.c: Ditto.
5970 * mi/mi-cmd-env.c: Ditto.
5971 * mi/mi-cmd-file.c: Ditto.
5972 * mi/mi-cmd-stack.c: Ditto.
5973 * mi/mi-cmd-target.c: Ditto.
5974 * mi/mi-cmd-var.c: Ditto.
5975 * mi/mi-cmds.c: Ditto.
5976 * mi/mi-cmds.h: Ditto.
5977 * mi/mi-console.c: Ditto.
5978 * mi/mi-getopt.c: Ditto.
5979 * mi/mi-getopt.h: Ditto.
5980 * mi/mi-interp.c: Ditto.
5981 * mi/mi-main.c: Ditto.
5982 * mi/mi-out.c: Ditto.
5983 * mi/mi-parse.c: Ditto.
5984 * mi/mi-parse.h: Ditto.
5985 * mi/mi-symbol-cmds.c: Ditto.
5987 * mi/mi-getopt.h: Move mi_opt struct up.
5988 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
5990 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
5992 2012-03-06 Tom Tromey <tromey@redhat.com>
5994 * proc-service.c (ps_pglobal_lookup): Set the current program
5997 2012-03-06 Pedro Alves <palves@redhat.com>
5999 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6001 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6003 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6005 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6008 * common/linux-osdata.c (linux_common_core_of_thread): New function
6010 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6011 call by linux_common_core_of_thread.
6012 (linux_nat_core_of_thread_1): Remove.
6013 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6014 * linux-thread-db.c: Include linux-osdata.h.
6015 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6016 linux_common_core_of_thread.
6018 2012-03-05 Tom Tromey <tromey@redhat.com>
6020 * value.c (value_primitive_field): Don't fetch contents for
6023 2012-03-05 Tom Tromey <tromey@redhat.com>
6025 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6027 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6029 * s390-nat.c: Include "gregset.h".
6031 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6033 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6034 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6035 (libunwind_load): New variable so_error, use it for dlerror. Try to
6036 load also LIBUNWIND_SO_7.
6038 2012-03-05 Pedro Alves <palves@redhat.com>
6040 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6041 is not NULL, and remove resulting dead code.
6043 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6045 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6046 prologue to sh_analyze_prologue.
6047 (sh_analyze_prologue): Make better use of such an upper limit, and
6048 generally be more cautious about accessing memory.
6050 2012-03-05 Tom Tromey <tromey@redhat.com>
6052 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6053 _initialize_ia64_hpux_tdep.
6055 2012-03-05 Pedro Alves <palves@redhat.com>
6059 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6060 the register state is clear, supply explicit zero, instead of
6061 marking the register unavailable.
6063 2012-03-05 Tristan Gingold <gingold@adacore.com>
6065 * NEWS: Mention OpenVMS ia64 new target.
6067 2012-03-05 Tristan Gingold <gingold@adacore.com>
6069 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6070 (ia64_unw_accessors, ia64_unw_rse_accessors)
6071 (ia64_libunwind_descr): Declare.
6072 * ia64-vms-tdep.c: New file.
6073 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6074 (ia64_libunwind_descr): Make them public.
6075 * configure.tgt: Add ia64-*-*vms*.
6076 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6077 (ALLDEPFILES): Add ia64-vms-tdep.c
6079 2012-03-05 Tristan Gingold <gingold@adacore.com>
6081 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6082 * remote.c (PACKET_qXfer_uib): New enum value.
6083 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6084 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6085 (_initialize_remote): Call add_packet_config_cmd for
6088 2012-03-05 Tristan Gingold <gingold@adacore.com>
6090 * osabi.c (gdb_osabi_names): Add OpenVMS.
6091 (generic_elf_osabi_sniffer): Likewise.
6092 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6094 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6096 Removed unused code.
6097 * libunwind-frame.c (libunwind_frame_unwind)
6098 (libunwind_frame_base_address): Remove.
6099 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6101 2012-03-04 Yao Qi <yao@codesourcery.com>
6103 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6104 remove trailing new line.
6105 (agent_run_command, agent_run_command): Add _ markup.
6106 (agent_capability_check): Likewise.
6108 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6110 * breakpoint.c (set_condition_evaluation_mode): Set
6111 CONDITION_EVALUATION_MODE unconditionally.
6113 2012-03-03 Yao Qi <yao@codesourcery.com>
6115 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6116 * common/agent.h: Update declaration.
6117 * inf-child.c (inf_child_use_agent): New.
6118 (inf_child_can_use_agent): New.
6119 (inf_child_target): Initialize fields `to_use_agent'
6120 and `to_can_use_agent'.
6121 * agent.c (agent_new_objfile): New.
6122 (_initialize_agent): Add agent_new_objfile to new_objfile
6125 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6127 (linux_target_install_ops): Initialize field
6128 `to_static_tracepoint_markers_by_strid'.
6129 * remote.c (free_current_marker): Move it to ...
6130 * tracepoint.c (free_current_marker): ... here. New.
6131 (cleanup_target_stop): New.
6132 * tracepoint.h: Declare free_current_marker.
6133 * NEWS: Add one entry about `info static-tracepoint-marker'.
6135 2012-03-03 Yao Qi <yao@codesourcery.com>
6137 * common/agent.c (agent_loaded_p): New.
6138 (agent_look_up_symbols): New global.
6139 * common/agent.h: Declare agent_loaded_p.
6141 2012-03-03 Yao Qi <yao@codesourcery.com>
6143 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6144 (agent_capability_check, agent_capability_invalidate): New.
6145 (symbol_list): New array element.
6146 * common/agent.h (enum agent_capa): New.
6147 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6149 2012-03-03 Yao Qi <yao@codesourcery.com>
6151 * target.h (struct target_ops) <to_use_agent>: New field.
6152 (struct target_ops) <to_can_use_agent>: New field.
6153 (target_use_agent, target_can_use_agent): New macro.
6154 * target.c (update_current_target): Update.
6155 * remote.c: New enum `PACKET_QAgent'.
6156 (remote_protocol_features): Add a new element.
6157 (remote_use_agent, remote_can_use_agent): New.
6158 (init_remote_ops): Initialize field `can_use_agent' with
6159 remote_can_use_agent. Intiailize field `use_agent' with
6161 * common/agent.c (use_agent): New global.
6162 * common/agent.h: Declare it.
6163 * tracepoint.c (info_static_tracepoint_markers_command): Add
6165 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6166 (COMMON_OBS): Add common/agent.o and agent.o
6167 (common-agent.o): New rule.
6170 2012-03-03 Yao Qi <yao@codesourcery.com>
6172 * common/agent.c: New.
6173 * common/agent.h: New.
6174 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6176 * configure, configh.in: Regenerated.
6178 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6180 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6181 unless it exists for this architecture.
6183 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6185 * language.h (struct language_defn): New "method" la_read_var_value.
6186 * findvar.c: #include "language.h".
6187 (default_read_var_value): Renames read_var_value. Rewrite
6188 function description.
6189 (read_var_value): New function.
6190 * value.h (default_read_var_value): Add prototype.
6191 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6193 (ada_language_defn): Add entry for la_read_var_value.
6194 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6195 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6196 language_defn structures to add entry for new la_read_var_value
6199 2012-03-02 Tom Tromey <tromey@redhat.com>
6200 Pedro Alves <palves@redhat.com>
6202 PR breakpoints/13776:
6203 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6205 (delete_longjmp_breakpoint_at_next_stop): New.
6206 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6207 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6208 before deleting the inferior. Add comments.
6209 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6210 breakpoints immediately, but only on next stop. Move that code
6211 next to where we mark other breakpoints for deletion.
6213 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6215 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6217 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6220 2012-03-02 Pedro Alves <palves@redhat.com>
6222 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6224 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6226 Fix -Wmissing-prototypes build.
6227 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6228 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6229 (gdbsim_has_memory): Likewise.
6231 2012-03-02 Yao Qi <yao@codesourcery.com>
6233 Fix -Wmissing-prototypes build.
6234 * charset.c (phony_iconv_open): Make static.
6235 (phony_iconv_close, phony_iconv): Likewise.
6236 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6237 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6239 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6240 * ser-mingw.c (create_select_thread): Make static.
6241 * windows-termcap.c (tgetent): New prototype.
6242 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6244 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6246 Fix -Wmissing-prototypes build.
6247 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6248 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6249 (_initialize_loadable): New prototypes.
6251 2012-03-02 Doug Evans <dje@google.com>
6253 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6254 abbrev table, read_comp_unit will do it.
6256 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6258 Fix -Wmissing-prototypes build.
6259 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6260 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6261 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6262 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6263 (_initialize_arm_symbian_tdep): New prototype.
6264 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6265 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6266 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6268 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6269 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6271 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6272 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6273 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6275 * moxie-tdep.c (moxie_process_record): Likewise.
6276 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6277 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6278 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6279 (_initialize_rl78_tdep): New prototype.
6280 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6281 (_initialize_rx_tdep): New prototype.
6282 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6283 (_initialize_darwin_solib): New prototype.
6284 * solib-spu.c: Include solib-spu.h.
6285 (_initialize_spu_solib): New prototype.
6286 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6287 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6288 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6289 (tic6x_software_single_step): Make it static.
6290 (_initialize_tic6x_tdep): New prototype.
6292 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6294 Fix -Wmissing-prototypes build.
6295 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6296 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6298 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6300 Fix -Wmissing-prototypes build.
6301 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6302 (frv_have_stopped_data_address): Remove.
6304 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6306 Fix -Wmissing-prototypes build.
6307 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6308 * sh-tdep.c: Include sh64-tdep.h.
6309 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6310 * sh64-tdep.c: Include sh64-tdep.h.
6311 * sh64-tdep.h: New file.
6313 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6315 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6317 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6319 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6320 sp_regnum once the gdbarch_init_osabi hook has been called.
6322 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6324 * mips-tdep.c (mips32_bc1_pc): New function.
6325 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6326 BPOSGE32 and BPOSGE64 instructions.
6327 (deal_with_atomic_sequence): Likewise.
6328 (mips32_instruction_has_delay_slot): Likewise.
6330 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6331 Chris Dearman <chris@mips.com>
6332 Maciej W. Rozycki <macro@codesourcery.com>
6333 Joseph Myers <joseph@codesourcery.com>
6335 * features/mips-dsp.xml: New file.
6336 * features/mips64-dsp.xml: New file.
6337 * features/mips-dsp-linux.xml: New file.
6338 * features/mips64-dsp-linux.xml: New file.
6339 * features/Makefile (WHICH): Add mips-dsp-linux and
6341 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6342 * features/mips-dsp-linux.c: New file.
6343 * features/mips64-dsp-linux.c: New file.
6344 * regformats/mips-dsp-linux.dat: New file.
6345 * regformats/mips64-dsp-linux.dat: New file.
6346 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6348 (mips64_linux_register_addr): Likewise.
6349 (mips64_linux_regsets_fetch_registers): Likewise.
6350 (mips64_linux_regsets_store_registers): Likewise.
6351 (mips64_linux_fetch_registers): Update call to
6352 mips64_linux_regsets_fetch_registers.
6353 (mips64_linux_store_registers): Update call to
6354 mips64_linux_regsets_store_registers.
6355 (mips_linux_read_description): Probe for DSP registers.
6356 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6357 and initialize_tdesc_mips64_dsp_linux.
6358 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6359 Remove padding of no longer used embedded register slots.
6360 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6361 (MIPS_RESTART_REGNUM): Redefine enum value.
6362 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6364 (mips_tx39_reg_names): Likewise.
6365 (mips_linux_reg_names): New array of register names for Linux
6367 (mips_register_name): Check for a null pointer in
6368 mips_processor_reg_names and return an empty string.
6369 (mips_register_type): Exclude embedded registers for the IRIX
6371 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6372 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6374 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6375 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6376 (mips_gdbarch_init): Likewise. Initialize internal register
6377 indices for the Linux ABI. Use dynamic numbers to refer to
6378 registers, as applicable, while parsing the target description.
6379 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6381 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6383 * frame.h (read_frame_register_unsigned): Fix typo in function
6386 2012-03-01 Pedro Alves <palves@redhat.com>
6388 * jit-reader.in [!__cplusplus]
6389 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6391 2012-03-01 Pedro Alves <palves@redhat.com>
6393 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6394 * configure: Regenerate.
6396 2012-03-01 Pedro Alves <palves@redhat.com>
6398 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6399 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6400 (ftrace_command, strace_command): Make static.
6401 * d-lang.c (_initialize_d_language): Declare.
6402 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6403 * dwarf2loc.c (_initialize_dwarf2loc):
6404 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6405 * exec.c (exec_get_section_table): Make static.
6406 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6407 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6408 * inferior.c (remove_inferior_command, add_inferior_command)
6409 (clone_inferior_command): Make static.
6410 * linux-nat.c (linux_nat_thread_address_space)
6411 (linux_nat_core_of_thread): Make static.
6412 * linux-tdep.c (_initialize_linux_tdep): Declare.
6413 * objc-lang.c (_initialize_objc_lang): Declare.
6414 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6416 (_initialize_opencl_language): Declare.
6417 * record.c (_initialize_record): Declare.
6418 * remote.c (demand_private_info, remote_get_tib_address)
6419 (remote_supports_cond_tracepoints)
6420 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6422 * skip.c (_initialize_step_skip): Declare.
6423 * symtab.c (skip_prologue_using_lineinfo): Make static.
6424 * tracepoint.c (delete_trace_state_variable)
6425 (trace_variable_command, delete_trace_variable_command)
6426 (get_uploaded_tsv, find_matching_tracepoint_location)
6427 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6429 * value.c (pack_unsigned_long): Make static.
6430 * varobj.c (varobj_ensure_python_env): Make static.
6431 * windows-tdep.c (_initialize_windows_tdep): Declare.
6432 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6434 2012-03-01 Pedro Alves <palves@redhat.com>
6436 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6438 (linux_init_abi): Install it as has_shared_address_space gdbarch
6441 2012-03-01 Pedro Alves <palves@redhat.com>
6443 * observer.c (observer_test_first_notification_function)
6444 (observer_test_second_notification_function)
6445 (observer_test_third_notification_function): Add declarations.
6447 2012-03-01 Pedro Alves <palves@redhat.com>
6449 * common/signals.c (default_target_signal_to_host)
6450 (default_target_signal_from_host): Move ...
6451 * arch-utils.c: ... here.
6452 * arch-utils.h (default_target_signal_to_host)
6453 (default_target_signal_from_host): Declare.
6455 * common/signals.c (target_signal_from_command): Move ...
6456 * infrun.c: ... here.
6457 * inferior.h (target_signal_from_command): Declare.
6458 * target.h (target_signal_from_command)
6459 (default_target_signal_from_host, default_target_signal_to_host):
6460 Delete declarations.
6462 * common/signals.c (_initialize_signals): Delete.
6464 2012-03-01 Pedro Alves <palves@redhat.com>
6466 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6467 both __cplusplus and !__cplusplus.
6469 2012-03-01 Pedro Alves <palves@redhat.com>
6471 * psymtab.c (find_and_open_source): Delete declaration.
6472 * source.c (find_and_open_source): Move comment ...
6473 * source.h (find_and_open_source): ... to this new declaration.
6475 2012-03-01 Pedro Alves <palves@redhat.com>
6477 * inline-frame.c: Include inline-frame.h.
6479 2012-03-01 Pedro Alves <palves@redhat.com>
6481 * tui/tui-data.c (set_gen_win_origin): Delete.
6482 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6483 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6485 2012-03-01 Pedro Alves <palves@redhat.com>
6487 * remote.c (encode_actions): Delete declaration.
6488 * tracepoint.c (encode_actions): Make extern.
6489 * tracepoint.h (encode_actions): Declare.
6491 2012-03-01 Pedro Alves <palves@redhat.com>
6493 * python/py-breakpoint.c: Include python.h.
6494 * python/py-continueevent.c (create_continue_event_object): Make
6496 * python/py-lazy-string.c (stpy_get_type): Make static.
6497 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6499 * python/py-utils.c (unicode_to_target_python_string): Make
6501 * python/py-value.c: Include python.h.
6503 2012-03-01 Pedro Alves <palves@redhat.com>
6505 * inferior.c (delete_threads_of_inferior): Delete.
6507 2012-03-01 Pedro Alves <palves@redhat.com>
6509 Import fallback definitions from glibc.
6511 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6512 ps_prochandle): Forward declare.
6513 (ps_err_e): Use glibc's comments.
6514 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6515 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6516 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6517 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6518 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6519 (struct ps_prochandle): Adjust comment.
6521 2012-03-01 Pedro Alves <palves@redhat.com>
6523 * ada-lang.c (ada_modulus_from_name): Delete.
6524 * ada-lex.l (lexer_init): Make static.
6526 2012-03-01 Pedro Alves <palves@redhat.com>
6530 * frame.c (read_frame_register_unsigned): New.
6531 * frame.h (read_frame_register_unsigned): Declare.
6532 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6534 (print_i387_control_word): New parameter `control_p'. Handle it.
6535 (i387_print_float_info): Handle unavailable float registers.
6537 2012-03-01 Keith Seitz <keiths@redhat.com>
6539 * linespec.c (decode_line_2): Sort the list of methods
6540 alphabetically before presenting the user with a selection
6543 2012-03-01 Doug Evans <dje@google.com>
6545 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6547 (dwarf2_read_abbrevs): Remove corresponding initialization.
6549 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
6551 * NEWS: Mention new python command class gdb.COMMAND_USER.
6552 * cli/cli-cmds.c (show_user): Print error when used on a python
6554 (init_cli_cmds): Update documentation strings for "show user" and
6555 "set/show max-user-call-depth" to clarify that it does not apply to
6557 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6559 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6561 * top.c (execute_command): Only execute a user-defined command as a
6562 legacy macro if c->user_commands is set.
6564 2012-03-01 Tom Tromey <tromey@redhat.com>
6566 * valprint.h (struct generic_val_print_decorations): New.
6567 (generic_val_print): Declare.
6568 * valprint.c (generic_val_print): New function.
6569 * p-valprint.c (p_decorations): New global.
6570 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6571 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6572 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6573 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6574 * m2-valprint.c (m2_decorations): New global.
6575 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6576 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6577 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6578 TYPE_CODE_ERROR>: Call generic_val_print.
6579 * f-valprint.c (f_decorations): New global.
6580 (f_val_print): Use print_function_pointer_address.
6581 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6582 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6583 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6585 * c-valprint.c (c_decorations): New global.
6586 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6587 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6588 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6589 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6590 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6591 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6594 2012-03-01 Tom Tromey <tromey@redhat.com>
6596 * valprint.c (val_print): Update.
6597 * p-valprint (pascal_val_print): Return void.
6598 * p-lang.h (pascal_val_print): Return void.
6599 * m2-valprint.c (m2_val_print): Return void.
6600 * m2-lang.h (m2_val_print): Return void.
6601 * language.h (struct language_defn) <la_val_print>: Return void.
6602 * language.c (unk_lang_val_print): Return void.
6603 * jv-valprint.c (java_val_print): Return void.
6604 * jv-lang.h (java_val_print): Return void.
6605 * f-valprint.c (f_val_print): Return void.
6606 * f-lang.h (f_val_print): Return void.
6607 * d-valprint.c (d_val_print): Return void.
6608 (dynamic_array_type): Update.
6609 * d-lang.h (d_val_print): Return void.
6610 * c-valprint.c (c_val_print): Return void.
6611 * c-lang.h (c_val_print): Return void.
6612 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6614 * ada-lang.h (ada_val_print): Return void.
6616 2012-03-01 Tom Tromey <tromey@redhat.com>
6618 * value.h (val_print): Return void.
6619 * valprint.c (val_print): Return void.
6621 2012-03-01 Tom Tromey <tromey@redhat.com>
6623 * value.h (common_val_print): Return void.
6624 * valprint.c (common_val_print): Return void.
6626 2012-03-01 Tom Tromey <tromey@redhat.com>
6628 * value.h (value_print): Return void.
6629 * valprint.c (value_print): Return void.
6630 * p-valprint.c (pascal_value_print): Return void.
6631 * p-lang.h (pascal_value_print): Return void.
6632 * language.h (struct language_defn) <la_value_print>: Return
6634 * language.c (unk_lang_value_print): Return void.
6635 * jv-valprint.c (java_value_print): Return void.
6636 * jv-lang.h (java_value_print): Return void.
6637 * f-valprint.c (c_value_print): Don't declare.
6639 * c-valprint.c (c_value_print): Return void.
6640 * c-lang.h (c_value_print): Return void.
6641 * ada-valprint.c (ada_value_print): Return void.
6642 * ada-lang.h (ada_value_print): Return void.
6644 2012-03-01 Tom Tromey <tromey@redhat.com>
6646 * value.c (value_primitive_field): Handle virtual base classes.
6648 2012-03-01 Tom Tromey <tromey@redhat.com>
6650 * gdbtypes.h (struct vbase): Remove.
6652 2012-03-01 Tom Tromey <tromey@redhat.com>
6654 * c-valprint.c (print_function_pointer_address): Move...
6655 * valprint.c: ... here. Make non-static.
6656 * m2-valprint.c (print_function_pointer_address): Remove.
6657 * valprint.h (print_function_pointer_address): Declare.
6659 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6661 * NEWS: Document the fact that one can provide a condition when
6662 creating an Ada exception catchpoint.
6664 2012-03-01 Tom Tromey <tromey@redhat.com>
6666 * valprint.c (val_print_type_code_flags): Fix placement of
6669 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6671 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6672 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6673 environment variable before calling update-copyright.
6675 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6677 * gnulib/extra/update-copyright: Update to the latest from
6678 gnulib's git repository.
6679 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6680 variable to 2 instead of 1.
6682 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6684 * varobj.c (c_value_of_variable): Remove dead code.
6686 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6688 * ada-lex.p (processId): Do not modify already encoded IDs.
6689 Update function documentation.
6691 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6693 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6694 "name" with "struct symbol *name_sym".
6695 * ada-exp.y (write_var_or_type): Update call to
6696 ada_find_renaming_symbol.
6697 "name" with "struct symbol *name_sym". Adjust Implementation
6698 accordingly. Adjust the function documentation.
6700 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6702 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6703 * ada-lang.c (ada_find_any_type): Add advance declaration.
6704 Make static. Replace ada_find_any_symbol by
6705 ada_find_any_type_symbol.
6706 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
6707 Improve function description. Make static.
6708 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
6709 Replace ada_find_any_symbol by ada_find_any_type_symbol.
6711 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6713 * ada-lang.c (struct tag_args): Delete.
6714 (ada_get_tsd_type): Function body moved up in source file.
6715 (ada_tag_name_1, ada_tag_name_2): Delete.
6716 (ada_get_tsd_from_tag): New function.
6717 (ada_tag_name_from_tsd): New function.
6718 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
6719 to determine the tag name.
6721 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6723 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
6725 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
6728 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6730 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
6732 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6734 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
6737 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6739 * ada-lang.c (constrained_packed_array_type): If there is a
6740 parallel XA type, use it to determine the array index type.
6742 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6744 * ada-valprint.c (ada_val_print_1): If our value is a reference
6745 to an array descriptor, dereference it before converting it
6748 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6750 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
6751 creating fixed value.
6752 (ada_value_ind, ada_coerce_ref, assign_component)
6753 (ada_evaluate_subexp): Remove call to unwrap_value before
6754 call to ada_to_fixed_value.
6756 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6758 * ada-lang.c (to_fixed_array_type): Set result's type name.
6760 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6762 * ada-lang.c (catch_ada_exception_command_split): Add new
6763 argument cond_string. Add support for condition at end of
6764 "catch exception" commands.
6765 (ada_decode_exception_location): Add new argument cond_string.
6766 Update call to catch_ada_exception_command_split.
6767 (create_ada_exception_catchpoint): Add new argument cond_string.
6768 Set the breakpoint condition if needed.
6769 (catch_ada_exception_command): Update call to
6770 ada_decode_exception_location.
6771 (ada_decode_assert_location): Add function documentation.
6772 Add support for condition at end of "catch assert" command.
6773 (catch_assert_command): Update calls to ada_decode_assert_location
6774 and create_ada_exception_catchpoint.
6776 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6778 Fix disp-step-syscall.exp: fork: single step over fork.
6779 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
6780 (i386_linux_get_syscall_number_from_regcache): ... here, new function
6781 comment, change parameters gdbarch and ptid to regcache. Remove
6782 parameter regcache, initialize gdbarch from regcache here.
6783 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
6785 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
6787 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
6788 'syscall'. Make the 'int' check more strict.
6790 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6792 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
6793 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
6794 (i386_linux_intx80_sysenter_syscall_record): ... here.
6795 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
6796 Use the renamed function name.
6798 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
6800 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
6801 * breakpoint.c (until_break_command): Likewise.
6802 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6803 * infcall.c (call_function_by_hand): Likewise.
6804 * infcmd.c (finish_forward): Likewise.
6805 * infrun.c (insert_exception_resume_breakpoint): Likewise.
6807 2012-02-28 Tristan Gingold <gingold@adacore.com>
6809 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
6810 avoid variable assignments inside condition.
6812 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6814 Fix static analysis issue found by cppcheck.
6815 * microblaze-tdep.c (microblaze_extract_return_value): Fix
6816 uninitialized BUF for size 2.
6818 2012-02-27 Chris Dearman <chris@mips.com>
6819 Nathan Froyd <froydnj@codesourcery.com>
6820 Maciej W. Rozycki <macro@codesourcery.com>
6822 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
6823 (mips16_instruction_has_delay_slot): Likewise.
6824 (mips_segment_boundary): Likewise.
6825 (mips_adjust_breakpoint_address): Likewise.
6826 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
6828 2012-02-27 Maciej W. Rozycki <macro@mips.com>
6829 Maciej W. Rozycki <macro@codesourcery.com>
6831 * infrun.c (handle_inferior_event): Don't proceed through
6832 shared library trampolines if stepping at the machine
6835 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
6837 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
6840 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
6842 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
6843 (sh_stub_unwind_sniffer): New functions.
6844 (sh_stub_unwind): New variable.
6845 (sh_gdbarch_init): Wire everything.
6847 2012-02-27 Pedro Alves <palves@redhat.com>
6849 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
6850 (linux_nat_post_attach_wait): Adjust to use
6851 linux_proc_pid_is_stopped.
6852 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
6853 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
6854 based on pid_is_stopped from both linux-nat.c and
6855 gdbserver/linux-low.c, and renamed.
6857 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6859 * remote.c (remote_watchpoint_addr_within_range): New function.
6860 (init_remote_ops): Use it.
6862 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6864 * target.h (target_watchpoint_addr_within_range): Document macro.
6866 2012-02-24 Pedro Alves <palves@redhat.com>
6868 * stack.c (set_last_displayed_sal): Issue internal_error instead
6869 of warning, and issue it after clearing the last displayed sal.
6871 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6872 Pedro Alves <palves@redhat.com>
6874 * breakpoint.c (until_break_command): Install breakpoints after
6875 all frame manipulations.
6877 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
6879 * remote.c (remote_supports_cond_breakpoints): New forward
6881 (remote_add_target_side_condition): New function.
6882 (remote_insert_breakpoint): Add target-side breakpoint
6883 conditional if supported.
6884 (remote_insert_hw_breakpoint): Likewise.
6885 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
6888 * target.c (update_current_target): Inherit
6889 to_supports_evaluation_of_breakpoint_conditions.
6890 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
6892 * target.h (struct target_ops)
6893 <to_supports_evaluation_of_breakpoint_conditions>: New field.
6894 (target_supports_evaluation_of_breakpoint_conditions): New #define.
6896 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
6897 (condition_evaluation_both, condition_evaluation_auto,
6898 condition_evaluation_host, condition_evaluation_target,
6899 condition_evaluation_enums, condition_evaluation_mode_1,
6900 condition_evaluation_mode): New static globals.
6901 (translate_condition_evaluation_mode): New function.
6902 (breakpoint_condition_evaluation_mode): New function.
6903 (gdb_evaluates_breakpoint_condition_p): New function.
6904 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
6905 (mark_breakpoint_modified): New function.
6906 (mark_breakpoint_location_modified): New function.
6907 (set_condition_evaluation_mode): New function.
6908 (show_condition_evaluation_mode): New function.
6909 (bp_location_compare_addrs): New function.
6910 (get_first_location_gte_addr): New helper function.
6911 (set_breakpoint_condition): Free condition bytecode if locations
6912 has become unconditional. Call mark_breakpoint_modified (...).
6913 (condition_command): Call update_global_location_list (1) for
6915 (breakpoint_xfer_memory): Use is_breakpoint (...).
6916 (is_breakpoint): New function.
6917 (parse_cond_to_aexpr): New function.
6918 (build_target_condition_list): New function.
6919 (insert_bp_location): Handle target-side conditional
6920 breakpoints and call build_target_condition_list (...).
6921 (update_inserted_breakpoint_locations): New function.
6922 (insert_breakpoint_locations): Handle target-side conditional
6924 (bpstat_check_breakpoint_conditions): Add comment.
6925 (bp_condition_evaluator): New function.
6926 (bp_location_condition_evaluator): New function.
6927 (print_breakpoint_location): Print information on where the condition
6929 (print_one_breakpoint_location): Likewise.
6930 (init_bp_location): Call mark_breakpoint_location_modified (...) for
6931 breakpoint location.
6932 (force_breakpoint_reinsertion): New functions.
6933 (update_global_location_list): Handle target-side breakpoint
6935 Reinsert locations that are already inserted if conditions have
6937 (bp_location_dtor): Free agent expression bytecode.
6938 (disable_breakpoint): Call mark_breakpoint_modified (...).
6939 Call update_global_location_list (...) with parameter 1 for breakpoints.
6940 (disable_command): Call mark_breakpoint_location_modified (...).
6941 Call update_global_location_list (...) with parameter 1 for breakpoints.
6942 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
6943 (enable_command): mark_breakpoint_location_modified (...).
6944 (_initialize_breakpoint): Update documentation and add
6945 condition-evaluation breakpoint subcommand.
6947 * breakpoint.h: Include ax.h.
6948 (condition_list): New data structure.
6949 (condition_status): New enum.
6950 (bp_target_info) <cond_list>: New field.
6951 (bp_location) <condition_changed, cond_bytecode>: New fields.
6952 (is_breakpoint): New prototype.
6954 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
6956 * remote.c (remote_state) <cond_breakpoints>: New field.
6957 (PACKET_ConditionalBreakpoints): New enum.
6958 (remote_cond_breakpoint_feature): New function.
6959 (remote_protocol_features): Add new ConditionalBreakpoints entry.
6960 (remote_supports_cond_breakpoints): New function.
6961 (_initialize_remote): Add new packet configuration for
6962 target-side conditional breakpoints.
6964 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
6966 * NEWS: Mention target-side conditional breakpoint support,
6967 new condition-evaluation breakpoint subcommand and remote
6970 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
6972 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
6975 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
6977 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
6978 (after_prologue): Remove.
6980 2012-02-23 Tom Tromey <tromey@redhat.com>
6982 * jv-valprint.c (java_val_print): Remove dead code.
6984 2012-02-23 Tristan Gingold <gingold@adacore.com>
6986 * ada-tasks.c (struct ada_tasks_inferior_data): Add
6987 known_tasks_element and known_tasks_length fields.
6988 (read_known_tasks_array): Change argument type. Use pointer type
6989 and number of elements from DATA. Adjust.
6990 (read_known_tasks_list): Likewise.
6991 (get_known_tasks_addr): Remove.
6992 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
6993 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
6994 type and array length. Merge former get_known_tasks_addr code.
6996 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6999 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7000 it after set_momentary_breakpoint.
7002 2012-02-22 Sterling Augustine <saugustine@google.com>
7005 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7007 2012-02-22 Gary Benson <gbenson@redhat.com>
7009 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7010 (find_slot_in_mapped_hash): Likewise.
7012 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7015 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7016 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7017 * configure: Regenerate.
7019 2012-02-21 Tristan Gingold <gingold@adacore.com>
7020 Pedro Alves <palves@redhat.com>
7022 * ia64-tdep.c: Do not include libunwind-ia64.h.
7023 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7024 Include libunwind-ia64.h instead of libunwind.h.
7025 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7026 for libunwind.h existence.
7027 * configure, config.in: Regenerate.
7029 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7031 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7032 instead of value_rtti_target_type.
7033 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7034 instead of value_rtti_target_type.
7035 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7036 value_rtti_target_type.
7037 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7038 (value_rtti_target_type): Rename to ...
7039 (value_rtti_indirect_type): ... here and make it indirect. Update
7041 * value.c (readjust_indirect_value_type): New function.
7042 (coerce_ref): Support for enclosing type setting for references
7043 with readjust_indirect_value_type.
7044 * value.h (readjust_value_type): New declaration.
7045 (value_rtti_target_type): Rename to ...
7046 (value_rtti_indirect_type): ... here.
7048 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7050 * MAINTAINERS (Write After Approval): Add myself to the list.
7052 2012-02-20 Doug Evans <dje@google.com>
7054 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7055 Rename objfile_p_char parameter to objfilep.
7056 (build_objfile_section_table): Result is now void. All callers
7058 * objfiles.h (struct objfile): Tweak comments, whitespace.
7059 (build_objfile_section_table): Update.
7061 * elfread.c (elf_symfile_segments): Fix warning text.
7063 2012-02-20 Tom Tromey <tromey@redhat.com>
7066 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7067 particular set of file names once.
7068 (dw2_map_symbol_filenames): Likewise.
7070 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7073 * main.c (write_files): Remove the declaration.
7074 (external_editor_command): Move the declaration ...
7075 [GDBTK] (external_editor_command): ... here. Fix the comment.
7077 2012-02-20 Tom Tromey <tromey@redhat.com>
7079 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7082 2012-02-20 Tristan Gingold <gingold@adacore.com>
7084 * darwin-nat.h (enum darwin_msg_state): Add comments.
7086 2012-02-20 Tristan Gingold <gingold@adacore.com>
7088 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7091 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7093 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7094 between function description and implementation.
7096 2012-02-17 Tom Tromey <tromey@redhat.com>
7099 * python/py-event.c (event_object_getset): New global.
7100 (event_object_type): Reference it.
7101 * python/py-type.c (field_object_getset): New global.
7102 (field_object_type): Reference it.
7103 * python/python-internal.h (gdb_py_generic_dict): Declare.
7104 * python/py-utils.c (gdb_py_generic_dict): New function.
7106 2012-02-17 Tristan Gingold <gingold@adacore.com>
7108 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7110 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7112 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7113 TYPE_CALLING_CONVENTION annotation.
7115 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7117 * MAINTAINERS: Add rx to target ISA section.
7118 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7119 (ALLDEPFILES): Add rx-tdep.c.
7121 2012-02-16 Tom Tromey <tromey@redhat.com>
7123 * symfile.c (symbol_file_add_main_1): Use inferior's
7125 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7126 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7128 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7130 (follow_exec): Use inferior's symfile_flags.
7131 * inferior.h (struct inferior) <symfile_flags>: New field.
7133 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7136 * remote-sim.c (gdbsim_create_inferior): Call error() when
7137 sim_create_inferior() fails.
7139 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7141 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7143 2012-02-16 Tom Tromey <tromey@redhat.com>
7146 * thread.c (struct current_thread_cleanup) <was_removable>: New
7148 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7149 (make_cleanup_restore_current_thread): Initialize new field.
7151 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7153 * MAINTAINERS: Add rl78 to target ISA section.
7154 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7155 (ALLDEPFILES): Add rl78-tdep.c.
7156 * NEWS: Mention rl78 as a new target.
7158 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7160 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7162 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7164 2012-02-15 Tom Tromey <tromey@redhat.com>
7167 * infcmd.c (registers_info): Print just the current register's
7170 2012-02-15 Tom Tromey <tromey@redhat.com>
7172 * python/py-symbol.c (sympy_value): Use _().
7174 2012-02-15 Pedro Alves <palves@redhat.com>
7176 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7177 output to be like native targets'.
7178 (remote_pid_to_str): Special case the null ptid.
7180 2012-02-14 Stan Shebs <stan@codesourcery.com>
7182 * NEWS: Mention enable count command.
7183 * breakpoint.h (struct breakpoint): New field enable_count.
7184 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7185 (enable_breakpoint): Add arg to call.
7186 (struct disp_data): New struct.
7187 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7188 (do_map_enable_once_breakpoint): Create a struct and pass it.
7189 (do_map_enable_delete_breakpoint): Ditto.
7190 (do_map_enable_count_breakpoint): New function.
7191 (enable_count_command): New function.
7192 (bpstat_stop_status): Decrement enable_count.
7193 (print_one_breakpoint_location): Report enable count.
7194 (_initialize_breakpoint): Add enable count command.
7196 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7198 * rl78-tdep.c (reggroups.h): Include.
7199 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7200 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7201 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7202 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7203 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7204 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7205 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7206 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7207 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7208 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7209 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7210 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7211 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7212 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7213 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7214 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7215 beginning of register list.
7216 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7217 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7218 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7219 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7220 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7221 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7222 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7223 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7224 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7225 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7226 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7227 the pseudo registers. Rearrange other pseudo registers too so
7228 that the bank registers appear at the end.
7229 (rl78_register_type): Account for the fact that the byte sized
7230 bank registers are now pseudo-registers.
7231 (rl78_register_name): Rearrange the register name array. Make
7232 initial set of raw banked registers inaccessible.
7233 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7234 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7235 case for copying bytes back and forth between raw and pseudo
7236 versions of the banked registers. Update other cases to reflect
7238 (rl78_return_value): Update to account for changed names of
7240 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7241 rl78_register_sim_regno().
7243 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7245 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7246 the name parameter being passed to find_pc_partial_function().
7248 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7250 * MAINTAINERS: Step down from being ia64 target maintainer.
7252 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7254 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7255 compilation warning.
7257 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7259 Fix crash on loaded shlibs without loaded exec_bfd.
7260 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7261 (set_section_command): Replace exec_bfd by p->bfd.
7263 2012-02-10 Tom Tromey <tromey@redhat.com>
7265 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7266 when we have a C++ qualified name.
7268 2012-02-10 Pedro Alves <palves@redhat.com>
7270 * inferior.c (inferior_pid_to_str): New.
7271 (print_inferior, inferior_command): Use it.
7273 2012-02-10 Pedro Alves <palves@redhat.com>
7275 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7277 * configure: Regenerate.
7279 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7281 * linespec.c (decode_line_internal): Fix comment correctness.
7283 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7286 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7287 * amd64bsd-nat.c: Add support for debug registers (adapted from
7289 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7290 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7291 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7292 (amd64bsd_dr_get_control): New functions.
7293 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7294 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7295 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7296 watchpoints initialization.
7297 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7299 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7301 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7303 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7305 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7307 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7309 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7311 * language.h (symbol_name_cmp_ftype): Renames
7312 symbol_name_match_p_ftype.
7313 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7314 la_get_symbol_name_match_p.
7315 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7316 ada_get_symbol_name_match_p. Update comment.
7317 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7318 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7319 Renames symbol_name_match_p. Update field type.
7320 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7321 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7322 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7323 "la_get_symbol_name_cmp" in comments.
7324 * language.c: Likewise.
7326 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7328 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7330 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7331 (amd64_sol2_gregset32_reg_offs): Likewise.
7333 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7335 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7336 of the returned BFD is allocated by GDB.
7338 2012-02-07 Tom Tromey <tromey@redhat.com>
7341 * python/python-internal.h (frame_object_type): Declare.
7342 * python/py-symbol.c (sympy_needs_frame): New function.
7343 (sympy_value): New function.
7344 (symbol_object_getset): Add "needs_frame".
7345 (symbol_object_methods): Add "value".
7346 * python/py-frame.c (frame_object_type): No longer static.
7348 2012-02-07 Tom Tromey <tromey@redhat.com>
7351 * python/py-symbol.c (sympy_line): New function.
7352 (symbol_object_getset): Add "line".
7354 2012-02-07 Tom Tromey <tromey@redhat.com>
7356 * charset.c (find_charset_names): Check 'in' against NULL.
7358 2012-02-06 Doug Evans <dje@google.com>
7360 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7361 and fields.name members from char * to const char *. All uses updated.
7362 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7363 from char * to const char *. All uses updated.
7364 (type_name_no_tag): Update.
7365 (lookup_unsigned_typename, lookup_signed_typename): Update.
7366 * gdbtypes.c (type_name_no_tag): Change result type
7367 from char * to const char *. All callers updated.
7368 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7369 name parameter from char * to const char *.
7370 * symtab.h (struct cplus_specific): Change type of demangled_name
7371 member from char * to const char *. All uses updated.
7372 (struct general_symbol_info): Change type of name and
7373 mangled_lang.demangled_name members from char * to const char *.
7375 (symbol_get_demangled_name, symbol_natural_name): Update.
7376 (symbol_demangled_name, symbol_search_name): Update.
7377 * symtab.c (symbol_get_demangled_name): Change result type
7378 from char * to const char *. All callers updated.
7379 (symbol_natural_name, symbol_demangled_name): Ditto.
7380 (symbol_search_name): Ditto.
7381 (completion_list_add_name): Change type of symname,sym_text,
7382 text,word parameters from char * to const char *.
7383 (completion_list_objc_symbol): Change type of sym_text,
7384 text,word parameters from char * to const char *.
7385 * ada-lang.c (find_struct_field): Change type of name parameter
7386 from char * to const char *.
7387 (encoded_ordered_before): Similarly for N0,N1 parameters.
7388 (old_renaming_is_invisible): Similarly for function_name parameter.
7389 (ada_type_name): Change result type from char * to const char *.
7390 All callers updated.
7391 * ada-lang.h (ada_type_name): Update.
7392 * buildsym.c (hashname): Change type of name parameter
7393 from char * to const char *.
7394 * buildsym.h (hashname): Update.
7395 * dbxread.c (end_psymtab): Change type of include_list parameter
7396 from char ** to const char **.
7397 * dwarf2read.c (determine_prefix): Change result type
7398 from char * to const char *. All callers updated.
7399 * f-lang.c (find_common_for_function): Change type of name, funcname
7400 parameters from char * to const char *.
7401 * f-lang.c (find_common_for_function): Update.
7402 * f-valprint.c (list_all_visible_commons): Change type of funcname
7403 parameters from char * to const char *.
7404 * gdbarch.sh (static_transform_name): Change type of name parameter
7405 and result from char * to const char *.
7406 * gdbarch.c: Regenerate.
7407 * gdbarch.h: Regenerate.
7408 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7409 of name parameter from char * to const char *.
7410 * jv-lang.c (java_primitive_type_from_name): Ditto.
7411 (java_demangled_signature_length): Similarly for signature parameter.
7412 (java_demangled_signature_copy): Ditto.
7413 (java_demangle_type_signature): Ditto.
7414 * jv-lang.h (java_primitive_type_from_name): Update.
7415 (java_demangle_type_signature): Update.
7416 * objc-lang.c (specialcmp): Change type of a,b parameters
7417 from char * to const char *.
7418 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7419 from char * to const char *. All callers updated.
7420 * p-lang.h (is_pascal_string_type): Update.
7421 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7422 of name parameter from char * to const char *.
7423 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7424 * utils.c (fprintf_symbol_filtered): Ditto.
7425 * defs.h (fprintf_symbol_filtered): Update.
7426 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7427 * stabsread.h (end_psymtab): Update.
7428 * stack.c (find_frame_funname): Change type of funname parameter
7429 from char ** to const char **.
7430 * stack.h (find_frame_funname): Update.
7431 * typeprint.c (type_print): Change type of varstring parameter
7432 from char * to const char *.
7433 * value.h (type_print): Update.
7434 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7435 from char * to const char *. All callers updated.
7436 (xcoff_end_psymtab): Change type of include_list parameter
7437 from char ** to const char **. All callers updated.
7438 (swap_sym): Similarly for name parameter. All callers updated.
7439 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7441 (process_coff_symbol): Use xstrdup.
7442 * stabsread.c (stabs_method_name_from_physname): Renamed from
7443 update_method_name_from_physname. Change result type from void
7444 to char *. All callers updated.
7445 (read_member_functions): In has_destructor case, store name in objfile
7446 obstack instead of malloc space. In !has_stub case, fix mem leak.
7448 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7450 * configure: Rebuild.
7451 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7454 2012-02-03 Kevin Buettner <kevinb@redhat.com>
7456 * configure.tgt (rl78-*-elf): New target.
7457 * rl78-tdep.c: New file.
7459 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7461 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7462 and continue the loop. Add QUIT statement.
7464 2012-02-03 Tom Tromey <tromey@redhat.com>
7467 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7468 bfd_lookup_symbol_from_symtab.
7469 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7470 gdb_bfd_lookup_symbol_from_symtab.
7472 2012-02-03 Joel Brobecker <brobecker@adacore.com>
7474 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7475 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7476 symbol. Add assertion that sym2 is never NULL.
7478 2012-02-02 Doug Evans <dje@google.com>
7480 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7481 "name" parameter to const char ** from char **. All callers updated.
7482 (find_pc_partial_function): Ditto.
7483 (cache_pc_function_name): Change type to const char * from char *.
7484 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7485 (find_pc_partial_function): Update.
7486 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7487 type of "name" parameter to const char * from char *.
7489 * arch-utils.c (generic_in_solib_return_trampoline): Change
7490 type of "name" parameter to const char * from char *.
7491 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7492 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7493 type of "name" parameter to const char * from char *.
7494 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7495 * gdbarch.c: Regenerate.
7496 * gdbarch.h: Regenerate.
7497 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7498 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7499 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7500 type of "name" parameter to const char * from char *.
7501 * skip.c (skip_function_pc): Ditto.
7502 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7503 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7504 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7505 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7506 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7507 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7508 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7509 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7510 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7512 2012-02-02 Pedro Alves <palves@redhat.com>
7514 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7515 the current inferior has no execution. Make sure the current
7516 remote process matches gdb's current inferior.
7518 2012-02-02 Tom Tromey <tromey@redhat.com>
7521 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7524 2012-02-02 Tom Tromey <tromey@redhat.com>
7527 * symtab.c (lookup_language_this): Set block_found.
7529 2012-02-01 Tom Tromey <tromey@redhat.com>
7532 * jit.c (struct jit_inferior_data): Rewrite.
7533 (struct jit_objfile_data): New.
7534 (get_jit_objfile_data): New function.
7535 (add_objfile_entry): Update.
7536 (jit_read_descriptor): Return int. Replace descriptor_addr
7537 argument with inf_data. Update. Don't call error.
7538 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7540 (jit_inferior_init): Don't look up descriptor. Don't call error.
7541 (jit_reset_inferior_data_and_breakpoints)
7542 (jit_inferior_created_observer): Remove.
7543 (jit_inferior_exit_hook): Update.
7544 (jit_executable_changed_observer): Remove.
7545 (jit_event_handler): Update.
7546 (free_objfile_data): Reset inferior data if needed.
7547 (_initialize_jit): Update.
7549 2012-02-01 Tom Tromey <tromey@redhat.com>
7551 * jit.c (bfd_open_from_target_memory): Move higher in file.
7553 2012-02-01 Tristan Gingold <gingold@adacore.com>
7555 * libunwind-frame.c (libunwind_load): Display message if dlopen
7558 2012-02-01 Gary Benson <gbenson@redhat.com>
7560 * symtab.h (symbol_found_callback_ftype): New typedef.
7561 (iterate_over_symbols): Use the above.
7562 * symtab.c (iterate_over_symbols): Likewise.
7563 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7564 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7565 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7566 (iterate_name_matcher): Document return values.
7567 (collect_one_symbol): Likewise.
7568 (collect_function_symbols): Likewise.
7569 (collect_symbols): Likewise.
7571 2012-02-01 Tom Tromey <tromey@redhat.com>
7573 * ada-lang.c (resolve_subexp): Update.
7574 (ada_lookup_symbol_list): Add 'full_search' argument.
7575 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7576 ada_lookup_symbol_list.
7577 (ada_lookup_encoded_symbol): Update.
7578 (get_var_value): Update.
7579 * ada-exp.y (block_lookup): Update.
7580 (write_var_or_type): Update.
7581 (write_name_assoc): Update.
7582 * ada-lang.h (ada_lookup_symbol_list): Update.
7584 2012-01-31 Tom Tromey <tromey@redhat.com>
7586 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7589 2012-01-31 Doug Evans <dje@google.com>
7591 * symtab.h: Remove outdated comment.
7592 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7594 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
7596 Fix build error in Darwin port.
7597 * i386-darwin-nat.c: Include i386-nat.h.
7599 2012-01-30 Tom Tromey <tromey@redhat.com>
7601 PR breakpoints/13568:
7602 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7603 argument. Check for recursive includes.
7604 (dwarf_decode_macros): Create an include hash.
7606 2012-01-30 Michael Eager <eager@eagercon.com>
7608 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7609 * ppc-linux-tdep.c: Include glibc-tdep.h.
7610 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7611 (powerpc_linux_in_plt_stub): New function.
7612 (powerpc_linux_in_dynsym_resolve_code): New function.
7613 (ppc_skip_trampoline_code): New function.
7614 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7615 Use glibc_skip_solib_resolver.
7617 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7619 Code cleanup: Make 1440 bytes of data segment read-only.
7620 * arch-utils.c (endian_enum): Make it const char *const [].
7621 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7623 * breakpoint.c (always_inserted_enums): Likewise.
7624 * cli/cli-cmds.c (script_ext_enums): Likewise.
7625 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7626 enumlist parameter const char *const *.
7627 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7628 const char *const *.
7629 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7630 parameter const char *const *.
7631 * cris-tdep.c (cris_modes): Make it const char *const [].
7632 * filesystem.c (target_file_system_kinds): Likewise.
7633 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7634 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7635 (can_use_displaced_stepping_enum, scheduler_enums)
7636 (exec_direction_names): Likewise.
7637 * language.c (_initialize_language): Make the type_or_range_names and
7638 case_sensitive_names variables const char *const [].
7639 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7640 * python/python.c (python_excp_enums): Likewise.
7641 * remote.c (interrupt_sequence_modes): Likewise.
7642 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7643 * serial.c (logbase_enums): Likewise.
7644 * sh-tdep.c (sh_cc_enum): Likewise.
7645 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7647 * symtab.c (multiple_symbols_modes): Likewise.
7648 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7650 * utils.c (internal_problem_modes): Likewise.
7652 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7654 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7655 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7658 2012-01-27 Doug Evans <dje@google.com>
7660 * configure.ac (with_python): Fix absolute path handling for win32.
7661 * configure: Regenerate.
7663 2012-01-26 Doug Evans <dje@google.com>
7665 * symtab.c: Whitespace cleanup, no code changes.
7667 * symtab.c (lookup_symbol_in_language): Improve comment.
7668 (lookup_symbol_aux): Fix comment.
7670 * psymtab.c (add_psymbol_to_list): Result is now "void".
7671 * psympriv.h (add_psymbol_to_list): Update.
7673 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7675 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7677 Do not open script filenames twice.
7678 * cli/cli-cmds.c (source_script_from_stream): Pass to
7679 source_python_script also STREAM.
7680 * python/py-auto-load.c (source_section_scripts): Pass to
7681 source_python_script_for_objfile also STREAM.
7682 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7684 * python/python-internal.h (source_python_script_for_objfile): New
7685 parameter file, rename parameter file to filename.
7686 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7687 instead if !_WIN32. Update the function comment.
7688 (source_python_script, source_python_script_for_objfile)
7689 (source_python_script): New parameter file, rename parameter file to
7690 filename. Pass FILENAME to python_run_simple_file.
7691 * python/python.h (source_python_script): New parameter file, rename
7692 parameter file to filename.
7694 2012-01-26 Pedro Alves <palves@redhat.com>
7696 * corelow.c (core_has_fake_pid): Delete.
7697 (core_close): Delete references to `core_has_fake_pid'.
7698 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7699 (core_open): Delete references to `core_has_fake_pid'.
7700 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7703 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7705 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7706 Remove language parameter from name_matcher. Adjust the comment.
7707 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
7708 Remove language parameter.
7709 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
7710 * linespec.c (iterate_name_matcher): Likewise.
7711 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
7712 name_matcher. Adjust call accordingly.
7713 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
7714 (maintenance_check_symtabs): Adjust type of parameter "fun".
7715 * psymtab.h (maintenance_check_symtabs): Likewise.
7717 2012-01-26 Joel Brobecker <brobecker@adacore.com>
7719 * language.h (symbol_name_match_p_ftype): New typedef.
7720 (struct language_defn): Replace field la_symbol_name_compare
7721 by la_get_symbol_name_match_p.
7722 * ada-lang.c (ada_get_symbol_name_match_p): New function.
7723 (ada_language_defn): Use it.
7724 * linespec.c (struct symbol_matcher_data): New type.
7725 (iterate_name_matcher): Rewrite.
7726 (iterate_over_all_matching_symtabs): Pass a pointer to
7727 a symbol_matcher_data struct to expand_symtabs_matching
7728 instead of just the lookup name.
7729 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7730 opencl-lang.c, p-lang.c, language.c: Delete field
7731 la_symbol_name_compare, and replace by NULL for new field
7732 la_get_symbol_name_match_p.
7733 * symfile.h (struct quick_symbol_functions): Update comment.
7735 2012-01-25 Tom Tromey <tromey@redhat.com>
7737 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
7740 2012-01-24 Tom Tromey <tromey@redhat.com>
7743 * solib.c (update_solib_list): Update the program space's
7744 added_solibs and deleted_solibs fields.
7745 * progspace.h (struct program_space) <added_solibs,
7746 deleted_solibs>: New fields.
7747 (clear_program_space_solib_cache): Declare.
7748 * progspace.c (release_program_space): Call
7749 clear_program_space_solib_cache.
7750 (clear_program_space_solib_cache): New function.
7751 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
7752 bpstat_stop_status. Use handle_solib_event.
7753 * breakpoint.c: Include gdb_regex.h.
7754 (print_solib_event): New function.
7755 (bpstat_print): Use print_solib_event.
7756 (bpstat_stop_status): Add special case for bp_shlib_event.
7757 (handle_solib_event): New function.
7758 (bpstat_what): Use handle_solib_event.
7759 (struct solib_catchpoint): New.
7760 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
7761 (breakpoint_hit_catch_solib, check_status_catch_solib)
7762 (print_it_catch_solib, print_one_catch_solib)
7763 (print_mention_catch_solib, print_recreate_catch_solib): New
7765 (catch_solib_breakpoint_ops): New global.
7766 (catch_load_or_unload, catch_load_command_1)
7767 (catch_unload_command_1): New functions.
7768 (internal_bkpt_check_status): Add special case for
7770 (internal_bkpt_print_it): Use print_solib_event.
7771 (initialize_breakpoint_ops): Initialize
7772 catch_solib_breakpoint_ops.
7773 (_initialize_breakpoint): Register "catch load" and "catch
7775 * breakpoint.h (handle_solib_event): Declare.
7776 * NEWS: Add entry for "catch load" and "catch unload".
7778 2012-01-24 Tom Tromey <tromey@redhat.com>
7780 * ada-lang.c: Include gdb_vecs.h.
7781 * charset.c: Include gdb_vecs.h.
7782 * tracepoint.h: Include gdb_vecs.h.
7783 * gdb_vecs.h: New file.
7785 2012-01-24 Pedro Alves <pedro@codesourcery.com>
7787 * breakpoint.c (breakpoint_hit_catch_fork)
7788 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
7789 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
7790 * infrun.c (inferior_has_forked, inferior_has_vforked)
7791 (inferior_has_execd, inferior_has_called_syscall): Delete.
7792 (handle_syscall_event): Get syscall_number from the execution
7793 control state's wait status.
7794 (wait_for_inferior): Don't clear syscall_number.
7796 2012-01-24 Pedro Alves <palves@redhat.com>
7798 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
7799 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
7800 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
7801 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
7803 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
7804 false for events other than TARGET_SIGNAL_TRAP.
7805 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
7807 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
7808 events other than TARGET_SIGNAL_TRAP.
7809 (tracepoint_breakpoint_hit): Add `ws' parameter.
7810 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
7812 (bpstat_stop_status): Same.
7813 (pc_at_non_inline_function): Same.
7814 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
7815 to pass the current event's waitstatus to bpstat_stop_status
7816 and pc_at_non_inline_function.
7818 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7821 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
7822 Update the function comment for it.
7823 (source_script_with_search): Call make_cleanup_fclose for STREAM.
7824 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
7827 2012-01-24 Pedro Alves <palves@redhat.com>
7829 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
7830 outside `bs->stop' block.
7831 (bpstat_what): Rework bp_shlib_event handling.
7832 (internal_bkpt_check_status): If the breakpoint is a
7833 bp_shlib_event, then set bs->stop and bs->print if
7834 stop_on_solib_events is set.
7836 2012-01-24 Gary Benson <gbenson@redhat.com>
7838 Delete #if 0'd out code.
7839 * stack.c (print_frame_label_vars): Remove.
7840 (catch_info): Likewise.
7841 (_initialize_stack): Remove "info catch" command.
7842 * NEWS: Mention the above.
7844 2012-01-24 Pedro Alves <palves@redhat.com>
7846 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
7848 (remote_notice_new_inferior): If the remote end doesn't support
7849 the multiprocess extensions, then the PID is fake.
7850 (add_current_inferior_and_thread): New.
7851 (remote_start_remote): Use it.
7852 (extended_remote_attach_1): Adjust.
7853 (extended_remote_create_inferior_1): Use
7854 add_current_inferior_and_thread.
7856 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7858 Fix watchpoints to be specific for each inferior.
7859 * breakpoint.c (watchpoint_in_thread_scope): Verify also
7860 current_program_space.
7861 * i386-nat.c (i386_inferior_data_cleanup): New.
7862 (i386_inferior_data_get): Replace variable inf_data_local by an
7864 (i386_use_watchpoints): Initialize i386_inferior_data.
7865 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
7866 specific iterate_over_lwps.
7868 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7870 Fix watchpoints across inferior fork.
7871 * amd64-linux-nat.c (update_debug_registers_callback): Update the
7872 comment for linux_nat_iterate_watchpoint_lwps.
7873 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
7874 linux_nat_iterate_watchpoint_lwps.
7875 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
7876 * i386-linux-nat.c (update_debug_registers_callback): Update the
7877 comment for linux_nat_iterate_watchpoint_lwps.
7878 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
7879 linux_nat_iterate_watchpoint_lwps.
7880 (i386_linux_prepare_to_resume): New comment on Linux kernel.
7881 * i386-nat.c: Include inferior.h.
7882 (dr_mirror): Remove.
7883 (i386_inferior_data, struct i386_inferior_data)
7884 (i386_inferior_data_get): New.
7885 (i386_debug_reg_state): Use i386_inferior_data_get.
7886 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
7887 (i386_insert_watchpoint, i386_remove_watchpoint)
7888 (i386_stopped_data_address, i386_insert_hw_breakpoint)
7889 (i386_remove_hw_breakpoint): New variable state, use
7890 i386_debug_reg_state instead of DR_MIRROR.
7891 * linux-nat.c (delete_lwp): New declaration.
7892 (num_lwps): Move here from downwards.
7893 (delete_lwp_cleanup): New.
7894 (linux_child_follow_fork): Create new child_lp, call
7895 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
7897 (num_lwps): Move upwards.
7898 (linux_nat_iterate_watchpoint_lwps): New.
7899 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
7900 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
7902 2012-01-24 Joel Brobecker <brobecker@adacore.com>
7906 2012-01-23 Pedro Alves <palves@redhat.com>
7908 * top.c (caution): Rename to ...
7909 (confirm): ... this.
7910 (show_caution): Rename to ...
7911 (show_confirm): ... this.
7912 (quit_cover): Adjust.
7913 (init_main): Adjust.
7914 * top.h (caution): Rename to ...
7915 (confirm): ... this.
7916 * utils.c (internal_vproblem, defaulted_query): Adjust.
7918 2012-01-23 Pedro Alves <palves@redhat.com>
7920 * top.c (caution): Update comment.
7921 (execute_command): Don't consider the current value of `caution'.
7923 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7925 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
7927 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
7929 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
7930 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
7931 * target.c (target_fileio_pwrite): Remove buffer address from
7933 (target_fileio_pread): Likewise.
7935 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7937 * NEWS: Document remote "info proc" and "generate-core-file".
7939 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7941 * gdbarch.sh (find_memory_regions): New callback.
7942 * gdbarch.c, gdbarch.h: Regenerate.
7944 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
7945 callback before falling back to target method.
7947 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
7948 (linux_target_install_ops): No longer install it.
7950 * linux-tdep.c (linux_find_memory_regions): New function.
7951 (linux_init_abi): Install it.
7953 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7955 * gdbarch.sh (make_corefile_notes): New architecture callback.
7956 * gdbarch.c: Regenerate.
7957 * gdbarch.h: Likewise.
7959 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
7960 before target_make_corefile_notes. If NULL is returned, the
7961 target does not support core file generation.
7963 * linux-nat.c: Include "linux-tdep.h".
7964 (find_signalled_thread, find_stop_signal): Remove.
7965 (linux_nat_do_thread_registers): Likewise.
7966 (struct linux_nat_corefile_thread_data): Likewise.
7967 (linux_nat_corefile_thread_callback): Likewise.
7968 (iterate_over_spus): Likewise.
7969 (struct linux_spu_corefile_data): Likewise.
7970 (linux_spu_corefile_callback): Likewise.
7971 (linux_spu_make_corefile_notes): Likewise.
7972 (linux_nat_collect_thread_registers): New function.
7973 (linux_nat_make_corefile_notes): Replace contents by call to
7974 linux_make_corefile_notes passing linux_nat_collect_thread_registers
7975 as native-only callback.
7977 * linux-tdep.h: Include "bfd.h".
7978 (struct regcache): Add forward declaration.
7979 (linux_collect_thread_registers_ftype): New typedef.
7980 (linux_make_corefile_notes): Add prototype.
7981 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
7982 "regset.h", and "elf-bfd.h".
7983 (find_signalled_thread, find_stop_signal): New functions.
7984 (linux_spu_make_corefile_notes): Likewise.
7985 (linux_collect_thread_registers): Likewise.
7986 (struct linux_corefile_thread_data): New data structure.
7987 (linux_corefile_thread_callback): New funcion.
7988 (linux_make_corefile_notes): Likewise.
7989 (linux_make_corefile_notes_1): Likewise.
7990 (linux_init_abi): Install it.
7992 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
7994 * gdbarch.sh (info_proc): New callback.
7995 * gdbarch.c, gdbarch.h: Regenerate.
7997 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
7998 before falling back to the target info_proc callback.
8000 * linux-nat.c: Do not include "cli/cli-utils.h".
8001 (linux_nat_info_proc): Remove.
8002 (linux_target_install_ops): No longer install it.
8004 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8005 (read_mapping): New function.
8006 (linux_info_proc): Likewise.
8007 (linux_init_abi): Install it.
8009 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8011 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8012 * infcmd.c: (info_proc_cmd_1): New function.
8013 (info_proc_cmd): New function, moved here from equivalent routine
8014 orignally in linux-nat.c.
8015 (info_proc_cmd_mappings): Likewise.
8016 (info_proc_cmd_stat): Likewise.
8017 (info_proc_cmd_status): Likewise.
8018 (info_proc_cmd_cwd): Likewise.
8019 (info_proc_cmd_cmdline): Likewise.
8020 (info_proc_cmd_exe): Likewise.
8021 (info_proc_cmd_all): Likewise.
8022 (_initialize_infcmd): Install "info proc" command and subcommands.
8024 * target.h (struct target_ops): Add to_info_proc.
8025 (target_info_proc): Add prototype.
8026 * target.c (target_info_proc): New function.
8028 * procfs.c (procfs_info_proc): Add prototype.
8029 (info_proc_cmd): Rename into ...
8030 (procfs_info_proc): ... this. Update argument types as appropriate
8031 for a to_info_proc implementation. Handle "what" argument.
8032 (procfs_target): Install procfs_info_proc.
8033 (_initialize_procfs): No longer install "info proc" command.
8035 * linux-nat.c: (enum info_proc_what): Remove.
8036 (linux_nat_info_proc_cmd_1): Rename into ...
8037 (linux_nat_info_proc): ... this. Update argument types as appropriate
8038 for a to_info_proc implementation.
8039 (linux_nat_info_proc_cmd): Remove.
8040 (linux_nat_info_proc_cmd_mappings): Likewise.
8041 (linux_nat_info_proc_cmd_stat): Likewise.
8042 (linux_nat_info_proc_cmd_status): Likewise.
8043 (linux_nat_info_proc_cmd_cwd): Likewise.
8044 (linux_nat_info_proc_cmd_cmdline): Likewise.
8045 (linux_nat_info_proc_cmd_exe): Likewise.
8046 (linux_nat_info_proc_cmd_all): Likewise.
8047 (linux_target_install_ops): Install linux_nat_info_proc.
8048 (_initialize_linux_nat): No longer install "info proc" command
8051 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8053 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8054 * config.in, configure: Regenerate.
8056 * target.h (struct target_ops): Add to_fileio_readlink.
8057 (target_fileio_readlink): Add prototype.
8058 * target.c (target_fileio_readlink): New function.
8060 * inf-child.c: Conditionally include <sys/param.h>.
8061 (inf_child_fileio_readlink): New function.
8062 (inf_child_target): Install it.
8064 * remote.c (PACKET_vFile_readlink): New enum value.
8065 (remote_hostio_readlink): New function.
8066 (init_remote_ops): Install it.
8067 (_initialize_remote): Handle vFile:readlink packet type.
8069 2012-01-20 Pedro Alves <palves@redhat.com>
8070 Ulrich Weigand <ulrich.weigand@linaro.org>
8072 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8073 * config.in, configure: Regenerate.
8075 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8076 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8077 (target_fileio_open): Add prototype.
8078 (target_fileio_pwrite): Likewise.
8079 (target_fileio_pread): Likewise.
8080 (target_fileio_close): Likewise.
8081 (target_fileio_unlink): Likewise.
8082 (target_fileio_read_alloc): Likewise.
8083 (target_fileio_read_stralloc): Likewise.
8085 * target.c: Include "gdb/fileio.h".
8086 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8087 (default_fileio_target): New function.
8088 (target_fileio_open): Likewise.
8089 (target_fileio_pwrite): Likewise.
8090 (target_fileio_pread): Likewise.
8091 (target_fileio_close): Likewise.
8092 (target_fileio_unlink): Likewise.
8093 (target_fileio_close_cleanup): Likewise.
8094 (target_fileio_read_alloc_1): Likewise.
8095 (target_fileio_read_alloc): Likewise.
8096 (target_fileio_read_stralloc): Likewise.
8098 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8099 <fcntl.h>, and <unistd.h>.
8100 (inf_child_fileio_open_flags_to_host): New function.
8101 (inf_child_errno_to_fileio_error): Likewise.
8102 (inf_child_fileio_open): Likewise.
8103 (inf_child_fileio_pwrite): Likewise.
8104 (inf_child_fileio_pread): Likewise.
8105 (inf_child_fileio_close): Likewise.
8106 (inf_child_fileio_unlink): Likewise.
8107 (inf_child_target): Install to_fileio routines.
8109 * remote.c (init_remote_ops): Install to_fileio routines.
8111 2012-01-20 Pedro Alves <palves@redhat.com>
8112 Ulrich Weigand <ulrich.weigand@linaro.org>
8114 * remote.c (remote_multi_process_p): Only check for multi-process
8115 protocol feature, do not check for extended protocol.
8116 (remote_supports_multi_process): Check for extended protocol here.
8117 (set_general_process): Likewise.
8118 (extended_remote_kill): Likewise.
8119 (remote_pid_to_str): Likewise.
8120 (remote_query_supported): Always query multiprocess mode.
8122 2012-01-20 Pedro Alves <palves@redhat.com>
8123 Ulrich Weigand <ulrich.weigand@linaro.org>
8125 * inferior.h (struct inferior): Add fake_pid_p.
8126 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8127 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8128 magic_null_ptid since the remote side doesn't provide a real PID.
8130 2012-01-19 Tom Tromey <tromey@redhat.com>
8132 * NEWS: Combine the two Python sections.
8134 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8136 * target.h (target_close): Update comment on the target's unpush state.
8138 2012-01-19 Pedro Alves <palves@redhat.com>
8140 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8141 linux_nat_async directly instead of going through the target
8143 * target.c (unpush_target): Close target after unpushing it, not
8146 2012-01-19 Gary Benson <gbenson@redhat.com>
8148 * mdebugread.c (sort_blocks): Replace integer constants with ones
8149 derived from FIRST_LOCAL_BLOCK.
8151 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8152 Jan Kratochvil <jan.kratochvil@redhat.com>
8155 * symfile.c (find_separate_debug_file): New function.
8156 (terminate_after_last_dir_separator): Likewise.
8157 (find_separate_debug_file_by_debuglink): Also try realpath.
8158 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8159 * configure: Regenerate.
8160 * config.in: Regenerate.
8162 2012-01-18 Doug Evans <dje@google.com>
8164 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8165 (main.o): Remove rule.
8166 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8167 (--with-sysroot): Rewrite.
8168 * configure: Regenerate.
8169 * config.in: Regenerate.
8171 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8173 * parse.c (initialize_expout): New function.
8174 (reallocate_expout): Likewise.
8175 (parse_exp_in_context): Use `initialize_expout' and
8176 `reallocate_expout' when appropriate.
8178 2012-01-18 Pedro Alves <palves@redhat.com>
8180 * record.c (struct record_breakpoint, record_breakpoint_p)
8181 (record_breakpoints): New.
8182 (record_insert_breakpoint, record_remove_breakpoint): Manage
8183 record breakpoints list. Only remove breakpoints from the
8184 inferior if they had been inserted there in the first place.
8186 2012-01-17 Doug Evans <dje@google.com>
8188 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8189 if we know we don't have a file name to look for.
8191 2012-01-17 Pedro Alves <palves@redhat.com>
8193 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8194 the frame's stop reason is UNWIND_UNAVAILABLE.
8196 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8198 Fix compilation error.
8199 * m2-exp.y (yyerror): Use ANSI C prototype.
8201 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8203 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8204 (growbuf_by_size): Likewise.
8205 (yyerror): Likewise.
8206 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8207 (modblock): Remove variable (was #if 0'ed).
8208 (parse_number): Convert prototype from K&R to ANSI C.
8209 (yyerror): Likewise.
8210 * objc-exp.y (parse_number): Likewise.
8211 (yyerror): Likewise.
8212 (yylex): Remove #if 0'ed code.
8213 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8214 (yyerror): Likewise.
8216 2012-01-16 Tom Tromey <tromey@redhat.com>
8219 * symtab.h (compare_filenames_for_search): Declare.
8220 * symtab.c (compare_filenames_for_search): New function.
8221 (iterate_over_some_symtabs): Use it.
8222 * symfile.h (struct quick_symbol_functions)
8223 <map_symtabs_matching_filename>: Change spec.
8224 * psymtab.c (partial_map_symtabs_matching_filename): Use
8225 compare_filenames_for_search. Update for new spec.
8226 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8227 compare_filenames_for_search. Update for new spec.
8228 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8230 2012-01-16 Tom Tromey <tromey@redhat.com>
8233 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8234 (struct main_type) <flag_flag_enum>: New field.
8235 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8236 * NEWS: Add entries.
8237 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8239 * python/lib/gdb/printing.py (_EnumInstance): New class.
8240 (FlagEnumerationPrinter): Likewise.
8242 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8244 * breakpoint.c (create_sals_from_address_default): New function.
8245 (create_breakpoints_sal_default): Likewise.
8246 (decode_linespec_default): Likewise.
8247 (is_marker_spec): Removed.
8248 (strace_marker_p): New function.
8249 (init_breakpoint_sal): Using `strace_marker_p' instead of
8251 (create_breakpoint): Call method `create_sals_from_address' from
8252 breakpoint_ops, replacing code that created SALs conditionally
8253 on the type of the breakpoint. Call method `create_breakpoints_sal',
8254 replacing code that created breakpoints conditionally on the type
8256 (base_breakpoint_create_sals_from_address): New function.
8257 (base_breakpoint_create_breakpoints_sal): Likewise.
8258 (base_breakpoint_decode_linespec): Likewise.
8259 (base_breakpoint_ops): Add methods
8260 `base_breakpoint_create_sals_from_address',
8261 `base_breakpoint_create_breakpoints_sal' and
8262 `base_breakpoint_decode_linespec'.
8263 (bkpt_create_sals_from_address): New function.
8264 (bkpt_create_breakpoints_sal): Likewise.
8265 (bkpt_decode_linespec): Likewise.
8266 (tracepoint_create_sals_from_address): Likewise.
8267 (tracepoint_create_breakpoints_sal): Likewise.
8268 (tracepoint_decode_linespec): Likewise.
8269 (strace_marker_create_sals_from_address): Likewise.
8270 (strace_marker_create_breakpoints_sal): Likewise.
8271 (strace_marker_decode_linespec): Likewise.
8272 (strace_marker_breakpoint_ops): New variable.
8273 (addr_string_to_sals): Remove `marker_spec'. Call method
8274 `decode_linespec' from breakpoint_ops, replacing code that decoded
8275 an address string into a SAL. Use `strace_marker_p' instead of
8277 (strace_command): Decide whether we are dealing with a static
8278 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8279 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8280 * breakpoint.h (linespec_result, linespec_sals): New forward
8282 (breakpoint_ops) <create_sals_from_address>,
8283 <create_breakpoints_sal>, <decode_linespec>: New methods.
8285 2012-01-14 Doug Evans <dje@google.com>
8287 * NEWS: Update text for "maint set python print-stack".
8288 It is deprecated in gdb 7.4 and deleted in 7.5.
8290 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8292 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8295 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8297 * configure: Regenerate.
8298 * config.in: Regenerate.
8300 2012-01-12 Keith Seitz <keiths@redhat.com>
8303 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8304 (ANONYMOUS_UNION_NAME): Define.
8305 (is_path_expr_parent): New function.
8306 (get_path_expr_parent): New function.
8307 (is_anonymous_child): New function.
8308 (create_child_with_value): If the child is anonymous and without
8309 a name, assign an object name to it.
8310 (c_describe_child): Use get_path_expr_parent to determine
8311 the parent expression.
8312 If there field represents an anonymous struct or union and
8313 has no name, set an appropriate display name and expression.
8314 (cplus_describe_child): Likewise.
8316 2012-01-12 Pedro Alves <palves@redhat.com>
8318 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8319 available when %ebp is found to be zero (outermost).
8321 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8323 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8324 an internal gdb_static_assert.
8325 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8327 2012-01-11 Tom Tromey <tromey@redhat.com>
8330 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8331 catch" and "catch throw".
8333 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8335 * blockframe.c (block_innermost_frame): Start search from selected
8336 frame, if present, or otherwise the current frame.
8338 * c-exp.y (variable): Update innermost_block for
8339 'block COLONCOLON NAME' clause.
8340 * m2-exp.y (variable): Ditto.
8341 * objc-exp.y (variable): Ditto.
8343 2012-01-10 Tom Tromey <tromey@redhat.com>
8346 * python/python.c (finish_python_initialization): Set sys.argv.
8348 2012-01-10 Doug Evans <dje@google.com>
8350 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8351 "want_line_info". All callers updated.
8352 (dwarf_decode_lines_1): New function.
8353 (handle_DW_AT_stmt_list): Add function comment.
8354 New arg "want_line_info". All callers updated.
8355 (read_file_scope,read_type_unit_scope): Move comment from
8356 handle_DW_AT_stmt_list to here.
8358 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8360 Fix regression after libiberty/ update for GCC PR 6057 and others.
8361 * c-exp.y (operator) <OPERATOR DELETE>
8362 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8363 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8364 (make_builtin_type, make_name): New variable i, add gdb_assert.
8365 (operator) <OPERATOR NEW>: Update ARGS to 3.
8366 (operator) <OPERATOR DELETE>: Add trailing space.
8367 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8368 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8369 * cp-support.c (cp_canonicalize_string): Check NULL from
8370 cp_comp_to_string, call warning and return.
8372 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8374 Fix duplicate .o files after omitting libbfd.a.
8375 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8376 (SFILES): Add corelow.c.
8377 (COMMON_OBS): Add corelow.o.
8378 (ALLDEPFILES): Remove corelow.c.
8379 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8380 * config/alpha/alpha-osf3.mh: Likewise.
8381 * config/alpha/fbsd.mh: Likewise.
8382 * config/arm/nbsdaout.mh: Likewise.
8383 * config/arm/nbsdelf.mh: Likewise.
8384 * config/i386/i386gnu.mh: Likewise.
8385 * config/ia64/hpux.mh: Likewise.
8386 * config/ia64/linux.mh: Likewise.
8387 * config/m32r/linux.mh: Likewise.
8388 * config/m68k/linux.mh: Likewise.
8389 * config/mips/irix5.mh: Likewise.
8390 * config/mips/irix6.mh: Likewise.
8391 * config/pa/hpux.mh: Likewise.
8392 * config/pa/linux.mh: Likewise.
8393 * config/powerpc/aix.mh: Likewise.
8394 * config/sparc/linux.mh: Likewise.
8395 * config/sparc/linux64.mh: Likewise.
8396 * config/sparc/sol2.mh: Likewise.
8397 * config/vax/vax.mh: Likewise.
8398 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8399 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8400 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8401 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8402 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8403 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8404 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8405 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8406 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8407 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8408 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8409 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8410 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8411 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8412 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8413 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8414 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8415 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8416 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8417 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8418 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8419 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8420 corelow.o from gdb_target_obs.
8421 * corefile.c (core_target): Update the comment on NULL value.
8422 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8423 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8424 MATCHES. Drop YUMMY set on NULL.
8425 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8426 reclaim CORE_DATA if it is already NULL.
8428 2012-01-09 Doug Evans <dje@google.com>
8430 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8431 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8433 2012-01-09 Keith Seitz <keiths@redhat.com>
8435 * breakpoint.c (wrapper.h): Don't include.
8437 2012-01-09 Keith Seitz <keiths@redhat.com>
8439 * Makefile.in (SFILES): Remove wrapper.c.
8440 (HFILES_NO_SRCDIR): Remove wrapper.h.
8441 (COMMON_OBS): Remove wrapper.o.
8442 * cli/cli-interp.c: Don't inlude wrapper.h.
8443 * corelow.c: Likewise.
8444 (core_open): Replace gdb_target_find_new_threads with
8445 TRY_CATCH around target_find_new_threads.
8446 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8447 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8448 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8449 evaluate_expression.
8450 (varobj_set_value): Likewise for evaluate_expression and
8452 (install_new_variable): Likewise for value_fetch_lazy.
8453 (adjust_value_for_child_access): Likewise for value_ind.
8454 (c_describe_child): Likewise for value_subscript and
8456 (c_value_of_root): Likewise for evaluate_expression.
8457 * wrapper.c: Remove.
8458 * wrapper.h: Remove.
8460 2012-01-09 Doug Evans <dje@google.com>
8462 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8463 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8464 "abfd" args with "section". All callers updated.
8465 Error checking code moved ...
8466 (error_check_comp_unit_head): ... here. New function.
8467 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8468 Delete arg "abfd". New arg "type_offset". All callers updated.
8469 (create_debug_types_hash_table): Simplify by using
8470 read_and_check_type_unit_head.
8472 * parser-defs.h (namecopy): Delete.
8473 * parse.c (namecopy, namecopy_size): Move into copy_name.
8475 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8477 Partially fix duplicate .o files after omitting libbfd.a.
8478 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8479 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8480 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8481 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8482 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8483 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8484 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8486 2012-01-09 Pedro Alves <palves@redhat.com>
8488 * MAINTAINERS: Update my email address.
8490 2012-01-08 Doug Evans <dje@google.com>
8492 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8493 n_type_units. Rename type_comp_units to all_type_units.
8495 (add_signatured_type_cu_to_table): Renamed from
8496 add_signatured_type_cu_to_list. All callers updated.
8498 * gdbtypes.h (struct cplus_struct_type): Delete member
8499 nfn_fields_total. All uses removed.
8501 2012-01-06 Doug Evans <dje@google.com>
8503 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8505 (dwarf2_find_comp_unit): Delete.
8506 (process_psymtab_comp_unit): Make result "void".
8507 Delete args buffer, info_ptr, buffer_size, and replace with
8508 "section". All callers updated.
8509 (dwarf2_build_psymtabs_hard): Simplify.
8511 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8512 Thiago Jung Bauermann <bauerman@br.ibm.com>
8514 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8515 before `struct gdb_exception'.
8516 * breakpoint.c (update_global_location_list_nothrow)
8517 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8518 * cp-abi.c (value_rtti_type): Likewise.
8519 * cp-support.c (cp_validate_operator): Likewise.
8520 * infrun.c (insert_exception_resume_breakpoint)
8521 (check_exception_resume, keep_going): Likewise.
8522 * mi-interp.c (mi_breakpoint_created)
8523 (mi_breakpoint_modified): Likewise.
8524 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8525 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8526 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8528 2012-01-05 Doug Evans <dje@google.com>
8530 * dwarf2read.c (statement_prologue): Delete, unused.
8532 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8533 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8535 * dwarf2read.c (comp_unit_header): Delete, unused.
8537 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8539 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8540 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8542 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8544 * infrun.c (normal_stop): Don't skip calling the normal_stop
8545 observers if the thread was doing a multi-step, but stopped for
8546 some reason other than stepping.
8548 2012-01-05 Pedro Alves <alves.ped@gmail.com>
8550 * cli/cli-decode.h: Add comments.
8551 (CMD_LIST_AMBIGUOUS): Moved to command.h
8552 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8553 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8554 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8555 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8556 (add_com, add_com_alias, add_info, add_info_alias)
8557 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8559 * command.h: Add and adjust comments.
8560 (CMD_LIST_AMBIGUOUS): Moved here.
8561 (help_cmd, help_cmd_list): Delete declarations.
8563 2012-01-04 Doug Evans <dje@google.com>
8565 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8566 All callers updated.
8567 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8568 Replace all arguments with "per_cu". All callers updated.
8570 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8572 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8573 New arg "per_cu". All callers updated.
8575 Delete #if 0'd out code.
8576 * language.c (binop_result_type): Delete.
8577 (simple_type, ordered_type, same_type, integral_type): Delete.
8578 (numeric_type, character_type, string_type, boolean_type): Delete.
8579 (float_type, structured_type): Delete.
8580 * language.h: Update.
8582 2012-01-04 Tom Tromey <tromey@redhat.com>
8584 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8586 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8588 * corefile.c (close_exec_file): Delete.
8589 (reopen_exec_file): Remove commented out code that seems related
8590 to close_exec_file, which is being deleted here.
8591 * inferior.h (close_exec_file): Delete.
8592 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8594 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8596 * ada-lang.c: #include "cli/cli-utils.h".
8597 (get_selections): Use skip_spaces.
8598 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8599 (catch_ada_exception_command_split): Use skip_spaces.
8600 (ada_decode_assert_location): Likewise.
8602 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8604 * linespec.c (decode_line_internal): Check for C++ or Java
8605 compound constructs only if the current language is C, C++
8608 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8611 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8612 Joel Brobecker <brobecker@adacore.com>
8613 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8614 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8616 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8617 fall through into AT_ENTRY_POINT.
8618 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8620 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8621 PPC_INSN_SIZE skip to 3 times.
8623 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8625 * linespec.c (add_minsym): Preserve function descriptors.
8627 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8629 * breakpoint.c (all_locations_are_pending): Consider locations
8630 in program spaces executing during startup pending as well.
8632 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8634 Copyright year update in most files of the GDB Project.
8636 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8638 * copyright.sh: Delete.
8639 * copyright.py: Rewrite.
8641 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8643 * gnulib/extra/update-copyright: New file, imported from gnulib.
8645 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8647 * README (Copyright and License Notices): New section.
8649 2012-01-03 Tom Tromey <tromey@redhat.com>
8652 * python/py-value.c (valpy_dereference, valpy_get_address
8653 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8654 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8655 (valpy_absolute, valpy_richcompare): Free intermediate values.
8657 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8659 * ada-lang.c: Reformat the copyright notice.
8661 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8663 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8664 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8665 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8666 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8667 Revert this part of:
8668 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8669 Build gdb directly from *.o files not using libgdb.a.
8670 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8672 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8674 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8675 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8676 Reformat the copyright header.
8678 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8680 Revert this part of:
8681 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8682 Remove the gdbtui binary.
8683 * gdb.c (main): Remove args.interpreter_p initialization.
8684 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8685 * main.h (struct captured_main_args): Remove interpreter_p.
8687 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8689 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8691 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8693 * top.c (print_gdb_version): Update copyright year.
8695 2012-01-02 Yao Qi <yao@codesourcery.com>
8697 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8699 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8700 Joel Brobecker <brobecker@adacore.com>
8702 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8703 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8705 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8706 fall through into AT_ENTRY_POINT.
8707 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8709 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8710 PPC_INSN_SIZE skip to 3 times.
8712 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8714 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
8716 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
8718 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8720 Build gdb directly from *.o files not using libgdb.a.
8721 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
8722 (COMMON_OBS): Remove solib-target.o.
8723 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
8724 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
8725 (LIBGDB_OBS, libgdb.a): Move it above.
8726 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
8727 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
8728 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
8729 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
8730 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
8731 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
8732 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
8733 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
8734 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
8735 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
8736 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
8737 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
8738 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
8739 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
8740 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8741 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
8742 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
8743 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8744 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
8745 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
8746 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
8747 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
8748 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
8749 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
8750 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
8751 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
8752 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
8754 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8756 Remove the gdbtui binary.
8757 * .gitignore (/gdbtui): Remove.
8758 * Makefile.in (TUI): Remove.
8759 (SUBDIR_TUI_OBS): Remove tui-main.o.
8760 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
8761 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
8762 (tui-main.o): Remove.
8763 (all_object_files): Remove tui-main.o.
8764 * NEWS: New note for the gdbtui removal.
8765 * configure: Rebuilt.
8766 * configure.ac: No longer add all-tui, clean-tui, install-tui and
8767 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
8768 CONFIG_UNINSTALL respectively.
8769 * gdb.c (main): Remove args.interpreter_p initialization.
8770 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8771 * main.h (struct captured_main_args): Remove interpreter_p.
8772 * tui/tui-main.c: Remove.
8774 2012-01-01 Doug Evans <dje@google.com>
8776 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
8777 (dwarf2_physname, read_import_statement): Ditto.
8778 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
8779 (process_structure_scope read_subroutine_type): Ditto.
8780 (read_typedef, load_partial_dies, read_partial_die): Ditto.
8781 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
8782 (dwarf2_fetch_die_location_block): Ditto.
8783 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
8785 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
8786 All callers updated.
8787 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
8788 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
8789 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
8791 * dwarf2read.c (load_cu): Move assert to more useful location.
8793 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
8794 All callers updated.
8796 * dwarf2read.c (dwarf2_per_objfile): Add comment.
8797 (dwarf2_elf_names): Minor reformat.
8798 (dwarf2_per_cu_data): Tweak comment.
8799 (dwarf2_read_section): Fix comment.
8800 (create_all_comp_units): Fix comment.
8801 (load_full_comp_unit): Fix comment.
8802 (process_full_comp_unit): Fix comment.
8803 (read_signatured_type): Fix comment.
8805 For older changes see ChangeLog-2011.
8811 version-control: never