1 2012-09-11 Joel Brobecker <brobecker@adacore.com>
3 * minsyms.c (install_minimal_symbols): Use memset to fill entire
4 minimal_symbol struct object, rather than setting some of its
7 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
9 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
10 passed_a_ptr flag when displaying typedef types.
12 2012-09-10 Joel Brobecker <brobecker@adacore.com>
14 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
15 the optimized_out flag is preserved.
17 2012-09-10 Anthony Green <green@moxielogic.com>
19 * moxie-tdep.c (moxie_analyze_prologue): Update for function
20 prologue changes in GCC.
22 2012-09-10 Keith Seitz <keiths@redhat.com>
25 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
26 (BOOL_CONVERSION_BADNESS): ... this.
27 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
28 (rank_one_type): Allow all boolean conversions
29 permitted by the standard.
31 2012-09-06 Tom Tromey <tromey@redhat.com>
33 * python/py-newobjfileevent.c (create_new_objfile_event_object):
34 Don't decref py_objfile.
36 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
38 Do not enable -lmcheck by default when Python is enabled with
40 * configure.ac: (python_has_threads) New variable, by testing
41 if WITH_THREAD is defined in Python.h.
42 Move --enable-lmcheck after --with-python.
43 Do not enable -lmcheck by default if python_has_threads=yes.
44 Warn if --enable-lmcheck and python_has_threads=yes.
45 * configure: Regenerate.
47 2012-08-31 Yao Qi <yao@codesourcery.com>
49 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
50 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
52 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
53 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
56 2012-08-31 Yao Qi <yao@codesourcery.com>
58 * mi/mi-cmds.c (mi_cmds): Add 'static'.
60 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
62 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
64 2012-08-29 Doug Evans <dje@google.com>
66 * main.c (print_gdb_help): Remove reference to
67 --use-deprecated-index-sections.
69 2012-08-28 Yao Qi <yao@codesourcery.com>
71 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
72 (init_cmds): Call add_setshow_uinteger_cmd for command
73 'max-user-call-depth'.
74 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
75 declaration of 'max_user_call_depth'.
76 * frame.c (backtrace_limit): Add 'unsigned'.
77 (_initialize_frame): Call add_setshow_uinteger_cmd for command
79 * remote.c (remoteaddresssize): Add 'unsigned'.
80 (remote_address_masked): Change local var 'address_size' to
82 (_initialize_remote): Call add_setshow_uinteger_cmd for
84 * top.c (history_size): Add 'unsigned'.
85 (show_commands): Change local variables to 'unsigned'.
86 (set_history_size_command): Don't check history_size is negative.
87 Adjust the condition to call unstifle_history and set history_size
90 2012-08-28 Pedro Alves <palves@redhat.com>
94 * infcmd.c (default_print_one_register_info): New, factored out
95 from default_print_registers_info.
96 (default_print_registers_info): Use it. Mark value unavailable if
98 (registers_info): Print user registers with
99 default_print_one_register_info.
101 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
104 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
105 is not NULL before referencing it.
107 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
109 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
110 variable pc. Call find_pc_line instead of find_pc_overlay, restore
113 2012-08-27 Eli Zaretskii <eliz@gnu.org>
114 Jan Kratochvil <jan.kratochvil@redhat.com>
116 * auto-load.c (auto_load_objfile_script): Rename to ...
117 (auto_load_objfile_script_1): ... here, change variable realname to
118 parameter realname, document it, add return value, add variable retval.
119 (auto_load_objfile_script): New function.
121 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
123 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
124 followed by a whitespace.
126 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
129 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
130 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
131 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
134 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
136 * memattr.c (create_mem_region): Fix memory region overlapping
139 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
141 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
142 with xmalloc/cleanup.
143 * mt-tdep.c (mt_push_dummy_call): Likewise.
144 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
145 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
147 2012-08-24 Yao Qi <yao@codesourcery.com>
149 * jv-exp.y (push_expression_name): Add "." at the end of error
152 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
154 Document how to return from "python-interactive" to GDB.
155 * python/python.c (_initialize_python): Update documentation.
157 2012-08-23 Pedro Alves <palves@redhat.com>
159 * infrun.c (_initialize_infrun) <handle command help text>:
160 Mention that multiple signals are supported.
162 2012-08-23 Pedro Alves <palves@redhat.com>
164 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
167 2012-08-23 Yao Qi <yao@codesourcery.com>
169 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
170 (tfind_1): Don't call registers_changed, set_traceframe_num,
171 and clear_traceframe_info.
172 Call set_current_traceframe.
173 (set_current_traceframe): call set_traceframe_num.
175 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
177 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
178 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
180 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
182 Enable readline in Python in a GDB-specific way and block the
183 standard Python readline module to prevent conflicts with GDB.
184 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
185 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
186 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
187 * python/py-gdb-readline.c: New file.
188 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
190 * python/python.c (_initialize_python): Call
191 gdbpy_initialize_gdb_readline.
193 2012-08-22 Keith Seitz <keiths@redhat.com>
195 * defs.h: Include build-gnulib/config.h
197 2012-08-22 Joseph Myers <joseph@codesourcery.com>
199 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
202 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
204 Add a new "python-interactive" command that starts a standard
205 Python interactive prompt with "pi" as alias, and add "py" as
206 an alias to "python".
207 * NEWS: Mention the new commands.
208 * python/python.c (eval_python_command): New function.
209 (python_interactive_command): For "python-interactive" with
210 arguments, call eval_python_command. For "python-interactive"
211 without arguments, call PyRun_InteractiveLoop.
212 (_initialize_python): Add "python-interactive" command with
213 "pi" as alias, and add "py" as an alias to "python".
215 2012-08-22 Tom Tromey <tromey@redhat.com>
217 * defs.h (quit_flag): Don't declare.
218 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
219 (QUIT): Use new functions.
220 * event-top.c (command_handler): Use clear_quit_flag.
221 (handle_sigint): Use set_quit_flag.
222 (async_request_quit): Use check_quit_flag. Don't check
224 * exceptions.c (throw_exception): Use clear_quit_flag.
225 * main.c (captured_main): Use clear_quit_flag.
226 * python/python.c (clear_quit_flag, set_quit_flag)
227 (check_quit_flag): New functions.
228 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
230 * remote.c (remote_wait_as): Use check_quit_flag,
232 (remote_start_remote): Call QUIT.
233 * symfile.c (load_progress): Use check_quit_flag.
234 * top.c (command_loop): Use clear_quit_flag.
235 (command_line_input): Call QUIT.
236 * utils.c (quit_flag): Conditionally define.
237 (clear_quit_flag, check_quit_flag, set_quit_flag): New
239 (prompt_for_continue): Call QUIT. Use quit, not
241 * remote-mips.c (mips_expect_timeout): Call QUIT.
242 * monitor.c (monitor_expect): Call QUIT.
244 2012-08-22 Tom Tromey <tromey@redhat.com>
246 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
247 (async_init_signals): Update.
248 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
249 (SIGWINCH_HANDLER_BODY): Remove.
251 2012-08-22 Tom Tromey <tromey@redhat.com>
253 * jit.c (jit_object_close_impl): Don't malloc the objfile
255 * objfiles.c (allocate_objfile): Don't malloc the objfile
257 (free_objfile): Don't free the objfile name.
258 * objfiles.h (struct objfile) <name>: Update comment.
259 * symfile.c (reread_symbols): Fix reference counting. Don't
262 2012-08-22 Tom Tromey <tromey@redhat.com>
264 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
265 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
266 (symfile_bfd_open): Likewise.
267 (generic_load): Likewise.
268 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
269 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
271 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
273 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
274 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
275 (pmon_load_fast): Likewise.
276 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
277 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
278 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
279 (macho_check_dsym): Likewise.
280 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
281 (m32r_upload_command): Likewise.
282 * gdb_bfd.h (gdb_bfd_cache): Declare.
283 * gdb_bfd.c (struct gdb_bfd_data): New.
284 (gdb_bfd_cache): New global.
285 (struct gdb_bfd_cache_search): New.
286 (hash_bfd): New function.
288 (gdb_bfd_open): Likewise.
289 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
290 (gdb_bfd_unref): Remove closed BFD from cache. Update for
292 * exec.c (exec_file_attach): Use gdb_bfd_open.
293 * dsrec.c (load_srec): Use gdb_bfd_open.
295 2012-08-22 Tom Tromey <tromey@redhat.com>
297 * dwarf2read.c (macro_start_file): Update.
298 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
299 (free_objfile_per_bfd_storage): Destroy macro_cache.
300 (allocate_objfile, free_objfile): Update.
301 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
303 (struct objfile) <macro_cache>: Remove.
304 * symfile.c (reread_symbols): Update.
305 * symmisc.c (print_symbol_bcache_statistics): Update.
306 (print_objfile_statistics): Update.
308 2012-08-22 Tom Tromey <tromey@redhat.com>
310 * elfread.c (elf_symtab_read): Update.
311 * objfiles.c (objfiles_bfd_data): New global.
312 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
313 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
314 (allocate_objfile, free_objfile): Update.
315 (_initialize_objfiles): Initialize objfiles_bfd_data.
316 * objfiles.h (struct objfile_per_bfd_storage): New.
317 (struct objfile) <per_bfd>: New field.
318 <filename_cache>: Remove.
319 (set_objfile_per_bfd): Declare.
320 * symfile.c (reread_symbols): Update. Call
322 (allocate_symtab): Update.
323 * symmisc.c (print_symbol_bcache_statistics): Update.
324 (print_objfile_statistics): Print the size of the BFD obstack.
326 2012-08-22 Tom Tromey <tromey@redhat.com>
328 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
329 * gdb_bfd.c: Use DEFINE_REGISTRY.
330 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
331 (gdb_bfd_ref): Call bfd_alloc_data.
332 (gdb_bfd_unref): Call bfd_free_data.
334 2012-08-22 Tom Tromey <tromey@redhat.com>
336 * registry.h (struct registry_fields): New.
337 (REGISTRY_FIELDS): Redefine.
338 (REGISTRY_ACCESS_FIELD): New macro.
339 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
342 2012-08-22 Tom Tromey <tromey@redhat.com>
344 * auto-load.c (_initialize_auto_load): Update.
345 * solib-svr4.c (_initialize_svr4_solib): Update
346 * solib-dsbt.c (_initialize_dsbt_solib): Update.
347 * solib-darwin.c (_initialize_darwin_solib): Update.
348 * registry.h: New file.
349 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
350 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
351 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
352 (register_program_space_data_with_cleanup)
353 (register_program_space_data, program_space_alloc_data)
354 (clear_program_space_data, set_program_space_data)
355 (program_space_data): Don't declare.
356 * progspace.c: Use DEFINE_REGISTRY.
357 (struct program_space_data, struct
358 program_space_data_registration, struct
359 program_space_data_registry, program_space_data_registry)
360 (register_program_space_data_with_cleanup)
361 (register_program_space_data, program_space_alloc_data)
362 (program_space_free_data, clear_program_space_data)
363 (set_program_space_data, program_space_data): Remove.
364 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
365 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
366 (register_objfile_data_with_cleanup, register_objfile_data)
367 (clear_objfile_data, set_objfile_data, objfile_data): Don't
369 * objfiles.c: Use DEFINE_REGISTRY.
370 (struct objfile_data, struct objfile_data_registration, struct
371 objfile_data_registry, objfile_data_registry)
372 (register_objfile_data_with_cleanup, register_objfile_data)
373 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
374 (set_objfile_data, objfile_data): Remove.
375 (_initialize_objfiles): Update.
376 * jit.c (_initialize_jit): Update.
377 * inflow.c (_initialize_inflow): Update.
378 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
379 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
380 (register_inferior_data_with_cleanup, register_inferior_data)
381 (clear_inferior_data, set_inferior_data, inferior_data): Don't
383 * inferior.c: Use DEFINE_REGISTRY.
384 (struct inferior_data, struct inferior_data_registration, struct
385 inferior_data_registry, inferior_data_registry)
386 (register_inferior_data_with_cleanup, register_inferior_data)
387 (inferior_alloc_data, inferior_free_data clear_inferior_data)
388 (set_inferior_data, inferior_data): Remove.
389 * auxv.c (_initialize_auxv): Update.
390 * ada-lang.c (_initialize_ada_language): Update.
391 * breakpoint.c (_initialize_breakpoint): Update.
392 * i386-nat.c (i386_use_watchpoints): Update.
394 2012-08-22 Tom Tromey <tromey@redhat.com>
396 * exec.c (exec_close, exec_file_attach): Update.
397 (add_to_section_table): Initialize 'key' field.
398 (add_target_sections, remove_target_sections): Add 'key' argument.
399 * exec.h (add_target_sections, remove_target_sections): Add
401 * solib.c (solib_map_sections, update_solib_list, clear_solib)
402 (reload_shared_libraries_1): Update.
403 * target.h (struct target_section) <key>: New field.
405 2012-08-22 Tom Tromey <tromey@redhat.com>
407 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
409 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
411 * symfile.c (allocate_symtab): Use host_address_to_string
412 function instead of cast of pointer to long which is not
413 compatible with x86_64-w64-mingw32 build.
415 2012-08-19 Andrew Pinski <apinski@cavium.com>
417 * mips-tdep.c (is_octeon): New function.
418 (is_octeon_bbit_op): New function.
419 (mips32_next_pc): Handle Octeon's bbit instructions.
420 (mips32_instruction_has_delay_slot): Likewise.
422 2012-08-19 Andrew Pinski <apinski@cavium.com>
424 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
427 2012-08-19 Andrew Pinski <apinski@cavium.com>
429 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
431 2012-08-19 Keith Seitz <keiths@redhat.com>
434 * c-typeprint.c (c_type_print_varspec_prefix): Pass
435 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
437 2012-08-18 Eli Zaretskii <eliz@gnu.org>
439 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
440 The typo broke "make TAGS".
442 2012-08-17 Joel Brobecker <brobecker@adacore.com>
446 2012-08-17 Keith Seitz <keiths@redhat.com>
449 * gdbtypes.c (strict_type_checking): New variable.
450 (show_strict_type_checking): New function.
451 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
452 if strict type checking is disabled.
453 (_initialize_gdbtypes): Add "check type" subcommand.
454 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
456 2012-08-17 Keith Seitz <keiths@redhat.com>
458 * language.h (type_mode): Remove.
459 (type_check): Remove.
460 (struct language_defn): Remove la_type_check.
461 (STRICT_TYPE): Remove unused macro.
462 (type_error): Remove.
463 * language.c (set_type_range_case): Renamed to ...
464 (set_range_case): ... this. Update all callers.
465 Remove type_mode/type_check.
467 (type_check): Remove.
468 (show_type_command): Remove.
469 (set_type_command): Remove.
470 (language_info): Remove type checking output.
471 (type_error): Remove unused function.
472 (range_error): Update comment.
473 (unknown_language_defn): Remove la_type_check.
474 (auto_language_defn): Likewise.
475 (local_language_defn): Likewise.
476 (_initialize_language): Remove "check type" subcommand.
477 * ada-lang.c (ada_language_defn): Remove la_type_check.
478 * c-lang.c (c_language_defn): Likewise.
479 (cplus_language_defn): Likewise.
480 (asm_language_defn): Likewise.
481 (minimal_language_defn): Likewise.
482 * d-lang.c (d_language_defn): Likewise.
483 * f-lang.c (f_language_defn): Likewise.
484 * go-lang.c (go_language_defn): Likewise.
485 * jv-lang.c (java_language_defn): Likewise.
486 * m2-lang.c (m2_language_defn): Likewise.
487 * objc-lang.c (objc_language_defn): Likewise.
488 * opencl-lang.c (opencl_language_defn): Likewise.
489 * p-lang.c (pascal_language_defn): Likewise.
491 2012-08-16 Mike Frysinger <vapier@gentoo.org>
493 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
495 2012-08-16 Joel Brobecker <brobecker@adacore.com>
497 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
499 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
500 using the regache. Use ia64_hpux_get_register_from_save_state_t
501 to access the bsp and bspstore registers if not.
503 2012-08-16 Joel Brobecker <brobecker@adacore.com>
505 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
506 * breakpoint.c (detach_breakpoints): Change pid parameter into
507 a ptid. Adjust code accordingly.
508 * infrun.c (handle_inferior_event): Delete variable child_pid.
509 Update call to detach_breakpoints to pass the child ptid for
511 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
512 assert that inferior_ptid's lwp is zero.
513 (linux_handle_extended_wait): Update call to detach_breakpoints.
514 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
517 2012-08-16 Joel Brobecker <brobecker@adacore.com>
519 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
520 parent, only call detach_breakpoints if tts.tts_event ==
523 2012-08-16 Joel Brobecker <brobecker@adacore.com>
525 * dwarf2-frame.c (dwarf2_frame_cache): Use
526 get_frame_address_in_block instead of get_frame_pc as
527 the bound for executing the frame's FDE.
529 2012-08-16 Yao Qi <yao@codesourcery.com>
531 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
532 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
533 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
534 (c_type_print_varspec_suffix): Likewise.
535 * eval.c (evaluate_subexp_standard): Likewise.
536 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
537 (f_type_print_varspec_suffix): Likewise.
538 * gdbtypes.c (is_scalar_type): Likewise.
539 (recursive_dump_type): Likewise.
540 * infcall.c (value_arg_coerce): Likewise.
541 * m2-valprint.c (m2_val_print): Likewise.
542 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
543 (pascal_type_print_varspec_suffix): Likewise.
544 (pascal_type_print_base): Likewise.
545 * p-valprint.c (pascal_val_print): Likewise.
546 (pascal_val_print): Likewise.
547 * valops.c (value_slice): Likewise.
548 * valprint.c (scalar_type_p): Likewise.
549 * valarith.c (value_bitstring_subscript): Remove.
550 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
551 Remove comment on TYPE_CODE_BITSTRING.
553 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
556 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
559 2012-08-16 Yao Qi <yao@codesourcery.com>
561 * tracepoint.c (trace_find_none_command): Remove.
562 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
564 2012-08-16 Yao Qi <yao@codesourcery.com>
566 * remote.c (handle_notification): Remove parameter 'length'.
567 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
569 2012-08-15 Keith Seitz <keiths@redhat.com>
571 * gdbtypes.c (opaque_type_resolution): Make static.
573 (overload_debug): Add missing comment.
574 (show_opaque_type_resolution): Likewise.
575 (show_overload_debug): Likewise.
576 (print_bit_vector): Remove unnecessary forward declaration.
577 (print_arg_types): Likewise.
578 (dump_fn_fieldlists): Likewise.
579 (print_cplus_stuff): Likewise.
581 2012-08-15 Tom Tromey <tromey@redhat.com>
583 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
584 (gdb_bfd_ref): Initialize new field.
585 (gdb_bfd_unref): Unref the archive BFD.
586 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
589 2012-08-15 Tom Tromey <tromey@redhat.com>
592 * python/py-bpevent.c (create_breakpoint_event_object): Update
594 * python/py-event.c (evpy_add_attribute): Update comment.
595 * python/py-exitedevent.c (create_exited_event_object): Fix
596 reference counting and error handling.
597 * python/py-newobjfileevent.c (create_new_objfile_event_object):
598 Fix reference counting.
599 * python/py-signalevent.c (create_signal_event_object): Fix
600 reference counting and error handling.
601 * python/py-stopevent.c (emit_stop_event): Fix reference
603 * python/py-threadevent.c (get_event_thread): Return a
605 * python/py-type.c (convert_field): Fix reference counting.
607 2012-08-15 Tom Tromey <tromey@redhat.com>
609 * dwarf2read.c (dwarf_decode_macro_bytes)
610 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
613 2012-08-14 Mike Frysinger <vapier@gentoo.org>
615 * infcmd.c (_initialize_infcmd): Update help text for the signal,
616 stepi, nexti, finish, next, step, jump, and continue commands.
617 * infrun.c (_initialize_infrun): Update help text for the handle
620 2012-08-14 Doug Evans <dje@google.com>
622 * gdbtypes.c (struct extra): Delete, unused.
624 * gdbtypes.c: Whitespace cleanup.
625 (address_space_name_to_int): Remove "extern" from definition.
626 (_initialize_gdbtypes): Declare with initialize_file_ftype.
628 * gdbtypes.c (make_pointer_type): Remove redundant setting of
629 TYPE_POINTER_TYPE (type).
631 2012-08-14 Gary Benson <gbenson@redhat.com>
633 * solib-svr4.c (svr4_free_library_list): Use free_so.
635 2012-08-13 Mike Frysinger <vapier@gentoo.org>
637 * .gitignore: Add go-exp.c.
639 2012-08-13 Doug Evans <dje@google.com>
641 * value.c (show_convenience): Tweak comment.
642 (_initialize_values): Mention convenience functions in the help text
643 for "show convenience".
645 2012-08-13 Yao Qi <yao@codesourcery.com>
647 * std-operator.def: Remove TERNOP_SLICE_COUNT.
648 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
650 * eval.c (evaluate_subexp_standard): Likewise.
651 * expprint.c (print_subexp_standard): Likewise.
652 (dump_subexp_body_standard): Likewise.
653 * parse.c (operator_length_standard): Likewise.
655 2012-08-13 Yao Qi <yao@codesourcery.com>
657 * std-operator.def: Remove OP_BITSTRING.
658 * breakpoint.c (watchpoint_exp_is_const): Update.
659 * eval.c (evaluate_subexp_standard): Remove handling to
661 * expprint.c (print_subexp_standard): Likewise.
662 (dump_subexp_body_standard): Likewise.
663 * parse.c (operator_length_standard): Likewise.
664 * valops.c (value_bitstring): Remove.
665 * value.h: Remove the declaration of 'value_bitstring'.
667 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
669 * linespec.c (find_methods): Remove unused variables `i1' and
671 (decode_line_full): Likewise for `arg_start'.
673 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
675 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
676 (zlib_decompress_section): Likewise for `section_data'.
677 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
679 2012-08-10 Doug Evans <dje@google.com>
681 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
682 * NEWS: Document them.
683 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
685 * python/py-type.c (typy_array_1): New function.
686 (typy_array): Call it.
687 (typy_vector): New function.
688 (type_object_methods): Add "vector".
689 * python/lib/gdb/function/__init__.py: New file.
690 * python/lib/gdb/function/strfns.py: New file.
692 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
694 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
695 for TYPE_FIELD_BITPOS.
696 (typy_get_sizeof): Likewise for TYPE_LENGTH.
698 2012-08-10 Mike Frysinger <vapier@gentoo.org>
701 * common/vec.h (VEC_merge): Define.
702 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
703 (DEF_VEC_ALLOC_FUNC_P): Likewise.
704 (DEF_VEC_ALLOC_FUNC_O): Likewise.
705 * completer.c: Include gdb_signals.h.
706 (signal_completer): Define.
707 * completer.h (signal_completer): Add prototype.
708 * infcmd.c (_initialize_infcmd): Assign the command
709 completer for "signal" to handle_completer.
710 * infrun.c: Include completer.h.
711 (handle_completer): Define.
712 (_initialize_infrun): Declare a new local variable c. Store the
713 result of add_com("handle") to it. Assign the command
714 completer for "handle" to handle_completer.
716 2012-08-09 Yao Qi <yao@codesourcery.com>
718 * cli/cli-decode.c (set_cmd_prefix): New.
719 (lookup_cmd_for_prefixlist): New.
720 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
721 of each cmd_list_element in *prefixlist.
722 (add_setshow_cmd_full): set_cmd_prefix.
723 (add_alias_cmd): Likewise.
724 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
725 Declare 'auto_boolean_enums'.
726 * cli/cli-setshow.c: Include "observer.h".
727 (notify_command_param_changed_p): New.
728 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
730 (do_setshow_command): Split it to ...
731 (do_set_command, do_show_command): ... them. New.
732 (do_set_command): Call observer_notify_command_param_changed if
733 notify_command_param_changed_p returns true.
734 (cmd_show_list): Caller update.
735 * auto-load.c (set_auto_load_cmd): Likewise.
736 * remote.c (show_remote_cmd): Likewise.
737 * cli/cli-setshow.h: Update declarations.
738 * top.c (execute_command): Call do_set_command and do_show_command.
740 * NEWS: Mention new MI notification.
741 * mi/mi-interp.c: Declare mi_command_param_changed.
742 (mi_interpreter_init): Attach mi_command_param_changed to
743 observer command_param_changed.
744 (mi_command_param_changed): New.
745 Remove mi_suppress_breakpoint_notifications.
746 Define global variable mi_suppress_notification.
747 (mi_breakpoint_created): Update.
748 (mi_breakpoint_deleted): Likewise.
749 (mi_breakpoint_modified): Likewise.
750 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
751 'gdb-set' and set mi_suppress_notification.
752 * mi/mi-main.h: (mi_suppress_notification): New struct.
754 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
755 Jan Kratochvil <jan.kratochvil@redhat.com>
757 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
759 2012-08-09 Yao Qi <yao@codesourcery.com>
761 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
762 (skiplist): Move it to skip.c.
763 (init_cmd_lists): Remove code setting enablebreaklist and
765 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
766 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
768 * gdbcmd.h: Likewise.
769 * skip.c (_initialize_step_skip): Move 'skiplist' from
772 2012-08-09 Yao Qi <yao@codesourcery.com>
774 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
775 * gnu-nat.c, symfile.c: Likewise.
777 2012-08-08 Aaron Gamble <agamble@google.com>
779 * utils.c (prompt_for_continue_wait_time): New static global.
780 (make_command_stats_cleanup): Initialize it.
781 (report_command_stats): Subtract time waiting for user.
782 (prompt_for_continue): Track time waiting for user.
783 (defaulted_query): Track time waiting for user.
785 2012-08-08 Doug Evans <dje@google.com>
787 * eval.c (evaluate_subexp_standard): Fix thinko in handling
789 * expprint.c (print_subexp_standard, case OP_TYPE): New.
790 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
791 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
792 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
793 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
794 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
796 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
797 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
798 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
799 (dump_prefix_expression): Handle OP_TYPE.
801 2012-08-08 Keith Seitz <keiths@redhat.com>
803 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
806 2012-08-08 Doug Evans <dje@google.com>
808 * linux-thread-db.c: #include "gdb_vecs.h".
809 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
811 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
812 (thread_db_load_search): Use a vector to iterate over path elements.
813 Handle text appearing after "$pdir".
815 * gdb_string.h: Moved to ...
816 * common/gdb_string.h: ... here.
817 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
818 gdb_string.h and gdb_assert.h.
820 2012-08-08 Yao Qi <yao@codesourcery.com>
822 * tic6x-tdep.c (tic6x_register_to_value): Remove.
823 (tic6x_value_to_register): Likewise.
824 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
825 and set_gdbarch_value_to_register.
827 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
828 Jean-Marc Saffroy <saffroy@gmail.com>
831 * defs.h (find_memory_region_ftype): New comment. New arg modified.
832 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
833 * gcore.c (gcore_create_callback): New function comment. Add modified
834 parameter. Only write modified regions. Set SEC_READONLY exactly
835 according to MODIFIED.
836 (objfile_find_memory_regions): Ignore separate debug info files. Ass
837 the passed modified value to FUNC.
838 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
839 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
840 first. New variables modified and has_anonymous. Parse the lines of
841 smaps file. Add the passed MODIFIED value to FUNC.
842 * procfs.c (find_memory_regions_callback): Add the passed modified
845 2012-08-06 Tom Tromey <tromey@redhat.com>
847 * dwarf2-frame.c (clear_pointer_cleanup): New function.
848 (dwarf2_frame_cache): Use it.
849 * frame-unwind.h (frame_sniffer_ftype): Document prologue
850 cache initialization constraint.
852 2012-08-06 Tom Tromey <tromey@redhat.com>
855 * varobj.c (update_dynamic_varobj_children): Don't call
858 2012-08-06 Tom Tromey <tromey@redhat.com>
861 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
863 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
865 * NEWS: New entry for 'cd' default parameters.
866 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
868 2012-08-03 Tom Tromey <tromey@redhat.com>
870 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
873 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
875 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
876 to attempting lseek/write.
877 (inf_child_fileio_pread): Likewise for pread.
879 2012-08-02 Yao Qi <yao@codesourcery.com>
881 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
882 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
883 add_setshow_zinteger_cmd.
884 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
885 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
886 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
887 instead of add_setshow_zinteger_cmd.
888 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
889 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
890 instead of add_setshow_zinteger_cmd.
891 * frame.c (frame_debug): Add 'unsigned'.
892 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
893 add_setshow_zinteger_cmd.
894 * frame.h: Update the declaration of 'frame_debug'.
895 * gdbtypes.c (overload_debug): Add 'unsigned'.
896 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
897 add_setshow_zinteger_cmd.
898 * inferior.h: Update declaration of 'debug_infrun'.
899 * infrun.c (debug_infrun): Add 'unsigned'.
900 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
901 add_setshow_zinteger_cmd.
902 * jit.c (jit_debug): Add 'unsigned'.
903 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
904 add_setshow_zinteger_cmd.
905 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
906 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
907 instead of add_setshow_zinteger_cmd.
908 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
909 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
910 add_setshow_zinteger_cmd.
911 * machoread.c (mach_o_debug_level): Add 'unsigned'.
912 (_initialize_machoread): Call add_setshow_zuinteger_cmd
913 instead of add_setshow_zinteger_cmd.
914 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
915 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
916 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
917 intead of add_setshow_zinteger_cmd.
918 * mips-tdep.c (mips_debug): Add 'unsigned'.
919 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
920 instead of add_setshow_zinteger_cmd.
921 * monitor.c (monitor_debug): Add 'unsigned'.
922 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
923 add_setshow_zinteger_cmd.
924 * observer.c (observer_debug): Add 'unsigned'.
925 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
926 add_setshow_zinteger_cmd.
927 * parse.c (expressiondebug): Add 'unsigned'.
928 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
929 add_setshow_zinteger_cmd.
930 * record.c (record_debug): Add 'unsigned'.
931 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
932 add_setshow_zinteger_cmd.
933 * record.h: Update the declaration of 'record_debug'.
934 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
935 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
936 add_setshow_zinteger_cmd.
937 * serial.c (global_serial_debug_p): Add 'unsigned'.
938 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
939 add_setshow_zinteger_cmd.
940 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
941 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
942 add_setshow_zinteger_cmd.
943 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
944 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
945 add_setshow_zinteger_cmd.
946 * target.c (targetdebug): Add 'unsigned'.
947 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
948 add_setshow_zinteger_cmd.
949 * valops.c (overload_debug): Add 'unsigned'.
950 * varobj.c (varobjdebug): Add 'unsigned'.
951 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
952 add_setshow_zinteger_cmd.
953 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
954 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
955 instead of add_setshow_zinteger_cmd.
957 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
958 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
959 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
960 instead of add_setshow_zinteger_cmd.
961 * gdbarch.c, gdbarch.h: Re-generated.
963 2012-08-02 Yao Qi <yao@codesourcery.com>
965 * nto-tdep.c: Don't include cli/cli-decode.h and
967 (_initialize_nto_tdep): Remove.
968 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
970 Remove macro nto_internal_debugging.
972 2012-08-01 Richard Henderson <rth@redhat.com>
974 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
975 (mep-*-*) [gdb_target_obs]: Likewise.
977 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
979 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
980 linux_get_siginfo_type.
982 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
984 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
986 (call_function_by_hand) <ON_STACK>: Call write_memory with
987 gdbarch_breakpoint_from_pc, if possible.
988 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
991 2012-07-31 Yao Qi <yao@codesourcery.com>
993 * tracepoint.c: Add 'static' for some variables.
995 2012-07-31 Yao Qi <yao@codesourcery.com>
997 * go32-nat.c: Declare _initialize_go32_nat.
998 * ser-go32.c: Declare _initialize_ser_dos.
999 * top.c (do_chdir_cleanup): Add 'static'.
1001 2012-07-30 Keith Seitz <keiths@redhat.com>
1003 * linespec.c (linespec_lex_number): A number followed
1004 by quotes is a valid number, too.
1006 2012-07-30 Tom Tromey <tromey@redhat.com>
1008 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1010 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1012 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1013 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1015 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
1017 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1018 invalid or reevaluated to prevent prevent references to possibly
1019 delete'd type objects being left in the varobj.
1021 2012-07-27 Tom Tromey <tromey@redhat.com>
1022 Jan Kratochvil <jan.kratochvil@redhat.com>
1024 * copying.awk: Print buffer-read-only and vi ro markers.
1025 * copying.c: Rebuild.
1026 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1027 * gdbarch.c, gdbarch.h: Rebuild.
1028 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1029 buffer-read-only and vi ro markers.
1030 * features/arm-with-iwmmxt.c: Rebuild.
1031 * features/arm-with-m-fpa-layout.c: Rebuild.
1032 * features/arm-with-m-vfp-d16.c: Rebuild.
1033 * features/arm-with-m.c: Rebuild.
1034 * features/arm-with-neon.c: Rebuild.
1035 * features/arm-with-vfpv2.c: Rebuild.
1036 * features/arm-with-vfpv3.c: Rebuild.
1037 * features/i386/amd64-avx-linux.c: Rebuild.
1038 * features/i386/amd64-avx.c: Rebuild.
1039 * features/i386/amd64-linux.c: Rebuild.
1040 * features/i386/amd64.c: Rebuild.
1041 * features/i386/i386-avx-linux.c: Rebuild.
1042 * features/i386/i386-avx.c: Rebuild.
1043 * features/i386/i386-linux.c: Rebuild.
1044 * features/i386/i386-mmx-linux.c: Rebuild.
1045 * features/i386/i386-mmx.c: Rebuild.
1046 * features/i386/i386.c: Rebuild.
1047 * features/i386/x32-avx-linux.c: Rebuild.
1048 * features/i386/x32-avx.c: Rebuild.
1049 * features/i386/x32-linux.c: Rebuild.
1050 * features/i386/x32.c: Rebuild.
1051 * features/mips-dsp-linux.c: Rebuild.
1052 * features/mips-linux.c: Rebuild.
1053 * features/mips64-dsp-linux.c: Rebuild.
1054 * features/mips64-linux.c: Rebuild.
1055 * features/rs6000/powerpc-32.c: Rebuild.
1056 * features/rs6000/powerpc-32l.c: Rebuild.
1057 * features/rs6000/powerpc-403.c: Rebuild.
1058 * features/rs6000/powerpc-403gc.c: Rebuild.
1059 * features/rs6000/powerpc-405.c: Rebuild.
1060 * features/rs6000/powerpc-505.c: Rebuild.
1061 * features/rs6000/powerpc-601.c: Rebuild.
1062 * features/rs6000/powerpc-602.c: Rebuild.
1063 * features/rs6000/powerpc-603.c: Rebuild.
1064 * features/rs6000/powerpc-604.c: Rebuild.
1065 * features/rs6000/powerpc-64.c: Rebuild.
1066 * features/rs6000/powerpc-64l.c: Rebuild.
1067 * features/rs6000/powerpc-7400.c: Rebuild.
1068 * features/rs6000/powerpc-750.c: Rebuild.
1069 * features/rs6000/powerpc-860.c: Rebuild.
1070 * features/rs6000/powerpc-altivec32.c: Rebuild.
1071 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1072 * features/rs6000/powerpc-altivec64.c: Rebuild.
1073 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1074 * features/rs6000/powerpc-cell32l.c: Rebuild.
1075 * features/rs6000/powerpc-cell64l.c: Rebuild.
1076 * features/rs6000/powerpc-e500.c: Rebuild.
1077 * features/rs6000/powerpc-e500l.c: Rebuild.
1078 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1079 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1080 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1081 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1082 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1083 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1084 * features/rs6000/powerpc-vsx32.c: Rebuild.
1085 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1086 * features/rs6000/powerpc-vsx64.c: Rebuild.
1087 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1088 * features/rs6000/rs6000.c: Rebuild.
1089 * features/s390-linux32.c: Rebuild.
1090 * features/s390-linux32v1.c: Rebuild.
1091 * features/s390-linux32v2.c: Rebuild.
1092 * features/s390-linux64.c: Rebuild.
1093 * features/s390-linux64v1.c: Rebuild.
1094 * features/s390-linux64v2.c: Rebuild.
1095 * features/s390x-linux64.c: Rebuild.
1096 * features/s390x-linux64v1.c: Rebuild.
1097 * features/s390x-linux64v2.c: Rebuild.
1098 * features/tic6x-c62x-linux.c: Rebuild.
1099 * features/tic6x-c62x.c: Rebuild.
1100 * features/tic6x-c64x-linux.c: Rebuild.
1101 * features/tic6x-c64x.c: Rebuild.
1102 * features/tic6x-c64xp-linux.c: Rebuild.
1103 * features/tic6x-c64xp.c: Rebuild.
1105 2012-07-27 Tom Tromey <tromey@redhat.com>
1107 * c-exp.y (classify_name): Avoid assignment in condition.
1109 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1111 * amd64-windows-tdep.c: Include "frame.h".
1112 (amd64_windows_skip_trampoline_code): New function.
1113 (amd64_windows_init_abi): Add trampoline registration.
1115 2012-07-27 Yao Qi <yao@codesourcery.com>
1117 * tracepoint.c (cur_traceframe_number): Remove.
1118 (set_tfile_traceframe): Remove.
1119 (tfile_trace_find, tfile_fetch_registers): Update callers.
1120 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1121 (tfile_open, tfile_trace_find): Likewise.
1123 2012-07-27 Yao Qi <yao@codesourcery.com>
1125 * thread.c (switch_to_thread): Don't call registers_changed.
1127 2012-07-26 Tom Tromey <tromey@redhat.com>
1129 * Makefile.in (SFILES): Remove objc-exp.y.
1130 (YYFILES): Remove objc-exp.c.
1131 (YYOBJ): Remove objc-exp.o.
1132 (local-maintainer-clean): Don't mention objc-exp.c.
1133 * c-exp.y: Include objc-lang.h.
1134 (%union) <class>: New field.
1135 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1136 (exp): Clone subscript production for OBJC_LBRAC. Add various
1137 Objective C productions.
1138 (msglist, msgarglist, msgarg): New productions.
1139 (array_mod, func_mod, operator): Clone productions for
1141 (parse_string_or_char): Handle '@' strings.
1142 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1143 (classify_name): Check la_name_of_this. Recognize ObjC class
1145 * objc-exp.y: Remove.
1146 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1147 * objc-lang.h (objc_parse, objc_error): Don't declare.
1149 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1151 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1153 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1155 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1158 2012-07-26 Tom Tromey <tromey@redhat.com>
1160 * copying.c: Rebuild.
1161 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1164 2012-07-26 Tom Tromey <tromey@redhat.com>
1166 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1168 (print_objfile_statistics): Likewise.
1169 (maintenance_print_symbols): Likewise.
1170 (maintenance_print_msymbols): Likewise.
1171 (maintenance_print_objfiles): Likewise.
1172 * psymtab.c (print_partial_symbols): Call QUIT.
1173 (maintenance_print_psymbols): Likewise. Don't modify
1175 * copying.c (show_copying_command): Don't modify immediate_quit.
1176 (show_warranty_command): Likewise.
1177 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1179 2012-07-26 Keith Seitz <keiths@redhat.com>
1181 * linespec.c (linespec_lexer_lex_number): The input
1182 is also a valid number if the next character is a comma
1185 2012-07-26 Joel Brobecker <brobecker@adacore.com>
1187 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1190 2012-07-26 Tristan Gingold <gingold@adacore.com>
1192 * machoread.c: Include gdb_bfd.h.
1194 2012-07-26 Tristan Gingold <gingold@adacore.com>
1196 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1199 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1201 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1203 (dwarf2_evaluate_loc_desc): Likewise.
1204 (dwarf2_loc_desc_needs_frame): Likewise.
1205 (locexpr_describe_location_1): Likewise.
1206 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1208 (struct dwarf2_loclist_baton): Likewise.
1209 * dwarf2read.c (struct dwarf_block): Likewise.
1210 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1211 (decode_locdesc): Expand SIZE and I to size_t.
1213 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1215 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1217 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1219 * doublest.c (convert_doublest_to_floatformat): If the exponent
1220 is too small, treat the value as zero. If the exponent is too
1221 large, treat the value as infinity.
1223 2012-07-25 Joel Brobecker <brobecker@adacore.com>
1225 * configure.ac: Add --enable-lmcheck configure option.
1226 * configure: Regenerate.
1228 2012-07-25 Tom Tromey <tromey@redhat.com>
1230 * NEWS: Mention maint info bfds.
1231 * gdb_bfd.c (all_bfds): New global.
1232 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1233 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1236 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1238 * configure.tgt: Add v850*-*-rtems*.
1240 2012-07-25 Tom Tromey <tromey@redhat.com>
1242 * macrotab.c (macro_bcache_str): Remove cast.
1244 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
1246 * linespec.c (linespec_lexer_lex_number): Update comments,
1247 change the return and add check to make sure the input is
1248 the decimal numbers.
1249 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1250 false, call linespec_lexer_lex_string.
1252 2012-07-24 Tom Tromey <tromey@redhat.com>
1254 * symfile.c (symbol_file_add): Don't open BFD twice.
1256 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
1258 * breakpoint.c (create_breakpoint): Store condition for pending
1261 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1263 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1264 (m68k_return_value): Handle complex types like structures.
1265 (m68k_svr4_return_value): Likewise.
1267 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1269 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1270 parameters to bfd_get_section_name.
1272 2012-07-24 Yao Qi <yao@codesourcery.com>
1274 * cli/cli-setshow.c: Handle case 'var_uinteger'
1275 and 'var_zuninteger' together. Handle case 'var_integer' and
1276 'var_zinteger' together.
1278 2012-07-23 Keith Seitz <keiths@redhat.com>
1280 * linespec.c (convert_linespec_to_sal): Don't add
1281 any symbols to the result vector if symbol_to_sal
1284 2012-07-23 Keith Seitz <keiths@redhat.com>
1286 * linespec.c (decode_objc): Record the function name
1289 2012-07-23 Tom Tromey <tromey@redhat.com>
1291 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1293 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1294 (map_vmap): Acquire a reference to the BFD.
1296 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1298 * p-valprint.c (pascal_object_print_value): Replace potentially
1299 unsafe alloca with xmalloc/xfree.
1300 * valops.c (search_struct_method): Likewise.
1302 2012-07-23 Tom Tromey <tromey@redhat.com>
1304 * solib-svr4.c (enable_break): Update.
1305 * bfd-target.h (target_bfd_reopen): Update documentation.
1307 2012-07-23 Tom Tromey <tromey@redhat.com>
1309 * symfile.c (separate_debug_file_exists): Update.
1310 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1311 (reread_symbols): Update.
1312 * elfread.c (build_id_verify): Update.
1313 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1314 bfd_open_maybe_remote.
1316 2012-07-23 Tom Tromey <tromey@redhat.com>
1318 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1320 2012-07-23 Tom Tromey <tromey@redhat.com>
1322 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1324 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1326 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1327 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1329 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1330 * objfiles.c (allocate_objfile): Acquire a new reference.
1331 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1332 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1333 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1334 a cleanup for 'nbfd'.
1335 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1337 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1338 make a cleanup for 'abfd'.
1339 (symbol_file_add): Make a BFD cleanup.
1341 2012-07-23 Tom Tromey <tromey@redhat.com>
1343 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1344 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1345 * corelow.c (core_open): Use gdb_bfd_fopen.
1346 * dsrec.c (load_srec): Use gdb_bfd_openr.
1347 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1348 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1349 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1350 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1351 (gdb_bfd_fdopenr): New functions.
1352 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1353 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1354 (gdb_bfd_fdopenr): Declare.
1355 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1356 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1357 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1358 gdb_bfd_openr_next_archived_file.
1359 (macho_check_dsym): Use gdb_bfd_openr.
1360 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1361 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1362 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1363 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1365 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1366 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1367 gdb_bfd_openr_next_archived_file.
1368 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1370 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1372 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1373 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1374 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1375 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1376 (symfile_bfd_open): Use gdb_bfd_fopen.
1377 (generic_load): Use gdb_bfd_openr.
1378 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1380 2012-07-23 Tom Tromey <tromey@redhat.com>
1382 * bfd-target.c (target_bfd_reopen): Update.
1383 * cli/cli-dump.c (bfd_openr_with_cleanup)
1384 (bfd_openw_with_cleanup): Update.
1385 * corelow.c (core_open): Update.
1386 * dsrec.c (load_srec): Update.
1387 * exec.c (exec_file_attach): Update.
1388 * gcore.c (create_gcore_bfd): Update.
1389 * gdb_bfd.c (gdb_bfd_ref): Return void.
1390 (gdb_bfd_open): Update.
1391 * gdb_bfd.h (gdb_bfd_ref): Return void.
1393 * jit.c (jit_bfd_try_read_symtab): Update.
1394 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1395 * machoread.c (macho_symfile_read_all_oso): Update.
1396 (macho_check_dsym): Update.
1397 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1398 * remote-m32r-sdi.c (m32r_load): Update.
1399 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1400 * rs6000-nat.c (add_vmap): Update.
1401 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1403 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1404 * solib-spu.c (spu_bfd_open): Update.
1405 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1406 * spu-linux-nat.c (spu_bfd_open): Update.
1407 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1408 (generic_load): Update.
1409 * windows-nat.c (windows_make_so): Update.
1411 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1413 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1415 2012-07-20 Jeff Kenton <jkenton@tilera.com>
1417 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1418 SIGTRAMP_FRAME unwinding.
1420 2012-07-20 Doug Evans <dje@google.com>
1422 * NEWS: Document new options "set/show use-deprecated-index-sections",
1423 and delete reference to --use-deprecated-index-sections.
1424 * symfile.h (use_deprecated_index_sections): Delete.
1425 * dwarf2read.c (use_deprecated_index_sections): Make static.
1426 (read_index_from_section): Update wording of how to load
1427 deprecated index sections.
1428 (_initialize_dwarf2_read): New options
1429 "set/show use-deprecated-index-sections".
1430 * main.c (captured_main): Delete --use-deprecated-index-sections.
1432 2012-07-20 Pedro Alves <palves@redhat.com>
1437 * infrun.c (handle_inferior_event) <new thread>: Don't special
1438 case minus_one_ptid.
1439 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1440 * linux-thread-db.c (thread_get_info_callback): Don't return early
1441 if the thread is zombie.
1442 (thread_from_lwp): Change return type to void. Rewrite stale
1444 (attach_thread): Don't return early if the thread is zombie,
1445 instead set its "dying" flag.
1446 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1447 (find_new_threads_callback): Don't return early if the thread is
1450 2012-07-20 Pedro Alves <palves@redhat.com>
1452 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1453 * target.c (target_wait): Likewise.
1454 (str_comma_list_concat_elem, do_option, target_options_to_string):
1456 * target.h (target_options_to_string): Declare.
1458 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1459 Tom Tromey <tromey@redhat.com>
1461 * dwarf2read.c (dwarf_decode_macros)
1462 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1463 DW_MACRO_GNU_transparent_include_alt>: New cases.
1464 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1465 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1467 2012-07-20 Tom Tromey <tromey@redhat.com>
1469 * dwarf2read.c (try_open_dwo_file): Don't call
1470 gdb_bfd_stash_filename.
1472 2012-07-20 Pedro Alves <palves@redhat.com>
1474 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1475 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1476 (i386_process_record): Tweak description comments.
1478 2012-07-20 Pedro Alves <palves@redhat.com>
1480 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1481 (i386_process_record): Use record_read_memory.
1482 * record.c (record_read_memory): New function.
1483 (record_arch_list_add_mem, record_exec_insn): Use
1485 * record.h (record_read_memory): Declare.
1487 2012-07-20 Yao Qi <yao@codesourcery.com>
1489 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1492 2012-07-19 Pedro Alves <palves@redhat.com>
1494 * record.c (record_resume): Ask the target beneath to report all
1497 2012-07-19 Doug Evans <dje@google.com>
1499 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1500 there's no section at address zero.
1501 (dwarf2_record_block_ranges): Ditto.
1503 2012-07-19 Yao Qi <yao@codesourcery.com>
1505 * command.h, remote.c: Fix a typo in comment.
1507 2012-07-19 Tom Tromey <tromey@redhat.com>
1510 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1511 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1512 OP_DECLTYPE>: New cases.
1513 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1514 (type_exp): Add new productions.
1515 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1517 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1519 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1520 OP_DECLTYPE>: New case.
1521 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1523 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1524 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1526 2012-07-19 Tom Tromey <tromey@redhat.com>
1528 * c-exp.y (enum token_flags): New.
1529 (struct token) <cxx_only>: Remove.
1531 (tokentab3, tokentab2, ident_tokens): Update.
1532 (lex_one_token): Update. Handle FLAG_SHADOW.
1534 2012-07-19 Tom Tromey <tromey@redhat.com>
1536 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1537 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1538 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1539 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1540 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1541 type_exp production where appropriate.
1542 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1543 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1544 <UNOP_MEMVAL_TYPE>: New case.
1545 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1546 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1547 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1548 <UNOP_MEMVAL_TYPE>: New case.
1549 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1550 UNOP_REINTERPRET_CAST>: Update.
1551 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1552 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1553 UNOP_REINTERPRET_CAST>: Update.
1554 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1555 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1556 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1559 2012-07-19 Yao Qi <yao@codesourcery.com>
1560 Jan Kratochvil <jan.kratochvil@redhat.com>
1562 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1563 and case 'var_optional_filename' together.
1564 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1565 instead of add_setshow_optional_filename_cmd for setshow command
1566 'args'. Set completer for 'set args'.
1568 2012-07-18 Doug Evans <dje@google.com>
1570 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1571 * common/gdb_vecs.c: New file, contents from utils.c.
1572 * common/host-defs.h: New file, contents from defs.h.
1573 * utils.h: New file, contents from defs.h.
1574 * defs.h: Move all declarations of objects defined in utils.c
1575 to utils.h (except QUIT() and related).
1576 #include "utils.h", "host-defs.h".
1577 * probe.h (probe_p): Move here from gdb_vecs.h.
1578 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1579 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1580 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1581 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1582 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1583 (COMMON_OBS): Add gdb_vecs.o.
1584 (gdb_vecs.o): New rule.
1586 2012-07-18 Keith Seitz <keiths@redhat.com>
1588 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1589 parameter. If non-zero, use SYMNAME as the canonical name
1592 (convert_linespec_to_sals): Use add_sal_to_sals for
1594 (decode_line_full): No need to "fill in missing canonical names"
1595 anymore. Simply make cleanups for the allocated names.
1597 2012-07-18 Keith Seitz <keiths@redhat.com>
1599 * linespec.c (struct linespec): Constify expression,
1600 source_filename, function_name, and label_name.
1601 (symbol_not_found_error): Make all parameters const.
1602 (linespec_parser_delete): No need to check for NULL
1603 when using xfree. Cast const char * to char * for xfree.
1605 2012-07-18 Keith Seitz <keiths@redhat.com>
1607 * breakpoint.c (invalid_thread_id_error): New function.
1608 (find_condition_and_thread): Use invalid_thread_id_error.
1609 (watch_command_1): Likewise.
1611 2012-07-18 Tom Tromey <tromey@redhat.com>
1613 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1614 * contrib/cc-with-tweaks.sh: New file.
1616 2012-07-18 Tom Tromey <tromey@redhat.com>
1618 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1619 (locate_dwz_sections): Recognize .gdb_index.
1620 (create_cus_from_index_list): New function.
1621 (create_cus_from_index): Use it. Handle .dwz data.
1622 (read_index_from_section): New function, extracted from
1624 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1627 2012-07-18 Tom Tromey <tromey@redhat.com>
1629 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1630 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1631 <is_dwz>: New field.
1632 (struct dwz_file): New.
1633 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1634 (locate_dwz_sections, dwarf2_get_dwz_file)
1635 (get_abbrev_section_for_cu): New functions.
1636 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1637 (read_and_check_type_unit_head): Add abbrev_section argument.
1638 (create_debug_types_hash_table): Update.
1639 (init_cutu_and_read_dies): Use proper abbrev section.
1640 (init_cutu_and_read_dies_no_follow): Likewise.
1641 (set_partial_user): Do nothing if PST==NULL.
1642 (read_comp_units_from_section): New function.
1643 (create_all_comp_units): Use it.
1644 (scan_partial_symbols, partial_die_parent_scope): Update.
1645 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1646 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1647 (find_partial_die): Add offset_in_dwz argument. Update.
1648 (guess_partial_die_structure_name, fixup_partial_die): Update.
1649 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1650 DW_FORM_GNU_strp_alt.
1651 (read_indirect_string_from_dwz): New function.
1652 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1653 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1654 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1655 (follow_die_offset): Add offset_in_dwz argument.
1656 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1657 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1658 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1659 Handle new macro forms.
1660 (dwarf_decode_macros): Update.
1661 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1662 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1663 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1664 (create_debug_types_hash_table): Use correct abbrev section.
1665 (get_debug_line_section): New function.
1666 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1667 (process_full_comp_unit): Pass 'required' argument to
1668 end_symtab_get_static_block.
1669 * buildsym.h (end_symtab_get_static_block): Update.
1670 * buildsym.c (end_symtab_get_static_block): Add 'required'
1672 (end_symtab, end_expandable_symtab): Update.
1674 2012-07-18 Tom Tromey <tromey@redhat.com>
1676 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1678 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1679 (zlib_decompress_section): Remove.
1680 (dwarf2_read_section): Use gdb_bfd_map_section.
1681 (munmap_section_buffer): Remove.
1682 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1683 munmap_section_buffer.
1684 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1685 (struct gdb_bfd_section_data): New.
1686 (free_one_bfd_section): New function.
1687 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1688 (get_section_descriptor, zlib_decompress_section)
1689 (gdb_bfd_map_section): New functions.
1690 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1692 2012-07-18 Tom Tromey <tromey@redhat.com>
1694 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1696 2012-07-18 Tom Tromey <tromey@redhat.com>
1698 * gdb_bfd.c (struct gdb_bfd_data): New.
1699 (gdb_bfd_cache): New global.
1700 (struct gdb_bfd_cache_search): New.
1701 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
1702 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
1703 * gdb_bfd.h (gdb_bfd_open): Declare.
1705 2012-07-18 Tom Tromey <tromey@redhat.com>
1707 * utils.c (make_cleanup_bfd_unref): Rename from
1708 make_cleanup_bfd_close.
1709 * defs.h (make_cleanup_bfd_unref): Rename from
1710 make_cleanup_bfd_close.
1711 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
1712 (bfd_openw_with_cleanup): Update.
1713 * corelow.c (core_open): Update.
1714 * dsrec.c (load_srec): Update.
1715 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1716 * remote-m32r-sdi.c (m32r_load): Update.
1717 * remote-mips.c (mips_load_srec): Update.
1718 (pmon_load_fast): Update.
1719 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1721 (darwin_bfd_open): Update.
1722 * solib.c (solib_bfd_fopen): Update.
1723 * symfile-mem.c (symbol_file_add_from_memory): Update.
1724 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
1725 (symfile_bfd_open): Update.
1726 (generic_load): Update.
1728 2012-07-18 Tom Tromey <tromey@redhat.com>
1730 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
1731 (pmon_load_fast): Likewise.
1732 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
1733 (m32r_upload_command): Likewise.
1734 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
1735 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1736 Use make_cleanup_bfd_close.
1738 2012-07-18 Tom Tromey <tromey@redhat.com>
1740 * symfile.c (symfile_bfd_open): Don't copy name. Call
1741 gdb_bfd_stash_filename.
1742 (load_command): Open the new BFD before freeing the old.
1743 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
1744 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
1745 Call gdb_bfd_stash_filename.
1746 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
1747 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
1748 gdb_bfd_stash_filename.
1749 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1750 Free found_pathname.
1751 * rs6000-nat.c (add_vmap): Don't copy filename. Call
1752 gdb_bfd_stash_filename.
1753 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
1754 * machoread.c (macho_add_oso_symfile): Call
1755 gdb_bfd_stash_filename.
1756 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
1757 gdb_bfd_stash_filename.
1758 (macho_check_dsym): Don't copy filename. Call
1759 gdb_bfd_stash_filename.
1760 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
1761 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
1762 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
1763 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
1764 * exec.c (exec_close): Don't free the BFD's filename.
1765 (exec_file_attach): Don't copy the filename. Call
1766 gdb_bfd_stash_filename.
1767 * corelow.c (core_close): Don't free the BFD's filename.
1768 (core_open): Call gdb_bfd_stash_filename.
1769 * corefile.c (reopen_exec_file): Remove #if 0 code.
1770 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
1772 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
1774 2012-07-18 Tom Tromey <tromey@redhat.com>
1776 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
1778 (free_dwo_file): Use gdb_bfd_unref.
1779 * cli/cli-dump.c: Include gdb_bfd.h.
1780 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
1781 (bfd_openr_with_cleanup): Likewise.
1782 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
1784 * utils.c: Include gdb_bfd.h.
1785 (do_bfd_close_cleanup): Use gdb_bfd_unref.
1786 * symfile.c: Include gdb_bfd.h.
1787 (separate_debug_file_exists): Use gdb_bfd_unref.
1788 (bfd_open_maybe_remote): Use gdb_bfd_ref.
1789 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1790 (generic_load): Use gdb_bfd_ref.
1791 (reread_symbols): Use gdb_bfd_unref.
1792 * symfile-mem.c: Include gdb_bfd.h.
1793 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
1794 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1795 * solib.c: Include gdb_bfd.h.
1796 (solib_bfd_fopen): Use gdb_bfd_ref.
1797 (solib_bfd_open): Use gdb_bfd_unref.
1798 (free_so_symbols): Use gdb_bfd_unref.
1799 (reload_shared_libraries_1): Use gdb_bfd_unref.
1800 * solib-spu.c: Include gdb_bfd.h.
1801 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
1802 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
1804 * solib-frv.c: Include gdb_bfd.h.
1805 (enable_break2): Use gdb_bfd_unref.
1806 * solib-dsbt.c: Include gdb_bfd.h.
1807 (enable_break2): Use gdb_bfd_unref.
1808 * solib-darwin.c: Include gdb_bfd.h.
1809 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
1811 (darwin_bfd_open): Use gdb_bfd_unref.
1812 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
1813 * remote-mips.c: Include gdb_bfd.h.
1814 (mips_load_srec): Use gdb_bfd_ref.
1815 (pmon_load_fast): Use gdb_bfd_ref.
1816 * remote-m32r-sdi.c: Include gdb_bfd.h.
1817 (m32r_load): Use gdb_bfd_ref.
1818 * record.c: Include gdb_bfd.h.
1819 (record_save_cleanups): Use gdb_bfd_unref.
1820 (cmd_record_save): Use gdb_bfd_unref.
1821 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
1823 * objfiles.h (gdb_bfd_close_or_warn): Remove.
1824 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
1825 * objfiles.c: Include gdb_bfd.h.
1826 (free_objfile): Use gdb_bfd_unref.
1827 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
1829 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
1830 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
1831 (macho_check_dsym): Likewise.
1832 * m32r-rom.c: Include gdb_bfd.h.
1833 (m32r_load): Use gdb_bfd_ref.
1834 (m32r_upload_command): Use gdb_bfd_ref.
1835 * jit.c: Include gdb_bfd.h.
1836 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
1837 * gdb_bfd.h: New file.
1838 * gdb_bfd.c: New file.
1839 * gcore.c: Include gdb_bfd.h.
1840 (create_gcore_bfd): Use gdb_bfd_ref.
1841 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
1842 (gcore_command): Use gdb_bfd_unref.
1843 * exec.c: Include gdb_bfd.h.
1844 (exec_close): Use gdb_bfd_unref.
1845 (exec_close_1): Use gdb_bfd_unref.
1846 (exec_file_attach): Use gdb_bfd_ref.
1847 * elfread.c: Include gdb_bfd.h.
1848 (build_id_verify): Use gdb_bfd_unref.
1849 * dsrec.c: Include gdb_bfd.h.
1850 (load_srec): Use gdb_bfd_ref.
1851 * corelow.c: Include gdb_bfd.h.
1852 (core_close): Use gdb_bfd_unref.
1853 (core_open): Use gdb_bfd_ref.
1854 * bfd-target.c: Include gdb_bfd.h.
1855 (target_bfd_xclose): Use gdb_bfd_unref.
1856 (target_bfd_reopen): Use gdb_bfd_ref.
1857 * Makefile.in (SFILES): Add gdb_bfd.c.
1858 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
1859 (COMMON_OBS): Add gdb_bfd.o.
1861 2012-07-18 Keith Seitz <keiths@redhat.com>
1863 * breakpoint.c (find_condition_and_thread): Initialize
1865 (create_breakpiont): find_condition_and_thread will now
1866 initialize COND_STRING, THREAD, and REST (and TASK).
1867 (addr_string_to_sals): Likewise.
1869 2012-07-18 Pedro Alves <palves@redhat.com>
1871 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
1872 Pull the single step breakpoints out of the target.
1874 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1876 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
1877 * stap-probe.c (compile_probe_arg): Likewise.
1879 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1881 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
1882 (elf_compile_to_ax): Likewise.
1883 * infrun.c (insert_exception_resume_from_probe): Likewise.
1884 (check_exception_resume): Remove `objfile' variable.
1885 * probe.c (find_probe_by_pc): Remove `objfile' argument.
1886 (struct probe_and_objfile, probe_and_objfile_s): Delete.
1887 (collect_probes): Adjust return value to `VEC (probe_p) *'.
1888 (compare_entries): Rename to...
1889 (compare_probes): ...this. Adjust function to work with
1890 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
1892 (gen_ui_out_table_header_info): Adjust `probes' argument to be
1894 (print_ui_out_info): Adjust argument to be `struct probe *'.
1895 (info_probes_for_ops): Adjust internal computations to use
1897 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
1898 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
1899 gen_info_probes_table_values>: Remove `objfile' argument.
1900 (struct probe) <objfile>: New field.
1901 (find_probe_by_pc): Remove `objfile' argument.
1902 * stap-probe.c (stap_parse_probe_arguments): Likewise.
1903 (stap_get_probe_argument_count): Likewise.
1904 (stap_get_arg): Likewise.
1905 (stap_evaluate_probe_argument): Likewise.
1906 (stap_compile_to_ax): Likewise.
1907 (compile_probe_arg): Refactor not to pass `objfile' anymore.
1908 (handle_stap_probe): Fill `objfile' field from `struct probe'.
1909 (stap_gen_info_probes_table_header): Remove `objfile' argument.
1910 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
1911 sym_compile_to_ax>: Likewise.
1913 2012-07-18 Terry Guo <terry.guo@arm.com>
1916 * defs.h (GDB_MI_MSG_WIDTH): New.
1917 * ser_base (ser_base_read_error_fd): New function.
1918 (do_ser_base_readchar): Poll error file descriptor as well as
1920 (generic_readchar): Refactor error handling.
1922 2012-07-18 Joel Brobecker <brobecker@adacore.com>
1924 * NEWS: Create a new section for the next release branch.
1925 Rename the section of the current branch, now that it has
1928 2012-07-18 Joel Brobecker <brobecker@adacore.com>
1930 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
1931 * version.in: Bump version to 7.5.50.20120718-cvs.
1933 2012-07-17 Keith Seitz <keiths@redhat.com>
1935 * linespec.c (linespec_parse_line_offset): Make parameter
1938 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1941 * f-valprint.c (info_common_command): New variable frame_id.
1942 Reinitialize FI form FRAME_ID after each print_variable_and_value.
1943 * printcmd.c (print_variable_and_value): Extend function comment.
1944 Add comment for invalidated FRAME.
1945 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
1946 FI form FRAME_ID after each print_frame_local_vars.
1947 (struct print_variable_and_value_data): Change frame to frame_id.
1948 (do_print_variable_and_value): New variable frame, initialize it from
1949 p->frame_id. Add comment for invalidated FRAME.
1950 (print_frame_local_vars, print_frame_arg_vars): New function comment.
1951 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
1952 for invalidated FRAME.
1954 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
1955 Pedro Alves <palves@redhat.com>
1957 * linux-nat.c (linux_nat_detach): Don't unregister from the event
1960 2012-07-16 Tom Tromey <tromey@redhat.com>
1962 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
1964 2012-07-15 Doug Evans <dje@google.com>
1966 * dwarf2read.c (stmt_list_hash): New struct.
1967 (type_unit_group): Embed "per_cu" member, remove pointer.
1968 New union member "t", move member "tus" into it, all uses updated.
1969 New member "hash", replaces member "line_offset, all uses updated.
1970 (quick_file_names): Replace member "offset" with "hash", all uses
1972 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
1973 (hash_file_name_entry, eq_file_name_entry): Call them.
1974 (hash_type_unit_group, eq_type_unit_group): Ditto.
1975 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
1976 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
1977 (dw2_get_file_names): Update.
1978 (create_type_unit_group): Replace "per_cu" arg with "cu".
1979 All callers updated. Fix "quick" (.gdb_index) handling.
1980 (get_type_unit_group): Replace "per_cu" arg with "cu".
1981 All callers updated.
1982 (build_type_unit_groups): Don't reset tu_stats.
1984 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
1985 "tab_cur_size". Change member "tab" to be a htab_t.
1986 (create_filename_seen_cache): Update.
1987 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
1988 (filename_seen): Update.
1990 2012-07-13 Doug Evans <dje@google.com>
1992 * symtab.c (filename_seen): Update comment.
1994 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1995 Doug Evans <dje@google.com>
1997 * buildsym.c (end_symtab_1): Split it to ...
1998 (end_symtab_get_static_block): ... this ...
1999 (end_symtab_from_static_block): ... and this function.
2000 (end_symtab, end_expandable_symtab): Call them.
2001 * buildsym.h (end_symtab_get_static_block)
2002 (end_symtab_from_static_block): New declarations.
2003 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2004 Set its valid CU ranges.
2006 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2008 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2009 DW_OP_GNU_parameter_ref.
2011 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2013 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2014 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2016 2012-07-13 Doug Evans <dje@google.com>
2018 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2019 (filename_seen_cache): New struct.
2020 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2021 (create_filename_seen_cache): New function.
2022 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2023 (filename_seen): Delete arg "first". New arg "cache". All callers
2025 (output_source_filename_data): New struct.
2026 (output_source_filename): Delete arg "first". New arg "data".
2027 All callers updated.
2028 (sources_info): Delete local "first". New locals "data", "cleanups".
2029 Rewrite to use filename_seen_cache.
2030 (add_partial_filename_data): Delete member "first". New member
2031 "filename_seen_cache". All uses updated.
2032 (make_source_files_completion_list): Rewrite to use
2033 filename_seen_cache.
2035 2012-07-12 Doug Evans <dje@google.com>
2037 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2039 2012-07-10 Doug Evans <dje@google.com>
2042 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2043 all_type_unit_groups, type_unit_groups, tu_stats.
2044 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2045 All uses updated. Add type_unit_group to union "s".
2046 (type_unit_group): New struct.
2047 (IS_TYPE_UNIT_GROUP): New macro.
2048 (abbrev_table): Delete unused member "section".
2049 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2050 (dw2_get_cu): Assert not used with type_unit_group.
2051 (dw2_get_primary_cu): New function.
2052 (dw2_build_type_unit_groups_reader): New function.
2053 (dw2_build_type_unit_groups): New function.
2054 (dw2_get_file_names): Assert not called on type units.
2055 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2056 Redo loop to iterate over type unit groups instead of type units.
2057 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2058 (read_abbrev_offset): New function.
2059 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2061 (create_partial_symtab): New function.
2062 (process_psymtab_comp_unit_reader): Assert not used with type units.
2063 Call create_partial_symtab.
2064 (process_psymtab_type_unit): Delete.
2065 (hash_type_unit_group, eq_type_unit_group): New functions.
2066 (allocate_type_unit_groups_table): New function.
2067 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2068 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2069 (create_type_unit_group, get_type_unit_group): New functions.
2070 (tu_abbrev_offset): New struct.
2071 (sort_tu_by_abbrev_offset): New function.
2072 (add_type_unit_group_to_table): New function.
2073 (build_type_unit_groups): New function.
2074 (build_type_psymtabs_reader): New function.
2075 (build_type_psymtab_dependencies): New function.
2076 (build_type_psymtabs): Rewrite.
2077 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2078 is seen in a type unit.
2079 (process_queue): Move symtab expansion debugging printfs here.
2080 Call process_full_type_unit for type units.
2081 (compute_symtab_includes): Assert not called for type units.
2082 (process_cu_includes): Don't call compute_symtab_includes for
2084 (process_full_type_unit): New function.
2085 (process_imported_unit_die): Flag an error if called for type units.
2086 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2087 updated. Assert not called for type units.
2088 (read_file_scope): Call dwarf2_start_symtab.
2089 (setup_type_unit_groups): New function.
2090 (read_type_unit_scope): Rewrite.
2091 (abbrev_table_read_table): Initialize abbrev_table->offset.
2092 (abbrev_table_free_cleanup): New function.
2093 (dwarf2_start_symtab): New function.
2094 (load_full_type_unit): Assert not called for type unit groups.
2095 * buildsym.c (finish_block_internal): New arg "expandable".
2096 All callers updated.
2097 (start_symtab): Move most contents to ...
2098 (restart_symtab): ... here. New function.
2099 (reset_symtab_globals): New function.
2100 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2101 Call reset_symtab_globals.
2102 (end_symtab, end_expandable_symtab): New functions.
2103 (set_missing_symtab, augment_type_symtab): New functions.
2104 * buildsym.h (end_expandable_symtab): Declare.
2105 (augment_type_symtab, restart_symtab): Declare.
2106 * psympriv.h (struct partial_symtab): New member "anonymous".
2107 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2109 (read_psymtabs_with_filename): Ditto.
2110 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2111 (expand_symtabs_matching_via_partial): Ditto.
2112 (dump_psymtab): Update.
2113 * dictionary.c (dict_add_pending): New function.
2114 * dictionary.h (dict_add_pending): Declare.
2116 2012-07-09 Doug Evans <dje@google.com>
2118 * buildsym.c (start_subfile): Remove unnecessary check for
2121 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2123 * dwarf2read.c (load_full_type_unit): Simplify.
2125 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2126 to struct signatured_type **. All uses updated.
2128 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2129 All callers updated.
2131 2012-07-09 Tom Tromey <tromey@redhat.com>
2133 * c-exp.y (check_parameter_typelist): New function.
2134 (parameter_typelist): Call it.
2135 * eval.c (make_params): Handle '(void)' case.
2136 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2139 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2141 * common/linux-ptrace.c: Include gdb_assert.h.
2142 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2143 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2145 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2147 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2148 * linux-nat.c (linux_child_post_attach)
2149 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2151 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2153 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2154 nptl <2.7 bug workaround for core files.
2156 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2158 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2160 (save_siginfo): Remove.
2161 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2163 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2164 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2165 * linux-nat.h (struct lwp_info): Remove field siginfo.
2167 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2169 Code cleanup for the next patch.
2170 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2171 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2173 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2174 (ia64_linux_stopped_data_address):
2175 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2177 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2178 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2179 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2182 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2185 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2186 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2188 2012-07-06 Tom Tromey <tromey@redhat.com>
2190 * c-exp.y (DOTDOTDOT): New token.
2191 (func_mod, exp): Use parameter_typelist.
2192 (parameter_typelist): New production.
2193 (tokentab3): Add "..." token.
2194 * eval.c (make_params): Handle varargs.
2195 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2198 2012-07-06 Tom Tromey <tromey@redhat.com>
2201 * c-exp.y (%union) <tvec>: Change type.
2202 (func_mod): Now uses <tvec> type.
2203 (exp): Update for tvec change.
2204 (direct_abs_decl): Push the typelist.
2205 (func_mod): Return a typelist.
2206 (nonempty_typelist): Update for tvec change.
2207 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2208 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2209 * parse.c (pop_type_list): New function.
2210 (push_typelist): New function.
2211 (follow_types): Handle tp_function_with_arguments.
2212 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2213 (enum type_pieces) <tp_function_with_arguments>: New constant.
2214 (union type_stack_elt) <typelist_val>: New field.
2215 (push_typelist): Declare.
2217 2012-07-06 Tom Tromey <tromey@redhat.com>
2219 * c-exp.y (%union) <type_stack>: New field.
2220 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2221 (ptr_operator_ts): New production.
2223 * parse.c (type_stack_reserve): New function.
2224 (check_type_stack_depth): Use it.
2225 (pop_type_stack, append_type_stack, push_type_stack)
2226 (get_type_stack, type_stack_cleanup): New functions.
2227 (follow_types): Handle tp_type_stack.
2228 (_initialize_parse): Simplify initialization.
2229 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2231 (union type_stack_elt) <stack_val>: New field.
2232 (get_type_stack, append_type_stack, push_type_stack)
2233 (type_stack_cleanup): Declare.
2235 2012-07-06 Tom Tromey <tromey@redhat.com>
2237 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2239 (struct type_stack): New.
2240 * parse.c (type_stack, type_stack_size, type_stack_depth):
2242 (type_stack): New global.
2243 (parse_exp_in_context, check_type_stack_depth)
2244 (insert_into_type_stack, insert_type, push_type, push_type_int)
2245 (insert_type_address_space, pop_type, pop_type_int)
2246 (_initialize_parse): Update.
2248 2012-07-06 Tom Tromey <tromey@redhat.com>
2250 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2253 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2255 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2257 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2258 Jan Kratochvil <jan.kratochvil@redhat.com>
2260 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2261 alloca with xmalloc/xfree.
2263 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2265 * MAINTAINERS (Write After Approval): Add myself to the list.
2267 2012-07-05 Doug Evans <dje@google.com>
2269 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2271 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2273 * ax-gdb.c (cli/cli-utils.h): New include.
2274 (linespec.h): Ditto.
2275 (agent_eval_command_one): New function.
2276 (agent_command_1): Ditto.
2277 (agent_command): Call function agent_command_1.
2278 (agent_eval_command): Ditto.
2279 (_initialize_ax_gdb): Change help for "maint agent"
2280 and "maint agent-eval".
2282 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
2284 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2285 * cli/cli-utils.c (check_for_argument): New function.
2286 * cli/cli-utils.h (check_for_argument): Ditto.
2288 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2290 * NEWS: Mention x32 ABI support.
2292 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2294 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2295 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2297 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2298 and pc_regnum_from_eax to -1. Update SP regnum from
2299 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2302 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2305 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2307 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2308 * dwarf2expr.h: Include gdbtypes.h.
2309 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2310 these forward declarations.
2311 (cu_offset, sect_offset): Move these ...
2312 * gdbtypes.h: Remove include dwarf2expr.h.
2313 (cu_offset, sect_offset): ... here.
2315 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2317 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2318 (amd64_linux_sigtramp_code): This.
2319 (amd64_x32_linux_sigtramp_code): New.
2320 (LINUX_SIGTRAMP_LEN): Updated.
2321 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2323 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2325 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2327 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2329 * config.in: Regenerate.
2330 * configure: Regenerate.
2331 * configure.ac: Remove check for gnu/libc-version.h.
2332 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2334 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2335 variables libc_version, libc_major and libc_minor. Replace sscanf by
2336 inferior_has_bug. Extend the comment.
2338 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2340 * linux-thread-db.c (inferior_has_bug): New function.
2341 (thread_db_find_new_threads_silently): Return boolean as checked by
2342 inferior_has_bug, describe it in the comments.
2343 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2344 earlier. Abort the initialization if it returned non-zero.
2345 (thread_db_new_objfile): Exclude debug files.
2346 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2349 2012-07-02 Doug Evans <dje@google.com>
2351 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2352 related to queue management.
2354 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2355 instead of "debug dwarf2-die" in debugging printfs.
2356 (create_debug_info_hash_table_reader): Ditto.
2357 (create_debug_info_hash_table): Ditto.
2358 (init_dwo_file): Ditto.
2359 (init_cutu_and_read_dies): Add debugging printf.
2360 (init_cutu_and_read_dies_no_follow): Ditto.
2361 (process_psymtab_comp_unit_reader): Ditto.
2363 2012-07-02 Stan Shebs <stan@codesourcery.com>
2365 Add target-side support for dynamic printf.
2366 * NEWS: Mention the additional style.
2367 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2368 (struct bp_location): New field cmd_bytecode.
2369 * breakpoint.c: Include format.h.
2370 (disconnected_dprintf): New global.
2371 (parse_cmd_to_aexpr): New function.
2372 (build_target_command_list): New function.
2373 (insert_bp_location): Call it.
2374 (remove_breakpoints_pid): Skip dprintf breakpoints.
2375 (print_one_breakpoint_location): Ditto.
2376 (dprintf_style_agent): New global.
2377 (dprintf_style_enums): Add dprintf_style_agent.
2378 (update_dprintf_command_list): Add agent case.
2379 (agent_printf_command): New function.
2380 (_initialize_breakpoint): Add new commands.
2381 * common/ax.def (printf): New bytecode.
2382 * ax.h (ax_string): Declare.
2383 * ax-gdb.h (gen_printf): Declare.
2384 * ax-gdb.c: Include cli-utils.h, format.h.
2385 (gen_printf): New function.
2386 (maint_agent_print_command): New function.
2387 (_initialize_ax_gdb): Add maint agent-printf command.
2388 * ax-general.c (ax_string): New function.
2389 (ax_print): Add printf disassembly.
2390 * Makefile.in (SFILES): Add format.c
2391 (COMMON_OBS): Add format.o.
2392 * common/format.h: New file.
2393 * common/format.c: New file.
2394 * printcmd.c: Include format.h.
2395 (ui_printf): Call parse_format_string.
2396 * remote.c (remote_state): New field breakpoint_commands.
2397 (PACKET_BreakpointCommands): New enum.
2398 (remote_breakpoint_commands_feature): New function.
2399 (remote_protocol_features): Add new BreakpointCommands entry.
2400 (remote_can_run_breakpoint_commands): New function.
2401 (remote_add_target_side_commands): New function.
2402 (remote_insert_breakpoint): Call it.
2403 (remote_insert_hw_breakpoint): Ditto.
2404 (_initialize_remote): Add new packet configuration for
2405 target-side breakpoint commands.
2406 * target.h (struct target_ops): New field
2407 to_can_run_breakpoint_commands.
2408 (target_can_run_breakpoint_commands): New macro.
2409 * target.c (update_current_target): Handle
2410 to_can_run_breakpoint_commands.
2412 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2414 Execute -ix and -iex only after system and user gdbinit files.
2415 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2416 processing down after gdbinit files.
2418 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2420 Add fnmatch-gnu module.
2421 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2422 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2423 * gnulib/aclocal.m4: Regenerate.
2424 * gnulib/config.in: Regenerate.
2425 * gnulib/configure: Regenerate.
2426 * gnulib/import/dummy.c: Remove.
2427 * gnulib/import/Makefile.am: Regenerate.
2428 * gnulib/import/Makefile.in: Likewise.
2429 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2430 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2431 * gnulib/import/alloca.c: New file.
2432 * gnulib/import/alloca.in.h: Likewise.
2433 * gnulib/import/config.charset: Likewise.
2434 * gnulib/import/fnmatch.c: Likewise.
2435 * gnulib/import/fnmatch.in.h: Likewise.
2436 * gnulib/import/fnmatch_loop.c: Likewise.
2437 * gnulib/import/localcharset.c: Likewise.
2438 * gnulib/import/localcharset.h: Likewise.
2439 * gnulib/import/m4/alloca.m4: Likewise.
2440 * gnulib/import/m4/codeset.m4: Likewise.
2441 * gnulib/import/m4/configmake.m4: Likewise.
2442 * gnulib/import/m4/fcntl-o.m4: Likewise.
2443 * gnulib/import/m4/fnmatch.m4: Likewise.
2444 * gnulib/import/m4/glibc21.m4: Likewise.
2445 * gnulib/import/m4/localcharset.m4: Likewise.
2446 * gnulib/import/m4/locale-fr.m4: Likewise.
2447 * gnulib/import/m4/locale-ja.m4: Likewise.
2448 * gnulib/import/m4/locale-zh.m4: Likewise.
2449 * gnulib/import/m4/mbrtowc.m4: Likewise.
2450 * gnulib/import/m4/mbsinit.m4: Likewise.
2451 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2452 * gnulib/import/m4/mbstate_t.m4: Likewise.
2453 * gnulib/import/m4/stdbool.m4: Likewise.
2454 * gnulib/import/m4/wchar_h.m4: Likewise.
2455 * gnulib/import/m4/wctype_h.m4: Likewise.
2456 * gnulib/import/m4/wint_t.m4: Likewise.
2457 * gnulib/import/mbrtowc.c: Likewise.
2458 * gnulib/import/mbsinit.c: Likewise.
2459 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2460 * gnulib/import/mbsrtowcs-state.c: Likewise.
2461 * gnulib/import/mbsrtowcs.c: Likewise.
2462 * gnulib/import/ref-add.sin: Likewise.
2463 * gnulib/import/ref-del.sin: Likewise.
2464 * gnulib/import/stdbool.in.h: Likewise.
2465 * gnulib/import/streq.h: Likewise.
2466 * gnulib/import/strnlen1.c: Likewise.
2467 * gnulib/import/strnlen1.h: Likewise.
2468 * gnulib/import/verify.h: Likewise.
2469 * gnulib/import/wchar.in.h: Likewise.
2470 * gnulib/import/wctype.in.h: Likewise.
2472 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2474 Support shell wildcards for 'set auto-load safe-path'.
2475 * auto-load.c: Include fnmatch.h.
2476 (filename_is_in_dir): Rename to ...
2477 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2478 it. Update function comment. Rename dir_len to pattern_len. New
2479 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2480 messages. Use gdb_filename_fnmatch.
2481 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2483 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2484 * defs.h (gdb_filename_fnmatch): New declaration.
2485 * utils.c: Include fnmatch.h.
2486 (gdb_filename_fnmatch): New function.
2488 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2490 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2491 `-probe' and `-probe-stap' options.
2493 2012-07-01 Yao Qi <yao@codesourcery.com>
2495 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2496 always_inserted_off, and always_inserted_enums.
2497 Change always_inserted_mode's type to 'enum auto_boolean'.
2498 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2500 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2501 of add_setshow_enum_cmd.
2502 * infrun.c: Remove can_use_displaced_stepping_auto,
2503 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2504 can_use_displaced_stepping_enum.
2505 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2506 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2507 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2508 add_setshow_enum_cmd.
2510 2012-06-30 Doug Evans <dje@google.com>
2512 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2513 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2514 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2516 2012-06-29 Doug Evans <dje@google.com>
2518 * linespec.c: #include "stack.h".
2519 (decode_line_with_current_source): Moved here from symtab.c and
2520 renamed from decode_line_spec. All callers updated.
2521 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2522 renamed from decode_line_spec_1. All callers updated.
2523 * linespec.h (decode_line_with_current_source): Move declaration here
2524 from symtab.h and renamed from decode_line_spec.
2525 (decode_line_with_last_displayed): Move declaration here from symtab.h
2526 and renamed from decode_line_spec_1.
2527 * macrocmd.c: #include "linespec.h".
2528 * symtab.c: Remove #include "linespec.h".
2530 2012-06-28 Doug Evans <dje@google.com>
2532 * dwarf2read.c (get_cu_length): New function.
2533 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2534 (create_debug_types_hash_table): Ditto.
2535 (init_cutu_and_read_dies): Ditto.
2536 (init_cutu_and_read_dies_no_follow): Ditto.
2538 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2540 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2541 (struct abbrev_table): Define.
2542 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2544 (init_cutu_and_read_dies): Update.
2545 (abbrev_table_alloc_abbrev): New function. Replaces
2546 dwarf_alloc_abbrev. All callers updated.
2547 (abbrev_table_add_abbrev): New function.
2548 (abbrev_table_lookup_abbrev): New function. Replaces
2549 dwarf2_lookup_abbrev. All callers updated.
2550 (abbrev_table_read_table): New function. Contents moved here from
2551 dwarf2_read_abbrevs.
2552 (dwarf2_read_abbrevs): Call it.
2553 (abbrev_table_free): New function.
2554 (dwarf2_free_abbrev_table): Call it.
2556 2012-06-28 Stan Shebs <stan@codesourcery.com>
2558 * osdata.c (info_osdata_command): Filter out "Title" columns
2560 * common/linux-osdata.c (struct osdata_type): Add title field.
2561 (osdata_table): Add titles to each entry.
2562 (linux_command_xfer_osdata): Add a column for title data.
2564 2012-06-28 Stan Shebs <stan@codesourcery.com>
2566 Make logging work for MI.
2568 * interps.h (interp_set_logging_ftype): New typedef.
2569 (struct interp_procs): New field set_logging_proc.
2570 (current_interp_set_logging): Declare.
2571 * interps.c (current_interp_set_logging): New function.
2572 * cli/cli-logging.c: Include interps.h.
2573 (set_logging_redirect): Call current_interp_set_logging.
2574 (pop_output_files): Ditto.
2575 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2576 * mi/mi-console.h (mi_console_set_raw): Declare.
2577 * mi/mi-console.c (mi_console_set_raw): New function.
2578 * mi/mi-interp.c (saved_raw_stdout): New global.
2579 (mi_set_logging): New function.
2580 (_initialize_mi_interp): Add it to interp procs.
2582 2012-06-28 Doug Evans <dje@google.com>
2584 * symtab.c (lookup_symbol_aux_objfile): Use
2585 ALL_OBJFILE_PRIMARY_SYMTABS.
2587 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2589 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2591 * common/buffer.c: Include inttypes.h and stdint.h.
2592 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2594 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2595 Pedro Alves <palves@redhat.com>
2597 * gdbthread.h (ALL_THREADS): New macro.
2598 (thread_list): Declare.
2599 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2600 going, but instead fall through to the stepping handling.
2601 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2602 the passed in signal. Adjust debug output.
2603 (resume_callback): Rename to ...
2604 (linux_nat_resume_callback): ... this. Pass the thread's last
2605 stop signal, if in "pass" state.
2606 (linux_nat_resume): Adjust to rename.
2607 (stop_wait_callback): New assertion. Don't respawn signals;
2608 instead let the LWP remain with SIGNALLED set.
2609 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2610 * remote.c (append_pending_thread_resumptions): New.
2611 (remote_vcont_resume): Call it.
2612 * target.h (target_resume): Extend comment.
2614 2012-06-28 Iain Sandoe <iain@codesourcery.com>
2616 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2618 2012-06-27 Doug Evans <dje@google.com>
2620 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2621 Delete have_addr_base, unused. All uses updated.
2622 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2623 (dwarf2_get_pc_bounds): Add ranges_base.
2624 (dwarf2_record_block_ranges): Ditto.
2626 2012-06-27 Tom Tromey <tromey@redhat.com>
2629 * varobj.c (varobj_create): Update.
2630 (varobj_set_value): Update.
2631 * tracepoint.c (validate_actionline): Update.
2632 (encode_actions_1): Update.
2633 * parse.c (parse_exp_1): Add 'pc' argument.
2634 (parse_exp_in_context): Add 'pc' argument. Change how
2635 expression_context_pc is set.
2636 (parse_expression): Update.
2637 (parse_field_expression): Update.
2638 * expression.h (parse_exp_1): Update.
2639 * eval.c (parse_to_comma_and_eval): Update.
2640 * breakpoint.c (set_breakpoint_condition): Update.
2641 (update_watchpoint): Update.
2642 (init_breakpoint_sal): Update
2643 (find_condition_and_thread): Update.
2644 (watch_command_1): Update.
2645 (update_breakpoint_locations): Update.
2646 * ada-lang.c (ada_read_renaming_var_value): Update.
2647 (create_excep_cond_exprs): Update.
2649 2012-06-27 Doug Evans <dje@google.com>
2651 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2654 2012-06-26 Doug Evans <dje@google.com>
2656 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2658 (error_check_comp_unit_head): New arg abbrev_section. All callers
2660 (read_and_check_comp_unit_head): Ditto.
2661 (read_and_check_type_unit_head): Ditto.
2663 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2665 New attribute 'last' for gdb.Symtab_and_line.
2666 * NEWS (Python Scripting): Add entry about the new attribute.
2667 * python/py-symtab.c (salpy_get_last): New function which
2668 implements the get method for the 'last' attribute of
2669 gdb.Symtab_and_line.
2670 (sal_object_getset): Add entry for the 'last' attribute.
2672 2012-06-26 Doug Evans <dje@google.com>
2674 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2675 (dwo_sections): Add macinfo, macro.
2676 (dwarf2_locate_dwo_sections): Watch for macro sections.
2677 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2678 All callers updated. Handle DWO files.
2680 * NEWS: Mention new options "set debug dwarf2-read" and
2681 "set debug symtab-create".
2682 * dwarf2read.c (dwarf2_read_debug): New static global.
2683 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2684 (process_queue): Ditto.
2685 (process_full_comp_unit): Ditto.
2686 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2687 * elfread.c (elf_symfile_read): Add debugging printf.
2688 * minsyms.c (install_minimal_symbols): Ditto.
2689 * psymtab.c (allocate_psymtab): Ditto.
2690 * symfile.c (allocate_symtab): Ditto.
2691 * symtab.c (symtab_create_debug): New global.
2692 (_initialize_symtab): Add new option "set debug symtab-create".
2693 * symtab.h (symtab_create_debug): Declare.
2695 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2696 (lookup_dwo_type_unit): Ditto.
2698 2012-06-26 Roland McGrath <roland@hack.frob.com>
2699 H.J. Lu <hongjiu.lu@intel.com>
2701 * amd64-linux-nat.c: Include <sys/user.h>.
2702 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
2703 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
2704 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
2706 * configure.ac: Check if the fs_base and gs_base members of
2707 `struct user_regs_struct' exist.
2708 * config.in: Regenerated.
2709 * configure: Likewise.
2711 2012-06-25 Michael Eager <eager@eagercon.com>
2714 * python/python.c (gdbpy_write): Check for interrupted output.
2716 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
2718 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
2719 register as a stack alignment in ARM mode.
2721 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2723 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
2724 * gnulib/config.in: Regenerate.
2725 * gnulib/configure: Likewise.
2726 * gnulib/import/m4/extensions.m4: Update it.
2727 * gnulib/import/m4/gnulib-common.m4: Likewise.
2728 * gnulib/import/m4/memmem.m4: Likewise.
2729 * gnulib/import/m4/mmap-anon.m4: Likewise.
2730 * gnulib/import/m4/multiarch.m4: Likewise.
2731 * gnulib/import/stdint.in.h: Likewise.
2733 2012-06-24 Yao Qi <yao@codesourcery.com>
2735 * corefile.c (write_memory_with_notification): New.
2736 * gdbcore.h: Declare write_memory_with_notification.
2737 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
2738 'observer_notify_memory_changed' with 'write_memory_with_notification'.
2739 * valops.c (value_assign): Likewise.
2740 * python/py-inferior.c (infpy_write_memory): Call
2741 'write_memory_with_notification'.
2743 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2745 * cc-with-index.sh: Use also -ex "set auto-load no".
2747 2012-06-23 Doug Evans <dje@google.com>
2750 * NEWS: Document additions to .gdb_index.
2751 * dwarf2read.c: #include "gdb/gdb-index.h".
2752 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
2753 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
2754 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
2755 (dwarf2_read_index): Recognize version 7.
2756 (dw2_do_expand_symtabs_matching): New args want_specific_block,
2757 block_kind, domain): All callers updated.
2758 (dw2_find_symbol_file): Handle new index CU values.
2759 (dw2_expand_symtabs_matching): Match symbol kind if requested.
2760 (add_index_entry): New args is_static, kind. All callers updated.
2761 (offset_type_compare, uniquify_cu_indices): New functions
2762 (symbol_kind): New function.
2763 (write_psymtabs_to_index): Remove duplicate CU values.
2764 (write_psymtabs_to_index): Write .gdb_index version 7.
2766 2012-06-22 Joel Brobecker <brobecker@adacore.com>
2768 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
2769 * configure: Regenerate.
2771 2012-06-20 Yao Qi <yao@codesourcery.com>
2773 * python/py-inferior.c: Update comments of infpy_read_memory
2774 and infpy_write_memory.
2776 2012-06-19 Tom Tromey <tromey@redhat.com>
2779 * parser-defs.h (insert_type, insert_type_address_space): Declare.
2780 (push_type_address_space): Remove.
2781 * parse.c (insert_into_type_stack): New function.
2782 (insert_type): Likewise.
2783 (insert_type_address_space): Rename from push_type_address_space.
2784 Insert tp_space_identifier.
2785 * c-exp.y (ptr_operator): New production.
2786 (abs_decl): Use ptr_operator.
2787 (space_identifier): Call insert_type_address_space.
2788 (ptype): Don't use const_or_volatile_or_space_identifier.
2789 (const_or_volatile_noopt): Call insert_type.
2790 (conversion_type_id, conversion_declarator): New productions.
2791 (operator): Use conversion_type_id.
2793 2012-06-18 Doug Evans <dje@google.com>
2795 * symtab.h (minimal_symbol): New member created_by_gdb.
2796 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
2798 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
2799 (search_symbols): Call it instead of lookup_symbol.
2800 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
2802 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
2803 Adjust address for DW_OP_GNU_addr_index.
2804 * dwarf2expr.h (dwarf_expr_context): Update comment.
2805 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
2806 all callers updated. Handle TLS vars described with
2807 DW_OP_GNU_const_index.
2808 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
2809 and DW_OP_GNU_const_index.
2810 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
2812 * block.c (find_block_in_blockvector): Make explicit the fact that we
2813 ignore GLOBAL_BLOCK.
2815 2012-06-18 Tom Tromey <tromey@redhat.com>
2817 * c-exp.y (operator): Remove trailing space after "delete" and
2820 2012-06-18 Mark Kettenis <kettenis@gnu.org>
2821 Jan Kratochvil <jan.kratochvil@redhat.com>
2823 Switch i386 and derived targets to ON_STACK.
2824 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
2825 (amd64_dicos_init_abi): Remove its installment.
2826 * dicos-tdep.c (dicos_init_abi): Remove the
2827 set_gdbarch_call_dummy_location call. Update the comment here.
2828 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
2829 (i386_dicos_init_abi): Remove its installment.
2830 * i386-tdep.c (i386_push_dummy_code): New function.
2831 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
2832 i386_push_dummy_code.
2834 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2836 Remove stale dummy frames.
2837 * breakpoint.c: Include dummy-frame.h.
2838 (longjmp_breakpoint_ops): New variable.
2839 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
2840 bp_longjmp_call_dummy.
2841 (bpstat_what, bptype_string, print_one_breakpoint_location)
2842 (init_bp_location): Support bp_longjmp_call_dummy.
2843 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
2844 (set_longjmp_breakpoint_for_call_dummy)
2845 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
2847 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
2848 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
2849 FIXME comment and extend the other comment for bp_call_dummy.
2850 (set_longjmp_breakpoint_for_call_dummy)
2851 (check_longjmp_breakpoint_for_call_dummy): New declarations.
2852 * dummy-frame.c: Include gdbthread.h.
2853 (pop_dummy_frame_bpt): New function.
2854 (pop_dummy_frame): Call pop_dummy_frame_bpt.
2855 (dummy_frame_discard): New function.
2856 (cleanup_dummy_frames): Update the comment about longjmps.
2857 * dummy-frame.h (dummy_frame_discard): New declaration.
2858 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
2859 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
2860 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
2861 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
2862 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
2863 keep_going if IS_LONGJMP and there is no other reason to stop.
2865 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
2867 * remote-sim.c (sim_command_completer): Initialize
2870 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2872 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
2873 * dwarf2loc.c (call_site_parameter_matches): Support
2874 CALL_SITE_PARAMETER_PARAM_OFFSET.
2875 (needs_dwarf_reg_entry_value): Push stub value.
2876 * dwarf2read.c (read_call_site_scope): New variable origin. Support
2877 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
2878 * gdbtypes.h (enum call_site_parameter_kind): New item
2879 CALL_SITE_PARAMETER_PARAM_OFFSET.
2880 (struct call_site.parameter.u): New field param_offset.
2882 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2884 Code cleanup: Generalize call_site.parameter key.
2885 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
2886 variable dwarf_reg. New variable kind_u. Update parameters to
2887 push_dwarf_reg_entry_value.
2888 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2889 * dwarf2expr.h (enum call_site_parameter_kind)
2890 (union call_site_parameter_u): Forward declarations.
2891 (struct dwarf_expr_context_funcs): Update parameters and their
2892 description for push_dwarf_reg_entry_value.
2893 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2894 * dwarf2loc.c (call_site_parameter_matches): New function.
2895 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
2896 description. Use call_site_parameter_matches.
2897 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
2898 Update parameters and their description.
2899 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
2900 New variable kind_u. Adjust the caller for updated parameters.
2901 (needs_dwarf_reg_entry_value): Update parameters.
2902 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
2903 instead of attr. Update for the changed fields of struct
2904 call_site_parameter.
2905 * gdbtypes.h: Include dwarf2expr.h.
2906 (enum call_site_parameter_kind): New.
2907 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
2908 fb_offset into new union u.
2910 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2912 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
2913 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
2916 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2918 * amd64-linux-nat.c (compat_x32_clock_t): New.
2919 (compat_x32_siginfo_t): Likewise.
2920 (compat_x32_siginfo_from_siginfo): Likewise.
2921 (siginfo_from_compat_x32_siginfo): Likewise.
2922 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
2923 and siginfo_from_compat_x32_siginfo for x32.
2925 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
2927 * tracepoint.c (tfile_xfer_partial): Add a lseek.
2929 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2931 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
2932 instead of gdbarch_ptr_bit.
2933 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
2934 (amd64_supply_native_gregset): Likewise.
2935 (amd64_collect_native_gregset): Likewise.
2936 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
2937 (amd64_supply_xsave): Likewise.
2938 (amd64_collect_fxsave): Likewise.
2939 (amd64_collect_xsave): Likewise.
2941 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2943 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
2944 (amd64_linux_read_description): Check DS segment register for
2947 2012-06-15 Tom Tromey <tromey@redhat.com>
2949 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
2950 init_cutu_and_read_dies.
2952 2012-06-15 Iain Sandoe <iain@codesourcery.com>
2954 * MAINTAINERS (Write After Approval): Add myself to the list.
2956 2012-06-15 Tom Tromey <tromey@redhat.com>
2958 * valops.c (value_find_oload_method_list): Now static.
2959 * value.h (value_find_oload_method_list): Don't declare.
2961 2012-06-15 Tom Tromey <tromey@redhat.com>
2963 * valops.c (find_overload_match): Use value_ind.
2965 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
2967 * infrun.c (handle_inferior_event): Correct indentation.
2969 2012-06-14 Doug Evans <dje@google.com>
2971 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
2972 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
2974 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
2975 updated. Handle DEBUG_LOC_START_LENGTH.
2976 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
2977 (loclist_describe_location): Ditto.
2979 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
2982 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
2983 after hiding inline functions.
2985 2012-06-13 Joel Brobecker <brobecker@adacore.com>
2987 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
2988 _initialize_inf_ttrace.
2990 2012-06-13 Joel Brobecker <brobecker@adacore.com>
2992 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
2993 _initialize_hppa_hpux_nat.
2995 2012-06-13 Joel Brobecker <brobecker@adacore.com>
2997 * remote-sim.c (sim_command_completer): Change type of return
2998 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3000 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3001 Jan Kratochvil <jan.kratochvil@redhat.com>
3004 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3005 stack on a 16-byte boundary.
3007 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3009 * jit.c (finalize_symtab): Set function's return type to 'void' by
3012 2012-06-13 Mark Kettenis <kettenis@gnu.org>
3013 H.J. Lu <hongjiu.lu@intel.com>
3015 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3016 Move bits common to both the classic LP64 and the new x32 ILP32
3018 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3019 (amd64_x32_linux_init_abi): New function.
3020 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3023 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3024 * i386-tdep.c (i386_pseudo_register_name): Make public.
3025 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3026 * amd64-tdep.c (amd64_dword_names): Add "eip".
3027 (amd64_x32_pseudo_register_type): New function
3028 (amd64_x32_init_abi): New function.
3030 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3033 * inferior.h (struct inferior_suspend_state): Comment out.
3034 (struct inferior): Comment out the field suspend.
3035 * infrun.c (struct infcall_suspend_state): Comment out the field
3037 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3040 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3042 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3043 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3044 function comment. Return ERROR for unresolved cases. Implement
3045 returning proper NAME.
3046 (yylex): Accept also NAME from classify_inner_name.
3047 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3048 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3050 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3052 2012-06-13 Tom Tromey <tromey@redhat.com>
3054 * breakpoint.c (condition_completer): New function.
3055 (_initialize_breakpoint): Use it.
3056 * value.c (complete_internalvar): New function.
3057 * value.h (complete_internalvar): Declare.
3059 2012-06-13 Tom Tromey <tromey@redhat.com>
3061 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3062 * breakpoint.c (catch_syscall_completer): Return a VEC.
3063 * cli/cli-cmds.c (complete_command): Update.
3064 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3065 (complete_on_enum): Likewise.
3066 * command.h: Include gdb_vecs.h.
3067 (completer_ftype): Change return type.
3068 (complete_on_cmdlist, complete_on_enum): Likewise.
3069 * completer.c (noop_completer, filename_completer)
3070 (location_completer): Return a VEC.
3071 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3073 (expression_completer, complete_line_internal, complete_line)
3074 (command_completer): Return a VEC.
3075 (gdb_completion_word_break_characters, line_completion_function):
3077 * completer.h: Include gdb_vecs.h.
3078 (complete_line, noop_completer, filename_completer)
3079 (expression_completer, location_completer, command_completer):
3081 * f-lang.c (f_word_break_characters): Return a VEC.
3082 * interps.c (interpreter_completer): Return a VEC.
3083 * language.h (struct language_defn)
3084 <la_make_symbol_completion_list>: Return a VEC.
3085 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3086 * symtab.c (free_completion_list): Take a VEC.
3087 (return_val_size, return_val_index): Remove.
3088 (return_val): Now a VEC.
3089 (completion_list_add_name): Update.
3090 (default_make_symbol_completion_list_break_on)
3091 (default_make_symbol_completion_list, make_symbol_completion_list)
3092 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3094 (add_filename_to_list): Update.
3095 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3097 (maybe_add_partial_symtab_filename): Update.
3098 (make_source_files_completion_list): Return a VEC.
3099 * symtab.h (default_make_symbol_completion_list_break_on)
3100 (default_make_symbol_completion_list, make_symbol_completion_list)
3101 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3102 (make_source_files_completion_list): Update.
3104 2012-06-13 Tom Tromey <tromey@redhat.com>
3106 * breakpoint.c (add_catch_command): Use completer_ftype.
3107 * breakpoint.h: Include command.h.
3108 (add_catch_command): Use completer_ftype.
3109 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3110 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3111 Use completer_ftype.
3112 * command.h (completer_ftype): New typedef.
3113 (set_cmd_completer): Use it.
3114 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3117 2012-06-13 Pedro Alves <palves@redhat.com>
3119 Partial revert of previous change.
3121 * serial.c (scb_base): New global.
3122 (serial_for_fd): New.
3123 (serial_open, serial_fdopen_ops): Link new serial in open serials
3125 (do_serial_close): Unlink serial from the open serials chain.
3127 2012-06-12 Pedro Alves <palves@redhat.com>
3129 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3131 (prepare_for_detach): No longer context switch here in non-stop
3133 (fetch_inferior_event): Ditto.
3134 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3135 to the event thread before removing breakpoints. Switch to the
3136 event thread before inserting breakpoints and resuming.
3137 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3138 event thread before resuming.
3139 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3140 Switch to the event thread before removing breakpoints.
3142 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3144 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3145 special characters correctly for the Windows shells. See
3146 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3148 [!__MINGW32__]: Remove extra double quote character from special
3151 2012-06-11 Stan Shebs <stan@codesourcery.com>
3153 * ui-out.h: Remove #if 0 declarations.
3154 * ui-out.c: Remove #if 0 functions.
3156 2012-06-11 Pedro Alves <palves@redhat.com>
3158 * ser-base.c (run_async_handler_and_reschedule): New.
3159 (fd_event, push_event): Use it.
3160 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3161 reference count to 1.
3162 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3164 (serial_is_open, serial_ref, serial_unref): New.
3165 * serial.h (serial_open): Adjust comment.
3166 (serial_is_open): Declare.
3167 (serial_close): Adjust comment.
3168 (serial_ref, serial_unref) Declare.
3169 (struct serial): New field 'refcnt'.
3171 2012-06-11 Pedro Alves <palves@redhat.com>
3173 Remove #if 0'd "connect" command, and unnecessary associated
3174 refcounting and serial reuse bits.
3176 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3177 * serial.c (last_serial_opened): Delete.
3179 (serial_open): Adjust.
3180 (serial_for_fd): Delete.
3181 (serial_fdopen_ops, do_serial_close): Adjust.
3182 (serial_fdopen_ops): Adjust.
3184 2012-06-11 Pedro Alves <palves@redhat.com>
3186 * serial.c (do_serial_close): Remove early return when SCB is
3189 2012-06-11 Tom Tromey <tromey@redhat.com>
3191 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3193 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3195 Fix regression by the "ambiguous linespec" series.
3196 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3197 get_last_displayed_symtab and get_last_displayed_line and depending
3200 2012-06-11 Tom Tromey <tromey@redhat.com>
3202 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3203 (dw2_find_symbol_file): Use it.
3205 2012-06-11 Michael Eager <eager@eagercon.com>
3207 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3208 * mips-linux-tdep.h (mips_signals): New
3210 2012-06-11 Tom Tromey <tromey@redhat.com>
3212 * infrun.c (handle_inferior_event)
3213 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3215 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3216 exception logic in all cases. Update comments.
3217 (insert_longjmp_resume_breakpoint): Set the exception resume
3220 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3222 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3224 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3226 * valarith.c (binop_types_user_defined_p): Fix a typo.
3228 2012-06-08 Yao Qi <yao@codesourcery.com>
3229 Chung-Lin Tang <cltang@codesourcery.com>
3231 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3232 * arch-utils.h: Declare.
3233 * gdbarch.sh: Add return_in_first_hidden_param_p.
3234 * gdbarch.c, gdbarch.h: Regenerated.
3235 * infcall.c (call_function_by_hand): Call
3236 gdbarch_return_in_first_hidden_param_p instead of
3237 language_pass_by_reference.
3239 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3240 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3241 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3242 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3243 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3244 `cplus_return_struct_by_reference'.
3245 (tic6x_return_value): Handle language cplusplus.
3246 (tic6x_return_in_first_hidden_param_p): New.
3247 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3249 2012-06-07 Doug Evans <dje@google.com>
3251 * dwarf2read.c (dwarf2_cu): Add comment.
3253 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3255 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3257 (mips_eabi_push_dummy_call): Likewise.
3258 (mips_n32n64_push_dummy_call): Likewise.
3259 (mips_o32_push_dummy_call): Likewise.
3260 (mips_o64_push_dummy_call): Likewise.
3262 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3264 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3266 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3268 * mips-tdep.c (mips_pseudo_register_type): Use
3269 mips_float_register_p.
3271 2012-06-06 Pedro Alves <palves@redhat.com>
3273 * infrun.c (handle_inferior_event): Remove calls to
3274 reinit_frame_cache that follow a context_switch call.
3276 2012-06-06 Pedro Alves <palves@redhat.com>
3278 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3279 context_switch and remove stale comment.
3281 2012-06-06 Pedro Alves <palves@redhat.com>
3283 * infrun.c (struct execution_control_state): Remove
3284 `new_thread_event' field.
3285 (handle_inferior_event): Simplify new threads handling; don't
3286 resume the inferior if we find a new thread.
3288 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3290 * NEWS: Document the deprecation of SH's 'regs' command.
3291 * inferior.h (all_registers_info): Add function declaration.
3292 * sh-tdep.c (sh_show_regs): Remove variable.
3293 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3294 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3295 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3296 (sh_show_regs_command): Remove functions.
3297 (sh_gdbarch_init): Don't set sh_show_regs.
3298 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3299 'info all-registers'.
3300 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3301 (sh64_show_regs): Remove functions.
3302 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3304 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3306 * configure.ac: Move development=true below AC_INIT.
3307 * configure: Regenerate.
3309 2012-06-05 Stan Shebs <stan@codesourcery.com>
3311 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3314 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3316 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3317 argument as ssize_t.
3318 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3319 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3320 * target.c (target_read_stack, target_write_memory)
3321 (target_write_raw_memory): Likewise.
3322 * target.h (target_read_stack, target_write_memory)
3323 (target_write_raw_memory): Likewise.
3325 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3327 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3328 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3329 * target.c (target_read_memory): Change LEN to ssize_t.
3330 * target.h (target_read_memory): Change LEN to ssize_t.
3332 2012-06-05 Pedro Alves <palves@redhat.com>
3336 * breakpoint.c (until_break_command): Only fetch the selected
3337 frame after decode_line_1.
3339 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3341 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3342 event breakpoint at _start, __start or main if a program
3343 interpreter is not found.
3345 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3347 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3349 * windows-tdep.c: #include "objfiles.h".
3350 (windows_iterate_over_objfiles_in_search_order): New function.
3351 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3352 iterate_over_objfiles_in_search_order gdbarch method to
3353 windows_iterate_over_objfiles_in_search_order.
3354 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3356 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3358 * gdbarch.sh: Add generation of
3359 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3360 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3361 (iterate_over_objfiles_in_search_order): New gdbarch method.
3362 * gdbarch.h, gdbarch.c: Regenerate.
3363 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3365 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3367 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3368 out of lookup_symbol_aux_symtabs.
3369 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3370 call to lookup_symbol_aux_objfile.
3371 (struct global_sym_lookup_data): New type.
3372 (lookup_symbol_global_iterator_cb): New function.
3373 (lookup_symbol_global): Search for symbol using
3374 gdbarch_iterate_over_objfiles_in_search_order and
3375 lookup_symbol_global_iterator_cb.
3376 * findvar.c (struct minsym_lookup_data): New type.
3377 (minsym_lookup_iterator_cb): New function.
3378 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3379 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3380 and minsym_lookup_iterator_cb.
3382 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3384 Revert the following patch:
3385 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3386 try locating the symbol in the symbol's own objfile first, before
3387 extending the search to all objfiles.
3388 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3389 out of lookup_symbol_aux_symtabs.
3390 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3391 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3392 Do not search EXCLUDE_OBJFILE.
3393 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3394 (lookup_symbol_global): Search for matches in the block's objfile
3395 first, before searching all other objfiles.
3397 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3399 * breakpoint.c (find_condition_and_thread): Stop parsing
3400 as soon as the first invalid keyword is found.
3402 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3404 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3406 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3408 * config/djgpp/djcheck.sh: Add copyright header.
3410 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3412 * copyright.py (update_files, main): Fix path to update-copyright
3415 2012-06-05 Joel Brobecker <brobecker@adacore.com>
3417 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3418 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3419 for which a reminder to update by hand is printed.
3421 2012-06-04 Doug Evans <dje@google.com>
3423 * buildsym.c (make_blockvector): Add comment.
3425 2012-06-04 Pedro Alves <palves@redhat.com>
3427 * arch-utils.c (default_gdb_signal_from_target): Delete.
3428 * arch-utils.h (default_gdb_signal_from_target): Delete.
3429 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3430 gdbarch_gdb_signal_from_target_p.
3431 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3433 * gdbarch.h: Regenerate.
3434 * gdbarch.c: Regenerate.
3436 2012-06-04 Pedro Alves <palves@redhat.com>
3438 * gdbarch.sh (gdb_signal_from_target): Mention that the
3439 implementation of the method must be host independent.
3440 * gdbarch.h: Regenerate.
3442 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3444 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3446 (target_read_memory_bfd): New function.
3447 (symbol_file_add_from_memory): Use it.
3449 2012-06-03 Doug Evans <dje@google.com>
3451 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3453 (basic_lookup_transparent_type): Ditto.
3455 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3456 (ALL_PRIMARY_SYMTABS): Use it.
3457 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3458 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3459 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3460 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3461 (basic_lookup_transparent_type): Ditto.
3463 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3465 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3466 it to optimize resolution of demangled name.
3468 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3470 * configure.ac (development): Define new variable.
3471 Call AC_CHECK_LIB for mcheck if $development.
3472 (ERROR_ON_WARNING): Enable it by default only if $development.
3473 * config.in: Regenerate.
3474 * configure: Regenerate.
3476 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3478 * target.c (target_read_memory): Make LEN argument as size_t.
3479 * target.h (target_read_memory): Likewise.
3481 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3483 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3485 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3487 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3488 BookE interface for PowerPC server processors if not available
3489 in the Linux Kernel.
3491 2012-05-31 Keith Seitz <keiths@redhat.com>
3493 * linespec.c (decode_objc): Add cleanup to free
3495 (find_linespec_symbols): Add cleanup to free CLASSES.
3496 * symfile.c (find_separate_debug_file_by_debuglink): Add
3497 cleanup to free DEBUGLINK.
3498 * ui-out.c (clear_header_list): No need to check if
3499 HEADER_NEXT.COLHDR is NULL.
3500 Free HEADER_NEXT.COL_NAME.
3502 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3504 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3507 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3509 * configure.host (gdb_host_cpu): Handle tilegx*.
3510 (gdb_host): Handle tilegx-*-linux*.
3511 * tilegx-linux-nat.c: New file.
3512 * config/tilegx/linux.mh: New file.
3514 2012-05-30 Jeff Kenton <jkenton@tilera.com>
3516 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3517 tilegx-linux-tdep.o.
3518 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3519 tilegx-linux-tdep.c.
3520 * configure.tgt: Handle tilegx-*-linux*.
3521 * tilegx-tdep.h: New file.
3522 * tilegx-tdep.c: New file.
3523 * tilegx-linux-tdep.c: New file.
3524 * regformats/reg-tilegx.dat: New file.
3526 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3528 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3529 accounting of hw watchpoints on ppc.
3531 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3533 * source.c (openp): Expand tilde in path entries.
3535 2012-05-29 Doug Evans <dje@google.com>
3537 * buildsym.c (block_compar): Fix comment.
3538 (end_symtab): Fix and clarify some comments.
3540 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3541 cleanup_undefined_types.
3542 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3543 All callers updated.
3545 2012-05-29 Tom Tromey <tromey@redhat.com>
3547 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3549 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3550 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3552 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3555 2012-05-29 Tristan Gingold <gingold@adacore.com>
3557 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3558 (struct darwin_info): ... New struct.
3559 (solib_darwin_pspace_data): New variable.
3560 (darwin_pspace_data_cleanup): New function.
3561 (get_darwin_info): Likewise.
3562 (darwin_dyld_version_ok, darwin_load_image_infos)
3563 (darwin_solib_get_all_image_info_addr_at_init)
3564 (darwin_solib_read_all_image_info_addr): Add info argument.
3566 (darwin_current_sos): Use per pspace structure.
3567 (darwin_solib_create_inferior_hook): Likewise.
3568 (darwin_clear_solib): Likewise.
3569 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3571 2012-05-28 Pedro Alves <palves@redhat.com>
3573 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3574 block that uses them. Clear ecss before handling each event.
3576 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3578 * solib-svr4.c (svr4_current_sos): New comment on
3579 svr4_current_sos_via_xfer_libraries fall back.
3581 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3583 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3584 it as a fallback for TYPE_IS_OPAQUE.
3585 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3586 symbols for lookup_symbol.
3588 2012-05-24 John Steele Scott <toojays@toojays.net>
3590 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3591 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3592 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3593 (check_producer): ... this new function, which also checks for ICC
3594 and caches the result.
3595 (producer_is_icc): New function.
3596 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3599 2012-05-24 Pedro Alves <palves@redhat.com>
3603 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3604 (default_gdb_signal_to_target): ... this. Add comment.
3605 (default_gdb_signal_from_host): Rename to ...
3606 (default_gdb_signal_from_target): ... this. Add comment.
3607 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3608 (default_gdb_signal_to_target): ... this.
3609 (default_gdb_signal_from_host): Rename to ...
3610 (default_gdb_signal_from_target): ... this.
3611 * corelow.c (core_open): Adjust to naming change. Replace comment.
3612 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3613 (gdb_signal_from_target): ... this. Adjust to
3614 default_gdb_signal_from_host naming change. Extend comment.
3615 (gdb_signal_to_host): Rename to ...
3616 (gdb_signal_to_target): ... this. Adjust to
3617 default_gdb_signal_to_host naming change.
3618 * gdbarch.h, gdbarch.c: Renegerate.
3620 2012-05-24 Pedro Alves <palves@redhat.com>
3624 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
3626 2012-05-24 Pedro Alves <palves@redhat.com>
3630 Replace target_signal with gdb_signal throughout.
3632 2012-05-24 Pedro Alves <palves@redhat.com>
3636 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3637 string, instead of reusing the va_list argument.
3639 2012-05-24 Tom Tromey <tromey@redhat.com>
3641 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3644 2012-05-23 Doug Evans <dje@google.com>
3646 * symtab.c (search_symbols): Formatting fixes.
3647 (print_symbol_info): Formatting fixes.
3649 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3650 int64_t change to leb128 API.
3651 (read_encoded_value, decode_frame_entry_1): Ditto.
3652 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3653 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3654 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3655 (execute_stack_op): Ditto.
3656 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3657 (safe_read_uleb128, safe_read_sleb128): Ditto.
3658 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3659 (dwarf2_compile_expr_to_ax): Ditto.
3660 (locexpr_describe_location_piece): Ditto.
3661 (disassemble_dwarf_expression): Ditto.
3662 (locexpr_describe_location_1): Ditto.
3664 2012-05-23 Stan Shebs <stan@codesourcery.com>
3665 Kwok Cheung Yeung <kcy@codesourcery.com>
3667 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3668 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3669 (mi-cmd-info.o): New rule.
3670 * osdata.h (info_osdata_command): New declaration.
3671 * osdata.c (info_osdata_command): Change to non-static.
3672 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3673 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3674 * mi/mi-cmd-info.c: New file.
3676 2012-05-23 Doug Evans <dje@google.com>
3678 * symtab.c (search_symbols): Pass NULL for file_matcher to
3679 expand_symtabs_matching if there are no files to match.
3681 * gdbtypes.c (lookup_typename): Simplify.
3683 2012-05-23 Pedro Alves <palves@redhat.com>
3685 * arch-utils.h (default_target_signal_to_host): Delete.
3686 * arch-utils.c (default_target_signal_to_host): Delete.
3687 * gdbarch.sh (target_signal_to_host): Remove.
3688 * gdbarch.h, gdbarch.c: Regenerate.
3690 2012-05-22 Doug Evans <dje@google.com>
3692 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3694 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3695 (execute_cfa_program): Update to match API of leb128 functions.
3696 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
3698 (read_unsigned_leb128, read_signed_leb128): Delete.
3699 (read_initial_length): Change type of buf argument to
3701 (read_encoded_value): Update to match API of leb128 functions.
3702 (decode_frame_entry): Change result to "const gdb_byte *", and
3703 similarly for "start" parameter.
3704 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
3705 (dwarf2_build_frame_info): Change local frame_ptr to
3707 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
3708 read_uleb128, read_sleb128. All callers updated.
3709 (safe_skip_leb128): New function.
3710 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
3711 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
3712 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
3713 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
3714 read_uleb128, read_sleb128.
3715 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3716 (execute_stack_op): Update to match API of leb128 functions.
3717 * dwarf2expr.h: #include "leb128.h".
3718 (read_uleb128, read_sleb128): Delete.
3719 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
3720 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
3721 * dwarf2loc.c (debug_loc_kind): New enum.
3722 (decode_debug_loc_addresses): New function.
3723 (decode_debug_loc_dwo_addresses): New function.
3724 (dwarf2_find_location_expression): Rewrite.
3725 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
3726 (locexpr_describe_location_piece): Ditto.
3727 (disassemble_dwarf_expression): Ditto.
3728 (locexpr_describe_location_1): Ditto.
3729 (loclist_describe_location): Rewrite.
3730 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
3731 * dwarf2read.c (die_reader_specs): New member "buffer_end".
3732 (dwarf2_section_buffer_overflow_complaint): Renamed from
3733 dwarf2_macros_too_long_complaint. All callers updated.
3734 (skip_leb128): Delete.
3735 (init_cu_die_reader): Initialize reader->buffer_end.
3736 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
3737 (skip_form_bytes): New arg buffer_end. All callers updated.
3738 Replace call to skip_leb128 with gdb_skip_leb128.
3739 (skip_unknown_opcode): New arg mac_end. All callers updated.
3740 (fill_in_loclist_baton): Initialize baton->from_dwo.
3742 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3744 * mips-linux-nat.c (mips_linux_read_description): Use a more
3745 verbose error message.
3747 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3749 * NEWS: Add MIPS/Linux DSP support.
3750 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
3751 (SIGCONTEXT_DSPCTL): New macro.
3752 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
3753 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
3754 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
3755 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
3756 (N64_SIGCONTEXT_HI3): Likewise.
3757 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
3758 (N64_SIGCONTEXT_LO3): Likewise.
3759 (N64_SIGCONTEXT_DSPCTL): Likewise.
3760 (N64_SIGCONTEXT_FPCSR): Clarify definition.
3761 (mips_linux_o32_sigframe_init): Handle DSP registers.
3762 (mips_linux_n32n64_sigframe_init): Likewise.
3764 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3766 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
3769 2012-05-22 Pedro Alves <palves@redhat.com>
3771 * target.h (store_waitstatus): Move declaration ...
3772 * inf-child.h (store_waitstatus): ... here.
3773 * target.c: Move inclusion of gdb_wait.h, and ...
3774 (store_waitstatus): ... this ...
3775 * inf-child.c: ... here.
3776 * linux-nat.c: Include inf-child.h.
3777 * rs6000-nat.c: Include inf-child.h.
3778 * spu-linux-nat.c: Include inf-child.h.
3780 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3782 * tracepoint.c (start_tracing): Add missing i18n markup.
3783 (stop_tracing, set_trace_user): Ditto.
3784 (set_trace_notes, set_trace_stop_notes): Ditto.
3786 2012-05-21 Tom Tromey <tromey@redhat.com>
3789 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
3791 * value.h (value_cast_pointers): Update.
3792 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
3793 (value_cast): Update.
3794 (update_search_result): New function.
3795 (do_search_struct_field): New, from search_struct_field. Check
3796 for ambiguous results.
3797 (search_struct_field): Rewrite.
3798 * infcall.c (value_arg_coerce): Update.
3799 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
3800 value_cast_pointers.
3801 * ada-lang.c (ada_convert_actual): Update.
3803 2012-05-21 Tom Tromey <tromey@redhat.com>
3805 * macroexp.c (macro_stringify): Terminate the string.
3807 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3809 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
3811 * auto-load.c (auto_load_expand_dir_vars): New function.
3812 (auto_load_safe_path_vec_update): Use it, remove the
3813 substitute_path_component call thanks to it.
3814 (auto_load_objfile_script): Remove the debug_file_directory processing.
3815 Use auto_load_expand_dir_vars, remove the substitute_path_component
3817 * configure: Regenerate.
3818 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
3819 path. Escape $ also for $debugdir.
3820 (--with_auto_load_safe_path): Escape $ also for $debugdir.
3821 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
3823 2012-05-20 Doug Evans <dje@google.com>
3825 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
3826 before use. Check for symtab->includes == NULL before scanning it.
3828 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3830 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
3832 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3834 * NEWS: Add microMIPS support and "set mips compression",
3835 "show mips compression" commands.
3836 * mips-tdep.h (mips_isa): New enum.
3837 (gdbarch_tdep): Add mips_isa.
3838 (mips_pc_is_mips16): Update prototype.
3839 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
3840 * mips-tdep.c (mips_compression_mips16): New variable.
3841 (mips_compression_micromips): Likewise.
3842 (mips_compression_strings): Likewise.
3843 (mips_compression_string): Likewise.
3844 (is_mips16_isa, is_micromips_isa): New functions.
3845 (is_mips16_addr): Rename to...
3846 (is_compact_addr): ... this.
3847 (unmake_mips16_addr): Likewise to...
3848 (unmake_compact_addr): ... this.
3849 (make_mips16_addr): Likewise to...
3850 (make_compact_addr): ... this.
3851 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
3853 (mips_elf_make_msymbol_special): Handle microMIPS code.
3854 (msymbol_is_special): Rename to...
3855 (msymbol_is_mips16): ... this.
3856 (mips_make_symbol_special, mips_pc_is_mips16): Update
3858 (msymbol_is_mips, msymbol_is_micromips): New functions.
3859 (mips16_to_32_reg): Rename to...
3860 (mips_reg3_to_reg): ... this.
3861 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
3862 (mips_pc_isa): Likewise.
3863 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
3865 (mips_fetch_instruction): Pass return status instead of printing
3866 an error message if requested. Handle microMIPS code. Bail out
3868 (micromips_op): New macro.
3869 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
3870 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
3871 (b6s4_op, b7s3_reg): Likewise.
3872 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
3873 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
3874 (mips_insn_size): New function.
3875 (mips32_next_pc): Update mips_fetch_instruction call.
3876 (micromips_relative_offset7): New function.
3877 (micromips_relative_offset10): Likewise.
3878 (micromips_relative_offset16): Likewise.
3879 (micromips_pc_insn_size): Likewise.
3880 (micromips_bc1_pc): Likewise.
3881 (micromips_next_pc): Likewise.
3882 (unpack_mips16): Update mips_fetch_instruction call.
3883 (extended_mips16_next_pc): Update according to change to
3885 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
3887 (mips16_scan_prologue): Update mips_fetch_instruction call.
3888 Update according to change to mips16_to_32_reg.
3889 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
3890 (mips_insn16_frame_base_sniffer): Likewise.
3891 (micromips_decode_imm9): New function.
3892 (micromips_scan_prologue): Likewise.
3893 (mips_micro_frame_cache): Likewise.
3894 (mips_micro_frame_this_id): Likewise.
3895 (mips_micro_frame_prev_register): Likewise.
3896 (mips_micro_frame_sniffer): Likewise.
3897 (mips_micro_frame_unwind): New variable.
3898 (mips_micro_frame_base_address): New function.
3899 (mips_micro_frame_base): New variable.
3900 (mips_micro_frame_base_sniffer): New function.
3901 (mips32_scan_prologue): Update mips_fetch_instruction call.
3902 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
3903 rather than for MIPS16.
3904 (mips_insn32_frame_base_sniffer): Likewise.
3905 (mips_addr_bits_remove): Handle microMIPS code.
3906 (deal_with_atomic_sequence): Rename to...
3907 (mips_deal_with_atomic_sequence): ... this. Update the type
3908 of the variable used to hold an instruction. Remove the ISA bit
3909 check. Update mips_fetch_instruction call.
3910 (micromips_deal_with_atomic_sequence): New function.
3911 (deal_with_atomic_sequence): Likewise.
3912 (mips_about_to_return): Handle microMIPS code. Update
3913 mips_fetch_instruction call.
3914 (heuristic_proc_start): Check for the standard MIPS ISA rather
3915 than for MIPS16. Update mips_pc_is_mips16 and
3916 mips_fetch_instruction calls. Handle microMIPS code.
3917 (mips_push_dummy_code): Handle microMIPS code.
3918 (mips_eabi_push_dummy_call): Likewise.
3919 (mips_o32_return_value): Update mips_pc_is_mips16 call.
3920 (mips_o64_push_dummy_call): Handle microMIPS code.
3921 (mips_o64_return_value): Update mips_pc_is_mips16 call.
3922 (is_delayed): Remove function.
3923 (mips_single_step_through_delay): Replace the call to is_delayed
3924 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
3925 Handle microMIPS code.
3926 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
3928 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
3930 (micromips_in_function_epilogue_p): New function.
3931 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
3933 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
3935 (gdb_print_insn_mips): Likewise.
3936 (mips_breakpoint_from_pc): Likewise.
3937 (mips_remote_breakpoint_from_pc): New function.
3938 (mips32_instruction_has_delay_slot): Simplify making use of the
3939 updated mips_fetch_instruction interface.
3940 (micromips_instruction_has_delay_slot): New function.
3941 (mips16_instruction_has_delay_slot): Simplify making use of the
3942 updated mips_fetch_instruction interface.
3943 (mips_adjust_breakpoint_address): Check for the standard MIPS
3944 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
3945 calls. Handle microMIPS code.
3946 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
3947 (mips_skip_trampoline_code): Handle microMIPS code.
3948 (global_mips_compression): New function.
3949 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
3950 file flags. Register the microMIPS remote breakpoint handler
3951 and heuristic frame unwinder.
3952 (show_mips_compression): New function.
3953 (_initialize_mips_tdep): Add the "set mips compression" and
3954 "show mips compression" commands.
3956 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
3961 * amd64-darwin-tdep.c:
3962 * arm-symbian-tdep.c:
3966 * bfin-linux-tdep.c:
3973 * dwarf2-frame-tailcall.c:
4002 * microblaze-tdep.c:
4003 * mips-linux-tdep.c:
4011 * python/py-finishbreakpoint.c:
4012 * python/py-inferior.c:
4013 * python/py-infthread.c:
4017 * remote-m32r-sdi.c:
4021 * rs6000-aix-tdep.c:
4047 * amd64-darwin-tdep.c:
4048 * arm-symbian-tdep.c:
4049 * arm-tdep.c: Delete unused variables.
4051 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4053 Rename $ddir to $datadir.
4054 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4055 * auto-load.c (auto_load_safe_path_vec_update)
4056 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4057 * configure: Regenerate.
4058 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4059 Likewise. Remove the 'use $ddir' help string.
4061 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4063 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4064 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4066 2012-05-18 Tom Tromey <tromey@redhat.com>
4069 * valprint.h (struct value_print_options) <symbol_print>: New
4071 * valprint.c (user_print_options): Add default for symbol_print.
4072 (show_symbol_print): New function.
4073 (generic_val_print): Respect symbol_print.
4074 (_initialize_valprint): Add "print symbol" setting.
4075 * f-valprint.c (f_val_print): Respect symbol_print.
4076 * c-valprint.c (c_val_print): Respect symbol_print.
4078 * printcmd.c (print_address_symbolic): Return int. Ignore some
4080 (print_address_demangle): Return int.
4081 * defs.h: (print_address_symbolic): Return int.
4082 * value.h (print_address_demangle): Return int.
4084 2012-05-18 Tom Tromey <tromey@redhat.com>
4086 * valprint.c (val_print_string): Don't print leading space.
4087 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4088 print space before string or vtbl.
4089 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4091 * jv-valprint.c (java_value_print): Print space before string.
4092 * go-valprint.c (print_go_string): Print space before string.
4093 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4094 space before string.
4095 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4096 space before string or vtbl.
4097 * auxv.c (fprint_target_auxv): Print space after address.
4099 2012-05-18 Tom Tromey <tromey@redhat.com>
4101 * printcmd.c (print_address_demangle): Remove special case for 0.
4103 2012-05-18 Tom Tromey <tromey@redhat.com>
4105 * printcmd.c (print_address_demangle): Add 'opts' argument.
4106 * p-valprint.c (pascal_val_print): Update.
4107 * jv-valprint.c (java_val_print): Update.
4109 * valprint.c (generic_val_print): Update.
4110 (print_function_pointer_address): Add 'options' argument. Remove
4111 'addressprint' argument. Update.
4112 * m2-valprint.c (print_unpacked_pointer): Update.
4113 * gnu-v3-abi.c (print_one_vtable): Update.
4114 (gnuv3_print_method_ptr): Update.
4115 * f-valprint.c (f_val_print): Update.
4116 * cp-valprint.c (cp_print_value_fields): Update.
4117 * valprint.h (print_function_pointer_address): Update.
4118 * c-valprint.c (c_val_print): Update.
4120 2012-05-18 Tom Tromey <tromey@redhat.com>
4122 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4123 directly corresponding to the found psymtab.
4124 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4125 (dw2_find_pc_sect_symtab): Use it.
4126 * block.h (blockvector_contains_pc): Declare.
4127 * block.c (find_block_in_blockvector): New function.
4128 (blockvector_for_pc_sect): Use it.
4129 (blockvector_contains_pc): New function.
4131 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4133 * mips-tdep.h (mips_write_pc): New prototype.
4134 * mips-tdep.c (mips_write_pc): Make external, add description.
4135 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4138 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4140 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4142 (mips_unwind_pc, mips_write_pc): Likewise.
4143 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4146 2012-05-17 Joel Brobecker <brobecker@adacore.com>
4148 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4149 proc_warn, proc_error, proc_get_status, proc_flags,
4150 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4151 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4152 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4153 proc_stop_process, proc_wait_for_stop, proc_run_process,
4154 proc_set_traced_signals, proc_set_traced_faults,
4155 proc_set_traced_sysentry, proc_set_traced_sysexit,
4156 proc_set_held_signals, proc_get_held_signals,
4157 proc_get_traced_signals, proc_get_traced_faults,
4158 proc_get_traced_sysentry, proc_get_traced_sysexit,
4159 proc_clear_current_fault, proc_set_current_signal,
4160 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4161 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4162 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4163 proc_get_current_thread, proc_get_current_thread,
4164 proc_get_current_thread, proc_update_threads,
4165 proc_update_threads, proc_update_threads, proc_update_threads,
4166 proc_iterate_over_threads, procfs_find_new_threads,
4167 procfs_pid_to_str): Make static. Remove advance declaration.
4168 (proc_cursig): Make static. Conditionalized defintion on
4169 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4170 (proc_syscall, proc_set_kill_on_last_close,
4171 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4172 proc_get_pending_signals, proc_get_signal_actions,
4173 proc_trace_signal, proc_ignore_signal): Delete.
4175 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4177 * coffread.c (cs_section_address): Passing proper argument for
4178 `bfd_get_section_vma'.
4179 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4180 `bfd_get_section_flags'.
4181 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4182 `bfd_get_section_vma'.
4184 2012-05-16 Tom Tromey <tromey@redhat.com>
4187 * macrotab.h: (macro_define_special): Declare.
4188 (enum macro_special_kind): New.
4189 (struct macro_definition) <argc, replacement>: Update comments.
4190 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4191 (macro_define_object_internal): New function.
4192 (macro_define_object): Use it.
4193 (macro_define_special): New function.
4194 (fixup_definition): New function.
4195 (macro_lookup_definition, foreach_macro_in_scope)
4196 (foreach_macro): Use fixup_definition.
4197 * macroexp.h (macro_stringify): Declare.
4198 * macroexp.c (free_buffer_return_text): New function.
4199 (stringify): Constify "arg".
4200 (macro_stringify): New function.
4201 * dwarf2read.c (macro_start_file): Call macro_define_special.
4203 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
4204 Maciej W. Rozycki <macro@mips.com>
4206 * breakpoint.h (bp_location): Add related_address member.
4207 * inferior.h (get_return_value): Take a pointer to struct value
4208 instead of struct type for the function requested.
4209 * value.h (using_struct_return): Likewise.
4210 * gdbarch.sh (return_value): Take a pointer to struct value
4211 instead of struct type for the function requested.
4212 * breakpoint.c (set_breakpoint_location_function): Initialize
4213 related_address for bp_gnu_ifunc_resolver breakpoints.
4214 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4215 requested function's address to gdbarch_return_value.
4216 * eval.c (evaluate_subexp_standard): Pass the requested
4217 function's address to using_struct_return.
4218 * infcall.c (call_function_by_hand): Pass the requested
4219 function's address to using_struct_return and
4220 gdbarch_return_value.
4221 * infcmd.c (get_return_value): Take a pointer to struct value
4222 instead of struct type for the function requested.
4223 (print_return_value): Update accordingly.
4224 (finish_command_continuation): Likewise.
4225 * stack.c (return_command): Pass the requested function's
4226 address to using_struct_return and gdbarch_return_value.
4227 * value.c (using_struct_return): Take a pointer to struct value
4228 instead of struct type for the function requested. Pass the
4229 requested function's address to gdbarch_return_value.
4230 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4231 New function_value member, replacing function_type.
4232 (bpfinishpy_dealloc): Update accordingly.
4233 (bpfinishpy_pre_stop_hook): Likewise.
4234 (bpfinishpy_init): Likewise. Record the requested function's
4236 * mips-tdep.c (mips_fval_reg): New enum.
4237 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4238 words put in GP registers.
4239 (mips_o64_push_dummy_call): Update a comment.
4240 (mips_o32_return_value): Take a pointer to struct value instead
4241 of struct type for the function requested and use it to check if
4242 using the MIPS16 calling convention. Return the designated
4243 general purpose registers for floating-point values returned in
4245 (mips_o64_return_value): Likewise.
4246 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4247 (ppc_sysv_abi_broken_return_value): Likewise.
4248 (ppc64_sysv_abi_return_value): Likewise.
4249 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4250 value instead of struct type for the function requested.
4251 * amd64-tdep.c (amd64_return_value): Likewise.
4252 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4253 * arm-tdep.c (arm_return_value): Likewise.
4254 * avr-tdep.c (avr_return_value): Likewise.
4255 * bfin-tdep.c (bfin_return_value): Likewise.
4256 * cris-tdep.c (cris_return_value): Likewise.
4257 * frv-tdep.c (frv_return_value): Likewise.
4258 * h8300-tdep.c (h8300_return_value): Likewise.
4259 (h8300h_return_value): Likewise.
4260 * hppa-tdep.c (hppa32_return_value): Likewise.
4261 (hppa64_return_value): Likewise.
4262 * i386-tdep.c (i386_return_value): Likewise.
4263 * ia64-tdep.c (ia64_return_value): Likewise.
4264 * iq2000-tdep.c (iq2000_return_value): Likewise.
4265 * lm32-tdep.c (lm32_return_value): Likewise.
4266 * m32c-tdep.c (m32c_return_value): Likewise.
4267 * m32r-tdep.c (m32r_return_value): Likewise.
4268 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4269 * m68k-tdep.c (m68k_return_value): Likewise.
4270 (m68k_svr4_return_value): Likewise.
4271 * m88k-tdep.c (m88k_return_value): Likewise.
4272 * mep-tdep.c (mep_return_value): Likewise.
4273 * microblaze-tdep.c (microblaze_return_value): Likewise.
4274 * mn10300-tdep.c (mn10300_return_value): Likewise.
4275 * moxie-tdep.c (moxie_return_value): Likewise.
4276 * mt-tdep.c (mt_return_value): Likewise.
4277 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4278 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4279 (ppc_sysv_abi_broken_return_value): Likewise.
4280 (ppc64_sysv_abi_return_value): Likewise.
4281 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4282 * rl78-tdep.c (rl78_return_value): Likewise.
4283 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4284 * rx-tdep.c (rx_return_value): Likewise.
4285 * s390-tdep.c (s390_return_value): Likewise.
4286 * score-tdep.c (score_return_value): Likewise.
4287 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4288 (sh_return_value_fpu): Likewise.
4289 * sh64-tdep.c (sh64_return_value): Likewise.
4290 * sparc-tdep.c (sparc32_return_value): Likewise.
4291 * sparc64-tdep.c (sparc64_return_value): Likewise.
4292 * spu-tdep.c (spu_return_value): Likewise.
4293 * tic6x-tdep.c (tic6x_return_value): Likewise.
4294 * v850-tdep.c (v850_return_value): Likewise.
4295 * vax-tdep.c (vax_return_value): Likewise.
4296 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4297 * xtensa-tdep.c (xtensa_return_value): Likewise.
4298 * gdbarch.c: Regenerate.
4299 * gdbarch.h: Regenerate.
4301 2012-05-15 Tom Tromey <tromey@redhat.com>
4303 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4305 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4307 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4308 of command in two error message.
4310 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4312 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4314 2012-05-15 Joel Brobecker <brobecker@adacore.com>
4316 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4318 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4320 * NEWS (show auto-load scripts-directory): Add forgotten command.
4322 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4324 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4327 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4329 * amd64-tdep.c: Include features/i386/x32.c and
4330 features/i386/x32-avx.c.
4331 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4332 initialize_tdesc_x32_avx.
4334 2012-05-14 Stan Shebs <stan@codesourcery.com>
4337 * breakpoint.h (enum bptype): New type bp_dprintf.
4338 (struct breakpoint): New field extra_string.
4339 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4340 (create_breakpoint): Add extra_string arg.
4341 * breakpoint.c (dprintf_breakpoint_ops): New.
4342 (is_breakpoint): Add bp_dprintf.
4343 (bpstat_what): Add dprintf case.
4344 (bptype_string): Ditto.
4345 (print_one_breakpoint_location): Ditto.
4346 (init_bp_location): Ditto.
4347 (bkpt_print_mention): Ditto.
4348 (dprintf_style_enums): New array.
4349 (dprintf_style): New global.
4350 (dprintf_function): New global.
4351 (dprintf_channel): New global.
4352 (update_dprintf_command_list): New function.
4353 (update_dprintf_commands): New function.
4354 (init_breakpoint_sal): Add extra_string argument, handle it.
4355 (create_breakpoint_sal): Add extra_string argument.
4356 (create_breakpoints_sal): Add extra_string argument, update callers.
4357 (find_condition_and_thread): Add extra argument.
4358 (create_breakpoint): Add extra_string argument, record it.
4359 (dprintf_command): New function.
4360 (break_command_1): Add arg to create_breakpoint call.
4361 (handle_gnu_v3_exceptions): Ditto.
4362 (trace_command): Ditto.
4363 (ftrace_command): Ditto.
4364 (strace_command): Ditto.
4365 (bkpt_print_mention): Add dprintf case.
4366 (create_breakpoint_sal_default): Add extra_string argument.
4367 (_initialize_breakpoint): Add new commands.
4368 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4369 * python/py-breakpoint.c (bppy_init): Ditto.
4370 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4372 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4374 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4376 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4378 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4381 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4383 Add a new function gdb.find_pc_line to the Python API.
4384 * NEWS (Python Scripting): Add entry about the new function.
4385 * python/python.c (gdbpy_find_pc_line): New function which
4386 implements gdb.find_pc_line.
4387 (GdbMethods): Add entry for the new function.
4389 2012-05-12 Pedro Alves <palves@redhat.com>
4391 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4392 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4394 2012-05-12 Eli Zaretskii <eliz@gnu.org>
4396 * inferior.c: Include completer.h
4397 (initialize_inferiors): Set completer of add-inferior to
4400 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4402 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4403 gdbarch_ptr_bit for x32 core dump.
4405 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4407 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4408 and features/i386/x32-avx-linux.c.
4410 2012-05-11 Stan Shebs <stan@codesourcery.com>
4411 Kwok Cheung Yeung <kcy@codesourcery.com>
4413 * NEWS: Describe new info os commands.
4414 * common/linux-osdata.c (PID_T, TIME_T): Define.
4415 (MAX_PID_T_STRLEN): New.
4416 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4418 (command_from_pid): Add comment. Change to use PID_T.
4419 (commandline_from_pid): Change to use PID_T.
4420 (user_from_pid): Add comment.
4421 (get_process_owner): Add comment. Change to use PID_T and
4423 (get_number_of_cpu_cores): Add comment.
4424 (get_cores_used_by_process): Add comment. Change to use PID_T and
4426 (linux_xfer_osdata_processes): Change to use PID_T and
4428 (compare_processes): New function.
4429 (linux_xfer_osdata_processgroups): New function.
4430 (linux_xfer_osdata_threads): Change to use PID_T.
4431 (linux_xfer_osdata_fds): New function.
4432 (format_socket_state, print_sockets): New functions.
4433 (union socket_addr): New union.
4434 (linux_xfer_osdata_isockets): New function.
4435 (time_from_time_t, group_from_gid): New functions.
4436 (linux_xfer_osdata_shm): New function.
4437 (linux_xfer_osdata_sem): New function.
4438 (linux_xfer_osdata_msg): New function.
4439 (linux_xfer_osdata_modules): New function.
4440 (osdata_table): Add new entries.
4441 * common/buffer.c (buffer_xml_printf): Add support for long and
4442 long long format specifiers.
4444 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4446 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4447 (tdesc_x32_avx_linux): Likewise.
4449 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4451 Implement multi-component --with-auto-load-dir.
4452 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4454 (--with-auto-load-safe-path): Update the default value description.
4455 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4457 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4458 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4459 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4460 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4461 "set auto-load scripts-directory".
4462 * config.in: Regenerate.
4463 * configure: Regenerate.
4464 * configure.ac (--with-auto-load-dir): New configure option.
4465 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4467 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4469 Provide $ddir substitution for --with-auto-load-safe-path.
4470 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4472 * auto-load.c: Include observer.h.
4473 (auto_load_safe_path_vec_update): Call substitute_path_component for
4474 each component. New variable ddir_subst.
4475 (auto_load_gdb_datadir_changed): New function.
4476 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4477 AUTO_LOAD_SAFE_PATH. New comment.
4478 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4479 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4480 * config.in: Regenerate.
4481 * configure: Regenerate.
4482 * configure.ac (--auto-load-safe-path): Rename
4483 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4484 GDB_DATADIR/auto-load.
4485 * defs.h (substitute_path_component): New declaration.
4486 * top.c: Include observer.h.
4487 (set_gdb_datadir): New function.
4488 (init_main): Install it for "set data-directory".
4489 * utils.c (substitute_path_component): New function.
4491 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4493 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4494 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4495 DEBUG_FILE_DIRECTORY. Handle multiple components of
4496 DEBUG_FILE_DIRECTORY.
4498 2012-05-10 Tom Tromey <tromey@redhat.com>
4500 * dwarf2read.c (recursively_write_psymbols): New function.
4501 (write_psymtabs_to_index): Use it.
4503 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4505 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4506 (load_partial_comp_unit): Update.
4507 (queue_comp_unit): Add argument 'pretend_language'.
4508 (process_queue): Update.
4509 (psymtab_to_symtab_1): Skip dependencies that have a user.
4510 (load_partial_comp_unit_reader): Give meaning to the 'data'
4512 (load_full_comp_unit): Add 'pretend_language' argument.
4513 (process_full_comp_unit): Add 'pretend_language' argument. Set
4515 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4517 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4518 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4520 (prepare_one_comp_unit): Add 'pretend_language' argument.
4522 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4523 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4524 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4525 (dw2_do_instantiate_symtab): Check whether symtab was read in
4527 (dw2_instantiate_symtab): Add assertion. Call
4528 process_cu_includes.
4529 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4530 (partial_symtab_p): New typedef.
4531 (set_partial_user): New function.
4532 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4533 (scan_partial_symbols): Add imported CU to imported_symtabs.
4534 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4535 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4536 (get_symtab, recursively_compute_inclusions)
4537 (compute_symtab_includes, process_cu_includes)
4538 (process_imported_unit_die): New functions.
4539 (process_die) <DW_TAG_imported_unit>: New case.
4540 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4542 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4544 (struct partial_die_info) <locdesc>: Remove.
4546 (process_psymtab_comp_unit): Add 'read_partial' argument.
4548 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4549 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4550 (add_partial_symbol): Update.
4551 (process_die): Handle DW_TAG_partial_unit.
4552 (read_file_scope): Update comment.
4553 (load_partial_dies): Handle DW_TAG_imported_unit.
4554 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4555 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4557 2012-05-10 Tom Tromey <tromey@redhat.com>
4559 * cc-with-dwz.sh: New file.
4561 2012-05-10 Tom Tromey <tromey@redhat.com>
4563 * symtab.h (struct symtab) <includes, user>: New fields.
4564 * block.h (struct block_iterator) <d, idx, which>: New fields.
4565 * block.c (initialize_block_iterator, find_iterator_symtab)
4566 (block_iterator_step, block_iter_name_step)
4567 (block_iter_match_step): New functions.
4568 (block_iterator_first, block_iterator_next)
4569 (block_iter_name_first, block_iter_name_next)
4570 (block_iter_match_first, block_iter_match_next): Rewrite.
4571 (get_block_symtab): New function.
4573 2012-05-10 Tom Tromey <tromey@redhat.com>
4575 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4577 * jit.c (finalize_symtab): Use allocate_global_block,
4579 * buildsym.c (finish_block_internal): New function, from old
4581 (finish_block): Rewrite.
4582 (end_symtab): Use finish_block_internal, set_block_symtab.
4583 * block.h (struct global_block): New.
4584 (allocate_global_block, set_block_symtab): Declare.
4585 * block.c (allocate_global_block, set_block_symtab): New
4588 2012-05-10 Tom Tromey <tromey@redhat.com>
4590 * psymtab.c (partial_map_expand_apply): Add assertion.
4591 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4592 (psymtab_to_symtab): Find unshared psymtab.
4593 (dump_psymtab): Print including psymtabs.
4594 (recursively_search_psymtabs): New function.
4595 (expand_symtabs_matching_via_partial): Use it.
4596 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4598 (enum psymtab_search_status): New.
4600 2012-05-10 Tom Tromey <tromey@redhat.com>
4602 * tracepoint.c (scope_info): Update.
4603 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4604 (find_pc_sect_symtab, search_symbols)
4605 (default_make_symbol_completion_list_break_on)
4606 (make_file_symbol_completion_list): Update.
4607 * symmisc.c (dump_symtab_1): Update.
4608 * stack.c (print_frame_args, iterate_over_block_locals)
4609 (print_frame_labels, iterate_over_block_arg_vars): Update.
4610 * python/py-block.c (block_object) <dict>: Remove.
4612 <iter>: Change type.
4613 (blpy_iter): Update.
4614 (blpy_block_syms_iternext): Update.
4615 * psymtab.c (map_block): Use block iterators.
4616 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4617 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4618 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4619 * infrun.c (check_exception_resume): Update.
4620 * cp-support.c (make_symbol_overload_list_block): Update.
4621 * coffread.c (patch_opaque_types): Update.
4622 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4623 * block.h (struct block_iterator): New.
4624 (block_iterator_first, block_iterator_next, block_iter_name_first)
4625 (block_iter_name_next, block_iter_match_first)
4626 (block_iter_match_next): Declare.
4627 (ALL_BLOCK_SYMBOLS): Redefine.
4628 * block.c (block_iterator_first, block_iterator_next)
4629 (block_iter_name_first, block_iter_name_next)
4630 (block_iter_match_first, block_iter_match_next): New functions.
4631 * ada-lang.c (ada_add_block_symbols)
4632 (ada_make_symbol_completion_list): Use block iterator.
4634 2012-05-10 Tom Tromey <tromey@redhat.com>
4636 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4637 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4638 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4639 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4640 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4643 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4645 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4646 print-file-var-lib2.c, print-file-var-main.c and
4647 print-file-var.exp (located in gdb/testsuite/gdb.base).
4649 2012-05-10 Joel Brobecker <brobecker@adacore.com>
4651 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4652 try locating the symbol in the symbol's own objfile first, before
4653 extending the search to all objfiles.
4654 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4655 out of lookup_symbol_aux_symtabs.
4656 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4657 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4658 Do not search EXCLUDE_OBJFILE.
4659 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4660 (lookup_symbol_global): Search for matches in the block's objfile
4661 first, before searching all other objfiles.
4663 2012-05-10 Tristan Gingold <gingold@adacore.com>
4665 * printcmd.c (set_command): Add pre/post inc/dec.
4667 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
4669 * gdb.1: Document -ex option.
4671 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4673 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4674 * inferior.h (AT_SYMBOL): Delete.
4676 2012-05-09 Joel Brobecker <brobecker@adacore.com>
4678 * mips-tdep.c (mips_push_dummy_code): New function.
4679 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4680 ON_STACK and install mips_push_dummy_code as our gdbarch
4681 push_dummy_code routine.
4683 2012-05-09 Pedro Alves <palves@redhat.com>
4685 * target.c (set_maintenance_target_async_permitted): Rename to ...
4686 (set_target_async_command): ... this.
4687 (show_maintenance_target_async_permitted): Rename to ...
4688 (show_target_async_command): ... this.
4689 (initialize_targets): Adjust.
4691 2012-05-08 Doug Evans <dje@google.com>
4693 * go-exp.y (classify_name): Add missing assignment of fields of
4696 2012-05-08 Eli Zaretskii <eliz@gnu.org>
4698 Display the ">" prompt in interactive mode while reading canned
4699 commands, even when the current interpreter is MI.
4701 * interps.c (interp_set_temp): New function.
4703 * interps.h (interp_set_temp): Add prototype.
4705 * cli/cli-script.c (restore_interp): New cleanup function.
4706 (read_command_lines): Temporarily override the current interpreter
4707 with CLI and arrange for restoring the original one.
4709 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
4711 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
4713 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4715 * probe.c (parse_probes): Move conditional to check for
4716 debuginfo files from here...
4717 * stap-probe.c (stap_get_probes): ... to here.
4719 2012-05-07 Mark Kettenis <kettenis@gnu.org>
4720 H.J. Lu <hongjiu.lu@intel.com>
4722 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
4723 `movl %esp, %ebp' for the X32 ABI.
4725 2012-05-07 Tom Tromey <tromey@redhat.com>
4727 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
4729 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
4730 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
4731 (dwarf_stack_op_name): Remove.
4732 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
4733 (decode_locdesc): Use get_DW_OP_name.
4734 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
4735 (dwarf2_compile_expr_to_ax): Likewise.
4736 (disassemble_dwarf_expression): Likewise.
4737 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
4739 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
4741 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
4742 (sh_linux_sigtramp_cache): New function.
4743 (sh_linux_sigreturn_init): New function.
4744 (sh_linux_rt_sigreturn_init): New function.
4745 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
4747 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
4749 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
4750 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
4751 (sh_linux_init_abi): Add init calls to register new tramp_frame
4752 definitions under 32-bit SH, update comments.
4754 2012-05-07 Pedro Alves <palves@redhat.com>
4758 * amd64-linux-tdep.c: Include glibc-tdep.h.
4759 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
4760 gdbarch_skip_solib_resolver callback.
4762 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4764 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
4765 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
4766 (show_auto_load_safe_path): Check any-directory by comparison with "/".
4767 (add_auto_load_safe_path): Change the error message.
4768 (_initialize_auto_load): Change the "safe-path" help text.
4769 * configure: Regenerate
4770 * configure.ac (--without-auto-load-safe-path): Set
4771 WITH_AUTO_LOAD_SAFE_PATH to /.
4773 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
4775 * stap-probe.h: Do not include unecessary `probe.h'.
4777 2012-05-05 Alan Modra <amodra@gmail.com>
4779 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
4780 bfd_und_section_ptr.
4781 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
4782 and bfd_com_section_ptr.
4784 2012-05-04 Joel Brobecker <brobecker@adacore.com>
4786 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
4788 2012-05-04 Joel Brobecker <brobecker@adacore.com>
4790 * windows-nat.h (segment_register_p_ftype): New typedef.
4791 (windows_set_segment_register_p): Add declaration.
4792 * windows-nat.c (segment_register_p): New static global.
4793 (windows_set_segment_register_p): New function.
4794 (do_windows_fetch_inferior_registers): Add special handling
4795 for segment registers.
4796 * amd64-windows-nat.c: #include "amd64-tdep.h".
4797 (amd64_windows_segment_register_p): New function.
4798 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
4799 * i386-windows-nat.c: #include "i386-tdep.h".
4800 (i386_windows_segment_register_p): New function.
4801 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
4803 2012-05-04 Tristan Gingold <gingold@adacore.com>
4805 * printcmd.c (set_command): Emit a warning if the expression is not
4808 2012-05-03 Joel Brobecker <brobecker@adacore.com>
4810 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
4813 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4815 * stap-probe.c (stap_is_operator): Change declaration.
4816 (stap_get_opcode): Change return value.
4817 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
4818 `stap_parse_argument_1'.
4820 2012-05-03 Pedro Alves <pedro@codesourcery.com>
4822 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
4825 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
4827 Add two new methods global_block and static_block to gdb.Symtab
4829 * NEWS (Python scripting): Add entry about the new methods.
4830 * python/py-symtab.c (stpy_global_block): New function which
4831 implements the gdb.Symtab.global_block() method.
4832 (stpy_static_block): New function which implements the
4833 gdb.Symtab.static_block() method.
4834 (symtab_object_methods): Add entries for the two new methods.
4836 2012-05-03 Doug Evans <dje@google.com>
4838 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
4841 2012-05-03 Yao Qi <yao@codesourcery.com>
4843 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
4845 (i386_process_record): Ditto.
4847 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4849 * infcall.c (unwind_on_signal_p): Make static.
4851 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4853 * sol-thread.c (solaris_pid_to_str): Make static.
4854 (_initialize_sol_thread): Add prototype.
4856 2012-05-02 Joel Brobecker <brobecker@adacore.com>
4858 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
4860 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
4862 * MAINTAINERS: Remove myself.
4864 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4866 Fix --without-auto-load-safe-path for MS-Windows host platform.
4867 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
4869 2012-05-02 Eli Zaretskii <eliz@gnu.org>
4871 * gdb_curses.h: Undefine KEY_EVENT before including curses
4872 headers. Move "#undef MOUSE_MOVED" before any curses header
4875 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4877 * features/i386/i386-mmx-linux.c: Regenerate.
4878 * features/rs6000/powerpc-32.c: Likewise.
4879 * features/rs6000/powerpc-32l.c: Likewise.
4880 * features/rs6000/powerpc-403.c: Likewise.
4881 * features/rs6000/powerpc-403gc.c: Likewise.
4882 * features/rs6000/powerpc-405.c: Likewise.
4883 * features/rs6000/powerpc-505.c: Likewise.
4884 * features/rs6000/powerpc-601.c: Likewise.
4885 * features/rs6000/powerpc-602.c: Likewise.
4886 * features/rs6000/powerpc-603.c: Likewise.
4887 * features/rs6000/powerpc-604.c: Likewise.
4888 * features/rs6000/powerpc-64.c: Likewise.
4889 * features/rs6000/powerpc-64l.c: Likewise.
4890 * features/rs6000/powerpc-750.c: Likewise.
4891 * features/rs6000/powerpc-860.c: Likewise.
4892 * features/rs6000/powerpc-e500.c: Likewise.
4893 * features/rs6000/powerpc-e500l.c: Likewise.
4894 * features/rs6000/powerpc-isa205-32l.c: Likewise.
4895 * features/rs6000/powerpc-isa205-64l.c: Likewise.
4896 * features/rs6000/rs6000.c: Likewise.
4898 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4900 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
4902 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
4903 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
4904 (stap_parse_argument) <e>: Likewise.
4905 (handle_stap_probe) <byte_order>: Likewise.
4907 2012-04-30 Doug Evans <dje@google.com>
4909 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
4910 init_and_read_dies_worker. All callers updated.
4911 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
4912 replaced with init_cutu_and_read_dies.
4913 (load_partial_comp_unit): Pass 1 for use_existing_cu.
4914 (find_partial_die): Remove FIXME. Don't free current CU.
4916 2012-04-30 Sterling Augustine <saugustine@google.com>
4918 * contrib: New directory.
4919 * contrib/test_pubnames_and_indexes.py: New file.
4921 2012-04-30 Doug Evans <dje@google.com>
4923 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
4924 All callers updated.
4925 (init_cu_die_reader): Verify the section is non-empty.
4926 (dwarf_decode_line_header): Don't dereference section->asection
4927 until we know the section is present.
4929 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
4931 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
4934 2012-04-29 Yao Qi <yao@codesourcery.com>
4936 * gdb-code-style.el: New hook gdb-markup-hook
4937 and gdb-comment-hook.
4939 2012-04-28 Doug Evans <dje@google.com>
4941 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
4942 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
4944 * symfile.h (dwarf2_debug_sections): New member addr.
4945 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
4946 (ctx_no_get_addr_index): New function.
4947 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
4948 (ctx_no_get_addr_index): Declare.
4949 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
4950 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
4951 (dwarf_expr_ctx_funcs): Update.
4952 (needs_get_addr_index): New function.
4953 (needs_frame_ctx_funcs): Update.
4954 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
4955 * dwarf2read.c: #include "gdbcore.h".
4956 (dwarf2_per_objfile): New members addr, dwo_files.
4957 (dwarf2_elf_names): Add entry for addr.
4958 (struct dwo_section_names): New type.
4959 (dwo_section_names): New static global.
4960 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
4961 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
4962 old debug_types_section member updated to use this.
4963 Rename member debug_types_section to info_or_types_section,
4965 (signatured_type): Rename member type_offset to type_offset_in_tu,
4966 all uses updated. New member type_offset_in_section.
4967 (struct dwo_sections): New type.
4968 (struct dwo_unit): New type.
4969 (struct dwo_file): New type.
4970 (die_reader_specs): New member dwo_file.
4971 (dwarf2_locate_sections): Watch for .debug_addr.
4972 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
4973 (dwarf2_read_section): Get bfd of section from bfd's asection,
4975 (create_cus_from_index): Initialize the_cu->info_or_types_section.
4976 (create_signatured_type_table_from_index): Initialize
4977 sig_type->info_or_types_section.
4978 (dw2_get_file_names): Statement lists for type units with DWO files
4979 live in the DWO file.
4980 (create_debug_types_hash_table): New function.
4981 (create_all_type_units): Rewrite.
4982 (init_cu_die_reader): New arg dwo_file, all callers updated.
4983 (init_and_read_dies_worker): Get section from
4984 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
4985 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
4986 continue reading the CU/TU from there.
4987 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
4988 updated. Get section from this_cu->info_or_types_section.
4989 (create_all_comp_units): Initialize this_cu->info_or_types_section.
4990 (skip_one_die): New cases DW_FORM_GNU_addr_index,
4991 DW_FORM_GNU_str_index.
4992 (hash_dwo_file, eq_dwo_file): New functions.
4993 (allocate_dwo_file_hash_table): New function.
4994 (hash_dwo_unit, eq_dwo_unit): New functions.
4995 (allocate_dwo_unit_table): New function.
4996 (dwarf2_locate_dwo_sections): New function.
4997 (struct create_dwo_info_table_data): New type.
4998 (create_debug_info_hash_table_reader): New function.
4999 (create_debug_info_hash_table): New function.
5000 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5001 (lookup_dwo_file): New function.
5002 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5003 (free_dwo_file, free_dwo_file_cleanup): New functions.
5004 (free_dwo_file_from_slot, free_dwo_files): New functions.
5005 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5006 (dwarf2_record_block_ranges): Ditto.
5007 (read_partial_die): Ditto.
5008 (process_enumeration_scope): Update to use type_offset_in_section.
5009 (read_full_die_1): New function.
5010 (read_full_die): Rewrite.
5011 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5012 DW_FORM_GNU_str_index.
5013 (read_addr_index_1, read_addr_index): New functions.
5014 (read_addr_index_from_leb128): New function.
5015 (struct dwarf2_read_addr_index_data): New type.
5016 (dwarf2_read_addr_index_reader): New function.
5017 (dwarf2_read_addr_index): New function.
5018 (read_str_index): New function.
5019 (leb128_size): New function.
5020 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5021 If processing a type unit from a DWO file, get the line section
5023 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5024 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5025 DW_FORM_GNU_str_index.
5026 (lookup_die_type): Check whether section offset of type's die is
5027 known before looking it up. Remove assert. Condition can
5028 legimately happen for inter-cu type references.
5029 (dwarf_attr_name): Handle Fission attributes.
5030 (dwarf_form_name): Handle Fission forms.
5031 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5032 DW_FORM_GNU_str_index.
5033 (follow_die_sig): Update to use type_offset_in_section.
5034 (decode_locdesc): New case DW_OP_GNU_addr_index.
5035 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5036 DW_FORM_GNU_str_index.
5037 (cu_debug_loc_section): New function.
5038 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5039 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5040 Free DWO files if present.
5041 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5043 Refactor DIE reading.
5044 * dwarf2read.c (dwarf2_per_objfile): Replace members
5045 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5046 (die_reader_specs): New member "die_section". Temporarily make
5047 member "buffer" non-const, pending constifying all info_ptr uses.
5048 (die_reader_func_ftype): New typedef.
5049 (dw2_get_file_names_reader): New function.
5050 (dw2_get_file_names): Rewrite.
5051 (read_and_check_type_unit_head): Rename arg type_offset to
5053 (create_all_type_units): Improve debugging message.
5054 Improve dummy type unit check.
5055 (init_cu_die_reader): New arg "section". All callers updated.
5056 (init_and_read_dies_worker): New function.
5057 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5058 (init_cutu_and_read_dies_no_follow): New function.
5059 (init_cutu_and_read_dies_simple): New function.
5060 (process_psymtab_comp_unit_reader): New function.
5061 (process_psymtab_comp_unit): Delete args section,
5062 is_debug_types_section. Rewrite. All callers updated.
5063 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5064 All callers updated. Rewrite.
5065 (load_partial_comp_unit_reader): New function.
5066 (load_partial_comp_unit): Rewrite.
5067 (skip_children): New arg reader. Delete args buffer, cu.
5068 All callers updated.
5069 (skip_one_die): New arg reader. Delete args buffer, cu.
5070 All callers updated.
5071 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5072 All callers updated.
5073 (load_full_comp_unit_reader): New function.
5074 (load_full_comp_unit): Rewrite.
5075 (read_comp_unit): Delete.
5076 (read_die_and_children_1): Delete, contents moved ...
5077 (read_die_and_children): ... here.
5078 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5079 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5080 All callers updated.
5081 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5082 All callers updated.
5083 (find_partial_die): Rewrite load_all_dies support.
5084 (read_attribute_value): New arg reader. Delete args abfd, cu.
5085 All callers updated.
5086 (read_attribute): New arg reader. Delete args abfd, cu.
5087 All callers updated.
5088 (load_full_type_unit): Add assert.
5089 (read_signatured_type_reader): New function.
5090 (read_signatured_type): Rewrite.
5091 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5092 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5093 All callers updated. Set per_cu->cu = NULL after freeing it.
5094 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5095 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5096 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5097 (set_die_type): Update.
5098 (get_die_type_at_offset): Update.
5099 (read_file_scope): Call prepare_one_comp_unit.
5100 (read_type_unit_scope): Ditto.
5101 (prepare_one_comp_unit): Set producer if present.
5103 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5105 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5106 gettext function on `error'.
5108 2012-04-27 Doug Evans <dje@google.com>
5110 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5113 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5114 Tom Tromey <tromey@redhat.com>
5116 * breakpoint.c (struct breakpoint_objfile_data)
5117 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5118 <exception_probes>: New fields.
5119 (free_breakpoint_probes): New function.
5120 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5121 `_Unwind_DebugHook'.
5122 (create_exception_master_breakpoint): Likewise.
5123 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5124 * infrun.c: Including necessary header files for handling SystemTap
5126 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5127 via SystemTap probes.
5128 (check_exception_resume): Remove `func' argument. Handle exception
5129 unwinding breakpoint set via a SystemTap probe.
5130 (insert_exception_resume_from_probe): New function.
5132 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5133 Tom Tromey <tromey@redhat.com>
5134 Jan Kratochvil <jan.kratochvil@redhat.com>
5136 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5137 (COMMON_OBS): Likewise.
5138 (HFILES_NO_SRCDIR): Add `probe'.
5139 * NEWS: Mention support for static and SystemTap probes.
5140 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5141 SystemTap probes' arguments parser.
5142 * arm-linux-tdep.c: Including headers needed to perform the parsing
5143 of SystemTap probes' arguments.
5144 (arm_stap_is_single_operand): New function.
5145 (arm_stap_parse_special_token): Likewise.
5146 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5147 probes' arguments parser.
5148 * ax-gdb.c (require_rvalue): Removing static declaration.
5149 (gen_expr): Likewise.
5150 * ax-gdb.h (gen_expr): Declaring function.
5151 (require_rvalue): Likewise.
5152 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5153 (bkpt_probe_breakpoint_ops): New variable.
5154 (momentary_breakpoint_from_master): Set the `probe' value.
5155 (add_location_to_breakpoint): Likewise.
5156 (break_command_1): Using proper breakpoint_ops according to the
5157 argument passed by the user in the command line.
5158 (bkpt_probe_insert_location): New function.
5159 (bkpt_probe_remove_location): Likewise.
5160 (bkpt_probe_create_sals_from_address): Likewise.
5161 (bkpt_probe_decode_linespec): Likewise.
5162 (tracepoint_probe_create_sals_from_address): Likewise.
5163 (tracepoint_probe_decode_linespec): Likewise.
5164 (tracepoint_probe_breakpoint_ops): New variable.
5165 (trace_command): Using proper breakpoint_ops according to the
5166 argument passed by the user in the command line.
5167 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5168 static probes on breakpoints and tracepoints.
5169 * breakpoint.h (struct bp_location) <probe>: New field.
5170 * cli-utils.c (skip_spaces_const): New function.
5171 (extract_arg): Likewise.
5172 * cli-utils.h (skip_spaces_const): Likewise.
5173 (extract_arg): Likewise.
5174 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5175 * configure.ac: Append `stap-probe.o' to be generated when ELF
5177 * configure: Regenerate.
5178 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5179 * elfread.c: Include `probe.h' and `arch-utils.h'.
5180 (probe_key): New variable.
5181 (elf_get_probes): New function.
5182 (elf_get_probe_argument_count): Likewise.
5183 (elf_evaluate_probe_argument): Likewise.
5184 (elf_compile_to_ax): Likewise.
5185 (elf_symfile_relocate_probe): Likewise.
5186 (stap_probe_key_free): Likewise.
5187 (elf_probe_fns): New variable.
5188 (elf_sym_fns): Add `sym_probe_fns' value.
5189 (elf_sym_fns_lazy_psyms): Likewise.
5190 (elf_sym_fns_gdb_index): Likewise.
5191 (_initialize_elfread): Initialize objfile cache for static
5193 * gdb_vecs.h (struct probe): New forward declaration.
5194 (probe_p): New VEC declaration.
5195 * gdbarch.c: Regenerate.
5196 * gdbarch.h: Regenerate.
5197 * gdbarch.sh (stap_integer_prefix): New variable.
5198 (stap_integer_suffix): Likewise.
5199 (stap_register_prefix): Likewise.
5200 (stap_register_suffix): Likewise.
5201 (stap_register_indirection_prefix): Likewise.
5202 (stap_register_indirection_suffix): Likewise.
5203 (stap_gdb_register_prefix): Likewise.
5204 (stap_gdb_register_suffix): Likewise.
5205 (stap_is_single_operand): New function.
5206 (stap_parse_special_token): Likewise.
5207 (struct stap_parse_info): Forward declaration.
5208 * i386-tdep.c: Including headers needed to perform the parsing
5209 of SystemTap probes' arguments.
5210 (i386_stap_is_single_operand): New function.
5211 (i386_stap_parse_special_token): Likewise.
5212 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5213 probes' arguments parser.
5214 * i386-tdep.h (i386_stap_is_single_operand): New function.
5215 (i386_stap_parse_special_token): Likewise.
5216 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5217 * mipsread.c (ecoff_sym_fns): Likewise.
5218 * objfiles.c (objfile_relocate1): Support relocation for static
5220 * parse.c (prefixify_expression): Remove static declaration.
5221 (initialize_expout): Likewise.
5222 (reallocate_expout): Likewise.
5223 * parser-defs.h (initialize_expout): Declare function.
5224 (reallocate_expout): Likewise.
5225 (prefixify_expression): Likewise.
5226 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5227 of SystemTap probes' arguments.
5228 (ppc_stap_is_single_operand): New function.
5229 (ppc_stap_parse_special_token): Likewise.
5230 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5231 probes' arguments parser.
5232 * probe.c: New file, for generic statically defined probe support.
5233 * probe.h: Likewise.
5234 * s390-tdep.c: Including headers needed to perform the parsing of
5235 SystemTap probes' arguments.
5236 (s390_stap_is_single_operand): New function.
5237 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5238 probes' arguments parser.
5239 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5240 * stap-probe.c: New file, for SystemTap probe support.
5241 * stap-probe.h: Likewise.
5242 * symfile.h: Include `gdb_vecs.h'.
5243 (struct sym_probe_fns): New struct.
5244 (struct sym_fns) <sym_probe_fns>: New field.
5245 * symtab.c (init_sal): Initialize `probe' field.
5246 * symtab.h (struct probe): Forward declaration.
5247 (struct symtab_and_line) <probe>: New field.
5248 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5250 (stop_tracing): Likewise.
5251 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5253 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5254 Tom Tromey <tromey@redhat.com>
5256 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5257 and to compile agent expressions.
5258 * infrun.c (siginfo_make_value): New argument `ignore'.
5259 (siginfo_funcs): New struct.
5260 (_initialize_infrun): New argument when calling
5261 `create_internalvar_type_lazy'.
5262 * thread.c (thread_id_make_value): New argument `ignore'.
5263 (thread_funcs): New struct.
5264 (_initialize_thread): New argument when calling
5265 `create_internalvar_type_lazy'.
5266 * tracepoint.c (sdata_make_value): New argument `ignore'.
5267 (sdata_funcs): New struct.
5268 (_initialize_tracepoint): New argument when calling
5269 `create_internalvar_type_lazy'.
5270 * value.c (make_value): New struct.
5271 (create_internalvar_type_lazy): New argument `data'.
5272 (compile_internalvar_to_ax): New function.
5273 (value_of_internalvar): Properly handling `make_value' case.
5274 (clear_internalvar): Likewise.
5275 (show_convenience): Adding `TRY_CATCH' block.
5276 * value.h (internalvar_make_value): Delete, replace by...
5277 (struct internalvar_funcs): ... this.
5278 (create_internalvar_type_lazy) <fun>: Delete argument.
5279 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5280 (compile_internalvar_to_ax): New function.
5281 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5282 (tlb_funcs): New struct.
5283 (_initialize_windows_tdep): New argument when calling
5284 `create_internalvar_type_lazy'.
5286 2012-04-27 Mark Wielaard <mjw@redhat.com>
5288 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5289 see whether it is an address or a constant offset from DW_AT_low_pc.
5290 (dwarf2_record_block_ranges): Likewise.
5291 (read_partial_die): Likewise.
5293 2012-04-26 Mark Wielaard <mjw@redhat.com>
5295 * MAINTAINERS (Write After Approval): Add myself to the list.
5297 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5299 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5300 (proc_prettyprint_signal): Likewise.
5301 (proc_prettyprint_faultset): Likewise.
5302 (proc_prettyprint_fault): Likewise.
5303 (proc_prettyprint_actionset): Likewise.
5304 (proc_prettyprint_flags): Move to new proc-flags.c section.
5305 (proc_prettyfprint_flags): New prototype.
5306 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5307 (proc_syscall, proc_cursig): Likewise.
5308 (proc_set_kill_on_last_close): Likewise.
5309 (proc_unset_kill_on_last_close): Likewise.
5310 (proc_set_watchpoint): Make static.
5311 (proc_delete_dead_threads): Likewise.
5312 (procfs_set_watchpoint): Likewise.
5313 (_initialize_procfs): Add prototype.
5314 * proc-events.c: Include proc-utils.h.
5315 (init_syscall_table): Make static.
5316 * proc-api.c (_initialize_proc_api): Add prototype.
5317 * proc-flags.c: Include proc-utils.h.
5319 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5321 * configure.ac: Add AC_ARG_PROGRAM.
5322 * configure: Regenerate.
5324 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5326 Fix DW_AT_lower_bound defaults for DWARF-4+.
5327 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5328 high. New variable low_default_is_valid. Implement DWARF-4+
5329 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5330 no default by the DWARF standard.
5332 2012-04-26 Maciej W. Rozycki <macro@mips.com>
5333 Maciej W. Rozycki <macro@codesourcery.com>
5335 * infrun.c (handle_inferior_event): Move the check for return
5336 trampolines ahead of the check for function trampolines.
5337 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5338 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5339 (mips_str_mips16_ret_stub): Likewise.
5340 (mips_str_call_fp_stub): Likewise.
5341 (mips_str_call_stub): Likewise.
5342 (mips_str_fn_stub): Likewise.
5343 (mips_str_pic): Likewise.
5344 (mips_in_frame_stub): New function.
5345 (mips_unwind_pc): Return the return address rather than the PC
5346 if the PC of an intermediate frame is inside a call thunk.
5347 (mips_is_stub_suffix): New function.
5348 (mips_is_stub_mode): Likewise.
5349 (mips_get_mips16_fn_stub_pc): Likewise.
5350 (mips_skip_mips16_trampoline_code): Update to handle all the
5351 currently generated stub types. Don't recurse into __fn_stub
5352 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5353 Use cooked register accesses.
5354 (mips_in_return_stub): Reintroduce function.
5355 (mips_skip_trampoline_code): Traverse trampolines recursively.
5356 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5358 2012-04-26 Joel Brobecker <brobecker@adacore.com>
5362 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5364 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5365 * features/arm-with-m-vfp-d16.xml: New file. Describes
5366 Cortex-M with VFPv4-sp-d16 FPU register layout.
5367 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5368 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5369 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5370 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5371 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5373 2012-04-25 Doug Evans <dje@google.com>
5375 * cli/cli-decode.c (print_doc_line): Use stream instead of
5378 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5380 * features/arm-with-iwmmxt.c: Regenerate.
5381 * features/arm-with-m-fpa-layout.c: Likewise.
5382 * features/arm-with-m.c: Likewise.
5383 * features/arm-with-neon.c: Likewise.
5384 * features/arm-with-vfpv2.c: Likewise.
5385 * features/arm-with-vfpv3.c: Likewise.
5386 * features/mips-dsp-linux.c: Likewise.
5387 * features/mips-linux.c: Likewise.
5388 * features/mips64-dsp-linux.c: Likewise.
5389 * features/mips64-linux.c: Likewise.
5390 * features/s390-linux32.c: Likewise.
5391 * features/s390-linux32v1.c: Likewise.
5392 * features/s390-linux32v2.c: Likewise.
5393 * features/s390-linux64.c: Likewise.
5394 * features/s390-linux64v1.c: Likewise.
5395 * features/s390-linux64v2.c: Likewise.
5396 * features/s390x-linux64.c: Likewise.
5397 * features/s390x-linux64v1.c: Likewise.
5398 * features/s390x-linux64v2.c: Likewise.
5399 * features/tic6x-c62x-linux.c: Likewise.
5400 * features/tic6x-c62x.c: Likewise.
5401 * features/tic6x-c64x-linux.c: Likewise.
5402 * features/tic6x-c64x.c: Likewise.
5403 * features/tic6x-c64xp-linux.c: Likewise.
5404 * features/tic6x-c64xp.c: Likewise.
5405 * target-descriptions.c: Only generate `field_type' and `type'
5406 variables when needed.
5408 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5410 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5412 2012-04-25 Doug Evans <dje@google.com>
5414 Initial pass at Go language support.
5416 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5418 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5419 (YYFILES): Add go-exp.c.
5420 (YYOBJ): Add go-exp.o.
5421 (local-maintainer-clean): Delete go-exp.c.
5422 * defs.h (enum language): Add language_go.
5423 * dwarf2read.c: #include "go-lang.h".
5424 (fixup_go_packaging): New function.
5425 (process_full_comp_unit): Call it when processing Go CUs.
5426 (dwarf2_physname): Add Go support.
5427 (read_file_scope): Handle missing language spec for GNU Go.
5428 (set_cu_language): Handle DW_LANG_Go.
5429 * go-exp.y: New file.
5430 * go-lang.h: New file.
5431 * go-lang.c: New file.
5432 * go-typeprint.c: New file.
5433 * go-valprint.c: New file.
5434 * symtab.c: #include "go-lang.h".
5435 (symbol_set_language): Handle language_go.
5436 (symbol_find_demangled_name, symbol_set_names): Ditto.
5437 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5439 2012-04-24 Jim Meyering <meyering@redhat.com>
5441 avoid a few strncpy-induced buffer overruns
5442 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5443 fname and psargs before trying to concatenate.
5444 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5445 "name" before applying strchr.
5447 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5449 * CONTRIBUTE: Use unified diff instead of context diff when
5452 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5454 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5455 code. Handle JR.HB correctly.
5457 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5460 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5461 with the other MIPS16 helpers.
5463 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5465 * observer.sh: Conditionally declare `args', thus cleaning up
5466 unused instances of this variable.
5468 2012-04-24 Yao Qi <yao@codesourcery.com>
5470 Revert this patch to allow breakpoint always-inserted
5472 2011-12-05 Pedro Alves <pedro@codesourcery.com>
5473 * breakpoint.c: Include record.h.
5474 (breakpoints_always_inserted_mode): Return false when the record
5477 * breakpoint.c (iterate_over_bp_locations): New.
5478 * breakpoint.h: Declare.
5479 New typedef walk_bp_location_callback.
5480 * record.c (record_open): Call record_init_record_breakpoints.
5481 (record_sync_record_breakpoints): New.
5482 (record_init_record_breakpoints): New.
5483 * NEWS: Mention supporting breakpoint always-inserted mode in
5486 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5488 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5491 2012-04-24 Yao Qi <yao@codesourcery.com>
5493 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5494 (is_catchpoint): ... it.
5495 (print_one_breakpoint_location): Caller update.
5496 * breakpoint.h: Update declaration.
5498 2012-04-23 David S. Miller <davem@davemloft.net>
5500 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5502 2012-04-23 Tom Tromey <tromey@redhat.com>
5504 * buildsym.c (add_free_pendings): Remove.
5505 * buildsym.h (add_free_pendings): Remove.
5507 2012-04-23 Doug Evans <dje@google.com>
5509 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5510 attr.u.unsnd instead of attr.u.addr.
5511 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5512 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5514 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5515 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5517 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5519 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5521 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5522 (mips_o32_return_value): Likewise.
5523 (mips_o64_return_value): Likewise.
5525 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5527 * ada-lang.c (ada_evaluate_subexp): Add cases for
5528 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5529 their treatment in eval.c.
5531 2012-04-21 David S. Miller <davem@davemloft.net>
5533 * sparc-tdep.c (X_DISP10): Define.
5534 (sparc_analyze_control_transfer): Handle compare-and-branch.
5536 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5538 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5539 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5541 2012-04-20 Nigel Stephens <nigel@mips.com>
5542 Maciej W. Rozycki <macro@codesourcery.com>
5544 * mips-tdep.c (mips_float_register_p): New function.
5545 (mips_convert_register_float_case_p): Use mips_float_register_p.
5546 (mips_register_type): Likewise.
5547 (mips_print_register): Likewise.
5548 (print_gp_register_row): Likewise.
5549 (mips_print_registers_info): Likewise.
5551 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5553 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5556 2012-04-20 Andrew Pinski <apinski@cavium.com>
5558 * MAINTAINERS (Write After Approval): Add myself to the list.
5560 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5562 * MAINTAINERS: Update my e-mail address.
5564 2012-04-20 Pedro Alves <palves@redhat.com>
5566 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5568 * configure: Regenerate.
5570 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5572 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5574 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5576 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5578 Fix compilation compatibility with python-2.4
5579 * python/py-type.c (convert_field): Cast ADDRSTRING for
5580 PyObject_SetAttrString as non-const. New comment.
5582 2012-04-19 Tom Tromey <tromey@redhat.com>
5584 * top.c (quit_target): Use all_cleanups.
5585 * main.c (captured_command_loop): Use all_cleanups.
5586 * exceptions.c (throw_exception): Use all_cleanups.
5588 2012-04-19 Pedro Alves <palves@redhat.com>
5590 * Makefile.in (GNULIB_BUILDDIR): New.
5591 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5592 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5593 (CLEANDIRS). Remove gnulib/import.
5594 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5596 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5597 (gnulib/import/Makefile): Replace gnulib/import with
5598 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5599 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5600 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5601 acx_configure_dir.m4.
5602 * acinclude.m4: Include acx_configure_dir.m4.
5603 * acx_configure_dir.m4: New file.
5604 * aclocal.m4: Regenerate.
5605 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5606 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5607 (GNULIB): New variable.
5608 (GNULIB_STDINT_H): Adjust.
5609 (AC_OUTPUT): Don't output gnulib/Makefile.
5610 * gdb/defs.h: Include build-gnulib/config.h.
5611 * aclocal.m4: Regenerate.
5612 * config.in: Regenerate.
5613 * configure: Regenerate.
5615 * gnulib/Makefile.in: New file.
5616 * gnulib/configure.ac: New file.
5617 * gnulib/aclocal.m4: New file.
5618 * gnulib/config.in: New file.
5619 * gnulib/configure: New file.
5620 * gnulib/: Re-run gnulib-tool to adjust.
5622 2012-04-19 Doug Evans <dje@google.com>
5624 * cleanups.h (struct cleanup): Move to cleanups.c.
5625 (make_cleanup_dtor_ftype): New typedef.
5626 (make_cleanup_dtor): Use it.
5627 (ALL_CLEANUPS): Replace with ...
5628 (all_cleanups): ... this. Declare. All uses updated.
5629 * cleanups.c: #include "gdb_assert.h".
5630 (sentinel_cleanup): New static global.
5631 (SENTINEL_CLEANUP): Define.
5632 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5633 (make_my_cleanup2): Assert result is non-NULL.
5634 (all_cleanups): New function.
5635 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5638 2012-04-19 Pedro Alves <palves@redhat.com>
5640 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5641 Adjust paths to gnulib imported files.
5643 2012-04-19 Pedro Alves <palves@redhat.com>
5645 * gnulib/: Move whole directory ...
5646 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5647 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5648 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5649 (aclocal_m4_deps): Adjust.
5650 * aclocal.m4: Regenerate.
5651 * configure: Regenerate.
5652 * configure.ac: Adjust AC_OUTPUT output.
5654 2012-04-19 Yao Qi <yao@codesourcery.com>
5656 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5658 * vec.c: Move it ...
5659 * common/vec.c: ... here.
5660 * vec.h: Move it ...
5661 * common/vec.h: ... here.
5663 2012-04-19 Yao Qi <yao@codesourcery.com>
5665 * gdb-code-style.el: New.
5667 2012-04-18 Pedro Alves <palves@redhat.com>
5669 Update gnulib from latest git.
5670 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5672 * gnulib/Makefile.am: Update.
5673 * gnulib/dummy.c: Update.
5674 * gnulib/extra/arg-nonnull.h: Update.
5675 * gnulib/extra/c++defs.h: Update.
5676 * gnulib/extra/update-copyright: Update.
5677 * gnulib/extra/warn-on-use.h: Update.
5678 * gnulib/inttypes.in.h: Update.
5679 * gnulib/m4/00gnulib.m4: Update.
5680 * gnulib/m4/extensions.m4: Update.
5681 * gnulib/m4/gnulib-cache.m4: Update.
5682 * gnulib/m4/gnulib-common.m4: Update.
5683 * gnulib/m4/gnulib-comp.m4: Update.
5684 * gnulib/m4/gnulib-tool.m4: Update.
5685 * gnulib/m4/include_next.m4: Update.
5686 * gnulib/m4/inttypes-pri.m4: Update.
5687 * gnulib/m4/inttypes.m4: Update.
5688 * gnulib/m4/longlong.m4: Update.
5689 * gnulib/m4/memchr.m4: Update.
5690 * gnulib/m4/memmem.m4: Update.
5691 * gnulib/m4/mmap-anon.m4: Update.
5692 * gnulib/m4/multiarch.m4: Update.
5693 * gnulib/m4/onceonly.m4: Update.
5694 * gnulib/m4/stddef_h.m4: Update.
5695 * gnulib/m4/stdint.m4: Update.
5696 * gnulib/m4/string_h.m4: Update.
5697 * gnulib/m4/warn-on-use.m4: Update.
5698 * gnulib/m4/wchar_h.m4: Update.
5699 * gnulib/m4/wchar_t.m4: Update.
5700 * gnulib/m4/wint_t.m4: Update.
5701 * gnulib/memchr.c: Update.
5702 * gnulib/memmem.c: Update.
5703 * gnulib/stddef.in.h: Update.
5704 * gnulib/stdint.in.h: Update.
5705 * gnulib/str-two-way.h: Update.
5706 * gnulib/string.in.h: Update.
5707 * gnulib/wchar.in.h: Update.
5709 * gnulib/extra/arg-nonnull.h: Delete.
5710 * gnulib/extra/c++defs.h: Delete.
5711 * gnulib/extra/warn-on-use.h: Delete.
5712 * gnulib/m4/wchar_h.m4: Delete.
5713 * gnulib/m4/wint_t.m4: Delete.
5714 * gnulib/wchar.in.h: Delete.
5716 * gnulib/extra/snippets/arg-nonnull.h: New.
5717 * gnulib/extra/snippets/c++defs.h: New.
5718 * gnulib/extra/snippets/warn-on-use.h: New.
5720 * aclocal.m4: Regenerate.
5721 * config.in: Regenerate.
5722 * configure: Regenerate.
5723 * gnulib/Makefile.in: Regenerate.
5725 2012-04-18 Pedro Alves <palves@redhat.com>
5727 Reimport the update-copyright module from gnulib
5728 (250b80067c1e1d8faa0c42fb572f721975b929c5).
5730 * configure: Regenerate.
5731 * gnulib/Makefile.am: Update.
5732 * gnulib/Makefile.in: Regenerate.
5733 * gnulib/extra/update-copyright: Update.
5734 * gnulib/m4/gnulib-cache.m4: Update.
5735 * gnulib/m4/gnulib-comp.m4: Update.
5737 2012-04-18 Tristan Gingold <gingold@adacore.com>
5739 * configure.ac (aix): Put -lpthread into libs.
5740 * configure: Regenerate.
5742 2012-04-18 Tom Tromey <tromey@redhat.com>
5744 * linespec.c (convert_linespec_to_sals): Don't use
5746 (compare_msymbols): Arguments are minsym_and_objfile, not
5747 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
5749 2012-04-18 Pedro Alves <palves@redhat.com>
5751 Revert gnulib/ part of:
5752 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5753 Copyright year update in most files (performed by copyright.sh).
5755 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5757 Fix 64-bit constants on 32-bit hosts.
5758 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
5759 from unsigned long to ULONGEST.
5760 (read_signed_leb128): Change declaration return type from long to
5762 (dwarf2_const_value_attr): Change declaration parameter value from long
5764 (dwarf2_compute_name): Change variable value from long to LONGEST.
5765 (read_unsigned_leb128): Change return type, variable result and some
5766 casts from unsigned long to ULONGEST.
5767 (read_signed_leb128): Change return type, variable result and some
5768 casts from long to LONGEST.
5769 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
5770 value from long to LONGEST.
5771 (dwarf2_const_value): Change variable value from long to LONGEST.
5772 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
5773 plongest and hex_string.
5774 * symtab.h (struct general_symbol_info): Change ivalue from long to
5775 LONGEST, remove the comment.
5776 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
5777 Change SYMBOL_VALUE format strings to use plongest and hex_string.
5779 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
5782 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
5783 * ada-lang.c (ada_discrete_type_high_bound)
5784 (ada_discrete_type_low_bound): Fix function comment. Use
5785 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5786 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
5787 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5788 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
5789 Use TYPE_FIELD_ENUMVAL.
5790 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
5791 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5792 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
5793 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
5795 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
5796 * dwarf2read.c (process_enumeration_scope): Likewise.
5797 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
5799 (class StructMainTypePrettyPrinter): Support also
5800 FIELD_LOC_KIND_ENUMVAL.
5801 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
5803 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5804 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
5805 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
5806 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
5808 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
5809 accommodate enumval.
5810 (struct call_site): Adjust loc_kind to accommodate enumval.
5811 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
5812 (TYPE_FIELD_ENUMVAL): New macros.
5813 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
5814 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
5816 * p-typeprint.c (pascal_type_print_base): Likewise.
5817 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
5819 * python/lib/gdb/types.py (make_enum_dict): Likewise.
5820 * python/py-type.c (convert_field): New variable addrstring. Use
5821 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5822 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
5823 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
5824 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
5826 * valprint.c (generic_val_print): Likewise.
5828 2012-04-17 Doug Evans <dje@google.com>
5830 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
5832 * dwarf2read.c: Whitespace fixes.
5833 (lookup_signatured_type): Tweak comment.
5834 (get_die_type_at_offset): Fix comment.
5836 2012-04-17 Joel Brobecker <brobecker@adacore.com>
5838 * xcoffread.c (xcoff_secnum_to_sections): New function.
5839 (secnum_to_section, secnum_to_bfd_section): Reimplement
5840 using xcoff_secnum_to_sections. Rename "secnum" parameter
5842 (RECORD_MINIMAL_SYMBOL): Delete.
5843 (record_minimal_symbol): New function.
5844 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
5845 by call to record_minimal_symbol and set misc_func_recorded
5846 to 1. Set last_csect_sec to the XCOFF section index instead
5847 of GDB's section_offset index. Update calls to
5848 prim_record_minimal_symbol_and_info to pass the BFD section
5851 2012-04-17 Joel Brobecker <brobecker@adacore.com>
5853 * xcoffread.c (read_xcoff_symtab): Delete variables
5854 last_csect_val and last_csect_sec and associated code.
5856 2012-04-17 Doug Evans <dje@google.com>
5858 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
5859 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5860 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
5861 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
5863 * cleanups.h: New file.
5864 * cleanups.c: New file.
5865 * Makefile.in (SFILES): Add cleanups.c.
5866 (HFILES_NO_SRCDIR): Add cleanups.h.
5867 (COMMON_OBS): Add cleanups.o.
5868 * defs.h (struct cleanup): Moved to cleanups.h.
5869 (do_cleanups,do_final_cleanups): Ditto.
5870 (discard_cleanups,discard_final_cleanups): Ditto
5871 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5872 (save_cleanups,save_final_cleanups): Ditto.
5873 (restore_cleanups,restore_final_cleanups): Ditto.
5874 (null_cleanup): Ditto.
5875 (make_my_cleanup,make_my_cleanup2): Ditto.
5876 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5877 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
5878 (do_cleanups,do_final_cleanups): Ditto.
5879 (discard_cleanups,discard_final_cleanups): Ditto
5880 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5881 (save_cleanups,save_final_cleanups): Ditto.
5882 (restore_cleanups,restore_final_cleanups): Ditto.
5883 (null_cleanup): Ditto.
5884 (make_my_cleanup,make_my_cleanup2): Ditto.
5885 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5887 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
5889 (make_cleanup_dyn_string_delete): Ditto.
5890 (make_cleanup_ui_file_delete): Ditto.
5891 (make_cleanup_ui_out_redirect_pop): Ditto.
5892 (make_cleanup_free_section_addr_info): Ditto.
5893 (make_cleanup_restore_integer): Ditto.
5894 (make_cleanup_unpush_target): Ditto.
5895 (make_cleanup_value_free_to_mark): Ditto.
5896 (make_cleanup_value_free): Ditto.
5897 (make_cleanup_free_so): Ditto.
5899 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5901 New option "set debug auto-load".
5902 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
5903 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
5904 (auto_load_safe_path_vec_update)
5905 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
5907 (file_is_auto_load_safe): New parameters debug_fmt and ....
5908 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
5909 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
5910 caller by explanatory string.
5911 (_initialize_auto_load): Register "set debug auto-load".
5912 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
5914 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5915 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
5916 by explanatory string.
5917 * main.c (captured_main): Likewise.
5918 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
5919 (source_section_scripts): Likewise.
5921 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5923 New option "set auto-load safe-path".
5924 * NEWS: New commands "set auto-load safe-path"
5925 and "show auto-load safe-path".
5926 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
5927 (auto_load_safe_path, auto_load_safe_path_vec)
5928 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
5929 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
5930 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
5931 (source_gdb_script_for_objfile): New variable is_safe. Call
5932 file_is_auto_load_safe. Return if it is not.
5933 (struct loaded_script): New field loaded.
5934 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
5935 (print_script): Use LOADED indicator instead of FULL_PATH. Change
5936 output "Missing" to "No".
5937 (_initialize_auto_load): New variable cmd. Initialize
5938 auto_load_safe_path. Register "set auto-load safe-path",
5939 "show auto-load safe-path" and "add-auto-load-safe-path".
5940 * auto-load.h (maybe_add_script): Add parameter loaded.
5941 (file_is_auto_load_safe): New declaration.
5942 * config.in: Regenerate.
5943 * configure: Regenerate.
5944 * configure.ac: New parameters --with-auto-load-safe-path
5945 and --without-auto-load-safe-path.
5946 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5947 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
5948 * main.c (captured_main): Check file_is_auto_load_safe for
5950 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
5951 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
5952 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
5955 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5957 auto-load: Implementation.
5958 * NEWS: New descriptions for "info auto-load",
5959 "info auto-load gdb-scripts", "info auto-load python-scripts",
5960 "info auto-load local-gdbinit" and "info auto-load libthread-db".
5961 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
5962 and "show auto-load-scripts". New description for "set auto-load",
5963 "show auto-load", "set auto-load gdb-scripts",
5964 "show auto-load gdb-scripts", "set auto-load python-scripts",
5965 "show auto-load python-scripts", "set auto-load local-gdbinit",
5966 "show auto-load local-gdbinit", "set auto-load libthread-db" and
5967 "show auto-load libthread-db".
5968 * auto-load.c: Remove include python/python-internal.h. Add includes
5969 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
5971 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
5972 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
5973 (gdbpy_global_auto_load): Rename to ...
5974 (global_auto_load): ... here.
5975 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5976 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
5977 (script_language_gdb, source_gdb_script_for_objfile): New.
5978 (struct loaded_script): New field language.
5979 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
5981 (maybe_add_script): Add parameter language. Drop redundant
5982 entry.full_path initialization. Initialize entry.language and
5984 (auto_load_objfile_script): Change parameter suffix to language.
5985 Remove the call of maybe_add_script.
5986 Call language->source_script_for_objfile.
5987 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
5989 (collect_matching_scripts): Adjust it for
5990 struct collect_matching_scripts_data.
5991 (auto_load_info_scripts_pattern_nl): New variable.
5992 (info_auto_load_scripts): Rename to ...
5993 (auto_load_info_scripts): ... here, add parameter language. Adjust it
5994 for struct collect_matching_scripts_data.
5995 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
5996 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
5997 (auto_load_show_cmdlist_get, info_auto_load_cmd)
5998 (auto_load_info_cmdlist_get): New.
5999 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6000 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6001 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6002 "info auto-load local-gdbinit".
6003 * auto-load.h (struct script_language): New.
6004 (gdbpy_global_auto_load): Rename to ...
6005 (global_auto_load): ... here.
6006 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6007 (auto_load_local_gdbinit_loaded): New declarations.
6008 (maybe_add_script): New parameter language.
6009 (auto_load_objfile_script): Change parameter suffix to language.
6010 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6011 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6012 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6014 * linux-thread-db.c: Include auto-load.h and ctype.h.
6015 (auto_load_thread_db, show_auto_load_thread_db): New.
6016 (struct thread_db_info): New field filename.
6017 (delete_thread_db_info): Call xfree for FILENAME.
6018 (try_thread_db_load): Initialize FILENAME.
6019 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6020 if !AUTO_LOAD_THREAD_DB.
6021 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6022 (_initialize_thread_db): Install auto_load_thread_db
6023 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6024 as "info auto-load libthread-db".
6025 * main.c (captured_main): Rename gdbpy_global_auto_load to
6026 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6027 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6028 (print_gdb_help): Extend the help for 'local init file'.
6029 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6030 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6031 (auto_load_scripts): Rename to ...
6032 (auto_load_python_scripts): ... here, update the comment.
6033 (gdbpy_load_auto_script_for_objfile): New declaration.
6034 (show_auto_load_python_scripts, script_language_python)
6035 (gdbpy_load_auto_script_for_objfile): New.
6036 (source_section_scripts): Refactor the code.
6037 (load_auto_scripts_for_objfile): Rename to ...
6038 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6039 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6040 (info_auto_load_python_scripts): New.
6041 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6042 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6043 Register "set auto-load-scripts" as its deprecated alias. Register
6044 "info auto-load python-scripts". Register "info auto-load-scripts" as
6045 its deprecated alias.
6046 (load_auto_scripts_for_objfile): Rename to ...
6047 (gdbpy_load_auto_scripts_for_objfile): ... here.
6048 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6049 (gdbpy_load_auto_scripts_for_objfile): ... here.
6051 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6053 auto-load: Move files.
6054 * Makefile.in (SFILES): Add auto-load.c.
6055 (HFILES_NO_SRCDIR): Add auto-load.h.
6056 (COMMON_OBS): Add auto-load.o.
6057 (distclean): Change .gdbinit for gdb-gdb.gdb.
6058 * auto-load.c: New file, with parts from python/py-auto-load.c.
6059 * auto-load.h: New file, with parts from python/python.h.
6060 * configure: Regenerate.
6061 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6062 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6063 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6064 * main.c: Include auto-load.h.
6065 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6066 command.h, observer.h and progspace.h to auto-load.c. Add include
6068 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6069 (struct loaded_script, auto_load_pspace_data)
6070 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6071 (hash_loaded_script_entry, eq_loaded_script_entry)
6072 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6073 (maybe_add_script): Move to auto-load.c.
6074 (source_section_scripts): Change maybe_add_script parameters passing,
6075 use script_not_found_warning_print.
6076 (clear_section_scripts, auto_load_objfile_script)
6077 (auto_load_new_objfile, loaded_script_ptr)
6078 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6079 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6080 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6081 auto_load_new_objfile and info_auto_load_scripts initizations to
6083 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6085 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6088 * charset.c (find_charset_names): Remove variables ix and elt.
6089 Use free_char_ptr_vec.
6090 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6091 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6092 debugdir_end. New variable debugdir_len.
6093 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6094 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6096 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6097 and elt. Use free_char_ptr_vec.
6098 * source.c (add_path): Remove variables argv, arg and argv_index.
6099 New variables dir_vec, back_to, ix and name.
6100 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6101 make_cleanup_freeargv. Remove variable separator. Simplify the code
6102 no longer expecting DIRNAME_SEPARATOR.
6103 (openp): Remove variable p, p1 and len. New variables dir_vec,
6104 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6105 no longer expecting DIRNAME_SEPARATOR.
6106 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6107 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6109 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6110 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6111 (dirnames_to_char_ptr_vec): New functions.
6113 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6116 * source.c (add_path): Remove always true conditional 'p == 0' and
6117 unindent its code block.
6119 2012-04-17 Pedro Alves <palves@redhat.com>
6121 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6122 (FIELD_BITPOS_LVAL): ... this.
6123 (FIELD_BITPOS): New.
6124 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6125 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6126 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6128 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6130 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6131 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6132 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6135 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6137 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6138 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6139 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6140 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6141 * jv-lang.c (java_link_class_type): Likewise, once.
6142 * stabsread.c (read_enum_type): Likewise.
6144 2012-04-16 Yao Qi <yao@codesourcery.com>
6146 * common/agent.c (agent_run_command): Add one more parameter `len'.
6148 * common/agent.h: Update declaration.
6149 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6151 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6153 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6156 * value.c (value_actual_type): New function.
6157 * value.h (value_actual_type): New declaration.
6158 * varobj.c (update_type_if_necessary): New function.
6159 (varobj_create): Call value_actual_type instead of
6161 (install_dynamic_child): distinct changed and type changed MI variable
6163 (update_dynamic_varobj_children): Updated for install_dynamic_child
6164 change. All callers updated.
6165 (varobj_update): Support for MI variable object type change if
6166 the value changed and RTTI is used to determine the type.
6167 (create_child_with_value): Call value_actual_type instead of
6169 (adjust_value_for_child_access): Extended with a new parameter which
6170 specify whether the given value should be casted to enclosing type.
6171 All callers updated.
6173 2012-04-14 Yao Qi <yao@codesourcery.com>
6175 Import gnulib module inttypes from git
6176 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6177 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
6178 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6179 gnulib/m4/inttypes-pri.m4
6180 * aclocal.m4, config.in, configure: Regenerated.
6181 * gnulib/Makefile.am: Update.
6182 * gnulib/Makefile.in: Update.
6183 * gnulib/m4/gnulib-cache.m4: Update.
6184 * gnulib/m4/gnulib-comp.m4: Update.
6185 * gnulib/inttypes.in.h: New.
6186 * gnulib/m4/inttypes-pri.m4: New.
6187 * gnulib/m4/inttypes.m4: New.
6189 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
6191 * infrun.c (resume): Update PC address to the real PC after
6192 preparing to do displaced stepping.
6194 2012-04-12 Doug Evans <dje@google.com>
6196 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6197 All callers updated.
6199 2012-04-12 Mark Kettenis <kettenis@gnu.org>
6201 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6203 2012-04-12 Doug Evans <dje@google.com>
6205 * dwarf2read.c (create_all_type_units): Renamed from
6206 create_debug_types_hash_table. All callers updated.
6208 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6209 local type_sig to sig_type, type_offset to type_offset_in_tu.
6210 (hash_signatured_type): Renamed from hash_type_signature,
6211 all callers updated.
6212 (eq_signatured_type): Renamed from eq_type_signature,
6213 all callers updated.
6214 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6215 (process_enumeration_scope): Ditto.
6216 (lookup_signatured_type_at_offset): Ditto.
6217 (load_full_type_unit, read_signatured_type): Ditto.
6219 2012-04-12 Yao Qi <yao@codesourcery.com>
6221 * remote.c (async_remote_interrupt): Correct function name in
6223 (async_remote_interrupt_twice): Ditto.
6225 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6227 * source.c (find_and_open_source): Consistently pass resulting
6228 full path through xfullpath.
6230 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6232 Provide more specific displaced-stepping memory error message.
6233 * infrun.c (displaced_step_prepare): New variable status. Call
6234 target_read_memory instead of read_memory, provide more specific
6237 2012-04-11 Tristan Gingold <gingold@adacore.com>
6240 * darwin-nat.c (darwin_execvp): Revert previous patch.
6242 2012-04-11 Tristan Gingold <gingold@adacore.com>
6245 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6248 2012-04-11 Tristan Gingold <gingold@adacore.com>
6250 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6253 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6255 New command 'explore' which helps explore values and types in
6257 * NEWS: Add an entry about the new 'explore' command.
6258 * data-directory/Makefile.in: Add gdb/command/explore.py
6259 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
6260 command using the GDB Python API.
6262 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6264 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6265 extension in jump target calculation.
6267 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
6269 * mips-tdep.c (mips32_next_pc): Handle JALX.
6271 2012-04-10 Yao Qi <yao@codesourcery.com>
6273 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6275 2012-04-10 Yao Qi <yao@codesourcery.com>
6277 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6278 and gnulib/m4/gnulib-tool.m4.
6280 2012-04-10 Doug Evans <dje@google.com>
6282 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6283 (load_partial_dies): Clarify comment.
6284 (find_partial_die): Support rereading type units.
6285 Clarify CU handling, if we know offset is in CU, don't search for the
6286 containing CU. Add comment regarding memory waste.
6288 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6290 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6291 i386/x32-avx and i386/x32-avx-linux.
6292 (i386/x32-expedite): New.
6293 (i386/x32-linux-expedite): Likewise.
6294 (i386/x32-avx-expedite): Likewise.
6295 (i386/x32-avx-linux-expedite): Likewise.
6296 ($(outdir)/i386/x32.dat): Likewise.
6297 ($(outdir)/i386/x32-linux.dat): Likewise.
6298 ($(outdir)/i386/x32-avx.dat): Likewise.
6299 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6301 * features/i386/x32-avx-linux.xml: New file.
6302 * features/i386/x32-avx.xml: Likewise.
6303 * features/i386/x32-core.xml: Likewise.
6304 * features/i386/x32-linux.xml: Likewise.
6305 * features/i386/x32.xml: Likewise.
6307 * features/i386/x32-avx-linux.c: New. Generated.
6308 * features/i386/x32-avx.c: Likewise.
6309 * features/i386/x32-linux.c: Likewise.
6310 * features/i386/x32.c: Likewise.
6311 * regformats/i386/x32-avx-linux.dat: Likewise.
6312 * regformats/i386/x32-avx.dat: Likewise.
6313 * regformats/i386/x32-linux.dat: Likewise.
6314 * regformats/i386/x32.dat: Likewise.
6316 2012-04-10 Tristan Gingold <gingold@adacore.com>
6318 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6319 code to kill the inferior.
6321 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6323 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6325 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6327 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
6328 (yyvsp): New defines.
6329 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6331 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6333 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6335 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6337 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6340 2012-04-09 Mark Kettenis <kettenis@gnu.org>
6342 * sparc64-tdep.c (sparc64_store_arguments)
6343 (sparc64_store_arguments): Fix coding style.
6345 2012-04-07 Mark Kettenis <kettenis@gnu.org>
6347 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6348 complex floats, adjust some related comments and tighten a related
6350 (sparc64_extract_return_value): Handle complex floats.
6352 2012-04-07 Doug Evans <dje@google.com>
6354 * dwarf2read.c (load_partial_dies): Change condition to assert.
6356 2012-04-06 Doug Evans <dje@google.com>
6358 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6361 2012-04-05 Kevin Buettner <kevinb@redhat.com>
6363 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6365 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6366 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6369 2012-04-05 Keith Seitz <keiths@redhat.com>
6371 * linespec.c (decode_compound): Remove.
6372 (enum offset_relative_sign): New enum.
6373 (struct line_offset): New struct.
6374 (struct linespec): New struct.
6375 (struct linespec_state): Move file_symtabs,
6376 user_filename, and user_function into struct linespec.
6377 Make result an anonymous struct holding vectors of
6378 symbolp and minsym_and_objfile_d.
6379 Add language member.
6380 (enum ls_token_type): New enum.
6381 (linespec_keywords): New array.
6382 (struct ls_token): New struct.
6383 (struct ls_parser): New struct.
6384 (linespec_lexer_lex_number): New function.
6385 (linespec_lexer_lex_keyword): New function.
6386 (is_ada_operator): New function.
6387 (skip_quote_char): New function.
6388 (copy_token_string): New function.
6389 (is_closing_quote_enclosed): New function.
6390 (find_parameter_list_end): New function.
6391 (linespec_lexer_lex_string): New function.
6392 (linespec_lexer_lex_one): New function.
6393 (linespec_lexer_consume_token): New function.
6394 (linespec_lexer_peek_token): New function.
6395 (cplusplus_error): Remove unused function.
6396 (find_methods): Update comment.
6397 (find_toplevel_char): Return const.
6398 (is_objc_method_format): Remove unused function.
6399 (find_toplevel_string): New function.
6400 (is_linespec_boundary): Remove.
6401 (symbol_not_found_error): New function.
6402 (find_method_overload_end): Remove function.
6403 (unexpected_linespec_error): New function.
6404 (keep_name_info): Remove.
6405 (linespec_parse_line_offset): New function.
6406 (linespec_parse_basic): New function.
6407 (canonicalize_linespec): New function.
6408 (decode_line_internal): Remove.
6409 (create_sals_line_offset): New function adapted from
6411 (convert_linespec_to_sals): New function.
6412 (parse_linespec): New function.
6413 (linespec_parser_new): New function.
6414 (linespec_state_destructor): Change parameter type to
6415 struct linespec_state *.
6416 Add language parameter.
6417 Remove freeing of moved members.
6418 (linespec_parser_delete): New function.
6419 (decode_line_full): Use parse_linespec and linespec_parser_new.
6420 (decode_line_1): Likewise.
6421 (decode_indirect): Rename to ...
6422 (linespec_expression_to_pc): ... this and rewrite
6423 to simply find CORE_ADDR, storing this result for later
6425 (locate_first_half): Remove.
6426 (deocde_objc): Add parameter LS.
6427 Initialize new struct collect_info members.
6428 Handle minimal symbols, too.
6429 (decode_compound): Delete.
6430 (lookup_prefix_sym): Rewrite.
6431 (compare_msymbols): New function.
6432 (find_method): Rewrite.
6433 Do not call cplusplus_error.
6434 (symtabs_from_filename): Rewrite.
6435 (collect_function_symbols): Delete.
6436 (find_function_symbols): Rewrite without ARGPTR-style
6438 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6439 (decode_dollar): Adapted and renamed to ...
6440 (linespec_parse_variable): ... this.
6441 (find_linespec_symbols): New function.
6442 (decode_label): Adapted and renamed to ...
6443 (find_label_symbols): ... this.
6444 (decode_digits_list_mode): Add and use LS argument.
6445 (decode_digits_ordinary): Likewise.
6446 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6447 If in list mode, allow any symbol class. Otherwise, only
6448 permit LOC_BLOCK symbols.
6449 (minsym_found): Update comments.
6450 (search_minsyms_for_name): Do not convert the matching symbol
6451 into a SAL. Simply push the symbol and objfile into the
6453 (decode_variable): Delete. Contents adapted into
6454 find_linespec_symbols.
6456 * cp-support.c (SKIP_SPACE): Remove.
6457 (operator_tokens): Remove unused global.
6458 (cp_validate_operator): Remove.
6459 * cp-support.h (cp_validate_operator): Remove declaration.
6461 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6463 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6464 for TYPE_VPTR_FIELDNO.
6465 * valprint.c (valprint_check_validity): Make it global, move the
6466 function comment ...
6467 * value.h (valprint_check_validity): ... to this new declaration.
6469 2012-04-02 Tristan Gingold <gingold@adacore.com>
6471 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6472 the STATE32 api for i386 state.
6473 (i386_darwin_store_inferior_registers): Likewise.
6475 2012-04-02 Tristan Gingold <gingold@adacore.com>
6477 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6479 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6482 2012-04-02 Tristan Gingold <gingold@adacore.com>
6485 * darwin-nat.c (darwin_execvp): Set binary preference.
6487 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6489 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6491 2012-03-30 Tom Tromey <tromey@redhat.com>
6493 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6494 of TRY_CATCH. Fix error handling.
6495 * python/py-value.c (convert_value_from_python): Move 'old'
6496 declaration to innermost scope.
6498 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6499 Andrey Smirnov <andrew.smirnov@gmail.com>
6501 -Wshadow warning fix.
6502 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6503 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6504 Adjust code accordingly.
6506 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6508 * ada-lang.c (symbol_completion_add): Rename parameter
6509 "encoded" into "encoded_p". Ajust code and documentation
6512 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6513 Andrey Smirnov <andrew.smirnov@gmail.com>
6515 -Wshadow warning fix.
6516 * ada-lang.c (symbol_completion_add): Rename parameter
6517 "wild_match" into wild_match_p. Update code and documentation
6520 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6522 * ada-lang.c (symbol_completion_match): Rename parameter
6523 "encoded" into "encoded_p". Ajust code and documentation
6526 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6527 Andrey Smirnov <andrew.smirnov@gmail.com>
6529 -Wshadow warning fix.
6530 * ada-lang.c (symbol_completion_match): Rename parameter
6531 "wild_match" into "wild_match_p". Adjust code and function
6532 documentation accordingly.
6534 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6535 Andrey Smirnov <andrew.smirnov@gmail.com>
6537 -Wshadow warning fix.
6538 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6539 "symbol_info" into "info". Adjust code accordingly.
6540 (ada_lookup_symbol): Likewise.
6542 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6544 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6545 of this function's documentation.
6547 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6548 Andrey Smirnov <andrew.smirnov@gmail.com>
6550 -Wshadow warning fix.
6551 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6552 variable into "wild_match_p". Adjust code accordingly.
6554 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6555 Andrey Smirnov <andrew.smirnov@gmail.com>
6557 -Wshadow warning fix.
6558 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6559 parameter into "wild_match_p". Adjust code accordingly.
6560 Document this parameter in the function description.
6562 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6563 Andrey Smirnov <andrew.smirnov@gmail.com>
6565 -Wshadow warning fix.
6566 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6567 "wild_match" parameter to "wild_match_p" (-Wshadow).
6569 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6571 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6572 in function documentation.
6574 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6575 Andrey Smirnov <andrew.smirnov@gmail.com>
6577 -Wshadow warning fix.
6578 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6579 variable into wild_match_p. Adjust code accordingly.
6581 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6582 Andrey Smirnov <andrew.smirnov@gmail.com>
6584 * ada-valprint.c (ada_val_print_1): Move the code handling
6585 TYPE_CODE_ENUM inside its own lexical block. Declare
6586 variables len and val there, instead of in the function's
6587 top level block. Avoid declaring deref_val again in a way
6588 that shadows another variable of the same name declared
6589 in one of the up-level blocks. Just re-use the up-level
6592 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6594 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6595 Replace block_found argument by symbol_info. Adjust
6596 implementation accordingly. Add function documentation.
6597 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6599 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6600 * ada-exp.y (write_object_renaming): Adjust to new
6601 ada_lookup_encoded_symbol API.
6603 2012-03-29 Joel Brobecker <brobecker@adacore.com>
6605 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6608 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
6610 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6611 (v850_register_name): Add the mpu and fpu register names.
6612 (v850e_register_name): Add the mpu and fpu register names.
6613 (v850e2_register_name): New function.
6614 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
6617 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6619 * NEWS: Add entry for Ada varobj support.
6621 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6623 * varobj.c (default_value_is_changeable_p): New function,
6624 extracted from varobj_value_is_changeable_p. Add declaration.
6625 (ada_value_is_changeable_p): New function, extracted from
6626 varobj_value_is_changeable_p. Add declaration.
6627 (struct language_specific): New field "value_is_changeable_p".
6628 (languages): Add entries for new field.
6629 (varobj_create): Set language before calling install_new_value.
6630 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6631 "value_is_changeable_p" language callback.
6633 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6635 * ada-varobj.h, ada-varobj.c: New files.
6636 * Makefile.in (SFILES): Add ada-varobj.c.
6637 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6638 (COMMON_OBS): Add ada-varobj.o.
6640 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6642 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6643 (struct language_specific): New field "value_has_mutated".
6644 (languages): Set field "value_has_mutated" in each entry of array.
6645 (varobj_value_has_mutated): New function.
6646 (varobj_udpdate): Add handling of type mutation.
6647 (value_of_root): Add handling of type mutation.
6648 (ada_value_has_mutated): New function.
6650 2012-03-28 Pedro Alves <palves@redhat.com>
6652 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6653 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6655 2012-03-28 Tom Tromey <tromey@redhat.com>
6657 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6658 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6661 2012-03-28 Tom Tromey <tromey@redhat.com>
6663 * .dir-locals.el: New file.
6665 2012-03-28 Pedro Alves <palves@redhat.com>
6667 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6669 2012-03-28 Joel Brobecker <brobecker@adacore.com>
6671 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6674 2012-03-27 Pedro Alves <palves@redhat.com>
6676 Eliminate struct ui_stream.
6678 * ui-out.h (struct ui_stream): Delete.
6679 (ui_out_field_stream): Adjust prototype.
6680 (ui_out_stream_new, ui_out_stream_delete)
6681 (make_cleanup_ui_out_stream_delete): Delete declarations.
6682 * ui-out.c (ui_out_field_stream): Change prototype to take a
6683 ui_file instead of a ui_stream. Adjust.
6684 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6685 (make_cleanup_ui_out_stream_delete): Delete.
6686 * breakpoint.c (print_breakpoint_location)
6687 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6688 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6689 * disasm.c (dump_insns): Ditto.
6690 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6692 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6693 ui_stream/ui_out_stream_new.
6694 * infcmd.c (print_return_value): Ditto.
6695 * osdata.c (info_osdata_command): Don't allocate a local
6697 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
6698 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6699 * tracepoint.c (print_one_static_tracepoint_marker): Don't
6700 allocate a local ui_stream.
6701 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
6702 instead of ui_stream/ui_out_stream_new.
6703 (list_args_or_locals): Don't allocate a local ui_stream.
6704 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
6705 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
6706 ui_stream/ui_out_stream_new.
6707 * cli/cli-setshow.c (do_setshow_command): Ditto.
6709 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
6711 * arm-linux-tdep.c (arm_linux_init_abi): Call
6712 set_gdbarch_process_record. Initialize `arm_swi_record' field.
6713 * arm-tdep.c (arm_process_record): New function.
6714 (deallocate_reg_mem): New function.
6715 (decode_insn): New function.
6716 (thumb_record_branch): New function.
6717 (thumb_record_ldm_stm_swi(): New function.
6718 (thumb_record_misc): New function.
6719 (thumb_record_ld_st_stack): New function.
6720 (thumb_record_ld_st_imm_offset): New function.
6721 (thumb_record_ld_st_reg_offset(): New function.
6722 (thumb_record_add_sub_cmp_mov): New function.
6723 (thumb_record_shift_add_sub): New function.
6724 (arm_record_coproc_data_proc): New function.
6725 (arm_record_coproc): New function.
6726 (arm_record_b_bl): New function.
6727 (arm_record_ld_st_multiple): New function.
6728 (arm_record_ld_st_reg_offset): New function.
6729 (arm_record_ld_st_imm_offset): New function.
6730 (arm_record_data_proc_imm): New function.
6731 (arm_record_data_proc_misc_ld_str): New function.
6732 (arm_record_extension_space): New function.
6733 (arm_record_strx): New function.
6734 (sbo_sbz): New function.
6735 (struct insn_decode_record): New structure for arm insn record.
6736 (REG_ALLOC): New macro for reg allocations.
6737 (MEM_ALLOC): New macro for memory allocations.
6738 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
6740 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
6742 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
6743 (store_register): Likewise.
6745 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
6747 * MAINTAINERS (Write After Approval): Add myself to the list.
6749 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6751 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
6752 Describe also the option "auto".
6754 2012-03-22 Richard Henderson <rth@redhat.com>
6756 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
6757 * sparc-nat.c (sparc_xfer_wcookie): Make static.
6759 2012-03-22 Richard Henderson <rth@redhat.com>
6761 * jit.c (jit_read_code_entry): Compute alignment and offset of
6762 int64_t member before computing entry_size.
6764 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6766 Python scripting: Add new method Value.referenced_value to
6767 gdb.Value which can dereference pointer as well as reference
6769 * NEWS: Add entry under 'Python scripting' about the new method
6770 Value.referenced_value on gdb.Value objects.
6771 * python/py-value.c (valpy_referenced_value): New function
6772 defining a new method on gdb.Value objects which can dereference
6773 pointer and reference values.
6775 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6777 * MAINTAINERS (Write After Approval): Add myself to the list.
6779 2012-03-21 Kevin Buettner <kevinb@redhat.com>
6781 * symtab.c (skip_prologue_sal): Change test to check for "main()"
6782 in addition to "main".
6784 2012-03-21 Joel Brobecker <brobecker@adacore.com>
6786 * expression.h (op_name): Add declaration.
6787 * expprint.c (op_name): Remove declaration. Make non-static.
6788 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
6790 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
6792 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
6794 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
6795 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
6796 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
6797 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
6798 (linux_nat_get_siginfo): Likewise.
6799 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
6800 (linux_nat_get_siginfo): Likewise.
6801 * linux-tdep.c (linux_get_siginfo_type): Likewise.
6802 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
6803 * procfs.c (gdb_siginfo_t): Likewise.
6805 2012-03-21 Mike Frysinger <vapier@gentoo.org>
6807 * .gitignore: Ignore more files.
6809 2012-03-20 Pedro Alves <palves@redhat.com>
6811 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
6814 2012-03-20 Yao Qi <yao@codesourcery.com>
6816 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
6819 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6821 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
6822 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
6823 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
6825 * dwarf2expr.h (cu_offset, sect_offset): New types.
6826 (struct dwarf_expr_context_funcs) <dwarf_call>
6827 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
6829 (struct dwarf_expr_context) <len>: Improve the comment.
6830 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
6831 cu_offset and sect_offset.
6832 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
6833 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
6834 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
6835 * dwarf2loc.h: Include dwarf2expr.h.
6836 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
6838 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
6839 Improve the comment.
6840 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
6841 (struct signatured_type, struct line_header, struct partial_die_info)
6842 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
6843 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
6844 (get_die_type_at_offset, create_cus_from_index)
6845 (create_signatured_type_table_from_index, dw2_get_file_names)
6846 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
6847 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
6848 (create_debug_types_hash_table, process_psymtab_comp_unit)
6849 (load_partial_comp_unit, create_all_comp_units)
6850 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
6851 (load_full_comp_unit, dwarf2_physname, read_import_statement)
6852 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6853 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
6854 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
6855 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
6856 (find_partial_die, read_attribute_value, lookup_die_type)
6857 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
6858 (is_ref_attr): New function comment.
6859 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
6860 Use cu_offset and sect_offset.
6861 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
6862 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
6863 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
6864 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
6865 (offset_and_type_hash, offset_and_type_eq, set_die_type)
6866 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
6867 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
6870 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6873 * python/py-auto-load.c (source_section_scripts): New variable back_to.
6874 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
6876 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
6878 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6880 * NEWS: Describe new options --init-command=FILE, -ix and
6881 --init-eval-command=COMMAND, -iex.
6882 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
6883 CMDARG_INIT_COMMAND.
6884 (captured_main): New enum items OPT_IX and OPT_IEX. Add
6885 "init-command", "init-eval-command", "ix" and "iex" to the variable
6886 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
6887 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
6888 (print_gdb_help): Describe --init-command=FILE, -ix and
6889 --init-eval-command=COMMAND, -iex.
6891 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6894 * main.c (struct cmdarg): Move it here from main. Add more comments.
6895 (cmdarg_s, VEC (cmdarg_s)): New.
6896 (main): Move struct cmdarg from here. New variables cmdarg_vec and
6897 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
6898 Install cleanup for cmdarg_vec. Update filling for options 'x' and
6899 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
6902 2012-03-19 Tom Tromey <tromey@redhat.com>
6904 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
6906 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6909 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
6912 2012-03-16 Chris January <chris.january@allinea.com>
6914 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
6917 2012-03-16 Chris January <chris.january@allinea.com>
6919 * source.c (add_path): Use memmove instead of strcpy because the
6922 2012-03-16 Joel Brobecker <brobecker@adacore.com>
6924 * value.h (set_value_parent): Add declaration.
6925 * value.c (set_value_parent): New function.
6926 (value_address): If VALUE->PARENT is not NULL, then use it as
6927 the base address instead of VALUE->LOCATION.address.
6928 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
6929 the same as OBJ's address. Adjust V's offset accordingly.
6932 2012-03-16 Gary Benson <gbenson@redhat.com>
6934 PR breakpoints/10738
6935 * dwarf2read.c (use_deprecated_index_sections): New global.
6936 (struct partial_die_info): New member may_be_inlined.
6937 (read_partial_die): Set may_be_inlined where appropriate.
6938 (add_partial_subprogram): Add partial symbols for partial
6939 DIEs that may be inlined.
6940 (new_symbol_full): Add inlined subroutines to the current
6942 (write_psymtabs_to_index): Bump version number.
6943 (dwarf2_read_index): Read only version 6 indices unless
6944 use_deprecated_index_sections is set.
6945 * linespec.c (symbol_and_data_callback): New structure.
6946 (iterate_inline_only): New function.
6947 (iterate_over_all_matching_symtabs): New argument
6948 "include_inline". If nonzero, also call the callback for
6949 symbols representing inlined subroutines.
6950 (lookup_prefix_sym): Pass extra argument to the above.
6951 (find_function_symbols): Likewise.
6952 (add_matching_symbols_to_info): Likewise.
6953 * NEWS: Mention that GDB can now set breakpoints on inlined
6956 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6958 * p-typeprint.c (pascal_type_print_method_args):
6959 Fix display of parameter of methods.
6961 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6963 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
6964 Add missing prototype.
6966 2012-03-16 Yao Qi <yao@codesourcery.com>
6967 Jan Kratochvil <jan.kratochvil@redhat.com>
6969 Fix false compilation warning.
6970 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
6972 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
6973 Pedro Alves <pedro@codesourcery.com>
6975 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
6976 (arm_register_g_packet_guesses): New function.
6977 (arm_gdbarch_init): Don't force a target description with
6978 registers when the executable is detected as M-profile. Instead
6979 set gdbarch->tdep->is_m. Register `g' packet guesses.
6980 (_initialize_arm_tdep): Initialize the new target description.
6981 * features/arm-with-m-fpa-layout.xml: New description.
6982 * features/arm-with-m-fpa-layout.c: New, generated.
6984 2012-03-15 Joel Brobecker <brobecker@adacore.com>
6986 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
6987 Update function description.
6988 (insert_bp_location): Do not wipe bl->target_info out.
6989 * mem-break.c: #include "gdb_string.h".
6990 (default_memory_insert_breakpoint): Do not call target_read_memory
6991 with a pointer to the breakpoint's shadow_contents buffer. Use
6992 a local buffer instead.
6993 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
6995 2012-03-15 Tom Tromey <tromey@redhat.com>
6997 * NEWS: Mention "info vtbl", not "info vtable".
6998 * cp-support.c (info_vtbl_command): Fix comment.
6999 (_initialize_cp_support): Fix text.
7001 2012-03-15 Tom Tromey <tromey@redhat.com>
7003 * cp-valprint.c (cp_print_value_fields): Use
7004 print_function_pointer_address for vtable slot.
7006 2012-03-15 Tom Tromey <tromey@redhat.com>
7008 * gnu-v3-abi.c (struct value_and_voffset): New.
7009 (hash_value_and_voffset, eq_value_and_voffset)
7010 (compare_value_and_voffset, compute_vtable_size)
7011 (print_one_vtable, gnuv3_print_vtable): New functions.
7012 (init_gnuv3_ops): Initialize 'print_vtable' field.
7013 * cp-support.c (info_vtbl_command): New function.
7014 (_initialize_cp_support): Add "info vtbl".
7015 * cp-abi.h (cplus_print_vtable): Declare.
7016 (struct cp_abi_ops) <print_vtable>: New field.
7017 * cp-abi.c (cplus_print_vtable): New function.
7020 2012-03-15 Tom Tromey <tromey@redhat.com>
7022 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7023 iterate_over_symbols.
7025 2012-03-14 Doug Evans <dje@google.com>
7027 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7028 DW_OP_GNU_parameter_ref.
7030 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7032 Fix double prompt of 'interpreter-exec mi'.
7033 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7034 (mi_interpreter_resume): use it.
7035 (mi_execute_command_input_handler): New function.
7036 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7037 mi_execute_command_input_handler.
7039 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
7041 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7043 (darwin_debug_port_info): Make static.
7044 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7045 * machoread.c (_initialize_machoread): Add prototype.
7046 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7047 (i386_darwin_set_control, i386_darwin_get_control)
7048 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7049 i386_darwin_get_status, i386_darwin_get_control):
7050 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7052 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7054 * ax-gdb.c (gen_usual_unary): Remove special handling of
7055 enum and bool types.
7057 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7059 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7061 2012-03-13 Joel Brobecker <brobecker@adacore.com>
7063 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7065 2012-03-13 Chris January <chris.january@allinea.com>
7067 * aix-thread.c (fill_sprs): Store the floating point registers
7068 at the correct offsets into vals.
7070 2012-03-13 Doug Evans <dje@google.com>
7072 * NEWS: Mention symbol-reloading has been deleted.
7073 * symfile.c (symbol_reloading): Delete.
7074 (show_symbol_reloading): Delete.
7075 (_initialize_symfile): Delete set/show symbol-reloading.
7077 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7078 read_in_chain until we have successfully read it in.
7079 (load_full_comp_unit): Ditto.
7080 (read_signatured_type): Add comment.
7082 2012-03-13 Chris January <chris.january@allinea.com>
7084 * stabsread.c (fix_common_block): Change type of valu argument
7087 2012-03-13 Chris January <chris.january@allinea.com>
7089 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7092 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7094 * common/linux-procfs.c (linux_proc_get_int): New, from
7095 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7097 (linux_proc_get_tgid): Only call linux_proc_get_int.
7098 (linux_proc_get_tracerpid): New.
7099 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7100 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7101 linux_proc_pid_has_state.
7102 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7103 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7104 (linux_ptrace_attach_warnings): New.
7105 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7107 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7108 (linux_nat_attach): New variables ex, buffer, message and message_s.
7109 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7111 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7113 * Makefile.in (linux-ptrace.o): New.
7114 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7116 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7117 * common/linux-ptrace.c: New file.
7118 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7119 * config/arm/linux.mh: Likewise.
7120 * config/i386/linux.mh: Likewise.
7121 * config/i386/linux64.mh: Likewise.
7122 * config/ia64/linux.mh: Likewise.
7123 * config/m32r/linux.mh: Likewise.
7124 * config/m68k/linux.mh: Likewise.
7125 * config/mips/linux.mh: Likewise.
7126 * config/pa/linux.mh: Likewise.
7127 * config/powerpc/linux.mh: Likewise.
7128 * config/powerpc/ppc64-linux.mh: Likewise.
7129 * config/powerpc/spu-linux.mh: Likewise.
7130 * config/s390/s390.mh: Likewise.
7131 * config/sparc/linux.mh: Likewise.
7132 * config/sparc/linux64.mh: Likewise.
7133 * config/xtensa/linux.mh: Likewise.
7134 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7135 common/linux-procfs.c.
7136 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7138 2012-03-13 Hui Zhu <teawater@gmail.com>
7139 Pedro Alves <palves@redhat.com>
7141 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7142 CREATE_BREAKPOINT_FLAGS_INSERTED.
7143 (create_breakpoint_sal, create_breakpoints_sal)
7144 (base_breakpoint_create_breakpoints_sal)
7145 (tracepoint_create_breakpoints_sal)
7146 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7148 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7149 (ftrace_command, strace_command): Adjust.
7150 (create_tracepoint_from_upload): Pass
7151 CREATE_BREAKPOINT_FLAGS_INSERTED.
7152 * breakpoint.h (enum breakpoint_create_flags): New.
7153 (create_breakpoint): New flags parameter.
7154 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7155 * python/py-breakpoint.c (bppy_init): Adjust.
7156 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7157 * spu-tdep.c (spu_catch_start): Adjust.
7159 2012-03-13 Pedro Alves <palves@redhat.com>
7160 Hui Zhu <teawater@gmail.com>
7161 Yao Qi <yao@codesourcery.com>
7163 * remote.c (struct remote_state): New field `starting_up'.
7164 (remote_start_remote): Set and clear it.
7165 (remote_can_download_tracepoint): If starting up, return false.
7167 2012-03-13 Yao Qi <yao@codesourcery.com>
7169 * inferior.h (struct inferior): Remove fields any_syscall_count,
7170 syscalls_counts and total_syscalls_count. Move them to new
7171 struct catch_syscall_inferior_data in breakpoint.c.
7172 * breakpoint.c: Call DEF_VEC_I(int).
7173 (struct catch_syscall_inferior_data): New.
7174 (get_catch_syscall_inferior_data): New.
7175 (catch_syscall_inferior_data_cleanup): New.
7176 (insert_catch_syscall): Update to access data in
7177 struct catch_syscall_inferior_data.
7178 (insert_catch_syscall): Likewise.
7179 (remove_catch_syscall): Likewise.
7180 (remove_catch_syscall): Likewise.
7181 (is_syscall_catchpoint_enabled): Likewise.
7182 (add_catch_command): Likewise.
7183 (_initialize_breakpoint): Register cleanup.
7184 * breakpoint.h: Removed DEF_VEC_I(int).
7185 * dwarf2loc.c: Call DEF_VEC_I(int).
7186 * mi/mi-main.c: Likewise.
7188 2012-03-12 Mark Kettenis <kettenis@gnu.org>
7190 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7192 2012-03-12 Chris January <chris.january@allinea.com>
7194 * aix-thread.c (_initialize_aix_thread): Add prototype.
7195 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7196 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7198 2012-03-12 Joel Brobecker <brobecker@adacore.com>
7200 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7201 include of "amd64-nat.h".
7203 2012-03-12 Tom Tromey <tromey@redhat.com>
7205 * buildsym.c (record_pending_block): Now static.
7206 * buildsym.h: (record_pending_block): Remove.
7208 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
7210 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7212 2012-03-09 Tom Tromey <tromey@redhat.com>
7214 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7215 producer_is_gxx_lt_4_6>: New fields.
7216 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7218 2012-03-09 Tom Tromey <tromey@redhat.com>
7220 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7222 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7224 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7227 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7229 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7231 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7233 Fix -Wmissing-prototypes build.
7234 * arm-linux-nat.c (get_thread_id): Make it static.
7235 * xtensa-linux-nat.c (get_thread_id): Likewise.
7237 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7239 * server.c (process_point_options): If a conditional expression
7240 is found, only print a message if remote_debug is nonzero.
7242 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
7244 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7245 of internal error for unknown/unsupported types.
7247 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7249 Fix CU relative vs. absolute DIE offsets.
7250 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7251 offset to offset_in_cu.
7252 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7254 (dwarf2_fetch_die_location_block): Rename parameter offset to
7255 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7257 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7259 * libunwind-frame.c: Rename to ...
7260 * ia64-libunwind-tdep.c: ... here.
7261 * libunwind-frame.h: Rename to ...
7262 * ia64-libunwind-tdep.h: ... here.
7263 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7264 ia64-libunwind-tdep.h.
7265 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7266 * README (--with-libunwind): Rename to ...
7267 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7268 * config.in: Regenerate.
7269 * configure: Regenerate.
7270 * configure.ac: New option --with-libunwind-ia64, make the
7271 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7272 Remove AC_DEFINE for HAVE_LIBUNWIND.
7273 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7274 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7275 Rename libunwind-frame in the general comment.
7276 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7277 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7278 Move forward declarations inside #ifndef. Rename libunwind-frame in
7279 the general comment.
7280 * ia64-tdep.c: Rename libunwind-frame.h #include to
7281 ia64-libunwind-tdep.h.
7282 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7283 (ia64_libunwind_descr): Rename libunwind-frame to
7284 ia64-libunwind-tdep in these function comments.
7285 * ia64-tdep.h: Rename libunwind-frame.h #include to
7286 ia64-libunwind-tdep.h.
7287 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7288 ia64-libunwind-tdep in that data comment.
7290 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7292 * libunwind-frame.h (struct frame_unwind): New declaration.
7294 2012-03-08 Joel Brobecker <brobecker@adacore.com>
7296 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7297 "set breakpoint condition-evaluation" command.
7299 2012-03-08 Tristan Gingold <gingold@adacore.com>
7301 * sparc-stub.c: Move to stubs/
7302 * sh-stub.c: Likewise.
7303 * m68k-stub.c: Likewise.
7304 * m32r-stub.c: Likewise.
7305 * i386-stub.c: Likewise.
7307 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7309 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7310 linux_get_siginfo_type.
7312 * m68klinux-nat.c: Include "gdb_proc_service.h".
7313 (PTRACE_GET_THREAD_AREA): Define.
7314 (ps_get_thread_area): New function.
7316 2012-03-08 Yao Qi <yao@codesourcery.com>
7318 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7320 (remote_query_attached): Likewise.
7321 (remote_static_tracepoint_marker_at): Likewise.
7322 (remote_set_permissions): Likewise.
7323 (remote_detach_1, extended_remote_attach_1): Likewise.
7324 (send_g_packet, remote_vkill): Likewise.
7325 (extended_remote_disable_randomization): Likewise.
7326 (remote_add_target_side_condition): Likewise.
7327 (remote_insert_breakpoint): Likewise.
7328 (remote_remove_breakpoint): Likewise.
7329 (remote_insert_watchpoint): Likewise.
7330 (remote_remove_watchpoint): Likewise.
7331 (remote_insert_hw_breakpoint): Likewise.
7332 (remote_insert_hw_breakpoint): Likewise.
7333 (remote_remove_hw_breakpoint): Likewise.
7334 (remote_download_command_source): Likewise.
7335 (remote_download_tracepoint): Likewise.
7336 (remote_download_trace_state_variable): Likewise.
7337 (remote_disable_tracepoint): Likewise.
7338 (remote_trace_set_readonly_regions): Likewise.
7339 (remote_get_tracepoint_status): Likewise.
7340 (remote_trace_find): Likewise.
7341 (remote_get_trace_state_variable_value): Likewise.
7342 (remote_set_disconnected_tracing): Likewise.
7343 (remote_set_circular_trace_buffer): Likewise.
7344 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7345 (remote_use_agent): Likewise.
7346 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7349 2012-03-07 Pedro Alves <palves@redhat.com>
7351 * NEWS: Mention QProgramSignals.
7352 * inferior.h (update_signals_program_target): Declare.
7353 * infrun.c: (update_signals_program_target): New.
7354 (handle_command): Update the target of the new program signals
7356 * remote.c (PACKET_QProgramSignals): New enum.
7357 (last_program_signals_packet): New global.
7358 (remote_program_signals): New.
7359 (remote_start_remote): Update the target with the program signals
7361 (remote_protocol_features): Add entry for QPassSignals.
7362 (remote_open_1): Free anc clear last_program_signals_packet.
7363 (init_remote_ops): Install remote_program_signals.
7364 * target.c (update_current_target): Adjust.
7365 (target_program_signals): New.
7366 * target.h (struct target_ops) <to_program_signals>: New field.
7367 (target_program_signals): Declare.
7369 2012-03-07 Pedro Alves <palves@redhat.com>
7371 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7374 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7376 * m68klinux-nat.c (getregs_supplies): Make static.
7377 (getfpregs_supplies): Likewise.
7378 (have_ptrace_getregs): Likewise.
7380 2012-03-06 Joel Brobecker <brobecker@adacore.com>
7382 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7383 in call to get_die_type_at_offset.
7385 2012-03-06 Stan Shebs <stan@codesourcery.com>
7387 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7388 * mi/mi-cmd-disas.c: Ditto.
7389 * mi/mi-cmd-env.c: Ditto.
7390 * mi/mi-cmd-file.c: Ditto.
7391 * mi/mi-cmd-stack.c: Ditto.
7392 * mi/mi-cmd-target.c: Ditto.
7393 * mi/mi-cmd-var.c: Ditto.
7394 * mi/mi-cmds.c: Ditto.
7395 * mi/mi-cmds.h: Ditto.
7396 * mi/mi-console.c: Ditto.
7397 * mi/mi-getopt.c: Ditto.
7398 * mi/mi-getopt.h: Ditto.
7399 * mi/mi-interp.c: Ditto.
7400 * mi/mi-main.c: Ditto.
7401 * mi/mi-out.c: Ditto.
7402 * mi/mi-parse.c: Ditto.
7403 * mi/mi-parse.h: Ditto.
7404 * mi/mi-symbol-cmds.c: Ditto.
7406 * mi/mi-getopt.h: Move mi_opt struct up.
7407 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7409 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7411 2012-03-06 Tom Tromey <tromey@redhat.com>
7413 * proc-service.c (ps_pglobal_lookup): Set the current program
7416 2012-03-06 Pedro Alves <palves@redhat.com>
7418 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7420 2012-03-05 Joel Brobecker <brobecker@adacore.com>
7422 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7424 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7427 * common/linux-osdata.c (linux_common_core_of_thread): New function
7429 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7430 call by linux_common_core_of_thread.
7431 (linux_nat_core_of_thread_1): Remove.
7432 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7433 * linux-thread-db.c: Include linux-osdata.h.
7434 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7435 linux_common_core_of_thread.
7437 2012-03-05 Tom Tromey <tromey@redhat.com>
7439 * value.c (value_primitive_field): Don't fetch contents for
7442 2012-03-05 Tom Tromey <tromey@redhat.com>
7444 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7446 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
7448 * s390-nat.c: Include "gregset.h".
7450 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7452 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7453 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7454 (libunwind_load): New variable so_error, use it for dlerror. Try to
7455 load also LIBUNWIND_SO_7.
7457 2012-03-05 Pedro Alves <palves@redhat.com>
7459 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7460 is not NULL, and remove resulting dead code.
7462 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7464 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7465 prologue to sh_analyze_prologue.
7466 (sh_analyze_prologue): Make better use of such an upper limit, and
7467 generally be more cautious about accessing memory.
7469 2012-03-05 Tom Tromey <tromey@redhat.com>
7471 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7472 _initialize_ia64_hpux_tdep.
7474 2012-03-05 Pedro Alves <palves@redhat.com>
7478 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7479 the register state is clear, supply explicit zero, instead of
7480 marking the register unavailable.
7482 2012-03-05 Tristan Gingold <gingold@adacore.com>
7484 * NEWS: Mention OpenVMS ia64 new target.
7486 2012-03-05 Tristan Gingold <gingold@adacore.com>
7488 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7489 (ia64_unw_accessors, ia64_unw_rse_accessors)
7490 (ia64_libunwind_descr): Declare.
7491 * ia64-vms-tdep.c: New file.
7492 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7493 (ia64_libunwind_descr): Make them public.
7494 * configure.tgt: Add ia64-*-*vms*.
7495 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7496 (ALLDEPFILES): Add ia64-vms-tdep.c
7498 2012-03-05 Tristan Gingold <gingold@adacore.com>
7500 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7501 * remote.c (PACKET_qXfer_uib): New enum value.
7502 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7503 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7504 (_initialize_remote): Call add_packet_config_cmd for
7507 2012-03-05 Tristan Gingold <gingold@adacore.com>
7509 * osabi.c (gdb_osabi_names): Add OpenVMS.
7510 (generic_elf_osabi_sniffer): Likewise.
7511 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
7513 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7515 Removed unused code.
7516 * libunwind-frame.c (libunwind_frame_unwind)
7517 (libunwind_frame_base_address): Remove.
7518 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7520 2012-03-04 Yao Qi <yao@codesourcery.com>
7522 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7523 remove trailing new line.
7524 (agent_run_command, agent_run_command): Add _ markup.
7525 (agent_capability_check): Likewise.
7527 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7529 * breakpoint.c (set_condition_evaluation_mode): Set
7530 CONDITION_EVALUATION_MODE unconditionally.
7532 2012-03-03 Yao Qi <yao@codesourcery.com>
7534 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7535 * common/agent.h: Update declaration.
7536 * inf-child.c (inf_child_use_agent): New.
7537 (inf_child_can_use_agent): New.
7538 (inf_child_target): Initialize fields `to_use_agent'
7539 and `to_can_use_agent'.
7540 * agent.c (agent_new_objfile): New.
7541 (_initialize_agent): Add agent_new_objfile to new_objfile
7544 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7546 (linux_target_install_ops): Initialize field
7547 `to_static_tracepoint_markers_by_strid'.
7548 * remote.c (free_current_marker): Move it to ...
7549 * tracepoint.c (free_current_marker): ... here. New.
7550 (cleanup_target_stop): New.
7551 * tracepoint.h: Declare free_current_marker.
7552 * NEWS: Add one entry about `info static-tracepoint-marker'.
7554 2012-03-03 Yao Qi <yao@codesourcery.com>
7556 * common/agent.c (agent_loaded_p): New.
7557 (agent_look_up_symbols): New global.
7558 * common/agent.h: Declare agent_loaded_p.
7560 2012-03-03 Yao Qi <yao@codesourcery.com>
7562 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7563 (agent_capability_check, agent_capability_invalidate): New.
7564 (symbol_list): New array element.
7565 * common/agent.h (enum agent_capa): New.
7566 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7568 2012-03-03 Yao Qi <yao@codesourcery.com>
7570 * target.h (struct target_ops) <to_use_agent>: New field.
7571 (struct target_ops) <to_can_use_agent>: New field.
7572 (target_use_agent, target_can_use_agent): New macro.
7573 * target.c (update_current_target): Update.
7574 * remote.c: New enum `PACKET_QAgent'.
7575 (remote_protocol_features): Add a new element.
7576 (remote_use_agent, remote_can_use_agent): New.
7577 (init_remote_ops): Initialize field `can_use_agent' with
7578 remote_can_use_agent. Intiailize field `use_agent' with
7580 * common/agent.c (use_agent): New global.
7581 * common/agent.h: Declare it.
7582 * tracepoint.c (info_static_tracepoint_markers_command): Add
7584 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7585 (COMMON_OBS): Add common/agent.o and agent.o
7586 (common-agent.o): New rule.
7589 2012-03-03 Yao Qi <yao@codesourcery.com>
7591 * common/agent.c: New.
7592 * common/agent.h: New.
7593 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7595 * configure, configh.in: Regenerated.
7597 2012-03-02 Kevin Buettner <kevinb@redhat.com>
7599 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7600 unless it exists for this architecture.
7602 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7604 * language.h (struct language_defn): New "method" la_read_var_value.
7605 * findvar.c: #include "language.h".
7606 (default_read_var_value): Renames read_var_value. Rewrite
7607 function description.
7608 (read_var_value): New function.
7609 * value.h (default_read_var_value): Add prototype.
7610 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7612 (ada_language_defn): Add entry for la_read_var_value.
7613 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7614 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7615 language_defn structures to add entry for new la_read_var_value
7618 2012-03-02 Tom Tromey <tromey@redhat.com>
7619 Pedro Alves <palves@redhat.com>
7621 PR breakpoints/13776:
7622 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7624 (delete_longjmp_breakpoint_at_next_stop): New.
7625 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7626 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7627 before deleting the inferior. Add comments.
7628 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7629 breakpoints immediately, but only on next stop. Move that code
7630 next to where we mark other breakpoints for deletion.
7632 2012-03-02 Joel Brobecker <brobecker@adacore.com>
7634 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7636 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7639 2012-03-02 Pedro Alves <palves@redhat.com>
7641 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7643 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7645 Fix -Wmissing-prototypes build.
7646 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7647 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7648 (gdbsim_has_memory): Likewise.
7650 2012-03-02 Yao Qi <yao@codesourcery.com>
7652 Fix -Wmissing-prototypes build.
7653 * charset.c (phony_iconv_open): Make static.
7654 (phony_iconv_close, phony_iconv): Likewise.
7655 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7656 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7658 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7659 * ser-mingw.c (create_select_thread): Make static.
7660 * windows-termcap.c (tgetent): New prototype.
7661 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7663 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7665 Fix -Wmissing-prototypes build.
7666 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7667 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7668 (_initialize_loadable): New prototypes.
7670 2012-03-02 Doug Evans <dje@google.com>
7672 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7673 abbrev table, read_comp_unit will do it.
7675 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7677 Fix -Wmissing-prototypes build.
7678 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7679 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7680 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7681 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7682 (_initialize_arm_symbian_tdep): New prototype.
7683 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7684 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7685 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7687 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7688 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7690 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7691 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7692 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7694 * moxie-tdep.c (moxie_process_record): Likewise.
7695 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7696 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
7697 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
7698 (_initialize_rl78_tdep): New prototype.
7699 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
7700 (_initialize_rx_tdep): New prototype.
7701 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
7702 (_initialize_darwin_solib): New prototype.
7703 * solib-spu.c: Include solib-spu.h.
7704 (_initialize_spu_solib): New prototype.
7705 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
7706 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
7707 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
7708 (tic6x_software_single_step): Make it static.
7709 (_initialize_tic6x_tdep): New prototype.
7711 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7713 Fix -Wmissing-prototypes build.
7714 * cris-tdep.c (cris_can_use_hardware_watchpoint)
7715 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
7717 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7719 Fix -Wmissing-prototypes build.
7720 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
7721 (frv_have_stopped_data_address): Remove.
7723 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7725 Fix -Wmissing-prototypes build.
7726 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
7727 * sh-tdep.c: Include sh64-tdep.h.
7728 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
7729 * sh64-tdep.c: Include sh64-tdep.h.
7730 * sh64-tdep.h: New file.
7732 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7734 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
7736 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7738 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
7739 sp_regnum once the gdbarch_init_osabi hook has been called.
7741 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7743 * mips-tdep.c (mips32_bc1_pc): New function.
7744 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
7745 BPOSGE32 and BPOSGE64 instructions.
7746 (deal_with_atomic_sequence): Likewise.
7747 (mips32_instruction_has_delay_slot): Likewise.
7749 2012-03-01 Maciej W. Rozycki <macro@mips.com>
7750 Chris Dearman <chris@mips.com>
7751 Maciej W. Rozycki <macro@codesourcery.com>
7752 Joseph Myers <joseph@codesourcery.com>
7754 * features/mips-dsp.xml: New file.
7755 * features/mips64-dsp.xml: New file.
7756 * features/mips-dsp-linux.xml: New file.
7757 * features/mips64-dsp-linux.xml: New file.
7758 * features/Makefile (WHICH): Add mips-dsp-linux and
7760 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
7761 * features/mips-dsp-linux.c: New file.
7762 * features/mips64-dsp-linux.c: New file.
7763 * regformats/mips-dsp-linux.dat: New file.
7764 * regformats/mips64-dsp-linux.dat: New file.
7765 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
7767 (mips64_linux_register_addr): Likewise.
7768 (mips64_linux_regsets_fetch_registers): Likewise.
7769 (mips64_linux_regsets_store_registers): Likewise.
7770 (mips64_linux_fetch_registers): Update call to
7771 mips64_linux_regsets_fetch_registers.
7772 (mips64_linux_store_registers): Update call to
7773 mips64_linux_regsets_store_registers.
7774 (mips_linux_read_description): Probe for DSP registers.
7775 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
7776 and initialize_tdesc_mips64_dsp_linux.
7777 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
7778 Remove padding of no longer used embedded register slots.
7779 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
7780 (MIPS_RESTART_REGNUM): Redefine enum value.
7781 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
7783 (mips_tx39_reg_names): Likewise.
7784 (mips_linux_reg_names): New array of register names for Linux
7786 (mips_register_name): Check for a null pointer in
7787 mips_processor_reg_names and return an empty string.
7788 (mips_register_type): Exclude embedded registers for the IRIX
7790 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
7791 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
7793 (mips_stab_reg_to_regnum): Handle DSP accumulators.
7794 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
7795 (mips_gdbarch_init): Likewise. Initialize internal register
7796 indices for the Linux ABI. Use dynamic numbers to refer to
7797 registers, as applicable, while parsing the target description.
7798 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
7800 2012-03-01 Joel Brobecker <brobecker@adacore.com>
7802 * frame.h (read_frame_register_unsigned): Fix typo in function
7805 2012-03-01 Pedro Alves <palves@redhat.com>
7807 * jit-reader.in [!__cplusplus]
7808 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
7810 2012-03-01 Pedro Alves <palves@redhat.com>
7812 * configure.ac (build_warnings): Add -Wmissing-prototypes.
7813 * configure: Regenerate.
7815 2012-03-01 Pedro Alves <palves@redhat.com>
7817 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
7818 * breakpoint.c (create_exception_master_breakpoint, trace_command)
7819 (ftrace_command, strace_command): Make static.
7820 * d-lang.c (_initialize_d_language): Declare.
7821 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
7822 * dwarf2loc.c (_initialize_dwarf2loc):
7823 * dwarf2read.c (process_psymtab_comp_unit): Make static.
7824 * exec.c (exec_get_section_table): Make static.
7825 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
7826 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
7827 * inferior.c (remove_inferior_command, add_inferior_command)
7828 (clone_inferior_command): Make static.
7829 * linux-nat.c (linux_nat_thread_address_space)
7830 (linux_nat_core_of_thread): Make static.
7831 * linux-tdep.c (_initialize_linux_tdep): Declare.
7832 * objc-lang.c (_initialize_objc_lang): Declare.
7833 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
7835 (_initialize_opencl_language): Declare.
7836 * record.c (_initialize_record): Declare.
7837 * remote.c (demand_private_info, remote_get_tib_address)
7838 (remote_supports_cond_tracepoints)
7839 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
7841 * skip.c (_initialize_step_skip): Declare.
7842 * symtab.c (skip_prologue_using_lineinfo): Make static.
7843 * tracepoint.c (delete_trace_state_variable)
7844 (trace_variable_command, delete_trace_variable_command)
7845 (get_uploaded_tsv, find_matching_tracepoint_location)
7846 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
7848 * value.c (pack_unsigned_long): Make static.
7849 * varobj.c (varobj_ensure_python_env): Make static.
7850 * windows-tdep.c (_initialize_windows_tdep): Declare.
7851 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
7853 2012-03-01 Pedro Alves <palves@redhat.com>
7855 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
7857 (linux_init_abi): Install it as has_shared_address_space gdbarch
7860 2012-03-01 Pedro Alves <palves@redhat.com>
7862 * observer.c (observer_test_first_notification_function)
7863 (observer_test_second_notification_function)
7864 (observer_test_third_notification_function): Add declarations.
7866 2012-03-01 Pedro Alves <palves@redhat.com>
7868 * common/signals.c (default_target_signal_to_host)
7869 (default_target_signal_from_host): Move ...
7870 * arch-utils.c: ... here.
7871 * arch-utils.h (default_target_signal_to_host)
7872 (default_target_signal_from_host): Declare.
7874 * common/signals.c (target_signal_from_command): Move ...
7875 * infrun.c: ... here.
7876 * inferior.h (target_signal_from_command): Declare.
7877 * target.h (target_signal_from_command)
7878 (default_target_signal_from_host, default_target_signal_to_host):
7879 Delete declarations.
7881 * common/signals.c (_initialize_signals): Delete.
7883 2012-03-01 Pedro Alves <palves@redhat.com>
7885 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
7886 both __cplusplus and !__cplusplus.
7888 2012-03-01 Pedro Alves <palves@redhat.com>
7890 * psymtab.c (find_and_open_source): Delete declaration.
7891 * source.c (find_and_open_source): Move comment ...
7892 * source.h (find_and_open_source): ... to this new declaration.
7894 2012-03-01 Pedro Alves <palves@redhat.com>
7896 * inline-frame.c: Include inline-frame.h.
7898 2012-03-01 Pedro Alves <palves@redhat.com>
7900 * tui/tui-data.c (set_gen_win_origin): Delete.
7901 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
7902 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
7904 2012-03-01 Pedro Alves <palves@redhat.com>
7906 * remote.c (encode_actions): Delete declaration.
7907 * tracepoint.c (encode_actions): Make extern.
7908 * tracepoint.h (encode_actions): Declare.
7910 2012-03-01 Pedro Alves <palves@redhat.com>
7912 * python/py-breakpoint.c: Include python.h.
7913 * python/py-continueevent.c (create_continue_event_object): Make
7915 * python/py-lazy-string.c (stpy_get_type): Make static.
7916 * python/py-newobjfileevent.c (create_new_objfile_event_object):
7918 * python/py-utils.c (unicode_to_target_python_string): Make
7920 * python/py-value.c: Include python.h.
7922 2012-03-01 Pedro Alves <palves@redhat.com>
7924 * inferior.c (delete_threads_of_inferior): Delete.
7926 2012-03-01 Pedro Alves <palves@redhat.com>
7928 Import fallback definitions from glibc.
7930 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
7931 ps_prochandle): Forward declare.
7932 (ps_err_e): Use glibc's comments.
7933 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7934 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7935 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
7936 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
7937 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
7938 (struct ps_prochandle): Adjust comment.
7940 2012-03-01 Pedro Alves <palves@redhat.com>
7942 * ada-lang.c (ada_modulus_from_name): Delete.
7943 * ada-lex.l (lexer_init): Make static.
7945 2012-03-01 Pedro Alves <palves@redhat.com>
7949 * frame.c (read_frame_register_unsigned): New.
7950 * frame.h (read_frame_register_unsigned): Declare.
7951 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
7953 (print_i387_control_word): New parameter `control_p'. Handle it.
7954 (i387_print_float_info): Handle unavailable float registers.
7956 2012-03-01 Keith Seitz <keiths@redhat.com>
7958 * linespec.c (decode_line_2): Sort the list of methods
7959 alphabetically before presenting the user with a selection
7962 2012-03-01 Doug Evans <dje@google.com>
7964 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
7966 (dwarf2_read_abbrevs): Remove corresponding initialization.
7968 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
7970 * NEWS: Mention new python command class gdb.COMMAND_USER.
7971 * cli/cli-cmds.c (show_user): Print error when used on a python
7973 (init_cli_cmds): Update documentation strings for "show user" and
7974 "set/show max-user-call-depth" to clarify that it does not apply to
7976 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
7978 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
7980 * top.c (execute_command): Only execute a user-defined command as a
7981 legacy macro if c->user_commands is set.
7983 2012-03-01 Tom Tromey <tromey@redhat.com>
7985 * valprint.h (struct generic_val_print_decorations): New.
7986 (generic_val_print): Declare.
7987 * valprint.c (generic_val_print): New function.
7988 * p-valprint.c (p_decorations): New global.
7989 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
7990 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
7991 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
7992 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
7993 * m2-valprint.c (m2_decorations): New global.
7994 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
7995 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
7996 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
7997 TYPE_CODE_ERROR>: Call generic_val_print.
7998 * f-valprint.c (f_decorations): New global.
7999 (f_val_print): Use print_function_pointer_address.
8000 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8001 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8002 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8004 * c-valprint.c (c_decorations): New global.
8005 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8006 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8007 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8008 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8009 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8010 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8013 2012-03-01 Tom Tromey <tromey@redhat.com>
8015 * valprint.c (val_print): Update.
8016 * p-valprint (pascal_val_print): Return void.
8017 * p-lang.h (pascal_val_print): Return void.
8018 * m2-valprint.c (m2_val_print): Return void.
8019 * m2-lang.h (m2_val_print): Return void.
8020 * language.h (struct language_defn) <la_val_print>: Return void.
8021 * language.c (unk_lang_val_print): Return void.
8022 * jv-valprint.c (java_val_print): Return void.
8023 * jv-lang.h (java_val_print): Return void.
8024 * f-valprint.c (f_val_print): Return void.
8025 * f-lang.h (f_val_print): Return void.
8026 * d-valprint.c (d_val_print): Return void.
8027 (dynamic_array_type): Update.
8028 * d-lang.h (d_val_print): Return void.
8029 * c-valprint.c (c_val_print): Return void.
8030 * c-lang.h (c_val_print): Return void.
8031 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8033 * ada-lang.h (ada_val_print): Return void.
8035 2012-03-01 Tom Tromey <tromey@redhat.com>
8037 * value.h (val_print): Return void.
8038 * valprint.c (val_print): Return void.
8040 2012-03-01 Tom Tromey <tromey@redhat.com>
8042 * value.h (common_val_print): Return void.
8043 * valprint.c (common_val_print): Return void.
8045 2012-03-01 Tom Tromey <tromey@redhat.com>
8047 * value.h (value_print): Return void.
8048 * valprint.c (value_print): Return void.
8049 * p-valprint.c (pascal_value_print): Return void.
8050 * p-lang.h (pascal_value_print): Return void.
8051 * language.h (struct language_defn) <la_value_print>: Return
8053 * language.c (unk_lang_value_print): Return void.
8054 * jv-valprint.c (java_value_print): Return void.
8055 * jv-lang.h (java_value_print): Return void.
8056 * f-valprint.c (c_value_print): Don't declare.
8058 * c-valprint.c (c_value_print): Return void.
8059 * c-lang.h (c_value_print): Return void.
8060 * ada-valprint.c (ada_value_print): Return void.
8061 * ada-lang.h (ada_value_print): Return void.
8063 2012-03-01 Tom Tromey <tromey@redhat.com>
8065 * value.c (value_primitive_field): Handle virtual base classes.
8067 2012-03-01 Tom Tromey <tromey@redhat.com>
8069 * gdbtypes.h (struct vbase): Remove.
8071 2012-03-01 Tom Tromey <tromey@redhat.com>
8073 * c-valprint.c (print_function_pointer_address): Move...
8074 * valprint.c: ... here. Make non-static.
8075 * m2-valprint.c (print_function_pointer_address): Remove.
8076 * valprint.h (print_function_pointer_address): Declare.
8078 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8080 * NEWS: Document the fact that one can provide a condition when
8081 creating an Ada exception catchpoint.
8083 2012-03-01 Tom Tromey <tromey@redhat.com>
8085 * valprint.c (val_print_type_code_flags): Fix placement of
8088 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8090 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8091 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8092 environment variable before calling update-copyright.
8094 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8096 * gnulib/extra/update-copyright: Update to the latest from
8097 gnulib's git repository.
8098 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8099 variable to 2 instead of 1.
8101 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8103 * varobj.c (c_value_of_variable): Remove dead code.
8105 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8107 * ada-lex.p (processId): Do not modify already encoded IDs.
8108 Update function documentation.
8110 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8112 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8113 "name" with "struct symbol *name_sym".
8114 * ada-exp.y (write_var_or_type): Update call to
8115 ada_find_renaming_symbol.
8116 "name" with "struct symbol *name_sym". Adjust Implementation
8117 accordingly. Adjust the function documentation.
8119 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8121 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8122 * ada-lang.c (ada_find_any_type): Add advance declaration.
8123 Make static. Replace ada_find_any_symbol by
8124 ada_find_any_type_symbol.
8125 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8126 Improve function description. Make static.
8127 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8128 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8130 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8132 * ada-lang.c (struct tag_args): Delete.
8133 (ada_get_tsd_type): Function body moved up in source file.
8134 (ada_tag_name_1, ada_tag_name_2): Delete.
8135 (ada_get_tsd_from_tag): New function.
8136 (ada_tag_name_from_tsd): New function.
8137 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8138 to determine the tag name.
8140 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8142 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8144 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8147 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8149 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8151 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8153 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8156 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8158 * ada-lang.c (constrained_packed_array_type): If there is a
8159 parallel XA type, use it to determine the array index type.
8161 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8163 * ada-valprint.c (ada_val_print_1): If our value is a reference
8164 to an array descriptor, dereference it before converting it
8167 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8169 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8170 creating fixed value.
8171 (ada_value_ind, ada_coerce_ref, assign_component)
8172 (ada_evaluate_subexp): Remove call to unwrap_value before
8173 call to ada_to_fixed_value.
8175 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8177 * ada-lang.c (to_fixed_array_type): Set result's type name.
8179 2012-02-29 Joel Brobecker <brobecker@adacore.com>
8181 * ada-lang.c (catch_ada_exception_command_split): Add new
8182 argument cond_string. Add support for condition at end of
8183 "catch exception" commands.
8184 (ada_decode_exception_location): Add new argument cond_string.
8185 Update call to catch_ada_exception_command_split.
8186 (create_ada_exception_catchpoint): Add new argument cond_string.
8187 Set the breakpoint condition if needed.
8188 (catch_ada_exception_command): Update call to
8189 ada_decode_exception_location.
8190 (ada_decode_assert_location): Add function documentation.
8191 Add support for condition at end of "catch assert" command.
8192 (catch_assert_command): Update calls to ada_decode_assert_location
8193 and create_ada_exception_catchpoint.
8195 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8197 Fix disp-step-syscall.exp: fork: single step over fork.
8198 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8199 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8200 comment, change parameters gdbarch and ptid to regcache. Remove
8201 parameter regcache, initialize gdbarch from regcache here.
8202 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8204 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8206 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8207 'syscall'. Make the 'int' check more strict.
8209 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8211 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8212 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8213 (i386_linux_intx80_sysenter_syscall_record): ... here.
8214 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8215 Use the renamed function name.
8217 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8219 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8220 * breakpoint.c (until_break_command): Likewise.
8221 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8222 * infcall.c (call_function_by_hand): Likewise.
8223 * infcmd.c (finish_forward): Likewise.
8224 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8226 2012-02-28 Tristan Gingold <gingold@adacore.com>
8228 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8229 avoid variable assignments inside condition.
8231 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8233 Fix static analysis issue found by cppcheck.
8234 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8235 uninitialized BUF for size 2.
8237 2012-02-27 Chris Dearman <chris@mips.com>
8238 Nathan Froyd <froydnj@codesourcery.com>
8239 Maciej W. Rozycki <macro@codesourcery.com>
8241 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8242 (mips16_instruction_has_delay_slot): Likewise.
8243 (mips_segment_boundary): Likewise.
8244 (mips_adjust_breakpoint_address): Likewise.
8245 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8247 2012-02-27 Maciej W. Rozycki <macro@mips.com>
8248 Maciej W. Rozycki <macro@codesourcery.com>
8250 * infrun.c (handle_inferior_event): Don't proceed through
8251 shared library trampolines if stepping at the machine
8254 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8256 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8259 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8261 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8262 (sh_stub_unwind_sniffer): New functions.
8263 (sh_stub_unwind): New variable.
8264 (sh_gdbarch_init): Wire everything.
8266 2012-02-27 Pedro Alves <palves@redhat.com>
8268 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8269 (linux_nat_post_attach_wait): Adjust to use
8270 linux_proc_pid_is_stopped.
8271 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8272 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8273 based on pid_is_stopped from both linux-nat.c and
8274 gdbserver/linux-low.c, and renamed.
8276 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8278 * remote.c (remote_watchpoint_addr_within_range): New function.
8279 (init_remote_ops): Use it.
8281 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8283 * target.h (target_watchpoint_addr_within_range): Document macro.
8285 2012-02-24 Pedro Alves <palves@redhat.com>
8287 * stack.c (set_last_displayed_sal): Issue internal_error instead
8288 of warning, and issue it after clearing the last displayed sal.
8290 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8291 Pedro Alves <palves@redhat.com>
8293 * breakpoint.c (until_break_command): Install breakpoints after
8294 all frame manipulations.
8296 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8298 * remote.c (remote_supports_cond_breakpoints): New forward
8300 (remote_add_target_side_condition): New function.
8301 (remote_insert_breakpoint): Add target-side breakpoint
8302 conditional if supported.
8303 (remote_insert_hw_breakpoint): Likewise.
8304 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8307 * target.c (update_current_target): Inherit
8308 to_supports_evaluation_of_breakpoint_conditions.
8309 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8311 * target.h (struct target_ops)
8312 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8313 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8315 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8316 (condition_evaluation_both, condition_evaluation_auto,
8317 condition_evaluation_host, condition_evaluation_target,
8318 condition_evaluation_enums, condition_evaluation_mode_1,
8319 condition_evaluation_mode): New static globals.
8320 (translate_condition_evaluation_mode): New function.
8321 (breakpoint_condition_evaluation_mode): New function.
8322 (gdb_evaluates_breakpoint_condition_p): New function.
8323 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8324 (mark_breakpoint_modified): New function.
8325 (mark_breakpoint_location_modified): New function.
8326 (set_condition_evaluation_mode): New function.
8327 (show_condition_evaluation_mode): New function.
8328 (bp_location_compare_addrs): New function.
8329 (get_first_location_gte_addr): New helper function.
8330 (set_breakpoint_condition): Free condition bytecode if locations
8331 has become unconditional. Call mark_breakpoint_modified (...).
8332 (condition_command): Call update_global_location_list (1) for
8334 (breakpoint_xfer_memory): Use is_breakpoint (...).
8335 (is_breakpoint): New function.
8336 (parse_cond_to_aexpr): New function.
8337 (build_target_condition_list): New function.
8338 (insert_bp_location): Handle target-side conditional
8339 breakpoints and call build_target_condition_list (...).
8340 (update_inserted_breakpoint_locations): New function.
8341 (insert_breakpoint_locations): Handle target-side conditional
8343 (bpstat_check_breakpoint_conditions): Add comment.
8344 (bp_condition_evaluator): New function.
8345 (bp_location_condition_evaluator): New function.
8346 (print_breakpoint_location): Print information on where the condition
8348 (print_one_breakpoint_location): Likewise.
8349 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8350 breakpoint location.
8351 (force_breakpoint_reinsertion): New functions.
8352 (update_global_location_list): Handle target-side breakpoint
8354 Reinsert locations that are already inserted if conditions have
8356 (bp_location_dtor): Free agent expression bytecode.
8357 (disable_breakpoint): Call mark_breakpoint_modified (...).
8358 Call update_global_location_list (...) with parameter 1 for breakpoints.
8359 (disable_command): Call mark_breakpoint_location_modified (...).
8360 Call update_global_location_list (...) with parameter 1 for breakpoints.
8361 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8362 (enable_command): mark_breakpoint_location_modified (...).
8363 (_initialize_breakpoint): Update documentation and add
8364 condition-evaluation breakpoint subcommand.
8366 * breakpoint.h: Include ax.h.
8367 (condition_list): New data structure.
8368 (condition_status): New enum.
8369 (bp_target_info) <cond_list>: New field.
8370 (bp_location) <condition_changed, cond_bytecode>: New fields.
8371 (is_breakpoint): New prototype.
8373 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8375 * remote.c (remote_state) <cond_breakpoints>: New field.
8376 (PACKET_ConditionalBreakpoints): New enum.
8377 (remote_cond_breakpoint_feature): New function.
8378 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8379 (remote_supports_cond_breakpoints): New function.
8380 (_initialize_remote): Add new packet configuration for
8381 target-side conditional breakpoints.
8383 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8385 * NEWS: Mention target-side conditional breakpoint support,
8386 new condition-evaluation breakpoint subcommand and remote
8389 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
8391 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8394 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8396 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8397 (after_prologue): Remove.
8399 2012-02-23 Tom Tromey <tromey@redhat.com>
8401 * jv-valprint.c (java_val_print): Remove dead code.
8403 2012-02-23 Tristan Gingold <gingold@adacore.com>
8405 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8406 known_tasks_element and known_tasks_length fields.
8407 (read_known_tasks_array): Change argument type. Use pointer type
8408 and number of elements from DATA. Adjust.
8409 (read_known_tasks_list): Likewise.
8410 (get_known_tasks_addr): Remove.
8411 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8412 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8413 type and array length. Merge former get_known_tasks_addr code.
8415 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8418 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8419 it after set_momentary_breakpoint.
8421 2012-02-22 Sterling Augustine <saugustine@google.com>
8424 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8426 2012-02-22 Gary Benson <gbenson@redhat.com>
8428 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8429 (find_slot_in_mapped_hash): Likewise.
8431 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8434 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8435 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8436 * configure: Regenerate.
8438 2012-02-21 Tristan Gingold <gingold@adacore.com>
8439 Pedro Alves <palves@redhat.com>
8441 * ia64-tdep.c: Do not include libunwind-ia64.h.
8442 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8443 Include libunwind-ia64.h instead of libunwind.h.
8444 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8445 for libunwind.h existence.
8446 * configure, config.in: Regenerate.
8448 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8450 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8451 instead of value_rtti_target_type.
8452 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8453 instead of value_rtti_target_type.
8454 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8455 value_rtti_target_type.
8456 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8457 (value_rtti_target_type): Rename to ...
8458 (value_rtti_indirect_type): ... here and make it indirect. Update
8460 * value.c (readjust_indirect_value_type): New function.
8461 (coerce_ref): Support for enclosing type setting for references
8462 with readjust_indirect_value_type.
8463 * value.h (readjust_value_type): New declaration.
8464 (value_rtti_target_type): Rename to ...
8465 (value_rtti_indirect_type): ... here.
8467 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8469 * MAINTAINERS (Write After Approval): Add myself to the list.
8471 2012-02-20 Doug Evans <dje@google.com>
8473 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8474 Rename objfile_p_char parameter to objfilep.
8475 (build_objfile_section_table): Result is now void. All callers
8477 * objfiles.h (struct objfile): Tweak comments, whitespace.
8478 (build_objfile_section_table): Update.
8480 * elfread.c (elf_symfile_segments): Fix warning text.
8482 2012-02-20 Tom Tromey <tromey@redhat.com>
8485 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8486 particular set of file names once.
8487 (dw2_map_symbol_filenames): Likewise.
8489 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8492 * main.c (write_files): Remove the declaration.
8493 (external_editor_command): Move the declaration ...
8494 [GDBTK] (external_editor_command): ... here. Fix the comment.
8496 2012-02-20 Tom Tromey <tromey@redhat.com>
8498 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8501 2012-02-20 Tristan Gingold <gingold@adacore.com>
8503 * darwin-nat.h (enum darwin_msg_state): Add comments.
8505 2012-02-20 Tristan Gingold <gingold@adacore.com>
8507 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8510 2012-20-18 Joel Brobecker <brobecker@adacore.com>
8512 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8513 between function description and implementation.
8515 2012-02-17 Tom Tromey <tromey@redhat.com>
8518 * python/py-event.c (event_object_getset): New global.
8519 (event_object_type): Reference it.
8520 * python/py-type.c (field_object_getset): New global.
8521 (field_object_type): Reference it.
8522 * python/python-internal.h (gdb_py_generic_dict): Declare.
8523 * python/py-utils.c (gdb_py_generic_dict): New function.
8525 2012-02-17 Tristan Gingold <gingold@adacore.com>
8527 * solib-darwin.c (darwin_current_sos): Check magic and filetype
8529 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8531 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8532 TYPE_CALLING_CONVENTION annotation.
8534 2012-02-16 Kevin Buettner <kevinb@redhat.com>
8536 * MAINTAINERS: Add rx to target ISA section.
8537 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8538 (ALLDEPFILES): Add rx-tdep.c.
8540 2012-02-16 Tom Tromey <tromey@redhat.com>
8542 * symfile.c (symbol_file_add_main_1): Use inferior's
8544 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8545 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8547 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8549 (follow_exec): Use inferior's symfile_flags.
8550 * inferior.h (struct inferior) <symfile_flags>: New field.
8552 2012-02-16 Mike Frysinger <vapier@gentoo.org>
8555 * remote-sim.c (gdbsim_create_inferior): Call error() when
8556 sim_create_inferior() fails.
8558 2012-02-16 Josh Matthews <josh@joshmatthews.net>
8560 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8562 2012-02-16 Tom Tromey <tromey@redhat.com>
8565 * thread.c (struct current_thread_cleanup) <was_removable>: New
8567 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8568 (make_cleanup_restore_current_thread): Initialize new field.
8570 2012-02-15 Kevin Buettner <kevinb@redhat.com>
8572 * MAINTAINERS: Add rl78 to target ISA section.
8573 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8574 (ALLDEPFILES): Add rl78-tdep.c.
8575 * NEWS: Mention rl78 as a new target.
8577 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8579 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8581 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8583 2012-02-15 Tom Tromey <tromey@redhat.com>
8586 * infcmd.c (registers_info): Print just the current register's
8589 2012-02-15 Tom Tromey <tromey@redhat.com>
8591 * python/py-symbol.c (sympy_value): Use _().
8593 2012-02-15 Pedro Alves <palves@redhat.com>
8595 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8596 output to be like native targets'.
8597 (remote_pid_to_str): Special case the null ptid.
8599 2012-02-14 Stan Shebs <stan@codesourcery.com>
8601 * NEWS: Mention enable count command.
8602 * breakpoint.h (struct breakpoint): New field enable_count.
8603 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8604 (enable_breakpoint): Add arg to call.
8605 (struct disp_data): New struct.
8606 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8607 (do_map_enable_once_breakpoint): Create a struct and pass it.
8608 (do_map_enable_delete_breakpoint): Ditto.
8609 (do_map_enable_count_breakpoint): New function.
8610 (enable_count_command): New function.
8611 (bpstat_stop_status): Decrement enable_count.
8612 (print_one_breakpoint_location): Report enable count.
8613 (_initialize_breakpoint): Add enable count command.
8615 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8617 * rl78-tdep.c (reggroups.h): Include.
8618 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8619 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8620 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8621 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8622 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8623 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8624 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8625 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8626 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8627 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8628 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8629 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8630 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8631 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8632 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8633 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8634 beginning of register list.
8635 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8636 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8637 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8638 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8639 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8640 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8641 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8642 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8643 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8644 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8645 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8646 the pseudo registers. Rearrange other pseudo registers too so
8647 that the bank registers appear at the end.
8648 (rl78_register_type): Account for the fact that the byte sized
8649 bank registers are now pseudo-registers.
8650 (rl78_register_name): Rearrange the register name array. Make
8651 initial set of raw banked registers inaccessible.
8652 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8653 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8654 case for copying bytes back and forth between raw and pseudo
8655 versions of the banked registers. Update other cases to reflect
8657 (rl78_return_value): Update to account for changed names of
8659 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8660 rl78_register_sim_regno().
8662 2012-02-14 Kevin Buettner <kevinb@redhat.com>
8664 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8665 the name parameter being passed to find_pc_partial_function().
8667 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8669 * MAINTAINERS: Step down from being ia64 target maintainer.
8671 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8673 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8674 compilation warning.
8676 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8678 Fix crash on loaded shlibs without loaded exec_bfd.
8679 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8680 (set_section_command): Replace exec_bfd by p->bfd.
8682 2012-02-10 Tom Tromey <tromey@redhat.com>
8684 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8685 when we have a C++ qualified name.
8687 2012-02-10 Pedro Alves <palves@redhat.com>
8689 * inferior.c (inferior_pid_to_str): New.
8690 (print_inferior, inferior_command): Use it.
8692 2012-02-10 Pedro Alves <palves@redhat.com>
8694 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8696 * configure: Regenerate.
8698 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8700 * linespec.c (decode_line_internal): Fix comment correctness.
8702 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
8705 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
8706 * amd64bsd-nat.c: Add support for debug registers (adapted from
8708 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
8709 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
8710 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
8711 (amd64bsd_dr_get_control): New functions.
8712 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
8713 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
8714 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
8715 watchpoints initialization.
8716 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
8718 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8720 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
8722 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
8724 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8726 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
8728 2012-02-08 Joel Brobecker <brobecker@adacore.com>
8730 * language.h (symbol_name_cmp_ftype): Renames
8731 symbol_name_match_p_ftype.
8732 (struct language_defn)[la_get_symbol_name_cmp]: Renames
8733 la_get_symbol_name_match_p.
8734 * ada-lang.c (ada_get_symbol_name_cmp): Renames
8735 ada_get_symbol_name_match_p. Update comment.
8736 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
8737 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
8738 Renames symbol_name_match_p. Update field type.
8739 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
8740 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8741 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
8742 "la_get_symbol_name_cmp" in comments.
8743 * language.c: Likewise.
8745 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8747 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
8749 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
8750 (amd64_sol2_gregset32_reg_offs): Likewise.
8752 2012-02-08 Joel Brobecker <brobecker@adacore.com>
8754 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
8755 of the returned BFD is allocated by GDB.
8757 2012-02-07 Tom Tromey <tromey@redhat.com>
8760 * python/python-internal.h (frame_object_type): Declare.
8761 * python/py-symbol.c (sympy_needs_frame): New function.
8762 (sympy_value): New function.
8763 (symbol_object_getset): Add "needs_frame".
8764 (symbol_object_methods): Add "value".
8765 * python/py-frame.c (frame_object_type): No longer static.
8767 2012-02-07 Tom Tromey <tromey@redhat.com>
8770 * python/py-symbol.c (sympy_line): New function.
8771 (symbol_object_getset): Add "line".
8773 2012-02-07 Tom Tromey <tromey@redhat.com>
8775 * charset.c (find_charset_names): Check 'in' against NULL.
8777 2012-02-06 Doug Evans <dje@google.com>
8779 * gdbtypes.h (struct main_type): Change type of name,tag_name,
8780 and fields.name members from char * to const char *. All uses updated.
8781 (struct cplus_struct_type): Change type of fn_fieldlists.name member
8782 from char * to const char *. All uses updated.
8783 (type_name_no_tag): Update.
8784 (lookup_unsigned_typename, lookup_signed_typename): Update.
8785 * gdbtypes.c (type_name_no_tag): Change result type
8786 from char * to const char *. All callers updated.
8787 (lookup_unsigned_typename, lookup_signed_typename): Change type of
8788 name parameter from char * to const char *.
8789 * symtab.h (struct cplus_specific): Change type of demangled_name
8790 member from char * to const char *. All uses updated.
8791 (struct general_symbol_info): Change type of name and
8792 mangled_lang.demangled_name members from char * to const char *.
8794 (symbol_get_demangled_name, symbol_natural_name): Update.
8795 (symbol_demangled_name, symbol_search_name): Update.
8796 * symtab.c (symbol_get_demangled_name): Change result type
8797 from char * to const char *. All callers updated.
8798 (symbol_natural_name, symbol_demangled_name): Ditto.
8799 (symbol_search_name): Ditto.
8800 (completion_list_add_name): Change type of symname,sym_text,
8801 text,word parameters from char * to const char *.
8802 (completion_list_objc_symbol): Change type of sym_text,
8803 text,word parameters from char * to const char *.
8804 * ada-lang.c (find_struct_field): Change type of name parameter
8805 from char * to const char *.
8806 (encoded_ordered_before): Similarly for N0,N1 parameters.
8807 (old_renaming_is_invisible): Similarly for function_name parameter.
8808 (ada_type_name): Change result type from char * to const char *.
8809 All callers updated.
8810 * ada-lang.h (ada_type_name): Update.
8811 * buildsym.c (hashname): Change type of name parameter
8812 from char * to const char *.
8813 * buildsym.h (hashname): Update.
8814 * dbxread.c (end_psymtab): Change type of include_list parameter
8815 from char ** to const char **.
8816 * dwarf2read.c (determine_prefix): Change result type
8817 from char * to const char *. All callers updated.
8818 * f-lang.c (find_common_for_function): Change type of name, funcname
8819 parameters from char * to const char *.
8820 * f-lang.c (find_common_for_function): Update.
8821 * f-valprint.c (list_all_visible_commons): Change type of funcname
8822 parameters from char * to const char *.
8823 * gdbarch.sh (static_transform_name): Change type of name parameter
8824 and result from char * to const char *.
8825 * gdbarch.c: Regenerate.
8826 * gdbarch.h: Regenerate.
8827 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
8828 of name parameter from char * to const char *.
8829 * jv-lang.c (java_primitive_type_from_name): Ditto.
8830 (java_demangled_signature_length): Similarly for signature parameter.
8831 (java_demangled_signature_copy): Ditto.
8832 (java_demangle_type_signature): Ditto.
8833 * jv-lang.h (java_primitive_type_from_name): Update.
8834 (java_demangle_type_signature): Update.
8835 * objc-lang.c (specialcmp): Change type of a,b parameters
8836 from char * to const char *.
8837 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
8838 from char * to const char *. All callers updated.
8839 * p-lang.h (is_pascal_string_type): Update.
8840 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
8841 of name parameter from char * to const char *.
8842 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
8843 * utils.c (fprintf_symbol_filtered): Ditto.
8844 * defs.h (fprintf_symbol_filtered): Update.
8845 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
8846 * stabsread.h (end_psymtab): Update.
8847 * stack.c (find_frame_funname): Change type of funname parameter
8848 from char ** to const char **.
8849 * stack.h (find_frame_funname): Update.
8850 * typeprint.c (type_print): Change type of varstring parameter
8851 from char * to const char *.
8852 * value.h (type_print): Update.
8853 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
8854 from char * to const char *. All callers updated.
8855 (xcoff_end_psymtab): Change type of include_list parameter
8856 from char ** to const char **. All callers updated.
8857 (swap_sym): Similarly for name parameter. All callers updated.
8858 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
8860 (process_coff_symbol): Use xstrdup.
8861 * stabsread.c (stabs_method_name_from_physname): Renamed from
8862 update_method_name_from_physname. Change result type from void
8863 to char *. All callers updated.
8864 (read_member_functions): In has_destructor case, store name in objfile
8865 obstack instead of malloc space. In !has_stub case, fix mem leak.
8867 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
8869 * configure: Rebuild.
8870 * configure.ac: Put -L../bfd and -L../libiberty at the front of
8873 2012-02-03 Kevin Buettner <kevinb@redhat.com>
8875 * configure.tgt (rl78-*-elf): New target.
8876 * rl78-tdep.c: New file.
8878 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8880 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
8881 and continue the loop. Add QUIT statement.
8883 2012-02-03 Tom Tromey <tromey@redhat.com>
8886 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
8887 bfd_lookup_symbol_from_symtab.
8888 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
8889 gdb_bfd_lookup_symbol_from_symtab.
8891 2012-02-03 Joel Brobecker <brobecker@adacore.com>
8893 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
8894 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
8895 symbol. Add assertion that sym2 is never NULL.
8897 2012-02-02 Doug Evans <dje@google.com>
8899 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
8900 "name" parameter to const char ** from char **. All callers updated.
8901 (find_pc_partial_function): Ditto.
8902 (cache_pc_function_name): Change type to const char * from char *.
8903 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
8904 (find_pc_partial_function): Update.
8905 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
8906 type of "name" parameter to const char * from char *.
8908 * arch-utils.c (generic_in_solib_return_trampoline): Change
8909 type of "name" parameter to const char * from char *.
8910 * arch-utils.h (generic_in_solib_return_trampoline): Update.
8911 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
8912 type of "name" parameter to const char * from char *.
8913 * gdbarch.sh (in_solib_return_trampoline): Ditto.
8914 * gdbarch.c: Regenerate.
8915 * gdbarch.h: Regenerate.
8916 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
8917 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
8918 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
8919 type of "name" parameter to const char * from char *.
8920 * skip.c (skip_function_pc): Ditto.
8921 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
8922 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
8923 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
8924 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
8925 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
8926 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
8927 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
8928 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
8929 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
8931 2012-02-02 Pedro Alves <palves@redhat.com>
8933 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
8934 the current inferior has no execution. Make sure the current
8935 remote process matches gdb's current inferior.
8937 2012-02-02 Tom Tromey <tromey@redhat.com>
8940 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
8943 2012-02-02 Tom Tromey <tromey@redhat.com>
8946 * symtab.c (lookup_language_this): Set block_found.
8948 2012-02-01 Tom Tromey <tromey@redhat.com>
8951 * jit.c (struct jit_inferior_data): Rewrite.
8952 (struct jit_objfile_data): New.
8953 (get_jit_objfile_data): New function.
8954 (add_objfile_entry): Update.
8955 (jit_read_descriptor): Return int. Replace descriptor_addr
8956 argument with inf_data. Update. Don't call error.
8957 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
8959 (jit_inferior_init): Don't look up descriptor. Don't call error.
8960 (jit_reset_inferior_data_and_breakpoints)
8961 (jit_inferior_created_observer): Remove.
8962 (jit_inferior_exit_hook): Update.
8963 (jit_executable_changed_observer): Remove.
8964 (jit_event_handler): Update.
8965 (free_objfile_data): Reset inferior data if needed.
8966 (_initialize_jit): Update.
8968 2012-02-01 Tom Tromey <tromey@redhat.com>
8970 * jit.c (bfd_open_from_target_memory): Move higher in file.
8972 2012-02-01 Tristan Gingold <gingold@adacore.com>
8974 * libunwind-frame.c (libunwind_load): Display message if dlopen
8977 2012-02-01 Gary Benson <gbenson@redhat.com>
8979 * symtab.h (symbol_found_callback_ftype): New typedef.
8980 (iterate_over_symbols): Use the above.
8981 * symtab.c (iterate_over_symbols): Likewise.
8982 * language.h (language_defn->la_iterate_over_symbols): Likewise.
8983 * ada-lang.c (ada_iterate_over_symbols): Likewise.
8984 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
8985 (iterate_name_matcher): Document return values.
8986 (collect_one_symbol): Likewise.
8987 (collect_function_symbols): Likewise.
8988 (collect_symbols): Likewise.
8990 2012-02-01 Tom Tromey <tromey@redhat.com>
8992 * ada-lang.c (resolve_subexp): Update.
8993 (ada_lookup_symbol_list): Add 'full_search' argument.
8994 (ada_iterate_over_symbols): Pass 0 as full_search argument to
8995 ada_lookup_symbol_list.
8996 (ada_lookup_encoded_symbol): Update.
8997 (get_var_value): Update.
8998 * ada-exp.y (block_lookup): Update.
8999 (write_var_or_type): Update.
9000 (write_name_assoc): Update.
9001 * ada-lang.h (ada_lookup_symbol_list): Update.
9003 2012-01-31 Tom Tromey <tromey@redhat.com>
9005 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9008 2012-01-31 Doug Evans <dje@google.com>
9010 * symtab.h: Remove outdated comment.
9011 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
9013 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9015 Fix build error in Darwin port.
9016 * i386-darwin-nat.c: Include i386-nat.h.
9018 2012-01-30 Tom Tromey <tromey@redhat.com>
9020 PR breakpoints/13568:
9021 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9022 argument. Check for recursive includes.
9023 (dwarf_decode_macros): Create an include hash.
9025 2012-01-30 Michael Eager <eager@eagercon.com>
9027 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9028 * ppc-linux-tdep.c: Include glibc-tdep.h.
9029 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
9030 (powerpc_linux_in_plt_stub): New function.
9031 (powerpc_linux_in_dynsym_resolve_code): New function.
9032 (ppc_skip_trampoline_code): New function.
9033 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9034 Use glibc_skip_solib_resolver.
9036 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9038 Code cleanup: Make 1440 bytes of data segment read-only.
9039 * arch-utils.c (endian_enum): Make it const char *const [].
9040 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9042 * breakpoint.c (always_inserted_enums): Likewise.
9043 * cli/cli-cmds.c (script_ext_enums): Likewise.
9044 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9045 enumlist parameter const char *const *.
9046 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9047 const char *const *.
9048 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9049 parameter const char *const *.
9050 * cris-tdep.c (cris_modes): Make it const char *const [].
9051 * filesystem.c (target_file_system_kinds): Likewise.
9052 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9053 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9054 (can_use_displaced_stepping_enum, scheduler_enums)
9055 (exec_direction_names): Likewise.
9056 * language.c (_initialize_language): Make the type_or_range_names and
9057 case_sensitive_names variables const char *const [].
9058 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9059 * python/python.c (python_excp_enums): Likewise.
9060 * remote.c (interrupt_sequence_modes): Likewise.
9061 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9062 * serial.c (logbase_enums): Likewise.
9063 * sh-tdep.c (sh_cc_enum): Likewise.
9064 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9066 * symtab.c (multiple_symbols_modes): Likewise.
9067 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9069 * utils.c (internal_problem_modes): Likewise.
9071 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9073 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9074 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9077 2012-01-27 Doug Evans <dje@google.com>
9079 * configure.ac (with_python): Fix absolute path handling for win32.
9080 * configure: Regenerate.
9082 2012-01-26 Doug Evans <dje@google.com>
9084 * symtab.c: Whitespace cleanup, no code changes.
9086 * symtab.c (lookup_symbol_in_language): Improve comment.
9087 (lookup_symbol_aux): Fix comment.
9089 * psymtab.c (add_psymbol_to_list): Result is now "void".
9090 * psympriv.h (add_psymbol_to_list): Update.
9092 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9094 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9096 Do not open script filenames twice.
9097 * cli/cli-cmds.c (source_script_from_stream): Pass to
9098 source_python_script also STREAM.
9099 * python/py-auto-load.c (source_section_scripts): Pass to
9100 source_python_script_for_objfile also STREAM.
9101 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9103 * python/python-internal.h (source_python_script_for_objfile): New
9104 parameter file, rename parameter file to filename.
9105 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9106 instead if !_WIN32. Update the function comment.
9107 (source_python_script, source_python_script_for_objfile)
9108 (source_python_script): New parameter file, rename parameter file to
9109 filename. Pass FILENAME to python_run_simple_file.
9110 * python/python.h (source_python_script): New parameter file, rename
9111 parameter file to filename.
9113 2012-01-26 Pedro Alves <palves@redhat.com>
9115 * corelow.c (core_has_fake_pid): Delete.
9116 (core_close): Delete references to `core_has_fake_pid'.
9117 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9118 (core_open): Delete references to `core_has_fake_pid'.
9119 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9122 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9124 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9125 Remove language parameter from name_matcher. Adjust the comment.
9126 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9127 Remove language parameter.
9128 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9129 * linespec.c (iterate_name_matcher): Likewise.
9130 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9131 name_matcher. Adjust call accordingly.
9132 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9133 (maintenance_check_symtabs): Adjust type of parameter "fun".
9134 * psymtab.h (maintenance_check_symtabs): Likewise.
9136 2012-01-26 Joel Brobecker <brobecker@adacore.com>
9138 * language.h (symbol_name_match_p_ftype): New typedef.
9139 (struct language_defn): Replace field la_symbol_name_compare
9140 by la_get_symbol_name_match_p.
9141 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9142 (ada_language_defn): Use it.
9143 * linespec.c (struct symbol_matcher_data): New type.
9144 (iterate_name_matcher): Rewrite.
9145 (iterate_over_all_matching_symtabs): Pass a pointer to
9146 a symbol_matcher_data struct to expand_symtabs_matching
9147 instead of just the lookup name.
9148 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9149 opencl-lang.c, p-lang.c, language.c: Delete field
9150 la_symbol_name_compare, and replace by NULL for new field
9151 la_get_symbol_name_match_p.
9152 * symfile.h (struct quick_symbol_functions): Update comment.
9154 2012-01-25 Tom Tromey <tromey@redhat.com>
9156 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9159 2012-01-24 Tom Tromey <tromey@redhat.com>
9162 * solib.c (update_solib_list): Update the program space's
9163 added_solibs and deleted_solibs fields.
9164 * progspace.h (struct program_space) <added_solibs,
9165 deleted_solibs>: New fields.
9166 (clear_program_space_solib_cache): Declare.
9167 * progspace.c (release_program_space): Call
9168 clear_program_space_solib_cache.
9169 (clear_program_space_solib_cache): New function.
9170 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9171 bpstat_stop_status. Use handle_solib_event.
9172 * breakpoint.c: Include gdb_regex.h.
9173 (print_solib_event): New function.
9174 (bpstat_print): Use print_solib_event.
9175 (bpstat_stop_status): Add special case for bp_shlib_event.
9176 (handle_solib_event): New function.
9177 (bpstat_what): Use handle_solib_event.
9178 (struct solib_catchpoint): New.
9179 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9180 (breakpoint_hit_catch_solib, check_status_catch_solib)
9181 (print_it_catch_solib, print_one_catch_solib)
9182 (print_mention_catch_solib, print_recreate_catch_solib): New
9184 (catch_solib_breakpoint_ops): New global.
9185 (catch_load_or_unload, catch_load_command_1)
9186 (catch_unload_command_1): New functions.
9187 (internal_bkpt_check_status): Add special case for
9189 (internal_bkpt_print_it): Use print_solib_event.
9190 (initialize_breakpoint_ops): Initialize
9191 catch_solib_breakpoint_ops.
9192 (_initialize_breakpoint): Register "catch load" and "catch
9194 * breakpoint.h (handle_solib_event): Declare.
9195 * NEWS: Add entry for "catch load" and "catch unload".
9197 2012-01-24 Tom Tromey <tromey@redhat.com>
9199 * ada-lang.c: Include gdb_vecs.h.
9200 * charset.c: Include gdb_vecs.h.
9201 * tracepoint.h: Include gdb_vecs.h.
9202 * gdb_vecs.h: New file.
9204 2012-01-24 Pedro Alves <pedro@codesourcery.com>
9206 * breakpoint.c (breakpoint_hit_catch_fork)
9207 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9208 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9209 * infrun.c (inferior_has_forked, inferior_has_vforked)
9210 (inferior_has_execd, inferior_has_called_syscall): Delete.
9211 (handle_syscall_event): Get syscall_number from the execution
9212 control state's wait status.
9213 (wait_for_inferior): Don't clear syscall_number.
9215 2012-01-24 Pedro Alves <palves@redhat.com>
9217 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9218 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9219 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9220 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9222 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9223 false for events other than TARGET_SIGNAL_TRAP.
9224 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9226 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9227 events other than TARGET_SIGNAL_TRAP.
9228 (tracepoint_breakpoint_hit): Add `ws' parameter.
9229 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9231 (bpstat_stop_status): Same.
9232 (pc_at_non_inline_function): Same.
9233 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9234 to pass the current event's waitstatus to bpstat_stop_status
9235 and pc_at_non_inline_function.
9237 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9240 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9241 Update the function comment for it.
9242 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9243 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9246 2012-01-24 Pedro Alves <palves@redhat.com>
9248 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9249 outside `bs->stop' block.
9250 (bpstat_what): Rework bp_shlib_event handling.
9251 (internal_bkpt_check_status): If the breakpoint is a
9252 bp_shlib_event, then set bs->stop and bs->print if
9253 stop_on_solib_events is set.
9255 2012-01-24 Gary Benson <gbenson@redhat.com>
9257 Delete #if 0'd out code.
9258 * stack.c (print_frame_label_vars): Remove.
9259 (catch_info): Likewise.
9260 (_initialize_stack): Remove "info catch" command.
9261 * NEWS: Mention the above.
9263 2012-01-24 Pedro Alves <palves@redhat.com>
9265 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9267 (remote_notice_new_inferior): If the remote end doesn't support
9268 the multiprocess extensions, then the PID is fake.
9269 (add_current_inferior_and_thread): New.
9270 (remote_start_remote): Use it.
9271 (extended_remote_attach_1): Adjust.
9272 (extended_remote_create_inferior_1): Use
9273 add_current_inferior_and_thread.
9275 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9277 Fix watchpoints to be specific for each inferior.
9278 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9279 current_program_space.
9280 * i386-nat.c (i386_inferior_data_cleanup): New.
9281 (i386_inferior_data_get): Replace variable inf_data_local by an
9283 (i386_use_watchpoints): Initialize i386_inferior_data.
9284 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9285 specific iterate_over_lwps.
9287 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9289 Fix watchpoints across inferior fork.
9290 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9291 comment for linux_nat_iterate_watchpoint_lwps.
9292 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9293 linux_nat_iterate_watchpoint_lwps.
9294 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9295 * i386-linux-nat.c (update_debug_registers_callback): Update the
9296 comment for linux_nat_iterate_watchpoint_lwps.
9297 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9298 linux_nat_iterate_watchpoint_lwps.
9299 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9300 * i386-nat.c: Include inferior.h.
9301 (dr_mirror): Remove.
9302 (i386_inferior_data, struct i386_inferior_data)
9303 (i386_inferior_data_get): New.
9304 (i386_debug_reg_state): Use i386_inferior_data_get.
9305 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9306 (i386_insert_watchpoint, i386_remove_watchpoint)
9307 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9308 (i386_remove_hw_breakpoint): New variable state, use
9309 i386_debug_reg_state instead of DR_MIRROR.
9310 * linux-nat.c (delete_lwp): New declaration.
9311 (num_lwps): Move here from downwards.
9312 (delete_lwp_cleanup): New.
9313 (linux_child_follow_fork): Create new child_lp, call
9314 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9316 (num_lwps): Move upwards.
9317 (linux_nat_iterate_watchpoint_lwps): New.
9318 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9319 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9321 2012-01-24 Joel Brobecker <brobecker@adacore.com>
9325 2012-01-23 Pedro Alves <palves@redhat.com>
9327 * top.c (caution): Rename to ...
9328 (confirm): ... this.
9329 (show_caution): Rename to ...
9330 (show_confirm): ... this.
9331 (quit_cover): Adjust.
9332 (init_main): Adjust.
9333 * top.h (caution): Rename to ...
9334 (confirm): ... this.
9335 * utils.c (internal_vproblem, defaulted_query): Adjust.
9337 2012-01-23 Pedro Alves <palves@redhat.com>
9339 * top.c (caution): Update comment.
9340 (execute_command): Don't consider the current value of `caution'.
9342 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9344 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9346 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9348 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9349 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9350 * target.c (target_fileio_pwrite): Remove buffer address from
9352 (target_fileio_pread): Likewise.
9354 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9356 * NEWS: Document remote "info proc" and "generate-core-file".
9358 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9360 * gdbarch.sh (find_memory_regions): New callback.
9361 * gdbarch.c, gdbarch.h: Regenerate.
9363 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9364 callback before falling back to target method.
9366 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9367 (linux_target_install_ops): No longer install it.
9369 * linux-tdep.c (linux_find_memory_regions): New function.
9370 (linux_init_abi): Install it.
9372 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9374 * gdbarch.sh (make_corefile_notes): New architecture callback.
9375 * gdbarch.c: Regenerate.
9376 * gdbarch.h: Likewise.
9378 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9379 before target_make_corefile_notes. If NULL is returned, the
9380 target does not support core file generation.
9382 * linux-nat.c: Include "linux-tdep.h".
9383 (find_signalled_thread, find_stop_signal): Remove.
9384 (linux_nat_do_thread_registers): Likewise.
9385 (struct linux_nat_corefile_thread_data): Likewise.
9386 (linux_nat_corefile_thread_callback): Likewise.
9387 (iterate_over_spus): Likewise.
9388 (struct linux_spu_corefile_data): Likewise.
9389 (linux_spu_corefile_callback): Likewise.
9390 (linux_spu_make_corefile_notes): Likewise.
9391 (linux_nat_collect_thread_registers): New function.
9392 (linux_nat_make_corefile_notes): Replace contents by call to
9393 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9394 as native-only callback.
9396 * linux-tdep.h: Include "bfd.h".
9397 (struct regcache): Add forward declaration.
9398 (linux_collect_thread_registers_ftype): New typedef.
9399 (linux_make_corefile_notes): Add prototype.
9400 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9401 "regset.h", and "elf-bfd.h".
9402 (find_signalled_thread, find_stop_signal): New functions.
9403 (linux_spu_make_corefile_notes): Likewise.
9404 (linux_collect_thread_registers): Likewise.
9405 (struct linux_corefile_thread_data): New data structure.
9406 (linux_corefile_thread_callback): New funcion.
9407 (linux_make_corefile_notes): Likewise.
9408 (linux_make_corefile_notes_1): Likewise.
9409 (linux_init_abi): Install it.
9411 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9413 * gdbarch.sh (info_proc): New callback.
9414 * gdbarch.c, gdbarch.h: Regenerate.
9416 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9417 before falling back to the target info_proc callback.
9419 * linux-nat.c: Do not include "cli/cli-utils.h".
9420 (linux_nat_info_proc): Remove.
9421 (linux_target_install_ops): No longer install it.
9423 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9424 (read_mapping): New function.
9425 (linux_info_proc): Likewise.
9426 (linux_init_abi): Install it.
9428 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9430 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9431 * infcmd.c: (info_proc_cmd_1): New function.
9432 (info_proc_cmd): New function, moved here from equivalent routine
9433 orignally in linux-nat.c.
9434 (info_proc_cmd_mappings): Likewise.
9435 (info_proc_cmd_stat): Likewise.
9436 (info_proc_cmd_status): Likewise.
9437 (info_proc_cmd_cwd): Likewise.
9438 (info_proc_cmd_cmdline): Likewise.
9439 (info_proc_cmd_exe): Likewise.
9440 (info_proc_cmd_all): Likewise.
9441 (_initialize_infcmd): Install "info proc" command and subcommands.
9443 * target.h (struct target_ops): Add to_info_proc.
9444 (target_info_proc): Add prototype.
9445 * target.c (target_info_proc): New function.
9447 * procfs.c (procfs_info_proc): Add prototype.
9448 (info_proc_cmd): Rename into ...
9449 (procfs_info_proc): ... this. Update argument types as appropriate
9450 for a to_info_proc implementation. Handle "what" argument.
9451 (procfs_target): Install procfs_info_proc.
9452 (_initialize_procfs): No longer install "info proc" command.
9454 * linux-nat.c: (enum info_proc_what): Remove.
9455 (linux_nat_info_proc_cmd_1): Rename into ...
9456 (linux_nat_info_proc): ... this. Update argument types as appropriate
9457 for a to_info_proc implementation.
9458 (linux_nat_info_proc_cmd): Remove.
9459 (linux_nat_info_proc_cmd_mappings): Likewise.
9460 (linux_nat_info_proc_cmd_stat): Likewise.
9461 (linux_nat_info_proc_cmd_status): Likewise.
9462 (linux_nat_info_proc_cmd_cwd): Likewise.
9463 (linux_nat_info_proc_cmd_cmdline): Likewise.
9464 (linux_nat_info_proc_cmd_exe): Likewise.
9465 (linux_nat_info_proc_cmd_all): Likewise.
9466 (linux_target_install_ops): Install linux_nat_info_proc.
9467 (_initialize_linux_nat): No longer install "info proc" command
9470 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9472 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9473 * config.in, configure: Regenerate.
9475 * target.h (struct target_ops): Add to_fileio_readlink.
9476 (target_fileio_readlink): Add prototype.
9477 * target.c (target_fileio_readlink): New function.
9479 * inf-child.c: Conditionally include <sys/param.h>.
9480 (inf_child_fileio_readlink): New function.
9481 (inf_child_target): Install it.
9483 * remote.c (PACKET_vFile_readlink): New enum value.
9484 (remote_hostio_readlink): New function.
9485 (init_remote_ops): Install it.
9486 (_initialize_remote): Handle vFile:readlink packet type.
9488 2012-01-20 Pedro Alves <palves@redhat.com>
9489 Ulrich Weigand <ulrich.weigand@linaro.org>
9491 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9492 * config.in, configure: Regenerate.
9494 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9495 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9496 (target_fileio_open): Add prototype.
9497 (target_fileio_pwrite): Likewise.
9498 (target_fileio_pread): Likewise.
9499 (target_fileio_close): Likewise.
9500 (target_fileio_unlink): Likewise.
9501 (target_fileio_read_alloc): Likewise.
9502 (target_fileio_read_stralloc): Likewise.
9504 * target.c: Include "gdb/fileio.h".
9505 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9506 (default_fileio_target): New function.
9507 (target_fileio_open): Likewise.
9508 (target_fileio_pwrite): Likewise.
9509 (target_fileio_pread): Likewise.
9510 (target_fileio_close): Likewise.
9511 (target_fileio_unlink): Likewise.
9512 (target_fileio_close_cleanup): Likewise.
9513 (target_fileio_read_alloc_1): Likewise.
9514 (target_fileio_read_alloc): Likewise.
9515 (target_fileio_read_stralloc): Likewise.
9517 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9518 <fcntl.h>, and <unistd.h>.
9519 (inf_child_fileio_open_flags_to_host): New function.
9520 (inf_child_errno_to_fileio_error): Likewise.
9521 (inf_child_fileio_open): Likewise.
9522 (inf_child_fileio_pwrite): Likewise.
9523 (inf_child_fileio_pread): Likewise.
9524 (inf_child_fileio_close): Likewise.
9525 (inf_child_fileio_unlink): Likewise.
9526 (inf_child_target): Install to_fileio routines.
9528 * remote.c (init_remote_ops): Install to_fileio routines.
9530 2012-01-20 Pedro Alves <palves@redhat.com>
9531 Ulrich Weigand <ulrich.weigand@linaro.org>
9533 * remote.c (remote_multi_process_p): Only check for multi-process
9534 protocol feature, do not check for extended protocol.
9535 (remote_supports_multi_process): Check for extended protocol here.
9536 (set_general_process): Likewise.
9537 (extended_remote_kill): Likewise.
9538 (remote_pid_to_str): Likewise.
9539 (remote_query_supported): Always query multiprocess mode.
9541 2012-01-20 Pedro Alves <palves@redhat.com>
9542 Ulrich Weigand <ulrich.weigand@linaro.org>
9544 * inferior.h (struct inferior): Add fake_pid_p.
9545 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9546 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9547 magic_null_ptid since the remote side doesn't provide a real PID.
9549 2012-01-19 Tom Tromey <tromey@redhat.com>
9551 * NEWS: Combine the two Python sections.
9553 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9555 * target.h (target_close): Update comment on the target's unpush state.
9557 2012-01-19 Pedro Alves <palves@redhat.com>
9559 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9560 linux_nat_async directly instead of going through the target
9562 * target.c (unpush_target): Close target after unpushing it, not
9565 2012-01-19 Gary Benson <gbenson@redhat.com>
9567 * mdebugread.c (sort_blocks): Replace integer constants with ones
9568 derived from FIRST_LOCAL_BLOCK.
9570 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9571 Jan Kratochvil <jan.kratochvil@redhat.com>
9574 * symfile.c (find_separate_debug_file): New function.
9575 (terminate_after_last_dir_separator): Likewise.
9576 (find_separate_debug_file_by_debuglink): Also try realpath.
9577 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9578 * configure: Regenerate.
9579 * config.in: Regenerate.
9581 2012-01-18 Doug Evans <dje@google.com>
9583 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9584 (main.o): Remove rule.
9585 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9586 (--with-sysroot): Rewrite.
9587 * configure: Regenerate.
9588 * config.in: Regenerate.
9590 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9592 * parse.c (initialize_expout): New function.
9593 (reallocate_expout): Likewise.
9594 (parse_exp_in_context): Use `initialize_expout' and
9595 `reallocate_expout' when appropriate.
9597 2012-01-18 Pedro Alves <palves@redhat.com>
9599 * record.c (struct record_breakpoint, record_breakpoint_p)
9600 (record_breakpoints): New.
9601 (record_insert_breakpoint, record_remove_breakpoint): Manage
9602 record breakpoints list. Only remove breakpoints from the
9603 inferior if they had been inserted there in the first place.
9605 2012-01-17 Doug Evans <dje@google.com>
9607 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9608 if we know we don't have a file name to look for.
9610 2012-01-17 Pedro Alves <palves@redhat.com>
9612 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9613 the frame's stop reason is UNWIND_UNAVAILABLE.
9615 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9617 Fix compilation error.
9618 * m2-exp.y (yyerror): Use ANSI C prototype.
9620 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9622 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9623 (growbuf_by_size): Likewise.
9624 (yyerror): Likewise.
9625 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9626 (modblock): Remove variable (was #if 0'ed).
9627 (parse_number): Convert prototype from K&R to ANSI C.
9628 (yyerror): Likewise.
9629 * objc-exp.y (parse_number): Likewise.
9630 (yyerror): Likewise.
9631 (yylex): Remove #if 0'ed code.
9632 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9633 (yyerror): Likewise.
9635 2012-01-16 Tom Tromey <tromey@redhat.com>
9638 * symtab.h (compare_filenames_for_search): Declare.
9639 * symtab.c (compare_filenames_for_search): New function.
9640 (iterate_over_some_symtabs): Use it.
9641 * symfile.h (struct quick_symbol_functions)
9642 <map_symtabs_matching_filename>: Change spec.
9643 * psymtab.c (partial_map_symtabs_matching_filename): Use
9644 compare_filenames_for_search. Update for new spec.
9645 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9646 compare_filenames_for_search. Update for new spec.
9647 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9649 2012-01-16 Tom Tromey <tromey@redhat.com>
9652 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9653 (struct main_type) <flag_flag_enum>: New field.
9654 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9655 * NEWS: Add entries.
9656 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9658 * python/lib/gdb/printing.py (_EnumInstance): New class.
9659 (FlagEnumerationPrinter): Likewise.
9661 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9663 * breakpoint.c (create_sals_from_address_default): New function.
9664 (create_breakpoints_sal_default): Likewise.
9665 (decode_linespec_default): Likewise.
9666 (is_marker_spec): Removed.
9667 (strace_marker_p): New function.
9668 (init_breakpoint_sal): Using `strace_marker_p' instead of
9670 (create_breakpoint): Call method `create_sals_from_address' from
9671 breakpoint_ops, replacing code that created SALs conditionally
9672 on the type of the breakpoint. Call method `create_breakpoints_sal',
9673 replacing code that created breakpoints conditionally on the type
9675 (base_breakpoint_create_sals_from_address): New function.
9676 (base_breakpoint_create_breakpoints_sal): Likewise.
9677 (base_breakpoint_decode_linespec): Likewise.
9678 (base_breakpoint_ops): Add methods
9679 `base_breakpoint_create_sals_from_address',
9680 `base_breakpoint_create_breakpoints_sal' and
9681 `base_breakpoint_decode_linespec'.
9682 (bkpt_create_sals_from_address): New function.
9683 (bkpt_create_breakpoints_sal): Likewise.
9684 (bkpt_decode_linespec): Likewise.
9685 (tracepoint_create_sals_from_address): Likewise.
9686 (tracepoint_create_breakpoints_sal): Likewise.
9687 (tracepoint_decode_linespec): Likewise.
9688 (strace_marker_create_sals_from_address): Likewise.
9689 (strace_marker_create_breakpoints_sal): Likewise.
9690 (strace_marker_decode_linespec): Likewise.
9691 (strace_marker_breakpoint_ops): New variable.
9692 (addr_string_to_sals): Remove `marker_spec'. Call method
9693 `decode_linespec' from breakpoint_ops, replacing code that decoded
9694 an address string into a SAL. Use `strace_marker_p' instead of
9696 (strace_command): Decide whether we are dealing with a static
9697 tracepoint with marker or not. Use the appropriate breakpoint_ops.
9698 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
9699 * breakpoint.h (linespec_result, linespec_sals): New forward
9701 (breakpoint_ops) <create_sals_from_address>,
9702 <create_breakpoints_sal>, <decode_linespec>: New methods.
9704 2012-01-14 Doug Evans <dje@google.com>
9706 * NEWS: Update text for "maint set python print-stack".
9707 It is deprecated in gdb 7.4 and deleted in 7.5.
9709 2012-01-13 Eli Zaretskii <eliz@gnu.org>
9711 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
9714 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9716 * configure: Regenerate.
9717 * config.in: Regenerate.
9719 2012-01-12 Keith Seitz <keiths@redhat.com>
9722 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
9723 (ANONYMOUS_UNION_NAME): Define.
9724 (is_path_expr_parent): New function.
9725 (get_path_expr_parent): New function.
9726 (is_anonymous_child): New function.
9727 (create_child_with_value): If the child is anonymous and without
9728 a name, assign an object name to it.
9729 (c_describe_child): Use get_path_expr_parent to determine
9730 the parent expression.
9731 If there field represents an anonymous struct or union and
9732 has no name, set an appropriate display name and expression.
9733 (cplus_describe_child): Likewise.
9735 2012-01-12 Pedro Alves <palves@redhat.com>
9737 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
9738 available when %ebp is found to be zero (outermost).
9740 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
9742 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
9743 an internal gdb_static_assert.
9744 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
9746 2012-01-11 Tom Tromey <tromey@redhat.com>
9749 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
9750 catch" and "catch throw".
9752 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
9754 * blockframe.c (block_innermost_frame): Start search from selected
9755 frame, if present, or otherwise the current frame.
9757 * c-exp.y (variable): Update innermost_block for
9758 'block COLONCOLON NAME' clause.
9759 * m2-exp.y (variable): Ditto.
9760 * objc-exp.y (variable): Ditto.
9762 2012-01-10 Tom Tromey <tromey@redhat.com>
9765 * python/python.c (finish_python_initialization): Set sys.argv.
9767 2012-01-10 Doug Evans <dje@google.com>
9769 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
9770 "want_line_info". All callers updated.
9771 (dwarf_decode_lines_1): New function.
9772 (handle_DW_AT_stmt_list): Add function comment.
9773 New arg "want_line_info". All callers updated.
9774 (read_file_scope,read_type_unit_scope): Move comment from
9775 handle_DW_AT_stmt_list to here.
9777 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9779 Fix regression after libiberty/ update for GCC PR 6057 and others.
9780 * c-exp.y (operator) <OPERATOR DELETE>
9781 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9782 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
9783 (make_builtin_type, make_name): New variable i, add gdb_assert.
9784 (operator) <OPERATOR NEW>: Update ARGS to 3.
9785 (operator) <OPERATOR DELETE>: Add trailing space.
9786 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
9787 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9788 * cp-support.c (cp_canonicalize_string): Check NULL from
9789 cp_comp_to_string, call warning and return.
9791 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9793 Fix duplicate .o files after omitting libbfd.a.
9794 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
9795 (SFILES): Add corelow.c.
9796 (COMMON_OBS): Add corelow.o.
9797 (ALLDEPFILES): Remove corelow.c.
9798 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
9799 * config/alpha/alpha-osf3.mh: Likewise.
9800 * config/alpha/fbsd.mh: Likewise.
9801 * config/arm/nbsdaout.mh: Likewise.
9802 * config/arm/nbsdelf.mh: Likewise.
9803 * config/i386/i386gnu.mh: Likewise.
9804 * config/ia64/hpux.mh: Likewise.
9805 * config/ia64/linux.mh: Likewise.
9806 * config/m32r/linux.mh: Likewise.
9807 * config/m68k/linux.mh: Likewise.
9808 * config/mips/irix5.mh: Likewise.
9809 * config/mips/irix6.mh: Likewise.
9810 * config/pa/hpux.mh: Likewise.
9811 * config/pa/linux.mh: Likewise.
9812 * config/powerpc/aix.mh: Likewise.
9813 * config/sparc/linux.mh: Likewise.
9814 * config/sparc/linux64.mh: Likewise.
9815 * config/sparc/sol2.mh: Likewise.
9816 * config/vax/vax.mh: Likewise.
9817 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
9818 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
9819 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
9820 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
9821 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
9822 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
9823 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
9824 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
9825 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
9826 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
9827 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
9828 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
9829 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9830 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
9831 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
9832 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9833 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
9834 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
9835 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
9836 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
9837 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
9838 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
9839 corelow.o from gdb_target_obs.
9840 * corefile.c (core_target): Update the comment on NULL value.
9841 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
9842 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
9843 MATCHES. Drop YUMMY set on NULL.
9844 (core_close): Do not call exit_inferior_silent on zero PID. Do not
9845 reclaim CORE_DATA if it is already NULL.
9847 2012-01-09 Doug Evans <dje@google.com>
9849 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
9850 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
9852 2012-01-09 Keith Seitz <keiths@redhat.com>
9854 * breakpoint.c (wrapper.h): Don't include.
9856 2012-01-09 Keith Seitz <keiths@redhat.com>
9858 * Makefile.in (SFILES): Remove wrapper.c.
9859 (HFILES_NO_SRCDIR): Remove wrapper.h.
9860 (COMMON_OBS): Remove wrapper.o.
9861 * cli/cli-interp.c: Don't inlude wrapper.h.
9862 * corelow.c: Likewise.
9863 (core_open): Replace gdb_target_find_new_threads with
9864 TRY_CATCH around target_find_new_threads.
9865 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
9866 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
9867 * varobj.c (varobj_create): Likewise for parse_exp_1 and
9868 evaluate_expression.
9869 (varobj_set_value): Likewise for evaluate_expression and
9871 (install_new_variable): Likewise for value_fetch_lazy.
9872 (adjust_value_for_child_access): Likewise for value_ind.
9873 (c_describe_child): Likewise for value_subscript and
9875 (c_value_of_root): Likewise for evaluate_expression.
9876 * wrapper.c: Remove.
9877 * wrapper.h: Remove.
9879 2012-01-09 Doug Evans <dje@google.com>
9881 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
9882 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
9883 "abfd" args with "section". All callers updated.
9884 Error checking code moved ...
9885 (error_check_comp_unit_head): ... here. New function.
9886 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
9887 Delete arg "abfd". New arg "type_offset". All callers updated.
9888 (create_debug_types_hash_table): Simplify by using
9889 read_and_check_type_unit_head.
9891 * parser-defs.h (namecopy): Delete.
9892 * parse.c (namecopy, namecopy_size): Move into copy_name.
9894 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9896 Partially fix duplicate .o files after omitting libbfd.a.
9897 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
9898 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9899 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
9900 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9901 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
9902 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
9903 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9905 2012-01-09 Pedro Alves <palves@redhat.com>
9907 * MAINTAINERS: Update my email address.
9909 2012-01-08 Doug Evans <dje@google.com>
9911 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
9912 n_type_units. Rename type_comp_units to all_type_units.
9914 (add_signatured_type_cu_to_table): Renamed from
9915 add_signatured_type_cu_to_list. All callers updated.
9917 * gdbtypes.h (struct cplus_struct_type): Delete member
9918 nfn_fields_total. All uses removed.
9920 2012-01-06 Doug Evans <dje@google.com>
9922 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
9924 (dwarf2_find_comp_unit): Delete.
9925 (process_psymtab_comp_unit): Make result "void".
9926 Delete args buffer, info_ptr, buffer_size, and replace with
9927 "section". All callers updated.
9928 (dwarf2_build_psymtabs_hard): Simplify.
9930 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
9931 Thiago Jung Bauermann <bauerman@br.ibm.com>
9933 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
9934 before `struct gdb_exception'.
9935 * breakpoint.c (update_global_location_list_nothrow)
9936 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
9937 * cp-abi.c (value_rtti_type): Likewise.
9938 * cp-support.c (cp_validate_operator): Likewise.
9939 * infrun.c (insert_exception_resume_breakpoint)
9940 (check_exception_resume, keep_going): Likewise.
9941 * mi-interp.c (mi_breakpoint_created)
9942 (mi_breakpoint_modified): Likewise.
9943 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
9944 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
9945 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
9947 2012-01-05 Doug Evans <dje@google.com>
9949 * dwarf2read.c (statement_prologue): Delete, unused.
9951 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
9952 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
9954 * dwarf2read.c (comp_unit_header): Delete, unused.
9956 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
9958 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
9959 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
9961 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
9963 * infrun.c (normal_stop): Don't skip calling the normal_stop
9964 observers if the thread was doing a multi-step, but stopped for
9965 some reason other than stepping.
9967 2012-01-05 Pedro Alves <alves.ped@gmail.com>
9969 * cli/cli-decode.h: Add comments.
9970 (CMD_LIST_AMBIGUOUS): Moved to command.h
9971 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
9972 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
9973 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
9974 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
9975 (add_com, add_com_alias, add_info, add_info_alias)
9976 (complete_on_cmdlist, complete_on_enum, help_list): Remove
9978 * command.h: Add and adjust comments.
9979 (CMD_LIST_AMBIGUOUS): Moved here.
9980 (help_cmd, help_cmd_list): Delete declarations.
9982 2012-01-04 Doug Evans <dje@google.com>
9984 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
9985 All callers updated.
9986 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
9987 Replace all arguments with "per_cu". All callers updated.
9989 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
9991 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
9992 New arg "per_cu". All callers updated.
9994 Delete #if 0'd out code.
9995 * language.c (binop_result_type): Delete.
9996 (simple_type, ordered_type, same_type, integral_type): Delete.
9997 (numeric_type, character_type, string_type, boolean_type): Delete.
9998 (float_type, structured_type): Delete.
9999 * language.h: Update.
10001 2012-01-04 Tom Tromey <tromey@redhat.com>
10003 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10005 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10007 * corefile.c (close_exec_file): Delete.
10008 (reopen_exec_file): Remove commented out code that seems related
10009 to close_exec_file, which is being deleted here.
10010 * inferior.h (close_exec_file): Delete.
10011 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10013 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10015 * ada-lang.c: #include "cli/cli-utils.h".
10016 (get_selections): Use skip_spaces.
10017 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10018 (catch_ada_exception_command_split): Use skip_spaces.
10019 (ada_decode_assert_location): Likewise.
10021 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10023 * linespec.c (decode_line_internal): Check for C++ or Java
10024 compound constructs only if the current language is C, C++
10027 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10030 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10031 Joel Brobecker <brobecker@adacore.com>
10032 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10033 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10035 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10036 fall through into AT_ENTRY_POINT.
10037 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10038 DUMMY_ADDR with it.
10039 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10040 PPC_INSN_SIZE skip to 3 times.
10042 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10044 * linespec.c (add_minsym): Preserve function descriptors.
10046 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10048 * breakpoint.c (all_locations_are_pending): Consider locations
10049 in program spaces executing during startup pending as well.
10051 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10053 Copyright year update in most files of the GDB Project.
10055 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10057 * copyright.sh: Delete.
10058 * copyright.py: Rewrite.
10060 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10062 * gnulib/extra/update-copyright: New file, imported from gnulib.
10064 2012-01-04 Joel Brobecker <brobecker@adacore.com>
10066 * README (Copyright and License Notices): New section.
10068 2012-01-03 Tom Tromey <tromey@redhat.com>
10071 * python/py-value.c (valpy_dereference, valpy_get_address
10072 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10073 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10074 (valpy_absolute, valpy_richcompare): Free intermediate values.
10076 2011-01-03 Joel Brobecker <brobecker@adacore.com>
10078 * ada-lang.c: Reformat the copyright notice.
10080 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10082 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10083 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10084 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10085 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10086 Revert this part of:
10087 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10088 Build gdb directly from *.o files not using libgdb.a.
10089 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10091 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10093 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10094 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10095 Reformat the copyright header.
10097 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10099 Revert this part of:
10100 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10101 Remove the gdbtui binary.
10102 * gdb.c (main): Remove args.interpreter_p initialization.
10103 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10104 * main.h (struct captured_main_args): Remove interpreter_p.
10106 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10108 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10110 2012-01-02 Joel Brobecker <brobecker@adacore.com>
10112 * top.c (print_gdb_version): Update copyright year.
10114 2012-01-02 Yao Qi <yao@codesourcery.com>
10116 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10118 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10119 Joel Brobecker <brobecker@adacore.com>
10121 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10122 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10124 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10125 fall through into AT_ENTRY_POINT.
10126 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10127 DUMMY_ADDR with it.
10128 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10129 PPC_INSN_SIZE skip to 3 times.
10131 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10133 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10135 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10137 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10139 Build gdb directly from *.o files not using libgdb.a.
10140 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10141 (COMMON_OBS): Remove solib-target.o.
10142 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10143 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10144 (LIBGDB_OBS, libgdb.a): Move it above.
10145 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10146 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10147 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10148 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10149 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10150 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10151 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10152 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10153 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10154 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10155 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10156 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10157 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10158 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10159 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10160 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10161 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10162 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10163 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10164 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10165 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10166 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10167 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10168 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10169 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10170 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10171 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10173 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10175 Remove the gdbtui binary.
10176 * .gitignore (/gdbtui): Remove.
10177 * Makefile.in (TUI): Remove.
10178 (SUBDIR_TUI_OBS): Remove tui-main.o.
10179 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10180 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10181 (tui-main.o): Remove.
10182 (all_object_files): Remove tui-main.o.
10183 * NEWS: New note for the gdbtui removal.
10184 * configure: Rebuilt.
10185 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10186 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10187 CONFIG_UNINSTALL respectively.
10188 * gdb.c (main): Remove args.interpreter_p initialization.
10189 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10190 * main.h (struct captured_main_args): Remove interpreter_p.
10191 * tui/tui-main.c: Remove.
10193 2012-01-01 Doug Evans <dje@google.com>
10195 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10196 (dwarf2_physname, read_import_statement): Ditto.
10197 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10198 (process_structure_scope read_subroutine_type): Ditto.
10199 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10200 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10201 (dwarf2_fetch_die_location_block): Ditto.
10202 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10204 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10205 All callers updated.
10206 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10207 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10208 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10210 * dwarf2read.c (load_cu): Move assert to more useful location.
10212 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10213 All callers updated.
10215 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10216 (dwarf2_elf_names): Minor reformat.
10217 (dwarf2_per_cu_data): Tweak comment.
10218 (dwarf2_read_section): Fix comment.
10219 (create_all_comp_units): Fix comment.
10220 (load_full_comp_unit): Fix comment.
10221 (process_full_comp_unit): Fix comment.
10222 (read_signatured_type): Fix comment.
10224 For older changes see ChangeLog-2011.
10230 version-control: never