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