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