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