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