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