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