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