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