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