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