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