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