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