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