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