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