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