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