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