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