1 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
4 attempt to 4-byte-align HW breakpoint addresses for Thumb.
6 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
8 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
9 invalid or reevaluated to prevent prevent references to possibly
10 delete'd type objects being left in the varobj.
12 2012-07-27 Tom Tromey <tromey@redhat.com>
13 Jan Kratochvil <jan.kratochvil@redhat.com>
15 * copying.awk: Print buffer-read-only and vi ro markers.
17 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
18 * gdbarch.c, gdbarch.h: Rebuild.
19 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
20 buffer-read-only and vi ro markers.
21 * features/arm-with-iwmmxt.c: Rebuild.
22 * features/arm-with-m-fpa-layout.c: Rebuild.
23 * features/arm-with-m-vfp-d16.c: Rebuild.
24 * features/arm-with-m.c: Rebuild.
25 * features/arm-with-neon.c: Rebuild.
26 * features/arm-with-vfpv2.c: Rebuild.
27 * features/arm-with-vfpv3.c: Rebuild.
28 * features/i386/amd64-avx-linux.c: Rebuild.
29 * features/i386/amd64-avx.c: Rebuild.
30 * features/i386/amd64-linux.c: Rebuild.
31 * features/i386/amd64.c: Rebuild.
32 * features/i386/i386-avx-linux.c: Rebuild.
33 * features/i386/i386-avx.c: Rebuild.
34 * features/i386/i386-linux.c: Rebuild.
35 * features/i386/i386-mmx-linux.c: Rebuild.
36 * features/i386/i386-mmx.c: Rebuild.
37 * features/i386/i386.c: Rebuild.
38 * features/i386/x32-avx-linux.c: Rebuild.
39 * features/i386/x32-avx.c: Rebuild.
40 * features/i386/x32-linux.c: Rebuild.
41 * features/i386/x32.c: Rebuild.
42 * features/mips-dsp-linux.c: Rebuild.
43 * features/mips-linux.c: Rebuild.
44 * features/mips64-dsp-linux.c: Rebuild.
45 * features/mips64-linux.c: Rebuild.
46 * features/rs6000/powerpc-32.c: Rebuild.
47 * features/rs6000/powerpc-32l.c: Rebuild.
48 * features/rs6000/powerpc-403.c: Rebuild.
49 * features/rs6000/powerpc-403gc.c: Rebuild.
50 * features/rs6000/powerpc-405.c: Rebuild.
51 * features/rs6000/powerpc-505.c: Rebuild.
52 * features/rs6000/powerpc-601.c: Rebuild.
53 * features/rs6000/powerpc-602.c: Rebuild.
54 * features/rs6000/powerpc-603.c: Rebuild.
55 * features/rs6000/powerpc-604.c: Rebuild.
56 * features/rs6000/powerpc-64.c: Rebuild.
57 * features/rs6000/powerpc-64l.c: Rebuild.
58 * features/rs6000/powerpc-7400.c: Rebuild.
59 * features/rs6000/powerpc-750.c: Rebuild.
60 * features/rs6000/powerpc-860.c: Rebuild.
61 * features/rs6000/powerpc-altivec32.c: Rebuild.
62 * features/rs6000/powerpc-altivec32l.c: Rebuild.
63 * features/rs6000/powerpc-altivec64.c: Rebuild.
64 * features/rs6000/powerpc-altivec64l.c: Rebuild.
65 * features/rs6000/powerpc-cell32l.c: Rebuild.
66 * features/rs6000/powerpc-cell64l.c: Rebuild.
67 * features/rs6000/powerpc-e500.c: Rebuild.
68 * features/rs6000/powerpc-e500l.c: Rebuild.
69 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
70 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
71 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
72 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
73 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
74 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
75 * features/rs6000/powerpc-vsx32.c: Rebuild.
76 * features/rs6000/powerpc-vsx32l.c: Rebuild.
77 * features/rs6000/powerpc-vsx64.c: Rebuild.
78 * features/rs6000/powerpc-vsx64l.c: Rebuild.
79 * features/rs6000/rs6000.c: Rebuild.
80 * features/s390-linux32.c: Rebuild.
81 * features/s390-linux32v1.c: Rebuild.
82 * features/s390-linux32v2.c: Rebuild.
83 * features/s390-linux64.c: Rebuild.
84 * features/s390-linux64v1.c: Rebuild.
85 * features/s390-linux64v2.c: Rebuild.
86 * features/s390x-linux64.c: Rebuild.
87 * features/s390x-linux64v1.c: Rebuild.
88 * features/s390x-linux64v2.c: Rebuild.
89 * features/tic6x-c62x-linux.c: Rebuild.
90 * features/tic6x-c62x.c: Rebuild.
91 * features/tic6x-c64x-linux.c: Rebuild.
92 * features/tic6x-c64x.c: Rebuild.
93 * features/tic6x-c64xp-linux.c: Rebuild.
94 * features/tic6x-c64xp.c: Rebuild.
96 2012-07-27 Tom Tromey <tromey@redhat.com>
98 * c-exp.y (classify_name): Avoid assignment in condition.
100 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
102 * amd64-windows-tdep.c: Include "frame.h".
103 (amd64_windows_skip_trampoline_code): New function.
104 (amd64_windows_init_abi): Add trampoline registration.
106 2012-07-27 Yao Qi <yao@codesourcery.com>
108 * tracepoint.c (cur_traceframe_number): Remove.
109 (set_tfile_traceframe): Remove.
110 (tfile_trace_find, tfile_fetch_registers): Update callers.
111 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
112 (tfile_open, tfile_trace_find): Likewise.
114 2012-07-27 Yao Qi <yao@codesourcery.com>
116 * thread.c (switch_to_thread): Don't call registers_changed.
118 2012-07-26 Tom Tromey <tromey@redhat.com>
120 * Makefile.in (SFILES): Remove objc-exp.y.
121 (YYFILES): Remove objc-exp.c.
122 (YYOBJ): Remove objc-exp.o.
123 (local-maintainer-clean): Don't mention objc-exp.c.
124 * c-exp.y: Include objc-lang.h.
125 (%union) <class>: New field.
126 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
127 (exp): Clone subscript production for OBJC_LBRAC. Add various
128 Objective C productions.
129 (msglist, msgarglist, msgarg): New productions.
130 (array_mod, func_mod, operator): Clone productions for
132 (parse_string_or_char): Handle '@' strings.
133 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
134 (classify_name): Check la_name_of_this. Recognize ObjC class
136 * objc-exp.y: Remove.
137 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
138 * objc-lang.h (objc_parse, objc_error): Don't declare.
140 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
142 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
144 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
146 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
149 2012-07-26 Tom Tromey <tromey@redhat.com>
151 * copying.c: Rebuild.
152 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
155 2012-07-26 Tom Tromey <tromey@redhat.com>
157 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
159 (print_objfile_statistics): Likewise.
160 (maintenance_print_symbols): Likewise.
161 (maintenance_print_msymbols): Likewise.
162 (maintenance_print_objfiles): Likewise.
163 * psymtab.c (print_partial_symbols): Call QUIT.
164 (maintenance_print_psymbols): Likewise. Don't modify
166 * copying.c (show_copying_command): Don't modify immediate_quit.
167 (show_warranty_command): Likewise.
168 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
170 2012-07-26 Keith Seitz <keiths@redhat.com>
172 * linespec.c (linespec_lexer_lex_number): The input
173 is also a valid number if the next character is a comma
176 2012-07-26 Joel Brobecker <brobecker@adacore.com>
178 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
181 2012-07-26 Tristan Gingold <gingold@adacore.com>
183 * machoread.c: Include gdb_bfd.h.
185 2012-07-26 Tristan Gingold <gingold@adacore.com>
187 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
190 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
192 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
194 (dwarf2_evaluate_loc_desc): Likewise.
195 (dwarf2_loc_desc_needs_frame): Likewise.
196 (locexpr_describe_location_1): Likewise.
197 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
199 (struct dwarf2_loclist_baton): Likewise.
200 * dwarf2read.c (struct dwarf_block): Likewise.
201 (dump_die_shallow): Use pulongest to print dwarf_block.size.
202 (decode_locdesc): Expand SIZE and I to size_t.
204 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
206 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
208 2012-07-25 Joel Brobecker <brobecker@adacore.com>
210 * doublest.c (convert_doublest_to_floatformat): If the exponent
211 is too small, treat the value as zero. If the exponent is too
212 large, treat the value as infinity.
214 2012-07-25 Joel Brobecker <brobecker@adacore.com>
216 * configure.ac: Add --enable-lmcheck configure option.
217 * configure: Regenerate.
219 2012-07-25 Tom Tromey <tromey@redhat.com>
221 * NEWS: Mention maint info bfds.
222 * gdb_bfd.c (all_bfds): New global.
223 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
224 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
227 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
229 * configure.tgt: Add v850*-*-rtems*.
231 2012-07-25 Tom Tromey <tromey@redhat.com>
233 * macrotab.c (macro_bcache_str): Remove cast.
235 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
237 * linespec.c (linespec_lexer_lex_number): Update comments,
238 change the return and add check to make sure the input is
240 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
241 false, call linespec_lexer_lex_string.
243 2012-07-24 Tom Tromey <tromey@redhat.com>
245 * symfile.c (symbol_file_add): Don't open BFD twice.
247 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
249 * breakpoint.c (create_breakpoint): Store condition for pending
252 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
254 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
255 (m68k_return_value): Handle complex types like structures.
256 (m68k_svr4_return_value): Likewise.
258 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
260 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
261 parameters to bfd_get_section_name.
263 2012-07-24 Yao Qi <yao@codesourcery.com>
265 * cli/cli-setshow.c: Handle case 'var_uinteger'
266 and 'var_zuninteger' together. Handle case 'var_integer' and
267 'var_zinteger' together.
269 2012-07-23 Keith Seitz <keiths@redhat.com>
271 * linespec.c (convert_linespec_to_sal): Don't add
272 any symbols to the result vector if symbol_to_sal
275 2012-07-23 Keith Seitz <keiths@redhat.com>
277 * linespec.c (decode_objc): Record the function name
280 2012-07-23 Tom Tromey <tromey@redhat.com>
282 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
284 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
285 (map_vmap): Acquire a reference to the BFD.
287 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
289 * p-valprint.c (pascal_object_print_value): Replace potentially
290 unsafe alloca with xmalloc/xfree.
291 * valops.c (search_struct_method): Likewise.
293 2012-07-23 Tom Tromey <tromey@redhat.com>
295 * solib-svr4.c (enable_break): Update.
296 * bfd-target.h (target_bfd_reopen): Update documentation.
298 2012-07-23 Tom Tromey <tromey@redhat.com>
300 * symfile.c (separate_debug_file_exists): Update.
301 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
302 (reread_symbols): Update.
303 * elfread.c (build_id_verify): Update.
304 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
305 bfd_open_maybe_remote.
307 2012-07-23 Tom Tromey <tromey@redhat.com>
309 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
311 2012-07-23 Tom Tromey <tromey@redhat.com>
313 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
315 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
317 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
318 * machoread.c (macho_add_oso_symfile): Make a cleanup for
320 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
321 * objfiles.c (allocate_objfile): Acquire a new reference.
322 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
323 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
324 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
325 a cleanup for 'nbfd'.
326 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
328 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
329 make a cleanup for 'abfd'.
330 (symbol_file_add): Make a BFD cleanup.
332 2012-07-23 Tom Tromey <tromey@redhat.com>
334 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
335 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
336 * corelow.c (core_open): Use gdb_bfd_fopen.
337 * dsrec.c (load_srec): Use gdb_bfd_openr.
338 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
339 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
340 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
341 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
342 (gdb_bfd_fdopenr): New functions.
343 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
344 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
345 (gdb_bfd_fdopenr): Declare.
346 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
347 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
348 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
349 gdb_bfd_openr_next_archived_file.
350 (macho_check_dsym): Use gdb_bfd_openr.
351 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
352 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
353 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
354 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
356 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
357 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
358 gdb_bfd_openr_next_archived_file.
359 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
361 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
363 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
364 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
365 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
366 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
367 (symfile_bfd_open): Use gdb_bfd_fopen.
368 (generic_load): Use gdb_bfd_openr.
369 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
371 2012-07-23 Tom Tromey <tromey@redhat.com>
373 * bfd-target.c (target_bfd_reopen): Update.
374 * cli/cli-dump.c (bfd_openr_with_cleanup)
375 (bfd_openw_with_cleanup): Update.
376 * corelow.c (core_open): Update.
377 * dsrec.c (load_srec): Update.
378 * exec.c (exec_file_attach): Update.
379 * gcore.c (create_gcore_bfd): Update.
380 * gdb_bfd.c (gdb_bfd_ref): Return void.
381 (gdb_bfd_open): Update.
382 * gdb_bfd.h (gdb_bfd_ref): Return void.
384 * jit.c (jit_bfd_try_read_symtab): Update.
385 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
386 * machoread.c (macho_symfile_read_all_oso): Update.
387 (macho_check_dsym): Update.
388 * procfs.c (insert_dbx_link_bpt_in_file): Update.
389 * remote-m32r-sdi.c (m32r_load): Update.
390 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
391 * rs6000-nat.c (add_vmap): Update.
392 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
394 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
395 * solib-spu.c (spu_bfd_open): Update.
396 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
397 * spu-linux-nat.c (spu_bfd_open): Update.
398 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
399 (generic_load): Update.
400 * windows-nat.c (windows_make_so): Update.
402 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
404 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
406 2012-07-20 Jeff Kenton <jkenton@tilera.com>
408 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
409 SIGTRAMP_FRAME unwinding.
411 2012-07-20 Doug Evans <dje@google.com>
413 * NEWS: Document new options "set/show use-deprecated-index-sections",
414 and delete reference to --use-deprecated-index-sections.
415 * symfile.h (use_deprecated_index_sections): Delete.
416 * dwarf2read.c (use_deprecated_index_sections): Make static.
417 (read_index_from_section): Update wording of how to load
418 deprecated index sections.
419 (_initialize_dwarf2_read): New options
420 "set/show use-deprecated-index-sections".
421 * main.c (captured_main): Delete --use-deprecated-index-sections.
423 2012-07-20 Pedro Alves <palves@redhat.com>
428 * infrun.c (handle_inferior_event) <new thread>: Don't special
430 <TARGET_WAITKIND_SPURIOUS>: Ditto.
431 * linux-thread-db.c (thread_get_info_callback): Don't return early
432 if the thread is zombie.
433 (thread_from_lwp): Change return type to void. Rewrite stale
435 (attach_thread): Don't return early if the thread is zombie,
436 instead set its "dying" flag.
437 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
438 (find_new_threads_callback): Don't return early if the thread is
441 2012-07-20 Pedro Alves <palves@redhat.com>
443 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
444 * target.c (target_wait): Likewise.
445 (str_comma_list_concat_elem, do_option, target_options_to_string):
447 * target.h (target_options_to_string): Declare.
449 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
450 Tom Tromey <tromey@redhat.com>
452 * dwarf2read.c (dwarf_decode_macros)
453 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
454 DW_MACRO_GNU_transparent_include_alt>: New cases.
455 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
456 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
458 2012-07-20 Tom Tromey <tromey@redhat.com>
460 * dwarf2read.c (try_open_dwo_file): Don't call
461 gdb_bfd_stash_filename.
463 2012-07-20 Pedro Alves <palves@redhat.com>
465 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
466 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
467 (i386_process_record): Tweak description comments.
469 2012-07-20 Pedro Alves <palves@redhat.com>
471 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
472 (i386_process_record): Use record_read_memory.
473 * record.c (record_read_memory): New function.
474 (record_arch_list_add_mem, record_exec_insn): Use
476 * record.h (record_read_memory): Declare.
478 2012-07-20 Yao Qi <yao@codesourcery.com>
480 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
483 2012-07-19 Pedro Alves <palves@redhat.com>
485 * record.c (record_resume): Ask the target beneath to report all
488 2012-07-19 Doug Evans <dje@google.com>
490 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
491 there's no section at address zero.
492 (dwarf2_record_block_ranges): Ditto.
494 2012-07-19 Yao Qi <yao@codesourcery.com>
496 * command.h, remote.c: Fix a typo in comment.
498 2012-07-19 Tom Tromey <tromey@redhat.com>
501 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
502 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
503 OP_DECLTYPE>: New cases.
504 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
505 (type_exp): Add new productions.
506 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
508 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
510 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
511 OP_DECLTYPE>: New case.
512 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
514 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
515 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
517 2012-07-19 Tom Tromey <tromey@redhat.com>
519 * c-exp.y (enum token_flags): New.
520 (struct token) <cxx_only>: Remove.
522 (tokentab3, tokentab2, ident_tokens): Update.
523 (lex_one_token): Update. Handle FLAG_SHADOW.
525 2012-07-19 Tom Tromey <tromey@redhat.com>
527 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
528 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
529 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
530 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
531 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
532 type_exp production where appropriate.
533 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
534 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
535 <UNOP_MEMVAL_TYPE>: New case.
536 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
537 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
538 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
539 <UNOP_MEMVAL_TYPE>: New case.
540 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
541 UNOP_REINTERPRET_CAST>: Update.
542 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
543 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
544 UNOP_REINTERPRET_CAST>: Update.
545 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
546 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
547 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
550 2012-07-19 Yao Qi <yao@codesourcery.com>
551 Jan Kratochvil <jan.kratochvil@redhat.com>
553 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
554 and case 'var_optional_filename' together.
555 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
556 instead of add_setshow_optional_filename_cmd for setshow command
557 'args'. Set completer for 'set args'.
559 2012-07-18 Doug Evans <dje@google.com>
561 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
562 * common/gdb_vecs.c: New file, contents from utils.c.
563 * common/host-defs.h: New file, contents from defs.h.
564 * utils.h: New file, contents from defs.h.
565 * defs.h: Move all declarations of objects defined in utils.c
566 to utils.h (except QUIT() and related).
567 #include "utils.h", "host-defs.h".
568 * probe.h (probe_p): Move here from gdb_vecs.h.
569 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
570 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
571 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
572 * Makefile.in (SFILES): Add common/gdb_vecs.c.
573 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
574 (COMMON_OBS): Add gdb_vecs.o.
575 (gdb_vecs.o): New rule.
577 2012-07-18 Keith Seitz <keiths@redhat.com>
579 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
580 parameter. If non-zero, use SYMNAME as the canonical name
583 (convert_linespec_to_sals): Use add_sal_to_sals for
585 (decode_line_full): No need to "fill in missing canonical names"
586 anymore. Simply make cleanups for the allocated names.
588 2012-07-18 Keith Seitz <keiths@redhat.com>
590 * linespec.c (struct linespec): Constify expression,
591 source_filename, function_name, and label_name.
592 (symbol_not_found_error): Make all parameters const.
593 (linespec_parser_delete): No need to check for NULL
594 when using xfree. Cast const char * to char * for xfree.
596 2012-07-18 Keith Seitz <keiths@redhat.com>
598 * breakpoint.c (invalid_thread_id_error): New function.
599 (find_condition_and_thread): Use invalid_thread_id_error.
600 (watch_command_1): Likewise.
602 2012-07-18 Tom Tromey <tromey@redhat.com>
604 * cc-with-index.sh, cc-with-dwz.sh: Remove.
605 * contrib/cc-with-tweaks.sh: New file.
607 2012-07-18 Tom Tromey <tromey@redhat.com>
609 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
610 (locate_dwz_sections): Recognize .gdb_index.
611 (create_cus_from_index_list): New function.
612 (create_cus_from_index): Use it. Handle .dwz data.
613 (read_index_from_section): New function, extracted from
615 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
618 2012-07-18 Tom Tromey <tromey@redhat.com>
620 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
621 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
623 (struct dwz_file): New.
624 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
625 (locate_dwz_sections, dwarf2_get_dwz_file)
626 (get_abbrev_section_for_cu): New functions.
627 (error_check_comp_unit_head, read_and_check_comp_unit_head)
628 (read_and_check_type_unit_head): Add abbrev_section argument.
629 (create_debug_types_hash_table): Update.
630 (init_cutu_and_read_dies): Use proper abbrev section.
631 (init_cutu_and_read_dies_no_follow): Likewise.
632 (set_partial_user): Do nothing if PST==NULL.
633 (read_comp_units_from_section): New function.
634 (create_all_comp_units): Use it.
635 (scan_partial_symbols, partial_die_parent_scope): Update.
636 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
637 (process_imported_unit_die, read_partial_die): Handle .dwz files.
638 (find_partial_die): Add offset_in_dwz argument. Update.
639 (guess_partial_die_structure_name, fixup_partial_die): Update.
640 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
641 DW_FORM_GNU_strp_alt.
642 (read_indirect_string_from_dwz): New function.
643 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
644 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
645 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
646 (follow_die_offset): Add offset_in_dwz argument.
647 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
648 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
649 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
650 Handle new macro forms.
651 (dwarf_decode_macros): Update.
652 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
653 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
654 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
655 (create_debug_types_hash_table): Use correct abbrev section.
656 (get_debug_line_section): New function.
657 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
658 (process_full_comp_unit): Pass 'required' argument to
659 end_symtab_get_static_block.
660 * buildsym.h (end_symtab_get_static_block): Update.
661 * buildsym.c (end_symtab_get_static_block): Add 'required'
663 (end_symtab, end_expandable_symtab): Update.
665 2012-07-18 Tom Tromey <tromey@redhat.com>
667 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
669 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
670 (zlib_decompress_section): Remove.
671 (dwarf2_read_section): Use gdb_bfd_map_section.
672 (munmap_section_buffer): Remove.
673 (free_dwo_file, dwarf2_per_objfile_free): Don't use
674 munmap_section_buffer.
675 * gdb_bfd.c: Include zlib.h, sys/mman.h.
676 (struct gdb_bfd_section_data): New.
677 (free_one_bfd_section): New function.
678 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
679 (get_section_descriptor, zlib_decompress_section)
680 (gdb_bfd_map_section): New functions.
681 * gdb_bfd.h (gdb_bfd_map_section): Declare.
683 2012-07-18 Tom Tromey <tromey@redhat.com>
685 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
687 2012-07-18 Tom Tromey <tromey@redhat.com>
689 * gdb_bfd.c (struct gdb_bfd_data): New.
690 (gdb_bfd_cache): New global.
691 (struct gdb_bfd_cache_search): New.
692 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
693 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
694 * gdb_bfd.h (gdb_bfd_open): Declare.
696 2012-07-18 Tom Tromey <tromey@redhat.com>
698 * utils.c (make_cleanup_bfd_unref): Rename from
699 make_cleanup_bfd_close.
700 * defs.h (make_cleanup_bfd_unref): Rename from
701 make_cleanup_bfd_close.
702 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
703 (bfd_openw_with_cleanup): Update.
704 * corelow.c (core_open): Update.
705 * dsrec.c (load_srec): Update.
706 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
707 * remote-m32r-sdi.c (m32r_load): Update.
708 * remote-mips.c (mips_load_srec): Update.
709 (pmon_load_fast): Update.
710 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
712 (darwin_bfd_open): Update.
713 * solib.c (solib_bfd_fopen): Update.
714 * symfile-mem.c (symbol_file_add_from_memory): Update.
715 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
716 (symfile_bfd_open): Update.
717 (generic_load): Update.
719 2012-07-18 Tom Tromey <tromey@redhat.com>
721 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
722 (pmon_load_fast): Likewise.
723 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
724 (m32r_upload_command): Likewise.
725 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
726 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
727 Use make_cleanup_bfd_close.
729 2012-07-18 Tom Tromey <tromey@redhat.com>
731 * symfile.c (symfile_bfd_open): Don't copy name. Call
732 gdb_bfd_stash_filename.
733 (load_command): Open the new BFD before freeing the old.
734 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
735 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
736 Call gdb_bfd_stash_filename.
737 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
738 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
739 gdb_bfd_stash_filename.
740 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
742 * rs6000-nat.c (add_vmap): Don't copy filename. Call
743 gdb_bfd_stash_filename.
744 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
745 * machoread.c (macho_add_oso_symfile): Call
746 gdb_bfd_stash_filename.
747 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
748 gdb_bfd_stash_filename.
749 (macho_check_dsym): Don't copy filename. Call
750 gdb_bfd_stash_filename.
751 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
752 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
753 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
754 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
755 * exec.c (exec_close): Don't free the BFD's filename.
756 (exec_file_attach): Don't copy the filename. Call
757 gdb_bfd_stash_filename.
758 * corelow.c (core_close): Don't free the BFD's filename.
759 (core_open): Call gdb_bfd_stash_filename.
760 * corefile.c (reopen_exec_file): Remove #if 0 code.
761 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
763 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
765 2012-07-18 Tom Tromey <tromey@redhat.com>
767 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
769 (free_dwo_file): Use gdb_bfd_unref.
770 * cli/cli-dump.c: Include gdb_bfd.h.
771 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
772 (bfd_openr_with_cleanup): Likewise.
773 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
775 * utils.c: Include gdb_bfd.h.
776 (do_bfd_close_cleanup): Use gdb_bfd_unref.
777 * symfile.c: Include gdb_bfd.h.
778 (separate_debug_file_exists): Use gdb_bfd_unref.
779 (bfd_open_maybe_remote): Use gdb_bfd_ref.
780 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
781 (generic_load): Use gdb_bfd_ref.
782 (reread_symbols): Use gdb_bfd_unref.
783 * symfile-mem.c: Include gdb_bfd.h.
784 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
785 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
786 * solib.c: Include gdb_bfd.h.
787 (solib_bfd_fopen): Use gdb_bfd_ref.
788 (solib_bfd_open): Use gdb_bfd_unref.
789 (free_so_symbols): Use gdb_bfd_unref.
790 (reload_shared_libraries_1): Use gdb_bfd_unref.
791 * solib-spu.c: Include gdb_bfd.h.
792 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
793 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
795 * solib-frv.c: Include gdb_bfd.h.
796 (enable_break2): Use gdb_bfd_unref.
797 * solib-dsbt.c: Include gdb_bfd.h.
798 (enable_break2): Use gdb_bfd_unref.
799 * solib-darwin.c: Include gdb_bfd.h.
800 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
802 (darwin_bfd_open): Use gdb_bfd_unref.
803 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
804 * remote-mips.c: Include gdb_bfd.h.
805 (mips_load_srec): Use gdb_bfd_ref.
806 (pmon_load_fast): Use gdb_bfd_ref.
807 * remote-m32r-sdi.c: Include gdb_bfd.h.
808 (m32r_load): Use gdb_bfd_ref.
809 * record.c: Include gdb_bfd.h.
810 (record_save_cleanups): Use gdb_bfd_unref.
811 (cmd_record_save): Use gdb_bfd_unref.
812 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
814 * objfiles.h (gdb_bfd_close_or_warn): Remove.
815 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
816 * objfiles.c: Include gdb_bfd.h.
817 (free_objfile): Use gdb_bfd_unref.
818 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
820 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
821 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
822 (macho_check_dsym): Likewise.
823 * m32r-rom.c: Include gdb_bfd.h.
824 (m32r_load): Use gdb_bfd_ref.
825 (m32r_upload_command): Use gdb_bfd_ref.
826 * jit.c: Include gdb_bfd.h.
827 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
828 * gdb_bfd.h: New file.
829 * gdb_bfd.c: New file.
830 * gcore.c: Include gdb_bfd.h.
831 (create_gcore_bfd): Use gdb_bfd_ref.
832 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
833 (gcore_command): Use gdb_bfd_unref.
834 * exec.c: Include gdb_bfd.h.
835 (exec_close): Use gdb_bfd_unref.
836 (exec_close_1): Use gdb_bfd_unref.
837 (exec_file_attach): Use gdb_bfd_ref.
838 * elfread.c: Include gdb_bfd.h.
839 (build_id_verify): Use gdb_bfd_unref.
840 * dsrec.c: Include gdb_bfd.h.
841 (load_srec): Use gdb_bfd_ref.
842 * corelow.c: Include gdb_bfd.h.
843 (core_close): Use gdb_bfd_unref.
844 (core_open): Use gdb_bfd_ref.
845 * bfd-target.c: Include gdb_bfd.h.
846 (target_bfd_xclose): Use gdb_bfd_unref.
847 (target_bfd_reopen): Use gdb_bfd_ref.
848 * Makefile.in (SFILES): Add gdb_bfd.c.
849 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
850 (COMMON_OBS): Add gdb_bfd.o.
852 2012-07-18 Keith Seitz <keiths@redhat.com>
854 * breakpoint.c (find_condition_and_thread): Initialize
856 (create_breakpiont): find_condition_and_thread will now
857 initialize COND_STRING, THREAD, and REST (and TASK).
858 (addr_string_to_sals): Likewise.
860 2012-07-18 Pedro Alves <palves@redhat.com>
862 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
863 Pull the single step breakpoints out of the target.
865 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
867 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
868 * stap-probe.c (compile_probe_arg): Likewise.
870 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
872 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
873 (elf_compile_to_ax): Likewise.
874 * infrun.c (insert_exception_resume_from_probe): Likewise.
875 (check_exception_resume): Remove `objfile' variable.
876 * probe.c (find_probe_by_pc): Remove `objfile' argument.
877 (struct probe_and_objfile, probe_and_objfile_s): Delete.
878 (collect_probes): Adjust return value to `VEC (probe_p) *'.
879 (compare_entries): Rename to...
880 (compare_probes): ...this. Adjust function to work with
881 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
883 (gen_ui_out_table_header_info): Adjust `probes' argument to be
885 (print_ui_out_info): Adjust argument to be `struct probe *'.
886 (info_probes_for_ops): Adjust internal computations to use
888 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
889 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
890 gen_info_probes_table_values>: Remove `objfile' argument.
891 (struct probe) <objfile>: New field.
892 (find_probe_by_pc): Remove `objfile' argument.
893 * stap-probe.c (stap_parse_probe_arguments): Likewise.
894 (stap_get_probe_argument_count): Likewise.
895 (stap_get_arg): Likewise.
896 (stap_evaluate_probe_argument): Likewise.
897 (stap_compile_to_ax): Likewise.
898 (compile_probe_arg): Refactor not to pass `objfile' anymore.
899 (handle_stap_probe): Fill `objfile' field from `struct probe'.
900 (stap_gen_info_probes_table_header): Remove `objfile' argument.
901 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
902 sym_compile_to_ax>: Likewise.
904 2012-07-18 Terry Guo <terry.guo@arm.com>
907 * defs.h (GDB_MI_MSG_WIDTH): New.
908 * ser_base (ser_base_read_error_fd): New function.
909 (do_ser_base_readchar): Poll error file descriptor as well as
911 (generic_readchar): Refactor error handling.
913 2012-07-18 Joel Brobecker <brobecker@adacore.com>
915 * NEWS: Create a new section for the next release branch.
916 Rename the section of the current branch, now that it has
919 2012-07-18 Joel Brobecker <brobecker@adacore.com>
921 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
922 * version.in: Bump version to 7.5.50.20120718-cvs.
924 2012-07-17 Keith Seitz <keiths@redhat.com>
926 * linespec.c (linespec_parse_line_offset): Make parameter
929 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
932 * f-valprint.c (info_common_command): New variable frame_id.
933 Reinitialize FI form FRAME_ID after each print_variable_and_value.
934 * printcmd.c (print_variable_and_value): Extend function comment.
935 Add comment for invalidated FRAME.
936 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
937 FI form FRAME_ID after each print_frame_local_vars.
938 (struct print_variable_and_value_data): Change frame to frame_id.
939 (do_print_variable_and_value): New variable frame, initialize it from
940 p->frame_id. Add comment for invalidated FRAME.
941 (print_frame_local_vars, print_frame_arg_vars): New function comment.
942 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
943 for invalidated FRAME.
945 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
946 Pedro Alves <palves@redhat.com>
948 * linux-nat.c (linux_nat_detach): Don't unregister from the event
951 2012-07-16 Tom Tromey <tromey@redhat.com>
953 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
955 2012-07-15 Doug Evans <dje@google.com>
957 * dwarf2read.c (stmt_list_hash): New struct.
958 (type_unit_group): Embed "per_cu" member, remove pointer.
959 New union member "t", move member "tus" into it, all uses updated.
960 New member "hash", replaces member "line_offset, all uses updated.
961 (quick_file_names): Replace member "offset" with "hash", all uses
963 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
964 (hash_file_name_entry, eq_file_name_entry): Call them.
965 (hash_type_unit_group, eq_type_unit_group): Ditto.
966 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
967 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
968 (dw2_get_file_names): Update.
969 (create_type_unit_group): Replace "per_cu" arg with "cu".
970 All callers updated. Fix "quick" (.gdb_index) handling.
971 (get_type_unit_group): Replace "per_cu" arg with "cu".
973 (build_type_unit_groups): Don't reset tu_stats.
975 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
976 "tab_cur_size". Change member "tab" to be a htab_t.
977 (create_filename_seen_cache): Update.
978 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
979 (filename_seen): Update.
981 2012-07-13 Doug Evans <dje@google.com>
983 * symtab.c (filename_seen): Update comment.
985 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
986 Doug Evans <dje@google.com>
988 * buildsym.c (end_symtab_1): Split it to ...
989 (end_symtab_get_static_block): ... this ...
990 (end_symtab_from_static_block): ... and this function.
991 (end_symtab, end_expandable_symtab): Call them.
992 * buildsym.h (end_symtab_get_static_block)
993 (end_symtab_from_static_block): New declarations.
994 * dwarf2read.c (process_full_comp_unit): New variable static_block.
995 Set its valid CU ranges.
997 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
999 * dwarf2loc.c (disassemble_dwarf_expression): Handle
1000 DW_OP_GNU_parameter_ref.
1002 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1004 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
1005 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
1007 2012-07-13 Doug Evans <dje@google.com>
1009 * symtab.c (output_source_filename): Delete unnecessary forward decl.
1010 (filename_seen_cache): New struct.
1011 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
1012 (create_filename_seen_cache): New function.
1013 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
1014 (filename_seen): Delete arg "first". New arg "cache". All callers
1016 (output_source_filename_data): New struct.
1017 (output_source_filename): Delete arg "first". New arg "data".
1018 All callers updated.
1019 (sources_info): Delete local "first". New locals "data", "cleanups".
1020 Rewrite to use filename_seen_cache.
1021 (add_partial_filename_data): Delete member "first". New member
1022 "filename_seen_cache". All uses updated.
1023 (make_source_files_completion_list): Rewrite to use
1024 filename_seen_cache.
1026 2012-07-12 Doug Evans <dje@google.com>
1028 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
1030 2012-07-10 Doug Evans <dje@google.com>
1033 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
1034 all_type_unit_groups, type_unit_groups, tu_stats.
1035 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
1036 All uses updated. Add type_unit_group to union "s".
1037 (type_unit_group): New struct.
1038 (IS_TYPE_UNIT_GROUP): New macro.
1039 (abbrev_table): Delete unused member "section".
1040 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
1041 (dw2_get_cu): Assert not used with type_unit_group.
1042 (dw2_get_primary_cu): New function.
1043 (dw2_build_type_unit_groups_reader): New function.
1044 (dw2_build_type_unit_groups): New function.
1045 (dw2_get_file_names): Assert not called on type units.
1046 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
1047 Redo loop to iterate over type unit groups instead of type units.
1048 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
1049 (read_abbrev_offset): New function.
1050 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
1052 (create_partial_symtab): New function.
1053 (process_psymtab_comp_unit_reader): Assert not used with type units.
1054 Call create_partial_symtab.
1055 (process_psymtab_type_unit): Delete.
1056 (hash_type_unit_group, eq_type_unit_group): New functions.
1057 (allocate_type_unit_groups_table): New function.
1058 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
1059 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
1060 (create_type_unit_group, get_type_unit_group): New functions.
1061 (tu_abbrev_offset): New struct.
1062 (sort_tu_by_abbrev_offset): New function.
1063 (add_type_unit_group_to_table): New function.
1064 (build_type_unit_groups): New function.
1065 (build_type_psymtabs_reader): New function.
1066 (build_type_psymtab_dependencies): New function.
1067 (build_type_psymtabs): Rewrite.
1068 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
1069 is seen in a type unit.
1070 (process_queue): Move symtab expansion debugging printfs here.
1071 Call process_full_type_unit for type units.
1072 (compute_symtab_includes): Assert not called for type units.
1073 (process_cu_includes): Don't call compute_symtab_includes for
1075 (process_full_type_unit): New function.
1076 (process_imported_unit_die): Flag an error if called for type units.
1077 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
1078 updated. Assert not called for type units.
1079 (read_file_scope): Call dwarf2_start_symtab.
1080 (setup_type_unit_groups): New function.
1081 (read_type_unit_scope): Rewrite.
1082 (abbrev_table_read_table): Initialize abbrev_table->offset.
1083 (abbrev_table_free_cleanup): New function.
1084 (dwarf2_start_symtab): New function.
1085 (load_full_type_unit): Assert not called for type unit groups.
1086 * buildsym.c (finish_block_internal): New arg "expandable".
1087 All callers updated.
1088 (start_symtab): Move most contents to ...
1089 (restart_symtab): ... here. New function.
1090 (reset_symtab_globals): New function.
1091 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
1092 Call reset_symtab_globals.
1093 (end_symtab, end_expandable_symtab): New functions.
1094 (set_missing_symtab, augment_type_symtab): New functions.
1095 * buildsym.h (end_expandable_symtab): Declare.
1096 (augment_type_symtab, restart_symtab): Declare.
1097 * psympriv.h (struct partial_symtab): New member "anonymous".
1098 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
1100 (read_psymtabs_with_filename): Ditto.
1101 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
1102 (expand_symtabs_matching_via_partial): Ditto.
1103 (dump_psymtab): Update.
1104 * dictionary.c (dict_add_pending): New function.
1105 * dictionary.h (dict_add_pending): Declare.
1107 2012-07-09 Doug Evans <dje@google.com>
1109 * buildsym.c (start_subfile): Remove unnecessary check for
1112 * psymtab.c (allocate_psymtab): Use host_address_to_string.
1114 * dwarf2read.c (load_full_type_unit): Simplify.
1116 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
1117 to struct signatured_type **. All uses updated.
1119 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
1120 All callers updated.
1122 2012-07-09 Tom Tromey <tromey@redhat.com>
1124 * c-exp.y (check_parameter_typelist): New function.
1125 (parameter_typelist): Call it.
1126 * eval.c (make_params): Handle '(void)' case.
1127 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1130 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1132 * common/linux-ptrace.c: Include gdb_assert.h.
1133 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
1134 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
1136 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
1138 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
1139 * linux-nat.c (linux_child_post_attach)
1140 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
1142 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1144 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
1145 nptl <2.7 bug workaround for core files.
1147 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1149 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
1151 (save_siginfo): Remove.
1152 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
1154 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
1155 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
1156 * linux-nat.h (struct lwp_info): Remove field siginfo.
1158 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1160 Code cleanup for the next patch.
1161 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
1162 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1164 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1165 (ia64_linux_stopped_data_address):
1166 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
1168 * linux-nat.h (linux_nat_get_siginfo): Likewise.
1169 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
1170 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1173 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1176 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
1177 Increase buffer sizes to 2x we need, not just 2x of the previous size.
1179 2012-07-06 Tom Tromey <tromey@redhat.com>
1181 * c-exp.y (DOTDOTDOT): New token.
1182 (func_mod, exp): Use parameter_typelist.
1183 (parameter_typelist): New production.
1184 (tokentab3): Add "..." token.
1185 * eval.c (make_params): Handle varargs.
1186 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1189 2012-07-06 Tom Tromey <tromey@redhat.com>
1192 * c-exp.y (%union) <tvec>: Change type.
1193 (func_mod): Now uses <tvec> type.
1194 (exp): Update for tvec change.
1195 (direct_abs_decl): Push the typelist.
1196 (func_mod): Return a typelist.
1197 (nonempty_typelist): Update for tvec change.
1198 * gdbtypes.c (lookup_function_type_with_arguments): New function.
1199 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
1200 * parse.c (pop_type_list): New function.
1201 (push_typelist): New function.
1202 (follow_types): Handle tp_function_with_arguments.
1203 * parser-defs.h (type_ptr): New typedef. Define a VEC.
1204 (enum type_pieces) <tp_function_with_arguments>: New constant.
1205 (union type_stack_elt) <typelist_val>: New field.
1206 (push_typelist): Declare.
1208 2012-07-06 Tom Tromey <tromey@redhat.com>
1210 * c-exp.y (%union) <type_stack>: New field.
1211 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
1212 (ptr_operator_ts): New production.
1214 * parse.c (type_stack_reserve): New function.
1215 (check_type_stack_depth): Use it.
1216 (pop_type_stack, append_type_stack, push_type_stack)
1217 (get_type_stack, type_stack_cleanup): New functions.
1218 (follow_types): Handle tp_type_stack.
1219 (_initialize_parse): Simplify initialization.
1220 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
1222 (union type_stack_elt) <stack_val>: New field.
1223 (get_type_stack, append_type_stack, push_type_stack)
1224 (type_stack_cleanup): Declare.
1226 2012-07-06 Tom Tromey <tromey@redhat.com>
1228 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
1230 (struct type_stack): New.
1231 * parse.c (type_stack, type_stack_size, type_stack_depth):
1233 (type_stack): New global.
1234 (parse_exp_in_context, check_type_stack_depth)
1235 (insert_into_type_stack, insert_type, push_type, push_type_int)
1236 (insert_type_address_space, pop_type, pop_type_int)
1237 (_initialize_parse): Update.
1239 2012-07-06 Tom Tromey <tromey@redhat.com>
1241 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
1244 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1246 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
1248 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1249 Jan Kratochvil <jan.kratochvil@redhat.com>
1251 * cp-valprint.c (cp_print_value): Replace potentially unsafe
1252 alloca with xmalloc/xfree.
1254 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1256 * MAINTAINERS (Write After Approval): Add myself to the list.
1258 2012-07-05 Doug Evans <dje@google.com>
1260 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
1262 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1264 * ax-gdb.c (cli/cli-utils.h): New include.
1265 (linespec.h): Ditto.
1266 (agent_eval_command_one): New function.
1267 (agent_command_1): Ditto.
1268 (agent_command): Call function agent_command_1.
1269 (agent_eval_command): Ditto.
1270 (_initialize_ax_gdb): Change help for "maint agent"
1271 and "maint agent-eval".
1273 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
1275 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
1276 * cli/cli-utils.c (check_for_argument): New function.
1277 * cli/cli-utils.h (check_for_argument): Ditto.
1279 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1281 * NEWS: Mention x32 ABI support.
1283 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1285 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1286 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1288 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1289 and pc_regnum_from_eax to -1. Update SP regnum from
1290 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1293 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1296 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1298 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1299 * dwarf2expr.h: Include gdbtypes.h.
1300 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1301 these forward declarations.
1302 (cu_offset, sect_offset): Move these ...
1303 * gdbtypes.h: Remove include dwarf2expr.h.
1304 (cu_offset, sect_offset): ... here.
1306 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1308 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1309 (amd64_linux_sigtramp_code): This.
1310 (amd64_x32_linux_sigtramp_code): New.
1311 (LINUX_SIGTRAMP_LEN): Updated.
1312 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1314 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1316 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1318 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1320 * config.in: Regenerate.
1321 * configure: Regenerate.
1322 * configure.ac: Remove check for gnu/libc-version.h.
1323 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1325 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1326 variables libc_version, libc_major and libc_minor. Replace sscanf by
1327 inferior_has_bug. Extend the comment.
1329 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1331 * linux-thread-db.c (inferior_has_bug): New function.
1332 (thread_db_find_new_threads_silently): Return boolean as checked by
1333 inferior_has_bug, describe it in the comments.
1334 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1335 earlier. Abort the initialization if it returned non-zero.
1336 (thread_db_new_objfile): Exclude debug files.
1337 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1340 2012-07-02 Doug Evans <dje@google.com>
1342 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1343 related to queue management.
1345 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1346 instead of "debug dwarf2-die" in debugging printfs.
1347 (create_debug_info_hash_table_reader): Ditto.
1348 (create_debug_info_hash_table): Ditto.
1349 (init_dwo_file): Ditto.
1350 (init_cutu_and_read_dies): Add debugging printf.
1351 (init_cutu_and_read_dies_no_follow): Ditto.
1352 (process_psymtab_comp_unit_reader): Ditto.
1354 2012-07-02 Stan Shebs <stan@codesourcery.com>
1356 Add target-side support for dynamic printf.
1357 * NEWS: Mention the additional style.
1358 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1359 (struct bp_location): New field cmd_bytecode.
1360 * breakpoint.c: Include format.h.
1361 (disconnected_dprintf): New global.
1362 (parse_cmd_to_aexpr): New function.
1363 (build_target_command_list): New function.
1364 (insert_bp_location): Call it.
1365 (remove_breakpoints_pid): Skip dprintf breakpoints.
1366 (print_one_breakpoint_location): Ditto.
1367 (dprintf_style_agent): New global.
1368 (dprintf_style_enums): Add dprintf_style_agent.
1369 (update_dprintf_command_list): Add agent case.
1370 (agent_printf_command): New function.
1371 (_initialize_breakpoint): Add new commands.
1372 * common/ax.def (printf): New bytecode.
1373 * ax.h (ax_string): Declare.
1374 * ax-gdb.h (gen_printf): Declare.
1375 * ax-gdb.c: Include cli-utils.h, format.h.
1376 (gen_printf): New function.
1377 (maint_agent_print_command): New function.
1378 (_initialize_ax_gdb): Add maint agent-printf command.
1379 * ax-general.c (ax_string): New function.
1380 (ax_print): Add printf disassembly.
1381 * Makefile.in (SFILES): Add format.c
1382 (COMMON_OBS): Add format.o.
1383 * common/format.h: New file.
1384 * common/format.c: New file.
1385 * printcmd.c: Include format.h.
1386 (ui_printf): Call parse_format_string.
1387 * remote.c (remote_state): New field breakpoint_commands.
1388 (PACKET_BreakpointCommands): New enum.
1389 (remote_breakpoint_commands_feature): New function.
1390 (remote_protocol_features): Add new BreakpointCommands entry.
1391 (remote_can_run_breakpoint_commands): New function.
1392 (remote_add_target_side_commands): New function.
1393 (remote_insert_breakpoint): Call it.
1394 (remote_insert_hw_breakpoint): Ditto.
1395 (_initialize_remote): Add new packet configuration for
1396 target-side breakpoint commands.
1397 * target.h (struct target_ops): New field
1398 to_can_run_breakpoint_commands.
1399 (target_can_run_breakpoint_commands): New macro.
1400 * target.c (update_current_target): Handle
1401 to_can_run_breakpoint_commands.
1403 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1405 Execute -ix and -iex only after system and user gdbinit files.
1406 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1407 processing down after gdbinit files.
1409 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1411 Add fnmatch-gnu module.
1412 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1413 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1414 * gnulib/aclocal.m4: Regenerate.
1415 * gnulib/config.in: Regenerate.
1416 * gnulib/configure: Regenerate.
1417 * gnulib/import/dummy.c: Remove.
1418 * gnulib/import/Makefile.am: Regenerate.
1419 * gnulib/import/Makefile.in: Likewise.
1420 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1421 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1422 * gnulib/import/alloca.c: New file.
1423 * gnulib/import/alloca.in.h: Likewise.
1424 * gnulib/import/config.charset: Likewise.
1425 * gnulib/import/fnmatch.c: Likewise.
1426 * gnulib/import/fnmatch.in.h: Likewise.
1427 * gnulib/import/fnmatch_loop.c: Likewise.
1428 * gnulib/import/localcharset.c: Likewise.
1429 * gnulib/import/localcharset.h: Likewise.
1430 * gnulib/import/m4/alloca.m4: Likewise.
1431 * gnulib/import/m4/codeset.m4: Likewise.
1432 * gnulib/import/m4/configmake.m4: Likewise.
1433 * gnulib/import/m4/fcntl-o.m4: Likewise.
1434 * gnulib/import/m4/fnmatch.m4: Likewise.
1435 * gnulib/import/m4/glibc21.m4: Likewise.
1436 * gnulib/import/m4/localcharset.m4: Likewise.
1437 * gnulib/import/m4/locale-fr.m4: Likewise.
1438 * gnulib/import/m4/locale-ja.m4: Likewise.
1439 * gnulib/import/m4/locale-zh.m4: Likewise.
1440 * gnulib/import/m4/mbrtowc.m4: Likewise.
1441 * gnulib/import/m4/mbsinit.m4: Likewise.
1442 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1443 * gnulib/import/m4/mbstate_t.m4: Likewise.
1444 * gnulib/import/m4/stdbool.m4: Likewise.
1445 * gnulib/import/m4/wchar_h.m4: Likewise.
1446 * gnulib/import/m4/wctype_h.m4: Likewise.
1447 * gnulib/import/m4/wint_t.m4: Likewise.
1448 * gnulib/import/mbrtowc.c: Likewise.
1449 * gnulib/import/mbsinit.c: Likewise.
1450 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1451 * gnulib/import/mbsrtowcs-state.c: Likewise.
1452 * gnulib/import/mbsrtowcs.c: Likewise.
1453 * gnulib/import/ref-add.sin: Likewise.
1454 * gnulib/import/ref-del.sin: Likewise.
1455 * gnulib/import/stdbool.in.h: Likewise.
1456 * gnulib/import/streq.h: Likewise.
1457 * gnulib/import/strnlen1.c: Likewise.
1458 * gnulib/import/strnlen1.h: Likewise.
1459 * gnulib/import/verify.h: Likewise.
1460 * gnulib/import/wchar.in.h: Likewise.
1461 * gnulib/import/wctype.in.h: Likewise.
1463 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1465 Support shell wildcards for 'set auto-load safe-path'.
1466 * auto-load.c: Include fnmatch.h.
1467 (filename_is_in_dir): Rename to ...
1468 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1469 it. Update function comment. Rename dir_len to pattern_len. New
1470 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1471 messages. Use gdb_filename_fnmatch.
1472 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1474 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1475 * defs.h (gdb_filename_fnmatch): New declaration.
1476 * utils.c: Include fnmatch.h.
1477 (gdb_filename_fnmatch): New function.
1479 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1481 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1482 `-probe' and `-probe-stap' options.
1484 2012-07-01 Yao Qi <yao@codesourcery.com>
1486 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1487 always_inserted_off, and always_inserted_enums.
1488 Change always_inserted_mode's type to 'enum auto_boolean'.
1489 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1491 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1492 of add_setshow_enum_cmd.
1493 * infrun.c: Remove can_use_displaced_stepping_auto,
1494 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1495 can_use_displaced_stepping_enum.
1496 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1497 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1498 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1499 add_setshow_enum_cmd.
1501 2012-06-30 Doug Evans <dje@google.com>
1503 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1504 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1505 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1507 2012-06-29 Doug Evans <dje@google.com>
1509 * linespec.c: #include "stack.h".
1510 (decode_line_with_current_source): Moved here from symtab.c and
1511 renamed from decode_line_spec. All callers updated.
1512 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1513 renamed from decode_line_spec_1. All callers updated.
1514 * linespec.h (decode_line_with_current_source): Move declaration here
1515 from symtab.h and renamed from decode_line_spec.
1516 (decode_line_with_last_displayed): Move declaration here from symtab.h
1517 and renamed from decode_line_spec_1.
1518 * macrocmd.c: #include "linespec.h".
1519 * symtab.c: Remove #include "linespec.h".
1521 2012-06-28 Doug Evans <dje@google.com>
1523 * dwarf2read.c (get_cu_length): New function.
1524 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1525 (create_debug_types_hash_table): Ditto.
1526 (init_cutu_and_read_dies): Ditto.
1527 (init_cutu_and_read_dies_no_follow): Ditto.
1529 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1531 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1532 (struct abbrev_table): Define.
1533 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1535 (init_cutu_and_read_dies): Update.
1536 (abbrev_table_alloc_abbrev): New function. Replaces
1537 dwarf_alloc_abbrev. All callers updated.
1538 (abbrev_table_add_abbrev): New function.
1539 (abbrev_table_lookup_abbrev): New function. Replaces
1540 dwarf2_lookup_abbrev. All callers updated.
1541 (abbrev_table_read_table): New function. Contents moved here from
1542 dwarf2_read_abbrevs.
1543 (dwarf2_read_abbrevs): Call it.
1544 (abbrev_table_free): New function.
1545 (dwarf2_free_abbrev_table): Call it.
1547 2012-06-28 Stan Shebs <stan@codesourcery.com>
1549 * osdata.c (info_osdata_command): Filter out "Title" columns
1551 * common/linux-osdata.c (struct osdata_type): Add title field.
1552 (osdata_table): Add titles to each entry.
1553 (linux_command_xfer_osdata): Add a column for title data.
1555 2012-06-28 Stan Shebs <stan@codesourcery.com>
1557 Make logging work for MI.
1559 * interps.h (interp_set_logging_ftype): New typedef.
1560 (struct interp_procs): New field set_logging_proc.
1561 (current_interp_set_logging): Declare.
1562 * interps.c (current_interp_set_logging): New function.
1563 * cli/cli-logging.c: Include interps.h.
1564 (set_logging_redirect): Call current_interp_set_logging.
1565 (pop_output_files): Ditto.
1566 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1567 * mi/mi-console.h (mi_console_set_raw): Declare.
1568 * mi/mi-console.c (mi_console_set_raw): New function.
1569 * mi/mi-interp.c (saved_raw_stdout): New global.
1570 (mi_set_logging): New function.
1571 (_initialize_mi_interp): Add it to interp procs.
1573 2012-06-28 Doug Evans <dje@google.com>
1575 * symtab.c (lookup_symbol_aux_objfile): Use
1576 ALL_OBJFILE_PRIMARY_SYMTABS.
1578 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1580 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1582 * common/buffer.c: Include inttypes.h and stdint.h.
1583 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1585 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1586 Pedro Alves <palves@redhat.com>
1588 * gdbthread.h (ALL_THREADS): New macro.
1589 (thread_list): Declare.
1590 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1591 going, but instead fall through to the stepping handling.
1592 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1593 the passed in signal. Adjust debug output.
1594 (resume_callback): Rename to ...
1595 (linux_nat_resume_callback): ... this. Pass the thread's last
1596 stop signal, if in "pass" state.
1597 (linux_nat_resume): Adjust to rename.
1598 (stop_wait_callback): New assertion. Don't respawn signals;
1599 instead let the LWP remain with SIGNALLED set.
1600 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1601 * remote.c (append_pending_thread_resumptions): New.
1602 (remote_vcont_resume): Call it.
1603 * target.h (target_resume): Extend comment.
1605 2012-06-28 Iain Sandoe <iain@codesourcery.com>
1607 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1609 2012-06-27 Doug Evans <dje@google.com>
1611 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1612 Delete have_addr_base, unused. All uses updated.
1613 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1614 (dwarf2_get_pc_bounds): Add ranges_base.
1615 (dwarf2_record_block_ranges): Ditto.
1617 2012-06-27 Tom Tromey <tromey@redhat.com>
1620 * varobj.c (varobj_create): Update.
1621 (varobj_set_value): Update.
1622 * tracepoint.c (validate_actionline): Update.
1623 (encode_actions_1): Update.
1624 * parse.c (parse_exp_1): Add 'pc' argument.
1625 (parse_exp_in_context): Add 'pc' argument. Change how
1626 expression_context_pc is set.
1627 (parse_expression): Update.
1628 (parse_field_expression): Update.
1629 * expression.h (parse_exp_1): Update.
1630 * eval.c (parse_to_comma_and_eval): Update.
1631 * breakpoint.c (set_breakpoint_condition): Update.
1632 (update_watchpoint): Update.
1633 (init_breakpoint_sal): Update
1634 (find_condition_and_thread): Update.
1635 (watch_command_1): Update.
1636 (update_breakpoint_locations): Update.
1637 * ada-lang.c (ada_read_renaming_var_value): Update.
1638 (create_excep_cond_exprs): Update.
1640 2012-06-27 Doug Evans <dje@google.com>
1642 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1645 2012-06-26 Doug Evans <dje@google.com>
1647 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1649 (error_check_comp_unit_head): New arg abbrev_section. All callers
1651 (read_and_check_comp_unit_head): Ditto.
1652 (read_and_check_type_unit_head): Ditto.
1654 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1656 New attribute 'last' for gdb.Symtab_and_line.
1657 * NEWS (Python Scripting): Add entry about the new attribute.
1658 * python/py-symtab.c (salpy_get_last): New function which
1659 implements the get method for the 'last' attribute of
1660 gdb.Symtab_and_line.
1661 (sal_object_getset): Add entry for the 'last' attribute.
1663 2012-06-26 Doug Evans <dje@google.com>
1665 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1666 (dwo_sections): Add macinfo, macro.
1667 (dwarf2_locate_dwo_sections): Watch for macro sections.
1668 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1669 All callers updated. Handle DWO files.
1671 * NEWS: Mention new options "set debug dwarf2-read" and
1672 "set debug symtab-create".
1673 * dwarf2read.c (dwarf2_read_debug): New static global.
1674 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1675 (process_queue): Ditto.
1676 (process_full_comp_unit): Ditto.
1677 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1678 * elfread.c (elf_symfile_read): Add debugging printf.
1679 * minsyms.c (install_minimal_symbols): Ditto.
1680 * psymtab.c (allocate_psymtab): Ditto.
1681 * symfile.c (allocate_symtab): Ditto.
1682 * symtab.c (symtab_create_debug): New global.
1683 (_initialize_symtab): Add new option "set debug symtab-create".
1684 * symtab.h (symtab_create_debug): Declare.
1686 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1687 (lookup_dwo_type_unit): Ditto.
1689 2012-06-26 Roland McGrath <roland@hack.frob.com>
1690 H.J. Lu <hongjiu.lu@intel.com>
1692 * amd64-linux-nat.c: Include <sys/user.h>.
1693 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1694 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1695 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1697 * configure.ac: Check if the fs_base and gs_base members of
1698 `struct user_regs_struct' exist.
1699 * config.in: Regenerated.
1700 * configure: Likewise.
1702 2012-06-25 Michael Eager <eager@eagercon.com>
1705 * python/python.c (gdbpy_write): Check for interrupted output.
1707 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1709 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1710 register as a stack alignment in ARM mode.
1712 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1714 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1715 * gnulib/config.in: Regenerate.
1716 * gnulib/configure: Likewise.
1717 * gnulib/import/m4/extensions.m4: Update it.
1718 * gnulib/import/m4/gnulib-common.m4: Likewise.
1719 * gnulib/import/m4/memmem.m4: Likewise.
1720 * gnulib/import/m4/mmap-anon.m4: Likewise.
1721 * gnulib/import/m4/multiarch.m4: Likewise.
1722 * gnulib/import/stdint.in.h: Likewise.
1724 2012-06-24 Yao Qi <yao@codesourcery.com>
1726 * corefile.c (write_memory_with_notification): New.
1727 * gdbcore.h: Declare write_memory_with_notification.
1728 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1729 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1730 * valops.c (value_assign): Likewise.
1731 * python/py-inferior.c (infpy_write_memory): Call
1732 'write_memory_with_notification'.
1734 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1736 * cc-with-index.sh: Use also -ex "set auto-load no".
1738 2012-06-23 Doug Evans <dje@google.com>
1741 * NEWS: Document additions to .gdb_index.
1742 * dwarf2read.c: #include "gdb/gdb-index.h".
1743 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1744 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1745 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1746 (dwarf2_read_index): Recognize version 7.
1747 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1748 block_kind, domain): All callers updated.
1749 (dw2_find_symbol_file): Handle new index CU values.
1750 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1751 (add_index_entry): New args is_static, kind. All callers updated.
1752 (offset_type_compare, uniquify_cu_indices): New functions
1753 (symbol_kind): New function.
1754 (write_psymtabs_to_index): Remove duplicate CU values.
1755 (write_psymtabs_to_index): Write .gdb_index version 7.
1757 2012-06-22 Joel Brobecker <brobecker@adacore.com>
1759 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1760 * configure: Regenerate.
1762 2012-06-20 Yao Qi <yao@codesourcery.com>
1764 * python/py-inferior.c: Update comments of infpy_read_memory
1765 and infpy_write_memory.
1767 2012-06-19 Tom Tromey <tromey@redhat.com>
1770 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1771 (push_type_address_space): Remove.
1772 * parse.c (insert_into_type_stack): New function.
1773 (insert_type): Likewise.
1774 (insert_type_address_space): Rename from push_type_address_space.
1775 Insert tp_space_identifier.
1776 * c-exp.y (ptr_operator): New production.
1777 (abs_decl): Use ptr_operator.
1778 (space_identifier): Call insert_type_address_space.
1779 (ptype): Don't use const_or_volatile_or_space_identifier.
1780 (const_or_volatile_noopt): Call insert_type.
1781 (conversion_type_id, conversion_declarator): New productions.
1782 (operator): Use conversion_type_id.
1784 2012-06-18 Doug Evans <dje@google.com>
1786 * symtab.h (minimal_symbol): New member created_by_gdb.
1787 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1789 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1790 (search_symbols): Call it instead of lookup_symbol.
1791 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1793 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1794 Adjust address for DW_OP_GNU_addr_index.
1795 * dwarf2expr.h (dwarf_expr_context): Update comment.
1796 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1797 all callers updated. Handle TLS vars described with
1798 DW_OP_GNU_const_index.
1799 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1800 and DW_OP_GNU_const_index.
1801 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1803 * block.c (find_block_in_blockvector): Make explicit the fact that we
1804 ignore GLOBAL_BLOCK.
1806 2012-06-18 Tom Tromey <tromey@redhat.com>
1808 * c-exp.y (operator): Remove trailing space after "delete" and
1811 2012-06-18 Mark Kettenis <kettenis@gnu.org>
1812 Jan Kratochvil <jan.kratochvil@redhat.com>
1814 Switch i386 and derived targets to ON_STACK.
1815 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1816 (amd64_dicos_init_abi): Remove its installment.
1817 * dicos-tdep.c (dicos_init_abi): Remove the
1818 set_gdbarch_call_dummy_location call. Update the comment here.
1819 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1820 (i386_dicos_init_abi): Remove its installment.
1821 * i386-tdep.c (i386_push_dummy_code): New function.
1822 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1823 i386_push_dummy_code.
1825 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1827 Remove stale dummy frames.
1828 * breakpoint.c: Include dummy-frame.h.
1829 (longjmp_breakpoint_ops): New variable.
1830 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1831 bp_longjmp_call_dummy.
1832 (bpstat_what, bptype_string, print_one_breakpoint_location)
1833 (init_bp_location): Support bp_longjmp_call_dummy.
1834 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1835 (set_longjmp_breakpoint_for_call_dummy)
1836 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1838 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1839 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1840 FIXME comment and extend the other comment for bp_call_dummy.
1841 (set_longjmp_breakpoint_for_call_dummy)
1842 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1843 * dummy-frame.c: Include gdbthread.h.
1844 (pop_dummy_frame_bpt): New function.
1845 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1846 (dummy_frame_discard): New function.
1847 (cleanup_dummy_frames): Update the comment about longjmps.
1848 * dummy-frame.h (dummy_frame_discard): New declaration.
1849 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1850 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1851 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1852 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1853 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1854 keep_going if IS_LONGJMP and there is no other reason to stop.
1856 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1858 * remote-sim.c (sim_command_completer): Initialize
1861 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1863 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1864 * dwarf2loc.c (call_site_parameter_matches): Support
1865 CALL_SITE_PARAMETER_PARAM_OFFSET.
1866 (needs_dwarf_reg_entry_value): Push stub value.
1867 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1868 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1869 * gdbtypes.h (enum call_site_parameter_kind): New item
1870 CALL_SITE_PARAMETER_PARAM_OFFSET.
1871 (struct call_site.parameter.u): New field param_offset.
1873 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1875 Code cleanup: Generalize call_site.parameter key.
1876 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1877 variable dwarf_reg. New variable kind_u. Update parameters to
1878 push_dwarf_reg_entry_value.
1879 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1880 * dwarf2expr.h (enum call_site_parameter_kind)
1881 (union call_site_parameter_u): Forward declarations.
1882 (struct dwarf_expr_context_funcs): Update parameters and their
1883 description for push_dwarf_reg_entry_value.
1884 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1885 * dwarf2loc.c (call_site_parameter_matches): New function.
1886 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1887 description. Use call_site_parameter_matches.
1888 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1889 Update parameters and their description.
1890 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1891 New variable kind_u. Adjust the caller for updated parameters.
1892 (needs_dwarf_reg_entry_value): Update parameters.
1893 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1894 instead of attr. Update for the changed fields of struct
1895 call_site_parameter.
1896 * gdbtypes.h: Include dwarf2expr.h.
1897 (enum call_site_parameter_kind): New.
1898 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1899 fb_offset into new union u.
1901 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1903 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1904 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1907 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1909 * amd64-linux-nat.c (compat_x32_clock_t): New.
1910 (compat_x32_siginfo_t): Likewise.
1911 (compat_x32_siginfo_from_siginfo): Likewise.
1912 (siginfo_from_compat_x32_siginfo): Likewise.
1913 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1914 and siginfo_from_compat_x32_siginfo for x32.
1916 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
1918 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1920 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1922 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1923 instead of gdbarch_ptr_bit.
1924 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1925 (amd64_supply_native_gregset): Likewise.
1926 (amd64_collect_native_gregset): Likewise.
1927 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1928 (amd64_supply_xsave): Likewise.
1929 (amd64_collect_fxsave): Likewise.
1930 (amd64_collect_xsave): Likewise.
1932 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1934 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1935 (amd64_linux_read_description): Check DS segment register for
1938 2012-06-15 Tom Tromey <tromey@redhat.com>
1940 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1941 init_cutu_and_read_dies.
1943 2012-06-15 Iain Sandoe <iain@codesourcery.com>
1945 * MAINTAINERS (Write After Approval): Add myself to the list.
1947 2012-06-15 Tom Tromey <tromey@redhat.com>
1949 * valops.c (value_find_oload_method_list): Now static.
1950 * value.h (value_find_oload_method_list): Don't declare.
1952 2012-06-15 Tom Tromey <tromey@redhat.com>
1954 * valops.c (find_overload_match): Use value_ind.
1956 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1958 * infrun.c (handle_inferior_event): Correct indentation.
1960 2012-06-14 Doug Evans <dje@google.com>
1962 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1963 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1965 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1966 updated. Handle DEBUG_LOC_START_LENGTH.
1967 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1968 (loclist_describe_location): Ditto.
1970 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1973 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1974 after hiding inline functions.
1976 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1978 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1979 _initialize_inf_ttrace.
1981 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1983 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1984 _initialize_hppa_hpux_nat.
1986 2012-06-13 Joel Brobecker <brobecker@adacore.com>
1988 * remote-sim.c (sim_command_completer): Change type of return
1989 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1991 2012-06-13 Mark Kettenis <kettenis@gnu.org>
1992 Jan Kratochvil <jan.kratochvil@redhat.com>
1995 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1996 stack on a 16-byte boundary.
1998 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
2000 * jit.c (finalize_symtab): Set function's return type to 'void' by
2003 2012-06-13 Mark Kettenis <kettenis@gnu.org>
2004 H.J. Lu <hongjiu.lu@intel.com>
2006 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
2007 Move bits common to both the classic LP64 and the new x32 ILP32
2009 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
2010 (amd64_x32_linux_init_abi): New function.
2011 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
2014 * i386-tdep.h (i386_pseudo_register_name): New prototype.
2015 * i386-tdep.c (i386_pseudo_register_name): Make public.
2016 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
2017 * amd64-tdep.c (amd64_dword_names): Add "eip".
2018 (amd64_x32_pseudo_register_type): New function
2019 (amd64_x32_init_abi): New function.
2021 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2024 * inferior.h (struct inferior_suspend_state): Comment out.
2025 (struct inferior): Comment out the field suspend.
2026 * infrun.c (struct infcall_suspend_state): Comment out the field
2028 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
2031 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2033 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
2034 * c-exp.y (classify_inner_name): Remove caller assumptions in the
2035 function comment. Return ERROR for unresolved cases. Implement
2036 returning proper NAME.
2037 (yylex): Accept also NAME from classify_inner_name.
2038 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
2039 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
2041 * cp-support.h (cp_lookup_nested_type): Update its declaration.
2043 2012-06-13 Tom Tromey <tromey@redhat.com>
2045 * breakpoint.c (condition_completer): New function.
2046 (_initialize_breakpoint): Use it.
2047 * value.c (complete_internalvar): New function.
2048 * value.h (complete_internalvar): Declare.
2050 2012-06-13 Tom Tromey <tromey@redhat.com>
2052 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
2053 * breakpoint.c (catch_syscall_completer): Return a VEC.
2054 * cli/cli-cmds.c (complete_command): Update.
2055 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
2056 (complete_on_enum): Likewise.
2057 * command.h: Include gdb_vecs.h.
2058 (completer_ftype): Change return type.
2059 (complete_on_cmdlist, complete_on_enum): Likewise.
2060 * completer.c (noop_completer, filename_completer)
2061 (location_completer): Return a VEC.
2062 (add_struct_fields): Remove 'nextp' argument. Change 'output'
2064 (expression_completer, complete_line_internal, complete_line)
2065 (command_completer): Return a VEC.
2066 (gdb_completion_word_break_characters, line_completion_function):
2068 * completer.h: Include gdb_vecs.h.
2069 (complete_line, noop_completer, filename_completer)
2070 (expression_completer, location_completer, command_completer):
2072 * f-lang.c (f_word_break_characters): Return a VEC.
2073 * interps.c (interpreter_completer): Return a VEC.
2074 * language.h (struct language_defn)
2075 <la_make_symbol_completion_list>: Return a VEC.
2076 * python/py-cmd.c (cmdpy_completer): Return a VEC.
2077 * symtab.c (free_completion_list): Take a VEC.
2078 (return_val_size, return_val_index): Remove.
2079 (return_val): Now a VEC.
2080 (completion_list_add_name): Update.
2081 (default_make_symbol_completion_list_break_on)
2082 (default_make_symbol_completion_list, make_symbol_completion_list)
2083 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
2085 (add_filename_to_list): Update.
2086 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
2088 (maybe_add_partial_symtab_filename): Update.
2089 (make_source_files_completion_list): Return a VEC.
2090 * symtab.h (default_make_symbol_completion_list_break_on)
2091 (default_make_symbol_completion_list, make_symbol_completion_list)
2092 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
2093 (make_source_files_completion_list): Update.
2095 2012-06-13 Tom Tromey <tromey@redhat.com>
2097 * breakpoint.c (add_catch_command): Use completer_ftype.
2098 * breakpoint.h: Include command.h.
2099 (add_catch_command): Use completer_ftype.
2100 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
2101 * cli/cli-decode.h (struct cmd_list_element) <completer>:
2102 Use completer_ftype.
2103 * command.h (completer_ftype): New typedef.
2104 (set_cmd_completer): Use it.
2105 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
2108 2012-06-13 Pedro Alves <palves@redhat.com>
2110 Partial revert of previous change.
2112 * serial.c (scb_base): New global.
2113 (serial_for_fd): New.
2114 (serial_open, serial_fdopen_ops): Link new serial in open serials
2116 (do_serial_close): Unlink serial from the open serials chain.
2118 2012-06-12 Pedro Alves <palves@redhat.com>
2120 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
2122 (prepare_for_detach): No longer context switch here in non-stop
2124 (fetch_inferior_event): Ditto.
2125 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
2126 to the event thread before removing breakpoints. Switch to the
2127 event thread before inserting breakpoints and resuming.
2128 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
2129 event thread before resuming.
2130 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
2131 Switch to the event thread before removing breakpoints.
2133 2012-06-12 Eli Zaretskii <eliz@gnu.org>
2135 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
2136 special characters correctly for the Windows shells. See
2137 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
2139 [!__MINGW32__]: Remove extra double quote character from special
2142 2012-06-11 Stan Shebs <stan@codesourcery.com>
2144 * ui-out.h: Remove #if 0 declarations.
2145 * ui-out.c: Remove #if 0 functions.
2147 2012-06-11 Pedro Alves <palves@redhat.com>
2149 * ser-base.c (run_async_handler_and_reschedule): New.
2150 (fd_event, push_event): Use it.
2151 * serial.c (serial_open, serial_fdopen_ops): Set the initial
2152 reference count to 1.
2153 (do_serial_close): Set the bufp field to NULL. Use serial_unref
2155 (serial_is_open, serial_ref, serial_unref): New.
2156 * serial.h (serial_open): Adjust comment.
2157 (serial_is_open): Declare.
2158 (serial_close): Adjust comment.
2159 (serial_ref, serial_unref) Declare.
2160 (struct serial): New field 'refcnt'.
2162 2012-06-11 Pedro Alves <palves@redhat.com>
2164 Remove #if 0'd "connect" command, and unnecessary associated
2165 refcounting and serial reuse bits.
2167 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
2168 * serial.c (last_serial_opened): Delete.
2170 (serial_open): Adjust.
2171 (serial_for_fd): Delete.
2172 (serial_fdopen_ops, do_serial_close): Adjust.
2173 (serial_fdopen_ops): Adjust.
2175 2012-06-11 Pedro Alves <palves@redhat.com>
2177 * serial.c (do_serial_close): Remove early return when SCB is
2180 2012-06-11 Tom Tromey <tromey@redhat.com>
2182 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
2184 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2186 Fix regression by the "ambiguous linespec" series.
2187 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
2188 get_last_displayed_symtab and get_last_displayed_line and depending
2191 2012-06-11 Tom Tromey <tromey@redhat.com>
2193 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
2194 (dw2_find_symbol_file): Use it.
2196 2012-06-11 Michael Eager <eager@eagercon.com>
2198 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
2199 * mips-linux-tdep.h (mips_signals): New
2201 2012-06-11 Tom Tromey <tromey@redhat.com>
2203 * infrun.c (handle_inferior_event)
2204 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
2206 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
2207 exception logic in all cases. Update comments.
2208 (insert_longjmp_resume_breakpoint): Set the exception resume
2211 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
2213 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
2215 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
2217 * valarith.c (binop_types_user_defined_p): Fix a typo.
2219 2012-06-08 Yao Qi <yao@codesourcery.com>
2220 Chung-Lin Tang <cltang@codesourcery.com>
2222 * arch-utils.c (default_return_in_first_hidden_param_p): New.
2223 * arch-utils.h: Declare.
2224 * gdbarch.sh: Add return_in_first_hidden_param_p.
2225 * gdbarch.c, gdbarch.h: Regenerated.
2226 * infcall.c (call_function_by_hand): Call
2227 gdbarch_return_in_first_hidden_param_p instead of
2228 language_pass_by_reference.
2230 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
2231 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
2232 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
2233 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
2234 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
2235 `cplus_return_struct_by_reference'.
2236 (tic6x_return_value): Handle language cplusplus.
2237 (tic6x_return_in_first_hidden_param_p): New.
2238 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
2240 2012-06-07 Doug Evans <dje@google.com>
2242 * dwarf2read.c (dwarf2_cu): Add comment.
2244 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2246 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
2248 (mips_eabi_push_dummy_call): Likewise.
2249 (mips_n32n64_push_dummy_call): Likewise.
2250 (mips_o32_push_dummy_call): Likewise.
2251 (mips_o64_push_dummy_call): Likewise.
2253 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2255 * mips-tdep.c (mips_convert_register_p): Correct coding style.
2257 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2259 * mips-tdep.c (mips_pseudo_register_type): Use
2260 mips_float_register_p.
2262 2012-06-06 Pedro Alves <palves@redhat.com>
2264 * infrun.c (handle_inferior_event): Remove calls to
2265 reinit_frame_cache that follow a context_switch call.
2267 2012-06-06 Pedro Alves <palves@redhat.com>
2269 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
2270 context_switch and remove stale comment.
2272 2012-06-06 Pedro Alves <palves@redhat.com>
2274 * infrun.c (struct execution_control_state): Remove
2275 `new_thread_event' field.
2276 (handle_inferior_event): Simplify new threads handling; don't
2277 resume the inferior if we find a new thread.
2279 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
2281 * NEWS: Document the deprecation of SH's 'regs' command.
2282 * inferior.h (all_registers_info): Add function declaration.
2283 * sh-tdep.c (sh_show_regs): Remove variable.
2284 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2285 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2286 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2287 (sh_show_regs_command): Remove functions.
2288 (sh_gdbarch_init): Don't set sh_show_regs.
2289 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2290 'info all-registers'.
2291 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2292 (sh64_show_regs): Remove functions.
2293 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2295 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2297 * configure.ac: Move development=true below AC_INIT.
2298 * configure: Regenerate.
2300 2012-06-05 Stan Shebs <stan@codesourcery.com>
2302 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2305 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2307 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2308 argument as ssize_t.
2309 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2310 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2311 * target.c (target_read_stack, target_write_memory)
2312 (target_write_raw_memory): Likewise.
2313 * target.h (target_read_stack, target_write_memory)
2314 (target_write_raw_memory): Likewise.
2316 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2318 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2319 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2320 * target.c (target_read_memory): Change LEN to ssize_t.
2321 * target.h (target_read_memory): Change LEN to ssize_t.
2323 2012-06-05 Pedro Alves <palves@redhat.com>
2327 * breakpoint.c (until_break_command): Only fetch the selected
2328 frame after decode_line_1.
2330 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2332 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2333 event breakpoint at _start, __start or main if a program
2334 interpreter is not found.
2336 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2338 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2340 * windows-tdep.c: #include "objfiles.h".
2341 (windows_iterate_over_objfiles_in_search_order): New function.
2342 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2343 iterate_over_objfiles_in_search_order gdbarch method to
2344 windows_iterate_over_objfiles_in_search_order.
2345 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2347 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2349 * gdbarch.sh: Add generation of
2350 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2351 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2352 (iterate_over_objfiles_in_search_order): New gdbarch method.
2353 * gdbarch.h, gdbarch.c: Regenerate.
2354 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2356 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2358 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2359 out of lookup_symbol_aux_symtabs.
2360 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2361 call to lookup_symbol_aux_objfile.
2362 (struct global_sym_lookup_data): New type.
2363 (lookup_symbol_global_iterator_cb): New function.
2364 (lookup_symbol_global): Search for symbol using
2365 gdbarch_iterate_over_objfiles_in_search_order and
2366 lookup_symbol_global_iterator_cb.
2367 * findvar.c (struct minsym_lookup_data): New type.
2368 (minsym_lookup_iterator_cb): New function.
2369 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2370 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2371 and minsym_lookup_iterator_cb.
2373 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2375 Revert the following patch:
2376 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2377 try locating the symbol in the symbol's own objfile first, before
2378 extending the search to all objfiles.
2379 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2380 out of lookup_symbol_aux_symtabs.
2381 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2382 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2383 Do not search EXCLUDE_OBJFILE.
2384 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2385 (lookup_symbol_global): Search for matches in the block's objfile
2386 first, before searching all other objfiles.
2388 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2390 * breakpoint.c (find_condition_and_thread): Stop parsing
2391 as soon as the first invalid keyword is found.
2393 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2395 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2397 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2399 * config/djgpp/djcheck.sh: Add copyright header.
2401 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2403 * copyright.py (update_files, main): Fix path to update-copyright
2406 2012-06-05 Joel Brobecker <brobecker@adacore.com>
2408 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2409 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2410 for which a reminder to update by hand is printed.
2412 2012-06-04 Doug Evans <dje@google.com>
2414 * buildsym.c (make_blockvector): Add comment.
2416 2012-06-04 Pedro Alves <palves@redhat.com>
2418 * arch-utils.c (default_gdb_signal_from_target): Delete.
2419 * arch-utils.h (default_gdb_signal_from_target): Delete.
2420 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2421 gdbarch_gdb_signal_from_target_p.
2422 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2424 * gdbarch.h: Regenerate.
2425 * gdbarch.c: Regenerate.
2427 2012-06-04 Pedro Alves <palves@redhat.com>
2429 * gdbarch.sh (gdb_signal_from_target): Mention that the
2430 implementation of the method must be host independent.
2431 * gdbarch.h: Regenerate.
2433 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2435 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2437 (target_read_memory_bfd): New function.
2438 (symbol_file_add_from_memory): Use it.
2440 2012-06-03 Doug Evans <dje@google.com>
2442 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2444 (basic_lookup_transparent_type): Ditto.
2446 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2447 (ALL_PRIMARY_SYMTABS): Use it.
2448 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2449 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2450 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2451 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2452 (basic_lookup_transparent_type): Ditto.
2454 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2456 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2457 it to optimize resolution of demangled name.
2459 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2461 * configure.ac (development): Define new variable.
2462 Call AC_CHECK_LIB for mcheck if $development.
2463 (ERROR_ON_WARNING): Enable it by default only if $development.
2464 * config.in: Regenerate.
2465 * configure: Regenerate.
2467 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2469 * target.c (target_read_memory): Make LEN argument as size_t.
2470 * target.h (target_read_memory): Likewise.
2472 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2474 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2476 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2478 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2479 BookE interface for PowerPC server processors if not available
2480 in the Linux Kernel.
2482 2012-05-31 Keith Seitz <keiths@redhat.com>
2484 * linespec.c (decode_objc): Add cleanup to free
2486 (find_linespec_symbols): Add cleanup to free CLASSES.
2487 * symfile.c (find_separate_debug_file_by_debuglink): Add
2488 cleanup to free DEBUGLINK.
2489 * ui-out.c (clear_header_list): No need to check if
2490 HEADER_NEXT.COLHDR is NULL.
2491 Free HEADER_NEXT.COL_NAME.
2493 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2495 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2498 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2500 * configure.host (gdb_host_cpu): Handle tilegx*.
2501 (gdb_host): Handle tilegx-*-linux*.
2502 * tilegx-linux-nat.c: New file.
2503 * config/tilegx/linux.mh: New file.
2505 2012-05-30 Jeff Kenton <jkenton@tilera.com>
2507 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2508 tilegx-linux-tdep.o.
2509 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2510 tilegx-linux-tdep.c.
2511 * configure.tgt: Handle tilegx-*-linux*.
2512 * tilegx-tdep.h: New file.
2513 * tilegx-tdep.c: New file.
2514 * tilegx-linux-tdep.c: New file.
2515 * regformats/reg-tilegx.dat: New file.
2517 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2519 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2520 accounting of hw watchpoints on ppc.
2522 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2524 * source.c (openp): Expand tilde in path entries.
2526 2012-05-29 Doug Evans <dje@google.com>
2528 * buildsym.c (block_compar): Fix comment.
2529 (end_symtab): Fix and clarify some comments.
2531 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2532 cleanup_undefined_types.
2533 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2534 All callers updated.
2536 2012-05-29 Tom Tromey <tromey@redhat.com>
2538 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2540 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2541 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2543 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2546 2012-05-29 Tristan Gingold <gingold@adacore.com>
2548 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2549 (struct darwin_info): ... New struct.
2550 (solib_darwin_pspace_data): New variable.
2551 (darwin_pspace_data_cleanup): New function.
2552 (get_darwin_info): Likewise.
2553 (darwin_dyld_version_ok, darwin_load_image_infos)
2554 (darwin_solib_get_all_image_info_addr_at_init)
2555 (darwin_solib_read_all_image_info_addr): Add info argument.
2557 (darwin_current_sos): Use per pspace structure.
2558 (darwin_solib_create_inferior_hook): Likewise.
2559 (darwin_clear_solib): Likewise.
2560 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2562 2012-05-28 Pedro Alves <palves@redhat.com>
2564 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2565 block that uses them. Clear ecss before handling each event.
2567 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2569 * solib-svr4.c (svr4_current_sos): New comment on
2570 svr4_current_sos_via_xfer_libraries fall back.
2572 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2574 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2575 it as a fallback for TYPE_IS_OPAQUE.
2576 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2577 symbols for lookup_symbol.
2579 2012-05-24 John Steele Scott <toojays@toojays.net>
2581 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2582 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2583 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2584 (check_producer): ... this new function, which also checks for ICC
2585 and caches the result.
2586 (producer_is_icc): New function.
2587 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2590 2012-05-24 Pedro Alves <palves@redhat.com>
2594 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2595 (default_gdb_signal_to_target): ... this. Add comment.
2596 (default_gdb_signal_from_host): Rename to ...
2597 (default_gdb_signal_from_target): ... this. Add comment.
2598 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2599 (default_gdb_signal_to_target): ... this.
2600 (default_gdb_signal_from_host): Rename to ...
2601 (default_gdb_signal_from_target): ... this.
2602 * corelow.c (core_open): Adjust to naming change. Replace comment.
2603 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2604 (gdb_signal_from_target): ... this. Adjust to
2605 default_gdb_signal_from_host naming change. Extend comment.
2606 (gdb_signal_to_host): Rename to ...
2607 (gdb_signal_to_target): ... this. Adjust to
2608 default_gdb_signal_to_host naming change.
2609 * gdbarch.h, gdbarch.c: Renegerate.
2611 2012-05-24 Pedro Alves <palves@redhat.com>
2615 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2617 2012-05-24 Pedro Alves <palves@redhat.com>
2621 Replace target_signal with gdb_signal throughout.
2623 2012-05-24 Pedro Alves <palves@redhat.com>
2627 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2628 string, instead of reusing the va_list argument.
2630 2012-05-24 Tom Tromey <tromey@redhat.com>
2632 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2635 2012-05-23 Doug Evans <dje@google.com>
2637 * symtab.c (search_symbols): Formatting fixes.
2638 (print_symbol_info): Formatting fixes.
2640 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2641 int64_t change to leb128 API.
2642 (read_encoded_value, decode_frame_entry_1): Ditto.
2643 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2644 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2645 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2646 (execute_stack_op): Ditto.
2647 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2648 (safe_read_uleb128, safe_read_sleb128): Ditto.
2649 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2650 (dwarf2_compile_expr_to_ax): Ditto.
2651 (locexpr_describe_location_piece): Ditto.
2652 (disassemble_dwarf_expression): Ditto.
2653 (locexpr_describe_location_1): Ditto.
2655 2012-05-23 Stan Shebs <stan@codesourcery.com>
2656 Kwok Cheung Yeung <kcy@codesourcery.com>
2658 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2659 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2660 (mi-cmd-info.o): New rule.
2661 * osdata.h (info_osdata_command): New declaration.
2662 * osdata.c (info_osdata_command): Change to non-static.
2663 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2664 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2665 * mi/mi-cmd-info.c: New file.
2667 2012-05-23 Doug Evans <dje@google.com>
2669 * symtab.c (search_symbols): Pass NULL for file_matcher to
2670 expand_symtabs_matching if there are no files to match.
2672 * gdbtypes.c (lookup_typename): Simplify.
2674 2012-05-23 Pedro Alves <palves@redhat.com>
2676 * arch-utils.h (default_target_signal_to_host): Delete.
2677 * arch-utils.c (default_target_signal_to_host): Delete.
2678 * gdbarch.sh (target_signal_to_host): Remove.
2679 * gdbarch.h, gdbarch.c: Regenerate.
2681 2012-05-22 Doug Evans <dje@google.com>
2683 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2685 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2686 (execute_cfa_program): Update to match API of leb128 functions.
2687 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2689 (read_unsigned_leb128, read_signed_leb128): Delete.
2690 (read_initial_length): Change type of buf argument to
2692 (read_encoded_value): Update to match API of leb128 functions.
2693 (decode_frame_entry): Change result to "const gdb_byte *", and
2694 similarly for "start" parameter.
2695 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2696 (dwarf2_build_frame_info): Change local frame_ptr to
2698 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2699 read_uleb128, read_sleb128. All callers updated.
2700 (safe_skip_leb128): New function.
2701 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2702 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2703 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2704 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2705 read_uleb128, read_sleb128.
2706 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2707 (execute_stack_op): Update to match API of leb128 functions.
2708 * dwarf2expr.h: #include "leb128.h".
2709 (read_uleb128, read_sleb128): Delete.
2710 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2711 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2712 * dwarf2loc.c (debug_loc_kind): New enum.
2713 (decode_debug_loc_addresses): New function.
2714 (decode_debug_loc_dwo_addresses): New function.
2715 (dwarf2_find_location_expression): Rewrite.
2716 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2717 (locexpr_describe_location_piece): Ditto.
2718 (disassemble_dwarf_expression): Ditto.
2719 (locexpr_describe_location_1): Ditto.
2720 (loclist_describe_location): Rewrite.
2721 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2722 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2723 (dwarf2_section_buffer_overflow_complaint): Renamed from
2724 dwarf2_macros_too_long_complaint. All callers updated.
2725 (skip_leb128): Delete.
2726 (init_cu_die_reader): Initialize reader->buffer_end.
2727 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2728 (skip_form_bytes): New arg buffer_end. All callers updated.
2729 Replace call to skip_leb128 with gdb_skip_leb128.
2730 (skip_unknown_opcode): New arg mac_end. All callers updated.
2731 (fill_in_loclist_baton): Initialize baton->from_dwo.
2733 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2735 * mips-linux-nat.c (mips_linux_read_description): Use a more
2736 verbose error message.
2738 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2740 * NEWS: Add MIPS/Linux DSP support.
2741 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2742 (SIGCONTEXT_DSPCTL): New macro.
2743 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2744 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2745 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2746 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2747 (N64_SIGCONTEXT_HI3): Likewise.
2748 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2749 (N64_SIGCONTEXT_LO3): Likewise.
2750 (N64_SIGCONTEXT_DSPCTL): Likewise.
2751 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2752 (mips_linux_o32_sigframe_init): Handle DSP registers.
2753 (mips_linux_n32n64_sigframe_init): Likewise.
2755 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2757 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2760 2012-05-22 Pedro Alves <palves@redhat.com>
2762 * target.h (store_waitstatus): Move declaration ...
2763 * inf-child.h (store_waitstatus): ... here.
2764 * target.c: Move inclusion of gdb_wait.h, and ...
2765 (store_waitstatus): ... this ...
2766 * inf-child.c: ... here.
2767 * linux-nat.c: Include inf-child.h.
2768 * rs6000-nat.c: Include inf-child.h.
2769 * spu-linux-nat.c: Include inf-child.h.
2771 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2773 * tracepoint.c (start_tracing): Add missing i18n markup.
2774 (stop_tracing, set_trace_user): Ditto.
2775 (set_trace_notes, set_trace_stop_notes): Ditto.
2777 2012-05-21 Tom Tromey <tromey@redhat.com>
2780 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2782 * value.h (value_cast_pointers): Update.
2783 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2784 (value_cast): Update.
2785 (update_search_result): New function.
2786 (do_search_struct_field): New, from search_struct_field. Check
2787 for ambiguous results.
2788 (search_struct_field): Rewrite.
2789 * infcall.c (value_arg_coerce): Update.
2790 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2791 value_cast_pointers.
2792 * ada-lang.c (ada_convert_actual): Update.
2794 2012-05-21 Tom Tromey <tromey@redhat.com>
2796 * macroexp.c (macro_stringify): Terminate the string.
2798 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2800 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2802 * auto-load.c (auto_load_expand_dir_vars): New function.
2803 (auto_load_safe_path_vec_update): Use it, remove the
2804 substitute_path_component call thanks to it.
2805 (auto_load_objfile_script): Remove the debug_file_directory processing.
2806 Use auto_load_expand_dir_vars, remove the substitute_path_component
2808 * configure: Regenerate.
2809 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2810 path. Escape $ also for $debugdir.
2811 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2812 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2814 2012-05-20 Doug Evans <dje@google.com>
2816 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2817 before use. Check for symtab->includes == NULL before scanning it.
2819 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2821 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2823 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2825 * NEWS: Add microMIPS support and "set mips compression",
2826 "show mips compression" commands.
2827 * mips-tdep.h (mips_isa): New enum.
2828 (gdbarch_tdep): Add mips_isa.
2829 (mips_pc_is_mips16): Update prototype.
2830 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2831 * mips-tdep.c (mips_compression_mips16): New variable.
2832 (mips_compression_micromips): Likewise.
2833 (mips_compression_strings): Likewise.
2834 (mips_compression_string): Likewise.
2835 (is_mips16_isa, is_micromips_isa): New functions.
2836 (is_mips16_addr): Rename to...
2837 (is_compact_addr): ... this.
2838 (unmake_mips16_addr): Likewise to...
2839 (unmake_compact_addr): ... this.
2840 (make_mips16_addr): Likewise to...
2841 (make_compact_addr): ... this.
2842 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2844 (mips_elf_make_msymbol_special): Handle microMIPS code.
2845 (msymbol_is_special): Rename to...
2846 (msymbol_is_mips16): ... this.
2847 (mips_make_symbol_special, mips_pc_is_mips16): Update
2849 (msymbol_is_mips, msymbol_is_micromips): New functions.
2850 (mips16_to_32_reg): Rename to...
2851 (mips_reg3_to_reg): ... this.
2852 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2853 (mips_pc_isa): Likewise.
2854 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2856 (mips_fetch_instruction): Pass return status instead of printing
2857 an error message if requested. Handle microMIPS code. Bail out
2859 (micromips_op): New macro.
2860 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2861 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2862 (b6s4_op, b7s3_reg): Likewise.
2863 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2864 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2865 (mips_insn_size): New function.
2866 (mips32_next_pc): Update mips_fetch_instruction call.
2867 (micromips_relative_offset7): New function.
2868 (micromips_relative_offset10): Likewise.
2869 (micromips_relative_offset16): Likewise.
2870 (micromips_pc_insn_size): Likewise.
2871 (micromips_bc1_pc): Likewise.
2872 (micromips_next_pc): Likewise.
2873 (unpack_mips16): Update mips_fetch_instruction call.
2874 (extended_mips16_next_pc): Update according to change to
2876 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2878 (mips16_scan_prologue): Update mips_fetch_instruction call.
2879 Update according to change to mips16_to_32_reg.
2880 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2881 (mips_insn16_frame_base_sniffer): Likewise.
2882 (micromips_decode_imm9): New function.
2883 (micromips_scan_prologue): Likewise.
2884 (mips_micro_frame_cache): Likewise.
2885 (mips_micro_frame_this_id): Likewise.
2886 (mips_micro_frame_prev_register): Likewise.
2887 (mips_micro_frame_sniffer): Likewise.
2888 (mips_micro_frame_unwind): New variable.
2889 (mips_micro_frame_base_address): New function.
2890 (mips_micro_frame_base): New variable.
2891 (mips_micro_frame_base_sniffer): New function.
2892 (mips32_scan_prologue): Update mips_fetch_instruction call.
2893 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2894 rather than for MIPS16.
2895 (mips_insn32_frame_base_sniffer): Likewise.
2896 (mips_addr_bits_remove): Handle microMIPS code.
2897 (deal_with_atomic_sequence): Rename to...
2898 (mips_deal_with_atomic_sequence): ... this. Update the type
2899 of the variable used to hold an instruction. Remove the ISA bit
2900 check. Update mips_fetch_instruction call.
2901 (micromips_deal_with_atomic_sequence): New function.
2902 (deal_with_atomic_sequence): Likewise.
2903 (mips_about_to_return): Handle microMIPS code. Update
2904 mips_fetch_instruction call.
2905 (heuristic_proc_start): Check for the standard MIPS ISA rather
2906 than for MIPS16. Update mips_pc_is_mips16 and
2907 mips_fetch_instruction calls. Handle microMIPS code.
2908 (mips_push_dummy_code): Handle microMIPS code.
2909 (mips_eabi_push_dummy_call): Likewise.
2910 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2911 (mips_o64_push_dummy_call): Handle microMIPS code.
2912 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2913 (is_delayed): Remove function.
2914 (mips_single_step_through_delay): Replace the call to is_delayed
2915 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2916 Handle microMIPS code.
2917 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2919 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2921 (micromips_in_function_epilogue_p): New function.
2922 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2924 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2926 (gdb_print_insn_mips): Likewise.
2927 (mips_breakpoint_from_pc): Likewise.
2928 (mips_remote_breakpoint_from_pc): New function.
2929 (mips32_instruction_has_delay_slot): Simplify making use of the
2930 updated mips_fetch_instruction interface.
2931 (micromips_instruction_has_delay_slot): New function.
2932 (mips16_instruction_has_delay_slot): Simplify making use of the
2933 updated mips_fetch_instruction interface.
2934 (mips_adjust_breakpoint_address): Check for the standard MIPS
2935 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2936 calls. Handle microMIPS code.
2937 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2938 (mips_skip_trampoline_code): Handle microMIPS code.
2939 (global_mips_compression): New function.
2940 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2941 file flags. Register the microMIPS remote breakpoint handler
2942 and heuristic frame unwinder.
2943 (show_mips_compression): New function.
2944 (_initialize_mips_tdep): Add the "set mips compression" and
2945 "show mips compression" commands.
2947 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2952 * amd64-darwin-tdep.c:
2953 * arm-symbian-tdep.c:
2957 * bfin-linux-tdep.c:
2964 * dwarf2-frame-tailcall.c:
2993 * microblaze-tdep.c:
2994 * mips-linux-tdep.c:
3002 * python/py-finishbreakpoint.c:
3003 * python/py-inferior.c:
3004 * python/py-infthread.c:
3008 * remote-m32r-sdi.c:
3012 * rs6000-aix-tdep.c:
3038 * amd64-darwin-tdep.c:
3039 * arm-symbian-tdep.c:
3040 * arm-tdep.c: Delete unused variables.
3042 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3044 Rename $ddir to $datadir.
3045 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
3046 * auto-load.c (auto_load_safe_path_vec_update)
3047 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
3048 * configure: Regenerate.
3049 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
3050 Likewise. Remove the 'use $ddir' help string.
3052 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3054 * auto-load.c (show_auto_load_safe_path): Accept any combination of
3055 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
3057 2012-05-18 Tom Tromey <tromey@redhat.com>
3060 * valprint.h (struct value_print_options) <symbol_print>: New
3062 * valprint.c (user_print_options): Add default for symbol_print.
3063 (show_symbol_print): New function.
3064 (generic_val_print): Respect symbol_print.
3065 (_initialize_valprint): Add "print symbol" setting.
3066 * f-valprint.c (f_val_print): Respect symbol_print.
3067 * c-valprint.c (c_val_print): Respect symbol_print.
3069 * printcmd.c (print_address_symbolic): Return int. Ignore some
3071 (print_address_demangle): Return int.
3072 * defs.h: (print_address_symbolic): Return int.
3073 * value.h (print_address_demangle): Return int.
3075 2012-05-18 Tom Tromey <tromey@redhat.com>
3077 * valprint.c (val_print_string): Don't print leading space.
3078 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
3079 print space before string or vtbl.
3080 * m2-valprint.c (print_unpacked_pointer): Optionally print space
3082 * jv-valprint.c (java_value_print): Print space before string.
3083 * go-valprint.c (print_go_string): Print space before string.
3084 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
3085 space before string.
3086 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
3087 space before string or vtbl.
3088 * auxv.c (fprint_target_auxv): Print space after address.
3090 2012-05-18 Tom Tromey <tromey@redhat.com>
3092 * printcmd.c (print_address_demangle): Remove special case for 0.
3094 2012-05-18 Tom Tromey <tromey@redhat.com>
3096 * printcmd.c (print_address_demangle): Add 'opts' argument.
3097 * p-valprint.c (pascal_val_print): Update.
3098 * jv-valprint.c (java_val_print): Update.
3100 * valprint.c (generic_val_print): Update.
3101 (print_function_pointer_address): Add 'options' argument. Remove
3102 'addressprint' argument. Update.
3103 * m2-valprint.c (print_unpacked_pointer): Update.
3104 * gnu-v3-abi.c (print_one_vtable): Update.
3105 (gnuv3_print_method_ptr): Update.
3106 * f-valprint.c (f_val_print): Update.
3107 * cp-valprint.c (cp_print_value_fields): Update.
3108 * valprint.h (print_function_pointer_address): Update.
3109 * c-valprint.c (c_val_print): Update.
3111 2012-05-18 Tom Tromey <tromey@redhat.com>
3113 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
3114 directly corresponding to the found psymtab.
3115 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
3116 (dw2_find_pc_sect_symtab): Use it.
3117 * block.h (blockvector_contains_pc): Declare.
3118 * block.c (find_block_in_blockvector): New function.
3119 (blockvector_for_pc_sect): Use it.
3120 (blockvector_contains_pc): New function.
3122 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3124 * mips-tdep.h (mips_write_pc): New prototype.
3125 * mips-tdep.c (mips_write_pc): Make external, add description.
3126 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
3129 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3131 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
3133 (mips_unwind_pc, mips_write_pc): Likewise.
3134 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
3137 2012-05-17 Joel Brobecker <brobecker@adacore.com>
3139 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
3140 proc_warn, proc_error, proc_get_status, proc_flags,
3141 proc_why, proc_what, proc_nsysarg, proc_sysargs,
3142 proc_set_run_on_last_close, proc_unset_run_on_last_close,
3143 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
3144 proc_stop_process, proc_wait_for_stop, proc_run_process,
3145 proc_set_traced_signals, proc_set_traced_faults,
3146 proc_set_traced_sysentry, proc_set_traced_sysexit,
3147 proc_set_held_signals, proc_get_held_signals,
3148 proc_get_traced_signals, proc_get_traced_faults,
3149 proc_get_traced_sysentry, proc_get_traced_sysexit,
3150 proc_clear_current_fault, proc_set_current_signal,
3151 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
3152 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
3153 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
3154 proc_get_current_thread, proc_get_current_thread,
3155 proc_get_current_thread, proc_update_threads,
3156 proc_update_threads, proc_update_threads, proc_update_threads,
3157 proc_iterate_over_threads, procfs_find_new_threads,
3158 procfs_pid_to_str): Make static. Remove advance declaration.
3159 (proc_cursig): Make static. Conditionalized defintion on
3160 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
3161 (proc_syscall, proc_set_kill_on_last_close,
3162 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
3163 proc_get_pending_signals, proc_get_signal_actions,
3164 proc_trace_signal, proc_ignore_signal): Delete.
3166 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3168 * coffread.c (cs_section_address): Passing proper argument for
3169 `bfd_get_section_vma'.
3170 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
3171 `bfd_get_section_flags'.
3172 * remote.c (remote_trace_set_readonly_regions): Likewise, for
3173 `bfd_get_section_vma'.
3175 2012-05-16 Tom Tromey <tromey@redhat.com>
3178 * macrotab.h: (macro_define_special): Declare.
3179 (enum macro_special_kind): New.
3180 (struct macro_definition) <argc, replacement>: Update comments.
3181 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
3182 (macro_define_object_internal): New function.
3183 (macro_define_object): Use it.
3184 (macro_define_special): New function.
3185 (fixup_definition): New function.
3186 (macro_lookup_definition, foreach_macro_in_scope)
3187 (foreach_macro): Use fixup_definition.
3188 * macroexp.h (macro_stringify): Declare.
3189 * macroexp.c (free_buffer_return_text): New function.
3190 (stringify): Constify "arg".
3191 (macro_stringify): New function.
3192 * dwarf2read.c (macro_start_file): Call macro_define_special.
3194 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
3195 Maciej W. Rozycki <macro@mips.com>
3197 * breakpoint.h (bp_location): Add related_address member.
3198 * inferior.h (get_return_value): Take a pointer to struct value
3199 instead of struct type for the function requested.
3200 * value.h (using_struct_return): Likewise.
3201 * gdbarch.sh (return_value): Take a pointer to struct value
3202 instead of struct type for the function requested.
3203 * breakpoint.c (set_breakpoint_location_function): Initialize
3204 related_address for bp_gnu_ifunc_resolver breakpoints.
3205 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
3206 requested function's address to gdbarch_return_value.
3207 * eval.c (evaluate_subexp_standard): Pass the requested
3208 function's address to using_struct_return.
3209 * infcall.c (call_function_by_hand): Pass the requested
3210 function's address to using_struct_return and
3211 gdbarch_return_value.
3212 * infcmd.c (get_return_value): Take a pointer to struct value
3213 instead of struct type for the function requested.
3214 (print_return_value): Update accordingly.
3215 (finish_command_continuation): Likewise.
3216 * stack.c (return_command): Pass the requested function's
3217 address to using_struct_return and gdbarch_return_value.
3218 * value.c (using_struct_return): Take a pointer to struct value
3219 instead of struct type for the function requested. Pass the
3220 requested function's address to gdbarch_return_value.
3221 * python/py-finishbreakpoint.c (finish_breakpoint_object):
3222 New function_value member, replacing function_type.
3223 (bpfinishpy_dealloc): Update accordingly.
3224 (bpfinishpy_pre_stop_hook): Likewise.
3225 (bpfinishpy_init): Likewise. Record the requested function's
3227 * mips-tdep.c (mips_fval_reg): New enum.
3228 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
3229 words put in GP registers.
3230 (mips_o64_push_dummy_call): Update a comment.
3231 (mips_o32_return_value): Take a pointer to struct value instead
3232 of struct type for the function requested and use it to check if
3233 using the MIPS16 calling convention. Return the designated
3234 general purpose registers for floating-point values returned in
3236 (mips_o64_return_value): Likewise.
3237 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
3238 (ppc_sysv_abi_broken_return_value): Likewise.
3239 (ppc64_sysv_abi_return_value): Likewise.
3240 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
3241 value instead of struct type for the function requested.
3242 * amd64-tdep.c (amd64_return_value): Likewise.
3243 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
3244 * arm-tdep.c (arm_return_value): Likewise.
3245 * avr-tdep.c (avr_return_value): Likewise.
3246 * bfin-tdep.c (bfin_return_value): Likewise.
3247 * cris-tdep.c (cris_return_value): Likewise.
3248 * frv-tdep.c (frv_return_value): Likewise.
3249 * h8300-tdep.c (h8300_return_value): Likewise.
3250 (h8300h_return_value): Likewise.
3251 * hppa-tdep.c (hppa32_return_value): Likewise.
3252 (hppa64_return_value): Likewise.
3253 * i386-tdep.c (i386_return_value): Likewise.
3254 * ia64-tdep.c (ia64_return_value): Likewise.
3255 * iq2000-tdep.c (iq2000_return_value): Likewise.
3256 * lm32-tdep.c (lm32_return_value): Likewise.
3257 * m32c-tdep.c (m32c_return_value): Likewise.
3258 * m32r-tdep.c (m32r_return_value): Likewise.
3259 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
3260 * m68k-tdep.c (m68k_return_value): Likewise.
3261 (m68k_svr4_return_value): Likewise.
3262 * m88k-tdep.c (m88k_return_value): Likewise.
3263 * mep-tdep.c (mep_return_value): Likewise.
3264 * microblaze-tdep.c (microblaze_return_value): Likewise.
3265 * mn10300-tdep.c (mn10300_return_value): Likewise.
3266 * moxie-tdep.c (moxie_return_value): Likewise.
3267 * mt-tdep.c (mt_return_value): Likewise.
3268 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
3269 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
3270 (ppc_sysv_abi_broken_return_value): Likewise.
3271 (ppc64_sysv_abi_return_value): Likewise.
3272 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
3273 * rl78-tdep.c (rl78_return_value): Likewise.
3274 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
3275 * rx-tdep.c (rx_return_value): Likewise.
3276 * s390-tdep.c (s390_return_value): Likewise.
3277 * score-tdep.c (score_return_value): Likewise.
3278 * sh-tdep.c (sh_return_value_nofpu): Likewise.
3279 (sh_return_value_fpu): Likewise.
3280 * sh64-tdep.c (sh64_return_value): Likewise.
3281 * sparc-tdep.c (sparc32_return_value): Likewise.
3282 * sparc64-tdep.c (sparc64_return_value): Likewise.
3283 * spu-tdep.c (spu_return_value): Likewise.
3284 * tic6x-tdep.c (tic6x_return_value): Likewise.
3285 * v850-tdep.c (v850_return_value): Likewise.
3286 * vax-tdep.c (vax_return_value): Likewise.
3287 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3288 * xtensa-tdep.c (xtensa_return_value): Likewise.
3289 * gdbarch.c: Regenerate.
3290 * gdbarch.h: Regenerate.
3292 2012-05-15 Tom Tromey <tromey@redhat.com>
3294 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3296 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3298 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3299 of command in two error message.
3301 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3303 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3305 2012-05-15 Joel Brobecker <brobecker@adacore.com>
3307 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3309 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3311 * NEWS (show auto-load scripts-directory): Add forgotten command.
3313 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3315 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3318 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3320 * amd64-tdep.c: Include features/i386/x32.c and
3321 features/i386/x32-avx.c.
3322 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3323 initialize_tdesc_x32_avx.
3325 2012-05-14 Stan Shebs <stan@codesourcery.com>
3328 * breakpoint.h (enum bptype): New type bp_dprintf.
3329 (struct breakpoint): New field extra_string.
3330 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3331 (create_breakpoint): Add extra_string arg.
3332 * breakpoint.c (dprintf_breakpoint_ops): New.
3333 (is_breakpoint): Add bp_dprintf.
3334 (bpstat_what): Add dprintf case.
3335 (bptype_string): Ditto.
3336 (print_one_breakpoint_location): Ditto.
3337 (init_bp_location): Ditto.
3338 (bkpt_print_mention): Ditto.
3339 (dprintf_style_enums): New array.
3340 (dprintf_style): New global.
3341 (dprintf_function): New global.
3342 (dprintf_channel): New global.
3343 (update_dprintf_command_list): New function.
3344 (update_dprintf_commands): New function.
3345 (init_breakpoint_sal): Add extra_string argument, handle it.
3346 (create_breakpoint_sal): Add extra_string argument.
3347 (create_breakpoints_sal): Add extra_string argument, update callers.
3348 (find_condition_and_thread): Add extra argument.
3349 (create_breakpoint): Add extra_string argument, record it.
3350 (dprintf_command): New function.
3351 (break_command_1): Add arg to create_breakpoint call.
3352 (handle_gnu_v3_exceptions): Ditto.
3353 (trace_command): Ditto.
3354 (ftrace_command): Ditto.
3355 (strace_command): Ditto.
3356 (bkpt_print_mention): Add dprintf case.
3357 (create_breakpoint_sal_default): Add extra_string argument.
3358 (_initialize_breakpoint): Add new commands.
3359 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3360 * python/py-breakpoint.c (bppy_init): Ditto.
3361 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3363 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3365 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3367 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3369 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3372 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3374 Add a new function gdb.find_pc_line to the Python API.
3375 * NEWS (Python Scripting): Add entry about the new function.
3376 * python/python.c (gdbpy_find_pc_line): New function which
3377 implements gdb.find_pc_line.
3378 (GdbMethods): Add entry for the new function.
3380 2012-05-12 Pedro Alves <palves@redhat.com>
3382 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3383 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3385 2012-05-12 Eli Zaretskii <eliz@gnu.org>
3387 * inferior.c: Include completer.h
3388 (initialize_inferiors): Set completer of add-inferior to
3391 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3393 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3394 gdbarch_ptr_bit for x32 core dump.
3396 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3398 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3399 and features/i386/x32-avx-linux.c.
3401 2012-05-11 Stan Shebs <stan@codesourcery.com>
3402 Kwok Cheung Yeung <kcy@codesourcery.com>
3404 * NEWS: Describe new info os commands.
3405 * common/linux-osdata.c (PID_T, TIME_T): Define.
3406 (MAX_PID_T_STRLEN): New.
3407 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3409 (command_from_pid): Add comment. Change to use PID_T.
3410 (commandline_from_pid): Change to use PID_T.
3411 (user_from_pid): Add comment.
3412 (get_process_owner): Add comment. Change to use PID_T and
3414 (get_number_of_cpu_cores): Add comment.
3415 (get_cores_used_by_process): Add comment. Change to use PID_T and
3417 (linux_xfer_osdata_processes): Change to use PID_T and
3419 (compare_processes): New function.
3420 (linux_xfer_osdata_processgroups): New function.
3421 (linux_xfer_osdata_threads): Change to use PID_T.
3422 (linux_xfer_osdata_fds): New function.
3423 (format_socket_state, print_sockets): New functions.
3424 (union socket_addr): New union.
3425 (linux_xfer_osdata_isockets): New function.
3426 (time_from_time_t, group_from_gid): New functions.
3427 (linux_xfer_osdata_shm): New function.
3428 (linux_xfer_osdata_sem): New function.
3429 (linux_xfer_osdata_msg): New function.
3430 (linux_xfer_osdata_modules): New function.
3431 (osdata_table): Add new entries.
3432 * common/buffer.c (buffer_xml_printf): Add support for long and
3433 long long format specifiers.
3435 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3437 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3438 (tdesc_x32_avx_linux): Likewise.
3440 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3442 Implement multi-component --with-auto-load-dir.
3443 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3445 (--with-auto-load-safe-path): Update the default value description.
3446 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3448 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3449 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3450 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3451 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3452 "set auto-load scripts-directory".
3453 * config.in: Regenerate.
3454 * configure: Regenerate.
3455 * configure.ac (--with-auto-load-dir): New configure option.
3456 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3458 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3460 Provide $ddir substitution for --with-auto-load-safe-path.
3461 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3463 * auto-load.c: Include observer.h.
3464 (auto_load_safe_path_vec_update): Call substitute_path_component for
3465 each component. New variable ddir_subst.
3466 (auto_load_gdb_datadir_changed): New function.
3467 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3468 AUTO_LOAD_SAFE_PATH. New comment.
3469 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3470 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3471 * config.in: Regenerate.
3472 * configure: Regenerate.
3473 * configure.ac (--auto-load-safe-path): Rename
3474 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3475 GDB_DATADIR/auto-load.
3476 * defs.h (substitute_path_component): New declaration.
3477 * top.c: Include observer.h.
3478 (set_gdb_datadir): New function.
3479 (init_main): Install it for "set data-directory".
3480 * utils.c (substitute_path_component): New function.
3482 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3484 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3485 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3486 DEBUG_FILE_DIRECTORY. Handle multiple components of
3487 DEBUG_FILE_DIRECTORY.
3489 2012-05-10 Tom Tromey <tromey@redhat.com>
3491 * dwarf2read.c (recursively_write_psymbols): New function.
3492 (write_psymtabs_to_index): Use it.
3494 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3496 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3497 (load_partial_comp_unit): Update.
3498 (queue_comp_unit): Add argument 'pretend_language'.
3499 (process_queue): Update.
3500 (psymtab_to_symtab_1): Skip dependencies that have a user.
3501 (load_partial_comp_unit_reader): Give meaning to the 'data'
3503 (load_full_comp_unit): Add 'pretend_language' argument.
3504 (process_full_comp_unit): Add 'pretend_language' argument. Set
3506 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3508 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3509 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3511 (prepare_one_comp_unit): Add 'pretend_language' argument.
3513 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3514 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3515 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3516 (dw2_do_instantiate_symtab): Check whether symtab was read in
3518 (dw2_instantiate_symtab): Add assertion. Call
3519 process_cu_includes.
3520 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3521 (partial_symtab_p): New typedef.
3522 (set_partial_user): New function.
3523 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3524 (scan_partial_symbols): Add imported CU to imported_symtabs.
3525 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3526 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3527 (get_symtab, recursively_compute_inclusions)
3528 (compute_symtab_includes, process_cu_includes)
3529 (process_imported_unit_die): New functions.
3530 (process_die) <DW_TAG_imported_unit>: New case.
3531 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3533 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3535 (struct partial_die_info) <locdesc>: Remove.
3537 (process_psymtab_comp_unit): Add 'read_partial' argument.
3539 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3540 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3541 (add_partial_symbol): Update.
3542 (process_die): Handle DW_TAG_partial_unit.
3543 (read_file_scope): Update comment.
3544 (load_partial_dies): Handle DW_TAG_imported_unit.
3545 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3546 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3548 2012-05-10 Tom Tromey <tromey@redhat.com>
3550 * cc-with-dwz.sh: New file.
3552 2012-05-10 Tom Tromey <tromey@redhat.com>
3554 * symtab.h (struct symtab) <includes, user>: New fields.
3555 * block.h (struct block_iterator) <d, idx, which>: New fields.
3556 * block.c (initialize_block_iterator, find_iterator_symtab)
3557 (block_iterator_step, block_iter_name_step)
3558 (block_iter_match_step): New functions.
3559 (block_iterator_first, block_iterator_next)
3560 (block_iter_name_first, block_iter_name_next)
3561 (block_iter_match_first, block_iter_match_next): Rewrite.
3562 (get_block_symtab): New function.
3564 2012-05-10 Tom Tromey <tromey@redhat.com>
3566 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3568 * jit.c (finalize_symtab): Use allocate_global_block,
3570 * buildsym.c (finish_block_internal): New function, from old
3572 (finish_block): Rewrite.
3573 (end_symtab): Use finish_block_internal, set_block_symtab.
3574 * block.h (struct global_block): New.
3575 (allocate_global_block, set_block_symtab): Declare.
3576 * block.c (allocate_global_block, set_block_symtab): New
3579 2012-05-10 Tom Tromey <tromey@redhat.com>
3581 * psymtab.c (partial_map_expand_apply): Add assertion.
3582 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3583 (psymtab_to_symtab): Find unshared psymtab.
3584 (dump_psymtab): Print including psymtabs.
3585 (recursively_search_psymtabs): New function.
3586 (expand_symtabs_matching_via_partial): Use it.
3587 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3589 (enum psymtab_search_status): New.
3591 2012-05-10 Tom Tromey <tromey@redhat.com>
3593 * tracepoint.c (scope_info): Update.
3594 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3595 (find_pc_sect_symtab, search_symbols)
3596 (default_make_symbol_completion_list_break_on)
3597 (make_file_symbol_completion_list): Update.
3598 * symmisc.c (dump_symtab_1): Update.
3599 * stack.c (print_frame_args, iterate_over_block_locals)
3600 (print_frame_labels, iterate_over_block_arg_vars): Update.
3601 * python/py-block.c (block_object) <dict>: Remove.
3603 <iter>: Change type.
3604 (blpy_iter): Update.
3605 (blpy_block_syms_iternext): Update.
3606 * psymtab.c (map_block): Use block iterators.
3607 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3608 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3609 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3610 * infrun.c (check_exception_resume): Update.
3611 * cp-support.c (make_symbol_overload_list_block): Update.
3612 * coffread.c (patch_opaque_types): Update.
3613 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3614 * block.h (struct block_iterator): New.
3615 (block_iterator_first, block_iterator_next, block_iter_name_first)
3616 (block_iter_name_next, block_iter_match_first)
3617 (block_iter_match_next): Declare.
3618 (ALL_BLOCK_SYMBOLS): Redefine.
3619 * block.c (block_iterator_first, block_iterator_next)
3620 (block_iter_name_first, block_iter_name_next)
3621 (block_iter_match_first, block_iter_match_next): New functions.
3622 * ada-lang.c (ada_add_block_symbols)
3623 (ada_make_symbol_completion_list): Use block iterator.
3625 2012-05-10 Tom Tromey <tromey@redhat.com>
3627 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3628 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3629 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3630 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3631 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3634 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3636 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3637 print-file-var-lib2.c, print-file-var-main.c and
3638 print-file-var.exp (located in gdb/testsuite/gdb.base).
3640 2012-05-10 Joel Brobecker <brobecker@adacore.com>
3642 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3643 try locating the symbol in the symbol's own objfile first, before
3644 extending the search to all objfiles.
3645 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3646 out of lookup_symbol_aux_symtabs.
3647 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3648 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3649 Do not search EXCLUDE_OBJFILE.
3650 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3651 (lookup_symbol_global): Search for matches in the block's objfile
3652 first, before searching all other objfiles.
3654 2012-05-10 Tristan Gingold <gingold@adacore.com>
3656 * printcmd.c (set_command): Add pre/post inc/dec.
3658 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
3660 * gdb.1: Document -ex option.
3662 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3664 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3665 * inferior.h (AT_SYMBOL): Delete.
3667 2012-05-09 Joel Brobecker <brobecker@adacore.com>
3669 * mips-tdep.c (mips_push_dummy_code): New function.
3670 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3671 ON_STACK and install mips_push_dummy_code as our gdbarch
3672 push_dummy_code routine.
3674 2012-05-09 Pedro Alves <palves@redhat.com>
3676 * target.c (set_maintenance_target_async_permitted): Rename to ...
3677 (set_target_async_command): ... this.
3678 (show_maintenance_target_async_permitted): Rename to ...
3679 (show_target_async_command): ... this.
3680 (initialize_targets): Adjust.
3682 2012-05-08 Doug Evans <dje@google.com>
3684 * go-exp.y (classify_name): Add missing assignment of fields of
3687 2012-05-08 Eli Zaretskii <eliz@gnu.org>
3689 Display the ">" prompt in interactive mode while reading canned
3690 commands, even when the current interpreter is MI.
3692 * interps.c (interp_set_temp): New function.
3694 * interps.h (interp_set_temp): Add prototype.
3696 * cli/cli-script.c (restore_interp): New cleanup function.
3697 (read_command_lines): Temporarily override the current interpreter
3698 with CLI and arrange for restoring the original one.
3700 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3702 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3704 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3706 * probe.c (parse_probes): Move conditional to check for
3707 debuginfo files from here...
3708 * stap-probe.c (stap_get_probes): ... to here.
3710 2012-05-07 Mark Kettenis <kettenis@gnu.org>
3711 H.J. Lu <hongjiu.lu@intel.com>
3713 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3714 `movl %esp, %ebp' for the X32 ABI.
3716 2012-05-07 Tom Tromey <tromey@redhat.com>
3718 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3720 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3721 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3722 (dwarf_stack_op_name): Remove.
3723 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3724 (decode_locdesc): Use get_DW_OP_name.
3725 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3726 (dwarf2_compile_expr_to_ax): Likewise.
3727 (disassemble_dwarf_expression): Likewise.
3728 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3730 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3732 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3733 (sh_linux_sigtramp_cache): New function.
3734 (sh_linux_sigreturn_init): New function.
3735 (sh_linux_rt_sigreturn_init): New function.
3736 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3738 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3740 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3741 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3742 (sh_linux_init_abi): Add init calls to register new tramp_frame
3743 definitions under 32-bit SH, update comments.
3745 2012-05-07 Pedro Alves <palves@redhat.com>
3749 * amd64-linux-tdep.c: Include glibc-tdep.h.
3750 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3751 gdbarch_skip_solib_resolver callback.
3753 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3755 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3756 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3757 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3758 (add_auto_load_safe_path): Change the error message.
3759 (_initialize_auto_load): Change the "safe-path" help text.
3760 * configure: Regenerate
3761 * configure.ac (--without-auto-load-safe-path): Set
3762 WITH_AUTO_LOAD_SAFE_PATH to /.
3764 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3766 * stap-probe.h: Do not include unecessary `probe.h'.
3768 2012-05-05 Alan Modra <amodra@gmail.com>
3770 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3771 bfd_und_section_ptr.
3772 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3773 and bfd_com_section_ptr.
3775 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3777 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
3779 2012-05-04 Joel Brobecker <brobecker@adacore.com>
3781 * windows-nat.h (segment_register_p_ftype): New typedef.
3782 (windows_set_segment_register_p): Add declaration.
3783 * windows-nat.c (segment_register_p): New static global.
3784 (windows_set_segment_register_p): New function.
3785 (do_windows_fetch_inferior_registers): Add special handling
3786 for segment registers.
3787 * amd64-windows-nat.c: #include "amd64-tdep.h".
3788 (amd64_windows_segment_register_p): New function.
3789 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3790 * i386-windows-nat.c: #include "i386-tdep.h".
3791 (i386_windows_segment_register_p): New function.
3792 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3794 2012-05-04 Tristan Gingold <gingold@adacore.com>
3796 * printcmd.c (set_command): Emit a warning if the expression is not
3799 2012-05-03 Joel Brobecker <brobecker@adacore.com>
3801 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3804 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3806 * stap-probe.c (stap_is_operator): Change declaration.
3807 (stap_get_opcode): Change return value.
3808 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3809 `stap_parse_argument_1'.
3811 2012-05-03 Pedro Alves <pedro@codesourcery.com>
3813 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3816 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3818 Add two new methods global_block and static_block to gdb.Symtab
3820 * NEWS (Python scripting): Add entry about the new methods.
3821 * python/py-symtab.c (stpy_global_block): New function which
3822 implements the gdb.Symtab.global_block() method.
3823 (stpy_static_block): New function which implements the
3824 gdb.Symtab.static_block() method.
3825 (symtab_object_methods): Add entries for the two new methods.
3827 2012-05-03 Doug Evans <dje@google.com>
3829 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3832 2012-05-03 Yao Qi <yao@codesourcery.com>
3834 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3836 (i386_process_record): Ditto.
3838 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3840 * infcall.c (unwind_on_signal_p): Make static.
3842 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3844 * sol-thread.c (solaris_pid_to_str): Make static.
3845 (_initialize_sol_thread): Add prototype.
3847 2012-05-02 Joel Brobecker <brobecker@adacore.com>
3849 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3851 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3853 * MAINTAINERS: Remove myself.
3855 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3857 Fix --without-auto-load-safe-path for MS-Windows host platform.
3858 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3860 2012-05-02 Eli Zaretskii <eliz@gnu.org>
3862 * gdb_curses.h: Undefine KEY_EVENT before including curses
3863 headers. Move "#undef MOUSE_MOVED" before any curses header
3866 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3868 * features/i386/i386-mmx-linux.c: Regenerate.
3869 * features/rs6000/powerpc-32.c: Likewise.
3870 * features/rs6000/powerpc-32l.c: Likewise.
3871 * features/rs6000/powerpc-403.c: Likewise.
3872 * features/rs6000/powerpc-403gc.c: Likewise.
3873 * features/rs6000/powerpc-405.c: Likewise.
3874 * features/rs6000/powerpc-505.c: Likewise.
3875 * features/rs6000/powerpc-601.c: Likewise.
3876 * features/rs6000/powerpc-602.c: Likewise.
3877 * features/rs6000/powerpc-603.c: Likewise.
3878 * features/rs6000/powerpc-604.c: Likewise.
3879 * features/rs6000/powerpc-64.c: Likewise.
3880 * features/rs6000/powerpc-64l.c: Likewise.
3881 * features/rs6000/powerpc-750.c: Likewise.
3882 * features/rs6000/powerpc-860.c: Likewise.
3883 * features/rs6000/powerpc-e500.c: Likewise.
3884 * features/rs6000/powerpc-e500l.c: Likewise.
3885 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3886 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3887 * features/rs6000/rs6000.c: Likewise.
3889 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3891 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3893 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3894 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3895 (stap_parse_argument) <e>: Likewise.
3896 (handle_stap_probe) <byte_order>: Likewise.
3898 2012-04-30 Doug Evans <dje@google.com>
3900 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3901 init_and_read_dies_worker. All callers updated.
3902 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3903 replaced with init_cutu_and_read_dies.
3904 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3905 (find_partial_die): Remove FIXME. Don't free current CU.
3907 2012-04-30 Sterling Augustine <saugustine@google.com>
3909 * contrib: New directory.
3910 * contrib/test_pubnames_and_indexes.py: New file.
3912 2012-04-30 Doug Evans <dje@google.com>
3914 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3915 All callers updated.
3916 (init_cu_die_reader): Verify the section is non-empty.
3917 (dwarf_decode_line_header): Don't dereference section->asection
3918 until we know the section is present.
3920 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3922 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3925 2012-04-29 Yao Qi <yao@codesourcery.com>
3927 * gdb-code-style.el: New hook gdb-markup-hook
3928 and gdb-comment-hook.
3930 2012-04-28 Doug Evans <dje@google.com>
3932 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3933 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3935 * symfile.h (dwarf2_debug_sections): New member addr.
3936 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3937 (ctx_no_get_addr_index): New function.
3938 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3939 (ctx_no_get_addr_index): Declare.
3940 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3941 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3942 (dwarf_expr_ctx_funcs): Update.
3943 (needs_get_addr_index): New function.
3944 (needs_frame_ctx_funcs): Update.
3945 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3946 * dwarf2read.c: #include "gdbcore.h".
3947 (dwarf2_per_objfile): New members addr, dwo_files.
3948 (dwarf2_elf_names): Add entry for addr.
3949 (struct dwo_section_names): New type.
3950 (dwo_section_names): New static global.
3951 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3952 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3953 old debug_types_section member updated to use this.
3954 Rename member debug_types_section to info_or_types_section,
3956 (signatured_type): Rename member type_offset to type_offset_in_tu,
3957 all uses updated. New member type_offset_in_section.
3958 (struct dwo_sections): New type.
3959 (struct dwo_unit): New type.
3960 (struct dwo_file): New type.
3961 (die_reader_specs): New member dwo_file.
3962 (dwarf2_locate_sections): Watch for .debug_addr.
3963 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3964 (dwarf2_read_section): Get bfd of section from bfd's asection,
3966 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3967 (create_signatured_type_table_from_index): Initialize
3968 sig_type->info_or_types_section.
3969 (dw2_get_file_names): Statement lists for type units with DWO files
3970 live in the DWO file.
3971 (create_debug_types_hash_table): New function.
3972 (create_all_type_units): Rewrite.
3973 (init_cu_die_reader): New arg dwo_file, all callers updated.
3974 (init_and_read_dies_worker): Get section from
3975 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3976 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3977 continue reading the CU/TU from there.
3978 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3979 updated. Get section from this_cu->info_or_types_section.
3980 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3981 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3982 DW_FORM_GNU_str_index.
3983 (hash_dwo_file, eq_dwo_file): New functions.
3984 (allocate_dwo_file_hash_table): New function.
3985 (hash_dwo_unit, eq_dwo_unit): New functions.
3986 (allocate_dwo_unit_table): New function.
3987 (dwarf2_locate_dwo_sections): New function.
3988 (struct create_dwo_info_table_data): New type.
3989 (create_debug_info_hash_table_reader): New function.
3990 (create_debug_info_hash_table): New function.
3991 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3992 (lookup_dwo_file): New function.
3993 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3994 (free_dwo_file, free_dwo_file_cleanup): New functions.
3995 (free_dwo_file_from_slot, free_dwo_files): New functions.
3996 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3997 (dwarf2_record_block_ranges): Ditto.
3998 (read_partial_die): Ditto.
3999 (process_enumeration_scope): Update to use type_offset_in_section.
4000 (read_full_die_1): New function.
4001 (read_full_die): Rewrite.
4002 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
4003 DW_FORM_GNU_str_index.
4004 (read_addr_index_1, read_addr_index): New functions.
4005 (read_addr_index_from_leb128): New function.
4006 (struct dwarf2_read_addr_index_data): New type.
4007 (dwarf2_read_addr_index_reader): New function.
4008 (dwarf2_read_addr_index): New function.
4009 (read_str_index): New function.
4010 (leb128_size): New function.
4011 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
4012 If processing a type unit from a DWO file, get the line section
4014 (var_decode_location): Watch for DW_OP_GNU_addr_index.
4015 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
4016 DW_FORM_GNU_str_index.
4017 (lookup_die_type): Check whether section offset of type's die is
4018 known before looking it up. Remove assert. Condition can
4019 legimately happen for inter-cu type references.
4020 (dwarf_attr_name): Handle Fission attributes.
4021 (dwarf_form_name): Handle Fission forms.
4022 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
4023 DW_FORM_GNU_str_index.
4024 (follow_die_sig): Update to use type_offset_in_section.
4025 (decode_locdesc): New case DW_OP_GNU_addr_index.
4026 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
4027 DW_FORM_GNU_str_index.
4028 (cu_debug_loc_section): New function.
4029 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
4030 (dwarf2_per_objfile_free): Unmap .debug_addr section.
4031 Free DWO files if present.
4032 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
4034 Refactor DIE reading.
4035 * dwarf2read.c (dwarf2_per_objfile): Replace members
4036 debug_info_type_hash and debug_types_type_hash with die_type_hash.
4037 (die_reader_specs): New member "die_section". Temporarily make
4038 member "buffer" non-const, pending constifying all info_ptr uses.
4039 (die_reader_func_ftype): New typedef.
4040 (dw2_get_file_names_reader): New function.
4041 (dw2_get_file_names): Rewrite.
4042 (read_and_check_type_unit_head): Rename arg type_offset to
4044 (create_all_type_units): Improve debugging message.
4045 Improve dummy type unit check.
4046 (init_cu_die_reader): New arg "section". All callers updated.
4047 (init_and_read_dies_worker): New function.
4048 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
4049 (init_cutu_and_read_dies_no_follow): New function.
4050 (init_cutu_and_read_dies_simple): New function.
4051 (process_psymtab_comp_unit_reader): New function.
4052 (process_psymtab_comp_unit): Delete args section,
4053 is_debug_types_section. Rewrite. All callers updated.
4054 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
4055 All callers updated. Rewrite.
4056 (load_partial_comp_unit_reader): New function.
4057 (load_partial_comp_unit): Rewrite.
4058 (skip_children): New arg reader. Delete args buffer, cu.
4059 All callers updated.
4060 (skip_one_die): New arg reader. Delete args buffer, cu.
4061 All callers updated.
4062 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
4063 All callers updated.
4064 (load_full_comp_unit_reader): New function.
4065 (load_full_comp_unit): Rewrite.
4066 (read_comp_unit): Delete.
4067 (read_die_and_children_1): Delete, contents moved ...
4068 (read_die_and_children): ... here.
4069 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
4070 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
4071 All callers updated.
4072 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
4073 All callers updated.
4074 (find_partial_die): Rewrite load_all_dies support.
4075 (read_attribute_value): New arg reader. Delete args abfd, cu.
4076 All callers updated.
4077 (read_attribute): New arg reader. Delete args abfd, cu.
4078 All callers updated.
4079 (load_full_type_unit): Add assert.
4080 (read_signatured_type_reader): New function.
4081 (read_signatured_type): Rewrite.
4082 (free_stack_comp_unit): Remove call to age_cached_comp_units.
4083 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
4084 All callers updated. Set per_cu->cu = NULL after freeing it.
4085 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
4086 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
4087 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
4088 (set_die_type): Update.
4089 (get_die_type_at_offset): Update.
4090 (read_file_scope): Call prepare_one_comp_unit.
4091 (read_type_unit_scope): Ditto.
4092 (prepare_one_comp_unit): Set producer if present.
4094 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
4096 * probe.c (compile_rx_or_error): Silence ARI warning about missing
4097 gettext function on `error'.
4099 2012-04-27 Doug Evans <dje@google.com>
4101 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
4104 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4105 Tom Tromey <tromey@redhat.com>
4107 * breakpoint.c (struct breakpoint_objfile_data)
4108 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
4109 <exception_probes>: New fields.
4110 (free_breakpoint_probes): New function.
4111 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
4112 `_Unwind_DebugHook'.
4113 (create_exception_master_breakpoint): Likewise.
4114 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
4115 * infrun.c: Including necessary header files for handling SystemTap
4117 (handle_inferior_event): Handling longjmp breakpoint and exceptions
4118 via SystemTap probes.
4119 (check_exception_resume): Remove `func' argument. Handle exception
4120 unwinding breakpoint set via a SystemTap probe.
4121 (insert_exception_resume_from_probe): New function.
4123 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4124 Tom Tromey <tromey@redhat.com>
4125 Jan Kratochvil <jan.kratochvil@redhat.com>
4127 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
4128 (COMMON_OBS): Likewise.
4129 (HFILES_NO_SRCDIR): Add `probe'.
4130 * NEWS: Mention support for static and SystemTap probes.
4131 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
4132 SystemTap probes' arguments parser.
4133 * arm-linux-tdep.c: Including headers needed to perform the parsing
4134 of SystemTap probes' arguments.
4135 (arm_stap_is_single_operand): New function.
4136 (arm_stap_parse_special_token): Likewise.
4137 (arm_linux_init_abi): Initializing proper fields used by SystemTap
4138 probes' arguments parser.
4139 * ax-gdb.c (require_rvalue): Removing static declaration.
4140 (gen_expr): Likewise.
4141 * ax-gdb.h (gen_expr): Declaring function.
4142 (require_rvalue): Likewise.
4143 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
4144 (bkpt_probe_breakpoint_ops): New variable.
4145 (momentary_breakpoint_from_master): Set the `probe' value.
4146 (add_location_to_breakpoint): Likewise.
4147 (break_command_1): Using proper breakpoint_ops according to the
4148 argument passed by the user in the command line.
4149 (bkpt_probe_insert_location): New function.
4150 (bkpt_probe_remove_location): Likewise.
4151 (bkpt_probe_create_sals_from_address): Likewise.
4152 (bkpt_probe_decode_linespec): Likewise.
4153 (tracepoint_probe_create_sals_from_address): Likewise.
4154 (tracepoint_probe_decode_linespec): Likewise.
4155 (tracepoint_probe_breakpoint_ops): New variable.
4156 (trace_command): Using proper breakpoint_ops according to the
4157 argument passed by the user in the command line.
4158 (initialize_breakpoint_ops): Initializing breakpoint_ops for
4159 static probes on breakpoints and tracepoints.
4160 * breakpoint.h (struct bp_location) <probe>: New field.
4161 * cli-utils.c (skip_spaces_const): New function.
4162 (extract_arg): Likewise.
4163 * cli-utils.h (skip_spaces_const): Likewise.
4164 (extract_arg): Likewise.
4165 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
4166 * configure.ac: Append `stap-probe.o' to be generated when ELF
4168 * configure: Regenerate.
4169 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
4170 * elfread.c: Include `probe.h' and `arch-utils.h'.
4171 (probe_key): New variable.
4172 (elf_get_probes): New function.
4173 (elf_get_probe_argument_count): Likewise.
4174 (elf_evaluate_probe_argument): Likewise.
4175 (elf_compile_to_ax): Likewise.
4176 (elf_symfile_relocate_probe): Likewise.
4177 (stap_probe_key_free): Likewise.
4178 (elf_probe_fns): New variable.
4179 (elf_sym_fns): Add `sym_probe_fns' value.
4180 (elf_sym_fns_lazy_psyms): Likewise.
4181 (elf_sym_fns_gdb_index): Likewise.
4182 (_initialize_elfread): Initialize objfile cache for static
4184 * gdb_vecs.h (struct probe): New forward declaration.
4185 (probe_p): New VEC declaration.
4186 * gdbarch.c: Regenerate.
4187 * gdbarch.h: Regenerate.
4188 * gdbarch.sh (stap_integer_prefix): New variable.
4189 (stap_integer_suffix): Likewise.
4190 (stap_register_prefix): Likewise.
4191 (stap_register_suffix): Likewise.
4192 (stap_register_indirection_prefix): Likewise.
4193 (stap_register_indirection_suffix): Likewise.
4194 (stap_gdb_register_prefix): Likewise.
4195 (stap_gdb_register_suffix): Likewise.
4196 (stap_is_single_operand): New function.
4197 (stap_parse_special_token): Likewise.
4198 (struct stap_parse_info): Forward declaration.
4199 * i386-tdep.c: Including headers needed to perform the parsing
4200 of SystemTap probes' arguments.
4201 (i386_stap_is_single_operand): New function.
4202 (i386_stap_parse_special_token): Likewise.
4203 (i386_elf_init_abi): Initializing proper fields used by SystemTap
4204 probes' arguments parser.
4205 * i386-tdep.h (i386_stap_is_single_operand): New function.
4206 (i386_stap_parse_special_token): Likewise.
4207 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
4208 * mipsread.c (ecoff_sym_fns): Likewise.
4209 * objfiles.c (objfile_relocate1): Support relocation for static
4211 * parse.c (prefixify_expression): Remove static declaration.
4212 (initialize_expout): Likewise.
4213 (reallocate_expout): Likewise.
4214 * parser-defs.h (initialize_expout): Declare function.
4215 (reallocate_expout): Likewise.
4216 (prefixify_expression): Likewise.
4217 * ppc-linux-tdep.c: Including headers needed to perform the parsing
4218 of SystemTap probes' arguments.
4219 (ppc_stap_is_single_operand): New function.
4220 (ppc_stap_parse_special_token): Likewise.
4221 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
4222 probes' arguments parser.
4223 * probe.c: New file, for generic statically defined probe support.
4224 * probe.h: Likewise.
4225 * s390-tdep.c: Including headers needed to perform the parsing of
4226 SystemTap probes' arguments.
4227 (s390_stap_is_single_operand): New function.
4228 (s390_gdbarch_init): Initializing proper fields used by SystemTap
4229 probes' arguments parser.
4230 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
4231 * stap-probe.c: New file, for SystemTap probe support.
4232 * stap-probe.h: Likewise.
4233 * symfile.h: Include `gdb_vecs.h'.
4234 (struct sym_probe_fns): New struct.
4235 (struct sym_fns) <sym_probe_fns>: New field.
4236 * symtab.c (init_sal): Initialize `probe' field.
4237 * symtab.h (struct probe): Forward declaration.
4238 (struct symtab_and_line) <probe>: New field.
4239 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
4241 (stop_tracing): Likewise.
4242 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
4244 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4245 Tom Tromey <tromey@redhat.com>
4247 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
4248 and to compile agent expressions.
4249 * infrun.c (siginfo_make_value): New argument `ignore'.
4250 (siginfo_funcs): New struct.
4251 (_initialize_infrun): New argument when calling
4252 `create_internalvar_type_lazy'.
4253 * thread.c (thread_id_make_value): New argument `ignore'.
4254 (thread_funcs): New struct.
4255 (_initialize_thread): New argument when calling
4256 `create_internalvar_type_lazy'.
4257 * tracepoint.c (sdata_make_value): New argument `ignore'.
4258 (sdata_funcs): New struct.
4259 (_initialize_tracepoint): New argument when calling
4260 `create_internalvar_type_lazy'.
4261 * value.c (make_value): New struct.
4262 (create_internalvar_type_lazy): New argument `data'.
4263 (compile_internalvar_to_ax): New function.
4264 (value_of_internalvar): Properly handling `make_value' case.
4265 (clear_internalvar): Likewise.
4266 (show_convenience): Adding `TRY_CATCH' block.
4267 * value.h (internalvar_make_value): Delete, replace by...
4268 (struct internalvar_funcs): ... this.
4269 (create_internalvar_type_lazy) <fun>: Delete argument.
4270 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
4271 (compile_internalvar_to_ax): New function.
4272 * windows-tdep.c (tlb_make_value): New argument `ignore'.
4273 (tlb_funcs): New struct.
4274 (_initialize_windows_tdep): New argument when calling
4275 `create_internalvar_type_lazy'.
4277 2012-04-27 Mark Wielaard <mjw@redhat.com>
4279 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4280 see whether it is an address or a constant offset from DW_AT_low_pc.
4281 (dwarf2_record_block_ranges): Likewise.
4282 (read_partial_die): Likewise.
4284 2012-04-26 Mark Wielaard <mjw@redhat.com>
4286 * MAINTAINERS (Write After Approval): Add myself to the list.
4288 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4290 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4291 (proc_prettyprint_signal): Likewise.
4292 (proc_prettyprint_faultset): Likewise.
4293 (proc_prettyprint_fault): Likewise.
4294 (proc_prettyprint_actionset): Likewise.
4295 (proc_prettyprint_flags): Move to new proc-flags.c section.
4296 (proc_prettyfprint_flags): New prototype.
4297 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4298 (proc_syscall, proc_cursig): Likewise.
4299 (proc_set_kill_on_last_close): Likewise.
4300 (proc_unset_kill_on_last_close): Likewise.
4301 (proc_set_watchpoint): Make static.
4302 (proc_delete_dead_threads): Likewise.
4303 (procfs_set_watchpoint): Likewise.
4304 (_initialize_procfs): Add prototype.
4305 * proc-events.c: Include proc-utils.h.
4306 (init_syscall_table): Make static.
4307 * proc-api.c (_initialize_proc_api): Add prototype.
4308 * proc-flags.c: Include proc-utils.h.
4310 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4312 * configure.ac: Add AC_ARG_PROGRAM.
4313 * configure: Regenerate.
4315 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4317 Fix DW_AT_lower_bound defaults for DWARF-4+.
4318 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4319 high. New variable low_default_is_valid. Implement DWARF-4+
4320 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4321 no default by the DWARF standard.
4323 2012-04-26 Maciej W. Rozycki <macro@mips.com>
4324 Maciej W. Rozycki <macro@codesourcery.com>
4326 * infrun.c (handle_inferior_event): Move the check for return
4327 trampolines ahead of the check for function trampolines.
4328 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4329 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4330 (mips_str_mips16_ret_stub): Likewise.
4331 (mips_str_call_fp_stub): Likewise.
4332 (mips_str_call_stub): Likewise.
4333 (mips_str_fn_stub): Likewise.
4334 (mips_str_pic): Likewise.
4335 (mips_in_frame_stub): New function.
4336 (mips_unwind_pc): Return the return address rather than the PC
4337 if the PC of an intermediate frame is inside a call thunk.
4338 (mips_is_stub_suffix): New function.
4339 (mips_is_stub_mode): Likewise.
4340 (mips_get_mips16_fn_stub_pc): Likewise.
4341 (mips_skip_mips16_trampoline_code): Update to handle all the
4342 currently generated stub types. Don't recurse into __fn_stub
4343 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4344 Use cooked register accesses.
4345 (mips_in_return_stub): Reintroduce function.
4346 (mips_skip_trampoline_code): Traverse trampolines recursively.
4347 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4349 2012-04-26 Joel Brobecker <brobecker@adacore.com>
4353 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4355 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4356 * features/arm-with-m-vfp-d16.xml: New file. Describes
4357 Cortex-M with VFPv4-sp-d16 FPU register layout.
4358 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4359 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4360 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4361 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4362 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4364 2012-04-25 Doug Evans <dje@google.com>
4366 * cli/cli-decode.c (print_doc_line): Use stream instead of
4369 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4371 * features/arm-with-iwmmxt.c: Regenerate.
4372 * features/arm-with-m-fpa-layout.c: Likewise.
4373 * features/arm-with-m.c: Likewise.
4374 * features/arm-with-neon.c: Likewise.
4375 * features/arm-with-vfpv2.c: Likewise.
4376 * features/arm-with-vfpv3.c: Likewise.
4377 * features/mips-dsp-linux.c: Likewise.
4378 * features/mips-linux.c: Likewise.
4379 * features/mips64-dsp-linux.c: Likewise.
4380 * features/mips64-linux.c: Likewise.
4381 * features/s390-linux32.c: Likewise.
4382 * features/s390-linux32v1.c: Likewise.
4383 * features/s390-linux32v2.c: Likewise.
4384 * features/s390-linux64.c: Likewise.
4385 * features/s390-linux64v1.c: Likewise.
4386 * features/s390-linux64v2.c: Likewise.
4387 * features/s390x-linux64.c: Likewise.
4388 * features/s390x-linux64v1.c: Likewise.
4389 * features/s390x-linux64v2.c: Likewise.
4390 * features/tic6x-c62x-linux.c: Likewise.
4391 * features/tic6x-c62x.c: Likewise.
4392 * features/tic6x-c64x-linux.c: Likewise.
4393 * features/tic6x-c64x.c: Likewise.
4394 * features/tic6x-c64xp-linux.c: Likewise.
4395 * features/tic6x-c64xp.c: Likewise.
4396 * target-descriptions.c: Only generate `field_type' and `type'
4397 variables when needed.
4399 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4401 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4403 2012-04-25 Doug Evans <dje@google.com>
4405 Initial pass at Go language support.
4407 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4409 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4410 (YYFILES): Add go-exp.c.
4411 (YYOBJ): Add go-exp.o.
4412 (local-maintainer-clean): Delete go-exp.c.
4413 * defs.h (enum language): Add language_go.
4414 * dwarf2read.c: #include "go-lang.h".
4415 (fixup_go_packaging): New function.
4416 (process_full_comp_unit): Call it when processing Go CUs.
4417 (dwarf2_physname): Add Go support.
4418 (read_file_scope): Handle missing language spec for GNU Go.
4419 (set_cu_language): Handle DW_LANG_Go.
4420 * go-exp.y: New file.
4421 * go-lang.h: New file.
4422 * go-lang.c: New file.
4423 * go-typeprint.c: New file.
4424 * go-valprint.c: New file.
4425 * symtab.c: #include "go-lang.h".
4426 (symbol_set_language): Handle language_go.
4427 (symbol_find_demangled_name, symbol_set_names): Ditto.
4428 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4430 2012-04-24 Jim Meyering <meyering@redhat.com>
4432 avoid a few strncpy-induced buffer overruns
4433 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4434 fname and psargs before trying to concatenate.
4435 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4436 "name" before applying strchr.
4438 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4440 * CONTRIBUTE: Use unified diff instead of context diff when
4443 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4445 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4446 code. Handle JR.HB correctly.
4448 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4451 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4452 with the other MIPS16 helpers.
4454 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4456 * observer.sh: Conditionally declare `args', thus cleaning up
4457 unused instances of this variable.
4459 2012-04-24 Yao Qi <yao@codesourcery.com>
4461 Revert this patch to allow breakpoint always-inserted
4463 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4464 * breakpoint.c: Include record.h.
4465 (breakpoints_always_inserted_mode): Return false when the record
4468 * breakpoint.c (iterate_over_bp_locations): New.
4469 * breakpoint.h: Declare.
4470 New typedef walk_bp_location_callback.
4471 * record.c (record_open): Call record_init_record_breakpoints.
4472 (record_sync_record_breakpoints): New.
4473 (record_init_record_breakpoints): New.
4474 * NEWS: Mention supporting breakpoint always-inserted mode in
4477 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4479 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4482 2012-04-24 Yao Qi <yao@codesourcery.com>
4484 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4485 (is_catchpoint): ... it.
4486 (print_one_breakpoint_location): Caller update.
4487 * breakpoint.h: Update declaration.
4489 2012-04-23 David S. Miller <davem@davemloft.net>
4491 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4493 2012-04-23 Tom Tromey <tromey@redhat.com>
4495 * buildsym.c (add_free_pendings): Remove.
4496 * buildsym.h (add_free_pendings): Remove.
4498 2012-04-23 Doug Evans <dje@google.com>
4500 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4501 attr.u.unsnd instead of attr.u.addr.
4502 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4503 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4505 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4506 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4508 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4510 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4512 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4513 (mips_o32_return_value): Likewise.
4514 (mips_o64_return_value): Likewise.
4516 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4518 * ada-lang.c (ada_evaluate_subexp): Add cases for
4519 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4520 their treatment in eval.c.
4522 2012-04-21 David S. Miller <davem@davemloft.net>
4524 * sparc-tdep.c (X_DISP10): Define.
4525 (sparc_analyze_control_transfer): Handle compare-and-branch.
4527 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4529 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4530 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4532 2012-04-20 Nigel Stephens <nigel@mips.com>
4533 Maciej W. Rozycki <macro@codesourcery.com>
4535 * mips-tdep.c (mips_float_register_p): New function.
4536 (mips_convert_register_float_case_p): Use mips_float_register_p.
4537 (mips_register_type): Likewise.
4538 (mips_print_register): Likewise.
4539 (print_gp_register_row): Likewise.
4540 (mips_print_registers_info): Likewise.
4542 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4544 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4547 2012-04-20 Andrew Pinski <apinski@cavium.com>
4549 * MAINTAINERS (Write After Approval): Add myself to the list.
4551 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4553 * MAINTAINERS: Update my e-mail address.
4555 2012-04-20 Pedro Alves <palves@redhat.com>
4557 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4559 * configure: Regenerate.
4561 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4563 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4565 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4567 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4569 Fix compilation compatibility with python-2.4
4570 * python/py-type.c (convert_field): Cast ADDRSTRING for
4571 PyObject_SetAttrString as non-const. New comment.
4573 2012-04-19 Tom Tromey <tromey@redhat.com>
4575 * top.c (quit_target): Use all_cleanups.
4576 * main.c (captured_command_loop): Use all_cleanups.
4577 * exceptions.c (throw_exception): Use all_cleanups.
4579 2012-04-19 Pedro Alves <palves@redhat.com>
4581 * Makefile.in (GNULIB_BUILDDIR): New.
4582 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4583 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4584 (CLEANDIRS). Remove gnulib/import.
4585 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4587 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4588 (gnulib/import/Makefile): Replace gnulib/import with
4589 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4590 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4591 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4592 acx_configure_dir.m4.
4593 * acinclude.m4: Include acx_configure_dir.m4.
4594 * acx_configure_dir.m4: New file.
4595 * aclocal.m4: Regenerate.
4596 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4597 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4598 (GNULIB): New variable.
4599 (GNULIB_STDINT_H): Adjust.
4600 (AC_OUTPUT): Don't output gnulib/Makefile.
4601 * gdb/defs.h: Include build-gnulib/config.h.
4602 * aclocal.m4: Regenerate.
4603 * config.in: Regenerate.
4604 * configure: Regenerate.
4606 * gnulib/Makefile.in: New file.
4607 * gnulib/configure.ac: New file.
4608 * gnulib/aclocal.m4: New file.
4609 * gnulib/config.in: New file.
4610 * gnulib/configure: New file.
4611 * gnulib/: Re-run gnulib-tool to adjust.
4613 2012-04-19 Doug Evans <dje@google.com>
4615 * cleanups.h (struct cleanup): Move to cleanups.c.
4616 (make_cleanup_dtor_ftype): New typedef.
4617 (make_cleanup_dtor): Use it.
4618 (ALL_CLEANUPS): Replace with ...
4619 (all_cleanups): ... this. Declare. All uses updated.
4620 * cleanups.c: #include "gdb_assert.h".
4621 (sentinel_cleanup): New static global.
4622 (SENTINEL_CLEANUP): Define.
4623 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4624 (make_my_cleanup2): Assert result is non-NULL.
4625 (all_cleanups): New function.
4626 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4629 2012-04-19 Pedro Alves <palves@redhat.com>
4631 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4632 Adjust paths to gnulib imported files.
4634 2012-04-19 Pedro Alves <palves@redhat.com>
4636 * gnulib/: Move whole directory ...
4637 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4638 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4639 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4640 (aclocal_m4_deps): Adjust.
4641 * aclocal.m4: Regenerate.
4642 * configure: Regenerate.
4643 * configure.ac: Adjust AC_OUTPUT output.
4645 2012-04-19 Yao Qi <yao@codesourcery.com>
4647 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4649 * vec.c: Move it ...
4650 * common/vec.c: ... here.
4651 * vec.h: Move it ...
4652 * common/vec.h: ... here.
4654 2012-04-19 Yao Qi <yao@codesourcery.com>
4656 * gdb-code-style.el: New.
4658 2012-04-18 Pedro Alves <palves@redhat.com>
4660 Update gnulib from latest git.
4661 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4663 * gnulib/Makefile.am: Update.
4664 * gnulib/dummy.c: Update.
4665 * gnulib/extra/arg-nonnull.h: Update.
4666 * gnulib/extra/c++defs.h: Update.
4667 * gnulib/extra/update-copyright: Update.
4668 * gnulib/extra/warn-on-use.h: Update.
4669 * gnulib/inttypes.in.h: Update.
4670 * gnulib/m4/00gnulib.m4: Update.
4671 * gnulib/m4/extensions.m4: Update.
4672 * gnulib/m4/gnulib-cache.m4: Update.
4673 * gnulib/m4/gnulib-common.m4: Update.
4674 * gnulib/m4/gnulib-comp.m4: Update.
4675 * gnulib/m4/gnulib-tool.m4: Update.
4676 * gnulib/m4/include_next.m4: Update.
4677 * gnulib/m4/inttypes-pri.m4: Update.
4678 * gnulib/m4/inttypes.m4: Update.
4679 * gnulib/m4/longlong.m4: Update.
4680 * gnulib/m4/memchr.m4: Update.
4681 * gnulib/m4/memmem.m4: Update.
4682 * gnulib/m4/mmap-anon.m4: Update.
4683 * gnulib/m4/multiarch.m4: Update.
4684 * gnulib/m4/onceonly.m4: Update.
4685 * gnulib/m4/stddef_h.m4: Update.
4686 * gnulib/m4/stdint.m4: Update.
4687 * gnulib/m4/string_h.m4: Update.
4688 * gnulib/m4/warn-on-use.m4: Update.
4689 * gnulib/m4/wchar_h.m4: Update.
4690 * gnulib/m4/wchar_t.m4: Update.
4691 * gnulib/m4/wint_t.m4: Update.
4692 * gnulib/memchr.c: Update.
4693 * gnulib/memmem.c: Update.
4694 * gnulib/stddef.in.h: Update.
4695 * gnulib/stdint.in.h: Update.
4696 * gnulib/str-two-way.h: Update.
4697 * gnulib/string.in.h: Update.
4698 * gnulib/wchar.in.h: Update.
4700 * gnulib/extra/arg-nonnull.h: Delete.
4701 * gnulib/extra/c++defs.h: Delete.
4702 * gnulib/extra/warn-on-use.h: Delete.
4703 * gnulib/m4/wchar_h.m4: Delete.
4704 * gnulib/m4/wint_t.m4: Delete.
4705 * gnulib/wchar.in.h: Delete.
4707 * gnulib/extra/snippets/arg-nonnull.h: New.
4708 * gnulib/extra/snippets/c++defs.h: New.
4709 * gnulib/extra/snippets/warn-on-use.h: New.
4711 * aclocal.m4: Regenerate.
4712 * config.in: Regenerate.
4713 * configure: Regenerate.
4714 * gnulib/Makefile.in: Regenerate.
4716 2012-04-18 Pedro Alves <palves@redhat.com>
4718 Reimport the update-copyright module from gnulib
4719 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4721 * configure: Regenerate.
4722 * gnulib/Makefile.am: Update.
4723 * gnulib/Makefile.in: Regenerate.
4724 * gnulib/extra/update-copyright: Update.
4725 * gnulib/m4/gnulib-cache.m4: Update.
4726 * gnulib/m4/gnulib-comp.m4: Update.
4728 2012-04-18 Tristan Gingold <gingold@adacore.com>
4730 * configure.ac (aix): Put -lpthread into libs.
4731 * configure: Regenerate.
4733 2012-04-18 Tom Tromey <tromey@redhat.com>
4735 * linespec.c (convert_linespec_to_sals): Don't use
4737 (compare_msymbols): Arguments are minsym_and_objfile, not
4738 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4740 2012-04-18 Pedro Alves <palves@redhat.com>
4742 Revert gnulib/ part of:
4743 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4744 Copyright year update in most files (performed by copyright.sh).
4746 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4748 Fix 64-bit constants on 32-bit hosts.
4749 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4750 from unsigned long to ULONGEST.
4751 (read_signed_leb128): Change declaration return type from long to
4753 (dwarf2_const_value_attr): Change declaration parameter value from long
4755 (dwarf2_compute_name): Change variable value from long to LONGEST.
4756 (read_unsigned_leb128): Change return type, variable result and some
4757 casts from unsigned long to ULONGEST.
4758 (read_signed_leb128): Change return type, variable result and some
4759 casts from long to LONGEST.
4760 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4761 value from long to LONGEST.
4762 (dwarf2_const_value): Change variable value from long to LONGEST.
4763 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4764 plongest and hex_string.
4765 * symtab.h (struct general_symbol_info): Change ivalue from long to
4766 LONGEST, remove the comment.
4767 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4768 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4770 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4773 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4774 * ada-lang.c (ada_discrete_type_high_bound)
4775 (ada_discrete_type_low_bound): Fix function comment. Use
4776 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4777 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4778 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4779 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4780 Use TYPE_FIELD_ENUMVAL.
4781 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4782 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4783 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4784 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4786 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4787 * dwarf2read.c (process_enumeration_scope): Likewise.
4788 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4790 (class StructMainTypePrettyPrinter): Support also
4791 FIELD_LOC_KIND_ENUMVAL.
4792 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4794 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4795 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4796 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4797 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4799 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4800 accommodate enumval.
4801 (struct call_site): Adjust loc_kind to accommodate enumval.
4802 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4803 (TYPE_FIELD_ENUMVAL): New macros.
4804 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4805 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4807 * p-typeprint.c (pascal_type_print_base): Likewise.
4808 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4810 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4811 * python/py-type.c (convert_field): New variable addrstring. Use
4812 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4813 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4814 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4815 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4817 * valprint.c (generic_val_print): Likewise.
4819 2012-04-17 Doug Evans <dje@google.com>
4821 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4823 * dwarf2read.c: Whitespace fixes.
4824 (lookup_signatured_type): Tweak comment.
4825 (get_die_type_at_offset): Fix comment.
4827 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4829 * xcoffread.c (xcoff_secnum_to_sections): New function.
4830 (secnum_to_section, secnum_to_bfd_section): Reimplement
4831 using xcoff_secnum_to_sections. Rename "secnum" parameter
4833 (RECORD_MINIMAL_SYMBOL): Delete.
4834 (record_minimal_symbol): New function.
4835 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4836 by call to record_minimal_symbol and set misc_func_recorded
4837 to 1. Set last_csect_sec to the XCOFF section index instead
4838 of GDB's section_offset index. Update calls to
4839 prim_record_minimal_symbol_and_info to pass the BFD section
4842 2012-04-17 Joel Brobecker <brobecker@adacore.com>
4844 * xcoffread.c (read_xcoff_symtab): Delete variables
4845 last_csect_val and last_csect_sec and associated code.
4847 2012-04-17 Doug Evans <dje@google.com>
4849 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4850 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4851 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4852 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4854 * cleanups.h: New file.
4855 * cleanups.c: New file.
4856 * Makefile.in (SFILES): Add cleanups.c.
4857 (HFILES_NO_SRCDIR): Add cleanups.h.
4858 (COMMON_OBS): Add cleanups.o.
4859 * defs.h (struct cleanup): Moved to cleanups.h.
4860 (do_cleanups,do_final_cleanups): Ditto.
4861 (discard_cleanups,discard_final_cleanups): Ditto
4862 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4863 (save_cleanups,save_final_cleanups): Ditto.
4864 (restore_cleanups,restore_final_cleanups): Ditto.
4865 (null_cleanup): Ditto.
4866 (make_my_cleanup,make_my_cleanup2): Ditto.
4867 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4868 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4869 (do_cleanups,do_final_cleanups): Ditto.
4870 (discard_cleanups,discard_final_cleanups): Ditto
4871 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4872 (save_cleanups,save_final_cleanups): Ditto.
4873 (restore_cleanups,restore_final_cleanups): Ditto.
4874 (null_cleanup): Ditto.
4875 (make_my_cleanup,make_my_cleanup2): Ditto.
4876 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4878 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4880 (make_cleanup_dyn_string_delete): Ditto.
4881 (make_cleanup_ui_file_delete): Ditto.
4882 (make_cleanup_ui_out_redirect_pop): Ditto.
4883 (make_cleanup_free_section_addr_info): Ditto.
4884 (make_cleanup_restore_integer): Ditto.
4885 (make_cleanup_unpush_target): Ditto.
4886 (make_cleanup_value_free_to_mark): Ditto.
4887 (make_cleanup_value_free): Ditto.
4888 (make_cleanup_free_so): Ditto.
4890 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4892 New option "set debug auto-load".
4893 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4894 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4895 (auto_load_safe_path_vec_update)
4896 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4898 (file_is_auto_load_safe): New parameters debug_fmt and ....
4899 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4900 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4901 caller by explanatory string.
4902 (_initialize_auto_load): Register "set debug auto-load".
4903 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4905 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4906 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4907 by explanatory string.
4908 * main.c (captured_main): Likewise.
4909 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4910 (source_section_scripts): Likewise.
4912 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4914 New option "set auto-load safe-path".
4915 * NEWS: New commands "set auto-load safe-path"
4916 and "show auto-load safe-path".
4917 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4918 (auto_load_safe_path, auto_load_safe_path_vec)
4919 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4920 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4921 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4922 (source_gdb_script_for_objfile): New variable is_safe. Call
4923 file_is_auto_load_safe. Return if it is not.
4924 (struct loaded_script): New field loaded.
4925 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4926 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4927 output "Missing" to "No".
4928 (_initialize_auto_load): New variable cmd. Initialize
4929 auto_load_safe_path. Register "set auto-load safe-path",
4930 "show auto-load safe-path" and "add-auto-load-safe-path".
4931 * auto-load.h (maybe_add_script): Add parameter loaded.
4932 (file_is_auto_load_safe): New declaration.
4933 * config.in: Regenerate.
4934 * configure: Regenerate.
4935 * configure.ac: New parameters --with-auto-load-safe-path
4936 and --without-auto-load-safe-path.
4937 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4938 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4939 * main.c (captured_main): Check file_is_auto_load_safe for
4941 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4942 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4943 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4946 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4948 auto-load: Implementation.
4949 * NEWS: New descriptions for "info auto-load",
4950 "info auto-load gdb-scripts", "info auto-load python-scripts",
4951 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4952 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4953 and "show auto-load-scripts". New description for "set auto-load",
4954 "show auto-load", "set auto-load gdb-scripts",
4955 "show auto-load gdb-scripts", "set auto-load python-scripts",
4956 "show auto-load python-scripts", "set auto-load local-gdbinit",
4957 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4958 "show auto-load libthread-db".
4959 * auto-load.c: Remove include python/python-internal.h. Add includes
4960 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4962 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4963 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4964 (gdbpy_global_auto_load): Rename to ...
4965 (global_auto_load): ... here.
4966 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4967 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4968 (script_language_gdb, source_gdb_script_for_objfile): New.
4969 (struct loaded_script): New field language.
4970 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4972 (maybe_add_script): Add parameter language. Drop redundant
4973 entry.full_path initialization. Initialize entry.language and
4975 (auto_load_objfile_script): Change parameter suffix to language.
4976 Remove the call of maybe_add_script.
4977 Call language->source_script_for_objfile.
4978 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4980 (collect_matching_scripts): Adjust it for
4981 struct collect_matching_scripts_data.
4982 (auto_load_info_scripts_pattern_nl): New variable.
4983 (info_auto_load_scripts): Rename to ...
4984 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4985 for struct collect_matching_scripts_data.
4986 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4987 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4988 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4989 (auto_load_info_cmdlist_get): New.
4990 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4991 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4992 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4993 "info auto-load local-gdbinit".
4994 * auto-load.h (struct script_language): New.
4995 (gdbpy_global_auto_load): Rename to ...
4996 (global_auto_load): ... here.
4997 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4998 (auto_load_local_gdbinit_loaded): New declarations.
4999 (maybe_add_script): New parameter language.
5000 (auto_load_objfile_script): Change parameter suffix to language.
5001 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
5002 (auto_load_info_scripts, auto_load_set_cmdlist_get)
5003 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
5005 * linux-thread-db.c: Include auto-load.h and ctype.h.
5006 (auto_load_thread_db, show_auto_load_thread_db): New.
5007 (struct thread_db_info): New field filename.
5008 (delete_thread_db_info): Call xfree for FILENAME.
5009 (try_thread_db_load): Initialize FILENAME.
5010 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
5011 if !AUTO_LOAD_THREAD_DB.
5012 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
5013 (_initialize_thread_db): Install auto_load_thread_db
5014 as "set auto-load libthread-db" and install info_auto_load_libthread_db
5015 as "info auto-load libthread-db".
5016 * main.c (captured_main): Rename gdbpy_global_auto_load to
5017 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
5018 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
5019 (print_gdb_help): Extend the help for 'local init file'.
5020 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
5021 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
5022 (auto_load_scripts): Rename to ...
5023 (auto_load_python_scripts): ... here, update the comment.
5024 (gdbpy_load_auto_script_for_objfile): New declaration.
5025 (show_auto_load_python_scripts, script_language_python)
5026 (gdbpy_load_auto_script_for_objfile): New.
5027 (source_section_scripts): Refactor the code.
5028 (load_auto_scripts_for_objfile): Rename to ...
5029 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
5030 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
5031 (info_auto_load_python_scripts): New.
5032 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
5033 Rename "set auto-load-scripts" to "set auto-load python-scripts".
5034 Register "set auto-load-scripts" as its deprecated alias. Register
5035 "info auto-load python-scripts". Register "info auto-load-scripts" as
5036 its deprecated alias.
5037 (load_auto_scripts_for_objfile): Rename to ...
5038 (gdbpy_load_auto_scripts_for_objfile): ... here.
5039 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
5040 (gdbpy_load_auto_scripts_for_objfile): ... here.
5042 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5044 auto-load: Move files.
5045 * Makefile.in (SFILES): Add auto-load.c.
5046 (HFILES_NO_SRCDIR): Add auto-load.h.
5047 (COMMON_OBS): Add auto-load.o.
5048 (distclean): Change .gdbinit for gdb-gdb.gdb.
5049 * auto-load.c: New file, with parts from python/py-auto-load.c.
5050 * auto-load.h: New file, with parts from python/python.h.
5051 * configure: Regenerate.
5052 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
5053 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
5054 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
5055 * main.c: Include auto-load.h.
5056 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
5057 command.h, observer.h and progspace.h to auto-load.c. Add include
5059 (gdbpy_global_auto_load, struct auto_load_pspace_info)
5060 (struct loaded_script, auto_load_pspace_data)
5061 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
5062 (hash_loaded_script_entry, eq_loaded_script_entry)
5063 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
5064 (maybe_add_script): Move to auto-load.c.
5065 (source_section_scripts): Change maybe_add_script parameters passing,
5066 use script_not_found_warning_print.
5067 (clear_section_scripts, auto_load_objfile_script)
5068 (auto_load_new_objfile, loaded_script_ptr)
5069 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
5070 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
5071 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
5072 auto_load_new_objfile and info_auto_load_scripts initizations to
5074 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
5076 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5079 * charset.c (find_charset_names): Remove variables ix and elt.
5080 Use free_char_ptr_vec.
5081 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
5082 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5083 debugdir_end. New variable debugdir_len.
5084 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
5085 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
5087 * progspace.c (clear_program_space_solib_cache): Remove variables ix
5088 and elt. Use free_char_ptr_vec.
5089 * source.c (add_path): Remove variables argv, arg and argv_index.
5090 New variables dir_vec, back_to, ix and name.
5091 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
5092 make_cleanup_freeargv. Remove variable separator. Simplify the code
5093 no longer expecting DIRNAME_SEPARATOR.
5094 (openp): Remove variable p, p1 and len. New variables dir_vec,
5095 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
5096 no longer expecting DIRNAME_SEPARATOR.
5097 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
5098 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5100 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
5101 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
5102 (dirnames_to_char_ptr_vec): New functions.
5104 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5107 * source.c (add_path): Remove always true conditional 'p == 0' and
5108 unindent its code block.
5110 2012-04-17 Pedro Alves <palves@redhat.com>
5112 * gdbtypes.h (FIELD_BITPOS): Rename to ...
5113 (FIELD_BITPOS_LVAL): ... this.
5114 (FIELD_BITPOS): New.
5115 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
5116 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
5117 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
5119 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
5121 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
5122 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
5123 * target-descriptions.c (tdesc_gdb_type): Adjust to use
5126 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5128 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
5129 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
5130 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
5131 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
5132 * jv-lang.c (java_link_class_type): Likewise, once.
5133 * stabsread.c (read_enum_type): Likewise.
5135 2012-04-16 Yao Qi <yao@codesourcery.com>
5137 * common/agent.c (agent_run_command): Add one more parameter `len'.
5139 * common/agent.h: Update declaration.
5140 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5142 (linux_child_static_tracepoint_markers_by_strid): Ditto.
5144 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
5147 * value.c (value_actual_type): New function.
5148 * value.h (value_actual_type): New declaration.
5149 * varobj.c (update_type_if_necessary): New function.
5150 (varobj_create): Call value_actual_type instead of
5152 (install_dynamic_child): distinct changed and type changed MI variable
5154 (update_dynamic_varobj_children): Updated for install_dynamic_child
5155 change. All callers updated.
5156 (varobj_update): Support for MI variable object type change if
5157 the value changed and RTTI is used to determine the type.
5158 (create_child_with_value): Call value_actual_type instead of
5160 (adjust_value_for_child_access): Extended with a new parameter which
5161 specify whether the given value should be casted to enclosing type.
5162 All callers updated.
5164 2012-04-14 Yao Qi <yao@codesourcery.com>
5166 Import gnulib module inttypes from git
5167 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5168 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
5169 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
5170 gnulib/m4/inttypes-pri.m4
5171 * aclocal.m4, config.in, configure: Regenerated.
5172 * gnulib/Makefile.am: Update.
5173 * gnulib/Makefile.in: Update.
5174 * gnulib/m4/gnulib-cache.m4: Update.
5175 * gnulib/m4/gnulib-comp.m4: Update.
5176 * gnulib/inttypes.in.h: New.
5177 * gnulib/m4/inttypes-pri.m4: New.
5178 * gnulib/m4/inttypes.m4: New.
5180 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
5182 * infrun.c (resume): Update PC address to the real PC after
5183 preparing to do displaced stepping.
5185 2012-04-12 Doug Evans <dje@google.com>
5187 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
5188 All callers updated.
5190 2012-04-12 Mark Kettenis <kettenis@gnu.org>
5192 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
5194 2012-04-12 Doug Evans <dje@google.com>
5196 * dwarf2read.c (create_all_type_units): Renamed from
5197 create_debug_types_hash_table. All callers updated.
5199 * dwarf2read.c (create_signatured_type_table_from_index): Rename
5200 local type_sig to sig_type, type_offset to type_offset_in_tu.
5201 (hash_signatured_type): Renamed from hash_type_signature,
5202 all callers updated.
5203 (eq_signatured_type): Renamed from eq_type_signature,
5204 all callers updated.
5205 (create_debug_types_hash_table): Rename local type_sig to sig_type.
5206 (process_enumeration_scope): Ditto.
5207 (lookup_signatured_type_at_offset): Ditto.
5208 (load_full_type_unit, read_signatured_type): Ditto.
5210 2012-04-12 Yao Qi <yao@codesourcery.com>
5212 * remote.c (async_remote_interrupt): Correct function name in
5214 (async_remote_interrupt_twice): Ditto.
5216 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
5218 * source.c (find_and_open_source): Consistently pass resulting
5219 full path through xfullpath.
5221 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5223 Provide more specific displaced-stepping memory error message.
5224 * infrun.c (displaced_step_prepare): New variable status. Call
5225 target_read_memory instead of read_memory, provide more specific
5228 2012-04-11 Tristan Gingold <gingold@adacore.com>
5231 * darwin-nat.c (darwin_execvp): Revert previous patch.
5233 2012-04-11 Tristan Gingold <gingold@adacore.com>
5236 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
5239 2012-04-11 Tristan Gingold <gingold@adacore.com>
5241 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5244 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
5246 New command 'explore' which helps explore values and types in
5248 * NEWS: Add an entry about the new 'explore' command.
5249 * data-directory/Makefile.in: Add gdb/command/explore.py
5250 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
5251 command using the GDB Python API.
5253 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5255 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
5256 extension in jump target calculation.
5258 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
5260 * mips-tdep.c (mips32_next_pc): Handle JALX.
5262 2012-04-10 Yao Qi <yao@codesourcery.com>
5264 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
5266 2012-04-10 Yao Qi <yao@codesourcery.com>
5268 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
5269 and gnulib/m4/gnulib-tool.m4.
5271 2012-04-10 Doug Evans <dje@google.com>
5273 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
5274 (load_partial_dies): Clarify comment.
5275 (find_partial_die): Support rereading type units.
5276 Clarify CU handling, if we know offset is in CU, don't search for the
5277 containing CU. Add comment regarding memory waste.
5279 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
5281 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5282 i386/x32-avx and i386/x32-avx-linux.
5283 (i386/x32-expedite): New.
5284 (i386/x32-linux-expedite): Likewise.
5285 (i386/x32-avx-expedite): Likewise.
5286 (i386/x32-avx-linux-expedite): Likewise.
5287 ($(outdir)/i386/x32.dat): Likewise.
5288 ($(outdir)/i386/x32-linux.dat): Likewise.
5289 ($(outdir)/i386/x32-avx.dat): Likewise.
5290 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5292 * features/i386/x32-avx-linux.xml: New file.
5293 * features/i386/x32-avx.xml: Likewise.
5294 * features/i386/x32-core.xml: Likewise.
5295 * features/i386/x32-linux.xml: Likewise.
5296 * features/i386/x32.xml: Likewise.
5298 * features/i386/x32-avx-linux.c: New. Generated.
5299 * features/i386/x32-avx.c: Likewise.
5300 * features/i386/x32-linux.c: Likewise.
5301 * features/i386/x32.c: Likewise.
5302 * regformats/i386/x32-avx-linux.dat: Likewise.
5303 * regformats/i386/x32-avx.dat: Likewise.
5304 * regformats/i386/x32-linux.dat: Likewise.
5305 * regformats/i386/x32.dat: Likewise.
5307 2012-04-10 Tristan Gingold <gingold@adacore.com>
5309 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5310 code to kill the inferior.
5312 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5314 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5316 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5318 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
5319 (yyvsp): New defines.
5320 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5322 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5324 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5326 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5328 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5331 2012-04-09 Mark Kettenis <kettenis@gnu.org>
5333 * sparc64-tdep.c (sparc64_store_arguments)
5334 (sparc64_store_arguments): Fix coding style.
5336 2012-04-07 Mark Kettenis <kettenis@gnu.org>
5338 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5339 complex floats, adjust some related comments and tighten a related
5341 (sparc64_extract_return_value): Handle complex floats.
5343 2012-04-07 Doug Evans <dje@google.com>
5345 * dwarf2read.c (load_partial_dies): Change condition to assert.
5347 2012-04-06 Doug Evans <dje@google.com>
5349 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5352 2012-04-05 Kevin Buettner <kevinb@redhat.com>
5354 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5356 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5357 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5360 2012-04-05 Keith Seitz <keiths@redhat.com>
5362 * linespec.c (decode_compound): Remove.
5363 (enum offset_relative_sign): New enum.
5364 (struct line_offset): New struct.
5365 (struct linespec): New struct.
5366 (struct linespec_state): Move file_symtabs,
5367 user_filename, and user_function into struct linespec.
5368 Make result an anonymous struct holding vectors of
5369 symbolp and minsym_and_objfile_d.
5370 Add language member.
5371 (enum ls_token_type): New enum.
5372 (linespec_keywords): New array.
5373 (struct ls_token): New struct.
5374 (struct ls_parser): New struct.
5375 (linespec_lexer_lex_number): New function.
5376 (linespec_lexer_lex_keyword): New function.
5377 (is_ada_operator): New function.
5378 (skip_quote_char): New function.
5379 (copy_token_string): New function.
5380 (is_closing_quote_enclosed): New function.
5381 (find_parameter_list_end): New function.
5382 (linespec_lexer_lex_string): New function.
5383 (linespec_lexer_lex_one): New function.
5384 (linespec_lexer_consume_token): New function.
5385 (linespec_lexer_peek_token): New function.
5386 (cplusplus_error): Remove unused function.
5387 (find_methods): Update comment.
5388 (find_toplevel_char): Return const.
5389 (is_objc_method_format): Remove unused function.
5390 (find_toplevel_string): New function.
5391 (is_linespec_boundary): Remove.
5392 (symbol_not_found_error): New function.
5393 (find_method_overload_end): Remove function.
5394 (unexpected_linespec_error): New function.
5395 (keep_name_info): Remove.
5396 (linespec_parse_line_offset): New function.
5397 (linespec_parse_basic): New function.
5398 (canonicalize_linespec): New function.
5399 (decode_line_internal): Remove.
5400 (create_sals_line_offset): New function adapted from
5402 (convert_linespec_to_sals): New function.
5403 (parse_linespec): New function.
5404 (linespec_parser_new): New function.
5405 (linespec_state_destructor): Change parameter type to
5406 struct linespec_state *.
5407 Add language parameter.
5408 Remove freeing of moved members.
5409 (linespec_parser_delete): New function.
5410 (decode_line_full): Use parse_linespec and linespec_parser_new.
5411 (decode_line_1): Likewise.
5412 (decode_indirect): Rename to ...
5413 (linespec_expression_to_pc): ... this and rewrite
5414 to simply find CORE_ADDR, storing this result for later
5416 (locate_first_half): Remove.
5417 (deocde_objc): Add parameter LS.
5418 Initialize new struct collect_info members.
5419 Handle minimal symbols, too.
5420 (decode_compound): Delete.
5421 (lookup_prefix_sym): Rewrite.
5422 (compare_msymbols): New function.
5423 (find_method): Rewrite.
5424 Do not call cplusplus_error.
5425 (symtabs_from_filename): Rewrite.
5426 (collect_function_symbols): Delete.
5427 (find_function_symbols): Rewrite without ARGPTR-style
5429 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5430 (decode_dollar): Adapted and renamed to ...
5431 (linespec_parse_variable): ... this.
5432 (find_linespec_symbols): New function.
5433 (decode_label): Adapted and renamed to ...
5434 (find_label_symbols): ... this.
5435 (decode_digits_list_mode): Add and use LS argument.
5436 (decode_digits_ordinary): Likewise.
5437 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5438 If in list mode, allow any symbol class. Otherwise, only
5439 permit LOC_BLOCK symbols.
5440 (minsym_found): Update comments.
5441 (search_minsyms_for_name): Do not convert the matching symbol
5442 into a SAL. Simply push the symbol and objfile into the
5444 (decode_variable): Delete. Contents adapted into
5445 find_linespec_symbols.
5447 * cp-support.c (SKIP_SPACE): Remove.
5448 (operator_tokens): Remove unused global.
5449 (cp_validate_operator): Remove.
5450 * cp-support.h (cp_validate_operator): Remove declaration.
5452 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5454 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5455 for TYPE_VPTR_FIELDNO.
5456 * valprint.c (valprint_check_validity): Make it global, move the
5457 function comment ...
5458 * value.h (valprint_check_validity): ... to this new declaration.
5460 2012-04-02 Tristan Gingold <gingold@adacore.com>
5462 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5463 the STATE32 api for i386 state.
5464 (i386_darwin_store_inferior_registers): Likewise.
5466 2012-04-02 Tristan Gingold <gingold@adacore.com>
5468 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5470 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5473 2012-04-02 Tristan Gingold <gingold@adacore.com>
5476 * darwin-nat.c (darwin_execvp): Set binary preference.
5478 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5480 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5482 2012-03-30 Tom Tromey <tromey@redhat.com>
5484 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5485 of TRY_CATCH. Fix error handling.
5486 * python/py-value.c (convert_value_from_python): Move 'old'
5487 declaration to innermost scope.
5489 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5490 Andrey Smirnov <andrew.smirnov@gmail.com>
5492 -Wshadow warning fix.
5493 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5494 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5495 Adjust code accordingly.
5497 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5499 * ada-lang.c (symbol_completion_add): Rename parameter
5500 "encoded" into "encoded_p". Ajust code and documentation
5503 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5504 Andrey Smirnov <andrew.smirnov@gmail.com>
5506 -Wshadow warning fix.
5507 * ada-lang.c (symbol_completion_add): Rename parameter
5508 "wild_match" into wild_match_p. Update code and documentation
5511 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5513 * ada-lang.c (symbol_completion_match): Rename parameter
5514 "encoded" into "encoded_p". Ajust code and documentation
5517 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5518 Andrey Smirnov <andrew.smirnov@gmail.com>
5520 -Wshadow warning fix.
5521 * ada-lang.c (symbol_completion_match): Rename parameter
5522 "wild_match" into "wild_match_p". Adjust code and function
5523 documentation accordingly.
5525 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5526 Andrey Smirnov <andrew.smirnov@gmail.com>
5528 -Wshadow warning fix.
5529 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5530 "symbol_info" into "info". Adjust code accordingly.
5531 (ada_lookup_symbol): Likewise.
5533 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5535 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5536 of this function's documentation.
5538 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5539 Andrey Smirnov <andrew.smirnov@gmail.com>
5541 -Wshadow warning fix.
5542 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5543 variable into "wild_match_p". Adjust code accordingly.
5545 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5546 Andrey Smirnov <andrew.smirnov@gmail.com>
5548 -Wshadow warning fix.
5549 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5550 parameter into "wild_match_p". Adjust code accordingly.
5551 Document this parameter in the function description.
5553 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5554 Andrey Smirnov <andrew.smirnov@gmail.com>
5556 -Wshadow warning fix.
5557 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5558 "wild_match" parameter to "wild_match_p" (-Wshadow).
5560 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5562 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5563 in function documentation.
5565 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5566 Andrey Smirnov <andrew.smirnov@gmail.com>
5568 -Wshadow warning fix.
5569 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5570 variable into wild_match_p. Adjust code accordingly.
5572 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5573 Andrey Smirnov <andrew.smirnov@gmail.com>
5575 * ada-valprint.c (ada_val_print_1): Move the code handling
5576 TYPE_CODE_ENUM inside its own lexical block. Declare
5577 variables len and val there, instead of in the function's
5578 top level block. Avoid declaring deref_val again in a way
5579 that shadows another variable of the same name declared
5580 in one of the up-level blocks. Just re-use the up-level
5583 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5585 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5586 Replace block_found argument by symbol_info. Adjust
5587 implementation accordingly. Add function documentation.
5588 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5590 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5591 * ada-exp.y (write_object_renaming): Adjust to new
5592 ada_lookup_encoded_symbol API.
5594 2012-03-29 Joel Brobecker <brobecker@adacore.com>
5596 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5599 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
5601 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5602 (v850_register_name): Add the mpu and fpu register names.
5603 (v850e_register_name): Add the mpu and fpu register names.
5604 (v850e2_register_name): New function.
5605 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
5608 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5610 * NEWS: Add entry for Ada varobj support.
5612 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5614 * varobj.c (default_value_is_changeable_p): New function,
5615 extracted from varobj_value_is_changeable_p. Add declaration.
5616 (ada_value_is_changeable_p): New function, extracted from
5617 varobj_value_is_changeable_p. Add declaration.
5618 (struct language_specific): New field "value_is_changeable_p".
5619 (languages): Add entries for new field.
5620 (varobj_create): Set language before calling install_new_value.
5621 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5622 "value_is_changeable_p" language callback.
5624 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5626 * ada-varobj.h, ada-varobj.c: New files.
5627 * Makefile.in (SFILES): Add ada-varobj.c.
5628 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5629 (COMMON_OBS): Add ada-varobj.o.
5631 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5633 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5634 (struct language_specific): New field "value_has_mutated".
5635 (languages): Set field "value_has_mutated" in each entry of array.
5636 (varobj_value_has_mutated): New function.
5637 (varobj_udpdate): Add handling of type mutation.
5638 (value_of_root): Add handling of type mutation.
5639 (ada_value_has_mutated): New function.
5641 2012-03-28 Pedro Alves <palves@redhat.com>
5643 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5644 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5646 2012-03-28 Tom Tromey <tromey@redhat.com>
5648 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5649 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5652 2012-03-28 Tom Tromey <tromey@redhat.com>
5654 * .dir-locals.el: New file.
5656 2012-03-28 Pedro Alves <palves@redhat.com>
5658 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5660 2012-03-28 Joel Brobecker <brobecker@adacore.com>
5662 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5665 2012-03-27 Pedro Alves <palves@redhat.com>
5667 Eliminate struct ui_stream.
5669 * ui-out.h (struct ui_stream): Delete.
5670 (ui_out_field_stream): Adjust prototype.
5671 (ui_out_stream_new, ui_out_stream_delete)
5672 (make_cleanup_ui_out_stream_delete): Delete declarations.
5673 * ui-out.c (ui_out_field_stream): Change prototype to take a
5674 ui_file instead of a ui_stream. Adjust.
5675 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5676 (make_cleanup_ui_out_stream_delete): Delete.
5677 * breakpoint.c (print_breakpoint_location)
5678 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5679 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5680 * disasm.c (dump_insns): Ditto.
5681 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5683 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5684 ui_stream/ui_out_stream_new.
5685 * infcmd.c (print_return_value): Ditto.
5686 * osdata.c (info_osdata_command): Don't allocate a local
5688 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5689 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5690 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5691 allocate a local ui_stream.
5692 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5693 instead of ui_stream/ui_out_stream_new.
5694 (list_args_or_locals): Don't allocate a local ui_stream.
5695 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5696 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5697 ui_stream/ui_out_stream_new.
5698 * cli/cli-setshow.c (do_setshow_command): Ditto.
5700 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
5702 * arm-linux-tdep.c (arm_linux_init_abi): Call
5703 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5704 * arm-tdep.c (arm_process_record): New function.
5705 (deallocate_reg_mem): New function.
5706 (decode_insn): New function.
5707 (thumb_record_branch): New function.
5708 (thumb_record_ldm_stm_swi(): New function.
5709 (thumb_record_misc): New function.
5710 (thumb_record_ld_st_stack): New function.
5711 (thumb_record_ld_st_imm_offset): New function.
5712 (thumb_record_ld_st_reg_offset(): New function.
5713 (thumb_record_add_sub_cmp_mov): New function.
5714 (thumb_record_shift_add_sub): New function.
5715 (arm_record_coproc_data_proc): New function.
5716 (arm_record_coproc): New function.
5717 (arm_record_b_bl): New function.
5718 (arm_record_ld_st_multiple): New function.
5719 (arm_record_ld_st_reg_offset): New function.
5720 (arm_record_ld_st_imm_offset): New function.
5721 (arm_record_data_proc_imm): New function.
5722 (arm_record_data_proc_misc_ld_str): New function.
5723 (arm_record_extension_space): New function.
5724 (arm_record_strx): New function.
5725 (sbo_sbz): New function.
5726 (struct insn_decode_record): New structure for arm insn record.
5727 (REG_ALLOC): New macro for reg allocations.
5728 (MEM_ALLOC): New macro for memory allocations.
5729 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
5731 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5733 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5734 (store_register): Likewise.
5736 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
5738 * MAINTAINERS (Write After Approval): Add myself to the list.
5740 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5742 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5743 Describe also the option "auto".
5745 2012-03-22 Richard Henderson <rth@redhat.com>
5747 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5748 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5750 2012-03-22 Richard Henderson <rth@redhat.com>
5752 * jit.c (jit_read_code_entry): Compute alignment and offset of
5753 int64_t member before computing entry_size.
5755 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5757 Python scripting: Add new method Value.referenced_value to
5758 gdb.Value which can dereference pointer as well as reference
5760 * NEWS: Add entry under 'Python scripting' about the new method
5761 Value.referenced_value on gdb.Value objects.
5762 * python/py-value.c (valpy_referenced_value): New function
5763 defining a new method on gdb.Value objects which can dereference
5764 pointer and reference values.
5766 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5768 * MAINTAINERS (Write After Approval): Add myself to the list.
5770 2012-03-21 Kevin Buettner <kevinb@redhat.com>
5772 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5773 in addition to "main".
5775 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5777 * expression.h (op_name): Add declaration.
5778 * expprint.c (op_name): Remove declaration. Make non-static.
5779 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5781 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5783 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5785 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5786 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5787 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5788 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5789 (linux_nat_get_siginfo): Likewise.
5790 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5791 (linux_nat_get_siginfo): Likewise.
5792 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5793 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5794 * procfs.c (gdb_siginfo_t): Likewise.
5796 2012-03-21 Mike Frysinger <vapier@gentoo.org>
5798 * .gitignore: Ignore more files.
5800 2012-03-20 Pedro Alves <palves@redhat.com>
5802 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5805 2012-03-20 Yao Qi <yao@codesourcery.com>
5807 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5810 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5812 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5813 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5814 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5816 * dwarf2expr.h (cu_offset, sect_offset): New types.
5817 (struct dwarf_expr_context_funcs) <dwarf_call>
5818 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5820 (struct dwarf_expr_context) <len>: Improve the comment.
5821 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5822 cu_offset and sect_offset.
5823 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5824 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5825 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5826 * dwarf2loc.h: Include dwarf2expr.h.
5827 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5829 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5830 Improve the comment.
5831 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5832 (struct signatured_type, struct line_header, struct partial_die_info)
5833 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5834 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5835 (get_die_type_at_offset, create_cus_from_index)
5836 (create_signatured_type_table_from_index, dw2_get_file_names)
5837 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5838 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5839 (create_debug_types_hash_table, process_psymtab_comp_unit)
5840 (load_partial_comp_unit, create_all_comp_units)
5841 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5842 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5843 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5844 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5845 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5846 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5847 (find_partial_die, read_attribute_value, lookup_die_type)
5848 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5849 (is_ref_attr): New function comment.
5850 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5851 Use cu_offset and sect_offset.
5852 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5853 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5854 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5855 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5856 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5857 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5858 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5861 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5864 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5865 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5867 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5869 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5871 * NEWS: Describe new options --init-command=FILE, -ix and
5872 --init-eval-command=COMMAND, -iex.
5873 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5874 CMDARG_INIT_COMMAND.
5875 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5876 "init-command", "init-eval-command", "ix" and "iex" to the variable
5877 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5878 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5879 (print_gdb_help): Describe --init-command=FILE, -ix and
5880 --init-eval-command=COMMAND, -iex.
5882 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5885 * main.c (struct cmdarg): Move it here from main. Add more comments.
5886 (cmdarg_s, VEC (cmdarg_s)): New.
5887 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5888 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5889 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5890 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5893 2012-03-19 Tom Tromey <tromey@redhat.com>
5895 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5897 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5900 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5903 2012-03-16 Chris January <chris.january@allinea.com>
5905 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5908 2012-03-16 Chris January <chris.january@allinea.com>
5910 * source.c (add_path): Use memmove instead of strcpy because the
5913 2012-03-16 Joel Brobecker <brobecker@adacore.com>
5915 * value.h (set_value_parent): Add declaration.
5916 * value.c (set_value_parent): New function.
5917 (value_address): If VALUE->PARENT is not NULL, then use it as
5918 the base address instead of VALUE->LOCATION.address.
5919 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5920 the same as OBJ's address. Adjust V's offset accordingly.
5923 2012-03-16 Gary Benson <gbenson@redhat.com>
5925 PR breakpoints/10738
5926 * dwarf2read.c (use_deprecated_index_sections): New global.
5927 (struct partial_die_info): New member may_be_inlined.
5928 (read_partial_die): Set may_be_inlined where appropriate.
5929 (add_partial_subprogram): Add partial symbols for partial
5930 DIEs that may be inlined.
5931 (new_symbol_full): Add inlined subroutines to the current
5933 (write_psymtabs_to_index): Bump version number.
5934 (dwarf2_read_index): Read only version 6 indices unless
5935 use_deprecated_index_sections is set.
5936 * linespec.c (symbol_and_data_callback): New structure.
5937 (iterate_inline_only): New function.
5938 (iterate_over_all_matching_symtabs): New argument
5939 "include_inline". If nonzero, also call the callback for
5940 symbols representing inlined subroutines.
5941 (lookup_prefix_sym): Pass extra argument to the above.
5942 (find_function_symbols): Likewise.
5943 (add_matching_symbols_to_info): Likewise.
5944 * NEWS: Mention that GDB can now set breakpoints on inlined
5947 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5949 * p-typeprint.c (pascal_type_print_method_args):
5950 Fix display of parameter of methods.
5952 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5954 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5955 Add missing prototype.
5957 2012-03-16 Yao Qi <yao@codesourcery.com>
5958 Jan Kratochvil <jan.kratochvil@redhat.com>
5960 Fix false compilation warning.
5961 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5963 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5964 Pedro Alves <pedro@codesourcery.com>
5966 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5967 (arm_register_g_packet_guesses): New function.
5968 (arm_gdbarch_init): Don't force a target description with
5969 registers when the executable is detected as M-profile. Instead
5970 set gdbarch->tdep->is_m. Register `g' packet guesses.
5971 (_initialize_arm_tdep): Initialize the new target description.
5972 * features/arm-with-m-fpa-layout.xml: New description.
5973 * features/arm-with-m-fpa-layout.c: New, generated.
5975 2012-03-15 Joel Brobecker <brobecker@adacore.com>
5977 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5978 Update function description.
5979 (insert_bp_location): Do not wipe bl->target_info out.
5980 * mem-break.c: #include "gdb_string.h".
5981 (default_memory_insert_breakpoint): Do not call target_read_memory
5982 with a pointer to the breakpoint's shadow_contents buffer. Use
5983 a local buffer instead.
5984 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5986 2012-03-15 Tom Tromey <tromey@redhat.com>
5988 * NEWS: Mention "info vtbl", not "info vtable".
5989 * cp-support.c (info_vtbl_command): Fix comment.
5990 (_initialize_cp_support): Fix text.
5992 2012-03-15 Tom Tromey <tromey@redhat.com>
5994 * cp-valprint.c (cp_print_value_fields): Use
5995 print_function_pointer_address for vtable slot.
5997 2012-03-15 Tom Tromey <tromey@redhat.com>
5999 * gnu-v3-abi.c (struct value_and_voffset): New.
6000 (hash_value_and_voffset, eq_value_and_voffset)
6001 (compare_value_and_voffset, compute_vtable_size)
6002 (print_one_vtable, gnuv3_print_vtable): New functions.
6003 (init_gnuv3_ops): Initialize 'print_vtable' field.
6004 * cp-support.c (info_vtbl_command): New function.
6005 (_initialize_cp_support): Add "info vtbl".
6006 * cp-abi.h (cplus_print_vtable): Declare.
6007 (struct cp_abi_ops) <print_vtable>: New field.
6008 * cp-abi.c (cplus_print_vtable): New function.
6011 2012-03-15 Tom Tromey <tromey@redhat.com>
6013 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
6014 iterate_over_symbols.
6016 2012-03-14 Doug Evans <dje@google.com>
6018 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
6019 DW_OP_GNU_parameter_ref.
6021 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6023 Fix double prompt of 'interpreter-exec mi'.
6024 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
6025 (mi_interpreter_resume): use it.
6026 (mi_execute_command_input_handler): New function.
6027 * mi/mi-main.c (mi_execute_command): Move prompt printing to
6028 mi_execute_command_input_handler.
6030 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
6032 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
6034 (darwin_debug_port_info): Make static.
6035 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
6036 * machoread.c (_initialize_machoread): Add prototype.
6037 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
6038 (i386_darwin_set_control, i386_darwin_get_control)
6039 i386_darwin_dr_set_addr, i386_darwin_get_addr)
6040 i386_darwin_get_status, i386_darwin_get_control):
6041 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
6043 2012-03-13 Joel Brobecker <brobecker@adacore.com>
6045 * ax-gdb.c (gen_usual_unary): Remove special handling of
6046 enum and bool types.
6048 2012-03-13 Joel Brobecker <brobecker@adacore.com>
6050 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
6052 2012-03-13 Joel Brobecker <brobecker@adacore.com>
6054 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
6056 2012-03-13 Chris January <chris.january@allinea.com>
6058 * aix-thread.c (fill_sprs): Store the floating point registers
6059 at the correct offsets into vals.
6061 2012-03-13 Doug Evans <dje@google.com>
6063 * NEWS: Mention symbol-reloading has been deleted.
6064 * symfile.c (symbol_reloading): Delete.
6065 (show_symbol_reloading): Delete.
6066 (_initialize_symfile): Delete set/show symbol-reloading.
6068 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
6069 read_in_chain until we have successfully read it in.
6070 (load_full_comp_unit): Ditto.
6071 (read_signatured_type): Add comment.
6073 2012-03-13 Chris January <chris.january@allinea.com>
6075 * stabsread.c (fix_common_block): Change type of valu argument
6078 2012-03-13 Chris January <chris.january@allinea.com>
6080 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
6083 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6085 * common/linux-procfs.c (linux_proc_get_int): New, from
6086 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
6088 (linux_proc_get_tgid): Only call linux_proc_get_int.
6089 (linux_proc_get_tracerpid): New.
6090 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
6091 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
6092 linux_proc_pid_has_state.
6093 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
6094 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
6095 (linux_ptrace_attach_warnings): New.
6096 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
6098 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
6099 (linux_nat_attach): New variables ex, buffer, message and message_s.
6100 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
6102 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6104 * Makefile.in (linux-ptrace.o): New.
6105 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
6107 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
6108 * common/linux-ptrace.c: New file.
6109 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
6110 * config/arm/linux.mh: Likewise.
6111 * config/i386/linux.mh: Likewise.
6112 * config/i386/linux64.mh: Likewise.
6113 * config/ia64/linux.mh: Likewise.
6114 * config/m32r/linux.mh: Likewise.
6115 * config/m68k/linux.mh: Likewise.
6116 * config/mips/linux.mh: Likewise.
6117 * config/pa/linux.mh: Likewise.
6118 * config/powerpc/linux.mh: Likewise.
6119 * config/powerpc/ppc64-linux.mh: Likewise.
6120 * config/powerpc/spu-linux.mh: Likewise.
6121 * config/s390/s390.mh: Likewise.
6122 * config/sparc/linux.mh: Likewise.
6123 * config/sparc/linux64.mh: Likewise.
6124 * config/xtensa/linux.mh: Likewise.
6125 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
6126 common/linux-procfs.c.
6127 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
6129 2012-03-13 Hui Zhu <teawater@gmail.com>
6130 Pedro Alves <palves@redhat.com>
6132 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
6133 CREATE_BREAKPOINT_FLAGS_INSERTED.
6134 (create_breakpoint_sal, create_breakpoints_sal)
6135 (base_breakpoint_create_breakpoints_sal)
6136 (tracepoint_create_breakpoints_sal)
6137 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
6139 (break_command_1, handle_gnu_v3_exceptions, trace_command)
6140 (ftrace_command, strace_command): Adjust.
6141 (create_tracepoint_from_upload): Pass
6142 CREATE_BREAKPOINT_FLAGS_INSERTED.
6143 * breakpoint.h (enum breakpoint_create_flags): New.
6144 (create_breakpoint): New flags parameter.
6145 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
6146 * python/py-breakpoint.c (bppy_init): Adjust.
6147 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
6148 * spu-tdep.c (spu_catch_start): Adjust.
6150 2012-03-13 Pedro Alves <palves@redhat.com>
6151 Hui Zhu <teawater@gmail.com>
6152 Yao Qi <yao@codesourcery.com>
6154 * remote.c (struct remote_state): New field `starting_up'.
6155 (remote_start_remote): Set and clear it.
6156 (remote_can_download_tracepoint): If starting up, return false.
6158 2012-03-13 Yao Qi <yao@codesourcery.com>
6160 * inferior.h (struct inferior): Remove fields any_syscall_count,
6161 syscalls_counts and total_syscalls_count. Move them to new
6162 struct catch_syscall_inferior_data in breakpoint.c.
6163 * breakpoint.c: Call DEF_VEC_I(int).
6164 (struct catch_syscall_inferior_data): New.
6165 (get_catch_syscall_inferior_data): New.
6166 (catch_syscall_inferior_data_cleanup): New.
6167 (insert_catch_syscall): Update to access data in
6168 struct catch_syscall_inferior_data.
6169 (insert_catch_syscall): Likewise.
6170 (remove_catch_syscall): Likewise.
6171 (remove_catch_syscall): Likewise.
6172 (is_syscall_catchpoint_enabled): Likewise.
6173 (add_catch_command): Likewise.
6174 (_initialize_breakpoint): Register cleanup.
6175 * breakpoint.h: Removed DEF_VEC_I(int).
6176 * dwarf2loc.c: Call DEF_VEC_I(int).
6177 * mi/mi-main.c: Likewise.
6179 2012-03-12 Mark Kettenis <kettenis@gnu.org>
6181 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
6183 2012-03-12 Chris January <chris.january@allinea.com>
6185 * aix-thread.c (_initialize_aix_thread): Add prototype.
6186 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
6187 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
6189 2012-03-12 Joel Brobecker <brobecker@adacore.com>
6191 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
6192 include of "amd64-nat.h".
6194 2012-03-12 Tom Tromey <tromey@redhat.com>
6196 * buildsym.c (record_pending_block): Now static.
6197 * buildsym.h: (record_pending_block): Remove.
6199 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
6201 * amd64bsd-nat.c: Include amd64bsd-nat.h.
6203 2012-03-09 Tom Tromey <tromey@redhat.com>
6205 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
6206 producer_is_gxx_lt_4_6>: New fields.
6207 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
6209 2012-03-09 Tom Tromey <tromey@redhat.com>
6211 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
6213 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6215 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
6218 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6220 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
6222 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6224 Fix -Wmissing-prototypes build.
6225 * arm-linux-nat.c (get_thread_id): Make it static.
6226 * xtensa-linux-nat.c (get_thread_id): Likewise.
6228 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6230 * server.c (process_point_options): If a conditional expression
6231 is found, only print a message if remote_debug is nonzero.
6233 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
6235 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
6236 of internal error for unknown/unsupported types.
6238 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6240 Fix CU relative vs. absolute DIE offsets.
6241 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
6242 offset to offset_in_cu.
6243 * dwarf2read.c (process_enumeration_scope): Add CU offset to
6245 (dwarf2_fetch_die_location_block): Rename parameter offset to
6246 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
6248 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6250 * libunwind-frame.c: Rename to ...
6251 * ia64-libunwind-tdep.c: ... here.
6252 * libunwind-frame.h: Rename to ...
6253 * ia64-libunwind-tdep.h: ... here.
6254 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
6255 ia64-libunwind-tdep.h.
6256 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
6257 * README (--with-libunwind): Rename to ...
6258 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
6259 * config.in: Regenerate.
6260 * configure: Regenerate.
6261 * configure.ac: New option --with-libunwind-ia64, make the
6262 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
6263 Remove AC_DEFINE for HAVE_LIBUNWIND.
6264 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
6265 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
6266 Rename libunwind-frame in the general comment.
6267 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
6268 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
6269 Move forward declarations inside #ifndef. Rename libunwind-frame in
6270 the general comment.
6271 * ia64-tdep.c: Rename libunwind-frame.h #include to
6272 ia64-libunwind-tdep.h.
6273 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
6274 (ia64_libunwind_descr): Rename libunwind-frame to
6275 ia64-libunwind-tdep in these function comments.
6276 * ia64-tdep.h: Rename libunwind-frame.h #include to
6277 ia64-libunwind-tdep.h.
6278 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6279 ia64-libunwind-tdep in that data comment.
6281 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6283 * libunwind-frame.h (struct frame_unwind): New declaration.
6285 2012-03-08 Joel Brobecker <brobecker@adacore.com>
6287 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6288 "set breakpoint condition-evaluation" command.
6290 2012-03-08 Tristan Gingold <gingold@adacore.com>
6292 * sparc-stub.c: Move to stubs/
6293 * sh-stub.c: Likewise.
6294 * m68k-stub.c: Likewise.
6295 * m32r-stub.c: Likewise.
6296 * i386-stub.c: Likewise.
6298 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6300 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6301 linux_get_siginfo_type.
6303 * m68klinux-nat.c: Include "gdb_proc_service.h".
6304 (PTRACE_GET_THREAD_AREA): Define.
6305 (ps_get_thread_area): New function.
6307 2012-03-08 Yao Qi <yao@codesourcery.com>
6309 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6311 (remote_query_attached): Likewise.
6312 (remote_static_tracepoint_marker_at): Likewise.
6313 (remote_set_permissions): Likewise.
6314 (remote_detach_1, extended_remote_attach_1): Likewise.
6315 (send_g_packet, remote_vkill): Likewise.
6316 (extended_remote_disable_randomization): Likewise.
6317 (remote_add_target_side_condition): Likewise.
6318 (remote_insert_breakpoint): Likewise.
6319 (remote_remove_breakpoint): Likewise.
6320 (remote_insert_watchpoint): Likewise.
6321 (remote_remove_watchpoint): Likewise.
6322 (remote_insert_hw_breakpoint): Likewise.
6323 (remote_insert_hw_breakpoint): Likewise.
6324 (remote_remove_hw_breakpoint): Likewise.
6325 (remote_download_command_source): Likewise.
6326 (remote_download_tracepoint): Likewise.
6327 (remote_download_trace_state_variable): Likewise.
6328 (remote_disable_tracepoint): Likewise.
6329 (remote_trace_set_readonly_regions): Likewise.
6330 (remote_get_tracepoint_status): Likewise.
6331 (remote_trace_find): Likewise.
6332 (remote_get_trace_state_variable_value): Likewise.
6333 (remote_set_disconnected_tracing): Likewise.
6334 (remote_set_circular_trace_buffer): Likewise.
6335 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6336 (remote_use_agent): Likewise.
6337 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6340 2012-03-07 Pedro Alves <palves@redhat.com>
6342 * NEWS: Mention QProgramSignals.
6343 * inferior.h (update_signals_program_target): Declare.
6344 * infrun.c: (update_signals_program_target): New.
6345 (handle_command): Update the target of the new program signals
6347 * remote.c (PACKET_QProgramSignals): New enum.
6348 (last_program_signals_packet): New global.
6349 (remote_program_signals): New.
6350 (remote_start_remote): Update the target with the program signals
6352 (remote_protocol_features): Add entry for QPassSignals.
6353 (remote_open_1): Free anc clear last_program_signals_packet.
6354 (init_remote_ops): Install remote_program_signals.
6355 * target.c (update_current_target): Adjust.
6356 (target_program_signals): New.
6357 * target.h (struct target_ops) <to_program_signals>: New field.
6358 (target_program_signals): Declare.
6360 2012-03-07 Pedro Alves <palves@redhat.com>
6362 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6365 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6367 * m68klinux-nat.c (getregs_supplies): Make static.
6368 (getfpregs_supplies): Likewise.
6369 (have_ptrace_getregs): Likewise.
6371 2012-03-06 Joel Brobecker <brobecker@adacore.com>
6373 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6374 in call to get_die_type_at_offset.
6376 2012-03-06 Stan Shebs <stan@codesourcery.com>
6378 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6379 * mi/mi-cmd-disas.c: Ditto.
6380 * mi/mi-cmd-env.c: Ditto.
6381 * mi/mi-cmd-file.c: Ditto.
6382 * mi/mi-cmd-stack.c: Ditto.
6383 * mi/mi-cmd-target.c: Ditto.
6384 * mi/mi-cmd-var.c: Ditto.
6385 * mi/mi-cmds.c: Ditto.
6386 * mi/mi-cmds.h: Ditto.
6387 * mi/mi-console.c: Ditto.
6388 * mi/mi-getopt.c: Ditto.
6389 * mi/mi-getopt.h: Ditto.
6390 * mi/mi-interp.c: Ditto.
6391 * mi/mi-main.c: Ditto.
6392 * mi/mi-out.c: Ditto.
6393 * mi/mi-parse.c: Ditto.
6394 * mi/mi-parse.h: Ditto.
6395 * mi/mi-symbol-cmds.c: Ditto.
6397 * mi/mi-getopt.h: Move mi_opt struct up.
6398 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6400 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6402 2012-03-06 Tom Tromey <tromey@redhat.com>
6404 * proc-service.c (ps_pglobal_lookup): Set the current program
6407 2012-03-06 Pedro Alves <palves@redhat.com>
6409 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6411 2012-03-05 Joel Brobecker <brobecker@adacore.com>
6413 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6415 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6418 * common/linux-osdata.c (linux_common_core_of_thread): New function
6420 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6421 call by linux_common_core_of_thread.
6422 (linux_nat_core_of_thread_1): Remove.
6423 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6424 * linux-thread-db.c: Include linux-osdata.h.
6425 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6426 linux_common_core_of_thread.
6428 2012-03-05 Tom Tromey <tromey@redhat.com>
6430 * value.c (value_primitive_field): Don't fetch contents for
6433 2012-03-05 Tom Tromey <tromey@redhat.com>
6435 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6437 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
6439 * s390-nat.c: Include "gregset.h".
6441 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6443 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6444 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6445 (libunwind_load): New variable so_error, use it for dlerror. Try to
6446 load also LIBUNWIND_SO_7.
6448 2012-03-05 Pedro Alves <palves@redhat.com>
6450 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6451 is not NULL, and remove resulting dead code.
6453 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6455 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6456 prologue to sh_analyze_prologue.
6457 (sh_analyze_prologue): Make better use of such an upper limit, and
6458 generally be more cautious about accessing memory.
6460 2012-03-05 Tom Tromey <tromey@redhat.com>
6462 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6463 _initialize_ia64_hpux_tdep.
6465 2012-03-05 Pedro Alves <palves@redhat.com>
6469 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6470 the register state is clear, supply explicit zero, instead of
6471 marking the register unavailable.
6473 2012-03-05 Tristan Gingold <gingold@adacore.com>
6475 * NEWS: Mention OpenVMS ia64 new target.
6477 2012-03-05 Tristan Gingold <gingold@adacore.com>
6479 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6480 (ia64_unw_accessors, ia64_unw_rse_accessors)
6481 (ia64_libunwind_descr): Declare.
6482 * ia64-vms-tdep.c: New file.
6483 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6484 (ia64_libunwind_descr): Make them public.
6485 * configure.tgt: Add ia64-*-*vms*.
6486 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6487 (ALLDEPFILES): Add ia64-vms-tdep.c
6489 2012-03-05 Tristan Gingold <gingold@adacore.com>
6491 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6492 * remote.c (PACKET_qXfer_uib): New enum value.
6493 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6494 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6495 (_initialize_remote): Call add_packet_config_cmd for
6498 2012-03-05 Tristan Gingold <gingold@adacore.com>
6500 * osabi.c (gdb_osabi_names): Add OpenVMS.
6501 (generic_elf_osabi_sniffer): Likewise.
6502 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
6504 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6506 Removed unused code.
6507 * libunwind-frame.c (libunwind_frame_unwind)
6508 (libunwind_frame_base_address): Remove.
6509 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6511 2012-03-04 Yao Qi <yao@codesourcery.com>
6513 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6514 remove trailing new line.
6515 (agent_run_command, agent_run_command): Add _ markup.
6516 (agent_capability_check): Likewise.
6518 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6520 * breakpoint.c (set_condition_evaluation_mode): Set
6521 CONDITION_EVALUATION_MODE unconditionally.
6523 2012-03-03 Yao Qi <yao@codesourcery.com>
6525 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6526 * common/agent.h: Update declaration.
6527 * inf-child.c (inf_child_use_agent): New.
6528 (inf_child_can_use_agent): New.
6529 (inf_child_target): Initialize fields `to_use_agent'
6530 and `to_can_use_agent'.
6531 * agent.c (agent_new_objfile): New.
6532 (_initialize_agent): Add agent_new_objfile to new_objfile
6535 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6537 (linux_target_install_ops): Initialize field
6538 `to_static_tracepoint_markers_by_strid'.
6539 * remote.c (free_current_marker): Move it to ...
6540 * tracepoint.c (free_current_marker): ... here. New.
6541 (cleanup_target_stop): New.
6542 * tracepoint.h: Declare free_current_marker.
6543 * NEWS: Add one entry about `info static-tracepoint-marker'.
6545 2012-03-03 Yao Qi <yao@codesourcery.com>
6547 * common/agent.c (agent_loaded_p): New.
6548 (agent_look_up_symbols): New global.
6549 * common/agent.h: Declare agent_loaded_p.
6551 2012-03-03 Yao Qi <yao@codesourcery.com>
6553 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6554 (agent_capability_check, agent_capability_invalidate): New.
6555 (symbol_list): New array element.
6556 * common/agent.h (enum agent_capa): New.
6557 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6559 2012-03-03 Yao Qi <yao@codesourcery.com>
6561 * target.h (struct target_ops) <to_use_agent>: New field.
6562 (struct target_ops) <to_can_use_agent>: New field.
6563 (target_use_agent, target_can_use_agent): New macro.
6564 * target.c (update_current_target): Update.
6565 * remote.c: New enum `PACKET_QAgent'.
6566 (remote_protocol_features): Add a new element.
6567 (remote_use_agent, remote_can_use_agent): New.
6568 (init_remote_ops): Initialize field `can_use_agent' with
6569 remote_can_use_agent. Intiailize field `use_agent' with
6571 * common/agent.c (use_agent): New global.
6572 * common/agent.h: Declare it.
6573 * tracepoint.c (info_static_tracepoint_markers_command): Add
6575 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6576 (COMMON_OBS): Add common/agent.o and agent.o
6577 (common-agent.o): New rule.
6580 2012-03-03 Yao Qi <yao@codesourcery.com>
6582 * common/agent.c: New.
6583 * common/agent.h: New.
6584 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6586 * configure, configh.in: Regenerated.
6588 2012-03-02 Kevin Buettner <kevinb@redhat.com>
6590 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6591 unless it exists for this architecture.
6593 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6595 * language.h (struct language_defn): New "method" la_read_var_value.
6596 * findvar.c: #include "language.h".
6597 (default_read_var_value): Renames read_var_value. Rewrite
6598 function description.
6599 (read_var_value): New function.
6600 * value.h (default_read_var_value): Add prototype.
6601 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6603 (ada_language_defn): Add entry for la_read_var_value.
6604 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6605 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6606 language_defn structures to add entry for new la_read_var_value
6609 2012-03-02 Tom Tromey <tromey@redhat.com>
6610 Pedro Alves <palves@redhat.com>
6612 PR breakpoints/13776:
6613 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6615 (delete_longjmp_breakpoint_at_next_stop): New.
6616 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6617 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6618 before deleting the inferior. Add comments.
6619 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6620 breakpoints immediately, but only on next stop. Move that code
6621 next to where we mark other breakpoints for deletion.
6623 2012-03-02 Joel Brobecker <brobecker@adacore.com>
6625 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6627 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6630 2012-03-02 Pedro Alves <palves@redhat.com>
6632 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6634 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6636 Fix -Wmissing-prototypes build.
6637 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6638 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6639 (gdbsim_has_memory): Likewise.
6641 2012-03-02 Yao Qi <yao@codesourcery.com>
6643 Fix -Wmissing-prototypes build.
6644 * charset.c (phony_iconv_open): Make static.
6645 (phony_iconv_close, phony_iconv): Likewise.
6646 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6647 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6649 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6650 * ser-mingw.c (create_select_thread): Make static.
6651 * windows-termcap.c (tgetent): New prototype.
6652 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6654 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6656 Fix -Wmissing-prototypes build.
6657 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6658 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6659 (_initialize_loadable): New prototypes.
6661 2012-03-02 Doug Evans <dje@google.com>
6663 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6664 abbrev table, read_comp_unit will do it.
6666 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6668 Fix -Wmissing-prototypes build.
6669 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6670 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6671 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6672 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6673 (_initialize_arm_symbian_tdep): New prototype.
6674 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6675 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6676 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6678 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6679 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6681 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6682 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6683 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6685 * moxie-tdep.c (moxie_process_record): Likewise.
6686 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6687 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6688 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6689 (_initialize_rl78_tdep): New prototype.
6690 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6691 (_initialize_rx_tdep): New prototype.
6692 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6693 (_initialize_darwin_solib): New prototype.
6694 * solib-spu.c: Include solib-spu.h.
6695 (_initialize_spu_solib): New prototype.
6696 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6697 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6698 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6699 (tic6x_software_single_step): Make it static.
6700 (_initialize_tic6x_tdep): New prototype.
6702 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6704 Fix -Wmissing-prototypes build.
6705 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6706 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6708 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6710 Fix -Wmissing-prototypes build.
6711 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6712 (frv_have_stopped_data_address): Remove.
6714 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6716 Fix -Wmissing-prototypes build.
6717 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6718 * sh-tdep.c: Include sh64-tdep.h.
6719 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6720 * sh64-tdep.c: Include sh64-tdep.h.
6721 * sh64-tdep.h: New file.
6723 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6725 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6727 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6729 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6730 sp_regnum once the gdbarch_init_osabi hook has been called.
6732 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6734 * mips-tdep.c (mips32_bc1_pc): New function.
6735 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6736 BPOSGE32 and BPOSGE64 instructions.
6737 (deal_with_atomic_sequence): Likewise.
6738 (mips32_instruction_has_delay_slot): Likewise.
6740 2012-03-01 Maciej W. Rozycki <macro@mips.com>
6741 Chris Dearman <chris@mips.com>
6742 Maciej W. Rozycki <macro@codesourcery.com>
6743 Joseph Myers <joseph@codesourcery.com>
6745 * features/mips-dsp.xml: New file.
6746 * features/mips64-dsp.xml: New file.
6747 * features/mips-dsp-linux.xml: New file.
6748 * features/mips64-dsp-linux.xml: New file.
6749 * features/Makefile (WHICH): Add mips-dsp-linux and
6751 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6752 * features/mips-dsp-linux.c: New file.
6753 * features/mips64-dsp-linux.c: New file.
6754 * regformats/mips-dsp-linux.dat: New file.
6755 * regformats/mips64-dsp-linux.dat: New file.
6756 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6758 (mips64_linux_register_addr): Likewise.
6759 (mips64_linux_regsets_fetch_registers): Likewise.
6760 (mips64_linux_regsets_store_registers): Likewise.
6761 (mips64_linux_fetch_registers): Update call to
6762 mips64_linux_regsets_fetch_registers.
6763 (mips64_linux_store_registers): Update call to
6764 mips64_linux_regsets_store_registers.
6765 (mips_linux_read_description): Probe for DSP registers.
6766 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6767 and initialize_tdesc_mips64_dsp_linux.
6768 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6769 Remove padding of no longer used embedded register slots.
6770 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6771 (MIPS_RESTART_REGNUM): Redefine enum value.
6772 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6774 (mips_tx39_reg_names): Likewise.
6775 (mips_linux_reg_names): New array of register names for Linux
6777 (mips_register_name): Check for a null pointer in
6778 mips_processor_reg_names and return an empty string.
6779 (mips_register_type): Exclude embedded registers for the IRIX
6781 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6782 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6784 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6785 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6786 (mips_gdbarch_init): Likewise. Initialize internal register
6787 indices for the Linux ABI. Use dynamic numbers to refer to
6788 registers, as applicable, while parsing the target description.
6789 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6791 2012-03-01 Joel Brobecker <brobecker@adacore.com>
6793 * frame.h (read_frame_register_unsigned): Fix typo in function
6796 2012-03-01 Pedro Alves <palves@redhat.com>
6798 * jit-reader.in [!__cplusplus]
6799 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6801 2012-03-01 Pedro Alves <palves@redhat.com>
6803 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6804 * configure: Regenerate.
6806 2012-03-01 Pedro Alves <palves@redhat.com>
6808 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6809 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6810 (ftrace_command, strace_command): Make static.
6811 * d-lang.c (_initialize_d_language): Declare.
6812 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6813 * dwarf2loc.c (_initialize_dwarf2loc):
6814 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6815 * exec.c (exec_get_section_table): Make static.
6816 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6817 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6818 * inferior.c (remove_inferior_command, add_inferior_command)
6819 (clone_inferior_command): Make static.
6820 * linux-nat.c (linux_nat_thread_address_space)
6821 (linux_nat_core_of_thread): Make static.
6822 * linux-tdep.c (_initialize_linux_tdep): Declare.
6823 * objc-lang.c (_initialize_objc_lang): Declare.
6824 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6826 (_initialize_opencl_language): Declare.
6827 * record.c (_initialize_record): Declare.
6828 * remote.c (demand_private_info, remote_get_tib_address)
6829 (remote_supports_cond_tracepoints)
6830 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6832 * skip.c (_initialize_step_skip): Declare.
6833 * symtab.c (skip_prologue_using_lineinfo): Make static.
6834 * tracepoint.c (delete_trace_state_variable)
6835 (trace_variable_command, delete_trace_variable_command)
6836 (get_uploaded_tsv, find_matching_tracepoint_location)
6837 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6839 * value.c (pack_unsigned_long): Make static.
6840 * varobj.c (varobj_ensure_python_env): Make static.
6841 * windows-tdep.c (_initialize_windows_tdep): Declare.
6842 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6844 2012-03-01 Pedro Alves <palves@redhat.com>
6846 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6848 (linux_init_abi): Install it as has_shared_address_space gdbarch
6851 2012-03-01 Pedro Alves <palves@redhat.com>
6853 * observer.c (observer_test_first_notification_function)
6854 (observer_test_second_notification_function)
6855 (observer_test_third_notification_function): Add declarations.
6857 2012-03-01 Pedro Alves <palves@redhat.com>
6859 * common/signals.c (default_target_signal_to_host)
6860 (default_target_signal_from_host): Move ...
6861 * arch-utils.c: ... here.
6862 * arch-utils.h (default_target_signal_to_host)
6863 (default_target_signal_from_host): Declare.
6865 * common/signals.c (target_signal_from_command): Move ...
6866 * infrun.c: ... here.
6867 * inferior.h (target_signal_from_command): Declare.
6868 * target.h (target_signal_from_command)
6869 (default_target_signal_from_host, default_target_signal_to_host):
6870 Delete declarations.
6872 * common/signals.c (_initialize_signals): Delete.
6874 2012-03-01 Pedro Alves <palves@redhat.com>
6876 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6877 both __cplusplus and !__cplusplus.
6879 2012-03-01 Pedro Alves <palves@redhat.com>
6881 * psymtab.c (find_and_open_source): Delete declaration.
6882 * source.c (find_and_open_source): Move comment ...
6883 * source.h (find_and_open_source): ... to this new declaration.
6885 2012-03-01 Pedro Alves <palves@redhat.com>
6887 * inline-frame.c: Include inline-frame.h.
6889 2012-03-01 Pedro Alves <palves@redhat.com>
6891 * tui/tui-data.c (set_gen_win_origin): Delete.
6892 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6893 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6895 2012-03-01 Pedro Alves <palves@redhat.com>
6897 * remote.c (encode_actions): Delete declaration.
6898 * tracepoint.c (encode_actions): Make extern.
6899 * tracepoint.h (encode_actions): Declare.
6901 2012-03-01 Pedro Alves <palves@redhat.com>
6903 * python/py-breakpoint.c: Include python.h.
6904 * python/py-continueevent.c (create_continue_event_object): Make
6906 * python/py-lazy-string.c (stpy_get_type): Make static.
6907 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6909 * python/py-utils.c (unicode_to_target_python_string): Make
6911 * python/py-value.c: Include python.h.
6913 2012-03-01 Pedro Alves <palves@redhat.com>
6915 * inferior.c (delete_threads_of_inferior): Delete.
6917 2012-03-01 Pedro Alves <palves@redhat.com>
6919 Import fallback definitions from glibc.
6921 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6922 ps_prochandle): Forward declare.
6923 (ps_err_e): Use glibc's comments.
6924 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6925 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6926 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6927 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6928 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6929 (struct ps_prochandle): Adjust comment.
6931 2012-03-01 Pedro Alves <palves@redhat.com>
6933 * ada-lang.c (ada_modulus_from_name): Delete.
6934 * ada-lex.l (lexer_init): Make static.
6936 2012-03-01 Pedro Alves <palves@redhat.com>
6940 * frame.c (read_frame_register_unsigned): New.
6941 * frame.h (read_frame_register_unsigned): Declare.
6942 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6944 (print_i387_control_word): New parameter `control_p'. Handle it.
6945 (i387_print_float_info): Handle unavailable float registers.
6947 2012-03-01 Keith Seitz <keiths@redhat.com>
6949 * linespec.c (decode_line_2): Sort the list of methods
6950 alphabetically before presenting the user with a selection
6953 2012-03-01 Doug Evans <dje@google.com>
6955 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6957 (dwarf2_read_abbrevs): Remove corresponding initialization.
6959 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
6961 * NEWS: Mention new python command class gdb.COMMAND_USER.
6962 * cli/cli-cmds.c (show_user): Print error when used on a python
6964 (init_cli_cmds): Update documentation strings for "show user" and
6965 "set/show max-user-call-depth" to clarify that it does not apply to
6967 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6969 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6971 * top.c (execute_command): Only execute a user-defined command as a
6972 legacy macro if c->user_commands is set.
6974 2012-03-01 Tom Tromey <tromey@redhat.com>
6976 * valprint.h (struct generic_val_print_decorations): New.
6977 (generic_val_print): Declare.
6978 * valprint.c (generic_val_print): New function.
6979 * p-valprint.c (p_decorations): New global.
6980 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6981 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6982 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6983 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6984 * m2-valprint.c (m2_decorations): New global.
6985 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6986 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6987 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6988 TYPE_CODE_ERROR>: Call generic_val_print.
6989 * f-valprint.c (f_decorations): New global.
6990 (f_val_print): Use print_function_pointer_address.
6991 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6992 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6993 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6995 * c-valprint.c (c_decorations): New global.
6996 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6997 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6998 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6999 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
7000 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
7001 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
7004 2012-03-01 Tom Tromey <tromey@redhat.com>
7006 * valprint.c (val_print): Update.
7007 * p-valprint (pascal_val_print): Return void.
7008 * p-lang.h (pascal_val_print): Return void.
7009 * m2-valprint.c (m2_val_print): Return void.
7010 * m2-lang.h (m2_val_print): Return void.
7011 * language.h (struct language_defn) <la_val_print>: Return void.
7012 * language.c (unk_lang_val_print): Return void.
7013 * jv-valprint.c (java_val_print): Return void.
7014 * jv-lang.h (java_val_print): Return void.
7015 * f-valprint.c (f_val_print): Return void.
7016 * f-lang.h (f_val_print): Return void.
7017 * d-valprint.c (d_val_print): Return void.
7018 (dynamic_array_type): Update.
7019 * d-lang.h (d_val_print): Return void.
7020 * c-valprint.c (c_val_print): Return void.
7021 * c-lang.h (c_val_print): Return void.
7022 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
7024 * ada-lang.h (ada_val_print): Return void.
7026 2012-03-01 Tom Tromey <tromey@redhat.com>
7028 * value.h (val_print): Return void.
7029 * valprint.c (val_print): Return void.
7031 2012-03-01 Tom Tromey <tromey@redhat.com>
7033 * value.h (common_val_print): Return void.
7034 * valprint.c (common_val_print): Return void.
7036 2012-03-01 Tom Tromey <tromey@redhat.com>
7038 * value.h (value_print): Return void.
7039 * valprint.c (value_print): Return void.
7040 * p-valprint.c (pascal_value_print): Return void.
7041 * p-lang.h (pascal_value_print): Return void.
7042 * language.h (struct language_defn) <la_value_print>: Return
7044 * language.c (unk_lang_value_print): Return void.
7045 * jv-valprint.c (java_value_print): Return void.
7046 * jv-lang.h (java_value_print): Return void.
7047 * f-valprint.c (c_value_print): Don't declare.
7049 * c-valprint.c (c_value_print): Return void.
7050 * c-lang.h (c_value_print): Return void.
7051 * ada-valprint.c (ada_value_print): Return void.
7052 * ada-lang.h (ada_value_print): Return void.
7054 2012-03-01 Tom Tromey <tromey@redhat.com>
7056 * value.c (value_primitive_field): Handle virtual base classes.
7058 2012-03-01 Tom Tromey <tromey@redhat.com>
7060 * gdbtypes.h (struct vbase): Remove.
7062 2012-03-01 Tom Tromey <tromey@redhat.com>
7064 * c-valprint.c (print_function_pointer_address): Move...
7065 * valprint.c: ... here. Make non-static.
7066 * m2-valprint.c (print_function_pointer_address): Remove.
7067 * valprint.h (print_function_pointer_address): Declare.
7069 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7071 * NEWS: Document the fact that one can provide a condition when
7072 creating an Ada exception catchpoint.
7074 2012-03-01 Tom Tromey <tromey@redhat.com>
7076 * valprint.c (val_print_type_code_flags): Fix placement of
7079 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7081 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
7082 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
7083 environment variable before calling update-copyright.
7085 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7087 * gnulib/extra/update-copyright: Update to the latest from
7088 gnulib's git repository.
7089 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
7090 variable to 2 instead of 1.
7092 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7094 * varobj.c (c_value_of_variable): Remove dead code.
7096 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7098 * ada-lex.p (processId): Do not modify already encoded IDs.
7099 Update function documentation.
7101 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7103 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
7104 "name" with "struct symbol *name_sym".
7105 * ada-exp.y (write_var_or_type): Update call to
7106 ada_find_renaming_symbol.
7107 "name" with "struct symbol *name_sym". Adjust Implementation
7108 accordingly. Adjust the function documentation.
7110 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7112 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
7113 * ada-lang.c (ada_find_any_type): Add advance declaration.
7114 Make static. Replace ada_find_any_symbol by
7115 ada_find_any_type_symbol.
7116 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
7117 Improve function description. Make static.
7118 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
7119 Replace ada_find_any_symbol by ada_find_any_type_symbol.
7121 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7123 * ada-lang.c (struct tag_args): Delete.
7124 (ada_get_tsd_type): Function body moved up in source file.
7125 (ada_tag_name_1, ada_tag_name_2): Delete.
7126 (ada_get_tsd_from_tag): New function.
7127 (ada_tag_name_from_tsd): New function.
7128 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
7129 to determine the tag name.
7131 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7133 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
7135 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
7138 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7140 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
7142 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7144 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
7147 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7149 * ada-lang.c (constrained_packed_array_type): If there is a
7150 parallel XA type, use it to determine the array index type.
7152 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7154 * ada-valprint.c (ada_val_print_1): If our value is a reference
7155 to an array descriptor, dereference it before converting it
7158 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7160 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
7161 creating fixed value.
7162 (ada_value_ind, ada_coerce_ref, assign_component)
7163 (ada_evaluate_subexp): Remove call to unwrap_value before
7164 call to ada_to_fixed_value.
7166 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7168 * ada-lang.c (to_fixed_array_type): Set result's type name.
7170 2012-02-29 Joel Brobecker <brobecker@adacore.com>
7172 * ada-lang.c (catch_ada_exception_command_split): Add new
7173 argument cond_string. Add support for condition at end of
7174 "catch exception" commands.
7175 (ada_decode_exception_location): Add new argument cond_string.
7176 Update call to catch_ada_exception_command_split.
7177 (create_ada_exception_catchpoint): Add new argument cond_string.
7178 Set the breakpoint condition if needed.
7179 (catch_ada_exception_command): Update call to
7180 ada_decode_exception_location.
7181 (ada_decode_assert_location): Add function documentation.
7182 Add support for condition at end of "catch assert" command.
7183 (catch_assert_command): Update calls to ada_decode_assert_location
7184 and create_ada_exception_catchpoint.
7186 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7188 Fix disp-step-syscall.exp: fork: single step over fork.
7189 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
7190 (i386_linux_get_syscall_number_from_regcache): ... here, new function
7191 comment, change parameters gdbarch and ptid to regcache. Remove
7192 parameter regcache, initialize gdbarch from regcache here.
7193 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
7195 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
7197 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
7198 'syscall'. Make the 'int' check more strict.
7200 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7202 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
7203 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
7204 (i386_linux_intx80_sysenter_syscall_record): ... here.
7205 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
7206 Use the renamed function name.
7208 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7210 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
7211 * breakpoint.c (until_break_command): Likewise.
7212 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
7213 * infcall.c (call_function_by_hand): Likewise.
7214 * infcmd.c (finish_forward): Likewise.
7215 * infrun.c (insert_exception_resume_breakpoint): Likewise.
7217 2012-02-28 Tristan Gingold <gingold@adacore.com>
7219 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
7220 avoid variable assignments inside condition.
7222 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7224 Fix static analysis issue found by cppcheck.
7225 * microblaze-tdep.c (microblaze_extract_return_value): Fix
7226 uninitialized BUF for size 2.
7228 2012-02-27 Chris Dearman <chris@mips.com>
7229 Nathan Froyd <froydnj@codesourcery.com>
7230 Maciej W. Rozycki <macro@codesourcery.com>
7232 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
7233 (mips16_instruction_has_delay_slot): Likewise.
7234 (mips_segment_boundary): Likewise.
7235 (mips_adjust_breakpoint_address): Likewise.
7236 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
7238 2012-02-27 Maciej W. Rozycki <macro@mips.com>
7239 Maciej W. Rozycki <macro@codesourcery.com>
7241 * infrun.c (handle_inferior_event): Don't proceed through
7242 shared library trampolines if stepping at the machine
7245 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
7247 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
7250 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
7252 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
7253 (sh_stub_unwind_sniffer): New functions.
7254 (sh_stub_unwind): New variable.
7255 (sh_gdbarch_init): Wire everything.
7257 2012-02-27 Pedro Alves <palves@redhat.com>
7259 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
7260 (linux_nat_post_attach_wait): Adjust to use
7261 linux_proc_pid_is_stopped.
7262 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
7263 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
7264 based on pid_is_stopped from both linux-nat.c and
7265 gdbserver/linux-low.c, and renamed.
7267 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7269 * remote.c (remote_watchpoint_addr_within_range): New function.
7270 (init_remote_ops): Use it.
7272 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7274 * target.h (target_watchpoint_addr_within_range): Document macro.
7276 2012-02-24 Pedro Alves <palves@redhat.com>
7278 * stack.c (set_last_displayed_sal): Issue internal_error instead
7279 of warning, and issue it after clearing the last displayed sal.
7281 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7282 Pedro Alves <palves@redhat.com>
7284 * breakpoint.c (until_break_command): Install breakpoints after
7285 all frame manipulations.
7287 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7289 * remote.c (remote_supports_cond_breakpoints): New forward
7291 (remote_add_target_side_condition): New function.
7292 (remote_insert_breakpoint): Add target-side breakpoint
7293 conditional if supported.
7294 (remote_insert_hw_breakpoint): Likewise.
7295 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7298 * target.c (update_current_target): Inherit
7299 to_supports_evaluation_of_breakpoint_conditions.
7300 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7302 * target.h (struct target_ops)
7303 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7304 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7306 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7307 (condition_evaluation_both, condition_evaluation_auto,
7308 condition_evaluation_host, condition_evaluation_target,
7309 condition_evaluation_enums, condition_evaluation_mode_1,
7310 condition_evaluation_mode): New static globals.
7311 (translate_condition_evaluation_mode): New function.
7312 (breakpoint_condition_evaluation_mode): New function.
7313 (gdb_evaluates_breakpoint_condition_p): New function.
7314 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7315 (mark_breakpoint_modified): New function.
7316 (mark_breakpoint_location_modified): New function.
7317 (set_condition_evaluation_mode): New function.
7318 (show_condition_evaluation_mode): New function.
7319 (bp_location_compare_addrs): New function.
7320 (get_first_location_gte_addr): New helper function.
7321 (set_breakpoint_condition): Free condition bytecode if locations
7322 has become unconditional. Call mark_breakpoint_modified (...).
7323 (condition_command): Call update_global_location_list (1) for
7325 (breakpoint_xfer_memory): Use is_breakpoint (...).
7326 (is_breakpoint): New function.
7327 (parse_cond_to_aexpr): New function.
7328 (build_target_condition_list): New function.
7329 (insert_bp_location): Handle target-side conditional
7330 breakpoints and call build_target_condition_list (...).
7331 (update_inserted_breakpoint_locations): New function.
7332 (insert_breakpoint_locations): Handle target-side conditional
7334 (bpstat_check_breakpoint_conditions): Add comment.
7335 (bp_condition_evaluator): New function.
7336 (bp_location_condition_evaluator): New function.
7337 (print_breakpoint_location): Print information on where the condition
7339 (print_one_breakpoint_location): Likewise.
7340 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7341 breakpoint location.
7342 (force_breakpoint_reinsertion): New functions.
7343 (update_global_location_list): Handle target-side breakpoint
7345 Reinsert locations that are already inserted if conditions have
7347 (bp_location_dtor): Free agent expression bytecode.
7348 (disable_breakpoint): Call mark_breakpoint_modified (...).
7349 Call update_global_location_list (...) with parameter 1 for breakpoints.
7350 (disable_command): Call mark_breakpoint_location_modified (...).
7351 Call update_global_location_list (...) with parameter 1 for breakpoints.
7352 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7353 (enable_command): mark_breakpoint_location_modified (...).
7354 (_initialize_breakpoint): Update documentation and add
7355 condition-evaluation breakpoint subcommand.
7357 * breakpoint.h: Include ax.h.
7358 (condition_list): New data structure.
7359 (condition_status): New enum.
7360 (bp_target_info) <cond_list>: New field.
7361 (bp_location) <condition_changed, cond_bytecode>: New fields.
7362 (is_breakpoint): New prototype.
7364 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7366 * remote.c (remote_state) <cond_breakpoints>: New field.
7367 (PACKET_ConditionalBreakpoints): New enum.
7368 (remote_cond_breakpoint_feature): New function.
7369 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7370 (remote_supports_cond_breakpoints): New function.
7371 (_initialize_remote): Add new packet configuration for
7372 target-side conditional breakpoints.
7374 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7376 * NEWS: Mention target-side conditional breakpoint support,
7377 new condition-evaluation breakpoint subcommand and remote
7380 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
7382 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7385 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7387 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7388 (after_prologue): Remove.
7390 2012-02-23 Tom Tromey <tromey@redhat.com>
7392 * jv-valprint.c (java_val_print): Remove dead code.
7394 2012-02-23 Tristan Gingold <gingold@adacore.com>
7396 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7397 known_tasks_element and known_tasks_length fields.
7398 (read_known_tasks_array): Change argument type. Use pointer type
7399 and number of elements from DATA. Adjust.
7400 (read_known_tasks_list): Likewise.
7401 (get_known_tasks_addr): Remove.
7402 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7403 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7404 type and array length. Merge former get_known_tasks_addr code.
7406 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7409 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7410 it after set_momentary_breakpoint.
7412 2012-02-22 Sterling Augustine <saugustine@google.com>
7415 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7417 2012-02-22 Gary Benson <gbenson@redhat.com>
7419 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7420 (find_slot_in_mapped_hash): Likewise.
7422 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7425 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7426 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7427 * configure: Regenerate.
7429 2012-02-21 Tristan Gingold <gingold@adacore.com>
7430 Pedro Alves <palves@redhat.com>
7432 * ia64-tdep.c: Do not include libunwind-ia64.h.
7433 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7434 Include libunwind-ia64.h instead of libunwind.h.
7435 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7436 for libunwind.h existence.
7437 * configure, config.in: Regenerate.
7439 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7441 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7442 instead of value_rtti_target_type.
7443 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7444 instead of value_rtti_target_type.
7445 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7446 value_rtti_target_type.
7447 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7448 (value_rtti_target_type): Rename to ...
7449 (value_rtti_indirect_type): ... here and make it indirect. Update
7451 * value.c (readjust_indirect_value_type): New function.
7452 (coerce_ref): Support for enclosing type setting for references
7453 with readjust_indirect_value_type.
7454 * value.h (readjust_value_type): New declaration.
7455 (value_rtti_target_type): Rename to ...
7456 (value_rtti_indirect_type): ... here.
7458 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7460 * MAINTAINERS (Write After Approval): Add myself to the list.
7462 2012-02-20 Doug Evans <dje@google.com>
7464 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7465 Rename objfile_p_char parameter to objfilep.
7466 (build_objfile_section_table): Result is now void. All callers
7468 * objfiles.h (struct objfile): Tweak comments, whitespace.
7469 (build_objfile_section_table): Update.
7471 * elfread.c (elf_symfile_segments): Fix warning text.
7473 2012-02-20 Tom Tromey <tromey@redhat.com>
7476 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7477 particular set of file names once.
7478 (dw2_map_symbol_filenames): Likewise.
7480 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7483 * main.c (write_files): Remove the declaration.
7484 (external_editor_command): Move the declaration ...
7485 [GDBTK] (external_editor_command): ... here. Fix the comment.
7487 2012-02-20 Tom Tromey <tromey@redhat.com>
7489 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7492 2012-02-20 Tristan Gingold <gingold@adacore.com>
7494 * darwin-nat.h (enum darwin_msg_state): Add comments.
7496 2012-02-20 Tristan Gingold <gingold@adacore.com>
7498 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7501 2012-20-18 Joel Brobecker <brobecker@adacore.com>
7503 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7504 between function description and implementation.
7506 2012-02-17 Tom Tromey <tromey@redhat.com>
7509 * python/py-event.c (event_object_getset): New global.
7510 (event_object_type): Reference it.
7511 * python/py-type.c (field_object_getset): New global.
7512 (field_object_type): Reference it.
7513 * python/python-internal.h (gdb_py_generic_dict): Declare.
7514 * python/py-utils.c (gdb_py_generic_dict): New function.
7516 2012-02-17 Tristan Gingold <gingold@adacore.com>
7518 * solib-darwin.c (darwin_current_sos): Check magic and filetype
7520 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7522 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7523 TYPE_CALLING_CONVENTION annotation.
7525 2012-02-16 Kevin Buettner <kevinb@redhat.com>
7527 * MAINTAINERS: Add rx to target ISA section.
7528 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7529 (ALLDEPFILES): Add rx-tdep.c.
7531 2012-02-16 Tom Tromey <tromey@redhat.com>
7533 * symfile.c (symbol_file_add_main_1): Use inferior's
7535 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7536 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7538 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7540 (follow_exec): Use inferior's symfile_flags.
7541 * inferior.h (struct inferior) <symfile_flags>: New field.
7543 2012-02-16 Mike Frysinger <vapier@gentoo.org>
7546 * remote-sim.c (gdbsim_create_inferior): Call error() when
7547 sim_create_inferior() fails.
7549 2012-02-16 Josh Matthews <josh@joshmatthews.net>
7551 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7553 2012-02-16 Tom Tromey <tromey@redhat.com>
7556 * thread.c (struct current_thread_cleanup) <was_removable>: New
7558 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7559 (make_cleanup_restore_current_thread): Initialize new field.
7561 2012-02-15 Kevin Buettner <kevinb@redhat.com>
7563 * MAINTAINERS: Add rl78 to target ISA section.
7564 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7565 (ALLDEPFILES): Add rl78-tdep.c.
7566 * NEWS: Mention rl78 as a new target.
7568 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7570 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7572 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7574 2012-02-15 Tom Tromey <tromey@redhat.com>
7577 * infcmd.c (registers_info): Print just the current register's
7580 2012-02-15 Tom Tromey <tromey@redhat.com>
7582 * python/py-symbol.c (sympy_value): Use _().
7584 2012-02-15 Pedro Alves <palves@redhat.com>
7586 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7587 output to be like native targets'.
7588 (remote_pid_to_str): Special case the null ptid.
7590 2012-02-14 Stan Shebs <stan@codesourcery.com>
7592 * NEWS: Mention enable count command.
7593 * breakpoint.h (struct breakpoint): New field enable_count.
7594 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7595 (enable_breakpoint): Add arg to call.
7596 (struct disp_data): New struct.
7597 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7598 (do_map_enable_once_breakpoint): Create a struct and pass it.
7599 (do_map_enable_delete_breakpoint): Ditto.
7600 (do_map_enable_count_breakpoint): New function.
7601 (enable_count_command): New function.
7602 (bpstat_stop_status): Decrement enable_count.
7603 (print_one_breakpoint_location): Report enable count.
7604 (_initialize_breakpoint): Add enable count command.
7606 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7608 * rl78-tdep.c (reggroups.h): Include.
7609 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7610 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7611 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7612 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7613 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7614 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7615 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7616 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7617 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7618 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7619 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7620 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7621 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7622 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7623 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7624 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7625 beginning of register list.
7626 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7627 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7628 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7629 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7630 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7631 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7632 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7633 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7634 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7635 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7636 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7637 the pseudo registers. Rearrange other pseudo registers too so
7638 that the bank registers appear at the end.
7639 (rl78_register_type): Account for the fact that the byte sized
7640 bank registers are now pseudo-registers.
7641 (rl78_register_name): Rearrange the register name array. Make
7642 initial set of raw banked registers inaccessible.
7643 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7644 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7645 case for copying bytes back and forth between raw and pseudo
7646 versions of the banked registers. Update other cases to reflect
7648 (rl78_return_value): Update to account for changed names of
7650 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7651 rl78_register_sim_regno().
7653 2012-02-14 Kevin Buettner <kevinb@redhat.com>
7655 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7656 the name parameter being passed to find_pc_partial_function().
7658 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7660 * MAINTAINERS: Step down from being ia64 target maintainer.
7662 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7664 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7665 compilation warning.
7667 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7669 Fix crash on loaded shlibs without loaded exec_bfd.
7670 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7671 (set_section_command): Replace exec_bfd by p->bfd.
7673 2012-02-10 Tom Tromey <tromey@redhat.com>
7675 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7676 when we have a C++ qualified name.
7678 2012-02-10 Pedro Alves <palves@redhat.com>
7680 * inferior.c (inferior_pid_to_str): New.
7681 (print_inferior, inferior_command): Use it.
7683 2012-02-10 Pedro Alves <palves@redhat.com>
7685 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7687 * configure: Regenerate.
7689 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7691 * linespec.c (decode_line_internal): Fix comment correctness.
7693 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
7696 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7697 * amd64bsd-nat.c: Add support for debug registers (adapted from
7699 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7700 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7701 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7702 (amd64bsd_dr_get_control): New functions.
7703 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7704 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7705 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7706 watchpoints initialization.
7707 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7709 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7711 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7713 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7715 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7717 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7719 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7721 * language.h (symbol_name_cmp_ftype): Renames
7722 symbol_name_match_p_ftype.
7723 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7724 la_get_symbol_name_match_p.
7725 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7726 ada_get_symbol_name_match_p. Update comment.
7727 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7728 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7729 Renames symbol_name_match_p. Update field type.
7730 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7731 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7732 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7733 "la_get_symbol_name_cmp" in comments.
7734 * language.c: Likewise.
7736 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7738 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7740 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7741 (amd64_sol2_gregset32_reg_offs): Likewise.
7743 2012-02-08 Joel Brobecker <brobecker@adacore.com>
7745 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7746 of the returned BFD is allocated by GDB.
7748 2012-02-07 Tom Tromey <tromey@redhat.com>
7751 * python/python-internal.h (frame_object_type): Declare.
7752 * python/py-symbol.c (sympy_needs_frame): New function.
7753 (sympy_value): New function.
7754 (symbol_object_getset): Add "needs_frame".
7755 (symbol_object_methods): Add "value".
7756 * python/py-frame.c (frame_object_type): No longer static.
7758 2012-02-07 Tom Tromey <tromey@redhat.com>
7761 * python/py-symbol.c (sympy_line): New function.
7762 (symbol_object_getset): Add "line".
7764 2012-02-07 Tom Tromey <tromey@redhat.com>
7766 * charset.c (find_charset_names): Check 'in' against NULL.
7768 2012-02-06 Doug Evans <dje@google.com>
7770 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7771 and fields.name members from char * to const char *. All uses updated.
7772 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7773 from char * to const char *. All uses updated.
7774 (type_name_no_tag): Update.
7775 (lookup_unsigned_typename, lookup_signed_typename): Update.
7776 * gdbtypes.c (type_name_no_tag): Change result type
7777 from char * to const char *. All callers updated.
7778 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7779 name parameter from char * to const char *.
7780 * symtab.h (struct cplus_specific): Change type of demangled_name
7781 member from char * to const char *. All uses updated.
7782 (struct general_symbol_info): Change type of name and
7783 mangled_lang.demangled_name members from char * to const char *.
7785 (symbol_get_demangled_name, symbol_natural_name): Update.
7786 (symbol_demangled_name, symbol_search_name): Update.
7787 * symtab.c (symbol_get_demangled_name): Change result type
7788 from char * to const char *. All callers updated.
7789 (symbol_natural_name, symbol_demangled_name): Ditto.
7790 (symbol_search_name): Ditto.
7791 (completion_list_add_name): Change type of symname,sym_text,
7792 text,word parameters from char * to const char *.
7793 (completion_list_objc_symbol): Change type of sym_text,
7794 text,word parameters from char * to const char *.
7795 * ada-lang.c (find_struct_field): Change type of name parameter
7796 from char * to const char *.
7797 (encoded_ordered_before): Similarly for N0,N1 parameters.
7798 (old_renaming_is_invisible): Similarly for function_name parameter.
7799 (ada_type_name): Change result type from char * to const char *.
7800 All callers updated.
7801 * ada-lang.h (ada_type_name): Update.
7802 * buildsym.c (hashname): Change type of name parameter
7803 from char * to const char *.
7804 * buildsym.h (hashname): Update.
7805 * dbxread.c (end_psymtab): Change type of include_list parameter
7806 from char ** to const char **.
7807 * dwarf2read.c (determine_prefix): Change result type
7808 from char * to const char *. All callers updated.
7809 * f-lang.c (find_common_for_function): Change type of name, funcname
7810 parameters from char * to const char *.
7811 * f-lang.c (find_common_for_function): Update.
7812 * f-valprint.c (list_all_visible_commons): Change type of funcname
7813 parameters from char * to const char *.
7814 * gdbarch.sh (static_transform_name): Change type of name parameter
7815 and result from char * to const char *.
7816 * gdbarch.c: Regenerate.
7817 * gdbarch.h: Regenerate.
7818 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7819 of name parameter from char * to const char *.
7820 * jv-lang.c (java_primitive_type_from_name): Ditto.
7821 (java_demangled_signature_length): Similarly for signature parameter.
7822 (java_demangled_signature_copy): Ditto.
7823 (java_demangle_type_signature): Ditto.
7824 * jv-lang.h (java_primitive_type_from_name): Update.
7825 (java_demangle_type_signature): Update.
7826 * objc-lang.c (specialcmp): Change type of a,b parameters
7827 from char * to const char *.
7828 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7829 from char * to const char *. All callers updated.
7830 * p-lang.h (is_pascal_string_type): Update.
7831 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7832 of name parameter from char * to const char *.
7833 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7834 * utils.c (fprintf_symbol_filtered): Ditto.
7835 * defs.h (fprintf_symbol_filtered): Update.
7836 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7837 * stabsread.h (end_psymtab): Update.
7838 * stack.c (find_frame_funname): Change type of funname parameter
7839 from char ** to const char **.
7840 * stack.h (find_frame_funname): Update.
7841 * typeprint.c (type_print): Change type of varstring parameter
7842 from char * to const char *.
7843 * value.h (type_print): Update.
7844 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7845 from char * to const char *. All callers updated.
7846 (xcoff_end_psymtab): Change type of include_list parameter
7847 from char ** to const char **. All callers updated.
7848 (swap_sym): Similarly for name parameter. All callers updated.
7849 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7851 (process_coff_symbol): Use xstrdup.
7852 * stabsread.c (stabs_method_name_from_physname): Renamed from
7853 update_method_name_from_physname. Change result type from void
7854 to char *. All callers updated.
7855 (read_member_functions): In has_destructor case, store name in objfile
7856 obstack instead of malloc space. In !has_stub case, fix mem leak.
7858 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7860 * configure: Rebuild.
7861 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7864 2012-02-03 Kevin Buettner <kevinb@redhat.com>
7866 * configure.tgt (rl78-*-elf): New target.
7867 * rl78-tdep.c: New file.
7869 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7871 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7872 and continue the loop. Add QUIT statement.
7874 2012-02-03 Tom Tromey <tromey@redhat.com>
7877 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7878 bfd_lookup_symbol_from_symtab.
7879 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7880 gdb_bfd_lookup_symbol_from_symtab.
7882 2012-02-03 Joel Brobecker <brobecker@adacore.com>
7884 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7885 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7886 symbol. Add assertion that sym2 is never NULL.
7888 2012-02-02 Doug Evans <dje@google.com>
7890 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7891 "name" parameter to const char ** from char **. All callers updated.
7892 (find_pc_partial_function): Ditto.
7893 (cache_pc_function_name): Change type to const char * from char *.
7894 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7895 (find_pc_partial_function): Update.
7896 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7897 type of "name" parameter to const char * from char *.
7899 * arch-utils.c (generic_in_solib_return_trampoline): Change
7900 type of "name" parameter to const char * from char *.
7901 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7902 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7903 type of "name" parameter to const char * from char *.
7904 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7905 * gdbarch.c: Regenerate.
7906 * gdbarch.h: Regenerate.
7907 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7908 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7909 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7910 type of "name" parameter to const char * from char *.
7911 * skip.c (skip_function_pc): Ditto.
7912 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7913 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7914 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7915 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7916 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7917 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7918 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7919 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7920 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7922 2012-02-02 Pedro Alves <palves@redhat.com>
7924 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7925 the current inferior has no execution. Make sure the current
7926 remote process matches gdb's current inferior.
7928 2012-02-02 Tom Tromey <tromey@redhat.com>
7931 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7934 2012-02-02 Tom Tromey <tromey@redhat.com>
7937 * symtab.c (lookup_language_this): Set block_found.
7939 2012-02-01 Tom Tromey <tromey@redhat.com>
7942 * jit.c (struct jit_inferior_data): Rewrite.
7943 (struct jit_objfile_data): New.
7944 (get_jit_objfile_data): New function.
7945 (add_objfile_entry): Update.
7946 (jit_read_descriptor): Return int. Replace descriptor_addr
7947 argument with inf_data. Update. Don't call error.
7948 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7950 (jit_inferior_init): Don't look up descriptor. Don't call error.
7951 (jit_reset_inferior_data_and_breakpoints)
7952 (jit_inferior_created_observer): Remove.
7953 (jit_inferior_exit_hook): Update.
7954 (jit_executable_changed_observer): Remove.
7955 (jit_event_handler): Update.
7956 (free_objfile_data): Reset inferior data if needed.
7957 (_initialize_jit): Update.
7959 2012-02-01 Tom Tromey <tromey@redhat.com>
7961 * jit.c (bfd_open_from_target_memory): Move higher in file.
7963 2012-02-01 Tristan Gingold <gingold@adacore.com>
7965 * libunwind-frame.c (libunwind_load): Display message if dlopen
7968 2012-02-01 Gary Benson <gbenson@redhat.com>
7970 * symtab.h (symbol_found_callback_ftype): New typedef.
7971 (iterate_over_symbols): Use the above.
7972 * symtab.c (iterate_over_symbols): Likewise.
7973 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7974 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7975 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7976 (iterate_name_matcher): Document return values.
7977 (collect_one_symbol): Likewise.
7978 (collect_function_symbols): Likewise.
7979 (collect_symbols): Likewise.
7981 2012-02-01 Tom Tromey <tromey@redhat.com>
7983 * ada-lang.c (resolve_subexp): Update.
7984 (ada_lookup_symbol_list): Add 'full_search' argument.
7985 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7986 ada_lookup_symbol_list.
7987 (ada_lookup_encoded_symbol): Update.
7988 (get_var_value): Update.
7989 * ada-exp.y (block_lookup): Update.
7990 (write_var_or_type): Update.
7991 (write_name_assoc): Update.
7992 * ada-lang.h (ada_lookup_symbol_list): Update.
7994 2012-01-31 Tom Tromey <tromey@redhat.com>
7996 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7999 2012-01-31 Doug Evans <dje@google.com>
8001 * symtab.h: Remove outdated comment.
8002 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
8004 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
8006 Fix build error in Darwin port.
8007 * i386-darwin-nat.c: Include i386-nat.h.
8009 2012-01-30 Tom Tromey <tromey@redhat.com>
8011 PR breakpoints/13568:
8012 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
8013 argument. Check for recursive includes.
8014 (dwarf_decode_macros): Create an include hash.
8016 2012-01-30 Michael Eager <eager@eagercon.com>
8018 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
8019 * ppc-linux-tdep.c: Include glibc-tdep.h.
8020 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
8021 (powerpc_linux_in_plt_stub): New function.
8022 (powerpc_linux_in_dynsym_resolve_code): New function.
8023 (ppc_skip_trampoline_code): New function.
8024 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
8025 Use glibc_skip_solib_resolver.
8027 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8029 Code cleanup: Make 1440 bytes of data segment read-only.
8030 * arch-utils.c (endian_enum): Make it const char *const [].
8031 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
8033 * breakpoint.c (always_inserted_enums): Likewise.
8034 * cli/cli-cmds.c (script_ext_enums): Likewise.
8035 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
8036 enumlist parameter const char *const *.
8037 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
8038 const char *const *.
8039 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
8040 parameter const char *const *.
8041 * cris-tdep.c (cris_modes): Make it const char *const [].
8042 * filesystem.c (target_file_system_kinds): Likewise.
8043 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
8044 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
8045 (can_use_displaced_stepping_enum, scheduler_enums)
8046 (exec_direction_names): Likewise.
8047 * language.c (_initialize_language): Make the type_or_range_names and
8048 case_sensitive_names variables const char *const [].
8049 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
8050 * python/python.c (python_excp_enums): Likewise.
8051 * remote.c (interrupt_sequence_modes): Likewise.
8052 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
8053 * serial.c (logbase_enums): Likewise.
8054 * sh-tdep.c (sh_cc_enum): Likewise.
8055 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
8057 * symtab.c (multiple_symbols_modes): Likewise.
8058 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
8060 * utils.c (internal_problem_modes): Likewise.
8062 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8064 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
8065 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
8068 2012-01-27 Doug Evans <dje@google.com>
8070 * configure.ac (with_python): Fix absolute path handling for win32.
8071 * configure: Regenerate.
8073 2012-01-26 Doug Evans <dje@google.com>
8075 * symtab.c: Whitespace cleanup, no code changes.
8077 * symtab.c (lookup_symbol_in_language): Improve comment.
8078 (lookup_symbol_aux): Fix comment.
8080 * psymtab.c (add_psymbol_to_list): Result is now "void".
8081 * psympriv.h (add_psymbol_to_list): Update.
8083 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
8085 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8087 Do not open script filenames twice.
8088 * cli/cli-cmds.c (source_script_from_stream): Pass to
8089 source_python_script also STREAM.
8090 * python/py-auto-load.c (source_section_scripts): Pass to
8091 source_python_script_for_objfile also STREAM.
8092 (auto_load_objfile_script): Pass to source_python_script_for_objfile
8094 * python/python-internal.h (source_python_script_for_objfile): New
8095 parameter file, rename parameter file to filename.
8096 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
8097 instead if !_WIN32. Update the function comment.
8098 (source_python_script, source_python_script_for_objfile)
8099 (source_python_script): New parameter file, rename parameter file to
8100 filename. Pass FILENAME to python_run_simple_file.
8101 * python/python.h (source_python_script): New parameter file, rename
8102 parameter file to filename.
8104 2012-01-26 Pedro Alves <palves@redhat.com>
8106 * corelow.c (core_has_fake_pid): Delete.
8107 (core_close): Delete references to `core_has_fake_pid'.
8108 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
8109 (core_open): Delete references to `core_has_fake_pid'.
8110 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
8113 2012-01-26 Joel Brobecker <brobecker@adacore.com>
8115 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
8116 Remove language parameter from name_matcher. Adjust the comment.
8117 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
8118 Remove language parameter.
8119 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
8120 * linespec.c (iterate_name_matcher): Likewise.
8121 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
8122 name_matcher. Adjust call accordingly.
8123 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
8124 (maintenance_check_symtabs): Adjust type of parameter "fun".
8125 * psymtab.h (maintenance_check_symtabs): Likewise.
8127 2012-01-26 Joel Brobecker <brobecker@adacore.com>
8129 * language.h (symbol_name_match_p_ftype): New typedef.
8130 (struct language_defn): Replace field la_symbol_name_compare
8131 by la_get_symbol_name_match_p.
8132 * ada-lang.c (ada_get_symbol_name_match_p): New function.
8133 (ada_language_defn): Use it.
8134 * linespec.c (struct symbol_matcher_data): New type.
8135 (iterate_name_matcher): Rewrite.
8136 (iterate_over_all_matching_symtabs): Pass a pointer to
8137 a symbol_matcher_data struct to expand_symtabs_matching
8138 instead of just the lookup name.
8139 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8140 opencl-lang.c, p-lang.c, language.c: Delete field
8141 la_symbol_name_compare, and replace by NULL for new field
8142 la_get_symbol_name_match_p.
8143 * symfile.h (struct quick_symbol_functions): Update comment.
8145 2012-01-25 Tom Tromey <tromey@redhat.com>
8147 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
8150 2012-01-24 Tom Tromey <tromey@redhat.com>
8153 * solib.c (update_solib_list): Update the program space's
8154 added_solibs and deleted_solibs fields.
8155 * progspace.h (struct program_space) <added_solibs,
8156 deleted_solibs>: New fields.
8157 (clear_program_space_solib_cache): Declare.
8158 * progspace.c (release_program_space): Call
8159 clear_program_space_solib_cache.
8160 (clear_program_space_solib_cache): New function.
8161 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
8162 bpstat_stop_status. Use handle_solib_event.
8163 * breakpoint.c: Include gdb_regex.h.
8164 (print_solib_event): New function.
8165 (bpstat_print): Use print_solib_event.
8166 (bpstat_stop_status): Add special case for bp_shlib_event.
8167 (handle_solib_event): New function.
8168 (bpstat_what): Use handle_solib_event.
8169 (struct solib_catchpoint): New.
8170 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
8171 (breakpoint_hit_catch_solib, check_status_catch_solib)
8172 (print_it_catch_solib, print_one_catch_solib)
8173 (print_mention_catch_solib, print_recreate_catch_solib): New
8175 (catch_solib_breakpoint_ops): New global.
8176 (catch_load_or_unload, catch_load_command_1)
8177 (catch_unload_command_1): New functions.
8178 (internal_bkpt_check_status): Add special case for
8180 (internal_bkpt_print_it): Use print_solib_event.
8181 (initialize_breakpoint_ops): Initialize
8182 catch_solib_breakpoint_ops.
8183 (_initialize_breakpoint): Register "catch load" and "catch
8185 * breakpoint.h (handle_solib_event): Declare.
8186 * NEWS: Add entry for "catch load" and "catch unload".
8188 2012-01-24 Tom Tromey <tromey@redhat.com>
8190 * ada-lang.c: Include gdb_vecs.h.
8191 * charset.c: Include gdb_vecs.h.
8192 * tracepoint.h: Include gdb_vecs.h.
8193 * gdb_vecs.h: New file.
8195 2012-01-24 Pedro Alves <pedro@codesourcery.com>
8197 * breakpoint.c (breakpoint_hit_catch_fork)
8198 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
8199 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
8200 * infrun.c (inferior_has_forked, inferior_has_vforked)
8201 (inferior_has_execd, inferior_has_called_syscall): Delete.
8202 (handle_syscall_event): Get syscall_number from the execution
8203 control state's wait status.
8204 (wait_for_inferior): Don't clear syscall_number.
8206 2012-01-24 Pedro Alves <palves@redhat.com>
8208 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
8209 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
8210 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
8211 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
8213 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
8214 false for events other than TARGET_SIGNAL_TRAP.
8215 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
8217 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
8218 events other than TARGET_SIGNAL_TRAP.
8219 (tracepoint_breakpoint_hit): Add `ws' parameter.
8220 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
8222 (bpstat_stop_status): Same.
8223 (pc_at_non_inline_function): Same.
8224 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
8225 to pass the current event's waitstatus to bpstat_stop_status
8226 and pc_at_non_inline_function.
8228 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8231 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
8232 Update the function comment for it.
8233 (source_script_with_search): Call make_cleanup_fclose for STREAM.
8234 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
8237 2012-01-24 Pedro Alves <palves@redhat.com>
8239 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
8240 outside `bs->stop' block.
8241 (bpstat_what): Rework bp_shlib_event handling.
8242 (internal_bkpt_check_status): If the breakpoint is a
8243 bp_shlib_event, then set bs->stop and bs->print if
8244 stop_on_solib_events is set.
8246 2012-01-24 Gary Benson <gbenson@redhat.com>
8248 Delete #if 0'd out code.
8249 * stack.c (print_frame_label_vars): Remove.
8250 (catch_info): Likewise.
8251 (_initialize_stack): Remove "info catch" command.
8252 * NEWS: Mention the above.
8254 2012-01-24 Pedro Alves <palves@redhat.com>
8256 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
8258 (remote_notice_new_inferior): If the remote end doesn't support
8259 the multiprocess extensions, then the PID is fake.
8260 (add_current_inferior_and_thread): New.
8261 (remote_start_remote): Use it.
8262 (extended_remote_attach_1): Adjust.
8263 (extended_remote_create_inferior_1): Use
8264 add_current_inferior_and_thread.
8266 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8268 Fix watchpoints to be specific for each inferior.
8269 * breakpoint.c (watchpoint_in_thread_scope): Verify also
8270 current_program_space.
8271 * i386-nat.c (i386_inferior_data_cleanup): New.
8272 (i386_inferior_data_get): Replace variable inf_data_local by an
8274 (i386_use_watchpoints): Initialize i386_inferior_data.
8275 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
8276 specific iterate_over_lwps.
8278 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8280 Fix watchpoints across inferior fork.
8281 * amd64-linux-nat.c (update_debug_registers_callback): Update the
8282 comment for linux_nat_iterate_watchpoint_lwps.
8283 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8284 linux_nat_iterate_watchpoint_lwps.
8285 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8286 * i386-linux-nat.c (update_debug_registers_callback): Update the
8287 comment for linux_nat_iterate_watchpoint_lwps.
8288 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8289 linux_nat_iterate_watchpoint_lwps.
8290 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8291 * i386-nat.c: Include inferior.h.
8292 (dr_mirror): Remove.
8293 (i386_inferior_data, struct i386_inferior_data)
8294 (i386_inferior_data_get): New.
8295 (i386_debug_reg_state): Use i386_inferior_data_get.
8296 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8297 (i386_insert_watchpoint, i386_remove_watchpoint)
8298 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8299 (i386_remove_hw_breakpoint): New variable state, use
8300 i386_debug_reg_state instead of DR_MIRROR.
8301 * linux-nat.c (delete_lwp): New declaration.
8302 (num_lwps): Move here from downwards.
8303 (delete_lwp_cleanup): New.
8304 (linux_child_follow_fork): Create new child_lp, call
8305 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8307 (num_lwps): Move upwards.
8308 (linux_nat_iterate_watchpoint_lwps): New.
8309 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8310 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8312 2012-01-24 Joel Brobecker <brobecker@adacore.com>
8316 2012-01-23 Pedro Alves <palves@redhat.com>
8318 * top.c (caution): Rename to ...
8319 (confirm): ... this.
8320 (show_caution): Rename to ...
8321 (show_confirm): ... this.
8322 (quit_cover): Adjust.
8323 (init_main): Adjust.
8324 * top.h (caution): Rename to ...
8325 (confirm): ... this.
8326 * utils.c (internal_vproblem, defaulted_query): Adjust.
8328 2012-01-23 Pedro Alves <palves@redhat.com>
8330 * top.c (caution): Update comment.
8331 (execute_command): Don't consider the current value of `caution'.
8333 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8335 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8337 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8339 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8340 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8341 * target.c (target_fileio_pwrite): Remove buffer address from
8343 (target_fileio_pread): Likewise.
8345 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8347 * NEWS: Document remote "info proc" and "generate-core-file".
8349 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8351 * gdbarch.sh (find_memory_regions): New callback.
8352 * gdbarch.c, gdbarch.h: Regenerate.
8354 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8355 callback before falling back to target method.
8357 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8358 (linux_target_install_ops): No longer install it.
8360 * linux-tdep.c (linux_find_memory_regions): New function.
8361 (linux_init_abi): Install it.
8363 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8365 * gdbarch.sh (make_corefile_notes): New architecture callback.
8366 * gdbarch.c: Regenerate.
8367 * gdbarch.h: Likewise.
8369 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8370 before target_make_corefile_notes. If NULL is returned, the
8371 target does not support core file generation.
8373 * linux-nat.c: Include "linux-tdep.h".
8374 (find_signalled_thread, find_stop_signal): Remove.
8375 (linux_nat_do_thread_registers): Likewise.
8376 (struct linux_nat_corefile_thread_data): Likewise.
8377 (linux_nat_corefile_thread_callback): Likewise.
8378 (iterate_over_spus): Likewise.
8379 (struct linux_spu_corefile_data): Likewise.
8380 (linux_spu_corefile_callback): Likewise.
8381 (linux_spu_make_corefile_notes): Likewise.
8382 (linux_nat_collect_thread_registers): New function.
8383 (linux_nat_make_corefile_notes): Replace contents by call to
8384 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8385 as native-only callback.
8387 * linux-tdep.h: Include "bfd.h".
8388 (struct regcache): Add forward declaration.
8389 (linux_collect_thread_registers_ftype): New typedef.
8390 (linux_make_corefile_notes): Add prototype.
8391 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8392 "regset.h", and "elf-bfd.h".
8393 (find_signalled_thread, find_stop_signal): New functions.
8394 (linux_spu_make_corefile_notes): Likewise.
8395 (linux_collect_thread_registers): Likewise.
8396 (struct linux_corefile_thread_data): New data structure.
8397 (linux_corefile_thread_callback): New funcion.
8398 (linux_make_corefile_notes): Likewise.
8399 (linux_make_corefile_notes_1): Likewise.
8400 (linux_init_abi): Install it.
8402 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8404 * gdbarch.sh (info_proc): New callback.
8405 * gdbarch.c, gdbarch.h: Regenerate.
8407 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8408 before falling back to the target info_proc callback.
8410 * linux-nat.c: Do not include "cli/cli-utils.h".
8411 (linux_nat_info_proc): Remove.
8412 (linux_target_install_ops): No longer install it.
8414 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8415 (read_mapping): New function.
8416 (linux_info_proc): Likewise.
8417 (linux_init_abi): Install it.
8419 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8421 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8422 * infcmd.c: (info_proc_cmd_1): New function.
8423 (info_proc_cmd): New function, moved here from equivalent routine
8424 orignally in linux-nat.c.
8425 (info_proc_cmd_mappings): Likewise.
8426 (info_proc_cmd_stat): Likewise.
8427 (info_proc_cmd_status): Likewise.
8428 (info_proc_cmd_cwd): Likewise.
8429 (info_proc_cmd_cmdline): Likewise.
8430 (info_proc_cmd_exe): Likewise.
8431 (info_proc_cmd_all): Likewise.
8432 (_initialize_infcmd): Install "info proc" command and subcommands.
8434 * target.h (struct target_ops): Add to_info_proc.
8435 (target_info_proc): Add prototype.
8436 * target.c (target_info_proc): New function.
8438 * procfs.c (procfs_info_proc): Add prototype.
8439 (info_proc_cmd): Rename into ...
8440 (procfs_info_proc): ... this. Update argument types as appropriate
8441 for a to_info_proc implementation. Handle "what" argument.
8442 (procfs_target): Install procfs_info_proc.
8443 (_initialize_procfs): No longer install "info proc" command.
8445 * linux-nat.c: (enum info_proc_what): Remove.
8446 (linux_nat_info_proc_cmd_1): Rename into ...
8447 (linux_nat_info_proc): ... this. Update argument types as appropriate
8448 for a to_info_proc implementation.
8449 (linux_nat_info_proc_cmd): Remove.
8450 (linux_nat_info_proc_cmd_mappings): Likewise.
8451 (linux_nat_info_proc_cmd_stat): Likewise.
8452 (linux_nat_info_proc_cmd_status): Likewise.
8453 (linux_nat_info_proc_cmd_cwd): Likewise.
8454 (linux_nat_info_proc_cmd_cmdline): Likewise.
8455 (linux_nat_info_proc_cmd_exe): Likewise.
8456 (linux_nat_info_proc_cmd_all): Likewise.
8457 (linux_target_install_ops): Install linux_nat_info_proc.
8458 (_initialize_linux_nat): No longer install "info proc" command
8461 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8463 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8464 * config.in, configure: Regenerate.
8466 * target.h (struct target_ops): Add to_fileio_readlink.
8467 (target_fileio_readlink): Add prototype.
8468 * target.c (target_fileio_readlink): New function.
8470 * inf-child.c: Conditionally include <sys/param.h>.
8471 (inf_child_fileio_readlink): New function.
8472 (inf_child_target): Install it.
8474 * remote.c (PACKET_vFile_readlink): New enum value.
8475 (remote_hostio_readlink): New function.
8476 (init_remote_ops): Install it.
8477 (_initialize_remote): Handle vFile:readlink packet type.
8479 2012-01-20 Pedro Alves <palves@redhat.com>
8480 Ulrich Weigand <ulrich.weigand@linaro.org>
8482 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8483 * config.in, configure: Regenerate.
8485 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8486 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8487 (target_fileio_open): Add prototype.
8488 (target_fileio_pwrite): Likewise.
8489 (target_fileio_pread): Likewise.
8490 (target_fileio_close): Likewise.
8491 (target_fileio_unlink): Likewise.
8492 (target_fileio_read_alloc): Likewise.
8493 (target_fileio_read_stralloc): Likewise.
8495 * target.c: Include "gdb/fileio.h".
8496 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8497 (default_fileio_target): New function.
8498 (target_fileio_open): Likewise.
8499 (target_fileio_pwrite): Likewise.
8500 (target_fileio_pread): Likewise.
8501 (target_fileio_close): Likewise.
8502 (target_fileio_unlink): Likewise.
8503 (target_fileio_close_cleanup): Likewise.
8504 (target_fileio_read_alloc_1): Likewise.
8505 (target_fileio_read_alloc): Likewise.
8506 (target_fileio_read_stralloc): Likewise.
8508 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8509 <fcntl.h>, and <unistd.h>.
8510 (inf_child_fileio_open_flags_to_host): New function.
8511 (inf_child_errno_to_fileio_error): Likewise.
8512 (inf_child_fileio_open): Likewise.
8513 (inf_child_fileio_pwrite): Likewise.
8514 (inf_child_fileio_pread): Likewise.
8515 (inf_child_fileio_close): Likewise.
8516 (inf_child_fileio_unlink): Likewise.
8517 (inf_child_target): Install to_fileio routines.
8519 * remote.c (init_remote_ops): Install to_fileio routines.
8521 2012-01-20 Pedro Alves <palves@redhat.com>
8522 Ulrich Weigand <ulrich.weigand@linaro.org>
8524 * remote.c (remote_multi_process_p): Only check for multi-process
8525 protocol feature, do not check for extended protocol.
8526 (remote_supports_multi_process): Check for extended protocol here.
8527 (set_general_process): Likewise.
8528 (extended_remote_kill): Likewise.
8529 (remote_pid_to_str): Likewise.
8530 (remote_query_supported): Always query multiprocess mode.
8532 2012-01-20 Pedro Alves <palves@redhat.com>
8533 Ulrich Weigand <ulrich.weigand@linaro.org>
8535 * inferior.h (struct inferior): Add fake_pid_p.
8536 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8537 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8538 magic_null_ptid since the remote side doesn't provide a real PID.
8540 2012-01-19 Tom Tromey <tromey@redhat.com>
8542 * NEWS: Combine the two Python sections.
8544 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8546 * target.h (target_close): Update comment on the target's unpush state.
8548 2012-01-19 Pedro Alves <palves@redhat.com>
8550 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8551 linux_nat_async directly instead of going through the target
8553 * target.c (unpush_target): Close target after unpushing it, not
8556 2012-01-19 Gary Benson <gbenson@redhat.com>
8558 * mdebugread.c (sort_blocks): Replace integer constants with ones
8559 derived from FIRST_LOCAL_BLOCK.
8561 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8562 Jan Kratochvil <jan.kratochvil@redhat.com>
8565 * symfile.c (find_separate_debug_file): New function.
8566 (terminate_after_last_dir_separator): Likewise.
8567 (find_separate_debug_file_by_debuglink): Also try realpath.
8568 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8569 * configure: Regenerate.
8570 * config.in: Regenerate.
8572 2012-01-18 Doug Evans <dje@google.com>
8574 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8575 (main.o): Remove rule.
8576 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8577 (--with-sysroot): Rewrite.
8578 * configure: Regenerate.
8579 * config.in: Regenerate.
8581 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8583 * parse.c (initialize_expout): New function.
8584 (reallocate_expout): Likewise.
8585 (parse_exp_in_context): Use `initialize_expout' and
8586 `reallocate_expout' when appropriate.
8588 2012-01-18 Pedro Alves <palves@redhat.com>
8590 * record.c (struct record_breakpoint, record_breakpoint_p)
8591 (record_breakpoints): New.
8592 (record_insert_breakpoint, record_remove_breakpoint): Manage
8593 record breakpoints list. Only remove breakpoints from the
8594 inferior if they had been inserted there in the first place.
8596 2012-01-17 Doug Evans <dje@google.com>
8598 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8599 if we know we don't have a file name to look for.
8601 2012-01-17 Pedro Alves <palves@redhat.com>
8603 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8604 the frame's stop reason is UNWIND_UNAVAILABLE.
8606 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8608 Fix compilation error.
8609 * m2-exp.y (yyerror): Use ANSI C prototype.
8611 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8613 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8614 (growbuf_by_size): Likewise.
8615 (yyerror): Likewise.
8616 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8617 (modblock): Remove variable (was #if 0'ed).
8618 (parse_number): Convert prototype from K&R to ANSI C.
8619 (yyerror): Likewise.
8620 * objc-exp.y (parse_number): Likewise.
8621 (yyerror): Likewise.
8622 (yylex): Remove #if 0'ed code.
8623 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8624 (yyerror): Likewise.
8626 2012-01-16 Tom Tromey <tromey@redhat.com>
8629 * symtab.h (compare_filenames_for_search): Declare.
8630 * symtab.c (compare_filenames_for_search): New function.
8631 (iterate_over_some_symtabs): Use it.
8632 * symfile.h (struct quick_symbol_functions)
8633 <map_symtabs_matching_filename>: Change spec.
8634 * psymtab.c (partial_map_symtabs_matching_filename): Use
8635 compare_filenames_for_search. Update for new spec.
8636 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8637 compare_filenames_for_search. Update for new spec.
8638 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8640 2012-01-16 Tom Tromey <tromey@redhat.com>
8643 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8644 (struct main_type) <flag_flag_enum>: New field.
8645 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8646 * NEWS: Add entries.
8647 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8649 * python/lib/gdb/printing.py (_EnumInstance): New class.
8650 (FlagEnumerationPrinter): Likewise.
8652 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8654 * breakpoint.c (create_sals_from_address_default): New function.
8655 (create_breakpoints_sal_default): Likewise.
8656 (decode_linespec_default): Likewise.
8657 (is_marker_spec): Removed.
8658 (strace_marker_p): New function.
8659 (init_breakpoint_sal): Using `strace_marker_p' instead of
8661 (create_breakpoint): Call method `create_sals_from_address' from
8662 breakpoint_ops, replacing code that created SALs conditionally
8663 on the type of the breakpoint. Call method `create_breakpoints_sal',
8664 replacing code that created breakpoints conditionally on the type
8666 (base_breakpoint_create_sals_from_address): New function.
8667 (base_breakpoint_create_breakpoints_sal): Likewise.
8668 (base_breakpoint_decode_linespec): Likewise.
8669 (base_breakpoint_ops): Add methods
8670 `base_breakpoint_create_sals_from_address',
8671 `base_breakpoint_create_breakpoints_sal' and
8672 `base_breakpoint_decode_linespec'.
8673 (bkpt_create_sals_from_address): New function.
8674 (bkpt_create_breakpoints_sal): Likewise.
8675 (bkpt_decode_linespec): Likewise.
8676 (tracepoint_create_sals_from_address): Likewise.
8677 (tracepoint_create_breakpoints_sal): Likewise.
8678 (tracepoint_decode_linespec): Likewise.
8679 (strace_marker_create_sals_from_address): Likewise.
8680 (strace_marker_create_breakpoints_sal): Likewise.
8681 (strace_marker_decode_linespec): Likewise.
8682 (strace_marker_breakpoint_ops): New variable.
8683 (addr_string_to_sals): Remove `marker_spec'. Call method
8684 `decode_linespec' from breakpoint_ops, replacing code that decoded
8685 an address string into a SAL. Use `strace_marker_p' instead of
8687 (strace_command): Decide whether we are dealing with a static
8688 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8689 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8690 * breakpoint.h (linespec_result, linespec_sals): New forward
8692 (breakpoint_ops) <create_sals_from_address>,
8693 <create_breakpoints_sal>, <decode_linespec>: New methods.
8695 2012-01-14 Doug Evans <dje@google.com>
8697 * NEWS: Update text for "maint set python print-stack".
8698 It is deprecated in gdb 7.4 and deleted in 7.5.
8700 2012-01-13 Eli Zaretskii <eliz@gnu.org>
8702 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8705 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8707 * configure: Regenerate.
8708 * config.in: Regenerate.
8710 2012-01-12 Keith Seitz <keiths@redhat.com>
8713 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8714 (ANONYMOUS_UNION_NAME): Define.
8715 (is_path_expr_parent): New function.
8716 (get_path_expr_parent): New function.
8717 (is_anonymous_child): New function.
8718 (create_child_with_value): If the child is anonymous and without
8719 a name, assign an object name to it.
8720 (c_describe_child): Use get_path_expr_parent to determine
8721 the parent expression.
8722 If there field represents an anonymous struct or union and
8723 has no name, set an appropriate display name and expression.
8724 (cplus_describe_child): Likewise.
8726 2012-01-12 Pedro Alves <palves@redhat.com>
8728 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8729 available when %ebp is found to be zero (outermost).
8731 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
8733 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8734 an internal gdb_static_assert.
8735 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8737 2012-01-11 Tom Tromey <tromey@redhat.com>
8740 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8741 catch" and "catch throw".
8743 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8745 * blockframe.c (block_innermost_frame): Start search from selected
8746 frame, if present, or otherwise the current frame.
8748 * c-exp.y (variable): Update innermost_block for
8749 'block COLONCOLON NAME' clause.
8750 * m2-exp.y (variable): Ditto.
8751 * objc-exp.y (variable): Ditto.
8753 2012-01-10 Tom Tromey <tromey@redhat.com>
8756 * python/python.c (finish_python_initialization): Set sys.argv.
8758 2012-01-10 Doug Evans <dje@google.com>
8760 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8761 "want_line_info". All callers updated.
8762 (dwarf_decode_lines_1): New function.
8763 (handle_DW_AT_stmt_list): Add function comment.
8764 New arg "want_line_info". All callers updated.
8765 (read_file_scope,read_type_unit_scope): Move comment from
8766 handle_DW_AT_stmt_list to here.
8768 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8770 Fix regression after libiberty/ update for GCC PR 6057 and others.
8771 * c-exp.y (operator) <OPERATOR DELETE>
8772 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8773 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8774 (make_builtin_type, make_name): New variable i, add gdb_assert.
8775 (operator) <OPERATOR NEW>: Update ARGS to 3.
8776 (operator) <OPERATOR DELETE>: Add trailing space.
8777 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8778 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8779 * cp-support.c (cp_canonicalize_string): Check NULL from
8780 cp_comp_to_string, call warning and return.
8782 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8784 Fix duplicate .o files after omitting libbfd.a.
8785 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8786 (SFILES): Add corelow.c.
8787 (COMMON_OBS): Add corelow.o.
8788 (ALLDEPFILES): Remove corelow.c.
8789 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8790 * config/alpha/alpha-osf3.mh: Likewise.
8791 * config/alpha/fbsd.mh: Likewise.
8792 * config/arm/nbsdaout.mh: Likewise.
8793 * config/arm/nbsdelf.mh: Likewise.
8794 * config/i386/i386gnu.mh: Likewise.
8795 * config/ia64/hpux.mh: Likewise.
8796 * config/ia64/linux.mh: Likewise.
8797 * config/m32r/linux.mh: Likewise.
8798 * config/m68k/linux.mh: Likewise.
8799 * config/mips/irix5.mh: Likewise.
8800 * config/mips/irix6.mh: Likewise.
8801 * config/pa/hpux.mh: Likewise.
8802 * config/pa/linux.mh: Likewise.
8803 * config/powerpc/aix.mh: Likewise.
8804 * config/sparc/linux.mh: Likewise.
8805 * config/sparc/linux64.mh: Likewise.
8806 * config/sparc/sol2.mh: Likewise.
8807 * config/vax/vax.mh: Likewise.
8808 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8809 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8810 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8811 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8812 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8813 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8814 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8815 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8816 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8817 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8818 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8819 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8820 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8821 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8822 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8823 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8824 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8825 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8826 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8827 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8828 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8829 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8830 corelow.o from gdb_target_obs.
8831 * corefile.c (core_target): Update the comment on NULL value.
8832 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8833 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8834 MATCHES. Drop YUMMY set on NULL.
8835 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8836 reclaim CORE_DATA if it is already NULL.
8838 2012-01-09 Doug Evans <dje@google.com>
8840 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8841 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8843 2012-01-09 Keith Seitz <keiths@redhat.com>
8845 * breakpoint.c (wrapper.h): Don't include.
8847 2012-01-09 Keith Seitz <keiths@redhat.com>
8849 * Makefile.in (SFILES): Remove wrapper.c.
8850 (HFILES_NO_SRCDIR): Remove wrapper.h.
8851 (COMMON_OBS): Remove wrapper.o.
8852 * cli/cli-interp.c: Don't inlude wrapper.h.
8853 * corelow.c: Likewise.
8854 (core_open): Replace gdb_target_find_new_threads with
8855 TRY_CATCH around target_find_new_threads.
8856 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8857 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8858 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8859 evaluate_expression.
8860 (varobj_set_value): Likewise for evaluate_expression and
8862 (install_new_variable): Likewise for value_fetch_lazy.
8863 (adjust_value_for_child_access): Likewise for value_ind.
8864 (c_describe_child): Likewise for value_subscript and
8866 (c_value_of_root): Likewise for evaluate_expression.
8867 * wrapper.c: Remove.
8868 * wrapper.h: Remove.
8870 2012-01-09 Doug Evans <dje@google.com>
8872 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8873 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8874 "abfd" args with "section". All callers updated.
8875 Error checking code moved ...
8876 (error_check_comp_unit_head): ... here. New function.
8877 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8878 Delete arg "abfd". New arg "type_offset". All callers updated.
8879 (create_debug_types_hash_table): Simplify by using
8880 read_and_check_type_unit_head.
8882 * parser-defs.h (namecopy): Delete.
8883 * parse.c (namecopy, namecopy_size): Move into copy_name.
8885 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8887 Partially fix duplicate .o files after omitting libbfd.a.
8888 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8889 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8890 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8891 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8892 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8893 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8894 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8896 2012-01-09 Pedro Alves <palves@redhat.com>
8898 * MAINTAINERS: Update my email address.
8900 2012-01-08 Doug Evans <dje@google.com>
8902 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8903 n_type_units. Rename type_comp_units to all_type_units.
8905 (add_signatured_type_cu_to_table): Renamed from
8906 add_signatured_type_cu_to_list. All callers updated.
8908 * gdbtypes.h (struct cplus_struct_type): Delete member
8909 nfn_fields_total. All uses removed.
8911 2012-01-06 Doug Evans <dje@google.com>
8913 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8915 (dwarf2_find_comp_unit): Delete.
8916 (process_psymtab_comp_unit): Make result "void".
8917 Delete args buffer, info_ptr, buffer_size, and replace with
8918 "section". All callers updated.
8919 (dwarf2_build_psymtabs_hard): Simplify.
8921 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8922 Thiago Jung Bauermann <bauerman@br.ibm.com>
8924 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8925 before `struct gdb_exception'.
8926 * breakpoint.c (update_global_location_list_nothrow)
8927 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8928 * cp-abi.c (value_rtti_type): Likewise.
8929 * cp-support.c (cp_validate_operator): Likewise.
8930 * infrun.c (insert_exception_resume_breakpoint)
8931 (check_exception_resume, keep_going): Likewise.
8932 * mi-interp.c (mi_breakpoint_created)
8933 (mi_breakpoint_modified): Likewise.
8934 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8935 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8936 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8938 2012-01-05 Doug Evans <dje@google.com>
8940 * dwarf2read.c (statement_prologue): Delete, unused.
8942 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8943 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8945 * dwarf2read.c (comp_unit_header): Delete, unused.
8947 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8949 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8950 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8952 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8954 * infrun.c (normal_stop): Don't skip calling the normal_stop
8955 observers if the thread was doing a multi-step, but stopped for
8956 some reason other than stepping.
8958 2012-01-05 Pedro Alves <alves.ped@gmail.com>
8960 * cli/cli-decode.h: Add comments.
8961 (CMD_LIST_AMBIGUOUS): Moved to command.h
8962 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8963 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8964 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8965 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8966 (add_com, add_com_alias, add_info, add_info_alias)
8967 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8969 * command.h: Add and adjust comments.
8970 (CMD_LIST_AMBIGUOUS): Moved here.
8971 (help_cmd, help_cmd_list): Delete declarations.
8973 2012-01-04 Doug Evans <dje@google.com>
8975 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8976 All callers updated.
8977 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8978 Replace all arguments with "per_cu". All callers updated.
8980 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8982 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8983 New arg "per_cu". All callers updated.
8985 Delete #if 0'd out code.
8986 * language.c (binop_result_type): Delete.
8987 (simple_type, ordered_type, same_type, integral_type): Delete.
8988 (numeric_type, character_type, string_type, boolean_type): Delete.
8989 (float_type, structured_type): Delete.
8990 * language.h: Update.
8992 2012-01-04 Tom Tromey <tromey@redhat.com>
8994 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8996 2012-01-04 Joel Brobecker <brobecker@adacore.com>
8998 * corefile.c (close_exec_file): Delete.
8999 (reopen_exec_file): Remove commented out code that seems related
9000 to close_exec_file, which is being deleted here.
9001 * inferior.h (close_exec_file): Delete.
9002 * fork-child.c (fork_inferior): Remove call to fork_inferior.
9004 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9006 * ada-lang.c: #include "cli/cli-utils.h".
9007 (get_selections): Use skip_spaces.
9008 (ada_get_next_arg): Use skip_spaces and skip_to_space.
9009 (catch_ada_exception_command_split): Use skip_spaces.
9010 (ada_decode_assert_location): Likewise.
9012 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9014 * linespec.c (decode_line_internal): Check for C++ or Java
9015 compound constructs only if the current language is C, C++
9018 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9021 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9022 Joel Brobecker <brobecker@adacore.com>
9023 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9024 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9026 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9027 fall through into AT_ENTRY_POINT.
9028 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9030 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9031 PPC_INSN_SIZE skip to 3 times.
9033 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9035 * linespec.c (add_minsym): Preserve function descriptors.
9037 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9039 * breakpoint.c (all_locations_are_pending): Consider locations
9040 in program spaces executing during startup pending as well.
9042 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9044 Copyright year update in most files of the GDB Project.
9046 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9048 * copyright.sh: Delete.
9049 * copyright.py: Rewrite.
9051 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9053 * gnulib/extra/update-copyright: New file, imported from gnulib.
9055 2012-01-04 Joel Brobecker <brobecker@adacore.com>
9057 * README (Copyright and License Notices): New section.
9059 2012-01-03 Tom Tromey <tromey@redhat.com>
9062 * python/py-value.c (valpy_dereference, valpy_get_address
9063 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
9064 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
9065 (valpy_absolute, valpy_richcompare): Free intermediate values.
9067 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9069 * ada-lang.c: Reformat the copyright notice.
9071 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9073 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
9074 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
9075 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
9076 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
9077 Revert this part of:
9078 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9079 Build gdb directly from *.o files not using libgdb.a.
9080 * Makefile.in (COMMON_OBS): Remove solib-target.o.
9082 2012-01-02 Joel Brobecker <brobecker@adacore.com>
9084 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
9085 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
9086 Reformat the copyright header.
9088 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9090 Revert this part of:
9091 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9092 Remove the gdbtui binary.
9093 * gdb.c (main): Remove args.interpreter_p initialization.
9094 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9095 * main.h (struct captured_main_args): Remove interpreter_p.
9097 2012-01-02 Joel Brobecker <brobecker@adacore.com>
9099 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
9101 2012-01-02 Joel Brobecker <brobecker@adacore.com>
9103 * top.c (print_gdb_version): Update copyright year.
9105 2012-01-02 Yao Qi <yao@codesourcery.com>
9107 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
9109 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9110 Joel Brobecker <brobecker@adacore.com>
9112 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9113 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9115 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9116 fall through into AT_ENTRY_POINT.
9117 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9119 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9120 PPC_INSN_SIZE skip to 3 times.
9122 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9124 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
9126 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
9128 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9130 Build gdb directly from *.o files not using libgdb.a.
9131 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
9132 (COMMON_OBS): Remove solib-target.o.
9133 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
9134 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
9135 (LIBGDB_OBS, libgdb.a): Move it above.
9136 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
9137 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
9138 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
9139 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
9140 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
9141 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
9142 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
9143 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
9144 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
9145 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
9146 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
9147 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
9148 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
9149 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
9150 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9151 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
9152 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
9153 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9154 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
9155 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
9156 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
9157 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
9158 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
9159 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
9160 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
9161 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
9162 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
9164 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9166 Remove the gdbtui binary.
9167 * .gitignore (/gdbtui): Remove.
9168 * Makefile.in (TUI): Remove.
9169 (SUBDIR_TUI_OBS): Remove tui-main.o.
9170 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
9171 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
9172 (tui-main.o): Remove.
9173 (all_object_files): Remove tui-main.o.
9174 * NEWS: New note for the gdbtui removal.
9175 * configure: Rebuilt.
9176 * configure.ac: No longer add all-tui, clean-tui, install-tui and
9177 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
9178 CONFIG_UNINSTALL respectively.
9179 * gdb.c (main): Remove args.interpreter_p initialization.
9180 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9181 * main.h (struct captured_main_args): Remove interpreter_p.
9182 * tui/tui-main.c: Remove.
9184 2012-01-01 Doug Evans <dje@google.com>
9186 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
9187 (dwarf2_physname, read_import_statement): Ditto.
9188 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
9189 (process_structure_scope read_subroutine_type): Ditto.
9190 (read_typedef, load_partial_dies, read_partial_die): Ditto.
9191 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
9192 (dwarf2_fetch_die_location_block): Ditto.
9193 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
9195 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
9196 All callers updated.
9197 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
9198 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
9199 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
9201 * dwarf2read.c (load_cu): Move assert to more useful location.
9203 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
9204 All callers updated.
9206 * dwarf2read.c (dwarf2_per_objfile): Add comment.
9207 (dwarf2_elf_names): Minor reformat.
9208 (dwarf2_per_cu_data): Tweak comment.
9209 (dwarf2_read_section): Fix comment.
9210 (create_all_comp_units): Fix comment.
9211 (load_full_comp_unit): Fix comment.
9212 (process_full_comp_unit): Fix comment.
9213 (read_signatured_type): Fix comment.
9215 For older changes see ChangeLog-2011.
9221 version-control: never