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