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