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