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