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