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