1 2012-07-27 Yao Qi <yao@codesourcery.com>
3 * thread.c (switch_to_thread): Don't call registers_changed.
5 2012-07-26 Tom Tromey <tromey@redhat.com>
7 * Makefile.in (SFILES): Remove objc-exp.y.
8 (YYFILES): Remove objc-exp.c.
9 (YYOBJ): Remove objc-exp.o.
10 (local-maintainer-clean): Don't mention objc-exp.c.
11 * c-exp.y: Include objc-lang.h.
12 (%union) <class>: New field.
13 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
14 (exp): Clone subscript production for OBJC_LBRAC. Add various
15 Objective C productions.
16 (msglist, msgarglist, msgarg): New productions.
17 (array_mod, func_mod, operator): Clone productions for
19 (parse_string_or_char): Handle '@' strings.
20 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
21 (classify_name): Check la_name_of_this. Recognize ObjC class
24 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
25 * objc-lang.h (objc_parse, objc_error): Don't declare.
27 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
29 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
31 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
33 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
36 2012-07-26 Tom Tromey <tromey@redhat.com>
39 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
42 2012-07-26 Tom Tromey <tromey@redhat.com>
44 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
46 (print_objfile_statistics): Likewise.
47 (maintenance_print_symbols): Likewise.
48 (maintenance_print_msymbols): Likewise.
49 (maintenance_print_objfiles): Likewise.
50 * psymtab.c (print_partial_symbols): Call QUIT.
51 (maintenance_print_psymbols): Likewise. Don't modify
53 * copying.c (show_copying_command): Don't modify immediate_quit.
54 (show_warranty_command): Likewise.
55 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
57 2012-07-26 Keith Seitz <keiths@redhat.com>
59 * linespec.c (linespec_lexer_lex_number): The input
60 is also a valid number if the next character is a comma
63 2012-07-26 Joel Brobecker <brobecker@adacore.com>
65 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
68 2012-07-26 Tristan Gingold <gingold@adacore.com>
70 * machoread.c: Include gdb_bfd.h.
72 2012-07-26 Tristan Gingold <gingold@adacore.com>
74 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
77 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
79 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
81 (dwarf2_evaluate_loc_desc): Likewise.
82 (dwarf2_loc_desc_needs_frame): Likewise.
83 (locexpr_describe_location_1): Likewise.
84 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
86 (struct dwarf2_loclist_baton): Likewise.
87 * dwarf2read.c (struct dwarf_block): Likewise.
88 (dump_die_shallow): Use pulongest to print dwarf_block.size.
89 (decode_locdesc): Expand SIZE and I to size_t.
91 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
93 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
95 2012-07-25 Joel Brobecker <brobecker@adacore.com>
97 * doublest.c (convert_doublest_to_floatformat): If the exponent
98 is too small, treat the value as zero. If the exponent is too
99 large, treat the value as infinity.
101 2012-07-25 Joel Brobecker <brobecker@adacore.com>
103 * configure.ac: Add --enable-lmcheck configure option.
104 * configure: Regenerate.
106 2012-07-25 Tom Tromey <tromey@redhat.com>
108 * NEWS: Mention maint info bfds.
109 * gdb_bfd.c (all_bfds): New global.
110 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
111 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
114 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
116 * configure.tgt: Add v850*-*-rtems*.
118 2012-07-25 Tom Tromey <tromey@redhat.com>
120 * macrotab.c (macro_bcache_str): Remove cast.
122 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
124 * linespec.c (linespec_lexer_lex_number): Update comments,
125 change the return and add check to make sure the input is
127 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
128 false, call linespec_lexer_lex_string.
130 2012-07-24 Tom Tromey <tromey@redhat.com>
132 * symfile.c (symbol_file_add): Don't open BFD twice.
134 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
136 * breakpoint.c (create_breakpoint): Store condition for pending
139 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
141 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
142 (m68k_return_value): Handle complex types like structures.
143 (m68k_svr4_return_value): Likewise.
145 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
147 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
148 parameters to bfd_get_section_name.
150 2012-07-24 Yao Qi <yao@codesourcery.com>
152 * cli/cli-setshow.c: Handle case 'var_uinteger'
153 and 'var_zuninteger' together. Handle case 'var_integer' and
154 'var_zinteger' together.
156 2012-07-23 Keith Seitz <keiths@redhat.com>
158 * linespec.c (convert_linespec_to_sal): Don't add
159 any symbols to the result vector if symbol_to_sal
162 2012-07-23 Keith Seitz <keiths@redhat.com>
164 * linespec.c (decode_objc): Record the function name
167 2012-07-23 Tom Tromey <tromey@redhat.com>
169 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
171 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
172 (map_vmap): Acquire a reference to the BFD.
174 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
176 * p-valprint.c (pascal_object_print_value): Replace potentially
177 unsafe alloca with xmalloc/xfree.
178 * valops.c (search_struct_method): Likewise.
180 2012-07-23 Tom Tromey <tromey@redhat.com>
182 * solib-svr4.c (enable_break): Update.
183 * bfd-target.h (target_bfd_reopen): Update documentation.
185 2012-07-23 Tom Tromey <tromey@redhat.com>
187 * symfile.c (separate_debug_file_exists): Update.
188 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
189 (reread_symbols): Update.
190 * elfread.c (build_id_verify): Update.
191 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
192 bfd_open_maybe_remote.
194 2012-07-23 Tom Tromey <tromey@redhat.com>
196 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
198 2012-07-23 Tom Tromey <tromey@redhat.com>
200 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
202 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
204 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
205 * machoread.c (macho_add_oso_symfile): Make a cleanup for
207 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
208 * objfiles.c (allocate_objfile): Acquire a new reference.
209 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
210 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
211 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
212 a cleanup for 'nbfd'.
213 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
215 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
216 make a cleanup for 'abfd'.
217 (symbol_file_add): Make a BFD cleanup.
219 2012-07-23 Tom Tromey <tromey@redhat.com>
221 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
222 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
223 * corelow.c (core_open): Use gdb_bfd_fopen.
224 * dsrec.c (load_srec): Use gdb_bfd_openr.
225 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
226 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
227 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
228 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
229 (gdb_bfd_fdopenr): New functions.
230 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
231 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
232 (gdb_bfd_fdopenr): Declare.
233 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
234 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
235 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
236 gdb_bfd_openr_next_archived_file.
237 (macho_check_dsym): Use gdb_bfd_openr.
238 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
239 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
240 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
241 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
243 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
244 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
245 gdb_bfd_openr_next_archived_file.
246 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
248 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
250 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
251 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
252 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
253 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
254 (symfile_bfd_open): Use gdb_bfd_fopen.
255 (generic_load): Use gdb_bfd_openr.
256 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
258 2012-07-23 Tom Tromey <tromey@redhat.com>
260 * bfd-target.c (target_bfd_reopen): Update.
261 * cli/cli-dump.c (bfd_openr_with_cleanup)
262 (bfd_openw_with_cleanup): Update.
263 * corelow.c (core_open): Update.
264 * dsrec.c (load_srec): Update.
265 * exec.c (exec_file_attach): Update.
266 * gcore.c (create_gcore_bfd): Update.
267 * gdb_bfd.c (gdb_bfd_ref): Return void.
268 (gdb_bfd_open): Update.
269 * gdb_bfd.h (gdb_bfd_ref): Return void.
271 * jit.c (jit_bfd_try_read_symtab): Update.
272 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
273 * machoread.c (macho_symfile_read_all_oso): Update.
274 (macho_check_dsym): Update.
275 * procfs.c (insert_dbx_link_bpt_in_file): Update.
276 * remote-m32r-sdi.c (m32r_load): Update.
277 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
278 * rs6000-nat.c (add_vmap): Update.
279 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
281 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
282 * solib-spu.c (spu_bfd_open): Update.
283 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
284 * spu-linux-nat.c (spu_bfd_open): Update.
285 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
286 (generic_load): Update.
287 * windows-nat.c (windows_make_so): Update.
289 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
291 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
293 2012-07-20 Jeff Kenton <jkenton@tilera.com>
295 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
296 SIGTRAMP_FRAME unwinding.
298 2012-07-20 Doug Evans <dje@google.com>
300 * NEWS: Document new options "set/show use-deprecated-index-sections",
301 and delete reference to --use-deprecated-index-sections.
302 * symfile.h (use_deprecated_index_sections): Delete.
303 * dwarf2read.c (use_deprecated_index_sections): Make static.
304 (read_index_from_section): Update wording of how to load
305 deprecated index sections.
306 (_initialize_dwarf2_read): New options
307 "set/show use-deprecated-index-sections".
308 * main.c (captured_main): Delete --use-deprecated-index-sections.
310 2012-07-20 Pedro Alves <palves@redhat.com>
315 * infrun.c (handle_inferior_event) <new thread>: Don't special
317 <TARGET_WAITKIND_SPURIOUS>: Ditto.
318 * linux-thread-db.c (thread_get_info_callback): Don't return early
319 if the thread is zombie.
320 (thread_from_lwp): Change return type to void. Rewrite stale
322 (attach_thread): Don't return early if the thread is zombie,
323 instead set its "dying" flag.
324 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
325 (find_new_threads_callback): Don't return early if the thread is
328 2012-07-20 Pedro Alves <palves@redhat.com>
330 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
331 * target.c (target_wait): Likewise.
332 (str_comma_list_concat_elem, do_option, target_options_to_string):
334 * target.h (target_options_to_string): Declare.
336 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
337 Tom Tromey <tromey@redhat.com>
339 * dwarf2read.c (dwarf_decode_macros)
340 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
341 DW_MACRO_GNU_transparent_include_alt>: New cases.
342 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
343 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
345 2012-07-20 Tom Tromey <tromey@redhat.com>
347 * dwarf2read.c (try_open_dwo_file): Don't call
348 gdb_bfd_stash_filename.
350 2012-07-20 Pedro Alves <palves@redhat.com>
352 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
353 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
354 (i386_process_record): Tweak description comments.
356 2012-07-20 Pedro Alves <palves@redhat.com>
358 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
359 (i386_process_record): Use record_read_memory.
360 * record.c (record_read_memory): New function.
361 (record_arch_list_add_mem, record_exec_insn): Use
363 * record.h (record_read_memory): Declare.
365 2012-07-20 Yao Qi <yao@codesourcery.com>
367 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
370 2012-07-19 Pedro Alves <palves@redhat.com>
372 * record.c (record_resume): Ask the target beneath to report all
375 2012-07-19 Doug Evans <dje@google.com>
377 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
378 there's no section at address zero.
379 (dwarf2_record_block_ranges): Ditto.
381 2012-07-19 Yao Qi <yao@codesourcery.com>
383 * command.h, remote.c: Fix a typo in comment.
385 2012-07-19 Tom Tromey <tromey@redhat.com>
388 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
389 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
390 OP_DECLTYPE>: New cases.
391 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
392 (type_exp): Add new productions.
393 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
395 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
397 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
398 OP_DECLTYPE>: New case.
399 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
401 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
402 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
404 2012-07-19 Tom Tromey <tromey@redhat.com>
406 * c-exp.y (enum token_flags): New.
407 (struct token) <cxx_only>: Remove.
409 (tokentab3, tokentab2, ident_tokens): Update.
410 (lex_one_token): Update. Handle FLAG_SHADOW.
412 2012-07-19 Tom Tromey <tromey@redhat.com>
414 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
415 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
416 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
417 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
418 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
419 type_exp production where appropriate.
420 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
421 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
422 <UNOP_MEMVAL_TYPE>: New case.
423 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
424 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
425 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
426 <UNOP_MEMVAL_TYPE>: New case.
427 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
428 UNOP_REINTERPRET_CAST>: Update.
429 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
430 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
431 UNOP_REINTERPRET_CAST>: Update.
432 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
433 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
434 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
437 2012-07-19 Yao Qi <yao@codesourcery.com>
438 Jan Kratochvil <jan.kratochvil@redhat.com>
440 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
441 and case 'var_optional_filename' together.
442 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
443 instead of add_setshow_optional_filename_cmd for setshow command
444 'args'. Set completer for 'set args'.
446 2012-07-18 Doug Evans <dje@google.com>
448 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
449 * common/gdb_vecs.c: New file, contents from utils.c.
450 * common/host-defs.h: New file, contents from defs.h.
451 * utils.h: New file, contents from defs.h.
452 * defs.h: Move all declarations of objects defined in utils.c
453 to utils.h (except QUIT() and related).
454 #include "utils.h", "host-defs.h".
455 * probe.h (probe_p): Move here from gdb_vecs.h.
456 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
457 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
458 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
459 * Makefile.in (SFILES): Add common/gdb_vecs.c.
460 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
461 (COMMON_OBS): Add gdb_vecs.o.
462 (gdb_vecs.o): New rule.
464 2012-07-18 Keith Seitz <keiths@redhat.com>
466 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
467 parameter. If non-zero, use SYMNAME as the canonical name
470 (convert_linespec_to_sals): Use add_sal_to_sals for
472 (decode_line_full): No need to "fill in missing canonical names"
473 anymore. Simply make cleanups for the allocated names.
475 2012-07-18 Keith Seitz <keiths@redhat.com>
477 * linespec.c (struct linespec): Constify expression,
478 source_filename, function_name, and label_name.
479 (symbol_not_found_error): Make all parameters const.
480 (linespec_parser_delete): No need to check for NULL
481 when using xfree. Cast const char * to char * for xfree.
483 2012-07-18 Keith Seitz <keiths@redhat.com>
485 * breakpoint.c (invalid_thread_id_error): New function.
486 (find_condition_and_thread): Use invalid_thread_id_error.
487 (watch_command_1): Likewise.
489 2012-07-18 Tom Tromey <tromey@redhat.com>
491 * cc-with-index.sh, cc-with-dwz.sh: Remove.
492 * contrib/cc-with-tweaks.sh: New file.
494 2012-07-18 Tom Tromey <tromey@redhat.com>
496 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
497 (locate_dwz_sections): Recognize .gdb_index.
498 (create_cus_from_index_list): New function.
499 (create_cus_from_index): Use it. Handle .dwz data.
500 (read_index_from_section): New function, extracted from
502 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
505 2012-07-18 Tom Tromey <tromey@redhat.com>
507 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
508 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
510 (struct dwz_file): New.
511 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
512 (locate_dwz_sections, dwarf2_get_dwz_file)
513 (get_abbrev_section_for_cu): New functions.
514 (error_check_comp_unit_head, read_and_check_comp_unit_head)
515 (read_and_check_type_unit_head): Add abbrev_section argument.
516 (create_debug_types_hash_table): Update.
517 (init_cutu_and_read_dies): Use proper abbrev section.
518 (init_cutu_and_read_dies_no_follow): Likewise.
519 (set_partial_user): Do nothing if PST==NULL.
520 (read_comp_units_from_section): New function.
521 (create_all_comp_units): Use it.
522 (scan_partial_symbols, partial_die_parent_scope): Update.
523 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
524 (process_imported_unit_die, read_partial_die): Handle .dwz files.
525 (find_partial_die): Add offset_in_dwz argument. Update.
526 (guess_partial_die_structure_name, fixup_partial_die): Update.
527 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
528 DW_FORM_GNU_strp_alt.
529 (read_indirect_string_from_dwz): New function.
530 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
531 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
532 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
533 (follow_die_offset): Add offset_in_dwz argument.
534 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
535 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
536 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
537 Handle new macro forms.
538 (dwarf_decode_macros): Update.
539 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
540 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
541 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
542 (create_debug_types_hash_table): Use correct abbrev section.
543 (get_debug_line_section): New function.
544 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
545 (process_full_comp_unit): Pass 'required' argument to
546 end_symtab_get_static_block.
547 * buildsym.h (end_symtab_get_static_block): Update.
548 * buildsym.c (end_symtab_get_static_block): Add 'required'
550 (end_symtab, end_expandable_symtab): Update.
552 2012-07-18 Tom Tromey <tromey@redhat.com>
554 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
556 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
557 (zlib_decompress_section): Remove.
558 (dwarf2_read_section): Use gdb_bfd_map_section.
559 (munmap_section_buffer): Remove.
560 (free_dwo_file, dwarf2_per_objfile_free): Don't use
561 munmap_section_buffer.
562 * gdb_bfd.c: Include zlib.h, sys/mman.h.
563 (struct gdb_bfd_section_data): New.
564 (free_one_bfd_section): New function.
565 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
566 (get_section_descriptor, zlib_decompress_section)
567 (gdb_bfd_map_section): New functions.
568 * gdb_bfd.h (gdb_bfd_map_section): Declare.
570 2012-07-18 Tom Tromey <tromey@redhat.com>
572 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
574 2012-07-18 Tom Tromey <tromey@redhat.com>
576 * gdb_bfd.c (struct gdb_bfd_data): New.
577 (gdb_bfd_cache): New global.
578 (struct gdb_bfd_cache_search): New.
579 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
580 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
581 * gdb_bfd.h (gdb_bfd_open): Declare.
583 2012-07-18 Tom Tromey <tromey@redhat.com>
585 * utils.c (make_cleanup_bfd_unref): Rename from
586 make_cleanup_bfd_close.
587 * defs.h (make_cleanup_bfd_unref): Rename from
588 make_cleanup_bfd_close.
589 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
590 (bfd_openw_with_cleanup): Update.
591 * corelow.c (core_open): Update.
592 * dsrec.c (load_srec): Update.
593 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
594 * remote-m32r-sdi.c (m32r_load): Update.
595 * remote-mips.c (mips_load_srec): Update.
596 (pmon_load_fast): Update.
597 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
599 (darwin_bfd_open): Update.
600 * solib.c (solib_bfd_fopen): Update.
601 * symfile-mem.c (symbol_file_add_from_memory): Update.
602 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
603 (symfile_bfd_open): Update.
604 (generic_load): Update.
606 2012-07-18 Tom Tromey <tromey@redhat.com>
608 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
609 (pmon_load_fast): Likewise.
610 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
611 (m32r_upload_command): Likewise.
612 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
613 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
614 Use make_cleanup_bfd_close.
616 2012-07-18 Tom Tromey <tromey@redhat.com>
618 * symfile.c (symfile_bfd_open): Don't copy name. Call
619 gdb_bfd_stash_filename.
620 (load_command): Open the new BFD before freeing the old.
621 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
622 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
623 Call gdb_bfd_stash_filename.
624 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
625 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
626 gdb_bfd_stash_filename.
627 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
629 * rs6000-nat.c (add_vmap): Don't copy filename. Call
630 gdb_bfd_stash_filename.
631 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
632 * machoread.c (macho_add_oso_symfile): Call
633 gdb_bfd_stash_filename.
634 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
635 gdb_bfd_stash_filename.
636 (macho_check_dsym): Don't copy filename. Call
637 gdb_bfd_stash_filename.
638 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
639 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
640 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
641 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
642 * exec.c (exec_close): Don't free the BFD's filename.
643 (exec_file_attach): Don't copy the filename. Call
644 gdb_bfd_stash_filename.
645 * corelow.c (core_close): Don't free the BFD's filename.
646 (core_open): Call gdb_bfd_stash_filename.
647 * corefile.c (reopen_exec_file): Remove #if 0 code.
648 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
650 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
652 2012-07-18 Tom Tromey <tromey@redhat.com>
654 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
656 (free_dwo_file): Use gdb_bfd_unref.
657 * cli/cli-dump.c: Include gdb_bfd.h.
658 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
659 (bfd_openr_with_cleanup): Likewise.
660 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
662 * utils.c: Include gdb_bfd.h.
663 (do_bfd_close_cleanup): Use gdb_bfd_unref.
664 * symfile.c: Include gdb_bfd.h.
665 (separate_debug_file_exists): Use gdb_bfd_unref.
666 (bfd_open_maybe_remote): Use gdb_bfd_ref.
667 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
668 (generic_load): Use gdb_bfd_ref.
669 (reread_symbols): Use gdb_bfd_unref.
670 * symfile-mem.c: Include gdb_bfd.h.
671 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
672 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
673 * solib.c: Include gdb_bfd.h.
674 (solib_bfd_fopen): Use gdb_bfd_ref.
675 (solib_bfd_open): Use gdb_bfd_unref.
676 (free_so_symbols): Use gdb_bfd_unref.
677 (reload_shared_libraries_1): Use gdb_bfd_unref.
678 * solib-spu.c: Include gdb_bfd.h.
679 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
680 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
682 * solib-frv.c: Include gdb_bfd.h.
683 (enable_break2): Use gdb_bfd_unref.
684 * solib-dsbt.c: Include gdb_bfd.h.
685 (enable_break2): Use gdb_bfd_unref.
686 * solib-darwin.c: Include gdb_bfd.h.
687 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
689 (darwin_bfd_open): Use gdb_bfd_unref.
690 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
691 * remote-mips.c: Include gdb_bfd.h.
692 (mips_load_srec): Use gdb_bfd_ref.
693 (pmon_load_fast): Use gdb_bfd_ref.
694 * remote-m32r-sdi.c: Include gdb_bfd.h.
695 (m32r_load): Use gdb_bfd_ref.
696 * record.c: Include gdb_bfd.h.
697 (record_save_cleanups): Use gdb_bfd_unref.
698 (cmd_record_save): Use gdb_bfd_unref.
699 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
701 * objfiles.h (gdb_bfd_close_or_warn): Remove.
702 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
703 * objfiles.c: Include gdb_bfd.h.
704 (free_objfile): Use gdb_bfd_unref.
705 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
707 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
708 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
709 (macho_check_dsym): Likewise.
710 * m32r-rom.c: Include gdb_bfd.h.
711 (m32r_load): Use gdb_bfd_ref.
712 (m32r_upload_command): Use gdb_bfd_ref.
713 * jit.c: Include gdb_bfd.h.
714 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
715 * gdb_bfd.h: New file.
716 * gdb_bfd.c: New file.
717 * gcore.c: Include gdb_bfd.h.
718 (create_gcore_bfd): Use gdb_bfd_ref.
719 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
720 (gcore_command): Use gdb_bfd_unref.
721 * exec.c: Include gdb_bfd.h.
722 (exec_close): Use gdb_bfd_unref.
723 (exec_close_1): Use gdb_bfd_unref.
724 (exec_file_attach): Use gdb_bfd_ref.
725 * elfread.c: Include gdb_bfd.h.
726 (build_id_verify): Use gdb_bfd_unref.
727 * dsrec.c: Include gdb_bfd.h.
728 (load_srec): Use gdb_bfd_ref.
729 * corelow.c: Include gdb_bfd.h.
730 (core_close): Use gdb_bfd_unref.
731 (core_open): Use gdb_bfd_ref.
732 * bfd-target.c: Include gdb_bfd.h.
733 (target_bfd_xclose): Use gdb_bfd_unref.
734 (target_bfd_reopen): Use gdb_bfd_ref.
735 * Makefile.in (SFILES): Add gdb_bfd.c.
736 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
737 (COMMON_OBS): Add gdb_bfd.o.
739 2012-07-18 Keith Seitz <keiths@redhat.com>
741 * breakpoint.c (find_condition_and_thread): Initialize
743 (create_breakpiont): find_condition_and_thread will now
744 initialize COND_STRING, THREAD, and REST (and TASK).
745 (addr_string_to_sals): Likewise.
747 2012-07-18 Pedro Alves <palves@redhat.com>
749 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
750 Pull the single step breakpoints out of the target.
752 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
754 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
755 * stap-probe.c (compile_probe_arg): Likewise.
757 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
759 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
760 (elf_compile_to_ax): Likewise.
761 * infrun.c (insert_exception_resume_from_probe): Likewise.
762 (check_exception_resume): Remove `objfile' variable.
763 * probe.c (find_probe_by_pc): Remove `objfile' argument.
764 (struct probe_and_objfile, probe_and_objfile_s): Delete.
765 (collect_probes): Adjust return value to `VEC (probe_p) *'.
766 (compare_entries): Rename to...
767 (compare_probes): ...this. Adjust function to work with
768 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
770 (gen_ui_out_table_header_info): Adjust `probes' argument to be
772 (print_ui_out_info): Adjust argument to be `struct probe *'.
773 (info_probes_for_ops): Adjust internal computations to use
775 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
776 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
777 gen_info_probes_table_values>: Remove `objfile' argument.
778 (struct probe) <objfile>: New field.
779 (find_probe_by_pc): Remove `objfile' argument.
780 * stap-probe.c (stap_parse_probe_arguments): Likewise.
781 (stap_get_probe_argument_count): Likewise.
782 (stap_get_arg): Likewise.
783 (stap_evaluate_probe_argument): Likewise.
784 (stap_compile_to_ax): Likewise.
785 (compile_probe_arg): Refactor not to pass `objfile' anymore.
786 (handle_stap_probe): Fill `objfile' field from `struct probe'.
787 (stap_gen_info_probes_table_header): Remove `objfile' argument.
788 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
789 sym_compile_to_ax>: Likewise.
791 2012-07-18 Terry Guo <terry.guo@arm.com>
794 * defs.h (GDB_MI_MSG_WIDTH): New.
795 * ser_base (ser_base_read_error_fd): New function.
796 (do_ser_base_readchar): Poll error file descriptor as well as
798 (generic_readchar): Refactor error handling.
800 2012-07-18 Joel Brobecker <brobecker@adacore.com>
802 * NEWS: Create a new section for the next release branch.
803 Rename the section of the current branch, now that it has
806 2012-07-18 Joel Brobecker <brobecker@adacore.com>
808 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
809 * version.in: Bump version to 7.5.50.20120718-cvs.
811 2012-07-17 Keith Seitz <keiths@redhat.com>
813 * linespec.c (linespec_parse_line_offset): Make parameter
816 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
819 * f-valprint.c (info_common_command): New variable frame_id.
820 Reinitialize FI form FRAME_ID after each print_variable_and_value.
821 * printcmd.c (print_variable_and_value): Extend function comment.
822 Add comment for invalidated FRAME.
823 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
824 FI form FRAME_ID after each print_frame_local_vars.
825 (struct print_variable_and_value_data): Change frame to frame_id.
826 (do_print_variable_and_value): New variable frame, initialize it from
827 p->frame_id. Add comment for invalidated FRAME.
828 (print_frame_local_vars, print_frame_arg_vars): New function comment.
829 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
830 for invalidated FRAME.
832 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
833 Pedro Alves <palves@redhat.com>
835 * linux-nat.c (linux_nat_detach): Don't unregister from the event
838 2012-07-16 Tom Tromey <tromey@redhat.com>
840 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
842 2012-07-15 Doug Evans <dje@google.com>
844 * dwarf2read.c (stmt_list_hash): New struct.
845 (type_unit_group): Embed "per_cu" member, remove pointer.
846 New union member "t", move member "tus" into it, all uses updated.
847 New member "hash", replaces member "line_offset, all uses updated.
848 (quick_file_names): Replace member "offset" with "hash", all uses
850 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
851 (hash_file_name_entry, eq_file_name_entry): Call them.
852 (hash_type_unit_group, eq_type_unit_group): Ditto.
853 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
854 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
855 (dw2_get_file_names): Update.
856 (create_type_unit_group): Replace "per_cu" arg with "cu".
857 All callers updated. Fix "quick" (.gdb_index) handling.
858 (get_type_unit_group): Replace "per_cu" arg with "cu".
860 (build_type_unit_groups): Don't reset tu_stats.
862 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
863 "tab_cur_size". Change member "tab" to be a htab_t.
864 (create_filename_seen_cache): Update.
865 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
866 (filename_seen): Update.
868 2012-07-13 Doug Evans <dje@google.com>
870 * symtab.c (filename_seen): Update comment.
872 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
873 Doug Evans <dje@google.com>
875 * buildsym.c (end_symtab_1): Split it to ...
876 (end_symtab_get_static_block): ... this ...
877 (end_symtab_from_static_block): ... and this function.
878 (end_symtab, end_expandable_symtab): Call them.
879 * buildsym.h (end_symtab_get_static_block)
880 (end_symtab_from_static_block): New declarations.
881 * dwarf2read.c (process_full_comp_unit): New variable static_block.
882 Set its valid CU ranges.
884 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
886 * dwarf2loc.c (disassemble_dwarf_expression): Handle
887 DW_OP_GNU_parameter_ref.
889 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
891 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
892 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
894 2012-07-13 Doug Evans <dje@google.com>
896 * symtab.c (output_source_filename): Delete unnecessary forward decl.
897 (filename_seen_cache): New struct.
898 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
899 (create_filename_seen_cache): New function.
900 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
901 (filename_seen): Delete arg "first". New arg "cache". All callers
903 (output_source_filename_data): New struct.
904 (output_source_filename): Delete arg "first". New arg "data".
906 (sources_info): Delete local "first". New locals "data", "cleanups".
907 Rewrite to use filename_seen_cache.
908 (add_partial_filename_data): Delete member "first". New member
909 "filename_seen_cache". All uses updated.
910 (make_source_files_completion_list): Rewrite to use
913 2012-07-12 Doug Evans <dje@google.com>
915 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
917 2012-07-10 Doug Evans <dje@google.com>
920 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
921 all_type_unit_groups, type_unit_groups, tu_stats.
922 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
923 All uses updated. Add type_unit_group to union "s".
924 (type_unit_group): New struct.
925 (IS_TYPE_UNIT_GROUP): New macro.
926 (abbrev_table): Delete unused member "section".
927 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
928 (dw2_get_cu): Assert not used with type_unit_group.
929 (dw2_get_primary_cu): New function.
930 (dw2_build_type_unit_groups_reader): New function.
931 (dw2_build_type_unit_groups): New function.
932 (dw2_get_file_names): Assert not called on type units.
933 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
934 Redo loop to iterate over type unit groups instead of type units.
935 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
936 (read_abbrev_offset): New function.
937 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
939 (create_partial_symtab): New function.
940 (process_psymtab_comp_unit_reader): Assert not used with type units.
941 Call create_partial_symtab.
942 (process_psymtab_type_unit): Delete.
943 (hash_type_unit_group, eq_type_unit_group): New functions.
944 (allocate_type_unit_groups_table): New function.
945 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
946 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
947 (create_type_unit_group, get_type_unit_group): New functions.
948 (tu_abbrev_offset): New struct.
949 (sort_tu_by_abbrev_offset): New function.
950 (add_type_unit_group_to_table): New function.
951 (build_type_unit_groups): New function.
952 (build_type_psymtabs_reader): New function.
953 (build_type_psymtab_dependencies): New function.
954 (build_type_psymtabs): Rewrite.
955 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
956 is seen in a type unit.
957 (process_queue): Move symtab expansion debugging printfs here.
958 Call process_full_type_unit for type units.
959 (compute_symtab_includes): Assert not called for type units.
960 (process_cu_includes): Don't call compute_symtab_includes for
962 (process_full_type_unit): New function.
963 (process_imported_unit_die): Flag an error if called for type units.
964 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
965 updated. Assert not called for type units.
966 (read_file_scope): Call dwarf2_start_symtab.
967 (setup_type_unit_groups): New function.
968 (read_type_unit_scope): Rewrite.
969 (abbrev_table_read_table): Initialize abbrev_table->offset.
970 (abbrev_table_free_cleanup): New function.
971 (dwarf2_start_symtab): New function.
972 (load_full_type_unit): Assert not called for type unit groups.
973 * buildsym.c (finish_block_internal): New arg "expandable".
975 (start_symtab): Move most contents to ...
976 (restart_symtab): ... here. New function.
977 (reset_symtab_globals): New function.
978 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
979 Call reset_symtab_globals.
980 (end_symtab, end_expandable_symtab): New functions.
981 (set_missing_symtab, augment_type_symtab): New functions.
982 * buildsym.h (end_expandable_symtab): Declare.
983 (augment_type_symtab, restart_symtab): Declare.
984 * psympriv.h (struct partial_symtab): New member "anonymous".
985 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
987 (read_psymtabs_with_filename): Ditto.
988 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
989 (expand_symtabs_matching_via_partial): Ditto.
990 (dump_psymtab): Update.
991 * dictionary.c (dict_add_pending): New function.
992 * dictionary.h (dict_add_pending): Declare.
994 2012-07-09 Doug Evans <dje@google.com>
996 * buildsym.c (start_subfile): Remove unnecessary check for
999 * psymtab.c (allocate_psymtab): Use host_address_to_string.
1001 * dwarf2read.c (load_full_type_unit): Simplify.
1003 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
1004 to struct signatured_type **. All uses updated.
1006 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
1007 All callers updated.
1009 2012-07-09 Tom Tromey <tromey@redhat.com>
1011 * c-exp.y (check_parameter_typelist): New function.
1012 (parameter_typelist): Call it.
1013 * eval.c (make_params): Handle '(void)' case.
1014 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1017 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1019 * common/linux-ptrace.c: Include gdb_assert.h.
1020 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
1021 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
1023 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
1025 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
1026 * linux-nat.c (linux_child_post_attach)
1027 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
1029 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1031 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
1032 nptl <2.7 bug workaround for core files.
1034 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1036 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
1038 (save_siginfo): Remove.
1039 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
1041 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
1042 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
1043 * linux-nat.h (struct lwp_info): Remove field siginfo.
1045 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1047 Code cleanup for the next patch.
1048 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
1049 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1051 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1052 (ia64_linux_stopped_data_address):
1053 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
1055 * linux-nat.h (linux_nat_get_siginfo): Likewise.
1056 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
1057 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1060 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1063 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
1064 Increase buffer sizes to 2x we need, not just 2x of the previous size.
1066 2012-07-06 Tom Tromey <tromey@redhat.com>
1068 * c-exp.y (DOTDOTDOT): New token.
1069 (func_mod, exp): Use parameter_typelist.
1070 (parameter_typelist): New production.
1071 (tokentab3): Add "..." token.
1072 * eval.c (make_params): Handle varargs.
1073 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1076 2012-07-06 Tom Tromey <tromey@redhat.com>
1079 * c-exp.y (%union) <tvec>: Change type.
1080 (func_mod): Now uses <tvec> type.
1081 (exp): Update for tvec change.
1082 (direct_abs_decl): Push the typelist.
1083 (func_mod): Return a typelist.
1084 (nonempty_typelist): Update for tvec change.
1085 * gdbtypes.c (lookup_function_type_with_arguments): New function.
1086 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
1087 * parse.c (pop_type_list): New function.
1088 (push_typelist): New function.
1089 (follow_types): Handle tp_function_with_arguments.
1090 * parser-defs.h (type_ptr): New typedef. Define a VEC.
1091 (enum type_pieces) <tp_function_with_arguments>: New constant.
1092 (union type_stack_elt) <typelist_val>: New field.
1093 (push_typelist): Declare.
1095 2012-07-06 Tom Tromey <tromey@redhat.com>
1097 * c-exp.y (%union) <type_stack>: New field.
1098 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
1099 (ptr_operator_ts): New production.
1101 * parse.c (type_stack_reserve): New function.
1102 (check_type_stack_depth): Use it.
1103 (pop_type_stack, append_type_stack, push_type_stack)
1104 (get_type_stack, type_stack_cleanup): New functions.
1105 (follow_types): Handle tp_type_stack.
1106 (_initialize_parse): Simplify initialization.
1107 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
1109 (union type_stack_elt) <stack_val>: New field.
1110 (get_type_stack, append_type_stack, push_type_stack)
1111 (type_stack_cleanup): Declare.
1113 2012-07-06 Tom Tromey <tromey@redhat.com>
1115 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
1117 (struct type_stack): New.
1118 * parse.c (type_stack, type_stack_size, type_stack_depth):
1120 (type_stack): New global.
1121 (parse_exp_in_context, check_type_stack_depth)
1122 (insert_into_type_stack, insert_type, push_type, push_type_int)
1123 (insert_type_address_space, pop_type, pop_type_int)
1124 (_initialize_parse): Update.
1126 2012-07-06 Tom Tromey <tromey@redhat.com>
1128 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
1131 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1133 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
1135 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1136 Jan Kratochvil <jan.kratochvil@redhat.com>
1138 * cp-valprint.c (cp_print_value): Replace potentially unsafe
1139 alloca with xmalloc/xfree.
1141 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1143 * MAINTAINERS (Write After Approval): Add myself to the list.
1145 2012-07-05 Doug Evans <dje@google.com>
1147 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
1149 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1151 * ax-gdb.c (cli/cli-utils.h): New include.
1152 (linespec.h): Ditto.
1153 (agent_eval_command_one): New function.
1154 (agent_command_1): Ditto.
1155 (agent_command): Call function agent_command_1.
1156 (agent_eval_command): Ditto.
1157 (_initialize_ax_gdb): Change help for "maint agent"
1158 and "maint agent-eval".
1160 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1162 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
1163 * cli/cli-utils.c (check_for_argument): New function.
1164 * cli/cli-utils.h (check_for_argument): Ditto.
1166 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1168 * NEWS: Mention x32 ABI support.
1170 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1172 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1173 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1175 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1176 and pc_regnum_from_eax to -1. Update SP regnum from
1177 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1180 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1183 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1185 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1186 * dwarf2expr.h: Include gdbtypes.h.
1187 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1188 these forward declarations.
1189 (cu_offset, sect_offset): Move these ...
1190 * gdbtypes.h: Remove include dwarf2expr.h.
1191 (cu_offset, sect_offset): ... here.
1193 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1195 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1196 (amd64_linux_sigtramp_code): This.
1197 (amd64_x32_linux_sigtramp_code): New.
1198 (LINUX_SIGTRAMP_LEN): Updated.
1199 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1201 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1203 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1205 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1207 * config.in: Regenerate.
1208 * configure: Regenerate.
1209 * configure.ac: Remove check for gnu/libc-version.h.
1210 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1212 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1213 variables libc_version, libc_major and libc_minor. Replace sscanf by
1214 inferior_has_bug. Extend the comment.
1216 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1218 * linux-thread-db.c (inferior_has_bug): New function.
1219 (thread_db_find_new_threads_silently): Return boolean as checked by
1220 inferior_has_bug, describe it in the comments.
1221 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1222 earlier. Abort the initialization if it returned non-zero.
1223 (thread_db_new_objfile): Exclude debug files.
1224 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1227 2012-07-02 Doug Evans <dje@google.com>
1229 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1230 related to queue management.
1232 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1233 instead of "debug dwarf2-die" in debugging printfs.
1234 (create_debug_info_hash_table_reader): Ditto.
1235 (create_debug_info_hash_table): Ditto.
1236 (init_dwo_file): Ditto.
1237 (init_cutu_and_read_dies): Add debugging printf.
1238 (init_cutu_and_read_dies_no_follow): Ditto.
1239 (process_psymtab_comp_unit_reader): Ditto.
1241 2012-07-02 Stan Shebs <stan@codesourcery.com>
1243 Add target-side support for dynamic printf.
1244 * NEWS: Mention the additional style.
1245 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1246 (struct bp_location): New field cmd_bytecode.
1247 * breakpoint.c: Include format.h.
1248 (disconnected_dprintf): New global.
1249 (parse_cmd_to_aexpr): New function.
1250 (build_target_command_list): New function.
1251 (insert_bp_location): Call it.
1252 (remove_breakpoints_pid): Skip dprintf breakpoints.
1253 (print_one_breakpoint_location): Ditto.
1254 (dprintf_style_agent): New global.
1255 (dprintf_style_enums): Add dprintf_style_agent.
1256 (update_dprintf_command_list): Add agent case.
1257 (agent_printf_command): New function.
1258 (_initialize_breakpoint): Add new commands.
1259 * common/ax.def (printf): New bytecode.
1260 * ax.h (ax_string): Declare.
1261 * ax-gdb.h (gen_printf): Declare.
1262 * ax-gdb.c: Include cli-utils.h, format.h.
1263 (gen_printf): New function.
1264 (maint_agent_print_command): New function.
1265 (_initialize_ax_gdb): Add maint agent-printf command.
1266 * ax-general.c (ax_string): New function.
1267 (ax_print): Add printf disassembly.
1268 * Makefile.in (SFILES): Add format.c
1269 (COMMON_OBS): Add format.o.
1270 * common/format.h: New file.
1271 * common/format.c: New file.
1272 * printcmd.c: Include format.h.
1273 (ui_printf): Call parse_format_string.
1274 * remote.c (remote_state): New field breakpoint_commands.
1275 (PACKET_BreakpointCommands): New enum.
1276 (remote_breakpoint_commands_feature): New function.
1277 (remote_protocol_features): Add new BreakpointCommands entry.
1278 (remote_can_run_breakpoint_commands): New function.
1279 (remote_add_target_side_commands): New function.
1280 (remote_insert_breakpoint): Call it.
1281 (remote_insert_hw_breakpoint): Ditto.
1282 (_initialize_remote): Add new packet configuration for
1283 target-side breakpoint commands.
1284 * target.h (struct target_ops): New field
1285 to_can_run_breakpoint_commands.
1286 (target_can_run_breakpoint_commands): New macro.
1287 * target.c (update_current_target): Handle
1288 to_can_run_breakpoint_commands.
1290 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1292 Execute -ix and -iex only after system and user gdbinit files.
1293 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1294 processing down after gdbinit files.
1296 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1298 Add fnmatch-gnu module.
1299 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1300 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1301 * gnulib/aclocal.m4: Regenerate.
1302 * gnulib/config.in: Regenerate.
1303 * gnulib/configure: Regenerate.
1304 * gnulib/import/dummy.c: Remove.
1305 * gnulib/import/Makefile.am: Regenerate.
1306 * gnulib/import/Makefile.in: Likewise.
1307 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1308 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1309 * gnulib/import/alloca.c: New file.
1310 * gnulib/import/alloca.in.h: Likewise.
1311 * gnulib/import/config.charset: Likewise.
1312 * gnulib/import/fnmatch.c: Likewise.
1313 * gnulib/import/fnmatch.in.h: Likewise.
1314 * gnulib/import/fnmatch_loop.c: Likewise.
1315 * gnulib/import/localcharset.c: Likewise.
1316 * gnulib/import/localcharset.h: Likewise.
1317 * gnulib/import/m4/alloca.m4: Likewise.
1318 * gnulib/import/m4/codeset.m4: Likewise.
1319 * gnulib/import/m4/configmake.m4: Likewise.
1320 * gnulib/import/m4/fcntl-o.m4: Likewise.
1321 * gnulib/import/m4/fnmatch.m4: Likewise.
1322 * gnulib/import/m4/glibc21.m4: Likewise.
1323 * gnulib/import/m4/localcharset.m4: Likewise.
1324 * gnulib/import/m4/locale-fr.m4: Likewise.
1325 * gnulib/import/m4/locale-ja.m4: Likewise.
1326 * gnulib/import/m4/locale-zh.m4: Likewise.
1327 * gnulib/import/m4/mbrtowc.m4: Likewise.
1328 * gnulib/import/m4/mbsinit.m4: Likewise.
1329 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1330 * gnulib/import/m4/mbstate_t.m4: Likewise.
1331 * gnulib/import/m4/stdbool.m4: Likewise.
1332 * gnulib/import/m4/wchar_h.m4: Likewise.
1333 * gnulib/import/m4/wctype_h.m4: Likewise.
1334 * gnulib/import/m4/wint_t.m4: Likewise.
1335 * gnulib/import/mbrtowc.c: Likewise.
1336 * gnulib/import/mbsinit.c: Likewise.
1337 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1338 * gnulib/import/mbsrtowcs-state.c: Likewise.
1339 * gnulib/import/mbsrtowcs.c: Likewise.
1340 * gnulib/import/ref-add.sin: Likewise.
1341 * gnulib/import/ref-del.sin: Likewise.
1342 * gnulib/import/stdbool.in.h: Likewise.
1343 * gnulib/import/streq.h: Likewise.
1344 * gnulib/import/strnlen1.c: Likewise.
1345 * gnulib/import/strnlen1.h: Likewise.
1346 * gnulib/import/verify.h: Likewise.
1347 * gnulib/import/wchar.in.h: Likewise.
1348 * gnulib/import/wctype.in.h: Likewise.
1350 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1352 Support shell wildcards for 'set auto-load safe-path'.
1353 * auto-load.c: Include fnmatch.h.
1354 (filename_is_in_dir): Rename to ...
1355 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1356 it. Update function comment. Rename dir_len to pattern_len. New
1357 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1358 messages. Use gdb_filename_fnmatch.
1359 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1361 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1362 * defs.h (gdb_filename_fnmatch): New declaration.
1363 * utils.c: Include fnmatch.h.
1364 (gdb_filename_fnmatch): New function.
1366 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1368 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1369 `-probe' and `-probe-stap' options.
1371 2012-07-01 Yao Qi <yao@codesourcery.com>
1373 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1374 always_inserted_off, and always_inserted_enums.
1375 Change always_inserted_mode's type to 'enum auto_boolean'.
1376 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1378 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1379 of add_setshow_enum_cmd.
1380 * infrun.c: Remove can_use_displaced_stepping_auto,
1381 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1382 can_use_displaced_stepping_enum.
1383 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1384 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1385 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1386 add_setshow_enum_cmd.
1388 2012-06-30 Doug Evans <dje@google.com>
1390 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1391 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1392 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1394 2012-06-29 Doug Evans <dje@google.com>
1396 * linespec.c: #include "stack.h".
1397 (decode_line_with_current_source): Moved here from symtab.c and
1398 renamed from decode_line_spec. All callers updated.
1399 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1400 renamed from decode_line_spec_1. All callers updated.
1401 * linespec.h (decode_line_with_current_source): Move declaration here
1402 from symtab.h and renamed from decode_line_spec.
1403 (decode_line_with_last_displayed): Move declaration here from symtab.h
1404 and renamed from decode_line_spec_1.
1405 * macrocmd.c: #include "linespec.h".
1406 * symtab.c: Remove #include "linespec.h".
1408 2012-06-28 Doug Evans <dje@google.com>
1410 * dwarf2read.c (get_cu_length): New function.
1411 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1412 (create_debug_types_hash_table): Ditto.
1413 (init_cutu_and_read_dies): Ditto.
1414 (init_cutu_and_read_dies_no_follow): Ditto.
1416 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1418 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1419 (struct abbrev_table): Define.
1420 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1422 (init_cutu_and_read_dies): Update.
1423 (abbrev_table_alloc_abbrev): New function. Replaces
1424 dwarf_alloc_abbrev. All callers updated.
1425 (abbrev_table_add_abbrev): New function.
1426 (abbrev_table_lookup_abbrev): New function. Replaces
1427 dwarf2_lookup_abbrev. All callers updated.
1428 (abbrev_table_read_table): New function. Contents moved here from
1429 dwarf2_read_abbrevs.
1430 (dwarf2_read_abbrevs): Call it.
1431 (abbrev_table_free): New function.
1432 (dwarf2_free_abbrev_table): Call it.
1434 2012-06-28 Stan Shebs <stan@codesourcery.com>
1436 * osdata.c (info_osdata_command): Filter out "Title" columns
1438 * common/linux-osdata.c (struct osdata_type): Add title field.
1439 (osdata_table): Add titles to each entry.
1440 (linux_command_xfer_osdata): Add a column for title data.
1442 2012-06-28 Stan Shebs <stan@codesourcery.com>
1444 Make logging work for MI.
1446 * interps.h (interp_set_logging_ftype): New typedef.
1447 (struct interp_procs): New field set_logging_proc.
1448 (current_interp_set_logging): Declare.
1449 * interps.c (current_interp_set_logging): New function.
1450 * cli/cli-logging.c: Include interps.h.
1451 (set_logging_redirect): Call current_interp_set_logging.
1452 (pop_output_files): Ditto.
1453 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1454 * mi/mi-console.h (mi_console_set_raw): Declare.
1455 * mi/mi-console.c (mi_console_set_raw): New function.
1456 * mi/mi-interp.c (saved_raw_stdout): New global.
1457 (mi_set_logging): New function.
1458 (_initialize_mi_interp): Add it to interp procs.
1460 2012-06-28 Doug Evans <dje@google.com>
1462 * symtab.c (lookup_symbol_aux_objfile): Use
1463 ALL_OBJFILE_PRIMARY_SYMTABS.
1465 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1467 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1469 * common/buffer.c: Include inttypes.h and stdint.h.
1470 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1472 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1473 Pedro Alves <palves@redhat.com>
1475 * gdbthread.h (ALL_THREADS): New macro.
1476 (thread_list): Declare.
1477 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1478 going, but instead fall through to the stepping handling.
1479 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1480 the passed in signal. Adjust debug output.
1481 (resume_callback): Rename to ...
1482 (linux_nat_resume_callback): ... this. Pass the thread's last
1483 stop signal, if in "pass" state.
1484 (linux_nat_resume): Adjust to rename.
1485 (stop_wait_callback): New assertion. Don't respawn signals;
1486 instead let the LWP remain with SIGNALLED set.
1487 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1488 * remote.c (append_pending_thread_resumptions): New.
1489 (remote_vcont_resume): Call it.
1490 * target.h (target_resume): Extend comment.
1492 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1494 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1496 2012-06-27 Doug Evans <dje@google.com>
1498 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1499 Delete have_addr_base, unused. All uses updated.
1500 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1501 (dwarf2_get_pc_bounds): Add ranges_base.
1502 (dwarf2_record_block_ranges): Ditto.
1504 2012-06-27 Tom Tromey <tromey@redhat.com>
1507 * varobj.c (varobj_create): Update.
1508 (varobj_set_value): Update.
1509 * tracepoint.c (validate_actionline): Update.
1510 (encode_actions_1): Update.
1511 * parse.c (parse_exp_1): Add 'pc' argument.
1512 (parse_exp_in_context): Add 'pc' argument. Change how
1513 expression_context_pc is set.
1514 (parse_expression): Update.
1515 (parse_field_expression): Update.
1516 * expression.h (parse_exp_1): Update.
1517 * eval.c (parse_to_comma_and_eval): Update.
1518 * breakpoint.c (set_breakpoint_condition): Update.
1519 (update_watchpoint): Update.
1520 (init_breakpoint_sal): Update
1521 (find_condition_and_thread): Update.
1522 (watch_command_1): Update.
1523 (update_breakpoint_locations): Update.
1524 * ada-lang.c (ada_read_renaming_var_value): Update.
1525 (create_excep_cond_exprs): Update.
1527 2012-06-27 Doug Evans <dje@google.com>
1529 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1532 2012-06-26 Doug Evans <dje@google.com>
1534 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1536 (error_check_comp_unit_head): New arg abbrev_section. All callers
1538 (read_and_check_comp_unit_head): Ditto.
1539 (read_and_check_type_unit_head): Ditto.
1541 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1543 New attribute 'last' for gdb.Symtab_and_line.
1544 * NEWS (Python Scripting): Add entry about the new attribute.
1545 * python/py-symtab.c (salpy_get_last): New function which
1546 implements the get method for the 'last' attribute of
1547 gdb.Symtab_and_line.
1548 (sal_object_getset): Add entry for the 'last' attribute.
1550 2012-06-26 Doug Evans <dje@google.com>
1552 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1553 (dwo_sections): Add macinfo, macro.
1554 (dwarf2_locate_dwo_sections): Watch for macro sections.
1555 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1556 All callers updated. Handle DWO files.
1558 * NEWS: Mention new options "set debug dwarf2-read" and
1559 "set debug symtab-create".
1560 * dwarf2read.c (dwarf2_read_debug): New static global.
1561 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1562 (process_queue): Ditto.
1563 (process_full_comp_unit): Ditto.
1564 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1565 * elfread.c (elf_symfile_read): Add debugging printf.
1566 * minsyms.c (install_minimal_symbols): Ditto.
1567 * psymtab.c (allocate_psymtab): Ditto.
1568 * symfile.c (allocate_symtab): Ditto.
1569 * symtab.c (symtab_create_debug): New global.
1570 (_initialize_symtab): Add new option "set debug symtab-create".
1571 * symtab.h (symtab_create_debug): Declare.
1573 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1574 (lookup_dwo_type_unit): Ditto.
1576 2012-06-26 Roland McGrath <roland@hack.frob.com>
1577 H.J. Lu <hongjiu.lu@intel.com>
1579 * amd64-linux-nat.c: Include <sys/user.h>.
1580 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1581 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1582 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1584 * configure.ac: Check if the fs_base and gs_base members of
1585 `struct user_regs_struct' exist.
1586 * config.in: Regenerated.
1587 * configure: Likewise.
1589 2012-06-25 Michael Eager <eager@eagercon.com>
1592 * python/python.c (gdbpy_write): Check for interrupted output.
1594 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1596 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1597 register as a stack alignment in ARM mode.
1599 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1601 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1602 * gnulib/config.in: Regenerate.
1603 * gnulib/configure: Likewise.
1604 * gnulib/import/m4/extensions.m4: Update it.
1605 * gnulib/import/m4/gnulib-common.m4: Likewise.
1606 * gnulib/import/m4/memmem.m4: Likewise.
1607 * gnulib/import/m4/mmap-anon.m4: Likewise.
1608 * gnulib/import/m4/multiarch.m4: Likewise.
1609 * gnulib/import/stdint.in.h: Likewise.
1611 2012-06-24 Yao Qi <yao@codesourcery.com>
1613 * corefile.c (write_memory_with_notification): New.
1614 * gdbcore.h: Declare write_memory_with_notification.
1615 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1616 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1617 * valops.c (value_assign): Likewise.
1618 * python/py-inferior.c (infpy_write_memory): Call
1619 'write_memory_with_notification'.
1621 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1623 * cc-with-index.sh: Use also -ex "set auto-load no".
1625 2012-06-23 Doug Evans <dje@google.com>
1628 * NEWS: Document additions to .gdb_index.
1629 * dwarf2read.c: #include "gdb/gdb-index.h".
1630 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1631 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1632 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1633 (dwarf2_read_index): Recognize version 7.
1634 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1635 block_kind, domain): All callers updated.
1636 (dw2_find_symbol_file): Handle new index CU values.
1637 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1638 (add_index_entry): New args is_static, kind. All callers updated.
1639 (offset_type_compare, uniquify_cu_indices): New functions
1640 (symbol_kind): New function.
1641 (write_psymtabs_to_index): Remove duplicate CU values.
1642 (write_psymtabs_to_index): Write .gdb_index version 7.
1644 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1646 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1647 * configure: Regenerate.
1649 2012-06-20 Yao Qi <yao@codesourcery.com>
1651 * python/py-inferior.c: Update comments of infpy_read_memory
1652 and infpy_write_memory.
1654 2012-06-19 Tom Tromey <tromey@redhat.com>
1657 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1658 (push_type_address_space): Remove.
1659 * parse.c (insert_into_type_stack): New function.
1660 (insert_type): Likewise.
1661 (insert_type_address_space): Rename from push_type_address_space.
1662 Insert tp_space_identifier.
1663 * c-exp.y (ptr_operator): New production.
1664 (abs_decl): Use ptr_operator.
1665 (space_identifier): Call insert_type_address_space.
1666 (ptype): Don't use const_or_volatile_or_space_identifier.
1667 (const_or_volatile_noopt): Call insert_type.
1668 (conversion_type_id, conversion_declarator): New productions.
1669 (operator): Use conversion_type_id.
1671 2012-06-18 Doug Evans <dje@google.com>
1673 * symtab.h (minimal_symbol): New member created_by_gdb.
1674 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1676 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1677 (search_symbols): Call it instead of lookup_symbol.
1678 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1680 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1681 Adjust address for DW_OP_GNU_addr_index.
1682 * dwarf2expr.h (dwarf_expr_context): Update comment.
1683 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1684 all callers updated. Handle TLS vars described with
1685 DW_OP_GNU_const_index.
1686 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1687 and DW_OP_GNU_const_index.
1688 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1690 * block.c (find_block_in_blockvector): Make explicit the fact that we
1691 ignore GLOBAL_BLOCK.
1693 2012-06-18 Tom Tromey <tromey@redhat.com>
1695 * c-exp.y (operator): Remove trailing space after "delete" and
1698 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1699 Jan Kratochvil <jan.kratochvil@redhat.com>
1701 Switch i386 and derived targets to ON_STACK.
1702 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1703 (amd64_dicos_init_abi): Remove its installment.
1704 * dicos-tdep.c (dicos_init_abi): Remove the
1705 set_gdbarch_call_dummy_location call. Update the comment here.
1706 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1707 (i386_dicos_init_abi): Remove its installment.
1708 * i386-tdep.c (i386_push_dummy_code): New function.
1709 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1710 i386_push_dummy_code.
1712 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1714 Remove stale dummy frames.
1715 * breakpoint.c: Include dummy-frame.h.
1716 (longjmp_breakpoint_ops): New variable.
1717 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1718 bp_longjmp_call_dummy.
1719 (bpstat_what, bptype_string, print_one_breakpoint_location)
1720 (init_bp_location): Support bp_longjmp_call_dummy.
1721 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1722 (set_longjmp_breakpoint_for_call_dummy)
1723 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1725 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1726 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1727 FIXME comment and extend the other comment for bp_call_dummy.
1728 (set_longjmp_breakpoint_for_call_dummy)
1729 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1730 * dummy-frame.c: Include gdbthread.h.
1731 (pop_dummy_frame_bpt): New function.
1732 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1733 (dummy_frame_discard): New function.
1734 (cleanup_dummy_frames): Update the comment about longjmps.
1735 * dummy-frame.h (dummy_frame_discard): New declaration.
1736 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1737 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1738 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1739 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1740 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1741 keep_going if IS_LONGJMP and there is no other reason to stop.
1743 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1745 * remote-sim.c (sim_command_completer): Initialize
1748 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1750 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1751 * dwarf2loc.c (call_site_parameter_matches): Support
1752 CALL_SITE_PARAMETER_PARAM_OFFSET.
1753 (needs_dwarf_reg_entry_value): Push stub value.
1754 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1755 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1756 * gdbtypes.h (enum call_site_parameter_kind): New item
1757 CALL_SITE_PARAMETER_PARAM_OFFSET.
1758 (struct call_site.parameter.u): New field param_offset.
1760 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1762 Code cleanup: Generalize call_site.parameter key.
1763 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1764 variable dwarf_reg. New variable kind_u. Update parameters to
1765 push_dwarf_reg_entry_value.
1766 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1767 * dwarf2expr.h (enum call_site_parameter_kind)
1768 (union call_site_parameter_u): Forward declarations.
1769 (struct dwarf_expr_context_funcs): Update parameters and their
1770 description for push_dwarf_reg_entry_value.
1771 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1772 * dwarf2loc.c (call_site_parameter_matches): New function.
1773 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1774 description. Use call_site_parameter_matches.
1775 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1776 Update parameters and their description.
1777 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1778 New variable kind_u. Adjust the caller for updated parameters.
1779 (needs_dwarf_reg_entry_value): Update parameters.
1780 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1781 instead of attr. Update for the changed fields of struct
1782 call_site_parameter.
1783 * gdbtypes.h: Include dwarf2expr.h.
1784 (enum call_site_parameter_kind): New.
1785 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1786 fb_offset into new union u.
1788 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1790 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1791 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1794 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1796 * amd64-linux-nat.c (compat_x32_clock_t): New.
1797 (compat_x32_siginfo_t): Likewise.
1798 (compat_x32_siginfo_from_siginfo): Likewise.
1799 (siginfo_from_compat_x32_siginfo): Likewise.
1800 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1801 and siginfo_from_compat_x32_siginfo for x32.
1803 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
1805 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1807 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1809 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1810 instead of gdbarch_ptr_bit.
1811 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1812 (amd64_supply_native_gregset): Likewise.
1813 (amd64_collect_native_gregset): Likewise.
1814 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1815 (amd64_supply_xsave): Likewise.
1816 (amd64_collect_fxsave): Likewise.
1817 (amd64_collect_xsave): Likewise.
1819 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1821 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1822 (amd64_linux_read_description): Check DS segment register for
1825 2012-06-15 Tom Tromey <tromey@redhat.com>
1827 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1828 init_cutu_and_read_dies.
1830 2012-06-15 Iain Sandoe <iain@codesourcery.com>
1832 * MAINTAINERS (Write After Approval): Add myself to the list.
1834 2012-06-15 Tom Tromey <tromey@redhat.com>
1836 * valops.c (value_find_oload_method_list): Now static.
1837 * value.h (value_find_oload_method_list): Don't declare.
1839 2012-06-15 Tom Tromey <tromey@redhat.com>
1841 * valops.c (find_overload_match): Use value_ind.
1843 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1845 * infrun.c (handle_inferior_event): Correct indentation.
1847 2012-06-14 Doug Evans <dje@google.com>
1849 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1850 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1852 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1853 updated. Handle DEBUG_LOC_START_LENGTH.
1854 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1855 (loclist_describe_location): Ditto.
1857 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1860 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1861 after hiding inline functions.
1863 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1865 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1866 _initialize_inf_ttrace.
1868 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1870 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1871 _initialize_hppa_hpux_nat.
1873 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1875 * remote-sim.c (sim_command_completer): Change type of return
1876 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1878 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1879 Jan Kratochvil <jan.kratochvil@redhat.com>
1882 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1883 stack on a 16-byte boundary.
1885 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
1887 * jit.c (finalize_symtab): Set function's return type to 'void' by
1890 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1891 H.J. Lu <hongjiu.lu@intel.com>
1893 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1894 Move bits common to both the classic LP64 and the new x32 ILP32
1896 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1897 (amd64_x32_linux_init_abi): New function.
1898 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1901 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1902 * i386-tdep.c (i386_pseudo_register_name): Make public.
1903 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1904 * amd64-tdep.c (amd64_dword_names): Add "eip".
1905 (amd64_x32_pseudo_register_type): New function
1906 (amd64_x32_init_abi): New function.
1908 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1911 * inferior.h (struct inferior_suspend_state): Comment out.
1912 (struct inferior): Comment out the field suspend.
1913 * infrun.c (struct infcall_suspend_state): Comment out the field
1915 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1918 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1920 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1921 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1922 function comment. Return ERROR for unresolved cases. Implement
1923 returning proper NAME.
1924 (yylex): Accept also NAME from classify_inner_name.
1925 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1926 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1928 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1930 2012-06-13 Tom Tromey <tromey@redhat.com>
1932 * breakpoint.c (condition_completer): New function.
1933 (_initialize_breakpoint): Use it.
1934 * value.c (complete_internalvar): New function.
1935 * value.h (complete_internalvar): Declare.
1937 2012-06-13 Tom Tromey <tromey@redhat.com>
1939 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1940 * breakpoint.c (catch_syscall_completer): Return a VEC.
1941 * cli/cli-cmds.c (complete_command): Update.
1942 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1943 (complete_on_enum): Likewise.
1944 * command.h: Include gdb_vecs.h.
1945 (completer_ftype): Change return type.
1946 (complete_on_cmdlist, complete_on_enum): Likewise.
1947 * completer.c (noop_completer, filename_completer)
1948 (location_completer): Return a VEC.
1949 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1951 (expression_completer, complete_line_internal, complete_line)
1952 (command_completer): Return a VEC.
1953 (gdb_completion_word_break_characters, line_completion_function):
1955 * completer.h: Include gdb_vecs.h.
1956 (complete_line, noop_completer, filename_completer)
1957 (expression_completer, location_completer, command_completer):
1959 * f-lang.c (f_word_break_characters): Return a VEC.
1960 * interps.c (interpreter_completer): Return a VEC.
1961 * language.h (struct language_defn)
1962 <la_make_symbol_completion_list>: Return a VEC.
1963 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1964 * symtab.c (free_completion_list): Take a VEC.
1965 (return_val_size, return_val_index): Remove.
1966 (return_val): Now a VEC.
1967 (completion_list_add_name): Update.
1968 (default_make_symbol_completion_list_break_on)
1969 (default_make_symbol_completion_list, make_symbol_completion_list)
1970 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1972 (add_filename_to_list): Update.
1973 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1975 (maybe_add_partial_symtab_filename): Update.
1976 (make_source_files_completion_list): Return a VEC.
1977 * symtab.h (default_make_symbol_completion_list_break_on)
1978 (default_make_symbol_completion_list, make_symbol_completion_list)
1979 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1980 (make_source_files_completion_list): Update.
1982 2012-06-13 Tom Tromey <tromey@redhat.com>
1984 * breakpoint.c (add_catch_command): Use completer_ftype.
1985 * breakpoint.h: Include command.h.
1986 (add_catch_command): Use completer_ftype.
1987 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1988 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1989 Use completer_ftype.
1990 * command.h (completer_ftype): New typedef.
1991 (set_cmd_completer): Use it.
1992 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1995 2012-06-13 Pedro Alves <palves@redhat.com>
1997 Partial revert of previous change.
1999 * serial.c (scb_base): New global.
2000 (serial_for_fd): New.
2001 (serial_open, serial_fdopen_ops): Link new serial in open serials
2003 (do_serial_close): Unlink serial from the open serials chain.
2005 2012-06-12 Pedro Alves <palves@redhat.com>
2007 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
2009 (prepare_for_detach): No longer context switch here in non-stop
2011 (fetch_inferior_event): Ditto.
2012 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
2013 to the event thread before removing breakpoints. Switch to the
2014 event thread before inserting breakpoints and resuming.
2015 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
2016 event thread before resuming.
2017 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
2018 Switch to the event thread before removing breakpoints.
2020 2012-06-12 Eli Zaretskii <eliz@gnu.org>
2022 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
2023 special characters correctly for the Windows shells. See
2024 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
2026 [!__MINGW32__]: Remove extra double quote character from special
2029 2012-06-11 Stan Shebs <stan@codesourcery.com>
2031 * ui-out.h: Remove #if 0 declarations.
2032 * ui-out.c: Remove #if 0 functions.
2034 2012-06-11 Pedro Alves <palves@redhat.com>
2036 * ser-base.c (run_async_handler_and_reschedule): New.
2037 (fd_event, push_event): Use it.
2038 * serial.c (serial_open, serial_fdopen_ops): Set the initial
2039 reference count to 1.
2040 (do_serial_close): Set the bufp field to NULL. Use serial_unref
2042 (serial_is_open, serial_ref, serial_unref): New.
2043 * serial.h (serial_open): Adjust comment.
2044 (serial_is_open): Declare.
2045 (serial_close): Adjust comment.
2046 (serial_ref, serial_unref) Declare.
2047 (struct serial): New field 'refcnt'.
2049 2012-06-11 Pedro Alves <palves@redhat.com>
2051 Remove #if 0'd "connect" command, and unnecessary associated
2052 refcounting and serial reuse bits.
2054 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
2055 * serial.c (last_serial_opened): Delete.
2057 (serial_open): Adjust.
2058 (serial_for_fd): Delete.
2059 (serial_fdopen_ops, do_serial_close): Adjust.
2060 (serial_fdopen_ops): Adjust.
2062 2012-06-11 Pedro Alves <palves@redhat.com>
2064 * serial.c (do_serial_close): Remove early return when SCB is
2067 2012-06-11 Tom Tromey <tromey@redhat.com>
2069 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
2071 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2073 Fix regression by the "ambiguous linespec" series.
2074 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
2075 get_last_displayed_symtab and get_last_displayed_line and depending
2078 2012-06-11 Tom Tromey <tromey@redhat.com>
2080 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
2081 (dw2_find_symbol_file): Use it.
2083 2012-06-11 Michael Eager <eager@eagercon.com>
2085 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
2086 * mips-linux-tdep.h (mips_signals): New
2088 2012-06-11 Tom Tromey <tromey@redhat.com>
2090 * infrun.c (handle_inferior_event)
2091 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
2093 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
2094 exception logic in all cases. Update comments.
2095 (insert_longjmp_resume_breakpoint): Set the exception resume
2098 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
2100 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
2102 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
2104 * valarith.c (binop_types_user_defined_p): Fix a typo.
2106 2012-06-08 Yao Qi <yao@codesourcery.com>
2107 Chung-Lin Tang <cltang@codesourcery.com>
2109 * arch-utils.c (default_return_in_first_hidden_param_p): New.
2110 * arch-utils.h: Declare.
2111 * gdbarch.sh: Add return_in_first_hidden_param_p.
2112 * gdbarch.c, gdbarch.h: Regenerated.
2113 * infcall.c (call_function_by_hand): Call
2114 gdbarch_return_in_first_hidden_param_p instead of
2115 language_pass_by_reference.
2117 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
2118 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
2119 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
2120 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
2121 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
2122 `cplus_return_struct_by_reference'.
2123 (tic6x_return_value): Handle language cplusplus.
2124 (tic6x_return_in_first_hidden_param_p): New.
2125 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
2127 2012-06-07 Doug Evans <dje@google.com>
2129 * dwarf2read.c (dwarf2_cu): Add comment.
2131 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2133 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
2135 (mips_eabi_push_dummy_call): Likewise.
2136 (mips_n32n64_push_dummy_call): Likewise.
2137 (mips_o32_push_dummy_call): Likewise.
2138 (mips_o64_push_dummy_call): Likewise.
2140 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2142 * mips-tdep.c (mips_convert_register_p): Correct coding style.
2144 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2146 * mips-tdep.c (mips_pseudo_register_type): Use
2147 mips_float_register_p.
2149 2012-06-06 Pedro Alves <palves@redhat.com>
2151 * infrun.c (handle_inferior_event): Remove calls to
2152 reinit_frame_cache that follow a context_switch call.
2154 2012-06-06 Pedro Alves <palves@redhat.com>
2156 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
2157 context_switch and remove stale comment.
2159 2012-06-06 Pedro Alves <palves@redhat.com>
2161 * infrun.c (struct execution_control_state): Remove
2162 `new_thread_event' field.
2163 (handle_inferior_event): Simplify new threads handling; don't
2164 resume the inferior if we find a new thread.
2166 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
2168 * NEWS: Document the deprecation of SH's 'regs' command.
2169 * inferior.h (all_registers_info): Add function declaration.
2170 * sh-tdep.c (sh_show_regs): Remove variable.
2171 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2172 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2173 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2174 (sh_show_regs_command): Remove functions.
2175 (sh_gdbarch_init): Don't set sh_show_regs.
2176 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2177 'info all-registers'.
2178 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2179 (sh64_show_regs): Remove functions.
2180 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2182 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2184 * configure.ac: Move development=true below AC_INIT.
2185 * configure: Regenerate.
2187 2012-06-05 Stan Shebs <stan@codesourcery.com>
2189 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2192 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2194 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2195 argument as ssize_t.
2196 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2197 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2198 * target.c (target_read_stack, target_write_memory)
2199 (target_write_raw_memory): Likewise.
2200 * target.h (target_read_stack, target_write_memory)
2201 (target_write_raw_memory): Likewise.
2203 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2205 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2206 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2207 * target.c (target_read_memory): Change LEN to ssize_t.
2208 * target.h (target_read_memory): Change LEN to ssize_t.
2210 2012-06-05 Pedro Alves <palves@redhat.com>
2214 * breakpoint.c (until_break_command): Only fetch the selected
2215 frame after decode_line_1.
2217 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2219 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2220 event breakpoint at _start, __start or main if a program
2221 interpreter is not found.
2223 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2225 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2227 * windows-tdep.c: #include "objfiles.h".
2228 (windows_iterate_over_objfiles_in_search_order): New function.
2229 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2230 iterate_over_objfiles_in_search_order gdbarch method to
2231 windows_iterate_over_objfiles_in_search_order.
2232 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2234 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2236 * gdbarch.sh: Add generation of
2237 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2238 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2239 (iterate_over_objfiles_in_search_order): New gdbarch method.
2240 * gdbarch.h, gdbarch.c: Regenerate.
2241 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2243 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2245 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2246 out of lookup_symbol_aux_symtabs.
2247 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2248 call to lookup_symbol_aux_objfile.
2249 (struct global_sym_lookup_data): New type.
2250 (lookup_symbol_global_iterator_cb): New function.
2251 (lookup_symbol_global): Search for symbol using
2252 gdbarch_iterate_over_objfiles_in_search_order and
2253 lookup_symbol_global_iterator_cb.
2254 * findvar.c (struct minsym_lookup_data): New type.
2255 (minsym_lookup_iterator_cb): New function.
2256 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2257 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2258 and minsym_lookup_iterator_cb.
2260 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2262 Revert the following patch:
2263 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2264 try locating the symbol in the symbol's own objfile first, before
2265 extending the search to all objfiles.
2266 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2267 out of lookup_symbol_aux_symtabs.
2268 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2269 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2270 Do not search EXCLUDE_OBJFILE.
2271 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2272 (lookup_symbol_global): Search for matches in the block's objfile
2273 first, before searching all other objfiles.
2275 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2277 * breakpoint.c (find_condition_and_thread): Stop parsing
2278 as soon as the first invalid keyword is found.
2280 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2282 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2284 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2286 * config/djgpp/djcheck.sh: Add copyright header.
2288 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2290 * copyright.py (update_files, main): Fix path to update-copyright
2293 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2295 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2296 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2297 for which a reminder to update by hand is printed.
2299 2012-06-04 Doug Evans <dje@google.com>
2301 * buildsym.c (make_blockvector): Add comment.
2303 2012-06-04 Pedro Alves <palves@redhat.com>
2305 * arch-utils.c (default_gdb_signal_from_target): Delete.
2306 * arch-utils.h (default_gdb_signal_from_target): Delete.
2307 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2308 gdbarch_gdb_signal_from_target_p.
2309 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2311 * gdbarch.h: Regenerate.
2312 * gdbarch.c: Regenerate.
2314 2012-06-04 Pedro Alves <palves@redhat.com>
2316 * gdbarch.sh (gdb_signal_from_target): Mention that the
2317 implementation of the method must be host independent.
2318 * gdbarch.h: Regenerate.
2320 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2322 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2324 (target_read_memory_bfd): New function.
2325 (symbol_file_add_from_memory): Use it.
2327 2012-06-03 Doug Evans <dje@google.com>
2329 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2331 (basic_lookup_transparent_type): Ditto.
2333 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2334 (ALL_PRIMARY_SYMTABS): Use it.
2335 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2336 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2337 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2338 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2339 (basic_lookup_transparent_type): Ditto.
2341 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2343 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2344 it to optimize resolution of demangled name.
2346 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2348 * configure.ac (development): Define new variable.
2349 Call AC_CHECK_LIB for mcheck if $development.
2350 (ERROR_ON_WARNING): Enable it by default only if $development.
2351 * config.in: Regenerate.
2352 * configure: Regenerate.
2354 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2356 * target.c (target_read_memory): Make LEN argument as size_t.
2357 * target.h (target_read_memory): Likewise.
2359 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2361 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2363 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2365 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2366 BookE interface for PowerPC server processors if not available
2367 in the Linux Kernel.
2369 2012-05-31 Keith Seitz <keiths@redhat.com>
2371 * linespec.c (decode_objc): Add cleanup to free
2373 (find_linespec_symbols): Add cleanup to free CLASSES.
2374 * symfile.c (find_separate_debug_file_by_debuglink): Add
2375 cleanup to free DEBUGLINK.
2376 * ui-out.c (clear_header_list): No need to check if
2377 HEADER_NEXT.COLHDR is NULL.
2378 Free HEADER_NEXT.COL_NAME.
2380 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2382 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2385 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2387 * configure.host (gdb_host_cpu): Handle tilegx*.
2388 (gdb_host): Handle tilegx-*-linux*.
2389 * tilegx-linux-nat.c: New file.
2390 * config/tilegx/linux.mh: New file.
2392 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2394 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2395 tilegx-linux-tdep.o.
2396 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2397 tilegx-linux-tdep.c.
2398 * configure.tgt: Handle tilegx-*-linux*.
2399 * tilegx-tdep.h: New file.
2400 * tilegx-tdep.c: New file.
2401 * tilegx-linux-tdep.c: New file.
2402 * regformats/reg-tilegx.dat: New file.
2404 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2406 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2407 accounting of hw watchpoints on ppc.
2409 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2411 * source.c (openp): Expand tilde in path entries.
2413 2012-05-29 Doug Evans <dje@google.com>
2415 * buildsym.c (block_compar): Fix comment.
2416 (end_symtab): Fix and clarify some comments.
2418 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2419 cleanup_undefined_types.
2420 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2421 All callers updated.
2423 2012-05-29 Tom Tromey <tromey@redhat.com>
2425 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2427 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2428 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2430 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2433 2012-05-29 Tristan Gingold <gingold@adacore.com>
2435 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2436 (struct darwin_info): ... New struct.
2437 (solib_darwin_pspace_data): New variable.
2438 (darwin_pspace_data_cleanup): New function.
2439 (get_darwin_info): Likewise.
2440 (darwin_dyld_version_ok, darwin_load_image_infos)
2441 (darwin_solib_get_all_image_info_addr_at_init)
2442 (darwin_solib_read_all_image_info_addr): Add info argument.
2444 (darwin_current_sos): Use per pspace structure.
2445 (darwin_solib_create_inferior_hook): Likewise.
2446 (darwin_clear_solib): Likewise.
2447 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2449 2012-05-28 Pedro Alves <palves@redhat.com>
2451 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2452 block that uses them. Clear ecss before handling each event.
2454 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2456 * solib-svr4.c (svr4_current_sos): New comment on
2457 svr4_current_sos_via_xfer_libraries fall back.
2459 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2461 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2462 it as a fallback for TYPE_IS_OPAQUE.
2463 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2464 symbols for lookup_symbol.
2466 2012-05-24 John Steele Scott <toojays@toojays.net>
2468 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2469 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2470 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2471 (check_producer): ... this new function, which also checks for ICC
2472 and caches the result.
2473 (producer_is_icc): New function.
2474 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2477 2012-05-24 Pedro Alves <palves@redhat.com>
2481 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2482 (default_gdb_signal_to_target): ... this. Add comment.
2483 (default_gdb_signal_from_host): Rename to ...
2484 (default_gdb_signal_from_target): ... this. Add comment.
2485 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2486 (default_gdb_signal_to_target): ... this.
2487 (default_gdb_signal_from_host): Rename to ...
2488 (default_gdb_signal_from_target): ... this.
2489 * corelow.c (core_open): Adjust to naming change. Replace comment.
2490 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2491 (gdb_signal_from_target): ... this. Adjust to
2492 default_gdb_signal_from_host naming change. Extend comment.
2493 (gdb_signal_to_host): Rename to ...
2494 (gdb_signal_to_target): ... this. Adjust to
2495 default_gdb_signal_to_host naming change.
2496 * gdbarch.h, gdbarch.c: Renegerate.
2498 2012-05-24 Pedro Alves <palves@redhat.com>
2502 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2504 2012-05-24 Pedro Alves <palves@redhat.com>
2508 Replace target_signal with gdb_signal throughout.
2510 2012-05-24 Pedro Alves <palves@redhat.com>
2514 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2515 string, instead of reusing the va_list argument.
2517 2012-05-24 Tom Tromey <tromey@redhat.com>
2519 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2522 2012-05-23 Doug Evans <dje@google.com>
2524 * symtab.c (search_symbols): Formatting fixes.
2525 (print_symbol_info): Formatting fixes.
2527 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2528 int64_t change to leb128 API.
2529 (read_encoded_value, decode_frame_entry_1): Ditto.
2530 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2531 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2532 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2533 (execute_stack_op): Ditto.
2534 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2535 (safe_read_uleb128, safe_read_sleb128): Ditto.
2536 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2537 (dwarf2_compile_expr_to_ax): Ditto.
2538 (locexpr_describe_location_piece): Ditto.
2539 (disassemble_dwarf_expression): Ditto.
2540 (locexpr_describe_location_1): Ditto.
2542 2012-05-23 Stan Shebs <stan@codesourcery.com>
2543 Kwok Cheung Yeung <kcy@codesourcery.com>
2545 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2546 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2547 (mi-cmd-info.o): New rule.
2548 * osdata.h (info_osdata_command): New declaration.
2549 * osdata.c (info_osdata_command): Change to non-static.
2550 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2551 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2552 * mi/mi-cmd-info.c: New file.
2554 2012-05-23 Doug Evans <dje@google.com>
2556 * symtab.c (search_symbols): Pass NULL for file_matcher to
2557 expand_symtabs_matching if there are no files to match.
2559 * gdbtypes.c (lookup_typename): Simplify.
2561 2012-05-23 Pedro Alves <palves@redhat.com>
2563 * arch-utils.h (default_target_signal_to_host): Delete.
2564 * arch-utils.c (default_target_signal_to_host): Delete.
2565 * gdbarch.sh (target_signal_to_host): Remove.
2566 * gdbarch.h, gdbarch.c: Regenerate.
2568 2012-05-22 Doug Evans <dje@google.com>
2570 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2572 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2573 (execute_cfa_program): Update to match API of leb128 functions.
2574 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2576 (read_unsigned_leb128, read_signed_leb128): Delete.
2577 (read_initial_length): Change type of buf argument to
2579 (read_encoded_value): Update to match API of leb128 functions.
2580 (decode_frame_entry): Change result to "const gdb_byte *", and
2581 similarly for "start" parameter.
2582 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2583 (dwarf2_build_frame_info): Change local frame_ptr to
2585 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2586 read_uleb128, read_sleb128. All callers updated.
2587 (safe_skip_leb128): New function.
2588 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2589 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2590 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2591 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2592 read_uleb128, read_sleb128.
2593 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2594 (execute_stack_op): Update to match API of leb128 functions.
2595 * dwarf2expr.h: #include "leb128.h".
2596 (read_uleb128, read_sleb128): Delete.
2597 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2598 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2599 * dwarf2loc.c (debug_loc_kind): New enum.
2600 (decode_debug_loc_addresses): New function.
2601 (decode_debug_loc_dwo_addresses): New function.
2602 (dwarf2_find_location_expression): Rewrite.
2603 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2604 (locexpr_describe_location_piece): Ditto.
2605 (disassemble_dwarf_expression): Ditto.
2606 (locexpr_describe_location_1): Ditto.
2607 (loclist_describe_location): Rewrite.
2608 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2609 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2610 (dwarf2_section_buffer_overflow_complaint): Renamed from
2611 dwarf2_macros_too_long_complaint. All callers updated.
2612 (skip_leb128): Delete.
2613 (init_cu_die_reader): Initialize reader->buffer_end.
2614 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2615 (skip_form_bytes): New arg buffer_end. All callers updated.
2616 Replace call to skip_leb128 with gdb_skip_leb128.
2617 (skip_unknown_opcode): New arg mac_end. All callers updated.
2618 (fill_in_loclist_baton): Initialize baton->from_dwo.
2620 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2622 * mips-linux-nat.c (mips_linux_read_description): Use a more
2623 verbose error message.
2625 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2627 * NEWS: Add MIPS/Linux DSP support.
2628 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2629 (SIGCONTEXT_DSPCTL): New macro.
2630 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2631 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2632 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2633 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2634 (N64_SIGCONTEXT_HI3): Likewise.
2635 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2636 (N64_SIGCONTEXT_LO3): Likewise.
2637 (N64_SIGCONTEXT_DSPCTL): Likewise.
2638 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2639 (mips_linux_o32_sigframe_init): Handle DSP registers.
2640 (mips_linux_n32n64_sigframe_init): Likewise.
2642 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2644 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2647 2012-05-22 Pedro Alves <palves@redhat.com>
2649 * target.h (store_waitstatus): Move declaration ...
2650 * inf-child.h (store_waitstatus): ... here.
2651 * target.c: Move inclusion of gdb_wait.h, and ...
2652 (store_waitstatus): ... this ...
2653 * inf-child.c: ... here.
2654 * linux-nat.c: Include inf-child.h.
2655 * rs6000-nat.c: Include inf-child.h.
2656 * spu-linux-nat.c: Include inf-child.h.
2658 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2660 * tracepoint.c (start_tracing): Add missing i18n markup.
2661 (stop_tracing, set_trace_user): Ditto.
2662 (set_trace_notes, set_trace_stop_notes): Ditto.
2664 2012-05-21 Tom Tromey <tromey@redhat.com>
2667 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2669 * value.h (value_cast_pointers): Update.
2670 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2671 (value_cast): Update.
2672 (update_search_result): New function.
2673 (do_search_struct_field): New, from search_struct_field. Check
2674 for ambiguous results.
2675 (search_struct_field): Rewrite.
2676 * infcall.c (value_arg_coerce): Update.
2677 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2678 value_cast_pointers.
2679 * ada-lang.c (ada_convert_actual): Update.
2681 2012-05-21 Tom Tromey <tromey@redhat.com>
2683 * macroexp.c (macro_stringify): Terminate the string.
2685 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2687 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2689 * auto-load.c (auto_load_expand_dir_vars): New function.
2690 (auto_load_safe_path_vec_update): Use it, remove the
2691 substitute_path_component call thanks to it.
2692 (auto_load_objfile_script): Remove the debug_file_directory processing.
2693 Use auto_load_expand_dir_vars, remove the substitute_path_component
2695 * configure: Regenerate.
2696 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2697 path. Escape $ also for $debugdir.
2698 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2699 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2701 2012-05-20 Doug Evans <dje@google.com>
2703 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2704 before use. Check for symtab->includes == NULL before scanning it.
2706 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2708 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2710 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2712 * NEWS: Add microMIPS support and "set mips compression",
2713 "show mips compression" commands.
2714 * mips-tdep.h (mips_isa): New enum.
2715 (gdbarch_tdep): Add mips_isa.
2716 (mips_pc_is_mips16): Update prototype.
2717 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2718 * mips-tdep.c (mips_compression_mips16): New variable.
2719 (mips_compression_micromips): Likewise.
2720 (mips_compression_strings): Likewise.
2721 (mips_compression_string): Likewise.
2722 (is_mips16_isa, is_micromips_isa): New functions.
2723 (is_mips16_addr): Rename to...
2724 (is_compact_addr): ... this.
2725 (unmake_mips16_addr): Likewise to...
2726 (unmake_compact_addr): ... this.
2727 (make_mips16_addr): Likewise to...
2728 (make_compact_addr): ... this.
2729 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2731 (mips_elf_make_msymbol_special): Handle microMIPS code.
2732 (msymbol_is_special): Rename to...
2733 (msymbol_is_mips16): ... this.
2734 (mips_make_symbol_special, mips_pc_is_mips16): Update
2736 (msymbol_is_mips, msymbol_is_micromips): New functions.
2737 (mips16_to_32_reg): Rename to...
2738 (mips_reg3_to_reg): ... this.
2739 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2740 (mips_pc_isa): Likewise.
2741 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2743 (mips_fetch_instruction): Pass return status instead of printing
2744 an error message if requested. Handle microMIPS code. Bail out
2746 (micromips_op): New macro.
2747 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2748 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2749 (b6s4_op, b7s3_reg): Likewise.
2750 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2751 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2752 (mips_insn_size): New function.
2753 (mips32_next_pc): Update mips_fetch_instruction call.
2754 (micromips_relative_offset7): New function.
2755 (micromips_relative_offset10): Likewise.
2756 (micromips_relative_offset16): Likewise.
2757 (micromips_pc_insn_size): Likewise.
2758 (micromips_bc1_pc): Likewise.
2759 (micromips_next_pc): Likewise.
2760 (unpack_mips16): Update mips_fetch_instruction call.
2761 (extended_mips16_next_pc): Update according to change to
2763 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2765 (mips16_scan_prologue): Update mips_fetch_instruction call.
2766 Update according to change to mips16_to_32_reg.
2767 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2768 (mips_insn16_frame_base_sniffer): Likewise.
2769 (micromips_decode_imm9): New function.
2770 (micromips_scan_prologue): Likewise.
2771 (mips_micro_frame_cache): Likewise.
2772 (mips_micro_frame_this_id): Likewise.
2773 (mips_micro_frame_prev_register): Likewise.
2774 (mips_micro_frame_sniffer): Likewise.
2775 (mips_micro_frame_unwind): New variable.
2776 (mips_micro_frame_base_address): New function.
2777 (mips_micro_frame_base): New variable.
2778 (mips_micro_frame_base_sniffer): New function.
2779 (mips32_scan_prologue): Update mips_fetch_instruction call.
2780 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2781 rather than for MIPS16.
2782 (mips_insn32_frame_base_sniffer): Likewise.
2783 (mips_addr_bits_remove): Handle microMIPS code.
2784 (deal_with_atomic_sequence): Rename to...
2785 (mips_deal_with_atomic_sequence): ... this. Update the type
2786 of the variable used to hold an instruction. Remove the ISA bit
2787 check. Update mips_fetch_instruction call.
2788 (micromips_deal_with_atomic_sequence): New function.
2789 (deal_with_atomic_sequence): Likewise.
2790 (mips_about_to_return): Handle microMIPS code. Update
2791 mips_fetch_instruction call.
2792 (heuristic_proc_start): Check for the standard MIPS ISA rather
2793 than for MIPS16. Update mips_pc_is_mips16 and
2794 mips_fetch_instruction calls. Handle microMIPS code.
2795 (mips_push_dummy_code): Handle microMIPS code.
2796 (mips_eabi_push_dummy_call): Likewise.
2797 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2798 (mips_o64_push_dummy_call): Handle microMIPS code.
2799 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2800 (is_delayed): Remove function.
2801 (mips_single_step_through_delay): Replace the call to is_delayed
2802 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2803 Handle microMIPS code.
2804 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2806 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2808 (micromips_in_function_epilogue_p): New function.
2809 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2811 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2813 (gdb_print_insn_mips): Likewise.
2814 (mips_breakpoint_from_pc): Likewise.
2815 (mips_remote_breakpoint_from_pc): New function.
2816 (mips32_instruction_has_delay_slot): Simplify making use of the
2817 updated mips_fetch_instruction interface.
2818 (micromips_instruction_has_delay_slot): New function.
2819 (mips16_instruction_has_delay_slot): Simplify making use of the
2820 updated mips_fetch_instruction interface.
2821 (mips_adjust_breakpoint_address): Check for the standard MIPS
2822 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2823 calls. Handle microMIPS code.
2824 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2825 (mips_skip_trampoline_code): Handle microMIPS code.
2826 (global_mips_compression): New function.
2827 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2828 file flags. Register the microMIPS remote breakpoint handler
2829 and heuristic frame unwinder.
2830 (show_mips_compression): New function.
2831 (_initialize_mips_tdep): Add the "set mips compression" and
2832 "show mips compression" commands.
2834 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2839 * amd64-darwin-tdep.c:
2840 * arm-symbian-tdep.c:
2844 * bfin-linux-tdep.c:
2851 * dwarf2-frame-tailcall.c:
2880 * microblaze-tdep.c:
2881 * mips-linux-tdep.c:
2889 * python/py-finishbreakpoint.c:
2890 * python/py-inferior.c:
2891 * python/py-infthread.c:
2895 * remote-m32r-sdi.c:
2899 * rs6000-aix-tdep.c:
2925 * amd64-darwin-tdep.c:
2926 * arm-symbian-tdep.c:
2927 * arm-tdep.c: Delete unused variables.
2929 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2931 Rename $ddir to $datadir.
2932 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2933 * auto-load.c (auto_load_safe_path_vec_update)
2934 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2935 * configure: Regenerate.
2936 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2937 Likewise. Remove the 'use $ddir' help string.
2939 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2941 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2942 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2944 2012-05-18 Tom Tromey <tromey@redhat.com>
2947 * valprint.h (struct value_print_options) <symbol_print>: New
2949 * valprint.c (user_print_options): Add default for symbol_print.
2950 (show_symbol_print): New function.
2951 (generic_val_print): Respect symbol_print.
2952 (_initialize_valprint): Add "print symbol" setting.
2953 * f-valprint.c (f_val_print): Respect symbol_print.
2954 * c-valprint.c (c_val_print): Respect symbol_print.
2956 * printcmd.c (print_address_symbolic): Return int. Ignore some
2958 (print_address_demangle): Return int.
2959 * defs.h: (print_address_symbolic): Return int.
2960 * value.h (print_address_demangle): Return int.
2962 2012-05-18 Tom Tromey <tromey@redhat.com>
2964 * valprint.c (val_print_string): Don't print leading space.
2965 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2966 print space before string or vtbl.
2967 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2969 * jv-valprint.c (java_value_print): Print space before string.
2970 * go-valprint.c (print_go_string): Print space before string.
2971 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2972 space before string.
2973 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2974 space before string or vtbl.
2975 * auxv.c (fprint_target_auxv): Print space after address.
2977 2012-05-18 Tom Tromey <tromey@redhat.com>
2979 * printcmd.c (print_address_demangle): Remove special case for 0.
2981 2012-05-18 Tom Tromey <tromey@redhat.com>
2983 * printcmd.c (print_address_demangle): Add 'opts' argument.
2984 * p-valprint.c (pascal_val_print): Update.
2985 * jv-valprint.c (java_val_print): Update.
2987 * valprint.c (generic_val_print): Update.
2988 (print_function_pointer_address): Add 'options' argument. Remove
2989 'addressprint' argument. Update.
2990 * m2-valprint.c (print_unpacked_pointer): Update.
2991 * gnu-v3-abi.c (print_one_vtable): Update.
2992 (gnuv3_print_method_ptr): Update.
2993 * f-valprint.c (f_val_print): Update.
2994 * cp-valprint.c (cp_print_value_fields): Update.
2995 * valprint.h (print_function_pointer_address): Update.
2996 * c-valprint.c (c_val_print): Update.
2998 2012-05-18 Tom Tromey <tromey@redhat.com>
3000 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
3001 directly corresponding to the found psymtab.
3002 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
3003 (dw2_find_pc_sect_symtab): Use it.
3004 * block.h (blockvector_contains_pc): Declare.
3005 * block.c (find_block_in_blockvector): New function.
3006 (blockvector_for_pc_sect): Use it.
3007 (blockvector_contains_pc): New function.
3009 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3011 * mips-tdep.h (mips_write_pc): New prototype.
3012 * mips-tdep.c (mips_write_pc): Make external, add description.
3013 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
3016 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3018 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
3020 (mips_unwind_pc, mips_write_pc): Likewise.
3021 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
3024 2012-05-17 Joel Brobecker <brobecker@adacore.com>
3026 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
3027 proc_warn, proc_error, proc_get_status, proc_flags,
3028 proc_why, proc_what, proc_nsysarg, proc_sysargs,
3029 proc_set_run_on_last_close, proc_unset_run_on_last_close,
3030 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
3031 proc_stop_process, proc_wait_for_stop, proc_run_process,
3032 proc_set_traced_signals, proc_set_traced_faults,
3033 proc_set_traced_sysentry, proc_set_traced_sysexit,
3034 proc_set_held_signals, proc_get_held_signals,
3035 proc_get_traced_signals, proc_get_traced_faults,
3036 proc_get_traced_sysentry, proc_get_traced_sysexit,
3037 proc_clear_current_fault, proc_set_current_signal,
3038 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
3039 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
3040 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
3041 proc_get_current_thread, proc_get_current_thread,
3042 proc_get_current_thread, proc_update_threads,
3043 proc_update_threads, proc_update_threads, proc_update_threads,
3044 proc_iterate_over_threads, procfs_find_new_threads,
3045 procfs_pid_to_str): Make static. Remove advance declaration.
3046 (proc_cursig): Make static. Conditionalized defintion on
3047 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
3048 (proc_syscall, proc_set_kill_on_last_close,
3049 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
3050 proc_get_pending_signals, proc_get_signal_actions,
3051 proc_trace_signal, proc_ignore_signal): Delete.
3053 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3055 * coffread.c (cs_section_address): Passing proper argument for
3056 `bfd_get_section_vma'.
3057 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
3058 `bfd_get_section_flags'.
3059 * remote.c (remote_trace_set_readonly_regions): Likewise, for
3060 `bfd_get_section_vma'.
3062 2012-05-16 Tom Tromey <tromey@redhat.com>
3065 * macrotab.h: (macro_define_special): Declare.
3066 (enum macro_special_kind): New.
3067 (struct macro_definition) <argc, replacement>: Update comments.
3068 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
3069 (macro_define_object_internal): New function.
3070 (macro_define_object): Use it.
3071 (macro_define_special): New function.
3072 (fixup_definition): New function.
3073 (macro_lookup_definition, foreach_macro_in_scope)
3074 (foreach_macro): Use fixup_definition.
3075 * macroexp.h (macro_stringify): Declare.
3076 * macroexp.c (free_buffer_return_text): New function.
3077 (stringify): Constify "arg".
3078 (macro_stringify): New function.
3079 * dwarf2read.c (macro_start_file): Call macro_define_special.
3081 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
3082 Maciej W. Rozycki <macro@mips.com>
3084 * breakpoint.h (bp_location): Add related_address member.
3085 * inferior.h (get_return_value): Take a pointer to struct value
3086 instead of struct type for the function requested.
3087 * value.h (using_struct_return): Likewise.
3088 * gdbarch.sh (return_value): Take a pointer to struct value
3089 instead of struct type for the function requested.
3090 * breakpoint.c (set_breakpoint_location_function): Initialize
3091 related_address for bp_gnu_ifunc_resolver breakpoints.
3092 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
3093 requested function's address to gdbarch_return_value.
3094 * eval.c (evaluate_subexp_standard): Pass the requested
3095 function's address to using_struct_return.
3096 * infcall.c (call_function_by_hand): Pass the requested
3097 function's address to using_struct_return and
3098 gdbarch_return_value.
3099 * infcmd.c (get_return_value): Take a pointer to struct value
3100 instead of struct type for the function requested.
3101 (print_return_value): Update accordingly.
3102 (finish_command_continuation): Likewise.
3103 * stack.c (return_command): Pass the requested function's
3104 address to using_struct_return and gdbarch_return_value.
3105 * value.c (using_struct_return): Take a pointer to struct value
3106 instead of struct type for the function requested. Pass the
3107 requested function's address to gdbarch_return_value.
3108 * python/py-finishbreakpoint.c (finish_breakpoint_object):
3109 New function_value member, replacing function_type.
3110 (bpfinishpy_dealloc): Update accordingly.
3111 (bpfinishpy_pre_stop_hook): Likewise.
3112 (bpfinishpy_init): Likewise. Record the requested function's
3114 * mips-tdep.c (mips_fval_reg): New enum.
3115 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
3116 words put in GP registers.
3117 (mips_o64_push_dummy_call): Update a comment.
3118 (mips_o32_return_value): Take a pointer to struct value instead
3119 of struct type for the function requested and use it to check if
3120 using the MIPS16 calling convention. Return the designated
3121 general purpose registers for floating-point values returned in
3123 (mips_o64_return_value): Likewise.
3124 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
3125 (ppc_sysv_abi_broken_return_value): Likewise.
3126 (ppc64_sysv_abi_return_value): Likewise.
3127 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
3128 value instead of struct type for the function requested.
3129 * amd64-tdep.c (amd64_return_value): Likewise.
3130 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
3131 * arm-tdep.c (arm_return_value): Likewise.
3132 * avr-tdep.c (avr_return_value): Likewise.
3133 * bfin-tdep.c (bfin_return_value): Likewise.
3134 * cris-tdep.c (cris_return_value): Likewise.
3135 * frv-tdep.c (frv_return_value): Likewise.
3136 * h8300-tdep.c (h8300_return_value): Likewise.
3137 (h8300h_return_value): Likewise.
3138 * hppa-tdep.c (hppa32_return_value): Likewise.
3139 (hppa64_return_value): Likewise.
3140 * i386-tdep.c (i386_return_value): Likewise.
3141 * ia64-tdep.c (ia64_return_value): Likewise.
3142 * iq2000-tdep.c (iq2000_return_value): Likewise.
3143 * lm32-tdep.c (lm32_return_value): Likewise.
3144 * m32c-tdep.c (m32c_return_value): Likewise.
3145 * m32r-tdep.c (m32r_return_value): Likewise.
3146 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
3147 * m68k-tdep.c (m68k_return_value): Likewise.
3148 (m68k_svr4_return_value): Likewise.
3149 * m88k-tdep.c (m88k_return_value): Likewise.
3150 * mep-tdep.c (mep_return_value): Likewise.
3151 * microblaze-tdep.c (microblaze_return_value): Likewise.
3152 * mn10300-tdep.c (mn10300_return_value): Likewise.
3153 * moxie-tdep.c (moxie_return_value): Likewise.
3154 * mt-tdep.c (mt_return_value): Likewise.
3155 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
3156 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
3157 (ppc_sysv_abi_broken_return_value): Likewise.
3158 (ppc64_sysv_abi_return_value): Likewise.
3159 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
3160 * rl78-tdep.c (rl78_return_value): Likewise.
3161 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
3162 * rx-tdep.c (rx_return_value): Likewise.
3163 * s390-tdep.c (s390_return_value): Likewise.
3164 * score-tdep.c (score_return_value): Likewise.
3165 * sh-tdep.c (sh_return_value_nofpu): Likewise.
3166 (sh_return_value_fpu): Likewise.
3167 * sh64-tdep.c (sh64_return_value): Likewise.
3168 * sparc-tdep.c (sparc32_return_value): Likewise.
3169 * sparc64-tdep.c (sparc64_return_value): Likewise.
3170 * spu-tdep.c (spu_return_value): Likewise.
3171 * tic6x-tdep.c (tic6x_return_value): Likewise.
3172 * v850-tdep.c (v850_return_value): Likewise.
3173 * vax-tdep.c (vax_return_value): Likewise.
3174 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3175 * xtensa-tdep.c (xtensa_return_value): Likewise.
3176 * gdbarch.c: Regenerate.
3177 * gdbarch.h: Regenerate.
3179 2012-05-15 Tom Tromey <tromey@redhat.com>
3181 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3183 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3185 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3186 of command in two error message.
3188 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3190 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3192 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3194 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3196 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3198 * NEWS (show auto-load scripts-directory): Add forgotten command.
3200 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3202 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3205 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3207 * amd64-tdep.c: Include features/i386/x32.c and
3208 features/i386/x32-avx.c.
3209 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3210 initialize_tdesc_x32_avx.
3212 2012-05-14 Stan Shebs <stan@codesourcery.com>
3215 * breakpoint.h (enum bptype): New type bp_dprintf.
3216 (struct breakpoint): New field extra_string.
3217 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3218 (create_breakpoint): Add extra_string arg.
3219 * breakpoint.c (dprintf_breakpoint_ops): New.
3220 (is_breakpoint): Add bp_dprintf.
3221 (bpstat_what): Add dprintf case.
3222 (bptype_string): Ditto.
3223 (print_one_breakpoint_location): Ditto.
3224 (init_bp_location): Ditto.
3225 (bkpt_print_mention): Ditto.
3226 (dprintf_style_enums): New array.
3227 (dprintf_style): New global.
3228 (dprintf_function): New global.
3229 (dprintf_channel): New global.
3230 (update_dprintf_command_list): New function.
3231 (update_dprintf_commands): New function.
3232 (init_breakpoint_sal): Add extra_string argument, handle it.
3233 (create_breakpoint_sal): Add extra_string argument.
3234 (create_breakpoints_sal): Add extra_string argument, update callers.
3235 (find_condition_and_thread): Add extra argument.
3236 (create_breakpoint): Add extra_string argument, record it.
3237 (dprintf_command): New function.
3238 (break_command_1): Add arg to create_breakpoint call.
3239 (handle_gnu_v3_exceptions): Ditto.
3240 (trace_command): Ditto.
3241 (ftrace_command): Ditto.
3242 (strace_command): Ditto.
3243 (bkpt_print_mention): Add dprintf case.
3244 (create_breakpoint_sal_default): Add extra_string argument.
3245 (_initialize_breakpoint): Add new commands.
3246 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3247 * python/py-breakpoint.c (bppy_init): Ditto.
3248 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3250 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3252 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3254 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3256 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3259 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3261 Add a new function gdb.find_pc_line to the Python API.
3262 * NEWS (Python Scripting): Add entry about the new function.
3263 * python/python.c (gdbpy_find_pc_line): New function which
3264 implements gdb.find_pc_line.
3265 (GdbMethods): Add entry for the new function.
3267 2012-05-12 Pedro Alves <palves@redhat.com>
3269 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3270 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3272 2012-05-12 Eli Zaretskii <eliz@gnu.org>
3274 * inferior.c: Include completer.h
3275 (initialize_inferiors): Set completer of add-inferior to
3278 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3280 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3281 gdbarch_ptr_bit for x32 core dump.
3283 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3285 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3286 and features/i386/x32-avx-linux.c.
3288 2012-05-11 Stan Shebs <stan@codesourcery.com>
3289 Kwok Cheung Yeung <kcy@codesourcery.com>
3291 * NEWS: Describe new info os commands.
3292 * common/linux-osdata.c (PID_T, TIME_T): Define.
3293 (MAX_PID_T_STRLEN): New.
3294 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3296 (command_from_pid): Add comment. Change to use PID_T.
3297 (commandline_from_pid): Change to use PID_T.
3298 (user_from_pid): Add comment.
3299 (get_process_owner): Add comment. Change to use PID_T and
3301 (get_number_of_cpu_cores): Add comment.
3302 (get_cores_used_by_process): Add comment. Change to use PID_T and
3304 (linux_xfer_osdata_processes): Change to use PID_T and
3306 (compare_processes): New function.
3307 (linux_xfer_osdata_processgroups): New function.
3308 (linux_xfer_osdata_threads): Change to use PID_T.
3309 (linux_xfer_osdata_fds): New function.
3310 (format_socket_state, print_sockets): New functions.
3311 (union socket_addr): New union.
3312 (linux_xfer_osdata_isockets): New function.
3313 (time_from_time_t, group_from_gid): New functions.
3314 (linux_xfer_osdata_shm): New function.
3315 (linux_xfer_osdata_sem): New function.
3316 (linux_xfer_osdata_msg): New function.
3317 (linux_xfer_osdata_modules): New function.
3318 (osdata_table): Add new entries.
3319 * common/buffer.c (buffer_xml_printf): Add support for long and
3320 long long format specifiers.
3322 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3324 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3325 (tdesc_x32_avx_linux): Likewise.
3327 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3329 Implement multi-component --with-auto-load-dir.
3330 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3332 (--with-auto-load-safe-path): Update the default value description.
3333 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3335 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3336 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3337 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3338 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3339 "set auto-load scripts-directory".
3340 * config.in: Regenerate.
3341 * configure: Regenerate.
3342 * configure.ac (--with-auto-load-dir): New configure option.
3343 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3345 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3347 Provide $ddir substitution for --with-auto-load-safe-path.
3348 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3350 * auto-load.c: Include observer.h.
3351 (auto_load_safe_path_vec_update): Call substitute_path_component for
3352 each component. New variable ddir_subst.
3353 (auto_load_gdb_datadir_changed): New function.
3354 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3355 AUTO_LOAD_SAFE_PATH. New comment.
3356 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3357 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3358 * config.in: Regenerate.
3359 * configure: Regenerate.
3360 * configure.ac (--auto-load-safe-path): Rename
3361 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3362 GDB_DATADIR/auto-load.
3363 * defs.h (substitute_path_component): New declaration.
3364 * top.c: Include observer.h.
3365 (set_gdb_datadir): New function.
3366 (init_main): Install it for "set data-directory".
3367 * utils.c (substitute_path_component): New function.
3369 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3371 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3372 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3373 DEBUG_FILE_DIRECTORY. Handle multiple components of
3374 DEBUG_FILE_DIRECTORY.
3376 2012-05-10 Tom Tromey <tromey@redhat.com>
3378 * dwarf2read.c (recursively_write_psymbols): New function.
3379 (write_psymtabs_to_index): Use it.
3381 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3383 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3384 (load_partial_comp_unit): Update.
3385 (queue_comp_unit): Add argument 'pretend_language'.
3386 (process_queue): Update.
3387 (psymtab_to_symtab_1): Skip dependencies that have a user.
3388 (load_partial_comp_unit_reader): Give meaning to the 'data'
3390 (load_full_comp_unit): Add 'pretend_language' argument.
3391 (process_full_comp_unit): Add 'pretend_language' argument. Set
3393 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3395 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3396 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3398 (prepare_one_comp_unit): Add 'pretend_language' argument.
3400 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3401 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3402 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3403 (dw2_do_instantiate_symtab): Check whether symtab was read in
3405 (dw2_instantiate_symtab): Add assertion. Call
3406 process_cu_includes.
3407 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3408 (partial_symtab_p): New typedef.
3409 (set_partial_user): New function.
3410 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3411 (scan_partial_symbols): Add imported CU to imported_symtabs.
3412 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3413 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3414 (get_symtab, recursively_compute_inclusions)
3415 (compute_symtab_includes, process_cu_includes)
3416 (process_imported_unit_die): New functions.
3417 (process_die) <DW_TAG_imported_unit>: New case.
3418 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3420 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3422 (struct partial_die_info) <locdesc>: Remove.
3424 (process_psymtab_comp_unit): Add 'read_partial' argument.
3426 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3427 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3428 (add_partial_symbol): Update.
3429 (process_die): Handle DW_TAG_partial_unit.
3430 (read_file_scope): Update comment.
3431 (load_partial_dies): Handle DW_TAG_imported_unit.
3432 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3433 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3435 2012-05-10 Tom Tromey <tromey@redhat.com>
3437 * cc-with-dwz.sh: New file.
3439 2012-05-10 Tom Tromey <tromey@redhat.com>
3441 * symtab.h (struct symtab) <includes, user>: New fields.
3442 * block.h (struct block_iterator) <d, idx, which>: New fields.
3443 * block.c (initialize_block_iterator, find_iterator_symtab)
3444 (block_iterator_step, block_iter_name_step)
3445 (block_iter_match_step): New functions.
3446 (block_iterator_first, block_iterator_next)
3447 (block_iter_name_first, block_iter_name_next)
3448 (block_iter_match_first, block_iter_match_next): Rewrite.
3449 (get_block_symtab): New function.
3451 2012-05-10 Tom Tromey <tromey@redhat.com>
3453 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3455 * jit.c (finalize_symtab): Use allocate_global_block,
3457 * buildsym.c (finish_block_internal): New function, from old
3459 (finish_block): Rewrite.
3460 (end_symtab): Use finish_block_internal, set_block_symtab.
3461 * block.h (struct global_block): New.
3462 (allocate_global_block, set_block_symtab): Declare.
3463 * block.c (allocate_global_block, set_block_symtab): New
3466 2012-05-10 Tom Tromey <tromey@redhat.com>
3468 * psymtab.c (partial_map_expand_apply): Add assertion.
3469 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3470 (psymtab_to_symtab): Find unshared psymtab.
3471 (dump_psymtab): Print including psymtabs.
3472 (recursively_search_psymtabs): New function.
3473 (expand_symtabs_matching_via_partial): Use it.
3474 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3476 (enum psymtab_search_status): New.
3478 2012-05-10 Tom Tromey <tromey@redhat.com>
3480 * tracepoint.c (scope_info): Update.
3481 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3482 (find_pc_sect_symtab, search_symbols)
3483 (default_make_symbol_completion_list_break_on)
3484 (make_file_symbol_completion_list): Update.
3485 * symmisc.c (dump_symtab_1): Update.
3486 * stack.c (print_frame_args, iterate_over_block_locals)
3487 (print_frame_labels, iterate_over_block_arg_vars): Update.
3488 * python/py-block.c (block_object) <dict>: Remove.
3490 <iter>: Change type.
3491 (blpy_iter): Update.
3492 (blpy_block_syms_iternext): Update.
3493 * psymtab.c (map_block): Use block iterators.
3494 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3495 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3496 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3497 * infrun.c (check_exception_resume): Update.
3498 * cp-support.c (make_symbol_overload_list_block): Update.
3499 * coffread.c (patch_opaque_types): Update.
3500 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3501 * block.h (struct block_iterator): New.
3502 (block_iterator_first, block_iterator_next, block_iter_name_first)
3503 (block_iter_name_next, block_iter_match_first)
3504 (block_iter_match_next): Declare.
3505 (ALL_BLOCK_SYMBOLS): Redefine.
3506 * block.c (block_iterator_first, block_iterator_next)
3507 (block_iter_name_first, block_iter_name_next)
3508 (block_iter_match_first, block_iter_match_next): New functions.
3509 * ada-lang.c (ada_add_block_symbols)
3510 (ada_make_symbol_completion_list): Use block iterator.
3512 2012-05-10 Tom Tromey <tromey@redhat.com>
3514 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3515 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3516 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3517 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3518 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3521 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3523 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3524 print-file-var-lib2.c, print-file-var-main.c and
3525 print-file-var.exp (located in gdb/testsuite/gdb.base).
3527 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3529 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3530 try locating the symbol in the symbol's own objfile first, before
3531 extending the search to all objfiles.
3532 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3533 out of lookup_symbol_aux_symtabs.
3534 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3535 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3536 Do not search EXCLUDE_OBJFILE.
3537 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3538 (lookup_symbol_global): Search for matches in the block's objfile
3539 first, before searching all other objfiles.
3541 2012-05-10 Tristan Gingold <gingold@adacore.com>
3543 * printcmd.c (set_command): Add pre/post inc/dec.
3545 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3547 * gdb.1: Document -ex option.
3549 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3551 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3552 * inferior.h (AT_SYMBOL): Delete.
3554 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3556 * mips-tdep.c (mips_push_dummy_code): New function.
3557 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3558 ON_STACK and install mips_push_dummy_code as our gdbarch
3559 push_dummy_code routine.
3561 2012-05-09 Pedro Alves <palves@redhat.com>
3563 * target.c (set_maintenance_target_async_permitted): Rename to ...
3564 (set_target_async_command): ... this.
3565 (show_maintenance_target_async_permitted): Rename to ...
3566 (show_target_async_command): ... this.
3567 (initialize_targets): Adjust.
3569 2012-05-08 Doug Evans <dje@google.com>
3571 * go-exp.y (classify_name): Add missing assignment of fields of
3574 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3576 Display the ">" prompt in interactive mode while reading canned
3577 commands, even when the current interpreter is MI.
3579 * interps.c (interp_set_temp): New function.
3581 * interps.h (interp_set_temp): Add prototype.
3583 * cli/cli-script.c (restore_interp): New cleanup function.
3584 (read_command_lines): Temporarily override the current interpreter
3585 with CLI and arrange for restoring the original one.
3587 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3589 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3591 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3593 * probe.c (parse_probes): Move conditional to check for
3594 debuginfo files from here...
3595 * stap-probe.c (stap_get_probes): ... to here.
3597 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3598 H.J. Lu <hongjiu.lu@intel.com>
3600 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3601 `movl %esp, %ebp' for the X32 ABI.
3603 2012-05-07 Tom Tromey <tromey@redhat.com>
3605 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3607 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3608 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3609 (dwarf_stack_op_name): Remove.
3610 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3611 (decode_locdesc): Use get_DW_OP_name.
3612 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3613 (dwarf2_compile_expr_to_ax): Likewise.
3614 (disassemble_dwarf_expression): Likewise.
3615 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3617 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3619 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3620 (sh_linux_sigtramp_cache): New function.
3621 (sh_linux_sigreturn_init): New function.
3622 (sh_linux_rt_sigreturn_init): New function.
3623 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3625 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3627 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3628 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3629 (sh_linux_init_abi): Add init calls to register new tramp_frame
3630 definitions under 32-bit SH, update comments.
3632 2012-05-07 Pedro Alves <palves@redhat.com>
3636 * amd64-linux-tdep.c: Include glibc-tdep.h.
3637 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3638 gdbarch_skip_solib_resolver callback.
3640 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3642 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3643 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3644 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3645 (add_auto_load_safe_path): Change the error message.
3646 (_initialize_auto_load): Change the "safe-path" help text.
3647 * configure: Regenerate
3648 * configure.ac (--without-auto-load-safe-path): Set
3649 WITH_AUTO_LOAD_SAFE_PATH to /.
3651 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3653 * stap-probe.h: Do not include unecessary `probe.h'.
3655 2012-05-05 Alan Modra <amodra@gmail.com>
3657 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3658 bfd_und_section_ptr.
3659 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3660 and bfd_com_section_ptr.
3662 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3664 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3666 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3668 * windows-nat.h (segment_register_p_ftype): New typedef.
3669 (windows_set_segment_register_p): Add declaration.
3670 * windows-nat.c (segment_register_p): New static global.
3671 (windows_set_segment_register_p): New function.
3672 (do_windows_fetch_inferior_registers): Add special handling
3673 for segment registers.
3674 * amd64-windows-nat.c: #include "amd64-tdep.h".
3675 (amd64_windows_segment_register_p): New function.
3676 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3677 * i386-windows-nat.c: #include "i386-tdep.h".
3678 (i386_windows_segment_register_p): New function.
3679 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3681 2012-05-04 Tristan Gingold <gingold@adacore.com>
3683 * printcmd.c (set_command): Emit a warning if the expression is not
3686 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3688 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3691 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3693 * stap-probe.c (stap_is_operator): Change declaration.
3694 (stap_get_opcode): Change return value.
3695 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3696 `stap_parse_argument_1'.
3698 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3700 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3703 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3705 Add two new methods global_block and static_block to gdb.Symtab
3707 * NEWS (Python scripting): Add entry about the new methods.
3708 * python/py-symtab.c (stpy_global_block): New function which
3709 implements the gdb.Symtab.global_block() method.
3710 (stpy_static_block): New function which implements the
3711 gdb.Symtab.static_block() method.
3712 (symtab_object_methods): Add entries for the two new methods.
3714 2012-05-03 Doug Evans <dje@google.com>
3716 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3719 2012-05-03 Yao Qi <yao@codesourcery.com>
3721 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3723 (i386_process_record): Ditto.
3725 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3727 * infcall.c (unwind_on_signal_p): Make static.
3729 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3731 * sol-thread.c (solaris_pid_to_str): Make static.
3732 (_initialize_sol_thread): Add prototype.
3734 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3736 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3738 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3740 * MAINTAINERS: Remove myself.
3742 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3744 Fix --without-auto-load-safe-path for MS-Windows host platform.
3745 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3747 2012-05-02 Eli Zaretskii <eliz@gnu.org>
3749 * gdb_curses.h: Undefine KEY_EVENT before including curses
3750 headers. Move "#undef MOUSE_MOVED" before any curses header
3753 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3755 * features/i386/i386-mmx-linux.c: Regenerate.
3756 * features/rs6000/powerpc-32.c: Likewise.
3757 * features/rs6000/powerpc-32l.c: Likewise.
3758 * features/rs6000/powerpc-403.c: Likewise.
3759 * features/rs6000/powerpc-403gc.c: Likewise.
3760 * features/rs6000/powerpc-405.c: Likewise.
3761 * features/rs6000/powerpc-505.c: Likewise.
3762 * features/rs6000/powerpc-601.c: Likewise.
3763 * features/rs6000/powerpc-602.c: Likewise.
3764 * features/rs6000/powerpc-603.c: Likewise.
3765 * features/rs6000/powerpc-604.c: Likewise.
3766 * features/rs6000/powerpc-64.c: Likewise.
3767 * features/rs6000/powerpc-64l.c: Likewise.
3768 * features/rs6000/powerpc-750.c: Likewise.
3769 * features/rs6000/powerpc-860.c: Likewise.
3770 * features/rs6000/powerpc-e500.c: Likewise.
3771 * features/rs6000/powerpc-e500l.c: Likewise.
3772 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3773 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3774 * features/rs6000/rs6000.c: Likewise.
3776 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3778 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3780 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3781 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3782 (stap_parse_argument) <e>: Likewise.
3783 (handle_stap_probe) <byte_order>: Likewise.
3785 2012-04-30 Doug Evans <dje@google.com>
3787 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3788 init_and_read_dies_worker. All callers updated.
3789 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3790 replaced with init_cutu_and_read_dies.
3791 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3792 (find_partial_die): Remove FIXME. Don't free current CU.
3794 2012-04-30 Sterling Augustine <saugustine@google.com>
3796 * contrib: New directory.
3797 * contrib/test_pubnames_and_indexes.py: New file.
3799 2012-04-30 Doug Evans <dje@google.com>
3801 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3802 All callers updated.
3803 (init_cu_die_reader): Verify the section is non-empty.
3804 (dwarf_decode_line_header): Don't dereference section->asection
3805 until we know the section is present.
3807 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3809 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3812 2012-04-29 Yao Qi <yao@codesourcery.com>
3814 * gdb-code-style.el: New hook gdb-markup-hook
3815 and gdb-comment-hook.
3817 2012-04-28 Doug Evans <dje@google.com>
3819 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3820 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3822 * symfile.h (dwarf2_debug_sections): New member addr.
3823 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3824 (ctx_no_get_addr_index): New function.
3825 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3826 (ctx_no_get_addr_index): Declare.
3827 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3828 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3829 (dwarf_expr_ctx_funcs): Update.
3830 (needs_get_addr_index): New function.
3831 (needs_frame_ctx_funcs): Update.
3832 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3833 * dwarf2read.c: #include "gdbcore.h".
3834 (dwarf2_per_objfile): New members addr, dwo_files.
3835 (dwarf2_elf_names): Add entry for addr.
3836 (struct dwo_section_names): New type.
3837 (dwo_section_names): New static global.
3838 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3839 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3840 old debug_types_section member updated to use this.
3841 Rename member debug_types_section to info_or_types_section,
3843 (signatured_type): Rename member type_offset to type_offset_in_tu,
3844 all uses updated. New member type_offset_in_section.
3845 (struct dwo_sections): New type.
3846 (struct dwo_unit): New type.
3847 (struct dwo_file): New type.
3848 (die_reader_specs): New member dwo_file.
3849 (dwarf2_locate_sections): Watch for .debug_addr.
3850 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3851 (dwarf2_read_section): Get bfd of section from bfd's asection,
3853 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3854 (create_signatured_type_table_from_index): Initialize
3855 sig_type->info_or_types_section.
3856 (dw2_get_file_names): Statement lists for type units with DWO files
3857 live in the DWO file.
3858 (create_debug_types_hash_table): New function.
3859 (create_all_type_units): Rewrite.
3860 (init_cu_die_reader): New arg dwo_file, all callers updated.
3861 (init_and_read_dies_worker): Get section from
3862 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3863 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3864 continue reading the CU/TU from there.
3865 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3866 updated. Get section from this_cu->info_or_types_section.
3867 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3868 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3869 DW_FORM_GNU_str_index.
3870 (hash_dwo_file, eq_dwo_file): New functions.
3871 (allocate_dwo_file_hash_table): New function.
3872 (hash_dwo_unit, eq_dwo_unit): New functions.
3873 (allocate_dwo_unit_table): New function.
3874 (dwarf2_locate_dwo_sections): New function.
3875 (struct create_dwo_info_table_data): New type.
3876 (create_debug_info_hash_table_reader): New function.
3877 (create_debug_info_hash_table): New function.
3878 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3879 (lookup_dwo_file): New function.
3880 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3881 (free_dwo_file, free_dwo_file_cleanup): New functions.
3882 (free_dwo_file_from_slot, free_dwo_files): New functions.
3883 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3884 (dwarf2_record_block_ranges): Ditto.
3885 (read_partial_die): Ditto.
3886 (process_enumeration_scope): Update to use type_offset_in_section.
3887 (read_full_die_1): New function.
3888 (read_full_die): Rewrite.
3889 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3890 DW_FORM_GNU_str_index.
3891 (read_addr_index_1, read_addr_index): New functions.
3892 (read_addr_index_from_leb128): New function.
3893 (struct dwarf2_read_addr_index_data): New type.
3894 (dwarf2_read_addr_index_reader): New function.
3895 (dwarf2_read_addr_index): New function.
3896 (read_str_index): New function.
3897 (leb128_size): New function.
3898 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3899 If processing a type unit from a DWO file, get the line section
3901 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3902 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3903 DW_FORM_GNU_str_index.
3904 (lookup_die_type): Check whether section offset of type's die is
3905 known before looking it up. Remove assert. Condition can
3906 legimately happen for inter-cu type references.
3907 (dwarf_attr_name): Handle Fission attributes.
3908 (dwarf_form_name): Handle Fission forms.
3909 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3910 DW_FORM_GNU_str_index.
3911 (follow_die_sig): Update to use type_offset_in_section.
3912 (decode_locdesc): New case DW_OP_GNU_addr_index.
3913 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3914 DW_FORM_GNU_str_index.
3915 (cu_debug_loc_section): New function.
3916 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3917 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3918 Free DWO files if present.
3919 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3921 Refactor DIE reading.
3922 * dwarf2read.c (dwarf2_per_objfile): Replace members
3923 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3924 (die_reader_specs): New member "die_section". Temporarily make
3925 member "buffer" non-const, pending constifying all info_ptr uses.
3926 (die_reader_func_ftype): New typedef.
3927 (dw2_get_file_names_reader): New function.
3928 (dw2_get_file_names): Rewrite.
3929 (read_and_check_type_unit_head): Rename arg type_offset to
3931 (create_all_type_units): Improve debugging message.
3932 Improve dummy type unit check.
3933 (init_cu_die_reader): New arg "section". All callers updated.
3934 (init_and_read_dies_worker): New function.
3935 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3936 (init_cutu_and_read_dies_no_follow): New function.
3937 (init_cutu_and_read_dies_simple): New function.
3938 (process_psymtab_comp_unit_reader): New function.
3939 (process_psymtab_comp_unit): Delete args section,
3940 is_debug_types_section. Rewrite. All callers updated.
3941 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3942 All callers updated. Rewrite.
3943 (load_partial_comp_unit_reader): New function.
3944 (load_partial_comp_unit): Rewrite.
3945 (skip_children): New arg reader. Delete args buffer, cu.
3946 All callers updated.
3947 (skip_one_die): New arg reader. Delete args buffer, cu.
3948 All callers updated.
3949 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3950 All callers updated.
3951 (load_full_comp_unit_reader): New function.
3952 (load_full_comp_unit): Rewrite.
3953 (read_comp_unit): Delete.
3954 (read_die_and_children_1): Delete, contents moved ...
3955 (read_die_and_children): ... here.
3956 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3957 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3958 All callers updated.
3959 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3960 All callers updated.
3961 (find_partial_die): Rewrite load_all_dies support.
3962 (read_attribute_value): New arg reader. Delete args abfd, cu.
3963 All callers updated.
3964 (read_attribute): New arg reader. Delete args abfd, cu.
3965 All callers updated.
3966 (load_full_type_unit): Add assert.
3967 (read_signatured_type_reader): New function.
3968 (read_signatured_type): Rewrite.
3969 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3970 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3971 All callers updated. Set per_cu->cu = NULL after freeing it.
3972 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3973 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3974 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3975 (set_die_type): Update.
3976 (get_die_type_at_offset): Update.
3977 (read_file_scope): Call prepare_one_comp_unit.
3978 (read_type_unit_scope): Ditto.
3979 (prepare_one_comp_unit): Set producer if present.
3981 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
3983 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3984 gettext function on `error'.
3986 2012-04-27 Doug Evans <dje@google.com>
3988 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3991 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3992 Tom Tromey <tromey@redhat.com>
3994 * breakpoint.c (struct breakpoint_objfile_data)
3995 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3996 <exception_probes>: New fields.
3997 (free_breakpoint_probes): New function.
3998 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3999 `_Unwind_DebugHook'.
4000 (create_exception_master_breakpoint): Likewise.
4001 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
4002 * infrun.c: Including necessary header files for handling SystemTap
4004 (handle_inferior_event): Handling longjmp breakpoint and exceptions
4005 via SystemTap probes.
4006 (check_exception_resume): Remove `func' argument. Handle exception
4007 unwinding breakpoint set via a SystemTap probe.
4008 (insert_exception_resume_from_probe): New function.
4010 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4011 Tom Tromey <tromey@redhat.com>
4012 Jan Kratochvil <jan.kratochvil@redhat.com>
4014 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
4015 (COMMON_OBS): Likewise.
4016 (HFILES_NO_SRCDIR): Add `probe'.
4017 * NEWS: Mention support for static and SystemTap probes.
4018 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
4019 SystemTap probes' arguments parser.
4020 * arm-linux-tdep.c: Including headers needed to perform the parsing
4021 of SystemTap probes' arguments.
4022 (arm_stap_is_single_operand): New function.
4023 (arm_stap_parse_special_token): Likewise.
4024 (arm_linux_init_abi): Initializing proper fields used by SystemTap
4025 probes' arguments parser.
4026 * ax-gdb.c (require_rvalue): Removing static declaration.
4027 (gen_expr): Likewise.
4028 * ax-gdb.h (gen_expr): Declaring function.
4029 (require_rvalue): Likewise.
4030 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
4031 (bkpt_probe_breakpoint_ops): New variable.
4032 (momentary_breakpoint_from_master): Set the `probe' value.
4033 (add_location_to_breakpoint): Likewise.
4034 (break_command_1): Using proper breakpoint_ops according to the
4035 argument passed by the user in the command line.
4036 (bkpt_probe_insert_location): New function.
4037 (bkpt_probe_remove_location): Likewise.
4038 (bkpt_probe_create_sals_from_address): Likewise.
4039 (bkpt_probe_decode_linespec): Likewise.
4040 (tracepoint_probe_create_sals_from_address): Likewise.
4041 (tracepoint_probe_decode_linespec): Likewise.
4042 (tracepoint_probe_breakpoint_ops): New variable.
4043 (trace_command): Using proper breakpoint_ops according to the
4044 argument passed by the user in the command line.
4045 (initialize_breakpoint_ops): Initializing breakpoint_ops for
4046 static probes on breakpoints and tracepoints.
4047 * breakpoint.h (struct bp_location) <probe>: New field.
4048 * cli-utils.c (skip_spaces_const): New function.
4049 (extract_arg): Likewise.
4050 * cli-utils.h (skip_spaces_const): Likewise.
4051 (extract_arg): Likewise.
4052 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
4053 * configure.ac: Append `stap-probe.o' to be generated when ELF
4055 * configure: Regenerate.
4056 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
4057 * elfread.c: Include `probe.h' and `arch-utils.h'.
4058 (probe_key): New variable.
4059 (elf_get_probes): New function.
4060 (elf_get_probe_argument_count): Likewise.
4061 (elf_evaluate_probe_argument): Likewise.
4062 (elf_compile_to_ax): Likewise.
4063 (elf_symfile_relocate_probe): Likewise.
4064 (stap_probe_key_free): Likewise.
4065 (elf_probe_fns): New variable.
4066 (elf_sym_fns): Add `sym_probe_fns' value.
4067 (elf_sym_fns_lazy_psyms): Likewise.
4068 (elf_sym_fns_gdb_index): Likewise.
4069 (_initialize_elfread): Initialize objfile cache for static
4071 * gdb_vecs.h (struct probe): New forward declaration.
4072 (probe_p): New VEC declaration.
4073 * gdbarch.c: Regenerate.
4074 * gdbarch.h: Regenerate.
4075 * gdbarch.sh (stap_integer_prefix): New variable.
4076 (stap_integer_suffix): Likewise.
4077 (stap_register_prefix): Likewise.
4078 (stap_register_suffix): Likewise.
4079 (stap_register_indirection_prefix): Likewise.
4080 (stap_register_indirection_suffix): Likewise.
4081 (stap_gdb_register_prefix): Likewise.
4082 (stap_gdb_register_suffix): Likewise.
4083 (stap_is_single_operand): New function.
4084 (stap_parse_special_token): Likewise.
4085 (struct stap_parse_info): Forward declaration.
4086 * i386-tdep.c: Including headers needed to perform the parsing
4087 of SystemTap probes' arguments.
4088 (i386_stap_is_single_operand): New function.
4089 (i386_stap_parse_special_token): Likewise.
4090 (i386_elf_init_abi): Initializing proper fields used by SystemTap
4091 probes' arguments parser.
4092 * i386-tdep.h (i386_stap_is_single_operand): New function.
4093 (i386_stap_parse_special_token): Likewise.
4094 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
4095 * mipsread.c (ecoff_sym_fns): Likewise.
4096 * objfiles.c (objfile_relocate1): Support relocation for static
4098 * parse.c (prefixify_expression): Remove static declaration.
4099 (initialize_expout): Likewise.
4100 (reallocate_expout): Likewise.
4101 * parser-defs.h (initialize_expout): Declare function.
4102 (reallocate_expout): Likewise.
4103 (prefixify_expression): Likewise.
4104 * ppc-linux-tdep.c: Including headers needed to perform the parsing
4105 of SystemTap probes' arguments.
4106 (ppc_stap_is_single_operand): New function.
4107 (ppc_stap_parse_special_token): Likewise.
4108 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
4109 probes' arguments parser.
4110 * probe.c: New file, for generic statically defined probe support.
4111 * probe.h: Likewise.
4112 * s390-tdep.c: Including headers needed to perform the parsing of
4113 SystemTap probes' arguments.
4114 (s390_stap_is_single_operand): New function.
4115 (s390_gdbarch_init): Initializing proper fields used by SystemTap
4116 probes' arguments parser.
4117 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
4118 * stap-probe.c: New file, for SystemTap probe support.
4119 * stap-probe.h: Likewise.
4120 * symfile.h: Include `gdb_vecs.h'.
4121 (struct sym_probe_fns): New struct.
4122 (struct sym_fns) <sym_probe_fns>: New field.
4123 * symtab.c (init_sal): Initialize `probe' field.
4124 * symtab.h (struct probe): Forward declaration.
4125 (struct symtab_and_line) <probe>: New field.
4126 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
4128 (stop_tracing): Likewise.
4129 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
4131 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4132 Tom Tromey <tromey@redhat.com>
4134 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
4135 and to compile agent expressions.
4136 * infrun.c (siginfo_make_value): New argument `ignore'.
4137 (siginfo_funcs): New struct.
4138 (_initialize_infrun): New argument when calling
4139 `create_internalvar_type_lazy'.
4140 * thread.c (thread_id_make_value): New argument `ignore'.
4141 (thread_funcs): New struct.
4142 (_initialize_thread): New argument when calling
4143 `create_internalvar_type_lazy'.
4144 * tracepoint.c (sdata_make_value): New argument `ignore'.
4145 (sdata_funcs): New struct.
4146 (_initialize_tracepoint): New argument when calling
4147 `create_internalvar_type_lazy'.
4148 * value.c (make_value): New struct.
4149 (create_internalvar_type_lazy): New argument `data'.
4150 (compile_internalvar_to_ax): New function.
4151 (value_of_internalvar): Properly handling `make_value' case.
4152 (clear_internalvar): Likewise.
4153 (show_convenience): Adding `TRY_CATCH' block.
4154 * value.h (internalvar_make_value): Delete, replace by...
4155 (struct internalvar_funcs): ... this.
4156 (create_internalvar_type_lazy) <fun>: Delete argument.
4157 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
4158 (compile_internalvar_to_ax): New function.
4159 * windows-tdep.c (tlb_make_value): New argument `ignore'.
4160 (tlb_funcs): New struct.
4161 (_initialize_windows_tdep): New argument when calling
4162 `create_internalvar_type_lazy'.
4164 2012-04-27 Mark Wielaard <mjw@redhat.com>
4166 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4167 see whether it is an address or a constant offset from DW_AT_low_pc.
4168 (dwarf2_record_block_ranges): Likewise.
4169 (read_partial_die): Likewise.
4171 2012-04-26 Mark Wielaard <mjw@redhat.com>
4173 * MAINTAINERS (Write After Approval): Add myself to the list.
4175 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4177 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4178 (proc_prettyprint_signal): Likewise.
4179 (proc_prettyprint_faultset): Likewise.
4180 (proc_prettyprint_fault): Likewise.
4181 (proc_prettyprint_actionset): Likewise.
4182 (proc_prettyprint_flags): Move to new proc-flags.c section.
4183 (proc_prettyfprint_flags): New prototype.
4184 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4185 (proc_syscall, proc_cursig): Likewise.
4186 (proc_set_kill_on_last_close): Likewise.
4187 (proc_unset_kill_on_last_close): Likewise.
4188 (proc_set_watchpoint): Make static.
4189 (proc_delete_dead_threads): Likewise.
4190 (procfs_set_watchpoint): Likewise.
4191 (_initialize_procfs): Add prototype.
4192 * proc-events.c: Include proc-utils.h.
4193 (init_syscall_table): Make static.
4194 * proc-api.c (_initialize_proc_api): Add prototype.
4195 * proc-flags.c: Include proc-utils.h.
4197 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4199 * configure.ac: Add AC_ARG_PROGRAM.
4200 * configure: Regenerate.
4202 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4204 Fix DW_AT_lower_bound defaults for DWARF-4+.
4205 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4206 high. New variable low_default_is_valid. Implement DWARF-4+
4207 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4208 no default by the DWARF standard.
4210 2012-04-26 Maciej W. Rozycki <macro@mips.com>
4211 Maciej W. Rozycki <macro@codesourcery.com>
4213 * infrun.c (handle_inferior_event): Move the check for return
4214 trampolines ahead of the check for function trampolines.
4215 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4216 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4217 (mips_str_mips16_ret_stub): Likewise.
4218 (mips_str_call_fp_stub): Likewise.
4219 (mips_str_call_stub): Likewise.
4220 (mips_str_fn_stub): Likewise.
4221 (mips_str_pic): Likewise.
4222 (mips_in_frame_stub): New function.
4223 (mips_unwind_pc): Return the return address rather than the PC
4224 if the PC of an intermediate frame is inside a call thunk.
4225 (mips_is_stub_suffix): New function.
4226 (mips_is_stub_mode): Likewise.
4227 (mips_get_mips16_fn_stub_pc): Likewise.
4228 (mips_skip_mips16_trampoline_code): Update to handle all the
4229 currently generated stub types. Don't recurse into __fn_stub
4230 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4231 Use cooked register accesses.
4232 (mips_in_return_stub): Reintroduce function.
4233 (mips_skip_trampoline_code): Traverse trampolines recursively.
4234 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4236 2012-04-26 Joel Brobecker <brobecker@adacore.com>
4240 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4242 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4243 * features/arm-with-m-vfp-d16.xml: New file. Describes
4244 Cortex-M with VFPv4-sp-d16 FPU register layout.
4245 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4246 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4247 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4248 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4249 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4251 2012-04-25 Doug Evans <dje@google.com>
4253 * cli/cli-decode.c (print_doc_line): Use stream instead of
4256 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4258 * features/arm-with-iwmmxt.c: Regenerate.
4259 * features/arm-with-m-fpa-layout.c: Likewise.
4260 * features/arm-with-m.c: Likewise.
4261 * features/arm-with-neon.c: Likewise.
4262 * features/arm-with-vfpv2.c: Likewise.
4263 * features/arm-with-vfpv3.c: Likewise.
4264 * features/mips-dsp-linux.c: Likewise.
4265 * features/mips-linux.c: Likewise.
4266 * features/mips64-dsp-linux.c: Likewise.
4267 * features/mips64-linux.c: Likewise.
4268 * features/s390-linux32.c: Likewise.
4269 * features/s390-linux32v1.c: Likewise.
4270 * features/s390-linux32v2.c: Likewise.
4271 * features/s390-linux64.c: Likewise.
4272 * features/s390-linux64v1.c: Likewise.
4273 * features/s390-linux64v2.c: Likewise.
4274 * features/s390x-linux64.c: Likewise.
4275 * features/s390x-linux64v1.c: Likewise.
4276 * features/s390x-linux64v2.c: Likewise.
4277 * features/tic6x-c62x-linux.c: Likewise.
4278 * features/tic6x-c62x.c: Likewise.
4279 * features/tic6x-c64x-linux.c: Likewise.
4280 * features/tic6x-c64x.c: Likewise.
4281 * features/tic6x-c64xp-linux.c: Likewise.
4282 * features/tic6x-c64xp.c: Likewise.
4283 * target-descriptions.c: Only generate `field_type' and `type'
4284 variables when needed.
4286 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4288 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4290 2012-04-25 Doug Evans <dje@google.com>
4292 Initial pass at Go language support.
4294 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4296 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4297 (YYFILES): Add go-exp.c.
4298 (YYOBJ): Add go-exp.o.
4299 (local-maintainer-clean): Delete go-exp.c.
4300 * defs.h (enum language): Add language_go.
4301 * dwarf2read.c: #include "go-lang.h".
4302 (fixup_go_packaging): New function.
4303 (process_full_comp_unit): Call it when processing Go CUs.
4304 (dwarf2_physname): Add Go support.
4305 (read_file_scope): Handle missing language spec for GNU Go.
4306 (set_cu_language): Handle DW_LANG_Go.
4307 * go-exp.y: New file.
4308 * go-lang.h: New file.
4309 * go-lang.c: New file.
4310 * go-typeprint.c: New file.
4311 * go-valprint.c: New file.
4312 * symtab.c: #include "go-lang.h".
4313 (symbol_set_language): Handle language_go.
4314 (symbol_find_demangled_name, symbol_set_names): Ditto.
4315 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4317 2012-04-24 Jim Meyering <meyering@redhat.com>
4319 avoid a few strncpy-induced buffer overruns
4320 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4321 fname and psargs before trying to concatenate.
4322 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4323 "name" before applying strchr.
4325 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4327 * CONTRIBUTE: Use unified diff instead of context diff when
4330 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4332 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4333 code. Handle JR.HB correctly.
4335 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4338 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4339 with the other MIPS16 helpers.
4341 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4343 * observer.sh: Conditionally declare `args', thus cleaning up
4344 unused instances of this variable.
4346 2012-04-24 Yao Qi <yao@codesourcery.com>
4348 Revert this patch to allow breakpoint always-inserted
4350 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4351 * breakpoint.c: Include record.h.
4352 (breakpoints_always_inserted_mode): Return false when the record
4355 * breakpoint.c (iterate_over_bp_locations): New.
4356 * breakpoint.h: Declare.
4357 New typedef walk_bp_location_callback.
4358 * record.c (record_open): Call record_init_record_breakpoints.
4359 (record_sync_record_breakpoints): New.
4360 (record_init_record_breakpoints): New.
4361 * NEWS: Mention supporting breakpoint always-inserted mode in
4364 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4366 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4369 2012-04-24 Yao Qi <yao@codesourcery.com>
4371 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4372 (is_catchpoint): ... it.
4373 (print_one_breakpoint_location): Caller update.
4374 * breakpoint.h: Update declaration.
4376 2012-04-23 David S. Miller <davem@davemloft.net>
4378 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4380 2012-04-23 Tom Tromey <tromey@redhat.com>
4382 * buildsym.c (add_free_pendings): Remove.
4383 * buildsym.h (add_free_pendings): Remove.
4385 2012-04-23 Doug Evans <dje@google.com>
4387 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4388 attr.u.unsnd instead of attr.u.addr.
4389 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4390 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4392 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4393 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4395 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4397 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4399 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4400 (mips_o32_return_value): Likewise.
4401 (mips_o64_return_value): Likewise.
4403 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4405 * ada-lang.c (ada_evaluate_subexp): Add cases for
4406 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4407 their treatment in eval.c.
4409 2012-04-21 David S. Miller <davem@davemloft.net>
4411 * sparc-tdep.c (X_DISP10): Define.
4412 (sparc_analyze_control_transfer): Handle compare-and-branch.
4414 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4416 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4417 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4419 2012-04-20 Nigel Stephens <nigel@mips.com>
4420 Maciej W. Rozycki <macro@codesourcery.com>
4422 * mips-tdep.c (mips_float_register_p): New function.
4423 (mips_convert_register_float_case_p): Use mips_float_register_p.
4424 (mips_register_type): Likewise.
4425 (mips_print_register): Likewise.
4426 (print_gp_register_row): Likewise.
4427 (mips_print_registers_info): Likewise.
4429 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4431 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4434 2012-04-20 Andrew Pinski <apinski@cavium.com>
4436 * MAINTAINERS (Write After Approval): Add myself to the list.
4438 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4440 * MAINTAINERS: Update my e-mail address.
4442 2012-04-20 Pedro Alves <palves@redhat.com>
4444 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4446 * configure: Regenerate.
4448 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4450 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4452 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4454 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4456 Fix compilation compatibility with python-2.4
4457 * python/py-type.c (convert_field): Cast ADDRSTRING for
4458 PyObject_SetAttrString as non-const. New comment.
4460 2012-04-19 Tom Tromey <tromey@redhat.com>
4462 * top.c (quit_target): Use all_cleanups.
4463 * main.c (captured_command_loop): Use all_cleanups.
4464 * exceptions.c (throw_exception): Use all_cleanups.
4466 2012-04-19 Pedro Alves <palves@redhat.com>
4468 * Makefile.in (GNULIB_BUILDDIR): New.
4469 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4470 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4471 (CLEANDIRS). Remove gnulib/import.
4472 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4474 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4475 (gnulib/import/Makefile): Replace gnulib/import with
4476 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4477 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4478 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4479 acx_configure_dir.m4.
4480 * acinclude.m4: Include acx_configure_dir.m4.
4481 * acx_configure_dir.m4: New file.
4482 * aclocal.m4: Regenerate.
4483 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4484 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4485 (GNULIB): New variable.
4486 (GNULIB_STDINT_H): Adjust.
4487 (AC_OUTPUT): Don't output gnulib/Makefile.
4488 * gdb/defs.h: Include build-gnulib/config.h.
4489 * aclocal.m4: Regenerate.
4490 * config.in: Regenerate.
4491 * configure: Regenerate.
4493 * gnulib/Makefile.in: New file.
4494 * gnulib/configure.ac: New file.
4495 * gnulib/aclocal.m4: New file.
4496 * gnulib/config.in: New file.
4497 * gnulib/configure: New file.
4498 * gnulib/: Re-run gnulib-tool to adjust.
4500 2012-04-19 Doug Evans <dje@google.com>
4502 * cleanups.h (struct cleanup): Move to cleanups.c.
4503 (make_cleanup_dtor_ftype): New typedef.
4504 (make_cleanup_dtor): Use it.
4505 (ALL_CLEANUPS): Replace with ...
4506 (all_cleanups): ... this. Declare. All uses updated.
4507 * cleanups.c: #include "gdb_assert.h".
4508 (sentinel_cleanup): New static global.
4509 (SENTINEL_CLEANUP): Define.
4510 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4511 (make_my_cleanup2): Assert result is non-NULL.
4512 (all_cleanups): New function.
4513 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4516 2012-04-19 Pedro Alves <palves@redhat.com>
4518 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4519 Adjust paths to gnulib imported files.
4521 2012-04-19 Pedro Alves <palves@redhat.com>
4523 * gnulib/: Move whole directory ...
4524 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4525 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4526 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4527 (aclocal_m4_deps): Adjust.
4528 * aclocal.m4: Regenerate.
4529 * configure: Regenerate.
4530 * configure.ac: Adjust AC_OUTPUT output.
4532 2012-04-19 Yao Qi <yao@codesourcery.com>
4534 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4536 * vec.c: Move it ...
4537 * common/vec.c: ... here.
4538 * vec.h: Move it ...
4539 * common/vec.h: ... here.
4541 2012-04-19 Yao Qi <yao@codesourcery.com>
4543 * gdb-code-style.el: New.
4545 2012-04-18 Pedro Alves <palves@redhat.com>
4547 Update gnulib from latest git.
4548 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4550 * gnulib/Makefile.am: Update.
4551 * gnulib/dummy.c: Update.
4552 * gnulib/extra/arg-nonnull.h: Update.
4553 * gnulib/extra/c++defs.h: Update.
4554 * gnulib/extra/update-copyright: Update.
4555 * gnulib/extra/warn-on-use.h: Update.
4556 * gnulib/inttypes.in.h: Update.
4557 * gnulib/m4/00gnulib.m4: Update.
4558 * gnulib/m4/extensions.m4: Update.
4559 * gnulib/m4/gnulib-cache.m4: Update.
4560 * gnulib/m4/gnulib-common.m4: Update.
4561 * gnulib/m4/gnulib-comp.m4: Update.
4562 * gnulib/m4/gnulib-tool.m4: Update.
4563 * gnulib/m4/include_next.m4: Update.
4564 * gnulib/m4/inttypes-pri.m4: Update.
4565 * gnulib/m4/inttypes.m4: Update.
4566 * gnulib/m4/longlong.m4: Update.
4567 * gnulib/m4/memchr.m4: Update.
4568 * gnulib/m4/memmem.m4: Update.
4569 * gnulib/m4/mmap-anon.m4: Update.
4570 * gnulib/m4/multiarch.m4: Update.
4571 * gnulib/m4/onceonly.m4: Update.
4572 * gnulib/m4/stddef_h.m4: Update.
4573 * gnulib/m4/stdint.m4: Update.
4574 * gnulib/m4/string_h.m4: Update.
4575 * gnulib/m4/warn-on-use.m4: Update.
4576 * gnulib/m4/wchar_h.m4: Update.
4577 * gnulib/m4/wchar_t.m4: Update.
4578 * gnulib/m4/wint_t.m4: Update.
4579 * gnulib/memchr.c: Update.
4580 * gnulib/memmem.c: Update.
4581 * gnulib/stddef.in.h: Update.
4582 * gnulib/stdint.in.h: Update.
4583 * gnulib/str-two-way.h: Update.
4584 * gnulib/string.in.h: Update.
4585 * gnulib/wchar.in.h: Update.
4587 * gnulib/extra/arg-nonnull.h: Delete.
4588 * gnulib/extra/c++defs.h: Delete.
4589 * gnulib/extra/warn-on-use.h: Delete.
4590 * gnulib/m4/wchar_h.m4: Delete.
4591 * gnulib/m4/wint_t.m4: Delete.
4592 * gnulib/wchar.in.h: Delete.
4594 * gnulib/extra/snippets/arg-nonnull.h: New.
4595 * gnulib/extra/snippets/c++defs.h: New.
4596 * gnulib/extra/snippets/warn-on-use.h: New.
4598 * aclocal.m4: Regenerate.
4599 * config.in: Regenerate.
4600 * configure: Regenerate.
4601 * gnulib/Makefile.in: Regenerate.
4603 2012-04-18 Pedro Alves <palves@redhat.com>
4605 Reimport the update-copyright module from gnulib
4606 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4608 * configure: Regenerate.
4609 * gnulib/Makefile.am: Update.
4610 * gnulib/Makefile.in: Regenerate.
4611 * gnulib/extra/update-copyright: Update.
4612 * gnulib/m4/gnulib-cache.m4: Update.
4613 * gnulib/m4/gnulib-comp.m4: Update.
4615 2012-04-18 Tristan Gingold <gingold@adacore.com>
4617 * configure.ac (aix): Put -lpthread into libs.
4618 * configure: Regenerate.
4620 2012-04-18 Tom Tromey <tromey@redhat.com>
4622 * linespec.c (convert_linespec_to_sals): Don't use
4624 (compare_msymbols): Arguments are minsym_and_objfile, not
4625 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4627 2012-04-18 Pedro Alves <palves@redhat.com>
4629 Revert gnulib/ part of:
4630 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4631 Copyright year update in most files (performed by copyright.sh).
4633 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4635 Fix 64-bit constants on 32-bit hosts.
4636 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4637 from unsigned long to ULONGEST.
4638 (read_signed_leb128): Change declaration return type from long to
4640 (dwarf2_const_value_attr): Change declaration parameter value from long
4642 (dwarf2_compute_name): Change variable value from long to LONGEST.
4643 (read_unsigned_leb128): Change return type, variable result and some
4644 casts from unsigned long to ULONGEST.
4645 (read_signed_leb128): Change return type, variable result and some
4646 casts from long to LONGEST.
4647 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4648 value from long to LONGEST.
4649 (dwarf2_const_value): Change variable value from long to LONGEST.
4650 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4651 plongest and hex_string.
4652 * symtab.h (struct general_symbol_info): Change ivalue from long to
4653 LONGEST, remove the comment.
4654 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4655 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4657 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4660 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4661 * ada-lang.c (ada_discrete_type_high_bound)
4662 (ada_discrete_type_low_bound): Fix function comment. Use
4663 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4664 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4665 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4666 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4667 Use TYPE_FIELD_ENUMVAL.
4668 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4669 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4670 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4671 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4673 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4674 * dwarf2read.c (process_enumeration_scope): Likewise.
4675 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4677 (class StructMainTypePrettyPrinter): Support also
4678 FIELD_LOC_KIND_ENUMVAL.
4679 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4681 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4682 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4683 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4684 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4686 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4687 accommodate enumval.
4688 (struct call_site): Adjust loc_kind to accommodate enumval.
4689 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4690 (TYPE_FIELD_ENUMVAL): New macros.
4691 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4692 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4694 * p-typeprint.c (pascal_type_print_base): Likewise.
4695 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4697 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4698 * python/py-type.c (convert_field): New variable addrstring. Use
4699 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4700 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4701 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4702 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4704 * valprint.c (generic_val_print): Likewise.
4706 2012-04-17 Doug Evans <dje@google.com>
4708 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4710 * dwarf2read.c: Whitespace fixes.
4711 (lookup_signatured_type): Tweak comment.
4712 (get_die_type_at_offset): Fix comment.
4714 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4716 * xcoffread.c (xcoff_secnum_to_sections): New function.
4717 (secnum_to_section, secnum_to_bfd_section): Reimplement
4718 using xcoff_secnum_to_sections. Rename "secnum" parameter
4720 (RECORD_MINIMAL_SYMBOL): Delete.
4721 (record_minimal_symbol): New function.
4722 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4723 by call to record_minimal_symbol and set misc_func_recorded
4724 to 1. Set last_csect_sec to the XCOFF section index instead
4725 of GDB's section_offset index. Update calls to
4726 prim_record_minimal_symbol_and_info to pass the BFD section
4729 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4731 * xcoffread.c (read_xcoff_symtab): Delete variables
4732 last_csect_val and last_csect_sec and associated code.
4734 2012-04-17 Doug Evans <dje@google.com>
4736 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4737 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4738 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4739 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4741 * cleanups.h: New file.
4742 * cleanups.c: New file.
4743 * Makefile.in (SFILES): Add cleanups.c.
4744 (HFILES_NO_SRCDIR): Add cleanups.h.
4745 (COMMON_OBS): Add cleanups.o.
4746 * defs.h (struct cleanup): Moved to cleanups.h.
4747 (do_cleanups,do_final_cleanups): Ditto.
4748 (discard_cleanups,discard_final_cleanups): Ditto
4749 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4750 (save_cleanups,save_final_cleanups): Ditto.
4751 (restore_cleanups,restore_final_cleanups): Ditto.
4752 (null_cleanup): Ditto.
4753 (make_my_cleanup,make_my_cleanup2): Ditto.
4754 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4755 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4756 (do_cleanups,do_final_cleanups): Ditto.
4757 (discard_cleanups,discard_final_cleanups): Ditto
4758 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4759 (save_cleanups,save_final_cleanups): Ditto.
4760 (restore_cleanups,restore_final_cleanups): Ditto.
4761 (null_cleanup): Ditto.
4762 (make_my_cleanup,make_my_cleanup2): Ditto.
4763 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4765 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4767 (make_cleanup_dyn_string_delete): Ditto.
4768 (make_cleanup_ui_file_delete): Ditto.
4769 (make_cleanup_ui_out_redirect_pop): Ditto.
4770 (make_cleanup_free_section_addr_info): Ditto.
4771 (make_cleanup_restore_integer): Ditto.
4772 (make_cleanup_unpush_target): Ditto.
4773 (make_cleanup_value_free_to_mark): Ditto.
4774 (make_cleanup_value_free): Ditto.
4775 (make_cleanup_free_so): Ditto.
4777 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4779 New option "set debug auto-load".
4780 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4781 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4782 (auto_load_safe_path_vec_update)
4783 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4785 (file_is_auto_load_safe): New parameters debug_fmt and ....
4786 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4787 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4788 caller by explanatory string.
4789 (_initialize_auto_load): Register "set debug auto-load".
4790 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4792 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4793 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4794 by explanatory string.
4795 * main.c (captured_main): Likewise.
4796 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4797 (source_section_scripts): Likewise.
4799 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4801 New option "set auto-load safe-path".
4802 * NEWS: New commands "set auto-load safe-path"
4803 and "show auto-load safe-path".
4804 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4805 (auto_load_safe_path, auto_load_safe_path_vec)
4806 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4807 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4808 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4809 (source_gdb_script_for_objfile): New variable is_safe. Call
4810 file_is_auto_load_safe. Return if it is not.
4811 (struct loaded_script): New field loaded.
4812 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4813 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4814 output "Missing" to "No".
4815 (_initialize_auto_load): New variable cmd. Initialize
4816 auto_load_safe_path. Register "set auto-load safe-path",
4817 "show auto-load safe-path" and "add-auto-load-safe-path".
4818 * auto-load.h (maybe_add_script): Add parameter loaded.
4819 (file_is_auto_load_safe): New declaration.
4820 * config.in: Regenerate.
4821 * configure: Regenerate.
4822 * configure.ac: New parameters --with-auto-load-safe-path
4823 and --without-auto-load-safe-path.
4824 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4825 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4826 * main.c (captured_main): Check file_is_auto_load_safe for
4828 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4829 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4830 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4833 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4835 auto-load: Implementation.
4836 * NEWS: New descriptions for "info auto-load",
4837 "info auto-load gdb-scripts", "info auto-load python-scripts",
4838 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4839 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4840 and "show auto-load-scripts". New description for "set auto-load",
4841 "show auto-load", "set auto-load gdb-scripts",
4842 "show auto-load gdb-scripts", "set auto-load python-scripts",
4843 "show auto-load python-scripts", "set auto-load local-gdbinit",
4844 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4845 "show auto-load libthread-db".
4846 * auto-load.c: Remove include python/python-internal.h. Add includes
4847 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4849 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4850 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4851 (gdbpy_global_auto_load): Rename to ...
4852 (global_auto_load): ... here.
4853 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4854 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4855 (script_language_gdb, source_gdb_script_for_objfile): New.
4856 (struct loaded_script): New field language.
4857 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4859 (maybe_add_script): Add parameter language. Drop redundant
4860 entry.full_path initialization. Initialize entry.language and
4862 (auto_load_objfile_script): Change parameter suffix to language.
4863 Remove the call of maybe_add_script.
4864 Call language->source_script_for_objfile.
4865 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4867 (collect_matching_scripts): Adjust it for
4868 struct collect_matching_scripts_data.
4869 (auto_load_info_scripts_pattern_nl): New variable.
4870 (info_auto_load_scripts): Rename to ...
4871 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4872 for struct collect_matching_scripts_data.
4873 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4874 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4875 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4876 (auto_load_info_cmdlist_get): New.
4877 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4878 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4879 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4880 "info auto-load local-gdbinit".
4881 * auto-load.h (struct script_language): New.
4882 (gdbpy_global_auto_load): Rename to ...
4883 (global_auto_load): ... here.
4884 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4885 (auto_load_local_gdbinit_loaded): New declarations.
4886 (maybe_add_script): New parameter language.
4887 (auto_load_objfile_script): Change parameter suffix to language.
4888 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4889 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4890 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4892 * linux-thread-db.c: Include auto-load.h and ctype.h.
4893 (auto_load_thread_db, show_auto_load_thread_db): New.
4894 (struct thread_db_info): New field filename.
4895 (delete_thread_db_info): Call xfree for FILENAME.
4896 (try_thread_db_load): Initialize FILENAME.
4897 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4898 if !AUTO_LOAD_THREAD_DB.
4899 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4900 (_initialize_thread_db): Install auto_load_thread_db
4901 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4902 as "info auto-load libthread-db".
4903 * main.c (captured_main): Rename gdbpy_global_auto_load to
4904 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4905 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4906 (print_gdb_help): Extend the help for 'local init file'.
4907 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4908 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4909 (auto_load_scripts): Rename to ...
4910 (auto_load_python_scripts): ... here, update the comment.
4911 (gdbpy_load_auto_script_for_objfile): New declaration.
4912 (show_auto_load_python_scripts, script_language_python)
4913 (gdbpy_load_auto_script_for_objfile): New.
4914 (source_section_scripts): Refactor the code.
4915 (load_auto_scripts_for_objfile): Rename to ...
4916 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4917 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4918 (info_auto_load_python_scripts): New.
4919 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4920 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4921 Register "set auto-load-scripts" as its deprecated alias. Register
4922 "info auto-load python-scripts". Register "info auto-load-scripts" as
4923 its deprecated alias.
4924 (load_auto_scripts_for_objfile): Rename to ...
4925 (gdbpy_load_auto_scripts_for_objfile): ... here.
4926 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4927 (gdbpy_load_auto_scripts_for_objfile): ... here.
4929 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4931 auto-load: Move files.
4932 * Makefile.in (SFILES): Add auto-load.c.
4933 (HFILES_NO_SRCDIR): Add auto-load.h.
4934 (COMMON_OBS): Add auto-load.o.
4935 (distclean): Change .gdbinit for gdb-gdb.gdb.
4936 * auto-load.c: New file, with parts from python/py-auto-load.c.
4937 * auto-load.h: New file, with parts from python/python.h.
4938 * configure: Regenerate.
4939 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4940 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4941 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4942 * main.c: Include auto-load.h.
4943 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4944 command.h, observer.h and progspace.h to auto-load.c. Add include
4946 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4947 (struct loaded_script, auto_load_pspace_data)
4948 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4949 (hash_loaded_script_entry, eq_loaded_script_entry)
4950 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4951 (maybe_add_script): Move to auto-load.c.
4952 (source_section_scripts): Change maybe_add_script parameters passing,
4953 use script_not_found_warning_print.
4954 (clear_section_scripts, auto_load_objfile_script)
4955 (auto_load_new_objfile, loaded_script_ptr)
4956 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4957 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4958 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4959 auto_load_new_objfile and info_auto_load_scripts initizations to
4961 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4963 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4966 * charset.c (find_charset_names): Remove variables ix and elt.
4967 Use free_char_ptr_vec.
4968 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4969 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4970 debugdir_end. New variable debugdir_len.
4971 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4972 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4974 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4975 and elt. Use free_char_ptr_vec.
4976 * source.c (add_path): Remove variables argv, arg and argv_index.
4977 New variables dir_vec, back_to, ix and name.
4978 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4979 make_cleanup_freeargv. Remove variable separator. Simplify the code
4980 no longer expecting DIRNAME_SEPARATOR.
4981 (openp): Remove variable p, p1 and len. New variables dir_vec,
4982 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4983 no longer expecting DIRNAME_SEPARATOR.
4984 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4985 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4987 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4988 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4989 (dirnames_to_char_ptr_vec): New functions.
4991 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4994 * source.c (add_path): Remove always true conditional 'p == 0' and
4995 unindent its code block.
4997 2012-04-17 Pedro Alves <palves@redhat.com>
4999 * gdbtypes.h (FIELD_BITPOS): Rename to ...
5000 (FIELD_BITPOS_LVAL): ... this.
5001 (FIELD_BITPOS): New.
5002 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
5003 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
5004 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
5006 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
5008 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
5009 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
5010 * target-descriptions.c (tdesc_gdb_type): Adjust to use
5013 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5015 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
5016 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
5017 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
5018 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
5019 * jv-lang.c (java_link_class_type): Likewise, once.
5020 * stabsread.c (read_enum_type): Likewise.
5022 2012-04-16 Yao Qi <yao@codesourcery.com>
5024 * common/agent.c (agent_run_command): Add one more parameter `len'.
5026 * common/agent.h: Update declaration.
5027 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5029 (linux_child_static_tracepoint_markers_by_strid): Ditto.
5031 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
5034 * value.c (value_actual_type): New function.
5035 * value.h (value_actual_type): New declaration.
5036 * varobj.c (update_type_if_necessary): New function.
5037 (varobj_create): Call value_actual_type instead of
5039 (install_dynamic_child): distinct changed and type changed MI variable
5041 (update_dynamic_varobj_children): Updated for install_dynamic_child
5042 change. All callers updated.
5043 (varobj_update): Support for MI variable object type change if
5044 the value changed and RTTI is used to determine the type.
5045 (create_child_with_value): Call value_actual_type instead of
5047 (adjust_value_for_child_access): Extended with a new parameter which
5048 specify whether the given value should be casted to enclosing type.
5049 All callers updated.
5051 2012-04-14 Yao Qi <yao@codesourcery.com>
5053 Import gnulib module inttypes from git
5054 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5055 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
5056 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
5057 gnulib/m4/inttypes-pri.m4
5058 * aclocal.m4, config.in, configure: Regenerated.
5059 * gnulib/Makefile.am: Update.
5060 * gnulib/Makefile.in: Update.
5061 * gnulib/m4/gnulib-cache.m4: Update.
5062 * gnulib/m4/gnulib-comp.m4: Update.
5063 * gnulib/inttypes.in.h: New.
5064 * gnulib/m4/inttypes-pri.m4: New.
5065 * gnulib/m4/inttypes.m4: New.
5067 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
5069 * infrun.c (resume): Update PC address to the real PC after
5070 preparing to do displaced stepping.
5072 2012-04-12 Doug Evans <dje@google.com>
5074 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
5075 All callers updated.
5077 2012-04-12 Mark Kettenis <kettenis@gnu.org>
5079 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
5081 2012-04-12 Doug Evans <dje@google.com>
5083 * dwarf2read.c (create_all_type_units): Renamed from
5084 create_debug_types_hash_table. All callers updated.
5086 * dwarf2read.c (create_signatured_type_table_from_index): Rename
5087 local type_sig to sig_type, type_offset to type_offset_in_tu.
5088 (hash_signatured_type): Renamed from hash_type_signature,
5089 all callers updated.
5090 (eq_signatured_type): Renamed from eq_type_signature,
5091 all callers updated.
5092 (create_debug_types_hash_table): Rename local type_sig to sig_type.
5093 (process_enumeration_scope): Ditto.
5094 (lookup_signatured_type_at_offset): Ditto.
5095 (load_full_type_unit, read_signatured_type): Ditto.
5097 2012-04-12 Yao Qi <yao@codesourcery.com>
5099 * remote.c (async_remote_interrupt): Correct function name in
5101 (async_remote_interrupt_twice): Ditto.
5103 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
5105 * source.c (find_and_open_source): Consistently pass resulting
5106 full path through xfullpath.
5108 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5110 Provide more specific displaced-stepping memory error message.
5111 * infrun.c (displaced_step_prepare): New variable status. Call
5112 target_read_memory instead of read_memory, provide more specific
5115 2012-04-11 Tristan Gingold <gingold@adacore.com>
5118 * darwin-nat.c (darwin_execvp): Revert previous patch.
5120 2012-04-11 Tristan Gingold <gingold@adacore.com>
5123 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
5126 2012-04-11 Tristan Gingold <gingold@adacore.com>
5128 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5131 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
5133 New command 'explore' which helps explore values and types in
5135 * NEWS: Add an entry about the new 'explore' command.
5136 * data-directory/Makefile.in: Add gdb/command/explore.py
5137 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
5138 command using the GDB Python API.
5140 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5142 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
5143 extension in jump target calculation.
5145 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5147 * mips-tdep.c (mips32_next_pc): Handle JALX.
5149 2012-04-10 Yao Qi <yao@codesourcery.com>
5151 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
5153 2012-04-10 Yao Qi <yao@codesourcery.com>
5155 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
5156 and gnulib/m4/gnulib-tool.m4.
5158 2012-04-10 Doug Evans <dje@google.com>
5160 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
5161 (load_partial_dies): Clarify comment.
5162 (find_partial_die): Support rereading type units.
5163 Clarify CU handling, if we know offset is in CU, don't search for the
5164 containing CU. Add comment regarding memory waste.
5166 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
5168 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5169 i386/x32-avx and i386/x32-avx-linux.
5170 (i386/x32-expedite): New.
5171 (i386/x32-linux-expedite): Likewise.
5172 (i386/x32-avx-expedite): Likewise.
5173 (i386/x32-avx-linux-expedite): Likewise.
5174 ($(outdir)/i386/x32.dat): Likewise.
5175 ($(outdir)/i386/x32-linux.dat): Likewise.
5176 ($(outdir)/i386/x32-avx.dat): Likewise.
5177 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5179 * features/i386/x32-avx-linux.xml: New file.
5180 * features/i386/x32-avx.xml: Likewise.
5181 * features/i386/x32-core.xml: Likewise.
5182 * features/i386/x32-linux.xml: Likewise.
5183 * features/i386/x32.xml: Likewise.
5185 * features/i386/x32-avx-linux.c: New. Generated.
5186 * features/i386/x32-avx.c: Likewise.
5187 * features/i386/x32-linux.c: Likewise.
5188 * features/i386/x32.c: Likewise.
5189 * regformats/i386/x32-avx-linux.dat: Likewise.
5190 * regformats/i386/x32-avx.dat: Likewise.
5191 * regformats/i386/x32-linux.dat: Likewise.
5192 * regformats/i386/x32.dat: Likewise.
5194 2012-04-10 Tristan Gingold <gingold@adacore.com>
5196 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5197 code to kill the inferior.
5199 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5201 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5203 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5205 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5206 (yyvsp): New defines.
5207 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5209 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5211 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5213 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5215 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5218 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5220 * sparc64-tdep.c (sparc64_store_arguments)
5221 (sparc64_store_arguments): Fix coding style.
5223 2012-04-07 Mark Kettenis <kettenis@gnu.org>
5225 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5226 complex floats, adjust some related comments and tighten a related
5228 (sparc64_extract_return_value): Handle complex floats.
5230 2012-04-07 Doug Evans <dje@google.com>
5232 * dwarf2read.c (load_partial_dies): Change condition to assert.
5234 2012-04-06 Doug Evans <dje@google.com>
5236 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5239 2012-04-05 Kevin Buettner <kevinb@redhat.com>
5241 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5243 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5244 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5247 2012-04-05 Keith Seitz <keiths@redhat.com>
5249 * linespec.c (decode_compound): Remove.
5250 (enum offset_relative_sign): New enum.
5251 (struct line_offset): New struct.
5252 (struct linespec): New struct.
5253 (struct linespec_state): Move file_symtabs,
5254 user_filename, and user_function into struct linespec.
5255 Make result an anonymous struct holding vectors of
5256 symbolp and minsym_and_objfile_d.
5257 Add language member.
5258 (enum ls_token_type): New enum.
5259 (linespec_keywords): New array.
5260 (struct ls_token): New struct.
5261 (struct ls_parser): New struct.
5262 (linespec_lexer_lex_number): New function.
5263 (linespec_lexer_lex_keyword): New function.
5264 (is_ada_operator): New function.
5265 (skip_quote_char): New function.
5266 (copy_token_string): New function.
5267 (is_closing_quote_enclosed): New function.
5268 (find_parameter_list_end): New function.
5269 (linespec_lexer_lex_string): New function.
5270 (linespec_lexer_lex_one): New function.
5271 (linespec_lexer_consume_token): New function.
5272 (linespec_lexer_peek_token): New function.
5273 (cplusplus_error): Remove unused function.
5274 (find_methods): Update comment.
5275 (find_toplevel_char): Return const.
5276 (is_objc_method_format): Remove unused function.
5277 (find_toplevel_string): New function.
5278 (is_linespec_boundary): Remove.
5279 (symbol_not_found_error): New function.
5280 (find_method_overload_end): Remove function.
5281 (unexpected_linespec_error): New function.
5282 (keep_name_info): Remove.
5283 (linespec_parse_line_offset): New function.
5284 (linespec_parse_basic): New function.
5285 (canonicalize_linespec): New function.
5286 (decode_line_internal): Remove.
5287 (create_sals_line_offset): New function adapted from
5289 (convert_linespec_to_sals): New function.
5290 (parse_linespec): New function.
5291 (linespec_parser_new): New function.
5292 (linespec_state_destructor): Change parameter type to
5293 struct linespec_state *.
5294 Add language parameter.
5295 Remove freeing of moved members.
5296 (linespec_parser_delete): New function.
5297 (decode_line_full): Use parse_linespec and linespec_parser_new.
5298 (decode_line_1): Likewise.
5299 (decode_indirect): Rename to ...
5300 (linespec_expression_to_pc): ... this and rewrite
5301 to simply find CORE_ADDR, storing this result for later
5303 (locate_first_half): Remove.
5304 (deocde_objc): Add parameter LS.
5305 Initialize new struct collect_info members.
5306 Handle minimal symbols, too.
5307 (decode_compound): Delete.
5308 (lookup_prefix_sym): Rewrite.
5309 (compare_msymbols): New function.
5310 (find_method): Rewrite.
5311 Do not call cplusplus_error.
5312 (symtabs_from_filename): Rewrite.
5313 (collect_function_symbols): Delete.
5314 (find_function_symbols): Rewrite without ARGPTR-style
5316 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5317 (decode_dollar): Adapted and renamed to ...
5318 (linespec_parse_variable): ... this.
5319 (find_linespec_symbols): New function.
5320 (decode_label): Adapted and renamed to ...
5321 (find_label_symbols): ... this.
5322 (decode_digits_list_mode): Add and use LS argument.
5323 (decode_digits_ordinary): Likewise.
5324 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5325 If in list mode, allow any symbol class. Otherwise, only
5326 permit LOC_BLOCK symbols.
5327 (minsym_found): Update comments.
5328 (search_minsyms_for_name): Do not convert the matching symbol
5329 into a SAL. Simply push the symbol and objfile into the
5331 (decode_variable): Delete. Contents adapted into
5332 find_linespec_symbols.
5334 * cp-support.c (SKIP_SPACE): Remove.
5335 (operator_tokens): Remove unused global.
5336 (cp_validate_operator): Remove.
5337 * cp-support.h (cp_validate_operator): Remove declaration.
5339 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5341 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5342 for TYPE_VPTR_FIELDNO.
5343 * valprint.c (valprint_check_validity): Make it global, move the
5344 function comment ...
5345 * value.h (valprint_check_validity): ... to this new declaration.
5347 2012-04-02 Tristan Gingold <gingold@adacore.com>
5349 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5350 the STATE32 api for i386 state.
5351 (i386_darwin_store_inferior_registers): Likewise.
5353 2012-04-02 Tristan Gingold <gingold@adacore.com>
5355 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5357 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5360 2012-04-02 Tristan Gingold <gingold@adacore.com>
5363 * darwin-nat.c (darwin_execvp): Set binary preference.
5365 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5367 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5369 2012-03-30 Tom Tromey <tromey@redhat.com>
5371 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5372 of TRY_CATCH. Fix error handling.
5373 * python/py-value.c (convert_value_from_python): Move 'old'
5374 declaration to innermost scope.
5376 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5377 Andrey Smirnov <andrew.smirnov@gmail.com>
5379 -Wshadow warning fix.
5380 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5381 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5382 Adjust code accordingly.
5384 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5386 * ada-lang.c (symbol_completion_add): Rename parameter
5387 "encoded" into "encoded_p". Ajust code and documentation
5390 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5391 Andrey Smirnov <andrew.smirnov@gmail.com>
5393 -Wshadow warning fix.
5394 * ada-lang.c (symbol_completion_add): Rename parameter
5395 "wild_match" into wild_match_p. Update code and documentation
5398 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5400 * ada-lang.c (symbol_completion_match): Rename parameter
5401 "encoded" into "encoded_p". Ajust code and documentation
5404 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5405 Andrey Smirnov <andrew.smirnov@gmail.com>
5407 -Wshadow warning fix.
5408 * ada-lang.c (symbol_completion_match): Rename parameter
5409 "wild_match" into "wild_match_p". Adjust code and function
5410 documentation accordingly.
5412 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5413 Andrey Smirnov <andrew.smirnov@gmail.com>
5415 -Wshadow warning fix.
5416 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5417 "symbol_info" into "info". Adjust code accordingly.
5418 (ada_lookup_symbol): Likewise.
5420 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5422 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5423 of this function's documentation.
5425 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5426 Andrey Smirnov <andrew.smirnov@gmail.com>
5428 -Wshadow warning fix.
5429 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5430 variable into "wild_match_p". Adjust code accordingly.
5432 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5433 Andrey Smirnov <andrew.smirnov@gmail.com>
5435 -Wshadow warning fix.
5436 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5437 parameter into "wild_match_p". Adjust code accordingly.
5438 Document this parameter in the function description.
5440 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5441 Andrey Smirnov <andrew.smirnov@gmail.com>
5443 -Wshadow warning fix.
5444 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5445 "wild_match" parameter to "wild_match_p" (-Wshadow).
5447 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5449 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5450 in function documentation.
5452 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5453 Andrey Smirnov <andrew.smirnov@gmail.com>
5455 -Wshadow warning fix.
5456 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5457 variable into wild_match_p. Adjust code accordingly.
5459 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5460 Andrey Smirnov <andrew.smirnov@gmail.com>
5462 * ada-valprint.c (ada_val_print_1): Move the code handling
5463 TYPE_CODE_ENUM inside its own lexical block. Declare
5464 variables len and val there, instead of in the function's
5465 top level block. Avoid declaring deref_val again in a way
5466 that shadows another variable of the same name declared
5467 in one of the up-level blocks. Just re-use the up-level
5470 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5472 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5473 Replace block_found argument by symbol_info. Adjust
5474 implementation accordingly. Add function documentation.
5475 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5477 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5478 * ada-exp.y (write_object_renaming): Adjust to new
5479 ada_lookup_encoded_symbol API.
5481 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5483 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5486 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5488 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5489 (v850_register_name): Add the mpu and fpu register names.
5490 (v850e_register_name): Add the mpu and fpu register names.
5491 (v850e2_register_name): New function.
5492 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5495 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5497 * NEWS: Add entry for Ada varobj support.
5499 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5501 * varobj.c (default_value_is_changeable_p): New function,
5502 extracted from varobj_value_is_changeable_p. Add declaration.
5503 (ada_value_is_changeable_p): New function, extracted from
5504 varobj_value_is_changeable_p. Add declaration.
5505 (struct language_specific): New field "value_is_changeable_p".
5506 (languages): Add entries for new field.
5507 (varobj_create): Set language before calling install_new_value.
5508 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5509 "value_is_changeable_p" language callback.
5511 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5513 * ada-varobj.h, ada-varobj.c: New files.
5514 * Makefile.in (SFILES): Add ada-varobj.c.
5515 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5516 (COMMON_OBS): Add ada-varobj.o.
5518 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5520 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5521 (struct language_specific): New field "value_has_mutated".
5522 (languages): Set field "value_has_mutated" in each entry of array.
5523 (varobj_value_has_mutated): New function.
5524 (varobj_udpdate): Add handling of type mutation.
5525 (value_of_root): Add handling of type mutation.
5526 (ada_value_has_mutated): New function.
5528 2012-03-28 Pedro Alves <palves@redhat.com>
5530 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5531 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5533 2012-03-28 Tom Tromey <tromey@redhat.com>
5535 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5536 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5539 2012-03-28 Tom Tromey <tromey@redhat.com>
5541 * .dir-locals.el: New file.
5543 2012-03-28 Pedro Alves <palves@redhat.com>
5545 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5547 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5549 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5552 2012-03-27 Pedro Alves <palves@redhat.com>
5554 Eliminate struct ui_stream.
5556 * ui-out.h (struct ui_stream): Delete.
5557 (ui_out_field_stream): Adjust prototype.
5558 (ui_out_stream_new, ui_out_stream_delete)
5559 (make_cleanup_ui_out_stream_delete): Delete declarations.
5560 * ui-out.c (ui_out_field_stream): Change prototype to take a
5561 ui_file instead of a ui_stream. Adjust.
5562 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5563 (make_cleanup_ui_out_stream_delete): Delete.
5564 * breakpoint.c (print_breakpoint_location)
5565 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5566 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5567 * disasm.c (dump_insns): Ditto.
5568 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5570 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5571 ui_stream/ui_out_stream_new.
5572 * infcmd.c (print_return_value): Ditto.
5573 * osdata.c (info_osdata_command): Don't allocate a local
5575 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5576 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5577 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5578 allocate a local ui_stream.
5579 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5580 instead of ui_stream/ui_out_stream_new.
5581 (list_args_or_locals): Don't allocate a local ui_stream.
5582 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5583 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5584 ui_stream/ui_out_stream_new.
5585 * cli/cli-setshow.c (do_setshow_command): Ditto.
5587 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5589 * arm-linux-tdep.c (arm_linux_init_abi): Call
5590 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5591 * arm-tdep.c (arm_process_record): New function.
5592 (deallocate_reg_mem): New function.
5593 (decode_insn): New function.
5594 (thumb_record_branch): New function.
5595 (thumb_record_ldm_stm_swi(): New function.
5596 (thumb_record_misc): New function.
5597 (thumb_record_ld_st_stack): New function.
5598 (thumb_record_ld_st_imm_offset): New function.
5599 (thumb_record_ld_st_reg_offset(): New function.
5600 (thumb_record_add_sub_cmp_mov): New function.
5601 (thumb_record_shift_add_sub): New function.
5602 (arm_record_coproc_data_proc): New function.
5603 (arm_record_coproc): New function.
5604 (arm_record_b_bl): New function.
5605 (arm_record_ld_st_multiple): New function.
5606 (arm_record_ld_st_reg_offset): New function.
5607 (arm_record_ld_st_imm_offset): New function.
5608 (arm_record_data_proc_imm): New function.
5609 (arm_record_data_proc_misc_ld_str): New function.
5610 (arm_record_extension_space): New function.
5611 (arm_record_strx): New function.
5612 (sbo_sbz): New function.
5613 (struct insn_decode_record): New structure for arm insn record.
5614 (REG_ALLOC): New macro for reg allocations.
5615 (MEM_ALLOC): New macro for memory allocations.
5616 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5618 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5620 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5621 (store_register): Likewise.
5623 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5625 * MAINTAINERS (Write After Approval): Add myself to the list.
5627 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5629 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5630 Describe also the option "auto".
5632 2012-03-22 Richard Henderson <rth@redhat.com>
5634 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5635 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5637 2012-03-22 Richard Henderson <rth@redhat.com>
5639 * jit.c (jit_read_code_entry): Compute alignment and offset of
5640 int64_t member before computing entry_size.
5642 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5644 Python scripting: Add new method Value.referenced_value to
5645 gdb.Value which can dereference pointer as well as reference
5647 * NEWS: Add entry under 'Python scripting' about the new method
5648 Value.referenced_value on gdb.Value objects.
5649 * python/py-value.c (valpy_referenced_value): New function
5650 defining a new method on gdb.Value objects which can dereference
5651 pointer and reference values.
5653 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5655 * MAINTAINERS (Write After Approval): Add myself to the list.
5657 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5659 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5660 in addition to "main".
5662 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5664 * expression.h (op_name): Add declaration.
5665 * expprint.c (op_name): Remove declaration. Make non-static.
5666 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5668 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5670 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5672 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5673 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5674 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5675 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5676 (linux_nat_get_siginfo): Likewise.
5677 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5678 (linux_nat_get_siginfo): Likewise.
5679 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5680 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5681 * procfs.c (gdb_siginfo_t): Likewise.
5683 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5685 * .gitignore: Ignore more files.
5687 2012-03-20 Pedro Alves <palves@redhat.com>
5689 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5692 2012-03-20 Yao Qi <yao@codesourcery.com>
5694 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5697 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5699 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5700 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5701 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5703 * dwarf2expr.h (cu_offset, sect_offset): New types.
5704 (struct dwarf_expr_context_funcs) <dwarf_call>
5705 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5707 (struct dwarf_expr_context) <len>: Improve the comment.
5708 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5709 cu_offset and sect_offset.
5710 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5711 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5712 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5713 * dwarf2loc.h: Include dwarf2expr.h.
5714 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5716 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5717 Improve the comment.
5718 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5719 (struct signatured_type, struct line_header, struct partial_die_info)
5720 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5721 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5722 (get_die_type_at_offset, create_cus_from_index)
5723 (create_signatured_type_table_from_index, dw2_get_file_names)
5724 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5725 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5726 (create_debug_types_hash_table, process_psymtab_comp_unit)
5727 (load_partial_comp_unit, create_all_comp_units)
5728 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5729 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5730 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5731 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5732 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5733 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5734 (find_partial_die, read_attribute_value, lookup_die_type)
5735 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5736 (is_ref_attr): New function comment.
5737 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5738 Use cu_offset and sect_offset.
5739 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5740 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5741 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5742 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5743 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5744 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5745 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5748 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5751 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5752 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5754 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5756 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5758 * NEWS: Describe new options --init-command=FILE, -ix and
5759 --init-eval-command=COMMAND, -iex.
5760 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5761 CMDARG_INIT_COMMAND.
5762 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5763 "init-command", "init-eval-command", "ix" and "iex" to the variable
5764 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5765 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5766 (print_gdb_help): Describe --init-command=FILE, -ix and
5767 --init-eval-command=COMMAND, -iex.
5769 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5772 * main.c (struct cmdarg): Move it here from main. Add more comments.
5773 (cmdarg_s, VEC (cmdarg_s)): New.
5774 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5775 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5776 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5777 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5780 2012-03-19 Tom Tromey <tromey@redhat.com>
5782 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5784 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5787 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5790 2012-03-16 Chris January <chris.january@allinea.com>
5792 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5795 2012-03-16 Chris January <chris.january@allinea.com>
5797 * source.c (add_path): Use memmove instead of strcpy because the
5800 2012-03-16 Joel Brobecker <brobecker@adacore.com>
5802 * value.h (set_value_parent): Add declaration.
5803 * value.c (set_value_parent): New function.
5804 (value_address): If VALUE->PARENT is not NULL, then use it as
5805 the base address instead of VALUE->LOCATION.address.
5806 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5807 the same as OBJ's address. Adjust V's offset accordingly.
5810 2012-03-16 Gary Benson <gbenson@redhat.com>
5812 PR breakpoints/10738
5813 * dwarf2read.c (use_deprecated_index_sections): New global.
5814 (struct partial_die_info): New member may_be_inlined.
5815 (read_partial_die): Set may_be_inlined where appropriate.
5816 (add_partial_subprogram): Add partial symbols for partial
5817 DIEs that may be inlined.
5818 (new_symbol_full): Add inlined subroutines to the current
5820 (write_psymtabs_to_index): Bump version number.
5821 (dwarf2_read_index): Read only version 6 indices unless
5822 use_deprecated_index_sections is set.
5823 * linespec.c (symbol_and_data_callback): New structure.
5824 (iterate_inline_only): New function.
5825 (iterate_over_all_matching_symtabs): New argument
5826 "include_inline". If nonzero, also call the callback for
5827 symbols representing inlined subroutines.
5828 (lookup_prefix_sym): Pass extra argument to the above.
5829 (find_function_symbols): Likewise.
5830 (add_matching_symbols_to_info): Likewise.
5831 * NEWS: Mention that GDB can now set breakpoints on inlined
5834 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5836 * p-typeprint.c (pascal_type_print_method_args):
5837 Fix display of parameter of methods.
5839 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5841 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5842 Add missing prototype.
5844 2012-03-16 Yao Qi <yao@codesourcery.com>
5845 Jan Kratochvil <jan.kratochvil@redhat.com>
5847 Fix false compilation warning.
5848 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5850 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5851 Pedro Alves <pedro@codesourcery.com>
5853 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5854 (arm_register_g_packet_guesses): New function.
5855 (arm_gdbarch_init): Don't force a target description with
5856 registers when the executable is detected as M-profile. Instead
5857 set gdbarch->tdep->is_m. Register `g' packet guesses.
5858 (_initialize_arm_tdep): Initialize the new target description.
5859 * features/arm-with-m-fpa-layout.xml: New description.
5860 * features/arm-with-m-fpa-layout.c: New, generated.
5862 2012-03-15 Joel Brobecker <brobecker@adacore.com>
5864 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5865 Update function description.
5866 (insert_bp_location): Do not wipe bl->target_info out.
5867 * mem-break.c: #include "gdb_string.h".
5868 (default_memory_insert_breakpoint): Do not call target_read_memory
5869 with a pointer to the breakpoint's shadow_contents buffer. Use
5870 a local buffer instead.
5871 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5873 2012-03-15 Tom Tromey <tromey@redhat.com>
5875 * NEWS: Mention "info vtbl", not "info vtable".
5876 * cp-support.c (info_vtbl_command): Fix comment.
5877 (_initialize_cp_support): Fix text.
5879 2012-03-15 Tom Tromey <tromey@redhat.com>
5881 * cp-valprint.c (cp_print_value_fields): Use
5882 print_function_pointer_address for vtable slot.
5884 2012-03-15 Tom Tromey <tromey@redhat.com>
5886 * gnu-v3-abi.c (struct value_and_voffset): New.
5887 (hash_value_and_voffset, eq_value_and_voffset)
5888 (compare_value_and_voffset, compute_vtable_size)
5889 (print_one_vtable, gnuv3_print_vtable): New functions.
5890 (init_gnuv3_ops): Initialize 'print_vtable' field.
5891 * cp-support.c (info_vtbl_command): New function.
5892 (_initialize_cp_support): Add "info vtbl".
5893 * cp-abi.h (cplus_print_vtable): Declare.
5894 (struct cp_abi_ops) <print_vtable>: New field.
5895 * cp-abi.c (cplus_print_vtable): New function.
5898 2012-03-15 Tom Tromey <tromey@redhat.com>
5900 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5901 iterate_over_symbols.
5903 2012-03-14 Doug Evans <dje@google.com>
5905 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5906 DW_OP_GNU_parameter_ref.
5908 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5910 Fix double prompt of 'interpreter-exec mi'.
5911 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5912 (mi_interpreter_resume): use it.
5913 (mi_execute_command_input_handler): New function.
5914 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5915 mi_execute_command_input_handler.
5917 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
5919 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5921 (darwin_debug_port_info): Make static.
5922 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5923 * machoread.c (_initialize_machoread): Add prototype.
5924 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5925 (i386_darwin_set_control, i386_darwin_get_control)
5926 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5927 i386_darwin_get_status, i386_darwin_get_control):
5928 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5930 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5932 * ax-gdb.c (gen_usual_unary): Remove special handling of
5933 enum and bool types.
5935 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5937 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5939 2012-03-13 Joel Brobecker <brobecker@adacore.com>
5941 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5943 2012-03-13 Chris January <chris.january@allinea.com>
5945 * aix-thread.c (fill_sprs): Store the floating point registers
5946 at the correct offsets into vals.
5948 2012-03-13 Doug Evans <dje@google.com>
5950 * NEWS: Mention symbol-reloading has been deleted.
5951 * symfile.c (symbol_reloading): Delete.
5952 (show_symbol_reloading): Delete.
5953 (_initialize_symfile): Delete set/show symbol-reloading.
5955 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5956 read_in_chain until we have successfully read it in.
5957 (load_full_comp_unit): Ditto.
5958 (read_signatured_type): Add comment.
5960 2012-03-13 Chris January <chris.january@allinea.com>
5962 * stabsread.c (fix_common_block): Change type of valu argument
5965 2012-03-13 Chris January <chris.january@allinea.com>
5967 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5970 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5972 * common/linux-procfs.c (linux_proc_get_int): New, from
5973 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5975 (linux_proc_get_tgid): Only call linux_proc_get_int.
5976 (linux_proc_get_tracerpid): New.
5977 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5978 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5979 linux_proc_pid_has_state.
5980 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5981 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5982 (linux_ptrace_attach_warnings): New.
5983 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5985 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5986 (linux_nat_attach): New variables ex, buffer, message and message_s.
5987 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5989 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5991 * Makefile.in (linux-ptrace.o): New.
5992 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5994 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5995 * common/linux-ptrace.c: New file.
5996 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5997 * config/arm/linux.mh: Likewise.
5998 * config/i386/linux.mh: Likewise.
5999 * config/i386/linux64.mh: Likewise.
6000 * config/ia64/linux.mh: Likewise.
6001 * config/m32r/linux.mh: Likewise.
6002 * config/m68k/linux.mh: Likewise.
6003 * config/mips/linux.mh: Likewise.
6004 * config/pa/linux.mh: Likewise.
6005 * config/powerpc/linux.mh: Likewise.
6006 * config/powerpc/ppc64-linux.mh: Likewise.
6007 * config/powerpc/spu-linux.mh: Likewise.
6008 * config/s390/s390.mh: Likewise.
6009 * config/sparc/linux.mh: Likewise.
6010 * config/sparc/linux64.mh: Likewise.
6011 * config/xtensa/linux.mh: Likewise.
6012 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
6013 common/linux-procfs.c.
6014 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
6016 2012-03-13 Hui Zhu <teawater@gmail.com>
6017 Pedro Alves <palves@redhat.com>
6019 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
6020 CREATE_BREAKPOINT_FLAGS_INSERTED.
6021 (create_breakpoint_sal, create_breakpoints_sal)
6022 (base_breakpoint_create_breakpoints_sal)
6023 (tracepoint_create_breakpoints_sal)
6024 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
6026 (break_command_1, handle_gnu_v3_exceptions, trace_command)
6027 (ftrace_command, strace_command): Adjust.
6028 (create_tracepoint_from_upload): Pass
6029 CREATE_BREAKPOINT_FLAGS_INSERTED.
6030 * breakpoint.h (enum breakpoint_create_flags): New.
6031 (create_breakpoint): New flags parameter.
6032 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
6033 * python/py-breakpoint.c (bppy_init): Adjust.
6034 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
6035 * spu-tdep.c (spu_catch_start): Adjust.
6037 2012-03-13 Pedro Alves <palves@redhat.com>
6038 Hui Zhu <teawater@gmail.com>
6039 Yao Qi <yao@codesourcery.com>
6041 * remote.c (struct remote_state): New field `starting_up'.
6042 (remote_start_remote): Set and clear it.
6043 (remote_can_download_tracepoint): If starting up, return false.
6045 2012-03-13 Yao Qi <yao@codesourcery.com>
6047 * inferior.h (struct inferior): Remove fields any_syscall_count,
6048 syscalls_counts and total_syscalls_count. Move them to new
6049 struct catch_syscall_inferior_data in breakpoint.c.
6050 * breakpoint.c: Call DEF_VEC_I(int).
6051 (struct catch_syscall_inferior_data): New.
6052 (get_catch_syscall_inferior_data): New.
6053 (catch_syscall_inferior_data_cleanup): New.
6054 (insert_catch_syscall): Update to access data in
6055 struct catch_syscall_inferior_data.
6056 (insert_catch_syscall): Likewise.
6057 (remove_catch_syscall): Likewise.
6058 (remove_catch_syscall): Likewise.
6059 (is_syscall_catchpoint_enabled): Likewise.
6060 (add_catch_command): Likewise.
6061 (_initialize_breakpoint): Register cleanup.
6062 * breakpoint.h: Removed DEF_VEC_I(int).
6063 * dwarf2loc.c: Call DEF_VEC_I(int).
6064 * mi/mi-main.c: Likewise.
6066 2012-03-12 Mark Kettenis <kettenis@gnu.org>
6068 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
6070 2012-03-12 Chris January <chris.january@allinea.com>
6072 * aix-thread.c (_initialize_aix_thread): Add prototype.
6073 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
6074 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
6076 2012-03-12 Joel Brobecker <brobecker@adacore.com>
6078 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
6079 include of "amd64-nat.h".
6081 2012-03-12 Tom Tromey <tromey@redhat.com>
6083 * buildsym.c (record_pending_block): Now static.
6084 * buildsym.h: (record_pending_block): Remove.
6086 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
6088 * amd64bsd-nat.c: Include amd64bsd-nat.h.
6090 2012-03-09 Tom Tromey <tromey@redhat.com>
6092 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
6093 producer_is_gxx_lt_4_6>: New fields.
6094 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
6096 2012-03-09 Tom Tromey <tromey@redhat.com>
6098 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
6100 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6102 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
6105 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6107 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
6109 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6111 Fix -Wmissing-prototypes build.
6112 * arm-linux-nat.c (get_thread_id): Make it static.
6113 * xtensa-linux-nat.c (get_thread_id): Likewise.
6115 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6117 * server.c (process_point_options): If a conditional expression
6118 is found, only print a message if remote_debug is nonzero.
6120 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
6122 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
6123 of internal error for unknown/unsupported types.
6125 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6127 Fix CU relative vs. absolute DIE offsets.
6128 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
6129 offset to offset_in_cu.
6130 * dwarf2read.c (process_enumeration_scope): Add CU offset to
6132 (dwarf2_fetch_die_location_block): Rename parameter offset to
6133 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
6135 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6137 * libunwind-frame.c: Rename to ...
6138 * ia64-libunwind-tdep.c: ... here.
6139 * libunwind-frame.h: Rename to ...
6140 * ia64-libunwind-tdep.h: ... here.
6141 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
6142 ia64-libunwind-tdep.h.
6143 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
6144 * README (--with-libunwind): Rename to ...
6145 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
6146 * config.in: Regenerate.
6147 * configure: Regenerate.
6148 * configure.ac: New option --with-libunwind-ia64, make the
6149 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
6150 Remove AC_DEFINE for HAVE_LIBUNWIND.
6151 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
6152 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
6153 Rename libunwind-frame in the general comment.
6154 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
6155 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
6156 Move forward declarations inside #ifndef. Rename libunwind-frame in
6157 the general comment.
6158 * ia64-tdep.c: Rename libunwind-frame.h #include to
6159 ia64-libunwind-tdep.h.
6160 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
6161 (ia64_libunwind_descr): Rename libunwind-frame to
6162 ia64-libunwind-tdep in these function comments.
6163 * ia64-tdep.h: Rename libunwind-frame.h #include to
6164 ia64-libunwind-tdep.h.
6165 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6166 ia64-libunwind-tdep in that data comment.
6168 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6170 * libunwind-frame.h (struct frame_unwind): New declaration.
6172 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6174 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6175 "set breakpoint condition-evaluation" command.
6177 2012-03-08 Tristan Gingold <gingold@adacore.com>
6179 * sparc-stub.c: Move to stubs/
6180 * sh-stub.c: Likewise.
6181 * m68k-stub.c: Likewise.
6182 * m32r-stub.c: Likewise.
6183 * i386-stub.c: Likewise.
6185 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6187 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6188 linux_get_siginfo_type.
6190 * m68klinux-nat.c: Include "gdb_proc_service.h".
6191 (PTRACE_GET_THREAD_AREA): Define.
6192 (ps_get_thread_area): New function.
6194 2012-03-08 Yao Qi <yao@codesourcery.com>
6196 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6198 (remote_query_attached): Likewise.
6199 (remote_static_tracepoint_marker_at): Likewise.
6200 (remote_set_permissions): Likewise.
6201 (remote_detach_1, extended_remote_attach_1): Likewise.
6202 (send_g_packet, remote_vkill): Likewise.
6203 (extended_remote_disable_randomization): Likewise.
6204 (remote_add_target_side_condition): Likewise.
6205 (remote_insert_breakpoint): Likewise.
6206 (remote_remove_breakpoint): Likewise.
6207 (remote_insert_watchpoint): Likewise.
6208 (remote_remove_watchpoint): Likewise.
6209 (remote_insert_hw_breakpoint): Likewise.
6210 (remote_insert_hw_breakpoint): Likewise.
6211 (remote_remove_hw_breakpoint): Likewise.
6212 (remote_download_command_source): Likewise.
6213 (remote_download_tracepoint): Likewise.
6214 (remote_download_trace_state_variable): Likewise.
6215 (remote_disable_tracepoint): Likewise.
6216 (remote_trace_set_readonly_regions): Likewise.
6217 (remote_get_tracepoint_status): Likewise.
6218 (remote_trace_find): Likewise.
6219 (remote_get_trace_state_variable_value): Likewise.
6220 (remote_set_disconnected_tracing): Likewise.
6221 (remote_set_circular_trace_buffer): Likewise.
6222 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6223 (remote_use_agent): Likewise.
6224 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6227 2012-03-07 Pedro Alves <palves@redhat.com>
6229 * NEWS: Mention QProgramSignals.
6230 * inferior.h (update_signals_program_target): Declare.
6231 * infrun.c: (update_signals_program_target): New.
6232 (handle_command): Update the target of the new program signals
6234 * remote.c (PACKET_QProgramSignals): New enum.
6235 (last_program_signals_packet): New global.
6236 (remote_program_signals): New.
6237 (remote_start_remote): Update the target with the program signals
6239 (remote_protocol_features): Add entry for QPassSignals.
6240 (remote_open_1): Free anc clear last_program_signals_packet.
6241 (init_remote_ops): Install remote_program_signals.
6242 * target.c (update_current_target): Adjust.
6243 (target_program_signals): New.
6244 * target.h (struct target_ops) <to_program_signals>: New field.
6245 (target_program_signals): Declare.
6247 2012-03-07 Pedro Alves <palves@redhat.com>
6249 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6252 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6254 * m68klinux-nat.c (getregs_supplies): Make static.
6255 (getfpregs_supplies): Likewise.
6256 (have_ptrace_getregs): Likewise.
6258 2012-03-06 Joel Brobecker <brobecker@adacore.com>
6260 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6261 in call to get_die_type_at_offset.
6263 2012-03-06 Stan Shebs <stan@codesourcery.com>
6265 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6266 * mi/mi-cmd-disas.c: Ditto.
6267 * mi/mi-cmd-env.c: Ditto.
6268 * mi/mi-cmd-file.c: Ditto.
6269 * mi/mi-cmd-stack.c: Ditto.
6270 * mi/mi-cmd-target.c: Ditto.
6271 * mi/mi-cmd-var.c: Ditto.
6272 * mi/mi-cmds.c: Ditto.
6273 * mi/mi-cmds.h: Ditto.
6274 * mi/mi-console.c: Ditto.
6275 * mi/mi-getopt.c: Ditto.
6276 * mi/mi-getopt.h: Ditto.
6277 * mi/mi-interp.c: Ditto.
6278 * mi/mi-main.c: Ditto.
6279 * mi/mi-out.c: Ditto.
6280 * mi/mi-parse.c: Ditto.
6281 * mi/mi-parse.h: Ditto.
6282 * mi/mi-symbol-cmds.c: Ditto.
6284 * mi/mi-getopt.h: Move mi_opt struct up.
6285 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6287 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6289 2012-03-06 Tom Tromey <tromey@redhat.com>
6291 * proc-service.c (ps_pglobal_lookup): Set the current program
6294 2012-03-06 Pedro Alves <palves@redhat.com>
6296 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6298 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6300 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6302 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6305 * common/linux-osdata.c (linux_common_core_of_thread): New function
6307 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6308 call by linux_common_core_of_thread.
6309 (linux_nat_core_of_thread_1): Remove.
6310 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6311 * linux-thread-db.c: Include linux-osdata.h.
6312 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6313 linux_common_core_of_thread.
6315 2012-03-05 Tom Tromey <tromey@redhat.com>
6317 * value.c (value_primitive_field): Don't fetch contents for
6320 2012-03-05 Tom Tromey <tromey@redhat.com>
6322 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6324 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6326 * s390-nat.c: Include "gregset.h".
6328 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6330 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6331 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6332 (libunwind_load): New variable so_error, use it for dlerror. Try to
6333 load also LIBUNWIND_SO_7.
6335 2012-03-05 Pedro Alves <palves@redhat.com>
6337 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6338 is not NULL, and remove resulting dead code.
6340 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6342 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6343 prologue to sh_analyze_prologue.
6344 (sh_analyze_prologue): Make better use of such an upper limit, and
6345 generally be more cautious about accessing memory.
6347 2012-03-05 Tom Tromey <tromey@redhat.com>
6349 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6350 _initialize_ia64_hpux_tdep.
6352 2012-03-05 Pedro Alves <palves@redhat.com>
6356 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6357 the register state is clear, supply explicit zero, instead of
6358 marking the register unavailable.
6360 2012-03-05 Tristan Gingold <gingold@adacore.com>
6362 * NEWS: Mention OpenVMS ia64 new target.
6364 2012-03-05 Tristan Gingold <gingold@adacore.com>
6366 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6367 (ia64_unw_accessors, ia64_unw_rse_accessors)
6368 (ia64_libunwind_descr): Declare.
6369 * ia64-vms-tdep.c: New file.
6370 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6371 (ia64_libunwind_descr): Make them public.
6372 * configure.tgt: Add ia64-*-*vms*.
6373 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6374 (ALLDEPFILES): Add ia64-vms-tdep.c
6376 2012-03-05 Tristan Gingold <gingold@adacore.com>
6378 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6379 * remote.c (PACKET_qXfer_uib): New enum value.
6380 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6381 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6382 (_initialize_remote): Call add_packet_config_cmd for
6385 2012-03-05 Tristan Gingold <gingold@adacore.com>
6387 * osabi.c (gdb_osabi_names): Add OpenVMS.
6388 (generic_elf_osabi_sniffer): Likewise.
6389 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6391 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6393 Removed unused code.
6394 * libunwind-frame.c (libunwind_frame_unwind)
6395 (libunwind_frame_base_address): Remove.
6396 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6398 2012-03-04 Yao Qi <yao@codesourcery.com>
6400 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6401 remove trailing new line.
6402 (agent_run_command, agent_run_command): Add _ markup.
6403 (agent_capability_check): Likewise.
6405 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6407 * breakpoint.c (set_condition_evaluation_mode): Set
6408 CONDITION_EVALUATION_MODE unconditionally.
6410 2012-03-03 Yao Qi <yao@codesourcery.com>
6412 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6413 * common/agent.h: Update declaration.
6414 * inf-child.c (inf_child_use_agent): New.
6415 (inf_child_can_use_agent): New.
6416 (inf_child_target): Initialize fields `to_use_agent'
6417 and `to_can_use_agent'.
6418 * agent.c (agent_new_objfile): New.
6419 (_initialize_agent): Add agent_new_objfile to new_objfile
6422 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6424 (linux_target_install_ops): Initialize field
6425 `to_static_tracepoint_markers_by_strid'.
6426 * remote.c (free_current_marker): Move it to ...
6427 * tracepoint.c (free_current_marker): ... here. New.
6428 (cleanup_target_stop): New.
6429 * tracepoint.h: Declare free_current_marker.
6430 * NEWS: Add one entry about `info static-tracepoint-marker'.
6432 2012-03-03 Yao Qi <yao@codesourcery.com>
6434 * common/agent.c (agent_loaded_p): New.
6435 (agent_look_up_symbols): New global.
6436 * common/agent.h: Declare agent_loaded_p.
6438 2012-03-03 Yao Qi <yao@codesourcery.com>
6440 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6441 (agent_capability_check, agent_capability_invalidate): New.
6442 (symbol_list): New array element.
6443 * common/agent.h (enum agent_capa): New.
6444 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6446 2012-03-03 Yao Qi <yao@codesourcery.com>
6448 * target.h (struct target_ops) <to_use_agent>: New field.
6449 (struct target_ops) <to_can_use_agent>: New field.
6450 (target_use_agent, target_can_use_agent): New macro.
6451 * target.c (update_current_target): Update.
6452 * remote.c: New enum `PACKET_QAgent'.
6453 (remote_protocol_features): Add a new element.
6454 (remote_use_agent, remote_can_use_agent): New.
6455 (init_remote_ops): Initialize field `can_use_agent' with
6456 remote_can_use_agent. Intiailize field `use_agent' with
6458 * common/agent.c (use_agent): New global.
6459 * common/agent.h: Declare it.
6460 * tracepoint.c (info_static_tracepoint_markers_command): Add
6462 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6463 (COMMON_OBS): Add common/agent.o and agent.o
6464 (common-agent.o): New rule.
6467 2012-03-03 Yao Qi <yao@codesourcery.com>
6469 * common/agent.c: New.
6470 * common/agent.h: New.
6471 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6473 * configure, configh.in: Regenerated.
6475 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6477 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6478 unless it exists for this architecture.
6480 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6482 * language.h (struct language_defn): New "method" la_read_var_value.
6483 * findvar.c: #include "language.h".
6484 (default_read_var_value): Renames read_var_value. Rewrite
6485 function description.
6486 (read_var_value): New function.
6487 * value.h (default_read_var_value): Add prototype.
6488 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6490 (ada_language_defn): Add entry for la_read_var_value.
6491 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6492 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6493 language_defn structures to add entry for new la_read_var_value
6496 2012-03-02 Tom Tromey <tromey@redhat.com>
6497 Pedro Alves <palves@redhat.com>
6499 PR breakpoints/13776:
6500 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6502 (delete_longjmp_breakpoint_at_next_stop): New.
6503 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6504 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6505 before deleting the inferior. Add comments.
6506 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6507 breakpoints immediately, but only on next stop. Move that code
6508 next to where we mark other breakpoints for deletion.
6510 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6512 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6514 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6517 2012-03-02 Pedro Alves <palves@redhat.com>
6519 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6521 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6523 Fix -Wmissing-prototypes build.
6524 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6525 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6526 (gdbsim_has_memory): Likewise.
6528 2012-03-02 Yao Qi <yao@codesourcery.com>
6530 Fix -Wmissing-prototypes build.
6531 * charset.c (phony_iconv_open): Make static.
6532 (phony_iconv_close, phony_iconv): Likewise.
6533 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6534 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6536 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6537 * ser-mingw.c (create_select_thread): Make static.
6538 * windows-termcap.c (tgetent): New prototype.
6539 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6541 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6543 Fix -Wmissing-prototypes build.
6544 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6545 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6546 (_initialize_loadable): New prototypes.
6548 2012-03-02 Doug Evans <dje@google.com>
6550 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6551 abbrev table, read_comp_unit will do it.
6553 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6555 Fix -Wmissing-prototypes build.
6556 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6557 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6558 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6559 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6560 (_initialize_arm_symbian_tdep): New prototype.
6561 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6562 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6563 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6565 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6566 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6568 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6569 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6570 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6572 * moxie-tdep.c (moxie_process_record): Likewise.
6573 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6574 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6575 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6576 (_initialize_rl78_tdep): New prototype.
6577 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6578 (_initialize_rx_tdep): New prototype.
6579 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6580 (_initialize_darwin_solib): New prototype.
6581 * solib-spu.c: Include solib-spu.h.
6582 (_initialize_spu_solib): New prototype.
6583 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6584 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6585 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6586 (tic6x_software_single_step): Make it static.
6587 (_initialize_tic6x_tdep): New prototype.
6589 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6591 Fix -Wmissing-prototypes build.
6592 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6593 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6595 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6597 Fix -Wmissing-prototypes build.
6598 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6599 (frv_have_stopped_data_address): Remove.
6601 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6603 Fix -Wmissing-prototypes build.
6604 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6605 * sh-tdep.c: Include sh64-tdep.h.
6606 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6607 * sh64-tdep.c: Include sh64-tdep.h.
6608 * sh64-tdep.h: New file.
6610 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6612 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6614 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6616 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6617 sp_regnum once the gdbarch_init_osabi hook has been called.
6619 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6621 * mips-tdep.c (mips32_bc1_pc): New function.
6622 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6623 BPOSGE32 and BPOSGE64 instructions.
6624 (deal_with_atomic_sequence): Likewise.
6625 (mips32_instruction_has_delay_slot): Likewise.
6627 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6628 Chris Dearman <chris@mips.com>
6629 Maciej W. Rozycki <macro@codesourcery.com>
6630 Joseph Myers <joseph@codesourcery.com>
6632 * features/mips-dsp.xml: New file.
6633 * features/mips64-dsp.xml: New file.
6634 * features/mips-dsp-linux.xml: New file.
6635 * features/mips64-dsp-linux.xml: New file.
6636 * features/Makefile (WHICH): Add mips-dsp-linux and
6638 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6639 * features/mips-dsp-linux.c: New file.
6640 * features/mips64-dsp-linux.c: New file.
6641 * regformats/mips-dsp-linux.dat: New file.
6642 * regformats/mips64-dsp-linux.dat: New file.
6643 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6645 (mips64_linux_register_addr): Likewise.
6646 (mips64_linux_regsets_fetch_registers): Likewise.
6647 (mips64_linux_regsets_store_registers): Likewise.
6648 (mips64_linux_fetch_registers): Update call to
6649 mips64_linux_regsets_fetch_registers.
6650 (mips64_linux_store_registers): Update call to
6651 mips64_linux_regsets_store_registers.
6652 (mips_linux_read_description): Probe for DSP registers.
6653 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6654 and initialize_tdesc_mips64_dsp_linux.
6655 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6656 Remove padding of no longer used embedded register slots.
6657 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6658 (MIPS_RESTART_REGNUM): Redefine enum value.
6659 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6661 (mips_tx39_reg_names): Likewise.
6662 (mips_linux_reg_names): New array of register names for Linux
6664 (mips_register_name): Check for a null pointer in
6665 mips_processor_reg_names and return an empty string.
6666 (mips_register_type): Exclude embedded registers for the IRIX
6668 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6669 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6671 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6672 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6673 (mips_gdbarch_init): Likewise. Initialize internal register
6674 indices for the Linux ABI. Use dynamic numbers to refer to
6675 registers, as applicable, while parsing the target description.
6676 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6678 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6680 * frame.h (read_frame_register_unsigned): Fix typo in function
6683 2012-03-01 Pedro Alves <palves@redhat.com>
6685 * jit-reader.in [!__cplusplus]
6686 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6688 2012-03-01 Pedro Alves <palves@redhat.com>
6690 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6691 * configure: Regenerate.
6693 2012-03-01 Pedro Alves <palves@redhat.com>
6695 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6696 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6697 (ftrace_command, strace_command): Make static.
6698 * d-lang.c (_initialize_d_language): Declare.
6699 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6700 * dwarf2loc.c (_initialize_dwarf2loc):
6701 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6702 * exec.c (exec_get_section_table): Make static.
6703 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6704 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6705 * inferior.c (remove_inferior_command, add_inferior_command)
6706 (clone_inferior_command): Make static.
6707 * linux-nat.c (linux_nat_thread_address_space)
6708 (linux_nat_core_of_thread): Make static.
6709 * linux-tdep.c (_initialize_linux_tdep): Declare.
6710 * objc-lang.c (_initialize_objc_lang): Declare.
6711 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6713 (_initialize_opencl_language): Declare.
6714 * record.c (_initialize_record): Declare.
6715 * remote.c (demand_private_info, remote_get_tib_address)
6716 (remote_supports_cond_tracepoints)
6717 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6719 * skip.c (_initialize_step_skip): Declare.
6720 * symtab.c (skip_prologue_using_lineinfo): Make static.
6721 * tracepoint.c (delete_trace_state_variable)
6722 (trace_variable_command, delete_trace_variable_command)
6723 (get_uploaded_tsv, find_matching_tracepoint_location)
6724 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6726 * value.c (pack_unsigned_long): Make static.
6727 * varobj.c (varobj_ensure_python_env): Make static.
6728 * windows-tdep.c (_initialize_windows_tdep): Declare.
6729 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6731 2012-03-01 Pedro Alves <palves@redhat.com>
6733 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6735 (linux_init_abi): Install it as has_shared_address_space gdbarch
6738 2012-03-01 Pedro Alves <palves@redhat.com>
6740 * observer.c (observer_test_first_notification_function)
6741 (observer_test_second_notification_function)
6742 (observer_test_third_notification_function): Add declarations.
6744 2012-03-01 Pedro Alves <palves@redhat.com>
6746 * common/signals.c (default_target_signal_to_host)
6747 (default_target_signal_from_host): Move ...
6748 * arch-utils.c: ... here.
6749 * arch-utils.h (default_target_signal_to_host)
6750 (default_target_signal_from_host): Declare.
6752 * common/signals.c (target_signal_from_command): Move ...
6753 * infrun.c: ... here.
6754 * inferior.h (target_signal_from_command): Declare.
6755 * target.h (target_signal_from_command)
6756 (default_target_signal_from_host, default_target_signal_to_host):
6757 Delete declarations.
6759 * common/signals.c (_initialize_signals): Delete.
6761 2012-03-01 Pedro Alves <palves@redhat.com>
6763 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6764 both __cplusplus and !__cplusplus.
6766 2012-03-01 Pedro Alves <palves@redhat.com>
6768 * psymtab.c (find_and_open_source): Delete declaration.
6769 * source.c (find_and_open_source): Move comment ...
6770 * source.h (find_and_open_source): ... to this new declaration.
6772 2012-03-01 Pedro Alves <palves@redhat.com>
6774 * inline-frame.c: Include inline-frame.h.
6776 2012-03-01 Pedro Alves <palves@redhat.com>
6778 * tui/tui-data.c (set_gen_win_origin): Delete.
6779 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6780 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6782 2012-03-01 Pedro Alves <palves@redhat.com>
6784 * remote.c (encode_actions): Delete declaration.
6785 * tracepoint.c (encode_actions): Make extern.
6786 * tracepoint.h (encode_actions): Declare.
6788 2012-03-01 Pedro Alves <palves@redhat.com>
6790 * python/py-breakpoint.c: Include python.h.
6791 * python/py-continueevent.c (create_continue_event_object): Make
6793 * python/py-lazy-string.c (stpy_get_type): Make static.
6794 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6796 * python/py-utils.c (unicode_to_target_python_string): Make
6798 * python/py-value.c: Include python.h.
6800 2012-03-01 Pedro Alves <palves@redhat.com>
6802 * inferior.c (delete_threads_of_inferior): Delete.
6804 2012-03-01 Pedro Alves <palves@redhat.com>
6806 Import fallback definitions from glibc.
6808 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6809 ps_prochandle): Forward declare.
6810 (ps_err_e): Use glibc's comments.
6811 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6812 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6813 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6814 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6815 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6816 (struct ps_prochandle): Adjust comment.
6818 2012-03-01 Pedro Alves <palves@redhat.com>
6820 * ada-lang.c (ada_modulus_from_name): Delete.
6821 * ada-lex.l (lexer_init): Make static.
6823 2012-03-01 Pedro Alves <palves@redhat.com>
6827 * frame.c (read_frame_register_unsigned): New.
6828 * frame.h (read_frame_register_unsigned): Declare.
6829 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6831 (print_i387_control_word): New parameter `control_p'. Handle it.
6832 (i387_print_float_info): Handle unavailable float registers.
6834 2012-03-01 Keith Seitz <keiths@redhat.com>
6836 * linespec.c (decode_line_2): Sort the list of methods
6837 alphabetically before presenting the user with a selection
6840 2012-03-01 Doug Evans <dje@google.com>
6842 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6844 (dwarf2_read_abbrevs): Remove corresponding initialization.
6846 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
6848 * NEWS: Mention new python command class gdb.COMMAND_USER.
6849 * cli/cli-cmds.c (show_user): Print error when used on a python
6851 (init_cli_cmds): Update documentation strings for "show user" and
6852 "set/show max-user-call-depth" to clarify that it does not apply to
6854 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6856 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6858 * top.c (execute_command): Only execute a user-defined command as a
6859 legacy macro if c->user_commands is set.
6861 2012-03-01 Tom Tromey <tromey@redhat.com>
6863 * valprint.h (struct generic_val_print_decorations): New.
6864 (generic_val_print): Declare.
6865 * valprint.c (generic_val_print): New function.
6866 * p-valprint.c (p_decorations): New global.
6867 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6868 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6869 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6870 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6871 * m2-valprint.c (m2_decorations): New global.
6872 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6873 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6874 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6875 TYPE_CODE_ERROR>: Call generic_val_print.
6876 * f-valprint.c (f_decorations): New global.
6877 (f_val_print): Use print_function_pointer_address.
6878 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6879 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6880 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6882 * c-valprint.c (c_decorations): New global.
6883 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6884 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6885 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6886 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6887 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6888 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6891 2012-03-01 Tom Tromey <tromey@redhat.com>
6893 * valprint.c (val_print): Update.
6894 * p-valprint (pascal_val_print): Return void.
6895 * p-lang.h (pascal_val_print): Return void.
6896 * m2-valprint.c (m2_val_print): Return void.
6897 * m2-lang.h (m2_val_print): Return void.
6898 * language.h (struct language_defn) <la_val_print>: Return void.
6899 * language.c (unk_lang_val_print): Return void.
6900 * jv-valprint.c (java_val_print): Return void.
6901 * jv-lang.h (java_val_print): Return void.
6902 * f-valprint.c (f_val_print): Return void.
6903 * f-lang.h (f_val_print): Return void.
6904 * d-valprint.c (d_val_print): Return void.
6905 (dynamic_array_type): Update.
6906 * d-lang.h (d_val_print): Return void.
6907 * c-valprint.c (c_val_print): Return void.
6908 * c-lang.h (c_val_print): Return void.
6909 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6911 * ada-lang.h (ada_val_print): Return void.
6913 2012-03-01 Tom Tromey <tromey@redhat.com>
6915 * value.h (val_print): Return void.
6916 * valprint.c (val_print): Return void.
6918 2012-03-01 Tom Tromey <tromey@redhat.com>
6920 * value.h (common_val_print): Return void.
6921 * valprint.c (common_val_print): Return void.
6923 2012-03-01 Tom Tromey <tromey@redhat.com>
6925 * value.h (value_print): Return void.
6926 * valprint.c (value_print): Return void.
6927 * p-valprint.c (pascal_value_print): Return void.
6928 * p-lang.h (pascal_value_print): Return void.
6929 * language.h (struct language_defn) <la_value_print>: Return
6931 * language.c (unk_lang_value_print): Return void.
6932 * jv-valprint.c (java_value_print): Return void.
6933 * jv-lang.h (java_value_print): Return void.
6934 * f-valprint.c (c_value_print): Don't declare.
6936 * c-valprint.c (c_value_print): Return void.
6937 * c-lang.h (c_value_print): Return void.
6938 * ada-valprint.c (ada_value_print): Return void.
6939 * ada-lang.h (ada_value_print): Return void.
6941 2012-03-01 Tom Tromey <tromey@redhat.com>
6943 * value.c (value_primitive_field): Handle virtual base classes.
6945 2012-03-01 Tom Tromey <tromey@redhat.com>
6947 * gdbtypes.h (struct vbase): Remove.
6949 2012-03-01 Tom Tromey <tromey@redhat.com>
6951 * c-valprint.c (print_function_pointer_address): Move...
6952 * valprint.c: ... here. Make non-static.
6953 * m2-valprint.c (print_function_pointer_address): Remove.
6954 * valprint.h (print_function_pointer_address): Declare.
6956 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6958 * NEWS: Document the fact that one can provide a condition when
6959 creating an Ada exception catchpoint.
6961 2012-03-01 Tom Tromey <tromey@redhat.com>
6963 * valprint.c (val_print_type_code_flags): Fix placement of
6966 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6968 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6969 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6970 environment variable before calling update-copyright.
6972 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6974 * gnulib/extra/update-copyright: Update to the latest from
6975 gnulib's git repository.
6976 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6977 variable to 2 instead of 1.
6979 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6981 * varobj.c (c_value_of_variable): Remove dead code.
6983 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6985 * ada-lex.p (processId): Do not modify already encoded IDs.
6986 Update function documentation.
6988 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6990 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6991 "name" with "struct symbol *name_sym".
6992 * ada-exp.y (write_var_or_type): Update call to
6993 ada_find_renaming_symbol.
6994 "name" with "struct symbol *name_sym". Adjust Implementation
6995 accordingly. Adjust the function documentation.
6997 2012-02-29 Joel Brobecker <brobecker@adacore.com>
6999 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
7000 * ada-lang.c (ada_find_any_type): Add advance declaration.
7001 Make static. Replace ada_find_any_symbol by
7002 ada_find_any_type_symbol.
7003 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
7004 Improve function description. Make static.
7005 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
7006 Replace ada_find_any_symbol by ada_find_any_type_symbol.
7008 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7010 * ada-lang.c (struct tag_args): Delete.
7011 (ada_get_tsd_type): Function body moved up in source file.
7012 (ada_tag_name_1, ada_tag_name_2): Delete.
7013 (ada_get_tsd_from_tag): New function.
7014 (ada_tag_name_from_tsd): New function.
7015 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
7016 to determine the tag name.
7018 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7020 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
7022 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
7025 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7027 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
7029 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7031 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
7034 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7036 * ada-lang.c (constrained_packed_array_type): If there is a
7037 parallel XA type, use it to determine the array index type.
7039 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7041 * ada-valprint.c (ada_val_print_1): If our value is a reference
7042 to an array descriptor, dereference it before converting it
7045 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7047 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
7048 creating fixed value.
7049 (ada_value_ind, ada_coerce_ref, assign_component)
7050 (ada_evaluate_subexp): Remove call to unwrap_value before
7051 call to ada_to_fixed_value.
7053 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7055 * ada-lang.c (to_fixed_array_type): Set result's type name.
7057 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7059 * ada-lang.c (catch_ada_exception_command_split): Add new
7060 argument cond_string. Add support for condition at end of
7061 "catch exception" commands.
7062 (ada_decode_exception_location): Add new argument cond_string.
7063 Update call to catch_ada_exception_command_split.
7064 (create_ada_exception_catchpoint): Add new argument cond_string.
7065 Set the breakpoint condition if needed.
7066 (catch_ada_exception_command): Update call to
7067 ada_decode_exception_location.
7068 (ada_decode_assert_location): Add function documentation.
7069 Add support for condition at end of "catch assert" command.
7070 (catch_assert_command): Update calls to ada_decode_assert_location
7071 and create_ada_exception_catchpoint.
7073 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7075 Fix disp-step-syscall.exp: fork: single step over fork.
7076 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
7077 (i386_linux_get_syscall_number_from_regcache): ... here, new function
7078 comment, change parameters gdbarch and ptid to regcache. Remove
7079 parameter regcache, initialize gdbarch from regcache here.
7080 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
7082 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
7084 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
7085 'syscall'. Make the 'int' check more strict.
7087 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7089 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
7090 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
7091 (i386_linux_intx80_sysenter_syscall_record): ... here.
7092 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
7093 Use the renamed function name.
7095 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7097 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
7098 * breakpoint.c (until_break_command): Likewise.
7099 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
7100 * infcall.c (call_function_by_hand): Likewise.
7101 * infcmd.c (finish_forward): Likewise.
7102 * infrun.c (insert_exception_resume_breakpoint): Likewise.
7104 2012-02-28 Tristan Gingold <gingold@adacore.com>
7106 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
7107 avoid variable assignments inside condition.
7109 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7111 Fix static analysis issue found by cppcheck.
7112 * microblaze-tdep.c (microblaze_extract_return_value): Fix
7113 uninitialized BUF for size 2.
7115 2012-02-27 Chris Dearman <chris@mips.com>
7116 Nathan Froyd <froydnj@codesourcery.com>
7117 Maciej W. Rozycki <macro@codesourcery.com>
7119 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
7120 (mips16_instruction_has_delay_slot): Likewise.
7121 (mips_segment_boundary): Likewise.
7122 (mips_adjust_breakpoint_address): Likewise.
7123 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
7125 2012-02-27 Maciej W. Rozycki <macro@mips.com>
7126 Maciej W. Rozycki <macro@codesourcery.com>
7128 * infrun.c (handle_inferior_event): Don't proceed through
7129 shared library trampolines if stepping at the machine
7132 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
7134 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
7137 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
7139 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
7140 (sh_stub_unwind_sniffer): New functions.
7141 (sh_stub_unwind): New variable.
7142 (sh_gdbarch_init): Wire everything.
7144 2012-02-27 Pedro Alves <palves@redhat.com>
7146 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
7147 (linux_nat_post_attach_wait): Adjust to use
7148 linux_proc_pid_is_stopped.
7149 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
7150 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
7151 based on pid_is_stopped from both linux-nat.c and
7152 gdbserver/linux-low.c, and renamed.
7154 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7156 * remote.c (remote_watchpoint_addr_within_range): New function.
7157 (init_remote_ops): Use it.
7159 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7161 * target.h (target_watchpoint_addr_within_range): Document macro.
7163 2012-02-24 Pedro Alves <palves@redhat.com>
7165 * stack.c (set_last_displayed_sal): Issue internal_error instead
7166 of warning, and issue it after clearing the last displayed sal.
7168 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7169 Pedro Alves <palves@redhat.com>
7171 * breakpoint.c (until_break_command): Install breakpoints after
7172 all frame manipulations.
7174 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7176 * remote.c (remote_supports_cond_breakpoints): New forward
7178 (remote_add_target_side_condition): New function.
7179 (remote_insert_breakpoint): Add target-side breakpoint
7180 conditional if supported.
7181 (remote_insert_hw_breakpoint): Likewise.
7182 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7185 * target.c (update_current_target): Inherit
7186 to_supports_evaluation_of_breakpoint_conditions.
7187 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7189 * target.h (struct target_ops)
7190 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7191 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7193 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7194 (condition_evaluation_both, condition_evaluation_auto,
7195 condition_evaluation_host, condition_evaluation_target,
7196 condition_evaluation_enums, condition_evaluation_mode_1,
7197 condition_evaluation_mode): New static globals.
7198 (translate_condition_evaluation_mode): New function.
7199 (breakpoint_condition_evaluation_mode): New function.
7200 (gdb_evaluates_breakpoint_condition_p): New function.
7201 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7202 (mark_breakpoint_modified): New function.
7203 (mark_breakpoint_location_modified): New function.
7204 (set_condition_evaluation_mode): New function.
7205 (show_condition_evaluation_mode): New function.
7206 (bp_location_compare_addrs): New function.
7207 (get_first_location_gte_addr): New helper function.
7208 (set_breakpoint_condition): Free condition bytecode if locations
7209 has become unconditional. Call mark_breakpoint_modified (...).
7210 (condition_command): Call update_global_location_list (1) for
7212 (breakpoint_xfer_memory): Use is_breakpoint (...).
7213 (is_breakpoint): New function.
7214 (parse_cond_to_aexpr): New function.
7215 (build_target_condition_list): New function.
7216 (insert_bp_location): Handle target-side conditional
7217 breakpoints and call build_target_condition_list (...).
7218 (update_inserted_breakpoint_locations): New function.
7219 (insert_breakpoint_locations): Handle target-side conditional
7221 (bpstat_check_breakpoint_conditions): Add comment.
7222 (bp_condition_evaluator): New function.
7223 (bp_location_condition_evaluator): New function.
7224 (print_breakpoint_location): Print information on where the condition
7226 (print_one_breakpoint_location): Likewise.
7227 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7228 breakpoint location.
7229 (force_breakpoint_reinsertion): New functions.
7230 (update_global_location_list): Handle target-side breakpoint
7232 Reinsert locations that are already inserted if conditions have
7234 (bp_location_dtor): Free agent expression bytecode.
7235 (disable_breakpoint): Call mark_breakpoint_modified (...).
7236 Call update_global_location_list (...) with parameter 1 for breakpoints.
7237 (disable_command): Call mark_breakpoint_location_modified (...).
7238 Call update_global_location_list (...) with parameter 1 for breakpoints.
7239 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7240 (enable_command): mark_breakpoint_location_modified (...).
7241 (_initialize_breakpoint): Update documentation and add
7242 condition-evaluation breakpoint subcommand.
7244 * breakpoint.h: Include ax.h.
7245 (condition_list): New data structure.
7246 (condition_status): New enum.
7247 (bp_target_info) <cond_list>: New field.
7248 (bp_location) <condition_changed, cond_bytecode>: New fields.
7249 (is_breakpoint): New prototype.
7251 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7253 * remote.c (remote_state) <cond_breakpoints>: New field.
7254 (PACKET_ConditionalBreakpoints): New enum.
7255 (remote_cond_breakpoint_feature): New function.
7256 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7257 (remote_supports_cond_breakpoints): New function.
7258 (_initialize_remote): Add new packet configuration for
7259 target-side conditional breakpoints.
7261 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7263 * NEWS: Mention target-side conditional breakpoint support,
7264 new condition-evaluation breakpoint subcommand and remote
7267 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7269 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7272 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7274 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7275 (after_prologue): Remove.
7277 2012-02-23 Tom Tromey <tromey@redhat.com>
7279 * jv-valprint.c (java_val_print): Remove dead code.
7281 2012-02-23 Tristan Gingold <gingold@adacore.com>
7283 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7284 known_tasks_element and known_tasks_length fields.
7285 (read_known_tasks_array): Change argument type. Use pointer type
7286 and number of elements from DATA. Adjust.
7287 (read_known_tasks_list): Likewise.
7288 (get_known_tasks_addr): Remove.
7289 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7290 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7291 type and array length. Merge former get_known_tasks_addr code.
7293 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7296 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7297 it after set_momentary_breakpoint.
7299 2012-02-22 Sterling Augustine <saugustine@google.com>
7302 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7304 2012-02-22 Gary Benson <gbenson@redhat.com>
7306 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7307 (find_slot_in_mapped_hash): Likewise.
7309 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7312 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7313 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7314 * configure: Regenerate.
7316 2012-02-21 Tristan Gingold <gingold@adacore.com>
7317 Pedro Alves <palves@redhat.com>
7319 * ia64-tdep.c: Do not include libunwind-ia64.h.
7320 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7321 Include libunwind-ia64.h instead of libunwind.h.
7322 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7323 for libunwind.h existence.
7324 * configure, config.in: Regenerate.
7326 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7328 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7329 instead of value_rtti_target_type.
7330 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7331 instead of value_rtti_target_type.
7332 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7333 value_rtti_target_type.
7334 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7335 (value_rtti_target_type): Rename to ...
7336 (value_rtti_indirect_type): ... here and make it indirect. Update
7338 * value.c (readjust_indirect_value_type): New function.
7339 (coerce_ref): Support for enclosing type setting for references
7340 with readjust_indirect_value_type.
7341 * value.h (readjust_value_type): New declaration.
7342 (value_rtti_target_type): Rename to ...
7343 (value_rtti_indirect_type): ... here.
7345 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7347 * MAINTAINERS (Write After Approval): Add myself to the list.
7349 2012-02-20 Doug Evans <dje@google.com>
7351 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7352 Rename objfile_p_char parameter to objfilep.
7353 (build_objfile_section_table): Result is now void. All callers
7355 * objfiles.h (struct objfile): Tweak comments, whitespace.
7356 (build_objfile_section_table): Update.
7358 * elfread.c (elf_symfile_segments): Fix warning text.
7360 2012-02-20 Tom Tromey <tromey@redhat.com>
7363 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7364 particular set of file names once.
7365 (dw2_map_symbol_filenames): Likewise.
7367 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7370 * main.c (write_files): Remove the declaration.
7371 (external_editor_command): Move the declaration ...
7372 [GDBTK] (external_editor_command): ... here. Fix the comment.
7374 2012-02-20 Tom Tromey <tromey@redhat.com>
7376 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7379 2012-02-20 Tristan Gingold <gingold@adacore.com>
7381 * darwin-nat.h (enum darwin_msg_state): Add comments.
7383 2012-02-20 Tristan Gingold <gingold@adacore.com>
7385 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7388 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7390 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7391 between function description and implementation.
7393 2012-02-17 Tom Tromey <tromey@redhat.com>
7396 * python/py-event.c (event_object_getset): New global.
7397 (event_object_type): Reference it.
7398 * python/py-type.c (field_object_getset): New global.
7399 (field_object_type): Reference it.
7400 * python/python-internal.h (gdb_py_generic_dict): Declare.
7401 * python/py-utils.c (gdb_py_generic_dict): New function.
7403 2012-02-17 Tristan Gingold <gingold@adacore.com>
7405 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7407 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7409 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7410 TYPE_CALLING_CONVENTION annotation.
7412 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7414 * MAINTAINERS: Add rx to target ISA section.
7415 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7416 (ALLDEPFILES): Add rx-tdep.c.
7418 2012-02-16 Tom Tromey <tromey@redhat.com>
7420 * symfile.c (symbol_file_add_main_1): Use inferior's
7422 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7423 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7425 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7427 (follow_exec): Use inferior's symfile_flags.
7428 * inferior.h (struct inferior) <symfile_flags>: New field.
7430 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7433 * remote-sim.c (gdbsim_create_inferior): Call error() when
7434 sim_create_inferior() fails.
7436 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7438 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7440 2012-02-16 Tom Tromey <tromey@redhat.com>
7443 * thread.c (struct current_thread_cleanup) <was_removable>: New
7445 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7446 (make_cleanup_restore_current_thread): Initialize new field.
7448 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7450 * MAINTAINERS: Add rl78 to target ISA section.
7451 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7452 (ALLDEPFILES): Add rl78-tdep.c.
7453 * NEWS: Mention rl78 as a new target.
7455 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7457 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7459 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7461 2012-02-15 Tom Tromey <tromey@redhat.com>
7464 * infcmd.c (registers_info): Print just the current register's
7467 2012-02-15 Tom Tromey <tromey@redhat.com>
7469 * python/py-symbol.c (sympy_value): Use _().
7471 2012-02-15 Pedro Alves <palves@redhat.com>
7473 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7474 output to be like native targets'.
7475 (remote_pid_to_str): Special case the null ptid.
7477 2012-02-14 Stan Shebs <stan@codesourcery.com>
7479 * NEWS: Mention enable count command.
7480 * breakpoint.h (struct breakpoint): New field enable_count.
7481 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7482 (enable_breakpoint): Add arg to call.
7483 (struct disp_data): New struct.
7484 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7485 (do_map_enable_once_breakpoint): Create a struct and pass it.
7486 (do_map_enable_delete_breakpoint): Ditto.
7487 (do_map_enable_count_breakpoint): New function.
7488 (enable_count_command): New function.
7489 (bpstat_stop_status): Decrement enable_count.
7490 (print_one_breakpoint_location): Report enable count.
7491 (_initialize_breakpoint): Add enable count command.
7493 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7495 * rl78-tdep.c (reggroups.h): Include.
7496 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7497 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7498 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7499 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7500 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7501 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7502 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7503 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7504 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7505 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7506 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7507 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7508 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7509 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7510 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7511 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7512 beginning of register list.
7513 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7514 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7515 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7516 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7517 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7518 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7519 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7520 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7521 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7522 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7523 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7524 the pseudo registers. Rearrange other pseudo registers too so
7525 that the bank registers appear at the end.
7526 (rl78_register_type): Account for the fact that the byte sized
7527 bank registers are now pseudo-registers.
7528 (rl78_register_name): Rearrange the register name array. Make
7529 initial set of raw banked registers inaccessible.
7530 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7531 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7532 case for copying bytes back and forth between raw and pseudo
7533 versions of the banked registers. Update other cases to reflect
7535 (rl78_return_value): Update to account for changed names of
7537 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7538 rl78_register_sim_regno().
7540 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7542 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7543 the name parameter being passed to find_pc_partial_function().
7545 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7547 * MAINTAINERS: Step down from being ia64 target maintainer.
7549 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7551 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7552 compilation warning.
7554 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7556 Fix crash on loaded shlibs without loaded exec_bfd.
7557 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7558 (set_section_command): Replace exec_bfd by p->bfd.
7560 2012-02-10 Tom Tromey <tromey@redhat.com>
7562 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7563 when we have a C++ qualified name.
7565 2012-02-10 Pedro Alves <palves@redhat.com>
7567 * inferior.c (inferior_pid_to_str): New.
7568 (print_inferior, inferior_command): Use it.
7570 2012-02-10 Pedro Alves <palves@redhat.com>
7572 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7574 * configure: Regenerate.
7576 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7578 * linespec.c (decode_line_internal): Fix comment correctness.
7580 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7583 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7584 * amd64bsd-nat.c: Add support for debug registers (adapted from
7586 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7587 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7588 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7589 (amd64bsd_dr_get_control): New functions.
7590 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7591 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7592 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7593 watchpoints initialization.
7594 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7596 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7598 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7600 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7602 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7604 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7606 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7608 * language.h (symbol_name_cmp_ftype): Renames
7609 symbol_name_match_p_ftype.
7610 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7611 la_get_symbol_name_match_p.
7612 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7613 ada_get_symbol_name_match_p. Update comment.
7614 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7615 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7616 Renames symbol_name_match_p. Update field type.
7617 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7618 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7619 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7620 "la_get_symbol_name_cmp" in comments.
7621 * language.c: Likewise.
7623 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7625 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7627 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7628 (amd64_sol2_gregset32_reg_offs): Likewise.
7630 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7632 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7633 of the returned BFD is allocated by GDB.
7635 2012-02-07 Tom Tromey <tromey@redhat.com>
7638 * python/python-internal.h (frame_object_type): Declare.
7639 * python/py-symbol.c (sympy_needs_frame): New function.
7640 (sympy_value): New function.
7641 (symbol_object_getset): Add "needs_frame".
7642 (symbol_object_methods): Add "value".
7643 * python/py-frame.c (frame_object_type): No longer static.
7645 2012-02-07 Tom Tromey <tromey@redhat.com>
7648 * python/py-symbol.c (sympy_line): New function.
7649 (symbol_object_getset): Add "line".
7651 2012-02-07 Tom Tromey <tromey@redhat.com>
7653 * charset.c (find_charset_names): Check 'in' against NULL.
7655 2012-02-06 Doug Evans <dje@google.com>
7657 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7658 and fields.name members from char * to const char *. All uses updated.
7659 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7660 from char * to const char *. All uses updated.
7661 (type_name_no_tag): Update.
7662 (lookup_unsigned_typename, lookup_signed_typename): Update.
7663 * gdbtypes.c (type_name_no_tag): Change result type
7664 from char * to const char *. All callers updated.
7665 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7666 name parameter from char * to const char *.
7667 * symtab.h (struct cplus_specific): Change type of demangled_name
7668 member from char * to const char *. All uses updated.
7669 (struct general_symbol_info): Change type of name and
7670 mangled_lang.demangled_name members from char * to const char *.
7672 (symbol_get_demangled_name, symbol_natural_name): Update.
7673 (symbol_demangled_name, symbol_search_name): Update.
7674 * symtab.c (symbol_get_demangled_name): Change result type
7675 from char * to const char *. All callers updated.
7676 (symbol_natural_name, symbol_demangled_name): Ditto.
7677 (symbol_search_name): Ditto.
7678 (completion_list_add_name): Change type of symname,sym_text,
7679 text,word parameters from char * to const char *.
7680 (completion_list_objc_symbol): Change type of sym_text,
7681 text,word parameters from char * to const char *.
7682 * ada-lang.c (find_struct_field): Change type of name parameter
7683 from char * to const char *.
7684 (encoded_ordered_before): Similarly for N0,N1 parameters.
7685 (old_renaming_is_invisible): Similarly for function_name parameter.
7686 (ada_type_name): Change result type from char * to const char *.
7687 All callers updated.
7688 * ada-lang.h (ada_type_name): Update.
7689 * buildsym.c (hashname): Change type of name parameter
7690 from char * to const char *.
7691 * buildsym.h (hashname): Update.
7692 * dbxread.c (end_psymtab): Change type of include_list parameter
7693 from char ** to const char **.
7694 * dwarf2read.c (determine_prefix): Change result type
7695 from char * to const char *. All callers updated.
7696 * f-lang.c (find_common_for_function): Change type of name, funcname
7697 parameters from char * to const char *.
7698 * f-lang.c (find_common_for_function): Update.
7699 * f-valprint.c (list_all_visible_commons): Change type of funcname
7700 parameters from char * to const char *.
7701 * gdbarch.sh (static_transform_name): Change type of name parameter
7702 and result from char * to const char *.
7703 * gdbarch.c: Regenerate.
7704 * gdbarch.h: Regenerate.
7705 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7706 of name parameter from char * to const char *.
7707 * jv-lang.c (java_primitive_type_from_name): Ditto.
7708 (java_demangled_signature_length): Similarly for signature parameter.
7709 (java_demangled_signature_copy): Ditto.
7710 (java_demangle_type_signature): Ditto.
7711 * jv-lang.h (java_primitive_type_from_name): Update.
7712 (java_demangle_type_signature): Update.
7713 * objc-lang.c (specialcmp): Change type of a,b parameters
7714 from char * to const char *.
7715 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7716 from char * to const char *. All callers updated.
7717 * p-lang.h (is_pascal_string_type): Update.
7718 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7719 of name parameter from char * to const char *.
7720 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7721 * utils.c (fprintf_symbol_filtered): Ditto.
7722 * defs.h (fprintf_symbol_filtered): Update.
7723 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7724 * stabsread.h (end_psymtab): Update.
7725 * stack.c (find_frame_funname): Change type of funname parameter
7726 from char ** to const char **.
7727 * stack.h (find_frame_funname): Update.
7728 * typeprint.c (type_print): Change type of varstring parameter
7729 from char * to const char *.
7730 * value.h (type_print): Update.
7731 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7732 from char * to const char *. All callers updated.
7733 (xcoff_end_psymtab): Change type of include_list parameter
7734 from char ** to const char **. All callers updated.
7735 (swap_sym): Similarly for name parameter. All callers updated.
7736 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7738 (process_coff_symbol): Use xstrdup.
7739 * stabsread.c (stabs_method_name_from_physname): Renamed from
7740 update_method_name_from_physname. Change result type from void
7741 to char *. All callers updated.
7742 (read_member_functions): In has_destructor case, store name in objfile
7743 obstack instead of malloc space. In !has_stub case, fix mem leak.
7745 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7747 * configure: Rebuild.
7748 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7751 2012-02-03 Kevin Buettner <kevinb@redhat.com>
7753 * configure.tgt (rl78-*-elf): New target.
7754 * rl78-tdep.c: New file.
7756 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7758 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7759 and continue the loop. Add QUIT statement.
7761 2012-02-03 Tom Tromey <tromey@redhat.com>
7764 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7765 bfd_lookup_symbol_from_symtab.
7766 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7767 gdb_bfd_lookup_symbol_from_symtab.
7769 2012-02-03 Joel Brobecker <brobecker@adacore.com>
7771 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7772 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7773 symbol. Add assertion that sym2 is never NULL.
7775 2012-02-02 Doug Evans <dje@google.com>
7777 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7778 "name" parameter to const char ** from char **. All callers updated.
7779 (find_pc_partial_function): Ditto.
7780 (cache_pc_function_name): Change type to const char * from char *.
7781 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7782 (find_pc_partial_function): Update.
7783 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7784 type of "name" parameter to const char * from char *.
7786 * arch-utils.c (generic_in_solib_return_trampoline): Change
7787 type of "name" parameter to const char * from char *.
7788 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7789 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7790 type of "name" parameter to const char * from char *.
7791 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7792 * gdbarch.c: Regenerate.
7793 * gdbarch.h: Regenerate.
7794 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7795 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7796 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7797 type of "name" parameter to const char * from char *.
7798 * skip.c (skip_function_pc): Ditto.
7799 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7800 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7801 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7802 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7803 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7804 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7805 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7806 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7807 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7809 2012-02-02 Pedro Alves <palves@redhat.com>
7811 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7812 the current inferior has no execution. Make sure the current
7813 remote process matches gdb's current inferior.
7815 2012-02-02 Tom Tromey <tromey@redhat.com>
7818 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7821 2012-02-02 Tom Tromey <tromey@redhat.com>
7824 * symtab.c (lookup_language_this): Set block_found.
7826 2012-02-01 Tom Tromey <tromey@redhat.com>
7829 * jit.c (struct jit_inferior_data): Rewrite.
7830 (struct jit_objfile_data): New.
7831 (get_jit_objfile_data): New function.
7832 (add_objfile_entry): Update.
7833 (jit_read_descriptor): Return int. Replace descriptor_addr
7834 argument with inf_data. Update. Don't call error.
7835 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7837 (jit_inferior_init): Don't look up descriptor. Don't call error.
7838 (jit_reset_inferior_data_and_breakpoints)
7839 (jit_inferior_created_observer): Remove.
7840 (jit_inferior_exit_hook): Update.
7841 (jit_executable_changed_observer): Remove.
7842 (jit_event_handler): Update.
7843 (free_objfile_data): Reset inferior data if needed.
7844 (_initialize_jit): Update.
7846 2012-02-01 Tom Tromey <tromey@redhat.com>
7848 * jit.c (bfd_open_from_target_memory): Move higher in file.
7850 2012-02-01 Tristan Gingold <gingold@adacore.com>
7852 * libunwind-frame.c (libunwind_load): Display message if dlopen
7855 2012-02-01 Gary Benson <gbenson@redhat.com>
7857 * symtab.h (symbol_found_callback_ftype): New typedef.
7858 (iterate_over_symbols): Use the above.
7859 * symtab.c (iterate_over_symbols): Likewise.
7860 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7861 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7862 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7863 (iterate_name_matcher): Document return values.
7864 (collect_one_symbol): Likewise.
7865 (collect_function_symbols): Likewise.
7866 (collect_symbols): Likewise.
7868 2012-02-01 Tom Tromey <tromey@redhat.com>
7870 * ada-lang.c (resolve_subexp): Update.
7871 (ada_lookup_symbol_list): Add 'full_search' argument.
7872 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7873 ada_lookup_symbol_list.
7874 (ada_lookup_encoded_symbol): Update.
7875 (get_var_value): Update.
7876 * ada-exp.y (block_lookup): Update.
7877 (write_var_or_type): Update.
7878 (write_name_assoc): Update.
7879 * ada-lang.h (ada_lookup_symbol_list): Update.
7881 2012-01-31 Tom Tromey <tromey@redhat.com>
7883 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7886 2012-01-31 Doug Evans <dje@google.com>
7888 * symtab.h: Remove outdated comment.
7889 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
7891 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
7893 Fix build error in Darwin port.
7894 * i386-darwin-nat.c: Include i386-nat.h.
7896 2012-01-30 Tom Tromey <tromey@redhat.com>
7898 PR breakpoints/13568:
7899 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7900 argument. Check for recursive includes.
7901 (dwarf_decode_macros): Create an include hash.
7903 2012-01-30 Michael Eager <eager@eagercon.com>
7905 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7906 * ppc-linux-tdep.c: Include glibc-tdep.h.
7907 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
7908 (powerpc_linux_in_plt_stub): New function.
7909 (powerpc_linux_in_dynsym_resolve_code): New function.
7910 (ppc_skip_trampoline_code): New function.
7911 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7912 Use glibc_skip_solib_resolver.
7914 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7916 Code cleanup: Make 1440 bytes of data segment read-only.
7917 * arch-utils.c (endian_enum): Make it const char *const [].
7918 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7920 * breakpoint.c (always_inserted_enums): Likewise.
7921 * cli/cli-cmds.c (script_ext_enums): Likewise.
7922 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7923 enumlist parameter const char *const *.
7924 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7925 const char *const *.
7926 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7927 parameter const char *const *.
7928 * cris-tdep.c (cris_modes): Make it const char *const [].
7929 * filesystem.c (target_file_system_kinds): Likewise.
7930 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7931 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7932 (can_use_displaced_stepping_enum, scheduler_enums)
7933 (exec_direction_names): Likewise.
7934 * language.c (_initialize_language): Make the type_or_range_names and
7935 case_sensitive_names variables const char *const [].
7936 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7937 * python/python.c (python_excp_enums): Likewise.
7938 * remote.c (interrupt_sequence_modes): Likewise.
7939 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7940 * serial.c (logbase_enums): Likewise.
7941 * sh-tdep.c (sh_cc_enum): Likewise.
7942 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7944 * symtab.c (multiple_symbols_modes): Likewise.
7945 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7947 * utils.c (internal_problem_modes): Likewise.
7949 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7951 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7952 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7955 2012-01-27 Doug Evans <dje@google.com>
7957 * configure.ac (with_python): Fix absolute path handling for win32.
7958 * configure: Regenerate.
7960 2012-01-26 Doug Evans <dje@google.com>
7962 * symtab.c: Whitespace cleanup, no code changes.
7964 * symtab.c (lookup_symbol_in_language): Improve comment.
7965 (lookup_symbol_aux): Fix comment.
7967 * psymtab.c (add_psymbol_to_list): Result is now "void".
7968 * psympriv.h (add_psymbol_to_list): Update.
7970 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7972 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7974 Do not open script filenames twice.
7975 * cli/cli-cmds.c (source_script_from_stream): Pass to
7976 source_python_script also STREAM.
7977 * python/py-auto-load.c (source_section_scripts): Pass to
7978 source_python_script_for_objfile also STREAM.
7979 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7981 * python/python-internal.h (source_python_script_for_objfile): New
7982 parameter file, rename parameter file to filename.
7983 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7984 instead if !_WIN32. Update the function comment.
7985 (source_python_script, source_python_script_for_objfile)
7986 (source_python_script): New parameter file, rename parameter file to
7987 filename. Pass FILENAME to python_run_simple_file.
7988 * python/python.h (source_python_script): New parameter file, rename
7989 parameter file to filename.
7991 2012-01-26 Pedro Alves <palves@redhat.com>
7993 * corelow.c (core_has_fake_pid): Delete.
7994 (core_close): Delete references to `core_has_fake_pid'.
7995 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7996 (core_open): Delete references to `core_has_fake_pid'.
7997 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
8000 2012-01-26 Joel Brobecker <brobecker@adacore.com>
8002 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
8003 Remove language parameter from name_matcher. Adjust the comment.
8004 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
8005 Remove language parameter.
8006 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
8007 * linespec.c (iterate_name_matcher): Likewise.
8008 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
8009 name_matcher. Adjust call accordingly.
8010 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
8011 (maintenance_check_symtabs): Adjust type of parameter "fun".
8012 * psymtab.h (maintenance_check_symtabs): Likewise.
8014 2012-01-26 Joel Brobecker <brobecker@adacore.com>
8016 * language.h (symbol_name_match_p_ftype): New typedef.
8017 (struct language_defn): Replace field la_symbol_name_compare
8018 by la_get_symbol_name_match_p.
8019 * ada-lang.c (ada_get_symbol_name_match_p): New function.
8020 (ada_language_defn): Use it.
8021 * linespec.c (struct symbol_matcher_data): New type.
8022 (iterate_name_matcher): Rewrite.
8023 (iterate_over_all_matching_symtabs): Pass a pointer to
8024 a symbol_matcher_data struct to expand_symtabs_matching
8025 instead of just the lookup name.
8026 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8027 opencl-lang.c, p-lang.c, language.c: Delete field
8028 la_symbol_name_compare, and replace by NULL for new field
8029 la_get_symbol_name_match_p.
8030 * symfile.h (struct quick_symbol_functions): Update comment.
8032 2012-01-25 Tom Tromey <tromey@redhat.com>
8034 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
8037 2012-01-24 Tom Tromey <tromey@redhat.com>
8040 * solib.c (update_solib_list): Update the program space's
8041 added_solibs and deleted_solibs fields.
8042 * progspace.h (struct program_space) <added_solibs,
8043 deleted_solibs>: New fields.
8044 (clear_program_space_solib_cache): Declare.
8045 * progspace.c (release_program_space): Call
8046 clear_program_space_solib_cache.
8047 (clear_program_space_solib_cache): New function.
8048 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
8049 bpstat_stop_status. Use handle_solib_event.
8050 * breakpoint.c: Include gdb_regex.h.
8051 (print_solib_event): New function.
8052 (bpstat_print): Use print_solib_event.
8053 (bpstat_stop_status): Add special case for bp_shlib_event.
8054 (handle_solib_event): New function.
8055 (bpstat_what): Use handle_solib_event.
8056 (struct solib_catchpoint): New.
8057 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
8058 (breakpoint_hit_catch_solib, check_status_catch_solib)
8059 (print_it_catch_solib, print_one_catch_solib)
8060 (print_mention_catch_solib, print_recreate_catch_solib): New
8062 (catch_solib_breakpoint_ops): New global.
8063 (catch_load_or_unload, catch_load_command_1)
8064 (catch_unload_command_1): New functions.
8065 (internal_bkpt_check_status): Add special case for
8067 (internal_bkpt_print_it): Use print_solib_event.
8068 (initialize_breakpoint_ops): Initialize
8069 catch_solib_breakpoint_ops.
8070 (_initialize_breakpoint): Register "catch load" and "catch
8072 * breakpoint.h (handle_solib_event): Declare.
8073 * NEWS: Add entry for "catch load" and "catch unload".
8075 2012-01-24 Tom Tromey <tromey@redhat.com>
8077 * ada-lang.c: Include gdb_vecs.h.
8078 * charset.c: Include gdb_vecs.h.
8079 * tracepoint.h: Include gdb_vecs.h.
8080 * gdb_vecs.h: New file.
8082 2012-01-24 Pedro Alves <pedro@codesourcery.com>
8084 * breakpoint.c (breakpoint_hit_catch_fork)
8085 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
8086 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
8087 * infrun.c (inferior_has_forked, inferior_has_vforked)
8088 (inferior_has_execd, inferior_has_called_syscall): Delete.
8089 (handle_syscall_event): Get syscall_number from the execution
8090 control state's wait status.
8091 (wait_for_inferior): Don't clear syscall_number.
8093 2012-01-24 Pedro Alves <palves@redhat.com>
8095 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
8096 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
8097 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
8098 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
8100 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
8101 false for events other than TARGET_SIGNAL_TRAP.
8102 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
8104 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
8105 events other than TARGET_SIGNAL_TRAP.
8106 (tracepoint_breakpoint_hit): Add `ws' parameter.
8107 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
8109 (bpstat_stop_status): Same.
8110 (pc_at_non_inline_function): Same.
8111 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
8112 to pass the current event's waitstatus to bpstat_stop_status
8113 and pc_at_non_inline_function.
8115 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8118 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
8119 Update the function comment for it.
8120 (source_script_with_search): Call make_cleanup_fclose for STREAM.
8121 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
8124 2012-01-24 Pedro Alves <palves@redhat.com>
8126 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
8127 outside `bs->stop' block.
8128 (bpstat_what): Rework bp_shlib_event handling.
8129 (internal_bkpt_check_status): If the breakpoint is a
8130 bp_shlib_event, then set bs->stop and bs->print if
8131 stop_on_solib_events is set.
8133 2012-01-24 Gary Benson <gbenson@redhat.com>
8135 Delete #if 0'd out code.
8136 * stack.c (print_frame_label_vars): Remove.
8137 (catch_info): Likewise.
8138 (_initialize_stack): Remove "info catch" command.
8139 * NEWS: Mention the above.
8141 2012-01-24 Pedro Alves <palves@redhat.com>
8143 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
8145 (remote_notice_new_inferior): If the remote end doesn't support
8146 the multiprocess extensions, then the PID is fake.
8147 (add_current_inferior_and_thread): New.
8148 (remote_start_remote): Use it.
8149 (extended_remote_attach_1): Adjust.
8150 (extended_remote_create_inferior_1): Use
8151 add_current_inferior_and_thread.
8153 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8155 Fix watchpoints to be specific for each inferior.
8156 * breakpoint.c (watchpoint_in_thread_scope): Verify also
8157 current_program_space.
8158 * i386-nat.c (i386_inferior_data_cleanup): New.
8159 (i386_inferior_data_get): Replace variable inf_data_local by an
8161 (i386_use_watchpoints): Initialize i386_inferior_data.
8162 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
8163 specific iterate_over_lwps.
8165 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8167 Fix watchpoints across inferior fork.
8168 * amd64-linux-nat.c (update_debug_registers_callback): Update the
8169 comment for linux_nat_iterate_watchpoint_lwps.
8170 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8171 linux_nat_iterate_watchpoint_lwps.
8172 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8173 * i386-linux-nat.c (update_debug_registers_callback): Update the
8174 comment for linux_nat_iterate_watchpoint_lwps.
8175 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8176 linux_nat_iterate_watchpoint_lwps.
8177 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8178 * i386-nat.c: Include inferior.h.
8179 (dr_mirror): Remove.
8180 (i386_inferior_data, struct i386_inferior_data)
8181 (i386_inferior_data_get): New.
8182 (i386_debug_reg_state): Use i386_inferior_data_get.
8183 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8184 (i386_insert_watchpoint, i386_remove_watchpoint)
8185 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8186 (i386_remove_hw_breakpoint): New variable state, use
8187 i386_debug_reg_state instead of DR_MIRROR.
8188 * linux-nat.c (delete_lwp): New declaration.
8189 (num_lwps): Move here from downwards.
8190 (delete_lwp_cleanup): New.
8191 (linux_child_follow_fork): Create new child_lp, call
8192 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8194 (num_lwps): Move upwards.
8195 (linux_nat_iterate_watchpoint_lwps): New.
8196 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8197 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8199 2012-01-24 Joel Brobecker <brobecker@adacore.com>
8203 2012-01-23 Pedro Alves <palves@redhat.com>
8205 * top.c (caution): Rename to ...
8206 (confirm): ... this.
8207 (show_caution): Rename to ...
8208 (show_confirm): ... this.
8209 (quit_cover): Adjust.
8210 (init_main): Adjust.
8211 * top.h (caution): Rename to ...
8212 (confirm): ... this.
8213 * utils.c (internal_vproblem, defaulted_query): Adjust.
8215 2012-01-23 Pedro Alves <palves@redhat.com>
8217 * top.c (caution): Update comment.
8218 (execute_command): Don't consider the current value of `caution'.
8220 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8222 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8224 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8226 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8227 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8228 * target.c (target_fileio_pwrite): Remove buffer address from
8230 (target_fileio_pread): Likewise.
8232 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8234 * NEWS: Document remote "info proc" and "generate-core-file".
8236 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8238 * gdbarch.sh (find_memory_regions): New callback.
8239 * gdbarch.c, gdbarch.h: Regenerate.
8241 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8242 callback before falling back to target method.
8244 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8245 (linux_target_install_ops): No longer install it.
8247 * linux-tdep.c (linux_find_memory_regions): New function.
8248 (linux_init_abi): Install it.
8250 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8252 * gdbarch.sh (make_corefile_notes): New architecture callback.
8253 * gdbarch.c: Regenerate.
8254 * gdbarch.h: Likewise.
8256 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8257 before target_make_corefile_notes. If NULL is returned, the
8258 target does not support core file generation.
8260 * linux-nat.c: Include "linux-tdep.h".
8261 (find_signalled_thread, find_stop_signal): Remove.
8262 (linux_nat_do_thread_registers): Likewise.
8263 (struct linux_nat_corefile_thread_data): Likewise.
8264 (linux_nat_corefile_thread_callback): Likewise.
8265 (iterate_over_spus): Likewise.
8266 (struct linux_spu_corefile_data): Likewise.
8267 (linux_spu_corefile_callback): Likewise.
8268 (linux_spu_make_corefile_notes): Likewise.
8269 (linux_nat_collect_thread_registers): New function.
8270 (linux_nat_make_corefile_notes): Replace contents by call to
8271 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8272 as native-only callback.
8274 * linux-tdep.h: Include "bfd.h".
8275 (struct regcache): Add forward declaration.
8276 (linux_collect_thread_registers_ftype): New typedef.
8277 (linux_make_corefile_notes): Add prototype.
8278 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8279 "regset.h", and "elf-bfd.h".
8280 (find_signalled_thread, find_stop_signal): New functions.
8281 (linux_spu_make_corefile_notes): Likewise.
8282 (linux_collect_thread_registers): Likewise.
8283 (struct linux_corefile_thread_data): New data structure.
8284 (linux_corefile_thread_callback): New funcion.
8285 (linux_make_corefile_notes): Likewise.
8286 (linux_make_corefile_notes_1): Likewise.
8287 (linux_init_abi): Install it.
8289 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8291 * gdbarch.sh (info_proc): New callback.
8292 * gdbarch.c, gdbarch.h: Regenerate.
8294 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8295 before falling back to the target info_proc callback.
8297 * linux-nat.c: Do not include "cli/cli-utils.h".
8298 (linux_nat_info_proc): Remove.
8299 (linux_target_install_ops): No longer install it.
8301 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8302 (read_mapping): New function.
8303 (linux_info_proc): Likewise.
8304 (linux_init_abi): Install it.
8306 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8308 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8309 * infcmd.c: (info_proc_cmd_1): New function.
8310 (info_proc_cmd): New function, moved here from equivalent routine
8311 orignally in linux-nat.c.
8312 (info_proc_cmd_mappings): Likewise.
8313 (info_proc_cmd_stat): Likewise.
8314 (info_proc_cmd_status): Likewise.
8315 (info_proc_cmd_cwd): Likewise.
8316 (info_proc_cmd_cmdline): Likewise.
8317 (info_proc_cmd_exe): Likewise.
8318 (info_proc_cmd_all): Likewise.
8319 (_initialize_infcmd): Install "info proc" command and subcommands.
8321 * target.h (struct target_ops): Add to_info_proc.
8322 (target_info_proc): Add prototype.
8323 * target.c (target_info_proc): New function.
8325 * procfs.c (procfs_info_proc): Add prototype.
8326 (info_proc_cmd): Rename into ...
8327 (procfs_info_proc): ... this. Update argument types as appropriate
8328 for a to_info_proc implementation. Handle "what" argument.
8329 (procfs_target): Install procfs_info_proc.
8330 (_initialize_procfs): No longer install "info proc" command.
8332 * linux-nat.c: (enum info_proc_what): Remove.
8333 (linux_nat_info_proc_cmd_1): Rename into ...
8334 (linux_nat_info_proc): ... this. Update argument types as appropriate
8335 for a to_info_proc implementation.
8336 (linux_nat_info_proc_cmd): Remove.
8337 (linux_nat_info_proc_cmd_mappings): Likewise.
8338 (linux_nat_info_proc_cmd_stat): Likewise.
8339 (linux_nat_info_proc_cmd_status): Likewise.
8340 (linux_nat_info_proc_cmd_cwd): Likewise.
8341 (linux_nat_info_proc_cmd_cmdline): Likewise.
8342 (linux_nat_info_proc_cmd_exe): Likewise.
8343 (linux_nat_info_proc_cmd_all): Likewise.
8344 (linux_target_install_ops): Install linux_nat_info_proc.
8345 (_initialize_linux_nat): No longer install "info proc" command
8348 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8350 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8351 * config.in, configure: Regenerate.
8353 * target.h (struct target_ops): Add to_fileio_readlink.
8354 (target_fileio_readlink): Add prototype.
8355 * target.c (target_fileio_readlink): New function.
8357 * inf-child.c: Conditionally include <sys/param.h>.
8358 (inf_child_fileio_readlink): New function.
8359 (inf_child_target): Install it.
8361 * remote.c (PACKET_vFile_readlink): New enum value.
8362 (remote_hostio_readlink): New function.
8363 (init_remote_ops): Install it.
8364 (_initialize_remote): Handle vFile:readlink packet type.
8366 2012-01-20 Pedro Alves <palves@redhat.com>
8367 Ulrich Weigand <ulrich.weigand@linaro.org>
8369 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8370 * config.in, configure: Regenerate.
8372 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8373 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8374 (target_fileio_open): Add prototype.
8375 (target_fileio_pwrite): Likewise.
8376 (target_fileio_pread): Likewise.
8377 (target_fileio_close): Likewise.
8378 (target_fileio_unlink): Likewise.
8379 (target_fileio_read_alloc): Likewise.
8380 (target_fileio_read_stralloc): Likewise.
8382 * target.c: Include "gdb/fileio.h".
8383 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8384 (default_fileio_target): New function.
8385 (target_fileio_open): Likewise.
8386 (target_fileio_pwrite): Likewise.
8387 (target_fileio_pread): Likewise.
8388 (target_fileio_close): Likewise.
8389 (target_fileio_unlink): Likewise.
8390 (target_fileio_close_cleanup): Likewise.
8391 (target_fileio_read_alloc_1): Likewise.
8392 (target_fileio_read_alloc): Likewise.
8393 (target_fileio_read_stralloc): Likewise.
8395 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8396 <fcntl.h>, and <unistd.h>.
8397 (inf_child_fileio_open_flags_to_host): New function.
8398 (inf_child_errno_to_fileio_error): Likewise.
8399 (inf_child_fileio_open): Likewise.
8400 (inf_child_fileio_pwrite): Likewise.
8401 (inf_child_fileio_pread): Likewise.
8402 (inf_child_fileio_close): Likewise.
8403 (inf_child_fileio_unlink): Likewise.
8404 (inf_child_target): Install to_fileio routines.
8406 * remote.c (init_remote_ops): Install to_fileio routines.
8408 2012-01-20 Pedro Alves <palves@redhat.com>
8409 Ulrich Weigand <ulrich.weigand@linaro.org>
8411 * remote.c (remote_multi_process_p): Only check for multi-process
8412 protocol feature, do not check for extended protocol.
8413 (remote_supports_multi_process): Check for extended protocol here.
8414 (set_general_process): Likewise.
8415 (extended_remote_kill): Likewise.
8416 (remote_pid_to_str): Likewise.
8417 (remote_query_supported): Always query multiprocess mode.
8419 2012-01-20 Pedro Alves <palves@redhat.com>
8420 Ulrich Weigand <ulrich.weigand@linaro.org>
8422 * inferior.h (struct inferior): Add fake_pid_p.
8423 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8424 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8425 magic_null_ptid since the remote side doesn't provide a real PID.
8427 2012-01-19 Tom Tromey <tromey@redhat.com>
8429 * NEWS: Combine the two Python sections.
8431 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8433 * target.h (target_close): Update comment on the target's unpush state.
8435 2012-01-19 Pedro Alves <palves@redhat.com>
8437 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8438 linux_nat_async directly instead of going through the target
8440 * target.c (unpush_target): Close target after unpushing it, not
8443 2012-01-19 Gary Benson <gbenson@redhat.com>
8445 * mdebugread.c (sort_blocks): Replace integer constants with ones
8446 derived from FIRST_LOCAL_BLOCK.
8448 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8449 Jan Kratochvil <jan.kratochvil@redhat.com>
8452 * symfile.c (find_separate_debug_file): New function.
8453 (terminate_after_last_dir_separator): Likewise.
8454 (find_separate_debug_file_by_debuglink): Also try realpath.
8455 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8456 * configure: Regenerate.
8457 * config.in: Regenerate.
8459 2012-01-18 Doug Evans <dje@google.com>
8461 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8462 (main.o): Remove rule.
8463 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8464 (--with-sysroot): Rewrite.
8465 * configure: Regenerate.
8466 * config.in: Regenerate.
8468 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8470 * parse.c (initialize_expout): New function.
8471 (reallocate_expout): Likewise.
8472 (parse_exp_in_context): Use `initialize_expout' and
8473 `reallocate_expout' when appropriate.
8475 2012-01-18 Pedro Alves <palves@redhat.com>
8477 * record.c (struct record_breakpoint, record_breakpoint_p)
8478 (record_breakpoints): New.
8479 (record_insert_breakpoint, record_remove_breakpoint): Manage
8480 record breakpoints list. Only remove breakpoints from the
8481 inferior if they had been inserted there in the first place.
8483 2012-01-17 Doug Evans <dje@google.com>
8485 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8486 if we know we don't have a file name to look for.
8488 2012-01-17 Pedro Alves <palves@redhat.com>
8490 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8491 the frame's stop reason is UNWIND_UNAVAILABLE.
8493 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8495 Fix compilation error.
8496 * m2-exp.y (yyerror): Use ANSI C prototype.
8498 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8500 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8501 (growbuf_by_size): Likewise.
8502 (yyerror): Likewise.
8503 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8504 (modblock): Remove variable (was #if 0'ed).
8505 (parse_number): Convert prototype from K&R to ANSI C.
8506 (yyerror): Likewise.
8507 * objc-exp.y (parse_number): Likewise.
8508 (yyerror): Likewise.
8509 (yylex): Remove #if 0'ed code.
8510 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8511 (yyerror): Likewise.
8513 2012-01-16 Tom Tromey <tromey@redhat.com>
8516 * symtab.h (compare_filenames_for_search): Declare.
8517 * symtab.c (compare_filenames_for_search): New function.
8518 (iterate_over_some_symtabs): Use it.
8519 * symfile.h (struct quick_symbol_functions)
8520 <map_symtabs_matching_filename>: Change spec.
8521 * psymtab.c (partial_map_symtabs_matching_filename): Use
8522 compare_filenames_for_search. Update for new spec.
8523 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8524 compare_filenames_for_search. Update for new spec.
8525 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8527 2012-01-16 Tom Tromey <tromey@redhat.com>
8530 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8531 (struct main_type) <flag_flag_enum>: New field.
8532 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8533 * NEWS: Add entries.
8534 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8536 * python/lib/gdb/printing.py (_EnumInstance): New class.
8537 (FlagEnumerationPrinter): Likewise.
8539 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8541 * breakpoint.c (create_sals_from_address_default): New function.
8542 (create_breakpoints_sal_default): Likewise.
8543 (decode_linespec_default): Likewise.
8544 (is_marker_spec): Removed.
8545 (strace_marker_p): New function.
8546 (init_breakpoint_sal): Using `strace_marker_p' instead of
8548 (create_breakpoint): Call method `create_sals_from_address' from
8549 breakpoint_ops, replacing code that created SALs conditionally
8550 on the type of the breakpoint. Call method `create_breakpoints_sal',
8551 replacing code that created breakpoints conditionally on the type
8553 (base_breakpoint_create_sals_from_address): New function.
8554 (base_breakpoint_create_breakpoints_sal): Likewise.
8555 (base_breakpoint_decode_linespec): Likewise.
8556 (base_breakpoint_ops): Add methods
8557 `base_breakpoint_create_sals_from_address',
8558 `base_breakpoint_create_breakpoints_sal' and
8559 `base_breakpoint_decode_linespec'.
8560 (bkpt_create_sals_from_address): New function.
8561 (bkpt_create_breakpoints_sal): Likewise.
8562 (bkpt_decode_linespec): Likewise.
8563 (tracepoint_create_sals_from_address): Likewise.
8564 (tracepoint_create_breakpoints_sal): Likewise.
8565 (tracepoint_decode_linespec): Likewise.
8566 (strace_marker_create_sals_from_address): Likewise.
8567 (strace_marker_create_breakpoints_sal): Likewise.
8568 (strace_marker_decode_linespec): Likewise.
8569 (strace_marker_breakpoint_ops): New variable.
8570 (addr_string_to_sals): Remove `marker_spec'. Call method
8571 `decode_linespec' from breakpoint_ops, replacing code that decoded
8572 an address string into a SAL. Use `strace_marker_p' instead of
8574 (strace_command): Decide whether we are dealing with a static
8575 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8576 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8577 * breakpoint.h (linespec_result, linespec_sals): New forward
8579 (breakpoint_ops) <create_sals_from_address>,
8580 <create_breakpoints_sal>, <decode_linespec>: New methods.
8582 2012-01-14 Doug Evans <dje@google.com>
8584 * NEWS: Update text for "maint set python print-stack".
8585 It is deprecated in gdb 7.4 and deleted in 7.5.
8587 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8589 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8592 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8594 * configure: Regenerate.
8595 * config.in: Regenerate.
8597 2012-01-12 Keith Seitz <keiths@redhat.com>
8600 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8601 (ANONYMOUS_UNION_NAME): Define.
8602 (is_path_expr_parent): New function.
8603 (get_path_expr_parent): New function.
8604 (is_anonymous_child): New function.
8605 (create_child_with_value): If the child is anonymous and without
8606 a name, assign an object name to it.
8607 (c_describe_child): Use get_path_expr_parent to determine
8608 the parent expression.
8609 If there field represents an anonymous struct or union and
8610 has no name, set an appropriate display name and expression.
8611 (cplus_describe_child): Likewise.
8613 2012-01-12 Pedro Alves <palves@redhat.com>
8615 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8616 available when %ebp is found to be zero (outermost).
8618 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8620 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8621 an internal gdb_static_assert.
8622 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8624 2012-01-11 Tom Tromey <tromey@redhat.com>
8627 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8628 catch" and "catch throw".
8630 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8632 * blockframe.c (block_innermost_frame): Start search from selected
8633 frame, if present, or otherwise the current frame.
8635 * c-exp.y (variable): Update innermost_block for
8636 'block COLONCOLON NAME' clause.
8637 * m2-exp.y (variable): Ditto.
8638 * objc-exp.y (variable): Ditto.
8640 2012-01-10 Tom Tromey <tromey@redhat.com>
8643 * python/python.c (finish_python_initialization): Set sys.argv.
8645 2012-01-10 Doug Evans <dje@google.com>
8647 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8648 "want_line_info". All callers updated.
8649 (dwarf_decode_lines_1): New function.
8650 (handle_DW_AT_stmt_list): Add function comment.
8651 New arg "want_line_info". All callers updated.
8652 (read_file_scope,read_type_unit_scope): Move comment from
8653 handle_DW_AT_stmt_list to here.
8655 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8657 Fix regression after libiberty/ update for GCC PR 6057 and others.
8658 * c-exp.y (operator) <OPERATOR DELETE>
8659 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8660 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8661 (make_builtin_type, make_name): New variable i, add gdb_assert.
8662 (operator) <OPERATOR NEW>: Update ARGS to 3.
8663 (operator) <OPERATOR DELETE>: Add trailing space.
8664 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8665 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8666 * cp-support.c (cp_canonicalize_string): Check NULL from
8667 cp_comp_to_string, call warning and return.
8669 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8671 Fix duplicate .o files after omitting libbfd.a.
8672 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8673 (SFILES): Add corelow.c.
8674 (COMMON_OBS): Add corelow.o.
8675 (ALLDEPFILES): Remove corelow.c.
8676 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8677 * config/alpha/alpha-osf3.mh: Likewise.
8678 * config/alpha/fbsd.mh: Likewise.
8679 * config/arm/nbsdaout.mh: Likewise.
8680 * config/arm/nbsdelf.mh: Likewise.
8681 * config/i386/i386gnu.mh: Likewise.
8682 * config/ia64/hpux.mh: Likewise.
8683 * config/ia64/linux.mh: Likewise.
8684 * config/m32r/linux.mh: Likewise.
8685 * config/m68k/linux.mh: Likewise.
8686 * config/mips/irix5.mh: Likewise.
8687 * config/mips/irix6.mh: Likewise.
8688 * config/pa/hpux.mh: Likewise.
8689 * config/pa/linux.mh: Likewise.
8690 * config/powerpc/aix.mh: Likewise.
8691 * config/sparc/linux.mh: Likewise.
8692 * config/sparc/linux64.mh: Likewise.
8693 * config/sparc/sol2.mh: Likewise.
8694 * config/vax/vax.mh: Likewise.
8695 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8696 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8697 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8698 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8699 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8700 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8701 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8702 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8703 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8704 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8705 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8706 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8707 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8708 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8709 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8710 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8711 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8712 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8713 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8714 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8715 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8716 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8717 corelow.o from gdb_target_obs.
8718 * corefile.c (core_target): Update the comment on NULL value.
8719 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8720 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8721 MATCHES. Drop YUMMY set on NULL.
8722 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8723 reclaim CORE_DATA if it is already NULL.
8725 2012-01-09 Doug Evans <dje@google.com>
8727 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8728 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8730 2012-01-09 Keith Seitz <keiths@redhat.com>
8732 * breakpoint.c (wrapper.h): Don't include.
8734 2012-01-09 Keith Seitz <keiths@redhat.com>
8736 * Makefile.in (SFILES): Remove wrapper.c.
8737 (HFILES_NO_SRCDIR): Remove wrapper.h.
8738 (COMMON_OBS): Remove wrapper.o.
8739 * cli/cli-interp.c: Don't inlude wrapper.h.
8740 * corelow.c: Likewise.
8741 (core_open): Replace gdb_target_find_new_threads with
8742 TRY_CATCH around target_find_new_threads.
8743 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8744 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8745 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8746 evaluate_expression.
8747 (varobj_set_value): Likewise for evaluate_expression and
8749 (install_new_variable): Likewise for value_fetch_lazy.
8750 (adjust_value_for_child_access): Likewise for value_ind.
8751 (c_describe_child): Likewise for value_subscript and
8753 (c_value_of_root): Likewise for evaluate_expression.
8754 * wrapper.c: Remove.
8755 * wrapper.h: Remove.
8757 2012-01-09 Doug Evans <dje@google.com>
8759 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8760 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8761 "abfd" args with "section". All callers updated.
8762 Error checking code moved ...
8763 (error_check_comp_unit_head): ... here. New function.
8764 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8765 Delete arg "abfd". New arg "type_offset". All callers updated.
8766 (create_debug_types_hash_table): Simplify by using
8767 read_and_check_type_unit_head.
8769 * parser-defs.h (namecopy): Delete.
8770 * parse.c (namecopy, namecopy_size): Move into copy_name.
8772 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8774 Partially fix duplicate .o files after omitting libbfd.a.
8775 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8776 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8777 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8778 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8779 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8780 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8781 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8783 2012-01-09 Pedro Alves <palves@redhat.com>
8785 * MAINTAINERS: Update my email address.
8787 2012-01-08 Doug Evans <dje@google.com>
8789 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8790 n_type_units. Rename type_comp_units to all_type_units.
8792 (add_signatured_type_cu_to_table): Renamed from
8793 add_signatured_type_cu_to_list. All callers updated.
8795 * gdbtypes.h (struct cplus_struct_type): Delete member
8796 nfn_fields_total. All uses removed.
8798 2012-01-06 Doug Evans <dje@google.com>
8800 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8802 (dwarf2_find_comp_unit): Delete.
8803 (process_psymtab_comp_unit): Make result "void".
8804 Delete args buffer, info_ptr, buffer_size, and replace with
8805 "section". All callers updated.
8806 (dwarf2_build_psymtabs_hard): Simplify.
8808 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8809 Thiago Jung Bauermann <bauerman@br.ibm.com>
8811 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8812 before `struct gdb_exception'.
8813 * breakpoint.c (update_global_location_list_nothrow)
8814 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8815 * cp-abi.c (value_rtti_type): Likewise.
8816 * cp-support.c (cp_validate_operator): Likewise.
8817 * infrun.c (insert_exception_resume_breakpoint)
8818 (check_exception_resume, keep_going): Likewise.
8819 * mi-interp.c (mi_breakpoint_created)
8820 (mi_breakpoint_modified): Likewise.
8821 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8822 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8823 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8825 2012-01-05 Doug Evans <dje@google.com>
8827 * dwarf2read.c (statement_prologue): Delete, unused.
8829 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8830 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8832 * dwarf2read.c (comp_unit_header): Delete, unused.
8834 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8836 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8837 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8839 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8841 * infrun.c (normal_stop): Don't skip calling the normal_stop
8842 observers if the thread was doing a multi-step, but stopped for
8843 some reason other than stepping.
8845 2012-01-05 Pedro Alves <alves.ped@gmail.com>
8847 * cli/cli-decode.h: Add comments.
8848 (CMD_LIST_AMBIGUOUS): Moved to command.h
8849 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8850 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8851 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8852 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8853 (add_com, add_com_alias, add_info, add_info_alias)
8854 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8856 * command.h: Add and adjust comments.
8857 (CMD_LIST_AMBIGUOUS): Moved here.
8858 (help_cmd, help_cmd_list): Delete declarations.
8860 2012-01-04 Doug Evans <dje@google.com>
8862 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8863 All callers updated.
8864 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8865 Replace all arguments with "per_cu". All callers updated.
8867 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8869 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8870 New arg "per_cu". All callers updated.
8872 Delete #if 0'd out code.
8873 * language.c (binop_result_type): Delete.
8874 (simple_type, ordered_type, same_type, integral_type): Delete.
8875 (numeric_type, character_type, string_type, boolean_type): Delete.
8876 (float_type, structured_type): Delete.
8877 * language.h: Update.
8879 2012-01-04 Tom Tromey <tromey@redhat.com>
8881 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8883 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8885 * corefile.c (close_exec_file): Delete.
8886 (reopen_exec_file): Remove commented out code that seems related
8887 to close_exec_file, which is being deleted here.
8888 * inferior.h (close_exec_file): Delete.
8889 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8891 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8893 * ada-lang.c: #include "cli/cli-utils.h".
8894 (get_selections): Use skip_spaces.
8895 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8896 (catch_ada_exception_command_split): Use skip_spaces.
8897 (ada_decode_assert_location): Likewise.
8899 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8901 * linespec.c (decode_line_internal): Check for C++ or Java
8902 compound constructs only if the current language is C, C++
8905 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8908 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8909 Joel Brobecker <brobecker@adacore.com>
8910 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8911 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8913 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8914 fall through into AT_ENTRY_POINT.
8915 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8917 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8918 PPC_INSN_SIZE skip to 3 times.
8920 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8922 * linespec.c (add_minsym): Preserve function descriptors.
8924 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8926 * breakpoint.c (all_locations_are_pending): Consider locations
8927 in program spaces executing during startup pending as well.
8929 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8931 Copyright year update in most files of the GDB Project.
8933 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8935 * copyright.sh: Delete.
8936 * copyright.py: Rewrite.
8938 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8940 * gnulib/extra/update-copyright: New file, imported from gnulib.
8942 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8944 * README (Copyright and License Notices): New section.
8946 2012-01-03 Tom Tromey <tromey@redhat.com>
8949 * python/py-value.c (valpy_dereference, valpy_get_address
8950 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8951 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8952 (valpy_absolute, valpy_richcompare): Free intermediate values.
8954 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8956 * ada-lang.c: Reformat the copyright notice.
8958 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8960 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8961 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8962 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8963 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8964 Revert this part of:
8965 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8966 Build gdb directly from *.o files not using libgdb.a.
8967 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8969 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8971 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8972 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8973 Reformat the copyright header.
8975 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8977 Revert this part of:
8978 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8979 Remove the gdbtui binary.
8980 * gdb.c (main): Remove args.interpreter_p initialization.
8981 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8982 * main.h (struct captured_main_args): Remove interpreter_p.
8984 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8986 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8988 2012-01-02 Joel Brobecker <brobecker@adacore.com>
8990 * top.c (print_gdb_version): Update copyright year.
8992 2012-01-02 Yao Qi <yao@codesourcery.com>
8994 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8996 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8997 Joel Brobecker <brobecker@adacore.com>
8999 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9000 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9002 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9003 fall through into AT_ENTRY_POINT.
9004 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9006 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9007 PPC_INSN_SIZE skip to 3 times.
9009 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9011 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
9013 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
9015 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9017 Build gdb directly from *.o files not using libgdb.a.
9018 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
9019 (COMMON_OBS): Remove solib-target.o.
9020 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
9021 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
9022 (LIBGDB_OBS, libgdb.a): Move it above.
9023 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
9024 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
9025 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
9026 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
9027 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
9028 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
9029 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
9030 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
9031 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
9032 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
9033 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
9034 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
9035 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
9036 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
9037 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9038 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
9039 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
9040 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9041 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
9042 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
9043 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
9044 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
9045 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
9046 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
9047 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
9048 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
9049 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
9051 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9053 Remove the gdbtui binary.
9054 * .gitignore (/gdbtui): Remove.
9055 * Makefile.in (TUI): Remove.
9056 (SUBDIR_TUI_OBS): Remove tui-main.o.
9057 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
9058 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
9059 (tui-main.o): Remove.
9060 (all_object_files): Remove tui-main.o.
9061 * NEWS: New note for the gdbtui removal.
9062 * configure: Rebuilt.
9063 * configure.ac: No longer add all-tui, clean-tui, install-tui and
9064 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
9065 CONFIG_UNINSTALL respectively.
9066 * gdb.c (main): Remove args.interpreter_p initialization.
9067 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9068 * main.h (struct captured_main_args): Remove interpreter_p.
9069 * tui/tui-main.c: Remove.
9071 2012-01-01 Doug Evans <dje@google.com>
9073 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
9074 (dwarf2_physname, read_import_statement): Ditto.
9075 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
9076 (process_structure_scope read_subroutine_type): Ditto.
9077 (read_typedef, load_partial_dies, read_partial_die): Ditto.
9078 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
9079 (dwarf2_fetch_die_location_block): Ditto.
9080 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
9082 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
9083 All callers updated.
9084 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
9085 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
9086 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
9088 * dwarf2read.c (load_cu): Move assert to more useful location.
9090 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
9091 All callers updated.
9093 * dwarf2read.c (dwarf2_per_objfile): Add comment.
9094 (dwarf2_elf_names): Minor reformat.
9095 (dwarf2_per_cu_data): Tweak comment.
9096 (dwarf2_read_section): Fix comment.
9097 (create_all_comp_units): Fix comment.
9098 (load_full_comp_unit): Fix comment.
9099 (process_full_comp_unit): Fix comment.
9100 (read_signatured_type): Fix comment.
9102 For older changes see ChangeLog-2011.
9108 version-control: never