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