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