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