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