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