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